@cbnventures/nova 0.20.0 → 0.22.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 (432) hide show
  1. package/README.md +10 -0
  2. package/bin/nova.mjs +3 -3
  3. package/build/package.json +10 -8
  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.js +2 -2
  7. package/build/src/cli/generate/github/issue-template.js.map +1 -1
  8. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +12 -0
  9. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -0
  10. package/build/src/cli/generate/github/workflows-blueprint-validate.js +535 -0
  11. package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -0
  12. package/build/src/cli/generate/github/workflows-blueprint-variables.d.ts +9 -0
  13. package/build/src/cli/generate/github/workflows-blueprint-variables.d.ts.map +1 -0
  14. package/build/src/cli/generate/github/workflows-blueprint-variables.js +117 -0
  15. package/build/src/cli/generate/github/workflows-blueprint-variables.js.map +1 -0
  16. package/build/src/cli/generate/github/workflows-blueprint.d.ts +60 -0
  17. package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -0
  18. package/build/src/cli/generate/github/workflows-blueprint.js +2285 -0
  19. package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -0
  20. package/build/src/cli/generate/must-haves/agent-conventions.js +2 -2
  21. package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
  22. package/build/src/cli/generate/must-haves/dotenv.d.ts +1 -0
  23. package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
  24. package/build/src/cli/generate/must-haves/dotenv.js +38 -11
  25. package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
  26. package/build/src/cli/generate/must-haves/editorconfig.js +2 -2
  27. package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -1
  28. package/build/src/cli/generate/must-haves/gitignore.js +2 -2
  29. package/build/src/cli/generate/must-haves/gitignore.js.map +1 -1
  30. package/build/src/cli/generate/must-haves/license.d.ts.map +1 -1
  31. package/build/src/cli/generate/must-haves/license.js +4 -4
  32. package/build/src/cli/generate/must-haves/license.js.map +1 -1
  33. package/build/src/cli/generate/must-haves/read-me.d.ts +6 -2
  34. package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -1
  35. package/build/src/cli/generate/must-haves/read-me.js +103 -63
  36. package/build/src/cli/generate/must-haves/read-me.js.map +1 -1
  37. package/build/src/cli/index.js +108 -2
  38. package/build/src/cli/index.js.map +1 -1
  39. package/build/src/cli/recipe/github/sync-features.d.ts.map +1 -1
  40. package/build/src/cli/recipe/github/sync-features.js +5 -3
  41. package/build/src/cli/recipe/github/sync-features.js.map +1 -1
  42. package/build/src/cli/recipe/github/sync-identity.d.ts.map +1 -1
  43. package/build/src/cli/recipe/github/sync-identity.js +5 -3
  44. package/build/src/cli/recipe/github/sync-identity.js.map +1 -1
  45. package/build/src/cli/recipe/github/sync-policies.d.ts.map +1 -1
  46. package/build/src/cli/recipe/github/sync-policies.js +5 -3
  47. package/build/src/cli/recipe/github/sync-policies.js.map +1 -1
  48. package/build/src/cli/recipe/index.d.ts.map +1 -1
  49. package/build/src/cli/recipe/index.js +32 -0
  50. package/build/src/cli/recipe/index.js.map +1 -1
  51. package/build/src/cli/recipe/license/update-copyright.d.ts +7 -0
  52. package/build/src/cli/recipe/license/update-copyright.d.ts.map +1 -0
  53. package/build/src/cli/recipe/license/update-copyright.js +191 -0
  54. package/build/src/cli/recipe/license/update-copyright.js.map +1 -0
  55. package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -1
  56. package/build/src/cli/recipe/package-json/cleanup.js +14 -13
  57. package/build/src/cli/recipe/package-json/cleanup.js.map +1 -1
  58. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -1
  59. package/build/src/cli/recipe/package-json/normalize-artifacts.js +11 -6
  60. package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -1
  61. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -1
  62. package/build/src/cli/recipe/package-json/normalize-bundler.js +11 -6
  63. package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -1
  64. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -1
  65. package/build/src/cli/recipe/package-json/normalize-dependencies.js +19 -11
  66. package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -1
  67. package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -1
  68. package/build/src/cli/recipe/package-json/normalize-modules.js +11 -6
  69. package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -1
  70. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
  71. package/build/src/cli/recipe/package-json/normalize-tooling.js +12 -7
  72. package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -1
  73. package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
  74. package/build/src/cli/recipe/package-json/sync-environment.js +46 -14
  75. package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
  76. package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -1
  77. package/build/src/cli/recipe/package-json/sync-identity.js +74 -16
  78. package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -1
  79. package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -1
  80. package/build/src/cli/recipe/package-json/sync-ownership.js +18 -11
  81. package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -1
  82. package/build/src/cli/recipe/read-me/update-badges.d.ts +6 -0
  83. package/build/src/cli/recipe/read-me/update-badges.d.ts.map +1 -0
  84. package/build/src/cli/recipe/read-me/update-badges.js +115 -0
  85. package/build/src/cli/recipe/read-me/update-badges.js.map +1 -0
  86. package/build/src/cli/recipe/read-me/update-credits.d.ts +6 -0
  87. package/build/src/cli/recipe/read-me/update-credits.d.ts.map +1 -0
  88. package/build/src/cli/recipe/read-me/update-credits.js +115 -0
  89. package/build/src/cli/recipe/read-me/update-credits.js.map +1 -0
  90. package/build/src/cli/recipe/read-me/update-documentation.d.ts +6 -0
  91. package/build/src/cli/recipe/read-me/update-documentation.d.ts.map +1 -0
  92. package/build/src/cli/recipe/read-me/update-documentation.js +115 -0
  93. package/build/src/cli/recipe/read-me/update-documentation.js.map +1 -0
  94. package/build/src/cli/recipe/read-me/update-header.d.ts +6 -0
  95. package/build/src/cli/recipe/read-me/update-header.d.ts.map +1 -0
  96. package/build/src/cli/recipe/read-me/update-header.js +115 -0
  97. package/build/src/cli/recipe/read-me/update-header.js.map +1 -0
  98. package/build/src/cli/recipe/read-me/update-introduction.d.ts +6 -0
  99. package/build/src/cli/recipe/read-me/update-introduction.d.ts.map +1 -0
  100. package/build/src/cli/recipe/read-me/update-introduction.js +115 -0
  101. package/build/src/cli/recipe/read-me/update-introduction.js.map +1 -0
  102. package/build/src/cli/scaffold/starter/base.js +1 -1
  103. package/build/src/cli/scaffold/starter/base.js.map +1 -1
  104. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  105. package/build/src/cli/utility/changelog.js +99 -21
  106. package/build/src/cli/utility/changelog.js.map +1 -1
  107. package/build/src/cli/utility/initialize.d.ts +6 -0
  108. package/build/src/cli/utility/initialize.d.ts.map +1 -1
  109. package/build/src/cli/utility/initialize.js +737 -130
  110. package/build/src/cli/utility/initialize.js.map +1 -1
  111. package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
  112. package/build/src/cli/utility/run-scripts.js +16 -8
  113. package/build/src/cli/utility/run-scripts.js.map +1 -1
  114. package/build/src/cli/utility/transpile.d.ts.map +1 -1
  115. package/build/src/cli/utility/transpile.js +2 -1
  116. package/build/src/cli/utility/transpile.js.map +1 -1
  117. package/build/src/cli/utility/type-check.d.ts.map +1 -1
  118. package/build/src/cli/utility/type-check.js +2 -1
  119. package/build/src/cli/utility/type-check.js.map +1 -1
  120. package/build/src/cli/utility/version.js +1 -1
  121. package/build/src/cli/utility/version.js.map +1 -1
  122. package/build/src/lib/env-github.d.ts +5 -0
  123. package/build/src/lib/env-github.d.ts.map +1 -0
  124. package/build/src/lib/env-github.js +77 -0
  125. package/build/src/lib/env-github.js.map +1 -0
  126. package/build/src/lib/env-managed-set.d.ts +3 -0
  127. package/build/src/lib/env-managed-set.d.ts.map +1 -0
  128. package/build/src/lib/env-managed-set.js +108 -0
  129. package/build/src/lib/env-managed-set.js.map +1 -0
  130. package/build/src/lib/env-namespace.d.ts +3 -0
  131. package/build/src/lib/env-namespace.d.ts.map +1 -0
  132. package/build/src/lib/env-namespace.js +11 -0
  133. package/build/src/lib/env-namespace.js.map +1 -0
  134. package/build/src/lib/env-reconcile.d.ts +3 -0
  135. package/build/src/lib/env-reconcile.d.ts.map +1 -0
  136. package/build/src/lib/env-reconcile.js +109 -0
  137. package/build/src/lib/env-reconcile.js.map +1 -0
  138. package/build/src/lib/env-status.d.ts +3 -0
  139. package/build/src/lib/env-status.d.ts.map +1 -0
  140. package/build/src/lib/env-status.js +116 -0
  141. package/build/src/lib/env-status.js.map +1 -0
  142. package/build/src/lib/item.d.ts +2 -1
  143. package/build/src/lib/item.d.ts.map +1 -1
  144. package/build/src/lib/item.js +26 -0
  145. package/build/src/lib/item.js.map +1 -1
  146. package/build/src/lib/markdown-slug.js +1 -1
  147. package/build/src/lib/markdown-slug.js.map +1 -1
  148. package/build/src/lib/nova-config.d.ts +13 -4
  149. package/build/src/lib/nova-config.d.ts.map +1 -1
  150. package/build/src/lib/nova-config.js +514 -162
  151. package/build/src/lib/nova-config.js.map +1 -1
  152. package/build/src/lib/read-me-regions.d.ts +4 -0
  153. package/build/src/lib/read-me-regions.d.ts.map +1 -0
  154. package/build/src/lib/read-me-regions.js +33 -0
  155. package/build/src/lib/read-me-regions.js.map +1 -0
  156. package/build/src/lib/regex.d.ts +5 -0
  157. package/build/src/lib/regex.d.ts.map +1 -1
  158. package/build/src/lib/regex.js +5 -0
  159. package/build/src/lib/regex.js.map +1 -1
  160. package/build/src/lib/scaffold.d.ts.map +1 -1
  161. package/build/src/lib/scaffold.js +33 -14
  162. package/build/src/lib/scaffold.js.map +1 -1
  163. package/build/src/lib/type-declaration-engine.d.ts +2 -2
  164. package/build/src/lib/type-declaration-engine.d.ts.map +1 -1
  165. package/build/src/lib/type-declaration-engine.js +32 -6
  166. package/build/src/lib/type-declaration-engine.js.map +1 -1
  167. package/build/src/lib/utility.d.ts +2 -1
  168. package/build/src/lib/utility.d.ts.map +1 -1
  169. package/build/src/lib/utility.js +39 -7
  170. package/build/src/lib/utility.js.map +1 -1
  171. package/build/src/lib/workflow-templates.d.ts.map +1 -1
  172. package/build/src/lib/workflow-templates.js +86 -60
  173. package/build/src/lib/workflow-templates.js.map +1 -1
  174. package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -1
  175. package/build/src/presets/eslint/dx-code-style.js +6 -0
  176. package/build/src/presets/eslint/dx-code-style.js.map +1 -1
  177. package/build/src/presets/eslint/fw-astro.d.ts +4 -0
  178. package/build/src/presets/eslint/fw-astro.d.ts.map +1 -0
  179. package/build/src/presets/eslint/fw-astro.js +13 -0
  180. package/build/src/presets/eslint/fw-astro.js.map +1 -0
  181. package/build/src/presets/eslint/index.d.ts +1 -0
  182. package/build/src/presets/eslint/index.d.ts.map +1 -1
  183. package/build/src/presets/eslint/index.js +1 -0
  184. package/build/src/presets/eslint/index.js.map +1 -1
  185. package/build/src/presets/tsconfig/fw-astro.json +15 -0
  186. package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -1
  187. package/build/src/rules/eslint/conventions/no-implicit-boolean.js +3 -2
  188. package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -1
  189. package/build/src/rules/eslint/conventions/require-hash-private.js +1 -1
  190. package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -1
  191. package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -1
  192. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +4 -1
  193. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -1
  194. package/build/src/rules/eslint/conventions/require-node-protocol.d.ts +11 -0
  195. package/build/src/rules/eslint/conventions/require-node-protocol.d.ts.map +1 -0
  196. package/build/src/rules/eslint/conventions/require-node-protocol.js +76 -0
  197. package/build/src/rules/eslint/conventions/require-node-protocol.js.map +1 -0
  198. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -1
  199. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +2 -1
  200. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -1
  201. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -1
  202. package/build/src/rules/eslint/formatting/require-padding-lines.js +7 -3
  203. package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -1
  204. package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -1
  205. package/build/src/rules/eslint/formatting/require-ternary-parens.js +7 -17
  206. package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -1
  207. package/build/src/rules/eslint/index.d.ts +4 -0
  208. package/build/src/rules/eslint/index.d.ts.map +1 -1
  209. package/build/src/rules/eslint/index.js +4 -0
  210. package/build/src/rules/eslint/index.js.map +1 -1
  211. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +3 -2
  212. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -1
  213. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +22 -0
  214. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -1
  215. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +2 -1
  216. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -1
  217. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +16 -1
  218. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -1
  219. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -1
  220. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +8 -4
  221. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -1
  222. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.d.ts +12 -0
  223. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.d.ts.map +1 -0
  224. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.js +169 -0
  225. package/build/src/rules/eslint/jsdoc/require-jsdoc-presence.js.map +1 -0
  226. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.d.ts +11 -0
  227. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.d.ts.map +1 -0
  228. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.js +80 -0
  229. package/build/src/rules/eslint/jsdoc/require-jsdoc-returns.js.map +1 -0
  230. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +2 -2
  231. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -1
  232. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts +15 -0
  233. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts.map +1 -0
  234. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.js +290 -0
  235. package/build/src/rules/eslint/jsdoc/require-jsdoc-tag-order.js.map +1 -0
  236. package/build/src/rules/eslint/patterns/no-await-in-loop.js +1 -1
  237. package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -1
  238. package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -1
  239. package/build/src/rules/eslint/patterns/no-bracket-method-call.js +4 -0
  240. package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -1
  241. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -1
  242. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +4 -1
  243. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -1
  244. package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -1
  245. package/build/src/rules/eslint/typescript/require-bracket-property-access.js +8 -1
  246. package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -1
  247. package/build/src/rules/vitest/active-vitest.d.ts +5 -0
  248. package/build/src/rules/vitest/active-vitest.d.ts.map +1 -0
  249. package/build/src/rules/vitest/active-vitest.js +19 -0
  250. package/build/src/rules/vitest/active-vitest.js.map +1 -0
  251. package/build/src/rules/vitest/dotenv/register.d.ts.map +1 -1
  252. package/build/src/rules/vitest/dotenv/register.js +3 -2
  253. package/build/src/rules/vitest/dotenv/register.js.map +1 -1
  254. package/build/src/rules/vitest/dotenv/rules.d.ts.map +1 -1
  255. package/build/src/rules/vitest/dotenv/rules.js +2 -2
  256. package/build/src/rules/vitest/dotenv/rules.js.map +1 -1
  257. package/build/src/rules/vitest/frontmatter/register.d.ts.map +1 -1
  258. package/build/src/rules/vitest/frontmatter/register.js +3 -2
  259. package/build/src/rules/vitest/frontmatter/register.js.map +1 -1
  260. package/build/src/rules/vitest/frontmatter/rules.d.ts.map +1 -1
  261. package/build/src/rules/vitest/frontmatter/rules.js +13 -13
  262. package/build/src/rules/vitest/frontmatter/rules.js.map +1 -1
  263. package/build/src/rules/vitest/link/register.d.ts.map +1 -1
  264. package/build/src/rules/vitest/link/register.js +3 -2
  265. package/build/src/rules/vitest/link/register.js.map +1 -1
  266. package/build/src/rules/vitest/link/rules.d.ts.map +1 -1
  267. package/build/src/rules/vitest/link/rules.js +8 -8
  268. package/build/src/rules/vitest/link/rules.js.map +1 -1
  269. package/build/src/rules/vitest/markdown-table/register.d.ts.map +1 -1
  270. package/build/src/rules/vitest/markdown-table/register.js +3 -2
  271. package/build/src/rules/vitest/markdown-table/register.js.map +1 -1
  272. package/build/src/rules/vitest/markdown-table/rules.d.ts.map +1 -1
  273. package/build/src/rules/vitest/markdown-table/rules.js +3 -3
  274. package/build/src/rules/vitest/markdown-table/rules.js.map +1 -1
  275. package/build/src/rules/vitest/terminology/register.d.ts.map +1 -1
  276. package/build/src/rules/vitest/terminology/register.js +3 -2
  277. package/build/src/rules/vitest/terminology/register.js.map +1 -1
  278. package/build/src/rules/vitest/terminology/rules.d.ts.map +1 -1
  279. package/build/src/rules/vitest/terminology/rules.js +8 -8
  280. package/build/src/rules/vitest/terminology/rules.js.map +1 -1
  281. package/build/src/rules/vitest/type-declarations/register.d.ts.map +1 -1
  282. package/build/src/rules/vitest/type-declarations/register.js +6 -3
  283. package/build/src/rules/vitest/type-declarations/register.js.map +1 -1
  284. package/build/src/rules/vitest/type-declarations/rules.d.ts +3 -1
  285. package/build/src/rules/vitest/type-declarations/rules.d.ts.map +1 -1
  286. package/build/src/rules/vitest/type-declarations/rules.js +82 -12
  287. package/build/src/rules/vitest/type-declarations/rules.js.map +1 -1
  288. package/build/src/toolkit/index.d.ts +1 -0
  289. package/build/src/toolkit/index.d.ts.map +1 -1
  290. package/build/src/toolkit/index.js +1 -0
  291. package/build/src/toolkit/index.js.map +1 -1
  292. package/build/src/toolkit/markdown-table.js +1 -1
  293. package/build/src/toolkit/markdown-table.js.map +1 -1
  294. package/build/src/toolkit/nova-identity.d.ts +21 -0
  295. package/build/src/toolkit/nova-identity.d.ts.map +1 -0
  296. package/build/src/toolkit/nova-identity.js +160 -0
  297. package/build/src/toolkit/nova-identity.js.map +1 -0
  298. package/build/src/types/cli/generate/github/funding.d.ts +4 -4
  299. package/build/src/types/cli/generate/github/issue-template.d.ts +11 -11
  300. package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +351 -0
  301. package/build/src/types/cli/generate/github/workflows-blueprint-variables.d.ts +131 -0
  302. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +1192 -0
  303. package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +4 -4
  304. package/build/src/types/cli/generate/must-haves/dotenv.d.ts +50 -13
  305. package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +2 -2
  306. package/build/src/types/cli/generate/must-haves/gitignore.d.ts +8 -8
  307. package/build/src/types/cli/generate/must-haves/license.d.ts +5 -5
  308. package/build/src/types/cli/generate/must-haves/read-me.d.ts +136 -88
  309. package/build/src/types/cli/index.d.ts +14 -0
  310. package/build/src/types/cli/recipe/github/handle-gh-failure.d.ts +2 -2
  311. package/build/src/types/cli/recipe/github/sync-features.d.ts +19 -12
  312. package/build/src/types/cli/recipe/github/sync-identity.d.ts +18 -11
  313. package/build/src/types/cli/recipe/github/sync-policies.d.ts +22 -15
  314. package/build/src/types/cli/recipe/index.d.ts +7 -3
  315. package/build/src/types/cli/recipe/license/update-copyright.d.ts +142 -0
  316. package/build/src/types/cli/recipe/package-json/cleanup.d.ts +26 -22
  317. package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +22 -16
  318. package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +20 -14
  319. package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +31 -19
  320. package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +20 -14
  321. package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +20 -14
  322. package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +46 -22
  323. package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +58 -19
  324. package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +33 -23
  325. package/build/src/types/cli/recipe/read-me/update-badges.d.ts +77 -0
  326. package/build/src/types/cli/recipe/read-me/update-credits.d.ts +77 -0
  327. package/build/src/types/cli/recipe/read-me/update-documentation.d.ts +77 -0
  328. package/build/src/types/cli/recipe/read-me/update-header.d.ts +77 -0
  329. package/build/src/types/cli/recipe/read-me/update-introduction.d.ts +77 -0
  330. package/build/src/types/cli/scaffold/starter/base.d.ts +2 -2
  331. package/build/src/types/cli/utility/changelog.d.ts +106 -74
  332. package/build/src/types/cli/utility/initialize.d.ts +842 -384
  333. package/build/src/types/cli/utility/run-scripts.d.ts +3 -1
  334. package/build/src/types/cli/utility/transpile.d.ts +8 -3
  335. package/build/src/types/cli/utility/type-check.d.ts +9 -3
  336. package/build/src/types/cli/utility/version.d.ts +32 -32
  337. package/build/src/types/lib/env-github.d.ts +100 -0
  338. package/build/src/types/lib/env-managed-set.d.ts +90 -0
  339. package/build/src/types/lib/env-namespace.d.ts +22 -0
  340. package/build/src/types/lib/env-reconcile.d.ts +71 -0
  341. package/build/src/types/lib/env-status.d.ts +100 -0
  342. package/build/src/types/lib/item.d.ts +23 -0
  343. package/build/src/types/lib/nova-config.d.ts +478 -142
  344. package/build/src/types/lib/read-me-regions.d.ts +51 -0
  345. package/build/src/types/lib/scaffold.d.ts +43 -23
  346. package/build/src/types/lib/type-declaration-engine.d.ts +18 -2
  347. package/build/src/types/lib/utility.d.ts +38 -4
  348. package/build/src/types/lib/workflow-templates.d.ts +10 -74
  349. package/build/src/types/presets/eslint/fw-astro.d.ts +8 -0
  350. package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +7 -0
  351. package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +8 -4
  352. package/build/src/types/rules/eslint/conventions/require-node-protocol.d.ts +56 -0
  353. package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +2 -0
  354. package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +8 -3
  355. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +16 -0
  356. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +17 -13
  357. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +3 -1
  358. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-presence.d.ts +125 -0
  359. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-returns.d.ts +48 -0
  360. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-tag-order.d.ts +204 -0
  361. package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +1 -1
  362. package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +1 -1
  363. package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +19 -7
  364. package/build/src/types/rules/vitest/active-vitest.d.ts +31 -0
  365. package/build/src/types/rules/vitest/index.d.ts +21 -1
  366. package/build/src/types/rules/vitest/markdown-table/rules.d.ts +2 -2
  367. package/build/src/types/rules/vitest/type-declarations/rules.d.ts +74 -0
  368. package/build/src/types/shared.d.ts +796 -52
  369. package/build/src/types/tests/bin-git-tracked.test.d.ts +52 -0
  370. package/build/src/types/tests/cli/generate/github/funding.test.d.ts +14 -10
  371. package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +20 -16
  372. package/build/src/types/tests/cli/generate/github/workflows-blueprint-generate.test.d.ts +199 -0
  373. package/build/src/types/tests/cli/generate/github/workflows-blueprint-parity.test.d.ts +75 -0
  374. package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +295 -0
  375. package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +901 -0
  376. package/build/src/types/tests/cli/generate/github/workflows-blueprint-variables.test.d.ts +144 -0
  377. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +332 -0
  378. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +11 -7
  379. package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +123 -43
  380. package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +12 -8
  381. package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +11 -7
  382. package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +33 -10
  383. package/build/src/types/tests/cli/recipe/github/handle-gh-failure.test.d.ts +25 -21
  384. package/build/src/types/tests/cli/recipe/github/sync-features.test.d.ts +98 -94
  385. package/build/src/types/tests/cli/recipe/github/sync-identity.test.d.ts +133 -129
  386. package/build/src/types/tests/cli/recipe/github/sync-policies.test.d.ts +125 -121
  387. package/build/src/types/tests/cli/recipe/license/update-copyright.test.d.ts +617 -0
  388. package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +27 -0
  389. package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +21 -0
  390. package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +185 -0
  391. package/build/src/types/tests/cli/recipe/read-me/update-badges.test.d.ts +258 -0
  392. package/build/src/types/tests/cli/recipe/read-me/update-credits.test.d.ts +258 -0
  393. package/build/src/types/tests/cli/recipe/read-me/update-documentation.test.d.ts +258 -0
  394. package/build/src/types/tests/cli/recipe/read-me/update-header.test.d.ts +258 -0
  395. package/build/src/types/tests/cli/recipe/read-me/update-introduction.test.d.ts +258 -0
  396. package/build/src/types/tests/cli/utility/changelog.test.d.ts +31 -0
  397. package/build/src/types/tests/cli/utility/initialize.test.d.ts +163 -111
  398. package/build/src/types/tests/lib/nova-config.test.d.ts +391 -208
  399. package/build/src/types/tests/lib/read-me-regions.test.d.ts +43 -0
  400. package/build/src/types/tests/lib/utility.test.d.ts +35 -0
  401. package/build/src/types/tests/lib/workflow-templates.test.d.ts +18 -2
  402. package/build/src/types/tests/rules/eslint/conventions/require-node-protocol.test.d.ts +8 -0
  403. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-presence.test.d.ts +8 -0
  404. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-returns.test.d.ts +8 -0
  405. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-tag-order.test.d.ts +8 -0
  406. package/build/src/types/tests/rules/vitest/active-vitest.test.d.ts +56 -0
  407. package/build/src/types/tests/rules/vitest/frontmatter.test.d.ts +14 -0
  408. package/build/src/types/tests/rules/vitest/terminology.test.d.ts +4 -0
  409. package/build/src/types/tests/toolkit/logger.test.d.ts +25 -5
  410. package/build/src/types/tests/toolkit/nova-identity.test.d.ts +220 -0
  411. package/build/src/types/tests/type-declarations.test.d.ts +14 -0
  412. package/build/src/types/toolkit/nova-identity.d.ts +355 -0
  413. package/build/templates/generators/github/workflows/publish/base.yml +2 -0
  414. package/build/templates/generators/github/workflows/publish/targets/cloudflare-workers.yml +36 -0
  415. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +12 -12
  416. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +2 -0
  417. package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +9 -3
  418. package/build/templates/scaffold/docs/docusaurus/package.json +5 -2
  419. package/build/templates/scaffold/docs/docusaurus/src/tests/frontmatter.test.ts +4 -0
  420. package/build/templates/scaffold/docs/docusaurus/src/tests/link.test.ts +2 -0
  421. package/build/templates/scaffold/docs/docusaurus/src/tests/markdown-table.test.ts +2 -0
  422. package/build/templates/scaffold/docs/docusaurus/src/tests/terminology.test.ts +2 -0
  423. package/build/templates/scaffold/docs/docusaurus/src/tests/type-declarations.test.ts +17 -0
  424. package/package.json +10 -8
  425. package/build/src/cli/generate/github/workflows.d.ts +0 -17
  426. package/build/src/cli/generate/github/workflows.d.ts.map +0 -1
  427. package/build/src/cli/generate/github/workflows.js +0 -856
  428. package/build/src/cli/generate/github/workflows.js.map +0 -1
  429. package/build/src/types/cli/generate/github/workflows.d.ts +0 -596
  430. package/build/src/types/tests/cli/generate/github/workflows-helpers.test.d.ts +0 -239
  431. package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +0 -587
  432. package/build/templates/generators/github/workflows/publish/targets/aws-amplify-nextjs.yml +0 -32
