@eddyskywalker/dsh-chatgpt-subscription 0.93.0 → 0.93.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/index.js CHANGED
@@ -840,7 +840,7 @@ const ROUTE_PREFIX$5 = "/api/dsh-chatgpt-subscription";
840
840
  * `test/responses-client.test.ts` asserts the two agree, so a release that
841
841
  * forgets this constant fails the suite instead of shipping quietly.
842
842
  */
843
- const PLUGIN_VERSION = "0.93.0";
843
+ const PLUGIN_VERSION = "0.93.1";
844
844
  const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
845
845
  const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
846
846
  const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
@@ -102695,7 +102695,7 @@ const DISPATCH_PRESET = {
102695
102695
 
102696
102696
  [Coordinator Identity] You are the Lead & Dispatch Agent: converge requirements, plan architecture, select R1 topology (Lead-Core / Hybrid / Fan-out), orchestrate subagents where ROI is positive, and own final acceptance.
102697
102697
  [Execution Pipeline] R0 Triage -> [L2-Governed only: R-G Interview -> R9 Plan Approval] -> R1 Topology -> (if delegating: R2 Routing -> R5 Brief -> R-W Wait) -> R6 Lead Acceptance.
102698
- [Dispatch Native Tool Whitelist] Top-level: only code_run, cache_warmup_result, dispatch_ledger, progress_update, and structured_output. Every task tool—including shell tools—is program-only via await tools.<name>(...); ordinary code_run programs should batch independent read/search/tool calls.
102698
+ [Dispatch Native Tool Whitelist] Top-level: only code_run, cache_warmup_result, dispatch_ledger, progress_update, structured_output, and consult_advisor. Every other task tool—including shell tools—is program-only via await tools.<name>(...); ordinary code_run programs should batch independent read/search/tool calls. When the advisor is enabled, call consult_advisor before substantive work and before declaring a multi-step task complete.
102699
102699
  [Agent Teams Board] The shared task board (team_task_create and its list/get/update siblings) is bookkeeping, not a second dispatcher (frozen declaration, not availability—confirm with team_task_list before relying on it). When on, the dispatch ledger stays the dispatch authority and R5 briefs stay the task contract; never start work because a task is ready, and never reassign a task to skip R6.
102700
102700
 
102701
102701
  ## R0 · Complexity Triage
@@ -102963,7 +102963,8 @@ Fallback is a task-scoped, non-session-wide exception and covers only the single
102963
102963
  "cache_warmup_result",
102964
102964
  "dispatch_ledger",
102965
102965
  "progress_update",
102966
- "structured_output"
102966
+ "structured_output",
102967
+ "consult_advisor"
102967
102968
  ]
102968
102969
  }
102969
102970
  },
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
76
76
  * `test/responses-client.test.ts` asserts the two agree, so a release that
77
77
  * forgets this constant fails the suite instead of shipping quietly.
78
78
  */
79
- export declare const PLUGIN_VERSION: "0.93.0";
79
+ export declare const PLUGIN_VERSION: "0.93.1";
80
80
  export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
81
81
  export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
82
82
  export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eddyskywalker/dsh-chatgpt-subscription",
3
- "version": "0.93.0",
3
+ "version": "0.93.1",
4
4
  "description": "Multi-provider subscription hub and agent runtime enhancements for DeepSeek Harness (DSH).",
5
5
  "icon": "./assets/icon.svg",
