@intentic/sandbox-contract 1.429.0 → 1.431.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 (594) hide show
  1. package/README.md +12 -2
  2. package/dist/app-routes/app-pages.d.ts +1 -0
  3. package/dist/app-routes/app-pages.d.ts.map +1 -1
  4. package/dist/app-routes/app-pages.js +1 -0
  5. package/dist/app-routes/app-pages.js.map +1 -1
  6. package/dist/app-routes/index.d.ts +1 -0
  7. package/dist/app-routes/index.d.ts.map +1 -1
  8. package/dist/app-routes/index.js +1 -0
  9. package/dist/app-routes/index.js.map +1 -1
  10. package/dist/app-routes/return-path.d.ts +2 -0
  11. package/dist/app-routes/return-path.d.ts.map +1 -0
  12. package/dist/app-routes/return-path.js +8 -0
  13. package/dist/app-routes/return-path.js.map +1 -0
  14. package/dist/contracts/accounts.contract.d.ts +7 -0
  15. package/dist/contracts/accounts.contract.d.ts.map +1 -1
  16. package/dist/contracts/accounts.contract.js +2 -0
  17. package/dist/contracts/accounts.contract.js.map +1 -1
  18. package/dist/contracts/agent.contract.d.ts +381 -0
  19. package/dist/contracts/agent.contract.d.ts.map +1 -1
  20. package/dist/contracts/agents.contract.d.ts +3297 -1568
  21. package/dist/contracts/agents.contract.d.ts.map +1 -1
  22. package/dist/contracts/agents.contract.js +35 -5
  23. package/dist/contracts/agents.contract.js.map +1 -1
  24. package/dist/contracts/automations.contract.d.ts +31 -0
  25. package/dist/contracts/automations.contract.d.ts.map +1 -1
  26. package/dist/contracts/automations.contract.js +1 -0
  27. package/dist/contracts/automations.contract.js.map +1 -1
  28. package/dist/contracts/bookmarks.contract.d.ts +101 -0
  29. package/dist/contracts/bookmarks.contract.d.ts.map +1 -0
  30. package/dist/contracts/bookmarks.contract.js +51 -0
  31. package/dist/contracts/bookmarks.contract.js.map +1 -0
  32. package/dist/contracts/browser.contract.d.ts +176 -0
  33. package/dist/contracts/browser.contract.d.ts.map +1 -0
  34. package/dist/contracts/browser.contract.js +150 -0
  35. package/dist/contracts/browser.contract.js.map +1 -0
  36. package/dist/contracts/capabilities.contract.d.ts +48 -0
  37. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  38. package/dist/contracts/capabilities.contract.js +3 -1
  39. package/dist/contracts/capabilities.contract.js.map +1 -1
  40. package/dist/contracts/device-ci-runners.contract.d.ts +108 -0
  41. package/dist/contracts/device-ci-runners.contract.d.ts.map +1 -0
  42. package/dist/contracts/device-ci-runners.contract.js +56 -0
  43. package/dist/contracts/device-ci-runners.contract.js.map +1 -0
  44. package/dist/contracts/device.contract.d.ts +87 -0
  45. package/dist/contracts/device.contract.d.ts.map +1 -1
  46. package/dist/contracts/device.contract.js +4 -0
  47. package/dist/contracts/device.contract.js.map +1 -1
  48. package/dist/contracts/extensions.contract.d.ts +1 -0
  49. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  50. package/dist/contracts/extensions.contract.js +1 -1
  51. package/dist/contracts/extensions.contract.js.map +1 -1
  52. package/dist/contracts/git.contract.d.ts +7 -0
  53. package/dist/contracts/git.contract.d.ts.map +1 -1
  54. package/dist/contracts/issues.contract.d.ts +11 -0
  55. package/dist/contracts/issues.contract.d.ts.map +1 -1
  56. package/dist/contracts/needs.contract.d.ts +408 -0
  57. package/dist/contracts/needs.contract.d.ts.map +1 -1
  58. package/dist/contracts/offload.contract.d.ts +4 -0
  59. package/dist/contracts/offload.contract.d.ts.map +1 -1
  60. package/dist/contracts/ports.contract.d.ts +8 -0
  61. package/dist/contracts/ports.contract.d.ts.map +1 -1
  62. package/dist/contracts/ports.contract.js +6 -5
  63. package/dist/contracts/ports.contract.js.map +1 -1
  64. package/dist/contracts/remote.contract.d.ts +121 -0
  65. package/dist/contracts/remote.contract.d.ts.map +1 -0
  66. package/dist/contracts/remote.contract.js +80 -0
  67. package/dist/contracts/remote.contract.js.map +1 -0
  68. package/dist/contracts/runner.contract.d.ts +716 -15
  69. package/dist/contracts/runner.contract.d.ts.map +1 -1
  70. package/dist/contracts/runner.contract.js +49 -2
  71. package/dist/contracts/runner.contract.js.map +1 -1
  72. package/dist/contracts/runners.contract.d.ts +16 -0
  73. package/dist/contracts/runners.contract.d.ts.map +1 -0
  74. package/dist/contracts/runners.contract.js +15 -0
  75. package/dist/contracts/runners.contract.js.map +1 -0
  76. package/dist/contracts/safety.contract.d.ts.map +1 -1
  77. package/dist/contracts/safety.contract.js +1 -0
  78. package/dist/contracts/safety.contract.js.map +1 -1
  79. package/dist/contracts/seal.contract.d.ts +105 -0
  80. package/dist/contracts/seal.contract.d.ts.map +1 -1
  81. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  82. package/dist/contracts/secrets.contract.js +6 -0
  83. package/dist/contracts/secrets.contract.js.map +1 -1
  84. package/dist/contracts/sessions.contract.d.ts +48 -0
  85. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  86. package/dist/contracts/settings.contract.d.ts +28 -0
  87. package/dist/contracts/settings.contract.d.ts.map +1 -1
  88. package/dist/contracts/settings.contract.js +1 -0
  89. package/dist/contracts/settings.contract.js.map +1 -1
  90. package/dist/contracts/skills.contract.d.ts +6 -0
  91. package/dist/contracts/skills.contract.d.ts.map +1 -1
  92. package/dist/contracts/system.contract.d.ts +482 -4
  93. package/dist/contracts/system.contract.d.ts.map +1 -1
  94. package/dist/contracts/system.contract.js +70 -3
  95. package/dist/contracts/system.contract.js.map +1 -1
  96. package/dist/contracts/translator.contract.d.ts +7 -0
  97. package/dist/contracts/translator.contract.d.ts.map +1 -1
  98. package/dist/contracts/usage.contract.d.ts +3 -0
  99. package/dist/contracts/usage.contract.d.ts.map +1 -1
  100. package/dist/events/agent-events.d.ts +194 -0
  101. package/dist/events/agent-events.d.ts.map +1 -1
  102. package/dist/events/agent-events.js +2 -2
  103. package/dist/events/agent-events.js.map +1 -1
  104. package/dist/events/agent-transcript.d.ts +48 -0
  105. package/dist/events/agent-transcript.d.ts.map +1 -1
  106. package/dist/events/agent-words.d.ts +5 -0
  107. package/dist/events/agent-words.d.ts.map +1 -1
  108. package/dist/events/agent-words.js +20 -1
  109. package/dist/events/agent-words.js.map +1 -1
  110. package/dist/events/failure-rows.d.ts +2 -2
  111. package/dist/events/failure-rows.d.ts.map +1 -1
  112. package/dist/events/failure-rows.js +13 -13
  113. package/dist/events/failure-rows.js.map +1 -1
  114. package/dist/events/refusal-incidents.d.ts +1 -0
  115. package/dist/events/refusal-incidents.d.ts.map +1 -1
  116. package/dist/events/refusal-incidents.js +42 -19
  117. package/dist/events/refusal-incidents.js.map +1 -1
  118. package/dist/events/resume.d.ts.map +1 -1
  119. package/dist/events/resume.js +12 -12
  120. package/dist/events/resume.js.map +1 -1
  121. package/dist/events/sandbox-notice.d.ts.map +1 -1
  122. package/dist/events/sandbox-notice.js.map +1 -1
  123. package/dist/events/system-events.d.ts +102 -0
  124. package/dist/events/system-events.d.ts.map +1 -1
  125. package/dist/events/transcript.d.ts +240 -0
  126. package/dist/events/transcript.d.ts.map +1 -1
  127. package/dist/ids/conversation-ids.d.ts +1 -0
  128. package/dist/ids/conversation-ids.d.ts.map +1 -1
  129. package/dist/ids/conversation-ids.js +2 -1
  130. package/dist/ids/conversation-ids.js.map +1 -1
  131. package/dist/ids/project-id.d.ts.map +1 -1
  132. package/dist/ids/project-id.js +4 -4
  133. package/dist/ids/project-id.js.map +1 -1
  134. package/dist/ids/run-row-ids.d.ts +8 -0
  135. package/dist/ids/run-row-ids.d.ts.map +1 -0
  136. package/dist/ids/run-row-ids.js +32 -0
  137. package/dist/ids/run-row-ids.js.map +1 -0
  138. package/dist/index.d.ts +12 -4
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +12 -4
  141. package/dist/index.js.map +1 -1
  142. package/dist/models/agent-catalog.d.ts.map +1 -1
  143. package/dist/models/agent-catalog.js +3 -2
  144. package/dist/models/agent-catalog.js.map +1 -1
  145. package/dist/models/agent-lanes.d.ts.map +1 -1
  146. package/dist/models/agent-lanes.js +4 -1
  147. package/dist/models/agent-lanes.js.map +1 -1
  148. package/dist/models/agent-runtimes.d.ts.map +1 -1
  149. package/dist/models/agent-runtimes.js +2 -2
  150. package/dist/models/agent-runtimes.js.map +1 -1
  151. package/dist/models/agent-standing.d.ts +6 -1
  152. package/dist/models/agent-standing.d.ts.map +1 -1
  153. package/dist/models/agent-standing.js +1 -0
  154. package/dist/models/agent-standing.js.map +1 -1
  155. package/dist/models/providers/provider-traits.d.ts +215 -0
  156. package/dist/models/providers/provider-traits.d.ts.map +1 -0
  157. package/dist/models/providers/provider-traits.js +60 -0
  158. package/dist/models/providers/provider-traits.js.map +1 -0
  159. package/dist/netd/browser-wire.d.ts +58 -1
  160. package/dist/netd/browser-wire.d.ts.map +1 -1
  161. package/dist/netd/browser-wire.js +27 -0
  162. package/dist/netd/browser-wire.js.map +1 -1
  163. package/dist/netd/generated/browser-wire.d.ts +135 -0
  164. package/dist/netd/generated/browser-wire.d.ts.map +1 -1
  165. package/dist/netd/generated/wire.d.ts +56 -1
  166. package/dist/netd/generated/wire.d.ts.map +1 -1
  167. package/dist/policy/admin/admin-grant.d.ts +21 -0
  168. package/dist/policy/admin/admin-grant.d.ts.map +1 -0
  169. package/dist/policy/admin/admin-grant.js +41 -0
  170. package/dist/policy/admin/admin-grant.js.map +1 -0
  171. package/dist/policy/capabilities/capability-kinds.d.ts +268 -0
  172. package/dist/policy/capabilities/capability-kinds.d.ts.map +1 -0
  173. package/dist/policy/capabilities/capability-kinds.js +47 -0
  174. package/dist/policy/capabilities/capability-kinds.js.map +1 -0
  175. package/dist/policy/command-classes.d.ts.map +1 -1
  176. package/dist/policy/command-classes.js +3 -1
  177. package/dist/policy/command-classes.js.map +1 -1
  178. package/dist/policy/device-programs.d.ts +79 -2
  179. package/dist/policy/device-programs.d.ts.map +1 -1
  180. package/dist/policy/device-programs.js +15 -16
  181. package/dist/policy/device-programs.js.map +1 -1
  182. package/dist/policy/reserved-servers.d.ts.map +1 -1
  183. package/dist/policy/reserved-servers.js +5 -1
  184. package/dist/policy/reserved-servers.js.map +1 -1
  185. package/dist/policy/role-capability.d.ts.map +1 -1
  186. package/dist/policy/role-capability.js +2 -1
  187. package/dist/policy/role-capability.js.map +1 -1
  188. package/dist/policy/shell/command-normalise.d.ts +10 -0
  189. package/dist/policy/shell/command-normalise.d.ts.map +1 -0
  190. package/dist/policy/shell/command-normalise.js +153 -0
  191. package/dist/policy/shell/command-normalise.js.map +1 -0
  192. package/dist/protocol/doors/listener-protocol.d.ts +4 -0
  193. package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
  194. package/dist/protocol/doors/listener-protocol.js +4 -0
  195. package/dist/protocol/doors/listener-protocol.js.map +1 -1
  196. package/dist/protocol/doors/loopback-proof.d.ts +8 -0
  197. package/dist/protocol/doors/loopback-proof.d.ts.map +1 -0
  198. package/dist/protocol/doors/loopback-proof.js +11 -0
  199. package/dist/protocol/doors/loopback-proof.js.map +1 -0
  200. package/dist/protocol/doors/pass-scopes.d.ts +4 -0
  201. package/dist/protocol/doors/pass-scopes.d.ts.map +1 -0
  202. package/dist/protocol/doors/pass-scopes.js +3 -0
  203. package/dist/protocol/doors/pass-scopes.js.map +1 -0
  204. package/dist/protocol/doors/runner-protocol.d.ts +187 -0
  205. package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
  206. package/dist/protocol/doors/runner-protocol.js +48 -1
  207. package/dist/protocol/doors/runner-protocol.js.map +1 -1
  208. package/dist/protocol/doors/sandbox-pass.d.ts +19 -2
  209. package/dist/protocol/doors/sandbox-pass.d.ts.map +1 -1
  210. package/dist/protocol/doors/sandbox-pass.js +42 -10
  211. package/dist/protocol/doors/sandbox-pass.js.map +1 -1
  212. package/dist/protocol/member-reach.d.ts +6 -0
  213. package/dist/protocol/member-reach.d.ts.map +1 -1
  214. package/dist/protocol/member-reach.js +24 -0
  215. package/dist/protocol/member-reach.js.map +1 -1
  216. package/dist/protocol/peer-mcp-server.d.ts +2 -0
  217. package/dist/protocol/peer-mcp-server.d.ts.map +1 -1
  218. package/dist/protocol/peer-mcp-server.js +1 -0
  219. package/dist/protocol/peer-mcp-server.js.map +1 -1
  220. package/dist/protocol/raw/raw-json-routes.d.ts +518 -0
  221. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  222. package/dist/protocol/raw/raw-json-routes.js +26 -2
  223. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  224. package/dist/protocol/raw/raw-routes.d.ts +182 -2
  225. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  226. package/dist/protocol/raw/raw-routes.js +67 -35
  227. package/dist/protocol/raw/raw-routes.js.map +1 -1
  228. package/dist/protocol/route-meta.d.ts.map +1 -1
  229. package/dist/protocol/route-meta.js.map +1 -1
  230. package/dist/schemas/account-routes.d.ts +176 -0
  231. package/dist/schemas/account-routes.d.ts.map +1 -0
  232. package/dist/schemas/account-routes.js +73 -0
  233. package/dist/schemas/account-routes.js.map +1 -0
  234. package/dist/schemas/activity.d.ts.map +1 -1
  235. package/dist/schemas/activity.js.map +1 -1
  236. package/dist/schemas/agent-background.d.ts +48 -0
  237. package/dist/schemas/agent-background.d.ts.map +1 -0
  238. package/dist/schemas/agent-background.js +63 -0
  239. package/dist/schemas/agent-background.js.map +1 -0
  240. package/dist/schemas/agent-land.d.ts +7 -0
  241. package/dist/schemas/agent-land.d.ts.map +1 -1
  242. package/dist/schemas/agent-land.js +11 -0
  243. package/dist/schemas/agent-land.js.map +1 -1
  244. package/dist/schemas/agent.d.ts +16 -0
  245. package/dist/schemas/agent.d.ts.map +1 -1
  246. package/dist/schemas/agent.js +3 -4
  247. package/dist/schemas/agent.js.map +1 -1
  248. package/dist/schemas/agents-list.d.ts +42 -0
  249. package/dist/schemas/agents-list.d.ts.map +1 -1
  250. package/dist/schemas/agents.d.ts +668 -17
  251. package/dist/schemas/agents.d.ts.map +1 -1
  252. package/dist/schemas/agents.js +16 -41
  253. package/dist/schemas/agents.js.map +1 -1
  254. package/dist/schemas/auto-approve.d.ts +12 -0
  255. package/dist/schemas/auto-approve.d.ts.map +1 -0
  256. package/dist/schemas/auto-approve.js +12 -0
  257. package/dist/schemas/auto-approve.js.map +1 -0
  258. package/dist/schemas/automations.d.ts +83 -0
  259. package/dist/schemas/automations.d.ts.map +1 -1
  260. package/dist/schemas/automations.js +11 -1
  261. package/dist/schemas/automations.js.map +1 -1
  262. package/dist/schemas/bookmarks.d.ts +85 -0
  263. package/dist/schemas/bookmarks.d.ts.map +1 -0
  264. package/dist/schemas/bookmarks.js +56 -0
  265. package/dist/schemas/bookmarks.js.map +1 -0
  266. package/dist/schemas/bridge-heads.d.ts +57 -0
  267. package/dist/schemas/bridge-heads.d.ts.map +1 -0
  268. package/dist/schemas/bridge-heads.js +22 -0
  269. package/dist/schemas/bridge-heads.js.map +1 -0
  270. package/dist/schemas/browser-tools.d.ts +167 -0
  271. package/dist/schemas/browser-tools.d.ts.map +1 -0
  272. package/dist/schemas/browser-tools.js +121 -0
  273. package/dist/schemas/browser-tools.js.map +1 -0
  274. package/dist/schemas/browsing.d.ts +139 -0
  275. package/dist/schemas/browsing.d.ts.map +1 -0
  276. package/dist/schemas/browsing.js +83 -0
  277. package/dist/schemas/browsing.js.map +1 -0
  278. package/dist/schemas/capabilities.d.ts +57 -0
  279. package/dist/schemas/capabilities.d.ts.map +1 -1
  280. package/dist/schemas/capabilities.js +9 -0
  281. package/dist/schemas/capabilities.js.map +1 -1
  282. package/dist/schemas/checkout-hooks.d.ts +24 -0
  283. package/dist/schemas/checkout-hooks.d.ts.map +1 -0
  284. package/dist/schemas/checkout-hooks.js +23 -0
  285. package/dist/schemas/checkout-hooks.js.map +1 -0
  286. package/dist/schemas/ci-fleet.d.ts +216 -0
  287. package/dist/schemas/ci-fleet.d.ts.map +1 -0
  288. package/dist/schemas/ci-fleet.js +87 -0
  289. package/dist/schemas/ci-fleet.js.map +1 -0
  290. package/dist/schemas/connection-hub.d.ts +3 -1
  291. package/dist/schemas/connection-hub.d.ts.map +1 -1
  292. package/dist/schemas/connection-hub.js +2 -1
  293. package/dist/schemas/connection-hub.js.map +1 -1
  294. package/dist/schemas/context-continues.d.ts.map +1 -1
  295. package/dist/schemas/context-continues.js +2 -2
  296. package/dist/schemas/context-continues.js.map +1 -1
  297. package/dist/schemas/context-trim.js +3 -3
  298. package/dist/schemas/context-trim.js.map +1 -1
  299. package/dist/schemas/device-remote.d.ts +84 -0
  300. package/dist/schemas/device-remote.d.ts.map +1 -0
  301. package/dist/schemas/device-remote.js +54 -0
  302. package/dist/schemas/device-remote.js.map +1 -0
  303. package/dist/schemas/devices.d.ts +64 -0
  304. package/dist/schemas/devices.d.ts.map +1 -1
  305. package/dist/schemas/devices.js +6 -1
  306. package/dist/schemas/devices.js.map +1 -1
  307. package/dist/schemas/environment.d.ts +1 -0
  308. package/dist/schemas/environment.d.ts.map +1 -1
  309. package/dist/schemas/environment.js +1 -0
  310. package/dist/schemas/environment.js.map +1 -1
  311. package/dist/schemas/extension-updates.d.ts +2 -0
  312. package/dist/schemas/extension-updates.d.ts.map +1 -1
  313. package/dist/schemas/extension-updates.js +4 -0
  314. package/dist/schemas/extension-updates.js.map +1 -1
  315. package/dist/schemas/git/git.d.ts +13 -0
  316. package/dist/schemas/git/git.d.ts.map +1 -1
  317. package/dist/schemas/git/git.js +7 -7
  318. package/dist/schemas/git/git.js.map +1 -1
  319. package/dist/schemas/git/index-run.d.ts +1 -0
  320. package/dist/schemas/git/index-run.d.ts.map +1 -1
  321. package/dist/schemas/host-power.d.ts +54 -0
  322. package/dist/schemas/host-power.d.ts.map +1 -0
  323. package/dist/schemas/host-power.js +46 -0
  324. package/dist/schemas/host-power.js.map +1 -0
  325. package/dist/schemas/hosts.d.ts +145 -0
  326. package/dist/schemas/hosts.d.ts.map +1 -1
  327. package/dist/schemas/hosts.js +15 -1
  328. package/dist/schemas/hosts.js.map +1 -1
  329. package/dist/schemas/issues.d.ts +44 -0
  330. package/dist/schemas/issues.d.ts.map +1 -1
  331. package/dist/schemas/issues.js +12 -0
  332. package/dist/schemas/issues.js.map +1 -1
  333. package/dist/schemas/keep-warm.d.ts.map +1 -1
  334. package/dist/schemas/keep-warm.js +2 -3
  335. package/dist/schemas/keep-warm.js.map +1 -1
  336. package/dist/schemas/keyring-native.d.ts.map +1 -1
  337. package/dist/schemas/keyring-native.js +3 -1
  338. package/dist/schemas/keyring-native.js.map +1 -1
  339. package/dist/schemas/keyring.d.ts +1 -0
  340. package/dist/schemas/keyring.d.ts.map +1 -1
  341. package/dist/schemas/keyring.js +3 -1
  342. package/dist/schemas/keyring.js.map +1 -1
  343. package/dist/schemas/members.d.ts.map +1 -1
  344. package/dist/schemas/members.js +2 -14
  345. package/dist/schemas/members.js.map +1 -1
  346. package/dist/schemas/metrics.d.ts +8 -0
  347. package/dist/schemas/metrics.d.ts.map +1 -1
  348. package/dist/schemas/metrics.js +8 -0
  349. package/dist/schemas/metrics.js.map +1 -1
  350. package/dist/schemas/needs.d.ts +349 -1
  351. package/dist/schemas/needs.d.ts.map +1 -1
  352. package/dist/schemas/needs.js +45 -5
  353. package/dist/schemas/needs.js.map +1 -1
  354. package/dist/schemas/offload.d.ts +9 -0
  355. package/dist/schemas/offload.d.ts.map +1 -1
  356. package/dist/schemas/offload.js +2 -1
  357. package/dist/schemas/offload.js.map +1 -1
  358. package/dist/schemas/ports.d.ts +4 -0
  359. package/dist/schemas/ports.d.ts.map +1 -1
  360. package/dist/schemas/ports.js +3 -0
  361. package/dist/schemas/ports.js.map +1 -1
  362. package/dist/schemas/providers/capacity.d.ts +6 -0
  363. package/dist/schemas/providers/capacity.d.ts.map +1 -1
  364. package/dist/schemas/providers/handoff.d.ts.map +1 -1
  365. package/dist/schemas/providers/handoff.js +11 -11
  366. package/dist/schemas/providers/handoff.js.map +1 -1
  367. package/dist/schemas/providers/provider-oauth.d.ts +14 -0
  368. package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
  369. package/dist/schemas/providers/provider-oauth.js +6 -2
  370. package/dist/schemas/providers/provider-oauth.js.map +1 -1
  371. package/dist/schemas/providers/refusals.d.ts +12 -0
  372. package/dist/schemas/providers/refusals.d.ts.map +1 -1
  373. package/dist/schemas/providers/refusals.js +4 -0
  374. package/dist/schemas/providers/refusals.js.map +1 -1
  375. package/dist/schemas/providers/switched.js +1 -1
  376. package/dist/schemas/providers/switched.js.map +1 -1
  377. package/dist/schemas/queued-trial-retry.d.ts +7 -0
  378. package/dist/schemas/queued-trial-retry.d.ts.map +1 -0
  379. package/dist/schemas/queued-trial-retry.js +8 -0
  380. package/dist/schemas/queued-trial-retry.js.map +1 -0
  381. package/dist/schemas/remote-access.d.ts +138 -0
  382. package/dist/schemas/remote-access.d.ts.map +1 -0
  383. package/dist/schemas/remote-access.js +72 -0
  384. package/dist/schemas/remote-access.js.map +1 -0
  385. package/dist/schemas/run-targets.d.ts.map +1 -1
  386. package/dist/schemas/run-targets.js +2 -1
  387. package/dist/schemas/run-targets.js.map +1 -1
  388. package/dist/schemas/runner-views.d.ts +24 -0
  389. package/dist/schemas/runner-views.d.ts.map +1 -0
  390. package/dist/schemas/runner-views.js +16 -0
  391. package/dist/schemas/runner-views.js.map +1 -0
  392. package/dist/schemas/sandbox-reach.d.ts +157 -0
  393. package/dist/schemas/sandbox-reach.d.ts.map +1 -0
  394. package/dist/schemas/sandbox-reach.js +112 -0
  395. package/dist/schemas/sandbox-reach.js.map +1 -0
  396. package/dist/schemas/seal.d.ts +1 -1
  397. package/dist/schemas/seal.d.ts.map +1 -1
  398. package/dist/schemas/seal.js +1 -1
  399. package/dist/schemas/seal.js.map +1 -1
  400. package/dist/schemas/settings.d.ts +44 -0
  401. package/dist/schemas/settings.d.ts.map +1 -1
  402. package/dist/schemas/settings.js +24 -1
  403. package/dist/schemas/settings.js.map +1 -1
  404. package/dist/schemas/system.d.ts +19 -0
  405. package/dist/schemas/system.d.ts.map +1 -1
  406. package/dist/schemas/system.js +9 -0
  407. package/dist/schemas/system.js.map +1 -1
  408. package/dist/schemas/terminal.d.ts +182 -0
  409. package/dist/schemas/terminal.d.ts.map +1 -1
  410. package/dist/schemas/terminal.js +60 -1
  411. package/dist/schemas/terminal.js.map +1 -1
  412. package/dist/state/auth-state.d.ts.map +1 -1
  413. package/dist/state/auth-state.js +2 -0
  414. package/dist/state/auth-state.js.map +1 -1
  415. package/dist/state/definition.d.ts +64 -0
  416. package/dist/state/definition.d.ts.map +1 -1
  417. package/dist/state/runtime-state.d.ts +4 -1
  418. package/dist/state/runtime-state.d.ts.map +1 -1
  419. package/dist/state/runtime-state.js +2 -1
  420. package/dist/state/runtime-state.js.map +1 -1
  421. package/dist/state/workspace-state.d.ts +1 -1
  422. package/dist/state/workspace-state.d.ts.map +1 -1
  423. package/dist/state/workspace-state.js +1 -1
  424. package/dist/state/workspace-state.js.map +1 -1
  425. package/dist/sync/workspace-sync-ignores.d.ts +4 -0
  426. package/dist/sync/workspace-sync-ignores.d.ts.map +1 -0
  427. package/dist/sync/workspace-sync-ignores.js +75 -0
  428. package/dist/sync/workspace-sync-ignores.js.map +1 -0
  429. package/dist/text/land-rows.d.ts.map +1 -1
  430. package/dist/text/land-rows.js +13 -17
  431. package/dist/text/land-rows.js.map +1 -1
  432. package/dist/text/notice-rows.js +6 -6
  433. package/dist/text/notice-rows.js.map +1 -1
  434. package/dist/text/pages.d.ts.map +1 -1
  435. package/dist/text/pages.js +17 -4
  436. package/dist/text/pages.js.map +1 -1
  437. package/dist/text/transcript-fold.js +2 -2
  438. package/dist/text/transcript-fold.js.map +1 -1
  439. package/package.json +5 -5
  440. package/src/app-routes/app-pages.ts +3 -0
  441. package/src/app-routes/index.ts +1 -0
  442. package/src/app-routes/return-path.ts +16 -0
  443. package/src/contracts/accounts.contract.ts +3 -0
  444. package/src/contracts/agents.contract.ts +41 -5
  445. package/src/contracts/automations.contract.ts +2 -0
  446. package/src/contracts/bookmarks.contract.ts +66 -0
  447. package/src/contracts/browser.contract.ts +181 -0
  448. package/src/contracts/capabilities.contract.ts +7 -2
  449. package/src/contracts/device-ci-runners.contract.ts +81 -0
  450. package/src/contracts/device.contract.ts +15 -0
  451. package/src/contracts/extensions.contract.ts +1 -1
  452. package/src/contracts/ports.contract.ts +6 -6
  453. package/src/contracts/remote.contract.ts +104 -0
  454. package/src/contracts/runner.contract.ts +117 -3
  455. package/src/contracts/runners.contract.ts +19 -0
  456. package/src/contracts/safety.contract.ts +2 -0
  457. package/src/contracts/secrets.contract.ts +12 -0
  458. package/src/contracts/settings.contract.ts +2 -0
  459. package/src/contracts/system.contract.ts +98 -3
  460. package/src/events/agent-events.ts +3 -2
  461. package/src/events/agent-words.test.ts +19 -1
  462. package/src/events/agent-words.ts +33 -1
  463. package/src/events/failure-rows.ts +13 -14
  464. package/src/events/refusal-incidents.ts +60 -19
  465. package/src/events/resume.test.ts +3 -3
  466. package/src/events/resume.ts +12 -18
  467. package/src/events/sandbox-notice.ts +2 -0
  468. package/src/ids/conversation-ids.test.ts +3 -1
  469. package/src/ids/conversation-ids.ts +6 -4
  470. package/src/ids/project-dir.test.ts +1 -1
  471. package/src/ids/project-dir.ts +1 -1
  472. package/src/ids/project-id.test.ts +14 -0
  473. package/src/ids/project-id.ts +6 -4
  474. package/src/ids/run-row-ids.test.ts +38 -0
  475. package/src/ids/run-row-ids.ts +49 -0
  476. package/src/index.ts +18 -6
  477. package/src/models/agent-catalog.test.ts +7 -4
  478. package/src/models/agent-catalog.ts +3 -2
  479. package/src/models/agent-lanes.ts +8 -1
  480. package/src/models/agent-runtimes.ts +7 -6
  481. package/src/models/agent-standing.ts +13 -0
  482. package/src/models/provider-specs.test.ts +2 -2
  483. package/src/models/providers/provider-traits.test.ts +71 -0
  484. package/src/models/providers/provider-traits.ts +144 -0
  485. package/src/netd/browser-wire.ts +97 -0
  486. package/src/netd/generated/browser-wire.json +904 -0
  487. package/src/netd/generated/browser-wire.ts +62 -3
  488. package/src/netd/generated/netd-wire.json +299 -1
  489. package/src/netd/generated/wire.ts +27 -6
  490. package/src/netd/wire-manifests.test.ts +92 -1
  491. package/src/policy/admin/admin-grant.ts +69 -0
  492. package/src/policy/capabilities/capability-kinds.test.ts +112 -0
  493. package/src/policy/capabilities/capability-kinds.ts +110 -0
  494. package/src/policy/command-classes.ts +5 -3
  495. package/src/policy/credential-material.ts +1 -1
  496. package/src/policy/device-programs.ts +29 -20
  497. package/src/policy/overlay-lint.ts +1 -1
  498. package/src/policy/reserved-servers.ts +5 -1
  499. package/src/policy/role-capability.ts +3 -1
  500. package/src/policy/shell/command-normalise.test.ts +72 -0
  501. package/src/policy/shell/command-normalise.ts +212 -0
  502. package/src/policy/tests/admin-grant.test.ts +35 -0
  503. package/src/policy/tests/command-classes.test.ts +41 -0
  504. package/src/protocol/doors/listener-protocol.ts +18 -1
  505. package/src/protocol/doors/loopback-proof.ts +34 -0
  506. package/src/protocol/doors/pass-scopes.ts +12 -0
  507. package/src/protocol/doors/runner-protocol.ts +133 -4
  508. package/src/protocol/doors/sandbox-pass.test.ts +33 -1
  509. package/src/protocol/doors/sandbox-pass.ts +92 -16
  510. package/src/protocol/ingress-contract.fixture.json +9 -1
  511. package/src/protocol/member-reach.test.ts +40 -1
  512. package/src/protocol/member-reach.ts +40 -0
  513. package/src/protocol/peer-mcp-server.ts +6 -0
  514. package/src/protocol/raw/raw-json-routes.ts +48 -1
  515. package/src/protocol/raw/raw-routes.ts +99 -36
  516. package/src/protocol/route-meta.ts +4 -1
  517. package/src/schemas/account-routes.ts +126 -0
  518. package/src/schemas/activity.ts +4 -3
  519. package/src/schemas/agent-background.ts +104 -0
  520. package/src/schemas/agent-land.ts +21 -2
  521. package/src/schemas/agent.ts +3 -4
  522. package/src/schemas/agents.ts +26 -65
  523. package/src/schemas/auto-approve.ts +31 -0
  524. package/src/schemas/automations.ts +26 -1
  525. package/src/schemas/bookmarks.ts +79 -0
  526. package/src/schemas/bridge-heads.ts +33 -0
  527. package/src/schemas/browser-tools.ts +164 -0
  528. package/src/schemas/browsing.ts +129 -0
  529. package/src/schemas/capabilities.ts +32 -0
  530. package/src/schemas/checkout-hooks.ts +44 -0
  531. package/src/schemas/ci-fleet.ts +180 -0
  532. package/src/schemas/compose-overlay.test.ts +1 -1
  533. package/src/schemas/compose-overlay.ts +1 -1
  534. package/src/schemas/connection-hub.ts +4 -2
  535. package/src/schemas/context-continues.ts +6 -3
  536. package/src/schemas/context-trim.test.ts +6 -6
  537. package/src/schemas/context-trim.ts +3 -3
  538. package/src/schemas/data-protection.ts +1 -1
  539. package/src/schemas/device-remote.ts +106 -0
  540. package/src/schemas/device-swaps.test.ts +1 -1
  541. package/src/schemas/devices.ts +19 -1
  542. package/src/schemas/egress-private.test.ts +1 -1
  543. package/src/schemas/environment.ts +4 -0
  544. package/src/schemas/extension-updates.ts +8 -0
  545. package/src/schemas/git/git.ts +14 -14
  546. package/src/schemas/host-power.ts +79 -0
  547. package/src/schemas/hosts.ts +37 -2
  548. package/src/schemas/intentic-os.ts +2 -2
  549. package/src/schemas/issues.ts +14 -0
  550. package/src/schemas/keep-warm.test.ts +1 -1
  551. package/src/schemas/keep-warm.ts +2 -3
  552. package/src/schemas/keyring-native.test.ts +11 -3
  553. package/src/schemas/keyring-native.ts +3 -1
  554. package/src/schemas/keyring.ts +6 -1
  555. package/src/schemas/members.ts +4 -16
  556. package/src/schemas/metrics.test.ts +9 -1
  557. package/src/schemas/metrics.ts +8 -0
  558. package/src/schemas/needs.ts +68 -5
  559. package/src/schemas/offload.ts +6 -3
  560. package/src/schemas/ports.ts +5 -0
  561. package/src/schemas/providers/handoff.test.ts +8 -10
  562. package/src/schemas/providers/handoff.ts +11 -12
  563. package/src/schemas/providers/provider-oauth.ts +10 -2
  564. package/src/schemas/providers/refusals.ts +9 -0
  565. package/src/schemas/providers/switched.test.ts +6 -6
  566. package/src/schemas/providers/switched.ts +1 -1
  567. package/src/schemas/queued-trial-retry.ts +14 -0
  568. package/src/schemas/remote-access.ts +143 -0
  569. package/src/schemas/run-targets.ts +2 -1
  570. package/src/schemas/runner-views.ts +27 -0
  571. package/src/schemas/sandbox-reach.ts +161 -0
  572. package/src/schemas/seal.ts +2 -1
  573. package/src/schemas/settings.test.ts +5 -4
  574. package/src/schemas/settings.ts +54 -10
  575. package/src/schemas/state-plan.test.ts +1 -1
  576. package/src/schemas/state-plan.ts +2 -2
  577. package/src/schemas/system.ts +16 -1
  578. package/src/schemas/terminal.ts +87 -1
  579. package/src/schemas/updates.test.ts +1 -1
  580. package/src/schemas/updates.ts +1 -1
  581. package/src/state/auth-state.ts +6 -0
  582. package/src/state/runtime-state.test.ts +3 -2
  583. package/src/state/runtime-state.ts +7 -1
  584. package/src/state/update-probation.ts +1 -1
  585. package/src/state/ways-back.test.ts +1 -1
  586. package/src/state/workspace-state.test.ts +2 -0
  587. package/src/state/workspace-state.ts +4 -4
  588. package/src/sync/workspace-sync-ignores.test.ts +48 -0
  589. package/src/sync/workspace-sync-ignores.ts +143 -0
  590. package/src/text/land-rows.ts +13 -18
  591. package/src/text/notice-rows.ts +6 -6
  592. package/src/text/pages.ts +34 -7
  593. package/src/text/transcript-fold.test.ts +77 -39
  594. package/src/text/transcript-fold.ts +2 -2
