dsh-ci-diet 0.5.0 → 0.5.1

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.es.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · [한국어](README.ko.md) · [简体中文](README.zh-Hans.md) · [हिन्दी](README.hi.md) · [Español](README.es.md) · [Français](README.fr.md)
4
4
 
5
- **Estado:** alfa; `dsh-ci-diet@0.5.0` está en npm. El código fuente actual añade la pantalla de revisión **Ajustes → CI Diet Reports** a los contratos, los motores de análisis y parches, la CLI, las herramientas DSH, la página de ajustes y el informe HTML autocontenido. La pantalla de revisión ya había superado una prueba E2E en un navegador real en un commit anterior. La migración única de valores predeterminados se verificó por separado en el runtime de DSH `0.2.1-rc.2` con configEditor, SettingsForms y Loader; no fue una nueva comprobación del renderizado del navegador. El plugin de DSH ahora arranca con preflight, acceso de red para el historial y aplicación local activados.
5
+ **Estado:** alfa; `dsh-ci-diet@0.5.1` está en npm. El código fuente actual añade la pantalla de revisión **Ajustes → CI Diet Reports** a los contratos, los motores de análisis y parches, la CLI, las herramientas DSH, la página de ajustes y el informe HTML autocontenido. La pantalla de revisión ya había superado una prueba E2E en un navegador real en un commit anterior. La migración única de valores predeterminados se verificó por separado en el runtime de DSH `0.2.1-rc.2` con configEditor, SettingsForms y Loader; no fue una nueva comprobación del renderizado del navegador. El plugin de DSH ahora arranca con preflight, acceso de red para el historial y aplicación local activados.
6
6
 
7
7
  **Valores predeterminados y migración de DSH.** Los perfiles nuevos habilitan `preflightEnabled`, `networkEnabled`, `localApplyEnabled` y CD001, CD002, CD004, CD006 y CD008. La migración de perfiles bloqueados registra `defaultsRevision: 2`. Los perfiles que ya se migraron a la revisión 1 conservan las selecciones posteriores de interruptores y reglas. Se conservan las rutas de estado, la retención, las cuotas y los datos numéricos existentes de la cuenta. CD003 y CD005 permanecen desactivados salvo que se habiliten. Las estimaciones monetarias usan automáticamente ambos datos de la cuenta; en blanco significa desconocido y un `0` explícito es válido. La facturación que se habilitó anteriormente conserva sus valores predeterminados en cero cuando se omite un valor.
8
8
 
@@ -35,14 +35,14 @@ CD006 también admite configuraciones verificadas de npm/pnpm y trabajos de Bun
35
35
  La CLI requiere Node `^22.19.0 || >=24.0.0`. El plugin admite DSH `>=0.2.1-rc.2 <0.3.0-0` y `>=0.2.2-rc.1 <0.3.0-0`. La versión `0.3.1` se probó con DSH `0.2.1-rc.2`; DSH `0.3.0` no es compatible.
36
36
 
37
37
  ```
38
- npm install --global dsh-ci-diet@0.5.0
38
+ npm install --global dsh-ci-diet@0.5.1
39
39
  ci-diet --version
40
40
  ```
41
41
 
42
- Si no instalas el paquete de forma global, sustituye el nombre de comando `ci-diet` por `npx dsh-ci-diet@0.5.0`, por ejemplo `npx dsh-ci-diet@0.5.0 report --cwd .`.
42
+ Si no instalas el paquete de forma global, sustituye el nombre de comando `ci-diet` por `npx dsh-ci-diet@0.5.1`, por ejemplo `npx dsh-ci-diet@0.5.1 report --cwd .`.
43
43
 
44
44
  ```
45
- dsh plugin --profile web add dsh-ci-diet@0.5.0
45
+ dsh plugin --profile web add dsh-ci-diet@0.5.1
46
46
  dsh --profile web
47
47
  ```
48
48
 
package/README.fr.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · [한국어](README.ko.md) · [简体中文](README.zh-Hans.md) · [हिन्दी](README.hi.md) · [Español](README.es.md) · [Français](README.fr.md)
4
4
 
5
- **État :** alpha ; `dsh-ci-diet@0.5.0` est publié sur npm. L’arbre source actuel ajoute l’écran de revue **Réglages → CI Diet Reports** aux contrats, aux moteurs d’analyse et de correctifs, à la CLI, aux outils DSH, à la page Réglages et au rapport HTML autonome. L’écran de revue avait déjà passé un test E2E dans un vrai navigateur lors d’un commit précédent. La migration unique des valeurs par défaut a été vérifiée séparément dans le runtime DSH `0.2.1-rc.2` avec configEditor, SettingsForms et Loader ; ce n’est pas une nouvelle vérification du rendu navigateur. Le plugin DSH démarre désormais avec preflight, l’accès réseau pour l’historique et l’application locale activés.
5
+ **État :** alpha ; `dsh-ci-diet@0.5.1` est publié sur npm. L’arbre source actuel ajoute l’écran de revue **Réglages → CI Diet Reports** aux contrats, aux moteurs d’analyse et de correctifs, à la CLI, aux outils DSH, à la page Réglages et au rapport HTML autonome. L’écran de revue avait déjà passé un test E2E dans un vrai navigateur lors d’un commit précédent. La migration unique des valeurs par défaut a été vérifiée séparément dans le runtime DSH `0.2.1-rc.2` avec configEditor, SettingsForms et Loader ; ce n’est pas une nouvelle vérification du rendu navigateur. Le plugin DSH démarre désormais avec preflight, l’accès réseau pour l’historique et l’application locale activés.
6
6
 
