@namzu/sdk 69.0.0 → 69.1.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.
Files changed (303) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/agents/QueryAgent.d.ts.map +1 -1
  3. package/dist/agents/QueryAgent.js +2 -0
  4. package/dist/agents/QueryAgent.js.map +1 -1
  5. package/dist/authorization/skill-grant.d.ts.map +1 -1
  6. package/dist/authorization/skill-grant.js +1 -0
  7. package/dist/authorization/skill-grant.js.map +1 -1
  8. package/dist/bridge/acp/permission.d.ts +10 -0
  9. package/dist/bridge/acp/permission.d.ts.map +1 -1
  10. package/dist/bridge/acp/permission.js.map +1 -1
  11. package/dist/bridge/acp/server.d.ts.map +1 -1
  12. package/dist/bridge/acp/server.js +1 -0
  13. package/dist/bridge/acp/server.js.map +1 -1
  14. package/dist/connector/index.d.ts +2 -2
  15. package/dist/connector/index.d.ts.map +1 -1
  16. package/dist/connector/index.js +1 -1
  17. package/dist/connector/index.js.map +1 -1
  18. package/dist/connector/mcp/client.d.ts +29 -0
  19. package/dist/connector/mcp/client.d.ts.map +1 -1
  20. package/dist/connector/mcp/client.js +59 -2
  21. package/dist/connector/mcp/client.js.map +1 -1
  22. package/dist/connector/mcp/errors.d.ts +7 -0
  23. package/dist/connector/mcp/errors.d.ts.map +1 -1
  24. package/dist/connector/mcp/errors.js +14 -0
  25. package/dist/connector/mcp/errors.js.map +1 -1
  26. package/dist/connector/mcp/index.d.ts +5 -1
  27. package/dist/connector/mcp/index.d.ts.map +1 -1
  28. package/dist/connector/mcp/index.js +3 -1
  29. package/dist/connector/mcp/index.js.map +1 -1
  30. package/dist/connector/mcp/skill-source.d.ts +144 -0
  31. package/dist/connector/mcp/skill-source.d.ts.map +1 -0
  32. package/dist/connector/mcp/skill-source.js +375 -0
  33. package/dist/connector/mcp/skill-source.js.map +1 -0
  34. package/dist/connector/mcp/skills.d.ts +137 -0
  35. package/dist/connector/mcp/skills.d.ts.map +1 -0
  36. package/dist/connector/mcp/skills.js +303 -0
  37. package/dist/connector/mcp/skills.js.map +1 -0
  38. package/dist/network/audit.d.ts +1 -1
  39. package/dist/network/audit.d.ts.map +1 -1
  40. package/dist/network/audit.js +2 -0
  41. package/dist/network/audit.js.map +1 -1
  42. package/dist/network/computer.d.ts +107 -0
  43. package/dist/network/computer.d.ts.map +1 -0
  44. package/dist/network/computer.js +250 -0
  45. package/dist/network/computer.js.map +1 -0
  46. package/dist/network/index.d.ts +2 -0
  47. package/dist/network/index.d.ts.map +1 -1
  48. package/dist/network/index.js +1 -0
  49. package/dist/network/index.js.map +1 -1
  50. package/dist/network/join.d.ts +3 -1
  51. package/dist/network/join.d.ts.map +1 -1
  52. package/dist/network/join.js +6 -3
  53. package/dist/network/join.js.map +1 -1
  54. package/dist/network/roster.d.ts +5 -0
  55. package/dist/network/roster.d.ts.map +1 -1
  56. package/dist/network/roster.js.map +1 -1
  57. package/dist/network/service.d.ts +12 -2
  58. package/dist/network/service.d.ts.map +1 -1
  59. package/dist/network/service.js +377 -52
  60. package/dist/network/service.js.map +1 -1
  61. package/dist/network/store.d.ts +10 -0
  62. package/dist/network/store.d.ts.map +1 -1
  63. package/dist/network/store.js +25 -3
  64. package/dist/network/store.js.map +1 -1
  65. package/dist/network/wire.d.ts +2 -0
  66. package/dist/network/wire.d.ts.map +1 -1
  67. package/dist/network/wire.js +5 -0
  68. package/dist/network/wire.js.map +1 -1
  69. package/dist/plugin/shell-hook-tool-names.d.ts.map +1 -1
  70. package/dist/plugin/shell-hook-tool-names.js +1 -0
  71. package/dist/plugin/shell-hook-tool-names.js.map +1 -1
  72. package/dist/plugin/shell-hook.d.ts +8 -3
  73. package/dist/plugin/shell-hook.d.ts.map +1 -1
  74. package/dist/plugin/shell-hook.js +132 -7
  75. package/dist/plugin/shell-hook.js.map +1 -1
  76. package/dist/provider/fallback.d.ts.map +1 -1
  77. package/dist/provider/fallback.js +4 -0
  78. package/dist/provider/fallback.js.map +1 -1
  79. package/dist/provider/idle-timeout.d.ts.map +1 -1
  80. package/dist/provider/idle-timeout.js +3 -0
  81. package/dist/provider/idle-timeout.js.map +1 -1
  82. package/dist/provider/model-window-suffix.d.ts.map +1 -1
  83. package/dist/provider/model-window-suffix.js +1 -0
  84. package/dist/provider/model-window-suffix.js.map +1 -1
  85. package/dist/provider/retry.d.ts.map +1 -1
  86. package/dist/provider/retry.js +3 -0
  87. package/dist/provider/retry.js.map +1 -1
  88. package/dist/public-runtime.d.ts +9 -6
  89. package/dist/public-runtime.d.ts.map +1 -1
  90. package/dist/public-runtime.js +11 -4
  91. package/dist/public-runtime.js.map +1 -1
  92. package/dist/public-tools.d.ts +5 -4
  93. package/dist/public-tools.d.ts.map +1 -1
  94. package/dist/public-tools.js +5 -3
  95. package/dist/public-tools.js.map +1 -1
  96. package/dist/public-types.d.ts +3 -1
  97. package/dist/public-types.d.ts.map +1 -1
  98. package/dist/runtime/query/executor/tool-call-admission.d.ts.map +1 -1
  99. package/dist/runtime/query/executor/tool-call-admission.js +10 -1
  100. package/dist/runtime/query/executor/tool-call-admission.js.map +1 -1
  101. package/dist/runtime/query/executor.d.ts +12 -0
  102. package/dist/runtime/query/executor.d.ts.map +1 -1
  103. package/dist/runtime/query/executor.js +43 -9
  104. package/dist/runtime/query/executor.js.map +1 -1
  105. package/dist/runtime/query/index.d.ts +4 -0
  106. package/dist/runtime/query/index.d.ts.map +1 -1
  107. package/dist/runtime/query/index.js +32 -0
  108. package/dist/runtime/query/index.js.map +1 -1
  109. package/dist/runtime/query/review-policy.d.ts +2 -2
  110. package/dist/runtime/query/review-policy.d.ts.map +1 -1
  111. package/dist/runtime/query/review-policy.js +2 -2
  112. package/dist/runtime/query/review-policy.js.map +1 -1
  113. package/dist/runtime/query/shell-line-escalation.d.ts +24 -0
  114. package/dist/runtime/query/shell-line-escalation.d.ts.map +1 -0
  115. package/dist/runtime/query/shell-line-escalation.js +38 -0
  116. package/dist/runtime/query/shell-line-escalation.js.map +1 -0
  117. package/dist/runtime/query/tooling.d.ts +7 -0
  118. package/dist/runtime/query/tooling.d.ts.map +1 -1
  119. package/dist/runtime/query/tooling.js +2 -0
  120. package/dist/runtime/query/tooling.js.map +1 -1
  121. package/dist/runtime/query/turn/outcome-ledger.d.ts.map +1 -1
  122. package/dist/runtime/query/turn/outcome-ledger.js +11 -0
  123. package/dist/runtime/query/turn/outcome-ledger.js.map +1 -1
  124. package/dist/scheduler/local.d.ts.map +1 -1
  125. package/dist/scheduler/local.js +3 -1
  126. package/dist/scheduler/local.js.map +1 -1
  127. package/dist/skills/index.d.ts +4 -0
  128. package/dist/skills/index.d.ts.map +1 -1
  129. package/dist/skills/index.js +2 -0
  130. package/dist/skills/index.js.map +1 -1
  131. package/dist/skills/inline-shell-host.d.ts +103 -0
  132. package/dist/skills/inline-shell-host.d.ts.map +1 -0
  133. package/dist/skills/inline-shell-host.js +238 -0
  134. package/dist/skills/inline-shell-host.js.map +1 -0
  135. package/dist/skills/inline-shell.d.ts +176 -0
  136. package/dist/skills/inline-shell.d.ts.map +1 -0
  137. package/dist/skills/inline-shell.js +646 -0
  138. package/dist/skills/inline-shell.js.map +1 -0
  139. package/dist/store/index.d.ts +2 -0
  140. package/dist/store/index.d.ts.map +1 -1
  141. package/dist/store/index.js +1 -0
  142. package/dist/store/index.js.map +1 -1
  143. package/dist/store/task/file.d.ts +124 -0
  144. package/dist/store/task/file.d.ts.map +1 -0
  145. package/dist/store/task/file.js +498 -0
  146. package/dist/store/task/file.js.map +1 -0
  147. package/dist/teams/backend.d.ts +28 -0
  148. package/dist/teams/backend.d.ts.map +1 -0
  149. package/dist/teams/backend.js +2 -0
  150. package/dist/teams/backend.js.map +1 -0
  151. package/dist/teams/fs-sync.d.ts +19 -0
  152. package/dist/teams/fs-sync.d.ts.map +1 -0
  153. package/dist/teams/fs-sync.js +81 -0
  154. package/dist/teams/fs-sync.js.map +1 -0
  155. package/dist/teams/index.d.ts +14 -0
  156. package/dist/teams/index.d.ts.map +1 -0
  157. package/dist/teams/index.js +11 -0
  158. package/dist/teams/index.js.map +1 -0
  159. package/dist/teams/names.d.ts +15 -0
  160. package/dist/teams/names.d.ts.map +1 -0
  161. package/dist/teams/names.js +43 -0
  162. package/dist/teams/names.js.map +1 -0
  163. package/dist/teams/store.d.ts +133 -0
  164. package/dist/teams/store.d.ts.map +1 -0
  165. package/dist/teams/store.js +536 -0
  166. package/dist/teams/store.js.map +1 -0
  167. package/dist/teams/types.d.ts +97 -0
  168. package/dist/teams/types.d.ts.map +1 -0
  169. package/dist/teams/types.js +70 -0
  170. package/dist/teams/types.js.map +1 -0
  171. package/dist/tools/admit-facts.d.ts.map +1 -1
  172. package/dist/tools/admit-facts.js +9 -1
  173. package/dist/tools/admit-facts.js.map +1 -1
  174. package/dist/tools/builtins/computer-use.d.ts +56 -2
  175. package/dist/tools/builtins/computer-use.d.ts.map +1 -1
  176. package/dist/tools/builtins/computer-use.js +604 -90
  177. package/dist/tools/builtins/computer-use.js.map +1 -1
  178. package/dist/tools/builtins/index.d.ts +1 -1
  179. package/dist/tools/builtins/index.d.ts.map +1 -1
  180. package/dist/tools/builtins/index.js.map +1 -1
  181. package/dist/tools/builtins/skill.d.ts +31 -0
  182. package/dist/tools/builtins/skill.d.ts.map +1 -1
  183. package/dist/tools/builtins/skill.js +232 -88
  184. package/dist/tools/builtins/skill.js.map +1 -1
  185. package/dist/tools/task/create.d.ts.map +1 -1
  186. package/dist/tools/task/create.js +11 -2
  187. package/dist/tools/task/create.js.map +1 -1
  188. package/dist/tools/task/get.d.ts +8 -0
  189. package/dist/tools/task/get.d.ts.map +1 -0
  190. package/dist/tools/task/get.js +51 -0
  191. package/dist/tools/task/get.js.map +1 -0
  192. package/dist/tools/task/index.d.ts +7 -0
  193. package/dist/tools/task/index.d.ts.map +1 -1
  194. package/dist/tools/task/index.js +10 -2
  195. package/dist/tools/task/index.js.map +1 -1
  196. package/dist/tools/task/list.d.ts.map +1 -1
  197. package/dist/tools/task/list.js +10 -2
  198. package/dist/tools/task/list.js.map +1 -1
  199. package/dist/tools/task/number.d.ts +13 -0
  200. package/dist/tools/task/number.d.ts.map +1 -0
  201. package/dist/tools/task/number.js +30 -0
  202. package/dist/tools/task/number.js.map +1 -0
  203. package/dist/tools/task/present.d.ts.map +1 -1
  204. package/dist/tools/task/present.js +17 -3
  205. package/dist/tools/task/present.js.map +1 -1
  206. package/dist/tools/task/update.d.ts +2 -1
  207. package/dist/tools/task/update.d.ts.map +1 -1
  208. package/dist/tools/task/update.js +86 -19
  209. package/dist/tools/task/update.js.map +1 -1
  210. package/dist/types/acp/index.d.ts +10 -0
  211. package/dist/types/acp/index.d.ts.map +1 -1
  212. package/dist/types/agent/base.d.ts +4 -0
  213. package/dist/types/agent/base.d.ts.map +1 -1
  214. package/dist/types/agent/scheduler.d.ts +9 -0
  215. package/dist/types/agent/scheduler.d.ts.map +1 -1
  216. package/dist/types/computer-use/index.d.ts +7 -0
  217. package/dist/types/computer-use/index.d.ts.map +1 -1
  218. package/dist/types/computer-use/index.js.map +1 -1
  219. package/dist/types/connector/mcp.d.ts +10 -0
  220. package/dist/types/connector/mcp.d.ts.map +1 -1
  221. package/dist/types/permission/index.d.ts +20 -0
  222. package/dist/types/permission/index.d.ts.map +1 -1
  223. package/dist/types/permission/index.js +25 -0
  224. package/dist/types/permission/index.js.map +1 -1
  225. package/dist/types/plugin/index.d.ts +47 -3
  226. package/dist/types/plugin/index.d.ts.map +1 -1
  227. package/dist/types/plugin/index.js +4 -0
  228. package/dist/types/plugin/index.js.map +1 -1
  229. package/dist/types/provider/interface.d.ts +6 -0
  230. package/dist/types/provider/interface.d.ts.map +1 -1
  231. package/dist/types/tool/index.d.ts +28 -2
  232. package/dist/types/tool/index.d.ts.map +1 -1
  233. package/dist/types/tool/index.js.map +1 -1
  234. package/dist/types/tool/presentation.d.ts +4 -0
  235. package/dist/types/tool/presentation.d.ts.map +1 -1
  236. package/package.json +1 -1
  237. package/src/agents/QueryAgent.ts +2 -0
  238. package/src/authorization/skill-grant.ts +1 -0
  239. package/src/bridge/acp/permission.ts +11 -1
  240. package/src/bridge/acp/server.ts +1 -0
  241. package/src/connector/index.ts +27 -0
  242. package/src/connector/mcp/client.ts +71 -2
  243. package/src/connector/mcp/errors.ts +14 -0
  244. package/src/connector/mcp/index.ts +36 -0
  245. package/src/connector/mcp/skill-source.ts +499 -0
  246. package/src/connector/mcp/skills.ts +367 -0
  247. package/src/network/audit.ts +2 -0
  248. package/src/network/computer.ts +347 -0
  249. package/src/network/index.ts +20 -0
  250. package/src/network/join.ts +4 -2
  251. package/src/network/roster.ts +5 -0
  252. package/src/network/service.ts +492 -75
  253. package/src/network/store.ts +29 -3
  254. package/src/network/wire.ts +5 -0
  255. package/src/plugin/shell-hook-tool-names.ts +1 -0
  256. package/src/plugin/shell-hook.ts +144 -7
  257. package/src/provider/fallback.ts +4 -0
  258. package/src/provider/idle-timeout.ts +3 -0
  259. package/src/provider/model-window-suffix.ts +1 -0
  260. package/src/provider/retry.ts +3 -0
  261. package/src/public-runtime.ts +99 -0
  262. package/src/public-tools.ts +9 -0
  263. package/src/public-types.ts +28 -0
  264. package/src/runtime/query/executor/tool-call-admission.ts +10 -1
  265. package/src/runtime/query/executor.ts +57 -8
  266. package/src/runtime/query/index.ts +43 -0
  267. package/src/runtime/query/review-policy.ts +7 -1
  268. package/src/runtime/query/shell-line-escalation.ts +49 -0
  269. package/src/runtime/query/tooling.ts +6 -0
  270. package/src/runtime/query/turn/outcome-ledger.ts +11 -0
  271. package/src/scheduler/local.ts +3 -1
  272. package/src/skills/index.ts +43 -0
  273. package/src/skills/inline-shell-host.ts +303 -0
  274. package/src/skills/inline-shell.ts +765 -0
  275. package/src/store/index.ts +8 -0
  276. package/src/store/task/file.ts +641 -0
  277. package/src/teams/backend.ts +29 -0
  278. package/src/teams/fs-sync.ts +91 -0
  279. package/src/teams/index.ts +47 -0
  280. package/src/teams/names.ts +49 -0
  281. package/src/teams/store.ts +607 -0
  282. package/src/teams/types.ts +102 -0
  283. package/src/tools/admit-facts.ts +9 -1
  284. package/src/tools/builtins/computer-use.ts +689 -95
  285. package/src/tools/builtins/index.ts +1 -0
  286. package/src/tools/builtins/skill.ts +291 -95
  287. package/src/tools/task/create.ts +11 -2
  288. package/src/tools/task/get.ts +53 -0
  289. package/src/tools/task/index.ts +14 -2
  290. package/src/tools/task/list.ts +10 -2
  291. package/src/tools/task/number.ts +32 -0
  292. package/src/tools/task/present.ts +18 -3
  293. package/src/tools/task/update.ts +93 -19
  294. package/src/types/acp/index.ts +11 -1
  295. package/src/types/agent/base.ts +6 -0
  296. package/src/types/agent/scheduler.ts +9 -0
  297. package/src/types/computer-use/index.ts +7 -0
  298. package/src/types/connector/mcp.ts +10 -0
  299. package/src/types/permission/index.ts +29 -0
  300. package/src/types/plugin/index.ts +95 -39
  301. package/src/types/provider/interface.ts +7 -0
  302. package/src/types/tool/index.ts +23 -2
  303. package/src/types/tool/presentation.ts +2 -0
