@cbnventures/nova 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (536) hide show
  1. package/README.md +10 -0
  2. package/bin/nova.mjs +3 -3
  3. package/build/package.json +14 -10
  4. package/build/src/cli/generate/github/funding.js +2 -2
  5. package/build/src/cli/generate/github/funding.js.map +1 -1
  6. package/build/src/cli/generate/github/issue-template.d.ts.map +1 -1
  7. package/build/src/cli/generate/github/issue-template.js +6 -95
  8. package/build/src/cli/generate/github/issue-template.js.map +1 -1
  9. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +12 -0
  10. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -0
  11. package/build/src/cli/generate/github/workflows-blueprint-validate.js +535 -0
  12. package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -0
  13. package/build/src/cli/generate/github/workflows-blueprint-variables.d.ts +9 -0
  14. package/build/src/cli/generate/github/workflows-blueprint-variables.d.ts.map +1 -0
  15. package/build/src/cli/generate/github/workflows-blueprint-variables.js +117 -0
  16. package/build/src/cli/generate/github/workflows-blueprint-variables.js.map +1 -0
  17. package/build/src/cli/generate/github/workflows-blueprint.d.ts +60 -0
  18. package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -0
  19. package/build/src/cli/generate/github/workflows-blueprint.js +2251 -0
  20. package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -0
  21. package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
  22. package/build/src/cli/generate/must-haves/agent-conventions.js +14 -5
  23. package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
  24. package/build/src/cli/generate/must-haves/dotenv.d.ts +5 -7
  25. package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
  26. package/build/src/cli/generate/must-haves/dotenv.js +146 -417
  27. package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
  28. package/build/src/cli/generate/must-haves/editorconfig.js +2 -2
  29. package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -1
  30. package/build/src/cli/generate/must-haves/gitignore.d.ts +0 -8
  31. package/build/src/cli/generate/must-haves/gitignore.d.ts.map +1 -1
  32. package/build/src/cli/generate/must-haves/gitignore.js +9 -397
  33. package/build/src/cli/generate/must-haves/gitignore.js.map +1 -1
  34. package/build/src/cli/generate/must-haves/license.d.ts.map +1 -1
  35. package/build/src/cli/generate/must-haves/license.js +4 -4
  36. package/build/src/cli/generate/must-haves/license.js.map +1 -1
  37. package/build/src/cli/generate/must-haves/read-me.d.ts +6 -2
  38. package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -1
  39. package/build/src/cli/generate/must-haves/read-me.js +103 -63
  40. package/build/src/cli/generate/must-haves/read-me.js.map +1 -1
  41. package/build/src/cli/index.js +108 -2
  42. package/build/src/cli/index.js.map +1 -1
  43. package/build/src/cli/recipe/github/sync-features.d.ts.map +1 -1
  44. package/build/src/cli/recipe/github/sync-features.js +5 -3
  45. package/build/src/cli/recipe/github/sync-features.js.map +1 -1
  46. package/build/src/cli/recipe/github/sync-identity.d.ts.map +1 -1
  47. package/build/src/cli/recipe/github/sync-identity.js +6 -4
  48. package/build/src/cli/recipe/github/sync-identity.js.map +1 -1
  49. package/build/src/cli/recipe/github/sync-policies.d.ts.map +1 -1
  50. package/build/src/cli/recipe/github/sync-policies.js +13 -4
  51. package/build/src/cli/recipe/github/sync-policies.js.map +1 -1
  52. package/build/src/cli/recipe/index.d.ts.map +1 -1
  53. package/build/src/cli/recipe/index.js +32 -0
  54. package/build/src/cli/recipe/index.js.map +1 -1
  55. package/build/src/cli/recipe/license/update-copyright.d.ts +7 -0
  56. package/build/src/cli/recipe/license/update-copyright.d.ts.map +1 -0
  57. package/build/src/cli/recipe/license/update-copyright.js +191 -0
  58. package/build/src/cli/recipe/license/update-copyright.js.map +1 -0
  59. package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -1
  60. package/build/src/cli/recipe/package-json/cleanup.js +14 -13
  61. package/build/src/cli/recipe/package-json/cleanup.js.map +1 -1
  62. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -1
  63. package/build/src/cli/recipe/package-json/normalize-artifacts.js +11 -6
  64. package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -1
  65. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -1
  66. package/build/src/cli/recipe/package-json/normalize-bundler.js +11 -6
  67. package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -1
  68. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -1
  69. package/build/src/cli/recipe/package-json/normalize-dependencies.js +18 -10
  70. package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -1
  71. package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -1
  72. package/build/src/cli/recipe/package-json/normalize-modules.js +11 -6
  73. package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -1
  74. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
  75. package/build/src/cli/recipe/package-json/normalize-tooling.js +12 -7
  76. package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -1
  77. package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
  78. package/build/src/cli/recipe/package-json/sync-environment.js +46 -14
  79. package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
  80. package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -1
  81. package/build/src/cli/recipe/package-json/sync-identity.js +29 -16
  82. package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -1
  83. package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -1
  84. package/build/src/cli/recipe/package-json/sync-ownership.js +18 -11
  85. package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -1
  86. package/build/src/cli/recipe/read-me/update-badges.d.ts +6 -0
  87. package/build/src/cli/recipe/read-me/update-badges.d.ts.map +1 -0
  88. package/build/src/cli/recipe/read-me/update-badges.js +115 -0
  89. package/build/src/cli/recipe/read-me/update-badges.js.map +1 -0
  90. package/build/src/cli/recipe/read-me/update-credits.d.ts +6 -0
  91. package/build/src/cli/recipe/read-me/update-credits.d.ts.map +1 -0
  92. package/build/src/cli/recipe/read-me/update-credits.js +115 -0
  93. package/build/src/cli/recipe/read-me/update-credits.js.map +1 -0
  94. package/build/src/cli/recipe/read-me/update-documentation.d.ts +6 -0
  95. package/build/src/cli/recipe/read-me/update-documentation.d.ts.map +1 -0
  96. package/build/src/cli/recipe/read-me/update-documentation.js +115 -0
  97. package/build/src/cli/recipe/read-me/update-documentation.js.map +1 -0
  98. package/build/src/cli/recipe/read-me/update-header.d.ts +6 -0
  99. package/build/src/cli/recipe/read-me/update-header.d.ts.map +1 -0
  100. package/build/src/cli/recipe/read-me/update-header.js +115 -0
  101. package/build/src/cli/recipe/read-me/update-header.js.map +1 -0
  102. package/build/src/cli/recipe/read-me/update-introduction.d.ts +6 -0
  103. package/build/src/cli/recipe/read-me/update-introduction.d.ts.map +1 -0
  104. package/build/src/cli/recipe/read-me/update-introduction.js +115 -0
  105. package/build/src/cli/recipe/read-me/update-introduction.js.map +1 -0
  106. package/build/src/cli/scaffold/starter/base.js +1 -1
  107. package/build/src/cli/scaffold/starter/base.js.map +1 -1
  108. package/build/src/cli/utility/changelog.d.ts +2 -0
  109. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  110. package/build/src/cli/utility/changelog.js +159 -3
  111. package/build/src/cli/utility/changelog.js.map +1 -1
  112. package/build/src/cli/utility/initialize.d.ts +9 -0
  113. package/build/src/cli/utility/initialize.d.ts.map +1 -1
  114. package/build/src/cli/utility/initialize.js +978 -111
  115. package/build/src/cli/utility/initialize.js.map +1 -1
  116. package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
  117. package/build/src/cli/utility/run-scripts.js +4 -4
  118. package/build/src/cli/utility/run-scripts.js.map +1 -1
  119. package/build/src/cli/utility/transpile.js +1 -1
  120. package/build/src/cli/utility/transpile.js.map +1 -1
  121. package/build/src/cli/utility/type-check.js +1 -1
  122. package/build/src/cli/utility/type-check.js.map +1 -1
  123. package/build/src/cli/utility/version.js +1 -1
  124. package/build/src/cli/utility/version.js.map +1 -1
  125. package/build/src/lib/dotenv.d.ts +3 -0
  126. package/build/src/lib/dotenv.d.ts.map +1 -0
  127. package/build/src/lib/dotenv.js +66 -0
  128. package/build/src/lib/dotenv.js.map +1 -0
  129. package/build/src/lib/env-github.d.ts +4 -0
  130. package/build/src/lib/env-github.d.ts.map +1 -0
  131. package/build/src/lib/env-github.js +57 -0
  132. package/build/src/lib/env-github.js.map +1 -0
  133. package/build/src/lib/env-managed-set.d.ts +3 -0
  134. package/build/src/lib/env-managed-set.d.ts.map +1 -0
  135. package/build/src/lib/env-managed-set.js +102 -0
  136. package/build/src/lib/env-managed-set.js.map +1 -0
  137. package/build/src/lib/env-namespace.d.ts +3 -0
  138. package/build/src/lib/env-namespace.d.ts.map +1 -0
  139. package/build/src/lib/env-namespace.js +11 -0
  140. package/build/src/lib/env-namespace.js.map +1 -0
  141. package/build/src/lib/env-reconcile.d.ts +3 -0
  142. package/build/src/lib/env-reconcile.d.ts.map +1 -0
  143. package/build/src/lib/env-reconcile.js +109 -0
  144. package/build/src/lib/env-reconcile.js.map +1 -0
  145. package/build/src/lib/env-status.d.ts +3 -0
  146. package/build/src/lib/env-status.d.ts.map +1 -0
  147. package/build/src/lib/env-status.js +113 -0
  148. package/build/src/lib/env-status.js.map +1 -0
  149. package/build/src/lib/file-discovery.d.ts +3 -0
  150. package/build/src/lib/file-discovery.d.ts.map +1 -0
  151. package/build/src/lib/file-discovery.js +32 -0
  152. package/build/src/lib/file-discovery.js.map +1 -0
  153. package/build/src/lib/item.d.ts +4 -1
  154. package/build/src/lib/item.d.ts.map +1 -1
  155. package/build/src/lib/item.js +35 -0
  156. package/build/src/lib/item.js.map +1 -1
  157. package/build/src/lib/markdown-slug.d.ts +4 -0
  158. package/build/src/lib/markdown-slug.d.ts.map +1 -0
  159. package/build/src/lib/markdown-slug.js +25 -0
  160. package/build/src/lib/markdown-slug.js.map +1 -0
  161. package/build/src/lib/nova-config.d.ts +14 -2
  162. package/build/src/lib/nova-config.d.ts.map +1 -1
  163. package/build/src/lib/nova-config.js +507 -78
  164. package/build/src/lib/nova-config.js.map +1 -1
  165. package/build/src/lib/read-me-regions.d.ts +4 -0
  166. package/build/src/lib/read-me-regions.d.ts.map +1 -0
  167. package/build/src/lib/read-me-regions.js +33 -0
  168. package/build/src/lib/read-me-regions.js.map +1 -0
  169. package/build/src/lib/regex.d.ts +73 -0
  170. package/build/src/lib/regex.d.ts.map +1 -1
  171. package/build/src/lib/regex.js +75 -2
  172. package/build/src/lib/regex.js.map +1 -1
  173. package/build/src/lib/scaffold.d.ts.map +1 -1
  174. package/build/src/lib/scaffold.js +33 -14
  175. package/build/src/lib/scaffold.js.map +1 -1
  176. package/build/src/lib/type-declaration-engine.d.ts +32 -0
  177. package/build/src/lib/type-declaration-engine.d.ts.map +1 -0
  178. package/build/src/lib/type-declaration-engine.js +796 -0
  179. package/build/src/lib/type-declaration-engine.js.map +1 -0
  180. package/build/src/lib/utility.d.ts +2 -1
  181. package/build/src/lib/utility.d.ts.map +1 -1
  182. package/build/src/lib/utility.js +47 -15
  183. package/build/src/lib/utility.js.map +1 -1
  184. package/build/src/lib/workflow-templates.d.ts.map +1 -1
  185. package/build/src/lib/workflow-templates.js +86 -60
  186. package/build/src/lib/workflow-templates.js.map +1 -1
  187. package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -1
  188. package/build/src/presets/eslint/dx-code-style.js +6 -0
  189. package/build/src/presets/eslint/dx-code-style.js.map +1 -1
  190. package/build/src/presets/eslint/fw-astro.d.ts +4 -0
  191. package/build/src/presets/eslint/fw-astro.d.ts.map +1 -0
  192. package/build/src/presets/eslint/fw-astro.js +13 -0
  193. package/build/src/presets/eslint/fw-astro.js.map +1 -0
  194. package/build/src/presets/eslint/index.d.ts +1 -0
  195. package/build/src/presets/eslint/index.d.ts.map +1 -1
  196. package/build/src/presets/eslint/index.js +1 -0
  197. package/build/src/presets/eslint/index.js.map +1 -1
  198. package/build/src/presets/tsconfig/fw-astro.json +15 -0
  199. package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -1
  200. package/build/src/rules/eslint/conventions/no-implicit-boolean.js +3 -2
  201. package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -1
  202. package/build/src/rules/eslint/conventions/require-hash-private.js +1 -1
  203. package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -1
  204. package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -1
  205. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +4 -1
  206. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -1
  207. package/build/src/rules/eslint/conventions/require-node-protocol.d.ts +11 -0
  208. package/build/src/rules/eslint/conventions/require-node-protocol.d.ts.map +1 -0
  209. package/build/src/rules/eslint/conventions/require-node-protocol.js +76 -0
  210. package/build/src/rules/eslint/conventions/require-node-protocol.js.map +1 -0
  211. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -1
  212. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +2 -1
  213. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -1
  214. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -1
  215. package/build/src/rules/eslint/formatting/require-padding-lines.js +7 -3
  216. package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -1
  217. package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -1
  218. package/build/src/rules/eslint/formatting/require-ternary-parens.js +7 -17
  219. package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -1
  220. package/build/src/rules/eslint/index.d.ts +4 -0
  221. package/build/src/rules/eslint/index.d.ts.map +1 -1
  222. package/build/src/rules/eslint/index.js +4 -0
  223. package/build/src/rules/eslint/index.js.map +1 -1
  224. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +3 -2
  225. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -1
  226. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +22 -0
  227. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -1
  228. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +2 -1
  229. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -1
  230. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +19 -4
  231. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -1
  232. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts.map +1 -1
  233. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js +3 -2
  234. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js.map +1 -1
  235. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -1
  236. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +10 -6
  237. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -1
  238. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.d.ts +12 -0
  239. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.d.ts.map +1 -0
  240. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.js +169 -0
  241. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.js.map +1 -0
  242. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.d.ts +11 -0
  243. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.d.ts.map +1 -0
  244. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.js +80 -0
  245. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.js.map +1 -0
  246. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts +1 -1
  247. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts.map +1 -1
  248. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +102 -6
  249. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -1
  250. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts +15 -0
  251. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts.map +1 -0
  252. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.js +290 -0
  253. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.js.map +1 -0
  254. package/build/src/rules/eslint/patterns/no-await-in-loop.js +1 -1
  255. package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -1
  256. package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -1
  257. package/build/src/rules/eslint/patterns/no-bracket-method-call.js +4 -0
  258. package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -1
  259. package/build/src/rules/eslint/regex/no-regex-literals.d.ts +1 -0
  260. package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
  261. package/build/src/rules/eslint/regex/no-regex-literals.js +39 -1
  262. package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
  263. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -1
  264. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +4 -1
  265. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -1
  266. package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -1
  267. package/build/src/rules/eslint/typescript/require-bracket-property-access.js +8 -1
  268. package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -1
  269. package/build/src/rules/eslint/typescript/require-type-naming.js +2 -2
  270. package/build/src/rules/eslint/typescript/require-type-naming.js.map +1 -1
  271. package/build/src/rules/vitest/active-vitest.d.ts +5 -0
  272. package/build/src/rules/vitest/active-vitest.d.ts.map +1 -0
  273. package/build/src/rules/vitest/active-vitest.js +19 -0
  274. package/build/src/rules/vitest/active-vitest.js.map +1 -0
  275. package/build/src/rules/vitest/dotenv/register.d.ts +3 -0
  276. package/build/src/rules/vitest/dotenv/register.d.ts.map +1 -0
  277. package/build/src/rules/vitest/dotenv/register.js +22 -0
  278. package/build/src/rules/vitest/dotenv/register.js.map +1 -0
  279. package/build/src/rules/vitest/dotenv/rules.d.ts +3 -0
  280. package/build/src/rules/vitest/dotenv/rules.d.ts.map +1 -0
  281. package/build/src/rules/vitest/dotenv/rules.js +32 -0
  282. package/build/src/rules/vitest/dotenv/rules.js.map +1 -0
  283. package/build/src/rules/vitest/enable.d.ts +3 -0
  284. package/build/src/rules/vitest/enable.d.ts.map +1 -0
  285. package/build/src/rules/vitest/enable.js +7 -0
  286. package/build/src/rules/vitest/enable.js.map +1 -0
  287. package/build/src/rules/vitest/frontmatter/register.d.ts +3 -0
  288. package/build/src/rules/vitest/frontmatter/register.d.ts.map +1 -0
  289. package/build/src/rules/vitest/frontmatter/register.js +52 -0
  290. package/build/src/rules/vitest/frontmatter/register.js.map +1 -0
  291. package/build/src/rules/vitest/frontmatter/rules.d.ts +15 -0
  292. package/build/src/rules/vitest/frontmatter/rules.d.ts.map +1 -0
  293. package/build/src/rules/vitest/frontmatter/rules.js +498 -0
  294. package/build/src/rules/vitest/frontmatter/rules.js.map +1 -0
  295. package/build/src/rules/vitest/index.d.ts +8 -0
  296. package/build/src/rules/vitest/index.d.ts.map +1 -0
  297. package/build/src/rules/vitest/index.js +7 -0
  298. package/build/src/rules/vitest/index.js.map +1 -0
  299. package/build/src/rules/vitest/link/register.d.ts +3 -0
  300. package/build/src/rules/vitest/link/register.d.ts.map +1 -0
  301. package/build/src/rules/vitest/link/register.js +44 -0
  302. package/build/src/rules/vitest/link/register.js.map +1 -0
  303. package/build/src/rules/vitest/link/rules.d.ts +12 -0
  304. package/build/src/rules/vitest/link/rules.d.ts.map +1 -0
  305. package/build/src/rules/vitest/link/rules.js +313 -0
  306. package/build/src/rules/vitest/link/rules.js.map +1 -0
  307. package/build/src/rules/vitest/markdown-table/register.d.ts +3 -0
  308. package/build/src/rules/vitest/markdown-table/register.d.ts.map +1 -0
  309. package/build/src/rules/vitest/markdown-table/register.js +26 -0
  310. package/build/src/rules/vitest/markdown-table/register.js.map +1 -0
  311. package/build/src/rules/vitest/markdown-table/rules.d.ts +3 -0
  312. package/build/src/rules/vitest/markdown-table/rules.d.ts.map +1 -0
  313. package/build/src/rules/vitest/markdown-table/rules.js +99 -0
  314. package/build/src/rules/vitest/markdown-table/rules.js.map +1 -0
  315. package/build/src/rules/vitest/terminology/register.d.ts +3 -0
  316. package/build/src/rules/vitest/terminology/register.d.ts.map +1 -0
  317. package/build/src/rules/vitest/terminology/register.js +39 -0
  318. package/build/src/rules/vitest/terminology/register.js.map +1 -0
  319. package/build/src/rules/vitest/terminology/rules.d.ts +10 -0
  320. package/build/src/rules/vitest/terminology/rules.d.ts.map +1 -0
  321. package/build/src/rules/vitest/terminology/rules.js +202 -0
  322. package/build/src/rules/vitest/terminology/rules.js.map +1 -0
  323. package/build/src/rules/vitest/type-declarations/register.d.ts +3 -0
  324. package/build/src/rules/vitest/type-declarations/register.d.ts.map +1 -0
  325. package/build/src/rules/vitest/type-declarations/register.js +33 -0
  326. package/build/src/rules/vitest/type-declarations/register.js.map +1 -0
  327. package/build/src/rules/vitest/type-declarations/rules.d.ts +13 -0
  328. package/build/src/rules/vitest/type-declarations/rules.d.ts.map +1 -0
  329. package/build/src/rules/vitest/type-declarations/rules.js +736 -0
  330. package/build/src/rules/vitest/type-declarations/rules.js.map +1 -0
  331. package/build/src/toolkit/index.d.ts +1 -0
  332. package/build/src/toolkit/index.d.ts.map +1 -1
  333. package/build/src/toolkit/index.js +1 -0
  334. package/build/src/toolkit/index.js.map +1 -1
  335. package/build/src/toolkit/logger.d.ts.map +1 -1
  336. package/build/src/toolkit/logger.js +3 -1
  337. package/build/src/toolkit/logger.js.map +1 -1
  338. package/build/src/toolkit/markdown-table.js +1 -1
  339. package/build/src/toolkit/markdown-table.js.map +1 -1
  340. package/build/src/toolkit/nova-identity.d.ts +19 -0
  341. package/build/src/toolkit/nova-identity.d.ts.map +1 -0
  342. package/build/src/toolkit/nova-identity.js +141 -0
  343. package/build/src/toolkit/nova-identity.js.map +1 -0
  344. package/build/src/types/cli/generate/github/funding.d.ts +4 -4
  345. package/build/src/types/cli/generate/github/issue-template.d.ts +15 -35
  346. package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +351 -0
  347. package/build/src/types/cli/generate/github/workflows-blueprint-variables.d.ts +131 -0
  348. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +1180 -0
  349. package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +9 -2
  350. package/build/src/types/cli/generate/must-haves/dotenv.d.ts +101 -314
  351. package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +2 -2
  352. package/build/src/types/cli/generate/must-haves/gitignore.d.ts +13 -343
  353. package/build/src/types/cli/generate/must-haves/license.d.ts +5 -5
  354. package/build/src/types/cli/generate/must-haves/read-me.d.ts +136 -88
  355. package/build/src/types/cli/index.d.ts +14 -0
  356. package/build/src/types/cli/recipe/github/handle-gh-failure.d.ts +2 -2
  357. package/build/src/types/cli/recipe/github/sync-features.d.ts +20 -13
  358. package/build/src/types/cli/recipe/github/sync-identity.d.ts +20 -13
  359. package/build/src/types/cli/recipe/github/sync-policies.d.ts +24 -15
  360. package/build/src/types/cli/recipe/index.d.ts +7 -3
  361. package/build/src/types/cli/recipe/license/update-copyright.d.ts +142 -0
  362. package/build/src/types/cli/recipe/package-json/cleanup.d.ts +26 -22
  363. package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +22 -16
  364. package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +20 -14
  365. package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +31 -19
  366. package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +20 -14
  367. package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +20 -14
  368. package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +46 -22
  369. package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +36 -19
  370. package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +33 -23
  371. package/build/src/types/cli/recipe/read-me/update-badges.d.ts +77 -0
  372. package/build/src/types/cli/recipe/read-me/update-credits.d.ts +77 -0
  373. package/build/src/types/cli/recipe/read-me/update-documentation.d.ts +77 -0
  374. package/build/src/types/cli/recipe/read-me/update-header.d.ts +77 -0
  375. package/build/src/types/cli/recipe/read-me/update-introduction.d.ts +77 -0
  376. package/build/src/types/cli/scaffold/starter/base.d.ts +2 -2
  377. package/build/src/types/cli/utility/changelog.d.ts +165 -73
  378. package/build/src/types/cli/utility/initialize.d.ts +1007 -350
  379. package/build/src/types/cli/utility/run-scripts.d.ts +1 -1
  380. package/build/src/types/cli/utility/transpile.d.ts +8 -3
  381. package/build/src/types/cli/utility/type-check.d.ts +9 -3
  382. package/build/src/types/cli/utility/version.d.ts +32 -32
  383. package/build/src/types/lib/constants.d.ts +1 -1
  384. package/build/src/types/lib/dotenv.d.ts +67 -0
  385. package/build/src/types/lib/env-github.d.ts +67 -0
  386. package/build/src/types/lib/env-managed-set.d.ts +90 -0
  387. package/build/src/types/lib/env-namespace.d.ts +22 -0
  388. package/build/src/types/lib/env-reconcile.d.ts +71 -0
  389. package/build/src/types/lib/env-status.d.ts +102 -0
  390. package/build/src/types/lib/file-discovery.d.ts +40 -0
  391. package/build/src/types/lib/item.d.ts +42 -0
  392. package/build/src/types/lib/markdown-slug.d.ts +25 -0
  393. package/build/src/types/lib/nova-config.d.ts +455 -68
  394. package/build/src/types/lib/read-me-regions.d.ts +51 -0
  395. package/build/src/types/lib/regex.d.ts +193 -18
  396. package/build/src/types/lib/scaffold.d.ts +43 -23
  397. package/build/src/types/lib/type-declaration-engine.d.ts +1052 -0
  398. package/build/src/types/lib/utility.d.ts +40 -6
  399. package/build/src/types/lib/workflow-templates.d.ts +11 -75
  400. package/build/src/types/presets/eslint/fw-astro.d.ts +8 -0
  401. package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +7 -0
  402. package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +8 -4
  403. package/build/src/types/rules/eslint/conventions/require-node-protocol.d.ts +56 -0
  404. package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +2 -0
  405. package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +8 -3
  406. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +16 -0
  407. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +19 -15
  408. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +3 -1
  409. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-presence.d.ts +125 -0
  410. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-returns.d.ts +48 -0
  411. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-since.d.ts +71 -1
  412. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts +204 -0
  413. package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +1 -1
  414. package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +1 -1
  415. package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +44 -0
  416. package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +19 -7
  417. package/build/src/types/rules/eslint/typescript/require-type-naming.d.ts +3 -3
  418. package/build/src/types/rules/vitest/active-vitest.d.ts +31 -0
  419. package/build/src/types/rules/vitest/dotenv/register.d.ts +31 -0
  420. package/build/src/types/rules/vitest/dotenv/rules.d.ts +29 -0
  421. package/build/src/types/rules/vitest/enable.d.ts +12 -0
  422. package/build/src/types/rules/vitest/frontmatter/register.d.ts +63 -0
  423. package/build/src/types/rules/vitest/frontmatter/rules.d.ts +430 -0
  424. package/build/src/types/rules/vitest/index.d.ts +419 -0
  425. package/build/src/types/rules/vitest/link/register.d.ts +79 -0
  426. package/build/src/types/rules/vitest/link/rules.d.ts +368 -0
  427. package/build/src/types/rules/vitest/markdown-table/register.d.ts +33 -0
  428. package/build/src/types/rules/vitest/markdown-table/rules.d.ts +55 -0
  429. package/build/src/types/rules/vitest/terminology/register.d.ts +48 -0
  430. package/build/src/types/rules/vitest/terminology/rules.d.ts +190 -0
  431. package/build/src/types/rules/vitest/type-declarations/register.d.ts +46 -0
  432. package/build/src/types/rules/vitest/type-declarations/rules.d.ts +894 -0
  433. package/build/src/types/shared.d.ts +727 -26
  434. package/build/src/types/tests/cli/generate/github/funding.test.d.ts +14 -10
  435. package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +38 -17
  436. package/build/src/types/tests/cli/generate/github/workflows-blueprint-generate.test.d.ts +199 -0
  437. package/build/src/types/tests/cli/generate/github/workflows-blueprint-parity.test.d.ts +75 -0
  438. package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +295 -0
  439. package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +901 -0
  440. package/build/src/types/tests/cli/generate/github/workflows-blueprint-variables.test.d.ts +144 -0
  441. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +332 -0
  442. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +83 -11
  443. package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +142 -12
  444. package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +12 -8
  445. package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +14 -19
  446. package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +33 -10
  447. package/build/src/types/tests/cli/recipe/github/handle-gh-failure.test.d.ts +28 -24
  448. package/build/src/types/tests/cli/recipe/github/sync-features.test.d.ts +115 -111
  449. package/build/src/types/tests/cli/recipe/github/sync-identity.test.d.ts +192 -142
  450. package/build/src/types/tests/cli/recipe/github/sync-policies.test.d.ts +199 -126
  451. package/build/src/types/tests/cli/recipe/license/update-copyright.test.d.ts +617 -0
  452. package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +27 -0
  453. package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +21 -0
  454. package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +52 -0
  455. package/build/src/types/tests/cli/recipe/read-me/update-badges.test.d.ts +258 -0
  456. package/build/src/types/tests/cli/recipe/read-me/update-credits.test.d.ts +258 -0
  457. package/build/src/types/tests/cli/recipe/read-me/update-documentation.test.d.ts +258 -0
  458. package/build/src/types/tests/cli/recipe/read-me/update-header.test.d.ts +258 -0
  459. package/build/src/types/tests/cli/recipe/read-me/update-introduction.test.d.ts +258 -0
  460. package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +4 -0
  461. package/build/src/types/tests/cli/utility/changelog.test.d.ts +293 -0
  462. package/build/src/types/tests/cli/utility/initialize.test.d.ts +148 -1
  463. package/build/src/types/tests/lib/dotenv.test.d.ts +95 -0
  464. package/build/src/types/tests/lib/file-discovery.test.d.ts +37 -0
  465. package/build/src/types/tests/lib/item.test.d.ts +21 -0
  466. package/build/src/types/tests/lib/markdown-slug.test.d.ts +24 -0
  467. package/build/src/types/tests/lib/nova-config.test.d.ts +503 -83
  468. package/build/src/types/tests/lib/read-me-regions.test.d.ts +43 -0
  469. package/build/src/types/tests/lib/regex.test.d.ts +252 -0
  470. package/build/src/types/tests/lib/utility.test.d.ts +35 -0
  471. package/build/src/types/tests/lib/workflow-templates.test.d.ts +18 -2
  472. package/build/src/types/tests/rules/eslint/conventions/require-node-protocol.test.d.ts +8 -0
  473. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-presence.test.d.ts +8 -0
  474. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-returns.test.d.ts +8 -0
  475. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-since.test.d.ts +18 -0
  476. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-tag-order.test.d.ts +8 -0
  477. package/build/src/types/tests/rules/vitest/active-vitest.test.d.ts +56 -0
  478. package/build/src/types/tests/rules/vitest/dotenv.test.d.ts +19 -0
  479. package/build/src/types/tests/rules/vitest/enable.test.d.ts +27 -0
  480. package/build/src/types/tests/rules/vitest/frontmatter.test.d.ts +22 -0
  481. package/build/src/types/tests/rules/vitest/link.test.d.ts +74 -0
  482. package/build/src/types/tests/rules/vitest/markdown-table.test.d.ts +28 -0
  483. package/build/src/types/tests/rules/vitest/terminology.test.d.ts +43 -0
  484. package/build/src/types/tests/rules/vitest/type-declarations.test.d.ts +10 -0
  485. package/build/src/types/tests/scaffold-version-drift.test.d.ts +42 -0
  486. package/build/src/types/tests/since-version.test.d.ts +137 -0
  487. package/build/src/types/tests/toolkit/logger.test.d.ts +70 -5
  488. package/build/src/types/tests/toolkit/nova-identity.test.d.ts +118 -0
  489. package/build/src/types/tests/type-declarations.test.d.ts +40 -1813
  490. package/build/src/types/toolkit/logger.d.ts +4 -0
  491. package/build/src/types/toolkit/nova-identity.d.ts +313 -0
  492. package/build/templates/generators/github/workflows/check-sponsor-gated-issues/base.yml +1 -1
  493. package/build/templates/generators/github/workflows/publish/base.yml +3 -1
  494. package/build/templates/generators/github/workflows/publish/targets/cloudflare-pages-docusaurus.yml +1 -1
  495. package/build/templates/generators/github/workflows/publish/targets/cloudflare-workers.yml +36 -0
  496. package/build/templates/generators/github/workflows/publish/targets/docker-hub.yml +1 -1
  497. package/build/templates/generators/github/workflows/publish/targets/ghcr.yml +1 -1
  498. package/build/templates/generators/github/workflows/publish/targets/github-action.yml +1 -1
  499. package/build/templates/generators/github/workflows/publish/targets/github-packages.yml +1 -1
  500. package/build/templates/generators/github/workflows/publish/targets/github-pages-docusaurus.yml +4 -4
  501. package/build/templates/generators/github/workflows/publish/targets/npm.yml +1 -1
  502. package/build/templates/generators/github/workflows/publish/targets/vercel-nextjs.yml +1 -1
  503. package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +1 -2
  504. package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +1 -2
  505. package/build/templates/generators/must-haves/agent-conventions/conventions/java.md +5 -5
  506. package/build/templates/generators/must-haves/agent-conventions/conventions/kotlin.md +4 -4
  507. package/build/templates/generators/must-haves/agent-conventions/conventions/php.md +2 -2
  508. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +6 -6
  509. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +2 -0
  510. package/build/templates/generators/must-haves/dotenv/env +5 -2
  511. package/build/templates/generators/must-haves/dotenv/env.sample +6 -3
  512. package/build/templates/generators/must-haves/gitignore/gitignore +6 -0
  513. package/build/templates/scaffold/app/express/package.json +5 -5
  514. package/build/templates/scaffold/app/nextjs/package.json +7 -7
  515. package/build/templates/scaffold/app/vite/package.json +3 -3
  516. package/build/templates/scaffold/app/workers/package.json +3 -3
  517. package/build/templates/scaffold/docs/docusaurus/docs/intro.md +6 -0
  518. package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +9 -3
  519. package/build/templates/scaffold/docs/docusaurus/package.json +14 -7
  520. package/build/templates/scaffold/docs/docusaurus/src/tests/frontmatter.test.ts +25 -0
  521. package/build/templates/scaffold/docs/docusaurus/src/tests/link.test.ts +16 -0
  522. package/build/templates/scaffold/docs/docusaurus/src/tests/markdown-table.test.ts +16 -0
  523. package/build/templates/scaffold/docs/docusaurus/src/tests/terminology.test.ts +16 -0
  524. package/build/templates/scaffold/docs/docusaurus/src/tests/type-declarations.test.ts +17 -0
  525. package/build/templates/scaffold/docs/docusaurus/vitest.config.ts +22 -0
  526. package/build/templates/scaffold/docs/docusaurus/vitest.setup.ts +26 -0
  527. package/package.json +14 -10
  528. package/build/src/cli/generate/github/workflows.d.ts +0 -17
  529. package/build/src/cli/generate/github/workflows.d.ts.map +0 -1
  530. package/build/src/cli/generate/github/workflows.js +0 -856
  531. package/build/src/cli/generate/github/workflows.js.map +0 -1
  532. package/build/src/types/cli/generate/github/workflows.d.ts +0 -596
  533. package/build/src/types/tests/cli/generate/github/workflows-helpers.test.d.ts +0 -239
  534. package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +0 -587
  535. package/build/templates/generators/github/workflows/publish/targets/aws-amplify-nextjs.yml +0 -32
  536. package/build/templates/generators/must-haves/agent-conventions/cursorrules +0 -55