7
7
  **Valeurs par défaut et migration DSH.** Les nouveaux profils activent `preflightEnabled`, `networkEnabled`, `localApplyEnabled` ainsi que CD001, CD002, CD004, CD006 et CD008. La migration des profils verrouillés enregistre `defaultsRevision: 2`. Les profils déjà migrés vers la révision 1 conservent les choix ultérieurs de commutateurs et de règles. Les chemins d’état, la durée de conservation, les quotas et les saisies numériques existantes du compte sont préservés. CD003 et CD005 restent désactivés sauf s’ils sont activés. Les estimations financières utilisent automatiquement les deux saisies du compte ; une valeur vide signifie inconnue et un `0` explicite est valide. Les champs de facturation déjà activés conservent leurs valeurs par défaut à zéro lorsqu’une valeur a été omise.
8
8
 
@@ -35,14 +35,14 @@ CD006 prend également en charge les configurations npm/pnpm vérifiées et les
35
35
  La CLI exige Node `^22.19.0 || >=24.0.0`. Le plugin prend en charge DSH `>=0.2.1-rc.2 <0.3.0-0` et `>=0.2.2-rc.1 <0.3.0-0`. La version `0.3.1` a été testée avec DSH `0.2.1-rc.2` ; DSH `0.3.0` n’est pas pris en charge.
36
36
 
37
37
  ```
38
- npm install --global dsh-ci-diet@0.5.0
38
+ npm install --global dsh-ci-diet@0.5.1
39
39
  ci-diet --version
40
40
  ```
41
41
 
42
- Si vous ne faites pas d’installation globale, remplacez le nom de commande `ci-diet` par `npx dsh-ci-diet@0.5.0`, par exemple `npx dsh-ci-diet@0.5.0 report --cwd .`.
42
+ Si vous ne faites pas d’installation globale, remplacez le nom de commande `ci-diet` par `npx dsh-ci-diet@0.5.1`, par exemple `npx dsh-ci-diet@0.5.1 report --cwd .`.
43
43
 
44
44
  ```
45
- dsh plugin --profile web add dsh-ci-diet@0.5.0
45
+ dsh plugin --profile web add dsh-ci-diet@0.5.1
46
46
  dsh --profile web
47
47
  ```
48
48
 
package/README.hi.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · [한국어](README.ko.md) · [简体中文](README.zh-Hans.md) · [हिन्दी](README.hi.md) · [Español](README.es.md) · [Français](README.fr.md)
4
4
 
5
- **स्थिति:** alpha; `dsh-ci-diet@0.5.0` npm पर उपलब्ध है। Current source tree में मौजूद contracts, analysis और patch engines, CLI, DSH tools, Settings page और self-contained HTML report के साथ **सेटिंग्स → CI Diet Reports** review screen जोड़ा गया है। Review screen ने पिछले commit में असली browser E2E पास किया था। एक बार होने वाली defaults migration को अलग से DSH `0.2.1-rc.2` के configEditor, SettingsForms और Loader runtime में verify किया गया; यह नए browser render का verification नहीं है। DSH plugin अब preflight, history के लिए network access और local apply के साथ चालू होता है।
5
+ **स्थिति:** alpha; `dsh-ci-diet@0.5.1` npm पर उपलब्ध है। Current source tree में मौजूद contracts, analysis और patch engines, CLI, DSH tools, Settings page और self-contained HTML report के साथ **सेटिंग्स → CI Diet Reports** review screen जोड़ा गया है। Review screen ने पिछले commit में असली browser E2E पास किया था। एक बार होने वाली defaults migration को अलग से DSH `0.2.1-rc.2` के configEditor, SettingsForms और Loader runtime में verify किया गया; यह नए browser render का verification नहीं है। DSH plugin अब preflight, history के लिए network access और local apply के साथ चालू होता है।
6
6
 
7
7
  **DSH डिफ़ॉल्ट और माइग्रेशन।** नई प्रोफ़ाइल में `preflightEnabled`, `networkEnabled`, `localApplyEnabled` तथा CD001, CD002, CD004, CD006, CD008 सक्षम होते हैं। लॉक की गई प्रोफ़ाइल माइग्रेशन `defaultsRevision: 2` दर्ज करता है। संशोधन 1 में पहले ही माइग्रेट की गई प्रोफ़ाइलें बाद के स्विच और नियम चयन को बनाए रखती हैं। स्टेट पाथ, रिटेंशन, कोटा और मौजूदा संख्यात्मक खाता इनपुट सुरक्षित रहते हैं। CD003 और CD005 सक्षम किए जाने तक बंद रहते हैं। मौद्रिक अनुमान दोनों खाता इनपुट का स्वतः उपयोग करते हैं; खाली होने का अर्थ अज्ञात है और स्पष्ट `0` मान्य है। पहले सक्षम बिलिंग में कोई मान छोड़े जाने पर उसके शून्य डिफ़ॉल्ट बने रहते हैं।
8
8
 
@@ -35,14 +35,14 @@ CD006 सत्यापित npm/pnpm सेटअप और ऐसे Bun ज
35
35
  CLI के लिए Node `^22.19.0 || >=24.0.0` चाहिए। Plugin DSH `>=0.2.1-rc.2 <0.3.0-0` और `>=0.2.2-rc.1 <0.3.0-0` का समर्थन करता है। Version `0.3.1` को DSH `0.2.1-rc.2` पर जाँचा गया; DSH `0.3.0` समर्थित नहीं है।
