@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
@@ -1,4 +1,827 @@
1
1
  {
2
+ "browserMedia": {
3
+ "client": {
4
+ "$defs": {
5
+ "ClipboardContent": {
6
+ "description": "What a clipboard holds, either way across a media socket: plain text, HTML, and a PNG (base64), any of them absent.",
7
+ "properties": {
8
+ "html": {
9
+ "type": [
10
+ "string",
11
+ "null"
12
+ ]
13
+ },
14
+ "png": {
15
+ "type": [
16
+ "string",
17
+ "null"
18
+ ]
19
+ },
20
+ "text": {
21
+ "type": [
22
+ "string",
23
+ "null"
24
+ ]
25
+ }
26
+ },
27
+ "type": "object"
28
+ },
29
+ "KeyAction": {
30
+ "description": "Whether a key event presses, releases, or does both.",
31
+ "enum": [
32
+ "down",
33
+ "up",
34
+ "press"
35
+ ],
36
+ "type": "string"
37
+ },
38
+ "PointerAction": {
39
+ "description": "What a pointer event did.",
40
+ "enum": [
41
+ "move",
42
+ "down",
43
+ "up",
44
+ "wheel"
45
+ ],
46
+ "type": "string"
47
+ }
48
+ },
49
+ "description": "What the editor sends on a media socket, each a JSON text message. Coordinates are in the picture's own pixels, as\non the browser view socket.",
50
+ "oneOf": [
51
+ {
52
+ "description": "A pointer event, as on the browser view socket. `wheel` is not one: precise scrolling is `scroll`.",
53
+ "properties": {
54
+ "action": {
55
+ "$ref": "#/$defs/PointerAction"
56
+ },
57
+ "alt": {
58
+ "type": [
59
+ "boolean",
60
+ "null"
61
+ ]
62
+ },
63
+ "button": {
64
+ "format": "uint8",
65
+ "maximum": 255,
66
+ "minimum": 0,
67
+ "type": [
68
+ "integer",
69
+ "null"
70
+ ]
71
+ },
72
+ "buttons": {
73
+ "format": "uint8",
74
+ "maximum": 255,
75
+ "minimum": 0,
76
+ "type": [
77
+ "integer",
78
+ "null"
79
+ ]
80
+ },
81
+ "clickCount": {
82
+ "format": "uint8",
83
+ "maximum": 255,
84
+ "minimum": 0,
85
+ "type": [
86
+ "integer",
87
+ "null"
88
+ ]
89
+ },
90
+ "ctrl": {
91
+ "type": [
92
+ "boolean",
93
+ "null"
94
+ ]
95
+ },
96
+ "shift": {
97
+ "type": [
98
+ "boolean",
99
+ "null"
100
+ ]
101
+ },
102
+ "type": {
103
+ "const": "mouse",
104
+ "type": "string"
105
+ },
106
+ "x": {
107
+ "format": "double",
108
+ "type": "number"
109
+ },
110
+ "y": {
111
+ "format": "double",
112
+ "type": "number"
113
+ }
114
+ },
115
+ "required": [
116
+ "type",
117
+ "action",
118
+ "x",
119
+ "y"
120
+ ],
121
+ "type": "object"
122
+ },
123
+ {
124
+ "description": "Scrolling at a point, in picture pixels with their fractions: a trackpad's small steps and a wheel's notches\nalike. castd keeps what a step left over for the next one, so nothing a trackpad sends is lost.",
125
+ "properties": {
126
+ "dx": {
127
+ "format": "double",
128
+ "type": "number"
129
+ },
130
+ "dy": {
131
+ "format": "double",
132
+ "type": "number"
133
+ },
134
+ "type": {
135
+ "const": "scroll",
136
+ "type": "string"
137
+ },
138
+ "x": {
139
+ "format": "double",
140
+ "type": "number"
141
+ },
142
+ "y": {
143
+ "format": "double",
144
+ "type": "number"
145
+ }
146
+ },
147
+ "required": [
148
+ "type",
149
+ "x",
150
+ "y",
151
+ "dx",
152
+ "dy"
153
+ ],
154
+ "type": "object"
155
+ },
156
+ {
157
+ "description": "A key by its DOM name (`event.key`, layout already applied: `ą`, `Enter`, `ArrowLeft`), with `code` for the\nphysical key where the name alone is ambiguous. `press` (the default) is a down and an up.",
158
+ "properties": {
159
+ "action": {
160
+ "anyOf": [
161
+ {
162
+ "$ref": "#/$defs/KeyAction"
163
+ },
164
+ {
165
+ "type": "null"
166
+ }
167
+ ]
168
+ },
169
+ "alt": {
170
+ "type": [
171
+ "boolean",
172
+ "null"
173
+ ]
174
+ },
175
+ "code": {
176
+ "type": [
177
+ "string",
178
+ "null"
179
+ ]
180
+ },
181
+ "ctrl": {
182
+ "type": [
183
+ "boolean",
184
+ "null"
185
+ ]
186
+ },
187
+ "key": {
188
+ "type": "string"
189
+ },
190
+ "shift": {
191
+ "type": [
192
+ "boolean",
193
+ "null"
194
+ ]
195
+ },
196
+ "type": {
197
+ "const": "key",
198
+ "type": "string"
199
+ }
200
+ },
201
+ "required": [
202
+ "type",
203
+ "key"
204
+ ],
205
+ "type": "object"
206
+ },
207
+ {
208
+ "description": "Text to type as it stands: an IME's commit, dictation, a mobile keyboard's word. Long text is not typed: a paste\nsets the `clipboard` and sends Ctrl+V.",
209
+ "properties": {
210
+ "text": {
211
+ "type": "string"
212
+ },
213
+ "type": {
214
+ "const": "text",
215
+ "type": "string"
216
+ }
217
+ },
218
+ "required": [
219
+ "type",
220
+ "text"
221
+ ],
222
+ "type": "object"
223
+ },
224
+ {
225
+ "description": "Sets the remote clipboard, in order with the keys around it (a paste is this, then Ctrl+V).",
226
+ "properties": {
227
+ "content": {
228
+ "$ref": "#/$defs/ClipboardContent"
229
+ },
230
+ "type": {
231
+ "const": "clipboard",
232
+ "type": "string"
233
+ }
234
+ },
235
+ "required": [
236
+ "type",
237
+ "content"
238
+ ],
239
+ "type": "object"
240
+ },
241
+ {
242
+ "description": "Lets go of every key and button castd holds down for this viewer: the editor lost focus mid-chord.",
243
+ "properties": {
244
+ "type": {
245
+ "const": "releaseAll",
246
+ "type": "string"
247
+ }
248
+ },
249
+ "required": [
250
+ "type"
251
+ ],
252
+ "type": "object"
253
+ },
254
+ {
255
+ "description": "The video frame `id` was decoded, and how long decoding took; what castd's bitrate control reads.",
256
+ "properties": {
257
+ "decodeMs": {
258
+ "format": "double",
259
+ "type": [
260
+ "number",
261
+ "null"
262
+ ]
263
+ },
264
+ "id": {
265
+ "format": "uint32",
266
+ "minimum": 0,
267
+ "type": "integer"
268
+ },
269
+ "type": {
270
+ "const": "ack",
271
+ "type": "string"
272
+ }
273
+ },
274
+ "required": [
275
+ "type",
276
+ "id"
277
+ ],
278
+ "type": "object"
279
+ },
280
+ {
281
+ "description": "The decoder lost the stream: a keyframe, please.",
282
+ "properties": {
283
+ "type": {
284
+ "const": "keyframe",
285
+ "type": "string"
286
+ }
287
+ },
288
+ "required": [
289
+ "type"
290
+ ],
291
+ "type": "object"
292
+ },
293
+ {
294
+ "description": "The viewer's picture box in CSS px and its device pixel ratio: the size the window's screen is asked to take,\nat `scale` display pixels per CSS pixel. Only the viewer driving the window decides it. `hz`: how many times a\nsecond the viewer's display shows a new picture, as it measured it; a castd serving it on this computer's\nloopback runs the window's screen at that rate, up to its own `--local-fps`.",
295
+ "properties": {
296
+ "height": {
297
+ "format": "uint32",
298
+ "minimum": 0,
299
+ "type": "integer"
300
+ },
301
+ "hz": {
302
+ "format": "double",
303
+ "type": [
304
+ "number",
305
+ "null"
306
+ ]
307
+ },
308
+ "scale": {
309
+ "format": "double",
310
+ "type": "number"
311
+ },
312
+ "type": {
313
+ "const": "resize",
314
+ "type": "string"
315
+ },
316
+ "width": {
317
+ "format": "uint32",
318
+ "minimum": 0,
319
+ "type": "integer"
320
+ }
321
+ },
322
+ "required": [
323
+ "type",
324
+ "width",
325
+ "height",
326
+ "scale"
327
+ ],
328
+ "type": "object"
329
+ },
330
+ {
331
+ "description": "Nobody can see the picture now: stop sending video (and sound) until `resume`.",
332
+ "properties": {
333
+ "type": {
334
+ "const": "pause",
335
+ "type": "string"
336
+ }
337
+ },
338
+ "required": [
339
+ "type"
340
+ ],
341
+ "type": "object"
342
+ },
343
+ {
344
+ "properties": {
345
+ "type": {
346
+ "const": "resume",
347
+ "type": "string"
348
+ }
349
+ },
350
+ "required": [
351
+ "type"
352
+ ],
353
+ "type": "object"
354
+ },
355
+ {
356
+ "description": "Sound on or off for this viewer.",
357
+ "properties": {
358
+ "on": {
359
+ "type": "boolean"
360
+ },
361
+ "type": {
362
+ "const": "audio",
363
+ "type": "string"
364
+ }
365
+ },
366
+ "required": [
367
+ "type",
368
+ "on"
369
+ ],
370
+ "type": "object"
371
+ },
372
+ {
373
+ "description": "The client's liveness and a round-trip probe: echoed as `pong` with the same `t`.",
374
+ "properties": {
375
+ "t": {
376
+ "format": "double",
377
+ "type": "number"
378
+ },
379
+ "type": {
380
+ "const": "ping",
381
+ "type": "string"
382
+ }
383
+ },
384
+ "required": [
385
+ "type",
386
+ "t"
387
+ ],
388
+ "type": "object"
389
+ },
390
+ {
391
+ "description": "An SDP offer for a peer connection straight to castd, which the viewer makes with the [`RTC_CHANNELS`], only where\n`hello` said `rtc`. castd answers `rtcAnswer`, or `rtcClosed` when it cannot take one. Once its `media` channel is\nopen castd says `hello` there and moves the stream onto the channels; until then, and again whenever the peer\nfails, the stream stays on this socket. The offer may also carry one receive-only video section offering H.264\n(packetization mode 1) with NACK, PLI and transport-wide congestion control: a castd that takes it sends the\npictures as RTP on that track instead of on `media` and says so in that hello (`track`); one that does not, an\nolder castd among them, leaves the section silent and the pictures on `media`.",
392
+ "properties": {
393
+ "sdp": {
394
+ "type": "string"
395
+ },
396
+ "type": {
397
+ "const": "rtcOffer",
398
+ "type": "string"
399
+ }
400
+ },
401
+ "required": [
402
+ "type",
403
+ "sdp"
404
+ ],
405
+ "type": "object"
406
+ },
407
+ {
408
+ "description": "One of the viewer's ICE candidates, as the browser's `RTCIceCandidate.candidate` writes it. castd is an ICE-lite\nagent that learns the viewer's address from its checks, so this is never needed and never harmful.",
409
+ "properties": {
410
+ "candidate": {
411
+ "type": "string"
412
+ },
413
+ "sdpMid": {
414
+ "type": [
415
+ "string",
416
+ "null"
417
+ ]
418
+ },
419
+ "type": {
420
+ "const": "rtcCandidate",
421
+ "type": "string"
422
+ }
423
+ },
424
+ "required": [
425
+ "type",
426
+ "candidate"
427
+ ],
428
+ "type": "object"
429
+ },
430
+ {
431
+ "description": "The viewer gave up on its peer connection: castd brings the stream back to this socket with a `hello`.",
432
+ "properties": {
433
+ "type": {
434
+ "const": "rtcClose",
435
+ "type": "string"
436
+ }
437
+ },
438
+ "required": [
439
+ "type"
440
+ ],
441
+ "type": "object"
442
+ },
443
+ {
444
+ "description": "A fresh token for this socket: the one the browser view socket handed the viewer in its latest `media`, sent\nwhenever that does not mean dialling again. castd checks it as at the upgrade and, when it holds and opens the\nsame access the socket has, counts [`MEDIA_TOKEN_GRACE_SECONDS`] from its expiry instead. One that does not hold\nchanges nothing. Taken on the peer's `input` channel as well.",
445
+ "properties": {
446
+ "token": {
447
+ "type": "string"
448
+ },
449
+ "type": {
450
+ "const": "token",
451
+ "type": "string"
452
+ }
453
+ },
454
+ "required": [
455
+ "type",
456
+ "token"
457
+ ],
458
+ "type": "object"
459
+ }
460
+ ],
461
+ "title": "BrowserMediaClientMessage"
462
+ },
463
+ "clipLen": 8,
464
+ "closeCodes": {
465
+ "dropped": 4001,
466
+ "expired": 4002
467
+ },
468
+ "flags": {
469
+ "clip": 4,
470
+ "key": 1,
471
+ "refine": 2
472
+ },
473
+ "headerLen": 16,
474
+ "kinds": {
475
+ "audio": 2,
476
+ "lossless": 3,
477
+ "video": 1
478
+ },
479
+ "listenerHeader": "x-intentic-listener",
480
+ "loopback": "loopback",
481
+ "losslessQuery": "lossless",
482
+ "path": "/system/browser-media",
483
+ "rtcChannels": {
484
+ "audio": {
485
+ "maxRetransmits": 0,
486
+ "ordered": false
487
+ },
488
+ "input": {
489
+ "maxRetransmits": null,
490
+ "ordered": true
491
+ },
492
+ "media": {
493
+ "maxRetransmits": null,
494
+ "ordered": true
495
+ },
496
+ "pointer": {
497
+ "maxRetransmits": 0,
498
+ "ordered": false
499
+ }
500
+ },
501
+ "rtcMessageMax": 32768,
502
+ "server": {
503
+ "$defs": {
504
+ "ClipboardContent": {
505
+ "description": "What a clipboard holds, either way across a media socket: plain text, HTML, and a PNG (base64), any of them absent.",
506
+ "properties": {
507
+ "html": {
508
+ "type": [
509
+ "string",
510
+ "null"
511
+ ]
512
+ },
513
+ "png": {
514
+ "type": [
515
+ "string",
516
+ "null"
517
+ ]
518
+ },
519
+ "text": {
520
+ "type": [
521
+ "string",
522
+ "null"
523
+ ]
524
+ }
525
+ },
526
+ "type": "object"
527
+ },
528
+ "MediaAudio": {
529
+ "description": "The sound a media socket carries, when it carries any.",
530
+ "properties": {
531
+ "channels": {
532
+ "format": "uint8",
533
+ "maximum": 255,
534
+ "minimum": 0,
535
+ "type": "integer"
536
+ },
537
+ "codec": {
538
+ "description": "The WebCodecs codec string, `opus`.",
539
+ "type": "string"
540
+ },
541
+ "sampleRate": {
542
+ "format": "uint32",
543
+ "minimum": 0,
544
+ "type": "integer"
545
+ }
546
+ },
547
+ "required": [
548
+ "codec",
549
+ "sampleRate",
550
+ "channels"
551
+ ],
552
+ "type": "object"
553
+ },
554
+ "MediaCursor": {
555
+ "description": "The pointer's look over the picture: a CSS keyword, or the X server's own cursor image (a native menu's, a resize\nedge's), a PNG in base64 with its hotspot, in picture pixels.",
556
+ "properties": {
557
+ "css": {
558
+ "type": [
559
+ "string",
560
+ "null"
561
+ ]
562
+ },
563
+ "hotX": {
564
+ "format": "uint32",
565
+ "minimum": 0,
566
+ "type": [
567
+ "integer",
568
+ "null"
569
+ ]
570
+ },
571
+ "hotY": {
572
+ "format": "uint32",
573
+ "minimum": 0,
574
+ "type": [
575
+ "integer",
576
+ "null"
577
+ ]
578
+ },
579
+ "png": {
580
+ "type": [
581
+ "string",
582
+ "null"
583
+ ]
584
+ }
585
+ },
586
+ "type": "object"
587
+ }
588
+ },
589
+ "description": "What a media socket sends as JSON text; the pictures and sound travel as binary messages with the\n[`MEDIA_HEADER_LEN`]-byte header.",
590
+ "oneOf": [
591
+ {
592
+ "description": "What the pictures after this one are: their size in display pixels, `scale` of them per CSS pixel, the H.264\ncodec string read off the stream, and the sound's format when there is sound. Sent first, and again whenever\nthe picture changes shape; a keyframe follows it. `readOnly`: input from this viewer is ignored.",
593
+ "properties": {
594
+ "audio": {
595
+ "anyOf": [
596
+ {
597
+ "$ref": "#/$defs/MediaAudio"
598
+ },
599
+ {
600
+ "type": "null"
601
+ }
602
+ ]
603
+ },
604
+ "codec": {
605
+ "type": "string"
606
+ },
607
+ "height": {
608
+ "format": "uint32",
609
+ "minimum": 0,
610
+ "type": "integer"
611
+ },
612
+ "local": {
613
+ "description": "This viewer reaches castd on the loopback of the computer the sandbox runs on (netd said so): while it\ndrives, castd encodes at the quality a link that is no network allows, and, where it asked for\n[`MEDIA_LOSSLESS_QUERY`], sends it `clip`ped frames and `lossless` rectangles. Absent otherwise.",
614
+ "type": [
615
+ "boolean",
616
+ "null"
617
+ ]
618
+ },
619
+ "readOnly": {
620
+ "type": "boolean"
621
+ },
622
+ "rtc": {
623
+ "description": "castd takes a peer connection on this window (`rtcOffer`): it serves one on an address a viewer on its\nnetwork may reach. Absent from a castd that serves none.",
624
+ "type": [
625
+ "boolean",
626
+ "null"
627
+ ]
628
+ },
629
+ "scale": {
630
+ "format": "double",
631
+ "type": "number"
632
+ },
633
+ "track": {
634
+ "description": "The pictures after this hello ride the peer's video track as RTP (the offer had one and castd took it), not\n`media`: the browser's own jitter buffer and decoder show them, NACK and PLI repair them, and castd's\nbitrate follows the track's congestion control. Only in a hello on the peer; absent, video is on `media`.",
635
+ "type": [
636
+ "boolean",
637
+ "null"
638
+ ]
639
+ },
640
+ "type": {
641
+ "const": "hello",
642
+ "type": "string"
643
+ },
644
+ "width": {
645
+ "format": "uint32",
646
+ "minimum": 0,
647
+ "type": "integer"
648
+ }
649
+ },
650
+ "required": [
651
+ "type",
652
+ "width",
653
+ "height",
654
+ "scale",
655
+ "codec",
656
+ "readOnly"
657
+ ],
658
+ "type": "object"
659
+ },
660
+ {
661
+ "description": "The pointer's look changed.",
662
+ "properties": {
663
+ "cursor": {
664
+ "$ref": "#/$defs/MediaCursor"
665
+ },
666
+ "type": {
667
+ "const": "cursor",
668
+ "type": "string"
669
+ }
670
+ },
671
+ "required": [
672
+ "type",
673
+ "cursor"
674
+ ],
675
+ "type": "object"
676
+ },
677
+ {
678
+ "description": "Where the pointer is on the picture, in picture pixels (outside it when the pointer is on another part of the\nscreen), each time it moves there: the person at the computer, an app warping it, or this viewer's own moves\nas they landed. At most one a captured frame's worth of time; on the peer it rides `pointer` where the viewer\nopened that channel. A viewer that does not know it passes it over.",
679
+ "properties": {
680
+ "type": {
681
+ "const": "pointer",
682
+ "type": "string"
683
+ },
684
+ "x": {
685
+ "format": "int32",
686
+ "type": "integer"
687
+ },
688
+ "y": {
689
+ "format": "int32",
690
+ "type": "integer"
691
+ }
692
+ },
693
+ "required": [
694
+ "type",
695
+ "x",
696
+ "y"
697
+ ],
698
+ "type": "object"
699
+ },
700
+ {
701
+ "description": "The remote clipboard changed (the page copied, or Ctrl+C in it): for the person's own clipboard.",
702
+ "properties": {
703
+ "content": {
704
+ "$ref": "#/$defs/ClipboardContent"
705
+ },
706
+ "type": {
707
+ "const": "clipboard",
708
+ "type": "string"
709
+ }
710
+ },
711
+ "required": [
712
+ "type",
713
+ "content"
714
+ ],
715
+ "type": "object"
716
+ },
717
+ {
718
+ "description": "How the stream is doing, about once a second: the round trip, the bitrate castd aims for, frames sent in the\nlast second, and how long frames wait unacknowledged.",
719
+ "properties": {
720
+ "fps": {
721
+ "format": "double",
722
+ "type": "number"
723
+ },
724
+ "queueMs": {
725
+ "format": "double",
726
+ "type": "number"
727
+ },
728
+ "rttMs": {
729
+ "format": "double",
730
+ "type": "number"
731
+ },
732
+ "targetKbps": {
733
+ "format": "uint32",
734
+ "minimum": 0,
735
+ "type": "integer"
736
+ },
737
+ "type": {
738
+ "const": "stats",
739
+ "type": "string"
740
+ }
741
+ },
742
+ "required": [
743
+ "type",
744
+ "rttMs",
745
+ "targetKbps",
746
+ "fps",
747
+ "queueMs"
748
+ ],
749
+ "type": "object"
750
+ },
751
+ {
752
+ "properties": {
753
+ "t": {
754
+ "format": "double",
755
+ "type": "number"
756
+ },
757
+ "type": {
758
+ "const": "pong",
759
+ "type": "string"
760
+ }
761
+ },
762
+ "required": [
763
+ "type",
764
+ "t"
765
+ ],
766
+ "type": "object"
767
+ },
768
+ {
769
+ "description": "The window's media is gone for good, in words for the person; the viewer must not reconnect.",
770
+ "properties": {
771
+ "message": {
772
+ "type": "string"
773
+ },
774
+ "type": {
775
+ "const": "error",
776
+ "type": "string"
777
+ }
778
+ },
779
+ "required": [
780
+ "type",
781
+ "message"
782
+ ],
783
+ "type": "object"
784
+ },
785
+ {
786
+ "description": "castd's answer to `rtcOffer`: its candidates are in it (ICE-lite, host candidates only), so nothing trickles.",
787
+ "properties": {
788
+ "sdp": {
789
+ "type": "string"
790
+ },
791
+ "type": {
792
+ "const": "rtcAnswer",
793
+ "type": "string"
794
+ }
795
+ },
796
+ "required": [
797
+ "type",
798
+ "sdp"
799
+ ],
800
+ "type": "object"
801
+ },
802
+ {
803
+ "description": "castd let go of the viewer's peer connection, or never took it, in words for a log: the stream is on this socket,\nand a `hello` here says so before any picture.",
804
+ "properties": {
805
+ "reason": {
806
+ "type": "string"
807
+ },
808
+ "type": {
809
+ "const": "rtcClosed",
810
+ "type": "string"
811
+ }
812
+ },
813
+ "required": [
814
+ "type",
815
+ "reason"
816
+ ],
817
+ "type": "object"
818
+ }
819
+ ],
820
+ "title": "BrowserMediaServerMessage"
821
+ },
822
+ "socketDir": "/run/intentic/cast",
823
+ "tokenGraceSeconds": 600
824
+ },
2
825
  "browserView": {
3
826
  "client": {
4
827
  "$defs": {
@@ -484,6 +1307,19 @@
484
1307
  "type"
485
1308
  ],
486
1309
  "type": "object"
1310
+ },
1311
+ {
1312
+ "description": "A fresh `media` now: the viewer must dial its media socket again and the token it holds has lapsed. Answered\nonly where the window has a castd; elsewhere it is nothing.",
1313
+ "properties": {
1314
+ "type": {
1315
+ "const": "media",
1316
+ "type": "string"
1317
+ }
1318
+ },
1319
+ "required": [
1320
+ "type"
1321
+ ],
1322
+ "type": "object"
487
1323
  }
488
1324
  ],
489
1325
  "title": "BrowserViewClientMessage"
@@ -754,11 +1590,52 @@
754
1590
  "type"
755
1591
  ],
