dsh-context-compression-improved 0.6.4 → 0.7.0-beta.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/CHANGELOG.ja.md +51 -0
- package/CHANGELOG.ko.md +47 -0
- package/CHANGELOG.md +72 -0
- package/CHANGELOG.zh.md +47 -0
- package/README.ja.md +2 -2
- package/README.ko.md +2 -2
- package/README.md +6 -3
- package/README.zh.md +3 -2
- package/eslint.config.js +76 -30
- package/package.json +164 -162
- package/packages/selector/dsh.plugin.json +16 -16
- package/packages/selector/lib/client.js +16 -4
- package/packages/selector/lib/index.js +92 -1
- package/packages/selector/lib/{advisor-state.js → intent-gate.js} +91 -3
- package/packages/selector/lib/profiles.d.ts +9 -0
- package/packages/selector/lib/pruner.d.ts +59 -0
- package/packages/selector/lib/pruner.js +410 -8
- package/packages/selector/package.json +114 -114
- package/packages/selector/src/client/decode.ts +6 -2
- package/packages/selector/src/client/index.ts +213 -232
- package/packages/selector/src/client/scope-face.ts +24 -24
- package/packages/selector/src/deepseek-v4-tokenizer.ts +1 -1
- package/packages/selector/src/index.ts +418 -412
- package/packages/selector/src/preset-overlay.ts +3 -0
- package/packages/selector/src/profiles.ts +30 -10
- package/packages/selector/src/pruner/content.ts +1 -1
- package/packages/selector/src/pruner/state.ts +7 -0
- package/packages/selector/src/pruner.ts +253 -10
- package/packages/selector/src/runtime/audit.ts +17 -0
- package/packages/selector/src/runtime/config.ts +36 -11
- package/packages/selector/src/runtime/reducers.ts +1 -1
- package/packages/selector/src/runtime/summary-command.ts +133 -0
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +46 -1
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +55 -0
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +53 -0
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +65 -0
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +125 -0
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +37 -0
- package/packages/selector/src/runtime/tokenpilot/locator.ts +2 -2
- package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +4 -1
- package/packages/selector/src/runtime/types.ts +12 -0
- package/packages/selector/tests/auto-compact.client.spec.tsx +214 -213
- package/packages/selector/tests/built/client-artifact.spec.ts +2 -0
- package/packages/selector/tests/code-skeleton.client.spec.ts +94 -93
- package/packages/selector/tests/custom-contract.client.spec.ts +3 -2
- package/packages/selector/tests/estimator-channel.client.spec.tsx +252 -252
- package/packages/selector/tests/helpers/legacy-namespace.ts +8 -4
- package/packages/selector/tests/helpers/legacy-settings/index.ts +15 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +41 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +647 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +78 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +234 -0
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +204 -206
- package/packages/selector/tests/preset-options-write.client.spec.ts +188 -187
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +200 -206
- package/packages/selector/tests/profiles.client.spec.tsx +436 -434
- package/packages/selector/tests/public/package-contract.client.spec.ts +78 -78
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +230 -233
- package/packages/selector/tests/runtime/audit.spec.ts +275 -274
- package/packages/selector/tests/runtime/auto-compact-config.spec.ts +3 -3
- package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +4 -4
- package/packages/selector/tests/runtime/intent-gate.spec.ts +62 -0
- package/packages/selector/tests/runtime/intent-summary.spec.ts +156 -0
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2736 -2727
- package/packages/selector/tests/runtime/summary-command.spec.ts +154 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +165 -165
- package/packages/selector/tests/standing-generation.host.spec.ts +704 -704
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +18 -2
- package/packages/selector/tests/support/ui-primitives.tsx +34 -34
- package/pnpm-workspace.yaml +1 -1
- package/scripts/packed-components-smoke.mjs +2 -0
- package/scripts/packed-install-e2e.mjs +1275 -1273
- package/scripts/verify-release.mjs +318 -317
- package/tsconfig.tests.json +3 -1
- package/vitest.config.ts +14 -0
package/CHANGELOG.ja.md
CHANGED
|
@@ -2,8 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
> 完全な履歴(アップストリーム 0.1.0 以前を含む)は [CHANGELOG.md](CHANGELOG.md) を参照。このファイルはフォークの追加エントリーのみを翻訳したものです。 · [English](CHANGELOG.md) · [中文](CHANGELOG.zh.md) · [한국어](CHANGELOG.ko.md)
|
|
4
4
|
|
|
5
|
+
<<<<<<< HEAD
|
|
6
|
+
## 0.7.0-beta.1 - 2026-09-27
|
|
7
|
+
|
|
8
|
+
### 追加
|
|
9
|
+
|
|
10
|
+
- ターン末尾インテント要約(`intentSummary.enabled`、デフォルト無効):成長ゲート(ライブ表面がウィンドウの 45% 超、かつ前回フォールドより 50K トークン超の増加)を通過した場合、ターン境界のポストフライトが「消費済み増分」をセマンティックロールでマスク——read 系ツール結果は共有の `classifyToolSource()`(write レイヤー追加)経由で 1 行の対象/規模レコードに、write 系はスケルトン先頭と逐語エラー行を保持——し、要約ライター LLM 呼び出しは 1 回のみ(todolist アンカー、JSON のみ、fail-open)。フォールドは次の圧力ラウンドで既存の plan/apply 機構を通じて候補ごとの `intent-summary` ブロックとして着地し、先頭ブロックが要約・読み取りレコード・逐語エラー行を、残りはマスク行と seq 範囲の出身情報を担う。fold-once:折りたたまれた seq(`INTENT_FOLD_MARKER` 含むブロック)は再候補になりません。監査に `intent-summary-outcome`(保持率と要約呼び出しコストのクレジット計上)を追加。
|
|
11
|
+
- `/ctx-summary off|on|status`:セッション単位の一時的な無効化/再開/状態表示(設定はセッション凍結のため「一時」はランタイム状態でのみ可能)。プロセスとともに消滅し、セッションを跨ぎません。
|
|
12
|
+
=======
|
|
13
|
+
## 0.6.5 - 2026-09-29
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- 開発依存を Harness 0.1.7 系に整合:48 個の `@deepseek-ai/dsh-*` devDependencies のうち
|
|
18
|
+
46 個を厳密ピン `0.1.5-rc.2` から `0.1.7-rc.2` へ移し、`pnpm-lock.yaml` をクリーンな
|
|
19
|
+
ツリーから再生成。typecheck・build・test・lint・`verify:release` が 0.1.5 の入力で
|
|
20
|
+
0.1.7 適応を検証する偽の緑ではなく、実際の 0.1.7-rc.2 ベースラインで走るようになった。
|
|
21
|
+
0.1.7 系のリリースが存在しない 2 パッケージはインストール時のピンを維持:
|
|
22
|
+
`@deepseek-ai/dsh-agent-presets`(`0.1.6-alpha.2`)と `@deepseek-ai/dsh-code-runtime`
|
|
23
|
+
(`0.1.5-rc.3`)。`react-dom` に明示的な `^18.2.0` devDependency を追加し、新規解決で
|
|
24
|
+
React-DOM 19 と React 18 が混在しないようにした。
|
|
25
|
+
- テストホストの settings シームを実際の 0.1.7 ホストに合わせて再構築:
|
|
26
|
+
`@deepseek-ai/dsh-settings` から `SettingsProvider` は削除され(宣言的 `SettingsForms`
|
|
27
|
+
に置換)、プラグインは legacy `ctx.settings.get(ns)` をホスト形状フォールバックとして
|
|
28
|
+
維持している。各 spec はベンダー copies した 0.1.5-rc.2 プロバイダー
|
|
29
|
+
(`tests/helpers/legacy-settings/`)をマウントしてこのフォールバックを検証する。実
|
|
30
|
+
DeepSeek ハーネスのテストは削除された自己完結 `llm-deepseek` プラグインの代わりに
|
|
31
|
+
0.1.7 アダプターシームで provider を登録する。
|
|
32
|
+
- 実ベースラインで露呈したテスト適応:compaction エンジンのフィクスチャは
|
|
33
|
+
`headroomTokens: 0` を渡す(0.1.7-rc.2 は既定で 65536 トークンの headroom を取り、
|
|
34
|
+
フィクスチャの 1k トークン窓を食い潰す);tool-result アセットのアサーションは
|
|
35
|
+
第一級 `role: 'tool'` メッセージ形状に追従。
|
|
36
|
+
- リリースゲートを公式 0.1.7 リリースに再ピン:`verify-release.mjs` とパック E2E は
|
|
37
|
+
selector peers `>=0.1.7-rc.1 <0.2.0-0` を、公式ハーネスクローンはタグ
|
|
38
|
+
`dsh-v0.1.7-rc.2`(commit `477b4f42`、tree `e3e63253`)をアサートする。
|
|
39
|
+
- `packages/selector/dsh.plugin.json` が初めてリリースバージョンを刻む(0.6.5;従来の
|
|
40
|
+
0.6.x はすべて 0.1.0 の凍結値)とともに、正直なエンジン範囲
|
|
41
|
+
`>=0.1.7-rc.1 <0.2.0-0` を宣言。
|
|
42
|
+
- 0.6.3 の手動適応で残った lint 負債を解消:`src/index.ts`・`src/client/index.ts`・
|
|
43
|
+
`src/pruner.ts` と 3 つのホスト spec の未使用インポート・変数の削除。
|
|
44
|
+
|
|
45
|
+
## 0.6.4 - 2026-09-26
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- クライアントのロケールバインダーを eager 化:ホストのロケール切替に設定 UI が
|
|
50
|
+
再マウントなしで追従する。
|
|
51
|
+
- このバージョンは stash から公開され、どのブランチにもコミットされなかった;
|
|
52
|
+
compat/0.1.7 は 0.6.5 でレジストリ tarball とバイト一致する内容を復元した。
|
|
53
|
+
|
|
54
|
+
>>>>>>> compat/0.1.7
|
|
5
55
|
## 0.5.4 - 2026-09-20
|
|
6
56
|
|
|
57
|
+
|
|
7
58
|
### Fixed(修正)
|
|
8
59
|
|
|
9
60
|
- インストール面が `@deepseek-ai/schemastery` を**ランタイム依存**として宣言するようになりました。
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -2,8 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
> 전체 히스토리(업스트림 0.1.0 이전 포함)는 [CHANGELOG.md](CHANGELOG.md)를 참고하세요. 이 파일은 포크의 추가 항목만 번역한 것입니다. · [English](CHANGELOG.md) · [中文](CHANGELOG.zh.md) · [日本語](CHANGELOG.ja.md)
|
|
4
4
|
|
|
5
|
+
<<<<<<< HEAD
|
|
6
|
+
## 0.7.0-beta.1 - 2026-09-27
|
|
7
|
+
|
|
8
|
+
### 추가
|
|
9
|
+
|
|
10
|
+
- 턴 말머리 인텐트 요약(`intentSummary.enabled`, 기본 꺼짐): 성장 게이트(라이브 표면이 창의 45% 초과, 마지막 폴드 대비 50K 토큰 초과 증가)를 통과하면 턴 경계 포스트플라이트가 "소비된 증분"을 의미론적 역할로 마스킹합니다——read 계열 도구 결과는 공유 `classifyToolSource()`(write 레이어 추가)를 통해 1줄 대상/규모 레코드로, write 계열은 스켈레톤 헤드와 축자적 오류 행을 유지——한 번의 요약 작성기 LLM 호출만 소비합니다(todolist 앵커, JSON 전용, fail-open). 폴드는 다음 압력 라운드에서 기존 plan/apply 메커니즘을 통해 후보별 `intent-summary` 블록으로 착지하며, 첫 블록이 요약·읽기 레코드·축자적 오류 행을, 나머지는 마스크 행과 seq 범위 출처 각주를 담습니다. fold-once: 접힌 seq(`INTENT_FOLD_MARKER` 포함 블록)는 다시 후보가 되지 않습니다. 감사에 `intent-summary-outcome`(보존율 및 요약 호출 비용 크레딧) 추가.
|
|
11
|
+
- `/ctx-summary off|on|status`: 세션 범위의 임시 비활성화/재개/상태 조회(설정은 세션 고정이므로 "임시"는 런타임 상태로만 가능). 프로세스와 함께 소멸하며 세션을 cross하지 않습니다.
|
|
12
|
+
=======
|
|
13
|
+
## 0.6.5 - 2026-09-29
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- 개발 의존성을 Harness 0.1.7 라인에 정렬: 48개 `@deepseek-ai/dsh-*` devDependencies 중
|
|
18
|
+
46개를 정확 핀 `0.1.5-rc.2`에서 `0.1.7-rc.2`로 옮기고 `pnpm-lock.yaml`을 클린 트리에서
|
|
19
|
+
재생성. typecheck·build·test·lint·`verify:release`가 이제 실제 0.1.7-rc.2 베이스라인에서
|
|
20
|
+
실행됩니다 (0.1.5 입력으로 0.1.7 적응을 검증하던 가짜 그린 해소). 0.1.7 라인 릴리스가
|
|
21
|
+
없는 2개 패키지는 설치 시 핀 값을 유지: `@deepseek-ai/dsh-agent-presets`
|
|
22
|
+
(`0.1.6-alpha.2`), `@deepseek-ai/dsh-code-runtime` (`0.1.5-rc.3`). `react-dom`에 명시적
|
|
23
|
+
`^18.2.0` devDependency를 추가해 새 해석이 React-DOM 19와 React 18을 섞지 않도록 함.
|
|
24
|
+
- 테스트 호스트의 settings 이음새를 실제 0.1.7 호스트에 맞춰 재구축:
|
|
25
|
+
`@deepseek-ai/dsh-settings`에서 `SettingsProvider`가 선언적 `SettingsForms`로 대체되었지만
|
|
26
|
+
플러그인은 legacy `ctx.settings.get(ns)` 폴백을 유지. 각 spec은 벤더링한 0.1.5-rc.2
|
|
27
|
+
프로바이더 복사본(`tests/helpers/legacy-settings/`)을 마운트해 이 폴백을 검증. 실제
|
|
28
|
+
DeepSeek 하니스 테스트는 제거된 자체 완결 `llm-deepseek` 플러그인 대신 0.1.7 어댑터
|
|
29
|
+
시임으로 provider를 등록.
|
|
30
|
+
- 실제 베이스라인이 드러낸 테스트 적응: compaction 엔진 픽스처에 `headroomTokens: 0`
|
|
31
|
+
전달 (0.1.7-rc.2는 기본 65536 토큰 headroom으로 픽스처의 1k 토큰 창을 잠식);
|
|
32
|
+
tool-result 자산 어설션은 일급 `role: 'tool'` 메시지 형태를 따름.
|
|
33
|
+
- 릴리스 게이트를 공식 0.1.7 릴리스에 재고정: `verify-release.mjs`와 팩 E2E는 selector
|
|
34
|
+
peers `>=0.1.7-rc.1 <0.2.0-0`를, 공식 하니스 클론은 태그 `dsh-v0.1.7-rc.2`
|
|
35
|
+
(commit `477b4f42`, tree `e3e63253`)를 단언.
|
|
36
|
+
- `packages/selector/dsh.plugin.json`이 처음으로 릴리스 버전을 새김 (0.6.5; 기존 0.6.x는
|
|
37
|
+
모두 0.1.0 동결값)과 함께 실제 엔진 범위 `>=0.1.7-rc.1 <0.2.0-0` 선언.
|
|
38
|
+
- 0.6.3 수동 적응에서 남은 lint 부채 해소: `src/index.ts`, `src/client/index.ts`,
|
|
39
|
+
`src/pruner.ts`와 3개 호스트 spec의 미사용 임포트·변수 제거.
|
|
40
|
+
|
|
41
|
+
## 0.6.4 - 2026-09-26
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
|
|
45
|
+
- 클라이언트 로케일 바인더를 eager로 전환: 호스트 로케일 변경 시 설정 UI가 리마운트 없이
|
|
46
|
+
따라갑니다.
|
|
47
|
+
- 이 버전은 stash에서 공개되어 어떤 브랜치에도 커밋되지 않았음; compat/0.1.7은 0.6.5에서
|
|
48
|
+
레지스트리 tarball과 바이트 단위로 일치하는 콘텐츠를 복원.
|
|
49
|
+
|
|
50
|
+
>>>>>>> compat/0.1.7
|
|
5
51
|
## 0.5.4 - 2026-09-20
|
|
6
52
|
|
|
53
|
+
|
|
7
54
|
### Fixed(수정)
|
|
8
55
|
|
|
9
56
|
- 설치 표면이 `@deepseek-ai/schemastery`를 **런타임 의존성**으로 선언합니다. 패키징된 런타임은 이를
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,78 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes use this file. The project follows semantic versioning after `0.1.0`.
|
|
4
4
|
|
|
5
|
+
<<<<<<< HEAD
|
|
6
|
+
## 0.7.0-beta.1 - 2026-09-27
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Turn-tail intent summary (`intentSummary.enabled`, default off): when the
|
|
11
|
+
growth gate passes (live surface > 45% of the context window AND more than
|
|
12
|
+
50K tokens grown since the last fold), the turn-boundary postflight masks
|
|
13
|
+
the consumed increment to semantic-role records — read-class tool results
|
|
14
|
+
become one-line target/scale records via the shared `classifyToolSource()`
|
|
15
|
+
classifier plus a write-class layer, write-class results keep skeleton
|
|
16
|
+
heads plus verbatim error lines — and spends ONE summary-writer LLM call
|
|
17
|
+
(todolist-anchored, JSON-only, fail-open). The staged fold lands on the
|
|
18
|
+
next pressure round through the ordinary plan/apply machinery as per-
|
|
19
|
+
candidate `intent-summary` blocks: the first carries the LLM summary
|
|
20
|
+
segment, consulted-record lines, and verbatim error lines; the rest carry
|
|
21
|
+
their mask line and a seq-range provenance footer. Fold-once: folded seqs
|
|
22
|
+
(and anything carrying the `INTENT_FOLD_MARKER`) are never re-candidated.
|
|
23
|
+
Rewrite audits carry `intent-summary-outcome` records with retention ratio
|
|
24
|
+
and summary-call credit accounting.
|
|
25
|
+
- `/ctx-summary off|on|status`: session-scoped temporary override for the
|
|
26
|
+
gate (settings are session-frozen, so "temporary" can only live in runtime
|
|
27
|
+
state); dies with the process, never crosses sessions, and reports the
|
|
28
|
+
override, observed settings flag, gate constants, and the last landed fold.
|
|
29
|
+
=======
|
|
30
|
+
## 0.6.5 - 2026-09-29
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Dev-dependency alignment to the Harness 0.1.7 line: 46 of the 48 `@deepseek-ai/dsh-*`
|
|
35
|
+
dev-dependencies moved from the precise `0.1.5-rc.2` pin to the precise `0.1.7-rc.2` pin,
|
|
36
|
+
and `pnpm-lock.yaml` was regenerated from a clean tree. Typecheck, build, test, lint, and
|
|
37
|
+
`verify:release` now run against the real 0.1.7-rc.2 baseline instead of validating the
|
|
38
|
+
0.1.7 adaptations against 0.1.5 inputs (a false green). Two packages have no 0.1.7-line
|
|
39
|
+
release at all and keep their install-time pinned values: `@deepseek-ai/dsh-agent-presets`
|
|
40
|
+
(`0.1.6-alpha.2`) and `@deepseek-ai/dsh-code-runtime` (`0.1.5-rc.3`). `react-dom` gained an
|
|
41
|
+
explicit `^18.2.0` dev-dependency so a fresh resolution cannot pair React-DOM 19 with
|
|
42
|
+
React 18 under the test suites.
|
|
43
|
+
- The test-host settings seam was rebuilt against the real 0.1.7 host: `SettingsProvider`
|
|
44
|
+
no longer exists in `@deepseek-ai/dsh-settings` (replaced by the declarative
|
|
45
|
+
`SettingsForms`), while the plugin keeps the legacy `ctx.settings.get(ns)` read as a
|
|
46
|
+
host-shape fallback. The specs now mount a vendored copy of the 0.1.5-rc.2 provider
|
|
47
|
+
(`tests/helpers/legacy-settings/`) to exercise exactly that fallback, and the
|
|
48
|
+
legacy-namespace registrar narrows the service at the seam. The live DeepSeek harness test
|
|
49
|
+
registers the provider through the 0.1.7 adapter seam instead of the removed
|
|
50
|
+
self-contained `llm-deepseek` plugin.
|
|
51
|
+
- Test adaptations surfaced by the real baseline: the compaction-engine fixtures pass
|
|
52
|
+
`headroomTokens: 0` (0.1.7-rc.2 defaults a 65536-token compaction headroom, which swallows
|
|
53
|
+
the fixtures' 1k-token probe windows), and the tool-result asset assertion follows the
|
|
54
|
+
first-class `role: 'tool'` message shape (no wrapping `tool-result` content block).
|
|
55
|
+
- Release gates re-pinned to the official 0.1.7 release: `verify-release.mjs` and the packed
|
|
56
|
+
E2E now assert selector peers `>=0.1.7-rc.1 <0.2.0-0`, and the packed E2E's official-harness
|
|
57
|
+
clone asserts tag `dsh-v0.1.7-rc.2` (commit `477b4f42`, tree `e3e63253`).
|
|
58
|
+
- `packages/selector/dsh.plugin.json` now carries the release version (0.6.5; every earlier
|
|
59
|
+
0.6.x shipped it frozen at 0.1.0) and declares the honest engine range
|
|
60
|
+
`>=0.1.7-rc.1 <0.2.0-0`.
|
|
61
|
+
- Lint debt from the 0.6.3 manual adaptations cleared: unused imports/locals removed in
|
|
62
|
+
`src/index.ts`, `src/client/index.ts`, `src/pruner.ts`, and three host specs; the
|
|
63
|
+
standing-generation staging-leftover scan now scopes to the spec's own store so a
|
|
64
|
+
concurrently publishing spec cannot fail it.
|
|
65
|
+
|
|
66
|
+
## 0.6.4 - 2026-09-26
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
|
|
70
|
+
- The client locale binder is eager: switching the host locale now re-renders the
|
|
71
|
+
compression settings UI without a remount.
|
|
72
|
+
- Released from a stash and never committed to any branch (the working tree that published it
|
|
73
|
+
was lost); compat/0.1.7 restored the exact content in 0.6.5 and byte-verified it against
|
|
74
|
+
the registry tarball before continuing.
|
|
75
|
+
>>>>>>> compat/0.1.7
|
|
76
|
+
|
|
5
77
|
## 0.5.4 - 2026-09-20
|
|
6
78
|
|
|
7
79
|
### Fixed
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -2,8 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
> 完整历史(含上游 0.1.0 及更早版本)见 [CHANGELOG.md](CHANGELOG.md)。本文件只翻译本 fork 的新增条目。 · [English](CHANGELOG.md) · [日本語](CHANGELOG.ja.md) · [한국어](CHANGELOG.ko.md)
|
|
4
4
|
|
|
5
|
+
<<<<<<< HEAD
|
|
6
|
+
## 0.7.0-beta.1 - 2026-09-27
|
|
7
|
+
|
|
8
|
+
### 新增
|
|
9
|
+
|
|
10
|
+
- 回合末意图摘要(`intentSummary.enabled`,默认关):增长门控通过(活跃表面 > 窗口 45% 且距上次折叠增长超 50K token)后,回合收尾阶段把"已消费增量"按语义角色 mask——读类工具结果经共享的 `classifyToolSource()`(另加 write 先行层)压缩为单行目标/规模记录,写类保留骨架头与逐字错误行——然后只花一次摘要写手 LLM 调用(todolist 锚定、JSON-only、fail-open)。折叠在下一压力回合经既有 plan/apply 机器落地为逐候选 `intent-summary` 块:首块携带 LLM 摘要段、读取记录行与逐字错误行,其余块携带各自 mask 行与 seq 区间溯源脚注。fold-once:已折叠 seq(及含 `INTENT_FOLD_MARKER` 的块)永不再进入候选。审计新增 `intent-summary-outcome` 记录,含保持率与摘要调用成本(credit 净额)。
|
|
11
|
+
- `/ctx-summary off|on|status`:会话作用域临时禁用/恢复/查看状态(settings 是 session-frozen,"临时"只能活在运行时状态);随进程消亡、不跨会话,status 报告覆盖、观测到的设置开关、门控常量与最近一次折叠。
|
|
12
|
+
=======
|
|
13
|
+
## 0.6.5 - 2026-09-29
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- 开发依赖对齐 Harness 0.1.7 线:48 项 `@deepseek-ai/dsh-*` 开发依赖中的 46 项由精确钉版
|
|
18
|
+
`0.1.5-rc.2` 换为精确钉版 `0.1.7-rc.2`,`pnpm-lock.yaml` 清树重新生成。typecheck、build、
|
|
19
|
+
test、lint、`verify:release` 从此跑在真实的 0.1.7-rc.2 基线上,而不是用 0.1.5 输入校验
|
|
20
|
+
0.1.7 适配(假绿)。两个包从未发布 0.1.7 线版本,保留其安装期钉值:
|
|
21
|
+
`@deepseek-ai/dsh-agent-presets`(`0.1.6-alpha.2`)与 `@deepseek-ai/dsh-code-runtime`
|
|
22
|
+
(`0.1.5-rc.3`)。`react-dom` 新增显式 `^18.2.0` 开发依赖,避免全新解析把 React-DOM 19
|
|
23
|
+
与 React 18 混装进测试套件。
|
|
24
|
+
- 测试宿主的 settings 接缝按真实 0.1.7 宿主重建:`@deepseek-ai/dsh-settings` 已删除
|
|
25
|
+
`SettingsProvider`(由声明式 `SettingsForms` 取代),而插件保留 legacy
|
|
26
|
+
`ctx.settings.get(ns)` 作为宿主形状回退。各 spec 现挂载 vendor 进仓的 0.1.5-rc.2 provider
|
|
27
|
+
原版副本(`tests/helpers/legacy-settings/`)来专门驱动这条回退路径,legacy 命名空间注册器
|
|
28
|
+
在接缝处收窄服务类型。真机 DeepSeek 套件改用 0.1.7 适配器接缝注册 provider,不再依赖已被
|
|
29
|
+
移除的 `llm-deepseek` 自包含插件。
|
|
30
|
+
- 真实基线暴露的测试适配:compaction 引擎夹具显式传 `headroomTokens: 0`(0.1.7-rc.2 默认
|
|
31
|
+
65536 token 的 compaction headroom 会吞掉夹具的 1k token 探针窗口);tool-result 资产断言
|
|
32
|
+
跟随一等 `role: 'tool'` 消息形状(不再有 `tool-result` 包裹内容块)。
|
|
33
|
+
- 发布门禁重新钉到官方 0.1.7 发布物:`verify-release.mjs` 与打包 E2E 断言 selector peers
|
|
34
|
+
`>=0.1.7-rc.1 <0.2.0-0`;打包 E2E 的官方 harness 克隆断言 tag `dsh-v0.1.7-rc.2`
|
|
35
|
+
(commit `477b4f42`、tree `e3e63253`)。
|
|
36
|
+
- `packages/selector/dsh.plugin.json` 首次携带发布版本(0.6.5;此前所有 0.6.x 都冻结在
|
|
37
|
+
0.1.0),并声明真实的引擎范围 `>=0.1.7-rc.1 <0.2.0-0`。
|
|
38
|
+
- 清掉 0.6.3 两次手工适配遗留的 lint 债务:`src/index.ts`、`src/client/index.ts`、
|
|
39
|
+
`src/pruner.ts` 与三个 host spec 的未用导入/变量;standing-generation 的 staging 残留扫描
|
|
40
|
+
收窄到本 spec 自己的 store,避免并发发布的 spec 打爆断言。
|
|
41
|
+
|
|
42
|
+
## 0.6.4 - 2026-09-26
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- 客户端 locale 绑定器改为 eager:切换宿主语言后压缩设置 UI 无需重挂载即跟随重渲染。
|
|
47
|
+
- 该版本从 stash 发布、未提交到任何分支(发布它的那棵工作树丢失);compat/0.1.7 在 0.6.5
|
|
48
|
+
中恢复了与其注册表 tarball 逐字节核验一致的完整内容。
|
|
49
|
+
|
|
50
|
+
>>>>>>> compat/0.1.7
|
|
5
51
|
## 0.5.4 - 2026-09-20
|
|
6
52
|
|
|
53
|
+
|
|
7
54
|
### Fixed
|
|
8
55
|
|
|
9
56
|
- 安装面现在把 `@deepseek-ai/schemastery` 声明为**运行时依赖**。打包后的运行时无条件导入它
|
package/README.ja.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
## インストール
|
|
49
49
|
|
|
50
|
-
ソースからビルドしてインストールします —— 本フォークは npm にも `dsh-context-compression-improved` として公開済みです(dist-tag `dsh-0.1.5`)。内部パッケージ名は意図的にアップストリームのままです:
|
|
50
|
+
ソースからビルドしてインストールします —— 本フォークは npm にも `dsh-context-compression-improved` として公開済みです(0.1.7 系は dist-tag `dsh-0.1.7`、0.1.5 系は `dsh-0.1.5`)。内部パッケージ名は意図的にアップストリームのままです:
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
@@ -74,7 +74,7 @@ pnpm verify:release
|
|
|
74
74
|
|
|
75
75
|
## 互換性
|
|
76
76
|
|
|
77
|
-
-
|
|
77
|
+
- 公式 DeepSeek Harness `dsh-v0.1.7-rc.2` リリースに対してビルド・テスト済み。peers は `>=0.1.7-rc.1 <0.2.0-0` を宣言し、公開されているプラグインおよびプロファイル API のみを使用します。それ以前の Harness 系はそれぞれの dist-tag(`dsh-0.1.5`、`dsh-0.1.2`)で提供を継続します。
|
|
78
78
|
- Node `^22.19.0 || >=24` と pnpm `11.7.0` が必要です。
|
|
79
79
|
- プラグインは Harness の公開拡張 API のみを使用し、Harness コアは改変しません。非公式のコミュニティプロジェクトであり、DeepSeek とは提携・承認関係にありません。
|
|
80
80
|
|
package/README.ko.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
## 설치
|
|
49
49
|
|
|
50
|
-
소스에서 빌드하여 설치합니다 —— 이 포크는 npm에도 `dsh-context-compression-improved`로 게시되어 있습니다(dist-tag `dsh-0.1.5`). 내부 패키지 이름은 의도적으로 업스트림과 동일하게 유지됩니다:
|
|
50
|
+
소스에서 빌드하여 설치합니다 —— 이 포크는 npm에도 `dsh-context-compression-improved`로 게시되어 있습니다(0.1.7 라인은 dist-tag `dsh-0.1.7`, 0.1.5 라인은 `dsh-0.1.5`). 내부 패키지 이름은 의도적으로 업스트림과 동일하게 유지됩니다:
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
@@ -74,7 +74,7 @@ pnpm verify:release
|
|
|
74
74
|
|
|
75
75
|
## 호환성
|
|
76
76
|
|
|
77
|
-
- 공개된 플러그인 및 프로파일 API만
|
|
77
|
+
- 공식 DeepSeek Harness `dsh-v0.1.7-rc.2` 릴리스 기준으로 빌드·테스트되었습니다. peers는 `>=0.1.7-rc.1 <0.2.0-0`를 선언하며 공개된 플러그인 및 프로파일 API만 사용합니다. 이전 Harness 라인은 각자의 dist-tag(`dsh-0.1.5`, `dsh-0.1.2`)로 계속 제공됩니다.
|
|
78
78
|
- Node `^22.19.0 || >=24`와 pnpm `11.7.0`이 필요합니다.
|
|
79
79
|
- 플러그인은 Harness의 공개 확장 API만 사용하며 Harness 코어를 수정하지 않습니다. 비공식 커뮤니티 프로젝트이며 DeepSeek과 제휴하거나 승인받지 않았습니다.
|
|
80
80
|
|
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
> [!NOTE]
|
|
8
8
|
> **What this fork adds on top of upstream 0.1.0:**
|
|
9
9
|
>
|
|
10
|
+
> - A **turn-tail intent summary** (`intentSummary.enabled`, default off): when the growth gate passes (>45% of the window, >50K tokens grown since the last fold), consumed-increment tool results are masked to semantic-role records (read-class → one-line target/scale records; write-class keep skeleton + verbatim error lines), one LLM writer call produces the summary segment, and the fold lands on the next pressure round as per-candidate blocks with seq provenance. Fold-once, fail-open, with retention-ratio and call-cost audits. Session-scoped `/ctx-summary off|on|status` pauses/resumes it without touching settings.
|
|
10
11
|
> - An orthogonal **code-skeleton compression gate** (`codeSkeleton.enabled`, default off): the first exposure of an oversized fresh source-code tool result can keep a skeleton of imports and declarations — bodies elided, error lines kept — before the regular reducers run.
|
|
11
12
|
> - A settings toggle for that gate in the same selector settings section, independent of every compression profile.
|
|
12
13
|
> - An ESLint baseline wired into CI, a `test:watch` TDD loop, and documentation in English, Simplified Chinese, Japanese, and Korean.
|
|
@@ -47,10 +48,12 @@ Choose a compression profile, set the Auto Compact trigger level, and toggle cod
|
|
|
47
48
|
|
|
48
49
|
## Install
|
|
49
50
|
|
|
50
|
-
**Recommended: install from npm.** One dist-tag per Harness line — `dsh-0.1.
|
|
51
|
+
**Recommended: install from npm.** One dist-tag per Harness line — `dsh-0.1.7` for the 0.1.7 line (this branch), `dsh-0.1.5` for the 0.1.5 line, `dsh-0.1.2` for the 0.1.2 line.
|
|
51
52
|
|
|
52
53
|
```sh
|
|
53
|
-
dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.
|
|
54
|
+
dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.7
|
|
55
|
+
# DSH 0.1.5 line:
|
|
56
|
+
# dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.5
|
|
54
57
|
# DSH 0.1.2 line:
|
|
55
58
|
# dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.2
|
|
56
59
|
dsh --profile web --dump-config
|
|
@@ -83,7 +86,7 @@ Contributions follow the upstream discipline: add the failing regression first,
|
|
|
83
86
|
|
|
84
87
|
## Compatibility
|
|
85
88
|
|
|
86
|
-
-
|
|
89
|
+
- Built and tested against the official DeepSeek Harness `dsh-v0.1.7-rc.2` release; peers declare `>=0.1.7-rc.1 <0.2.0-0` and the plugin uses public plugin and profile APIs only. Earlier lines remain served from their own dist-tags (`dsh-0.1.5`, `dsh-0.1.2`).
|
|
87
90
|
- Requires Node `^22.19.0 || >=24` and pnpm `11.7.0`.
|
|
88
91
|
- The plugin uses only public Harness extension APIs and does not modify Harness core code. Unofficial community project, not affiliated with or endorsed by DeepSeek.
|
|
89
92
|
|
package/README.zh.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
> [!NOTE]
|
|
8
8
|
> **本fork 在上游 0.1.0 之上新增:*
|
|
9
9
|
>
|
|
10
|
+
> - **回合末意图摘要**(`intentSummary.enabled`,默认关闭):增长门控通过(>窗口 45% 且距上次折叠增长 >50K token)后,把"已消费增量"按语义角色 mask——读类工具结果压成单行目标/规模记录,写类保留骨架与逐字错误行——一次 LLM 写手调用产出摘要段,下一压力回合落地为带 seq 溯源的逐候选块。fold-once、fail-open,审计含保持率与调用成本。会话内 `/ctx-summary off|on|status` 可临时暂停/恢复,不动设置。
|
|
10
11
|
> - 正交的**代码骨架压缩门**(`codeSkeleton.enabled`,默认关闭):超大源码类工具结果首次曝光时,可先保留导入与声明的骨架——省略函数体并保留错误行——再进入常规 reducer。
|
|
11
12
|
> - 同一选择器设置区内新增该门的开关,独立于所有压缩 Profile。
|
|
12
13
|
> - 接入 CI 的 ESLint 基线、`test:watch` TDD 环路,以及英/中日韩四语文档。
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
|
|
48
49
|
## 安装
|
|
49
50
|
|
|
50
|
-
从源码构建并安装 —— 本 fork 亦已发布到 npm,包名为 `dsh-context-compression-improved`(dist-tag `dsh-0.1.5`);内部包名有意保持与上游一致:
|
|
51
|
+
从源码构建并安装 —— 本 fork 亦已发布到 npm,包名为 `dsh-context-compression-improved`(0.1.7 线使用 dist-tag `dsh-0.1.7`,0.1.5 线使用 `dsh-0.1.5`);内部包名有意保持与上游一致:
|
|
51
52
|
|
|
52
53
|
```sh
|
|
53
54
|
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
@@ -74,7 +75,7 @@ pnpm verify:release
|
|
|
74
75
|
|
|
75
76
|
## 兼容性
|
|
76
77
|
|
|
77
|
-
-
|
|
78
|
+
- 基于官方 DeepSeek Harness `dsh-v0.1.7-rc.2` 发布版构建并测试;peers 声明 `>=0.1.7-rc.1 <0.2.0-0`,仅使用公开的插件与 Profile API。更早的 Harness 线由各自的 dist-tag(`dsh-0.1.5`、`dsh-0.1.2`)继续服务。
|
|
78
79
|
- 需要 Node `^22.19.0 || >=24` 与 pnpm `11.7.0`。
|
|
79
80
|
- 插件只使用 Harness 公开扩展 API,不修改 Harness 核心代码。非官方社区项目,与 DeepSeek 无隶属或背书关系。
|
|
80
81
|
|
package/eslint.config.js
CHANGED
|
@@ -1,30 +1,76 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import tseslint from 'typescript-eslint'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import tseslint from 'typescript-eslint'
|
|
4
|
+
|
|
5
|
+
const noUnusedVars = ['error', {
|
|
6
|
+
argsIgnorePattern: '^_',
|
|
7
|
+
varsIgnorePattern: '^_',
|
|
8
|
+
caughtErrorsIgnorePattern: '^_',
|
|
9
|
+
destructuredArrayIgnorePattern: '^_',
|
|
10
|
+
}]
|
|
11
|
+
|
|
12
|
+
// Gate scripts and test hosts legitimately traffic in `any` (JSON payloads,
|
|
13
|
+
// untyped Harness service bridges); the unsafe-family noise there would drown
|
|
14
|
+
// the signal, so they are scoped out while every other type-checked rule stays.
|
|
15
|
+
const noUnsafeFamily = Object.fromEntries(
|
|
16
|
+
[
|
|
17
|
+
'no-unsafe-argument',
|
|
18
|
+
'no-unsafe-assignment',
|
|
19
|
+
'no-unsafe-call',
|
|
20
|
+
'no-unsafe-member-access',
|
|
21
|
+
'no-unsafe-return',
|
|
22
|
+
].map(rule => [`@typescript-eslint/${rule}`, 'off']),
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
export default tseslint.config(
|
|
26
|
+
{
|
|
27
|
+
ignores: [
|
|
28
|
+
'**/node_modules/**', '**/lib/**', '**/dist/**', '**/coverage/**',
|
|
29
|
+
'docs/**', 'scripts-dist/**',
|
|
30
|
+
// Vendored 0.1.5-era helper shipped as plain JS; it has no tsconfig
|
|
31
|
+
// project, so type-checked rules cannot run on it.
|
|
32
|
+
'packages/selector/tests/helpers/legacy-settings/**',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
js.configs.recommended,
|
|
36
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
37
|
+
{
|
|
38
|
+
// First-party TypeScript: full type-checked strength. Everything linted
|
|
39
|
+
// here is included in tsconfig.tests.json (the only root-level project).
|
|
40
|
+
files: ['packages/**/*.ts', 'packages/**/*.tsx', 'vitest.config.ts', 'vitest.built.config.ts'],
|
|
41
|
+
languageOptions: {
|
|
42
|
+
globals: { ...globals.browser, ...globals.node },
|
|
43
|
+
parserOptions: {
|
|
44
|
+
project: ['tsconfig.tests.json'],
|
|
45
|
+
tsconfigRootDir: import.meta.dirname,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
rules: { '@typescript-eslint/no-unused-vars': noUnusedVars },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
// Spec files implement mock async methods purely to satisfy typed host
|
|
52
|
+
// interfaces; requiring an await inside every one of them is noise.
|
|
53
|
+
files: ['packages/selector/tests/**'],
|
|
54
|
+
rules: { '@typescript-eslint/require-await': 'off', ...noUnsafeFamily },
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
// Standalone .mjs gate scripts live outside every tsconfig; the default
|
|
58
|
+
// project gives type-checked rules a loose type surface to work with.
|
|
59
|
+
files: ['scripts/**/*.{js,mjs}', 'eslint.config.js'],
|
|
60
|
+
languageOptions: {
|
|
61
|
+
globals: { ...globals.browser, ...globals.node },
|
|
62
|
+
parserOptions: {
|
|
63
|
+
projectService: {
|
|
64
|
+
allowDefaultProject: ['eslint.config.js', 'scripts/*.mjs'],
|
|
65
|
+
},
|
|
66
|
+
tsconfigRootDir: import.meta.dirname,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
rules: { '@typescript-eslint/no-unused-vars': noUnusedVars, ...noUnsafeFamily },
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
// Terminal normalization intentionally matches ANSI/BEL control characters.
|
|
73
|
+
files: ['packages/selector/src/runtime/reducers.ts'],
|
|
74
|
+
rules: { 'no-control-regex': 'off' },
|
|
75
|
+
},
|
|
76
|
+
)
|