dsh-context 0.49.4 → 0.51.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 CHANGED
@@ -47,8 +47,8 @@ Open any session and click the **Context / 上下文** tab:
47
47
 
48
48
  | Card | The question it answers |
49
49
  | --- | --- |
50
- | **Context Stats** | Turns, steps, live tool calls & images, context-event tallies — plus a list-price cost estimate (hover the `?` for per-1M rates). |
51
- | **Token Stats** | Where the billed tokens went: cache read/write, uncached input, output — around the cache-hit ring. |
50
+ | **Context Stats** | Turns, steps, human inputs, live tool calls, the session's cache-hit rate — plus a cost estimated from the models.dev list prices (hover the `?` for per-1M rates; DeepSeek peak/off-peak aware). |
51
+ | **Token Stats** | Where the billed tokens went — the same total as the chat stats line under the composer, split by composition (system, tools, messages…) with the provider-exact output closing the ring. |
52
52
  | **Timing Stats** | How active time split across model calls, tool runs, and overhead. |
53
53
  | **Current Context** | What's in the window *right now*. |
54
54
  | **Context Trend** | Every request's size — and its story. |
@@ -102,7 +102,7 @@ Pick **Live (next request)** or any retained step, and browse what that request
102
102
 
103
103
  ![Context Events with a compaction](https://raw.githubusercontent.com/bowenliang123/dsh-context/main/docs/context-events.png)
104
104
 
105
- Every injection, compaction, prune, model switch, and plan-mode toggle — labeled with its producer (instruction file, plugin id, skill name), its net token delta (compactions show what they reclaimed), turn/step, and time. The **Inject / Compact / Prune / Switch / Mode** chips filter the log by kind.
105
+ Every injection, compaction, prune, model switch, and plan-mode toggle — labeled with its producer (instruction file, plugin id, skill name), its net token delta (compactions show what they reclaimed), turn/step, and time. The **Inject / Compact / Prune / Switch / Mode** chips filter the log by kind, each carrying its whole-session event tally.
106
106
 
107
107
  ### 📁 File Activity — what the agent did to your files
108
108
 
@@ -115,6 +115,7 @@ One row per touched file — read, written, or searched — aggregated up to whi
115
115
  - **Every mode counts** — native tools, the Minimal preset's `str_replace_editor`, and the nested calls inside PTC `run_code` programs are all folded into per-tool rows.
116
116
  - **Searches land on real files** — matched files get their own ops rows with hit counts.
117
117
  - **Click a row** to expand its full operation log — every op jumps straight to the exact tool result in the Context browser.
118
+ - **Click a file name** to open its preview in the right Sidebar (dsh 0.1.5-rc.1+), exactly as the built-in Files sidebar does — the same viewer, the same tab-per-file behavior. On a harness without that column the name opens on your system as before.
118
119
 
119
120
  ### 🕸 Agent Network — the family portrait
120
121
 
@@ -140,7 +141,7 @@ In **Settings → Plugins → Plugin configuration**, the **Context** card holds
140
141
 
141
142
  ## Good to know
142
143
 
143
- - **Estimates vs actuals** — category figures use dsh's own fixed-density heuristic (the same one as its built-in token meter); the pinned trend details and Token/Timing rings show provider-reported actuals next to them.
144
+ - **Estimates vs actuals** — category figures use dsh's own fixed-density heuristic (the same one as its built-in token meter); the pinned trend details show provider-reported actuals next to them, and the Token card pairs its ≈-estimated composition shares with the provider-exact billed total.
144
145
  - **Compatibility** — works on `@deepseek-ai/dsh` **0.1.2-rc1+**, across the V0 (0.1.2-rc.x), V2 (0.1.3-alpha.x), and V3 (0.1.5-alpha.x+) session-log generations. The per-release matrix and how it is verified: [docs/compatibility.md](docs/compatibility.md).
145
146
  - **I18n** — UI in English and 简体中文.
146
147