36
36
 
37
37
  ```
38
- npm install --global dsh-ci-diet@0.5.0
38
+ npm install --global dsh-ci-diet@0.5.1
39
39
  ci-diet --version
40
40
  ```
41
41
 
42
- Global install न चाहें तो command नाम `ci-diet` की जगह `npx dsh-ci-diet@0.5.0` रखें, उदाहरण `npx dsh-ci-diet@0.5.0 report --cwd .`।
42
+ Global install न चाहें तो command नाम `ci-diet` की जगह `npx dsh-ci-diet@0.5.1` रखें, उदाहरण `npx dsh-ci-diet@0.5.1 report --cwd .`।
43
43
 
44
44
  ```
45
- dsh plugin --profile web add dsh-ci-diet@0.5.0
45
+ dsh plugin --profile web add dsh-ci-diet@0.5.1
46
46
  dsh --profile web
47
47
  ```
48
48
 
package/README.ko.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · [한국어](README.ko.md) · [简体中文](README.zh-Hans.md) · [हिन्दी](README.hi.md) · [Español](README.es.md) · [Français](README.fr.md)
4
4
 
5
- **상태:** 알파. `dsh-ci-diet@0.5.0`이 npm에 게시되어 있습니다. 현재 소스 트리에는 기존 계약, 분석·패치 엔진, CLI, DSH 도구, 설정 화면, 자체 완결형 HTML 보고서와 함께 **설정 → CI Diet Reports** 검토 화면이 추가되어 있습니다. 검토 화면은 앞선 커밋에서 실제 브라우저 E2E를 통과했습니다. 1회 기본값 마이그레이션은 DSH `0.2.1-rc.2`의 configEditor, SettingsForms, Loader 런타임에서 별도로 검증했으며 새 브라우저 화면 렌더를 확인한 것은 아닙니다. 이제 DSH 플러그인은 preflight, 이력용 네트워크 접근, 로컬 적용이 기본으로 켜진 상태에서 시작합니다.
5
+ **상태:** 알파. `dsh-ci-diet@0.5.1`이 npm에 게시되어 있습니다. 현재 소스 트리에는 기존 계약, 분석·패치 엔진, CLI, DSH 도구, 설정 화면, 자체 완결형 HTML 보고서와 함께 **설정 → CI Diet Reports** 검토 화면이 추가되어 있습니다. 검토 화면은 앞선 커밋에서 실제 브라우저 E2E를 통과했습니다. 1회 기본값 마이그레이션은 DSH `0.2.1-rc.2`의 configEditor, SettingsForms, Loader 런타임에서 별도로 검증했으며 새 브라우저 화면 렌더를 확인한 것은 아닙니다. 이제 DSH 플러그인은 preflight, 이력용 네트워크 접근, 로컬 적용이 기본으로 켜진 상태에서 시작합니다.
6
6
 
7
7
  **DSH 기본값과 마이그레이션.** 새 프로필은 `preflightEnabled`, `networkEnabled`, `localApplyEnabled`와 CD001, CD002, CD004, CD006, CD008이 켜진 상태로 시작합니다. 프로필 잠금 안에서 마이그레이션하고 `defaultsRevision: 2`를 기록합니다. 이미 버전 1 마이그레이션을 마친 프로필은 이후에 바꾼 스위치와 규칙 선택을 유지합니다. 상태 경로, 보관 기간, 쿼터와 기존에 입력한 계정 숫자 값도 보존합니다. CD003과 CD005는 직접 켜기 전까지 꺼져 있습니다. 포함 분과 사용 분을 모두 입력하면 비용 추정에 자동 반영하며, 빈 값은 미입력이고 명시적인 `0`은 유효합니다. 구버전에서 비용 추정을 켰다면 생략한 값의 기존 기본값 0도 유지합니다.
8
8
 
@@ -35,14 +35,14 @@ CD006은 검증된 npm/pnpm 구성과, `oven-sh/setup-bun@v2`를 사용한 뒤 G
35
35
  CLI에는 Node `^22.19.0 || >=24.0.0`이 필요합니다. 플러그인은 DSH `>=0.2.1-rc.2 <0.3.0-0` 및 `>=0.2.2-rc.1 <0.3.0-0`을 지원합니다. `0.3.1`은 DSH `0.2.1-rc.2`에서 검증했고 DSH `0.3.0`은 지원하지 않습니다.
36
36
 
37
37
  ```
38
- npm install --global dsh-ci-diet@0.5.0
38
+ npm install --global dsh-ci-diet@0.5.1
39
39
  ci-diet --version
40
40
  ```
41
41
 
42
- 전역 설치를 원하지 않으면 `ci-diet` 명령 이름 자리에 `npx dsh-ci-diet@0.5.0`을 넣습니다. 예를 들어 `npx dsh-ci-diet@0.5.0 report --cwd .`처럼 실행합니다.
42
+ 전역 설치를 원하지 않으면 `ci-diet` 명령 이름 자리에 `npx dsh-ci-diet@0.5.1`을 넣습니다. 예를 들어 `npx dsh-ci-diet@0.5.1 report --cwd .`처럼 실행합니다.
43
43
 
44
44
  ```
45
- dsh plugin --profile web add dsh-ci-diet@0.5.0
45
+ dsh plugin --profile web add dsh-ci-diet@0.5.1
46
46
  dsh --profile web
47
47
  ```
