@songtonyli/dsh-cli 0.1.89 → 0.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis/README.md +6 -2
- package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
- package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
- package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
- package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
- package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
- package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
- package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
- package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
- package/node_modules/@deepseek-ai/dsh/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
- package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
- package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
- package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +24 -8
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
- package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +5 -10
- package/node_modules/encodeurl/package.json +7 -3
- package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
- package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
- package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
- package/node_modules/hast-util-to-html/lib/index.js +9 -4
- package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
- package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
- package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
- package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
- package/node_modules/hast-util-to-html/package.json +5 -23
- package/node_modules/hast-util-to-html/readme.md +3 -2
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/rrule/LICENCE +65 -0
- package/node_modules/rrule/README.md +837 -0
- package/node_modules/rrule/dist/es5/rrule.js +3803 -0
- package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
- package/node_modules/rrule/dist/esm/cache.js +95 -0
- package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
- package/node_modules/rrule/dist/esm/datetime.js +186 -0
- package/node_modules/rrule/dist/esm/dateutil.js +161 -0
- package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
- package/node_modules/rrule/dist/esm/helpers.js +118 -0
- package/node_modules/rrule/dist/esm/index.js +22 -0
- package/node_modules/rrule/dist/esm/iter/index.js +138 -0
- package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
- package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
- package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
- package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
- package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
- package/node_modules/rrule/dist/esm/iterresult.js +88 -0
- package/node_modules/rrule/dist/esm/iterset.js +63 -0
- package/node_modules/rrule/dist/esm/masks.js +30 -0
- package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
- package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
- package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
- package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
- package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
- package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
- package/node_modules/rrule/dist/esm/parsestring.js +128 -0
- package/node_modules/rrule/dist/esm/rrule.js +232 -0
- package/node_modules/rrule/dist/esm/rruleset.js +182 -0
- package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
- package/node_modules/rrule/dist/esm/types.js +14 -0
- package/node_modules/rrule/dist/esm/weekday.js +45 -0
- package/node_modules/rrule/package.json +79 -0
- package/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
- package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
- package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
- package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
- package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
- package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
- package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
- package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
- package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
|
@@ -114,14 +114,22 @@ export namespace Property {
|
|
|
114
114
|
|
|
115
115
|
/** Concrete service implementation record stored in the root reflect service. */
|
|
116
116
|
export interface Impl {
|
|
117
|
+
/** Unique identity of this provision. */
|
|
118
|
+
uid: number
|
|
117
119
|
/** The service name. */
|
|
118
120
|
name: string
|
|
119
|
-
/** The
|
|
120
|
-
|
|
121
|
+
/** The providing context, including its service isolation. */
|
|
122
|
+
ctx: Context
|
|
123
|
+
/** Fibers retaining this implementation until their teardown finishes. */
|
|
124
|
+
dependents: Set<Fiber>
|
|
125
|
+
/** Wake a provision disposer after its final dependent unloads. */
|
|
126
|
+
release?: () => void
|
|
121
127
|
/** The current service value. */
|
|
122
128
|
value?: any
|
|
123
129
|
/** Optional availability predicate consulted before dependents may load. */
|
|
124
130
|
check?: () => boolean
|
|
131
|
+
// Actual isolation symbol; may differ from the provider context after a blocked move.
|
|
132
|
+
isolate: symbol
|
|
125
133
|
}
|
|
126
134
|
|
|
127
135
|
/**
|
|
@@ -149,12 +157,17 @@ export class ReflectService {
|
|
|
149
157
|
return def.get.call(ctx, ctx[symbols.receiver], error)
|
|
150
158
|
}
|
|
151
159
|
|
|
152
|
-
|
|
160
|
+
// a fiber-less def site cannot declare `inject` at all, so it keeps the unchecked root access.
|
|
161
|
+
const defSite = (ctx[symbols.shadow] as Context | undefined) ?? ctx
|
|
162
|
+
if (!defSite.fiber.runtime) return ctx.reflect.get(prop, false)
|
|
153
163
|
return ctx.events.waterfall('internal/get', ctx, prop, error, () => {
|
|
154
|
-
const key =
|
|
155
|
-
let fiber =
|
|
164
|
+
const key = defSite[symbols.isolate][prop]
|
|
165
|
+
let fiber = defSite.fiber
|
|
156
166
|
while (true) {
|
|
157
|
-
|
|
167
|
+
let impl = fiber.committed?.[prop]
|
|
168
|
+
for (const provision of fiber.provisions) {
|
|
169
|
+
if (provision.name === prop && provision.ctx[symbols.isolate][prop] === key) impl = provision
|
|
170
|
+
}
|
|
158
171
|
if (impl) return getTraceable(ctx, impl.value)
|
|
159
172
|
if (prop in fiber.inject) {
|
|
160
173
|
error.message = `cannot get required service "${prop}" in inactive context`
|
|
@@ -209,6 +222,7 @@ export class ReflectService {
|
|
|
209
222
|
public store: Dict<Impl, symbol> = Object.create(null)
|
|
210
223
|
/** Declared context properties (services and accessors), by name. */
|
|
211
224
|
public props: Dict<Property> = Object.create(null)
|
|
225
|
+
private _implCounter = 0
|
|
212
226
|
|
|
213
227
|
constructor(public ctx: Context) {
|
|
214
228
|
defineProperty(this, symbols.tracker, {
|
|
@@ -238,7 +252,7 @@ export class ReflectService {
|
|
|
238
252
|
const key = this.ctx[symbols.isolate][name]
|
|
239
253
|
const impl = key && this.store[key]
|
|
240
254
|
if (!impl) return
|
|
241
|
-
if (strict && impl.fiber.state !== FiberState.ACTIVE) return
|
|
255
|
+
if (strict && impl.ctx.fiber.state !== FiberState.ACTIVE) return
|
|
242
256
|
return impl
|
|
243
257
|
}
|
|
244
258
|
|
|
@@ -257,7 +271,7 @@ export class ReflectService {
|
|
|
257
271
|
if (!impl) {
|
|
258
272
|
throw new Error(`cannot set property "${name}" without provide`)
|
|
259
273
|
}
|
|
260
|
-
if (impl.fiber !== this.ctx.fiber) {
|
|
274
|
+
if (impl.ctx.fiber !== this.ctx.fiber) {
|
|
261
275
|
throw new Error(`cannot set property "${name}" in multiple fibers`)
|
|
262
276
|
}
|
|
263
277
|
impl.value = value
|
|
@@ -285,21 +299,29 @@ export class ReflectService {
|
|
|
285
299
|
|
|
286
300
|
this.ctx.root[symbols.isolate][name] ??= Symbol(name)
|
|
287
301
|
const key = this.ctx[symbols.isolate][name]
|
|
288
|
-
const impl: Impl = { name, value,
|
|
302
|
+
const impl: Impl = { uid: ++this._implCounter, name, value, ctx: this.ctx, check, isolate: key, dependents: new Set() }
|
|
289
303
|
if (this.store[key]) {
|
|
290
|
-
throw new Error(`service "${name}" has been registered at <${this.store[key].fiber.name}>`)
|
|
304
|
+
throw new Error(`service "${name}" has been registered at <${this.store[key].ctx.fiber.name}>`)
|
|
291
305
|
}
|
|
292
306
|
this.store[key] = impl
|
|
293
|
-
this.ctx.fiber.
|
|
307
|
+
this.ctx.fiber.provisions.add(impl)
|
|
294
308
|
if (this.ctx.fiber.state === FiberState.ACTIVE) {
|
|
295
309
|
this.notify([name])
|
|
296
310
|
}
|
|
297
311
|
return async () => {
|
|
298
|
-
delete this.store[
|
|
299
|
-
|
|
300
|
-
|
|
312
|
+
if (this.store[impl.isolate] === impl) delete this.store[impl.isolate]
|
|
313
|
+
this.ctx.isolate(name, impl.isolate).reflect.notify([name])
|
|
314
|
+
// Retired bindings cannot gain new dependents. Wait only for their
|
|
315
|
+
// cleanup, even if a fiber has left the registry or starts a new load.
|
|
316
|
+
// Yield even without direct dependents so child cleanup can still
|
|
317
|
+
// access the inherited service before its provision is removed.
|
|
318
|
+
await new Promise<void>((resolve) => {
|
|
319
|
+
impl.release = resolve
|
|
320
|
+
if (!impl.dependents.size) resolve()
|
|
321
|
+
})
|
|
322
|
+
impl.release = undefined
|
|
301
323
|
// ensure self access before dependencies cleanup
|
|
302
|
-
|
|
324
|
+
this.ctx.fiber.provisions.delete(impl)
|
|
303
325
|
}
|
|
304
326
|
}, `ctx.provide(${JSON.stringify(name)})`)
|
|
305
327
|
}
|
|
@@ -309,10 +331,8 @@ export class ReflectService {
|
|
|
309
331
|
*
|
|
310
332
|
* @param names — the service names that changed.
|
|
311
333
|
* @param filter — restricts notification to matching isolation scopes.
|
|
312
|
-
* @returns the fibers whose dependency state was refreshed.
|
|
313
334
|
*/
|
|
314
335
|
notify(names: string[], filter = (ctx: Context, name: string) => ctx[symbols.isolate][name] === this.ctx[symbols.isolate][name]) {
|
|
315
|
-
const fibers: Fiber[] = []
|
|
316
336
|
for (const runtime of this.ctx.registry.values()) {
|
|
317
337
|
for (const fiber of runtime.fibers) {
|
|
318
338
|
let hasUpdate = false
|
|
@@ -324,7 +344,6 @@ export class ReflectService {
|
|
|
324
344
|
}
|
|
325
345
|
if (!hasUpdate) continue
|
|
326
346
|
fiber._refresh()
|
|
327
|
-
fibers.push(fiber)
|
|
328
347
|
}
|
|
329
348
|
}
|
|
330
349
|
for (const name of names) {
|
|
@@ -332,7 +351,6 @@ export class ReflectService {
|
|
|
332
351
|
self[symbols.filter] = (target: Context) => filter(target, name)
|
|
333
352
|
this.ctx.events.emit(self, 'internal/service', name, this._getImpl(name, false)?.value)
|
|
334
353
|
}
|
|
335
|
-
return fibers
|
|
336
354
|
}
|
|
337
355
|
|
|
338
356
|
/**
|
|
@@ -50,6 +50,7 @@ export interface Tracker {
|
|
|
50
50
|
export const symbols = {
|
|
51
51
|
// internal symbols
|
|
52
52
|
shadow: Symbol.for('cordis.shadow'),
|
|
53
|
+
caller: Symbol.for('cordis.caller'),
|
|
53
54
|
receiver: Symbol.for('cordis.receiver'),
|
|
54
55
|
original: Symbol.for('cordis.original'),
|
|
55
56
|
metadata: Symbol.for('cordis.metadata'),
|
|
@@ -146,11 +147,12 @@ function withProp(target: any, prop: string | symbol, value: any) {
|
|
|
146
147
|
}))
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
function createShadow(
|
|
150
|
+
function createShadow(useSite: Context, target: any, property: string | undefined, receiver: any) {
|
|
150
151
|
if (!property) return receiver
|
|
151
|
-
const
|
|
152
|
-
if (!
|
|
153
|
-
|
|
152
|
+
const value = getPropertyDescriptor(target, property)?.value
|
|
153
|
+
if (!value) return receiver
|
|
154
|
+
const defSite = (value[symbols.shadow] as Context | undefined) ?? value
|
|
155
|
+
return withProp(receiver, property, useSite.extend({ [symbols.shadow]: defSite }))
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
function createShadowMethod(ctx: Context, value: any, outer: any, shadow: {}) {
|
|
@@ -162,22 +164,23 @@ function createShadowMethod(ctx: Context, value: any, outer: any, shadow: {}) {
|
|
|
162
164
|
})
|
|
163
165
|
}
|
|
164
166
|
|
|
167
|
+
// `ctx` may be a shadow, i.e. a pair of:
|
|
168
|
+
// - def site: where the accessing code was defined, governs service resolution
|
|
169
|
+
// - use site: where the service is consumed, governs intercept, isolate and effects
|
|
165
170
|
function createTraceable(ctx: Context, value: any, tracker: Tracker) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
// and resolve the origin. Non-noShadow services strip — their side effects
|
|
169
|
-
// bind to caller, not origin.
|
|
170
|
-
if (ctx[symbols.shadow] && !tracker.noShadow) {
|
|
171
|
-
ctx = Object.getPrototypeOf(ctx)
|
|
172
|
-
}
|
|
171
|
+
const defSite = (ctx[symbols.shadow] as Context | undefined) ?? ctx
|
|
172
|
+
const useSite = ctx[symbols.shadow] ? Object.getPrototypeOf(ctx) as Context : ctx
|
|
173
173
|
const proxy = new Proxy(value, {
|
|
174
174
|
get: (target, prop, receiver) => {
|
|
175
175
|
if (prop === symbols.original) return target
|
|
176
|
-
if (prop ===
|
|
176
|
+
if (prop === symbols.caller) return defSite
|
|
177
|
+
if (prop === tracker.property) return useSite
|
|
177
178
|
if (typeof prop === 'symbol') {
|
|
178
179
|
return Reflect.get(target, prop, receiver)
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
+
// `ctx` rather than `useSite`, so that `ctx.foo.bar` and `ctx['foo.bar']` are
|
|
182
|
+
// governed by the same def site
|
|
183
|
+
if (tracker.associate && useSite.reflect.props[`${tracker.associate}.${prop}`]) {
|
|
181
184
|
return Reflect.get(ctx, `${tracker.associate}.${prop}`, withProp(ctx, symbols.receiver, receiver))
|
|
182
185
|
}
|
|
183
186
|
let shadow: any, innerValue: any
|
|
@@ -185,33 +188,37 @@ function createTraceable(ctx: Context, value: any, tracker: Tracker) {
|
|
|
185
188
|
if (desc && 'value' in desc) {
|
|
186
189
|
innerValue = desc.value
|
|
187
190
|
} else {
|
|
188
|
-
shadow = createShadow(
|
|
191
|
+
shadow = createShadow(useSite, target, tracker.property, receiver)
|
|
189
192
|
innerValue = Reflect.get(target, prop, shadow)
|
|
190
193
|
}
|
|
191
194
|
const innerTracker = innerValue?.[symbols.tracker]
|
|
192
195
|
if (innerTracker) {
|
|
193
|
-
return createTraceable(
|
|
196
|
+
return createTraceable(useSite, innerValue, innerTracker)
|
|
194
197
|
} else if (!tracker.noShadow && typeof innerValue === 'function') {
|
|
195
|
-
shadow ??= createShadow(
|
|
196
|
-
return createShadowMethod(
|
|
198
|
+
shadow ??= createShadow(useSite, target, tracker.property, receiver)
|
|
199
|
+
return createShadowMethod(useSite, innerValue, receiver, shadow)
|
|
197
200
|
} else {
|
|
198
201
|
return innerValue
|
|
199
202
|
}
|
|
200
203
|
},
|
|
201
204
|
set: (target, prop, value, receiver) => {
|
|
202
205
|
if (prop === symbols.original) return false
|
|
206
|
+
if (prop === symbols.caller) return false
|
|
203
207
|
if (prop === tracker.property) return false
|
|
204
208
|
if (typeof prop === 'symbol') {
|
|
205
209
|
return Reflect.set(target, prop, value, receiver)
|
|
206
210
|
}
|
|
207
|
-
if (tracker.associate &&
|
|
211
|
+
if (tracker.associate && useSite.reflect.props[`${tracker.associate}.${prop}`]) {
|
|
208
212
|
return Reflect.set(ctx, `${tracker.associate}.${prop}`, value, withProp(ctx, symbols.receiver, receiver))
|
|
209
213
|
}
|
|
210
|
-
const shadow = createShadow(
|
|
214
|
+
const shadow = createShadow(useSite, target, tracker.property, receiver)
|
|
211
215
|
return Reflect.set(target, prop, value, shadow)
|
|
212
216
|
},
|
|
213
217
|
apply: (target, thisArg, args) => {
|
|
214
|
-
|
|
218
|
+
const receiver = tracker.noShadow
|
|
219
|
+
? proxy
|
|
220
|
+
: createShadow(useSite, target, tracker.property, proxy)
|
|
221
|
+
return applyTraceable(receiver, target, thisArg, args)
|
|
215
222
|
},
|
|
216
223
|
})
|
|
217
224
|
return proxy
|
|
@@ -226,7 +233,7 @@ function applyTraceable(proxy: any, value: any, thisArg: any, args: any[]) {
|
|
|
226
233
|
export function createCallable(name: string, proto: {}, tracker: Tracker) {
|
|
227
234
|
const self = function (...args: any[]) {
|
|
228
235
|
const proxy = createTraceable(self['ctx'], self, tracker)
|
|
229
|
-
return
|
|
236
|
+
return Reflect.apply(proxy, this, args)
|
|
230
237
|
}
|
|
231
238
|
defineProperty(self, 'name', name)
|
|
232
239
|
return Object.setPrototypeOf(self, proto)
|
|
@@ -126,10 +126,10 @@ var Include = class extends EntryTree {
|
|
|
126
126
|
this.type = writable[ext];
|
|
127
127
|
this.readonly = !this.type;
|
|
128
128
|
this.ctx.baseUrl = new URL(".", pathToFileURL(this.filename)).href;
|
|
129
|
-
ctx.on("internal/update", (config,
|
|
129
|
+
ctx.on("internal/update", (config, next) => {
|
|
130
130
|
if (config.path !== this.config.path) return next();
|
|
131
131
|
this.config = config;
|
|
132
|
-
this.root.update(this.applyPatches(this.data, config.patches)).catch((error) => {
|
|
132
|
+
return this.root.update(this.applyPatches(this.data, config.patches)).catch((error) => {
|
|
133
133
|
this.ctx.logger.warn("config update at %C failed", this.filename);
|
|
134
134
|
this.ctx.logger.warn(error);
|
|
135
135
|
});
|
|
@@ -187,14 +187,10 @@ export class Include extends EntryTree {
|
|
|
187
187
|
this.readonly = !this.type
|
|
188
188
|
this.ctx.baseUrl = new URL('.', pathToFileURL(this.filename)).href
|
|
189
189
|
|
|
190
|
-
ctx.on('internal/update', (config,
|
|
190
|
+
ctx.on('internal/update', (config, next) => {
|
|
191
191
|
if (config.path !== this.config.path) return next()
|
|
192
|
-
// Veto the fiber restart (children update in place), but persist the new
|
|
193
|
-
// config ourselves — `Fiber.update` only assigns `this.config` behind
|
|
194
|
-
// `next()`, and a stale `this.config.patches` would make the next
|
|
195
|
-
// `refresh()` re-apply the old overlay.
|
|
196
192
|
this.config = config
|
|
197
|
-
this.root.update(this.applyPatches(this.data!, config.patches)).catch((error) => {
|
|
193
|
+
return this.root.update(this.applyPatches(this.data!, config.patches)).catch((error) => {
|
|
198
194
|
this.ctx.logger.warn('config update at %C failed', this.filename)
|
|
199
195
|
this.ctx.logger.warn(error)
|
|
200
196
|
})
|
|
@@ -61,3 +61,7 @@ Node module internals are classified by their available APIs, including the v1 A
|
|
|
61
61
|
## Volatile configuration
|
|
62
62
|
|
|
63
63
|
`Entry.update` compares raw entry options strictly; when only `config` changed on an active fiber in an unchanged context, the pure `equalExceptVolatile` function in `config/diff.ts` compares the raw configs using Schemastery metadata. It ignores volatile fields at fixed object paths without executing expressions, validators or `internal/config` hooks. Object nodes use their declared defaults for null or absent values, including objects without volatile fields; equivalent defaults skip updates. Other ordinary values, parent expressions and unknown fields retain raw comparison. Recursive schema backedges use raw comparison. Entry passes the actual plugin schema; a non-Schemastery schema compares raw. Context changes, other option changes and pending fibers use ordinary updates. A volatile-only change retains the raw Fiber config for later activation, then `_commitVolatile` parses it through the fiber's `internal/config` hook and schema, commits the new values into the running references when every ordinary effective value still matches, and emits `loader/volatile-update` to the owning fiber with the changed paths. A changed ordinary effective value uses the ordinary remount with a debug log naming the entry; because strict comparison treats class instances other than URL, Date and RegExp by identity, an ordinary field whose transform builds a fresh instance on every parse always takes that remount. An invalid candidate is logged and leaves the running references unchanged. A throwing `loader/volatile-update` listener is logged and does not fail the update; the values are already committed. Group/Include retain child dispatch, and programmatic Fiber updates preserve saving and `noSave`; `simplify` is called with its schema receiver so saved config contains plain values.
|
|
64
|
+
|
|
65
|
+
## Update completion
|
|
66
|
+
|
|
67
|
+
Entry updates await `loader/patch-context`, the Fiber update waterfall and disabled-entry disposal. Combined context/config changes refresh required bindings before restarting. Group and Include updates expose completion of their child updates; file persistence still follows Include’s debounced writer.
|
|
@@ -109,9 +109,7 @@ var Group = class extends EntryGroup {
|
|
|
109
109
|
super(ctx, ctx.fiber.entry.parent.tree);
|
|
110
110
|
this.ctx = ctx;
|
|
111
111
|
this.config = config;
|
|
112
|
-
ctx.on("internal/update", (config) =>
|
|
113
|
-
this.update(config);
|
|
114
|
-
});
|
|
112
|
+
ctx.on("internal/update", (config) => this.update(config));
|
|
115
113
|
}
|
|
116
114
|
async *[Service.init]() {
|
|
117
115
|
yield () => this.stop();
|
|
@@ -420,10 +418,14 @@ var Entry = class Entry {
|
|
|
420
418
|
evaluate(expr) {
|
|
421
419
|
return evaluate(this.ctx, expr);
|
|
422
420
|
}
|
|
423
|
-
_patchContext(diff) {
|
|
424
|
-
this.context.waterfall("loader/patch-context", this, () => {
|
|
421
|
+
async _patchContext(diff) {
|
|
422
|
+
await this.context.waterfall("loader/patch-context", this, async () => {
|
|
425
423
|
Object.setPrototypeOf(this.ctx, this.parent.ctx);
|
|
426
|
-
if (this.fiber?.uid && (diff.includes("config") || this.options.group))
|
|
424
|
+
if (this.fiber?.uid && (diff.includes("config") || this.options.group)) {
|
|
425
|
+
const fiber = this.fiber.ctx.fiber;
|
|
426
|
+
for (const name of Object.keys(fiber.inject)) fiber._checkImpl(name);
|
|
427
|
+
await fiber.update(this.options.config, true);
|
|
428
|
+
}
|
|
427
429
|
});
|
|
428
430
|
}
|
|
429
431
|
async refresh() {
|
|
@@ -439,7 +441,7 @@ var Entry = class Entry {
|
|
|
439
441
|
else this.options[key] = value;
|
|
440
442
|
sortKeys(this.options);
|
|
441
443
|
if (this.disabled) {
|
|
442
|
-
this.fiber?.dispose();
|
|
444
|
+
await this.fiber?.dispose();
|
|
443
445
|
return;
|
|
444
446
|
}
|
|
445
447
|
if (this.fiber?.uid) {
|
|
@@ -452,7 +454,7 @@ var Entry = class Entry {
|
|
|
452
454
|
const pending = volatileOnly && this._commitVolatile() ? [] : changes;
|
|
453
455
|
if (!pending.length && !force) return;
|
|
454
456
|
this.context.emit("loader/partial-dispose", this, legacy, true);
|
|
455
|
-
this._patchContext(pending);
|
|
457
|
+
await this._patchContext(pending);
|
|
456
458
|
} else await this.init();
|
|
457
459
|
}
|
|
458
460
|
/**
|
|
@@ -461,7 +463,7 @@ var Entry = class Entry {
|
|
|
461
463
|
* @returns `false` when an ordinary effective value changed, so the caller applies the ordinary update lifecycle.
|
|
462
464
|
*/
|
|
463
465
|
_commitVolatile() {
|
|
464
|
-
const fiber = this.fiber;
|
|
466
|
+
const fiber = this.fiber.ctx.fiber;
|
|
465
467
|
const refs = volatileEntries(fiber.effectiveConfig);
|
|
466
468
|
if (!refs.length) return true;
|
|
467
469
|
const raw = this.options.config;
|
|
@@ -509,11 +511,10 @@ var Entry = class Entry {
|
|
|
509
511
|
} finally {
|
|
510
512
|
this._initTask = void 0;
|
|
511
513
|
}
|
|
512
|
-
|
|
514
|
+
this.fiber?.await().catch(() => {}).finally(() => {
|
|
513
515
|
if (this.loader.getTasks().length) return;
|
|
514
516
|
this.ctx.reflect.notify(["loader"]);
|
|
515
|
-
};
|
|
516
|
-
this.fiber?.await().then(notify, notify);
|
|
517
|
+
});
|
|
517
518
|
}
|
|
518
519
|
async _init() {
|
|
519
520
|
let moduleNamespace;
|
|
@@ -522,13 +523,11 @@ var Entry = class Entry {
|
|
|
522
523
|
} catch (error) {
|
|
523
524
|
this.ctx.logger.error(error);
|
|
524
525
|
return;
|
|
525
|
-
} finally {
|
|
526
|
-
this._initTask = void 0;
|
|
527
526
|
}
|
|
528
527
|
const plugin = this.loader.unwrapExports(moduleNamespace);
|
|
529
|
-
this._patchContext([]);
|
|
528
|
+
await this._patchContext([]);
|
|
530
529
|
this.loader.showLog(this, "apply");
|
|
531
|
-
this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack)
|
|
530
|
+
this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack);
|
|
532
531
|
this.moduleNamespace = moduleNamespace;
|
|
533
532
|
}
|
|
534
533
|
};
|
|
@@ -591,7 +590,7 @@ function isolate(ctx) {
|
|
|
591
590
|
entry.ctx[Context.intercept] = Object.create(entry.ctx[Context.intercept]);
|
|
592
591
|
entry.ctx[Context.isolate] = Object.create(entry.ctx[Context.isolate]);
|
|
593
592
|
});
|
|
594
|
-
ctx.on("loader/patch-context", (entry, next) => {
|
|
593
|
+
ctx.on("loader/patch-context", async (entry, next) => {
|
|
595
594
|
const newMap = Object.create(entry.parent.ctx[Context.isolate]);
|
|
596
595
|
for (const name of Object.keys(entry.options.isolate ?? {})) newMap[name] = access(entry, name, true);
|
|
597
596
|
const diff = Object.create(null);
|
|
@@ -606,7 +605,8 @@ function isolate(ctx) {
|
|
|
606
605
|
for (const symbol of [oldMap[name], newMap[name]]) {
|
|
607
606
|
const impl = symbol && entry.ctx.reflect.store[symbol];
|
|
608
607
|
if (!impl) continue;
|
|
609
|
-
|
|
608
|
+
const fiber = impl.ctx.fiber;
|
|
609
|
+
if (!fiber) {
|
|
610
610
|
entry.ctx.logger.warn(/* @__PURE__ */ new Error(`expected service ${name} to be implemented`));
|
|
611
611
|
continue;
|
|
612
612
|
}
|
|
@@ -614,19 +614,23 @@ function isolate(ctx) {
|
|
|
614
614
|
oldMap[name],
|
|
615
615
|
newMap[name],
|
|
616
616
|
entry.ctx[delim],
|
|
617
|
-
|
|
617
|
+
fiber.ctx[delim]
|
|
618
618
|
];
|
|
619
|
-
if (entry.ctx[delim] !==
|
|
619
|
+
if (entry.ctx[delim] !== fiber.ctx[delim]) break;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
Object.setPrototypeOf(entry.ctx[Context.isolate], entry.parent.ctx[Context.isolate]);
|
|
623
623
|
Object.setPrototypeOf(entry.ctx[Context.intercept], entry.parent.ctx[Context.intercept]);
|
|
624
624
|
swap(entry.ctx[Context.isolate], newMap);
|
|
625
625
|
swap(entry.ctx[Context.intercept], entry.options.intercept);
|
|
626
|
-
next();
|
|
627
|
-
for (const [symbol1, symbol2, flag1, flag2] of Object.values(diff))
|
|
628
|
-
|
|
629
|
-
|
|
626
|
+
await next();
|
|
627
|
+
for (const [symbol1, symbol2, flag1, flag2] of Object.values(diff)) {
|
|
628
|
+
const impl = entry.ctx.reflect.store[symbol1];
|
|
629
|
+
if (flag1 === flag2 && impl && !entry.ctx.reflect.store[symbol2]) {
|
|
630
|
+
entry.ctx.reflect.store[symbol2] = impl;
|
|
631
|
+
delete entry.ctx.reflect.store[symbol1];
|
|
632
|
+
impl.isolate = symbol2;
|
|
633
|
+
}
|
|
630
634
|
}
|
|
631
635
|
ctx.reflect.notify(Object.keys(diff), (ctx, name) => {
|
|
632
636
|
const [symbol1, symbol2, flag1, flag2] = diff[name];
|
|
@@ -672,23 +676,20 @@ var Loader = class extends EntryTree {
|
|
|
672
676
|
noShadow: true
|
|
673
677
|
});
|
|
674
678
|
ctx.reflect.provide("loader", this, this[Service.check]);
|
|
675
|
-
ctx.on("internal/config",
|
|
679
|
+
ctx.on("internal/config", (fiber, next) => {
|
|
676
680
|
const config = next();
|
|
677
|
-
if (!
|
|
678
|
-
if (
|
|
679
|
-
return interpolate(
|
|
680
|
-
}
|
|
681
|
-
ctx.on("internal/
|
|
682
|
-
if (!
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}, {
|
|
688
|
-
global: true,
|
|
689
|
-
prepend: true
|
|
681
|
+
if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return config;
|
|
682
|
+
if (fiber.runtime?.callback[EntryGroup.key]) return config;
|
|
683
|
+
return interpolate(fiber.ctx, config);
|
|
684
|
+
});
|
|
685
|
+
ctx.on("internal/commit", (fiber, config) => {
|
|
686
|
+
if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return;
|
|
687
|
+
const schema = fiber.runtime?.Config;
|
|
688
|
+
const unparse = schema?.["simplify"];
|
|
689
|
+
fiber.entry.options.config = unparse ? unparse.call(schema, config) : config;
|
|
690
|
+
fiber.entry.parent.tree.write();
|
|
690
691
|
});
|
|
691
|
-
ctx.on("internal/update", function(config,
|
|
692
|
+
ctx.on("internal/update", function(config, next) {
|
|
692
693
|
if (!this.entry || this.parent.fiber?.entry === this.entry) return next();
|
|
693
694
|
self.showLog(this.entry, "reload");
|
|
694
695
|
return next();
|
|
@@ -98,12 +98,15 @@ export class Entry {
|
|
|
98
98
|
return evaluate(this.ctx, expr)
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
private _patchContext(diff: string[]) {
|
|
102
|
-
this.context.waterfall('loader/patch-context', this, () => {
|
|
101
|
+
private async _patchContext(diff: string[]) {
|
|
102
|
+
await this.context.waterfall('loader/patch-context', this, async () => {
|
|
103
103
|
Object.setPrototypeOf(this.ctx, this.parent.ctx)
|
|
104
104
|
|
|
105
105
|
if (this.fiber?.uid && (diff.includes('config') || this.options.group)) {
|
|
106
|
-
|
|
106
|
+
// A simultaneous context/config edit must restart against the new dependencies.
|
|
107
|
+
const fiber = this.fiber.ctx.fiber
|
|
108
|
+
for (const name of Object.keys(fiber.inject)) fiber._checkImpl(name)
|
|
109
|
+
await fiber.update(this.options.config, true)
|
|
107
110
|
}
|
|
108
111
|
})
|
|
109
112
|
}
|
|
@@ -134,7 +137,7 @@ export class Entry {
|
|
|
134
137
|
|
|
135
138
|
// step 2: execute
|
|
136
139
|
if (this.disabled) {
|
|
137
|
-
this.fiber?.dispose()
|
|
140
|
+
await this.fiber?.dispose()
|
|
138
141
|
return
|
|
139
142
|
}
|
|
140
143
|
|
|
@@ -150,7 +153,7 @@ export class Entry {
|
|
|
150
153
|
const pending = volatileOnly && this._commitVolatile() ? [] : changes
|
|
151
154
|
if (!pending.length && !force) return
|
|
152
155
|
this.context.emit('loader/partial-dispose', this, legacy, true)
|
|
153
|
-
this._patchContext(pending)
|
|
156
|
+
await this._patchContext(pending)
|
|
154
157
|
} else {
|
|
155
158
|
await this.init()
|
|
156
159
|
}
|
|
@@ -162,7 +165,7 @@ export class Entry {
|
|
|
162
165
|
* @returns `false` when an ordinary effective value changed, so the caller applies the ordinary update lifecycle.
|
|
163
166
|
*/
|
|
164
167
|
private _commitVolatile(): boolean {
|
|
165
|
-
const fiber = this.fiber
|
|
168
|
+
const fiber = this.fiber!.ctx.fiber
|
|
166
169
|
const refs = volatileEntries(fiber.effectiveConfig)
|
|
167
170
|
if (!refs.length) return true
|
|
168
171
|
const raw = this.options.config
|
|
@@ -213,11 +216,10 @@ export class Entry {
|
|
|
213
216
|
} finally {
|
|
214
217
|
this._initTask = undefined
|
|
215
218
|
}
|
|
216
|
-
|
|
219
|
+
this.fiber?.await().catch(() => {}).finally(() => {
|
|
217
220
|
if (this.loader.getTasks().length) return
|
|
218
221
|
this.ctx.reflect.notify(['loader'])
|
|
219
|
-
}
|
|
220
|
-
this.fiber?.await().then(notify, notify)
|
|
222
|
+
})
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
private async _init() {
|
|
@@ -227,13 +229,11 @@ export class Entry {
|
|
|
227
229
|
} catch (error) {
|
|
228
230
|
this.ctx.logger.error(error)
|
|
229
231
|
return
|
|
230
|
-
} finally {
|
|
231
|
-
this._initTask = undefined
|
|
232
232
|
}
|
|
233
233
|
const plugin = this.loader.unwrapExports(moduleNamespace)
|
|
234
|
-
this._patchContext([])
|
|
234
|
+
await this._patchContext([])
|
|
235
235
|
this.loader.showLog(this, 'apply')
|
|
236
|
-
this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack)
|
|
236
|
+
this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack)
|
|
237
237
|
this.moduleNamespace = moduleNamespace
|
|
238
238
|
}
|
|
239
239
|
}
|
|
@@ -78,9 +78,7 @@ export class Group extends EntryGroup {
|
|
|
78
78
|
|
|
79
79
|
constructor(public ctx: Context, public config: EntryOptions[]) {
|
|
80
80
|
super(ctx, ctx.fiber.entry!.parent.tree)
|
|
81
|
-
ctx.on('internal/update',
|
|
82
|
-
this.update(config)
|
|
83
|
-
})
|
|
81
|
+
ctx.on('internal/update', config => this.update(config))
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
async* [Service.init]() {
|
|
@@ -93,7 +93,7 @@ export default function isolate(ctx: Context) {
|
|
|
93
93
|
entry.ctx[Context.isolate] = Object.create(entry.ctx[Context.isolate])
|
|
94
94
|
})
|
|
95
95
|
|
|
96
|
-
ctx.on('loader/patch-context', (entry, next) => {
|
|
96
|
+
ctx.on('loader/patch-context', async (entry, next) => {
|
|
97
97
|
// step 1: generate new isolate map
|
|
98
98
|
const newMap: Dict<symbol> = Object.create(entry.parent.ctx[Context.isolate])
|
|
99
99
|
for (const name of Object.keys(entry.options.isolate ?? {})) {
|
|
@@ -110,12 +110,13 @@ export default function isolate(ctx: Context) {
|
|
|
110
110
|
for (const symbol of [oldMap[name], newMap[name]]) {
|
|
111
111
|
const impl = symbol && entry.ctx.reflect.store[symbol]
|
|
112
112
|
if (!impl) continue
|
|
113
|
-
|
|
113
|
+
const fiber = impl.ctx.fiber
|
|
114
|
+
if (!fiber) {
|
|
114
115
|
entry.ctx.logger.warn(new Error(`expected service ${name} to be implemented`))
|
|
115
116
|
continue
|
|
116
117
|
}
|
|
117
|
-
diff[name] = [oldMap[name], newMap[name], entry.ctx[delim],
|
|
118
|
-
if (entry.ctx[delim] !==
|
|
118
|
+
diff[name] = [oldMap[name], newMap[name], entry.ctx[delim], fiber.ctx[delim]]
|
|
119
|
+
if (entry.ctx[delim] !== fiber.ctx[delim]) break
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
|
|
@@ -126,13 +127,15 @@ export default function isolate(ctx: Context) {
|
|
|
126
127
|
swap(entry.ctx[Context.intercept], entry.options.intercept)
|
|
127
128
|
|
|
128
129
|
// step 4: reload fiber
|
|
129
|
-
next()
|
|
130
|
+
await next()
|
|
130
131
|
|
|
131
132
|
// step 5: replace service impl
|
|
132
133
|
for (const [symbol1, symbol2, flag1, flag2] of Object.values(diff)) {
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
const impl = entry.ctx.reflect.store[symbol1]
|
|
135
|
+
if (flag1 === flag2 && impl && !entry.ctx.reflect.store[symbol2]) {
|
|
136
|
+
entry.ctx.reflect.store[symbol2] = impl
|
|
135
137
|
delete entry.ctx.reflect.store[symbol1]
|
|
138
|
+
impl.isolate = symbol2
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context, FiberState, Inject, Service
|
|
2
|
-
import { defineProperty, isNullable, type Dict } from '@deepseek-ai/cosmokit'
|
|
1
|
+
import { Context, FiberState, Inject, Service } from '@deepseek-ai/cordis'
|
|
2
|
+
import { defineProperty, isNullable, type Awaitable, type Dict } from '@deepseek-ai/cosmokit'
|
|
3
3
|
import { ModuleLoader } from './internal.ts'
|
|
4
4
|
import { Entry, type EntryOptions } from './config/entry.ts'
|
|
5
5
|
import { EntryGroup } from './config/group.ts'
|
|
@@ -38,7 +38,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
38
38
|
* @param next - continue context refresh and Loader's config update.
|
|
39
39
|
* @mode waterfall
|
|
40
40
|
*/
|
|
41
|
-
'loader/patch-context'(entry: Entry, next: () => void): void
|
|
41
|
+
'loader/patch-context'(entry: Entry, next: () => Awaitable<void>): Awaitable<void>
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
interface Context {
|
|
@@ -101,26 +101,23 @@ export class Loader extends EntryTree {
|
|
|
101
101
|
|
|
102
102
|
ctx.reflect.provide('loader', this, this[Service.check])
|
|
103
103
|
|
|
104
|
-
ctx.on('internal/config',
|
|
104
|
+
ctx.on('internal/config', (fiber, next) => {
|
|
105
105
|
const config = next()
|
|
106
|
-
if (!
|
|
107
|
-
// Tree carriers
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (plugin?.[EntryGroup.key]) return config
|
|
112
|
-
return interpolate(this.ctx, config)
|
|
113
|
-
}, { global: true })
|
|
106
|
+
if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return config
|
|
107
|
+
// Tree carriers preserve the expressions owned by their child entries.
|
|
108
|
+
if (fiber.runtime?.callback[EntryGroup.key]) return config
|
|
109
|
+
return interpolate(fiber.ctx, config)
|
|
110
|
+
})
|
|
114
111
|
|
|
115
|
-
ctx.on('internal/
|
|
116
|
-
if (!
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
112
|
+
ctx.on('internal/commit', (fiber, config) => {
|
|
113
|
+
if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return
|
|
114
|
+
const schema = fiber.runtime?.Config
|
|
115
|
+
const unparse = schema?.['simplify']
|
|
116
|
+
fiber.entry.options.config = unparse ? unparse.call(schema, config) : config
|
|
117
|
+
fiber.entry.parent.tree.write()
|
|
118
|
+
})
|
|
122
119
|
|
|
123
|
-
ctx.on('internal/update', function (config,
|
|
120
|
+
ctx.on('internal/update', function (config, next) {
|
|
124
121
|
if (!this.entry || this.parent.fiber?.entry === this.entry) return next()
|
|
125
122
|
self.showLog(this.entry, 'reload')
|
|
126
123
|
return next()
|