756
1592
  "type": "object"
1593
+ },
1594
+ {
1595
+ "description": "This window's pictures, sound, pointer, keys and clipboard travel on a media socket of their own, answered by the\nwindow's media daemon (castd) rather than by Node: dial `path` with `?token=`, and expect no pictures on this\nsocket. Sent once the window has a castd, and again with a fresh token before the last one expires; absent while\nthe window is shown the old way (no castd on this sandbox, or a browser with no display), whose pictures keep\narriving here. What drives the browser as a program (tabs, addresses, dialogs, `emulate`) stays on this socket.",
1596
+ "properties": {
1597
+ "expiresAt": {
1598
+ "description": "When the token stops being accepted for a new connection, in milliseconds since the epoch. A socket already\nopen is not closed by it. A JSON number: milliseconds since the epoch stay far inside a double's exact range.",
1599
+ "format": "uint64",
1600
+ "minimum": 0,
1601
+ "type": "integer"
1602
+ },
1603
+ "path": {
1604
+ "type": "string"
1605
+ },
1606
+ "token": {
1607
+ "type": "string"
1608
+ },
1609
+ "type": {
1610
+ "const": "media",
1611
+ "type": "string"
1612
+ }
1613
+ },
1614
+ "required": [
1615
+ "type",
1616
+ "path",
1617
+ "token",
1618
+ "expiresAt"
1619
+ ],
1620
+ "type": "object"
757
1621
  }
