@v587d/capital-generation 2.17.0 → 2.18.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/CHANGELOG.md CHANGED
@@ -7,6 +7,49 @@
7
7
  - **第三位(patch)**:不破坏既有工具 / 配置 / 会话的新增与修复(如 2.1.1、2.1.2)。
8
8
  - **第二位(minor)**:有需要用户知晓的行为变更,且段内附迁移说明(如 2.1.0 的图表呈现通道重做、2.2.0 的数据源与检索来源扩容、2.4.0 的**必须换宿主版本**、2.9.0 的选择器收敛与质检前置——本插件自己的工具与数据契约没变,所以只抬第二位)。
9
9
 
10
+ ## [2.18.0] - 2026-11-06
11
+
12
+ 适配 DSH 0.2.2-rc.1:宿主把工具执行面拆成 native / PTC 两个 executor、把工具调用管线与并发调度
13
+ 移出 `dsh-tools` 主入口,并重做了交付卡重放与委派工具面的几处契约。本版同步插件装配、依赖
14
+ pin、探针与文档;本插件自己的工具与数据契约不变。
15
+
16
+ ### Changed
17
+
18
+ - **宿主基线升至 `@deepseek-ai/dsh@0.2.2-rc.1`**:两个 dsh peer 精确 pin 到该版本,devDependencies
19
+ 与 `package-lock.json` 同步;`@deepseek-ai/cordis` 升到 `~4.1.0`、`@deepseek-ai/schemastery` 升到
20
+ `^3.19.0`。宿主最低 Node.js 版本现为 24.9。
21
+ - **data_junior 的 PTC 行改为直接挂 `@deepseek-ai/dsh-tool-executor-ptc`**(`maxParallelSubCalls: 10`):
22
+ 0.2.1 的 `@deepseek-ai/dsh-agent-tool-presentation`(`mode: ptc`)在 0.2.2 只剩 Deprecated 兼容壳。
23
+ 行 id 仍是 `tool-presentation`,宿主 `ptc-runtime` 仍由 `dsh-base` 提供。
24
+ - **删掉 `@deepseek-ai/dsh-tool-subagent-control/list-agents` 子路径行**:0.2.2 起主入口一次注册
25
+ `send_message` / `interrupt_agent` / `list_agents`,旧子路径不存在;保留它会让整颗根 preset
26
+ `broken`、所有根族行不激活。
27
+ - **叶子角色同时减掉 `list_agents`**:它随 `tool-subagent-control` 主入口焊进每颗角色,角色只需
28
+ `send_message`;`role-tool-policy` 的兄弟名字 deny 与调用级 guard 都从一颗变两颗。
29
+ - **交付卡语义跟随上游**:0.2.2 的客户端重放**整轮** `deliverables/presented`(去掉
30
+ `file.seq < owner.seq` 过滤),收尾回复之后写入的交付也会显示;本仓仍在收尾流 `finish` 帧写入,
31
+ 因为那里才是"这轮是纯文本收尾"的判定点,不再是为了躲 seq 截断。
32
+ - **探针与账本跟随 0.2.2 的实现落点**:`tools` 的 invoke pipeline / 并发调度移到
33
+ `dsh-tools/lib/pipeline.js`;`tools.guard` 与 `tools.layers` 分成两个 ScopedLayers(smoke 读
34
+ `tools.guards.global.guards`);`webServer.register` 收 `WebRoute | WebResourceRoute`;
35
+ `dsh-tool-subagent` 的 `modelSelectionSettings` 拆成 `modelSelection` / `modelDiscovery`。
36
+
37
+ ### Fixed
38
+
39
+ - **`verify:sessions` 跟随 0.2.2 的持久化导出面**:`@deepseek-ai/dsh-session-persistence-jsonl`
40
+ 不再默认导出后端类,改为插件 `apply`;脚本改为挂载到裸 `Context` 后取 `sessionPersistence`
41
+ 服务。旧写法在核对任何会话之前就 `TypeError: Backend is not a constructor`,整道闸门失效;
42
+ 新增回归用例钉住导出面。实机 E2E 复核(自动模式取数→分析→出图、资讯专员、设置卡片、自动化
43
+ 看板)见 `docs/reference/host-upgrade-analysis-0.2.1-rc.5-to-0.2.2-rc.1.md` §5.1。
44
+
45
+ ### Migration
46
+
47
+ - **先升宿主,再更新插件**:`npm install -g @deepseek-ai/dsh@0.2.2-rc.1`,重启 dsh 后再把本插件
48
+ 更新到 2.18.0。顺序反过来时,2.18.0 会被 0.2.1 宿主的兼容预检拒绝(peer 精确 pin)。
49
+ - 不需要改任务、配置或历史会话:preset `config.id` 与 `tool-presentation` 行 id 都没变,
50
+ 已保存的 Capital 会话仍能恢复。
51
+ - 仍停留在 0.2.1-rc.5 的用户留在 2.17.0;2.18.0 不声明对旧宿主兼容。
52
+
10
53
  ## [2.17.0] - 2026-11-05
