@songtonyli/dsh-cli 0.1.90 → 0.1.91
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 +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis/README.md +6 -2
- package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
- package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
- package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
- package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
- package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
- package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
- package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
- package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
- package/node_modules/@deepseek-ai/dsh/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
- package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
- package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
- package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
- package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +5 -10
- package/node_modules/encodeurl/package.json +7 -3
- package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
- package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
- package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
- package/node_modules/hast-util-to-html/lib/index.js +9 -4
- package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
- package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
- package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
- package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
- package/node_modules/hast-util-to-html/package.json +5 -23
- package/node_modules/hast-util-to-html/readme.md +3 -2
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/rrule/LICENCE +65 -0
- package/node_modules/rrule/README.md +837 -0
- package/node_modules/rrule/dist/es5/rrule.js +3803 -0
- package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
- package/node_modules/rrule/dist/esm/cache.js +95 -0
- package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
- package/node_modules/rrule/dist/esm/datetime.js +186 -0
- package/node_modules/rrule/dist/esm/dateutil.js +161 -0
- package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
- package/node_modules/rrule/dist/esm/helpers.js +118 -0
- package/node_modules/rrule/dist/esm/index.js +22 -0
- package/node_modules/rrule/dist/esm/iter/index.js +138 -0
- package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
- package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
- package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
- package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
- package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
- package/node_modules/rrule/dist/esm/iterresult.js +88 -0
- package/node_modules/rrule/dist/esm/iterset.js +63 -0
- package/node_modules/rrule/dist/esm/masks.js +30 -0
- package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
- package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
- package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
- package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
- package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
- package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
- package/node_modules/rrule/dist/esm/parsestring.js +128 -0
- package/node_modules/rrule/dist/esm/rrule.js +232 -0
- package/node_modules/rrule/dist/esm/rruleset.js +182 -0
- package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
- package/node_modules/rrule/dist/esm/types.js +14 -0
- package/node_modules/rrule/dist/esm/weekday.js +45 -0
- package/node_modules/rrule/package.json +79 -0
- package/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
- package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
- package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
- package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
- package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
- package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
- package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
- package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
- package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
|
@@ -33,6 +33,26 @@ kind: "package-reference"
|
|
|
33
33
|
|
|
34
34
|
插件在注册提醒激活处理方后发布 `sdkSessionActivation` 就绪标记;SDK 组合让 Schedule 依赖此标记,而非 Web Session controller。定时提醒也通过同一个 SDK Session 所有者投递。启动时已到期的提醒等待 SDK 成功初始化,再使用初始化指定的提供方、模型、推理强度和输出上限恢复会话。客户端可以首次接管提醒恢复的 Session;并发的提醒与客户端恢复共用一个 handle。关闭时释放等待初始化的提醒,并等待已经接纳的恢复完成。
|
|
35
35
|
|
|
36
|
+
<a id="command-input"></a>
|
|
37
|
+
|
|
38
|
+
下列支持范围是桌面已有、无需图形界面即可执行的原生命令。`/permission <preset>` 使用这条原生调用路径;Desktop 的 `/model` 选择器使用独立的模型选择 API。
|
|
39
|
+
|
|
40
|
+
`session/query` 是高层 SDK `run()` 发送字符串和内容块数组时使用的协议入口。普通输入保留内容块,使用既有的提示词队列。完整 SDK 识别裸 `/compact`、带非空 preset 的 `/permission <preset>`、`/plan [off|message]` 和 `/goal [objective|clear|edit objective|pause|resume]`,这些命令按官方定义 ID 识别。裸 `/permission` 或 `/权限`、`/compact extra` 以及 `/model` 等其余输入仍是普通提示词。命令缺失时也保留提示词路径;选中的 handler 失败后绝不回退。未知 preset 是原生命令错误。随已识别命令提交的编码图片块经过原生附件接纳。`session/prompt` 保留为低层排队输入入口,不经过原生 slash command 路由。
|
|
41
|
+
|
|
42
|
+
Host 与桌面适配器共用 `dsh-commands/builtin` 的定义身份及中英文别名解析。`/压缩`、`/权限`、`/计划` 和 `/目标` 跟随重命名后的官方定义,执行使用当前注册名。精确名称优先,但无关的同名定义不是 SDK 内置命令,仍作为普通提示词。其他内置能力仍不属于 SDK 命令集合。
|
|
43
|
+
|
|
44
|
+
第一个文本块提供完整命令行;编码图片可位于它之前或之后。该行匹配到受支持命令时,它必须是唯一的文本块,其余块必须为编码图片。额外文本块、持久图片引用及其他内容类型会在执行或入队前返回 JSON-RPC 错误,不回退为普通提示词。普通提示词保留全部内容块及其顺序。空数组和只包含空白文本的数组会被拒绝;允许仅图片输入。
|
|
45
|
+
|
|
46
|
+
已识别的命令通过接收 Agent 的原生命令注册器执行。Handler 校验命令参数和附件。压缩负责其辅助模型请求、历史替换和 checkpoint,并拒绝忙碌 Agent。权限变更保留原生状态和通知行为。Shutdown 取消待决命令,在释放 Agent 前排空 SDK 命令等待者。超时不等于回滚,客户端不能自动重试。结果和错误见[协议](../protocol/README.zh.md)。
|
|
47
|
+
|
|
48
|
+
权限命令只修改接收命令的 Session。后续输入和恢复的 Session 保留其持久化权限事实;其他 Session 保留各自状态,新 Session 使用配置的默认值。调用方的启动配置和已保存的用户默认值均不会被重写。模型选择不是 SDK slash 命令;恢复时的模型覆盖仍按上文描述的独立行为执行。
|
|
49
|
+
|
|
50
|
+
不带附件时,`/plan` 和 `/plan off` 只改变原生计划状态。带图片或正文的 `/plan` 通过原生 steer 提交,图片位于去除首尾空白的正文前;`/plan off` 带图片时返回错误且不改变状态。高层 `run()` 等待提交的模型活动、审阅及获批后的后续执行,也包括等待先前取消收尾后才开始执行的输入。原生命令响应确认 handler 完成;对应的 `session.query.completed` 通知确认高层活动结束。问答响应保留批准和反馈语义;`{ cancelled: true }` 转为原生 `ASK_CANCELLED`,使关闭审阅结束 turn 而不退出计划模式。
|
|
51
|
+
|
|
52
|
+
`/goal` 将语法委托给[原生目标命令](../../goal/command-goal/README.zh.md)。高层 `run()` 创建或恢复目标时跨越自动轮次等待,直到目标终止及收尾活动结束,也包括压缩期间排队的参考输入。完成返回 `completed`,暂停或清除返回 `aborted`,阻塞或非终态失去激活状态报告失败。等待收尾活动结束时保留首次持久化的目标终止状态,后续 clear 或 resume 操作不会替换它。完成通知携带最终助手文本,未输出助手文本时为空字符串;目标状态由结束原因和事件表达。仅改变状态的控制命令返回原生 handler 文本,不等待无关活动。底层 `session/wait` 仍可在轮次之间返回。恢复会话保留目标状态,直到 `/goal resume` 才重新激活。目标命令不改变权限或 SDK 启动设置。
|
|
53
|
+
|
|
54
|
+
创建和编辑接受图片,作为下一轮前的参考材料;查看、暂停、恢复和清除拒绝附件,不修改目标状态。压缩和权限命令也拒绝附件。处理器拒绝后绝不回退为普通提示词;与 Desktop 相同,图片可能在处理器拒绝前已被存储。这些 SDK 输入接受栅格图片,不接受一般文件上传或客户端提供的附件引用。
|
|
55
|
+
|
|
36
56
|
`session/working-directory/get` 接收 `{ sessionId }`;`session/working-directory/set` 接收 `{ sessionId, path }`。两者均返回 `{ cwd }`,并可创建未知 Session,而不启动模型轮次。读取通过工作目录服务恢复缺失目录;修改保留起始目录元数据与权限,并通过已记录的用户上下文告知模型。
|
|
37
57
|
|
|
38
58
|
### 组装
|
|
@@ -120,7 +140,7 @@ Stdout 只承载 JSON-RPC 帧,客户端可以逐字节解析;诊断信息应
|
|
|
120
140
|
|
|
121
141
|
#### 模型看到什么
|
|
122
142
|
|
|
123
|
-
|
|
143
|
+
普通 `session/query` 输入和已接受的 `session/prompt` 内容按原始内容块顺序进入用户消息。普通输入进入提示队列,不会重新应用权限默认值。内联 `SdkEncodedImageBlock` 会先通过组合中的附件存储完成校验与提交,因此会话日志保留内容寻址的图片引用而不是 base64 字节。此包不会添加系统提示词文本或工具 schema;这些内容来自组合中的其他插件。
|
|
124
144
|
|
|
125
145
|
#### Token 影响
|
|
126
146
|
|
|
@@ -130,6 +150,62 @@ Stdout 只承载 JSON-RPC 帧,客户端可以逐字节解析;诊断信息应
|
|
|
130
150
|
|
|
131
151
|
仅追加;新可见内容位于可复用请求前缀之后,不会使现有 KV Cache 条目失效。
|
|
132
152
|
|
|
153
|
+
### 手动压缩
|
|
154
|
+
|
|
155
|
+
#### 模型看到什么
|
|
156
|
+
|
|
157
|
+
命令行和结果不进入模型消息。现有[compact 命令](../../compaction/command-compact/README.zh.md#model-experience)发起辅助摘要请求,并将选定历史替换为已记录的 checkpoint,不增加普通 turn。
|
|
158
|
+
|
|
159
|
+
#### Token 影响
|
|
160
|
+
|
|
161
|
+
摘要请求成本和后续历史 token 减少由压缩所有者决定,SDK 分帧不增加模型 token。
|
|
162
|
+
|
|
163
|
+
#### KV Cache 影响
|
|
164
|
+
|
|
165
|
+
历史替换按原生压缩器规则改变可复用前缀,SDK 不增加独立失效。
|
|
166
|
+
|
|
167
|
+
### Session 权限变更
|
|
168
|
+
|
|
169
|
+
#### 模型看到什么
|
|
170
|
+
|
|
171
|
+
命令文本和结果不进入模型消息。[权限预设所有者](../../interaction/permission-presets/README.zh.md#model-experience)更新 runtime-context 用户快照,并可能注入审批策略通知。运行中 turn 的通知可能触发额外 step;默认预设不会改变 system 文本或工具 schema。
|
|
172
|
+
|
|
173
|
+
#### Token 影响
|
|
174
|
+
|
|
175
|
+
原生策略快照和通知增加其正常历史 token;SDK 分帧不增加 token。
|
|
176
|
+
|
|
177
|
+
#### KV Cache 影响
|
|
178
|
+
|
|
179
|
+
原生上下文更新追加在保留历史之后,不重写 system 前缀。
|
|
180
|
+
|
|
181
|
+
### 计划命令
|
|
182
|
+
|
|
183
|
+
#### 模型看到什么
|
|
184
|
+
|
|
185
|
+
原生 [plan-mode](../../plan/plan-mode/README.zh.md#model-experience) 指导生效,权限状态保持不变。命令正文通过 steer 成为普通用户消息;裸命令和命令结果文本不进入模型历史。退出工具在首次进入时加入,退出后仍保留声明。批准、反馈和关闭沿用原生工具结果与下一步行为。
|
|
186
|
+
|
|
187
|
+
#### Token 影响
|
|
188
|
+
|
|
189
|
+
计划指导、退出工具声明、提交的计划 Markdown 和审查结果具有各自的原生 token 成本。
|
|
190
|
+
|
|
191
|
+
#### KV Cache 影响
|
|
192
|
+
|
|
193
|
+
原生系统与工具更新决定前缀复用;SDK 不添加额外计划提示词或失效操作。
|
|
194
|
+
|
|
195
|
+
### 目标命令
|
|
196
|
+
|
|
197
|
+
#### 模型看到什么
|
|
198
|
+
|
|
199
|
+
原生[目标驱动器](../../goal/goal-round-driver/README.zh.md#model-experience) 接纳已记录的 `<goal_round>` 用户消息。目标工具保留其状态与完成策略,包括 `<goal_complete>` 或 `<goal_blocked>` 收尾上下文。命令文本与结果不进入模型历史。
|
|
200
|
+
|
|
201
|
+
#### Token 影响
|
|
202
|
+
|
|
203
|
+
每个接纳的轮次和收尾步骤具有各自的原生模型成本;SDK 路由不增加模型输入。
|
|
204
|
+
|
|
205
|
+
#### KV Cache 影响
|
|
206
|
+
|
|
207
|
+
目标轮次消息和工具结果按原生驱动器的行为追加到保留历史。
|
|
208
|
+
|
|
133
209
|
## 已知限制与延期工作
|
|
134
210
|
|
|
135
211
|
<a id="known-limitations-and-deferred-work"></a>
|
|
@@ -1,13 +1,154 @@
|
|
|
1
1
|
import Schema from "@deepseek-ai/schemastery";
|
|
2
2
|
import { JsonRpcLineTransport } from "@deepseek-ai/dsh-sdk-protocol";
|
|
3
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
4
|
import { resolve } from "node:path";
|
|
4
5
|
import { randomUUID } from "node:crypto";
|
|
5
6
|
import { UserQuestionError } from "@deepseek-ai/dsh-user-questions";
|
|
7
|
+
import { builtinCommandName, resolveCommand } from "@deepseek-ai/dsh-commands/builtin";
|
|
6
8
|
import { brandString } from "@deepseek-ai/dsh-brand";
|
|
7
9
|
import { admitEncodedImages } from "@deepseek-ai/dsh-attachment";
|
|
8
10
|
import { ReasoningEffortId, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
9
11
|
import { carrierKeyOf } from "@deepseek-ai/dsh-scope";
|
|
10
12
|
import * as LlmDeepSeek from "@deepseek-ai/dsh-llm-deepseek-api-key";
|
|
13
|
+
//#region lib/types/query-activity.js
|
|
14
|
+
/** Observe command-admitted activity through quiescence and preserve a goal's first terminal outcome. */
|
|
15
|
+
/** One command's SDK completion observer; its listeners end at completion, rejection, or shutdown. */
|
|
16
|
+
var QueryActivity = class {
|
|
17
|
+
agent;
|
|
18
|
+
transport;
|
|
19
|
+
onClose;
|
|
20
|
+
disposers = [];
|
|
21
|
+
commandId;
|
|
22
|
+
result;
|
|
23
|
+
closed = false;
|
|
24
|
+
input = false;
|
|
25
|
+
inputIdle = false;
|
|
26
|
+
goalId;
|
|
27
|
+
goalOutcome;
|
|
28
|
+
goalStopped = false;
|
|
29
|
+
response;
|
|
30
|
+
turnReason = "completed";
|
|
31
|
+
/**
|
|
32
|
+
* Subscribe before the native command starts so fast input and completion cannot be lost.
|
|
33
|
+
* @param ctx - server-owned context; goal services remain optional for other commands.
|
|
34
|
+
* @param agent - exact receiving Agent.
|
|
35
|
+
* @param transport - SDK notification stream.
|
|
36
|
+
* @param ownsInvocation - whether the current async operation is this native invocation.
|
|
37
|
+
* @param signal - server lifetime; abort releases observation without cancelling unrelated work.
|
|
38
|
+
* @param onClose - remove this closed observer from its owner's registry.
|
|
39
|
+
*/
|
|
40
|
+
constructor(ctx, agent, transport, ownsInvocation, signal, onClose) {
|
|
41
|
+
this.agent = agent;
|
|
42
|
+
this.transport = transport;
|
|
43
|
+
this.onClose = onClose;
|
|
44
|
+
this.disposers.push(ctx.on("session/event", (session, event) => {
|
|
45
|
+
if (session !== agent.session) return;
|
|
46
|
+
const own = this.result === void 0 && ownsInvocation();
|
|
47
|
+
if (own && event.type === "command/run") this.commandId ??= event.data.commandId;
|
|
48
|
+
if (own && event.type === "agent/inbox/spliced" && event.data.inserted.some((message) => message.source.kind === "user")) this.input = true;
|
|
49
|
+
if (event.type === "goal/change") {
|
|
50
|
+
const change = event.data;
|
|
51
|
+
if (own && (change.operation === "create" || change.operation === "resume")) this.goalId = change.goal.id;
|
|
52
|
+
if (change.operation === "clear") {
|
|
53
|
+
if (change.cleared.id === this.goalId) this.goalOutcome ??= "aborted";
|
|
54
|
+
} else if (change.goal.id === this.goalId && change.goal.phase !== "active") {
|
|
55
|
+
const goal = change.goal;
|
|
56
|
+
this.goalOutcome ??= goal.phase === "complete" ? "completed" : goal.phase === "paused" ? "aborted" : "error";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (this.input || this.goalId !== void 0) {
|
|
60
|
+
if (event.type === "assistant/message") this.response = event.data.message.content.flatMap((block) => block.type === "text" ? [block.text] : []).join("");
|
|
61
|
+
if (event.type === "turn/end") this.turnReason = event.data.reason.kind;
|
|
62
|
+
}
|
|
63
|
+
this.check();
|
|
64
|
+
}));
|
|
65
|
+
this.disposers.push(ctx.on("goal/activation-changed", (change) => {
|
|
66
|
+
if (change.sessionId !== agent.session.id || change.goal?.id !== this.goalId || change.goal?.activation !== "disarmed") return;
|
|
67
|
+
if (ctx.get("goals")?.get(agent)?.phase === "active") {
|
|
68
|
+
this.goalStopped = true;
|
|
69
|
+
this.check();
|
|
70
|
+
}
|
|
71
|
+
}));
|
|
72
|
+
this.disposers.push(ctx.on("agent/status", ({ agent: current }) => {
|
|
73
|
+
if (current !== agent) return;
|
|
74
|
+
this.check();
|
|
75
|
+
}));
|
|
76
|
+
this.disposers.push(ctx.on("agent/error", ({ agent: current }) => {
|
|
77
|
+
if (current === agent && (this.input || this.goalId !== void 0)) this.turnReason = "error";
|
|
78
|
+
}));
|
|
79
|
+
this.disposers.push(ctx.on("agent/disposed", ({ agent: current }) => {
|
|
80
|
+
if (current === agent) this.finish("error", "The Session Agent was disposed before the input finished.");
|
|
81
|
+
}));
|
|
82
|
+
const abort = () => {
|
|
83
|
+
this.close();
|
|
84
|
+
};
|
|
85
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
86
|
+
this.disposers.push(() => {
|
|
87
|
+
signal.removeEventListener("abort", abort);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Retain native settlement; admitted input waits through replacement work before completing.
|
|
92
|
+
* @param execution - the already-logged native result.
|
|
93
|
+
*/
|
|
94
|
+
accept(execution) {
|
|
95
|
+
this.commandId = execution.commandId;
|
|
96
|
+
this.result = execution.result;
|
|
97
|
+
if (this.input) this.agent.whenIdle().then(() => {
|
|
98
|
+
if (this.closed) return;
|
|
99
|
+
this.inputIdle = true;
|
|
100
|
+
this.check();
|
|
101
|
+
});
|
|
102
|
+
this.check();
|
|
103
|
+
}
|
|
104
|
+
/** Report withdrawal of the optional provider needed by an active goal query. */
|
|
105
|
+
goalUnavailable() {
|
|
106
|
+
if (this.goalId !== void 0) this.finish("error", "The goal service was unloaded before the goal finished.");
|
|
107
|
+
}
|
|
108
|
+
/** Release all listeners when the request fails or the server shuts down. */
|
|
109
|
+
close() {
|
|
110
|
+
if (this.closed) return;
|
|
111
|
+
this.closed = true;
|
|
112
|
+
for (const dispose of this.disposers.splice(0)) dispose();
|
|
113
|
+
this.onClose(this);
|
|
114
|
+
}
|
|
115
|
+
check() {
|
|
116
|
+
if (this.closed || this.result === void 0) return;
|
|
117
|
+
const result = this.result;
|
|
118
|
+
if (result.kind === "error") {
|
|
119
|
+
this.finish("error", result.text);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (this.input && !this.inputIdle) return;
|
|
123
|
+
if (this.goalId !== void 0) {
|
|
124
|
+
const outcome = this.goalOutcome ?? (this.goalStopped ? "error" : void 0);
|
|
125
|
+
if (outcome === void 0 || this.agent.status !== "idle") return;
|
|
126
|
+
const reason = outcome === "completed" ? this.turnReason : outcome;
|
|
127
|
+
const failure = this.goalOutcome === void 0 ? "Goal execution stopped before reaching a terminal state." : "";
|
|
128
|
+
this.finish(reason, this.response || failure);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (this.input) {
|
|
132
|
+
this.finish(this.turnReason, this.response ?? "");
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.finish("completed", result.text ?? "");
|
|
136
|
+
}
|
|
137
|
+
finish(finishReason, finalResponse) {
|
|
138
|
+
if (this.closed) return;
|
|
139
|
+
try {
|
|
140
|
+
if (this.commandId !== void 0) this.transport.notify("session.query.completed", {
|
|
141
|
+
sessionId: this.agent.session.id,
|
|
142
|
+
commandId: this.commandId,
|
|
143
|
+
finishReason,
|
|
144
|
+
finalResponse
|
|
145
|
+
});
|
|
146
|
+
} finally {
|
|
147
|
+
this.close();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
11
152
|
//#region lib/types/user-questions.js
|
|
12
153
|
/** Native SDK adapter for the shared user-questions seam. */
|
|
13
154
|
/** Owns question forwarding and cancellation for one SDK transport. */
|
|
@@ -67,6 +208,10 @@ function parseHostAnswer(value, questionIds) {
|
|
|
67
208
|
const badAnswer = () => {
|
|
68
209
|
throw new UserQuestionError("SDK host must answer each question id exactly once with selected labels and optional custom text", "BAD_ANSWER");
|
|
69
210
|
};
|
|
211
|
+
if (value !== null && typeof value === "object" && "cancelled" in value) {
|
|
212
|
+
if (value.cancelled !== true || Object.keys(value).length !== 1) return badAnswer();
|
|
213
|
+
throw new UserQuestionError("The user dismissed the SDK question", "ASK_CANCELLED");
|
|
214
|
+
}
|
|
70
215
|
if (value === null || typeof value !== "object" || !("answers" in value) || !Array.isArray(value.answers)) return badAnswer();
|
|
71
216
|
const answers = value.answers.map((answer) => {
|
|
72
217
|
if (answer === null || typeof answer !== "object" || !("id" in answer) || typeof answer.id !== "string" || !("selected" in answer) || !Array.isArray(answer.selected) || !answer.selected.every((label) => typeof label === "string") || "custom" in answer && typeof answer.custom !== "string") return badAnswer();
|
|
@@ -81,6 +226,84 @@ function parseHostAnswer(value, questionIds) {
|
|
|
81
226
|
return { answers };
|
|
82
227
|
}
|
|
83
228
|
//#endregion
|
|
229
|
+
//#region lib/types/query-input.js
|
|
230
|
+
/** Desktop text-input recognition for the SDK; command execution stays with the native registry. */
|
|
231
|
+
/**
|
|
232
|
+
* Recognize compact, explicit permission changes, plan, and goal by their definition identities.
|
|
233
|
+
* Canonical and Chinese aliases follow the effective registered name; unrelated exact names remain prompts.
|
|
234
|
+
* Other text remains a prompt.
|
|
235
|
+
* @param text - original input; the caller preserves it on the ordinary-prompt path.
|
|
236
|
+
* @param commands - exact receiving Agent's current command descriptors.
|
|
237
|
+
* @returns the supported command line using its registered name and a native-compatible separator, otherwise undefined.
|
|
238
|
+
*/
|
|
239
|
+
function queryCommand(text, commands) {
|
|
240
|
+
const trimmed = text.trim();
|
|
241
|
+
if (!trimmed.startsWith("/")) return void 0;
|
|
242
|
+
const separator = trimmed.search(/\s/u);
|
|
243
|
+
const descriptor = resolveCommand(separator === -1 ? trimmed.slice(1) : trimmed.slice(1, separator), commands);
|
|
244
|
+
if (descriptor === void 0) return void 0;
|
|
245
|
+
const builtin = builtinCommandName(descriptor);
|
|
246
|
+
const rawInput = separator === -1 ? "" : trimmed.slice(separator).replace(/^[^\S \t\r\n]/u, " ");
|
|
247
|
+
if (builtin === "compact" && separator === -1) return `/${descriptor.name}`;
|
|
248
|
+
if (builtin === "permission" && separator !== -1) return `/${descriptor.name}${rawInput}`;
|
|
249
|
+
if (builtin === "plan" || builtin === "goal") return `/${descriptor.name}${rawInput}`;
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region lib/types/query-content.js
|
|
253
|
+
/** SDK content-block validation and extraction for native command routing. */
|
|
254
|
+
/**
|
|
255
|
+
* Validate fields used by input routing before creating a Session.
|
|
256
|
+
* @param value - untrusted contentBlocks from a JSON-RPC query.
|
|
257
|
+
* @returns ordered input blocks; ordinary prompt admission owns non-routing content.
|
|
258
|
+
* @throws on an empty input or malformed text or encoded image fields.
|
|
259
|
+
*/
|
|
260
|
+
function queryContent(value) {
|
|
261
|
+
if (!Array.isArray(value) || value.length === 0) throw new TypeError("session/query requires a non-empty contentBlocks array");
|
|
262
|
+
const blocks = value.map((value) => {
|
|
263
|
+
if (typeof value !== "object" || value === null || Array.isArray(value) || !("type" in value) || typeof value.type !== "string") throw new TypeError("SDK content blocks require a string type");
|
|
264
|
+
if (value.type === "text") {
|
|
265
|
+
if (!("text" in value) || typeof value.text !== "string" || Object.keys(value).some((key) => key !== "type" && key !== "text")) throw new TypeError("SDK text blocks require only type and string text");
|
|
266
|
+
return {
|
|
267
|
+
...value,
|
|
268
|
+
type: "text",
|
|
269
|
+
text: value.text
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
if (value.type === "image" && "data" in value) {
|
|
273
|
+
if (typeof value.data !== "string" || !("mimeType" in value) || value.mimeType !== "image/png" && value.mimeType !== "image/jpeg" && value.mimeType !== "image/webp" && value.mimeType !== "image/gif" || "name" in value && typeof value.name !== "string" || Object.keys(value).some((key) => key !== "type" && key !== "data" && key !== "mimeType" && key !== "name")) throw new TypeError("SDK encoded images require string data, a supported mimeType and an optional string name");
|
|
274
|
+
return {
|
|
275
|
+
type: "image",
|
|
276
|
+
data: value.data,
|
|
277
|
+
mimeType: value.mimeType,
|
|
278
|
+
..."name" in value ? { name: value.name } : {}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
if (value.type === "image" && (!("attachment" in value) || typeof value.attachment !== "object" || value.attachment === null || Array.isArray(value.attachment))) throw new TypeError("SDK image blocks require encoded data or a durable attachment reference");
|
|
282
|
+
return {
|
|
283
|
+
...value,
|
|
284
|
+
type: value.type
|
|
285
|
+
};
|
|
286
|
+
});
|
|
287
|
+
if (blocks.every((block) => block.type === "text" && block.text.trim().length === 0)) throw new TypeError("session/query requires non-blank text or non-text content");
|
|
288
|
+
return blocks;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Select command images without joining text blocks or dropping other content.
|
|
292
|
+
* @param blocks - validated input containing a recognized command.
|
|
293
|
+
* @param text - the exact first text block used to recognize the command.
|
|
294
|
+
* @returns encoded images in their original order, before any attachment writes.
|
|
295
|
+
* @throws if the command shares its input with another text block or unsupported attachment representation.
|
|
296
|
+
*/
|
|
297
|
+
function queryCommandImages(blocks, text) {
|
|
298
|
+
const images = [];
|
|
299
|
+
for (const block of blocks) {
|
|
300
|
+
if (block === text) continue;
|
|
301
|
+
if (block.type !== "image" || !("data" in block)) throw new TypeError("Native SDK commands require one text block and optional encoded image blocks");
|
|
302
|
+
images.push(block);
|
|
303
|
+
}
|
|
304
|
+
return images;
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
84
307
|
//#region lib/types/server.js
|
|
85
308
|
/**
|
|
86
309
|
* JSON-RPC methods and notifications for out-of-process harness SDKs.
|
|
@@ -98,7 +321,8 @@ async function durablePromptContent(ctx, blocks) {
|
|
|
98
321
|
if (attachments === void 0) throw new Error("SDK image prompt requires an attachment store");
|
|
99
322
|
const refs = await admitEncodedImages(attachments, images.map((image) => ({
|
|
100
323
|
data: image.data,
|
|
101
|
-
mediaType: image.mimeType
|
|
324
|
+
mediaType: image.mimeType,
|
|
325
|
+
...image.name === void 0 ? {} : { name: image.name }
|
|
102
326
|
})));
|
|
103
327
|
let next = 0;
|
|
104
328
|
return blocks.map((block) => encodedImage(block) ? {
|
|
@@ -131,6 +355,10 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
131
355
|
llmFiber;
|
|
132
356
|
sessions = /* @__PURE__ */ new Map();
|
|
133
357
|
sessionCreations = /* @__PURE__ */ new Map();
|
|
358
|
+
commandTasks = /* @__PURE__ */ new Set();
|
|
359
|
+
queryInvocation = new AsyncLocalStorage();
|
|
360
|
+
queryActivities = /* @__PURE__ */ new Set();
|
|
361
|
+
goalLifetime;
|
|
134
362
|
disposers = [];
|
|
135
363
|
shutdownTask;
|
|
136
364
|
shuttingDown = false;
|
|
@@ -145,6 +373,11 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
145
373
|
this.ctx = ctx;
|
|
146
374
|
this.transport = transport;
|
|
147
375
|
this.options = options;
|
|
376
|
+
this.goalLifetime = ctx.inject(["goals"], (goalCtx) => {
|
|
377
|
+
goalCtx.effect(() => () => {
|
|
378
|
+
for (const activity of this.queryActivities) activity.goalUnavailable();
|
|
379
|
+
});
|
|
380
|
+
});
|
|
148
381
|
this.disposers.push(ctx.on("approval/request", async (request, next) => {
|
|
149
382
|
if (!this.approvalRequests || !this.ownsAgent(request.agent)) return next();
|
|
150
383
|
const params = {
|
|
@@ -271,8 +504,10 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
271
504
|
async prompt(params) {
|
|
272
505
|
if (!this.initialized) throw new Error("SDK server is not initialized");
|
|
273
506
|
const rec = await this.getOrCreateSession(params.sessionId);
|
|
507
|
+
this.lifetime.signal.throwIfAborted();
|
|
274
508
|
this.assertLiveAgent(rec, params.sessionId);
|
|
275
509
|
const content = await durablePromptContent(this.ctx, params.contentBlocks);
|
|
510
|
+
this.lifetime.signal.throwIfAborted();
|
|
276
511
|
this.assertLiveAgent(rec, params.sessionId);
|
|
277
512
|
const message = createUserMessage({
|
|
278
513
|
content,
|
|
@@ -282,6 +517,63 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
282
517
|
return { messageId: message.id };
|
|
283
518
|
}
|
|
284
519
|
/**
|
|
520
|
+
* Dispatch text as a Desktop-style input; native commands own Session state changes.
|
|
521
|
+
* @param params - ordered content blocks and receiving Session.
|
|
522
|
+
* @returns a prompt receipt or native command acknowledgment; command activity completes by notification.
|
|
523
|
+
* @throws on runtime failure; a recognized command failure never falls back to a prompt.
|
|
524
|
+
*/
|
|
525
|
+
async query(params) {
|
|
526
|
+
if (!this.initialized) throw new Error("SDK server is not initialized");
|
|
527
|
+
if (this.shuttingDown) throw new Error("SDK server is shutting down");
|
|
528
|
+
const text = params.contentBlocks.find((block) => block.type === "text");
|
|
529
|
+
if (text?.text.trim().startsWith("/")) {
|
|
530
|
+
const commands = this.ctx.get("commands");
|
|
531
|
+
if (commands !== void 0) {
|
|
532
|
+
const rec = await this.getOrCreateSession(params.sessionId);
|
|
533
|
+
this.lifetime.signal.throwIfAborted();
|
|
534
|
+
this.assertLiveAgent(rec, params.sessionId);
|
|
535
|
+
const line = queryCommand(text.text, commands.list(rec.handle.agent));
|
|
536
|
+
if (line !== void 0) {
|
|
537
|
+
const images = queryCommandImages(params.contentBlocks, text);
|
|
538
|
+
const activity = new QueryActivity(this.ctx, rec.handle.agent, this.transport, () => this.queryInvocation.getStore() === activity, this.lifetime.signal, (current) => {
|
|
539
|
+
this.queryActivities.delete(current);
|
|
540
|
+
});
|
|
541
|
+
this.queryActivities.add(activity);
|
|
542
|
+
try {
|
|
543
|
+
const task = this.queryInvocation.run(activity, () => commands.execute(rec.handle.agent, line, images.map((image) => ({
|
|
544
|
+
type: "image",
|
|
545
|
+
data: image.data,
|
|
546
|
+
mediaType: image.mimeType,
|
|
547
|
+
...image.name === void 0 ? {} : { name: image.name }
|
|
548
|
+
})), this.lifetime.signal));
|
|
549
|
+
this.commandTasks.add(task);
|
|
550
|
+
try {
|
|
551
|
+
const execution = await task;
|
|
552
|
+
if (execution === void 0) throw new Error("The selected command is unavailable in this SDK profile");
|
|
553
|
+
activity.accept(execution);
|
|
554
|
+
return {
|
|
555
|
+
kind: "command",
|
|
556
|
+
execution
|
|
557
|
+
};
|
|
558
|
+
} finally {
|
|
559
|
+
this.commandTasks.delete(task);
|
|
560
|
+
}
|
|
561
|
+
} catch (error) {
|
|
562
|
+
activity.close();
|
|
563
|
+
throw error;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return {
|
|
569
|
+
kind: "prompt",
|
|
570
|
+
...await this.prompt({
|
|
571
|
+
sessionId: params.sessionId,
|
|
572
|
+
contentBlocks: params.contentBlocks
|
|
573
|
+
})
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
285
577
|
* Restore a persisted session and repair its interrupted final turn without sending input.
|
|
286
578
|
* Uses the initialized model route while preserving the stored session identity and directory.
|
|
287
579
|
* Rejects missing, unreadable, or already owned sessions; never creates a replacement.
|
|
@@ -383,6 +675,8 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
383
675
|
this.initialization.resolve();
|
|
384
676
|
const pendingCreations = [...this.sessionCreations.values()];
|
|
385
677
|
await Promise.allSettled(pendingCreations);
|
|
678
|
+
await Promise.allSettled([...this.commandTasks]);
|
|
679
|
+
this.queryInvocation.disable();
|
|
386
680
|
this.sessionCreations.clear();
|
|
387
681
|
this.scheduledSessions.clear();
|
|
388
682
|
const records = [...this.sessions.values()];
|
|
@@ -398,7 +692,11 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
398
692
|
} catch (error) {
|
|
399
693
|
failures.push(error);
|
|
400
694
|
}
|
|
401
|
-
const teardownResults = await Promise.allSettled([
|
|
695
|
+
const teardownResults = await Promise.allSettled([
|
|
696
|
+
this.goalLifetime.dispose(),
|
|
697
|
+
...records.map((rec) => Promise.resolve().then(() => rec.handle.dispose())),
|
|
698
|
+
...this.llmFiber === void 0 ? [] : [Promise.resolve().then(() => this.llmFiber?.dispose())]
|
|
699
|
+
]);
|
|
402
700
|
this.llmFiber = void 0;
|
|
403
701
|
failures.push(...teardownResults.filter((result) => result.status === "rejected").map((result) => result.reason));
|
|
404
702
|
if (failures.length === 1) throw failures[0];
|
|
@@ -416,6 +714,12 @@ var HarnessSdkJsonRpcServer = class {
|
|
|
416
714
|
switch (method) {
|
|
417
715
|
case "initialize": return this.initialize(params);
|
|
418
716
|
case "session/prompt": return this.prompt(params);
|
|
717
|
+
case "session/query":
|
|
718
|
+
if (typeof params?.sessionId !== "string" || params.sessionId.length === 0 || Object.keys(params).some((key) => key !== "sessionId" && key !== "contentBlocks")) throw new TypeError("session/query requires only a non-empty sessionId and contentBlocks");
|
|
719
|
+
return this.query({
|
|
720
|
+
sessionId: brandString(params.sessionId),
|
|
721
|
+
contentBlocks: queryContent(params.contentBlocks)
|
|
722
|
+
});
|
|
419
723
|
case "session/resume": {
|
|
420
724
|
const sessionId = params?.sessionId;
|
|
421
725
|
if (typeof sessionId !== "string" || sessionId.length === 0) throw new TypeError("session/resume requires a non-empty sessionId string");
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"@deepseek-ai/cordis": "4.0.6-alpha.1",
|
|
37
37
|
"@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
|
|
38
38
|
"@deepseek-ai/dsh-attachment": "0.2.2-alpha.2",
|
|
39
|
+
"@deepseek-ai/dsh-commands": "0.2.2-alpha.2",
|
|
40
|
+
"@deepseek-ai/dsh-goal": "0.2.2-alpha.2",
|
|
39
41
|
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
40
42
|
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-alpha.2",
|
|
41
43
|
"@deepseek-ai/dsh-schedule": "0.2.2-alpha.2",
|
|
@@ -53,15 +55,28 @@
|
|
|
53
55
|
"@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
|
|
54
56
|
"@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.2",
|
|
55
57
|
"@deepseek-ai/dsh-attachment": "0.2.2-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-command-compact": "0.2.2-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-command-goal": "0.2.2-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-commands": "0.2.2-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.2-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-goal": "0.2.2-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-goal-round-driver": "0.2.2-alpha.2",
|
|
56
64
|
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
57
65
|
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.2-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
|
|
58
69
|
"@deepseek-ai/dsh-schedule": "0.2.2-alpha.2",
|
|
59
70
|
"@deepseek-ai/dsh-scope": "0.2.2-alpha.2",
|
|
60
71
|
"@deepseek-ai/dsh-sdk-protocol": "0.2.2-alpha.2",
|
|
61
72
|
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
62
73
|
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.2",
|
|
63
74
|
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
|
|
75
|
+
"@deepseek-ai/dsh-shell": "0.2.2-alpha.2",
|
|
64
76
|
"@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
|
|
77
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-alpha.2",
|
|
78
|
+
"@deepseek-ai/dsh-tool-goal": "0.2.2-alpha.2",
|
|
79
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
|
|
65
80
|
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.2",
|
|
66
81
|
"@deepseek-ai/dsh-user-questions": "0.2.2-alpha.2",
|
|
67
82
|
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2"
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
en: be53c71505c0d1b4
|
|
22
22
|
zh: 6210dee577715539
|
|
23
23
|
/deepseek-ai-dsh-sdk-protocol/use-this-package/the-sdk-methods:
|
|
24
|
-
en:
|
|
25
|
-
zh:
|
|
24
|
+
en: 5f739d9a99c579d7
|
|
25
|
+
zh: 1f58e9123396f68a
|
|
26
26
|
/deepseek-ai-dsh-sdk-protocol/use-this-package/native-user-questions:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: 65ea66231b17b6cf
|
|
28
|
+
zh: 8e1c57d0c27f842f
|
|
29
29
|
/deepseek-ai-dsh-sdk-protocol/use-this-package/payload-semantics:
|
|
30
30
|
en: 3cf5d4ffbaf37f69
|
|
31
31
|
zh: 23c4450e31c91d67
|
|
@@ -41,16 +41,18 @@ Both wire ends share one method set: client-to-server requests, opt-in server-to
|
|
|
41
41
|
|---|---|---|
|
|
42
42
|
| client→server | `initialize` | `InitializeParams` → `InitializeResult` |
|
|
43
43
|
| client→server | `session/prompt` | `SessionPromptParams` → `SessionPromptResult` (durable enqueue receipt) |
|
|
44
|
+
| client→server | `session/query` | `SessionQueryParams` → `SessionQueryResult` |
|
|
44
45
|
| client→server | `session/resume` | `SessionResumeParams` → `{}` |
|
|
45
46
|
| client→server | `session/wait` | `SessionWaitParams` → `{}` |
|
|
46
47
|
| client→server | `session/working-directory/get` | `SessionWorkingDirectoryParams` → `SessionWorkingDirectoryResult` |
|
|
47
48
|
| client→server | `session/working-directory/set` | `SessionWorkingDirectorySetParams` → `SessionWorkingDirectoryResult` |
|
|
48
49
|
| client→server | `shutdown` | no params → `{}` |
|
|
49
50
|
| server→client | `approval/request` | `ApprovalRequestParams` → `ApprovalRequestResult` |
|
|
50
|
-
| server→client | `user-question/ask` | `SdkUserQuestionRequest` → `
|
|
51
|
+
| server→client | `user-question/ask` | `SdkUserQuestionRequest` → `SdkUserQuestionResult` |
|
|
51
52
|
| server→client | `user-question.cancelled` | `SdkUserQuestionCancelled` |
|
|
52
53
|
| server→client | `session.event` | `SessionEventNotification` (every session in the runtime, unfiltered) |
|
|
53
54
|
| server→client | `session.status` | `SessionStatusNotification` (whole-agent `running`/`idle` transition) |
|
|
55
|
+
| server→client | `session.query.completed` | `{ sessionId, commandId, finalResponse, finishReason }` |
|
|
54
56
|
| server→client | `subagent.started` | `SubagentStartedNotification` |
|
|
55
57
|
| server→client | `subagent.finished` | `SubagentFinishedNotification` (in-process runs only) |
|
|
56
58
|
|
|
@@ -58,12 +60,18 @@ Both wire ends share one method set: client-to-server requests, opt-in server-to
|
|
|
58
60
|
|
|
59
61
|
`session/wait` accepts `{ sessionId }` for an existing SDK-owned session and returns `{}` after the root stays idle and progressing managed descendant work finishes. Idle descendants with parked input remain resident without blocking this wait. Unknown ids and live Agent failures without a newer committed terminal are rejected. Notifications committed during the wait precede its response on the same transport; raw `session.status` transitions retain their whole-agent meaning.
|
|
60
62
|
|
|
63
|
+
`session/query` accepts `{ sessionId, contentBlocks }`, where `contentBlocks` uses `SdkPromptContentBlock[]`. Both SDKs normalize string input into a text block and send content-block arrays through this same entry. The runtime replies with `{ kind: "prompt", messageId }` for queued ordinary input, preserving its block order, or `{ kind: "command", execution }` after a supported command settles. A recognized command requires one complete text block with only encoded images beside it; other combinations reject before execution or enqueue. The images go through native attachment admission and handler validation. Empty arrays and arrays containing only blank text are rejected; image-only input is allowed. A prompt receipt is not a model result; command completion does not require an inbox receipt or idle notification. Recognition and the supported command set belong to the [SDK server](../server/README.md).
|
|
64
|
+
|
|
65
|
+
`session/prompt` queues content blocks without native slash-command routing; runtime skill recognition still applies.
|
|
66
|
+
|
|
67
|
+
Command lifecycle notifications precede the `session/query` handler response. A command query ends high-level observation with `session.query.completed` for the same `commandId`, after model activity it starts; goal creation and resume include goal termination and closing activity. State-only commands need no model turn, and their completion notification can precede the response. SDKs consume this receipt internally and return `RunResult`; forwarders must preserve order. Shutdown cancels unfinished observation.
|
|
68
|
+
|
|
61
69
|
`session/resume` accepts a non-empty persisted `{ sessionId }` and returns `{}` after restoring that exact session. It requires initialization and the original persistence store, sends no new input, and rejects missing, unreadable, incompatible, or occupied sessions without creating a replacement. Historical events remain in the stored log; notifications report newly committed events.
|
|
62
70
|
|
|
63
71
|
<a id="native-user-questions"></a>
|
|
64
72
|
### Native user questions
|
|
65
73
|
|
|
66
|
-
An answering host sets `initialize.capabilities.userQuestions: true`. The runtime sends `user-question/ask` with `{ requestId, sessionId, questions }`; questions retain their original ids, options, detail, and presentation intent. The host returns `{ answers: [{ id, selected, custom? }] }`, naming every question id exactly once. Invalid batches fail with `BAD_ANSWER`; host or transport failures fail with `PROVIDER_ERROR`. The SDK does not synthesize answers.
|
|
74
|
+
An answering host sets `initialize.capabilities.userQuestions: true`. The runtime sends `user-question/ask` with `{ requestId, sessionId, questions }`; questions retain their original ids, options, detail, and presentation intent. The host returns `{ answers: [{ id, selected, custom? }] }`, naming every question id exactly once, or `{ cancelled: true }` with no other fields for a user dismissal. Dismissal maps to native `ASK_CANCELLED`; it is not runtime cancellation, a provider failure, or approval. Invalid batches fail with `BAD_ANSWER`; host or transport failures fail with `PROVIDER_ERROR`. The SDK does not synthesize answers.
|
|
67
75
|
|
|
68
76
|
`user-question.cancelled` identifies the request that stopped waiting. The host cancels its own work and discards the question; the runtime abandons its pending RPC and ignores late responses. Without the advertised capability, existing in-process answerers remain responsible and an absent answerer reports `NO_PROVIDER`. This flow requires no GUI.
|
|
69
77
|
|
|
@@ -41,16 +41,18 @@ kind: "package-library"
|
|
|
41
41
|
|---|---|---|
|
|
42
42
|
| client→server | `initialize` | `InitializeParams` → `InitializeResult` |
|
|
43
43
|
| client→server | `session/prompt` | `SessionPromptParams` → `SessionPromptResult`(持久入队回执) |
|
|
44
|
+
| client→server | `session/query` | `SessionQueryParams` → `SessionQueryResult` |
|
|
44
45
|
| client→server | `session/resume` | `SessionResumeParams` → `{}` |
|
|
45
46
|
| client→server | `session/wait` | `SessionWaitParams` → `{}` |
|
|
46
47
|
| 客户端→服务端 | `session/working-directory/get` | `SessionWorkingDirectoryParams` → `SessionWorkingDirectoryResult` |
|
|
47
48
|
| 客户端→服务端 | `session/working-directory/set` | `SessionWorkingDirectorySetParams` → `SessionWorkingDirectoryResult` |
|
|
48
49
|
| client→server | `shutdown` | 无参数 → `{}` |
|
|
49
50
|
| server→client | `approval/request` | `ApprovalRequestParams` → `ApprovalRequestResult` |
|
|
50
|
-
| server→client | `user-question/ask` | `SdkUserQuestionRequest` → `
|
|
51
|
+
| server→client | `user-question/ask` | `SdkUserQuestionRequest` → `SdkUserQuestionResult` |
|
|
51
52
|
| server→client | `user-question.cancelled` | `SdkUserQuestionCancelled` |
|
|
52
53
|
| server→client | `session.event` | `SessionEventNotification`(运行时内每个会话,不过滤) |
|
|
53
54
|
| server→client | `session.status` | `SessionStatusNotification`(整个 agent(智能体)的 `running`/`idle` 转换) |
|
|
55
|
+
| server→client | `session.query.completed` | `{ sessionId, commandId, finalResponse, finishReason }` |
|
|
54
56
|
| server→client | `subagent.started` | `SubagentStartedNotification` |
|
|
55
57
|
| server→client | `subagent.finished` | `SubagentFinishedNotification`(仅进程内运行) |
|
|
56
58
|
|
|
@@ -58,12 +60,18 @@ kind: "package-library"
|
|
|
58
60
|
|
|
59
61
|
`session/wait` 接受已有 SDK 会话的 `{ sessionId }`,在根 Agent 持续空闲且活跃的受管理后代工作结束后返回 `{}`。带有停放输入的空闲后代保持驻留,不阻塞这次等待。未知 id,以及没有后续终止事件记录的 Agent 运行时错误,都会使请求失败。等待期间提交的通知在同一传输上先于响应到达;原始 `session.status` 转换仍表示整个 Agent 的状态。
|
|
60
62
|
|
|
63
|
+
`session/query` 接受 `{ sessionId, contentBlocks }`,其中 `contentBlocks` 使用 `SdkPromptContentBlock[]`。两个 SDK 都将字符串规范化为文本块,并通过同一入口发送内容块数组。普通输入保留内容块顺序排队,返回 `{ kind: "prompt", messageId }`;受支持命令结束后返回 `{ kind: "command", execution }`。已识别命令要求一个完整文本块,其他块只能是编码图片;其他组合会在执行或入队前被拒绝。图片经过原生附件接纳与处理器校验。空数组和只包含空白文本的数组会被拒绝;允许仅图片输入。Prompt 回执不是模型结果,命令完成也不要求 inbox 回执或 idle 通知。识别规则及受支持命令由 [SDK 服务端](../server/README.zh.md)定义。
|
|
64
|
+
|
|
65
|
+
`session/prompt` 将内容块排入队列,不经过原生 slash command 路由;运行时 skill(技能)识别仍然适用。
|
|
66
|
+
|
|
67
|
+
命令生命周期通知先于 `session/query` 的 handler 响应到达。命令查询以同一 `commandId` 的 `session.query.completed` 通知结束高层观察,等待命令启动的模型活动;目标创建和恢复还等待目标终止及收尾活动。状态命令无需模型 turn,其完成通知可以先于响应到达。SDK 内部消费该回执并返回 `RunResult`,转发器必须保持顺序。关闭会取消尚未结束的观察。
|
|
68
|
+
|
|
61
69
|
`session/resume` 接受非空的持久化 `{ sessionId }`,恢复该会话后返回 `{}`。它要求先完成初始化并使用原持久化存储,不发送新输入;会话缺失、不可读、不兼容或被占用时,请求失败且不创建替代会话。历史事件保留在存储日志中,通知只报告新提交的事件。
|
|
62
70
|
|
|
63
71
|
<a id="native-user-questions"></a>
|
|
64
72
|
### 原生用户问答
|
|
65
73
|
|
|
66
|
-
提供回答能力的宿主设置 `initialize.capabilities.userQuestions: true`。运行时发送带有 `{ requestId, sessionId, questions }` 的 `user-question/ask`;问题保留原始 id、选项、detail 与展示意图。宿主返回 `{ answers: [{ id, selected, custom? }] }`,每个问题 id
|
|
74
|
+
提供回答能力的宿主设置 `initialize.capabilities.userQuestions: true`。运行时发送带有 `{ requestId, sessionId, questions }` 的 `user-question/ask`;问题保留原始 id、选项、detail 与展示意图。宿主返回 `{ answers: [{ id, selected, custom? }] }`,每个问题 id 必须恰好出现一次;用户关闭问题时可返回只含 `{ cancelled: true }` 的对象。关闭映射为原生 `ASK_CANCELLED`,不表示运行时取消、回答方失败或批准。无效答案批次返回 `BAD_ANSWER`,宿主或传输失败返回 `PROVIDER_ERROR`。SDK 不生成替代答案。
|
|
67
75
|
|
|
68
76
|
`user-question.cancelled` 标识已停止等待的请求。宿主取消自己的工作并丢弃问题;运行时放弃对应的待决 RPC,忽略晚到响应。未声明该能力时,仍由现有进程内回答方处理;缺少回答方则报告 `NO_PROVIDER`。此流程不要求 GUI。
|
|
69
77
|
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
+
"@deepseek-ai/dsh-commands": "0.2.2-alpha.2",
|
|
29
30
|
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
30
31
|
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
31
32
|
"@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"@deepseek-ai/dsh-user-questions": "0.2.2-alpha.2"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
37
|
+
"@deepseek-ai/dsh-commands": "0.2.2-alpha.2",
|
|
36
38
|
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
37
39
|
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
38
40
|
"@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
|