@marinoscar/platform-cli 0.0.0-stage → 0.1.0-next.10

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 (752) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/LICENSE +21 -0
  3. package/README.md +182 -2
  4. package/dist/android/build.d.ts +30 -0
  5. package/dist/android/build.d.ts.map +1 -0
  6. package/dist/android/build.js +126 -0
  7. package/dist/android/build.js.map +1 -0
  8. package/dist/android/command.d.ts +21 -0
  9. package/dist/android/command.d.ts.map +1 -0
  10. package/dist/android/command.js +355 -0
  11. package/dist/android/command.js.map +1 -0
  12. package/dist/android/deploy-step.d.ts +85 -0
  13. package/dist/android/deploy-step.d.ts.map +1 -0
  14. package/dist/android/deploy-step.js +268 -0
  15. package/dist/android/deploy-step.js.map +1 -0
  16. package/dist/android/doctor.d.ts +47 -0
  17. package/dist/android/doctor.d.ts.map +1 -0
  18. package/dist/android/doctor.js +219 -0
  19. package/dist/android/doctor.js.map +1 -0
  20. package/dist/android/exec.d.ts +42 -0
  21. package/dist/android/exec.d.ts.map +1 -0
  22. package/dist/android/exec.js +103 -0
  23. package/dist/android/exec.js.map +1 -0
  24. package/dist/android/fix-plan.d.ts +44 -0
  25. package/dist/android/fix-plan.d.ts.map +1 -0
  26. package/dist/android/fix-plan.js +86 -0
  27. package/dist/android/fix-plan.js.map +1 -0
  28. package/dist/android/git-freshness.d.ts +34 -0
  29. package/dist/android/git-freshness.d.ts.map +1 -0
  30. package/dist/android/git-freshness.js +120 -0
  31. package/dist/android/git-freshness.js.map +1 -0
  32. package/dist/android/gradle.d.ts +32 -0
  33. package/dist/android/gradle.d.ts.map +1 -0
  34. package/dist/android/gradle.js +55 -0
  35. package/dist/android/gradle.js.map +1 -0
  36. package/dist/android/identity.d.ts +27 -0
  37. package/dist/android/identity.d.ts.map +1 -0
  38. package/dist/android/identity.js +60 -0
  39. package/dist/android/identity.js.map +1 -0
  40. package/dist/android/index.d.ts +7 -0
  41. package/dist/android/index.d.ts.map +1 -0
  42. package/dist/android/index.js +8 -0
  43. package/dist/android/index.js.map +1 -0
  44. package/dist/android/installer.d.ts +28 -0
  45. package/dist/android/installer.d.ts.map +1 -0
  46. package/dist/android/installer.js +96 -0
  47. package/dist/android/installer.js.map +1 -0
  48. package/dist/android/java.d.ts +26 -0
  49. package/dist/android/java.d.ts.map +1 -0
  50. package/dist/android/java.js +65 -0
  51. package/dist/android/java.js.map +1 -0
  52. package/dist/android/keystore.d.ts +54 -0
  53. package/dist/android/keystore.d.ts.map +1 -0
  54. package/dist/android/keystore.js +159 -0
  55. package/dist/android/keystore.js.map +1 -0
  56. package/dist/android/metadata.d.ts +39 -0
  57. package/dist/android/metadata.d.ts.map +1 -0
  58. package/dist/android/metadata.js +61 -0
  59. package/dist/android/metadata.js.map +1 -0
  60. package/dist/android/operations.d.ts +42 -0
  61. package/dist/android/operations.d.ts.map +1 -0
  62. package/dist/android/operations.js +59 -0
  63. package/dist/android/operations.js.map +1 -0
  64. package/dist/android/paths.d.ts +29 -0
  65. package/dist/android/paths.d.ts.map +1 -0
  66. package/dist/android/paths.js +97 -0
  67. package/dist/android/paths.js.map +1 -0
  68. package/dist/android/publish.d.ts +37 -0
  69. package/dist/android/publish.d.ts.map +1 -0
  70. package/dist/android/publish.js +119 -0
  71. package/dist/android/publish.js.map +1 -0
  72. package/dist/android/registrations.d.ts +92 -0
  73. package/dist/android/registrations.d.ts.map +1 -0
  74. package/dist/android/registrations.js +112 -0
  75. package/dist/android/registrations.js.map +1 -0
  76. package/dist/android/release-status.d.ts +73 -0
  77. package/dist/android/release-status.d.ts.map +1 -0
  78. package/dist/android/release-status.js +161 -0
  79. package/dist/android/release-status.js.map +1 -0
  80. package/dist/android/release.d.ts +33 -0
  81. package/dist/android/release.d.ts.map +1 -0
  82. package/dist/android/release.js +59 -0
  83. package/dist/android/release.js.map +1 -0
  84. package/dist/android/screen-layout.d.ts +26 -0
  85. package/dist/android/screen-layout.d.ts.map +1 -0
  86. package/dist/android/screen-layout.js +24 -0
  87. package/dist/android/screen-layout.js.map +1 -0
  88. package/dist/android/screen-model.d.ts +56 -0
  89. package/dist/android/screen-model.d.ts.map +1 -0
  90. package/dist/android/screen-model.js +207 -0
  91. package/dist/android/screen-model.js.map +1 -0
  92. package/dist/android/screen.d.ts +8 -0
  93. package/dist/android/screen.d.ts.map +1 -0
  94. package/dist/android/screen.js +395 -0
  95. package/dist/android/screen.js.map +1 -0
  96. package/dist/android/sdk.d.ts +48 -0
  97. package/dist/android/sdk.d.ts.map +1 -0
  98. package/dist/android/sdk.js +82 -0
  99. package/dist/android/sdk.js.map +1 -0
  100. package/dist/android/server-url.d.ts +19 -0
  101. package/dist/android/server-url.d.ts.map +1 -0
  102. package/dist/android/server-url.js +36 -0
  103. package/dist/android/server-url.js.map +1 -0
  104. package/dist/android/upload-progress.d.ts +3 -0
  105. package/dist/android/upload-progress.d.ts.map +1 -0
  106. package/dist/android/upload-progress.js +47 -0
  107. package/dist/android/upload-progress.js.map +1 -0
  108. package/dist/android/version.d.ts +47 -0
  109. package/dist/android/version.d.ts.map +1 -0
  110. package/dist/android/version.js +136 -0
  111. package/dist/android/version.js.map +1 -0
  112. package/dist/api-client/index.d.ts +3 -0
  113. package/dist/api-client/index.d.ts.map +1 -0
  114. package/dist/api-client/index.js +5 -0
  115. package/dist/api-client/index.js.map +1 -0
  116. package/dist/commands/index.d.ts +52 -0
  117. package/dist/commands/index.d.ts.map +1 -0
  118. package/dist/commands/index.js +63 -0
  119. package/dist/commands/index.js.map +1 -0
  120. package/dist/core/cli-registry.d.ts +41 -0
  121. package/dist/core/cli-registry.d.ts.map +1 -0
  122. package/dist/core/cli-registry.js +49 -0
  123. package/dist/core/cli-registry.js.map +1 -0
  124. package/dist/core/command-registry.d.ts +60 -0
  125. package/dist/core/command-registry.d.ts.map +1 -0
  126. package/dist/core/command-registry.js +114 -0
  127. package/dist/core/command-registry.js.map +1 -0
  128. package/dist/core/env-annotation-registry.d.ts +58 -0
  129. package/dist/core/env-annotation-registry.d.ts.map +1 -0
  130. package/dist/core/env-annotation-registry.js +80 -0
  131. package/dist/core/env-annotation-registry.js.map +1 -0
  132. package/dist/core/env-generator-registry.d.ts +59 -0
  133. package/dist/core/env-generator-registry.d.ts.map +1 -0
  134. package/dist/core/env-generator-registry.js +102 -0
  135. package/dist/core/env-generator-registry.js.map +1 -0
  136. package/dist/core/env-group-registry.d.ts +65 -0
  137. package/dist/core/env-group-registry.d.ts.map +1 -0
  138. package/dist/core/env-group-registry.js +77 -0
  139. package/dist/core/env-group-registry.js.map +1 -0
  140. package/dist/core/env-spec-registry.d.ts +133 -0
  141. package/dist/core/env-spec-registry.d.ts.map +1 -0
  142. package/dist/core/env-spec-registry.js +103 -0
  143. package/dist/core/env-spec-registry.js.map +1 -0
  144. package/dist/core/env-values.d.ts +76 -0
  145. package/dist/core/env-values.d.ts.map +1 -0
  146. package/dist/core/env-values.js +125 -0
  147. package/dist/core/env-values.js.map +1 -0
  148. package/dist/core/index.d.ts +14 -0
  149. package/dist/core/index.d.ts.map +1 -0
  150. package/dist/core/index.js +10 -0
  151. package/dist/core/index.js.map +1 -0
  152. package/dist/deploy/index.d.ts +3 -0
  153. package/dist/deploy/index.d.ts.map +1 -0
  154. package/dist/deploy/index.js +5 -0
  155. package/dist/deploy/index.js.map +1 -0
  156. package/dist/engine/api-client.d.ts +211 -0
  157. package/dist/engine/api-client.d.ts.map +1 -0
  158. package/dist/engine/api-client.js +350 -0
  159. package/dist/engine/api-client.js.map +1 -0
  160. package/dist/engine/browser.d.ts +18 -0
  161. package/dist/engine/browser.d.ts.map +1 -0
  162. package/dist/engine/browser.js +115 -0
  163. package/dist/engine/browser.js.map +1 -0
  164. package/dist/engine/builtin-registrations.d.ts +20 -0
  165. package/dist/engine/builtin-registrations.d.ts.map +1 -0
  166. package/dist/engine/builtin-registrations.js +86 -0
  167. package/dist/engine/builtin-registrations.js.map +1 -0
  168. package/dist/engine/commands/api.d.ts +88 -0
  169. package/dist/engine/commands/api.d.ts.map +1 -0
  170. package/dist/engine/commands/api.js +398 -0
  171. package/dist/engine/commands/api.js.map +1 -0
  172. package/dist/engine/commands/config.d.ts +5 -0
  173. package/dist/engine/commands/config.d.ts.map +1 -0
  174. package/dist/engine/commands/config.js +83 -0
  175. package/dist/engine/commands/config.js.map +1 -0
  176. package/dist/engine/commands/deploy.d.ts +243 -0
  177. package/dist/engine/commands/deploy.d.ts.map +1 -0
  178. package/dist/engine/commands/deploy.js +1164 -0
  179. package/dist/engine/commands/deploy.js.map +1 -0
  180. package/dist/engine/commands/init.d.ts +18 -0
  181. package/dist/engine/commands/init.d.ts.map +1 -0
  182. package/dist/engine/commands/init.js +50 -0
  183. package/dist/engine/commands/init.js.map +1 -0
  184. package/dist/engine/commands/login.d.ts +4 -0
  185. package/dist/engine/commands/login.d.ts.map +1 -0
  186. package/dist/engine/commands/login.js +205 -0
  187. package/dist/engine/commands/login.js.map +1 -0
  188. package/dist/engine/commands/node.d.ts +21 -0
  189. package/dist/engine/commands/node.d.ts.map +1 -0
  190. package/dist/engine/commands/node.js +436 -0
  191. package/dist/engine/commands/node.js.map +1 -0
  192. package/dist/engine/config.d.ts +246 -0
  193. package/dist/engine/config.d.ts.map +1 -0
  194. package/dist/engine/config.js +414 -0
  195. package/dist/engine/config.js.map +1 -0
  196. package/dist/engine/conformance.d.ts +187 -0
  197. package/dist/engine/conformance.d.ts.map +1 -0
  198. package/dist/engine/conformance.js +227 -0
  199. package/dist/engine/conformance.js.map +1 -0
  200. package/dist/engine/create-cli.d.ts +94 -0
  201. package/dist/engine/create-cli.d.ts.map +1 -0
  202. package/dist/engine/create-cli.js +60 -0
  203. package/dist/engine/create-cli.js.map +1 -0
  204. package/dist/engine/deploy/about.d.ts +12 -0
  205. package/dist/engine/deploy/about.d.ts.map +1 -0
  206. package/dist/engine/deploy/about.js +110 -0
  207. package/dist/engine/deploy/about.js.map +1 -0
  208. package/dist/engine/deploy/adopt.d.ts +21 -0
  209. package/dist/engine/deploy/adopt.d.ts.map +1 -0
  210. package/dist/engine/deploy/adopt.js +78 -0
  211. package/dist/engine/deploy/adopt.js.map +1 -0
  212. package/dist/engine/deploy/answers-file.d.ts +7 -0
  213. package/dist/engine/deploy/answers-file.d.ts.map +1 -0
  214. package/dist/engine/deploy/answers-file.js +49 -0
  215. package/dist/engine/deploy/answers-file.js.map +1 -0
  216. package/dist/engine/deploy/app-role.d.ts +278 -0
  217. package/dist/engine/deploy/app-role.d.ts.map +1 -0
  218. package/dist/engine/deploy/app-role.js +826 -0
  219. package/dist/engine/deploy/app-role.js.map +1 -0
  220. package/dist/engine/deploy/app-version.d.ts +47 -0
  221. package/dist/engine/deploy/app-version.d.ts.map +1 -0
  222. package/dist/engine/deploy/app-version.js +232 -0
  223. package/dist/engine/deploy/app-version.js.map +1 -0
  224. package/dist/engine/deploy/checks/database.d.ts +83 -0
  225. package/dist/engine/deploy/checks/database.d.ts.map +1 -0
  226. package/dist/engine/deploy/checks/database.js +455 -0
  227. package/dist/engine/deploy/checks/database.js.map +1 -0
  228. package/dist/engine/deploy/checks/dns.d.ts +3 -0
  229. package/dist/engine/deploy/checks/dns.d.ts.map +1 -0
  230. package/dist/engine/deploy/checks/dns.js +85 -0
  231. package/dist/engine/deploy/checks/dns.js.map +1 -0
  232. package/dist/engine/deploy/checks/host.d.ts +19 -0
  233. package/dist/engine/deploy/checks/host.d.ts.map +1 -0
  234. package/dist/engine/deploy/checks/host.js +530 -0
  235. package/dist/engine/deploy/checks/host.js.map +1 -0
  236. package/dist/engine/deploy/checks/index.d.ts +33 -0
  237. package/dist/engine/deploy/checks/index.d.ts.map +1 -0
  238. package/dist/engine/deploy/checks/index.js +67 -0
  239. package/dist/engine/deploy/checks/index.js.map +1 -0
  240. package/dist/engine/deploy/checks/registry.d.ts +102 -0
  241. package/dist/engine/deploy/checks/registry.d.ts.map +1 -0
  242. package/dist/engine/deploy/checks/registry.js +103 -0
  243. package/dist/engine/deploy/checks/registry.js.map +1 -0
  244. package/dist/engine/deploy/checks/source.d.ts +45 -0
  245. package/dist/engine/deploy/checks/source.d.ts.map +1 -0
  246. package/dist/engine/deploy/checks/source.js +175 -0
  247. package/dist/engine/deploy/checks/source.js.map +1 -0
  248. package/dist/engine/deploy/checks/tls.d.ts +87 -0
  249. package/dist/engine/deploy/checks/tls.d.ts.map +1 -0
  250. package/dist/engine/deploy/checks/tls.js +552 -0
  251. package/dist/engine/deploy/checks/tls.js.map +1 -0
  252. package/dist/engine/deploy/checks/types.d.ts +178 -0
  253. package/dist/engine/deploy/checks/types.d.ts.map +1 -0
  254. package/dist/engine/deploy/checks/types.js +199 -0
  255. package/dist/engine/deploy/checks/types.js.map +1 -0
  256. package/dist/engine/deploy/compose-files.d.ts +29 -0
  257. package/dist/engine/deploy/compose-files.d.ts.map +1 -0
  258. package/dist/engine/deploy/compose-files.js +118 -0
  259. package/dist/engine/deploy/compose-files.js.map +1 -0
  260. package/dist/engine/deploy/compose-hints.d.ts +11 -0
  261. package/dist/engine/deploy/compose-hints.d.ts.map +1 -0
  262. package/dist/engine/deploy/compose-hints.js +70 -0
  263. package/dist/engine/deploy/compose-hints.js.map +1 -0
  264. package/dist/engine/deploy/consent.d.ts +29 -0
  265. package/dist/engine/deploy/consent.d.ts.map +1 -0
  266. package/dist/engine/deploy/consent.js +35 -0
  267. package/dist/engine/deploy/consent.js.map +1 -0
  268. package/dist/engine/deploy/database-drop.d.ts +22 -0
  269. package/dist/engine/deploy/database-drop.d.ts.map +1 -0
  270. package/dist/engine/deploy/database-drop.js +135 -0
  271. package/dist/engine/deploy/database-drop.js.map +1 -0
  272. package/dist/engine/deploy/database.d.ts +116 -0
  273. package/dist/engine/deploy/database.d.ts.map +1 -0
  274. package/dist/engine/deploy/database.js +252 -0
  275. package/dist/engine/deploy/database.js.map +1 -0
  276. package/dist/engine/deploy/deploy-info.d.ts +48 -0
  277. package/dist/engine/deploy/deploy-info.d.ts.map +1 -0
  278. package/dist/engine/deploy/deploy-info.js +163 -0
  279. package/dist/engine/deploy/deploy-info.js.map +1 -0
  280. package/dist/engine/deploy/deployment-evidence.d.ts +38 -0
  281. package/dist/engine/deploy/deployment-evidence.d.ts.map +1 -0
  282. package/dist/engine/deploy/deployment-evidence.js +92 -0
  283. package/dist/engine/deploy/deployment-evidence.js.map +1 -0
  284. package/dist/engine/deploy/edge-config.d.ts +103 -0
  285. package/dist/engine/deploy/edge-config.d.ts.map +1 -0
  286. package/dist/engine/deploy/edge-config.js +170 -0
  287. package/dist/engine/deploy/edge-config.js.map +1 -0
  288. package/dist/engine/deploy/env-absence.d.ts +61 -0
  289. package/dist/engine/deploy/env-absence.d.ts.map +1 -0
  290. package/dist/engine/deploy/env-absence.js +33 -0
  291. package/dist/engine/deploy/env-absence.js.map +1 -0
  292. package/dist/engine/deploy/env-file.d.ts +14 -0
  293. package/dist/engine/deploy/env-file.d.ts.map +1 -0
  294. package/dist/engine/deploy/env-file.js +58 -0
  295. package/dist/engine/deploy/env-file.js.map +1 -0
  296. package/dist/engine/deploy/env-fragments.d.ts +29 -0
  297. package/dist/engine/deploy/env-fragments.d.ts.map +1 -0
  298. package/dist/engine/deploy/env-fragments.js +73 -0
  299. package/dist/engine/deploy/env-fragments.js.map +1 -0
  300. package/dist/engine/deploy/env-metadata.d.ts +73 -0
  301. package/dist/engine/deploy/env-metadata.d.ts.map +1 -0
  302. package/dist/engine/deploy/env-metadata.js +227 -0
  303. package/dist/engine/deploy/env-metadata.js.map +1 -0
  304. package/dist/engine/deploy/env-spec.d.ts +75 -0
  305. package/dist/engine/deploy/env-spec.d.ts.map +1 -0
  306. package/dist/engine/deploy/env-spec.js +239 -0
  307. package/dist/engine/deploy/env-spec.js.map +1 -0
  308. package/dist/engine/deploy/env-wizard.d.ts +56 -0
  309. package/dist/engine/deploy/env-wizard.d.ts.map +1 -0
  310. package/dist/engine/deploy/env-wizard.js +235 -0
  311. package/dist/engine/deploy/env-wizard.js.map +1 -0
  312. package/dist/engine/deploy/executor.d.ts +81 -0
  313. package/dist/engine/deploy/executor.d.ts.map +1 -0
  314. package/dist/engine/deploy/executor.js +247 -0
  315. package/dist/engine/deploy/executor.js.map +1 -0
  316. package/dist/engine/deploy/health.d.ts +153 -0
  317. package/dist/engine/deploy/health.d.ts.map +1 -0
  318. package/dist/engine/deploy/health.js +335 -0
  319. package/dist/engine/deploy/health.js.map +1 -0
  320. package/dist/engine/deploy/hooks.d.ts +66 -0
  321. package/dist/engine/deploy/hooks.d.ts.map +1 -0
  322. package/dist/engine/deploy/hooks.js +19 -0
  323. package/dist/engine/deploy/hooks.js.map +1 -0
  324. package/dist/engine/deploy/host-facts.d.ts +23 -0
  325. package/dist/engine/deploy/host-facts.d.ts.map +1 -0
  326. package/dist/engine/deploy/host-facts.js +67 -0
  327. package/dist/engine/deploy/host-facts.js.map +1 -0
  328. package/dist/engine/deploy/install.d.ts +233 -0
  329. package/dist/engine/deploy/install.d.ts.map +1 -0
  330. package/dist/engine/deploy/install.js +1315 -0
  331. package/dist/engine/deploy/install.js.map +1 -0
  332. package/dist/engine/deploy/inventory.d.ts +30 -0
  333. package/dist/engine/deploy/inventory.d.ts.map +1 -0
  334. package/dist/engine/deploy/inventory.js +122 -0
  335. package/dist/engine/deploy/inventory.js.map +1 -0
  336. package/dist/engine/deploy/journal.d.ts +77 -0
  337. package/dist/engine/deploy/journal.d.ts.map +1 -0
  338. package/dist/engine/deploy/journal.js +221 -0
  339. package/dist/engine/deploy/journal.js.map +1 -0
  340. package/dist/engine/deploy/layout.d.ts +77 -0
  341. package/dist/engine/deploy/layout.d.ts.map +1 -0
  342. package/dist/engine/deploy/layout.js +191 -0
  343. package/dist/engine/deploy/layout.js.map +1 -0
  344. package/dist/engine/deploy/oauth-check.d.ts +58 -0
  345. package/dist/engine/deploy/oauth-check.d.ts.map +1 -0
  346. package/dist/engine/deploy/oauth-check.js +213 -0
  347. package/dist/engine/deploy/oauth-check.js.map +1 -0
  348. package/dist/engine/deploy/proxy-bootstrap.d.ts +149 -0
  349. package/dist/engine/deploy/proxy-bootstrap.d.ts.map +1 -0
  350. package/dist/engine/deploy/proxy-bootstrap.js +416 -0
  351. package/dist/engine/deploy/proxy-bootstrap.js.map +1 -0
  352. package/dist/engine/deploy/proxy-streams.d.ts +110 -0
  353. package/dist/engine/deploy/proxy-streams.d.ts.map +1 -0
  354. package/dist/engine/deploy/proxy-streams.js +208 -0
  355. package/dist/engine/deploy/proxy-streams.js.map +1 -0
  356. package/dist/engine/deploy/proxy.d.ts +375 -0
  357. package/dist/engine/deploy/proxy.d.ts.map +1 -0
  358. package/dist/engine/deploy/proxy.js +758 -0
  359. package/dist/engine/deploy/proxy.js.map +1 -0
  360. package/dist/engine/deploy/renewal.d.ts +54 -0
  361. package/dist/engine/deploy/renewal.d.ts.map +1 -0
  362. package/dist/engine/deploy/renewal.js +169 -0
  363. package/dist/engine/deploy/renewal.js.map +1 -0
  364. package/dist/engine/deploy/repo.d.ts +119 -0
  365. package/dist/engine/deploy/repo.d.ts.map +1 -0
  366. package/dist/engine/deploy/repo.js +277 -0
  367. package/dist/engine/deploy/repo.js.map +1 -0
  368. package/dist/engine/deploy/run-record.d.ts +28 -0
  369. package/dist/engine/deploy/run-record.d.ts.map +1 -0
  370. package/dist/engine/deploy/run-record.js +44 -0
  371. package/dist/engine/deploy/run-record.js.map +1 -0
  372. package/dist/engine/deploy/state.d.ts +289 -0
  373. package/dist/engine/deploy/state.d.ts.map +1 -0
  374. package/dist/engine/deploy/state.js +163 -0
  375. package/dist/engine/deploy/state.js.map +1 -0
  376. package/dist/engine/deploy/steps/app-step-context.d.ts +24 -0
  377. package/dist/engine/deploy/steps/app-step-context.d.ts.map +1 -0
  378. package/dist/engine/deploy/steps/app-step-context.js +45 -0
  379. package/dist/engine/deploy/steps/app-step-context.js.map +1 -0
  380. package/dist/engine/deploy/steps/pipeline.d.ts +46 -0
  381. package/dist/engine/deploy/steps/pipeline.d.ts.map +1 -0
  382. package/dist/engine/deploy/steps/pipeline.js +73 -0
  383. package/dist/engine/deploy/steps/pipeline.js.map +1 -0
  384. package/dist/engine/deploy/steps/plan.d.ts +28 -0
  385. package/dist/engine/deploy/steps/plan.d.ts.map +1 -0
  386. package/dist/engine/deploy/steps/plan.js +32 -0
  387. package/dist/engine/deploy/steps/plan.js.map +1 -0
  388. package/dist/engine/deploy/steps/registry.d.ts +182 -0
  389. package/dist/engine/deploy/steps/registry.d.ts.map +1 -0
  390. package/dist/engine/deploy/steps/registry.js +212 -0
  391. package/dist/engine/deploy/steps/registry.js.map +1 -0
  392. package/dist/engine/deploy/steps/step-values.d.ts +28 -0
  393. package/dist/engine/deploy/steps/step-values.d.ts.map +1 -0
  394. package/dist/engine/deploy/steps/step-values.js +33 -0
  395. package/dist/engine/deploy/steps/step-values.js.map +1 -0
  396. package/dist/engine/deploy/testing/fake-postgres.d.ts +88 -0
  397. package/dist/engine/deploy/testing/fake-postgres.d.ts.map +1 -0
  398. package/dist/engine/deploy/testing/fake-postgres.js +236 -0
  399. package/dist/engine/deploy/testing/fake-postgres.js.map +1 -0
  400. package/dist/engine/deploy/testing/fake-vps.d.ts +147 -0
  401. package/dist/engine/deploy/testing/fake-vps.d.ts.map +1 -0
  402. package/dist/engine/deploy/testing/fake-vps.js +365 -0
  403. package/dist/engine/deploy/testing/fake-vps.js.map +1 -0
  404. package/dist/engine/deploy/uninstall.d.ts +87 -0
  405. package/dist/engine/deploy/uninstall.d.ts.map +1 -0
  406. package/dist/engine/deploy/uninstall.js +321 -0
  407. package/dist/engine/deploy/uninstall.js.map +1 -0
  408. package/dist/engine/deploy/update.d.ts +112 -0
  409. package/dist/engine/deploy/update.d.ts.map +1 -0
  410. package/dist/engine/deploy/update.js +1279 -0
  411. package/dist/engine/deploy/update.js.map +1 -0
  412. package/dist/engine/deploy/version-step.d.ts +65 -0
  413. package/dist/engine/deploy/version-step.d.ts.map +1 -0
  414. package/dist/engine/deploy/version-step.js +176 -0
  415. package/dist/engine/deploy/version-step.js.map +1 -0
  416. package/dist/engine/device-auth.d.ts +240 -0
  417. package/dist/engine/device-auth.d.ts.map +1 -0
  418. package/dist/engine/device-auth.js +442 -0
  419. package/dist/engine/device-auth.js.map +1 -0
  420. package/dist/engine/device-login.d.ts +126 -0
  421. package/dist/engine/device-login.d.ts.map +1 -0
  422. package/dist/engine/device-login.js +164 -0
  423. package/dist/engine/device-login.js.map +1 -0
  424. package/dist/engine/errors.d.ts +314 -0
  425. package/dist/engine/errors.d.ts.map +1 -0
  426. package/dist/engine/errors.js +561 -0
  427. package/dist/engine/errors.js.map +1 -0
  428. package/dist/engine/identity.d.ts +169 -0
  429. package/dist/engine/identity.d.ts.map +1 -0
  430. package/dist/engine/identity.js +227 -0
  431. package/dist/engine/identity.js.map +1 -0
  432. package/dist/engine/index.d.ts +104 -0
  433. package/dist/engine/index.d.ts.map +1 -0
  434. package/dist/engine/index.js +126 -0
  435. package/dist/engine/index.js.map +1 -0
  436. package/dist/engine/init/local-profile.d.ts +93 -0
  437. package/dist/engine/init/local-profile.d.ts.map +1 -0
  438. package/dist/engine/init/local-profile.js +295 -0
  439. package/dist/engine/init/local-profile.js.map +1 -0
  440. package/dist/engine/init/run-init.d.ts +41 -0
  441. package/dist/engine/init/run-init.d.ts.map +1 -0
  442. package/dist/engine/init/run-init.js +297 -0
  443. package/dist/engine/init/run-init.js.map +1 -0
  444. package/dist/engine/node/capabilities.d.ts +238 -0
  445. package/dist/engine/node/capabilities.d.ts.map +1 -0
  446. package/dist/engine/node/capabilities.js +316 -0
  447. package/dist/engine/node/capabilities.js.map +1 -0
  448. package/dist/engine/node/daemon.d.ts +63 -0
  449. package/dist/engine/node/daemon.d.ts.map +1 -0
  450. package/dist/engine/node/daemon.js +227 -0
  451. package/dist/engine/node/daemon.js.map +1 -0
  452. package/dist/engine/node/doctor.d.ts +58 -0
  453. package/dist/engine/node/doctor.d.ts.map +1 -0
  454. package/dist/engine/node/doctor.js +394 -0
  455. package/dist/engine/node/doctor.js.map +1 -0
  456. package/dist/engine/node/enrollment.d.ts +98 -0
  457. package/dist/engine/node/enrollment.d.ts.map +1 -0
  458. package/dist/engine/node/enrollment.js +189 -0
  459. package/dist/engine/node/enrollment.js.map +1 -0
  460. package/dist/engine/node/env-flags.d.ts +5 -0
  461. package/dist/engine/node/env-flags.d.ts.map +1 -0
  462. package/dist/engine/node/env-flags.js +22 -0
  463. package/dist/engine/node/env-flags.js.map +1 -0
  464. package/dist/engine/node/executors/credential-hygiene.d.ts +63 -0
  465. package/dist/engine/node/executors/credential-hygiene.d.ts.map +1 -0
  466. package/dist/engine/node/executors/credential-hygiene.js +189 -0
  467. package/dist/engine/node/executors/credential-hygiene.js.map +1 -0
  468. package/dist/engine/node/executors/db-backup-run.d.ts +73 -0
  469. package/dist/engine/node/executors/db-backup-run.d.ts.map +1 -0
  470. package/dist/engine/node/executors/db-backup-run.js +362 -0
  471. package/dist/engine/node/executors/db-backup-run.js.map +1 -0
  472. package/dist/engine/node/executors/example-checksum.d.ts +30 -0
  473. package/dist/engine/node/executors/example-checksum.d.ts.map +1 -0
  474. package/dist/engine/node/executors/example-checksum.js +56 -0
  475. package/dist/engine/node/executors/example-checksum.js.map +1 -0
  476. package/dist/engine/node/executors/index.d.ts +168 -0
  477. package/dist/engine/node/executors/index.d.ts.map +1 -0
  478. package/dist/engine/node/executors/index.js +44 -0
  479. package/dist/engine/node/executors/index.js.map +1 -0
  480. package/dist/engine/node/executors/registry.d.ts +38 -0
  481. package/dist/engine/node/executors/registry.d.ts.map +1 -0
  482. package/dist/engine/node/executors/registry.js +92 -0
  483. package/dist/engine/node/executors/registry.js.map +1 -0
  484. package/dist/engine/node/heap-snapshot.d.ts +37 -0
  485. package/dist/engine/node/heap-snapshot.d.ts.map +1 -0
  486. package/dist/engine/node/heap-snapshot.js +160 -0
  487. package/dist/engine/node/heap-snapshot.js.map +1 -0
  488. package/dist/engine/node/install-deps.d.ts +73 -0
  489. package/dist/engine/node/install-deps.d.ts.map +1 -0
  490. package/dist/engine/node/install-deps.js +150 -0
  491. package/dist/engine/node/install-deps.js.map +1 -0
  492. package/dist/engine/node/ipc-protocol.d.ts +67 -0
  493. package/dist/engine/node/ipc-protocol.d.ts.map +1 -0
  494. package/dist/engine/node/ipc-protocol.js +83 -0
  495. package/dist/engine/node/ipc-protocol.js.map +1 -0
  496. package/dist/engine/node/lifecycle.d.ts +103 -0
  497. package/dist/engine/node/lifecycle.d.ts.map +1 -0
  498. package/dist/engine/node/lifecycle.js +259 -0
  499. package/dist/engine/node/lifecycle.js.map +1 -0
  500. package/dist/engine/node/logger.d.ts +82 -0
  501. package/dist/engine/node/logger.d.ts.map +1 -0
  502. package/dist/engine/node/logger.js +241 -0
  503. package/dist/engine/node/logger.js.map +1 -0
  504. package/dist/engine/node/memory-watchdog.d.ts +78 -0
  505. package/dist/engine/node/memory-watchdog.d.ts.map +1 -0
  506. package/dist/engine/node/memory-watchdog.js +224 -0
  507. package/dist/engine/node/memory-watchdog.js.map +1 -0
  508. package/dist/engine/node/node-api.d.ts +391 -0
  509. package/dist/engine/node/node-api.d.ts.map +1 -0
  510. package/dist/engine/node/node-api.js +123 -0
  511. package/dist/engine/node/node-api.js.map +1 -0
  512. package/dist/engine/node/node-config.d.ts +128 -0
  513. package/dist/engine/node/node-config.d.ts.map +1 -0
  514. package/dist/engine/node/node-config.js +237 -0
  515. package/dist/engine/node/node-config.js.map +1 -0
  516. package/dist/engine/node/node-dashboard-source.d.ts +56 -0
  517. package/dist/engine/node/node-dashboard-source.d.ts.map +1 -0
  518. package/dist/engine/node/node-dashboard-source.js +213 -0
  519. package/dist/engine/node/node-dashboard-source.js.map +1 -0
  520. package/dist/engine/node/node-engine.d.ts +229 -0
  521. package/dist/engine/node/node-engine.d.ts.map +1 -0
  522. package/dist/engine/node/node-engine.js +723 -0
  523. package/dist/engine/node/node-engine.js.map +1 -0
  524. package/dist/engine/node/node-errors.d.ts +54 -0
  525. package/dist/engine/node/node-errors.d.ts.map +1 -0
  526. package/dist/engine/node/node-errors.js +71 -0
  527. package/dist/engine/node/node-errors.js.map +1 -0
  528. package/dist/engine/node/node-events.d.ts +132 -0
  529. package/dist/engine/node/node-events.d.ts.map +1 -0
  530. package/dist/engine/node/node-events.js +2 -0
  531. package/dist/engine/node/node-events.js.map +1 -0
  532. package/dist/engine/node/node-vitals.d.ts +123 -0
  533. package/dist/engine/node/node-vitals.d.ts.map +1 -0
  534. package/dist/engine/node/node-vitals.js +266 -0
  535. package/dist/engine/node/node-vitals.js.map +1 -0
  536. package/dist/engine/node/paths.d.ts +39 -0
  537. package/dist/engine/node/paths.d.ts.map +1 -0
  538. package/dist/engine/node/paths.js +60 -0
  539. package/dist/engine/node/paths.js.map +1 -0
  540. package/dist/engine/node/pg-dump.d.ts +126 -0
  541. package/dist/engine/node/pg-dump.d.ts.map +1 -0
  542. package/dist/engine/node/pg-dump.js +223 -0
  543. package/dist/engine/node/pg-dump.js.map +1 -0
  544. package/dist/engine/node/pidfile.d.ts +38 -0
  545. package/dist/engine/node/pidfile.d.ts.map +1 -0
  546. package/dist/engine/node/pidfile.js +156 -0
  547. package/dist/engine/node/pidfile.js.map +1 -0
  548. package/dist/engine/node/runtime-tuning.d.ts +65 -0
  549. package/dist/engine/node/runtime-tuning.d.ts.map +1 -0
  550. package/dist/engine/node/runtime-tuning.js +198 -0
  551. package/dist/engine/node/runtime-tuning.js.map +1 -0
  552. package/dist/engine/node/service.d.ts +39 -0
  553. package/dist/engine/node/service.d.ts.map +1 -0
  554. package/dist/engine/node/service.js +211 -0
  555. package/dist/engine/node/service.js.map +1 -0
  556. package/dist/engine/node/start.d.ts +62 -0
  557. package/dist/engine/node/start.d.ts.map +1 -0
  558. package/dist/engine/node/start.js +245 -0
  559. package/dist/engine/node/start.js.map +1 -0
  560. package/dist/engine/node/worker-env-table.d.ts +15 -0
  561. package/dist/engine/node/worker-env-table.d.ts.map +1 -0
  562. package/dist/engine/node/worker-env-table.js +97 -0
  563. package/dist/engine/node/worker-env-table.js.map +1 -0
  564. package/dist/engine/node/worker-env.d.ts +50 -0
  565. package/dist/engine/node/worker-env.d.ts.map +1 -0
  566. package/dist/engine/node/worker-env.js +101 -0
  567. package/dist/engine/node/worker-env.js.map +1 -0
  568. package/dist/engine/output.d.ts +97 -0
  569. package/dist/engine/output.d.ts.map +1 -0
  570. package/dist/engine/output.js +274 -0
  571. package/dist/engine/output.js.map +1 -0
  572. package/dist/engine/package-info.d.ts +7 -0
  573. package/dist/engine/package-info.d.ts.map +1 -0
  574. package/dist/engine/package-info.js +38 -0
  575. package/dist/engine/package-info.js.map +1 -0
  576. package/dist/engine/program.d.ts +50 -0
  577. package/dist/engine/program.d.ts.map +1 -0
  578. package/dist/engine/program.js +197 -0
  579. package/dist/engine/program.js.map +1 -0
  580. package/dist/engine/prompt.d.ts +69 -0
  581. package/dist/engine/prompt.d.ts.map +1 -0
  582. package/dist/engine/prompt.js +205 -0
  583. package/dist/engine/prompt.js.map +1 -0
  584. package/dist/engine/registries.d.ts +5 -0
  585. package/dist/engine/registries.d.ts.map +1 -0
  586. package/dist/engine/registries.js +52 -0
  587. package/dist/engine/registries.js.map +1 -0
  588. package/dist/engine/request-body.d.ts +31 -0
  589. package/dist/engine/request-body.d.ts.map +1 -0
  590. package/dist/engine/request-body.js +156 -0
  591. package/dist/engine/request-body.js.map +1 -0
  592. package/dist/engine/test-support.d.ts +50 -0
  593. package/dist/engine/test-support.d.ts.map +1 -0
  594. package/dist/engine/test-support.js +86 -0
  595. package/dist/engine/test-support.js.map +1 -0
  596. package/dist/engine/tui/app.d.ts +3 -0
  597. package/dist/engine/tui/app.d.ts.map +1 -0
  598. package/dist/engine/tui/app.js +100 -0
  599. package/dist/engine/tui/app.js.map +1 -0
  600. package/dist/engine/tui/builtin-screens.d.ts +6 -0
  601. package/dist/engine/tui/builtin-screens.d.ts.map +1 -0
  602. package/dist/engine/tui/builtin-screens.js +54 -0
  603. package/dist/engine/tui/builtin-screens.js.map +1 -0
  604. package/dist/engine/tui/index.d.ts +23 -0
  605. package/dist/engine/tui/index.d.ts.map +1 -0
  606. package/dist/engine/tui/index.js +71 -0
  607. package/dist/engine/tui/index.js.map +1 -0
  608. package/dist/engine/tui/layout.d.ts +132 -0
  609. package/dist/engine/tui/layout.d.ts.map +1 -0
  610. package/dist/engine/tui/layout.js +200 -0
  611. package/dist/engine/tui/layout.js.map +1 -0
  612. package/dist/engine/tui/routes.d.ts +5 -0
  613. package/dist/engine/tui/routes.d.ts.map +1 -0
  614. package/dist/engine/tui/routes.js +16 -0
  615. package/dist/engine/tui/routes.js.map +1 -0
  616. package/dist/engine/tui/screen-registry.d.ts +100 -0
  617. package/dist/engine/tui/screen-registry.d.ts.map +1 -0
  618. package/dist/engine/tui/screen-registry.js +96 -0
  619. package/dist/engine/tui/screen-registry.js.map +1 -0
  620. package/dist/engine/tui/screen-sections.d.ts +9 -0
  621. package/dist/engine/tui/screen-sections.d.ts.map +1 -0
  622. package/dist/engine/tui/screen-sections.js +45 -0
  623. package/dist/engine/tui/screen-sections.js.map +1 -0
  624. package/dist/engine/tui/screens/deploy/advanced-model.d.ts +69 -0
  625. package/dist/engine/tui/screens/deploy/advanced-model.d.ts.map +1 -0
  626. package/dist/engine/tui/screens/deploy/advanced-model.js +228 -0
  627. package/dist/engine/tui/screens/deploy/advanced-model.js.map +1 -0
  628. package/dist/engine/tui/screens/deploy/doctor-model.d.ts +37 -0
  629. package/dist/engine/tui/screens/deploy/doctor-model.d.ts.map +1 -0
  630. package/dist/engine/tui/screens/deploy/doctor-model.js +89 -0
  631. package/dist/engine/tui/screens/deploy/doctor-model.js.map +1 -0
  632. package/dist/engine/tui/screens/deploy/doctor.d.ts +8 -0
  633. package/dist/engine/tui/screens/deploy/doctor.d.ts.map +1 -0
  634. package/dist/engine/tui/screens/deploy/doctor.js +153 -0
  635. package/dist/engine/tui/screens/deploy/doctor.js.map +1 -0
  636. package/dist/engine/tui/screens/deploy/fields.d.ts +123 -0
  637. package/dist/engine/tui/screens/deploy/fields.d.ts.map +1 -0
  638. package/dist/engine/tui/screens/deploy/fields.js +202 -0
  639. package/dist/engine/tui/screens/deploy/fields.js.map +1 -0
  640. package/dist/engine/tui/screens/deploy/flags-model.d.ts +67 -0
  641. package/dist/engine/tui/screens/deploy/flags-model.d.ts.map +1 -0
  642. package/dist/engine/tui/screens/deploy/flags-model.js +302 -0
  643. package/dist/engine/tui/screens/deploy/flags-model.js.map +1 -0
  644. package/dist/engine/tui/screens/deploy/index.d.ts +6 -0
  645. package/dist/engine/tui/screens/deploy/index.d.ts.map +1 -0
  646. package/dist/engine/tui/screens/deploy/index.js +83 -0
  647. package/dist/engine/tui/screens/deploy/index.js.map +1 -0
  648. package/dist/engine/tui/screens/deploy/install-model.d.ts +159 -0
  649. package/dist/engine/tui/screens/deploy/install-model.d.ts.map +1 -0
  650. package/dist/engine/tui/screens/deploy/install-model.js +319 -0
  651. package/dist/engine/tui/screens/deploy/install-model.js.map +1 -0
  652. package/dist/engine/tui/screens/deploy/install.d.ts +8 -0
  653. package/dist/engine/tui/screens/deploy/install.d.ts.map +1 -0
  654. package/dist/engine/tui/screens/deploy/install.js +361 -0
  655. package/dist/engine/tui/screens/deploy/install.js.map +1 -0
  656. package/dist/engine/tui/screens/deploy/model.d.ts +49 -0
  657. package/dist/engine/tui/screens/deploy/model.d.ts.map +1 -0
  658. package/dist/engine/tui/screens/deploy/model.js +59 -0
  659. package/dist/engine/tui/screens/deploy/model.js.map +1 -0
  660. package/dist/engine/tui/screens/deploy/run-model.d.ts +58 -0
  661. package/dist/engine/tui/screens/deploy/run-model.d.ts.map +1 -0
  662. package/dist/engine/tui/screens/deploy/run-model.js +117 -0
  663. package/dist/engine/tui/screens/deploy/run-model.js.map +1 -0
  664. package/dist/engine/tui/screens/deploy/run.d.ts +75 -0
  665. package/dist/engine/tui/screens/deploy/run.d.ts.map +1 -0
  666. package/dist/engine/tui/screens/deploy/run.js +201 -0
  667. package/dist/engine/tui/screens/deploy/run.js.map +1 -0
  668. package/dist/engine/tui/screens/deploy/status.d.ts +17 -0
  669. package/dist/engine/tui/screens/deploy/status.d.ts.map +1 -0
  670. package/dist/engine/tui/screens/deploy/status.js +107 -0
  671. package/dist/engine/tui/screens/deploy/status.js.map +1 -0
  672. package/dist/engine/tui/screens/deploy/update.d.ts +41 -0
  673. package/dist/engine/tui/screens/deploy/update.d.ts.map +1 -0
  674. package/dist/engine/tui/screens/deploy/update.js +175 -0
  675. package/dist/engine/tui/screens/deploy/update.js.map +1 -0
  676. package/dist/engine/tui/screens/deploy.d.ts +12 -0
  677. package/dist/engine/tui/screens/deploy.d.ts.map +1 -0
  678. package/dist/engine/tui/screens/deploy.js +23 -0
  679. package/dist/engine/tui/screens/deploy.js.map +1 -0
  680. package/dist/engine/tui/screens/invoke.d.ts +6 -0
  681. package/dist/engine/tui/screens/invoke.d.ts.map +1 -0
  682. package/dist/engine/tui/screens/invoke.js +193 -0
  683. package/dist/engine/tui/screens/invoke.js.map +1 -0
  684. package/dist/engine/tui/screens/login.d.ts +6 -0
  685. package/dist/engine/tui/screens/login.d.ts.map +1 -0
  686. package/dist/engine/tui/screens/login.js +255 -0
  687. package/dist/engine/tui/screens/login.js.map +1 -0
  688. package/dist/engine/tui/screens/logout.d.ts +6 -0
  689. package/dist/engine/tui/screens/logout.d.ts.map +1 -0
  690. package/dist/engine/tui/screens/logout.js +142 -0
  691. package/dist/engine/tui/screens/logout.js.map +1 -0
  692. package/dist/engine/tui/screens/menu.d.ts +22 -0
  693. package/dist/engine/tui/screens/menu.d.ts.map +1 -0
  694. package/dist/engine/tui/screens/menu.js +84 -0
  695. package/dist/engine/tui/screens/menu.js.map +1 -0
  696. package/dist/engine/tui/screens/node.d.ts +6 -0
  697. package/dist/engine/tui/screens/node.d.ts.map +1 -0
  698. package/dist/engine/tui/screens/node.js +228 -0
  699. package/dist/engine/tui/screens/node.js.map +1 -0
  700. package/dist/engine/tui/screens/status.d.ts +6 -0
  701. package/dist/engine/tui/screens/status.d.ts.map +1 -0
  702. package/dist/engine/tui/screens/status.js +134 -0
  703. package/dist/engine/tui/screens/status.js.map +1 -0
  704. package/dist/engine/tui/scroll-box.d.ts +27 -0
  705. package/dist/engine/tui/scroll-box.d.ts.map +1 -0
  706. package/dist/engine/tui/scroll-box.js +52 -0
  707. package/dist/engine/tui/scroll-box.js.map +1 -0
  708. package/dist/engine/tui/section-registry.d.ts +65 -0
  709. package/dist/engine/tui/section-registry.d.ts.map +1 -0
  710. package/dist/engine/tui/section-registry.js +90 -0
  711. package/dist/engine/tui/section-registry.js.map +1 -0
  712. package/dist/engine/tui/terminal.d.ts +31 -0
  713. package/dist/engine/tui/terminal.d.ts.map +1 -0
  714. package/dist/engine/tui/terminal.js +142 -0
  715. package/dist/engine/tui/terminal.js.map +1 -0
  716. package/dist/engine/tui/tty.d.ts +49 -0
  717. package/dist/engine/tui/tty.d.ts.map +1 -0
  718. package/dist/engine/tui/tty.js +139 -0
  719. package/dist/engine/tui/tty.js.map +1 -0
  720. package/dist/index.d.ts +10 -0
  721. package/dist/index.d.ts.map +1 -0
  722. package/dist/index.js +11 -0
  723. package/dist/index.js.map +1 -0
  724. package/dist/node/index.d.ts +3 -0
  725. package/dist/node/index.d.ts.map +1 -0
  726. package/dist/node/index.js +5 -0
  727. package/dist/node/index.js.map +1 -0
  728. package/dist/telemetry/env-fragment.d.ts +47 -0
  729. package/dist/telemetry/env-fragment.d.ts.map +1 -0
  730. package/dist/telemetry/env-fragment.js +73 -0
  731. package/dist/telemetry/env-fragment.js.map +1 -0
  732. package/dist/telemetry/index.d.ts +7 -0
  733. package/dist/telemetry/index.d.ts.map +1 -0
  734. package/dist/telemetry/index.js +7 -0
  735. package/dist/telemetry/index.js.map +1 -0
  736. package/dist/telemetry/node-span-relay.d.ts +107 -0
  737. package/dist/telemetry/node-span-relay.d.ts.map +1 -0
  738. package/dist/telemetry/node-span-relay.js +314 -0
  739. package/dist/telemetry/node-span-relay.js.map +1 -0
  740. package/dist/telemetry/node-span.d.ts +92 -0
  741. package/dist/telemetry/node-span.d.ts.map +1 -0
  742. package/dist/telemetry/node-span.js +28 -0
  743. package/dist/telemetry/node-span.js.map +1 -0
  744. package/dist/testing/index.d.ts +3 -0
  745. package/dist/testing/index.d.ts.map +1 -0
  746. package/dist/testing/index.js +4 -0
  747. package/dist/testing/index.js.map +1 -0
  748. package/dist/tui/index.d.ts +3 -0
  749. package/dist/tui/index.d.ts.map +1 -0
  750. package/dist/tui/index.js +5 -0
  751. package/dist/tui/index.js.map +1 -0
  752. package/package.json +102 -4