11
54
 
12
55
  投研自动化补上默认首页「看板」:把每次成功运行的结论收成任务简报,并把待办、自选股、
package/README.md CHANGED
@@ -13,12 +13,12 @@
13
13
  <a href="https://github.com/deepseek-ai"><img src="https://img.shields.io/badge/DeepSeek_Harness-plugin-blue" alt="DSH Plugin"></a>
14
14
  <a href="https://github.com/deepseek-ai"><img src="https://img.shields.io/badge/DeepSeek_Harness-web-orange" alt="DSH Web"></a>
15
15
  <a href="https://github.com/deepseek-ai"><img src="https://img.shields.io/badge/DeepSeek_Harness-desktop-brightgreen" alt="DSH Desktop · 已实机验证"></a>
16
- <a href="https://github.com/deepseek-ai"><img src="https://img.shields.io/badge/DSH%20Baseline-0.2.1--rc.5-blue" alt="DSH@0.2.1-rc.5"></a>
16
+ <a href="https://github.com/deepseek-ai"><img src="https://img.shields.io/badge/DSH%20Baseline-0.2.2--rc.1-blue" alt="DSH@0.2.2-rc.1"></a>
17
17
  </p>
18
18
  <p align="center">
19
19
  <a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="awesome · DSH plugin"></a>
20
20
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green" alt="License"></a>
21
- <a href="https://github.com/v587d/capital-generation/releases"><img src="https://img.shields.io/badge/version-2.17.0-9cf" alt="Version"></a>
21
+ <a href="https://github.com/v587d/capital-generation/releases"><img src="https://img.shields.io/badge/version-2.18.0-9cf" alt="Version"></a>
22
22
  <a href="https://www.npmjs.com/package/@v587d/capital-generation"><img src="https://img.shields.io/npm/v/%40v587d%2Fcapital-generation" alt="npm version"></a>
23
23
  <a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/powered_by-dsh-4D6BFE?style=flat-square&logo=deepseek&logoColor=white" alt="powered-by-dsh"></a>
24
24
  </p>
@@ -39,7 +39,7 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
39
39
  ## 快速上手
40
40
 
41
41
  > [!NOTE]
42
- > 最新版本已适配 DSH`@0.2.1-rc.5`。
42
+ > 最新版本已适配 DSH`@0.2.2-rc.1`。
43
43
 
44
44
 
45
45
  0. **前置**
@@ -202,7 +202,7 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
202
202
  - **安装后找不到模式?** 确认插件出现在「插件」→ 已安装列表;Web / CLI profile 安装后要重启该 profile,并在新会话选择模式。选择器里应看到自动模式、行情专家、资讯专员;分析师和绘图专员是自动模式的内部角色,不会出现在这里。
203
203
  - **配置在哪?** 打开「插件」→ 已安装的 **Capital Generation**,页面顶部就是「数据源 / 投研自动化 / 精选 Skills / 包含的组件」四格,五把密钥都在第一格;第二格可指定任务统一使用的默认工作区,也能改自动检查间隔与最长运行时间等上限;不在 DSH 的普通「设置」页面,也不用点进任何一行组件。保存密钥后新建会话再试。
