dsh-edge 0.18.0 → 0.19.0-alpha.2
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.i18n.yaml +2 -2
- package/README.md +8 -8
- package/README.zh.md +8 -8
- package/THIRD_PARTY_NOTICES.md +2011 -449
- package/dist/assets/fonts/Montserrat-OFL.txt +93 -0
- package/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
- package/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
- package/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
- package/dist/assets/index-Cq6ljTv2.css +1 -0
- package/dist/assets/index-Dy0OhsZ5.js +127 -0
- package/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
- package/dist/assets/langs/bat-BkioyH1T.js +2 -0
- package/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
- package/dist/assets/langs/clojure-P80f7IUj.js +2 -0
- package/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
- package/dist/assets/langs/csv-fuZLfV_i.js +2 -0
- package/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
- package/dist/assets/langs/diff-D97Zzqfu.js +2 -0
- package/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
- package/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
- package/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
- package/dist/assets/langs/fish-BvzEVeQv.js +2 -0
- package/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
- package/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
- package/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
- package/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
- package/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
- package/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
- package/dist/assets/langs/html-fwsONPVS.js +2 -0
- package/dist/assets/langs/http-DcV90OkR.js +2 -0
- package/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
- package/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
- package/dist/assets/langs/latex-B4C7GdlO.js +2 -0
- package/dist/assets/langs/log-2UxHyX5q.js +2 -0
- package/dist/assets/langs/make-CHLpvVh8.js +2 -0
- package/dist/assets/langs/nix-CwoSXNpI.js +2 -0
- package/dist/assets/langs/perl-DsWkoyyU.js +2 -0
- package/dist/assets/langs/php-LEPfNACG.js +2 -0
- package/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
- package/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
- package/dist/assets/langs/r-Dspwwk_N.js +2 -0
- package/dist/assets/langs/rst-BbocfKWr.js +2 -0
- package/dist/assets/langs/ruby-R292Iif0.js +2 -0
- package/dist/assets/langs/scala-C151Ov-r.js +2 -0
- package/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
- package/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
- package/dist/assets/langs/vb-D17OF-Vu.js +2 -0
- package/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
- package/dist/assets/langs/vue-Dq2x6432.js +2 -0
- package/dist/favicon-dark.svg +3 -0
- package/dist/favicon.svg +0 -5
- package/dist/index.html +5 -4
- package/dist/manifest.webmanifest +3 -4
- package/dist/plugins/@deepseek-ai/dsh-api-gateway/client.js +353 -101
- package/dist/plugins/@deepseek-ai/dsh-api-job-controller/client.js +367 -0
- package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +7223 -3584
- package/dist/plugins/@deepseek-ai/dsh-api-session-controller/client.js +1107 -991
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-controller/client.js +119 -6
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-files/client.js +41 -35
- package/dist/plugins/@deepseek-ai/dsh-client-connection/client.js +354 -5279
- package/dist/plugins/@deepseek-ai/dsh-client-file-upload/client.js +10 -23
- package/dist/plugins/@deepseek-ai/dsh-client-locale/client.js +234 -80
- package/dist/plugins/@deepseek-ai/dsh-client-modules/client.js +554 -46
- package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +2006 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +1090 -914
- package/dist/plugins/@deepseek-ai/dsh-client-ui-approval/client.js +79 -6
- package/dist/plugins/@deepseek-ai/dsh-client-ui-attachment/client.js +126 -155
- package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +5776 -1593
- package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +375 -121
- package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +3524 -1923
- package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +1615 -258
- package/dist/plugins/@deepseek-ai/dsh-client-ui-directory-picker-browse/client.js +9 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-goal/client.js +25 -10
- package/dist/plugins/@deepseek-ai/dsh-client-ui-input-trigger/client.js +169 -24
- package/dist/plugins/@deepseek-ai/dsh-client-ui-jobs/client.js +413 -63
- package/dist/plugins/@deepseek-ai/dsh-client-ui-layout/client.js +131 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-message-feedback/client.js +24 -22
- package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +281 -128
- package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +674 -223
- package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +596 -18
- package/dist/plugins/@deepseek-ai/dsh-client-ui-reference/client.js +92 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +467 -59
- package/dist/plugins/@deepseek-ai/dsh-client-ui-session/client.js +231 -72
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings/client.js +281 -117
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +642 -122
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-models/client.js +1565 -438
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/client.js +201 -75
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugins/client.js +30 -1628
- package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1163 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +165 -39
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-browser/client.js +1648 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/client.js +5515 -25622
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +419 -118
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +5692 -260
- package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +156 -41
- package/dist/plugins/@deepseek-ai/dsh-client-ui-subagent/client.js +386 -263
- package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +183 -73
- package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +2367 -429
- package/dist/plugins/@deepseek-ai/dsh-client-ui-trajectory/client.js +788 -270
- package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +87 -79
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +28 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +2647 -1044
- package/dist/plugins/@deepseek-ai/dsh-typert-registry/client.js +22 -7
- package/dist/plugins/dsh-edge-client-ui/client.js +1 -10
- package/package.json +96 -86
- package/scripts/cli.mjs +16 -4
- package/scripts/install.d.mts +12 -2
- package/scripts/install.mjs +36 -9
- package/scripts/legal-files.mjs +15 -0
- package/worker/direct/index.js +2564 -1822
- package/worker/isolated/index.js +2144 -1402
- package/dist/assets/index-BKQ_L1z6.js +0 -117
- package/dist/assets/index-DPX2bQLO.css +0 -1
- package/dist/assets/langs/html-CfGypltT.js +0 -2
- package/dist/assets/langs/php-DJl5gRdb.js +0 -2
- package/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
- package/dist/plugins/@deepseek-ai/dsh-client-ui-permission-presets/client.js +0 -505
- package/dist/plugins/@deepseek-ai/dsh-client-ui-schedule/client.js +0 -307
|
@@ -7,7 +7,7 @@ window.__ModuleLoader__.load({
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
10
|
-
//#region ../../preset/agent-
|
|
10
|
+
//#region ../../preset/agent-preset-registry/src/display.ts
|
|
11
11
|
const BUILT_IN_PRESET_KEYS = {
|
|
12
12
|
standard: {
|
|
13
13
|
name: "presetStandardName",
|
|
@@ -27,13 +27,22 @@ window.__ModuleLoader__.load({
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
+
* Whether a roster row is one of the shipped presets whose copy the dictionaries carry.
|
|
31
|
+
* A shipped preset publishes no `name`; a declaration that names itself owns its copy.
|
|
32
|
+
* @param preset - roster row.
|
|
33
|
+
* @returns true for a shipped preset id without a published name.
|
|
34
|
+
*/
|
|
35
|
+
function isBuiltInPreset(preset) {
|
|
36
|
+
return preset.name === void 0 && BUILT_IN_PRESET_KEYS[preset.id] !== void 0;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
30
39
|
* Resolve preset display copy without making user-authored metadata translatable.
|
|
31
40
|
* @param preset - roster row whose copy is being rendered.
|
|
32
41
|
* @param t - active locale lookup covering {@link BuiltInPresetCopyKey}.
|
|
33
|
-
* @returns localized copy for a known shipped preset, otherwise
|
|
42
|
+
* @returns localized copy for a known shipped preset, otherwise declaration metadata.
|
|
34
43
|
*/
|
|
35
44
|
function presetDisplayText(preset, t) {
|
|
36
|
-
const keys = preset
|
|
45
|
+
const keys = isBuiltInPreset(preset) ? BUILT_IN_PRESET_KEYS[preset.id] : void 0;
|
|
37
46
|
if (keys !== void 0) return {
|
|
38
47
|
name: t(keys.name),
|
|
39
48
|
description: t(keys.description)
|
|
@@ -45,7 +54,7 @@ window.__ModuleLoader__.load({
|
|
|
45
54
|
}
|
|
46
55
|
//#endregion
|
|
47
56
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-settings-plugin-inventory/src/client/PluginInventorySettingsTab.module.css.mjs
|
|
48
|
-
const css = ".qSYn7G_section{width:100%;max-width:760px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:14px;display:flex}.
|
|
57
|
+
const css = ".qSYn7G_section{width:100%;max-width:760px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:14px;display:flex;container:qSYn7G_plugin-inventory/inline-size}.qSYn7G_status,.qSYn7G_failure p{margin:0}.qSYn7G_status,.qSYn7G_failure{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px}.qSYn7G_failure{color:var(--dsw-alias-state-error-primary);align-items:center;gap:10px;display:flex}.qSYn7G_statusWithDot{align-items:center;gap:6px;display:inline-flex}.qSYn7G_failure button{border:.5px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;padding:4px 10px}.qSYn7G_catalog{flex-direction:column;gap:12px;display:flex}.qSYn7G_search{width:100%;color:var(--dsw-alias-label-tertiary);align-items:center;display:flex;position:relative}.qSYn7G_search>svg{pointer-events:none;position:absolute;left:12px}.qSYn7G_search input{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);width:100%;height:36px;color:var(--dsw-alias-label-primary);font:inherit;outline:none;padding:0 34px 0 36px;font-size:13px}.qSYn7G_search input::placeholder{color:var(--dsw-alias-label-tertiary)}.qSYn7G_search input:focus-visible{border-color:var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));box-shadow:0 0 0 2px color-mix(in srgb, var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary)) 18%, transparent)}.qSYn7G_cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.qSYn7G_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;min-width:0;display:flex;overflow:hidden}.qSYn7G_card[data-open=true]{border-color:var(--dsw-alias-border-l3)}.qSYn7G_card:nth-child(odd)[data-open=true]+.qSYn7G_card,.qSYn7G_card:nth-child(odd):has(+.qSYn7G_card[data-open=true]){align-self:start}.qSYn7G_cardContent{box-sizing:border-box;width:100%;min-height:52px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:auto;align-items:stretch;gap:2px;padding:12px 14px;display:flex}.qSYn7G_cardContent:hover,.qSYn7G_card[data-open=true]>.qSYn7G_cardContent{background:var(--dsw-alias-interactive-bg-hover)}.qSYn7G_cardContent:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.qSYn7G_cardMainRow{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.qSYn7G_cardTitle,.qSYn7G_cardIdentity{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.qSYn7G_cardTitle{flex:1;min-width:0;font-size:14px;font-weight:500;line-height:20px}.qSYn7G_cardDescription{color:var(--dsw-alias-label-tertiary);text-wrap:pretty;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.qSYn7G_card[data-open=true] .qSYn7G_cardDescription{display:block}.qSYn7G_cardMeta{margin-top:auto;padding-top:6px;display:flex}.qSYn7G_cardIdentity,.qSYn7G_entryValue{font-family:var(--ds-font-family-code);font-size:12px;line-height:18px}.qSYn7G_cardIdentity{box-sizing:border-box;border-radius:var(--dsw-radius-xs);background:var(--dsw-alias-bg-module-platform);max-width:100%;color:var(--dsw-alias-label-secondary);padding:1px 6px;display:block}.qSYn7G_cardTrailing{color:var(--dsw-alias-label-tertiary);flex:none;align-items:center;gap:8px;display:inline-flex}.qSYn7G_phaseDot{flex:none;display:inline-flex}.qSYn7G_group{flex-direction:column;gap:10px;display:flex}.qSYn7G_groupTitleRow{align-items:center;gap:8px;min-height:36px;display:flex}.qSYn7G_group+.qSYn7G_group{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:14px}.qSYn7G_headerEnd{margin-left:auto}.qSYn7G_groupToggle{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:none;align-items:center;gap:8px;padding:0;display:flex}.qSYn7G_groupToggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.qSYn7G_groupToggle>.qSYn7G_chevron{transform:rotate(-90deg)}.qSYn7G_groupToggle[aria-expanded=true]>.qSYn7G_chevron{transform:none}.qSYn7G_groupTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.qSYn7G_groupSub{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex-wrap:wrap;row-gap:4px;margin:-6px 0 0 20px;font-size:12px;line-height:18px;display:flex}.qSYn7G_groupSub>*+:before{content:\"·\";color:var(--dsw-alias-label-tertiary);padding:0 6px}.qSYn7G_failedCount{color:var(--dsw-alias-state-error-primary)}.qSYn7G_switcher{white-space:nowrap;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);height:36px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;border:none;flex:none;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.qSYn7G_switcher:hover{background:var(--dsw-alias-interactive-bg-hover)}.qSYn7G_switcher:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.qSYn7G_switcher>.qSYn7G_chevron{flex:none}.qSYn7G_switcherLabel{text-overflow:ellipsis;max-width:240px;overflow:hidden}.qSYn7G_groupBody{flex-direction:column;gap:10px;display:flex}.qSYn7G_brokenNote{border-radius:var(--dsw-radius-lg);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 8%, transparent);color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;white-space:pre-line;margin:0;padding:8px 10px;font-size:12px;line-height:18px}.qSYn7G_hint{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0;font-size:12px;line-height:18px;display:flex}.qSYn7G_jumpLink{color:var(--dsw-alias-state-business-primary);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:12px}.qSYn7G_skeletonCard{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;gap:8px;padding:15px 14px;display:flex}.qSYn7G_skeletonBar{border-radius:var(--dsw-radius-xs);background:var(--dsw-alias-bg-skeleton);width:40%;height:14px}.qSYn7G_skeletonBar+.qSYn7G_skeletonBar{width:80%;height:12px}.qSYn7G_enabledIn{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.qSYn7G_card[data-failed=true]{border-color:color-mix(in srgb, var(--dsw-alias-state-error-primary) 45%, transparent)}.qSYn7G_chevron{color:var(--dsw-alias-label-tertiary);flex:none}.qSYn7G_card[data-open=true] .qSYn7G_chevron{transform:rotate(180deg)}.qSYn7G_cardDetails{border-top:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);padding:10px 14px 12px}.qSYn7G_entryValue{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);display:block}.qSYn7G_details{grid-template-columns:76px minmax(0,1fr);gap:6px 10px;margin:8px 0 0;display:grid}.qSYn7G_details div{display:contents}.qSYn7G_details dt{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:17px}.qSYn7G_details dd{overflow-wrap:anywhere;min-width:0;color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:17px}.qSYn7G_visuallyHidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:no-preference){.qSYn7G_chevron{transition:transform .14s var(--ds-ease-in-out)}.qSYn7G_skeletonBar{animation:2s cubic-bezier(.36,0,.64,1) infinite qSYn7G_plugin-inventory-skeleton}}@keyframes qSYn7G_plugin-inventory-skeleton{0%{opacity:1}40%{opacity:.6}80%,to{opacity:1}}@container qSYn7G_plugin-inventory (width<=520px){.qSYn7G_cards{grid-template-columns:minmax(0,1fr)}}";
|
|
49
58
|
const tagId = "@deepseek-ai/dsh-client-ui-settings-plugin-inventory/PluginInventorySettingsTab.module.css";
|
|
50
59
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
51
60
|
const tag = document.createElement("style");
|
|
@@ -58,14 +67,15 @@ window.__ModuleLoader__.load({
|
|
|
58
67
|
"brokenNote": "qSYn7G_brokenNote",
|
|
59
68
|
"card": "qSYn7G_card",
|
|
60
69
|
"cardContent": "qSYn7G_cardContent",
|
|
70
|
+
"cardDescription": "qSYn7G_cardDescription",
|
|
61
71
|
"cardDetails": "qSYn7G_cardDetails",
|
|
62
72
|
"cardIdentity": "qSYn7G_cardIdentity",
|
|
63
73
|
"cardMainRow": "qSYn7G_cardMainRow",
|
|
74
|
+
"cardMeta": "qSYn7G_cardMeta",
|
|
64
75
|
"cardTitle": "qSYn7G_cardTitle",
|
|
65
76
|
"cardTrailing": "qSYn7G_cardTrailing",
|
|
66
77
|
"cards": "qSYn7G_cards",
|
|
67
78
|
"catalog": "qSYn7G_catalog",
|
|
68
|
-
"catalogHeading": "qSYn7G_catalogHeading",
|
|
69
79
|
"chevron": "qSYn7G_chevron",
|
|
70
80
|
"details": "qSYn7G_details",
|
|
71
81
|
"enabledIn": "qSYn7G_enabledIn",
|
|
@@ -82,9 +92,14 @@ window.__ModuleLoader__.load({
|
|
|
82
92
|
"hint": "qSYn7G_hint",
|
|
83
93
|
"jumpLink": "qSYn7G_jumpLink",
|
|
84
94
|
"phaseDot": "qSYn7G_phaseDot",
|
|
95
|
+
"plugin-inventory": "qSYn7G_plugin-inventory",
|
|
96
|
+
"plugin-inventory-skeleton": "qSYn7G_plugin-inventory-skeleton",
|
|
85
97
|
"search": "qSYn7G_search",
|
|
86
98
|
"section": "qSYn7G_section",
|
|
99
|
+
"skeletonBar": "qSYn7G_skeletonBar",
|
|
100
|
+
"skeletonCard": "qSYn7G_skeletonCard",
|
|
87
101
|
"status": "qSYn7G_status",
|
|
102
|
+
"statusWithDot": "qSYn7G_statusWithDot",
|
|
88
103
|
"switcher": "qSYn7G_switcher",
|
|
89
104
|
"switcherLabel": "qSYn7G_switcherLabel",
|
|
90
105
|
"visuallyHidden": "qSYn7G_visuallyHidden"
|
|
@@ -98,11 +113,18 @@ window.__ModuleLoader__.load({
|
|
|
98
113
|
failed: "failed",
|
|
99
114
|
unloading: "unloading"
|
|
100
115
|
};
|
|
116
|
+
/** Placeholder cards the loading skeleton lays out in the cards grid. */
|
|
117
|
+
const SKELETON_CARDS = [
|
|
118
|
+
0,
|
|
119
|
+
1,
|
|
120
|
+
2,
|
|
121
|
+
3
|
|
122
|
+
];
|
|
101
123
|
/** Localized accessible label for one root Fiber phase. */
|
|
102
124
|
function phaseLabel(phase, t) {
|
|
103
125
|
return phase === null ? t("unobserved") : t(PHASE_KEYS[phase]);
|
|
104
126
|
}
|
|
105
|
-
/** Compact
|
|
127
|
+
/** Compact technical names for Settings without changing their module identity. */
|
|
106
128
|
function moduleShortName(moduleName) {
|
|
107
129
|
return (moduleName.startsWith("@") ? moduleName.slice(moduleName.indexOf("/") + 1) : moduleName).replace(/^cordis:/, "").replace(/^cordis-plugin-/, "").replace(/^dsh-(?:host-|client-)?/, "");
|
|
108
130
|
}
|
|
@@ -110,10 +132,32 @@ window.__ModuleLoader__.load({
|
|
|
110
132
|
function entrySubtitle(entryId) {
|
|
111
133
|
return entryId.replace(/^include:/, "");
|
|
112
134
|
}
|
|
113
|
-
/** Whether
|
|
114
|
-
function
|
|
135
|
+
/** Whether a card shows its entry id: the id exists and, without its `include:` marker, differs from the title. */
|
|
136
|
+
function idAddsToTitle(entryId, title) {
|
|
137
|
+
return entryId !== null && entrySubtitle(entryId) !== title;
|
|
138
|
+
}
|
|
139
|
+
/** Accessible card name: the title, the complete entry id when the card shows one, then the enablement state. */
|
|
140
|
+
function cardLabel(title, entryId, state) {
|
|
141
|
+
return idAddsToTitle(entryId, title) ? `${title}, ${entryId}, ${state}` : `${title}, ${state}`;
|
|
142
|
+
}
|
|
143
|
+
/** Preserve translated titles and shorten literal package or module name fallbacks in Settings. */
|
|
144
|
+
function pluginText(row, resolveText) {
|
|
145
|
+
const title = row.meta?.title;
|
|
146
|
+
return {
|
|
147
|
+
title: typeof title === "object" ? resolveText(title) : moduleShortName(title ?? row.moduleName),
|
|
148
|
+
description: row.meta?.description === void 0 ? void 0 : resolveText(row.meta.description) || void 0
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/** Match translated text alongside the row's technical module and entry identities. */
|
|
152
|
+
function matches(row, normalizedQuery, resolveText) {
|
|
115
153
|
if (normalizedQuery.length === 0) return true;
|
|
116
|
-
|
|
154
|
+
const { title, description } = pluginText(row, resolveText);
|
|
155
|
+
return [
|
|
156
|
+
row.moduleName,
|
|
157
|
+
row.entryId,
|
|
158
|
+
title,
|
|
159
|
+
description
|
|
160
|
+
].some((value) => value?.toLocaleLowerCase().includes(normalizedQuery));
|
|
117
161
|
}
|
|
118
162
|
/** The roster row shown when the preset switcher has no explicit choice. */
|
|
119
163
|
function fallbackPreset(presets) {
|
|
@@ -127,48 +171,70 @@ window.__ModuleLoader__.load({
|
|
|
127
171
|
return name;
|
|
128
172
|
}
|
|
129
173
|
/** One expandable plugin card; the caller owns the trailing status content. */
|
|
130
|
-
function PluginCard({ rowKey, moduleName, entryId, trailing, ariaLabel, failed, expanded, onToggle, children }) {
|
|
174
|
+
function PluginCard({ rowKey, moduleName, title, description, metadataError, entryId, trailing, ariaLabel, failed, expanded, onToggle, children }) {
|
|
131
175
|
const open = expanded === rowKey;
|
|
132
176
|
const detailId = `plugin-details-${encodeURIComponent(rowKey)}`;
|
|
177
|
+
const descriptionId = (0, react.useId)();
|
|
133
178
|
return (0, react_jsx_runtime.jsxs)("li", {
|
|
134
179
|
className: PluginInventorySettingsTab_module_css_default.card,
|
|
135
180
|
"data-plugin-entry": entryId ?? void 0,
|
|
136
181
|
"data-plugin-module": moduleName,
|
|
137
182
|
"data-failed": failed ? "true" : void 0,
|
|
138
183
|
"data-open": open ? "true" : void 0,
|
|
139
|
-
children: [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
children: [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
184
|
+
children: [
|
|
185
|
+
(0, react_jsx_runtime.jsxs)("button", {
|
|
186
|
+
className: PluginInventorySettingsTab_module_css_default.cardContent,
|
|
187
|
+
type: "button",
|
|
188
|
+
"aria-expanded": open,
|
|
189
|
+
"aria-controls": detailId,
|
|
190
|
+
"aria-label": ariaLabel,
|
|
191
|
+
"aria-describedby": description === void 0 ? void 0 : descriptionId,
|
|
192
|
+
onClick: () => {
|
|
193
|
+
onToggle(rowKey);
|
|
194
|
+
},
|
|
195
|
+
children: [
|
|
196
|
+
(0, react_jsx_runtime.jsxs)("span", {
|
|
197
|
+
className: PluginInventorySettingsTab_module_css_default.cardMainRow,
|
|
198
|
+
children: [(0, react_jsx_runtime.jsx)("strong", {
|
|
199
|
+
className: PluginInventorySettingsTab_module_css_default.cardTitle,
|
|
200
|
+
title: moduleName,
|
|
201
|
+
children: title
|
|
202
|
+
}), (0, react_jsx_runtime.jsxs)("span", {
|
|
203
|
+
className: PluginInventorySettingsTab_module_css_default.cardTrailing,
|
|
204
|
+
children: [trailing, (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {
|
|
205
|
+
className: PluginInventorySettingsTab_module_css_default.chevron,
|
|
206
|
+
size: 12,
|
|
207
|
+
"aria-hidden": "true"
|
|
208
|
+
})]
|
|
209
|
+
})]
|
|
210
|
+
}),
|
|
211
|
+
description === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
212
|
+
className: PluginInventorySettingsTab_module_css_default.cardDescription,
|
|
213
|
+
id: descriptionId,
|
|
214
|
+
children: description
|
|
215
|
+
}),
|
|
216
|
+
idAddsToTitle(entryId, title) ? (0, react_jsx_runtime.jsx)("span", {
|
|
217
|
+
className: PluginInventorySettingsTab_module_css_default.cardMeta,
|
|
218
|
+
children: (0, react_jsx_runtime.jsx)("code", {
|
|
219
|
+
className: PluginInventorySettingsTab_module_css_default.cardIdentity,
|
|
220
|
+
title: entryId,
|
|
221
|
+
children: entrySubtitle(entryId)
|
|
222
|
+
})
|
|
223
|
+
}) : null
|
|
224
|
+
]
|
|
225
|
+
}),
|
|
226
|
+
metadataError === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
227
|
+
className: PluginInventorySettingsTab_module_css_default.brokenNote,
|
|
228
|
+
role: "status",
|
|
229
|
+
"data-package-meta-error": true,
|
|
230
|
+
children: metadataError
|
|
231
|
+
}),
|
|
232
|
+
open ? (0, react_jsx_runtime.jsx)("div", {
|
|
233
|
+
className: PluginInventorySettingsTab_module_css_default.cardDetails,
|
|
234
|
+
id: detailId,
|
|
235
|
+
children
|
|
236
|
+
}) : null
|
|
237
|
+
]
|
|
172
238
|
});
|
|
173
239
|
}
|
|
174
240
|
/** Detail rows shared by every card: the Loader identity, then labeled facts. */
|
|
@@ -185,11 +251,13 @@ window.__ModuleLoader__.load({
|
|
|
185
251
|
const PHASE_DOT_STATES = {
|
|
186
252
|
pending: "idle",
|
|
187
253
|
loading: "ongoing",
|
|
188
|
-
active: "done",
|
|
189
|
-
failed: "error",
|
|
190
254
|
unloading: "ongoing"
|
|
191
255
|
};
|
|
192
|
-
/**
|
|
256
|
+
/** Whether a live root-fiber phase carries a dot of its own. */
|
|
257
|
+
function showsPhaseDot(phase) {
|
|
258
|
+
return phase === "pending" || phase === "loading" || phase === "unloading";
|
|
259
|
+
}
|
|
260
|
+
/** Status dot naming a live root-fiber phase; rows without a dotted phase show none. */
|
|
193
261
|
function PhaseDot({ phase, t }) {
|
|
194
262
|
const status = phaseLabel(phase, t);
|
|
195
263
|
return (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -201,21 +269,21 @@ window.__ModuleLoader__.load({
|
|
|
201
269
|
});
|
|
202
270
|
}
|
|
203
271
|
const TAG_TONES = {
|
|
204
|
-
enabled: "success",
|
|
205
272
|
disabled: "neutral",
|
|
206
273
|
conditional: "warning",
|
|
207
274
|
preset: "info",
|
|
208
275
|
failed: "danger"
|
|
209
276
|
};
|
|
210
|
-
/** Enablement tag
|
|
277
|
+
/** Enablement tag for the states that depart from the default; a plainly enabled row carries none. */
|
|
211
278
|
function StateTag({ kind, label }) {
|
|
212
|
-
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
279
|
+
return kind === "enabled" ? null : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
213
280
|
tone: TAG_TONES[kind],
|
|
214
281
|
children: label
|
|
215
282
|
});
|
|
216
283
|
}
|
|
217
284
|
/** Render the read-only plugin inventory: agent presets first, then the global plane. */
|
|
218
|
-
function PluginInventorySettingsTab({ list, presetName, t }) {
|
|
285
|
+
function PluginInventorySettingsTab({ list, presetName, resolveText, t, useClientSync, retryClient }) {
|
|
286
|
+
const clientSync = useClientSync((snapshot) => snapshot);
|
|
219
287
|
const sectionId = (0, react.useId)();
|
|
220
288
|
const [request, setRequest] = (0, react.useState)(0);
|
|
221
289
|
const [query, setQuery] = (0, react.useState)("");
|
|
@@ -260,8 +328,8 @@ window.__ModuleLoader__.load({
|
|
|
260
328
|
const regularEntries = [];
|
|
261
329
|
for (const entry of entries) if (entry.fiberPhase === "failed") failedEntries.push(entry);
|
|
262
330
|
else regularEntries.push(entry);
|
|
263
|
-
const entryMatch = (entry) => matches(entry
|
|
264
|
-
const rowMatch = (row) => matches(row
|
|
331
|
+
const entryMatch = (entry) => matches(entry, normalizedQuery, resolveText);
|
|
332
|
+
const rowMatch = (row) => matches(row, normalizedQuery, resolveText);
|
|
265
333
|
const filteredFailed = failedEntries.filter(entryMatch);
|
|
266
334
|
const filteredRegular = regularEntries.filter(entryMatch);
|
|
267
335
|
const globalCount = filteredFailed.length + filteredRegular.length;
|
|
@@ -269,7 +337,7 @@ window.__ModuleLoader__.load({
|
|
|
269
337
|
const otherPresetMatches = searching ? presets.filter((preset) => preset !== selected && preset.rows.some(rowMatch)) : [];
|
|
270
338
|
const otherMatchCount = otherPresetMatches.reduce((total, preset) => total + preset.rows.filter(rowMatch).length, 0);
|
|
271
339
|
const presetEffectiveOpen = searching || (presetOpen ?? true);
|
|
272
|
-
const globalEffectiveOpen = searching || (globalOpen ??
|
|
340
|
+
const globalEffectiveOpen = searching || (globalOpen ?? false);
|
|
273
341
|
const nothingMatches = searching && globalCount === 0 && selectedRows.length === 0 && otherPresetMatches.length === 0;
|
|
274
342
|
const retry = () => {
|
|
275
343
|
setState({ status: "loading" });
|
|
@@ -281,19 +349,22 @@ window.__ModuleLoader__.load({
|
|
|
281
349
|
/** Trailing status and detail facts for one row of the selected preset. */
|
|
282
350
|
const presetRowCard = (preset, row, index) => {
|
|
283
351
|
const key = `preset:${preset.id}:${String(index)}`;
|
|
284
|
-
const title =
|
|
352
|
+
const { title, description } = pluginText(row, resolveText);
|
|
285
353
|
const failed = row.fiberPhase === "failed";
|
|
286
354
|
const stateText = failed ? t("failedTag") : row.enabled === true ? t("enabledTag") : row.enabled === false ? t("disabledTag") : t("conditionalTag");
|
|
287
355
|
const kind = failed ? "failed" : row.enabled === true ? "enabled" : row.enabled === false ? "disabled" : "conditional";
|
|
288
356
|
return (0, react_jsx_runtime.jsx)(PluginCard, {
|
|
289
357
|
rowKey: key,
|
|
290
358
|
moduleName: row.moduleName,
|
|
359
|
+
title,
|
|
360
|
+
description,
|
|
361
|
+
metadataError: row.meta?.error === void 0 ? void 0 : t("metadataError", { error: row.meta.error }),
|
|
291
362
|
entryId: row.entryId,
|
|
292
363
|
failed,
|
|
293
364
|
expanded,
|
|
294
365
|
onToggle: toggleRow,
|
|
295
|
-
ariaLabel:
|
|
296
|
-
trailing: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [row.enabled === true &&
|
|
366
|
+
ariaLabel: cardLabel(title, row.entryId, stateText),
|
|
367
|
+
trailing: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [row.enabled === true && showsPhaseDot(row.fiberPhase) ? (0, react_jsx_runtime.jsx)(PhaseDot, {
|
|
297
368
|
phase: row.fiberPhase,
|
|
298
369
|
t
|
|
299
370
|
}) : null, (0, react_jsx_runtime.jsx)(StateTag, {
|
|
@@ -316,19 +387,22 @@ window.__ModuleLoader__.load({
|
|
|
316
387
|
/** One global-plane row; a preset-provided row carries the presets that enable it. */
|
|
317
388
|
const globalRowCard = (entry, providers) => {
|
|
318
389
|
const key = `global:${entry.entryId}`;
|
|
319
|
-
const title =
|
|
390
|
+
const { title, description } = pluginText(entry, resolveText);
|
|
320
391
|
const failed = entry.fiberPhase === "failed";
|
|
321
392
|
const stateText = failed ? t("failedTag") : providers !== void 0 ? t("presetEnabledTag") : t(entry.enabled ? "enabledTag" : "disabledTag");
|
|
322
393
|
const kind = failed ? "failed" : providers !== void 0 ? "preset" : entry.enabled ? "enabled" : "disabled";
|
|
323
394
|
return (0, react_jsx_runtime.jsx)(PluginCard, {
|
|
324
395
|
rowKey: key,
|
|
325
396
|
moduleName: entry.moduleName,
|
|
397
|
+
title,
|
|
398
|
+
description,
|
|
399
|
+
metadataError: entry.meta?.error === void 0 ? void 0 : t("metadataError", { error: entry.meta.error }),
|
|
326
400
|
entryId: entry.entryId,
|
|
327
401
|
failed,
|
|
328
402
|
expanded,
|
|
329
403
|
onToggle: toggleRow,
|
|
330
|
-
ariaLabel:
|
|
331
|
-
trailing: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [entry.enabled &&
|
|
404
|
+
ariaLabel: cardLabel(title, entry.entryId, stateText),
|
|
405
|
+
trailing: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [entry.enabled && showsPhaseDot(entry.fiberPhase) ? (0, react_jsx_runtime.jsx)(PhaseDot, {
|
|
332
406
|
phase: entry.fiberPhase,
|
|
333
407
|
t
|
|
334
408
|
}) : null, (0, react_jsx_runtime.jsx)(StateTag, {
|
|
@@ -357,15 +431,51 @@ window.__ModuleLoader__.load({
|
|
|
357
431
|
className: PluginInventorySettingsTab_module_css_default.section,
|
|
358
432
|
"aria-busy": state.status === "loading",
|
|
359
433
|
children: [
|
|
360
|
-
|
|
361
|
-
className: PluginInventorySettingsTab_module_css_default.status
|
|
362
|
-
|
|
434
|
+
clientSync.syncing ? (0, react_jsx_runtime.jsxs)("p", {
|
|
435
|
+
className: `${PluginInventorySettingsTab_module_css_default.status} ${PluginInventorySettingsTab_module_css_default.statusWithDot}`,
|
|
436
|
+
role: "status",
|
|
437
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "ongoing" }), t("clientSyncing")]
|
|
438
|
+
}) : null,
|
|
439
|
+
clientSync.failures.length === 0 ? null : (0, react_jsx_runtime.jsxs)("div", {
|
|
440
|
+
className: PluginInventorySettingsTab_module_css_default.failure,
|
|
441
|
+
"data-client-sync-failure": true,
|
|
442
|
+
children: [
|
|
443
|
+
(0, react_jsx_runtime.jsxs)("p", {
|
|
444
|
+
className: PluginInventorySettingsTab_module_css_default.statusWithDot,
|
|
445
|
+
role: "alert",
|
|
446
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "error" }), t("clientSyncFailed")]
|
|
447
|
+
}),
|
|
448
|
+
(0, react_jsx_runtime.jsx)("ul", { children: clientSync.failures.map((failure) => (0, react_jsx_runtime.jsxs)("li", { children: [
|
|
449
|
+
failure.id,
|
|
450
|
+
": ",
|
|
451
|
+
failure.message
|
|
452
|
+
] }, failure.id)) }),
|
|
453
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
454
|
+
type: "button",
|
|
455
|
+
disabled: clientSync.syncing,
|
|
456
|
+
onClick: retryClient,
|
|
457
|
+
children: t("clientSyncRetry")
|
|
458
|
+
})
|
|
459
|
+
]
|
|
460
|
+
}),
|
|
461
|
+
state.status === "loading" ? (0, react_jsx_runtime.jsxs)("div", {
|
|
462
|
+
className: PluginInventorySettingsTab_module_css_default.cards,
|
|
463
|
+
role: "status",
|
|
464
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
465
|
+
className: PluginInventorySettingsTab_module_css_default.visuallyHidden,
|
|
466
|
+
children: t("loading")
|
|
467
|
+
}), SKELETON_CARDS.map((slot) => (0, react_jsx_runtime.jsxs)("div", {
|
|
468
|
+
className: PluginInventorySettingsTab_module_css_default.skeletonCard,
|
|
469
|
+
"aria-hidden": "true",
|
|
470
|
+
children: [(0, react_jsx_runtime.jsx)("span", { className: PluginInventorySettingsTab_module_css_default.skeletonBar }), (0, react_jsx_runtime.jsx)("span", { className: PluginInventorySettingsTab_module_css_default.skeletonBar })]
|
|
471
|
+
}, slot))]
|
|
363
472
|
}) : null,
|
|
364
473
|
state.status === "error" ? (0, react_jsx_runtime.jsxs)("div", {
|
|
365
474
|
className: PluginInventorySettingsTab_module_css_default.failure,
|
|
366
|
-
children: [(0, react_jsx_runtime.
|
|
475
|
+
children: [(0, react_jsx_runtime.jsxs)("p", {
|
|
476
|
+
className: PluginInventorySettingsTab_module_css_default.statusWithDot,
|
|
367
477
|
role: "alert",
|
|
368
|
-
children: t("error")
|
|
478
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: "error" }), t("error")]
|
|
369
479
|
}), (0, react_jsx_runtime.jsx)("button", {
|
|
370
480
|
type: "button",
|
|
371
481
|
onClick: retry,
|
|
@@ -378,7 +488,7 @@ window.__ModuleLoader__.load({
|
|
|
378
488
|
(0, react_jsx_runtime.jsxs)("label", {
|
|
379
489
|
className: PluginInventorySettingsTab_module_css_default.search,
|
|
380
490
|
children: [
|
|
381
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
491
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSearchOutlineRegular, { "aria-hidden": "true" }),
|
|
382
492
|
(0, react_jsx_runtime.jsx)("span", {
|
|
383
493
|
className: PluginInventorySettingsTab_module_css_default.visuallyHidden,
|
|
384
494
|
children: t("search")
|
|
@@ -417,7 +527,7 @@ window.__ModuleLoader__.load({
|
|
|
417
527
|
onClick: () => {
|
|
418
528
|
setPresetOpen(!presetEffectiveOpen);
|
|
419
529
|
},
|
|
420
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
530
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {
|
|
421
531
|
className: PluginInventorySettingsTab_module_css_default.chevron,
|
|
422
532
|
size: 12,
|
|
423
533
|
"aria-hidden": "true"
|
|
@@ -455,7 +565,7 @@ window.__ModuleLoader__.load({
|
|
|
455
565
|
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
456
566
|
className: PluginInventorySettingsTab_module_css_default.switcherLabel,
|
|
457
567
|
children: presetLabel(selected, t, presetName)
|
|
458
|
-
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
568
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {
|
|
459
569
|
className: PluginInventorySettingsTab_module_css_default.chevron,
|
|
460
570
|
"aria-hidden": "true"
|
|
461
571
|
})]
|
|
@@ -465,9 +575,9 @@ window.__ModuleLoader__.load({
|
|
|
465
575
|
}),
|
|
466
576
|
(0, react_jsx_runtime.jsxs)("p", {
|
|
467
577
|
className: PluginInventorySettingsTab_module_css_default.groupSub,
|
|
468
|
-
children: [t("presetSubtitle"), (0, react_jsx_runtime.jsx)("span", {
|
|
578
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("presetSubtitle") }), (0, react_jsx_runtime.jsx)("span", {
|
|
469
579
|
"data-preset-plugin-count": selectedRows.length,
|
|
470
|
-
children:
|
|
580
|
+
children: `${String(selectedRows.length)} ${t("countUnit")}`
|
|
471
581
|
})]
|
|
472
582
|
}),
|
|
473
583
|
presetEffectiveOpen ? (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -512,7 +622,7 @@ window.__ModuleLoader__.load({
|
|
|
512
622
|
onClick: () => {
|
|
513
623
|
setGlobalOpen(!globalEffectiveOpen);
|
|
514
624
|
},
|
|
515
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
625
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {
|
|
516
626
|
className: PluginInventorySettingsTab_module_css_default.chevron,
|
|
517
627
|
size: 12,
|
|
518
628
|
"aria-hidden": "true"
|
|
@@ -525,10 +635,10 @@ window.__ModuleLoader__.load({
|
|
|
525
635
|
(0, react_jsx_runtime.jsxs)("p", {
|
|
526
636
|
className: PluginInventorySettingsTab_module_css_default.groupSub,
|
|
527
637
|
children: [
|
|
528
|
-
t("globalSubtitle"),
|
|
638
|
+
(0, react_jsx_runtime.jsx)("span", { children: t("globalSubtitle") }),
|
|
529
639
|
(0, react_jsx_runtime.jsx)("span", {
|
|
530
640
|
"data-plugin-count": globalCount,
|
|
531
|
-
children:
|
|
641
|
+
children: `${String(globalCount)} ${t("countUnit")}`
|
|
532
642
|
}),
|
|
533
643
|
filteredFailed.length > 0 ? (0, react_jsx_runtime.jsxs)("span", {
|
|
534
644
|
className: PluginInventorySettingsTab_module_css_default.failedCount,
|
|
@@ -559,7 +669,11 @@ window.__ModuleLoader__.load({
|
|
|
559
669
|
const zh = {
|
|
560
670
|
tab: "插件列表",
|
|
561
671
|
loading: "正在读取插件…",
|
|
672
|
+
clientSyncing: "正在同步本页面的插件…",
|
|
673
|
+
clientSyncFailed: "本页面的插件未能完成同步;服务端的启用状态保持不变。",
|
|
674
|
+
clientSyncRetry: "重试本页面同步",
|
|
562
675
|
error: "暂时无法读取插件。",
|
|
676
|
+
metadataError: "包元信息错误:{error}",
|
|
563
677
|
retry: "重试",
|
|
564
678
|
search: "搜索插件",
|
|
565
679
|
empty: "暂无插件。",
|
|
@@ -598,7 +712,11 @@ window.__ModuleLoader__.load({
|
|
|
598
712
|
const en = {
|
|
599
713
|
tab: "Plugin list",
|
|
600
714
|
loading: "Reading plugins…",
|
|
715
|
+
clientSyncing: "Syncing plugins on this page…",
|
|
716
|
+
clientSyncFailed: "Some plugins could not sync on this page. Host enablement is unchanged.",
|
|
717
|
+
clientSyncRetry: "Retry this page",
|
|
601
718
|
error: "Plugins are temporarily unavailable.",
|
|
719
|
+
metadataError: "Package metadata error: {error}",
|
|
602
720
|
retry: "Retry",
|
|
603
721
|
search: "Search plugins",
|
|
604
722
|
empty: "No plugins are available.",
|
|
@@ -619,7 +737,7 @@ window.__ModuleLoader__.load({
|
|
|
619
737
|
enabledTag: "Enabled",
|
|
620
738
|
disabledTag: "Disabled",
|
|
621
739
|
conditionalTag: "Conditional",
|
|
622
|
-
presetEnabledTag: "
|
|
740
|
+
presetEnabledTag: "Via presets",
|
|
623
741
|
failedTag: "Failed",
|
|
624
742
|
moduleLabel: "Module",
|
|
625
743
|
fromPreset: "From",
|
|
@@ -643,7 +761,8 @@ window.__ModuleLoader__.load({
|
|
|
643
761
|
"slots",
|
|
644
762
|
"locale",
|
|
645
763
|
"remote",
|
|
646
|
-
"remote.pluginInventory"
|
|
764
|
+
"remote.pluginInventory",
|
|
765
|
+
"modules"
|
|
647
766
|
];
|
|
648
767
|
/** Contribute the lazy inventory tab to the Plugins settings section. */
|
|
649
768
|
function apply(ctx) {
|
|
@@ -661,7 +780,14 @@ window.__ModuleLoader__.load({
|
|
|
661
780
|
const presetName = (preset) => presetDisplayText(preset, agentPresetCopy).name;
|
|
662
781
|
const injected = () => ({
|
|
663
782
|
list,
|
|
664
|
-
presetName
|
|
783
|
+
presetName,
|
|
784
|
+
resolveText: (text) => ctx.locale.resolveText(text),
|
|
785
|
+
hooks: { clientSync: ctx.modules.entries.state },
|
|
786
|
+
retryClient: () => {
|
|
787
|
+
ctx.modules.entries.retry().catch((error) => {
|
|
788
|
+
ctx.logger.error(error);
|
|
789
|
+
});
|
|
790
|
+
}
|
|
665
791
|
});
|
|
666
792
|
ctx.slots.inject("settings.plugins.tab", () => ctx.slots.register({
|
|
667
793
|
name: "settings.plugins.tab",
|