兰之
10d10faa25
feat(plugin-sdk): add resolve_exec_env hook
Summary:
- Add the plugin SDK `resolve_exec_env` hook for bounded exec environment contributions.
- Wire resolved exec env through exec preparation/final execution without exposing plugin env values to generic tool hooks.
- Cover lazy exec loading, host and command rewrites, node/gateway execution, filtering, and EXEC shell snapshot cache behavior.
Verification:
- `pnpm changed:lanes --json`
- `node scripts/run-vitest.mjs src/agents/bash-tools.exec.resolve-env-hook.test.ts src/agents/agent-tool-definition-adapter.test.ts src/agents/agent-tool-definition-adapter.after-tool-call.test.ts src/agents/shell-snapshot.test.ts src/plugins/hook-resolve-exec-env.test.ts`
- `pnpm check:test-types`
- `pnpm lint src/agents/bash-tools.exec.ts src/agents/bash-tools.exec.resolve-env-hook.test.ts`
- `.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main`
- PR CI clean on 1bbad8d071: https://github.com/openclaw/openclaw/actions/runs/26817910293
Co-authored-by: Lanzhi <lizhan3@xiaomi.com>
2026-06-02 08:00:42 -04:00
..
2026-06-01 10:30:15 +01:00
2026-05-27 15:24:17 +02:00
2026-05-18 12:24:27 +01:00
2026-05-06 09:00:20 -07:00
2026-05-31 20:51:33 -04:00
2026-05-26 14:51:11 +01:00
2026-04-23 15:48:46 -07:00
2026-05-27 14:48:06 -07:00
2026-05-27 19:24:04 +01:00
2026-06-02 14:39:35 +05:30
2026-05-28 19:21:50 +01:00
2026-06-01 10:12:36 +01:00
2026-05-30 08:59:02 +02:00
2026-05-31 13:22:00 +01:00
2026-05-31 13:22:00 +01:00
2026-05-14 14:27:50 -07:00
2026-05-27 15:24:17 +02:00
2026-06-01 01:18:46 -04:00
2026-05-28 21:16:07 +01:00
2026-05-29 04:46:45 +01:00
2026-06-02 08:00:42 -04:00
2026-05-28 21:16:07 +01:00
2026-05-16 17:11:53 +01:00
2026-05-31 11:36:48 +01:00
2026-05-30 11:48:41 +02:00
2026-05-13 13:33:38 +01:00
2026-05-31 18:48:45 +01:00
2026-05-16 07:52:08 -07:00
2026-06-01 10:30:15 +01:00
2026-05-24 23:20:14 -07:00
2026-06-01 10:30:15 +01:00
2026-05-31 00:29:44 +01:00
2026-05-27 11:37:23 +01:00
2026-05-10 00:18:36 -04:00
2026-05-27 13:59:33 +01:00
2026-05-27 09:26:06 +01:00
2026-05-29 15:32:31 -07:00
2026-05-27 11:37:23 +01:00
2026-05-28 20:37:09 +01:00
2026-06-01 04:22:22 +01:00
2026-05-27 19:24:04 +01:00
2026-06-02 07:46:08 -04:00
2026-05-27 20:33:40 +01:00
2026-05-28 21:16:07 +01:00
2026-06-01 00:57:25 -04:00
2026-05-26 23:10:41 -07:00
2026-05-17 11:45:18 +01:00
2026-05-29 04:46:45 +01:00
2026-05-06 09:06:11 -07:00
2026-06-01 01:41:21 +01:00
2026-05-07 18:55:08 -07:00