dsh-context 0.1.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 +18 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
A **Context insight panel** for [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) (dsh): a plugin that adds a **Context** tab to the web UI — right beside **Chat** and **Trajectory** — so you can see what the model's context window is actually made of, and how it evolves across the conversation.
|
|
4
4
|
|
|
5
|
-

|
|
5
|
+

|
|
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`).
|
|
6
22
|
|
|
7
23
|
## Why
|
|
8
24
|
|
|
@@ -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.1
|
|
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",
|