dsh-context 0.12.0 → 0.12.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/lib/client.js CHANGED
@@ -37,7 +37,7 @@ var DICT_ZH = {
37
37
  "trend.title": "\u5386\u53F2\u8D8B\u52BF",
38
38
  "gran.step": "\u6B65\u9AA4",
39
39
  "gran.turn": "\u8F6E\u6B21",
40
- "trend.hint": "\u60AC\u505C\u67F1\u5B50\u67E5\u770B\u8BE6\u60C5\uFF08\u70B9\u51FB\u56FA\u5B9A\uFF09\uFF0C\u2702 \u8868\u793A\u538B\u7F29/\u526A\u679D\uFF1B\u5DE6\u53F3\u6ED1\u52A8\u53EF\u56DE\u770B\u66F4\u65E9\uFF1BStep/Turn \u5207\u6362\u7C92\u5EA6",
40
+ "trend.hint": "\u60AC\u505C\u67E5\u770B\u8BE6\u60C5\uFF0C\u2702 \u8868\u793A\u538B\u7F29/\u526A\u679D\uFF0CStep/Turn \u5207\u6362\u7C92\u5EA6",
41
41
  "trend.empty": "\u53D1\u8D77\u4E00\u8F6E\u5BF9\u8BDD\u540E\uFF0C\u8FD9\u91CC\u4F1A\u5C55\u793A\u6BCF\u6B21\u6A21\u578B\u8BF7\u6C42\u7684\u4E0A\u4E0B\u6587\u6784\u6210",
42
42
  "detail.step": "\u7B2C {t} \u8F6E \xB7 \u7B2C {s} \u6B65",
43
43
  "detail.turn": "\u7B2C {t} \u8F6E \xB7 \u5171 {n} \u6B65",
@@ -83,8 +83,7 @@ var DICT_ZH = {
83
83
  "node.snapshot": "\u5FEB\u7167: ",
84
84
  "cmd.desc": "\u67E5\u770B\u4E0A\u4E0B\u6587\u7684\u6784\u6210\u548C\u53D8\u5316",
85
85
  "cmd.close": "\u5173\u95ED",
86
- "browser.title": "\u4E0A\u4E0B\u6587\u6D4F\u89C8",
87
- "browser.hint": "\u67E5\u770B\u5F53\u524D\u6216\u6307\u5B9A\u6B65\u9AA4\u5B9E\u9645\u7EC4\u88C5\u7684\u4E0A\u4E0B\u6587\u5185\u5BB9",
86
+ "browser.title": "\u4E0A\u4E0B\u6587\u6D4F\u89C8\u5668",
88
87
  "browser.live": "\u5F53\u524D\uFF08\u4E0B\u4E00\u6B21\u8BF7\u6C42\uFF09",
89
88
  "browser.liveNow": "\u5F53\u524D \xB7 \u4E0B\u4E00\u6B21\u8BF7\u6C42",
90
89
  "browser.items": "{n} \u9879",
@@ -173,7 +172,6 @@ var DICT_EN = {
173
172
  "cmd.desc": "View context makeup and how it evolves",
174
173
  "cmd.close": "Close",
175
174
  "browser.title": "Context browser",
176
- "browser.hint": "browse what the live surface or a picked step was actually assembled from",
177
175
  "browser.live": "Live (next request)",
178
176
  "browser.liveNow": "Live \xB7 next request",
179
177
  "browser.items": "{n} items",
@@ -465,7 +463,7 @@ function makeTrendChart(kit) {
465
463
  const CHART_H = 112;
466
464
  const BAR_W = 14;
467
465
  const BAR_GAP = 2;
468
- const TURN_COLORS = ["#6366f1", "#f59e0b", "#22c55e", "#a855f7", "#3b82f6", "#14b8a6", "#ef4444", "#ec4899"];
466
+ const TURN_FILLS = ["rgba(128,128,128,0.12)", "rgba(128,128,128,0.26)"];
469
467
  return function TrendChart(props) {
470
468
  const requests = props.requests;
471
469
  const markers = props.markers;
@@ -595,7 +593,7 @@ function makeTrendChart(kit) {
595
593
  className: "lc-turn" + (on ? " lc-turn-on" : ""),
596
594
  style: {
597
595
  width: blockW + "px",
598
- background: TURN_COLORS[gi % TURN_COLORS.length]
596
+ background: TURN_FILLS[gi % TURN_FILLS.length]
599
597
  },
600
598
  title: "T" + grp.turn,
601
599
  onMouseEnter: () => {
@@ -758,13 +756,16 @@ var STYLES = [
758
756
  ".lc-bar:hover { background: var(--dsw-alias-bg-layer-2); }",
759
757
  ".lc-bar-selected { outline: 2px solid var(--dsw-alias-brand-primary); outline-offset: 1px; }",
760
758
  ".lc-bar-hovered { outline: 1px dashed var(--dsw-alias-brand-primary); outline-offset: 1px; }",
761
- ".lc-bar-in-turn { background: rgba(99,102,241,0.14); }",
759
+ ".lc-bar-in-turn { background: rgba(128,128,128,0.14); }",
762
760
  ".lc-bar-stack { display: flex; flex-direction: column-reverse; width: 100%; }",
763
761
  ".lc-bar-stack > div { width: 100%; }",
764
762
  ".lc-bar-marker { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--dsw-alias-state-warn-primary); }",
763
+ // Turn strip: NEUTRAL zebra fills (inline, see TURN_FILLS) with secondary
764
+ // text — never the category palette, or the strip reads as a detached
765
+ // bottom segment of the bars above it.
765
766
  ".lc-turns { display: flex; gap: 2px; width: max-content; min-width: 100%; margin-top: 4px; }",
766
- ".lc-turn { flex: none; box-sizing: border-box; text-align: center; font-size: 10px; line-height: 14px; font-weight: 600; color: #fff; border-radius: 3px; height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; transition: filter 120ms, opacity 120ms; }",
767
- ".lc-turn-on { filter: brightness(1.35); box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }",
767
+ ".lc-turn { flex: none; box-sizing: border-box; text-align: center; font-size: 10px; line-height: 14px; font-weight: 600; color: var(--dsw-alias-label-secondary); border-radius: 3px; height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; transition: filter 120ms, opacity 120ms; }",
768
+ ".lc-turn-on { filter: brightness(1.35); color: var(--dsw-alias-label-primary); }",
768
769
  ".lc-detail { margin-top: 12px; border-top: 1px solid var(--dsw-alias-border-l1); padding-top: 12px; }",
769
770
  ".lc-detail-head { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; color: var(--dsw-alias-label-secondary); }",
770
771
  ".lc-detail-head b { color: var(--dsw-alias-label-primary); }",
@@ -1123,7 +1124,7 @@ function makeContextBrowser(kit, StackedBar) {
1123
1124
  );
1124
1125
  });
1125
1126
  };
1126
- return /* @__PURE__ */ React.createElement("div", { className: "lc-card" }, /* @__PURE__ */ React.createElement("div", { className: "lc-card-title" }, t("browser.title"), /* @__PURE__ */ React.createElement("span", { className: "lc-card-sub" }, t("browser.hint")), /* @__PURE__ */ React.createElement(
1127
+ return /* @__PURE__ */ React.createElement("div", { className: "lc-card" }, /* @__PURE__ */ React.createElement("div", { className: "lc-card-title" }, t("browser.title"), /* @__PURE__ */ React.createElement(
1127
1128
  "select",
1128
1129
  {
1129
1130
  className: "lc-br-pick",
@@ -1227,7 +1228,7 @@ function makeEventList(kit) {
1227
1228
 
1228
1229
  // src/client/meta.ts
1229
1230
  var PLUGIN_NAME = "dsh-context";
1230
- var PLUGIN_VERSION = true ? "0.12.0" : "0.0.0-dev";
1231
+ var PLUGIN_VERSION = true ? "0.12.1" : "0.0.0-dev";
1231
1232
  var PLUGIN_REPO = true ? "https://github.com/bowenliang123/dsh-context" : "https://github.com/bowenliang123/dsh-context";
1232
1233
  var PLUGIN_REPO_SHORT = PLUGIN_REPO.replace(/^https?:\/\/github\.com\//, "");
1233
1234
 
package/lib/index.js CHANGED
@@ -4,7 +4,7 @@ var DEFAULT_BOUNDS = {
4
4
  maxRequestSteps: 1500,
5
5
  maxKeptTurns: 300,
6
6
  maxEvents: 400,
7
- maxNodes: 200,
7
+ maxNodes: 2e3,
8
8
  maxArchiveNodes: 400
9
9
  };
10
10
  var Config = z.preprocess(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-context",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
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": {
@@ -26,6 +26,7 @@
26
26
  ],
27
27
  "scripts": {
28
28
  "build": "node scripts/build.mjs",
29
+ "register": "dsh plugin --profile web remove dsh-context ; dsh plugin --profile web add .",
29
30
  "typecheck": "tsc --noEmit",
30
31
  "test": "npm run typecheck && node tests/host.test.mjs && node tests/client.test.mjs",
31
32
  "release": "bash scripts/publish.sh",