@@ -0,0 +1,86 @@
1
+ import { redactedValues } from './deploy/steps/step-values.js';
2
+ import { replaceCliIdentityForTests } from './identity.js';
3
+ import { resetCliRegistriesForTests } from './registries.js';
4
+ // =============================================================================
5
+ // Test helpers published through `@marinoscar/platform-cli/testing` (#715)
6
+ // =============================================================================
7
+ //
8
+ // The CLI's identity is set once per process and its registries freeze when
9
+ // `createCli` returns, which is right for a real process and wrong for a test
10
+ // file that builds several CLIs. These helpers are the one sanctioned way
11
+ // around both, and they live behind `/testing` so production code cannot
12
+ // reach them through the root entry point.
13
+ // =============================================================================
14
+ /**
15
+ * An identity for tests: the reference app's executable name `appctl`, with a neutral product name.
16
+ *
17
+ * @stability experimental
18
+ */
19
+ export const TEST_CLI_IDENTITY = Object.freeze({
20
+ name: 'appctl',
21
+ displayName: 'Example App CLI',
22
+ productName: 'Example App',
23
+ repoSlug: 'example/example-app',
24
+ });
25
+ /**
26
+ * Replaces the process's CLI identity for a test, bypassing set-once.
27
+ *
28
+ * @param identity - The identity to use, or `undefined` for "none set".
29
+ * @param version - The app version `cliVersion()` reports. Defaults to the
30
+ * current one, else `0.0.0-test`.
31
+ * @returns A function that restores the previous identity.
32
+ * @stability experimental
33
+ * @example
34
+ * ```ts
35
+ * const restore = useTestCliIdentity({ name: 'acmectl', displayName: 'Acme CLI', repoSlug: 'acme/acme' });
36
+ * afterEach(restore);
37
+ * ```
38
+ */
39
+ export function useTestCliIdentity(identity, version) {
40
+ return replaceCliIdentityForTests(identity, version);
41
+ }
42
+ /**
43
+ * Forgets everything `createCli` set up: the identity and every registry
44
+ * (commands, env-spec fragments, TUI screens, deploy steps, node executors),
45
+ * so the next `createCli` starts from a fresh process's state.
46
+ *
47
+ * @stability experimental
48
+ */
49
+ export function resetCliForTests() {
50
+ resetCliRegistriesForTests();
51
+ replaceCliIdentityForTests(undefined);
52
+ }
53
+ /**
54
+ * A {@link DeployStepContext} for testing an app deploy step without a
55
+ * pipeline: a deployment under `/opt/infra/apps/app`, no commit, commands that
56
+ * succeed with no output, `log`/`progress` that record nothing, and `env` /
57
+ * `answers` built from the given variables with the secret rules of the real
58
+ * context (a secret key is present but never readable).
59
+ *
60
+ * @param overrides - Fields to replace.
61
+ * @param values - Variables for `env` (and `answers`, unless it is overridden).
62
+ * @returns A complete context.
63
+ * @stability experimental
64
+ * @example
65
+ * ```ts
66
+ * const context = testDeployStepContext({ commitSha: 'abc123' }, { COACH_URL: 'https://coach.example' });
67
+ * await step.run(context);
68
+ * ```
69
+ */
70
+ export function testDeployStepContext(overrides = {}, values = {}) {
71
+ const map = new Map(Object.entries(values));
72
+ return {
73
+ pipeline: 'install',
74
+ deployRoot: '/opt/infra/apps/app',
75
+ checkoutPath: '/opt/infra/apps/app/repo',
76
+ commitSha: undefined,
77
+ hooks: undefined,
78
+ env: redactedValues(() => map),
79
+ answers: redactedValues(() => map),
80
+ log: () => undefined,
81
+ progress: () => undefined,
82
+ exec: async () => ({ exitCode: 0, stdout: '', stderr: '' }),
83
+ ...overrides,
84
+ };
85
+ }
86
+ //# sourceMappingURL=test-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-support.js","sourceRoot":"","sources":["../../src/engine/test-support.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAoB,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE7D,gFAAgF;AAChF,4EAA4E;AAC5E,gFAAgF;AAChF,EAAE;AACF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AAG,SAAS;KACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ export declare function App(): ReactNode;
3
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA0ClG,wBAAgB,GAAG,IAAI,SAAS,CA0D/B"}
@@ -0,0 +1,100 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box, Text, useApp, useInput } from 'ink';
3
+ import { lazy, Suspense, useCallback, useState } from 'react';
4
+ import { allTuiScreens } from './builtin-screens.js';
5
+ import { useTerminalSize } from './layout.js';
6
+ import { MENU_ROUTE } from './routes.js';
7
+ import { MenuScreen } from './screens/menu.js';
8
+ // =============================================================================
9
+ // The app root (issue #145, epic #110)
10
+ // =============================================================================
11
+ //
12
+ // Routing and nothing else. Each screen is mounted only while it is the current
13
+ // route, which is not merely a rendering detail — it is what keeps the keyboard
14
+ // unambiguous. Every screen registers its own `useInput`, and ink delivers each
15
+ // keystroke to EVERY mounted handler; screens kept alive off-screen would go on
16
+ // consuming keys, so `n` on the invoke screen would also fire the menu's
17
+ // shortcut. Conditional mounting means exactly one handler exists per key.
18
+ //
19
+ // It also means leaving a screen unmounts it, which is what fires the effect
20
+ // cleanups that abort in-flight requests and poll loops. That is the difference
21
+ // between pressing Esc during a login and the process quietly continuing to
22
+ // poll for the remaining fourteen minutes.
23
+ //
24
+ // THERE IS NO ROUTE HISTORY. Every screen returns to the menu and nowhere else,
25
+ // so "back" has one meaning everywhere and Esc never lands somewhere a user has
26
+ // to work out.
27
+ // =============================================================================
28
+ /**
29
+ * Below this many columns, ink cannot lay anything out usefully.
30
+ *
31
+ * Ten is not a design decision, it is yoga's floor: a flex container narrower
32
+ * than its own content collapses, and every `<Box>` in the tree starts
33
+ * competing for columns that do not exist. Rather than render a smear, the app
34
+ * says so in one line and waits — a RESIZE re-renders this component, so
35
+ * widening the terminal brings the UI back with no keypress and no restart.
36
+ * #145 asks for degrade, not crash; this is the last rung of the ladder that
37
+ * starts in `Frame`.
38
+ */
39
+ const UNRENDERABLE_COLUMNS = 10;
40
+ export function App() {
41
+ const [route, setRoute] = useState(MENU_ROUTE);
42
+ const { columns } = useTerminalSize();
43
+ const { exit } = useApp();
44
+ const toMenu = useCallback(() => {
45
+ setRoute(MENU_ROUTE);
46
+ }, []);
47
+ // `useApp().exit()` is the ONLY way out, and it is the same path Ctrl-C
48
+ // takes. It performs a real React unmount — every screen's effect cleanup
49
+ // runs, aborting an in-flight poll loop or request — and then resolves the
50
+ // promise `startTui` is awaiting, which is what lets the process end with a
51
+ // restored terminal instead of a cleared frame over a live event loop.
52
+ // Anything else (an `onExit` callback the host wires to `unmount()`, a
53
+ // `process.exit`) either skips the cleanups or truncates ink's final write.
54
+ const quit = useCallback(() => {
55
+ exit();
56
+ }, [exit]);
57
+ // Ctrl-C is handled by ink itself (`exitOnCtrlC`, on by default): in raw mode
58
+ // the terminal does NOT generate SIGINT, so the ^C arrives as a byte and ink
59
+ // unmounts on it, running every screen's cleanup on the way out. It is not
60
+ // intercepted here — a handler that swallowed it would make the app
61
+ // unkillable from the keyboard, which is the worst thing a full-screen
62
+ // program can be.
63
+ useInput(() => {
64
+ /* Present so the app holds stdin in raw mode even on a screen with no
65
+ bindings of its own; without a mounted handler ink would release it and
66
+ the first keypress after a screen transition could be echoed to the
67
+ shell instead. */
68
+ });
69
+ if (columns < UNRENDERABLE_COLUMNS) {
70
+ return _jsx(Text, { children: "Terminal too narrow \u2014 widen it." });
71
+ }
72
+ if (route === MENU_ROUTE)
73
+ return _jsx(MenuScreen, { onSelect: setRoute, onQuit: quit });
74
+ // The built-in screens and every app screen (`registerTuiScreen`, #715).
75
+ const registration = allTuiScreens().find((screen) => screen.route === route);
76
+ const Screen = registration === undefined ? undefined : screenComponent(registration);
77
+ if (Screen !== undefined) {
78
+ return (_jsx(Suspense, { fallback: _jsx(Text, { dimColor: true, children: "Loading\u2026" }), children: _jsx(Screen, { onDone: toMenu }) }));
79
+ }
80
+ // Unreachable while the menu lists only registered routes, and present so
81
+ // that a route without a screen is a blank frame with an explanation rather
82
+ // than an app that renders nothing and looks hung.
83
+ return (_jsx(Box, { children: _jsx(Text, { color: "red", children: "Unknown screen. Press ctrl-c to exit." }) }));
84
+ }
85
+ /** One lazy component per `load` screen, so reopening it does not reload it. */
86
+ const lazyScreens = new Map();
87
+ function screenComponent(screen) {
88
+ if (screen.component !== undefined)
89
+ return screen.component;
90
+ const load = screen.load;
91
+ if (load === undefined)
92
+ return undefined;
93
+ let component = lazyScreens.get(screen.route);
94
+ if (component === undefined) {
95
+ component = lazy(async () => ({ default: await load() }));
96
+ lazyScreens.set(screen.route, component);
97
+ }
98
+ return component;
99
+ }
100
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAsC,MAAM,OAAO,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,gFAAgF;AAChF,wCAAwC;AACxC,gFAAgF;AAChF,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,yEAAyE;AACzE,2EAA2E;AAC3E,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;A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AC;IAC9E,MAAM,MAAM,GAAG,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IACtF,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,CACL,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,IAAI,IAAC,QAAQ,oCAAgB,YAChD,KAAC,MAAM,IAAC,MAAM,EAAE,MAAM,GAAI,GACjB,CACZ,CAAC;IACJ,CAAC;IAED,0EAA0E;IAC1E,4EAA4E;IAC5E,mDAAmD;IACnD,OAAO,CACL,KAAC,GAAG,cACF,KAAC,IAAI,IAAC,KAAK,EAAC,KAAK,sDAA6C,GAC1D,CACP,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAyC,CAAC;AAErE,SAAS,eAAe,CAAC,MAA6B;IACpD,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC;IAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IACzB,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACzC,IAAI,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,SAAS,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1D,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type TuiScreenRegistration } from './screen-registry.js';
2
+ /** The platform's screens, with their components, in menu order. */
3
+ export declare function builtinTuiScreens(): TuiScreenRegistration[];
4
+ /** Every screen the menu lists: the built-ins, then the app's, sorted by order then route id. */
5
+ export declare function allTuiScreens(): TuiScreenRegistration[];
6
+ //# sourceMappingURL=builtin-screens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtin-screens.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/builtin-screens.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA0CjI,oEAAoE;AACpE,wBAAgB,iBAAiB,IAAI,qBAAqB,EAAE,CAS3D;AAED,iGAAiG;AACjG,wBAAgB,aAAa,IAAI,qBAAqB,EAAE,CAEvD"}
@@ -0,0 +1,54 @@
1
+ import { BUILTIN_TUI_SCREENS, listRegisteredTuiScreens, sortTuiScreens } from './screen-registry.js';
2
+ import { DeployScreen } from './screens/deploy.js';
3
+ import { InvokeScreen } from './screens/invoke.js';
4
+ import { LoginScreen } from './screens/login.js';
5
+ import { LogoutScreen } from './screens/logout.js';
6
+ import { NodeScreen } from './screens/node.js';
7
+ import { StatusScreen } from './screens/status.js';
8
+ // =============================================================================
9
+ // The platform's own TUI screens (issue #145; registered since PP-8.9 #715)
10
+ // =============================================================================
11
+ //
12
+ // Only the ink app imports this module, so the components (and ink with them)
13
+ // load only once the TTY gate has said yes. The ids and orders come from
14
+ // `BUILTIN_TUI_SCREENS`, the list `registerTuiScreen` checks duplicates
15
+ // against.
16
+ // =============================================================================
17
+ const COMPONENTS = {
18
+ login: LoginScreen,
19
+ invoke: InvokeScreen,
20
+ status: StatusScreen,
21
+ node: NodeScreen,
22
+ deploy: DeployScreen,
23
+ logout: LogoutScreen,
24
+ };
25
+ const LABELS = {
26
+ login: ({ loggedIn }) => (loggedIn ? 'Login (replace the stored token)' : 'Login'),
27
+ // Not removed when logged out: a greyed "(not logged in)" answers why on
28
+ // the spot, and the screen itself produces the real, specific error.
29
+ invoke: ({ loggedIn }) => (loggedIn ? 'Call an endpoint' : 'Call an endpoint (not logged in)'),
30
+ status: 'Status',
31
+ // Not gated on being logged in either: Enroll is exactly what an
32
+ // unconfigured machine needs, and hiding the entry would hide the fix.
33
+ node: 'Worker node (this machine)',
34
+ // Not gated on being logged in: deploying acts on THIS SERVER, not on the
35
+ // API, so a stored token is irrelevant to it.
36
+ deploy: 'Deploy (this server)',
37
+ logout: ({ loggedIn }) => (loggedIn ? 'Logout' : 'Logout (nothing stored)'),
38
+ };
39
+ /** The platform's screens, with their components, in menu order. */
40
+ export function builtinTuiScreens() {
41
+ return BUILTIN_TUI_SCREENS.map(({ route, order }) => {
42
+ const component = COMPONENTS[route];
43
+ const label = LABELS[route];
44
+ if (component === undefined || label === undefined) {
45
+ throw new Error(`The built-in TUI screen "${route}" has no component or label.`);
46
+ }
47
+ return { route, order, label, component };
48
+ });
49
+ }
50
+ /** Every screen the menu lists: the built-ins, then the app's, sorted by order then route id. */
51
+ export function allTuiScreens() {
52
+ return sortTuiScreens([...builtinTuiScreens(), ...listRegisteredTuiScreens()]);
53
+ }
54
+ //# sourceMappingURL=builtin-screens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtin-screens.js","sourceRoot":"","sources":["../../../src/engine/tui/builtin-screens.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,cAAc,EAA8B,MAAM,sBAAsB,CAAC;AACjI,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,yEAAy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AK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,aAAa;IAC3B,OAAO,cAAc,CAAC,CAAC,GAAG,iBAAiB,EAAE,EAAE,GAAG,wBAAwB,EAAE,CAAC,CAAC,CAAC;AACjF,CAAC"}
@@ -0,0 +1,23 @@
1
+ export interface StartTuiOptions {
2
+ stdout?: NodeJS.WriteStream | undefined;
3
+ stdin?: NodeJS.ReadStream | undefined;
4
+ }
5
+ /**
6
+ * Mount the app and resolve with the process exit code once it unmounts.
7
+ *
8
+ * RESOLVES WITH A CODE RATHER THAN CALLING `process.exit`, matching every other
9
+ * entry point in this package (see the header of cli.ts): `process.exit`
10
+ * terminates without draining pending writes, and the final frame ink writes on
11
+ * teardown would be truncated. Returning the code lets the event loop empty on
12
+ * its own, which is also what flushes the cursor-restore sequence.
13
+ *
14
+ * A NORMAL EXIT IS 0 EVEN AFTER A FAILED LOGIN OR A 403. That is deliberate and
15
+ * it is the opposite of the rule for subcommands: an exit code exists so a
16
+ * SCRIPT can branch, and nothing scripts this — it only runs with no arguments
17
+ * on a terminal, with a human who has already read the error on screen. The
18
+ * non-zero codes here are for failures of the UI itself.
19
+ */
20
+ export declare function startTui(options?: StartTuiOptions): Promise<number>;
21
+ export { evaluateTuiGate, noTuiEnvVar } from './tty.js';
22
+ export type { TtyContext, TuiGateDecision, TuiRefusal } from './tty.js';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/index.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDzE;AAED,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from 'ink';
3
+ import { EXIT, exitCodeFor, formatError } from '../errors.js';
4
+ import { App } from './app.js';
5
+ import { installTerminalRestore, restoreTerminal } from './terminal.js';
6
+ /**
7
+ * Mount the app and resolve with the process exit code once it unmounts.
8
+ *
9
+ * RESOLVES WITH A CODE RATHER THAN CALLING `process.exit`, matching every other
10
+ * entry point in this package (see the header of cli.ts): `process.exit`
11
+ * terminates without draining pending writes, and the final frame ink writes on
12
+ * teardown would be truncated. Returning the code lets the event loop empty on
13
+ * its own, which is also what flushes the cursor-restore sequence.
14
+ *
15
+ * A NORMAL EXIT IS 0 EVEN AFTER A FAILED LOGIN OR A 403. That is deliberate and
16
+ * it is the opposite of the rule for subcommands: an exit code exists so a
17
+ * SCRIPT can branch, and nothing scripts this — it only runs with no arguments
18
+ * on a terminal, with a human who has already read the error on screen. The
19
+ * non-zero codes here are for failures of the UI itself.
20
+ */
21
+ export async function startTui(options) {
22
+ const stdout = options?.stdout ?? process.stdout;
23
+ const stdin = options?.stdin ?? process.stdin;
24
+ // Installed BEFORE the first frame, removed in the `finally`. Between those
25
+ // two points the process may die in ways ink cannot see — a SIGTERM from
26
+ // another terminal, a SIGHUP when the window closes, a throw in our own async
27
+ // code — and each of those would otherwise leave the cursor hidden and stdin
28
+ // in raw mode for the shell the user returns to. See terminal.ts.
29
+ const uninstallRestore = installTerminalRestore({ stdout, stdin });
30
+ try {
31
+ const instance = render(_jsx(App, {}), {
32
+ stdout,
33
+ stdin,
34
+ // ON, and this is the Ctrl-C requirement from #145. With it, ink reads the
35
+ // ^C byte itself (in raw mode the terminal does not generate SIGINT, so
36
+ // nothing else would) and performs a real React unmount: every screen's
37
+ // effect cleanups run, which is what aborts an in-flight device-login poll
38
+ // loop. Without that, Ctrl-C would clear the UI and leave the process
39
+ // alive on a pending `setTimeout` — a shell prompt that never returns.
40
+ exitOnCtrlC: true,
41
+ // ink's default. Named explicitly because it is load-bearing here: a
42
+ // stray `console.log` from anywhere in the dependency tree would otherwise
43
+ // be written straight into the middle of a frame ink is managing,
44
+ // corrupting the layout until the next full redraw.
45
+ patchConsole: true,
46
+ });
47
+ await instance.waitUntilExit();
48
+ return EXIT.OK;
49
+ }
50
+ catch (error) {
51
+ // `waitUntilExit()` rejects when the app is torn down with an error — a
52
+ // throw during render, or `exit(error)`. The UI is gone by this point, so
53
+ // the message has to go to stderr the way every other failure in this CLI
54
+ // does, and it must be written AFTER the restore below so it is not printed
55
+ // into a frame that is still being cleared.
56
+ restoreTerminal({ stdout, stdin });
57
+ process.stderr.write(`${formatError(error)}\n`);
58
+ return exitCodeFor(error);
59
+ }
60
+ finally {
61
+ // Belt and braces on the clean path too: ink restores the terminal on
62
+ // unmount, and doing it again is a no-op by design (`restoreTerminal` is
63
+ // idempotent). The listener removal is NOT optional — leaving a SIGINT
64
+ // handler installed would keep suppressing node's default disposition for
65
+ // the rest of the process's life.
66
+ restoreTerminal({ stdout, stdin });
67
+ uninstallRestore();
68
+ }
69
+ }
70
+ export { evaluateTuiGate, noTuiEnvVar } from './tty.js';
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/engine/tui/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,eAAe,E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AE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QACnC,gBAAgB,EAAE,CAAC;IACrB,CAAC;AACH,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,132 @@
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * Below this many columns the chrome is dropped.
4
+ *
5
+ * FIFTY-SIX because that is roughly what the widest fixed content needs — the
6
+ * device-flow instruction panel, a `GET /api/users → 200 OK (41ms)` status
7
+ * line — plus a two-column border and two of padding on each side. Narrower
8
+ * than that and the border characters start consuming the content they are
9
+ * meant to frame, which is worse than no border: yoga wraps mid-word inside a
10
+ * box it cannot shrink, and the result is a smear of broken box-drawing
11
+ * characters rather than a smaller version of the UI.
12
+ *
13
+ * The number is a THRESHOLD, not a minimum viable width: below it the UI keeps
14
+ * working, it just stops drawing decoration. #145 asks for degrade, not
15
+ * refusal — a user in a tmux split or an 80-column window halved is a normal
16
+ * case, and a TUI that says "your terminal is too small" to someone who can
17
+ * plainly see text on it is a TUI they stop using.
18
+ */
19
+ export declare const NARROW_COLUMNS = 56;
20
+ /**
21
+ * Below this, drop even the header and the padding.
22
+ *
23
+ * Thirty is about the width of a phone-sized SSH session. There is no useful
24
+ * layout left at this size, only content, so that is all that is drawn.
25
+ */
26
+ export declare const TINY_COLUMNS = 30;
27
+ export interface TerminalSize {
28
+ columns: number;
29
+ rows: number;
30
+ /** `columns < NARROW_COLUMNS`. Drop borders and side padding. */
31
+ narrow: boolean;
32
+ /** `columns < TINY_COLUMNS`. Drop the header too; content only. */
33
+ tiny: boolean;
34
+ }
35
+ /**
36
+ * The current terminal size, updated on resize.
37
+ *
38
+ * ink re-renders on its own when the terminal is resized, but it does NOT
39
+ * publish the new size as state — a component that read `stdout.columns` during
40
+ * render would get the fresh value only because a re-render happened to be
41
+ * scheduled, which is a coincidence rather than a subscription. Owning the
42
+ * listener here makes the resize an explicit state change, which is what #145
43
+ * asks for: the layout must actually respond, not merely survive.
44
+ *
45
+ * The listener is removed on unmount. `process.stdout` is a long-lived emitter
46
+ * shared with the whole runtime, so a leaked listener here outlives the UI and
47
+ * fires against unmounted components for the rest of the process's life.
48
+ */
49
+ export declare function useTerminalSize(): TerminalSize;
50
+ /**
51
+ * A guard against writing state after unmount.
52
+ *
53
+ * EVERY SCREEN IN THIS TUI NEEDS IT, because every screen does network work
54
+ * that outlives a keypress. The device-flow login polls for up to fifteen
55
+ * minutes; a user who presses Esc, or Ctrl-C, is unmounted immediately while
56
+ * the in-flight request keeps running and its `.then` still holds a setter for
57
+ * a component that no longer exists. React 18+ no longer warns about this, so
58
+ * the symptom is not a console message but a leak, and — once ink has torn the
59
+ * renderer down — a possible throw from inside a reconciler that has already
60
+ * stopped. `ee2078c fix(web): stop hooks writing state after unmount` is the
61
+ * same bug in apps/web.
62
+ *
63
+ * Returns a getter rather than the ref itself so a caller cannot accidentally
64
+ * capture `ref.current`'s value at closure-creation time, which would always be
65
+ * `true` and defeat the whole thing.
66
+ */
67
+ export declare function useIsMounted(): () => boolean;
68
+ export interface FrameProps {
69
+ /** Screen name, shown in the header. */
70
+ title: string;
71
+ /** Key hints for the bottom line, e.g. `['↑↓ move', 'enter select']`. */
72
+ hints?: string[];
73
+ children: ReactNode;
74
+ }
75
+ /**
76
+ * The window every screen sits in: a header, the content, and a hint line.
77
+ *
78
+ * THE DEGRADE IS THE INTERESTING PART. Three tiers, chosen by width:
79
+ *
80
+ * full (\>= NARROW_COLUMNS) bordered box, padding, header, hints
81
+ * narrow (\>= TINY_COLUMNS) no border, no side padding, header, hints
82
+ * tiny (\< TINY_COLUMNS) content only
83
+ *
84
+ * A bordered `Box` is NOT given an explicit width at any tier. Setting
85
+ * `width={columns}` looks right and is a bug: ink measures the terminal itself,
86
+ * and a box asked for exactly the full width has nowhere to put its own border,
87
+ * so the right-hand edge wraps onto the next line and every frame ends with a
88
+ * row of orphaned box characters. Letting the box size itself and constraining
89
+ * only the CONTENT is what keeps the frame intact at every width.
90
+ */
91
+ export declare function Frame({ title, hints, children }: FrameProps): ReactNode;
92
+ /**
93
+ * The bottom line of every screen.
94
+ *
95
+ * Always present, and always including the key that gets OUT. A full-screen app
96
+ * that has captured the keyboard and does not say how to leave is the reason
97
+ * people are wary of them; Esc and Ctrl-C are both listed on every screen for
98
+ * exactly that reason, even where it looks redundant.
99
+ *
100
+ * Separators are dropped when narrow: at that width the hints wrap, and a
101
+ * wrapped line beginning with a lone dot reads as corruption.
102
+ */
103
+ export declare function KeyHints({ hints }: {
104
+ hints: string[];
105
+ }): ReactNode;
106
+ /**
107
+ * A labelled row: a fixed-width label and a value.
108
+ *
109
+ * The label column is padded rather than laid out with a `<Box width>` because
110
+ * ink measures a Box in cells and these labels are ASCII — padding is exact,
111
+ * one flex node cheaper per row, and immune to the width-collapse described in
112
+ * `Frame`.
113
+ */
114
+ export declare function Field({ label, value, color, dim, }: {
115
+ label: string;
116
+ value: string;
117
+ color?: string | undefined;
118
+ dim?: boolean | undefined;
119
+ }): ReactNode;
120
+ /**
121
+ * An error, rendered the same way everywhere.
122
+ *
123
+ * `hint` is separate from `message` so the remedy is visually distinct from the
124
+ * diagnosis. The messages this CLI produces already carry their own remedy
125
+ * (see errors.ts), so `hint` is for the extra sentence a SCREEN can add and the
126
+ * error itself cannot — "press r to try again".
127
+ */
128
+ export declare function ErrorNotice({ message, hint, }: {
129
+ message: string;
130
+ hint?: string | undefined;
131
+ }): ReactNode;
132
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/layout.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAepE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAe/B,MAAM,WAAW,YAAY;IAC3B,OAAO,EA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