dsh-context 0.50.0 → 0.51.1
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 +3 -3
- package/lib/client.js +612 -262
- package/lib/index.d.ts +24 -17
- package/lib/index.js +76 -54
- package/package.json +6 -2
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, the session's cache-hit rate — plus a list
|
|
51
|
-
| **Token Stats** | Where the billed tokens went
|
|
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. |
|
|
@@ -141,7 +141,7 @@ In **Settings → Plugins → Plugin configuration**, the **Context** card holds
|
|
|
141
141
|
|
|
142
142
|
## Good to know
|
|
143
143
|
|
|
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
|
|
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.
|
|
145
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).
|
|
146
146
|
- **I18n** — UI in English and 简体中文.
|
|
147
147
|
|