dsh-context-compression-improved 0.9.7 → 0.9.8
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/.gitattributes +2 -2
- package/.githooks/pre-push +37 -37
- package/CHANGELOG.md +4 -0
- package/CONTRIBUTING.md +22 -22
- package/LICENSE +21 -21
- package/README.de.md +3 -3
- package/README.es.md +3 -3
- package/README.fr.md +3 -3
- package/README.it.md +3 -3
- package/README.ja.md +3 -3
- package/README.ko.md +3 -3
- package/README.md +3 -3
- package/README.ru.md +3 -3
- package/README.zh.md +3 -3
- package/SECURITY.md +18 -18
- package/THIRD_PARTY_NOTICES.md +14 -14
- package/docs/compat-0.1.5-report.md +77 -77
- package/docs/installation.de.md +2 -2
- package/docs/installation.es.md +2 -2
- package/docs/installation.fr.md +2 -2
- package/docs/installation.it.md +2 -2
- package/docs/installation.ja.md +2 -2
- package/docs/installation.ko.md +2 -2
- package/docs/installation.md +2 -2
- package/docs/installation.ru.md +2 -2
- package/docs/installation.zh.md +2 -2
- package/docs/repair-log.md +657 -657
- package/package.json +6 -6
- package/packages/selector/LICENSE +21 -21
- package/packages/selector/README.md +26 -26
- package/packages/selector/README.zh.md +24 -24
- package/packages/selector/THIRD_PARTY_NOTICES.md +32 -32
- package/packages/selector/cordis.patch.yml +27 -27
- package/packages/selector/docs/history-tool-call-working-set-spec.md +112 -112
- package/packages/selector/docs/native-tool-result-selector-spec.md +34 -34
- package/packages/selector/docs/subagent-cache-reuse-spec.md +46 -46
- package/packages/selector/dsh.plugin.json +2 -2
- package/packages/selector/lib/style.css +53 -53
- package/packages/selector/package.json +21 -21
- package/packages/selector/screenshots.json +3 -3
- package/packages/selector/src/client/CustomPolicyEditor.tsx +216 -216
- package/packages/selector/src/client/EstimatorControls.tsx +277 -277
- package/packages/selector/src/client/preset-options.ts +88 -88
- package/packages/selector/src/client/scope-face.ts +24 -24
- package/packages/selector/src/css-modules.d.ts +6 -6
- package/packages/selector/src/estimator-catalog.ts +104 -104
- package/packages/selector/src/invariant.ts +113 -113
- package/packages/selector/src/pruner/tuning.ts +23 -23
- package/packages/selector/src/pruner/types.ts +78 -78
- package/packages/selector/src/runtime/adaptive-cost.ts +205 -205
- package/packages/selector/src/runtime/audit.ts +303 -303
- package/packages/selector/src/runtime/custom-policy.ts +278 -278
- package/packages/selector/src/runtime/deepseek-official-pricing.ts +298 -298
- package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +254 -254
- package/packages/selector/src/runtime/session-events.ts +30 -30
- package/packages/selector/src/runtime/token-count.ts +72 -72
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +233 -233
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +204 -204
- package/packages/selector/src/runtime/tokenpilot/advisor.ts +419 -419
- package/packages/selector/src/runtime/tokenpilot/benefit.ts +200 -200
- package/packages/selector/src/runtime/tokenpilot/dedup.ts +81 -81
- package/packages/selector/src/runtime/tokenpilot/estimator.ts +151 -151
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +53 -53
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +65 -65
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +125 -125
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +37 -37
- package/packages/selector/src/runtime/tokenpilot/read-state.ts +98 -98
- package/packages/selector/src/runtime/toolclass.ts +103 -103
- package/packages/selector/src/runtime/value.ts +48 -48
- package/packages/selector/tests/advisor-report.host.spec.ts +223 -223
- package/packages/selector/tests/cache-prefix-audit.spec.ts +123 -123
- package/packages/selector/tests/estimator-catalog.spec.ts +70 -70
- package/packages/selector/tests/helpers/legacy-namespace.ts +35 -35
- package/packages/selector/tests/helpers/legacy-settings/index.ts +15 -15
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +41 -41
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +647 -647
- package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +78 -78
- package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +234 -234
- package/packages/selector/tests/preset-overlay.host.spec.ts +246 -246
- package/packages/selector/tests/public/package-contract.client.spec.ts +4 -4
- package/packages/selector/tests/runtime/adaptive-cost.spec.ts +167 -167
- package/packages/selector/tests/runtime/advisor-invariant.spec.ts +272 -272
- package/packages/selector/tests/runtime/advisor.spec.ts +226 -226
- package/packages/selector/tests/runtime/char-basis.spec.ts +30 -30
- package/packages/selector/tests/runtime/code-skeleton.spec.ts +152 -152
- package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +186 -186
- package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +122 -122
- package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +96 -96
- package/packages/selector/tests/runtime/fixtures/profile-baseline.json +273 -273
- package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +106 -106
- package/packages/selector/tests/runtime/fixtures/vision-golden.json +459 -459
- package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +74 -74
- package/packages/selector/tests/runtime/html-reducer.spec.ts +212 -212
- package/packages/selector/tests/runtime/intent-gate.spec.ts +62 -62
- package/packages/selector/tests/runtime/intent-summary.spec.ts +156 -156
- package/packages/selector/tests/runtime/line-mapping.spec.ts +153 -153
- package/packages/selector/tests/runtime/prose-reducers.spec.ts +133 -133
- package/packages/selector/tests/runtime/read-input-cap.spec.ts +33 -33
- package/packages/selector/tests/runtime/search-reducer.spec.ts +110 -110
- package/packages/selector/tests/runtime/session-events.spec.ts +27 -27
- package/packages/selector/tests/runtime/sidechannel.spec.ts +241 -241
- package/packages/selector/tests/runtime/summary-command.spec.ts +154 -154
- package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +159 -159
- package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +53 -53
- package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +217 -217
- package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +52 -52
- package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +79 -79
- package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +76 -76
- package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +82 -82
- package/packages/selector/tests/runtime/toolclass.spec.ts +156 -156
- package/packages/selector/tests/runtime/value.spec.ts +23 -23
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +269 -269
- package/packages/selector/tests/support/cache-prefix-audit.ts +105 -105
- package/packages/selector/tests/support/mock-adapter.ts +37 -37
- package/packages/selector/tests/support/ui-primitives.tsx +34 -34
- package/packages/selector/tsconfig.json +11 -11
- package/packages/selector/tsdown.client.config.ts +102 -102
- package/packages/selector/tsdown.config.ts +20 -20
- package/scripts/capture-profile-baseline.mjs +42 -42
- package/scripts/generate-tokenizer-fixtures.py +81 -81
- package/scripts/generate-vision-fixtures.py +208 -208
- package/scripts/hosts.mjs +2 -1
- package/scripts/toolclass-corpus-replay.mjs +281 -281
- package/tsconfig.base.json +18 -18
- package/tsconfig.json +7 -7
- package/vitest.built.config.ts +9 -9
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
packages/selector/assets/** -text
|
|
2
|
-
packages/selector/lib/** text eol=lf
|
|
1
|
+
packages/selector/assets/** -text
|
|
2
|
+
packages/selector/lib/** text eol=lf
|
package/.githooks/pre-push
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# lib freshness gate (runs before every push from this repo).
|
|
3
|
-
#
|
|
4
|
-
# The plugin ships lib/ as a committed artifact and never builds on the
|
|
5
|
-
# client at install time, so a stale lib pushed to a branch is what users
|
|
6
|
-
# actually download. Rebuild here and refuse the push when the committed
|
|
7
|
-
# lib no longer matches the committed sources.
|
|
8
|
-
#
|
|
9
|
-
# Skip conditions:
|
|
10
|
-
# - the branch does not track a lib directory (non-plugin branches);
|
|
11
|
-
# - pnpm or the build itself fails for reasons unrelated to freshness
|
|
12
|
-
# (the push is allowed, the build problem surfaces in CI/typecheck).
|
|
13
|
-
|
|
14
|
-
ROOT="$(git rev-parse --show-toplevel)"
|
|
15
|
-
LIB_DIR="packages/selector/lib"
|
|
16
|
-
|
|
17
|
-
# Nothing to guard on branches without the shipped artifact.
|
|
18
|
-
if [ ! -f "$ROOT/$LIB_DIR/index.js" ]; then
|
|
19
|
-
exit 0
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
echo "[pre-push] rebuilding lib to verify freshness..."
|
|
23
|
-
if ! (cd "$ROOT" && pnpm build >/dev/null 2>&1); then
|
|
24
|
-
echo "[pre-push] WARNING: pnpm build failed; skipping the lib freshness check." >&2
|
|
25
|
-
exit 0
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
drift="$(git -C "$ROOT" diff --name-only -- "$LIB_DIR"; git -C "$ROOT" diff --cached --name-only -- "$LIB_DIR")"
|
|
29
|
-
if [ -n "$drift" ]; then
|
|
30
|
-
echo >&2 "[pre-push] BLOCKED: packages/selector/lib drifted from the committed sources."
|
|
31
|
-
echo >&2 "[pre-push] The build just refreshed it. Review and commit the lib changes:"
|
|
32
|
-
echo >&2 "[pre-push] git add packages/selector/lib && git commit --amend --no-edit (or a follow-up commit)"
|
|
33
|
-
echo >&2 "[pre-push] Then push again."
|
|
34
|
-
exit 1
|
|
35
|
-
fi
|
|
36
|
-
|
|
37
|
-
exit 0
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# lib freshness gate (runs before every push from this repo).
|
|
3
|
+
#
|
|
4
|
+
# The plugin ships lib/ as a committed artifact and never builds on the
|
|
5
|
+
# client at install time, so a stale lib pushed to a branch is what users
|
|
6
|
+
# actually download. Rebuild here and refuse the push when the committed
|
|
7
|
+
# lib no longer matches the committed sources.
|
|
8
|
+
#
|
|
9
|
+
# Skip conditions:
|
|
10
|
+
# - the branch does not track a lib directory (non-plugin branches);
|
|
11
|
+
# - pnpm or the build itself fails for reasons unrelated to freshness
|
|
12
|
+
# (the push is allowed, the build problem surfaces in CI/typecheck).
|
|
13
|
+
|
|
14
|
+
ROOT="$(git rev-parse --show-toplevel)"
|
|
15
|
+
LIB_DIR="packages/selector/lib"
|
|
16
|
+
|
|
17
|
+
# Nothing to guard on branches without the shipped artifact.
|
|
18
|
+
if [ ! -f "$ROOT/$LIB_DIR/index.js" ]; then
|
|
19
|
+
exit 0
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
echo "[pre-push] rebuilding lib to verify freshness..."
|
|
23
|
+
if ! (cd "$ROOT" && pnpm build >/dev/null 2>&1); then
|
|
24
|
+
echo "[pre-push] WARNING: pnpm build failed; skipping the lib freshness check." >&2
|
|
25
|
+
exit 0
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
drift="$(git -C "$ROOT" diff --name-only -- "$LIB_DIR"; git -C "$ROOT" diff --cached --name-only -- "$LIB_DIR")"
|
|
29
|
+
if [ -n "$drift" ]; then
|
|
30
|
+
echo >&2 "[pre-push] BLOCKED: packages/selector/lib drifted from the committed sources."
|
|
31
|
+
echo >&2 "[pre-push] The build just refreshed it. Review and commit the lib changes:"
|
|
32
|
+
echo >&2 "[pre-push] git add packages/selector/lib && git commit --amend --no-edit (or a follow-up commit)"
|
|
33
|
+
echo >&2 "[pre-push] Then push again."
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
|
|
37
|
+
exit 0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.8 (2026-10-18)
|
|
4
|
+
|
|
5
|
+
- hosts: 追加 0.2.1-rc.2 声明面枚举(34/34 @deepseek-ai/* 宿主 peer 逐包 npm 实测 rc.2 在版;本插件不触 ctx.web provider 与 conversation.input.model.label 槽,代码零改动,纯元数据发版;农场 rc.2 格挂账待命)
|
|
6
|
+
|
|
3
7
|
All notable changes use this file. The project follows semantic versioning after `0.1.0`.
|
|
4
8
|
|
|
5
9
|
## 0.9.3 - 2026-10-08
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
# Contributing
|
|
2
|
-
|
|
3
|
-
Thank you for helping improve this community plugin.
|
|
4
|
-
|
|
5
|
-
1. Open an issue before large behavior or compatibility changes.
|
|
6
|
-
2. Keep every production change inside this repository; do not require a DeepSeek Harness core patch.
|
|
7
|
-
3. Add a failing regression first for compression, surface/recovery, preset, tokenizer, or cache-prefix behavior.
|
|
8
|
-
4. Run:
|
|
9
|
-
|
|
10
|
-
```sh
|
|
11
|
-
pnpm install --frozen-lockfile
|
|
12
|
-
pnpm test
|
|
13
|
-
pnpm typecheck
|
|
14
|
-
pnpm build
|
|
15
|
-
pnpm verify:release
|
|
16
|
-
pnpm pack:dry-run
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
5. Never commit API keys, `.env` files, real Session logs, prompts/tool results, user paths, generated tarballs, or NPM tokens.
|
|
20
|
-
6. Read [`docs/repair-log.md`](docs/repair-log.md) before starting a new branch or version. It is the cross-version ledger of install/boot defects; a class recorded there must be re-checked on every new line instead of being rediscovered. Note in particular that `lib/` is committed, so a built chunk an entry imports must be committed in the same change — `pnpm verify:release` enforces it — and that the tokenizer assets are content-addressed, so a checkout that rewrites their line endings breaks every consumer (the release gate now fails on CR bytes).
|
|
21
|
-
|
|
22
|
-
Pull requests should explain the evidence for “triggered”, “enabled but skipped”, and fail-open behavior separately. A code path existing is not runtime proof. Changes to tokenizer/model compatibility require an official source, pinned revision, license, byte length, SHA-256, and negative tests.
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thank you for helping improve this community plugin.
|
|
4
|
+
|
|
5
|
+
1. Open an issue before large behavior or compatibility changes.
|
|
6
|
+
2. Keep every production change inside this repository; do not require a DeepSeek Harness core patch.
|
|
7
|
+
3. Add a failing regression first for compression, surface/recovery, preset, tokenizer, or cache-prefix behavior.
|
|
8
|
+
4. Run:
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
pnpm install --frozen-lockfile
|
|
12
|
+
pnpm test
|
|
13
|
+
pnpm typecheck
|
|
14
|
+
pnpm build
|
|
15
|
+
pnpm verify:release
|
|
16
|
+
pnpm pack:dry-run
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
5. Never commit API keys, `.env` files, real Session logs, prompts/tool results, user paths, generated tarballs, or NPM tokens.
|
|
20
|
+
6. Read [`docs/repair-log.md`](docs/repair-log.md) before starting a new branch or version. It is the cross-version ledger of install/boot defects; a class recorded there must be re-checked on every new line instead of being rediscovered. Note in particular that `lib/` is committed, so a built chunk an entry imports must be committed in the same change — `pnpm verify:release` enforces it — and that the tokenizer assets are content-addressed, so a checkout that rewrites their line endings breaks every consumer (the release gate now fails on CR bytes).
|
|
21
|
+
|
|
22
|
+
Pull requests should explain the evidence for “triggered”, “enabled but skipped”, and fail-open behavior separately. A code path existing is not runtime proof. Changes to tokenizer/model compatibility require an official source, pinned revision, license, byte length, SHA-256, and negative tests.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 WilliamShi666
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WilliamShi666
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.de.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
> Dieses Projekt unterstützt **ausschließlich DeepSeek-Modelle**. Verlustfreie Messung und verlustbehaftete Kompression hängen von den mitgelieferten offiziellen DeepSeek-Tokenizern ab (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4-flash-vision-exp`). Alles andere fällt offen aus (fail-open) und behält die ursprünglichen Tool-Ergebnisse bei. Das vollständige Sicherheitsmodell finden Sie im [Upstream-README](https://github.com/WilliamShi666/dsh-context-compression-selector#model-support-and-safety).
|
|
16
16
|
|
|
17
17
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
18
|
-
- **Unterstützte DSH-Hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (
|
|
18
|
+
- **Unterstützte DSH-Hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (17 RC über die Linien 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
19
19
|
<!-- host-compat:end -->
|
|
20
20
|
|
|
21
21
|
## Was es ist
|
|
@@ -51,7 +51,7 @@ Wählen Sie ein Kompressionsprofil, stellen Sie den Auto-Compact-Auslösepegel e
|
|
|
51
51
|
|
|
52
52
|
## Installation
|
|
53
53
|
|
|
54
|
-
**Empfohlen: Installation über npm.** Eine einzige Version deckt alle unterstützten Harness-Linien ab — `latest` trägt die vollständige
|
|
54
|
+
**Empfohlen: Installation über npm.** Eine einzige Version deckt alle unterstützten Harness-Linien ab — `latest` trägt die vollständige 17-rc-Aufzählung (0.1.0-rc.2 → 0.2.1-rc.2); die Runtime wählt die linienspezifischen Codepfade selbst.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
@@ -85,7 +85,7 @@ Beiträge folgen der Upstream-Disziplin: zuerst die fehlgeschlagene Regression h
|
|
|
85
85
|
|
|
86
86
|
## Kompatibilität
|
|
87
87
|
|
|
88
|
-
- Gegen die offiziellen DeepSeek Harness Veröffentlichungen gebaut und getestet; die Peers enumerieren die vollständige Unterstützungsliste (`0.1.0-rc.2` → `0.2.1-rc.
|
|
88
|
+
- Gegen die offiziellen DeepSeek Harness Veröffentlichungen gebaut und getestet; die Peers enumerieren die vollständige Unterstützungsliste (`0.1.0-rc.2` → `0.2.1-rc.2`, sieben Linien) und das Plugin nutzt ausschließlich öffentliche Plugin- und Profil-APIs. Die Liste wird von `scripts/sync-hosts.mjs` aus `scripts/hosts.mjs` in den obigen verwalteten Block generiert.
|
|
89
89
|
- Erfordert Node `^22.19.0 || >=24` und pnpm `11.7.0`.
|
|
90
90
|
- Das Plugin nutzt nur öffentliche Harness-Erweiterungs-APIs und verändert keinen Harness-Kerncode. Inoffizielles Community-Projekt, weder mit DeepSeek verbunden noch von ihm unterstützt.
|
|
91
91
|
|
package/README.es.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
> Este proyecto admite **únicamente modelos DeepSeek**. La medición sin pérdida y la compresión con pérdida dependen de los tokenizers oficiales de DeepSeek incluidos (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4-flash-vision-exp`). Todo lo demás falla de forma abierta (fail-open) y conserva los resultados de herramientas originales. Consulte el [README ascendente](https://github.com/WilliamShi666/dsh-context-compression-selector#model-support-and-safety) para conocer el modelo de seguridad completo.
|
|
16
16
|
|
|
17
17
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
18
|
-
- **Hosts DSH compatibles:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (
|
|
18
|
+
- **Hosts DSH compatibles:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (17 rc en las líneas 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
19
19
|
<!-- host-compat:end -->
|
|
20
20
|
|
|
21
21
|
## Qué es
|
|
@@ -51,7 +51,7 @@ Elija un perfil de compresión, configure el nivel de disparo de Auto Compact y
|
|
|
51
51
|
|
|
52
52
|
## Instalación
|
|
53
53
|
|
|
54
|
-
**Recomendado: instalar desde npm.** Una única versión cubre todas las líneas de Harness compatibles — `latest` lleva la enumeración completa de
|
|
54
|
+
**Recomendado: instalar desde npm.** Una única versión cubre todas las líneas de Harness compatibles — `latest` lleva la enumeración completa de 17 rc (0.1.0-rc.2 → 0.2.1-rc.2); el runtime elige por sí solo las rutas de código de cada línea.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
@@ -85,7 +85,7 @@ Las contribuciones siguen la disciplina del upstream: añadir primero la regresi
|
|
|
85
85
|
|
|
86
86
|
## Compatibilidad
|
|
87
87
|
|
|
88
|
-
- Construido y probado contra las versiones oficiales de DeepSeek Harness; los peers enumeran la lista completa de soporte (`0.1.0-rc.2` → `0.2.1-rc.
|
|
88
|
+
- Construido y probado contra las versiones oficiales de DeepSeek Harness; los peers enumeran la lista completa de soporte (`0.1.0-rc.2` → `0.2.1-rc.2`, siete líneas) y el plugin usa solo API públicas de plugin y de perfil. La lista la genera `scripts/sync-hosts.mjs` desde `scripts/hosts.mjs` hacia el bloque gestionado de arriba.
|
|
89
89
|
- Requiere Node `^22.19.0 || >=24` y pnpm `11.7.0`.
|
|
90
90
|
- El plugin usa solo API de extensión públicas del Harness y no modifica el código del núcleo del Harness. Proyecto comunitario no oficial, sin afiliación ni respaldo de DeepSeek.
|
|
91
91
|
|
package/README.fr.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
> Ce projet prend en charge **uniquement les modèles DeepSeek**. La mesure sans perte et la compression avec perte dépendent des tokenizers DeepSeek officiels fournis (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4-flash-vision-exp`). Tout le reste échoue en mode ouvert (fail-open) et conserve les résultats d'outils originaux. Consultez le [README amont](https://github.com/WilliamShi666/dsh-context-compression-selector#model-support-and-safety) pour le modèle de sécurité complet.
|
|
16
16
|
|
|
17
17
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
18
|
-
- **Hôtes DSH pris en charge :** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (
|
|
18
|
+
- **Hôtes DSH pris en charge :** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (17 rc sur les lignes 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
19
19
|
<!-- host-compat:end -->
|
|
20
20
|
|
|
21
21
|
## Qu'est-ce que c'est
|
|
@@ -51,7 +51,7 @@ Choisissez un profil de compression, réglez le niveau de déclenchement de l'Au
|
|
|
51
51
|
|
|
52
52
|
## Installation
|
|
53
53
|
|
|
54
|
-
**Recommandé : installer depuis npm.** Une seule version couvre toutes les lignes Harness prises en charge — `latest` porte l'énumération complète des
|
|
54
|
+
**Recommandé : installer depuis npm.** Une seule version couvre toutes les lignes Harness prises en charge — `latest` porte l'énumération complète des 17 rc (0.1.0-rc.2 → 0.2.1-rc.2) ; le runtime choisit lui-même les chemins de code propres à chaque ligne.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
@@ -85,7 +85,7 @@ Les contributions suivent la discipline de l'amont : ajouter d'abord la régress
|
|
|
85
85
|
|
|
86
86
|
## Compatibilité
|
|
87
87
|
|
|
88
|
-
- Construit et testé contre les versions officielles de DeepSeek Harness ; les pairs énumèrent la liste complète de prise en charge (`0.1.0-rc.2` → `0.2.1-rc.
|
|
88
|
+
- Construit et testé contre les versions officielles de DeepSeek Harness ; les pairs énumèrent la liste complète de prise en charge (`0.1.0-rc.2` → `0.2.1-rc.2`, sept lignes) et le plugin n'utilise que les API publiques de plugin et de profil. La liste est générée par `scripts/sync-hosts.mjs` depuis `scripts/hosts.mjs` vers le bloc géré ci-dessus.
|
|
89
89
|
- Nécessite Node `^22.19.0 || >=24` et pnpm `11.7.0`.
|
|
90
90
|
- Le plugin n'utilise que les API d'extension publiques du Harness et ne modifie pas le code du cœur du Harness. Projet communautaire non officiel, sans affiliation ni approbation de DeepSeek.
|
|
91
91
|
|
package/README.it.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
> Questo progetto supporta **solo modelli DeepSeek**. La misura senza perdita e la compressione con perdita dipendono dai tokenizer DeepSeek ufficiali inclusi (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4-flash-vision-exp`). Tutto il resto fallisce in modo aperto (fail-open) e conserva i risultati degli strumenti originali. Vedere il [README upstream](https://github.com/WilliamShi666/dsh-context-compression-selector#model-support-and-safety) per il modello di sicurezza completo.
|
|
16
16
|
|
|
17
17
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
18
|
-
- **Host DSH supportati:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (
|
|
18
|
+
- **Host DSH supportati:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (17 rc attraverso le linee 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
19
19
|
<!-- host-compat:end -->
|
|
20
20
|
|
|
21
21
|
## Che cos'è
|
|
@@ -51,7 +51,7 @@ Scegliere un profilo di compressione, impostare il livello di attivazione dell'A
|
|
|
51
51
|
|
|
52
52
|
## Installazione
|
|
53
53
|
|
|
54
|
-
**Consigliato: installare da npm.** Un'unica versione copre tutte le linee Harness supportate — `latest` porta l'enumerazione completa dei
|
|
54
|
+
**Consigliato: installare da npm.** Un'unica versione copre tutte le linee Harness supportate — `latest` porta l'enumerazione completa dei 17 rc (0.1.0-rc.2 → 0.2.1-rc.2); il runtime sceglie da solo i percorsi di codice di ciascuna linea.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
@@ -85,7 +85,7 @@ I contributi seguono la disciplina upstream: aggiungere prima la regressione che
|
|
|
85
85
|
|
|
86
86
|
## Compatibilità
|
|
87
87
|
|
|
88
|
-
- Compilato e testato contro le release ufficiali di DeepSeek Harness; i peer enumerano l'elenco completo del supporto (`0.1.0-rc.2` → `0.2.1-rc.
|
|
88
|
+
- Compilato e testato contro le release ufficiali di DeepSeek Harness; i peer enumerano l'elenco completo del supporto (`0.1.0-rc.2` → `0.2.1-rc.2`, sette linee) e il plugin usa solo API pubbliche di plugin e profilo. L'elenco è generato da `scripts/sync-hosts.mjs` da `scripts/hosts.mjs` nel blocco gestito qui sopra.
|
|
89
89
|
- Richiede Node `^22.19.0 || >=24` e pnpm `11.7.0`.
|
|
90
90
|
- Il plugin usa solo API di estensione pubbliche del Harness e non modifica il codice del core del Harness. Progetto comunitario non ufficiale, non affiliato né approvato da DeepSeek.
|
|
91
91
|
|
package/README.ja.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
> **推奨の接続方法:API-key で DeepSeek をカスタム Responses API 経由に接続する。** 公式アカウントの Messages API ルートではなく、カスタムの OpenAI 互換エンドポイント(`/v1/responses`)の利用を推奨します。Anthropic 形式のメッセージ・シリアライズを経由しないためメッセージ形式に起因する問題が発生せず、`tool_use`/`tool_result` のペアリング検証(公式ルートの resume-replay 400 はプラグイン側では修復不可)を回避できます。また、時間に応じてエンドポイントノードを切り替えてもセッションを継続できます。
|
|
19
19
|
|
|
20
20
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
21
|
-
- **対応する DSH ホスト:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1`(0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 の
|
|
21
|
+
- **対応する DSH ホスト:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2`(0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 の 17 rc)
|
|
22
22
|
<!-- host-compat:end -->
|
|
23
23
|
|
|
24
24
|
## これは何か
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
## インストール
|
|
66
66
|
|
|
67
|
-
ソースからビルドしてインストールします —— 本フォークは npm にも `dsh-context-compression-improved` として公開済みです(単一バージョンが全サポートラインをカバー:dist-tag `latest` が
|
|
67
|
+
ソースからビルドしてインストールします —— 本フォークは npm にも `dsh-context-compression-improved` として公開済みです(単一バージョンが全サポートラインをカバー:dist-tag `latest` が 17 rc 完全列挙 0.1.0-rc.2〜0.2.1-rc.2 を携え、ライン別コードパスはランタイムが自動選択)。内部パッケージ名は意図的にアップストリームのままです:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
70
|
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
@@ -91,7 +91,7 @@ pnpm verify:release
|
|
|
91
91
|
|
|
92
92
|
## 互換性
|
|
93
93
|
|
|
94
|
-
- 公式 DeepSeek Harness リリースに対してビルド・テスト済み。peers はサポート対象の完全列挙(`0.1.0-rc.2`〜`0.2.1-rc.
|
|
94
|
+
- 公式 DeepSeek Harness リリースに対してビルド・テスト済み。peers はサポート対象の完全列挙(`0.1.0-rc.2`〜`0.2.1-rc.2`、7 ライン)を宣言し、公開されているプラグインおよびプロファイル API のみを使用します。リストは `scripts/sync-hosts.mjs` が `scripts/hosts.mjs` から上記の管理ブロックへ生成します。
|
|
95
95
|
- Node `^22.19.0 || >=24` と pnpm `11.7.0` が必要です。
|
|
96
96
|
- プラグインは Harness の公開拡張 API のみを使用し、Harness コアは改変しません。非公式のコミュニティプロジェクトであり、DeepSeek とは提携・承認関係にありません。
|
|
97
97
|
|
package/README.ko.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
> **추천 연결 방식: API-key로 DeepSeek을 사용자 정의 Responses API에 연결하세요.** 공식 계정 Messages API 라우트 대신 사용자 정의 OpenAI 호환 엔드포인트(`/v1/responses`)를 사용하세요. Anthropic 스타일 메시지 직렬화를 거치지 않으므로 메시지 형식으로 인한 문제가 발생하지 않고, `tool_use`/`tool_result` 짝 검증 제한(공식 라우트의 resume-replay 400은 플러그인 쪽에서 수리 불가)을 회피할 수 있습니다. 또한 시간에 따라 엔드포인트 노드를 전환해도 세션을 이어서 사용할 수 있습니다.
|
|
19
19
|
|
|
20
20
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
21
|
-
- **지원하는 DSH 호스트:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 라인의
|
|
21
|
+
- **지원하는 DSH 호스트:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 라인의 17개 rc)
|
|
22
22
|
<!-- host-compat:end -->
|
|
23
23
|
|
|
24
24
|
## 이것은 무엇인가
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
## 설치
|
|
66
66
|
|
|
67
|
-
소스에서 빌드하여 설치합니다 —— 이 포크는 npm에도 `dsh-context-compression-improved`로 게시되어 있습니다(단일 버전이 모든 지원 라인을 커버: dist-tag `latest`가
|
|
67
|
+
소스에서 빌드하여 설치합니다 —— 이 포크는 npm에도 `dsh-context-compression-improved`로 게시되어 있습니다(단일 버전이 모든 지원 라인을 커버: dist-tag `latest`가 17 rc 전체 열거 0.1.0-rc.2~0.2.1-rc.2를 담으며, 라인별 코드 경로는 런타임이 자동 선택). 내부 패키지 이름은 의도적으로 업스트림과 동일하게 유지됩니다:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
70
|
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
@@ -91,7 +91,7 @@ pnpm verify:release
|
|
|
91
91
|
|
|
92
92
|
## 호환성
|
|
93
93
|
|
|
94
|
-
- 공식 DeepSeek Harness 릴리스 기준으로 빌드·테스트되었습니다. peers는 지원 대상 전체 열거(`0.1.0-rc.2`~`0.2.1-rc.
|
|
94
|
+
- 공식 DeepSeek Harness 릴리스 기준으로 빌드·테스트되었습니다. peers는 지원 대상 전체 열거(`0.1.0-rc.2`~`0.2.1-rc.2`, 7개 라인)를 선언하며 공개된 플러그인 및 프로파일 API만 사용합니다. 목록은 `scripts/sync-hosts.mjs`가 `scripts/hosts.mjs`에서 위의 관리 블록으로 생성합니다.
|
|
95
95
|
- Node `^22.19.0 || >=24`와 pnpm `11.7.0`이 필요합니다.
|
|
96
96
|
- 플러그인은 Harness의 공개 확장 API만 사용하며 Harness 코어를 수정하지 않습니다. 비공식 커뮤니티 프로젝트이며 DeepSeek과 제휴하거나 승인받지 않았습니다.
|
|
97
97
|
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
> **Recommended: connect DeepSeek with your own API key via a custom Responses API endpoint.** Prefer a custom OpenAI-compatible endpoint (`/v1/responses`) over the official-account Messages API route: it does not go through the Anthropic-style message serialization, so requests never trip message-format issues or `tool_use`/`tool_result` pairing validation (the official route's resume-replay 400s cannot be repaired from the plugin side), and you can switch endpoint nodes over time and keep existing sessions running.
|
|
19
19
|
|
|
20
20
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
21
|
-
- **Supported DSH hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (
|
|
21
|
+
- **Supported DSH hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (17 rc releases across lines 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
22
22
|
<!-- host-compat:end -->
|
|
23
23
|
|
|
24
24
|
## What it is
|
|
@@ -64,7 +64,7 @@ Context trend for a session under compression: per-step / per-turn token composi
|
|
|
64
64
|
|
|
65
65
|
## Install
|
|
66
66
|
|
|
67
|
-
**Recommended: install from npm.** One version covers every supported Harness line — `latest` carries the full
|
|
67
|
+
**Recommended: install from npm.** One version covers every supported Harness line — `latest` carries the full 17-rc enum (0.1.0-rc.2 → 0.2.1-rc.2); the runtime picks per-line code paths on its own.
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
70
|
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
@@ -98,7 +98,7 @@ Contributions follow the upstream discipline: add the failing regression first,
|
|
|
98
98
|
|
|
99
99
|
## Compatibility
|
|
100
100
|
|
|
101
|
-
- Built and tested against the official DeepSeek Harness releases; peers declare the full supported-hosts enum (`0.1.0-rc.2` → `0.2.1-rc.
|
|
101
|
+
- Built and tested against the official DeepSeek Harness releases; peers declare the full supported-hosts enum (`0.1.0-rc.2` → `0.2.1-rc.2`, seven lines) and the plugin uses public plugin and profile APIs only. The supported list is generated into the managed block above by `scripts/sync-hosts.mjs` from `scripts/hosts.mjs`.
|
|
102
102
|
- Requires Node `^22.19.0 || >=24` and pnpm `11.7.0`.
|
|
103
103
|
- 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.
|
|
104
104
|
|
package/README.ru.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
> Этот проект поддерживает **только модели DeepSeek**. Измерение без потерь и сжатие с потерями опираются на входящие в поставку официальные токенизаторы DeepSeek (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4-flash-vision-exp`). Во всех остальных случаях плагин работает по принципу fail-open и сохраняет исходные результаты инструментов. Полную модель безопасности см. в [апстрим-README](https://github.com/WilliamShi666/dsh-context-compression-selector#model-support-and-safety).
|
|
16
16
|
|
|
17
17
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
18
|
-
- **Поддерживаемые хосты DSH:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` (
|
|
18
|
+
- **Поддерживаемые хосты DSH:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` (17 rc по линиям 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
19
19
|
<!-- host-compat:end -->
|
|
20
20
|
|
|
21
21
|
## Что это такое
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
## Установка
|
|
53
53
|
|
|
54
|
-
**Рекомендуется: установка из npm.** Одна версия обслуживает все поддерживаемые линейки Harness — `latest` несёт полный перечень из
|
|
54
|
+
**Рекомендуется: установка из npm.** Одна версия обслуживает все поддерживаемые линейки Harness — `latest` несёт полный перечень из 17 rc (0.1.0-rc.2 → 0.2.1-rc.2); рантайм сам выбирает ветки кода для своей линейки.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
@@ -85,7 +85,7 @@ pnpm verify:release
|
|
|
85
85
|
|
|
86
86
|
## Совместимость
|
|
87
87
|
|
|
88
|
-
- Собрано и протестировано против официальных релизов DeepSeek Harness; peers перечисляют полный список поддержки (`0.1.0-rc.2` → `0.2.1-rc.
|
|
88
|
+
- Собрано и протестировано против официальных релизов DeepSeek Harness; peers перечисляют полный список поддержки (`0.1.0-rc.2` → `0.2.1-rc.2`, семь линеек), и плагин использует только публичные API плагинов и профилей. Список генерируется `scripts/sync-hosts.mjs` из `scripts/hosts.mjs` в управляемый блок выше.
|
|
89
89
|
- Требуются Node `^22.19.0 || >=24` и pnpm `11.7.0`.
|
|
90
90
|
- Плагин использует только публичные API расширений Harness и не изменяет код ядра Harness. Неофициальный проект сообщества, не связан с DeepSeek и не одобрен им.
|
|
91
91
|
|
package/README.zh.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
> **推荐接入方式:用 API key 以自定义 Responses API 连接 DeepSeek。** 建议走自定义 OpenAI 兼容端点(`/v1/responses`)而不是官方账号的 Messages API 路由:前者不经过 Anthropic 风格的消息序列化,不会因为 message 格式而出现问题,可避开 `tool_use`/`tool_result` 配对校验限制(官方路由 resume-replay 时的 400 插件侧无法修复);也便于按时间切换节点后接续会话。
|
|
19
19
|
|
|
20
20
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
21
|
-
- **支持的 DSH 宿主:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1`(覆盖 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 七条线共
|
|
21
|
+
- **支持的 DSH 宿主:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2`(覆盖 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 七条线共 17 个 rc)
|
|
22
22
|
<!-- host-compat:end -->
|
|
23
23
|
|
|
24
24
|
## 它是什么
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
## 安装
|
|
66
66
|
|
|
67
|
-
从源码构建并安装 —— 本 fork 亦已发布到 npm,包名为 `dsh-context-compression-improved`(单版本覆盖全部支持线:`latest` 携带
|
|
67
|
+
从源码构建并安装 —— 本 fork 亦已发布到 npm,包名为 `dsh-context-compression-improved`(单版本覆盖全部支持线:`latest` 携带 17 个 rc 的完整枚举 0.1.0-rc.2 → 0.2.1-rc.2,分线代码路径由运行时自行选择);内部包名有意保持与上游一致:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
70
|
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
@@ -91,7 +91,7 @@ pnpm verify:release
|
|
|
91
91
|
|
|
92
92
|
## 兼容性
|
|
93
93
|
|
|
94
|
-
- 基于官方 DeepSeek Harness 发布版构建并测试;peers 声明完整支持清单枚举(`0.1.0-rc.2` → `0.2.1-rc.
|
|
94
|
+
- 基于官方 DeepSeek Harness 发布版构建并测试;peers 声明完整支持清单枚举(`0.1.0-rc.2` → `0.2.1-rc.2` 七条线),仅使用公开的插件与 Profile API。支持清单由 `scripts/sync-hosts.mjs` 从 `scripts/hosts.mjs` 生成到上方管理块。
|
|
95
95
|
- 需要 Node `^22.19.0 || >=24` 与 pnpm `11.7.0`。
|
|
96
96
|
- 插件只使用 Harness 公开扩展 API,不修改 Harness 核心代码。非官方社区项目,与 DeepSeek 无隶属或背书关系。
|
|
97
97
|
|
package/SECURITY.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Security policy
|
|
2
|
-
|
|
3
|
-
## Supported versions
|
|
4
|
-
|
|
5
|
-
During the initial release, only the newest published Beta or stable version is supported. Compatibility is limited to the Harness versions listed in the README.
|
|
6
|
-
|
|
7
|
-
## Reporting a vulnerability
|
|
8
|
-
|
|
9
|
-
Please use GitHub's private **Report a vulnerability** flow for this repository. Do not open a public issue containing secrets, exploit details, private Session data, prompts, tool results, or user paths.
|
|
10
|
-
|
|
11
|
-
Include the affected plugin version, Harness version, minimal reproduction, impact, and whether the issue can alter Session surface/recovery behavior. We will acknowledge a valid report as soon as practical, investigate privately, and publish a coordinated fix and advisory when appropriate.
|
|
12
|
-
|
|
13
|
-
## Security posture
|
|
14
|
-
|
|
15
|
-
- The Bundle does not require credentials of its own.
|
|
16
|
-
- Compression and recovery are same-Session operations; audit records omit model-visible content.
|
|
17
|
-
- Unknown models, tokenizer integrity failures, malformed policies, unsafe tool groups, and incomplete exact measurements fail open.
|
|
18
|
-
- NPM tarballs use explicit file allowlists and do not ship source maps, user logs, Sessions, or local configuration.
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Supported versions
|
|
4
|
+
|
|
5
|
+
During the initial release, only the newest published Beta or stable version is supported. Compatibility is limited to the Harness versions listed in the README.
|
|
6
|
+
|
|
7
|
+
## Reporting a vulnerability
|
|
8
|
+
|
|
9
|
+
Please use GitHub's private **Report a vulnerability** flow for this repository. Do not open a public issue containing secrets, exploit details, private Session data, prompts, tool results, or user paths.
|
|
10
|
+
|
|
11
|
+
Include the affected plugin version, Harness version, minimal reproduction, impact, and whether the issue can alter Session surface/recovery behavior. We will acknowledge a valid report as soon as practical, investigate privately, and publish a coordinated fix and advisory when appropriate.
|
|
12
|
+
|
|
13
|
+
## Security posture
|
|
14
|
+
|
|
15
|
+
- The Bundle does not require credentials of its own.
|
|
16
|
+
- Compression and recovery are same-Session operations; audit records omit model-visible content.
|
|
17
|
+
- Unknown models, tokenizer integrity failures, malformed policies, unsafe tool groups, and incomplete exact measurements fail open.
|
|
18
|
+
- NPM tarballs use explicit file allowlists and do not ship source maps, user logs, Sessions, or local configuration.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# Third-party notices
|
|
2
|
-
|
|
3
|
-
This community project contains code adapted from the MIT-licensed [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), verified against tag `dsh-v0.1.1-rc.2`, commit `b150a551b8d465e31e418e1b2eaf5e79bbb7d28e`.
|
|
4
|
-
|
|
5
|
-
The runtime package distributes tokenizer assets from these pinned official repositories, both under the MIT license:
|
|
6
|
-
|
|
7
|
-
- [deepseek-ai/DeepSeek-V4-Pro](https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro) at revision `0e1a0e5e52aea73055f50fef6f2423db370265b6`, recorded in `packages/selector/assets/deepseek-v4/manifest.json`.
|
|
8
|
-
- [deepseek-ai/DeepSeek-V4-Flash-Vision-Exp](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-Vision-Exp) at revision `6821d6ad3681a4b137b066b76094fa82ebd0a380`, recorded in `packages/selector/assets/deepseek-v4-vision-exp/manifest.json`. The vision model is served by this distinct tokenizer, never as an alias of the text tokenizer.
|
|
9
|
-
|
|
10
|
-
Exact file sizes and SHA-256 values are recorded in each directory's `manifest.json`; the upstream license text ships beside the assets.
|
|
11
|
-
|
|
12
|
-
The install-time production dependency closure also contains `@huggingface/tokenizers` (Apache-2.0), `js-yaml` (MIT), and its `argparse` dependency (Python-2.0). Each dependency ships its own license text in its NPM package.
|
|
13
|
-
|
|
14
|
-
The names DeepSeek and DeepSeek Harness identify upstream projects only. They do not imply affiliation or endorsement.
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
This community project contains code adapted from the MIT-licensed [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), verified against tag `dsh-v0.1.1-rc.2`, commit `b150a551b8d465e31e418e1b2eaf5e79bbb7d28e`.
|
|
4
|
+
|
|
5
|
+
The runtime package distributes tokenizer assets from these pinned official repositories, both under the MIT license:
|
|
6
|
+
|
|
7
|
+
- [deepseek-ai/DeepSeek-V4-Pro](https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro) at revision `0e1a0e5e52aea73055f50fef6f2423db370265b6`, recorded in `packages/selector/assets/deepseek-v4/manifest.json`.
|
|
8
|
+
- [deepseek-ai/DeepSeek-V4-Flash-Vision-Exp](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-Vision-Exp) at revision `6821d6ad3681a4b137b066b76094fa82ebd0a380`, recorded in `packages/selector/assets/deepseek-v4-vision-exp/manifest.json`. The vision model is served by this distinct tokenizer, never as an alias of the text tokenizer.
|
|
9
|
+
|
|
10
|
+
Exact file sizes and SHA-256 values are recorded in each directory's `manifest.json`; the upstream license text ships beside the assets.
|
|
11
|
+
|
|
12
|
+
The install-time production dependency closure also contains `@huggingface/tokenizers` (Apache-2.0), `js-yaml` (MIT), and its `argparse` dependency (Python-2.0). Each dependency ships its own license text in its NPM package.
|
|
13
|
+
|
|
14
|
+
The names DeepSeek and DeepSeek Harness identify upstream projects only. They do not imply affiliation or endorsement.
|