@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAkC,CAAC;AACnE,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAwChC;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAAuB;IAChE,IAAI,MAAM,CAAC,aAAa,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACzD,OAAO,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,0BAA0B,CAAC;AAC7E,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAuB;IACxD,IAAI,MAAM,CAAC,aAAa,KAAK,SAAS;QAAE,MAAM,MAAM,CAAC,aAAa,CAAC;AACrE,CAAC;AAYD;;;;;;GAMG;AACH,SAAS,WAAW,CAAC,MAAc,EAAE,MAAqB,EAAE,QAAiB;IAC3E,MAAM,IAAI,GAAG,MAAM,KAAK,aAAa;QACnC,CAAC,CAAC,oBAAoB,QAAQ,IAAI,+BAA+B,wCAAwC;QACzG,CAAC,CAAC,MAAM,KAAK,MAAM;YACjB,CAAC,CAAC,qEAAqE;YACvE,CAAC,CAAC,0EAA0E,CAAC;IACjF,OAAO,IAAI,SAAS,CAAC;QACnB,IAAI,EAAE,qB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AC9C,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC;QAC3C,cAAc,EAAE,MAAM,CAAC,YAAY;QACnC,2EAA2E;QAC3E,0EAA0E;QAC1E,+DAA+D;QAC/D,gBAAgB,EAAE,MAAM,CAAC,cAAc,IAAI,IAAI;QAC/C,WAAW,EAAE,MAAM,CAAC,UAAU;KAC/B,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,29 @@
1
+ export declare const INFRA_OPENAPI_CONTRACT_IDENTITY: Readonly<{
2
+ readonly schemaVersion: 2;
3
+ readonly artifact_file: "contracts/infra/cuna-api.openapi.json";
4
+ readonly canonical_digest_file: "contracts/infra/cuna-api.openapi.sha256";
5
+ readonly infra_openapi_raw_sha256: "f4c2d396b94f296b22df276435dc04ecf1da48807efa1e819c4cbff9ea59a83e";
6
+ readonly infra_openapi_canonical_sha256: "43213c2adac602676437b612b7d4153707e09155bdc4fa3029cca15a0b207ecc";
7
+ readonly producer_repository: "Cuna-Labs/infra-proxy-mvp";
8
+ readonly producer_content_state: "committed";
9
+ readonly producer_revision: "7b1b3e425ed273986a909a68395b5272bd6a01ba";
10
+ readonly producer_full_tree: {
11
+ readonly object_format: "sha1";
12
+ readonly commit: "7b1b3e425ed273986a909a68395b5272bd6a01ba";
13
+ readonly tree: "719a2bc234e3612bd8c17f1afdefcbc764d08cf1";
14
+ readonly contract_blob: "36fda0f07b61366ba1cca3e770974dca36f1deed";
15
+ };
16
+ readonly producer_contract_verifier: "contracts/tools/verify-contract.mjs";
17
+ readonly producer_projection_sha256: "a5302868c17cd3ebf2ef05af751873a5e45f9b545a6c96ec24f31c5b3643345c";
18
+ readonly producer_runtime_manifest_sha256: "5036aa108aebdee5fcf9f83f95d57f7a0e9bf93fc5acb78bea98d021d3d95cbc";
19
+ readonly feature_contracts: {
20
+ readonly opencode_interactive_only: {
21
+ readonly openapi_raw_sha256: "f4c2d396b94f296b22df276435dc04ecf1da48807efa1e819c4cbff9ea59a83e";
22
+ readonly openapi_canonical_sha256: "43213c2adac602676437b612b7d4153707e09155bdc4fa3029cca15a0b207ecc";
23
+ readonly producer_commit: "7b1b3e425ed273986a909a68395b5272bd6a01ba";
24
+ readonly producer_tree: "719a2bc234e3612bd8c17f1afdefcbc764d08cf1";
25
+ readonly producer_contract_blob: "36fda0f07b61366ba1cca3e770974dca36f1deed";
26
+ };
27
+ };
28
+ }>;
29
+ //# sourceMappingURL=infra-contract-witness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-contract-witness.d.ts","sourceRoot":"","sources":["../../src/config/infra-contract-witness.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BjC,CAAC"}
@@ -0,0 +1,30 @@
1
+ // Generated by scripts/sync-infra-openapi.mjs; do not edit manually.
2
+ export const INFRA_OPENAPI_CONTRACT_IDENTITY = Object.freeze({
3
+ "schemaVersion": 2,
4
+ "artifact_file": "contracts/infra/cuna-api.openapi.json",
5
+ "canonical_digest_file": "contracts/infra/cuna-api.openapi.sha256",
6
+ "infra_openapi_raw_sha256": "f4c2d396b94f296b22df276435dc04ecf1da48807efa1e819c4cbff9ea59a83e",
7
+ "infra_openapi_canonical_sha256": "43213c2adac602676437b612b7d4153707e09155bdc4fa3029cca15a0b207ecc",
8
+ "producer_repository": "Cuna-Labs/infra-proxy-mvp",
9
+ "producer_content_state": "committed",
10
+ "producer_revision": "7b1b3e425ed273986a909a68395b5272bd6a01ba",
11
+ "producer_full_tree": {
12
+ "object_format": "sha1",
13
+ "commit": "7b1b3e425ed273986a909a68395b5272bd6a01ba",
14
+ "tree": "719a2bc234e3612bd8c17f1afdefcbc764d08cf1",
15
+ "contract_blob": "36fda0f07b61366ba1cca3e770974dca36f1deed"
16
+ },
17
+ "producer_contract_verifier": "contracts/tools/verify-contract.mjs",
18
+ "producer_projection_sha256": "a5302868c17cd3ebf2ef05af751873a5e45f9b545a6c96ec24f31c5b3643345c",
19
+ "producer_runtime_manifest_sha256": "5036aa108aebdee5fcf9f83f95d57f7a0e9bf93fc5acb78bea98d021d3d95cbc",
20
+ "feature_contracts": {
21
+ "opencode_interactive_only": {
22
+ "openapi_raw_sha256": "f4c2d396b94f296b22df276435dc04ecf1da48807efa1e819c4cbff9ea59a83e",
23
+ "openapi_canonical_sha256": "43213c2adac602676437b612b7d4153707e09155bdc4fa3029cca15a0b207ecc",
24
+ "producer_commit": "7b1b3e425ed273986a909a68395b5272bd6a01ba",
25
+ "producer_tree": "719a2bc234e3612bd8c17f1afdefcbc764d08cf1",
26
+ "producer_contract_blob": "36fda0f07b61366ba1cca3e770974dca36f1deed"
27
+ }
28
+ }
29
+ });
30
+ //# sourceMappingURL=infra-contract-witness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-contract-witness.js","sourceRoot":"","sources":["../../src/config/infra-contract-witness.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3D,eAAe,EAAE,CAAC;IAClB,eAAe,EAAE,uCAAuC;IACxD,uBAAuB,EAAE,yCAAyC;IAClE,0BAA0B,EAAE,kEAAkE;IAC9F,gCAAgC,EAAE,kEAAkE;IACpG,qBAAqB,EAAE,2BAA2B;IAClD,wBAAwB,EAAE,WAAW;IACrC,mBAAmB,EAAE,0CAA0C;IAC/D,oBAAoB,EAAE;QACpB,eAAe,EAAE,MAAM;QACvB,QAAQ,EAAE,0CAA0C;QACpD,MAAM,EAAE,0CAA0C;QAClD,eAAe,EAAE,0CAA0C;KAC5D;IACD,4BAA4B,EAAE,qCAAqC;IACnE,4BAA4B,EAAE,kEAAkE;IAChG,kCAAkC,EAAE,kEAAkE;IACtG,mBAAmB,EAAE;QACnB,2BAA2B,EAAE;YAC3B,oBAAoB,EAAE,kEAAkE;YACxF,0BAA0B,EAAE,kEAAkE;YAC9F,iBAAiB,EAAE,0CAA0C;YAC7D,eAAe,EAAE,0CAA0C;YAC3D,wBAAwB,EAAE,0CAA0C;SACrE;KACF;CACO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function isBoundedHttpsBrowserUrl(value: string): boolean;
2
+ //# sourceMappingURL=browser-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-url.d.ts","sourceRoot":"","sources":["../../src/core/browser-url.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAe/D"}
@@ -0,0 +1,20 @@
1
+ const MAXIMUM_BROWSER_URL_BYTES = 8 * 1024;
2
+ export function isBoundedHttpsBrowserUrl(value) {
3
+ let parsed;
4
+ try {
5
+ parsed = new URL(value);
6
+ }
7
+ catch {
8
+ return false;
9
+ }
10
+ if (parsed.protocol !== "https:" || Buffer.byteLength(value, "utf8") > MAXIMUM_BROWSER_URL_BYTES) {
11
+ return false;
12
+ }
13
+ for (let index = 0; index < value.length; index += 1) {
14
+ const code = value.charCodeAt(index);
15
+ if (code <= 0x1f || code === 0x7f)
16
+ return false;
17
+ }
18
+ return true;
19
+ }
20
+ //# sourceMappingURL=browser-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-url.js","sourceRoot":"","sources":["../../src/core/browser-url.ts"],"names":[],"mappings":"AAAA,MAAM,yBAAyB,GAAG,CAAC,GAAG,IAAI,CAAC;AAE3C,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,yBAAyB,EAAE,CAAC;QACjG,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;IAClD,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Earlier-brand identifiers retained solely because a deployed producer or
3
+ * stored credential still emits them, or because the earlier CLI published the
4
+ * configuration name. These are compatibility acceptors, never new durable
5
+ * mints, public TypeScript names, or local paths.
6
+ */
7
+ export declare const DEPLOYED_WIRE_COMPATIBILITY: Readonly<{
8
+ readonly terminalProtocol: "runa.terminal.v1";
9
+ readonly agentSessionAuthAdapterVersion: "runa.agent-auth.v1";
10
+ readonly websocketAuthPrefix: "runa.auth.";
11
+ readonly credentialBrand: "runa";
12
+ readonly apiOrigin: "https://api.runacode.io";
13
+ readonly apiKeyEnvironment: "RUNA_API_KEY";
14
+ }>;
15
+ //# sourceMappingURL=deployed-wire-compatibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployed-wire-compatibility.d.ts","sourceRoot":"","sources":["../../src/core/deployed-wire-compatibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;EAO7B,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Earlier-brand identifiers retained solely because a deployed producer or
3
+ * stored credential still emits them, or because the earlier CLI published the
4
+ * configuration name. These are compatibility acceptors, never new durable
5
+ * mints, public TypeScript names, or local paths.
6
+ */
7
+ export const DEPLOYED_WIRE_COMPATIBILITY = Object.freeze({
8
+ terminalProtocol: "runa.terminal.v1",
9
+ agentSessionAuthAdapterVersion: "runa.agent-auth.v1",
10
+ websocketAuthPrefix: "runa.auth.",
11
+ credentialBrand: "runa",
12
+ apiOrigin: "https://api.runacode.io",
13
+ apiKeyEnvironment: "RUNA_API_KEY",
14
+ });
15
+ //# sourceMappingURL=deployed-wire-compatibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployed-wire-compatibility.js","sourceRoot":"","sources":["../../src/core/deployed-wire-compatibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC;IACvD,gBAAgB,EAAE,kBAAkB;IACpC,8BAA8B,EAAE,oBAAoB;IACpD,mBAAmB,EAAE,YAAY;IACjC,eAAe,EAAE,MAAM;IACvB,SAAS,EAAE,yBAAyB;IACpC,iBAAiB,EAAE,cAAc;CACzB,CAAC,CAAC"}
@@ -0,0 +1,59 @@
1
+ export declare const EXIT_CODES: Readonly<{
2
+ readonly success: 0;
3
+ readonly usage: 2;
4
+ readonly auth: 3;
5
+ readonly policy: 4;
6
+ readonly network: 5;
7
+ readonly conflict: 6;
8
+ readonly remote: 7;
9
+ readonly unsupported: 8;
10
+ readonly internal: 70;
11
+ }>;
12
+ export type ExitCode = (typeof EXIT_CODES)[keyof typeof EXIT_CODES];
13
+ export type SafeErrorScalar = string | number | boolean | null;
14
+ export type SafeErrorDetails = Readonly<Record<string, SafeErrorScalar | readonly SafeErrorScalar[]>>;
15
+ /**
16
+ * The namespace every error code this CLI emits is minted under.
17
+ *
18
+ * Codes reach the user twice — as `error.code` in `--json` records and as
19
+ * `Error [code]:` on a terminal — so the namespace is product surface, not an
20
+ * internal tag.
21
+ *
22
+ * WHAT THIS CONSTANT IS NOT: it is not the thing codes are built from. Measured
23
+ * — the only references to `ERROR_NAMESPACE` in the tree are this declaration
24
+ * and its re-export from `src/index.ts`. Not one error code is derived from it.
25
+ * The literals are still written out by hand at roughly 145 sites, so a rename
26
+ * is still a mass edit and the guard against a half-finished one is
27
+ * `test/error-namespace.test.mjs`, which greps for the absence of `runa.` — not
28
+ * this constant.
29
+ *
30
+ * An earlier version of this comment claimed the opposite ("a rename is one
31
+ * edit rather than the ninety-one scattered literals it used to be"). It was
32
+ * wrong, and it is the kind of wrong that stops the next reader from adding the
33
+ * guard that is actually missing.
34
+ *
35
+ * This is also NOT the wire namespace. Protocol identifiers the service mints
36
+ * and compares by exact equality (`runa.terminal.v1`, `runa.agent-auth.v1`, the
37
+ * `runa.auth.<token>` WebSocket subprotocol) are not error codes.
38
+ */
39
+ export declare const ERROR_NAMESPACE: "cuna";
40
+ export declare class CunaError extends Error {
41
+ readonly code: string;
42
+ readonly exitCode: ExitCode;
43
+ readonly hint: string | undefined;
44
+ readonly retryable: boolean;
45
+ readonly details: SafeErrorDetails | undefined;
46
+ constructor(input: {
47
+ readonly code: string;
48
+ readonly message: string;
49
+ readonly exitCode: ExitCode;
50
+ readonly hint?: string;
51
+ readonly retryable?: boolean;
52
+ readonly details?: SafeErrorDetails;
53
+ readonly cause?: unknown;
54
+ });
55
+ }
56
+ export declare function usageError(message: string, hint?: string): CunaError;
57
+ export declare function unsupportedError(feature: string, reason?: string): CunaError;
58
+ export declare function normalizeError(error: unknown): CunaError;
59
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;EAUZ,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,eAAe,EAAE,CAAC,CAAC,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,qBAAa,SAAU,SAAQ,KAAK;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAC;gBAEnC,KAAK,EAAE;QACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;QAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;QACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;KAC1B;CASF;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAOpE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAoB,GAAG,SAAS,CAQvF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,CASxD"}
@@ -0,0 +1,82 @@
1
+ import { SUPPORT_URL } from "./product-web.js";
2
+ export const EXIT_CODES = Object.freeze({
3
+ success: 0,
4
+ usage: 2,
5
+ auth: 3,
6
+ policy: 4,
7
+ network: 5,
8
+ conflict: 6,
9
+ remote: 7,
10
+ unsupported: 8,
11
+ internal: 70,
12
+ });
13
+ /**
14
+ * The namespace every error code this CLI emits is minted under.
15
+ *
16
+ * Codes reach the user twice — as `error.code` in `--json` records and as
17
+ * `Error [code]:` on a terminal — so the namespace is product surface, not an
18
+ * internal tag.
19
+ *
20
+ * WHAT THIS CONSTANT IS NOT: it is not the thing codes are built from. Measured
21
+ * — the only references to `ERROR_NAMESPACE` in the tree are this declaration
22
+ * and its re-export from `src/index.ts`. Not one error code is derived from it.
23
+ * The literals are still written out by hand at roughly 145 sites, so a rename
24
+ * is still a mass edit and the guard against a half-finished one is
25
+ * `test/error-namespace.test.mjs`, which greps for the absence of `runa.` — not
26
+ * this constant.
27
+ *
28
+ * An earlier version of this comment claimed the opposite ("a rename is one
29
+ * edit rather than the ninety-one scattered literals it used to be"). It was
30
+ * wrong, and it is the kind of wrong that stops the next reader from adding the
31
+ * guard that is actually missing.
32
+ *
33
+ * This is also NOT the wire namespace. Protocol identifiers the service mints
34
+ * and compares by exact equality (`runa.terminal.v1`, `runa.agent-auth.v1`, the
35
+ * `runa.auth.<token>` WebSocket subprotocol) are not error codes.
36
+ */
37
+ export const ERROR_NAMESPACE = "cuna";
38
+ export class CunaError extends Error {
39
+ code;
40
+ exitCode;
41
+ hint;
42
+ retryable;
43
+ details;
44
+ constructor(input) {
45
+ super(input.message, { cause: input.cause });
46
+ this.name = "CunaError";
47
+ this.code = input.code;
48
+ this.exitCode = input.exitCode;
49
+ this.hint = input.hint;
50
+ this.retryable = input.retryable ?? false;
51
+ this.details = input.details;
52
+ }
53
+ }
54
+ export function usageError(message, hint) {
55
+ return new CunaError({
56
+ code: "cuna.usage.invalid",
57
+ message,
58
+ exitCode: EXIT_CODES.usage,
59
+ ...(hint === undefined ? {} : { hint }),
60
+ });
61
+ }
62
+ export function unsupportedError(feature, reason = "not_implemented") {
63
+ return new CunaError({
64
+ code: "cuna.capability.unsupported",
65
+ message: `The ${feature} capability is not available in this CLI build or server contract.`,
66
+ exitCode: EXIT_CODES.unsupported,
67
+ hint: "Run `cuna capabilities` to inspect current server support.",
68
+ details: { feature, reason },
69
+ });
70
+ }
71
+ export function normalizeError(error) {
72
+ if (error instanceof CunaError)
73
+ return error;
74
+ return new CunaError({
75
+ code: "cuna.internal.unexpected",
76
+ message: "Cuna could not complete the command because of an internal failure.",
77
+ exitCode: EXIT_CODES.internal,
78
+ hint: `Retry once. If the problem persists, run \`cuna doctor --json\` and report it at ${SUPPORT_URL}.`,
79
+ cause: error,
80
+ });
81
+ }
82
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,CAAC;IACT,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,EAAE;CACJ,CAAC,CAAC;AAOZ;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAe,CAAC;AAE/C,MAAM,OAAO,SAAU,SAAQ,KAAK;IACzB,IAAI,CAAS;IACb,QAAQ,CAAW;IACnB,IAAI,CAAqB;IACzB,SAAS,CAAU;IACnB,OAAO,CAA+B;IAE/C,YAAY,KAQX;QACC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IAC/B,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,OAAe,EAAE,IAAa;IACvD,OAAO,IAAI,SAAS,CAAC;QACnB,IAAI,EAAE,oBAAoB;QAC1B,OAAO;QACP,QAAQ,EAAE,UAAU,CAAC,KAAK;QAC1B,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;KACxC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe,EAAE,MAAM,GAAG,iBAAiB;IAC1E,OAAO,IAAI,SAAS,CAAC;QACnB,IAAI,EAAE,6BAA6B;QACnC,OAAO,EAAE,OAAO,OAAO,oEAAoE;QAC3F,QAAQ,EAAE,UAAU,CAAC,WAAW;QAChC,IAAI,EAAE,4DAA4D;QAClE,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;KAC7B,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,IAAI,KAAK,YAAY,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7C,OAAO,IAAI,SAAS,CAAC;QACnB,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,qEAAqE;QAC9E,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,IAAI,EAAE,oFAAoF,WAAW,GAAG;QACxG,KAAK,EAAE,KAAK;KACb,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { EXIT_CODES } from "./errors.js";
2
+ /**
3
+ * The documented exit-code contract, PROJECTED from `EXIT_CODES`.
4
+ *
5
+ * WHY THIS FILE EXISTS. The process exit code is the whole contract for a
6
+ * caller that is not a human, and this build is usable almost exclusively as an
7
+ * automation client. A script that cannot tell "your credential is wrong" (3)
8
+ * from "the server is behind" (7) from "this deployment does not serve the
9
+ * operation" (8) cannot choose between reauthenticating, waiting, and giving
10
+ * up — three responses with nothing in common. Twenty-one commands were run
11
+ * against production and six distinct codes came back; the README, the
12
+ * changelog and `cuna --help` mentioned none of them.
13
+ *
14
+ * WHY IT IS A PROJECTION AND NOT A SECOND LIST. A namespace minted in one place
15
+ * and described in another is the defect this repository has already closed
16
+ * four times over: the two copies are compared by nobody, one side is edited,
17
+ * and the documentation starts describing a build that no longer exists. So no
18
+ * number is written here. Every number below is read out of `EXIT_CODES`, and
19
+ * the prose is keyed by `keyof typeof EXIT_CODES`, which makes both failure
20
+ * directions a COMPILE error rather than a silent drift:
21
+ *
22
+ * - adding a code to `EXIT_CODES` without describing it here -> missing
23
+ * property on the `Record`;
24
+ * - describing a code that `EXIT_CODES` does not define -> excess property
25
+ * on the object literal.
26
+ *
27
+ * WHAT THIS FILE DOES NOT DO, stated because the omission is deliberate. It
28
+ * cannot detect a code whose *meaning* changed while its number stayed put, and
29
+ * it cannot detect the reverse — `operation_not_served` moved from 7 to 8 in
30
+ * this repository and every derived artifact would have moved with it, silently.
31
+ * Only a literal oracle catches that, which is why
32
+ * `test/exit-code-contract.test.mjs` writes all nine numbers out by hand and
33
+ * must never import them from here.
34
+ *
35
+ * The reachable path recorded against each code is one invocation, verified in
36
+ * this tree, that actually produces it. It is deliberately ONE and not an
37
+ * enumeration: a caller needs to know the code is real and how to see it, and a
38
+ * list of every mint site would be stale within a release.
39
+ */
40
+ export type ExitCodeName = keyof typeof EXIT_CODES;
41
+ export interface DocumentedExitCode {
42
+ /** The name the source mints this code under, e.g. `unsupported`. */
43
+ readonly name: ExitCodeName;
44
+ /** The number the process exits with. Read from `EXIT_CODES`, never written here. */
45
+ readonly code: number;
46
+ /** What a caller may conclude when it sees this code. */
47
+ readonly meaning: string;
48
+ /** One invocation in this build that reaches it, and the code it mints. */
49
+ readonly reachablePath: string;
50
+ }
51
+ /**
52
+ * Every code the program can return, ascending. Nine names, nine numbers, all
53
+ * nine read from `EXIT_CODES`.
54
+ */
55
+ export declare const DOCUMENTED_EXIT_CODES: readonly DocumentedExitCode[];
56
+ /**
57
+ * The README's exit-code table. The README carries the rendered output between
58
+ * generated-region markers and a test asserts the two are identical, so the
59
+ * published table cannot outlive the codes it describes.
60
+ */
61
+ export declare function exitCodeMarkdownTable(): string;
62
+ /**
63
+ * The `cuna --help` exit-code block. Help is where most callers will meet this
64
+ * contract, so it carries the meanings; the reachable paths stay in the README
65
+ * because they are reference material, not a reminder.
66
+ */
67
+ export declare function exitCodeHelpSection(): string;
68
+ //# sourceMappingURL=exit-codes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit-codes.d.ts","sourceRoot":"","sources":["../../src/core/exit-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,CAAC;AAEnD,MAAM,WAAW,kBAAkB;IACjC,qEAAqE;IACrE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAmDD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,kBAAkB,EAS9D,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAS9C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAQ5C"}
@@ -0,0 +1,84 @@
1
+ import { EXIT_CODES } from "./errors.js";
2
+ // `satisfies` rather than a type annotation, deliberately. An annotation is
3
+ // checked through `Object.freeze`'s return type, which permits EXTRA
4
+ // properties — so a code deleted from `EXIT_CODES` would leave its description
5
+ // behind and compile clean. `satisfies` applies excess-property checking to the
6
+ // literal itself, which is the direction an annotation misses.
7
+ const EXIT_CODE_PROSE = Object.freeze({
8
+ success: Object.freeze({
9
+ meaning: "The command completed and the record it printed is authoritative.",
10
+ reachablePath: "`cuna self-test --offline` verifies the installed artifact without a network request and returns.",
11
+ }),
12
+ usage: Object.freeze({
13
+ meaning: "The invocation or the resolved configuration is invalid.",
14
+ reachablePath: "`cuna nonsense` fails the command preflight with `cuna.usage.invalid`. Nothing is sent to the server.",
15
+ }),
16
+ auth: Object.freeze({
17
+ meaning: "No usable credential, a rejected credential, or an auth-mode conflict.",
18
+ reachablePath: "`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.",
19
+ }),
20
+ policy: Object.freeze({
21
+ meaning: "Understood and refused by policy, including a required confirmation.",
22
+ reachablePath: "`cuna machines delete ID` without `--yes` mints `cuna.confirmation.required`. A server refusal arrives as `cuna.policy.denied` from HTTP 403.",
23
+ }),
24
+ network: Object.freeze({
25
+ meaning: "No authoritative answer arrived, including when the CLI stopped waiting for one.",
26
+ reachablePath: "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`.",
27
+ }),
28
+ conflict: Object.freeze({
29
+ meaning: "Current state contradicts the change; repeating it unchanged repeats this.",
30
+ reachablePath: "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.",
31
+ }),
32
+ remote: Object.freeze({
33
+ meaning: "The server answered, but not in a way the published contract allows.",
34
+ reachablePath: "`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`.",
35
+ }),
36
+ unsupported: Object.freeze({
37
+ meaning: "This deployment does not serve or does not advertise the capability.",
38
+ reachablePath: "`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.",
39
+ }),
40
+ internal: Object.freeze({
41
+ meaning: "The CLI itself failed; no server outcome is implied.",
42
+ reachablePath: "any throw that is not a `CunaError` reaching the top of `runCli` is normalized to `cuna.internal.unexpected`.",
43
+ }),
44
+ });
45
+ /**
46
+ * Every code the program can return, ascending. Nine names, nine numbers, all
47
+ * nine read from `EXIT_CODES`.
48
+ */
49
+ export const DOCUMENTED_EXIT_CODES = Object.freeze(Object.keys(EXIT_CODE_PROSE)
50
+ .map((name) => Object.freeze({
51
+ name,
52
+ code: EXIT_CODES[name],
53
+ meaning: EXIT_CODE_PROSE[name].meaning,
54
+ reachablePath: EXIT_CODE_PROSE[name].reachablePath,
55
+ }))
56
+ .sort((left, right) => left.code - right.code));
57
+ /**
58
+ * The README's exit-code table. The README carries the rendered output between
59
+ * generated-region markers and a test asserts the two are identical, so the
60
+ * published table cannot outlive the codes it describes.
61
+ */
62
+ export function exitCodeMarkdownTable() {
63
+ const rows = DOCUMENTED_EXIT_CODES.map((entry) => `| \`${entry.code}\` | \`${entry.name}\` | ${entry.meaning} | ${entry.reachablePath} |`);
64
+ return [
65
+ "| Exit code | Name | Meaning | One reachable path |",
66
+ "| --- | --- | --- | --- |",
67
+ ...rows,
68
+ ].join("\n");
69
+ }
70
+ /**
71
+ * The `cuna --help` exit-code block. Help is where most callers will meet this
72
+ * contract, so it carries the meanings; the reachable paths stay in the README
73
+ * because they are reference material, not a reminder.
74
+ */
75
+ export function exitCodeHelpSection() {
76
+ // Both column widths are measured, not chosen. A longer code or a longer name
77
+ // must widen the column rather than run into the text beside it.
78
+ const codeWidth = Math.max(...DOCUMENTED_EXIT_CODES.map((entry) => String(entry.code).length));
79
+ const nameWidth = Math.max(...DOCUMENTED_EXIT_CODES.map((entry) => entry.name.length)) + 2;
80
+ return DOCUMENTED_EXIT_CODES
81
+ .map((entry) => ` ${String(entry.code).padStart(codeWidth, " ")} ${entry.name.padEnd(nameWidth, " ")}${entry.meaning}`)
82
+ .join("\n");
83
+ }
84
+ //# sourceMappingURL=exit-codes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit-codes.js","sourceRoot":"","sources":["../../src/core/exit-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA2DzC,4EAA4E;AAC5E,qEAAqE;AACrE,+EAA+E;AAC/E,gFAAgF;AAChF,+DAA+D;AAC/D,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,mEAAmE;QAC5E,aAAa,EAAE,mGAAmG;KACnH,CAAC;IACF,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,OAAO,EAAE,0DAA0D;QACnE,aAAa,EAAE,uGAAuG;KACvH,CAAC;IACF,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,wEAAwE;QACjF,aAAa,EAAE,2JAA2J;KAC3K,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,sEAAsE;QAC/E,aAAa,EAAE,+IAA+I;KAC/J,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,kFAAkF;QAC3F,aAAa,EAAE,oUAAoU;KACpV,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;QACtB,OAAO,EAAE,4EAA4E;QACrF,aAAa,EAAE,sPAAsP;KACtQ,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,sEAAsE;QAC/E,aAAa,EAAE,wNAAwN;KACxO,CAAC;IACF,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC;QACzB,OAAO,EAAE,sEAAsE;QAC/E,aAAa,EAAE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IAC/F,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;IAC3F,OAAO,qBAAqB;SACzB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;SACxH,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * The one authority in this CLI for reading a timestamp another system wrote.
3
+ *
4
+ * This file exists because the same defect was found four times on 2026-08-18,
5
+ * in three languages, and each one was first fixed locally as if it were a typo:
6
+ *
7
+ * infra edge/src/supervisor-attachment-authority.ts ticket.expires_at !== expiresAt
8
+ * infra assets/agent-session-supervisor.py value.endswith("Z")
9
+ * cuna-cli src/workspace/binding-store.ts new Date(t).toISOString() !== t
10
+ * cuna-cli src/runtime/terminal-transport.ts /\.[0-9]{3}Z$/
11
+ *
12
+ * Every one compares an ENCODING where it means to compare an INSTANT, and every
13
+ * one is correct wherever a single process both writes and reads the value —
14
+ * which is exactly why they survived review. Nothing in the code separated "we
15
+ * minted this" from "they minted this", so one idiom was harmless in one file
16
+ * and fatal in the next.
17
+ *
18
+ * The two encodings, both measured against production 2026-08-18:
19
+ *
20
+ * JavaScript toISOString() 2026-08-18T21:00:00.000Z 3 digits, `Z`
21
+ * PostgREST over timestamptz 2026-08-18T20:49:24.458909+00:00 up to 6, `+00:00`
22
+ *
23
+ * They are never string-equal. The API contract settles which is correct: 36
24
+ * properties carry `format: "date-time"`, which in OpenAPI 3.1 is RFC 3339 §5.6
25
+ * and admits both, at any fractional precision. So neither renderer was wrong;
26
+ * every one of those comparisons was NARROWER THAN THE CONTRACT it implements.
27
+ *
28
+ * `infra` carries the mirror of this module at `edge/src/instant.ts`. Two copies
29
+ * of one rule is itself the shape this workspace keeps closing, and it is
30
+ * accepted here only because the CLI ships as a standalone npm package with no
31
+ * dependency on the service repository. If a shared package ever exists, this is
32
+ * one of the first things that should move into it.
33
+ *
34
+ * What this module is NOT for: a value this CLI minted itself. Where the CLI is
35
+ * both writer and reader — `src/auth/human-session.ts`, whose stored
36
+ * `login_code_expires_at` is normalized to canonical form by
37
+ * `src/auth/human-contracts.ts` before it is ever written — an exact-encoding
38
+ * check is a correct integrity check on our own file, and widening it would
39
+ * weaken it for nothing.
40
+ */
41
+ /**
42
+ * The epoch milliseconds of an RFC 3339 instant, or `null` if the value is not
43
+ * one.
44
+ *
45
+ * Note the deliberate lossiness: `Date.parse` truncates below the millisecond,
46
+ * so `…458909+00:00` and `…458+00:00` are the same number here. That is the
47
+ * right resolution for these call sites — each is checking that a store echoed
48
+ * back a moment, and the sub-millisecond digits are the store's own precision,
49
+ * never information the CLI supplied. A caller that genuinely needs exact bytes
50
+ * should compare bytes and say why.
51
+ */
52
+ export declare function instantOrNull(value: unknown): number | null;
53
+ /**
54
+ * True when both arguments name the same moment, whatever rendered them.
55
+ *
56
+ * `false` whenever either side is not an RFC 3339 instant, so an unparseable
57
+ * value never compares equal to anything, including itself.
58
+ */
59
+ export declare function sameInstant(left: unknown, right: unknown): boolean;
60
+ //# sourceMappingURL=instant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instant.d.ts","sourceRoot":"","sources":["../../src/core/instant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAwBH;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAI3D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAIlE"}