@xrkseek/harness 0.4.12 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/context.d.ts +18 -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 +6 -2
- 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/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.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +7 -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 +6 -3
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +6 -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 +14 -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/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 +23 -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 +37 -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 +222 -123
- 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/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 +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +1 -0
- 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,341 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@linxin666/dsh-client-ui-git-graph` — `/git/*` JSON envelope + SSE keepalive.
|
|
3
|
+
* Reuses sidebar-git for status / branches / checkout / worktrees.
|
|
4
|
+
*/
|
|
5
|
+
import { execFileSync } from "node:child_process";
|
|
6
|
+
import { existsSync, mkdirSync } from "node:fs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { gitBranches, gitCheckout, gitStatus, gitWorktrees, } from "../sidebar/sidebar-git.js";
|
|
9
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
10
|
+
import { httpMethod, parseJsonBody } from "./underlying/http-kit.js";
|
|
11
|
+
import { resolveCompatHome } from "./underlying/json-store.js";
|
|
12
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
13
|
+
const CONFIG = createXrkDocStore(["dsh-git-graph", "config.json"], { config: { autoIsolate: false, autoBaseline: "current" } });
|
|
14
|
+
const BAD_REQUEST = { code: "internal", message: "malformed request" };
|
|
15
|
+
const INTERNAL = (message) => ({ code: "internal", message });
|
|
16
|
+
function ok(value) {
|
|
17
|
+
return { ok: true, value };
|
|
18
|
+
}
|
|
19
|
+
function fail(error) {
|
|
20
|
+
return { ok: false, error };
|
|
21
|
+
}
|
|
22
|
+
function sendJson(res, body) {
|
|
23
|
+
const text = JSON.stringify(body);
|
|
24
|
+
res.writeHead(200, {
|
|
25
|
+
"content-type": "application/json; charset=utf-8",
|
|
26
|
+
"cache-control": "no-store",
|
|
27
|
+
"content-length": Buffer.byteLength(text),
|
|
28
|
+
});
|
|
29
|
+
res.end(text);
|
|
30
|
+
}
|
|
31
|
+
function runGit(cwd, args, options = {}) {
|
|
32
|
+
const opts = {
|
|
33
|
+
cwd,
|
|
34
|
+
encoding: "utf8",
|
|
35
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
36
|
+
maxBuffer: 8 * 1024 * 1024,
|
|
37
|
+
windowsHide: true,
|
|
38
|
+
};
|
|
39
|
+
try {
|
|
40
|
+
return execFileSync("git", args, opts).toString().trimEnd();
|
|
41
|
+
}
|
|
42
|
+
catch (err) {
|
|
43
|
+
if (options.allowFail) {
|
|
44
|
+
const e = err;
|
|
45
|
+
const out = typeof e.stdout === "string" ? e.stdout.trimEnd() : "";
|
|
46
|
+
return out.length > 0 ? out : null;
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function isRepo(cwd) {
|
|
52
|
+
return existsSync(path.join(cwd, ".git"));
|
|
53
|
+
}
|
|
54
|
+
function worktreesHome(xrkHome) {
|
|
55
|
+
return path.join(resolveCompatHome(xrkHome), "worktrees");
|
|
56
|
+
}
|
|
57
|
+
function featureConfig(xrkHome) {
|
|
58
|
+
const saved = CONFIG.read(xrkHome).data.config;
|
|
59
|
+
return {
|
|
60
|
+
autoIsolate: saved.autoIsolate === true,
|
|
61
|
+
autoBaseline: saved.autoBaseline === "default" ? "default" : "current",
|
|
62
|
+
worktreesHome: worktreesHome(xrkHome),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function pathOf(payload) {
|
|
66
|
+
const p = payload.path;
|
|
67
|
+
return typeof p === "string" && p.trim() ? path.resolve(p.trim()) : null;
|
|
68
|
+
}
|
|
69
|
+
function dirtyCounts(cwd) {
|
|
70
|
+
const status = gitStatus(cwd);
|
|
71
|
+
let dirtyFiles = 0;
|
|
72
|
+
let untrackedFiles = 0;
|
|
73
|
+
let conflicts = 0;
|
|
74
|
+
for (const entry of status.entries) {
|
|
75
|
+
if (entry.xy === "??") {
|
|
76
|
+
untrackedFiles += 1;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (entry.xy.includes("U") ||
|
|
80
|
+
entry.xy === "AA" ||
|
|
81
|
+
entry.xy === "DD") {
|
|
82
|
+
conflicts += 1;
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
dirtyFiles += 1;
|
|
86
|
+
}
|
|
87
|
+
return { dirtyFiles, untrackedFiles, conflicts };
|
|
88
|
+
}
|
|
89
|
+
function repoStatus(cwd) {
|
|
90
|
+
const status = gitStatus(cwd);
|
|
91
|
+
const root = status.root ?? path.resolve(cwd);
|
|
92
|
+
const head = runGit(cwd, ["rev-parse", "HEAD"], { allowFail: true }) ?? "";
|
|
93
|
+
const counts = dirtyCounts(cwd);
|
|
94
|
+
return {
|
|
95
|
+
root,
|
|
96
|
+
branch: status.branch ?? "HEAD",
|
|
97
|
+
head,
|
|
98
|
+
...counts,
|
|
99
|
+
operationInProgress: false,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function branchesView(cwd) {
|
|
103
|
+
const status = repoStatus(cwd);
|
|
104
|
+
const listed = gitBranches(cwd);
|
|
105
|
+
const branches = listed.names.map((name) => ({
|
|
106
|
+
name,
|
|
107
|
+
current: name === listed.current,
|
|
108
|
+
}));
|
|
109
|
+
return {
|
|
110
|
+
root: status.root,
|
|
111
|
+
branch: status.branch,
|
|
112
|
+
branches,
|
|
113
|
+
dirtyFiles: status.dirtyFiles,
|
|
114
|
+
untrackedFiles: status.untrackedFiles,
|
|
115
|
+
conflicts: status.conflicts,
|
|
116
|
+
operationInProgress: false,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function parseDecoration(decoration) {
|
|
120
|
+
if (!decoration)
|
|
121
|
+
return [];
|
|
122
|
+
return decoration
|
|
123
|
+
.split(", ")
|
|
124
|
+
.map((part) => {
|
|
125
|
+
if (part === "HEAD")
|
|
126
|
+
return "";
|
|
127
|
+
if (part.startsWith("HEAD -> "))
|
|
128
|
+
return part.slice("HEAD -> ".length);
|
|
129
|
+
if (part.startsWith("tag: "))
|
|
130
|
+
return part.slice("tag: ".length);
|
|
131
|
+
return part;
|
|
132
|
+
})
|
|
133
|
+
.filter(Boolean);
|
|
134
|
+
}
|
|
135
|
+
function graphView(cwd, limit) {
|
|
136
|
+
const status = repoStatus(cwd);
|
|
137
|
+
const max = Math.min(Math.max(1, Math.floor(limit)), 1000);
|
|
138
|
+
const out = runGit(cwd, [
|
|
139
|
+
"log",
|
|
140
|
+
`-n`,
|
|
141
|
+
String(max + 1),
|
|
142
|
+
"--pretty=format:%H%x00%P%x00%s%x00%an%x00%at%x00%d",
|
|
143
|
+
], { allowFail: true });
|
|
144
|
+
const commits = [];
|
|
145
|
+
if (out) {
|
|
146
|
+
for (const line of out.split(/\r?\n/)) {
|
|
147
|
+
if (!line.trim())
|
|
148
|
+
continue;
|
|
149
|
+
const [oid, parentsRaw, subject, author, authorTimeRaw, decoration] = line.split("\0");
|
|
150
|
+
if (!oid)
|
|
151
|
+
continue;
|
|
152
|
+
commits.push({
|
|
153
|
+
oid,
|
|
154
|
+
parents: parentsRaw === undefined || parentsRaw === ""
|
|
155
|
+
? []
|
|
156
|
+
: parentsRaw.split(" ").filter(Boolean),
|
|
157
|
+
subject: subject ?? "",
|
|
158
|
+
author: author ?? "",
|
|
159
|
+
authorTime: Number(authorTimeRaw ?? "0") || 0,
|
|
160
|
+
refs: parseDecoration((decoration ?? "").replace(/^\s*\(|\)\s*$/g, "")),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const hasMore = commits.length > max;
|
|
165
|
+
return {
|
|
166
|
+
root: status.root,
|
|
167
|
+
branch: status.branch,
|
|
168
|
+
commits: commits.slice(0, max),
|
|
169
|
+
hasMore,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function worktreeListView(cwd) {
|
|
173
|
+
const status = repoStatus(cwd);
|
|
174
|
+
const rows = gitWorktrees(cwd);
|
|
175
|
+
const worktrees = rows.map((row) => {
|
|
176
|
+
const head = runGit(row.path, ["rev-parse", "HEAD"], { allowFail: true }) ?? "";
|
|
177
|
+
return {
|
|
178
|
+
path: row.path,
|
|
179
|
+
head,
|
|
180
|
+
branch: row.branch,
|
|
181
|
+
main: row.current,
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
return { root: status.root, worktrees };
|
|
185
|
+
}
|
|
186
|
+
function ensureUnderWorktreesHome(worktreePath, home) {
|
|
187
|
+
const resolved = path.resolve(worktreePath);
|
|
188
|
+
const base = path.resolve(home);
|
|
189
|
+
return resolved === base || resolved.startsWith(base + path.sep);
|
|
190
|
+
}
|
|
191
|
+
export function isGitGraphPath(pathname) {
|
|
192
|
+
return pathname === "/git" || pathname.startsWith("/git/");
|
|
193
|
+
}
|
|
194
|
+
export async function handleGitGraphHttp(req, res, pathname, options = {}) {
|
|
195
|
+
if (!isGitGraphPath(pathname))
|
|
196
|
+
return false;
|
|
197
|
+
const method = httpMethod(req);
|
|
198
|
+
const pathNorm = pathname.replace(/\/+$/, "") || "/git";
|
|
199
|
+
if (pathNorm === "/git/events") {
|
|
200
|
+
if (method !== "GET" && method !== "HEAD") {
|
|
201
|
+
res.writeHead(405);
|
|
202
|
+
res.end();
|
|
203
|
+
return true;
|
|
204
|
+
}
|
|
205
|
+
res.writeHead(200, {
|
|
206
|
+
"content-type": "text/event-stream; charset=utf-8",
|
|
207
|
+
"cache-control": "no-cache",
|
|
208
|
+
connection: "keep-alive",
|
|
209
|
+
});
|
|
210
|
+
if (method === "HEAD") {
|
|
211
|
+
res.end();
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
res.write("retry: 2000\n\n");
|
|
215
|
+
res.write(": keepalive\n\n");
|
|
216
|
+
res.write(`data: ${JSON.stringify({ adapter: DSH_COMPAT_ADAPTER })}\n\n`);
|
|
217
|
+
res.end();
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
if (method !== "POST") {
|
|
221
|
+
res.writeHead(405);
|
|
222
|
+
res.end();
|
|
223
|
+
return true;
|
|
224
|
+
}
|
|
225
|
+
const payload = await parseJsonBody(req);
|
|
226
|
+
if (pathNorm === "/git/config") {
|
|
227
|
+
sendJson(res, ok(featureConfig(options.xrkHome)));
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
const cwd = pathOf(payload);
|
|
231
|
+
if (!cwd) {
|
|
232
|
+
sendJson(res, fail(BAD_REQUEST));
|
|
233
|
+
return true;
|
|
234
|
+
}
|
|
235
|
+
if (!isRepo(cwd) && !existsSync(cwd)) {
|
|
236
|
+
sendJson(res, fail(INTERNAL(`not a git repository: ${cwd}`)));
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
try {
|
|
240
|
+
switch (pathNorm) {
|
|
241
|
+
case "/git/status":
|
|
242
|
+
sendJson(res, ok(repoStatus(cwd)));
|
|
243
|
+
return true;
|
|
244
|
+
case "/git/branches":
|
|
245
|
+
sendJson(res, ok(branchesView(cwd)));
|
|
246
|
+
return true;
|
|
247
|
+
case "/git/graph": {
|
|
248
|
+
const rawLimit = payload.limit;
|
|
249
|
+
const limit = typeof rawLimit === "number" && rawLimit > 0
|
|
250
|
+
? Math.min(rawLimit, 1000)
|
|
251
|
+
: 100;
|
|
252
|
+
sendJson(res, ok(graphView(cwd, limit)));
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
case "/git/switch": {
|
|
256
|
+
const branch = typeof payload.branch === "string" ? payload.branch.trim() : "";
|
|
257
|
+
if (!branch) {
|
|
258
|
+
sendJson(res, fail(BAD_REQUEST));
|
|
259
|
+
return true;
|
|
260
|
+
}
|
|
261
|
+
gitCheckout(cwd, branch);
|
|
262
|
+
sendJson(res, ok(repoStatus(cwd)));
|
|
263
|
+
return true;
|
|
264
|
+
}
|
|
265
|
+
case "/git/create-branch": {
|
|
266
|
+
const name = typeof payload.name === "string" ? payload.name.trim() : "";
|
|
267
|
+
if (!name) {
|
|
268
|
+
sendJson(res, fail(BAD_REQUEST));
|
|
269
|
+
return true;
|
|
270
|
+
}
|
|
271
|
+
const created = runGit(cwd, ["checkout", "-b", name], {
|
|
272
|
+
allowFail: true,
|
|
273
|
+
});
|
|
274
|
+
if (created === null && runGit(cwd, ["checkout", name], { allowFail: true }) === null) {
|
|
275
|
+
sendJson(res, fail(INTERNAL(`failed to create branch ${name}`)));
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
sendJson(res, ok(branchesView(cwd)));
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
case "/git/worktrees":
|
|
282
|
+
sendJson(res, ok(worktreeListView(cwd)));
|
|
283
|
+
return true;
|
|
284
|
+
case "/git/worktree-add": {
|
|
285
|
+
const name = typeof payload.name === "string" ? payload.name.trim() : "";
|
|
286
|
+
const baseRef = typeof payload.baseRef === "string" && payload.baseRef.trim()
|
|
287
|
+
? payload.baseRef.trim()
|
|
288
|
+
: "HEAD";
|
|
289
|
+
if (!name) {
|
|
290
|
+
sendJson(res, fail(BAD_REQUEST));
|
|
291
|
+
return true;
|
|
292
|
+
}
|
|
293
|
+
const home = worktreesHome(options.xrkHome);
|
|
294
|
+
mkdirSync(home, { recursive: true });
|
|
295
|
+
const target = path.join(home, name);
|
|
296
|
+
if (!ensureUnderWorktreesHome(target, home)) {
|
|
297
|
+
sendJson(res, fail(INTERNAL("worktree path escapes worktrees home")));
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
const args = ["worktree", "add", "-b", name, target, baseRef];
|
|
301
|
+
const added = runGit(cwd, args, { allowFail: true });
|
|
302
|
+
if (added === null && !existsSync(target)) {
|
|
303
|
+
sendJson(res, fail(INTERNAL(`failed to add worktree ${name}`)));
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
sendJson(res, ok(worktreeListView(cwd)));
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
309
|
+
case "/git/worktree-remove": {
|
|
310
|
+
const worktreePath = typeof payload.worktreePath === "string"
|
|
311
|
+
? payload.worktreePath.trim()
|
|
312
|
+
: "";
|
|
313
|
+
if (!worktreePath) {
|
|
314
|
+
sendJson(res, fail(BAD_REQUEST));
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
const home = worktreesHome(options.xrkHome);
|
|
318
|
+
if (!ensureUnderWorktreesHome(worktreePath, home)) {
|
|
319
|
+
sendJson(res, fail(INTERNAL("refusing to remove worktree outside worktrees home")));
|
|
320
|
+
return true;
|
|
321
|
+
}
|
|
322
|
+
runGit(cwd, ["worktree", "remove", "--force", worktreePath], {
|
|
323
|
+
allowFail: true,
|
|
324
|
+
});
|
|
325
|
+
sendJson(res, ok(worktreeListView(cwd)));
|
|
326
|
+
return true;
|
|
327
|
+
}
|
|
328
|
+
default:
|
|
329
|
+
sendJson(res, fail({
|
|
330
|
+
code: "internal",
|
|
331
|
+
message: `unknown /git route: ${pathNorm}`,
|
|
332
|
+
}));
|
|
333
|
+
return true;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
catch (err) {
|
|
337
|
+
sendJson(res, fail(INTERNAL(err instanceof Error ? err.message : String(err))));
|
|
338
|
+
return true;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
//# sourceMappingURL=git-graph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-graph.js","sourceRoot":"","sources":["../../src/dsh-compat/git-graph.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAA4B,MAAM,o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C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"honest-http-catchall.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/honest-http-catchall.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"honest-http-catchall.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/honest-http-catchall.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAsBjE,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOlE;AAED,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC,CA2BlB;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE;IACnD,YAAY,EAAE,CACZ,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,EACpC,MAAM,EAAE,CACN,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,KACb,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAC5B,IAAI,CAAC;CACX,GAAG,IAAI,CAKP"}
|
|
@@ -7,6 +7,9 @@ import { sendJson } from "./underlying/http-json.js";
|
|
|
7
7
|
import { DSH_COMPAT_ADAPTER, tag } from "./meta.js";
|
|
8
8
|
const SKIP_PREFIXES = [
|
|
9
9
|
"/api/harness/",
|
|
10
|
+
// Host cron read API (`createCronApiHandler` in tryHandleExtraApi) — must
|
|
11
|
+
// not be claimed here or Settings → Plugins → Tasks gets a stub body.
|
|
12
|
+
"/api/cron/",
|
|
10
13
|
"/xrk/",
|
|
11
14
|
"/console",
|
|
12
15
|
"/assets/",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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AAW,EAAE,CAAC;IACnD,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QAC1C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,CAAC;QAC3E,GAAG,CAAC,GAAG,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,QAAQ,CACN,GAAG,EACH,GAAG,EACH,GAAG,CACD;QACE,EAAE,EAAE,IAAI;QACR,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,iEAAiE;KACxE,EACD,CAAC,UAAU,CAAC,CACb,CACF,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,QAS1C;IACC,QAAQ,CAAC,YAAY,CACnB,CAAC,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAChD,wBAAwB,CACzB,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"honest-http-catchall.js","sourceRoot":"","sources":["../../src/dsh-compat/honest-http-catchall.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,aAAa,GAAG;IACpB,eAAe;IACf,0EAA0E;IAC1E,sEAAsE;IACtE,YAAY;IACZ,OAAO;IACP,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;CACZ,CAAC;AAEF,SAAS,mBAAmB,CAAC,QAAgB;IAC3C,M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AAG,CACD;QACE,EAAE,EAAE,IAAI;QACR,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,iEAAiE;KACxE,EACD,CAAC,UAAU,CAAC,CACb,CACF,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,QAS1C;IACC,QAAQ,CAAC,YAAY,CACnB,CAAC,QAAQ,EAAE,EAAE,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAChD,wBAAwB,CACzB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
export interface ImConnectOptions {
|
|
3
|
+
readonly xrkHome?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function isImConnectPath(pathname: string): boolean;
|
|
6
|
+
export declare function handleImConnectHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: ImConnectOptions): Promise<boolean>;
|
|
7
|
+
//# sourceMappingURL=im-connect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"im-connect.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/im-connect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMjE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AA6CD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOzD;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,OAAO,CAAC,CAuJlB"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @michengai/dsh-im-connect — persisted channel configs (offline until IM host).
|
|
3
|
+
* Seat `sidebar.channels` remains a known DSH-only gap.
|
|
4
|
+
*/
|
|
5
|
+
import { randomUUID } from "node:crypto";
|
|
6
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
7
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
8
|
+
import { httpMethod, parseJsonBody } from "./underlying/http-kit.js";
|
|
9
|
+
import { DSH_COMPAT_ADAPTER, tag } from "./meta.js";
|
|
10
|
+
const STORE = createXrkDocStore(["dsh-im-connect", "state.json"], {
|
|
11
|
+
channels: [],
|
|
12
|
+
pending: [],
|
|
13
|
+
assistant: {
|
|
14
|
+
providers: [],
|
|
15
|
+
permissions: [],
|
|
16
|
+
agentPresets: [],
|
|
17
|
+
agentPreset: "standard",
|
|
18
|
+
assistant: null,
|
|
19
|
+
cwd: "",
|
|
20
|
+
permission: "",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export function isImConnectPath(pathname) {
|
|
24
|
+
return (pathname === "/api/dsh-im-connect" ||
|
|
25
|
+
pathname.startsWith("/api/dsh-im-connect/") ||
|
|
26
|
+
pathname === "/api/michengai/dsh-im-connect" ||
|
|
27
|
+
pathname.startsWith("/api/michengai/dsh-im-connect/"));
|
|
28
|
+
}
|
|
29
|
+
export async function handleImConnectHttp(req, res, pathname, options = {}) {
|
|
30
|
+
if (!isImConnectPath(pathname))
|
|
31
|
+
return false;
|
|
32
|
+
const method = httpMethod(req);
|
|
33
|
+
const xrkHome = options.xrkHome;
|
|
34
|
+
const base = pathname.startsWith("/api/michengai/dsh-im-connect")
|
|
35
|
+
? pathname.replace(/^\/api\/michengai\/dsh-im-connect/, "/api/dsh-im-connect")
|
|
36
|
+
: pathname;
|
|
37
|
+
const rel = base.replace(/^\/api\/dsh-im-connect\/?/, "/");
|
|
38
|
+
if (rel === "/" || rel === "/channels" || rel === "/channels/") {
|
|
39
|
+
if (method === "GET" || method === "HEAD") {
|
|
40
|
+
const doc = STORE.read(xrkHome).data;
|
|
41
|
+
sendJson(res, 200, tag({
|
|
42
|
+
ok: true,
|
|
43
|
+
channels: doc.channels,
|
|
44
|
+
pending: doc.pending,
|
|
45
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
46
|
+
note: "Channels persist locally; live IM tunnel still needs vendor host.",
|
|
47
|
+
}, ["im-host"]));
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
if (method === "POST") {
|
|
51
|
+
const body = await parseJsonBody(req);
|
|
52
|
+
const now = new Date().toISOString();
|
|
53
|
+
const row = {
|
|
54
|
+
id: typeof body.id === "string" ? body.id : randomUUID(),
|
|
55
|
+
kind: typeof body.kind === "string" ? body.kind : "custom",
|
|
56
|
+
name: typeof body.name === "string" ? body.name : "Channel",
|
|
57
|
+
enabled: body.enabled !== false,
|
|
58
|
+
config: body.config && typeof body.config === "object"
|
|
59
|
+
? body.config
|
|
60
|
+
: {},
|
|
61
|
+
createdAt: now,
|
|
62
|
+
updatedAt: now,
|
|
63
|
+
};
|
|
64
|
+
STORE.patch(xrkHome, (doc) => ({
|
|
65
|
+
...doc,
|
|
66
|
+
channels: [...doc.channels.filter((c) => c.id !== row.id), row],
|
|
67
|
+
}));
|
|
68
|
+
sendJson(res, 200, {
|
|
69
|
+
ok: true,
|
|
70
|
+
channel: row,
|
|
71
|
+
channels: STORE.read(xrkHome).data.channels,
|
|
72
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
73
|
+
});
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (rel === "/assistant" || rel === "/assistant/") {
|
|
78
|
+
if (method === "GET" || method === "HEAD") {
|
|
79
|
+
const a = STORE.read(xrkHome).data.assistant;
|
|
80
|
+
sendJson(res, 200, tag({ ok: true, ...a, adapter: DSH_COMPAT_ADAPTER }, ["im-host"]));
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
if (method === "PUT" || method === "POST" || method === "PATCH") {
|
|
84
|
+
const body = await parseJsonBody(req);
|
|
85
|
+
STORE.patch(xrkHome, (doc) => ({
|
|
86
|
+
...doc,
|
|
87
|
+
assistant: { ...doc.assistant, ...body },
|
|
88
|
+
}));
|
|
89
|
+
sendJson(res, 200, {
|
|
90
|
+
ok: true,
|
|
91
|
+
...STORE.read(xrkHome).data.assistant,
|
|
92
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
93
|
+
});
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (rel === "/sessions/ensure" || rel.startsWith("/sessions/")) {
|
|
98
|
+
if (method === "POST")
|
|
99
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
100
|
+
sendJson(res, 200, tag({
|
|
101
|
+
ok: false,
|
|
102
|
+
error: "im-host-unavailable",
|
|
103
|
+
path: pathname,
|
|
104
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
105
|
+
}, ["im-host"]));
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
if (rel.includes("/qr/") || rel.endsWith("/connect")) {
|
|
109
|
+
if (method === "POST")
|
|
110
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
111
|
+
sendJson(res, 200, tag({
|
|
112
|
+
ok: false,
|
|
113
|
+
pairing: false,
|
|
114
|
+
error: "im-host-unavailable",
|
|
115
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
116
|
+
}, ["im-host"]));
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
if (rel.startsWith("/accounts/")) {
|
|
120
|
+
if (method === "POST" || method === "DELETE") {
|
|
121
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
122
|
+
}
|
|
123
|
+
sendJson(res, 200, tag({ ok: false, error: "im-host-unavailable", adapter: DSH_COMPAT_ADAPTER }, ["im-host"]));
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
if (method === "POST" || method === "PUT" || method === "PATCH") {
|
|
127
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
128
|
+
}
|
|
129
|
+
const doc = STORE.read(xrkHome).data;
|
|
130
|
+
sendJson(res, 200, tag({
|
|
131
|
+
ok: true,
|
|
132
|
+
channels: doc.channels,
|
|
133
|
+
pending: doc.pending,
|
|
134
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
135
|
+
}, ["im-host"]));
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=im-connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"im-connect.js","sourceRoot":"","sources":["../../src/dsh-compat/im-connect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAgCpD,MAAM,KAAK,GAAG,iBAAiB,CAC7B,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAChC;IACE,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;IACX,SAAS,EAAE;QACT,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,UAAU;QACvB,SAAS,EAAE,IAAI;QACf,GAAG,EAAE,EAAE;QACP,UAAU,EAAE,EAAE;KACf;CACF,CACF,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,OAAO,CACL,QAAQ,KAAK,qBAAqB;QAClC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;QAC3C,QAAQ,KAAK,+BAA+B;QAC5C,QAAQ,CAAC,UAAU,CAAC,gCAAgC,CA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AC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;IACrC,QAAQ,CACN,GAAG,EACH,GAAG,EACH,GAAG,CACD;QACE,EAAE,EAAE,IAAI;QACR,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,OAAO,EAAE,kBAAkB;KAC5B,EACD,CAAC,SAAS,CAAC,CACZ,CACF,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `/api/install` — web-all / market install entry → `runPluginMutate`.
|
|
3
|
+
*/
|
|
4
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
5
|
+
export interface InstallHttpOptions {
|
|
6
|
+
readonly xrkHome?: string;
|
|
7
|
+
readonly pluginsDir?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function isInstallPath(pathname: string): boolean;
|
|
10
|
+
export declare function handleInstallHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: InstallHttpOptions): Promise<boolean>;
|
|
11
|
+
//# sourceMappingURL=install.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/install.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAOjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAWD,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,CAwElB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
2
|
+
import { httpMethod, parseJsonBody } from "./underlying/http-kit.js";
|
|
3
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
4
|
+
import { runPluginMutate } from "../xrk/plugin-mutate.js";
|
|
5
|
+
import { readXrkPluginInventory } from "../xrk/plugin-services.js";
|
|
6
|
+
export function isInstallPath(pathname) {
|
|
7
|
+
return pathname === "/api/install" || pathname.startsWith("/api/install/");
|
|
8
|
+
}
|
|
9
|
+
function resolveSpec(body) {
|
|
10
|
+
for (const key of ["spec", "npm", "package", "name", "id", "pkg"]) {
|
|
11
|
+
const v = body[key];
|
|
12
|
+
if (typeof v === "string" && v.trim())
|
|
13
|
+
return v.trim();
|
|
14
|
+
}
|
|
15
|
+
if (typeof body.url === "string" && body.url.trim())
|
|
16
|
+
return body.url.trim();
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
export async function handleInstallHttp(req, res, pathname, options = {}) {
|
|
20
|
+
if (!isInstallPath(pathname))
|
|
21
|
+
return false;
|
|
22
|
+
const method = httpMethod(req);
|
|
23
|
+
if (method === "GET" || method === "HEAD") {
|
|
24
|
+
const inv = readXrkPluginInventory(options);
|
|
25
|
+
sendJson(res, 200, {
|
|
26
|
+
ok: true,
|
|
27
|
+
installed: inv.present,
|
|
28
|
+
pluginsDir: inv.pluginsDir ?? options.pluginsDir ?? null,
|
|
29
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
30
|
+
});
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
if (method !== "POST" && method !== "PUT") {
|
|
34
|
+
sendJson(res, 405, { ok: false, error: "method-not-allowed" });
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
const body = await parseJsonBody(req);
|
|
38
|
+
const actionRaw = typeof body.action === "string" ? body.action.toLowerCase() : "install";
|
|
39
|
+
const remove = actionRaw === "uninstall" ||
|
|
40
|
+
actionRaw === "remove" ||
|
|
41
|
+
pathname.endsWith("/uninstall");
|
|
42
|
+
const spec = resolveSpec(body);
|
|
43
|
+
const pluginsDir = options.pluginsDir?.trim() ||
|
|
44
|
+
readXrkPluginInventory(options).pluginsDir;
|
|
45
|
+
if (!spec) {
|
|
46
|
+
sendJson(res, 200, {
|
|
47
|
+
ok: false,
|
|
48
|
+
error: "missing plugin spec (name / npm / package / url)",
|
|
49
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
50
|
+
});
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
if (!pluginsDir) {
|
|
54
|
+
sendJson(res, 200, {
|
|
55
|
+
ok: false,
|
|
56
|
+
error: "pluginsDir unavailable",
|
|
57
|
+
cli: `xrkh plugin ${remove ? "remove" : "add"} ${spec}`,
|
|
58
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
59
|
+
});
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
const mutate = await runPluginMutate({
|
|
63
|
+
action: remove ? "remove" : "add",
|
|
64
|
+
spec,
|
|
65
|
+
pluginsDir,
|
|
66
|
+
});
|
|
67
|
+
sendJson(res, 200, {
|
|
68
|
+
ok: mutate.ok,
|
|
69
|
+
accepted: mutate.ok,
|
|
70
|
+
action: remove ? "uninstall" : "install",
|
|
71
|
+
spec,
|
|
72
|
+
restartRequired: mutate.ok,
|
|
73
|
+
...(mutate.ok
|
|
74
|
+
? { mutated: true }
|
|
75
|
+
: {
|
|
76
|
+
error: mutate.error ?? "plugin mutate failed",
|
|
77
|
+
...(mutate.stderr ? { stderr: mutate.stderr } : {}),
|
|
78
|
+
...(mutate.stdout ? { stdout: mutate.stdout } : {}),
|
|
79
|
+
cli: `xrkh plugin ${remove ? "remove" : "add"} ${spec}`,
|
|
80
|
+
}),
|
|
81
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
82
|
+
});
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=install.js.map
|