dsh-context-compression-improved 0.9.7 → 0.9.9-beta.0
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/LICENSE +21 -21
- package/README.md +15 -98
- package/README.zh.md +14 -92
- package/THIRD_PARTY_NOTICES.md +32 -14
- package/{packages/selector/cordis.patch.yml → cordis.patch.yml} +27 -27
- package/{packages/selector/dsh.plugin.json → dsh.plugin.json} +2 -2
- package/{packages/selector/lib → lib}/client.d.ts +16 -0
- package/{packages/selector/lib → lib}/client.js +393 -116
- package/{packages/selector/lib → lib}/index.js +829 -10
- package/{packages/selector/lib → lib}/invariant.js +2 -1
- package/{packages/selector/lib → lib}/pruner.d.ts +1 -1
- package/{packages/selector/lib → lib}/pruner.js +77 -983
- package/lib/savings-integral.js +4515 -0
- package/{packages/selector/lib → lib}/tail-trim.js +2 -90
- package/lib/tool-result.js +150 -0
- package/package.json +129 -116
- package/screenshots.json +3 -6
- package/.gitattributes +0 -2
- package/.githooks/pre-push +0 -37
- package/.github/workflows/ci.yml +0 -39
- package/CHANGELOG.de.md +0 -580
- package/CHANGELOG.es.md +0 -588
- package/CHANGELOG.fr.md +0 -576
- package/CHANGELOG.it.md +0 -577
- package/CHANGELOG.ja.md +0 -261
- package/CHANGELOG.ko.md +0 -254
- package/CHANGELOG.md +0 -532
- package/CHANGELOG.ru.md +0 -554
- package/CHANGELOG.zh.md +0 -236
- package/CONTRIBUTING.md +0 -22
- package/README.de.md +0 -96
- package/README.es.md +0 -96
- package/README.fr.md +0 -96
- package/README.it.md +0 -96
- package/README.ja.md +0 -102
- package/README.ko.md +0 -102
- package/README.ru.md +0 -96
- package/SECURITY.md +0 -18
- package/assets/board.png +0 -0
- package/assets/context.png +0 -0
- package/docs/assets/context-compression-selector-profiles.jpg +0 -0
- package/docs/assets/context-compression-selector-settings.png +0 -0
- package/docs/compat-0.1.5-report.md +0 -77
- package/docs/installation.de.md +0 -104
- package/docs/installation.es.md +0 -104
- package/docs/installation.fr.md +0 -104
- package/docs/installation.it.md +0 -104
- package/docs/installation.ja.md +0 -78
- package/docs/installation.ko.md +0 -78
- package/docs/installation.md +0 -103
- package/docs/installation.ru.md +0 -104
- package/docs/installation.zh.md +0 -100
- package/docs/repair-log.md +0 -657
- package/eslint.config.js +0 -30
- package/packages/selector/LICENSE +0 -21
- package/packages/selector/README.md +0 -26
- package/packages/selector/README.zh.md +0 -24
- package/packages/selector/THIRD_PARTY_NOTICES.md +0 -32
- package/packages/selector/docs/history-tool-call-working-set-spec.md +0 -112
- package/packages/selector/docs/native-tool-result-selector-spec.md +0 -34
- package/packages/selector/docs/subagent-cache-reuse-spec.md +0 -46
- package/packages/selector/lib/config.js +0 -1777
- package/packages/selector/lib/host-generation.js +0 -62
- package/packages/selector/lib/style.css +0 -350
- package/packages/selector/package.json +0 -174
- package/packages/selector/screenshots.json +0 -3
- package/packages/selector/src/client/CompressionProfileControls.tsx +0 -293
- package/packages/selector/src/client/CompressionProfileSelector.module.css +0 -199
- package/packages/selector/src/client/CompressionProfileSelector.tsx +0 -85
- package/packages/selector/src/client/CustomPolicyEditor.tsx +0 -216
- package/packages/selector/src/client/EstimatorControls.tsx +0 -277
- package/packages/selector/src/client/bridge-scope.ts +0 -125
- package/packages/selector/src/client/decode.ts +0 -57
- package/packages/selector/src/client/index.ts +0 -421
- package/packages/selector/src/client/locales/de.ts +0 -142
- package/packages/selector/src/client/locales/es.ts +0 -142
- package/packages/selector/src/client/locales/fr.ts +0 -142
- package/packages/selector/src/client/locales/it.ts +0 -142
- package/packages/selector/src/client/locales/ja.ts +0 -142
- package/packages/selector/src/client/locales/ko.ts +0 -142
- package/packages/selector/src/client/locales/ru.ts +0 -142
- package/packages/selector/src/client/locales.ts +0 -284
- package/packages/selector/src/client/monitor-fab.ts +0 -349
- package/packages/selector/src/client/preset-options.ts +0 -88
- package/packages/selector/src/client/savings-card.tsx +0 -150
- package/packages/selector/src/client/scope-face.ts +0 -24
- package/packages/selector/src/client/settings-section.tsx +0 -140
- package/packages/selector/src/compat/host-generation.ts +0 -96
- package/packages/selector/src/compat/llm-messages.ts +0 -50
- package/packages/selector/src/compat/settings-lease.ts +0 -108
- package/packages/selector/src/compat/tool-result.ts +0 -91
- package/packages/selector/src/css-modules.d.ts +0 -6
- package/packages/selector/src/deepseek-v4-tokenizer.ts +0 -205
- package/packages/selector/src/estimator-catalog.ts +0 -104
- package/packages/selector/src/index.ts +0 -655
- package/packages/selector/src/invariant.ts +0 -113
- package/packages/selector/src/preset-overlay.ts +0 -749
- package/packages/selector/src/profiles.ts +0 -431
- package/packages/selector/src/pruner/content.ts +0 -198
- package/packages/selector/src/pruner/session.ts +0 -97
- package/packages/selector/src/pruner/state.ts +0 -61
- package/packages/selector/src/pruner/tuning.ts +0 -23
- package/packages/selector/src/pruner/types.ts +0 -78
- package/packages/selector/src/pruner.ts +0 -2868
- package/packages/selector/src/runtime/adaptive-cost.ts +0 -205
- package/packages/selector/src/runtime/audit.ts +0 -303
- package/packages/selector/src/runtime/config.ts +0 -756
- package/packages/selector/src/runtime/custom-policy.ts +0 -278
- package/packages/selector/src/runtime/deepseek-official-pricing.ts +0 -298
- package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +0 -254
- package/packages/selector/src/runtime/measurement.ts +0 -444
- package/packages/selector/src/runtime/monitor.ts +0 -235
- package/packages/selector/src/runtime/reducers.ts +0 -1754
- package/packages/selector/src/runtime/retrieve.ts +0 -484
- package/packages/selector/src/runtime/savings-projection.ts +0 -226
- package/packages/selector/src/runtime/savings.ts +0 -417
- package/packages/selector/src/runtime/session-events.ts +0 -30
- package/packages/selector/src/runtime/summary-command.ts +0 -127
- package/packages/selector/src/runtime/tail-trim.ts +0 -176
- package/packages/selector/src/runtime/token-count.ts +0 -72
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +0 -233
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +0 -204
- package/packages/selector/src/runtime/tokenpilot/advisor.ts +0 -419
- package/packages/selector/src/runtime/tokenpilot/benefit.ts +0 -200
- package/packages/selector/src/runtime/tokenpilot/dedup.ts +0 -81
- package/packages/selector/src/runtime/tokenpilot/estimator.ts +0 -151
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +0 -53
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +0 -65
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +0 -125
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +0 -37
- package/packages/selector/src/runtime/tokenpilot/locator.ts +0 -128
- package/packages/selector/src/runtime/tokenpilot/read-state.ts +0 -98
- package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +0 -303
- package/packages/selector/src/runtime/toolclass.ts +0 -103
- package/packages/selector/src/runtime/types.ts +0 -365
- package/packages/selector/src/runtime/value.ts +0 -48
- package/packages/selector/src/settings-bridge.ts +0 -175
- package/packages/selector/tests/advisor-report.host.spec.ts +0 -223
- package/packages/selector/tests/auto-compact.client.spec.tsx +0 -214
- package/packages/selector/tests/built/client-artifact.spec.ts +0 -56
- package/packages/selector/tests/cache-prefix-audit.spec.ts +0 -123
- package/packages/selector/tests/code-skeleton.client.spec.ts +0 -98
- package/packages/selector/tests/compat/compat-narrow-waist.spec.ts +0 -150
- package/packages/selector/tests/custom-contract.client.spec.ts +0 -226
- package/packages/selector/tests/estimator-catalog.spec.ts +0 -70
- package/packages/selector/tests/estimator-channel.client.spec.tsx +0 -253
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +0 -199
- package/packages/selector/tests/helpers/legacy-namespace.ts +0 -35
- package/packages/selector/tests/helpers/legacy-settings/index.ts +0 -15
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +0 -41
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +0 -647
- package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +0 -78
- package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +0 -234
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +0 -204
- package/packages/selector/tests/monitor-fab.client.spec.ts +0 -138
- package/packages/selector/tests/preset-options-write.client.spec.ts +0 -192
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +0 -200
- package/packages/selector/tests/preset-overlay.host.spec.ts +0 -246
- package/packages/selector/tests/profiles.client.spec.tsx +0 -436
- package/packages/selector/tests/public/package-contract.client.spec.ts +0 -86
- package/packages/selector/tests/runtime/adaptive-cost.spec.ts +0 -167
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +0 -230
- package/packages/selector/tests/runtime/advisor-invariant.spec.ts +0 -272
- package/packages/selector/tests/runtime/advisor.spec.ts +0 -226
- package/packages/selector/tests/runtime/audit.spec.ts +0 -275
- package/packages/selector/tests/runtime/auto-compact-config.spec.ts +0 -523
- package/packages/selector/tests/runtime/char-basis.spec.ts +0 -30
- package/packages/selector/tests/runtime/code-skeleton.spec.ts +0 -152
- package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +0 -186
- package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +0 -122
- package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +0 -122
- package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +0 -96
- package/packages/selector/tests/runtime/fixtures/profile-baseline.json +0 -273
- package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +0 -106
- package/packages/selector/tests/runtime/fixtures/vision-golden.json +0 -459
- package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +0 -74
- package/packages/selector/tests/runtime/fresh-gate.spec.ts +0 -43
- package/packages/selector/tests/runtime/html-reducer.spec.ts +0 -212
- package/packages/selector/tests/runtime/intent-gate.spec.ts +0 -62
- package/packages/selector/tests/runtime/intent-summary.spec.ts +0 -156
- package/packages/selector/tests/runtime/jsonl-reducer.spec.ts +0 -79
- package/packages/selector/tests/runtime/line-mapping.spec.ts +0 -153
- package/packages/selector/tests/runtime/monitor.spec.ts +0 -301
- package/packages/selector/tests/runtime/prose-reducers.spec.ts +0 -133
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +0 -2782
- package/packages/selector/tests/runtime/read-input-cap.spec.ts +0 -33
- package/packages/selector/tests/runtime/savings-projection.spec.ts +0 -89
- package/packages/selector/tests/runtime/savings.spec.ts +0 -139
- package/packages/selector/tests/runtime/search-reducer.spec.ts +0 -110
- package/packages/selector/tests/runtime/session-events.spec.ts +0 -27
- package/packages/selector/tests/runtime/settings-unwrap.spec.ts +0 -58
- package/packages/selector/tests/runtime/sidechannel.spec.ts +0 -241
- package/packages/selector/tests/runtime/summary-command.spec.ts +0 -154
- package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +0 -159
- package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +0 -53
- package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +0 -217
- package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +0 -52
- package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +0 -79
- package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +0 -76
- package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +0 -119
- package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +0 -82
- package/packages/selector/tests/runtime/toolclass.spec.ts +0 -156
- package/packages/selector/tests/runtime/value.spec.ts +0 -23
- package/packages/selector/tests/settings-seat.client.spec.ts +0 -215
- package/packages/selector/tests/standing-generation.host.spec.ts +0 -724
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +0 -269
- package/packages/selector/tests/support/cache-prefix-audit.ts +0 -105
- package/packages/selector/tests/support/mock-adapter.ts +0 -37
- package/packages/selector/tests/support/ui-primitives.tsx +0 -34
- package/packages/selector/tsconfig.json +0 -11
- package/packages/selector/tsdown.client.config.ts +0 -102
- package/packages/selector/tsdown.config.ts +0 -20
- package/pnpm-workspace.yaml +0 -72
- package/scripts/capture-profile-baseline.mjs +0 -42
- package/scripts/cell-browser-e2e.mjs +0 -354
- package/scripts/generate-tokenizer-fixtures.py +0 -81
- package/scripts/generate-vision-fixtures.py +0 -208
- package/scripts/hosts.mjs +0 -77
- package/scripts/packed-components-smoke.mjs +0 -763
- package/scripts/packed-install-e2e.mjs +0 -1346
- package/scripts/sync-hosts.mjs +0 -174
- package/scripts/toolclass-corpus-replay.mjs +0 -281
- package/scripts/verify-release.mjs +0 -335
- package/tests/TEST_INVENTORY.md +0 -41
- package/tsconfig.base.json +0 -18
- package/tsconfig.json +0 -7
- package/tsconfig.tests.json +0 -15
- package/vitest.built.config.ts +0 -9
- package/vitest.config.ts +0 -46
- /package/{packages/selector/assets → assets}/deepseek-v4/LICENSE.DeepSeek-V4-Pro.txt +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4/manifest.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4/tokenizer.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4/tokenizer_config.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/LICENSE.DeepSeek-V4-Flash-Vision-Exp.txt +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/manifest.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/tokenizer.json +0 -0
- /package/{packages/selector/assets → assets}/deepseek-v4-vision-exp/tokenizer_config.json +0 -0
- /package/{packages/selector/lib → lib}/index.d.ts +0 -0
- /package/{packages/selector/lib → lib}/invariant.d.ts +0 -0
- /package/{packages/selector/lib → lib}/profiles.d.ts +0 -0
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.md
CHANGED
|
@@ -1,109 +1,26 @@
|
|
|
1
1
|
# dsh-context-compression-improved
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The installable Product Bundle for the unofficial community DeepSeek Harness context-compression selector.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
> [!NOTE]
|
|
8
|
-
> **What this fork adds on top of upstream 0.1.0:**
|
|
9
|
-
>
|
|
10
|
-
> - 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
|
-
> - A settings toggle for that gate in the same selector settings section, independent of every compression profile.
|
|
12
|
-
> - An ESLint baseline wired into CI, a `test:watch` TDD loop, and documentation in English, Simplified Chinese, Japanese, and Korean.
|
|
13
|
-
|
|
14
|
-
> [!IMPORTANT]
|
|
15
|
-
> This project supports **DeepSeek models only**. Lossless measurement and lossy compression depend on the bundled official DeepSeek tokenizers (`deepseek-v4-flash`, `deepseek-v4-pro`, `deepseek-v4-flash-vision-exp`). Everything else fails open and keeps original tool results. See the [upstream README](https://github.com/WilliamShi666/dsh-context-compression-selector#model-support-and-safety) for the full safety model.
|
|
16
|
-
|
|
17
|
-
> [!TIP]
|
|
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
|
-
|
|
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` (16 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
|
-
<!-- host-compat:end -->
|
|
23
|
-
|
|
24
|
-
## What it is
|
|
25
|
-
|
|
26
|
-
Long-running agent tasks accumulate a large amount of tool output. This community plugin adds selectable, auditable policies for reducing that tool-result context without modifying DeepSeek Harness core:
|
|
27
|
-
|
|
28
|
-
- **Fresh** pre-compresses a newly oversized tool-result segment before the model receives it.
|
|
29
|
-
- **Aggregate** pre-compresses fresh material again when it still grows beyond its budget.
|
|
30
|
-
- **History / micro-compact** replaces eligible old tool results while preserving recent working context.
|
|
31
|
-
- **TailTrim** is an optional Custom-only tail reduction path.
|
|
32
|
-
- **Native** preserves the Harness-style head/middle/tail trimming as one explicit profile.
|
|
33
|
-
- **Code skeleton (new, orthogonal gate)** — see below.
|
|
34
|
-
|
|
35
|
-
Every decision is recorded: stage, reducer, trigger, skip reason, and exact token counts where available.
|
|
36
|
-
|
|
37
|
-
## Code skeleton gate (new)
|
|
38
|
-
|
|
39
|
-
When the gate is enabled, an oversized **fresh source-code tool result** (for example a large `read_file`) first tries a skeleton reduction: imports and type/function/class declarations are kept, function bodies are elided with a marker, and error lines inside elided bodies are preserved. If the skeleton cannot be produced or verified, the result falls back to the original head pruning — the gate can never make context worse.
|
|
40
|
-
|
|
41
|
-
Properties:
|
|
42
|
-
|
|
43
|
-
- **Orthogonal**: independent of the selected profile (`balanced`, `savings`, `cache-strict`, `adaptive`, `custom`, `off`, `native`). All profiles get the gate.
|
|
44
|
-
- **Off by default**: `codeSkeleton: { enabled: false }` until you turn it on.
|
|
45
|
-
- **Measurement-gated**: requires the exact DeepSeek tokenizer; without it the plugin fails open.
|
|
46
|
-
- **Session-frozen**: like all selector settings, changes affect newly observed sessions only.
|
|
47
|
-
- **Strictly parsed**: `codeSkeleton` must be exactly `{ enabled: boolean }`; malformed values throw on the runtime side and show as unreadable in the browser UI.
|
|
48
|
-
|
|
49
|
-
## Settings UI
|
|
50
|
-
|
|
51
|
-
Choose a compression profile, set the Auto Compact trigger level, and toggle code-skeleton compression in the same settings section. The toggle saves on change and shows the saved state on reload.
|
|
52
|
-
|
|
53
|
-

|
|
54
|
-
|
|
55
|
-
## Monitoring UI
|
|
56
|
-
|
|
57
|
-
While compression runs, the plugin gives you a live view of what it saves: a **compression monitor** panel — net/gross savings, offsets, context usage, cache-hit rate, cost estimate, and the turn-tail intent-summary state, with a per-session resume/disable override right in the panel — next to the session's context trend chart.
|
|
58
|
-
|
|
59
|
-

|
|
60
|
-
|
|
61
|
-
Context trend for a session under compression: per-step / per-turn token composition with a timing overlay; the scissors mark where reductions landed.
|
|
62
|
-
|
|
63
|
-

|
|
64
|
-
|
|
65
|
-
## Install
|
|
66
|
-
|
|
67
|
-
**Recommended: install from npm.** One version covers every supported Harness line — `latest` carries the full 16-rc enum (0.1.0-rc.2 → 0.2.1-rc.1); the runtime picks per-line code paths on its own.
|
|
5
|
+
**0.1.0 highlights:** DeepSeek V4 Flash Vision's official tokenizer is included; users can choose the model-driven Auto Compact threshold; standard profile watermarks and compression parameters follow that choice.
|
|
68
6
|
|
|
69
7
|
```sh
|
|
70
|
-
dsh plugin --profile web add dsh-context-compression-improved@latest
|
|
71
|
-
dsh --profile web --dump-config
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
From source (alternative — the internal package names intentionally stay upstream's):
|
|
75
|
-
|
|
76
8
|
```sh
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
9
|
+
dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.5
|
|
10
|
+
# DSH 0.1.2 line:
|
|
11
|
+
# dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.2
|
|
12
|
+
dsh --profile web --dump-config
|
|
81
13
|
```
|
|
82
|
-
|
|
83
|
-
Then pack the selector package and add it to a Harness profile — the full walkthrough, including verification and uninstall steps, is in the [installation guide](docs/installation.md).
|
|
84
|
-
|
|
85
|
-
## Development
|
|
86
|
-
|
|
87
|
-
```sh
|
|
88
|
-
pnpm install --frozen-lockfile
|
|
89
|
-
pnpm lint # ESLint baseline (also enforced in CI)
|
|
90
|
-
pnpm typecheck # runtime + selector + tests tsc, plus the bundle step
|
|
91
|
-
pnpm test # full vitest suite
|
|
92
|
-
pnpm test:watch # TDD loop: write the failing regression first, then make it pass
|
|
93
|
-
pnpm build
|
|
94
|
-
pnpm verify:release
|
|
14
|
+
dsh --profile web --dump-config
|
|
95
15
|
```
|
|
96
16
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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.
|
|
17
|
+
This one command installs the single `dsh-context-compression-improved` package: the compression
|
|
18
|
+
runtime, the Host settings, the Web UI and the reversible preset overlay all ship in it.
|
|
19
|
+
The Bundle contributes Host settings, the Web UI, and a reversible preset overlay. All presets
|
|
20
|
+
except the exact built-in `minimal` id receive the compression stack; switching non-Minimal
|
|
21
|
+
presets preserves the saved selector settings. Minimal pauses plugin compression without
|
|
22
|
+
deleting the setting.
|
|
104
23
|
|
|
105
|
-
|
|
24
|
+
Verified compatibility: DeepSeek Harness `dsh-v0.1.1-rc.2` and `dsh-v0.1.2-alpha.5`, Node `^22.19.0 || >=24`. No Harness core patch is required.
|
|
106
25
|
|
|
107
|
-
|
|
108
|
-
- Fork additions (code-skeleton gate, tooling, localized docs): drscrewdriver.
|
|
109
|
-
- MIT — see [LICENSE](LICENSE) (upstream copyright notice retained) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for bundled tokenizer provenance.
|
|
26
|
+
See the [full README](https://github.com/WilliamShi666/dsh-context-compression-improved#readme) for profiles, defaults, audit evidence, Adaptive/cache limitations, upgrade/removal, and security guidance. This package is not affiliated with or endorsed by DeepSeek.
|
package/README.zh.md
CHANGED
|
@@ -1,102 +1,24 @@
|
|
|
1
1
|
# dsh-context-compression-improved
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
这是可直接安装的非官方社区 DeepSeek Harness 上下文压缩选择器 Product Bundle。
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
> [!NOTE]
|
|
8
|
-
> **本fork 在上游 0.1.0 之上新增:*
|
|
9
|
-
>
|
|
10
|
-
> - 正交的**代码骨架压缩门**(`codeSkeleton.enabled`,默认关闭):超大源码类工具结果首次曝光时,可先保留导入与声明的骨架——省略函数体并保留错误行——再进入常规 reducer。
|
|
11
|
-
> - 同一选择器设置区内新增该门的开关,独立于所有压缩 Profile。
|
|
12
|
-
> - 接入 CI 的 ESLint 基线、`test:watch` TDD 环路,以及英/中日韩四语文档。
|
|
13
|
-
|
|
14
|
-
> [!IMPORTANT]
|
|
15
|
-
> 本项目仅支持 **DeepSeek 模型**。无损测量与有损压缩依赖内置的 DeepSeek 官方 tokenizer(`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
|
-
|
|
17
|
-
> [!TIP]
|
|
18
|
-
> **推荐接入方式:用 API key 以自定义 Responses API 连接 DeepSeek。** 建议走自定义 OpenAI 兼容端点(`/v1/responses`)而不是官方账号的 Messages API 路由:前者不经过 Anthropic 风格的消息序列化,不会因为 message 格式而出现问题,可避开 `tool_use`/`tool_result` 配对校验限制(官方路由 resume-replay 时的 400 插件侧无法修复);也便于按时间切换节点后接续会话。
|
|
19
|
-
|
|
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 七条线共 16 个 rc)
|
|
22
|
-
<!-- host-compat:end -->
|
|
23
|
-
|
|
24
|
-
## 它是什么
|
|
25
|
-
|
|
26
|
-
长时运行的 agent 任务会积累大量工具输出。本社区插件在不修改 DeepSeek Harness 核心的前提下,提供可选、可审计的工具结果上下文压缩策略:
|
|
27
|
-
|
|
28
|
-
- **Fresh**:在模型收到之前,预压缩新近超限的工具结果段。
|
|
29
|
-
- **Aggregate**:当 Fresh 压缩后仍超出预算时再次预压缩。
|
|
30
|
-
- **History / micro-compact**:在保护近期工作上下文的前提下替换符合条件的旧工具结果。
|
|
31
|
-
- **TailTrim**:仅在 Custom 下可选的尾窗收缩路径。
|
|
32
|
-
- **Native**:把 Harness 原生头中尾裁剪保留为一个显式 Profile。
|
|
33
|
-
- **代码骨架(新增,正交门)**——见下节。
|
|
34
|
-
|
|
35
|
-
每个决策都会留痕:阶段、reducer、触发原因、跳过原因,以及可得时的精确 token 数。
|
|
36
|
-
|
|
37
|
-
## 代码骨架门(新增)
|
|
38
|
-
|
|
39
|
-
开启后,超大**源码类新工具结果**(例如大型 `read_file`)会先尝试骨架化压缩:保留导入与类型/函数/类声明,省略函数体并加占位标记,被省略函数体内的错误行予以保留。若骨架无法生成或无法通过验证,则回退到原有的头部裁剪——这道门不会让上下文变得更差。
|
|
40
|
-
|
|
41
|
-
特性:
|
|
42
|
-
|
|
43
|
-
- **正交**:独立于所选 Profile(`balanced`、`savings`、`cache-strict`、`adaptive`、`custom`、`off`、`native`),所有 Profile 都能拿到这道门。
|
|
44
|
-
- **默认关闭**:`codeSkeleton: { enabled: false }`,需要显式开启。
|
|
45
|
-
- **测量前置**:需要精确 DeepSeek tokenizer;不可用时 fail-open。
|
|
46
|
-
- **会话冻结**:与所有选择器设置一致,修改只影响新观察的会话。
|
|
47
|
-
- **严格解析**:`codeSkeleton` 必须恰好是 `{ enabled: boolean }`;畸形输入在运行时侧抛错、浏览器侧显示不可读。
|
|
48
|
-
|
|
49
|
-
## 设置界面
|
|
50
|
-
|
|
51
|
-
在同一设置区内选择压缩 Profile、调整 Auto Compact 触发水位,并开关代码骨架压缩。开关即改即存,刷新后显示已保存状态。
|
|
52
|
-
|
|
53
|
-

|
|
54
|
-
|
|
55
|
-
## 监控界面
|
|
56
|
-
|
|
57
|
-
压缩运行时,插件提供节省量的实时视图:**压缩监控**悬浮面板——净节省/毛节省/抵消/上下文占用/缓存命中率/成本估算/回合末意图摘要状态,面板内可直接对当前会话恢复或停用——以及会话的上下文趋势图。
|
|
58
|
-
|
|
59
|
-

|
|
60
|
-
|
|
61
|
-
压缩会话的上下文趋势:逐步骤/轮次的 token 组成与耗时叠加,剪刀标记指示裁剪/折叠落点。
|
|
62
|
-
|
|
63
|
-

|
|
64
|
-
|
|
65
|
-
## 安装
|
|
66
|
-
|
|
67
|
-
从源码构建并安装 —— 本 fork 亦已发布到 npm,包名为 `dsh-context-compression-improved`(单版本覆盖全部支持线:`latest` 携带 16 个 rc 的完整枚举 0.1.0-rc.2 → 0.2.1-rc.1,分线代码路径由运行时自行选择);内部包名有意保持与上游一致:
|
|
5
|
+
**0.1.0 更新:**已加入 DeepSeek V4 Flash 视觉模型的官方 tokenizer;用户可选择模型驱动 Auto Compact 的触发阈值;标准 Profile 的水位与压缩参数会随该选择联动。
|
|
68
6
|
|
|
69
7
|
```sh
|
|
70
|
-
git clone https://github.com/drscrewdriver/dsh-context-compression-improved.git
|
|
71
|
-
cd dsh-context-compression-improved
|
|
72
|
-
pnpm install --frozen-lockfile
|
|
73
|
-
pnpm build
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
随后打包 selector 包并安装到某个 Harness Profile——完整步骤(含验证与卸载)见[安装教程](docs/installation.zh.md)。
|
|
77
|
-
|
|
78
|
-
## 开发
|
|
79
|
-
|
|
80
8
|
```sh
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
pnpm verify:release
|
|
9
|
+
dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.5
|
|
10
|
+
# DSH 0.1.2 line:
|
|
11
|
+
# dsh plugin --profile web add dsh-context-compression-improved@dsh-0.1.2
|
|
12
|
+
dsh --profile web --dump-config
|
|
13
|
+
```
|
|
14
|
+
dsh --profile web --dump-config
|
|
88
15
|
```
|
|
89
16
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
- 基于官方 DeepSeek Harness 发布版构建并测试;peers 声明完整支持清单枚举(`0.1.0-rc.2` → `0.2.1-rc.1` 七条线),仅使用公开的插件与 Profile API。支持清单由 `scripts/sync-hosts.mjs` 从 `scripts/hosts.mjs` 生成到上方管理块。
|
|
95
|
-
- 需要 Node `^22.19.0 || >=24` 与 pnpm `11.7.0`。
|
|
96
|
-
- 插件只使用 Harness 公开扩展 API,不修改 Harness 核心代码。非官方社区项目,与 DeepSeek 无隶属或背书关系。
|
|
17
|
+
这一条命令安装单一的 `dsh-context-compression-improved` 包:压缩运行时、Host 设置、Web UI
|
|
18
|
+
与可逆 preset overlay 全部包含在其中。除 id 精确等于内置 `minimal` 的 preset 外,
|
|
19
|
+
其他 preset 都会获得压缩能力;非 Minimal preset 之间切换时已保存设置保持不变。
|
|
20
|
+
Minimal 只暂停插件压缩,不删除设置。
|
|
97
21
|
|
|
98
|
-
|
|
22
|
+
已验证兼容 DeepSeek Harness `dsh-v0.1.1-rc.2` 与 `dsh-v0.1.2-alpha.5`,Node `^22.19.0 || >=24`。不需要修改 Harness 核心。
|
|
99
23
|
|
|
100
|
-
|
|
101
|
-
- fork 新增内容(代码骨架门、工具链、多语文档):drscrewdriver。
|
|
102
|
-
- MIT——见 [LICENSE](LICENSE)(保留上游版权声明);内置 tokenizer 来源见 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
|
|
24
|
+
Profile、默认值、审计证据、Adaptive/cache 限制、升级/卸载与安全说明见[完整 README](https://github.com/WilliamShi666/dsh-context-compression-improved#readme)。本包与 DeepSeek 无隶属或背书关系。
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
# Third-party notices
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Portions of this package are adapted from the MIT-licensed DeepSeek Harness, verified against `dsh-v0.1.1-rc.2` (`b150a551b8d465e31e418e1b2eaf5e79bbb7d28e`).
|
|
4
|
+
|
|
5
|
+
## DeepSeek Harness MIT notice
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2026 DeepSeek
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
|
|
27
|
+
This package carries the official DeepSeek tokenizer assets, with their exact license and
|
|
28
|
+
provenance manifests, under `assets/`.
|
|
29
|
+
|
|
30
|
+
This package depends on `js-yaml` under MIT; its production dependency `argparse` is licensed under Python-2.0. Their NPM packages carry the dependency license texts.
|
|
31
|
+
|
|
32
|
+
This is an unofficial community package and is not endorsed by DeepSeek.
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# Standalone Profile Bundle entry. The same package may already be present in a
|
|
2
|
-
# Harness distribution; its Host implementation reference-counts the preset
|
|
3
|
-
# decoration so the two rows never install two compression stacks.
|
|
4
|
-
- insert:
|
|
5
|
-
- id: context-compression-improved-bundle
|
|
6
|
-
name: 'dsh-context-compression-improved'
|
|
7
|
-
config:
|
|
8
|
-
presetOverlay: true
|
|
9
|
-
# The HTTP routes ride their own row so the compression stack stays loadable
|
|
10
|
-
# on profiles that have no host web server. Measured on the host source:
|
|
11
|
-
# `dsh-host-webserver.register` performs no authorization check and
|
|
12
|
-
# `ctx.get(name)` only asks whether the providing fiber is active, so this
|
|
13
|
-
# `inject` is belt-and-braces — the row is simply absent instead of
|
|
14
|
-
# announcing a pending route on a webServer-less profile. The two-channel
|
|
15
|
-
# registration inside the plugin covers both arrival orders on its own.
|
|
16
|
-
#
|
|
17
|
-
# `estimatorCatalogRoute` is the only flag this row sets. The retired
|
|
18
|
-
# review gate's `reviewQueueRoute` used to live here; that key no longer
|
|
19
|
-
# exists in the plugin's Config schema (a reduction must never block
|
|
20
|
-
# automatic processing), so setting it would advertise a route that can
|
|
21
|
-
# never register.
|
|
22
|
-
- id: context-compression-improved-estimator-catalog
|
|
23
|
-
name: 'dsh-context-compression-improved'
|
|
24
|
-
inject:
|
|
25
|
-
- webServer
|
|
26
|
-
config:
|
|
27
|
-
estimatorCatalogRoute: true
|
|
1
|
+
# Standalone Profile Bundle entry. The same package may already be present in a
|
|
2
|
+
# Harness distribution; its Host implementation reference-counts the preset
|
|
3
|
+
# decoration so the two rows never install two compression stacks.
|
|
4
|
+
- insert:
|
|
5
|
+
- id: context-compression-improved-bundle
|
|
6
|
+
name: 'dsh-context-compression-improved'
|
|
7
|
+
config:
|
|
8
|
+
presetOverlay: true
|
|
9
|
+
# The HTTP routes ride their own row so the compression stack stays loadable
|
|
10
|
+
# on profiles that have no host web server. Measured on the host source:
|
|
11
|
+
# `dsh-host-webserver.register` performs no authorization check and
|
|
12
|
+
# `ctx.get(name)` only asks whether the providing fiber is active, so this
|
|
13
|
+
# `inject` is belt-and-braces — the row is simply absent instead of
|
|
14
|
+
# announcing a pending route on a webServer-less profile. The two-channel
|
|
15
|
+
# registration inside the plugin covers both arrival orders on its own.
|
|
16
|
+
#
|
|
17
|
+
# `estimatorCatalogRoute` is the only flag this row sets. The retired
|
|
18
|
+
# review gate's `reviewQueueRoute` used to live here; that key no longer
|
|
19
|
+
# exists in the plugin's Config schema (a reduction must never block
|
|
20
|
+
# automatic processing), so setting it would advertise a route that can
|
|
21
|
+
# never register.
|
|
22
|
+
- id: context-compression-improved-estimator-catalog
|
|
23
|
+
name: 'dsh-context-compression-improved'
|
|
24
|
+
inject:
|
|
25
|
+
- webServer
|
|
26
|
+
config:
|
|
27
|
+
estimatorCatalogRoute: true
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-context-compression-improved",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9-beta.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "Auditable tool-result context-compression selector with code-skeleton gate for DeepSeek Harness",
|
|
6
6
|
"engines": {
|
|
7
|
-
"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"
|
|
7
|
+
"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"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [],
|
|
@@ -81,6 +81,14 @@ declare const zh: {
|
|
|
81
81
|
'monitor.panel.net': string;
|
|
82
82
|
'monitor.panel.gross': string;
|
|
83
83
|
'monitor.panel.offsets': string;
|
|
84
|
+
'monitor.panel.totalNet': string;
|
|
85
|
+
'monitor.panel.totalGross': string;
|
|
86
|
+
'monitor.panel.totalOffsets': string;
|
|
87
|
+
'monitor.panel.compositionBackfill': string;
|
|
88
|
+
'monitor.panel.cumulative': string;
|
|
89
|
+
'monitor.panel.money': string;
|
|
90
|
+
'monitor.panel.composition': string;
|
|
91
|
+
'monitor.panel.compositionScope': string;
|
|
84
92
|
'monitor.panel.context': string;
|
|
85
93
|
'monitor.panel.suggest': string;
|
|
86
94
|
'monitor.panel.cacheHit': string;
|
|
@@ -145,6 +153,14 @@ declare const zh: {
|
|
|
145
153
|
'savings.actualCost': string;
|
|
146
154
|
'savings.savedMoney': string;
|
|
147
155
|
'savings.perSession': string;
|
|
156
|
+
'savings.focus': string;
|
|
157
|
+
'savings.degraded': string;
|
|
158
|
+
'savings.persisted': string;
|
|
159
|
+
'savings.pageNext': string;
|
|
160
|
+
'savings.pagePrev': string;
|
|
161
|
+
'savings.sessions': string;
|
|
162
|
+
'savings.money': string;
|
|
163
|
+
'savings.cumulative': string;
|
|
148
164
|
};
|
|
149
165
|
/** Locale keys that every context-compression selector dictionary must provide. */
|
|
150
166
|
type ContextCompressionLocaleKey = keyof typeof zh;
|