huaweicloud-devkit 2.0.0-next.2 → 2.0.0-next.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.
Files changed (161) hide show
  1. package/README.md +3 -1
  2. package/package.json +3 -1
  3. package/plugins/huaweicloud-core/.claude-plugin/plugin.json +16 -3
  4. package/plugins/huaweicloud-core/.codex-plugin/plugin.json +16 -3
  5. package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +16 -3
  6. package/plugins/huaweicloud-core/.hermes-plugin/plugin.json +16 -3
  7. package/plugins/huaweicloud-core/.mcp.json +55 -1
  8. package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +16 -3
  9. package/plugins/huaweicloud-core/dist/agents/codex-config.js +374 -0
  10. package/plugins/huaweicloud-core/dist/agents/codex-desktop.js +8 -1
  11. package/plugins/huaweicloud-core/dist/agents/codex.js +9 -0
  12. package/plugins/huaweicloud-core/dist/agents/opencode-config.js +157 -31
  13. package/plugins/huaweicloud-core/dist/agents/opencode.js +129 -1
  14. package/plugins/huaweicloud-core/dist/approval-gate.js +1185 -0
  15. package/plugins/huaweicloud-core/dist/approval-ledger.js +2331 -0
  16. package/plugins/huaweicloud-core/dist/approval-roster.js +89 -0
  17. package/plugins/huaweicloud-core/dist/approval-types.js +1 -0
  18. package/plugins/huaweicloud-core/dist/approvals-cli.js +4 -4
  19. package/plugins/huaweicloud-core/dist/data/icons-manifest.v1.json +23 -5
  20. package/plugins/huaweicloud-core/dist/dep/receipts.js +65 -5
  21. package/plugins/huaweicloud-core/dist/hcloud-cli.js +1 -1
  22. package/plugins/huaweicloud-core/dist/hcloud-plan.js +77 -56
  23. package/plugins/huaweicloud-core/dist/lib/approval-mode.js +32 -0
  24. package/plugins/huaweicloud-core/dist/lib/approval-tokens.js +18 -4
  25. package/plugins/huaweicloud-core/dist/lib/call-trace.js +7 -14
  26. package/plugins/huaweicloud-core/dist/lib/confirm-language.js +50 -0
  27. package/plugins/huaweicloud-core/dist/lib/credentials.js +9 -9
  28. package/plugins/huaweicloud-core/dist/lib/hdkit/hdkit-gate.js +1398 -0
  29. package/plugins/huaweicloud-core/dist/lib/hdkit/hdkitservice-api.js +362 -32
  30. package/plugins/huaweicloud-core/dist/lib/hdkit/sandbox-pool.js +6 -16
  31. package/plugins/huaweicloud-core/dist/lib/opencode-ask-rule.js +262 -0
  32. package/plugins/huaweicloud-core/dist/lib/opencode-saved-perms.js +282 -0
  33. package/plugins/huaweicloud-core/dist/lib/supplemental-redaction.js +116 -0
  34. package/plugins/huaweicloud-core/dist/lib/tool-schema-parts.js +31 -0
  35. package/plugins/huaweicloud-core/dist/lib/workspace-glob.js +442 -0
  36. package/plugins/huaweicloud-core/dist/mcp-config-io.js +28 -1
  37. package/plugins/huaweicloud-core/dist/mcp-protocol.js +75 -4
  38. package/plugins/huaweicloud-core/dist/mcp-server.js +6560 -898
  39. package/plugins/huaweicloud-core/dist/mcp-server.js.map +4 -4
  40. package/plugins/huaweicloud-core/dist/mcp-stdio-transport.js +14 -4
  41. package/plugins/huaweicloud-core/dist/packs/auth/approval.js +249 -0
  42. package/plugins/huaweicloud-core/dist/packs/auth/tools.js +44 -44
  43. package/plugins/huaweicloud-core/dist/packs/huaweicloud-cli/tools.js +119 -112
  44. package/plugins/huaweicloud-core/dist/packs/obs/approval.js +110 -0
  45. package/plugins/huaweicloud-core/dist/packs/obs/tools.js +7 -2
  46. package/plugins/huaweicloud-core/dist/packs/registry.js +19 -1
  47. package/plugins/huaweicloud-core/dist/packs/sandbox/approval.js +245 -0
  48. package/plugins/huaweicloud-core/dist/packs/sandbox/handlers-account.js +156 -23
  49. package/plugins/huaweicloud-core/dist/packs/sandbox/handlers-credentials.js +13 -1
  50. package/plugins/huaweicloud-core/dist/packs/sandbox/handlers-hwexec.js +136 -0
  51. package/plugins/huaweicloud-core/dist/packs/sandbox/handlers-session.js +11 -1
  52. package/plugins/huaweicloud-core/dist/packs/sandbox/handlers-tunnel.js +1 -0
  53. package/plugins/huaweicloud-core/dist/packs/sandbox/schemas.js +79 -9
  54. package/plugins/huaweicloud-core/dist/packs/sandbox/tools.js +28 -9
  55. package/plugins/huaweicloud-core/dist/packs/secrets/approval.js +46 -0
  56. package/plugins/huaweicloud-core/dist/packs/secrets/tools.js +4 -1
  57. package/plugins/huaweicloud-core/dist/packs/update/approval.js +79 -0
  58. package/plugins/huaweicloud-core/dist/packs/update/tools.js +8 -1
  59. package/plugins/huaweicloud-core/dist/packs/voucher/tools.js +1 -1
  60. package/plugins/huaweicloud-core/dist/packs-configure.js +74 -0
  61. package/plugins/huaweicloud-core/dist/safety/classify-text.js +36 -0
  62. package/plugins/huaweicloud-core/dist/safety/policy.js +2 -0
  63. package/plugins/huaweicloud-core/dist/sandbox/deploy-check.js +1 -1
  64. package/plugins/huaweicloud-core/dist/sandbox/devbridge-auth.js +65 -14
  65. package/plugins/huaweicloud-core/dist/sandbox/devbridge-cleanup.js +422 -0
  66. package/plugins/huaweicloud-core/dist/sandbox/devbridge-expose-flow.js +66 -16
  67. package/plugins/huaweicloud-core/dist/sandbox/devbridge-expose.js +13 -10
  68. package/plugins/huaweicloud-core/dist/sandbox/devbridge-keepalive.js +42 -2
  69. package/plugins/huaweicloud-core/dist/sandbox/devbridge-key.js +11 -3
  70. package/plugins/huaweicloud-core/dist/sandbox/devbridge-tunnel.js +6 -0
  71. package/plugins/huaweicloud-core/dist/sandbox/devbridge-validation.js +10 -1
  72. package/plugins/huaweicloud-core/dist/sandbox/hwexec-task.js +244 -0
  73. package/plugins/huaweicloud-core/dist/setup-cli.js +42 -4
  74. package/plugins/huaweicloud-core/dist/tool-definitions.js +9 -1
  75. package/plugins/huaweicloud-core/dist/tool-schemas.js +32 -6
  76. package/plugins/huaweicloud-core/dist/tools.js +76 -9
  77. package/plugins/huaweicloud-core/dist/update-registry.js +358 -5
  78. package/plugins/huaweicloud-core/dist/update-upgrade.js +1083 -14
  79. package/plugins/huaweicloud-core/dist/vendor-gate.js +2 -2
  80. package/plugins/huaweicloud-core/hooks/huaweicloud-safety.mjs +150 -1
  81. package/plugins/huaweicloud-core/hooks/huaweicloud-safety.py +53 -3
  82. package/plugins/huaweicloud-core/openclaw.plugin.json +1 -1
  83. package/plugins/huaweicloud-core/safety/policy.json +18 -11
  84. package/plugins/huaweicloud-core/safety/rules/cloud-risk-rules.json +114 -10
  85. package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +190 -138
  86. package/plugins/huaweicloud-core/skills/huawei-sandbox/references/resource-pool.md +36 -12
  87. package/plugins/huaweicloud-core/skills/huawei-voucher/SKILL.md +2 -0
  88. package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +5 -5
  89. package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +13 -8
  90. package/plugins/huaweicloud-core/skills/huaweicloud-safety/references/approvals.md +78 -23
  91. package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +21 -19
  92. package/plugins/huaweicloud-core/src/agents/codex-config.ts +432 -0
  93. package/plugins/huaweicloud-core/src/agents/codex-desktop.ts +8 -1
  94. package/plugins/huaweicloud-core/src/agents/codex.ts +10 -0
  95. package/plugins/huaweicloud-core/src/agents/opencode-config.ts +198 -30
  96. package/plugins/huaweicloud-core/src/agents/opencode.ts +157 -1
  97. package/plugins/huaweicloud-core/src/approval-gate.ts +1306 -0
  98. package/plugins/huaweicloud-core/src/approval-ledger.ts +2446 -0
  99. package/plugins/huaweicloud-core/src/approval-roster.ts +127 -0
  100. package/plugins/huaweicloud-core/src/approval-types.ts +237 -0
  101. package/plugins/huaweicloud-core/src/approvals-cli.ts +4 -4
  102. package/plugins/huaweicloud-core/src/data/icons-manifest.v1.json +23 -5
  103. package/plugins/huaweicloud-core/src/dep/receipts.ts +84 -5
  104. package/plugins/huaweicloud-core/src/hcloud-cli.ts +3 -0
  105. package/plugins/huaweicloud-core/src/hcloud-plan.ts +93 -63
  106. package/plugins/huaweicloud-core/src/lib/approval-mode.ts +34 -0
  107. package/plugins/huaweicloud-core/src/lib/approval-tokens.ts +19 -4
  108. package/plugins/huaweicloud-core/src/lib/call-trace.ts +7 -17
  109. package/plugins/huaweicloud-core/src/lib/confirm-language.ts +51 -0
  110. package/plugins/huaweicloud-core/src/lib/credentials.ts +9 -8
  111. package/plugins/huaweicloud-core/src/lib/hdkit/hdkit-gate.ts +1428 -0
  112. package/plugins/huaweicloud-core/src/lib/hdkit/hdkitservice-api.ts +377 -30
  113. package/plugins/huaweicloud-core/src/lib/hdkit/sandbox-pool.ts +8 -15
  114. package/plugins/huaweicloud-core/src/lib/opencode-ask-rule.ts +350 -0
  115. package/plugins/huaweicloud-core/src/lib/opencode-saved-perms.ts +354 -0
  116. package/plugins/huaweicloud-core/src/lib/supplemental-redaction.ts +129 -0
  117. package/plugins/huaweicloud-core/src/lib/tool-schema-parts.ts +40 -0
  118. package/plugins/huaweicloud-core/src/lib/workspace-glob.ts +414 -0
  119. package/plugins/huaweicloud-core/src/mcp-config-io.ts +27 -1
  120. package/plugins/huaweicloud-core/src/mcp-protocol.ts +88 -5
  121. package/plugins/huaweicloud-core/src/mcp-server.ts +13 -0
  122. package/plugins/huaweicloud-core/src/mcp-stdio-transport.ts +14 -4
  123. package/plugins/huaweicloud-core/src/packs/auth/approval.ts +302 -0
  124. package/plugins/huaweicloud-core/src/packs/auth/tools.ts +54 -45
  125. package/plugins/huaweicloud-core/src/packs/huaweicloud-cli/tools.ts +139 -120
  126. package/plugins/huaweicloud-core/src/packs/obs/approval.ts +122 -0
  127. package/plugins/huaweicloud-core/src/packs/obs/tools.ts +7 -2
  128. package/plugins/huaweicloud-core/src/packs/registry.ts +42 -1
  129. package/plugins/huaweicloud-core/src/packs/sandbox/approval.ts +296 -0
  130. package/plugins/huaweicloud-core/src/packs/sandbox/handlers-account.ts +168 -23
  131. package/plugins/huaweicloud-core/src/packs/sandbox/handlers-credentials.ts +11 -1
  132. package/plugins/huaweicloud-core/src/packs/sandbox/handlers-hwexec.ts +228 -0
  133. package/plugins/huaweicloud-core/src/packs/sandbox/handlers-session.ts +11 -1
  134. package/plugins/huaweicloud-core/src/packs/sandbox/handlers-tunnel.ts +1 -0
  135. package/plugins/huaweicloud-core/src/packs/sandbox/schemas.ts +100 -8
  136. package/plugins/huaweicloud-core/src/packs/sandbox/tools.ts +31 -8
  137. package/plugins/huaweicloud-core/src/packs/secrets/approval.ts +50 -0
  138. package/plugins/huaweicloud-core/src/packs/secrets/tools.ts +4 -1
  139. package/plugins/huaweicloud-core/src/packs/update/approval.ts +87 -0
  140. package/plugins/huaweicloud-core/src/packs/update/tools.ts +8 -1
  141. package/plugins/huaweicloud-core/src/packs/voucher/tools.ts +1 -1
  142. package/plugins/huaweicloud-core/src/packs-configure.ts +75 -0
  143. package/plugins/huaweicloud-core/src/safety/classify-text.ts +40 -0
  144. package/plugins/huaweicloud-core/src/safety/policy.ts +7 -0
  145. package/plugins/huaweicloud-core/src/sandbox/deploy-check.ts +1 -1
  146. package/plugins/huaweicloud-core/src/sandbox/devbridge-auth.ts +74 -14
  147. package/plugins/huaweicloud-core/src/sandbox/devbridge-cleanup.ts +509 -0
  148. package/plugins/huaweicloud-core/src/sandbox/devbridge-expose-flow.ts +70 -18
  149. package/plugins/huaweicloud-core/src/sandbox/devbridge-expose.ts +26 -10
  150. package/plugins/huaweicloud-core/src/sandbox/devbridge-keepalive.ts +41 -2
  151. package/plugins/huaweicloud-core/src/sandbox/devbridge-key.ts +9 -3
  152. package/plugins/huaweicloud-core/src/sandbox/devbridge-tunnel.ts +24 -0
  153. package/plugins/huaweicloud-core/src/sandbox/devbridge-validation.ts +11 -1
  154. package/plugins/huaweicloud-core/src/sandbox/hwexec-task.ts +304 -0
  155. package/plugins/huaweicloud-core/src/setup-cli.ts +45 -3
  156. package/plugins/huaweicloud-core/src/tool-definitions.ts +9 -1
  157. package/plugins/huaweicloud-core/src/tool-schemas.ts +39 -6
  158. package/plugins/huaweicloud-core/src/tools.ts +124 -10
  159. package/plugins/huaweicloud-core/src/update-registry.ts +340 -5
  160. package/plugins/huaweicloud-core/src/update-upgrade.ts +1130 -14
  161. package/plugins/huaweicloud-core/src/vendor-gate.ts +2 -2
