@xrkseek/harness-cli 0.0.6 → 0.0.8
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/plugin/classify.js +1 -1
- package/dist/plugin/classify.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +15 -3
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +8 -2
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/cancel-finalize.d.ts +6 -3
- package/node_modules/@xrkseek/core-agent-loop/dist/cancel-finalize.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/cancel-finalize.js +50 -4
- package/node_modules/@xrkseek/core-agent-loop/dist/cancel-finalize.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +23 -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 +223 -43
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/llm-retry.d.ts +32 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/llm-retry.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/llm-retry.js +92 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/llm-retry.js.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/settle-batch.d.ts +18 -8
- package/node_modules/@xrkseek/core-agent-loop/dist/settle-batch.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/settle-batch.js +187 -29
- package/node_modules/@xrkseek/core-agent-loop/dist/settle-batch.js.map +1 -1
- package/node_modules/@xrkseek/core-session/README.md +1 -1
- package/node_modules/@xrkseek/core-session/dist/chunk-pack.d.ts +18 -4
- package/node_modules/@xrkseek/core-session/dist/chunk-pack.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/chunk-pack.js +114 -34
- package/node_modules/@xrkseek/core-session/dist/chunk-pack.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js +24 -4
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.d.ts +28 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.js +35 -5
- package/node_modules/@xrkseek/core-session/dist/dangling.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.d.ts +3 -2
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +3 -2
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/latch.d.ts +1 -1
- package/node_modules/@xrkseek/core-session/dist/latch.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/latch.js +2 -2
- package/node_modules/@xrkseek/core-session/dist/latch.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.js +44 -4
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts +1 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +10 -5
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/surface-fold.d.ts +5 -0
- package/node_modules/@xrkseek/core-session/dist/surface-fold.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/surface-fold.js +29 -3
- package/node_modules/@xrkseek/core-session/dist/surface-fold.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/tool-result-prune.d.ts +35 -0
- package/node_modules/@xrkseek/core-session/dist/tool-result-prune.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/tool-result-prune.js +99 -0
- package/node_modules/@xrkseek/core-session/dist/tool-result-prune.js.map +1 -0
- 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 +15 -2
- 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 +38 -4
- package/node_modules/@xrkseek/core-system-prompt/dist/three-layer.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/abort.d.ts +5 -0
- package/node_modules/@xrkseek/core-tools/dist/abort.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/abort.js +14 -0
- package/node_modules/@xrkseek/core-tools/dist/abort.js.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/definition.d.ts +32 -1
- package/node_modules/@xrkseek/core-tools/dist/definition.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/definition.js +1 -0
- package/node_modules/@xrkseek/core-tools/dist/definition.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/execution-mode.d.ts +15 -0
- package/node_modules/@xrkseek/core-tools/dist/execution-mode.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/execution-mode.js +17 -0
- package/node_modules/@xrkseek/core-tools/dist/execution-mode.js.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/index.d.ts +2 -0
- package/node_modules/@xrkseek/core-tools/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/index.js +2 -0
- package/node_modules/@xrkseek/core-tools/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.js +36 -10
- package/node_modules/@xrkseek/core-tools/dist/pipeline.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/types.d.ts +7 -0
- package/node_modules/@xrkseek/core-tools/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +3 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-lsp/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-lsp/dist/tools.js +1 -0
- package/node_modules/@xrkseek/exec-lsp/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/registry.d.ts +5 -0
- package/node_modules/@xrkseek/exec-pty/dist/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/registry.js +17 -1
- package/node_modules/@xrkseek/exec-pty/dist/registry.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.d.ts +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.js +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/render.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/tools.js +15 -4
- package/node_modules/@xrkseek/exec-pty/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +4 -0
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/search-providers.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/tools.js +2 -0
- package/node_modules/@xrkseek/exec-web/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/failure.d.ts +45 -0
- package/node_modules/@xrkseek/llm/dist/failure.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm/dist/failure.js +115 -0
- package/node_modules/@xrkseek/llm/dist/failure.js.map +1 -0
- package/node_modules/@xrkseek/llm/dist/index.d.ts +80 -1
- package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm/dist/index.js +167 -2
- package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/retry-policy.d.ts +23 -0
- package/node_modules/@xrkseek/llm/dist/retry-policy.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm/dist/retry-policy.js +74 -0
- package/node_modules/@xrkseek/llm/dist/retry-policy.js.map +1 -0
- package/node_modules/@xrkseek/llm-anthropic/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-anthropic/dist/index.js +152 -22
- package/node_modules/@xrkseek/llm-anthropic/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/README.md +3 -3
- package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts +32 -2
- package/node_modules/@xrkseek/llm-deepseek/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/index.js +59 -5
- package/node_modules/@xrkseek/llm-deepseek/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-gemini/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-gemini/dist/index.js +18 -8
- package/node_modules/@xrkseek/llm-gemini/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-openai-compatible/dist/deepseek-thinking.d.ts +16 -0
- package/node_modules/@xrkseek/llm-openai-compatible/dist/deepseek-thinking.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm-openai-compatible/dist/deepseek-thinking.js +40 -0
- package/node_modules/@xrkseek/llm-openai-compatible/dist/deepseek-thinking.js.map +1 -0
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts +9 -1
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js +78 -21
- package/node_modules/@xrkseek/llm-openai-compatible/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-openai-responses/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-openai-responses/dist/index.js +18 -8
- package/node_modules/@xrkseek/llm-openai-responses/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/registry.js +6 -4
- package/node_modules/@xrkseek/llm-registry/dist/registry.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/routing-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/routing-adapter.js +15 -3
- package/node_modules/@xrkseek/llm-registry/dist/routing-adapter.js.map +1 -1
- package/node_modules/@xrkseek/llm-replay/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-replay/dist/index.js +4 -1
- package/node_modules/@xrkseek/llm-replay/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/client.d.ts +3 -1
- package/node_modules/@xrkseek/mcp/dist/client.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/client.js +31 -7
- package/node_modules/@xrkseek/mcp/dist/client.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.js +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/register.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/register.js +3 -0
- package/node_modules/@xrkseek/mcp/dist/register.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/types.d.ts +10 -0
- package/node_modules/@xrkseek/mcp/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +21 -3
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +31 -8
- 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-minimal/dist/preset.d.ts +3 -2
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +13 -7
- 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 +5 -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/index.d.ts +3 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +3 -1
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +72 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +99 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/messages.d.ts +7 -0
- package/node_modules/@xrkseek/protocol/dist/messages.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +110 -6
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +23 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/tools.d.ts +15 -0
- package/node_modules/@xrkseek/protocol/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/tools.js +6 -1
- package/node_modules/@xrkseek/protocol/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +234 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts +2 -0
- 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 +26 -8
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts +1 -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 +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +2 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/llm-resolve.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/llm-resolve.js.map +1 -1
- 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/registry.d.ts +12 -50
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.js +4 -146
- package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-breakdown.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-breakdown.js +13 -11
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-breakdown.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.js +27 -25
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-pressure.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/image-limits.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/image-limits.js +31 -29
- package/node_modules/@xrkseek/server-face/dist/projections/units/image-limits.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/permissions.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/permissions.js +27 -25
- package/node_modules/@xrkseek/server-face/dist/projections/units/permissions.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/plan.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/plan.js +12 -10
- package/node_modules/@xrkseek/server-face/dist/projections/units/plan.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js +20 -14
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-stats.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-stats.js +27 -25
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-stats.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.js +9 -7
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js +25 -23
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/token-usage.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/token-usage.js +14 -12
- package/node_modules/@xrkseek/server-face/dist/projections/units/token-usage.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +4 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts +8 -13
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +29 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/skill-list.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +1 -0
- package/node_modules/@xrkseek/server-host/dist/agent-cache.js +1 -1
- package/node_modules/@xrkseek/server-host/dist/agent-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +8 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +39 -1
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-projection/README.md +22 -0
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts +100 -0
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-projection/dist/index.js +241 -0
- package/node_modules/@xrkseek/session-projection/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/session-projection/dist/types.d.ts +20 -0
- package/node_modules/@xrkseek/session-projection/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-projection/dist/types.js +9 -0
- package/node_modules/@xrkseek/session-projection/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/session-projection/package.json +31 -0
- package/node_modules/@xrkseek/workspace/README.md +3 -23
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts +62 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js +146 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +25 -13
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +77 -17
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js +7 -0
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts +12 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.js +42 -4
- package/node_modules/@xrkseek/workspace/dist/skills.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/slash.js +2 -0
- package/node_modules/@xrkseek/workspace/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/workspace/package.json +2 -1
- package/package.json +3 -1
- package/product-web/assets/index-CcF0Sxxg.js +297 -0
- package/product-web/assets/index-CcF0Sxxg.js.map +1 -0
- package/product-web/assets/langs/{php-9bx0az3O.js → php-DY2VakOf.js} +2 -2
- package/product-web/assets/langs/{php-9bx0az3O.js.map → php-DY2VakOf.js.map} +1 -1
- package/product-web/assets/langs/{ruby-HDLHRjSL.js → ruby-hwtoiFmS.js} +2 -2
- package/product-web/assets/langs/{ruby-HDLHRjSL.js.map → ruby-hwtoiFmS.js.map} +1 -1
- package/product-web/assets/{vendor-CeMKrCZm.js → vendor-CldRVjca.js} +35 -36
- package/product-web/assets/vendor-CldRVjca.js.map +1 -0
- package/product-web/boot.json +1 -1
- package/product-web/index.html +2 -2
- package/product-web/plugins/@xrkseek/client-locale/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-runtime/client.js +37 -1
- package/product-web/plugins/@xrkseek/client-ui-agent-preset/client.js +37 -37
- package/product-web/plugins/@xrkseek/client-ui-commands/client.js +8 -8
- package/product-web/plugins/@xrkseek/client-ui-conversation/client.js +172 -186
- package/product-web/plugins/@xrkseek/client-ui-deliverables/client.js +5 -5
- package/product-web/plugins/@xrkseek/client-ui-directory-picker-browse/client.js +30 -30
- package/product-web/plugins/@xrkseek/client-ui-goal/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-input-trigger/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-jobs/client.js +10 -10
- package/product-web/plugins/@xrkseek/client-ui-layout/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-message-feedback/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-model-selection/client.js +16 -16
- package/product-web/plugins/@xrkseek/client-ui-permission-presets/client.js +4 -4
- package/product-web/plugins/@xrkseek/client-ui-plan/client.js +2 -2
- package/product-web/plugins/@xrkseek/client-ui-settings-general/client.js +15 -15
- package/product-web/plugins/@xrkseek/client-ui-settings-models/client.js +55 -55
- package/product-web/plugins/@xrkseek/client-ui-settings-plugin-inventory/client.js +13 -13
- package/product-web/plugins/@xrkseek/client-ui-settings-plugins/client.js +134 -63
- package/product-web/plugins/@xrkseek/client-ui-sidebar/client.js +14 -14
- package/product-web/plugins/@xrkseek/client-ui-skill/client.js +11 -11
- package/product-web/plugins/@xrkseek/client-ui-subagent/client.js +15 -15
- package/product-web/plugins/@xrkseek/client-ui-theme/client.js +3 -3
- package/product-web/plugins/@xrkseek/client-ui-tool/client.js +43 -43
- package/product-web/plugins/@xrkseek/client-ui-trajectory/client.js +166 -145
- package/product-web/plugins/@xrkseek/client-ui-user-questions/client.js +30 -30
- package/product-web/plugins/@xrkseek/client-ui-workflow-run/client.js +16 -16
- package/product-web/plugins/@xrkseek/client-ui-workspace/client.js +56 -56
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.d.ts +0 -35
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.js +0 -116
- package/node_modules/@xrkseek/server-face/dist/dsh-schema.js.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/envelope.d.ts +0 -23
- package/node_modules/@xrkseek/server-face/dist/envelope.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/envelope.js +0 -51
- package/node_modules/@xrkseek/server-face/dist/envelope.js.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/rpc-error.d.ts +0 -15
- package/node_modules/@xrkseek/server-face/dist/rpc-error.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/rpc-error.js +0 -247
- package/node_modules/@xrkseek/server-face/dist/rpc-error.js.map +0 -1
- package/product-web/assets/index-BwSJq-Ch.js +0 -112
- package/product-web/assets/index-BwSJq-Ch.js.map +0 -1
- package/product-web/assets/vendor-CeMKrCZm.js.map +0 -1
|
@@ -341,40 +341,40 @@ window.__ModuleLoader__.load({
|
|
|
341
341
|
document.head.appendChild(tag);
|
|
342
342
|
}
|
|
343
343
|
var Rows_module_css_default = {
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"
|
|
348
|
-
"hoverContent": "X-VPTa_hoverContent",
|
|
349
|
-
"title": "X-VPTa_title",
|
|
344
|
+
"slot": "X-VPTa_slot",
|
|
345
|
+
"sessionRow": "X-VPTa_sessionRow",
|
|
346
|
+
"chevron": "X-VPTa_chevron",
|
|
347
|
+
"meta": "X-VPTa_meta",
|
|
350
348
|
"dropAfter": "X-VPTa_dropAfter",
|
|
349
|
+
"searchResultHeading": "X-VPTa_searchResultHeading",
|
|
350
|
+
"renameInput": "X-VPTa_renameInput",
|
|
351
|
+
"searchResultTitle": "X-VPTa_searchResultTitle",
|
|
352
|
+
"flatSessionRowWithoutStatus": "X-VPTa_flatSessionRowWithoutStatus",
|
|
353
|
+
"hoverTime": "X-VPTa_hoverTime",
|
|
354
|
+
"searchResultMeta": "X-VPTa_searchResultMeta",
|
|
351
355
|
"hoverStatus": "X-VPTa_hoverStatus",
|
|
352
|
-
"
|
|
353
|
-
"projectText": "X-VPTa_projectText",
|
|
356
|
+
"projectRow": "X-VPTa_projectRow",
|
|
354
357
|
"dot": "X-VPTa_dot",
|
|
355
|
-
"rowActions": "X-VPTa_rowActions",
|
|
356
|
-
"row-in": "X-VPTa_row-in",
|
|
357
|
-
"hoverTime": "X-VPTa_hoverTime",
|
|
358
|
-
"searchResultTitle": "X-VPTa_searchResultTitle",
|
|
359
|
-
"time": "X-VPTa_time",
|
|
360
|
-
"chevron": "X-VPTa_chevron",
|
|
361
358
|
"arrowOpen": "X-VPTa_arrowOpen",
|
|
362
|
-
"
|
|
363
|
-
"
|
|
359
|
+
"selected": "X-VPTa_selected",
|
|
360
|
+
"time": "X-VPTa_time",
|
|
361
|
+
"hoverContent": "X-VPTa_hoverContent",
|
|
362
|
+
"iconButton": "X-VPTa_iconButton",
|
|
363
|
+
"folder": "X-VPTa_folder",
|
|
364
|
+
"searchResultRow": "X-VPTa_searchResultRow",
|
|
364
365
|
"searchResultSnippet": "X-VPTa_searchResultSnippet",
|
|
365
|
-
"
|
|
366
|
-
"
|
|
367
|
-
"sessionRow": "X-VPTa_sessionRow",
|
|
368
|
-
"slot": "X-VPTa_slot",
|
|
369
|
-
"dropBefore": "X-VPTa_dropBefore",
|
|
370
|
-
"hoverPath": "X-VPTa_hoverPath",
|
|
366
|
+
"rowActions": "X-VPTa_rowActions",
|
|
367
|
+
"menuOpen": "X-VPTa_menuOpen",
|
|
371
368
|
"arrow": "X-VPTa_arrow",
|
|
372
|
-
"
|
|
373
|
-
"folder": "X-VPTa_folder",
|
|
374
|
-
"searchResultMeta": "X-VPTa_searchResultMeta",
|
|
369
|
+
"projectText": "X-VPTa_projectText",
|
|
375
370
|
"searchResultWorkspace": "X-VPTa_searchResultWorkspace",
|
|
376
|
-
"
|
|
377
|
-
"
|
|
371
|
+
"visuallyHidden": "X-VPTa_visuallyHidden",
|
|
372
|
+
"hoverTitle": "X-VPTa_hoverTitle",
|
|
373
|
+
"dropBefore": "X-VPTa_dropBefore",
|
|
374
|
+
"title": "X-VPTa_title",
|
|
375
|
+
"folderActive": "X-VPTa_folderActive",
|
|
376
|
+
"hoverPath": "X-VPTa_hoverPath",
|
|
377
|
+
"row-in": "X-VPTa_row-in"
|
|
378
378
|
};
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region src/client/rows/Rows.tsx
|
|
@@ -976,42 +976,42 @@ window.__ModuleLoader__.load({
|
|
|
976
976
|
document.head.appendChild(tag);
|
|
977
977
|
}
|
|
978
978
|
var WorkspaceBrowser_module_css_default = {
|
|
979
|
-
"
|
|
979
|
+
"groupSection": "HlYf2W_groupSection",
|
|
980
|
+
"listTopDropIndicator": "HlYf2W_listTopDropIndicator",
|
|
981
|
+
"headerActionsHidden": "HlYf2W_headerActionsHidden",
|
|
982
|
+
"sectionLabelHidden": "HlYf2W_sectionLabelHidden",
|
|
983
|
+
"deleteAction": "HlYf2W_deleteAction",
|
|
984
|
+
"search": "HlYf2W_search",
|
|
980
985
|
"flatList": "HlYf2W_flatList",
|
|
986
|
+
"listArea": "HlYf2W_listArea",
|
|
987
|
+
"headerActions": "HlYf2W_headerActions",
|
|
988
|
+
"searchInput": "HlYf2W_searchInput",
|
|
989
|
+
"clearButton": "HlYf2W_clearButton",
|
|
990
|
+
"searchTree": "HlYf2W_searchTree",
|
|
991
|
+
"fade": "HlYf2W_fade",
|
|
992
|
+
"listTopDropActive": "HlYf2W_listTopDropActive",
|
|
993
|
+
"sectionLabel": "HlYf2W_sectionLabel",
|
|
994
|
+
"deleteStatus": "HlYf2W_deleteStatus",
|
|
995
|
+
"workspaceDropBefore": "HlYf2W_workspaceDropBefore",
|
|
981
996
|
"root": "HlYf2W_root",
|
|
997
|
+
"sectionHeader": "HlYf2W_sectionHeader",
|
|
998
|
+
"sessionOverflowButton": "HlYf2W_sessionOverflowButton",
|
|
999
|
+
"searchSlotExpanded": "HlYf2W_searchSlotExpanded",
|
|
1000
|
+
"wide": "HlYf2W_wide",
|
|
1001
|
+
"wide-in": "HlYf2W_wide-in",
|
|
1002
|
+
"iconButton": "HlYf2W_iconButton",
|
|
1003
|
+
"searchSlot": "HlYf2W_searchSlot",
|
|
982
1004
|
"searchExpanded": "HlYf2W_searchExpanded",
|
|
983
|
-
"workspaceDropAfter": "HlYf2W_workspaceDropAfter",
|
|
984
1005
|
"searchButton": "HlYf2W_searchButton",
|
|
1006
|
+
"treeBody": "HlYf2W_treeBody",
|
|
1007
|
+
"searchWarning": "HlYf2W_searchWarning",
|
|
1008
|
+
"workspaceDropAfter": "HlYf2W_workspaceDropAfter",
|
|
1009
|
+
"searchStatus": "HlYf2W_searchStatus",
|
|
985
1010
|
"empty": "HlYf2W_empty",
|
|
986
|
-
"sectionLabel": "HlYf2W_sectionLabel",
|
|
987
|
-
"renameError": "HlYf2W_renameError",
|
|
988
1011
|
"rail": "HlYf2W_rail",
|
|
989
|
-
"list": "HlYf2W_list",
|
|
990
|
-
"listTopDropActive": "HlYf2W_listTopDropActive",
|
|
991
|
-
"treeBody": "HlYf2W_treeBody",
|
|
992
|
-
"searchSlot": "HlYf2W_searchSlot",
|
|
993
|
-
"search": "HlYf2W_search",
|
|
994
|
-
"workspaceDropBefore": "HlYf2W_workspaceDropBefore",
|
|
995
1012
|
"renameInput": "HlYf2W_renameInput",
|
|
996
|
-
"
|
|
997
|
-
"
|
|
998
|
-
"wide": "HlYf2W_wide",
|
|
999
|
-
"searchStatus": "HlYf2W_searchStatus",
|
|
1000
|
-
"clearButton": "HlYf2W_clearButton",
|
|
1001
|
-
"wide-in": "HlYf2W_wide-in",
|
|
1002
|
-
"headerActions": "HlYf2W_headerActions",
|
|
1003
|
-
"headerActionsHidden": "HlYf2W_headerActionsHidden",
|
|
1004
|
-
"deleteAction": "HlYf2W_deleteAction",
|
|
1005
|
-
"searchTree": "HlYf2W_searchTree",
|
|
1006
|
-
"listArea": "HlYf2W_listArea",
|
|
1007
|
-
"groupSection": "HlYf2W_groupSection",
|
|
1008
|
-
"searchWarning": "HlYf2W_searchWarning",
|
|
1009
|
-
"deleteStatus": "HlYf2W_deleteStatus",
|
|
1010
|
-
"listTopDropIndicator": "HlYf2W_listTopDropIndicator",
|
|
1011
|
-
"searchInput": "HlYf2W_searchInput",
|
|
1012
|
-
"sessionOverflowButton": "HlYf2W_sessionOverflowButton",
|
|
1013
|
-
"sectionHeader": "HlYf2W_sectionHeader",
|
|
1014
|
-
"fade": "HlYf2W_fade"
|
|
1013
|
+
"renameError": "HlYf2W_renameError",
|
|
1014
|
+
"list": "HlYf2W_list"
|
|
1015
1015
|
};
|
|
1016
1016
|
//#endregion
|
|
1017
1017
|
//#region src/client/WorkspaceBrowser.tsx
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compact schemastery envelopes (`schema.toJSON()`) for Face `settings.describe`.
|
|
3
|
-
* The captured DSH Web rehydrates these; JSON Schema will not parse.
|
|
4
|
-
*/
|
|
5
|
-
export interface DshSchemaNode {
|
|
6
|
-
readonly type: string;
|
|
7
|
-
readonly value?: unknown;
|
|
8
|
-
readonly list?: readonly number[];
|
|
9
|
-
readonly dict?: Readonly<Record<string, number>>;
|
|
10
|
-
readonly inner?: number;
|
|
11
|
-
readonly meta?: {
|
|
12
|
-
readonly description?: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface DshSchemaEnvelope {
|
|
16
|
-
readonly uid: number;
|
|
17
|
-
readonly refs: Readonly<Record<number, DshSchemaNode>>;
|
|
18
|
-
}
|
|
19
|
-
export declare const DSH_EMPTY_OBJECT_SCHEMA: DshSchemaEnvelope;
|
|
20
|
-
export declare const DSH_ONBOARDING_SCHEMA: DshSchemaEnvelope;
|
|
21
|
-
export declare const DSH_LOCALE_SCHEMA: DshSchemaEnvelope;
|
|
22
|
-
export declare const DSH_THEME_SCHEMA: DshSchemaEnvelope;
|
|
23
|
-
/** Same preset ids as DSH permission-presets (settings row enum). */
|
|
24
|
-
export declare const FACE_PERMISSION_PRESETS: readonly ["read-only", "workspace-write", "danger-full-access"];
|
|
25
|
-
export type FacePermissionPreset = (typeof FACE_PERMISSION_PRESETS)[number];
|
|
26
|
-
export declare const DSH_PERMISSION_SCHEMA: DshSchemaEnvelope;
|
|
27
|
-
/**
|
|
28
|
-
* Face MCP desired servers. `connected` is overlay from live plugins.
|
|
29
|
-
* Applies on next Host spawn (not a live supervisor).
|
|
30
|
-
*/
|
|
31
|
-
export declare const DSH_MCP_SCHEMA: DshSchemaEnvelope;
|
|
32
|
-
/** `providers` is a dict so models page can probe `providers/<route>/api`. */
|
|
33
|
-
export declare const DSH_LLM_SCHEMA: DshSchemaEnvelope;
|
|
34
|
-
export declare function isFacePermissionPreset(value: unknown): value is FacePermissionPreset;
|
|
35
|
-
//# sourceMappingURL=dsh-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dsh-schema.d.ts","sourceRoot":"","sources":["../src/dsh-schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,uBAAuB,EAAE,iBAGrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAMnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBAQ/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,iBAS9B,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,iEAI1B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB,EAAE,iBAqBnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,iBA4B5B,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,cAAc,EAAE,iBAc5B,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,oBAAoB,CAK/B"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compact schemastery envelopes (`schema.toJSON()`) for Face `settings.describe`.
|
|
3
|
-
* The captured DSH Web rehydrates these; JSON Schema will not parse.
|
|
4
|
-
*/
|
|
5
|
-
export const DSH_EMPTY_OBJECT_SCHEMA = {
|
|
6
|
-
uid: 1,
|
|
7
|
-
refs: { 1: { type: "object" } },
|
|
8
|
-
};
|
|
9
|
-
export const DSH_ONBOARDING_SCHEMA = {
|
|
10
|
-
uid: 2,
|
|
11
|
-
refs: {
|
|
12
|
-
1: { type: "string" },
|
|
13
|
-
2: { type: "object", dict: { welcomeNoticeVersion: 1 } },
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
export const DSH_LOCALE_SCHEMA = {
|
|
17
|
-
uid: 4,
|
|
18
|
-
refs: {
|
|
19
|
-
1: { type: "const", value: "zh" },
|
|
20
|
-
2: { type: "const", value: "en" },
|
|
21
|
-
3: { type: "union", list: [1, 2] },
|
|
22
|
-
4: { type: "object", dict: { preference: 3 } },
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
export const DSH_THEME_SCHEMA = {
|
|
26
|
-
uid: 5,
|
|
27
|
-
refs: {
|
|
28
|
-
1: { type: "const", value: "system" },
|
|
29
|
-
2: { type: "const", value: "light" },
|
|
30
|
-
3: { type: "const", value: "dark" },
|
|
31
|
-
4: { type: "union", list: [1, 2, 3] },
|
|
32
|
-
5: { type: "object", dict: { preference: 4 } },
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
/** Same preset ids as DSH permission-presets (settings row enum). */
|
|
36
|
-
export const FACE_PERMISSION_PRESETS = [
|
|
37
|
-
"read-only",
|
|
38
|
-
"workspace-write",
|
|
39
|
-
"danger-full-access",
|
|
40
|
-
];
|
|
41
|
-
export const DSH_PERMISSION_SCHEMA = {
|
|
42
|
-
uid: 5,
|
|
43
|
-
refs: {
|
|
44
|
-
1: {
|
|
45
|
-
type: "const",
|
|
46
|
-
meta: { description: "Read only" },
|
|
47
|
-
value: "read-only",
|
|
48
|
-
},
|
|
49
|
-
2: {
|
|
50
|
-
type: "const",
|
|
51
|
-
meta: { description: "Workspace write" },
|
|
52
|
-
value: "workspace-write",
|
|
53
|
-
},
|
|
54
|
-
3: {
|
|
55
|
-
type: "const",
|
|
56
|
-
meta: { description: "Full access" },
|
|
57
|
-
value: "danger-full-access",
|
|
58
|
-
},
|
|
59
|
-
4: { type: "union", list: [1, 2, 3] },
|
|
60
|
-
5: { type: "object", dict: { defaultPreset: 4 } },
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Face MCP desired servers. `connected` is overlay from live plugins.
|
|
65
|
-
* Applies on next Host spawn (not a live supervisor).
|
|
66
|
-
*/
|
|
67
|
-
export const DSH_MCP_SCHEMA = {
|
|
68
|
-
uid: 9,
|
|
69
|
-
refs: {
|
|
70
|
-
1: { type: "string" },
|
|
71
|
-
2: { type: "array", inner: 1 },
|
|
72
|
-
3: {
|
|
73
|
-
type: "object",
|
|
74
|
-
dict: {
|
|
75
|
-
serverName: 1,
|
|
76
|
-
command: 1,
|
|
77
|
-
url: 1,
|
|
78
|
-
args: 2,
|
|
79
|
-
cwd: 1,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
4: { type: "array", inner: 3 },
|
|
83
|
-
5: { type: "string" },
|
|
84
|
-
6: {
|
|
85
|
-
type: "object",
|
|
86
|
-
dict: { id: 1, serverName: 1, kind: 1, toolCount: 5 },
|
|
87
|
-
},
|
|
88
|
-
7: { type: "array", inner: 6 },
|
|
89
|
-
8: { type: "string" },
|
|
90
|
-
9: {
|
|
91
|
-
type: "object",
|
|
92
|
-
dict: { servers: 4, connected: 7, note: 8 },
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
/** `providers` is a dict so models page can probe `providers/<route>/api`. */
|
|
97
|
-
export const DSH_LLM_SCHEMA = {
|
|
98
|
-
uid: 8,
|
|
99
|
-
refs: {
|
|
100
|
-
1: { type: "const", value: "openai-chat" },
|
|
101
|
-
2: { type: "union", list: [1] },
|
|
102
|
-
3: { type: "string" },
|
|
103
|
-
4: { type: "string" },
|
|
104
|
-
5: {
|
|
105
|
-
type: "object",
|
|
106
|
-
dict: { api: 2, apiKeyEnv: 3, baseURL: 4 },
|
|
107
|
-
},
|
|
108
|
-
6: { type: "dict", inner: 5 },
|
|
109
|
-
8: { type: "object", dict: { providers: 6 } },
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
export function isFacePermissionPreset(value) {
|
|
113
|
-
return (typeof value === "string" &&
|
|
114
|
-
FACE_PERMISSION_PRESETS.includes(value));
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=dsh-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dsh-schema.js","sourceRoot":"","sources":["../src/dsh-schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FaceRpcRequest, FaceRpcResponse, RpcId } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Parse Face unary body. Accepts DeepSeek wire (`type: client-request`) and
|
|
4
|
-
* the thinner XRK shape (`rpcId` + `payload` only).
|
|
5
|
-
*/
|
|
6
|
-
export declare function parseFaceRpcRequest(body: unknown): FaceRpcRequest;
|
|
7
|
-
/** DeepSeek-compatible unary success envelope. */
|
|
8
|
-
export declare function okResponse<T>(rpcId: RpcId, value: T): FaceRpcResponse<T>;
|
|
9
|
-
/**
|
|
10
|
-
* DeepSeek-compatible unary error envelope.
|
|
11
|
-
* Always includes `details` (DSH client Zod requires it).
|
|
12
|
-
*/
|
|
13
|
-
export declare function errResponse(rpcId: RpcId, code: string, message: string, details?: unknown): FaceRpcResponse<never>;
|
|
14
|
-
/** DeepSeek WS downlink frame (`server-request` + method = payload.type). */
|
|
15
|
-
export declare function serverRequestFrame(rpcId: RpcId, payload: {
|
|
16
|
-
readonly type: string;
|
|
17
|
-
} & Record<string, unknown>): {
|
|
18
|
-
readonly type: "server-request";
|
|
19
|
-
readonly rpcId: RpcId;
|
|
20
|
-
readonly method: string;
|
|
21
|
-
readonly payload: typeof payload;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAejE;AAED,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAMxE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,eAAe,CAAC,KAAK,CAAC,CAOxB;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3D;IACD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAC;CAClC,CAOA"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { mapFaceRpcError } from "./rpc-error.js";
|
|
2
|
-
/**
|
|
3
|
-
* Parse Face unary body. Accepts DeepSeek wire (`type: client-request`) and
|
|
4
|
-
* the thinner XRK shape (`rpcId` + `payload` only).
|
|
5
|
-
*/
|
|
6
|
-
export function parseFaceRpcRequest(body) {
|
|
7
|
-
if (!body || typeof body !== "object") {
|
|
8
|
-
throw new Error("face: request body must be an object");
|
|
9
|
-
}
|
|
10
|
-
const o = body;
|
|
11
|
-
if (typeof o.rpcId !== "string" || !o.rpcId.trim()) {
|
|
12
|
-
throw new Error("face: rpcId required");
|
|
13
|
-
}
|
|
14
|
-
if (o.type !== undefined && o.type !== "client-request") {
|
|
15
|
-
throw new Error("face: expected type client-request");
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
rpcId: o.rpcId,
|
|
19
|
-
payload: "payload" in o ? o.payload : {},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/** DeepSeek-compatible unary success envelope. */
|
|
23
|
-
export function okResponse(rpcId, value) {
|
|
24
|
-
return {
|
|
25
|
-
type: "server-response",
|
|
26
|
-
rpcId,
|
|
27
|
-
result: { ok: true, value },
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* DeepSeek-compatible unary error envelope.
|
|
32
|
-
* Always includes `details` (DSH client Zod requires it).
|
|
33
|
-
*/
|
|
34
|
-
export function errResponse(rpcId, code, message, details) {
|
|
35
|
-
const error = mapFaceRpcError(code, message, details);
|
|
36
|
-
return {
|
|
37
|
-
type: "server-response",
|
|
38
|
-
rpcId,
|
|
39
|
-
result: { ok: false, error },
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/** DeepSeek WS downlink frame (`server-request` + method = payload.type). */
|
|
43
|
-
export function serverRequestFrame(rpcId, payload) {
|
|
44
|
-
return {
|
|
45
|
-
type: "server-request",
|
|
46
|
-
rpcId,
|
|
47
|
-
method: payload.type,
|
|
48
|
-
payload,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=envelope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.js","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAa;IAC/C,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,CAAC,GAAG,IAA+B,CAAC;IAC1C,IAAI,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,KAAK,gBAAgB,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,OAAO;QACL,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;KACzC,CAAC;AACJ,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,UAAU,CAAI,KAAY,EAAE,KAAQ;IAClD,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,KAAK;QACL,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;KAC5B,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,KAAY,EACZ,IAAY,EACZ,OAAe,EACf,OAAiB;IAEjB,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,KAAK;QACL,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;KAC7B,CAAC;AACJ,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,kBAAkB,CAChC,KAAY,EACZ,OAA4D;IAO5D,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,KAAK;QACL,MAAM,EAAE,OAAO,CAAC,IAAI;QACpB,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map XRK Face error codes onto DeepSeek Web's closed RpcError set.
|
|
3
|
-
* Client Zod requires `details` on every error branch.
|
|
4
|
-
*/
|
|
5
|
-
export type FaceRpcError = {
|
|
6
|
-
readonly code: string;
|
|
7
|
-
readonly message: string;
|
|
8
|
-
readonly details: Record<string, unknown>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Normalize any Face handler error into a DSH-parseable RpcError.
|
|
12
|
-
* Unknown / XRK-only codes fold to `internal` or the closest DSH code.
|
|
13
|
-
*/
|
|
14
|
-
export declare function mapFaceRpcError(code: string, message: string, details?: unknown): FaceRpcError;
|
|
15
|
-
//# sourceMappingURL=rpc-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-error.d.ts","sourceRoot":"","sources":["../src/rpc-error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAoDF;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,YAAY,CA2Nd"}
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map XRK Face error codes onto DeepSeek Web's closed RpcError set.
|
|
3
|
-
* Client Zod requires `details` on every error branch.
|
|
4
|
-
*/
|
|
5
|
-
/** Codes the DSH browser client accepts (RpcErrorDetailsMap keys). */
|
|
6
|
-
const DSH_CODES = new Set([
|
|
7
|
-
"bad-request",
|
|
8
|
-
"cancelled",
|
|
9
|
-
"session-not-found",
|
|
10
|
-
"model-unavailable",
|
|
11
|
-
"session-conflict",
|
|
12
|
-
"invalid-time-zone",
|
|
13
|
-
"workspace-attach-failed",
|
|
14
|
-
"workspace-not-found",
|
|
15
|
-
"workspace-invalid-path",
|
|
16
|
-
"workspace-name-conflict",
|
|
17
|
-
"workspace-move-invalid",
|
|
18
|
-
"directory-unreadable",
|
|
19
|
-
"directory-exists",
|
|
20
|
-
"directory-create-failed",
|
|
21
|
-
"directory-picker-unavailable",
|
|
22
|
-
"agent-preset-read-only",
|
|
23
|
-
"agent-preset-locked",
|
|
24
|
-
"agent-preset-conflict",
|
|
25
|
-
"agent-preset-not-found",
|
|
26
|
-
"agent-preset-invalid",
|
|
27
|
-
"agent-busy",
|
|
28
|
-
"attachment-error",
|
|
29
|
-
"queue-item-not-found",
|
|
30
|
-
"steer-unavailable",
|
|
31
|
-
"command-error",
|
|
32
|
-
"unknown-command",
|
|
33
|
-
"settings-rejected",
|
|
34
|
-
"settings-conflict",
|
|
35
|
-
"credential-rejected",
|
|
36
|
-
"model-discovery-failed",
|
|
37
|
-
"title-invalid",
|
|
38
|
-
"fork-unavailable",
|
|
39
|
-
"subagent-parent-unavailable",
|
|
40
|
-
"subagent-not-found",
|
|
41
|
-
"subagent-catalog-diagnostic",
|
|
42
|
-
"subagent-not-resumable",
|
|
43
|
-
"subagent-unauthorized",
|
|
44
|
-
"subagent-delivery-unavailable",
|
|
45
|
-
"internal",
|
|
46
|
-
]);
|
|
47
|
-
function asRecord(value) {
|
|
48
|
-
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Normalize any Face handler error into a DSH-parseable RpcError.
|
|
55
|
-
* Unknown / XRK-only codes fold to `internal` or the closest DSH code.
|
|
56
|
-
*/
|
|
57
|
-
export function mapFaceRpcError(code, message, details) {
|
|
58
|
-
const hint = asRecord(details);
|
|
59
|
-
switch (code) {
|
|
60
|
-
case "invalid-payload":
|
|
61
|
-
case "invalid-mode":
|
|
62
|
-
return {
|
|
63
|
-
code: "bad-request",
|
|
64
|
-
message: `${code}: ${message}`,
|
|
65
|
-
details: { issues: hint?.issues ?? [] },
|
|
66
|
-
};
|
|
67
|
-
case "not-found":
|
|
68
|
-
return {
|
|
69
|
-
code: "session-not-found",
|
|
70
|
-
message,
|
|
71
|
-
details: {
|
|
72
|
-
sessionId: typeof hint?.sessionId === "string" ? hint.sessionId : message,
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
case "unsupported-modality":
|
|
76
|
-
case "unsupported-image-type":
|
|
77
|
-
case "attachment-unavailable":
|
|
78
|
-
return {
|
|
79
|
-
code: "attachment-error",
|
|
80
|
-
message: `${code}: ${message}`,
|
|
81
|
-
details: { reason: message },
|
|
82
|
-
};
|
|
83
|
-
case "path-escape":
|
|
84
|
-
case "seed-dir-not-found":
|
|
85
|
-
return {
|
|
86
|
-
code: "workspace-invalid-path",
|
|
87
|
-
message,
|
|
88
|
-
details: { path: typeof hint?.path === "string" ? hint.path : message },
|
|
89
|
-
};
|
|
90
|
-
case "session-exists":
|
|
91
|
-
return {
|
|
92
|
-
code: "session-conflict",
|
|
93
|
-
message,
|
|
94
|
-
details: {
|
|
95
|
-
sessionId: typeof hint?.sessionId === "string" ? hint.sessionId : message,
|
|
96
|
-
requestedCwd: typeof hint?.requestedCwd === "string" ? hint.requestedCwd : "",
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
case "provider-not-found":
|
|
100
|
-
case "policy-denied":
|
|
101
|
-
return {
|
|
102
|
-
code: "model-unavailable",
|
|
103
|
-
message: `${code}: ${message}`,
|
|
104
|
-
details: {
|
|
105
|
-
provider: typeof hint?.provider === "string" ? hint.provider : "",
|
|
106
|
-
model: typeof hint?.model === "string" ? hint.model : message,
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
case "seed-template-not-found":
|
|
110
|
-
return {
|
|
111
|
-
code: "workspace-not-found",
|
|
112
|
-
message,
|
|
113
|
-
details: {
|
|
114
|
-
workspaceId: typeof hint?.workspaceId === "string" ? hint.workspaceId : message,
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
case "approval-not-found":
|
|
118
|
-
case "approval-session-mismatch":
|
|
119
|
-
return {
|
|
120
|
-
code: "bad-request",
|
|
121
|
-
message: `${code}: ${message}`,
|
|
122
|
-
details: { issues: [] },
|
|
123
|
-
};
|
|
124
|
-
case "settings-scope-not-found":
|
|
125
|
-
case "settings-readonly":
|
|
126
|
-
case "settings-invalid":
|
|
127
|
-
return {
|
|
128
|
-
code: "settings-rejected",
|
|
129
|
-
message,
|
|
130
|
-
details: { ns: typeof hint?.ns === "string" ? hint.ns : message },
|
|
131
|
-
};
|
|
132
|
-
case "credentials-too-large":
|
|
133
|
-
case "credentials-slot-not-found":
|
|
134
|
-
return {
|
|
135
|
-
code: "credential-rejected",
|
|
136
|
-
message,
|
|
137
|
-
details: { ref: typeof hint?.ref === "string" ? hint.ref : message },
|
|
138
|
-
};
|
|
139
|
-
case "not-implemented":
|
|
140
|
-
return { code: "internal", message, details: {} };
|
|
141
|
-
case "session-not-found":
|
|
142
|
-
return {
|
|
143
|
-
code: "session-not-found",
|
|
144
|
-
message,
|
|
145
|
-
details: {
|
|
146
|
-
sessionId: typeof hint?.sessionId === "string" ? hint.sessionId : message,
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
case "workspace-not-found":
|
|
150
|
-
return {
|
|
151
|
-
code: "workspace-not-found",
|
|
152
|
-
message,
|
|
153
|
-
details: {
|
|
154
|
-
workspaceId: typeof hint?.workspaceId === "string"
|
|
155
|
-
? hint.workspaceId
|
|
156
|
-
: message,
|
|
157
|
-
},
|
|
158
|
-
};
|
|
159
|
-
case "directory-unreadable":
|
|
160
|
-
case "directory-exists":
|
|
161
|
-
case "directory-create-failed":
|
|
162
|
-
return {
|
|
163
|
-
code,
|
|
164
|
-
message,
|
|
165
|
-
details: {
|
|
166
|
-
path: typeof hint?.path === "string" ? hint.path : message,
|
|
167
|
-
},
|
|
168
|
-
};
|
|
169
|
-
case "attachment-error":
|
|
170
|
-
return {
|
|
171
|
-
code: "attachment-error",
|
|
172
|
-
message,
|
|
173
|
-
details: {
|
|
174
|
-
reason: typeof hint?.reason === "string" ? hint.reason : message,
|
|
175
|
-
},
|
|
176
|
-
};
|
|
177
|
-
case "agent-preset-not-found":
|
|
178
|
-
return {
|
|
179
|
-
code: "agent-preset-not-found",
|
|
180
|
-
message,
|
|
181
|
-
details: {
|
|
182
|
-
agentPreset: typeof hint?.agentPreset === "string"
|
|
183
|
-
? hint.agentPreset
|
|
184
|
-
: message,
|
|
185
|
-
available: Array.isArray(hint?.available)
|
|
186
|
-
? hint.available
|
|
187
|
-
: [],
|
|
188
|
-
},
|
|
189
|
-
};
|
|
190
|
-
case "queue-item-not-found":
|
|
191
|
-
return {
|
|
192
|
-
code: "queue-item-not-found",
|
|
193
|
-
message,
|
|
194
|
-
details: {
|
|
195
|
-
itemId: typeof hint?.itemId === "string" ? hint.itemId : message,
|
|
196
|
-
},
|
|
197
|
-
};
|
|
198
|
-
case "title-invalid":
|
|
199
|
-
return {
|
|
200
|
-
code: "title-invalid",
|
|
201
|
-
message,
|
|
202
|
-
details: {
|
|
203
|
-
sessionId: typeof hint?.sessionId === "string" ? hint.sessionId : message,
|
|
204
|
-
},
|
|
205
|
-
};
|
|
206
|
-
case "settings-rejected":
|
|
207
|
-
return {
|
|
208
|
-
code: "settings-rejected",
|
|
209
|
-
message,
|
|
210
|
-
details: {
|
|
211
|
-
ns: typeof hint?.ns === "string" ? hint.ns : "",
|
|
212
|
-
},
|
|
213
|
-
};
|
|
214
|
-
case "settings-conflict":
|
|
215
|
-
return {
|
|
216
|
-
code: "settings-conflict",
|
|
217
|
-
message,
|
|
218
|
-
details: {
|
|
219
|
-
ns: typeof hint?.ns === "string" ? hint.ns : "",
|
|
220
|
-
expected: typeof hint?.expected === "number" ? hint.expected : 0,
|
|
221
|
-
actual: typeof hint?.actual === "number" ? hint.actual : 0,
|
|
222
|
-
},
|
|
223
|
-
};
|
|
224
|
-
case "credential-rejected":
|
|
225
|
-
return {
|
|
226
|
-
code: "credential-rejected",
|
|
227
|
-
message,
|
|
228
|
-
details: {
|
|
229
|
-
ref: typeof hint?.ref === "string" ? hint.ref : message,
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
default:
|
|
233
|
-
if (DSH_CODES.has(code)) {
|
|
234
|
-
return {
|
|
235
|
-
code,
|
|
236
|
-
message,
|
|
237
|
-
details: hint ?? {},
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
return {
|
|
241
|
-
code: "internal",
|
|
242
|
-
message: `${code}: ${message}`,
|
|
243
|
-
details: {},
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
//# sourceMappingURL=rpc-error.js.map
|