@xrkseek/harness 0.4.0-rc.4 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/README.md +88 -0
- package/node_modules/@xrkseek/checkpoint/dist/index.d.ts +5 -0
- package/node_modules/@xrkseek/checkpoint/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/index.js +5 -0
- package/node_modules/@xrkseek/checkpoint/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/json-file.d.ts +5 -0
- package/node_modules/@xrkseek/checkpoint/dist/json-file.d.ts.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/json-file.js +29 -0
- package/node_modules/@xrkseek/checkpoint/dist/json-file.js.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/process-git.d.ts +8 -0
- package/node_modules/@xrkseek/checkpoint/dist/process-git.d.ts.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/process-git.js +40 -0
- package/node_modules/@xrkseek/checkpoint/dist/process-git.js.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts +101 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.js +312 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.js.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/types.d.ts +65 -0
- package/node_modules/@xrkseek/checkpoint/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/checkpoint/dist/types.js +18 -0
- package/node_modules/@xrkseek/checkpoint/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/checkpoint/package.json +23 -0
- package/node_modules/@xrkseek/code-runtime/README.md +11 -4
- package/node_modules/@xrkseek/code-runtime/dist/index.d.ts +43 -3
- package/node_modules/@xrkseek/code-runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/code-runtime/dist/index.js +209 -7
- package/node_modules/@xrkseek/code-runtime/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/context-fragments/README.md +28 -0
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts +104 -0
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/context-fragments/dist/index.js +192 -0
- package/node_modules/@xrkseek/context-fragments/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/context-fragments/package.json +27 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +7 -4
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/invariant.d.ts +11 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/invariant.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/invariant.js +21 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/invariant.js.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts +7 -5
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js +24 -109
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/package.json +7 -0
- package/node_modules/@xrkseek/core-session/README.md +3 -1
- package/node_modules/@xrkseek/core-session/dist/invariant.d.ts +18 -0
- package/node_modules/@xrkseek/core-session/dist/invariant.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/invariant.js +114 -0
- package/node_modules/@xrkseek/core-session/dist/invariant.js.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts +2 -1
- package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/session-interchange.js +6 -1
- package/node_modules/@xrkseek/core-session/dist/session-interchange.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +37 -23
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/package.json +33 -26
- package/node_modules/@xrkseek/core-system-prompt/README.md +7 -7
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/three-layer.d.ts +55 -3
- package/node_modules/@xrkseek/core-system-prompt/dist/three-layer.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/three-layer.js +107 -11
- package/node_modules/@xrkseek/core-system-prompt/dist/three-layer.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/guards.d.ts +9 -1
- package/node_modules/@xrkseek/core-tools/dist/guards.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/guards.js +53 -9
- package/node_modules/@xrkseek/core-tools/dist/guards.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/core-tools/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/index.js +2 -1
- package/node_modules/@xrkseek/core-tools/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.d.ts +5 -0
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.js +12 -0
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.js.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js +6 -2
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/README.md +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js +7 -5
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +14 -3
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js +22 -8
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/keys.d.ts +10 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/keys.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/keys.js +89 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/keys.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +3 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +12 -8
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +138 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/README.md +12 -9
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-apply.d.ts +32 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-apply.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-apply.js +203 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-apply.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-parser.d.ts +52 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-parser.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-parser.js +260 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch-parser.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch.d.ts +27 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch.js +69 -0
- package/node_modules/@xrkseek/exec-fs/dist/apply-patch.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +6 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +72 -3
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/present.d.ts +4 -0
- package/node_modules/@xrkseek/exec-fs/dist/present.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/present.js +25 -0
- package/node_modules/@xrkseek/exec-fs/dist/present.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.d.ts +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js +10 -6
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +15 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +14 -7
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +6 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +14 -8
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/README.md +5 -3
- package/node_modules/@xrkseek/exec-memory/dist/http.d.ts +42 -0
- package/node_modules/@xrkseek/exec-memory/dist/http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/http.js +232 -0
- package/node_modules/@xrkseek/exec-memory/dist/http.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +5 -2
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/index.js +3 -1
- package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/provider.d.ts +19 -0
- package/node_modules/@xrkseek/exec-memory/dist/provider.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/provider.js +8 -0
- package/node_modules/@xrkseek/exec-memory/dist/provider.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/resolve.d.ts +25 -0
- package/node_modules/@xrkseek/exec-memory/dist/resolve.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/resolve.js +46 -0
- package/node_modules/@xrkseek/exec-memory/dist/resolve.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.d.ts +8 -4
- package/node_modules/@xrkseek/exec-memory/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/store.js +6 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/tools.js +12 -9
- package/node_modules/@xrkseek/exec-memory/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts +17 -6
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js +81 -20
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js.map +1 -1
- package/node_modules/@xrkseek/exec-memory/package.json +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.d.ts +24 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js +118 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/hardline.d.ts +24 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/hardline.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/hardline.js +93 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/hardline.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +3 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js +3 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +17 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +47 -5
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/service.js +2 -5
- package/node_modules/@xrkseek/exec-sandbox/dist/service.js.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/README.md +16 -16
- package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/config.js +50 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.js.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/fs.js +18 -1
- package/node_modules/@xrkseek/exec-ssh/dist/fs.js.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-ssh/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +15 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js +14 -9
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts +6 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +14 -10
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-voice/README.md +25 -25
- package/node_modules/@xrkseek/exec-voice/dist/index.d.ts +16 -3
- package/node_modules/@xrkseek/exec-voice/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-voice/dist/index.js +14 -8
- package/node_modules/@xrkseek/exec-voice/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-voice/dist/readiness.d.ts +26 -0
- package/node_modules/@xrkseek/exec-voice/dist/readiness.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/readiness.js +69 -0
- package/node_modules/@xrkseek/exec-voice/dist/readiness.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts +4 -1
- package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-voice/dist/tools.js +3 -14
- package/node_modules/@xrkseek/exec-voice/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/README.md +11 -11
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts +22 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +32 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-runtime-registry.d.ts +21 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-runtime-registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-runtime-registry.js +52 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-runtime-registry.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +2 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js +3 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts +9 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +34 -15
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.d.ts +7 -0
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.js +8 -2
- package/node_modules/@xrkseek/exec-web/dist/fetch-http.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js +4 -3
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +4 -2
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js +8 -3
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/outbound-allowlist.d.ts +46 -0
- package/node_modules/@xrkseek/exec-web/dist/outbound-allowlist.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/outbound-allowlist.js +144 -0
- package/node_modules/@xrkseek/exec-web/dist/outbound-allowlist.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/url-policy.d.ts +6 -1
- package/node_modules/@xrkseek/exec-web/dist/url-policy.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/url-policy.js +5 -2
- package/node_modules/@xrkseek/exec-web/dist/url-policy.js.map +1 -1
- package/node_modules/@xrkseek/im-gateway-contract/README.md +50 -0
- package/node_modules/@xrkseek/im-gateway-contract/dist/index.d.ts +77 -0
- package/node_modules/@xrkseek/im-gateway-contract/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/im-gateway-contract/dist/index.js +120 -0
- package/node_modules/@xrkseek/im-gateway-contract/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/im-gateway-contract/examples/mock-sidecar.mjs +124 -0
- package/node_modules/@xrkseek/im-gateway-contract/package.json +25 -0
- package/node_modules/@xrkseek/mcp/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.js +1 -0
- package/node_modules/@xrkseek/mcp/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/oauth-product.d.ts +31 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-product.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-product.js +72 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-product.js.map +1 -0
- package/node_modules/@xrkseek/policy/README.md +18 -15
- package/node_modules/@xrkseek/policy/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/policy/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/index.js +1 -0
- package/node_modules/@xrkseek/policy/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/permission-pre.js +1 -0
- package/node_modules/@xrkseek/policy/dist/permission-pre.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/security-guidance.d.ts +50 -0
- package/node_modules/@xrkseek/policy/dist/security-guidance.d.ts.map +1 -0
- package/node_modules/@xrkseek/policy/dist/security-guidance.js +262 -0
- package/node_modules/@xrkseek/policy/dist/security-guidance.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +81 -7
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +307 -63
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-harness/package.json +53 -52
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +7 -2
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +19 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +3 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +18 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +30 -0
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/runtime-invariants/README.md +28 -0
- package/node_modules/@xrkseek/runtime-invariants/dist/index.d.ts +94 -0
- package/node_modules/@xrkseek/runtime-invariants/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/runtime-invariants/dist/index.js +163 -0
- package/node_modules/@xrkseek/runtime-invariants/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/runtime-invariants/package.json +27 -0
- package/node_modules/@xrkseek/secrets/README.md +28 -0
- package/node_modules/@xrkseek/secrets/dist/index.d.ts +11 -0
- package/node_modules/@xrkseek/secrets/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/index.js +23 -0
- package/node_modules/@xrkseek/secrets/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/keyring.d.ts +10 -0
- package/node_modules/@xrkseek/secrets/dist/keyring.d.ts.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/keyring.js +77 -0
- package/node_modules/@xrkseek/secrets/dist/keyring.js.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/memory.d.ts +4 -0
- package/node_modules/@xrkseek/secrets/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/memory.js +21 -0
- package/node_modules/@xrkseek/secrets/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/redact.d.ts +23 -0
- package/node_modules/@xrkseek/secrets/dist/redact.d.ts.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/redact.js +38 -0
- package/node_modules/@xrkseek/secrets/dist/redact.js.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/resolve.d.ts +10 -0
- package/node_modules/@xrkseek/secrets/dist/resolve.d.ts.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/resolve.js +24 -0
- package/node_modules/@xrkseek/secrets/dist/resolve.js.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/types.d.ts +27 -0
- package/node_modules/@xrkseek/secrets/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/secrets/dist/types.js +15 -0
- package/node_modules/@xrkseek/secrets/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/secrets/package.json +29 -0
- package/node_modules/@xrkseek/server-config/dist/index.d.ts +6 -0
- package/node_modules/@xrkseek/server-config/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.js +12 -0
- package/node_modules/@xrkseek/server-config/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-cron/README.md +1 -1
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts +10 -1
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-cron/dist/index.js +9 -2
- package/node_modules/@xrkseek/server-cron/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +6 -2
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-output.d.ts +34 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-output.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-output.js +140 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-output.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.d.ts +13 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.js +67 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-tasks.d.ts +79 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-tasks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-tasks.js +230 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-tasks.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/approval-category.d.ts +25 -0
- package/node_modules/@xrkseek/server-face/dist/approval-category.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/approval-category.js +108 -0
- package/node_modules/@xrkseek/server-face/dist/approval-category.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.d.ts +17 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/approvals.js +50 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +22 -0
- package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js +22 -0
- package/node_modules/@xrkseek/server-face/dist/cost-meter-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js +14 -2
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts +87 -2
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js +456 -32
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-round-driver.d.ts +48 -0
- package/node_modules/@xrkseek/server-face/dist/goal-round-driver.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/goal-round-driver.js +69 -0
- package/node_modules/@xrkseek/server-face/dist/goal-round-driver.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts +6 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.js +45 -9
- package/node_modules/@xrkseek/server-face/dist/goal-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-tools.d.ts +13 -0
- package/node_modules/@xrkseek/server-face/dist/goal-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/goal-tools.js +131 -0
- package/node_modules/@xrkseek/server-face/dist/goal-tools.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.d.ts +10 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.js +156 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts +7 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +88 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js +62 -3
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +19 -5
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +18 -4
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/managed-worktree.d.ts +115 -0
- package/node_modules/@xrkseek/server-face/dist/managed-worktree.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/managed-worktree.js +330 -0
- package/node_modules/@xrkseek/server-face/dist/managed-worktree.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.d.ts +33 -0
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.js +352 -0
- package/node_modules/@xrkseek/server-face/dist/mcp-oauth.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts +15 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +26 -2
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/propose-skill.d.ts +20 -0
- package/node_modules/@xrkseek/server-face/dist/propose-skill.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/propose-skill.js +65 -0
- package/node_modules/@xrkseek/server-face/dist/propose-skill.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.d.ts +33 -0
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.js +366 -0
- package/node_modules/@xrkseek/server-face/dist/ralph-tool.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/reference-discovery.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/rollout-trace.d.ts +58 -0
- package/node_modules/@xrkseek/server-face/dist/rollout-trace.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/rollout-trace.js +194 -0
- package/node_modules/@xrkseek/server-face/dist/rollout-trace.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +7 -0
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +93 -4
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-export.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-export.js +74 -0
- package/node_modules/@xrkseek/server-face/dist/session-export.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.d.ts +23 -0
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.js +275 -0
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts +209 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.js +559 -0
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +67 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts +5 -0
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.js +69 -0
- package/node_modules/@xrkseek/server-face/dist/settings-document.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +220 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.js +70 -16
- package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts +14 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +614 -62
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js +7 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js +11 -0
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts +40 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js +154 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js +25 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +11 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +14 -4
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +3 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +61 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +376 -10
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/invariants-fail-fast.d.ts +16 -0
- package/node_modules/@xrkseek/server-host/dist/invariants-fail-fast.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/invariants-fail-fast.js +24 -0
- package/node_modules/@xrkseek/server-host/dist/invariants-fail-fast.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/standing-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/standing-tools.js +4 -1
- package/node_modules/@xrkseek/server-host/dist/standing-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-host/package.json +10 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +10 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js +20 -5
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +2 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.d.ts +5 -17
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js +50 -49
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.d.ts +14 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.js +30 -14
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/memory-embeddings.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js +5 -5
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/noema.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts +75 -3
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js +415 -46
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js.map +1 -1
- package/node_modules/@xrkseek/session-format/README.md +20 -0
- package/node_modules/@xrkseek/session-format/dist/catalog.d.ts +27 -0
- package/node_modules/@xrkseek/session-format/dist/catalog.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/catalog.js +36 -0
- package/node_modules/@xrkseek/session-format/dist/catalog.js.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/chain.d.ts +38 -0
- package/node_modules/@xrkseek/session-format/dist/chain.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/chain.js +86 -0
- package/node_modules/@xrkseek/session-format/dist/chain.js.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/detect.d.ts +29 -0
- package/node_modules/@xrkseek/session-format/dist/detect.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/detect.js +68 -0
- package/node_modules/@xrkseek/session-format/dist/detect.js.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/index.d.ts +12 -0
- package/node_modules/@xrkseek/session-format/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/index.js +12 -0
- package/node_modules/@xrkseek/session-format/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/interchange-version.d.ts +6 -0
- package/node_modules/@xrkseek/session-format/dist/interchange-version.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/interchange-version.js +6 -0
- package/node_modules/@xrkseek/session-format/dist/interchange-version.js.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/sqlite-schema.d.ts +31 -0
- package/node_modules/@xrkseek/session-format/dist/sqlite-schema.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-format/dist/sqlite-schema.js +52 -0
- package/node_modules/@xrkseek/session-format/dist/sqlite-schema.js.map +1 -0
- package/node_modules/@xrkseek/session-format/package.json +24 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts +18 -4
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/index.js +97 -36
- package/node_modules/@xrkseek/session-telemetry/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/spill/README.md +27 -0
- package/node_modules/@xrkseek/spill/dist/index.d.ts +11 -0
- package/node_modules/@xrkseek/spill/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/spill/dist/index.js +11 -0
- package/node_modules/@xrkseek/spill/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/spill/dist/local-store.d.ts +30 -0
- package/node_modules/@xrkseek/spill/dist/local-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/spill/dist/local-store.js +73 -0
- package/node_modules/@xrkseek/spill/dist/local-store.js.map +1 -0
- package/node_modules/@xrkseek/spill/dist/policy.d.ts +59 -0
- package/node_modules/@xrkseek/spill/dist/policy.d.ts.map +1 -0
- package/node_modules/@xrkseek/spill/dist/policy.js +143 -0
- package/node_modules/@xrkseek/spill/dist/policy.js.map +1 -0
- package/node_modules/@xrkseek/spill/dist/types.d.ts +46 -0
- package/node_modules/@xrkseek/spill/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/spill/dist/types.js +8 -0
- package/node_modules/@xrkseek/spill/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/spill/package.json +27 -0
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js +2 -0
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +1 -0
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-propose.d.ts +71 -0
- package/node_modules/@xrkseek/workspace/dist/skill-propose.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/skill-propose.js +259 -0
- package/node_modules/@xrkseek/workspace/dist/skill-propose.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/README.md +46 -45
- package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +46 -45
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/gitignore.d.ts +37 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/gitignore.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/gitignore.js +91 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/gitignore.js.map +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts +7 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js +46 -4
- package/node_modules/@xrkseek/xrk-file-reference-local/dist/search.js.map +1 -1
- package/node_modules/@xrkseek/xrk-file-reference-local/package.json +30 -29
- package/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/ignore/README.md +452 -0
- package/node_modules/ignore/index.d.ts +81 -0
- package/node_modules/ignore/index.js +793 -0
- package/node_modules/ignore/legacy.js +690 -0
- package/node_modules/ignore/package.json +87 -0
- package/package.json +17 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shell
|
|
3
|
-
* Spawns configured commands with JSON on stdin
|
|
2
|
+
* Shell hooks from Claude/Codex-compatible `hooks.json`.
|
|
3
|
+
* Spawns configured commands with JSON on stdin.
|
|
4
|
+
* Tool events (Pre/PostToolUse) can block; lifecycle events are notify-first.
|
|
4
5
|
* Does not expand `kind: hooks` (in-process) — file-driven scripts only.
|
|
5
6
|
*/
|
|
6
7
|
import { spawn } from "node:child_process";
|
|
@@ -8,6 +9,42 @@ import { readFileSync } from "node:fs";
|
|
|
8
9
|
import path from "node:path";
|
|
9
10
|
/** Default per-hook timeout (Hermes-scale; Claude/DSH use 600s — override in config). */
|
|
10
11
|
export const DEFAULT_SHELL_HOOK_TIMEOUT_MS = 60_000;
|
|
12
|
+
/**
|
|
13
|
+
* Upstream-compatible event names (Claude PascalCase).
|
|
14
|
+
* Codex camelCase aliases are normalized at parse time.
|
|
15
|
+
*/
|
|
16
|
+
export const SHELL_HOOK_EVENTS = [
|
|
17
|
+
"PreToolUse",
|
|
18
|
+
"PostToolUse",
|
|
19
|
+
"PermissionRequest",
|
|
20
|
+
"UserPromptSubmit",
|
|
21
|
+
"Stop",
|
|
22
|
+
"PreCompact",
|
|
23
|
+
"PostCompact",
|
|
24
|
+
"SubagentStart",
|
|
25
|
+
"SubagentStop",
|
|
26
|
+
"SessionStart",
|
|
27
|
+
];
|
|
28
|
+
const EVENT_SET = new Set(SHELL_HOOK_EVENTS);
|
|
29
|
+
/** Codex app-server camelCase → Claude PascalCase. */
|
|
30
|
+
const EVENT_ALIASES = {
|
|
31
|
+
preToolUse: "PreToolUse",
|
|
32
|
+
postToolUse: "PostToolUse",
|
|
33
|
+
permissionRequest: "PermissionRequest",
|
|
34
|
+
userPromptSubmit: "UserPromptSubmit",
|
|
35
|
+
stop: "Stop",
|
|
36
|
+
preCompact: "PreCompact",
|
|
37
|
+
postCompact: "PostCompact",
|
|
38
|
+
subagentStart: "SubagentStart",
|
|
39
|
+
subagentStop: "SubagentStop",
|
|
40
|
+
sessionStart: "SessionStart",
|
|
41
|
+
};
|
|
42
|
+
/** Events whose matcher subject is a tool name. */
|
|
43
|
+
const TOOL_MATCH_EVENTS = new Set([
|
|
44
|
+
"PreToolUse",
|
|
45
|
+
"PostToolUse",
|
|
46
|
+
"PermissionRequest",
|
|
47
|
+
]);
|
|
11
48
|
const CLAUDE_LITERAL = /^[A-Za-z0-9_|]+$/;
|
|
12
49
|
function asObject(value) {
|
|
13
50
|
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
@@ -32,24 +69,26 @@ export function toolNameMatches(matcher, toolName) {
|
|
|
32
69
|
return false;
|
|
33
70
|
}
|
|
34
71
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const hooksMap = root ? (asObject(root.hooks) ?? root) : undefined;
|
|
42
|
-
if (!hooksMap)
|
|
43
|
-
return [];
|
|
44
|
-
const groups = hooksMap.PreToolUse;
|
|
72
|
+
function normalizeEventName(raw) {
|
|
73
|
+
if (EVENT_SET.has(raw))
|
|
74
|
+
return raw;
|
|
75
|
+
return EVENT_ALIASES[raw];
|
|
76
|
+
}
|
|
77
|
+
function parseCommandGroups(event, groups) {
|
|
45
78
|
if (!Array.isArray(groups))
|
|
46
79
|
return [];
|
|
47
80
|
const out = [];
|
|
81
|
+
const dropMatcher = event === "UserPromptSubmit" ||
|
|
82
|
+
event === "Stop" ||
|
|
83
|
+
event === "PreCompact" ||
|
|
84
|
+
event === "PostCompact";
|
|
48
85
|
for (const rawGroup of groups) {
|
|
49
86
|
const group = asObject(rawGroup);
|
|
50
87
|
if (!group || !Array.isArray(group.hooks))
|
|
51
88
|
continue;
|
|
52
|
-
const matcher = typeof group.matcher
|
|
89
|
+
const matcher = dropMatcher || typeof group.matcher !== "string"
|
|
90
|
+
? undefined
|
|
91
|
+
: group.matcher;
|
|
53
92
|
for (const rawHook of group.hooks) {
|
|
54
93
|
const hook = asObject(rawHook);
|
|
55
94
|
if (!hook)
|
|
@@ -57,13 +96,19 @@ export function parsePreToolUseHooks(raw) {
|
|
|
57
96
|
const type = typeof hook.type === "string" ? hook.type : "command";
|
|
58
97
|
if (type !== "command")
|
|
59
98
|
continue;
|
|
99
|
+
if (hook.async === true)
|
|
100
|
+
continue;
|
|
60
101
|
if (typeof hook.command !== "string" || !hook.command.trim())
|
|
61
102
|
continue;
|
|
62
103
|
const timeoutSec = typeof hook.timeout === "number" &&
|
|
63
104
|
Number.isFinite(hook.timeout) &&
|
|
64
105
|
hook.timeout > 0
|
|
65
106
|
? hook.timeout
|
|
66
|
-
:
|
|
107
|
+
: typeof hook.timeoutSec === "number" &&
|
|
108
|
+
Number.isFinite(hook.timeoutSec) &&
|
|
109
|
+
hook.timeoutSec > 0
|
|
110
|
+
? hook.timeoutSec
|
|
111
|
+
: undefined;
|
|
67
112
|
out.push({
|
|
68
113
|
command: hook.command,
|
|
69
114
|
...(matcher !== undefined ? { matcher } : {}),
|
|
@@ -75,19 +120,61 @@ export function parsePreToolUseHooks(raw) {
|
|
|
75
120
|
}
|
|
76
121
|
return out;
|
|
77
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Parse Claude/Codex-style `{ hooks: { PreToolUse: [...] } }` or a bare event map.
|
|
125
|
+
* Only `type: command` (default) entries survive; unknown events are ignored.
|
|
126
|
+
*/
|
|
127
|
+
export function parseShellHooksConfig(raw) {
|
|
128
|
+
const root = asObject(raw);
|
|
129
|
+
const hooksMap = root ? (asObject(root.hooks) ?? root) : undefined;
|
|
130
|
+
if (!hooksMap)
|
|
131
|
+
return {};
|
|
132
|
+
const out = {};
|
|
133
|
+
for (const [key, groups] of Object.entries(hooksMap)) {
|
|
134
|
+
const event = normalizeEventName(key);
|
|
135
|
+
if (!event)
|
|
136
|
+
continue;
|
|
137
|
+
const commands = parseCommandGroups(event, groups);
|
|
138
|
+
if (commands.length === 0)
|
|
139
|
+
continue;
|
|
140
|
+
const bucket = out[event] ?? [];
|
|
141
|
+
bucket.push(...commands);
|
|
142
|
+
out[event] = bucket;
|
|
143
|
+
}
|
|
144
|
+
return out;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Parse Claude-style PreToolUse only (back-compat).
|
|
148
|
+
* Prefer {@link parseShellHooksConfig} for multi-event configs.
|
|
149
|
+
*/
|
|
150
|
+
export function parsePreToolUseHooks(raw) {
|
|
151
|
+
return [...(parseShellHooksConfig(raw).PreToolUse ?? [])];
|
|
152
|
+
}
|
|
78
153
|
/** Read hooks.json paths; missing / malformed files contribute nothing. */
|
|
79
|
-
export function
|
|
80
|
-
const
|
|
154
|
+
export function loadShellHooksConfig(paths) {
|
|
155
|
+
const merged = {};
|
|
81
156
|
for (const filePath of paths) {
|
|
82
157
|
try {
|
|
83
158
|
const text = readFileSync(filePath, "utf8");
|
|
84
|
-
|
|
159
|
+
const parsed = parseShellHooksConfig(JSON.parse(text));
|
|
160
|
+
for (const event of SHELL_HOOK_EVENTS) {
|
|
161
|
+
const cmds = parsed[event];
|
|
162
|
+
if (!cmds || cmds.length === 0)
|
|
163
|
+
continue;
|
|
164
|
+
const bucket = merged[event] ?? [];
|
|
165
|
+
bucket.push(...cmds);
|
|
166
|
+
merged[event] = bucket;
|
|
167
|
+
}
|
|
85
168
|
}
|
|
86
169
|
catch {
|
|
87
170
|
// Absent or invalid config must not abort agent composition.
|
|
88
171
|
}
|
|
89
172
|
}
|
|
90
|
-
return
|
|
173
|
+
return merged;
|
|
174
|
+
}
|
|
175
|
+
/** Read hooks.json paths; PreToolUse only (back-compat). */
|
|
176
|
+
export function loadShellHookCommands(paths) {
|
|
177
|
+
return [...(loadShellHooksConfig(paths).PreToolUse ?? [])];
|
|
91
178
|
}
|
|
92
179
|
/** Default paths: product home then workspace `.xrk/hooks.json`. */
|
|
93
180
|
export function defaultShellHookPaths(workspaceRoot, productHome) {
|
|
@@ -188,6 +275,101 @@ function decisionFromStdout(stdout) {
|
|
|
188
275
|
}
|
|
189
276
|
return null;
|
|
190
277
|
}
|
|
278
|
+
function postDecisionFromStdout(stdout) {
|
|
279
|
+
const trimmed = stdout.trim();
|
|
280
|
+
if (!trimmed.startsWith("{"))
|
|
281
|
+
return null;
|
|
282
|
+
let parsed;
|
|
283
|
+
try {
|
|
284
|
+
const value = JSON.parse(trimmed);
|
|
285
|
+
if (!asObject(value))
|
|
286
|
+
return null;
|
|
287
|
+
parsed = value;
|
|
288
|
+
}
|
|
289
|
+
catch {
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
if (parsed.decision === "block") {
|
|
293
|
+
const reason = typeof parsed.reason === "string" && parsed.reason.trim()
|
|
294
|
+
? parsed.reason.trim()
|
|
295
|
+
: "blocked by shell hook";
|
|
296
|
+
return { action: "block", reason };
|
|
297
|
+
}
|
|
298
|
+
const specific = asObject(parsed.hookSpecificOutput);
|
|
299
|
+
if (specific?.decision === "block") {
|
|
300
|
+
const reason = (typeof specific.reason === "string" && specific.reason.trim()) ||
|
|
301
|
+
(typeof parsed.reason === "string" && parsed.reason.trim()) ||
|
|
302
|
+
"blocked by shell hook";
|
|
303
|
+
return { action: "block", reason };
|
|
304
|
+
}
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
function additionalContextsFromStdout(stdout) {
|
|
308
|
+
const trimmed = stdout.trim();
|
|
309
|
+
if (!trimmed.startsWith("{"))
|
|
310
|
+
return [];
|
|
311
|
+
try {
|
|
312
|
+
const value = JSON.parse(trimmed);
|
|
313
|
+
const parsed = asObject(value);
|
|
314
|
+
if (!parsed)
|
|
315
|
+
return [];
|
|
316
|
+
const out = [];
|
|
317
|
+
if (typeof parsed.additionalContext === "string" && parsed.additionalContext.trim()) {
|
|
318
|
+
out.push(parsed.additionalContext.trim());
|
|
319
|
+
}
|
|
320
|
+
const specific = asObject(parsed.hookSpecificOutput);
|
|
321
|
+
if (typeof specific?.additionalContext === "string" &&
|
|
322
|
+
specific.additionalContext.trim()) {
|
|
323
|
+
out.push(specific.additionalContext.trim());
|
|
324
|
+
}
|
|
325
|
+
return out;
|
|
326
|
+
}
|
|
327
|
+
catch {
|
|
328
|
+
return [];
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function resolveCwd(cwd) {
|
|
332
|
+
if (typeof cwd === "function")
|
|
333
|
+
return cwd();
|
|
334
|
+
return cwd ?? process.cwd();
|
|
335
|
+
}
|
|
336
|
+
async function runHookList(options) {
|
|
337
|
+
const results = [];
|
|
338
|
+
const stdinBase = {
|
|
339
|
+
hook_event_name: options.event,
|
|
340
|
+
cwd: options.cwd,
|
|
341
|
+
...options.payload,
|
|
342
|
+
};
|
|
343
|
+
for (const hook of options.commands) {
|
|
344
|
+
if (TOOL_MATCH_EVENTS.has(options.event) &&
|
|
345
|
+
options.matcherSubject !== undefined &&
|
|
346
|
+
!toolNameMatches(hook.matcher, options.matcherSubject)) {
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
if ((options.event === "SubagentStart" || options.event === "SubagentStop") &&
|
|
350
|
+
hook.matcher !== undefined &&
|
|
351
|
+
!isMatchAll(hook.matcher) &&
|
|
352
|
+
options.matcherSubject !== undefined &&
|
|
353
|
+
!toolNameMatches(hook.matcher, options.matcherSubject)) {
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
try {
|
|
357
|
+
const result = await options.runner({
|
|
358
|
+
command: hook.command,
|
|
359
|
+
cwd: options.cwd,
|
|
360
|
+
env: options.env,
|
|
361
|
+
stdin: `${JSON.stringify(stdinBase)}\n`,
|
|
362
|
+
timeoutMs: hook.timeoutMs ?? options.defaultTimeoutMs,
|
|
363
|
+
...(options.signal ? { signal: options.signal } : {}),
|
|
364
|
+
});
|
|
365
|
+
results.push(result);
|
|
366
|
+
}
|
|
367
|
+
catch {
|
|
368
|
+
// fail-open
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return results;
|
|
372
|
+
}
|
|
191
373
|
/**
|
|
192
374
|
* PreHandler that runs matched shell hooks in order.
|
|
193
375
|
* Exit 2 or JSON deny → deny; spawn/timeout/other → fail-open continue.
|
|
@@ -200,37 +382,27 @@ export function createShellHookPre(options) {
|
|
|
200
382
|
if (commands.length === 0) {
|
|
201
383
|
return { action: "continue", args: ctx.args };
|
|
202
384
|
}
|
|
203
|
-
const cwd =
|
|
204
|
-
? options.cwd()
|
|
205
|
-
: (options.cwd ?? process.cwd());
|
|
206
|
-
const payload = JSON.stringify({
|
|
207
|
-
hook_event_name: "PreToolUse",
|
|
208
|
-
tool_name: ctx.call.name,
|
|
209
|
-
tool_input: ctx.args,
|
|
210
|
-
tool_use_id: ctx.call.id,
|
|
211
|
-
cwd,
|
|
212
|
-
});
|
|
385
|
+
const cwd = resolveCwd(options.cwd);
|
|
213
386
|
const env = {
|
|
214
387
|
...process.env,
|
|
215
388
|
...(options.env ?? {}),
|
|
216
389
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
390
|
+
const results = await runHookList({
|
|
391
|
+
commands,
|
|
392
|
+
event: "PreToolUse",
|
|
393
|
+
payload: {
|
|
394
|
+
tool_name: ctx.call.name,
|
|
395
|
+
tool_input: ctx.args,
|
|
396
|
+
tool_use_id: ctx.call.id,
|
|
397
|
+
},
|
|
398
|
+
matcherSubject: ctx.call.name,
|
|
399
|
+
cwd,
|
|
400
|
+
env,
|
|
401
|
+
defaultTimeoutMs,
|
|
402
|
+
runner,
|
|
403
|
+
...(ctx.signal ? { signal: ctx.signal } : {}),
|
|
404
|
+
});
|
|
405
|
+
for (const result of results) {
|
|
234
406
|
if (result.exitCode === 2) {
|
|
235
407
|
const reason = result.stderr.trim() || "blocked by shell hook (exit 2)";
|
|
236
408
|
return { action: "deny", reason };
|
|
@@ -240,9 +412,206 @@ export function createShellHookPre(options) {
|
|
|
240
412
|
if (fromJson)
|
|
241
413
|
return fromJson;
|
|
242
414
|
}
|
|
243
|
-
// Other exits / null (timeout) → fail-open.
|
|
244
415
|
}
|
|
245
416
|
return { action: "continue", args: ctx.args };
|
|
246
417
|
};
|
|
247
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* PostHandler for PostToolUse. Exit 2 / JSON decision:block → block;
|
|
421
|
+
* additionalContext folds into the pipeline; other failures fail-open.
|
|
422
|
+
*/
|
|
423
|
+
export function createShellHookPost(options) {
|
|
424
|
+
const commands = options.commands;
|
|
425
|
+
const runner = options.runner ?? defaultRunner;
|
|
426
|
+
const defaultTimeoutMs = options.defaultTimeoutMs ?? DEFAULT_SHELL_HOOK_TIMEOUT_MS;
|
|
427
|
+
return async (ctx) => {
|
|
428
|
+
if (commands.length === 0) {
|
|
429
|
+
return { action: "accept" };
|
|
430
|
+
}
|
|
431
|
+
const cwd = resolveCwd(options.cwd);
|
|
432
|
+
const env = {
|
|
433
|
+
...process.env,
|
|
434
|
+
...(options.env ?? {}),
|
|
435
|
+
};
|
|
436
|
+
const results = await runHookList({
|
|
437
|
+
commands,
|
|
438
|
+
event: "PostToolUse",
|
|
439
|
+
payload: {
|
|
440
|
+
tool_name: ctx.call.name,
|
|
441
|
+
tool_input: ctx.args,
|
|
442
|
+
tool_use_id: ctx.call.id,
|
|
443
|
+
tool_response: ctx.result
|
|
444
|
+
? {
|
|
445
|
+
content: ctx.result.content,
|
|
446
|
+
isError: ctx.result.isError === true,
|
|
447
|
+
}
|
|
448
|
+
: undefined,
|
|
449
|
+
skipped_body: ctx.skippedBody === true,
|
|
450
|
+
},
|
|
451
|
+
matcherSubject: ctx.call.name,
|
|
452
|
+
cwd,
|
|
453
|
+
env,
|
|
454
|
+
defaultTimeoutMs,
|
|
455
|
+
runner,
|
|
456
|
+
...(ctx.signal ? { signal: ctx.signal } : {}),
|
|
457
|
+
});
|
|
458
|
+
for (const result of results) {
|
|
459
|
+
if (result.exitCode === 2) {
|
|
460
|
+
const reason = result.stderr.trim() || "blocked by shell hook (exit 2)";
|
|
461
|
+
return { action: "block", reason };
|
|
462
|
+
}
|
|
463
|
+
if (result.exitCode === 0) {
|
|
464
|
+
for (const text of additionalContextsFromStdout(result.stdout)) {
|
|
465
|
+
ctx.additionalContexts.push(text);
|
|
466
|
+
}
|
|
467
|
+
const blocked = postDecisionFromStdout(result.stdout);
|
|
468
|
+
if (blocked)
|
|
469
|
+
return blocked;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
return { action: "accept" };
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Lifecycle shell hooks (turn / compact / subagent / session).
|
|
477
|
+
* Notify-first: never blocks the caller; use {@link ShellLifecycleHooks.run} to await.
|
|
478
|
+
*/
|
|
479
|
+
export function createShellLifecycleHooks(options) {
|
|
480
|
+
const config = options.config;
|
|
481
|
+
const runner = options.runner ?? defaultRunner;
|
|
482
|
+
const defaultTimeoutMs = options.defaultTimeoutMs ?? DEFAULT_SHELL_HOOK_TIMEOUT_MS;
|
|
483
|
+
const sessionId = options.sessionId;
|
|
484
|
+
const run = async (event, payload = {}, signal) => {
|
|
485
|
+
const commands = config[event];
|
|
486
|
+
if (!commands || commands.length === 0)
|
|
487
|
+
return;
|
|
488
|
+
const cwd = resolveCwd(options.cwd);
|
|
489
|
+
const env = {
|
|
490
|
+
...process.env,
|
|
491
|
+
...(options.env ?? {}),
|
|
492
|
+
};
|
|
493
|
+
const matcherSubject = typeof payload.agent_type === "string"
|
|
494
|
+
? payload.agent_type
|
|
495
|
+
: typeof payload.tool_name === "string"
|
|
496
|
+
? payload.tool_name
|
|
497
|
+
: "general-purpose";
|
|
498
|
+
await runHookList({
|
|
499
|
+
commands,
|
|
500
|
+
event,
|
|
501
|
+
payload: {
|
|
502
|
+
...(sessionId !== undefined ? { session_id: sessionId } : {}),
|
|
503
|
+
...payload,
|
|
504
|
+
},
|
|
505
|
+
matcherSubject,
|
|
506
|
+
cwd,
|
|
507
|
+
env,
|
|
508
|
+
defaultTimeoutMs,
|
|
509
|
+
runner,
|
|
510
|
+
...(signal ? { signal } : {}),
|
|
511
|
+
});
|
|
512
|
+
};
|
|
513
|
+
return {
|
|
514
|
+
has(event) {
|
|
515
|
+
return (config[event]?.length ?? 0) > 0;
|
|
516
|
+
},
|
|
517
|
+
fire(event, payload, signal) {
|
|
518
|
+
void run(event, payload, signal).catch(() => {
|
|
519
|
+
/* fail-open */
|
|
520
|
+
});
|
|
521
|
+
},
|
|
522
|
+
run,
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function permissionDecisionFromStdout(stdout) {
|
|
526
|
+
const trimmed = stdout.trim();
|
|
527
|
+
if (!trimmed.startsWith("{"))
|
|
528
|
+
return null;
|
|
529
|
+
let parsed;
|
|
530
|
+
try {
|
|
531
|
+
const value = JSON.parse(trimmed);
|
|
532
|
+
if (!asObject(value))
|
|
533
|
+
return null;
|
|
534
|
+
parsed = value;
|
|
535
|
+
}
|
|
536
|
+
catch {
|
|
537
|
+
return null;
|
|
538
|
+
}
|
|
539
|
+
const specific = asObject(parsed.hookSpecificOutput);
|
|
540
|
+
const specificDecision = typeof specific?.decision === "string" ? specific.decision : undefined;
|
|
541
|
+
const top = typeof parsed.decision === "string" ? parsed.decision : undefined;
|
|
542
|
+
const decision = specificDecision ?? top;
|
|
543
|
+
if (decision === "allow" || decision === "approve") {
|
|
544
|
+
return { action: "allow" };
|
|
545
|
+
}
|
|
546
|
+
if (decision === "deny" || decision === "block") {
|
|
547
|
+
const reason = (typeof specific?.reason === "string" && specific.reason.trim()) ||
|
|
548
|
+
(typeof parsed.reason === "string" && parsed.reason.trim()) ||
|
|
549
|
+
"denied by PermissionRequest hook";
|
|
550
|
+
return { action: "deny", reason };
|
|
551
|
+
}
|
|
552
|
+
const permission = specific?.permissionDecision;
|
|
553
|
+
if (permission === "allow")
|
|
554
|
+
return { action: "allow" };
|
|
555
|
+
if (permission === "deny") {
|
|
556
|
+
const reason = (typeof specific?.permissionDecisionReason === "string" &&
|
|
557
|
+
specific.permissionDecisionReason.trim()) ||
|
|
558
|
+
(typeof parsed.reason === "string" && parsed.reason.trim()) ||
|
|
559
|
+
"denied by PermissionRequest hook";
|
|
560
|
+
return { action: "deny", reason };
|
|
561
|
+
}
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Run Claude/Codex `PermissionRequest` command hooks before the human UI.
|
|
566
|
+
* Exit 2 / JSON deny → deny; JSON allow → allow; otherwise undefined (ask human).
|
|
567
|
+
*/
|
|
568
|
+
export function createPermissionRequestGate(options) {
|
|
569
|
+
const commands = options.commands;
|
|
570
|
+
const runner = options.runner ?? defaultRunner;
|
|
571
|
+
const defaultTimeoutMs = options.defaultTimeoutMs ?? DEFAULT_SHELL_HOOK_TIMEOUT_MS;
|
|
572
|
+
return async (args) => {
|
|
573
|
+
if (commands.length === 0)
|
|
574
|
+
return undefined;
|
|
575
|
+
const cwd = resolveCwd(options.cwd);
|
|
576
|
+
const env = {
|
|
577
|
+
...process.env,
|
|
578
|
+
...(options.env ?? {}),
|
|
579
|
+
};
|
|
580
|
+
const results = await runHookList({
|
|
581
|
+
commands,
|
|
582
|
+
event: "PermissionRequest",
|
|
583
|
+
payload: {
|
|
584
|
+
...(options.sessionId !== undefined
|
|
585
|
+
? { session_id: options.sessionId }
|
|
586
|
+
: {}),
|
|
587
|
+
tool_name: args.toolName,
|
|
588
|
+
tool_input: args.toolInput,
|
|
589
|
+
...(args.toolUseId !== undefined
|
|
590
|
+
? { tool_use_id: args.toolUseId }
|
|
591
|
+
: {}),
|
|
592
|
+
...(args.category !== undefined ? { category: args.category } : {}),
|
|
593
|
+
},
|
|
594
|
+
matcherSubject: args.toolName,
|
|
595
|
+
cwd,
|
|
596
|
+
env,
|
|
597
|
+
defaultTimeoutMs,
|
|
598
|
+
runner,
|
|
599
|
+
...(args.signal ? { signal: args.signal } : {}),
|
|
600
|
+
});
|
|
601
|
+
for (const result of results) {
|
|
602
|
+
if (result.exitCode === 2) {
|
|
603
|
+
return {
|
|
604
|
+
action: "deny",
|
|
605
|
+
reason: result.stderr.trim() || "denied by PermissionRequest hook (exit 2)",
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
if (result.exitCode === 0) {
|
|
609
|
+
const fromJson = permissionDecisionFromStdout(result.stdout);
|
|
610
|
+
if (fromJson)
|
|
611
|
+
return fromJson;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return undefined;
|
|
615
|
+
};
|
|
616
|
+
}
|
|
248
617
|
//# sourceMappingURL=shell-hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-hooks.js","sourceRoot":"","sources":["../src/shell-hooks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,yFAAyF;AACzF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;AAmCpD,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAE1C,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAS,UAAU,CAAC,OAA2B;IAC7C,OAAO,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,EAAE,IAAI,OAAO,KAAK,GAAG,CAAC;AACpE,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,eAAe,CAC7B,OAA2B,EAC3B,QAAgB;IAEhB,IAAI,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,MAAM,OAAO,GAAG,OAAiB,CAAC;IAClC,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,CAAC;QACH,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5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,QAAQ;YAC7B,GAAG;YACH,GAAG;YACH,gBAAgB;YAChB,MAAM;YACN,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAChD,CAAC,CAAC;QACH,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;gBAC1B,OAAO;oBACL,MAAM,EAAE,MAAM;oBACd,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,2CAA2C;iBAC5E,CAAC;YACJ,CAAC;YACD,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;gBAC1B,MAAM,QAAQ,GAAG,4BAA4B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBAC7D,IAAI,QAAQ;oBAAE,OAAO,QAAQ,CAAC;YAChC,CAAC;QACH,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# `@xrkseek/session-format`
|
|
2
|
+
|
|
3
|
+
> **读者**:贡献者 · 会话持久化维护者。
|
|
4
|
+
|
|
5
|
+
相邻世代迁移链(学自 dsh `session-format`)+ 制品探测。**产品立场([ADR-0009](../../docs/adr/0009-session-format-v3-vs-sqlite-schema-v3.md))**:
|
|
6
|
+
|
|
7
|
+
| 缝 | 状态 |
|
|
8
|
+
|----|------|
|
|
9
|
+
| `xrk-interchange` | 角色 JSONL ↔ 事件(`importSessionInterchange`) |
|
|
10
|
+
| `xrk-sqlite-schema` | `sessions.db` 物理 schema,相邻 0→1→2→3 |
|
|
11
|
+
| `xrk-packed-jsonl` | 导出 packed 行 / `.jsonl.zst` |
|
|
12
|
+
| 第三方 Session Format V3 | **不采纳**;探测到则 `refused` |
|
|
13
|
+
|
|
14
|
+
互通 ≠ Format V3。
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
> **Audience**: Contributors · session persistence maintainers.
|
|
19
|
+
|
|
20
|
+
Adjacent migration chain (from dsh `session-format`) + artifact detect. **Product stance ([ADR-0009](../../docs/adr/0009-session-format-v3-vs-sqlite-schema-v3.md))**: interchange + SQLite schema edges are first-class; third-party Session Format V3 is **not** adopted. Interop ≠ Format V3.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build-static catalog of XRK session format seams (interop ≠ Format V3).
|
|
3
|
+
*/
|
|
4
|
+
/** Named durable seams this repo owns. */
|
|
5
|
+
export declare const SESSION_FORMAT_SEAMS: Readonly<{
|
|
6
|
+
/** Role JSONL ↔ XRK events. Not written to `sessions.db`. */
|
|
7
|
+
interchange: Readonly<{
|
|
8
|
+
id: "xrk-interchange";
|
|
9
|
+
currentVersion: 1;
|
|
10
|
+
}>;
|
|
11
|
+
/** Physical `sessions.db` schema (ADR-0009). */
|
|
12
|
+
sqliteSchema: Readonly<{
|
|
13
|
+
id: "xrk-sqlite-schema";
|
|
14
|
+
currentVersion: 3;
|
|
15
|
+
}>;
|
|
16
|
+
/** Export sidecar: packed chunk rows + optional zstd. */
|
|
17
|
+
packedJsonl: Readonly<{
|
|
18
|
+
id: "xrk-packed-jsonl";
|
|
19
|
+
}>;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Explicit product stance: third-party Session Format V3 is **not** a seam.
|
|
23
|
+
* @see docs/adr/0009-session-format-v3-vs-sqlite-schema-v3.md
|
|
24
|
+
*/
|
|
25
|
+
export declare const SESSION_FORMAT_V3_ADOPTED: false;
|
|
26
|
+
export declare function sessionFormatCatalogSummary(): string;
|
|
27
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB;IAC/B,6DAA6D;;;;;IAK7D,gDAAgD;;;;;IAKhD,yDAAyD;;;;EAIzD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAG,KAAc,CAAC;AAExD,wBAAgB,2BAA2B,IAAI,MAAM,CAOpD"}
|