dsh-context 0.69.1 → 0.71.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/README.md +4 -3
- package/lib/client.js +11 -11
- package/lib/index.d.ts +8 -1
- package/lib/index.js +9 -3280
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ The **Context Stats** card's Agent Network cell (the billed tokens and estimated
|
|
|
103
103
|
|
|
104
104
|

|
|
105
105
|
|
|
106
|
-
A six-color stacked bar against the model's full window (
|
|
106
|
+
A six-color stacked bar against the model's full window (the two hatched masks at the end = auto-compaction's reserve: its headroom, then the request's reserved output window): system prompt, tool schemas, user messages, injected context, assistant replies, tool results — each with its ≈token figure and share. When a conversation starts degrading, this is where you see *which part* is responsible.
|
|
107
107
|
|
|
108
108
|
### 📈 Context Trend — how the context grew and evolved by turn or steps
|
|
109
109
|
|
|
@@ -117,6 +117,7 @@ One stacked bar per model request — finer than per-message — so you watch th
|
|
|
117
117
|
|
|
118
118
|

|
|
119
119
|
|
|
120
|
+
- **Overview** — one toggle squashes the whole session (steps or turns) into the pane's width as a continuous stacked ribbon: every compaction drop and composition shift at a glance, no sideways scrolling, nothing extra to load. Flags mark the quartiles and the full span; hover to scrub, click to pin (exclusive with DNA mode and Adaptive).
|
|
120
121
|
- **Hover & pin** — scrub for an instant tooltip; click to pin the full breakdown, with provider-reported **Actual Prompt / Output / Cache** next to the estimates.
|
|
121
122
|
- **Live linkage** — hovering a bar previews that step's assembled context in the Context browser beside the chart; leaving the chart returns to your own pick.
|
|
122
123
|
|
|
@@ -136,9 +137,9 @@ Pick **Live (next request)** or any retained step, and browse what that request
|
|
|
136
137
|
|
|
137
138
|

|
|
138
139
|
|
|
139
|
-
- **
|
|
140
|
+
- **Attachments render as ordered cards** — a message's `image` and `file` blocks sit together in the order the message carries them, one card each: images with a thumbnail plus their dimensions, stored size, and the official DeepSeek image-token estimate; other files with their type glyph, extension, and stored size. One click opens the attachment in dsh's own preview column (markdown, code, PDF, office, and image viewers), under the file's real name:
|
|
140
141
|
|
|
141
|
-

|
|
142
143
|
|
|
143
144
|
- **Diff against the previous turn** — signed delta badges per category (`+N` items, `±Nk` tokens) tell you what a turn added or reclaimed at one glance. Steps older than a compaction are reconstructed from the removed-message archive — and the card says so when a step's makeup is only approximate.
|
|
144
145
|
|