Commit Graph

67 Commits (c8d9733e41bdd59d5e1e454d75e31abb655fc430)

Author SHA1 Message Date
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
Peter Steinberger f00667ea25 fix: clean up lint + guardCancel typing 11 months ago
Peter Steinberger 1850013cae fix: modernize live tests and gemini ids 11 months ago
Peter Steinberger d33285a9cd fix: harden gateway auth defaults 11 months ago
Peter Steinberger 651a9e9be4 fix: restore minimax tool calling 11 months ago
Peter Steinberger 837cec64af refactor: centralize test path containment checks 11 months ago
Peter Steinberger 8341b662af refactor(test): temp home env + normalize status 11 months ago
Peter Steinberger c8b15af979 refactor(test): centralize temp home + polling 11 months ago
Peter Steinberger 4ffbd9802a refactor(test): consolidate temp home + vitest setup 11 months ago
Peter Steinberger f436808735 refactor: consolidate schema scrub + test harness 11 months ago
Peter Steinberger 17a7d4e8dd test: stabilize Windows test env (#567) (thanks @erikpr1994) 11 months ago
Peter Steinberger fd3cbd96a8 test: sanitize Windows CI vitest runner output (#567) (thanks @erikpr1994) 11 months ago