Commit Graph

45 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)

Author SHA1 Message Date
Peter Steinberger 59318d9ff8
Tests: preserve isolated home across non-isolated files 8 months ago
Peter Steinberger e2f0ea4625
fix(test): isolate shared vitest home setup 8 months ago
Peter Steinberger f4393791eb
test: split vitest setup for projects 8 months ago
Peter Steinberger e0c4458a2f
test: add lighter extensions vitest setup 8 months ago
George Zhang 6cbd2d36f8
Revert "feat: add video generation core infrastructure and extend image generation parameters (#53681)" (#54943)
This reverts commit 4cb8dde894.
8 months ago
xieyongliang 4cb8dde894
feat: add video generation core infrastructure and extend image generation parameters (#53681)
* feat: add video generation core infrastructure and extend image generation parameters

Add full video generation capability to OpenClaw core:

- New `video_generate` agent tool with support for prompt, duration, aspect ratio,
  resolution, seed, watermark, I2V (first/last frame), camerafixed, and draft mode
- New `VideoGenerationProvider` plugin SDK type and `registerVideoGenerationProvider` API
- New `src/video-generation/` module (types, runtime with fallback, provider registry)
- New `openclaw/plugin-sdk/video-generation` export for external plugins
- 200MB max file size for generated videos (vs default 5MB for images)

Extend image generation with additional parameters:
- `seed`, `watermark`, `guidanceScale`, `optimizePrompt`, `providerOptions`
- New `readBooleanParam()` helper in tool common utilities

Update plugin registry, contracts, and all test mocks to include
`videoGenerationProviders` and `videoGenerationProviderIds`.

Made-with: Cursor

* fix: validate aspect ratio against target provider when model override is set

* cleanup: remove redundant ?? undefined from video/image generate tools

* chore: regenerate plugin SDK API baseline after video generation additions

---------

Co-authored-by: yongliang.xie <yongliang.xie@bytedance.com>
8 months ago
Peter Steinberger 23a4ae4759 refactor: dedupe test helpers and harnesses 8 months ago
Peter Steinberger b1b162fcdb test: harden threaded channel follow-ups 8 months ago
Peter Steinberger 43131dcc08 test: harden threaded shared-worker suites 8 months ago
Peter Steinberger a2d3b9f317
fix: unblock live harness provider discovery 8 months ago
Peter Steinberger 05e31eb9ff test: stabilize channel ci gate 8 months ago
Peter Steinberger 5f05c92922
test: harden no-isolate reply teardown 8 months ago
Peter Steinberger 3fac0d11fa
test: fix base vitest thread regressions 8 months ago
Peter Steinberger 1ceaad18a6
test: harden vitest no-isolate coverage 8 months ago
Peter Steinberger 1cabb053ad test: lazy-load default setup registry 8 months ago
scoootscooob 7764f717e9
refactor: make OutboundSendDeps dynamic with channel-ID keys (#45517)
* refactor: make OutboundSendDeps dynamic with channel-ID keys

Replace hardcoded per-channel send fields (sendTelegram, sendDiscord,
etc.) with a dynamic index-signature type keyed by channel ID. This
unblocks moving channel implementations to extensions without breaking
the outbound dispatch contract.

- OutboundSendDeps and CliDeps are now { [channelId: string]: unknown }
- Each outbound adapter resolves its send fn via bracket access with cast
- Lazy-loading preserved via createLazySender with module cache
- Delete 6 deps-send-*.runtime.ts one-liner re-export files
- Harden guardrail scan against deleted-but-tracked files


* fix: preserve outbound send-deps compatibility

* style: fix formatting issues (import order, extra bracket, trailing whitespace)



* fix: resolve type errors from dynamic OutboundSendDeps in tests and extension

* fix: remove unused OutboundSendDeps import from deliver.test-helpers
8 months ago
rabsef-bicrym ff47876e61
fix: carry observed overflow token counts into compaction (#40357)
Merged via squash.

Prepared head SHA: b99eed4329bda45083cdedc2386c2c4041c034be
Co-authored-by: rabsef-bicrym <52549148+rabsef-bicrym@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
8 months ago
Peter Steinberger bdd9ed238a test: align pi-ai oauth mocks 8 months ago
Peter Steinberger aad014c7c1 fix: harden subagent control boundaries 8 months ago
Peter Steinberger bcb1eb2f03 perf(test): speed up setup and config path resolution 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 39e6e4cd2c perf: reduce test/runtime overhead in plugin runtime and e2e harness 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
9 months ago
max a1123dd9be
Centralize date/time formatting utilities (#11831) 9 months ago
cpojer 5ceff756e1
chore: Enable "curly" rule to avoid single-statement if confusion/errors. 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
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 b015c7e5ad fix: sync protocol outputs 10 months ago
Peter Steinberger c5e19f5c67 refactor: migrate messaging plugins to sdk 10 months ago
Peter Steinberger 1a0d1cb7b2 test: stabilize gateway ports and timers 10 months ago
Peter Steinberger f436808735 refactor: consolidate schema scrub + test harness 10 months ago
Peter Steinberger 17a7d4e8dd test: stabilize Windows test env (#567) (thanks @erikpr1994) 10 months ago
Peter Steinberger fd3cbd96a8 test: sanitize Windows CI vitest runner output (#567) (thanks @erikpr1994) 10 months ago
Peter Steinberger cb96deb517 test: harden Windows CI output sanitization (#567) (thanks @erikpr1994) 10 months ago
Peter Steinberger f58b3d082f test: sanitize Windows CI buffer output (#567) (thanks @erikpr1994) 10 months ago
Peter Steinberger 090d16392b test: sanitize Windows CI output (#567) 10 months ago
Peter Steinberger 246adaa119 chore: rename project to clawdbot 11 months ago
Peter Steinberger 54de5ad3fa test: isolate vitest home 11 months ago