outfitter 0.3.2 → 0.3.4

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 (256) hide show
  1. package/README.md +33 -5
  2. package/dist/actions/add.d.ts +18 -0
  3. package/dist/actions/add.js +14 -0
  4. package/dist/actions/check-automation.d.ts +20 -0
  5. package/dist/actions/check-automation.js +27 -0
  6. package/dist/actions/check.d.ts +34 -0
  7. package/dist/actions/check.js +19 -0
  8. package/dist/actions/demo.d.ts +12 -0
  9. package/dist/actions/demo.js +11 -0
  10. package/dist/actions/docs-output-mode.d.ts +4 -0
  11. package/dist/actions/docs-output-mode.js +8 -0
  12. package/dist/actions/docs.d.ts +25 -0
  13. package/dist/actions/docs.js +31 -0
  14. package/dist/actions/doctor.d.ts +10 -0
  15. package/dist/actions/doctor.js +15 -0
  16. package/dist/actions/init.d.ts +28 -0
  17. package/dist/actions/init.js +31 -0
  18. package/dist/actions/scaffold.d.ts +19 -0
  19. package/dist/actions/scaffold.js +21 -0
  20. package/dist/actions/shared.d.ts +61 -0
  21. package/dist/actions/shared.js +30 -0
  22. package/dist/actions/upgrade.d.ts +17 -0
  23. package/dist/actions/upgrade.js +21 -0
  24. package/dist/actions.d.ts +2 -0
  25. package/dist/actions.js +66 -0
  26. package/dist/cli.js +66 -4
  27. package/dist/commands/add.d.ts +54 -0
  28. package/dist/commands/add.js +16 -0
  29. package/dist/commands/check-action-ceremony.d.ts +55 -0
  30. package/dist/commands/check-action-ceremony.js +15 -0
  31. package/dist/commands/check-docs-sentinel.d.ts +27 -0
  32. package/dist/commands/check-docs-sentinel.js +18 -0
  33. package/dist/commands/check-orchestrator.d.ts +2 -0
  34. package/dist/commands/check-orchestrator.js +17 -0
  35. package/dist/commands/check-preset-versions.d.ts +20 -0
  36. package/dist/commands/check-preset-versions.js +15 -0
  37. package/dist/commands/check-publish-guardrails.d.ts +38 -0
  38. package/dist/commands/check-publish-guardrails.js +19 -0
  39. package/dist/commands/check-surface-map-format.d.ts +29 -0
  40. package/dist/commands/check-surface-map-format.js +19 -0
  41. package/dist/commands/check-surface-map.d.ts +20 -0
  42. package/dist/commands/check-surface-map.js +15 -0
  43. package/dist/commands/check-tsdoc.d.ts +3 -0
  44. package/dist/commands/check-tsdoc.js +9 -0
  45. package/dist/commands/check.d.ts +93 -0
  46. package/dist/commands/check.js +14 -0
  47. package/dist/commands/demo.d.ts +21 -0
  48. package/dist/commands/demo.js +8 -0
  49. package/dist/commands/docs-api.d.ts +4 -0
  50. package/dist/commands/docs-api.js +13 -0
  51. package/dist/commands/docs-export.d.ts +4 -0
  52. package/dist/commands/docs-export.js +12 -0
  53. package/dist/commands/docs-list.d.ts +3 -0
  54. package/dist/commands/docs-list.js +13 -0
  55. package/dist/commands/docs-module-loader.d.ts +2 -0
  56. package/dist/commands/docs-module-loader.js +8 -0
  57. package/dist/commands/docs-search.d.ts +3 -0
  58. package/dist/commands/docs-search.js +13 -0
  59. package/dist/commands/docs-show.d.ts +3 -0
  60. package/dist/commands/docs-show.js +13 -0
  61. package/dist/commands/docs-types.d.ts +21 -0
  62. package/dist/commands/docs-types.js +1 -0
  63. package/dist/commands/doctor.d.ts +2 -0
  64. package/dist/commands/doctor.js +17 -0
  65. package/dist/commands/init-execution.d.ts +8 -0
  66. package/dist/commands/init-execution.js +11 -0
  67. package/dist/commands/init-option-resolution.d.ts +5 -0
  68. package/dist/commands/init-option-resolution.js +14 -0
  69. package/dist/commands/init-output.d.ts +9 -0
  70. package/dist/commands/init-output.js +11 -0
  71. package/dist/commands/init.d.ts +9 -0
  72. package/dist/commands/init.js +24 -0
  73. package/dist/commands/jq-utils.d.ts +17 -0
  74. package/dist/commands/jq-utils.js +8 -0
  75. package/dist/commands/repo.d.ts +3 -0
  76. package/dist/commands/repo.js +13 -0
  77. package/dist/commands/scaffold-output.d.ts +4 -0
  78. package/dist/commands/scaffold-output.js +11 -0
  79. package/dist/commands/scaffold-planning.d.ts +65 -0
  80. package/dist/commands/scaffold-planning.js +20 -0
  81. package/dist/commands/scaffold.d.ts +4 -0
  82. package/dist/commands/scaffold.js +26 -0
  83. package/dist/commands/shared-deps.d.ts +22 -0
  84. package/dist/commands/shared-deps.js +11 -0
  85. package/dist/commands/upgrade-apply.d.ts +14 -0
  86. package/dist/commands/upgrade-apply.js +8 -0
  87. package/dist/commands/upgrade-codemods.d.ts +47 -0
  88. package/dist/commands/upgrade-codemods.js +14 -0
  89. package/dist/commands/upgrade-latest-version.d.ts +8 -0
  90. package/dist/commands/upgrade-latest-version.js +8 -0
  91. package/dist/commands/upgrade-migration-docs.d.ts +3 -0
  92. package/dist/commands/upgrade-migration-docs.js +15 -0
  93. package/dist/commands/upgrade-migration-frontmatter.d.ts +2 -0
  94. package/dist/commands/upgrade-migration-frontmatter.js +10 -0
  95. package/dist/commands/upgrade-migration-guides.d.ts +5 -0
  96. package/dist/commands/upgrade-migration-guides.js +10 -0
  97. package/dist/commands/upgrade-output.d.ts +5 -0
  98. package/dist/commands/upgrade-output.js +11 -0
  99. package/dist/commands/upgrade-planner.d.ts +58 -0
  100. package/dist/commands/upgrade-planner.js +8 -0
  101. package/dist/commands/upgrade-report.d.ts +5 -0
  102. package/dist/commands/upgrade-report.js +8 -0
  103. package/dist/commands/upgrade-workspace.d.ts +2 -0
  104. package/dist/commands/upgrade-workspace.js +16 -0
  105. package/dist/commands/upgrade.d.ts +5 -0
  106. package/dist/commands/upgrade.js +37 -0
  107. package/dist/create/index.d.ts +5 -0
  108. package/dist/create/index.js +2 -0
  109. package/dist/create/planner.d.ts +3 -0
  110. package/dist/create/planner.js +85 -0
  111. package/dist/create/presets.d.ts +3 -0
  112. package/dist/create/presets.js +12 -0
  113. package/dist/create/types.d.ts +2 -0
  114. package/dist/create/types.js +1 -0
  115. package/dist/engine/blocks.d.ts +3 -0
  116. package/dist/engine/blocks.js +12 -0
  117. package/dist/engine/collector.d.ts +2 -0
  118. package/dist/engine/collector.js +8 -0
  119. package/dist/engine/config.d.ts +3 -0
  120. package/dist/engine/config.js +15 -0
  121. package/dist/engine/dependency-versions.d.ts +17 -0
  122. package/dist/engine/dependency-versions.js +12 -0
  123. package/dist/engine/executor.d.ts +3 -0
  124. package/dist/engine/executor.js +156 -0
  125. package/dist/engine/index.d.ts +10 -0
  126. package/dist/engine/index.js +54 -0
  127. package/dist/engine/names.d.ts +2 -0
  128. package/dist/engine/names.js +24 -0
  129. package/dist/engine/post-scaffold.d.ts +3 -0
  130. package/dist/engine/post-scaffold.js +8 -0
  131. package/dist/engine/preset.d.ts +3 -0
  132. package/dist/engine/preset.js +17 -0
  133. package/dist/engine/render-plan.d.ts +7 -0
  134. package/dist/engine/render-plan.js +9 -0
  135. package/dist/engine/template.d.ts +4 -0
  136. package/dist/engine/template.js +34 -0
  137. package/dist/engine/types.d.ts +2 -0
  138. package/dist/engine/types.js +8 -0
  139. package/dist/engine/workspace.d.ts +3 -0
  140. package/dist/engine/workspace.js +20 -0
  141. package/dist/index.d.ts +17 -397
  142. package/dist/index.js +7 -165
  143. package/dist/manifest.d.ts +71 -0
  144. package/dist/manifest.js +16 -0
  145. package/dist/output-mode.d.ts +2 -0
  146. package/dist/output-mode.js +10 -0
  147. package/dist/shared/outfitter-109s75x0.d.ts +76 -0
  148. package/dist/shared/outfitter-1fy7byz5.js +170 -0
  149. package/dist/shared/outfitter-1gmrtapz.js +325 -0
  150. package/dist/shared/outfitter-1h7k8xxt.js +29 -0
  151. package/dist/shared/outfitter-1tfa9hke.d.ts +55 -0
  152. package/dist/shared/outfitter-2nx0k4b3.d.ts +4 -0
  153. package/dist/shared/outfitter-2ysjerp6.d.ts +44 -0
  154. package/dist/shared/outfitter-2z61gp5w.js +29 -0
  155. package/dist/shared/outfitter-34vg353f.d.ts +82 -0
  156. package/dist/shared/outfitter-3dq4r10s.d.ts +24 -0
  157. package/dist/shared/outfitter-3rcrvva8.js +103 -0
  158. package/dist/shared/outfitter-3tx3adgj.js +278 -0
  159. package/dist/shared/outfitter-4q1zfmvc.js +154 -0
  160. package/dist/shared/outfitter-4s9meh3j.js +221 -0
  161. package/dist/shared/outfitter-507ra35w.js +285 -0
  162. package/dist/shared/outfitter-56jq0rh2.d.ts +42 -0
  163. package/dist/shared/outfitter-58rn1sj1.d.ts +30 -0
  164. package/dist/shared/outfitter-5d9wbzhh.d.ts +19 -0
  165. package/dist/shared/outfitter-5j7zee11.d.ts +180 -0
  166. package/dist/shared/outfitter-5r6q2749.d.ts +18 -0
  167. package/dist/shared/outfitter-5vx1bp7h.js +41 -0
  168. package/dist/shared/outfitter-6ddf91vh.js +190 -0
  169. package/dist/shared/outfitter-6mpkh3zn.js +432 -0
  170. package/dist/shared/outfitter-6rtcemk7.d.ts +18 -0
  171. package/dist/shared/outfitter-6t7xeyg1.js +159 -0
  172. package/dist/shared/outfitter-738z4c37.js +262 -0
  173. package/dist/shared/outfitter-76k25svs.js +322 -0
  174. package/dist/shared/outfitter-7n7vsz95.js +101 -0
  175. package/dist/shared/outfitter-7q9fnbwa.js +60 -0
  176. package/dist/shared/outfitter-7r12fj7f.js +30 -0
  177. package/dist/shared/outfitter-8ggmja91.js +301 -0
  178. package/dist/shared/outfitter-8kmak0wc.d.ts +4 -0
  179. package/dist/shared/outfitter-8y2dfx6n.js +11 -0
  180. package/dist/shared/outfitter-940h0x7b.js +71 -0
  181. package/dist/shared/outfitter-954y4mzx.d.ts +5 -0
  182. package/dist/shared/outfitter-a79xrm12.d.ts +17 -0
  183. package/dist/shared/outfitter-b9cpnr7e.js +110 -0
  184. package/dist/shared/outfitter-bpr28y54.js +70 -0
  185. package/dist/shared/outfitter-c7sbs7es.js +92 -0
  186. package/dist/shared/outfitter-cyhzstz0.js +93 -0
  187. package/dist/shared/outfitter-cyvr4r8d.d.ts +67 -0
  188. package/dist/shared/outfitter-d0kqashd.d.ts +98 -0
  189. package/dist/shared/outfitter-dmfac1w9.js +306 -0
  190. package/dist/shared/outfitter-e84cr97g.js +232 -0
  191. package/dist/shared/outfitter-ec83h4v2.js +17 -0
  192. package/dist/shared/outfitter-eepj7rf7.js +4 -0
  193. package/dist/shared/outfitter-ekb6t1zz.js +35 -0
  194. package/dist/shared/outfitter-ex8gn945.js +51 -0
  195. package/dist/shared/outfitter-f3a70135.js +75 -0
  196. package/dist/shared/outfitter-fbvfd5zq.d.ts +13 -0
  197. package/dist/shared/outfitter-fj2v5ffz.js +165 -0
  198. package/dist/shared/outfitter-fx1m251y.js +122 -0
  199. package/dist/shared/outfitter-fxry5n58.js +254 -0
  200. package/dist/shared/outfitter-g3hvjshg.js +1 -0
  201. package/dist/shared/outfitter-gdc7b7de.d.ts +5 -0
  202. package/dist/shared/outfitter-gyayfx5r.js +156 -0
  203. package/dist/shared/outfitter-h0wmtxw8.d.ts +23 -0
  204. package/dist/shared/outfitter-hcexcvxe.d.ts +25 -0
  205. package/dist/shared/outfitter-hf5bj2gq.js +117 -0
  206. package/dist/shared/outfitter-hsp8vy5m.d.ts +146 -0
  207. package/dist/shared/outfitter-htx4asgr.d.ts +52 -0
  208. package/dist/shared/outfitter-jwxggvz4.js +42 -0
  209. package/dist/shared/outfitter-ksyvwmb5.js +191 -0
  210. package/dist/shared/outfitter-m3ehh37q.d.ts +22 -0
  211. package/dist/shared/outfitter-mstr60zz.js +215 -0
  212. package/dist/shared/outfitter-n0ed012k.js +101 -0
  213. package/dist/shared/outfitter-n13pqaft.js +19 -0
  214. package/dist/shared/outfitter-nxvjxrmw.d.ts +48 -0
  215. package/dist/shared/outfitter-p2wn07b7.js +160 -0
  216. package/dist/shared/outfitter-px5sv5gn.js +321 -0
  217. package/dist/shared/outfitter-q1g58t85.js +8 -0
  218. package/dist/shared/outfitter-qsd5638j.js +378 -0
  219. package/dist/shared/outfitter-qsrx7m4w.js +72 -0
  220. package/dist/shared/outfitter-r2awqszh.d.ts +52 -0
  221. package/dist/shared/outfitter-rdpw2sbp.d.ts +77 -0
  222. package/dist/shared/outfitter-rp89dafm.js +109 -0
  223. package/dist/shared/outfitter-s1c0whzj.js +121 -0
  224. package/dist/shared/outfitter-ssrtakh3.js +342 -0
  225. package/dist/shared/outfitter-ssynegbs.js +167 -0
  226. package/dist/shared/outfitter-svts4wk2.js +36 -0
  227. package/dist/shared/outfitter-tavatb5p.js +166 -0
  228. package/dist/shared/outfitter-tqznjgbm.js +44 -0
  229. package/dist/shared/outfitter-ttjr95y9.js +98 -0
  230. package/dist/shared/outfitter-wcrp7d7m.d.ts +5 -0
  231. package/dist/shared/outfitter-wkt0a0ra.js +67 -0
  232. package/dist/shared/outfitter-wrcqq29p.js +132 -0
  233. package/dist/shared/outfitter-wyg1tpp5.d.ts +43 -0
  234. package/dist/shared/outfitter-x0vpb7tj.js +126 -0
  235. package/dist/shared/outfitter-x39awx8g.js +146 -0
  236. package/dist/shared/outfitter-x4cc5xsq.js +168 -0
  237. package/dist/shared/outfitter-x8w5sjnd.d.ts +39 -0
  238. package/dist/shared/outfitter-xr6g13nz.d.ts +50 -0
  239. package/dist/shared/outfitter-xs94pkfe.js +106 -0
  240. package/dist/shared/outfitter-xwzjgswj.js +488 -0
  241. package/dist/shared/outfitter-y37yfehn.d.ts +37 -0
  242. package/dist/shared/outfitter-y6ee0k45.d.ts +18 -0
  243. package/dist/shared/outfitter-ydw7x6bh.js +61 -0
  244. package/dist/shared/outfitter-yhb23pjc.js +89 -0
  245. package/dist/shared/outfitter-ypcvwg1s.js +91 -0
  246. package/dist/shared/outfitter-yywcypw8.js +53 -0
  247. package/dist/shared/outfitter-znbqe5zy.d.ts +45 -0
  248. package/dist/shared/outfitter-zng6w0t9.d.ts +4 -0
  249. package/dist/targets/index.d.ts +4 -0
  250. package/dist/targets/index.js +28 -0
  251. package/dist/targets/registry.d.ts +3 -0
  252. package/dist/targets/registry.js +221 -0
  253. package/dist/targets/types.d.ts +2 -0
  254. package/dist/targets/types.js +1 -0
  255. package/package.json +194 -35
  256. package/dist/shared/chunk-3pwh8ys4.js +0 -6461