@@ -9,7 +9,9 @@ import { join } from 'node:path';
9
9
  import { configRoot, opencodeCommandsDir, opencodeConfigFile, opencodePluginsDir, opencodeSkillsDir, } from "../targets.js";
10
10
  import { printMcpConfigStatus } from "../mcp-config-io.js";
11
11
  import { PACKAGE_ROOT, copyDir, copyServerPayload, deployWord, installRuntimeDeps, payloadStatusLines, pruneStale, removeHuaweiCommandsFrom, removeIfExists, } from "../install-payload.js";
12
- import { removeOpenCodeConfig, updateOpenCodeConfig, openCodeSeamGate, openCodeSeamGlobs } from "./opencode-config.js";
12
+ import { removeOpenCodeConfig, updateOpenCodeConfig, openCodeSeamGate, openCodeSeamGlobs, openCodeAskGate, } from "./opencode-config.js";
13
+ import { readPermissionRules, readPermissionRulesV1 } from "../lib/opencode-ask-rule.js";
14
+ import { scanSavedAllowRows } from "../lib/opencode-saved-perms.js";
13
15
  import { asRecord } from "../lib/as-record.js";
14
16
  // Doctor: the OpenCode MCP-configured candidate — the opencode config's
15
17
  // mcp.huaweicloud-devkit entry.