758
1622
  ],
759
1623
  "title": "BrowserViewServerMessage"
760
1624
  }
761
1625
  },
1626
+ "device": {
1627
+ "closeCodes": {
1628
+ "displaced": 4001,
1629
+ "withdrawn": 4003
1630
+ },
1631
+ "header": "x-intentic-device",
1632
+ "mediaPath": "/system/device-media",
1633
+ "mediaUpstream": "/media",
1634
+ "socketDir": "/run/intentic/devices",
1635
+ "terminalPath": "/system/device-terminal",
1636
+ "terminalUpstream": "/terminal",
1637
+ "uplinkPath": "/system/device-uplink"
1638
+ },
762
1639
  "edge": {
763
1640
  "verdictHeader": "x-intentic-edge",
764
1641
  "verdicts": {
@@ -783,6 +1660,16 @@
783
1660
  "title": "EdgeVerdict"
784
1661
  }
785
1662
  },
1663
+ "runner": {
1664
+ "closeCodes": {
1665
+ "displaced": 4001,
1666
+ "withdrawn": 4003
1667
+ },
1668
+ "header": "x-intentic-runner",
1669
+ "uplinkPath": "/system/runner-uplink",
1670
+ "viewPath": "/system/runner-view",
1671
+ "viewTicket": "ticket"
1672
+ },
786
1673
  "terminal": {
787
1674
  "client": {
788
1675
  "description": "What the browser sends on a terminal socket, each a JSON text message.",
@@ -856,6 +1743,23 @@
856
1743
  "type"
857
1744
  ],
858
1745
  "type": "object"
1746
+ },
1747
+ {
1748
+ "description": "A fresher token for the socket, as a media socket takes one (`BrowserMediaClientMessage`'s `token`): a connected\ncomputer's terminal ([`DEVICE_TERMINAL_PATH`]) checks its token at the upgrade and keeps the socket open\n[`MEDIA_TOKEN_GRACE_SECONDS`] past the newest one's expiry. The sandbox's own terminal is opened with a ticket and\nignores it (2026-11-20).",
1749
+ "properties": {
1750
+ "token": {
1751
+ "type": "string"
1752
+ },
1753
+ "type": {
1754
+ "const": "token",
1755
+ "type": "string"
1756
+ }
1757
+ },
1758
+ "required": [
1759
+ "type",
1760
+ "token"
1761
+ ],
1762
+ "type": "object"
859
1763
  }
860
1764
  ],
861
1765
  "title": "TerminalClientMessage"