Commit Graph

99 Commits (3e1ed0032d650ca5cad7d6dbafc890a45ffbb9e2)

Author SHA1 Message Date
Peter Steinberger e1b491d961 test(channels): dedupe inbound contract dispatch capture setup 9 months ago
Peter Steinberger b8b43175c5 style: align formatting with oxfmt 0.33 9 months ago
Peter Steinberger 31f9be126c style: run oxfmt and fix gate failures 9 months ago
Sebastian e0e2184b90 test(release): add appcast regression coverage 9 months ago
cpojer be5b28cd6b
chore: Fix types. 9 months ago
cpojer d0cb8c19b2
chore: wtf. 9 months ago
Sebastian ed11e93cf2 chore(format) 9 months ago
Sebastian bbb5fbc71f fix(scripts): harden Windows UI spawn behavior 9 months ago
cpojer 72f00df95a
chore: Fix more extension test type 1/N. 9 months ago
cpojer 90ef2d6bdf
chore: Update formatting. 9 months ago
Peter Steinberger f717a13039 refactor(agent): dedupe harness and command workflows 9 months ago
Peter Steinberger 00bbddeef5 test: move git hook regression to e2e lane 9 months ago
Peter Steinberger 2b6f8548c9 test: trim pre-commit hook integration setup 9 months ago
Peter Steinberger 92ec3ddc14 test: drop brittle pre-commit script structure test 9 months ago
Peter Steinberger c1655982d4 refactor: centralize pre-commit file filtering 9 months ago
Peter Steinberger ba84b12535 fix: harden pre-commit hook against option injection 9 months ago
Peter Steinberger 92f8c0fac3 perf(test): speed up suites and reduce fs churn 9 months ago
Peter Steinberger 052d988add test(auto-reply): move inbound provider contract test into unit suite 9 months ago
Peter Steinberger fa472623f6 perf(test): use prebuilt hook install fixtures 9 months ago
Peter Steinberger 758fbc2fcc test(web): consolidate deliver reply retry coverage 9 months ago
Peter Steinberger d6641ed306 test: isolate OPENCLAW_HOME in withTempHome 9 months ago
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