@jayyuen66/dsh-zvec-grep 0.1.8 → 0.1.9

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/docs/DETAIL.md ADDED
@@ -0,0 +1,28 @@
1
+ # Zvec indexed search
2
+
3
+ Searches the workspace through a local index instead of raw grep, and can require an indexed search before plain `grep` / `rg` are allowed.
4
+
5
+ ## What the card changes
6
+
7
+ - **Search model** — `defaultEmbedding` (default `local/qwen3-embedding-0.6b`, about 640 MB) applies to **new** indexes only; an existing index keeps its model until it is rebuilt. `defaultLimit` (1–50, default 10) is how many hits each result group returns.
8
+ - **Network and indexing** — `hfEndpoint` defaults to the ModelScope mirror (`https://modelscope.cn/models`); leaving it empty means huggingface.co, which this environment typically cannot reach, so the default should stay. `enforceSearchFirst` (on) gates `grep` / `rg` inside indexed workspaces. `grepBudgetPerSearch` (default 3) is how many plain searches each successful `zg_search` unlocks, and `unlockWindowMin` (default 10) how many minutes that unlock stays valid — unlock entries age out on their own TTL and LRU, so they do not wait for a restart. When the step's tool admission does not include `zg_search`, the gate stands down rather than forcing a call the step cannot make.
9
+
10
+ These are read per call and take effect without restarting the host.
11
+
12
+ ## The Rebuild action is not a setting
13
+
14
+ The card's Rebuild button runs the equivalent of `zg index --rebuild` for a workspace the daemon has already observed; it is an action with an approval prompt, not a stored preference.
15
+
16
+ ## Restart-only values
17
+
18
+ Ten deployment values stay off the card: `searchTimeoutMs` (300000), `statusTimeoutMs` (60000), `indexTimeoutMs` (600000), `stdoutMaxBytes` (400000), `rebuildWaitMs`, `clientMode` (`auto` / `direct` / `server`), `allowRemoteEmbedding` (false), `remoteEmbeddingEndpoint`, `remoteEmbeddingApiKeyFrom`, `requireApprovalForExplicitRoot` (false).
19
+
20
+ Whether workspace content may leave the machine at all is treated as a deployment decision rather than a model-visible choice, which is why the remote-embedding trio appears in neither the card nor the tool parameters; and even when it is enabled, `zg` itself still requires `--allow-remote` or `zg auth grant`. Set all of these in the `config:` block of this plugin's row in `cordis.patch.yml`; they take effect on restart.
21
+
22
+ ## What it needs from outside
23
+
24
+ The external `zg` CLI (`@zvec/zvec-grep`, installed with `npm install -g @zvec/zvec-grep`). The plugin enforces a version floor of **0.2.2** before it builds any command and says so when the installed one is older; a missing CLI is reported as such instead of failing a search. Incremental index refresh, `refresh=background` and the resident model pool need the daemon running (`zg server on`) — when it is offline the card says so. Local embedding backends may require their own native dependency (llama-cpp needs `node-llama-cpp`; model2vec and transformers-js are pure JavaScript). `ZVEC_GREP_ENDPOINT` and `ZVEC_GREP_API_KEY` are read as environment references; the key is forwarded explicitly because the host's subprocess layer strips secret-shaped variables.
25
+
26
+ ## Further detail
27
+
28
+ The error-code table, the argument guards and the background-job surface are in the package README (`README.md` / `README.zh-CN.md`).
@@ -0,0 +1,28 @@
1
+ # Zvec 索引检索
2
+
3
+ 用本地索引检索工作区,而不是裸 grep;也可以要求先走一次索引检索,才允许用普通 `grep` / `rg`。
4
+
5
+ ## 设置卡上改的是什么
6
+
7
+ - **检索模型** — `defaultEmbedding`(默认 `local/qwen3-embedding-0.6b`,约 640 MB)只作用于**新建**的索引;已有索引沿用它自己的模型,要换得先重建。`defaultLimit`(1–50,默认 10)是每组结果返回多少条命中。
8
+ - **网络与索引** — `hfEndpoint` 默认指向 ModelScope 镜像(`https://modelscope.cn/models`);留空就是 huggingface.co,而这个环境通常连不上,所以默认值应当保留。`enforceSearchFirst`(默认开)在已建索引的工作区里拦住 `grep` / `rg`。`grepBudgetPerSearch`(默认 3)是一次成功的 `zg_search` 解锁多少次直查,`unlockWindowMin`(默认 10)是这份解锁维持几分钟——解锁条目按自己的 TTL 与 LRU 过期,不等进程重启。本步骤的工具准入不含 `zg_search` 时,门禁让路,不强迫模型去调一个本步骤调不动的工具。
9
+
10
+ 这些每次调用现读,改完不需要重启宿主。
11
+
12
+ ## Rebuild 不是设置项
13
+
14
+ 卡上的 Rebuild 是对守护进程已经观察到的工作区跑一次等价于 `zg index --rebuild` 的动作,带审批提示;它不是被存起来的偏好。
15
+
16
+ ## 要重启的值
17
+
18
+ 十项部署值刻意不进设置卡:`searchTimeoutMs`(300000)、`statusTimeoutMs`(60000)、`indexTimeoutMs`(600000)、`stdoutMaxBytes`(400000)、`rebuildWaitMs`、`clientMode`(`auto` / `direct` / `server`)、`allowRemoteEmbedding`(false)、`remoteEmbeddingEndpoint`、`remoteEmbeddingApiKeyFrom`、`requireApprovalForExplicitRoot`(false)。
19
+
20
+ 「工作区内容能不能离开本机」被当成部署决定,而不是给模型选的开关,所以远程嵌入那三枚既不在卡上也不在工具参数里;即便开了,`zg` 自己仍要求 `--allow-remote` 或 `zg auth grant`。这些值都写在本插件注册行的 `config:` 块,改值随重启生效。
21
+
22
+ ## 需要外部提供什么
23
+
24
+ 外部 `zg` 命令行(`@zvec/zvec-grep`,装法是 `npm install -g @zvec/zvec-grep`)。本插件在拼出任何命令之前先校版本,地板是 **0.2.2**,装的版本低于它会直接说明;命令行不存在时按「未安装」报,而不是伪装成一次查不到。增量索引刷新、`refresh=background` 与常驻模型池都需要守护进程在跑(`zg server on`),离线时卡上会写出来。本地嵌入的后端可能还要各自的依赖(llama-cpp 需要 `node-llama-cpp`;model2vec 与 transformers-js 是纯 JavaScript)。`ZVEC_GREP_ENDPOINT` 与 `ZVEC_GREP_API_KEY` 按环境变量引用读取;密钥要显式转发,因为宿主的子进程层会抹掉形似密钥的变量。
25
+
26
+ ## 更完整的说明
27
+
28
+ 错误码表、参数守卫与后台作业面都写在随包 README(`README.md` / `README.zh-CN.md`)。
package/host.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import Schema from "@deepseek-ai/schemastery";
3
3
  import { accessSync, constants, existsSync, readFileSync, statSync } from "node:fs";
