@songtonyli/dsh-cli 0.1.90 → 0.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis/README.md +6 -2
- package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
- package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
- package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
- package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
- package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
- package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
- package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
- package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
- package/node_modules/@deepseek-ai/dsh/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
- package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
- package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
- package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
- package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +5 -10
- package/node_modules/encodeurl/package.json +7 -3
- package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
- package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
- package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
- package/node_modules/hast-util-to-html/lib/index.js +9 -4
- package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
- package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
- package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
- package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
- package/node_modules/hast-util-to-html/package.json +5 -23
- package/node_modules/hast-util-to-html/readme.md +3 -2
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/rrule/LICENCE +65 -0
- package/node_modules/rrule/README.md +837 -0
- package/node_modules/rrule/dist/es5/rrule.js +3803 -0
- package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
- package/node_modules/rrule/dist/esm/cache.js +95 -0
- package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
- package/node_modules/rrule/dist/esm/datetime.js +186 -0
- package/node_modules/rrule/dist/esm/dateutil.js +161 -0
- package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
- package/node_modules/rrule/dist/esm/helpers.js +118 -0
- package/node_modules/rrule/dist/esm/index.js +22 -0
- package/node_modules/rrule/dist/esm/iter/index.js +138 -0
- package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
- package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
- package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
- package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
- package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
- package/node_modules/rrule/dist/esm/iterresult.js +88 -0
- package/node_modules/rrule/dist/esm/iterset.js +63 -0
- package/node_modules/rrule/dist/esm/masks.js +30 -0
- package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
- package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
- package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
- package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
- package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
- package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
- package/node_modules/rrule/dist/esm/parsestring.js +128 -0
- package/node_modules/rrule/dist/esm/rrule.js +232 -0
- package/node_modules/rrule/dist/esm/rruleset.js +182 -0
- package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
- package/node_modules/rrule/dist/esm/types.js +14 -0
- package/node_modules/rrule/dist/esm/weekday.js +45 -0
- package/node_modules/rrule/package.json +79 -0
- package/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
- package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
- package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
- package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
- package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
- package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
- package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
- package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
- package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
|
@@ -21,7 +21,7 @@ export interface Context {
|
|
|
21
21
|
/** The root context of the application (every child context shares it). @experimental */
|
|
22
22
|
root: this
|
|
23
23
|
/** Base URL used to resolve relative plugin/module specifiers, if the runtime sets one. */
|
|
24
|
-
baseUrl?: string
|
|
24
|
+
baseUrl?: string | undefined
|
|
25
25
|
/** The event bus. Its methods are also mixed onto `ctx` (`ctx.on`, `ctx.emit`, ...). */
|
|
26
26
|
events: EventsService
|
|
27
27
|
/** The logging service. Call `ctx.logger(name)` for a named logger. */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineProperty } from '@deepseek-ai/cosmokit'
|
|
2
|
-
import type { Promisify } from '@deepseek-ai/cosmokit'
|
|
1
|
+
import { defineProperty, type Awaitable, type Promisify } from '@deepseek-ai/cosmokit'
|
|
3
2
|
import { Context } from './context.ts'
|
|
4
|
-
import { Fiber, FiberState } from './fiber.ts'
|
|
3
|
+
import { Fiber, FiberState, resolveConfig } from './fiber.ts'
|
|
5
4
|
import { DisposableList, symbols } from './utils.ts'
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -129,7 +128,7 @@ export interface Hook extends EventOptions {
|
|
|
129
128
|
* dispatch and automatically disposes listeners with their owning fiber.
|
|
130
129
|
*/
|
|
131
130
|
export class EventsService {
|
|
132
|
-
_hooks: Record<keyof any, Hook[]> =
|
|
131
|
+
_hooks: Record<keyof any, Hook[]> = Object.create(null)
|
|
133
132
|
|
|
134
133
|
constructor(private ctx: Context) {
|
|
135
134
|
defineProperty(this, symbols.tracker, {
|
|
@@ -141,37 +140,46 @@ export class EventsService {
|
|
|
141
140
|
if (name === 'internal/update' && !options.global) {
|
|
142
141
|
const hooks = this.fiber._hooks['internal/update'] ??= new DisposableList()
|
|
143
142
|
const method = options.prepend ? 'unshift' : 'push'
|
|
144
|
-
return hooks[method](listener)
|
|
143
|
+
return this.fiber.effect(() => hooks[method](listener), 'ctx.on("internal/update")')
|
|
145
144
|
}
|
|
146
145
|
})
|
|
147
146
|
|
|
148
|
-
this.on('internal/update', function (config,
|
|
147
|
+
this.on('internal/update', function (config, next) {
|
|
149
148
|
const cbs = [...this._hooks['internal/update'] || []]
|
|
150
149
|
const _next = () => {
|
|
151
150
|
const cb = cbs.shift() ?? next
|
|
152
|
-
return cb.call(this, config,
|
|
151
|
+
return cb.call(this, config, _next)
|
|
153
152
|
}
|
|
154
153
|
return _next()
|
|
155
154
|
}, { global: true, prepend: true })
|
|
155
|
+
|
|
156
|
+
this.on('internal/config', (fiber, next) => {
|
|
157
|
+
const config = next()
|
|
158
|
+
return fiber.runtime ? resolveConfig(fiber.runtime, config) : config
|
|
159
|
+
})
|
|
156
160
|
}
|
|
157
161
|
|
|
158
|
-
|
|
159
|
-
* Resolve listeners for one dispatch and apply context filtering.
|
|
160
|
-
*
|
|
161
|
-
* @param type — the dispatch mode, reported on `internal/dispatch`.
|
|
162
|
-
* @param args — the raw dispatch arguments; consumed up to the event name.
|
|
163
|
-
* @returns the matching listener callbacks, bound to the dispatch `this`.
|
|
164
|
-
*/
|
|
165
|
-
dispatch(type: string, args: any[]) {
|
|
162
|
+
private _resolve(type: string, args: any[]) {
|
|
166
163
|
const thisArg = typeof args[0] === 'object' || typeof args[0] === 'function' ? args.shift() : null
|
|
167
|
-
const name: string = args.shift()
|
|
168
|
-
if (!name.startsWith('internal/')) {
|
|
164
|
+
const name: string | symbol = args.shift()
|
|
165
|
+
if ((typeof name !== 'string' || !name.startsWith('internal/')) && this._hooks['internal/dispatch']?.length) {
|
|
169
166
|
this.emit('internal/dispatch', type, name, args, thisArg)
|
|
170
167
|
}
|
|
171
168
|
const filter = thisArg?.[Context.filter]
|
|
172
|
-
return (this._hooks[name] || [])
|
|
173
|
-
.filter(hook => hook.global || !filter || filter.call(thisArg, hook.ctx))
|
|
174
|
-
|
|
169
|
+
return [thisArg, (this._hooks[name] || [])
|
|
170
|
+
.filter(hook => hook.global || !filter || filter.call(thisArg, hook.ctx)).map(hook => hook.callback)] as const
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Resolve bound callbacks using the event's context filter.
|
|
175
|
+
* @param type Dispatch mode reported to observers.
|
|
176
|
+
* @param args Dispatch arguments, consumed through the event name.
|
|
177
|
+
* @returns Matching callbacks bound to the dispatch receiver.
|
|
178
|
+
* DSH retains callback enumeration for per-listener error containment.
|
|
179
|
+
*/
|
|
180
|
+
dispatch(type: string, args: any[]) {
|
|
181
|
+
const [thisArg, callbacks] = this._resolve(type, args)
|
|
182
|
+
return callbacks.map(callback => callback.bind(thisArg))
|
|
175
183
|
}
|
|
176
184
|
|
|
177
185
|
/**
|
|
@@ -181,7 +189,8 @@ export class EventsService {
|
|
|
181
189
|
* @returns a promise resolving once every listener has settled.
|
|
182
190
|
*/
|
|
183
191
|
async parallel(...args: any[]) {
|
|
184
|
-
const
|
|
192
|
+
const [thisArg, callbacks] = this._resolve('parallel', args)
|
|
193
|
+
const results = await Promise.allSettled(callbacks.map(async callback => Reflect.apply(callback, thisArg, args)))
|
|
185
194
|
const errors = results.filter((result): result is PromiseRejectedResult => result.status === 'rejected')
|
|
186
195
|
if (errors.length) throw new AggregateError(errors.map(error => error.reason))
|
|
187
196
|
}
|
|
@@ -192,7 +201,8 @@ export class EventsService {
|
|
|
192
201
|
* @param args — optional `this`, the event name, then listener arguments.
|
|
193
202
|
*/
|
|
194
203
|
emit(...args: any[]) {
|
|
195
|
-
this.
|
|
204
|
+
const [thisArg, callbacks] = this._resolve('emit', args)
|
|
205
|
+
for (const callback of callbacks) Reflect.apply(callback, thisArg, args)
|
|
196
206
|
}
|
|
197
207
|
|
|
198
208
|
/**
|
|
@@ -202,8 +212,9 @@ export class EventsService {
|
|
|
202
212
|
* @returns the first bail value (see {@link isBailed}), if any.
|
|
203
213
|
*/
|
|
204
214
|
async serial(...args: any[]) {
|
|
205
|
-
|
|
206
|
-
|
|
215
|
+
const [thisArg, callbacks] = this._resolve('serial', args)
|
|
216
|
+
for (const callback of callbacks) {
|
|
217
|
+
const result = await Reflect.apply(callback, thisArg, args)
|
|
207
218
|
if (isBailed(result)) return result
|
|
208
219
|
}
|
|
209
220
|
}
|
|
@@ -215,8 +226,9 @@ export class EventsService {
|
|
|
215
226
|
* @returns the first bail value (see {@link isBailed}), if any.
|
|
216
227
|
*/
|
|
217
228
|
bail(...args: any[]) {
|
|
218
|
-
|
|
219
|
-
|
|
229
|
+
const [thisArg, callbacks] = this._resolve('bail', args)
|
|
230
|
+
for (const callback of callbacks) {
|
|
231
|
+
const result = Reflect.apply(callback, thisArg, args)
|
|
220
232
|
if (isBailed(result)) return result
|
|
221
233
|
}
|
|
222
234
|
}
|
|
@@ -232,44 +244,38 @@ export class EventsService {
|
|
|
232
244
|
* @returns the outermost listener's return value.
|
|
233
245
|
*/
|
|
234
246
|
waterfall(...args: any[]) {
|
|
235
|
-
const
|
|
247
|
+
const [thisArg, callbacks] = this._resolve('waterfall', args)
|
|
236
248
|
const inner = args.pop()
|
|
237
|
-
const
|
|
238
|
-
const
|
|
239
|
-
return
|
|
249
|
+
const dispatch = () => {
|
|
250
|
+
const callback = callbacks.shift()
|
|
251
|
+
if (!callback) return inner()
|
|
252
|
+
let called = false
|
|
253
|
+
const next = () => {
|
|
254
|
+
if (called) throw new Error('next() called multiple times')
|
|
255
|
+
called = true
|
|
256
|
+
return dispatch()
|
|
257
|
+
}
|
|
258
|
+
return Reflect.apply(callback, thisArg, [...args, next])
|
|
240
259
|
}
|
|
241
|
-
|
|
242
|
-
return next()
|
|
260
|
+
return dispatch()
|
|
243
261
|
}
|
|
244
262
|
|
|
245
|
-
|
|
246
|
-
* Store a listener record as an effect on the current fiber.
|
|
247
|
-
*
|
|
248
|
-
* @param label — effect label shown in fiber diagnostics.
|
|
249
|
-
* @param hooks — the listener list for one event.
|
|
250
|
-
* @param callback — the listener to store.
|
|
251
|
-
* @param options — placement and filtering options.
|
|
252
|
-
* @returns a disposer that unregisters the listener.
|
|
253
|
-
*/
|
|
254
|
-
register(label: string, hooks: Hook[], callback: any, options: EventOptions): () => void {
|
|
263
|
+
private register(label: string, name: string | symbol, callback: any, options: EventOptions): () => void {
|
|
255
264
|
const method = options.prepend ? 'unshift' : 'push'
|
|
256
265
|
return this.ctx.fiber.effect(() => {
|
|
266
|
+
const hooks = this._hooks[name] ??= []
|
|
257
267
|
hooks[method]({ ctx: this.ctx, callback, ...options })
|
|
258
|
-
return () => this.unregister(
|
|
268
|
+
return () => this.unregister(name, callback)
|
|
259
269
|
}, label)
|
|
260
270
|
}
|
|
261
271
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
* @param hooks — the listener list for one event.
|
|
266
|
-
* @param callback — the listener to remove.
|
|
267
|
-
* @returns `true` if the listener was found and removed.
|
|
268
|
-
*/
|
|
269
|
-
unregister(hooks: Hook[], callback: any) {
|
|
272
|
+
private unregister(name: string | symbol, callback: any) {
|
|
273
|
+
const hooks = this._hooks[name]
|
|
274
|
+
if (!hooks) return
|
|
270
275
|
const index = hooks.findIndex(hook => hook.callback === callback)
|
|
271
276
|
if (index >= 0) {
|
|
272
277
|
hooks.splice(index, 1)
|
|
278
|
+
if (!hooks.length) delete this._hooks[name]
|
|
273
279
|
return true
|
|
274
280
|
}
|
|
275
281
|
}
|
|
@@ -296,9 +302,8 @@ export class EventsService {
|
|
|
296
302
|
const result = this.bail(this.ctx, 'internal/listener', name, listener, options)
|
|
297
303
|
if (result) return result
|
|
298
304
|
|
|
299
|
-
const hooks = this._hooks[name] ||= []
|
|
300
305
|
const label = `ctx.on(${typeof name === 'string' ? JSON.stringify(name) : name.toString()})`
|
|
301
|
-
return this.register(label,
|
|
306
|
+
return this.register(label, name, listener, options)
|
|
302
307
|
}
|
|
303
308
|
|
|
304
309
|
/**
|
|
@@ -309,7 +314,7 @@ export class EventsService {
|
|
|
309
314
|
* @param options — listener options; a boolean is shorthand for `prepend`.
|
|
310
315
|
* @returns a disposer removing the listener; `true` if it was still registered.
|
|
311
316
|
*/
|
|
312
|
-
once(name: string, listener: (...args: any) => any, options?: boolean | EventOptions) {
|
|
317
|
+
once(name: string | symbol, listener: (...args: any) => any, options?: boolean | EventOptions) {
|
|
313
318
|
const dispose = this.on(name, function (...args: any[]) {
|
|
314
319
|
dispose()
|
|
315
320
|
return listener.apply(this, args)
|
|
@@ -327,20 +332,34 @@ export class EventsService {
|
|
|
327
332
|
* diagnostics before public events are delivered.
|
|
328
333
|
*/
|
|
329
334
|
export interface Events {
|
|
335
|
+
[key: symbol]: (...args: any[]) => any
|
|
330
336
|
/** A plugin fiber was created or its uid was cleared on disposal. */
|
|
331
337
|
'internal/plugin'(fiber: Fiber): void
|
|
332
338
|
/** A fiber changed lifecycle state; receives the fiber and its previous state. */
|
|
333
339
|
'internal/status'(fiber: Fiber, oldValue: FiberState): void
|
|
340
|
+
/** A service binding was refreshed in the matching isolation scope. */
|
|
341
|
+
'internal/service'(this: Context, name: string, value: any): void
|
|
334
342
|
/**
|
|
335
|
-
*
|
|
336
|
-
* @param
|
|
343
|
+
* Apply resolved config; omitting `next()` keeps the current instance.
|
|
344
|
+
* @param resolvedConfig - the evaluated and validated candidate.
|
|
345
|
+
* @param next - restarts the fiber and waits for its lifecycle work.
|
|
337
346
|
* @mode waterfall
|
|
338
347
|
*/
|
|
339
|
-
'internal/
|
|
340
|
-
/**
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
348
|
+
'internal/update'(this: Fiber, resolvedConfig: any, next: () => Awaitable<void>): Awaitable<void>
|
|
349
|
+
/**
|
|
350
|
+
* Persist original config from a programmatic update, before its lifecycle transition.
|
|
351
|
+
* @param fiber - the updated fiber.
|
|
352
|
+
* @param originalConfig - the raw candidate; omitted when update uses noSave.
|
|
353
|
+
* @mode emit
|
|
354
|
+
*/
|
|
355
|
+
'internal/commit'(fiber: Fiber, originalConfig: any): void
|
|
356
|
+
/**
|
|
357
|
+
* Resolve plugin config after injections are active; candidate resolution does not publish it.
|
|
358
|
+
* @param fiber - the fiber whose candidate is being resolved.
|
|
359
|
+
* @param next - obtains the raw candidate from inner listeners.
|
|
360
|
+
* @mode waterfall
|
|
361
|
+
*/
|
|
362
|
+
'internal/config'(fiber: Fiber, next: () => any): any
|
|
344
363
|
/** Waterfall: a service is being read through the context proxy. */
|
|
345
364
|
'internal/get'(ctx: Context, name: string, error: Error, next: () => any): any
|
|
346
365
|
/** Waterfall: a service is being written through the context proxy. */
|
|
@@ -348,5 +367,5 @@ export interface Events {
|
|
|
348
367
|
/** Bail: a listener is being registered; a non-null result replaces registration. */
|
|
349
368
|
'internal/listener'(this: Context, name: string, listener: any, prepend: boolean): void
|
|
350
369
|
/** An event is being dispatched to listeners (fired for non-internal events only). */
|
|
351
|
-
'internal/dispatch'(mode: DispatchMode, name: string, args: any[], thisArg: any): void
|
|
370
|
+
'internal/dispatch'(mode: DispatchMode, name: string | symbol, args: any[], thisArg: any): void
|
|
352
371
|
}
|
|
@@ -178,7 +178,7 @@ const INACTIVE = '__INACTIVE__'
|
|
|
178
178
|
/**
|
|
179
179
|
* Runtime instance of one plugin application.
|
|
180
180
|
*
|
|
181
|
-
* A fiber tracks dependency state,
|
|
181
|
+
* A fiber tracks dependency state, raw and effective config, lifecycle effects, and
|
|
182
182
|
* cleanup for the plugin context returned by `ctx.plugin()`.
|
|
183
183
|
*/
|
|
184
184
|
export class Fiber {
|
|
@@ -186,16 +186,16 @@ export class Fiber {
|
|
|
186
186
|
public uid: number | null
|
|
187
187
|
/** The context this fiber's plugin runs in (extends the parent context). */
|
|
188
188
|
public readonly ctx: Context
|
|
189
|
-
/**
|
|
189
|
+
/** Raw plugin input retained for the next activation. */
|
|
190
190
|
public config: any
|
|
191
|
-
/** The raw plugin config, re-resolved before activation; use {@link rawConfig} to read or retain it. */
|
|
192
|
-
public _config: any
|
|
193
191
|
/** Current lifecycle state; transitions emit `internal/status`. */
|
|
194
192
|
public state = FiberState.PENDING
|
|
195
193
|
/** Dispose this fiber: unload the plugin, then settle once cleanup finished. */
|
|
196
194
|
public readonly dispose: () => Promise<void>
|
|
197
|
-
/**
|
|
198
|
-
public
|
|
195
|
+
/** Required implementations retained through dependent teardown. */
|
|
196
|
+
public committed: Readonly<Dict<Impl>> | undefined
|
|
197
|
+
/** Service implementations owned by this fiber, including isolated provisions. */
|
|
198
|
+
public readonly provisions: Set<Impl> = new Set()
|
|
199
199
|
/** The in-flight load/unload transition, if one is currently running. */
|
|
200
200
|
public inertia: Promise<void> | undefined
|
|
201
201
|
|
|
@@ -206,8 +206,12 @@ export class Fiber {
|
|
|
206
206
|
protected context: Context
|
|
207
207
|
|
|
208
208
|
private _error: any
|
|
209
|
+
private _revision = 0
|
|
210
|
+
private _configRevision = 0
|
|
211
|
+
private _effectiveConfig: unknown
|
|
209
212
|
private _runner: EffectRunner<string>
|
|
210
213
|
private _store: Dict<Impl> = Object.create(null)
|
|
214
|
+
private _release: (() => void) | undefined
|
|
211
215
|
|
|
212
216
|
/**
|
|
213
217
|
* Create a fiber. Plugin authors normally obtain fibers from `ctx.plugin()`
|
|
@@ -226,7 +230,7 @@ export class Fiber {
|
|
|
226
230
|
public runtime: Plugin.Runtime | null,
|
|
227
231
|
getOuterStack: () => string[],
|
|
228
232
|
) {
|
|
229
|
-
this.
|
|
233
|
+
this.config = config
|
|
230
234
|
const collect = (dispose: Disposable) => {
|
|
231
235
|
this._disposables.push(dispose)
|
|
232
236
|
}
|
|
@@ -247,16 +251,18 @@ export class Fiber {
|
|
|
247
251
|
this._runner = {
|
|
248
252
|
epoch: INACTIVE,
|
|
249
253
|
getOuterStack,
|
|
250
|
-
execute: function () {
|
|
254
|
+
execute: function (this: Fiber) {
|
|
255
|
+
const config = this.resolveConfig(this.config)
|
|
256
|
+
this._effectiveConfig = config
|
|
251
257
|
if (isConstructor(runtime.callback)) {
|
|
252
258
|
// eslint-disable-next-line new-cap
|
|
253
|
-
const instance = new runtime.callback(this.ctx,
|
|
259
|
+
const instance = new runtime.callback(this.ctx, config)
|
|
254
260
|
for (const hook of instance?.[symbols.initHooks] ?? []) {
|
|
255
261
|
hook()
|
|
256
262
|
}
|
|
257
263
|
return instance?.[symbols.init]?.()
|
|
258
264
|
} else {
|
|
259
|
-
return runtime.callback(this.ctx,
|
|
265
|
+
return runtime.callback(this.ctx, config)
|
|
260
266
|
}
|
|
261
267
|
},
|
|
262
268
|
collect,
|
|
@@ -321,9 +327,9 @@ export class Fiber {
|
|
|
321
327
|
this.uid = 0
|
|
322
328
|
this.ctx = this.context = parent
|
|
323
329
|
this.state = FiberState.ACTIVE
|
|
324
|
-
this.
|
|
330
|
+
this.committed = Object.create(null)
|
|
325
331
|
this._runner = {
|
|
326
|
-
epoch: '',
|
|
332
|
+
epoch: '0',
|
|
327
333
|
getOuterStack,
|
|
328
334
|
execute: () => {},
|
|
329
335
|
collect,
|
|
@@ -589,8 +595,8 @@ export class Fiber {
|
|
|
589
595
|
if (oldState !== FiberState.ACTIVE && this.state !== FiberState.ACTIVE) return
|
|
590
596
|
for (const key of Reflect.ownKeys(this.ctx.reflect.store)) {
|
|
591
597
|
const impl = this.ctx.reflect.store[key as symbol]
|
|
592
|
-
if (impl.fiber !== this) continue
|
|
593
|
-
this.ctx.reflect.notify([impl.name])
|
|
598
|
+
if (impl.ctx.fiber !== this) continue
|
|
599
|
+
this.ctx.isolate(impl.name, impl.isolate).reflect.notify([impl.name])
|
|
594
600
|
}
|
|
595
601
|
}
|
|
596
602
|
|
|
@@ -602,22 +608,21 @@ export class Fiber {
|
|
|
602
608
|
return delete this._store[name]
|
|
603
609
|
}
|
|
604
610
|
} catch (error) {
|
|
605
|
-
impl.
|
|
611
|
+
impl.ctx.logger.error(error)
|
|
606
612
|
return delete this._store[name]
|
|
607
613
|
}
|
|
608
614
|
this._store[name] = impl
|
|
609
615
|
}
|
|
610
616
|
|
|
611
617
|
_refresh() {
|
|
612
|
-
let epoch
|
|
613
|
-
epoch = ''
|
|
618
|
+
let epoch = `${this._revision}`
|
|
614
619
|
for (const name of Object.keys(this.inject)) {
|
|
615
620
|
const impl = this._store[name]
|
|
616
621
|
if (!impl) {
|
|
617
622
|
epoch = INACTIVE
|
|
618
623
|
break
|
|
619
624
|
}
|
|
620
|
-
epoch += ':' + impl.
|
|
625
|
+
epoch += ':' + impl.uid
|
|
621
626
|
}
|
|
622
627
|
this._setEpoch(epoch)
|
|
623
628
|
}
|
|
@@ -625,6 +630,8 @@ export class Fiber {
|
|
|
625
630
|
private _setEpoch(epoch: string) {
|
|
626
631
|
const oldEpoch = this._runner.epoch
|
|
627
632
|
if (epoch === oldEpoch) return
|
|
633
|
+
// a failed fiber only recovers through update(), which clears _error
|
|
634
|
+
if (this._error) return
|
|
628
635
|
this._runner.epoch = epoch
|
|
629
636
|
if (this.inertia) return
|
|
630
637
|
this._updateState(() => {
|
|
@@ -640,20 +647,22 @@ export class Fiber {
|
|
|
640
647
|
|
|
641
648
|
/** Raw input retained for the next activation, without evaluating expressions or validating it. */
|
|
642
649
|
get rawConfig(): unknown {
|
|
643
|
-
return this.ctx.fiber.
|
|
650
|
+
return this.ctx.fiber.config
|
|
644
651
|
}
|
|
645
652
|
|
|
646
653
|
/** Retain raw input without changing the running config or triggering an update. */
|
|
647
654
|
set rawConfig(config: unknown) {
|
|
648
|
-
this.ctx.fiber.
|
|
655
|
+
this.ctx.fiber.config = config
|
|
656
|
+
this.ctx.fiber._configRevision++
|
|
649
657
|
}
|
|
650
658
|
|
|
651
659
|
/**
|
|
652
|
-
* The
|
|
653
|
-
*
|
|
660
|
+
* The object passed to plugin activation or the latest successful update that retained the instance.
|
|
661
|
+
* Candidate resolution does not publish it; volatile updates retain its references.
|
|
662
|
+
* Undefined before activation and readable after unload; callers requiring a live instance check `state`.
|
|
654
663
|
*/
|
|
655
664
|
get effectiveConfig(): unknown {
|
|
656
|
-
return this.ctx.fiber.
|
|
665
|
+
return this.ctx.fiber._effectiveConfig
|
|
657
666
|
}
|
|
658
667
|
|
|
659
668
|
/**
|
|
@@ -666,28 +675,29 @@ export class Fiber {
|
|
|
666
675
|
*/
|
|
667
676
|
resolveConfig(config: unknown): unknown {
|
|
668
677
|
const fiber = this.ctx.fiber
|
|
669
|
-
|
|
670
|
-
return fiber.runtime ? resolveConfig(fiber.runtime, config) : config
|
|
678
|
+
return fiber.context.waterfall('internal/config', fiber, () => config)
|
|
671
679
|
}
|
|
672
680
|
|
|
673
681
|
private async _reload() {
|
|
674
|
-
this.
|
|
682
|
+
this.committed = { ...this._store }
|
|
683
|
+
for (const impl of Object.values(this.committed)) {
|
|
684
|
+
if (impl.ctx.fiber === this) continue
|
|
685
|
+
impl.dependents.add(this)
|
|
686
|
+
}
|
|
675
687
|
const oldEpoch = this._runner.epoch
|
|
676
688
|
try {
|
|
677
689
|
await Promise.resolve()
|
|
678
|
-
// A disposer queued before this checkpoint may already have invalidated
|
|
679
|
-
// the load. Do not run plugin code for a stale epoch; the state update
|
|
680
|
-
// below will drain any effects collected while the fiber was PENDING.
|
|
681
690
|
if (this._runner.epoch === oldEpoch) {
|
|
682
|
-
this.config = this.resolveConfig(this._config)
|
|
683
691
|
await this._execute(this._runner)
|
|
684
|
-
this._error = undefined
|
|
685
692
|
}
|
|
686
693
|
} catch (reason) {
|
|
687
694
|
// impl guarantees that the error is non-null (?)
|
|
688
695
|
this.ctx.logger.error(reason)
|
|
689
|
-
|
|
690
|
-
this._runner.epoch
|
|
696
|
+
// A superseded load still needs cleanup, but cannot fail the new target.
|
|
697
|
+
if (this._runner.epoch === oldEpoch) {
|
|
698
|
+
this._error = reason
|
|
699
|
+
this._runner.epoch = INACTIVE
|
|
700
|
+
}
|
|
691
701
|
}
|
|
692
702
|
this._updateState(() => {
|
|
693
703
|
if (this._runner.epoch === oldEpoch) {
|
|
@@ -700,6 +710,13 @@ export class Fiber {
|
|
|
700
710
|
}
|
|
701
711
|
|
|
702
712
|
private async _unload() {
|
|
713
|
+
// Dependents are notified when this fiber leaves ACTIVE, but may still
|
|
714
|
+
// access its services during their own teardown, so the effects of this
|
|
715
|
+
// fiber are only disposed after every dependent has unloaded.
|
|
716
|
+
while ([...this.provisions].some(impl => impl.dependents.size)) {
|
|
717
|
+
await new Promise<void>((resolve) => this._release = resolve)
|
|
718
|
+
}
|
|
719
|
+
this._release = undefined
|
|
703
720
|
await Promise.all(this._disposables.clear().map(async (dispose) => {
|
|
704
721
|
try {
|
|
705
722
|
await composeError(async (info) => {
|
|
@@ -711,7 +728,13 @@ export class Fiber {
|
|
|
711
728
|
this.ctx.logger.error(reason)
|
|
712
729
|
}
|
|
713
730
|
}))
|
|
714
|
-
this
|
|
731
|
+
// release the providers waiting for this fiber to unload
|
|
732
|
+
for (const impl of Object.values(this.committed ?? {})) {
|
|
733
|
+
if (!impl.dependents.delete(this) || impl.dependents.size) continue
|
|
734
|
+
impl.release?.()
|
|
735
|
+
impl.ctx.fiber._release?.()
|
|
736
|
+
}
|
|
737
|
+
this.committed = undefined
|
|
715
738
|
this._updateState(() => {
|
|
716
739
|
if (this._runner.epoch === INACTIVE) {
|
|
717
740
|
this.inertia = undefined
|
|
@@ -745,39 +768,53 @@ export class Fiber {
|
|
|
745
768
|
async restart() {
|
|
746
769
|
const fiber = this.ctx.fiber
|
|
747
770
|
fiber.assertActive()
|
|
748
|
-
fiber.
|
|
771
|
+
fiber._revision++
|
|
749
772
|
fiber._refresh()
|
|
750
773
|
await fiber.await()
|
|
751
774
|
}
|
|
752
775
|
|
|
753
776
|
/**
|
|
754
|
-
*
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
759
|
-
* @param config — the new raw config; validated before anything restarts.
|
|
760
|
-
* @param noSave — hint for persistence hooks not to write the change back.
|
|
761
|
-
* @returns nothing; the restart runs behind the `internal/update` waterfall.
|
|
762
|
-
* @throws {ValidationError} when the new config fails validation.
|
|
777
|
+
* Resolve a candidate, retain its raw config and apply it through the update waterfall.
|
|
778
|
+
* @param config Raw config; pending fibers defer resolution until activation.
|
|
779
|
+
* @param noSave Suppress the persistence notification when true.
|
|
780
|
+
* @returns The awaited update/restart result, or undefined when a synchronous listener handles it.
|
|
781
|
+
* @throws {ValidationError} when an active fiber's candidate is invalid.
|
|
763
782
|
*/
|
|
764
|
-
update(config: any, noSave = false) {
|
|
783
|
+
update(config: any, noSave = false): Awaitable<void> {
|
|
765
784
|
const fiber = this.ctx.fiber
|
|
766
785
|
fiber.assertActive()
|
|
767
|
-
fiber.
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
786
|
+
const loaded = fiber._runner.epoch !== INACTIVE
|
|
787
|
+
const resolved = loaded ? fiber.resolveConfig(config) : undefined
|
|
788
|
+
if (!noSave) fiber.context.emit('internal/commit', fiber, config)
|
|
789
|
+
fiber.config = config
|
|
790
|
+
fiber._error = undefined
|
|
791
|
+
const configRevision = ++fiber._configRevision
|
|
792
|
+
const epoch = fiber._runner.epoch
|
|
793
|
+
const committed = fiber.committed
|
|
794
|
+
let restarted = false
|
|
795
|
+
const restart = () => {
|
|
796
|
+
restarted = true
|
|
797
|
+
return fiber.restart()
|
|
798
|
+
}
|
|
799
|
+
const publish = () => {
|
|
800
|
+
if (!restarted && fiber.uid !== null && fiber._configRevision === configRevision
|
|
801
|
+
&& fiber._runner.epoch === epoch && fiber.committed === committed) {
|
|
802
|
+
fiber._effectiveConfig = resolved
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
const result = loaded
|
|
806
|
+
? fiber.context.waterfall(fiber, 'internal/update', resolved, restart)
|
|
807
|
+
: restart()
|
|
808
|
+
// a listener may veto the restart, in which case there is nothing to await
|
|
809
|
+
if (result === undefined) {
|
|
810
|
+
publish()
|
|
774
811
|
return
|
|
775
812
|
}
|
|
776
|
-
|
|
777
|
-
fiber
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
813
|
+
const task = Promise.resolve(result).then(publish)
|
|
814
|
+
// the failure is already reported by the fiber, so mark it handled here:
|
|
815
|
+
// a caller that drops the result cannot turn it into an unhandled
|
|
816
|
+
// rejection, while `await update()` still observes it
|
|
817
|
+
task.catch(() => {})
|
|
818
|
+
return task
|
|
782
819
|
}
|
|
783
820
|
}
|
|
@@ -21,8 +21,8 @@ export type Formatter = (value: any, exporter: Exporter, message: Message) => an
|
|
|
21
21
|
/** Numeric severity used when exporters decide whether to emit a message. */
|
|
22
22
|
export const enum LoggerLevel {
|
|
23
23
|
ERROR = 0,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
WARN = 1,
|
|
25
|
+
INFO = 2,
|
|
26
26
|
DEBUG = 3,
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -214,8 +214,12 @@ export class LoggerService {
|
|
|
214
214
|
colors: 3,
|
|
215
215
|
export: (message) => {
|
|
216
216
|
self.buffer.push(message)
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
// for better performance
|
|
218
|
+
const overflow = self.buffer.length - self.bufferSize
|
|
219
|
+
if (overflow === 1) {
|
|
220
|
+
self.buffer.shift()
|
|
221
|
+
} else if (overflow > 1) {
|
|
222
|
+
self.buffer.splice(0, overflow)
|
|
219
223
|
}
|
|
220
224
|
},
|
|
221
225
|
})
|
|
@@ -251,7 +255,8 @@ export class LoggerService {
|
|
|
251
255
|
|
|
252
256
|
[symbols.invoke](name?: string): Logger {
|
|
253
257
|
const config = this._resolveConfig()
|
|
254
|
-
const
|
|
258
|
+
const caller = (this as any)[symbols.caller] as Context | undefined
|
|
259
|
+
const fiber = (caller ?? this.ctx).fiber
|
|
255
260
|
name ??= config.name
|
|
256
261
|
name ??= hyphenate(fiber.name)
|
|
257
262
|
return new Logger({
|