@michengai/dsh-codex-ui 2.0.20 → 2.0.21
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/CHANGELOG.md +6 -0
- package/CHANGELOG.zh-CN.md +6 -0
- package/lib/client.js +97 -38
- package/lib/desktop-menu-plugin.mjs +1 -1
- package/lib/index.mjs +266 -734
- package/lib/session-title-plugin.mjs +32 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.21] - 2026-11-10
|
|
4
|
+
|
|
5
|
+
- **Native Companion Plugin Installation and Updates**: The About section's companion plugin list now delegates directly to host native plugin management, enabling seamless in-place installation, version upgrades, and batch synchronization for all companion extensions with real-time progress indicators.
|
|
6
|
+
- **Precise Diagnostic Feedback Across All 8 Languages**: When network timeouts, missing packages, or build blocks occur, error prompts clearly specify the underlying cause and actionable recommendations. Concurrent installation attempts and special plugin states present clear, localized guidance across all 8 supported languages.
|
|
7
|
+
- **Immediate State Synchronization During Batch Updates**: Batch update operations now immediately reflect installed extensions in the UI as they finish, ensuring completed updates are visible right away without requiring a page reload.
|
|
8
|
+
|
|
3
9
|
## [2.0.20] - 2026-11-09
|
|
4
10
|
|
|
5
11
|
- **Full Support for All 8 Official DeepSeek Harness Languages**: Seamlessly integrated with the official localization system, providing native translations for Chinese, English, Japanese, Spanish, French, German, Russian, and Portuguese (`zh`, `en`, `ja`, `es`, `fr`, `de`, `ru`, `pt`). All starter suggestions, fullscreen settings workbench, sidebar partitions, context menus, and desktop window controls adapt immediately when switching languages.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [2.0.21] - 2026-11-10
|
|
4
|
+
|
|
5
|
+
- **配套插件管理支持原生安装与更新**:关于页「配套管理插件」全面接入宿主官方原生插件管理能力,支持一键单独安装、版本升级或批量同步更新未安装与落后版本的插件,操作过程展示官方阶段进度条。
|
|
6
|
+
- **精准故障诊断与 8 语言错误指引**:当网络超时、依赖包未找到或构建受阻时,提示条明确指出具体原因与操作建议;并发安装或重复触发时给出清晰状态反馈,所有错误与警告在全部 8 门内置语言下均有完整地道翻译。
|
|
7
|
+
- **批量更新即时同步**:批量更新多个插件时,成功安装的项目在界面上即刻更新为已生效状态,不再因个别插件失败而整页停留在旧状态。
|
|
8
|
+
|
|
3
9
|
## [2.0.20] - 2026-11-09
|
|
4
10
|
|
|
5
11
|
- **全量支持 DeepSeek Harness 官方 8 门内置语言**:深度适配官方多语言架构,完整支持中文、英语、日语、西班牙语、法语、德语、俄语与葡萄牙语(`zh`, `en`, `ja`, `es`, `fr`, `de`, `ru`, `pt`)。无论宿主环境切换为哪种语言,输入框增强建议、全屏设置面板、侧边栏分区、右键菜单与桌面窗口菜单均以对应语言原生呈现。
|
package/lib/client.js
CHANGED
|
@@ -169,6 +169,8 @@ window.__ModuleLoader__.load({
|
|
|
169
169
|
];
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region src/client/user-error.ts
|
|
172
|
+
/** 仅显式构造的本地化错误允许原样进入界面。 */
|
|
173
|
+
var UserFacingError = class extends Error {};
|
|
172
174
|
const INSTALL_ERROR_KEYS = [
|
|
173
175
|
[/没有进入当前 Profile|did not enter this profile/i, "about.installUnchanged"],
|
|
174
176
|
[/pnpm 仓库不一致.*停止当前 DSH Web|pnpm store do not match.*stop the current DSH Web/i, "about.installStoreMismatchWeb"],
|
|
@@ -179,14 +181,19 @@ window.__ModuleLoader__.load({
|
|
|
179
181
|
[/构建脚本策略|build-script policy/i, "about.installBuildPolicy"],
|
|
180
182
|
[/找不到 pnpm|pnpm (?:is )?not (?:available|found)/i, "about.installPnpmMissing"],
|
|
181
183
|
[/安装超时|installation timed out/i, "about.installTimeout"],
|
|
182
|
-
[/服务尚未就绪|Profile 信息无效|dependency service is not ready/i, "about.installServiceUnavailable"]
|
|
184
|
+
[/服务尚未就绪|Profile 信息无效|dependency service is not ready/i, "about.installServiceUnavailable"],
|
|
185
|
+
[/已有依赖安装正在进行|已有安装任务|already in progress/i, "about.installBusy"],
|
|
186
|
+
[/旧套件成员|legacy suite/i, "about.installSuiteUnsupported"]
|
|
183
187
|
];
|
|
184
188
|
/** 安装错误保留用户可执行的处理建议,但不直接展示 Host 原文。 */
|
|
185
189
|
function installErrorText(error, t) {
|
|
186
190
|
const requestKey = businessRequestErrorKey(error);
|
|
187
191
|
if (requestKey !== void 0) return t(requestKey);
|
|
192
|
+
if (error instanceof UserFacingError) return error.message;
|
|
188
193
|
const message = error instanceof Error ? error.message : String(error);
|
|
189
|
-
|
|
194
|
+
const match = INSTALL_ERROR_KEYS.find(([pattern]) => pattern.test(message));
|
|
195
|
+
if (match !== void 0) return t(match[1]);
|
|
196
|
+
return t("about.installFailed");
|
|
190
197
|
}
|
|
191
198
|
//#endregion
|
|
192
199
|
//#region src/client/section-card-styles.ts
|
|
@@ -2889,7 +2896,9 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
2889
2896
|
return t("about.progressHint");
|
|
2890
2897
|
}
|
|
2891
2898
|
/** Codex UI 的功能说明、配套管理插件状态与受限安装入口。 */
|
|
2892
|
-
function AboutSection(
|
|
2899
|
+
function AboutSection(props) {
|
|
2900
|
+
const { t } = props;
|
|
2901
|
+
const ctx = getClientContext();
|
|
2893
2902
|
const [dependencies, setDependencies] = (0, react.useState)([]);
|
|
2894
2903
|
const [state, setState] = (0, react.useState)("loading");
|
|
2895
2904
|
const [installing, setInstalling] = (0, react.useState)();
|
|
@@ -2983,27 +2992,54 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
2983
2992
|
window.clearInterval(timer);
|
|
2984
2993
|
};
|
|
2985
2994
|
}, [installing]);
|
|
2995
|
+
(0, react.useEffect)(() => {
|
|
2996
|
+
try {
|
|
2997
|
+
const remote = ctx?.remote;
|
|
2998
|
+
if (typeof remote?.$on !== "function") return;
|
|
2999
|
+
const unsubs = [];
|
|
3000
|
+
try {
|
|
3001
|
+
unsubs.push(remote.$on("plugin-manager/install-state", (data) => {
|
|
3002
|
+
if (data?.phase && typeof data.phase === "string") setProgress((prev) => prev ? {
|
|
3003
|
+
...prev,
|
|
3004
|
+
phase: data.phase
|
|
3005
|
+
} : void 0);
|
|
3006
|
+
}));
|
|
3007
|
+
} catch {}
|
|
3008
|
+
try {
|
|
3009
|
+
unsubs.push(remote.$on("plugin-manager/changed", () => {
|
|
3010
|
+
load();
|
|
3011
|
+
}));
|
|
3012
|
+
} catch {}
|
|
3013
|
+
return () => {
|
|
3014
|
+
unsubs.forEach((unsub) => {
|
|
3015
|
+
try {
|
|
3016
|
+
unsub?.();
|
|
3017
|
+
} catch {}
|
|
3018
|
+
});
|
|
3019
|
+
};
|
|
3020
|
+
} catch {}
|
|
3021
|
+
}, [ctx, load]);
|
|
2986
3022
|
const install = async (id) => {
|
|
2987
3023
|
if (installingRef.current !== void 0) return;
|
|
3024
|
+
if (dependencies.find((dep) => dep.id === id) === void 0) return;
|
|
2988
3025
|
installingRef.current = id;
|
|
2989
3026
|
setInstalling(id);
|
|
2990
3027
|
setMessage(void 0);
|
|
2991
3028
|
try {
|
|
2992
3029
|
const response = await fetch(`${endpoint}?dependency=${encodeURIComponent(id)}`, { method: "POST" });
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
].includes(response.status)) throw new BusinessRequestError(response.status);
|
|
2998
|
-
|
|
2999
|
-
if (!response.ok || !Array.isArray(payload.dependencies) || !payload.dependencies.every(isDependencyStatus)) throw new Error(typeof payload.error === "string" ? payload.error : t("about.installFailed"));
|
|
3030
|
+
let payload = {};
|
|
3031
|
+
try {
|
|
3032
|
+
payload = await response.json();
|
|
3033
|
+
} catch {}
|
|
3034
|
+
if ([401, 403].includes(response.status)) throw new BusinessRequestError(response.status);
|
|
3035
|
+
if (Array.isArray(payload.dependencies) && payload.dependencies.every(isDependencyStatus) && alive.current) setDependencies(payload.dependencies);
|
|
3036
|
+
if (!response.ok || !Array.isArray(payload.dependencies) || !payload.dependencies.every(isDependencyStatus) || payload.application !== "applied" && payload.application !== "restart-required" && payload.application !== "overridden") throw new Error(typeof payload.error === "string" ? payload.error : t("about.installFailed"));
|
|
3000
3037
|
if (!alive.current) return;
|
|
3001
|
-
setDependencies(payload.dependencies);
|
|
3002
3038
|
setState("ready");
|
|
3003
3039
|
setRefreshFailed(false);
|
|
3004
3040
|
setMessage({
|
|
3005
3041
|
error: false,
|
|
3006
|
-
text: payload.
|
|
3042
|
+
text: payload.application === "overridden" ? t("about.applied") : payload.application === "applied" ? t("about.applied") : t("about.restartRequired")
|
|
3007
3043
|
});
|
|
3008
3044
|
} catch (error) {
|
|
3009
3045
|
if (!alive.current) return;
|
|
@@ -3023,20 +3059,19 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3023
3059
|
setMessage(void 0);
|
|
3024
3060
|
try {
|
|
3025
3061
|
const response = await fetch(`${endpoint}?action=update-all`, { method: "POST" });
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
].includes(response.status)) throw new BusinessRequestError(response.status);
|
|
3031
|
-
|
|
3032
|
-
if (!response.ok || !Array.isArray(payload.dependencies) || !payload.dependencies.every(isDependencyStatus)) throw new Error(typeof payload.error === "string" ? payload.error : t("about.installFailed"));
|
|
3062
|
+
let payload = {};
|
|
3063
|
+
try {
|
|
3064
|
+
payload = await response.json();
|
|
3065
|
+
} catch {}
|
|
3066
|
+
if ([401, 403].includes(response.status)) throw new BusinessRequestError(response.status);
|
|
3067
|
+
if (Array.isArray(payload.dependencies) && payload.dependencies.every(isDependencyStatus) && alive.current) setDependencies(payload.dependencies);
|
|
3068
|
+
if (!response.ok || !Array.isArray(payload.dependencies) || !payload.dependencies.every(isDependencyStatus) || payload.application !== "applied" && payload.application !== "restart-required" && payload.application !== "overridden") throw new Error(typeof payload.error === "string" ? payload.error : t("about.installFailed"));
|
|
3033
3069
|
if (!alive.current) return;
|
|
3034
|
-
setDependencies(payload.dependencies);
|
|
3035
3070
|
setState("ready");
|
|
3036
3071
|
setRefreshFailed(false);
|
|
3037
3072
|
setMessage({
|
|
3038
3073
|
error: false,
|
|
3039
|
-
text: payload.
|
|
3074
|
+
text: (payload.application === "applied" || payload.application === "overridden") && payload.updatedCount === 0 && Array.isArray(payload.results) && payload.results.length === 0 ? t("about.upToDate") : payload.application === "overridden" ? t("about.applied") : payload.application === "applied" ? t("about.applied") : t("about.restartRequired")
|
|
3040
3075
|
});
|
|
3041
3076
|
} catch (error) {
|
|
3042
3077
|
if (!alive.current) return;
|
|
@@ -3168,6 +3203,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3168
3203
|
"aria-busy": installing !== void 0,
|
|
3169
3204
|
children: dependencies.map((dependency) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
|
|
3170
3205
|
className: "dcu-about-dependency",
|
|
3206
|
+
"data-dependency-id": dependency.id,
|
|
3171
3207
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3172
3208
|
className: "dcu-about-copy",
|
|
3173
3209
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3311,6 +3347,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3311
3347
|
"about.installFailed": "プラグインのインストールに失敗しました。後でもう一度お試しください。",
|
|
3312
3348
|
"about.installPnpmMissing": "環境内に pnpm が見つかりません。pnpm をインストールして DSH を再起動してください。",
|
|
3313
3349
|
"about.installServiceUnavailable": "DSH Desktop 依存関係管理サービスが準備できていません。再起動してください。",
|
|
3350
|
+
"about.installBusy": "別のインストールが既に進行中です。完了するまでお待ちください。",
|
|
3351
|
+
"about.installSuiteUnsupported": "レガシースイートメンバーは自動移行できません。ホストのプラグインマネージャーで処理してください。",
|
|
3314
3352
|
"about.installStoreMismatch": "プラグインディレクトリと pnpm リポジトリが一致しません。DSH Desktop を完全に終了してから再試行してください。",
|
|
3315
3353
|
"about.installStoreMismatchWeb": "プラグインディレクトリと pnpm リポジトリが一致しません。DSH Web を停止して再試行してください。失敗が続く場合はプロファイルの依存関係を再インストールしてください。",
|
|
3316
3354
|
"about.installTimeout": "プラグインのインストールがタイムアウトしました。ネットワーク接続を確認してください。",
|
|
@@ -3328,8 +3366,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3328
3366
|
"about.progress.resolving": "依存関係の解決中",
|
|
3329
3367
|
"about.progressHint": "プラグインをインストール中…",
|
|
3330
3368
|
"about.refreshFailed": "依存関係の更新に失敗しました。前回の結果を表示しています。",
|
|
3331
|
-
"about.
|
|
3332
|
-
"about.restartRequired": "
|
|
3369
|
+
"about.applied": "依存プラグインのインストールまたは更新が適用されました。",
|
|
3370
|
+
"about.restartRequired": "依存プラグインをインストールまたは更新しました。変更を適用するには DSH ホストを再起動してください。",
|
|
3333
3371
|
"about.statusFailed": "依存関係の状態を読み込めません。",
|
|
3334
3372
|
"about.title": "Codex UI",
|
|
3335
3373
|
"about.totalDownloads": "npm 累計ダウンロード",
|
|
@@ -3507,6 +3545,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3507
3545
|
"about.installFailed": "Error al instalar el complemento. Vuelva a intentarlo más tarde.",
|
|
3508
3546
|
"about.installPnpmMissing": "No se encuentra pnpm en el entorno. Instale pnpm y reinicie DSH.",
|
|
3509
3547
|
"about.installServiceUnavailable": "El servicio de dependencias de DSH Desktop no está listo. Reinicie y pruebe de nuevo.",
|
|
3548
|
+
"about.installBusy": "Ya hay otra instalación en curso. Espere a que finalice.",
|
|
3549
|
+
"about.installSuiteUnsupported": "Los miembros del paquete heredado no se pueden migrar automáticamente. Adminístrelos a través del administrador de complementos del host.",
|
|
3510
3550
|
"about.installStoreMismatch": "El directorio no coincide con el almacén de pnpm. Cierre DSH Desktop por completo y reintente.",
|
|
3511
3551
|
"about.installStoreMismatchWeb": "El directorio no coincide con pnpm. Detenga DSH Web y reintente; si persiste, reinstale las dependencias del perfil.",
|
|
3512
3552
|
"about.installTimeout": "Tiempo de espera agotado al instalar. Compruebe su conexión a la red.",
|
|
@@ -3524,8 +3564,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3524
3564
|
"about.progress.resolving": "Resolviendo dependencias",
|
|
3525
3565
|
"about.progressHint": "Instalando complemento…",
|
|
3526
3566
|
"about.refreshFailed": "Error al actualizar el estado; mostrando el último resultado correcto.",
|
|
3527
|
-
"about.
|
|
3528
|
-
"about.restartRequired": "
|
|
3567
|
+
"about.applied": "Dependencias instaladas o actualizadas y aplicadas.",
|
|
3568
|
+
"about.restartRequired": "Dependencias instaladas o actualizadas. Reinicie el host de DSH para aplicar los cambios.",
|
|
3529
3569
|
"about.statusFailed": "No se puede leer el estado de las dependencias.",
|
|
3530
3570
|
"about.title": "Codex UI",
|
|
3531
3571
|
"about.totalDownloads": "Descargas totales en npm",
|
|
@@ -3703,6 +3743,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3703
3743
|
"about.installFailed": "Échec de l'installation du plugin. Veuillez réessayer plus tard.",
|
|
3704
3744
|
"about.installPnpmMissing": "pnpm est introuvable. Installez pnpm et redémarrez DSH.",
|
|
3705
3745
|
"about.installServiceUnavailable": "Le service de dépendances DSH Desktop n'est pas prêt. Redémarrez et réessayez.",
|
|
3746
|
+
"about.installBusy": "Une autre installation est déjà en cours. Veuillez attendre qu'elle se termine.",
|
|
3747
|
+
"about.installSuiteUnsupported": "Les membres de l'ancienne suite ne peuvent pas être migrés automatiquement. Veuillez les gérer via le gestionnaire de plugins de l'hôte.",
|
|
3706
3748
|
"about.installStoreMismatch": "Le dossier ne correspond pas au dépôt pnpm. Quittez complètement DSH Desktop et réessayez.",
|
|
3707
3749
|
"about.installStoreMismatchWeb": "Le dossier ne correspond pas à pnpm. Arrêtez DSH Web et réessayez ; si le problème persiste, réinstallez les dépendances.",
|
|
3708
3750
|
"about.installTimeout": "Délai d'installation dépassé. Vérifiez votre connexion réseau.",
|
|
@@ -3720,8 +3762,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3720
3762
|
"about.progress.resolving": "Résolution des dépendances",
|
|
3721
3763
|
"about.progressHint": "Installation du plugin…",
|
|
3722
3764
|
"about.refreshFailed": "Échec de l'actualisation ; affichage du dernier résultat valide.",
|
|
3723
|
-
"about.
|
|
3724
|
-
"about.restartRequired": "
|
|
3765
|
+
"about.applied": "Dépendances installées ou mises à jour et appliquées.",
|
|
3766
|
+
"about.restartRequired": "Dépendances installées ou mises à jour. Redémarrez DSH pour appliquer les modifications.",
|
|
3725
3767
|
"about.statusFailed": "Impossible de lire l'état des dépendances.",
|
|
3726
3768
|
"about.title": "Codex UI",
|
|
3727
3769
|
"about.totalDownloads": "Téléchargements totaux npm",
|
|
@@ -3899,6 +3941,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3899
3941
|
"about.installFailed": "Plugin-Installation fehlgeschlagen. Bitte versuchen Sie es später erneut.",
|
|
3900
3942
|
"about.installPnpmMissing": "pnpm wurde nicht gefunden. Bitte pnpm installieren und DSH neu starten.",
|
|
3901
3943
|
"about.installServiceUnavailable": "DSH Desktop-Dienst noch nicht bereit. Bitte neu starten.",
|
|
3944
|
+
"about.installBusy": "Eine andere Installation wird bereits ausgeführt. Bitte warten Sie, bis sie abgeschlossen ist.",
|
|
3945
|
+
"about.installSuiteUnsupported": "Legacy-Suite-Mitglieder können nicht automatisch migriert werden. Bitte verwalten Sie diese über den Host-Plugin-Manager.",
|
|
3902
3946
|
"about.installStoreMismatch": "Verzeichnis stimmt nicht mit pnpm-Store überein. Beenden Sie DSH Desktop und versuchen Sie es erneut.",
|
|
3903
3947
|
"about.installStoreMismatchWeb": "Verzeichnis stimmt nicht mit pnpm überein. Stoppen Sie DSH Web und versuchen Sie es erneut.",
|
|
3904
3948
|
"about.installTimeout": "Zeitüberschreitung bei der Plugin-Installation. Bitte Netzwerkverbindung prüfen.",
|
|
@@ -3916,8 +3960,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3916
3960
|
"about.progress.resolving": "Abhängigkeiten auflösen",
|
|
3917
3961
|
"about.progressHint": "Plugin wird installiert…",
|
|
3918
3962
|
"about.refreshFailed": "Aktualisierung fehlgeschlagen; letztes erfolgreiches Ergebnis wird angezeigt.",
|
|
3919
|
-
"about.
|
|
3920
|
-
"about.restartRequired": "
|
|
3963
|
+
"about.applied": "Abhängigkeiten installiert oder aktualisiert und angewendet.",
|
|
3964
|
+
"about.restartRequired": "Abhängigkeiten installiert oder aktualisiert. Starten Sie den DSH-Host neu, um Änderungen anzuwenden.",
|
|
3921
3965
|
"about.statusFailed": "Abhängigkeitsstatus kann nicht gelesen werden.",
|
|
3922
3966
|
"about.title": "Codex UI",
|
|
3923
3967
|
"about.totalDownloads": "npm Gesamtdownloads",
|
|
@@ -4095,6 +4139,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
4095
4139
|
"about.installFailed": "Ошибка установки плагина. Попробуйте позже.",
|
|
4096
4140
|
"about.installPnpmMissing": "pnpm не найден в системе. Установите pnpm и перезапустите DSH.",
|
|
4097
4141
|
"about.installServiceUnavailable": "Служба зависимостей DSH Desktop не готова. Перезапустите приложение.",
|
|
4142
|
+
"about.installBusy": "Другая установка уже выполняется. Дождитесь её завершения.",
|
|
4143
|
+
"about.installSuiteUnsupported": "Устаревшие компоненты пакета не могут быть перенесены автоматически. Управляйте ими через диспетчер плагинов хоста.",
|
|
4098
4144
|
"about.installStoreMismatch": "Каталог не совпадает с хранилищем pnpm. Закройте DSH Desktop и попробуйте снова.",
|
|
4099
4145
|
"about.installStoreMismatchWeb": "Каталог не совпадает с pnpm. Остановите DSH Web и повторите попытку; если ошибка повторяется, переустановите зависимости профиля.",
|
|
4100
4146
|
"about.installTimeout": "Тайм-аут установки плагина. Проверьте подключение к сети.",
|
|
@@ -4112,8 +4158,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
4112
4158
|
"about.progress.resolving": "Разрешение зависимостей",
|
|
4113
4159
|
"about.progressHint": "Установка плагина…",
|
|
4114
4160
|
"about.refreshFailed": "Не удалось обновить статус; показан последний успешный результат.",
|
|
4115
|
-
"about.
|
|
4116
|
-
"about.restartRequired": "
|
|
4161
|
+
"about.applied": "Зависимости установлены или обновлены и применены.",
|
|
4162
|
+
"about.restartRequired": "Зависимости установлены или обновлены. Перезапустите хост DSH, чтобы применить изменения.",
|
|
4117
4163
|
"about.statusFailed": "Не удалось прочитать статус зависимостей.",
|
|
4118
4164
|
"about.title": "Codex UI",
|
|
4119
4165
|
"about.totalDownloads": "Всего загрузок на npm",
|
|
@@ -4291,6 +4337,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
4291
4337
|
"about.installFailed": "Falha na instalação do plugin. Tente novamente mais tarde.",
|
|
4292
4338
|
"about.installPnpmMissing": "pnpm não encontrado. Instale o pnpm e reinicie o DSH.",
|
|
4293
4339
|
"about.installServiceUnavailable": "O serviço de dependências do DSH Desktop não está pronto. Reinicie e tente novamente.",
|
|
4340
|
+
"about.installBusy": "Outra instalação já está em andamento. Aguarde a conclusão.",
|
|
4341
|
+
"about.installSuiteUnsupported": "Os membros do pacote legado não podem ser migrados automaticamente. Gerencie-os pelo gerenciador de plugins do host.",
|
|
4294
4342
|
"about.installStoreMismatch": "O diretório não coincide com o repositório pnpm. Feche o DSH Desktop completamente e tente novamente.",
|
|
4295
4343
|
"about.installStoreMismatchWeb": "O diretório não coincide com o pnpm. Pare o DSH Web e tente novamente; se persistir, reinstale as dependências deste Perfil.",
|
|
4296
4344
|
"about.installTimeout": "Tempo limite de instalação do plugin esgotado. Verifique sua conexão de rede.",
|
|
@@ -4308,8 +4356,8 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
4308
4356
|
"about.progress.resolving": "Resolvendo dependências",
|
|
4309
4357
|
"about.progressHint": "Instalando plugin…",
|
|
4310
4358
|
"about.refreshFailed": "Falha ao atualizar o status; exibindo o último resultado bem-sucedido.",
|
|
4311
|
-
"about.
|
|
4312
|
-
"about.restartRequired": "
|
|
4359
|
+
"about.applied": "Dependências instaladas ou atualizadas e aplicadas.",
|
|
4360
|
+
"about.restartRequired": "Dependências instaladas ou atualizadas. Reinicie o host DSH para aplicar as alterações.",
|
|
4313
4361
|
"about.statusFailed": "Não foi possível ler o status das dependências.",
|
|
4314
4362
|
"about.title": "Codex UI",
|
|
4315
4363
|
"about.totalDownloads": "Total de downloads no npm",
|
|
@@ -4557,8 +4605,10 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
4557
4605
|
"about.installPnpmMissing": "当前环境找不到 pnpm,请安装 pnpm 并重启 DSH 后重试。",
|
|
4558
4606
|
"about.installTimeout": "插件安装超时,请检查网络后重试。",
|
|
4559
4607
|
"about.installServiceUnavailable": "DSH Desktop 依赖管理服务尚未就绪,请重启后重试。",
|
|
4560
|
-
"about.
|
|
4561
|
-
"about.
|
|
4608
|
+
"about.installBusy": "已有安装任务正在进行,请等待完成后再试。",
|
|
4609
|
+
"about.installSuiteUnsupported": "旧套件成员暂不支持自动迁移,请通过宿主插件管理器处理。",
|
|
4610
|
+
"about.applied": "依赖已安装或更新并生效。",
|
|
4611
|
+
"about.restartRequired": "依赖已安装或更新。请重启 DSH 宿主以应用更改。",
|
|
4562
4612
|
"about.progressHint": "正在安装插件…",
|
|
4563
4613
|
"about.packagesDone": "已完成 {0} 个包",
|
|
4564
4614
|
"about.progress.resolving": "解析依赖",
|
|
@@ -4751,8 +4801,10 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
4751
4801
|
"about.installPnpmMissing": "pnpm is not available. Install pnpm, restart DSH, and try again.",
|
|
4752
4802
|
"about.installTimeout": "Plugin installation timed out. Check the network and try again.",
|
|
4753
4803
|
"about.installServiceUnavailable": "The DSH Desktop dependency service is not ready. Restart DSH Desktop and try again.",
|
|
4754
|
-
"about.
|
|
4755
|
-
"about.
|
|
4804
|
+
"about.installBusy": "Another installation is already in progress. Please wait for it to complete.",
|
|
4805
|
+
"about.installSuiteUnsupported": "Legacy suite members cannot be automatically migrated. Please manage them via the host plugin manager.",
|
|
4806
|
+
"about.applied": "Dependencies installed or updated and applied.",
|
|
4807
|
+
"about.restartRequired": "Dependencies installed or updated. Restart the DSH host to apply changes.",
|
|
4756
4808
|
"about.progressHint": "Installing plugin…",
|
|
4757
4809
|
"about.packagesDone": "{0} packages done",
|
|
4758
4810
|
"about.progress.resolving": "Resolving",
|
|
@@ -12763,10 +12815,16 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
|
|
|
12763
12815
|
"inputTriggers",
|
|
12764
12816
|
"layout",
|
|
12765
12817
|
"uiWorkspace",
|
|
12766
|
-
"workspaces"
|
|
12818
|
+
"workspaces",
|
|
12819
|
+
"remote"
|
|
12767
12820
|
];
|
|
12821
|
+
let clientContext;
|
|
12822
|
+
function getClientContext() {
|
|
12823
|
+
return clientContext;
|
|
12824
|
+
}
|
|
12768
12825
|
/** 浏览器客户端插件入口;保留官方原生侧边栏与工作区树,提供输入框增强、设置美化与生态关于页。 */
|
|
12769
12826
|
function apply(ctx) {
|
|
12827
|
+
clientContext = ctx;
|
|
12770
12828
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
12771
12829
|
zh,
|
|
12772
12830
|
en,
|
|
@@ -12851,6 +12909,7 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
|
|
|
12851
12909
|
}
|
|
12852
12910
|
//#endregion
|
|
12853
12911
|
exports.apply = apply;
|
|
12912
|
+
exports.getClientContext = getClientContext;
|
|
12854
12913
|
exports.inject = inject;
|
|
12855
12914
|
return module.exports;
|
|
12856
12915
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as CODEX_UI_API_ENDPOINTS, t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-BkTv7lmZ.mjs";
|
|
2
|
-
import { spawn } from "node:child_process";
|
|
3
2
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
3
|
import { tmpdir } from "node:os";
|
|
5
4
|
import { dirname, join } from "node:path";
|
|
6
5
|
import { randomBytes, timingSafeEqual } from "node:crypto";
|
|
6
|
+
import { spawn } from "node:child_process";
|
|
7
7
|
//#region src/restart.ts
|
|
8
8
|
/**
|
|
9
9
|
* 桌面应用重启:平台识别、重启计划与脱离进程的助手生成。
|