@@ -0,0 +1,535 @@
1
+ import { Runner as Variables } from './workflows-blueprint-variables.js';
2
+ const allowedTemplates = [
3
+ 'check-sponsor-gated-issues',
4
+ 'lock-inactive-issues',
5
+ 'publish',
6
+ ];
7
+ const buildableTargetTypes = [
8
+ 'npm',
9
+ 'github-action',
10
+ 'github-packages',
11
+ 'cloudflare-pages-docusaurus',
12
+ 'cloudflare-workers',
13
+ 'docker-hub',
14
+ 'ghcr',
15
+ 'github-pages-docusaurus',
16
+ 'vercel-nextjs',
17
+ ];
18
+ const validTriggersByTemplate = {
19
+ 'check-sponsor-gated-issues': [
20
+ 'issues',
21
+ 'issue-comment',
22
+ ],
23
+ 'lock-inactive-issues': [
24
+ 'schedule-weekly',
25
+ 'schedule-daily',
26
+ 'schedule-monthly',
27
+ ],
28
+ 'publish': [
29
+ 'release',
30
+ 'tag-push',
31
+ 'push',
32
+ 'workflow-run-success',
33
+ 'workflow-run-any',
34
+ 'workflow-run-failure',
35
+ ],
36
+ };
37
+ export class Runner {
38
+ static validate(rawWorkflows, workspaces) {
39
+ const diagnostics = [];
40
+ const workflows = [];
41
+ const seenKeys = new Set();
42
+ const uniquenessMap = new Map();
43
+ const rawEntries = (Array.isArray(rawWorkflows) === true) ? rawWorkflows : [];
44
+ const envMigration = Runner.envMigrationHint(workspaces);
45
+ if (envMigration !== undefined) {
46
+ diagnostics.push({
47
+ severity: 'error',
48
+ message: envMigration,
49
+ });
50
+ return {
51
+ workflows,
52
+ diagnostics,
53
+ };
54
+ }
55
+ if (Runner.detectCircularDependsOn(rawEntries) === true) {
56
+ diagnostics.push({
57
+ severity: 'error',
58
+ message: 'Circular depends-on references detected. Aborting.',
59
+ });
60
+ return {
61
+ workflows,
62
+ diagnostics,
63
+ };
64
+ }
65
+ const entryKeys = new Set();
66
+ for (const rawKeyEntryValue of rawEntries) {
67
+ const rawKeyEntry = (typeof rawKeyEntryValue === 'object' && rawKeyEntryValue !== null) ? rawKeyEntryValue : {};
68
+ if (typeof rawKeyEntry['template'] !== 'string' || typeof rawKeyEntry['name'] !== 'string') {
69
+ continue;
70
+ }
71
+ entryKeys.add(`${rawKeyEntry['template']}-${rawKeyEntry['name']}`);
72
+ }
73
+ for (const rawEntryValue of rawEntries) {
74
+ const entry = (typeof rawEntryValue === 'object' && rawEntryValue !== null) ? rawEntryValue : {};
75
+ const workflowMigration = Runner.workflowMigrationHint(entry);
76
+ if (workflowMigration !== undefined) {
77
+ diagnostics.push({
78
+ severity: 'error',
79
+ message: workflowMigration,
80
+ });
81
+ continue;
82
+ }
83
+ const deployMigration = Runner.deployMigrationHint(entry['deploy']);
84
+ if (deployMigration !== undefined) {
85
+ diagnostics.push({
86
+ severity: 'error',
87
+ message: deployMigration,
88
+ });
89
+ continue;
90
+ }
91
+ const template = entry['template'];
92
+ const suffix = entry['name'];
93
+ const triggers = entry['triggers'];
94
+ let hasError = false;
95
+ let hasWorkflowRunTrigger = false;
96
+ const templateName = template;
97
+ if (typeof template !== 'string' || allowedTemplates.includes(templateName) === false) {
98
+ diagnostics.push({
99
+ severity: 'error',
100
+ message: `Unknown template "${String(template)}". Allowed templates: ${allowedTemplates.join(', ')}. Skipping.`,
101
+ });
102
+ continue;
103
+ }
104
+ const metadata = Variables.getTemplateMetadata(templateName);
105
+ if (metadata === undefined) {
106
+ diagnostics.push({
107
+ severity: 'error',
108
+ message: `Unknown template "${templateName}". Allowed templates: ${allowedTemplates.join(', ')}. Skipping.`,
109
+ });
110
+ continue;
111
+ }
112
+ if (typeof suffix !== 'string' || suffix.length === 0) {
113
+ diagnostics.push({
114
+ severity: 'error',
115
+ message: `Workflow using template "${templateName}" is missing a non-empty "name". Skipping.`,
116
+ });
117
+ continue;
118
+ }
119
+ const suffixValue = suffix;
120
+ const workflowKey = `${templateName}-${suffixValue}`;
121
+ const validTriggers = validTriggersByTemplate[templateName];
122
+ if (Array.isArray(triggers) === false || triggers.length === 0) {
123
+ diagnostics.push({
124
+ severity: 'error',
125
+ message: `Workflow "${workflowKey}" is missing a non-empty "triggers" array. Skipping.`,
126
+ });
127
+ continue;
128
+ }
129
+ const triggerList = triggers;
130
+ for (const triggerValue of triggerList) {
131
+ const trigger = triggerValue;
132
+ if (typeof trigger === 'string') {
133
+ const triggerName = trigger;
134
+ if (validTriggers.includes(triggerName) === false) {
135
+ diagnostics.push({
136
+ severity: 'error',
137
+ message: `Trigger "${trigger}" is not valid for template "${templateName}". Allowed triggers: ${validTriggers.join(', ')}. Skipping workflow "${workflowKey}".`,
138
+ });
139
+ hasError = true;
140
+ continue;
141
+ }
142
+ if (triggerName === 'workflow-run-success'
143
+ || triggerName === 'workflow-run-any'
144
+ || triggerName === 'workflow-run-failure') {
145
+ hasWorkflowRunTrigger = true;
146
+ }
147
+ if (trigger === 'push') {
148
+ diagnostics.push({
149
+ severity: 'error',
150
+ message: `Trigger "push" must use the object form with a non-empty "branches" array, for example { "name": "push", "branches": ["main"] }. Skipping workflow "${workflowKey}".`,
151
+ });
152
+ hasError = true;
153
+ }
154
+ continue;
155
+ }
156
+ if (Runner.isPlainObject(trigger) === false) {
157
+ diagnostics.push({
158
+ severity: 'error',
159
+ message: `Trigger "${String(trigger)}" is not valid for template "${templateName}". Allowed triggers: ${validTriggers.join(', ')}. Skipping workflow "${workflowKey}".`,
160
+ });
161
+ hasError = true;
162
+ continue;
163
+ }
164
+ const triggerObject = trigger;
165
+ const triggerObjectName = triggerObject['name'];
166
+ const triggerObjectNameValue = triggerObjectName;
167
+ if (typeof triggerObjectName !== 'string' || validTriggers.includes(triggerObjectNameValue) === false) {
168
+ diagnostics.push({
169
+ severity: 'error',
170
+ message: `Trigger "${String(triggerObjectName)}" is not valid for template "${templateName}". Allowed triggers: ${validTriggers.join(', ')}. Skipping workflow "${workflowKey}".`,
171
+ });
172
+ hasError = true;
173
+ continue;
174
+ }
175
+ if (triggerObjectNameValue === 'workflow-run-success'
176
+ || triggerObjectNameValue === 'workflow-run-any'
177
+ || triggerObjectNameValue === 'workflow-run-failure') {
178
+ hasWorkflowRunTrigger = true;
179
+ }
180
+ const triggerObjectBranches = triggerObject['branches'];
181
+ const triggerObjectPaths = triggerObject['paths'];
182
+ const triggerObjectTags = triggerObject['tags'];
183
+ if (triggerObjectBranches !== undefined && Runner.isNonEmptyStringArray(triggerObjectBranches) === false) {
184
+ diagnostics.push({
185
+ severity: 'error',
186
+ message: `Trigger "${triggerObjectNameValue}" in workflow "${workflowKey}" has an invalid "branches". It must be a non-empty array of strings.`,
187
+ });
188
+ hasError = true;
189
+ }
190
+ if (triggerObjectPaths !== undefined && Runner.isNonEmptyStringArray(triggerObjectPaths) === false) {
191
+ diagnostics.push({
192
+ severity: 'error',
193
+ message: `Trigger "${triggerObjectNameValue}" in workflow "${workflowKey}" has an invalid "paths". It must be a non-empty array of strings.`,
194
+ });
195
+ hasError = true;
196
+ }
197
+ if (triggerObjectTags !== undefined && Runner.isNonEmptyStringArray(triggerObjectTags) === false) {
198
+ diagnostics.push({
199
+ severity: 'error',
200
+ message: `Trigger "${triggerObjectNameValue}" in workflow "${workflowKey}" has an invalid "tags". It must be a non-empty array of strings.`,
201
+ });
202
+ hasError = true;
203
+ }
204
+ if (triggerObjectNameValue === 'push' && triggerObjectBranches === undefined) {
205
+ diagnostics.push({
206
+ severity: 'error',
207
+ message: `Trigger "push" in workflow "${workflowKey}" requires a non-empty "branches" array of strings. Skipping.`,
208
+ });
209
+ hasError = true;
210
+ }
211
+ }
212
+ if (hasError === true) {
213
+ continue;
214
+ }
215
+ if (hasWorkflowRunTrigger === true) {
216
+ const dependsOnEntries = Runner.collectWorkflowRunReferences(triggerList);
217
+ if (dependsOnEntries.length === 0) {
218
+ diagnostics.push({
219
+ severity: 'error',
220
+ message: `Workflow "${workflowKey}" uses a trigger that requires "workflows" references, but none are configured. Skipping.`,
221
+ });
222
+ continue;
223
+ }
224
+ for (const dependsOnReference of dependsOnEntries) {
225
+ const reference = dependsOnReference;
226
+ if (entryKeys.has(reference) === false) {
227
+ diagnostics.push({
228
+ severity: 'error',
229
+ message: `Workflow "${workflowKey}" depends on "${reference}" which does not exist. Skipping.`,
230
+ });
231
+ hasError = true;
232
+ break;
233
+ }
234
+ }
235
+ if (hasError === true) {
236
+ continue;
237
+ }
238
+ }
239
+ if (seenKeys.has(workflowKey) === true) {
240
+ diagnostics.push({
241
+ severity: 'error',
242
+ message: `Duplicate workflow "${workflowKey}". Each template must have a unique suffix when used multiple times.`,
243
+ });
244
+ continue;
245
+ }
246
+ const workflowSettings = (typeof entry['with'] === 'object' && entry['with'] !== null) ? entry['with'] : undefined;
247
+ const targets = entry['deploy'];
248
+ if (templateName === 'publish') {
249
+ const scopes = entry['build'];
250
+ if (Array.isArray(scopes) === true) {
251
+ for (const scopeValue of scopes) {
252
+ const scope = scopeValue;
253
+ const isRegisteredScope = typeof scope === 'string' && workspaces[scope] !== undefined;
254
+ if (isRegisteredScope === false) {
255
+ diagnostics.push({
256
+ severity: 'error',
257
+ message: `Scope "${String(scope)}" is not a registered workspace. Skipping.`,
258
+ });
259
+ hasError = true;
260
+ continue;
261
+ }
262
+ }
263
+ }
264
+ if (Array.isArray(targets) === true) {
265
+ for (const targetValue of targets) {
266
+ const target = (typeof targetValue === 'object' && targetValue !== null) ? targetValue : {};
267
+ const targetType = target['to'];
268
+ const targetTypeName = targetType;
269
+ const workingDir = target['path'];
270
+ if (typeof targetType !== 'string' || buildableTargetTypes.includes(targetTypeName) === false) {
271
+ diagnostics.push({
272
+ severity: 'error',
273
+ message: `Target type "${String(targetType)}" is not supported by template "${templateName}". Allowed target types: ${buildableTargetTypes.join(', ')}. Skipping.`,
274
+ });
275
+ hasError = true;
276
+ }
277
+ const isRegisteredWorkingDir = typeof workingDir === 'string' && workspaces[workingDir] !== undefined;
278
+ if (isRegisteredWorkingDir === false) {
279
+ diagnostics.push({
280
+ severity: 'error',
281
+ message: `Target working directory "${String(workingDir)}" is not a registered workspace. Skipping.`,
282
+ });
283
+ hasError = true;
284
+ }
285
+ }
286
+ }
287
+ }
288
+ const missingLiterals = [];
289
+ for (const variableEntry of Object.entries(metadata['variables'])) {
290
+ const variableName = variableEntry[0];
291
+ const variableMeta = variableEntry[1];
292
+ if (variableMeta['format'] !== 'literal'
293
+ || variableMeta['default'] !== undefined
294
+ || variableName === 'ROOT_WORKING_DIR') {
295
+ continue;
296
+ }
297
+ const resolved = Variables.resolve(variableName, undefined, workflowSettings, variableMeta);
298
+ if (resolved === variableName) {
299
+ missingLiterals.push(variableName);
300
+ }
301
+ }
302
+ if (templateName === 'publish' && Array.isArray(targets) === true) {
303
+ for (const literalTargetValue of targets) {
304
+ const literalTarget = (typeof literalTargetValue === 'object' && literalTargetValue !== null) ? literalTargetValue : {};
305
+ const literalTargetType = literalTarget['to'];
306
+ const literalTargetTypeName = literalTargetType;
307
+ const literalTargetSettings = (typeof literalTarget['with'] === 'object' && literalTarget['with'] !== null) ? literalTarget['with'] : undefined;
308
+ if (typeof literalTargetType !== 'string' || buildableTargetTypes.includes(literalTargetTypeName) === false) {
309
+ continue;
310
+ }
311
+ const literalTargetMetadata = Variables.getTargetMetadata(templateName, literalTargetTypeName);
312
+ if (literalTargetMetadata === undefined) {
313
+ continue;
314
+ }
315
+ for (const literalVariableEntry of Object.entries(literalTargetMetadata['variables'])) {
316
+ const literalVariableName = literalVariableEntry[0];
317
+ const literalVariableMeta = literalVariableEntry[1];
318
+ if (literalVariableMeta['format'] !== 'literal' || literalVariableMeta['default'] !== undefined) {
319
+ continue;
320
+ }
321
+ const literalResolved = Variables.resolve(literalVariableName, literalTargetSettings, workflowSettings, literalVariableMeta);
322
+ if (literalResolved === literalVariableName && missingLiterals.includes(literalVariableName) === false) {
323
+ missingLiterals.push(literalVariableName);
324
+ }
325
+ }
326
+ }
327
+ }
328
+ if (missingLiterals.length > 0) {
329
+ diagnostics.push({
330
+ severity: 'error',
331
+ message: `Workflow "${workflowKey}" is missing required literal settings: ${missingLiterals.join(', ')}. Skipping.`,
332
+ });
333
+ hasError = true;
334
+ }
335
+ if (hasError === true) {
336
+ continue;
337
+ }
338
+ if (templateName === 'publish' && Array.isArray(targets) === true) {
339
+ for (const uniqueTargetValue of targets) {
340
+ const uniqueTarget = (typeof uniqueTargetValue === 'object' && uniqueTargetValue !== null) ? uniqueTargetValue : {};
341
+ const uniqueTargetType = uniqueTarget['to'];
342
+ const uniqueTargetTypeName = uniqueTargetType;
343
+ const uniqueTargetSettings = (typeof uniqueTarget['with'] === 'object' && uniqueTarget['with'] !== null) ? uniqueTarget['with'] : undefined;
344
+ if (typeof uniqueTargetType !== 'string' || buildableTargetTypes.includes(uniqueTargetTypeName) === false) {
345
+ continue;
346
+ }
347
+ const uniqueTargetMetadata = Variables.getTargetMetadata(templateName, uniqueTargetTypeName);
348
+ if (uniqueTargetMetadata === undefined) {
349
+ continue;
350
+ }
351
+ const uniquenessKey = uniqueTargetMetadata['uniquenessKey'];
352
+ if (uniquenessKey === undefined) {
353
+ continue;
354
+ }
355
+ const resolvedValues = [];
356
+ const detailEntries = [];
357
+ for (const uniquenessVariableName of uniquenessKey) {
358
+ const uniqueVariableName = uniquenessVariableName;
359
+ const uniqueVariableMeta = uniqueTargetMetadata['variables'][uniqueVariableName];
360
+ const uniqueVariableMetaResolved = uniqueVariableMeta ?? { format: 'literal' };
361
+ const resolvedValue = Variables.resolve(uniqueVariableName, uniqueTargetSettings, workflowSettings, uniqueVariableMetaResolved);
362
+ resolvedValues.push(resolvedValue);
363
+ detailEntries.push(`${uniqueVariableName}=${resolvedValue}`);
364
+ }
365
+ const composite = [
366
+ uniqueTargetTypeName,
367
+ ...resolvedValues,
368
+ ].join('::');
369
+ const existing = uniquenessMap.get(composite);
370
+ if (existing !== undefined) {
371
+ if (detailEntries.length === 0) {
372
+ if (existing === workflowKey) {
373
+ diagnostics.push({
374
+ severity: 'error',
375
+ message: `Singleton target violation: workflow "${workflowKey}" declares multiple "${uniqueTargetTypeName}" targets, but only one is allowed.`,
376
+ });
377
+ }
378
+ else {
379
+ diagnostics.push({
380
+ severity: 'error',
381
+ message: `Singleton target collision: only one "${uniqueTargetTypeName}" target may be declared across all workflows. Found in workflow "${existing}" and again in workflow "${workflowKey}".`,
382
+ });
383
+ }
384
+ }
385
+ else if (existing === workflowKey) {
386
+ diagnostics.push({
387
+ severity: 'error',
388
+ message: `Destination collision in workflow "${workflowKey}": multiple "${uniqueTargetTypeName}" targets declare the same destination (${detailEntries.join(', ')}). Each destination must be declared in only one target.`,
389
+ });
390
+ }
391
+ else {
392
+ diagnostics.push({
393
+ severity: 'error',
394
+ message: `Cross-workflow destination collision: target "${uniqueTargetTypeName}" with destination (${detailEntries.join(', ')}) is declared in workflow "${existing}" and again in workflow "${workflowKey}". Each destination must be declared in only one workflow.`,
395
+ });
396
+ }
397
+ hasError = true;
398
+ continue;
399
+ }
400
+ uniquenessMap.set(composite, workflowKey);
401
+ }
402
+ }
403
+ if (hasError === true) {
404
+ continue;
405
+ }
406
+ seenKeys.add(workflowKey);
407
+ const validatedEntry = entry;
408
+ workflows.push(validatedEntry);
409
+ }
410
+ return {
411
+ workflows,
412
+ diagnostics,
413
+ };
414
+ }
415
+ static detectCircularDependsOn(rawEntries) {
416
+ const dependsOnMap = new Map();
417
+ for (const rawEntryValue of rawEntries) {
418
+ const mapEntry = (typeof rawEntryValue === 'object' && rawEntryValue !== null) ? rawEntryValue : {};
419
+ const mapKey = (typeof mapEntry['name'] === 'string') ? `${String(mapEntry['template'])}-${mapEntry['name']}` : String(mapEntry['template']);
420
+ const mapTriggers = (Array.isArray(mapEntry['triggers']) === true) ? mapEntry['triggers'] : [];
421
+ const mapDependsOn = Runner.collectWorkflowRunReferences(mapTriggers);
422
+ dependsOnMap.set(mapKey, mapDependsOn);
423
+ }
424
+ for (const dependsOnMapEntry of dependsOnMap.entries()) {
425
+ const startKey = dependsOnMapEntry[0];
426
+ const startDependsOn = dependsOnMapEntry[1];
427
+ if (startDependsOn.length === 0) {
428
+ continue;
429
+ }
430
+ const visited = new Set();
431
+ const queue = [...startDependsOn];
432
+ while (queue.length > 0) {
433
+ const currentId = queue.shift();
434
+ if (currentId === startKey) {
435
+ return true;
436
+ }
437
+ if (visited.has(currentId) === true) {
438
+ continue;
439
+ }
440
+ visited.add(currentId);
441
+ const currentDependsOn = dependsOnMap.get(currentId) ?? [];
442
+ for (const dependency of currentDependsOn) {
443
+ queue.push(dependency);
444
+ }
445
+ }
446
+ }
447
+ return false;
448
+ }
449
+ static isNonEmptyStringArray(value) {
450
+ return Array.isArray(value) === true
451
+ && value.length > 0
452
+ && value.every((entry) => typeof entry === 'string' && entry.length > 0) === true;
453
+ }
454
+ static isPlainObject(value) {
455
+ return typeof value === 'object'
456
+ && value !== null
457
+ && Array.isArray(value) === false;
458
+ }
459
+ static collectWorkflowRunReferences(triggerList) {
460
+ const references = [];
461
+ for (const triggerValue of triggerList) {
462
+ if (Runner.isPlainObject(triggerValue) === false) {
463
+ continue;
464
+ }
465
+ const trigger = triggerValue;
466
+ const triggerName = trigger['name'];
467
+ if (triggerName !== 'workflow-run-success'
468
+ && triggerName !== 'workflow-run-any'
469
+ && triggerName !== 'workflow-run-failure') {
470
+ continue;
471
+ }
472
+ if (Runner.isNonEmptyStringArray(trigger['workflows']) === false) {
473
+ continue;
474
+ }
475
+ const workflowReferences = trigger['workflows'];
476
+ for (const workflowReference of workflowReferences) {
477
+ references.push(workflowReference);
478
+ }
479
+ }
480
+ return references;
481
+ }
482
+ static workflowMigrationHint(entry) {
483
+ if (entry['suffix'] !== undefined) {
484
+ return 'Workflow field "suffix" was renamed to "name". Skipping.';
485
+ }
486
+ if (entry['scopes'] !== undefined) {
487
+ return 'Workflow field "scopes" was renamed to "build". Skipping.';
488
+ }
489
+ if (entry['targets'] !== undefined) {
490
+ return 'Workflow field "targets" was renamed to "deploy". Skipping.';
491
+ }
492
+ if (entry['settings'] !== undefined) {
493
+ return 'Workflow field "settings" was renamed to "with". Skipping.';
494
+ }
495
+ if (entry['depends-on'] !== undefined) {
496
+ return 'Workflow field "depends-on" moved onto the workflow-run trigger as "workflows". Skipping.';
497
+ }
498
+ return undefined;
499
+ }
500
+ static deployMigrationHint(deploy) {
501
+ if (Array.isArray(deploy) === false) {
502
+ return undefined;
503
+ }
504
+ for (const deployValue of deploy) {
505
+ if (Runner.isPlainObject(deployValue) === false) {
506
+ continue;
507
+ }
508
+ const deployEntry = deployValue;
509
+ if (deployEntry['type'] !== undefined) {
510
+ return 'Deploy field "type" was renamed to "to". Skipping.';
511
+ }
512
+ if (deployEntry['workingDir'] !== undefined) {
513
+ return 'Deploy field "workingDir" was renamed to "path". Skipping.';
514
+ }
515
+ if (deployEntry['needs'] !== undefined) {
516
+ return 'Deploy field "needs" was renamed to "after". Skipping.';
517
+ }
518
+ if (deployEntry['settings'] !== undefined) {
519
+ return 'Deploy field "settings" was renamed to "with". Skipping.';
520
+ }
521
+ }
522
+ return undefined;
523
+ }
524
+ static envMigrationHint(workspaces) {
525
+ const workspaceList = Object.values(workspaces);
526
+ for (const workspace of workspaceList) {
527
+ const workspaceEntry = workspace;
528
+ if (workspaceEntry['dotenv'] !== undefined) {
529
+ return 'Workspace field "dotenv" moved to the top-level "environment" block classified by "secret". Skipping.';
530
+ }
531
+ }
532
+ return undefined;
533
+ }
534
+ }
535
+ //# sourceMappingURL=workflows-blueprint-validate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows-blueprint-validate.js","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint-validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAwHzE,MAAM,gBAAgB,GAAoE;IACxF,4BAA4B;IAC5B,sBAAsB;IACtB,SAAS;CACV,CAAC;AAUF,MAAM,oBAAoB,GAAwE;IAChG,KAAK;IACL,eAAe;IACf,iBAAiB;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S,CAAC;QACnB,CAAC;QAED,KAAK,MAAM,WAAW,IAAI,MAAM,EAAE,CAAC;YACjC,IAAI,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,KAAK,EAAE,CAAC;gBAChD,SAAS;YACX,CAAC;YAED,MAAM,WAAW,GAA0F,WAAoG,CAAC;YAEhN,IAAI,WAAW,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC;gBACtC,OAAO,oDAAoD,CAAC;YAC9D,CAAC;YAED,IAAI,WAAW,CAAC,YAAY,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC5C,OAAO,4DAA4D,CAAC;YACtE,CAAC;YAED,IAAI,WAAW,CAAC,OAAO,CAAC,KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO,wDAAwD,CAAC;YAClE,CAAC;YAED,IAAI,WAAW,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC1C,OAAO,0DAA0D,CAAC;YACpE,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAgBO,MAAM,CAAC,gBAAgB,CAAC,UAA6F;QAC3H,MAAM,aAAa,GAAyF,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAEtI,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE,CAAC;YACtC,MAAM,cAAc,GAA0F,SAAkG,CAAC;YAEjN,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC3C,OAAO,uGAAuG,CAAC;YACjH,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import type { Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Environment, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_OutputFileName, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_ValidatedWorkflow, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_TargetType, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Template, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Template, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_Returns, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_TargetSettings, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableMeta, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableName, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_WorkflowSettings, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Format, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_ResolvedName, Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Returns } from '../../../types/cli/generate/github/workflows-blueprint-variables.d.ts';
2
+ export declare class Runner {
3
+ static getTemplateMetadata(template: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Template): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTemplateMetadata_Returns;
4
+ static getTargetMetadata(template: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Template, targetType: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_TargetType): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_GetTargetMetadata_Returns;
5
+ static resolve(variableName: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableName, targetSettings: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_TargetSettings, workflowSettings: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_WorkflowSettings, variableMeta: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_VariableMeta): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_Resolve_Returns;
6
+ static resolveExpr(format: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Format, resolvedName: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_ResolvedName): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_ResolveExpr_Returns;
7
+ static collectSetupLines(validatedWorkflow: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_ValidatedWorkflow, outputFileName: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_OutputFileName, environment: Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Environment): Cli_Generate_Github_WorkflowsBlueprintVariables_Runner_CollectSetupLines_Returns;
8
+ }
9
+ //# sourceMappingURL=workflows-blueprint-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows-blueprint-variables.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint-variables.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,oFAAoF,EAEpF,uFAAuF,EAEvF,gFAAgF,EAchF,0FAA0F,EAQ1F,gFAAgF,EAEhF,mFAAmF,EACnF,iFAAiF,EAEjF,kFAAkF,EAClF,mFAAmF,EACnF,sEAAsE,EACtE,6EAA6E,EAC7E,2EAA2E,EAC3E,2EAA2E,EAC3E,+EAA+E,EAE/E,yEAAyE,EACzE,+EAA+E,EAC/E,0EAA0E,EAC3E,MAAM,uEAAuE,CAAC;AAW/E,qBAAa,MAAM;WAaH,mBAAmB,CAAC,QAAQ,EAAE,mFAAmF,GAAG,kFAAkF;WAiBtM,iBAAiB,CAAC,QAAQ,EAAE,iFAAiF,EAAE,UAAU,EAAE,mFAAmF,GAAG,gFAAgF;WAgCjS,OAAO,CAAC,YAAY,EAAE,2EAA2E,EAAE,cAAc,EAAE,6EAA6E,EAAE,gBAAgB,EAAE,+EAA+E,EAAE,YAAY,EAAE,2EAA2E,GAAG,sEAAsE;WA0Bvc,WAAW,CAAC,MAAM,EAAE,yEAAyE,EAAE,YAAY,EAAE,+EAA+E,GAAG,0EAA0E;WAgCzQ,iBAAiB,CAAC,iBAAiB,EAAE,0FAA0F,EAAE,cAAc,EAAE,uFAAuF,EAAE,WAAW,EAAE,oFAAoF,GAAG,gFAAgF;CA6G7a"}