4
4
  import { tmpdir } from "node:os";
5
+ import { scopeOf } from "@deepseek-ai/dsh-scope";
5
6
  import { isRecord } from "@jayyuen66/dsh-plugin-shared/lib/record";
6
7
  import { errorText } from "@jayyuen66/dsh-plugin-shared/lib/errors";
7
8
  import { LOCALE_SETTINGS_NAMESPACE, messagesFor, resolveLocalePreference } from "@jayyuen66/dsh-plugin-shared/lib/locale";
@@ -1049,6 +1050,8 @@ function buildStatusCommand(args, messages, mode = DEFAULT_CLIENT_MODE) {
1049
1050
  return assembled(parts, root, messages);
1050
1051
  }
1051
1052
  // lib/search-predicates.ts
1053
+ /** 根目录末尾斜杠。 */
1054
+ const TRAILING_SLASHES$1 = /\/+$/u;
1052
1055
  const GREP_COMMAND_NAMES = /* @__PURE__ */ new Set([
1053
1056
  "grep",
1054
1057
  "egrep",
@@ -1111,7 +1114,7 @@ const VALUE_TAKING_FLAGS = /* @__PURE__ */ new Set([
1111
1114
  "--user"
1112
1115
  ]);
1113
1116
  /** 命令前的壳层赋值(`VAR=1 grep x` 里的 `VAR=1`):它自己不是命令,其后仍是命令位。 */
1114
- const SHELL_ASSIGNMENT = /^[A-Za-z_][A-Za-z0-9_]*=/u;
1117
+ const SHELL_ASSIGNMENT = /^[A-Za-z_]\w*=/u;
1115
1118
  /** 包装命令的裸数值参数(`timeout 5 rg` 的 `5`):也不是被执行的命令。 */
1116
1119
  const BARE_NUMBER = /^\d+$/u;
1117
1120
  /** 结束一个 token、但**不**开启新命令位的字符(空白、右括号、重定向)。 */
@@ -1293,7 +1296,7 @@ function isGrepRgCommand(command) {
1293
1296
  * 失败形态是 fail-fast 而不是静默漂移。要真正支持 Windows,得连上面那三处判据一起改。
1294
1297
  */
1295
1298
  function normalizeRoot(root) {
1296
- const trimmed = root.replace(/\/+$/u, "");
1299
+ const trimmed = root.replace(TRAILING_SLASHES$1, "");
1297
1300
  return trimmed.length > 0 ? trimmed : "/";
1298
1301
  }
1299
1302
  /**
@@ -1390,6 +1393,19 @@ const ZG_TOOL_NAMES = /* @__PURE__ */ new Set([
1390
1393
  function isZgToolName(name) {
1391
1394
  return typeof name === "string" && ZG_TOOL_NAMES.has(name);
1392
1395
  }
1396
+ /** search-first 门禁要求先调用的工具名(与注册表里的名字同源)。 */
1397
+ const ZG_SEARCH_NAME = "zg_search";
1398
+ /**
1399
+ * `zg_search` 在本步骤是否可执行。宿主不交步骤准入(rc 线)时按既有的「可执行」处理:
1400
+ * 没有准入信息就不该凭空放行。有准入时按该 Agent 的作用域查视图——受限子代理的
1401
+ * 拒绝与条件工具的未准入都在这里显形,门禁不再强迫模型去调一个本步骤调不动的工具。
1402
+ */
1403
+ function searchAdmitted(execution) {
1404
+ const { toolSet } = execution;
1405
+ if (toolSet === void 0) return true;
1406
+ const scope = execution.agent?.ctx === void 0 ? void 0 : scopeOf(execution.agent.ctx);
1407
+ return toolSet.view(scope).has(ZG_SEARCH_NAME);
1408
+ }
1393
1409
  /** 会话工作区(官方 Agent.session.header.cwd;值按 unknown 读,理由见 SessionFace)。 */
1394
1410
  function sessionHeaderCwd$1(execution) {
1395
1411
  const raw = execution.agent?.session?.header?.cwd;
@@ -1586,7 +1602,7 @@ function searchFirstGuard(execution, deps, messages) {
1586
1602
  const args = isRecord(execution.arguments) ? execution.arguments : {};
1587
1603
  const cwd = sessionHeaderCwd$1(execution);
1588
1604
  let reason;
1589
- if (deps.enabled && cwd !== void 0) {
1605
+ if (deps.enabled && cwd !== void 0 && searchAdmitted(execution)) {
1590
1606
  if (name === "bash" || name === "pwsh") reason = shellSearchProblem(args, cwd, deps, messages);
1591
1607
  else if (name === "grep") reason = nativeGrepProblem(args, cwd, deps, messages);
1592
1608
  }
@@ -1700,6 +1716,8 @@ function createRebuildRegistry(options = {}) {
1700
1716
  }
1701
1717
  /** 索引重建与其它占用者分开:等与不等是两回事。 */
1702
1718
  const REBUILD_OPERATION = "index.rebuild";
1719
+ /** 明细块的表头行(`Details:`)。 */
1720
+ const DETAILS_HEADER = /^\s*Details:\s*$/u;
1703
1721
  /**
1704
1722
  * zg 明细块的键值行。三个细节都来自「明细行是缩进的」这一实测形状:
1705
1723
  * - 缩进**必填**(`\s+`):明细块之后任何含冒号的非空行(第二个错误块的 `Error:` /
@@ -1708,7 +1726,7 @@ const REBUILD_OPERATION = "index.rebuild";
1708
1726
  * 还能被认出来(值是否被消费由查表侧决定),不至于整块收集在此中断;
1709
1727
  * - 值必须以非空白开头:把只含空白的行当成有效值没有意义。
1710
1728
  */
1711
- const DETAIL_LINE = /^(?:\s+)(?<key>[A-Za-z][\w-]*):\s*(?<value>\S.*?)\s*$/u;
1729
+ const DETAIL_LINE = /^\s+(?<key>[A-Za-z][\w-]*):\s*(?<value>\S.*)$/u;
1712
1730
  /** 错误码行的**定位**形状(只认行首,不核内容)。 */
1713
1731
  const CODE_LINE_PREFIX = /^\s*Code:/u;
1714
1732
  /** 错误码行的**取值**形状:`Code:` 之后是单一 token。 */
@@ -1731,12 +1749,12 @@ function zgErrorCode(stderr) {
1731
1749
  function zgErrorDetails(stderr) {
1732
1750
  const details = /* @__PURE__ */ new Map();
1733
1751
  const lines = stderr.split("\n");
1734
- const start = lines.findIndex((line) => /^\s*Details:\s*$/u.test(line));
1752
+ const start = lines.findIndex((line) => DETAILS_HEADER.test(line));
1735
1753
  if (start === -1) return details;
1736
1754
  for (const line of lines.slice(start + 1)) {
1737
1755
  const matched = DETAIL_LINE.exec(line);
1738
1756
  const key = matched?.groups?.["key"];
1739
- const value = matched?.groups?.["value"];
1757
+ const value = matched?.groups?.["value"]?.trimEnd();
1740
1758
  if (key !== void 0 && value !== void 0) {
1741
1759
  if (!details.has(key)) details.set(key, value);
1742
1760
  } else if (line.trim().length > 0) break;
@@ -1928,6 +1946,8 @@ function procSandboxNote(proc, messages) {
1928
1946
  /** 宿主服务键 = 客户端线上命名空间(两侧共用的唯一来源)。 */
1929
1947
  const REBUILD_REMOTE_NAMESPACE = "zvecGrepRebuild";
1930
1948
  // lib/zg-config.ts
1949
+ /** 端点末尾斜杠。 */
1950
+ const TRAILING_SLASHES = /\/+$/u;
1931
1951
  /** http(s) 且带 host 的基地址才算端点:`http://`、`/` 这类值不是可用的镜像基地址。 */
1932
1952
  function isUsableBaseUrl(value) {
1933
1953
  try {
@@ -1947,7 +1967,7 @@ function hfEndpointEnv(config) {
1947
1967
  const endpoint = config.hfEndpoint.get();
1948
1968
  let env;
1949
1969
  if (typeof endpoint === "string") {
1950
- const normalized = endpoint.trim().replace(/\/+$/u, "");
1970
+ const normalized = endpoint.trim().replace(TRAILING_SLASHES, "");
1951
1971
  if (normalized.length > 0 && isUsableBaseUrl(normalized)) env = { HF_ENDPOINT: normalized };
1952
1972
  }
1953
1973
  return env;
@@ -1975,7 +1995,7 @@ function allowRemoteEmbedding(config) {
1975
1995
  * 任意变量(含与 zg 无关的敏感值)转发给子进程;`__proto__` / `constructor` 这类键还会
1976
1996
  * 让 `process.env[name]` 读到对象而不是字符串。不匹配的名字按「没配」处理。
1977
1997
  */
1978
- const ENV_NAME_SHAPE = /^[A-Za-z_][A-Za-z0-9_]*$/u;
1998
+ const ENV_NAME_SHAPE = /^[A-Za-z_]\w*$/u;
1979
1999
  /**
1980
2000
  * zg 子进程的环境变量:HF 镜像 + (仅在部署开放远程 embedding 时的)远程端点与凭据。
1981
2001
  *
@@ -2160,8 +2180,10 @@ function pruneRebuildHistory(jobs, records) {
2160
2180
  * 为什么单独认这一条:它是本包唯一会把宿主英文原话插进中文卡片的错误,又恰恰最该翻成
2161
2181
  * 人话的那一条——用户此时要做的是去 job_list 里收掉不需要的作业,而不是读一句英文。
2162
2182
  */
2183
+ /** 远端容量上限的括号形态。 */
2184
+ const CAPACITY_LIMIT = /\(limit: (?<limit>\d+)\)/u;
2163
2185
  function capacityLimitOf(error) {
2164
- return /\(limit: (?<limit>\d+)\)/u.exec(errorText(error))?.groups?.["limit"];
2186
+ return CAPACITY_LIMIT.exec(errorText(error))?.groups?.["limit"];
2165
2187
  }
2166
2188
  /**
2167
2189
  * 「工作区重建」的四道前置校验:绝对路径 + 归一化、本 daemon 观测过的白名单、
@@ -2607,6 +2629,8 @@ function installRebuildRemote(ctx, deps) {
2607
2629
  return true;
2608
2630
  }
2609
2631
  // host.ts
2632
+ /** 纯数字计数行。 */
2633
+ const DIGITS_ONLY = /^\d+$/u;
2610
2634
  const SEARCH_TIMEOUT_MS = 3e5;
2611
2635
  const STATUS_TIMEOUT_MS = 6e4;
2612
2636
  const INDEX_TIMEOUT_MS = 6e5;
@@ -2936,7 +2960,7 @@ const HITS_LINE_PREFIX = "hits: ";
2936
2960
  const HIT_LINE_PREFIX = /^#\d+(?:\s+\[[^\]]*\])?\s+matchedBy=\S+\s+(?:score=-?\d+(?:\.\d+)?\s+)?(?<location>\S.*)$/u;
2937
2961
  function hitSummary(stdoutText, limit, truncated, messages) {
2938
2962
  const lines = stdoutText.split("\n");
2939
- const perGroup = lines.filter((line) => line.startsWith(HITS_LINE_PREFIX)).map((line) => line.slice(6)).filter((digits) => /^\d+$/u.test(digits)).map((digits) => Math.trunc(Number(digits)));
2963
+ const perGroup = lines.filter((line) => line.startsWith(HITS_LINE_PREFIX)).map((line) => line.slice(6)).filter((digits) => DIGITS_ONLY.test(digits)).map((digits) => Math.trunc(Number(digits)));
2940
2964
  if (perGroup.length === 0) return null;
2941
2965
  const locations = /* @__PURE__ */ new Set();
2942
2966
  for (const line of lines) {
package/locale/en.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Zvec indexed search",
4
+ "description": "Searches the workspace with a local index instead of raw grep, and gates plain grep behind an indexed search.",
5
+ "detail": "docs/DETAIL.md"
6
+ }
7
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Zvec 索引检索",
4
+ "description": "用本地索引检索工作区,替代裸 grep,并可要求先走索引检索再允许直查。",
5
+ "detail": "docs/DETAIL.zh.md"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayyuen66/dsh-zvec-grep",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "dsh 工作区语义检索插件(zg):zg_search / zg_index / zg_status + 本地 embedding 设置卡片 + systemPrompt 路由规则 + guard 安全兜底。",
5
5
  "keywords": [
6
6
  "cordis",
@@ -23,6 +23,9 @@
23
23
  },
24
24
  "files": [
25
25
  "icon.svg",
26
+ "locale/zh.json",
27
+ "locale/en.json",
28
+ "docs",
26
29
  "README.md",
27
30
  "README.zh-CN.md",
28
31
  "CHANGELOG.md",
@@ -37,6 +40,7 @@
37
40
  ".": "./host.js",
38
41
  "./client": "./client.js",
39
42
  "./cordis.patch.yml": "./cordis.patch.yml",
43
+ "./locale/*.json": "./locale/*.json",
40
44
  "./package.json": "./package.json"
41
45
  },
42
46
  "publishConfig": {
@@ -44,48 +48,55 @@
44
48
  "registry": "https://registry.npmjs.org"
45
49
  },
46
50
  "dependencies": {
47
- "@jayyuen66/dsh-plugin-shared": "0.1.9"
51
+ "@jayyuen66/dsh-plugin-shared": "0.2.1",
52
+ "zod": "4.6.7"
48
53
  },
49
54
  "devDependencies": {
50
- "@deepseek-ai/cordis": "4.0.5",
51
- "@deepseek-ai/cordis-plugin-group": "1.0.5",
52
- "@deepseek-ai/cordis-plugin-timer": "1.1.7",
53
- "@deepseek-ai/dsh-api-remotes": "0.2.1-rc.3",
54
- "@deepseek-ai/dsh-bash-local": "0.2.1-rc.3",
55
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.3",
56
- "@deepseek-ai/dsh-client-store": "0.2.1-rc.3",
57
- "@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.3",
58
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-rc.3",
59
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.3",
60
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3",
61
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.3",
62
- "@deepseek-ai/dsh-host-webserver": "0.2.1-rc.3",
63
- "@deepseek-ai/dsh-http-proxy": "0.2.1-rc.3",
64
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.3",
65
- "@deepseek-ai/dsh-jobs-local": "0.2.1-rc.3",
66
- "@deepseek-ai/dsh-llm": "0.2.1-rc.3",
67
- "@deepseek-ai/dsh-output-retention": "0.2.1-rc.3",
68
- "@deepseek-ai/dsh-package-manifest": "0.2.1-rc.3",
69
- "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.3",
70
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.3",
71
- "@deepseek-ai/dsh-scope": "0.2.1-rc.3",
72
- "@deepseek-ai/dsh-session": "0.2.1-rc.3",
73
- "@deepseek-ai/dsh-settings": "0.2.1-rc.3",
74
- "@deepseek-ai/dsh-shell": "0.2.1-rc.3",
75
- "@deepseek-ai/dsh-subprocess": "0.2.1-rc.3",
76
- "@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.3",
77
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.3",
78
- "@deepseek-ai/dsh-timeout": "0.2.1-rc.3",
79
- "@deepseek-ai/dsh-tools": "0.2.1-rc.3",
80
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.3",
81
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.3",
82
- "@deepseek-ai/schemastery": "3.18.5",
83
- "@types/node": "26.6.5",
55
+ "@deepseek-ai/cordis": "4.0.6-alpha.1",
56
+ "@deepseek-ai/cordis-plugin-group": "1.0.6-alpha.1",
57
+ "@deepseek-ai/cordis-plugin-timer": "1.1.8-alpha.1",
58
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
59
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-alpha.2",
60
+ "@deepseek-ai/dsh-bash-local": "0.2.2-alpha.2",
61
+ "@deepseek-ai/dsh-client-locale": "0.2.2-alpha.2",
62
+ "@deepseek-ai/dsh-client-store": "0.2.2-alpha.2",
63
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.2-alpha.2",
64
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-alpha.2",
65
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.2",
66
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-alpha.2",
67
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.2",
68
+ "@deepseek-ai/dsh-host-webserver": "0.2.2-alpha.2",
69
+ "@deepseek-ai/dsh-http-proxy": "0.2.2-alpha.2",
70
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
71
+ "@deepseek-ai/dsh-jobs-local": "0.2.2-alpha.2",
72
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
73
+ "@deepseek-ai/dsh-output-retention": "0.2.2-alpha.2",
74
+ "@deepseek-ai/dsh-package-manifest": "0.2.2-alpha.2",
75
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.2-alpha.2",
76
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
77
+ "@deepseek-ai/dsh-scope": "0.2.2-alpha.2",
78
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
79
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
80
+ "@deepseek-ai/dsh-settings": "0.2.2-alpha.2",
81
+ "@deepseek-ai/dsh-shell": "0.2.2-alpha.2",
82
+ "@deepseek-ai/dsh-subprocess": "0.2.2-alpha.2",
83
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-alpha.2",
84
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
85
+ "@deepseek-ai/dsh-timeout": "0.2.2-alpha.2",
86
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.2",
87
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
88
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.2",
89
+ "@deepseek-ai/dsh-user-approval": "0.2.2-alpha.2",
90
+ "@deepseek-ai/schemastery": "3.18.6-alpha.1",
91
+ "@e18e/eslint-plugin": "0.8.1",
92
+ "@types/node": "26.6.6",
84
93
  "@types/react": "19.3.0",
85
94
  "@vitest/coverage-v8": "5.0.5",
95
+ "eslint-plugin-regexp": "3.3.2",
86
96
  "eslint-plugin-sonarjs": "4.2.2",
87
- "oxfmt": "0.74.0",
88
- "oxlint": "1.89.0",
97
+ "eslint-plugin-zod": "5.2.2",
98
+ "oxfmt": "0.75.0",
99
+ "oxlint": "1.90.0",
89
100
  "oxlint-tsgolint": "7.0.2005",
90
101
  "react": "^19.3.0",
91
102
  "rolldown": "1.2.15",
@@ -95,9 +106,10 @@
95
106
  },
96
107
  "peerDependencies": {
97
108
  "@deepseek-ai/dsh": "^0.2.1-rc.3",
98
- "@deepseek-ai/dsh-output-retention": "0.2.1-rc.3",
99
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.3",
100
- "@deepseek-ai/schemastery": "3.18.5"
109
+ "@deepseek-ai/dsh-output-retention": "^0.2.1-rc.3",
110
+ "@deepseek-ai/dsh-scope": "^0.2.1-rc.3",
111
+ "@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.3",
112
+ "@deepseek-ai/schemastery": "3.18.6-alpha.1"
101
113
  },
102
114
  "peerDependenciesMeta": {
103
115
  "@deepseek-ai/dsh": {