204
204
  - **升级到 2.9.0 后,分析师和绘图专员去哪了?** 这一版把它们收进自动模式内部,不再出现在选择器与预设管理里,避免误开一个没有取数入口的空会话。旧会话仍能按原身份恢复;新任务直接用自动模式提出即可。
205
- - **桌面端升级后仍是旧版?** 桌面端安装时会固定所解析的版本,不会自动升级。卸载后重新安装,再到插件详情查看版本号;如需指定版本,可在地址末尾加 `#v2.17.0` 或 `@2.17.0`。
205
+ - **桌面端升级后仍是旧版?** 桌面端安装时会固定所解析的版本,不会自动升级。卸载后重新安装,再到插件详情查看版本号;如需指定版本,可在地址末尾加 `#v2.18.0` 或 `@2.18.0`。
206
206
  - **刚发布的新版本装不到?** 桌面端取包时会跳过**刚发布不久**的版本(宿主侧包管理器的发布冷却策略,实测会静默装成上一个版本),国内镜像的同步也可能滞后一段时间。急着用最新代码,改用仓库地址安装最直接。
207
207
  - **网页抓取失败?** 配置卡片中的「允许启动本地提取网页内容」默认开启:AnySearch 提取失败时可尝试本机直连。关闭后,本机直连的具名来源查询也不可用;请检查该开关和网络连接。
208
208
  - **Wind 那部分会消耗积分?** 会。Wind 的公告 / 新闻语义检索、宏观 / 行业 / 汇率指标、按日期区间取的历史 K 线都按次消耗你在 Wind 侧的额度;额度与条款以 Wind 为准,插件不做用量封顶。没配 `WIND_API_KEY` 时这几类不可用,其余功能照常——公告清单与正文有零密钥的东财工具,不配 Wind 也能查。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-automation",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "CapGen 投研自动化:独立 host bundle(固定 capital_automation 域、单 scheduler owner、/capital-automation 路由与浏览器页面)。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-charts",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "自动模式的图表前端组件(浏览器半边 + 序列旁路路由):由 @v587d/capital-generation 随包携带并作为 host 平面行挂载。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/config",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "自动模式的取数凭据与偏好配置行:卡片坐在 @v587d/capital-generation 插件主页的「配置」段,点这一行本身没有表单。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -6,15 +6,16 @@
6
6
  import type { AgentLike, GuardedExecution, PolicyContext } from './root-tool-policy.js';
7
7
  import { type RolePresetId } from '../preset-ids.js';
8
8
  export { ROLE_PRESET_IDS, ROLE_PRESET_ID_LIST, type RolePresetId } from '../preset-ids.js';
9
- /** Welded to `send_message` by `tool-subagent-control`; no host switch, so leaf roles deny it by name. */
10
- export declare const SIBLING_DENIED_TOOLS: readonly ["interrupt_agent"];
9
+ /** Registered together with `send_message` by `tool-subagent-control`; no host switch, so leaf roles deny these by name.
10
+ * 0.2.2 moved `list_agents` into the same main entry, so the welded set grew from one to two names. */
11
+ export declare const SIBLING_DENIED_TOOLS: readonly ["interrupt_agent", "list_agents"];
11
12
  /** Residual surface; no allow list: family rows define the tool surface. */
12
13
  export interface RoleSurface {
13
14
  /** Sibling names welded into a needed row that this persona must not have. */
14
15
  readonly denySiblings?: readonly string[];
15
16
  }
16
- /** Leaf roles need `send_message`, so they inherit the welded `interrupt_agent`; specialist
17
- * mounts no control row. Tolerant per-name deny records misses without failing open. */
17
+ /** Leaf roles need `send_message`, so they inherit the welded `interrupt_agent` / `list_agents`;
18
+ * specialist mounts no control row. Tolerant per-name deny records misses without failing open. */
18
19
  export declare const ROLE_TOOL_SURFACES: Record<RolePresetId, RoleSurface>;
19
20
  /** Role preset id only, undefined for root and other presets; failure means "do not converge". */
