@songtonyli/dsh-cli 0.1.89 → 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-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +24 -8
- 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
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { randomUUID } from "node:crypto";
|
|
2
|
-
import assert from "node:assert/strict";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region lib/types/native-client.js
|
|
5
|
-
/** Agent-scoped JSONL requests over a connection to the shared native helper. */
|
|
6
|
-
const Reply = z.union([z.object({
|
|
7
|
-
id: z.string(),
|
|
8
|
-
result: z.json()
|
|
9
|
-
}).strict(), z.object({
|
|
10
|
-
id: z.string(),
|
|
11
|
-
error: z.object({
|
|
12
|
-
code: z.string().min(1),
|
|
13
|
-
message: z.string()
|
|
14
|
-
}).strict()
|
|
15
|
-
}).strict()]);
|
|
16
|
-
const screenshotPrefix = "[cua-screenshot] ";
|
|
17
|
-
const ScreenshotDiagnostic = z.object({
|
|
18
|
-
requestId: z.string(),
|
|
19
|
-
stage: z.string(),
|
|
20
|
-
elapsedMs: z.number().nonnegative(),
|
|
21
|
-
errorCode: z.string().optional()
|
|
22
|
-
});
|
|
23
|
-
const WireReply = z.union([Reply, ScreenshotDiagnostic.extend({ type: z.literal("diagnostic") })]);
|
|
24
|
-
/** Native refusal or transport failure with a stable machine-readable code. */
|
|
25
|
-
var NativeError = class extends Error {
|
|
26
|
-
code;
|
|
27
|
-
/**
|
|
28
|
-
* @param code - Native error code or a transport-owned NATIVE_* code.
|
|
29
|
-
* @param message - Actionable diagnostic, without its code prefix.
|
|
30
|
-
* @param options - Original failure when available.
|
|
31
|
-
*/
|
|
32
|
-
constructor(code, message, options) {
|
|
33
|
-
super(`${code}: ${message}`, options);
|
|
34
|
-
this.code = code;
|
|
35
|
-
this.name = "NativeError";
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
/** One Agent owns this connection and its native handles; other Agents use independent connections. */
|
|
39
|
-
var NativeClient = class {
|
|
40
|
-
reportDiagnostic;
|
|
41
|
-
handle;
|
|
42
|
-
config;
|
|
43
|
-
chunks = [];
|
|
44
|
-
bufferedBytes = 0;
|
|
45
|
-
failure;
|
|
46
|
-
disposal;
|
|
47
|
-
diagnostics = [];
|
|
48
|
-
diagnosticBytes = 0;
|
|
49
|
-
discardedDiagnostics = false;
|
|
50
|
-
active;
|
|
51
|
-
/**
|
|
52
|
-
* @param owner - Managed subprocess provider.
|
|
53
|
-
* @param config - Executable, transport bounds and deadlines.
|
|
54
|
-
* @param createChannel - Platform-owned connection and process lifecycle.
|
|
55
|
-
* @param reportDiagnostic - Optional Host diagnostic sink; never receives captured content.
|
|
56
|
-
*/
|
|
57
|
-
constructor(owner, config, createChannel, reportDiagnostic) {
|
|
58
|
-
this.reportDiagnostic = reportDiagnostic;
|
|
59
|
-
this.config = config;
|
|
60
|
-
this.handle = createChannel(owner, config);
|
|
61
|
-
this.handle.stdout.on("data", (chunk) => {
|
|
62
|
-
this.receive(chunk);
|
|
63
|
-
});
|
|
64
|
-
this.handle.stdout.on("error", (error) => {
|
|
65
|
-
this.fail(new NativeError("NATIVE_IO", `Native connection failed: ${error.message}`, { cause: error }));
|
|
66
|
-
});
|
|
67
|
-
this.handle.stdout.on("end", () => {
|
|
68
|
-
this.fail(new NativeError("NATIVE_EOF", "Native connection ended; acquire fresh application handles"));
|
|
69
|
-
});
|
|
70
|
-
this.handle.stdout.on("close", () => {
|
|
71
|
-
this.fail(new NativeError("NATIVE_EOF", "Native connection closed; acquire fresh application handles"));
|
|
72
|
-
});
|
|
73
|
-
this.handle.stdin.on("error", (error) => {
|
|
74
|
-
this.fail(new NativeError("NATIVE_IO", "Writing native requests failed", { cause: error }));
|
|
75
|
-
});
|
|
76
|
-
this.handle.done.then(() => {
|
|
77
|
-
this.fail(new NativeError("NATIVE_EXITED", "Native connection closed; acquire fresh application handles"));
|
|
78
|
-
}, (error) => {
|
|
79
|
-
this.fail(new NativeError("NATIVE_EXITED", "Native connection failed", { cause: error }));
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Send one operation. Native refusals preserve this connection; transport failures invalidate its handles.
|
|
84
|
-
* @param method - Helper operation name.
|
|
85
|
-
* @param params - JSON operation parameters.
|
|
86
|
-
* @param signal - Cancellation stops this request; the connection survives when native cleanup acknowledges it.
|
|
87
|
-
* @param callId - Logged tool invocation ID, when this request belongs to a tool execution.
|
|
88
|
-
* @returns The validated helper result, after failure cleanup when needed.
|
|
89
|
-
*/
|
|
90
|
-
async request(method, params, signal, callId) {
|
|
91
|
-
if (signal.aborted) throw new NativeError("NATIVE_CANCELLED", "Operation was cancelled before dispatch");
|
|
92
|
-
if (this.disposed) {
|
|
93
|
-
await this.dispose();
|
|
94
|
-
throw new NativeError("NATIVE_CLOSED", "Helper is closed; acquire fresh application handles", { cause: this.failure });
|
|
95
|
-
}
|
|
96
|
-
if (this.active) throw new NativeError("NATIVE_BUSY", "Await native operations sequentially");
|
|
97
|
-
const id = callId ?? randomUUID();
|
|
98
|
-
const capture = method === "screenshot";
|
|
99
|
-
this.diagnostics = [];
|
|
100
|
-
this.diagnosticBytes = 0;
|
|
101
|
-
this.discardedDiagnostics = false;
|
|
102
|
-
const started = performance.now();
|
|
103
|
-
let nativeFailure;
|
|
104
|
-
let interruption;
|
|
105
|
-
let cancellationTimer;
|
|
106
|
-
const frame = `${JSON.stringify({
|
|
107
|
-
id,
|
|
108
|
-
method,
|
|
109
|
-
params
|
|
110
|
-
})}\n`;
|
|
111
|
-
if (Buffer.byteLength(frame) > this.config.maxRequestBytes) throw new NativeError("NATIVE_REQUEST_LIMIT", "Request exceeded the configured byte limit before dispatch");
|
|
112
|
-
const outcome = Promise.withResolvers();
|
|
113
|
-
this.active = {
|
|
114
|
-
id,
|
|
115
|
-
resolve: outcome.resolve,
|
|
116
|
-
reject: (error) => {
|
|
117
|
-
nativeFailure = error;
|
|
118
|
-
outcome.reject(error);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
if (capture) this.diagnostic(screenshotPrefix + JSON.stringify({
|
|
122
|
-
requestId: id,
|
|
123
|
-
stage: "host.dispatch",
|
|
124
|
-
elapsedMs: 0
|
|
125
|
-
}));
|
|
126
|
-
const interrupt = (error) => {
|
|
127
|
-
if (interruption || this.active?.id !== id) return;
|
|
128
|
-
interruption = error;
|
|
129
|
-
cancellationTimer = setTimeout(() => {
|
|
130
|
-
this.fail(new NativeError("NATIVE_CLEANUP", "Native operation did not acknowledge cancellation; acquire fresh application handles", { cause: error }));
|
|
131
|
-
}, this.config.graceMs);
|
|
132
|
-
try {
|
|
133
|
-
this.handle.stdin.write(`${JSON.stringify({
|
|
134
|
-
type: "cancel",
|
|
135
|
-
id
|
|
136
|
-
})}\n`, (failure) => {
|
|
137
|
-
if (failure) this.fail(new NativeError("NATIVE_IO", "Sending native cancellation failed", { cause: failure }));
|
|
138
|
-
});
|
|
139
|
-
} catch (failure) {
|
|
140
|
-
this.fail(new NativeError("NATIVE_IO", "Sending native cancellation failed", { cause: failure }));
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const abort = () => {
|
|
144
|
-
interrupt(new NativeError("NATIVE_CANCELLED", "Operation cancelled; inspect fresh state before retrying input"));
|
|
145
|
-
};
|
|
146
|
-
signal.addEventListener("abort", abort, { once: true });
|
|
147
|
-
const timeoutMs = capture ? Math.min(this.config.timeoutMs, this.config.screenshotTimeoutMs) : this.config.timeoutMs;
|
|
148
|
-
const timer = setTimeout(() => {
|
|
149
|
-
interrupt(new NativeError("NATIVE_TIMEOUT", `Operation exceeded ${timeoutMs}ms`));
|
|
150
|
-
}, timeoutMs);
|
|
151
|
-
try {
|
|
152
|
-
try {
|
|
153
|
-
this.handle.stdin.write(frame, (error) => {
|
|
154
|
-
if (error) this.fail(new NativeError("NATIVE_IO", "Writing a helper request failed", { cause: error }));
|
|
155
|
-
});
|
|
156
|
-
} catch (error) {
|
|
157
|
-
this.fail(new NativeError("NATIVE_IO", "Writing a helper request failed", { cause: error }));
|
|
158
|
-
}
|
|
159
|
-
const result = await outcome.promise;
|
|
160
|
-
if (this.failure) throw this.failure;
|
|
161
|
-
if (interruption) throw interruption;
|
|
162
|
-
if (capture) this.diagnostic(screenshotPrefix + JSON.stringify({
|
|
163
|
-
requestId: id,
|
|
164
|
-
stage: "host.reply",
|
|
165
|
-
elapsedMs: performance.now() - started
|
|
166
|
-
}));
|
|
167
|
-
return result;
|
|
168
|
-
} catch (error) {
|
|
169
|
-
if (interruption && !this.failure) throw interruption;
|
|
170
|
-
throw error;
|
|
171
|
-
} finally {
|
|
172
|
-
clearTimeout(timer);
|
|
173
|
-
clearTimeout(cancellationTimer);
|
|
174
|
-
signal.removeEventListener("abort", abort);
|
|
175
|
-
try {
|
|
176
|
-
if (this.failure !== void 0) await this.dispose();
|
|
177
|
-
} finally {
|
|
178
|
-
if (capture) {
|
|
179
|
-
const diagnostics = this.screenshotDiagnostics();
|
|
180
|
-
const failure = this.failure ?? interruption ?? nativeFailure;
|
|
181
|
-
if (failure && diagnostics) failure.message += `\nScreenshot diagnostics:\n${diagnostics}`;
|
|
182
|
-
if (diagnostics) this.diagnostic(diagnostics);
|
|
183
|
-
this.diagnostic(screenshotPrefix + JSON.stringify({
|
|
184
|
-
requestId: id,
|
|
185
|
-
stage: "host.settled",
|
|
186
|
-
elapsedMs: performance.now() - started
|
|
187
|
-
}));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
screenshotDiagnostics() {
|
|
193
|
-
const records = [...this.diagnostics];
|
|
194
|
-
if (this.discardedDiagnostics) records.unshift("[Earlier screenshot diagnostic records were discarded from the bounded diagnostic buffer.]");
|
|
195
|
-
return records.join("\n");
|
|
196
|
-
}
|
|
197
|
-
retainDiagnostic(value) {
|
|
198
|
-
if (value.requestId !== this.active?.id) return;
|
|
199
|
-
const line = screenshotPrefix + JSON.stringify(ScreenshotDiagnostic.parse(value));
|
|
200
|
-
this.diagnostics.push(line);
|
|
201
|
-
this.diagnosticBytes += Buffer.byteLength(line);
|
|
202
|
-
while (this.diagnosticBytes > 8192) {
|
|
203
|
-
const discarded = this.diagnostics.shift();
|
|
204
|
-
assert(discarded !== void 0, "Diagnostic bytes must belong to retained records");
|
|
205
|
-
this.diagnosticBytes -= Buffer.byteLength(discarded);
|
|
206
|
-
this.discardedDiagnostics = true;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
diagnostic(message) {
|
|
210
|
-
try {
|
|
211
|
-
this.reportDiagnostic?.(message);
|
|
212
|
-
} catch (error) {}
|
|
213
|
-
}
|
|
214
|
-
/** Whether this Agent's connection has lost its retained native state. */
|
|
215
|
-
get disposed() {
|
|
216
|
-
return this.failure !== void 0;
|
|
217
|
-
}
|
|
218
|
-
/** Invalidate this Agent's handles and close its connection; await dispose for native cleanup. */
|
|
219
|
-
invalidate() {
|
|
220
|
-
this.fail(new NativeError("NATIVE_DISPOSED", "Helper disposed"));
|
|
221
|
-
}
|
|
222
|
-
/** Stop this Agent's pending work and await its native connection cleanup. */
|
|
223
|
-
dispose() {
|
|
224
|
-
this.invalidate();
|
|
225
|
-
this.disposal ??= (async () => {
|
|
226
|
-
try {
|
|
227
|
-
await this.handle.waitForClose();
|
|
228
|
-
} finally {
|
|
229
|
-
this.handle.stdout.destroy();
|
|
230
|
-
this.handle.stdin.destroy();
|
|
231
|
-
}
|
|
232
|
-
})();
|
|
233
|
-
return this.disposal;
|
|
234
|
-
}
|
|
235
|
-
fail(error) {
|
|
236
|
-
if (this.failure) return;
|
|
237
|
-
this.failure = error;
|
|
238
|
-
this.chunks.length = 0;
|
|
239
|
-
this.bufferedBytes = 0;
|
|
240
|
-
this.active?.reject(error);
|
|
241
|
-
this.active = void 0;
|
|
242
|
-
this.handle.close();
|
|
243
|
-
}
|
|
244
|
-
receive(chunk) {
|
|
245
|
-
let offset = 0;
|
|
246
|
-
while (offset < chunk.length && !this.failure) {
|
|
247
|
-
const newline = chunk.indexOf(10, offset);
|
|
248
|
-
const end = newline < 0 ? chunk.length : newline + 1;
|
|
249
|
-
const piece = chunk.subarray(offset, end);
|
|
250
|
-
if (this.bufferedBytes + piece.length > this.config.maxResponseBytes) {
|
|
251
|
-
this.fail(new NativeError("NATIVE_RESPONSE_LIMIT", "Helper response exceeded the configured byte limit"));
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
this.chunks.push(piece);
|
|
255
|
-
this.bufferedBytes += piece.length;
|
|
256
|
-
if (newline >= 0) this.receiveFrame();
|
|
257
|
-
offset = end;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
receiveFrame() {
|
|
261
|
-
try {
|
|
262
|
-
const frame = Buffer.concat(this.chunks, this.bufferedBytes);
|
|
263
|
-
const line = new TextDecoder("utf-8", { fatal: true }).decode(frame.subarray(0, frame.length - 1));
|
|
264
|
-
const reply = WireReply.parse(JSON.parse(line));
|
|
265
|
-
this.chunks.length = 0;
|
|
266
|
-
this.bufferedBytes = 0;
|
|
267
|
-
if ("type" in reply) {
|
|
268
|
-
this.retainDiagnostic(reply);
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
const active = this.active;
|
|
272
|
-
if (!active || reply.id !== active.id) throw new Error("Helper reply has no matching request");
|
|
273
|
-
this.active = void 0;
|
|
274
|
-
if ("error" in reply) {
|
|
275
|
-
const error = new NativeError(reply.error.code, reply.error.message);
|
|
276
|
-
if (reply.error.code === "NATIVE_RESPONSE_LIMIT") this.fail(error);
|
|
277
|
-
active.reject(error);
|
|
278
|
-
} else active.resolve(reply.result);
|
|
279
|
-
} catch (error) {
|
|
280
|
-
this.fail(new NativeError("NATIVE_PROTOCOL", "Helper returned an invalid response; acquire fresh application handles", { cause: error }));
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
//#endregion
|
|
285
|
-
export { NativeClient, NativeError };
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { Buffer } from "node:buffer";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
//#region lib/types/protocol.js
|
|
4
|
-
/** JSON validation shared by model tool admission and the native object facade. */
|
|
5
|
-
const id = z.number().int().positive().max(2 ** 32 - 1);
|
|
6
|
-
const pid = z.number().int().positive().max(2 ** 31 - 1);
|
|
7
|
-
const point = z.number().nonnegative();
|
|
8
|
-
const relativePoint = z.number().int().min(0).max(999);
|
|
9
|
-
const app = { appHandle: z.string().min(1) };
|
|
10
|
-
const pointer = {
|
|
11
|
-
mouseButton: z.enum([
|
|
12
|
-
"left",
|
|
13
|
-
"right",
|
|
14
|
-
"middle"
|
|
15
|
-
]).optional(),
|
|
16
|
-
modifiers: z.array(z.enum([
|
|
17
|
-
"command",
|
|
18
|
-
"control",
|
|
19
|
-
"option",
|
|
20
|
-
"shift",
|
|
21
|
-
"fn"
|
|
22
|
-
])).optional()
|
|
23
|
-
};
|
|
24
|
-
const click = {
|
|
25
|
-
...pointer,
|
|
26
|
-
clickCount: z.union([z.literal(1), z.literal(2)]).optional(),
|
|
27
|
-
holdMs: z.number().int().nonnegative().optional().describe("Milliseconds between each mouse press and release; omitted for an ordinary click.")
|
|
28
|
-
};
|
|
29
|
-
const window = {
|
|
30
|
-
...app,
|
|
31
|
-
windowId: id
|
|
32
|
-
};
|
|
33
|
-
const snapshot = {
|
|
34
|
-
...app,
|
|
35
|
-
snapshotId: z.string().min(1),
|
|
36
|
-
elementIndex: z.number().int().nonnegative()
|
|
37
|
-
};
|
|
38
|
-
const coordinate = {
|
|
39
|
-
...window,
|
|
40
|
-
snapshotId: z.string().min(1).optional(),
|
|
41
|
-
x: point,
|
|
42
|
-
y: point
|
|
43
|
-
};
|
|
44
|
-
const absoluteCoordinate = {
|
|
45
|
-
...coordinate,
|
|
46
|
-
relative: z.literal(false).optional().describe("Omitted or false uses pixels in the latest screenshot returned by this tool.")
|
|
47
|
-
};
|
|
48
|
-
const relativeCoordinate = {
|
|
49
|
-
...coordinate,
|
|
50
|
-
relative: z.literal(true).describe("Use integer thousandths of the window width and height, from 0 to 999."),
|
|
51
|
-
x: relativePoint,
|
|
52
|
-
y: relativePoint
|
|
53
|
-
};
|
|
54
|
-
const bounds = z.object({
|
|
55
|
-
x: z.number(),
|
|
56
|
-
y: z.number(),
|
|
57
|
-
width: z.number().nonnegative(),
|
|
58
|
-
height: z.number().nonnegative()
|
|
59
|
-
});
|
|
60
|
-
const operation = (method, params) => z.object({
|
|
61
|
-
method: z.literal(method),
|
|
62
|
-
params: z.object(params).strict()
|
|
63
|
-
}).strict();
|
|
64
|
-
const imageBase64 = z.string().min(1).refine((value) => Buffer.from(value, "base64").toString("base64") === value, { message: "Expected canonical base64 image data" });
|
|
65
|
-
/** Model-submittable operation parameters; Host resource fields and private continuations are separate. */
|
|
66
|
-
const Request = z.discriminatedUnion("method", [
|
|
67
|
-
operation("getCapabilities", {}),
|
|
68
|
-
operation("listApps", {}),
|
|
69
|
-
operation("findApps", { query: z.string().min(1, "Expected a non-empty search string").regex(/\S/, "Expected a non-empty search string") }),
|
|
70
|
-
operation("getApp", { selector: z.string().min(1) }),
|
|
71
|
-
operation("activate", app),
|
|
72
|
-
operation("show", {
|
|
73
|
-
...app,
|
|
74
|
-
windowId: id.optional()
|
|
75
|
-
}),
|
|
76
|
-
operation("listWindows", app),
|
|
77
|
-
operation("getState", {
|
|
78
|
-
...app,
|
|
79
|
-
windowId: id.optional(),
|
|
80
|
-
includeMenus: z.boolean().optional().describe("Expand menu contents; omitted or false shows menu-bar entries only."),
|
|
81
|
-
details: z.boolean().optional().describe("Include identifiers, global-point bounds and complete action names.")
|
|
82
|
-
}),
|
|
83
|
-
z.object({
|
|
84
|
-
method: z.literal("hover"),
|
|
85
|
-
params: z.union([
|
|
86
|
-
z.object(snapshot).strict(),
|
|
87
|
-
z.object(absoluteCoordinate).strict(),
|
|
88
|
-
z.object(relativeCoordinate).strict()
|
|
89
|
-
])
|
|
90
|
-
}).strict(),
|
|
91
|
-
z.object({
|
|
92
|
-
method: z.literal("click"),
|
|
93
|
-
params: z.union([
|
|
94
|
-
z.object({
|
|
95
|
-
...snapshot,
|
|
96
|
-
...click
|
|
97
|
-
}).strict(),
|
|
98
|
-
z.object({
|
|
99
|
-
...absoluteCoordinate,
|
|
100
|
-
...click
|
|
101
|
-
}).strict(),
|
|
102
|
-
z.object({
|
|
103
|
-
...relativeCoordinate,
|
|
104
|
-
...click
|
|
105
|
-
}).strict()
|
|
106
|
-
])
|
|
107
|
-
}).strict(),
|
|
108
|
-
operation("setValue", {
|
|
109
|
-
...snapshot,
|
|
110
|
-
value: z.string()
|
|
111
|
-
}),
|
|
112
|
-
operation("selectText", {
|
|
113
|
-
...snapshot,
|
|
114
|
-
text: z.string().min(1),
|
|
115
|
-
prefix: z.string().optional(),
|
|
116
|
-
suffix: z.string().optional(),
|
|
117
|
-
selectionType: z.enum([
|
|
118
|
-
"text",
|
|
119
|
-
"cursor_before",
|
|
120
|
-
"cursor_after"
|
|
121
|
-
]).optional()
|
|
122
|
-
}),
|
|
123
|
-
operation("performSecondaryAction", {
|
|
124
|
-
...snapshot,
|
|
125
|
-
action: z.string().min(1)
|
|
126
|
-
}),
|
|
127
|
-
operation("typeText", {
|
|
128
|
-
...app,
|
|
129
|
-
text: z.string()
|
|
130
|
-
}),
|
|
131
|
-
operation("paste", {
|
|
132
|
-
...app,
|
|
133
|
-
text: z.string(),
|
|
134
|
-
format: z.enum(["text", "html"]).optional()
|
|
135
|
-
}),
|
|
136
|
-
operation("pressKey", {
|
|
137
|
-
...app,
|
|
138
|
-
key: z.string().min(1),
|
|
139
|
-
modifiers: z.array(z.enum([
|
|
140
|
-
"command",
|
|
141
|
-
"control",
|
|
142
|
-
"option",
|
|
143
|
-
"shift",
|
|
144
|
-
"fn"
|
|
145
|
-
])).optional()
|
|
146
|
-
}),
|
|
147
|
-
z.object({
|
|
148
|
-
method: z.literal("scroll"),
|
|
149
|
-
params: z.union([z.object({
|
|
150
|
-
...absoluteCoordinate,
|
|
151
|
-
deltaLinesX: z.number().int().min(-10).max(10),
|
|
152
|
-
deltaLinesY: z.number().int().min(-10).max(10)
|
|
153
|
-
}).strict(), z.object({
|
|
154
|
-
...relativeCoordinate,
|
|
155
|
-
deltaLinesX: z.number().int().min(-10).max(10),
|
|
156
|
-
deltaLinesY: z.number().int().min(-10).max(10)
|
|
157
|
-
}).strict()])
|
|
158
|
-
}).strict(),
|
|
159
|
-
z.object({
|
|
160
|
-
method: z.literal("drag"),
|
|
161
|
-
params: z.union([z.object({
|
|
162
|
-
...window,
|
|
163
|
-
...pointer,
|
|
164
|
-
snapshotId: z.string().min(1).optional(),
|
|
165
|
-
relative: z.literal(false).optional(),
|
|
166
|
-
fromX: point,
|
|
167
|
-
fromY: point,
|
|
168
|
-
toX: point,
|
|
169
|
-
toY: point
|
|
170
|
-
}).strict(), z.object({
|
|
171
|
-
...window,
|
|
172
|
-
...pointer,
|
|
173
|
-
snapshotId: z.string().min(1).optional(),
|
|
174
|
-
relative: relativeCoordinate.relative,
|
|
175
|
-
fromX: relativePoint,
|
|
176
|
-
fromY: relativePoint,
|
|
177
|
-
toX: relativePoint,
|
|
178
|
-
toY: relativePoint
|
|
179
|
-
}).strict()])
|
|
180
|
-
}).strict(),
|
|
181
|
-
operation("screenshot", window)
|
|
182
|
-
]);
|
|
183
|
-
/** Resource parameters supplied by the Host, never accepted from model tool arguments. */
|
|
184
|
-
const NativeResourceParameters = {
|
|
185
|
-
getState: z.object({
|
|
186
|
-
maxElements: z.number().int().min(1).max(1e4),
|
|
187
|
-
maxDepth: z.number().int().min(1).max(100)
|
|
188
|
-
}).strict(),
|
|
189
|
-
drag: z.object({
|
|
190
|
-
durationMs: z.number().int().min(1).max(5e3),
|
|
191
|
-
steps: z.number().int().min(1).max(240)
|
|
192
|
-
}).strict(),
|
|
193
|
-
paste: z.object({
|
|
194
|
-
maxClipboardBytes: z.number().int().min(1024),
|
|
195
|
-
pasteReadTimeoutMs: z.number().int().min(1).max(2 ** 31 - 1),
|
|
196
|
-
maxElements: z.number().int().min(1).max(1e4),
|
|
197
|
-
maxDepth: z.number().int().min(1).max(100)
|
|
198
|
-
}).strict(),
|
|
199
|
-
findApps: z.object({ maxAppMatches: z.number().int().min(1).max(1e3) }).strict()
|
|
200
|
-
};
|
|
201
|
-
/** Host-only launch continuation and user-facing system permission controls; absent from model arguments. */
|
|
202
|
-
const NativeOnlyOperations = [
|
|
203
|
-
operation("launchApp", app),
|
|
204
|
-
operation("permissionStatus", {}),
|
|
205
|
-
operation("applicationIcons", { paths: z.array(z.string().min(1)) }),
|
|
206
|
-
operation("requestPermission", { permission: z.enum(["accessibility", "screenRecording"]) }),
|
|
207
|
-
operation("openPermissionSettings", { permission: z.enum(["accessibility", "screenRecording"]) })
|
|
208
|
-
];
|
|
209
|
-
/** Process identity returned only after a successful app selection. */
|
|
210
|
-
const AppResult = z.object({
|
|
211
|
-
appHandle: z.string().min(1).transform((value) => value),
|
|
212
|
-
pid,
|
|
213
|
-
name: z.string(),
|
|
214
|
-
bundleId: z.string().optional()
|
|
215
|
-
});
|
|
216
|
-
/** Running application records from the helper. */
|
|
217
|
-
const AppsResult = z.array(z.object({
|
|
218
|
-
pid,
|
|
219
|
-
name: z.string(),
|
|
220
|
-
bundleId: z.string().optional()
|
|
221
|
-
}));
|
|
222
|
-
/** Installed application matches keep running and stopped records distinct. */
|
|
223
|
-
const FoundAppsResult = z.array(z.intersection(z.object({
|
|
224
|
-
id: z.string().min(1),
|
|
225
|
-
displayName: z.string(),
|
|
226
|
-
path: z.string().min(1)
|
|
227
|
-
}), z.discriminatedUnion("isRunning", [z.object({
|
|
228
|
-
isRunning: z.literal(true),
|
|
229
|
-
pid
|
|
230
|
-
}), z.object({ isRunning: z.literal(false) })])));
|
|
231
|
-
/** Current windows and their global point bounds. */
|
|
232
|
-
const WindowsResult = z.array(z.object({
|
|
233
|
-
windowId: id,
|
|
234
|
-
pid,
|
|
235
|
-
appName: z.string(),
|
|
236
|
-
title: z.string(),
|
|
237
|
-
bounds,
|
|
238
|
-
isOnScreen: z.boolean(),
|
|
239
|
-
onCurrentSpace: z.boolean().nullable()
|
|
240
|
-
}));
|
|
241
|
-
/** Observed state with window and process identity for stale-target rejection. */
|
|
242
|
-
const StateResult = z.object({
|
|
243
|
-
appHandle: z.string().min(1).transform((value) => value),
|
|
244
|
-
pid,
|
|
245
|
-
windowId: id.nullable(),
|
|
246
|
-
focusedWindowId: id.nullable().optional(),
|
|
247
|
-
snapshotId: z.string().min(1).transform((value) => value),
|
|
248
|
-
tree: z.string(),
|
|
249
|
-
windows: WindowsResult,
|
|
250
|
-
truncated: z.boolean()
|
|
251
|
-
});
|
|
252
|
-
/** Original native PNG and window-point geometry before Host image preparation. */
|
|
253
|
-
const NativeScreenshotResult = z.object({
|
|
254
|
-
mimeType: z.literal("image/png"),
|
|
255
|
-
data: imageBase64,
|
|
256
|
-
pixelWidth: id,
|
|
257
|
-
pixelHeight: id,
|
|
258
|
-
windowId: id,
|
|
259
|
-
bounds: bounds.extend({
|
|
260
|
-
width: z.number().positive(),
|
|
261
|
-
height: z.number().positive()
|
|
262
|
-
}),
|
|
263
|
-
coordinateSpace: z.literal("window-points")
|
|
264
|
-
});
|
|
265
|
-
/** Encoded model-request image; default input coordinates use these pixel dimensions. */
|
|
266
|
-
const ScreenshotResult = NativeScreenshotResult.extend({
|
|
267
|
-
mimeType: z.enum([
|
|
268
|
-
"image/png",
|
|
269
|
-
"image/jpeg",
|
|
270
|
-
"image/webp",
|
|
271
|
-
"image/gif"
|
|
272
|
-
]),
|
|
273
|
-
coordinateSpace: z.literal("screenshot-pixels")
|
|
274
|
-
});
|
|
275
|
-
/** Permissions are reported without opening system permission dialogs. */
|
|
276
|
-
const CapabilitiesResult = z.object({
|
|
277
|
-
platform: z.string(),
|
|
278
|
-
permissions: z.object({
|
|
279
|
-
accessibility: z.boolean(),
|
|
280
|
-
screenRecording: z.boolean()
|
|
281
|
-
}),
|
|
282
|
-
sessionLocked: z.boolean().nullable(),
|
|
283
|
-
methods: z.array(z.string()),
|
|
284
|
-
coordinateSpace: z.literal("screenshot-pixels"),
|
|
285
|
-
browser: z.literal(false)
|
|
286
|
-
});
|
|
287
|
-
/** An action has reached native dispatch; application state was not verified. */
|
|
288
|
-
const ActionResult = z.object({
|
|
289
|
-
dispatched: z.literal(true),
|
|
290
|
-
verified: z.literal(false)
|
|
291
|
-
});
|
|
292
|
-
/** Hover reports whether the selected route moved the user's system pointer. */
|
|
293
|
-
const HoverResult = ActionResult.extend({
|
|
294
|
-
hoverRoute: z.enum(["accessibility", "system-pointer"]),
|
|
295
|
-
systemPointerMoved: z.boolean()
|
|
296
|
-
});
|
|
297
|
-
/** Background restoration dispatch and sampled foreground changes; null means the observation was unavailable. */
|
|
298
|
-
const ShowResult = ActionResult.extend({
|
|
299
|
-
windowId: id.nullable(),
|
|
300
|
-
foregroundChanged: z.boolean().nullable()
|
|
301
|
-
});
|
|
302
|
-
/** Bounded native PNG thumbnail for human presentation, excluded from model results and saved grants. */
|
|
303
|
-
const ApplicationIcon = z.string().max(65536).regex(/^data:image\/png;base64,[A-Za-z0-9+/]+={0,2}$/);
|
|
304
|
-
//#endregion
|
|
305
|
-
export { ActionResult, AppResult, ApplicationIcon, AppsResult, CapabilitiesResult, FoundAppsResult, HoverResult, NativeOnlyOperations, NativeResourceParameters, NativeScreenshotResult, Request, ScreenshotResult, ShowResult, StateResult, WindowsResult };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|