dsh-context-compression-improved 0.8.0-beta.4 → 0.8.0-beta.6
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 +29 -0
- package/package.json +1 -1
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/client.d.ts +23 -0
- package/packages/selector/lib/client.js +567 -3
- package/packages/selector/lib/{intent-gate.js → config.js} +285 -136
- package/packages/selector/lib/index.d.ts +13 -1
- package/packages/selector/lib/index.js +131 -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 +5 -3
- 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 +60 -0
- package/packages/selector/src/client/locales/de.ts +22 -0
- package/packages/selector/src/client/locales/es.ts +22 -0
- package/packages/selector/src/client/locales/fr.ts +22 -0
- package/packages/selector/src/client/locales/it.ts +22 -0
- package/packages/selector/src/client/locales/ja.ts +22 -0
- package/packages/selector/src/client/locales/ko.ts +22 -0
- package/packages/selector/src/client/locales/ru.ts +22 -0
- package/packages/selector/src/client/locales.ts +44 -0
- package/packages/selector/src/client/monitor-fab.ts +320 -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/pruner.ts +2 -0
- package/packages/selector/src/runtime/config.ts +26 -1
- package/packages/selector/src/runtime/monitor.ts +211 -0
- package/packages/selector/src/runtime/types.ts +7 -0
- package/packages/selector/tests/code-skeleton.client.spec.ts +2 -2
- package/packages/selector/tests/custom-contract.client.spec.ts +2 -2
- 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 +274 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +19 -7
- package/scripts/packed-install-e2e.mjs +1 -1
- package/scripts/verify-release.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
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.6 - 2026-10-02
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Session binding for the floating monitor**: a deliberately invisible `conversation.input.left`
|
|
10
|
+
seat captures the active session id (pm longtask precedent) — the panel now shows the bound
|
|
11
|
+
session's data and its override buttons act on that session instead of the default one.
|
|
12
|
+
- **Context occupancy bar** in the panel: the turn-tail postflight observes live tokens vs the
|
|
13
|
+
auto-compact-derived window per session; the panel renders the occupancy percentage
|
|
14
|
+
(hot tint past 70%).
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Client specs that captured the settings face by `inject` presence now key off the
|
|
19
|
+
`settings.section` seat explicitly (the input-bar binder's `inject` is a session callback).
|
|
20
|
+
|
|
21
|
+
## 0.8.0-beta.5 - 2026-10-02
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **Compression monitor floating panel (FAB)**: a draggable bubble beside the input area
|
|
26
|
+
(visibility switch in the settings section, default off) that polls a new
|
|
27
|
+
`GET /{endpoint,api}/.../monitor` snapshot — net/gross savings, cache hit rate, cost
|
|
28
|
+
estimate, and the turn-tail intent-summary gate state — with session override buttons
|
|
29
|
+
driving the same state machine as `/ctx-summary`. Skeleton adapted from the withdrawn
|
|
30
|
+
pm longtask FAB (d29bcb1); negative net savings light the bubble.
|
|
31
|
+
- The savings pricing helper moved to `runtime/monitor.ts` (shared by the savings and
|
|
32
|
+
monitor routes; no behavior change).
|
|
33
|
+
|
|
5
34
|
## 0.8.0-beta.4 - 2026-10-02
|
|
6
35
|
|
|
7
36
|
### 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.6",
|
|
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,28 @@ 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.context': string;
|
|
85
|
+
'monitor.panel.cacheHit': string;
|
|
86
|
+
'monitor.panel.cost': string;
|
|
87
|
+
'monitor.panel.intent': string;
|
|
88
|
+
'monitor.panel.overrideHint': string;
|
|
89
|
+
'monitor.panel.resume': string;
|
|
90
|
+
'monitor.panel.disable': string;
|
|
91
|
+
'monitor.panel.stateOn': string;
|
|
92
|
+
'monitor.panel.stateOff': string;
|
|
93
|
+
'monitor.panel.gateUnknown': string;
|
|
94
|
+
'monitor.panel.lastFold': string;
|
|
95
|
+
'monitor.panel.stale': string;
|
|
96
|
+
'monitorPanel.title': string;
|
|
97
|
+
'monitorPanel.description': string;
|
|
98
|
+
'monitorPanel.enabled': string;
|
|
99
|
+
'monitorPanel.enabled.on': string;
|
|
100
|
+
'monitorPanel.enabled.off': string;
|
|
79
101
|
'custom.title': string;
|
|
80
102
|
'custom.settingsHint': string;
|
|
81
103
|
'custom.sessionScope': string;
|
|
@@ -165,6 +187,7 @@ interface CompressionSelectorInjected {
|
|
|
165
187
|
saveAutoCompact: (thresholdPercent: number) => Promise<void>;
|
|
166
188
|
saveCodeSkeleton: (enabled: boolean) => Promise<void>;
|
|
167
189
|
saveIntentSummary: (enabled: boolean) => Promise<void>;
|
|
190
|
+
saveMonitorPanel: (enabled: boolean) => Promise<void>;
|
|
168
191
|
/** Patch of `presetOptions` members; an explicit `undefined` clears that field. */
|
|
169
192
|
savePresetOptions: (options: PresetOptionsPatch) => Promise<void>;
|
|
170
193
|
}
|