20
21
  export declare function rolePresetIdOf(ctx: PolicyContext, agent: AgentLike | undefined): RolePresetId | undefined;
@@ -7,10 +7,11 @@ import { isRootAgent, recordGuardDecision } from './root-tool-policy.js';
7
7
  import { readPresetClaim } from '../preset-claim.js';
8
8
  import { ROLE_PRESET_ID_LIST, ROLE_PRESET_IDS } from '../preset-ids.js';
9
9
  export { ROLE_PRESET_IDS, ROLE_PRESET_ID_LIST } from '../preset-ids.js';
10
- /** Welded to `send_message` by `tool-subagent-control`; no host switch, so leaf roles deny it by name. */
11
- export const SIBLING_DENIED_TOOLS = ['interrupt_agent'];
12
- /** Leaf roles need `send_message`, so they inherit the welded `interrupt_agent`; specialist
13
- * mounts no control row. Tolerant per-name deny records misses without failing open. */
10
+ /** Registered together with `send_message` by `tool-subagent-control`; no host switch, so leaf roles deny these by name.
11
+ * 0.2.2 moved `list_agents` into the same main entry, so the welded set grew from one to two names. */
12
+ export const SIBLING_DENIED_TOOLS = ['interrupt_agent', 'list_agents'];
13
+ /** Leaf roles need `send_message`, so they inherit the welded `interrupt_agent` / `list_agents`;
14
+ * specialist mounts no control row. Tolerant per-name deny records misses without failing open. */
14
15
  export const ROLE_TOOL_SURFACES = {
15
16
  [ROLE_PRESET_IDS.collector]: { denySiblings: SIBLING_DENIED_TOOLS },
16
17
  [ROLE_PRESET_IDS.junior]: { denySiblings: SIBLING_DENIED_TOOLS },
@@ -76,6 +77,10 @@ export function roleSiblingGuardReasonFor(ctx) {
76
77
  return undefined;
77
78
  if (!ROLE_PRESET_ID_LIST.includes(claim.claim))
78
79
  return undefined;
80
+ if (name === 'list_agents') {
81
+ return `${name} 不对人设 ${claim.claim} 开放:叶子角色只回传自己的结果,子 Agent 名单与调度归主 Agent。`
82
+ + '需要别的 Agent 配合,用 send_message 回告主 Agent;不要自己换工具硬做。';
83
+ }
79
84
  return `${name} 不对人设 ${claim.claim} 开放:叶子角色只回传自己的结果,打断别的会话归主 Agent 决定。`
80
85
  + '需要别的 Agent 停下来,用 send_message 回告主 Agent;不要自己换工具硬做。';
81
86
  };
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Chart delivery at the closing answer.
3
3
  *
4
- * DSH's deliverable card only replays `deliverables/presented` events whose seq is before the
5
- * turn's closing assistant message, and a turn is final only after the fact. The one place that is
6
- * provably before the closing message is the assistant stream's terminal `finish` chunk: the loop
7
- * appends the message after the stream ends. So delivery is deferred to that chunk, gated on the
8
- * root session being idle (no actionable inbox input, no running direct children), which is exactly
9
- * the shape of a closing turn. Waiting/aborted/tool-call responses never flush.
4
+ * DSH's deliverable card replays `deliverables/presented` from the closing turn (0.2.2 dropped the
5
+ * `file.seq < owner.seq` filter, so late declarations are no longer lost). A turn is still final
6
+ * only after the fact, and the one place where that is knowable before the turn closes is the
7
+ * assistant stream's terminal `finish` chunk: the loop appends the message after the stream ends.
8
+ * So delivery is deferred to that chunk, gated on the root session being idle (no actionable inbox
9
+ * input, no running direct children), which is exactly the shape of a closing turn.
10
+ * Waiting/aborted/tool-call responses never flush.
10
11
  *
11
12
  * `subagent-settled` notices are not actionable input: they can arrive while the closing answer is
12
13
  * already streaming. Counting them as pending would strand a card that the model has just selected,
@@ -46,7 +47,7 @@ interface InboxStateLike {
46
47
  }
