@ligeti/shell 0.0.0-stage → 1.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 (443) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +369 -2
  3. package/dist/attest-key.d.ts +3 -0
  4. package/dist/attest-key.d.ts.map +1 -0
  5. package/dist/attest-key.js +24 -0
  6. package/dist/attest-key.js.map +1 -0
  7. package/dist/attest.d.ts +31 -0
  8. package/dist/attest.d.ts.map +1 -0
  9. package/dist/attest.js +88 -0
  10. package/dist/attest.js.map +1 -0
  11. package/dist/bin-resolve.d.ts +4 -0
  12. package/dist/bin-resolve.d.ts.map +1 -0
  13. package/dist/bin-resolve.js +42 -0
  14. package/dist/bin-resolve.js.map +1 -0
  15. package/dist/child-env.d.ts +25 -0
  16. package/dist/child-env.d.ts.map +1 -0
  17. package/dist/child-env.js +91 -0
  18. package/dist/child-env.js.map +1 -0
  19. package/dist/cli/base-url.d.ts +19 -0
  20. package/dist/cli/base-url.d.ts.map +1 -0
  21. package/dist/cli/base-url.js +60 -0
  22. package/dist/cli/base-url.js.map +1 -0
  23. package/dist/cli/command-line.d.ts +27 -0
  24. package/dist/cli/command-line.d.ts.map +1 -0
  25. package/dist/cli/command-line.js +42 -0
  26. package/dist/cli/command-line.js.map +1 -0
  27. package/dist/cli/config.d.ts +18 -0
  28. package/dist/cli/config.d.ts.map +1 -0
  29. package/dist/cli/config.js +318 -0
  30. package/dist/cli/config.js.map +1 -0
  31. package/dist/cli/cron.d.ts +2 -0
  32. package/dist/cli/cron.d.ts.map +1 -0
  33. package/dist/cli/cron.js +142 -0
  34. package/dist/cli/cron.js.map +1 -0
  35. package/dist/cli/dot-env-directory.d.ts +5 -0
  36. package/dist/cli/dot-env-directory.d.ts.map +1 -0
  37. package/dist/cli/dot-env-directory.js +22 -0
  38. package/dist/cli/dot-env-directory.js.map +1 -0
  39. package/dist/cli/dotenv-file.d.ts +9 -0
  40. package/dist/cli/dotenv-file.d.ts.map +1 -0
  41. package/dist/cli/dotenv-file.js +121 -0
  42. package/dist/cli/dotenv-file.js.map +1 -0
  43. package/dist/cli/run-workflow.d.ts +15 -0
  44. package/dist/cli/run-workflow.d.ts.map +1 -0
  45. package/dist/cli/run-workflow.js +110 -0
  46. package/dist/cli/run-workflow.js.map +1 -0
  47. package/dist/cli/runs.d.ts +11 -0
  48. package/dist/cli/runs.d.ts.map +1 -0
  49. package/dist/cli/runs.js +72 -0
  50. package/dist/cli/runs.js.map +1 -0
  51. package/dist/cli/schema.d.ts +9 -0
  52. package/dist/cli/schema.d.ts.map +1 -0
  53. package/dist/cli/schema.js +102 -0
  54. package/dist/cli/schema.js.map +1 -0
  55. package/dist/cli/serve.d.ts +3 -0
  56. package/dist/cli/serve.d.ts.map +1 -0
  57. package/dist/cli/serve.js +9 -0
  58. package/dist/cli/serve.js.map +1 -0
  59. package/dist/cli/shell-http.d.ts +12 -0
  60. package/dist/cli/shell-http.d.ts.map +1 -0
  61. package/dist/cli/shell-http.js +115 -0
  62. package/dist/cli/shell-http.js.map +1 -0
  63. package/dist/cli/trace.d.ts +14 -0
  64. package/dist/cli/trace.d.ts.map +1 -0
  65. package/dist/cli/trace.js +166 -0
  66. package/dist/cli/trace.js.map +1 -0
  67. package/dist/cli/transcript.d.ts +20 -0
  68. package/dist/cli/transcript.d.ts.map +1 -0
  69. package/dist/cli/transcript.js +91 -0
  70. package/dist/cli/transcript.js.map +1 -0
  71. package/dist/cli/workflows.d.ts +9 -0
  72. package/dist/cli/workflows.d.ts.map +1 -0
  73. package/dist/cli/workflows.js +46 -0
  74. package/dist/cli/workflows.js.map +1 -0
  75. package/dist/cli.d.ts +25 -0
  76. package/dist/cli.d.ts.map +1 -0
  77. package/dist/cli.js +251 -0
  78. package/dist/cli.js.map +1 -0
  79. package/dist/config-rows.d.ts +57 -0
  80. package/dist/config-rows.d.ts.map +1 -0
  81. package/dist/config-rows.js +144 -0
  82. package/dist/config-rows.js.map +1 -0
  83. package/dist/cron-expression.d.ts +2 -0
  84. package/dist/cron-expression.d.ts.map +1 -0
  85. package/dist/cron-expression.js +18 -0
  86. package/dist/cron-expression.js.map +1 -0
  87. package/dist/cron.d.ts +44 -0
  88. package/dist/cron.d.ts.map +1 -0
  89. package/dist/cron.js +239 -0
  90. package/dist/cron.js.map +1 -0
  91. package/dist/db/pg-errors.d.ts +3 -0
  92. package/dist/db/pg-errors.d.ts.map +1 -0
  93. package/dist/db/pg-errors.js +14 -0
  94. package/dist/db/pg-errors.js.map +1 -0
  95. package/dist/db/pool.d.ts +3 -0
  96. package/dist/db/pool.d.ts.map +1 -0
  97. package/dist/db/pool.js +7 -0
  98. package/dist/db/pool.js.map +1 -0
  99. package/dist/db/registrations.d.ts +16 -0
  100. package/dist/db/registrations.d.ts.map +1 -0
  101. package/dist/db/registrations.js +56 -0
  102. package/dist/db/registrations.js.map +1 -0
  103. package/dist/default-base-url.d.ts +5 -0
  104. package/dist/default-base-url.d.ts.map +1 -0
  105. package/dist/default-base-url.js +31 -0
  106. package/dist/default-base-url.js.map +1 -0
  107. package/dist/default-workflows.d.ts +3 -0
  108. package/dist/default-workflows.d.ts.map +1 -0
  109. package/dist/default-workflows.js +16 -0
  110. package/dist/default-workflows.js.map +1 -0
  111. package/dist/gate-checkout.d.ts +17 -0
  112. package/dist/gate-checkout.d.ts.map +1 -0
  113. package/dist/gate-checkout.js +162 -0
  114. package/dist/gate-checkout.js.map +1 -0
  115. package/dist/index.d.ts +12 -0
  116. package/dist/index.d.ts.map +1 -0
  117. package/dist/index.js +14 -0
  118. package/dist/index.js.map +1 -0
  119. package/dist/launched-run.d.ts +4 -0
  120. package/dist/launched-run.d.ts.map +1 -0
  121. package/dist/launched-run.js +4 -0
  122. package/dist/launched-run.js.map +1 -0
  123. package/dist/manifest-tree.d.ts +3 -0
  124. package/dist/manifest-tree.d.ts.map +1 -0
  125. package/dist/manifest-tree.js +27 -0
  126. package/dist/manifest-tree.js.map +1 -0
  127. package/dist/private-dir.d.ts +2 -0
  128. package/dist/private-dir.d.ts.map +1 -0
  129. package/dist/private-dir.js +21 -0
  130. package/dist/private-dir.js.map +1 -0
  131. package/dist/registry.d.ts +30 -0
  132. package/dist/registry.d.ts.map +1 -0
  133. package/dist/registry.js +72 -0
  134. package/dist/registry.js.map +1 -0
  135. package/dist/settings.d.ts +65 -0
  136. package/dist/settings.d.ts.map +1 -0
  137. package/dist/settings.js +186 -0
  138. package/dist/settings.js.map +1 -0
  139. package/dist/supervisor.d.ts +62 -0
  140. package/dist/supervisor.d.ts.map +1 -0
  141. package/dist/supervisor.js +292 -0
  142. package/dist/supervisor.js.map +1 -0
  143. package/dist/terminal.d.ts +3 -0
  144. package/dist/terminal.d.ts.map +1 -0
  145. package/dist/terminal.js +12 -0
  146. package/dist/terminal.js.map +1 -0
  147. package/dist/web/access-log.d.ts +4 -0
  148. package/dist/web/access-log.d.ts.map +1 -0
  149. package/dist/web/access-log.js +24 -0
  150. package/dist/web/access-log.js.map +1 -0
  151. package/dist/web/app.d.ts +5 -0
  152. package/dist/web/app.d.ts.map +1 -0
  153. package/dist/web/app.js +14 -0
  154. package/dist/web/app.js.map +1 -0
  155. package/dist/web/assets/copy-button.d.ts +4 -0
  156. package/dist/web/assets/copy-button.d.ts.map +1 -0
  157. package/dist/web/assets/copy-button.js +87 -0
  158. package/dist/web/assets/copy-button.js.map +1 -0
  159. package/dist/web/assets/favicons.d.ts +5 -0
  160. package/dist/web/assets/favicons.d.ts.map +1 -0
  161. package/dist/web/assets/favicons.js +62 -0
  162. package/dist/web/assets/favicons.js.map +1 -0
  163. package/dist/web/assets/fonts.d.ts +16 -0
  164. package/dist/web/assets/fonts.d.ts.map +1 -0
  165. package/dist/web/assets/fonts.js +61 -0
  166. package/dist/web/assets/fonts.js.map +1 -0
  167. package/dist/web/assets/icons.d.ts +6 -0
  168. package/dist/web/assets/icons.d.ts.map +1 -0
  169. package/dist/web/assets/icons.js +41 -0
  170. package/dist/web/assets/icons.js.map +1 -0
  171. package/dist/web/assets/index.d.ts +3 -0
  172. package/dist/web/assets/index.d.ts.map +1 -0
  173. package/dist/web/assets/index.js +17 -0
  174. package/dist/web/assets/index.js.map +1 -0
  175. package/dist/web/assets/package-files.d.ts +5 -0
  176. package/dist/web/assets/package-files.d.ts.map +1 -0
  177. package/dist/web/assets/package-files.js +29 -0
  178. package/dist/web/assets/package-files.js.map +1 -0
  179. package/dist/web/assets/run-refresh.d.ts +4 -0
  180. package/dist/web/assets/run-refresh.d.ts.map +1 -0
  181. package/dist/web/assets/run-refresh.js +82 -0
  182. package/dist/web/assets/run-refresh.js.map +1 -0
  183. package/dist/web/assets/stylesheet.d.ts +4 -0
  184. package/dist/web/assets/stylesheet.d.ts.map +1 -0
  185. package/dist/web/assets/stylesheet.js +15 -0
  186. package/dist/web/assets/stylesheet.js.map +1 -0
  187. package/dist/web/assets/vendored-notices.d.ts +4 -0
  188. package/dist/web/assets/vendored-notices.d.ts.map +1 -0
  189. package/dist/web/assets/vendored-notices.js +21 -0
  190. package/dist/web/assets/vendored-notices.js.map +1 -0
  191. package/dist/web/attempt-files.d.ts +18 -0
  192. package/dist/web/attempt-files.d.ts.map +1 -0
  193. package/dist/web/attempt-files.js +85 -0
  194. package/dist/web/attempt-files.js.map +1 -0
  195. package/dist/web/attest-route.d.ts +4 -0
  196. package/dist/web/attest-route.d.ts.map +1 -0
  197. package/dist/web/attest-route.js +58 -0
  198. package/dist/web/attest-route.js.map +1 -0
  199. package/dist/web/body-limit.d.ts +5 -0
  200. package/dist/web/body-limit.d.ts.map +1 -0
  201. package/dist/web/body-limit.js +34 -0
  202. package/dist/web/body-limit.js.map +1 -0
  203. package/dist/web/callback-access.d.ts +43 -0
  204. package/dist/web/callback-access.d.ts.map +1 -0
  205. package/dist/web/callback-access.js +93 -0
  206. package/dist/web/callback-access.js.map +1 -0
  207. package/dist/web/callback-routes.d.ts +4 -0
  208. package/dist/web/callback-routes.d.ts.map +1 -0
  209. package/dist/web/callback-routes.js +78 -0
  210. package/dist/web/callback-routes.js.map +1 -0
  211. package/dist/web/dbos-errors.d.ts +2 -0
  212. package/dist/web/dbos-errors.d.ts.map +1 -0
  213. package/dist/web/dbos-errors.js +7 -0
  214. package/dist/web/dbos-errors.js.map +1 -0
  215. package/dist/web/deps.d.ts +29 -0
  216. package/dist/web/deps.d.ts.map +1 -0
  217. package/dist/web/deps.js +2 -0
  218. package/dist/web/deps.js.map +1 -0
  219. package/dist/web/find-workflow.d.ts +4 -0
  220. package/dist/web/find-workflow.d.ts.map +1 -0
  221. package/dist/web/find-workflow.js +13 -0
  222. package/dist/web/find-workflow.js.map +1 -0
  223. package/dist/web/host-allowlist.d.ts +9 -0
  224. package/dist/web/host-allowlist.d.ts.map +1 -0
  225. package/dist/web/host-allowlist.js +28 -0
  226. package/dist/web/host-allowlist.js.map +1 -0
  227. package/dist/web/http-helpers.d.ts +10 -0
  228. package/dist/web/http-helpers.d.ts.map +1 -0
  229. package/dist/web/http-helpers.js +45 -0
  230. package/dist/web/http-helpers.js.map +1 -0
  231. package/dist/web/json-run-request.d.ts +5 -0
  232. package/dist/web/json-run-request.d.ts.map +1 -0
  233. package/dist/web/json-run-request.js +98 -0
  234. package/dist/web/json-run-request.js.map +1 -0
  235. package/dist/web/json.d.ts +4 -0
  236. package/dist/web/json.d.ts.map +1 -0
  237. package/dist/web/json.js +7 -0
  238. package/dist/web/json.js.map +1 -0
  239. package/dist/web/launch-again.d.ts +2 -0
  240. package/dist/web/launch-again.d.ts.map +1 -0
  241. package/dist/web/launch-again.js +35 -0
  242. package/dist/web/launch-again.js.map +1 -0
  243. package/dist/web/launch-routes.d.ts +5 -0
  244. package/dist/web/launch-routes.d.ts.map +1 -0
  245. package/dist/web/launch-routes.js +84 -0
  246. package/dist/web/launch-routes.js.map +1 -0
  247. package/dist/web/mermaid-asset.d.ts +4 -0
  248. package/dist/web/mermaid-asset.d.ts.map +1 -0
  249. package/dist/web/mermaid-asset.js +31 -0
  250. package/dist/web/mermaid-asset.js.map +1 -0
  251. package/dist/web/read-api.d.ts +5 -0
  252. package/dist/web/read-api.d.ts.map +1 -0
  253. package/dist/web/read-api.js +199 -0
  254. package/dist/web/read-api.js.map +1 -0
  255. package/dist/web/request-body.d.ts +20 -0
  256. package/dist/web/request-body.d.ts.map +1 -0
  257. package/dist/web/request-body.js +37 -0
  258. package/dist/web/request-body.js.map +1 -0
  259. package/dist/web/routes.d.ts +4 -0
  260. package/dist/web/routes.d.ts.map +1 -0
  261. package/dist/web/routes.js +88 -0
  262. package/dist/web/routes.js.map +1 -0
  263. package/dist/web/run-data.d.ts +27 -0
  264. package/dist/web/run-data.d.ts.map +1 -0
  265. package/dist/web/run-data.js +130 -0
  266. package/dist/web/run-data.js.map +1 -0
  267. package/dist/web/run-form.d.ts +8 -0
  268. package/dist/web/run-form.d.ts.map +1 -0
  269. package/dist/web/run-form.js +58 -0
  270. package/dist/web/run-form.js.map +1 -0
  271. package/dist/web/run-launch.d.ts +13 -0
  272. package/dist/web/run-launch.d.ts.map +1 -0
  273. package/dist/web/run-launch.js +52 -0
  274. package/dist/web/run-launch.js.map +1 -0
  275. package/dist/web/run-prompt.d.ts +6 -0
  276. package/dist/web/run-prompt.d.ts.map +1 -0
  277. package/dist/web/run-prompt.js +34 -0
  278. package/dist/web/run-prompt.js.map +1 -0
  279. package/dist/web/run-query.d.ts +14 -0
  280. package/dist/web/run-query.d.ts.map +1 -0
  281. package/dist/web/run-query.js +14 -0
  282. package/dist/web/run-query.js.map +1 -0
  283. package/dist/web/run-routes.d.ts +4 -0
  284. package/dist/web/run-routes.d.ts.map +1 -0
  285. package/dist/web/run-routes.js +157 -0
  286. package/dist/web/run-routes.js.map +1 -0
  287. package/dist/web/runs-filter.d.ts +19 -0
  288. package/dist/web/runs-filter.d.ts.map +1 -0
  289. package/dist/web/runs-filter.js +68 -0
  290. package/dist/web/runs-filter.js.map +1 -0
  291. package/dist/web/runs-scope.d.ts +13 -0
  292. package/dist/web/runs-scope.d.ts.map +1 -0
  293. package/dist/web/runs-scope.js +14 -0
  294. package/dist/web/runs-scope.js.map +1 -0
  295. package/dist/web/same-site.d.ts +3 -0
  296. package/dist/web/same-site.d.ts.map +1 -0
  297. package/dist/web/same-site.js +19 -0
  298. package/dist/web/same-site.js.map +1 -0
  299. package/dist/web/schema-fields.d.ts +7 -0
  300. package/dist/web/schema-fields.d.ts.map +1 -0
  301. package/dist/web/schema-fields.js +20 -0
  302. package/dist/web/schema-fields.js.map +1 -0
  303. package/dist/web/styles/base.d.ts +2 -0
  304. package/dist/web/styles/base.d.ts.map +1 -0
  305. package/dist/web/styles/base.js +24 -0
  306. package/dist/web/styles/base.js.map +1 -0
  307. package/dist/web/styles/components.d.ts +2 -0
  308. package/dist/web/styles/components.d.ts.map +1 -0
  309. package/dist/web/styles/components.js +172 -0
  310. package/dist/web/styles/components.js.map +1 -0
  311. package/dist/web/styles/console.d.ts +2 -0
  312. package/dist/web/styles/console.d.ts.map +1 -0
  313. package/dist/web/styles/console.js +49 -0
  314. package/dist/web/styles/console.js.map +1 -0
  315. package/dist/web/styles/fonts.d.ts +2 -0
  316. package/dist/web/styles/fonts.d.ts.map +1 -0
  317. package/dist/web/styles/fonts.js +9 -0
  318. package/dist/web/styles/fonts.js.map +1 -0
  319. package/dist/web/styles/index.d.ts +2 -0
  320. package/dist/web/styles/index.d.ts.map +1 -0
  321. package/dist/web/styles/index.js +9 -0
  322. package/dist/web/styles/index.js.map +1 -0
  323. package/dist/web/styles/tokens.d.ts +2 -0
  324. package/dist/web/styles/tokens.d.ts.map +1 -0
  325. package/dist/web/styles/tokens.js +65 -0
  326. package/dist/web/styles/tokens.js.map +1 -0
  327. package/dist/web/trace.d.ts +83 -0
  328. package/dist/web/trace.d.ts.map +1 -0
  329. package/dist/web/trace.js +194 -0
  330. package/dist/web/trace.js.map +1 -0
  331. package/dist/web/transcript.d.ts +30 -0
  332. package/dist/web/transcript.d.ts.map +1 -0
  333. package/dist/web/transcript.js +143 -0
  334. package/dist/web/transcript.js.map +1 -0
  335. package/dist/web/validation.d.ts +10 -0
  336. package/dist/web/validation.d.ts.map +1 -0
  337. package/dist/web/validation.js +43 -0
  338. package/dist/web/validation.js.map +1 -0
  339. package/dist/web/views/approval.d.ts +15 -0
  340. package/dist/web/views/approval.d.ts.map +1 -0
  341. package/dist/web/views/approval.js +7 -0
  342. package/dist/web/views/approval.js.map +1 -0
  343. package/dist/web/views/cancel.d.ts +9 -0
  344. package/dist/web/views/cancel.d.ts.map +1 -0
  345. package/dist/web/views/cancel.js +13 -0
  346. package/dist/web/views/cancel.js.map +1 -0
  347. package/dist/web/views/components/button.d.ts +38 -0
  348. package/dist/web/views/components/button.d.ts.map +1 -0
  349. package/dist/web/views/components/button.js +23 -0
  350. package/dist/web/views/components/button.js.map +1 -0
  351. package/dist/web/views/components/classes.d.ts +2 -0
  352. package/dist/web/views/components/classes.d.ts.map +1 -0
  353. package/dist/web/views/components/classes.js +8 -0
  354. package/dist/web/views/components/classes.js.map +1 -0
  355. package/dist/web/views/components/data.d.ts +45 -0
  356. package/dist/web/views/components/data.d.ts.map +1 -0
  357. package/dist/web/views/components/data.js +17 -0
  358. package/dist/web/views/components/data.js.map +1 -0
  359. package/dist/web/views/components/feedback.d.ts +24 -0
  360. package/dist/web/views/components/feedback.d.ts.map +1 -0
  361. package/dist/web/views/components/feedback.js +19 -0
  362. package/dist/web/views/components/feedback.js.map +1 -0
  363. package/dist/web/views/components/filter-chip.d.ts +12 -0
  364. package/dist/web/views/components/filter-chip.d.ts.map +1 -0
  365. package/dist/web/views/components/filter-chip.js +3 -0
  366. package/dist/web/views/components/filter-chip.js.map +1 -0
  367. package/dist/web/views/components/form.d.ts +51 -0
  368. package/dist/web/views/components/form.d.ts.map +1 -0
  369. package/dist/web/views/components/form.js +10 -0
  370. package/dist/web/views/components/form.js.map +1 -0
  371. package/dist/web/views/components/icon.d.ts +11 -0
  372. package/dist/web/views/components/icon.d.ts.map +1 -0
  373. package/dist/web/views/components/icon.js +5 -0
  374. package/dist/web/views/components/icon.js.map +1 -0
  375. package/dist/web/views/components/index.d.ts +10 -0
  376. package/dist/web/views/components/index.d.ts.map +1 -0
  377. package/dist/web/views/components/index.js +12 -0
  378. package/dist/web/views/components/index.js.map +1 -0
  379. package/dist/web/views/components/navigation.d.ts +40 -0
  380. package/dist/web/views/components/navigation.d.ts.map +1 -0
  381. package/dist/web/views/components/navigation.js +6 -0
  382. package/dist/web/views/components/navigation.js.map +1 -0
  383. package/dist/web/views/components/page.d.ts +15 -0
  384. package/dist/web/views/components/page.d.ts.map +1 -0
  385. package/dist/web/views/components/page.js +8 -0
  386. package/dist/web/views/components/page.js.map +1 -0
  387. package/dist/web/views/components/status.d.ts +23 -0
  388. package/dist/web/views/components/status.d.ts.map +1 -0
  389. package/dist/web/views/components/status.js +22 -0
  390. package/dist/web/views/components/status.js.map +1 -0
  391. package/dist/web/views/config.d.ts +8 -0
  392. package/dist/web/views/config.d.ts.map +1 -0
  393. package/dist/web/views/config.js +35 -0
  394. package/dist/web/views/config.js.map +1 -0
  395. package/dist/web/views/cron-runs.d.ts +12 -0
  396. package/dist/web/views/cron-runs.d.ts.map +1 -0
  397. package/dist/web/views/cron-runs.js +23 -0
  398. package/dist/web/views/cron-runs.js.map +1 -0
  399. package/dist/web/views/launch.d.ts +16 -0
  400. package/dist/web/views/launch.d.ts.map +1 -0
  401. package/dist/web/views/launch.js +18 -0
  402. package/dist/web/views/launch.js.map +1 -0
  403. package/dist/web/views/layout.d.ts +13 -0
  404. package/dist/web/views/layout.d.ts.map +1 -0
  405. package/dist/web/views/layout.js +16 -0
  406. package/dist/web/views/layout.js.map +1 -0
  407. package/dist/web/views/linkify.d.ts +5 -0
  408. package/dist/web/views/linkify.d.ts.map +1 -0
  409. package/dist/web/views/linkify.js +40 -0
  410. package/dist/web/views/linkify.js.map +1 -0
  411. package/dist/web/views/not-found.d.ts +8 -0
  412. package/dist/web/views/not-found.d.ts.map +1 -0
  413. package/dist/web/views/not-found.js +5 -0
  414. package/dist/web/views/not-found.js.map +1 -0
  415. package/dist/web/views/run.d.ts +31 -0
  416. package/dist/web/views/run.d.ts.map +1 -0
  417. package/dist/web/views/run.js +128 -0
  418. package/dist/web/views/run.js.map +1 -0
  419. package/dist/web/views/runs.d.ts +37 -0
  420. package/dist/web/views/runs.d.ts.map +1 -0
  421. package/dist/web/views/runs.js +97 -0
  422. package/dist/web/views/runs.js.map +1 -0
  423. package/dist/web/views/schema-form.d.ts +18 -0
  424. package/dist/web/views/schema-form.d.ts.map +1 -0
  425. package/dist/web/views/schema-form.js +67 -0
  426. package/dist/web/views/schema-form.js.map +1 -0
  427. package/dist/web/views/workers.d.ts +8 -0
  428. package/dist/web/views/workers.d.ts.map +1 -0
  429. package/dist/web/views/workers.js +23 -0
  430. package/dist/web/views/workers.js.map +1 -0
  431. package/dist/web/views/workflow.d.ts +8 -0
  432. package/dist/web/views/workflow.d.ts.map +1 -0
  433. package/dist/web/views/workflow.js +29 -0
  434. package/dist/web/views/workflow.js.map +1 -0
  435. package/dist/web/voice.d.ts +5 -0
  436. package/dist/web/voice.d.ts.map +1 -0
  437. package/dist/web/voice.js +29 -0
  438. package/dist/web/voice.js.map +1 -0
  439. package/dist/workers.d.ts +9 -0
  440. package/dist/workers.d.ts.map +1 -0
  441. package/dist/workers.js +63 -0
  442. package/dist/workers.js.map +1 -0
  443. package/package.json +50 -3
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Viktor "Bika" Nagy
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,370 @@
1
- # Temporary Holding Version
1
+ # @ligeti/shell
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The control plane: web UI, callback endpoint, worker supervisor, registry, and the `ligeti` CLI. It
4
+ never calls `DBOS.launch()`, `registerWorkflow` or `registerStep` — enforced by its own ESLint
5
+ preset ([`packages/eslint-plugin`](../eslint-plugin/README.md)) — and talks to workers only through
6
+ `DBOSClient`, never by holding workflow or step code itself.
7
+
8
+ See [ADR-0012](../../adr/0012-a-workflow-package-is-its-own-dbos-application.md) for why each
9
+ configured workflow runs as its own DBOS application, spawned as a separate worker process by the
10
+ Supervisor rather than sharing this process, and [`docs/trust-model.md`](../../docs/trust-model.md)
11
+ for the security posture this control plane sits inside.
12
+
13
+ ## What it exposes
14
+
15
+ - **`ligeti` CLI**:
16
+ - `ligeti serve` — loads `.env` if present, describes every configured workflow, starts the
17
+ Supervisor and the HTTP server, and shuts down cleanly on `SIGTERM`/`SIGINT`.
18
+ - `ligeti run <workflow>` — enqueues one run over this shell's own HTTP API and returns once
19
+ it has started; `--wait` polls it to completion. Documented in full under
20
+ [`ligeti run`](#ligeti-run) below.
21
+ - `ligeti runs`, `ligeti trace <runId|latest-failed>`, `ligeti transcript <runId>` — read-only
22
+ troubleshooting over the same HTTP API. Documented under
23
+ [`ligeti runs / trace / transcript`](#ligeti-runs--trace--transcript) below.
24
+ - `ligeti workflows`, `ligeti schema <workflow>` — list the workflows and print one's input
25
+ fields. Documented under [`ligeti workflows / schema`](#ligeti-workflows--schema) below.
26
+ - `ligeti cron check [<file>]` — validate a cron file without serving. Documented under
27
+ [Cron entries](#cron-entries) below.
28
+ - **`Supervisor`** (`src/supervisor.ts`) — spawns one `ligeti-worker run <dir>` child process per
29
+ configured workflow, restarts it on crash with backoff, and reports each worker's status. It
30
+ manages OS processes only, never DBOS state.
31
+ - **`Registry`** (`src/registry.ts`) — the shell's view of configured workflows: describes each
32
+ configured package directory once at boot (refusing duplicate workflow names), then serves
33
+ manifests from `ligeti.workflow_registrations`, written by each worker.
34
+ - **HTTP routes** (`src/web/routes.tsx`): `GET /healthz`, `GET /` (redirects to `/runs`;
35
+ an old `/?workflow=` bookmark to `/runs/new` with the same query), `GET /runs/new` (the launch page, reached
36
+ from the Runs tab: workflow picker and start form; `?workflow=` selects a workflow), `GET /runs`
37
+ (the Runs tab: recent launched root runs, 50 per page; `?page=` picks a
38
+ 1-based page, clamped to 1 for anything that isn't a positive safe integer and capped at the
39
+ largest page a safe offset can reach for very large values, with "← Newer"/"Older →" links below
40
+ the table; `?workflow=`, repeatable `?status=`, `?createdFrom=` and `?createdTo=` (inclusive
41
+ `YYYY-MM-DD` UTC days) filter the list, a malformed value answers 400), `GET /cron-runs` (the
42
+ Cron runs tab: see [Cron entries](#cron-entries)), `GET /workers` (the Workers tab: each
43
+ configured worker's supervisor status), `GET /config` (the Configuration tab: the configuration the
44
+ running shell loaded at startup, grouped by owner, secrets only as `set`/`unset`; a later `.env`
45
+ edit shows after a restart), `POST /runs` (see
46
+ [Starting a run over HTTP](#starting-a-run-over-http)), `GET /runs/:id`,
47
+ `POST /runs/:id/cancel`, `GET /workflows`, `GET /workflows/:name`, `POST /attest`, `POST /callbacks/:token`,
48
+ `GET /approvals/:token`, `POST /approvals/:token`. Every page shares a tab bar
49
+ (`Runs`/`Cron runs`/`Workers`/`Configuration`, marking the current one active) except the
50
+ token-authenticated approval pages, which a human
51
+ reaches from outside the shell's own UI; the Workers tab carries a warning mark whenever
52
+ any configured worker isn't in the `"running"` status. `GET /workflows` (with
53
+ `Accept: application/json`: `{ workflows: [{ name, description, registered }] }`; otherwise it
54
+ redirects to `/runs/new`) and `GET /workflows/:name` with `Accept: application/json` (the manifest; 404 for
55
+ an unknown name, 503 before the worker has registered) serve `ligeti workflows` and
56
+ `ligeti schema`. `GET /workers` with `Accept: application/json` answers
57
+ `{ workers: [{ name, status, reason? }] }`: the workflow name, its worker's supervisor status
58
+ (`starting`, `running`, `backoff`, `blocked` or `stopped`) and, when there is one, why. Otherwise `GET /workflows/:name` renders the
59
+ manifest's optional `workflow.diagram` (and, for a child whose parent has no diagram, the child's own) as a Mermaid flowchart, rendered
60
+ client-side by `mermaid/dist/mermaid.min.js`, vendored and served locally at a version-tagged
61
+ `GET /assets/mermaid.min.js?v=<version>` (`src/web/mermaid-asset.ts`) rather than loaded from a
62
+ CDN. The console's own assets are served the same way and never leave the host (`src/web/assets/`):
63
+ the stylesheet at `GET /assets/ligeti.css?v=<content hash>` (tokens, components and the `kit-`
64
+ layout, built from `src/web/styles/`); the Saira, Barlow and IBM Plex Mono `woff2` files at
65
+ `GET /assets/fonts/<family>-<subset>-<weight>-<style>.woff2` (from the `@fontsource/*` packages);
66
+ the allowlisted Lucide icons at `GET /assets/icons/<name>.svg` (from `lucide-static`, drawn through
67
+ a CSS mask; an icon outside `ICON_NAMES` answers 404); the per-status favicons at
68
+ `GET /assets/favicons/<status>[-updated].svg?v=<content hash>` (plus a neutral one, and an
69
+ `-updated` twin with a corner dot); the run page's background-refresh script at
70
+ `GET /assets/run-refresh.js?v=<content hash>`; and the licence of each vendored package at
71
+ `GET /assets/licenses/{saira,barlow,ibm-plex-mono,lucide-static}.txt` (SIL OFL 1.1 for the fonts,
72
+ ISC for the icons). `POST /attest` takes `{ app, repository, commit, configPath? }`, runs the local-verification
73
+ gate in a fresh gate checkout of that commit (`src/gate-checkout.ts`, under
74
+ `$LIGETI_STATE_DIR/gate-checkouts/`) and signs the resulting attestation via `@ligeti/attest`; it
75
+ answers `503` when `LIGETI_ATTEST_SECRET`/`LIGETI_ATTEST_KEY_FILE` are not configured, since
76
+ attestation is optional. `POST /callbacks/:token` is where a spawned agent's `wrapper.sh` delivers
77
+ its result
78
+ back to the shell. The JSON read API (`src/web/read-api.ts`; `Accept: application/json`, behind the
79
+ Host allow-list only) serves troubleshooting: `GET /runs` filters by `status`, `workflow` (each
80
+ repeatable or comma-separated), `since` (ISO time), `limit` (1-500, default 50), `children=true`
81
+ and `scope=launched|cron` (default `launched`; `cron` lists the root runs a schedule started and
82
+ cannot be combined with `children=true`) and answers `400 {error}` to a malformed query; `GET /runs/:id/trace` returns the run's steps (an
83
+ output over 2000 characters is replaced by its size and a preview), `status` event, agent attempts
84
+ and child runs recursively; `GET /runs/:id/steps/:functionId` returns one step in full;
85
+ `GET /runs/:id/attempts/:attemptId/transcript` digests a Claude `transcript.jsonl` or OpenCode
86
+ `opencode-raw-output.json` (`?raw=1` returns the file); `GET /runs/:id/attempts/:attemptId/files/:name`
87
+ returns one attempt file as text. An attempt is recognised from a step's checkpointed output, and
88
+ its files are read only from inside `$LIGETI_STATE_DIR/runs/` -- a path resolving outside is
89
+ treated as absent.
90
+
91
+ ## Starting a run over HTTP
92
+
93
+ `POST /runs` with `Content-Type: application/json` takes `{ "workflow": "<name>", "input": {...} }`
94
+ and answers `201` with `{ "id": "<run id>" }`. An input property the workflow does not declare is
95
+ rejected by name. The body may also carry `"id"`, which becomes the run's id: 1-256 characters of
96
+ letters, digits, `.`, `_`, `:` and `-`, starting with a letter or digit. A repeated id never starts a
97
+ second run: a request sent after the first was answered finds the run, starts nothing and answers
98
+ `200` with the same `{ "id" }`, ignoring the repeat's input; two requests racing before either is
99
+ answered may both answer `201`, still for the one run. An id that names a run of another workflow is
100
+ a `409`. An id starting with `sched-` is a `400`, because the shell reserves that prefix for cron
101
+ runs, and so is the id `new`, because `/runs/new` is the launch page.
102
+
103
+ Every run started this way -- from the launch page, over JSON, or by `ligeti run` -- carries the DBOS
104
+ attribute `launched: true`, and its child runs inherit it. The Runs tab, `GET /runs` and `ligeti runs`
105
+ list only runs carrying it, so a cron run appears on the Cron runs tab alone. Launched runs created
106
+ before the attribute existed are no longer listed but stay reachable at `/runs/<id>`.
107
+
108
+ ## `ligeti run`
109
+
110
+ `ligeti run <workflow>` enqueues a run against a **running `ligeti serve`** over HTTP -- it
111
+ requires the shell to already be up; unlike `serve`, it needs no `.env` and no environment variable
112
+ at all, since it holds no secret and opens no database connection of its own. That statelessness is the point: it works from a git worktree, from a subdirectory of the
113
+ repo, or from a bare checkout with no `.env` in sight, as long as it can reach a shell. It is
114
+ deliberately not a second control plane -- see
115
+ [ADR-0012](../../adr/0012-a-workflow-package-is-its-own-dbos-application.md).
116
+
117
+ It finds the shell by trying, in order, the first one present: `--url <base>`, then
118
+ `$LIGETI_PUBLIC_BASE_URL`, then `http://<LIGETI_HOST>:<LIGETI_PORT>` (`127.0.0.1:8100` by default).
119
+
120
+ Input is a JSON object on stdin:
121
+
122
+ ```sh
123
+ echo '{"field": "value"}' | ligeti run <workflow-name>
124
+ ```
125
+
126
+ Before enqueuing anything, `ligeti run` validates that input against the workflow's manifest
127
+ schema, so a misspelled field fails in milliseconds with the manifest's own error message instead
128
+ of surfacing as a `zod` failure inside a started run minutes later. A field the manifest does not
129
+ declare is rejected by name rather than ignored, since a JSON caller sends only what it meant to
130
+ send: a typo there is a mistake, not a field to drop.
131
+
132
+ Once the run is accepted, `ligeti run` prints `started <workflow> as <id>` to stderr and exits `0`
133
+ at once, with nothing on stdout; follow the run with `ligeti trace <id>` or the Runs tab. With
134
+ `--wait` it instead polls the run to a terminal status, then prints the run's output as one JSON
135
+ line on stdout on success, or a one-line failure summary on stderr if it fails.
136
+
137
+ Exit codes: `0` the run was started (with `--wait`: it succeeded), `1` the workflow has not
138
+ registered yet or the shell speaks a different protocol (with `--wait`, also: the run failed, timed
139
+ out or no worker claimed it), `2` usage or bad stdin, `3` the shell could not be reached (with
140
+ `--wait`, also: contact with it was lost mid-run) -- so a script can tell "my workflow failed" from
141
+ "my control plane is down". A script that needs the result or the verdict passes `--wait`.
142
+
143
+ ## `ligeti runs / trace / transcript`
144
+
145
+ Three read-only commands for finding out why a run went wrong. Like `ligeti run` they need a
146
+ running `ligeti serve`, hold no secret, and find it by `--url <base>`, then
147
+ `$LIGETI_PUBLIC_BASE_URL`, then `http://<LIGETI_HOST>:<LIGETI_PORT>` (`127.0.0.1:8100` by default). They are thin clients of the shell's JSON
148
+ read API (`GET /runs`, `/runs/:id/trace`, `/runs/:id/steps/:functionId`,
149
+ `/runs/:id/attempts/:attemptId/transcript`).
150
+
151
+ | Command | Prints |
152
+ | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
153
+ | `ligeti runs [--status S] [--workflow W] [--since ISO] [--limit N] [--children] [--cron]` | One line per run, newest first: id, workflow, status, creation time, its parent when it is a child run, and the first line of its error. `--status` and `--workflow` repeat; only root runs unless `--children`; launched runs unless `--cron`, which lists cron runs. |
154
+ | `ligeti trace <runId\|latest-failed>` | The run header, its status event, numbered steps (`#<functionId> <name> <status> <duration>`, with `→ child <id>`, the error and an output preview), its agent attempts and its child runs indented, then one `agent failed:` line (with its `ligeti transcript` command) for every agent attempt whose result is an error — a workflow may handle an agent failure and still finish `SUCCESS` — and last `failed at:` for the deepest failed step. `latest-failed` is the newest root run in `ERROR`, launched or cron. A truncated output names the `GET /runs/<id>/steps/<functionId>` route that returns all of it. |
155
+ | `ligeti transcript <runId> [--attempt <attemptId>] [--raw]` | One agent attempt as `user:` / `assistant:` / `tool <name>(<input>)` / `→ result:` / `→ error:` lines, then the final `result:` and `error:`. Without `--attempt` it takes the newest attempt anywhere in the run's tree and asks the run that owns it. `--raw` prints the transcript file's bytes instead. |
156
+
157
+ `latest-failed` matches only status `ERROR`. For a run that ended `CANCELLED` or
158
+ `MAX_RECOVERY_ATTEMPTS_EXCEEDED`, find it with `ligeti runs --status <status>` and trace its id.
159
+ `GET /runs` lists only the runs of registered applications, whereas `GET /runs/:id/trace` serves any
160
+ run id.
161
+
162
+ Each takes `--json`, which prints the shell's response (pretty-printed) instead of text; `--json`
163
+ and `--raw` cannot be combined.
164
+
165
+ Exit codes: `0` success, `1` any other failure, `2` usage error, a bad query, or a run, attempt or
166
+ failed run that does not exist, `3` the shell could not be reached.
167
+
168
+ ## `ligeti workflows / schema`
169
+
170
+ Two read-only commands that tell you what can be run and with which input. They find the shell the
171
+ same way as the commands above, and take `--json`.
172
+
173
+ | Command | Prints |
174
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
175
+ | `ligeti workflows` | One line per workflow: name, `registered` or `not registered`, and the first line of its description. `--json` prints the response of `GET /workflows`. |
176
+ | `ligeti schema <workflow>` | The workflow's name and description, then one line per input field: name, type, `required` or `optional`, `default: …` and description, with nested object fields indented under their parent. `--json` prints only the input JSON Schema (draft 2020-12) with `additionalProperties: false` added at the top level, so it rejects undeclared keys as `POST /runs` does. |
177
+
178
+ Exit codes are those of `ligeti runs`: an unknown workflow is `2`, one that has not registered yet is `1`.
179
+
180
+ ## `ligeti config`
181
+
182
+ Lists and edits the variables in `.env`, so an operator or an agent never has to open that file:
183
+ `.env` holds credentials, and an agent that greps it prints them into a transcript that outlives the
184
+ session. Agents use `ligeti config` instead of reading `.env` ([ADR-0028](../../adr/0028-env-vars-are-secret-or-public-and-ligeti-config-never-shows-a-secret.md)).
185
+ In a checkout of this repository `ligeti` is not on `PATH`: run it as `pnpm ligeti config …`.
186
+
187
+ | Command | Does |
188
+ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
189
+ | `ligeti config` | One line per known variable: name, source and value. A secret shows only `set`, or nothing when it is unset. |
190
+ | `ligeti config get <NAME>` | A public variable's value; for a secret or an unknown name only `set`. Exits `1` when the variable is unset. |
191
+ | `ligeti config set <NAME> <VALUE>` | Writes a public variable to `.env` after validating it against its settings schema. |
192
+ | `ligeti config set <NAME>` | For a secret: prompts on the terminal with echo off, or reads stdin when it is not a terminal (one trailing newline is stripped). |
193
+ | `ligeti config set --force <NAME>` | Sets a name `ligeti config` does not know, as a secret. |
194
+ | `ligeti config unset <NAME>` | Removes the variable's line from `.env`. |
195
+
196
+ A variable is _secret_ or _public_; one whose sensitivity is unknown is a secret. A secret's value is
197
+ never printed and never accepted on the command line, so it cannot land in shell history or a process
198
+ listing. The known variables are the shell's own and those declared in the manifest of every workflow
199
+ in `LIGETI_WORKFLOWS` with their `configuredBy` settings, which are public; a variable the shell
200
+ derives for each worker, such as `LIGETI_CALLBACK_KEY`, is not known. A workflow that cannot be
201
+ described is reported on stderr and skipped. `LIGETI_CONFIG_DIR` is listed as the process environment
202
+ has it and cannot be set: it locates `.env`, so a `LIGETI_CONFIG_DIR` line in `.env` is reported as
203
+ having no effect.
204
+
205
+ The source column is `process env`, `.env`, `default` or `unset`. The process environment wins over
206
+ `.env`, as it does when the shell starts, and a variable set in both says
207
+ `process env (overrides .env)`; `set` and `unset` warn in that case. `ligeti config` parses `.env`
208
+ itself and never loads it into the process environment.
209
+
210
+ `set` and `unset` rewrite `.env` atomically: every other line and comment stays, a value that needs
211
+ quoting is quoted, and the file keeps its mode (a new file gets `0600`, in a config directory that `set`
212
+ creates with `0700`). They take effect on the next
213
+ shell restart. Exit codes: `0` success, `1` a value that does not validate or a variable that is
214
+ unset, `2` a usage error, an unknown name without `--force`, or a secret given on the command line.
215
+
216
+ ```sh
217
+ ligeti config set LIGETI_PORT 8200
218
+ printf '%s' "$TOKEN" | ligeti config set GITLAB_TOKEN
219
+ ```
220
+
221
+ `.env` is `$LIGETI_CONFIG_DIR/.env` when `LIGETI_CONFIG_DIR` is set in the process environment,
222
+ otherwise `.env` in the per-user config directory (the `LIGETI_CONFIG_DIR` row below); a `.env` in the
223
+ working directory is never read. A missing default config directory means no `.env`; `ligeti serve`
224
+ and `ligeti config set` create it with mode `0700`. Every `ligeti` command that loads `.env`
225
+ resolves it the same way, and relative paths in the shell's settings, whether set in `.env` or in
226
+ the process environment, resolve against the directory holding it.
227
+
228
+ ## Cron entries
229
+
230
+ `ligeti serve` reads the cron file (`LIGETI_CRON_FILE`, default `cron.yaml` in the config directory) and applies
231
+ each entry as a DBOS schedule, so any configured workflow can run on a cron. The default path may be
232
+ absent, which means no cron entries; a file named explicitly by `LIGETI_CRON_FILE` that is absent,
233
+ or a file that is present but invalid, fails startup, naming the file or the entry at fault. The file
234
+ is a map from a free-text entry name to its entry:
235
+
236
+ ```yaml
237
+ <entry name>:
238
+ workflow: <name of a configured workflow>
239
+ schedule: "<cron expression>"
240
+ input: # optional, defaults to {}
241
+ <field>: <value>
242
+ ```
243
+
244
+ Entries are strict: an unknown key, a blank name or one longer than 100 characters, a workflow that is not configured, an input that
245
+ does not match that workflow's input schema, or an invalid cron expression is rejected at startup.
246
+ Each schedule enqueues onto the `runs` queue of the workflow's own application with the entry's
247
+ `input` as the run's input, and does not backfill runs missed while the shell was down.
248
+
249
+ `ligeti cron check [<file>]` runs the same validation without serving, and prints one line per
250
+ problem, each starting with the file's path. Without `<file>` it checks the file the cron file
251
+ settings name; with it, that file, and a file that cannot be read is a problem, except the default
252
+ `cron.yaml`, which may be absent. The file's structure -- its shape, each entry's keys and name, and
253
+ the cron expression -- is checked offline. That each workflow is configured and not `blocked`, and
254
+ that each input matches the workflow's input schema (the one the running worker registered, which can differ from what the next `serve` reads from disk if the workflow changed since), come from the running shell (`--url`, as for the
255
+ other commands); a workflow that has not registered yet has its input left unchecked, with a notice
256
+ on stderr, and a shell that cannot be reached skips these checks with a notice. The exit code is `0`
257
+ when there is no problem, `1` when there is any, and `2` for a usage error.
258
+
259
+ Startup validates every entry, cron expression included, before it changes any schedule, and applies
260
+ all entries in one transaction, so an invalid entry leaves the stored schedules as they were.
261
+ Applying is idempotent: restarting re-applies every entry, updating a changed one in place. An entry
262
+ moved to another workflow replaces the schedule its old workflow owned. An entry removed from the
263
+ file has its schedule deleted at the next startup, so it stops firing -- and so does every schedule
264
+ of a configured workflow when the file is empty. Only schedules owned by a Ligeti
265
+ application (`wf:<workflow>`) are deleted or moved; another application's, and unclaimed ones, are
266
+ left alone, so an entry named like a schedule that belongs to another application fails startup,
267
+ naming the entry and the application that owns it.
268
+
269
+ The Cron runs tab (`GET /cron-runs`) lists the configured entries with when each last fired, then the
270
+ runs the schedules started -- the root runs whose id starts with `sched-` -- in the Runs tab's table,
271
+ with the same `?page=` pagination. They do not appear on the Runs tab.
272
+
273
+ ## Environment variables
274
+
275
+ Parsed by `src/settings.ts` through Zod, per
276
+ [ADR-0003](../../adr/0003-configuration-is-a-settings-module.md).
277
+
278
+ | Variable | Required | Default | Purpose |
279
+ | -------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
280
+ | `LIGETI_CONFIG_DIR` | no | unset (`~/Library/Application Support/ligeti` on macOS, else `$XDG_CONFIG_HOME/ligeti` or `~/.config/ligeti`) | Config directory: holds `.env`, `cron.yaml`, the attest key. Process env only, never `.env`; a relative path resolves against the cwd. |
281
+ | `LIGETI_DATABASE_URL` | yes | — | Postgres connection URL shared with every worker. |
282
+ | `LIGETI_CALLBACK_SECRET` | yes | — | At least 32 characters. Verifies callback tokens delivered to `POST /callbacks/:token`. |
283
+ | `LIGETI_PUBLIC_BASE_URL` | no | `http://<LIGETI_HOST>:<LIGETI_PORT>`, with `127.0.0.1` for a wildcard or unusable host | The shell's own externally reachable base URL, embedded in callback/approval URLs. Set it behind a proxy. |
284
+ | `LIGETI_HOST` | no | `127.0.0.1` | Interface the HTTP server binds to. |
285
+ | `LIGETI_PORT` | no | `8100` | Port the HTTP server listens on. |
286
+ | `LIGETI_WORKFLOWS` | no | default workflows (`attest-and-publish`, `small-factory`, `launch-small-factory`, `github-small-factory`, `launch-github-small-factory`), dependencies of the shell. | Comma-separated workflow package directories; replaces the default list. Relative paths resolve against the directory holding `.env`. |
287
+ | `LIGETI_ARGUS_URL` | no | unset | Optional dbos-argus URL, surfaced to the UI. |
288
+ | `LIGETI_STATE_DIR` | no | `<config directory>/state` with `LIGETI_CONFIG_DIR`; else `~/Library/Application Support/ligeti/state` (macOS) or `${XDG_STATE_HOME:-~/.local/state}/ligeti` | State directory, shared with every worker; created with mode `0700`. Relative paths resolve against the directory holding `.env`. |
289
+ | `XDG_CONFIG_HOME` / `XDG_STATE_HOME` | no | unset | On Linux, the base of the default config / state directory. Ignored on macOS and when not absolute; process env only, never `.env`. |
290
+ | `LIGETI_CRON_FILE` | no | `cron.yaml` in the config directory | Cron entries applied at `serve` startup; the default may be absent, a named file may not (see Cron entries). A relative path resolves against `.env`'s dir. |
291
+ | `LIGETI_SUPERVISOR_INITIAL_BACKOFF_MS` | no | unset (Supervisor's own default) | Test-only escape hatch (see below); not meant for production tuning. |
292
+ | `LIGETI_ATTEST_SECRET` | no* | unset | At least 32 characters. Signing secret for `POST /attest`. |
293
+ | `LIGETI_ATTEST_KEY_FILE` | no* | unset | Path to the attestation signing key file. |
294
+ | `LIGETI_STEP_<NAME>_ENV` | no | unset | A step's own setting, e.g. `LIGETI_STEP_UAT_ENV`: comma-separated env var names the shell also forwards (see below). |
295
+
296
+ `*` `LIGETI_ATTEST_SECRET` and `LIGETI_ATTEST_KEY_FILE` must be set together or not at all —
297
+ setting only one fails startup, since attestation is either fully configured or fully disabled,
298
+ never half-configured.
299
+
300
+ `LIGETI_SUPERVISOR_INITIAL_BACKOFF_MS` is passed straight through to the Supervisor's own
301
+ `timings.initialBackoffMs`; unset keeps the Supervisor's default. It exists for tests that need a
302
+ worker _not_ to respawn within some observation window — for example an acceptance test proving that
303
+ cleanup came from the reaper, not from a just-restarted worker. That is why `.env.example` does not
304
+ list it.
305
+
306
+ `LIGETI_CALLBACK_SECRET` stays in the shell's own process and is never placed in a spawned worker's
307
+ environment. Each worker instead receives `LIGETI_CALLBACK_KEY`, derived from it per worker, so a
308
+ worker can mint and verify its own callback tokens without holding the secret they are derived
309
+ from. `src/child-env.ts` derives it; `packages/sdk`'s `settings.ts` is what reads it back.
310
+
311
+ ## Installing a third-party workflow package
312
+
313
+ A workflow package published to an npm registry is installed outside the Ligeti repository and
314
+ added to `LIGETI_WORKFLOWS`.
315
+
316
+ 1. Pick an install directory outside the repository, e.g. `~/.ligeti/workflows/`. Put a
317
+ `package.json` in it that pins the workflow package at an exact version (`"1.2.3"`, not a range):
318
+
319
+ ```json
320
+ {
321
+ "private": true,
322
+ "dependencies": { "@acme/workflow-example": "1.2.3" }
323
+ }
324
+ ```
325
+
326
+ 2. If your own scopes live on a private registry, put an `.npmrc` next to it that maps each scope
327
+ to its registry, with the token given as an `${ENV_VAR}` reference and never as a literal.
328
+ `@ligeti/*` packages come from npmjs.org and need no mapping:
329
+
330
+ ```text
331
+ @acme:registry=https://registry.example.com/npm/
332
+ //registry.example.com/npm/:_authToken=${ACME_REGISTRY_TOKEN}
333
+ ```
334
+
335
+ 3. Run `npm install` there, with any token variables your own scopes need set.
336
+ 4. Add the installed package directory, `<install dir>/node_modules/<package name>`, to
337
+ `LIGETI_WORKFLOWS` with `ligeti config set LIGETI_WORKFLOWS <list>`, as absolute paths: `~` is
338
+ not expanded, so write out the home directory. Setting it replaces the default list, so list
339
+ every workflow package you want the shell to run. Run `ligeti config get LIGETI_WORKFLOWS` first
340
+ to see the current list.
341
+ 5. Restart the shell.
342
+
343
+ The workflow package's installed `@ligeti/sdk` major version must equal the shell's, or the shell
344
+ fails at startup. A Ligeti upgrade that bumps the SDK major version therefore requires reinstalling
345
+ a matching workflow package version.
346
+
347
+ To upgrade, run `npm install --save-exact <package>@<version>` in the install directory and restart
348
+ the shell.
349
+ Per [ADR-0016](../../adr/0016-the-dbos-sdk-version-is-pinned.md), the version
350
+ guard refuses to start a worker over parked runs of a different code hash, so drain or cancel
351
+ those runs first.
352
+
353
+ ## What reaches a worker
354
+
355
+ `src/child-env.ts` builds every child's environment from an explicit list, per
356
+ [ADR-0027](../../adr/0027-steps-declare-env-var-requirements.md). A worker and the reaper that
357
+ cleans up its runs get the SDK's base list, every `LIGETI_*` variable and the env vars the workflow
358
+ declares, computed from the manifest: its own declaration, its steps' and its child workflows'. A
359
+ step's `configuredBy` setting, a `LIGETI_STEP_<NAME>_ENV` variable in the shell's environment,
360
+ adds the names it lists as optional; a value that is not a comma-separated list of env var names
361
+ fails startup. `ligeti-worker describe` gets the base list only.
362
+
363
+ The shell's own `LIGETI_ATTEST_SECRET`, `LIGETI_ATTEST_KEY_FILE`, `LIGETI_CALLBACK_SECRET`,
364
+ `LIGETI_DATABASE_URL` and the keys derived from them are never forwarded, whatever a workflow
365
+ declares (`SHELL_ENV_DENYLIST`), nor is `LIGETI_TEST_DATABASE_URL`; the shell sets each worker's
366
+ database URL and derived keys itself.
367
+
368
+ A required env var that is unset or empty in the shell's environment, or on the denylist, blocks the
369
+ worker: it is not spawned and not retried, and `/workers` shows it as `blocked` with the missing
370
+ names. Fix the environment and restart the shell.
@@ -0,0 +1,3 @@
1
+ export declare function deriveAttestKey(masterSecret: string, app: string): string;
2
+ export declare function bearerKeyMatches(header: string | undefined, expectedKeyHex: string): boolean;
3
+ //# sourceMappingURL=attest-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attest-key.d.ts","sourceRoot":"","sources":["../src/attest-key.ts"],"names":[],"mappings":"AAMA,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAe5F"}
@@ -0,0 +1,24 @@
1
+ // ABOUTME: The credential a worker authenticates to POST /attest with: per-app key derivation
2
+ // ABOUTME: from the shell's attest master secret, and the constant-time bearer header comparison.
3
+ import { createHmac, timingSafeEqual } from "node:crypto";
4
+ const ATTEST_KEY_DOMAIN = "ligeti-attest-key-v1";
5
+ export function deriveAttestKey(masterSecret, app) {
6
+ return createHmac("sha256", masterSecret).update(`${ATTEST_KEY_DOMAIN}:${app}`).digest("hex");
7
+ }
8
+ export function bearerKeyMatches(header, expectedKeyHex) {
9
+ if (header === undefined) {
10
+ return false;
11
+ }
12
+ const match = /^Bearer (.+)$/.exec(header);
13
+ const token = match?.[1];
14
+ if (token === undefined) {
15
+ return false;
16
+ }
17
+ const provided = Buffer.from(token, "utf8");
18
+ const expected = Buffer.from(expectedKeyHex, "utf8");
19
+ if (provided.length !== expected.length) {
20
+ return false;
21
+ }
22
+ return timingSafeEqual(provided, expected);
23
+ }
24
+ //# sourceMappingURL=attest-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attest-key.js","sourceRoot":"","sources":["../src/attest-key.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,kGAAkG;AAClG,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AAEjD,MAAM,UAAU,eAAe,CAAC,YAAoB,EAAE,GAAW;IAC/D,OAAO,UAAU,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,MAAM,CAAC,GAAG,iBAAiB,IAAI,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAA0B,EAAE,cAAsB;IACjF,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACrD,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC"}