@cuna_labs/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +9 -0
  3. package/README.md +169 -0
  4. package/THIRD_PARTY_NOTICES.md +29 -0
  5. package/dist/api/capability-evidence.d.ts +19 -0
  6. package/dist/api/capability-evidence.d.ts.map +1 -0
  7. package/dist/api/capability-evidence.js +38 -0
  8. package/dist/api/capability-evidence.js.map +1 -0
  9. package/dist/api/client.d.ts +167 -0
  10. package/dist/api/client.d.ts.map +1 -0
  11. package/dist/api/client.js +937 -0
  12. package/dist/api/client.js.map +1 -0
  13. package/dist/api/contracts.d.ts +345 -0
  14. package/dist/api/contracts.d.ts.map +1 -0
  15. package/dist/api/contracts.js +976 -0
  16. package/dist/api/contracts.js.map +1 -0
  17. package/dist/api/execution-workspaces.d.ts +17 -0
  18. package/dist/api/execution-workspaces.d.ts.map +1 -0
  19. package/dist/api/execution-workspaces.js +46 -0
  20. package/dist/api/execution-workspaces.js.map +1 -0
  21. package/dist/api/http.d.ts +76 -0
  22. package/dist/api/http.d.ts.map +1 -0
  23. package/dist/api/http.js +838 -0
  24. package/dist/api/http.js.map +1 -0
  25. package/dist/api/managed-executions.d.ts +37 -0
  26. package/dist/api/managed-executions.d.ts.map +1 -0
  27. package/dist/api/managed-executions.js +80 -0
  28. package/dist/api/managed-executions.js.map +1 -0
  29. package/dist/api/observer-v2-schema.d.ts +206 -0
  30. package/dist/api/observer-v2-schema.d.ts.map +1 -0
  31. package/dist/api/observer-v2-schema.js +264 -0
  32. package/dist/api/observer-v2-schema.js.map +1 -0
  33. package/dist/api/observer-v2.d.ts +33 -0
  34. package/dist/api/observer-v2.d.ts.map +1 -0
  35. package/dist/api/observer-v2.js +60 -0
  36. package/dist/api/observer-v2.js.map +1 -0
  37. package/dist/api/owner-observe-grants-v2-schema.d.ts +678 -0
  38. package/dist/api/owner-observe-grants-v2-schema.d.ts.map +1 -0
  39. package/dist/api/owner-observe-grants-v2-schema.js +887 -0
  40. package/dist/api/owner-observe-grants-v2-schema.js.map +1 -0
  41. package/dist/api/owner-observe-grants-v2.d.ts +268 -0
  42. package/dist/api/owner-observe-grants-v2.d.ts.map +1 -0
  43. package/dist/api/owner-observe-grants-v2.js +604 -0
  44. package/dist/api/owner-observe-grants-v2.js.map +1 -0
  45. package/dist/api/provider-v2-schema.d.ts +293 -0
  46. package/dist/api/provider-v2-schema.d.ts.map +1 -0
  47. package/dist/api/provider-v2-schema.js +381 -0
  48. package/dist/api/provider-v2-schema.js.map +1 -0
  49. package/dist/api/provider-v2.d.ts +55 -0
  50. package/dist/api/provider-v2.d.ts.map +1 -0
  51. package/dist/api/provider-v2.js +54 -0
  52. package/dist/api/provider-v2.js.map +1 -0
  53. package/dist/api/remote-workspace.d.ts +29 -0
  54. package/dist/api/remote-workspace.d.ts.map +1 -0
  55. package/dist/api/remote-workspace.js +62 -0
  56. package/dist/api/remote-workspace.js.map +1 -0
  57. package/dist/api/supervisor-live-update.d.ts +248 -0
  58. package/dist/api/supervisor-live-update.d.ts.map +1 -0
  59. package/dist/api/supervisor-live-update.js +434 -0
  60. package/dist/api/supervisor-live-update.js.map +1 -0
  61. package/dist/api/terminal-reason.d.ts +5 -0
  62. package/dist/api/terminal-reason.d.ts.map +1 -0
  63. package/dist/api/terminal-reason.js +12 -0
  64. package/dist/api/terminal-reason.js.map +1 -0
  65. package/dist/auth/browser-handoff.d.ts +59 -0
  66. package/dist/auth/browser-handoff.d.ts.map +1 -0
  67. package/dist/auth/browser-handoff.js +33 -0
  68. package/dist/auth/browser-handoff.js.map +1 -0
  69. package/dist/auth/browser.d.ts +11 -0
  70. package/dist/auth/browser.d.ts.map +1 -0
  71. package/dist/auth/browser.js +47 -0
  72. package/dist/auth/browser.js.map +1 -0
  73. package/dist/auth/human-client.d.ts +39 -0
  74. package/dist/auth/human-client.d.ts.map +1 -0
  75. package/dist/auth/human-client.js +66 -0
  76. package/dist/auth/human-client.js.map +1 -0
  77. package/dist/auth/human-contracts.d.ts +52 -0
  78. package/dist/auth/human-contracts.d.ts.map +1 -0
  79. package/dist/auth/human-contracts.js +229 -0
  80. package/dist/auth/human-contracts.js.map +1 -0
  81. package/dist/auth/human-session.d.ts +48 -0
  82. package/dist/auth/human-session.d.ts.map +1 -0
  83. package/dist/auth/human-session.js +902 -0
  84. package/dist/auth/human-session.js.map +1 -0
  85. package/dist/auth/onboarding-state.d.ts +31 -0
  86. package/dist/auth/onboarding-state.d.ts.map +1 -0
  87. package/dist/auth/onboarding-state.js +52 -0
  88. package/dist/auth/onboarding-state.js.map +1 -0
  89. package/dist/auth/pkce.d.ts +15 -0
  90. package/dist/auth/pkce.d.ts.map +1 -0
  91. package/dist/auth/pkce.js +19 -0
  92. package/dist/auth/pkce.js.map +1 -0
  93. package/dist/bin/cuna.d.ts +3 -0
  94. package/dist/bin/cuna.d.ts.map +1 -0
  95. package/dist/bin/cuna.js +4 -0
  96. package/dist/bin/cuna.js.map +1 -0
  97. package/dist/build-identity.d.ts +20 -0
  98. package/dist/build-identity.d.ts.map +1 -0
  99. package/dist/build-identity.js +77 -0
  100. package/dist/build-identity.js.map +1 -0
  101. package/dist/cli/command-help.d.ts +9 -0
  102. package/dist/cli/command-help.d.ts.map +1 -0
  103. package/dist/cli/command-help.js +324 -0
  104. package/dist/cli/command-help.js.map +1 -0
  105. package/dist/cli/help.d.ts +40 -0
  106. package/dist/cli/help.d.ts.map +1 -0
  107. package/dist/cli/help.js +256 -0
  108. package/dist/cli/help.js.map +1 -0
  109. package/dist/cli/output.d.ts +28 -0
  110. package/dist/cli/output.d.ts.map +1 -0
  111. package/dist/cli/output.js +95 -0
  112. package/dist/cli/output.js.map +1 -0
  113. package/dist/cli/parser.d.ts +65 -0
  114. package/dist/cli/parser.d.ts.map +1 -0
  115. package/dist/cli/parser.js +294 -0
  116. package/dist/cli/parser.js.map +1 -0
  117. package/dist/cli/process-entrypoint.d.ts +18 -0
  118. package/dist/cli/process-entrypoint.d.ts.map +1 -0
  119. package/dist/cli/process-entrypoint.js +26 -0
  120. package/dist/cli/process-entrypoint.js.map +1 -0
  121. package/dist/cli/run.d.ts +114 -0
  122. package/dist/cli/run.d.ts.map +1 -0
  123. package/dist/cli/run.js +1969 -0
  124. package/dist/cli/run.js.map +1 -0
  125. package/dist/commands/commands.d.ts +74 -0
  126. package/dist/commands/commands.d.ts.map +1 -0
  127. package/dist/commands/commands.js +2814 -0
  128. package/dist/commands/commands.js.map +1 -0
  129. package/dist/config/config.d.ts +86 -0
  130. package/dist/config/config.d.ts.map +1 -0
  131. package/dist/config/config.js +323 -0
  132. package/dist/config/config.js.map +1 -0
  133. package/dist/config/infra-contract-witness.d.ts +29 -0
  134. package/dist/config/infra-contract-witness.d.ts.map +1 -0
  135. package/dist/config/infra-contract-witness.js +30 -0
  136. package/dist/config/infra-contract-witness.js.map +1 -0
  137. package/dist/core/browser-url.d.ts +2 -0
  138. package/dist/core/browser-url.d.ts.map +1 -0
  139. package/dist/core/browser-url.js +20 -0
  140. package/dist/core/browser-url.js.map +1 -0
  141. package/dist/core/deployed-wire-compatibility.d.ts +15 -0
  142. package/dist/core/deployed-wire-compatibility.d.ts.map +1 -0
  143. package/dist/core/deployed-wire-compatibility.js +15 -0
  144. package/dist/core/deployed-wire-compatibility.js.map +1 -0
  145. package/dist/core/errors.d.ts +59 -0
  146. package/dist/core/errors.d.ts.map +1 -0
  147. package/dist/core/errors.js +82 -0
  148. package/dist/core/errors.js.map +1 -0
  149. package/dist/core/exit-codes.d.ts +68 -0
  150. package/dist/core/exit-codes.d.ts.map +1 -0
  151. package/dist/core/exit-codes.js +84 -0
  152. package/dist/core/exit-codes.js.map +1 -0
  153. package/dist/core/instant.d.ts +60 -0
  154. package/dist/core/instant.d.ts.map +1 -0
  155. package/dist/core/instant.js +90 -0
  156. package/dist/core/instant.js.map +1 -0
  157. package/dist/core/namespace.d.ts +171 -0
  158. package/dist/core/namespace.d.ts.map +1 -0
  159. package/dist/core/namespace.js +227 -0
  160. package/dist/core/namespace.js.map +1 -0
  161. package/dist/core/observation-budget.d.ts +185 -0
  162. package/dist/core/observation-budget.d.ts.map +1 -0
  163. package/dist/core/observation-budget.js +209 -0
  164. package/dist/core/observation-budget.js.map +1 -0
  165. package/dist/core/product-web.d.ts +81 -0
  166. package/dist/core/product-web.d.ts.map +1 -0
  167. package/dist/core/product-web.js +87 -0
  168. package/dist/core/product-web.js.map +1 -0
  169. package/dist/core/validation.d.ts +90 -0
  170. package/dist/core/validation.d.ts.map +1 -0
  171. package/dist/core/validation.js +199 -0
  172. package/dist/core/validation.js.map +1 -0
  173. package/dist/credentials/contracts.d.ts +82 -0
  174. package/dist/credentials/contracts.d.ts.map +1 -0
  175. package/dist/credentials/contracts.js +2 -0
  176. package/dist/credentials/contracts.js.map +1 -0
  177. package/dist/credentials/errors.d.ts +19 -0
  178. package/dist/credentials/errors.d.ts.map +1 -0
  179. package/dist/credentials/errors.js +16 -0
  180. package/dist/credentials/errors.js.map +1 -0
  181. package/dist/credentials/index.d.ts +6 -0
  182. package/dist/credentials/index.d.ts.map +1 -0
  183. package/dist/credentials/index.js +6 -0
  184. package/dist/credentials/index.js.map +1 -0
  185. package/dist/credentials/local-session.d.ts +101 -0
  186. package/dist/credentials/local-session.d.ts.map +1 -0
  187. package/dist/credentials/local-session.js +839 -0
  188. package/dist/credentials/local-session.js.map +1 -0
  189. package/dist/credentials/secret-material.d.ts +17 -0
  190. package/dist/credentials/secret-material.d.ts.map +1 -0
  191. package/dist/credentials/secret-material.js +49 -0
  192. package/dist/credentials/secret-material.js.map +1 -0
  193. package/dist/credentials/vault.d.ts +41 -0
  194. package/dist/credentials/vault.d.ts.map +1 -0
  195. package/dist/credentials/vault.js +719 -0
  196. package/dist/credentials/vault.js.map +1 -0
  197. package/dist/daemon/endpoint.d.ts +29 -0
  198. package/dist/daemon/endpoint.d.ts.map +1 -0
  199. package/dist/daemon/endpoint.js +66 -0
  200. package/dist/daemon/endpoint.js.map +1 -0
  201. package/dist/daemon/journal.d.ts +62 -0
  202. package/dist/daemon/journal.d.ts.map +1 -0
  203. package/dist/daemon/journal.js +299 -0
  204. package/dist/daemon/journal.js.map +1 -0
  205. package/dist/daemon/lease.d.ts +25 -0
  206. package/dist/daemon/lease.d.ts.map +1 -0
  207. package/dist/daemon/lease.js +94 -0
  208. package/dist/daemon/lease.js.map +1 -0
  209. package/dist/daemon/lifecycle.d.ts +14 -0
  210. package/dist/daemon/lifecycle.d.ts.map +1 -0
  211. package/dist/daemon/lifecycle.js +29 -0
  212. package/dist/daemon/lifecycle.js.map +1 -0
  213. package/dist/daemon/protocol.d.ts +65 -0
  214. package/dist/daemon/protocol.d.ts.map +1 -0
  215. package/dist/daemon/protocol.js +194 -0
  216. package/dist/daemon/protocol.js.map +1 -0
  217. package/dist/daemon/supervisor.d.ts +29 -0
  218. package/dist/daemon/supervisor.d.ts.map +1 -0
  219. package/dist/daemon/supervisor.js +87 -0
  220. package/dist/daemon/supervisor.js.map +1 -0
  221. package/dist/daemon/views.d.ts +31 -0
  222. package/dist/daemon/views.d.ts.map +1 -0
  223. package/dist/daemon/views.js +86 -0
  224. package/dist/daemon/views.js.map +1 -0
  225. package/dist/index.d.ts +38 -0
  226. package/dist/index.d.ts.map +1 -0
  227. package/dist/index.js +38 -0
  228. package/dist/index.js.map +1 -0
  229. package/dist/journey/api-effects.d.ts +59 -0
  230. package/dist/journey/api-effects.d.ts.map +1 -0
  231. package/dist/journey/api-effects.js +386 -0
  232. package/dist/journey/api-effects.js.map +1 -0
  233. package/dist/journey/derived-identity.d.ts +91 -0
  234. package/dist/journey/derived-identity.d.ts.map +1 -0
  235. package/dist/journey/derived-identity.js +123 -0
  236. package/dist/journey/derived-identity.js.map +1 -0
  237. package/dist/journey/index.d.ts +6 -0
  238. package/dist/journey/index.d.ts.map +1 -0
  239. package/dist/journey/index.js +6 -0
  240. package/dist/journey/index.js.map +1 -0
  241. package/dist/journey/intent.d.ts +36 -0
  242. package/dist/journey/intent.d.ts.map +1 -0
  243. package/dist/journey/intent.js +191 -0
  244. package/dist/journey/intent.js.map +1 -0
  245. package/dist/journey/orchestrator.d.ts +140 -0
  246. package/dist/journey/orchestrator.d.ts.map +1 -0
  247. package/dist/journey/orchestrator.js +415 -0
  248. package/dist/journey/orchestrator.js.map +1 -0
  249. package/dist/journey/provider-launch-intent.d.ts +12 -0
  250. package/dist/journey/provider-launch-intent.d.ts.map +1 -0
  251. package/dist/journey/provider-launch-intent.js +40 -0
  252. package/dist/journey/provider-launch-intent.js.map +1 -0
  253. package/dist/journey/remote-workspace.d.ts +34 -0
  254. package/dist/journey/remote-workspace.d.ts.map +1 -0
  255. package/dist/journey/remote-workspace.js +91 -0
  256. package/dist/journey/remote-workspace.js.map +1 -0
  257. package/dist/journey/root-entry.d.ts +56 -0
  258. package/dist/journey/root-entry.d.ts.map +1 -0
  259. package/dist/journey/root-entry.js +19 -0
  260. package/dist/journey/root-entry.js.map +1 -0
  261. package/dist/journey/selection.d.ts +165 -0
  262. package/dist/journey/selection.d.ts.map +1 -0
  263. package/dist/journey/selection.js +565 -0
  264. package/dist/journey/selection.js.map +1 -0
  265. package/dist/journey/session-failure.d.ts +4 -0
  266. package/dist/journey/session-failure.d.ts.map +1 -0
  267. package/dist/journey/session-failure.js +28 -0
  268. package/dist/journey/session-failure.js.map +1 -0
  269. package/dist/journey/workspace-effects.d.ts +30 -0
  270. package/dist/journey/workspace-effects.d.ts.map +1 -0
  271. package/dist/journey/workspace-effects.js +348 -0
  272. package/dist/journey/workspace-effects.js.map +1 -0
  273. package/dist/local-actions/broker.d.ts +32 -0
  274. package/dist/local-actions/broker.d.ts.map +1 -0
  275. package/dist/local-actions/broker.js +400 -0
  276. package/dist/local-actions/broker.js.map +1 -0
  277. package/dist/local-actions/browser-action.d.ts +78 -0
  278. package/dist/local-actions/browser-action.d.ts.map +1 -0
  279. package/dist/local-actions/browser-action.js +307 -0
  280. package/dist/local-actions/browser-action.js.map +1 -0
  281. package/dist/local-actions/callback-relay.d.ts +45 -0
  282. package/dist/local-actions/callback-relay.d.ts.map +1 -0
  283. package/dist/local-actions/callback-relay.js +265 -0
  284. package/dist/local-actions/callback-relay.js.map +1 -0
  285. package/dist/local-actions/clipboard.d.ts +3 -0
  286. package/dist/local-actions/clipboard.d.ts.map +1 -0
  287. package/dist/local-actions/clipboard.js +18 -0
  288. package/dist/local-actions/clipboard.js.map +1 -0
  289. package/dist/local-actions/contracts.d.ts +63 -0
  290. package/dist/local-actions/contracts.d.ts.map +1 -0
  291. package/dist/local-actions/contracts.js +18 -0
  292. package/dist/local-actions/contracts.js.map +1 -0
  293. package/dist/local-actions/desktop-presentation.d.ts +141 -0
  294. package/dist/local-actions/desktop-presentation.d.ts.map +1 -0
  295. package/dist/local-actions/desktop-presentation.js +253 -0
  296. package/dist/local-actions/desktop-presentation.js.map +1 -0
  297. package/dist/local-actions/device-selection.d.ts +43 -0
  298. package/dist/local-actions/device-selection.d.ts.map +1 -0
  299. package/dist/local-actions/device-selection.js +154 -0
  300. package/dist/local-actions/device-selection.js.map +1 -0
  301. package/dist/local-actions/executor.d.ts +49 -0
  302. package/dist/local-actions/executor.d.ts.map +1 -0
  303. package/dist/local-actions/executor.js +329 -0
  304. package/dist/local-actions/executor.js.map +1 -0
  305. package/dist/local-actions/file-transfers.d.ts +141 -0
  306. package/dist/local-actions/file-transfers.d.ts.map +1 -0
  307. package/dist/local-actions/file-transfers.js +446 -0
  308. package/dist/local-actions/file-transfers.js.map +1 -0
  309. package/dist/local-actions/foreground-notifications.d.ts +45 -0
  310. package/dist/local-actions/foreground-notifications.d.ts.map +1 -0
  311. package/dist/local-actions/foreground-notifications.js +163 -0
  312. package/dist/local-actions/foreground-notifications.js.map +1 -0
  313. package/dist/local-actions/git-signing.d.ts +39 -0
  314. package/dist/local-actions/git-signing.d.ts.map +1 -0
  315. package/dist/local-actions/git-signing.js +135 -0
  316. package/dist/local-actions/git-signing.js.map +1 -0
  317. package/dist/local-actions/index.d.ts +19 -0
  318. package/dist/local-actions/index.d.ts.map +1 -0
  319. package/dist/local-actions/index.js +19 -0
  320. package/dist/local-actions/index.js.map +1 -0
  321. package/dist/local-actions/local-service-actions.d.ts +87 -0
  322. package/dist/local-actions/local-service-actions.d.ts.map +1 -0
  323. package/dist/local-actions/local-service-actions.js +347 -0
  324. package/dist/local-actions/local-service-actions.js.map +1 -0
  325. package/dist/local-actions/loopback.d.ts +5 -0
  326. package/dist/local-actions/loopback.d.ts.map +1 -0
  327. package/dist/local-actions/loopback.js +15 -0
  328. package/dist/local-actions/loopback.js.map +1 -0
  329. package/dist/local-actions/policy-store.d.ts +7 -0
  330. package/dist/local-actions/policy-store.d.ts.map +1 -0
  331. package/dist/local-actions/policy-store.js +70 -0
  332. package/dist/local-actions/policy-store.js.map +1 -0
  333. package/dist/local-actions/policy.d.ts +21 -0
  334. package/dist/local-actions/policy.d.ts.map +1 -0
  335. package/dist/local-actions/policy.js +43 -0
  336. package/dist/local-actions/policy.js.map +1 -0
  337. package/dist/local-actions/private-port-forward.d.ts +36 -0
  338. package/dist/local-actions/private-port-forward.d.ts.map +1 -0
  339. package/dist/local-actions/private-port-forward.js +154 -0
  340. package/dist/local-actions/private-port-forward.js.map +1 -0
  341. package/dist/local-actions/provider-mcp-config.d.ts +101 -0
  342. package/dist/local-actions/provider-mcp-config.d.ts.map +1 -0
  343. package/dist/local-actions/provider-mcp-config.js +166 -0
  344. package/dist/local-actions/provider-mcp-config.js.map +1 -0
  345. package/dist/local-actions/providers.d.ts +12 -0
  346. package/dist/local-actions/providers.d.ts.map +1 -0
  347. package/dist/local-actions/providers.js +42 -0
  348. package/dist/local-actions/providers.js.map +1 -0
  349. package/dist/local-actions/schemas.d.ts +4 -0
  350. package/dist/local-actions/schemas.d.ts.map +1 -0
  351. package/dist/local-actions/schemas.js +314 -0
  352. package/dist/local-actions/schemas.js.map +1 -0
  353. package/dist/local-actions/sensitive-consent.d.ts +32 -0
  354. package/dist/local-actions/sensitive-consent.d.ts.map +1 -0
  355. package/dist/local-actions/sensitive-consent.js +47 -0
  356. package/dist/local-actions/sensitive-consent.js.map +1 -0
  357. package/dist/machines/command-launch.d.ts +17 -0
  358. package/dist/machines/command-launch.d.ts.map +1 -0
  359. package/dist/machines/command-launch.js +52 -0
  360. package/dist/machines/command-launch.js.map +1 -0
  361. package/dist/machines/execution-receipt.d.ts +18 -0
  362. package/dist/machines/execution-receipt.d.ts.map +1 -0
  363. package/dist/machines/execution-receipt.js +87 -0
  364. package/dist/machines/execution-receipt.js.map +1 -0
  365. package/dist/machines/executions-screen.d.ts +6 -0
  366. package/dist/machines/executions-screen.d.ts.map +1 -0
  367. package/dist/machines/executions-screen.js +410 -0
  368. package/dist/machines/executions-screen.js.map +1 -0
  369. package/dist/machines/explorer.d.ts +75 -0
  370. package/dist/machines/explorer.d.ts.map +1 -0
  371. package/dist/machines/explorer.js +1726 -0
  372. package/dist/machines/explorer.js.map +1 -0
  373. package/dist/machines/live-supervisor-update.d.ts +325 -0
  374. package/dist/machines/live-supervisor-update.d.ts.map +1 -0
  375. package/dist/machines/live-supervisor-update.js +513 -0
  376. package/dist/machines/live-supervisor-update.js.map +1 -0
  377. package/dist/machines/machine-first.d.ts +123 -0
  378. package/dist/machines/machine-first.d.ts.map +1 -0
  379. package/dist/machines/machine-first.js +119 -0
  380. package/dist/machines/machine-first.js.map +1 -0
  381. package/dist/machines/opencode-supervisor.d.ts +51 -0
  382. package/dist/machines/opencode-supervisor.d.ts.map +1 -0
  383. package/dist/machines/opencode-supervisor.js +124 -0
  384. package/dist/machines/opencode-supervisor.js.map +1 -0
  385. package/dist/machines/pagination.d.ts +4 -0
  386. package/dist/machines/pagination.d.ts.map +1 -0
  387. package/dist/machines/pagination.js +7 -0
  388. package/dist/machines/pagination.js.map +1 -0
  389. package/dist/machines/provider-availability.d.ts +42 -0
  390. package/dist/machines/provider-availability.d.ts.map +1 -0
  391. package/dist/machines/provider-availability.js +82 -0
  392. package/dist/machines/provider-availability.js.map +1 -0
  393. package/dist/machines/provider-screen.d.ts +12 -0
  394. package/dist/machines/provider-screen.d.ts.map +1 -0
  395. package/dist/machines/provider-screen.js +129 -0
  396. package/dist/machines/provider-screen.js.map +1 -0
  397. package/dist/machines/session-actionability.d.ts +86 -0
  398. package/dist/machines/session-actionability.d.ts.map +1 -0
  399. package/dist/machines/session-actionability.js +125 -0
  400. package/dist/machines/session-actionability.js.map +1 -0
  401. package/dist/machines/session-visibility.d.ts +139 -0
  402. package/dist/machines/session-visibility.d.ts.map +1 -0
  403. package/dist/machines/session-visibility.js +109 -0
  404. package/dist/machines/session-visibility.js.map +1 -0
  405. package/dist/platform/adapter.d.ts +62 -0
  406. package/dist/platform/adapter.d.ts.map +1 -0
  407. package/dist/platform/adapter.js +240 -0
  408. package/dist/platform/adapter.js.map +1 -0
  409. package/dist/platform/support.d.ts +12 -0
  410. package/dist/platform/support.d.ts.map +1 -0
  411. package/dist/platform/support.js +25 -0
  412. package/dist/platform/support.js.map +1 -0
  413. package/dist/pty/contracts.d.ts +45 -0
  414. package/dist/pty/contracts.d.ts.map +1 -0
  415. package/dist/pty/contracts.js +2 -0
  416. package/dist/pty/contracts.js.map +1 -0
  417. package/dist/pty/evidence-gate.d.ts +14 -0
  418. package/dist/pty/evidence-gate.d.ts.map +1 -0
  419. package/dist/pty/evidence-gate.js +35 -0
  420. package/dist/pty/evidence-gate.js.map +1 -0
  421. package/dist/pty/index.d.ts +5 -0
  422. package/dist/pty/index.d.ts.map +1 -0
  423. package/dist/pty/index.js +5 -0
  424. package/dist/pty/index.js.map +1 -0
  425. package/dist/pty/node-host-terminal.d.ts +14 -0
  426. package/dist/pty/node-host-terminal.d.ts.map +1 -0
  427. package/dist/pty/node-host-terminal.js +173 -0
  428. package/dist/pty/node-host-terminal.js.map +1 -0
  429. package/dist/pty/node-process.d.ts +26 -0
  430. package/dist/pty/node-process.d.ts.map +1 -0
  431. package/dist/pty/node-process.js +102 -0
  432. package/dist/pty/node-process.js.map +1 -0
  433. package/dist/runtime/api-terminal-control-plane.d.ts +7 -0
  434. package/dist/runtime/api-terminal-control-plane.d.ts.map +1 -0
  435. package/dist/runtime/api-terminal-control-plane.js +95 -0
  436. package/dist/runtime/api-terminal-control-plane.js.map +1 -0
  437. package/dist/runtime/backoff.d.ts +17 -0
  438. package/dist/runtime/backoff.d.ts.map +1 -0
  439. package/dist/runtime/backoff.js +61 -0
  440. package/dist/runtime/backoff.js.map +1 -0
  441. package/dist/runtime/boundary.d.ts +171 -0
  442. package/dist/runtime/boundary.d.ts.map +1 -0
  443. package/dist/runtime/boundary.js +1858 -0
  444. package/dist/runtime/boundary.js.map +1 -0
  445. package/dist/runtime/capability-gate.d.ts +25 -0
  446. package/dist/runtime/capability-gate.d.ts.map +1 -0
  447. package/dist/runtime/capability-gate.js +77 -0
  448. package/dist/runtime/capability-gate.js.map +1 -0
  449. package/dist/runtime/contracts.d.ts +25 -0
  450. package/dist/runtime/contracts.d.ts.map +1 -0
  451. package/dist/runtime/contracts.js +66 -0
  452. package/dist/runtime/contracts.js.map +1 -0
  453. package/dist/runtime/errors.d.ts +20 -0
  454. package/dist/runtime/errors.d.ts.map +1 -0
  455. package/dist/runtime/errors.js +22 -0
  456. package/dist/runtime/errors.js.map +1 -0
  457. package/dist/runtime/index.d.ts +9 -0
  458. package/dist/runtime/index.d.ts.map +1 -0
  459. package/dist/runtime/index.js +9 -0
  460. package/dist/runtime/index.js.map +1 -0
  461. package/dist/runtime/node-foreground-session.d.ts +50 -0
  462. package/dist/runtime/node-foreground-session.d.ts.map +1 -0
  463. package/dist/runtime/node-foreground-session.js +431 -0
  464. package/dist/runtime/node-foreground-session.js.map +1 -0
  465. package/dist/runtime/node-websocket-connector.d.ts +6 -0
  466. package/dist/runtime/node-websocket-connector.d.ts.map +1 -0
  467. package/dist/runtime/node-websocket-connector.js +344 -0
  468. package/dist/runtime/node-websocket-connector.js.map +1 -0
  469. package/dist/runtime/observer-screen.d.ts +6 -0
  470. package/dist/runtime/observer-screen.d.ts.map +1 -0
  471. package/dist/runtime/observer-screen.js +144 -0
  472. package/dist/runtime/observer-screen.js.map +1 -0
  473. package/dist/runtime/owner-grant-operations.d.ts +136 -0
  474. package/dist/runtime/owner-grant-operations.d.ts.map +1 -0
  475. package/dist/runtime/owner-grant-operations.js +216 -0
  476. package/dist/runtime/owner-grant-operations.js.map +1 -0
  477. package/dist/runtime/owner-grants-screen.d.ts +40 -0
  478. package/dist/runtime/owner-grants-screen.d.ts.map +1 -0
  479. package/dist/runtime/owner-grants-screen.js +987 -0
  480. package/dist/runtime/owner-grants-screen.js.map +1 -0
  481. package/dist/runtime/terminal-transport.d.ts +85 -0
  482. package/dist/runtime/terminal-transport.d.ts.map +1 -0
  483. package/dist/runtime/terminal-transport.js +152 -0
  484. package/dist/runtime/terminal-transport.js.map +1 -0
  485. package/dist/sync/continuous-sync-supervisor.d.ts +107 -0
  486. package/dist/sync/continuous-sync-supervisor.d.ts.map +1 -0
  487. package/dist/sync/continuous-sync-supervisor.js +1117 -0
  488. package/dist/sync/continuous-sync-supervisor.js.map +1 -0
  489. package/dist/sync/index.d.ts +9 -0
  490. package/dist/sync/index.d.ts.map +1 -0
  491. package/dist/sync/index.js +9 -0
  492. package/dist/sync/index.js.map +1 -0
  493. package/dist/sync/journal.d.ts +57 -0
  494. package/dist/sync/journal.d.ts.map +1 -0
  495. package/dist/sync/journal.js +685 -0
  496. package/dist/sync/journal.js.map +1 -0
  497. package/dist/sync/revisions.d.ts +118 -0
  498. package/dist/sync/revisions.d.ts.map +1 -0
  499. package/dist/sync/revisions.js +364 -0
  500. package/dist/sync/revisions.js.map +1 -0
  501. package/dist/sync/supervisor.d.ts +107 -0
  502. package/dist/sync/supervisor.d.ts.map +1 -0
  503. package/dist/sync/supervisor.js +246 -0
  504. package/dist/sync/supervisor.js.map +1 -0
  505. package/dist/sync/workspace-sync-client.d.ts +18 -0
  506. package/dist/sync/workspace-sync-client.d.ts.map +1 -0
  507. package/dist/sync/workspace-sync-client.js +150 -0
  508. package/dist/sync/workspace-sync-client.js.map +1 -0
  509. package/dist/sync/workspace-sync-coordinator.d.ts +76 -0
  510. package/dist/sync/workspace-sync-coordinator.d.ts.map +1 -0
  511. package/dist/sync/workspace-sync-coordinator.js +621 -0
  512. package/dist/sync/workspace-sync-coordinator.js.map +1 -0
  513. package/dist/sync/workspace-sync-product-service.d.ts +79 -0
  514. package/dist/sync/workspace-sync-product-service.d.ts.map +1 -0
  515. package/dist/sync/workspace-sync-product-service.js +398 -0
  516. package/dist/sync/workspace-sync-product-service.js.map +1 -0
  517. package/dist/sync/workspace-sync-protocol.d.ts +145 -0
  518. package/dist/sync/workspace-sync-protocol.d.ts.map +1 -0
  519. package/dist/sync/workspace-sync-protocol.js +347 -0
  520. package/dist/sync/workspace-sync-protocol.js.map +1 -0
  521. package/dist/terminal/appbar.d.ts +40 -0
  522. package/dist/terminal/appbar.d.ts.map +1 -0
  523. package/dist/terminal/appbar.js +55 -0
  524. package/dist/terminal/appbar.js.map +1 -0
  525. package/dist/terminal/cell-width.d.ts +3 -0
  526. package/dist/terminal/cell-width.d.ts.map +1 -0
  527. package/dist/terminal/cell-width.js +53 -0
  528. package/dist/terminal/cell-width.js.map +1 -0
  529. package/dist/terminal/codec.d.ts +107 -0
  530. package/dist/terminal/codec.d.ts.map +1 -0
  531. package/dist/terminal/codec.js +538 -0
  532. package/dist/terminal/codec.js.map +1 -0
  533. package/dist/terminal/foreground.d.ts +135 -0
  534. package/dist/terminal/foreground.d.ts.map +1 -0
  535. package/dist/terminal/foreground.js +2097 -0
  536. package/dist/terminal/foreground.js.map +1 -0
  537. package/dist/terminal/generated/terminal-wire-v1.d.ts +26 -0
  538. package/dist/terminal/generated/terminal-wire-v1.d.ts.map +1 -0
  539. package/dist/terminal/generated/terminal-wire-v1.js +27 -0
  540. package/dist/terminal/generated/terminal-wire-v1.js.map +1 -0
  541. package/dist/terminal/mode.d.ts +33 -0
  542. package/dist/terminal/mode.d.ts.map +1 -0
  543. package/dist/terminal/mode.js +99 -0
  544. package/dist/terminal/mode.js.map +1 -0
  545. package/dist/terminal/passthrough.d.ts +47 -0
  546. package/dist/terminal/passthrough.d.ts.map +1 -0
  547. package/dist/terminal/passthrough.js +666 -0
  548. package/dist/terminal/passthrough.js.map +1 -0
  549. package/dist/terminal/resume.d.ts +58 -0
  550. package/dist/terminal/resume.d.ts.map +1 -0
  551. package/dist/terminal/resume.js +185 -0
  552. package/dist/terminal/resume.js.map +1 -0
  553. package/dist/terminal/viewport.d.ts +93 -0
  554. package/dist/terminal/viewport.d.ts.map +1 -0
  555. package/dist/terminal/viewport.js +266 -0
  556. package/dist/terminal/viewport.js.map +1 -0
  557. package/dist/terminal/workbench.d.ts +32 -0
  558. package/dist/terminal/workbench.d.ts.map +1 -0
  559. package/dist/terminal/workbench.js +316 -0
  560. package/dist/terminal/workbench.js.map +1 -0
  561. package/dist/terminal/xterm-vte.d.ts +49 -0
  562. package/dist/terminal/xterm-vte.d.ts.map +1 -0
  563. package/dist/terminal/xterm-vte.js +602 -0
  564. package/dist/terminal/xterm-vte.js.map +1 -0
  565. package/dist/version.d.ts +3 -0
  566. package/dist/version.d.ts.map +1 -0
  567. package/dist/version.js +3 -0
  568. package/dist/version.js.map +1 -0
  569. package/dist/workspace/binding-path.d.ts +17 -0
  570. package/dist/workspace/binding-path.d.ts.map +1 -0
  571. package/dist/workspace/binding-path.js +91 -0
  572. package/dist/workspace/binding-path.js.map +1 -0
  573. package/dist/workspace/binding-store.d.ts +107 -0
  574. package/dist/workspace/binding-store.d.ts.map +1 -0
  575. package/dist/workspace/binding-store.js +783 -0
  576. package/dist/workspace/binding-store.js.map +1 -0
  577. package/dist/workspace/binding.d.ts +35 -0
  578. package/dist/workspace/binding.d.ts.map +1 -0
  579. package/dist/workspace/binding.js +70 -0
  580. package/dist/workspace/binding.js.map +1 -0
  581. package/dist/workspace/errors.d.ts +4 -0
  582. package/dist/workspace/errors.d.ts.map +1 -0
  583. package/dist/workspace/errors.js +19 -0
  584. package/dist/workspace/errors.js.map +1 -0
  585. package/dist/workspace/exclusion.d.ts +21 -0
  586. package/dist/workspace/exclusion.d.ts.map +1 -0
  587. package/dist/workspace/exclusion.js +243 -0
  588. package/dist/workspace/exclusion.js.map +1 -0
  589. package/dist/workspace/index.d.ts +8 -0
  590. package/dist/workspace/index.d.ts.map +1 -0
  591. package/dist/workspace/index.js +8 -0
  592. package/dist/workspace/index.js.map +1 -0
  593. package/dist/workspace/lifecycle.d.ts +56 -0
  594. package/dist/workspace/lifecycle.d.ts.map +1 -0
  595. package/dist/workspace/lifecycle.js +94 -0
  596. package/dist/workspace/lifecycle.js.map +1 -0
  597. package/dist/workspace/manifest.d.ts +47 -0
  598. package/dist/workspace/manifest.d.ts.map +1 -0
  599. package/dist/workspace/manifest.js +243 -0
  600. package/dist/workspace/manifest.js.map +1 -0
  601. package/dist/workspace/paths.d.ts +14 -0
  602. package/dist/workspace/paths.d.ts.map +1 -0
  603. package/dist/workspace/paths.js +67 -0
  604. package/dist/workspace/paths.js.map +1 -0
  605. package/dist/workspace/schema.d.ts +15 -0
  606. package/dist/workspace/schema.d.ts.map +1 -0
  607. package/dist/workspace/schema.js +33 -0
  608. package/dist/workspace/schema.js.map +1 -0
  609. package/dist/workspace/selection-screen.d.ts +4 -0
  610. package/dist/workspace/selection-screen.d.ts.map +1 -0
  611. package/dist/workspace/selection-screen.js +216 -0
  612. package/dist/workspace/selection-screen.js.map +1 -0
  613. package/dist/workspace/selection-service.d.ts +16 -0
  614. package/dist/workspace/selection-service.d.ts.map +1 -0
  615. package/dist/workspace/selection-service.js +65 -0
  616. package/dist/workspace/selection-service.js.map +1 -0
  617. package/node_modules/@xterm/headless/README.md +31 -0
  618. package/node_modules/@xterm/headless/lib-headless/xterm-headless.js +2 -0
  619. package/node_modules/@xterm/headless/lib-headless/xterm-headless.js.map +1 -0
  620. package/node_modules/@xterm/headless/lib-headless/xterm-headless.mjs +46 -0
  621. package/node_modules/@xterm/headless/lib-headless/xterm-headless.mjs.map +7 -0
  622. package/node_modules/@xterm/headless/package.json +29 -0
  623. package/node_modules/@xterm/headless/typings/xterm-headless.d.ts +1385 -0
  624. package/package.json +75 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Ring0 Labs, Inc. - Cuna Labs
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,9 @@
1
+ Cuna CLI
2
+ Copyright 2026 Ring0 Labs, Inc. - Cuna Labs
3
+
4
+ This product includes software developed by Cuna Labs.
5
+
6
+ Third-party attribution notices, when required by their licenses, are generated
7
+ from the admitted release SBOM and distributed with that release. The absence of
8
+ an entry in this source NOTICE file is not evidence that a release contains no
9
+ third-party software.
package/README.md ADDED
@@ -0,0 +1,169 @@
1
+ <div align="center">
2
+ <h1>Cuna CLI</h1>
3
+ <p><strong>Run cloud coding agents from your own terminal.</strong></p>
4
+ <p>
5
+ <a href="https://github.com/Cuna-Labs/cuna-cli/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/Cuna-Labs/cuna-cli/actions/workflows/ci.yml/badge.svg"></a>
6
+ <a href="https://github.com/Cuna-Labs/cuna-cli/actions/workflows/codeql.yml"><img alt="CodeQL" src="https://github.com/Cuna-Labs/cuna-cli/actions/workflows/codeql.yml/badge.svg"></a>
7
+ <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"></a>
8
+ <a href="package.json"><img alt="Node.js" src="https://img.shields.io/badge/node-22.17.1%2B%20%7C%2024.4.1%2B-339933?logo=node.js&logoColor=white"></a>
9
+ </p>
10
+ </div>
11
+
12
+ Claude Code, Codex and OpenCode feel like they are running on your laptop. They
13
+ are not: the processes, the sessions and the files live on a Cuna cloud machine,
14
+ and they survive when you close the lid.
15
+
16
+ ## What it gives you
17
+
18
+ - **Sessions that outlive your terminal.** Close the lid, lose the network, come back — the agent kept working.
19
+ - **Your files, their machine.** A directory syncs to an isolated cloud workspace and back.
20
+ - **Three agents, one client.** Claude Code, Codex and OpenCode, chosen per machine.
21
+ - **One command to start.** `cuna` picks the machine, the provider and the session for you.
22
+ - **Exit codes you can script against.** A closed set, each with one meaning, pinned by tests.
23
+ - **Browser sign-in with no local listener.** PKCE, and the credential encrypted at rest.
24
+ - **Windows, macOS and Linux.** One payload, no per-platform build.
25
+
26
+ ## Quick start
27
+
28
+ ```sh
29
+ npm install -g @cuna_labs/cli
30
+ cuna login
31
+ cuna
32
+ ```
33
+
34
+ `cuna` with no arguments walks you through choosing a machine, a provider and a
35
+ session. You never type a resource ID on the normal path.
36
+
37
+ Needs Node.js 22.17.1+ or 24.4.1+. npm is the only channel, on Windows, macOS
38
+ and Linux.
39
+
40
+ ## A minimal session
41
+
42
+ Point a provider at a directory and it opens there:
43
+
44
+ ```sh
45
+ cuna claude ./my-project
46
+ ```
47
+
48
+ Your files sync to a cloud machine, the agent runs on that machine, and the
49
+ terminal in front of you is a view of it. Close the lid and the session keeps
50
+ going.
51
+
52
+ Detach with `Ctrl+C` — it leaves your terminal, it does not stop the agent. To
53
+ come back:
54
+
55
+ ```sh
56
+ cuna machines
57
+ ```
58
+
59
+ Inside a session, `Ctrl+]` is the escape prefix: `?` for help, `d` to detach,
60
+ `c` to send a real `Ctrl+C` to the agent, `n` for the next tab, `1`-`4` to pick
61
+ one. Pasted text never triggers them.
62
+
63
+ ## Commands
64
+
65
+ ```text
66
+ cuna login | whoami | logout
67
+ cuna capabilities
68
+ cuna config get
69
+
70
+ cuna machines list
71
+ cuna machines create --name NAME --idempotency-key KEY --yes
72
+ cuna machines start | pause | resume | stop | delete ID --yes
73
+
74
+ cuna agent-sessions list --machine ID
75
+ cuna agent-sessions create --machine ID --agent claude-code --idempotency-key KEY --yes
76
+
77
+ cuna claude | codex | opencode [PATH]
78
+ cuna self-test --offline --json
79
+ cuna version --json
80
+ ```
81
+
82
+ `cuna help --all` has the rest. A command whose capability the server does not
83
+ serve returns a clear error and a non-zero exit code; it never pretends a
84
+ machine, a session or a change succeeded.
85
+
86
+ ## Configuration
87
+
88
+ Settings resolve flag first, then environment variable, then your profile, then
89
+ the default. Production always talks to `https://api.getcuna.com`.
90
+
91
+ `cuna login` opens your browser and you paste back the `cuna_login_` value it
92
+ shows once. It is stored encrypted, scoped to your OS user, and exchanged for a
93
+ short-lived token on every run. `cuna logout` revokes it before deleting it.
94
+
95
+ `CUNA_API_KEY` is for automation and is never saved for you. If it is set but
96
+ unusable, the CLI refuses rather than quietly falling back to your login.
97
+
98
+ ## Exit codes
99
+
100
+ For anything scripting this CLI, the exit code is the whole contract. `3`, `7`
101
+ and `8` all mean "that did not happen", and each asks for something different:
102
+ replace the credential, distrust the answer, or stop asking this deployment.
103
+
104
+ <!-- BEGIN GENERATED: exit-codes -->
105
+ | Exit code | Name | Meaning | One reachable path |
106
+ | --- | --- | --- | --- |
107
+ | `0` | `success` | The command completed and the record it printed is authoritative. | `cuna self-test --offline` verifies the installed artifact without a network request and returns. |
108
+ | `2` | `usage` | The invocation or the resolved configuration is invalid. | `cuna nonsense` fails the command preflight with `cuna.usage.invalid`. Nothing is sent to the server. |
109
+ | `3` | `auth` | No usable credential, a rejected credential, or an auth-mode conflict. | `cuna whoami` while `CUNA_API_KEY` is set mints `cuna.auth.mode_conflict`. A credential the server refuses arrives as `cuna.auth.rejected` from HTTP 401. |
110
+ | `4` | `policy` | Understood and refused by policy, including a required confirmation. | `cuna machines delete ID` without `--yes` mints `cuna.confirmation.required`. A server refusal arrives as `cuna.policy.denied` from HTTP 403. |
111
+ | `5` | `network` | No authoritative answer arrived, including when the CLI stopped waiting for one. | a request exceeding its observation budget mints `cuna.client.response_budget_elapsed`, and a bounded read-back that has not converged mints `cuna.client.convergence_budget_elapsed`; both are retryable and name the read to run. HTTP 429 and 5xx arrive as `cuna.network.rate_limited` and `cuna.network.service_unavailable`. |
112
+ | `6` | `conflict` | Current state contradicts the change; repeating it unchanged repeats this. | Most HTTP 409 responses mint `cuna.remote.conflict`. A foreground attach to a session already held mints `cuna.runtime.session_conflict`; provider-installation admission is instead an unsupported action with a concrete Machine-selection remedy. |
113
+ | `7` | `remote` | The server answered, but not in a way the published contract allows. | `cuna account show` against a deployment whose body fails contract decoding mints `cuna.remote.malformed_response`. A 404 that does carry a JSON body is an absent resource and lands here as `cuna.remote.not_found`. |
114
+ | `8` | `unsupported` | This deployment does not serve or does not advertise the capability. | `cuna records list` against a deployment with no route for it mints `cuna.remote.operation_not_served`: HTTP 404 whose body is not JSON, which only a layer in front of the API writes. |
115
+ | `70` | `internal` | The CLI itself failed; no server outcome is implied. | any throw that is not a `CunaError` reaching the top of `runCli` is normalized to `cuna.internal.unexpected`. |
116
+ <!-- END GENERATED: exit-codes -->
117
+
118
+ Two of them are easy to misread. `5` does not mean the change failed — a
119
+ timeout cannot tell you whether it arrived, so the CLI stops rather than guess
120
+ and never retries a mutation on its own. `8` is not load; it describes what the
121
+ deployment serves, so trying again returns `8` again.
122
+
123
+ ## Development
124
+
125
+ ```sh
126
+ git clone https://github.com/Cuna-Labs/cuna-cli.git
127
+ cd cuna-cli
128
+ npm ci --ignore-scripts
129
+ npm run lint && npm run typecheck && npm test
130
+ ```
131
+
132
+ Inspect a build without touching the network:
133
+
134
+ ```sh
135
+ node dist/bin/cuna.js self-test --offline --json
136
+ ```
137
+
138
+ Or install the packed artifact and take the journey a user takes:
139
+
140
+ ```sh
141
+ npm install --global ./cuna_labs-cli-0.1.0.tgz
142
+ cuna login
143
+ cuna
144
+ ```
145
+
146
+ The public OpenAPI contract decides what goes over the wire. The CLI owns the
147
+ interactive parts: terminal behaviour, the local daemon and file
148
+ synchronization. The daemon, synchronization and the companion app are still
149
+ pre-release, and source code is never evidence that a capability is deployed —
150
+ commands ask the live server and fail closed when the answer is missing or
151
+ stale.
152
+
153
+ ## Security
154
+
155
+ Report vulnerabilities privately per [`SECURITY.md`](SECURITY.md).
156
+
157
+ Releases build one immutable npm candidate, generate an SBOM and provenance,
158
+ install that exact artifact on every supported platform, and publish through npm
159
+ Trusted Publishing with short-lived OIDC.
160
+
161
+ ## Contributing
162
+
163
+ Read [`CONTRIBUTING.md`](CONTRIBUTING.md) first. Every behavioural change needs a
164
+ test that can fail.
165
+
166
+ ## License
167
+
168
+ Copyright 2026 Ring0 Labs, Inc. - Cuna Labs. Licensed under the
169
+ [Apache License 2.0](LICENSE). See [`NOTICE`](NOTICE) for attribution.
@@ -0,0 +1,29 @@
1
+ # Third-Party Notices
2
+
3
+ Cuna CLI depends on `@xterm/headless` version `6.0.0`, distributed under the
4
+ MIT License.
5
+
6
+ - Copyright (c) 2017-2019, The xterm.js authors
7
+ - Copyright (c) 2014-2016, SourceLair Private Company
8
+ - Copyright (c) 2012-2013, Christopher Jeffrey
9
+
10
+ The complete license text is available in the immutable upstream source at
11
+ <https://github.com/xtermjs/xterm.js/blob/6.0.0/LICENSE>.
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in
21
+ all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
@@ -0,0 +1,19 @@
1
+ import type { CapabilitySnapshot } from "./contracts.js";
2
+ export declare const CAPABILITY_SCHEMA_VERSION: "1.0";
3
+ export declare const MAX_CAPABILITY_TTL_MS = 60000;
4
+ export declare const MAX_CAPABILITY_FUTURE_SKEW_MS = 5000;
5
+ export type CapabilitySnapshotValidity = "valid" | "unsupported_schema" | "malformed_freshness" | "future_observation" | "excessive_ttl" | "expired";
6
+ /**
7
+ * The snapshot faults no amount of retrying can clear.
8
+ *
9
+ * A snapshot whose schema this build does not know, whose freshness fields are
10
+ * inconsistent, or whose TTL exceeds the contract maximum is a server-contract
11
+ * fault: the same request produces the same snapshot. `expired` and
12
+ * `future_observation` are the two that a later attempt (or a corrected clock)
13
+ * can resolve. Every one of the five used to be reported as `snapshot_expired`,
14
+ * which told the user to retry three faults that can never succeed.
15
+ */
16
+ export declare const PERMANENT_SNAPSHOT_FAULTS: readonly CapabilitySnapshotValidity[];
17
+ export declare function isPermanentSnapshotFault(reason: string | undefined): boolean;
18
+ export declare function classifyCapabilitySnapshot(snapshot: CapabilitySnapshot, now?: number): CapabilitySnapshotValidity;
19
+ //# sourceMappingURL=capability-evidence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability-evidence.d.ts","sourceRoot":"","sources":["../../src/api/capability-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,yBAAyB,EAAG,KAAc,CAAC;AACxD,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAC5C,eAAO,MAAM,6BAA6B,OAAQ,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAClC,OAAO,GACP,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,eAAe,GACf,SAAS,CAAC;AAEd;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,0BAA0B,EAIzE,CAAC;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE5E;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,SAAa,GACf,0BAA0B,CAW5B"}
@@ -0,0 +1,38 @@
1
+ export const CAPABILITY_SCHEMA_VERSION = "1.0";
2
+ export const MAX_CAPABILITY_TTL_MS = 60_000;
3
+ export const MAX_CAPABILITY_FUTURE_SKEW_MS = 5_000;
4
+ /**
5
+ * The snapshot faults no amount of retrying can clear.
6
+ *
7
+ * A snapshot whose schema this build does not know, whose freshness fields are
8
+ * inconsistent, or whose TTL exceeds the contract maximum is a server-contract
9
+ * fault: the same request produces the same snapshot. `expired` and
10
+ * `future_observation` are the two that a later attempt (or a corrected clock)
11
+ * can resolve. Every one of the five used to be reported as `snapshot_expired`,
12
+ * which told the user to retry three faults that can never succeed.
13
+ */
14
+ export const PERMANENT_SNAPSHOT_FAULTS = Object.freeze([
15
+ "unsupported_schema",
16
+ "malformed_freshness",
17
+ "excessive_ttl",
18
+ ]);
19
+ export function isPermanentSnapshotFault(reason) {
20
+ return reason !== undefined && PERMANENT_SNAPSHOT_FAULTS.includes(reason);
21
+ }
22
+ export function classifyCapabilitySnapshot(snapshot, now = Date.now()) {
23
+ if (snapshot.schemaVersion !== CAPABILITY_SCHEMA_VERSION)
24
+ return "unsupported_schema";
25
+ const observedAt = Date.parse(snapshot.observedAt);
26
+ const expiresAt = Date.parse(snapshot.expiresAt);
27
+ if (!Number.isFinite(observedAt) || !Number.isFinite(expiresAt) || expiresAt < observedAt) {
28
+ return "malformed_freshness";
29
+ }
30
+ if (observedAt > now + MAX_CAPABILITY_FUTURE_SKEW_MS)
31
+ return "future_observation";
32
+ if (expiresAt - observedAt > MAX_CAPABILITY_TTL_MS)
33
+ return "excessive_ttl";
34
+ if (expiresAt <= now)
35
+ return "expired";
36
+ return "valid";
37
+ }
38
+ //# sourceMappingURL=capability-evidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability-evidence.js","sourceRoot":"","sources":["../../src/api/capability-evidence.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAc,CAAC;AACxD,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC5C,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAUnD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAA0C,MAAM,CAAC,MAAM,CAAC;IAC5F,oBAAoB;IACpB,qBAAqB;IACrB,eAAe;CAChB,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CAAC,MAA0B;IACjE,OAAO,MAAM,KAAK,SAAS,IAAK,yBAA+C,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACnG,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,QAA4B,EAC5B,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IAEhB,IAAI,QAAQ,CAAC,aAAa,KAAK,yBAAyB;QAAE,OAAO,oBAAoB,CAAC;IACtF,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACjD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,GAAG,UAAU,EAAE,CAAC;QAC1F,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IACD,IAAI,UAAU,GAAG,GAAG,GAAG,6BAA6B;QAAE,OAAO,oBAAoB,CAAC;IAClF,IAAI,SAAS,GAAG,UAAU,GAAG,qBAAqB;QAAE,OAAO,eAAe,CAAC;IAC3E,IAAI,SAAS,IAAI,GAAG;QAAE,OAAO,SAAS,CAAC;IACvC,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,167 @@
1
+ import { type ProviderPreset, type ProviderObservation, type ProviderSessionInput } from "./provider-v2.js";
2
+ import { type TerminalWriterState, type AgentKind, type AgentAuthMode, type AgentSession, type AgentSessionAuth, type AgentSessionAuthLogout, type AgentSessionPage, type AgentSessionTerminalSeat, type AuditRecord, type ApiKeyMetadata, type ApiKeyCreation, type CapabilityScope, type CapabilitySnapshot, type MachineAuthorizations, type Machine, type MachineCreateRequest, type MachinePage, type CunaIdentity, TERMINAL_PROTOCOL, type TerminalConnectionGrant, type WorkspaceBindingAuthority } from "./contracts.js";
3
+ import { type SupervisorLiveUpdate, type SupervisorLiveUpdateOperation } from "./supervisor-live-update.js";
4
+ import type { HttpTransport } from "./http.js";
5
+ import { type ExecutionWorkspacePage } from "./execution-workspaces.js";
6
+ import { type ManagedExecution, type ManagedExecutionPage } from "./managed-executions.js";
7
+ import { type ManagedCommandInput, type ManagedCommandResult } from "./managed-executions.js";
8
+ import { type MachineDefaultWorkspace, type AgentSessionWorkspaceContext, type AgentSessionWorkspaceEnvelope } from "./remote-workspace.js";
9
+ export interface MachineCreateInput {
10
+ readonly name: string;
11
+ readonly agent?: AgentKind;
12
+ readonly vcpus?: number;
13
+ readonly memoryMiB?: number;
14
+ readonly background?: boolean;
15
+ }
16
+ export interface AgentSessionCreateInput {
17
+ readonly name?: string;
18
+ readonly agent: AgentKind;
19
+ readonly cwd: string;
20
+ readonly workspaceBindingId: string;
21
+ readonly workspaceGeneration: number;
22
+ readonly authMode?: AgentAuthMode;
23
+ readonly credentialBindingId?: string;
24
+ }
25
+ export interface WorkspaceBindingIdentityInput {
26
+ readonly executionWorkspaceId?: string;
27
+ readonly workspaceId: string;
28
+ readonly projectId: string;
29
+ readonly localInstanceId: string;
30
+ readonly machineId: string;
31
+ readonly exclusionPolicyDigest: string;
32
+ }
33
+ export interface AgentSessionWorkspaceCreateInput extends Omit<AgentSessionCreateInput, "workspaceBindingId"> {
34
+ readonly executionWorkspaceId: string;
35
+ }
36
+ export interface WorkspaceBindingCreateInput extends WorkspaceBindingIdentityInput {
37
+ readonly excludedPrefixes: readonly string[];
38
+ }
39
+ export interface PageOptions {
40
+ readonly limit?: number;
41
+ readonly cursor?: string;
42
+ }
43
+ export interface TerminalConnectionCreateInput {
44
+ readonly protocol: typeof TERMINAL_PROTOCOL;
45
+ readonly clientInstanceId: string;
46
+ readonly resumeHandle?: string;
47
+ /** Omitted means "writer": the seat that may type. "observer" only reads. */
48
+ readonly accessMode?: "writer" | "observer";
49
+ readonly expectedWriterEpoch?: number;
50
+ }
51
+ export interface TerminalWriterTransferInput {
52
+ readonly operationId?: string;
53
+ readonly clientInstanceId: string;
54
+ readonly expectedWriterEpoch?: number;
55
+ }
56
+ export interface CunaApiClient {
57
+ getIdentity(signal?: AbortSignal): Promise<CunaIdentity>;
58
+ discoverCapabilities(scope: CapabilityScope, resourceId?: string, signal?: AbortSignal): Promise<CapabilitySnapshot>;
59
+ listMachines(signal?: AbortSignal): Promise<MachinePage>;
60
+ getMachine(id: string, signal?: AbortSignal): Promise<Machine>;
61
+ listRecords(): Promise<readonly AuditRecord[]>;
62
+ listAuthorizations(machineId: string): Promise<MachineAuthorizations>;
63
+ listApiKeys(): Promise<readonly ApiKeyMetadata[]>;
64
+ createApiKey(input: {
65
+ readonly name: string;
66
+ readonly expiresAt?: string;
67
+ }, idempotencyKey: string, signal?: AbortSignal): Promise<ApiKeyCreation>;
68
+ revokeApiKey(id: string): Promise<true>;
69
+ createMachine(input: MachineCreateInput, idempotencyKey: string, requestId?: string, signal?: AbortSignal): Promise<Machine>;
70
+ getMachineCreateRequest(id: string, signal?: AbortSignal): Promise<MachineCreateRequest>;
71
+ reconcileMachineCreateRequest(id: string, signal?: AbortSignal): Promise<MachineCreateRequest>;
72
+ transitionMachine(id: string, action: "start" | "pause" | "resume" | "stop", signal?: AbortSignal): Promise<Machine>;
73
+ /**
74
+ * Explicitly replace a stopped Machine's terminal supervisor. The server
75
+ * owns all child-session and durable-fence checks; callers must never infer
76
+ * that replacing it is safe from a cached Machine row.
77
+ */
78
+ replaceMachineSupervisor(id: string, signal?: AbortSignal): Promise<Machine>;
79
+ /**
80
+ * `sessions.updateSupervisorInPlace`: replace a RUNNING Machine's supervisor
81
+ * without stopping it. A second operation, not a relaxation of the one above:
82
+ * the stopped-boundary guards on `replaceMachineSupervisor` are untouched.
83
+ *
84
+ * The server owns every preflight — it measures the Machine's boot, unit,
85
+ * artifacts and each live session's process, PTY and stored master before the
86
+ * installer runs and re-measures them under the install lock. A 200 carries
87
+ * one custody outcome per AgentSession that existed beforehand; it is not a
88
+ * promise that all of them survived, and callers must read the outcomes.
89
+ *
90
+ * `operationId` is chosen and durably recorded by the CALLER before this is
91
+ * called. Sending the SAME value again is the supported recovery for a lost
92
+ * answer and never rotates control twice; sending a different value for an
93
+ * unsettled Machine is refused by the producer.
94
+ */
95
+ updateMachineSupervisorInPlace(id: string, operationId: string, signal?: AbortSignal): Promise<SupervisorLiveUpdate>;
96
+ /**
97
+ * `sessions.readSupervisorInPlaceUpdate`: what one owned in-place update did.
98
+ *
99
+ * A read. It dispatches no installer, sends nothing to the Machine and
100
+ * changes no state, which is precisely why it — and not a second mutation —
101
+ * is what a caller reaches for after an interruption.
102
+ */
103
+ readMachineSupervisorInPlaceUpdate(id: string, operationId: string, signal?: AbortSignal): Promise<SupervisorLiveUpdateOperation>;
104
+ deleteMachine(id: string): Promise<unknown>;
105
+ executeManagedCommand(machineId: string, operationId: string, input: ManagedCommandInput, signal?: AbortSignal): Promise<ManagedCommandResult>;
106
+ listManagedExecutions(machineId: string, input?: {
107
+ readonly executionWorkspaceId?: string;
108
+ readonly after?: string;
109
+ }, signal?: AbortSignal): Promise<ManagedExecutionPage>;
110
+ getManagedExecution(machineId: string, operationId: string, signal?: AbortSignal): Promise<ManagedExecution>;
111
+ cancelManagedExecution(machineId: string, operationId: string, signal?: AbortSignal): Promise<ManagedExecution>;
112
+ listExecutionWorkspaces(input: {
113
+ readonly workspaceId: string;
114
+ readonly projectId: string;
115
+ readonly machineId: string;
116
+ readonly after?: string;
117
+ }, signal?: AbortSignal): Promise<ExecutionWorkspacePage>;
118
+ createWorkspaceBinding(input: WorkspaceBindingCreateInput, idempotencyKey: string, signal?: AbortSignal): Promise<WorkspaceBindingAuthority>;
119
+ getWorkspaceBinding(bindingId: string, identity: WorkspaceBindingIdentityInput, signal?: AbortSignal): Promise<WorkspaceBindingAuthority>;
120
+ listAgentSessions(machineId: string, options?: PageOptions, signal?: AbortSignal): Promise<AgentSessionPage>;
121
+ getProviderPresetsV2(signal?: AbortSignal): Promise<readonly ProviderPreset[]>;
122
+ createProviderSessionV2(machineId: string, input: ProviderSessionInput, signal?: AbortSignal): Promise<AgentSessionWorkspaceEnvelope>;
123
+ checkProviderV2(sessionId: string, epoch: string, signal?: AbortSignal): Promise<ProviderObservation>;
124
+ getMachineDefaultWorkspace(machineId: string, signal?: AbortSignal): Promise<MachineDefaultWorkspace>;
125
+ getAgentSessionWorkspaceContext(id: string, signal?: AbortSignal): Promise<AgentSessionWorkspaceContext>;
126
+ createAgentSessionInWorkspace(machineId: string, input: AgentSessionWorkspaceCreateInput, idempotencyKey: string, signal?: AbortSignal): Promise<AgentSessionWorkspaceEnvelope>;
127
+ createAgentSession(machineId: string, input: AgentSessionCreateInput, idempotencyKey: string, signal?: AbortSignal): Promise<AgentSession>;
128
+ inspectAgentSessionCreate(idempotencyKey: string, signal?: AbortSignal): Promise<AgentSession>;
129
+ getAgentSession(id: string, signal?: AbortSignal): Promise<AgentSession>;
130
+ getAgentSessionAuth(id: string, signal?: AbortSignal): Promise<AgentSessionAuth>;
131
+ /**
132
+ * `agentSessions.getTerminalSeat`: the durable writer seat of the terminal
133
+ * for the session's current process epoch. Read-only; it counts no live
134
+ * attachments, so a deploy that emptied the edge registry cannot make a held
135
+ * seat look free.
136
+ */
137
+ getAgentSessionTerminalSeat(id: string, signal?: AbortSignal): Promise<AgentSessionTerminalSeat>;
138
+ logoutAgentSessionAuth(id: string, expectedProcessEpoch: string, signal?: AbortSignal): Promise<AgentSessionAuthLogout>;
139
+ renameAgentSession(id: string, name: string): Promise<AgentSession>;
140
+ terminateAgentSession(id: string): Promise<AgentSession>;
141
+ createTerminalConnection(agentSessionId: string, input: TerminalConnectionCreateInput, idempotencyKey: string, signal?: AbortSignal): Promise<TerminalConnectionGrant>;
142
+ transferTerminalWriter(agentSessionId: string, input: TerminalWriterTransferInput, signal?: AbortSignal): Promise<TerminalWriterState>;
143
+ cancelTerminalConnection(agentSessionId: string, input: TerminalConnectionCreateInput, idempotencyKey: string, signal?: AbortSignal): Promise<{
144
+ readonly cancelled: true;
145
+ }>;
146
+ }
147
+ export declare function createCunaApiClient(transport: HttpTransport): CunaApiClient;
148
+ export type CapabilityDecision = {
149
+ readonly status: "supported";
150
+ readonly capabilityId: string;
151
+ } | {
152
+ readonly status: "unsupported" | "temporarily_unavailable" | "unknown";
153
+ readonly capabilityId: string;
154
+ readonly reason?: string;
155
+ };
156
+ export declare function decideCapability(snapshot: CapabilitySnapshot, capabilityId: string, now?: number, allowedInteractions?: readonly import("./contracts.js").CapabilityInteraction[]): CapabilityDecision;
157
+ export declare function requireCapability(input: {
158
+ readonly client: CunaApiClient;
159
+ readonly scope: CapabilityScope;
160
+ readonly resourceId?: string;
161
+ readonly capabilityId: string;
162
+ /** Number for a fixed observation, or a clock sampled after discovery returns. */
163
+ readonly now?: number | (() => number);
164
+ readonly allowedInteractions?: readonly import("./contracts.js").CapabilityInteraction[];
165
+ readonly signal?: AbortSignal;
166
+ }): Promise<void>;
167
+ //# sourceMappingURL=client.d.ts.map