47
48
  export interface ChartDeliveryOptions {
48
49
  artifacts: ChartArtifactRegistry;
49
- /** Writes one first-party deliverables/presented batch; must be synchronous (pre-message seq). */
50
+ /** Writes one first-party deliverables/presented batch; must be synchronous (listener runs before the message commits). */
50
51
  publish: (sessionId: string, inputs: ChartTurnEventInput[]) => boolean;
51
52
  /** Durable pending input; synchronous projection read. Absent means "cannot tell" → proceed. */
52
53
  inboxOf?: (session: SessionLike) => InboxStateLike | undefined;
@@ -2,10 +2,11 @@
2
2
  * present_charts: the root Agent's final-turn delivery step.
3
3
  *
4
4
  * render_chart only mints a chart_ref (the specialist row no longer auto-delivers). DSH's
5
- * deliverable card replays only declarations recorded before the closing assistant message, so
6
- * the card has to be written by the turn that carries the final answer: the root Agent presents
7
- * its collected refs/deliverables here immediately before writing that answer. Never a custom
8
- * event type — the session-event vocabulary is closed (see events.ts).
5
+ * deliverable card replays declarations from the whole closing turn (0.2.2 dropped the
6
+ * `file.seq < owner.seq` filter), but the card still has to be attributed to the turn that
7
+ * carries the final answer: the root Agent presents its collected refs/deliverables here
8
+ * immediately before writing that answer. Never a custom event type — the session-event
9
+ * vocabulary is closed (see events.ts).
9
10
  */
10
11
  import type { Context } from '@deepseek-ai/cordis';
11
12
  import type { ChartArtifactRegistry } from './artifact-ref.js';
@@ -3,9 +3,11 @@
3
3
  *
4
4
  * The model only records which charts belong to the answer. The actual first-party
5
5
  * `deliverables/presented` append happens in the terminal assistant-stream chunk, before the closing
6
- * message commits, gated on an idle root (no actionable inbox input, no running direct children). That is the only
7
- * point where "the final answer" is knowable, so early/no `present_charts` calls cannot strand the
8
- * card in a folded process turn (rationale: docs/dev/chart-delivery-events.md §6.3).
6
+ * message commits, gated on an idle root (no actionable inbox input, no running direct children).
7
+ * That is the first point where "the final answer" is knowable, so early/no `present_charts` calls
8
+ * cannot strand the card in a folded process turn (rationale: docs/dev/chart-delivery-events.md §6.3).
9
+ * 0.2.2 made the client replay the whole turn, so this write point is about turn attribution and
10
+ * ordering, not about dodging a seq cutoff.
9
11
  */
10
12
  import type { Context } from '@deepseek-ai/cordis';
11
13
  import type { SessionLike } from './data-collector/store.js';
@@ -3,7 +3,7 @@
3
3
  * Known limit: DNS resolves per request but the IP is not pinned to the connection,
4
4
  * so a rebinding window remains (same trade-off as dsh-search-first).
5
5
  */
6
- export declare const LOCAL_FETCH_CLIENT_VERSION = "2.17.0";
6
+ export declare const LOCAL_FETCH_CLIENT_VERSION = "2.18.0";
7
7
  export declare const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
8
8
  export type LocalFetchErrorCode = 'ABORTED' | 'TIMEOUT' | 'INVALID_URL' | 'BLOCKED_URL' | 'DNS' | 'REDIRECT' | 'HTTP' | 'TOO_LARGE' | 'UNSUPPORTED_CONTENT_TYPE';
9
9
  export declare class LocalFetchError extends Error {
@@ -4,7 +4,7 @@
4
4
  * so a rebinding window remains (same trade-off as dsh-search-first).
5
5
  */
6
6
  import { htmlToMarkdown, stripInvisibleText } from './html-markdown.js';
7
- export const LOCAL_FETCH_CLIENT_VERSION = '2.17.0';
7
+ export const LOCAL_FETCH_CLIENT_VERSION = '2.18.0';
8
8
  export const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
9
9
  export class LocalFetchError extends Error {
10
10
  code;
@@ -35,7 +35,7 @@ export interface WindCallResult {
35
35
  code?: WindErrorCode;
36
36
  }
37
37
  /** Must match `package.json` version; a test pins the two together. */
38
- export declare const WIND_CLIENT_VERSION = "2.17.0";
38
+ export declare const WIND_CLIENT_VERSION = "2.18.0";
39
39
  export interface WindClient {
40
40
  callTool(toolName: string, args: Record<string, unknown>, signal?: AbortSignal): Promise<WindCallResult>;
41
41
  }
@@ -19,7 +19,7 @@ export const WIND_SERVER_ENDPOINTS = {
19
19
  analytics_data: 'https://mcp.wind.com.cn/vserver_analytics_data/mcp/',
20
20
  };
21
21
  /** Must match `package.json` version; a test pins the two together. */
22
- export const WIND_CLIENT_VERSION = '2.17.0';
22
+ export const WIND_CLIENT_VERSION = '2.18.0';
23
23
  function errorText(error) {
24
24
  return error instanceof Error ? error.message : String(error);
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-generation",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "Capital Generation:面向中国散户的 AI 投资助手插件(自动模式 Agent Preset)",
5
5
  "icon": "assets/cg-icon.png",
6
6
  "author": "v587d",
@@ -161,23 +161,23 @@
161
161
  "report:skill-usage": "node scripts/skill-usage-report.mjs"
162
162
  },
163
163
  "peerDependencies": {
164
- "@deepseek-ai/cordis": "^4.0.2",
165
- "@deepseek-ai/dsh-skill": "0.2.1-rc.5",
166
- "@deepseek-ai/dsh-skill-filesystem": "0.2.1-rc.5"
164
+ "@deepseek-ai/cordis": "~4.1.0",
165
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.1",
166
+ "@deepseek-ai/dsh-skill-filesystem": "0.2.2-rc.1"
167
167
  },
168
168
  "devDependencies": {
169
- "@deepseek-ai/cordis": "^4.0.2",
170
- "@deepseek-ai/dsh-skill": "^0.2.1-rc.5",
171
- "@deepseek-ai/dsh-skill-filesystem": "^0.2.1-rc.5",
172
- "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.5",
173
- "@deepseek-ai/schemastery": "^3.18.4",
169
+ "@deepseek-ai/cordis": "~4.1.0",
170
+ "@deepseek-ai/dsh-skill": "^0.2.2-rc.1",
171
+ "@deepseek-ai/dsh-skill-filesystem": "^0.2.2-rc.1",
172
+ "@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.1",
173
+ "@deepseek-ai/schemastery": "^3.19.0",
174
174
  "esbuild": "^0.28.2",
175
175
  "js-yaml": "^5.4.1",
176
176
  "lightweight-charts": "5.2.1",
177
177
  "typescript": "^5.0.0"
178
178
  },
179
179
  "dependencies": {
180
- "@deepseek-ai/schemastery": "^3.18.4",
180
+ "@deepseek-ai/schemastery": "^3.19.0",
181
181
  "@joplin/turndown-plugin-gfm": "^1.0.68",
182
182
  "turndown": "^7.2.4",
183
183
  "zod": "^4.5.4"
@@ -23,7 +23,7 @@
23
23
 
24
24
  ## 2. 人设(persona)承载与官方语义
25
25
 
26
- 实测 `dsh 0.2.1-rc.5`(`test/persona.test.mjs` 对着本机 dsh 核对字段名),两层载体注册的是
26
+ 实测 `dsh 0.2.2-rc.1`(`test/persona.test.mjs` 对着本机 dsh 核对字段名),两层载体注册的是
27
27
  **同一个 system-prompt 节名**:
28
28
 
29
29
  | 载体 | 位置 | 字段 | 生效范围 |
@@ -160,13 +160,15 @@
160
160
 
161
161
  ### 5.1.1 PTC:只给 data_junior,主 Agent 仍是 native
162
162
 
163
- - **一行怎么落**:junior preset 挂 `@deepseek-ai/dsh-agent-tool-presentation`(`mode: ptc`),
164
- 同时删掉 `tool-bash` / `tool-pwsh`。宿主 `ptc-runtime` 由 `dsh-base` 提供,preset 写不进去;
165
- `smoke:boot` 同时断言 presentation 行 `fiberState=2` 与 `ctx.get('ptcRuntime')` 在场。
163
+ - **一行怎么落**:junior preset 挂 `tool-presentation` 行,0.2.2 起行里直接是
164
+ `@deepseek-ai/dsh-tool-executor-ptc`(`maxParallelSubCalls: 10`;旧的
165
+ `dsh-agent-tool-presentation` + `mode: ptc` 只剩兼容壳),同时删掉 `tool-bash` / `tool-pwsh`。
166
+ 宿主 `ptc-runtime` 由 `dsh-base` 提供,preset 写不进去;`smoke:boot` 同时断言 executor 行
167
+ `fiberState=2` 与 `ctx.get('ptcRuntime')` 在场。
166
168
  - **为什么删 shell 而不是并存**:PTC SDK 在可见 `bash` 时会主动塞一条 `tools.bash({command:'pwd'})`
167
169
  示例,并存等于官方提示词把模型往 shell 引;junior 只需要一个执行面。主 Agent 仍是 native,
168
- 拿到的是原生 shell,根侧 `restrict()` 不能点名保留名 `run_code`(只在部署级 `tools.mode`
169
- 被改成 `ptc` 时才会出现,本仓只允许 preset 行)。
170
+ 继承部署级宿主 `dsh-tool-executor-native`,拿到的是原生 shell;根侧 `restrict()` 不能点名保留名
171
+ `run_code`(只有 PTC executor 才会把它放进模型面,本仓只挂在 junior 的 preset 行)。
170
172
  - **省的是回合与抄写,不是安全升级**:`run_code` 里的 Node 仍能 `import('node:fs/promises')` /
171
173
  `fetch` / `child_process`;宿主沙箱只拦写。`# PROGRAM DISCIPLINE` 与
172
174
  `capital-data-query` §3.3 是纪律,不是边界;要硬隔离只能换容器 / VM / 远端 runtime。
@@ -189,11 +189,13 @@
189
189
  config:
190
190
  role: data_junior
191
191
 
192
- # PTC: presentation is preset-scoped; the host runtime (dsh-base) stays per-call.
192
+ # PTC executor is preset-scoped; the host runtime (dsh-base) stays per-call. 0.2.2 replaced
193
+ # the presentation selector with the executor row itself; `maxParallelSubCalls` is pinned
194
+ # to the documented 10 instead of inheriting the executor default.
193
195
  - id: tool-presentation
194
- name: '@deepseek-ai/dsh-agent-tool-presentation'
196
+ name: '@deepseek-ai/dsh-tool-executor-ptc'
195
197
  config:
196
- mode: ptc
198
+ maxParallelSubCalls: 10
197
199
 
198
200
  # ── compaction: both rows must live in one realm; thresholdChars 8192 is the instance-wide single value ──
199
201
  - id: compaction
@@ -664,12 +666,11 @@
664
666
  toolName: subagent_data_analyst
665
667
  agentPreset: capital-data-analyst
666
668
  # If this row is ever enabled, `query_dataset` stays aggregate-only: it must not reopen raw rows.
669
+ # 0.2.2 registers send_message / interrupt_agent / list_agents from the main entry; the
670
+ # old `list-agents` subpath is gone and a row naming it keeps the whole preset broken.
667
671
  - id: tool-subagent-control
668
672
  name: '@deepseek-ai/dsh-tool-subagent-control'
669
673
 
670
- - id: tool-subagent-list-agents
671
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
672
-
673
674
  - id: tool-ask-user
674
675
  name: '@deepseek-ai/dsh-tool-ask-user'
675
676
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/watchlist",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "自动模式的用户自选股(宿主级清单 + Fuyao 报价快照 + /capital-watchlist 路由 + 输入框菜单弹窗):由 @v587d/capital-generation 随包携带并作为 host 平面行挂载。",
5
5
  "license": "MIT",
6
6
  "type": "module",