dsh-context 0.63.0 → 0.65.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 +8 -8
- package/lib/client.js +2535 -1667
- package/lib/index.js +98 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**The best [DeepSeek Harness plugin](https://www.deepseek.com/harness/) for Agent's context insights and management.**
|
|
10
10
|
|
|
11
11
|
[`dsh-context`](https://www.npmjs.com/package/dsh-context) provides full context lifecycle management features.
|
|
12
|
-
- **Context
|
|
12
|
+
- **Context Insights page** — the cross-session overview as a first-level sidebar panel (beside Plugins and Automation tasks): KPI band with a 7-day token/cost usage chart, activity heatmap, aggregate composition ring, and filterable session cards that jump straight into any session.
|
|
13
13
|
- **Context tab** — an UI context dashboard for DeepSeek Harness's context stats, composition, trend, events, and messages.
|
|
14
14
|
- **Context panel** — the same dashboard as a right-sidebar tab (dsh 0.1.5-rc.1+): pick **Context** on the sidebar's guide page and the panel opens beside the chat.
|
|
15
15
|
- **`/context` command** — the slash command shows the context model for current context composition and recent context evolution.
|
|
@@ -44,16 +44,16 @@ Four surfaces, one story — what your agent is carrying, how it got there, and
|
|
|
44
44
|
|
|
45
45
|
| Where | What you get |
|
|
46
46
|
| --- | --- |
|
|
47
|
-
| **Context
|
|
47
|
+
| **Context Insights page** | Every session at a glance: usage, cost, cache hit, daily activity, and per-session context profiles — filtered by range, day, group, or search, one click to jump in. |
|
|
48
48
|
| **Context tab** | The full dashboard: stats, composition, per-request trend, events, file activity, and the agent network — in every session. |
|
|
49
49
|
| **`/context` command** | A centered modal with the same composition and context browser, without leaving the chat. |
|
|
50
50
|
| **Preferences card** | Per-user defaults: view placement, trend granularity & mode, File Activity sort, and more. |
|
|
51
51
|
|
|
52
|
-
## 🗂️ The Context
|
|
52
|
+
## 🗂️ The Context Insights page
|
|
53
53
|
|
|
54
|
-
Click **Context
|
|
54
|
+
Click **Context Insights / 上下文洞察** in the sidebar's panel list — the same row level as **Plugins** and **Automation tasks** — and the page opens as a full center-column panel:
|
|
55
55
|
|
|
56
|
-

|
|
57
57
|
|
|
58
58
|
| Section | The question it answers |
|
|
59
59
|
| --- | --- |
|
|
@@ -73,8 +73,8 @@ Open any session and click the **Context / 上下文** tab:
|
|
|
73
73
|
|
|
74
74
|
| Card | The question it answers |
|
|
75
75
|
| --- | --- |
|
|
76
|
-
| **Context Stats** | Turns, steps, human inputs, live tool calls
|
|
77
|
-
| **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. |
|
|
76
|
+
| **Context Stats** | Turns, steps, human inputs, live tool calls — plus a cost estimated from the models.dev list prices (hover the `?` for per-1M rates; DeepSeek peak/off-peak aware). |
|
|
77
|
+
| **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, and the session's cache-hit rate in the corner. |
|
|
78
78
|
| **Timing Stats** | How active time split across model calls, tool runs, and overhead. |
|
|
79
79
|
| **Current Context** | What's in the window *right now*. |
|
|
80
80
|
| **Context Trend** | Every request's size — and its story. |
|
|
@@ -83,7 +83,7 @@ Open any session and click the **Context / 上下文** tab:
|
|
|
83
83
|
| **File Activity** | What the agent *did* to your files. |
|
|
84
84
|
| **Agent Network** | The whole agent family, live. |
|
|
85
85
|
|
|
86
|
-
The headline occupancy and composition read the **same official token-meter projections as the chat composer's context ring** (`contextPressure` / `contextBreakdown`), so the figures always match what the ring tells you.
|
|
86
|
+
The headline occupancy and composition read the **same official token-meter projections as the chat composer's context ring** (`contextPressure` / `contextBreakdown`), so the figures always match what the ring tells you — the card's percentage is that same occupancy, printed with one decimal.
|
|
87
87
|
|
|
88
88
|
### Context Stats
|
|
89
89
|
|