@runa-ai/runa-cli 0.5.26

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 (615) hide show
  1. package/dist/cli/contract-mode.d.ts +2 -0
  2. package/dist/cli/contract-mode.d.ts.map +1 -0
  3. package/dist/cli/contract-output.d.ts +4 -0
  4. package/dist/cli/contract-output.d.ts.map +1 -0
  5. package/dist/cli/early-flags.d.ts +10 -0
  6. package/dist/cli/early-flags.d.ts.map +1 -0
  7. package/dist/cli/error-handler.d.ts +28 -0
  8. package/dist/cli/error-handler.d.ts.map +1 -0
  9. package/dist/cli/exec.d.ts +15 -0
  10. package/dist/cli/exec.d.ts.map +1 -0
  11. package/dist/cli/index.d.ts +16 -0
  12. package/dist/cli/index.d.ts.map +1 -0
  13. package/dist/cli/json-output.d.ts +4 -0
  14. package/dist/cli/json-output.d.ts.map +1 -0
  15. package/dist/cli/non-interactive.d.ts +4 -0
  16. package/dist/cli/non-interactive.d.ts.map +1 -0
  17. package/dist/cli/output-format.d.ts +5 -0
  18. package/dist/cli/output-format.d.ts.map +1 -0
  19. package/dist/cli/signal-handler.d.ts +32 -0
  20. package/dist/cli/signal-handler.d.ts.map +1 -0
  21. package/dist/commands/build/actors/build.d.ts +32 -0
  22. package/dist/commands/build/actors/build.d.ts.map +1 -0
  23. package/dist/commands/build/actors/clean.d.ts +36 -0
  24. package/dist/commands/build/actors/clean.d.ts.map +1 -0
  25. package/dist/commands/build/actors/db-sync.d.ts +30 -0
  26. package/dist/commands/build/actors/db-sync.d.ts.map +1 -0
  27. package/dist/commands/build/actors/index.d.ts +20 -0
  28. package/dist/commands/build/actors/index.d.ts.map +1 -0
  29. package/dist/commands/build/actors/manifest.d.ts +34 -0
  30. package/dist/commands/build/actors/manifest.d.ts.map +1 -0
  31. package/dist/commands/build/actors/setup.d.ts +74 -0
  32. package/dist/commands/build/actors/setup.d.ts.map +1 -0
  33. package/dist/commands/build/actors/static-checks.d.ts +36 -0
  34. package/dist/commands/build/actors/static-checks.d.ts.map +1 -0
  35. package/dist/commands/build/actors/validate.d.ts +28 -0
  36. package/dist/commands/build/actors/validate.d.ts.map +1 -0
  37. package/dist/commands/build/commands/build.d.ts +25 -0
  38. package/dist/commands/build/commands/build.d.ts.map +1 -0
  39. package/dist/commands/build/contract.d.ts +213 -0
  40. package/dist/commands/build/contract.d.ts.map +1 -0
  41. package/dist/commands/build/guards.d.ts +106 -0
  42. package/dist/commands/build/guards.d.ts.map +1 -0
  43. package/dist/commands/build/index.d.ts +9 -0
  44. package/dist/commands/build/index.d.ts.map +1 -0
  45. package/dist/commands/build/machine.d.ts +212 -0
  46. package/dist/commands/build/machine.d.ts.map +1 -0
  47. package/dist/commands/build/types.d.ts +75 -0
  48. package/dist/commands/build/types.d.ts.map +1 -0
  49. package/dist/commands/cache.d.ts +32 -0
  50. package/dist/commands/cache.d.ts.map +1 -0
  51. package/dist/commands/check/commands/check.d.ts +26 -0
  52. package/dist/commands/check/commands/check.d.ts.map +1 -0
  53. package/dist/commands/check/index.d.ts +24 -0
  54. package/dist/commands/check/index.d.ts.map +1 -0
  55. package/dist/commands/ci/commands/ci-checks.d.ts +14 -0
  56. package/dist/commands/ci/commands/ci-checks.d.ts.map +1 -0
  57. package/dist/commands/ci/commands/ci-layer-content.d.ts +40 -0
  58. package/dist/commands/ci/commands/ci-layer-content.d.ts.map +1 -0
  59. package/dist/commands/ci/commands/ci-pr-capabilities.d.ts +30 -0
  60. package/dist/commands/ci/commands/ci-pr-capabilities.d.ts.map +1 -0
  61. package/dist/commands/ci/commands/ci-prod-apply.d.ts +10 -0
  62. package/dist/commands/ci/commands/ci-prod-apply.d.ts.map +1 -0
  63. package/dist/commands/ci/commands/ci-prod-db-operations.d.ts +98 -0
  64. package/dist/commands/ci/commands/ci-prod-db-operations.d.ts.map +1 -0
  65. package/dist/commands/ci/commands/ci-prod-github.d.ts +28 -0
  66. package/dist/commands/ci/commands/ci-prod-github.d.ts.map +1 -0
  67. package/dist/commands/ci/commands/ci-prod-utils.d.ts +33 -0
  68. package/dist/commands/ci/commands/ci-prod-utils.d.ts.map +1 -0
  69. package/dist/commands/ci/commands/ci-resolvers.d.ts +71 -0
  70. package/dist/commands/ci/commands/ci-resolvers.d.ts.map +1 -0
  71. package/dist/commands/ci/commands/ci-static.d.ts +18 -0
  72. package/dist/commands/ci/commands/ci-static.d.ts.map +1 -0
  73. package/dist/commands/ci/commands/ci-supabase-local.d.ts +51 -0
  74. package/dist/commands/ci/commands/ci-supabase-local.d.ts.map +1 -0
  75. package/dist/commands/ci/index.d.ts +23 -0
  76. package/dist/commands/ci/index.d.ts.map +1 -0
  77. package/dist/commands/ci/machine/actors/build/app-build.d.ts +31 -0
  78. package/dist/commands/ci/machine/actors/build/app-build.d.ts.map +1 -0
  79. package/dist/commands/ci/machine/actors/build/app-start.d.ts +47 -0
  80. package/dist/commands/ci/machine/actors/build/app-start.d.ts.map +1 -0
  81. package/dist/commands/ci/machine/actors/build/build-and-playwright.d.ts +41 -0
  82. package/dist/commands/ci/machine/actors/build/build-and-playwright.d.ts.map +1 -0
  83. package/dist/commands/ci/machine/actors/build/index.d.ts +12 -0
  84. package/dist/commands/ci/machine/actors/build/index.d.ts.map +1 -0
  85. package/dist/commands/ci/machine/actors/build/playwright-install.d.ts +30 -0
  86. package/dist/commands/ci/machine/actors/build/playwright-install.d.ts.map +1 -0
  87. package/dist/commands/ci/machine/actors/build/static-checks.d.ts +35 -0
  88. package/dist/commands/ci/machine/actors/build/static-checks.d.ts.map +1 -0
  89. package/dist/commands/ci/machine/actors/db/apply-seeds.d.ts +32 -0
  90. package/dist/commands/ci/machine/actors/db/apply-seeds.d.ts.map +1 -0
  91. package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts +38 -0
  92. package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts.map +1 -0
  93. package/dist/commands/ci/machine/actors/db/index.d.ts +16 -0
  94. package/dist/commands/ci/machine/actors/db/index.d.ts.map +1 -0
  95. package/dist/commands/ci/machine/actors/db/pgtap-install.d.ts +33 -0
  96. package/dist/commands/ci/machine/actors/db/pgtap-install.d.ts.map +1 -0
  97. package/dist/commands/ci/machine/actors/db/production-preview.d.ts +34 -0
  98. package/dist/commands/ci/machine/actors/db/production-preview.d.ts.map +1 -0
  99. package/dist/commands/ci/machine/actors/db/pull-production.d.ts +35 -0
  100. package/dist/commands/ci/machine/actors/db/pull-production.d.ts.map +1 -0
  101. package/dist/commands/ci/machine/actors/db/reset.d.ts +31 -0
  102. package/dist/commands/ci/machine/actors/db/reset.d.ts.map +1 -0
  103. package/dist/commands/ci/machine/actors/db/schema-stats.d.ts +141 -0
  104. package/dist/commands/ci/machine/actors/db/schema-stats.d.ts.map +1 -0
  105. package/dist/commands/ci/machine/actors/db/setup-roles.d.ts +37 -0
  106. package/dist/commands/ci/machine/actors/db/setup-roles.d.ts.map +1 -0
  107. package/dist/commands/ci/machine/actors/db/sync-schema.d.ts +48 -0
  108. package/dist/commands/ci/machine/actors/db/sync-schema.d.ts.map +1 -0
  109. package/dist/commands/ci/machine/actors/finalize/github.d.ts +66 -0
  110. package/dist/commands/ci/machine/actors/finalize/github.d.ts.map +1 -0
  111. package/dist/commands/ci/machine/actors/finalize/index.d.ts +9 -0
  112. package/dist/commands/ci/machine/actors/finalize/index.d.ts.map +1 -0
  113. package/dist/commands/ci/machine/actors/finalize/summary.d.ts +32 -0
  114. package/dist/commands/ci/machine/actors/finalize/summary.d.ts.map +1 -0
  115. package/dist/commands/ci/machine/actors/index.d.ts +17 -0
  116. package/dist/commands/ci/machine/actors/index.d.ts.map +1 -0
  117. package/dist/commands/ci/machine/actors/setup/index.d.ts +10 -0
  118. package/dist/commands/ci/machine/actors/setup/index.d.ts.map +1 -0
  119. package/dist/commands/ci/machine/actors/setup/local.d.ts +41 -0
  120. package/dist/commands/ci/machine/actors/setup/local.d.ts.map +1 -0
  121. package/dist/commands/ci/machine/actors/setup/pr-common.d.ts +145 -0
  122. package/dist/commands/ci/machine/actors/setup/pr-common.d.ts.map +1 -0
  123. package/dist/commands/ci/machine/actors/setup/pr-local.d.ts +17 -0
  124. package/dist/commands/ci/machine/actors/setup/pr-local.d.ts.map +1 -0
  125. package/dist/commands/ci/machine/actors/test/capabilities.d.ts +66 -0
  126. package/dist/commands/ci/machine/actors/test/capabilities.d.ts.map +1 -0
  127. package/dist/commands/ci/machine/actors/test/index.d.ts +9 -0
  128. package/dist/commands/ci/machine/actors/test/index.d.ts.map +1 -0
  129. package/dist/commands/ci/machine/actors/test/run-layers.d.ts +43 -0
  130. package/dist/commands/ci/machine/actors/test/run-layers.d.ts.map +1 -0
  131. package/dist/commands/ci/machine/commands/ci-local.d.ts +18 -0
  132. package/dist/commands/ci/machine/commands/ci-local.d.ts.map +1 -0
  133. package/dist/commands/ci/machine/commands/ci-pr.d.ts +14 -0
  134. package/dist/commands/ci/machine/commands/ci-pr.d.ts.map +1 -0
  135. package/dist/commands/ci/machine/commands/index.d.ts +13 -0
  136. package/dist/commands/ci/machine/commands/index.d.ts.map +1 -0
  137. package/dist/commands/ci/machine/commands/machine-runner.d.ts +36 -0
  138. package/dist/commands/ci/machine/commands/machine-runner.d.ts.map +1 -0
  139. package/dist/commands/ci/machine/contract.d.ts +393 -0
  140. package/dist/commands/ci/machine/contract.d.ts.map +1 -0
  141. package/dist/commands/ci/machine/formatters/github-comment-types.d.ts +87 -0
  142. package/dist/commands/ci/machine/formatters/github-comment-types.d.ts.map +1 -0
  143. package/dist/commands/ci/machine/formatters/github-comment.d.ts +44 -0
  144. package/dist/commands/ci/machine/formatters/github-comment.d.ts.map +1 -0
  145. package/dist/commands/ci/machine/formatters/index.d.ts +13 -0
  146. package/dist/commands/ci/machine/formatters/index.d.ts.map +1 -0
  147. package/dist/commands/ci/machine/formatters/sections/final-comment.d.ts +18 -0
  148. package/dist/commands/ci/machine/formatters/sections/final-comment.d.ts.map +1 -0
  149. package/dist/commands/ci/machine/formatters/sections/format-helpers.d.ts +63 -0
  150. package/dist/commands/ci/machine/formatters/sections/format-helpers.d.ts.map +1 -0
  151. package/dist/commands/ci/machine/formatters/sections/index.d.ts +10 -0
  152. package/dist/commands/ci/machine/formatters/sections/index.d.ts.map +1 -0
  153. package/dist/commands/ci/machine/formatters/sections/progress-comment.d.ts +14 -0
  154. package/dist/commands/ci/machine/formatters/sections/progress-comment.d.ts.map +1 -0
  155. package/dist/commands/ci/machine/formatters/sections/schema-matrix.d.ts +25 -0
  156. package/dist/commands/ci/machine/formatters/sections/schema-matrix.d.ts.map +1 -0
  157. package/dist/commands/ci/machine/formatters/summary.d.ts +27 -0
  158. package/dist/commands/ci/machine/formatters/summary.d.ts.map +1 -0
  159. package/dist/commands/ci/machine/guards.d.ts +136 -0
  160. package/dist/commands/ci/machine/guards.d.ts.map +1 -0
  161. package/dist/commands/ci/machine/helpers.d.ts +88 -0
  162. package/dist/commands/ci/machine/helpers.d.ts.map +1 -0
  163. package/dist/commands/ci/machine/index.d.ts +21 -0
  164. package/dist/commands/ci/machine/index.d.ts.map +1 -0
  165. package/dist/commands/ci/machine/machine.d.ts +315 -0
  166. package/dist/commands/ci/machine/machine.d.ts.map +1 -0
  167. package/dist/commands/ci/machine/types.d.ts +264 -0
  168. package/dist/commands/ci/machine/types.d.ts.map +1 -0
  169. package/dist/commands/ci/utils/ai-report.d.ts +70 -0
  170. package/dist/commands/ci/utils/ai-report.d.ts.map +1 -0
  171. package/dist/commands/ci/utils/app-process.d.ts +29 -0
  172. package/dist/commands/ci/utils/app-process.d.ts.map +1 -0
  173. package/dist/commands/ci/utils/app-runtime.d.ts +27 -0
  174. package/dist/commands/ci/utils/app-runtime.d.ts.map +1 -0
  175. package/dist/commands/ci/utils/ci-config.d.ts +22 -0
  176. package/dist/commands/ci/utils/ci-config.d.ts.map +1 -0
  177. package/dist/commands/ci/utils/ci-env-schema.d.ts +128 -0
  178. package/dist/commands/ci/utils/ci-env-schema.d.ts.map +1 -0
  179. package/dist/commands/ci/utils/ci-logging.d.ts +16 -0
  180. package/dist/commands/ci/utils/ci-logging.d.ts.map +1 -0
  181. package/dist/commands/ci/utils/ci-summary.d.ts +109 -0
  182. package/dist/commands/ci/utils/ci-summary.d.ts.map +1 -0
  183. package/dist/commands/ci/utils/config-readers.d.ts +46 -0
  184. package/dist/commands/ci/utils/config-readers.d.ts.map +1 -0
  185. package/dist/commands/ci/utils/db-url-utils.d.ts +81 -0
  186. package/dist/commands/ci/utils/db-url-utils.d.ts.map +1 -0
  187. package/dist/commands/ci/utils/e2e-auth-setup.d.ts +78 -0
  188. package/dist/commands/ci/utils/e2e-auth-setup.d.ts.map +1 -0
  189. package/dist/commands/ci/utils/execa-helpers.d.ts +14 -0
  190. package/dist/commands/ci/utils/execa-helpers.d.ts.map +1 -0
  191. package/dist/commands/ci/utils/exit-code-computation.d.ts +62 -0
  192. package/dist/commands/ci/utils/exit-code-computation.d.ts.map +1 -0
  193. package/dist/commands/ci/utils/github-api.d.ts +54 -0
  194. package/dist/commands/ci/utils/github-api.d.ts.map +1 -0
  195. package/dist/commands/ci/utils/github.d.ts +43 -0
  196. package/dist/commands/ci/utils/github.d.ts.map +1 -0
  197. package/dist/commands/ci/utils/index.d.ts +25 -0
  198. package/dist/commands/ci/utils/index.d.ts.map +1 -0
  199. package/dist/commands/ci/utils/pgtap-installer.d.ts +34 -0
  200. package/dist/commands/ci/utils/pgtap-installer.d.ts.map +1 -0
  201. package/dist/commands/ci/utils/rls-verification.d.ts +72 -0
  202. package/dist/commands/ci/utils/rls-verification.d.ts.map +1 -0
  203. package/dist/commands/ci/utils/schema-operations.d.ts +42 -0
  204. package/dist/commands/ci/utils/schema-operations.d.ts.map +1 -0
  205. package/dist/commands/ci/utils/seed-operations.d.ts +101 -0
  206. package/dist/commands/ci/utils/seed-operations.d.ts.map +1 -0
  207. package/dist/commands/ci/utils/test-parallel.d.ts +45 -0
  208. package/dist/commands/ci/utils/test-parallel.d.ts.map +1 -0
  209. package/dist/commands/ci/utils/timestamp-invariants.d.ts +13 -0
  210. package/dist/commands/ci/utils/timestamp-invariants.d.ts.map +1 -0
  211. package/dist/commands/db/apply/actors.d.ts +42 -0
  212. package/dist/commands/db/apply/actors.d.ts.map +1 -0
  213. package/dist/commands/db/apply/contract.d.ts +64 -0
  214. package/dist/commands/db/apply/contract.d.ts.map +1 -0
  215. package/dist/commands/db/apply/helpers/advisory-lock.d.ts +18 -0
  216. package/dist/commands/db/apply/helpers/advisory-lock.d.ts.map +1 -0
  217. package/dist/commands/db/apply/helpers/index.d.ts +11 -0
  218. package/dist/commands/db/apply/helpers/index.d.ts.map +1 -0
  219. package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts +122 -0
  220. package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts.map +1 -0
  221. package/dist/commands/db/apply/helpers/retry-logic.d.ts +51 -0
  222. package/dist/commands/db/apply/helpers/retry-logic.d.ts.map +1 -0
  223. package/dist/commands/db/apply/index.d.ts +9 -0
  224. package/dist/commands/db/apply/index.d.ts.map +1 -0
  225. package/dist/commands/db/apply/machine.d.ts +126 -0
  226. package/dist/commands/db/apply/machine.d.ts.map +1 -0
  227. package/dist/commands/db/commands/db-apply.d.ts +6 -0
  228. package/dist/commands/db/commands/db-apply.d.ts.map +1 -0
  229. package/dist/commands/db/commands/db-audit.d.ts +13 -0
  230. package/dist/commands/db/commands/db-audit.d.ts.map +1 -0
  231. package/dist/commands/db/commands/db-backup.d.ts +18 -0
  232. package/dist/commands/db/commands/db-backup.d.ts.map +1 -0
  233. package/dist/commands/db/commands/db-cleanup.d.ts +3 -0
  234. package/dist/commands/db/commands/db-cleanup.d.ts.map +1 -0
  235. package/dist/commands/db/commands/db-derive-role-passwords.d.ts +18 -0
  236. package/dist/commands/db/commands/db-derive-role-passwords.d.ts.map +1 -0
  237. package/dist/commands/db/commands/db-derive-urls.d.ts +14 -0
  238. package/dist/commands/db/commands/db-derive-urls.d.ts.map +1 -0
  239. package/dist/commands/db/commands/db-diagram.d.ts +21 -0
  240. package/dist/commands/db/commands/db-diagram.d.ts.map +1 -0
  241. package/dist/commands/db/commands/db-drizzle.d.ts +17 -0
  242. package/dist/commands/db/commands/db-drizzle.d.ts.map +1 -0
  243. package/dist/commands/db/commands/db-extension.d.ts +16 -0
  244. package/dist/commands/db/commands/db-extension.d.ts.map +1 -0
  245. package/dist/commands/db/commands/db-generate-password.d.ts +19 -0
  246. package/dist/commands/db/commands/db-generate-password.d.ts.map +1 -0
  247. package/dist/commands/db/commands/db-lifecycle.d.ts +43 -0
  248. package/dist/commands/db/commands/db-lifecycle.d.ts.map +1 -0
  249. package/dist/commands/db/commands/db-rollback.d.ts +17 -0
  250. package/dist/commands/db/commands/db-rollback.d.ts.map +1 -0
  251. package/dist/commands/db/commands/db-schema.d.ts +51 -0
  252. package/dist/commands/db/commands/db-schema.d.ts.map +1 -0
  253. package/dist/commands/db/commands/db-seed-metadata.d.ts +20 -0
  254. package/dist/commands/db/commands/db-seed-metadata.d.ts.map +1 -0
  255. package/dist/commands/db/commands/db-seed-verify.d.ts +13 -0
  256. package/dist/commands/db/commands/db-seed-verify.d.ts.map +1 -0
  257. package/dist/commands/db/commands/db-seed.d.ts +32 -0
  258. package/dist/commands/db/commands/db-seed.d.ts.map +1 -0
  259. package/dist/commands/db/commands/db-snapshot.d.ts +12 -0
  260. package/dist/commands/db/commands/db-snapshot.d.ts.map +1 -0
  261. package/dist/commands/db/commands/db-stack.d.ts +17 -0
  262. package/dist/commands/db/commands/db-stack.d.ts.map +1 -0
  263. package/dist/commands/db/commands/db-stats.d.ts +15 -0
  264. package/dist/commands/db/commands/db-stats.d.ts.map +1 -0
  265. package/dist/commands/db/commands/db-sync.d.ts +3 -0
  266. package/dist/commands/db/commands/db-sync.d.ts.map +1 -0
  267. package/dist/commands/db/commands/db-test.d.ts +27 -0
  268. package/dist/commands/db/commands/db-test.d.ts.map +1 -0
  269. package/dist/commands/db/constants.d.ts +97 -0
  270. package/dist/commands/db/constants.d.ts.map +1 -0
  271. package/dist/commands/db/extension-registry.d.ts +81 -0
  272. package/dist/commands/db/extension-registry.d.ts.map +1 -0
  273. package/dist/commands/db/index.d.ts +17 -0
  274. package/dist/commands/db/index.d.ts.map +1 -0
  275. package/dist/commands/db/preflight/actors.d.ts +6 -0
  276. package/dist/commands/db/preflight/actors.d.ts.map +1 -0
  277. package/dist/commands/db/preflight/contract.d.ts +53 -0
  278. package/dist/commands/db/preflight/contract.d.ts.map +1 -0
  279. package/dist/commands/db/preflight/index.d.ts +3 -0
  280. package/dist/commands/db/preflight/index.d.ts.map +1 -0
  281. package/dist/commands/db/sync/actors.d.ts +93 -0
  282. package/dist/commands/db/sync/actors.d.ts.map +1 -0
  283. package/dist/commands/db/sync/contract.d.ts +155 -0
  284. package/dist/commands/db/sync/contract.d.ts.map +1 -0
  285. package/dist/commands/db/sync/index.d.ts +10 -0
  286. package/dist/commands/db/sync/index.d.ts.map +1 -0
  287. package/dist/commands/db/sync/machine.d.ts +159 -0
  288. package/dist/commands/db/sync/machine.d.ts.map +1 -0
  289. package/dist/commands/db/types.d.ts +107 -0
  290. package/dist/commands/db/types.d.ts.map +1 -0
  291. package/dist/commands/db/utils/db-target.d.ts +53 -0
  292. package/dist/commands/db/utils/db-target.d.ts.map +1 -0
  293. package/dist/commands/db/utils/db-url-builder.d.ts +34 -0
  294. package/dist/commands/db/utils/db-url-builder.d.ts.map +1 -0
  295. package/dist/commands/db/utils/error-handlers.d.ts +17 -0
  296. package/dist/commands/db/utils/error-handlers.d.ts.map +1 -0
  297. package/dist/commands/db/utils/preflight-check.d.ts +20 -0
  298. package/dist/commands/db/utils/preflight-check.d.ts.map +1 -0
  299. package/dist/commands/db/utils/psql.d.ts +17 -0
  300. package/dist/commands/db/utils/psql.d.ts.map +1 -0
  301. package/dist/commands/db/utils/schema-detector.d.ts +32 -0
  302. package/dist/commands/db/utils/schema-detector.d.ts.map +1 -0
  303. package/dist/commands/db/utils/schema-sync.d.ts +59 -0
  304. package/dist/commands/db/utils/schema-sync.d.ts.map +1 -0
  305. package/dist/commands/db/utils/script-runner.d.ts +34 -0
  306. package/dist/commands/db/utils/script-runner.d.ts.map +1 -0
  307. package/dist/commands/db/utils/seed-manager.d.ts +23 -0
  308. package/dist/commands/db/utils/seed-manager.d.ts.map +1 -0
  309. package/dist/commands/db/utils/semantic-mapper.d.ts +119 -0
  310. package/dist/commands/db/utils/semantic-mapper.d.ts.map +1 -0
  311. package/dist/commands/db/utils/sql-table-extractor.d.ts +56 -0
  312. package/dist/commands/db/utils/sql-table-extractor.d.ts.map +1 -0
  313. package/dist/commands/db/utils/stack-detector.d.ts +34 -0
  314. package/dist/commands/db/utils/stack-detector.d.ts.map +1 -0
  315. package/dist/commands/db/utils/table-registry.d.ts +112 -0
  316. package/dist/commands/db/utils/table-registry.d.ts.map +1 -0
  317. package/dist/commands/dev/actors/index.d.ts +14 -0
  318. package/dist/commands/dev/actors/index.d.ts.map +1 -0
  319. package/dist/commands/dev/commands/dev.d.ts +15 -0
  320. package/dist/commands/dev/commands/dev.d.ts.map +1 -0
  321. package/dist/commands/dev/contract.d.ts +46 -0
  322. package/dist/commands/dev/contract.d.ts.map +1 -0
  323. package/dist/commands/dev/guards.d.ts +26 -0
  324. package/dist/commands/dev/guards.d.ts.map +1 -0
  325. package/dist/commands/dev/machine.d.ts +121 -0
  326. package/dist/commands/dev/machine.d.ts.map +1 -0
  327. package/dist/commands/dev/types.d.ts +44 -0
  328. package/dist/commands/dev/types.d.ts.map +1 -0
  329. package/dist/commands/env/commands/env-check.d.ts +24 -0
  330. package/dist/commands/env/commands/env-check.d.ts.map +1 -0
  331. package/dist/commands/env/commands/env-encrypt.d.ts +19 -0
  332. package/dist/commands/env/commands/env-encrypt.d.ts.map +1 -0
  333. package/dist/commands/env/commands/env-pull.d.ts +49 -0
  334. package/dist/commands/env/commands/env-pull.d.ts.map +1 -0
  335. package/dist/commands/env/commands/env-setup.d.ts +51 -0
  336. package/dist/commands/env/commands/env-setup.d.ts.map +1 -0
  337. package/dist/commands/env/commands/env-sync.d.ts +18 -0
  338. package/dist/commands/env/commands/env-sync.d.ts.map +1 -0
  339. package/dist/commands/env/commands/setup/action.d.ts +18 -0
  340. package/dist/commands/env/commands/setup/action.d.ts.map +1 -0
  341. package/dist/commands/env/commands/setup/auth.d.ts +25 -0
  342. package/dist/commands/env/commands/setup/auth.d.ts.map +1 -0
  343. package/dist/commands/env/commands/setup/file-export.d.ts +20 -0
  344. package/dist/commands/env/commands/setup/file-export.d.ts.map +1 -0
  345. package/dist/commands/env/commands/setup/github-api.d.ts +17 -0
  346. package/dist/commands/env/commands/setup/github-api.d.ts.map +1 -0
  347. package/dist/commands/env/commands/setup/helpers.d.ts +117 -0
  348. package/dist/commands/env/commands/setup/helpers.d.ts.map +1 -0
  349. package/dist/commands/env/commands/setup/index.d.ts +16 -0
  350. package/dist/commands/env/commands/setup/index.d.ts.map +1 -0
  351. package/dist/commands/env/commands/setup/parsers.d.ts +66 -0
  352. package/dist/commands/env/commands/setup/parsers.d.ts.map +1 -0
  353. package/dist/commands/env/commands/setup/prompts.d.ts +41 -0
  354. package/dist/commands/env/commands/setup/prompts.d.ts.map +1 -0
  355. package/dist/commands/env/commands/setup/supabase-api.d.ts +30 -0
  356. package/dist/commands/env/commands/setup/supabase-api.d.ts.map +1 -0
  357. package/dist/commands/env/commands/setup/types.d.ts +105 -0
  358. package/dist/commands/env/commands/setup/types.d.ts.map +1 -0
  359. package/dist/commands/env/commands/setup/vercel-api.d.ts +34 -0
  360. package/dist/commands/env/commands/setup/vercel-api.d.ts.map +1 -0
  361. package/dist/commands/env/constants/local-supabase.d.ts +43 -0
  362. package/dist/commands/env/constants/local-supabase.d.ts.map +1 -0
  363. package/dist/commands/env/index.d.ts +14 -0
  364. package/dist/commands/env/index.d.ts.map +1 -0
  365. package/dist/commands/hotfix/actors.d.ts +88 -0
  366. package/dist/commands/hotfix/actors.d.ts.map +1 -0
  367. package/dist/commands/hotfix/commands/hotfix-complete.d.ts +23 -0
  368. package/dist/commands/hotfix/commands/hotfix-complete.d.ts.map +1 -0
  369. package/dist/commands/hotfix/commands/hotfix-create.d.ts +23 -0
  370. package/dist/commands/hotfix/commands/hotfix-create.d.ts.map +1 -0
  371. package/dist/commands/hotfix/commands/hotfix-deploy.d.ts +23 -0
  372. package/dist/commands/hotfix/commands/hotfix-deploy.d.ts.map +1 -0
  373. package/dist/commands/hotfix/commands/hotfix-status.d.ts +20 -0
  374. package/dist/commands/hotfix/commands/hotfix-status.d.ts.map +1 -0
  375. package/dist/commands/hotfix/contract.d.ts +219 -0
  376. package/dist/commands/hotfix/contract.d.ts.map +1 -0
  377. package/dist/commands/hotfix/index.d.ts +15 -0
  378. package/dist/commands/hotfix/index.d.ts.map +1 -0
  379. package/dist/commands/hotfix/machine.d.ts +242 -0
  380. package/dist/commands/hotfix/machine.d.ts.map +1 -0
  381. package/dist/commands/hotfix/metadata.d.ts +37 -0
  382. package/dist/commands/hotfix/metadata.d.ts.map +1 -0
  383. package/dist/commands/hotfix/utils/hotfix-machine-helper.d.ts +58 -0
  384. package/dist/commands/hotfix/utils/hotfix-machine-helper.d.ts.map +1 -0
  385. package/dist/commands/init.d.ts +21 -0
  386. package/dist/commands/init.d.ts.map +1 -0
  387. package/dist/commands/inject-test-attrs/action.d.ts +14 -0
  388. package/dist/commands/inject-test-attrs/action.d.ts.map +1 -0
  389. package/dist/commands/inject-test-attrs/commands/inject-test-attrs.d.ts +16 -0
  390. package/dist/commands/inject-test-attrs/commands/inject-test-attrs.d.ts.map +1 -0
  391. package/dist/commands/inject-test-attrs/contract.d.ts +52 -0
  392. package/dist/commands/inject-test-attrs/contract.d.ts.map +1 -0
  393. package/dist/commands/inject-test-attrs/formatter.d.ts +13 -0
  394. package/dist/commands/inject-test-attrs/formatter.d.ts.map +1 -0
  395. package/dist/commands/inject-test-attrs/index.d.ts +9 -0
  396. package/dist/commands/inject-test-attrs/index.d.ts.map +1 -0
  397. package/dist/commands/inject-test-attrs/manifest-generator.d.ts +21 -0
  398. package/dist/commands/inject-test-attrs/manifest-generator.d.ts.map +1 -0
  399. package/dist/commands/inject-test-attrs/processor-utils.d.ts +76 -0
  400. package/dist/commands/inject-test-attrs/processor-utils.d.ts.map +1 -0
  401. package/dist/commands/inject-test-attrs/processor.d.ts +35 -0
  402. package/dist/commands/inject-test-attrs/processor.d.ts.map +1 -0
  403. package/dist/commands/inject-test-attrs/types.d.ts +48 -0
  404. package/dist/commands/inject-test-attrs/types.d.ts.map +1 -0
  405. package/dist/commands/link.d.ts +16 -0
  406. package/dist/commands/link.d.ts.map +1 -0
  407. package/dist/commands/manifest/index.d.ts +27 -0
  408. package/dist/commands/manifest/index.d.ts.map +1 -0
  409. package/dist/commands/prepare/commands/prepare.d.ts +32 -0
  410. package/dist/commands/prepare/commands/prepare.d.ts.map +1 -0
  411. package/dist/commands/prepare/index.d.ts +10 -0
  412. package/dist/commands/prepare/index.d.ts.map +1 -0
  413. package/dist/commands/sdk/commands/publish.d.ts +33 -0
  414. package/dist/commands/sdk/commands/publish.d.ts.map +1 -0
  415. package/dist/commands/sdk/index.d.ts +14 -0
  416. package/dist/commands/sdk/index.d.ts.map +1 -0
  417. package/dist/commands/services/index.d.ts +3 -0
  418. package/dist/commands/services/index.d.ts.map +1 -0
  419. package/dist/commands/session/index.d.ts +19 -0
  420. package/dist/commands/session/index.d.ts.map +1 -0
  421. package/dist/commands/status.d.ts +13 -0
  422. package/dist/commands/status.d.ts.map +1 -0
  423. package/dist/commands/telemetry.d.ts +3 -0
  424. package/dist/commands/telemetry.d.ts.map +1 -0
  425. package/dist/commands/template-check/actors/compare.d.ts +18 -0
  426. package/dist/commands/template-check/actors/compare.d.ts.map +1 -0
  427. package/dist/commands/template-check/actors/discover.d.ts +18 -0
  428. package/dist/commands/template-check/actors/discover.d.ts.map +1 -0
  429. package/dist/commands/template-check/actors/index.d.ts +9 -0
  430. package/dist/commands/template-check/actors/index.d.ts.map +1 -0
  431. package/dist/commands/template-check/actors/report.d.ts +44 -0
  432. package/dist/commands/template-check/actors/report.d.ts.map +1 -0
  433. package/dist/commands/template-check/commands/template-check.d.ts +17 -0
  434. package/dist/commands/template-check/commands/template-check.d.ts.map +1 -0
  435. package/dist/commands/template-check/config.d.ts +100 -0
  436. package/dist/commands/template-check/config.d.ts.map +1 -0
  437. package/dist/commands/template-check/contract.d.ts +169 -0
  438. package/dist/commands/template-check/contract.d.ts.map +1 -0
  439. package/dist/commands/template-check/index.d.ts +8 -0
  440. package/dist/commands/template-check/index.d.ts.map +1 -0
  441. package/dist/commands/template-check/machine.d.ts +91 -0
  442. package/dist/commands/template-check/machine.d.ts.map +1 -0
  443. package/dist/commands/template-check/types.d.ts +87 -0
  444. package/dist/commands/template-check/types.d.ts.map +1 -0
  445. package/dist/commands/template-check/utils/diff-analyzer.d.ts +40 -0
  446. package/dist/commands/template-check/utils/diff-analyzer.d.ts.map +1 -0
  447. package/dist/commands/template-check/utils/normalizer.d.ts +55 -0
  448. package/dist/commands/template-check/utils/normalizer.d.ts.map +1 -0
  449. package/dist/commands/template-check/utils/path-mapping.d.ts +43 -0
  450. package/dist/commands/template-check/utils/path-mapping.d.ts.map +1 -0
  451. package/dist/commands/test/commands/test-db.d.ts +25 -0
  452. package/dist/commands/test/commands/test-db.d.ts.map +1 -0
  453. package/dist/commands/test/commands/test-e2e.d.ts +20 -0
  454. package/dist/commands/test/commands/test-e2e.d.ts.map +1 -0
  455. package/dist/commands/test/commands/test-fast.d.ts +21 -0
  456. package/dist/commands/test/commands/test-fast.d.ts.map +1 -0
  457. package/dist/commands/test/commands/test-integration.d.ts +3 -0
  458. package/dist/commands/test/commands/test-integration.d.ts.map +1 -0
  459. package/dist/commands/test/commands/test-layer.d.ts +8 -0
  460. package/dist/commands/test/commands/test-layer.d.ts.map +1 -0
  461. package/dist/commands/test/commands/test-owasp-generate.d.ts +11 -0
  462. package/dist/commands/test/commands/test-owasp-generate.d.ts.map +1 -0
  463. package/dist/commands/test/commands/test-service.d.ts +3 -0
  464. package/dist/commands/test/commands/test-service.d.ts.map +1 -0
  465. package/dist/commands/test/commands/test-static.d.ts +3 -0
  466. package/dist/commands/test/commands/test-static.d.ts.map +1 -0
  467. package/dist/commands/test/commands/test.d.ts +3 -0
  468. package/dist/commands/test/commands/test.d.ts.map +1 -0
  469. package/dist/commands/test/index.d.ts +39 -0
  470. package/dist/commands/test/index.d.ts.map +1 -0
  471. package/dist/commands/test-gen.d.ts +39 -0
  472. package/dist/commands/test-gen.d.ts.map +1 -0
  473. package/dist/commands/ui.d.ts +12 -0
  474. package/dist/commands/ui.d.ts.map +1 -0
  475. package/dist/commands/upgrade.d.ts +38 -0
  476. package/dist/commands/upgrade.d.ts.map +1 -0
  477. package/dist/commands/validate.d.ts +9 -0
  478. package/dist/commands/validate.d.ts.map +1 -0
  479. package/dist/commands/vuln-check.d.ts +18 -0
  480. package/dist/commands/vuln-check.d.ts.map +1 -0
  481. package/dist/commands/watch.d.ts +21 -0
  482. package/dist/commands/watch.d.ts.map +1 -0
  483. package/dist/commands/workflow/commands/deploy-production.d.ts +10 -0
  484. package/dist/commands/workflow/commands/deploy-production.d.ts.map +1 -0
  485. package/dist/commands/workflow/commands/final-status.d.ts +19 -0
  486. package/dist/commands/workflow/commands/final-status.d.ts.map +1 -0
  487. package/dist/commands/workflow/commands/log.d.ts +14 -0
  488. package/dist/commands/workflow/commands/log.d.ts.map +1 -0
  489. package/dist/commands/workflow/commands/notify.d.ts +18 -0
  490. package/dist/commands/workflow/commands/notify.d.ts.map +1 -0
  491. package/dist/commands/workflow/commands/paths.d.ts +15 -0
  492. package/dist/commands/workflow/commands/paths.d.ts.map +1 -0
  493. package/dist/commands/workflow/commands/sync.d.ts +21 -0
  494. package/dist/commands/workflow/commands/sync.d.ts.map +1 -0
  495. package/dist/commands/workflow/commands/validate.d.ts +9 -0
  496. package/dist/commands/workflow/commands/validate.d.ts.map +1 -0
  497. package/dist/commands/workflow/commands/verify-credentials.d.ts +15 -0
  498. package/dist/commands/workflow/commands/verify-credentials.d.ts.map +1 -0
  499. package/dist/commands/workflow/index.d.ts +15 -0
  500. package/dist/commands/workflow/index.d.ts.map +1 -0
  501. package/dist/commands/workflow/types.d.ts +87 -0
  502. package/dist/commands/workflow/types.d.ts.map +1 -0
  503. package/dist/config/env-files.d.ts +65 -0
  504. package/dist/config/env-files.d.ts.map +1 -0
  505. package/dist/config/env.d.ts +131 -0
  506. package/dist/config/env.d.ts.map +1 -0
  507. package/dist/constants/versions.d.ts +26 -0
  508. package/dist/constants/versions.d.ts.map +1 -0
  509. package/dist/contracts/envelope.d.ts +2 -0
  510. package/dist/contracts/envelope.d.ts.map +1 -0
  511. package/dist/errors/catalog.d.ts +461 -0
  512. package/dist/errors/catalog.d.ts.map +1 -0
  513. package/dist/errors/exit-codes.d.ts +46 -0
  514. package/dist/errors/exit-codes.d.ts.map +1 -0
  515. package/dist/errors/index.d.ts +13 -0
  516. package/dist/errors/index.d.ts.map +1 -0
  517. package/dist/incremental/affected-tests.d.ts +29 -0
  518. package/dist/incremental/affected-tests.d.ts.map +1 -0
  519. package/dist/index.d.ts +31 -0
  520. package/dist/index.d.ts.map +1 -0
  521. package/dist/index.js +36594 -0
  522. package/dist/internal/machines/index.d.ts +10 -0
  523. package/dist/internal/machines/index.d.ts.map +1 -0
  524. package/dist/internal/machines/machine-runner.d.ts +18 -0
  525. package/dist/internal/machines/machine-runner.d.ts.map +1 -0
  526. package/dist/internal/machines/types.d.ts +48 -0
  527. package/dist/internal/machines/types.d.ts.map +1 -0
  528. package/dist/internal/vuln-checker/analyzers/dependency-analyzer.d.ts +24 -0
  529. package/dist/internal/vuln-checker/analyzers/dependency-analyzer.d.ts.map +1 -0
  530. package/dist/internal/vuln-checker/analyzers/rls-analyzer.d.ts +28 -0
  531. package/dist/internal/vuln-checker/analyzers/rls-analyzer.d.ts.map +1 -0
  532. package/dist/internal/vuln-checker/analyzers/secret-analyzer.d.ts +26 -0
  533. package/dist/internal/vuln-checker/analyzers/secret-analyzer.d.ts.map +1 -0
  534. package/dist/internal/vuln-checker/analyzers/typescript-analyzer.d.ts +25 -0
  535. package/dist/internal/vuln-checker/analyzers/typescript-analyzer.d.ts.map +1 -0
  536. package/dist/internal/vuln-checker/config/loader.d.ts +16 -0
  537. package/dist/internal/vuln-checker/config/loader.d.ts.map +1 -0
  538. package/dist/internal/vuln-checker/constants.d.ts +75 -0
  539. package/dist/internal/vuln-checker/constants.d.ts.map +1 -0
  540. package/dist/internal/vuln-checker/ignore/matcher.d.ts +23 -0
  541. package/dist/internal/vuln-checker/ignore/matcher.d.ts.map +1 -0
  542. package/dist/internal/vuln-checker/index.d.ts +45 -0
  543. package/dist/internal/vuln-checker/index.d.ts.map +1 -0
  544. package/dist/internal/vuln-checker/reporters/console-reporter.d.ts +9 -0
  545. package/dist/internal/vuln-checker/reporters/console-reporter.d.ts.map +1 -0
  546. package/dist/internal/vuln-checker/reporters/json-reporter.d.ts +9 -0
  547. package/dist/internal/vuln-checker/reporters/json-reporter.d.ts.map +1 -0
  548. package/dist/internal/vuln-checker/reporters/markdown-reporter.d.ts +9 -0
  549. package/dist/internal/vuln-checker/reporters/markdown-reporter.d.ts.map +1 -0
  550. package/dist/internal/vuln-checker/reporters/sarif-reporter.d.ts +12 -0
  551. package/dist/internal/vuln-checker/reporters/sarif-reporter.d.ts.map +1 -0
  552. package/dist/internal/vuln-checker/types.d.ts +149 -0
  553. package/dist/internal/vuln-checker/types.d.ts.map +1 -0
  554. package/dist/notifiers/desktop-notifier.d.ts +34 -0
  555. package/dist/notifiers/desktop-notifier.d.ts.map +1 -0
  556. package/dist/schemas/ci.config.schema.json +206 -0
  557. package/dist/ui/components/db-panel.d.ts +12 -0
  558. package/dist/ui/components/db-panel.d.ts.map +1 -0
  559. package/dist/ui/components/status-bar.d.ts +6 -0
  560. package/dist/ui/components/status-bar.d.ts.map +1 -0
  561. package/dist/ui/components/test-panel.d.ts +12 -0
  562. package/dist/ui/components/test-panel.d.ts.map +1 -0
  563. package/dist/ui/dashboard.d.ts +20 -0
  564. package/dist/ui/dashboard.d.ts.map +1 -0
  565. package/dist/ui/index.d.ts +16 -0
  566. package/dist/ui/index.d.ts.map +1 -0
  567. package/dist/utils/config-loader.d.ts +92 -0
  568. package/dist/utils/config-loader.d.ts.map +1 -0
  569. package/dist/utils/config-updater.d.ts +44 -0
  570. package/dist/utils/config-updater.d.ts.map +1 -0
  571. package/dist/utils/diagnostics.d.ts +44 -0
  572. package/dist/utils/diagnostics.d.ts.map +1 -0
  573. package/dist/utils/dotenvx.d.ts +33 -0
  574. package/dist/utils/dotenvx.d.ts.map +1 -0
  575. package/dist/utils/execution-plan.d.ts +43 -0
  576. package/dist/utils/execution-plan.d.ts.map +1 -0
  577. package/dist/utils/help-system.d.ts +34 -0
  578. package/dist/utils/help-system.d.ts.map +1 -0
  579. package/dist/utils/license/admin-auth.d.ts +39 -0
  580. package/dist/utils/license/admin-auth.d.ts.map +1 -0
  581. package/dist/utils/license/allowlist-checker.d.ts +56 -0
  582. package/dist/utils/license/allowlist-checker.d.ts.map +1 -0
  583. package/dist/utils/license/ci-detector.d.ts +43 -0
  584. package/dist/utils/license/ci-detector.d.ts.map +1 -0
  585. package/dist/utils/license/index.d.ts +49 -0
  586. package/dist/utils/license/index.d.ts.map +1 -0
  587. package/dist/utils/license/owner-resolver.d.ts +35 -0
  588. package/dist/utils/license/owner-resolver.d.ts.map +1 -0
  589. package/dist/utils/license/types.d.ts +42 -0
  590. package/dist/utils/license/types.d.ts.map +1 -0
  591. package/dist/utils/license/validate-owner.d.ts +33 -0
  592. package/dist/utils/license/validate-owner.d.ts.map +1 -0
  593. package/dist/utils/port-allocator.d.ts +59 -0
  594. package/dist/utils/port-allocator.d.ts.map +1 -0
  595. package/dist/utils/secure-exec.d.ts +95 -0
  596. package/dist/utils/secure-exec.d.ts.map +1 -0
  597. package/dist/utils/template-fetcher.d.ts +63 -0
  598. package/dist/utils/template-fetcher.d.ts.map +1 -0
  599. package/dist/utils/type-guards.d.ts +25 -0
  600. package/dist/utils/type-guards.d.ts.map +1 -0
  601. package/dist/utils/vercel-project.d.ts +38 -0
  602. package/dist/utils/vercel-project.d.ts.map +1 -0
  603. package/dist/utils/workspace-detector.d.ts +71 -0
  604. package/dist/utils/workspace-detector.d.ts.map +1 -0
  605. package/dist/validators/risk-detector.d.ts +38 -0
  606. package/dist/validators/risk-detector.d.ts.map +1 -0
  607. package/dist/validators/schema-validator.d.ts +20 -0
  608. package/dist/validators/schema-validator.d.ts.map +1 -0
  609. package/dist/version.d.ts +13 -0
  610. package/dist/version.d.ts.map +1 -0
  611. package/dist/watchers/schema-watcher.d.ts +61 -0
  612. package/dist/watchers/schema-watcher.d.ts.map +1 -0
  613. package/dist/watchers/test-watcher.d.ts +57 -0
  614. package/dist/watchers/test-watcher.d.ts.map +1 -0
  615. package/package.json +74 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * AI HINT: Progress Comment Section Generator
