@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
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cordis-free registry for package-owned runtime invariant contributions.
|
|
3
|
+
* Face / Host compositions mount this; Cordis overlays keep using
|
|
4
|
+
* `@xrkseek/xrk-invariants` under stubs.
|
|
5
|
+
*
|
|
6
|
+
* @module @xrkseek/runtime-invariants
|
|
7
|
+
*/
|
|
8
|
+
/** Thrown when a package-owned runtime invariant is violated. */
|
|
9
|
+
export class InvariantError extends Error {
|
|
10
|
+
code = "INVARIANT";
|
|
11
|
+
packageName;
|
|
12
|
+
constructor(packageName, message) {
|
|
13
|
+
super(`invariant violated by "${packageName}": ${message}`);
|
|
14
|
+
this.name = "InvariantError";
|
|
15
|
+
this.packageName = packageName;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/** Compile and validate one package-filter list. */
|
|
19
|
+
function compilePatterns(field, values) {
|
|
20
|
+
const seen = new Set();
|
|
21
|
+
return values.map((value) => {
|
|
22
|
+
if (value.length === 0 || value.trim() !== value) {
|
|
23
|
+
throw new Error(`invariants: ${field} entries must be non-blank and have no surrounding whitespace`);
|
|
24
|
+
}
|
|
25
|
+
if (seen.has(value)) {
|
|
26
|
+
throw new Error(`invariants: ${field} contains duplicate regex ${JSON.stringify(value)}`);
|
|
27
|
+
}
|
|
28
|
+
seen.add(value);
|
|
29
|
+
try {
|
|
30
|
+
return new RegExp(value);
|
|
31
|
+
}
|
|
32
|
+
catch (cause) {
|
|
33
|
+
throw new Error(`invariants: ${field} contains invalid regex ${JSON.stringify(value)}`, { cause });
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/** Env truthy for Host optional fail-fast (`XRK_INVARIANTS_FAIL_FAST`). */
|
|
38
|
+
export function resolveInvariantsFailFast(env = process.env) {
|
|
39
|
+
const raw = env.XRK_INVARIANTS_FAIL_FAST?.trim().toLowerCase();
|
|
40
|
+
return raw === "1" || raw === "true" || raw === "yes" || raw === "on";
|
|
41
|
+
}
|
|
42
|
+
/** Package-owned invariant registry with global and regex-based selection. */
|
|
43
|
+
export class InvariantRegistry {
|
|
44
|
+
enabled;
|
|
45
|
+
packageAllowlist;
|
|
46
|
+
packageBlocklist;
|
|
47
|
+
registrations = new Set();
|
|
48
|
+
appendListeners = new Set();
|
|
49
|
+
disposed = false;
|
|
50
|
+
constructor(config = {}) {
|
|
51
|
+
this.enabled = config.enabled ?? true;
|
|
52
|
+
this.packageAllowlist = compilePatterns("packageAllowlist", config.packageAllowlist ?? []);
|
|
53
|
+
this.packageBlocklist = compilePatterns("packageBlocklist", config.packageBlocklist ?? []);
|
|
54
|
+
}
|
|
55
|
+
selected(packageName) {
|
|
56
|
+
if (!this.enabled)
|
|
57
|
+
return false;
|
|
58
|
+
if (this.packageAllowlist.length > 0 &&
|
|
59
|
+
!this.packageAllowlist.some((pattern) => pattern.test(packageName))) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return !this.packageBlocklist.some((pattern) => pattern.test(packageName));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Register one package's invariant installer.
|
|
66
|
+
* The package name is reserved even when filters disable its checks.
|
|
67
|
+
*/
|
|
68
|
+
register(packageName, installer) {
|
|
69
|
+
if (this.disposed) {
|
|
70
|
+
throw new Error("invariants: registry is disposed");
|
|
71
|
+
}
|
|
72
|
+
if (packageName.length === 0 ||
|
|
73
|
+
packageName.trim() !== packageName ||
|
|
74
|
+
/\s/.test(packageName)) {
|
|
75
|
+
throw new Error("invariants: packageName must be non-blank and contain no whitespace");
|
|
76
|
+
}
|
|
77
|
+
if (this.registrations.has(packageName)) {
|
|
78
|
+
throw new Error(`invariants: package "${packageName}" is already registered`);
|
|
79
|
+
}
|
|
80
|
+
this.registrations.add(packageName);
|
|
81
|
+
const fail = (message) => {
|
|
82
|
+
throw new InvariantError(packageName, message);
|
|
83
|
+
};
|
|
84
|
+
const localDisposers = [];
|
|
85
|
+
const api = {
|
|
86
|
+
onAppend: (listener) => {
|
|
87
|
+
this.appendListeners.add(listener);
|
|
88
|
+
const dispose = () => {
|
|
89
|
+
this.appendListeners.delete(listener);
|
|
90
|
+
};
|
|
91
|
+
localDisposers.push(dispose);
|
|
92
|
+
return dispose;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
if (this.selected(packageName)) {
|
|
96
|
+
try {
|
|
97
|
+
const result = installer(api, fail);
|
|
98
|
+
if (result !== undefined) {
|
|
99
|
+
throw new Error(`invariants: package "${packageName}" installer must be synchronous (got a Promise)`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
for (const d of localDisposers)
|
|
104
|
+
d();
|
|
105
|
+
this.registrations.delete(packageName);
|
|
106
|
+
throw error;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return () => {
|
|
110
|
+
for (const d of localDisposers)
|
|
111
|
+
d();
|
|
112
|
+
this.registrations.delete(packageName);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
/** Whether a package name is currently reserved. */
|
|
116
|
+
has(packageName) {
|
|
117
|
+
return this.registrations.has(packageName);
|
|
118
|
+
}
|
|
119
|
+
/** Fan-out one append observation to active companion listeners. */
|
|
120
|
+
notifyAppend(obs) {
|
|
121
|
+
if (this.disposed || !this.enabled)
|
|
122
|
+
return;
|
|
123
|
+
for (const listener of this.appendListeners) {
|
|
124
|
+
listener(obs);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
dispose() {
|
|
128
|
+
this.appendListeners.clear();
|
|
129
|
+
this.registrations.clear();
|
|
130
|
+
this.disposed = true;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export function createInvariantRegistry(config = {}) {
|
|
134
|
+
return new InvariantRegistry(config);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Wrap a SessionStore so every append notifies the registry **before** commit
|
|
138
|
+
* (fail-fast: violation prevents the underlying append).
|
|
139
|
+
*/
|
|
140
|
+
export function wrapSessionStore(store, registry) {
|
|
141
|
+
const wrapped = Object.create(store);
|
|
142
|
+
wrapped.append = ((id, event) => {
|
|
143
|
+
const prefix = store.get(id).events;
|
|
144
|
+
registry.notifyAppend({ sessionId: id, event, prefix });
|
|
145
|
+
return store.append(id, event);
|
|
146
|
+
});
|
|
147
|
+
return wrapped;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Replay an existing log through the registry (Host boot self-check).
|
|
151
|
+
* Does not mutate the store.
|
|
152
|
+
*/
|
|
153
|
+
export function replaySessionLog(registry, sessionId, events) {
|
|
154
|
+
for (let i = 0; i < events.length; i += 1) {
|
|
155
|
+
const event = events[i];
|
|
156
|
+
registry.notifyAppend({
|
|
157
|
+
sessionId,
|
|
158
|
+
event,
|
|
159
|
+
prefix: events.slice(0, i),
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2CH,iEAAiE;AACjE,MAAM,OAAO,cAAe,SAAQ,KAAK;IAC9B,IAAI,GAAG,WAAoB,CAAC;IAC5B,WAAW,CAAS;IAE7B,YAAY,WAAmB,EAAE,OAAe;QAC9C,KAAK,CAAC,0BAA0B,WAAW,MAAM,OAAO,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAED,oDAAoD;AACpD,SAAS,eAAe,CACtB,KAA8C,EAC9C,MAAyB;IAEzB,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC;YACjD,MAAM,IAAI,KAAK,CACb,eAAe,KAAK,+DAA+D,CACpF,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CACb,eAAe,KAAK,6BAA6B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CACzE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChB,IAAI,CAAC;YAC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"Package-owned runtime invariant registry for Face/Host compositions (Cordis-free)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@xrkseek/protocol": "workspace:*"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/xrkseek/XRK-harness.git",
|
|
24
|
+
"directory": "packages/runtime-diagnostics/invariants"
|
|
25
|
+
},
|
|
26
|
+
"private": true
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @xrkseek/secrets
|
|
2
|
+
|
|
3
|
+
Secret store Providers + unified log redaction (Codex-style keyring-store + sanitizer).
|
|
4
|
+
|
|
5
|
+
## Definition / Provider
|
|
6
|
+
|
|
7
|
+
| Layer | Role |
|
|
8
|
+
|-------|------|
|
|
9
|
+
| **Definition** | `SecretStore` (`load` / `save` / `delete` by service+account) |
|
|
10
|
+
| **Provider** | `createMemorySecretStore` · `createOsKeyringStore` (dynamic `keytar` probe; missing → `available: false`) |
|
|
11
|
+
| **Resolve** | `resolveSecretStore(env)` via `XRK_SECRETS_BACKEND` |
|
|
12
|
+
|
|
13
|
+
| `XRK_SECRETS_BACKEND` | Behavior |
|
|
14
|
+
|------------------------|----------|
|
|
15
|
+
| unset / `file` | No overlay — Face keeps `~/.xrk/.credentials.yaml` |
|
|
16
|
+
| `memory` | In-process store (CI) |
|
|
17
|
+
| `keyring` | OS keyring via optional `keytar` (`pnpm add keytar`); if missing → `available: false` (honest) |
|
|
18
|
+
|
|
19
|
+
Face may dual-write slots with `syncSlotToSecretStore` / hydrate with `loadSlotFromSecretStore`.
|
|
20
|
+
|
|
21
|
+
## Redaction
|
|
22
|
+
|
|
23
|
+
`redactSecrets(text)` — best-effort strip of `sk-…`, Bearer tokens, AWS AKIA, `api_key=` assignments.
|
|
24
|
+
`wrapLoggerForSecrets(logger)` — wrap CLI / Host sinks.
|
|
25
|
+
|
|
26
|
+
Not the settings schema `role('secret')` walker (`@xrkseek/xrk-settings`).
|
|
27
|
+
|
|
28
|
+
See [docs/configuration.md](../../../docs/configuration.md) · [docs/seams.md](../../../docs/seams.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { REDACTED_SECRET, redactSecrets, wrapLoggerForSecrets, type RedactingLogger, } from "./redact.js";
|
|
2
|
+
export { SecretStoreError, XRK_KEYRING_SERVICE, type SecretStore, type SecretStoreKind, } from "./types.js";
|
|
3
|
+
export { createMemorySecretStore } from "./memory.js";
|
|
4
|
+
export { createOsKeyringStore } from "./keyring.js";
|
|
5
|
+
export { resolveSecretStore, type SecretsBackendKind, } from "./resolve.js";
|
|
6
|
+
import { type SecretStore } from "./types.js";
|
|
7
|
+
/** Persist one Face slot into the keyring when available. Never logs the value. */
|
|
8
|
+
export declare function syncSlotToSecretStore(store: SecretStore | undefined, slotId: string, value: string | null): Promise<void>;
|
|
9
|
+
/** Load one Face slot from the keyring when the vault has no value. */
|
|
10
|
+
export declare function loadSlotFromSecretStore(store: SecretStore | undefined, slotId: string): Promise<string | undefined>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,kBAAkB,EAClB,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAEpB,mFAAmF;AACnF,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,OAAO,CAAC,IAAI,CAAC,CAOf;AAED,uEAAuE;AACvE,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAG7B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { REDACTED_SECRET, redactSecrets, wrapLoggerForSecrets, } from "./redact.js";
|
|
2
|
+
export { SecretStoreError, XRK_KEYRING_SERVICE, } from "./types.js";
|
|
3
|
+
export { createMemorySecretStore } from "./memory.js";
|
|
4
|
+
export { createOsKeyringStore } from "./keyring.js";
|
|
5
|
+
export { resolveSecretStore, } from "./resolve.js";
|
|
6
|
+
import { XRK_KEYRING_SERVICE, } from "./types.js";
|
|
7
|
+
/** Persist one Face slot into the keyring when available. Never logs the value. */
|
|
8
|
+
export async function syncSlotToSecretStore(store, slotId, value) {
|
|
9
|
+
if (!store?.available)
|
|
10
|
+
return;
|
|
11
|
+
if (value === null || value === "") {
|
|
12
|
+
await store.delete(XRK_KEYRING_SERVICE, slotId);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
await store.save(XRK_KEYRING_SERVICE, slotId, value);
|
|
16
|
+
}
|
|
17
|
+
/** Load one Face slot from the keyring when the vault has no value. */
|
|
18
|
+
export async function loadSlotFromSecretStore(store, slotId) {
|
|
19
|
+
if (!store?.available)
|
|
20
|
+
return undefined;
|
|
21
|
+
return store.load(XRK_KEYRING_SERVICE, slotId);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,GAErB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GAGpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,kBAAkB,GAEnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,mBAAmB,GAEpB,MAAM,YAAY,CAAC;AAEpB,mFAAmF;AACnF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,KAA8B,EAC9B,MAAc,EACd,KAAoB;IAEpB,IAAI,CAAC,KAAK,EAAE,SAAS;QAAE,OAAO;IAC9B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QACnC,MAAM,KAAK,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QAChD,OAAO;IACT,CAAC;IACD,MAAM,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,uEAAuE;AACvE,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,KAA8B,EAC9B,MAAc;IAEd,IAAI,CAAC,KAAK,EAAE,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,OAAO,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS keyring Provider (Codex DefaultKeyringStore shape).
|
|
3
|
+
* Uses optional `keytar` when installed; otherwise available=false (honest).
|
|
4
|
+
*/
|
|
5
|
+
import { type SecretStore } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Build an OS keyring-backed store. Probes `keytar` once; does not throw on miss.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createOsKeyringStore(): Promise<SecretStore>;
|
|
10
|
+
//# sourceMappingURL=keyring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyring.d.ts","sourceRoot":"","sources":["../src/keyring.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAqCpB;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,WAAW,CAAC,CAwDjE"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS keyring Provider (Codex DefaultKeyringStore shape).
|
|
3
|
+
* Uses optional `keytar` when installed; otherwise available=false (honest).
|
|
4
|
+
*/
|
|
5
|
+
import { SecretStoreError, } from "./types.js";
|
|
6
|
+
async function tryImportKeytar() {
|
|
7
|
+
try {
|
|
8
|
+
// Optional native module — install separately (`pnpm add keytar`) when enabling keyring.
|
|
9
|
+
const mod = (await import("keytar"));
|
|
10
|
+
if (typeof mod.getPassword === "function") {
|
|
11
|
+
return mod;
|
|
12
|
+
}
|
|
13
|
+
if (mod.default && typeof mod.default.getPassword === "function") {
|
|
14
|
+
return mod.default;
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const UNAVAILABLE = "OS keyring unavailable (optional package `keytar` not installed or failed to load). " +
|
|
23
|
+
"Face keeps using ~/.xrk/.credentials.yaml. Install keytar and set XRK_SECRETS_BACKEND=keyring to enable.";
|
|
24
|
+
/**
|
|
25
|
+
* Build an OS keyring-backed store. Probes `keytar` once; does not throw on miss.
|
|
26
|
+
*/
|
|
27
|
+
export async function createOsKeyringStore() {
|
|
28
|
+
const keytar = await tryImportKeytar();
|
|
29
|
+
if (!keytar) {
|
|
30
|
+
return {
|
|
31
|
+
providerName: "os-keyring",
|
|
32
|
+
kind: "unavailable",
|
|
33
|
+
available: false,
|
|
34
|
+
unavailableMessage: UNAVAILABLE,
|
|
35
|
+
async load() {
|
|
36
|
+
throw new SecretStoreError(UNAVAILABLE, "SECRET_UNAVAILABLE");
|
|
37
|
+
},
|
|
38
|
+
async save() {
|
|
39
|
+
throw new SecretStoreError(UNAVAILABLE, "SECRET_UNAVAILABLE");
|
|
40
|
+
},
|
|
41
|
+
async delete() {
|
|
42
|
+
throw new SecretStoreError(UNAVAILABLE, "SECRET_UNAVAILABLE");
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
providerName: "os-keyring",
|
|
48
|
+
kind: "os-keyring",
|
|
49
|
+
available: true,
|
|
50
|
+
async load(service, account) {
|
|
51
|
+
try {
|
|
52
|
+
const v = await keytar.getPassword(service, account);
|
|
53
|
+
return v && v.length > 0 ? v : undefined;
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
throw new SecretStoreError(err instanceof Error ? err.message : String(err), "SECRET_BACKEND");
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
async save(service, account, value) {
|
|
60
|
+
try {
|
|
61
|
+
await keytar.setPassword(service, account, value);
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
throw new SecretStoreError(err instanceof Error ? err.message : String(err), "SECRET_BACKEND");
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
async delete(service, account) {
|
|
68
|
+
try {
|
|
69
|
+
return await keytar.deletePassword(service, account);
|
|
70
|
+
}
|
|
71
|
+
catch (err) {
|
|
72
|
+
throw new SecretStoreError(err instanceof Error ? err.message : String(err), "SECRET_BACKEND");
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=keyring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyring.js","sourceRoot":"","sources":["../src/keyring.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,gBAAgB,GAEjB,MAAM,YAAY,CAAC;AAYpB,KAAK,UAAU,eAAe;IAC5B,IAAI,CAAC;QACL,yFAAyF;QACzF,MAAM,GAAG,GAAG,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,CAKhC,CAAC;QACF,IAAI,OAAO,GAAG,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;YAC1C,OAAO,GAAgB,CAAC;QAC1B,CAAC;QACD,IAAI,GAAG,CAAC,OAAO,IAAI,OAAO,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;YACjE,OAAO,GAAG,CAAC,OAAO,CAAC;QACrB,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,MAAM,WAAW,GACf,sFAAsF;IACtF,0GAA0G,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,MAAM,MAAM,GAAG,MAAM,eAAe,EAAE,CAAC;IACvC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO;YACL,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,KAAK;YAChB,kBAAkB,EAAE,WAAW;YAC/B,KAAK,CAAC,IAAI;gBACR,MAAM,IAAI,gBAAgB,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;YAChE,CAAC;YACD,KAAK,CAAC,IAAI;gBACR,MAAM,IAAI,gBAAgB,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;YAChE,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AG,EAAE,CAAC;gBACb,MAAM,IAAI,gBAAgB,CACxB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAChD,gBAAgB,CACjB,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,2EAA2E;AAC3E,wBAAgB,uBAAuB,IAAI,WAAW,CAkBrD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** In-memory SecretStore for tests / CI (`XRK_SECRETS_BACKEND=memory`). */
|
|
2
|
+
export function createMemorySecretStore() {
|
|
3
|
+
const map = new Map();
|
|
4
|
+
const keyOf = (service, account) => `${service}\0${account}`;
|
|
5
|
+
return {
|
|
6
|
+
providerName: "memory",
|
|
7
|
+
kind: "memory",
|
|
8
|
+
available: true,
|
|
9
|
+
async load(service, account) {
|
|
10
|
+
const v = map.get(keyOf(service, account));
|
|
11
|
+
return v !== undefined && v.length > 0 ? v : undefined;
|
|
12
|
+
},
|
|
13
|
+
async save(service, account, value) {
|
|
14
|
+
map.set(keyOf(service, account), value);
|
|
15
|
+
},
|
|
16
|
+
async delete(service, account) {
|
|
17
|
+
return map.delete(keyOf(service, account));
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAEA,2EAA2E;AAC3E,MAAM,UAAU,uBAAuB;IACrC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IACtC,MAAM,KAAK,GAAG,CAAC,OAAe,EAAE,OAAe,EAAE,EAAE,CAAC,GAAG,OAAO,KAAK,OAAO,EAAE,CAAC;IAC7E,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,IAAI;QACf,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO;YACzB,MAAM,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;YAC3C,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACzD,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK;YAChC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;QAC1C,CAAC;QACD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO;YAC3B,OAAO,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QAC7C,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Best-effort secret redaction for logs and durable text (Codex-style sanitizer).
|
|
3
|
+
* Not a wire `role('secret')` walker — see `@xrkseek/xrk-settings` for that.
|
|
4
|
+
*/
|
|
5
|
+
/** Placeholder used in redacted output. */
|
|
6
|
+
export declare const REDACTED_SECRET = "[REDACTED_SECRET]";
|
|
7
|
+
/**
|
|
8
|
+
* Remove well-known secret shapes from a string (best-effort).
|
|
9
|
+
* Safe to call on every log line; does not throw.
|
|
10
|
+
*/
|
|
11
|
+
export declare function redactSecrets(input: string): string;
|
|
12
|
+
/** Minimal logger surface shared by CLI / Host sinks. */
|
|
13
|
+
export interface RedactingLogger {
|
|
14
|
+
error(msg: string): void;
|
|
15
|
+
warn(msg: string): void;
|
|
16
|
+
info(msg: string): void;
|
|
17
|
+
debug(msg: string): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Wrap a logger so every message is passed through {@link redactSecrets}.
|
|
21
|
+
*/
|
|
22
|
+
export declare function wrapLoggerForSecrets<T extends RedactingLogger>(inner: T): T;
|
|
23
|
+
//# sourceMappingURL=redact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../src/redact.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,2CAA2C;AAC3C,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOnD;AAED,yDAAyD;AACzD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAW3E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Best-effort secret redaction for logs and durable text (Codex-style sanitizer).
|
|
3
|
+
* Not a wire `role('secret')` walker — see `@xrkseek/xrk-settings` for that.
|
|
4
|
+
*/
|
|
5
|
+
const OPENAI_KEY = /\bsk-[A-Za-z0-9_-]{8,}\b/g;
|
|
6
|
+
const AWS_ACCESS = /\bAKIA[0-9A-Z]{16}\b/g;
|
|
7
|
+
const BEARER = /\bBearer[ \t]+[A-Za-z0-9._~+/-]{16,}=*/gi;
|
|
8
|
+
const ASSIGNMENT = /\b(api[_-]?key|token|secret|password)\b(\s*[:=]\s*)(["']?)[^\s"']{8,}/gi;
|
|
9
|
+
/** Placeholder used in redacted output. */
|
|
10
|
+
export const REDACTED_SECRET = "[REDACTED_SECRET]";
|
|
11
|
+
/**
|
|
12
|
+
* Remove well-known secret shapes from a string (best-effort).
|
|
13
|
+
* Safe to call on every log line; does not throw.
|
|
14
|
+
*/
|
|
15
|
+
export function redactSecrets(input) {
|
|
16
|
+
let out = input;
|
|
17
|
+
out = out.replace(BEARER, `Bearer ${REDACTED_SECRET}`);
|
|
18
|
+
out = out.replace(OPENAI_KEY, REDACTED_SECRET);
|
|
19
|
+
out = out.replace(AWS_ACCESS, REDACTED_SECRET);
|
|
20
|
+
out = out.replace(ASSIGNMENT, `$1$2$3${REDACTED_SECRET}`);
|
|
21
|
+
return out;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Wrap a logger so every message is passed through {@link redactSecrets}.
|
|
25
|
+
*/
|
|
26
|
+
export function wrapLoggerForSecrets(inner) {
|
|
27
|
+
const wrap = (fn) => (msg) => {
|
|
28
|
+
fn(redactSecrets(msg));
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
...inner,
|
|
32
|
+
error: wrap(inner.error.bind(inner)),
|
|
33
|
+
warn: wrap(inner.warn.bind(inner)),
|
|
34
|
+
info: wrap(inner.info.bind(inner)),
|
|
35
|
+
debug: wrap(inner.debug.bind(inner)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=redact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redact.js","sourceRoot":"","sources":["../src/redact.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,UAAU,GAAG,2BAA2B,CAAC;AAC/C,MAAM,UAAU,GAAG,uBAAuB,CAAC;AAC3C,MAAM,MAAM,GAAG,0CAA0C,CAAC;AAC1D,MAAM,UAAU,GACd,yEAAyE,CAAC;AAE5E,2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ional SecretStore overlay.
|
|
5
|
+
* - `file` / unset → undefined (Face `.credentials.yaml` only)
|
|
6
|
+
* - `memory` → in-process store (CI)
|
|
7
|
+
* - `keyring` → OS keyring via optional `keytar` (may be unavailable)
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveSecretStore(env?: NodeJS.ProcessEnv): Promise<SecretStore | undefined>;
|
|
10
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/D;;;;;GAKG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAclC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createMemorySecretStore } from "./memory.js";
|
|
2
|
+
import { createOsKeyringStore } from "./keyring.js";
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the optional SecretStore overlay.
|
|
5
|
+
* - `file` / unset → undefined (Face `.credentials.yaml` only)
|
|
6
|
+
* - `memory` → in-process store (CI)
|
|
7
|
+
* - `keyring` → OS keyring via optional `keytar` (may be unavailable)
|
|
8
|
+
*/
|
|
9
|
+
export async function resolveSecretStore(env = process.env) {
|
|
10
|
+
const raw = String(env.XRK_SECRETS_BACKEND ?? "")
|
|
11
|
+
.trim()
|
|
12
|
+
.toLowerCase();
|
|
13
|
+
if (!raw || raw === "file" || raw === "0" || raw === "off") {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
if (raw === "memory") {
|
|
17
|
+
return createMemorySecretStore();
|
|
18
|
+
}
|
|
19
|
+
if (raw === "keyring" || raw === "os" || raw === "1") {
|
|
20
|
+
return createOsKeyringStore();
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAKpD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAyB,OAAO,CAAC,GAAG;IAEpC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC;SAC9C,IAAI,EAAE;SACN,WAAW,EAAE,CAAC;IACjB,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;QAC3D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;QACrB,OAAO,uBAAuB,EAAE,CAAC;IACnC,CAAC;IACD,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;QACrD,OAAO,oBAAoB,EAAE,CAAC;IAChC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret store Definition (Codex keyring-store shape).
|
|
3
|
+
* Face credentials stay the product SoT; this is an optional durable Provider.
|
|
4
|
+
*/
|
|
5
|
+
export type SecretStoreKind = "memory" | "os-keyring" | "unavailable";
|
|
6
|
+
export declare class SecretStoreError extends Error {
|
|
7
|
+
readonly code: "SECRET_UNAVAILABLE" | "SECRET_BACKEND";
|
|
8
|
+
constructor(message: string, code?: "SECRET_UNAVAILABLE" | "SECRET_BACKEND");
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Pluggable secret backend: load / save / delete by (service, account).
|
|
12
|
+
* Implementations must never log the secret value.
|
|
13
|
+
*/
|
|
14
|
+
export interface SecretStore {
|
|
15
|
+
readonly providerName: string;
|
|
16
|
+
readonly kind: SecretStoreKind;
|
|
17
|
+
/** False when the OS keyring module is missing or the backend refused probe. */
|
|
18
|
+
readonly available: boolean;
|
|
19
|
+
/** Human reason when `available` is false. */
|
|
20
|
+
readonly unavailableMessage?: string;
|
|
21
|
+
load(service: string, account: string): Promise<string | undefined>;
|
|
22
|
+
save(service: string, account: string, value: string): Promise<void>;
|
|
23
|
+
delete(service: string, account: string): Promise<boolean>;
|
|
24
|
+
}
|
|
25
|
+
/** Default keyring service id for XRK Host credentials. */
|
|
26
|
+
export declare const XRK_KEYRING_SERVICE = "xrk-harness";
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;AAEtE,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CAAC;gBAGrD,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,oBAAoB,GAAG,gBAAmC;CAMnE;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,gFAAgF;IAChF,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,2DAA2D;AAC3D,eAAO,MAAM,mBAAmB,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret store Definition (Codex keyring-store shape).
|
|
3
|
+
* Face credentials stay the product SoT; this is an optional durable Provider.
|
|
4
|
+
*/
|
|
5
|
+
export class SecretStoreError extends Error {
|
|
6
|
+
code;
|
|
7
|
+
constructor(message, code = "SECRET_BACKEND") {
|
|
8
|
+
super(message);
|
|
9
|
+
this.name = "SecretStoreError";
|
|
10
|
+
this.code = code;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** Default keyring service id for XRK Host credentials. */
|
|
14
|
+
export const XRK_KEYRING_SERVICE = "xrk-harness";
|
|
15
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAChC,IAAI,CAA0C;IAEvD,YACE,OAAe,EACf,OAAgD,gBAAgB;QAEhE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAkBD,2DAA2D;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xrkseek/secrets",
|
|
3
|
+
"description": "Secret store Providers (memory · OS keyring) + unified redactSecrets for logs",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./redact": {
|
|
13
|
+
"types": "./dist/redact.d.ts",
|
|
14
|
+
"import": "./dist/redact.js",
|
|
15
|
+
"default": "./dist/redact.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/xrkseek/XRK-harness.git",
|
|
26
|
+
"directory": "packages/util/secrets"
|
|
27
|
+
},
|
|
28
|
+
"private": true
|
|
29
|
+
}
|
|
@@ -57,6 +57,12 @@ export interface HostRuntimeConfig {
|
|
|
57
57
|
* (Desktop pipe transport). Env: `XRK_LISTEN=0`. Default `true`.
|
|
58
58
|
*/
|
|
59
59
|
readonly listen?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* When `true`, wrap SessionStore with package-owned runtime invariants and
|
|
62
|
+
* fail-fast on relational log violations. Env: `XRK_INVARIANTS_FAIL_FAST=1`.
|
|
63
|
+
* Default off (observability opt-in; does not change product defaults).
|
|
64
|
+
*/
|
|
65
|
+
readonly invariantsFailFast?: boolean;
|
|
60
66
|
}
|
|
61
67
|
export interface HostConfig {
|
|
62
68
|
readonly credentials: HostCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,O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