dsh-context-compression-improved 0.8.0-beta.4 → 0.8.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/client.d.ts +22 -0
- package/packages/selector/lib/client.js +528 -3
- package/packages/selector/lib/{intent-gate.js → config.js} +153 -136
- package/packages/selector/lib/index.d.ts +13 -1
- package/packages/selector/lib/index.js +215 -50
- package/packages/selector/lib/profiles.d.ts +6 -0
- package/packages/selector/lib/pruner.d.ts +6 -0
- package/packages/selector/lib/pruner.js +1 -1
- package/packages/selector/src/client/CompressionProfileControls.tsx +33 -0
- package/packages/selector/src/client/CompressionProfileSelector.tsx +1 -0
- package/packages/selector/src/client/decode.ts +5 -1
- package/packages/selector/src/client/index.ts +37 -0
- package/packages/selector/src/client/locales/de.ts +21 -0
- package/packages/selector/src/client/locales/es.ts +21 -0
- package/packages/selector/src/client/locales/fr.ts +21 -0
- package/packages/selector/src/client/locales/it.ts +21 -0
- package/packages/selector/src/client/locales/ja.ts +21 -0
- package/packages/selector/src/client/locales/ko.ts +21 -0
- package/packages/selector/src/client/locales/ru.ts +21 -0
- package/packages/selector/src/client/locales.ts +42 -0
- package/packages/selector/src/client/monitor-fab.ts +307 -0
- package/packages/selector/src/client/settings-section.tsx +9 -2
- package/packages/selector/src/index.ts +126 -60
- package/packages/selector/src/profiles.ts +17 -0
- package/packages/selector/src/runtime/config.ts +26 -1
- package/packages/selector/src/runtime/monitor.ts +149 -0
- package/packages/selector/src/runtime/types.ts +7 -0
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +8 -6
- package/packages/selector/tests/monitor-fab.client.spec.ts +117 -0
- package/packages/selector/tests/runtime/monitor.spec.ts +236 -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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.5 - 2026-10-02
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Compression monitor floating panel (FAB)**: a draggable bubble beside the input area
|
|
10
|
+
(visibility switch in the settings section, default off) that polls a new
|
|
11
|
+
`GET /{endpoint,api}/.../monitor` snapshot — net/gross savings, cache hit rate, cost
|
|
12
|
+
estimate, and the turn-tail intent-summary gate state — with session override buttons
|
|
13
|
+
driving the same state machine as `/ctx-summary`. Skeleton adapted from the withdrawn
|
|
14
|
+
pm longtask FAB (d29bcb1); negative net savings light the bubble.
|
|
15
|
+
- The savings pricing helper moved to `runtime/monitor.ts` (shared by the savings and
|
|
16
|
+
monitor routes; no behavior change).
|
|
17
|
+
|
|
5
18
|
## 0.8.0-beta.4 - 2026-10-02
|
|
6
19
|
|
|
7
20
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-context-compression-improved",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
3
|
+
"version": "0.8.0-beta.5",
|
|
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": {
|
|
@@ -76,6 +76,27 @@ declare const zh: {
|
|
|
76
76
|
'intentSummary.enabled': string;
|
|
77
77
|
'intentSummary.enabled.on': string;
|
|
78
78
|
'intentSummary.enabled.off': string;
|
|
79
|
+
'monitor.fab.title': string;
|
|
80
|
+
'monitor.panel.title': string;
|
|
81
|
+
'monitor.panel.net': string;
|
|
82
|
+
'monitor.panel.gross': string;
|
|
83
|
+
'monitor.panel.offsets': string;
|
|
84
|
+
'monitor.panel.cacheHit': string;
|
|
85
|
+
'monitor.panel.cost': string;
|
|
86
|
+
'monitor.panel.intent': string;
|
|
87
|
+
'monitor.panel.overrideHint': string;
|
|
88
|
+
'monitor.panel.resume': string;
|
|
89
|
+
'monitor.panel.disable': string;
|
|
90
|
+
'monitor.panel.stateOn': string;
|
|
91
|
+
'monitor.panel.stateOff': string;
|
|
92
|
+
'monitor.panel.gateUnknown': string;
|
|
93
|
+
'monitor.panel.lastFold': string;
|
|
94
|
+
'monitor.panel.stale': string;
|
|
95
|
+
'monitorPanel.title': string;
|
|
96
|
+
'monitorPanel.description': string;
|
|
97
|
+
'monitorPanel.enabled': string;
|
|
98
|
+
'monitorPanel.enabled.on': string;
|
|
99
|
+
'monitorPanel.enabled.off': string;
|
|
79
100
|
'custom.title': string;
|
|
80
101
|
'custom.settingsHint': string;
|
|
81
102
|
'custom.sessionScope': string;
|
|
@@ -165,6 +186,7 @@ interface CompressionSelectorInjected {
|
|
|
165
186
|
saveAutoCompact: (thresholdPercent: number) => Promise<void>;
|
|
166
187
|
saveCodeSkeleton: (enabled: boolean) => Promise<void>;
|
|
167
188
|
saveIntentSummary: (enabled: boolean) => Promise<void>;
|
|
189
|
+
saveMonitorPanel: (enabled: boolean) => Promise<void>;
|
|
168
190
|
/** Patch of `presetOptions` members; an explicit `undefined` clears that field. */
|
|
169
191
|
savePresetOptions: (options: PresetOptionsPatch) => Promise<void>;
|
|
170
192
|
}
|