3
+ *
4
+ * Purpose: Generate step-by-step progress updates for GitHub PR comments
5
+ * Pattern: Pure function - takes progress data, returns markdown string
6
+ *
7
+ * Usage: Called by upsertComment actor during CI execution
8
+ */
9
+ import { type ProgressCommentInput } from '../github-comment-types.js';
10
+ /**
11
+ * Generate progress comment body (step-by-step updates).
12
+ */
13
+ export declare function generateProgressCommentBody(input: ProgressCommentInput): string;
14
+ //# sourceMappingURL=progress-comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-comment.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/ci/machine/formatters/sections/progress-comment.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAGL,KAAK,oBAAoB,EAG1B,MAAM,4BAA4B,CAAC;AA8fpC;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CA8C/E"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * AI HINT: Schema Matrix Section Generator
3
+ *
4
+ * Purpose: Generate schema statistics matrix for GitHub PR comments
5
+ * Pattern: Pure function - takes schema stats, returns markdown lines
6
+ *
7
+ * Output format (includes I for Indexes, with diff highlighting):
8
+ * | Schema | 📄 Local | 🔬 CI | 🏭 Prod |
9
+ * |--------|:--------:|:-----:|:-------:|
10
+ * | accounts | 5T 3F 12P 3I | 5T 3F 12P 3I | 📝 5T 3F 12P **2I** |
11
+ *
12
+ * Diff highlighting:
13
+ * - ⚠️ = CI differs from Local (SSOT)
14
+ * - 📝 = Prod differs from Local (schema changes pending)
15
+ * - **bold** = specific field that differs
16
+ */
17
+ import type { SchemaGitDiff, SchemaStatsSnapshot } from '../../types.js';
18
+ /**
19
+ * Format schema statistics as a hybrid matrix table.
20
+ *
21
+ * Main table: Schema × Environment with T (Tables), F (Functions), P (Policies)
22
+ * Summary line: All types including I (Indexes), Tr (Triggers)
23
+ */
24
+ export declare function formatSchemaMatrix(schemaStats: SchemaStatsSnapshot | null, gitDiff: SchemaGitDiff | null): string[];
25
+ //# sourceMappingURL=schema-matrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-matrix.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/ci/machine/formatters/sections/schema-matrix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAUH,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAgJzE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,mBAAmB,GAAG,IAAI,EACvC,OAAO,EAAE,aAAa,GAAG,IAAI,GAC5B,MAAM,EAAE,CA8CV"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * AI HINT: CI Summary Formatter
3
+ *
4
+ * Purpose: Create summary input from CI context for artifact generation
5
+ * Pattern: Pure function - takes context data, returns structured summary
6
+ *
7
+ * Usage:
8
+ * - Called by writeSummary actor in finalize state
9
+ * - Generates structured summary for CI result artifacts
10
+ *
11
+ * blockingPolicy:
12
+ * - Computed from layer results + runa-strict classification
13
+ * - dbDeployAllowed: true if all blocking layers (0-3) passed
14
+ * - Used by /deploy-db workflow to gate production DB deploys
15
+ */
16
+ import type { CiSummary } from '../actors/finalize/summary.js';
17
+ import type { CiContext } from '../types.js';
18
+ export interface WriteSummaryInput {
19
+ cwd: string;
20
+ summary: CiSummary;
21
+ }
22
+ /**
23
+ * Create summary input from CI context.
24
+ * Use this in machine.ts to generate the writeSummary actor input.
25
+ */
26
+ export declare function createSummaryInput(context: CiContext): WriteSummaryInput;
27
+ //# sourceMappingURL=summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../../../src/commands/ci/machine/formatters/summary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAyB,MAAM,aAAa,CAAC;AAOpE,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,SAAS,CAAC;CACpB;AAMD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,GAAG,iBAAiB,CAuCxE"}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * AI HINT: Unified CI Machine Guards
3
+ *
4
+ * Purpose: Mode-based guard functions for state machine transitions
5
+ * Pattern: Pure functions that check context and determine next state
6
+ *
7
+ * Guards are organized by:
8
+ * - Mode detection: Which CI mode to execute
9
+ * - Step conditions: Whether to skip or execute steps
10
+ * - Error conditions: Check for errors
11
+ * - Completion: Check if workflow is done
12
+ *
13
+ * Key Guards:
14
+ * - isCiLocalMode: Check if running standalone local simulation
15
+ * - isCiPrLocalMode: Check if running PR CI with local Supabase
16
+ * - shouldSkipStaticChecks: Check if static checks should be skipped
17
+ * - shouldSkipBuild: Check if build should be skipped
18
+ */
19
+ import type { CiContext, CiInput, CiMode } from './types.js';
20
+ /**
21
+ * Check if running ci-local mode.
22
+ */
23
+ export declare function isCiLocalMode(context: CiContext): boolean;
24
+ /**
25
+ * Check if running ci-pr-local mode.
26
+ */
27
+ export declare function isCiPrLocalMode(context: CiContext): boolean;
28
+ /**
29
+ * Check if running ci-pr mode.
30
+ */
31
+ export declare function isCiPrMode(context: CiContext): boolean;
32
+ /**
33
+ * Resolve the effective CI mode from input and environment.
34
+ *
35
+ * Logic:
36
+ * 1. If running `runa ci local`, mode is 'ci-local'
37
+ * 2. If running `runa ci pr`, mode is 'ci-pr-local' (uses local Docker Supabase)
38
+ */
39
+ export declare function resolveMode(params: {
40
+ command: 'local' | 'pr';
41
+ dbMode: 'auto' | 'local';
42
+ hasBranchInputs: boolean;
43
+ allowLocalFallback: boolean;
44
+ isGitHubActions: boolean;
45
+ hasPrContext: boolean;
46
+ }): CiMode;
47
+ /**
48
+ * Check if static checks should be skipped.
49
+ */
50
+ export declare function shouldSkipStaticChecks(context: CiContext): boolean;
51
+ /**
52
+ * Check if build should be skipped.
53
+ */
54
+ export declare function shouldSkipBuild(context: CiContext): boolean;
55
+ /**
56
+ * Check if app start should be skipped.
57
+ *
58
+ * Skip conditions:
59
+ * - ci-local mode (tests run without app)
60
+ * - Layer 4 (E2E) not selected (app not needed for Layer 0-3)
61
+ */
62
+ export declare function shouldSkipAppStart(context: CiContext): boolean;
63
+ /**
64
+ * Check if Playwright installation should be skipped.
65
+ *
66
+ * Skip conditions:
67
+ * - ci-local mode (no E2E tests)
68
+ * - Layer 4 (E2E) not selected
69
+ */
70
+ export declare function shouldSkipPlaywrightInstall(context: CiContext): boolean;
71
+ /**
72
+ * Check if DB reset should be performed (ci-local only).
73
+ */
74
+ export declare function shouldResetDb(context: CiContext): boolean;
75
+ /**
76
+ * Check if production schema pull should be performed (ci-local only).
77
+ *
78
+ * Uses context.input.productionDatabaseUrl (captured at entry point)
79
+ * instead of reading process.env directly.
80
+ */
81
+ export declare function shouldPullProduction(context: CiContext): boolean;
82
+ /**
83
+ * Check if pgTAP installation should be attempted.
84
+ */
85
+ export declare function shouldInstallPgTap(context: CiContext): boolean;
86
+ /**
87
+ * Check if roles setup should be performed.
88
+ */
89
+ export declare function shouldSetupRoles(context: CiContext): boolean;
90
+ /**
91
+ * Check if GitHub comment should be posted.
92
+ */
93
+ export declare function shouldPostGitHubComment(context: CiContext): boolean;
94
+ /**
95
+ * Check if context has an error.
96
+ */
97
+ export declare function hasError(context: CiContext): boolean;
98
+ /**
99
+ * Check if workflow was successful.
100
+ */
101
+ export declare function isSuccess(context: CiContext): boolean;
102
+ /**
103
+ * Check if all tests passed.
104
+ */
105
+ export declare function allTestsPassed(context: CiContext): boolean;
106
+ /**
107
+ * Check if running in dry-run mode (check only).
108
+ */
109
+ export declare function isDryRun(context: CiContext): boolean;
110
+ /**
111
+ * Parse layer option into array of layer numbers.
112
+ */
113
+ export declare function parseLayers(input: CiInput): number[];
114
+ /**
115
+ * Get default layers for mode.
116
+ */
117
+ export declare function getDefaultLayers(mode: CiMode): number[];
118
+ /**
119
+ * Check if production database URL is set.
120
+ *
121
+ * Pure function: Receives CiInput, no direct process.env access.
122
+ */
123
+ export declare function hasProductionDatabaseUrl(input: CiInput): boolean;
124
+ /**
125
+ * Check if running in GitHub Actions.
126
+ *
127
+ * Pure function: Receives CiInput, no direct process.env access.
128
+ */
129
+ export declare function isGitHubActions(input: CiInput): boolean;
130
+ /**
131
+ * Check if running in any CI environment.
132
+ *
133
+ * Pure function: Receives CiInput, no direct process.env access.
134
+ */
135
+ export declare function isCI(input: CiInput): boolean;
136
+ //# sourceMappingURL=guards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/guards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AA+B7D;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAEtD;AAMD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE;IAClC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,CAUT;AAgDD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAElE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAEvE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAGzD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAMhE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAG9D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAG5D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAOnE;AAMD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAQ1D;AAMD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAEpD;AAMD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAoBpD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CASvD;AAMD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEhE;AAMD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE5C"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * AI HINT: CI Machine Helper Functions
3
+ *
4
+ * Purpose: Computation helpers for the CI state machine
5
+ * Extracted from machine.ts for maintainability
6
+ *
7
+ * Categories:
8
+ * - Layer management (core vs E2E layer filtering)
9
+ * - Result merging and conversion
10
+ * - Database URL computation
11
+ * - Exit code computation
12
+ */
13
+ import type { CiContext } from './types.js';
14
+ /** Core layers (blocking): 1, 2, 3 */
15
+ export declare const CORE_LAYERS: readonly [1, 2, 3];
16
+ /** E2E layer (warning): 4 */
17
+ export declare const E2E_LAYER = 4;
18
+ /**
19
+ * Get layers to run in the core test phase.
20
+ *
21
+ * For ci-local: Run ALL selected layers (original behavior)
22
+ * For ci-pr: Run only core layers (1, 2, 3) - E2E runs separately
23
+ *
24
+ * @param selectedLayers - Layers selected by user
25
+ * @param mode - CI mode (ci-local or ci-pr-local)
26
+ */
27
+ export declare function getLayersForCorePhase(selectedLayers: number[], mode: string): number[];
28
+ /**
29
+ * Check if E2E layer (4) is selected.
30
+ */
31
+ export declare function hasE2ELayer(selectedLayers: number[]): boolean;
32
+ /** Layer result status type */
33
+ export type LayerStatus = 'passed' | 'failed' | 'skipped' | 'timeout';
34
+ /** Layer result record type */
35
+ export type LayerResults = Record<number, {
36
+ status: LayerStatus;
37
+ exitCode: number;
38
+ }>;
39
+ /**
40
+ * Merge E2E layer results into existing core layer results.
41
+ */
42
+ export declare function mergeLayerResults(coreResults: LayerResults, e2eResults: LayerResults): LayerResults;
43
+ /**
44
+ * Convert layer results from actor output to context format.
45
+ * Extracts the common logic used in multiple places.
46
+ */
47
+ export declare function convertLayerResults(results: Array<{
48
+ layer: number;
49
+ success: boolean;
50
+ exitCode: number;
51
+ skipped?: boolean;
52
+ }>): LayerResults;
53
+ /**
54
+ * Get database URL for runtime operations.
55
+ * Normalizes the URL for DDL operations.
56
+ */
57
+ export declare function getDatabaseUrlForRuntime(context: CiContext): string;
58
+ /**
59
+ * Get Supabase URL with fallback to local defaults.
60
+ *
61
+ * CRITICAL: Next.js NEXT_PUBLIC_* variables are embedded at build time.
62
+ * If context.supabase is null (setup failed) or supabaseUrl is empty,
63
+ * use local Supabase defaults to prevent runtime crashes.
64
+ *
65
+ * @param context - CI context
66
+ * @returns Supabase URL (from context or local default)
67
+ */
68
+ export declare function getSupabaseUrlWithFallback(context: CiContext): string;
69
+ /**
70
+ * Get Supabase anon key with fallback to local defaults.
71
+ *
72
+ * @param context - CI context
73
+ * @returns Supabase anon key (from context or local default)
74
+ */
75
+ export declare function getSupabaseAnonKeyWithFallback(context: CiContext): string;
76
+ /**
77
+ * Compute exit code based on layer results and classification.
78
+ *
79
+ * Exit code semantics:
80
+ * - 0: All layers passed
81
+ * - 1: Blocking layer failed (L0-L3 for runa-strict)
82
+ * - 2: Warning layer failed (L4 for runa-strict)
83
+ */
84
+ export declare function computeExitCodeFromLayerResults(layerResults: Record<number, {
85
+ status: string;
86
+ exitCode: number;
87
+ }>): 0 | 1 | 2;
88
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,sCAAsC;AACtC,eAAO,MAAM,WAAW,oBAAqB,CAAC;AAE9C,6BAA6B;AAC7B,eAAO,MAAM,SAAS,IAAI,CAAC;AAM3B;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAOtF;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,OAAO,CAE7D;AAMD,+BAA+B;AAC/B,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEtE,+BAA+B;AAC/B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAErF;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,YAAY,EACzB,UAAU,EAAE,YAAY,GACvB,YAAY,CAEd;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GACvF,YAAY,CAgBd;AAMD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,CAGnE;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,CAGrE;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,CAEzE;AAMD;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GACjE,CAAC,GAAG,CAAC,GAAG,CAAC,CAyBX"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * AI HINT: Unified CI Machine Barrel Export
3
+ *
4
+ * Purpose: Central export for unified CI state machine
5
+ * Pattern: Barrel export for clean imports
6
+ *
7
+ * Exports:
8
+ * - ciMachine: Unified state machine
9
+ * - Types: CiContext, CiEvent, CiInput, CiOutput, etc.
10
+ * - Guards: Mode detection and step condition functions
11
+ * - Actors: All fine-grained actors
12
+ */
13
+ export * from './actors/index.js';
14
+ export { detectApp, detectRepoKind, localSetupActor, prLocalSetupActor, resolveBranchName, resolvePolicy, resolvePrContext, } from './actors/setup/index.js';
15
+ export { AppBuildResultSchema, AppStartResultSchema, CapabilityResultSchema, CiDbModeSchema, CiExecutionEnvSchema, CiInputSchema, CiModeSchema, CiOutputSchema, CiPhaseSchema, CiPrPolicySchema, DbSetupResultSchema, DetectedAppSchema, FinalizeResultSchema, LayerResultSchema, LayerStatusSchema, LayerSummarySchema, PrContextSchema, RepoKindSchema, RolesSetupResultSchema, SetupResultSchema, StaticChecksResultSchema, StepStatusSchema, StepSummarySchema, SupabaseConnectionSchema, TestRunResultSchema, } from './contract.js';
16
+ export { allTestsPassed, getDefaultLayers, hasError, hasProductionDatabaseUrl, isCI, isCiLocalMode, isCiPrLocalMode, isCiPrMode, isDryRun, isGitHubActions, isSuccess, parseLayers, resolveMode, shouldInstallPgTap, shouldPostGitHubComment, shouldPullProduction, shouldResetDb, shouldSetupRoles, shouldSkipAppStart, shouldSkipBuild, shouldSkipStaticChecks, } from './guards.js';
17
+ export type { CiMachine, CiSnapshot } from './machine.js';
18
+ export { ciMachine, getError, getExitCode, getStateName, isComplete } from './machine.js';
19
+ export type { CiContext, CiEvent, CiExecutionEnv, CiInput, CiMode, CiOutput, CiPhase, CiPrPolicy, DetectedApp, LayerResult, LayerStatus, PrContext, RepoKind, StepResult, StepStatus, SupabaseConnection, } from './types.js';
20
+ export { createInitialContext, createOutput } from './types.js';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,SAAS,EACT,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,wBAAwB,EACxB,IAAI,EACJ,aAAa,EACb,eAAe,EACf,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1F,YAAY,EACV,SAAS,EACT,OAAO,EACP,cAAc,EACd,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,315 @@
1
+ /**
2
+ * AI HINT: Unified CI State Machine
3
+ *
4
+ * Purpose: Single XState machine for all CI modes (ci-local, ci-pr-local)
5
+ * Pattern: Compound states with mode-based guards for workflow branching
6
+ *
7
+ * User Journey:
8
+ * 1. idle → START → setup (mode-aware: localSetup or prLocalSetup)
9
+ * 2. [ci-local] setup → dbReset → pullProduction? → syncSchema → applySeeds
10
+ * → productionPreview → collectSchemaStats → installPgTap → runCoreTests → done
11
+ * 3. [ci-pr] setup → initialComment → syncSchema → applySeeds → productionPreview
12
+ * → collectSchemaStats → setupRoles → staticChecks → buildAndPlaywright
13
+ * → appStart → capabilities → runCoreTests → e2ePhase → finalize → done
14
+ *
15
+ * State Flow (detailed):
16
+ * idle → setup → initialComment? → dbReset? → pullProduction? → syncSchema → applySeeds
17
+ * → productionPreview → collectSchemaStats → decidePath
18
+ * → [ci-local] → installPgTap → runCoreTests → done
19
+ * → [ci-pr] → setupRoles → staticChecks → buildAndPlaywright → appStart
20
+ * → capabilities → runCoreTests → coreTestsComplete
21
+ * → e2ePhase (parallel: intermediateComment || e2eTests)
22
+ * → finalize → done
23
+ *
24
+ * Test Execution Strategy (Layer 1-3 / Layer 4 split):
25
+ * - Core tests (L1,2,3): Run first, blocking. If failed, skip E2E.
26
+ * - E2E tests (L4): Run in parallel with intermediate comment.
27
+ * - Intermediate comment: Posted immediately when core tests pass ("E2E running...")
28
+ * - Final comment: Posted with all results including E2E.
29
+ *
30
+ * Optimizations:
31
+ * - staticChecks: type-check || lint (parallel, ~15-30s saved)
32
+ * - buildAndPlaywright: appBuild || playwrightInstall (parallel, ~30-60s saved)
33
+ * - e2ePhase: intermediateComment || e2eTests (parallel, faster DB deploy decision)
34
+ * - Skip playwrightInstall when Layer 4 not selected (~30-60s saved)
35
+ * - Skip appStart when Layer 4 not selected (~5-10s saved)
36
+ *
37
+ * E2E Test Mapping:
38
+ * - idle → expect(state).toBe('idle')
39
+ * - setup → expect(log).toContain('Resolving environment')
40
+ * - syncSchema → expect(log).toContain('Schema synced')
41
+ * - runCoreTests → expect(layerResults[1,2,3]).toBeDefined()
42
+ * - e2ePhase → expect(log).toContain('E2E phase')
43
+ * - done → expect(exitCode).toBe(0)
44
+ * - failed → expect(exitCode).toBe(1)
45
+ */
46
+ import { type SnapshotFrom } from 'xstate';
47
+ import type { CiContext, CiEvent } from './types.js';
48
+ export declare const ciMachine: import("xstate").StateMachine<CiContext, CiEvent, {
49
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").StaticChecksOutput, import("./index.js").StaticChecksInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").CapabilitiesOutput, import("./index.js").CapabilitiesInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").AppStartOutput, import("./index.js").AppStartInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").SyncSchemaOutput, import("./index.js").SyncSchemaInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").ApplySeedsOutput, import("./index.js").ApplySeedsInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").ProductionPreviewOutput, import("./index.js").ProductionPreviewInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").PlaywrightInstallOutput, import("./index.js").PlaywrightInstallInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/setup/local.js").LocalSetupOutput, import("./actors/setup/local.js").LocalSetupInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./actors/setup/pr-local.js").PrLocalSetupOutput, import("./actors/setup/pr-local.js").PrLocalSetupInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").ResetDbOutput, import("./index.js").ResetDbInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").PullProductionOutput, import("./index.js").PullProductionInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").CollectSchemaStatsOutput, import("./index.js").CollectSchemaStatsInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").SetupRolesOutput, import("./index.js").SetupRolesInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").InstallPgTapOutput, import("./index.js").InstallPgTapInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").AppBuildOutput, import("./index.js").AppBuildInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").BuildAndPlaywrightOutput, import("./index.js").BuildAndPlaywrightInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").RunLayersOutput, import("./index.js").RunLayersInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").WriteSummaryOutput, import("./index.js").WriteSummaryInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<import("./index.js").UpsertCommentOutput, import("./index.js").UpsertCommentInput, import("xstate").EventObject>> | undefined;
50
+ }, {
51
+ src: "staticChecks";
52
+ logic: import("xstate").PromiseActorLogic<import("./index.js").StaticChecksOutput, import("./index.js").StaticChecksInput, import("xstate").EventObject>;
53
+ id: string | undefined;
54
+ } | {
55
+ src: "capabilities";
56
+ logic: import("xstate").PromiseActorLogic<import("./index.js").CapabilitiesOutput, import("./index.js").CapabilitiesInput, import("xstate").EventObject>;
57
+ id: string | undefined;
58
+ } | {
59
+ src: "appStart";
60
+ logic: import("xstate").PromiseActorLogic<import("./index.js").AppStartOutput, import("./index.js").AppStartInput, import("xstate").EventObject>;
61
+ id: string | undefined;
62
+ } | {
63
+ src: "syncSchema";
64
+ logic: import("xstate").PromiseActorLogic<import("./index.js").SyncSchemaOutput, import("./index.js").SyncSchemaInput, import("xstate").EventObject>;
65
+ id: string | undefined;
66
+ } | {
67
+ src: "applySeeds";
68
+ logic: import("xstate").PromiseActorLogic<import("./index.js").ApplySeedsOutput, import("./index.js").ApplySeedsInput, import("xstate").EventObject>;
69
+ id: string | undefined;
70
+ } | {
71
+ src: "productionPreview";
72
+ logic: import("xstate").PromiseActorLogic<import("./index.js").ProductionPreviewOutput, import("./index.js").ProductionPreviewInput, import("xstate").EventObject>;
73
+ id: string | undefined;
74
+ } | {
75
+ src: "playwrightInstall";
76
+ logic: import("xstate").PromiseActorLogic<import("./index.js").PlaywrightInstallOutput, import("./index.js").PlaywrightInstallInput, import("xstate").EventObject>;
77
+ id: string | undefined;
78
+ } | {
79
+ src: "localSetup";
80
+ logic: import("xstate").PromiseActorLogic<import("./actors/setup/local.js").LocalSetupOutput, import("./actors/setup/local.js").LocalSetupInput, import("xstate").EventObject>;
81
+ id: string | undefined;
82
+ } | {
83
+ src: "prLocalSetup";
84
+ logic: import("xstate").PromiseActorLogic<import("./actors/setup/pr-local.js").PrLocalSetupOutput, import("./actors/setup/pr-local.js").PrLocalSetupInput, import("xstate").EventObject>;
85
+ id: string | undefined;
86
+ } | {
87
+ src: "resetDb";
88
+ logic: import("xstate").PromiseActorLogic<import("./index.js").ResetDbOutput, import("./index.js").ResetDbInput, import("xstate").EventObject>;
89
+ id: string | undefined;
90
+ } | {
91
+ src: "pullProduction";
92
+ logic: import("xstate").PromiseActorLogic<import("./index.js").PullProductionOutput, import("./index.js").PullProductionInput, import("xstate").EventObject>;
93
+ id: string | undefined;
94
+ } | {
95
+ src: "collectSchemaStats";
96
+ logic: import("xstate").PromiseActorLogic<import("./index.js").CollectSchemaStatsOutput, import("./index.js").CollectSchemaStatsInput, import("xstate").EventObject>;
97
+ id: string | undefined;
98
+ } | {
99
+ src: "setupRoles";
100
+ logic: import("xstate").PromiseActorLogic<import("./index.js").SetupRolesOutput, import("./index.js").SetupRolesInput, import("xstate").EventObject>;
101
+ id: string | undefined;
102
+ } | {
103
+ src: "installPgTap";
104
+ logic: import("xstate").PromiseActorLogic<import("./index.js").InstallPgTapOutput, import("./index.js").InstallPgTapInput, import("xstate").EventObject>;
105
+ id: string | undefined;
106
+ } | {
107
+ src: "appBuild";
108
+ logic: import("xstate").PromiseActorLogic<import("./index.js").AppBuildOutput, import("./index.js").AppBuildInput, import("xstate").EventObject>;
109
+ id: string | undefined;
110
+ } | {
111
+ src: "buildAndPlaywright";
112
+ logic: import("xstate").PromiseActorLogic<import("./index.js").BuildAndPlaywrightOutput, import("./index.js").BuildAndPlaywrightInput, import("xstate").EventObject>;
113
+ id: string | undefined;
114
+ } | {
115
+ src: "runLayers";
116
+ logic: import("xstate").PromiseActorLogic<import("./index.js").RunLayersOutput, import("./index.js").RunLayersInput, import("xstate").EventObject>;
117
+ id: string | undefined;
118
+ } | {
119
+ src: "writeSummary";
120
+ logic: import("xstate").PromiseActorLogic<import("./index.js").WriteSummaryOutput, import("./index.js").WriteSummaryInput, import("xstate").EventObject>;
121
+ id: string | undefined;
122
+ } | {
123
+ src: "upsertComment";
124
+ logic: import("xstate").PromiseActorLogic<import("./index.js").UpsertCommentOutput, import("./index.js").UpsertCommentInput, import("xstate").EventObject>;
125
+ id: string | undefined;
126
+ }, never, {
127
+ type: "shouldSkipBuild";
128
+ params: unknown;
129
+ } | {
130
+ type: "isDryRun";
131
+ params: unknown;
132
+ } | {
133
+ type: "isCiLocalMode";
134
+ params: unknown;
135
+ } | {
136
+ type: "isCiPrLocalMode";
137
+ params: unknown;
138
+ } | {
139
+ type: "isCiPrMode";
140
+ params: unknown;
141
+ } | {
142
+ type: "shouldResetDb";
143
+ params: unknown;
144
+ } | {
145
+ type: "shouldPullProduction";
146
+ params: unknown;
147
+ } | {
148
+ type: "shouldSkipStaticChecks";
149
+ params: unknown;
150
+ } | {
151
+ type: "shouldSkipAppStart";
152
+ params: unknown;
153
+ } | {
154
+ type: "shouldSkipPlaywrightInstall";
155
+ params: unknown;
156
+ } | {
157
+ type: "shouldInstallPgTap";
158
+ params: unknown;
159
+ } | {
160
+ type: "shouldSetupRoles";
161
+ params: unknown;
162
+ } | {
163
+ type: "shouldPostGitHubComment";
164
+ params: unknown;
165
+ } | {
166
+ type: "hasError";
167
+ params: unknown;
168
+ } | {
169
+ type: "allTestsPassed";
170
+ params: unknown;
171
+ }, never, "failed" | "done" | "staticChecks" | "idle" | "capabilities" | "appStart" | "syncSchema" | "applySeeds" | "productionPreview" | "pullProduction" | "collectSchemaStats" | "setupRoles" | "installPgTap" | "buildAndPlaywright" | "initialComment" | "dbReset" | "decidePath" | "runCoreTests" | "coreTestsFailed" | "coreTestsComplete" | {
172
+ setup: "local" | "resolving" | "prLocal" | "complete";
173
+ } | {
174
+ finalize: "writeSummary" | "complete" | "postComment";
175
+ } | {
176
+ e2ePhase: {
177
+ intermediateComment: "done" | "checking" | "posting";
178
+ e2eTests: "running" | "done";
179
+ };
180
+ }, string, {
181
+ [x: string]: unknown;
182
+ command: "local" | "pr";
183
+ targetDir?: string | undefined;
184
+ verbose?: boolean | undefined;
185
+ productionDatabaseUrl?: string | undefined;
186
+ databaseUrl?: string | undefined;
187
+ githubRef?: string | undefined;
188
+ githubEventAction?: string | undefined;
189
+ githubSha?: string | undefined;
190
+ githubBaseRef?: string | undefined;
191
+ githubHeadRef?: string | undefined;
192
+ githubServerUrl?: string | undefined;
193
+ githubRepository?: string | undefined;
194
+ githubRunId?: string | undefined;
195
+ isGitHubActions?: boolean | undefined;
196
+ isCI?: boolean | undefined;
197
+ supabaseProjectRef?: string | undefined;
198
+ supabaseAccessToken?: string | undefined;
199
+ layer?: string | undefined;
200
+ check?: boolean | undefined;
201
+ keepDb?: boolean | undefined;
202
+ executionMode?: "local" | "github-actions" | undefined;
203
+ output?: "json" | "human" | undefined;
204
+ config?: string | undefined;
205
+ phase?: "all" | "test" | undefined;
206
+ dbMode?: "local" | "auto" | undefined;
207
+ branchName?: string | undefined;
208
+ skipStaticChecks?: boolean | undefined;
209
+ skipBuild?: boolean | undefined;
210
+ skipDbCodegen?: boolean | undefined;
211
+ failFast?: string | undefined;
212
+ maxWaitSeconds?: string | undefined;
213
+ progressIntervalSeconds?: string | undefined;
214
+ playwrightWorkers?: string | undefined;
215
+ skipGithubComment?: boolean | undefined;
216
+ layers?: number[] | undefined;
217
+ }, {
218
+ mode: "ci-local" | "ci-pr-local";
219
+ status: "timeout" | "success" | "failure" | "cancelled";
220
+ repoKind: "unknown" | "monorepo" | "pj-repo";
221
+ steps: Record<string, {
222
+ status: "timeout" | "passed" | "failed" | "skipped";
223
+ exitCode?: number | undefined;
224
+ logPath?: string | undefined;
225
+ error?: string | undefined;
226
+ }>;
227
+ layers: Record<number, {
228
+ status: "timeout" | "passed" | "failed" | "skipped";
229
+ exitCode: number;
230
+ passed?: number | undefined;
231
+ total?: number | undefined;
232
+ logPath?: string | undefined;
233
+ description?: string | undefined;
234
+ level?: "blocking" | "warning" | "reportOnly" | undefined;
235
+ }>;
236
+ durationMs: number;
237
+ exitCode: 0 | 1 | 2;
238
+ summaryPath?: string | undefined;
239
+ error?: string | undefined;
240
+ }, import("xstate").EventObject, import("xstate").MetaObject, {
241
+ id: "ciMachine";
242
+ states: {
243
+ readonly idle: {};
244
+ readonly setup: {
245
+ states: {
246
+ readonly resolving: {};
247
+ readonly local: {};
248
+ readonly prLocal: {};
249
+ readonly complete: {};
250
+ };
251
+ };
252
+ readonly initialComment: {};
253
+ readonly dbReset: {};
254
+ readonly pullProduction: {};
255
+ readonly syncSchema: {};
256
+ readonly applySeeds: {};
257
+ readonly productionPreview: {};
258
+ readonly collectSchemaStats: {};
259
+ readonly decidePath: {};
260
+ readonly installPgTap: {};
261
+ readonly setupRoles: {};
262
+ readonly staticChecks: {};
263
+ readonly buildAndPlaywright: {};
264
+ readonly appStart: {};
265
+ readonly capabilities: {};
266
+ readonly runCoreTests: {};
267
+ readonly coreTestsComplete: {};
268
+ readonly coreTestsFailed: {};
269
+ readonly e2ePhase: {
270
+ states: {
271
+ readonly intermediateComment: {
272
+ states: {
273
+ readonly checking: {};
274
+ readonly posting: {};
275
+ readonly done: {};
276
+ };
277
+ };
278
+ readonly e2eTests: {
279
+ states: {
280
+ readonly running: {};
281
+ readonly done: {};
282
+ };
283
+ };
284
+ };
285
+ };
286
+ readonly finalize: {
287
+ states: {
288
+ readonly writeSummary: {};
289
+ readonly postComment: {};
290
+ readonly complete: {};
291
+ };
292
+ };
293
+ readonly done: {};
294
+ readonly failed: {};
295
+ };
296
+ }>;
297
+ export type CiMachine = typeof ciMachine;
298
+ export type CiSnapshot = SnapshotFrom<typeof ciMachine>;
299
+ /**
300
+ * Get current state name from snapshot.
301
+ */
302
+ export declare function getStateName(snapshot: CiSnapshot): string;
303
+ /**
304
+ * Check if machine is in a final state.
305
+ */
306
+ export declare function isComplete(snapshot: CiSnapshot): boolean;
307
+ /**
308
+ * Get error message from snapshot.
309
+ */
310
+ export declare function getError(snapshot: CiSnapshot): string | null;
311
+ /**
312
+ * Get exit code from snapshot.
313
+ */
314
+ export declare function getExitCode(snapshot: CiSnapshot): 0 | 1 | 2;
315
+ //# sourceMappingURL=machine.d.ts.map