dsh-context 0.14.0 → 0.15.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 +1 -1
- package/lib/client.js +33 -33
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
# dsh-context
|
|
4
4
|
|
package/lib/client.js
CHANGED
|
@@ -9,11 +9,11 @@ window.__ModuleLoader__.load({
|
|
|
9
9
|
// src/client/i18n.ts
|
|
10
10
|
var DICT_ZH = {
|
|
11
11
|
"tab": "\u4E0A\u4E0B\u6587",
|
|
12
|
-
"cat.system": "\u7CFB\u7EDF\u63D0\u793A",
|
|
12
|
+
"cat.system": "\u7CFB\u7EDF\u63D0\u793A\u8BCD",
|
|
13
13
|
"cat.tools": "\u5DE5\u5177\u5B9A\u4E49",
|
|
14
14
|
"cat.user": "\u7528\u6237\u6D88\u606F",
|
|
15
|
-
"cat.inject": "\u6CE8\u5165\
|
|
16
|
-
"cat.assistant": "\u52A9\u624B\
|
|
15
|
+
"cat.inject": "\u6CE8\u5165\u5185\u5BB9",
|
|
16
|
+
"cat.assistant": "\u52A9\u624B\u6D88\u606F",
|
|
17
17
|
"cat.tool": "\u5DE5\u5177\u7ED3\u679C",
|
|
18
18
|
"overview.title": "\u5F53\u524D\u6784\u6210",
|
|
19
19
|
"overview.estimate": "tokens\uFF08\u4F30\u7B97\uFF09",
|
|
@@ -89,36 +89,36 @@ var DICT_ZH = {
|
|
|
89
89
|
"browser.missingLive": "\u2026 \u53E6\u6709 {n} \u6761\u66F4\u65E9\u7684\u6D88\u606F\u4E5F\u5728\u4E0A\u4E0B\u6587\u4E2D\uFF08\u8D85\u51FA\u5C55\u793A\u7A97\u53E3\uFF09",
|
|
90
90
|
"browser.approx": "\u8BE5\u6B65\u9AA4\u6D89\u53CA\u7684\u90E8\u5206\u5DF2\u79FB\u9664\u6D88\u606F\u8D85\u51FA\u4FDD\u7559\u8303\u56F4\uFF0C\u4EE5\u4E0B\u4E3A\u8FD1\u4F3C\u6784\u6210",
|
|
91
91
|
"browser.noHeader": "\u6B64\u6570\u636E\u6765\u81EA\u65E7\u7248\u63D2\u4EF6\uFF1A\u4EC5\u63D0\u4F9B token \u4F30\u7B97\uFF0C\u65E0\u5B9E\u9645\u5185\u5BB9",
|
|
92
|
-
"browser.noEpoch": "\u8BE5\u6B65\u9AA4\u7684\u5934\u90E8\u5185\u5BB9\uFF08\u7CFB\u7EDF\u63D0\u793A / \u5DE5\u5177\u5B9A\u4E49\uFF09\u4E0D\u5728\u4FDD\u7559\u8303\u56F4\u5185",
|
|
92
|
+
"browser.noEpoch": "\u8BE5\u6B65\u9AA4\u7684\u5934\u90E8\u5185\u5BB9\uFF08\u7CFB\u7EDF\u63D0\u793A\u8BCD / \u5DE5\u5177\u5B9A\u4E49\uFF09\u4E0D\u5728\u4FDD\u7559\u8303\u56F4\u5185",
|
|
93
93
|
"browser.noContent": "\u5B8C\u6574\u5185\u5BB9\u4E0D\u5728\u5F53\u524D\u52A0\u8F7D\u7684\u6D88\u606F\u7A97\u53E3\u5185\uFF08\u5728\u804A\u5929\u9875\u52A0\u8F7D\u66F4\u65E9\u5386\u53F2\u540E\u53EF\u67E5\u770B\uFF09",
|
|
94
94
|
"browser.loading": "\u6B63\u5728\u4ECE\u66F4\u65E9\u7684\u4F1A\u8BDD\u5386\u53F2\u52A0\u8F7D\u5B8C\u6574\u5185\u5BB9\u2026",
|
|
95
95
|
"browser.preview": "\u9884\u89C8"
|
|
96
96
|
};
|
|
97
97
|
var DICT_EN = {
|
|
98
98
|
"tab": "Context",
|
|
99
|
-
"cat.system": "System",
|
|
100
|
-
"cat.tools": "Tool
|
|
101
|
-
"cat.user": "User",
|
|
102
|
-
"cat.inject": "Injected",
|
|
103
|
-
"cat.assistant": "Assistant",
|
|
104
|
-
"cat.tool": "Tool
|
|
99
|
+
"cat.system": "System Prompt",
|
|
100
|
+
"cat.tools": "Tool Schemas",
|
|
101
|
+
"cat.user": "User Messages",
|
|
102
|
+
"cat.inject": "Injected Context",
|
|
103
|
+
"cat.assistant": "Assistant Messages",
|
|
104
|
+
"cat.tool": "Tool Results",
|
|
105
105
|
"overview.title": "Current Context",
|
|
106
106
|
"overview.estimate": "tokens (estimated)",
|
|
107
|
-
"overview.free": "Free
|
|
107
|
+
"overview.free": "Free Window",
|
|
108
108
|
"overview.used": "of context used",
|
|
109
109
|
"overview.ofUsed": "of used context",
|
|
110
|
-
"stats.title": "Context
|
|
110
|
+
"stats.title": "Context Stats",
|
|
111
111
|
"stats.hint": "Over the retained history window (same as the History chart)",
|
|
112
112
|
"stats.turns": "Turns",
|
|
113
113
|
"stats.steps": "Steps",
|
|
114
114
|
"stats.injects": "Injections",
|
|
115
115
|
"stats.compactions": "Compactions",
|
|
116
116
|
"stats.prunes": "Prunes",
|
|
117
|
-
"plugin.title": "Plugin
|
|
117
|
+
"plugin.title": "Plugin Info",
|
|
118
118
|
"plugin.hint": "The best DSH context plugin \u2B50",
|
|
119
119
|
"plugin.name": "Plugin",
|
|
120
120
|
"plugin.github": "GitHub",
|
|
121
|
-
"tools.top": "Top
|
|
121
|
+
"tools.top": "Top Tool Schemas:",
|
|
122
122
|
"tools.more": "of {n}",
|
|
123
123
|
"trend.title": "Context History",
|
|
124
124
|
"gran.step": "Step",
|
|
@@ -127,11 +127,11 @@ var DICT_EN = {
|
|
|
127
127
|
"trend.empty": "Send a message and each model request\u2019s context makeup shows up here",
|
|
128
128
|
"detail.step": "Turn {t} \xB7 Step {s}",
|
|
129
129
|
"detail.turn": "Turn {t} \xB7 {n} steps",
|
|
130
|
-
"detail.lastStep": "
|
|
131
|
-
"detail.estTotal": "
|
|
132
|
-
"detail.actual": "
|
|
133
|
-
"detail.output": "
|
|
134
|
-
"events.title": "Context
|
|
130
|
+
"detail.lastStep": "Last Step",
|
|
131
|
+
"detail.estTotal": "Estimated \u2248 {n}",
|
|
132
|
+
"detail.actual": "Actual Prompt {n}",
|
|
133
|
+
"detail.output": "Output {n}",
|
|
134
|
+
"events.title": "Context Events",
|
|
135
135
|
"events.empty": "No context events yet (compaction, injections, model switches appear here)",
|
|
136
136
|
"events.at": "Turn {t} \xB7 Step {s}",
|
|
137
137
|
"events.range": "Turn {t} \xB7 Step {a}\u2192{b}",
|
|
@@ -149,37 +149,37 @@ var DICT_EN = {
|
|
|
149
149
|
"footer": "Estimate: same fixed-density heuristic as dsh\u2019s built-in tokenMeter (~4 chars \u2248 1 token); \u201Cactual\u201D is provider-reported usage.",
|
|
150
150
|
"tip.step": "Turn {t} \xB7 Step {s}",
|
|
151
151
|
"tip.turn": "Turn {t} \xB7 {n} steps",
|
|
152
|
-
"tip.total": "
|
|
152
|
+
"tip.total": "Total \u2248 {n}",
|
|
153
153
|
"tip.actual": " (actual {n})",
|
|
154
154
|
"ev.compaction": "Context compacted (summary replaced {n} messages)",
|
|
155
155
|
"ev.prune": "Tool output pruned",
|
|
156
156
|
"ev.skill": "Skill injected ({name})",
|
|
157
157
|
"ev.model": "Model switched: {a} \u2192 {b}",
|
|
158
158
|
"form.instructions": "Instructions",
|
|
159
|
-
"form.catalog": "Catalog
|
|
160
|
-
"form.snapshot": "State
|
|
159
|
+
"form.catalog": "Catalog Update",
|
|
160
|
+
"form.snapshot": "State Snapshot",
|
|
161
161
|
"form.notice": "Notice",
|
|
162
|
-
"form.relay": "Agent
|
|
162
|
+
"form.relay": "Agent Relay",
|
|
163
163
|
"form.recall": "Recall",
|
|
164
|
-
"form.context": "Context
|
|
165
|
-
"node.toolResult": "Tool
|
|
166
|
-
"node.calls": "
|
|
164
|
+
"form.context": "Context Injection",
|
|
165
|
+
"node.toolResult": "Tool Result",
|
|
166
|
+
"node.calls": "Calls ",
|
|
167
167
|
"node.empty": "(empty reply)",
|
|
168
168
|
"node.nonText": "(non-text message)",
|
|
169
|
-
"node.snapshot": "
|
|
169
|
+
"node.snapshot": "Snapshot: ",
|
|
170
170
|
"cmd.desc": "View context makeup and how it evolves",
|
|
171
171
|
"cmd.close": "Close",
|
|
172
172
|
"browser.title": "Context Browser",
|
|
173
|
-
"browser.live": "Live (
|
|
174
|
-
"browser.liveNow": "Live \xB7
|
|
175
|
-
"browser.items": "{n}
|
|
173
|
+
"browser.live": "Live (Next Request)",
|
|
174
|
+
"browser.liveNow": "Live \xB7 Next Request",
|
|
175
|
+
"browser.items": "{n} Items",
|
|
176
176
|
"browser.missingLive": "\u2026 {n} earlier messages are also part of the context (outside the served window)",
|
|
177
177
|
"browser.approx": "Some removed messages of this step exceed retention \u2014 the makeup below is approximate",
|
|
178
178
|
"browser.noHeader": "Served by an older plugin build: token estimates only, no content",
|
|
179
|
-
"browser.noEpoch": "The header content (
|
|
179
|
+
"browser.noEpoch": "The header content (System Prompt / Tool Schemas) of this step is outside retention",
|
|
180
180
|
"browser.noContent": "Full content is outside the loaded message window (load older history in Chat to view)",
|
|
181
181
|
"browser.loading": "Loading full content from older session history\u2026",
|
|
182
|
-
"browser.preview": "
|
|
182
|
+
"browser.preview": "Preview"
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
// src/client/modalStore.ts
|
|
@@ -1288,7 +1288,7 @@ function makeEventList(kit) {
|
|
|
1288
1288
|
|
|
1289
1289
|
// src/client/meta.ts
|
|
1290
1290
|
var PLUGIN_NAME = "dsh-context";
|
|
1291
|
-
var PLUGIN_VERSION = true ? "0.
|
|
1291
|
+
var PLUGIN_VERSION = true ? "0.15.0" : "0.0.0-dev";
|
|
1292
1292
|
var PLUGIN_REPO = true ? "https://github.com/bowenliang123/dsh-context" : "https://github.com/bowenliang123/dsh-context";
|
|
1293
1293
|
var PLUGIN_REPO_SHORT = PLUGIN_REPO.replace(/^https?:\/\/github\.com\//, "");
|
|
1294
1294
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-context",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "A DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.",
|
|
5
5
|
"author": "bowenliang123",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"test": "npm run typecheck && node tests/host.test.mjs && node tests/client.test.mjs",
|
|
32
32
|
"release": "bash scripts/publish.sh",
|
|
33
33
|
"hooks": "bash scripts/install-hooks.sh",
|
|
34
|
-
"repro": "node tests/repro-real-react.mjs"
|
|
34
|
+
"repro": "node tests/repro-real-react.mjs",
|
|
35
|
+
"social-preview": "node docs/social-preview/generate.mjs"
|
|
35
36
|
},
|
|
36
37
|
"dsh": {
|
|
37
38
|
"bundle": {
|
|
@@ -58,7 +59,6 @@
|
|
|
58
59
|
],
|
|
59
60
|
"license": "Apache-2.0",
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"playwright-core": "^1.62.1",
|
|
62
62
|
"zod": "^4.4.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@types/react": "^18.3.31",
|
|
71
71
|
"esbuild": "^0.28.2",
|
|
72
72
|
"jsdom": "^30.0.1",
|
|
73
|
+
"playwright-core": "^1.62.1",
|
|
73
74
|
"react": "^18.3.1",
|
|
74
75
|
"react-dom": "^18.3.1",
|
|
75
76
|
"typescript": "^7.0.2"
|