@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,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build-static catalog of XRK session format seams (interop ≠ Format V3).
|
|
3
|
+
*/
|
|
4
|
+
import { SESSION_INTERCHANGE_VERSION } from "./interchange-version.js";
|
|
5
|
+
import { SQLITE_SCHEMA_CURRENT } from "./sqlite-schema.js";
|
|
6
|
+
/** Named durable seams this repo owns. */
|
|
7
|
+
export const SESSION_FORMAT_SEAMS = Object.freeze({
|
|
8
|
+
/** Role JSONL ↔ XRK events. Not written to `sessions.db`. */
|
|
9
|
+
interchange: Object.freeze({
|
|
10
|
+
id: "xrk-interchange",
|
|
11
|
+
currentVersion: SESSION_INTERCHANGE_VERSION,
|
|
12
|
+
}),
|
|
13
|
+
/** Physical `sessions.db` schema (ADR-0009). */
|
|
14
|
+
sqliteSchema: Object.freeze({
|
|
15
|
+
id: "xrk-sqlite-schema",
|
|
16
|
+
currentVersion: SQLITE_SCHEMA_CURRENT,
|
|
17
|
+
}),
|
|
18
|
+
/** Export sidecar: packed chunk rows + optional zstd. */
|
|
19
|
+
packedJsonl: Object.freeze({
|
|
20
|
+
id: "xrk-packed-jsonl",
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Explicit product stance: third-party Session Format V3 is **not** a seam.
|
|
25
|
+
* @see docs/adr/0009-session-format-v3-vs-sqlite-schema-v3.md
|
|
26
|
+
*/
|
|
27
|
+
export const SESSION_FORMAT_V3_ADOPTED = false;
|
|
28
|
+
export function sessionFormatCatalogSummary() {
|
|
29
|
+
return [
|
|
30
|
+
`${SESSION_FORMAT_SEAMS.interchange.id}@v${SESSION_FORMAT_SEAMS.interchange.currentVersion}`,
|
|
31
|
+
`${SESSION_FORMAT_SEAMS.sqliteSchema.id}@v${SESSION_FORMAT_SEAMS.sqliteSchema.currentVersion}`,
|
|
32
|
+
SESSION_FORMAT_SEAMS.packedJsonl.id,
|
|
33
|
+
`session-format-v3:adopted=${SESSION_FORMAT_V3_ADOPTED}`,
|
|
34
|
+
].join(" · ");
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,0CAA0C;AAC1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC;QACzB,EAAE,EAAE,iBAA0B;QAC9B,cAAc,EAAE,2BAA2B;KAC5C,CAAC;IACF,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;QAC1B,EAAE,EAAE,mBAA4B;QAChC,cAAc,EAAE,qBAAqB;KACtC,CAAC;IACF,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC;QACzB,EAAE,EAAE,kBAA2B;KAChC,CAAC;CACH,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAc,CAAC;AAExD,MAAM,UAAU,2BAA2B;IACzC,OAAO;QACL,GAAG,oBAAoB,CAAC,WAAW,CAAC,EAAE,KAAK,oBAAoB,CAAC,WAAW,CAAC,cAAc,EAAE;QAC5F,GAAG,oBAAoB,CAAC,YAAY,CAAC,EAAE,KAAK,oBAAoB,CAAC,YAAY,CAAC,cAAc,EAAE;QAC9F,oBAAoB,CAAC,WAAW,CAAC,EAAE;QACnC,6BAA6B,yBAAyB,EAAE;KACzD,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adjacent migration vocabulary (learned from dsh `session-format` chain).
|
|
3
|
+
* Exact from→from+1 edges only — no skip versions.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SessionFormatError extends Error {
|
|
6
|
+
constructor(message: string);
|
|
7
|
+
}
|
|
8
|
+
/** Stored format is newer than this build, or a required adjacent edge is missing. */
|
|
9
|
+
export declare class SessionFormatUnsupportedMigrationError extends SessionFormatError {
|
|
10
|
+
constructor(message: string);
|
|
11
|
+
}
|
|
12
|
+
/** One independently maintained adjacent conversion. */
|
|
13
|
+
export interface AdjacentMigration<TCtx> {
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly fromVersion: number;
|
|
16
|
+
readonly toVersion: number;
|
|
17
|
+
apply(ctx: TCtx): void;
|
|
18
|
+
}
|
|
19
|
+
export interface AdjacentChainOptions<TCtx> {
|
|
20
|
+
readonly currentVersion: number;
|
|
21
|
+
readonly migrations: readonly AdjacentMigration<TCtx>[];
|
|
22
|
+
}
|
|
23
|
+
/** Pure adjacent planner — apply in order from stored version to current. */
|
|
24
|
+
export interface AdjacentChain<TCtx> {
|
|
25
|
+
readonly currentVersion: number;
|
|
26
|
+
/** Ordered edges from `fromVersion` (exclusive of already-current). */
|
|
27
|
+
plan(fromVersion: number): readonly AdjacentMigration<TCtx>[];
|
|
28
|
+
/** Run all planned edges; return {@link currentVersion}. */
|
|
29
|
+
migrate(fromVersion: number, ctx: TCtx): number;
|
|
30
|
+
}
|
|
31
|
+
/** Validate and freeze one adjacent migration declaration. */
|
|
32
|
+
export declare function defineAdjacentMigration<TCtx>(migration: AdjacentMigration<TCtx>): AdjacentMigration<TCtx>;
|
|
33
|
+
/**
|
|
34
|
+
* Compile a unique, complete adjacent migration chain (dsh-style).
|
|
35
|
+
* Requires exactly one edge for each `v → v+1` where `0 ≤ v < currentVersion`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function createAdjacentChain<TCtx>(options: AdjacentChainOptions<TCtx>): AdjacentChain<TCtx>;
|
|
38
|
+
//# sourceMappingURL=chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED,sFAAsF;AACtF,qBAAa,sCAAuC,SAAQ,kBAAkB;gBAChE,OAAO,EAAE,MAAM;CAI5B;AAED,wDAAwD;AACxD,MAAM,WAAW,iBAAiB,CAAC,IAAI;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB,CAAC,IAAI;IACxC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;CACzD;AAED,6EAA6E;AAC7E,MAAM,WAAW,aAAa,CAAC,IAAI;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,uEAAuE;IACvE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC9D,4DAA4D;IAC5D,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM,CAAC;CACjD;AASD,8DAA8D;AAC9D,wBAAgB,uBAAuB,CAAC,IAAI,EAC1C,SAAS,EAAE,iBAAiB,CAAC,IAAI,CAAC,GACjC,iBAAiB,CAAC,IAAI,CAAC,CAYzB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EACtC,OAAO,EAAE,oBAAoB,CAAC,IAAI,CAAC,GAClC,aAAa,CAAC,IAAI,CAAC,CA4DrB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adjacent migration vocabulary (learned from dsh `session-format` chain).
|
|
3
|
+
* Exact from→from+1 edges only — no skip versions.
|
|
4
|
+
*/
|
|
5
|
+
export class SessionFormatError extends Error {
|
|
6
|
+
constructor(message) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = "SessionFormatError";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/** Stored format is newer than this build, or a required adjacent edge is missing. */
|
|
12
|
+
export class SessionFormatUnsupportedMigrationError extends SessionFormatError {
|
|
13
|
+
constructor(message) {
|
|
14
|
+
super(message);
|
|
15
|
+
this.name = "SessionFormatUnsupportedMigrationError";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function requireVersion(value, label) {
|
|
19
|
+
if (!Number.isInteger(value) || value < 0) {
|
|
20
|
+
throw new SessionFormatError(`${label} must be a non-negative integer`);
|
|
21
|
+
}
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
/** Validate and freeze one adjacent migration declaration. */
|
|
25
|
+
export function defineAdjacentMigration(migration) {
|
|
26
|
+
if (typeof migration.name !== "string" || migration.name.length === 0) {
|
|
27
|
+
throw new SessionFormatError("migration name must be a non-empty string");
|
|
28
|
+
}
|
|
29
|
+
const from = requireVersion(migration.fromVersion, `${migration.name} fromVersion`);
|
|
30
|
+
const to = requireVersion(migration.toVersion, `${migration.name} toVersion`);
|
|
31
|
+
if (to !== from + 1) {
|
|
32
|
+
throw new SessionFormatError(`${migration.name} must declare adjacent v${from}->v${from + 1}`);
|
|
33
|
+
}
|
|
34
|
+
return Object.freeze({ ...migration });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Compile a unique, complete adjacent migration chain (dsh-style).
|
|
38
|
+
* Requires exactly one edge for each `v → v+1` where `0 ≤ v < currentVersion`.
|
|
39
|
+
*/
|
|
40
|
+
export function createAdjacentChain(options) {
|
|
41
|
+
const currentVersion = requireVersion(options.currentVersion, "current format version");
|
|
42
|
+
const byFrom = new Map();
|
|
43
|
+
const names = new Set();
|
|
44
|
+
for (const candidate of options.migrations) {
|
|
45
|
+
const migration = defineAdjacentMigration(candidate);
|
|
46
|
+
if (byFrom.has(migration.fromVersion)) {
|
|
47
|
+
throw new SessionFormatError(`migration v${migration.fromVersion}->v${migration.toVersion} is duplicated`);
|
|
48
|
+
}
|
|
49
|
+
if (names.has(migration.name)) {
|
|
50
|
+
throw new SessionFormatError(`migration name ${JSON.stringify(migration.name)} is duplicated`);
|
|
51
|
+
}
|
|
52
|
+
byFrom.set(migration.fromVersion, migration);
|
|
53
|
+
names.add(migration.name);
|
|
54
|
+
}
|
|
55
|
+
const ordered = [];
|
|
56
|
+
for (let version = 0; version < currentVersion; version += 1) {
|
|
57
|
+
const migration = byFrom.get(version);
|
|
58
|
+
if (migration === undefined) {
|
|
59
|
+
throw new SessionFormatUnsupportedMigrationError(`migration v${version}->v${version + 1} is missing`);
|
|
60
|
+
}
|
|
61
|
+
ordered.push(migration);
|
|
62
|
+
}
|
|
63
|
+
if (byFrom.size !== ordered.length) {
|
|
64
|
+
const invalid = [...byFrom.keys()].find((v) => v >= currentVersion);
|
|
65
|
+
throw new SessionFormatError(`migration from v${invalid} does not lead to current v${currentVersion}`);
|
|
66
|
+
}
|
|
67
|
+
const migrations = Object.freeze(ordered);
|
|
68
|
+
function plan(fromVersion) {
|
|
69
|
+
const from = requireVersion(fromVersion, "stored format version");
|
|
70
|
+
if (from > currentVersion) {
|
|
71
|
+
throw new SessionFormatUnsupportedMigrationError(`stored format uses newer v${from}; this build writes v${currentVersion}`);
|
|
72
|
+
}
|
|
73
|
+
return Object.freeze(migrations.slice(from));
|
|
74
|
+
}
|
|
75
|
+
return Object.freeze({
|
|
76
|
+
currentVersion,
|
|
77
|
+
plan,
|
|
78
|
+
migrate(fromVersion, ctx) {
|
|
79
|
+
for (const step of plan(fromVersion)) {
|
|
80
|
+
step.apply(ctx);
|
|
81
|
+
}
|
|
82
|
+
return currentVersion;
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,C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,CAAC;QACnC,MAAM,OAAO,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC;QACpE,MAAM,IAAI,kBAAkB,CAC1B,mBAAmB,OAAO,8BAA8B,cAAc,EAAE,CACzE,CAAC;IACJ,CAAC;IACD,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE1C,SAAS,IAAI,CAAC,WAAmB;QAC/B,MAAM,IAAI,GAAG,cAAc,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;QAClE,IAAI,IAAI,GAAG,cAAc,EAAE,CAAC;YAC1B,MAAM,IAAI,sCAAsC,CAC9C,6BAA6B,IAAI,wBAAwB,cAAc,EAAE,CAC1E,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,cAAc;QACd,IAAI;QACJ,OAAO,CAAC,WAAmB,EAAE,GAAS;YACpC,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;gBACrC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAClB,CAAC;YACD,OAAO,cAAc,CAAC;QACxB,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detect durable session artifacts. Cross-product interchange ≠ Session Format V3
|
|
3
|
+
* (ADR-0009). Foreign logical Format headers are refused, not migrated.
|
|
4
|
+
*/
|
|
5
|
+
export type SessionArtifactKind = {
|
|
6
|
+
readonly kind: "xrk-interchange";
|
|
7
|
+
readonly version: number;
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: "xrk-events-jsonl";
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: "xrk-packed-hint";
|
|
12
|
+
/** First line looked like a packed storage row (text-chunks / tool-call-chunks). */
|
|
13
|
+
readonly packedRow: boolean;
|
|
14
|
+
} | {
|
|
15
|
+
/** Third-party logical Session Format (often called V3). Not adopted. */
|
|
16
|
+
readonly kind: "foreign-session-format";
|
|
17
|
+
readonly version: number;
|
|
18
|
+
readonly refused: true;
|
|
19
|
+
readonly reason: string;
|
|
20
|
+
} | {
|
|
21
|
+
readonly kind: "unknown";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Classify the opening of a JSONL / header blob.
|
|
25
|
+
* Does **not** parse a full transcript — enough to refuse Format V3 and route
|
|
26
|
+
* interchange / packed / XRK event lines.
|
|
27
|
+
*/
|
|
28
|
+
export declare function detectSessionArtifact(text: string): SessionArtifactKind;
|
|
29
|
+
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../src/detect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;CACnC,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,oFAAoF;IACpF,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,GACD;IACE,yEAAyE;IACzE,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;CAC1B,CAAC;AAmBN;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAiDvE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detect durable session artifacts. Cross-product interchange ≠ Session Format V3
|
|
3
|
+
* (ADR-0009). Foreign logical Format headers are refused, not migrated.
|
|
4
|
+
*/
|
|
5
|
+
function firstJsonObject(text) {
|
|
6
|
+
for (const line of text.split(/\r?\n/)) {
|
|
7
|
+
const trimmed = line.trim();
|
|
8
|
+
if (!trimmed)
|
|
9
|
+
continue;
|
|
10
|
+
try {
|
|
11
|
+
const raw = JSON.parse(trimmed);
|
|
12
|
+
if (raw && typeof raw === "object" && !Array.isArray(raw)) {
|
|
13
|
+
return raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Classify the opening of a JSONL / header blob.
|
|
25
|
+
* Does **not** parse a full transcript — enough to refuse Format V3 and route
|
|
26
|
+
* interchange / packed / XRK event lines.
|
|
27
|
+
*/
|
|
28
|
+
export function detectSessionArtifact(text) {
|
|
29
|
+
const head = firstJsonObject(text);
|
|
30
|
+
if (!head)
|
|
31
|
+
return { kind: "unknown" };
|
|
32
|
+
if (typeof head.xrkInterchange === "number") {
|
|
33
|
+
return { kind: "xrk-interchange", version: head.xrkInterchange };
|
|
34
|
+
}
|
|
35
|
+
// dsh / community Session Format header shape (logical generation).
|
|
36
|
+
const version = head.version;
|
|
37
|
+
const looksForeign = typeof version === "number" &&
|
|
38
|
+
Number.isInteger(version) &&
|
|
39
|
+
typeof head.id === "string" &&
|
|
40
|
+
typeof head.createdAt === "number" &&
|
|
41
|
+
typeof head.isSeeded === "boolean" &&
|
|
42
|
+
typeof head.delegationDepth === "number" &&
|
|
43
|
+
head.type === undefined;
|
|
44
|
+
if (looksForeign) {
|
|
45
|
+
return {
|
|
46
|
+
kind: "foreign-session-format",
|
|
47
|
+
version,
|
|
48
|
+
refused: true,
|
|
49
|
+
reason: "third-party Session Format is not adopted (ADR-0009); use importSessionInterchange for role JSONL",
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (head.type === "text-chunks" || head.type === "tool-call-chunks") {
|
|
53
|
+
return { kind: "xrk-packed-hint", packedRow: true };
|
|
54
|
+
}
|
|
55
|
+
if (typeof head.type === "string" && head.type.includes("/")) {
|
|
56
|
+
return { kind: "xrk-events-jsonl" };
|
|
57
|
+
}
|
|
58
|
+
// Bare role JSONL (interchange body without header) — treat as interchange v0 body.
|
|
59
|
+
if (head.role === "user" ||
|
|
60
|
+
head.role === "assistant" ||
|
|
61
|
+
head.role === "tool" ||
|
|
62
|
+
head.role === "human" ||
|
|
63
|
+
head.role === "model") {
|
|
64
|
+
return { kind: "xrk-interchange", version: 0 };
|
|
65
|
+
}
|
|
66
|
+
return { kind: "unknown" };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=detect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.js","sourceRoot":"","sources":["../src/detect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,SAAS,eAAe,CAAC,IAAY;IACnC,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO;YAAE,SAAS;QACvB,IAAI,CAAC;YACH,MAAM,GAAG,GAAY,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzC,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC1D,OAAO,GAA8B,CAAC;YACxC,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AAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7D,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;IACtC,CAAC;IAED,oFAAoF;IACpF,IACE,IAAI,CAAC,IAAI,KAAK,MAAM;QACpB,IAAI,CAAC,IAAI,KAAK,WAAW;QACzB,IAAI,CAAC,IAAI,KAAK,MAAM;QACpB,IAAI,CAAC,IAAI,KAAK,OAAO;QACrB,IAAI,CAAC,IAAI,KAAK,OAAO,EACrB,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACjD,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xrkseek/session-format` — adjacent migration chain + artifact detect.
|
|
3
|
+
*
|
|
4
|
+
* Product stance (ADR-0009): cross-product **interchange** and SQLite schema
|
|
5
|
+
* upgrades are first-class; third-party **Session Format V3** is not adopted.
|
|
6
|
+
*/
|
|
7
|
+
export { SessionFormatError, SessionFormatUnsupportedMigrationError, defineAdjacentMigration, createAdjacentChain, type AdjacentMigration, type AdjacentChain, type AdjacentChainOptions, } from "./chain.js";
|
|
8
|
+
export { detectSessionArtifact, type SessionArtifactKind, } from "./detect.js";
|
|
9
|
+
export { SQLITE_SCHEMA_CURRENT, createSqliteSchemaMigrations, createSqliteSchemaChain, migrateSqliteSchema, type SqliteSchemaMigrationHooks, } from "./sqlite-schema.js";
|
|
10
|
+
export { SESSION_FORMAT_SEAMS, SESSION_FORMAT_V3_ADOPTED, sessionFormatCatalogSummary, } from "./catalog.js";
|
|
11
|
+
export { SESSION_INTERCHANGE_VERSION } from "./interchange-version.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,EAClB,sCAAsC,EACtC,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,qBAAqB,EACrB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xrkseek/session-format` — adjacent migration chain + artifact detect.
|
|
3
|
+
*
|
|
4
|
+
* Product stance (ADR-0009): cross-product **interchange** and SQLite schema
|
|
5
|
+
* upgrades are first-class; third-party **Session Format V3** is not adopted.
|
|
6
|
+
*/
|
|
7
|
+
export { SessionFormatError, SessionFormatUnsupportedMigrationError, defineAdjacentMigration, createAdjacentChain, } from "./chain.js";
|
|
8
|
+
export { detectSessionArtifact, } from "./detect.js";
|
|
9
|
+
export { SQLITE_SCHEMA_CURRENT, createSqliteSchemaMigrations, createSqliteSchemaChain, migrateSqliteSchema, } from "./sqlite-schema.js";
|
|
10
|
+
export { SESSION_FORMAT_SEAMS, SESSION_FORMAT_V3_ADOPTED, sessionFormatCatalogSummary, } from "./catalog.js";
|
|
11
|
+
export { SESSION_INTERCHANGE_VERSION } from "./interchange-version.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,EAClB,sCAAsC,EACtC,uBAAuB,EACvB,mBAAmB,GAIpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,qBAAqB,GAEtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,GAEpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interchange format generation (role JSONL header `xrkInterchange`).
|
|
3
|
+
* Kept numeric-only here so `@xrkseek/session-format` has no core-session cycle.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SESSION_INTERCHANGE_VERSION = 1;
|
|
6
|
+
//# sourceMappingURL=interchange-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interchange-version.d.ts","sourceRoot":"","sources":["../src/interchange-version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interchange-version.js","sourceRoot":"","sources":["../src/interchange-version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SQLite `sessions.db` physical schema adjacent migrations (not Session Format V3).
|
|
3
|
+
* Current = {@link SQLITE_SCHEMA_CURRENT} (= 3). Version 0 means unset / fresh.
|
|
4
|
+
*/
|
|
5
|
+
import { type AdjacentChain, type AdjacentMigration } from "./chain.js";
|
|
6
|
+
/** Physical schema stamped in `meta.schema_version` (ADR-0009 ≠ Format V3). */
|
|
7
|
+
export declare const SQLITE_SCHEMA_CURRENT = 3;
|
|
8
|
+
/** Hooks the Host/store supplies so this package stays Cordis/sqlite-free. */
|
|
9
|
+
export interface SqliteSchemaMigrationHooks {
|
|
10
|
+
/** Create `sessions` / `events` / indexes if missing. */
|
|
11
|
+
ensureTables(): void;
|
|
12
|
+
/** Create FTS index if missing. */
|
|
13
|
+
ensureFts(): void;
|
|
14
|
+
/** Rebuild FTS from events (schema bump path). */
|
|
15
|
+
rebuildFts(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Adjacent edges 0→1→2→3 for `sessions.db`.
|
|
19
|
+
* - 0→1: base tables
|
|
20
|
+
* - 1→2: FTS present
|
|
21
|
+
* - 2→3: FTS rebuild (trigram / content sync)
|
|
22
|
+
*/
|
|
23
|
+
export declare function createSqliteSchemaMigrations(): readonly AdjacentMigration<SqliteSchemaMigrationHooks>[];
|
|
24
|
+
/** Compiled SQLite schema chain targeting {@link SQLITE_SCHEMA_CURRENT}. */
|
|
25
|
+
export declare function createSqliteSchemaChain(): AdjacentChain<SqliteSchemaMigrationHooks>;
|
|
26
|
+
/**
|
|
27
|
+
* Apply adjacent schema upgrades from `storedVersion` (0 = unset).
|
|
28
|
+
* @returns {@link SQLITE_SCHEMA_CURRENT}
|
|
29
|
+
*/
|
|
30
|
+
export declare function migrateSqliteSchema(storedVersion: number, hooks: SqliteSchemaMigrationHooks): number;
|
|
31
|
+
//# sourceMappingURL=sqlite-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-schema.d.ts","sourceRoot":"","sources":["../src/sqlite-schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,YAAY,IAAI,IAAI,CAAC;IACrB,mCAAmC;IACnC,SAAS,IAAI,IAAI,CAAC;IAClB,kDAAkD;IAClD,UAAU,IAAI,IAAI,CAAC;CACpB;AAeD;;;;;GAKG;AACH,wBAAgB,4BAA4B,IAAI,SAAS,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,CAevG;AAED,4EAA4E;AAC5E,wBAAgB,uBAAuB,IAAI,aAAa,CAAC,0BAA0B,CAAC,CAKnF;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,0BAA0B,GAChC,MAAM,CAER"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SQLite `sessions.db` physical schema adjacent migrations (not Session Format V3).
|
|
3
|
+
* Current = {@link SQLITE_SCHEMA_CURRENT} (= 3). Version 0 means unset / fresh.
|
|
4
|
+
*/
|
|
5
|
+
import { createAdjacentChain, } from "./chain.js";
|
|
6
|
+
/** Physical schema stamped in `meta.schema_version` (ADR-0009 ≠ Format V3). */
|
|
7
|
+
export const SQLITE_SCHEMA_CURRENT = 3;
|
|
8
|
+
function edge(from, name, apply) {
|
|
9
|
+
return {
|
|
10
|
+
name,
|
|
11
|
+
fromVersion: from,
|
|
12
|
+
toVersion: from + 1,
|
|
13
|
+
apply,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Adjacent edges 0→1→2→3 for `sessions.db`.
|
|
18
|
+
* - 0→1: base tables
|
|
19
|
+
* - 1→2: FTS present
|
|
20
|
+
* - 2→3: FTS rebuild (trigram / content sync)
|
|
21
|
+
*/
|
|
22
|
+
export function createSqliteSchemaMigrations() {
|
|
23
|
+
return Object.freeze([
|
|
24
|
+
edge(0, "sqlite-schema-v0-to-v1-tables", (h) => {
|
|
25
|
+
h.ensureTables();
|
|
26
|
+
}),
|
|
27
|
+
edge(1, "sqlite-schema-v1-to-v2-fts", (h) => {
|
|
28
|
+
h.ensureTables();
|
|
29
|
+
h.ensureFts();
|
|
30
|
+
}),
|
|
31
|
+
edge(2, "sqlite-schema-v2-to-v3-fts-rebuild", (h) => {
|
|
32
|
+
h.ensureTables();
|
|
33
|
+
h.ensureFts();
|
|
34
|
+
h.rebuildFts();
|
|
35
|
+
}),
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
/** Compiled SQLite schema chain targeting {@link SQLITE_SCHEMA_CURRENT}. */
|
|
39
|
+
export function createSqliteSchemaChain() {
|
|
40
|
+
return createAdjacentChain({
|
|
41
|
+
currentVersion: SQLITE_SCHEMA_CURRENT,
|
|
42
|
+
migrations: createSqliteSchemaMigrations(),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Apply adjacent schema upgrades from `storedVersion` (0 = unset).
|
|
47
|
+
* @returns {@link SQLITE_SCHEMA_CURRENT}
|
|
48
|
+
*/
|
|
49
|
+
export function migrateSqliteSchema(storedVersion, hooks) {
|
|
50
|
+
return createSqliteSchemaChain().migrate(storedVersion, hooks);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=sqlite-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-schema.js","sourceRoot":"","sources":["../src/sqlite-schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,mBAAmB,GAGpB,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAYvC,SAAS,IAAI,CACX,IAAY,EACZ,IAAY,EACZ,KAAkD;IAElD,OAAO;QACL,IAAI;QACJ,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,IAAI,GAAG,CAAC;QACnB,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B;IAC1C,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC,EAAE,EAAE;YAC7C,CAAC,CAAC,YAAY,EAAE,CAAC;QACnB,CAAC,CAAC;QACF,IAAI,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC,EAAE,EAAE;YAC1C,CAAC,CAAC,YAAY,EAAE,CAAC;YACjB,CAAC,CAAC,SAAS,EAAE,CAAC;QAChB,CAAC,CAAC;QACF,IAAI,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,CAAC,EAAE,EAAE;YAClD,CAAC,CAAC,YAAY,EAAE,CAAC;YACjB,CAAC,CAAC,SAAS,EAAE,CAAC;YACd,CAAC,CAAC,UAAU,EAAE,CAAC;QACjB,CAAC,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,uBAAuB;IACrC,OAAO,mBAAmB,CAAC;QACzB,cAAc,EAAE,qBAAqB;QACrC,UAAU,EAAE,4BAA4B,EAAE;KAC3C,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CACjC,aAAqB,EACrB,KAAiC;IAEjC,OAAO,uBAAuB,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xrkseek/session-format",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Adjacent session-format migration chain + artifact detect (interop ≠ Session Format V3 / ADR-0009)",
|
|
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
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/xrkseek/XRK-harness.git",
|
|
21
|
+
"directory": "packages/session-format"
|
|
22
|
+
},
|
|
23
|
+
"private": true
|
|
24
|
+
}
|
|
@@ -5,8 +5,20 @@ export { opsRecord, recordFromSessionEvent, } from "./record.js";
|
|
|
5
5
|
export { createMemorySessionTelemetrySink, type MemorySessionTelemetryOptions, } from "./memory.js";
|
|
6
6
|
export { createOtlpHttpSessionTelemetrySink, resolveOtlpLogsEndpoint, type OtlpFetch, type OtlpHttpSessionTelemetryOptions, } from "./otlp-http.js";
|
|
7
7
|
export { wrapStoreForSessionTelemetry, type WrapStoreForSessionTelemetryOptions, } from "./wrap-store.js";
|
|
8
|
+
/** Face `session-telemetry` product shape (Settings SoT). */
|
|
9
|
+
export type SessionTelemetryMode = "off" | "memory" | "otlp";
|
|
10
|
+
export interface SessionTelemetryProductConfig {
|
|
11
|
+
readonly mode: SessionTelemetryMode;
|
|
12
|
+
/** Required for `otlp` unless an OTEL_* / XRK_TELEMETRY_OTLP_ENDPOINT is set. */
|
|
13
|
+
readonly endpoint?: string;
|
|
14
|
+
}
|
|
8
15
|
export interface DefaultSessionTelemetryAccessOptions {
|
|
9
16
|
readonly env?: NodeJS.ProcessEnv;
|
|
17
|
+
/**
|
|
18
|
+
* Face Settings product config. Used when `XRK_TELEMETRY` is unset
|
|
19
|
+
* (env remains the CI bypass).
|
|
20
|
+
*/
|
|
21
|
+
readonly product?: SessionTelemetryProductConfig;
|
|
10
22
|
readonly sink?: SessionTelemetrySink;
|
|
11
23
|
readonly fetchImpl?: OtlpFetch;
|
|
12
24
|
readonly serviceName?: string;
|
|
@@ -15,14 +27,16 @@ export interface DefaultSessionTelemetryAccess {
|
|
|
15
27
|
readonly sink?: SessionTelemetrySink;
|
|
16
28
|
readonly unavailableMessage: string;
|
|
17
29
|
}
|
|
18
|
-
|
|
30
|
+
/** Parse a Face `session-telemetry` namespace value (unknown → product or undefined). */
|
|
31
|
+
export declare function parseSessionTelemetryProduct(raw: unknown): SessionTelemetryProductConfig | undefined;
|
|
32
|
+
export declare function sessionTelemetryUnavailableMessage(env?: NodeJS.ProcessEnv, product?: SessionTelemetryProductConfig): string;
|
|
19
33
|
/**
|
|
20
34
|
* Resolve a session-telemetry sink.
|
|
21
35
|
* - Injected `sink` wins.
|
|
22
|
-
* - `XRK_TELEMETRY
|
|
23
|
-
* - `
|
|
24
|
-
* - `XRK_TELEMETRY=1` / `otlp` + endpoint → OTLP/HTTP logs.
|
|
36
|
+
* - Non-empty `XRK_TELEMETRY` → env path (CI bypass over Settings).
|
|
37
|
+
* - Else Face `product` (`off` / `memory` / `otlp` + endpoint).
|
|
25
38
|
* - Else if a standard OTEL_* endpoint is set → OTLP (opt-in via endpoint alone).
|
|
39
|
+
* - Else disabled.
|
|
26
40
|
*/
|
|
27
41
|
export declare function createDefaultSessionTelemetryAccess(options?: DefaultSessionTelemetryAccessOptions): DefaultSessionTelemetryAccess;
|
|
28
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EACL,qBAAqB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gCAAgC,EAChC,KAAK,6BAA6B,GACnC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kCAAkC,EAClC,uBAAuB,EACvB,KAAK,SAAS,EACd,KAAK,+BAA+B,GACrC,MAAM,gBAAgB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