dsh-session-guard 4.2.5 → 4.2.6
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.ja.md +41 -41
- package/CHANGELOG.ko.md +41 -41
- package/CHANGELOG.md +40 -40
- package/README.de.md +375 -375
- package/README.en.md +7 -7
- package/README.es.md +374 -374
- package/README.fr.md +373 -373
- package/README.it.md +374 -374
- package/README.md +380 -380
- package/README.ru.md +374 -374
- package/dsh.plugin.json +16 -16
- package/lib/client.js +13 -4
- package/lib/client.js.map +1 -1
- package/package.json +109 -109
- package/src/client/family-section.tsx +20 -7
- package/src/client/index.ts +4 -0
- package/src/client/settings-bridge.ts +202 -202
- package/src/client/settings-card.tsx +397 -397
- package/src/settings-bridge.js +141 -141
package/CHANGELOG.ja.md
CHANGED
|
@@ -18,47 +18,47 @@
|
|
|
18
18
|
- `dsh.plugin.json` の `engines.dsh` を同じ 16 ホスト列挙に統一(従来は範囲 `>=0.2.0-rc.1 <0.2.1-0`。ゲートは `package.json` のみを読むが、両リストは一致すべき)。
|
|
19
19
|
- README の互換記述を列挙に同期(zh/de/es/fr/it/ru)。このリリースに動作変更はありません。
|
|
20
20
|
|
|
21
|
-
## 4.2.0 — 2026-10-17
|
|
22
|
-
|
|
23
|
-
### 追加
|
|
24
|
-
- 法定祝日対応(src/holidays.js + src/holiday-store.js)。内置 2026 確定スナップショット:39 行 = 33 休日 + 6 振替出勤日(出典 holiday-cn、国務院公告)。厳格 parse(ゼロ埋め日付、isOffDay 真偽、跨年拒否);判定字段のみ sha256 指紋(上流の文言/順序変更は偽差異を出さない)。キャッシュファイル $DSH_HOME/.dsh/session-guard/holidays/<year>.json はロード時に指紋照合、不一致は破棄して内置フォールバック + 再取得。自動更新:起動時 + 每小时 ensureFresh;対象年は北京当年、11/12 月は翌年も(年末公告はリリース無しで反映);jsDelivr 主 / raw.githubusercontent 副、10s タイムアウト;指紋変化時のみ原子的書込;24h 再取得抑制;全链路 fail-open。DSH_SESSION_GUARD_HOLIDAY_FETCH=0 で離线内置固定。
|
|
25
|
-
- 宣言式開关 holidayMode / holidayAutoFetch(どちらも既定 ON)。/session-guard/status に holidayMode + holidays[](年/出典/指紋/取得时刻/件数)を追加。
|
|
26
|
-
|
|
27
|
-
### 変更
|
|
28
|
-
- weekendMode を休息日语义へ昇格:法定祝日は终日オフピーク、振替出勤周末は通常どおりピーク判定、nextOffPeakInstant の先読み 7 -> 14 日で表対応。holidayMap は readCfg 経由で cfg に載り、shouldPause 消费链(scheduler tick / request-guard / step-gate / wiring)はシグネチャ不変で自动生效。
|
|
29
|
-
|
|
30
|
-
### 修正
|
|
31
|
-
- family claim rank 1 -> 2、冻结权重表(唯一真源 _tools/family-rank.mjs)と整合。
|
|
32
|
-
|
|
33
|
-
## 4.1.16 — 2026-10-14(マニフェスト整合/欠落していた 4.1.15 の補記)
|
|
34
|
-
|
|
35
|
-
### 修正
|
|
36
|
-
|
|
37
|
-
- `dsh.plugin.json` の版数を `package.json` と一致させた。公開済みの 4.1.15 ターボールは
|
|
38
|
-
まだ 4.1.14 と書かれていた(レジストリから実際にダウンロードして確認)。
|
|
39
|
-
- 動作変更なし。
|
|
40
|
-
- テストの構造ピンが退役済みの歯車入口をまだ要求しており、4.1.15 以来スイートが赤だった。
|
|
41
|
-
不在を断言する側へ修正した。
|
|
42
|
-
|
|
43
|
-
## 4.1.15 — 2026-10-08(補記:リリース当時この項が書かれていませんでした)
|
|
44
|
-
|
|
45
|
-
### 削除
|
|
46
|
-
|
|
47
|
-
- シェルレベルの `shell.overlay` シート注入を廃止:右下固定の歯車ボタンと浮層レイヤーを除去
|
|
48
|
-
(`src/client/shell-overlay.tsx` を削除)。設定への入口はホストの設定ページのみを頼る。
|
|
49
|
-
|
|
50
|
-
## 4.1.14 — 2026-10-08
|
|
51
|
-
|
|
52
|
-
### 削除
|
|
53
|
-
|
|
54
|
-
## 4.1.13 — 2026-10-08
|
|
55
|
-
|
|
56
|
-
### 修正 — ≤0.1.5 でのブリッジ記述子スケルトン(5セルゲートで発覚)
|
|
57
|
-
|
|
58
|
-
- **≤0.1.5 ホストの describe `value` はフィールドスケルトン**(実測:`{enabled:{},…}`、実値は `base`+`user` 層)。旧世代で `descriptor.value` をそのまま消費すると `officialProviders` が `{}` になり `?? []` を素通りして `ListRow` の `values.join` が throw、`dsh-family.tab` スロット全体が殉葬していた。`descriptorPlainValue()` がスケルトンを検出して `{...base, ...user}` を再構築。
|
|
59
|
-
- **カード字段消毒(多層防御)**:スロットは一つの描画エラーで全族タブが死ぬため、`ListRow` 入力を `toList()` で無毒化、`拦截方式` セレクトは非 `error` 値を `hold` にフォールバック。
|
|
60
|
-
- 5セルファームゲートで検証:0.1.0/0.1.5 はブリッジ経由、0.1.7 は configForms 経由でシード値 `321123` の読み返しを確認。
|
|
61
|
-
|
|
21
|
+
## 4.2.0 — 2026-10-17
|
|
22
|
+
|
|
23
|
+
### 追加
|
|
24
|
+
- 法定祝日対応(src/holidays.js + src/holiday-store.js)。内置 2026 確定スナップショット:39 行 = 33 休日 + 6 振替出勤日(出典 holiday-cn、国務院公告)。厳格 parse(ゼロ埋め日付、isOffDay 真偽、跨年拒否);判定字段のみ sha256 指紋(上流の文言/順序変更は偽差異を出さない)。キャッシュファイル $DSH_HOME/.dsh/session-guard/holidays/<year>.json はロード時に指紋照合、不一致は破棄して内置フォールバック + 再取得。自動更新:起動時 + 每小时 ensureFresh;対象年は北京当年、11/12 月は翌年も(年末公告はリリース無しで反映);jsDelivr 主 / raw.githubusercontent 副、10s タイムアウト;指紋変化時のみ原子的書込;24h 再取得抑制;全链路 fail-open。DSH_SESSION_GUARD_HOLIDAY_FETCH=0 で離线内置固定。
|
|
25
|
+
- 宣言式開关 holidayMode / holidayAutoFetch(どちらも既定 ON)。/session-guard/status に holidayMode + holidays[](年/出典/指紋/取得时刻/件数)を追加。
|
|
26
|
+
|
|
27
|
+
### 変更
|
|
28
|
+
- weekendMode を休息日语义へ昇格:法定祝日は终日オフピーク、振替出勤周末は通常どおりピーク判定、nextOffPeakInstant の先読み 7 -> 14 日で表対応。holidayMap は readCfg 経由で cfg に載り、shouldPause 消费链(scheduler tick / request-guard / step-gate / wiring)はシグネチャ不変で自动生效。
|
|
29
|
+
|
|
30
|
+
### 修正
|
|
31
|
+
- family claim rank 1 -> 2、冻结权重表(唯一真源 _tools/family-rank.mjs)と整合。
|
|
32
|
+
|
|
33
|
+
## 4.1.16 — 2026-10-14(マニフェスト整合/欠落していた 4.1.15 の補記)
|
|
34
|
+
|
|
35
|
+
### 修正
|
|
36
|
+
|
|
37
|
+
- `dsh.plugin.json` の版数を `package.json` と一致させた。公開済みの 4.1.15 ターボールは
|
|
38
|
+
まだ 4.1.14 と書かれていた(レジストリから実際にダウンロードして確認)。
|
|
39
|
+
- 動作変更なし。
|
|
40
|
+
- テストの構造ピンが退役済みの歯車入口をまだ要求しており、4.1.15 以来スイートが赤だった。
|
|
41
|
+
不在を断言する側へ修正した。
|
|
42
|
+
|
|
43
|
+
## 4.1.15 — 2026-10-08(補記:リリース当時この項が書かれていませんでした)
|
|
44
|
+
|
|
45
|
+
### 削除
|
|
46
|
+
|
|
47
|
+
- シェルレベルの `shell.overlay` シート注入を廃止:右下固定の歯車ボタンと浮層レイヤーを除去
|
|
48
|
+
(`src/client/shell-overlay.tsx` を削除)。設定への入口はホストの設定ページのみを頼る。
|
|
49
|
+
|
|
50
|
+
## 4.1.14 — 2026-10-08
|
|
51
|
+
|
|
52
|
+
### 削除
|
|
53
|
+
|
|
54
|
+
## 4.1.13 — 2026-10-08
|
|
55
|
+
|
|
56
|
+
### 修正 — ≤0.1.5 でのブリッジ記述子スケルトン(5セルゲートで発覚)
|
|
57
|
+
|
|
58
|
+
- **≤0.1.5 ホストの describe `value` はフィールドスケルトン**(実測:`{enabled:{},…}`、実値は `base`+`user` 層)。旧世代で `descriptor.value` をそのまま消費すると `officialProviders` が `{}` になり `?? []` を素通りして `ListRow` の `values.join` が throw、`dsh-family.tab` スロット全体が殉葬していた。`descriptorPlainValue()` がスケルトンを検出して `{...base, ...user}` を再構築。
|
|
59
|
+
- **カード字段消毒(多層防御)**:スロットは一つの描画エラーで全族タブが死ぬため、`ListRow` 入力を `toList()` で無毒化、`拦截方式` セレクトは非 `error` 値を `hold` にフォールバック。
|
|
60
|
+
- 5セルファームゲートで検証:0.1.0/0.1.5 はブリッジ経由、0.1.7 は configForms 経由でシード値 `321123` の読み返しを確認。
|
|
61
|
+
|
|
62
62
|
## 4.0.0 — 2026-09-29
|
|
63
63
|
|
|
64
64
|
### Changed
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -18,47 +18,47 @@
|
|
|
18
18
|
- `dsh.plugin.json`의 `engines.dsh`를 동일한 16호스트 열거로 통일(기존 범위 `>=0.2.0-rc.1 <0.2.1-0`였음. 게이트는 `package.json`만 읽지만 두 목록은 일치해야 함).
|
|
19
19
|
- README 호환 서술(zh/de/es/fr/it/ru)을 열거와 동기화. 이 릴리스에는 동작 변경 없음.
|
|
20
20
|
|
|
21
|
-
## 4.2.0 — 2026-10-17
|
|
22
|
-
|
|
23
|
-
### 추가
|
|
24
|
-
- 법정 공휴 인식(src/holidays.js + src/holiday-store.js). 내장 2026 확정 스냅샷: 39행 = 33 휴일 + 6 보근 근무일(출처 holiday-cn, 국무원 공고). 엄격한 파싱(제로패딩 날짜, isOffDay 불리언, 연도 초과 거부); 판정 필드만 sha256 지문(상문구/순서 변경은 오탐 없음). 캐시 파일 $DSH_HOME/.dsh/session-guard/holidays/<year>.json 은 로드 시 지문 자체 검증 — 불일치 시 폐기 후 내장 폴백 + 재조회. 자동 갱신: 시작 시 + 매시간 ensureFresh; 관련 연도 = 베이징 현재 연도, 11/12 월은 이듬해 추가(jsDelivr 주, raw.githubusercontent 보조, 10s 타임아웃); 지문 변화 시에만 원자적 tmp+rename 기록; 24h 재조회 억제; 전 구간 fail-open. DSH_SESSION_GUARD_HOLIDAY_FETCH=0 오프라인 고정.
|
|
25
|
-
- 선언식 스위치 holidayMode / holidayAutoFetch(기본 켜짐). /session-guard/status 가 holidayMode + 연도별 holidays[](출처/지문/조회시각/건수) 노출.
|
|
26
|
-
|
|
27
|
-
### 변경
|
|
28
|
-
- weekendMode 를 휴식일 의미로 승격: 법정 공휴는 종일 비봉우리, 보근 주말은 정상 봉우리 판정, nextOffPeakInstant 선탐색 7 -> 14 일, 표 인지. holidayMap 은 readCfg 로 cfg 에 실려 shouldPause 소비 체인(스케줄러/request-guard/step-gate/wiring)이 서명 변경 없이 자동 적용.
|
|
29
|
-
|
|
30
|
-
### 수정
|
|
31
|
-
- family claim rank 1 -> 2, 동결 가중 랭크 표(_tools/family-rank.mjs 단일 진원)와 정렬.
|
|
32
|
-
|
|
33
|
-
## 4.1.16 — 2026-10-14 (매니페스트 정리, 누락된 4.1.15 항목 보충)
|
|
34
|
-
|
|
35
|
-
### 수정
|
|
36
|
-
|
|
37
|
-
- `dsh.plugin.json` 버전을 `package.json` 과 일치시켰습니다. 게시된 4.1.15 tarball 은
|
|
38
|
-
여전히 4.1.14 였습니다 (레지스트리에서 직접 내려받아 확인).
|
|
39
|
-
- 동작 변경 없음.
|
|
40
|
-
- 구조 핀이 이미 폐지된 톱니 진입점을 요구해서 4.1.15 이후 테스트가 빨랬습니다.
|
|
41
|
-
부존재를 단언하는 쪽으로 고쳤습니다.
|
|
42
|
-
|
|
43
|
-
## 4.1.15 — 2026-10-08 (보충: 배포 당시에 이 항목이 기록되지 않았습니다)
|
|
44
|
-
|
|
45
|
-
### 삭제
|
|
46
|
-
|
|
47
|
-
- 셸 레벨 `shell.overlay` 슬롯 주입 폐지: 오른쪽 아래 고정 톱니 버튼과 부유 레이어 제거
|
|
48
|
-
(`src/client/shell-overlay.tsx` 삭제). 설정 진입점은 호스트 설정 페이지에만 의존합니다.
|
|
49
|
-
|
|
50
|
-
## 4.1.14 — 2026-10-08
|
|
51
|
-
|
|
52
|
-
### 제거
|
|
53
|
-
|
|
54
|
-
## 4.1.13 — 2026-10-08
|
|
55
|
-
|
|
56
|
-
### 수정 — ≤0.1.5 브리지 디스크립터 스켈레톤(5셀 게이트 발견)
|
|
57
|
-
|
|
58
|
-
- **≤0.1.5 호스트의 describe `value`는 필드 스켈레톤**(실측: `{enabled:{},…}`, 실값은 `base`+`user` 레이어). 구세대에서 `descriptor.value`를 그대로 쓰면 `officialProviders`가 `{}`가 되어 `?? []`를 통과하고 `ListRow`의 `values.join`이 throw, `dsh-family.tab` 슬롯 전체가 순직.`descriptorPlainValue()`가 스켈레톤을 감지해 `{...base, ...user}`로 재구성.
|
|
59
|
-
- **카드 필드 소독(다층 방어)**: 슬롯은 렌더 오류 하나로 전체 탭이 죽으므로 `ListRow` 입력을 `toList()`로 무독화, `拦截方式` 셀렉트는 non-`error` 값을 `hold`로 폴백.
|
|
60
|
-
- 5셀 팜 게이트 검증: 0.1.0/0.1.5는 브리지 경유, 0.1.7은 configForms 경유로 시드값 `321123` 재판독 확인.
|
|
61
|
-
|
|
21
|
+
## 4.2.0 — 2026-10-17
|
|
22
|
+
|
|
23
|
+
### 추가
|
|
24
|
+
- 법정 공휴 인식(src/holidays.js + src/holiday-store.js). 내장 2026 확정 스냅샷: 39행 = 33 휴일 + 6 보근 근무일(출처 holiday-cn, 국무원 공고). 엄격한 파싱(제로패딩 날짜, isOffDay 불리언, 연도 초과 거부); 판정 필드만 sha256 지문(상문구/순서 변경은 오탐 없음). 캐시 파일 $DSH_HOME/.dsh/session-guard/holidays/<year>.json 은 로드 시 지문 자체 검증 — 불일치 시 폐기 후 내장 폴백 + 재조회. 자동 갱신: 시작 시 + 매시간 ensureFresh; 관련 연도 = 베이징 현재 연도, 11/12 월은 이듬해 추가(jsDelivr 주, raw.githubusercontent 보조, 10s 타임아웃); 지문 변화 시에만 원자적 tmp+rename 기록; 24h 재조회 억제; 전 구간 fail-open. DSH_SESSION_GUARD_HOLIDAY_FETCH=0 오프라인 고정.
|
|
25
|
+
- 선언식 스위치 holidayMode / holidayAutoFetch(기본 켜짐). /session-guard/status 가 holidayMode + 연도별 holidays[](출처/지문/조회시각/건수) 노출.
|
|
26
|
+
|
|
27
|
+
### 변경
|
|
28
|
+
- weekendMode 를 휴식일 의미로 승격: 법정 공휴는 종일 비봉우리, 보근 주말은 정상 봉우리 판정, nextOffPeakInstant 선탐색 7 -> 14 일, 표 인지. holidayMap 은 readCfg 로 cfg 에 실려 shouldPause 소비 체인(스케줄러/request-guard/step-gate/wiring)이 서명 변경 없이 자동 적용.
|
|
29
|
+
|
|
30
|
+
### 수정
|
|
31
|
+
- family claim rank 1 -> 2, 동결 가중 랭크 표(_tools/family-rank.mjs 단일 진원)와 정렬.
|
|
32
|
+
|
|
33
|
+
## 4.1.16 — 2026-10-14 (매니페스트 정리, 누락된 4.1.15 항목 보충)
|
|
34
|
+
|
|
35
|
+
### 수정
|
|
36
|
+
|
|
37
|
+
- `dsh.plugin.json` 버전을 `package.json` 과 일치시켰습니다. 게시된 4.1.15 tarball 은
|
|
38
|
+
여전히 4.1.14 였습니다 (레지스트리에서 직접 내려받아 확인).
|
|
39
|
+
- 동작 변경 없음.
|
|
40
|
+
- 구조 핀이 이미 폐지된 톱니 진입점을 요구해서 4.1.15 이후 테스트가 빨랬습니다.
|
|
41
|
+
부존재를 단언하는 쪽으로 고쳤습니다.
|
|
42
|
+
|
|
43
|
+
## 4.1.15 — 2026-10-08 (보충: 배포 당시에 이 항목이 기록되지 않았습니다)
|
|
44
|
+
|
|
45
|
+
### 삭제
|
|
46
|
+
|
|
47
|
+
- 셸 레벨 `shell.overlay` 슬롯 주입 폐지: 오른쪽 아래 고정 톱니 버튼과 부유 레이어 제거
|
|
48
|
+
(`src/client/shell-overlay.tsx` 삭제). 설정 진입점은 호스트 설정 페이지에만 의존합니다.
|
|
49
|
+
|
|
50
|
+
## 4.1.14 — 2026-10-08
|
|
51
|
+
|
|
52
|
+
### 제거
|
|
53
|
+
|
|
54
|
+
## 4.1.13 — 2026-10-08
|
|
55
|
+
|
|
56
|
+
### 수정 — ≤0.1.5 브리지 디스크립터 스켈레톤(5셀 게이트 발견)
|
|
57
|
+
|
|
58
|
+
- **≤0.1.5 호스트의 describe `value`는 필드 스켈레톤**(실측: `{enabled:{},…}`, 실값은 `base`+`user` 레이어). 구세대에서 `descriptor.value`를 그대로 쓰면 `officialProviders`가 `{}`가 되어 `?? []`를 통과하고 `ListRow`의 `values.join`이 throw, `dsh-family.tab` 슬롯 전체가 순직.`descriptorPlainValue()`가 스켈레톤을 감지해 `{...base, ...user}`로 재구성.
|
|
59
|
+
- **카드 필드 소독(다층 방어)**: 슬롯은 렌더 오류 하나로 전체 탭이 죽으므로 `ListRow` 입력을 `toList()`로 무독화, `拦截方式` 셀렉트는 non-`error` 값을 `hold`로 폴백.
|
|
60
|
+
- 5셀 팜 게이트 검증: 0.1.0/0.1.5는 브리지 경유, 0.1.7은 configForms 경유로 시드값 `321123` 재판독 확인.
|
|
61
|
+
|
|
62
62
|
## 4.0.0 — 2026-09-29
|
|
63
63
|
|
|
64
64
|
### Changed
|
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
-
|
|
3
|
-
4.2.3: host enumeration addendum for DSH 0.2.1-rc.3 (declaration-only bump; contract plane zero diff).
|
|
4
|
-
|
|
5
|
-
## 4.2.2 (2026-10-18)
|
|
6
|
-
|
|
7
|
-
- hosts: 追加 0.2.1-rc.2 声明面枚举(34/34 @deepseek-ai/* 宿主 peer 逐包 npm 实测 rc.2 在版;本插件不触 ctx.web provider 与 conversation.input.model.label 槽,代码零改动,纯元数据发版;农场 rc.2 格挂账待命)
|
|
2
|
+
|
|
3
|
+
4.2.3: host enumeration addendum for DSH 0.2.1-rc.3 (declaration-only bump; contract plane zero diff).
|
|
4
|
+
|
|
5
|
+
## 4.2.2 (2026-10-18)
|
|
6
|
+
|
|
7
|
+
- hosts: 追加 0.2.1-rc.2 声明面枚举(34/34 @deepseek-ai/* 宿主 peer 逐包 npm 实测 rc.2 在版;本插件不触 ctx.web provider 与 conversation.input.model.label 槽,代码零改动,纯元数据发版;农场 rc.2 格挂账待命)
|
|
8
8
|
|
|
9
9
|
All notable changes to `dsh-session-guard` are recorded here. Versions follow semver.
|
|
10
10
|
|
|
@@ -26,40 +26,40 @@ All notable changes to `dsh-session-guard` are recorded here. Versions follow se
|
|
|
26
26
|
the gate only reads `package.json`, but the two lists must not diverge.
|
|
27
27
|
- README compatibility statements (zh/de/es/fr/it/ru) synced to the enumeration. No behaviour change in this release.
|
|
28
28
|
|
|
29
|
-
## 4.2.0 — 2026-10-17
|
|
30
|
-
|
|
31
|
-
### Added
|
|
32
|
-
- Statutory-holiday awareness (src/holidays.js + src/holiday-store.js). Builtin 2026 finalized snapshot: 39 rows = 33 rest days + 6 make-up workdays (source: holiday-cn, State Council notices). Strict parse (zero-padded dates, boolean isOffDay, cross-year rows rejected); sha256 fingerprint over the decision fields only — upstream copy/reorder edits cause no false churn. The cache file $DSH_HOME/.dsh/session-guard/holidays/<year>.json self-verifies its fingerprint at load: mismatch discards the cache (builtin fallback) and triggers a re-fetch. Auto refresh: startup check + hourly ensureFresh; relevant years = Beijing current year, Nov/Dec also add next year (the State Council publishes next year in late December, so it lands without a release); jsDelivr primary, raw.githubusercontent fallback, 10 s timeout; refetch only on fingerprint change, then atomic tmp+rename write; 24 h no-refetch budget; consistent hits only bump the check timestamp; fail-open end to end. DSH_SESSION_GUARD_HOLIDAY_FETCH=0 pins offline/builtin mode (tests ride it).
|
|
33
|
-
- Declarative settings switches holidayMode and holidayAutoFetch (both default on; auto-form on 0.1.7+). /session-guard/status now exposes holidayMode + holidays[] per year (source / fingerprint / fetchedAt / entry count).
|
|
34
|
-
|
|
35
|
-
### Changed
|
|
36
|
-
- weekendMode upgraded to rest-day semantics: statutory holidays (including ones landing on workdays) are off-peak all day; make-up-workday weekends enter peak gating normally; nextOffPeakInstant lookahead widened 7 -> 14 days and is table-aware. holidayMap rides cfg via readCfg, so shouldPause consumers (scheduler tick / request-guard / step-gate / wiring release timers) pick it up with zero signature churn.
|
|
37
|
-
|
|
38
|
-
### Fixed
|
|
39
|
-
- Family claim rank 1 -> 2, aligned with the frozen weighted rank ladder (single source _tools/family-rank.mjs).
|
|
40
|
-
|
|
41
|
-
## 4.1.16 — 2026-10-14 (metadata alignment; backfill the missing 4.1.15 entry)
|
|
42
|
-
|
|
43
|
-
### Fixed
|
|
44
|
-
|
|
45
|
-
- `dsh.plugin.json` now carries the same version as `package.json`. The published 4.1.15 tarball
|
|
46
|
-
still said 4.1.14 (verified by downloading it from the registry), so the two manifests disagreed in a released artifact.
|
|
47
|
-
- No behaviour change in this release.
|
|
48
|
-
- Test suite repaired: the structural pin in `tests/settings-bridge.test.mjs` still demanded the
|
|
49
|
-
retired gear entry, so the suite had been red since 4.1.15; it now asserts the opposite (absence).
|
|
50
|
-
|
|
51
|
-
## 4.1.15 — 2026-10-08 (backfilled: this entry was never written at release time)
|
|
52
|
-
|
|
53
|
-
### Removed
|
|
54
|
-
|
|
55
|
-
- The shell-level `shell.overlay` slot injection: the fixed bottom-right gear button and its
|
|
56
|
-
positioned floating layer are gone (`src/client/shell-overlay.tsx` deleted). The settings entry
|
|
57
|
-
now relies on the host settings page alone.
|
|
58
|
-
|
|
59
|
-
## 4.1.14 — 2026-10-08
|
|
60
|
-
|
|
61
|
-
### Removed
|
|
62
|
-
|
|
29
|
+
## 4.2.0 — 2026-10-17
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
- Statutory-holiday awareness (src/holidays.js + src/holiday-store.js). Builtin 2026 finalized snapshot: 39 rows = 33 rest days + 6 make-up workdays (source: holiday-cn, State Council notices). Strict parse (zero-padded dates, boolean isOffDay, cross-year rows rejected); sha256 fingerprint over the decision fields only — upstream copy/reorder edits cause no false churn. The cache file $DSH_HOME/.dsh/session-guard/holidays/<year>.json self-verifies its fingerprint at load: mismatch discards the cache (builtin fallback) and triggers a re-fetch. Auto refresh: startup check + hourly ensureFresh; relevant years = Beijing current year, Nov/Dec also add next year (the State Council publishes next year in late December, so it lands without a release); jsDelivr primary, raw.githubusercontent fallback, 10 s timeout; refetch only on fingerprint change, then atomic tmp+rename write; 24 h no-refetch budget; consistent hits only bump the check timestamp; fail-open end to end. DSH_SESSION_GUARD_HOLIDAY_FETCH=0 pins offline/builtin mode (tests ride it).
|
|
33
|
+
- Declarative settings switches holidayMode and holidayAutoFetch (both default on; auto-form on 0.1.7+). /session-guard/status now exposes holidayMode + holidays[] per year (source / fingerprint / fetchedAt / entry count).
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- weekendMode upgraded to rest-day semantics: statutory holidays (including ones landing on workdays) are off-peak all day; make-up-workday weekends enter peak gating normally; nextOffPeakInstant lookahead widened 7 -> 14 days and is table-aware. holidayMap rides cfg via readCfg, so shouldPause consumers (scheduler tick / request-guard / step-gate / wiring release timers) pick it up with zero signature churn.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
- Family claim rank 1 -> 2, aligned with the frozen weighted rank ladder (single source _tools/family-rank.mjs).
|
|
40
|
+
|
|
41
|
+
## 4.1.16 — 2026-10-14 (metadata alignment; backfill the missing 4.1.15 entry)
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
|
|
45
|
+
- `dsh.plugin.json` now carries the same version as `package.json`. The published 4.1.15 tarball
|
|
46
|
+
still said 4.1.14 (verified by downloading it from the registry), so the two manifests disagreed in a released artifact.
|
|
47
|
+
- No behaviour change in this release.
|
|
48
|
+
- Test suite repaired: the structural pin in `tests/settings-bridge.test.mjs` still demanded the
|
|
49
|
+
retired gear entry, so the suite had been red since 4.1.15; it now asserts the opposite (absence).
|
|
50
|
+
|
|
51
|
+
## 4.1.15 — 2026-10-08 (backfilled: this entry was never written at release time)
|
|
52
|
+
|
|
53
|
+
### Removed
|
|
54
|
+
|
|
55
|
+
- The shell-level `shell.overlay` slot injection: the fixed bottom-right gear button and its
|
|
56
|
+
positioned floating layer are gone (`src/client/shell-overlay.tsx` deleted). The settings entry
|
|
57
|
+
now relies on the host settings page alone.
|
|
58
|
+
|
|
59
|
+
## 4.1.14 — 2026-10-08
|
|
60
|
+
|
|
61
|
+
### Removed
|
|
62
|
+
|
|
63
63
|
## 4.1.13 — 2026-10-08
|
|
64
64
|
|
|
65
65
|
### Fixed — bridge descriptor skeleton on ≤0.1.5 (five-cell gate catch, 2026-10-08)
|