@intentic/sandbox-contract 1.431.0 → 1.433.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 (510) hide show
  1. package/README.md +25 -3
  2. package/dist/briefs/agent-ask.d.ts +10 -0
  3. package/dist/briefs/agent-ask.d.ts.map +1 -0
  4. package/dist/briefs/agent-ask.js +2 -0
  5. package/dist/briefs/agent-ask.js.map +1 -0
  6. package/dist/{chores/extension-update.d.ts → briefs/extension-update-brief.d.ts} +1 -1
  7. package/dist/briefs/extension-update-brief.d.ts.map +1 -0
  8. package/dist/{chores/extension-update.js → briefs/extension-update-brief.js} +2 -2
  9. package/dist/briefs/extension-update-brief.js.map +1 -0
  10. package/dist/chores/digest.d.ts.map +1 -1
  11. package/dist/chores/digest.js.map +1 -1
  12. package/dist/chores/index.d.ts +2 -2
  13. package/dist/chores/index.d.ts.map +1 -1
  14. package/dist/chores/index.js +1 -1
  15. package/dist/chores/index.js.map +1 -1
  16. package/dist/chores/prompt.d.ts +1 -9
  17. package/dist/chores/prompt.d.ts.map +1 -1
  18. package/dist/chores/prompt.js +1 -1
  19. package/dist/chores/prompt.js.map +1 -1
  20. package/dist/chores/stack.d.ts.map +1 -1
  21. package/dist/chores/stack.js.map +1 -1
  22. package/dist/chores/verdict.d.ts.map +1 -1
  23. package/dist/chores/verdict.js.map +1 -1
  24. package/dist/chores/workspace-scope.d.ts +1 -3
  25. package/dist/chores/workspace-scope.d.ts.map +1 -1
  26. package/dist/chores/workspace-scope.js +1 -3
  27. package/dist/chores/workspace-scope.js.map +1 -1
  28. package/dist/contracts/agent.contract.d.ts +1049 -12
  29. package/dist/contracts/agent.contract.d.ts.map +1 -1
  30. package/dist/contracts/agents.contract.d.ts +358 -4
  31. package/dist/contracts/agents.contract.d.ts.map +1 -1
  32. package/dist/contracts/approvals.contract.d.ts +35 -0
  33. package/dist/contracts/approvals.contract.d.ts.map +1 -1
  34. package/dist/contracts/approvals.contract.js +13 -3
  35. package/dist/contracts/approvals.contract.js.map +1 -1
  36. package/dist/contracts/automations.contract.d.ts +60 -8
  37. package/dist/contracts/automations.contract.d.ts.map +1 -1
  38. package/dist/contracts/capabilities.contract.d.ts +40 -0
  39. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  40. package/dist/contracts/capabilities.contract.js +21 -0
  41. package/dist/contracts/capabilities.contract.js.map +1 -1
  42. package/dist/contracts/ci.contract.d.ts +222 -95
  43. package/dist/contracts/ci.contract.d.ts.map +1 -1
  44. package/dist/contracts/ci.contract.js +87 -26
  45. package/dist/contracts/ci.contract.js.map +1 -1
  46. package/dist/contracts/device-stacks.contract.d.ts +129 -0
  47. package/dist/contracts/device-stacks.contract.d.ts.map +1 -0
  48. package/dist/contracts/device-stacks.contract.js +66 -0
  49. package/dist/contracts/device-stacks.contract.js.map +1 -0
  50. package/dist/contracts/device.contract.d.ts +47 -0
  51. package/dist/contracts/device.contract.d.ts.map +1 -1
  52. package/dist/contracts/extensions.contract.d.ts +607 -0
  53. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  54. package/dist/contracts/extensions.contract.js +10 -1
  55. package/dist/contracts/extensions.contract.js.map +1 -1
  56. package/dist/contracts/needs.contract.d.ts +887 -18
  57. package/dist/contracts/needs.contract.d.ts.map +1 -1
  58. package/dist/contracts/offload.contract.d.ts +21 -0
  59. package/dist/contracts/offload.contract.d.ts.map +1 -1
  60. package/dist/contracts/runner.contract.d.ts +653 -40
  61. package/dist/contracts/runner.contract.d.ts.map +1 -1
  62. package/dist/contracts/seal.contract.d.ts +20 -0
  63. package/dist/contracts/seal.contract.d.ts.map +1 -1
  64. package/dist/contracts/secrets.contract.d.ts +15 -0
  65. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  66. package/dist/contracts/secrets.contract.js +21 -1
  67. package/dist/contracts/secrets.contract.js.map +1 -1
  68. package/dist/contracts/sessions.contract.d.ts +133 -2
  69. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  70. package/dist/contracts/settings.contract.d.ts +73 -42
  71. package/dist/contracts/settings.contract.d.ts.map +1 -1
  72. package/dist/contracts/settings.contract.js +18 -0
  73. package/dist/contracts/settings.contract.js.map +1 -1
  74. package/dist/contracts/stack-grants.contract.d.ts +440 -0
  75. package/dist/contracts/stack-grants.contract.d.ts.map +1 -0
  76. package/dist/contracts/stack-grants.contract.js +46 -0
  77. package/dist/contracts/stack-grants.contract.js.map +1 -0
  78. package/dist/contracts/system.contract.d.ts +191 -69
  79. package/dist/contracts/system.contract.d.ts.map +1 -1
  80. package/dist/contracts/system.contract.js +12 -42
  81. package/dist/contracts/system.contract.js.map +1 -1
  82. package/dist/contracts/workspace.contract.d.ts +0 -55
  83. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  84. package/dist/contracts/workspace.contract.js +0 -19
  85. package/dist/contracts/workspace.contract.js.map +1 -1
  86. package/dist/events/agent-events.d.ts +509 -8
  87. package/dist/events/agent-events.d.ts.map +1 -1
  88. package/dist/events/agent-transcript.d.ts +133 -2
  89. package/dist/events/agent-transcript.d.ts.map +1 -1
  90. package/dist/events/agent-words.d.ts.map +1 -1
  91. package/dist/events/agent-words.js +2 -1
  92. package/dist/events/agent-words.js.map +1 -1
  93. package/dist/events/child-news.d.ts +32 -0
  94. package/dist/events/child-news.d.ts.map +1 -0
  95. package/dist/events/child-news.js +171 -0
  96. package/dist/events/child-news.js.map +1 -0
  97. package/dist/events/prompt-origins.d.ts +42 -0
  98. package/dist/events/prompt-origins.d.ts.map +1 -1
  99. package/dist/events/prompt-origins.js +28 -0
  100. package/dist/events/prompt-origins.js.map +1 -1
  101. package/dist/events/requests.d.ts +14 -0
  102. package/dist/events/requests.d.ts.map +1 -1
  103. package/dist/events/requests.js +12 -0
  104. package/dist/events/requests.js.map +1 -1
  105. package/dist/events/system-events.d.ts +16 -0
  106. package/dist/events/system-events.d.ts.map +1 -1
  107. package/dist/events/transcript.d.ts +669 -10
  108. package/dist/events/transcript.d.ts.map +1 -1
  109. package/dist/events/transcript.js +2 -1
  110. package/dist/events/transcript.js.map +1 -1
  111. package/dist/ids/conversation-ids.d.ts.map +1 -1
  112. package/dist/ids/conversation-ids.js.map +1 -1
  113. package/dist/index.d.ts +2 -4
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.js +2 -4
  116. package/dist/index.js.map +1 -1
  117. package/dist/models/model-roles.d.ts +91 -37
  118. package/dist/models/model-roles.d.ts.map +1 -1
  119. package/dist/models/model-roles.js +106 -35
  120. package/dist/models/model-roles.js.map +1 -1
  121. package/dist/models/model-setups.d.ts +10 -8
  122. package/dist/models/model-setups.d.ts.map +1 -1
  123. package/dist/models/model-setups.js +15 -15
  124. package/dist/models/model-setups.js.map +1 -1
  125. package/dist/policy/approvals-execution.d.ts +5 -2
  126. package/dist/policy/approvals-execution.d.ts.map +1 -1
  127. package/dist/policy/approvals-execution.js +3 -4
  128. package/dist/policy/approvals-execution.js.map +1 -1
  129. package/dist/policy/batch-runs.d.ts +1 -1
  130. package/dist/policy/batch-runs.d.ts.map +1 -1
  131. package/dist/policy/batch-runs.js +2 -1
  132. package/dist/policy/batch-runs.js.map +1 -1
  133. package/dist/policy/message-limits.d.ts.map +1 -1
  134. package/dist/policy/message-limits.js.map +1 -1
  135. package/dist/policy/org-locks.d.ts +1 -1
  136. package/dist/policy/org-locks.d.ts.map +1 -1
  137. package/dist/policy/org-locks.js +1 -0
  138. package/dist/policy/org-locks.js.map +1 -1
  139. package/dist/policy/shell/workspace-root-exclude.d.ts +4 -0
  140. package/dist/policy/shell/workspace-root-exclude.d.ts.map +1 -0
  141. package/dist/policy/shell/workspace-root-exclude.js +4 -0
  142. package/dist/policy/shell/workspace-root-exclude.js.map +1 -0
  143. package/dist/protocol/doors/listener-protocol.d.ts +7 -0
  144. package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
  145. package/dist/protocol/doors/listener-protocol.js +1 -0
  146. package/dist/protocol/doors/listener-protocol.js.map +1 -1
  147. package/dist/protocol/doors/webext-links.d.ts.map +1 -1
  148. package/dist/protocol/doors/webext-links.js.map +1 -1
  149. package/dist/protocol/raw/extension-protocol.d.ts +634 -0
  150. package/dist/protocol/raw/extension-protocol.d.ts.map +1 -1
  151. package/dist/protocol/raw/extension-protocol.js +292 -0
  152. package/dist/protocol/raw/extension-protocol.js.map +1 -1
  153. package/dist/protocol/raw/raw-json-routes.d.ts +3034 -0
  154. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  155. package/dist/protocol/raw/raw-json-routes.js +39 -0
  156. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  157. package/dist/protocol/raw/raw-routes.d.ts +260 -1
  158. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  159. package/dist/protocol/raw/raw-routes.js +57 -1
  160. package/dist/protocol/raw/raw-routes.js.map +1 -1
  161. package/dist/protocol/s2s/address.d.ts +53 -0
  162. package/dist/protocol/s2s/address.d.ts.map +1 -0
  163. package/dist/protocol/s2s/address.js +111 -0
  164. package/dist/protocol/s2s/address.js.map +1 -0
  165. package/dist/protocol/s2s/attestation.d.ts +41 -0
  166. package/dist/protocol/s2s/attestation.d.ts.map +1 -0
  167. package/dist/protocol/s2s/attestation.js +96 -0
  168. package/dist/protocol/s2s/attestation.js.map +1 -0
  169. package/dist/protocol/s2s/canonical.d.ts +10 -0
  170. package/dist/protocol/s2s/canonical.d.ts.map +1 -0
  171. package/dist/protocol/s2s/canonical.js +94 -0
  172. package/dist/protocol/s2s/canonical.js.map +1 -0
  173. package/dist/protocol/s2s/envelope.d.ts +40 -0
  174. package/dist/protocol/s2s/envelope.d.ts.map +1 -0
  175. package/dist/protocol/s2s/envelope.js +116 -0
  176. package/dist/protocol/s2s/envelope.js.map +1 -0
  177. package/dist/protocol/s2s/extension-sign.d.ts +21 -0
  178. package/dist/protocol/s2s/extension-sign.d.ts.map +1 -0
  179. package/dist/protocol/s2s/extension-sign.js +41 -0
  180. package/dist/protocol/s2s/extension-sign.js.map +1 -0
  181. package/dist/protocol/s2s/identity-doc.d.ts +50 -0
  182. package/dist/protocol/s2s/identity-doc.d.ts.map +1 -0
  183. package/dist/protocol/s2s/identity-doc.js +89 -0
  184. package/dist/protocol/s2s/identity-doc.js.map +1 -0
  185. package/dist/protocol/s2s/index.d.ts +12 -0
  186. package/dist/protocol/s2s/index.d.ts.map +1 -0
  187. package/dist/protocol/s2s/index.js +12 -0
  188. package/dist/protocol/s2s/index.js.map +1 -0
  189. package/dist/protocol/s2s/kem.d.ts +15 -0
  190. package/dist/protocol/s2s/kem.d.ts.map +1 -0
  191. package/dist/protocol/s2s/kem.js +34 -0
  192. package/dist/protocol/s2s/kem.js.map +1 -0
  193. package/dist/protocol/s2s/keys.d.ts +34 -0
  194. package/dist/protocol/s2s/keys.d.ts.map +1 -0
  195. package/dist/protocol/s2s/keys.js +81 -0
  196. package/dist/protocol/s2s/keys.js.map +1 -0
  197. package/dist/protocol/s2s/passkey-cosign.d.ts +44 -0
  198. package/dist/protocol/s2s/passkey-cosign.d.ts.map +1 -0
  199. package/dist/protocol/s2s/passkey-cosign.js +139 -0
  200. package/dist/protocol/s2s/passkey-cosign.js.map +1 -0
  201. package/dist/protocol/s2s/session.d.ts +61 -0
  202. package/dist/protocol/s2s/session.d.ts.map +1 -0
  203. package/dist/protocol/s2s/session.js +98 -0
  204. package/dist/protocol/s2s/session.js.map +1 -0
  205. package/dist/protocol/s2s/sign.d.ts +12 -0
  206. package/dist/protocol/s2s/sign.d.ts.map +1 -0
  207. package/dist/protocol/s2s/sign.js +33 -0
  208. package/dist/protocol/s2s/sign.js.map +1 -0
  209. package/dist/schemas/activity.d.ts.map +1 -1
  210. package/dist/schemas/activity.js.map +1 -1
  211. package/dist/schemas/agent.d.ts +4 -0
  212. package/dist/schemas/agent.d.ts.map +1 -1
  213. package/dist/schemas/agent.js +4 -2
  214. package/dist/schemas/agent.js.map +1 -1
  215. package/dist/schemas/agents-list.d.ts +8 -0
  216. package/dist/schemas/agents-list.d.ts.map +1 -1
  217. package/dist/schemas/agents.d.ts +16 -0
  218. package/dist/schemas/agents.d.ts.map +1 -1
  219. package/dist/schemas/approvals.d.ts +100 -0
  220. package/dist/schemas/approvals.d.ts.map +1 -1
  221. package/dist/schemas/approvals.js +21 -0
  222. package/dist/schemas/approvals.js.map +1 -1
  223. package/dist/schemas/automations.d.ts +89 -27
  224. package/dist/schemas/automations.d.ts.map +1 -1
  225. package/dist/schemas/automations.js +15 -33
  226. package/dist/schemas/automations.js.map +1 -1
  227. package/dist/schemas/capabilities.d.ts +1 -0
  228. package/dist/schemas/capabilities.d.ts.map +1 -1
  229. package/dist/schemas/ci-deployments.d.ts +30 -0
  230. package/dist/schemas/ci-deployments.d.ts.map +1 -0
  231. package/dist/schemas/ci-deployments.js +18 -0
  232. package/dist/schemas/ci-deployments.js.map +1 -0
  233. package/dist/schemas/ci.d.ts +348 -21
  234. package/dist/schemas/ci.d.ts.map +1 -1
  235. package/dist/schemas/ci.js +110 -19
  236. package/dist/schemas/ci.js.map +1 -1
  237. package/dist/schemas/command-admission.d.ts +6 -0
  238. package/dist/schemas/command-admission.d.ts.map +1 -1
  239. package/dist/schemas/command-admission.js +2 -1
  240. package/dist/schemas/command-admission.js.map +1 -1
  241. package/dist/schemas/command-run.d.ts +29 -0
  242. package/dist/schemas/command-run.d.ts.map +1 -0
  243. package/dist/schemas/command-run.js +20 -0
  244. package/dist/schemas/command-run.js.map +1 -0
  245. package/dist/schemas/contact-need.d.ts +50 -0
  246. package/dist/schemas/contact-need.d.ts.map +1 -0
  247. package/dist/schemas/contact-need.js +19 -0
  248. package/dist/schemas/contact-need.js.map +1 -0
  249. package/dist/schemas/contacts-settings.d.ts +5 -0
  250. package/dist/schemas/contacts-settings.d.ts.map +1 -0
  251. package/dist/schemas/contacts-settings.js +11 -0
  252. package/dist/schemas/contacts-settings.js.map +1 -0
  253. package/dist/schemas/data-protection.d.ts +15 -2
  254. package/dist/schemas/data-protection.d.ts.map +1 -1
  255. package/dist/schemas/data-protection.js +15 -23
  256. package/dist/schemas/data-protection.js.map +1 -1
  257. package/dist/schemas/device-stacks.d.ts +131 -0
  258. package/dist/schemas/device-stacks.d.ts.map +1 -1
  259. package/dist/schemas/device-stacks.js +81 -0
  260. package/dist/schemas/device-stacks.js.map +1 -1
  261. package/dist/schemas/devices.d.ts +73 -0
  262. package/dist/schemas/devices.d.ts.map +1 -1
  263. package/dist/schemas/devices.js +6 -2
  264. package/dist/schemas/devices.js.map +1 -1
  265. package/dist/schemas/extension-updates.d.ts +1192 -0
  266. package/dist/schemas/extension-updates.d.ts.map +1 -1
  267. package/dist/schemas/extension-updates.js +18 -4
  268. package/dist/schemas/extension-updates.js.map +1 -1
  269. package/dist/schemas/host-power.d.ts +22 -0
  270. package/dist/schemas/host-power.d.ts.map +1 -1
  271. package/dist/schemas/host-power.js +55 -0
  272. package/dist/schemas/host-power.js.map +1 -1
  273. package/dist/schemas/hosts.d.ts +226 -0
  274. package/dist/schemas/hosts.d.ts.map +1 -1
  275. package/dist/schemas/hosts.js +24 -0
  276. package/dist/schemas/hosts.js.map +1 -1
  277. package/dist/schemas/issues.d.ts +37 -249
  278. package/dist/schemas/issues.d.ts.map +1 -1
  279. package/dist/schemas/issues.js +10 -43
  280. package/dist/schemas/issues.js.map +1 -1
  281. package/dist/schemas/links.d.ts +8 -0
  282. package/dist/schemas/links.d.ts.map +1 -1
  283. package/dist/schemas/links.js +4 -0
  284. package/dist/schemas/links.js.map +1 -1
  285. package/dist/schemas/maintenance.d.ts.map +1 -1
  286. package/dist/schemas/maintenance.js.map +1 -1
  287. package/dist/schemas/metrics.d.ts +25 -0
  288. package/dist/schemas/metrics.d.ts.map +1 -1
  289. package/dist/schemas/metrics.js +18 -0
  290. package/dist/schemas/metrics.js.map +1 -1
  291. package/dist/schemas/need-kinds.d.ts +20 -0
  292. package/dist/schemas/need-kinds.d.ts.map +1 -0
  293. package/dist/schemas/need-kinds.js +7 -0
  294. package/dist/schemas/need-kinds.js.map +1 -0
  295. package/dist/schemas/needs.d.ts +666 -30
  296. package/dist/schemas/needs.d.ts.map +1 -1
  297. package/dist/schemas/needs.js +29 -6
  298. package/dist/schemas/needs.js.map +1 -1
  299. package/dist/schemas/offload.d.ts +52 -0
  300. package/dist/schemas/offload.d.ts.map +1 -1
  301. package/dist/schemas/offload.js +12 -0
  302. package/dist/schemas/offload.js.map +1 -1
  303. package/dist/schemas/outward-action.d.ts +39 -0
  304. package/dist/schemas/outward-action.d.ts.map +1 -0
  305. package/dist/schemas/outward-action.js +40 -0
  306. package/dist/schemas/outward-action.js.map +1 -0
  307. package/dist/schemas/providers/plan-limits.d.ts +1 -0
  308. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  309. package/dist/schemas/providers/plan-limits.js +1 -0
  310. package/dist/schemas/providers/plan-limits.js.map +1 -1
  311. package/dist/schemas/redirect-need.d.ts +15 -0
  312. package/dist/schemas/redirect-need.d.ts.map +1 -0
  313. package/dist/schemas/redirect-need.js +14 -0
  314. package/dist/schemas/redirect-need.js.map +1 -0
  315. package/dist/schemas/s2s-identity.d.ts +521 -0
  316. package/dist/schemas/s2s-identity.d.ts.map +1 -0
  317. package/dist/schemas/s2s-identity.js +208 -0
  318. package/dist/schemas/s2s-identity.js.map +1 -0
  319. package/dist/schemas/s2s-views.d.ts +2127 -0
  320. package/dist/schemas/s2s-views.d.ts.map +1 -0
  321. package/dist/schemas/s2s-views.js +217 -0
  322. package/dist/schemas/s2s-views.js.map +1 -0
  323. package/dist/schemas/s2s-wire.d.ts +1616 -0
  324. package/dist/schemas/s2s-wire.d.ts.map +1 -0
  325. package/dist/schemas/s2s-wire.js +276 -0
  326. package/dist/schemas/s2s-wire.js.map +1 -0
  327. package/dist/schemas/s2s.d.ts +5 -0
  328. package/dist/schemas/s2s.d.ts.map +1 -0
  329. package/dist/schemas/s2s.js +5 -0
  330. package/dist/schemas/s2s.js.map +1 -0
  331. package/dist/schemas/secrets.d.ts +17 -0
  332. package/dist/schemas/secrets.d.ts.map +1 -1
  333. package/dist/schemas/secrets.js +12 -5
  334. package/dist/schemas/secrets.js.map +1 -1
  335. package/dist/schemas/settings-history.d.ts +1 -1
  336. package/dist/schemas/settings-history.d.ts.map +1 -1
  337. package/dist/schemas/settings-history.js +5 -4
  338. package/dist/schemas/settings-history.js.map +1 -1
  339. package/dist/schemas/settings-savings.d.ts +58 -0
  340. package/dist/schemas/settings-savings.d.ts.map +1 -1
  341. package/dist/schemas/settings-savings.js +22 -0
  342. package/dist/schemas/settings-savings.js.map +1 -1
  343. package/dist/schemas/settings.d.ts +18 -42
  344. package/dist/schemas/settings.d.ts.map +1 -1
  345. package/dist/schemas/settings.js +7 -6
  346. package/dist/schemas/settings.js.map +1 -1
  347. package/dist/schemas/stack-grants.d.ts +60 -0
  348. package/dist/schemas/stack-grants.d.ts.map +1 -0
  349. package/dist/schemas/stack-grants.js +33 -0
  350. package/dist/schemas/stack-grants.js.map +1 -0
  351. package/dist/schemas/terminal.d.ts +2 -0
  352. package/dist/schemas/terminal.d.ts.map +1 -1
  353. package/dist/schemas/terminal.js +4 -0
  354. package/dist/schemas/terminal.js.map +1 -1
  355. package/dist/schemas/vpn.d.ts +4 -0
  356. package/dist/schemas/vpn.d.ts.map +1 -1
  357. package/dist/schemas/vpn.js +9 -0
  358. package/dist/schemas/vpn.js.map +1 -1
  359. package/dist/schemas/watch-sources.d.ts +72 -0
  360. package/dist/schemas/watch-sources.d.ts.map +1 -0
  361. package/dist/schemas/watch-sources.js +88 -0
  362. package/dist/schemas/watch-sources.js.map +1 -0
  363. package/dist/schemas/workspace/workspace-search.d.ts.map +1 -1
  364. package/dist/schemas/workspace/workspace-search.js +1 -1
  365. package/dist/schemas/workspace/workspace-search.js.map +1 -1
  366. package/dist/schemas/wsl-memory.d.ts +76 -0
  367. package/dist/schemas/wsl-memory.d.ts.map +1 -0
  368. package/dist/schemas/wsl-memory.js +36 -0
  369. package/dist/schemas/wsl-memory.js.map +1 -0
  370. package/dist/state/auth-state.d.ts.map +1 -1
  371. package/dist/state/auth-state.js +8 -0
  372. package/dist/state/auth-state.js.map +1 -1
  373. package/dist/state/definition.d.ts +22 -8
  374. package/dist/state/definition.d.ts.map +1 -1
  375. package/dist/state/workspace-state.d.ts +8 -3
  376. package/dist/state/workspace-state.d.ts.map +1 -1
  377. package/dist/state/workspace-state.js +8 -3
  378. package/dist/state/workspace-state.js.map +1 -1
  379. package/package.json +20 -5
  380. package/src/briefs/agent-ask.ts +23 -0
  381. package/src/{chores/extension-update.ts → briefs/extension-update-brief.ts} +3 -2
  382. package/src/chores/digest.ts +1 -0
  383. package/src/chores/index.ts +13 -2
  384. package/src/chores/prompt.ts +3 -18
  385. package/src/chores/stack.ts +1 -0
  386. package/src/chores/verdict.ts +1 -0
  387. package/src/chores/workspace-scope.ts +3 -8
  388. package/src/contracts/approvals.contract.ts +24 -3
  389. package/src/contracts/capabilities.contract.ts +24 -0
  390. package/src/contracts/ci.contract.ts +119 -37
  391. package/src/contracts/device-stacks.contract.ts +97 -0
  392. package/src/contracts/extensions.contract.ts +11 -0
  393. package/src/contracts/secrets.contract.ts +27 -0
  394. package/src/contracts/settings.contract.ts +24 -0
  395. package/src/contracts/stack-grants.contract.ts +51 -0
  396. package/src/contracts/system.contract.ts +16 -59
  397. package/src/contracts/workspace.contract.ts +0 -22
  398. package/src/events/agent-words.ts +3 -1
  399. package/src/events/child-news.test.ts +91 -0
  400. package/src/events/child-news.ts +269 -0
  401. package/src/events/prompt-origins.ts +35 -0
  402. package/src/events/requests.ts +18 -0
  403. package/src/events/transcript.ts +10 -1
  404. package/src/ids/conversation-ids.test.ts +22 -3
  405. package/src/ids/conversation-ids.ts +5 -7
  406. package/src/index.ts +3 -6
  407. package/src/models/model-roles.test.ts +61 -4
  408. package/src/models/model-roles.ts +153 -49
  409. package/src/models/model-setups.ts +49 -26
  410. package/src/policy/approvals-execution.ts +11 -6
  411. package/src/policy/batch-runs.ts +2 -2
  412. package/src/policy/message-limits.ts +8 -4
  413. package/src/policy/org-locks.ts +1 -0
  414. package/src/policy/shell/workspace-root-exclude.ts +11 -0
  415. package/src/protocol/doors/listener-protocol.ts +14 -0
  416. package/src/protocol/doors/webext-links.ts +3 -1
  417. package/src/protocol/ingress-contract.fixture.json +6 -1
  418. package/src/protocol/raw/extension-protocol.ts +513 -2
  419. package/src/protocol/raw/raw-json-routes.ts +85 -0
  420. package/src/protocol/raw/raw-routes.ts +111 -7
  421. package/src/protocol/s2s/address.test.ts +157 -0
  422. package/src/protocol/s2s/address.ts +193 -0
  423. package/src/protocol/s2s/attestation.test.ts +262 -0
  424. package/src/protocol/s2s/attestation.ts +173 -0
  425. package/src/protocol/s2s/canonical.test.ts +70 -0
  426. package/src/protocol/s2s/canonical.ts +119 -0
  427. package/src/protocol/s2s/envelope.test.ts +162 -0
  428. package/src/protocol/s2s/envelope.ts +194 -0
  429. package/src/protocol/s2s/extension-sign.test.ts +117 -0
  430. package/src/protocol/s2s/extension-sign.ts +76 -0
  431. package/src/protocol/s2s/identity-doc.test.ts +187 -0
  432. package/src/protocol/s2s/identity-doc.ts +169 -0
  433. package/src/protocol/s2s/index.ts +15 -0
  434. package/src/protocol/s2s/kem.ts +62 -0
  435. package/src/protocol/s2s/keys.test.ts +76 -0
  436. package/src/protocol/s2s/keys.ts +155 -0
  437. package/src/protocol/s2s/passkey-cosign.test.ts +98 -0
  438. package/src/protocol/s2s/passkey-cosign.testing.ts +86 -0
  439. package/src/protocol/s2s/passkey-cosign.ts +192 -0
  440. package/src/protocol/s2s/s2s.testing.ts +22 -0
  441. package/src/protocol/s2s/session.test.ts +133 -0
  442. package/src/protocol/s2s/session.ts +179 -0
  443. package/src/protocol/s2s/sign.test.ts +66 -0
  444. package/src/protocol/s2s/sign.ts +53 -0
  445. package/src/schemas/activity.ts +2 -1
  446. package/src/schemas/agent.test.ts +3 -0
  447. package/src/schemas/agent.ts +10 -4
  448. package/src/schemas/approvals.ts +41 -0
  449. package/src/schemas/automations.ts +26 -41
  450. package/src/schemas/ci-deployments.ts +26 -0
  451. package/src/schemas/ci.ts +185 -45
  452. package/src/schemas/command-admission.ts +4 -1
  453. package/src/schemas/command-run.ts +44 -0
  454. package/src/schemas/contact-need.ts +26 -0
  455. package/src/schemas/contacts-settings.ts +16 -0
  456. package/src/schemas/data-protection.ts +28 -34
  457. package/src/schemas/device-stacks.ts +162 -3
  458. package/src/schemas/devices.ts +13 -2
  459. package/src/schemas/extension-updates.ts +27 -7
  460. package/src/schemas/host-power.test.ts +53 -0
  461. package/src/schemas/host-power.ts +96 -2
  462. package/src/schemas/hosts.test.ts +32 -0
  463. package/src/schemas/hosts.ts +62 -0
  464. package/src/schemas/issues.ts +30 -86
  465. package/src/schemas/links.ts +4 -0
  466. package/src/schemas/maintenance.ts +4 -3
  467. package/src/schemas/metrics.ts +35 -0
  468. package/src/schemas/need-kinds.ts +13 -0
  469. package/src/schemas/needs.ts +44 -16
  470. package/src/schemas/offload.ts +31 -0
  471. package/src/schemas/outward-action.ts +47 -0
  472. package/src/schemas/providers/plan-limits.ts +1 -0
  473. package/src/schemas/redirect-need.ts +19 -0
  474. package/src/schemas/s2s-identity.ts +329 -0
  475. package/src/schemas/s2s-views.ts +326 -0
  476. package/src/schemas/s2s-wire.ts +401 -0
  477. package/src/schemas/s2s.test.ts +175 -0
  478. package/src/schemas/s2s.ts +9 -0
  479. package/src/schemas/secrets.ts +23 -5
  480. package/src/schemas/settings-history.ts +10 -5
  481. package/src/schemas/settings-savings.ts +29 -0
  482. package/src/schemas/settings.test.ts +23 -23
  483. package/src/schemas/settings.ts +12 -12
  484. package/src/schemas/stack-grants.ts +59 -0
  485. package/src/schemas/terminal.ts +6 -0
  486. package/src/schemas/version-seam.test.ts +13 -1
  487. package/src/schemas/vpn.ts +13 -0
  488. package/src/schemas/watch-sources.ts +127 -0
  489. package/src/schemas/workspace/workspace-search.ts +5 -2
  490. package/src/schemas/wsl-memory.ts +59 -0
  491. package/src/state/auth-state.ts +17 -0
  492. package/src/state/workspace-state.ts +18 -18
  493. package/src/text/embed.ts +2 -2
  494. package/dist/chores/extension-update.d.ts.map +0 -1
  495. package/dist/chores/extension-update.js.map +0 -1
  496. package/dist/contracts/chores.contract.d.ts +0 -213
  497. package/dist/contracts/chores.contract.d.ts.map +0 -1
  498. package/dist/contracts/chores.contract.js +0 -32
  499. package/dist/contracts/chores.contract.js.map +0 -1
  500. package/dist/contracts/issues.contract.d.ts +0 -106
  501. package/dist/contracts/issues.contract.d.ts.map +0 -1
  502. package/dist/contracts/issues.contract.js +0 -50
  503. package/dist/contracts/issues.contract.js.map +0 -1
  504. package/src/chores/chores.test.ts +0 -24
  505. package/src/chores/digest.test.ts +0 -27
  506. package/src/chores/probes.integration.test.ts +0 -494
  507. package/src/chores/stack.test.ts +0 -140
  508. package/src/chores/verdict.test.ts +0 -761
  509. package/src/contracts/chores.contract.ts +0 -39
  510. package/src/contracts/issues.contract.ts +0 -53
