@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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* One-shot external agent runtimes for the subagent tool.
|
|
2
|
+
* One-shot and continuable external agent runtimes for the subagent tool.
|
|
3
3
|
* In-process delegation stays the default; these kinds spawn a child process.
|
|
4
4
|
*/
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
@@ -20,21 +20,29 @@ function splitCommand(raw) {
|
|
|
20
20
|
}
|
|
21
21
|
return { command, args: parts.slice(1) };
|
|
22
22
|
}
|
|
23
|
-
export function resolveExternalAgentLaunch(kind, env, prompt) {
|
|
23
|
+
export function resolveExternalAgentLaunch(kind, env, prompt, product) {
|
|
24
24
|
if (kind === "acp") {
|
|
25
|
-
const
|
|
25
|
+
const envRaw = String(env.XRK_ACP_AGENT ?? "").trim();
|
|
26
|
+
const raw = envRaw ||
|
|
27
|
+
(typeof product?.acpAgent === "string" ? product.acpAgent.trim() : "");
|
|
26
28
|
if (!raw) {
|
|
27
|
-
throw new ExternalAgentError("ACP runtime requires
|
|
29
|
+
throw new ExternalAgentError("ACP runtime requires Settings external-agent.acpAgent or XRK_ACP_AGENT (e.g. xrkh acp)", "EXTERNAL_AGENT_CONFIG");
|
|
28
30
|
}
|
|
29
31
|
const spec = splitCommand(raw);
|
|
30
32
|
return { ...spec, protocol: "acp" };
|
|
31
33
|
}
|
|
32
34
|
if (kind === "app-server") {
|
|
33
|
-
const
|
|
35
|
+
const envRaw = String(env.XRK_CODEX_APP_SERVER ?? "").trim();
|
|
36
|
+
const productRaw = typeof product?.codexAppServer === "string"
|
|
37
|
+
? product.codexAppServer.trim()
|
|
38
|
+
: "";
|
|
39
|
+
const raw = envRaw || productRaw || "codex app-server";
|
|
34
40
|
const spec = splitCommand(raw);
|
|
35
41
|
return { ...spec, protocol: "app-server" };
|
|
36
42
|
}
|
|
37
|
-
const
|
|
43
|
+
const envRaw = String(env.XRK_CLAUDE_CODE ?? "").trim();
|
|
44
|
+
const productRaw = typeof product?.claudeCode === "string" ? product.claudeCode.trim() : "";
|
|
45
|
+
const raw = envRaw || productRaw || "claude";
|
|
38
46
|
const spec = splitCommand(raw);
|
|
39
47
|
return {
|
|
40
48
|
command: spec.command,
|
|
@@ -42,14 +50,34 @@ export function resolveExternalAgentLaunch(kind, env, prompt) {
|
|
|
42
50
|
protocol: "print",
|
|
43
51
|
};
|
|
44
52
|
}
|
|
53
|
+
/** Normalize Face `external-agent` section into launch product fields. */
|
|
54
|
+
export function parseExternalAgentProduct(raw) {
|
|
55
|
+
if (raw === null || raw === undefined)
|
|
56
|
+
return undefined;
|
|
57
|
+
if (typeof raw !== "object" || Array.isArray(raw))
|
|
58
|
+
return undefined;
|
|
59
|
+
const o = raw;
|
|
60
|
+
const acpAgent = typeof o.acpAgent === "string" ? o.acpAgent.trim() : "";
|
|
61
|
+
const codexAppServer = typeof o.codexAppServer === "string" ? o.codexAppServer.trim() : "";
|
|
62
|
+
const claudeCode = typeof o.claudeCode === "string" ? o.claudeCode.trim() : "";
|
|
63
|
+
if (!acpAgent && !codexAppServer && !claudeCode)
|
|
64
|
+
return undefined;
|
|
65
|
+
return {
|
|
66
|
+
...(acpAgent ? { acpAgent } : {}),
|
|
67
|
+
...(codexAppServer ? { codexAppServer } : {}),
|
|
68
|
+
...(claudeCode ? { claudeCode } : {}),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
45
71
|
function writeLine(child, frame) {
|
|
46
72
|
child.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", ...frame })}\n`);
|
|
47
73
|
}
|
|
48
|
-
|
|
74
|
+
/** Keep stdin open for multi-turn ACP / app-server sessions. */
|
|
75
|
+
function openJsonRpcIo(child) {
|
|
49
76
|
let nextId = 1;
|
|
50
77
|
const pending = new Map();
|
|
51
78
|
const notes = [];
|
|
52
79
|
const rl = createInterface({ input: child.stdout, crlfDelay: Infinity });
|
|
80
|
+
let closed = false;
|
|
53
81
|
rl.on("line", (line) => {
|
|
54
82
|
const trimmed = line.trim();
|
|
55
83
|
if (!trimmed)
|
|
@@ -84,34 +112,51 @@ async function speakJsonRpc(child, run) {
|
|
|
84
112
|
for (const fn of notes)
|
|
85
113
|
fn(msg);
|
|
86
114
|
});
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
115
|
+
return {
|
|
116
|
+
request(method, params) {
|
|
117
|
+
if (closed) {
|
|
118
|
+
return Promise.reject(new ExternalAgentError("external rpc closed"));
|
|
119
|
+
}
|
|
120
|
+
const id = nextId++;
|
|
121
|
+
const promise = new Promise((resolve, reject) => {
|
|
122
|
+
pending.set(id, { resolve, reject });
|
|
123
|
+
});
|
|
124
|
+
writeLine(child, { id, method, params });
|
|
125
|
+
return promise;
|
|
126
|
+
},
|
|
127
|
+
notify(method, params) {
|
|
128
|
+
if (closed)
|
|
129
|
+
return;
|
|
130
|
+
writeLine(child, { method, ...(params !== undefined ? { params } : {}) });
|
|
131
|
+
},
|
|
132
|
+
onNotification(fn) {
|
|
133
|
+
notes.push(fn);
|
|
134
|
+
},
|
|
135
|
+
close() {
|
|
136
|
+
if (closed)
|
|
137
|
+
return;
|
|
138
|
+
closed = true;
|
|
139
|
+
rl.close();
|
|
140
|
+
for (const waiter of pending.values()) {
|
|
141
|
+
waiter.reject(new ExternalAgentError("external rpc closed"));
|
|
142
|
+
}
|
|
143
|
+
pending.clear();
|
|
144
|
+
try {
|
|
145
|
+
child.stdin.end();
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
/* ignore */
|
|
149
|
+
}
|
|
150
|
+
},
|
|
97
151
|
};
|
|
152
|
+
}
|
|
153
|
+
async function speakJsonRpc(child, run) {
|
|
154
|
+
const io = openJsonRpcIo(child);
|
|
98
155
|
try {
|
|
99
|
-
return await run(
|
|
100
|
-
request,
|
|
101
|
-
notify,
|
|
102
|
-
onNotification: (fn) => {
|
|
103
|
-
notes.push(fn);
|
|
104
|
-
},
|
|
105
|
-
});
|
|
156
|
+
return await run(io);
|
|
106
157
|
}
|
|
107
158
|
finally {
|
|
108
|
-
|
|
109
|
-
try {
|
|
110
|
-
child.stdin.end();
|
|
111
|
-
}
|
|
112
|
-
catch {
|
|
113
|
-
/* ignore */
|
|
114
|
-
}
|
|
159
|
+
io.close();
|
|
115
160
|
}
|
|
116
161
|
}
|
|
117
162
|
async function runAcp(child, cwd, prompt) {
|
|
@@ -228,7 +273,7 @@ function collectPrint(child) {
|
|
|
228
273
|
*/
|
|
229
274
|
export async function runExternalAgentTurn(options) {
|
|
230
275
|
const env = options.env ?? process.env;
|
|
231
|
-
const launch = resolveExternalAgentLaunch(options.kind, env, options.prompt);
|
|
276
|
+
const launch = resolveExternalAgentLaunch(options.kind, env, options.prompt, options.product);
|
|
232
277
|
const spawnImpl = options.spawnImpl ?? spawn;
|
|
233
278
|
let child;
|
|
234
279
|
try {
|
|
@@ -284,4 +329,383 @@ export function parseExternalAgentKind(raw) {
|
|
|
284
329
|
}
|
|
285
330
|
return undefined;
|
|
286
331
|
}
|
|
332
|
+
export function supportsExternalContinuable(kind) {
|
|
333
|
+
return kind === "acp" || kind === "app-server";
|
|
334
|
+
}
|
|
335
|
+
export async function openExternalAgentLiveSession(options) {
|
|
336
|
+
const env = options.env ?? process.env;
|
|
337
|
+
const launch = resolveExternalAgentLaunch(options.kind, env,
|
|
338
|
+
/* prompt unused for rpc protocols */ "", options.product);
|
|
339
|
+
if (launch.protocol === "print") {
|
|
340
|
+
throw new ExternalAgentError("claude-code print protocol cannot stay continuable", "EXTERNAL_AGENT_CONFIG");
|
|
341
|
+
}
|
|
342
|
+
const spawnImpl = options.spawnImpl ?? spawn;
|
|
343
|
+
let child;
|
|
344
|
+
try {
|
|
345
|
+
child = spawnImpl(launch.command, launch.args, {
|
|
346
|
+
cwd: options.cwd,
|
|
347
|
+
env: { ...env },
|
|
348
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
349
|
+
windowsHide: true,
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
catch (err) {
|
|
353
|
+
throw new ExternalAgentError(err instanceof Error ? err.message : String(err), "EXTERNAL_AGENT_SPAWN");
|
|
354
|
+
}
|
|
355
|
+
child.on("error", () => {
|
|
356
|
+
/* surfaced on close / request fail */
|
|
357
|
+
});
|
|
358
|
+
const io = openJsonRpcIo(child);
|
|
359
|
+
let disposed = false;
|
|
360
|
+
let busy = false;
|
|
361
|
+
let last = "";
|
|
362
|
+
let currentTurnId;
|
|
363
|
+
let interruptResolve;
|
|
364
|
+
const killChild = () => {
|
|
365
|
+
if (child.exitCode === null && !child.killed) {
|
|
366
|
+
try {
|
|
367
|
+
child.kill();
|
|
368
|
+
}
|
|
369
|
+
catch {
|
|
370
|
+
/* ignore */
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
const dispose = () => {
|
|
375
|
+
if (disposed)
|
|
376
|
+
return;
|
|
377
|
+
disposed = true;
|
|
378
|
+
interruptResolve?.();
|
|
379
|
+
interruptResolve = undefined;
|
|
380
|
+
io.close();
|
|
381
|
+
killChild();
|
|
382
|
+
};
|
|
383
|
+
child.on("close", () => {
|
|
384
|
+
disposed = true;
|
|
385
|
+
interruptResolve?.();
|
|
386
|
+
interruptResolve = undefined;
|
|
387
|
+
});
|
|
388
|
+
if (options.kind === "acp") {
|
|
389
|
+
const chunks = [];
|
|
390
|
+
io.onNotification((msg) => {
|
|
391
|
+
if (msg.method !== "session/update")
|
|
392
|
+
return;
|
|
393
|
+
const params = msg.params;
|
|
394
|
+
const text = params?.update?.content?.text;
|
|
395
|
+
if (text)
|
|
396
|
+
chunks.push(text);
|
|
397
|
+
});
|
|
398
|
+
await io.request("initialize", {
|
|
399
|
+
protocolVersion: 1,
|
|
400
|
+
clientInfo: { name: "xrk-harness", version: "0.0.0" },
|
|
401
|
+
});
|
|
402
|
+
const created = (await io.request("session/new", { cwd: options.cwd }));
|
|
403
|
+
if (!created?.sessionId) {
|
|
404
|
+
dispose();
|
|
405
|
+
throw new ExternalAgentError("ACP session/new missing sessionId");
|
|
406
|
+
}
|
|
407
|
+
const remoteId = created.sessionId;
|
|
408
|
+
return {
|
|
409
|
+
kind: "acp",
|
|
410
|
+
remoteId,
|
|
411
|
+
isBusy: () => busy,
|
|
412
|
+
lastText: () => (last ? last : undefined),
|
|
413
|
+
async prompt(text, signal) {
|
|
414
|
+
if (disposed) {
|
|
415
|
+
throw new ExternalAgentError("ACP session disposed");
|
|
416
|
+
}
|
|
417
|
+
if (busy) {
|
|
418
|
+
throw new ExternalAgentError("ACP session busy");
|
|
419
|
+
}
|
|
420
|
+
busy = true;
|
|
421
|
+
chunks.length = 0;
|
|
422
|
+
const onAbort = () => {
|
|
423
|
+
killChild();
|
|
424
|
+
};
|
|
425
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
426
|
+
try {
|
|
427
|
+
await io.request("session/prompt", {
|
|
428
|
+
sessionId: remoteId,
|
|
429
|
+
prompt: [{ type: "text", text }],
|
|
430
|
+
});
|
|
431
|
+
const out = chunks.join("").trim();
|
|
432
|
+
if (!out) {
|
|
433
|
+
throw new ExternalAgentError("ACP prompt returned no text");
|
|
434
|
+
}
|
|
435
|
+
last = out;
|
|
436
|
+
return out;
|
|
437
|
+
}
|
|
438
|
+
finally {
|
|
439
|
+
signal?.removeEventListener("abort", onAbort);
|
|
440
|
+
busy = false;
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
async interrupt() {
|
|
444
|
+
// ACP has no portable cancel; tear down the process.
|
|
445
|
+
dispose();
|
|
446
|
+
},
|
|
447
|
+
dispose,
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
// app-server
|
|
451
|
+
const messages = [];
|
|
452
|
+
let resolveDone;
|
|
453
|
+
io.onNotification((msg) => {
|
|
454
|
+
if (msg.method === "item/completed") {
|
|
455
|
+
const params = msg.params;
|
|
456
|
+
const item = params?.item;
|
|
457
|
+
if (item?.type === "agentMessage" && typeof item.text === "string") {
|
|
458
|
+
if (item.phase === "final_answer" || item.phase == null) {
|
|
459
|
+
messages.push(item.text);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
if (msg.method === "turn/completed") {
|
|
464
|
+
const params = msg.params;
|
|
465
|
+
const status = params?.turn?.status;
|
|
466
|
+
resolveDone?.(status !== undefined ? { status } : {});
|
|
467
|
+
resolveDone = undefined;
|
|
468
|
+
currentTurnId = undefined;
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
await io.request("initialize", {
|
|
472
|
+
clientInfo: { name: "xrk-harness", version: "0.0.0" },
|
|
473
|
+
capabilities: { experimentalApi: false },
|
|
474
|
+
});
|
|
475
|
+
io.notify("initialized", {});
|
|
476
|
+
const thread = (await io.request("thread/start", {
|
|
477
|
+
cwd: options.cwd,
|
|
478
|
+
ephemeral: false,
|
|
479
|
+
approvalPolicy: "never",
|
|
480
|
+
sandbox: "workspace-write",
|
|
481
|
+
}));
|
|
482
|
+
const threadId = thread?.thread?.id;
|
|
483
|
+
if (!threadId) {
|
|
484
|
+
dispose();
|
|
485
|
+
throw new ExternalAgentError("app-server thread/start missing thread.id");
|
|
486
|
+
}
|
|
487
|
+
return {
|
|
488
|
+
kind: "app-server",
|
|
489
|
+
remoteId: threadId,
|
|
490
|
+
isBusy: () => busy,
|
|
491
|
+
lastText: () => (last ? last : undefined),
|
|
492
|
+
async prompt(text, signal) {
|
|
493
|
+
if (disposed) {
|
|
494
|
+
throw new ExternalAgentError("app-server session disposed");
|
|
495
|
+
}
|
|
496
|
+
if (busy) {
|
|
497
|
+
throw new ExternalAgentError("app-server session busy");
|
|
498
|
+
}
|
|
499
|
+
busy = true;
|
|
500
|
+
messages.length = 0;
|
|
501
|
+
const done = new Promise((resolve) => {
|
|
502
|
+
resolveDone = resolve;
|
|
503
|
+
});
|
|
504
|
+
const onAbort = () => {
|
|
505
|
+
void io
|
|
506
|
+
.request("turn/interrupt", {
|
|
507
|
+
threadId,
|
|
508
|
+
...(currentTurnId ? { turnId: currentTurnId } : {}),
|
|
509
|
+
})
|
|
510
|
+
.catch(() => killChild());
|
|
511
|
+
};
|
|
512
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
513
|
+
try {
|
|
514
|
+
const started = (await io.request("turn/start", {
|
|
515
|
+
threadId,
|
|
516
|
+
input: [{ type: "text", text, text_elements: [] }],
|
|
517
|
+
}));
|
|
518
|
+
currentTurnId = started?.turn?.id;
|
|
519
|
+
const terminal = await done;
|
|
520
|
+
if (terminal.status && terminal.status !== "completed") {
|
|
521
|
+
throw new ExternalAgentError(`app-server turn ended with status ${terminal.status}`);
|
|
522
|
+
}
|
|
523
|
+
const out = messages.join("\n").trim();
|
|
524
|
+
if (!out) {
|
|
525
|
+
throw new ExternalAgentError("app-server turn completed without text");
|
|
526
|
+
}
|
|
527
|
+
last = out;
|
|
528
|
+
return out;
|
|
529
|
+
}
|
|
530
|
+
finally {
|
|
531
|
+
signal?.removeEventListener("abort", onAbort);
|
|
532
|
+
busy = false;
|
|
533
|
+
currentTurnId = undefined;
|
|
534
|
+
resolveDone = undefined;
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
async interrupt() {
|
|
538
|
+
if (!busy)
|
|
539
|
+
return;
|
|
540
|
+
try {
|
|
541
|
+
await io.request("turn/interrupt", {
|
|
542
|
+
threadId,
|
|
543
|
+
...(currentTurnId ? { turnId: currentTurnId } : {}),
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
catch {
|
|
547
|
+
killChild();
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
dispose,
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
/** Face child session id → live ACP / app-server handle. */
|
|
554
|
+
export class ExternalAgentSessionRegistry {
|
|
555
|
+
map = new Map();
|
|
556
|
+
has(faceSessionId) {
|
|
557
|
+
return this.map.has(faceSessionId);
|
|
558
|
+
}
|
|
559
|
+
get(faceSessionId) {
|
|
560
|
+
return this.map.get(faceSessionId);
|
|
561
|
+
}
|
|
562
|
+
isBusy(faceSessionId) {
|
|
563
|
+
return this.map.get(faceSessionId)?.isBusy() === true;
|
|
564
|
+
}
|
|
565
|
+
kind(faceSessionId) {
|
|
566
|
+
return this.map.get(faceSessionId)?.kind;
|
|
567
|
+
}
|
|
568
|
+
attach(faceSessionId, session) {
|
|
569
|
+
const prev = this.map.get(faceSessionId);
|
|
570
|
+
if (prev && prev !== session)
|
|
571
|
+
prev.dispose();
|
|
572
|
+
this.map.set(faceSessionId, session);
|
|
573
|
+
}
|
|
574
|
+
detach(faceSessionId) {
|
|
575
|
+
const hit = this.map.get(faceSessionId);
|
|
576
|
+
if (!hit)
|
|
577
|
+
return;
|
|
578
|
+
this.map.delete(faceSessionId);
|
|
579
|
+
hit.dispose();
|
|
580
|
+
}
|
|
581
|
+
disposeAll() {
|
|
582
|
+
for (const id of [...this.map.keys()])
|
|
583
|
+
this.detach(id);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
/** True when Face drain or an external live session is mid-turn. */
|
|
587
|
+
export function isChildSessionActive(runtime, sessionId) {
|
|
588
|
+
return (runtime.drain.isActive(sessionId) ||
|
|
589
|
+
runtime.externalAgents.isBusy(sessionId));
|
|
590
|
+
}
|
|
591
|
+
function recordExternalTurn(store, sessionId, userText, assistantText) {
|
|
592
|
+
const ts = Date.now();
|
|
593
|
+
const turnId = `ext-${ts}`;
|
|
594
|
+
store.append(sessionId, { type: "turn/start", ts, turnId });
|
|
595
|
+
store.append(sessionId, {
|
|
596
|
+
type: "user/message",
|
|
597
|
+
ts: ts + 1,
|
|
598
|
+
turnId,
|
|
599
|
+
content: userText,
|
|
600
|
+
});
|
|
601
|
+
store.append(sessionId, {
|
|
602
|
+
type: "assistant/message",
|
|
603
|
+
ts: ts + 2,
|
|
604
|
+
turnId,
|
|
605
|
+
stepId: "1",
|
|
606
|
+
content: assistantText,
|
|
607
|
+
});
|
|
608
|
+
store.append(sessionId, {
|
|
609
|
+
type: "turn/end",
|
|
610
|
+
ts: ts + 3,
|
|
611
|
+
turnId,
|
|
612
|
+
reason: { kind: "completed" },
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Open ACP / app-server live session, attach to Face child id, run first prompt.
|
|
617
|
+
* Background: kicks the turn and returns; completion steers parent via drain hooks.
|
|
618
|
+
*/
|
|
619
|
+
export async function startExternalContinuable(options) {
|
|
620
|
+
if (!supportsExternalContinuable(options.kind)) {
|
|
621
|
+
throw new ExternalAgentError(`runtime ${options.kind} does not support continuable sessions`, "EXTERNAL_AGENT_CONFIG");
|
|
622
|
+
}
|
|
623
|
+
const live = await openExternalAgentLiveSession({
|
|
624
|
+
kind: options.kind,
|
|
625
|
+
cwd: options.cwd,
|
|
626
|
+
...(options.env ? { env: options.env } : {}),
|
|
627
|
+
...(options.product ? { product: options.product } : {}),
|
|
628
|
+
...(options.spawnImpl ? { spawnImpl: options.spawnImpl } : {}),
|
|
629
|
+
});
|
|
630
|
+
options.runtime.externalAgents.attach(options.faceSessionId, live);
|
|
631
|
+
const runTurn = async () => {
|
|
632
|
+
options.runtime.onSessionDrainStatus(options.faceSessionId, true);
|
|
633
|
+
try {
|
|
634
|
+
const text = await live.prompt(options.prompt, options.signal);
|
|
635
|
+
recordExternalTurn(options.runtime.store, options.faceSessionId, options.prompt, text);
|
|
636
|
+
return text;
|
|
637
|
+
}
|
|
638
|
+
finally {
|
|
639
|
+
options.runtime.onSessionDrainStatus(options.faceSessionId, false);
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
if (options.background) {
|
|
643
|
+
void runTurn().catch(() => {
|
|
644
|
+
/* parent sees failure via empty history / wait_agent; process may still live */
|
|
645
|
+
});
|
|
646
|
+
return { kind: options.kind };
|
|
647
|
+
}
|
|
648
|
+
const text = await runTurn();
|
|
649
|
+
return { text, kind: options.kind };
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Follow-up prompt on an attached external live session (send_message / followup_task).
|
|
653
|
+
*/
|
|
654
|
+
export async function promptExternalContinuable(runtime, faceSessionId, message, opts) {
|
|
655
|
+
const live = runtime.externalAgents.get(faceSessionId);
|
|
656
|
+
if (!live) {
|
|
657
|
+
throw new ExternalAgentError(`no external live session for ${faceSessionId}`, "EXTERNAL_AGENT_MISSING");
|
|
658
|
+
}
|
|
659
|
+
if (live.isBusy()) {
|
|
660
|
+
if (!opts?.steer) {
|
|
661
|
+
throw new ExternalAgentError(`${faceSessionId} is busy; use wait_agent or delivery=steer`, "EXTERNAL_AGENT_BUSY");
|
|
662
|
+
}
|
|
663
|
+
// Soft-steer: wait for the in-flight turn (ACP has no portable cancel).
|
|
664
|
+
// Hard cancel remains interrupt_agent → dispose.
|
|
665
|
+
const deadline = Date.now() + 5 * 60 * 1000;
|
|
666
|
+
while (live.isBusy() && Date.now() < deadline) {
|
|
667
|
+
if (opts.signal?.aborted) {
|
|
668
|
+
throw new DOMException("aborted", "AbortError");
|
|
669
|
+
}
|
|
670
|
+
await new Promise((r) => setTimeout(r, 40));
|
|
671
|
+
}
|
|
672
|
+
if (live.isBusy()) {
|
|
673
|
+
throw new ExternalAgentError(`${faceSessionId} still busy after steer wait`, "EXTERNAL_AGENT_BUSY");
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
runtime.onSessionDrainStatus(faceSessionId, true);
|
|
677
|
+
try {
|
|
678
|
+
const text = await live.prompt(message, opts?.signal);
|
|
679
|
+
recordExternalTurn(runtime.store, faceSessionId, message, text);
|
|
680
|
+
return text;
|
|
681
|
+
}
|
|
682
|
+
finally {
|
|
683
|
+
runtime.onSessionDrainStatus(faceSessionId, false);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
export async function interruptExternalContinuable(runtime, faceSessionId, opts) {
|
|
687
|
+
const live = runtime.externalAgents.get(faceSessionId);
|
|
688
|
+
if (!live)
|
|
689
|
+
return;
|
|
690
|
+
runtime.suppressOwnedSubagentCompletion(faceSessionId);
|
|
691
|
+
await live.interrupt();
|
|
692
|
+
if (opts?.dispose !== false) {
|
|
693
|
+
runtime.externalAgents.detach(faceSessionId);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
export function contentPartsToText(content) {
|
|
697
|
+
if (typeof content === "string")
|
|
698
|
+
return content.trim();
|
|
699
|
+
if (!Array.isArray(content))
|
|
700
|
+
return "";
|
|
701
|
+
const parts = [];
|
|
702
|
+
for (const part of content) {
|
|
703
|
+
if (!part || typeof part !== "object")
|
|
704
|
+
continue;
|
|
705
|
+
const p = part;
|
|
706
|
+
if (p.type === "text" && typeof p.text === "string")
|
|
707
|
+
parts.push(p.text);
|
|
708
|
+
}
|
|
709
|
+
return parts.join("\n").trim();
|
|
710
|
+
}
|
|
287
711
|
//# sourceMappingURL=external-agent-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-agent-runtime.js","sourceRoot":"","sources":["../src/external-agent-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,EAAuC,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAehD,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAClC,IAAI,CAAS;IAEtB,YAAY,OAAe,EAAE,IAAI,GAAG,gBAAgB;QAClD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,SAAS,YAAY,CAAC,GAAW;IAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,kBAAkB,CAC1B,8BAA8B,EAC9B,uBAAuB,CACxB,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,IAAuB,EACvB,GAAsB,EACtB,MAAc;IAEd,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACnD,IAA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AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB;IACjD,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;IACvD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,SAAS;QAChD,MAAM,CAAC,GAAG,IAAyC,CAAC;QACpD,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ;YAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Same-session goal round driver helpers (dsh goal-round-driver semantics,
|
|
3
|
+
* without Cordis). FaceGoalStore owns state; this module owns the retained
|
|
4
|
+
* continuation prompt and turn/end scheduling decisions.
|
|
5
|
+
*/
|
|
6
|
+
/** Minimal goal fields the driver needs. */
|
|
7
|
+
export interface GoalRoundSnapshot {
|
|
8
|
+
readonly objective: string;
|
|
9
|
+
readonly phase: "active" | "paused" | "blocked" | "complete";
|
|
10
|
+
readonly activation: "armed" | "disarmed";
|
|
11
|
+
readonly maxGoalRounds: number;
|
|
12
|
+
readonly roundsStarted: number;
|
|
13
|
+
}
|
|
14
|
+
export type GoalTurnEndDecision = {
|
|
15
|
+
readonly kind: "noop";
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: "wake-pending";
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "continue";
|
|
20
|
+
readonly round: number;
|
|
21
|
+
readonly prompt: string;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: "block";
|
|
24
|
+
readonly code: string;
|
|
25
|
+
readonly message: string;
|
|
26
|
+
} | {
|
|
27
|
+
readonly kind: "disarm";
|
|
28
|
+
readonly code: string;
|
|
29
|
+
readonly message: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Render the retained `<goal_round>` user prompt for one automatic round.
|
|
33
|
+
* Round is 1-based and must equal `roundsStarted + 1` at admission time.
|
|
34
|
+
*/
|
|
35
|
+
export declare function renderGoalRoundPrompt(goal: Pick<GoalRoundSnapshot, "objective" | "maxGoalRounds">, round: number): string;
|
|
36
|
+
/** First-round / resume prompt (still tags `<goal_round>` for model consistency). */
|
|
37
|
+
export declare function renderGoalStartPrompt(goal: Pick<GoalRoundSnapshot, "objective" | "maxGoalRounds">, round: number, lead: "start" | "resume"): string;
|
|
38
|
+
/**
|
|
39
|
+
* Decide what happens after `turn/end` for an armed active goal.
|
|
40
|
+
* @param hasPendingAdmits - session already has queued admits (wake only).
|
|
41
|
+
* @param turnReasonKind - `turn/end.reason.kind` when present.
|
|
42
|
+
*/
|
|
43
|
+
export declare function decideGoalTurnEnd(input: {
|
|
44
|
+
readonly goal: GoalRoundSnapshot;
|
|
45
|
+
readonly hasPendingAdmits: boolean;
|
|
46
|
+
readonly turnReasonKind?: string;
|
|
47
|
+
}): GoalTurnEndDecision;
|
|
48
|
+
//# sourceMappingURL=goal-round-driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goal-round-driver.d.ts","sourceRoot":"","sources":["../src/goal-round-driver.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4CAA4C;AAC5C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7D,QAAQ,CAAC,U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