dsh-context 0.2.0 → 0.2.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 +17 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,22 @@ A **Context insight panel** for [DeepSeek Harness](https://github.com/deepseek-a
|
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
## Quick install
|
|
8
|
+
|
|
9
|
+
One command, from any [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) installation (the `demo` profile is created automatically on first use):
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
dsh plugin --profile demo add dsh-context
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
then start the web UI and open any session — the **上下文 / Context** tab appears right beside **Chat** and **Trajectory**:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
dsh --profile demo web
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
> Running dsh from a source checkout instead of the installed CLI? Prefix the commands with `pnpm` (`pnpm dsh plugin --profile demo add dsh-context`).
|
|
22
|
+
|
|
7
23
|
## Why
|
|
8
24
|
|
|
9
25
|
Every model request packs the same window from six sources: the system prompt, tool schemas, your messages, injected context (skills, AGENTS.md, runtime snapshots), assistant replies, and tool results. When a conversation degrades or gets compacted, *which part ate the budget* is usually invisible. dsh-context makes it observable:
|
|
@@ -17,14 +33,7 @@ The UI is bilingual (中文/English) and follows the dsh locale automatically.
|
|
|
17
33
|
|
|
18
34
|
## Install
|
|
19
35
|
|
|
20
|
-
dsh-context ships as a **dsh bundle**: an npm package with a `dsh.bundle` manifest (a `cordis.patch.yml` layer that inserts the plugin row) and a `dsh.client` manifest (the web UI half). No build step, no restart —
|
|
21
|
-
|
|
22
|
-
```sh
|
|
23
|
-
dsh plugin --profile <name> add dsh-context
|
|
24
|
-
dsh --profile <name> web
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
That's it: the `dsh-context` loader row activates the host half, and the web app picks up the package's `./client` bundle and adds the **上下文 / Context** tab to every session view.
|
|
36
|
+
dsh-context ships as a **dsh bundle**: an npm package with a `dsh.bundle` manifest (a `cordis.patch.yml` layer that inserts the plugin row) and a `dsh.client` manifest (the web UI half). No build step, no restart — the one-liner above installs it into any profile (swap `demo` for your profile name). The `dsh-context` loader row activates the host half, and the web app picks up the package's `./client` bundle and adds the **上下文 / Context** tab to every session view.
|
|
28
37
|
|
|
29
38
|
To install from this checkout instead (for development), from the repo root:
|
|
30
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-context",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Context insight panel for DeepSeek Harness: a Context tab (beside Chat/Trajectory) showing what the model's context window is made of and how it evolves — composition, per-request history, compactions, injections, and model switches.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|