dsh-context-compression-improved 0.6.3 → 0.6.5

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.
Files changed (40) hide show
  1. package/.agents-stash-064.patch +39 -0
  2. package/CHANGELOG.ja.md +42 -0
  3. package/CHANGELOG.ko.md +38 -0
  4. package/CHANGELOG.md +46 -0
  5. package/CHANGELOG.zh.md +38 -0
  6. package/README.ja.md +2 -2
  7. package/README.ko.md +2 -2
  8. package/README.md +5 -3
  9. package/README.zh.md +2 -2
  10. package/_dsh_devdeps.json +50 -0
  11. package/_verify064/package/package.json +162 -0
  12. package/_verify064/package/packages/selector/src/client/index.ts +232 -0
  13. package/package.json +50 -49
  14. package/packages/selector/dsh.plugin.json +16 -16
  15. package/packages/selector/lib/client.js +2 -1
  16. package/packages/selector/lib/style.css +46 -46
  17. package/packages/selector/package.json +114 -114
  18. package/packages/selector/src/client/index.ts +213 -225
  19. package/packages/selector/src/client/scope-face.ts +24 -24
  20. package/packages/selector/src/index.ts +0 -1
  21. package/packages/selector/src/pruner.ts +0 -1
  22. package/packages/selector/tests/custom-contract.client.spec.ts +222 -222
  23. package/packages/selector/tests/helpers/legacy-namespace.ts +8 -4
  24. package/packages/selector/tests/helpers/legacy-settings/index.ts +15 -0
  25. package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +41 -0
  26. package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +647 -0
  27. package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +78 -0
  28. package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +234 -0
  29. package/packages/selector/tests/host-preset-overlay.host.spec.ts +3 -5
  30. package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +200 -206
  31. package/packages/selector/tests/public/package-contract.client.spec.ts +78 -78
  32. package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +230 -233
  33. package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2731 -2727
  34. package/packages/selector/tests/settings-seat.client.spec.ts +165 -165
  35. package/packages/selector/tests/standing-generation.host.spec.ts +724 -704
  36. package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +18 -2
  37. package/packages/selector/tests/support/ui-primitives.tsx +34 -34
  38. package/pnpm-workspace.yaml +1 -1
  39. package/scripts/packed-install-e2e.mjs +6 -6
  40. package/scripts/verify-release.mjs +1 -1