48
48
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · [한국어](README.ko.md) · [简体中文](README.zh-Hans.md) · [हिन्दी](README.hi.md) · [Español](README.es.md) · [Français](README.fr.md)
4
4
 
5
- **Status:** alpha; `dsh-ci-diet@0.5.0` is on npm. The current source tree adds the **Settings → CI Diet Reports** review screen to the existing contracts, analysis and patch engines, CLI, DSH tools, Settings page, and self-contained HTML report. The review screen passed a real-browser E2E check in an earlier commit. The one-time defaults migration was verified separately in a DSH `0.2.1-rc.2` runtime with configEditor, SettingsForms, and Loader; it was not a new browser render. The DSH plugin now starts with preflight, history network access, and local apply enabled.
5
+ **Status:** alpha; `dsh-ci-diet@0.5.1` is on npm. The current source tree adds the **Settings → CI Diet Reports** review screen to the existing contracts, analysis and patch engines, CLI, DSH tools, Settings page, and self-contained HTML report. The review screen passed a real-browser E2E check in an earlier commit. The one-time defaults migration was verified separately in a DSH `0.2.1-rc.2` runtime with configEditor, SettingsForms, and Loader; it was not a new browser render. The DSH plugin now starts with preflight, history network access, and local apply enabled.
6
6
 
7
7
  **DSH defaults and migration.** New profiles enable `preflightEnabled`, `networkEnabled`, `localApplyEnabled` and CD001, CD002, CD004, CD006, CD008. The locked profile migration records `defaultsRevision: 2`. Profiles already migrated to revision 1 keep later switch and rule choices. State paths, retention, quotas, and existing numeric account inputs are preserved. CD003 and CD005 remain off unless enabled. Monetary estimates use both account inputs automatically; blank means unknown and explicit `0` is valid. Previously enabled billing keeps its zero defaults when a value was omitted.
8
8
 
@@ -35,14 +35,14 @@ CD006 also supports verified npm/pnpm setups and Bun jobs using `oven-sh/setup-b
35
35
  The CLI requires Node `^22.19.0 || >=24.0.0`. The plugin supports DSH `>=0.2.1-rc.2 <0.3.0-0` and `>=0.2.2-rc.1 <0.3.0-0`. Version `0.3.1` was tested against DSH `0.2.1-rc.2`; DSH `0.3.0` is not supported.
36
36
 
37
37
  ```
38
- npm install --global dsh-ci-diet@0.5.0
38
+ npm install --global dsh-ci-diet@0.5.1
39
39
  ci-diet --version
40
40
  ```
41
41
 
42
- Without a global install, replace the `ci-diet` command name with `npx dsh-ci-diet@0.5.0`, for example `npx dsh-ci-diet@0.5.0 report --cwd .`.
42
+ Without a global install, replace the `ci-diet` command name with `npx dsh-ci-diet@0.5.1`, for example `npx dsh-ci-diet@0.5.1 report --cwd .`.
43
43
 
44
44
  ```
45
- dsh plugin --profile web add dsh-ci-diet@0.5.0
45
+ dsh plugin --profile web add dsh-ci-diet@0.5.1
46
46
  dsh --profile web
47
47
  ```
48
48
 
package/README.zh-Hans.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · [한국어](README.ko.md) · [简体中文](README.zh-Hans.md) · [हिन्दी](README.hi.md) · [Español](README.es.md) · [Français](README.fr.md)
4
4
 
5
- **状态:** alpha;`dsh-ci-diet@0.5.0` 已发布到 npm。当前源码树在现有契约、分析引擎、补丁引擎、CLI、DSH 工具、设置页面和自包含 HTML 报告之外,新增了 **设置 → CI Diet Reports** 审查页面。审查页面已在之前的提交中通过真实浏览器 E2E。一次性默认值迁移另行在 DSH `0.2.1-rc.2` 的 configEditor、SettingsForms 和 Loader 运行时中验证,并不表示这次重新验证了浏览器页面渲染。DSH 插件现在默认开启 preflight、历史网络访问和本地应用。
5
+ **状态:** alpha;`dsh-ci-diet@0.5.1` 已发布到 npm。当前源码树在现有契约、分析引擎、补丁引擎、CLI、DSH 工具、设置页面和自包含 HTML 报告之外,新增了 **设置 → CI Diet Reports** 审查页面。审查页面已在之前的提交中通过真实浏览器 E2E。一次性默认值迁移另行在 DSH `0.2.1-rc.2` 的 configEditor、SettingsForms 和 Loader 运行时中验证,并不表示这次重新验证了浏览器页面渲染。DSH 插件现在默认开启 preflight、历史网络访问和本地应用。
6
6
 
7
7
  **DSH 默认值和迁移。** 新配置档默认启用 `preflightEnabled`、`networkEnabled`、`localApplyEnabled` 以及 CD001、CD002、CD004、CD006、CD008。锁定配置档迁移会记录 `defaultsRevision: 2`。已经迁移到修订版 1 的配置档会保留之后选择的开关和规则。状态路径、保留期限、配额和现有数值型账户输入均会保留。除非主动启用,CD003 和 CD005 保持关闭。金额估算会自动使用两项账户输入;留空表示未知,显式填写 `0` 是有效的。以前启用过计费的配置档在省略某个值时,会保留其零默认值。
8
8
 
@@ -35,14 +35,14 @@ CD006 还支持经过验证的 npm/pnpm 配置,以及使用 `oven-sh/setup-bun
35
35
  CLI 需要 Node `^22.19.0 || >=24.0.0`。插件支持 DSH `>=0.2.1-rc.2 <0.3.0-0` 和 `>=0.2.2-rc.1 <0.3.0-0`。版本 `0.3.1` 已在 DSH `0.2.1-rc.2` 上验证;不支持 DSH `0.3.0`。