@@ -4,6 +4,7 @@
4
4
  * ```
5
5
  * machine.json machine.key.pem machine.cert.pem network.json
6
6
  * members.json peers.json session-roles.json trusted-networks.json join-attempt.json
7
+ * same-computer.json
7
8
  * leader.lock audit.jsonl
8
9
  * ```
9
10
  *
@@ -73,7 +74,12 @@ export const PeersFileSchema = z
73
74
  v: z.literal(1),
74
75
  machines: z.record(
75
76
  z.string(),
76
- z.object({ name: z.string().max(80), addresses: z.array(AddressSchema).max(4) }).strict(),
77
+ z
78
+ .object({
79
+ name: z.string().max(80),
80
+ addresses: z.array(AddressSchema).max(4),
81
+ })
82
+ .strict(),
77
83
  ),
78
84
  })
79
85
  .strict()
@@ -136,6 +142,17 @@ export const JoinAttemptFileSchema = z
136
142
  .strict()
137
143
  export type JoinAttemptFile = z.infer<typeof JoinAttemptFileSchema>
138
144
 
145
+ /** Machines of this person's own computer that joined (or admitted this one) by proof; the roster marks them while the secret still reads. */
146
+ export const SameComputerFileSchema = z
147
+ .object({
148
+ v: z.literal(1),
149
+ /** Fingerprint of the secret the marks were earned with; marks of another secret are not shown. */
150
+ fp: z.string().length(16).optional(),
151
+ machines: z.array(z.string().length(64)).max(64),
152
+ })
153
+ .strict()
154
+ export type SameComputerFile = z.infer<typeof SameComputerFileSchema>
155
+
139
156
  export const LeaderLockSchema = z
