Commit Graph

53 Commits

Author SHA1 Message Date
Abhay
d7e138f8f0 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
2026-01-24 22:38:52 +00:00
Luke
f4b0648a50 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
2026-01-24 11:27:24 +00:00
Peter Steinberger
85c9d25dc6 chore: filter noisy warnings 2026-01-24 10:48:33 +00:00
Peter Steinberger
1c71124ada fix: expand linux service PATH handling 2026-01-23 19:16:41 +00:00
Peter Steinberger
228c3cf31f test: speed up default test env 2026-01-23 18:34:33 +00:00
Peter Steinberger
436cb68861 test: add media auto-detect coverage 2026-01-23 05:47:13 +00:00
Peter Steinberger
7e0bde7dfe test: align envelope timestamp expectations (#1329) (thanks @dlauer) 2026-01-22 05:51:42 +00:00
Peter Steinberger
5bc4841918 feat: add agent identity avatars (#1329) (thanks @dlauer) 2026-01-22 05:37:15 +00:00
Peter Steinberger
a1cfd6a933 test: update gateway node/e2e tests 2026-01-20 10:41:09 +00:00
Peter Steinberger
1c479b140b test: harden gateway mocks and env isolation 2026-01-19 00:15:44 +00:00
Peter Steinberger
aa3514f5e2 fix: sync protocol outputs 2026-01-18 08:58:41 +00:00
Peter Steinberger
8e87d8879e refactor: migrate messaging plugins to sdk 2026-01-18 08:54:00 +00:00
Peter Steinberger
98ab6c44b2 test: stabilize gateway suites 2026-01-18 05:44:22 +00:00
Peter Steinberger
106e074bff test: stabilize gateway ports and timers 2026-01-18 05:44:22 +00:00
Peter Steinberger
aa1c76a1d4 fix: avoid keychain prompts in embedded runner 2026-01-18 04:19:28 +00:00
Peter Steinberger
4c27a8b44d style: oxfmt format 2026-01-17 05:48:56 +00:00
Peter Steinberger
b5aac83781 fix: finalize inbound contexts 2026-01-17 05:06:39 +00:00
Peter Steinberger
9c09ce27d4 refactor: add inbound context helpers 2026-01-17 04:05:34 +00:00
Peter Steinberger
30dd825f8a test: clear config overrides in unit tests 2026-01-15 07:23:00 +00:00
Peter Steinberger
65fbcaaaf6 fix: bridge respawned child signals (#933) (thanks @roshanasingh4)
Co-authored-by: Roshan Singh <roshanasingh4@users.noreply.github.com>
2026-01-15 06:37:27 +00:00
Roshan Singh
06a77fb7f7 Fix entry respawn signal forwarding
Fixes #931
2026-01-15 06:33:28 +00:00
Peter Steinberger
3578c96530 chore: drop Clawdis legacy references 2026-01-15 06:18:44 +00:00
Peter Steinberger
9d28441c41 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00
Peter Steinberger
69228ca766 fix: finish channels rename sweep 2026-01-13 08:40:40 +00:00
Peter Steinberger
098431a93a Tests: run e2e gateway with node 2026-01-13 07:06:41 +00:00
Peter Steinberger
140f1e3b2f fix: clean up lint + guardCancel typing 2026-01-12 07:07:27 +00:00
Peter Steinberger
1f921afa8b fix: modernize live tests and gemini ids 2026-01-12 07:05:33 +00:00
Peter Steinberger
50ca393692 fix: harden gateway auth defaults 2026-01-11 01:51:24 +01:00
Peter Steinberger
f28becf7a8 fix: restore minimax tool calling 2026-01-10 18:15:15 +00:00
Peter Steinberger
e797d0a62c refactor: centralize test path containment checks 2026-01-09 19:15:44 +00:00
Peter Steinberger
6d2368a643 refactor(test): temp home env + normalize status 2026-01-09 16:50:09 +01:00
Peter Steinberger
8941602d10 refactor(test): centralize temp home + polling 2026-01-09 16:49:02 +01:00
Peter Steinberger
efe793e05d refactor(test): consolidate temp home + vitest setup 2026-01-09 16:41:05 +01:00
Peter Steinberger
19d5471f65 refactor: consolidate schema scrub + test harness 2026-01-09 16:27:28 +01:00
Peter Steinberger
2dc562a830 test: stabilize Windows test env (#567) (thanks @erikpr1994) 2026-01-09 15:40:02 +01:00
Peter Steinberger
7a820aa7ad test: sanitize Windows CI vitest runner output (#567) (thanks @erikpr1994) 2026-01-09 15:19:49 +01:00
Peter Steinberger
915d11f7b6 test: harden Windows CI output sanitization (#567) (thanks @erikpr1994) 2026-01-09 15:19:49 +01:00
Peter Steinberger
dabc03c7ed test: sanitize Windows CI buffer output (#567) (thanks @erikpr1994) 2026-01-09 15:19:49 +01:00
Peter Steinberger
833efe144e test: sanitize Windows CI output (#567) 2026-01-09 15:19:49 +01:00
Ayaan Zaidi
757c19e6e7 refactor: replace tsx with bun for TypeScript execution (#278) 2026-01-06 07:14:08 +00:00
Peter Steinberger
f7cb3846f1 chore: rename project to clawdbot 2026-01-04 14:38:51 +00:00
Peter Steinberger
5e550e6abf chore: fix lint formatting 2026-01-03 14:57:49 +00:00
Peter Steinberger
bad2f272e5 test(gateway): add multi-instance e2e suite 2026-01-03 13:37:46 +01:00
Peter Steinberger
4d9a1ca818 test: isolate vitest home 2025-12-26 11:45:16 +00:00
Peter Steinberger
7c759b959a refactor: lint cleanups and helpers 2025-12-23 00:28:55 +00:00
Peter Steinberger
75eeb3750e refactor(webchat): SwiftUI-only WebChat UI
# Conflicts:
#	apps/macos/Package.swift
2025-12-17 23:05:28 +01:00
Peter Steinberger
d91e9e9483 webchat: show real ws errors 2025-12-10 11:31:28 +00:00
Peter Steinberger
d1ba45440e msg: retry web/telegram sends and add regression tests 2025-12-09 17:23:04 +00:00
Peter Steinberger
b1f09f9943 chore: drop twilio and go web-only 2025-12-05 19:03:59 +00:00
Peter Steinberger
57714bc923 web: send read receipts for inbound messages 2025-11-25 06:36:22 +01:00