@@ -0,0 +1,39 @@
1
+ diff --git a/package.json b/package.json
2
+ index 29b362c..f90c24b 100755
3
+ --- a/package.json
4
+ +++ b/package.json
5
+ @@ -1,6 +1,6 @@
6
+ {
7
+ "name": "dsh-context-compression-improved",
8
+ - "version": "0.6.3",
9
+ + "version": "0.6.4",
10
+ "publishConfig": {
11
+ "tag": "dsh-0.1.7"
12
+ },
13
+ diff --git a/packages/selector/src/client/index.ts b/packages/selector/src/client/index.ts
14
+ index 2e0fde0..4b6819f 100755
15
+ --- a/packages/selector/src/client/index.ts
16
+ +++ b/packages/selector/src/client/index.ts
17
+ @@ -88,6 +88,13 @@ function sameCustomPolicy(
18
+
19
+ export function apply(ctx: ClientContext): void {
20
+ ctx.locale.register(NS, { zh, en })
21
+ + // Section label translator, captured EAGERLY: the settings shell evaluates
22
+ + // `label()` during its own render; a lazy ctx.locale accessor inside the
23
+ + // thunk would throw there if `locale` ever left this module's inject list
24
+ + // (the search-index 0.5.3 family-tab incident). bind() returns a live
25
+ + // binder, so locale switches are still followed.
26
+ + const localeSvc = ctx.locale as { bind?: (n: string) => (key: string) => string } | undefined
27
+ + const tNav = localeSvc?.bind?.(NS) ?? ((key: string) => key)
28
+ const injected = (): CompressionSelectorInjected => {
29
+ // 0.1.7: the compression document rides the selector row's entry config as
30
+ // the volatile `settings` field. The form handle is fetched per factory
31
+ @@ -210,7 +217,7 @@ export function apply(ctx: ClientContext): void {
32
+ name: 'settings.section',
33
+ id: 'context-compression',
34
+ order: 17,
35
+ - label: () => ctx.locale.bind(NS)('nav'),
36
+ + label: () => tNav('nav'),
37
+ locale: NS,
38
+ inject: injected,
39
+ }, ContextCompressionSettingsSection))
package/CHANGELOG.ja.md CHANGED
@@ -2,8 +2,50 @@
2
2
 
3
3
  > 完全な履歴(アップストリーム 0.1.0 以前を含む)は [CHANGELOG.md](CHANGELOG.md) を参照。このファイルはフォークの追加エントリーのみを翻訳したものです。 · [English](CHANGELOG.md) · [中文](CHANGELOG.zh.md) · [한국어](CHANGELOG.ko.md)
4
4
 
5
+ ## 0.6.5 - 2026-09-29
6
+
7
+ ### Fixed
8
+
9
+ - 開発依存を Harness 0.1.7 系に整合:48 個の `@deepseek-ai/dsh-*` devDependencies のうち
10
+ 46 個を厳密ピン `0.1.5-rc.2` から `0.1.7-rc.2` へ移し、`pnpm-lock.yaml` をクリーンな
11
+ ツリーから再生成。typecheck・build・test・lint・`verify:release` が 0.1.5 の入力で
12
+ 0.1.7 適応を検証する偽の緑ではなく、実際の 0.1.7-rc.2 ベースラインで走るようになった。
13
+ 0.1.7 系のリリースが存在しない 2 パッケージはインストール時のピンを維持:
14
+ `@deepseek-ai/dsh-agent-presets`(`0.1.6-alpha.2`)と `@deepseek-ai/dsh-code-runtime`
15
+ (`0.1.5-rc.3`)。`react-dom` に明示的な `^18.2.0` devDependency を追加し、新規解決で
16
+ React-DOM 19 と React 18 が混在しないようにした。
17
+ - テストホストの settings シームを実際の 0.1.7 ホストに合わせて再構築:
18
+ `@deepseek-ai/dsh-settings` から `SettingsProvider` は削除され(宣言的 `SettingsForms`
19
+ に置換)、プラグインは legacy `ctx.settings.get(ns)` をホスト形状フォールバックとして
20
+ 維持している。各 spec はベンダー copies した 0.1.5-rc.2 プロバイダー
21
+ (`tests/helpers/legacy-settings/`)をマウントしてこのフォールバックを検証する。実
22
+ DeepSeek ハーネスのテストは削除された自己完結 `llm-deepseek` プラグインの代わりに
23
+ 0.1.7 アダプターシームで provider を登録する。
24
+ - 実ベースラインで露呈したテスト適応:compaction エンジンのフィクスチャは
25
+ `headroomTokens: 0` を渡す(0.1.7-rc.2 は既定で 65536 トークンの headroom を取り、
26
+ フィクスチャの 1k トークン窓を食い潰す);tool-result アセットのアサーションは
27
+ 第一級 `role: 'tool'` メッセージ形状に追従。
28
+ - リリースゲートを公式 0.1.7 リリースに再ピン:`verify-release.mjs` とパック E2E は
29
+ selector peers `>=0.1.7-rc.1 <0.2.0-0` を、公式ハーネスクローンはタグ
30
+ `dsh-v0.1.7-rc.2`(commit `477b4f42`、tree `e3e63253`)をアサートする。
31
+ - `packages/selector/dsh.plugin.json` が初めてリリースバージョンを刻む(0.6.5;従来の
32
+ 0.6.x はすべて 0.1.0 の凍結値)とともに、正直なエンジン範囲
33
+ `>=0.1.7-rc.1 <0.2.0-0` を宣言。
34
+ - 0.6.3 の手動適応で残った lint 負債を解消:`src/index.ts`・`src/client/index.ts`・
35
+ `src/pruner.ts` と 3 つのホスト spec の未使用インポート・変数の削除。
36
+
37
+ ## 0.6.4 - 2026-09-26
38
+
39
+ ### Fixed
40
+
41
+ - クライアントのロケールバインダーを eager 化:ホストのロケール切替に設定 UI が
42
+ 再マウントなしで追従する。
43
+ - このバージョンは stash から公開され、どのブランチにもコミットされなかった;
44
+ compat/0.1.7 は 0.6.5 でレジストリ tarball とバイト一致する内容を復元した。
45
+
5
46
  ## 0.5.4 - 2026-09-20
6
47
 
48
+
7
49
  ### Fixed(修正)
8
50
 
9
51
  - インストール面が `@deepseek-ai/schemastery` を**ランタイム依存**として宣言するようになりました。
package/CHANGELOG.ko.md CHANGED
@@ -2,8 +2,46 @@
2
2
 
3
3
  > 전체 히스토리(업스트림 0.1.0 이전 포함)는 [CHANGELOG.md](CHANGELOG.md)를 참고하세요. 이 파일은 포크의 추가 항목만 번역한 것입니다. · [English](CHANGELOG.md) · [中文](CHANGELOG.zh.md) · [日本語](CHANGELOG.ja.md)
4
4
 
5
+ ## 0.6.5 - 2026-09-29
6
+
7
+ ### Fixed
8
+
9
+ - 개발 의존성을 Harness 0.1.7 라인에 정렬: 48개 `@deepseek-ai/dsh-*` devDependencies 중
10
+ 46개를 정확 핀 `0.1.5-rc.2`에서 `0.1.7-rc.2`로 옮기고 `pnpm-lock.yaml`을 클린 트리에서
11
+ 재생성. typecheck·build·test·lint·`verify:release`가 이제 실제 0.1.7-rc.2 베이스라인에서
12
+ 실행됩니다 (0.1.5 입력으로 0.1.7 적응을 검증하던 가짜 그린 해소). 0.1.7 라인 릴리스가
13
+ 없는 2개 패키지는 설치 시 핀 값을 유지: `@deepseek-ai/dsh-agent-presets`
14
+ (`0.1.6-alpha.2`), `@deepseek-ai/dsh-code-runtime` (`0.1.5-rc.3`). `react-dom`에 명시적
15
+ `^18.2.0` devDependency를 추가해 새 해석이 React-DOM 19와 React 18을 섞지 않도록 함.
16
+ - 테스트 호스트의 settings 이음새를 실제 0.1.7 호스트에 맞춰 재구축:
17
+ `@deepseek-ai/dsh-settings`에서 `SettingsProvider`가 선언적 `SettingsForms`로 대체되었지만
18
+ 플러그인은 legacy `ctx.settings.get(ns)` 폴백을 유지. 각 spec은 벤더링한 0.1.5-rc.2
19
+ 프로바이더 복사본(`tests/helpers/legacy-settings/`)을 마운트해 이 폴백을 검증. 실제
20
+ DeepSeek 하니스 테스트는 제거된 자체 완결 `llm-deepseek` 플러그인 대신 0.1.7 어댑터
21
+ 시임으로 provider를 등록.
22
+ - 실제 베이스라인이 드러낸 테스트 적응: compaction 엔진 픽스처에 `headroomTokens: 0`
23
+ 전달 (0.1.7-rc.2는 기본 65536 토큰 headroom으로 픽스처의 1k 토큰 창을 잠식);
24
+ tool-result 자산 어설션은 일급 `role: 'tool'` 메시지 형태를 따름.
25
+ - 릴리스 게이트를 공식 0.1.7 릴리스에 재고정: `verify-release.mjs`와 팩 E2E는 selector
26
+ peers `>=0.1.7-rc.1 <0.2.0-0`를, 공식 하니스 클론은 태그 `dsh-v0.1.7-rc.2`
27
+ (commit `477b4f42`, tree `e3e63253`)를 단언.
28
+ - `packages/selector/dsh.plugin.json`이 처음으로 릴리스 버전을 새김 (0.6.5; 기존 0.6.x는
29
+ 모두 0.1.0 동결값)과 함께 실제 엔진 범위 `>=0.1.7-rc.1 <0.2.0-0` 선언.
30
+ - 0.6.3 수동 적응에서 남은 lint 부채 해소: `src/index.ts`, `src/client/index.ts`,
31
+ `src/pruner.ts`와 3개 호스트 spec의 미사용 임포트·변수 제거.
32
+
33
+ ## 0.6.4 - 2026-09-26
34
+
35
+ ### Fixed
36
+
37
+ - 클라이언트 로케일 바인더를 eager로 전환: 호스트 로케일 변경 시 설정 UI가 리마운트 없이
38
+ 따라갑니다.
39
+ - 이 버전은 stash에서 공개되어 어떤 브랜치에도 커밋되지 않았음; compat/0.1.7은 0.6.5에서
40
+ 레지스트리 tarball과 바이트 단위로 일치하는 콘텐츠를 복원.
41
+
5
42
  ## 0.5.4 - 2026-09-20
6
43
 
44
+
7
45
  ### Fixed(수정)
8
46
 
9
47
  - 설치 표면이 `@deepseek-ai/schemastery`를 **런타임 의존성**으로 선언합니다. 패키징된 런타임은 이를
package/CHANGELOG.md CHANGED
@@ -2,6 +2,52 @@
2
2
 
3
3
  All notable changes use this file. The project follows semantic versioning after `0.1.0`.
4
4
 
5
+ ## 0.6.5 - 2026-09-29
6
+
7
+ ### Fixed
8
+
9
+ - Dev-dependency alignment to the Harness 0.1.7 line: 46 of the 48 `@deepseek-ai/dsh-*`
10
+ dev-dependencies moved from the precise `0.1.5-rc.2` pin to the precise `0.1.7-rc.2` pin,
11
+ and `pnpm-lock.yaml` was regenerated from a clean tree. Typecheck, build, test, lint, and
12
+ `verify:release` now run against the real 0.1.7-rc.2 baseline instead of validating the
13
+ 0.1.7 adaptations against 0.1.5 inputs (a false green). Two packages have no 0.1.7-line
14
+ release at all and keep their install-time pinned values: `@deepseek-ai/dsh-agent-presets`
15
+ (`0.1.6-alpha.2`) and `@deepseek-ai/dsh-code-runtime` (`0.1.5-rc.3`). `react-dom` gained an
16
+ explicit `^18.2.0` dev-dependency so a fresh resolution cannot pair React-DOM 19 with
17
+ React 18 under the test suites.
18
+ - The test-host settings seam was rebuilt against the real 0.1.7 host: `SettingsProvider`
19
+ no longer exists in `@deepseek-ai/dsh-settings` (replaced by the declarative
20
+ `SettingsForms`), while the plugin keeps the legacy `ctx.settings.get(ns)` read as a
21
+ host-shape fallback. The specs now mount a vendored copy of the 0.1.5-rc.2 provider
22
+ (`tests/helpers/legacy-settings/`) to exercise exactly that fallback, and the
23
+ legacy-namespace registrar narrows the service at the seam. The live DeepSeek harness test
24
+ registers the provider through the 0.1.7 adapter seam instead of the removed
25
+ self-contained `llm-deepseek` plugin.
26
+ - Test adaptations surfaced by the real baseline: the compaction-engine fixtures pass
27
+ `headroomTokens: 0` (0.1.7-rc.2 defaults a 65536-token compaction headroom, which swallows
28
+ the fixtures' 1k-token probe windows), and the tool-result asset assertion follows the
29
+ first-class `role: 'tool'` message shape (no wrapping `tool-result` content block).
30
+ - Release gates re-pinned to the official 0.1.7 release: `verify-release.mjs` and the packed
31
+ E2E now assert selector peers `>=0.1.7-rc.1 <0.2.0-0`, and the packed E2E's official-harness
32
+ clone asserts tag `dsh-v0.1.7-rc.2` (commit `477b4f42`, tree `e3e63253`).
33
+ - `packages/selector/dsh.plugin.json` now carries the release version (0.6.5; every earlier
34
+ 0.6.x shipped it frozen at 0.1.0) and declares the honest engine range
35
+ `>=0.1.7-rc.1 <0.2.0-0`.
36
+ - Lint debt from the 0.6.3 manual adaptations cleared: unused imports/locals removed in
37
+ `src/index.ts`, `src/client/index.ts`, `src/pruner.ts`, and three host specs; the
38
+ standing-generation staging-leftover scan now scopes to the spec's own store so a
39
+ concurrently publishing spec cannot fail it.
40
+
41
+ ## 0.6.4 - 2026-09-26
42
+
43
+ ### Fixed
44
+
45
+ - The client locale binder is eager: switching the host locale now re-renders the
46
+ compression settings UI without a remount.
47
+ - Released from a stash and never committed to any branch (the working tree that published it
48
+ was lost); compat/0.1.7 restored the exact content in 0.6.5 and byte-verified it against
49
+ the registry tarball before continuing.
50
+
5
51
  ## 0.5.4 - 2026-09-20
6
52
 
7
53
  ### Fixed
package/CHANGELOG.zh.md CHANGED
@@ -2,8 +2,46 @@
2
2
 
3
3
  > 完整历史(含上游 0.1.0 及更早版本)见 [CHANGELOG.md](CHANGELOG.md)。本文件只翻译本 fork 的新增条目。 · [English](CHANGELOG.md) · [日本語](CHANGELOG.ja.md) · [한국어](CHANGELOG.ko.md)
4
4
 
5
+ ## 0.6.5 - 2026-09-29
6
+
7
+ ### Fixed
8
+
9
+ - 开发依赖对齐 Harness 0.1.7 线:48 项 `@deepseek-ai/dsh-*` 开发依赖中的 46 项由精确钉版
10
+ `0.1.5-rc.2` 换为精确钉版 `0.1.7-rc.2`,`pnpm-lock.yaml` 清树重新生成。typecheck、build、
11
+ test、lint、`verify:release` 从此跑在真实的 0.1.7-rc.2 基线上,而不是用 0.1.5 输入校验
12
+ 0.1.7 适配(假绿)。两个包从未发布 0.1.7 线版本,保留其安装期钉值:
13
+ `@deepseek-ai/dsh-agent-presets`(`0.1.6-alpha.2`)与 `@deepseek-ai/dsh-code-runtime`
14
+ (`0.1.5-rc.3`)。`react-dom` 新增显式 `^18.2.0` 开发依赖,避免全新解析把 React-DOM 19
15
+ 与 React 18 混装进测试套件。
16
+ - 测试宿主的 settings 接缝按真实 0.1.7 宿主重建:`@deepseek-ai/dsh-settings` 已删除
17
+ `SettingsProvider`(由声明式 `SettingsForms` 取代),而插件保留 legacy
18
+ `ctx.settings.get(ns)` 作为宿主形状回退。各 spec 现挂载 vendor 进仓的 0.1.5-rc.2 provider
19
+ 原版副本(`tests/helpers/legacy-settings/`)来专门驱动这条回退路径,legacy 命名空间注册器
20
+ 在接缝处收窄服务类型。真机 DeepSeek 套件改用 0.1.7 适配器接缝注册 provider,不再依赖已被
21
+ 移除的 `llm-deepseek` 自包含插件。
22
+ - 真实基线暴露的测试适配:compaction 引擎夹具显式传 `headroomTokens: 0`(0.1.7-rc.2 默认
23
+ 65536 token 的 compaction headroom 会吞掉夹具的 1k token 探针窗口);tool-result 资产断言
24
+ 跟随一等 `role: 'tool'` 消息形状(不再有 `tool-result` 包裹内容块)。
25
+ - 发布门禁重新钉到官方 0.1.7 发布物:`verify-release.mjs` 与打包 E2E 断言 selector peers
26
+ `>=0.1.7-rc.1 <0.2.0-0`;打包 E2E 的官方 harness 克隆断言 tag `dsh-v0.1.7-rc.2`
27
+ (commit `477b4f42`、tree `e3e63253`)。
28
+ - `packages/selector/dsh.plugin.json` 首次携带发布版本(0.6.5;此前所有 0.6.x 都冻结在
29
+ 0.1.0),并声明真实的引擎范围 `>=0.1.7-rc.1 <0.2.0-0`。
30
+ - 清掉 0.6.3 两次手工适配遗留的 lint 债务:`src/index.ts`、`src/client/index.ts`、
31
+ `src/pruner.ts` 与三个 host spec 的未用导入/变量;standing-generation 的 staging 残留扫描
32
+ 收窄到本 spec 自己的 store,避免并发发布的 spec 打爆断言。
33
+
34
+ ## 0.6.4 - 2026-09-26
35
+
36
+ ### Fixed
37
+
38
+ - 客户端 locale 绑定器改为 eager:切换宿主语言后压缩设置 UI 无需重挂载即跟随重渲染。
39
+ - 该版本从 stash 发布、未提交到任何分支(发布它的那棵工作树丢失);compat/0.1.7 在 0.6.5
40
+ 中恢复了与其注册表 tarball 逐字节核验一致的完整内容。
41
+
5
42
  ## 0.5.4 - 2026-09-20
6
43
 
44
+
7
45
  ### Fixed
8
46
 
9
47
  - 安装面现在把 `@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
- - 公開されているプラグインおよびプロファイル API のみを使用し、DeepSeek Harness `dsh-v0.1.1-rc.2` に対して検証済み。公式 `dsh-v0.1.2-alpha.5` リリースと互換。
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만 사용하여 DeepSeek Harness `dsh-v0.1.1-rc.2`에서 검증되었으며, 공식 `dsh-v0.1.2-alpha.5` 릴리스와 호환됩니다.
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
@@ -47,10 +47,12 @@ Choose a compression profile, set the Auto Compact trigger level, and toggle cod
47
47
 
48
48
  ## Install
49
49
 
50
- **Recommended: install from npm.** One dist-tag per Harness line — `dsh-0.1.5` for the 0.1.5 line (this branch), `dsh-0.1.2` for the 0.1.2 line.
50
+ **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
51
 
52
52
  ```sh
53
- dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.5
53
+ dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.7
54
+ # DSH 0.1.5 line:
55
+ # dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.5
54
56
  # DSH 0.1.2 line:
55
57
  # dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.2
56
58
  dsh --profile web --dump-config
@@ -83,7 +85,7 @@ Contributions follow the upstream discipline: add the failing regression first,
83
85
 
84
86
  ## Compatibility
85
87
 
86
- - Verified against DeepSeek Harness `dsh-v0.1.1-rc.2` using public plugin and profile APIs only; compatible with the official `dsh-v0.1.2-alpha.5` release.
88
+ - 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
89
  - Requires Node `^22.19.0 || >=24` and pnpm `11.7.0`.
88
90
  - 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
91
 
package/README.zh.md CHANGED
@@ -47,7 +47,7 @@
47
47
 
48
48
  ## 安装
49
49
 
50
- 从源码构建并安装 —— 本 fork 亦已发布到 npm,包名为 `dsh-context-compression-improved`(dist-tag `dsh-0.1.5`);内部包名有意保持与上游一致:
50
+ 从源码构建并安装 —— 本 fork 亦已发布到 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
- - 仅使用公开的插件与 Profile API,针对 DeepSeek Harness `dsh-v0.1.1-rc.2` 验证;兼容官方 `dsh-v0.1.2-alpha.5` 版本。
77
+ - 基于官方 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
78
  - 需要 Node `^22.19.0 || >=24` 与 pnpm `11.7.0`。
79
79
  - 插件只使用 Harness 公开扩展 API,不修改 Harness 核心代码。非官方社区项目,与 DeepSeek 无隶属或背书关系。
80
80
 
@@ -0,0 +1,50 @@
1
+ [
2
+ "@deepseek-ai/dsh-agent",
3
+ "@deepseek-ai/dsh-agent-loop",
4
+ "@deepseek-ai/dsh-agent-loop-testkit",
5
+ "@deepseek-ai/dsh-agent-presets",
6
+ "@deepseek-ai/dsh-anonymous-user-id",
7
+ "@deepseek-ai/dsh-api-remotes",
8
+ "@deepseek-ai/dsh-api-session-controller",
9
+ "@deepseek-ai/dsh-atomic-write",
10
+ "@deepseek-ai/dsh-attachment",
11
+ "@deepseek-ai/dsh-client-locale",
12
+ "@deepseek-ai/dsh-client-store",
13
+ "@deepseek-ai/dsh-client-ui-primitives",
14
+ "@deepseek-ai/dsh-client-ui-session",
15
+ "@deepseek-ai/dsh-client-ui-settings",
16
+ "@deepseek-ai/dsh-client-ui-slots",
17
+ "@deepseek-ai/dsh-client-ui-workspace",
18
+ "@deepseek-ai/dsh-code-runtime",
19
+ "@deepseek-ai/dsh-command-compact",
20
+ "@deepseek-ai/dsh-commands",
21
+ "@deepseek-ai/dsh-compaction",
22
+ "@deepseek-ai/dsh-compaction-basic",
23
+ "@deepseek-ai/dsh-cordis-host-runner",
24
+ "@deepseek-ai/dsh-credentials",
25
+ "@deepseek-ai/dsh-goal",
26
+ "@deepseek-ai/dsh-home-paths",
27
+ "@deepseek-ai/dsh-host-plugin-inventory",
28
+ "@deepseek-ai/dsh-invariants",
29
+ "@deepseek-ai/dsh-jobs",
30
+ "@deepseek-ai/dsh-launch-environment",
31
+ "@deepseek-ai/dsh-llm",
32
+ "@deepseek-ai/dsh-llm-deepseek",
33
+ "@deepseek-ai/dsh-llm-retry",
34
+ "@deepseek-ai/dsh-message-feedback",
35
+ "@deepseek-ai/dsh-sandbox",
36
+ "@deepseek-ai/dsh-scope",
37
+ "@deepseek-ai/dsh-session",
38
+ "@deepseek-ai/dsh-session-persistence",
39
+ "@deepseek-ai/dsh-session-projection",
40
+ "@deepseek-ai/dsh-settings",
41
+ "@deepseek-ai/dsh-subagent",
42
+ "@deepseek-ai/dsh-subagent-fork-in-process",
43
+ "@deepseek-ai/dsh-subagent-in-process-driver",
44
+ "@deepseek-ai/dsh-subagent-spawn-in-process",
45
+ "@deepseek-ai/dsh-system-prompt",
46
+ "@deepseek-ai/dsh-token-meter",
47
+ "@deepseek-ai/dsh-tools",
48
+ "@deepseek-ai/dsh-user-approval",
49
+ "@deepseek-ai/dsh-user-questions"
50
+ ]
@@ -0,0 +1,162 @@
1
+ {
2
+ "name": "dsh-context-compression-improved",
3
+ "version": "0.6.4",
4
+ "publishConfig": {
5
+ "tag": "dsh-0.1.7"
6
+ },
7
+ "type": "module",
8
+ "main": "packages/selector/lib/index.js",
9
+ "types": "packages/selector/lib/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./packages/selector/lib/index.d.ts",
13
+ "default": "./packages/selector/lib/index.js"
14
+ },
15
+ "./invariant": {
16
+ "types": "./packages/selector/lib/invariant.d.ts",
17
+ "default": "./packages/selector/lib/invariant.js"
18
+ },
19
+ "./pruner": {
20
+ "types": "./packages/selector/lib/pruner.d.ts",
21
+ "default": "./packages/selector/lib/pruner.js"
22
+ },
23
+ "./client": {
24
+ "types": "./packages/selector/lib/client.d.ts",
25
+ "default": "./packages/selector/lib/client.js"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "dependencies": {
30
+ "@deepseek-ai/schemastery": "3.18.4",
31
+ "@huggingface/tokenizers": "0.1.3",
32
+ "js-yaml": "^4.3.2"
33
+ },
34
+ "dsh": {
35
+ "client": {
36
+ "inject": [
37
+ "@deepseek-ai/dsh-client-locale",
38
+ "@deepseek-ai/dsh-client-ui-primitives",
39
+ "@deepseek-ai/dsh-client-ui-slots",
40
+ "@deepseek-ai/dsh-client-ui-settings"
41
+ ],
42
+ "platform": "web"
43
+ },
44
+ "bundle": {
45
+ "patch": "./packages/selector/cordis.patch.yml"
46
+ }
47
+ },
48
+ "license": "MIT",
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/drscrewdriver/dsh-context-compression-improved.git"
52
+ },
53
+ "packageManager": "pnpm@11.7.0",
54
+ "engines": {
55
+ "node": "^22.19.0 || >=24.0.0",
56
+ "dsh": ">=0.1.7-rc.1 <0.1.8-0"
57
+ },
58
+ "scripts": {
59
+ "build": "pnpm -r --if-present run bundle",
60
+ "typecheck": "pnpm --filter dsh-context-compression-improved run bundle && pnpm --filter dsh-context-compression-improved run typecheck && pnpm run typecheck:tests",
61
+ "typecheck:tests": "tsc --noEmit -p tsconfig.tests.json",
62
+ "lint": "eslint packages scripts eslint.config.js",
63
+ "lint:fix": "eslint packages scripts eslint.config.js --fix",
64
+ "test": "vitest run",
65
+ "test:watch": "vitest",
66
+ "test:built": "vitest run --config vitest.built.config.ts",
67
+ "test:e2e:packed": "node scripts/packed-install-e2e.mjs",
68
+ "test:unit": "vitest run",
69
+ "verify:release": "node scripts/verify-release.mjs",
70
+ "pack:dry-run": "pnpm -r --if-present run pack:dry-run"
71
+ },
72
+ "peerDependencies": {
73
+ "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.1 <0.1.8-0",
74
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.1 <0.1.8-0",
75
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.7-rc.1 <0.1.8-0",
76
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.7-rc.1 <0.1.8-0"
77
+ },
78
+ "peerDependenciesMeta": {
79
+ "@deepseek-ai/dsh-client-locale": {
80
+ "optional": true
81
+ },
82
+ "@deepseek-ai/dsh-client-ui-primitives": {
83
+ "optional": true
84
+ },
85
+ "@deepseek-ai/dsh-client-ui-settings": {
86
+ "optional": true
87
+ },
88
+ "@deepseek-ai/dsh-client-ui-slots": {
89
+ "optional": true
90
+ }
91
+ },
92
+ "devDependencies": {
93
+ "@deepseek-ai/cordis": "4.0.1",
94
+ "@deepseek-ai/cordis-plugin-group": "1.0.1",
95
+ "@deepseek-ai/cordis-plugin-include": "1.0.6",
96
+ "@deepseek-ai/cordis-plugin-loader": "1.0.2",
97
+ "@deepseek-ai/dsh-agent": "0.1.5-rc.2",
98
+ "@deepseek-ai/dsh-agent-loop": "0.1.5-rc.2",
99
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.1.5-rc.2",
100
+ "@deepseek-ai/dsh-agent-presets": "0.1.5-rc.2",
101
+ "@deepseek-ai/dsh-anonymous-user-id": "0.1.5-rc.2",
102
+ "@deepseek-ai/dsh-api-remotes": "0.1.5-rc.2",
103
+ "@deepseek-ai/dsh-api-session-controller": "0.1.5-rc.2",
104
+ "@deepseek-ai/dsh-atomic-write": "0.1.5-rc.2",
105
+ "@deepseek-ai/dsh-attachment": "0.1.5-rc.2",
106
+ "@deepseek-ai/dsh-client-locale": "0.1.5-rc.2",
107
+ "@deepseek-ai/dsh-client-store": "0.1.5-rc.2",
108
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.2",
109
+ "@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.2",
110
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.2",
111
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.2",
112
+ "@deepseek-ai/dsh-client-ui-workspace": "0.1.5-rc.2",
113
+ "@deepseek-ai/dsh-code-runtime": "0.1.5-rc.2",
114
+ "@deepseek-ai/dsh-command-compact": "0.1.5-rc.2",
115
+ "@deepseek-ai/dsh-commands": "0.1.5-rc.2",
116
+ "@deepseek-ai/dsh-compaction": "0.1.5-rc.2",
117
+ "@deepseek-ai/dsh-compaction-basic": "0.1.5-rc.2",
118
+ "@deepseek-ai/dsh-cordis-host-runner": "0.1.5-rc.2",
119
+ "@deepseek-ai/dsh-credentials": "0.1.5-rc.2",
120
+ "@deepseek-ai/dsh-goal": "0.1.5-rc.2",
121
+ "@deepseek-ai/dsh-home-paths": "0.1.5-rc.2",
122
+ "@deepseek-ai/dsh-host-plugin-inventory": "0.1.5-rc.2",
123
+ "@deepseek-ai/dsh-invariants": "0.1.5-rc.2",
124
+ "@deepseek-ai/dsh-jobs": "0.1.5-rc.2",
125
+ "@deepseek-ai/dsh-launch-environment": "0.1.5-rc.2",
126
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.2",
127
+ "@deepseek-ai/dsh-llm-deepseek": "0.1.5-rc.2",
128
+ "@deepseek-ai/dsh-llm-retry": "0.1.5-rc.2",
129
+ "@deepseek-ai/dsh-message-feedback": "0.1.5-rc.2",
130
+ "@deepseek-ai/dsh-sandbox": "0.1.5-rc.2",
131
+ "@deepseek-ai/dsh-scope": "0.1.5-rc.2",
132
+ "@deepseek-ai/dsh-session": "0.1.5-rc.2",
133
+ "@deepseek-ai/dsh-session-persistence": "0.1.5-rc.2",
134
+ "@deepseek-ai/dsh-session-projection": "0.1.5-rc.2",
135
+ "@deepseek-ai/dsh-settings": "0.1.5-rc.2",
136
+ "@deepseek-ai/dsh-subagent": "0.1.5-rc.2",
137
+ "@deepseek-ai/dsh-subagent-fork-in-process": "0.1.5-rc.2",
138
+ "@deepseek-ai/dsh-subagent-in-process-driver": "0.1.5-rc.2",
139
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.1.5-rc.2",
140
+ "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.2",
141
+ "@deepseek-ai/dsh-token-meter": "0.1.5-rc.2",
142
+ "@deepseek-ai/dsh-tools": "0.1.5-rc.2",
143
+ "@deepseek-ai/dsh-user-approval": "0.1.5-rc.2",
144
+ "@deepseek-ai/dsh-user-questions": "0.1.5-rc.2",
145
+ "@deepseek-ai/schemastery": "3.18.4",
146
+ "@eslint/js": "^10.0.1",
147
+ "@testing-library/react": "^16.3.2",
148
+ "@tsdown/css": "^0.22.14",
149
+ "@types/js-yaml": "^4.0.9",
150
+ "@types/node": "^22.20.0",
151
+ "@types/react": "~18.3.1",
152
+ "eslint": "^10.10.0",
153
+ "globals": "^17.12.0",
154
+ "jsdom": "29.1.1",
155
+ "lightningcss": "^1.33.0",
156
+ "react": "^18.2.0",
157
+ "tsdown": "^0.22.2",
158
+ "typescript": "^6.0.3",
159
+ "typescript-eslint": "^8.69.0",
160
+ "vitest": "^4.1.8"
161
+ }
162
+ }