@@ -1,11 +1,14 @@
1
- import { promises as fs } from 'fs';
2
- import { join } from 'path';
1
+ import { promises as fs } from 'node:fs';
2
+ import { join } from 'node:path';
3
3
  import { Logger } from '../toolkit/index.js';
4
- import { libItemAllowedAgents, libItemAllowedPoliciesByRole, libItemAllowedRecipes, libItemAllowedRoles, libItemEmailFields, libItemGenericProtocols, libItemRepositoryProtocols, libItemReservedDotenvKeys, libItemUrlFields, } from './item.js';
5
- import { LIB_REGEX_PATTERN_EMAIL_SIMPLE, LIB_REGEX_PATTERN_ENV_VAR_KEY_SCREAMING_SNAKE, LIB_REGEX_PATTERN_GITHUB_OWNER, LIB_REGEX_PATTERN_GITHUB_REPO, LIB_REGEX_PATTERN_SLUG_SCOPED, LIB_REGEX_PATTERN_SLUG_SIMPLE, } from './regex.js';
6
- import { isFileIdentical, isPlainObject, renameFileWithDate } from './utility.js';
4
+ import { libEnvNamespace } from './env-namespace.js';
5
+ import { libItemAllowedAgents, libItemAllowedPoliciesByRole, libItemAllowedRoles, libItemEmailFields, libItemGenericProtocols, libItemRecipesByCategory, libItemRepositoryProtocols, libItemUrlFields, } from './item.js';
6
+ import { LIB_REGEX_PATTERN_EMAIL_SIMPLE, LIB_REGEX_PATTERN_GITHUB_OWNER, LIB_REGEX_PATTERN_GITHUB_REPO, LIB_REGEX_PATTERN_SLUG_SCOPED, LIB_REGEX_PATTERN_SLUG_SIMPLE, } from './regex.js';
7
+ import { isFileIdentical, isPlainObject, pathExists, renameFileWithDate, } from './utility.js';
8
+ import { libWorkflowTemplatesMetadata } from './workflow-templates.js';
7
9
  export class Runner {
8
10
  #config;
11
+ #diagnostics = [];
9
12
  constructor() {
10
13
  const config = {};
11
14
  this.#config = config;
@@ -32,17 +35,24 @@ export class Runner {
32
35
  this.#config = this.parse(this.#config);
33
36
  const currentDirectory = process.cwd();
34
37
  const configPath = join(currentDirectory, 'nova.config.json');
35
- if (await isFileIdentical(configPath, this.#config) === true) {
38
+ const configExists = await pathExists(configPath);
39
+ if (configExists === true
40
+ && await isFileIdentical(configPath, this.#config) === true) {
36
41
  return;
37
42
  }
38
- if (replaceFile === false) {
43
+ if (configExists === true
44
+ && replaceFile === false) {
39
45
  await renameFileWithDate(configPath);
40
46
  }
41
47
  await fs.writeFile(configPath, `${JSON.stringify(this.#config, null, 2)}\n`, 'utf-8');
42
48
  return;
43
49
  }
50
+ diagnostics() {
51
+ return [...this.#diagnostics];
52
+ }
44
53
  parse(value) {
45
54
  const result = {};
55
+ this.#diagnostics = [];
46
56
  if (isPlainObject(value) === false) {
47
57
  return result;
48
58
  }
@@ -55,6 +65,10 @@ export class Runner {
55
65
  const workspaces = this.parseWorkspaces(value['workspaces'], (project !== undefined && project['name'] !== undefined) ? project['name']['slug'] : undefined);
56
66
  const gitignore = this.parseGitignore(value['gitignore']);
57
67
  const agents = this.parseAgents(value['agents']);
68
+ const recipes = this.parseRecipes(value['recipes']);
69
+ const environment = this.parseEnvironment(value['environment'], workspaces, workflows);
70
+ const settings = this.parseSettings(value['settings']);
71
+ this.validateCredContributors(value['workflows'], environment);
58
72
  if (project !== undefined) {
59
73
  result.project = project;
60
74
  }
@@ -82,8 +96,39 @@ export class Runner {
82
96
  if (agents !== undefined) {
83
97
  result.agents = agents;
84
98
  }
99
+ if (recipes !== undefined) {
100
+ result.recipes = recipes;
101
+ }
102
+ if (environment !== undefined) {
103
+ result.environment = environment;
104
+ }
105
+ if (settings !== undefined) {
106
+ result.settings = settings;
107
+ }
85
108
  return result;
86
109
  }
110
+ pushError(name, purpose, message) {
111
+ this.#diagnostics.push({
112
+ severity: 'error',
113
+ message,
114
+ });
115
+ Logger.customize({
116
+ name,
117
+ purpose,
118
+ }).error(message);
119
+ return;
120
+ }
121
+ pushWarning(name, purpose, message) {
122
+ this.#diagnostics.push({
123
+ severity: 'warning',
124
+ message,
125
+ });
126
+ Logger.customize({
127
+ name,
128
+ purpose,
129
+ }).warn(message);
130
+ return;
131
+ }
87
132
  parseProject(value) {
88
133
  if (isPlainObject(value) === false) {
89
134
  return undefined;
@@ -305,7 +350,6 @@ export class Runner {
305
350
  continue;
306
351
  }
307
352
  const nameCandidate = this.getNonEmptyString(options['name']);
308
- const displayNameCandidate = this.getNonEmptyString(options['displayName']);
309
353
  const roleCandidate = this.getNonEmptyString(options['role']);
310
354
  const policyCandidate = this.getNonEmptyString(options['policy']);
311
355
  if (nameCandidate === undefined) {
@@ -353,55 +397,10 @@ export class Runner {
353
397
  }).warn(`Workspace "${path}" name "${nameCandidate}" does not match the required pattern for role "${matchedRole}". Skipping ...`);
354
398
  continue;
355
399
  }
356
- let recipes = undefined;
357
- const recipesCandidate = options['recipes'];
358
- if (isPlainObject(recipesCandidate) === true) {
359
- const parsedRecipes = {};
360
- for (const allowedRecipe of libItemAllowedRecipes) {
361
- const recipeTuple = Reflect.get(recipesCandidate, allowedRecipe);
362
- if (Array.isArray(recipeTuple) === false || recipeTuple.length === 0) {
363
- continue;
364
- }
365
- const enabled = recipeTuple[0];
366
- if (typeof enabled !== 'boolean') {
367
- continue;
368
- }
369
- const settings = recipeTuple[1];
370
- if (settings !== undefined && isPlainObject(settings) === true) {
371
- const parsedSettings = {};
372
- for (const settingsEntry of Object.entries(settings)) {
373
- const settingKey = settingsEntry[0];
374
- const settingValue = settingsEntry[1];
375
- if (typeof settingValue === 'boolean') {
376
- Reflect.set(parsedSettings, settingKey, settingValue);
377
- }
378
- }
379
- if (Object.keys(parsedSettings).length > 0) {
380
- Reflect.set(parsedRecipes, allowedRecipe, [
381
- enabled,
382
- parsedSettings,
383
- ]);
384
- }
385
- else {
386
- Reflect.set(parsedRecipes, allowedRecipe, [enabled]);
387
- }
388
- }
389
- else {
390
- Reflect.set(parsedRecipes, allowedRecipe, [enabled]);
391
- }
392
- }
393
- if (Object.keys(parsedRecipes).length > 0) {
394
- recipes = parsedRecipes;
395
- }
396
- }
397
- const dotenv = this.parseWorkspaceDotenv(options['dotenv']);
398
400
  Reflect.set(workspaces, path, {
399
401
  role: matchedRole,
400
402
  policy,
401
403
  name: nameCandidate,
402
- ...(displayNameCandidate !== undefined) ? { displayName: displayNameCandidate } : {},
403
- ...(recipes !== undefined) ? { recipes } : {},
404
- ...(dotenv !== undefined) ? { dotenv } : {},
405
404
  });
406
405
  }
407
406
  const workspaceKeys = Object.keys(workspaces);
@@ -415,6 +414,325 @@ export class Runner {
415
414
  }
416
415
  return sortedWorkspaces;
417
416
  }
417
+ parseEnvironment(value, workspaces, workflows) {
418
+ if (isPlainObject(value) === false) {
419
+ return undefined;
420
+ }
421
+ const result = {};
422
+ const workspacePaths = (workspaces !== undefined) ? Object.keys(workspaces) : [];
423
+ const workflowNames = (workflows !== undefined) ? workflows.map((workflow) => workflow['name']) : [];
424
+ const collectedPrefixes = [];
425
+ const projectValue = value['project'];
426
+ if (isPlainObject(projectValue) === true) {
427
+ const projectPrefix = this.getNonEmptyString(projectValue['prefix']);
428
+ if (projectPrefix === undefined) {
429
+ this.pushError('Runner.parseEnvironment', 'environment', 'Environment "project" has no prefix. Skipping ...');
430
+ }
431
+ else if (libEnvNamespace.isReservedPrefix(projectPrefix) === true) {
432
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment "project" prefix "${projectPrefix}" is reserved and cannot be used. Skipping ...`);
433
+ }
434
+ else {
435
+ collectedPrefixes.push(projectPrefix);
436
+ const projectVariables = this.parseEnvironmentValues(projectValue['variables'], projectPrefix, 'project');
437
+ const projectResult = { prefix: projectPrefix };
438
+ if (projectVariables !== undefined) {
439
+ projectResult.variables = projectVariables;
440
+ }
441
+ result.project = projectResult;
442
+ }
443
+ }
444
+ const workspacesValue = value['workspaces'];
445
+ if (isPlainObject(workspacesValue) === true) {
446
+ const workspacesResult = {};
447
+ for (const workspaceEntry of Object.entries(workspacesValue)) {
448
+ const workspacePath = workspaceEntry[0];
449
+ const workspaceOptions = workspaceEntry[1];
450
+ if (isPlainObject(workspaceOptions) === false) {
451
+ continue;
452
+ }
453
+ if (workspacePaths.includes(workspacePath) === false) {
454
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workspace "${workspacePath}" does not match a configured workspace. Skipping ...`);
455
+ continue;
456
+ }
457
+ const workspacePrefix = this.getNonEmptyString(workspaceOptions['prefix']);
458
+ if (workspacePrefix === undefined) {
459
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workspace "${workspacePath}" has no prefix. Skipping ...`);
460
+ continue;
461
+ }
462
+ if (libEnvNamespace.isReservedPrefix(workspacePrefix) === true) {
463
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workspace "${workspacePath}" prefix "${workspacePrefix}" is reserved and cannot be used. Skipping ...`);
464
+ continue;
465
+ }
466
+ collectedPrefixes.push(workspacePrefix);
467
+ const workspaceVariables = this.parseEnvironmentValues(workspaceOptions['variables'], workspacePrefix, `workspace "${workspacePath}"`);
468
+ const workspaceResult = { prefix: workspacePrefix };
469
+ if (workspaceVariables !== undefined) {
470
+ workspaceResult.variables = workspaceVariables;
471
+ }
472
+ Reflect.set(workspacesResult, workspacePath, workspaceResult);
473
+ }
474
+ if (Object.keys(workspacesResult).length > 0) {
475
+ result.workspaces = workspacesResult;
476
+ }
477
+ }
478
+ const workflowsValue = value['workflows'];
479
+ if (isPlainObject(workflowsValue) === true) {
480
+ const workflowsResult = {};
481
+ for (const workflowEntry of Object.entries(workflowsValue)) {
482
+ const workflowName = workflowEntry[0];
483
+ const workflowOptions = workflowEntry[1];
484
+ if (isPlainObject(workflowOptions) === false) {
485
+ continue;
486
+ }
487
+ const matchCount = workflowNames.filter((name) => name === workflowName).length;
488
+ if (matchCount === 0) {
489
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workflow "${workflowName}" does not match a configured workflow. Skipping ...`);
490
+ continue;
491
+ }
492
+ if (matchCount > 1) {
493
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workflow "${workflowName}" matches more than one configured workflow. Skipping ...`);
494
+ continue;
495
+ }
496
+ const workflowPrefix = this.getNonEmptyString(workflowOptions['prefix']);
497
+ if (workflowPrefix === undefined) {
498
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workflow "${workflowName}" has no prefix. Skipping ...`);
499
+ continue;
500
+ }
501
+ if (libEnvNamespace.isReservedPrefix(workflowPrefix) === true) {
502
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment workflow "${workflowName}" prefix "${workflowPrefix}" is reserved and cannot be used. Skipping ...`);
503
+ continue;
504
+ }
505
+ collectedPrefixes.push(workflowPrefix);
506
+ Reflect.set(workflowsResult, workflowName, { prefix: workflowPrefix });
507
+ }
508
+ if (Object.keys(workflowsResult).length > 0) {
509
+ result.workflows = workflowsResult;
510
+ }
511
+ }
512
+ for (let i = 0; i < collectedPrefixes.length; i += 1) {
513
+ for (let j = i + 1; j < collectedPrefixes.length; j += 1) {
514
+ const prefixA = collectedPrefixes[i];
515
+ const prefixB = collectedPrefixes[j];
516
+ if (libEnvNamespace.prefixesOverlap(prefixA, prefixB) === true) {
517
+ this.pushError('Runner.parseEnvironment', 'environment', `Environment prefixes "${prefixA}" and "${prefixB}" overlap. Skipping ...`);
518
+ }
519
+ }
520
+ }
521
+ if (Object.keys(result).length === 0) {
522
+ return undefined;
523
+ }
524
+ return result;
525
+ }
526
+ parseEnvironmentValues(rawVariables, prefix, context) {
527
+ if (Array.isArray(rawVariables) === false) {
528
+ return undefined;
529
+ }
530
+ const values = [];
531
+ const seenNames = new Set();
532
+ for (const rawItem of rawVariables) {
533
+ const raw = rawItem;
534
+ if (isPlainObject(raw) === false) {
535
+ continue;
536
+ }
537
+ const key = this.getNonEmptyString(raw['key']);
538
+ if (key === undefined) {
539
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} has a value with no valid key. Skipping ...`);
540
+ continue;
541
+ }
542
+ const reachValues = [
543
+ 'local',
544
+ 'managed',
545
+ 'build',
546
+ 'runtime',
547
+ ];
548
+ const reachCandidate = reachValues.find((reachValue) => reachValue === raw['reach']);
549
+ if (reachCandidate === undefined) {
550
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" has no valid "reach" (local | managed | build | runtime). Skipping ...`);
551
+ continue;
552
+ }
553
+ const isLocal = reachCandidate === 'local';
554
+ const secretCandidate = (typeof raw['secret'] === 'boolean') ? raw['secret'] : undefined;
555
+ if (isLocal === false && secretCandidate === undefined) {
556
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" has no boolean "secret" flag. Skipping ...`);
557
+ continue;
558
+ }
559
+ if (secretCandidate === true
560
+ && (key.startsWith('PUBLIC_') === true
561
+ || key.startsWith('NEXT_PUBLIC_') === true)) {
562
+ this.pushWarning('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" is a browser-exposed key marked secret and would leak if inlined into client output.`);
563
+ }
564
+ let hasError = false;
565
+ if (isLocal === true && secretCandidate !== undefined) {
566
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" is reach "local" and cannot declare "secret". Skipping ...`);
567
+ hasError = true;
568
+ }
569
+ const defaultValueCandidate = (typeof raw['defaultValue'] === 'string') ? raw['defaultValue'] : undefined;
570
+ if (reachCandidate === 'managed' && defaultValueCandidate !== undefined) {
571
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" is reach "managed" and cannot declare a "defaultValue". Skipping ...`);
572
+ hasError = true;
573
+ }
574
+ if (secretCandidate === true && defaultValueCandidate !== undefined) {
575
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" is a secret and cannot declare a "defaultValue". Skipping ...`);
576
+ hasError = true;
577
+ }
578
+ if (isLocal === false) {
579
+ if (libEnvNamespace.startsWithPrefix(key, prefix) === true) {
580
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" starts with its own prefix "${prefix}". Skipping ...`);
581
+ hasError = true;
582
+ }
583
+ const name = libEnvNamespace.githubName(prefix, key);
584
+ if (libEnvNamespace.isGithubLegalName(name) === false) {
585
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" resolves to GitHub name "${name}" which is not a valid GitHub variable or secret name. Skipping ...`);
586
+ hasError = true;
587
+ }
588
+ const foldedName = name.toUpperCase();
589
+ if (seenNames.has(foldedName) === true) {
590
+ this.pushError('Runner.parseEnvironmentValues', 'environment', `Environment ${context} value "${key}" resolves to GitHub name "${name}" which duplicates another value in the same namespace. Skipping ...`);
591
+ hasError = true;
592
+ }
593
+ if (hasError === false) {
594
+ seenNames.add(foldedName);
595
+ }
596
+ }
597
+ if (hasError === true) {
598
+ continue;
599
+ }
600
+ const value = {
601
+ key,
602
+ reach: reachCandidate,
603
+ };
604
+ if (isLocal === false) {
605
+ Reflect.set(value, 'secret', secretCandidate);
606
+ }
607
+ if (reachCandidate !== 'managed' && defaultValueCandidate !== undefined) {
608
+ Reflect.set(value, 'defaultValue', defaultValueCandidate);
609
+ }
610
+ values.push(value);
611
+ }
612
+ return (values.length > 0) ? values : undefined;
613
+ }
614
+ validateCredContributors(rawWorkflows, environment) {
615
+ if (Array.isArray(rawWorkflows) === false) {
616
+ return;
617
+ }
618
+ if (environment === undefined) {
619
+ return;
620
+ }
621
+ const projectGroup = (environment !== undefined) ? environment['project'] : undefined;
622
+ const hasProjectPrefix = projectGroup !== undefined;
623
+ const workspacesGroup = (environment !== undefined) ? environment['workspaces'] : undefined;
624
+ const workflowsGroup = (environment !== undefined) ? environment['workflows'] : undefined;
625
+ const reported = new Set();
626
+ const serverBearingWorkspaces = new Set();
627
+ for (const rawWorkflowItem of rawWorkflows) {
628
+ const rawWorkflow = rawWorkflowItem;
629
+ if (isPlainObject(rawWorkflow) === false) {
630
+ continue;
631
+ }
632
+ const template = this.getNonEmptyString(rawWorkflow['template']);
633
+ if (template === undefined) {
634
+ continue;
635
+ }
636
+ const templateMeta = libWorkflowTemplatesMetadata.find((entry) => entry['name'] === template);
637
+ if (templateMeta === undefined) {
638
+ continue;
639
+ }
640
+ const workflowName = this.getNonEmptyString(rawWorkflow['name']);
641
+ const ownsConfigKeys = Object.values(templateMeta['variables']).some((variableMeta) => variableMeta['auto'] !== true && variableMeta['format'] !== 'literal');
642
+ const workflowGroup = (workflowsGroup !== undefined && workflowName !== undefined) ? workflowsGroup[workflowName] : undefined;
643
+ if (ownsConfigKeys === true
644
+ && workflowName !== undefined
645
+ && workflowGroup === undefined) {
646
+ const workflowMessage = `Environment workflow "${workflowName}" contributes config keys, but has no "workflows" entry with a prefix. Skipping ...`;
647
+ if (reported.has(workflowMessage) === false) {
648
+ reported.add(workflowMessage);
649
+ this.pushError('Runner.validateCredContributors', 'environment', workflowMessage);
650
+ }
651
+ }
652
+ const templateTargets = templateMeta['targets'];
653
+ if (templateTargets === undefined) {
654
+ continue;
655
+ }
656
+ const deployTargets = [];
657
+ const deployList = rawWorkflow['deploy'];
658
+ if (Array.isArray(deployList) === true) {
659
+ for (const deployItem of deployList) {
660
+ const deployEntry = deployItem;
661
+ if (isPlainObject(deployEntry) === false) {
662
+ continue;
663
+ }
664
+ const to = this.getNonEmptyString(deployEntry['to']);
665
+ const path = this.getNonEmptyString(deployEntry['path']);
666
+ if (to !== undefined && path !== undefined) {
667
+ deployTargets.push({
668
+ targetType: to,
669
+ appPath: path,
670
+ });
671
+ }
672
+ }
673
+ }
674
+ const targetList = rawWorkflow['targets'];
675
+ if (Array.isArray(targetList) === true) {
676
+ for (const targetItem of targetList) {
677
+ const targetEntry = targetItem;
678
+ if (isPlainObject(targetEntry) === false) {
679
+ continue;
680
+ }
681
+ const type = this.getNonEmptyString(targetEntry['type']);
682
+ const workingDir = this.getNonEmptyString(targetEntry['workingDir']);
683
+ if (type !== undefined && workingDir !== undefined) {
684
+ deployTargets.push({
685
+ targetType: type,
686
+ appPath: workingDir,
687
+ });
688
+ }
689
+ }
690
+ }
691
+ for (const deployTarget of deployTargets) {
692
+ const targetMeta = templateTargets[deployTarget['targetType']];
693
+ if (targetMeta === undefined) {
694
+ continue;
695
+ }
696
+ if (targetMeta['supportsRuntimeSecretSync'] === true) {
697
+ serverBearingWorkspaces.add(deployTarget['appPath']);
698
+ }
699
+ const targetVariables = targetMeta['variables'];
700
+ for (const variableEntry of Object.entries(targetVariables)) {
701
+ const variableName = variableEntry[0];
702
+ const variableMeta = variableEntry[1];
703
+ const scope = variableMeta['scope'];
704
+ if (scope === 'account' && hasProjectPrefix === false) {
705
+ const message = `Environment deploy target "${deployTarget['targetType']}" needs the account credential "${variableName}", but "project" has no prefix. Skipping ...`;
706
+ if (reported.has(message) === false) {
707
+ reported.add(message);
708
+ this.pushError('Runner.validateCredContributors', 'environment', message);
709
+ }
710
+ }
711
+ else if (scope === 'app') {
712
+ const workspace = (workspacesGroup !== undefined) ? workspacesGroup[deployTarget['appPath']] : undefined;
713
+ if (workspace === undefined) {
714
+ const workspaceMessage = `Environment deploy target "${deployTarget['targetType']}" needs the app credential "${variableName}" for "${deployTarget['appPath']}", but that workspace has no prefix. Skipping ...`;
715
+ if (reported.has(workspaceMessage) === false) {
716
+ reported.add(workspaceMessage);
717
+ this.pushError('Runner.validateCredContributors', 'environment', workspaceMessage);
718
+ }
719
+ }
720
+ }
721
+ }
722
+ }
723
+ }
724
+ if (workspacesGroup !== undefined) {
725
+ for (const workspaceEntry of Object.entries(workspacesGroup)) {
726
+ const runtimeWorkspacePath = workspaceEntry[0];
727
+ const runtimeWorkspace = workspaceEntry[1];
728
+ const hasRuntimeValue = (runtimeWorkspace['variables'] ?? []).some((variable) => variable['reach'] === 'runtime');
729
+ if (hasRuntimeValue === true && serverBearingWorkspaces.has(runtimeWorkspacePath) === false) {
730
+ this.pushError('Runner.validateCredContributors', 'environment', `Environment workspace "${runtimeWorkspacePath}" declares a reach "runtime" value, but deploys to no server-bearing target. Skipping ...`);
731
+ }
732
+ }
733
+ }
734
+ return;
735
+ }
418
736
  parseWorkflows(value) {
419
737
  if (Array.isArray(value) === false) {
420
738
  return undefined;
@@ -429,8 +747,8 @@ export class Runner {
429
747
  if (template === undefined) {
430
748
  continue;
431
749
  }
432
- const suffix = this.getNonEmptyString(castItem['suffix']);
433
- if (suffix === undefined) {
750
+ const name = this.getNonEmptyString(castItem['name']);
751
+ if (name === undefined) {
434
752
  continue;
435
753
  }
436
754
  const rawTriggers = castItem['triggers'];
@@ -446,61 +764,56 @@ export class Runner {
446
764
  }
447
765
  const rawDependsOn = castItem['depends-on'];
448
766
  const dependsOn = (Array.isArray(rawDependsOn) === true) ? rawDependsOn.filter((entry) => typeof entry === 'string' && entry.trim() !== '') : [];
449
- const rawScopes = castItem['scopes'];
450
- const scopes = (Array.isArray(rawScopes) === true) ? rawScopes.filter((entry) => typeof entry === 'string' && entry.trim() !== '') : [];
451
- const rawTargets = castItem['targets'];
452
- const targets = [];
453
- if (Array.isArray(rawTargets) === true) {
454
- for (const rawTarget of rawTargets) {
455
- const rawTargetValue = rawTarget;
456
- if (isPlainObject(rawTargetValue) === false) {
767
+ const rawBuild = castItem['build'];
768
+ const build = (Array.isArray(rawBuild) === true) ? rawBuild.filter((entry) => typeof entry === 'string' && entry.trim() !== '') : [];
769
+ const rawDeploy = castItem['deploy'];
770
+ const deploy = [];
771
+ if (Array.isArray(rawDeploy) === true) {
772
+ for (const rawDeployEntry of rawDeploy) {
773
+ const rawDeployValue = rawDeployEntry;
774
+ if (isPlainObject(rawDeployValue) === false) {
457
775
  continue;
458
776
  }
459
- const targetType = this.getNonEmptyString(rawTargetValue['type']);
460
- const targetWorkingDir = this.getNonEmptyString(rawTargetValue['workingDir']);
461
- if (targetType === undefined || targetWorkingDir === undefined) {
777
+ const deployTo = this.getNonEmptyString(rawDeployValue['to']);
778
+ const deployPath = this.getNonEmptyString(rawDeployValue['path']);
779
+ if (deployTo === undefined || deployPath === undefined) {
462
780
  continue;
463
781
  }
464
- const rawTargetNeeds = rawTargetValue['needs'];
465
- const targetNeeds = (Array.isArray(rawTargetNeeds) === true) ? rawTargetNeeds.filter((entry) => typeof entry === 'string' && entry.trim() !== '') : [];
466
- const target = {
467
- type: targetType,
468
- workingDir: targetWorkingDir,
782
+ const rawDeployAfter = rawDeployValue['after'];
783
+ const deployAfter = (Array.isArray(rawDeployAfter) === true) ? rawDeployAfter.filter((entry) => typeof entry === 'string' && entry.trim() !== '') : [];
784
+ const deployTarget = {
785
+ to: deployTo,
786
+ path: deployPath,
469
787
  };
470
- if (targetNeeds.length > 0) {
471
- Reflect.set(target, 'needs', targetNeeds);
788
+ if (deployAfter.length > 0) {
789
+ Reflect.set(deployTarget, 'after', deployAfter);
472
790
  }
473
- targets.push(target);
791
+ const deployWith = rawDeployValue['with'];
792
+ const parsedDeployWith = this.parseWorkflowWith(deployWith);
793
+ if (parsedDeployWith !== undefined) {
794
+ Reflect.set(deployTarget, 'with', parsedDeployWith);
795
+ }
796
+ deploy.push(deployTarget);
474
797
  }
475
798
  }
476
- const settings = castItem['settings'];
799
+ const withMap = castItem['with'];
477
800
  const workflow = {
478
801
  template,
479
- suffix,
802
+ name,
480
803
  triggers,
481
804
  };
482
805
  if (dependsOn.length > 0) {
483
806
  Reflect.set(workflow, 'depends-on', dependsOn);
484
807
  }
485
- if (scopes.length > 0) {
486
- Reflect.set(workflow, 'scopes', scopes);
808
+ if (build.length > 0) {
809
+ Reflect.set(workflow, 'build', build);
487
810
  }
488
- if (targets.length > 0) {
489
- Reflect.set(workflow, 'targets', targets);
811
+ if (deploy.length > 0) {
812
+ Reflect.set(workflow, 'deploy', deploy);
490
813
  }
491
- if (isPlainObject(settings) === true) {
492
- const parsedSettings = {};
493
- const sortedSettingsEntries = Object.entries(settings).sort((a, b) => a[0].localeCompare(b[0]));
494
- for (const settingsEntry of sortedSettingsEntries) {
495
- const settingsKey = settingsEntry[0];
496
- const settingsValue = settingsEntry[1];
497
- if (typeof settingsValue === 'string') {
498
- Reflect.set(parsedSettings, settingsKey, settingsValue);
499
- }
500
- }
501
- if (Object.keys(parsedSettings).length > 0) {
502
- workflow.settings = parsedSettings;
503
- }
814
+ const parsedWith = this.parseWorkflowWith(withMap);
815
+ if (parsedWith !== undefined) {
816
+ workflow.with = parsedWith;
504
817
  }
505
818
  workflows.push(workflow);
506
819
  }
@@ -512,12 +825,30 @@ export class Runner {
512
825
  if (templateCompare !== 0) {
513
826
  return templateCompare;
514
827
  }
515
- const suffixA = a['suffix'] ?? '';
516
- const suffixB = b['suffix'] ?? '';
517
- return suffixA.localeCompare(suffixB);
828
+ const nameA = a['name'] ?? '';
829
+ const nameB = b['name'] ?? '';
830
+ return nameA.localeCompare(nameB);
518
831
  });
519
832
  return workflows;
520
833
  }
834
+ parseWorkflowWith(value) {
835
+ if (isPlainObject(value) === false) {
836
+ return undefined;
837
+ }
838
+ const parsed = {};
839
+ const sortedEntries = Object.entries(value).sort((a, b) => a[0].localeCompare(b[0]));
840
+ for (const entry of sortedEntries) {
841
+ const entryKey = entry[0];
842
+ const entryValue = entry[1];
843
+ if (typeof entryValue === 'string') {
844
+ Reflect.set(parsed, entryKey, entryValue);
845
+ }
846
+ }
847
+ if (Object.keys(parsed).length === 0) {
848
+ return undefined;
849
+ }
850
+ return parsed;
851
+ }
521
852
  parseGithub(value) {
522
853
  if (isPlainObject(value) === false) {
523
854
  return undefined;
@@ -533,10 +864,6 @@ export class Runner {
533
864
  if (repo !== undefined) {
534
865
  result.repo = repo;
535
866
  }
536
- const recipes = this.getGithubRecipes(value['recipes']);
537
- if (recipes !== undefined) {
538
- result.recipes = recipes;
539
- }
540
867
  const topics = this.getGithubTopics(value['topics']);
541
868
  if (topics !== undefined) {
542
869
  result.topics = topics;
@@ -555,73 +882,117 @@ export class Runner {
555
882
  }
556
883
  return (Object.keys(result).length > 0) ? result : undefined;
557
884
  }
558
- parseGitignore(value) {
885
+ parseRecipes(value) {
559
886
  if (isPlainObject(value) === false) {
560
887
  return undefined;
561
888
  }
562
889
  const result = {};
563
- const projectExcludes = this.getArrayOfNonEmptyStrings(value['projectExcludes']);
564
- if (projectExcludes !== undefined) {
565
- result.projectExcludes = projectExcludes;
890
+ const github = this.getRecipeEntries(value['github'], libItemRecipesByCategory['github']);
891
+ if (github !== undefined) {
892
+ result.github = github;
893
+ }
894
+ const license = this.getRecipeEntries(value['license'], libItemRecipesByCategory['license']);
895
+ if (license !== undefined) {
896
+ result.license = license;
897
+ }
898
+ const readMe = this.getRecipeEntries(value['read-me'], libItemRecipesByCategory['read-me']);
899
+ if (readMe !== undefined) {
900
+ Reflect.set(result, 'read-me', readMe);
901
+ }
902
+ const packageJson = this.getPackageJsonRecipes(value['package-json']);
903
+ if (packageJson !== undefined) {
904
+ Reflect.set(result, 'package-json', packageJson);
566
905
  }
567
906
  return (Object.keys(result).length > 0) ? result : undefined;
568
907
  }
569
- parseAgents(value) {
570
- if (Array.isArray(value) === false) {
908
+ getRecipeEntries(value, allowedNames) {
909
+ if (isPlainObject(value) === false) {
571
910
  return undefined;
572
911
  }
573
- const agents = [];
574
- for (const allowedAgent of libItemAllowedAgents) {
575
- if (value.some((item) => item === allowedAgent) === true) {
576
- agents.push(allowedAgent);
912
+ const result = {};
913
+ for (const name of allowedNames) {
914
+ const entry = this.getRecipeEntry(Reflect.get(value, name));
915
+ if (entry !== undefined) {
916
+ Reflect.set(result, name, entry);
577
917
  }
578
918
  }
579
- return (agents.length > 0) ? agents : undefined;
919
+ return (Object.keys(result).length > 0) ? result : undefined;
580
920
  }
581
- parseDotenv(value) {
921
+ getPackageJsonRecipes(value) {
582
922
  if (isPlainObject(value) === false) {
583
923
  return undefined;
584
924
  }
585
- const rawVariables = value['variables'];
586
- if (Array.isArray(rawVariables) === false) {
925
+ const result = {};
926
+ for (const valueEntry of Object.entries(value)) {
927
+ const workspacePath = valueEntry[0];
928
+ const workspaceValue = valueEntry[1];
929
+ const entries = this.getRecipeEntries(workspaceValue, libItemRecipesByCategory['package-json']);
930
+ if (entries !== undefined) {
931
+ Reflect.set(result, workspacePath, entries);
932
+ }
933
+ }
934
+ return (Object.keys(result).length > 0) ? result : undefined;
935
+ }
936
+ getRecipeEntry(value) {
937
+ if (isPlainObject(value) === false) {
587
938
  return undefined;
588
939
  }
589
- const variables = [];
590
- const variablesByKey = new Map();
591
- for (const rawVariableItem of rawVariables) {
592
- const rawVariable = rawVariableItem;
593
- if (isPlainObject(rawVariable) === false) {
594
- continue;
940
+ const enabled = value['enabled'];
941
+ if (typeof enabled !== 'boolean') {
942
+ return undefined;
943
+ }
944
+ const result = {
945
+ enabled,
946
+ };
947
+ const settingsCandidate = value['settings'];
948
+ if (isPlainObject(settingsCandidate) === true) {
949
+ const settings = {};
950
+ for (const settingsEntry of Object.entries(settingsCandidate)) {
951
+ const settingKey = settingsEntry[0];
952
+ const settingValue = settingsEntry[1];
953
+ if (typeof settingValue === 'boolean') {
954
+ Reflect.set(settings, settingKey, settingValue);
955
+ }
595
956
  }
596
- const key = this.getNonEmptyString(rawVariable['key']);
597
- if (key === undefined || LIB_REGEX_PATTERN_ENV_VAR_KEY_SCREAMING_SNAKE.test(key) === false) {
598
- continue;
957
+ if (Object.keys(settings).length > 0) {
958
+ result.settings = settings;
599
959
  }
600
- const isReservedKey = libItemReservedDotenvKeys.some((reservedKey) => reservedKey === key);
601
- if (isReservedKey === true) {
602
- Logger.customize({
603
- name: 'Runner.parseDotenv',
604
- purpose: 'variables',
605
- }).warn(`Dotenv variable "${key}" is reserved and managed by the dotenv template. It cannot be declared.`);
606
- continue;
607
- }
608
- const defaultValueCandidate = (typeof rawVariable['defaultValue'] === 'string') ? rawVariable['defaultValue'] : undefined;
609
- const defaultValue = defaultValueCandidate ?? '';
610
- variablesByKey.set(key, {
611
- key,
612
- defaultValue,
613
- });
614
960
  }
615
- variables.push(...variablesByKey.values());
616
- return (variables.length > 0) ? variables : undefined;
961
+ return result;
617
962
  }
618
- parseWorkspaceDotenv(value) {
963
+ parseGitignore(value) {
619
964
  if (isPlainObject(value) === false) {
620
965
  return undefined;
621
966
  }
622
- return {
623
- variables: this.parseDotenv(value) ?? [],
624
- };
967
+ const result = {};
968
+ const projectExcludes = this.getArrayOfNonEmptyStrings(value['projectExcludes']);
969
+ if (projectExcludes !== undefined) {
970
+ result.projectExcludes = projectExcludes;
971
+ }
972
+ return (Object.keys(result).length > 0) ? result : undefined;
973
+ }
974
+ parseSettings(value) {
975
+ if (isPlainObject(value) === false) {
976
+ return undefined;
977
+ }
978
+ const result = {};
979
+ const lockStepVersioning = (value['lockStepVersioning'] === true) ? true : undefined;
980
+ if (lockStepVersioning !== undefined) {
981
+ result.lockStepVersioning = lockStepVersioning;
982
+ }
983
+ return (Object.keys(result).length > 0) ? result : undefined;
984
+ }
985
+ parseAgents(value) {
986
+ if (Array.isArray(value) === false) {
987
+ return undefined;
988
+ }
989
+ const agents = [];
990
+ for (const allowedAgent of libItemAllowedAgents) {
991
+ if (value.some((item) => item === allowedAgent) === true) {
992
+ agents.push(allowedAgent);
993
+ }
994
+ }
995
+ return (agents.length > 0) ? agents : undefined;
625
996
  }
626
997
  getGithubFeatures(value) {
627
998
  if (isPlainObject(value) === false) {
@@ -704,25 +1075,6 @@ export class Runner {
704
1075
  }
705
1076
  return (Object.keys(result).length > 0) ? result : undefined;
706
1077
  }
707
- getGithubRecipes(value) {
708
- if (isPlainObject(value) === false) {
709
- return undefined;
710
- }
711
- const result = {};
712
- const syncIdentity = (typeof value['sync-identity'] === 'boolean') ? value['sync-identity'] : undefined;
713
- if (syncIdentity !== undefined) {
714
- Reflect.set(result, 'sync-identity', syncIdentity);
715
- }
716
- const syncFeatures = (typeof value['sync-features'] === 'boolean') ? value['sync-features'] : undefined;
717
- if (syncFeatures !== undefined) {
718
- Reflect.set(result, 'sync-features', syncFeatures);
719
- }
720
- const syncPolicies = (typeof value['sync-policies'] === 'boolean') ? value['sync-policies'] : undefined;
721
- if (syncPolicies !== undefined) {
722
- Reflect.set(result, 'sync-policies', syncPolicies);
723
- }
724
- return (Object.keys(result).length > 0) ? result : undefined;
725
- }
726
1078
  getGithubTopics(value) {
727
1079
  if (Array.isArray(value) === false) {
728
1080
  return undefined;