openclaw/src/node-host
Josh Lehman 2364e45fe4
test: align extension runtime mocks with plugin-sdk (#51289)
* test: align extension runtime mocks with plugin-sdk

Update stale extension tests to mock the plugin-sdk runtime barrels that production code now imports, and harden the Signal tool-result harness around system-event assertions so the channels lane matches current extension boundaries.

Regeneration-Prompt: |
  Verify the failing channels-lane tests against current origin/main in an isolated worktree before changing anything. If the failures reproduce on main, keep the fix test-only unless production behavior is clearly wrong. Recent extension refactors moved Telegram, WhatsApp, and Signal code onto plugin-sdk runtime barrels, so update stale tests that still mock old core module paths to intercept the seams production code now uses. For Signal reaction notifications, avoid brittle assertions that depend on shared queued system-event state when a direct harness spy on enqueue behavior is sufficient. Preserve scope: only touch the failing tests and their local harness, then rerun the reproduced targeted tests plus the full channels lane and repo check gate.

* test: fix extension test drift on main

* fix: lazy-load bundled web search plugin registry

* test: make matrix sweeper failure injection portable

* fix: split heavy matrix runtime-api seams

* fix: simplify bundled web search id lookup

* test: tolerate windows env key casing
2026-03-20 15:59:53 -07:00
..
config.ts fix: harden sandbox writes and centralize atomic file writes 2026-03-02 16:45:12 +00:00
exec-policy.test.ts test: dedupe fixtures and test harness setup 2026-02-23 05:45:54 +00:00
exec-policy.ts fix(security): block shell-wrapper line-continuation allowlist bypass 2026-02-22 22:36:29 +01:00
invoke-browser.test.ts !refactor(browser): remove Chrome extension path and add MCP doctor migration (#47893) 2026-03-15 23:56:08 -07:00
invoke-browser.ts fix: harden remote cdp probes 2026-03-15 08:23:01 -07:00
invoke-system-run-allowlist.ts refactor!: remove versioned system-run approval contract 2026-03-02 01:12:53 +00:00
invoke-system-run-plan.test.ts Gateway: treat scope-limited probe RPC as degraded reachability (#45622) 2026-03-13 23:13:33 -05:00
invoke-system-run-plan.ts fix(node-host): harden perl approval binding 2026-03-13 13:09:36 +00:00
invoke-system-run.test.ts Exec: harden host env override handling across gateway and node (#51207) 2026-03-20 15:44:15 -05:00
invoke-system-run.ts Exec: harden host env override handling across gateway and node (#51207) 2026-03-20 15:44:15 -05:00
invoke-types.ts refactor(security): simplify system.run approval model 2026-03-11 01:43:06 +00:00
invoke.sanitize-env.test.ts test: align extension runtime mocks with plugin-sdk (#51289) 2026-03-20 15:59:53 -07:00
invoke.ts refactor(security): simplify system.run approval model 2026-03-11 01:43:06 +00:00
runner.credentials.test.ts test: share node host credential assertions 2026-03-13 21:40:54 +00:00
runner.ts fix(node): remove debug console.log on node host startup 2026-03-14 21:17:48 +01:00
with-timeout.ts fix: add safety timeout to session.compact() to prevent lane deadlock (#16533) 2026-02-14 17:54:12 -05:00