dsh-context-compression-improved 0.8.0-beta.2 → 0.8.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/eslint.config.js +30 -30
- package/package.json +163 -163
- package/packages/selector/dsh.plugin.json +16 -16
- package/packages/selector/lib/client.d.ts +20 -0
- package/packages/selector/lib/client.js +433 -17
- package/packages/selector/lib/index.js +213 -2
- package/packages/selector/lib/{advisor-state.js → intent-gate.js} +593 -3
- package/packages/selector/lib/profiles.d.ts +9 -0
- package/packages/selector/lib/pruner.d.ts +59 -0
- package/packages/selector/lib/pruner.js +494 -262
- package/packages/selector/lib/style.css +42 -0
- package/packages/selector/src/client/CompressionProfileControls.tsx +34 -0
- package/packages/selector/src/client/CompressionProfileSelector.module.css +199 -170
- package/packages/selector/src/client/CompressionProfileSelector.tsx +1 -0
- package/packages/selector/src/client/decode.ts +53 -49
- package/packages/selector/src/client/index.ts +4 -0
- package/packages/selector/src/client/locales/de.ts +20 -0
- package/packages/selector/src/client/locales/es.ts +20 -0
- package/packages/selector/src/client/locales/fr.ts +20 -0
- package/packages/selector/src/client/locales/it.ts +20 -0
- package/packages/selector/src/client/locales/ja.ts +20 -0
- package/packages/selector/src/client/locales/ko.ts +20 -0
- package/packages/selector/src/client/locales/ru.ts +20 -0
- package/packages/selector/src/client/locales.ts +236 -196
- package/packages/selector/src/client/savings-card.tsx +150 -0
- package/packages/selector/src/client/settings-section.tsx +133 -124
- package/packages/selector/src/index.ts +554 -411
- package/packages/selector/src/profiles.ts +414 -394
- package/packages/selector/src/pruner/state.ts +57 -50
- package/packages/selector/src/pruner.ts +2745 -2421
- package/packages/selector/src/runtime/audit.ts +303 -286
- package/packages/selector/src/runtime/config.ts +731 -706
- package/packages/selector/src/runtime/retrieve.ts +479 -457
- package/packages/selector/src/runtime/savings.ts +337 -0
- package/packages/selector/src/runtime/summary-command.ts +127 -0
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +233 -188
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +204 -149
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +53 -0
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +65 -0
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +125 -0
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +37 -0
- package/packages/selector/src/runtime/types.ts +358 -346
- package/packages/selector/tests/auto-compact.client.spec.tsx +214 -213
- package/packages/selector/tests/code-skeleton.client.spec.ts +94 -93
- package/packages/selector/tests/custom-contract.client.spec.ts +223 -222
- package/packages/selector/tests/estimator-channel.client.spec.tsx +253 -252
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +192 -188
- package/packages/selector/tests/preset-options-write.client.spec.ts +188 -187
- package/packages/selector/tests/profiles.client.spec.tsx +436 -434
- package/packages/selector/tests/runtime/audit.spec.ts +275 -274
- package/packages/selector/tests/runtime/intent-gate.spec.ts +62 -0
- package/packages/selector/tests/runtime/intent-summary.spec.ts +156 -0
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2734 -2731
- package/packages/selector/tests/runtime/savings.spec.ts +120 -0
- package/packages/selector/tests/runtime/summary-command.spec.ts +154 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +1 -1
- package/scripts/packed-install-e2e.mjs +1 -1
- package/scripts/verify-release.mjs +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes use this file. The project follows semantic versioning after `0.1.0`.
|
|
4
4
|
|
|
5
|
+
## 0.8.0-beta.4 - 2026-10-02
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Turn-tail intent summary** (merged from the feat/intent-summary line): growth-gated turn-boundary postflight folds the consumed increment into per-candidate `intent-summary` blocks; `/ctx-summary off|on|status` gives a session-scoped override; the settings section now carries its own on/off card (nine languages) instead of relying on host forms.
|
|
10
|
+
- `@deepseek-ai/dsh-commands` joins the installation-provided runtime set (the command registry import), and the release gates track the post-merge chunk graph (`lib/intent-gate.js`).
|
|
11
|
+
|
|
12
|
+
## 0.8.0-beta.3 - 2026-10-01
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **Savings statistics with honest accounting** (inspired by the dsh-token-optimizer concept): every published reduction now lands in a per-process ledger (`runtime/savings.ts`) keyed by the rewrite audit's own `tokensBefore − tokensAfter` — realized savings only, never the theoretical maximum. **Negative savings are paired, not ignored**: the original text of each reduction is SHA-256 registered, and when the model later re-reads that content in full (a new tool result whose hash matches, or a `context_compression_retrieve` return), the re-read tokens are booked as an offset against the earlier claim — skeleton-then-full-read nets negative, exactly as it should. Exact-tokenizer and chars/4 bases are aggregated separately and never merged into one number.
|
|
17
|
+
- Surfaces: read-only `GET /{endpoint,api}/dsh-context-compression-improved/savings` snapshot route (always-on, aggregates only — no session content), and a savings card in the settings section (net/gross/offsets, per-component breakdown, recent offsets) in all nine UI languages.
|
|
18
|
+
- **Usage aggregation & cache-hit monitoring** (the dsh-token-optimizer monitor concept, merged with the honest ledger): every fresh request boundary records the official TokenMeter usage of the last completed request into the same per-session ledger; the snapshot aggregates real input/output/cache-read/cache-write tokens and derives the cache hit rate — the health metric that tells you whether compression is actually saving money or just destroying prefix cache. Sessions are bucketed per net savings (top 8), and a one-line per-session account (net, offsets, requests, cache hit) is logged to the Harness logger on `session/disposed` (probe-registered: hosts without the event stay silent).
|
|
19
|
+
- **Cost estimation on the snapshot route**: when the current host route resolves to an official DeepSeek price record, the response carries the actual aggregated cost plus an estimated saved cost (net exact tokens priced at the cache-miss input band, explicitly labeled an estimate); third-party routes fail closed to no pricing rather than inventing numbers.
|
|
20
|
+
|
|
5
21
|
## 0.8.0-beta.2 - 2026-10-01
|
|
6
22
|
|
|
7
23
|
### Added
|
package/eslint.config.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import tseslint from 'typescript-eslint'
|
|
4
|
-
|
|
5
|
-
export default tseslint.config(
|
|
6
|
-
{
|
|
7
|
-
ignores: ['**/node_modules/**', '**/lib/**', '**/dist/**', '**/coverage/**', 'docs/**'],
|
|
8
|
-
},
|
|
9
|
-
js.configs.recommended,
|
|
10
|
-
...tseslint.configs.recommended,
|
|
11
|
-
{
|
|
12
|
-
files: ['packages/**/*.{ts,tsx}', 'scripts/**/*.{js,mjs}', 'eslint.config.js'],
|
|
13
|
-
languageOptions: {
|
|
14
|
-
globals: { ...globals.browser, ...globals.node },
|
|
15
|
-
},
|
|
16
|
-
rules: {
|
|
17
|
-
'@typescript-eslint/no-unused-vars': ['error', {
|
|
18
|
-
argsIgnorePattern: '^_',
|
|
19
|
-
varsIgnorePattern: '^_',
|
|
20
|
-
caughtErrorsIgnorePattern: '^_',
|
|
21
|
-
destructuredArrayIgnorePattern: '^_',
|
|
22
|
-
}],
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
// Terminal normalization intentionally matches ANSI/BEL control characters.
|
|
27
|
-
files: ['packages/selector/src/runtime/reducers.ts'],
|
|
28
|
-
rules: { 'no-control-regex': 'off' },
|
|
29
|
-
},
|
|
30
|
-
)
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import tseslint from 'typescript-eslint'
|
|
4
|
+
|
|
5
|
+
export default tseslint.config(
|
|
6
|
+
{
|
|
7
|
+
ignores: ['**/node_modules/**', '**/lib/**', '**/dist/**', '**/coverage/**', 'docs/**'],
|
|
8
|
+
},
|
|
9
|
+
js.configs.recommended,
|
|
10
|
+
...tseslint.configs.recommended,
|
|
11
|
+
{
|
|
12
|
+
files: ['packages/**/*.{ts,tsx}', 'scripts/**/*.{js,mjs}', 'eslint.config.js'],
|
|
13
|
+
languageOptions: {
|
|
14
|
+
globals: { ...globals.browser, ...globals.node },
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
'@typescript-eslint/no-unused-vars': ['error', {
|
|
18
|
+
argsIgnorePattern: '^_',
|
|
19
|
+
varsIgnorePattern: '^_',
|
|
20
|
+
caughtErrorsIgnorePattern: '^_',
|
|
21
|
+
destructuredArrayIgnorePattern: '^_',
|
|
22
|
+
}],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
// Terminal normalization intentionally matches ANSI/BEL control characters.
|
|
27
|
+
files: ['packages/selector/src/runtime/reducers.ts'],
|
|
28
|
+
rules: { 'no-control-regex': 'off' },
|
|
29
|
+
},
|
|
30
|
+
)
|
package/package.json
CHANGED
|
@@ -1,163 +1,163 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-context-compression-improved",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"tag": "dsh-0.2.0"
|
|
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.2.0-rc.1 <0.2.1-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.2.0-rc.1 <0.2.1-0",
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.1 <0.2.1-0",
|
|
75
|
-
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.1 <0.2.1-0",
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1 <0.2.1-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.2.0-rc.1",
|
|
98
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.1",
|
|
99
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.1",
|
|
100
|
-
"@deepseek-ai/dsh-agent-presets": "0.1.6-alpha.2",
|
|
101
|
-
"@deepseek-ai/dsh-anonymous-user-id": "0.2.0-rc.1",
|
|
102
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.1",
|
|
103
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.1",
|
|
104
|
-
"@deepseek-ai/dsh-atomic-write": "0.2.0-rc.1",
|
|
105
|
-
"@deepseek-ai/dsh-attachment": "0.2.0-rc.1",
|
|
106
|
-
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
|
|
107
|
-
"@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
|
|
108
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
|
|
109
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.1",
|
|
110
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
|
|
111
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
|
|
112
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.1",
|
|
113
|
-
"@deepseek-ai/dsh-code-runtime": "0.1.5-rc.3",
|
|
114
|
-
"@deepseek-ai/dsh-command-compact": "0.2.0-rc.1",
|
|
115
|
-
"@deepseek-ai/dsh-commands": "0.2.0-rc.1",
|
|
116
|
-
"@deepseek-ai/dsh-compaction": "0.2.0-rc.1",
|
|
117
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.1",
|
|
118
|
-
"@deepseek-ai/dsh-cordis-host-runner": "0.2.0-rc.1",
|
|
119
|
-
"@deepseek-ai/dsh-credentials": "0.2.0-rc.1",
|
|
120
|
-
"@deepseek-ai/dsh-goal": "0.2.0-rc.1",
|
|
121
|
-
"@deepseek-ai/dsh-home-paths": "0.2.0-rc.1",
|
|
122
|
-
"@deepseek-ai/dsh-host-plugin-inventory": "0.2.0-rc.1",
|
|
123
|
-
"@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
|
|
124
|
-
"@deepseek-ai/dsh-jobs": "0.2.0-rc.1",
|
|
125
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.1",
|
|
126
|
-
"@deepseek-ai/dsh-llm": "0.2.0-rc.1",
|
|
127
|
-
"@deepseek-ai/dsh-llm-deepseek": "0.2.0-rc.1",
|
|
128
|
-
"@deepseek-ai/dsh-llm-retry": "0.2.0-rc.1",
|
|
129
|
-
"@deepseek-ai/dsh-message-feedback": "0.2.0-rc.1",
|
|
130
|
-
"@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
|
|
131
|
-
"@deepseek-ai/dsh-scope": "0.2.0-rc.1",
|
|
132
|
-
"@deepseek-ai/dsh-session": "0.2.0-rc.1",
|
|
133
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
|
|
134
|
-
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.1",
|
|
135
|
-
"@deepseek-ai/dsh-settings": "0.2.0-rc.1",
|
|
136
|
-
"@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
|
|
137
|
-
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.0-rc.1",
|
|
138
|
-
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.0-rc.1",
|
|
139
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.1",
|
|
140
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
|
|
141
|
-
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.1",
|
|
142
|
-
"@deepseek-ai/dsh-tools": "0.2.0-rc.1",
|
|
143
|
-
"@deepseek-ai/dsh-user-approval": "0.2.0-rc.1",
|
|
144
|
-
"@deepseek-ai/dsh-user-questions": "0.2.0-rc.1",
|
|
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
|
-
"react-dom": "^18.2.0",
|
|
158
|
-
"tsdown": "^0.22.2",
|
|
159
|
-
"typescript": "^6.0.3",
|
|
160
|
-
"typescript-eslint": "^8.69.0",
|
|
161
|
-
"vitest": "^4.1.8"
|
|
162
|
-
}
|
|
163
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-context-compression-improved",
|
|
3
|
+
"version": "0.8.0-beta.4",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"tag": "dsh-0.2.0"
|
|
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.2.0-rc.1 <0.2.1-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.2.0-rc.1 <0.2.1-0",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.1 <0.2.1-0",
|
|
75
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.1 <0.2.1-0",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1 <0.2.1-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.2.0-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-agent-presets": "0.1.6-alpha.2",
|
|
101
|
+
"@deepseek-ai/dsh-anonymous-user-id": "0.2.0-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.0-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-code-runtime": "0.1.5-rc.3",
|
|
114
|
+
"@deepseek-ai/dsh-command-compact": "0.2.0-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-compaction": "0.2.0-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.1",
|
|
118
|
+
"@deepseek-ai/dsh-cordis-host-runner": "0.2.0-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.1",
|
|
120
|
+
"@deepseek-ai/dsh-goal": "0.2.0-rc.1",
|
|
121
|
+
"@deepseek-ai/dsh-home-paths": "0.2.0-rc.1",
|
|
122
|
+
"@deepseek-ai/dsh-host-plugin-inventory": "0.2.0-rc.1",
|
|
123
|
+
"@deepseek-ai/dsh-invariants": "0.2.0-rc.1",
|
|
124
|
+
"@deepseek-ai/dsh-jobs": "0.2.0-rc.1",
|
|
125
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.1",
|
|
126
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.1",
|
|
127
|
+
"@deepseek-ai/dsh-llm-deepseek": "0.2.0-rc.1",
|
|
128
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.0-rc.1",
|
|
129
|
+
"@deepseek-ai/dsh-message-feedback": "0.2.0-rc.1",
|
|
130
|
+
"@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
|
|
131
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.1",
|
|
132
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.1",
|
|
133
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
|
|
134
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.1",
|
|
135
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.0-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-subagent-in-process-driver": "0.2.0-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.1",
|
|
140
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
|
|
141
|
+
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.1",
|
|
142
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.1",
|
|
143
|
+
"@deepseek-ai/dsh-user-approval": "0.2.0-rc.1",
|
|
144
|
+
"@deepseek-ai/dsh-user-questions": "0.2.0-rc.1",
|
|
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
|
+
"react-dom": "^18.2.0",
|
|
158
|
+
"tsdown": "^0.22.2",
|
|
159
|
+
"typescript": "^6.0.3",
|
|
160
|
+
"typescript-eslint": "^8.69.0",
|
|
161
|
+
"vitest": "^4.1.8"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "dsh-external/dsh-context-compression-improved",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
4
|
-
"main": "./lib/index.js",
|
|
5
|
-
"description": "Auditable tool-result context-compression selector with code-skeleton gate for DeepSeek Harness",
|
|
6
|
-
"engines": {
|
|
7
|
-
"dsh": ">=0.2.0-rc.1 <0.2.1-0"
|
|
8
|
-
},
|
|
9
|
-
"contributes": {
|
|
10
|
-
"tools": [],
|
|
11
|
-
"skills": []
|
|
12
|
-
},
|
|
13
|
-
"client": {
|
|
14
|
-
"main": "./lib/client.js"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "dsh-external/dsh-context-compression-improved",
|
|
3
|
+
"version": "0.8.0-beta.4",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"description": "Auditable tool-result context-compression selector with code-skeleton gate for DeepSeek Harness",
|
|
6
|
+
"engines": {
|
|
7
|
+
"dsh": ">=0.2.0-rc.1 <0.2.1-0"
|
|
8
|
+
},
|
|
9
|
+
"contributes": {
|
|
10
|
+
"tools": [],
|
|
11
|
+
"skills": []
|
|
12
|
+
},
|
|
13
|
+
"client": {
|
|
14
|
+
"main": "./lib/client.js"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -71,6 +71,11 @@ declare const zh: {
|
|
|
71
71
|
'codeSkeleton.enabled': string;
|
|
72
72
|
'codeSkeleton.enabled.on': string;
|
|
73
73
|
'codeSkeleton.enabled.off': string;
|
|
74
|
+
'intentSummary.title': string;
|
|
75
|
+
'intentSummary.description': string;
|
|
76
|
+
'intentSummary.enabled': string;
|
|
77
|
+
'intentSummary.enabled.on': string;
|
|
78
|
+
'intentSummary.enabled.off': string;
|
|
74
79
|
'custom.title': string;
|
|
75
80
|
'custom.settingsHint': string;
|
|
76
81
|
'custom.sessionScope': string;
|
|
@@ -102,6 +107,20 @@ declare const zh: {
|
|
|
102
107
|
'custom.save': string;
|
|
103
108
|
'custom.reset': string;
|
|
104
109
|
'custom.invalid': string;
|
|
110
|
+
'savings.title': string;
|
|
111
|
+
'savings.netExact': string;
|
|
112
|
+
'savings.netEstimated': string;
|
|
113
|
+
'savings.gross': string;
|
|
114
|
+
'savings.offsets': string;
|
|
115
|
+
'savings.empty': string;
|
|
116
|
+
'savings.basisExact': string;
|
|
117
|
+
'savings.basisEstimated': string;
|
|
118
|
+
'savings.basisNote': string;
|
|
119
|
+
'savings.requests': string;
|
|
120
|
+
'savings.cacheHit': string;
|
|
121
|
+
'savings.actualCost': string;
|
|
122
|
+
'savings.savedMoney': string;
|
|
123
|
+
'savings.perSession': string;
|
|
105
124
|
};
|
|
106
125
|
/** Locale keys that every context-compression selector dictionary must provide. */
|
|
107
126
|
type ContextCompressionLocaleKey = keyof typeof zh;
|
|
@@ -145,6 +164,7 @@ interface CompressionSelectorInjected {
|
|
|
145
164
|
resetCustom: () => Promise<void>;
|
|
146
165
|
saveAutoCompact: (thresholdPercent: number) => Promise<void>;
|
|
147
166
|
saveCodeSkeleton: (enabled: boolean) => Promise<void>;
|
|
167
|
+
saveIntentSummary: (enabled: boolean) => Promise<void>;
|
|
148
168
|
/** Patch of `presetOptions` members; an explicit `undefined` clears that field. */
|
|
149
169
|
savePresetOptions: (options: PresetOptionsPatch) => Promise<void>;
|
|
150
170
|
}
|