@xrkseek/harness 0.4.12 → 0.5.2
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/node_modules/@xrkseek/a2a/README.md +8 -6
- package/node_modules/@xrkseek/a2a/dist/client.d.ts +1 -0
- package/node_modules/@xrkseek/a2a/dist/client.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/client.js +36 -20
- package/node_modules/@xrkseek/a2a/dist/client.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts +9 -2
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/inbound.js +86 -41
- package/node_modules/@xrkseek/a2a/dist/inbound.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/a2a/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/index.js +2 -1
- package/node_modules/@xrkseek/a2a/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts +9 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/protocol.js +25 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/task-store.d.ts +43 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.js +105 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.js.map +1 -0
- package/node_modules/@xrkseek/context-fragments/README.md +4 -2
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts +10 -2
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/context-fragments/dist/index.js +16 -11
- package/node_modules/@xrkseek/context-fragments/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +5 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +11 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +9 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-session/dist/index.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 +16 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store.d.ts +5 -0
- package/node_modules/@xrkseek/core-session/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +22 -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 +75 -9
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +2 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +18 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -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 +77 -22
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +5 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +4 -0
- 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 -6
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/README.md +2 -2
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/index.js +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts +25 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.js +290 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts +5 -3
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js +13 -5
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/package.json +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +2 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +69 -31
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +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 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +14 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js +28 -6
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js +8 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js +11 -7
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +2 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +38 -14
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/package.json +2 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +23 -3
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +40 -5
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +8 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +13 -4
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +6 -3
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +40 -10
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts +4 -0
- package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-subprocess/dist/index.js +2 -0
- package/node_modules/@xrkseek/exec-subprocess/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js +6 -6
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +2 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +26 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +10 -2
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js +27 -4
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +43 -14
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.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 +2 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts +14 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js +21 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +28 -4
- 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/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +3 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts +6 -2
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.js +120 -46
- package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/canvas-store.d.ts +63 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.js +235 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.d.ts +14 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.js +229 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +21 -3
- package/node_modules/@xrkseek/server-face/dist/context.d.ts.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 +13 -3
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.js +6 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.js +70 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts +11 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js +170 -4
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js +3 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts +6 -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 +90 -6
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.mts +3734 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.mts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +8 -3
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +8 -3
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.mjs +22085 -0
- package/node_modules/@xrkseek/server-face/dist/index.mjs.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts +51 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js +104 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts +34 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js +41 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +5 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +13 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -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 +3 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/remote-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +17 -4
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +22 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts +14 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js +71 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts +17 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js +50 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-attachment.js +30 -7
- package/node_modules/@xrkseek/server-face/dist/session-attachment.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +6 -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 +68 -12
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.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 +7 -3
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -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 +25 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +3 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts +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 +15 -0
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts +2 -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 +61 -3
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +33 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +61 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts +26 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.js +77 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +258 -128
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +8 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +33 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +2 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts +2 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js +98 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts +18 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js +141 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -4
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +353 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts +30 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js +96 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js +31 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
- 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 +306 -11
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +53 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js +80 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js +152 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js +31 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +17 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +265 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +6 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js +188 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +3 -3
- 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/dsh-context.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js +117 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js +381 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +43 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js +173 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js +209 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js +470 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js +93 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts +27 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js +213 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +6 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +92 -14
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +72 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js +341 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js +138 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js +85 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +27 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +230 -52
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js +182 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js +151 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +34 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +271 -20
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +105 -21
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js +81 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js +378 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js +229 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js +300 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +10 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +40 -9
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js +428 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js +166 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts +20 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js +308 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts +32 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js +183 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +20 -16
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js +245 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js +116 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js +5 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js +65 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js +114 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +3 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +42 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +6 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +68 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js +111 -26
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js +32 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- 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 +10 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +68 -21
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.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.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +5 -2
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +11 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js +11 -2
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +9 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +4 -2
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +32 -2
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +69 -2
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/README.md +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +5 -3
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +20 -17
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/package.json +1 -1
- package/package.json +1 -1
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts +0 -13
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.js +0 -40
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/dsh-compat/install.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB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;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC;QACnC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;QACjC,IAAI;QACJ,UAAU;KACX,CAAC,CAAC;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;QACjB,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC,EAAE;QACnB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QACxC,IAAI;QACJ,eAAe,EAAE,MAAM,CAAC,EAAE;QAC1B,GAAG,CAAC,MAAM,CAAC,EAAE;YACX,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;YACnB,CAAC,CAAC;gBACE,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,sBAAsB;gBAC7C,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnD,GAAG,EAAE,eAAe,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,EAAE;aACxD,CAAC;QACN,OAAO,EAAE,kBAAkB;KAC5B,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DSH `/dsh-market/*` and `/api/dsh-market` → XRK plugin inventory + catalog.
|
|
3
|
+
*
|
|
4
|
+
* Install / update / uninstall call `xrkh plugin add|remove` via `runPluginMutate`
|
|
5
|
+
* (same path as Settings → Plugins). Set `XRK_MARKET_MUTATE_NPM=0` to restrict
|
|
6
|
+
* mutations to local/file/link specs only.
|
|
7
|
+
*
|
|
8
|
+
* dshmarket Discover posts `{ url: <github https>, version? }` — never `npm`.
|
|
9
|
+
* Awesome catalog pairs that `url` with an `npm` field; we resolve npm first so
|
|
10
|
+
* already-adapted scoped packages (`@liustack/modlens`, …) install like Settings.
|
|
3
11
|
*/
|
|
4
12
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
5
13
|
import { type XrkPluginServicesOptions } from "../xrk/plugin-services.js";
|
|
14
|
+
/** True for filesystem / file: / link: specs — not scoped npm `@scope/name`. */
|
|
15
|
+
export declare function isLocalPluginSpec(spec: string): boolean;
|
|
16
|
+
/** When false (`XRK_MARKET_MUTATE_NPM=0`), only local/file/link specs mutate. */
|
|
17
|
+
export declare function allowRemoteNpmMutate(env?: NodeJS.ProcessEnv): boolean;
|
|
18
|
+
/** `https://github.com/org/repo[/tree/branch/sub/path]` → `github:…` CLI spec. */
|
|
19
|
+
export declare function githubHttpsToPluginSpec(url: string): string | undefined;
|
|
20
|
+
export interface MarketCatalogHint {
|
|
21
|
+
readonly npmByUrl: ReadonlyMap<string, string>;
|
|
22
|
+
readonly npmByName: ReadonlyMap<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/** Build url/name → npm maps from awesome-dsh catalog JSON. */
|
|
25
|
+
export declare function buildMarketCatalogHint(catalog: unknown): MarketCatalogHint;
|
|
26
|
+
/**
|
|
27
|
+
* Resolve dshmarket body → CLI install/remove spec.
|
|
28
|
+
*
|
|
29
|
+
* Preference: `spec` / `npm` / `package` → catalog npm for github `url` →
|
|
30
|
+
* `github:` rewrite → `name` / `id`. Optional `version` pins npm names only.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveMarketPluginSpec(body: Record<string, unknown>, catalogHint?: MarketCatalogHint): string;
|
|
6
33
|
export declare function handleDshMarketHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options: XrkPluginServicesOptions): Promise<void>;
|
|
7
34
|
//# sourceMappingURL=market.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/market.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/market.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGjE,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AAKnC,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQvD;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAET;AAmBD,kFAAkF;AAClF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAevE;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjD;AAED,+DAA+D;AAC/D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,iBAAiB,CA+B1E;AAiBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,WAAW,CAAC,EAAE,iBAAiB,GAC9B,MAAM,CA4CR;AAkCD,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,IAAI,CAAC,CAoPf"}
|
|
@@ -4,18 +4,178 @@ import { fetchXrkPluginCatalog, readXrkDisabledPluginIds, readXrkPluginInventory
|
|
|
4
4
|
import { runPluginMutate } from "../xrk/plugin-mutate.js";
|
|
5
5
|
import { DSH_COMPAT_ADAPTER, tag } from "./meta.js";
|
|
6
6
|
import { parseJsonBody } from "./underlying/http-kit.js";
|
|
7
|
-
|
|
7
|
+
/** True for filesystem / file: / link: specs — not scoped npm `@scope/name`. */
|
|
8
|
+
export function isLocalPluginSpec(spec) {
|
|
8
9
|
const s = spec.trim();
|
|
9
10
|
if (!s)
|
|
10
11
|
return false;
|
|
11
|
-
if (process.env.XRK_MARKET_MUTATE_NPM === "1")
|
|
12
|
-
return true;
|
|
13
12
|
if (s.startsWith(".") || path.isAbsolute(s))
|
|
14
13
|
return true;
|
|
15
14
|
if (s.startsWith("file:") || s.startsWith("link:"))
|
|
16
15
|
return true;
|
|
16
|
+
// Scoped npm `@scope/name` contains `/` but is not a filesystem path.
|
|
17
|
+
if (/^@[^/]+\/[^@]+(?:@.+)?$/.test(s))
|
|
18
|
+
return false;
|
|
17
19
|
return /[/\\]/.test(s);
|
|
18
20
|
}
|
|
21
|
+
/** When false (`XRK_MARKET_MUTATE_NPM=0`), only local/file/link specs mutate. */
|
|
22
|
+
export function allowRemoteNpmMutate(env = process.env) {
|
|
23
|
+
return env.XRK_MARKET_MUTATE_NPM !== "0";
|
|
24
|
+
}
|
|
25
|
+
function canMutateSpec(spec) {
|
|
26
|
+
if (!spec.trim())
|
|
27
|
+
return false;
|
|
28
|
+
if (allowRemoteNpmMutate())
|
|
29
|
+
return true;
|
|
30
|
+
return isLocalPluginSpec(spec);
|
|
31
|
+
}
|
|
32
|
+
function alreadyVersionPinned(spec) {
|
|
33
|
+
const s = spec.trim();
|
|
34
|
+
if (s.startsWith("@")) {
|
|
35
|
+
const rest = s.slice(1);
|
|
36
|
+
const slash = rest.indexOf("/");
|
|
37
|
+
if (slash < 0)
|
|
38
|
+
return false;
|
|
39
|
+
return rest.slice(slash + 1).includes("@");
|
|
40
|
+
}
|
|
41
|
+
return s.includes("@");
|
|
42
|
+
}
|
|
43
|
+
/** `https://github.com/org/repo[/tree/branch/sub/path]` → `github:…` CLI spec. */
|
|
44
|
+
export function githubHttpsToPluginSpec(url) {
|
|
45
|
+
const m = /^https?:\/\/github\.com\/([^/]+)\/([^/#?]+?)(?:\.git)?(?:\/(?:tree|blob)\/([^/]+)\/(.*))?\/?(?:[?#].*)?$/i.exec(url.trim());
|
|
46
|
+
if (!m)
|
|
47
|
+
return undefined;
|
|
48
|
+
const org = m[1];
|
|
49
|
+
const repo = m[2];
|
|
50
|
+
const branch = m[3];
|
|
51
|
+
const subpath = m[4]?.replace(/\/$/, "");
|
|
52
|
+
if (subpath && branch) {
|
|
53
|
+
return `github:${org}/${repo}#${branch}&path:/${subpath}`;
|
|
54
|
+
}
|
|
55
|
+
if (branch)
|
|
56
|
+
return `github:${org}/${repo}#${branch}`;
|
|
57
|
+
return `github:${org}/${repo}`;
|
|
58
|
+
}
|
|
59
|
+
/** Build url/name → npm maps from awesome-dsh catalog JSON. */
|
|
60
|
+
export function buildMarketCatalogHint(catalog) {
|
|
61
|
+
const npmByUrl = new Map();
|
|
62
|
+
const npmByName = new Map();
|
|
63
|
+
const plugins = catalog &&
|
|
64
|
+
typeof catalog === "object" &&
|
|
65
|
+
Array.isArray(catalog.plugins)
|
|
66
|
+
? (catalog.plugins)
|
|
67
|
+
: [];
|
|
68
|
+
for (const row of plugins) {
|
|
69
|
+
if (!row || typeof row !== "object")
|
|
70
|
+
continue;
|
|
71
|
+
const r = row;
|
|
72
|
+
const npm = typeof r.npm === "string" && r.npm.trim() ? r.npm.trim() : "";
|
|
73
|
+
if (!npm)
|
|
74
|
+
continue;
|
|
75
|
+
const name = typeof r.name === "string" && r.name.trim() ? r.name.trim() : "";
|
|
76
|
+
const url = typeof r.url === "string" && r.url.trim() ? r.url.trim() : "";
|
|
77
|
+
if (name) {
|
|
78
|
+
npmByName.set(name, npm);
|
|
79
|
+
npmByName.set(name.toLowerCase(), npm);
|
|
80
|
+
}
|
|
81
|
+
npmByName.set(npm, npm);
|
|
82
|
+
npmByName.set(npm.toLowerCase(), npm);
|
|
83
|
+
if (url) {
|
|
84
|
+
npmByUrl.set(url, npm);
|
|
85
|
+
npmByUrl.set(url.replace(/\/$/, ""), npm);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return { npmByUrl, npmByName };
|
|
89
|
+
}
|
|
90
|
+
function pinVersion(spec, version) {
|
|
91
|
+
const s = spec.trim();
|
|
92
|
+
const v = version.trim();
|
|
93
|
+
if (!s || !v || alreadyVersionPinned(s))
|
|
94
|
+
return s;
|
|
95
|
+
if (isLocalPluginSpec(s) ||
|
|
96
|
+
s.startsWith("github:") ||
|
|
97
|
+
s.startsWith("git+") ||
|
|
98
|
+
/^https?:\/\//i.test(s)) {
|
|
99
|
+
return s;
|
|
100
|
+
}
|
|
101
|
+
return `${s}@${v}`;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Resolve dshmarket body → CLI install/remove spec.
|
|
105
|
+
*
|
|
106
|
+
* Preference: `spec` / `npm` / `package` → catalog npm for github `url` →
|
|
107
|
+
* `github:` rewrite → `name` / `id`. Optional `version` pins npm names only.
|
|
108
|
+
*/
|
|
109
|
+
export function resolveMarketPluginSpec(body, catalogHint) {
|
|
110
|
+
const specField = typeof body.spec === "string" ? body.spec.trim() : "";
|
|
111
|
+
const npmField = (typeof body.npm === "string" && body.npm.trim()) ||
|
|
112
|
+
(typeof body.package === "string" && body.package.trim()) ||
|
|
113
|
+
"";
|
|
114
|
+
const url = typeof body.url === "string" ? body.url.trim() : "";
|
|
115
|
+
const name = typeof body.name === "string" ? body.name.trim() : "";
|
|
116
|
+
const id = typeof body.id === "string" ? body.id.trim() : "";
|
|
117
|
+
const version = typeof body.version === "string" ? body.version.trim() : "";
|
|
118
|
+
let raw = "";
|
|
119
|
+
if (specField) {
|
|
120
|
+
raw = specField;
|
|
121
|
+
}
|
|
122
|
+
else if (npmField) {
|
|
123
|
+
raw = npmField;
|
|
124
|
+
}
|
|
125
|
+
else if (url) {
|
|
126
|
+
const mapped = catalogHint?.npmByUrl.get(url) ||
|
|
127
|
+
catalogHint?.npmByUrl.get(url.replace(/\/$/, "")) ||
|
|
128
|
+
(name
|
|
129
|
+
? catalogHint?.npmByName.get(name) ||
|
|
130
|
+
catalogHint?.npmByName.get(name.toLowerCase())
|
|
131
|
+
: undefined);
|
|
132
|
+
if (mapped) {
|
|
133
|
+
raw = mapped;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
raw = githubHttpsToPluginSpec(url) || url;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
else if (name) {
|
|
140
|
+
raw =
|
|
141
|
+
catalogHint?.npmByName.get(name) ||
|
|
142
|
+
catalogHint?.npmByName.get(name.toLowerCase()) ||
|
|
143
|
+
name;
|
|
144
|
+
}
|
|
145
|
+
else if (id) {
|
|
146
|
+
raw =
|
|
147
|
+
catalogHint?.npmByName.get(id) ||
|
|
148
|
+
catalogHint?.npmByName.get(id.toLowerCase()) ||
|
|
149
|
+
id;
|
|
150
|
+
}
|
|
151
|
+
return pinVersion(raw, version);
|
|
152
|
+
}
|
|
153
|
+
async function loadCatalogHint() {
|
|
154
|
+
try {
|
|
155
|
+
const { catalog } = await fetchXrkPluginCatalog();
|
|
156
|
+
return buildMarketCatalogHint(catalog);
|
|
157
|
+
}
|
|
158
|
+
catch {
|
|
159
|
+
return undefined;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function isMutateAction(action, pathname) {
|
|
163
|
+
return (action === "install" ||
|
|
164
|
+
action === "add" ||
|
|
165
|
+
action === "uninstall" ||
|
|
166
|
+
action === "remove" ||
|
|
167
|
+
action === "update" ||
|
|
168
|
+
action === "upgrade" ||
|
|
169
|
+
pathname.includes("/install") ||
|
|
170
|
+
pathname.includes("/uninstall") ||
|
|
171
|
+
pathname.includes("/update") ||
|
|
172
|
+
pathname.includes("/upgrade"));
|
|
173
|
+
}
|
|
174
|
+
function isRemoveAction(action, pathname) {
|
|
175
|
+
return (action === "uninstall" ||
|
|
176
|
+
action === "remove" ||
|
|
177
|
+
pathname.includes("uninstall"));
|
|
178
|
+
}
|
|
19
179
|
export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
20
180
|
const method = (req.method ?? "GET").toUpperCase();
|
|
21
181
|
if (pathname === "/dsh-market/registry" && method === "GET") {
|
|
@@ -39,7 +199,8 @@ export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
|
39
199
|
pnpm: true,
|
|
40
200
|
boot: `${DSH_COMPAT_ADAPTER}-${Date.now()}`,
|
|
41
201
|
host: "xrk-harness",
|
|
42
|
-
note: "Install/uninstall:
|
|
202
|
+
note: "Install/update/uninstall: xrkh plugin add|remove via runPluginMutate (catalog url→npm).",
|
|
203
|
+
npmMutate: allowRemoteNpmMutate(),
|
|
43
204
|
}));
|
|
44
205
|
return;
|
|
45
206
|
}
|
|
@@ -58,7 +219,9 @@ export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
|
58
219
|
return;
|
|
59
220
|
}
|
|
60
221
|
if (pathname === "/dsh-market/updates" && method === "GET") {
|
|
61
|
-
|
|
222
|
+
// dshmarket reads `body.updates` as a name → row map (`updateAvailable`, `latest`).
|
|
223
|
+
// Offline probe: empty map (no false upgrade badges). POST update still re-adds.
|
|
224
|
+
sendJson(res, 200, tag({ updates: {} }));
|
|
62
225
|
return;
|
|
63
226
|
}
|
|
64
227
|
if (pathname === "/dsh-market/logs" && method === "GET") {
|
|
@@ -90,7 +253,7 @@ export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
|
90
253
|
path: pathname,
|
|
91
254
|
adapter: DSH_COMPAT_ADAPTER,
|
|
92
255
|
deferred: true,
|
|
93
|
-
note: "
|
|
256
|
+
note: "Market maintenance actions stay CLI-deferred on XRK.",
|
|
94
257
|
}));
|
|
95
258
|
return;
|
|
96
259
|
}
|
|
@@ -134,60 +297,67 @@ export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
|
134
297
|
});
|
|
135
298
|
return;
|
|
136
299
|
}
|
|
137
|
-
if (action === "
|
|
138
|
-
action === "add" ||
|
|
139
|
-
action === "uninstall" ||
|
|
140
|
-
action === "remove" ||
|
|
141
|
-
action === "upgrade" ||
|
|
142
|
-
action === "cancel" ||
|
|
300
|
+
if (action === "cancel" ||
|
|
143
301
|
action === "restart" ||
|
|
144
302
|
action === "backup" ||
|
|
145
303
|
action === "restore" ||
|
|
146
304
|
action === "channel" ||
|
|
147
|
-
action === "approve-builds"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
action
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
(typeof body.package === "string" && body.package) ||
|
|
169
|
-
(typeof body.name === "string" && body.name) ||
|
|
170
|
-
(typeof body.id === "string" && body.id) ||
|
|
171
|
-
"";
|
|
172
|
-
const remove = action === "uninstall" ||
|
|
173
|
-
action === "remove" ||
|
|
174
|
-
pathname.includes("uninstall");
|
|
305
|
+
action === "approve-builds") {
|
|
306
|
+
sendJson(res, 200, {
|
|
307
|
+
ok: false,
|
|
308
|
+
accepted: false,
|
|
309
|
+
deferred: true,
|
|
310
|
+
action,
|
|
311
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
312
|
+
incomplete: ["market-host"],
|
|
313
|
+
note: "Market maintenance actions stay CLI-deferred on XRK.",
|
|
314
|
+
});
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
if (isMutateAction(action, pathname)) {
|
|
318
|
+
const needsCatalog = typeof body.url === "string" ||
|
|
319
|
+
(typeof body.name === "string" &&
|
|
320
|
+
!body.spec &&
|
|
321
|
+
!body.npm &&
|
|
322
|
+
!body.package);
|
|
323
|
+
const hint = needsCatalog ? await loadCatalogHint() : undefined;
|
|
324
|
+
const spec = resolveMarketPluginSpec(body, hint);
|
|
325
|
+
const remove = isRemoveAction(action, pathname);
|
|
175
326
|
const pluginsDir = options.pluginsDir?.trim() ||
|
|
176
327
|
readXrkPluginInventory(options).pluginsDir;
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
328
|
+
const mutateAction = remove ? "remove" : "add";
|
|
329
|
+
let mutate;
|
|
330
|
+
let skippedReason;
|
|
331
|
+
if (!spec) {
|
|
332
|
+
skippedReason = "missing plugin spec (name / url / package)";
|
|
333
|
+
}
|
|
334
|
+
else if (!pluginsDir) {
|
|
335
|
+
skippedReason = "pluginsDir unavailable";
|
|
336
|
+
}
|
|
337
|
+
else if (!canMutateSpec(spec)) {
|
|
338
|
+
skippedReason =
|
|
339
|
+
"remote/npm mutate disabled (XRK_MARKET_MUTATE_NPM=0)";
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
mutate = await runPluginMutate({
|
|
343
|
+
action: mutateAction,
|
|
180
344
|
spec,
|
|
181
345
|
pluginsDir,
|
|
182
|
-
})
|
|
183
|
-
|
|
346
|
+
});
|
|
347
|
+
}
|
|
184
348
|
const inv = readXrkPluginInventory({ ...options, pluginsDir });
|
|
185
349
|
const accepted = mutate?.ok === true;
|
|
350
|
+
const attempted = mutate !== undefined;
|
|
186
351
|
sendJson(res, 200, {
|
|
187
352
|
ok: accepted,
|
|
188
353
|
accepted,
|
|
189
|
-
deferred: !
|
|
354
|
+
deferred: !attempted,
|
|
190
355
|
adapter: DSH_COMPAT_ADAPTER,
|
|
356
|
+
action: remove
|
|
357
|
+
? "uninstall"
|
|
358
|
+
: action === "update" || action === "upgrade"
|
|
359
|
+
? "update"
|
|
360
|
+
: "install",
|
|
191
361
|
spec,
|
|
192
362
|
via: "/xrk/plugins/inventory",
|
|
193
363
|
installed: inv.present,
|
|
@@ -195,11 +365,19 @@ export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
|
195
365
|
? { mutated: true, restartRequired: true }
|
|
196
366
|
: {
|
|
197
367
|
cli: spec
|
|
198
|
-
? `xrkh plugin ${
|
|
199
|
-
: `xrkh plugin ${
|
|
200
|
-
error: mutate?.error,
|
|
201
|
-
|
|
202
|
-
|
|
368
|
+
? `xrkh plugin ${mutateAction} ${spec}`
|
|
369
|
+
: `xrkh plugin ${mutateAction} <spec>`,
|
|
370
|
+
error: mutate?.error ?? skippedReason,
|
|
371
|
+
...(mutate?.stderr ? { stderr: mutate.stderr } : {}),
|
|
372
|
+
...(mutate?.stdout ? { stdout: mutate.stdout } : {}),
|
|
373
|
+
...(!attempted
|
|
374
|
+
? {
|
|
375
|
+
incomplete: ["market-host"],
|
|
376
|
+
note: skippedReason,
|
|
377
|
+
}
|
|
378
|
+
: {
|
|
379
|
+
note: "xrkh plugin mutate failed; see error/stderr. Restart Host after a successful install.",
|
|
380
|
+
}),
|
|
203
381
|
}),
|
|
204
382
|
});
|
|
205
383
|
return;
|
|
@@ -217,7 +395,7 @@ export async function handleDshMarketHttp(req, res, pathname, options) {
|
|
|
217
395
|
sendJson(res, 200, {
|
|
218
396
|
path: pathname,
|
|
219
397
|
adapter: DSH_COMPAT_ADAPTER,
|
|
220
|
-
note: "Use POST install/
|
|
398
|
+
note: "Use POST install/update/uninstall or GET installed/registry.",
|
|
221
399
|
});
|
|
222
400
|
}
|
|
223
401
|
//# sourceMappingURL=market.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market.js","sourceRoot":"","sources":["../../src/dsh-compat/market.ts"],"names":[],"mappings":"AAIA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GAEvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE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,EAAE,EAAE,KAAK;YACT,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,kBAAkB;YAC3B,KAAK,EAAE,uBAAuB;SAC/B,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IAED,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,kBAAkB;QAC3B,IAAI,EAAE,8DAA8D;KACrE,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-mcp-connector — POST `/mcp-connector/api` with persisted connection catalog.
|
|
3
|
+
*/
|
|
4
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
5
|
+
export interface McpConnectorHttpOptions {
|
|
6
|
+
readonly pluginsDir?: string;
|
|
7
|
+
readonly xrkHome?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function isMcpConnectorPath(pathname: string): boolean;
|
|
10
|
+
export declare function handleMcpConnectorHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: McpConnectorHttpOptions): Promise<boolean>;
|
|
11
|
+
//# sourceMappingURL=mcp-connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-connector.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/mcp-connector.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AASjE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAsBD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI5D;AA6GD,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,OAAO,CAAC,CA6ElB"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { createReadStream, existsSync, statSync } from "node:fs";
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { readBody, sendJson } from "./underlying/http-json.js";
|
|
5
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
6
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
7
|
+
import { findCommunityPluginRoot } from "./community-plugin-root.js";
|
|
8
|
+
const STORE = createXrkDocStore(["dsh-mcp-connector", "state.json"], {
|
|
9
|
+
connections: [],
|
|
10
|
+
servers: [],
|
|
11
|
+
});
|
|
12
|
+
export function isMcpConnectorPath(pathname) {
|
|
13
|
+
return (pathname === "/mcp-connector" || pathname.startsWith("/mcp-connector/"));
|
|
14
|
+
}
|
|
15
|
+
function contentType(file) {
|
|
16
|
+
switch (path.extname(file).toLowerCase()) {
|
|
17
|
+
case ".js":
|
|
18
|
+
case ".mjs":
|
|
19
|
+
return "application/javascript; charset=utf-8";
|
|
20
|
+
case ".css":
|
|
21
|
+
return "text/css; charset=utf-8";
|
|
22
|
+
case ".html":
|
|
23
|
+
return "text/html; charset=utf-8";
|
|
24
|
+
case ".svg":
|
|
25
|
+
return "image/svg+xml";
|
|
26
|
+
default:
|
|
27
|
+
return "application/octet-stream";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
async function parseJson(req) {
|
|
31
|
+
try {
|
|
32
|
+
const raw = await readBody(req);
|
|
33
|
+
if (!raw.trim())
|
|
34
|
+
return {};
|
|
35
|
+
const parsed = JSON.parse(raw);
|
|
36
|
+
return parsed && typeof parsed === "object"
|
|
37
|
+
? parsed
|
|
38
|
+
: {};
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function detailForMethod(method, xrkHome, body) {
|
|
45
|
+
const doc = STORE.read(xrkHome).data;
|
|
46
|
+
switch (method) {
|
|
47
|
+
case "versionStatus":
|
|
48
|
+
return {
|
|
49
|
+
current: null,
|
|
50
|
+
latest: null,
|
|
51
|
+
updateAvailable: false,
|
|
52
|
+
checkedAt: Date.now(),
|
|
53
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
54
|
+
};
|
|
55
|
+
case "listConnections":
|
|
56
|
+
case "list":
|
|
57
|
+
return { connections: doc.connections, items: doc.connections };
|
|
58
|
+
case "catalog":
|
|
59
|
+
return { servers: doc.servers, items: doc.servers };
|
|
60
|
+
case "health":
|
|
61
|
+
case "status":
|
|
62
|
+
return {
|
|
63
|
+
ok: true,
|
|
64
|
+
state: doc.connections.some((c) => c.enabled) ? "configured" : "idle",
|
|
65
|
+
connections: doc.connections,
|
|
66
|
+
};
|
|
67
|
+
case "upsertConnection":
|
|
68
|
+
case "addConnection":
|
|
69
|
+
case "saveConnection": {
|
|
70
|
+
const id = typeof body.id === "string" && body.id ? body.id : randomUUID();
|
|
71
|
+
const row = {
|
|
72
|
+
id,
|
|
73
|
+
name: typeof body.name === "string" ? body.name : id,
|
|
74
|
+
transport: typeof body.transport === "string" ? body.transport : "stdio",
|
|
75
|
+
...(typeof body.command === "string" ? { command: body.command } : {}),
|
|
76
|
+
...(typeof body.url === "string" ? { url: body.url } : {}),
|
|
77
|
+
enabled: body.enabled !== false,
|
|
78
|
+
createdAt: new Date().toISOString(),
|
|
79
|
+
};
|
|
80
|
+
STORE.patch(xrkHome, (current) => ({
|
|
81
|
+
...current,
|
|
82
|
+
connections: [
|
|
83
|
+
...current.connections.filter((c) => c.id !== id),
|
|
84
|
+
row,
|
|
85
|
+
],
|
|
86
|
+
}));
|
|
87
|
+
return {
|
|
88
|
+
ok: true,
|
|
89
|
+
connection: row,
|
|
90
|
+
connections: STORE.read(xrkHome).data.connections,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
case "removeConnection":
|
|
94
|
+
case "deleteConnection": {
|
|
95
|
+
const id = typeof body.id === "string" ? body.id : "";
|
|
96
|
+
STORE.patch(xrkHome, (current) => ({
|
|
97
|
+
...current,
|
|
98
|
+
connections: current.connections.filter((c) => c.id !== id),
|
|
99
|
+
}));
|
|
100
|
+
return {
|
|
101
|
+
ok: true,
|
|
102
|
+
connections: STORE.read(xrkHome).data.connections,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
default:
|
|
106
|
+
return {
|
|
107
|
+
ok: true,
|
|
108
|
+
method,
|
|
109
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export async function handleMcpConnectorHttp(req, res, pathname, options = {}) {
|
|
114
|
+
if (!isMcpConnectorPath(pathname))
|
|
115
|
+
return false;
|
|
116
|
+
const method = (req.method ?? "GET").toUpperCase();
|
|
117
|
+
if ((pathname === "/mcp-connector/api" || pathname === "/mcp-connector/api/") &&
|
|
118
|
+
method === "POST") {
|
|
119
|
+
const body = await parseJson(req);
|
|
120
|
+
const rpc = typeof body.method === "string" ? body.method : "versionStatus";
|
|
121
|
+
const args = body.params && typeof body.params === "object"
|
|
122
|
+
? body.params
|
|
123
|
+
: body;
|
|
124
|
+
sendJson(res, 200, {
|
|
125
|
+
ok: true,
|
|
126
|
+
detail: detailForMethod(rpc, options.xrkHome, args),
|
|
127
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
128
|
+
});
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
if (pathname.startsWith("/mcp-connector/ui/") &&
|
|
132
|
+
(method === "GET" || method === "HEAD")) {
|
|
133
|
+
const root = findCommunityPluginRoot(options.pluginsDir, [
|
|
134
|
+
"dsh-mcp-connector",
|
|
135
|
+
]);
|
|
136
|
+
const rel = pathname.slice("/mcp-connector/ui/".length);
|
|
137
|
+
if (root && rel && !rel.includes("..") && !path.isAbsolute(rel)) {
|
|
138
|
+
const abs = path.resolve(root, "ui", rel);
|
|
139
|
+
const base = path.resolve(root, "ui");
|
|
140
|
+
if ((abs === base || abs.startsWith(base + path.sep)) &&
|
|
141
|
+
existsSync(abs)) {
|
|
142
|
+
try {
|
|
143
|
+
const st = statSync(abs);
|
|
144
|
+
if (st.isFile()) {
|
|
145
|
+
res.writeHead(200, {
|
|
146
|
+
"content-type": contentType(abs),
|
|
147
|
+
"content-length": String(st.size),
|
|
148
|
+
"cache-control": "no-store",
|
|
149
|
+
});
|
|
150
|
+
if (method === "HEAD") {
|
|
151
|
+
res.end();
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
createReadStream(abs).pipe(res);
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
catch {
|
|
159
|
+
/* fall through */
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
sendJson(res, 404, {
|
|
164
|
+
ok: false,
|
|
165
|
+
error: "mcp-connector ui asset missing",
|
|
166
|
+
path: pathname,
|
|
167
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
168
|
+
});
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
if (method === "POST" || method === "PUT" || method === "PATCH") {
|
|
172
|
+
await readBody(req);
|
|
173
|
+
}
|
|
174
|
+
sendJson(res, 200, {
|
|
175
|
+
ok: true,
|
|
176
|
+
path: pathname,
|
|
177
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
178
|
+
detail: detailForMethod("status", options.xrkHome, {}),
|
|
179
|
+
});
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=mcp-connector.js.map
|