@@ -15,8 +15,10 @@ import { LimitHandoffSchema } from "./providers/handoff.js";
15
15
  import { SessionsPlacementSchema } from "./offload.js";
16
16
  import { LimitPolicySchema, MemoryKillPolicySchema, RetryPolicySchema, RoomPolicySchema } from "./turn-break.js";
17
17
  import { ZoneSchema } from "../time/zone.js";
18
+ import { DEFAULT_SEARCH_ENGINE, RecordAgentBrowsingSchema, SearchEngineSchema } from "./browsing.js";
18
19
  import { DEFAULT_SANDBOX_MODE, SandboxModeSchema } from "./sandbox-mode.js";
19
20
  import { VoiceSettingsSchema } from "./voice.js";
21
+ import { remoteIceServersSetting } from "./remote-access.js";
20
22
  import {
21
23
  AiNoticeSchema,
22
24
  AuditSettingsSchema,
@@ -157,6 +159,14 @@ export type SkillOrigin = z.infer<typeof SkillOriginSchema>;
157
159
  // Same slug shape the SDK's loader accepts, checked here so a bad name is a refused save, not a skill that silently
158
160
  // never loads.
159
161
  export const SkillNameSchema = z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a skill name is lowercase letters, digits and dashes");
162
+ // Counted from the turns that loaded the skill (a skill tool call naming it, or a read of its SKILL.md), so a skill that
163
+ // is only listed never counts. A window, not a lifetime total: the question is whether it still earns its place.
164
+ export const SKILL_USES_WINDOW_DAYS = 7;
165
+ export const SkillUsesSchema = z.object({
166
+ week: z.number().int().nonnegative().describe("Turns that loaded it in the last seven days."),
167
+ last: z.string().optional().describe("When a turn last loaded it, as an ISO time. Absent when no turn has since the count began."),
168
+ });
169
+ export type SkillUses = z.infer<typeof SkillUsesSchema>;
160
170
  export const SkillSummarySchema = z.object({
161
171
  // Qualified as `<origin>:<owner>:<name>` for anything not `own`/`builtin`.
162
172
  id: z
@@ -188,6 +198,10 @@ export const SkillSummarySchema = z.object({
188
198
  // Wider than `editable` by one case: a dropped skill isn't the owner's to edit, but is theirs to remove, with no
189
199
  // other way to short of the file tree.
190
200
  removable: z.boolean(),
201
+ // Optional for the daemon-older-than-browser seam: a sandbox from before the count answers nothing, which is not zero.
202
+ uses: SkillUsesSchema.optional().describe(
203
+ "How often turns have loaded it lately. Absent where nothing counts (a sandbox from before the count), which is not the same as never.",
204
+ ),
191
205
  });
192
206
  export type SkillSummary = z.infer<typeof SkillSummarySchema>;
193
207
  export const SkillsListSchema = z.array(SkillSummarySchema);
@@ -198,6 +212,20 @@ export const SkillBodySchema = z.object({
198
212
  name: z.string().describe("Its name."),
199
213
  // Everything after the frontmatter.
200
214
  body: z.string().describe("The instructions themselves, as written."),
215
+ // Only where the folder is what the agent reads, so a file opened from it is the file that matters: the loaded folder
216
+ // (a dropped skill, a connection's cheatsheet) or a role kit's. The owner's own skill is written through this
217
+ // contract instead, and a built-in's, an extension's or a plugin's lives outside the workspace.
218
+ folder: z
219
+ .string()
220
+ .optional()
221
+ .describe(
222
+ "The workspace-relative folder holding it, when that folder is what the agent reads. Absent for your own skills, which are written here rather than as files, and for anything kept outside the workspace.",
223
+ ),
224
+ // Defaulted for the daemon-older-than-browser seam. Relative to the skill's folder, SKILL.md left out, capped.
225
+ files: z
226
+ .array(z.string())
227
+ .default([])
228
+ .describe("The other files in its folder (references, scripts, licences), relative to it, SKILL.md left out. Capped at 50."),
201
229
  });
202
230
  export type SkillBody = z.infer<typeof SkillBodySchema>;
203
231
  export const SkillIdSchema = z.object({
@@ -449,6 +477,16 @@ export const SandboxSettingsSchema = z.object({
449
477
  .describe(
450
478
  "Build Rust with line tables only for debug info (CARGO_PROFILE_DEV_DEBUG and CARGO_PROFILE_TEST_DEBUG set to `line-tables-only` in agents' shells). A debug target takes less disk and backtraces keep their file and line, but a debugger sees no local variables. It overrides what a repository's own Cargo.toml says about debug info.",
451
479
  ),
480
+ // Read live into every turn's shell (agent/run/harness/turn-env.ts); off by default, since it overrides a repository's
481
+ // own incremental setting and costs repeated rebuilds of one big crate. Measured 2026-11-24 (disk I/O audit on rog):
482
+ // the shinobi-society sandbox's Rust builds wrote 173 GB of the engine's 197 GB in 4.3 h, and each checkout's
483
+ // `target/debug/incremental/` held 0.15-12 GB rewritten on every compile; sccache cannot cache incremental crates.
484
+ rustIncrementalOff: z
485
+ .boolean()
486
+ .default(false)
487
+ .describe(
488
+ "Turn off Cargo's incremental compilation (CARGO_INCREMENTAL=0 in agents' shells). Builds stop writing each checkout's `target/debug/incremental/` (0.15-12 GB per checkout, rewritten on every compile) and the compiler cache can cache the workspace's own crates too. A repeated edit and rebuild of one big crate in the same checkout recompiles that crate whole. It overrides a repository's own `[profile] incremental` and CARGO_INCREMENTAL.",
489
+ ),
452
490
  commitAttribution: commitAttributionSetting,
453
491
  // A prototype, off by default (2026-11-04): an isolated checkout's Cargo `target/` laid over a frozen copy of the main
454
492
  // checkout's, so each checkout keeps only what it compiled differently (conversations/worktrees/cargo-warm.ts).
@@ -468,6 +506,7 @@ export const SandboxSettingsSchema = z.object({
468
506
  outagePolicy: RetryPolicySchema.default("wait").describe(
469
507
  "What happens to a turn the model provider's own failure killed. `wait` holds it for a press. `retry` re-runs it on the shared per-provider breaker, backing off between attempts. The sandbox-wide default; any one conversation can say otherwise. Worth `retry` for a sandbox whose work mostly happens with nobody in the room.",
470
508
  ),
509
+ remoteIceServers: remoteIceServersSetting,
471
510
  // A vendor loop's hard cap on one turn; half an hour ended two Gemini children mid-work as failures (2026-10-17).
472
511
  turnCapMinutes: z.number().int().min(5).max(1440).default(30).describe(
473
512
  "The longest one turn may run on a loop the sandbox drives itself (OpenCode, an ACP agent, Pi, Muse) before it is ended, in minutes, however busy it keeps. A subagent's turn that reaches it is carried on in a fresh turn of the same session rather than ended as a failure. The Claude Code and Codex loops have no such cap.",
@@ -481,15 +520,14 @@ export const SandboxSettingsSchema = z.object({
481
520
  memoryPolicy: RoomPolicySchema.default("resend").describe(
482
521
  "What happens to a message the sandbox held because it was short of memory: nothing ran, so nothing was spent. `resend` sends it by itself once memory has stayed free for a while, one held conversation at a time. `wait` holds it until somebody presses Send anyway. The sandbox-wide default; any one conversation can say otherwise.",
483
522
  ),
484
- // The one answer that re-runs a turn which RAN without being asked, on by default, where autoResumeOnRestart (below)
485
- // is off by default. The two differ in what the sandbox knows. A restart is any cause (an update, a rebuild, a crash
486
- // nobody named), and re-running everything it cut, all at once, spends the allowance on work nobody is watching and
487
- // edits files while the owner still waits for the sandbox to come back. A memory kill is one named cause the sandbox
488
- // can steer around: its turns go one at a time, only once memory has stayed free, never the turn whose own process was
489
- // the one killed, and not after a second memory kill of the same request (MEMORY_KILL_RERUNS), so what comes back is
490
- // the victims and not the runaway. Held for a press instead, every victim of the 2026-11-05 runaway sat in Attention
491
- // with "autoResumeOnRestart is off" though only one conversation had caused it; and switching autoResumeOnRestart on
492
- // to avoid that would have re-run the cause too, all at once, into a machine still recovering.
523
+ // Both this and autoResumeOnRestart (below) re-run a turn which RAN without being asked, and both are on by default;
524
+ // they differ in what the sandbox knows. A restart is any cause (an update, a rebuild, a crash nobody named), and its
525
+ // switch resumes everything it cut, short of a restart storm. A memory kill is one named cause the sandbox can steer
526
+ // around: its turns go one at a time, only once memory has stayed free, never the turn whose own process was the one
527
+ // killed, and not after a second memory kill of the same request (MEMORY_KILL_RERUNS), so what comes back is the
528
+ // victims and not the runaway. Held for a press instead, every victim of the 2026-11-05 runaway sat in Attention with
529
+ // "autoResumeOnRestart is off" though only one conversation had caused it; and resuming everything the restart cut
530
+ // would have re-run the cause too, all at once, into a machine still recovering.
493
531
  memoryKillPolicy: MemoryKillPolicySchema.default("resume").describe(
494
532
  "What happens to a turn the sandbox killed because it ran out of memory, whether only that turn was killed or the whole sandbox restarted. `resume` sends it again by itself once memory has stayed free for a while, one conversation at a time, and tells it what happened. Never a turn whose own process was the one using the memory, and never one killed for memory twice already: those wait for a press whatever this says. `wait` holds every such turn until somebody presses Continue. After a restart that ran out of memory this decides for the turns it cut, instead of the switch for resuming after a restart. The sandbox-wide default; any one conversation can say otherwise.",
495
533
  ),
@@ -636,6 +674,12 @@ export const SandboxSettingsSchema = z.object({
636
674
  .describe(
637
675
  "Let Intentic's product analytics (usage events and session recordings in the editor, for people who agreed to them) run while this sandbox is open. Off sends nothing about any visit to this sandbox, whatever each person agreed to.",
638
676
  ),
677
+ // searchEngine is the editor's (its address bar's searches, handed to the suggestion route on each call), and
678
+ // recordAgentBrowsing the daemon's browser routers' (browser/media/recordings.ts); both in schemas/browsing.ts.
679
+ searchEngine: SearchEngineSchema.default(DEFAULT_SEARCH_ENGINE).describe(
680
+ "Where the sandbox's browser sends what is typed into its address bar when it is not an address, and whose suggestions it shows while typing.",
681
+ ),
682
+ recordAgentBrowsing: RecordAgentBrowsingSchema,
639
683
  aiNotice: AiNoticeSchema.prefault({}).describe(
640
684
  "A notice members confirm once, telling them they are working with an AI and what to check before relying on it.",
641
685
  ),
@@ -664,7 +708,7 @@ export const SandboxSettingsSchema = z.object({
664
708
  // Three separate ceilings since they stop different things: width (parallel fan-out), lifetime (per conversation),
665
709
  // depth (how far a child may delegate) — raising width alone just hits the lifetime cap sooner. Defaults mirror the
666
710
  // CLI's own unset behavior; hitting one stops the agent rather than retrying.
667
- subagentsAtOnce: z.number().min(1).max(200).default(20).describe("How many subagents may work at the same time."),
711
+ subagentsAtOnce: z.number().min(1).max(200).default(20).describe("How many subagents one conversation may run at the same time."),
668
712
  subagentsPerTurn: z.number().min(1).max(2000).default(200).describe("How many a single turn may start in total."),
669
713
  // Depth 1 means an agent may delegate but its children may not; unlike the other two, a runaway here is
670
714
  // multiplicative, not merely wide.
@@ -5,7 +5,7 @@ import { packageRoot } from "@intentic/constants/node";
5
5
  import { STATE_PLAN_FORMAT, type StatePlan, StatePlanSchema, type StateStatus, StateStatusSchema } from "./state-plan.js";
6
6
 
7
7
  // The documents `ic` reads by field name, spelled once here: each golden file under golden/ is one of these examples
8
- // as JSON, and the Rust tests (_sandbox/ic/src/sandbox/preflight.rs, health.rs) parse the same files. A change here
8
+ // as JSON, and the Rust tests (_hosts/ic/src/sandbox/preflight.rs, health.rs) parse the same files. A change here
9
9
  // that the committed file does not carry fails, naming the file; `INTENTIC_WRITE_GOLDEN=1` rewrites them, and the Rust
10
10
  // tests then say whether ic still reads them.
11
11
 
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  // The daemon's state engine as the host reads it, in two documents a Rust binary (`ic`) parses by these field names:
4
- // the update pre-flight's one line (the target image's state-plan.ts, read by _sandbox/ic/src/sandbox/preflight.rs and
5
- // embedded verbatim in the staged-update marker), and the `state` of `/health` (read by _sandbox/ic/src/health.rs). The
4
+ // the update pre-flight's one line (the target image's state-plan.ts, read by _hosts/ic/src/sandbox/preflight.rs and
5
+ // embedded verbatim in the staged-update marker), and the `state` of `/health` (read by _hosts/ic/src/health.rs). The
6
6
  // golden files beside the contract (golden/) are this schema's examples, and the Rust tests assert against them.
7
7
 
8
8
  export const PlanStepSchema = z.object({
@@ -421,7 +421,14 @@ export const BuildStampSchema = z.object({
421
421
 
422
422
  // GET /health: the "is a daemon there" probe every flow uses (launch scripts, /setup, the browser's loopback probe,
423
423
  // the platform's hosted gate, the onboarding lane), served raw before any authentication. `ic` reads it too, in Rust
424
- // (_sandbox/ic/src/health.rs), which cannot import this and reads only `boot`, `state` and `announce` loosely.
424
+ // (_hosts/ic/src/health.rs), which cannot import this and reads only `boot`, `state` and `announce` loosely.
425
+ const IoPoolStateSchema = z.object({
426
+ state: z.enum(["answering", "stalled"]),
427
+ pendingMs: z.number().optional(),
428
+ lastMs: z.number().optional(),
429
+ stalls: z.number(),
430
+ });
431
+
425
432
  export const DaemonHealthSchema = z.object({
426
433
  ok: z.literal(true),
427
434
  // The sandbox id, so a loopback probe can confirm it reached this daemon and not an unrelated process. Absent on a
@@ -443,6 +450,13 @@ export const DaemonHealthSchema = z.object({
443
450
  // Which proofs this daemon takes to open a session, read before any sign-in since the route list arrives only after
444
451
  // one. Absent on a daemon from before email sign-in: Google, and the owner ticket on a hosted machine.
445
452
  signIn: z.object({ proofs: z.array(ProofMethodSchema) }).optional(),
453
+ // The answer to a machine agent's challenge (`?proof=&proofKey=`), present only on the loopback port and only for a
454
+ // credential this daemon issued: what tells the real daemon from another listener there (protocol/doors/loopback-proof.ts).
455
+ proof: z.string().optional(),
456
+ // Whether libuv's thread pool, which every fs, dns and zlib call shares, still takes work: `stalled` with how long the
457
+ // probe's stat has waited (a network mount holding every thread, most likely), the last stat's time, and the stalls
458
+ // since boot. Absent on a daemon from before the probe.
459
+ ioPool: IoPoolStateSchema.optional(),
446
460
  });
447
461
  export type DaemonHealth = z.infer<typeof DaemonHealthSchema>;
448
462
 
@@ -466,5 +480,6 @@ export const DaemonHealthReadingSchema = z.object({
466
480
  .object({ proofs: z.array(z.string()).catch([]) })
467
481
  .optional()
468
482
  .catch(undefined),
483
+ ioPool: IoPoolStateSchema.optional().catch(undefined),
469
484
  });
470
485
  export type DaemonHealthReading = z.infer<typeof DaemonHealthReadingSchema>;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { BrowserDownloadSchema, BrowserFileChooserSchema, BrowserPermissionAskSchema, BrowserRecordingSchema } from "./browser-tools.js";
2
3
  // Every live surface the sandbox's one global panel can show: tmux sessions, plus the agent's browser (not a terminal,
3
4
  // but the same question, what is running and can I look at it).
4
5
  // shell: a session the user opened.
@@ -101,7 +102,27 @@ export const BrowserPageSchema = z.object({
101
102
  // and before the first arrival, when the buttons stay as they were.
102
103
  canGoBack: z.boolean().optional().describe("Its history has a page before this one to go back to."),
103
104
  canGoForward: z.boolean().optional().describe("Its history has a page after this one to go forward to."),
105
+ // The site's icon, fetched by the sandbox through the window itself and sent inline, so the editor draws it without
106
+ // the person's own browser ever asking the site for anything. Absent from an older daemon.
107
+ favicon: z
108
+ .string()
109
+ .optional()
110
+ .describe(
111
+ "The page's icon as a small data: URL, fetched inside the sandbox so drawing it asks nothing of the site. Absent when the page has none, it has not loaded yet, or its icon was too large to send.",
112
+ ),
113
+ // Read off Chromium's own tab state where the window can ask it (the person's own window); absent elsewhere.
114
+ audible: z.boolean().optional().describe("It is playing sound now. Absent where the window cannot tell, and from an older daemon."),
115
+ muted: z.boolean().optional().describe("Its sound is muted. Absent where the window cannot tell, and from an older daemon."),
116
+ });
117
+ // A tab closed in a window that is still open: what Reopen closed tab brings back, at the place it had.
118
+ export const BrowserClosedTabSchema = z.object({
119
+ id: z.string().describe("What the reopen route takes to bring this one back rather than the newest."),
120
+ url: z.string().describe("Where it was when it closed."),
121
+ title: z.string().optional().describe("Its title when it closed. Absent when it had none."),
122
+ favicon: z.string().optional().describe("Its icon when it closed, as the open tab carried it."),
123
+ closedAt: z.number().describe("When it closed, in milliseconds."),
104
124
  });
125
+ export type BrowserClosedTab = z.infer<typeof BrowserClosedTabSchema>;
105
126
  export const BrowserSessionSchema = z.object({
106
127
  name: z.string().describe("Its id, and what the close route takes."),
107
128
  // Rises on every change to the window, across daemon restarts too. The same window arrives two ways, in this list
@@ -144,14 +165,37 @@ export const BrowserSessionSchema = z.object({
144
165
  })
145
166
  .optional()
146
167
  .describe("A dialog a page has open and is waiting on. You or the agent answers it; present only while it is open."),
168
+ // What the browser's own chrome would show and the picture never does (schemas/browser-tools.ts): the downloads of
169
+ // the window's profile, a file a page asked for, and a permission a site asked for. Each absent when there is none,
170
+ // and from an older daemon.
171
+ downloads: z
172
+ .array(BrowserDownloadSchema)
173
+ .optional()
174
+ .describe("This window's profile's recent downloads, newest first. Absent for a window whose downloads this browser does not keep."),
175
+ fileChooser: BrowserFileChooserSchema.optional().describe("A page asked for files and is waiting; present only while it is."),
176
+ permissionAsk: BrowserPermissionAskSchema.optional().describe("A site asked for a permission and is waiting on the answer; present only while it is."),
177
+ recording: BrowserRecordingSchema.optional().describe("The window's picture is being recorded; present only while it is."),
147
178
  pages: z
148
179
  .array(BrowserPageSchema)
149
- .describe("Every page it has open. A browser holds several at once, which is the reason it is listed apart from the terminals."),
180
+ .describe(
181
+ "Every page it has open, in the order its tab strip shows them. A browser holds several at once, which is the reason it is listed apart from the terminals.",
182
+ ),
183
+ // Kept by the daemon per window while it runs, newest first and capped; absent when none, and from an older daemon.
184
+ closed: z
185
+ .array(BrowserClosedTabSchema)
186
+ .optional()
187
+ .describe("Tabs closed in this window while it ran, newest first: what Reopen closed tab brings back. Absent when there are none."),
150
188
  // Opened from the browser view by the person, not by an agent's tool; absent on an agent's and from an older daemon.
151
189
  own: z
152
190
  .boolean()
153
191
  .optional()
154
192
  .describe("Your own window, opened from the browser view rather than by an agent. Yours to use whenever it is open; no agent drives it."),
193
+ // (2026-11-23) A window on one of this sandbox's runners, listed by the parent beside its own: its `name` is then
194
+ // `<runner>~<the runner's own name>`, so the two never collide, and its view opens through `runners.openView`.
195
+ runner: z
196
+ .string()
197
+ .optional()
198
+ .describe("The runner this window is open on, for a conversation that runs there. Absent means this sandbox."),
155
199
  // The conversation whose agent opened it; the client reads that agent's turn to know whether it is driving now.
156
200
  owner: z
157
201
  .string()
@@ -173,6 +217,8 @@ export const BrowserPageParamSchema = z.object({
173
217
  });
174
218
  export const OpenBrowserInputSchema = z.object({
175
219
  url: z.string().optional().describe("Where the new tab goes. Absent opens a blank tab, the way a browser's own new tab does."),
220
+ // (2026-11-23) The runner's own window instead, for a conversation that runs there; answered by its merged name.
221
+ runner: z.string().optional().describe("Open the tab in this runner's own window instead of this sandbox's. Absent means this sandbox."),
176
222
  });
177
223
  export type OpenBrowserInput = z.infer<typeof OpenBrowserInputSchema>;
178
224
  export const OpenBrowserResultSchema = z.object({
@@ -180,6 +226,26 @@ export const OpenBrowserResultSchema = z.object({
180
226
  pageId: z.string().optional().describe("The tab it opened, once the window has it. Absent when the tab had not appeared in time."),
181
227
  });
182
228
  export type OpenBrowserResult = z.infer<typeof OpenBrowserResultSchema>;
229
+ export const ReopenBrowserPageInputSchema = z.object({
230
+ name: z.string().describe("Which browser."),
231
+ closedId: z.string().optional().describe("Which closed tab, from the window's `closed` list. Absent brings back the one closed last."),
232
+ });
233
+ export type ReopenBrowserPageInput = z.infer<typeof ReopenBrowserPageInputSchema>;
234
+ export const MoveBrowserPageInputSchema = z.object({
235
+ name: z.string().describe("Which browser."),
236
+ pageId: z.string().describe("Which of its tabs."),
237
+ index: z.number().int().min(0).describe("Where it goes among the window's open tabs, counted from the first; past the end is the end."),
238
+ });
239
+ export type MoveBrowserPageInput = z.infer<typeof MoveBrowserPageInputSchema>;
240
+ // What a tab's own menu does to one tab, whichever window it is in and whether or not it is in front.
241
+ export const BrowserPageActionSchema = z.enum(["reload", "duplicate", "mute", "unmute"]);
242
+ export type BrowserPageAction = z.infer<typeof BrowserPageActionSchema>;
243
+ export const BrowserPageActionInputSchema = z.object({
244
+ name: z.string().describe("Which browser."),
245
+ pageId: z.string().describe("Which of its tabs."),
246
+ action: BrowserPageActionSchema.describe("Reload it, open a copy of it beside it, or silence or unsilence it."),
247
+ });
248
+ export type BrowserPageActionInput = z.infer<typeof BrowserPageActionInputSchema>;
183
249
  // One window on the sandbox's desktop, as its window manager lists it. The id is what /system/desktop-view takes as
184
250
  // `window` to stream that window alone, and what the agent's own desktop tools name it by.
185
251
  export const DesktopWindowSchema = z.object({
@@ -209,6 +275,20 @@ export const DesktopStateSchema = z.object({
209
275
  .describe("Each window open on it, absent when it is not running or has no window manager to ask."),
210
276
  });
211
277
  export type DesktopState = z.infer<typeof DesktopStateSchema>;
278
+ // (2026-11-23) The sandbox's desktop as `system.desktop` answers it: its own, and each connected runner's, for a
279
+ // conversation that runs there. A runner's picture opens through `runners.openView` with `desktop-view`.
280
+ export const RunnerDesktopSchema = z.object({
281
+ runner: z.string().describe("The runner whose desktop this is."),
282
+ state: DesktopStateSchema.describe("Its desktop, as the runner says."),
283
+ });
284
+ export type RunnerDesktop = z.infer<typeof RunnerDesktopSchema>;
285
+ export const SystemDesktopSchema = DesktopStateSchema.extend({
286
+ runners: z
287
+ .array(RunnerDesktopSchema)
288
+ .optional()
289
+ .describe("Each connected runner's desktop, for the conversations that run there. Absent when this sandbox has no runner connected."),
290
+ });
291
+ export type SystemDesktop = z.infer<typeof SystemDesktopSchema>;
212
292
  // A subagent is any agent another agent started, and every surface shows one the same way whichever mechanism started
213
293
  // it. The kind names the mechanism, never a second sort of thing:
214
294
  // subagent: in-process, the runtime's own Agent/Task tool, tracked via SubagentStart/Stop hooks and task_* messages
@@ -322,6 +402,12 @@ export const SubagentSessionSchema = z.object({
322
402
  sandbox: z.string().describe("What that sandbox is called."),
323
403
  sandboxId: z.string().optional().describe("That sandbox's id on the owner's account, when the card knows it."),
324
404
  conversationId: z.string().describe("The conversation it opened there."),
405
+ via: z
406
+ .literal("person")
407
+ .optional()
408
+ .describe(
409
+ "Handed over as the person the asking conversation acts for, not over a link card: that person is in the conversation there and reads it, and nothing waits for that sandbox's owner to allow it.",
410
+ ),
325
411
  })
326
412
  .optional()
327
413
  .describe("For a task handed to another sandbox: which one, and the conversation it runs in there."),
@@ -5,7 +5,7 @@ import { PreparingUpdateSchema } from "./system.js";
5
5
  import { UpdateOutcomeSchema } from "./updates.js";
6
6
 
7
7
  // The update markers `ic` writes onto /history for the daemon to read, spelled once here: golden/update-outcome.json
8
- // and golden/update-preparing.json are these examples as JSON, and ic's Rust test (_sandbox/ic/src/sandbox/host_files.rs)
8
+ // and golden/update-preparing.json are these examples as JSON, and ic's Rust test (_hosts/ic/src/sandbox/host_files.rs)
9
9
  // holds what it writes to them field for field. Where each file lives is the daemon's to say (its own golden,
10
10
  // host-files.json). A change here that the committed file does not carry fails, naming the file;
11
11
  // `INTENTIC_WRITE_GOLDEN=1` rewrites them, and the Rust test then says whether ic still writes them.
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  // WHAT THE HOST LAST DID ABOUT THIS SANDBOX'S VERSION, in the host's own words. Written by `ic` (the swap, its health
4
- // check and the probation that follows it: _sandbox/ic/src/sandbox/outcome.rs) onto /history as `update-outcome.json`,
4
+ // check and the probation that follows it: _hosts/ic/src/sandbox/outcome.rs) onto /history as `update-outcome.json`,
5
5
  // the same volume whichever container runs, so the version that ends up running reads what happened to the other one.
6
6
  // Advisory: the swap and its undoing are the host's; this is only how the sandbox and its owner hear about them.
7
7
  export const UpdateOutcomeResultSchema = z.enum(["updated", "kept", "restored", "rolled-back"]);
@@ -39,6 +39,9 @@ export const AUTH_STATE_FILES: readonly StateFile[] = [
39
39
  { path: "sandbox-secrets.json", portability: "secret" },
40
40
  { path: "capability-secrets.json", portability: "secret" },
41
41
  { path: "extension-secrets.json", portability: "secret" },
42
+ // The pairing secrets people minted at other sandboxes so this one may route there as them (the daemon's
43
+ // account-routing/route-secrets.ts).
44
+ { path: "route-secrets.json", portability: "secret" },
42
45
  // The personal data the shield masked, by token, and the pictures it painted over.
43
46
  { path: "privacy-vault.json", portability: "secret" },
44
47
  { path: "privacy-images/", portability: "secret" },
@@ -91,6 +94,9 @@ export const AUTH_STATE_FILES: readonly StateFile[] = [
91
94
  { path: "gemini/models.json", portability: "derived" },
92
95
  // Each custom endpoint's last discovered model list, fetched again from the endpoint.
93
96
  { path: "endpoints/", portability: "derived" },
97
+ // Models the provider refused on a translator credential as off its plan (agent/providers/translator-models.ts):
98
+ // a cache that expires in days, and the target learns its own from its first refusal.
99
+ { path: "translator-refused-models.json", portability: "derived" },
94
100
  // Values a computer released for one use each, for masking only; never outlive the process handed them.
95
101
  { path: "keyring-released.json", portability: "derived" },
96
102
  // The shell script and socket OpenCode runs commands through, written at boot.
@@ -37,8 +37,9 @@ describe(`staleRuntimeQueryKeys`, () => {
37
37
  expect(staleRuntimeQueryKeys([`activity`])).toEqual([[`activity`], [`activity-status`]]);
38
38
  });
39
39
 
40
- it(`re-reads the Allowed list when a card's yes is written or taken back, which no file push carries`, () => {
41
- expect(staleRuntimeQueryKeys([`grants`])).toEqual([[`grants`]]);
40
+ it(`re-reads the Allowed list and the extensions when a yes is written or taken back, which no file push carries`, () => {
41
+ // An approved workspace extension is one of those yeses, and what it lets run is the extensions list.
42
+ expect(staleRuntimeQueryKeys([`grants`])).toEqual([[`grants`], [`extensions`]]);
42
43
  });
43
44
 
44
45
  it(`re-reads each paired-machine roster on its own door's push, and the sync state on a device's`, () => {
@@ -27,6 +27,10 @@ const RUNTIME_DOMAINS = [
27
27
  // The agent's Chromiums and open pages, daemon-held, minted from its own browser tool-call hooks.
28
28
  { domain: "browsers", invalidates: [["browsers"]] },
29
29
 
30
+ // A browser profile's bookmarks: added, renamed, moved or removed from any window (browser/bookmarks/), which every
31
+ // address bar's star, bookmarks bar and manager reads.
32
+ { domain: "bookmarks", invalidates: [["bookmarks"]] },
33
+
30
34
  // The sandbox's own desktop: up, and how many windows are open on it, watched off its window manager's client list.
31
35
  { domain: "desktop", invalidates: [["desktop"]] },
32
36
 
@@ -79,7 +83,9 @@ const RUNTIME_DOMAINS = [
79
83
 
80
84
  // A standing yes written or taken back outside a need's answer: a permission card's pass, a release, a purge. They
81
85
  // live under the auth root, which no file push watches, and the Allowed list must move with the card that wrote one.
82
- { domain: "grants", invalidates: [["grants"]] },
86
+ // A workspace extension's approval is one of them, so the extensions list (and the editor's extension host, which
87
+ // loads what it lets run) moves with it too.
88
+ { domain: "grants", invalidates: [["grants"], ["extensions"]] },
83
89
 
84
90
  // Somebody asked the owner for more access, or a request was answered (auth/members/access-requests.ts): the owner's
85
91
  // list beside the roster moves, and so does the asker's own "asked" (GET /members/self). Like grants, they live under
@@ -1,7 +1,7 @@
1
1
  // THE POLICY AN UPDATE IS HELD TO AFTER IT TOOK, one policy on two substrates.
2
2
  //
3
3
  // A new version of a sandbox that came up is not yet a version that works. On a machine `ic` runs, the old container stays
4
- // parked and ready while a watch looks at the new one (_sandbox/ic/src/sandbox/probation.rs), and puts the old one back
4
+ // parked and ready while a watch looks at the new one (_hosts/ic/src/sandbox/probation.rs), and puts the old one back
5
5
  // by itself if it keeps failing. On Fly the platform's api does the same job over the image the machine's row keeps as
6
6
  // its way back (_platform/api/src/sandbox/hosted/gate/hosted-probation.ts). The two cannot share code (one looks through
7
7
  // Docker, the other through Fly's exec), so they share what decides: the numbers below, and `judgeProbation` /
@@ -4,7 +4,7 @@ import { packageRoot } from "@intentic/constants/node";
4
4
  import { DeviceFeatureSchema } from "../schemas/hosts.js";
5
5
  import { waysBack } from "./ways-back.js";
6
6
 
7
- // What `ic features --json` answers (_sandbox/ic/src/features.rs holds the same list to this golden).
7
+ // What `ic features --json` answers (_hosts/ic/src/features.rs holds the same list to this golden).
8
8
  // SAFETY: the golden is this package's own file; the assertions below fail on any field it lacks.
9
9
  const IC_FEATURES = JSON.parse(readFileSync(join(packageRoot(import.meta.url), "golden", "ic-features.json"), "utf8")) as { readonly features: readonly string[] };
10
10
 
@@ -367,6 +367,8 @@ describe(`VERSIONED_STATE_PATHS`, () => {
367
367
  // Spelled out rather than derived, so adding a tracked entry is a visible edit here, not a silent side effect.
368
368
  it(`tracks exactly the configuration files plus the agent's own authored output`, () => {
369
369
  expect(VERSIONED_STATE_PATHS.toSorted()).toEqual([
370
+ // A project's checkout hooks, committed with its code like run.json (schemas/checkout-hooks.ts).
371
+ `${STATE_DIR}/checkout.json`,
370
372
  `${STATE_DIR}/config/approvals/`,
371
373
  // Which folders each named area holds: editing one moves what everyone granted it can see, so the
372
374
  // change belongs in a diff rather than only in a screen.
@@ -220,13 +220,13 @@ const STATE_FILES = [
220
220
  why: "Declared by the intentic.issues extension's contributes.files, `issues` is its query key, not core's.",
221
221
  portability: "carry",
222
222
  },
223
- // Reports this sandbox could not yet deliver to the sandbox on its account that claims their project (daemon's
224
- // issues/account-outbox.ts), one file per problem, retried until they land or a week passes. `carry`: undelivered
225
- // reports are the workspace's, and a moved sandbox should still send them.
223
+ // Where releases before 2026-11-24 kept the reports this sandbox could not yet deliver to another of the account. They
224
+ // now wait on the history volume (`account-outbox/`, the daemon's issues/account-outbox.ts), where no turn can rewrite
225
+ // a queued one before it drains; nothing reads this directory, and a build that read it is only ever rolled back to.
226
226
  {
227
227
  path: ".intentic/records/outbox/",
228
228
  invalidates: [],
229
- why: "No view shows it yet; the `projects outbox` command reads it through the daemon.",
229
+ why: "Where releases before 2026-11-24 kept the account outbox; it now waits on the history volume, and nothing reads this copy.",
230
230
  portability: "carry",
231
231
  },
232
232
  // Maintenance ledger and probe evidence (daemon's chores-store), rendered by intentic.maintenance. `carry`:
@@ -0,0 +1,48 @@
1
+ import { STATE_DIR } from "@intentic/constants";
2
+ import { IGNORES, syncIgnoreMatcher, workspaceSyncIgnores } from "./workspace-sync-ignores.js";
3
+
4
+ describe("workspaceSyncIgnores", () => {
5
+ test.each([
6
+ "node_modules",
7
+ "app/node_modules/x/index.js",
8
+ "a/b/dist/main.js",
9
+ `${STATE_DIR}/records/sessions/x.jsonl`,
10
+ "refs/some-clone/src/a.ts",
11
+ "intentic/.git/index",
12
+ "app/.env",
13
+ "app/.env.production.local",
14
+ "repo/.intentic/local/cache/db",
15
+ "crate/target/debug/foo",
16
+ "crate/target/x86_64-pc-windows-msvc/release/foo.exe",
17
+ "crate/target/fast/incremental/x",
18
+ "crate/target/x86_64-unknown-linux-gnu/fast/deps/y",
19
+ ])("leaves out %s", (path) => {
20
+ expect(workspaceSyncIgnores(path)).toBe(true);
21
+ });
22
+
23
+ test.each([
24
+ "README.md",
25
+ "intentic/_sandbox/sandbox/src/main.ts",
26
+ "repo/.intentic/checks.json",
27
+ "repo/refs/notes.md",
28
+ "app/.env.example",
29
+ "crate/target/fast/my-binary",
30
+ "crate/target/CACHEDIR.TAG",
31
+ "docs/target.md",
32
+ ])("carries %s", (path) => {
33
+ expect(workspaceSyncIgnores(path)).toBe(false);
34
+ });
35
+
36
+ test("matches nothing for a spelling it was never taught, which only ever over-signals", () => {
37
+ const matches = syncIgnoreMatcher(["!keep", "a?c", "[ab]"]);
38
+ expect(["keep", "abc", "a"].some(matches)).toBe(false);
39
+ });
40
+
41
+ test("understands every pattern the session is created with", () => {
42
+ // Each built-in pattern, spelled as a path, is left out by its own rule.
43
+ for (const pattern of IGNORES) {
44
+ const path = pattern.replace(/^\//, "").replaceAll("**/", "x/").replaceAll("*", "y");
45
+ expect(workspaceSyncIgnores(path), pattern).toBe(true);
46
+ }
47
+ });
48
+ });