@songtonyli/dsh-cli 0.1.90 → 0.1.92
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
|
@@ -1,597 +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
|
-
z.object({
|
|
184
|
-
maxElements: z.number().int().min(1).max(1e4),
|
|
185
|
-
maxDepth: z.number().int().min(1).max(100)
|
|
186
|
-
}).strict(), z.object({
|
|
187
|
-
durationMs: z.number().int().min(1).max(5e3),
|
|
188
|
-
steps: z.number().int().min(1).max(240)
|
|
189
|
-
}).strict(), z.object({
|
|
190
|
-
maxClipboardBytes: z.number().int().min(1024),
|
|
191
|
-
pasteReadTimeoutMs: z.number().int().min(1).max(2 ** 31 - 1),
|
|
192
|
-
maxElements: z.number().int().min(1).max(1e4),
|
|
193
|
-
maxDepth: z.number().int().min(1).max(100)
|
|
194
|
-
}).strict(), z.object({ maxAppMatches: z.number().int().min(1).max(1e3) }).strict();
|
|
195
|
-
operation("launchApp", app), operation("permissionStatus", {}), operation("applicationIcons", { paths: z.array(z.string().min(1)) }), operation("requestPermission", { permission: z.enum(["accessibility", "screenRecording"]) }), operation("openPermissionSettings", { permission: z.enum(["accessibility", "screenRecording"]) });
|
|
196
|
-
/** Process identity returned only after a successful app selection. */
|
|
197
|
-
const AppResult = z.object({
|
|
198
|
-
appHandle: z.string().min(1).transform((value) => value),
|
|
199
|
-
pid,
|
|
200
|
-
name: z.string(),
|
|
201
|
-
bundleId: z.string().optional()
|
|
202
|
-
});
|
|
203
|
-
/** Running application records from the helper. */
|
|
204
|
-
const AppsResult = z.array(z.object({
|
|
205
|
-
pid,
|
|
206
|
-
name: z.string(),
|
|
207
|
-
bundleId: z.string().optional()
|
|
208
|
-
}));
|
|
209
|
-
/** Installed application matches keep running and stopped records distinct. */
|
|
210
|
-
const FoundAppsResult = z.array(z.intersection(z.object({
|
|
211
|
-
id: z.string().min(1),
|
|
212
|
-
displayName: z.string(),
|
|
213
|
-
path: z.string().min(1)
|
|
214
|
-
}), z.discriminatedUnion("isRunning", [z.object({
|
|
215
|
-
isRunning: z.literal(true),
|
|
216
|
-
pid
|
|
217
|
-
}), z.object({ isRunning: z.literal(false) })])));
|
|
218
|
-
/** Current windows and their global point bounds. */
|
|
219
|
-
const WindowsResult = z.array(z.object({
|
|
220
|
-
windowId: id,
|
|
221
|
-
pid,
|
|
222
|
-
appName: z.string(),
|
|
223
|
-
title: z.string(),
|
|
224
|
-
bounds,
|
|
225
|
-
isOnScreen: z.boolean(),
|
|
226
|
-
onCurrentSpace: z.boolean().nullable()
|
|
227
|
-
}));
|
|
228
|
-
/** Observed state with window and process identity for stale-target rejection. */
|
|
229
|
-
const StateResult = z.object({
|
|
230
|
-
appHandle: z.string().min(1).transform((value) => value),
|
|
231
|
-
pid,
|
|
232
|
-
windowId: id.nullable(),
|
|
233
|
-
focusedWindowId: id.nullable().optional(),
|
|
234
|
-
snapshotId: z.string().min(1).transform((value) => value),
|
|
235
|
-
tree: z.string(),
|
|
236
|
-
windows: WindowsResult,
|
|
237
|
-
truncated: z.boolean()
|
|
238
|
-
});
|
|
239
|
-
/** Encoded model-request image; default input coordinates use these pixel dimensions. */
|
|
240
|
-
const ScreenshotResult = z.object({
|
|
241
|
-
mimeType: z.literal("image/png"),
|
|
242
|
-
data: imageBase64,
|
|
243
|
-
pixelWidth: id,
|
|
244
|
-
pixelHeight: id,
|
|
245
|
-
windowId: id,
|
|
246
|
-
bounds: bounds.extend({
|
|
247
|
-
width: z.number().positive(),
|
|
248
|
-
height: z.number().positive()
|
|
249
|
-
}),
|
|
250
|
-
coordinateSpace: z.literal("window-points")
|
|
251
|
-
}).extend({
|
|
252
|
-
mimeType: z.enum([
|
|
253
|
-
"image/png",
|
|
254
|
-
"image/jpeg",
|
|
255
|
-
"image/webp",
|
|
256
|
-
"image/gif"
|
|
257
|
-
]),
|
|
258
|
-
coordinateSpace: z.literal("screenshot-pixels")
|
|
259
|
-
});
|
|
260
|
-
/** Permissions are reported without opening system permission dialogs. */
|
|
261
|
-
const CapabilitiesResult = z.object({
|
|
262
|
-
platform: z.string(),
|
|
263
|
-
permissions: z.object({
|
|
264
|
-
accessibility: z.boolean(),
|
|
265
|
-
screenRecording: z.boolean()
|
|
266
|
-
}),
|
|
267
|
-
sessionLocked: z.boolean().nullable(),
|
|
268
|
-
methods: z.array(z.string()),
|
|
269
|
-
coordinateSpace: z.literal("screenshot-pixels"),
|
|
270
|
-
browser: z.literal(false)
|
|
271
|
-
});
|
|
272
|
-
/** An action has reached native dispatch; application state was not verified. */
|
|
273
|
-
const ActionResult = z.object({
|
|
274
|
-
dispatched: z.literal(true),
|
|
275
|
-
verified: z.literal(false)
|
|
276
|
-
});
|
|
277
|
-
/** Hover reports whether the selected route moved the user's system pointer. */
|
|
278
|
-
const HoverResult = ActionResult.extend({
|
|
279
|
-
hoverRoute: z.enum(["accessibility", "system-pointer"]),
|
|
280
|
-
systemPointerMoved: z.boolean()
|
|
281
|
-
});
|
|
282
|
-
/** Background restoration dispatch and sampled foreground changes; null means the observation was unavailable. */
|
|
283
|
-
const ShowResult = ActionResult.extend({
|
|
284
|
-
windowId: id.nullable(),
|
|
285
|
-
foregroundChanged: z.boolean().nullable()
|
|
286
|
-
});
|
|
287
|
-
z.string().max(65536).regex(/^data:image\/png;base64,[A-Za-z0-9+/]+={0,2}$/);
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region lib/types/api.js
|
|
290
|
-
/** Object facade over logged native operations; its caller owns evaluator persistence. */
|
|
291
|
-
function requestIssueMessage(issues, parent = []) {
|
|
292
|
-
return [...new Set(issues.map((issue) => {
|
|
293
|
-
const path = [...parent, ...issue.path];
|
|
294
|
-
if (issue.code === "invalid_union") {
|
|
295
|
-
const fewest = Math.min(...issue.errors.map((branch) => branch.length));
|
|
296
|
-
return [...new Set(issue.errors.filter((branch) => branch.length === fewest).map((branch) => requestIssueMessage(branch, path)))].join(" or ");
|
|
297
|
-
}
|
|
298
|
-
const fields = path.slice(1);
|
|
299
|
-
if (issue.code === "unrecognized_keys") return `${issue.keys.map((key) => [...fields, key].join(".")).join(", ")}: not accepted for these arguments`;
|
|
300
|
-
return `${fields.join(".")}: ${issue.message}`;
|
|
301
|
-
}))].join("; ");
|
|
302
|
-
}
|
|
303
|
-
function keyChord(chord) {
|
|
304
|
-
const parts = chord.split("+");
|
|
305
|
-
let key = parts.pop();
|
|
306
|
-
if (key === "" && parts.at(-1) === "") {
|
|
307
|
-
key = "+";
|
|
308
|
-
parts.pop();
|
|
309
|
-
}
|
|
310
|
-
if (!key) throw new Error("A key chord must end with a key name");
|
|
311
|
-
const names = {
|
|
312
|
-
cmd: "command",
|
|
313
|
-
command: "command",
|
|
314
|
-
super: "command",
|
|
315
|
-
Super_L: "command",
|
|
316
|
-
Super_R: "command",
|
|
317
|
-
ctrl: "control",
|
|
318
|
-
control: "control",
|
|
319
|
-
Control_L: "control",
|
|
320
|
-
Control_R: "control",
|
|
321
|
-
alt: "option",
|
|
322
|
-
option: "option",
|
|
323
|
-
Alt_L: "option",
|
|
324
|
-
Alt_R: "option",
|
|
325
|
-
shift: "shift",
|
|
326
|
-
Shift_L: "shift",
|
|
327
|
-
Shift_R: "shift",
|
|
328
|
-
fn: "fn"
|
|
329
|
-
};
|
|
330
|
-
return {
|
|
331
|
-
key,
|
|
332
|
-
modifiers: parts.map((part) => {
|
|
333
|
-
const modifier = names[part];
|
|
334
|
-
if (modifier === void 0) throw new Error(`Unsupported key modifier: ${part}`);
|
|
335
|
-
return modifier;
|
|
336
|
-
})
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Create app/window objects using the caller's authorized dispatcher.
|
|
341
|
-
* @param dispatch - Current tool authority; rejects propagate without retries.
|
|
342
|
-
* @param sink - Optional text/image output; emit false suppresses this sink only.
|
|
343
|
-
* @returns Objects independent of variable storage and evaluator lifecycle.
|
|
344
|
-
*/
|
|
345
|
-
function createCuaApi(dispatch, sink) {
|
|
346
|
-
const call = (method, params) => {
|
|
347
|
-
const request = Request.safeParse({
|
|
348
|
-
method,
|
|
349
|
-
params
|
|
350
|
-
});
|
|
351
|
-
if (!request.success) throw new Error(`${method} ${requestIssueMessage(request.error.issues)}`);
|
|
352
|
-
return dispatch(request.data);
|
|
353
|
-
};
|
|
354
|
-
const action = async (method, params) => ActionResult.parse(await call(method, params));
|
|
355
|
-
async function emit(value, options) {
|
|
356
|
-
if (options?.emit !== false) await sink?.text(JSON.stringify(value));
|
|
357
|
-
}
|
|
358
|
-
function surface(appHandle, pid, selectedWindow) {
|
|
359
|
-
let observed;
|
|
360
|
-
function snapshotParams() {
|
|
361
|
-
if (!observed) throw new Error("Read getAXState before using this surface");
|
|
362
|
-
return {
|
|
363
|
-
appHandle,
|
|
364
|
-
snapshotId: observed.snapshotId
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
function windowId() {
|
|
368
|
-
if (selectedWindow !== void 0) return selectedWindow;
|
|
369
|
-
const windows = observed?.windows.filter((window) => window.isOnScreen && window.bounds.width > 0 && window.bounds.height > 0);
|
|
370
|
-
const focused = windows?.find((window) => window.windowId === observed?.focusedWindowId);
|
|
371
|
-
if (focused) return focused.windowId;
|
|
372
|
-
const first = windows?.[0];
|
|
373
|
-
if (!first || windows.length !== 1) throw new Error("Select a window with app.getWindows() and app.getWindow(windowId) before this operation");
|
|
374
|
-
return first.windowId;
|
|
375
|
-
}
|
|
376
|
-
const result = {
|
|
377
|
-
async show() {
|
|
378
|
-
return ShowResult.parse(await call("show", {
|
|
379
|
-
appHandle,
|
|
380
|
-
...selectedWindow === void 0 ? {} : { windowId: selectedWindow }
|
|
381
|
-
}));
|
|
382
|
-
},
|
|
383
|
-
async getAXState(options) {
|
|
384
|
-
observed = void 0;
|
|
385
|
-
const state = StateResult.parse(await call("getState", {
|
|
386
|
-
appHandle,
|
|
387
|
-
...selectedWindow === void 0 ? {} : { windowId: selectedWindow },
|
|
388
|
-
...options?.includeMenus === void 0 ? {} : { includeMenus: options.includeMenus },
|
|
389
|
-
...options?.details === void 0 ? {} : { details: options.details }
|
|
390
|
-
}));
|
|
391
|
-
if (state.appHandle !== appHandle || state.pid !== pid || state.windowId !== (selectedWindow ?? null)) throw new Error("Native observation belongs to another application or window");
|
|
392
|
-
if (state.windows.some((window) => window.pid !== pid)) throw new Error("Native windows belong to another application");
|
|
393
|
-
observed = state;
|
|
394
|
-
if (options?.emit !== false) await sink?.text(state.tree);
|
|
395
|
-
return state.tree;
|
|
396
|
-
},
|
|
397
|
-
async getScreenshot(options) {
|
|
398
|
-
if (!observed) await result.getAXState({ emit: false });
|
|
399
|
-
const target = windowId();
|
|
400
|
-
const image = ScreenshotResult.parse(await call("screenshot", {
|
|
401
|
-
appHandle,
|
|
402
|
-
windowId: target
|
|
403
|
-
}));
|
|
404
|
-
if (image.windowId !== target) throw new Error("Native screenshot belongs to another window");
|
|
405
|
-
const screenshot = {
|
|
406
|
-
bytes: Uint8Array.from(Buffer.from(image.data, "base64")),
|
|
407
|
-
mimeType: image.mimeType,
|
|
408
|
-
pixelWidth: image.pixelWidth,
|
|
409
|
-
pixelHeight: image.pixelHeight,
|
|
410
|
-
windowId: image.windowId
|
|
411
|
-
};
|
|
412
|
-
if (options?.emit !== false) await sink?.image(screenshot);
|
|
413
|
-
return screenshot;
|
|
414
|
-
},
|
|
415
|
-
async getAXStateAndScreenshot(options) {
|
|
416
|
-
return {
|
|
417
|
-
state: await result.getAXState(options),
|
|
418
|
-
screenshot: await result.getScreenshot(options)
|
|
419
|
-
};
|
|
420
|
-
},
|
|
421
|
-
async hover(target, options) {
|
|
422
|
-
const relative = options?.relative === void 0 ? {} : { relative: options.relative };
|
|
423
|
-
if (typeof target === "number") return HoverResult.parse(await call("hover", {
|
|
424
|
-
...snapshotParams(),
|
|
425
|
-
elementIndex: target,
|
|
426
|
-
...relative
|
|
427
|
-
}));
|
|
428
|
-
const [x, y] = target;
|
|
429
|
-
return HoverResult.parse(await call("hover", {
|
|
430
|
-
...snapshotParams(),
|
|
431
|
-
windowId: windowId(),
|
|
432
|
-
x,
|
|
433
|
-
y,
|
|
434
|
-
...relative
|
|
435
|
-
}));
|
|
436
|
-
},
|
|
437
|
-
async click(target, options) {
|
|
438
|
-
const mouseButton = options?.mouseButton ?? "left";
|
|
439
|
-
const clickCount = options?.clickCount ?? 1;
|
|
440
|
-
if (mouseButton !== "left" && clickCount !== 1) throw new Error("Only left double-click is supported");
|
|
441
|
-
const modifiers = options?.modifiers === void 0 ? {} : { modifiers: [...options.modifiers] };
|
|
442
|
-
const hold = options?.holdMs === void 0 ? {} : { holdMs: options.holdMs };
|
|
443
|
-
const relative = options?.relative === void 0 ? {} : { relative: options.relative };
|
|
444
|
-
if (typeof target === "number") return action("click", {
|
|
445
|
-
...snapshotParams(),
|
|
446
|
-
...modifiers,
|
|
447
|
-
...hold,
|
|
448
|
-
...relative,
|
|
449
|
-
elementIndex: target,
|
|
450
|
-
...mouseButton === "left" ? {} : { mouseButton },
|
|
451
|
-
...clickCount === 1 ? {} : { clickCount }
|
|
452
|
-
});
|
|
453
|
-
const [x, y] = target;
|
|
454
|
-
return action("click", {
|
|
455
|
-
...snapshotParams(),
|
|
456
|
-
windowId: windowId(),
|
|
457
|
-
x,
|
|
458
|
-
y,
|
|
459
|
-
mouseButton,
|
|
460
|
-
clickCount,
|
|
461
|
-
...modifiers,
|
|
462
|
-
...hold,
|
|
463
|
-
...relative
|
|
464
|
-
});
|
|
465
|
-
},
|
|
466
|
-
async setValue(index, value) {
|
|
467
|
-
return action("setValue", {
|
|
468
|
-
...snapshotParams(),
|
|
469
|
-
elementIndex: index,
|
|
470
|
-
value
|
|
471
|
-
});
|
|
472
|
-
},
|
|
473
|
-
async selectText(index, text, options) {
|
|
474
|
-
return action("selectText", {
|
|
475
|
-
...snapshotParams(),
|
|
476
|
-
elementIndex: index,
|
|
477
|
-
text,
|
|
478
|
-
...options?.prefix === void 0 ? {} : { prefix: options.prefix },
|
|
479
|
-
...options?.suffix === void 0 ? {} : { suffix: options.suffix },
|
|
480
|
-
...options?.selectionType === void 0 ? {} : { selectionType: options.selectionType }
|
|
481
|
-
});
|
|
482
|
-
},
|
|
483
|
-
async performSecondaryAction(index, name) {
|
|
484
|
-
return action("performSecondaryAction", {
|
|
485
|
-
...snapshotParams(),
|
|
486
|
-
elementIndex: index,
|
|
487
|
-
action: name
|
|
488
|
-
});
|
|
489
|
-
},
|
|
490
|
-
async scroll(options) {
|
|
491
|
-
if (options.deltaLinesX === 0 && options.deltaLinesY === 0) throw new Error("At least one scroll delta must be nonzero");
|
|
492
|
-
return action("scroll", {
|
|
493
|
-
...snapshotParams(),
|
|
494
|
-
windowId: windowId(),
|
|
495
|
-
x: options.x,
|
|
496
|
-
y: options.y,
|
|
497
|
-
deltaLinesX: options.deltaLinesX,
|
|
498
|
-
deltaLinesY: options.deltaLinesY,
|
|
499
|
-
...options.relative === void 0 ? {} : { relative: options.relative }
|
|
500
|
-
});
|
|
501
|
-
},
|
|
502
|
-
async drag(from, to, options) {
|
|
503
|
-
return action("drag", {
|
|
504
|
-
...snapshotParams(),
|
|
505
|
-
windowId: windowId(),
|
|
506
|
-
fromX: from[0],
|
|
507
|
-
fromY: from[1],
|
|
508
|
-
toX: to[0],
|
|
509
|
-
toY: to[1],
|
|
510
|
-
...options?.relative === void 0 ? {} : { relative: options.relative },
|
|
511
|
-
...options?.mouseButton === void 0 ? {} : { mouseButton: options.mouseButton },
|
|
512
|
-
...options?.modifiers === void 0 ? {} : { modifiers: [...options.modifiers] }
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
return result;
|
|
517
|
-
}
|
|
518
|
-
const api = {
|
|
519
|
-
async getCapabilities(options) {
|
|
520
|
-
const result = CapabilitiesResult.parse(await call("getCapabilities", {}));
|
|
521
|
-
await emit(result, options);
|
|
522
|
-
return result;
|
|
523
|
-
},
|
|
524
|
-
async listApps(options) {
|
|
525
|
-
const result = AppsResult.parse(await call("listApps", {})).map((app) => ({
|
|
526
|
-
id: app.bundleId || String(app.pid),
|
|
527
|
-
displayName: app.name,
|
|
528
|
-
isRunning: true,
|
|
529
|
-
pid: app.pid
|
|
530
|
-
}));
|
|
531
|
-
await emit(result, options);
|
|
532
|
-
return result;
|
|
533
|
-
},
|
|
534
|
-
async findApps(query, options) {
|
|
535
|
-
const result = FoundAppsResult.parse(await call("findApps", { query }));
|
|
536
|
-
await emit(result, options);
|
|
537
|
-
return result;
|
|
538
|
-
},
|
|
539
|
-
async getState(options) {
|
|
540
|
-
const result = {
|
|
541
|
-
apps: await api.listApps({ emit: false }),
|
|
542
|
-
browsers: []
|
|
543
|
-
};
|
|
544
|
-
await emit(result, options);
|
|
545
|
-
return result;
|
|
546
|
-
},
|
|
547
|
-
async getApp(selector) {
|
|
548
|
-
const { appHandle, pid } = AppResult.parse(await call("getApp", { selector }));
|
|
549
|
-
const app = {
|
|
550
|
-
...surface(appHandle, pid),
|
|
551
|
-
pid,
|
|
552
|
-
appHandle,
|
|
553
|
-
async activate() {
|
|
554
|
-
return action("activate", { appHandle });
|
|
555
|
-
},
|
|
556
|
-
async getWindows(options) {
|
|
557
|
-
const windows = WindowsResult.parse(await call("listWindows", { appHandle }));
|
|
558
|
-
if (windows.some((window) => window.pid !== pid)) throw new Error("Native windows belong to another application");
|
|
559
|
-
await emit(windows, options);
|
|
560
|
-
return windows;
|
|
561
|
-
},
|
|
562
|
-
async getWindow(windowId) {
|
|
563
|
-
const window = {
|
|
564
|
-
...surface(appHandle, pid, windowId),
|
|
565
|
-
windowId
|
|
566
|
-
};
|
|
567
|
-
await window.getAXState();
|
|
568
|
-
return window;
|
|
569
|
-
},
|
|
570
|
-
async typeText(text) {
|
|
571
|
-
return action("typeText", {
|
|
572
|
-
appHandle,
|
|
573
|
-
text
|
|
574
|
-
});
|
|
575
|
-
},
|
|
576
|
-
async paste(text, options) {
|
|
577
|
-
return action("paste", {
|
|
578
|
-
appHandle,
|
|
579
|
-
text,
|
|
580
|
-
...options?.format === void 0 ? {} : { format: options.format }
|
|
581
|
-
});
|
|
582
|
-
},
|
|
583
|
-
async pressKey(key) {
|
|
584
|
-
return action("pressKey", {
|
|
585
|
-
appHandle,
|
|
586
|
-
...keyChord(key)
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
|
-
await app.getAXState();
|
|
591
|
-
return app;
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
return api;
|
|
595
|
-
}
|
|
596
|
-
//#endregion
|
|
597
|
-
export { createCuaApi };
|