36
36
 
37
37
  ```
38
- npm install --global dsh-ci-diet@0.5.0
38
+ npm install --global dsh-ci-diet@0.5.1
39
39
  ci-diet --version
40
40
  ```
41
41
 
42
- 如果不希望全局安装,请把命令名 `ci-diet` 替换为 `npx dsh-ci-diet@0.5.0`,例如 `npx dsh-ci-diet@0.5.0 report --cwd .`。
42
+ 如果不希望全局安装,请把命令名 `ci-diet` 替换为 `npx dsh-ci-diet@0.5.1`,例如 `npx dsh-ci-diet@0.5.1 report --cwd .`。
43
43
 
44
44
  ```
45
- dsh plugin --profile web add dsh-ci-diet@0.5.0
45
+ dsh plugin --profile web add dsh-ci-diet@0.5.1
46
46
  dsh --profile web
47
47
  ```
48
48
 
package/client/index.js CHANGED
@@ -120,6 +120,13 @@ exports.CLIENT_LANGUAGES = exports.DICTIONARIES = exports.NS = void 0;
120
120
  /** Client dictionaries for the CI Diet settings page (ADR-19: six languages). */
121
121
  exports.NS = "dsh-ci-diet";
122
122
  const EN = {
123
+ "connection.title": "Settings connection failed",
124
+ "connection.retry": "Retry connection",
125
+ "connection.missing": "No CI Diet host entry was found in this DSH profile. Enable or reinstall CI Diet under Settings → Plugins, then restart DSH and reload this page.",
126
+ "connection.inactive": "CI Diet is installed but disabled, still starting, or failed to start. Check its status under Settings → Plugins. Entry IDs: {ids}.",
127
+ "connection.multiple": "Multiple CI Diet entries are active. Use Settings → Plugins to configure an entry or disable duplicates. Entry IDs: {ids}.",
128
+ "connection.transport": "The DSH plugin inventory could not be read. Check the DSH connection, update DSH and CI Diet together, then retry.",
129
+ "connection.form": "The CI Diet host entry was found, but DSH is not exposing its settings. Check the plugin startup log, restart DSH, and reload the page. Entry ID: {ids}.",
123
130
  nav: "CI Diet",
124
131
  "page.title": "CI Diet",
125
132
  "page.intro": "Basic settings to reduce CI waste",
@@ -201,6 +208,13 @@ const EN = {
201
208
  "page.saveFailed": "Could not save these settings. Try again.",
202
209
  };
203
210
  const KO = {
211
+ "connection.title": "설정 연결 실패",
212
+ "connection.retry": "연결 다시 시도",
213
+ "connection.missing": "이 DSH 프로필에서 CI Diet 호스트 항목을 찾지 못했어요. 설정 → 플러그인에서 CI Diet를 활성화하거나 다시 설치한 뒤 DSH를 재시작하고 이 페이지를 새로고침하세요.",
214
+ "connection.inactive": "CI Diet가 설치되어 있지만 비활성화되었거나, 아직 시작 중이거나, 시작에 실패했어요. 설정 → 플러그인에서 상태를 확인하세요. 항목 ID: {ids}.",
215
+ "connection.multiple": "활성화된 CI Diet 항목이 여러 개예요. 다른 항목을 잘못 편집하지 않도록 설정 → 플러그인에서 개별 설정을 사용하거나 중복 항목을 비활성화하세요. 항목 ID: {ids}.",
216
+ "connection.transport": "DSH 플러그인 목록을 읽지 못했어요. DSH 연결을 확인하고 DSH와 CI Diet를 함께 업데이트한 뒤 다시 시도하세요.",
217
+ "connection.form": "CI Diet 호스트 항목은 찾았지만 DSH가 해당 설정을 제공하지 않아요. 플러그인 시작 로그를 확인하고 DSH를 재시작한 뒤 페이지를 새로고침하세요. 항목 ID: {ids}.",
204
218
  nav: "CI Diet",
205
219
  "page.title": "CI Diet",
206
220
  "page.intro": "CI 낭비를 줄이는 기본 설정",
@@ -282,6 +296,13 @@ const KO = {
282
296
  "page.saveFailed": "설정을 저장하지 못했어요. 다시 시도해 주세요.",
283
297
  };
284
298
  const ZH = {
299
+ "connection.title": "设置连接失败",
300
+ "connection.retry": "重试连接",
301
+ "connection.missing": "在此 DSH 配置中未找到 CI Diet 主机条目。请在“设置 → 插件”中启用或重新安装 CI Diet,然后重启 DSH 并重新加载此页面。",
302
+ "connection.inactive": "CI Diet 已安装,但已停用、仍在启动或启动失败。请在“设置 → 插件”中检查其状态。条目 ID:{ids}。",
303
+ "connection.multiple": "有多个 CI Diet 条目处于启用状态。为避免编辑错误的实例,请使用“设置 → 插件”配置条目或停用重复项。条目 ID:{ids}。",
304
+ "connection.transport": "无法读取 DSH 插件清单。请检查 DSH 连接,同时更新 DSH 和 CI Diet,然后重试。",
305
+ "connection.form": "已找到 CI Diet 主机条目,但 DSH 未公开其设置。请检查插件启动日志,重启 DSH,并重新加载页面。条目 ID:{ids}。",
285
306
  nav: "CI Diet",
286
307
  "page.title": "CI Diet",
287
308
  "page.intro": "减少 CI 浪费的基本设置",
@@ -363,6 +384,13 @@ const ZH = {
363
384
  "page.saveFailed": "无法保存这些设置。请重试。",
364
385
  };
365
386
  const HI = {
387
+ "connection.title": "सेटिंग्स कनेक्शन विफल",
388
+ "connection.retry": "कनेक्शन फिर से आज़माएँ",
389
+ "connection.missing": "इस DSH प्रोफ़ाइल में CI Diet होस्ट प्रविष्टि नहीं मिली। सेटिंग्स → प्लगइन्स में CI Diet को सक्षम या फिर से इंस्टॉल करें, फिर DSH को फिर से शुरू करके यह पेज फिर से लोड करें।",
390
+ "connection.inactive": "CI Diet इंस्टॉल है, लेकिन बंद है, अभी शुरू हो रहा है या शुरू होने में विफल रहा। सेटिंग्स → प्लगइन्स में इसकी स्थिति जाँचें। प्रविष्टि ID: {ids}।",
391
+ "connection.multiple": "कई CI Diet प्रविष्टियाँ सक्रिय हैं। गलत इंस्टेंस को संपादित करने से बचने के लिए सेटिंग्स → प्लगइन्स में किसी एक को कॉन्फ़िगर करें या डुप्लिकेट को बंद करें। प्रविष्टि ID: {ids}।",
392
+ "connection.transport": "DSH प्लगइन सूची पढ़ी नहीं जा सकी। DSH कनेक्शन जाँचें, DSH और CI Diet को एक साथ अपडेट करें, फिर दोबारा प्रयास करें।",
393
+ "connection.form": "CI Diet होस्ट प्रविष्टि मिली, लेकिन DSH उसकी सेटिंग्स नहीं दिखा रहा। प्लगइन स्टार्टअप लॉग जाँचें, DSH फिर से शुरू करें और पेज फिर से लोड करें। प्रविष्टि ID: {ids}।",
366
394
  nav: "CI Diet",
367
395
  "page.title": "CI Diet",
368
396
  "page.intro": "CI अपव्यय कम करने की बुनियादी सेटिंग्स",
@@ -444,6 +472,13 @@ const HI = {
444
472
  "page.saveFailed": "ये सेटिंग्स सहेजी नहीं जा सकीं। फिर से प्रयास करें।",
445
473
  };
446
474
  const ES = {
475
+ "connection.title": "Error de conexión de ajustes",
476
+ "connection.retry": "Reintentar conexión",
477
+ "connection.missing": "No se encontró ninguna entrada de host de CI Diet en este perfil de DSH. Activa o reinstala CI Diet en Ajustes → Complementos, luego reinicia DSH y vuelve a cargar esta página.",
478
+ "connection.inactive": "CI Diet está instalado, pero está desactivado, todavía se está iniciando o no pudo iniciarse. Comprueba su estado en Ajustes → Complementos. ID de entradas: {ids}.",
479
+ "connection.multiple": "Hay varias entradas de CI Diet activas. Para evitar editar la instancia equivocada, usa Ajustes → Complementos para configurar una entrada o desactivar las duplicadas. ID de entradas: {ids}.",
480
+ "connection.transport": "No se pudo leer el inventario de complementos de DSH. Comprueba la conexión con DSH, actualiza DSH y CI Diet juntos y vuelve a intentarlo.",
481
+ "connection.form": "Se encontró la entrada de host de CI Diet, pero DSH no muestra sus ajustes. Revisa el registro de inicio del complemento, reinicia DSH y vuelve a cargar la página. ID de entrada: {ids}.",
447
482
  nav: "CI Diet",
448
483
  "page.title": "CI Diet",
449
484
  "page.intro": "Ajustes básicos para reducir el desperdicio de CI",
@@ -525,6 +560,13 @@ const ES = {
525
560
  "page.saveFailed": "No se pudieron guardar estos ajustes. Inténtalo de nuevo.",
526
561
  };
527
562
  const FR = {
563
+ "connection.title": "Échec de la connexion aux paramètres",
564
+ "connection.retry": "Réessayer la connexion",
565
+ "connection.missing": "Aucune entrée d’hôte CI Diet n’a été trouvée dans ce profil DSH. Activez ou réinstallez CI Diet dans Paramètres → Extensions, puis redémarrez DSH et rechargez cette page.",
566
+ "connection.inactive": "CI Diet est installé, mais désactivé, encore en cours de démarrage ou n’a pas pu démarrer. Vérifiez son état dans Paramètres → Extensions. ID des entrées : {ids}.",
567
+ "connection.multiple": "Plusieurs entrées CI Diet sont actives. Pour éviter de modifier la mauvaise instance, utilisez Paramètres → Extensions pour configurer une entrée ou désactiver les doublons. ID des entrées : {ids}.",
568
+ "connection.transport": "L’inventaire des extensions DSH n’a pas pu être lu. Vérifiez la connexion DSH, mettez à jour DSH et CI Diet ensemble, puis réessayez.",
569
+ "connection.form": "L’entrée d’hôte CI Diet a été trouvée, mais DSH n’expose pas ses paramètres. Consultez le journal de démarrage de l’extension, redémarrez DSH et rechargez la page. ID de l’entrée : {ids}.",
528
570
  nav: "CI Diet",
529
571
  "page.title": "CI Diet",
530
572
  "page.intro": "Réglages de base pour réduire le gaspillage de CI",
@@ -2787,6 +2829,146 @@ function ReviewPage(props) {
2787
2829
 
2788
2830
  });
2789
2831
 
2832
+ __define("settings-connection", function (module, exports, require) {
2833
+ "use strict";
2834
+ Object.defineProperty(exports, "__esModule", { value: true });
2835
+ exports.SettingsConnection = void 0;
2836
+ function inventoryEntries(value) {
2837
+ if (value === null || typeof value !== "object" || !("entries" in value) || !Array.isArray(value.entries)) {
2838
+ throw new Error("INVALID_PLUGIN_INVENTORY");
2839
+ }
2840
+ return value.entries.map((entry) => {
2841
+ if (entry === null || typeof entry !== "object" || !("entryId" in entry) || typeof entry.entryId !== "string" || !entry.entryId
2842
+ || !("moduleName" in entry) || typeof entry.moduleName !== "string" || !("enabled" in entry) || typeof entry.enabled !== "boolean"
2843
+ || !("fiberPhase" in entry) || (entry.fiberPhase !== null && typeof entry.fiberPhase !== "string")) {
2844
+ throw new Error("INVALID_PLUGIN_INVENTORY_ENTRY");
2845
+ }
2846
+ return entry;
2847
+ });
2848
+ }
2849
+ /** Keep the host form's atomic writes/revision fence; never infer ownership from settings values. */
2850
+ class SettingsConnection {
2851
+ snapshot = { status: "loading", writable: false };
2852
+ listeners = new Set();
2853
+ form;
2854
+ entryId;
2855
+ unsubscribe;
2856
+ mirrorOff;
2857
+ pending = false;
2858
+ started = false;
2859
+ disposed = false;
2860
+ abort;
2861
+ forms;
2862
+ connection;
2863
+ constructor(forms, connection) {
2864
+ this.forms = forms;
2865
+ this.connection = connection;
2866
+ }
2867
+ getSnapshot() { return this.snapshot; }
2868
+ subscribe(listener) {
2869
+ this.listeners.add(listener);
2870
+ return () => { this.listeners.delete(listener); };
2871
+ }
2872
+ connect() {
2873
+ if (this.started || this.disposed)
2874
+ return;
2875
+ this.started = true;
2876
+ this.retry();
2877
+ }
2878
+ retry() { void this.resolve(); }
2879
+ async mutate(ops, revision) {
2880
+ if (this.disposed || this.snapshot.status !== "ready" || !this.snapshot.writable || this.form === undefined)
2881
+ return false;
2882
+ return this.form.mutate(ops, revision);
2883
+ }
2884
+ dispose() {
2885
+ this.disposed = true;
2886
+ this.abort?.abort();
2887
+ this.unsubscribe?.();
2888
+ this.mirrorOff?.();
2889
+ this.listeners.clear();
2890
+ }
2891
+ publish(snapshot) {
2892
+ if (this.disposed)
2893
+ return;
2894
+ this.snapshot = snapshot;
2895
+ for (const listener of this.listeners)
2896
+ listener();
2897
+ }
2898
+ fail(issue, entryIds = []) {
2899
+ this.publish({ status: "unavailable", writable: false, issue, entryIds });
2900
+ }
2901
+ async resolve() {
2902
+ if (this.pending || this.disposed)
2903
+ return;
2904
+ this.pending = true;
2905
+ this.unsubscribe?.();
2906
+ this.unsubscribe = undefined;
2907
+ this.mirrorOff?.();
2908
+ this.mirrorOff = undefined;
2909
+ this.form = undefined;
2910
+ this.publish({ status: "loading", writable: false });
2911
+ try {
2912
+ this.abort = new AbortController();
2913
+ const result = await this.connection.rpc.call("/api", "pluginInventory/list", { args: {} }, AbortSignal.any([this.abort.signal, AbortSignal.timeout(10_000)]));
2914
+ if (this.disposed)
2915
+ return;
2916
+ if (!result.ok) {
2917
+ this.fail("transport");
2918
+ return;
2919
+ }
2920
+ const entries = inventoryEntries(result.value).filter((entry) => entry.moduleName === "dsh-ci-diet" || entry.moduleName.startsWith("dsh-ci-diet/"));
2921
+ const active = entries.filter((entry) => entry.enabled && entry.fiberPhase === "active");
2922
+ if (entries.length === 0) {
2923
+ this.fail("missing");
2924
+ return;
2925
+ }
2926
+ if (active.length === 0) {
2927
+ this.fail("inactive", entries.map((entry) => entry.entryId));
2928
+ return;
2929
+ }
2930
+ if (active.length !== 1) {
2931
+ this.fail("multiple", active.map((entry) => entry.entryId));
2932
+ return;
2933
+ }
2934
+ const id = active[0].entryId;
2935
+ // A retry must not move an existing draft/revision onto a replacement entry.
2936
+ if (this.entryId !== undefined && this.entryId !== id) {
2937
+ this.fail("form", [id]);
2938
+ return;
2939
+ }
2940
+ this.entryId = id;
2941
+ this.form = this.forms.get(id);
2942
+ const mirror = this.forms.describe?.();
2943
+ const sync = () => {
2944
+ const current = this.form.getSnapshot();
2945
+ if (current.status === "unavailable")
2946
+ this.fail("form", [id]);
2947
+ else if (current.status === "loading" && mirror?.getSnapshot().error)
2948
+ this.fail("transport", [id]);
2949
+ else if (current.status === "loading" && mirror?.getSnapshot().view !== undefined)
2950
+ this.fail("form", [id]);
2951
+ else
2952
+ this.publish({ ...current, entryIds: [id] });
2953
+ };
2954
+ this.unsubscribe = this.form.subscribe(sync);
2955
+ this.mirrorOff = mirror?.subscribe(sync);
2956
+ // get() returns cached forms; retry their shared first-read after a failed connection.
2957
+ void mirror?.ensure().catch(() => this.fail("transport", [id]));
2958
+ sync();
2959
+ }
2960
+ catch {
2961
+ this.fail(this.entryId === undefined ? "transport" : "form", this.entryId === undefined ? [] : [this.entryId]);
2962
+ }
2963
+ finally {
2964
+ this.pending = false;
2965
+ }
2966
+ }
2967
+ }
2968
+ exports.SettingsConnection = SettingsConnection;
2969
+
2970
+ });
2971
+
2790
2972
  __define("index", function (module, exports, require) {
2791
2973
  "use strict";
2792
2974
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2798,7 +2980,7 @@ const i18n_ts_1 = require("./i18n.js");
2798
2980
  const styles_ts_1 = require("./styles.js");
2799
2981
  const review_ts_1 = require("./review.js");
2800
2982
  const review_i18n_ts_1 = require("./review-i18n.js");
2801
- const FORM_NAMESPACE = "ciDiet.bootstrap";
2983
+ const settings_connection_ts_1 = require("./settings-connection.js");
2802
2984
  const EN = i18n_ts_1.DICTIONARIES.en;
2803
2985
  function translateWith(dict) {
2804
2986
  return (key, params = {}) => {
@@ -2926,7 +3108,7 @@ function SettingsPage(props) {
2926
3108
  if (snapshot.status === "loading")
2927
3109
  return React.createElement("div", { className: "ci-diet-notice" }, t("page.loading"));
2928
3110
  if (snapshot.status === "unavailable" || form === undefined)
2929
- return React.createElement("div", { className: "ci-diet-notice" }, t("page.unavailable"));
3111
+ return React.createElement("div", { className: "ci-diet-notice", role: "alert" }, React.createElement("h2", null, t("connection.title")), React.createElement("p", null, t(snapshot.issue === undefined ? "page.unavailable" : "connection." + snapshot.issue, { ids: snapshot.entryIds?.join(", ") ?? "" })), form?.retry === undefined ? null : React.createElement("button", { type: "button", className: "ci-diet-discard", onClick: () => form.retry() }, t("connection.retry")));
2930
3112
  const readOnly = !snapshot.writable;
2931
3113
  const changedKeys = new Set([...Object.keys(draft), ...resets]);
2932
3114
  const valueOf = (key) => draft[key] !== undefined ? draft[key] : snapshot.value?.[key];
@@ -3046,13 +3228,16 @@ const plugin = {
3046
3228
  ctx.effect(() => (0, styles_ts_1.installStyles)());
3047
3229
  else
3048
3230
  (0, styles_ts_1.installStyles)();
3231
+ const settings = new settings_connection_ts_1.SettingsConnection(ctx.configForms, ctx.connection);
3232
+ if (ctx.effect !== undefined)
3233
+ ctx.effect(() => () => settings.dispose());
3049
3234
  const register = () => ctx.slots.inject("settings.section", () => ctx.slots.register({
3050
3235
  name: "settings.section",
3051
3236
  id: "ci-diet",
3052
3237
  order: 91,
3053
3238
  label: () => t("nav"),
3054
3239
  locale: i18n_ts_1.NS,
3055
- inject: () => ({ form: ctx.configForms.get(FORM_NAMESPACE) }),
3240
+ inject: () => { settings.connect(); return { form: settings }; },
3056
3241
  }, SettingsPage));
3057
3242
  if (ctx.effect !== undefined)
3058
3243
  ctx.effect(register);
@@ -2,7 +2,7 @@
2
2
  * Engine version printed by the CLI and stored in reports. It must match the
3
3
  * package version; tests/unit/release-process.test.ts enforces that.
4
4
  */
5
- export declare const ENGINE_VERSION = "0.5.0";
5
+ export declare const ENGINE_VERSION = "0.5.1";
6
6
  export declare const RULE_VERSION = "0.1.0";
7
7
  /** JSON schema version of every persisted document. */
8
8
  export declare const CONTRACT_SCHEMA_VERSION = 2;
@@ -2,7 +2,7 @@
2
2
  * Engine version printed by the CLI and stored in reports. It must match the
3
3
  * package version; tests/unit/release-process.test.ts enforces that.
4
4
  */
5
- export const ENGINE_VERSION = "0.5.0";
5
+ export const ENGINE_VERSION = "0.5.1";
6
6
  export const RULE_VERSION = "0.1.0";
7
7
  /** JSON schema version of every persisted document. */
8
8
  export const CONTRACT_SCHEMA_VERSION = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ci-diet",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Find wasted GitHub Actions runner time and propose small, reviewable local patches.",
5
5
  "keywords": [
6
6
  "dsh-plugin",