@@ -1,20 +1,33 @@
1
1
  import { procedure } from "../protocol/route-meta.js";
2
2
  import {
3
- CiFixParamSchema,
4
- CiFixResponseSchema,
5
- CiForgetParamSchema,
3
+ CiDeploymentAnswerSchema,
4
+ CiDeploymentReportSchema,
5
+ CiFailedStepsResponseSchema,
6
+ CiJobAnnotationsResponseSchema,
7
+ CiJobLogResponseSchema,
8
+ CiJobParamSchema,
6
9
  CiJobsResponseSchema,
7
- CiMainResponseSchema,
10
+ CiLocalMainResponseSchema,
11
+ CiMainLineClaimSchema,
12
+ CiMainLinesResponseSchema,
13
+ CiPassedJobsResponseSchema,
14
+ CiRepairHandOverSchema,
15
+ CiRunListParamSchema,
16
+ CiRunListResponseSchema,
8
17
  CiRunParamSchema,
18
+ CiRunResponseSchema,
9
19
  CiRunsResponseSchema,
20
+ CiRunWorkflowResponseSchema,
10
21
  } from "../schemas/ci.js";
11
22
  import { OkSchema } from "../schemas/shared.js";
12
23
 
13
- // Pipelines on the workspace repos' github/gitlab remotes. `runs` serves the Pipelines rail view (cache +
14
- // on-demand backfill; per-repo webhook warnings ride along); `rerun`/`cancel` proxy to the vendor; `fix`
15
- // opens an isolated agent conversation seeded with the failure context. The public webhook receiver
16
- // (/ci/webhook/:host) is a plain Hono route, vendors can't do Google ID tokens, so it lives outside this
17
- // contract, like /automations/{id}/fire.
24
+ // Pipelines on the workspace repos' github/gitlab remotes: CI ingestion, the core's (docs/architecture/core-and-
25
+ // extensions.md). `runs` serves what the forges report (cache + on-demand backfill; per-repo webhook warnings ride along);
26
+ // `rerun`/`cancel`/`dispatch` proxy to the vendor; the forge reads below them are what the pipelines extension's backend
27
+ // (main's fix agent and the Pipelines board) reads through the core's clients and credentials. (2026-11-26) Main's fix
28
+ // agent, `GET /ci/main`, `POST /ci/failures/forget` and `POST /ci/fix` moved to that backend. The public webhook receiver
29
+ // (/ci/webhook/:host) is a plain Hono route, vendors can't do Google ID tokens, so it lives outside this contract, like
30
+ // /automations/{id}/fire.
18
31
  export const ciContract = {
19
32
  runs: procedure
20
33
  .route({
@@ -25,18 +38,6 @@ export const ciContract = {
25
38
  "What the forges are reporting for every workspace repo that has a remote, served from a cache and filled in on demand. Repos whose notifications are not wired up say so.",
26
39
  })
27
40
  .output(CiRunsResponseSchema),
28
- // The agent token reaches it (`agents ci`): what an agent meeting a failure asks before blaming itself or re-running
29
- // main. Read from the CI store alone, never the forge, so any number of agents asking costs no API call.
30
- main: procedure
31
- .route({
32
- method: "GET",
33
- path: "/ci/main",
34
- summary: "What main's CI is known to fail on now",
35
- description:
36
- "Each job failing on a workspace repository's main line, with the run and commit it last failed in, when the daemon read it, and the failing tests and errors its log named. Answered from the runs already heard, without asking the forge; a main line nothing is known of says so.",
37
- })
38
- .meta({ agent: true })
39
- .output(CiMainResponseSchema),
40
41
  rerun: procedure
41
42
  .route({
42
43
  method: "POST",
@@ -65,33 +66,114 @@ export const ciContract = {
65
66
  })
66
67
  .input(CiRunParamSchema)
67
68
  .output(OkSchema),
68
- forget: procedure
69
+ jobs: procedure
69
70
  .route({
70
71
  method: "POST",
71
- path: "/ci/failures/forget",
72
- summary: "Stop tracking a failing workflow on a main-line branch",
72
+ path: "/ci/runs/jobs",
73
+ summary: "The steps inside one pipeline run",
73
74
  description:
74
- "Takes one workflow off the branch's failure, or the whole failure when none is named, without waiting for a run to pass. For a workflow that will not run again, or a failure that is not the code's.",
75
+ "Each job in a run with its outcome, which is where you look to find out what actually broke. The jobs as the forge reports them; the Pipelines board draws their graph from the run's workflow file.",
75
76
  })
76
- .input(CiForgetParamSchema)
77
+ .input(CiRunParamSchema)
78
+ .output(CiJobsResponseSchema),
79
+ // (2026-11-26) The forge's word on one run or job, asked now through the core's client (schemas/ci.ts): what main's
80
+ // fix agent reads of a failure, and the board of a run's graph.
81
+ list: procedure
82
+ .route({ method: "POST", path: "/ci/runs/list", summary: "A repository's newest runs", description: "Its newest runs, asked of the forge now rather than read from the cache." })
83
+ .input(CiRunListParamSchema)
84
+ .output(CiRunListResponseSchema),
85
+ run: procedure
86
+ .route({ method: "POST", path: "/ci/runs/run", summary: "One pipeline run", description: "One run as the forge says it is now." })
87
+ .input(CiRunParamSchema)
88
+ .output(CiRunResponseSchema),
89
+ failedSteps: procedure
90
+ .route({
91
+ method: "POST",
92
+ path: "/ci/runs/failed-steps",
93
+ summary: "The failed jobs of one run",
94
+ description: "Each job of the run that failed, with the steps that failed it, the forge's reason and its runner, in the run's order. A job allowed to fail is none of them.",
95
+ })
96
+ .input(CiRunParamSchema)
97
+ .output(CiFailedStepsResponseSchema),
98
+ passedJobs: procedure
99
+ .route({ method: "POST", path: "/ci/runs/passed-jobs", summary: "The passed jobs of one run", description: "The names of the run's jobs that passed." })
100
+ .input(CiRunParamSchema)
101
+ .output(CiPassedJobsResponseSchema),
102
+ rerunFailed: procedure
103
+ .route({ method: "POST", path: "/ci/runs/rerun-failed", summary: "Run a pipeline's failed jobs again", description: "Asks the forge to re-run only the run's failed jobs." })
104
+ .input(CiRunParamSchema)
77
105
  .output(OkSchema),
78
- jobs: procedure
106
+ workflow: procedure
79
107
  .route({
80
108
  method: "POST",
81
- path: "/ci/runs/jobs",
82
- summary: "The steps inside one pipeline run",
83
- description: "Each job in a run with its outcome, which is where you look to find out what actually broke.",
109
+ path: "/ci/runs/workflow",
110
+ summary: "The workflow file a run ran",
111
+ description: "The run's workflow file at its commit and every reusable workflow it calls that could be read: what its job graph is drawn from. Empty on a forge without one.",
84
112
  })
85
113
  .input(CiRunParamSchema)
86
- .output(CiJobsResponseSchema),
87
- fix: procedure
114
+ .output(CiRunWorkflowResponseSchema),
115
+ jobLog: procedure
116
+ .route({ method: "POST", path: "/ci/jobs/log", summary: "One job's log", description: "The job's whole log as plain text, asked of the forge now." })
117
+ .input(CiJobParamSchema)
118
+ .output(CiJobLogResponseSchema),
119
+ jobAnnotations: procedure
120
+ .route({ method: "POST", path: "/ci/jobs/annotations", summary: "One job's annotations", description: "What the job's check run annotations say, where the forge has them." })
121
+ .input(CiJobParamSchema)
122
+ .output(CiJobAnnotationsResponseSchema),
123
+ mainLines: procedure
124
+ .route({
125
+ method: "GET",
126
+ path: "/ci/main-lines",
127
+ summary: "Each repository's main line",
128
+ description: "Every repository wired to CI and which branch is its main line: the forge's default branch, else the clone's, else main and master both.",
129
+ })
130
+ .output(CiMainLinesResponseSchema),
131
+ // (2026-11-26) Only an extension's own token: the claim is the calling extension's (ci/main-line-claims.ts).
132
+ claimMainLines: procedure
133
+ .route({
134
+ method: "POST",
135
+ path: "/ci/main-lines/claim",
136
+ summary: "Take main lines' failures for an extension",
137
+ description:
138
+ "While the calling extension holds the claim and is switched on, a main line's failure reaches no CI automation listening on every branch, so the extension's own fix agent is the one agent on it. An extension's own token only.",
139
+ })
140
+ .meta({ control: "never", panel: false })
141
+ .input(CiMainLineClaimSchema)
142
+ .output(OkSchema),
143
+ // (2026-11-26) What main's repair kept while it was the daemon's, handed to the extension taking it over, once.
144
+ handOverRepair: procedure
145
+ .route({
146
+ method: "POST",
147
+ path: "/ci/repair/hand-over",
148
+ summary: "Hand main's repair state to an extension",
149
+ description:
150
+ "What the sandbox kept about main's failing CI before its repair moved into an extension: each failing main line with its fix agent and turn counts, the passes, the fleet re-runs and the owner steps. The fix agents' runs become the calling extension's to hear, and an owner's switch that turned repairs off becomes its own setting of the same name. An extension's own token only.",
151
+ })
152
+ .meta({ control: "never", panel: false })
153
+ .output(CiRepairHandOverSchema),
154
+ // The agent token reaches it (`agents ci`): beside main's CI, which the pipelines extension follows, what this
155
+ // sandbox's own test runs saw fail at main commits (output-cleaners' test outcomes, under the history root).
156
+ localMain: procedure
157
+ .route({
158
+ method: "GET",
159
+ path: "/ci/main/local",
160
+ summary: "What this sandbox's own test runs saw fail at main",
161
+ description:
162
+ "What the test runs recorded on clean trees at main commits saw fail, newest main commit per repository, suites CI does not run included: rows, and the same in words.",
163
+ })
164
+ .meta({ agent: true })
165
+ .output(CiLocalMainResponseSchema),
166
+ // (2026-11-25) A deployment told to the repository's forge (schemas/ci.ts CiDeploymentReportSchema): how the
167
+ // Deployments extension shows a managed stack's deploys on GitHub or GitLab, through the CI board's own connection.
168
+ reportDeployment: procedure
88
169
  .route({
89
170
  method: "POST",
90
- path: "/ci/fix",
91
- summary: "Put an agent on a broken pipeline",
171
+ path: "/ci/deployments",
172
+ summary: "Tell the forge a commit was deployed",
92
173
  description:
93
- "Opens a fresh isolated conversation already holding the failure: which job, which repo, what it said. The answer names the conversation so you can open it.",
174
+ "Shows on the repository's forge that a commit went to an environment and how it is going: a Deployment and its statuses on GitHub, a `deploy/<environment>` commit status on GitLab. A token without the scope is refused in the forge's own words.",
94
175
  })
95
- .input(CiFixParamSchema)
96
- .output(CiFixResponseSchema),
176
+ .meta({ control: "never", panel: false })
177
+ .input(CiDeploymentReportSchema)
178
+ .output(CiDeploymentAnswerSchema),
97
179
  };
@@ -0,0 +1,97 @@
1
+ import { procedure } from "../protocol/route-meta.js";
2
+ import {
3
+ DeviceHostStatsInputSchema,
4
+ DeviceStackDeployInputSchema,
5
+ DeviceStackDeployResultSchema,
6
+ DeviceStackLogsInputSchema,
7
+ DeviceStackManagedDeployInputSchema,
8
+ DeviceStackManagedDeployResultSchema,
9
+ DeviceStackOpInputSchema,
10
+ DeviceStacksInputSchema,
11
+ DeviceStacksSchema,
12
+ HostStatsSchema,
13
+ StackLogsSchema,
14
+ StackOpResultSchema,
15
+ } from "../schemas/device-stacks.js";
16
+
17
+ // DOCKER COMPOSE STACKS ON A CONNECTED COMPUTER (schemas/device-stacks.ts): what the Deployments board reads and drives
18
+ // where no Komodo stands between, and the managed deploy its engine stands on. Part of the system contract
19
+ // (system.contract.ts spreads these in), kept in a module of their own as the device boards grow.
20
+
21
+ // The box itself, as every system route: no control token reaches these whatever the floor.
22
+ const systemRoute = procedure.meta({ control: "never" });
23
+
24
+ export const deviceStackRoutes = {
25
+ deviceStacks: systemRoute
26
+ .route({
27
+ method: "GET",
28
+ path: "/system/devices/{id}/stacks",
29
+ summary: "The Docker compose stacks on one of your devices",
30
+ description:
31
+ "Every Docker compose project on a computer you connected, with each service's container, image and state, and the folder this sandbox deploys stacks into there. Intentic's own sandboxes are marked rather than left out. Needs that computer's \"Run commands\" switch.",
32
+ })
33
+ .meta({ floor: "maintainer", panel: false })
34
+ .input(DeviceStacksInputSchema)
35
+ .output(DeviceStacksSchema),
36
+ // Up, restart, start, stop, or pull-then-up; nothing here removes a stack or a volume.
37
+ deviceStackOp: systemRoute
38
+ .route({
39
+ method: "POST",
40
+ path: "/system/devices/{id}/stacks/{name}/ops/{op}",
41
+ summary: "Start, stop, restart or update a stack on one of your devices",
42
+ description:
43
+ "Runs `docker compose` for one stack on a computer you connected: `up` applies its files, `pull` fetches newer images and then applies, and `restart`, `start` and `stop` do what they say. Nothing here removes a stack or its volumes. Needs that computer's \"Run commands\" switch.",
44
+ })
45
+ .meta({ panel: false })
46
+ .input(DeviceStackOpInputSchema)
47
+ .output(StackOpResultSchema),
48
+ // Floored like the actions, though it only reads: a log can hold anything the service printed.
49
+ deviceStackLogs: systemRoute
50
+ .route({
51
+ method: "GET",
52
+ path: "/system/devices/{id}/stacks/{name}/logs",
53
+ summary: "The recent log of a stack on one of your devices",
54
+ description: "The last lines every service of one compose stack printed, oldest first, as `docker compose logs` gives them.",
55
+ })
56
+ .meta({ floor: "maintainer", panel: false })
57
+ .input(DeviceStackLogsInputSchema)
58
+ .output(StackLogsSchema),
59
+ // The repository's committed tree, packed here, carried over the device link and brought up there with `--build`.
60
+ deployDeviceStack: systemRoute
61
+ .route({
62
+ method: "POST",
63
+ path: "/system/devices/{id}/stacks/{name}/deploy",
64
+ summary: "Deploy a workspace repository to one of your devices",
65
+ description:
66
+ "Packs the committed tree (HEAD) of a workspace repository, carries it to a computer you connected and runs it there as a Docker compose stack of the given name, building its images on that computer. Uncommitted changes are not deployed. A `.env` already in the stack's folder there is kept: secrets are placed into it by an agent, never sent with a deploy. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches.",
67
+ })
68
+ .meta({ panel: false })
69
+ .input(DeviceStackDeployInputSchema)
70
+ .output(DeviceStackDeployResultSchema),
71
+ // (2026-11-25) A MANAGED deploy (schemas/device-stacks.ts): the Deployments extension's engine sends the stack's
72
+ // definition with `{{secret:…}}` references, and the daemon fills them under the stack's grant (stack-grants.ts),
73
+ // packs the repository at the commit and relays the machine's deploy. The one door through which a secret's value
74
+ // reaches a server unattended; no value comes back.
75
+ deployManagedDeviceStack: systemRoute
76
+ .route({
77
+ method: "POST",
78
+ path: "/system/devices/{id}/stacks/{name}/deploy-managed",
79
+ summary: "Deploy a managed stack to one of your devices",
80
+ description:
81
+ "Deploys a workspace repository at a commit to a computer you connected as a Docker compose stack, writing its `.env` and registry logins there with the secret values the stack was granted, and waits for it to come up healthy. Refused, naming the secrets, when the stack's grant does not cover one it reads. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches and an agent that manages stacks.",
82
+ })
83
+ .meta({ floor: "maintainer", panel: false })
84
+ .input(DeviceStackManagedDeployInputSchema)
85
+ .output(DeviceStackManagedDeployResultSchema),
86
+ // Disk, memory and load of a connected computer, for the Deployments monitor's alerts.
87
+ deviceHostStats: systemRoute
88
+ .route({
89
+ method: "GET",
90
+ path: "/system/devices/{id}/host-stats",
91
+ summary: "Disk, memory and load on one of your devices",
92
+ description: "Free space under Docker's data root and the stacks folder, available memory, load and CPU count. Needs that computer's \"Run commands\" switch.",
93
+ })
94
+ .meta({ floor: "maintainer", panel: false })
95
+ .input(DeviceHostStatsInputSchema)
96
+ .output(HostStatsSchema),
97
+ };
@@ -17,6 +17,7 @@ import {
17
17
  ExtensionsListSchema,
18
18
  ExtensionUpdateActionSchema,
19
19
  ExtensionUpdateAppliedSchema,
20
+ ExtensionUpdateDefaultsInputSchema,
20
21
  ExtensionUpdatePolicyInputSchema,
21
22
  ExtensionUpdatePreviewSchema,
22
23
  ExtensionUpdatesCheckedSchema,
@@ -190,6 +191,16 @@ export const extensionsContract = {
190
191
  })
191
192
  .input(ExtensionUpdatePolicyInputSchema)
192
193
  .output(OkSchema),
194
+ setUpdateDefaults: procedure
195
+ .route({
196
+ method: "POST",
197
+ path: "/extensions/update-policy",
198
+ summary: "Whether extensions update by themselves",
199
+ description:
200
+ "The sandbox's answer for every extension installed from a repository that has no answer of its own. Automatic takes a release with the same powers by itself and leaves one that asks for more to you.",
201
+ })
202
+ .input(ExtensionUpdateDefaultsInputSchema)
203
+ .output(OkSchema),
193
204
  // Declared via `contributes.processes`; the terminals list shows each one's log as `svc-ext-<id>-<name>`.
194
205
  processStatus: procedure
195
206
  .route({
@@ -11,6 +11,9 @@ import {
11
11
  SecretKeyParamSchema,
12
12
  SecretGeneratedSchema,
13
13
  SecretGenerateSchema,
14
+ SecretImportSchema,
15
+ SecretMarksRequestSchema,
16
+ SecretMarksResponseSchema,
14
17
  SecretRegenerateSchema,
15
18
  SecretHostGuardSetResultSchema,
16
19
  SecretHostGuardSetSchema,
@@ -63,6 +66,30 @@ export const secretsContract = {
63
66
  .meta({ agent: true })
64
67
  .input(SecretGenerateSchema)
65
68
  .output(SecretGeneratedSchema),
69
+ importValue: secretRoute
70
+ .route({
71
+ method: "POST",
72
+ path: "/secrets/import",
73
+ summary: "Store a value under a new name",
74
+ description:
75
+ "Stores a value read from the `secrets import` command's input under a name nothing here holds yet, where `set` would have put it: how a value moves from where it lives now (another orchestrator's variables, a file on a server) without passing through the chat. Answers the name and its length, never the value. Refused for a name something here already holds, so it can add a credential and never replace one.",
76
+ })
77
+ // (2026-11-25) The `secrets import` CLI, on the agent token; withheld from the panel token, as `set` is.
78
+ .meta({ agent: true, panel: false })
79
+ .input(SecretImportSchema)
80
+ .output(SecretGeneratedSchema),
81
+ // (2026-11-25) Keyed marks of named values (schemas/secrets.ts), never the values: how the Deployments extension tells
82
+ // that a secret a stack received changed since. An extension reaches it by declaring it; not the agent, not a panel.
83
+ marks: procedure
84
+ .route({
85
+ method: "POST",
86
+ path: "/secrets/marks",
87
+ summary: "A keyed mark of each named secret's value",
88
+ description: "An HMAC of each value under a key only this sandbox holds, so two marks compare equal exactly when the value is unchanged. Never the value.",
89
+ })
90
+ .meta({ floor: "maintainer", control: "never", panel: false })
91
+ .input(SecretMarksRequestSchema)
92
+ .output(SecretMarksResponseSchema),
66
93
  regenerate: secretRoute
67
94
  .route({
68
95
  method: "POST",
@@ -20,6 +20,8 @@ import {
20
20
  TimezoneOfferSchema,
21
21
  TimezoneStateSchema,
22
22
  } from "../schemas/settings.js";
23
+ import { ModelRolesSchema } from "../models/model-roles.js";
24
+ import { OutwardActionsSchema } from "../schemas/data-protection.js";
23
25
  import { OkSchema } from "../schemas/shared.js";
24
26
  import { DayWindowQuerySchema } from "../schemas/providers/usage.js";
25
27
 
@@ -92,6 +94,28 @@ export const settingsContract = {
92
94
  "A separate read rather than a field on the settings, because a rule firing is not somebody editing anything: folding it in would turn every firing into a settings write and put a self-changing value inside the object a screen edits.",
93
95
  })
94
96
  .output(RuleFiringsSchema),
97
+ // Read off the enabled extensions' manifests, not out of the settings file: the rules are the owner's, the actions
98
+ // they can be written for are each extension's own declaration (2026-11-25).
99
+ outwardActions: procedure
100
+ .route({
101
+ method: "GET",
102
+ path: "/settings/outward-actions",
103
+ summary: "What the action rules can be written for",
104
+ description:
105
+ "Every outward action the enabled extensions declare (send a Slack message, upload to OneDrive), by the key an action rule for it is written under. Reads are left out: a rule on one would hold a bot reading its own channel.",
106
+ })
107
+ .output(OutwardActionsSchema),
108
+ // Read off the extensions' manifests, not out of the settings file: which setup a job runs on is the owner's, the jobs
109
+ // there are are the sandbox's own and each extension's declaration (2026-11-26).
110
+ modelRoles: procedure
111
+ .route({
112
+ method: "GET",
113
+ path: "/settings/model-roles",
114
+ summary: "The jobs a model setup can be chosen for",
115
+ description:
116
+ "Every job this sandbox picks a model for: its own (commit messages, the safety judge, loop iterations), then each installed extension's (`contributes.modelRoles`: pipeline fixes, maintenance chores), with whether that extension is switched on. A switched-off extension's job stays listed so the owner's choice for it is kept, and is not shown.",
117
+ })
118
+ .output(ModelRolesSchema),
95
119
  // Read off the repositories themselves, not out of the settings file: the declaration is a tracked file in each
96
120
  // repository, and only the owner's answer to it lives here.
97
121
  repoChecks: procedure
@@ -0,0 +1,51 @@
1
+ import { procedure } from "../protocol/route-meta.js";
2
+ import { NeedRaisedSchema } from "../schemas/needs.js";
3
+ import { OkSchema } from "../schemas/shared.js";
4
+ import { StackGrantRefSchema, StackGrantRequestSchema, StackGrantSetSchema, StackGrantsResponseSchema } from "../schemas/stack-grants.js";
5
+
6
+ // WHICH SECRETS EACH MANAGED STACK MAY RECEIVE (schemas/stack-grants.ts). Reading the grants reaches an extension (the
7
+ // Deployments board shows what is missing) and the agent; granting and revoking are the owner's alone, never a machine
8
+ // credential's, and the handlers hold the caller to the Secrets right again. An agent asks on a card instead.
9
+ const grantRoute = procedure.meta({ control: "never", panel: false });
10
+
11
+ export const stackGrantsContract = {
12
+ list: grantRoute
13
+ .route({
14
+ method: "GET",
15
+ path: "/stack-grants",
16
+ summary: "Which secrets each managed stack may receive",
17
+ description: "Every grant: the repository, stack and computer it is for, and the secret names it covers. Names only, never a value.",
18
+ })
19
+ .meta({ agent: true })
20
+ .output(StackGrantsResponseSchema),
21
+ request: grantRoute
22
+ .route({
23
+ method: "POST",
24
+ path: "/stack-grants/request",
25
+ summary: "Ask the owner to let a stack receive some secrets",
26
+ description:
27
+ "Raises a card in the asking conversation listing the names; the owner's yes grants exactly those, for that stack from that repository on that computer.",
28
+ })
29
+ .meta({ agent: true, floor: "maintainer" })
30
+ .input(StackGrantRequestSchema)
31
+ .output(NeedRaisedSchema),
32
+ grant: grantRoute
33
+ .route({
34
+ method: "POST",
35
+ path: "/stack-grants/grant",
36
+ summary: "Let a stack receive these secrets",
37
+ })
38
+ .meta({ floor: "maintainer", right: "secrets" })
39
+ .input(StackGrantSetSchema)
40
+ .output(StackGrantsResponseSchema),
41
+ revoke: grantRoute
42
+ .route({
43
+ method: "POST",
44
+ path: "/stack-grants/revoke",
45
+ summary: "Stop a stack receiving secrets",
46
+ description: "Its next managed deploy is refused until granted again; what already runs keeps its `.env`.",
47
+ })
48
+ .meta({ floor: "maintainer", right: "secrets" })
49
+ .input(StackGrantRefSchema)
50
+ .output(OkSchema),
51
+ };
@@ -10,17 +10,8 @@ import {
10
10
  DeviceSandboxFlowInputSchema,
11
11
  DevicesListSchema,
12
12
  } from "../schemas/devices.js";
13
- import {
14
- DeviceStackDeployInputSchema,
15
- DeviceStackDeployResultSchema,
16
- DeviceStackLogsInputSchema,
17
- DeviceStackOpInputSchema,
18
- DeviceStacksInputSchema,
19
- DeviceStacksSchema,
20
- StackLogsSchema,
21
- StackOpResultSchema,
22
- } from "../schemas/device-stacks.js";
23
13
  import { deviceCiRunnerRoutes } from "./device-ci-runners.contract.js";
14
+ import { deviceStackRoutes } from "./device-stacks.contract.js";
24
15
  import { EgressOwnerKeysReadSchema } from "../schemas/egress.js";
25
16
  import { SandboxReachSchema } from "../schemas/sandbox-reach.js";
26
17
  import { PresenceReportSchema } from "../schemas/logs.js";
@@ -28,6 +19,7 @@ import {
28
19
  CheckoutPressInputSchema,
29
20
  CheckoutPressResultSchema,
30
21
  DiskPressureSchema,
22
+ MemoryReclaimResultSchema,
31
23
  SandboxMetricsSchema,
32
24
  StorageCleanInputSchema,
33
25
  StorageCleanResultSchema,
@@ -294,6 +286,18 @@ export const systemContract = {
294
286
  })
295
287
  .input(CheckoutPressInputSchema)
296
288
  .output(CheckoutPressResultSchema),
289
+ // (2026-11-26) The composer's "Free memory" press while the computer under this sandbox is short (offload.placement
290
+ // `reclaim`). The owner's alone: it empties caches every conversation here was reading from.
291
+ reclaimMemory: systemRoute
292
+ .route({
293
+ method: "POST",
294
+ path: "/system/memory/reclaim",
295
+ summary: "Give memory back to the computer this sandbox runs on",
296
+ description:
297
+ "Has this sandbox let go of memory it can do without (cached files first) now, and says how much it let go and what the computer it runs on had available just before and a few seconds after. On a Windows PC much of what a sandbox lets go stays inside the WSL VM, so the answer can be that Windows got none of it. Refused, with why, where that computer says nothing of its memory, where the kernel takes no reclaim, or while this sandbox is short of memory itself.",
298
+ })
299
+ .meta({ floor: "owner", panel: false })
300
+ .output(MemoryReclaimResultSchema),
297
301
  // Control plane only; live I/O is /system/terminal WebSocket, exempt from the Bearer auth these routes take.
298
302
  terminals: systemRoute
299
303
  .route({
@@ -529,55 +533,8 @@ export const systemContract = {
529
533
  })
530
534
  .input(DeviceAgentFlowInputSchema)
531
535
  .output(streamOf(DeviceFlowLineSchema)),
532
- // Docker compose stacks on a connected computer (schemas/device-stacks.ts): what the Deployments board reads and
533
- // drives where no Komodo stands between. Relayed to the machine's own tools, which check its switches; the daemon
534
- // adds no opinion beyond the floor, so a refusal arrives in the machine's words, naming the switch to flip.
535
- deviceStacks: systemRoute
536
- .route({
537
- method: "GET",
538
- path: "/system/devices/{id}/stacks",
539
- summary: "The Docker compose stacks on one of your devices",
540
- description:
541
- "Every Docker compose project on a computer you connected, with each service's container, image and state, and the folder this sandbox deploys stacks into there. Intentic's own sandboxes are marked rather than left out. Needs that computer's \"Run commands\" switch.",
542
- })
543
- .meta({ floor: "maintainer", panel: false })
544
- .input(DeviceStacksInputSchema)
545
- .output(DeviceStacksSchema),
546
- // Up, restart, start, stop, or pull-then-up; nothing here removes a stack or a volume.
547
- deviceStackOp: systemRoute
548
- .route({
549
- method: "POST",
550
- path: "/system/devices/{id}/stacks/{name}/ops/{op}",
551
- summary: "Start, stop, restart or update a stack on one of your devices",
552
- description:
553
- "Runs `docker compose` for one stack on a computer you connected: `up` applies its files, `pull` fetches newer images and then applies, and `restart`, `start` and `stop` do what they say. Nothing here removes a stack or its volumes. Needs that computer's \"Run commands\" switch.",
554
- })
555
- .meta({ panel: false })
556
- .input(DeviceStackOpInputSchema)
557
- .output(StackOpResultSchema),
558
- // Floored like the actions, though it only reads: a log can hold anything the service printed.
559
- deviceStackLogs: systemRoute
560
- .route({
561
- method: "GET",
562
- path: "/system/devices/{id}/stacks/{name}/logs",
563
- summary: "The recent log of a stack on one of your devices",
564
- description: "The last lines every service of one compose stack printed, oldest first, as `docker compose logs` gives them.",
565
- })
566
- .meta({ floor: "maintainer", panel: false })
567
- .input(DeviceStackLogsInputSchema)
568
- .output(StackLogsSchema),
569
- // The repository's committed tree, packed here, carried over the device link and brought up there with `--build`.
570
- deployDeviceStack: systemRoute
571
- .route({
572
- method: "POST",
573
- path: "/system/devices/{id}/stacks/{name}/deploy",
574
- summary: "Deploy a workspace repository to one of your devices",
575
- description:
576
- "Packs the committed tree (HEAD) of a workspace repository, carries it to a computer you connected and runs it there as a Docker compose stack of the given name, building its images on that computer. Uncommitted changes are not deployed. A `.env` already in the stack's folder there is kept: secrets are placed into it by an agent, never sent with a deploy. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches.",
577
- })
578
- .meta({ panel: false })
579
- .input(DeviceStackDeployInputSchema)
580
- .output(DeviceStackDeployResultSchema),
536
+ // Docker compose stacks on a connected computer (device-stacks.contract.ts).
537
+ ...deviceStackRoutes,
581
538
  // The self-hosted CI runners on a connected computer, for the Pipelines view (device-ci-runners.contract.ts).
582
539
  ...deviceCiRunnerRoutes,
583
540
  };
@@ -15,7 +15,6 @@ import {
15
15
  TemplatesListSchema,
16
16
  WorkspaceSyncSchema,
17
17
  } from "../schemas/workspace/workspace-repos.js";
18
- import { PackageModulesParamSchema, PackageModulesSchema, WorkspaceGraphSchema } from "../schemas/workspace/workspace-graph.js";
19
18
  import { WorkspaceSearchFrameSchema, WorkspaceSearchQuerySchema, WorkspaceSearchResultSchema } from "../schemas/workspace/workspace-search.js";
20
19
  import { WorkspaceInstallResultSchema, WorkspaceInstallSchema, WorkspaceSetupSchema } from "../schemas/workspace/workspace-setup.js";
21
20
  import {
@@ -380,27 +379,6 @@ export const workspaceContract = {
380
379
  })
381
380
  .input(RepoAppsParamSchema)
382
381
  .output(AppsListSchema),
383
- // The monorepo's package dependency graph, from pnpm-workspace.yaml globs and each package.json's deps.
384
- packageGraph: procedure
385
- .route({
386
- method: "GET",
387
- path: "/workspace/repos/{repo}/graph",
388
- summary: "How a repo's packages depend on each other",
389
- description: "Every package in one multi-package repo and which of its siblings each one uses, which is what a dependency view draws.",
390
- })
391
- .input(RepoAppsParamSchema)
392
- .output(WorkspaceGraphSchema),
393
- // One package's modules grouped into units, and the value imports between them, placed in its declared layers.
394
- packageModules: procedure
395
- .route({
396
- method: "GET",
397
- path: "/workspace/repos/{repo}/layers",
398
- summary: "How one package's modules import each other",
399
- description:
400
- "One workspace package's source directories as units, the value imports between them, and the layers its layers.json declares, which is what a view of its insides draws.",
401
- })
402
- .input(PackageModulesParamSchema)
403
- .output(PackageModulesSchema),
404
382
  // Every repo's package dirs in one call, since a review spans repos and per-repo would fan out per open.
405
383
  modules: procedure
406
384
  .route({
@@ -1,6 +1,7 @@
1
1
  import { oneLine } from "@intentic/base/one-line";
2
2
  import type { SubagentVerification } from "../schemas/terminal.js";
3
3
  import type { TranscriptAgentWords, TranscriptRow } from "./transcript.js";
4
+ import { childNewsRow } from "./child-news.js";
4
5
  import { needWakeRow } from "./need-wake.js";
5
6
  import { watchWakeRow } from "./watch-wake.js";
6
7
 
@@ -221,4 +222,5 @@ export const agentWordsRow = (prompt: string): TranscriptRow | undefined => {
221
222
  };
222
223
 
223
224
  /** The row for a prompt nobody at the composer typed; every transcript reader asks this one function. */
224
- export const unspokenPromptRow = (prompt: string): TranscriptRow | undefined => watchWakeRow(prompt) ?? needWakeRow(prompt) ?? agentWordsRow(prompt);
225
+ export const unspokenPromptRow = (prompt: string): TranscriptRow | undefined =>
226
+ watchWakeRow(prompt) ?? needWakeRow(prompt) ?? agentWordsRow(prompt) ?? childNewsRow(prompt);