dsh-context 0.8.0 → 0.10.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 +19 -8
- package/lib/client.js +611 -646
- package/lib/index.js +269 -210
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-context)
|
|
6
6
|
[](https://github.com/bowenliang123/dsh-context)
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**A DeepSeek Harness plugin for context dashboard and context command, for understanding how the context is made of, and how it evolves.**
|
|
9
9
|
|
|
10
|
-
`dsh-context` is a [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) plugin
|
|
10
|
+
`dsh-context` is a [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) plugin for context insight.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
- **The Context tab** — a full insight panel for context composition, per-turn context history, context compactions, and the message surface, etc.
|
|
13
|
+
- **The `/context` command** — the same headline and recent trend as a centered dialog straight from the composer (the screenshot above).
|
|
13
14
|
|
|
14
15
|
## Install
|
|
15
16
|
|
|
@@ -19,7 +20,21 @@ One command, from any DeepSeek Harness installation:
|
|
|
19
20
|
dsh plugin --profile web add dsh-context
|
|
20
21
|
```
|
|
21
22
|
|
|
22
|
-
Then start the web UI with `dsh web
|
|
23
|
+
Then start the web UI with `dsh web`. No build step, no restart.
|
|
24
|
+
|
|
25
|
+
## Use it
|
|
26
|
+
|
|
27
|
+
### Context tab
|
|
28
|
+
|
|
29
|
+
Open any session and click the **Context / 上下文** tab:
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
### ⌨️ `/context` command — In-session Context Insight modal
|
|
34
|
+
|
|
35
|
+
Type `/context` (or pick it from the `/` menu) and press Enter: a centered dialog shows the provider-anchored occupancy headline, the six-category composition bar, and the last-10-turn trend chart — hover or click a bar for its full breakdown, exactly like the tab.
|
|
36
|
+
|
|
37
|
+

|
|
23
38
|
|
|
24
39
|
## What you'll see
|
|
25
40
|
|
|
@@ -53,10 +68,6 @@ Every compaction, tool-output prune, skill or plugin context injection, and mode
|
|
|
53
68
|
|
|
54
69
|
The exact message list the model sees right now, newest first, with a per-message token cost.
|
|
55
70
|
|
|
56
|
-
## Releasing
|
|
57
|
-
|
|
58
|
-
Releases are cut by tagging: `git tag vX.Y.Z && gh release create vX.Y.Z`. A [GitHub Actions workflow](.github/workflows/release.yml) then builds, tests, and publishes the package to npm automatically via [npm Trusted Publishing (OIDC)](https://docs.npmjs.com/trusted-publishers) — no long-lived token needed, provenance included.
|
|
59
|
-
|
|
60
71
|
## Like it?
|
|
61
72
|
|
|
62
73
|
If `dsh-context` helped you understand what your agent is carrying around, a ⭐ on [GitHub](https://github.com/bowenliang123/dsh-context) is much appreciated — and issues/PRs are welcome!
|