6
6
  "author": {
@@ -1,13 +1,13 @@
1
1
  # 调度模式(dispatch)
2
2
 
3
- 基于 **Code Mode** 的调度 Agent:native 工具块只保留最小白名单 `code_run`、`cache_warmup_result`、`dispatch_ledger`、`progress_update`、`structured_output`。其余工具即使由本预设注册,也不进入 native schema,只能在 `code_run` 程序里用 `code_tools_search` 现查现调;Shell 在 POSIX 写成 `await tools.bash(...)`,在 Windows 写成 `await tools.pwsh(...)`。工具注册本身不删除,`code_run` 的嵌套调用仍走完整原生执行管线。
3
+ 基于 **Code Mode** 的调度 Agent:native 工具块只保留最小白名单 `code_run`、`cache_warmup_result`、`dispatch_ledger`、`progress_update`、`structured_output`、`consult_advisor`。其余工具即使由本预设注册,也不进入 native schema,只能在 `code_run` 程序里用 `code_tools_search` 现查现调;Shell 在 POSIX 写成 `await tools.bash(...)`,在 Windows 写成 `await tools.pwsh(...)`。工具注册本身不删除,`code_run` 的嵌套调用仍走完整原生执行管线。
4
4
 
5
5
  > 内核的 `ptc` 呈现方式只把 `run_code` 交给模型、其余名字一律硬拒,`standard` 又完全没有程序
6
6
  > 传输;「原生工具 + 程序」这个组合在内核里表达不出来,所以本预设自带一行 `code-mode`
7
7
  > (`@eddyskywalker/dsh-chatgpt-subscription/codemode`)。代次上不可用原生 executor 时,
8
8
  > `resolveDispatchPreset` 会自动退回 PTC 呈现(见 `src/host/agent-preset.ts`)。
9
9
 
10
- > `code-mode.config.nativeToolsOnly: true` 是这一白名单模式的开关,默认关闭以保持其他调用方的旧行为;dispatch 另用 `nativeTools` 显式冻结四个辅助工具,避免继承通用默认值里的原生 Shell。白名单外的顶层直呼会被拒绝,但带嵌套标记的程序内调用放行。比如 `ask_user_question` 仍由 `tool-ask-user` 注册,主控只是不再直接调用它,而是在一个 `code_run` 程序中执行 `return await tools.ask_user_question({ questions: [...] })`。全局指令点名 `read` / `glob` / `grep` / `edit` / `write` / `bash` / `pwsh` 时,同样指程序内的 `tools.*`,不是顶层工具。
10
+ > `code-mode.config.nativeToolsOnly: true` 是这一白名单模式的开关,默认关闭以保持其他调用方的旧行为;dispatch 另用 `nativeTools` 显式冻结五个辅助工具(含只读顾问 `consult_advisor`,让模型不必先 `code_tools_search` 就能看到并调用它),避免继承通用默认值里的原生 Shell。白名单外的顶层直呼会被拒绝,但带嵌套标记的程序内调用放行。比如 `ask_user_question` 仍由 `tool-ask-user` 注册,主控只是不再直接调用它,而是在一个 `code_run` 程序中执行 `return await tools.ask_user_question({ questions: [...] })`。全局指令点名 `read` / `glob` / `grep` / `edit` / `write` / `bash` / `pwsh` 时,同样指程序内的 `tools.*`,不是顶层工具。
11
11
 
12
12
  > **缓存前提**:Code Mode 的说明段是**恒定文本**(不含任何遮蔽计数或 namespace 清单),
13
13
  > 加上既有的 `ptc-sdk-cache-guard`,kimi-code / minimax-code 的前缀缓存不因 MCP 增删而失效。
@@ -63,7 +63,7 @@
63
63
 
64
64
  [Coordinator Identity] You are the Lead & Dispatch Agent: converge requirements, plan architecture, select R1 topology (Lead-Core / Hybrid / Fan-out), orchestrate subagents where ROI is positive, and own final acceptance.
65
65
  [Execution Pipeline] R0 Triage -> [L2-Governed only: R-G Interview -> R9 Plan Approval] -> R1 Topology -> (if delegating: R2 Routing -> R5 Brief -> R-W Wait) -> R6 Lead Acceptance.
66
- [Dispatch Native Tool Whitelist] Top-level: only code_run, cache_warmup_result, dispatch_ledger, progress_update, and structured_output. Every task tool—including shell tools—is program-only via await tools.<name>(...); ordinary code_run programs should batch independent read/search/tool calls.
66
+ [Dispatch Native Tool Whitelist] Top-level: only code_run, cache_warmup_result, dispatch_ledger, progress_update, structured_output, and consult_advisor. Every other task tool—including shell tools—is program-only via await tools.<name>(...); ordinary code_run programs should batch independent read/search/tool calls. When the advisor is enabled, call consult_advisor before substantive work and before declaring a multi-step task complete.
67
67
  [Agent Teams Board] The shared task board (team_task_create and its list/get/update siblings) is bookkeeping, not a second dispatcher (frozen declaration, not availability—confirm with team_task_list before relying on it). When on, the dispatch ledger stays the dispatch authority and R5 briefs stay the task contract; never start work because a task is ready, and never reassign a task to skip R6.
68
68
 
69
69
  ## R0 · Complexity Triage
@@ -425,6 +425,7 @@
425
425
  - dispatch_ledger
426
426
  - progress_update
427
427
  - structured_output
428
+ - consult_advisor
428
429
 
429
430
  # `present` ships from harness 0.1.5-alpha.2. On an earlier installation the
430
431
  # sync disables this row rather than leave the whole preset unresolvable, and