@@ -27,6 +29,132 @@ export function opencodeDoctorMcpConfigured() {
27
29
  }
28
30
  return null;
29
31
  }
32
+ // Doctor: the ASK approval posture check — OpenCode installs only. The
33
+ // posture is a PAIR the installer writes together: the client half (one exact
34
+ // allow rule per roster tool — a `permissions` array entry on 2.0+, a
35
+ // `permission` object key on 1.19–1.x, both naming the same actions) and the
36
+ // server half (DEVKIT_APPROVAL_MODE=ask in the mcp entry's env). Ask mode now
37
+ // means the SERVER-RUN gate: the confirmation is raised inside the tool call
38
+ // (elicitation form, or the T3 chat round-trip), so the client rules are
39
+ // yield-only — they suppress the redundant client popup — and a client allow
40
+ // rule can no longer fail anything open. The directions that survive the flip:
41
+ // - a deny rule bricks the call in the client, so it stays a FAIL;
42
+ // - a devkit-written ask rule is migration residue: FAIL, re-run install;
43
+ // - missing client coverage while the server gate is on is drift: FAIL;
44
+ // - allow rules without the server gate are the mixed state: WARN;
45
+ // - an unreadable shape with the gate on is a WARN, never silent (the
46
+ // verification's B2 invariant — the gate still holds server-side, so a
47
+ // WARN is honest, not a FAIL);
48
+ // - a user-owned rule on a roster action is surfaced by name with the skip
49
+ // recorded, never silently dropped.
50
+ // A gate-off opencode is a SKIP — token mode is that install's legitimate
51
+ // posture, and the migration still removes the legacy ask rules.
52
+ export function opencodeDoctorAskRule(ctx) {
53
+ const gate = openCodeAskGate();
54
+ if (gate === 'off') {
55
+ ctx.skip('ASK approval posture (opencode not verifiably at or above 1.19.0)');
56
+ return;
57
+ }
58
+ askPostureCheck(ctx, gate);
59
+ savedAllowStoreCheck(ctx);
60
+ }
61
+ const ASK_POSTURE_LABEL = 'ASK approval posture (client allow rules + server gate)';
62
+ function askPostureCheck(ctx, gate) {
63
+ const v1 = gate === 'v1-object';
64
+ let cfg;
65
+ try {
66
+ cfg = asRecord(JSON.parse(readFileSync(opencodeConfigFile(), 'utf8')));
67
+ }
68
+ catch {
69
+ cfg = null;
70
+ }
71
+ if (cfg === null) {
72
+ ctx.warn(`${ASK_POSTURE_LABEL}: the opencode config is unreadable, so the client half cannot be verified — the server gate still confirms every roster call; fix the file and re-run: npx huaweicloud-devkit install --target opencode`);
73
+ return;
74
+ }
75
+ const reading = v1 ? readPermissionRulesV1(cfg) : readPermissionRules(cfg);
76
+ if (reading.sectionUnreadable) {
77
+ ctx.warn(`${ASK_POSTURE_LABEL}: opencode ${v1 ? 'permission is not object-shaped' : 'permissions is not array-shaped'}, so the client half cannot be verified — the server gate still confirms every roster call; fix the shape and re-run: npx huaweicloud-devkit install --target opencode`);
78
+ return;
79
+ }
80
+ // The mcp entry carries the server half; a missing entry counts as no env.
81
+ const env = asRecord(asRecord(asRecord(cfg.mcp)['huaweicloud-devkit']).environment);
82
+ const gateOn = env.DEVKIT_APPROVAL_MODE === 'ask';
83
+ const actionsIn = (state) => reading.rules.filter((rule) => rule.state === state).map((rule) => rule.action);
84
+ const allow = actionsIn('allow');
85
+ const absent = actionsIn('absent');
86
+ const deny = actionsIn('deny');
87
+ const foreign = actionsIn('foreign');
88
+ const userOther = actionsIn('user-other');
89
+ const residue = reading.rules.filter((rule) => rule.askResidue).map((rule) => rule.action);
90
+ // Token mode with no client rules at all is the legitimate default posture.
91
+ if (!gateOn && absent.length === reading.rules.length) {
92
+ ctx.check('ASK approval posture (token mode)', true, '');
93
+ return;
94
+ }
95
+ const fails = [];
96
+ const warns = [];
97
+ if (deny.length > 0) {
98
+ fails.push(v1
99
+ ? `the permission value on ${deny.join(', ')} is "deny" — the write tool is blocked outright in the client; delete that key`
100
+ : `a permissions rule on ${deny.join(', ')} is "deny" — the write tool is blocked outright in the client; delete that rule`);
101
+ }
102
+ if (residue.length > 0) {
103
+ fails.push(`the devkit-written ask ${v1 ? 'value' : 'rule'} is still present on ${residue.join(', ')} — the posture migration missed it (re-run: npx huaweicloud-devkit install --target opencode)`);
104
+ }
105
+ if (gateOn && absent.length > 0) {
106
+ fails.push(`the client allow ${v1 ? 'value' : 'rule'} is missing on ${absent.join(', ')} while DEVKIT_APPROVAL_MODE=ask is set — the pair has drifted from what this installer writes (re-run: npx huaweicloud-devkit install --target opencode)`);
107
+ }
108
+ if (!gateOn && allow.length > 0) {
109
+ warns.push(`client allow ${v1 ? 'values' : 'rules'} on ${allow.join(', ')} are present but DEVKIT_APPROVAL_MODE=ask is missing from the mcp entry — the mixed state suppresses the client prompt while the server runs the token gate (re-run: npx huaweicloud-devkit install --target opencode)`);
110
+ }
111
+ if (userOther.length > 0) {
112
+ warns.push(`a user-owned ${v1 ? 'permission value' : 'rule'} on ${userOther.join(', ')} covers a different resource, so the installer keeps it (skip recorded) and no exact "*" allow rule is written there (see README, Harness permission notes)`);
113
+ }
114
+ if (foreign.length > 0) {
115
+ warns.push(`the ${v1 ? 'permission value' : 'permissions rule'} on ${foreign.join(', ')} is not a readable effect, so the client half cannot be verified there`);
116
+ }
117
+ if (fails.length > 0) {
118
+ ctx.check(ASK_POSTURE_LABEL, false, [...fails, ...warns].join(' '));
119
+ }
120
+ else if (warns.length > 0) {
121
+ ctx.warn(`${ASK_POSTURE_LABEL}: ${warns.join(' ')}`);
122
+ }
123
+ else {
124
+ ctx.check(ASK_POSTURE_LABEL, true, '');
125
+ }
126
+ }
127
+ // Doctor: the opencode saved-permission store, the client-side twin of the
128
+ // ask rule. One "Always allow" click on the client prompt persists an allow
129
+ // row that opencode evaluates AFTER the configured rules (findLast), so it
130
+ // silently converts every future call on the action into an unprompted
131
+ // execution of opencode's own permission layer. That no longer gates anything
132
+ // the devkit relies on: the confirmation runs on the server (the gate raises
133
+ // the form, or the T3 chat round-trip), inside the tool call and outside
134
+ // opencode's evaluation. The row is therefore a stale grant, reported as a
135
+ // WARN with the probe-measured removal commands, not a failing gate. Zero rows
136
+ // prints nothing at all (the healthy fresh state), so a clean install's
137
+ // doctor output stays byte-identical.
138
+ function savedAllowStoreCheck(ctx) {
139
+ const scan = scanSavedAllowRows({ scope: 'all' });
140
+ if (scan.status === 'absent')
141
+ return;
142
+ if (scan.status === 'unreadable') {
143
+ ctx.warn(`ASK approval hygiene: opencode saved-permission store unreadable (${scan.dbPath}): ${scan.detail} — saved "always allow" rows cannot be listed`);
144
+ return;
145
+ }
146
+ if (scan.rows.length === 0)
147
+ return;
148
+ // WARN, not FAIL (PR-1.5 demotion): the confirmation runs server-side, so a
149
+ // saved client-side allow row can no longer suppress it (the form is raised
150
+ // inside the tool call and never routes through opencode's permission
151
+ // evaluation). The row is a stale grant worth cleaning up, not a gate.
152
+ const actions = [...new Set(scan.rows.map((row) => row.action))].join(', ');
153
+ ctx.warn(`ASK approval hygiene: opencode's permission store holds a saved "always allow" rule for ${actions} — the server-run confirmation ignores it, so calls are not fail-open; the row is still a stale grant. List them: opencode api GET /api/permission/saved. Remove one: opencode api DELETE /api/permission/saved/<id>. It lives in ${scan.dbPath}, table "permission".`);
154
+ for (const row of scan.rows) {
155
+ ctx.raw(` ${row.id} → ${row.projectWorktree ?? row.projectId} (action ${row.action})`);
156
+ }
157
+ }
30
158
  // Doctor: the skills-tree permission seam check — OpenCode installs only
31
159
  // (the seam is the installer's zero-prompt path for direct skill reads on
32
160
  // that harness). Verifies the two keys and their values, honoring the