@songtonyli/dsh-cli 0.1.90 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis/README.md +6 -2
- package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
- package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
- package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
- package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
- package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
- package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
- package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
- package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
- package/node_modules/@deepseek-ai/dsh/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
- package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
- package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
- package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
- package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
- package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
- package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
- package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
- package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
- package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
- package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +5 -10
- package/node_modules/encodeurl/package.json +7 -3
- package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
- package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
- package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
- package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
- package/node_modules/hast-util-to-html/lib/index.js +9 -4
- package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
- package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
- package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
- package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
- package/node_modules/hast-util-to-html/package.json +5 -23
- package/node_modules/hast-util-to-html/readme.md +3 -2
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/rrule/LICENCE +65 -0
- package/node_modules/rrule/README.md +837 -0
- package/node_modules/rrule/dist/es5/rrule.js +3803 -0
- package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
- package/node_modules/rrule/dist/esm/cache.js +95 -0
- package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
- package/node_modules/rrule/dist/esm/datetime.js +186 -0
- package/node_modules/rrule/dist/esm/dateutil.js +161 -0
- package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
- package/node_modules/rrule/dist/esm/helpers.js +118 -0
- package/node_modules/rrule/dist/esm/index.js +22 -0
- package/node_modules/rrule/dist/esm/iter/index.js +138 -0
- package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
- package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
- package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
- package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
- package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
- package/node_modules/rrule/dist/esm/iterresult.js +88 -0
- package/node_modules/rrule/dist/esm/iterset.js +63 -0
- package/node_modules/rrule/dist/esm/masks.js +30 -0
- package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
- package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
- package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
- package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
- package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
- package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
- package/node_modules/rrule/dist/esm/parsestring.js +128 -0
- package/node_modules/rrule/dist/esm/rrule.js +232 -0
- package/node_modules/rrule/dist/esm/rruleset.js +182 -0
- package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
- package/node_modules/rrule/dist/esm/types.js +14 -0
- package/node_modules/rrule/dist/esm/weekday.js +45 -0
- package/node_modules/rrule/package.json +79 -0
- package/package.json +32 -31
- package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
- package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
- package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
- package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
- package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
- package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
- package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
- package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
- package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
- package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
- package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
- package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
- package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
- package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
- package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
- package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
- package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
- package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
- package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
|
@@ -5,10 +5,11 @@ window.__ModuleLoader__.load({
|
|
|
5
5
|
var exports = module.exports;
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
7
|
let zod = require("zod");
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
8
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
11
11
|
let react = require("react");
|
|
12
|
+
let react_dom = require("react-dom");
|
|
12
13
|
//#region ../../typert/protocol/lib/types/remote-info.js
|
|
13
14
|
/** Lazy assembly of generated Remote definitions using caller-supplied Zod; no runtime imports. */
|
|
14
15
|
/**
|
|
@@ -177,6 +178,80 @@ window.__ModuleLoader__.load({
|
|
|
177
178
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_parameter_0$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_parameter_0$schema$value ??= zod.z.string();
|
|
178
179
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_result$schema$value;
|
|
179
180
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_result$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_result$schema$value ??= zod.z.void();
|
|
181
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0$schema$value;
|
|
182
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0$schema$value ??= zod.z.string();
|
|
183
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1$schema$value;
|
|
184
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1$schema$value ??= zod.z.string();
|
|
185
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2$schema$value;
|
|
186
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2$schema$value ??= zod.z.string();
|
|
187
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_result$schema$value;
|
|
188
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_result$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_result$schema$value ??= zod.z.object({
|
|
189
|
+
"ref": zod.z.object({
|
|
190
|
+
"repository": zod.z.object({
|
|
191
|
+
"forge": zod.z.string().readonly().describe("Provider family that serves the repository, such as `github`."),
|
|
192
|
+
"host": zod.z.string().readonly().describe("Lowercase host name, such as `github.com`."),
|
|
193
|
+
"owner": zod.z.string().readonly().describe("Owner or namespace path as the host spells it."),
|
|
194
|
+
"name": zod.z.string().readonly().describe("Repository name as the host spells it.")
|
|
195
|
+
}).readonly().describe("Repository that holds the change request."),
|
|
196
|
+
"number": zod.z.number().readonly().describe("Host-assigned change request number.")
|
|
197
|
+
}).readonly().describe("Change request the snapshot describes."),
|
|
198
|
+
"url": zod.z.string().readonly().describe("Web page of the change request."),
|
|
199
|
+
"title": zod.z.string().readonly().describe("Title as the author wrote it."),
|
|
200
|
+
"state": zod.z.union([
|
|
201
|
+
zod.z.literal("open"),
|
|
202
|
+
zod.z.literal("closed"),
|
|
203
|
+
zod.z.literal("merged")
|
|
204
|
+
]).readonly().describe("Lifecycle state."),
|
|
205
|
+
"draft": zod.z.boolean().readonly().describe("Whether the author marked the change request as a draft."),
|
|
206
|
+
"author": zod.z.union([zod.z.literal(null), zod.z.string()]).readonly().describe("Author login, or null when the host hides it."),
|
|
207
|
+
"headBranch": zod.z.string().readonly().describe("Branch that carries the proposed commits."),
|
|
208
|
+
"headSha": zod.z.string().readonly().describe("Commit object name at the head of the change request."),
|
|
209
|
+
"baseBranch": zod.z.string().readonly().describe("Branch the change request merges into."),
|
|
210
|
+
"additions": zod.z.number().readonly().describe("Lines the change request adds."),
|
|
211
|
+
"deletions": zod.z.number().readonly().describe("Lines the change request deletes."),
|
|
212
|
+
"mergeability": zod.z.union([
|
|
213
|
+
zod.z.literal("unknown"),
|
|
214
|
+
zod.z.literal("mergeable"),
|
|
215
|
+
zod.z.literal("conflicting")
|
|
216
|
+
]).readonly().describe("Merge conflict status; `unknown` while the host computes it."),
|
|
217
|
+
"mergeReady": zod.z.boolean().readonly().describe("Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch's merge rules."),
|
|
218
|
+
"mergeMethods": zod.z.array(zod.z.union([
|
|
219
|
+
zod.z.literal("merge"),
|
|
220
|
+
zod.z.literal("squash"),
|
|
221
|
+
zod.z.literal("rebase")
|
|
222
|
+
])).readonly().describe("Merge methods the repository accepts, the signed-in user's usual one first."),
|
|
223
|
+
"reviewDecision": zod.z.union([
|
|
224
|
+
zod.z.literal("none"),
|
|
225
|
+
zod.z.literal("approved"),
|
|
226
|
+
zod.z.literal("changes-requested"),
|
|
227
|
+
zod.z.literal("review-required")
|
|
228
|
+
]).readonly().describe("Aggregate review outcome."),
|
|
229
|
+
"checks": zod.z.array(zod.z.object({
|
|
230
|
+
"name": zod.z.string().readonly().describe("Check name as the host displays it."),
|
|
231
|
+
"state": zod.z.union([
|
|
232
|
+
zod.z.literal("cancelled"),
|
|
233
|
+
zod.z.literal("pending"),
|
|
234
|
+
zod.z.literal("neutral"),
|
|
235
|
+
zod.z.literal("success"),
|
|
236
|
+
zod.z.literal("failure"),
|
|
237
|
+
zod.z.literal("skipped")
|
|
238
|
+
]).readonly().describe("Normalized check outcome."),
|
|
239
|
+
"url": zod.z.union([zod.z.literal(null), zod.z.string()]).readonly().describe("Web page for the check, or null when the host reports none."),
|
|
240
|
+
"workflow": zod.z.union([zod.z.literal(null), zod.z.string()]).readonly().describe("Workflow that produced the check, or null when the host reports none."),
|
|
241
|
+
"startedAt": zod.z.union([zod.z.literal(null), zod.z.string()]).readonly().describe("ISO 8601 time the check started, or null before it starts and when the host reports none."),
|
|
242
|
+
"completedAt": zod.z.union([zod.z.literal(null), zod.z.string()]).readonly().describe("ISO 8601 time the check completed, or null while it runs and when the host reports none.")
|
|
243
|
+
})).readonly().describe("Checks on the head commit in host order."),
|
|
244
|
+
"checksRollup": zod.z.union([
|
|
245
|
+
zod.z.literal("pending"),
|
|
246
|
+
zod.z.literal("success"),
|
|
247
|
+
zod.z.literal("none"),
|
|
248
|
+
zod.z.literal("failure")
|
|
249
|
+
]).readonly().describe("Combined check outcome."),
|
|
250
|
+
"checksTruncated": zod.z.boolean().readonly().describe("Whether the host reported more checks than `checks` contains."),
|
|
251
|
+
"unresolvedThreads": zod.z.number().readonly().describe("Number of review threads that are not resolved."),
|
|
252
|
+
"updatedAt": zod.z.string().readonly().describe("ISO 8601 time of the host's last update to the change request."),
|
|
253
|
+
"closedAt": zod.z.union([zod.z.literal(null), zod.z.string()]).readonly().describe("ISO 8601 time the change request was merged or closed, or null while it is open.")
|
|
254
|
+
});
|
|
180
255
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0$schema$value;
|
|
181
256
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0$schema$value ??= zod.z.string();
|
|
182
257
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1$schema$value;
|
|
@@ -640,6 +715,52 @@ window.__ModuleLoader__.load({
|
|
|
640
715
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0$schema$value ??= zod.z.string();
|
|
641
716
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_result$schema$value;
|
|
642
717
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_result$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_result$schema$value ??= zod.z.void();
|
|
718
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0$schema$value;
|
|
719
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0$schema$value ??= zod.z.string();
|
|
720
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1$schema$value;
|
|
721
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1$schema$value ??= zod.z.string();
|
|
722
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2$schema$value;
|
|
723
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2$schema$value ??= zod.z.union([zod.z.object({
|
|
724
|
+
"headSha": zod.z.string().readonly().describe("Commit the user reviewed; providers must check it before writing and address that commit explicitly."),
|
|
725
|
+
"kind": zod.z.literal("comment").readonly(),
|
|
726
|
+
"comment": zod.z.object({
|
|
727
|
+
"path": zod.z.string().readonly(),
|
|
728
|
+
"side": zod.z.union([zod.z.literal("L"), zod.z.literal("R")]).readonly(),
|
|
729
|
+
"startLine": zod.z.number().readonly(),
|
|
730
|
+
"endLine": zod.z.number().readonly(),
|
|
731
|
+
"body": zod.z.string().readonly()
|
|
732
|
+
}).readonly()
|
|
733
|
+
}), zod.z.object({
|
|
734
|
+
"headSha": zod.z.string().readonly().describe("Commit the user reviewed; providers must check it before writing and address that commit explicitly."),
|
|
735
|
+
"kind": zod.z.literal("review").readonly(),
|
|
736
|
+
"event": zod.z.union([
|
|
737
|
+
zod.z.literal("comment"),
|
|
738
|
+
zod.z.literal("approve"),
|
|
739
|
+
zod.z.literal("request-changes")
|
|
740
|
+
]).readonly(),
|
|
741
|
+
"body": zod.z.string().readonly(),
|
|
742
|
+
"comments": zod.z.array(zod.z.object({
|
|
743
|
+
"path": zod.z.string().readonly(),
|
|
744
|
+
"side": zod.z.union([zod.z.literal("L"), zod.z.literal("R")]).readonly(),
|
|
745
|
+
"startLine": zod.z.number().readonly(),
|
|
746
|
+
"endLine": zod.z.number().readonly(),
|
|
747
|
+
"body": zod.z.string().readonly()
|
|
748
|
+
})).readonly()
|
|
749
|
+
})]);
|
|
750
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_result$schema$value;
|
|
751
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_result$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_result$schema$value ??= zod.z.union([zod.z.object({
|
|
752
|
+
"ok": zod.z.literal(true).readonly(),
|
|
753
|
+
"url": zod.z.string().readonly()
|
|
754
|
+
}), zod.z.object({
|
|
755
|
+
"ok": zod.z.literal(false).readonly(),
|
|
756
|
+
"code": zod.z.union([
|
|
757
|
+
zod.z.literal("failed"),
|
|
758
|
+
zod.z.literal("unknown"),
|
|
759
|
+
zod.z.literal("unsupported"),
|
|
760
|
+
zod.z.literal("stale")
|
|
761
|
+
]).readonly(),
|
|
762
|
+
"message": zod.z.string().readonly()
|
|
763
|
+
})]);
|
|
643
764
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0$schema$value;
|
|
644
765
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0$schema$value ??= zod.z.string();
|
|
645
766
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1$schema$value;
|
|
@@ -650,6 +771,12 @@ window.__ModuleLoader__.load({
|
|
|
650
771
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_branches_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_branches_parameter_0_strict$schema$value ??= zod.z.string();
|
|
651
772
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_parameter_0_strict$schema$value;
|
|
652
773
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_cancelWorktree_parameter_0_strict$schema$value ??= zod.z.string();
|
|
774
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0_strict$schema$value;
|
|
775
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0_strict$schema$value ??= zod.z.string();
|
|
776
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1_strict$schema$value;
|
|
777
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1_strict$schema$value ??= zod.z.string();
|
|
778
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema$value;
|
|
779
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema$value ??= zod.z.string();
|
|
653
780
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0_strict$schema$value;
|
|
654
781
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_0_strict$schema$value ??= zod.z.string();
|
|
655
782
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestDiff_parameter_1_strict$schema$value;
|
|
@@ -718,6 +845,38 @@ window.__ModuleLoader__.load({
|
|
|
718
845
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_retryWorktree_parameter_0_strict$schema$value ??= zod.z.string();
|
|
719
846
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0_strict$schema$value;
|
|
720
847
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_stopCreation_parameter_0_strict$schema$value ??= zod.z.string();
|
|
848
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0_strict$schema$value;
|
|
849
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0_strict$schema$value ??= zod.z.string();
|
|
850
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1_strict$schema$value;
|
|
851
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1_strict$schema$value ??= zod.z.string();
|
|
852
|
+
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2_strict$schema$value;
|
|
853
|
+
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2_strict$schema$value ??= zod.z.union([zod.z.strictObject({
|
|
854
|
+
"headSha": zod.z.string().readonly().describe("Commit the user reviewed; providers must check it before writing and address that commit explicitly."),
|
|
855
|
+
"kind": zod.z.literal("comment").readonly(),
|
|
856
|
+
"comment": zod.z.strictObject({
|
|
857
|
+
"path": zod.z.string().readonly(),
|
|
858
|
+
"side": zod.z.union([zod.z.literal("L"), zod.z.literal("R")]).readonly(),
|
|
859
|
+
"startLine": zod.z.number().readonly(),
|
|
860
|
+
"endLine": zod.z.number().readonly(),
|
|
861
|
+
"body": zod.z.string().readonly()
|
|
862
|
+
}).readonly()
|
|
863
|
+
}), zod.z.strictObject({
|
|
864
|
+
"headSha": zod.z.string().readonly().describe("Commit the user reviewed; providers must check it before writing and address that commit explicitly."),
|
|
865
|
+
"kind": zod.z.literal("review").readonly(),
|
|
866
|
+
"event": zod.z.union([
|
|
867
|
+
zod.z.literal("comment"),
|
|
868
|
+
zod.z.literal("approve"),
|
|
869
|
+
zod.z.literal("request-changes")
|
|
870
|
+
]).readonly(),
|
|
871
|
+
"body": zod.z.string().readonly(),
|
|
872
|
+
"comments": zod.z.array(zod.z.strictObject({
|
|
873
|
+
"path": zod.z.string().readonly(),
|
|
874
|
+
"side": zod.z.union([zod.z.literal("L"), zod.z.literal("R")]).readonly(),
|
|
875
|
+
"startLine": zod.z.number().readonly(),
|
|
876
|
+
"endLine": zod.z.number().readonly(),
|
|
877
|
+
"body": zod.z.string().readonly()
|
|
878
|
+
})).readonly()
|
|
879
|
+
})]);
|
|
721
880
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_strict$schema$value;
|
|
722
881
|
const _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_strict$schema = () => _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_strict$schema$value ??= zod.z.string();
|
|
723
882
|
let _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1_strict$schema$value;
|
|
@@ -812,7 +971,323 @@ window.__ModuleLoader__.load({
|
|
|
812
971
|
},
|
|
813
972
|
sourceLocation: {
|
|
814
973
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
815
|
-
"line":
|
|
974
|
+
"line": 449,
|
|
975
|
+
"column": 9
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
"forgePanel/changeRequestChecks": {
|
|
979
|
+
service: "forgePanel",
|
|
980
|
+
description: "Load complete checks for the change request whose list the user opened.",
|
|
981
|
+
invocation: { kind: "direct" },
|
|
982
|
+
parameters: [
|
|
983
|
+
{
|
|
984
|
+
name: "session",
|
|
985
|
+
wire: "sessionId",
|
|
986
|
+
description: "Session retaining the visible binding.",
|
|
987
|
+
source: "lookup",
|
|
988
|
+
lookup: "session",
|
|
989
|
+
codec: {
|
|
990
|
+
mode: "strict",
|
|
991
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
992
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0$schema,
|
|
993
|
+
jsonSchema: { "type": "string" }
|
|
994
|
+
},
|
|
995
|
+
strictCodec: {
|
|
996
|
+
mode: "strict",
|
|
997
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
998
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_0_strict$schema,
|
|
999
|
+
jsonSchema: { "type": "string" }
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
name: "url",
|
|
1004
|
+
description: "binding URL.",
|
|
1005
|
+
source: "json",
|
|
1006
|
+
codec: {
|
|
1007
|
+
mode: "strict",
|
|
1008
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestChecks:url",
|
|
1009
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1$schema,
|
|
1010
|
+
jsonSchema: { "type": "string" }
|
|
1011
|
+
},
|
|
1012
|
+
strictCodec: {
|
|
1013
|
+
mode: "strict",
|
|
1014
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestChecks:url",
|
|
1015
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_1_strict$schema,
|
|
1016
|
+
jsonSchema: { "type": "string" }
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
name: "headSha",
|
|
1021
|
+
description: "commit displayed by the card; a different head rejects the result.",
|
|
1022
|
+
source: "json",
|
|
1023
|
+
codec: {
|
|
1024
|
+
mode: "strict",
|
|
1025
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestChecks:headSha",
|
|
1026
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2$schema,
|
|
1027
|
+
jsonSchema: { "type": "string" }
|
|
1028
|
+
},
|
|
1029
|
+
strictCodec: {
|
|
1030
|
+
mode: "strict",
|
|
1031
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/changeRequestChecks:headSha",
|
|
1032
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_parameter_2_strict$schema,
|
|
1033
|
+
jsonSchema: { "type": "string" }
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
],
|
|
1037
|
+
cancellation: { parameter: "signal" },
|
|
1038
|
+
result: {
|
|
1039
|
+
mode: "strict",
|
|
1040
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-forge/types#ChangeRequestSnapshot",
|
|
1041
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_changeRequestChecks_result$schema,
|
|
1042
|
+
description: "the complete snapshot at the displayed head.",
|
|
1043
|
+
jsonSchema: {
|
|
1044
|
+
"type": "object",
|
|
1045
|
+
"properties": {
|
|
1046
|
+
"ref": {
|
|
1047
|
+
"type": "object",
|
|
1048
|
+
"properties": {
|
|
1049
|
+
"repository": {
|
|
1050
|
+
"type": "object",
|
|
1051
|
+
"properties": {
|
|
1052
|
+
"forge": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"description": "Provider family that serves the repository, such as `github`."
|
|
1055
|
+
},
|
|
1056
|
+
"host": {
|
|
1057
|
+
"type": "string",
|
|
1058
|
+
"description": "Lowercase host name, such as `github.com`."
|
|
1059
|
+
},
|
|
1060
|
+
"owner": {
|
|
1061
|
+
"type": "string",
|
|
1062
|
+
"description": "Owner or namespace path as the host spells it."
|
|
1063
|
+
},
|
|
1064
|
+
"name": {
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
"description": "Repository name as the host spells it."
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"required": [
|
|
1070
|
+
"forge",
|
|
1071
|
+
"host",
|
|
1072
|
+
"owner",
|
|
1073
|
+
"name"
|
|
1074
|
+
],
|
|
1075
|
+
"additionalProperties": true,
|
|
1076
|
+
"description": "Repository that holds the change request."
|
|
1077
|
+
},
|
|
1078
|
+
"number": {
|
|
1079
|
+
"type": "number",
|
|
1080
|
+
"description": "Host-assigned change request number."
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"required": ["repository", "number"],
|
|
1084
|
+
"additionalProperties": true,
|
|
1085
|
+
"description": "Change request the snapshot describes."
|
|
1086
|
+
},
|
|
1087
|
+
"url": {
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"description": "Web page of the change request."
|
|
1090
|
+
},
|
|
1091
|
+
"title": {
|
|
1092
|
+
"type": "string",
|
|
1093
|
+
"description": "Title as the author wrote it."
|
|
1094
|
+
},
|
|
1095
|
+
"state": {
|
|
1096
|
+
"type": "string",
|
|
1097
|
+
"enum": [
|
|
1098
|
+
"open",
|
|
1099
|
+
"closed",
|
|
1100
|
+
"merged"
|
|
1101
|
+
],
|
|
1102
|
+
"description": "Lifecycle state."
|
|
1103
|
+
},
|
|
1104
|
+
"draft": {
|
|
1105
|
+
"type": "boolean",
|
|
1106
|
+
"description": "Whether the author marked the change request as a draft."
|
|
1107
|
+
},
|
|
1108
|
+
"author": {
|
|
1109
|
+
"oneOf": [{
|
|
1110
|
+
"type": "null",
|
|
1111
|
+
"const": null
|
|
1112
|
+
}, { "type": "string" }],
|
|
1113
|
+
"description": "Author login, or null when the host hides it."
|
|
1114
|
+
},
|
|
1115
|
+
"headBranch": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"description": "Branch that carries the proposed commits."
|
|
1118
|
+
},
|
|
1119
|
+
"headSha": {
|
|
1120
|
+
"type": "string",
|
|
1121
|
+
"description": "Commit object name at the head of the change request."
|
|
1122
|
+
},
|
|
1123
|
+
"baseBranch": {
|
|
1124
|
+
"type": "string",
|
|
1125
|
+
"description": "Branch the change request merges into."
|
|
1126
|
+
},
|
|
1127
|
+
"additions": {
|
|
1128
|
+
"type": "number",
|
|
1129
|
+
"description": "Lines the change request adds."
|
|
1130
|
+
},
|
|
1131
|
+
"deletions": {
|
|
1132
|
+
"type": "number",
|
|
1133
|
+
"description": "Lines the change request deletes."
|
|
1134
|
+
},
|
|
1135
|
+
"mergeability": {
|
|
1136
|
+
"type": "string",
|
|
1137
|
+
"enum": [
|
|
1138
|
+
"unknown",
|
|
1139
|
+
"mergeable",
|
|
1140
|
+
"conflicting"
|
|
1141
|
+
],
|
|
1142
|
+
"description": "Merge conflict status; `unknown` while the host computes it."
|
|
1143
|
+
},
|
|
1144
|
+
"mergeReady": {
|
|
1145
|
+
"type": "boolean",
|
|
1146
|
+
"description": "Whether the host would merge the change request now for the signed-in user: open, not a draft, and meeting the base branch's merge rules."
|
|
1147
|
+
},
|
|
1148
|
+
"mergeMethods": {
|
|
1149
|
+
"type": "array",
|
|
1150
|
+
"items": {
|
|
1151
|
+
"type": "string",
|
|
1152
|
+
"enum": [
|
|
1153
|
+
"merge",
|
|
1154
|
+
"squash",
|
|
1155
|
+
"rebase"
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1158
|
+
"description": "Merge methods the repository accepts, the signed-in user's usual one first."
|
|
1159
|
+
},
|
|
1160
|
+
"reviewDecision": {
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"enum": [
|
|
1163
|
+
"none",
|
|
1164
|
+
"approved",
|
|
1165
|
+
"changes-requested",
|
|
1166
|
+
"review-required"
|
|
1167
|
+
],
|
|
1168
|
+
"description": "Aggregate review outcome."
|
|
1169
|
+
},
|
|
1170
|
+
"checks": {
|
|
1171
|
+
"type": "array",
|
|
1172
|
+
"items": {
|
|
1173
|
+
"type": "object",
|
|
1174
|
+
"properties": {
|
|
1175
|
+
"name": {
|
|
1176
|
+
"type": "string",
|
|
1177
|
+
"description": "Check name as the host displays it."
|
|
1178
|
+
},
|
|
1179
|
+
"state": {
|
|
1180
|
+
"type": "string",
|
|
1181
|
+
"enum": [
|
|
1182
|
+
"cancelled",
|
|
1183
|
+
"pending",
|
|
1184
|
+
"neutral",
|
|
1185
|
+
"success",
|
|
1186
|
+
"failure",
|
|
1187
|
+
"skipped"
|
|
1188
|
+
],
|
|
1189
|
+
"description": "Normalized check outcome."
|
|
1190
|
+
},
|
|
1191
|
+
"url": {
|
|
1192
|
+
"oneOf": [{
|
|
1193
|
+
"type": "null",
|
|
1194
|
+
"const": null
|
|
1195
|
+
}, { "type": "string" }],
|
|
1196
|
+
"description": "Web page for the check, or null when the host reports none."
|
|
1197
|
+
},
|
|
1198
|
+
"workflow": {
|
|
1199
|
+
"oneOf": [{
|
|
1200
|
+
"type": "null",
|
|
1201
|
+
"const": null
|
|
1202
|
+
}, { "type": "string" }],
|
|
1203
|
+
"description": "Workflow that produced the check, or null when the host reports none."
|
|
1204
|
+
},
|
|
1205
|
+
"startedAt": {
|
|
1206
|
+
"oneOf": [{
|
|
1207
|
+
"type": "null",
|
|
1208
|
+
"const": null
|
|
1209
|
+
}, { "type": "string" }],
|
|
1210
|
+
"description": "ISO 8601 time the check started, or null before it starts and when the host reports none."
|
|
1211
|
+
},
|
|
1212
|
+
"completedAt": {
|
|
1213
|
+
"oneOf": [{
|
|
1214
|
+
"type": "null",
|
|
1215
|
+
"const": null
|
|
1216
|
+
}, { "type": "string" }],
|
|
1217
|
+
"description": "ISO 8601 time the check completed, or null while it runs and when the host reports none."
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
"required": [
|
|
1221
|
+
"name",
|
|
1222
|
+
"state",
|
|
1223
|
+
"url",
|
|
1224
|
+
"workflow",
|
|
1225
|
+
"startedAt",
|
|
1226
|
+
"completedAt"
|
|
1227
|
+
],
|
|
1228
|
+
"additionalProperties": true
|
|
1229
|
+
},
|
|
1230
|
+
"description": "Checks on the head commit in host order."
|
|
1231
|
+
},
|
|
1232
|
+
"checksRollup": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"enum": [
|
|
1235
|
+
"pending",
|
|
1236
|
+
"success",
|
|
1237
|
+
"none",
|
|
1238
|
+
"failure"
|
|
1239
|
+
],
|
|
1240
|
+
"description": "Combined check outcome."
|
|
1241
|
+
},
|
|
1242
|
+
"checksTruncated": {
|
|
1243
|
+
"type": "boolean",
|
|
1244
|
+
"description": "Whether the host reported more checks than `checks` contains."
|
|
1245
|
+
},
|
|
1246
|
+
"unresolvedThreads": {
|
|
1247
|
+
"type": "number",
|
|
1248
|
+
"description": "Number of review threads that are not resolved."
|
|
1249
|
+
},
|
|
1250
|
+
"updatedAt": {
|
|
1251
|
+
"type": "string",
|
|
1252
|
+
"description": "ISO 8601 time of the host's last update to the change request."
|
|
1253
|
+
},
|
|
1254
|
+
"closedAt": {
|
|
1255
|
+
"oneOf": [{
|
|
1256
|
+
"type": "null",
|
|
1257
|
+
"const": null
|
|
1258
|
+
}, { "type": "string" }],
|
|
1259
|
+
"description": "ISO 8601 time the change request was merged or closed, or null while it is open."
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
"required": [
|
|
1263
|
+
"ref",
|
|
1264
|
+
"url",
|
|
1265
|
+
"title",
|
|
1266
|
+
"state",
|
|
1267
|
+
"draft",
|
|
1268
|
+
"author",
|
|
1269
|
+
"headBranch",
|
|
1270
|
+
"headSha",
|
|
1271
|
+
"baseBranch",
|
|
1272
|
+
"additions",
|
|
1273
|
+
"deletions",
|
|
1274
|
+
"mergeability",
|
|
1275
|
+
"mergeReady",
|
|
1276
|
+
"mergeMethods",
|
|
1277
|
+
"reviewDecision",
|
|
1278
|
+
"checks",
|
|
1279
|
+
"checksRollup",
|
|
1280
|
+
"checksTruncated",
|
|
1281
|
+
"unresolvedThreads",
|
|
1282
|
+
"updatedAt",
|
|
1283
|
+
"closedAt"
|
|
1284
|
+
],
|
|
1285
|
+
"additionalProperties": true
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
sourceLocation: {
|
|
1289
|
+
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1290
|
+
"line": 285,
|
|
816
1291
|
"column": 9
|
|
817
1292
|
}
|
|
818
1293
|
},
|
|
@@ -865,7 +1340,7 @@ window.__ModuleLoader__.load({
|
|
|
865
1340
|
},
|
|
866
1341
|
sourceLocation: {
|
|
867
1342
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
868
|
-
"line":
|
|
1343
|
+
"line": 308,
|
|
869
1344
|
"column": 9
|
|
870
1345
|
}
|
|
871
1346
|
},
|
|
@@ -1141,7 +1616,7 @@ window.__ModuleLoader__.load({
|
|
|
1141
1616
|
},
|
|
1142
1617
|
sourceLocation: {
|
|
1143
1618
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1144
|
-
"line":
|
|
1619
|
+
"line": 352,
|
|
1145
1620
|
"column": 9
|
|
1146
1621
|
}
|
|
1147
1622
|
},
|
|
@@ -1177,7 +1652,7 @@ window.__ModuleLoader__.load({
|
|
|
1177
1652
|
},
|
|
1178
1653
|
sourceLocation: {
|
|
1179
1654
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1180
|
-
"line":
|
|
1655
|
+
"line": 530,
|
|
1181
1656
|
"column": 9
|
|
1182
1657
|
}
|
|
1183
1658
|
},
|
|
@@ -1273,7 +1748,7 @@ window.__ModuleLoader__.load({
|
|
|
1273
1748
|
},
|
|
1274
1749
|
"forgePanel/localDiff": {
|
|
1275
1750
|
service: "forgePanel",
|
|
1276
|
-
description: "Read the changes one scope covers in the checkout of the Session's current directory, with Git
|
|
1751
|
+
description: "Read the changes one scope covers in the checkout of the Session's current directory, with Git using the Session's sandbox policy.",
|
|
1277
1752
|
invocation: { kind: "direct" },
|
|
1278
1753
|
parameters: [{
|
|
1279
1754
|
name: "session",
|
|
@@ -1515,7 +1990,7 @@ window.__ModuleLoader__.load({
|
|
|
1515
1990
|
},
|
|
1516
1991
|
sourceLocation: {
|
|
1517
1992
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1518
|
-
"line":
|
|
1993
|
+
"line": 246,
|
|
1519
1994
|
"column": 9
|
|
1520
1995
|
}
|
|
1521
1996
|
},
|
|
@@ -1662,7 +2137,7 @@ window.__ModuleLoader__.load({
|
|
|
1662
2137
|
},
|
|
1663
2138
|
sourceLocation: {
|
|
1664
2139
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1665
|
-
"line":
|
|
2140
|
+
"line": 268,
|
|
1666
2141
|
"column": 9
|
|
1667
2142
|
}
|
|
1668
2143
|
},
|
|
@@ -1714,7 +2189,7 @@ window.__ModuleLoader__.load({
|
|
|
1714
2189
|
},
|
|
1715
2190
|
sourceLocation: {
|
|
1716
2191
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1717
|
-
"line":
|
|
2192
|
+
"line": 390,
|
|
1718
2193
|
"column": 9
|
|
1719
2194
|
}
|
|
1720
2195
|
},
|
|
@@ -1817,7 +2292,7 @@ window.__ModuleLoader__.load({
|
|
|
1817
2292
|
},
|
|
1818
2293
|
sourceLocation: {
|
|
1819
2294
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1820
|
-
"line":
|
|
2295
|
+
"line": 409,
|
|
1821
2296
|
"column": 9
|
|
1822
2297
|
}
|
|
1823
2298
|
},
|
|
@@ -1912,7 +2387,7 @@ window.__ModuleLoader__.load({
|
|
|
1912
2387
|
},
|
|
1913
2388
|
sourceLocation: {
|
|
1914
2389
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1915
|
-
"line":
|
|
2390
|
+
"line": 430,
|
|
1916
2391
|
"column": 9
|
|
1917
2392
|
}
|
|
1918
2393
|
},
|
|
@@ -1948,7 +2423,7 @@ window.__ModuleLoader__.load({
|
|
|
1948
2423
|
},
|
|
1949
2424
|
sourceLocation: {
|
|
1950
2425
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1951
|
-
"line":
|
|
2426
|
+
"line": 499,
|
|
1952
2427
|
"column": 9
|
|
1953
2428
|
}
|
|
1954
2429
|
},
|
|
@@ -1984,7 +2459,7 @@ window.__ModuleLoader__.load({
|
|
|
1984
2459
|
},
|
|
1985
2460
|
sourceLocation: {
|
|
1986
2461
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
1987
|
-
"line":
|
|
2462
|
+
"line": 478,
|
|
1988
2463
|
"column": 9
|
|
1989
2464
|
}
|
|
1990
2465
|
},
|
|
@@ -2020,70 +2495,744 @@ window.__ModuleLoader__.load({
|
|
|
2020
2495
|
},
|
|
2021
2496
|
sourceLocation: {
|
|
2022
2497
|
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
2023
|
-
"line":
|
|
2498
|
+
"line": 465,
|
|
2024
2499
|
"column": 9
|
|
2025
2500
|
}
|
|
2026
2501
|
},
|
|
2027
|
-
"forgePanel/
|
|
2502
|
+
"forgePanel/submitReview": {
|
|
2028
2503
|
service: "forgePanel",
|
|
2029
|
-
description: "
|
|
2504
|
+
description: "Publish a line comment or completed review for a visible Session binding.",
|
|
2030
2505
|
invocation: { kind: "direct" },
|
|
2031
|
-
parameters: [
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2506
|
+
parameters: [
|
|
2507
|
+
{
|
|
2508
|
+
name: "session",
|
|
2509
|
+
wire: "sessionId",
|
|
2510
|
+
description: "Session retaining the change request.",
|
|
2511
|
+
source: "lookup",
|
|
2512
|
+
lookup: "session",
|
|
2513
|
+
codec: {
|
|
2514
|
+
mode: "strict",
|
|
2515
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
2516
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0$schema,
|
|
2517
|
+
jsonSchema: { "type": "string" }
|
|
2518
|
+
},
|
|
2519
|
+
strictCodec: {
|
|
2520
|
+
mode: "strict",
|
|
2521
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
2522
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_0_strict$schema,
|
|
2523
|
+
jsonSchema: { "type": "string" }
|
|
2524
|
+
}
|
|
2042
2525
|
},
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2526
|
+
{
|
|
2527
|
+
name: "url",
|
|
2528
|
+
description: "visible binding URL.",
|
|
2529
|
+
source: "json",
|
|
2530
|
+
codec: {
|
|
2531
|
+
mode: "strict",
|
|
2532
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/submitReview:url",
|
|
2533
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1$schema,
|
|
2534
|
+
jsonSchema: { "type": "string" }
|
|
2535
|
+
},
|
|
2536
|
+
strictCodec: {
|
|
2537
|
+
mode: "strict",
|
|
2538
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/submitReview:url",
|
|
2539
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_1_strict$schema,
|
|
2540
|
+
jsonSchema: { "type": "string" }
|
|
2541
|
+
}
|
|
2058
2542
|
},
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2543
|
+
{
|
|
2544
|
+
name: "request",
|
|
2545
|
+
description: "reviewed head, ranges, plain text, and explicit review decision.",
|
|
2546
|
+
source: "json",
|
|
2547
|
+
codec: {
|
|
2548
|
+
mode: "strict",
|
|
2549
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-forge/types#ForgeReviewRequest",
|
|
2550
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2$schema,
|
|
2551
|
+
jsonSchema: { "oneOf": [{
|
|
2552
|
+
"type": "object",
|
|
2553
|
+
"properties": {
|
|
2554
|
+
"headSha": {
|
|
2555
|
+
"type": "string",
|
|
2556
|
+
"description": "Commit the user reviewed; providers must check it before writing and address that commit explicitly."
|
|
2557
|
+
},
|
|
2558
|
+
"kind": {
|
|
2559
|
+
"type": "string",
|
|
2560
|
+
"const": "comment"
|
|
2561
|
+
},
|
|
2562
|
+
"comment": {
|
|
2563
|
+
"type": "object",
|
|
2564
|
+
"properties": {
|
|
2565
|
+
"path": { "type": "string" },
|
|
2566
|
+
"side": {
|
|
2567
|
+
"type": "string",
|
|
2568
|
+
"enum": ["L", "R"]
|
|
2569
|
+
},
|
|
2570
|
+
"startLine": { "type": "number" },
|
|
2571
|
+
"endLine": { "type": "number" },
|
|
2572
|
+
"body": { "type": "string" }
|
|
2573
|
+
},
|
|
2574
|
+
"required": [
|
|
2575
|
+
"path",
|
|
2576
|
+
"side",
|
|
2577
|
+
"startLine",
|
|
2578
|
+
"endLine",
|
|
2579
|
+
"body"
|
|
2580
|
+
],
|
|
2581
|
+
"additionalProperties": true
|
|
2582
|
+
}
|
|
2583
|
+
},
|
|
2584
|
+
"required": [
|
|
2585
|
+
"headSha",
|
|
2586
|
+
"kind",
|
|
2587
|
+
"comment"
|
|
2588
|
+
],
|
|
2589
|
+
"additionalProperties": true
|
|
2590
|
+
}, {
|
|
2591
|
+
"type": "object",
|
|
2592
|
+
"properties": {
|
|
2593
|
+
"headSha": {
|
|
2594
|
+
"type": "string",
|
|
2595
|
+
"description": "Commit the user reviewed; providers must check it before writing and address that commit explicitly."
|
|
2596
|
+
},
|
|
2597
|
+
"kind": {
|
|
2598
|
+
"type": "string",
|
|
2599
|
+
"const": "review"
|
|
2600
|
+
},
|
|
2601
|
+
"event": {
|
|
2602
|
+
"type": "string",
|
|
2603
|
+
"enum": [
|
|
2604
|
+
"comment",
|
|
2605
|
+
"approve",
|
|
2606
|
+
"request-changes"
|
|
2607
|
+
]
|
|
2608
|
+
},
|
|
2609
|
+
"body": { "type": "string" },
|
|
2610
|
+
"comments": {
|
|
2611
|
+
"type": "array",
|
|
2612
|
+
"items": {
|
|
2613
|
+
"type": "object",
|
|
2614
|
+
"properties": {
|
|
2615
|
+
"path": { "type": "string" },
|
|
2616
|
+
"side": {
|
|
2617
|
+
"type": "string",
|
|
2618
|
+
"enum": ["L", "R"]
|
|
2619
|
+
},
|
|
2620
|
+
"startLine": { "type": "number" },
|
|
2621
|
+
"endLine": { "type": "number" },
|
|
2622
|
+
"body": { "type": "string" }
|
|
2623
|
+
},
|
|
2624
|
+
"required": [
|
|
2625
|
+
"path",
|
|
2626
|
+
"side",
|
|
2627
|
+
"startLine",
|
|
2628
|
+
"endLine",
|
|
2629
|
+
"body"
|
|
2630
|
+
],
|
|
2631
|
+
"additionalProperties": true
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
},
|
|
2635
|
+
"required": [
|
|
2636
|
+
"headSha",
|
|
2637
|
+
"kind",
|
|
2638
|
+
"event",
|
|
2639
|
+
"body",
|
|
2640
|
+
"comments"
|
|
2641
|
+
],
|
|
2642
|
+
"additionalProperties": true
|
|
2643
|
+
}] }
|
|
2644
|
+
},
|
|
2645
|
+
strictCodec: {
|
|
2646
|
+
mode: "strict",
|
|
2647
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-forge/types#ForgeReviewRequest",
|
|
2648
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_parameter_2_strict$schema,
|
|
2649
|
+
jsonSchema: { "oneOf": [{
|
|
2650
|
+
"type": "object",
|
|
2651
|
+
"properties": {
|
|
2652
|
+
"headSha": {
|
|
2653
|
+
"type": "string",
|
|
2654
|
+
"description": "Commit the user reviewed; providers must check it before writing and address that commit explicitly."
|
|
2655
|
+
},
|
|
2656
|
+
"kind": {
|
|
2657
|
+
"type": "string",
|
|
2658
|
+
"const": "comment"
|
|
2659
|
+
},
|
|
2660
|
+
"comment": {
|
|
2661
|
+
"type": "object",
|
|
2662
|
+
"properties": {
|
|
2663
|
+
"path": { "type": "string" },
|
|
2664
|
+
"side": {
|
|
2665
|
+
"type": "string",
|
|
2666
|
+
"enum": ["L", "R"]
|
|
2667
|
+
},
|
|
2668
|
+
"startLine": { "type": "number" },
|
|
2669
|
+
"endLine": { "type": "number" },
|
|
2670
|
+
"body": { "type": "string" }
|
|
2671
|
+
},
|
|
2672
|
+
"required": [
|
|
2673
|
+
"path",
|
|
2674
|
+
"side",
|
|
2675
|
+
"startLine",
|
|
2676
|
+
"endLine",
|
|
2677
|
+
"body"
|
|
2678
|
+
],
|
|
2679
|
+
"additionalProperties": false
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
"required": [
|
|
2683
|
+
"headSha",
|
|
2684
|
+
"kind",
|
|
2685
|
+
"comment"
|
|
2686
|
+
],
|
|
2687
|
+
"additionalProperties": false
|
|
2688
|
+
}, {
|
|
2689
|
+
"type": "object",
|
|
2690
|
+
"properties": {
|
|
2691
|
+
"headSha": {
|
|
2692
|
+
"type": "string",
|
|
2693
|
+
"description": "Commit the user reviewed; providers must check it before writing and address that commit explicitly."
|
|
2694
|
+
},
|
|
2695
|
+
"kind": {
|
|
2696
|
+
"type": "string",
|
|
2697
|
+
"const": "review"
|
|
2698
|
+
},
|
|
2699
|
+
"event": {
|
|
2700
|
+
"type": "string",
|
|
2701
|
+
"enum": [
|
|
2702
|
+
"comment",
|
|
2703
|
+
"approve",
|
|
2704
|
+
"request-changes"
|
|
2705
|
+
]
|
|
2706
|
+
},
|
|
2707
|
+
"body": { "type": "string" },
|
|
2708
|
+
"comments": {
|
|
2709
|
+
"type": "array",
|
|
2710
|
+
"items": {
|
|
2711
|
+
"type": "object",
|
|
2712
|
+
"properties": {
|
|
2713
|
+
"path": { "type": "string" },
|
|
2714
|
+
"side": {
|
|
2715
|
+
"type": "string",
|
|
2716
|
+
"enum": ["L", "R"]
|
|
2717
|
+
},
|
|
2718
|
+
"startLine": { "type": "number" },
|
|
2719
|
+
"endLine": { "type": "number" },
|
|
2720
|
+
"body": { "type": "string" }
|
|
2721
|
+
},
|
|
2722
|
+
"required": [
|
|
2723
|
+
"path",
|
|
2724
|
+
"side",
|
|
2725
|
+
"startLine",
|
|
2726
|
+
"endLine",
|
|
2727
|
+
"body"
|
|
2728
|
+
],
|
|
2729
|
+
"additionalProperties": false
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
},
|
|
2733
|
+
"required": [
|
|
2734
|
+
"headSha",
|
|
2735
|
+
"kind",
|
|
2736
|
+
"event",
|
|
2737
|
+
"body",
|
|
2738
|
+
"comments"
|
|
2739
|
+
],
|
|
2740
|
+
"additionalProperties": false
|
|
2741
|
+
}] }
|
|
2742
|
+
}
|
|
2743
|
+
}
|
|
2744
|
+
],
|
|
2745
|
+
cancellation: { parameter: "signal" },
|
|
2746
|
+
result: {
|
|
2747
|
+
mode: "strict",
|
|
2748
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-forge/types#ForgeReviewResult",
|
|
2749
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_submitReview_result$schema,
|
|
2750
|
+
description: "confirmed publication or a typed failure; unknown outcomes require reconciliation on the host.",
|
|
2751
|
+
jsonSchema: { "oneOf": [{
|
|
2752
|
+
"type": "object",
|
|
2753
|
+
"properties": {
|
|
2754
|
+
"ok": {
|
|
2755
|
+
"type": "boolean",
|
|
2756
|
+
"const": true
|
|
2757
|
+
},
|
|
2758
|
+
"url": { "type": "string" }
|
|
2759
|
+
},
|
|
2760
|
+
"required": ["ok", "url"],
|
|
2761
|
+
"additionalProperties": true
|
|
2762
|
+
}, {
|
|
2763
|
+
"type": "object",
|
|
2764
|
+
"properties": {
|
|
2765
|
+
"ok": {
|
|
2766
|
+
"type": "boolean",
|
|
2767
|
+
"const": false
|
|
2768
|
+
},
|
|
2769
|
+
"code": {
|
|
2770
|
+
"type": "string",
|
|
2771
|
+
"enum": [
|
|
2772
|
+
"failed",
|
|
2773
|
+
"unknown",
|
|
2774
|
+
"unsupported",
|
|
2775
|
+
"stale"
|
|
2776
|
+
]
|
|
2777
|
+
},
|
|
2778
|
+
"message": { "type": "string" }
|
|
2779
|
+
},
|
|
2780
|
+
"required": [
|
|
2781
|
+
"ok",
|
|
2782
|
+
"code",
|
|
2783
|
+
"message"
|
|
2784
|
+
],
|
|
2785
|
+
"additionalProperties": true
|
|
2786
|
+
}] }
|
|
2787
|
+
},
|
|
2788
|
+
sourceLocation: {
|
|
2789
|
+
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
2790
|
+
"line": 368,
|
|
2791
|
+
"column": 9
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
"forgePanel/track": {
|
|
2795
|
+
service: "forgePanel",
|
|
2796
|
+
description: "Bind a change request to a Session by URL, or restore a dismissed binding.",
|
|
2797
|
+
invocation: { kind: "direct" },
|
|
2798
|
+
parameters: [{
|
|
2799
|
+
name: "session",
|
|
2800
|
+
wire: "sessionId",
|
|
2801
|
+
description: "Session that receives the binding.",
|
|
2802
|
+
source: "lookup",
|
|
2803
|
+
lookup: "session",
|
|
2804
|
+
codec: {
|
|
2805
|
+
mode: "strict",
|
|
2806
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
2807
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0$schema,
|
|
2808
|
+
jsonSchema: { "type": "string" }
|
|
2809
|
+
},
|
|
2810
|
+
strictCodec: {
|
|
2811
|
+
mode: "strict",
|
|
2812
|
+
typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
|
|
2813
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_0_strict$schema,
|
|
2814
|
+
jsonSchema: { "type": "string" }
|
|
2815
|
+
}
|
|
2816
|
+
}, {
|
|
2817
|
+
name: "url",
|
|
2818
|
+
description: "web URL of the change request.",
|
|
2819
|
+
source: "json",
|
|
2820
|
+
codec: {
|
|
2821
|
+
mode: "strict",
|
|
2822
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/track:url",
|
|
2823
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1$schema,
|
|
2824
|
+
jsonSchema: { "type": "string" }
|
|
2825
|
+
},
|
|
2826
|
+
strictCodec: {
|
|
2827
|
+
mode: "strict",
|
|
2828
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/track:url",
|
|
2829
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_parameter_1_strict$schema,
|
|
2830
|
+
jsonSchema: { "type": "string" }
|
|
2831
|
+
}
|
|
2832
|
+
}],
|
|
2833
|
+
cancellation: { parameter: "signal" },
|
|
2834
|
+
result: {
|
|
2835
|
+
mode: "strict",
|
|
2836
|
+
typeSymbol: "@deepseek-ai/dsh-experimental-client-ui-forge#forgePanel/track:result",
|
|
2837
|
+
create: _deepseek_ai_dsh_experimental_client_ui_forge_forgePanel_track_result$schema,
|
|
2838
|
+
jsonSchemaError: "typert tool schema: unsupported void value"
|
|
2839
|
+
},
|
|
2840
|
+
sourceLocation: {
|
|
2841
|
+
"file": "packages/experimental/client-ui-forge/src/index.ts",
|
|
2842
|
+
"line": 201,
|
|
2843
|
+
"column": 9
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
}, zod.z);
|
|
2848
|
+
//#endregion
|
|
2849
|
+
//#region lib/types/client/review-queue.js
|
|
2850
|
+
/** Browser-persisted review drafts and the write whose outcome still needs confirmation. */
|
|
2851
|
+
const line = zod.z.object({
|
|
2852
|
+
path: zod.z.string(),
|
|
2853
|
+
side: zod.z.enum(["L", "R"]),
|
|
2854
|
+
startLine: zod.z.number().int().positive(),
|
|
2855
|
+
endLine: zod.z.number().int().positive(),
|
|
2856
|
+
body: zod.z.string()
|
|
2857
|
+
});
|
|
2858
|
+
const selection = zod.z.object({
|
|
2859
|
+
source: zod.z.object({
|
|
2860
|
+
kind: zod.z.literal("change"),
|
|
2861
|
+
url: zod.z.string(),
|
|
2862
|
+
headSha: zod.z.string()
|
|
2863
|
+
}),
|
|
2864
|
+
comment: line.extend({ hunk: zod.z.string() })
|
|
2865
|
+
});
|
|
2866
|
+
const recordedSelection = selection.extend({ source: zod.z.discriminatedUnion("kind", [selection.shape.source, zod.z.object({
|
|
2867
|
+
kind: zod.z.literal("local"),
|
|
2868
|
+
scope: zod.z.string()
|
|
2869
|
+
})]) });
|
|
2870
|
+
const record = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
2871
|
+
kind: zod.z.literal("agent"),
|
|
2872
|
+
selection: recordedSelection
|
|
2873
|
+
}), zod.z.object({
|
|
2874
|
+
kind: zod.z.literal("published"),
|
|
2875
|
+
selection: recordedSelection,
|
|
2876
|
+
url: zod.z.url({ protocol: /^https$/ })
|
|
2877
|
+
})]);
|
|
2878
|
+
const event = zod.z.enum([
|
|
2879
|
+
"comment",
|
|
2880
|
+
"approve",
|
|
2881
|
+
"request-changes"
|
|
2882
|
+
]);
|
|
2883
|
+
const request = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
2884
|
+
kind: zod.z.literal("comment"),
|
|
2885
|
+
headSha: zod.z.string(),
|
|
2886
|
+
comment: line
|
|
2887
|
+
}), zod.z.object({
|
|
2888
|
+
kind: zod.z.literal("review"),
|
|
2889
|
+
headSha: zod.z.string(),
|
|
2890
|
+
event,
|
|
2891
|
+
body: zod.z.string(),
|
|
2892
|
+
comments: zod.z.array(line)
|
|
2893
|
+
})]);
|
|
2894
|
+
const saved = zod.z.object({
|
|
2895
|
+
comments: zod.z.array(selection),
|
|
2896
|
+
records: zod.z.array(record).default([]),
|
|
2897
|
+
body: zod.z.string(),
|
|
2898
|
+
event,
|
|
2899
|
+
uncertain: request.nullable()
|
|
2900
|
+
});
|
|
2901
|
+
/** Stable snapshot for a file without a comment store. */
|
|
2902
|
+
const EMPTY_FILE_REVIEW = {
|
|
2903
|
+
threads: [],
|
|
2904
|
+
locked: false,
|
|
2905
|
+
error: null
|
|
2906
|
+
};
|
|
2907
|
+
/** Initial state of a newly opened review tab. */
|
|
2908
|
+
const EMPTY_REVIEW = {
|
|
2909
|
+
comments: [],
|
|
2910
|
+
records: [],
|
|
2911
|
+
body: "",
|
|
2912
|
+
event: "comment",
|
|
2913
|
+
uncertain: null,
|
|
2914
|
+
error: null
|
|
2915
|
+
};
|
|
2916
|
+
/** One review tab's drafts and records, retained until its occurrence closes. */
|
|
2917
|
+
var ReviewQueue = class {
|
|
2918
|
+
key;
|
|
2919
|
+
closed = false;
|
|
2920
|
+
state = EMPTY_REVIEW;
|
|
2921
|
+
listeners = /* @__PURE__ */ new Set();
|
|
2922
|
+
keys = /* @__PURE__ */ new WeakMap();
|
|
2923
|
+
nextKey = 0;
|
|
2924
|
+
files = /* @__PURE__ */ new Map();
|
|
2925
|
+
/** @param key - browser storage key including Session and tab identity. */
|
|
2926
|
+
constructor(key) {
|
|
2927
|
+
this.key = key;
|
|
2928
|
+
try {
|
|
2929
|
+
const raw = localStorage.getItem(key);
|
|
2930
|
+
if (raw !== null) this.state = {
|
|
2931
|
+
...saved.parse(JSON.parse(raw)),
|
|
2932
|
+
error: null
|
|
2933
|
+
};
|
|
2934
|
+
} catch (_error) {
|
|
2935
|
+
this.state = {
|
|
2936
|
+
...EMPTY_REVIEW,
|
|
2937
|
+
error: "load"
|
|
2938
|
+
};
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
/** Current queue snapshot, stable between edits and storage failures. */
|
|
2942
|
+
getSnapshot = () => this.state;
|
|
2943
|
+
/**
|
|
2944
|
+
* Clear this tab's records and refuse later completions from its outgoing requests.
|
|
2945
|
+
* @returns whether its browser storage was cleared; the in-memory state always closes.
|
|
2946
|
+
*/
|
|
2947
|
+
close() {
|
|
2948
|
+
this.closed = true;
|
|
2949
|
+
this.state = EMPTY_REVIEW;
|
|
2950
|
+
this.files.clear();
|
|
2951
|
+
this.emit();
|
|
2952
|
+
this.listeners.clear();
|
|
2953
|
+
try {
|
|
2954
|
+
localStorage.removeItem(this.key);
|
|
2955
|
+
} catch (_error) {
|
|
2956
|
+
return false;
|
|
2957
|
+
}
|
|
2958
|
+
return true;
|
|
2959
|
+
}
|
|
2960
|
+
/** Summary subscribed by the surrounding diff; editing draft text does not invalidate its file rows. */
|
|
2961
|
+
getStatus = () => `${this.state.comments.length}:${this.state.records.length}:${this.state.error ?? ""}:${this.state.uncertain === null ? "idle" : "pending"}`;
|
|
2962
|
+
/**
|
|
2963
|
+
* Read stable inline records for one path and review source.
|
|
2964
|
+
* @param path - repository-relative file path.
|
|
2965
|
+
* @param source - PR or local scope; older head commits remain available as outdated comments.
|
|
2966
|
+
* @returns records and edit availability, reusing the snapshot when these values are unchanged.
|
|
2967
|
+
*/
|
|
2968
|
+
fileComments(path, source) {
|
|
2969
|
+
const matches = (item) => item.comment.path === path && sameReviewSource(item.source, source);
|
|
2970
|
+
const threads = [...this.state.records.filter((item) => matches(item.selection)).map((item) => ({
|
|
2971
|
+
...item,
|
|
2972
|
+
key: this.keyOf(item.selection)
|
|
2973
|
+
})), ...this.state.comments.filter(matches).map((item) => ({
|
|
2974
|
+
kind: "pending",
|
|
2975
|
+
selection: item,
|
|
2976
|
+
key: this.keyOf(item)
|
|
2977
|
+
}))];
|
|
2978
|
+
const key = JSON.stringify([
|
|
2979
|
+
path,
|
|
2980
|
+
source.kind,
|
|
2981
|
+
source.kind === "local" ? source.scope : source.url
|
|
2982
|
+
]);
|
|
2983
|
+
const previous = this.files.get(key);
|
|
2984
|
+
const locked = this.state.uncertain !== null;
|
|
2985
|
+
if (previous !== void 0 && previous.locked === locked && previous.error === this.state.error && previous.threads.length === threads.length && previous.threads.every((item, index) => {
|
|
2986
|
+
const next = threads[index];
|
|
2987
|
+
return next?.selection === item.selection && next.kind === item.kind;
|
|
2988
|
+
})) return previous;
|
|
2989
|
+
const value = {
|
|
2990
|
+
threads,
|
|
2991
|
+
locked,
|
|
2992
|
+
error: this.state.error
|
|
2993
|
+
};
|
|
2994
|
+
this.files.set(key, value);
|
|
2995
|
+
return value;
|
|
2996
|
+
}
|
|
2997
|
+
/**
|
|
2998
|
+
* Retain an Agent reference at its original code location.
|
|
2999
|
+
* @param selection - reference already accepted by the main composer.
|
|
3000
|
+
* @returns whether the record was saved.
|
|
3001
|
+
*/
|
|
3002
|
+
recordAgent(selection) {
|
|
3003
|
+
return this.save({
|
|
3004
|
+
...this.state,
|
|
3005
|
+
records: [...this.state.records, {
|
|
3006
|
+
kind: "agent",
|
|
3007
|
+
selection
|
|
3008
|
+
}]
|
|
3009
|
+
});
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Retain a published comment and settle its outgoing write atomically in browser storage.
|
|
3013
|
+
* @param selection - published comment's frozen code location.
|
|
3014
|
+
* @param url - confirmed publication URL.
|
|
3015
|
+
* @returns whether the receipt and comment were saved.
|
|
3016
|
+
*/
|
|
3017
|
+
published(selection, url) {
|
|
3018
|
+
return this.save({
|
|
3019
|
+
...this.state,
|
|
3020
|
+
uncertain: null,
|
|
3021
|
+
records: [...this.state.records, {
|
|
3022
|
+
kind: "published",
|
|
3023
|
+
selection,
|
|
3024
|
+
url
|
|
3025
|
+
}]
|
|
3026
|
+
});
|
|
3027
|
+
}
|
|
3028
|
+
/**
|
|
3029
|
+
* Observe queue edits and storage failures.
|
|
3030
|
+
* @param listener - snapshot invalidation.
|
|
3031
|
+
* @returns unsubscribe.
|
|
3032
|
+
*/
|
|
3033
|
+
subscribe = (listener) => {
|
|
3034
|
+
this.listeners.add(listener);
|
|
3035
|
+
return () => {
|
|
3036
|
+
this.listeners.delete(listener);
|
|
3037
|
+
};
|
|
3038
|
+
};
|
|
3039
|
+
/**
|
|
3040
|
+
* Save a frozen PR comment unless a write needs reconciliation.
|
|
3041
|
+
* @param selection - frozen PR comment.
|
|
3042
|
+
* @returns whether it was saved.
|
|
3043
|
+
*/
|
|
3044
|
+
add(selection) {
|
|
3045
|
+
if (selection.source.kind !== "change" || this.state.uncertain !== null) return false;
|
|
3046
|
+
return this.save({
|
|
3047
|
+
...this.state,
|
|
3048
|
+
comments: [...this.state.comments, selection]
|
|
3049
|
+
});
|
|
3050
|
+
}
|
|
3051
|
+
/**
|
|
3052
|
+
* Edit or remove a pending comment without changing its captured lines.
|
|
3053
|
+
* @param index - comment position.
|
|
3054
|
+
* @param body - replacement text, or null to remove.
|
|
3055
|
+
* @returns whether saved.
|
|
3056
|
+
*/
|
|
3057
|
+
edit(index, body) {
|
|
3058
|
+
if (this.state.uncertain !== null) return false;
|
|
3059
|
+
return this.save({
|
|
3060
|
+
...this.state,
|
|
3061
|
+
comments: this.state.comments.flatMap((item, at) => {
|
|
3062
|
+
if (at !== index) return [item];
|
|
3063
|
+
if (body === null) return [];
|
|
3064
|
+
const next = {
|
|
3065
|
+
...item,
|
|
3066
|
+
comment: {
|
|
3067
|
+
...item.comment,
|
|
3068
|
+
body
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3071
|
+
this.keys.set(next, this.keyOf(item));
|
|
3072
|
+
return [next];
|
|
3073
|
+
})
|
|
3074
|
+
});
|
|
3075
|
+
}
|
|
3076
|
+
/**
|
|
3077
|
+
* Edit the currently pending occurrence addressed by an inline record.
|
|
3078
|
+
* @param key - browser-store identity from fileComments.
|
|
3079
|
+
* @param body - replacement text, or null to remove.
|
|
3080
|
+
* @returns whether the occurrence still exists and the edit was saved.
|
|
3081
|
+
*/
|
|
3082
|
+
editThread(key, body) {
|
|
3083
|
+
const index = this.state.comments.findIndex((item) => this.keyOf(item) === key);
|
|
3084
|
+
return index !== -1 && this.edit(index, body);
|
|
3085
|
+
}
|
|
3086
|
+
/**
|
|
3087
|
+
* Save the summary and decision for the pending review.
|
|
3088
|
+
* @param body - review summary.
|
|
3089
|
+
* @param event - review decision.
|
|
3090
|
+
* @returns whether saved.
|
|
3091
|
+
*/
|
|
3092
|
+
summarize(body, event) {
|
|
3093
|
+
if (this.state.uncertain !== null) return false;
|
|
3094
|
+
return this.save({
|
|
3095
|
+
...this.state,
|
|
3096
|
+
body,
|
|
3097
|
+
event
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
3100
|
+
/**
|
|
3101
|
+
* Persist the outgoing request before network dispatch.
|
|
3102
|
+
* @param request - exact write.
|
|
3103
|
+
* @returns whether dispatch may start.
|
|
3104
|
+
*/
|
|
3105
|
+
begin(request) {
|
|
3106
|
+
if (this.state.uncertain !== null) return false;
|
|
3107
|
+
return this.save({
|
|
3108
|
+
...this.state,
|
|
3109
|
+
uncertain: request
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* Clear the write after a known result or explicit reconciliation.
|
|
3114
|
+
* @param submitted - whether a batch review was published.
|
|
3115
|
+
* @param url - confirmed publication URL when retaining submitted comments.
|
|
3116
|
+
* @returns whether saved.
|
|
3117
|
+
*/
|
|
3118
|
+
finish(submitted, url) {
|
|
3119
|
+
if (!submitted) return this.save({
|
|
3120
|
+
...this.state,
|
|
3121
|
+
uncertain: null
|
|
3122
|
+
});
|
|
3123
|
+
const records = url === void 0 ? this.state.records : [...this.state.records, ...this.state.comments.map((item) => ({
|
|
3124
|
+
kind: "published",
|
|
3125
|
+
selection: item,
|
|
3126
|
+
url
|
|
3127
|
+
}))];
|
|
3128
|
+
return this.save({
|
|
3129
|
+
...EMPTY_REVIEW,
|
|
3130
|
+
records
|
|
3131
|
+
});
|
|
3132
|
+
}
|
|
3133
|
+
keyOf(selection) {
|
|
3134
|
+
let key = this.keys.get(selection);
|
|
3135
|
+
if (key === void 0) {
|
|
3136
|
+
key = ++this.nextKey;
|
|
3137
|
+
this.keys.set(selection, key);
|
|
3138
|
+
}
|
|
3139
|
+
return key;
|
|
3140
|
+
}
|
|
3141
|
+
save(state) {
|
|
3142
|
+
if (this.closed || this.state.error === "load") return false;
|
|
3143
|
+
try {
|
|
3144
|
+
const { error: _error, ...value } = state;
|
|
3145
|
+
localStorage.setItem(this.key, JSON.stringify(value));
|
|
3146
|
+
} catch (_error) {
|
|
3147
|
+
this.state = {
|
|
3148
|
+
...this.state,
|
|
3149
|
+
error: "save"
|
|
3150
|
+
};
|
|
3151
|
+
this.emit();
|
|
3152
|
+
return false;
|
|
3153
|
+
}
|
|
3154
|
+
this.state = {
|
|
3155
|
+
...state,
|
|
3156
|
+
error: null
|
|
3157
|
+
};
|
|
3158
|
+
this.emit();
|
|
3159
|
+
return true;
|
|
3160
|
+
}
|
|
3161
|
+
emit() {
|
|
3162
|
+
for (const listener of this.listeners) listener();
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
/**
|
|
3166
|
+
* Compare review identity while allowing records from an older PR head to remain visible.
|
|
3167
|
+
* @param left - recorded source.
|
|
3168
|
+
* @param right - displayed source.
|
|
3169
|
+
* @returns whether the sources name the same PR or local scope.
|
|
3170
|
+
*/
|
|
3171
|
+
function sameReviewSource(left, right) {
|
|
3172
|
+
return left.kind === "local" ? right.kind === "local" && left.scope === right.scope : right.kind === "change" && left.url === right.url;
|
|
3173
|
+
}
|
|
3174
|
+
//#endregion
|
|
3175
|
+
//#region lib/types/client/review.js
|
|
3176
|
+
/** Frozen line selections shared by the diff UI, composer references, and review submission. */
|
|
3177
|
+
/**
|
|
3178
|
+
* Capture a range only when both endpoints belong to the same displayed hunk.
|
|
3179
|
+
* @param file - loaded diff file.
|
|
3180
|
+
* @param side - selected side.
|
|
3181
|
+
* @param from - first gesture endpoint.
|
|
3182
|
+
* @param to - current gesture endpoint.
|
|
3183
|
+
* @returns a frozen selection, or undefined for unchanged gaps or cross-hunk ranges.
|
|
3184
|
+
*/
|
|
3185
|
+
function selectReviewLines(file, side, from, to) {
|
|
3186
|
+
const startLine = Math.min(from, to);
|
|
3187
|
+
const endLine = Math.max(from, to);
|
|
3188
|
+
const hunk = file.hunks.find((item) => {
|
|
3189
|
+
const start = side === "L" ? item.oldStart : item.newStart;
|
|
3190
|
+
const count = side === "L" ? item.oldLines : item.newLines;
|
|
3191
|
+
return startLine >= start && endLine < start + count;
|
|
3192
|
+
});
|
|
3193
|
+
if (hunk === void 0) return void 0;
|
|
3194
|
+
const oldStart = hunk.oldLines === 0 ? hunk.oldStart - 1 : hunk.oldStart;
|
|
3195
|
+
const newStart = hunk.newLines === 0 ? hunk.newStart - 1 : hunk.newStart;
|
|
3196
|
+
return {
|
|
3197
|
+
path: file.path,
|
|
3198
|
+
side,
|
|
3199
|
+
startLine,
|
|
3200
|
+
endLine,
|
|
3201
|
+
body: "",
|
|
3202
|
+
hunk: [`@@ -${oldStart},${hunk.oldLines} +${newStart},${hunk.newLines} @@`, ...hunk.lines].join("\n")
|
|
3203
|
+
};
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* Format a frozen reference for the ordinary, logged user message.
|
|
3207
|
+
* @param selection - source, range, displayed patch, and user comment.
|
|
3208
|
+
* @param index - one-based reference number in the composer.
|
|
3209
|
+
* @returns Markdown content for an atomic composer quote.
|
|
3210
|
+
*/
|
|
3211
|
+
function formatReviewComment(selection, index) {
|
|
3212
|
+
const { source, comment } = selection;
|
|
3213
|
+
const range = comment.startLine === comment.endLine ? String(comment.startLine) : `${comment.startLine}-${comment.endLine}`;
|
|
3214
|
+
const fence = "`".repeat(Math.max(3, ...Array.from(comment.hunk.matchAll(/`+/g), (match) => match[0].length + 1)));
|
|
3215
|
+
const origin = source.kind === "local" ? `Source: Local (${source.scope})` : `Source: ${source.url}\nCommit: ${source.headSha}`;
|
|
3216
|
+
return `## User Comment ${index}\nFile: ${comment.path}\nSide: ${comment.side}\nLines: ${range}\n${origin}\nDiff hunk:\n${fence}diff\n${comment.hunk}\n${fence}\nComment:\n${comment.body}`;
|
|
3217
|
+
}
|
|
3218
|
+
/**
|
|
3219
|
+
* Check whether the current diff still contains the captured range and hunk.
|
|
3220
|
+
* @param selection - saved comment source and patch.
|
|
3221
|
+
* @param source - currently displayed review source.
|
|
3222
|
+
* @param file - current diff file.
|
|
3223
|
+
* @returns whether an inline record can retain its original line placement.
|
|
3224
|
+
*/
|
|
3225
|
+
function reviewMatches(selection, source, file) {
|
|
3226
|
+
if (selection.source.kind === "change" && (source.kind !== "change" || source.headSha !== selection.source.headSha)) return false;
|
|
3227
|
+
const comment = selection.comment;
|
|
3228
|
+
return selectReviewLines(file, comment.side, comment.startLine, comment.endLine)?.hunk === comment.hunk;
|
|
3229
|
+
}
|
|
3230
|
+
//#endregion
|
|
3231
|
+
//#region lib/types/client/ActionToast.js
|
|
3232
|
+
/** Full-opacity hold of a notice that offers to undo its action, long enough to reach the action. */
|
|
3233
|
+
const UNDO_HOLD_MS = 6e3;
|
|
3234
|
+
/**
|
|
3235
|
+
* Render the current notice: a success notice with its undo action, or a failure warning.
|
|
2087
3236
|
* @param props - notice hook, dismissal, and copy.
|
|
2088
3237
|
* @returns the toast, or nothing while no notice shows.
|
|
2089
3238
|
*/
|
|
@@ -2148,26 +3297,39 @@ window.__ModuleLoader__.load({
|
|
|
2148
3297
|
let failed = 0;
|
|
2149
3298
|
let running = 0;
|
|
2150
3299
|
let passed = 0;
|
|
3300
|
+
let cancelled = 0;
|
|
2151
3301
|
for (const check of checks) if (check.state === "failure") failed++;
|
|
2152
3302
|
else if (check.state === "pending") running++;
|
|
2153
3303
|
else if (check.state === "success") passed++;
|
|
3304
|
+
else if (check.state === "cancelled") cancelled++;
|
|
2154
3305
|
return {
|
|
2155
3306
|
failed,
|
|
2156
3307
|
running,
|
|
2157
3308
|
passed,
|
|
2158
|
-
|
|
3309
|
+
cancelled,
|
|
3310
|
+
other: checks.length - failed - running - passed - cancelled
|
|
2159
3311
|
};
|
|
2160
3312
|
}
|
|
2161
3313
|
/**
|
|
2162
3314
|
* Summarize the checks of a change request from the host's combined outcome.
|
|
2163
3315
|
* @param snapshot - change request status.
|
|
2164
|
-
* @returns the combined outcome with
|
|
3316
|
+
* @returns the combined outcome with its failure or cancellation count.
|
|
2165
3317
|
*/
|
|
2166
3318
|
function ciSummary(snapshot) {
|
|
2167
|
-
if (snapshot.checksRollup === "failure")
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
3319
|
+
if (snapshot.checksRollup === "failure") {
|
|
3320
|
+
if (snapshot.checksTruncated) return {
|
|
3321
|
+
kind: "failed",
|
|
3322
|
+
count: 0
|
|
3323
|
+
};
|
|
3324
|
+
const counts = checkCounts(snapshot.checks);
|
|
3325
|
+
return counts.failed === 0 && counts.cancelled > 0 ? {
|
|
3326
|
+
kind: "cancelled",
|
|
3327
|
+
count: counts.cancelled
|
|
3328
|
+
} : {
|
|
3329
|
+
kind: "failed",
|
|
3330
|
+
count: counts.failed
|
|
3331
|
+
};
|
|
3332
|
+
}
|
|
2171
3333
|
return { kind: SETTLED[snapshot.checksRollup] };
|
|
2172
3334
|
}
|
|
2173
3335
|
/**
|
|
@@ -2282,16 +3444,17 @@ window.__ModuleLoader__.load({
|
|
|
2282
3444
|
}
|
|
2283
3445
|
}
|
|
2284
3446
|
/**
|
|
2285
|
-
* Name a changes view:
|
|
3447
|
+
* Name a changes view: 本地变更 for the local changes, #N 的变更 for a change request with a number.
|
|
2286
3448
|
* @param source - what the view shows.
|
|
2287
3449
|
* @param t - forge panel copy.
|
|
2288
3450
|
* @returns the title in the current language.
|
|
2289
3451
|
*/
|
|
2290
3452
|
function changesTitle(source, t) {
|
|
2291
|
-
|
|
3453
|
+
if (source.kind === "local") return t("changes.local.title");
|
|
3454
|
+
const number = numberOf({
|
|
2292
3455
|
ref: null,
|
|
2293
3456
|
url: source.url
|
|
2294
|
-
})
|
|
3457
|
+
});
|
|
2295
3458
|
return number === null ? t("diff.tab") : t("diff.tabNumbered", { number });
|
|
2296
3459
|
}
|
|
2297
3460
|
/**
|
|
@@ -2502,6 +3665,296 @@ window.__ModuleLoader__.load({
|
|
|
2502
3665
|
return sessionFileAddress(sessionId, normalized);
|
|
2503
3666
|
}
|
|
2504
3667
|
//#endregion
|
|
3668
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/ReviewComposer.module.css.mjs
|
|
3669
|
+
const css$11 = ".Xti4QG_root,.Xti4QG_thread{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:calc(100% - 20px);max-width:680px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);font-family:Inter, var(--dsw-font-family);white-space:normal;margin:10px;padding:12px}.Xti4QG_root{background:var(--dsw-alias-bg-layer-2);border-radius:var(--dsw-radius-lg)}.Xti4QG_root:focus-within{border-color:var(--dsw-alias-border-l4)}.Xti4QG_root[data-split][data-side=R],.Xti4QG_thread[data-split][data-side=R]{margin-inline-start:clamp(10px,100% - 700px,50% + 10px)}.Xti4QG_title{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin-bottom:12px}.Xti4QG_input{box-sizing:border-box;contain:strict;resize:vertical;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-3);width:100%;height:88px;min-height:88px;color:var(--dsw-alias-label-primary);font:inherit;outline:none;padding:10px 12px;display:block}.Xti4QG_input::placeholder{color:var(--dsw-alias-label-dimmed)}.Xti4QG_input:focus{border-color:var(--dsw-alias-state-business-primary)}.Xti4QG_root .Xti4QG_input{background:0 0;border:0;border-radius:0;padding:0}.Xti4QG_actions{border-top:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px;padding-top:10px;display:flex}.Xti4QG_cancel{margin-inline-end:auto}.Xti4QG_error{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;margin-top:8px}.Xti4QG_gitAction{flex:none;align-items:stretch;display:inline-flex}.Xti4QG_gitMain{border-start-end-radius:0;border-end-end-radius:0}.Xti4QG_gitArrow{border-inline-start:.5px solid color-mix(in srgb, var(--dsw-alias-label-primary-foreground) 25%, transparent);border-start-start-radius:0;border-end-start-radius:0;width:30px;padding:0}.Xti4QG_threadHeader{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.Xti4QG_author{font-weight:500}.Xti4QG_range{color:var(--dsw-alias-label-secondary);font-size:12px}.Xti4QG_commentBody{white-space:pre-wrap;overflow-wrap:anywhere}.Xti4QG_threadActions{flex-wrap:wrap;gap:4px;margin:8px -8px -4px;display:flex}.Xti4QG_gutter{position:relative}.Xti4QG_line{width:100%;height:100%;color:inherit;text-align:inherit;cursor:pointer;font:inherit;user-select:none;touch-action:pan-y;background:0 0;border:0;border-radius:0;padding:0;display:block}.Xti4QG_selected{background:var(--dsw-alias-interactive-bg-hover);outline:1px solid var(--dsw-alias-border-l2);outline-offset:-1px}@media (hover:hover){.Xti4QG_line:hover{color:var(--dsw-alias-state-business-primary)}}@media (pointer:coarse){.Xti4QG_input{font-size:16px}.Xti4QG_line{min-height:28px}}.Xti4QG_add{inset-inline-start:2px;border-radius:var(--dsw-radius-xs);background:var(--dsw-alias-button-primary-fill);width:22px;height:22px;color:var(--dsw-alias-label-primary-foreground);cursor:pointer;user-select:none;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;top:50%;transform:translateY(-50%)}";
|
|
3670
|
+
const tagId$11 = "@deepseek-ai/dsh-experimental-client-ui-forge/ReviewComposer.module.css";
|
|
3671
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$11) + "]") === null) {
|
|
3672
|
+
const tag = document.createElement("style");
|
|
3673
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-forge";
|
|
3674
|
+
tag.dataset.pluginCss = tagId$11;
|
|
3675
|
+
tag.textContent = css$11;
|
|
3676
|
+
document.head.appendChild(tag);
|
|
3677
|
+
}
|
|
3678
|
+
var ReviewComposer_module_css_default = {
|
|
3679
|
+
"actions": "Xti4QG_actions",
|
|
3680
|
+
"add": "Xti4QG_add",
|
|
3681
|
+
"author": "Xti4QG_author",
|
|
3682
|
+
"cancel": "Xti4QG_cancel",
|
|
3683
|
+
"commentBody": "Xti4QG_commentBody",
|
|
3684
|
+
"error": "Xti4QG_error",
|
|
3685
|
+
"gitAction": "Xti4QG_gitAction",
|
|
3686
|
+
"gitArrow": "Xti4QG_gitArrow",
|
|
3687
|
+
"gitMain": "Xti4QG_gitMain",
|
|
3688
|
+
"gutter": "Xti4QG_gutter",
|
|
3689
|
+
"input": "Xti4QG_input",
|
|
3690
|
+
"line": "Xti4QG_line",
|
|
3691
|
+
"range": "Xti4QG_range",
|
|
3692
|
+
"root": "Xti4QG_root",
|
|
3693
|
+
"selected": "Xti4QG_selected",
|
|
3694
|
+
"thread": "Xti4QG_thread",
|
|
3695
|
+
"threadActions": "Xti4QG_threadActions",
|
|
3696
|
+
"threadHeader": "Xti4QG_threadHeader",
|
|
3697
|
+
"title": "Xti4QG_title"
|
|
3698
|
+
};
|
|
3699
|
+
//#endregion
|
|
3700
|
+
//#region lib/types/client/ReviewThread.js
|
|
3701
|
+
/** Inline comment records and editing of a pending review at its captured code location. */
|
|
3702
|
+
const noSubscription = () => () => {};
|
|
3703
|
+
/**
|
|
3704
|
+
* Subscribe only to comments that belong to the displayed file and source.
|
|
3705
|
+
* @param actions - review actions and their browser store.
|
|
3706
|
+
* @param path - displayed file path.
|
|
3707
|
+
* @returns stable file-scoped comments and write availability.
|
|
3708
|
+
*/
|
|
3709
|
+
function useFileReview(actions, path) {
|
|
3710
|
+
const read = (0, react.useCallback)(() => actions?.records?.fileComments(path, actions.source) ?? EMPTY_FILE_REVIEW, [
|
|
3711
|
+
actions?.records,
|
|
3712
|
+
actions?.source,
|
|
3713
|
+
path
|
|
3714
|
+
]);
|
|
3715
|
+
return (0, react.useSyncExternalStore)(actions?.records?.subscribe ?? noSubscription, read);
|
|
3716
|
+
}
|
|
3717
|
+
/**
|
|
3718
|
+
* Render a saved comment at its line, with pending edits kept in the browser queue.
|
|
3719
|
+
* @param props - record, edit availability, source actions, and localized copy.
|
|
3720
|
+
* @returns one compact inline comment card.
|
|
3721
|
+
*/
|
|
3722
|
+
function ReviewThread({ thread, actions, locked, outdated, split, t }) {
|
|
3723
|
+
const [editing, setEditing] = (0, react.useState)(false);
|
|
3724
|
+
const [body, setBody] = (0, react.useState)(thread.selection.comment.body);
|
|
3725
|
+
const [error, setError] = (0, react.useState)(null);
|
|
3726
|
+
const comment = thread.selection.comment;
|
|
3727
|
+
const quoted = editing && thread.kind === "pending" ? {
|
|
3728
|
+
...thread.selection,
|
|
3729
|
+
comment: {
|
|
3730
|
+
...comment,
|
|
3731
|
+
body
|
|
3732
|
+
}
|
|
3733
|
+
} : thread.selection;
|
|
3734
|
+
const range = `${comment.side}${comment.startLine}${comment.endLine === comment.startLine ? "" : `–${comment.endLine}`}`;
|
|
3735
|
+
const status = thread.kind === "pending" ? "review.pending" : thread.kind === "published" ? "review.published" : "review.quoted";
|
|
3736
|
+
const save = () => actions.records?.editThread(thread.key, body) === true;
|
|
3737
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
3738
|
+
className: ReviewComposer_module_css_default.thread,
|
|
3739
|
+
"data-forge-review-thread": thread.kind,
|
|
3740
|
+
"data-side": comment.side,
|
|
3741
|
+
"data-split": split ? "" : void 0,
|
|
3742
|
+
"aria-label": t("review.range", { range }),
|
|
3743
|
+
children: [
|
|
3744
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
3745
|
+
className: ReviewComposer_module_css_default.threadHeader,
|
|
3746
|
+
children: [
|
|
3747
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
3748
|
+
className: ReviewComposer_module_css_default.author,
|
|
3749
|
+
children: t("review.yourComment")
|
|
3750
|
+
}),
|
|
3751
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
3752
|
+
className: ReviewComposer_module_css_default.range,
|
|
3753
|
+
children: range
|
|
3754
|
+
}),
|
|
3755
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
3756
|
+
tone: "neutral",
|
|
3757
|
+
children: t(outdated ? "review.outdated" : status)
|
|
3758
|
+
})
|
|
3759
|
+
]
|
|
3760
|
+
}),
|
|
3761
|
+
editing && thread.kind === "pending" ? (0, react_jsx_runtime.jsx)("textarea", {
|
|
3762
|
+
autoFocus: true,
|
|
3763
|
+
className: ReviewComposer_module_css_default.input,
|
|
3764
|
+
rows: 3,
|
|
3765
|
+
value: body,
|
|
3766
|
+
disabled: locked,
|
|
3767
|
+
"aria-label": t("review.comment"),
|
|
3768
|
+
onChange: (event) => {
|
|
3769
|
+
setBody(event.target.value);
|
|
3770
|
+
if (actions.records?.editThread(thread.key, event.target.value) === true) setError(null);
|
|
3771
|
+
else setError(t("review.saveFailed"));
|
|
3772
|
+
}
|
|
3773
|
+
}) : (0, react_jsx_runtime.jsx)("div", {
|
|
3774
|
+
className: ReviewComposer_module_css_default.commentBody,
|
|
3775
|
+
children: comment.body
|
|
3776
|
+
}),
|
|
3777
|
+
error !== null && (0, react_jsx_runtime.jsx)("div", {
|
|
3778
|
+
className: ReviewComposer_module_css_default.error,
|
|
3779
|
+
role: "alert",
|
|
3780
|
+
children: error
|
|
3781
|
+
}),
|
|
3782
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
3783
|
+
className: ReviewComposer_module_css_default.threadActions,
|
|
3784
|
+
children: [
|
|
3785
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3786
|
+
size: "sm",
|
|
3787
|
+
disabled: quoted.comment.body.trim() === "",
|
|
3788
|
+
onClick: () => {
|
|
3789
|
+
if (!actions.addToInput(quoted)) setError(t("review.inputFailed"));
|
|
3790
|
+
},
|
|
3791
|
+
children: t("review.addToInput")
|
|
3792
|
+
}),
|
|
3793
|
+
thread.kind === "pending" && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [editing ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3794
|
+
size: "sm",
|
|
3795
|
+
disabled: locked || body.trim() === "",
|
|
3796
|
+
onClick: () => {
|
|
3797
|
+
if (save()) {
|
|
3798
|
+
setEditing(false);
|
|
3799
|
+
setError(null);
|
|
3800
|
+
} else setError(t("review.saveFailed"));
|
|
3801
|
+
},
|
|
3802
|
+
children: t("review.done")
|
|
3803
|
+
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3804
|
+
size: "sm",
|
|
3805
|
+
disabled: locked,
|
|
3806
|
+
onClick: () => {
|
|
3807
|
+
setBody(comment.body);
|
|
3808
|
+
setEditing(true);
|
|
3809
|
+
},
|
|
3810
|
+
children: t("review.edit")
|
|
3811
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3812
|
+
size: "sm",
|
|
3813
|
+
disabled: locked,
|
|
3814
|
+
onClick: () => {
|
|
3815
|
+
if (actions.records?.editThread(thread.key, null) !== true) setError(t("review.saveFailed"));
|
|
3816
|
+
},
|
|
3817
|
+
children: t("review.remove")
|
|
3818
|
+
})] }),
|
|
3819
|
+
thread.kind === "published" && actions.openLink !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3820
|
+
size: "sm",
|
|
3821
|
+
onClick: () => {
|
|
3822
|
+
actions.openLink?.(thread.url);
|
|
3823
|
+
},
|
|
3824
|
+
children: t("review.recheck")
|
|
3825
|
+
})
|
|
3826
|
+
]
|
|
3827
|
+
})
|
|
3828
|
+
]
|
|
3829
|
+
});
|
|
3830
|
+
}
|
|
3831
|
+
//#endregion
|
|
3832
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/SubmitReview.module.css.mjs
|
|
3833
|
+
const css$10 = "._7Mu79G_modal{width:min(520px,100%);max-height:100%}._7Mu79G_content{min-height:0;overflow-y:auto}._7Mu79G_form{min-width:0;font:var(--dsw-font-xs-13);font-family:Inter, var(--dsw-font-family);flex-direction:column;gap:16px;display:flex}._7Mu79G_count{color:var(--dsw-alias-label-secondary)}._7Mu79G_input{min-height:112px}._7Mu79G_summary{flex-direction:column;gap:8px;display:flex}._7Mu79G_hint{color:var(--dsw-alias-label-secondary)}._7Mu79G_decisions{flex-wrap:wrap;gap:8px 20px;display:flex}._7Mu79G_decisions label{min-height:28px;color:var(--dsw-alias-label-primary);cursor:pointer;align-items:center;gap:6px;display:inline-flex}._7Mu79G_decisions input{width:16px;height:16px;accent-color:var(--dsw-alias-brand-primary);cursor:inherit;flex:none;margin:0}._7Mu79G_decisions input:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}._7Mu79G_decisions label:has(input:disabled){cursor:default;opacity:.5}._7Mu79G_error{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere}._7Mu79G_reconcile{flex-wrap:wrap;gap:8px;display:flex}";
|
|
3834
|
+
const tagId$10 = "@deepseek-ai/dsh-experimental-client-ui-forge/SubmitReview.module.css";
|
|
3835
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$10) + "]") === null) {
|
|
3836
|
+
const tag = document.createElement("style");
|
|
3837
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-forge";
|
|
3838
|
+
tag.dataset.pluginCss = tagId$10;
|
|
3839
|
+
tag.textContent = css$10;
|
|
3840
|
+
document.head.appendChild(tag);
|
|
3841
|
+
}
|
|
3842
|
+
var SubmitReview_module_css_default = {
|
|
3843
|
+
"content": "_7Mu79G_content",
|
|
3844
|
+
"count": "_7Mu79G_count",
|
|
3845
|
+
"decisions": "_7Mu79G_decisions",
|
|
3846
|
+
"error": "_7Mu79G_error",
|
|
3847
|
+
"form": "_7Mu79G_form",
|
|
3848
|
+
"hint": "_7Mu79G_hint",
|
|
3849
|
+
"input": "_7Mu79G_input",
|
|
3850
|
+
"modal": "_7Mu79G_modal",
|
|
3851
|
+
"reconcile": "_7Mu79G_reconcile",
|
|
3852
|
+
"summary": "_7Mu79G_summary"
|
|
3853
|
+
};
|
|
3854
|
+
//#endregion
|
|
3855
|
+
//#region lib/types/client/SubmitReview.js
|
|
3856
|
+
/** Centered review submission with a summary, decision, and pending-comment count. */
|
|
3857
|
+
/**
|
|
3858
|
+
* Submit a review independently of the diff scroll position; comments remain at their code locations.
|
|
3859
|
+
* @param props - durable queue, current head, submission outcome, and modal actions.
|
|
3860
|
+
* @returns a portalled modal with keyboard focus ownership.
|
|
3861
|
+
*/
|
|
3862
|
+
function SubmitReview({ queue, url, headSha, busy, error, submit, close, check, reconcile, t }) {
|
|
3863
|
+
const state = (0, react.useSyncExternalStore)(queue.subscribe, queue.getSnapshot);
|
|
3864
|
+
const name = (0, react.useId)();
|
|
3865
|
+
const summaryHint = `${name}-summary-hint`;
|
|
3866
|
+
const requiresSummary = state.event === "request-changes";
|
|
3867
|
+
const locked = busy || state.uncertain !== null;
|
|
3868
|
+
const stale = state.comments.some((item) => item.source.kind !== "change" || item.source.url !== url || item.source.headSha !== headSha);
|
|
3869
|
+
const empty = state.comments.some((item) => item.comment.body.trim() === "") || requiresSummary && state.body.trim() === "" || state.event === "comment" && state.body.trim() === "" && state.comments.length === 0;
|
|
3870
|
+
const notice = state.error !== null ? t(state.error === "load" ? "review.loadFailed" : "review.saveFailed") : stale ? t("review.stale") : error;
|
|
3871
|
+
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
3872
|
+
open: true,
|
|
3873
|
+
onClose: close,
|
|
3874
|
+
title: t("review.submit"),
|
|
3875
|
+
closeLabel: t("review.close"),
|
|
3876
|
+
className: clsx(SubmitReview_module_css_default.modal),
|
|
3877
|
+
contentClassName: clsx(SubmitReview_module_css_default.content),
|
|
3878
|
+
footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3879
|
+
variant: "outline",
|
|
3880
|
+
onClick: close,
|
|
3881
|
+
children: t("review.cancel")
|
|
3882
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3883
|
+
variant: "primary",
|
|
3884
|
+
disabled: locked || stale || empty || state.error !== null,
|
|
3885
|
+
onClick: submit,
|
|
3886
|
+
children: t(busy ? "review.submitting" : "review.submit")
|
|
3887
|
+
})] }),
|
|
3888
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
3889
|
+
className: SubmitReview_module_css_default.form,
|
|
3890
|
+
children: [
|
|
3891
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
3892
|
+
className: SubmitReview_module_css_default.count,
|
|
3893
|
+
children: t("review.drafts", { count: state.comments.length })
|
|
3894
|
+
}),
|
|
3895
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
3896
|
+
className: SubmitReview_module_css_default.summary,
|
|
3897
|
+
children: [(0, react_jsx_runtime.jsx)("textarea", {
|
|
3898
|
+
"data-modal-autofocus": true,
|
|
3899
|
+
className: clsx(ReviewComposer_module_css_default.input, SubmitReview_module_css_default.input),
|
|
3900
|
+
rows: 4,
|
|
3901
|
+
disabled: locked,
|
|
3902
|
+
value: state.body,
|
|
3903
|
+
"aria-label": t("review.summary"),
|
|
3904
|
+
placeholder: t("review.summary"),
|
|
3905
|
+
required: requiresSummary,
|
|
3906
|
+
"aria-describedby": requiresSummary ? summaryHint : void 0,
|
|
3907
|
+
onChange: (event) => {
|
|
3908
|
+
queue.summarize(event.target.value, state.event);
|
|
3909
|
+
}
|
|
3910
|
+
}), (0, react_jsx_runtime.jsx)("div", {
|
|
3911
|
+
id: summaryHint,
|
|
3912
|
+
className: SubmitReview_module_css_default.hint,
|
|
3913
|
+
role: "status",
|
|
3914
|
+
children: requiresSummary ? t("review.summaryRequired") : ""
|
|
3915
|
+
})]
|
|
3916
|
+
}),
|
|
3917
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
3918
|
+
className: SubmitReview_module_css_default.decisions,
|
|
3919
|
+
children: [
|
|
3920
|
+
"comment",
|
|
3921
|
+
"approve",
|
|
3922
|
+
"request-changes"
|
|
3923
|
+
].map((value) => (0, react_jsx_runtime.jsxs)("label", { children: [(0, react_jsx_runtime.jsx)("input", {
|
|
3924
|
+
type: "radio",
|
|
3925
|
+
name,
|
|
3926
|
+
value,
|
|
3927
|
+
checked: state.event === value,
|
|
3928
|
+
disabled: locked,
|
|
3929
|
+
onChange: () => {
|
|
3930
|
+
queue.summarize(state.body, value);
|
|
3931
|
+
}
|
|
3932
|
+
}), t(value === "comment" ? "review.commentOnly" : value === "approve" ? "review.approve" : "review.requestChanges")] }, value))
|
|
3933
|
+
}),
|
|
3934
|
+
notice !== null && (0, react_jsx_runtime.jsx)("div", {
|
|
3935
|
+
className: SubmitReview_module_css_default.error,
|
|
3936
|
+
role: "alert",
|
|
3937
|
+
children: notice
|
|
3938
|
+
}),
|
|
3939
|
+
state.uncertain !== null && !busy && (0, react_jsx_runtime.jsxs)("div", {
|
|
3940
|
+
className: SubmitReview_module_css_default.reconcile,
|
|
3941
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3942
|
+
size: "sm",
|
|
3943
|
+
variant: "outline",
|
|
3944
|
+
onClick: check,
|
|
3945
|
+
children: t("review.recheck")
|
|
3946
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3947
|
+
size: "sm",
|
|
3948
|
+
variant: "outline",
|
|
3949
|
+
onClick: reconcile,
|
|
3950
|
+
children: t("review.confirmRetry")
|
|
3951
|
+
})]
|
|
3952
|
+
})
|
|
3953
|
+
]
|
|
3954
|
+
})
|
|
3955
|
+
});
|
|
3956
|
+
}
|
|
3957
|
+
//#endregion
|
|
2505
3958
|
//#region lib/types/client/diff-rows.js
|
|
2506
3959
|
/**
|
|
2507
3960
|
* Drawn rows of one file diff: numbered patch lines, their side-by-side
|
|
@@ -2704,14 +4157,231 @@ window.__ModuleLoader__.load({
|
|
|
2704
4157
|
return count;
|
|
2705
4158
|
}
|
|
2706
4159
|
//#endregion
|
|
4160
|
+
//#region lib/types/client/code-selection.js
|
|
4161
|
+
/** Read browser text selections from one diff side without including the interleaved opposite column. */
|
|
4162
|
+
function codeAt(node) {
|
|
4163
|
+
return (node instanceof Element ? node : node?.parentElement)?.closest("[data-review-code]") ?? null;
|
|
4164
|
+
}
|
|
4165
|
+
/**
|
|
4166
|
+
* Find the side where a text selection begins; unified context belongs to the new side.
|
|
4167
|
+
* @param root - this file's diff element.
|
|
4168
|
+
* @param node - pointer or selection anchor.
|
|
4169
|
+
* @returns the available side, or undefined outside code text.
|
|
4170
|
+
*/
|
|
4171
|
+
function codeSideAt(root, node) {
|
|
4172
|
+
const code = codeAt(node);
|
|
4173
|
+
if (code === null || !root.contains(code)) return void 0;
|
|
4174
|
+
return code.dataset.newLine === void 0 ? "L" : "R";
|
|
4175
|
+
}
|
|
4176
|
+
/**
|
|
4177
|
+
* Read only code fragments from the selected side, retaining partial first and last lines for copy.
|
|
4178
|
+
* @param root - this file's diff element.
|
|
4179
|
+
* @param side - side captured when the gesture began.
|
|
4180
|
+
* @returns the selected range and text, or undefined for collapsed or cross-file selections.
|
|
4181
|
+
*/
|
|
4182
|
+
function readCodeSelection(root, side) {
|
|
4183
|
+
const selection = root.ownerDocument.getSelection();
|
|
4184
|
+
if (selection === null || selection.isCollapsed || selection.rangeCount === 0 || !root.contains(selection.anchorNode) || !root.contains(selection.focusNode)) return void 0;
|
|
4185
|
+
const range = selection.getRangeAt(0);
|
|
4186
|
+
const fragments = [];
|
|
4187
|
+
for (const code of root.querySelectorAll("[data-review-code]")) {
|
|
4188
|
+
const line = side === "L" ? code.dataset.oldLine : code.dataset.newLine;
|
|
4189
|
+
if (line === void 0 || !range.intersectsNode(code)) continue;
|
|
4190
|
+
const part = root.ownerDocument.createRange();
|
|
4191
|
+
part.selectNodeContents(code);
|
|
4192
|
+
if (code.contains(range.startContainer)) part.setStart(range.startContainer, range.startOffset);
|
|
4193
|
+
if (code.contains(range.endContainer)) part.setEnd(range.endContainer, range.endOffset);
|
|
4194
|
+
const text = part.toString();
|
|
4195
|
+
if (text !== "" || code.textContent === "") fragments.push({
|
|
4196
|
+
line: Number(line),
|
|
4197
|
+
text
|
|
4198
|
+
});
|
|
4199
|
+
}
|
|
4200
|
+
const first = fragments[0];
|
|
4201
|
+
const last = fragments.at(-1);
|
|
4202
|
+
if (first === void 0 || last === void 0) return void 0;
|
|
4203
|
+
return {
|
|
4204
|
+
side,
|
|
4205
|
+
from: first.line,
|
|
4206
|
+
to: last.line,
|
|
4207
|
+
text: fragments.map((item) => item.text).join("\n")
|
|
4208
|
+
};
|
|
4209
|
+
}
|
|
4210
|
+
//#endregion
|
|
4211
|
+
//#region lib/types/client/ReviewComposer.js
|
|
4212
|
+
/** Plain-text comment editor for a frozen selection in either review tab. */
|
|
4213
|
+
function GitHubAction({ disabled, busy, started, queue, publish, t }) {
|
|
4214
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
4215
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
4216
|
+
className: ReviewComposer_module_css_default.gitAction,
|
|
4217
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
4218
|
+
size: "sm",
|
|
4219
|
+
variant: "primary",
|
|
4220
|
+
className: clsx(ReviewComposer_module_css_default.gitMain),
|
|
4221
|
+
disabled,
|
|
4222
|
+
onClick: queue,
|
|
4223
|
+
children: t(busy ? "review.publishing" : started ? "review.queue" : "review.startReview")
|
|
4224
|
+
}), publish !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
4225
|
+
open: open && !disabled,
|
|
4226
|
+
portal: true,
|
|
4227
|
+
dense: true,
|
|
4228
|
+
align: "end",
|
|
4229
|
+
autoFocus: true,
|
|
4230
|
+
onClose: () => {
|
|
4231
|
+
setOpen(false);
|
|
4232
|
+
},
|
|
4233
|
+
anchor: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
4234
|
+
size: "sm",
|
|
4235
|
+
variant: "primary",
|
|
4236
|
+
className: clsx(ReviewComposer_module_css_default.gitArrow),
|
|
4237
|
+
disabled,
|
|
4238
|
+
"aria-haspopup": "menu",
|
|
4239
|
+
"aria-expanded": open && !disabled,
|
|
4240
|
+
"aria-label": t("review.githubActions"),
|
|
4241
|
+
onClick: () => {
|
|
4242
|
+
setOpen((value) => !value);
|
|
4243
|
+
},
|
|
4244
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 14 })
|
|
4245
|
+
}),
|
|
4246
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
|
|
4247
|
+
onSelect: () => {
|
|
4248
|
+
setOpen(false);
|
|
4249
|
+
publish();
|
|
4250
|
+
},
|
|
4251
|
+
children: t("review.publish")
|
|
4252
|
+
})
|
|
4253
|
+
})]
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
4256
|
+
/**
|
|
4257
|
+
* Render the line range, plain-text editor, and explicitly named destinations.
|
|
4258
|
+
* @param props - frozen selection, actions, cancellation, and localized copy.
|
|
4259
|
+
* @returns the inline comment form.
|
|
4260
|
+
*/
|
|
4261
|
+
function ReviewComposer({ selection, actions, close, visible = true, split = false, t }) {
|
|
4262
|
+
const body = (0, react.useRef)(selection.comment.body);
|
|
4263
|
+
const [empty, setEmpty] = (0, react.useState)(body.current.trim() === "");
|
|
4264
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
4265
|
+
const [error, setError] = (0, react.useState)(null);
|
|
4266
|
+
const running = (0, react.useRef)(false);
|
|
4267
|
+
const input = (0, react.useRef)(null);
|
|
4268
|
+
(0, react.useEffect)(() => {
|
|
4269
|
+
input.current?.focus();
|
|
4270
|
+
}, []);
|
|
4271
|
+
const comment = () => ({
|
|
4272
|
+
...selection,
|
|
4273
|
+
comment: {
|
|
4274
|
+
...selection.comment,
|
|
4275
|
+
body: body.current
|
|
4276
|
+
}
|
|
4277
|
+
});
|
|
4278
|
+
const range = `${selection.comment.side}${selection.comment.startLine}${selection.comment.endLine === selection.comment.startLine ? "" : `–${selection.comment.endLine}`}`;
|
|
4279
|
+
const publish = async () => {
|
|
4280
|
+
if (running.current || actions.publish === void 0) return;
|
|
4281
|
+
running.current = true;
|
|
4282
|
+
setBusy(true);
|
|
4283
|
+
setError(null);
|
|
4284
|
+
try {
|
|
4285
|
+
const failure = await actions.publish(comment());
|
|
4286
|
+
if (failure === void 0) close();
|
|
4287
|
+
else setError(failure);
|
|
4288
|
+
} catch (_error) {
|
|
4289
|
+
setError(t("review.unknown"));
|
|
4290
|
+
} finally {
|
|
4291
|
+
running.current = false;
|
|
4292
|
+
setBusy(false);
|
|
4293
|
+
}
|
|
4294
|
+
};
|
|
4295
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
4296
|
+
className: ReviewComposer_module_css_default.root,
|
|
4297
|
+
"data-side": selection.comment.side,
|
|
4298
|
+
"data-split": split ? "" : void 0,
|
|
4299
|
+
"aria-label": t("review.range", { range }),
|
|
4300
|
+
"data-forge-comment": "",
|
|
4301
|
+
children: [
|
|
4302
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
4303
|
+
className: ReviewComposer_module_css_default.title,
|
|
4304
|
+
children: t("review.range", { range })
|
|
4305
|
+
}),
|
|
4306
|
+
(0, react_jsx_runtime.jsx)("textarea", {
|
|
4307
|
+
ref: input,
|
|
4308
|
+
className: ReviewComposer_module_css_default.input,
|
|
4309
|
+
rows: 3,
|
|
4310
|
+
defaultValue: selection.comment.body,
|
|
4311
|
+
disabled: busy,
|
|
4312
|
+
"aria-label": t("review.comment"),
|
|
4313
|
+
placeholder: t("review.comment"),
|
|
4314
|
+
onChange: (event) => {
|
|
4315
|
+
body.current = event.target.value;
|
|
4316
|
+
const nextEmpty = body.current.trim() === "";
|
|
4317
|
+
if (nextEmpty !== empty) setEmpty(nextEmpty);
|
|
4318
|
+
if (error !== null) setError(null);
|
|
4319
|
+
}
|
|
4320
|
+
}),
|
|
4321
|
+
error !== null && (0, react_jsx_runtime.jsx)("div", {
|
|
4322
|
+
className: ReviewComposer_module_css_default.error,
|
|
4323
|
+
role: "alert",
|
|
4324
|
+
children: error
|
|
4325
|
+
}),
|
|
4326
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
4327
|
+
className: ReviewComposer_module_css_default.actions,
|
|
4328
|
+
children: [
|
|
4329
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
4330
|
+
size: "sm",
|
|
4331
|
+
className: clsx(ReviewComposer_module_css_default.cancel),
|
|
4332
|
+
disabled: busy,
|
|
4333
|
+
onClick: close,
|
|
4334
|
+
children: t("review.cancel")
|
|
4335
|
+
}),
|
|
4336
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
4337
|
+
size: "sm",
|
|
4338
|
+
variant: actions.queue === void 0 ? "primary" : "outline",
|
|
4339
|
+
disabled: busy || empty,
|
|
4340
|
+
onClick: () => {
|
|
4341
|
+
const selected = comment();
|
|
4342
|
+
if (actions.addToInput(selected)) {
|
|
4343
|
+
actions.onQuoted?.(selected);
|
|
4344
|
+
close();
|
|
4345
|
+
} else setError(t("review.inputFailed"));
|
|
4346
|
+
},
|
|
4347
|
+
children: t("review.addToInput")
|
|
4348
|
+
}),
|
|
4349
|
+
visible && actions.queue !== void 0 && (0, react_jsx_runtime.jsx)(GitHubAction, {
|
|
4350
|
+
disabled: busy || actions.publishingBlocked === true || empty,
|
|
4351
|
+
busy,
|
|
4352
|
+
started: actions.reviewStarted === true,
|
|
4353
|
+
queue: () => {
|
|
4354
|
+
if (actions.queue?.(comment()) === true) close();
|
|
4355
|
+
else setError(t("review.saveFailed"));
|
|
4356
|
+
},
|
|
4357
|
+
publish: actions.publish === void 0 ? void 0 : () => {
|
|
4358
|
+
publish();
|
|
4359
|
+
},
|
|
4360
|
+
t
|
|
4361
|
+
}),
|
|
4362
|
+
actions.queue === void 0 && actions.publish !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
4363
|
+
size: "sm",
|
|
4364
|
+
variant: "primary",
|
|
4365
|
+
disabled: busy || actions.publishingBlocked === true || empty,
|
|
4366
|
+
onClick: () => {
|
|
4367
|
+
publish();
|
|
4368
|
+
},
|
|
4369
|
+
children: t("review.publish")
|
|
4370
|
+
})
|
|
4371
|
+
]
|
|
4372
|
+
})
|
|
4373
|
+
]
|
|
4374
|
+
});
|
|
4375
|
+
}
|
|
4376
|
+
//#endregion
|
|
2707
4377
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/FileLabel.module.css.mjs
|
|
2708
|
-
const css$
|
|
2709
|
-
const tagId$
|
|
2710
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4378
|
+
const css$9 = ".ph9SBW_label{min-width:0;display:flex;position:relative}.ph9SBW_parts{white-space:nowrap;align-items:baseline;gap:6px;min-width:0;display:flex;overflow:hidden}.ph9SBW_name{color:var(--dsw-alias-label-primary);flex:0 auto}.ph9SBW_directory{color:var(--dsw-alias-label-tertiary);flex:1 1 0;font-size:11px}.ph9SBW_shortened{min-width:0;display:flex;overflow:hidden}.ph9SBW_head{text-overflow:ellipsis;min-width:0;overflow:hidden}.ph9SBW_tail{flex:none}.ph9SBW_visuallyHidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
|
|
4379
|
+
const tagId$9 = "@deepseek-ai/dsh-experimental-client-ui-forge/FileLabel.module.css";
|
|
4380
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$9) + "]") === null) {
|
|
2711
4381
|
const tag = document.createElement("style");
|
|
2712
4382
|
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-forge";
|
|
2713
|
-
tag.dataset.pluginCss = tagId$
|
|
2714
|
-
tag.textContent = css$
|
|
4383
|
+
tag.dataset.pluginCss = tagId$9;
|
|
4384
|
+
tag.textContent = css$9;
|
|
2715
4385
|
document.head.appendChild(tag);
|
|
2716
4386
|
}
|
|
2717
4387
|
var FileLabel_module_css_default = {
|
|
@@ -2793,13 +4463,13 @@ window.__ModuleLoader__.load({
|
|
|
2793
4463
|
}
|
|
2794
4464
|
//#endregion
|
|
2795
4465
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/ChangesTab.module.css.mjs
|
|
2796
|
-
const css$6 = ".HsI4mW_root{--forge-changes-bg:var(--dsw-alias-bg-base);--forge-fill:var(--dsw-static-neutral-50);--forge-diff-empty:color-mix(in srgb, var(--dsw-alias-interactive-bg-hover) 50%, transparent);background:var(--forge-changes-bg);height:100%;min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;font-size:12px;line-height:18px;display:flex}body[data-ds-dark-theme] .HsI4mW_root{--forge-fill:var(--dsw-static-neutral-850)}.HsI4mW_header{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;min-height:44px;padding:0 8px 0 14px;display:flex}.HsI4mW_headerIcon{color:var(--dsw-alias-label-secondary);flex:none;display:inline-flex}.HsI4mW_headerTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.HsI4mW_headerNumber{color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);flex:none}.HsI4mW_headerNote{min-width:0;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.HsI4mW_headerEnd{flex:none;margin-left:auto}.HsI4mW_toolbar{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:4px;min-height:38px;padding:0 8px;display:flex}.HsI4mW_select{box-sizing:border-box;border-radius:var(--dsw-radius-sm);min-width:0;height:28px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;white-space:nowrap;background:0 0;border:0;flex:0 auto;align-items:center;gap:4px;padding:0 6px 0 8px;display:inline-flex}.HsI4mW_select[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}@media (hover:hover){.HsI4mW_select:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}@media (hover:hover){.HsI4mW_select:disabled:hover{background:0 0}}.HsI4mW_select svg{flex:none}.HsI4mW_counts{font-family:var(--ds-font-family-code);flex:none;gap:6px;display:inline-flex}.HsI4mW_totals{padding:0 4px}.HsI4mW_added{color:var(--dsw-alias-state-success-primary)}.HsI4mW_deleted{color:var(--dsw-alias-state-error-primary)}.HsI4mW_tools{flex:none;align-items:center;gap:2px;margin-left:auto;display:inline-flex}.HsI4mW_tool{border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.HsI4mW_tool[aria-pressed=true],.HsI4mW_tool[aria-expanded=true],.HsI4mW_tool[data-expanded]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}@media (hover:hover){.HsI4mW_tool:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.HsI4mW_tool:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.HsI4mW_tool svg{width:15px;height:15px}.HsI4mW_tool[aria-pressed=true] .HsI4mW_compareIcon{transform:rotate(90deg)}.HsI4mW_menuRow{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.HsI4mW_menuPath{flex:1;min-width:0}.HsI4mW_menuList{min-width:280px;max-width:min(420px,80vw)}.HsI4mW_notice{border-bottom:.5px solid var(--dsw-alias-border-l3);background:var(--forge-fill);color:var(--dsw-alias-label-secondary);flex:none;align-items:center;gap:8px;padding:8px 14px;display:flex}.HsI4mW_notice>svg{flex:none}.HsI4mW_noticeAction{flex:none;margin-left:auto}.HsI4mW_files{flex:1;min-height:0;overflow:auto}.HsI4mW_actions{gap:8px;display:flex}.HsI4mW_centered{box-sizing:border-box;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.HsI4mW_file{border-bottom:.5px solid var(--dsw-alias-border-l3)}.HsI4mW_fileHeader{z-index:1;box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l3);background:var(--forge-changes-bg);align-items:center;gap:6px;min-height:36px;padding:0 4px 0 8px;display:flex;position:sticky;top:0}.HsI4mW_fileToggle{border-radius:var(--dsw-radius-sm);width:20px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover){.HsI4mW_fileToggle:hover{color:var(--dsw-alias-label-primary)}}.HsI4mW_file:not([data-expanded]) .HsI4mW_fileHeader{border-bottom:0}.HsI4mW_fileIcon{flex:none}.HsI4mW_filePath{min-width:0;color:inherit;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;flex:0 auto;padding:0;display:flex}.HsI4mW_fileSpacer{flex:1;align-self:stretch}.HsI4mW_chevron{transition:transform .12s}.HsI4mW_file:not([data-expanded]) .HsI4mW_chevron{transform:rotate(-90deg)}.HsI4mW_badge{background:var(--forge-fill);max-width:50%;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;border-radius:4px;flex:none;padding:0 6px;font-size:11px;line-height:18px;overflow:hidden}.HsI4mW_code{font:var(--dsw-font-markdown-code-block);overflow-x:auto}.HsI4mW_code:not([data-wrap]):not([data-split]){grid-template-columns:minmax(max-content,100%);display:grid}.HsI4mW_line{box-sizing:border-box;white-space:pre;grid-template-columns:3.5em 3.5em 1.4em minmax(0,1fr);min-height:22px;line-height:22px;display:grid}.HsI4mW_code:not([data-wrap]):not([data-split]) .HsI4mW_line{grid-template-columns:3.5em 3.5em 1.4em max-content}.HsI4mW_pair{white-space:pre;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:22px;line-height:22px;display:grid}.HsI4mW_cell{box-sizing:border-box;grid-template-columns:3.5em minmax(0,1fr);min-width:0;display:grid}.HsI4mW_cell+.HsI4mW_cell{border-left:.5px solid var(--dsw-alias-border-l3)}.HsI4mW_cell .HsI4mW_text{overflow:hidden}.HsI4mW_code[data-wrap] .HsI4mW_line,.HsI4mW_code[data-wrap] .HsI4mW_pair{white-space:pre-wrap}.HsI4mW_code[data-wrap] .HsI4mW_text{overflow-wrap:anywhere}.HsI4mW_number{color:var(--dsw-alias-label-tertiary);text-align:right;user-select:none;padding-right:8px}.HsI4mW_sign{text-align:center;user-select:none}.HsI4mW_text{padding:0 16px 0 6px}.HsI4mW_add{--forge-diff-gutter:var(--dsw-alias-file-diff-added-gutter);--forge-diff-marker:var(--dsw-alias-file-diff-added-marker);background:var(--dsw-alias-file-diff-added-bg)}.HsI4mW_del{--forge-diff-gutter:var(--dsw-alias-file-diff-deleted-gutter);--forge-diff-marker:var(--dsw-alias-file-diff-deleted-marker);background:var(--dsw-alias-file-diff-deleted-bg)}.HsI4mW_add .HsI4mW_number,.HsI4mW_del .HsI4mW_number{background:var(--forge-diff-gutter);color:var(--forge-diff-marker)}.HsI4mW_add .HsI4mW_sign,.HsI4mW_del .HsI4mW_sign{color:var(--forge-diff-marker)}.HsI4mW_context .HsI4mW_text{color:var(--dsw-alias-label-secondary)}.HsI4mW_empty{background:var(--forge-diff-empty)}.HsI4mW_gap,.HsI4mW_fileNote{box-sizing:border-box;background:var(--forge-fill);width:100%;min-height:26px;color:var(--dsw-alias-label-tertiary);font-family:var(--dsw-font-family);text-align:left;border:0;align-items:center;gap:6px;margin:0;padding:0 12px;font-size:12px;line-height:18px;display:flex}.HsI4mW_gap{cursor:pointer}@media (hover:hover){.HsI4mW_gap:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.HsI4mW_gap:disabled{cursor:progress}.HsI4mW_local{border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);min-width:0}.HsI4mW_localHead{align-items:center;gap:8px;min-width:0;padding:8px 12px 2px 6px;display:flex}.HsI4mW_localToggle{border-radius:var(--dsw-radius-sm);min-height:26px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;background:0 0;border:0;flex:none;align-items:center;gap:6px;padding:0 6px;font-weight:500;display:inline-flex}@media (hover:hover){.HsI4mW_localToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_localToggle svg{color:var(--dsw-alias-label-tertiary);transition:transform .12s}.HsI4mW_localToggle[aria-expanded=true] svg{transform:rotate(180deg)}.HsI4mW_localRefs{min-width:0;color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;margin-left:auto;font-size:12px;overflow:hidden}.HsI4mW_localRow{align-items:center;gap:8px;padding:4px 10px 10px 12px;font-size:12px;display:flex}.HsI4mW_localView{border-radius:var(--dsw-radius-sm);min-width:0;min-height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;font:inherit;background:0 0;border:0;align-items:center;gap:8px;margin-left:-6px;padding:0 6px;display:inline-flex}@media (hover:hover){.HsI4mW_localView:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_localCreate{flex:none;margin-left:auto}.HsI4mW_localFiles{border-top:.5px solid var(--dsw-alias-border-l2);margin:0;padding:4px 6px 8px;list-style:none}.HsI4mW_localFile{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:100%;min-height:28px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:0 6px;font-size:12px;display:flex}@media (hover:hover){.HsI4mW_localFile:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_localFile .HsI4mW_menuPath{flex:1}.HsI4mW_localView:focus-visible,.HsI4mW_localToggle:focus-visible,.HsI4mW_fileToggle:focus-visible,.HsI4mW_filePath:focus-visible,.HsI4mW_localFile:focus-visible,.HsI4mW_select:focus-visible,.HsI4mW_gap:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}";
|
|
2797
|
-
const tagId$
|
|
2798
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
4466
|
+
const css$8 = ".HsI4mW_root{--forge-changes-bg:var(--dsw-alias-bg-base);--forge-fill:var(--dsw-static-neutral-50);--forge-diff-empty:color-mix(in srgb, var(--dsw-alias-interactive-bg-hover) 50%, transparent);background:var(--forge-changes-bg);height:100%;min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;font-size:12px;line-height:18px;display:flex;container:HsI4mW_forge-changes/inline-size}body[data-ds-dark-theme] .HsI4mW_root{--forge-fill:var(--dsw-static-neutral-850)}.HsI4mW_header{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:8px;min-height:44px;padding:0 8px 0 14px;display:flex}.HsI4mW_headerIcon{color:var(--dsw-alias-label-secondary);flex:none;display:inline-flex}.HsI4mW_headerTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.HsI4mW_headerNumber{color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);flex:none}.HsI4mW_headerNote{min-width:0;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.HsI4mW_headerEnd{flex:none;margin-left:auto}.HsI4mW_toolbar{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l3);flex:none;align-items:center;gap:4px;min-height:38px;padding:0 8px;display:flex}.HsI4mW_select{box-sizing:border-box;border-radius:var(--dsw-radius-sm);min-width:0;height:28px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;white-space:nowrap;background:0 0;border:0;flex:0 auto;align-items:center;gap:4px;padding:0 6px 0 8px;display:inline-flex}.HsI4mW_select[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}@media (hover:hover){.HsI4mW_select:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}@media (hover:hover){.HsI4mW_select:disabled:hover{background:0 0}}.HsI4mW_select svg{flex:none}.HsI4mW_counts{font-family:var(--ds-font-family-code);flex:none;gap:6px;display:inline-flex}.HsI4mW_totals{padding:0 4px}.HsI4mW_added{color:var(--dsw-alias-state-success-primary)}.HsI4mW_deleted{color:var(--dsw-alias-state-error-primary)}.HsI4mW_tools{flex:none;align-items:center;gap:2px;margin-left:auto;display:inline-flex}.HsI4mW_tool{border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.HsI4mW_tool[aria-pressed=true],.HsI4mW_tool[aria-expanded=true],.HsI4mW_tool[data-expanded]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}@media (hover:hover){.HsI4mW_tool:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.HsI4mW_tool:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.HsI4mW_tool svg{width:15px;height:15px}.HsI4mW_tool[aria-pressed=true] .HsI4mW_compareIcon{transform:rotate(90deg)}.HsI4mW_menuRow{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.HsI4mW_menuPath{flex:1;min-width:0}.HsI4mW_menuList{min-width:280px;max-width:min(420px,80vw)}.HsI4mW_notice{border-bottom:.5px solid var(--dsw-alias-border-l3);background:var(--forge-fill);color:var(--dsw-alias-label-secondary);flex:none;align-items:center;gap:8px;padding:8px 14px;display:flex}.HsI4mW_notice>svg{flex:none}.HsI4mW_noticeAction{flex:none;margin-left:auto}.HsI4mW_body{flex:1;min-height:0;display:flex}.HsI4mW_treeToggle{display:none}@container HsI4mW_forge-changes (width>=760px){.HsI4mW_treeToggle{display:inline-flex}.HsI4mW_treePane:not([hidden]){display:block}}.HsI4mW_files{flex:1;min-width:0;min-height:0;overflow:auto}.HsI4mW_files:focus{outline:none}.HsI4mW_actions{gap:8px;display:flex}.HsI4mW_centered{box-sizing:border-box;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.HsI4mW_file{border-bottom:.5px solid var(--dsw-alias-border-l3)}.HsI4mW_fileHeader{z-index:1;box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l3);background:var(--forge-changes-bg);align-items:center;gap:6px;min-height:36px;padding:0 4px 0 8px;display:flex;position:sticky;top:0}.HsI4mW_fileToggle{border-radius:var(--dsw-radius-sm);width:20px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover){.HsI4mW_fileToggle:hover{color:var(--dsw-alias-label-primary)}}.HsI4mW_file:not([data-expanded]) .HsI4mW_fileHeader{border-bottom:0}.HsI4mW_fileIcon{flex:none}.HsI4mW_filePath{flex:0 auto;min-width:0;display:flex}.HsI4mW_fileSpacer{flex:1;align-self:stretch}.HsI4mW_chevron{transition:transform .12s}.HsI4mW_file:not([data-expanded]) .HsI4mW_chevron{transform:rotate(-90deg)}.HsI4mW_badge{background:var(--forge-fill);max-width:50%;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;border-radius:4px;flex:none;padding:0 6px;font-size:11px;line-height:18px;overflow:hidden}.HsI4mW_code{font:var(--dsw-font-markdown-code-block);overflow-x:auto}.HsI4mW_code:not([data-wrap]):not([data-split]){grid-template-columns:minmax(max-content,100%);display:grid}.HsI4mW_line{grid-template-columns:var(--forge-number-width,3.5em) var(--forge-number-width,3.5em) 1.4em minmax(0, 1fr);box-sizing:border-box;white-space:pre;min-height:22px;line-height:22px;display:grid}.HsI4mW_code:not([data-wrap]):not([data-split]) .HsI4mW_line{grid-template-columns:var(--forge-number-width,3.5em) var(--forge-number-width,3.5em) 1.4em max-content}.HsI4mW_pair{white-space:pre;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:22px;line-height:22px;display:grid}.HsI4mW_cell{grid-template-columns:var(--forge-number-width,3.5em) minmax(0, 1fr);box-sizing:border-box;min-width:0;display:grid}.HsI4mW_cell+.HsI4mW_cell{border-left:.5px solid var(--dsw-alias-border-l3)}.HsI4mW_cell .HsI4mW_text{overflow:hidden}.HsI4mW_code[data-wrap] .HsI4mW_line,.HsI4mW_code[data-wrap] .HsI4mW_pair{white-space:pre-wrap}.HsI4mW_code[data-wrap] .HsI4mW_text{overflow-wrap:anywhere}.HsI4mW_number{box-sizing:border-box;color:var(--dsw-alias-label-tertiary);text-align:right;user-select:none;padding-right:6px}.HsI4mW_sign{text-align:center;user-select:none}.HsI4mW_text{padding:0 16px 0 6px}.HsI4mW_add{--forge-diff-gutter:var(--dsw-alias-file-diff-added-gutter);--forge-diff-marker:var(--dsw-alias-file-diff-added-marker);background:var(--dsw-alias-file-diff-added-bg)}.HsI4mW_del{--forge-diff-gutter:var(--dsw-alias-file-diff-deleted-gutter);--forge-diff-marker:var(--dsw-alias-file-diff-deleted-marker);background:var(--dsw-alias-file-diff-deleted-bg)}.HsI4mW_add .HsI4mW_number,.HsI4mW_del .HsI4mW_number{background:var(--forge-diff-gutter);color:var(--forge-diff-marker)}.HsI4mW_add .HsI4mW_sign,.HsI4mW_del .HsI4mW_sign{color:var(--forge-diff-marker)}.HsI4mW_context .HsI4mW_text{color:var(--dsw-alias-label-secondary)}.HsI4mW_empty{background:var(--forge-diff-empty)}.HsI4mW_gap,.HsI4mW_fileNote{box-sizing:border-box;background:var(--forge-fill);width:100%;min-height:26px;color:var(--dsw-alias-label-tertiary);font-family:var(--dsw-font-family);text-align:left;border:0;align-items:center;gap:6px;margin:0;padding:0 12px;font-size:12px;line-height:18px;display:flex}.HsI4mW_gap{cursor:pointer}@media (hover:hover){.HsI4mW_gap:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.HsI4mW_gap:disabled{cursor:progress}.HsI4mW_local{border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);min-width:0}.HsI4mW_localHead{align-items:center;gap:8px;min-width:0;padding:8px 12px 2px 6px;display:flex}.HsI4mW_localToggle{border-radius:var(--dsw-radius-sm);min-height:26px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;background:0 0;border:0;flex:none;align-items:center;gap:6px;padding:0 6px;font-weight:500;display:inline-flex}@media (hover:hover){.HsI4mW_localToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_localToggle svg{color:var(--dsw-alias-label-tertiary);transition:transform .12s}.HsI4mW_localToggle[aria-expanded=true] svg{transform:rotate(180deg)}.HsI4mW_localRefs{min-width:0;color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;margin-left:auto;font-size:12px;overflow:hidden}.HsI4mW_localRow{align-items:center;gap:8px;padding:4px 10px 10px 12px;font-size:12px;display:flex}.HsI4mW_localView{border-radius:var(--dsw-radius-sm);min-width:0;min-height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;font:inherit;background:0 0;border:0;align-items:center;gap:8px;margin-left:-6px;padding:0 6px;display:inline-flex}@media (hover:hover){.HsI4mW_localView:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_localCreate{flex:none;margin-left:auto}.HsI4mW_localFiles{border-top:.5px solid var(--dsw-alias-border-l2);margin:0;padding:4px 6px 8px;list-style:none}.HsI4mW_localFile{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:100%;min-height:28px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:0 6px;font-size:12px;display:flex}@media (hover:hover){.HsI4mW_localFile:hover{background:var(--dsw-alias-interactive-bg-hover)}}.HsI4mW_localFile .HsI4mW_menuPath{flex:1}.HsI4mW_localView:focus-visible,.HsI4mW_localToggle:focus-visible,.HsI4mW_fileToggle:focus-visible,.HsI4mW_localFile:focus-visible,.HsI4mW_select:focus-visible,.HsI4mW_gap:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.HsI4mW_reviewNotice{flex-wrap:wrap;align-items:center;gap:8px;padding:10px;display:flex}.HsI4mW_code[data-split][data-native-side=L] [data-diff-side=R],.HsI4mW_code[data-split][data-native-side=L] [data-diff-side=R] *,.HsI4mW_code[data-split][data-native-side=R] [data-diff-side=L],.HsI4mW_code[data-split][data-native-side=R] [data-diff-side=L] *{user-select:none}.HsI4mW_reviewSubmit{white-space:nowrap;flex:none}.HsI4mW_code[data-single-side] .HsI4mW_line{grid-template-columns:var(--forge-number-width) 1.4em minmax(0, 1fr)}.HsI4mW_code[data-single-side]:not([data-wrap]) .HsI4mW_line{grid-template-columns:var(--forge-number-width) 1.4em max-content}.HsI4mW_reviewFile{padding:12px 0}.HsI4mW_reviewFile>h3{overflow-wrap:anywhere;margin:0 10px;font-size:12px;font-weight:500}";
|
|
4467
|
+
const tagId$8 = "@deepseek-ai/dsh-experimental-client-ui-forge/ChangesTab.module.css";
|
|
4468
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$8) + "]") === null) {
|
|
2799
4469
|
const tag = document.createElement("style");
|
|
2800
4470
|
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-forge";
|
|
2801
|
-
tag.dataset.pluginCss = tagId$
|
|
2802
|
-
tag.textContent = css$
|
|
4471
|
+
tag.dataset.pluginCss = tagId$8;
|
|
4472
|
+
tag.textContent = css$8;
|
|
2803
4473
|
document.head.appendChild(tag);
|
|
2804
4474
|
}
|
|
2805
4475
|
var ChangesTab_module_css_default = {
|
|
@@ -2807,6 +4477,7 @@ window.__ModuleLoader__.load({
|
|
|
2807
4477
|
"add": "HsI4mW_add",
|
|
2808
4478
|
"added": "HsI4mW_added",
|
|
2809
4479
|
"badge": "HsI4mW_badge",
|
|
4480
|
+
"body": "HsI4mW_body",
|
|
2810
4481
|
"cell": "HsI4mW_cell",
|
|
2811
4482
|
"centered": "HsI4mW_centered",
|
|
2812
4483
|
"chevron": "HsI4mW_chevron",
|
|
@@ -2825,6 +4496,7 @@ window.__ModuleLoader__.load({
|
|
|
2825
4496
|
"fileSpacer": "HsI4mW_fileSpacer",
|
|
2826
4497
|
"fileToggle": "HsI4mW_fileToggle",
|
|
2827
4498
|
"files": "HsI4mW_files",
|
|
4499
|
+
"forge-changes": "HsI4mW_forge-changes",
|
|
2828
4500
|
"gap": "HsI4mW_gap",
|
|
2829
4501
|
"header": "HsI4mW_header",
|
|
2830
4502
|
"headerEnd": "HsI4mW_headerEnd",
|
|
@@ -2849,6 +4521,9 @@ window.__ModuleLoader__.load({
|
|
|
2849
4521
|
"noticeAction": "HsI4mW_noticeAction",
|
|
2850
4522
|
"number": "HsI4mW_number",
|
|
2851
4523
|
"pair": "HsI4mW_pair",
|
|
4524
|
+
"reviewFile": "HsI4mW_reviewFile",
|
|
4525
|
+
"reviewNotice": "HsI4mW_reviewNotice",
|
|
4526
|
+
"reviewSubmit": "HsI4mW_reviewSubmit",
|
|
2852
4527
|
"root": "HsI4mW_root",
|
|
2853
4528
|
"select": "HsI4mW_select",
|
|
2854
4529
|
"sign": "HsI4mW_sign",
|
|
@@ -2856,7 +4531,9 @@ window.__ModuleLoader__.load({
|
|
|
2856
4531
|
"tool": "HsI4mW_tool",
|
|
2857
4532
|
"toolbar": "HsI4mW_toolbar",
|
|
2858
4533
|
"tools": "HsI4mW_tools",
|
|
2859
|
-
"totals": "HsI4mW_totals"
|
|
4534
|
+
"totals": "HsI4mW_totals",
|
|
4535
|
+
"treePane": "HsI4mW_treePane",
|
|
4536
|
+
"treeToggle": "HsI4mW_treeToggle"
|
|
2860
4537
|
};
|
|
2861
4538
|
//#endregion
|
|
2862
4539
|
//#region lib/types/client/DiffFile.js
|
|
@@ -2903,9 +4580,12 @@ window.__ModuleLoader__.load({
|
|
|
2903
4580
|
if (highlighted === void 0) return void 0;
|
|
2904
4581
|
return new Map(numbered.map((line, index) => [line.no, highlighted[index] ?? []]));
|
|
2905
4582
|
}
|
|
2906
|
-
function Code({ text, spans }) {
|
|
4583
|
+
function Code({ text, spans, old, next }) {
|
|
2907
4584
|
return (0, react_jsx_runtime.jsx)("span", {
|
|
2908
4585
|
className: ChangesTab_module_css_default.text,
|
|
4586
|
+
"data-review-code": "",
|
|
4587
|
+
"data-old-line": old ?? void 0,
|
|
4588
|
+
"data-new-line": next ?? void 0,
|
|
2909
4589
|
"data-diff-code": spans === void 0 ? void 0 : "",
|
|
2910
4590
|
children: spans === void 0 ? text : spans.map((span, index) => (0, react_jsx_runtime.jsx)("span", {
|
|
2911
4591
|
style: span.style,
|
|
@@ -2913,28 +4593,87 @@ window.__ModuleLoader__.load({
|
|
|
2913
4593
|
}, index))
|
|
2914
4594
|
});
|
|
2915
4595
|
}
|
|
2916
|
-
function Cell({ cell, spans }) {
|
|
2917
|
-
if (cell === null) return (0, react_jsx_runtime.jsx)("span", { className: clsx(ChangesTab_module_css_default.cell, ChangesTab_module_css_default.empty) });
|
|
2918
|
-
return (0, react_jsx_runtime.jsxs)("span", {
|
|
2919
|
-
className: clsx(ChangesTab_module_css_default.cell, ChangesTab_module_css_default[cell.kind]),
|
|
2920
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
2921
|
-
className: ChangesTab_module_css_default.number,
|
|
2922
|
-
children: cell.no
|
|
2923
|
-
}), (0, react_jsx_runtime.jsx)(Code, {
|
|
2924
|
-
text: cell.text,
|
|
2925
|
-
spans: spans?.get(cell.no)
|
|
2926
|
-
})]
|
|
2927
|
-
});
|
|
2928
|
-
}
|
|
2929
4596
|
/** Whether a side-by-side row repeats an unchanged line or shows a change. */
|
|
2930
4597
|
function pairKind(pair) {
|
|
2931
4598
|
return pair.left !== null && pair.left.kind === "context" ? "context" : "change";
|
|
2932
4599
|
}
|
|
2933
4600
|
/** The hunks of one file with their collapsed and expanded unchanged lines. */
|
|
2934
|
-
function Lines({ file, text, open, onExpand, split, wrap, t }) {
|
|
4601
|
+
function Lines({ file, text, open, onExpand, split, wrap, review, visible, comments, t }) {
|
|
2935
4602
|
const lines = typeof text === "object" ? text : void 0;
|
|
2936
4603
|
const columns = split && file.additions > 0 && file.deletions > 0;
|
|
4604
|
+
const singleSide = file.status === "added" ? "R" : file.status === "deleted" ? "L" : null;
|
|
4605
|
+
let maximum = Math.max(1, lines?.length ?? 0, (lines?.length ?? 0) + file.deletions - file.additions);
|
|
4606
|
+
for (const hunk of file.hunks) maximum = Math.max(maximum, hunk.oldStart + hunk.oldLines - 1, hunk.newStart + hunk.newLines - 1);
|
|
4607
|
+
const style = { "--forge-number-width": `calc(${Math.max(2, String(maximum).length)}ch + 12px)` };
|
|
2937
4608
|
const highlighter = (0, _deepseek_ai_dsh_client_ui_primitives.useCodeHighlighter)((0, _deepseek_ai_dsh_client_ui_primitives.languageForPath)(file.path));
|
|
4609
|
+
const [selection, setSelection] = (0, react.useState)(null);
|
|
4610
|
+
const root = (0, react.useRef)(null);
|
|
4611
|
+
const origin = (0, react.useRef)(null);
|
|
4612
|
+
const dragging = (0, react.useRef)(null);
|
|
4613
|
+
const [selecting, setSelecting] = (0, react.useState)(false);
|
|
4614
|
+
const [editing, setEditing] = (0, react.useState)(false);
|
|
4615
|
+
const [nativeSide, setNativeSide] = (0, react.useState)(null);
|
|
4616
|
+
const nativeSelection = (0, react.useCallback)(() => {
|
|
4617
|
+
if (editing || nativeSide === null || root.current === null || review === void 0) return;
|
|
4618
|
+
const selected = readCodeSelection(root.current, nativeSide);
|
|
4619
|
+
if (selected === void 0) {
|
|
4620
|
+
setSelection(null);
|
|
4621
|
+
setNativeSide(null);
|
|
4622
|
+
return;
|
|
4623
|
+
}
|
|
4624
|
+
const comment = selectReviewLines(file, selected.side, selected.from, selected.to);
|
|
4625
|
+
setSelection((previous) => comment === void 0 ? null : previous?.comment.side === comment.side && previous.comment.startLine === comment.startLine && previous.comment.endLine === comment.endLine ? previous : {
|
|
4626
|
+
source: review.source,
|
|
4627
|
+
comment
|
|
4628
|
+
});
|
|
4629
|
+
}, [
|
|
4630
|
+
editing,
|
|
4631
|
+
nativeSide,
|
|
4632
|
+
review,
|
|
4633
|
+
file
|
|
4634
|
+
]);
|
|
4635
|
+
(0, react.useEffect)(() => {
|
|
4636
|
+
if (nativeSide === null || editing) return;
|
|
4637
|
+
const changed = () => {
|
|
4638
|
+
if (dragging.current === null) nativeSelection();
|
|
4639
|
+
};
|
|
4640
|
+
document.addEventListener("selectionchange", changed);
|
|
4641
|
+
return () => {
|
|
4642
|
+
document.removeEventListener("selectionchange", changed);
|
|
4643
|
+
};
|
|
4644
|
+
}, [
|
|
4645
|
+
nativeSide,
|
|
4646
|
+
editing,
|
|
4647
|
+
nativeSelection
|
|
4648
|
+
]);
|
|
4649
|
+
(0, react.useEffect)(() => {
|
|
4650
|
+
if (nativeSide === null) return;
|
|
4651
|
+
const copy = (event) => {
|
|
4652
|
+
if (root.current === null || event.clipboardData === null || event.target instanceof Element && event.target.closest("input, textarea, [contenteditable=\"true\"]") !== null) return;
|
|
4653
|
+
const selected = readCodeSelection(root.current, nativeSide);
|
|
4654
|
+
if (selected === void 0) return;
|
|
4655
|
+
event.preventDefault();
|
|
4656
|
+
event.clipboardData.setData("text/plain", selected.text);
|
|
4657
|
+
};
|
|
4658
|
+
document.addEventListener("copy", copy);
|
|
4659
|
+
return () => {
|
|
4660
|
+
document.removeEventListener("copy", copy);
|
|
4661
|
+
};
|
|
4662
|
+
}, [nativeSide]);
|
|
4663
|
+
(0, react.useEffect)(() => {
|
|
4664
|
+
if (!selecting) return;
|
|
4665
|
+
const finish = () => {
|
|
4666
|
+
if (dragging.current === "text") nativeSelection();
|
|
4667
|
+
dragging.current = null;
|
|
4668
|
+
setSelecting(false);
|
|
4669
|
+
};
|
|
4670
|
+
window.addEventListener("pointerup", finish);
|
|
4671
|
+
window.addEventListener("pointercancel", finish);
|
|
4672
|
+
return () => {
|
|
4673
|
+
window.removeEventListener("pointerup", finish);
|
|
4674
|
+
window.removeEventListener("pointercancel", finish);
|
|
4675
|
+
};
|
|
4676
|
+
}, [selecting, nativeSelection]);
|
|
2938
4677
|
const prepared = (0, react.useMemo)(() => segmentsOf(file, lines, open).map((segment) => segment.kind === "gap" ? segment : {
|
|
2939
4678
|
...segment,
|
|
2940
4679
|
old: sideSpans(segment.rows, "old", highlighter),
|
|
@@ -2945,75 +4684,230 @@ window.__ModuleLoader__.load({
|
|
|
2945
4684
|
open,
|
|
2946
4685
|
highlighter
|
|
2947
4686
|
]);
|
|
4687
|
+
const choose = (side, line, extend) => {
|
|
4688
|
+
if (review === void 0 || editing) return;
|
|
4689
|
+
const comment = selectReviewLines(file, side, extend && origin.current?.side === side ? origin.current.line : line, line);
|
|
4690
|
+
if (comment === void 0) return;
|
|
4691
|
+
if (!extend || origin.current?.side !== side) origin.current = {
|
|
4692
|
+
side,
|
|
4693
|
+
line
|
|
4694
|
+
};
|
|
4695
|
+
setSelection({
|
|
4696
|
+
source: review.source,
|
|
4697
|
+
comment
|
|
4698
|
+
});
|
|
4699
|
+
};
|
|
4700
|
+
const selected = (side, line) => line !== null && selection !== null && selection.comment.side === side && line >= selection.comment.startLine && line <= selection.comment.endLine;
|
|
4701
|
+
const number = (side, line) => {
|
|
4702
|
+
if (line === null || review === void 0 || !file.hunks.some((hunk) => {
|
|
4703
|
+
const start = side === "L" ? hunk.oldStart : hunk.newStart;
|
|
4704
|
+
return line >= start && line < start + (side === "L" ? hunk.oldLines : hunk.newLines);
|
|
4705
|
+
})) return (0, react_jsx_runtime.jsx)("span", {
|
|
4706
|
+
className: ChangesTab_module_css_default.number,
|
|
4707
|
+
children: line ?? ""
|
|
4708
|
+
});
|
|
4709
|
+
return (0, react_jsx_runtime.jsxs)("span", {
|
|
4710
|
+
className: clsx(ChangesTab_module_css_default.number, ReviewComposer_module_css_default.gutter),
|
|
4711
|
+
children: [(0, react_jsx_runtime.jsx)("button", {
|
|
4712
|
+
type: "button",
|
|
4713
|
+
className: ReviewComposer_module_css_default.line,
|
|
4714
|
+
"aria-label": t("review.selectLine", { line: `${side}${line}` }),
|
|
4715
|
+
"aria-pressed": selected(side, line),
|
|
4716
|
+
onPointerDown: (event) => {
|
|
4717
|
+
if (event.button !== 0 || editing) return;
|
|
4718
|
+
event.preventDefault();
|
|
4719
|
+
window.getSelection()?.removeAllRanges();
|
|
4720
|
+
setNativeSide(null);
|
|
4721
|
+
dragging.current = "gutter";
|
|
4722
|
+
setSelecting(true);
|
|
4723
|
+
choose(side, line, event.shiftKey);
|
|
4724
|
+
},
|
|
4725
|
+
onPointerEnter: (event) => {
|
|
4726
|
+
if (dragging.current === "gutter" && origin.current?.side === side && event.buttons === 1) choose(side, line, true);
|
|
4727
|
+
},
|
|
4728
|
+
onClick: (event) => {
|
|
4729
|
+
if (event.detail !== 0) return;
|
|
4730
|
+
window.getSelection()?.removeAllRanges();
|
|
4731
|
+
setNativeSide(null);
|
|
4732
|
+
choose(side, line, event.shiftKey);
|
|
4733
|
+
},
|
|
4734
|
+
children: line
|
|
4735
|
+
}), !selecting && !editing && selection?.comment.side === side && selection.comment.endLine === line && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
4736
|
+
label: t("review.addComment"),
|
|
4737
|
+
portal: true,
|
|
4738
|
+
children: (0, react_jsx_runtime.jsx)("button", {
|
|
4739
|
+
type: "button",
|
|
4740
|
+
className: ReviewComposer_module_css_default.add,
|
|
4741
|
+
"aria-label": t("review.addComment"),
|
|
4742
|
+
onPointerDown: (event) => {
|
|
4743
|
+
event.preventDefault();
|
|
4744
|
+
},
|
|
4745
|
+
onClick: () => {
|
|
4746
|
+
setEditing(true);
|
|
4747
|
+
},
|
|
4748
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 })
|
|
4749
|
+
})
|
|
4750
|
+
})]
|
|
4751
|
+
});
|
|
4752
|
+
};
|
|
4753
|
+
const cell = (value, spans, side) => value === null ? (0, react_jsx_runtime.jsx)("span", {
|
|
4754
|
+
className: clsx(ChangesTab_module_css_default.cell, ChangesTab_module_css_default.empty),
|
|
4755
|
+
"data-diff-side": side
|
|
4756
|
+
}) : (0, react_jsx_runtime.jsxs)("span", {
|
|
4757
|
+
className: clsx(ChangesTab_module_css_default.cell, ChangesTab_module_css_default[value.kind], selected(side, value.no) && (editing || nativeSide === null) && ReviewComposer_module_css_default.selected),
|
|
4758
|
+
"data-diff-side": side,
|
|
4759
|
+
children: [number(side, value.no), (0, react_jsx_runtime.jsx)(Code, {
|
|
4760
|
+
text: value.text,
|
|
4761
|
+
spans: spans?.get(value.no),
|
|
4762
|
+
old: side === "L" ? value.no : null,
|
|
4763
|
+
next: side === "R" ? value.no : null
|
|
4764
|
+
})]
|
|
4765
|
+
});
|
|
4766
|
+
const rows = [];
|
|
4767
|
+
let inserted = false;
|
|
4768
|
+
const editor = review === void 0 || selection === null || !editing ? null : (0, react_jsx_runtime.jsx)(ReviewComposer, {
|
|
4769
|
+
selection,
|
|
4770
|
+
visible,
|
|
4771
|
+
split: columns,
|
|
4772
|
+
actions: review,
|
|
4773
|
+
close: () => {
|
|
4774
|
+
const native = window.getSelection();
|
|
4775
|
+
if (root.current?.contains(native?.anchorNode ?? null) === true) native?.removeAllRanges();
|
|
4776
|
+
setSelection(null);
|
|
4777
|
+
setEditing(false);
|
|
4778
|
+
setNativeSide(null);
|
|
4779
|
+
origin.current = null;
|
|
4780
|
+
},
|
|
4781
|
+
t
|
|
4782
|
+
}, "comment");
|
|
4783
|
+
const remaining = new Set(comments.threads);
|
|
4784
|
+
const appendComments = (old, next) => {
|
|
4785
|
+
if (review === void 0) return;
|
|
4786
|
+
for (const thread of remaining) {
|
|
4787
|
+
const comment = thread.selection.comment;
|
|
4788
|
+
if ((comment.side === "L" ? old : next) !== comment.endLine || !reviewMatches(thread.selection, review.source, file)) continue;
|
|
4789
|
+
rows.push((0, react_jsx_runtime.jsx)(ReviewThread, {
|
|
4790
|
+
thread,
|
|
4791
|
+
actions: review,
|
|
4792
|
+
locked: comments.locked,
|
|
4793
|
+
outdated: false,
|
|
4794
|
+
split: columns,
|
|
4795
|
+
t
|
|
4796
|
+
}, `record-${thread.key}`));
|
|
4797
|
+
remaining.delete(thread);
|
|
4798
|
+
}
|
|
4799
|
+
};
|
|
4800
|
+
const endsAt = (old, next) => selection !== null && (selection.comment.side === "L" ? old : next) === selection.comment.endLine;
|
|
4801
|
+
for (const [at, segment] of prepared.entries()) if (segment.kind === "gap") rows.push((0, react_jsx_runtime.jsxs)("button", {
|
|
4802
|
+
type: "button",
|
|
4803
|
+
className: ChangesTab_module_css_default.gap,
|
|
4804
|
+
disabled: text === "loading",
|
|
4805
|
+
"data-forge-diff-gap": segment.index,
|
|
4806
|
+
onClick: () => {
|
|
4807
|
+
onExpand(segment.index);
|
|
4808
|
+
},
|
|
4809
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronsUpDownOutlineRegular, { size: 12 }), segment.count === null ? t("diff.unchangedRest") : t("diff.unchanged", { count: segment.count.toLocaleString("en-US") })]
|
|
4810
|
+
}, `gap-${segment.index}`));
|
|
4811
|
+
else if (columns) for (const [index, pair] of splitRows(segment.rows).entries()) {
|
|
4812
|
+
rows.push((0, react_jsx_runtime.jsxs)("div", {
|
|
4813
|
+
className: ChangesTab_module_css_default.pair,
|
|
4814
|
+
"data-diff-pair": pairKind(pair),
|
|
4815
|
+
children: [cell(pair.left, segment.old, "L"), cell(pair.right, segment.new, "R")]
|
|
4816
|
+
}, `${at}-${index}`));
|
|
4817
|
+
if (!inserted && endsAt(pair.left?.no ?? null, pair.right?.no ?? null)) {
|
|
4818
|
+
rows.push(editor);
|
|
4819
|
+
inserted = true;
|
|
4820
|
+
}
|
|
4821
|
+
appendComments(pair.left?.no ?? null, pair.right?.no ?? null);
|
|
4822
|
+
}
|
|
4823
|
+
else for (const [index, row] of segment.rows.entries()) {
|
|
4824
|
+
rows.push((0, react_jsx_runtime.jsxs)("div", {
|
|
4825
|
+
className: clsx(ChangesTab_module_css_default.line, ChangesTab_module_css_default[row.kind], (selected("L", row.old) || selected("R", row.new)) && (editing || nativeSide === null) && ReviewComposer_module_css_default.selected),
|
|
4826
|
+
"data-diff-line": row.kind,
|
|
4827
|
+
children: [
|
|
4828
|
+
singleSide !== "R" && number("L", row.old),
|
|
4829
|
+
singleSide !== "L" && number("R", row.new),
|
|
4830
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
4831
|
+
className: ChangesTab_module_css_default.sign,
|
|
4832
|
+
children: SIGN[row.kind]
|
|
4833
|
+
}),
|
|
4834
|
+
(0, react_jsx_runtime.jsx)(Code, {
|
|
4835
|
+
text: row.text,
|
|
4836
|
+
old: row.old,
|
|
4837
|
+
next: row.new,
|
|
4838
|
+
spans: row.kind === "del" ? segment.old?.get(row.old) : segment.new?.get(row.new)
|
|
4839
|
+
})
|
|
4840
|
+
]
|
|
4841
|
+
}, `${at}-${index}`));
|
|
4842
|
+
if (!inserted && endsAt(row.old, row.new)) {
|
|
4843
|
+
rows.push(editor);
|
|
4844
|
+
inserted = true;
|
|
4845
|
+
}
|
|
4846
|
+
appendComments(row.old, row.new);
|
|
4847
|
+
}
|
|
4848
|
+
if (review !== void 0) for (const thread of remaining) rows.push((0, react_jsx_runtime.jsx)(ReviewThread, {
|
|
4849
|
+
thread,
|
|
4850
|
+
actions: review,
|
|
4851
|
+
locked: comments.locked,
|
|
4852
|
+
outdated: true,
|
|
4853
|
+
split: false,
|
|
4854
|
+
t
|
|
4855
|
+
}, `record-${thread.key}`));
|
|
4856
|
+
if (!inserted) rows.push(editor);
|
|
2948
4857
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
4858
|
+
ref: root,
|
|
2949
4859
|
className: ChangesTab_module_css_default.code,
|
|
4860
|
+
style,
|
|
4861
|
+
"data-single-side": singleSide ?? void 0,
|
|
2950
4862
|
"data-split": columns ? "" : void 0,
|
|
2951
4863
|
"data-wrap": wrap ? "" : void 0,
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
cell: pair.left,
|
|
2968
|
-
spans: segment.old
|
|
2969
|
-
}), (0, react_jsx_runtime.jsx)(Cell, {
|
|
2970
|
-
cell: pair.right,
|
|
2971
|
-
spans: segment.new
|
|
2972
|
-
})]
|
|
2973
|
-
}, `${at}-${index}`));
|
|
2974
|
-
return segment.rows.map((row, index) => (0, react_jsx_runtime.jsxs)("div", {
|
|
2975
|
-
className: clsx(ChangesTab_module_css_default.line, ChangesTab_module_css_default[row.kind]),
|
|
2976
|
-
"data-diff-line": row.kind,
|
|
2977
|
-
children: [
|
|
2978
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
2979
|
-
className: ChangesTab_module_css_default.number,
|
|
2980
|
-
children: row.old ?? ""
|
|
2981
|
-
}),
|
|
2982
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
2983
|
-
className: ChangesTab_module_css_default.number,
|
|
2984
|
-
children: row.new ?? ""
|
|
2985
|
-
}),
|
|
2986
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
2987
|
-
className: ChangesTab_module_css_default.sign,
|
|
2988
|
-
children: SIGN[row.kind]
|
|
2989
|
-
}),
|
|
2990
|
-
(0, react_jsx_runtime.jsx)(Code, {
|
|
2991
|
-
text: row.text,
|
|
2992
|
-
spans: row.kind === "del" ? segment.old?.get(row.old) : segment.new?.get(row.new)
|
|
2993
|
-
})
|
|
2994
|
-
]
|
|
2995
|
-
}, `${at}-${index}`));
|
|
2996
|
-
})
|
|
4864
|
+
"data-native-side": nativeSide ?? void 0,
|
|
4865
|
+
onPointerDownCapture: (event) => {
|
|
4866
|
+
if (event.button !== 0 || !(event.target instanceof Node)) return;
|
|
4867
|
+
const side = codeSideAt(event.currentTarget, event.target);
|
|
4868
|
+
if (side === void 0) return;
|
|
4869
|
+
if (!event.shiftKey || nativeSide !== side) window.getSelection()?.removeAllRanges();
|
|
4870
|
+
if (!editing) dragging.current = "text";
|
|
4871
|
+
(0, react_dom.flushSync)(() => {
|
|
4872
|
+
setNativeSide(side);
|
|
4873
|
+
if (editing) return;
|
|
4874
|
+
setSelection(null);
|
|
4875
|
+
setSelecting(true);
|
|
4876
|
+
});
|
|
4877
|
+
},
|
|
4878
|
+
children: rows
|
|
2997
4879
|
});
|
|
2998
4880
|
}
|
|
2999
4881
|
function Body(props) {
|
|
3000
|
-
const { file, large, revealed, onReveal, t } = props;
|
|
3001
|
-
|
|
4882
|
+
const { file, large, revealed, onReveal, review, t } = props;
|
|
4883
|
+
const comments = useFileReview(review, file.path);
|
|
4884
|
+
const records = review === void 0 ? null : comments.threads.map((thread) => (0, react_jsx_runtime.jsx)(ReviewThread, {
|
|
4885
|
+
thread,
|
|
4886
|
+
actions: review,
|
|
4887
|
+
locked: comments.locked,
|
|
4888
|
+
outdated: !reviewMatches(thread.selection, review.source, file),
|
|
4889
|
+
split: false,
|
|
4890
|
+
t
|
|
4891
|
+
}, thread.key));
|
|
4892
|
+
if (file.binary) return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("p", {
|
|
3002
4893
|
className: ChangesTab_module_css_default.fileNote,
|
|
3003
4894
|
children: t("diff.binary")
|
|
3004
|
-
});
|
|
3005
|
-
if (file.oversized) return (0, react_jsx_runtime.jsx)("p", {
|
|
4895
|
+
}), records] });
|
|
4896
|
+
if (file.oversized) return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("p", {
|
|
3006
4897
|
className: ChangesTab_module_css_default.fileNote,
|
|
3007
4898
|
children: t("diff.fileTooLarge")
|
|
3008
|
-
});
|
|
3009
|
-
if (file.hunks.length === 0) return
|
|
3010
|
-
if (large && !revealed) return (0, react_jsx_runtime.jsxs)("button", {
|
|
4899
|
+
}), records] });
|
|
4900
|
+
if (file.hunks.length === 0) return records;
|
|
4901
|
+
if (large && !revealed) return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("button", {
|
|
3011
4902
|
type: "button",
|
|
3012
4903
|
className: ChangesTab_module_css_default.gap,
|
|
3013
4904
|
onClick: onReveal,
|
|
3014
4905
|
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronsUpDownOutlineRegular, { size: 12 }), t("diff.largeCollapsed", { count: (file.additions + file.deletions).toLocaleString("en-US") })]
|
|
4906
|
+
}), records] });
|
|
4907
|
+
return (0, react_jsx_runtime.jsx)(Lines, {
|
|
4908
|
+
...props,
|
|
4909
|
+
comments
|
|
3015
4910
|
});
|
|
3016
|
-
return (0, react_jsx_runtime.jsx)(Lines, { ...props });
|
|
3017
4911
|
}
|
|
3018
4912
|
/** File actions live only while their owning tab is visible. */
|
|
3019
4913
|
function FileMenu({ name, actions, t }) {
|
|
@@ -3053,7 +4947,7 @@ window.__ModuleLoader__.load({
|
|
|
3053
4947
|
* @returns the file section.
|
|
3054
4948
|
*/
|
|
3055
4949
|
function DiffFile(props) {
|
|
3056
|
-
const { file, expanded, onToggle, badge, tooltip, actions,
|
|
4950
|
+
const { file, expanded, onToggle, badge, tooltip, actions, sectionRef, t } = props;
|
|
3057
4951
|
const name = file.path.slice(file.path.lastIndexOf("/") + 1);
|
|
3058
4952
|
return (0, react_jsx_runtime.jsxs)("section", {
|
|
3059
4953
|
ref: sectionRef,
|
|
@@ -3079,11 +4973,8 @@ window.__ModuleLoader__.load({
|
|
|
3079
4973
|
size: 16,
|
|
3080
4974
|
className: ChangesTab_module_css_default.fileIcon
|
|
3081
4975
|
}),
|
|
3082
|
-
(0, react_jsx_runtime.jsx)("
|
|
3083
|
-
type: "button",
|
|
4976
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
3084
4977
|
className: ChangesTab_module_css_default.filePath,
|
|
3085
|
-
"aria-label": `${t("diff.copyPath")}: ${file.path}`,
|
|
3086
|
-
onClick: onCopyPath,
|
|
3087
4978
|
children: (0, react_jsx_runtime.jsx)(FileLabel, {
|
|
3088
4979
|
path: file.path,
|
|
3089
4980
|
tooltip
|
|
@@ -3111,8 +5002,366 @@ window.__ModuleLoader__.load({
|
|
|
3111
5002
|
});
|
|
3112
5003
|
}
|
|
3113
5004
|
//#endregion
|
|
5005
|
+
//#region lib/types/client/file-tree.js
|
|
5006
|
+
function childrenOf(directory) {
|
|
5007
|
+
const directories = [...directory.directories.values()].map((child) => {
|
|
5008
|
+
let leaf = child;
|
|
5009
|
+
let name = child.name;
|
|
5010
|
+
while (leaf.files.length === 0 && leaf.directories.size === 1) for (const next of leaf.directories.values()) {
|
|
5011
|
+
name += `/${next.name}`;
|
|
5012
|
+
leaf = next;
|
|
5013
|
+
}
|
|
5014
|
+
return {
|
|
5015
|
+
kind: "directory",
|
|
5016
|
+
path: leaf.path,
|
|
5017
|
+
name,
|
|
5018
|
+
children: childrenOf(leaf)
|
|
5019
|
+
};
|
|
5020
|
+
});
|
|
5021
|
+
const files = directory.files.map((file) => ({
|
|
5022
|
+
kind: "file",
|
|
5023
|
+
path: file.path,
|
|
5024
|
+
name: file.path.slice(file.path.lastIndexOf("/") + 1),
|
|
5025
|
+
file
|
|
5026
|
+
}));
|
|
5027
|
+
const ordered = (nodes) => nodes.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
5028
|
+
return [...ordered(directories), ...ordered(files)];
|
|
5029
|
+
}
|
|
5030
|
+
/**
|
|
5031
|
+
* Build a directory-first tree, compacting directories with a single directory child.
|
|
5032
|
+
* @param files - changed files; Git paths use forward slashes, including on Windows.
|
|
5033
|
+
* @returns the root's children in stable name order.
|
|
5034
|
+
*/
|
|
5035
|
+
function changedFileTree(files) {
|
|
5036
|
+
const root = {
|
|
5037
|
+
path: "",
|
|
5038
|
+
name: "",
|
|
5039
|
+
directories: /* @__PURE__ */ new Map(),
|
|
5040
|
+
files: []
|
|
5041
|
+
};
|
|
5042
|
+
for (const file of files) {
|
|
5043
|
+
let directory = root;
|
|
5044
|
+
for (const name of file.path.split("/").slice(0, -1)) {
|
|
5045
|
+
let child = directory.directories.get(name);
|
|
5046
|
+
if (child === void 0) {
|
|
5047
|
+
child = {
|
|
5048
|
+
path: directory.path === "" ? name : `${directory.path}/${name}`,
|
|
5049
|
+
name,
|
|
5050
|
+
directories: /* @__PURE__ */ new Map(),
|
|
5051
|
+
files: []
|
|
5052
|
+
};
|
|
5053
|
+
directory.directories.set(name, child);
|
|
5054
|
+
}
|
|
5055
|
+
directory = child;
|
|
5056
|
+
}
|
|
5057
|
+
directory.files.push(file);
|
|
5058
|
+
}
|
|
5059
|
+
return childrenOf(root);
|
|
5060
|
+
}
|
|
5061
|
+
/**
|
|
5062
|
+
* Keep matching files and their ancestors without changing directory identities.
|
|
5063
|
+
* @param nodes - the complete compacted tree.
|
|
5064
|
+
* @param query - case-insensitive text matched against current and previous paths.
|
|
5065
|
+
* @returns matching branches, or the original tree for an empty query.
|
|
5066
|
+
*/
|
|
5067
|
+
function filterFileTree(nodes, query) {
|
|
5068
|
+
const needle = query.trim().toLowerCase();
|
|
5069
|
+
if (needle === "") return nodes;
|
|
5070
|
+
return nodes.flatMap((node) => {
|
|
5071
|
+
if (node.kind === "file") return [node.path, node.file.previousPath ?? ""].some((path) => path.toLowerCase().includes(needle)) ? [node] : [];
|
|
5072
|
+
const children = filterFileTree(node.children, needle);
|
|
5073
|
+
return children.length === 0 ? [] : [{
|
|
5074
|
+
...node,
|
|
5075
|
+
children
|
|
5076
|
+
}];
|
|
5077
|
+
});
|
|
5078
|
+
}
|
|
5079
|
+
//#endregion
|
|
5080
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/ChangedFiles.module.css.mjs
|
|
5081
|
+
const css$7 = ".Zu8K8G_root{box-sizing:border-box;width:100%;min-width:0;min-height:0;color:var(--dsw-alias-label-primary);flex-direction:column;font-size:12px;display:flex}.Zu8K8G_search{padding:8px}.Zu8K8G_rows{min-height:0;padding:0 4px 6px;overflow:auto}.Zu8K8G_row{box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:100%;min-width:0;min-height:30px;color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:4px 6px;display:flex}.Zu8K8G_row svg{flex:none}.Zu8K8G_name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.Zu8K8G_selected{background:var(--dsw-alias-interactive-bg-hover)}.Zu8K8G_chevron{flex:0 0 12px;display:inline-flex}.Zu8K8G_collapsed{transform:rotate(-90deg)}.Zu8K8G_empty{color:var(--dsw-alias-label-secondary);padding:12px 8px}.Zu8K8G_menu{width:min(360px,100vw - 24px)}.Zu8K8G_trigger{border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-primary);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0 8px;display:inline-flex}.Zu8K8G_trigger:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}@media (hover:hover){.Zu8K8G_row:hover,.Zu8K8G_trigger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}@media (pointer:coarse){.Zu8K8G_row{min-height:44px}.Zu8K8G_search input{font-size:16px}}.Zu8K8G_searchInput{box-sizing:border-box;width:100%;max-width:100%}.Zu8K8G_searchInput input::placeholder{color:var(--dsw-alias-label-secondary)}";
|
|
5082
|
+
const tagId$7 = "@deepseek-ai/dsh-experimental-client-ui-forge/ChangedFiles.module.css";
|
|
5083
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
5084
|
+
const tag = document.createElement("style");
|
|
5085
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-forge";
|
|
5086
|
+
tag.dataset.pluginCss = tagId$7;
|
|
5087
|
+
tag.textContent = css$7;
|
|
5088
|
+
document.head.appendChild(tag);
|
|
5089
|
+
}
|
|
5090
|
+
var ChangedFiles_module_css_default = {
|
|
5091
|
+
"chevron": "Zu8K8G_chevron",
|
|
5092
|
+
"collapsed": "Zu8K8G_collapsed",
|
|
5093
|
+
"empty": "Zu8K8G_empty",
|
|
5094
|
+
"menu": "Zu8K8G_menu",
|
|
5095
|
+
"name": "Zu8K8G_name",
|
|
5096
|
+
"root": "Zu8K8G_root",
|
|
5097
|
+
"row": "Zu8K8G_row",
|
|
5098
|
+
"rows": "Zu8K8G_rows",
|
|
5099
|
+
"search": "Zu8K8G_search",
|
|
5100
|
+
"searchInput": "Zu8K8G_searchInput",
|
|
5101
|
+
"selected": "Zu8K8G_selected",
|
|
5102
|
+
"trigger": "Zu8K8G_trigger"
|
|
5103
|
+
};
|
|
5104
|
+
//#endregion
|
|
5105
|
+
//#region lib/types/client/ChangedFiles.js
|
|
5106
|
+
/** Changed-file navigation shared by the toolbar menu and wide diff pane, with a disclosure column on every row. */
|
|
5107
|
+
function Rows({ nodes, depth, props }) {
|
|
5108
|
+
const { state, toggle, jump, menu, t } = props;
|
|
5109
|
+
return nodes.map((node) => {
|
|
5110
|
+
const directory = node.kind === "directory";
|
|
5111
|
+
const expanded = directory && (state.query.trim() !== "" || state.collapsed[node.path] !== true);
|
|
5112
|
+
const label = node.kind === "file" && node.file.previousPath !== null ? t("diff.renamedPath", {
|
|
5113
|
+
from: node.file.previousPath,
|
|
5114
|
+
path: node.path
|
|
5115
|
+
}) : node.path;
|
|
5116
|
+
return (0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
5117
|
+
label,
|
|
5118
|
+
portal: true,
|
|
5119
|
+
side: "left",
|
|
5120
|
+
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
5121
|
+
type: "button",
|
|
5122
|
+
role: menu ? "menuitem" : void 0,
|
|
5123
|
+
className: clsx(ChangedFiles_module_css_default.row, !directory && state.selected === node.path && ChangedFiles_module_css_default.selected),
|
|
5124
|
+
style: { paddingInlineStart: `${8 + depth * 14}px` },
|
|
5125
|
+
"aria-label": label,
|
|
5126
|
+
"aria-expanded": directory ? expanded : void 0,
|
|
5127
|
+
"aria-current": !directory && state.selected === node.path ? "true" : void 0,
|
|
5128
|
+
onKeyDown: (event) => {
|
|
5129
|
+
if (!directory || !["ArrowLeft", "ArrowRight"].includes(event.key)) return;
|
|
5130
|
+
event.preventDefault();
|
|
5131
|
+
if (event.key === "ArrowRight" !== expanded) toggle(node.path);
|
|
5132
|
+
},
|
|
5133
|
+
onClick: (event) => {
|
|
5134
|
+
if (directory) {
|
|
5135
|
+
event.stopPropagation();
|
|
5136
|
+
toggle(node.path);
|
|
5137
|
+
} else jump(node.path);
|
|
5138
|
+
},
|
|
5139
|
+
children: [
|
|
5140
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
5141
|
+
className: ChangedFiles_module_css_default.chevron,
|
|
5142
|
+
"aria-hidden": "true",
|
|
5143
|
+
children: directory && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {
|
|
5144
|
+
size: 12,
|
|
5145
|
+
className: clsx(!expanded && ChangedFiles_module_css_default.collapsed)
|
|
5146
|
+
})
|
|
5147
|
+
}),
|
|
5148
|
+
directory ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderCloseRegular, { size: 14 }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.FileTypeIcon, {
|
|
5149
|
+
path: node.path,
|
|
5150
|
+
size: 14
|
|
5151
|
+
}),
|
|
5152
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
5153
|
+
className: ChangedFiles_module_css_default.name,
|
|
5154
|
+
children: node.name
|
|
5155
|
+
}),
|
|
5156
|
+
node.kind === "file" && (0, react_jsx_runtime.jsx)(Counts, {
|
|
5157
|
+
file: node.file,
|
|
5158
|
+
t
|
|
5159
|
+
})
|
|
5160
|
+
]
|
|
5161
|
+
})
|
|
5162
|
+
}), node.kind === "directory" && expanded && (0, react_jsx_runtime.jsx)(Rows, {
|
|
5163
|
+
nodes: node.children,
|
|
5164
|
+
depth: depth + 1,
|
|
5165
|
+
props
|
|
5166
|
+
})] }, node.path);
|
|
5167
|
+
});
|
|
5168
|
+
}
|
|
5169
|
+
/**
|
|
5170
|
+
* Render searchable directory navigation without reading file contents.
|
|
5171
|
+
* @param props - changed files, per-tab choices, navigation actions, and localized copy.
|
|
5172
|
+
* @returns the search field and matching branches.
|
|
5173
|
+
*/
|
|
5174
|
+
function ChangedFiles(props) {
|
|
5175
|
+
const tree = (0, react.useMemo)(() => changedFileTree(props.files), [props.files]);
|
|
5176
|
+
const nodes = (0, react.useMemo)(() => filterFileTree(tree, props.state.query), [tree, props.state.query]);
|
|
5177
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
5178
|
+
className: ChangedFiles_module_css_default.root,
|
|
5179
|
+
"data-forge-file-tree": "",
|
|
5180
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
5181
|
+
className: ChangedFiles_module_css_default.search,
|
|
5182
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
5183
|
+
className: clsx(ChangedFiles_module_css_default.searchInput),
|
|
5184
|
+
"aria-label": props.t("diff.filterFiles"),
|
|
5185
|
+
placeholder: props.t("diff.filterFiles"),
|
|
5186
|
+
value: props.state.query,
|
|
5187
|
+
onChange: (event) => {
|
|
5188
|
+
props.filter(event.target.value);
|
|
5189
|
+
},
|
|
5190
|
+
onKeyDown: (event) => {
|
|
5191
|
+
if ([
|
|
5192
|
+
"Home",
|
|
5193
|
+
"End",
|
|
5194
|
+
"ArrowLeft",
|
|
5195
|
+
"ArrowRight"
|
|
5196
|
+
].includes(event.key)) event.stopPropagation();
|
|
5197
|
+
}
|
|
5198
|
+
})
|
|
5199
|
+
}), (0, react_jsx_runtime.jsx)("div", {
|
|
5200
|
+
className: ChangedFiles_module_css_default.rows,
|
|
5201
|
+
children: nodes.length === 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
5202
|
+
className: ChangedFiles_module_css_default.empty,
|
|
5203
|
+
children: props.t("diff.noMatchingFiles")
|
|
5204
|
+
}) : (0, react_jsx_runtime.jsx)(Rows, {
|
|
5205
|
+
nodes,
|
|
5206
|
+
depth: 0,
|
|
5207
|
+
props
|
|
5208
|
+
})
|
|
5209
|
+
})]
|
|
5210
|
+
});
|
|
5211
|
+
}
|
|
5212
|
+
/**
|
|
5213
|
+
* Open directory navigation through the existing files toolbar entry.
|
|
5214
|
+
* @param props - navigator data and whether its owning tab is visible.
|
|
5215
|
+
* @returns the toolbar entry and its portalled menu.
|
|
5216
|
+
*/
|
|
5217
|
+
function ChangedFilesMenu({ visible, ...props }) {
|
|
5218
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
5219
|
+
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
5220
|
+
open: visible && open,
|
|
5221
|
+
portal: true,
|
|
5222
|
+
dense: true,
|
|
5223
|
+
align: "start",
|
|
5224
|
+
listClassName: ChangedFiles_module_css_default.menu,
|
|
5225
|
+
onClose: () => {
|
|
5226
|
+
setOpen(false);
|
|
5227
|
+
},
|
|
5228
|
+
anchor: (0, react_jsx_runtime.jsxs)("button", {
|
|
5229
|
+
type: "button",
|
|
5230
|
+
className: ChangedFiles_module_css_default.trigger,
|
|
5231
|
+
"aria-haspopup": "menu",
|
|
5232
|
+
"aria-expanded": visible && open,
|
|
5233
|
+
disabled: props.files.length === 0,
|
|
5234
|
+
onClick: () => {
|
|
5235
|
+
setOpen((value) => !value);
|
|
5236
|
+
},
|
|
5237
|
+
children: [props.t("diff.allFiles", { count: props.files.length }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 12 })]
|
|
5238
|
+
}),
|
|
5239
|
+
children: (0, react_jsx_runtime.jsx)(ChangedFiles, {
|
|
5240
|
+
...props,
|
|
5241
|
+
menu: true,
|
|
5242
|
+
jump: (path) => {
|
|
5243
|
+
setOpen(false);
|
|
5244
|
+
props.jump(path);
|
|
5245
|
+
}
|
|
5246
|
+
})
|
|
5247
|
+
});
|
|
5248
|
+
}
|
|
5249
|
+
//#endregion
|
|
5250
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/FileTreePane.module.css.mjs
|
|
5251
|
+
const css$6 = ".KHCsXq_pane{box-sizing:border-box;border-inline-start:.5px solid var(--dsw-alias-border-l3);flex:none;min-width:0;min-height:0;display:none;position:relative}.KHCsXq_pane[hidden]{display:none}.KHCsXq_pane[data-position=left]{border-inline-start:0;border-inline-end:.5px solid var(--dsw-alias-border-l3);order:-1}.KHCsXq_navigation{min-width:0;height:100%;overflow-y:auto}.KHCsXq_resize{z-index:2;cursor:col-resize;touch-action:none;user-select:none;width:8px;position:absolute;inset-block:0;inset-inline-start:-4px}.KHCsXq_resize:after{content:\"\";width:2px;position:absolute;inset-block:0;inset-inline-start:3px}.KHCsXq_pane[data-position=left] .KHCsXq_resize{inset-inline:auto -4px}.KHCsXq_resize:focus-visible:after{background:var(--dsw-alias-state-business-primary)}@media (hover:hover){.KHCsXq_resize:hover:after{background:var(--dsw-alias-state-business-primary)}}";
|
|
5252
|
+
const tagId$6 = "@deepseek-ai/dsh-experimental-client-ui-forge/FileTreePane.module.css";
|
|
5253
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
5254
|
+
const tag = document.createElement("style");
|
|
5255
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-experimental-client-ui-forge";
|
|
5256
|
+
tag.dataset.pluginCss = tagId$6;
|
|
5257
|
+
tag.textContent = css$6;
|
|
5258
|
+
document.head.appendChild(tag);
|
|
5259
|
+
}
|
|
5260
|
+
var FileTreePane_module_css_default = {
|
|
5261
|
+
"navigation": "KHCsXq_navigation",
|
|
5262
|
+
"pane": "KHCsXq_pane",
|
|
5263
|
+
"resize": "KHCsXq_resize"
|
|
5264
|
+
};
|
|
5265
|
+
//#endregion
|
|
5266
|
+
//#region lib/types/client/FileTreePane.js
|
|
5267
|
+
/** Resizable file navigation; width belongs to the mounted tab and survives hiding the pane. */
|
|
5268
|
+
const MIN_WIDTH = 200;
|
|
5269
|
+
const MAX_WIDTH = 600;
|
|
5270
|
+
const DIFF_MIN_WIDTH = 320;
|
|
5271
|
+
/**
|
|
5272
|
+
* Render a keyboard- and pointer-resizable tree beside the diff.
|
|
5273
|
+
* @param props - tree rows, pane position, and the toggle's controlled element id.
|
|
5274
|
+
* @returns the bounded pane and its resize separator.
|
|
5275
|
+
*/
|
|
5276
|
+
function FileTreePane({ position, id, ...props }) {
|
|
5277
|
+
const pane = (0, react.useRef)(null);
|
|
5278
|
+
const drag = (0, react.useRef)(null);
|
|
5279
|
+
const [width, setWidth] = (0, react.useState)(240);
|
|
5280
|
+
const [maximum, setMaximum] = (0, react.useState)(MAX_WIDTH);
|
|
5281
|
+
(0, react.useLayoutEffect)(() => {
|
|
5282
|
+
const parent = pane.current?.parentElement;
|
|
5283
|
+
if (parent === void 0 || parent === null) return;
|
|
5284
|
+
const measure = () => {
|
|
5285
|
+
const available = parent.clientWidth;
|
|
5286
|
+
if (available === 0) return;
|
|
5287
|
+
setMaximum(Math.max(MIN_WIDTH, Math.min(MAX_WIDTH, available - DIFF_MIN_WIDTH)));
|
|
5288
|
+
};
|
|
5289
|
+
measure();
|
|
5290
|
+
const observer = new ResizeObserver(measure);
|
|
5291
|
+
observer.observe(parent);
|
|
5292
|
+
return () => {
|
|
5293
|
+
observer.disconnect();
|
|
5294
|
+
};
|
|
5295
|
+
}, []);
|
|
5296
|
+
const shown = Math.min(width, maximum);
|
|
5297
|
+
const direction = position === "left" ? 1 : -1;
|
|
5298
|
+
const resize = (next) => {
|
|
5299
|
+
setWidth(Math.round(Math.max(MIN_WIDTH, Math.min(maximum, next))));
|
|
5300
|
+
};
|
|
5301
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
5302
|
+
ref: pane,
|
|
5303
|
+
className: clsx(FileTreePane_module_css_default.pane, ChangesTab_module_css_default.treePane),
|
|
5304
|
+
"data-position": position,
|
|
5305
|
+
hidden: position === "hidden",
|
|
5306
|
+
style: { width: shown },
|
|
5307
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
5308
|
+
className: FileTreePane_module_css_default.resize,
|
|
5309
|
+
role: "separator",
|
|
5310
|
+
tabIndex: 0,
|
|
5311
|
+
"aria-label": props.t("diff.resizeFileTree"),
|
|
5312
|
+
"aria-orientation": "vertical",
|
|
5313
|
+
"aria-controls": id,
|
|
5314
|
+
"aria-valuemin": MIN_WIDTH,
|
|
5315
|
+
"aria-valuemax": maximum,
|
|
5316
|
+
"aria-valuenow": shown,
|
|
5317
|
+
onPointerDown: (event) => {
|
|
5318
|
+
if (event.button !== 0) return;
|
|
5319
|
+
event.preventDefault();
|
|
5320
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
5321
|
+
drag.current = {
|
|
5322
|
+
pointer: event.pointerId,
|
|
5323
|
+
x: event.clientX,
|
|
5324
|
+
width: shown
|
|
5325
|
+
};
|
|
5326
|
+
},
|
|
5327
|
+
onPointerMove: (event) => {
|
|
5328
|
+
const active = drag.current;
|
|
5329
|
+
if (active?.pointer === event.pointerId) resize(active.width + direction * (event.clientX - active.x));
|
|
5330
|
+
},
|
|
5331
|
+
onPointerUp: (event) => {
|
|
5332
|
+
const active = drag.current;
|
|
5333
|
+
if (active?.pointer !== event.pointerId) return;
|
|
5334
|
+
resize(active.width + direction * (event.clientX - active.x));
|
|
5335
|
+
drag.current = null;
|
|
5336
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
5337
|
+
},
|
|
5338
|
+
onPointerCancel: () => {
|
|
5339
|
+
drag.current = null;
|
|
5340
|
+
},
|
|
5341
|
+
onLostPointerCapture: () => {
|
|
5342
|
+
drag.current = null;
|
|
5343
|
+
},
|
|
5344
|
+
onKeyDown: (event) => {
|
|
5345
|
+
if (![
|
|
5346
|
+
"ArrowLeft",
|
|
5347
|
+
"ArrowRight",
|
|
5348
|
+
"Home",
|
|
5349
|
+
"End"
|
|
5350
|
+
].includes(event.key)) return;
|
|
5351
|
+
event.preventDefault();
|
|
5352
|
+
resize(event.key === "Home" ? MIN_WIDTH : event.key === "End" ? maximum : shown + direction * (event.key === "ArrowRight" ? 20 : -20));
|
|
5353
|
+
}
|
|
5354
|
+
}), (0, react_jsx_runtime.jsx)("nav", {
|
|
5355
|
+
id,
|
|
5356
|
+
className: FileTreePane_module_css_default.navigation,
|
|
5357
|
+
"aria-label": props.t("diff.allFiles", { count: props.files.length }),
|
|
5358
|
+
children: (0, react_jsx_runtime.jsx)(ChangedFiles, { ...props })
|
|
5359
|
+
})]
|
|
5360
|
+
});
|
|
5361
|
+
}
|
|
5362
|
+
//#endregion
|
|
3114
5363
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/ForgeTab.module.css.mjs
|
|
3115
|
-
const css$5 = ".gpmbMW_root{--forge-fill:var(--dsw-static-neutral-50);box-sizing:border-box;height:100%;min-height:0;color:var(--dsw-alias-label-primary);font-size:var(--dsh-content-font-size-secondary,13px);flex-direction:column;gap:10px;padding:12px;line-height:20px;display:flex;overflow-y:auto}body[data-ds-dark-theme] .gpmbMW_root{--forge-fill:var(--dsw-static-neutral-850)}.gpmbMW_centered{box-sizing:border-box;height:100%;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.gpmbMW_disconnected{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:center;gap:8px;display:flex}.gpmbMW_checkout{border-radius:var(--dsw-radius-sm);background:var(--forge-fill);min-width:0;color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.gpmbMW_checkout:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.gpmbMW_checkout[data-missing],.gpmbMW_checkout[data-missing] .gpmbMW_checkoutBranch{color:var(--dsw-alias-state-warn-primary)}.gpmbMW_checkoutName{border-radius:var(--dsw-radius-sm);align-items:center;gap:8px;min-width:0;display:inline-flex}.gpmbMW_checkoutIcon{flex:none}.gpmbMW_checkoutBranch{min-width:0;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.gpmbMW_checkoutNote{flex:none;margin-left:auto}.gpmbMW_checkout .gpmbMW_checkoutCopy{width:24px;height:24px;margin:-3px -4px -3px 0}.gpmbMW_section{flex-direction:column;gap:8px;min-width:0;display:flex}.gpmbMW_sectionHeader{justify-content:space-between;align-items:center;gap:8px;padding:4px 2px 0;display:flex}.gpmbMW_sectionTitle{min-width:0;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.gpmbMW_iconButton{border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.gpmbMW_iconButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}@media (hover:hover){.gpmbMW_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.gpmbMW_banner{border-radius:var(--dsw-radius-sm);background:var(--forge-fill);color:var(--dsw-alias-label-primary);flex-direction:column;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.gpmbMW_bannerDetail{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.gpmbMW_bannerCommand{max-width:100%;color:var(--dsw-alias-label-secondary);font-family:var(--ds-font-family-code);overflow-wrap:anywhere;font-size:12px;line-height:18px}.gpmbMW_bannerAction{flex:none}.gpmbMW_empty{text-align:center;padding:32px 16px}.gpmbMW_emptyTitle{color:var(--dsw-alias-label-primary);margin:0}.gpmbMW_emptyHint{color:var(--dsw-alias-label-tertiary);margin:4px 0 0;font-size:12px;line-height:18px}.gpmbMW_list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.gpmbMW_change{border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);min-width:0}.gpmbMW_changeHead{align-items:flex-start;gap:2px;min-width:0;padding:12px 8px 10px 14px;display:flex}.gpmbMW_changeHead>.gpmbMW_glyph{margin:3px 10px 0 0}.gpmbMW_changeHead>.gpmbMW_iconButton{margin-top:-3px}.gpmbMW_headText{flex-direction:column;flex:1;gap:2px;min-width:0;padding-top:1px;display:flex}.gpmbMW_changeTitle{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:20px;text-decoration:none;display:-webkit-box;overflow:hidden}.gpmbMW_change:not([data-expanded]) .gpmbMW_changeTitle{-webkit-line-clamp:1}@media (hover:hover){.gpmbMW_changeTitle:hover{color:var(--dsw-alias-label-primary);text-underline-offset:2px;text-decoration:underline}}.gpmbMW_changeTitle:focus-visible,.gpmbMW_rowButton:focus-visible,.gpmbMW_checkoutName:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.gpmbMW_meta{min-width:0;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;align-items:center;gap:6px;padding:1px 0;font-size:12px;line-height:18px;display:flex}.gpmbMW_glyph{flex:none;display:inline-flex}.gpmbMW_tinted{color:var(--dsw-alias-label-tertiary)}.gpmbMW_tinted[data-tone=open]{color:var(--dsw-alias-state-success-primary)}.gpmbMW_tinted[data-tone=blocked]{color:var(--dsw-alias-state-warn-primary)}.gpmbMW_tinted[data-tone=merged]{color:var(--dsw-alias-state-done-primary)}.gpmbMW_tinted[data-tone=closed]{color:var(--dsw-alias-state-error-primary)}.gpmbMW_chevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s}.gpmbMW_chevronOpen{transform:rotate(180deg)}.gpmbMW_ellipsis{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.gpmbMW_diff{font-variant-numeric:tabular-nums;gap:8px;display:inline-flex}.gpmbMW_added{color:var(--dsw-alias-state-success-primary)}.gpmbMW_deleted{color:var(--dsw-alias-state-error-primary)}.gpmbMW_ci{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;display:inline-flex}.gpmbMW_ci[data-tone=error],.gpmbMW_flag[data-flag=changesRequested],.gpmbMW_flag[data-flag=conflicting]{color:var(--dsw-alias-state-error-primary)}.gpmbMW_flag{color:var(--dsw-alias-label-tertiary)}.gpmbMW_finished{color:var(--dsw-alias-label-secondary)}.gpmbMW_finished[data-tone=merged]{color:var(--dsw-alias-state-done-primary)}.gpmbMW_notice{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:center;gap:8px;padding:0 10px 10px 33px;font-size:12px;line-height:18px;display:flex}.gpmbMW_rows{border-top:.5px solid var(--dsw-alias-border-l2);
|
|
5364
|
+
const css$5 = ".gpmbMW_root{--forge-fill:var(--dsw-static-neutral-50);box-sizing:border-box;height:100%;min-height:0;color:var(--dsw-alias-label-primary);font-size:var(--dsh-content-font-size-secondary,13px);flex-direction:column;gap:10px;padding:12px;line-height:20px;display:flex;overflow-y:auto}body[data-ds-dark-theme] .gpmbMW_root{--forge-fill:var(--dsw-static-neutral-850)}.gpmbMW_centered{box-sizing:border-box;height:100%;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.gpmbMW_disconnected{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:center;gap:8px;display:flex}.gpmbMW_checkout{border-radius:var(--dsw-radius-sm);background:var(--forge-fill);min-width:0;color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.gpmbMW_checkout:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.gpmbMW_checkout[data-missing],.gpmbMW_checkout[data-missing] .gpmbMW_checkoutBranch{color:var(--dsw-alias-state-warn-primary)}.gpmbMW_checkoutName{border-radius:var(--dsw-radius-sm);align-items:center;gap:8px;min-width:0;display:inline-flex}.gpmbMW_checkoutIcon{flex:none}.gpmbMW_checkoutBranch{min-width:0;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.gpmbMW_checkoutNote{flex:none;margin-left:auto}.gpmbMW_checkout .gpmbMW_checkoutCopy{width:24px;height:24px;margin:-3px -4px -3px 0}.gpmbMW_section{flex-direction:column;gap:8px;min-width:0;display:flex}.gpmbMW_sectionHeader{justify-content:space-between;align-items:center;gap:8px;padding:4px 2px 0;display:flex}.gpmbMW_sectionTitle{min-width:0;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.gpmbMW_iconButton{border-radius:var(--dsw-radius-sm);width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.gpmbMW_iconButton:focus-visible{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}@media (hover:hover){.gpmbMW_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}}.gpmbMW_banner{border-radius:var(--dsw-radius-sm);background:var(--forge-fill);color:var(--dsw-alias-label-primary);flex-direction:column;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.gpmbMW_bannerDetail{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.gpmbMW_bannerCommand{max-width:100%;color:var(--dsw-alias-label-secondary);font-family:var(--ds-font-family-code);overflow-wrap:anywhere;font-size:12px;line-height:18px}.gpmbMW_bannerAction{flex:none}.gpmbMW_empty{text-align:center;padding:32px 16px}.gpmbMW_emptyTitle{color:var(--dsw-alias-label-primary);margin:0}.gpmbMW_emptyHint{color:var(--dsw-alias-label-tertiary);margin:4px 0 0;font-size:12px;line-height:18px}.gpmbMW_list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.gpmbMW_change{border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);min-width:0}.gpmbMW_changeHead{align-items:flex-start;gap:2px;min-width:0;padding:12px 8px 10px 14px;display:flex}.gpmbMW_changeHead>.gpmbMW_glyph{margin:3px 10px 0 0}.gpmbMW_changeHead>.gpmbMW_iconButton{margin-top:-3px}.gpmbMW_headText{flex-direction:column;flex:1;gap:2px;min-width:0;padding-top:1px;display:flex}.gpmbMW_changeTitle{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:20px;text-decoration:none;display:-webkit-box;overflow:hidden}.gpmbMW_change:not([data-expanded]) .gpmbMW_changeTitle{-webkit-line-clamp:1}@media (hover:hover){.gpmbMW_changeTitle:hover{color:var(--dsw-alias-label-primary);text-underline-offset:2px;text-decoration:underline}}.gpmbMW_changeTitle:focus-visible,.gpmbMW_rowButton:focus-visible,.gpmbMW_checkoutName:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px}.gpmbMW_meta{min-width:0;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;align-items:center;gap:6px;padding:1px 0;font-size:12px;line-height:18px;display:flex}.gpmbMW_glyph{flex:none;display:inline-flex}.gpmbMW_tinted{color:var(--dsw-alias-label-tertiary)}.gpmbMW_tinted[data-tone=open]{color:var(--dsw-alias-state-success-primary)}.gpmbMW_tinted[data-tone=blocked]{color:var(--dsw-alias-state-warn-primary)}.gpmbMW_tinted[data-tone=merged]{color:var(--dsw-alias-state-done-primary)}.gpmbMW_tinted[data-tone=closed]{color:var(--dsw-alias-state-error-primary)}.gpmbMW_chevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s}.gpmbMW_chevronOpen{transform:rotate(180deg)}.gpmbMW_ellipsis{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.gpmbMW_diff{font-variant-numeric:tabular-nums;gap:8px;display:inline-flex}.gpmbMW_added{color:var(--dsw-alias-state-success-primary)}.gpmbMW_deleted{color:var(--dsw-alias-state-error-primary)}.gpmbMW_ci{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;display:inline-flex}.gpmbMW_ci[data-tone=error],.gpmbMW_flag[data-flag=changesRequested],.gpmbMW_flag[data-flag=conflicting]{color:var(--dsw-alias-state-error-primary)}.gpmbMW_flag{color:var(--dsw-alias-label-tertiary)}.gpmbMW_finished{color:var(--dsw-alias-label-secondary)}.gpmbMW_finished[data-tone=merged]{color:var(--dsw-alias-state-done-primary)}.gpmbMW_notice{color:var(--dsw-alias-label-secondary);justify-content:space-between;align-items:center;gap:8px;padding:0 10px 10px 33px;font-size:12px;line-height:18px;display:flex}.gpmbMW_rows{border-top:.5px solid var(--dsw-alias-border-l2);grid-template-columns:24px minmax(32px,max-content) minmax(0,1fr) 22px;gap:2px 10px;padding:4px 6px 6px;display:grid}.gpmbMW_row{grid-column:1/-1;grid-template-columns:subgrid;box-sizing:border-box;border-radius:var(--dsw-radius-sm);width:100%;min-height:34px;color:var(--dsw-alias-label-primary);font:inherit;text-align:left;background:0 0;border:0;align-items:center;column-gap:10px;margin:0;padding:0 10px 0 8px;display:grid}.gpmbMW_rowWide{grid-column:2/4}.gpmbMW_rowButton{cursor:pointer}.gpmbMW_rowButton[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}@media (hover:hover){.gpmbMW_rowButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.gpmbMW_rowIcon{color:var(--dsw-alias-label-tertiary);display:inline-flex}.gpmbMW_rowLabel{color:var(--dsw-alias-label-secondary)}.gpmbMW_rowChevron{color:var(--dsw-alias-label-tertiary)}.gpmbMW_rowValue{overflow-wrap:anywhere;align-items:center;gap:6px;min-width:0;display:inline-flex}.gpmbMW_rowValue[data-tone=error]{color:var(--dsw-alias-state-error-primary)}.gpmbMW_rowValue[data-tone=success]{color:var(--dsw-alias-state-success-primary)}.gpmbMW_rowValue[data-tone=merged]{color:var(--dsw-alias-state-done-primary)}.gpmbMW_rowValue[data-tone=closed]{color:var(--dsw-alias-label-secondary)}.gpmbMW_checksAnchor{grid-column:1/-1;grid-template-columns:subgrid;display:grid}.gpmbMW_checksList{min-width:280px}.gpmbMW_checkItem{align-items:center;gap:12px;width:100%;min-width:0;display:flex}.gpmbMW_checkTime{color:var(--dsw-alias-label-tertiary);flex:none;margin-left:auto;font-size:12px}.gpmbMW_checkGlyph{color:var(--dsw-alias-label-tertiary);flex:none;display:inline-flex}.gpmbMW_pass{color:var(--dsw-alias-state-success-primary)}.gpmbMW_fail{color:var(--dsw-alias-state-error-primary)}.gpmbMW_running{color:var(--dsw-alias-state-warn-primary)}.gpmbMW_footer{align-items:center;gap:8px;padding:2px 14px 12px;display:flex}.gpmbMW_primaryAction{height:32px;padding:0 14px;font-size:13px;line-height:20px}.gpmbMW_method{flex-direction:column;gap:2px;min-width:0;display:flex}.gpmbMW_methodNote{color:var(--dsw-alias-label-tertiary);font-size:12px}.gpmbMW_titleIcon{color:var(--dsw-alias-label-secondary);flex:none;display:inline-flex}.gpmbMW_titleText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}";
|
|
3116
5365
|
const tagId$5 = "@deepseek-ai/dsh-experimental-client-ui-forge/ForgeTab.module.css";
|
|
3117
5366
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
3118
5367
|
const tag = document.createElement("style");
|
|
@@ -3397,7 +5646,8 @@ window.__ModuleLoader__.load({
|
|
|
3397
5646
|
const FAILURE$1 = {
|
|
3398
5647
|
"forgePanel/not-a-checkout": "checkout.none",
|
|
3399
5648
|
"forgePanel/no-fork-point": "diff.noForkPoint",
|
|
3400
|
-
"forgePanel/diff-too-large": "diff.tooLarge"
|
|
5649
|
+
"forgePanel/diff-too-large": "diff.tooLarge",
|
|
5650
|
+
"forgePanel/filter-config-failed": "diff.filterConfigFailed"
|
|
3401
5651
|
};
|
|
3402
5652
|
async function readChanges(source, scope, reads, signal) {
|
|
3403
5653
|
if (source.kind === "local") {
|
|
@@ -3460,7 +5710,7 @@ window.__ModuleLoader__.load({
|
|
|
3460
5710
|
if (file.untracked && data.kind === "local" && data.scope === "branch") parts.push(t("diff.badgeUncommitted"));
|
|
3461
5711
|
return parts.join(" · ");
|
|
3462
5712
|
}
|
|
3463
|
-
function ChangeHeader({ url, entry, openLink, t }) {
|
|
5713
|
+
function ChangeHeader({ url, entry, openLink, reviewCount, reviewDisabled, onReview, t }) {
|
|
3464
5714
|
const snapshot = entry?.snapshot ?? null;
|
|
3465
5715
|
const number = numberOf(entry ?? {
|
|
3466
5716
|
ref: null,
|
|
@@ -3483,12 +5733,20 @@ window.__ModuleLoader__.load({
|
|
|
3483
5733
|
className: ChangesTab_module_css_default.headerNumber,
|
|
3484
5734
|
children: t("change.number", { number })
|
|
3485
5735
|
}),
|
|
5736
|
+
(0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5737
|
+
size: "sm",
|
|
5738
|
+
variant: "outline",
|
|
5739
|
+
className: clsx(ChangesTab_module_css_default.headerEnd, ChangesTab_module_css_default.reviewSubmit),
|
|
5740
|
+
disabled: reviewDisabled,
|
|
5741
|
+
onClick: onReview,
|
|
5742
|
+
children: [t("review.submit"), reviewCount > 0 ? ` (${reviewCount})` : ""]
|
|
5743
|
+
}),
|
|
3486
5744
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
3487
5745
|
label: t("change.view"),
|
|
3488
5746
|
side: "bottom",
|
|
3489
5747
|
children: (0, react_jsx_runtime.jsx)("button", {
|
|
3490
5748
|
type: "button",
|
|
3491
|
-
className:
|
|
5749
|
+
className: ChangesTab_module_css_default.tool,
|
|
3492
5750
|
"aria-label": t("change.view"),
|
|
3493
5751
|
onClick: () => {
|
|
3494
5752
|
openLink(href);
|
|
@@ -3575,48 +5833,6 @@ window.__ModuleLoader__.load({
|
|
|
3575
5833
|
})
|
|
3576
5834
|
});
|
|
3577
5835
|
}
|
|
3578
|
-
function FilesMenu({ files, jump, t }) {
|
|
3579
|
-
const [open, setOpen] = (0, react.useState)(false);
|
|
3580
|
-
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
3581
|
-
open,
|
|
3582
|
-
portal: true,
|
|
3583
|
-
align: "start",
|
|
3584
|
-
dense: true,
|
|
3585
|
-
autoFocus: true,
|
|
3586
|
-
listClassName: ChangesTab_module_css_default.menuList,
|
|
3587
|
-
items: files.map((file) => ({
|
|
3588
|
-
id: file.path,
|
|
3589
|
-
label: (0, react_jsx_runtime.jsxs)("span", {
|
|
3590
|
-
className: ChangesTab_module_css_default.menuRow,
|
|
3591
|
-
children: [(0, react_jsx_runtime.jsx)(FileLabel, {
|
|
3592
|
-
path: file.path,
|
|
3593
|
-
className: ChangesTab_module_css_default.menuPath
|
|
3594
|
-
}), (0, react_jsx_runtime.jsx)(Counts, {
|
|
3595
|
-
file,
|
|
3596
|
-
t
|
|
3597
|
-
})]
|
|
3598
|
-
})
|
|
3599
|
-
})),
|
|
3600
|
-
onClose: () => {
|
|
3601
|
-
setOpen(false);
|
|
3602
|
-
},
|
|
3603
|
-
onSelect: (path) => {
|
|
3604
|
-
setOpen(false);
|
|
3605
|
-
jump(path);
|
|
3606
|
-
},
|
|
3607
|
-
anchor: (0, react_jsx_runtime.jsxs)("button", {
|
|
3608
|
-
type: "button",
|
|
3609
|
-
className: ChangesTab_module_css_default.select,
|
|
3610
|
-
"aria-haspopup": "menu",
|
|
3611
|
-
"aria-expanded": open,
|
|
3612
|
-
disabled: files.length === 0,
|
|
3613
|
-
onClick: () => {
|
|
3614
|
-
setOpen((value) => !value);
|
|
3615
|
-
},
|
|
3616
|
-
children: [t("diff.allFiles", { count: files.length }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 12 })]
|
|
3617
|
-
})
|
|
3618
|
-
});
|
|
3619
|
-
}
|
|
3620
5836
|
function Notice({ children, action }) {
|
|
3621
5837
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
3622
5838
|
className: ChangesTab_module_css_default.notice,
|
|
@@ -3628,25 +5844,91 @@ window.__ModuleLoader__.load({
|
|
|
3628
5844
|
]
|
|
3629
5845
|
});
|
|
3630
5846
|
}
|
|
5847
|
+
function OrphanReviews({ path, actions, t }) {
|
|
5848
|
+
const state = useFileReview(actions, path);
|
|
5849
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
5850
|
+
className: ChangesTab_module_css_default.reviewFile,
|
|
5851
|
+
"data-forge-review-file": path,
|
|
5852
|
+
children: [(0, react_jsx_runtime.jsx)("h3", { children: path }), state.threads.map((thread) => (0, react_jsx_runtime.jsx)(ReviewThread, {
|
|
5853
|
+
thread,
|
|
5854
|
+
actions,
|
|
5855
|
+
locked: state.locked,
|
|
5856
|
+
outdated: true,
|
|
5857
|
+
split: false,
|
|
5858
|
+
t
|
|
5859
|
+
}, thread.key))]
|
|
5860
|
+
});
|
|
5861
|
+
}
|
|
3631
5862
|
/**
|
|
3632
5863
|
* Render the changes tab of one Session.
|
|
3633
5864
|
* @param props - tab information, the tab's choices, the panel snapshot hook, reads and actions, and copy.
|
|
3634
5865
|
* @returns the view body.
|
|
3635
5866
|
*/
|
|
3636
|
-
function ChangesTab({ useTabInfo, sessionId, useStore, actions, usePanel, reconnect, localDiff, localText, changeRequestDiff, changeRequestText, openLink, copyPath, createChangeRequest, report, t }) {
|
|
5867
|
+
function ChangesTab({ useTabInfo, sessionId, useStore, actions, usePanel, reconnect, localDiff, localText, changeRequestDiff, changeRequestText, openLink, copyPath, createChangeRequest, addReviewToInput, reviewQueue, submitReview, report, t }) {
|
|
3637
5868
|
const { tab } = useTabInfo();
|
|
3638
5869
|
const { navigation, signal } = tab;
|
|
3639
5870
|
const target = (0, react.useMemo)(() => parseChangesAddress(tab.contentId), [tab.contentId]);
|
|
3640
5871
|
if (target === void 0) throw new Error(`forge-panel: not a changes address "${tab.contentId}"`);
|
|
3641
5872
|
const source = target.source;
|
|
5873
|
+
const queue = reviewQueue(tab);
|
|
5874
|
+
(0, react.useSyncExternalStore)(queue.subscribe, queue.getStatus);
|
|
5875
|
+
const reviewState = queue.getSnapshot();
|
|
5876
|
+
const [reviewOpen, setReviewOpen] = (0, react.useState)(false);
|
|
5877
|
+
const [reviewBusy, setReviewBusy] = (0, react.useState)(false);
|
|
5878
|
+
(0, react.useEffect)(() => {
|
|
5879
|
+
if (!tab.visible) setReviewOpen(false);
|
|
5880
|
+
}, [tab.visible]);
|
|
5881
|
+
const reviewRunning = (0, react.useRef)(false);
|
|
5882
|
+
const [reviewError, setReviewError] = (0, react.useState)(null);
|
|
5883
|
+
const publishReview = async (url, request, complete) => {
|
|
5884
|
+
if (reviewRunning.current || !queue.begin(request)) return t("review.saveFailed");
|
|
5885
|
+
reviewRunning.current = true;
|
|
5886
|
+
setReviewBusy(true);
|
|
5887
|
+
setReviewError(null);
|
|
5888
|
+
try {
|
|
5889
|
+
const response = await submitReview(url, request);
|
|
5890
|
+
if (!response.ok || !response.value.ok && response.value.code === "unknown") {
|
|
5891
|
+
setReviewError(t("review.unknown"));
|
|
5892
|
+
return t("review.unknown");
|
|
5893
|
+
}
|
|
5894
|
+
const result = response.value;
|
|
5895
|
+
if (!result.ok) {
|
|
5896
|
+
queue.finish(false);
|
|
5897
|
+
const message = result.code === "stale" ? t("review.stale") : result.code === "unsupported" ? t("review.unsupported") : t("review.failed", { message: result.message });
|
|
5898
|
+
setReviewError(message);
|
|
5899
|
+
return message;
|
|
5900
|
+
}
|
|
5901
|
+
if (!complete(result.url)) return t("review.unknown");
|
|
5902
|
+
report(request.kind === "review" ? "review.submitted" : "review.published");
|
|
5903
|
+
if (request.kind === "review") setReviewOpen(false);
|
|
5904
|
+
return;
|
|
5905
|
+
} catch (_error) {
|
|
5906
|
+
setReviewError(t("review.unknown"));
|
|
5907
|
+
return t("review.unknown");
|
|
5908
|
+
} finally {
|
|
5909
|
+
reviewRunning.current = false;
|
|
5910
|
+
setReviewBusy(false);
|
|
5911
|
+
}
|
|
5912
|
+
};
|
|
3642
5913
|
const choices = useStore((store) => store.byTab[tab.id]);
|
|
3643
5914
|
const [wanted, setWanted] = (0, react.useState)(null);
|
|
5915
|
+
const [treeState, setTreeState] = (0, react.useState)({
|
|
5916
|
+
query: "",
|
|
5917
|
+
collapsed: {},
|
|
5918
|
+
selected: null
|
|
5919
|
+
});
|
|
5920
|
+
const [treePosition, setTreePosition] = (0, react.useState)("left");
|
|
5921
|
+
const treeId = (0, react.useId)();
|
|
3644
5922
|
const [chosen, setChosen] = (0, react.useState)({});
|
|
3645
5923
|
(0, react.useEffect)(() => {
|
|
3646
5924
|
if (choices?.navigated === navigation.revision) return;
|
|
3647
5925
|
actions.navigated(tab.id, navigation.revision);
|
|
3648
5926
|
const path = navigation.params?.path;
|
|
3649
5927
|
if (path === void 0) return;
|
|
5928
|
+
setTreeState((value) => ({
|
|
5929
|
+
...value,
|
|
5930
|
+
selected: path
|
|
5931
|
+
}));
|
|
3650
5932
|
setChosen((value) => ({
|
|
3651
5933
|
...value,
|
|
3652
5934
|
[path]: true
|
|
@@ -3745,9 +6027,15 @@ window.__ModuleLoader__.load({
|
|
|
3745
6027
|
const [revealed, setRevealed] = (0, react.useState)(/* @__PURE__ */ new Set());
|
|
3746
6028
|
const initial = (0, react.useMemo)(() => initiallyOpen(data === null ? [] : data.files), [data]);
|
|
3747
6029
|
const sections = (0, react.useRef)(/* @__PURE__ */ new Map());
|
|
6030
|
+
const scrollport = (0, react.useRef)(null);
|
|
6031
|
+
const jumpPosition = (0, react.useRef)(null);
|
|
3748
6032
|
(0, react.useLayoutEffect)(() => {
|
|
3749
6033
|
if (!tab.visible || wanted === null || data === null) return;
|
|
3750
6034
|
sections.current.get(wanted)?.scrollIntoView({ block: "start" });
|
|
6035
|
+
if (scrollport.current !== null) jumpPosition.current = {
|
|
6036
|
+
data,
|
|
6037
|
+
top: scrollport.current.scrollTop
|
|
6038
|
+
};
|
|
3751
6039
|
setWanted(null);
|
|
3752
6040
|
}, [
|
|
3753
6041
|
tab.visible,
|
|
@@ -3760,7 +6048,7 @@ window.__ModuleLoader__.load({
|
|
|
3760
6048
|
const root = state !== null && state.checkout.state === "ready" ? state.checkout.checkout.root : null;
|
|
3761
6049
|
const message = failed === null ? void 0 : FAILURE$1[failed];
|
|
3762
6050
|
const changeUrl = source.kind === "change" ? entry?.snapshot?.url ?? source.url : null;
|
|
3763
|
-
const retry = message === void 0;
|
|
6051
|
+
const retry = message === void 0 || failed === "forgePanel/filter-config-failed";
|
|
3764
6052
|
/** Apply a change to the unchanged lines of `owner`, unless newer changes replaced it. */
|
|
3765
6053
|
const update = (owner, change) => {
|
|
3766
6054
|
setExpansion((previous) => {
|
|
@@ -3840,6 +6128,86 @@ window.__ModuleLoader__.load({
|
|
|
3840
6128
|
}
|
|
3841
6129
|
return list;
|
|
3842
6130
|
};
|
|
6131
|
+
const reviewForm = tab.visible && data !== null && reviewOpen && data.kind === "change" && (0, react_jsx_runtime.jsx)(SubmitReview, {
|
|
6132
|
+
queue,
|
|
6133
|
+
url: data.url,
|
|
6134
|
+
headSha: data.headSha,
|
|
6135
|
+
busy: reviewBusy,
|
|
6136
|
+
error: reviewError,
|
|
6137
|
+
close: () => {
|
|
6138
|
+
setReviewOpen(false);
|
|
6139
|
+
},
|
|
6140
|
+
check: () => {
|
|
6141
|
+
openLink(data.url);
|
|
6142
|
+
},
|
|
6143
|
+
reconcile: () => {
|
|
6144
|
+
queue.finish(false);
|
|
6145
|
+
setReviewError(null);
|
|
6146
|
+
},
|
|
6147
|
+
submit: () => {
|
|
6148
|
+
const latest = queue.getSnapshot();
|
|
6149
|
+
publishReview(data.url, {
|
|
6150
|
+
kind: "review",
|
|
6151
|
+
headSha: data.headSha,
|
|
6152
|
+
event: latest.event,
|
|
6153
|
+
body: latest.body,
|
|
6154
|
+
comments: latest.comments.map((item) => item.comment)
|
|
6155
|
+
}, (url) => queue.finish(true, url));
|
|
6156
|
+
},
|
|
6157
|
+
t
|
|
6158
|
+
});
|
|
6159
|
+
const recordActions = {
|
|
6160
|
+
source: source.kind === "local" ? {
|
|
6161
|
+
kind: "local",
|
|
6162
|
+
scope
|
|
6163
|
+
} : {
|
|
6164
|
+
kind: "change",
|
|
6165
|
+
url: source.url,
|
|
6166
|
+
headSha: data?.kind === "change" ? data.headSha : ""
|
|
6167
|
+
},
|
|
6168
|
+
records: queue,
|
|
6169
|
+
addToInput: addReviewToInput,
|
|
6170
|
+
openLink
|
|
6171
|
+
};
|
|
6172
|
+
const orphanRecords = [...new Set([...reviewState.comments, ...reviewState.records.map((item) => item.selection)].filter((item) => sameReviewSource(item.source, recordActions.source)).map((item) => item.comment.path))].filter((path) => !data?.files.some((file) => file.path === path)).map((path) => (0, react_jsx_runtime.jsx)(OrphanReviews, {
|
|
6173
|
+
path,
|
|
6174
|
+
actions: recordActions,
|
|
6175
|
+
t
|
|
6176
|
+
}, path));
|
|
6177
|
+
const files = data === null ? [] : data.files;
|
|
6178
|
+
const jump = (path) => {
|
|
6179
|
+
setTreeState((value) => ({
|
|
6180
|
+
...value,
|
|
6181
|
+
selected: path
|
|
6182
|
+
}));
|
|
6183
|
+
setChosen((value) => ({
|
|
6184
|
+
...value,
|
|
6185
|
+
[path]: true
|
|
6186
|
+
}));
|
|
6187
|
+
setWanted(path);
|
|
6188
|
+
};
|
|
6189
|
+
const navigateFiles = (event) => {
|
|
6190
|
+
if (!tab.visible || event.defaultPrevented || event.nativeEvent.isComposing || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey || event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;
|
|
6191
|
+
const viewport = event.currentTarget;
|
|
6192
|
+
const origin = event.target;
|
|
6193
|
+
const selection = window.getSelection();
|
|
6194
|
+
if (!(origin instanceof HTMLElement) || !viewport.contains(origin) || origin.closest("input, textarea, select, [contenteditable]:not([contenteditable=\"false\"]), [data-forge-comment]") !== null || selection !== null && !selection.isCollapsed) return;
|
|
6195
|
+
const remembered = jumpPosition.current;
|
|
6196
|
+
let index = remembered !== null && remembered.data === data && remembered.top === viewport.scrollTop ? files.findIndex((file) => file.path === treeState.selected) : -1;
|
|
6197
|
+
if (index < 0) {
|
|
6198
|
+
const top = viewport.getBoundingClientRect().top;
|
|
6199
|
+
index = Math.max(0, files.findLastIndex((file) => {
|
|
6200
|
+
const section = sections.current.get(file.path);
|
|
6201
|
+
return section !== void 0 && section.getBoundingClientRect().top <= top + 1;
|
|
6202
|
+
}));
|
|
6203
|
+
}
|
|
6204
|
+
event.preventDefault();
|
|
6205
|
+
event.stopPropagation();
|
|
6206
|
+
const next = files[index + (event.key === "ArrowRight" ? 1 : -1)];
|
|
6207
|
+
if (next === void 0) return;
|
|
6208
|
+
viewport.focus({ preventScroll: true });
|
|
6209
|
+
jump(next.path);
|
|
6210
|
+
};
|
|
3843
6211
|
let body;
|
|
3844
6212
|
if (data === null) if (state === null && snapshot?.disconnected) body = (0, react_jsx_runtime.jsxs)("div", {
|
|
3845
6213
|
className: ChangesTab_module_css_default.centered,
|
|
@@ -3874,18 +6242,56 @@ window.__ModuleLoader__.load({
|
|
|
3874
6242
|
})]
|
|
3875
6243
|
})]
|
|
3876
6244
|
});
|
|
3877
|
-
else if (data.files.length === 0) body = (0, react_jsx_runtime.
|
|
3878
|
-
className: ChangesTab_module_css_default.
|
|
3879
|
-
children:
|
|
6245
|
+
else if (data.files.length === 0) body = (0, react_jsx_runtime.jsxs)("div", {
|
|
6246
|
+
className: ChangesTab_module_css_default.files,
|
|
6247
|
+
children: [orphanRecords, (0, react_jsx_runtime.jsx)("div", {
|
|
6248
|
+
className: ChangesTab_module_css_default.centered,
|
|
6249
|
+
children: t("diff.empty")
|
|
6250
|
+
})]
|
|
3880
6251
|
});
|
|
3881
|
-
else body = (0, react_jsx_runtime.
|
|
6252
|
+
else body = (0, react_jsx_runtime.jsxs)("div", {
|
|
6253
|
+
ref: scrollport,
|
|
3882
6254
|
className: ChangesTab_module_css_default.files,
|
|
3883
6255
|
"data-forge-changes-scroll": "",
|
|
3884
|
-
|
|
6256
|
+
role: "region",
|
|
6257
|
+
"aria-label": t("diff.allFiles", { count: files.length }),
|
|
6258
|
+
"aria-keyshortcuts": "ArrowLeft ArrowRight",
|
|
6259
|
+
tabIndex: 0,
|
|
6260
|
+
onKeyDown: navigateFiles,
|
|
6261
|
+
onScroll: (event) => {
|
|
6262
|
+
if (jumpPosition.current?.top !== event.currentTarget.scrollTop) jumpPosition.current = null;
|
|
6263
|
+
},
|
|
6264
|
+
children: [data.files.map((file) => {
|
|
3885
6265
|
const path = file.path;
|
|
3886
6266
|
return (0, react_jsx_runtime.jsx)(DiffFile, {
|
|
3887
6267
|
visible: tab.visible,
|
|
3888
6268
|
file,
|
|
6269
|
+
review: {
|
|
6270
|
+
source: data.kind === "local" ? {
|
|
6271
|
+
kind: "local",
|
|
6272
|
+
scope: data.scope
|
|
6273
|
+
} : {
|
|
6274
|
+
kind: "change",
|
|
6275
|
+
url: data.url,
|
|
6276
|
+
headSha: data.headSha
|
|
6277
|
+
},
|
|
6278
|
+
addToInput: addReviewToInput,
|
|
6279
|
+
records: queue,
|
|
6280
|
+
openLink,
|
|
6281
|
+
reviewStarted: reviewState.comments.length > 0,
|
|
6282
|
+
onQuoted: (selection) => {
|
|
6283
|
+
if (!queue.recordAgent(selection)) report("review.saveFailed");
|
|
6284
|
+
},
|
|
6285
|
+
publishingBlocked: reviewState.uncertain !== null,
|
|
6286
|
+
...data.kind === "local" ? {} : {
|
|
6287
|
+
queue: (selection) => queue.add(selection),
|
|
6288
|
+
publish: (selection) => selection.source.kind === "change" ? publishReview(selection.source.url, {
|
|
6289
|
+
kind: "comment",
|
|
6290
|
+
headSha: selection.source.headSha,
|
|
6291
|
+
comment: selection.comment
|
|
6292
|
+
}, (url) => queue.published(selection, url)) : Promise.resolve(t("review.stale"))
|
|
6293
|
+
}
|
|
6294
|
+
},
|
|
3889
6295
|
expanded: chosen[path] ?? initial.has(path),
|
|
3890
6296
|
onToggle: () => {
|
|
3891
6297
|
setChosen((value) => ({
|
|
@@ -3908,20 +6314,38 @@ window.__ModuleLoader__.load({
|
|
|
3908
6314
|
badge: badgeOf(file, data, t),
|
|
3909
6315
|
tooltip: pathTooltipOf(file, t),
|
|
3910
6316
|
actions: fileActions(data, file),
|
|
3911
|
-
onCopyPath: () => {
|
|
3912
|
-
copyPath(path);
|
|
3913
|
-
},
|
|
3914
6317
|
sectionRef: (element) => {
|
|
3915
6318
|
if (element === null) sections.current.delete(path);
|
|
3916
6319
|
else sections.current.set(path, element);
|
|
3917
6320
|
},
|
|
3918
6321
|
t
|
|
3919
6322
|
}, path);
|
|
3920
|
-
})
|
|
6323
|
+
}), orphanRecords]
|
|
3921
6324
|
});
|
|
3922
|
-
const
|
|
6325
|
+
const navigator = {
|
|
6326
|
+
files,
|
|
6327
|
+
state: treeState,
|
|
6328
|
+
t,
|
|
6329
|
+
filter: (query) => {
|
|
6330
|
+
setTreeState((value) => ({
|
|
6331
|
+
...value,
|
|
6332
|
+
query
|
|
6333
|
+
}));
|
|
6334
|
+
},
|
|
6335
|
+
toggle: (path) => {
|
|
6336
|
+
setTreeState((value) => ({
|
|
6337
|
+
...value,
|
|
6338
|
+
collapsed: {
|
|
6339
|
+
...value.collapsed,
|
|
6340
|
+
[path]: value.collapsed[path] !== true
|
|
6341
|
+
}
|
|
6342
|
+
}));
|
|
6343
|
+
},
|
|
6344
|
+
jump
|
|
6345
|
+
};
|
|
3923
6346
|
const anyExpanded = files.some((file) => chosen[file.path] ?? initial.has(file.path));
|
|
3924
6347
|
const expansionLabel = t(anyExpanded ? "diff.collapseAll" : "diff.expandAll");
|
|
6348
|
+
const treeAction = t(treePosition === "left" ? "diff.moveFileTreeRight" : treePosition === "right" ? "diff.hideFileTree" : "diff.showFileTreeLeft");
|
|
3925
6349
|
let additions = 0;
|
|
3926
6350
|
let deletions = 0;
|
|
3927
6351
|
for (const file of files) {
|
|
@@ -3941,8 +6365,40 @@ window.__ModuleLoader__.load({
|
|
|
3941
6365
|
url: source.url,
|
|
3942
6366
|
entry,
|
|
3943
6367
|
openLink,
|
|
6368
|
+
reviewCount: reviewState.comments.length,
|
|
6369
|
+
reviewDisabled: data === null,
|
|
6370
|
+
onReview: () => {
|
|
6371
|
+
setReviewOpen(true);
|
|
6372
|
+
},
|
|
3944
6373
|
t
|
|
3945
6374
|
}),
|
|
6375
|
+
!reviewOpen && reviewState.error !== null && (0, react_jsx_runtime.jsx)(Notice, { children: t(reviewState.error === "load" ? "review.loadFailed" : "review.saveFailed") }),
|
|
6376
|
+
!reviewOpen && reviewState.uncertain !== null && !reviewBusy && source.kind === "change" && (0, react_jsx_runtime.jsxs)("div", {
|
|
6377
|
+
className: ChangesTab_module_css_default.reviewNotice,
|
|
6378
|
+
role: "alert",
|
|
6379
|
+
children: [
|
|
6380
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("review.unknown") }),
|
|
6381
|
+
reviewState.uncertain.kind === "comment" && (0, react_jsx_runtime.jsx)("blockquote", { children: reviewState.uncertain.comment.body }),
|
|
6382
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
6383
|
+
size: "sm",
|
|
6384
|
+
variant: "outline",
|
|
6385
|
+
onClick: () => {
|
|
6386
|
+
openLink(source.url);
|
|
6387
|
+
},
|
|
6388
|
+
children: t("review.recheck")
|
|
6389
|
+
}),
|
|
6390
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
6391
|
+
size: "sm",
|
|
6392
|
+
variant: "outline",
|
|
6393
|
+
onClick: () => {
|
|
6394
|
+
queue.finish(false);
|
|
6395
|
+
setReviewError(null);
|
|
6396
|
+
},
|
|
6397
|
+
children: t("review.confirmRetry")
|
|
6398
|
+
})
|
|
6399
|
+
]
|
|
6400
|
+
}),
|
|
6401
|
+
!reviewOpen && reviewError !== null && reviewState.uncertain === null && (0, react_jsx_runtime.jsx)(Notice, { children: reviewError }),
|
|
3946
6402
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
3947
6403
|
className: ChangesTab_module_css_default.toolbar,
|
|
3948
6404
|
children: [
|
|
@@ -3953,16 +6409,9 @@ window.__ModuleLoader__.load({
|
|
|
3953
6409
|
},
|
|
3954
6410
|
t
|
|
3955
6411
|
}),
|
|
3956
|
-
tab.visible && (0, react_jsx_runtime.jsx)(
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
setChosen((value) => ({
|
|
3960
|
-
...value,
|
|
3961
|
-
[path]: true
|
|
3962
|
-
}));
|
|
3963
|
-
setWanted(path);
|
|
3964
|
-
},
|
|
3965
|
-
t
|
|
6412
|
+
tab.visible && (0, react_jsx_runtime.jsx)(ChangedFilesMenu, {
|
|
6413
|
+
...navigator,
|
|
6414
|
+
visible: true
|
|
3966
6415
|
}),
|
|
3967
6416
|
files.length > 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
3968
6417
|
className: ChangesTab_module_css_default.totals,
|
|
@@ -4034,6 +6483,25 @@ window.__ModuleLoader__.load({
|
|
|
4034
6483
|
},
|
|
4035
6484
|
children: wrap ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconNowrapFillRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWrapFillRegular, {})
|
|
4036
6485
|
})
|
|
6486
|
+
}),
|
|
6487
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
6488
|
+
className: ChangesTab_module_css_default.treeToggle,
|
|
6489
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
6490
|
+
label: treeAction,
|
|
6491
|
+
side: "bottom",
|
|
6492
|
+
children: (0, react_jsx_runtime.jsx)("button", {
|
|
6493
|
+
type: "button",
|
|
6494
|
+
className: ChangesTab_module_css_default.tool,
|
|
6495
|
+
"aria-label": treeAction,
|
|
6496
|
+
"aria-expanded": treePosition !== "hidden",
|
|
6497
|
+
"aria-controls": treeId,
|
|
6498
|
+
disabled: files.length === 0,
|
|
6499
|
+
onClick: () => {
|
|
6500
|
+
setTreePosition((value) => value === "left" ? "right" : value === "right" ? "hidden" : "left");
|
|
6501
|
+
},
|
|
6502
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWorkspaceTreeOutlineRegular, {})
|
|
6503
|
+
})
|
|
6504
|
+
})
|
|
4037
6505
|
})
|
|
4038
6506
|
]
|
|
4039
6507
|
})
|
|
@@ -4051,7 +6519,15 @@ window.__ModuleLoader__.load({
|
|
|
4051
6519
|
}),
|
|
4052
6520
|
data?.kind === "change" && data.localAhead !== null && data.localAhead > 0 && (0, react_jsx_runtime.jsx)(Notice, { children: t("diff.stale", { count: data.localAhead }) }),
|
|
4053
6521
|
data?.kind === "local" && data.omitted > 0 && (0, react_jsx_runtime.jsx)(Notice, { children: t("diff.omitted", { count: data.omitted }) }),
|
|
4054
|
-
|
|
6522
|
+
reviewForm,
|
|
6523
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
6524
|
+
className: ChangesTab_module_css_default.body,
|
|
6525
|
+
children: [body, files.length > 0 && (0, react_jsx_runtime.jsx)(FileTreePane, {
|
|
6526
|
+
...navigator,
|
|
6527
|
+
id: treeId,
|
|
6528
|
+
position: treePosition
|
|
6529
|
+
})]
|
|
6530
|
+
})
|
|
4055
6531
|
]
|
|
4056
6532
|
});
|
|
4057
6533
|
}
|
|
@@ -4235,9 +6711,9 @@ window.__ModuleLoader__.load({
|
|
|
4235
6711
|
className: ForgeTab_module_css_default.ci,
|
|
4236
6712
|
"data-tone": ci.kind === "failed" ? "error" : void 0,
|
|
4237
6713
|
children: [ci.kind !== "none" && (0, react_jsx_runtime.jsx)(CheckGlyph, {
|
|
4238
|
-
state: ROLLUP[snapshot.checksRollup],
|
|
6714
|
+
state: ci.kind === "cancelled" ? "cancelled" : ROLLUP[snapshot.checksRollup],
|
|
4239
6715
|
size: 12
|
|
4240
|
-
}), ci.kind === "failed" ? ci.count > 0 ? t("change.ci.failed", { count: ci.count }) : t("change.ci.failedUnlisted") : t(`change.ci.${ci.kind}`)]
|
|
6716
|
+
}), ci.kind === "failed" ? ci.count > 0 ? t("change.ci.failed", { count: ci.count }) : t("change.ci.failedUnlisted") : ci.kind === "cancelled" ? t("change.ci.cancelled", { count: ci.count }) : t(`change.ci.${ci.kind}`)]
|
|
4241
6717
|
}), flag !== void 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
4242
6718
|
className: ForgeTab_module_css_default.flag,
|
|
4243
6719
|
"data-flag": flag,
|
|
@@ -4251,9 +6727,45 @@ window.__ModuleLoader__.load({
|
|
|
4251
6727
|
children: `${snapshot.headBranch} → ${snapshot.baseBranch}`
|
|
4252
6728
|
})] });
|
|
4253
6729
|
}
|
|
4254
|
-
function ChecksRow({ snapshot, openLink, t }) {
|
|
6730
|
+
function ChecksRow({ snapshot, openLink, readChecks, t }) {
|
|
4255
6731
|
const [open, setOpen] = (0, react.useState)(false);
|
|
4256
|
-
|
|
6732
|
+
const [read, setRead] = (0, react.useState)({ kind: "idle" });
|
|
6733
|
+
const [attempt, setAttempt] = (0, react.useState)(0);
|
|
6734
|
+
const { url, headSha, checksTruncated } = snapshot;
|
|
6735
|
+
(0, react.useEffect)(() => {
|
|
6736
|
+
if (!open || !checksTruncated || readChecks === void 0) {
|
|
6737
|
+
setRead({ kind: "idle" });
|
|
6738
|
+
return;
|
|
6739
|
+
}
|
|
6740
|
+
const controller = new AbortController();
|
|
6741
|
+
setRead({ kind: "loading" });
|
|
6742
|
+
(async () => {
|
|
6743
|
+
try {
|
|
6744
|
+
const result = await readChecks(url, headSha, controller.signal);
|
|
6745
|
+
if (!controller.signal.aborted) setRead({
|
|
6746
|
+
kind: "ready",
|
|
6747
|
+
snapshot: result
|
|
6748
|
+
});
|
|
6749
|
+
} catch (error) {
|
|
6750
|
+
if (!controller.signal.aborted) setRead({
|
|
6751
|
+
kind: "failed",
|
|
6752
|
+
message: error instanceof Error ? error.message : String(error)
|
|
6753
|
+
});
|
|
6754
|
+
}
|
|
6755
|
+
})();
|
|
6756
|
+
return () => {
|
|
6757
|
+
controller.abort();
|
|
6758
|
+
};
|
|
6759
|
+
}, [
|
|
6760
|
+
open,
|
|
6761
|
+
url,
|
|
6762
|
+
headSha,
|
|
6763
|
+
checksTruncated,
|
|
6764
|
+
readChecks,
|
|
6765
|
+
attempt
|
|
6766
|
+
]);
|
|
6767
|
+
const displayed = read.kind === "ready" && read.snapshot.headSha === headSha ? read.snapshot : snapshot;
|
|
6768
|
+
if (displayed.checks.length === 0 && !displayed.checksTruncated) return (0, react_jsx_runtime.jsxs)("div", {
|
|
4257
6769
|
className: ForgeTab_module_css_default.row,
|
|
4258
6770
|
children: [
|
|
4259
6771
|
(0, react_jsx_runtime.jsx)("span", {
|
|
@@ -4270,21 +6782,39 @@ window.__ModuleLoader__.load({
|
|
|
4270
6782
|
})
|
|
4271
6783
|
]
|
|
4272
6784
|
});
|
|
4273
|
-
const counts = checkCounts(
|
|
4274
|
-
const summary = [
|
|
6785
|
+
const counts = checkCounts(displayed.checks);
|
|
6786
|
+
const summary = displayed.checksTruncated ? t("change.checks.truncated", { count: displayed.checks.length }) : [
|
|
4275
6787
|
...counts.failed > 0 ? [t("change.checks.failed", { count: counts.failed })] : [],
|
|
4276
6788
|
...counts.running > 0 ? [t("change.checks.running", { count: counts.running })] : [],
|
|
4277
6789
|
...counts.passed > 0 ? [t("change.checks.passed", { count: counts.passed })] : [],
|
|
6790
|
+
...counts.cancelled > 0 ? [t("change.checks.cancelled", { count: counts.cancelled })] : [],
|
|
4278
6791
|
...counts.other > 0 ? [t("change.checks.other", { count: counts.other })] : []
|
|
4279
6792
|
].join(" · ");
|
|
4280
6793
|
const close = () => {
|
|
4281
6794
|
setOpen(false);
|
|
4282
6795
|
};
|
|
4283
|
-
const
|
|
6796
|
+
const footer = displayed.checksTruncated ? [{
|
|
4284
6797
|
type: "label",
|
|
4285
6798
|
id: "truncated",
|
|
4286
|
-
text: t("change.checks.truncated", { count:
|
|
4287
|
-
}];
|
|
6799
|
+
text: t("change.checks.truncated", { count: displayed.checks.length })
|
|
6800
|
+
}] : [];
|
|
6801
|
+
if (read.kind === "loading") footer.push({
|
|
6802
|
+
id: "loading",
|
|
6803
|
+
label: t("change.checks.loading"),
|
|
6804
|
+
disabled: true,
|
|
6805
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, {
|
|
6806
|
+
state: "ongoing",
|
|
6807
|
+
size: 14
|
|
6808
|
+
})
|
|
6809
|
+
});
|
|
6810
|
+
if (read.kind === "failed") footer.push({
|
|
6811
|
+
type: "label",
|
|
6812
|
+
id: "failed",
|
|
6813
|
+
text: t("change.checks.loadFailed", { message: read.message })
|
|
6814
|
+
}, {
|
|
6815
|
+
id: "retry",
|
|
6816
|
+
label: t("change.checks.retry")
|
|
6817
|
+
});
|
|
4288
6818
|
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
4289
6819
|
open,
|
|
4290
6820
|
onClose: close,
|
|
@@ -4303,7 +6833,7 @@ window.__ModuleLoader__.load({
|
|
|
4303
6833
|
children: [
|
|
4304
6834
|
(0, react_jsx_runtime.jsx)("span", {
|
|
4305
6835
|
className: ForgeTab_module_css_default.rowIcon,
|
|
4306
|
-
children: (0, react_jsx_runtime.jsx)(CheckGlyph, { state: ROLLUP[
|
|
6836
|
+
children: (0, react_jsx_runtime.jsx)(CheckGlyph, { state: ROLLUP[displayed.checksRollup] })
|
|
4307
6837
|
}),
|
|
4308
6838
|
(0, react_jsx_runtime.jsx)("span", {
|
|
4309
6839
|
className: ForgeTab_module_css_default.rowLabel,
|
|
@@ -4311,7 +6841,7 @@ window.__ModuleLoader__.load({
|
|
|
4311
6841
|
}),
|
|
4312
6842
|
(0, react_jsx_runtime.jsx)("span", {
|
|
4313
6843
|
className: ForgeTab_module_css_default.rowValue,
|
|
4314
|
-
"data-tone": counts.failed > 0 ? "error" : void 0,
|
|
6844
|
+
"data-tone": !displayed.checksTruncated && counts.failed > 0 ? "error" : void 0,
|
|
4315
6845
|
children: (0, react_jsx_runtime.jsx)("span", {
|
|
4316
6846
|
className: ForgeTab_module_css_default.ellipsis,
|
|
4317
6847
|
children: summary
|
|
@@ -4323,8 +6853,11 @@ window.__ModuleLoader__.load({
|
|
|
4323
6853
|
})
|
|
4324
6854
|
]
|
|
4325
6855
|
}),
|
|
4326
|
-
|
|
4327
|
-
|
|
6856
|
+
footer,
|
|
6857
|
+
onSelect: () => {
|
|
6858
|
+
setAttempt((value) => value + 1);
|
|
6859
|
+
},
|
|
6860
|
+
children: orderedChecks(displayed.checks).map((check, index) => {
|
|
4328
6861
|
const { url } = check;
|
|
4329
6862
|
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
|
|
4330
6863
|
icon: (0, react_jsx_runtime.jsx)(CheckGlyph, { state: check.state }),
|
|
@@ -4492,8 +7025,9 @@ window.__ModuleLoader__.load({
|
|
|
4492
7025
|
(0, react_jsx_runtime.jsx)(ChecksRow, {
|
|
4493
7026
|
snapshot,
|
|
4494
7027
|
openLink: actions.openLink,
|
|
7028
|
+
readChecks: actions.readChecks,
|
|
4495
7029
|
t
|
|
4496
|
-
}),
|
|
7030
|
+
}, snapshot.headSha),
|
|
4497
7031
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
4498
7032
|
className: ForgeTab_module_css_default.row,
|
|
4499
7033
|
children: [
|
|
@@ -4970,7 +7504,7 @@ window.__ModuleLoader__.load({
|
|
|
4970
7504
|
* @param props - tab information, panel snapshot and Host facts hooks, actions, and copy.
|
|
4971
7505
|
* @returns the tab body.
|
|
4972
7506
|
*/
|
|
4973
|
-
function ForgeTab({ useTabInfo, sessionId, usePanel, useHost, useLocale, reconnect, refresh, remove, markReady, merge, restore, openLink, copyText, copyPath, reportVisible, createChangeRequest, t }) {
|
|
7507
|
+
function ForgeTab({ useTabInfo, sessionId, usePanel, useHost, useLocale, reconnect, refresh, remove, markReady, merge, readChecks, restore, openLink, copyText, copyPath, reportVisible, createChangeRequest, t }) {
|
|
4974
7508
|
const snapshot = usePanel((current) => current);
|
|
4975
7509
|
const home = useHost((facts) => facts.home);
|
|
4976
7510
|
const locale = useLocale((value) => value);
|
|
@@ -5019,6 +7553,7 @@ window.__ModuleLoader__.load({
|
|
|
5019
7553
|
remove,
|
|
5020
7554
|
markReady,
|
|
5021
7555
|
merge,
|
|
7556
|
+
readChecks,
|
|
5022
7557
|
viewChanges: (entry) => {
|
|
5023
7558
|
viewChanges({
|
|
5024
7559
|
kind: "change",
|
|
@@ -5206,6 +7741,51 @@ window.__ModuleLoader__.load({
|
|
|
5206
7741
|
const NS = "forgePanel";
|
|
5207
7742
|
/** Chinese copy; its keys define {@link ForgePanelKey}. */
|
|
5208
7743
|
const zh = {
|
|
7744
|
+
"review.startReview": "开始评审",
|
|
7745
|
+
"review.githubActions": "GitHub 评论选项",
|
|
7746
|
+
"review.publishing": "发布中…",
|
|
7747
|
+
"review.submitting": "提交中…",
|
|
7748
|
+
"review.close": "关闭",
|
|
7749
|
+
"review.pending": "待提交",
|
|
7750
|
+
"review.quoted": "已添加到输入框",
|
|
7751
|
+
"review.yourComment": "你的评论",
|
|
7752
|
+
"review.outdated": "代码已更新",
|
|
7753
|
+
"review.done": "完成",
|
|
7754
|
+
"review.addComment": "添加评论",
|
|
7755
|
+
"diff.resizeFileTree": "调整文件树宽度",
|
|
7756
|
+
"diff.fileTree": "文件树",
|
|
7757
|
+
"diff.showFileTreeLeft": "在左侧显示文件树",
|
|
7758
|
+
"diff.moveFileTreeRight": "将文件树移到右侧",
|
|
7759
|
+
"guide.title": "代码审查和变更",
|
|
7760
|
+
"guide.description": "查看代码变更与本会话的变更请求",
|
|
7761
|
+
"diff.hideFileTree": "隐藏文件树",
|
|
7762
|
+
"review.range": "评论 {range}",
|
|
7763
|
+
"review.comment": "留下评论…",
|
|
7764
|
+
"review.cancel": "取消",
|
|
7765
|
+
"review.addToInput": "添加到输入框",
|
|
7766
|
+
"review.publish": "发布单条评论",
|
|
7767
|
+
"review.queue": "加入评审",
|
|
7768
|
+
"review.selectLine": "选择第 {line} 行",
|
|
7769
|
+
"review.inputFailed": "输入框暂时无法添加引用,请稍后重试",
|
|
7770
|
+
"review.saveFailed": "无法保存评审草稿,请检查浏览器存储后重试",
|
|
7771
|
+
"review.unknown": "无法确认提交结果。请先在 GitHub 核对,避免重复发布",
|
|
7772
|
+
"review.submit": "提交评审",
|
|
7773
|
+
"review.summary": "评审总结…",
|
|
7774
|
+
"review.approve": "批准",
|
|
7775
|
+
"review.requestChanges": "请求更改",
|
|
7776
|
+
"review.summaryRequired": "请求更改时,请填写评审总结",
|
|
7777
|
+
"review.commentOnly": "评论",
|
|
7778
|
+
"review.drafts": "待提交评论({count})",
|
|
7779
|
+
"review.edit": "编辑",
|
|
7780
|
+
"review.remove": "删除",
|
|
7781
|
+
"review.stale": "PR 已有新提交,请刷新并重新选择评论行",
|
|
7782
|
+
"review.published": "已发布到 GitHub",
|
|
7783
|
+
"review.submitted": "已提交评审",
|
|
7784
|
+
"review.failed": "提交失败:{message}",
|
|
7785
|
+
"review.unsupported": "此代码托管服务不支持提交评审",
|
|
7786
|
+
"review.loadFailed": "无法读取评审草稿,请检查浏览器存储",
|
|
7787
|
+
"review.recheck": "在 GitHub 查看",
|
|
7788
|
+
"review.confirmRetry": "已核对,允许重新提交",
|
|
5209
7789
|
"tab.title": "变更请求",
|
|
5210
7790
|
"header.label": "本会话的变更请求",
|
|
5211
7791
|
"header.attention": "本会话的变更请求需要处理",
|
|
@@ -5221,7 +7801,7 @@ window.__ModuleLoader__.load({
|
|
|
5221
7801
|
"changes.title": "本会话的变更请求 · {count}",
|
|
5222
7802
|
"changes.empty": "本会话还没有变更请求",
|
|
5223
7803
|
"changes.emptyHint": "本会话关联的变更请求(创建、查看、编辑或检出的,以及所在分支或推送分支上的)会显示在这里",
|
|
5224
|
-
"changes.local.title": "
|
|
7804
|
+
"changes.local.title": "本地变更",
|
|
5225
7805
|
"changes.local.refs": "{head} → {base}",
|
|
5226
7806
|
"changes.local.files": "{count} 个文件",
|
|
5227
7807
|
"changes.local.viewAria": "查看本会话的变更:{count} 个文件,新增 {added} 行,删除 {deleted} 行",
|
|
@@ -5250,12 +7830,17 @@ window.__ModuleLoader__.load({
|
|
|
5250
7830
|
"change.ci.running": "检查中",
|
|
5251
7831
|
"change.ci.passed": "检查通过",
|
|
5252
7832
|
"change.ci.failed": "{count} 项检查失败",
|
|
7833
|
+
"change.ci.cancelled": "已取消 {count} 项检查",
|
|
5253
7834
|
"change.ci.failedUnlisted": "检查失败",
|
|
5254
7835
|
"change.checks.failed": "{count} 项失败",
|
|
5255
7836
|
"change.checks.running": "{count} 项进行中",
|
|
5256
7837
|
"change.checks.passed": "{count} 项通过",
|
|
7838
|
+
"change.checks.cancelled": "{count} 项已取消",
|
|
5257
7839
|
"change.checks.other": "其他 {count} 项",
|
|
5258
|
-
"change.checks.truncated": "
|
|
7840
|
+
"change.checks.truncated": "已加载 {count} 项检查,仍有更多",
|
|
7841
|
+
"change.checks.loading": "正在加载更多检查",
|
|
7842
|
+
"change.checks.loadFailed": "更多检查加载失败:{message}",
|
|
7843
|
+
"change.checks.retry": "重试加载检查",
|
|
5259
7844
|
"change.check.running": "进行中",
|
|
5260
7845
|
"change.check.queued": "排队中",
|
|
5261
7846
|
"change.flag.changesRequested": "要求修改",
|
|
@@ -5305,6 +7890,8 @@ window.__ModuleLoader__.load({
|
|
|
5305
7890
|
"diff.scopeNote.unstaged": "与暂存区比较,包含未跟踪的文件",
|
|
5306
7891
|
"diff.scopeNote.staged": "暂存区与 HEAD 比较",
|
|
5307
7892
|
"diff.allFiles": "全部 {count} 个文件",
|
|
7893
|
+
"diff.filterFiles": "筛选文件…",
|
|
7894
|
+
"diff.noMatchingFiles": "没有匹配的文件",
|
|
5308
7895
|
"diff.refresh": "刷新变更",
|
|
5309
7896
|
"diff.expandAll": "全部展开",
|
|
5310
7897
|
"diff.collapseAll": "全部折叠",
|
|
@@ -5327,6 +7914,7 @@ window.__ModuleLoader__.load({
|
|
|
5327
7914
|
"diff.fileTooLarge": "文件太大,无法显示变更",
|
|
5328
7915
|
"diff.error": "无法读取变更",
|
|
5329
7916
|
"diff.tooLarge": "变更太大,无法在这里显示",
|
|
7917
|
+
"diff.filterConfigFailed": "无法完整读取 Git 过滤器配置,尚未执行比较。请检查 Git 配置和读取上限后重试",
|
|
5330
7918
|
"diff.viewInBrowser": "在浏览器中查看",
|
|
5331
7919
|
"diff.noForkPoint": "找不到本分支的分叉点,请选择其他范围",
|
|
5332
7920
|
"diff.empty": "没有变更",
|
|
@@ -5346,15 +7934,16 @@ window.__ModuleLoader__.load({
|
|
|
5346
7934
|
"duration.seconds": "{seconds} 秒",
|
|
5347
7935
|
"duration.minutes": "{minutes} 分 {seconds} 秒",
|
|
5348
7936
|
"duration.hours": "{hours} 小时 {minutes} 分",
|
|
5349
|
-
"worktree.label": "
|
|
7937
|
+
"worktree.label": "新建工作树",
|
|
5350
7938
|
"worktree.hint": "在独立的工作树中运行本会话:发送后基于所选分支新建分支,修改和提交不影响项目目录",
|
|
5351
|
-
"worktree.blocked.not-git": "工作区不是 Git 仓库,无法使用工作树",
|
|
5352
7939
|
"worktree.blocked.outside-writable-root": "这个工作区的 Git 数据不在可写目录中(例如工作区本身就是工作树),暂不支持使用工作树",
|
|
5353
7940
|
"worktree.blocked.read-only": "只读模式下无法使用工作树",
|
|
5354
7941
|
"worktree.base": "基于 {branch}",
|
|
5355
7942
|
"worktree.baseHead": "基于当前 HEAD",
|
|
5356
7943
|
"worktree.baseMenu": "选择基准分支",
|
|
5357
7944
|
"worktree.currentBranch": "当前分支",
|
|
7945
|
+
"worktree.currentBranchTip": "当前分支:{branch}",
|
|
7946
|
+
"worktree.detachedTip": "未在分支上 · {commit}",
|
|
5358
7947
|
"creation.title": "正在创建工作树",
|
|
5359
7948
|
"creation.failed": "创建工作树失败",
|
|
5360
7949
|
"creation.prepare": "创建分支",
|
|
@@ -5408,6 +7997,51 @@ window.__ModuleLoader__.load({
|
|
|
5408
7997
|
};
|
|
5409
7998
|
/** English copy with the same keys. */
|
|
5410
7999
|
const en = {
|
|
8000
|
+
"review.startReview": "Start review",
|
|
8001
|
+
"review.githubActions": "GitHub comment options",
|
|
8002
|
+
"review.publishing": "Publishing…",
|
|
8003
|
+
"review.submitting": "Submitting…",
|
|
8004
|
+
"review.close": "Close",
|
|
8005
|
+
"review.pending": "Pending",
|
|
8006
|
+
"review.quoted": "Added to input",
|
|
8007
|
+
"review.yourComment": "Your comment",
|
|
8008
|
+
"review.outdated": "Code updated",
|
|
8009
|
+
"review.done": "Done",
|
|
8010
|
+
"review.addComment": "Add comment",
|
|
8011
|
+
"diff.resizeFileTree": "Resize file tree",
|
|
8012
|
+
"diff.fileTree": "File tree",
|
|
8013
|
+
"diff.showFileTreeLeft": "Show file tree on the left",
|
|
8014
|
+
"diff.moveFileTreeRight": "Move file tree to the right",
|
|
8015
|
+
"guide.title": "Code review and changes",
|
|
8016
|
+
"guide.description": "Review code changes and this session’s change requests",
|
|
8017
|
+
"diff.hideFileTree": "Hide file tree",
|
|
8018
|
+
"review.range": "Comment on {range}",
|
|
8019
|
+
"review.comment": "Leave a comment…",
|
|
8020
|
+
"review.cancel": "Cancel",
|
|
8021
|
+
"review.addToInput": "Add to input",
|
|
8022
|
+
"review.publish": "Publish single comment",
|
|
8023
|
+
"review.queue": "Add to review",
|
|
8024
|
+
"review.selectLine": "Select line {line}",
|
|
8025
|
+
"review.inputFailed": "The input cannot accept a reference yet. Try again shortly.",
|
|
8026
|
+
"review.saveFailed": "Could not save the review draft. Check browser storage and try again.",
|
|
8027
|
+
"review.unknown": "The submission outcome is unknown. Check GitHub before publishing again.",
|
|
8028
|
+
"review.submit": "Submit review",
|
|
8029
|
+
"review.summary": "Review summary…",
|
|
8030
|
+
"review.approve": "Approve",
|
|
8031
|
+
"review.requestChanges": "Request changes",
|
|
8032
|
+
"review.summaryRequired": "Enter a review summary to request changes.",
|
|
8033
|
+
"review.commentOnly": "Comment",
|
|
8034
|
+
"review.drafts": "Pending comments ({count})",
|
|
8035
|
+
"review.edit": "Edit",
|
|
8036
|
+
"review.remove": "Delete",
|
|
8037
|
+
"review.stale": "The PR has new commits. Refresh and select the comment lines again.",
|
|
8038
|
+
"review.published": "Published to GitHub",
|
|
8039
|
+
"review.submitted": "Review submitted",
|
|
8040
|
+
"review.failed": "Submission failed: {message}",
|
|
8041
|
+
"review.unsupported": "This code host does not support review submission.",
|
|
8042
|
+
"review.loadFailed": "Could not read review drafts. Check browser storage.",
|
|
8043
|
+
"review.recheck": "View on GitHub",
|
|
8044
|
+
"review.confirmRetry": "Checked; allow resubmission",
|
|
5411
8045
|
"tab.title": "Change requests",
|
|
5412
8046
|
"header.label": "Change requests of this Session",
|
|
5413
8047
|
"header.attention": "Change requests of this Session need attention",
|
|
@@ -5423,7 +8057,7 @@ window.__ModuleLoader__.load({
|
|
|
5423
8057
|
"changes.title": "Change requests of this Session · {count}",
|
|
5424
8058
|
"changes.empty": "This Session has no change requests yet",
|
|
5425
8059
|
"changes.emptyHint": "Change requests linked to this Session (created, viewed, edited, or checked out, or open on its current or pushed branches) appear here",
|
|
5426
|
-
"changes.local.title": "
|
|
8060
|
+
"changes.local.title": "Local changes",
|
|
5427
8061
|
"changes.local.refs": "{head} → {base}",
|
|
5428
8062
|
"changes.local.files": "{count} files",
|
|
5429
8063
|
"changes.local.viewAria": "View the changes of this Session: {count} files, {added} lines added, {deleted} lines deleted",
|
|
@@ -5452,12 +8086,17 @@ window.__ModuleLoader__.load({
|
|
|
5452
8086
|
"change.ci.running": "Checks running",
|
|
5453
8087
|
"change.ci.passed": "Checks passed",
|
|
5454
8088
|
"change.ci.failed": "{count} checks failed",
|
|
8089
|
+
"change.ci.cancelled": "{count} checks cancelled",
|
|
5455
8090
|
"change.ci.failedUnlisted": "Checks failed",
|
|
5456
8091
|
"change.checks.failed": "{count} failed",
|
|
5457
8092
|
"change.checks.running": "{count} running",
|
|
5458
8093
|
"change.checks.passed": "{count} passed",
|
|
8094
|
+
"change.checks.cancelled": "{count} cancelled",
|
|
5459
8095
|
"change.checks.other": "{count} other",
|
|
5460
|
-
"change.checks.truncated": "
|
|
8096
|
+
"change.checks.truncated": "{count} checks loaded; more available",
|
|
8097
|
+
"change.checks.loading": "Loading more checks",
|
|
8098
|
+
"change.checks.loadFailed": "Could not load more checks: {message}",
|
|
8099
|
+
"change.checks.retry": "Retry loading checks",
|
|
5461
8100
|
"change.check.running": "Running",
|
|
5462
8101
|
"change.check.queued": "Queued",
|
|
5463
8102
|
"change.flag.changesRequested": "Changes requested",
|
|
@@ -5507,6 +8146,8 @@ window.__ModuleLoader__.load({
|
|
|
5507
8146
|
"diff.scopeNote.unstaged": "Compared with the index, including untracked files",
|
|
5508
8147
|
"diff.scopeNote.staged": "The index compared with HEAD",
|
|
5509
8148
|
"diff.allFiles": "All {count} files",
|
|
8149
|
+
"diff.filterFiles": "Filter files…",
|
|
8150
|
+
"diff.noMatchingFiles": "No matching files",
|
|
5510
8151
|
"diff.refresh": "Refresh changes",
|
|
5511
8152
|
"diff.expandAll": "Expand all files",
|
|
5512
8153
|
"diff.collapseAll": "Collapse all files",
|
|
@@ -5529,6 +8170,7 @@ window.__ModuleLoader__.load({
|
|
|
5529
8170
|
"diff.fileTooLarge": "This file is too large to show",
|
|
5530
8171
|
"diff.error": "The changes could not be read",
|
|
5531
8172
|
"diff.tooLarge": "These changes are too large to show here",
|
|
8173
|
+
"diff.filterConfigFailed": "No comparison was run because Git filter settings could not be read completely. Check the Git settings and output limit, then retry.",
|
|
5532
8174
|
"diff.viewInBrowser": "View in browser",
|
|
5533
8175
|
"diff.noForkPoint": "No fork point was found for this branch; choose another scope",
|
|
5534
8176
|
"diff.empty": "No changes",
|
|
@@ -5548,15 +8190,16 @@ window.__ModuleLoader__.load({
|
|
|
5548
8190
|
"duration.seconds": "{seconds}s",
|
|
5549
8191
|
"duration.minutes": "{minutes}m {seconds}s",
|
|
5550
8192
|
"duration.hours": "{hours}h {minutes}m",
|
|
5551
|
-
"worktree.label": "
|
|
8193
|
+
"worktree.label": "New worktree",
|
|
5552
8194
|
"worktree.hint": "Run this Session in its own worktree: sending creates a new branch from the chosen one, so changes and commits leave the project directory alone",
|
|
5553
|
-
"worktree.blocked.not-git": "This workspace is not a Git repository, so it cannot use a worktree",
|
|
5554
8195
|
"worktree.blocked.outside-writable-root": "The Git data of this workspace is outside the writable directories, as when the workspace is itself a worktree, so it cannot use a worktree yet",
|
|
5555
8196
|
"worktree.blocked.read-only": "A read-only Session cannot use a worktree",
|
|
5556
8197
|
"worktree.base": "From {branch}",
|
|
5557
8198
|
"worktree.baseHead": "From the current HEAD",
|
|
5558
8199
|
"worktree.baseMenu": "Base branch",
|
|
5559
8200
|
"worktree.currentBranch": "Current",
|
|
8201
|
+
"worktree.currentBranchTip": "Current branch: {branch}",
|
|
8202
|
+
"worktree.detachedTip": "Not on a branch · {commit}",
|
|
5560
8203
|
"creation.title": "Creating the worktree",
|
|
5561
8204
|
"creation.failed": "The worktree could not be created",
|
|
5562
8205
|
"creation.prepare": "Create the branch",
|
|
@@ -5610,6 +8253,51 @@ window.__ModuleLoader__.load({
|
|
|
5610
8253
|
};
|
|
5611
8254
|
/** Japanese copy with the same keys. */
|
|
5612
8255
|
const ja = {
|
|
8256
|
+
"review.startReview": "レビューを開始",
|
|
8257
|
+
"review.githubActions": "GitHub コメントの操作",
|
|
8258
|
+
"review.publishing": "投稿中…",
|
|
8259
|
+
"review.submitting": "送信中…",
|
|
8260
|
+
"review.close": "閉じる",
|
|
8261
|
+
"review.pending": "保留中",
|
|
8262
|
+
"review.quoted": "入力欄に追加済み",
|
|
8263
|
+
"review.yourComment": "自分のコメント",
|
|
8264
|
+
"review.outdated": "コード更新済み",
|
|
8265
|
+
"review.done": "完了",
|
|
8266
|
+
"review.addComment": "コメントを追加",
|
|
8267
|
+
"diff.resizeFileTree": "ファイルツリーの幅を変更",
|
|
8268
|
+
"diff.fileTree": "ファイルツリー",
|
|
8269
|
+
"diff.showFileTreeLeft": "ファイルツリーを左側に表示",
|
|
8270
|
+
"diff.moveFileTreeRight": "ファイルツリーを右側に移動",
|
|
8271
|
+
"guide.title": "コードレビューと変更",
|
|
8272
|
+
"guide.description": "コードの変更とこのセッションの変更リクエストを確認",
|
|
8273
|
+
"diff.hideFileTree": "ファイルツリーを非表示",
|
|
8274
|
+
"review.range": "{range} にコメント",
|
|
8275
|
+
"review.comment": "コメントを入力…",
|
|
8276
|
+
"review.cancel": "キャンセル",
|
|
8277
|
+
"review.addToInput": "入力欄に追加",
|
|
8278
|
+
"review.publish": "単独コメントを投稿",
|
|
8279
|
+
"review.queue": "レビューに追加",
|
|
8280
|
+
"review.selectLine": "{line} 行を選択",
|
|
8281
|
+
"review.inputFailed": "入力欄に引用を追加できません。後でもう一度お試しください。",
|
|
8282
|
+
"review.saveFailed": "レビューの下書きを保存できません。ブラウザーのストレージを確認してください。",
|
|
8283
|
+
"review.unknown": "送信結果を確認できません。再投稿する前に GitHub を確認してください。",
|
|
8284
|
+
"review.submit": "レビューを送信",
|
|
8285
|
+
"review.summary": "レビューの要約…",
|
|
8286
|
+
"review.approve": "承認",
|
|
8287
|
+
"review.requestChanges": "変更を要求",
|
|
8288
|
+
"review.summaryRequired": "変更を要求するには、レビューの概要を入力してください。",
|
|
8289
|
+
"review.commentOnly": "コメント",
|
|
8290
|
+
"review.drafts": "保留中のコメント({count})",
|
|
8291
|
+
"review.edit": "編集",
|
|
8292
|
+
"review.remove": "削除",
|
|
8293
|
+
"review.stale": "PR に新しいコミットがあります。更新してコメント行を選び直してください。",
|
|
8294
|
+
"review.published": "GitHub に投稿しました",
|
|
8295
|
+
"review.submitted": "レビューを送信しました",
|
|
8296
|
+
"review.failed": "送信に失敗しました:{message}",
|
|
8297
|
+
"review.unsupported": "このホストはレビューの送信に対応していません。",
|
|
8298
|
+
"review.loadFailed": "下書きを読み込めません。ブラウザーのストレージを確認してください。",
|
|
8299
|
+
"review.recheck": "GitHub で表示",
|
|
8300
|
+
"review.confirmRetry": "確認済み・再送信を許可",
|
|
5613
8301
|
"list.worktree": "専用のワークツリー内",
|
|
5614
8302
|
"list.stateChecks": "{state} · {checks}",
|
|
5615
8303
|
"list.more": "他 {count} 件の変更リクエスト",
|
|
@@ -5628,7 +8316,7 @@ window.__ModuleLoader__.load({
|
|
|
5628
8316
|
"changes.title": "このセッションの変更リクエスト · {count}",
|
|
5629
8317
|
"changes.empty": "このセッションにはまだ変更リクエストがありません",
|
|
5630
8318
|
"changes.emptyHint": "このセッションで作成、表示、編集、チェックアウトした変更リクエストや、現在のブランチまたはプッシュしたブランチで開いている変更リクエストがここに表示されます",
|
|
5631
|
-
"changes.local.title": "
|
|
8319
|
+
"changes.local.title": "ローカルの変更",
|
|
5632
8320
|
"changes.local.refs": "{head} → {base}",
|
|
5633
8321
|
"changes.local.files": "{count} ファイル",
|
|
5634
8322
|
"changes.local.viewAria": "このセッションの変更を表示:{count} ファイル、{added} 行追加、{deleted} 行削除",
|
|
@@ -5654,12 +8342,17 @@ window.__ModuleLoader__.load({
|
|
|
5654
8342
|
"change.ci.running": "チェック実行中",
|
|
5655
8343
|
"change.ci.passed": "チェック成功",
|
|
5656
8344
|
"change.ci.failed": "{count} 件のチェックが失敗",
|
|
8345
|
+
"change.ci.cancelled": "{count} 件のチェックがキャンセルされました",
|
|
5657
8346
|
"change.ci.failedUnlisted": "チェック失敗",
|
|
5658
8347
|
"change.checks.failed": "{count} 件失敗",
|
|
5659
8348
|
"change.checks.running": "{count} 件実行中",
|
|
5660
8349
|
"change.checks.passed": "{count} 件成功",
|
|
8350
|
+
"change.checks.cancelled": "{count} 件キャンセル",
|
|
5661
8351
|
"change.checks.other": "その他 {count} 件",
|
|
5662
|
-
"change.checks.truncated": "
|
|
8352
|
+
"change.checks.truncated": "{count} 件のチェックを読み込み済み(続きあり)",
|
|
8353
|
+
"change.checks.loading": "追加のチェックを読み込み中",
|
|
8354
|
+
"change.checks.loadFailed": "追加のチェックを読み込めませんでした: {message}",
|
|
8355
|
+
"change.checks.retry": "チェックの読み込みを再試行",
|
|
5663
8356
|
"change.check.running": "実行中",
|
|
5664
8357
|
"change.check.queued": "キュー待ち",
|
|
5665
8358
|
"change.flag.changesRequested": "変更が要求されています",
|
|
@@ -5709,6 +8402,8 @@ window.__ModuleLoader__.load({
|
|
|
5709
8402
|
"diff.scopeNote.unstaged": "インデックスと比較、未追跡ファイルを含む",
|
|
5710
8403
|
"diff.scopeNote.staged": "インデックスと HEAD を比較",
|
|
5711
8404
|
"diff.allFiles": "全 {count} ファイル",
|
|
8405
|
+
"diff.filterFiles": "ファイルを絞り込み…",
|
|
8406
|
+
"diff.noMatchingFiles": "一致するファイルがありません",
|
|
5712
8407
|
"diff.refresh": "変更を更新",
|
|
5713
8408
|
"diff.expandAll": "すべてのファイルを展開",
|
|
5714
8409
|
"diff.collapseAll": "すべてのファイルを折りたたむ",
|
|
@@ -5731,6 +8426,7 @@ window.__ModuleLoader__.load({
|
|
|
5731
8426
|
"diff.fileTooLarge": "ファイルが大きすぎて表示できません",
|
|
5732
8427
|
"diff.error": "変更を読み取れませんでした",
|
|
5733
8428
|
"diff.tooLarge": "変更が大きすぎるため、ここには表示できません",
|
|
8429
|
+
"diff.filterConfigFailed": "Git フィルター設定を完全に読み取れないため、比較を実行していません。Git の設定と出力上限を確認して再試行してください。",
|
|
5734
8430
|
"diff.viewInBrowser": "ブラウザーで表示",
|
|
5735
8431
|
"diff.noForkPoint": "このブランチの分岐点が見つかりません。別の範囲を選んでください",
|
|
5736
8432
|
"diff.empty": "変更なし",
|
|
@@ -5750,15 +8446,16 @@ window.__ModuleLoader__.load({
|
|
|
5750
8446
|
"duration.seconds": "{seconds}秒",
|
|
5751
8447
|
"duration.minutes": "{minutes}分 {seconds}秒",
|
|
5752
8448
|
"duration.hours": "{hours}時間 {minutes}分",
|
|
5753
|
-
"worktree.label": "
|
|
8449
|
+
"worktree.label": "新しいワークツリー",
|
|
5754
8450
|
"worktree.hint": "このセッションを専用のワークツリーで実行します。送信時に選択したブランチから新しいブランチを作成するため、変更やコミットはプロジェクトディレクトリに影響しません",
|
|
5755
|
-
"worktree.blocked.not-git": "このワークスペースは Git リポジトリではないため、ワークツリーを使用できません",
|
|
5756
8451
|
"worktree.blocked.outside-writable-root": "このワークスペースの Git データが書き込み可能なディレクトリ外にあります。ワークスペース自体がワークツリーである場合などは、まだワークツリーを使用できません",
|
|
5757
8452
|
"worktree.blocked.read-only": "読み取り専用のセッションではワークツリーを使用できません",
|
|
5758
8453
|
"worktree.base": "基点 {branch}",
|
|
5759
8454
|
"worktree.baseHead": "現在の HEAD を基点にする",
|
|
5760
8455
|
"worktree.baseMenu": "基準ブランチ",
|
|
5761
8456
|
"worktree.currentBranch": "現在",
|
|
8457
|
+
"worktree.currentBranchTip": "現在のブランチ:{branch}",
|
|
8458
|
+
"worktree.detachedTip": "ブランチ上にありません · {commit}",
|
|
5762
8459
|
"creation.title": "ワークツリーを作成中",
|
|
5763
8460
|
"creation.failed": "ワークツリーを作成できませんでした",
|
|
5764
8461
|
"creation.prepare": "ブランチを作成",
|
|
@@ -5812,6 +8509,51 @@ window.__ModuleLoader__.load({
|
|
|
5812
8509
|
};
|
|
5813
8510
|
/** Spanish copy with the same keys. */
|
|
5814
8511
|
const es = {
|
|
8512
|
+
"review.startReview": "Iniciar revisión",
|
|
8513
|
+
"review.githubActions": "Opciones de comentario de GitHub",
|
|
8514
|
+
"review.publishing": "Publicando…",
|
|
8515
|
+
"review.submitting": "Enviando…",
|
|
8516
|
+
"review.close": "Cerrar",
|
|
8517
|
+
"review.pending": "Pendiente",
|
|
8518
|
+
"review.quoted": "Añadido al campo de entrada",
|
|
8519
|
+
"review.yourComment": "Tu comentario",
|
|
8520
|
+
"review.outdated": "Código actualizado",
|
|
8521
|
+
"review.done": "Listo",
|
|
8522
|
+
"review.addComment": "Añadir comentario",
|
|
8523
|
+
"diff.resizeFileTree": "Cambiar el ancho del árbol",
|
|
8524
|
+
"diff.fileTree": "Árbol de archivos",
|
|
8525
|
+
"diff.showFileTreeLeft": "Mostrar árbol de archivos a la izquierda",
|
|
8526
|
+
"diff.moveFileTreeRight": "Mover árbol de archivos a la derecha",
|
|
8527
|
+
"guide.title": "Revisión de código y cambios",
|
|
8528
|
+
"guide.description": "Revisar los cambios de código y las solicitudes de cambio de esta sesión",
|
|
8529
|
+
"diff.hideFileTree": "Ocultar árbol de archivos",
|
|
8530
|
+
"review.range": "Comentar {range}",
|
|
8531
|
+
"review.comment": "Escribe un comentario…",
|
|
8532
|
+
"review.cancel": "Cancelar",
|
|
8533
|
+
"review.addToInput": "Añadir al campo de entrada",
|
|
8534
|
+
"review.publish": "Publicar comentario individual",
|
|
8535
|
+
"review.queue": "Añadir a la revisión",
|
|
8536
|
+
"review.selectLine": "Seleccionar línea {line}",
|
|
8537
|
+
"review.inputFailed": "No se puede añadir la referencia. Inténtalo más tarde.",
|
|
8538
|
+
"review.saveFailed": "No se pudo guardar el borrador. Comprueba el almacenamiento del navegador.",
|
|
8539
|
+
"review.unknown": "El resultado del envío es desconocido. Comprueba GitHub antes de volver a publicar.",
|
|
8540
|
+
"review.submit": "Enviar revisión",
|
|
8541
|
+
"review.summary": "Resumen de la revisión…",
|
|
8542
|
+
"review.approve": "Aprobar",
|
|
8543
|
+
"review.requestChanges": "Solicitar cambios",
|
|
8544
|
+
"review.summaryRequired": "Escribe un resumen de la revisión para solicitar cambios.",
|
|
8545
|
+
"review.commentOnly": "Comentar",
|
|
8546
|
+
"review.drafts": "Comentarios pendientes ({count})",
|
|
8547
|
+
"review.edit": "Editar",
|
|
8548
|
+
"review.remove": "Eliminar",
|
|
8549
|
+
"review.stale": "El PR tiene nuevos commits. Actualiza y vuelve a seleccionar las líneas.",
|
|
8550
|
+
"review.published": "Publicado en GitHub",
|
|
8551
|
+
"review.submitted": "Revisión enviada",
|
|
8552
|
+
"review.failed": "Error al enviar: {message}",
|
|
8553
|
+
"review.unsupported": "Este servicio no admite el envío de revisiones.",
|
|
8554
|
+
"review.loadFailed": "No se pudieron leer los borradores. Comprueba el almacenamiento del navegador.",
|
|
8555
|
+
"review.recheck": "Ver en GitHub",
|
|
8556
|
+
"review.confirmRetry": "Comprobado; permitir reenvío",
|
|
5815
8557
|
"list.worktree": "En su propio árbol de trabajo",
|
|
5816
8558
|
"list.stateChecks": "{state} · {checks}",
|
|
5817
8559
|
"list.more": "{count} solicitudes de cambio más",
|
|
@@ -5830,7 +8572,7 @@ window.__ModuleLoader__.load({
|
|
|
5830
8572
|
"changes.title": "Solicitudes de cambio de esta sesión · {count}",
|
|
5831
8573
|
"changes.empty": "Esta sesión aún no tiene solicitudes de cambio",
|
|
5832
8574
|
"changes.emptyHint": "Aquí aparecen las solicitudes vinculadas a esta sesión: creadas, consultadas, editadas o extraídas, o abiertas en sus ramas actuales o enviadas",
|
|
5833
|
-
"changes.local.title": "Cambios",
|
|
8575
|
+
"changes.local.title": "Cambios locales",
|
|
5834
8576
|
"changes.local.refs": "{head} → {base}",
|
|
5835
8577
|
"changes.local.files": "{count} archivos",
|
|
5836
8578
|
"changes.local.viewAria": "Ver cambios de esta sesión: {count} archivos, {added} líneas añadidas y {deleted} eliminadas",
|
|
@@ -5856,12 +8598,17 @@ window.__ModuleLoader__.load({
|
|
|
5856
8598
|
"change.ci.running": "Comprobaciones en curso",
|
|
5857
8599
|
"change.ci.passed": "Comprobaciones superadas",
|
|
5858
8600
|
"change.ci.failed": "{count} comprobaciones fallidas",
|
|
8601
|
+
"change.ci.cancelled": "{count} comprobaciones canceladas",
|
|
5859
8602
|
"change.ci.failedUnlisted": "Comprobaciones fallidas",
|
|
5860
8603
|
"change.checks.failed": "{count} fallidas",
|
|
5861
8604
|
"change.checks.running": "{count} en curso",
|
|
5862
8605
|
"change.checks.passed": "{count} superadas",
|
|
8606
|
+
"change.checks.cancelled": "{count} canceladas",
|
|
5863
8607
|
"change.checks.other": "{count} más",
|
|
5864
|
-
"change.checks.truncated": "
|
|
8608
|
+
"change.checks.truncated": "{count} comprobaciones cargadas; hay más",
|
|
8609
|
+
"change.checks.loading": "Cargando más comprobaciones",
|
|
8610
|
+
"change.checks.loadFailed": "No se pudieron cargar más comprobaciones: {message}",
|
|
8611
|
+
"change.checks.retry": "Reintentar cargar comprobaciones",
|
|
5865
8612
|
"change.check.running": "En curso",
|
|
5866
8613
|
"change.check.queued": "En cola",
|
|
5867
8614
|
"change.flag.changesRequested": "Cambios solicitados",
|
|
@@ -5911,6 +8658,8 @@ window.__ModuleLoader__.load({
|
|
|
5911
8658
|
"diff.scopeNote.unstaged": "Comparado con el índice, incluidos los archivos sin seguimiento",
|
|
5912
8659
|
"diff.scopeNote.staged": "Índice comparado con HEAD",
|
|
5913
8660
|
"diff.allFiles": "Los {count} archivos",
|
|
8661
|
+
"diff.filterFiles": "Filtrar archivos…",
|
|
8662
|
+
"diff.noMatchingFiles": "No hay archivos coincidentes",
|
|
5914
8663
|
"diff.refresh": "Actualizar cambios",
|
|
5915
8664
|
"diff.expandAll": "Expandir todos los archivos",
|
|
5916
8665
|
"diff.collapseAll": "Contraer todos los archivos",
|
|
@@ -5933,6 +8682,7 @@ window.__ModuleLoader__.load({
|
|
|
5933
8682
|
"diff.fileTooLarge": "Este archivo es demasiado grande para mostrarlo",
|
|
5934
8683
|
"diff.error": "No se pudieron leer los cambios",
|
|
5935
8684
|
"diff.tooLarge": "Estos cambios son demasiado grandes para mostrarlos aquí",
|
|
8685
|
+
"diff.filterConfigFailed": "No se pudo leer toda la configuración de filtros de Git. No se realizó la comparación. Comprueba la configuración de Git y el límite de salida, y vuelve a intentarlo.",
|
|
5936
8686
|
"diff.viewInBrowser": "Ver en el navegador",
|
|
5937
8687
|
"diff.noForkPoint": "No se encontró el punto de bifurcación de esta rama; elige otro ámbito",
|
|
5938
8688
|
"diff.empty": "Sin cambios",
|
|
@@ -5952,15 +8702,16 @@ window.__ModuleLoader__.load({
|
|
|
5952
8702
|
"duration.seconds": "{seconds}s",
|
|
5953
8703
|
"duration.minutes": "{minutes} min {seconds} s",
|
|
5954
8704
|
"duration.hours": "{hours} h {minutes} min",
|
|
5955
|
-
"worktree.label": "
|
|
8705
|
+
"worktree.label": "Nuevo árbol de trabajo",
|
|
5956
8706
|
"worktree.hint": "Ejecuta esta sesión en su propio árbol de trabajo: al enviar se crea una rama desde la elegida, sin que los cambios ni los commits afecten al directorio del proyecto",
|
|
5957
|
-
"worktree.blocked.not-git": "Este espacio de trabajo no es un repositorio Git y no puede usar un árbol de trabajo",
|
|
5958
8707
|
"worktree.blocked.outside-writable-root": "Los datos Git están fuera de los directorios con permiso de escritura, como cuando el espacio ya es un árbol de trabajo; aún no se puede usar otro árbol",
|
|
5959
8708
|
"worktree.blocked.read-only": "Una sesión de solo lectura no puede usar un árbol de trabajo",
|
|
5960
8709
|
"worktree.base": "Desde {branch}",
|
|
5961
8710
|
"worktree.baseHead": "Desde el HEAD actual",
|
|
5962
8711
|
"worktree.baseMenu": "Rama base",
|
|
5963
8712
|
"worktree.currentBranch": "Actual",
|
|
8713
|
+
"worktree.currentBranchTip": "Rama actual: {branch}",
|
|
8714
|
+
"worktree.detachedTip": "Sin rama activa · {commit}",
|
|
5964
8715
|
"creation.title": "Creando el árbol de trabajo",
|
|
5965
8716
|
"creation.failed": "No se pudo crear el árbol de trabajo",
|
|
5966
8717
|
"creation.prepare": "Crear la rama",
|
|
@@ -6014,6 +8765,51 @@ window.__ModuleLoader__.load({
|
|
|
6014
8765
|
};
|
|
6015
8766
|
/** French copy with the same keys. */
|
|
6016
8767
|
const fr = {
|
|
8768
|
+
"review.startReview": "Commencer la revue",
|
|
8769
|
+
"review.githubActions": "Options de commentaire GitHub",
|
|
8770
|
+
"review.publishing": "Publication…",
|
|
8771
|
+
"review.submitting": "Envoi…",
|
|
8772
|
+
"review.close": "Fermer",
|
|
8773
|
+
"review.pending": "En attente",
|
|
8774
|
+
"review.quoted": "Ajouté au champ de saisie",
|
|
8775
|
+
"review.yourComment": "Votre commentaire",
|
|
8776
|
+
"review.outdated": "Code mis à jour",
|
|
8777
|
+
"review.done": "Terminé",
|
|
8778
|
+
"review.addComment": "Ajouter un commentaire",
|
|
8779
|
+
"diff.resizeFileTree": "Redimensionner l’arborescence",
|
|
8780
|
+
"diff.fileTree": "Arborescence des fichiers",
|
|
8781
|
+
"diff.showFileTreeLeft": "Afficher l’arborescence à gauche",
|
|
8782
|
+
"diff.moveFileTreeRight": "Déplacer l’arborescence à droite",
|
|
8783
|
+
"guide.title": "Revue de code et modifications",
|
|
8784
|
+
"guide.description": "Examiner les modifications du code et les demandes de modification de cette session",
|
|
8785
|
+
"diff.hideFileTree": "Masquer l’arborescence",
|
|
8786
|
+
"review.range": "Commenter {range}",
|
|
8787
|
+
"review.comment": "Laisser un commentaire…",
|
|
8788
|
+
"review.cancel": "Annuler",
|
|
8789
|
+
"review.addToInput": "Ajouter au champ de saisie",
|
|
8790
|
+
"review.publish": "Publier un commentaire seul",
|
|
8791
|
+
"review.queue": "Ajouter à la revue",
|
|
8792
|
+
"review.selectLine": "Sélectionner la ligne {line}",
|
|
8793
|
+
"review.inputFailed": "Impossible d’ajouter la référence. Réessayez plus tard.",
|
|
8794
|
+
"review.saveFailed": "Impossible d’enregistrer le brouillon. Vérifiez le stockage du navigateur.",
|
|
8795
|
+
"review.unknown": "Le résultat de l’envoi est inconnu. Vérifiez GitHub avant de republier.",
|
|
8796
|
+
"review.submit": "Envoyer la revue",
|
|
8797
|
+
"review.summary": "Résumé de la revue…",
|
|
8798
|
+
"review.approve": "Approuver",
|
|
8799
|
+
"review.requestChanges": "Demander des modifications",
|
|
8800
|
+
"review.summaryRequired": "Saisissez un résumé de la revue pour demander des modifications.",
|
|
8801
|
+
"review.commentOnly": "Commenter",
|
|
8802
|
+
"review.drafts": "Commentaires en attente ({count})",
|
|
8803
|
+
"review.edit": "Modifier",
|
|
8804
|
+
"review.remove": "Supprimer",
|
|
8805
|
+
"review.stale": "La PR contient de nouveaux commits. Actualisez et sélectionnez à nouveau les lignes.",
|
|
8806
|
+
"review.published": "Publié sur GitHub",
|
|
8807
|
+
"review.submitted": "Revue envoyée",
|
|
8808
|
+
"review.failed": "Échec de l’envoi : {message}",
|
|
8809
|
+
"review.unsupported": "Ce service ne prend pas en charge l’envoi de revues.",
|
|
8810
|
+
"review.loadFailed": "Impossible de lire les brouillons. Vérifiez le stockage du navigateur.",
|
|
8811
|
+
"review.recheck": "Voir sur GitHub",
|
|
8812
|
+
"review.confirmRetry": "Vérifié ; autoriser un nouvel envoi",
|
|
6017
8813
|
"list.worktree": "Dans son propre arbre de travail",
|
|
6018
8814
|
"list.stateChecks": "{state} · {checks}",
|
|
6019
8815
|
"list.more": "{count} demandes de changement supplémentaires",
|
|
@@ -6032,7 +8828,7 @@ window.__ModuleLoader__.load({
|
|
|
6032
8828
|
"changes.title": "Demandes de modification de cette session · {count}",
|
|
6033
8829
|
"changes.empty": "Cette session n’a pas encore de demande de modification",
|
|
6034
8830
|
"changes.emptyHint": "Les demandes liées à cette session apparaissent ici : créées, consultées, modifiées ou extraites, ou ouvertes sur ses branches actuelles ou envoyées",
|
|
6035
|
-
"changes.local.title": "Modifications",
|
|
8831
|
+
"changes.local.title": "Modifications locales",
|
|
6036
8832
|
"changes.local.refs": "{head} → {base}",
|
|
6037
8833
|
"changes.local.files": "{count} fichiers",
|
|
6038
8834
|
"changes.local.viewAria": "Voir les modifications de cette session : {count} fichiers, {added} lignes ajoutées et {deleted} supprimées",
|
|
@@ -6058,12 +8854,17 @@ window.__ModuleLoader__.load({
|
|
|
6058
8854
|
"change.ci.running": "Vérifications en cours",
|
|
6059
8855
|
"change.ci.passed": "Vérifications réussies",
|
|
6060
8856
|
"change.ci.failed": "{count} vérifications échouées",
|
|
8857
|
+
"change.ci.cancelled": "{count} vérifications annulées",
|
|
6061
8858
|
"change.ci.failedUnlisted": "Échec des vérifications",
|
|
6062
8859
|
"change.checks.failed": "{count} échouées",
|
|
6063
8860
|
"change.checks.running": "{count} en cours",
|
|
6064
8861
|
"change.checks.passed": "{count} réussies",
|
|
8862
|
+
"change.checks.cancelled": "{count} annulées",
|
|
6065
8863
|
"change.checks.other": "{count} autres",
|
|
6066
|
-
"change.checks.truncated": "
|
|
8864
|
+
"change.checks.truncated": "{count} vérifications chargées ; d’autres sont disponibles",
|
|
8865
|
+
"change.checks.loading": "Chargement des autres vérifications",
|
|
8866
|
+
"change.checks.loadFailed": "Impossible de charger les autres vérifications : {message}",
|
|
8867
|
+
"change.checks.retry": "Réessayer le chargement",
|
|
6067
8868
|
"change.check.running": "En cours",
|
|
6068
8869
|
"change.check.queued": "En file d'attente",
|
|
6069
8870
|
"change.flag.changesRequested": "Modifications demandées",
|
|
@@ -6113,6 +8914,8 @@ window.__ModuleLoader__.load({
|
|
|
6113
8914
|
"diff.scopeNote.unstaged": "Comparaison avec l’index, fichiers non suivis inclus",
|
|
6114
8915
|
"diff.scopeNote.staged": "Comparaison de l’index avec HEAD",
|
|
6115
8916
|
"diff.allFiles": "Les {count} fichiers",
|
|
8917
|
+
"diff.filterFiles": "Filtrer les fichiers…",
|
|
8918
|
+
"diff.noMatchingFiles": "Aucun fichier correspondant",
|
|
6116
8919
|
"diff.refresh": "Actualiser les modifications",
|
|
6117
8920
|
"diff.expandAll": "Développer tous les fichiers",
|
|
6118
8921
|
"diff.collapseAll": "Réduire tous les fichiers",
|
|
@@ -6135,6 +8938,7 @@ window.__ModuleLoader__.load({
|
|
|
6135
8938
|
"diff.fileTooLarge": "Ce fichier est trop volumineux pour être affiché",
|
|
6136
8939
|
"diff.error": "Impossible de lire les modifications",
|
|
6137
8940
|
"diff.tooLarge": "Ces modifications sont trop volumineuses pour être affichées ici",
|
|
8941
|
+
"diff.filterConfigFailed": "Impossible de lire toute la configuration des filtres Git. Aucune comparaison effectuée. Vérifiez la configuration Git et la limite de sortie, puis réessayez.",
|
|
6138
8942
|
"diff.viewInBrowser": "Voir dans le navigateur",
|
|
6139
8943
|
"diff.noForkPoint": "Le point de divergence de cette branche est introuvable ; choisissez une autre portée",
|
|
6140
8944
|
"diff.empty": "Aucune modification",
|
|
@@ -6154,15 +8958,16 @@ window.__ModuleLoader__.load({
|
|
|
6154
8958
|
"duration.seconds": "{seconds}s",
|
|
6155
8959
|
"duration.minutes": "{minutes} min {seconds} s",
|
|
6156
8960
|
"duration.hours": "{hours} h {minutes} min",
|
|
6157
|
-
"worktree.label": "
|
|
8961
|
+
"worktree.label": "Nouvel arbre de travail",
|
|
6158
8962
|
"worktree.hint": "Exécutez cette session dans son propre arbre de travail : l’envoi crée une branche depuis celle choisie, sans que les modifications ou les commits affectent le dossier du projet",
|
|
6159
|
-
"worktree.blocked.not-git": "Cet espace de travail n’est pas un dépôt Git et ne peut pas utiliser d’arbre de travail",
|
|
6160
8963
|
"worktree.blocked.outside-writable-root": "Les données Git sont hors des dossiers accessibles en écriture, notamment lorsque l’espace est déjà un arbre de travail ; cette fonction n’est pas encore disponible",
|
|
6161
8964
|
"worktree.blocked.read-only": "Une session en lecture seule ne peut pas utiliser d’arbre de travail",
|
|
6162
8965
|
"worktree.base": "Depuis {branch}",
|
|
6163
8966
|
"worktree.baseHead": "Depuis le HEAD actuel",
|
|
6164
8967
|
"worktree.baseMenu": "Branche de base",
|
|
6165
8968
|
"worktree.currentBranch": "Actuelle",
|
|
8969
|
+
"worktree.currentBranchTip": "Branche actuelle : {branch}",
|
|
8970
|
+
"worktree.detachedTip": "Aucune branche active · {commit}",
|
|
6166
8971
|
"creation.title": "Création de l’arbre de travail",
|
|
6167
8972
|
"creation.failed": "Impossible de créer l’arbre de travail",
|
|
6168
8973
|
"creation.prepare": "Créer la branche",
|
|
@@ -6216,6 +9021,51 @@ window.__ModuleLoader__.load({
|
|
|
6216
9021
|
};
|
|
6217
9022
|
/** German copy with the same keys. */
|
|
6218
9023
|
const de = {
|
|
9024
|
+
"review.startReview": "Review starten",
|
|
9025
|
+
"review.githubActions": "GitHub-Kommentaroptionen",
|
|
9026
|
+
"review.publishing": "Wird veröffentlicht…",
|
|
9027
|
+
"review.submitting": "Wird gesendet…",
|
|
9028
|
+
"review.close": "Schließen",
|
|
9029
|
+
"review.pending": "Ausstehend",
|
|
9030
|
+
"review.quoted": "Zum Eingabefeld hinzugefügt",
|
|
9031
|
+
"review.yourComment": "Dein Kommentar",
|
|
9032
|
+
"review.outdated": "Code aktualisiert",
|
|
9033
|
+
"review.done": "Fertig",
|
|
9034
|
+
"review.addComment": "Kommentar hinzufügen",
|
|
9035
|
+
"diff.resizeFileTree": "Dateibaum skalieren",
|
|
9036
|
+
"diff.fileTree": "Dateibaum",
|
|
9037
|
+
"diff.showFileTreeLeft": "Dateibaum links anzeigen",
|
|
9038
|
+
"diff.moveFileTreeRight": "Dateibaum nach rechts verschieben",
|
|
9039
|
+
"guide.title": "Code-Review und Änderungen",
|
|
9040
|
+
"guide.description": "Codeänderungen und Änderungsanfragen dieser Sitzung prüfen",
|
|
9041
|
+
"diff.hideFileTree": "Dateibaum ausblenden",
|
|
9042
|
+
"review.range": "{range} kommentieren",
|
|
9043
|
+
"review.comment": "Kommentar schreiben…",
|
|
9044
|
+
"review.cancel": "Abbrechen",
|
|
9045
|
+
"review.addToInput": "Zum Eingabefeld hinzufügen",
|
|
9046
|
+
"review.publish": "Einzelnen Kommentar veröffentlichen",
|
|
9047
|
+
"review.queue": "Zur Review hinzufügen",
|
|
9048
|
+
"review.selectLine": "Zeile {line} auswählen",
|
|
9049
|
+
"review.inputFailed": "Die Referenz kann noch nicht eingefügt werden. Versuche es später erneut.",
|
|
9050
|
+
"review.saveFailed": "Der Entwurf konnte nicht gespeichert werden. Prüfe den Browserspeicher.",
|
|
9051
|
+
"review.unknown": "Das Ergebnis der Übermittlung ist unbekannt. Prüfe GitHub vor einer erneuten Veröffentlichung.",
|
|
9052
|
+
"review.submit": "Review absenden",
|
|
9053
|
+
"review.summary": "Zusammenfassung der Review…",
|
|
9054
|
+
"review.approve": "Genehmigen",
|
|
9055
|
+
"review.requestChanges": "Änderungen anfordern",
|
|
9056
|
+
"review.summaryRequired": "Gib eine Zusammenfassung des Reviews ein, um Änderungen anzufordern.",
|
|
9057
|
+
"review.commentOnly": "Kommentieren",
|
|
9058
|
+
"review.drafts": "Ausstehende Kommentare ({count})",
|
|
9059
|
+
"review.edit": "Bearbeiten",
|
|
9060
|
+
"review.remove": "Löschen",
|
|
9061
|
+
"review.stale": "Der PR enthält neue Commits. Aktualisiere die Ansicht und wähle die Zeilen erneut aus.",
|
|
9062
|
+
"review.published": "Auf GitHub veröffentlicht",
|
|
9063
|
+
"review.submitted": "Review abgesendet",
|
|
9064
|
+
"review.failed": "Übermittlung fehlgeschlagen: {message}",
|
|
9065
|
+
"review.unsupported": "Dieser Dienst unterstützt keine Review-Übermittlung.",
|
|
9066
|
+
"review.loadFailed": "Entwürfe konnten nicht gelesen werden. Prüfe den Browserspeicher.",
|
|
9067
|
+
"review.recheck": "Auf GitHub ansehen",
|
|
9068
|
+
"review.confirmRetry": "Geprüft; erneutes Senden erlauben",
|
|
6219
9069
|
"list.worktree": "Im eigenen Arbeitsbaum",
|
|
6220
9070
|
"list.stateChecks": "{state} · {checks}",
|
|
6221
9071
|
"list.more": "{count} weitere Änderungsanfragen",
|
|
@@ -6234,7 +9084,7 @@ window.__ModuleLoader__.load({
|
|
|
6234
9084
|
"changes.title": "Änderungsanfragen dieser Sitzung · {count}",
|
|
6235
9085
|
"changes.empty": "Diese Sitzung hat noch keine Änderungsanfragen",
|
|
6236
9086
|
"changes.emptyHint": "Hier erscheinen verknüpfte Änderungsanfragen: in dieser Sitzung erstellt, angesehen, bearbeitet oder ausgecheckt oder auf ihren aktuellen oder gepushten Branches geöffnet",
|
|
6237
|
-
"changes.local.title": "Änderungen",
|
|
9087
|
+
"changes.local.title": "Lokale Änderungen",
|
|
6238
9088
|
"changes.local.refs": "{head} → {base}",
|
|
6239
9089
|
"changes.local.files": "{count} Dateien",
|
|
6240
9090
|
"changes.local.viewAria": "Änderungen dieser Sitzung anzeigen: {count} Dateien, {added} Zeilen hinzugefügt, {deleted} Zeilen gelöscht",
|
|
@@ -6260,12 +9110,17 @@ window.__ModuleLoader__.load({
|
|
|
6260
9110
|
"change.ci.running": "Prüfungen laufen",
|
|
6261
9111
|
"change.ci.passed": "Prüfungen bestanden",
|
|
6262
9112
|
"change.ci.failed": "{count} Prüfungen fehlgeschlagen",
|
|
9113
|
+
"change.ci.cancelled": "{count} Prüfungen abgebrochen",
|
|
6263
9114
|
"change.ci.failedUnlisted": "Prüfungen fehlgeschlagen",
|
|
6264
9115
|
"change.checks.failed": "{count} fehlgeschlagen",
|
|
6265
9116
|
"change.checks.running": "{count} laufen",
|
|
6266
9117
|
"change.checks.passed": "{count} bestanden",
|
|
9118
|
+
"change.checks.cancelled": "{count} abgebrochen",
|
|
6267
9119
|
"change.checks.other": "{count} weitere",
|
|
6268
|
-
"change.checks.truncated": "
|
|
9120
|
+
"change.checks.truncated": "{count} Prüfungen geladen; weitere verfügbar",
|
|
9121
|
+
"change.checks.loading": "Weitere Prüfungen werden geladen",
|
|
9122
|
+
"change.checks.loadFailed": "Weitere Prüfungen konnten nicht geladen werden: {message}",
|
|
9123
|
+
"change.checks.retry": "Prüfungen erneut laden",
|
|
6269
9124
|
"change.check.running": "Läuft",
|
|
6270
9125
|
"change.check.queued": "In der Warteschlange",
|
|
6271
9126
|
"change.flag.changesRequested": "Änderungen angefordert",
|
|
@@ -6315,6 +9170,8 @@ window.__ModuleLoader__.load({
|
|
|
6315
9170
|
"diff.scopeNote.unstaged": "Vergleich mit dem Index, einschließlich nicht verfolgter Dateien",
|
|
6316
9171
|
"diff.scopeNote.staged": "Vergleich des Index mit HEAD",
|
|
6317
9172
|
"diff.allFiles": "Alle {count} Dateien",
|
|
9173
|
+
"diff.filterFiles": "Dateien filtern…",
|
|
9174
|
+
"diff.noMatchingFiles": "Keine passenden Dateien",
|
|
6318
9175
|
"diff.refresh": "Änderungen aktualisieren",
|
|
6319
9176
|
"diff.expandAll": "Alle Dateien aufklappen",
|
|
6320
9177
|
"diff.collapseAll": "Alle Dateien einklappen",
|
|
@@ -6337,6 +9194,7 @@ window.__ModuleLoader__.load({
|
|
|
6337
9194
|
"diff.fileTooLarge": "Diese Datei ist zu groß zum Anzeigen",
|
|
6338
9195
|
"diff.error": "Änderungen konnten nicht gelesen werden",
|
|
6339
9196
|
"diff.tooLarge": "Diese Änderungen sind zu groß, um sie hier anzuzeigen",
|
|
9197
|
+
"diff.filterConfigFailed": "Die Git-Filtereinstellungen konnten nicht vollständig gelesen werden. Es wurde kein Vergleich ausgeführt. Prüfe die Git-Einstellungen und das Ausgabelimit und versuche es erneut.",
|
|
6340
9198
|
"diff.viewInBrowser": "Im Browser ansehen",
|
|
6341
9199
|
"diff.noForkPoint": "Kein Verzweigungspunkt für diesen Branch gefunden; einen anderen Bereich wählen",
|
|
6342
9200
|
"diff.empty": "Keine Änderungen",
|
|
@@ -6356,15 +9214,16 @@ window.__ModuleLoader__.load({
|
|
|
6356
9214
|
"duration.seconds": "{seconds} Sek.",
|
|
6357
9215
|
"duration.minutes": "{minutes} Min. {seconds} Sek.",
|
|
6358
9216
|
"duration.hours": "{hours} Std. {minutes} Min.",
|
|
6359
|
-
"worktree.label": "Arbeitsbaum",
|
|
9217
|
+
"worktree.label": "Neuer Arbeitsbaum",
|
|
6360
9218
|
"worktree.hint": "Diese Sitzung in einem eigenen Arbeitsbaum ausführen: Beim Senden wird aus dem gewählten Branch ein neuer erstellt; Änderungen und Commits lassen das Projektverzeichnis unverändert",
|
|
6361
|
-
"worktree.blocked.not-git": "Dieser Arbeitsbereich ist kein Git-Repository und kann keinen Arbeitsbaum verwenden",
|
|
6362
9219
|
"worktree.blocked.outside-writable-root": "Die Git-Daten liegen außerhalb der beschreibbaren Verzeichnisse, etwa wenn der Arbeitsbereich selbst ein Arbeitsbaum ist; Arbeitsbäume werden hier noch nicht unterstützt",
|
|
6363
9220
|
"worktree.blocked.read-only": "Eine schreibgeschützte Sitzung kann keinen Arbeitsbaum verwenden",
|
|
6364
9221
|
"worktree.base": "Aus {branch}",
|
|
6365
9222
|
"worktree.baseHead": "Aus dem aktuellen HEAD",
|
|
6366
9223
|
"worktree.baseMenu": "Basis-Branch",
|
|
6367
9224
|
"worktree.currentBranch": "Aktuell",
|
|
9225
|
+
"worktree.currentBranchTip": "Aktueller Branch: {branch}",
|
|
9226
|
+
"worktree.detachedTip": "Auf keinem Branch · {commit}",
|
|
6368
9227
|
"creation.title": "Arbeitsbaum wird erstellt",
|
|
6369
9228
|
"creation.failed": "Arbeitsbaum konnte nicht erstellt werden",
|
|
6370
9229
|
"creation.prepare": "Branch erstellen",
|
|
@@ -6418,6 +9277,51 @@ window.__ModuleLoader__.load({
|
|
|
6418
9277
|
};
|
|
6419
9278
|
/** Russian copy with the same keys. */
|
|
6420
9279
|
const ru = {
|
|
9280
|
+
"review.startReview": "Начать проверку",
|
|
9281
|
+
"review.githubActions": "Действия с комментарием GitHub",
|
|
9282
|
+
"review.publishing": "Публикация…",
|
|
9283
|
+
"review.submitting": "Отправка…",
|
|
9284
|
+
"review.close": "Закрыть",
|
|
9285
|
+
"review.pending": "Ожидает отправки",
|
|
9286
|
+
"review.quoted": "Добавлено в поле ввода",
|
|
9287
|
+
"review.yourComment": "Ваш комментарий",
|
|
9288
|
+
"review.outdated": "Код обновлён",
|
|
9289
|
+
"review.done": "Готово",
|
|
9290
|
+
"review.addComment": "Добавить комментарий",
|
|
9291
|
+
"diff.resizeFileTree": "Изменить ширину дерева файлов",
|
|
9292
|
+
"diff.fileTree": "Дерево файлов",
|
|
9293
|
+
"diff.showFileTreeLeft": "Показать дерево файлов слева",
|
|
9294
|
+
"diff.moveFileTreeRight": "Переместить дерево файлов вправо",
|
|
9295
|
+
"guide.title": "Ревью кода и изменения",
|
|
9296
|
+
"guide.description": "Просмотр изменений кода и запросов на изменение в этом сеансе",
|
|
9297
|
+
"diff.hideFileTree": "Скрыть дерево файлов",
|
|
9298
|
+
"review.range": "Комментарий к {range}",
|
|
9299
|
+
"review.comment": "Оставьте комментарий…",
|
|
9300
|
+
"review.cancel": "Отмена",
|
|
9301
|
+
"review.addToInput": "Добавить в поле ввода",
|
|
9302
|
+
"review.publish": "Опубликовать отдельный комментарий",
|
|
9303
|
+
"review.queue": "Добавить в проверку",
|
|
9304
|
+
"review.selectLine": "Выбрать строку {line}",
|
|
9305
|
+
"review.inputFailed": "Не удалось добавить ссылку. Повторите попытку позже.",
|
|
9306
|
+
"review.saveFailed": "Не удалось сохранить черновик. Проверьте хранилище браузера.",
|
|
9307
|
+
"review.unknown": "Результат отправки неизвестен. Проверьте GitHub перед повторной публикацией.",
|
|
9308
|
+
"review.submit": "Отправить проверку",
|
|
9309
|
+
"review.summary": "Итог проверки…",
|
|
9310
|
+
"review.approve": "Одобрить",
|
|
9311
|
+
"review.requestChanges": "Запросить изменения",
|
|
9312
|
+
"review.summaryRequired": "Чтобы запросить изменения, добавьте итоговый комментарий.",
|
|
9313
|
+
"review.commentOnly": "Комментарий",
|
|
9314
|
+
"review.drafts": "Ожидающие комментарии ({count})",
|
|
9315
|
+
"review.edit": "Изменить",
|
|
9316
|
+
"review.remove": "Удалить",
|
|
9317
|
+
"review.stale": "В PR появились новые коммиты. Обновите и выберите строки заново.",
|
|
9318
|
+
"review.published": "Опубликовано на GitHub",
|
|
9319
|
+
"review.submitted": "Проверка отправлена",
|
|
9320
|
+
"review.failed": "Ошибка отправки: {message}",
|
|
9321
|
+
"review.unsupported": "Этот сервис не поддерживает отправку проверок.",
|
|
9322
|
+
"review.loadFailed": "Не удалось прочитать черновики. Проверьте хранилище браузера.",
|
|
9323
|
+
"review.recheck": "Открыть на GitHub",
|
|
9324
|
+
"review.confirmRetry": "Проверено; разрешить повторную отправку",
|
|
6421
9325
|
"list.worktree": "В собственном рабочем дереве",
|
|
6422
9326
|
"list.stateChecks": "{state} · {checks}",
|
|
6423
9327
|
"list.more": "Ещё запросов на изменение: {count}",
|
|
@@ -6436,7 +9340,7 @@ window.__ModuleLoader__.load({
|
|
|
6436
9340
|
"changes.title": "Запросы на изменение этого сеанса · {count}",
|
|
6437
9341
|
"changes.empty": "В этом сеансе пока нет запросов на изменение",
|
|
6438
9342
|
"changes.emptyHint": "Здесь отображаются связанные с сеансом запросы: созданные, просмотренные, изменённые или извлечённые, а также открытые для текущей или отправленной ветки",
|
|
6439
|
-
"changes.local.title": "
|
|
9343
|
+
"changes.local.title": "Локальные изменения",
|
|
6440
9344
|
"changes.local.refs": "{head} → {base}",
|
|
6441
9345
|
"changes.local.files": "Файлов: {count}",
|
|
6442
9346
|
"changes.local.viewAria": "Просмотреть изменения сеанса: файлов — {count}, добавлено строк — {added}, удалено — {deleted}",
|
|
@@ -6462,12 +9366,17 @@ window.__ModuleLoader__.load({
|
|
|
6462
9366
|
"change.ci.running": "Проверки выполняются",
|
|
6463
9367
|
"change.ci.passed": "Проверки пройдены",
|
|
6464
9368
|
"change.ci.failed": "Не пройдено проверок: {count}",
|
|
9369
|
+
"change.ci.cancelled": "Проверок отменено: {count}",
|
|
6465
9370
|
"change.ci.failedUnlisted": "Проверки не пройдены",
|
|
6466
9371
|
"change.checks.failed": "Не пройдено: {count}",
|
|
6467
9372
|
"change.checks.running": "Выполняется: {count}",
|
|
6468
9373
|
"change.checks.passed": "Пройдено: {count}",
|
|
9374
|
+
"change.checks.cancelled": "Отменено: {count}",
|
|
6469
9375
|
"change.checks.other": "Других: {count}",
|
|
6470
|
-
"change.checks.truncated": "
|
|
9376
|
+
"change.checks.truncated": "Загружено проверок: {count}; доступны другие",
|
|
9377
|
+
"change.checks.loading": "Загрузка остальных проверок",
|
|
9378
|
+
"change.checks.loadFailed": "Не удалось загрузить остальные проверки: {message}",
|
|
9379
|
+
"change.checks.retry": "Повторить загрузку проверок",
|
|
6471
9380
|
"change.check.running": "Выполняется",
|
|
6472
9381
|
"change.check.queued": "В очереди",
|
|
6473
9382
|
"change.flag.changesRequested": "Запрошены изменения",
|
|
@@ -6517,6 +9426,8 @@ window.__ModuleLoader__.load({
|
|
|
6517
9426
|
"diff.scopeNote.unstaged": "Сравнение с индексом, включая неотслеживаемые файлы",
|
|
6518
9427
|
"diff.scopeNote.staged": "Сравнение индекса с HEAD",
|
|
6519
9428
|
"diff.allFiles": "Все файлы: {count}",
|
|
9429
|
+
"diff.filterFiles": "Фильтр файлов…",
|
|
9430
|
+
"diff.noMatchingFiles": "Нет подходящих файлов",
|
|
6520
9431
|
"diff.refresh": "Обновить изменения",
|
|
6521
9432
|
"diff.expandAll": "Развернуть все файлы",
|
|
6522
9433
|
"diff.collapseAll": "Свернуть все файлы",
|
|
@@ -6539,6 +9450,7 @@ window.__ModuleLoader__.load({
|
|
|
6539
9450
|
"diff.fileTooLarge": "Файл слишком большой для отображения",
|
|
6540
9451
|
"diff.error": "Не удалось прочитать изменения",
|
|
6541
9452
|
"diff.tooLarge": "Изменения слишком велики для отображения здесь",
|
|
9453
|
+
"diff.filterConfigFailed": "Не удалось полностью прочитать настройки фильтров Git. Сравнение не выполнено. Проверьте настройки Git и ограничение вывода, затем повторите попытку.",
|
|
6542
9454
|
"diff.viewInBrowser": "Посмотреть в браузере",
|
|
6543
9455
|
"diff.noForkPoint": "Не найдена точка ответвления этой ветки; выберите другую область",
|
|
6544
9456
|
"diff.empty": "Нет изменений",
|
|
@@ -6558,15 +9470,16 @@ window.__ModuleLoader__.load({
|
|
|
6558
9470
|
"duration.seconds": "{seconds} с",
|
|
6559
9471
|
"duration.minutes": "{minutes} мин {seconds} с",
|
|
6560
9472
|
"duration.hours": "{hours} ч {minutes} мин",
|
|
6561
|
-
"worktree.label": "
|
|
9473
|
+
"worktree.label": "Новое рабочее дерево",
|
|
6562
9474
|
"worktree.hint": "Запустить сеанс в отдельном рабочем дереве: при отправке будет создана ветка на основе выбранной, а изменения и коммиты не затронут каталог проекта",
|
|
6563
|
-
"worktree.blocked.not-git": "Рабочая область не является репозиторием Git, поэтому рабочее дерево недоступно",
|
|
6564
9475
|
"worktree.blocked.outside-writable-root": "Данные Git находятся вне доступных для записи каталогов, например когда рабочая область сама является рабочим деревом; создание рабочего дерева пока недоступно",
|
|
6565
9476
|
"worktree.blocked.read-only": "Сеанс только для чтения не может использовать рабочее дерево",
|
|
6566
9477
|
"worktree.base": "На основе {branch}",
|
|
6567
9478
|
"worktree.baseHead": "На основе текущего HEAD",
|
|
6568
9479
|
"worktree.baseMenu": "Базовая ветка",
|
|
6569
9480
|
"worktree.currentBranch": "Текущая",
|
|
9481
|
+
"worktree.currentBranchTip": "Текущая ветка: {branch}",
|
|
9482
|
+
"worktree.detachedTip": "Вне ветки · {commit}",
|
|
6570
9483
|
"creation.title": "Создание рабочего дерева",
|
|
6571
9484
|
"creation.failed": "Не удалось создать рабочее дерево",
|
|
6572
9485
|
"creation.prepare": "Создать ветку",
|
|
@@ -6620,6 +9533,51 @@ window.__ModuleLoader__.load({
|
|
|
6620
9533
|
};
|
|
6621
9534
|
/** Portuguese copy with the same keys. */
|
|
6622
9535
|
const pt = {
|
|
9536
|
+
"review.startReview": "Iniciar revisão",
|
|
9537
|
+
"review.githubActions": "Opções de comentário do GitHub",
|
|
9538
|
+
"review.publishing": "Publicando…",
|
|
9539
|
+
"review.submitting": "Enviando…",
|
|
9540
|
+
"review.close": "Fechar",
|
|
9541
|
+
"review.pending": "Pendente",
|
|
9542
|
+
"review.quoted": "Adicionado ao campo de entrada",
|
|
9543
|
+
"review.yourComment": "Seu comentário",
|
|
9544
|
+
"review.outdated": "Código atualizado",
|
|
9545
|
+
"review.done": "Concluído",
|
|
9546
|
+
"review.addComment": "Adicionar comentário",
|
|
9547
|
+
"diff.resizeFileTree": "Redimensionar árvore de arquivos",
|
|
9548
|
+
"diff.fileTree": "Árvore de arquivos",
|
|
9549
|
+
"diff.showFileTreeLeft": "Mostrar árvore de arquivos à esquerda",
|
|
9550
|
+
"diff.moveFileTreeRight": "Mover árvore de arquivos para a direita",
|
|
9551
|
+
"guide.title": "Revisão de código e alterações",
|
|
9552
|
+
"guide.description": "Revisar alterações de código e solicitações de alteração desta sessão",
|
|
9553
|
+
"diff.hideFileTree": "Ocultar árvore de arquivos",
|
|
9554
|
+
"review.range": "Comentar {range}",
|
|
9555
|
+
"review.comment": "Deixe um comentário…",
|
|
9556
|
+
"review.cancel": "Cancelar",
|
|
9557
|
+
"review.addToInput": "Adicionar ao campo de entrada",
|
|
9558
|
+
"review.publish": "Publicar comentário individual",
|
|
9559
|
+
"review.queue": "Adicionar à revisão",
|
|
9560
|
+
"review.selectLine": "Selecionar linha {line}",
|
|
9561
|
+
"review.inputFailed": "Não foi possível adicionar a referência. Tente novamente mais tarde.",
|
|
9562
|
+
"review.saveFailed": "Não foi possível salvar o rascunho. Verifique o armazenamento do navegador.",
|
|
9563
|
+
"review.unknown": "O resultado do envio é desconhecido. Verifique o GitHub antes de publicar novamente.",
|
|
9564
|
+
"review.submit": "Enviar revisão",
|
|
9565
|
+
"review.summary": "Resumo da revisão…",
|
|
9566
|
+
"review.approve": "Aprovar",
|
|
9567
|
+
"review.requestChanges": "Solicitar alterações",
|
|
9568
|
+
"review.summaryRequired": "Escreva um resumo da revisão para solicitar alterações.",
|
|
9569
|
+
"review.commentOnly": "Comentar",
|
|
9570
|
+
"review.drafts": "Comentários pendentes ({count})",
|
|
9571
|
+
"review.edit": "Editar",
|
|
9572
|
+
"review.remove": "Excluir",
|
|
9573
|
+
"review.stale": "O PR tem novos commits. Atualize e selecione as linhas novamente.",
|
|
9574
|
+
"review.published": "Publicado no GitHub",
|
|
9575
|
+
"review.submitted": "Revisão enviada",
|
|
9576
|
+
"review.failed": "Falha no envio: {message}",
|
|
9577
|
+
"review.unsupported": "Este serviço não oferece envio de revisões.",
|
|
9578
|
+
"review.loadFailed": "Não foi possível ler os rascunhos. Verifique o armazenamento do navegador.",
|
|
9579
|
+
"review.recheck": "Ver no GitHub",
|
|
9580
|
+
"review.confirmRetry": "Verificado; permitir reenvio",
|
|
6623
9581
|
"list.worktree": "Na sua própria árvore de trabalho",
|
|
6624
9582
|
"list.stateChecks": "{state} · {checks}",
|
|
6625
9583
|
"list.more": "Mais {count} solicitações de alteração",
|
|
@@ -6638,7 +9596,7 @@ window.__ModuleLoader__.load({
|
|
|
6638
9596
|
"changes.title": "Solicitações de alteração desta sessão · {count}",
|
|
6639
9597
|
"changes.empty": "Esta sessão ainda não tem solicitações de alteração",
|
|
6640
9598
|
"changes.emptyHint": "Aqui aparecem solicitações vinculadas à sessão: criadas, visualizadas, editadas ou usadas em checkout, ou abertas nas branches atuais ou enviadas",
|
|
6641
|
-
"changes.local.title": "Alterações",
|
|
9599
|
+
"changes.local.title": "Alterações locais",
|
|
6642
9600
|
"changes.local.refs": "{head} → {base}",
|
|
6643
9601
|
"changes.local.files": "{count} arquivos",
|
|
6644
9602
|
"changes.local.viewAria": "Ver alterações desta sessão: {count} arquivos, {added} linhas adicionadas e {deleted} removidas",
|
|
@@ -6664,12 +9622,17 @@ window.__ModuleLoader__.load({
|
|
|
6664
9622
|
"change.ci.running": "Verificações em andamento",
|
|
6665
9623
|
"change.ci.passed": "Verificações aprovadas",
|
|
6666
9624
|
"change.ci.failed": "{count} verificações falharam",
|
|
9625
|
+
"change.ci.cancelled": "{count} verificações canceladas",
|
|
6667
9626
|
"change.ci.failedUnlisted": "As verificações falharam",
|
|
6668
9627
|
"change.checks.failed": "{count} falharam",
|
|
6669
9628
|
"change.checks.running": "{count} em andamento",
|
|
6670
9629
|
"change.checks.passed": "{count} aprovadas",
|
|
9630
|
+
"change.checks.cancelled": "{count} canceladas",
|
|
6671
9631
|
"change.checks.other": "{count} outras",
|
|
6672
|
-
"change.checks.truncated": "
|
|
9632
|
+
"change.checks.truncated": "{count} verificações carregadas; há mais",
|
|
9633
|
+
"change.checks.loading": "Carregando mais verificações",
|
|
9634
|
+
"change.checks.loadFailed": "Não foi possível carregar mais verificações: {message}",
|
|
9635
|
+
"change.checks.retry": "Tentar carregar verificações novamente",
|
|
6673
9636
|
"change.check.running": "Em andamento",
|
|
6674
9637
|
"change.check.queued": "Na fila",
|
|
6675
9638
|
"change.flag.changesRequested": "Alterações solicitadas",
|
|
@@ -6719,6 +9682,8 @@ window.__ModuleLoader__.load({
|
|
|
6719
9682
|
"diff.scopeNote.unstaged": "Comparação com o índice, incluindo arquivos não rastreados",
|
|
6720
9683
|
"diff.scopeNote.staged": "Comparação do índice com HEAD",
|
|
6721
9684
|
"diff.allFiles": "Todos os {count} arquivos",
|
|
9685
|
+
"diff.filterFiles": "Filtrar arquivos…",
|
|
9686
|
+
"diff.noMatchingFiles": "Nenhum arquivo correspondente",
|
|
6722
9687
|
"diff.refresh": "Atualizar alterações",
|
|
6723
9688
|
"diff.expandAll": "Expandir todos os arquivos",
|
|
6724
9689
|
"diff.collapseAll": "Recolher todos os arquivos",
|
|
@@ -6741,6 +9706,7 @@ window.__ModuleLoader__.load({
|
|
|
6741
9706
|
"diff.fileTooLarge": "Este arquivo é grande demais para ser exibido",
|
|
6742
9707
|
"diff.error": "Não foi possível ler as alterações",
|
|
6743
9708
|
"diff.tooLarge": "Estas alterações são grandes demais para serem exibidas aqui",
|
|
9709
|
+
"diff.filterConfigFailed": "Não foi possível ler todas as configurações de filtros do Git. A comparação não foi executada. Verifique as configurações do Git e o limite de saída e tente novamente.",
|
|
6744
9710
|
"diff.viewInBrowser": "Ver no navegador",
|
|
6745
9711
|
"diff.noForkPoint": "Não foi encontrado o ponto de ramificação desta branch; escolha outro escopo",
|
|
6746
9712
|
"diff.empty": "Sem alterações",
|
|
@@ -6760,15 +9726,16 @@ window.__ModuleLoader__.load({
|
|
|
6760
9726
|
"duration.seconds": "{seconds}s",
|
|
6761
9727
|
"duration.minutes": "{minutes} min {seconds} s",
|
|
6762
9728
|
"duration.hours": "{hours} h {minutes} min",
|
|
6763
|
-
"worktree.label": "
|
|
9729
|
+
"worktree.label": "Nova árvore de trabalho",
|
|
6764
9730
|
"worktree.hint": "Execute esta sessão em sua própria árvore de trabalho: o envio cria uma branch a partir da escolhida, sem que alterações e commits afetem o diretório do projeto",
|
|
6765
|
-
"worktree.blocked.not-git": "Este espaço de trabalho não é um repositório Git e não pode usar uma árvore de trabalho",
|
|
6766
9731
|
"worktree.blocked.outside-writable-root": "Os dados Git estão fora dos diretórios graváveis, como quando o espaço já é uma árvore de trabalho; ainda não é possível usar outra árvore",
|
|
6767
9732
|
"worktree.blocked.read-only": "Uma sessão somente leitura não pode usar uma árvore de trabalho",
|
|
6768
9733
|
"worktree.base": "A partir de {branch}",
|
|
6769
9734
|
"worktree.baseHead": "A partir do HEAD atual",
|
|
6770
9735
|
"worktree.baseMenu": "Branch base",
|
|
6771
9736
|
"worktree.currentBranch": "Atual",
|
|
9737
|
+
"worktree.currentBranchTip": "Branch atual: {branch}",
|
|
9738
|
+
"worktree.detachedTip": "Fora de uma branch · {commit}",
|
|
6772
9739
|
"creation.title": "Criando a árvore de trabalho",
|
|
6773
9740
|
"creation.failed": "Não foi possível criar a árvore de trabalho",
|
|
6774
9741
|
"creation.prepare": "Criar a branch",
|
|
@@ -8219,7 +11186,7 @@ window.__ModuleLoader__.load({
|
|
|
8219
11186
|
}
|
|
8220
11187
|
//#endregion
|
|
8221
11188
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-forge/src/client/WorktreeToggle.module.css.mjs
|
|
8222
|
-
const css = ".dfL0TG_root{flex:none;align-items:center;gap:2px;min-width:0;display:inline-flex}.dfL0TG_toggle,.dfL0TG_base{border-radius:var(--dsw-radius-sm);min-width:0;height:28px;color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}@media (hover:hover){.dfL0TG_toggle:hover:not([data-disabled]),.dfL0TG_base:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.dfL0TG_toggle[data-disabled]{color:var(--dsw-alias-label-dimmed);cursor:default}.dfL0TG_base{gap:4px;max-width:200px;padding-right:4px}.dfL0TG_base:focus-visible,.dfL0TG_toggle:has(.dfL0TG_checkbox:focus-visible){outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.dfL0TG_base:disabled{cursor:progress}.dfL0TG_checkbox{width:14px;height:14px;accent-color:var(--dsw-alias-brand-primary);cursor:inherit;flex:none;margin:0}.dfL0TG_checkbox:focus-visible{outline:none}.dfL0TG_baseLabel{text-overflow:ellipsis;min-width:0;overflow:hidden}.dfL0TG_chevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s}.dfL0TG_chevronOpen{transform:rotate(180deg)}.dfL0TG_option{align-items:baseline;gap:8px;min-width:0;display:inline-flex}.dfL0TG_optionName{min-width:0;font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.dfL0TG_optionNote{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px}";
|
|
11189
|
+
const css = ".dfL0TG_root{flex:none;align-items:center;gap:2px;min-width:0;display:inline-flex}.dfL0TG_toggle,.dfL0TG_base,.dfL0TG_current{border-radius:var(--dsw-radius-sm);min-width:0;height:28px;color:var(--dsw-alias-label-secondary);white-space:nowrap;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}@media (hover:hover){.dfL0TG_toggle:hover:not([data-disabled]),.dfL0TG_base:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}}.dfL0TG_toggle[data-disabled]{color:var(--dsw-alias-label-dimmed);cursor:default}.dfL0TG_base{gap:4px;max-width:200px;padding-right:4px}.dfL0TG_current{box-sizing:content-box;max-width:200px;font-family:inherit}.dfL0TG_current svg{flex:none}.dfL0TG_base:focus-visible,.dfL0TG_current:focus-visible,.dfL0TG_toggle:has(.dfL0TG_checkbox:focus-visible){outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.dfL0TG_base:disabled{cursor:progress}.dfL0TG_checkbox{width:14px;height:14px;accent-color:var(--dsw-alias-brand-primary);cursor:inherit;flex:none;margin:0}.dfL0TG_checkbox:focus-visible{outline:none}.dfL0TG_baseLabel{text-overflow:ellipsis;min-width:0;overflow:hidden}.dfL0TG_chevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .12s}.dfL0TG_chevronOpen{transform:rotate(180deg)}.dfL0TG_option{align-items:baseline;gap:8px;min-width:0;display:inline-flex}.dfL0TG_optionName{min-width:0;font-family:var(--ds-font-family-code);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.dfL0TG_optionNote{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px}@media (width<=600px){.dfL0TG_root{flex-direction:column;align-items:flex-end;gap:0}.dfL0TG_base,.dfL0TG_current{max-width:120px}}";
|
|
8223
11190
|
const tagId = "@deepseek-ai/dsh-experimental-client-ui-forge/WorktreeToggle.module.css";
|
|
8224
11191
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
8225
11192
|
const tag = document.createElement("style");
|
|
@@ -8234,6 +11201,7 @@ window.__ModuleLoader__.load({
|
|
|
8234
11201
|
"checkbox": "dfL0TG_checkbox",
|
|
8235
11202
|
"chevron": "dfL0TG_chevron",
|
|
8236
11203
|
"chevronOpen": "dfL0TG_chevronOpen",
|
|
11204
|
+
"current": "dfL0TG_current",
|
|
8237
11205
|
"option": "dfL0TG_option",
|
|
8238
11206
|
"optionName": "dfL0TG_optionName",
|
|
8239
11207
|
"optionNote": "dfL0TG_optionNote",
|
|
@@ -8313,25 +11281,25 @@ window.__ModuleLoader__.load({
|
|
|
8313
11281
|
/** What the option shows for a panel state, or undefined while it stays hidden. */
|
|
8314
11282
|
function optionOf(state) {
|
|
8315
11283
|
if (state === null || !state.worktree.editable) return void 0;
|
|
11284
|
+
const blocker = state.worktree.blocker;
|
|
11285
|
+
if (blocker === "not-git") return void 0;
|
|
8316
11286
|
const checkout = state.checkout;
|
|
8317
|
-
if (checkout.state === "none") return {
|
|
8318
|
-
usable: false,
|
|
8319
|
-
current: null
|
|
8320
|
-
};
|
|
8321
11287
|
if (checkout.state !== "ready") return void 0;
|
|
8322
11288
|
return {
|
|
8323
|
-
|
|
8324
|
-
current: checkout.checkout.branch
|
|
11289
|
+
blocker,
|
|
11290
|
+
current: checkout.checkout.branch,
|
|
11291
|
+
commit: checkout.checkout.commit
|
|
8325
11292
|
};
|
|
8326
11293
|
}
|
|
8327
11294
|
/**
|
|
8328
11295
|
* Render the worktree option while the Session can still start in a worktree:
|
|
8329
|
-
* the base branch menu once requested, then the checkbox.
|
|
8330
|
-
*
|
|
8331
|
-
* withdraws
|
|
8332
|
-
* created.
|
|
11296
|
+
* the current branch, or the base branch menu once requested, then the checkbox.
|
|
11297
|
+
* A blocked request keeps its selected base visible without a menu; the checkbox
|
|
11298
|
+
* only withdraws it. Branch details support pointer, touch, and keyboard access.
|
|
11299
|
+
* The request stays fixed while the worktree is being created.
|
|
8333
11300
|
* @param props - panel snapshot hook, request actions, and copy.
|
|
8334
|
-
* @returns the option, or nothing
|
|
11301
|
+
* @returns the option, or nothing outside a known Git checkout, once a turn started,
|
|
11302
|
+
* the request settled, or no worktree service is mounted.
|
|
8335
11303
|
*/
|
|
8336
11304
|
function WorktreeToggle({ usePanel, request, cancel, branches, t }) {
|
|
8337
11305
|
const state = usePanel((snapshot) => snapshot.state);
|
|
@@ -8340,8 +11308,12 @@ window.__ModuleLoader__.load({
|
|
|
8340
11308
|
if (state === null || option === void 0) return null;
|
|
8341
11309
|
const held = state.worktree.creation !== null;
|
|
8342
11310
|
const requested = pending ?? state.worktree.request !== null;
|
|
8343
|
-
const
|
|
8344
|
-
const
|
|
11311
|
+
const usable = option.blocker === null;
|
|
11312
|
+
const disabled = held || pending !== null || !usable && !requested;
|
|
11313
|
+
const current = option.current ?? (option.commit === null ? t("checkout.detached") : t("worktree.detachedTip", { commit: option.commit }));
|
|
11314
|
+
const base = state.worktree.request === null ? option.current : state.worktree.request.from;
|
|
11315
|
+
const branchText = requested ? base === null ? t("worktree.baseHead") : t("worktree.base", { branch: base }) : current;
|
|
11316
|
+
const branchTip = requested || option.current === null ? branchText : t("worktree.currentBranchTip", { branch: option.current });
|
|
8345
11317
|
const change = (checked) => {
|
|
8346
11318
|
setPending(checked);
|
|
8347
11319
|
(checked ? request(option.current) : cancel()).then(() => {
|
|
@@ -8351,14 +11323,30 @@ window.__ModuleLoader__.load({
|
|
|
8351
11323
|
return (0, react_jsx_runtime.jsxs)("span", {
|
|
8352
11324
|
className: WorktreeToggle_module_css_default.root,
|
|
8353
11325
|
"data-forge-worktree": "",
|
|
8354
|
-
children: [requested &&
|
|
11326
|
+
children: [requested && usable ? (0, react_jsx_runtime.jsx)(BaseMenu, {
|
|
8355
11327
|
base: state.worktree.request?.from ?? option.current,
|
|
8356
11328
|
held,
|
|
8357
11329
|
branches,
|
|
8358
11330
|
request,
|
|
8359
11331
|
t
|
|
11332
|
+
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
11333
|
+
label: branchTip,
|
|
11334
|
+
side: "bottom",
|
|
11335
|
+
portal: true,
|
|
11336
|
+
openOnClick: true,
|
|
11337
|
+
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
11338
|
+
type: "button",
|
|
11339
|
+
className: WorktreeToggle_module_css_default.current,
|
|
11340
|
+
"aria-label": branchTip,
|
|
11341
|
+
"data-forge-current-branch": requested ? void 0 : "",
|
|
11342
|
+
"data-forge-base-branch": requested ? "" : void 0,
|
|
11343
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBranchOutlineRegular, { size: 14 }), (0, react_jsx_runtime.jsx)("span", {
|
|
11344
|
+
className: WorktreeToggle_module_css_default.baseLabel,
|
|
11345
|
+
children: branchText
|
|
11346
|
+
})]
|
|
11347
|
+
})
|
|
8360
11348
|
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
8361
|
-
label: option.
|
|
11349
|
+
label: option.blocker === null ? t("worktree.hint") : t(`worktree.blocked.${option.blocker}`),
|
|
8362
11350
|
side: "bottom",
|
|
8363
11351
|
delayMs: 500,
|
|
8364
11352
|
children: (0, react_jsx_runtime.jsxs)("label", {
|
|
@@ -8434,6 +11422,7 @@ window.__ModuleLoader__.load({
|
|
|
8434
11422
|
store = {
|
|
8435
11423
|
panel,
|
|
8436
11424
|
visibility: createVisibilitySource(),
|
|
11425
|
+
reviews: /* @__PURE__ */ new WeakMap(),
|
|
8437
11426
|
release: () => {
|
|
8438
11427
|
dispose();
|
|
8439
11428
|
}
|
|
@@ -8477,6 +11466,16 @@ window.__ModuleLoader__.load({
|
|
|
8477
11466
|
notices.report("toast.promptFailed");
|
|
8478
11467
|
});
|
|
8479
11468
|
};
|
|
11469
|
+
const addReviewToInput = (sessionId, selection) => {
|
|
11470
|
+
const scope = ctx.sessions.scope(sessionId);
|
|
11471
|
+
const conversation = scope?.get("conversation");
|
|
11472
|
+
if (scope === void 0 || conversation === void 0) return false;
|
|
11473
|
+
const input = conversation.input.for(scope);
|
|
11474
|
+
const numbers = Array.from(input.state.getSnapshot().draft.matchAll(/(?:^|\n)(?:> )?## User Comment (\d+)/g), (match) => Number(match[1]));
|
|
11475
|
+
if (!input.insertQuote(formatReviewComment(selection, Math.max(0, ...numbers) + 1))) return false;
|
|
11476
|
+
input.focus();
|
|
11477
|
+
return true;
|
|
11478
|
+
};
|
|
8480
11479
|
/** How toasts name a change request: its number, else its title, else its URL. */
|
|
8481
11480
|
const nameOf = (entry) => {
|
|
8482
11481
|
const number = numberOf(entry);
|
|
@@ -8522,6 +11521,11 @@ window.__ModuleLoader__.load({
|
|
|
8522
11521
|
remove: (entry) => {
|
|
8523
11522
|
remove(sessionId, entry);
|
|
8524
11523
|
},
|
|
11524
|
+
readChecks: async (url, headSha, signal) => {
|
|
11525
|
+
const result = await ctx.remote.forgePanel.changeRequestChecks(sessionId, url, headSha, signal);
|
|
11526
|
+
if (!result.ok) throw new Error(result.error.message);
|
|
11527
|
+
return result.value;
|
|
11528
|
+
},
|
|
8525
11529
|
markReady: async (entry) => {
|
|
8526
11530
|
const result = await ctx.remote.forgePanel.markReady(sessionId, entry.url);
|
|
8527
11531
|
if (result.ok) notices.report("toast.markedReady", {
|
|
@@ -8562,13 +11566,43 @@ window.__ModuleLoader__.load({
|
|
|
8562
11566
|
localText: (scope, path) => ctx.remote.forgePanel.localText(sessionId, scope, path),
|
|
8563
11567
|
changeRequestDiff: (url, signal) => ctx.remote.forgePanel.changeRequestDiff(sessionId, url, signal),
|
|
8564
11568
|
changeRequestText: (url, commit, path) => ctx.remote.forgePanel.changeRequestText(sessionId, url, commit, path),
|
|
11569
|
+
addReviewToInput: (selection) => addReviewToInput(sessionId, selection),
|
|
11570
|
+
reviewQueue: ({ id, signal }) => {
|
|
11571
|
+
let queue = store.reviews.get(signal);
|
|
11572
|
+
if (queue === void 0) {
|
|
11573
|
+
const records = new ReviewQueue(`dsh.forge-review.tab.v1.${JSON.stringify([sessionId, id])}`);
|
|
11574
|
+
queue = records;
|
|
11575
|
+
store.reviews.set(signal, records);
|
|
11576
|
+
const clear = () => {
|
|
11577
|
+
if (!records.close()) notices.report("review.saveFailed");
|
|
11578
|
+
};
|
|
11579
|
+
if (signal.aborted) clear();
|
|
11580
|
+
else {
|
|
11581
|
+
const release = ctx.effect(() => {
|
|
11582
|
+
const close = () => {
|
|
11583
|
+
clear();
|
|
11584
|
+
release();
|
|
11585
|
+
};
|
|
11586
|
+
signal.addEventListener("abort", close, { once: true });
|
|
11587
|
+
return () => {
|
|
11588
|
+
signal.removeEventListener("abort", close);
|
|
11589
|
+
};
|
|
11590
|
+
}, "forge-panel: review tab lifetime");
|
|
11591
|
+
}
|
|
11592
|
+
}
|
|
11593
|
+
return queue;
|
|
11594
|
+
},
|
|
11595
|
+
submitReview: (url, request) => ctx.remote.forgePanel.submitReview(sessionId, url, request),
|
|
8565
11596
|
openLink,
|
|
8566
11597
|
copyPath,
|
|
8567
11598
|
createChangeRequest: () => {
|
|
8568
11599
|
createChangeRequest(sessionId);
|
|
8569
11600
|
},
|
|
8570
11601
|
report: (key, params) => {
|
|
8571
|
-
notices.report(key,
|
|
11602
|
+
notices.report(key, {
|
|
11603
|
+
tone: key === "review.published" || key === "review.submitted" ? "success" : "failure",
|
|
11604
|
+
...params === void 0 ? {} : { params }
|
|
11605
|
+
});
|
|
8572
11606
|
}
|
|
8573
11607
|
};
|
|
8574
11608
|
};
|
|
@@ -8605,7 +11639,14 @@ window.__ModuleLoader__.load({
|
|
|
8605
11639
|
ctx.effect(() => ctx.sidebarRightTabs.register({
|
|
8606
11640
|
id: TAB_ID,
|
|
8607
11641
|
kind: TAB_KIND,
|
|
8608
|
-
title: () => t("tab.title")
|
|
11642
|
+
title: () => t("tab.title"),
|
|
11643
|
+
guide: [{
|
|
11644
|
+
id: "review",
|
|
11645
|
+
order: 15,
|
|
11646
|
+
title: () => t("guide.title"),
|
|
11647
|
+
description: () => t("guide.description"),
|
|
11648
|
+
icon: _deepseek_ai_dsh_client_ui_primitives.IconBranchOutlineRegular
|
|
11649
|
+
}]
|
|
8609
11650
|
}), "forge-panel: sidebar tab");
|
|
8610
11651
|
ctx.slots.inject("sidebar.right.pane.tab", () => ctx.slots.register({
|
|
8611
11652
|
name: "sidebar.right.pane.tab",
|