140
157
  .object({
141
158
  pid: z.number().int().positive(),
@@ -182,6 +199,8 @@ export interface NetworkStore {
182
199
  readJoinAttempt(): Promise<ReadResult<JoinAttemptFile>>
183
200
  writeJoinAttempt(value: JoinAttemptFile): Promise<void>
184
201
  clearJoinAttempt(): Promise<void>
202
+ readSameComputer(): Promise<ReadResult<SameComputerFile>>
203
+ writeSameComputer(value: SameComputerFile): Promise<void>
185
204
  /** Forget the network and the identity (a removed machine starts over). The audit log stays. */
186
205
  reset(): Promise<void>
187
206
  }
@@ -227,7 +246,9 @@ export function createNetworkStore(options: NetworkStoreOptions): NetworkStore {
227
246
 
228
247
  async function writeJson(name: string, value: unknown): Promise<void> {
229
248
  ensure()
230
- await atomicWriteFile(file(name), `${JSON.stringify(value, null, 2)}\n`, { mode: FILE_MODE })
249
+ await atomicWriteFile(file(name), `${JSON.stringify(value, null, 2)}\n`, {
250
+ mode: FILE_MODE,
251
+ })
231
252
  }
232
253
 
233
254
  return {
@@ -249,7 +270,9 @@ export function createNetworkStore(options: NetworkStoreOptions): NetworkStore {
249
270
  },
250
271
  async writeKey(key) {
251
272
  ensure()
252
- await atomicWriteFile(file('machine.key.pem'), exportMachineKeyPem(key), { mode: FILE_MODE })
273
+ await atomicWriteFile(file('machine.key.pem'), exportMachineKeyPem(key), {
274
+ mode: FILE_MODE,
275
+ })
253
276
  },
254
277
  readCertificate: () => readText(file('machine.cert.pem')),
255
278
  async writeCertificate(pem) {
@@ -270,6 +293,8 @@ export function createNetworkStore(options: NetworkStoreOptions): NetworkStore {
270
293
  readJoinAttempt: () => readJson('join-attempt.json', JoinAttemptFileSchema),
271
294
  writeJoinAttempt: (v) => writeJson('join-attempt.json', JoinAttemptFileSchema.parse(v)),
272
295
  clearJoinAttempt: () => rm(file('join-attempt.json'), { force: true }),
296
+ readSameComputer: () => readJson('same-computer.json', SameComputerFileSchema),
297
+ writeSameComputer: (v) => writeJson('same-computer.json', SameComputerFileSchema.parse(v)),
273
298
  async reset() {
274
299
  for (const name of [
275
300
  'machine.json',
@@ -280,6 +305,7 @@ export function createNetworkStore(options: NetworkStoreOptions): NetworkStore {
280
305
  'peers.json',
281
306
  'session-roles.json',
282
307
  'join-attempt.json',
308
+ 'same-computer.json',
283
309
  ]) {
284
310
  await rm(file(name), { force: true })
285
311
  }
@@ -110,6 +110,11 @@ export const JoinRequestSchema = z
110
110
  .max(MAX_NAME_LENGTH * 2),
111
111
  publicKey: z.string().min(1).max(256),
112
112
  nonce: z.string().min(16).max(64),
113
+ /**
114
+ * Proof that the joiner holds this computer's secret (base64 HMAC; see `computer.ts`). Optional: an
115
+ * older member rejects the field, so a joiner that gets `bad_request` asks again without it.
116
+ */
117
+ computerProof: z.string().length(44).optional(),
113
118
  })
114
119
  .strict()
115
120
  export type JoinRequest = z.infer<typeof JoinRequestSchema>
@@ -30,6 +30,7 @@ export const SHELL_HOOK_WRITTEN_TOOL_NAMES: Readonly<Record<string, string>> = O
30
30
  search_tools: 'ToolSearch',
31
31
  skill: 'Skill',
32
32
  task_create: 'TaskCreate',
33
+ task_get: 'TaskGet',
33
34
  task_list: 'TaskList',
34
35
  task_update: 'TaskUpdate',
35
36
  web_fetch: 'WebFetch',
@@ -40,7 +40,7 @@
40
40
  * on `pre_compact` it is instructions for the summariser.
41
41
  * - `2` — **block**, read per event: before a tool (`pre_tool_use`) the call is
42
42
  * skipped and the model is told why, with the hook's stderr as the reason;
43
- * on `user_prompt_submit` the turn ends; on `turn_end` and `subagent_stop`
43
+ * on `user_prompt_submit` the turn ends; on `turn_end`, `subagent_stop` and `teammate_idle`
44
44
  * the stderr is fed back to the model and the turn goes on; on
45
45
  * `pre_compact` a compaction the context did not force is cancelled; on
46
46
  * `post_tool_use` and `post_tool_use_failure` the stderr is shown to the
@@ -132,6 +132,7 @@ import type {
132
132
  PluginModelSwitchInfo,
133
133
  PluginNotificationInfo,
134
134
  PluginPromptExpansionInfo,
135
+ PluginSkillShellInfo,
135
136
  PluginTaskInfo,
136
137
  PluginToolBatchCall,
137
138
  } from '../types/plugin/index.js'
@@ -189,8 +190,12 @@ export type ShellHookEvent = Extract<
189
190
  | 'directory_added'
190
191
  | 'instructions_loaded'
191
192
  | 'user_prompt_expansion'
193
+ | 'pre_skill_shell_command'
192
194
  | 'task_created'
193
195
  | 'task_completed'
196
+ | 'teammate_idle'
197
+ | 'teammate_start'
198
+ | 'teammate_stop'
194
199
  >
195
200
 
196
201
  export const SHELL_HOOK_EVENTS: readonly ShellHookEvent[] = [
@@ -222,8 +227,12 @@ export const SHELL_HOOK_EVENTS: readonly ShellHookEvent[] = [
222
227
  'directory_added',
223
228
  'instructions_loaded',
224
229
  'user_prompt_expansion',
230
+ 'pre_skill_shell_command',
225
231
  'task_created',
226
232
  'task_completed',
233
+ 'teammate_idle',
234
+ 'teammate_start',
235
+ 'teammate_stop',
227
236
  ]
228
237
 
229
238
  /** What a failed hook does to the action it guards. */
@@ -382,6 +391,7 @@ const WRITTEN_TOOL_NAMES: Readonly<Record<string, string>> = Object.freeze({
382
391
  taskcreate: 'TaskCreate',
383
392
  taskupdate: 'TaskUpdate',
384
393
  tasklist: 'TaskList',
394
+ taskget: 'TaskGet',
385
395
  })
386
396
 
387
397
  /**
@@ -754,8 +764,13 @@ export interface ShellHookInput {
754
764
  readonly instructions?: PluginInstructionsInfo
755
765
  /** On `user_prompt_expansion`. Sent as `expansion_type`, `command_name`, `command_args` and `command_source`. */
756
766
  readonly expansion?: PluginPromptExpansionInfo
767
+ /** On `pre_skill_shell_command`. Sent as `command_name`, `command_source` and `invoked_by`, beside `tool_name`, `tool_input` and `tool_use_id`. */
768
+ readonly skillShell?: PluginSkillShellInfo
757
769
  /** On `task_created` and `task_completed`. Sent as `task_id`, `task_subject` and `task_description`. */
758
770
  readonly task?: PluginTaskInfo
771
+ /** On `teammate_idle`, `teammate_start`, `teammate_stop`, and on a task event a teammate caused. Sent as `teammate_name` and `team_name`. */
772
+ readonly teammateName?: string
773
+ readonly teamName?: string
759
774
  /**
760
775
  * The file this hook may append `export NAME=value` lines to. Sent as
761
776
  * `NAMZU_ENV_FILE`; on every other event the variable is not set at all.
@@ -875,6 +890,15 @@ export function shellHookPayload(input: ShellHookInput): string {
875
890
  : {}),
876
891
  }
877
892
  : {}),
893
+ ...(input.skillShell !== undefined
894
+ ? {
895
+ command_name: input.skillShell.commandName,
896
+ ...(input.skillShell.commandSource !== undefined
897
+ ? { command_source: input.skillShell.commandSource }
898
+ : {}),
899
+ invoked_by: input.skillShell.invokedBy,
900
+ }
901
+ : {}),
878
902
  ...(input.task !== undefined
879
903
  ? {
880
904
  ...(input.task.id !== undefined ? { task_id: input.task.id } : {}),
@@ -884,6 +908,8 @@ export function shellHookPayload(input: ShellHookInput): string {
884
908
  : {}),
885
909
  }
886
910
  : {}),
911
+ ...(input.teammateName !== undefined ? { teammate_name: input.teammateName } : {}),
912
+ ...(input.teamName !== undefined ? { team_name: input.teamName } : {}),
887
913
  ...(input.compaction !== undefined ? compactionFields(input.event, input.compaction) : {}),
888
914
  ...(input.toolName !== undefined
889
915
  ? { tool_name: shellHookToolName(input.toolName, input.toolNames) }
@@ -1260,8 +1286,12 @@ export const SHELL_HOOK_PASCAL_EVENT_NAMES: Readonly<Partial<Record<ShellHookEve
1260
1286
  directory_added: 'DirectoryAdded',
1261
1287
  instructions_loaded: 'InstructionsLoaded',
1262
1288
  user_prompt_expansion: 'UserPromptExpansion',
1289
+ pre_skill_shell_command: 'PreSkillShellCommand',
1263
1290
  task_created: 'TaskCreated',
1264
1291
  task_completed: 'TaskCompleted',
1292
+ teammate_idle: 'TeammateIdle',
1293
+ teammate_start: 'TeammateStart',
1294
+ teammate_stop: 'TeammateStop',
1265
1295
  }
1266
1296
 
1267
1297
  /** What a hook's stdout JSON said, before it is mapped to a verdict for an event. */
@@ -1474,6 +1504,29 @@ function readShellHookJson(
1474
1504
  reading.elicitation = { action: 'accept', content: specific.content }
1475
1505
  }
1476
1506
  }
1507
+ if (event === 'pre_skill_shell_command') {
1508
+ // A skill's command cannot wait for a person, and it is never rewritten:
1509
+ // every way a hook has of saying "not as it stands" is a refusal.
1510
+ const decision = specific.permissionDecision
1511
+ const why = optionalString('permissionDecisionReason', specific)
1512
+ if (decision !== undefined) {
1513
+ if (decision === 'deny') reading.block = why ?? reason ?? 'Blocked by hook'
1514
+ else if (decision === 'ask' || decision === 'defer') {
1515
+ const asked = "the hook asked for approval, which a skill can't wait for"
1516
+ reading.block = why ? `${why} (${asked})` : asked
1517
+ } else if (decision !== 'allow') {
1518
+ return {
1519
+ invalid: '`permissionDecision` must be "allow", "deny", "ask" or "defer"',
1520
+ }
1521
+ }
1522
+ }
1523
+ if (specific.updatedInput !== undefined && reading.block === undefined) {
1524
+ reading.block = "the hook changed the command, which isn't supported here"
1525
+ }
1526
+ if (specific.updatedPermissions !== undefined && reading.block === undefined) {
1527
+ reading.block = "the hook asked to change permissions, which isn't supported here"
1528
+ }
1529
+ }
1477
1530
  if (event === 'pre_tool_use' || event === 'pre_model_switch') {
1478
1531
  const decision = specific.permissionDecision
1479
1532
  const why = optionalString('permissionDecisionReason', specific)
@@ -1556,6 +1609,21 @@ export function shellHookVerdict(
1556
1609
  // A failure of the hook itself is "carry on" unless the entry asked for
1557
1610
  // it to count as a refusal, which is exit 2 with the failure as the reason.
1558
1611
  const failed = (reason: string, shown: string = reason): PluginHookResult => {
1612
+ // A command a skill is about to run: the hook that guards it failing to
1613
+ // start refuses the command (checked below, before this is reached); any
1614
+ // other failure of the hook is a warning and the command runs, unless the
1615
+ // entry asked for a failure to count as a refusal.
1616
+ if (
1617
+ event === 'pre_skill_shell_command' &&
1618
+ entry.onFailure !== 'block' &&
1619
+ entry.type !== 'prompt' &&
1620
+ !isAsyncShellHook(entry)
1621
+ ) {
1622
+ return {
1623
+ action: 'continue',
1624
+ notice: `${label}: ${hint !== undefined ? `${reason}; ${hint}` : reason}`,
1625
+ }
1626
+ }
1559
1627
  if (entry.onFailure !== 'block' || entry.type === 'prompt' || isAsyncShellHook(entry)) {
1560
1628
  return hint !== undefined
1561
1629
  ? { action: 'continue', notice: `${label}: ${hint}` }
@@ -1583,6 +1651,11 @@ export function shellHookVerdict(
1583
1651
  )
1584
1652
  }
1585
1653
  if (outcome.spawnError !== undefined) {
1654
+ if (event === 'pre_skill_shell_command' && entry.onFailure !== 'block') {
1655
+ // The guard is not in force, and nothing says the command is safe: it is not run.
1656
+ log.warn('hook could not start', { ...attrs, 'namzu.hook.error': outcome.spawnError })
1657
+ return { action: 'skip', reason: `the hook couldn't run (${outcome.spawnError})` }
1658
+ }
1586
1659
  log.warn('hook could not start', {
1587
1660
  ...attrs,
1588
1661
  'namzu.hook.error': outcome.spawnError,
@@ -1609,8 +1682,12 @@ export function shellHookVerdict(
1609
1682
  case 'elicitation':
1610
1683
  case 'elicitation_result':
1611
1684
  case 'user_prompt_expansion':
1685
+ // The command is left out of the skill text and the rest of it loads.
1686
+ case 'pre_skill_shell_command':
1612
1687
  case 'task_created':
1613
1688
  case 'task_completed':
1689
+ // A teammate that is about to go idle is sent back to work with the hook's words.
1690
+ case 'teammate_idle':
1614
1691
  return { action: 'skip', reason }
1615
1692
  // The child is starting regardless; what the hook said is its context.
1616
1693
  case 'subagent_start':
@@ -1735,6 +1812,23 @@ export function shellHookVerdict(
1735
1812
  ? { action: 'annotate', text: reading.context }
1736
1813
  : { action: 'continue' }
1737
1814
  }
1815
+ case 'pre_skill_shell_command': {
1816
+ // `continue: false` stops the whole load; a refusal drops this command only.
1817
+ if (reading.halt) {
1818
+ return {
1819
+ action: 'continue',
1820
+ halt: reading.halt,
1821
+ ...(reading.notice ? { notice: reading.notice } : {}),
1822
+ }
1823
+ }
1824
+ return reading.block !== undefined
1825
+ ? {
1826
+ action: 'skip',
1827
+ reason: reading.block,
1828
+ ...(reading.notice ? { notice: reading.notice } : {}),
1829
+ }
1830
+ : { action: 'continue', ...(reading.notice ? { notice: reading.notice } : {}) }
1831
+ }
1738
1832
  case 'pre_model_switch': {
1739
1833
  const block = reading.block ?? reading.halt?.reason
1740
1834
  if (block !== undefined) return { action: 'skip', reason: block, ...notes }
@@ -1829,6 +1923,27 @@ export function shellHookVerdict(
1829
1923
  ...(reading.notice ? { notice: reading.notice } : {}),
1830
1924
  }
1831
1925
  }
1926
+ case 'teammate_idle': {
1927
+ // Only a refusal (exit 2 or a block) keeps the member working; informational
1928
+ // context from an exit-0 hook lets it go idle.
1929
+ if (reading.halt) {
1930
+ return {
1931
+ action: 'continue',
1932
+ halt: reading.halt,
1933
+ ...(reading.notice ? { notice: reading.notice } : {}),
1934
+ }
1935
+ }
1936
+ return reading.block !== undefined
1937
+ ? {
1938
+ action: 'skip',
1939
+ reason: reading.block,
1940
+ ...(reading.notice ? { notice: reading.notice } : {}),
1941
+ }
1942
+ : {
1943
+ action: 'continue',
1944
+ ...(reading.notice ? { notice: reading.notice } : {}),
1945
+ }
1946
+ }
1832
1947
  case 'turn_end':
1833
1948
  case 'subagent_stop': {
1834
1949
  // A stop request outranks keeping the turn going.
@@ -2167,7 +2282,10 @@ export function createShellHook(
2167
2282
  event === 'session_start' ||
2168
2283
  event === 'session_end' ||
2169
2284
  event === 'directory_added' ||
2170
- event === 'instructions_loaded'
2285
+ event === 'instructions_loaded' ||
2286
+ event === 'teammate_idle' ||
2287
+ event === 'teammate_start' ||
2288
+ event === 'teammate_stop'
2171
2289
  )
2172
2290
  const subject =
2173
2291
  event === 'directory_added'
@@ -2180,11 +2298,15 @@ export function createShellHook(
2180
2298
  ? context.compaction?.trigger
2181
2299
  : event === 'subagent_start' || event === 'subagent_stop'
2182
2300
  ? context.agentType
2183
- : event === 'session_start'
2184
- ? context.source
2185
- : event === 'session_end'
2186
- ? context.endReason
2187
- : context.toolName
2301
+ : event === 'teammate_idle' ||
2302
+ event === 'teammate_start' ||
2303
+ event === 'teammate_stop'
2304
+ ? context.teammateName
2305
+ : event === 'session_start'
2306
+ ? context.source
2307
+ : event === 'session_end'
2308
+ ? context.endReason
2309
+ : context.toolName
2188
2310
  // An event that has no name to match (`turn_end`, `user_prompt_submit`,
2189
2311
  // `turn_start`, `post_tool_batch`) ignores the matcher and the hook
2190
2312
  // fires: a matcher cannot be read against a name that is not there, and
@@ -2207,6 +2329,18 @@ export function createShellHook(
2207
2329
  ) {
2208
2330
  return { action: 'continue' }
2209
2331
  }
2332
+ // What a skill is about to run is checked by a command only: a model's
2333
+ // opinion or a web request is not a guard a person can read.
2334
+ if (
2335
+ event === 'pre_skill_shell_command' &&
2336
+ entry.type !== undefined &&
2337
+ entry.type !== 'command'
2338
+ ) {
2339
+ return {
2340
+ action: 'skip',
2341
+ reason: `${entry.type} hooks don't run on pre_skill_shell_command; use a command hook`,
2342
+ }
2343
+ }
2210
2344
  if (entry.once === true && !doesTheWork) spent = true
2211
2345
  options.onRun?.({ event })
2212
2346
  const transcriptPath = options.transcriptPath?.(String(context.sessionId))
@@ -2243,7 +2377,10 @@ export function createShellHook(
2243
2377
  : {}),
2244
2378
  ...(context.instructions !== undefined ? { instructions: context.instructions } : {}),
2245
2379
  ...(context.expansion !== undefined ? { expansion: context.expansion } : {}),
2380
+ ...(context.skillShell !== undefined ? { skillShell: context.skillShell } : {}),
2246
2381
  ...(context.task !== undefined ? { task: context.task } : {}),
2382
+ ...(context.teammateName !== undefined ? { teammateName: context.teammateName } : {}),
2383
+ ...(context.teamName !== undefined ? { teamName: context.teamName } : {}),
2247
2384
  ...(options.projectDir !== undefined ? { projectDir: options.projectDir } : {}),
2248
2385
  ...(options.plugin !== undefined ? { plugin: options.plugin } : {}),
2249
2386
  sessionId: String(context.sessionId),
@@ -561,6 +561,10 @@ export function withProviderFallback(
561
561
  const serving = members[cursor] ?? first
562
562
  return serving.provider.supportsImageInputFor?.(serving.model ?? model) ?? true
563
563
  },
564
+ imageModelFor: (model: string) => {
565
+ const serving = members[cursor] ?? first
566
+ return serving.provider.imageModelFor?.(serving.model ?? model)
567
+ },
564
568
  // A chain takes a forced choice only if every member says it does: the
565
569
  // request may be served by any of them, and one that refuses (or cannot
566
570
  // say) must not be sent a choice it may turn down.
@@ -223,6 +223,9 @@ export function withStreamIdleTimeout(
223
223
  supportsImageInputFor: (model: string) => provider.supportsImageInputFor?.(model) ?? true,
224
224
  }
225
225
  : {}),
226
+ ...(provider.imageModelFor
227
+ ? { imageModelFor: (model: string) => provider.imageModelFor?.(model) }
228
+ : {}),
226
229
  ...(provider.acceptsForcedToolChoiceFor
227
230
  ? {
228
231
  acceptsForcedToolChoiceFor: (
@@ -16,6 +16,7 @@ import type { LLMProvider } from '../types/provider/interface.js'
16
16
  const MODEL_FIRST_METHODS: ReadonlySet<string> = new Set([
17
17
  'supportsHostedWebSearchFor',
18
18
  'supportsImageInputFor',
19
+ 'imageModelFor',
19
20
  'reasoningEffortLevelsFor',
20
21
  'speedTiersFor',
21
22
  'reasoningEffortDefaultFor',
@@ -435,6 +435,9 @@ export function withProviderRetry(
435
435
  supportsImageInputFor: (model: string) => provider.supportsImageInputFor?.(model) ?? true,
436
436
  }
437
437
  : {}),
438
+ ...(provider.imageModelFor
439
+ ? { imageModelFor: (model: string) => provider.imageModelFor?.(model) }
440
+ : {}),
438
441
  ...(provider.acceptsForcedToolChoiceFor
439
442
  ? {
440
443
  acceptsForcedToolChoiceFor: (
@@ -573,6 +573,43 @@ export {
573
573
  SKILL_FRONTMATTER_TOLERATED_KEYS,
574
574
  SkillCollisionError,
575
575
  SkillRegistry,
576
+ INLINE_SHELL_COMMAND_SHOWN_CHARS,
577
+ INLINE_SHELL_MAX_COMMANDS,
578
+ INLINE_SHELL_MAX_COMMAND_CHARS,
579
+ INLINE_SHELL_MAX_OUTPUT_CHARS,
580
+ INLINE_SHELL_REASON_CHARS,
581
+ InlineShellError,
582
+ SHELL_OFF_PLACEHOLDER,
583
+ SHELL_PRELOAD_PLACEHOLDER,
584
+ SHELL_REMOTE_PLACEHOLDER,
585
+ SHELL_UNTRUSTED_PLACEHOLDER,
586
+ escapeInlineShell,
587
+ expandInlineShell,
588
+ findInlineShell,
589
+ normalizeInlineShellText,
590
+ shapeShellOutput,
591
+ splitShellToolOutput,
592
+ substituteEscaped,
593
+ PRE_SKILL_SHELL_COMMAND_EVENT,
594
+ SKILL_SHELL_TOOL_NAME,
595
+ createPreToolUseShellHook,
596
+ createSkillShellHook,
597
+ createToolSkillShellHost,
598
+ skillShellOutcomeOf,
599
+ skillShellAllow,
600
+ skillShellHookVerdict,
601
+ } from './skills/index.js'
602
+ export type {
603
+ InlineShellBlock,
604
+ InlineShellHookVerdict,
605
+ InlineShellHost,
606
+ InlineShellKind,
607
+ InlineShellMarker,
608
+ InlineShellOptions,
609
+ InlineShellOutcome,
610
+ PreToolUseShellHookOptions,
611
+ SkillShellHookOptions,
612
+ ToolSkillShellHostOptions,
576
613
  } from './skills/index.js'
577
614
  // The one frontmatter reader. `loadSkill` is built on it, and a host reading
578
615
  // its own markdown — a command file, a prompt template — uses the same one
@@ -667,6 +704,8 @@ export {
667
704
  // closed), and the refusal of a task store bound to another session.
668
705
  export { selectTaskContext } from './store/task/context.js'
669
706
  export { TaskSessionMismatchError } from './store/task/disk.js'
707
+ // The task list several sessions share (teams): lock files, claim result codes, both-way dependencies.
708
+ export { FileTaskStore, TaskListError, isClaimableTaskStore } from './store/task/file.js'
670
709
  // Cross-process possession of a session: its `lease.json`. Listing what is
671
710
  // waiting (pending decisions, turns, children) is `SessionIndex`'s job, which
672
711
  // comes through `./store/session-index/index.js` at the end of this file.
@@ -1008,6 +1047,21 @@ export {
1008
1047
  isResourceNotFoundError,
1009
1048
  isUnsupportedProtocolVersionError,
1010
1049
  MCP_TASKS_EXTENSION,
1050
+ MCP_SKILLS_EXTENSION,
1051
+ MCP_SKILL_FILE,
1052
+ MCP_SKILL_LIMITS,
1053
+ MCP_SKILL_STRIPPED_KEYS,
1054
+ McpSkillLoadError,
1055
+ McpSkillSource,
1056
+ admitMcpSkillEntries,
1057
+ isMethodNotFoundError,
1058
+ loadMcpSkillBody,
1059
+ mcpSkillMetadata,
1060
+ mcpSkillServerNameProblem,
1061
+ mcpSkillStrippedKeys,
1062
+ nameMcpSkills,
1063
+ summarizeMcpSkillRefusals,
1064
+ validateMcpSkillEntry,
1011
1065
  LocalExecutionContext,
1012
1066
  mcpEraCacheKey,
1013
1067
  MCPHttpStatusError,
@@ -1046,6 +1100,18 @@ export {
1046
1100
  zodToMCPJsonSchema,
1047
1101
  } from './connector/index.js'
1048
1102
  export type {
1103
+ McpListedSkill,
1104
+ McpNamedSkill,
1105
+ McpSkillAdmission,
1106
+ McpSkillEntry,
1107
+ McpSkillEntryVerdict,
1108
+ McpSkillFile,
1109
+ McpSkillLoadFailure,
1110
+ McpSkillRefusal,
1111
+ McpSkillSourceOptions,
1112
+ McpSkillsClient,
1113
+ McpSkillsRefresh,
1114
+ McpSkillsRefreshStatus,
1049
1115
  McpEnvelope,
1050
1116
  McpEnvelopeInput,
1051
1117
  McpEraProbe,
@@ -1708,6 +1774,7 @@ export {
1708
1774
  isReviewMode,
1709
1775
  modeReviewsAllowedCalls,
1710
1776
  mustAskPerson,
1777
+ nestedCallModeRefusal,
1711
1778
  } from './runtime/query/review-policy.js'
1712
1779
  // The model that decides, in the `classify` review mode, what a person would
1713
1780
  // otherwise be asked. See `runtime/query/auto-review/`.
@@ -1886,6 +1953,9 @@ export type { SingleHandoffDeps } from './session/handoff/single.js'
1886
1953
  export type { InterventionChainLoader } from './session/intervention/prev-artifact.js'
1887
1954
  export type {
1888
1955
  ActionInput,
1956
+ BrowserWindowAnswer,
1957
+ BrowserWindowQuestion,
1958
+ BrowserWindowsSetting,
1889
1959
  ComputerUseAdvice,
1890
1960
  ComputerUseAdvisor,
1891
1961
  ComputerUseAdvisorCandidate,
@@ -2111,6 +2181,30 @@ export {
2111
2181
  udsPeerAddress,
2112
2182
  writePeerRecord,
2113
2183
  } from './peers/index.js'
2184
+ // ─── teams (@experimental) ──────────────────────────────────────────────
2185
+ //
2186
+ // Named helpers beside the main conversation: the membership file with its lock, a mailbox each, and
2187
+ // the seam a teammate runner plugs into. See `teams/index.ts`.
2188
+
2189
+ export {
2190
+ MAIL_KINDS,
2191
+ MAX_MAIL_ENTRIES,
2192
+ MAX_MAIL_TEXT_BYTES,
2193
+ MailEntrySchema,
2194
+ MailKindSchema,
2195
+ normalizeTeamName,
2196
+ TEAM_COLORS,
2197
+ TEAM_CONFIG_VERSION,
2198
+ TEAM_CREATE_GRACE_MS,
2199
+ TEAM_LEAD_NAME,
2200
+ TeamBackendKindSchema,
2201
+ TeamConfigSchema,
2202
+ TeamMemberSchema,
2203
+ TeamStore,
2204
+ TeamStoreError,
2205
+ teamNameProblem,
2206
+ teammateNameProblem,
2207
+ } from './teams/index.js'
2114
2208
  // ─── your Namzu network (@experimental) ───────────────────────────────────
2115
2209
  //
2116
2210
  // Machines of one person find each other, share a roster of sessions and
@@ -2120,6 +2214,7 @@ export {
2120
2214
  export {
2121
2215
  AUDIT_EVENTS,
2122
2216
  BROWSE_WINDOW_MS,
2217
+ COMPUTER_SECRET_FILE,
2123
2218
  DEFAULT_LISTEN_PORT,
2124
2219
  HOLD_EXPIRY_MS,
2125
2220
  HoldQueue,
@@ -2143,10 +2238,12 @@ export {
2143
2238
  createNetworkStore,
2144
2239
  createSystemGatewayReader,
2145
2240
  decideMail,
2241
+ ensureComputerSecret,
2146
2242
  evaluateMembership,
2147
2243
  formatJoinCode,
2148
2244
  generateMachineKey,
2149
2245
  generateSessionName,
2246
+ homeQualifies,
2150
2247
  isPrivateNetworkAddress,
2151
2248
  joinCode,
2152
2249
  machineLabel,
@@ -2154,6 +2251,8 @@ export {
2154
2251
  networkFingerprint,
2155
2252
  parseHostPort,
2156
2253
  privateInterfaces,
2254
+ readComputerSecret,
2255
+ resolveComputerSecret,
2157
2256
  resolveSessionTarget,
2158
2257
  sanitizeName,
2159
2258
  sanitizeRole,
@@ -84,6 +84,11 @@ export {
84
84
  } from './tools/builtins/bash.js'
85
85
  // Authorization and execution must agree after a session carries its shell cwd.
86
86
  export { effectiveBashWorkingDirectory } from './tools/builtins/bash-cwd.js'
87
+ // The same reach questions the executor asks of a nested shell call, for a host that runs one without a turn.
88
+ export {
89
+ type ShellLineEscalationContext,
90
+ shellLineEscalation,
91
+ } from './runtime/query/shell-line-escalation.js'
87
92
  export {
88
93
  CODE_ANALYSIS_TOOL_NAME,
89
94
  CodeAnalysisTool,
@@ -135,6 +140,7 @@ export type {
135
140
  SkillDirectoryRequest,
136
141
  SkillDirectoryResolver,
137
142
  SkillToolOptions,
143
+ SkillToolShellOptions,
138
144
  } from './tools/builtins/skill.js'
139
145
  // Both declare `category: 'network'`, which is what the authorization
140
146
  // presets branch on. NOT in the default builtin set: a turn with no web
@@ -172,6 +178,7 @@ export { VerifyOutputsTool } from './tools/builtins/verify-outputs.js'
172
178
  export {
173
179
  ViewImageTool,
174
180
  createViewImageTool,
181
+ inspectImageBytes,
175
182
  } from './tools/builtins/view-image.js'
176
183
  export { createPalReferenceImageTool } from './pals/reference-images.js'
177
184
  export {
@@ -184,6 +191,7 @@ export {
184
191
  STANDARD_SCREENSHOT_LIMITS,
185
192
  computerUseUnavailableReason,
186
193
  createComputerUseTool,
194
+ screenshotLimitsForModel,
187
195
  screenshotTargetSize,
188
196
  } from './tools/builtins/computer-use.js'
189
197
  // The browser contract: the two tools over a host a separate package
@@ -219,6 +227,7 @@ export {
219
227
  buildTaskListTool,
220
228
  buildTaskTools,
221
229
  buildTaskUpdateTool,
230
+ plainTaskReceipt,
222
231
  } from './tools/task/index.js'
223
232
  export { buildAdvisoryTools } from './tools/advisory/index.js'
224
233
  export {