@saltpub/oar 0.121.1 → 0.122.0
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/README.md +51 -43
- package/assets/brands/NOTICE.md +7 -0
- package/assets/brands/cybion.svg +27 -0
- package/dist/capabilities.d.ts +12 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +7 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/community/cybion/index.d.ts.map +1 -1
- package/dist/community/cybion/index.js +10 -3
- package/dist/community/cybion/index.js.map +1 -1
- package/dist/community/cybion/refused-options.d.ts.map +1 -1
- package/dist/community/cybion/refused-options.js +2 -0
- package/dist/community/cybion/refused-options.js.map +1 -1
- package/dist/community/morph/index.js +1 -1
- package/dist/community/morph/index.js.map +1 -1
- package/dist/community/morph/projection.d.ts.map +1 -1
- package/dist/community/morph/projection.js +14 -2
- package/dist/community/morph/projection.js.map +1 -1
- package/dist/community/morph/session.d.ts.map +1 -1
- package/dist/community/morph/session.js +2 -0
- package/dist/community/morph/session.js.map +1 -1
- package/dist/community/morph/tracker.d.ts.map +1 -1
- package/dist/community/morph/tracker.js +18 -6
- package/dist/community/morph/tracker.js.map +1 -1
- package/dist/contracts/account-usage.d.ts +1 -1
- package/dist/contracts/account-usage.d.ts.map +1 -1
- package/dist/contracts/context-usage.d.ts +12 -0
- package/dist/contracts/context-usage.d.ts.map +1 -1
- package/dist/contracts/credentials.d.ts +61 -0
- package/dist/contracts/credentials.d.ts.map +1 -0
- package/dist/contracts/credentials.js +2 -0
- package/dist/contracts/credentials.js.map +1 -0
- package/dist/contracts/failure.d.ts +4 -1
- package/dist/contracts/failure.d.ts.map +1 -1
- package/dist/contracts/graph.d.ts +1 -1
- package/dist/contracts/graph.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +7 -3
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/installation.d.ts +27 -4
- package/dist/contracts/installation.d.ts.map +1 -1
- package/dist/contracts/login.d.ts +3 -1
- package/dist/contracts/login.d.ts.map +1 -1
- package/dist/contracts/model-request.d.ts +14 -0
- package/dist/contracts/model-request.d.ts.map +1 -0
- package/dist/contracts/model-request.js +2 -0
- package/dist/contracts/model-request.js.map +1 -0
- package/dist/contracts/orientation.d.ts +2 -1
- package/dist/contracts/orientation.d.ts.map +1 -1
- package/dist/contracts/records.d.ts +21 -12
- package/dist/contracts/records.d.ts.map +1 -1
- package/dist/contracts/runtime.d.ts +39 -52
- package/dist/contracts/runtime.d.ts.map +1 -1
- package/dist/contracts/runtime.js.map +1 -1
- package/dist/contracts/session-options.d.ts +46 -48
- package/dist/contracts/session-options.d.ts.map +1 -1
- package/dist/contracts/session.d.ts +9 -3
- package/dist/contracts/session.d.ts.map +1 -1
- package/dist/contracts/tasks.d.ts +4 -0
- package/dist/contracts/tasks.d.ts.map +1 -1
- package/dist/contracts/tool-output.d.ts +6 -0
- package/dist/contracts/tool-output.d.ts.map +1 -1
- package/dist/forms/fields.d.ts +6 -3
- package/dist/forms/fields.d.ts.map +1 -1
- package/dist/forms/fields.js +44 -5
- package/dist/forms/fields.js.map +1 -1
- package/dist/forms/map.d.ts.map +1 -1
- package/dist/forms/map.js +18 -14
- package/dist/forms/map.js.map +1 -1
- package/dist/forms/types.d.ts +1 -1
- package/dist/forms/types.d.ts.map +1 -1
- package/dist/forms/validate.d.ts.map +1 -1
- package/dist/forms/validate.js +8 -15
- package/dist/forms/validate.js.map +1 -1
- package/dist/mcp/serve-tools.js +1 -1
- package/dist/mcp/serve-tools.js.map +1 -1
- package/dist/observe/agent-status.js +1 -0
- package/dist/observe/agent-status.js.map +1 -1
- package/dist/observe/conversation.d.ts.map +1 -1
- package/dist/observe/conversation.js +2 -8
- package/dist/observe/conversation.js.map +1 -1
- package/dist/observe/cursor.d.ts +6 -0
- package/dist/observe/cursor.d.ts.map +1 -0
- package/dist/observe/cursor.js +19 -0
- package/dist/observe/cursor.js.map +1 -0
- package/dist/observe/display-text.d.ts.map +1 -1
- package/dist/observe/display-text.js +1 -0
- package/dist/observe/display-text.js.map +1 -1
- package/dist/observe/events.d.ts +1 -1
- package/dist/observe/events.d.ts.map +1 -1
- package/dist/observe/events.js +5 -3
- package/dist/observe/events.js.map +1 -1
- package/dist/observe/failure-advice.d.ts.map +1 -1
- package/dist/observe/failure-advice.js +1 -0
- package/dist/observe/failure-advice.js.map +1 -1
- package/dist/observe/graph.d.ts +2 -0
- package/dist/observe/graph.d.ts.map +1 -1
- package/dist/observe/graph.js +17 -1
- package/dist/observe/graph.js.map +1 -1
- package/dist/observe/index.d.ts +1 -0
- package/dist/observe/index.d.ts.map +1 -1
- package/dist/observe/index.js +1 -0
- package/dist/observe/index.js.map +1 -1
- package/dist/observe/mcp-startup.d.ts +7 -0
- package/dist/observe/mcp-startup.d.ts.map +1 -0
- package/dist/observe/mcp-startup.js +16 -0
- package/dist/observe/mcp-startup.js.map +1 -0
- package/dist/observe/session-view-events.d.ts.map +1 -1
- package/dist/observe/session-view-events.js +6 -6
- package/dist/observe/session-view-events.js.map +1 -1
- package/dist/observe/session-view-fold.d.ts +2 -0
- package/dist/observe/session-view-fold.d.ts.map +1 -1
- package/dist/observe/session-view-fold.js +4 -0
- package/dist/observe/session-view-fold.js.map +1 -1
- package/dist/observe/session-view-root.d.ts +8 -0
- package/dist/observe/session-view-root.d.ts.map +1 -0
- package/dist/observe/session-view-root.js +76 -0
- package/dist/observe/session-view-root.js.map +1 -0
- package/dist/observe/session-view-tools.d.ts +1 -1
- package/dist/observe/session-view-tools.d.ts.map +1 -1
- package/dist/observe/session-view-tools.js +1 -0
- package/dist/observe/session-view-tools.js.map +1 -1
- package/dist/observe/session-view.d.ts +10 -8
- package/dist/observe/session-view.d.ts.map +1 -1
- package/dist/observe/session-view.js +31 -31
- package/dist/observe/session-view.js.map +1 -1
- package/dist/observe/tasks.d.ts +3 -0
- package/dist/observe/tasks.d.ts.map +1 -1
- package/dist/observe/tasks.js +1 -1
- package/dist/observe/tasks.js.map +1 -1
- package/dist/observe/tool-activity.d.ts +2 -2
- package/dist/observe/tool-activity.d.ts.map +1 -1
- package/dist/observe/tool-activity.js +9 -2
- package/dist/observe/tool-activity.js.map +1 -1
- package/dist/observe/usage-totals.d.ts +0 -2
- package/dist/observe/usage-totals.d.ts.map +1 -1
- package/dist/observe/usage-totals.js +1 -15
- package/dist/observe/usage-totals.js.map +1 -1
- package/dist/observe/usage.js +2 -2
- package/dist/observe/usage.js.map +1 -1
- package/dist/runtimes/antigravity/account-usage.d.ts +5 -2
- package/dist/runtimes/antigravity/account-usage.d.ts.map +1 -1
- package/dist/runtimes/antigravity/account-usage.js +13 -9
- package/dist/runtimes/antigravity/account-usage.js.map +1 -1
- package/dist/runtimes/antigravity/account.d.ts +37 -0
- package/dist/runtimes/antigravity/account.d.ts.map +1 -0
- package/dist/runtimes/antigravity/account.js +119 -0
- package/dist/runtimes/antigravity/account.js.map +1 -0
- package/dist/runtimes/antigravity/auth-status.d.ts +9 -0
- package/dist/runtimes/antigravity/auth-status.d.ts.map +1 -0
- package/dist/runtimes/antigravity/auth-status.js +54 -0
- package/dist/runtimes/antigravity/auth-status.js.map +1 -0
- package/dist/runtimes/antigravity/auth.d.ts +2 -6
- package/dist/runtimes/antigravity/auth.d.ts.map +1 -1
- package/dist/runtimes/antigravity/auth.js +10 -50
- package/dist/runtimes/antigravity/auth.js.map +1 -1
- package/dist/runtimes/antigravity/index.d.ts +40 -3
- package/dist/runtimes/antigravity/index.d.ts.map +1 -1
- package/dist/runtimes/antigravity/index.js +19 -4
- package/dist/runtimes/antigravity/index.js.map +1 -1
- package/dist/runtimes/antigravity/installation.d.ts +6 -3
- package/dist/runtimes/antigravity/installation.d.ts.map +1 -1
- package/dist/runtimes/antigravity/installation.js +25 -30
- package/dist/runtimes/antigravity/installation.js.map +1 -1
- package/dist/runtimes/antigravity/logout.d.ts.map +1 -1
- package/dist/runtimes/antigravity/logout.js +2 -0
- package/dist/runtimes/antigravity/logout.js.map +1 -1
- package/dist/runtimes/antigravity/options.d.ts.map +1 -1
- package/dist/runtimes/antigravity/options.js +3 -0
- package/dist/runtimes/antigravity/options.js.map +1 -1
- package/dist/runtimes/antigravity/quota.d.ts +6 -1
- package/dist/runtimes/antigravity/quota.d.ts.map +1 -1
- package/dist/runtimes/antigravity/quota.js +47 -13
- package/dist/runtimes/antigravity/quota.js.map +1 -1
- package/dist/runtimes/antigravity/skill-files.d.ts.map +1 -1
- package/dist/runtimes/antigravity/skill-files.js +2 -1
- package/dist/runtimes/antigravity/skill-files.js.map +1 -1
- package/dist/runtimes/antigravity/token-email.d.ts +37 -0
- package/dist/runtimes/antigravity/token-email.d.ts.map +1 -0
- package/dist/runtimes/antigravity/token-email.js +155 -0
- package/dist/runtimes/antigravity/token-email.js.map +1 -0
- package/dist/runtimes/claude/account-usage.d.ts.map +1 -1
- package/dist/runtimes/claude/account-usage.js +30 -8
- package/dist/runtimes/claude/account-usage.js.map +1 -1
- package/dist/runtimes/claude/auth-status.d.ts.map +1 -1
- package/dist/runtimes/claude/auth-status.js +25 -4
- package/dist/runtimes/claude/auth-status.js.map +1 -1
- package/dist/runtimes/claude/context-usage.d.ts +8 -4
- package/dist/runtimes/claude/context-usage.d.ts.map +1 -1
- package/dist/runtimes/claude/context-usage.js +24 -4
- package/dist/runtimes/claude/context-usage.js.map +1 -1
- package/dist/runtimes/claude/credentials.d.ts +4 -0
- package/dist/runtimes/claude/credentials.d.ts.map +1 -0
- package/dist/runtimes/claude/credentials.js +79 -0
- package/dist/runtimes/claude/credentials.js.map +1 -0
- package/dist/runtimes/claude/failure.d.ts +4 -0
- package/dist/runtimes/claude/failure.d.ts.map +1 -1
- package/dist/runtimes/claude/failure.js +33 -18
- package/dist/runtimes/claude/failure.js.map +1 -1
- package/dist/runtimes/claude/index.d.ts +16 -3
- package/dist/runtimes/claude/index.d.ts.map +1 -1
- package/dist/runtimes/claude/index.js +13 -2
- package/dist/runtimes/claude/index.js.map +1 -1
- package/dist/runtimes/claude/installation.d.ts +1 -0
- package/dist/runtimes/claude/installation.d.ts.map +1 -1
- package/dist/runtimes/claude/installation.js +2 -1
- package/dist/runtimes/claude/installation.js.map +1 -1
- package/dist/runtimes/claude/inventory.js +1 -1
- package/dist/runtimes/claude/inventory.js.map +1 -1
- package/dist/runtimes/claude/last-account.d.ts +21 -0
- package/dist/runtimes/claude/last-account.d.ts.map +1 -1
- package/dist/runtimes/claude/last-account.js +58 -6
- package/dist/runtimes/claude/last-account.js.map +1 -1
- package/dist/runtimes/claude/launch-args.d.ts +3 -0
- package/dist/runtimes/claude/launch-args.d.ts.map +1 -1
- package/dist/runtimes/claude/launch-args.js +26 -8
- package/dist/runtimes/claude/launch-args.js.map +1 -1
- package/dist/runtimes/claude/launch.d.ts +1 -1
- package/dist/runtimes/claude/launch.d.ts.map +1 -1
- package/dist/runtimes/claude/launch.js +9 -6
- package/dist/runtimes/claude/launch.js.map +1 -1
- package/dist/runtimes/claude/list-models.js +1 -1
- package/dist/runtimes/claude/list-models.js.map +1 -1
- package/dist/runtimes/claude/login-url.d.ts +3 -0
- package/dist/runtimes/claude/login-url.d.ts.map +1 -0
- package/dist/runtimes/claude/login-url.js +26 -0
- package/dist/runtimes/claude/login-url.js.map +1 -0
- package/dist/runtimes/claude/login.d.ts.map +1 -1
- package/dist/runtimes/claude/login.js +17 -10
- package/dist/runtimes/claude/login.js.map +1 -1
- package/dist/runtimes/claude/mcp-config.d.ts +2 -6
- package/dist/runtimes/claude/mcp-config.d.ts.map +1 -1
- package/dist/runtimes/claude/mcp-config.js +7 -117
- package/dist/runtimes/claude/mcp-config.js.map +1 -1
- package/dist/runtimes/claude/model-request-files.d.ts +19 -0
- package/dist/runtimes/claude/model-request-files.d.ts.map +1 -0
- package/dist/runtimes/claude/model-request-files.js +104 -0
- package/dist/runtimes/claude/model-request-files.js.map +1 -0
- package/dist/runtimes/claude/model-requests.d.ts +16 -0
- package/dist/runtimes/claude/model-requests.d.ts.map +1 -0
- package/dist/runtimes/claude/model-requests.js +190 -0
- package/dist/runtimes/claude/model-requests.js.map +1 -0
- package/dist/runtimes/claude/open-settings.d.ts +2 -1
- package/dist/runtimes/claude/open-settings.d.ts.map +1 -1
- package/dist/runtimes/claude/open-settings.js +33 -9
- package/dist/runtimes/claude/open-settings.js.map +1 -1
- package/dist/runtimes/claude/options.d.ts +5 -0
- package/dist/runtimes/claude/options.d.ts.map +1 -1
- package/dist/runtimes/claude/options.js +25 -0
- package/dist/runtimes/claude/options.js.map +1 -1
- package/dist/runtimes/claude/projection.d.ts +2 -1
- package/dist/runtimes/claude/projection.d.ts.map +1 -1
- package/dist/runtimes/claude/projection.js +44 -16
- package/dist/runtimes/claude/projection.js.map +1 -1
- package/dist/runtimes/claude/session.d.ts.map +1 -1
- package/dist/runtimes/claude/session.js +30 -7
- package/dist/runtimes/claude/session.js.map +1 -1
- package/dist/runtimes/claude/side-question.js +1 -1
- package/dist/runtimes/claude/side-question.js.map +1 -1
- package/dist/runtimes/claude/update.d.ts +17 -9
- package/dist/runtimes/claude/update.d.ts.map +1 -1
- package/dist/runtimes/claude/update.js +154 -29
- package/dist/runtimes/claude/update.js.map +1 -1
- package/dist/runtimes/claude/user-configuration.d.ts.map +1 -1
- package/dist/runtimes/claude/user-configuration.js +13 -6
- package/dist/runtimes/claude/user-configuration.js.map +1 -1
- package/dist/runtimes/codebuddy/failure.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/failure.js +18 -2
- package/dist/runtimes/codebuddy/failure.js.map +1 -1
- package/dist/runtimes/codebuddy/index.d.ts +60 -1
- package/dist/runtimes/codebuddy/index.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/index.js +25 -1
- package/dist/runtimes/codebuddy/index.js.map +1 -1
- package/dist/runtimes/codebuddy/installation.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/installation.js +5 -4
- package/dist/runtimes/codebuddy/installation.js.map +1 -1
- package/dist/runtimes/codebuddy/options.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/options.js +11 -9
- package/dist/runtimes/codebuddy/options.js.map +1 -1
- package/dist/runtimes/codex/account-id.d.ts +14 -0
- package/dist/runtimes/codex/account-id.d.ts.map +1 -0
- package/dist/runtimes/codex/account-id.js +173 -0
- package/dist/runtimes/codex/account-id.js.map +1 -0
- package/dist/runtimes/codex/account-request.d.ts +1 -0
- package/dist/runtimes/codex/account-request.d.ts.map +1 -1
- package/dist/runtimes/codex/account-request.js +45 -16
- package/dist/runtimes/codex/account-request.js.map +1 -1
- package/dist/runtimes/codex/account-usage.d.ts.map +1 -1
- package/dist/runtimes/codex/account-usage.js +15 -13
- package/dist/runtimes/codex/account-usage.js.map +1 -1
- package/dist/runtimes/codex/app-server-client.d.ts +5 -1
- package/dist/runtimes/codex/app-server-client.d.ts.map +1 -1
- package/dist/runtimes/codex/app-server-client.js +7 -7
- package/dist/runtimes/codex/app-server-client.js.map +1 -1
- package/dist/runtimes/codex/failure.d.ts.map +1 -1
- package/dist/runtimes/codex/failure.js +14 -16
- package/dist/runtimes/codex/failure.js.map +1 -1
- package/dist/runtimes/codex/home-initialization.d.ts +1 -0
- package/dist/runtimes/codex/home-initialization.d.ts.map +1 -1
- package/dist/runtimes/codex/home-initialization.js +49 -58
- package/dist/runtimes/codex/home-initialization.js.map +1 -1
- package/dist/runtimes/codex/index.d.ts +64 -1
- package/dist/runtimes/codex/index.d.ts.map +1 -1
- package/dist/runtimes/codex/index.js +27 -1
- package/dist/runtimes/codex/index.js.map +1 -1
- package/dist/runtimes/codex/installation.d.ts +1 -0
- package/dist/runtimes/codex/installation.d.ts.map +1 -1
- package/dist/runtimes/codex/installation.js +9 -1
- package/dist/runtimes/codex/installation.js.map +1 -1
- package/dist/runtimes/codex/inventory.js +1 -1
- package/dist/runtimes/codex/inventory.js.map +1 -1
- package/dist/runtimes/codex/item-detail.d.ts +4 -0
- package/dist/runtimes/codex/item-detail.d.ts.map +1 -1
- package/dist/runtimes/codex/item-detail.js +39 -0
- package/dist/runtimes/codex/item-detail.js.map +1 -1
- package/dist/runtimes/codex/limit-reset.d.ts.map +1 -1
- package/dist/runtimes/codex/limit-reset.js +3 -2
- package/dist/runtimes/codex/limit-reset.js.map +1 -1
- package/dist/runtimes/codex/list-models.js +1 -1
- package/dist/runtimes/codex/list-models.js.map +1 -1
- package/dist/runtimes/codex/login.d.ts.map +1 -1
- package/dist/runtimes/codex/login.js +24 -10
- package/dist/runtimes/codex/login.js.map +1 -1
- package/dist/runtimes/codex/open-config.d.ts +6 -0
- package/dist/runtimes/codex/open-config.d.ts.map +1 -0
- package/dist/runtimes/codex/open-config.js +28 -0
- package/dist/runtimes/codex/open-config.js.map +1 -0
- package/dist/runtimes/codex/open.d.ts.map +1 -1
- package/dist/runtimes/codex/open.js +3 -2
- package/dist/runtimes/codex/open.js.map +1 -1
- package/dist/runtimes/codex/options.d.ts.map +1 -1
- package/dist/runtimes/codex/options.js +3 -0
- package/dist/runtimes/codex/options.js.map +1 -1
- package/dist/runtimes/codex/projection.d.ts.map +1 -1
- package/dist/runtimes/codex/projection.js +44 -40
- package/dist/runtimes/codex/projection.js.map +1 -1
- package/dist/runtimes/codex/refusal.d.ts +3 -3
- package/dist/runtimes/codex/refusal.js +3 -3
- package/dist/runtimes/codex/session.d.ts.map +1 -1
- package/dist/runtimes/codex/session.js +13 -6
- package/dist/runtimes/codex/session.js.map +1 -1
- package/dist/runtimes/codex/tasks.d.ts.map +1 -1
- package/dist/runtimes/codex/tasks.js +1 -0
- package/dist/runtimes/codex/tasks.js.map +1 -1
- package/dist/runtimes/codex/tool-denials.d.ts +0 -3
- package/dist/runtimes/codex/tool-denials.d.ts.map +1 -1
- package/dist/runtimes/codex/tool-denials.js +0 -8
- package/dist/runtimes/codex/tool-denials.js.map +1 -1
- package/dist/runtimes/cursor/access.d.ts +4 -3
- package/dist/runtimes/cursor/access.d.ts.map +1 -1
- package/dist/runtimes/cursor/access.js +12 -8
- package/dist/runtimes/cursor/access.js.map +1 -1
- package/dist/runtimes/cursor/auth-status.js +1 -1
- package/dist/runtimes/cursor/auth-status.js.map +1 -1
- package/dist/runtimes/cursor/failure.d.ts.map +1 -1
- package/dist/runtimes/cursor/failure.js +4 -6
- package/dist/runtimes/cursor/failure.js.map +1 -1
- package/dist/runtimes/cursor/index.d.ts.map +1 -1
- package/dist/runtimes/cursor/index.js +18 -5
- package/dist/runtimes/cursor/index.js.map +1 -1
- package/dist/runtimes/cursor/installation.d.ts +13 -9
- package/dist/runtimes/cursor/installation.d.ts.map +1 -1
- package/dist/runtimes/cursor/installation.js +29 -14
- package/dist/runtimes/cursor/installation.js.map +1 -1
- package/dist/runtimes/cursor/list-models.js +1 -1
- package/dist/runtimes/cursor/list-models.js.map +1 -1
- package/dist/runtimes/cursor/login.js +1 -1
- package/dist/runtimes/cursor/login.js.map +1 -1
- package/dist/runtimes/cursor/logout.js +1 -1
- package/dist/runtimes/cursor/logout.js.map +1 -1
- package/dist/runtimes/cursor/model.d.ts.map +1 -1
- package/dist/runtimes/cursor/model.js +7 -1
- package/dist/runtimes/cursor/model.js.map +1 -1
- package/dist/runtimes/cursor/run.d.ts +2 -0
- package/dist/runtimes/cursor/run.d.ts.map +1 -1
- package/dist/runtimes/cursor/run.js +31 -0
- package/dist/runtimes/cursor/run.js.map +1 -1
- package/dist/runtimes/cursor/session.d.ts +3 -1
- package/dist/runtimes/cursor/session.d.ts.map +1 -1
- package/dist/runtimes/cursor/session.js +29 -18
- package/dist/runtimes/cursor/session.js.map +1 -1
- package/dist/runtimes/cursor/subprocess/channel.d.ts +1 -1
- package/dist/runtimes/cursor/subprocess/channel.d.ts.map +1 -1
- package/dist/runtimes/cursor/subprocess/channel.js +7 -7
- package/dist/runtimes/cursor/subprocess/channel.js.map +1 -1
- package/dist/runtimes/devin/index.d.ts +19 -0
- package/dist/runtimes/devin/index.d.ts.map +1 -1
- package/dist/runtimes/devin/index.js +10 -1
- package/dist/runtimes/devin/index.js.map +1 -1
- package/dist/runtimes/devin/installation.d.ts.map +1 -1
- package/dist/runtimes/devin/installation.js +7 -2
- package/dist/runtimes/devin/installation.js.map +1 -1
- package/dist/runtimes/devin/options.d.ts.map +1 -1
- package/dist/runtimes/devin/options.js +4 -0
- package/dist/runtimes/devin/options.js.map +1 -1
- package/dist/runtimes/devin/session.d.ts.map +1 -1
- package/dist/runtimes/devin/session.js +2 -0
- package/dist/runtimes/devin/session.js.map +1 -1
- package/dist/runtimes/dsh/bridge-controls.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge-controls.js +21 -0
- package/dist/runtimes/dsh/bridge-controls.js.map +1 -1
- package/dist/runtimes/dsh/bridge-goal.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge-goal.js +9 -5
- package/dist/runtimes/dsh/bridge-goal.js.map +1 -1
- package/dist/runtimes/dsh/bridge-input.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge-input.js +29 -3
- package/dist/runtimes/dsh/bridge-input.js.map +1 -1
- package/dist/runtimes/dsh/bridge.d.ts +1 -1
- package/dist/runtimes/dsh/bridge.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge.js +43 -8
- package/dist/runtimes/dsh/bridge.js.map +1 -1
- package/dist/runtimes/dsh/control.d.ts +3 -1
- package/dist/runtimes/dsh/control.d.ts.map +1 -1
- package/dist/runtimes/dsh/control.js +20 -6
- package/dist/runtimes/dsh/control.js.map +1 -1
- package/dist/runtimes/dsh/index.d.ts +36 -1
- package/dist/runtimes/dsh/index.d.ts.map +1 -1
- package/dist/runtimes/dsh/index.js +19 -3
- package/dist/runtimes/dsh/index.js.map +1 -1
- package/dist/runtimes/dsh/installation.d.ts +2 -3
- package/dist/runtimes/dsh/installation.d.ts.map +1 -1
- package/dist/runtimes/dsh/installation.js +11 -11
- package/dist/runtimes/dsh/installation.js.map +1 -1
- package/dist/runtimes/dsh/launch.d.ts +9 -1
- package/dist/runtimes/dsh/launch.d.ts.map +1 -1
- package/dist/runtimes/dsh/launch.js +22 -4
- package/dist/runtimes/dsh/launch.js.map +1 -1
- package/dist/runtimes/dsh/list-models.d.ts +3 -1
- package/dist/runtimes/dsh/list-models.d.ts.map +1 -1
- package/dist/runtimes/dsh/list-models.js +38 -11
- package/dist/runtimes/dsh/list-models.js.map +1 -1
- package/dist/runtimes/dsh/options.d.ts +6 -0
- package/dist/runtimes/dsh/options.d.ts.map +1 -1
- package/dist/runtimes/dsh/options.js +17 -1
- package/dist/runtimes/dsh/options.js.map +1 -1
- package/dist/runtimes/dsh/profile-startup.d.ts +12 -0
- package/dist/runtimes/dsh/profile-startup.d.ts.map +1 -0
- package/dist/runtimes/dsh/profile-startup.js +64 -0
- package/dist/runtimes/dsh/profile-startup.js.map +1 -0
- package/dist/runtimes/dsh/projection.d.ts +2 -0
- package/dist/runtimes/dsh/projection.d.ts.map +1 -1
- package/dist/runtimes/dsh/projection.js +35 -22
- package/dist/runtimes/dsh/projection.js.map +1 -1
- package/dist/runtimes/dsh/session.d.ts.map +1 -1
- package/dist/runtimes/dsh/session.js +76 -15
- package/dist/runtimes/dsh/session.js.map +1 -1
- package/dist/runtimes/dsh/skills.d.ts.map +1 -1
- package/dist/runtimes/dsh/skills.js +7 -5
- package/dist/runtimes/dsh/skills.js.map +1 -1
- package/dist/runtimes/factory/account-credential.d.ts +2 -1
- package/dist/runtimes/factory/account-credential.d.ts.map +1 -1
- package/dist/runtimes/factory/account-credential.js +5 -2
- package/dist/runtimes/factory/account-credential.js.map +1 -1
- package/dist/runtimes/factory/account-usage.d.ts.map +1 -1
- package/dist/runtimes/factory/account-usage.js +6 -3
- package/dist/runtimes/factory/account-usage.js.map +1 -1
- package/dist/runtimes/factory/account.d.ts.map +1 -1
- package/dist/runtimes/factory/account.js +4 -3
- package/dist/runtimes/factory/account.js.map +1 -1
- package/dist/runtimes/factory/client.d.ts.map +1 -1
- package/dist/runtimes/factory/client.js +3 -8
- package/dist/runtimes/factory/client.js.map +1 -1
- package/dist/runtimes/factory/compaction.d.ts +1 -1
- package/dist/runtimes/factory/compaction.d.ts.map +1 -1
- package/dist/runtimes/factory/compaction.js +62 -48
- package/dist/runtimes/factory/compaction.js.map +1 -1
- package/dist/runtimes/factory/context-usage.d.ts +15 -0
- package/dist/runtimes/factory/context-usage.d.ts.map +1 -0
- package/dist/runtimes/factory/context-usage.js +75 -0
- package/dist/runtimes/factory/context-usage.js.map +1 -0
- package/dist/runtimes/factory/index.d.ts +60 -0
- package/dist/runtimes/factory/index.d.ts.map +1 -1
- package/dist/runtimes/factory/index.js +21 -1
- package/dist/runtimes/factory/index.js.map +1 -1
- package/dist/runtimes/factory/installation.d.ts +1 -1
- package/dist/runtimes/factory/installation.d.ts.map +1 -1
- package/dist/runtimes/factory/installation.js +2 -2
- package/dist/runtimes/factory/installation.js.map +1 -1
- package/dist/runtimes/factory/options.d.ts.map +1 -1
- package/dist/runtimes/factory/options.js +6 -8
- package/dist/runtimes/factory/options.js.map +1 -1
- package/dist/runtimes/factory/projection.d.ts.map +1 -1
- package/dist/runtimes/factory/projection.js +31 -11
- package/dist/runtimes/factory/projection.js.map +1 -1
- package/dist/runtimes/factory/session-state.d.ts +9 -0
- package/dist/runtimes/factory/session-state.d.ts.map +1 -1
- package/dist/runtimes/factory/session-state.js +27 -0
- package/dist/runtimes/factory/session-state.js.map +1 -1
- package/dist/runtimes/factory/session.d.ts.map +1 -1
- package/dist/runtimes/factory/session.js +93 -46
- package/dist/runtimes/factory/session.js.map +1 -1
- package/dist/runtimes/grok/account-usage.d.ts.map +1 -1
- package/dist/runtimes/grok/account-usage.js +8 -6
- package/dist/runtimes/grok/account-usage.js.map +1 -1
- package/dist/runtimes/grok/failure.d.ts.map +1 -1
- package/dist/runtimes/grok/failure.js +12 -8
- package/dist/runtimes/grok/failure.js.map +1 -1
- package/dist/runtimes/grok/index.d.ts +32 -4
- package/dist/runtimes/grok/index.d.ts.map +1 -1
- package/dist/runtimes/grok/index.js +15 -2
- package/dist/runtimes/grok/index.js.map +1 -1
- package/dist/runtimes/grok/installation.d.ts +1 -0
- package/dist/runtimes/grok/installation.d.ts.map +1 -1
- package/dist/runtimes/grok/installation.js +8 -1
- package/dist/runtimes/grok/installation.js.map +1 -1
- package/dist/runtimes/grok/mcp-startup.d.ts +5 -0
- package/dist/runtimes/grok/mcp-startup.d.ts.map +1 -0
- package/dist/runtimes/grok/mcp-startup.js +80 -0
- package/dist/runtimes/grok/mcp-startup.js.map +1 -0
- package/dist/runtimes/grok/options.d.ts +3 -1
- package/dist/runtimes/grok/options.d.ts.map +1 -1
- package/dist/runtimes/grok/options.js +12 -0
- package/dist/runtimes/grok/options.js.map +1 -1
- package/dist/runtimes/grok/session.d.ts.map +1 -1
- package/dist/runtimes/grok/session.js +2 -0
- package/dist/runtimes/grok/session.js.map +1 -1
- package/dist/runtimes/grok/tasks.d.ts.map +1 -1
- package/dist/runtimes/grok/tasks.js +3 -1
- package/dist/runtimes/grok/tasks.js.map +1 -1
- package/dist/runtimes/kimi/account-usage.d.ts.map +1 -1
- package/dist/runtimes/kimi/account-usage.js +5 -3
- package/dist/runtimes/kimi/account-usage.js.map +1 -1
- package/dist/runtimes/kimi/index.d.ts +56 -7
- package/dist/runtimes/kimi/index.d.ts.map +1 -1
- package/dist/runtimes/kimi/index.js +21 -3
- package/dist/runtimes/kimi/index.js.map +1 -1
- package/dist/runtimes/kimi/installation.d.ts.map +1 -1
- package/dist/runtimes/kimi/installation.js +5 -1
- package/dist/runtimes/kimi/installation.js.map +1 -1
- package/dist/runtimes/kimi/kap-boot.d.ts +16 -0
- package/dist/runtimes/kimi/kap-boot.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-boot.js +28 -0
- package/dist/runtimes/kimi/kap-boot.js.map +1 -0
- package/dist/runtimes/kimi/kap-compaction.d.ts +12 -0
- package/dist/runtimes/kimi/kap-compaction.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-compaction.js +63 -0
- package/dist/runtimes/kimi/kap-compaction.js.map +1 -0
- package/dist/runtimes/kimi/kap-controls.d.ts +48 -0
- package/dist/runtimes/kimi/kap-controls.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-controls.js +263 -0
- package/dist/runtimes/kimi/kap-controls.js.map +1 -0
- package/dist/runtimes/kimi/kap-dispatch.d.ts +10 -0
- package/dist/runtimes/kimi/kap-dispatch.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-dispatch.js +146 -0
- package/dist/runtimes/kimi/kap-dispatch.js.map +1 -0
- package/dist/runtimes/kimi/kap-errors.d.ts +24 -0
- package/dist/runtimes/kimi/kap-errors.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-errors.js +173 -0
- package/dist/runtimes/kimi/kap-errors.js.map +1 -0
- package/dist/runtimes/kimi/kap-failures.d.ts +12 -0
- package/dist/runtimes/kimi/kap-failures.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-failures.js +177 -0
- package/dist/runtimes/kimi/kap-failures.js.map +1 -0
- package/dist/runtimes/kimi/kap-items.d.ts +10 -0
- package/dist/runtimes/kimi/kap-items.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-items.js +201 -0
- package/dist/runtimes/kimi/kap-items.js.map +1 -0
- package/dist/runtimes/kimi/kap-negotiate.d.ts +9 -0
- package/dist/runtimes/kimi/kap-negotiate.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-negotiate.js +83 -0
- package/dist/runtimes/kimi/kap-negotiate.js.map +1 -0
- package/dist/runtimes/kimi/kap-open.d.ts +25 -0
- package/dist/runtimes/kimi/kap-open.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-open.js +130 -0
- package/dist/runtimes/kimi/kap-open.js.map +1 -0
- package/dist/runtimes/kimi/kap-projection-state.d.ts +68 -0
- package/dist/runtimes/kimi/kap-projection-state.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-projection-state.js +61 -0
- package/dist/runtimes/kimi/kap-projection-state.js.map +1 -0
- package/dist/runtimes/kimi/kap-projection.d.ts +6 -0
- package/dist/runtimes/kimi/kap-projection.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-projection.js +223 -0
- package/dist/runtimes/kimi/kap-projection.js.map +1 -0
- package/dist/runtimes/kimi/kap-protocol.d.ts +46 -0
- package/dist/runtimes/kimi/kap-protocol.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-protocol.js +220 -0
- package/dist/runtimes/kimi/kap-protocol.js.map +1 -0
- package/dist/runtimes/kimi/kap-session.d.ts +11 -0
- package/dist/runtimes/kimi/kap-session.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-session.js +116 -0
- package/dist/runtimes/kimi/kap-session.js.map +1 -0
- package/dist/runtimes/kimi/kap-socket.d.ts +11 -0
- package/dist/runtimes/kimi/kap-socket.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-socket.js +147 -0
- package/dist/runtimes/kimi/kap-socket.js.map +1 -0
- package/dist/runtimes/kimi/kap-turns.d.ts +12 -0
- package/dist/runtimes/kimi/kap-turns.d.ts.map +1 -0
- package/dist/runtimes/kimi/kap-turns.js +168 -0
- package/dist/runtimes/kimi/kap-turns.js.map +1 -0
- package/dist/runtimes/kimi/native-usage.d.ts.map +1 -1
- package/dist/runtimes/kimi/native-usage.js +4 -3
- package/dist/runtimes/kimi/native-usage.js.map +1 -1
- package/dist/runtimes/kimi/options.d.ts +5 -1
- package/dist/runtimes/kimi/options.d.ts.map +1 -1
- package/dist/runtimes/kimi/options.js +45 -2
- package/dist/runtimes/kimi/options.js.map +1 -1
- package/dist/runtimes/kimi/session.d.ts.map +1 -1
- package/dist/runtimes/kimi/session.js +15 -3
- package/dist/runtimes/kimi/session.js.map +1 -1
- package/dist/runtimes/kimi/version.d.ts +5 -0
- package/dist/runtimes/kimi/version.d.ts.map +1 -0
- package/dist/runtimes/kimi/version.js +12 -0
- package/dist/runtimes/kimi/version.js.map +1 -0
- package/dist/runtimes/kimi/web-startup.d.ts.map +1 -1
- package/dist/runtimes/kimi/web-startup.js +4 -18
- package/dist/runtimes/kimi/web-startup.js.map +1 -1
- package/dist/runtimes/omp/index.d.ts +4 -0
- package/dist/runtimes/omp/index.d.ts.map +1 -1
- package/dist/runtimes/omp/index.js +1 -0
- package/dist/runtimes/omp/index.js.map +1 -1
- package/dist/runtimes/omp/installation.d.ts.map +1 -1
- package/dist/runtimes/omp/installation.js +3 -0
- package/dist/runtimes/omp/installation.js.map +1 -1
- package/dist/runtimes/opencode/failure.js +6 -6
- package/dist/runtimes/opencode/failure.js.map +1 -1
- package/dist/runtimes/opencode/index.d.ts +120 -5
- package/dist/runtimes/opencode/index.d.ts.map +1 -1
- package/dist/runtimes/opencode/index.js +34 -4
- package/dist/runtimes/opencode/index.js.map +1 -1
- package/dist/runtimes/opencode/inline-prompt-config.d.ts +5 -0
- package/dist/runtimes/opencode/inline-prompt-config.d.ts.map +1 -0
- package/dist/runtimes/opencode/inline-prompt-config.js +82 -0
- package/dist/runtimes/opencode/inline-prompt-config.js.map +1 -0
- package/dist/runtimes/opencode/installation.d.ts +8 -0
- package/dist/runtimes/opencode/installation.d.ts.map +1 -1
- package/dist/runtimes/opencode/installation.js +26 -1
- package/dist/runtimes/opencode/installation.js.map +1 -1
- package/dist/runtimes/opencode/options.d.ts +5 -1
- package/dist/runtimes/opencode/options.d.ts.map +1 -1
- package/dist/runtimes/opencode/options.js +45 -1
- package/dist/runtimes/opencode/options.js.map +1 -1
- package/dist/runtimes/opencode/prompt-config-v2.d.ts.map +1 -1
- package/dist/runtimes/opencode/prompt-config-v2.js +23 -31
- package/dist/runtimes/opencode/prompt-config-v2.js.map +1 -1
- package/dist/runtimes/opencode/prompt-config.d.ts +2 -1
- package/dist/runtimes/opencode/prompt-config.d.ts.map +1 -1
- package/dist/runtimes/opencode/prompt-config.js +45 -23
- package/dist/runtimes/opencode/prompt-config.js.map +1 -1
- package/dist/runtimes/opencode/session.d.ts.map +1 -1
- package/dist/runtimes/opencode/session.js +1 -0
- package/dist/runtimes/opencode/session.js.map +1 -1
- package/dist/runtimes/opencode/shared-session.d.ts.map +1 -1
- package/dist/runtimes/opencode/shared-session.js +3 -0
- package/dist/runtimes/opencode/shared-session.js.map +1 -1
- package/dist/runtimes/opencode/upgrade.d.ts +4 -0
- package/dist/runtimes/opencode/upgrade.d.ts.map +1 -0
- package/dist/runtimes/opencode/upgrade.js +21 -0
- package/dist/runtimes/opencode/upgrade.js.map +1 -0
- package/dist/runtimes/opencode/version.d.ts +5 -0
- package/dist/runtimes/opencode/version.d.ts.map +1 -1
- package/dist/runtimes/opencode/version.js +14 -1
- package/dist/runtimes/opencode/version.js.map +1 -1
- package/dist/runtimes/pi/auth.d.ts +30 -7
- package/dist/runtimes/pi/auth.d.ts.map +1 -1
- package/dist/runtimes/pi/auth.js +2 -0
- package/dist/runtimes/pi/auth.js.map +1 -1
- package/dist/runtimes/pi/catalog.d.ts +1 -1
- package/dist/runtimes/pi/catalog.d.ts.map +1 -1
- package/dist/runtimes/pi/catalog.js.map +1 -1
- package/dist/runtimes/pi/credential-shape.d.ts +9 -0
- package/dist/runtimes/pi/credential-shape.d.ts.map +1 -0
- package/dist/runtimes/pi/credential-shape.js +85 -0
- package/dist/runtimes/pi/credential-shape.js.map +1 -0
- package/dist/runtimes/pi/facade-runtime.d.ts +1 -7
- package/dist/runtimes/pi/facade-runtime.d.ts.map +1 -1
- package/dist/runtimes/pi/facade-runtime.js.map +1 -1
- package/dist/runtimes/pi/failure.d.ts.map +1 -1
- package/dist/runtimes/pi/failure.js.map +1 -1
- package/dist/runtimes/pi/index.d.ts.map +1 -1
- package/dist/runtimes/pi/index.js +3 -1
- package/dist/runtimes/pi/index.js.map +1 -1
- package/dist/runtimes/pi/input-disposition.d.ts +1 -1
- package/dist/runtimes/pi/input-disposition.d.ts.map +1 -1
- package/dist/runtimes/pi/installation.d.ts +15 -3
- package/dist/runtimes/pi/installation.d.ts.map +1 -1
- package/dist/runtimes/pi/installation.js +101 -59
- package/dist/runtimes/pi/installation.js.map +1 -1
- package/dist/runtimes/pi/inventory.d.ts.map +1 -1
- package/dist/runtimes/pi/inventory.js +5 -2
- package/dist/runtimes/pi/inventory.js.map +1 -1
- package/dist/runtimes/pi/list-models.d.ts +3 -2
- package/dist/runtimes/pi/list-models.d.ts.map +1 -1
- package/dist/runtimes/pi/list-models.js +12 -2
- package/dist/runtimes/pi/list-models.js.map +1 -1
- package/dist/runtimes/pi/model-projection.d.ts +2 -0
- package/dist/runtimes/pi/model-projection.d.ts.map +1 -1
- package/dist/runtimes/pi/model-projection.js.map +1 -1
- package/dist/runtimes/pi/model-requests.d.ts +9 -0
- package/dist/runtimes/pi/model-requests.d.ts.map +1 -0
- package/dist/runtimes/pi/model-requests.js +76 -0
- package/dist/runtimes/pi/model-requests.js.map +1 -0
- package/dist/runtimes/pi/open.d.ts.map +1 -1
- package/dist/runtimes/pi/open.js +13 -28
- package/dist/runtimes/pi/open.js.map +1 -1
- package/dist/runtimes/pi/options.d.ts +7 -0
- package/dist/runtimes/pi/options.d.ts.map +1 -1
- package/dist/runtimes/pi/options.js.map +1 -1
- package/dist/runtimes/pi/projection.d.ts.map +1 -1
- package/dist/runtimes/pi/projection.js +11 -4
- package/dist/runtimes/pi/projection.js.map +1 -1
- package/dist/runtimes/pi/rpc/control.d.ts +1 -1
- package/dist/runtimes/pi/rpc/control.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/control.js +6 -4
- package/dist/runtimes/pi/rpc/control.js.map +1 -1
- package/dist/runtimes/pi/rpc/extension.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/extension.js +15 -2
- package/dist/runtimes/pi/rpc/extension.js.map +1 -1
- package/dist/runtimes/pi/rpc/open.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/open.js +11 -6
- package/dist/runtimes/pi/rpc/open.js.map +1 -1
- package/dist/runtimes/pi/rpc/prompt-files.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/prompt-files.js +14 -5
- package/dist/runtimes/pi/rpc/prompt-files.js.map +1 -1
- package/dist/runtimes/pi/rpc/readers.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/readers.js +2 -0
- package/dist/runtimes/pi/rpc/readers.js.map +1 -1
- package/dist/runtimes/pi/rpc/session.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/session.js +18 -12
- package/dist/runtimes/pi/rpc/session.js.map +1 -1
- package/dist/runtimes/pi/session.d.ts.map +1 -1
- package/dist/runtimes/pi/session.js +15 -7
- package/dist/runtimes/pi/session.js.map +1 -1
- package/dist/runtimes/pi/side-question.js +1 -1
- package/dist/runtimes/pi/side-question.js.map +1 -1
- package/dist/runtimes/pi-durable/index.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/index.js +8 -1
- package/dist/runtimes/pi-durable/index.js.map +1 -1
- package/dist/runtimes/pi-durable/options.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/options.js +3 -0
- package/dist/runtimes/pi-durable/options.js.map +1 -1
- package/dist/runtimes/pi-durable/projection.d.ts +4 -2
- package/dist/runtimes/pi-durable/projection.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/projection.js +19 -4
- package/dist/runtimes/pi-durable/projection.js.map +1 -1
- package/dist/runtimes/pi-durable/session.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/session.js +164 -23
- package/dist/runtimes/pi-durable/session.js.map +1 -1
- package/dist/runtimes/qoder/daemon.d.ts +2 -1
- package/dist/runtimes/qoder/daemon.d.ts.map +1 -1
- package/dist/runtimes/qoder/daemon.js +13 -7
- package/dist/runtimes/qoder/daemon.js.map +1 -1
- package/dist/runtimes/qoder/index.d.ts +25 -1
- package/dist/runtimes/qoder/index.d.ts.map +1 -1
- package/dist/runtimes/qoder/index.js +14 -1
- package/dist/runtimes/qoder/index.js.map +1 -1
- package/dist/runtimes/qoder/installation.d.ts +2 -2
- package/dist/runtimes/qoder/installation.d.ts.map +1 -1
- package/dist/runtimes/qoder/installation.js +10 -17
- package/dist/runtimes/qoder/installation.js.map +1 -1
- package/dist/runtimes/qoder/launch.d.ts +4 -4
- package/dist/runtimes/qoder/launch.d.ts.map +1 -1
- package/dist/runtimes/qoder/launch.js +24 -31
- package/dist/runtimes/qoder/launch.js.map +1 -1
- package/dist/runtimes/qoder/list-models.d.ts.map +1 -1
- package/dist/runtimes/qoder/list-models.js +22 -14
- package/dist/runtimes/qoder/list-models.js.map +1 -1
- package/dist/runtimes/qoder/mcp-config.d.ts +13 -0
- package/dist/runtimes/qoder/mcp-config.d.ts.map +1 -0
- package/dist/runtimes/qoder/mcp-config.js +22 -0
- package/dist/runtimes/qoder/mcp-config.js.map +1 -0
- package/dist/runtimes/qoder/options.d.ts.map +1 -1
- package/dist/runtimes/qoder/options.js +16 -10
- package/dist/runtimes/qoder/options.js.map +1 -1
- package/dist/runtimes/qoder/projection.d.ts.map +1 -1
- package/dist/runtimes/qoder/projection.js +5 -3
- package/dist/runtimes/qoder/projection.js.map +1 -1
- package/dist/runtimes/qoder/protocol.d.ts +3 -1
- package/dist/runtimes/qoder/protocol.d.ts.map +1 -1
- package/dist/runtimes/qoder/protocol.js +6 -4
- package/dist/runtimes/qoder/protocol.js.map +1 -1
- package/dist/runtimes/qoder/session.d.ts.map +1 -1
- package/dist/runtimes/qoder/session.js +8 -4
- package/dist/runtimes/qoder/session.js.map +1 -1
- package/dist/runtimes/qwen/control.d.ts +1 -1
- package/dist/runtimes/qwen/control.d.ts.map +1 -1
- package/dist/runtimes/qwen/control.js +3 -5
- package/dist/runtimes/qwen/control.js.map +1 -1
- package/dist/runtimes/qwen/credentials.d.ts +7 -0
- package/dist/runtimes/qwen/credentials.d.ts.map +1 -0
- package/dist/runtimes/qwen/credentials.js +47 -0
- package/dist/runtimes/qwen/credentials.js.map +1 -0
- package/dist/runtimes/qwen/index.d.ts +10 -9
- package/dist/runtimes/qwen/index.d.ts.map +1 -1
- package/dist/runtimes/qwen/index.js +21 -2
- package/dist/runtimes/qwen/index.js.map +1 -1
- package/dist/runtimes/qwen/installation.d.ts +1 -0
- package/dist/runtimes/qwen/installation.d.ts.map +1 -1
- package/dist/runtimes/qwen/installation.js +2 -1
- package/dist/runtimes/qwen/installation.js.map +1 -1
- package/dist/runtimes/qwen/launch.d.ts +3 -1
- package/dist/runtimes/qwen/launch.d.ts.map +1 -1
- package/dist/runtimes/qwen/launch.js +27 -16
- package/dist/runtimes/qwen/launch.js.map +1 -1
- package/dist/runtimes/qwen/list-models.js +2 -2
- package/dist/runtimes/qwen/list-models.js.map +1 -1
- package/dist/runtimes/qwen/native-memory.d.ts +17 -0
- package/dist/runtimes/qwen/native-memory.d.ts.map +1 -0
- package/dist/runtimes/qwen/native-memory.js +252 -0
- package/dist/runtimes/qwen/native-memory.js.map +1 -0
- package/dist/runtimes/qwen/options.d.ts +2 -0
- package/dist/runtimes/qwen/options.d.ts.map +1 -1
- package/dist/runtimes/qwen/options.js +20 -17
- package/dist/runtimes/qwen/options.js.map +1 -1
- package/dist/runtimes/qwen/projection.d.ts.map +1 -1
- package/dist/runtimes/qwen/projection.js +2 -1
- package/dist/runtimes/qwen/projection.js.map +1 -1
- package/dist/runtimes/qwen/session.d.ts.map +1 -1
- package/dist/runtimes/qwen/session.js +16 -7
- package/dist/runtimes/qwen/session.js.map +1 -1
- package/dist/shared/acp/effort.d.ts.map +1 -1
- package/dist/shared/acp/effort.js +5 -0
- package/dist/shared/acp/effort.js.map +1 -1
- package/dist/shared/acp/errors.d.ts +1 -1
- package/dist/shared/acp/errors.d.ts.map +1 -1
- package/dist/shared/acp/errors.js +3 -10
- package/dist/shared/acp/errors.js.map +1 -1
- package/dist/shared/acp/failure.js +5 -5
- package/dist/shared/acp/open-readiness.d.ts +15 -0
- package/dist/shared/acp/open-readiness.d.ts.map +1 -0
- package/dist/shared/acp/open-readiness.js +11 -0
- package/dist/shared/acp/open-readiness.js.map +1 -0
- package/dist/shared/acp/process.d.ts +5 -1
- package/dist/shared/acp/process.d.ts.map +1 -1
- package/dist/shared/acp/process.js +18 -5
- package/dist/shared/acp/process.js.map +1 -1
- package/dist/shared/acp/profile.d.ts +7 -4
- package/dist/shared/acp/profile.d.ts.map +1 -1
- package/dist/shared/acp/profile.js +42 -22
- package/dist/shared/acp/profile.js.map +1 -1
- package/dist/shared/acp/projection.d.ts.map +1 -1
- package/dist/shared/acp/projection.js +8 -3
- package/dist/shared/acp/projection.js.map +1 -1
- package/dist/shared/acp/routing-types.d.ts +3 -1
- package/dist/shared/acp/routing-types.d.ts.map +1 -1
- package/dist/shared/acp/routing.d.ts.map +1 -1
- package/dist/shared/acp/routing.js +5 -3
- package/dist/shared/acp/routing.js.map +1 -1
- package/dist/shared/acp/session-state.d.ts +2 -1
- package/dist/shared/acp/session-state.d.ts.map +1 -1
- package/dist/shared/acp/session-state.js +3 -1
- package/dist/shared/acp/session-state.js.map +1 -1
- package/dist/shared/acp/session.d.ts.map +1 -1
- package/dist/shared/acp/session.js +98 -52
- package/dist/shared/acp/session.js.map +1 -1
- package/dist/shared/acp/shared-session.d.ts.map +1 -1
- package/dist/shared/acp/shared-session.js +18 -6
- package/dist/shared/acp/shared-session.js.map +1 -1
- package/dist/shared/acp/turns.d.ts +1 -1
- package/dist/shared/acp/turns.d.ts.map +1 -1
- package/dist/shared/acp/turns.js +14 -12
- package/dist/shared/acp/turns.js.map +1 -1
- package/dist/shared/credential-redactor.d.ts +8 -0
- package/dist/shared/credential-redactor.d.ts.map +1 -1
- package/dist/shared/credential-redactor.js +22 -0
- package/dist/shared/credential-redactor.js.map +1 -1
- package/dist/shared/executable/close.d.ts +7 -0
- package/dist/shared/executable/close.d.ts.map +1 -0
- package/dist/shared/executable/close.js +26 -0
- package/dist/shared/executable/close.js.map +1 -0
- package/dist/shared/executable/diagnostics.d.ts +6 -0
- package/dist/shared/executable/diagnostics.d.ts.map +1 -1
- package/dist/shared/executable/diagnostics.js +9 -0
- package/dist/shared/executable/diagnostics.js.map +1 -1
- package/dist/shared/executable/index.d.ts +2 -0
- package/dist/shared/executable/index.d.ts.map +1 -1
- package/dist/shared/executable/index.js +1 -0
- package/dist/shared/executable/index.js.map +1 -1
- package/dist/shared/executable/node-script.d.ts +1 -0
- package/dist/shared/executable/node-script.d.ts.map +1 -1
- package/dist/shared/executable/node-script.js +1 -1
- package/dist/shared/executable/node-script.js.map +1 -1
- package/dist/shared/executable/process-cleanup-diagnostics.d.ts +3 -1
- package/dist/shared/executable/process-cleanup-diagnostics.d.ts.map +1 -1
- package/dist/shared/executable/process-cleanup-diagnostics.js.map +1 -1
- package/dist/shared/executable/process-cleanup.d.ts.map +1 -1
- package/dist/shared/executable/process-cleanup.js +41 -12
- package/dist/shared/executable/process-cleanup.js.map +1 -1
- package/dist/shared/executable/process-shutdown.d.ts +1 -0
- package/dist/shared/executable/process-shutdown.d.ts.map +1 -1
- package/dist/shared/executable/process-shutdown.js +27 -4
- package/dist/shared/executable/process-shutdown.js.map +1 -1
- package/dist/shared/executable/process-table-async.js +4 -4
- package/dist/shared/executable/process-table-async.js.map +1 -1
- package/dist/shared/executable/process-table-windows.d.ts.map +1 -1
- package/dist/shared/executable/process-table-windows.js +3 -1
- package/dist/shared/executable/process-table-windows.js.map +1 -1
- package/dist/shared/executable/process-tree.d.ts +8 -4
- package/dist/shared/executable/process-tree.d.ts.map +1 -1
- package/dist/shared/executable/process-tree.js +17 -10
- package/dist/shared/executable/process-tree.js.map +1 -1
- package/dist/shared/executable/process.d.ts +9 -1
- package/dist/shared/executable/process.d.ts.map +1 -1
- package/dist/shared/executable/process.js +2 -1
- package/dist/shared/executable/process.js.map +1 -1
- package/dist/shared/executable/reported-stderr.d.ts +18 -0
- package/dist/shared/executable/reported-stderr.d.ts.map +1 -0
- package/dist/shared/executable/reported-stderr.js +49 -0
- package/dist/shared/executable/reported-stderr.js.map +1 -0
- package/dist/shared/executable/run.d.ts +2 -0
- package/dist/shared/executable/run.d.ts.map +1 -1
- package/dist/shared/executable/run.js +4 -0
- package/dist/shared/executable/run.js.map +1 -1
- package/dist/shared/executable/verify-descendant-exit.d.ts +4 -0
- package/dist/shared/executable/verify-descendant-exit.d.ts.map +1 -0
- package/dist/shared/executable/verify-descendant-exit.js +34 -0
- package/dist/shared/executable/verify-descendant-exit.js.map +1 -0
- package/dist/shared/failure-class.d.ts +2 -0
- package/dist/shared/failure-class.d.ts.map +1 -1
- package/dist/shared/failure-class.js +11 -1
- package/dist/shared/failure-class.js.map +1 -1
- package/dist/shared/held-input.d.ts +9 -0
- package/dist/shared/held-input.d.ts.map +1 -1
- package/dist/shared/held-input.js +8 -0
- package/dist/shared/held-input.js.map +1 -1
- package/dist/shared/host-environment.d.ts +40 -0
- package/dist/shared/host-environment.d.ts.map +1 -0
- package/dist/shared/host-environment.js +74 -0
- package/dist/shared/host-environment.js.map +1 -0
- package/dist/shared/installation.d.ts +14 -3
- package/dist/shared/installation.d.ts.map +1 -1
- package/dist/shared/installation.js +81 -61
- package/dist/shared/installation.js.map +1 -1
- package/dist/shared/launch-args.d.ts +7 -0
- package/dist/shared/launch-args.d.ts.map +1 -0
- package/dist/shared/launch-args.js +25 -0
- package/dist/shared/launch-args.js.map +1 -0
- package/dist/shared/login.d.ts +3 -0
- package/dist/shared/login.d.ts.map +1 -1
- package/dist/shared/login.js +2 -1
- package/dist/shared/login.js.map +1 -1
- package/dist/shared/mcp-config-handoff.d.ts +12 -0
- package/dist/shared/mcp-config-handoff.d.ts.map +1 -0
- package/dist/shared/mcp-config-handoff.js +131 -0
- package/dist/shared/mcp-config-handoff.js.map +1 -0
- package/dist/shared/native-home-initialization.d.ts +20 -0
- package/dist/shared/native-home-initialization.d.ts.map +1 -0
- package/dist/shared/native-home-initialization.js +87 -0
- package/dist/shared/native-home-initialization.js.map +1 -0
- package/dist/shared/native-session-file.d.ts +3 -0
- package/dist/shared/native-session-file.d.ts.map +1 -0
- package/dist/shared/native-session-file.js +22 -0
- package/dist/shared/native-session-file.js.map +1 -0
- package/dist/shared/process-session.d.ts +1 -1
- package/dist/shared/process-session.d.ts.map +1 -1
- package/dist/shared/process-session.js +12 -9
- package/dist/shared/process-session.js.map +1 -1
- package/dist/shared/prompt-run.d.ts +10 -0
- package/dist/shared/prompt-run.d.ts.map +1 -0
- package/dist/shared/prompt-run.js +9 -0
- package/dist/shared/prompt-run.js.map +1 -0
- package/dist/shared/seal-session.d.ts.map +1 -1
- package/dist/shared/seal-session.js +2 -1
- package/dist/shared/seal-session.js.map +1 -1
- package/dist/shared/semver.d.ts +6 -0
- package/dist/shared/semver.d.ts.map +1 -1
- package/dist/shared/semver.js +16 -0
- package/dist/shared/semver.js.map +1 -1
- package/dist/shared/session-credentials.d.ts.map +1 -1
- package/dist/shared/session-credentials.js +2 -0
- package/dist/shared/session-credentials.js.map +1 -1
- package/dist/shared/session-options.d.ts.map +1 -1
- package/dist/shared/session-options.js +7 -4
- package/dist/shared/session-options.js.map +1 -1
- package/dist/shared/stream-json/compaction.d.ts +0 -1
- package/dist/shared/stream-json/compaction.d.ts.map +1 -1
- package/dist/shared/stream-json/compaction.js +1 -1
- package/dist/shared/stream-json/compaction.js.map +1 -1
- package/dist/shared/stream-json/held-input.d.ts.map +1 -1
- package/dist/shared/stream-json/held-input.js +0 -4
- package/dist/shared/stream-json/held-input.js.map +1 -1
- package/dist/shared/stream-json/input-lifecycle.d.ts.map +1 -1
- package/dist/shared/stream-json/input-lifecycle.js +8 -0
- package/dist/shared/stream-json/input-lifecycle.js.map +1 -1
- package/dist/shared/stream-json/profile.d.ts +6 -4
- package/dist/shared/stream-json/profile.d.ts.map +1 -1
- package/dist/shared/stream-json/projection.d.ts.map +1 -1
- package/dist/shared/stream-json/projection.js +23 -6
- package/dist/shared/stream-json/projection.js.map +1 -1
- package/dist/shared/stream-json/session.d.ts.map +1 -1
- package/dist/shared/stream-json/session.js +19 -21
- package/dist/shared/stream-json/session.js.map +1 -1
- package/dist/shared/stream-json/state.d.ts +3 -2
- package/dist/shared/stream-json/state.d.ts.map +1 -1
- package/dist/shared/stream-json/state.js +1 -0
- package/dist/shared/stream-json/state.js.map +1 -1
- package/dist/shared/update.d.ts +2 -0
- package/dist/shared/update.d.ts.map +1 -1
- package/dist/shared/update.js +6 -2
- package/dist/shared/update.js.map +1 -1
- package/dist/shared/usage-ratio.d.ts +16 -0
- package/dist/shared/usage-ratio.d.ts.map +1 -0
- package/dist/shared/usage-ratio.js +52 -0
- package/dist/shared/usage-ratio.js.map +1 -0
- package/dist/shared/user-configuration.d.ts +5 -0
- package/dist/shared/user-configuration.d.ts.map +1 -0
- package/dist/shared/user-configuration.js +19 -0
- package/dist/shared/user-configuration.js.map +1 -0
- package/dist/shared/version-range.d.ts +30 -0
- package/dist/shared/version-range.d.ts.map +1 -0
- package/dist/shared/version-range.js +50 -0
- package/dist/shared/version-range.js.map +1 -0
- package/dist/testing/scripted-runtime.d.ts.map +1 -1
- package/dist/testing/scripted-runtime.js +9 -4
- package/dist/testing/scripted-runtime.js.map +1 -1
- package/dist/testing/scripted-tasks.d.ts +1 -0
- package/dist/testing/scripted-tasks.d.ts.map +1 -1
- package/package.json +15 -8
- package/dist/runtimes/qwen/close.d.ts +0 -4
- package/dist/runtimes/qwen/close.d.ts.map +0 -1
- package/dist/runtimes/qwen/close.js +0 -13
- package/dist/runtimes/qwen/close.js.map +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export const dshInputSource = String.raw `
|
|
3
3
|
const routes = new WeakMap();
|
|
4
4
|
const admissions = new WeakMap();
|
|
5
|
+
const pendingQueues = new WeakMap();
|
|
5
6
|
const supportedMedia = ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
6
7
|
async function imageTypes(agent) {
|
|
7
8
|
const route = agent.model?.current?.() ?? routes.get(agent);
|
|
@@ -13,7 +14,7 @@ export const dshInputSource = String.raw `
|
|
|
13
14
|
return info.inputModalities?.includes("image") ? supportedMedia.filter(type => attachments.imageLimits?.mediaTypes?.includes(type)) : [];
|
|
14
15
|
} catch { return []; }
|
|
15
16
|
}
|
|
16
|
-
const submit = async (agent, method, request) => {
|
|
17
|
+
const submit = async (agent, method, request, pending) => {
|
|
17
18
|
const isImage = request.images?.length > 0;
|
|
18
19
|
const verify = () => {
|
|
19
20
|
if (compacting.has(agent)) throw refusal("busy", "DSH is compacting this session");
|
|
@@ -32,15 +33,40 @@ export const dshInputSource = String.raw `
|
|
|
32
33
|
for (const attachment of refs) content.push({ type: "image", attachment });
|
|
33
34
|
verify();
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
+
const messageId = pending?.id ?? request.inputId ?? randomUUID();
|
|
37
|
+
if (pending?.withdrawn === true) { pending.intercepted = true; return { messageId }; }
|
|
38
|
+
const message = Object.freeze({ id: messageId, role: "user", content: Object.freeze(content), source: Object.freeze({ kind: "user" }) });
|
|
36
39
|
cause = method === "prompt" ? "prompt" : undefined;
|
|
37
40
|
try { agent[action](message); } finally { cause = undefined; }
|
|
38
41
|
return { messageId: message.id };
|
|
39
42
|
};
|
|
40
43
|
const admitInput = (method, request) => {
|
|
41
44
|
const { agent } = owned(request.sessionId);
|
|
45
|
+
let pending;
|
|
46
|
+
if (method === "queue") {
|
|
47
|
+
requireMethod(agent, "followup", "queue");
|
|
48
|
+
let settledResolve;
|
|
49
|
+
const settled = new Promise(resolve => { settledResolve = resolve; });
|
|
50
|
+
pending = { id: request.inputId ?? randomUUID(), withdrawn: false, intercepted: false, settled, resolve: settledResolve };
|
|
51
|
+
const list = pendingQueues.get(agent) ?? [];
|
|
52
|
+
list.push(pending);
|
|
53
|
+
pendingQueues.set(agent, list);
|
|
54
|
+
}
|
|
55
|
+
const removePending = () => {
|
|
56
|
+
if (pending === undefined) return;
|
|
57
|
+
const list = pendingQueues.get(agent);
|
|
58
|
+
if (list !== undefined) {
|
|
59
|
+
const index = list.indexOf(pending);
|
|
60
|
+
if (index >= 0) list.splice(index, 1);
|
|
61
|
+
if (list.length === 0) pendingQueues.delete(agent);
|
|
62
|
+
}
|
|
63
|
+
pending.resolve(pending.intercepted);
|
|
64
|
+
};
|
|
42
65
|
const previous = admissions.get(agent);
|
|
43
|
-
const run = () =>
|
|
66
|
+
const run = async () => {
|
|
67
|
+
try { const value = await submit(agent, method, request, pending); removePending(); return value; }
|
|
68
|
+
catch (error) { removePending(); throw error; }
|
|
69
|
+
};
|
|
44
70
|
const next = previous === undefined ? run() : previous.then(run, run);
|
|
45
71
|
admissions.set(agent, next);
|
|
46
72
|
const clear = () => { if (admissions.get(agent) === next) admissions.delete(agent); };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-input.js","sources":["../../../src/runtimes/dsh/bridge-input.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"bridge-input.js","sources":["../../../src/runtimes/dsh/bridge-input.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EvC,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const DSH_BRIDGE_PROTOCOL = 1;
|
|
|
7
7
|
* this text). Kept as source so a single-file host can write it to a private
|
|
8
8
|
* directory without its own source tree. The vendor suite runs this exact text.
|
|
9
9
|
*
|
|
10
|
-
* Frames on stdout: `
|
|
10
|
+
* Frames on stdout: private `profile-loaded`, then `ready`, followed by `native` and `response` frames; `startup-error`
|
|
11
11
|
* when the loader barrier fails (never an empty inventory); `protocol-error` for
|
|
12
12
|
* a line that is not a command. A `native` frame carries the runtime's payload
|
|
13
13
|
* unchanged, with only routing fields beside it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAKA,gIAAgI;AAChI,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAKA,gIAAgI;AAChI,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,QAuR3B,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const DSH_BRIDGE_PROTOCOL = 1;
|
|
|
11
11
|
* this text). Kept as source so a single-file host can write it to a private
|
|
12
12
|
* directory without its own source tree. The vendor suite runs this exact text.
|
|
13
13
|
*
|
|
14
|
-
* Frames on stdout: `
|
|
14
|
+
* Frames on stdout: private `profile-loaded`, then `ready`, followed by `native` and `response` frames; `startup-error`
|
|
15
15
|
* when the loader barrier fails (never an empty inventory); `protocol-error` for
|
|
16
16
|
* a line that is not a command. A `native` frame carries the runtime's payload
|
|
17
17
|
* unchanged, with only routing fields beside it.
|
|
@@ -19,6 +19,7 @@ export const DSH_BRIDGE_PROTOCOL = 1;
|
|
|
19
19
|
export const dshBridgeSource = String.raw `import { randomUUID } from "node:crypto";
|
|
20
20
|
import { createInterface } from "node:readline";
|
|
21
21
|
|
|
22
|
+
write({ type: "profile-loaded" }); // Cordis imports this module from the parsed profile.
|
|
22
23
|
export const name = "oar-dsh-bridge";
|
|
23
24
|
|
|
24
25
|
const PROTOCOL = ${String(DSH_BRIDGE_PROTOCOL)};
|
|
@@ -60,8 +61,6 @@ function requireMethod(target, key, capability) {
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
65
64
|
export function apply(ctx, config) {
|
|
66
65
|
const loader = ctx.get("loader");
|
|
67
66
|
if (typeof loader?.await !== "function") {
|
|
@@ -82,6 +81,28 @@ export function apply(ctx, config) {
|
|
|
82
81
|
// Cordis FiberState.ACTIVE is 2 in the native protocol we probe.
|
|
83
82
|
if (fiber.state !== 2) { throw refusal("mcp_inactive", "Requested MCP plugin is not active (native state " + fiber.state + ")", "session MCP"); }
|
|
84
83
|
}
|
|
84
|
+
if (config?.sessionLogPlugin !== undefined) {
|
|
85
|
+
const plugin = config.sessionLogPlugin;
|
|
86
|
+
requireMethod(loader, "entries", "sessionLogUpload");
|
|
87
|
+
const entry = [...loader.entries()].find((row) => row.options?.id === plugin.id);
|
|
88
|
+
if (entry === undefined) {
|
|
89
|
+
throw refusal("option_not_applied", "DSH does not mount the " + plugin.id + " plugin, so OAR cannot confirm session-log upload is off", "sessionLogUpload");
|
|
90
|
+
}
|
|
91
|
+
if (entry.options?.name !== plugin.name) {
|
|
92
|
+
throw refusal("option_not_applied", "DSH " + plugin.id + " entry does not match " + plugin.name, "sessionLogUpload");
|
|
93
|
+
}
|
|
94
|
+
if (entry.options?.disabled !== true) {
|
|
95
|
+
if (entry.options?.config?.enabled !== false) {
|
|
96
|
+
throw refusal("option_not_applied", "DSH did not apply enabled: false to " + plugin.id, "sessionLogUpload");
|
|
97
|
+
}
|
|
98
|
+
const fiber = entry.fiber;
|
|
99
|
+
requireMethod(fiber, "await", "sessionLogUpload");
|
|
100
|
+
await fiber.await();
|
|
101
|
+
if (fiber.state !== 2) {
|
|
102
|
+
throw refusal("option_not_applied", "DSH " + plugin.id + " plugin is not active (native state " + fiber.state + ")", "sessionLogUpload");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
85
106
|
boot(ctx, config);
|
|
86
107
|
}
|
|
87
108
|
catch (error) { const native = structured(error); write({ type: "startup-error", error: native, code: native.code, capability: native.capability }); }
|
|
@@ -113,10 +134,13 @@ ${dshInputSource}
|
|
|
113
134
|
handles.set(agent.session.id, handle);
|
|
114
135
|
routes.set(agent, route);
|
|
115
136
|
const modelCurrent = typeof agent.model?.current === "function";
|
|
137
|
+
const sessionFile = await sessionFileOf(agent.session.id);
|
|
116
138
|
return { compact: typeof ctx.get("compaction")?.compactNow === "function", imageTypes: await imageTypes(agent), sessionId: agent.session.id, header: agent.session.header, status: agent.status,
|
|
117
139
|
jobMethods: methods(jobs, ["get", "kill", "wait"]),
|
|
118
140
|
methods: methods(agent, AGENT_METHODS), inboxMethods: methods(agent.inbox, INBOX_METHODS),
|
|
119
141
|
pending: { nextTurn: agent.inbox?.nextTurn?.length, nextStep: agent.inbox?.nextStep?.length },
|
|
142
|
+
sessionFileStat: typeof persistence?.stat === "function",
|
|
143
|
+
...(sessionFile === undefined ? {} : { sessionFile }),
|
|
120
144
|
modelCurrent, ...(modelCurrent ? { model: agent.model.current() } : {}) };
|
|
121
145
|
};
|
|
122
146
|
|
|
@@ -195,13 +219,16 @@ ${dshGoalSource}
|
|
|
195
219
|
prompt: request => admitInput("prompt", request),
|
|
196
220
|
queue: request => admitInput("queue", request),
|
|
197
221
|
steer: request => admitInput("steer", request),
|
|
198
|
-
withdraw(request) {
|
|
222
|
+
async withdraw(request) {
|
|
199
223
|
const { agent } = owned(request.sessionId);
|
|
200
224
|
requireMethod(agent.inbox, "remove", "withdraw");
|
|
225
|
+
const matching = (pendingQueues.get(agent) ?? []).filter((entry) => entry.id === request.messageId);
|
|
226
|
+
for (const entry of matching) { entry.withdrawn = true; }
|
|
227
|
+
const intercepted = matching.length > 0 ? (await Promise.all(matching.map((entry) => entry.settled))).some(Boolean) : false;
|
|
201
228
|
// Only input held for a later turn: a steer may already be in the next request.
|
|
202
|
-
if (!agent.inbox.nextTurn.some((message) => message.id === request.messageId)) { return { removed:
|
|
229
|
+
if (!agent.inbox.nextTurn.some((message) => message.id === request.messageId)) { return { removed: intercepted }; }
|
|
203
230
|
cause = "withdraw";
|
|
204
|
-
try { return { removed: agent.inbox.remove(request.messageId) }; } finally { cause = undefined; }
|
|
231
|
+
try { return { removed: agent.inbox.remove(request.messageId) || intercepted }; } finally { cause = undefined; }
|
|
205
232
|
},
|
|
206
233
|
cancel(request) {
|
|
207
234
|
const { agent } = owned(request.sessionId);
|
|
@@ -233,17 +260,25 @@ ${dshGoalSource}
|
|
|
233
260
|
return { providers, default: defaultRoute() };
|
|
234
261
|
},
|
|
235
262
|
async dispose() {
|
|
263
|
+
const ids = [...handles.keys()];
|
|
236
264
|
const results = await Promise.allSettled([...handles.values()].map(async (handle) => { await handle.dispose(); }));
|
|
237
265
|
handles.clear();
|
|
238
266
|
if (typeof persistence?.flush === "function") { await persistence.flush(); }
|
|
267
|
+
const sessionFiles = {};
|
|
268
|
+
for (const id of ids) {
|
|
269
|
+
try {
|
|
270
|
+
const path = await sessionFileOf(id);
|
|
271
|
+
if (path !== undefined) { sessionFiles[id] = path; }
|
|
272
|
+
} catch {}
|
|
273
|
+
}
|
|
239
274
|
const failed = results.find((result) => result.status === "rejected");
|
|
240
275
|
if (failed !== undefined) { throw failed.reason; }
|
|
241
|
-
return {};
|
|
276
|
+
return Object.keys(sessionFiles).length === 0 ? {} : { sessionFiles };
|
|
242
277
|
},
|
|
243
278
|
};
|
|
244
279
|
|
|
245
280
|
write({ type: "ready", protocol: PROTOCOL,
|
|
246
|
-
services: { agents: methods(agents, ["create", "resume"]), sessionPersistence: methods(persistence, ["list", "open", "flush"]) } });
|
|
281
|
+
services: { agents: methods(agents, ["create", "resume"]), sessionPersistence: methods(persistence, ["list", "open", "flush", "stat"]) } });
|
|
247
282
|
|
|
248
283
|
const input = createInterface({ input: process.stdin, crlfDelay: Infinity });
|
|
249
284
|
input.on("line", (line) => { void receive(line); });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.js","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,gIAAgI;AAChI,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"bridge.js","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,gIAAgI;AAChI,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;mBAMtB,MAAM,CAAC,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0F5C,gBAAgB;;;;;;;;;;;;;;;;EAgBhB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+Bd,eAAe;;;;;;EAMf,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkId,CAAC"}
|
|
@@ -6,6 +6,8 @@ export interface DshReady {
|
|
|
6
6
|
readonly protocol: number;
|
|
7
7
|
readonly services: JsonRecord;
|
|
8
8
|
}
|
|
9
|
+
/** Whether an error from `dshControl` means the bridge exited before answering. */
|
|
10
|
+
export declare const isDshExitedError: (error: unknown) => error is Error;
|
|
9
11
|
/** The bridge's own refusal or a native exception, with the native error object retained. */
|
|
10
12
|
export declare class DshCommandError extends Error {
|
|
11
13
|
readonly name = "DshCommandError";
|
|
@@ -22,5 +24,5 @@ export interface DshControl {
|
|
|
22
24
|
* The bridge's JSON lines. Every line but a command answer goes to `receive` in
|
|
23
25
|
* order, a line that is not an object included, so nothing the process said is lost.
|
|
24
26
|
*/
|
|
25
|
-
export declare function dshControl(child: LineProcess, receive: (message: JsonRecord) => void): DshControl;
|
|
27
|
+
export declare function dshControl(child: LineProcess, receive: (message: JsonRecord) => void, redact?: (text: string) => string, profileLoaded?: () => void): DshControl;
|
|
26
28
|
//# sourceMappingURL=control.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sources":["../../../src/runtimes/dsh/control.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control.d.ts","sources":["../../../src/runtimes/dsh/control.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG5E,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAG3C,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B;AAID,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,UAAW,OAAO,KAAG,KAAK,IAAI,KAA2D,CAAC;AAEvH,6FAA6F;AAC7F,qBAAa,eAAgB,SAAQ,KAAK;IACxC,SAAkB,IAAI,qBAAqB;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAE5B,YAAY,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAKvF;CACF;AAID,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC1G;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,UAAU,CAgEhK"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { reportedStderr, reportedProcessFailure } from "../../shared/executable/reported-stderr.js";
|
|
1
2
|
import { asRecord, parseJson } from "../../shared/json.js";
|
|
2
3
|
import { DSH_BRIDGE_PROTOCOL } from "./bridge.js";
|
|
3
4
|
/** Measured cold starts stay near one second; this bounds a stuck loader, not an ordinary start. */
|
|
4
5
|
export const DSH_READY_TIMEOUT_MS = 60_000;
|
|
5
6
|
const COMMAND_TIMEOUT_MS = 30_000;
|
|
7
|
+
const EXITED_ERRORS = new WeakSet();
|
|
8
|
+
const dshExitedError = (message) => { const error = new Error(message); EXITED_ERRORS.add(error); return error; };
|
|
9
|
+
/** Whether an error from `dshControl` means the bridge exited before answering. */
|
|
10
|
+
export const isDshExitedError = (error) => error instanceof Error && EXITED_ERRORS.has(error);
|
|
6
11
|
/** The bridge's own refusal or a native exception, with the native error object retained. */
|
|
7
12
|
export class DshCommandError extends Error {
|
|
8
13
|
name = "DshCommandError";
|
|
@@ -21,7 +26,8 @@ const textOf = (value) => typeof value === "string" ? value : undefined;
|
|
|
21
26
|
* The bridge's JSON lines. Every line but a command answer goes to `receive` in
|
|
22
27
|
* order, a line that is not an object included, so nothing the process said is lost.
|
|
23
28
|
*/
|
|
24
|
-
export function dshControl(child, receive) {
|
|
29
|
+
export function dshControl(child, receive, redact, profileLoaded) {
|
|
30
|
+
const stderr = () => reportedStderr(child.diagnostics(), redact);
|
|
25
31
|
let sequence = 0;
|
|
26
32
|
let ended = false;
|
|
27
33
|
const pending = new Map();
|
|
@@ -31,9 +37,16 @@ export function dshControl(child, receive) {
|
|
|
31
37
|
await ready;
|
|
32
38
|
}
|
|
33
39
|
catch { /* The opening reports it. */ } })();
|
|
34
|
-
const readyTimer = setTimeout(() => {
|
|
40
|
+
const readyTimer = setTimeout(() => {
|
|
41
|
+
rejectReady(new Error(`DSH did not load the OAR bridge within ${String(DSH_READY_TIMEOUT_MS)} ms: ${stderr()}`));
|
|
42
|
+
child.kill();
|
|
43
|
+
}, DSH_READY_TIMEOUT_MS);
|
|
35
44
|
child.onLine((line) => {
|
|
36
45
|
const message = asRecord(parseJson(line));
|
|
46
|
+
if (message?.type === "profile-loaded") {
|
|
47
|
+
profileLoaded?.();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
37
50
|
if (message?.type === "response" && typeof message.id === "string") {
|
|
38
51
|
const waiter = pending.get(message.id);
|
|
39
52
|
if (waiter === undefined) {
|
|
@@ -50,6 +63,7 @@ export function dshControl(child, receive) {
|
|
|
50
63
|
}
|
|
51
64
|
receive(message ?? { type: "stdout", line });
|
|
52
65
|
if (message?.type === "ready") {
|
|
66
|
+
profileLoaded?.();
|
|
53
67
|
clearTimeout(readyTimer);
|
|
54
68
|
if (message.protocol === DSH_BRIDGE_PROTOCOL) {
|
|
55
69
|
resolveReady({ protocol: DSH_BRIDGE_PROTOCOL, services: asRecord(message.services) ?? {} });
|
|
@@ -63,10 +77,10 @@ export function dshControl(child, receive) {
|
|
|
63
77
|
rejectReady(new DshCommandError(asRecord(message.error) ?? {}, textOf(message.code), textOf(message.capability)));
|
|
64
78
|
}
|
|
65
79
|
});
|
|
66
|
-
child.onExit((
|
|
80
|
+
child.onExit(() => {
|
|
67
81
|
ended = true;
|
|
68
82
|
clearTimeout(readyTimer);
|
|
69
|
-
const failure =
|
|
83
|
+
const failure = dshExitedError(reportedProcessFailure("DSH exited", child.diagnostics(), redact).message);
|
|
70
84
|
rejectReady(failure);
|
|
71
85
|
for (const waiter of pending.values()) {
|
|
72
86
|
clearTimeout(waiter.timer);
|
|
@@ -78,14 +92,14 @@ export function dshControl(child, receive) {
|
|
|
78
92
|
ready,
|
|
79
93
|
request: async (method, fields = {}, timeoutMs = COMMAND_TIMEOUT_MS) => {
|
|
80
94
|
if (ended) {
|
|
81
|
-
throw
|
|
95
|
+
throw dshExitedError("DSH has exited");
|
|
82
96
|
}
|
|
83
97
|
sequence += 1;
|
|
84
98
|
const id = `oar-dsh-${String(sequence)}`;
|
|
85
99
|
const { promise, resolve, reject } = Promise.withResolvers();
|
|
86
100
|
const timer = timeoutMs === null ? undefined : setTimeout(() => {
|
|
87
101
|
pending.delete(id);
|
|
88
|
-
reject(new Error(`DSH did not answer ${method} within ${String(timeoutMs)} ms: ${
|
|
102
|
+
reject(new Error(`DSH did not answer ${method} within ${String(timeoutMs)} ms: ${stderr()}`));
|
|
89
103
|
child.kill();
|
|
90
104
|
}, timeoutMs);
|
|
91
105
|
pending.set(id, { resolve, reject, timer });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sources":["../../../src/runtimes/dsh/control.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control.js","sources":["../../../src/runtimes/dsh/control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpG,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAmB,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,oGAAoG;AACpG,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAC3C,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAOlC,MAAM,aAAa,GAAG,IAAI,OAAO,EAAS,CAAC;AAC3C,MAAM,cAAc,GAAG,CAAC,OAAe,EAAS,EAAE,GAAG,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa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C,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;YAC9D,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;YAC7B,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -5,11 +5,42 @@ export declare const dshRuntime: Omit<{
|
|
|
5
5
|
readonly activeTurn: "reject";
|
|
6
6
|
};
|
|
7
7
|
readonly sessionCapabilities: (installation: import("../../browser.js").AvailableInstallation) => {
|
|
8
|
+
nativeSessionFile?: boolean;
|
|
9
|
+
taskEventTypes?: ("agent" | "shell")[];
|
|
10
|
+
subagentResults?: {
|
|
11
|
+
background: "child_text";
|
|
12
|
+
};
|
|
8
13
|
compactionEvents: {
|
|
9
14
|
started: true;
|
|
10
15
|
ended: true;
|
|
11
16
|
};
|
|
12
|
-
|
|
17
|
+
contextUsage: {
|
|
18
|
+
tokens: true;
|
|
19
|
+
contextWindow: true;
|
|
20
|
+
};
|
|
21
|
+
mcpTransports: "stdio"[];
|
|
22
|
+
stopTask: true;
|
|
23
|
+
refusedSessionOptions: {
|
|
24
|
+
additionalDirectories?: string;
|
|
25
|
+
appendSystemPrompt?: string;
|
|
26
|
+
disallowedTools?: string;
|
|
27
|
+
endTurnProcessesOnAbort?: string;
|
|
28
|
+
env?: string;
|
|
29
|
+
fork?: string;
|
|
30
|
+
goals?: string;
|
|
31
|
+
launchArgs?: string;
|
|
32
|
+
mcpServerCredentials?: string;
|
|
33
|
+
mcpServers?: string;
|
|
34
|
+
modelRequests?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
nativeMemoryDefault?: string;
|
|
37
|
+
outputSchema?: string;
|
|
38
|
+
partialUserConfiguration?: string;
|
|
39
|
+
serviceTier?: string;
|
|
40
|
+
sessionLogUpload?: string;
|
|
41
|
+
systemPrompt?: string;
|
|
42
|
+
userConfiguration?: string;
|
|
43
|
+
};
|
|
13
44
|
};
|
|
14
45
|
readonly brand: {
|
|
15
46
|
readonly name: "DeepSeek Harness";
|
|
@@ -22,10 +53,14 @@ export declare const dshRuntime: Omit<{
|
|
|
22
53
|
readonly verifiedPlatforms: readonly [];
|
|
23
54
|
readonly minVersion: "0.2.1-rc.5";
|
|
24
55
|
readonly credentials: {
|
|
56
|
+
readonly scope: "single_account";
|
|
57
|
+
readonly management: "external";
|
|
25
58
|
readonly env: readonly [{
|
|
26
59
|
readonly name: "DEEPSEEK_API_KEY";
|
|
27
60
|
readonly purpose: "api_key";
|
|
28
61
|
readonly secret: true;
|
|
62
|
+
readonly provider: "deepseek";
|
|
63
|
+
readonly field: "apiKey";
|
|
29
64
|
}];
|
|
30
65
|
readonly stores: readonly [{
|
|
31
66
|
readonly kind: "file";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCK,CAAC"}
|
|
@@ -2,18 +2,34 @@ import { runtimeBrands } from "../../brands.js";
|
|
|
2
2
|
import { verifiedPlatforms } from "../../platforms.js";
|
|
3
3
|
import { defineRuntime } from "../../contracts/runtime.js";
|
|
4
4
|
import { onFirstCall } from "../../shared/lazy.js";
|
|
5
|
+
import { semverAtLeast } from "../../shared/semver.js";
|
|
5
6
|
import { dshInstallation } from "./installation.js";
|
|
6
7
|
import { dshInstall, dshInstallPlan } from "./install.js";
|
|
7
|
-
import { dshDirectoryRefusal, dshRefusedSessionOptions } from "./options.js";
|
|
8
|
+
import { dshDirectoryRefusal, dshRefusedSessionOptions, dshSessionLogUploadRefusal, dshSupportsNativeSessionFile } from "./options.js";
|
|
8
9
|
import { DSH_MINIMUM_VERSION } from "./version.js";
|
|
9
10
|
export const dshRuntime = defineRuntime({
|
|
10
11
|
id: "dsh",
|
|
11
12
|
manualCompaction: { kind: "supported", activeTurn: "reject" },
|
|
12
|
-
sessionCapabilities: (installation) =>
|
|
13
|
+
sessionCapabilities: (installation) => {
|
|
14
|
+
const version = installation.via === "executable" ? installation.version : undefined;
|
|
15
|
+
const nativeSessionFile = dshSupportsNativeSessionFile(version);
|
|
16
|
+
return {
|
|
17
|
+
...(nativeSessionFile === undefined ? {} : { nativeSessionFile }),
|
|
18
|
+
...(semverAtLeast(version, DSH_MINIMUM_VERSION) ? { taskEventTypes: ["agent", "shell"] } : {}),
|
|
19
|
+
...(semverAtLeast(version, "0.2.2-rc.5") ? { subagentResults: { background: "child_text" } } : {}),
|
|
20
|
+
compactionEvents: { started: true, ended: true },
|
|
21
|
+
contextUsage: { tokens: true, contextWindow: true },
|
|
22
|
+
mcpTransports: ["stdio"],
|
|
23
|
+
stopTask: true,
|
|
24
|
+
refusedSessionOptions: { ...dshDirectoryRefusal(version), ...dshSessionLogUploadRefusal(version) },
|
|
25
|
+
};
|
|
26
|
+
}, brand: runtimeBrands.dsh, verifiedPlatforms: verifiedPlatforms.dsh,
|
|
13
27
|
minVersion: DSH_MINIMUM_VERSION,
|
|
14
28
|
// The default route reads DEEPSEEK_API_KEY; a key saved through DSH's own settings wins (docs/runtimes/dsh.md#credentials).
|
|
15
29
|
credentials: {
|
|
16
|
-
|
|
30
|
+
scope: "single_account",
|
|
31
|
+
management: "external",
|
|
32
|
+
env: [{ name: "DEEPSEEK_API_KEY", purpose: "api_key", secret: true, provider: "deepseek", field: "apiKey" }],
|
|
17
33
|
stores: [
|
|
18
34
|
{ kind: "file", directoryEnv: "DSH_HOME", defaultDirectory: ".dsh", path: ".credentials.yaml", overridesEnv: true },
|
|
19
35
|
{ kind: "file", relativeTo: "cwd", path: ".env", overridesEnv: false },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACvI,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;IACtC,EAAE,EAAE,KAAK;IACT,gBAAgB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC7D,mBAA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C,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;CAC9G,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const dshInstallation: InstallationProbe;
|
|
1
|
+
/** `dsh` on PATH or `OAR_DSH_BIN`, verified against DeepSeek Harness `--help` and its prerelease-aware version floor. */
|
|
2
|
+
export declare const dshInstallation: import("../../browser.js").InstallationProbe;
|
|
4
3
|
//# sourceMappingURL=installation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.d.ts","sources":["../../../src/runtimes/dsh/installation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"installation.d.ts","sources":["../../../src/runtimes/dsh/installation.ts"],"names":[],"mappings":"AAGA,yHAAyH;AACzH,eAAO,MAAM,eAAe,8CAc3B,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { executableInstallation } from "../../shared/installation.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
2
|
+
import { DSH_MINIMUM_VERSION, dshVersionRefusal } from "./version.js";
|
|
3
|
+
/** `dsh` on PATH or `OAR_DSH_BIN`, verified against DeepSeek Harness `--help` and its prerelease-aware version floor. */
|
|
4
|
+
export const dshInstallation = executableInstallation("OAR_DSH_BIN", "dsh", [], ["--help"], {
|
|
5
|
+
identity: { vendor: "DeepSeek Harness (dsh)", help: /\bUsage:\s+dsh(?:\.exe)?\b|\bDeepSeek Harness\b/iu },
|
|
6
|
+
versionPolicy: {
|
|
7
|
+
label: "DSH",
|
|
8
|
+
lines: [{ min: DSH_MINIMUM_VERSION }],
|
|
9
|
+
required: DSH_MINIMUM_VERSION,
|
|
10
|
+
formatReason: (_command, _installed, raw) => dshVersionRefusal(raw) ?? `DSH requires ${DSH_MINIMUM_VERSION} or later`,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
13
|
//# sourceMappingURL=installation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.js","sources":["../../../src/runtimes/dsh/installation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"installation.js","sources":["../../../src/runtimes/dsh/installation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE,yHAAyH;AACzH,MAAM,CAAC,MAAM,eAAe,GAAG,sBAAsB,CACnD,aAAa,EACb,KAAK,EACL,EAAE,EACF,CAAC,QAAQ,CAAC,EACV;IACE,QAAQ,EAAE,EAAE,MAAM,EAAE,wBAAwB,EAAE,IAAI,EAAE,mDAAmD,EAAE;IACzG,aAAa,EAAE;QACb,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC;QACrC,QAAQ,EAAE,mBAAmB;QAC7B,YAAY,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,gBAAgB,mBAAmB,WAAW;KACtH;CACF,CACF,CAAC"}
|
|
@@ -2,8 +2,10 @@ import type { SessionOptions } from "../../contracts/session.js";
|
|
|
2
2
|
import { type LineProcess } from "../../shared/executable/index.js";
|
|
3
3
|
import type { JsonRecord } from "../../shared/json.js";
|
|
4
4
|
import { type PrivateTempDir } from "../../shared/private-temp.js";
|
|
5
|
+
import { type DshProfileWait } from "./profile-startup.js";
|
|
5
6
|
export interface LaunchedDsh {
|
|
6
7
|
readonly child: LineProcess;
|
|
8
|
+
readonly profileLoaded: () => void;
|
|
7
9
|
readonly directory: PrivateTempDir;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
@@ -12,10 +14,16 @@ export interface LaunchedDsh {
|
|
|
12
14
|
* host that names its own mode for this session keeps it.
|
|
13
15
|
*/
|
|
14
16
|
export declare function dshEnvironment(env: SessionOptions["env"]): NodeJS.ProcessEnv;
|
|
17
|
+
export interface DshLaunchOptions {
|
|
18
|
+
readonly mcpRows?: readonly JsonRecord[];
|
|
19
|
+
readonly disableSessionLogUpload?: boolean;
|
|
20
|
+
readonly signal?: AbortSignal;
|
|
21
|
+
readonly profileWait?: DshProfileWait;
|
|
22
|
+
}
|
|
15
23
|
/**
|
|
16
24
|
* One owned `dsh --profile acp` process with the ACP protocol plugin off and the
|
|
17
25
|
* bridge on. The profile supplies the native core and its stdin shutdown; no ACP
|
|
18
26
|
* message is exchanged. The overlay is an invocation layer: it edits no user file.
|
|
19
27
|
*/
|
|
20
|
-
export declare function launchDsh(command: string, cwd: string, env: NodeJS.ProcessEnv,
|
|
28
|
+
export declare function launchDsh(command: string, cwd: string, env: NodeJS.ProcessEnv, options?: DshLaunchOptions): Promise<LaunchedDsh>;
|
|
21
29
|
//# sourceMappingURL=launch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.d.ts","sources":["../../../src/runtimes/dsh/launch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sources":["../../../src/runtimes/dsh/launch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE9E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAG5E;AAKD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IACzC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC,CA0B1I"}
|
|
@@ -5,6 +5,7 @@ import { sessionEnvironment } from "../../shared/environment.js";
|
|
|
5
5
|
import { spawnLineProcess } from "../../shared/executable/index.js";
|
|
6
6
|
import { privateTempDir } from "../../shared/private-temp.js";
|
|
7
7
|
import { dshBridgeSource } from "./bridge.js";
|
|
8
|
+
import { acquireDshProfile } from "./profile-startup.js";
|
|
8
9
|
/**
|
|
9
10
|
* Sessions run without approval gates like every OAR runtime (`Session` scope
|
|
10
11
|
* notes): nobody sits at a prompt, and DSH rejects an action needing approval. A
|
|
@@ -14,24 +15,41 @@ export function dshEnvironment(env) {
|
|
|
14
15
|
const explicit = env?.DSH_PERMISSION_MODE;
|
|
15
16
|
return { ...sessionEnvironment(env), ...(typeof explicit === "string" ? {} : { DSH_PERMISSION_MODE: "danger-full-access" }) };
|
|
16
17
|
}
|
|
18
|
+
const SESSION_LOG_PLUGIN_ID = "session-log-deepseek";
|
|
19
|
+
const SESSION_LOG_PLUGIN_NAME = "@deepseek-ai/dsh-session-log-deepseek";
|
|
17
20
|
/**
|
|
18
21
|
* One owned `dsh --profile acp` process with the ACP protocol plugin off and the
|
|
19
22
|
* bridge on. The profile supplies the native core and its stdin shutdown; no ACP
|
|
20
23
|
* message is exchanged. The overlay is an invocation layer: it edits no user file.
|
|
21
24
|
*/
|
|
22
|
-
export async function launchDsh(command, cwd, env,
|
|
25
|
+
export async function launchDsh(command, cwd, env, options = {}) {
|
|
26
|
+
const { mcpRows = [], disableSessionLogUpload = false, signal } = options;
|
|
23
27
|
const directory = await privateTempDir("oar-dsh-");
|
|
28
|
+
let release = undefined;
|
|
24
29
|
try {
|
|
25
30
|
const bridge = path.join(directory.path, "bridge.mjs");
|
|
26
31
|
const patch = path.join(directory.path, "patch.json");
|
|
27
32
|
await writeFile(bridge, dshBridgeSource, { mode: 0o600, flag: "wx" });
|
|
28
|
-
|
|
33
|
+
const bridgeConfig = {
|
|
34
|
+
mcpEntries: mcpRows.map((row) => row.id),
|
|
35
|
+
...(disableSessionLogUpload ? { sessionLogPlugin: { id: SESSION_LOG_PLUGIN_ID, name: SESSION_LOG_PLUGIN_NAME } } : {}),
|
|
36
|
+
};
|
|
37
|
+
const patchRows = [
|
|
38
|
+
{ id: "acp", disabled: true },
|
|
39
|
+
{ insert: [...mcpRows, { id: "oar-dsh-bridge", name: pathToFileURL(bridge).href, config: bridgeConfig }] },
|
|
40
|
+
...(disableSessionLogUpload ? [{ id: SESSION_LOG_PLUGIN_ID, name: SESSION_LOG_PLUGIN_NAME, config: { enabled: false } }] : []),
|
|
41
|
+
];
|
|
42
|
+
await writeFile(patch, JSON.stringify(patchRows), { mode: 0o600, flag: "wx" });
|
|
43
|
+
const finish = await acquireDshProfile(env, cwd, signal, options.profileWait);
|
|
44
|
+
release = finish;
|
|
45
|
+
signal?.throwIfAborted();
|
|
29
46
|
const child = spawnLineProcess(command, ["--profile", "acp", "--patch", patch], { cwd, env, killTree: true, shutdown: "stdin" });
|
|
30
|
-
child.onExit(() => { directory.remove(); });
|
|
47
|
+
child.onExit(() => { finish(); directory.remove(); });
|
|
31
48
|
await child.spawned;
|
|
32
|
-
return { child, directory };
|
|
49
|
+
return { child, profileLoaded: finish, directory };
|
|
33
50
|
}
|
|
34
51
|
catch (error) {
|
|
52
|
+
release?.();
|
|
35
53
|
directory.remove();
|
|
36
54
|
throw error;
|
|
37
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.js","sources":["../../../src/runtimes/dsh/launch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAoB,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAuB,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"launch.js","sources":["../../../src/runtimes/dsh/launch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAoB,M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,CAAC;QACjI,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,MAAM,KAAK,CAAC,OAAO,CAAC;QACpB,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IACrD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC;QAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAAC,MAAM,KAAK,CAAC;IAAC,CAAC;AACnE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { ModelEntry, ModelLister } from "../../contracts/list-models.js";
|
|
1
|
+
import type { ListModelsResult, ModelEntry, ModelLister } from "../../contracts/list-models.js";
|
|
2
2
|
import { type JsonRecord } from "../../shared/json.js";
|
|
3
3
|
/** The native catalog as `Session.model` selectors. A provider that could not list is not a model; the caller decides what no model means. */
|
|
4
4
|
export declare function projectDshModels(catalog: JsonRecord): readonly ModelEntry[];
|
|
5
|
+
/** Classify DSH's native `models` catalog without inspecting environment variables. */
|
|
6
|
+
export declare function dshCatalogResult(catalog: JsonRecord): ListModelsResult;
|
|
5
7
|
/** Native `llm.listProviders`, `listModels` and `resolveModelInfo`, in a short-lived process started the way a session is. */
|
|
6
8
|
export declare const dshListModels: ModelLister;
|
|
7
9
|
//# sourceMappingURL=list-models.d.ts.map
|