@@ -0,0 +1,54 @@
1
+ // @bun
2
+ import {
3
+ ScaffoldError,
4
+ addBlocks,
5
+ buildWorkspaceRootPackageJson,
6
+ copyPresetFiles,
7
+ copyTemplateFiles,
8
+ deriveBinName,
9
+ deriveProjectName,
10
+ detectWorkspaceRoot,
11
+ executePlan,
12
+ getOutputFilename,
13
+ getPresetsBaseDir,
14
+ getTemplatesDir,
15
+ injectSharedConfig,
16
+ isBinaryFile,
17
+ isPathWithin,
18
+ replacePlaceholders,
19
+ resolveAuthor,
20
+ resolvePackageName,
21
+ resolveYear,
22
+ rewriteLocalDependencies,
23
+ sanitizePackageName,
24
+ scaffoldWorkspaceRoot,
25
+ validatePackageName,
26
+ validateProjectDirectoryName
27
+ } from "../shared/outfitter-q1g58t85.js";
28
+ import"../shared/outfitter-eepj7rf7.js";
29
+ export {
30
+ validateProjectDirectoryName,
31
+ validatePackageName,
32
+ scaffoldWorkspaceRoot,
33
+ sanitizePackageName,
34
+ rewriteLocalDependencies,
35
+ resolveYear,
36
+ resolvePackageName,
37
+ resolveAuthor,
38
+ replacePlaceholders,
39
+ isPathWithin,
40
+ isBinaryFile,
41
+ injectSharedConfig,
42
+ getTemplatesDir,
43
+ getPresetsBaseDir,
44
+ getOutputFilename,
45
+ executePlan,
46
+ detectWorkspaceRoot,
47
+ deriveProjectName,
48
+ deriveBinName,
49
+ copyTemplateFiles,
50
+ copyPresetFiles,
51
+ buildWorkspaceRootPackageJson,
52
+ addBlocks,
53
+ ScaffoldError
54
+ };
@@ -0,0 +1,2 @@
1
+ import { deriveBinName, deriveProjectName, isPathWithin, resolveAuthor, resolvePackageName, resolveYear, sanitizePackageName, validatePackageName, validateProjectDirectoryName } from "../shared/outfitter-m3ehh37q.js";
2
+ export { validateProjectDirectoryName, validatePackageName, sanitizePackageName, resolveYear, resolvePackageName, resolveAuthor, isPathWithin, deriveProjectName, deriveBinName };
@@ -0,0 +1,24 @@
1
+ // @bun
2
+ import {
3
+ deriveBinName,
4
+ deriveProjectName,
5
+ isPathWithin,
6
+ resolveAuthor,
7
+ resolvePackageName,
8
+ resolveYear,
9
+ sanitizePackageName,
10
+ validatePackageName,
11
+ validateProjectDirectoryName
12
+ } from "../shared/outfitter-4q1zfmvc.js";
13
+ import"../shared/outfitter-eepj7rf7.js";
14
+ export {
15
+ validateProjectDirectoryName,
16
+ validatePackageName,
17
+ sanitizePackageName,
18
+ resolveYear,
19
+ resolvePackageName,
20
+ resolveAuthor,
21
+ isPathWithin,
22
+ deriveProjectName,
23
+ deriveBinName
24
+ };
@@ -0,0 +1,3 @@
1
+ import { PostScaffoldOptions, PostScaffoldResult, runPostScaffold } from "../shared/outfitter-hcexcvxe.js";
2
+ import "../shared/outfitter-xr6g13nz.js";
3
+ export { runPostScaffold, PostScaffoldResult, PostScaffoldOptions };
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import {
3
+ runPostScaffold
4
+ } from "../shared/outfitter-4s9meh3j.js";
5
+ import"../shared/outfitter-eepj7rf7.js";
6
+ export {
7
+ runPostScaffold
8
+ };
@@ -0,0 +1,3 @@
1
+ import { copyPresetFiles, getOutputFilename, getPresetsBaseDir, isBinaryFile, replacePlaceholders } from "../shared/outfitter-6rtcemk7.js";
2
+ import "../shared/outfitter-cyvr4r8d.js";
3
+ export { replacePlaceholders, isBinaryFile, getPresetsBaseDir, getOutputFilename, copyPresetFiles };
@@ -0,0 +1,17 @@
1
+ // @bun
2
+ import {
3
+ copyPresetFiles,
4
+ getOutputFilename,
5
+ getPresetsBaseDir,
6
+ isBinaryFile,
7
+ replacePlaceholders
8
+ } from "../shared/outfitter-6t7xeyg1.js";
9
+ import"../shared/outfitter-8y2dfx6n.js";
10
+ import"../shared/outfitter-eepj7rf7.js";
11
+ export {
12
+ replacePlaceholders,
13
+ isBinaryFile,
14
+ getPresetsBaseDir,
15
+ getOutputFilename,
16
+ copyPresetFiles
17
+ };
@@ -0,0 +1,7 @@
1
+ import { OperationCollector } from "../shared/outfitter-xr6g13nz.js";
2
+ import { OutputMode } from "@outfitter/cli/types";
3
+ declare function renderOperationPlan(collector: OperationCollector, options?: {
4
+ readonly mode?: OutputMode;
5
+ readonly rootDir?: string;
6
+ }): Promise<void>;
7
+ export { renderOperationPlan };
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ import {
3
+ renderOperationPlan
4
+ } from "../shared/outfitter-ttjr95y9.js";
5
+ import"../shared/outfitter-7r12fj7f.js";
6
+ import"../shared/outfitter-eepj7rf7.js";
7
+ export {
8
+ renderOperationPlan
9
+ };
@@ -0,0 +1,4 @@
1
+ import { copyTemplateFiles, getOutputFilename, getTemplatesDir, isBinaryFile, replacePlaceholders } from "../shared/outfitter-fbvfd5zq.js";
2
+ import "../shared/outfitter-6rtcemk7.js";
3
+ import "../shared/outfitter-cyvr4r8d.js";
4
+ export { replacePlaceholders, isBinaryFile, getTemplatesDir, getOutputFilename, copyTemplateFiles };
@@ -0,0 +1,34 @@
1
+ // @bun
2
+ import {
3
+ copyPresetFiles,
4
+ getOutputFilename,
5
+ getPresetsBaseDir,
6
+ isBinaryFile,
7
+ replacePlaceholders
8
+ } from "../shared/outfitter-6t7xeyg1.js";
9
+ import"../shared/outfitter-8y2dfx6n.js";
10
+ import"../shared/outfitter-eepj7rf7.js";
11
+
12
+ // apps/outfitter/src/engine/template.ts
13
+ function getTemplatesDir() {
14
+ return getPresetsBaseDir();
15
+ }
16
+ function copyTemplateFiles(...args) {
17
+ return copyPresetFiles(...args);
18
+ }
19
+ function getOutputFilename2(templateFilename) {
20
+ return getOutputFilename(templateFilename);
21
+ }
22
+ function isBinaryFile2(filename) {
23
+ return isBinaryFile(filename);
24
+ }
25
+ function replacePlaceholders2(content, values) {
26
+ return replacePlaceholders(content, values);
27
+ }
28
+ export {
29
+ replacePlaceholders2 as replacePlaceholders,
30
+ isBinaryFile2 as isBinaryFile,
31
+ getTemplatesDir,
32
+ getOutputFilename2 as getOutputFilename,
33
+ copyTemplateFiles
34
+ };
@@ -0,0 +1,2 @@
1
+ import { EngineCollector, EngineOptions, PlaceholderValues, ScaffoldChange, ScaffoldError, ScaffoldPlan, ScaffoldResult } from "../shared/outfitter-cyvr4r8d.js";
2
+ export { ScaffoldResult, ScaffoldPlan, ScaffoldError, ScaffoldChange, PlaceholderValues, EngineOptions, EngineCollector };
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import {
3
+ ScaffoldError
4
+ } from "../shared/outfitter-8y2dfx6n.js";
5
+ import"../shared/outfitter-eepj7rf7.js";
6
+ export {
7
+ ScaffoldError
8
+ };
@@ -0,0 +1,3 @@
1
+ import { buildWorkspaceRootPackageJson, buildWorkspaceRootReadme, detectWorkspaceRoot, getWorkspacePatterns, hasWorkspacesField, scaffoldWorkspaceRoot } from "../shared/outfitter-y6ee0k45.js";
2
+ import "../shared/outfitter-cyvr4r8d.js";
3
+ export { scaffoldWorkspaceRoot, hasWorkspacesField, getWorkspacePatterns, detectWorkspaceRoot, buildWorkspaceRootReadme, buildWorkspaceRootPackageJson };
@@ -0,0 +1,20 @@
1
+ // @bun
2
+ import {
3
+ buildWorkspaceRootPackageJson,
4
+ buildWorkspaceRootReadme,
5
+ detectWorkspaceRoot,
6
+ getWorkspacePatterns,
7
+ hasWorkspacesField,
8
+ scaffoldWorkspaceRoot
9
+ } from "../shared/outfitter-1fy7byz5.js";
10
+ import"../shared/outfitter-4q1zfmvc.js";
11
+ import"../shared/outfitter-8y2dfx6n.js";
12
+ import"../shared/outfitter-eepj7rf7.js";
13
+ export {
14
+ scaffoldWorkspaceRoot,
15
+ hasWorkspacesField,
16
+ getWorkspacePatterns,
17
+ detectWorkspaceRoot,
18
+ buildWorkspaceRootReadme,
19
+ buildWorkspaceRootPackageJson
20
+ };
package/dist/index.d.ts CHANGED
@@ -1,398 +1,18 @@
1
- import { ActionRegistry } from "@outfitter/contracts";
2
- declare const outfitterActions: ActionRegistry;
3
- import { OutputMode } from "@outfitter/cli/types";
4
- import { Command } from "commander";
5
- /**
6
- * Options for the doctor command.
7
- */
8
- interface DoctorOptions {
9
- /** Working directory to check (defaults to cwd) */
10
- readonly cwd: string;
11
- }
12
- /**
13
- * Result of a single health check.
14
- */
15
- interface CheckResult {
16
- /** Error message if check failed */
17
- readonly error?: string;
18
- /** Whether the check passed */
19
- readonly passed: boolean;
20
- }
21
- /**
22
- * Bun version check result.
23
- */
24
- interface BunVersionCheck extends CheckResult {
25
- /** Required minimum version */
26
- readonly required: string;
27
- /** Current Bun version */
28
- readonly version: string;
29
- }
30
- /**
31
- * Package.json validation result.
32
- */
33
- interface PackageJsonCheck extends CheckResult {
34
- /** Package name if found */
35
- readonly name?: string;
36
- /** Package version if found */
37
- readonly version?: string;
38
- }
39
- /**
40
- * Dependencies check result.
41
- */
42
- interface DependenciesCheck extends CheckResult {
43
- /** Number of dependencies found */
44
- readonly count?: number;
45
- /** Missing dependencies if any */
46
- readonly missing?: readonly string[];
47
- }
48
- /**
49
- * Config files check result.
50
- */
51
- interface ConfigFilesCheck {
52
- /** Whether tsconfig.json exists */
53
- readonly tsconfig: boolean;
54
- }
55
- /**
56
- * Directories check result.
57
- */
58
- interface DirectoriesCheck {
59
- /** Whether src directory exists */
60
- readonly src: boolean;
61
- }
62
- /**
63
- * Summary of all checks.
64
- */
65
- interface DoctorSummary {
66
- /** Number of failed checks */
67
- readonly failed: number;
68
- /** Number of passed checks */
69
- readonly passed: number;
70
- /** Total number of checks */
71
- readonly total: number;
72
- }
73
- /**
74
- * Complete doctor result.
75
- */
76
- interface DoctorResult {
77
- /** Individual check results */
78
- readonly checks: {
79
- readonly bunVersion: BunVersionCheck;
80
- readonly packageJson: PackageJsonCheck;
81
- readonly dependencies: DependenciesCheck;
82
- readonly configFiles: ConfigFilesCheck;
83
- readonly directories: DirectoriesCheck;
84
- };
85
- /** Exit code (0 = all passed, 1 = some failed) */
86
- readonly exitCode: number;
87
- /** Whether this is a workspace root (affects which checks apply) */
88
- readonly isWorkspaceRoot?: boolean;
89
- /** Checks intentionally skipped at workspace root */
90
- readonly skippedChecks?: readonly string[];
91
- /** Summary of all checks */
92
- readonly summary: DoctorSummary;
93
- /** Per-member summary when running at a workspace root */
94
- readonly workspaceMembers?: readonly WorkspaceMemberHealth[];
95
- }
96
- /**
97
- * Health summary for a workspace member package.
98
- */
99
- interface WorkspaceMemberHealth {
100
- /** Member exit code (0 = pass, 1 = failed checks) */
101
- readonly exitCode: number;
102
- /** Workspace-relative member path (for example, apps/my-cli) */
103
- readonly path: string;
104
- /** Summary for the member doctor run */
105
- readonly summary: DoctorSummary;
106
- }
107
- /**
108
- * Runs the doctor command programmatically.
109
- *
110
- * @param options - Doctor options
111
- * @returns Doctor result with all check results
112
- *
113
- * @example
114
- * ```typescript
115
- * const result = await runDoctor({ cwd: process.cwd() });
116
- *
117
- * if (result.exitCode === 0) {
118
- * console.log("All checks passed!");
119
- * } else {
120
- * console.log(`${result.summary.failed} checks failed`);
121
- * }
122
- * ```
123
- */
124
- declare function runDoctor(options: DoctorOptions): DoctorResult;
125
- /**
126
- * Formats and outputs doctor results.
127
- */
128
- declare function printDoctorResults(result: DoctorResult, options?: {
129
- mode?: OutputMode;
130
- }): Promise<void>;
131
- /**
132
- * Registers the doctor command with the CLI program.
133
- *
134
- * @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
135
- *
136
- * @param program - Commander program instance
137
- *
138
- * @example
139
- * ```typescript
140
- * import { Command } from "commander";
141
- * import { doctorCommand } from "./commands/doctor.js";
142
- *
143
- * const program = new Command();
144
- * doctorCommand(program);
145
- * ```
146
- */
147
- declare function doctorCommand(program: Command): void;
148
- import { OutputMode as OutputMode2 } from "@outfitter/cli/types";
149
- import { Result as Result3 } from "@outfitter/contracts";
150
- import { AddBlockResult } from "@outfitter/tooling";
151
- import { Command as Command2 } from "commander";
152
- interface PostScaffoldResult {
153
- readonly gitCommitResult: "success" | "failed" | "skipped";
154
- readonly gitError?: string | undefined;
155
- readonly gitInitResult: "success" | "failed" | "skipped" | "already-repo";
156
- readonly installError?: string | undefined;
157
- readonly installResult: "success" | "failed" | "skipped";
158
- readonly nextSteps: readonly string[];
159
- }
160
- import { NotFoundError, Result as Result2, ValidationError } from "@outfitter/contracts";
161
- /**
162
- * Unique identifier for a scaffold target.
163
- */
164
- type TargetId = "minimal" | "cli" | "mcp" | "daemon" | "library" | "full-stack" | "api" | "worker" | "web";
165
- /**
166
- * Whether the target produces a runnable application or a library package.
167
- */
168
- type TargetCategory = "runnable" | "library";
169
- /**
170
- * Whether the target has a working template or is a planned placeholder.
171
- */
172
- type TargetStatus = "ready" | "stub";
173
- /**
174
- * Whether a target can be used with init, scaffold, or both.
175
- */
176
- type TargetScope = "init-only" | "scaffold-only" | "both";
177
- /**
178
- * Complete definition for a scaffold target.
179
- */
180
- interface TargetDefinition {
181
- readonly category: TargetCategory;
182
- readonly defaultBlocks: readonly string[];
183
- readonly description: string;
184
- readonly id: TargetId;
185
- readonly placement: "apps" | "packages";
186
- readonly presetDir: string;
187
- readonly scope: TargetScope;
188
- readonly status: TargetStatus;
189
- }
190
- declare const TARGET_REGISTRY: ReadonlyMap<TargetId, TargetDefinition>;
191
- declare const TARGET_IDS: readonly TargetId[];
192
- declare const READY_TARGET_IDS: readonly TargetId[];
193
- declare const INIT_TARGET_IDS: readonly TargetId[];
194
- declare const SCAFFOLD_TARGET_IDS: readonly TargetId[];
195
- declare function getTarget(id: string): Result2<TargetDefinition, NotFoundError>;
196
- declare function getReadyTarget(id: string): Result2<TargetDefinition, NotFoundError | ValidationError>;
197
- declare function getInitTarget(id: string): Result2<TargetDefinition, NotFoundError | ValidationError>;
198
- declare function getScaffoldTarget(id: string): Result2<TargetDefinition, NotFoundError | ValidationError>;
199
- declare function resolvePlacement(target: TargetDefinition): "apps" | "packages";
200
- declare function listTargets(filter?: {
201
- readonly status?: TargetStatus;
202
- readonly scope?: TargetScope;
203
- readonly category?: TargetCategory;
204
- }): readonly TargetDefinition[];
205
- type InitStructure = "single" | "workspace";
206
- type InitPresetId = Extract<TargetId, "minimal" | "cli" | "mcp" | "daemon" | "library" | "full-stack">;
207
- /**
208
- * Options for the init command.
209
- */
210
- interface InitOptions {
211
- readonly bin?: string | undefined;
212
- readonly dryRun?: boolean | undefined;
213
- readonly force: boolean;
214
- readonly installTimeout?: number | undefined;
215
- readonly local?: boolean | undefined;
216
- readonly name: string | undefined;
217
- readonly noTooling?: boolean | undefined;
218
- readonly preset?: InitPresetId | undefined;
219
- readonly skipCommit?: boolean | undefined;
220
- readonly skipGit?: boolean | undefined;
221
- readonly skipInstall?: boolean | undefined;
222
- readonly structure?: InitStructure | undefined;
223
- readonly targetDir: string;
224
- readonly with?: string | undefined;
225
- readonly workspaceName?: string | undefined;
226
- readonly yes?: boolean | undefined;
227
- }
228
- /**
229
- * Result of running init.
230
- */
231
- interface InitResult {
232
- readonly blocksAdded?: AddBlockResult | undefined;
233
- readonly dryRunPlan?: {
234
- readonly operations: readonly unknown[];
235
- readonly summary: Record<string, number>;
236
- } | undefined;
237
- readonly packageName: string;
238
- readonly postScaffold: PostScaffoldResult;
239
- readonly preset: InitPresetId;
240
- readonly projectDir: string;
241
- readonly rootDir: string;
242
- readonly structure: InitStructure;
243
- }
244
- /**
245
- * Error returned when initialization fails.
246
- */
247
- declare class InitError extends Error {
248
- readonly _tag: "InitError";
249
- constructor(message: string);
250
- }
251
- declare function runInit(options: InitOptions, presetOverride?: InitPresetId): Promise<Result3<InitResult, InitError>>;
252
- declare function printInitResults(result: InitResult, options?: {
253
- mode?: OutputMode2;
254
- }): Promise<void>;
255
- /**
256
- * @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
257
- */
258
- declare function initCommand(program: Command2): void;
259
- import { Command as Command4 } from "commander";
260
- type DocsMdxMode = "strict" | "lossy";
261
- interface DocsBaseOptions {
262
- readonly cwd?: string;
263
- readonly excludedFilenames?: readonly string[];
264
- readonly mdxMode?: DocsMdxMode;
265
- readonly outputDir?: string;
266
- readonly packagesDir?: string;
267
- readonly workspaceRoot?: string;
268
- }
269
- interface ExecuteCheckCommandOptions extends DocsBaseOptions {}
270
- interface ExecuteSyncCommandOptions extends DocsBaseOptions {}
271
- type DocsExportTarget = "packages" | "llms" | "llms-full" | "all";
272
- interface ExecuteExportCommandOptions extends DocsBaseOptions {
273
- readonly llmsFile?: string;
274
- readonly llmsFullFile?: string;
275
- readonly target?: DocsExportTarget | string;
276
- }
277
- type RepoCheckSubject = "docs" | "exports" | "readme" | "registry" | "changeset" | "tree" | "boundary-invocations";
278
- interface RepoCommandIo {
279
- readonly err?: (line: string) => void;
280
- readonly out?: (line: string) => void;
281
- }
282
- interface RepoToolingInvocation {
283
- readonly args: readonly string[];
284
- readonly command: "check-exports" | "check-readme-imports" | "check-bunup-registry" | "check-changeset" | "check-clean-tree" | "check-boundary-invocations";
285
- readonly cwd: string;
286
- }
287
- interface CreateRepoCommandOptions {
288
- readonly commandName?: string;
289
- readonly io?: RepoCommandIo;
290
- readonly runDocsCheck?: (options: ExecuteCheckCommandOptions, io: Required<RepoCommandIo>) => Promise<number>;
291
- readonly runDocsExport?: (options: ExecuteExportCommandOptions, io: Required<RepoCommandIo>) => Promise<number>;
292
- readonly runDocsSync?: (options: ExecuteSyncCommandOptions, io: Required<RepoCommandIo>) => Promise<number>;
293
- readonly runToolingCommand?: (input: RepoToolingInvocation) => Promise<number>;
294
- }
295
- declare function createRepoCommand(options?: CreateRepoCommandOptions): Command4;
296
- import { OutputMode as OutputMode3 } from "@outfitter/cli/types";
297
- import { Result as Result4 } from "@outfitter/contracts";
298
- import { AddBlockResult as AddBlockResult2 } from "@outfitter/tooling";
299
- import { Command as Command5 } from "commander";
300
- interface ScaffoldOptions {
301
- readonly cwd: string;
302
- readonly dryRun: boolean;
303
- readonly force: boolean;
304
- readonly installTimeout?: number | undefined;
305
- readonly local?: boolean | undefined;
306
- readonly name?: string | undefined;
307
- readonly noTooling?: boolean | undefined;
308
- readonly skipInstall: boolean;
309
- readonly target: string;
310
- readonly with?: string | undefined;
311
- }
312
- interface ScaffoldCommandResult {
313
- readonly blocksAdded?: AddBlockResult2 | undefined;
314
- readonly converted: boolean;
315
- readonly dryRunPlan?: {
316
- readonly operations: readonly unknown[];
317
- readonly summary: Record<string, number>;
318
- } | undefined;
319
- readonly movedExisting?: {
320
- readonly from: string;
321
- readonly to: string;
322
- readonly name: string;
323
- } | undefined;
324
- readonly postScaffold: PostScaffoldResult;
325
- readonly rootDir: string;
326
- readonly target: string;
327
- readonly targetDir: string;
328
- readonly workspacePatternsUpdated: boolean;
329
- }
330
- declare class ScaffoldCommandError extends Error {
331
- readonly _tag: "ScaffoldCommandError";
332
- constructor(message: string);
333
- }
334
- declare function runScaffold(options: ScaffoldOptions): Promise<Result4<ScaffoldCommandResult, ScaffoldCommandError>>;
335
- declare function printScaffoldResults(result: ScaffoldCommandResult, options?: {
336
- readonly mode?: OutputMode3;
337
- }): Promise<void>;
338
- /**
339
- * @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
340
- */
341
- declare function scaffoldCommand(program: Command5): void;
342
- import { Result as Result5, ValidationError as ValidationError2 } from "@outfitter/contracts";
343
- /**
344
- * Create planner types for kit-first project scaffolding.
345
- *
346
- * These types model preset intent separately from execution so future flows can
347
- * consume a deterministic plan before mutating the filesystem.
348
- */
349
- type CreatePresetId = "basic" | "cli" | "daemon" | "mcp";
350
- interface CreatePresetDefinition {
351
- readonly defaultBlocks: readonly string[];
352
- readonly id: CreatePresetId;
353
- readonly presetDir: CreatePresetId;
354
- readonly summary: string;
355
- }
356
- interface CreateProjectInput {
357
- readonly description?: string;
358
- readonly includeTooling?: boolean;
359
- readonly local?: boolean;
360
- readonly name: string;
361
- readonly packageName?: string;
362
- readonly preset: CreatePresetId;
363
- readonly targetDir: string;
364
- readonly version?: string;
365
- readonly year?: string;
366
- }
367
- type CreatePlanChange = {
368
- readonly type: "copy-preset";
369
- readonly preset: string;
370
- readonly targetDir: string;
371
- readonly includeTooling: boolean;
372
- readonly overlayBaseTemplate: boolean;
373
- } | {
374
- readonly type: "inject-shared-config";
375
- } | {
376
- readonly type: "rewrite-local-dependencies";
377
- readonly mode: "workspace";
378
- } | {
379
- readonly type: "add-blocks";
380
- readonly blocks: readonly string[];
381
- };
382
- interface CreateProjectPlan {
383
- readonly changes: readonly CreatePlanChange[];
384
- readonly preset: CreatePresetDefinition;
385
- readonly values: {
386
- readonly packageName: string;
387
- readonly projectName: string;
388
- readonly version: string;
389
- readonly description: string;
390
- readonly binName: string;
391
- readonly year: string;
392
- };
393
- }
394
- declare function planCreateProject(input: CreateProjectInput): Result5<CreateProjectPlan, ValidationError2>;
395
- declare const CREATE_PRESETS: Readonly<Record<CreatePresetId, CreatePresetDefinition>>;
396
- declare const CREATE_PRESET_IDS: CreatePresetId[];
397
- declare function getCreatePreset(id: string): CreatePresetDefinition | undefined;
1
+ import "./shared/outfitter-wvbpxqq7.js";
2
+ import { planCreateProject } from "./shared/outfitter-zng6w0t9.js";
3
+ import { CREATE_PRESETS, CREATE_PRESET_IDS, getCreatePreset } from "./shared/outfitter-wcrp7d7m.js";
4
+ import { CreatePlanChange, CreatePresetDefinition, CreatePresetId, CreateProjectInput, CreateProjectPlan } from "./shared/outfitter-htx4asgr.js";
5
+ import { InitError, InitOptions, InitResult, initCommand, printInitResults, runInit } from "./shared/outfitter-d0kqashd.js";
6
+ import { InitStructure } from "./shared/outfitter-r2awqszh.js";
7
+ import { InitPresetId } from "./shared/outfitter-5d9wbzhh.js";
8
+ import "./shared/outfitter-y784nh31.js";
9
+ import { INIT_TARGET_IDS, READY_TARGET_IDS, SCAFFOLD_TARGET_IDS, TARGET_IDS, TARGET_REGISTRY, getInitTarget, getReadyTarget, getScaffoldTarget, getTarget, listTargets, resolvePlacement } from "./shared/outfitter-5r6q2749.js";
10
+ import { TargetCategory, TargetDefinition, TargetId, TargetScope, TargetStatus } from "./shared/outfitter-58rn1sj1.js";
11
+ import { BunVersionCheck, CheckResult, ConfigFilesCheck, DependenciesCheck, DirectoriesCheck, DoctorOptions, DoctorResult, DoctorSummary, PackageJsonCheck, doctorCommand, printDoctorResults, runDoctor } from "./shared/outfitter-hsp8vy5m.js";
12
+ import { CreateRepoCommandOptions, RepoCheckSubject, RepoCommandIo, RepoToolingInvocation, createRepoCommand } from "./shared/outfitter-3dq4r10s.js";
13
+ import "./shared/outfitter-1tfa9hke.js";
14
+ import { ScaffoldCommandError, ScaffoldCommandResult, ScaffoldOptions, printScaffoldResults, runScaffold, scaffoldCommand } from "./shared/outfitter-34vg353f.js";
15
+ import "./shared/outfitter-hcexcvxe.js";
16
+ import { outfitterActions } from "./shared/outfitter-2nx0k4b3.js";
17
+ import "./shared/outfitter-xr6g13nz.js";
398
18
  export { scaffoldCommand, runScaffold, runInit, runDoctor, resolvePlacement, printScaffoldResults, printInitResults, printDoctorResults, planCreateProject, outfitterActions, listTargets, initCommand, getTarget, getScaffoldTarget, getReadyTarget, getInitTarget, getCreatePreset, doctorCommand, createRepoCommand, TargetStatus, TargetScope, TargetId, TargetDefinition, TargetCategory, TARGET_REGISTRY, TARGET_IDS, ScaffoldOptions, ScaffoldCommandResult, ScaffoldCommandError, SCAFFOLD_TARGET_IDS, RepoToolingInvocation, RepoCommandIo, RepoCheckSubject, READY_TARGET_IDS, PackageJsonCheck, InitStructure, InitResult, InitPresetId, InitOptions, InitError, INIT_TARGET_IDS, DoctorSummary, DoctorResult, DoctorOptions, DirectoriesCheck, DependenciesCheck, CreateRepoCommandOptions, CreateProjectPlan, CreateProjectInput, CreatePresetId, CreatePresetDefinition, CreatePlanChange, ConfigFilesCheck, CheckResult, CREATE_PRESET_IDS, CREATE_PRESETS, BunVersionCheck };