@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.

Potentially problematic release.


This version of @runa-ai/runa-cli might be problematic. Click here for more details.

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,242 @@
1
+ /**
2
+ * AI HINT: Hotfix XState Machine - Emergency Fix Workflow
3
+ *
4
+ * Purpose: Orchestrate hotfix workflow from creation to completion
5
+ * Pattern: CLI-centric state machine with observable behavior
6
+ * Location: CLI owns workflow orchestration
7
+ *
8
+ * State Flow:
9
+ * loading → idle → creating → inProgress → deploying → deployed → completing → completed
10
+ * ↘ cancelling → cancelled
11
+ *
12
+ * The E2E Rule:
13
+ * - Each state produces observable behavior (log output, file changes)
14
+ * - Exit codes: 0=success, 1=failure, 2=cancelled
15
+ * - All transitions are testable via snapshot assertions
16
+ *
17
+ * E2E Test Mapping (CLI observable behavior):
18
+ * - loading → expect(log).toContain('Loading hotfix metadata')
19
+ * - idle → expect(log).toContain('No active hotfix')
20
+ * - creating → expect(file('.hotfix/metadata.json')).toExist()
21
+ * - inProgress → expect(log).toContain('Hotfix in progress')
22
+ * - deploying → expect(log).toContain('Deploying hotfix')
23
+ * - deployed → expect(log).toContain('Hotfix deployed')
24
+ * - completing → expect(log).toContain('Completing hotfix')
25
+ * - completed → expect(exitCode).toBe(0)
26
+ * - cancelled → expect(exitCode).toBe(2)
27
+ *
28
+ * Usage:
29
+ * ```ts
30
+ * import { runMachine } from '../../internal/machines/index.js';
31
+ * import { hotfixMachine } from './machine.js';
32
+ *
33
+ * const result = await runMachine({
34
+ * machine: hotfixMachine,
35
+ * input: { targetDir: process.cwd() },
36
+ * logger,
37
+ * });
38
+ * ```
39
+ */
40
+ import { type SnapshotFrom } from 'xstate';
41
+ import * as actors from './actors.js';
42
+ import type { HotfixMetadata } from './contract.js';
43
+ export interface HotfixContext {
44
+ targetDir: string;
45
+ metadata: HotfixMetadata | null;
46
+ prUrl?: string;
47
+ error?: string;
48
+ }
49
+ export type HotfixEvent = {
50
+ type: 'CREATE';
51
+ name: string;
52
+ base?: string;
53
+ skipSnapshot?: boolean;
54
+ } | {
55
+ type: 'DEPLOY';
56
+ autoApprove?: boolean;
57
+ skipChecks?: boolean;
58
+ } | {
59
+ type: 'COMPLETE';
60
+ noPr?: boolean;
61
+ autoApprove?: boolean;
62
+ } | {
63
+ type: 'CANCEL';
64
+ } | {
65
+ type: 'RESTORE';
66
+ };
67
+ export declare const hotfixMachine: import("xstate").StateMachine<HotfixContext, {
68
+ type: "CREATE";
69
+ name: string;
70
+ base?: string;
71
+ skipSnapshot?: boolean;
72
+ } | {
73
+ type: "DEPLOY";
74
+ autoApprove?: boolean;
75
+ skipChecks?: boolean;
76
+ } | {
77
+ type: "COMPLETE";
78
+ noPr?: boolean;
79
+ autoApprove?: boolean;
80
+ } | {
81
+ type: "CANCEL";
82
+ } | {
83
+ type: "RESTORE";
84
+ }, {
85
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
86
+ metadata: {
87
+ branch: string;
88
+ base: string;
89
+ createdAt: string;
90
+ createdBy: string;
91
+ status: "cancelled" | "deployed" | "in_progress" | "completed";
92
+ snapshot?: string | undefined;
93
+ deployedAt?: string | undefined;
94
+ completedAt?: string | undefined;
95
+ };
96
+ snapshotFile?: string | undefined;
97
+ }, actors.CreateHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
98
+ deployedAt: string;
99
+ }, actors.DeployHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
100
+ prUrl: string;
101
+ completedAt: string;
102
+ }, actors.CompleteHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, actors.CancelHotfixInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<{
103
+ branch: string;
104
+ base: string;
105
+ createdAt: string;
106
+ createdBy: string;
107
+ status: "cancelled" | "deployed" | "in_progress" | "completed";
108
+ snapshot?: string | undefined;
109
+ deployedAt?: string | undefined;
110
+ completedAt?: string | undefined;
111
+ } | null, actors.LoadMetadataInput, import("xstate").EventObject>> | undefined;
112
+ }, {
113
+ src: "createHotfix";
114
+ logic: import("xstate").PromiseActorLogic<{
115
+ metadata: {
116
+ branch: string;
117
+ base: string;
118
+ createdAt: string;
119
+ createdBy: string;
120
+ status: "cancelled" | "deployed" | "in_progress" | "completed";
121
+ snapshot?: string | undefined;
122
+ deployedAt?: string | undefined;
123
+ completedAt?: string | undefined;
124
+ };
125
+ snapshotFile?: string | undefined;
126
+ }, actors.CreateHotfixInput, import("xstate").EventObject>;
127
+ id: string | undefined;
128
+ } | {
129
+ src: "deployHotfix";
130
+ logic: import("xstate").PromiseActorLogic<{
131
+ deployedAt: string;
132
+ }, actors.DeployHotfixInput, import("xstate").EventObject>;
133
+ id: string | undefined;
134
+ } | {
135
+ src: "completeHotfix";
136
+ logic: import("xstate").PromiseActorLogic<{
137
+ prUrl: string;
138
+ completedAt: string;
139
+ }, actors.CompleteHotfixInput, import("xstate").EventObject>;
140
+ id: string | undefined;
141
+ } | {
142
+ src: "cancelHotfix";
143
+ logic: import("xstate").PromiseActorLogic<void, actors.CancelHotfixInput, import("xstate").EventObject>;
144
+ id: string | undefined;
145
+ } | {
146
+ src: "loadMetadata";
147
+ logic: import("xstate").PromiseActorLogic<{
148
+ branch: string;
149
+ base: string;
150
+ createdAt: string;
151
+ createdBy: string;
152
+ status: "cancelled" | "deployed" | "in_progress" | "completed";
153
+ snapshot?: string | undefined;
154
+ deployedAt?: string | undefined;
155
+ completedAt?: string | undefined;
156
+ } | null, actors.LoadMetadataInput, import("xstate").EventObject>;
157
+ id: string | undefined;
158
+ }, {
159
+ type: "setMetadata";
160
+ params: {
161
+ metadata: HotfixMetadata;
162
+ };
163
+ } | {
164
+ type: "setError";
165
+ params: {
166
+ error: string;
167
+ };
168
+ } | {
169
+ type: "setPrUrl";
170
+ params: {
171
+ prUrl: string;
172
+ };
173
+ } | {
174
+ type: "clearError";
175
+ params: import("xstate").NonReducibleUnknown;
176
+ }, {
177
+ type: "hasActiveHotfix";
178
+ params: unknown;
179
+ } | {
180
+ type: "isInProgress";
181
+ params: unknown;
182
+ } | {
183
+ type: "isDeployed";
184
+ params: unknown;
185
+ }, never, "idle" | "cancelled" | "deployed" | "completed" | "inProgress" | "creating" | "deploying" | "cancelling" | "completing" | "loading", string, {
186
+ targetDir?: string | undefined;
187
+ existingMetadata?: {
188
+ branch: string;
189
+ base: string;
190
+ createdAt: string;
191
+ createdBy: string;
192
+ status: "cancelled" | "deployed" | "in_progress" | "completed";
193
+ snapshot?: string | undefined;
194
+ deployedAt?: string | undefined;
195
+ completedAt?: string | undefined;
196
+ } | null | undefined;
197
+ }, {
198
+ success: boolean;
199
+ exitCode: 0 | 1 | 2;
200
+ finalState: string;
201
+ metadata: {
202
+ branch: string;
203
+ base: string;
204
+ createdAt: string;
205
+ createdBy: string;
206
+ status: "cancelled" | "deployed" | "in_progress" | "completed";
207
+ snapshot?: string | undefined;
208
+ deployedAt?: string | undefined;
209
+ completedAt?: string | undefined;
210
+ } | null;
211
+ prUrl?: string | undefined;
212
+ error?: string | undefined;
213
+ }, import("xstate").EventObject, import("xstate").MetaObject, {
214
+ id: "hotfix";
215
+ states: {
216
+ readonly loading: {};
217
+ readonly idle: {};
218
+ readonly creating: {};
219
+ readonly inProgress: {};
220
+ readonly deploying: {};
221
+ readonly deployed: {};
222
+ readonly completing: {};
223
+ readonly cancelling: {};
224
+ readonly completed: {};
225
+ readonly cancelled: {};
226
+ };
227
+ }>;
228
+ export type HotfixMachine = typeof hotfixMachine;
229
+ export type HotfixSnapshot = SnapshotFrom<typeof hotfixMachine>;
230
+ /**
231
+ * Get current state name from snapshot
232
+ */
233
+ export declare function getHotfixStateName(snapshot: HotfixSnapshot): string;
234
+ /**
235
+ * Check if machine is in a final state
236
+ */
237
+ export declare function isHotfixComplete(snapshot: HotfixSnapshot): boolean;
238
+ /**
239
+ * Get available events for current state
240
+ */
241
+ export declare function getAvailableHotfixEvents(snapshot: HotfixSnapshot): string[];
242
+ //# sourceMappingURL=machine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/hotfix/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AAE1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,eAAe,CAAC;AAuIvB,MAAM,WAAW,aAAa;IAE5B,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAEhC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAMxB,eAAO,MAAM,aAAa;UAVd,QAAQ;UAAQ,MAAM;WAAS,MAAM;mBAAiB,OAAO;;UAC7D,QAAQ;kBAAgB,OAAO;iBAAe,OAAO;;UACrD,UAAU;WAAS,OAAO;kBAAgB,OAAO;;UACjD,QAAQ;;UACR,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BmB,cAAc;;;;;eAGpB,MAAM;;;;;eAGN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4OtC,CAAC;AAMH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAEnE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAElE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,EAAE,CAY3E"}
@@ -0,0 +1,37 @@
1
+ import { type CreateHotfixMetadataInput, type GetHotfixInput, type HotfixMetadata, type ListArchivedHotfixesInput, type ListArchivedHotfixesOutput, type UpdateHotfixInput } from './contract.js';
2
+ export type { HotfixMetadata, HotfixStatus } from './contract.js';
3
+ /**
4
+ * Get current hotfix metadata
5
+ */
6
+ export declare function getHotfixMetadata(input?: GetHotfixInput): Promise<HotfixMetadata | null>;
7
+ /**
8
+ * Check if there's an active hotfix
9
+ */
10
+ export declare function hasActiveHotfix(targetDir?: string): Promise<boolean>;
11
+ /**
12
+ * Create hotfix metadata
13
+ *
14
+ * @param input - Validated input with branch name (use validateHotfixName first)
15
+ */
16
+ export declare function createHotfixMetadata(input: CreateHotfixMetadataInput): Promise<HotfixMetadata>;
17
+ /**
18
+ * Update hotfix status
19
+ */
20
+ export declare function updateHotfixStatus(input: UpdateHotfixInput): Promise<HotfixMetadata>;
21
+ /**
22
+ * Archive current hotfix and clear active state
23
+ */
24
+ export declare function archiveHotfix(targetDir?: string): Promise<HotfixMetadata>;
25
+ /**
26
+ * Cancel current hotfix
27
+ */
28
+ export declare function cancelHotfix(targetDir?: string): Promise<HotfixMetadata>;
29
+ /**
30
+ * List archived hotfixes
31
+ */
32
+ export declare function listArchivedHotfixes(input?: ListArchivedHotfixesInput): Promise<ListArchivedHotfixesOutput>;
33
+ /**
34
+ * Validate hotfix branch name
35
+ */
36
+ export declare function validateHotfixName(name: string): string;
37
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/commands/hotfix/metadata.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EAEnB,KAAK,cAAc,EAEnB,KAAK,yBAAyB,EAE9B,KAAK,0BAA0B,EAE/B,KAAK,iBAAiB,EAEvB,MAAM,eAAe,CAAC;AAMvB,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA8BlE;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,GAAE,cAAmB,GACzB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAWhC;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG1E;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,cAAc,CAAC,CAmBzB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAoB1F;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CA6B/E;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAU9E;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,GAAE,yBAA8B,GACpC,OAAO,CAAC,0BAA0B,CAAC,CA+BrC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYvD"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * AI HINT: Hotfix Machine CLI Integration Helper
3
+ *
4
+ * Purpose: Shared utilities for CLI commands to interact with hotfixMachine
5
+ * Pattern: Create actor → Wait for loading → Send events → Wait for transitions
6
+ *
7
+ * Key Functions:
8
+ * - createHotfixActor: Create and start machine, wait for initial state
9
+ * - waitForStateTransition: Wait for machine to reach target state(s)
10
+ * - getHotfixState: Get current machine state info
11
+ */
12
+ import { type ActorRefFrom } from 'xstate';
13
+ import { type HotfixEvent, type HotfixSnapshot, hotfixMachine } from '../machine.js';
14
+ export type HotfixActor = ActorRefFrom<typeof hotfixMachine>;
15
+ /**
16
+ * Create and start a hotfix actor, waiting for initial state loading to complete
17
+ */
18
+ export declare function createHotfixActor(targetDir?: string, options?: {
19
+ timeout?: number;
20
+ }): Promise<HotfixActor>;
21
+ /**
22
+ * Wait for the machine to reach one of the target states
23
+ * Returns the snapshot when target state is reached, or throws on error/timeout
24
+ */
25
+ export declare function waitForStateTransition(actor: HotfixActor, targetStates: string[], options?: {
26
+ timeout?: number;
27
+ errorStates?: string[];
28
+ }): Promise<HotfixSnapshot>;
29
+ /**
30
+ * Send an event to the actor and wait for a target state
31
+ */
32
+ export declare function sendAndWait(actor: HotfixActor, event: HotfixEvent, targetStates: string[], options?: {
33
+ timeout?: number;
34
+ transitionStates?: string[];
35
+ }): Promise<HotfixSnapshot>;
36
+ /**
37
+ * Get current state information from snapshot
38
+ */
39
+ export interface HotfixStateInfo {
40
+ state: string;
41
+ isComplete: boolean;
42
+ availableEvents: string[];
43
+ metadata: {
44
+ branch?: string;
45
+ base?: string;
46
+ status?: string;
47
+ createdAt?: string;
48
+ deployedAt?: string;
49
+ } | null;
50
+ error?: string;
51
+ prUrl?: string;
52
+ }
53
+ export declare function getHotfixState(snapshot: HotfixSnapshot): HotfixStateInfo;
54
+ /**
55
+ * Check if a specific event is available in current state
56
+ */
57
+ export declare function canSendEvent(snapshot: HotfixSnapshot, eventType: string): boolean;
58
+ //# sourceMappingURL=hotfix-machine-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hotfix-machine-helper.d.ts","sourceRoot":"","sources":["../../../../src/commands/hotfix/utils/hotfix-machine-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,QAAQ,CAAC;AACxD,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,aAAa,EAEd,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,GAAE,MAAsB,EACjC,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GACjC,OAAO,CAAC,WAAW,CAAC,CA0BtB;AAuCD;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,WAAW,EAClB,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GACzD,OAAO,CAAC,cAAc,CAAC,CA2CzB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAClB,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GAC9D,OAAO,CAAC,cAAc,CAAC,CA4CzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,GAAG,IAAI,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,cAAc,GAAG,eAAe,CAiBxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAEjF"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * AI HINT: runa init command
3
+ *
4
+ * Purpose: Initialize pj-repo with runa configuration
5
+ * Design: Uses CLIError for error handling (no process.exit)
6
+ *
7
+ * Generates:
8
+ * - .github/workflows/runa.yml (CI/CD workflow)
9
+ * - runa.config.ts (project configuration)
10
+ * - AGENTS.md (AI development guidelines)
11
+ * - CLAUDE.md (Claude Code guide)
12
+ * - .claude/ (Claude Code configuration - rules, skills, commands)
13
+ * - .husky/_common.sh (shared shell functions)
14
+ * - .husky/pre-commit (typecheck, lint)
15
+ * - .husky/pre-push (Layer 0 tests)
16
+ * - biome.json (formatter)
17
+ * - .npmrc (GitHub Packages registry)
18
+ */
19
+ import { Command } from 'commander';
20
+ export declare const initCommand: Command;
21
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAcH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqYpC,eAAO,MAAM,WAAW,SAgKpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Shared Action
3
+ *
4
+ * Purpose: Shared action logic for the inject-test-attrs command
5
+ * Pattern: Extract action logic from CLI entry point for testability
6
+ *
7
+ * Commands: runa inject-test-attrs (or via runa build which calls this internally)
8
+ */
9
+ import type { Command } from 'commander';
10
+ /**
11
+ * Shared action handler for inject-test-attrs and manifest commands
12
+ */
13
+ export declare function injectTestAttrsAction(rawOptions: Record<string, unknown>, command: Command): Promise<void>;
14
+ //# sourceMappingURL=action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/action.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuFzC;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAgDf"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs CLI Entry Point
3
+ *
4
+ * Purpose: CLI interface for XState test attribute injection
5
+ * Pattern: Source-injection (git-managed output, like drizzle-kit)
6
+ *
7
+ * Usage:
8
+ * runa inject-test-attrs # Inject attributes to source files
9
+ * runa inject-test-attrs --check # Check if files need injection (CI)
10
+ * runa inject-test-attrs --verbose # Show detailed output
11
+ *
12
+ * Note: Consider using `runa manifest` for cleaner build integration.
13
+ */
14
+ import { Command } from 'commander';
15
+ export declare const injectTestAttrsCommand: Command;
16
+ //# sourceMappingURL=inject-test-attrs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inject-test-attrs.d.ts","sourceRoot":"","sources":["../../../../src/commands/inject-test-attrs/commands/inject-test-attrs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,sBAAsB,SAuB/B,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Contract
3
+ *
4
+ * Purpose: Zod schemas for inject-test-attrs I/O validation
5
+ * Pattern: Contract-first design - all inputs/outputs strictly typed
6
+ *
7
+ * Flow: discover → filter → transform → write → format
8
+ */
9
+ import { z } from 'zod';
10
+ export declare const InjectTestAttrsInputSchema: z.ZodObject<{
11
+ check: z.ZodDefault<z.ZodBoolean>;
12
+ force: z.ZodDefault<z.ZodBoolean>;
13
+ verbose: z.ZodDefault<z.ZodBoolean>;
14
+ include: z.ZodDefault<z.ZodArray<z.ZodString>>;
15
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
16
+ manifest: z.ZodDefault<z.ZodBoolean>;
17
+ manifestDir: z.ZodDefault<z.ZodString>;
18
+ resolveSchemas: z.ZodDefault<z.ZodBoolean>;
19
+ }, z.core.$strict>;
20
+ export declare const FileChangeSchema: z.ZodObject<{
21
+ filePath: z.ZodString;
22
+ injectedCount: z.ZodNumber;
23
+ machineIds: z.ZodArray<z.ZodString>;
24
+ changed: z.ZodBoolean;
25
+ }, z.core.$strip>;
26
+ export declare const MachineWithoutE2EMetaSchema: z.ZodObject<{
27
+ id: z.ZodString;
28
+ sourceFile: z.ZodString;
29
+ }, z.core.$strip>;
30
+ export declare const InjectTestAttrsOutputSchema: z.ZodObject<{
31
+ totalFiles: z.ZodNumber;
32
+ changedFiles: z.ZodNumber;
33
+ totalInjections: z.ZodNumber;
34
+ changes: z.ZodArray<z.ZodObject<{
35
+ filePath: z.ZodString;
36
+ injectedCount: z.ZodNumber;
37
+ machineIds: z.ZodArray<z.ZodString>;
38
+ changed: z.ZodBoolean;
39
+ }, z.core.$strip>>;
40
+ exitCode: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
41
+ manifestPath: z.ZodOptional<z.ZodString>;
42
+ manifestMachineCount: z.ZodOptional<z.ZodNumber>;
43
+ machinesWithoutE2EMeta: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
+ id: z.ZodString;
45
+ sourceFile: z.ZodString;
46
+ }, z.core.$strip>>>;
47
+ }, z.core.$strict>;
48
+ export type InjectTestAttrsInput = z.infer<typeof InjectTestAttrsInputSchema>;
49
+ export type InjectTestAttrsOutput = z.infer<typeof InjectTestAttrsOutputSchema>;
50
+ export type FileChange = z.infer<typeof FileChangeSchema>;
51
+ export type MachineWithoutE2EMeta = z.infer<typeof MachineWithoutE2EMetaSchema>;
52
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;kBA8B5B,CAAC;AAGZ,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;kBAc7B,CAAC;AAGZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Formatter
3
+ *
4
+ * Purpose: Format transformed files with Biome
5
+ * Pattern: Run biome format on batch of files
6
+ *
7
+ * Security: Uses execa with array arguments to prevent command injection
8
+ */
9
+ /**
10
+ * Format files with Biome
11
+ */
12
+ export declare function formatFilesWithBiome(files: string[], cwd: string): Promise<void>;
13
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/formatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBtF"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Barrel Export
3
+ *
4
+ * Purpose: Export CLI command and processor for external use
5
+ */
6
+ export { injectTestAttrsCommand } from './commands/inject-test-attrs.js';
7
+ export type { FileChange, InjectTestAttrsInput, InjectTestAttrsOutput } from './contract.js';
8
+ export { type ProcessorOptions, processFiles } from './processor.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,KAAK,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Manifest Generator
3
+ *
4
+ * Purpose: Generate E2E selector manifest and API contracts
5
+ * Pattern: Build unified manifest from XState machines and Hono routes
6
+ */
7
+ import type { MachineWithoutE2EMeta } from './contract.js';
8
+ /**
9
+ * Generate and write manifest files with enhanced metadata
10
+ *
11
+ * @param manifestDir - Directory for manifest output
12
+ * @param repoRoot - Repository root directory
13
+ * @param verbose - Enable verbose logging
14
+ * @param resolveSchemas - Whether to resolve Zod schemas to JSON Schema (v7+)
15
+ */
16
+ export declare function generateManifestFiles(manifestDir: string, repoRoot: string, verbose: boolean, resolveSchemas?: boolean): Promise<{
17
+ manifestPath: string;
18
+ machineCount: number;
19
+ machinesWithoutE2EMeta: MachineWithoutE2EMeta[];
20
+ }>;
21
+ //# sourceMappingURL=manifest-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-generator.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/manifest-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAkY3D;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,GAAE,OAAe,GAC9B,OAAO,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;CACjD,CAAC,CAyHD"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Processor Utilities
3
+ *
4
+ * Purpose: Utility functions for test attribute injection
5
+ * Pattern: Pure functions for code analysis and attribute extraction
6
+ */
7
+ import type { ProcessFileResult } from './types.js';
8
+ /** Marker comment to detect CLI-injected files */
9
+ export declare const CLI_INJECTION_MARKER = "@xstate-test-attrs-injected";
10
+ /**
11
+ * Check if a file path should be excluded from manifest collection
12
+ * Prevents template/internal files from mixing with actual app code
13
+ *
14
+ * Used for:
15
+ * - Routes (pages, layouts, API routes)
16
+ * - Machine definitions
17
+ * - Any file that shouldn't appear in the manifest
18
+ */
19
+ export declare function isExcludedScope(filePath: string): boolean;
20
+ /**
21
+ * Attribute patterns for test attribute extraction/stripping
22
+ * Centralized to ensure consistency between extraction and stripping operations
23
+ */
24
+ export declare const ATTRIBUTE_PATTERNS: {
25
+ /** Pattern to match data-action attribute */
26
+ readonly action: RegExp;
27
+ /** Pattern to match data-field attribute */
28
+ readonly field: RegExp;
29
+ /** Pattern to match data-testid attribute */
30
+ readonly testId: RegExp;
31
+ /** Pattern to match data-machine-id attribute */
32
+ readonly machineId: RegExp;
33
+ };
34
+ /**
35
+ * Quick check if code might contain machine hooks
36
+ * Used as pre-filter before expensive AST parsing
37
+ */
38
+ export declare function mightContainMachineHooks(code: string): boolean;
39
+ /**
40
+ * Quick check if code might contain JSX
41
+ */
42
+ export declare function mightContainJsx(code: string): boolean;
43
+ /**
44
+ * Strip existing test attributes from code.
45
+ */
46
+ export declare function stripInjectedAttributes(code: string): string;
47
+ /**
48
+ * Extract attribute values from code using a pattern
49
+ * Helper function to reduce duplication in extractInjectedAttributes
50
+ */
51
+ export declare function extractAttributeValues(code: string, pattern: RegExp): string[];
52
+ /**
53
+ * Extract actions, fields, and testIds from transformed code
54
+ * Uses centralized ATTRIBUTE_PATTERNS for consistency
55
+ */
56
+ export declare function extractInjectedAttributes(code: string): {
57
+ actions: string[];
58
+ fields: string[];
59
+ testIds: string[];
60
+ };
61
+ /**
62
+ * Collect route info for unified manifest
63
+ * This is called for ALL files, not just those with machine hooks
64
+ */
65
+ export declare function collectRouteInfo(relativePath: string, code: string, _verbose: boolean): void;
66
+ /** Empty result for skipped files */
67
+ export declare function emptyResult(filePath: string): ProcessFileResult;
68
+ /**
69
+ * Ensure a directory exists, creating it if necessary.
70
+ */
71
+ export declare function ensureDirectoryExists(dirPath: string): void;
72
+ /**
73
+ * Get SDK version for manifest
74
+ */
75
+ export declare function getGeneratorVersion(): string;
76
+ //# sourceMappingURL=processor-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processor-utils.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAkBlE;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B,6CAA6C;;IAE7C,4CAA4C;;IAE5C,6CAA6C;;IAE7C,iDAAiD;;CAEzC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ9E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG;IACvD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAMA;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CA+B5F;AAED,qCAAqC;AACrC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAU/D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI3D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAY5C"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * AI HINT: inject-test-attrs Processor
3
+ *
4
+ * Purpose: Core processing logic for XState test attribute injection
5
+ * Pattern: Reuses transformer from xstate-test-plugin, writes to source files
6
+ *
7
+ * Flow:
8
+ * 1. Discover files via glob
9
+ * 2. Pre-filter (quick check for useMachine/useActor)
10
+ * 3. Transform using xstate-test-plugin core
11
+ * 4. Write transformed code back to source
12
+ * 5. Format with biome
13
+ * 6. Generate E2E selector manifest (optional)
14
+ *
15
+ * Module Structure:
16
+ * - processor.ts (this file): Core processing orchestration
17
+ * - processor-utils.ts: Utility functions (extraction, filtering)
18
+ * - manifest-generator.ts: Manifest generation logic
19
+ * - types.ts: Shared type definitions
20
+ */
21
+ import type { InjectTestAttrsInput, InjectTestAttrsOutput } from './contract.js';
22
+ export interface ProcessorOptions extends InjectTestAttrsInput {
23
+ /** Repository root directory */
24
+ repoRoot: string;
25
+ }
26
+ /**
27
+ * Process all files and inject test attributes
28
+ *
29
+ * Three-pass approach for complete manifest + cross-component detection:
30
+ * 1. Pre-pass: Collect machine definitions (for manifest without hooks/JSX)
31
+ * 2. First pass: Process files with machine hooks (to populate prop-event registry)
32
+ * 3. Second pass: Process files with JSX but no machine hooks (to inject from registry)
33
+ */
34
+ export declare function processFiles(options: ProcessorOptions): Promise<InjectTestAttrsOutput>;
35
+ //# sourceMappingURL=processor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAcH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AAmBvB,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AA+RD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAiF5F"}