Commit Graph

78 Commits (c0cd3c3c088eb5b335e8b0a052d9911da9d549e7)

Author SHA1 Message Date
Peter Steinberger 857db619e1 perf(test): speed up temp-home cleanup 9 months ago
Peter Steinberger 493f6f458b perf(test): speed up browser test suites 9 months ago
Peter Steinberger ce0eddd384 test: isolate test home before runtime imports 9 months ago
Peter Steinberger 38a157ff23 perf(test): reduce setup overhead; isolate sharp-heavy suites 9 months ago
Peter Steinberger 6442512954 perf: reduce hotspot test startup and timeout costs 9 months ago
Peter Steinberger c801ffdf99 perf: add zero-delay gateway client connect for tests 9 months ago
Peter Steinberger b05c41f344 perf: reduce gateway multi e2e websocket churn 9 months ago
Peter Steinberger 3c00a9e330 perf: remove redundant cli health checks from gateway multi e2e 9 months ago
Peter Steinberger 39e6e4cd2c perf: reduce test/runtime overhead in plugin runtime and e2e harness 9 months ago
Peter Steinberger fdfc34fa1f perf(test): stabilize e2e harness and reduce flaky gateway coverage 9 months ago
Peter Steinberger a7d6e44719 perf(test): reduce test startup overhead 9 months ago
max 40b11db80e
TypeScript: add extensions to tsconfig and fix type errors (#12781)
* TypeScript: add extensions to tsconfig and fix type errors

- Add extensions/**/* to tsconfig.json includes
- Export ProviderAuthResult, AnyAgentTool from plugin-sdk
- Fix optional chaining for messageActions across channels
- Add missing type imports (MSTeamsConfig, GroupPolicy, etc.)
- Add type annotations for provider auth handlers
- Fix undici/fetch type compatibility in zalo proxy
- Correct ChannelAccountSnapshot property usage
- Add type casts for tool registrations
- Extract usage view styles and types to separate files

* TypeScript: fix optional debug calls and handleAction guards
10 months ago
Mariano 5acb1e3c52
Tests: trim timezone in envelope timestamp helper (#12446) 10 months ago
max ec910a235e
refactor: consolidate duplicate utility functions (#12439)
* refactor: consolidate duplicate utility functions

- Add escapeRegExp to src/utils.ts and remove 10 local duplicates
- Rename bash-tools clampNumber to clampWithDefault (different signature)
- Centralize formatError calls to use formatErrorMessage from infra/errors.ts
- Re-export formatErrorMessage from cli/cli-utils.ts to preserve API

* refactor: consolidate remaining escapeRegExp duplicates

* refactor: consolidate sleep, stripAnsi, and clamp duplicates
10 months ago
Mariano 8968d9a339
Auto-reply: include weekday in envelope timestamps (#12438) 10 months ago
max a1123dd9be
Centralize date/time formatting utilities (#11831) 10 months ago
cpojer f06dd8df06
chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
cpojer 76361ae3ab
revert: Switch back to `tsc` for compiling. 10 months ago
Peter Steinberger a42e1c82d9 fix: restore tsc build and plugin install tests 10 months ago
cpojer 5ceff756e1
chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
cpojer b7e401b6b6
chore: Enable no-useless-concat (removing the lint rule from the disabled list automatically enables it because it is in the "suspicious" group). 10 months ago
cpojer 15792b153f
chore: Enable more lint rules, disable some that trigger a lot. Will clean up later. 10 months ago
cpojer 67945e8d62
chore: Switch from TypeScript to build with `tsdown`, speeds up `pnpm build` by 5-10x. 10 months ago
Peter Steinberger 9a7160786a refactor: rename to openclaw 10 months ago
Peter Steinberger 6d16a658e5 refactor: rename clawdbot to moltbot with legacy compat 10 months ago
Abhay 51e3d16be9
feat: Add Ollama provider with automatic model discovery (#1606)
* feat: Add Ollama provider with automatic model discovery

- Add Ollama provider builder with automatic model detection
- Discover available models from local Ollama instance via /api/tags API
- Make resolveImplicitProviders async to support dynamic model discovery
- Add comprehensive Ollama documentation with setup and usage guide
- Add tests for Ollama provider integration
- Update provider index and model providers documentation

Closes #1531

* fix: Correct Ollama provider type definitions and error handling

- Fix input property type to match ModelDefinitionConfig
- Import ModelDefinitionConfig type properly
- Fix error template literal to use String() for type safety
- Simplify return type signature of discoverOllamaModels

* fix: Suppress unhandled promise warnings from ensureClawdbotModelsJson in tests

- Cast unused promise returns to 'unknown' to suppress TypeScript warnings
- Tests that don't await the promise are intentionally not awaiting it
- This fixes the failing test suite caused by unawaited async calls

* fix: Skip Ollama model discovery during tests

- Check for VITEST or NODE_ENV=test before making HTTP requests
- Prevents test timeouts and hangs from network calls
- Ollama discovery will still work in production/normal usage

* fix: Set VITEST environment variable in test setup

- Ensures Ollama discovery is skipped in all test runs
- Prevents network calls during tests that could cause timeouts

* test: Temporarily skip Ollama provider tests to diagnose CI failures

* fix: Make Ollama provider opt-in to avoid breaking existing tests

**Root Cause:**
The Ollama provider was being added to ALL configurations by default
(with a fallback API key of 'ollama-local'), which broke tests that
expected NO providers when no API keys were configured.

**Solution:**
- Removed the default fallback API key for Ollama
- Ollama provider now requires explicit configuration via:
  - OLLAMA_API_KEY environment variable, OR
  - Ollama profile in auth store
- Updated documentation to reflect the explicit configuration requirement
- Added a test to verify Ollama is not added by default

This fixes all 4 failing test suites:
- checks (node, test, pnpm test)
- checks (bun, test, bunx vitest run)
- checks-windows (node, test, pnpm test)
- checks-macos (test, pnpm test)

Closes #1531
10 months ago
Luke be1cdc9370
fix(agents): treat provider request-aborted as timeout for fallback (#1576)
* fix(agents): treat request-aborted as timeout for fallback

* test(e2e): add provider timeout fallback
10 months ago
Peter Steinberger 5482803547 chore: filter noisy warnings 10 months ago
Peter Steinberger ff30cef8a4 fix: expand linux service PATH handling 10 months ago
Peter Steinberger 29353e2e81 test: speed up default test env 10 months ago
Peter Steinberger 93bef830ce test: add media auto-detect coverage 10 months ago
Peter Steinberger d425f1ebea test: align envelope timestamp expectations (#1329) (thanks @dlauer) 10 months ago
Peter Steinberger a59ac5cf6f feat: add agent identity avatars (#1329) (thanks @dlauer) 10 months ago
Peter Steinberger 6942ceb7a9 test: update gateway node/e2e tests 10 months ago
Peter Steinberger dad8e11f1e test: harden gateway mocks and env isolation 10 months ago
Peter Steinberger b015c7e5ad fix: sync protocol outputs 10 months ago
Peter Steinberger c5e19f5c67 refactor: migrate messaging plugins to sdk 10 months ago
Peter Steinberger 208398973b test: stabilize gateway suites 10 months ago
Peter Steinberger 1a0d1cb7b2 test: stabilize gateway ports and timers 10 months ago
Peter Steinberger fabc2882aa fix: avoid keychain prompts in embedded runner 10 months ago
Peter Steinberger e59d8c5436 style: oxfmt format 10 months ago
Peter Steinberger bc49c20434 fix: finalize inbound contexts 10 months ago
Peter Steinberger 388b2bce01 refactor: add inbound context helpers 10 months ago
Peter Steinberger eb3eb3c39e test: clear config overrides in unit tests 10 months ago
Peter Steinberger 154b8e3e0e fix: bridge respawned child signals (#933) (thanks @roshanasingh4)
Co-authored-by: Roshan Singh <roshanasingh4@users.noreply.github.com>
10 months ago
Roshan Singh d9f2ee40f7 Fix entry respawn signal forwarding
Fixes #931
10 months ago
Peter Steinberger d59aab7fd3 chore: drop Clawdis legacy references 10 months ago
Peter Steinberger c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
10 months ago
Peter Steinberger 84bfaad6e6 fix: finish channels rename sweep 10 months ago
Peter Steinberger 69e4339af9 Tests: run e2e gateway with node 10 months ago