Commit Graph

98 Commits (ea15819ecf2b2a2dee919599b2b38e42277cfabc)

Author SHA1 Message Date
Peter Steinberger 9f8cf7f71a test: stabilize full gate 8 months ago
Peter Steinberger b7dc23b403 test: merge loader cache miss cases 8 months ago
Peter Steinberger 5311d48c66 test: merge loader scoped load cases 8 months ago
Peter Steinberger 477cea7709 test: merge loader memory slot cases 8 months ago
Peter Steinberger d49c1688f7 test: merge loader bundled telegram cases 8 months ago
Peter Steinberger 6372062be4 test: merge loader provenance warning cases 8 months ago
Peter Steinberger 909ec6b416 test: merge loader workspace warning cases 8 months ago
Peter Steinberger c21654e1b9 test: merge loader precedence cases 8 months ago
Peter Steinberger 1a3bde81d8 test: merge loader single-plugin registration cases 8 months ago
Peter Steinberger 2c073e7bcb test: merge loader http route cases 8 months ago
Peter Steinberger d988e39fc7 test: merge loader duplicate registration cases 8 months ago
Peter Steinberger bf22e9461e test: merge loader alias resolution cases 8 months ago
Peter Steinberger 444e3eb9e3 test: merge loader escape path cases 8 months ago
Peter Steinberger 790747478e test: merge loader provenance path cases 8 months ago
Peter Steinberger 9c086f26a0 test: merge loader setup entry matrix 8 months ago
Peter Steinberger 34460f24b8 test: merge loader cache partition cases 8 months ago
Peter Steinberger 7c3efaeccf test: merge bundle loader fixture cases 8 months ago
Chris Kimpton f404ff32d5 tests: add missing useNoBundledPlugins() to bundle MCP loader test
The "treats bundle MCP as a supported bundle surface" test was missing
the useNoBundledPlugins() call present in all surrounding bundle plugin
tests. Without it, loadOpenClawPlugins() scanned and loaded the full
real bundled plugins directory on every call (with cache:false), causing
excessive memory pressure and an OOM crash on Linux CI, which manifested
as the test timing out at 120s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 months ago
Vincent Koc 06459ca0df
Agents: run bundle MCP tools in embedded Pi (#48611)
* Agents: run bundle MCP tools in embedded Pi

* Plugins: fix bundle MCP path resolution

* Plugins: warn on unsupported bundle MCP transports

* Commands: add embedded Pi MCP management

* Config: move MCP management to top-level config
8 months ago
Vincent Koc 9c80d717bc Tests: pin loader command activation semantics 8 months ago
Harold Hunt 94c27f34a1
fix(plugins): keep built plugin loading on one module graph (#48595) 8 months ago
Josh Lehman eeb140b4f0
fix(plugins): late-binding subagent runtime for non-gateway load paths (#46648)
Merged via squash.

Prepared head SHA: 44742652c9ac2eec82a6d958fd77f84ba1d29c0a
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
8 months ago
Tak Hoffman 2de28379dd
Plugins: remove public extension-api surface (#48462)
* Plugins: remove public extension-api surface

* Plugins: fix loader setup routing follow-ups

* CI: ignore non-extension helper dirs in extension-fast

* Docs: note extension-api removal as breaking
8 months ago
Gustavo Madeira Santana 96ed010a37
Gateway: gate deferred channel startup behind opt-in 8 months ago
Gustavo Madeira Santana 1b234b910b
Gateway: defer full channel plugins until after listen 8 months ago
Gustavo Madeira Santana 4c8853122a
Plugins: preserve lazy runtime provider resolution 8 months ago
Gustavo Madeira Santana fdfa98cda8
Tests: isolate bundle surface fixtures 8 months ago
Gustavo Madeira Santana d61c08efbb
Tests: scope Codex bundle loader fixture 8 months ago
Peter Steinberger 69c12c2b11 fix(plugins): resolve lazy runtime from package root 8 months ago
Peter Steinberger 0218045818
test: silence vitest warning noise 8 months ago
Peter Steinberger acae0b60c2
perf(plugins): lazy-load channel setup entrypoints 8 months ago
Peter Steinberger fb991e6f31
perf(plugins): lazy-load setup surfaces 8 months ago
Mason f4cc93dc7d
fix(onboarding): use scoped plugin snapshots to prevent OOM on low-memory hosts (#46763)
* fix(onboarding): use scoped plugin snapshots to prevent OOM on low-memory hosts

Onboarding and channel-add flows previously loaded the full plugin registry,
which caused OOM crashes on memory-constrained hosts. This patch introduces
scoped, non-activating plugin registry snapshots that load only the selected
channel plugin without replacing the running gateway's global state.

Key changes:
- Add onlyPluginIds and activate options to loadOpenClawPlugins for scoped loads
- Add suppressGlobalCommands to plugin registry to avoid leaking commands
- Replace full registry reloads in onboarding with per-channel scoped snapshots
- Validate command definitions in snapshot loads without writing global registry
- Preload configured external plugins via scoped discovery during onboarding

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(test): add return type annotation to hoisted mock to resolve TS2322

* fix(plugins): enforce cache:false invariant for non-activating snapshot loads

* Channels: preserve lazy scoped snapshot import after rebase

* Onboarding: scope channel snapshots by plugin id

* Catalog: trust manifest ids for channel plugin mapping

* Onboarding: preserve scoped setup channel loading

* Onboarding: restore built-in adapter fallback

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger dd40741e18
feat(plugins): add compatible bundle support 8 months ago
Vincent Koc 51631e5797 Plugins: reserve context engine ownership 8 months ago
Nimrod Gutman e2dac5d5cb
fix(plugins): load bundled extensions from dist (#47560) 8 months ago
xiaoyi bbb0c3e5d7
CLI/completion: fix generator OOM and harden plugin registries (#45537)
* fix: avoid OOM during completion script generation

* CLI/completion: fix PowerShell nested command paths

* CLI/completion: cover generated shell scripts

* Changelog: note completion generator follow-up

* Plugins: reserve shared registry names

---------

Co-authored-by: Xiaoyi <xiaoyi@example.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Vincent Koc 8d44b16b7c
Plugins: preserve scoped ids and reserve bundled duplicates (#47413)
* Plugins: preserve scoped ids and reserve bundled duplicates

* Changelog: add plugin scoped id note

* Plugins: harden scoped install ids

* Plugins: reserve scoped install dirs

* Plugins: migrate legacy scoped update ids
8 months ago
Tak Hoffman f00db91590
fix(plugins): prefer explicit installs over bundled duplicates (#46722)
* fix(plugins): prefer explicit installs over bundled duplicates

* test(feishu): mock structured card sends in outbound tests

* fix(plugins): align duplicate diagnostics with loader precedence
8 months ago
Tak Hoffman e81442ac80 Fix full local gate on main 8 months ago
Vincent Koc bcbfbb831e
Plugins: fail fast on channel and binding collisions (#45628)
* Plugins: reject duplicate channel ids

* Bindings: reject duplicate adapter registration

* Plugins: fail on export id mismatch
8 months ago
Peter Steinberger 60d308cff0 test: fix CI type regressions 8 months ago
Vincent Koc cc5168b5c3 Fix plugin update dependency failures and dedupe warnings 9 months ago
Peter Steinberger 3cf06f7939
docs(plugins): clarify workspace shadowing 9 months ago
Peter Steinberger ec3c20d96d
test: harden plugin fixture permissions on macos 9 months ago
Peter Steinberger 21fa50f564
test: harden plugin env-scoped fixtures 9 months ago
Vincent Koc 3e28e10c2f
Plugins: require explicit trust for workspace-discovered plugins (#44174)
* Plugins: disable implicit workspace plugin auto-load

* Tests: cover workspace plugin trust gating

* Changelog: note workspace plugin trust hardening

* Plugins: keep workspace trust gate ahead of memory slot defaults

* Tests: cover workspace memory-slot trust bypass
9 months ago
Gustavo Madeira Santana e6897c800b
Plugins: fix env-aware root resolution and caching (#44046)
Merged via squash.

Prepared head SHA: 6e8852a188b0eaa4d6cf0bb71829023e0e0ed82b
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
9 months ago
Peter Steinberger 25d0aa7296 refactor: simplify plugin sdk compatibility aliases 9 months ago
Peter Steinberger c70151e873 test: isolate legacy plugin-sdk root import check 9 months ago