@aiwayds/dsh-opentui 0.26.2 → 0.26.4

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.
@@ -100,9 +100,9 @@
100
100
  "command.plugins.unavailable": "/plugins unavailable in this session",
101
101
  "command.plugins.none": "no plugins installed",
102
102
  "command.goals.description": "show the current goal / manage goals",
103
- "command.goals.unavailable": "/goals unavailable in this session",
104
- "command.goals.degraded": "/goals: goals service unavailable or no active session",
105
- "command.goals.unknownOp": "unknown /goals subcommand \"{op}\" — showing status (try: create, edit, pause, resume, complete, clear)",
103
+ "command.goals.unavailable": "/goal unavailable in this session",
104
+ "command.goals.degraded": "/goal: goals service unavailable or no active session",
105
+ "command.goals.unknownOp": "unknown /goal subcommand \"{op}\" — showing status (try: create, edit, pause, resume, complete, clear)",
106
106
  "command.goals.none": "no current goal",
107
107
  "command.goals.header": "Current goal",
108
108
  "command.goals.objective": " objective: {text}",
@@ -100,9 +100,9 @@
100
100
  "command.plugins.unavailable": "本会话中 /plugins 不可用",
101
101
  "command.plugins.none": "未安装任何 plugins",
102
102
  "command.goals.description": "显示当前目标 / 管理目标",
103
- "command.goals.unavailable": "本会话中 /goals 不可用",
104
- "command.goals.degraded": "/goals:goals 服务不可用或无活动会话",
105
- "command.goals.unknownOp": "未知的 /goals 子命令“{op}”——显示状态(可用:create、edit、pause、resume、complete、clear)",
103
+ "command.goals.unavailable": "本会话中 /goal 不可用",
104
+ "command.goals.degraded": "/goal:goals 服务不可用或无活动会话",
105
+ "command.goals.unknownOp": "未知的 /goal 子命令“{op}”——显示状态(可用:create、edit、pause、resume、complete、clear)",
106
106
  "command.goals.none": "当前没有目标",
107
107
  "command.goals.header": "当前目标",
108
108
  "command.goals.objective": " 目标: {text}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-opentui",
3
- "version": "0.26.2",
3
+ "version": "0.26.4",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -186,6 +186,10 @@ const SHIM_DIR = join(profileDir, 'node_modules', ...SHIM_PACKAGE.split('/'))
186
186
  const SHIM_INDEX_PATH = join(SHIM_DIR, 'index.mjs')
187
187
  const SHIM_PKG_PATH = join(SHIM_DIR, 'package.json')
188
188
  const SHIM_REVISION_MARKER = '// shimRevision: '
189
+ // PATCH_TEMPLATE is a JS backtick literal: any backtick INSIDE the template
190
+ // body must be escaped (\`), otherwise it terminates the string and the
191
+ // provisioner dies with a syntax error at runtime (the R2-3 maxDepth comment
192
+ // hit exactly this). Keep template-body prose backtick-free or escaped.
189
193
  const PATCH_TEMPLATE = `# model route (managed by provision-opentui-profile.mjs — provider zai-coding-cn, key read by the host from ZAI_CODING_CN_API_KEY):
190
194
  - id: llm-pi-ai
191
195
  name: "@deepseek-ai/dsh-llm-pi-ai"
@@ -590,10 +594,22 @@ const PATCH_TEMPLATE = `# model route (managed by provision-opentui-profile.mjs
590
594
  model: deepseek-v4.1-flash
591
595
  reasoningEffort: high
592
596
 
597
+ # Delegation depth cap (full-access-inherit R2-3). The host's maxDepth is an
598
+ # ABSOLUTE depth: lead=0, direct child=1, resolveChildDepth rejects when
599
+ # childDepth > maxDepth (dsh-subagent:2963 schema default(1), :3007 read every
600
+ # dispatch, :1497 decision). Pin 1 = only the main Agent may spawn direct
601
+ # children; grandchildren (depth 2) are rejected, closing the R2-3 silent-pass
602
+ # hole. Pinning also survives any host schema-default drift. NEVER use 0 here:
603
+ # a direct child is depth 1 > 0, so every delegation is refused (dispatch dead).
604
+ # maxDepth is volatile() (runtime-changeable); this patch sets its INITIAL
605
+ # default, which is exactly what the host validates into the volatile ref.
606
+ # Only this inproc template carries a subagent config row (dsh-base/web rows
607
+ # have none), so no other supply template needs the pin.
593
608
  - id: subagent
594
609
  name: "@deepseek-ai/dsh-subagent"
595
610
  config:
596
611
  maxActiveSubagents: 3
612
+ maxDepth: 1
597
613
 
598
614
  # Companion mounts (2026-11-22 unfreeze). The minimal set installed by
599
615
  # provision-inproc-profile.mjs step [4/8] is @aiwayds/dsh-subagent-registry,