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.
- package/README.md +33 -5
- package/dist/actions/add.d.ts +18 -0
- package/dist/actions/add.js +14 -0
- package/dist/actions/check-automation.d.ts +20 -0
- package/dist/actions/check-automation.js +27 -0
- package/dist/actions/check.d.ts +34 -0
- package/dist/actions/check.js +19 -0
- package/dist/actions/demo.d.ts +12 -0
- package/dist/actions/demo.js +11 -0
- package/dist/actions/docs-output-mode.d.ts +4 -0
- package/dist/actions/docs-output-mode.js +8 -0
- package/dist/actions/docs.d.ts +25 -0
- package/dist/actions/docs.js +31 -0
- package/dist/actions/doctor.d.ts +10 -0
- package/dist/actions/doctor.js +15 -0
- package/dist/actions/init.d.ts +28 -0
- package/dist/actions/init.js +31 -0
- package/dist/actions/scaffold.d.ts +19 -0
- package/dist/actions/scaffold.js +21 -0
- package/dist/actions/shared.d.ts +61 -0
- package/dist/actions/shared.js +30 -0
- package/dist/actions/upgrade.d.ts +17 -0
- package/dist/actions/upgrade.js +21 -0
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +66 -0
- package/dist/cli.js +66 -4
- package/dist/commands/add.d.ts +54 -0
- package/dist/commands/add.js +16 -0
- package/dist/commands/check-action-ceremony.d.ts +55 -0
- package/dist/commands/check-action-ceremony.js +15 -0
- package/dist/commands/check-docs-sentinel.d.ts +27 -0
- package/dist/commands/check-docs-sentinel.js +18 -0
- package/dist/commands/check-orchestrator.d.ts +2 -0
- package/dist/commands/check-orchestrator.js +17 -0
- package/dist/commands/check-preset-versions.d.ts +20 -0
- package/dist/commands/check-preset-versions.js +15 -0
- package/dist/commands/check-publish-guardrails.d.ts +38 -0
- package/dist/commands/check-publish-guardrails.js +19 -0
- package/dist/commands/check-surface-map-format.d.ts +29 -0
- package/dist/commands/check-surface-map-format.js +19 -0
- package/dist/commands/check-surface-map.d.ts +20 -0
- package/dist/commands/check-surface-map.js +15 -0
- package/dist/commands/check-tsdoc.d.ts +3 -0
- package/dist/commands/check-tsdoc.js +9 -0
- package/dist/commands/check.d.ts +93 -0
- package/dist/commands/check.js +14 -0
- package/dist/commands/demo.d.ts +21 -0
- package/dist/commands/demo.js +8 -0
- package/dist/commands/docs-api.d.ts +4 -0
- package/dist/commands/docs-api.js +13 -0
- package/dist/commands/docs-export.d.ts +4 -0
- package/dist/commands/docs-export.js +12 -0
- package/dist/commands/docs-list.d.ts +3 -0
- package/dist/commands/docs-list.js +13 -0
- package/dist/commands/docs-module-loader.d.ts +2 -0
- package/dist/commands/docs-module-loader.js +8 -0
- package/dist/commands/docs-search.d.ts +3 -0
- package/dist/commands/docs-search.js +13 -0
- package/dist/commands/docs-show.d.ts +3 -0
- package/dist/commands/docs-show.js +13 -0
- package/dist/commands/docs-types.d.ts +21 -0
- package/dist/commands/docs-types.js +1 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +17 -0
- package/dist/commands/init-execution.d.ts +8 -0
- package/dist/commands/init-execution.js +11 -0
- package/dist/commands/init-option-resolution.d.ts +5 -0
- package/dist/commands/init-option-resolution.js +14 -0
- package/dist/commands/init-output.d.ts +9 -0
- package/dist/commands/init-output.js +11 -0
- package/dist/commands/init.d.ts +9 -0
- package/dist/commands/init.js +24 -0
- package/dist/commands/jq-utils.d.ts +17 -0
- package/dist/commands/jq-utils.js +8 -0
- package/dist/commands/repo.d.ts +3 -0
- package/dist/commands/repo.js +13 -0
- package/dist/commands/scaffold-output.d.ts +4 -0
- package/dist/commands/scaffold-output.js +11 -0
- package/dist/commands/scaffold-planning.d.ts +65 -0
- package/dist/commands/scaffold-planning.js +20 -0
- package/dist/commands/scaffold.d.ts +4 -0
- package/dist/commands/scaffold.js +26 -0
- package/dist/commands/shared-deps.d.ts +22 -0
- package/dist/commands/shared-deps.js +11 -0
- package/dist/commands/upgrade-apply.d.ts +14 -0
- package/dist/commands/upgrade-apply.js +8 -0
- package/dist/commands/upgrade-codemods.d.ts +47 -0
- package/dist/commands/upgrade-codemods.js +14 -0
- package/dist/commands/upgrade-latest-version.d.ts +8 -0
- package/dist/commands/upgrade-latest-version.js +8 -0
- package/dist/commands/upgrade-migration-docs.d.ts +3 -0
- package/dist/commands/upgrade-migration-docs.js +15 -0
- package/dist/commands/upgrade-migration-frontmatter.d.ts +2 -0
- package/dist/commands/upgrade-migration-frontmatter.js +10 -0
- package/dist/commands/upgrade-migration-guides.d.ts +5 -0
- package/dist/commands/upgrade-migration-guides.js +10 -0
- package/dist/commands/upgrade-output.d.ts +5 -0
- package/dist/commands/upgrade-output.js +11 -0
- package/dist/commands/upgrade-planner.d.ts +58 -0
- package/dist/commands/upgrade-planner.js +8 -0
- package/dist/commands/upgrade-report.d.ts +5 -0
- package/dist/commands/upgrade-report.js +8 -0
- package/dist/commands/upgrade-workspace.d.ts +2 -0
- package/dist/commands/upgrade-workspace.js +16 -0
- package/dist/commands/upgrade.d.ts +5 -0
- package/dist/commands/upgrade.js +37 -0
- package/dist/create/index.d.ts +5 -0
- package/dist/create/index.js +2 -0
- package/dist/create/planner.d.ts +3 -0
- package/dist/create/planner.js +85 -0
- package/dist/create/presets.d.ts +3 -0
- package/dist/create/presets.js +12 -0
- package/dist/create/types.d.ts +2 -0
- package/dist/create/types.js +1 -0
- package/dist/engine/blocks.d.ts +3 -0
- package/dist/engine/blocks.js +12 -0
- package/dist/engine/collector.d.ts +2 -0
- package/dist/engine/collector.js +8 -0
- package/dist/engine/config.d.ts +3 -0
- package/dist/engine/config.js +15 -0
- package/dist/engine/dependency-versions.d.ts +17 -0
- package/dist/engine/dependency-versions.js +12 -0
- package/dist/engine/executor.d.ts +3 -0
- package/dist/engine/executor.js +156 -0
- package/dist/engine/index.d.ts +10 -0
- package/dist/engine/index.js +54 -0
- package/dist/engine/names.d.ts +2 -0
- package/dist/engine/names.js +24 -0
- package/dist/engine/post-scaffold.d.ts +3 -0
- package/dist/engine/post-scaffold.js +8 -0
- package/dist/engine/preset.d.ts +3 -0
- package/dist/engine/preset.js +17 -0
- package/dist/engine/render-plan.d.ts +7 -0
- package/dist/engine/render-plan.js +9 -0
- package/dist/engine/template.d.ts +4 -0
- package/dist/engine/template.js +34 -0
- package/dist/engine/types.d.ts +2 -0
- package/dist/engine/types.js +8 -0
- package/dist/engine/workspace.d.ts +3 -0
- package/dist/engine/workspace.js +20 -0
- package/dist/index.d.ts +17 -397
- package/dist/index.js +7 -165
- package/dist/manifest.d.ts +71 -0
- package/dist/manifest.js +16 -0
- package/dist/output-mode.d.ts +2 -0
- package/dist/output-mode.js +10 -0
- package/dist/shared/outfitter-109s75x0.d.ts +76 -0
- package/dist/shared/outfitter-1fy7byz5.js +170 -0
- package/dist/shared/outfitter-1gmrtapz.js +325 -0
- package/dist/shared/outfitter-1h7k8xxt.js +29 -0
- package/dist/shared/outfitter-1tfa9hke.d.ts +55 -0
- package/dist/shared/outfitter-2nx0k4b3.d.ts +4 -0
- package/dist/shared/outfitter-2ysjerp6.d.ts +44 -0
- package/dist/shared/outfitter-2z61gp5w.js +29 -0
- package/dist/shared/outfitter-34vg353f.d.ts +82 -0
- package/dist/shared/outfitter-3dq4r10s.d.ts +24 -0
- package/dist/shared/outfitter-3rcrvva8.js +103 -0
- package/dist/shared/outfitter-3tx3adgj.js +278 -0
- package/dist/shared/outfitter-4q1zfmvc.js +154 -0
- package/dist/shared/outfitter-4s9meh3j.js +221 -0
- package/dist/shared/outfitter-507ra35w.js +285 -0
- package/dist/shared/outfitter-56jq0rh2.d.ts +42 -0
- package/dist/shared/outfitter-58rn1sj1.d.ts +30 -0
- package/dist/shared/outfitter-5d9wbzhh.d.ts +19 -0
- package/dist/shared/outfitter-5j7zee11.d.ts +180 -0
- package/dist/shared/outfitter-5r6q2749.d.ts +18 -0
- package/dist/shared/outfitter-5vx1bp7h.js +41 -0
- package/dist/shared/outfitter-6ddf91vh.js +190 -0
- package/dist/shared/outfitter-6mpkh3zn.js +432 -0
- package/dist/shared/outfitter-6rtcemk7.d.ts +18 -0
- package/dist/shared/outfitter-6t7xeyg1.js +159 -0
- package/dist/shared/outfitter-738z4c37.js +262 -0
- package/dist/shared/outfitter-76k25svs.js +322 -0
- package/dist/shared/outfitter-7n7vsz95.js +101 -0
- package/dist/shared/outfitter-7q9fnbwa.js +60 -0
- package/dist/shared/outfitter-7r12fj7f.js +30 -0
- package/dist/shared/outfitter-8ggmja91.js +301 -0
- package/dist/shared/outfitter-8kmak0wc.d.ts +4 -0
- package/dist/shared/outfitter-8y2dfx6n.js +11 -0
- package/dist/shared/outfitter-940h0x7b.js +71 -0
- package/dist/shared/outfitter-954y4mzx.d.ts +5 -0
- package/dist/shared/outfitter-a79xrm12.d.ts +17 -0
- package/dist/shared/outfitter-b9cpnr7e.js +110 -0
- package/dist/shared/outfitter-bpr28y54.js +70 -0
- package/dist/shared/outfitter-c7sbs7es.js +92 -0
- package/dist/shared/outfitter-cyhzstz0.js +93 -0
- package/dist/shared/outfitter-cyvr4r8d.d.ts +67 -0
- package/dist/shared/outfitter-d0kqashd.d.ts +98 -0
- package/dist/shared/outfitter-dmfac1w9.js +306 -0
- package/dist/shared/outfitter-e84cr97g.js +232 -0
- package/dist/shared/outfitter-ec83h4v2.js +17 -0
- package/dist/shared/outfitter-eepj7rf7.js +4 -0
- package/dist/shared/outfitter-ekb6t1zz.js +35 -0
- package/dist/shared/outfitter-ex8gn945.js +51 -0
- package/dist/shared/outfitter-f3a70135.js +75 -0
- package/dist/shared/outfitter-fbvfd5zq.d.ts +13 -0
- package/dist/shared/outfitter-fj2v5ffz.js +165 -0
- package/dist/shared/outfitter-fx1m251y.js +122 -0
- package/dist/shared/outfitter-fxry5n58.js +254 -0
- package/dist/shared/outfitter-g3hvjshg.js +1 -0
- package/dist/shared/outfitter-gdc7b7de.d.ts +5 -0
- package/dist/shared/outfitter-gyayfx5r.js +156 -0
- package/dist/shared/outfitter-h0wmtxw8.d.ts +23 -0
- package/dist/shared/outfitter-hcexcvxe.d.ts +25 -0
- package/dist/shared/outfitter-hf5bj2gq.js +117 -0
- package/dist/shared/outfitter-hsp8vy5m.d.ts +146 -0
- package/dist/shared/outfitter-htx4asgr.d.ts +52 -0
- package/dist/shared/outfitter-jwxggvz4.js +42 -0
- package/dist/shared/outfitter-ksyvwmb5.js +191 -0
- package/dist/shared/outfitter-m3ehh37q.d.ts +22 -0
- package/dist/shared/outfitter-mstr60zz.js +215 -0
- package/dist/shared/outfitter-n0ed012k.js +101 -0
- package/dist/shared/outfitter-n13pqaft.js +19 -0
- package/dist/shared/outfitter-nxvjxrmw.d.ts +48 -0
- package/dist/shared/outfitter-p2wn07b7.js +160 -0
- package/dist/shared/outfitter-px5sv5gn.js +321 -0
- package/dist/shared/outfitter-q1g58t85.js +8 -0
- package/dist/shared/outfitter-qsd5638j.js +378 -0
- package/dist/shared/outfitter-qsrx7m4w.js +72 -0
- package/dist/shared/outfitter-r2awqszh.d.ts +52 -0
- package/dist/shared/outfitter-rdpw2sbp.d.ts +77 -0
- package/dist/shared/outfitter-rp89dafm.js +109 -0
- package/dist/shared/outfitter-s1c0whzj.js +121 -0
- package/dist/shared/outfitter-ssrtakh3.js +342 -0
- package/dist/shared/outfitter-ssynegbs.js +167 -0
- package/dist/shared/outfitter-svts4wk2.js +36 -0
- package/dist/shared/outfitter-tavatb5p.js +166 -0
- package/dist/shared/outfitter-tqznjgbm.js +44 -0
- package/dist/shared/outfitter-ttjr95y9.js +98 -0
- package/dist/shared/outfitter-wcrp7d7m.d.ts +5 -0
- package/dist/shared/outfitter-wkt0a0ra.js +67 -0
- package/dist/shared/outfitter-wrcqq29p.js +132 -0
- package/dist/shared/outfitter-wyg1tpp5.d.ts +43 -0
- package/dist/shared/outfitter-x0vpb7tj.js +126 -0
- package/dist/shared/outfitter-x39awx8g.js +146 -0
- package/dist/shared/outfitter-x4cc5xsq.js +168 -0
- package/dist/shared/outfitter-x8w5sjnd.d.ts +39 -0
- package/dist/shared/outfitter-xr6g13nz.d.ts +50 -0
- package/dist/shared/outfitter-xs94pkfe.js +106 -0
- package/dist/shared/outfitter-xwzjgswj.js +488 -0
- package/dist/shared/outfitter-y37yfehn.d.ts +37 -0
- package/dist/shared/outfitter-y6ee0k45.d.ts +18 -0
- package/dist/shared/outfitter-ydw7x6bh.js +61 -0
- package/dist/shared/outfitter-yhb23pjc.js +89 -0
- package/dist/shared/outfitter-ypcvwg1s.js +91 -0
- package/dist/shared/outfitter-yywcypw8.js +53 -0
- package/dist/shared/outfitter-znbqe5zy.d.ts +45 -0
- package/dist/shared/outfitter-zng6w0t9.d.ts +4 -0
- package/dist/targets/index.d.ts +4 -0
- package/dist/targets/index.js +28 -0
- package/dist/targets/registry.d.ts +3 -0
- package/dist/targets/registry.js +221 -0
- package/dist/targets/types.d.ts +2 -0
- package/dist/targets/types.js +1 -0
- package/package.json +194 -35
- package/dist/shared/chunk-3pwh8ys4.js +0 -6461
package/dist/actions.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
outfitterActions
|
|
4
|
+
} from "./shared/outfitter-yywcypw8.js";
|
|
5
|
+
import"./shared/outfitter-xs94pkfe.js";
|
|
6
|
+
import"./shared/outfitter-rp89dafm.js";
|
|
7
|
+
import"./shared/outfitter-738z4c37.js";
|
|
8
|
+
import"./shared/outfitter-1gmrtapz.js";
|
|
9
|
+
import"./shared/outfitter-ex8gn945.js";
|
|
10
|
+
import"./shared/outfitter-wkt0a0ra.js";
|
|
11
|
+
import"./shared/outfitter-dmfac1w9.js";
|
|
12
|
+
import"./shared/outfitter-3rcrvva8.js";
|
|
13
|
+
import"./shared/outfitter-ec83h4v2.js";
|
|
14
|
+
import"./shared/outfitter-mstr60zz.js";
|
|
15
|
+
import"./shared/outfitter-7n7vsz95.js";
|
|
16
|
+
import"./shared/outfitter-fxry5n58.js";
|
|
17
|
+
import"./shared/outfitter-6mpkh3zn.js";
|
|
18
|
+
import"./shared/outfitter-n0ed012k.js";
|
|
19
|
+
import"./shared/outfitter-fj2v5ffz.js";
|
|
20
|
+
import"./shared/outfitter-gyayfx5r.js";
|
|
21
|
+
import"./shared/outfitter-yhb23pjc.js";
|
|
22
|
+
import"./shared/outfitter-2z61gp5w.js";
|
|
23
|
+
import"./shared/outfitter-xwzjgswj.js";
|
|
24
|
+
import"./shared/outfitter-cyhzstz0.js";
|
|
25
|
+
import"./shared/outfitter-76k25svs.js";
|
|
26
|
+
import"./shared/outfitter-hf5bj2gq.js";
|
|
27
|
+
import"./shared/outfitter-jwxggvz4.js";
|
|
28
|
+
import"./shared/outfitter-tavatb5p.js";
|
|
29
|
+
import"./shared/outfitter-6ddf91vh.js";
|
|
30
|
+
import"./shared/outfitter-qsd5638j.js";
|
|
31
|
+
import"./shared/outfitter-g3hvjshg.js";
|
|
32
|
+
import"./shared/outfitter-940h0x7b.js";
|
|
33
|
+
import"./shared/outfitter-ksyvwmb5.js";
|
|
34
|
+
import"./shared/outfitter-507ra35w.js";
|
|
35
|
+
import"./shared/outfitter-x4cc5xsq.js";
|
|
36
|
+
import"./shared/outfitter-ssrtakh3.js";
|
|
37
|
+
import"./shared/outfitter-p2wn07b7.js";
|
|
38
|
+
import"./shared/outfitter-b9cpnr7e.js";
|
|
39
|
+
import"./shared/outfitter-px5sv5gn.js";
|
|
40
|
+
import"./shared/outfitter-f3a70135.js";
|
|
41
|
+
import"./shared/outfitter-bpr28y54.js";
|
|
42
|
+
import"./shared/outfitter-n13pqaft.js";
|
|
43
|
+
import"./shared/outfitter-8ggmja91.js";
|
|
44
|
+
import"./shared/outfitter-ssynegbs.js";
|
|
45
|
+
import"./shared/outfitter-q1g58t85.js";
|
|
46
|
+
import"./shared/outfitter-x0vpb7tj.js";
|
|
47
|
+
import"./shared/outfitter-fx1m251y.js";
|
|
48
|
+
import"./shared/outfitter-s1c0whzj.js";
|
|
49
|
+
import"./shared/outfitter-c7sbs7es.js";
|
|
50
|
+
import"./shared/outfitter-5vx1bp7h.js";
|
|
51
|
+
import"./shared/outfitter-svts4wk2.js";
|
|
52
|
+
import"./shared/outfitter-qsrx7m4w.js";
|
|
53
|
+
import"./shared/outfitter-7q9fnbwa.js";
|
|
54
|
+
import"./shared/outfitter-4s9meh3j.js";
|
|
55
|
+
import"./shared/outfitter-3tx3adgj.js";
|
|
56
|
+
import"./shared/outfitter-ypcvwg1s.js";
|
|
57
|
+
import"./shared/outfitter-ttjr95y9.js";
|
|
58
|
+
import"./shared/outfitter-7r12fj7f.js";
|
|
59
|
+
import"./shared/outfitter-1fy7byz5.js";
|
|
60
|
+
import"./shared/outfitter-4q1zfmvc.js";
|
|
61
|
+
import"./shared/outfitter-8y2dfx6n.js";
|
|
62
|
+
import"./shared/outfitter-1h7k8xxt.js";
|
|
63
|
+
import"./shared/outfitter-eepj7rf7.js";
|
|
64
|
+
export {
|
|
65
|
+
outfitterActions
|
|
66
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,73 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import {
|
|
4
|
+
createRepoCommand
|
|
5
|
+
} from "./shared/outfitter-e84cr97g.js";
|
|
2
6
|
import {
|
|
3
|
-
createRepoCommand,
|
|
4
7
|
outfitterActions
|
|
5
|
-
} from "./shared/
|
|
8
|
+
} from "./shared/outfitter-yywcypw8.js";
|
|
9
|
+
import"./shared/outfitter-xs94pkfe.js";
|
|
10
|
+
import"./shared/outfitter-rp89dafm.js";
|
|
11
|
+
import"./shared/outfitter-738z4c37.js";
|
|
12
|
+
import"./shared/outfitter-1gmrtapz.js";
|
|
13
|
+
import"./shared/outfitter-ex8gn945.js";
|
|
14
|
+
import"./shared/outfitter-wkt0a0ra.js";
|
|
15
|
+
import"./shared/outfitter-dmfac1w9.js";
|
|
16
|
+
import"./shared/outfitter-3rcrvva8.js";
|
|
17
|
+
import"./shared/outfitter-ec83h4v2.js";
|
|
18
|
+
import"./shared/outfitter-mstr60zz.js";
|
|
19
|
+
import"./shared/outfitter-7n7vsz95.js";
|
|
20
|
+
import"./shared/outfitter-fxry5n58.js";
|
|
21
|
+
import"./shared/outfitter-6mpkh3zn.js";
|
|
22
|
+
import"./shared/outfitter-n0ed012k.js";
|
|
23
|
+
import"./shared/outfitter-fj2v5ffz.js";
|
|
24
|
+
import"./shared/outfitter-gyayfx5r.js";
|
|
25
|
+
import"./shared/outfitter-yhb23pjc.js";
|
|
26
|
+
import"./shared/outfitter-2z61gp5w.js";
|
|
27
|
+
import"./shared/outfitter-xwzjgswj.js";
|
|
28
|
+
import"./shared/outfitter-cyhzstz0.js";
|
|
29
|
+
import"./shared/outfitter-76k25svs.js";
|
|
30
|
+
import"./shared/outfitter-hf5bj2gq.js";
|
|
31
|
+
import"./shared/outfitter-jwxggvz4.js";
|
|
32
|
+
import"./shared/outfitter-tavatb5p.js";
|
|
33
|
+
import"./shared/outfitter-6ddf91vh.js";
|
|
34
|
+
import"./shared/outfitter-qsd5638j.js";
|
|
35
|
+
import"./shared/outfitter-g3hvjshg.js";
|
|
36
|
+
import"./shared/outfitter-940h0x7b.js";
|
|
37
|
+
import"./shared/outfitter-ksyvwmb5.js";
|
|
38
|
+
import"./shared/outfitter-507ra35w.js";
|
|
39
|
+
import"./shared/outfitter-x4cc5xsq.js";
|
|
40
|
+
import"./shared/outfitter-ssrtakh3.js";
|
|
41
|
+
import"./shared/outfitter-p2wn07b7.js";
|
|
42
|
+
import"./shared/outfitter-b9cpnr7e.js";
|
|
43
|
+
import"./shared/outfitter-px5sv5gn.js";
|
|
44
|
+
import"./shared/outfitter-f3a70135.js";
|
|
45
|
+
import"./shared/outfitter-bpr28y54.js";
|
|
46
|
+
import"./shared/outfitter-n13pqaft.js";
|
|
47
|
+
import"./shared/outfitter-8ggmja91.js";
|
|
48
|
+
import"./shared/outfitter-ssynegbs.js";
|
|
49
|
+
import"./shared/outfitter-q1g58t85.js";
|
|
50
|
+
import"./shared/outfitter-x0vpb7tj.js";
|
|
51
|
+
import"./shared/outfitter-fx1m251y.js";
|
|
52
|
+
import"./shared/outfitter-s1c0whzj.js";
|
|
53
|
+
import"./shared/outfitter-c7sbs7es.js";
|
|
54
|
+
import"./shared/outfitter-5vx1bp7h.js";
|
|
55
|
+
import"./shared/outfitter-svts4wk2.js";
|
|
56
|
+
import"./shared/outfitter-qsrx7m4w.js";
|
|
57
|
+
import"./shared/outfitter-7q9fnbwa.js";
|
|
58
|
+
import"./shared/outfitter-4s9meh3j.js";
|
|
59
|
+
import"./shared/outfitter-3tx3adgj.js";
|
|
60
|
+
import"./shared/outfitter-ypcvwg1s.js";
|
|
61
|
+
import"./shared/outfitter-ttjr95y9.js";
|
|
62
|
+
import"./shared/outfitter-7r12fj7f.js";
|
|
63
|
+
import"./shared/outfitter-1fy7byz5.js";
|
|
64
|
+
import"./shared/outfitter-4q1zfmvc.js";
|
|
65
|
+
import"./shared/outfitter-8y2dfx6n.js";
|
|
66
|
+
import"./shared/outfitter-1h7k8xxt.js";
|
|
67
|
+
import"./shared/outfitter-eepj7rf7.js";
|
|
6
68
|
|
|
7
|
-
// src/cli.ts
|
|
8
|
-
import { readFileSync } from "
|
|
69
|
+
// apps/outfitter/src/cli.ts
|
|
70
|
+
import { readFileSync } from "fs";
|
|
9
71
|
import { exitWithError } from "@outfitter/cli";
|
|
10
72
|
import { buildCliCommands } from "@outfitter/cli/actions";
|
|
11
73
|
import { createCLI } from "@outfitter/cli/command";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { OutputMode } from "@outfitter/cli/types";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
import { AddBlockResult } from "@outfitter/tooling";
|
|
4
|
+
/**
|
|
5
|
+
* Input for the add command.
|
|
6
|
+
*/
|
|
7
|
+
interface AddInput {
|
|
8
|
+
/** Block name to add */
|
|
9
|
+
readonly block: string;
|
|
10
|
+
/** Working directory (defaults to cwd) */
|
|
11
|
+
readonly cwd?: string;
|
|
12
|
+
/** Show what would be done without making changes */
|
|
13
|
+
readonly dryRun: boolean;
|
|
14
|
+
/** Overwrite existing files */
|
|
15
|
+
readonly force: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Error returned when adding a block fails.
|
|
19
|
+
*/
|
|
20
|
+
declare class AddError extends Error {
|
|
21
|
+
readonly _tag: "AddError";
|
|
22
|
+
constructor(message: string);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Runs the add command programmatically.
|
|
26
|
+
*
|
|
27
|
+
* @param input - Add command input
|
|
28
|
+
* @returns Result with details of what was added
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const result = await runAdd({
|
|
33
|
+
* block: "scaffolding",
|
|
34
|
+
* force: false,
|
|
35
|
+
* dryRun: false,
|
|
36
|
+
* });
|
|
37
|
+
*
|
|
38
|
+
* if (result.isOk()) {
|
|
39
|
+
* console.log(`Created ${result.value.created.length} files`);
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare function runAdd(input: AddInput): Promise<Result<AddBlockResult, AddError>>;
|
|
44
|
+
/**
|
|
45
|
+
* Prints the results of the add command.
|
|
46
|
+
*/
|
|
47
|
+
declare function printAddResults(result: AddBlockResult, dryRun: boolean, options?: {
|
|
48
|
+
mode?: OutputMode;
|
|
49
|
+
}): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Lists available blocks.
|
|
52
|
+
*/
|
|
53
|
+
declare function listBlocks(): Result<string[], AddError>;
|
|
54
|
+
export { runAdd, printAddResults, listBlocks, AddInput, AddError };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
AddError,
|
|
4
|
+
listBlocks,
|
|
5
|
+
printAddResults,
|
|
6
|
+
runAdd
|
|
7
|
+
} from "../shared/outfitter-3tx3adgj.js";
|
|
8
|
+
import"../shared/outfitter-ypcvwg1s.js";
|
|
9
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
10
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
11
|
+
export {
|
|
12
|
+
runAdd,
|
|
13
|
+
printAddResults,
|
|
14
|
+
listBlocks,
|
|
15
|
+
AddError
|
|
16
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
/** Options for the action-ceremony guardrail check. */
|
|
4
|
+
interface CheckActionCeremonyOptions {
|
|
5
|
+
/** Workspace root used to locate the actions directory. */
|
|
6
|
+
readonly cwd: string;
|
|
7
|
+
}
|
|
8
|
+
/** Result for a single ceremony budget after scanning action sources. */
|
|
9
|
+
interface CeremonyBudgetResult {
|
|
10
|
+
/** Number of pattern occurrences found. */
|
|
11
|
+
readonly count: number;
|
|
12
|
+
readonly description: string;
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/** Maximum allowed occurrences before the budget is exceeded. */
|
|
15
|
+
readonly maxCount: number;
|
|
16
|
+
/** Whether the count is within the allowed budget. */
|
|
17
|
+
readonly ok: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Aggregate result of the action-ceremony check across all budgets. */
|
|
20
|
+
interface CheckActionCeremonyResult {
|
|
21
|
+
/** Resolved path to the scanned actions directory. */
|
|
22
|
+
readonly actionsDir: string;
|
|
23
|
+
readonly budgets: readonly CeremonyBudgetResult[];
|
|
24
|
+
/** True when every budget is within its allowed count. */
|
|
25
|
+
readonly ok: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Error raised when the action-ceremony check cannot complete. */
|
|
28
|
+
declare class CheckActionCeremonyError extends Error {
|
|
29
|
+
readonly _tag: "CheckActionCeremonyError";
|
|
30
|
+
constructor(message: string);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Scan action source files and evaluate each ceremony budget.
|
|
34
|
+
*
|
|
35
|
+
* Reads all `.ts` files under the actions directory and counts pattern
|
|
36
|
+
* matches against pre-defined budgets. Returns per-budget results and
|
|
37
|
+
* an aggregate pass/fail.
|
|
38
|
+
*/
|
|
39
|
+
declare function runCheckActionCeremony(options: CheckActionCeremonyOptions): Promise<Result<CheckActionCeremonyResult, CheckActionCeremonyError>>;
|
|
40
|
+
/**
|
|
41
|
+
* Render ceremony check results to stdout/stderr.
|
|
42
|
+
*
|
|
43
|
+
* Emits JSON/JSONL for structured modes or a human-readable summary
|
|
44
|
+
* listing any budgets that exceeded their limit.
|
|
45
|
+
*/
|
|
46
|
+
declare function printCheckActionCeremonyResult(result: CheckActionCeremonyResult, options?: {
|
|
47
|
+
mode?: CliOutputMode;
|
|
48
|
+
}): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* CLI entry point: parse argv, run the ceremony check, and print results.
|
|
51
|
+
*
|
|
52
|
+
* @returns Exit code (0 on success, 1 on failure or error).
|
|
53
|
+
*/
|
|
54
|
+
declare function runCheckActionCeremonyFromArgv(argv: readonly string[]): Promise<number>;
|
|
55
|
+
export { runCheckActionCeremonyFromArgv, runCheckActionCeremony, printCheckActionCeremonyResult, CheckActionCeremonyResult, CheckActionCeremonyOptions, CheckActionCeremonyError, CeremonyBudgetResult };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckActionCeremonyError,
|
|
4
|
+
printCheckActionCeremonyResult,
|
|
5
|
+
runCheckActionCeremony,
|
|
6
|
+
runCheckActionCeremonyFromArgv
|
|
7
|
+
} from "../shared/outfitter-p2wn07b7.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runCheckActionCeremonyFromArgv,
|
|
12
|
+
runCheckActionCeremony,
|
|
13
|
+
printCheckActionCeremonyResult,
|
|
14
|
+
CheckActionCeremonyError
|
|
15
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
type DocsReadmeSentinelCheckReason = "missing-markers" | "out-of-date" | "up-to-date";
|
|
4
|
+
interface DocsReadmeSentinelCheckResult {
|
|
5
|
+
readonly reason: DocsReadmeSentinelCheckReason;
|
|
6
|
+
readonly updatedContent: string;
|
|
7
|
+
}
|
|
8
|
+
interface CheckDocsSentinelOptions {
|
|
9
|
+
readonly cwd: string;
|
|
10
|
+
}
|
|
11
|
+
interface CheckDocsSentinelResult {
|
|
12
|
+
readonly ok: boolean;
|
|
13
|
+
readonly readmePath: string;
|
|
14
|
+
readonly reason: DocsReadmeSentinelCheckReason;
|
|
15
|
+
readonly updatedContent: string;
|
|
16
|
+
}
|
|
17
|
+
declare class CheckDocsSentinelError extends Error {
|
|
18
|
+
readonly _tag: "CheckDocsSentinelError";
|
|
19
|
+
constructor(message: string);
|
|
20
|
+
}
|
|
21
|
+
declare function checkDocsReadmeSentinelContent(readmeContent: string, packageListContent: string, replaceSentinelSection?: (input: string, sentinelId: string, replacement: string) => string): DocsReadmeSentinelCheckResult;
|
|
22
|
+
declare function runCheckDocsSentinel(options: CheckDocsSentinelOptions): Promise<Result<CheckDocsSentinelResult, CheckDocsSentinelError>>;
|
|
23
|
+
declare function printCheckDocsSentinelResult(result: CheckDocsSentinelResult, options?: {
|
|
24
|
+
mode?: CliOutputMode;
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
declare function runCheckDocsSentinelFromArgv(argv: readonly string[]): Promise<number>;
|
|
27
|
+
export { runCheckDocsSentinelFromArgv, runCheckDocsSentinel, printCheckDocsSentinelResult, checkDocsReadmeSentinelContent, DocsReadmeSentinelCheckResult, DocsReadmeSentinelCheckReason, CheckDocsSentinelResult, CheckDocsSentinelOptions, CheckDocsSentinelError };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckDocsSentinelError,
|
|
4
|
+
checkDocsReadmeSentinelContent,
|
|
5
|
+
printCheckDocsSentinelResult,
|
|
6
|
+
runCheckDocsSentinel,
|
|
7
|
+
runCheckDocsSentinelFromArgv
|
|
8
|
+
} from "../shared/outfitter-fj2v5ffz.js";
|
|
9
|
+
import"../shared/outfitter-svts4wk2.js";
|
|
10
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
11
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
12
|
+
export {
|
|
13
|
+
runCheckDocsSentinelFromArgv,
|
|
14
|
+
runCheckDocsSentinel,
|
|
15
|
+
printCheckDocsSentinelResult,
|
|
16
|
+
checkDocsReadmeSentinelContent,
|
|
17
|
+
CheckDocsSentinelError
|
|
18
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CheckOrchestratorError, CheckOrchestratorMode, CheckOrchestratorOptions, CheckOrchestratorResult, buildCheckOrchestratorPlan, parseTreePaths, printCheckOrchestratorResults, runCheckOrchestrator } from "../shared/outfitter-rdpw2sbp.js";
|
|
2
|
+
export { runCheckOrchestrator, printCheckOrchestratorResults, parseTreePaths, buildCheckOrchestratorPlan, CheckOrchestratorResult, CheckOrchestratorOptions, CheckOrchestratorMode, CheckOrchestratorError };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckOrchestratorError,
|
|
4
|
+
buildCheckOrchestratorPlan,
|
|
5
|
+
parseTreePaths,
|
|
6
|
+
printCheckOrchestratorResults,
|
|
7
|
+
runCheckOrchestrator
|
|
8
|
+
} from "../shared/outfitter-xwzjgswj.js";
|
|
9
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
10
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
11
|
+
export {
|
|
12
|
+
runCheckOrchestrator,
|
|
13
|
+
printCheckOrchestratorResults,
|
|
14
|
+
parseTreePaths,
|
|
15
|
+
buildCheckOrchestratorPlan,
|
|
16
|
+
CheckOrchestratorError
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
interface CheckPresetVersionsOptions {
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
}
|
|
6
|
+
interface CheckPresetVersionsResult {
|
|
7
|
+
readonly ok: boolean;
|
|
8
|
+
readonly problems: readonly string[];
|
|
9
|
+
readonly workspaceRoot: string;
|
|
10
|
+
}
|
|
11
|
+
declare class CheckPresetVersionsError extends Error {
|
|
12
|
+
readonly _tag: "CheckPresetVersionsError";
|
|
13
|
+
constructor(message: string);
|
|
14
|
+
}
|
|
15
|
+
declare function runCheckPresetVersions(options: CheckPresetVersionsOptions): Promise<Result<CheckPresetVersionsResult, CheckPresetVersionsError>>;
|
|
16
|
+
declare function printCheckPresetVersionsResult(result: CheckPresetVersionsResult, options?: {
|
|
17
|
+
mode?: CliOutputMode;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
declare function runCheckPresetVersionsFromArgv(argv: readonly string[]): Promise<number>;
|
|
20
|
+
export { runCheckPresetVersionsFromArgv, runCheckPresetVersions, printCheckPresetVersionsResult, CheckPresetVersionsResult, CheckPresetVersionsOptions, CheckPresetVersionsError };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckPresetVersionsError,
|
|
4
|
+
printCheckPresetVersionsResult,
|
|
5
|
+
runCheckPresetVersions,
|
|
6
|
+
runCheckPresetVersionsFromArgv
|
|
7
|
+
} from "../shared/outfitter-8ggmja91.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runCheckPresetVersionsFromArgv,
|
|
12
|
+
runCheckPresetVersions,
|
|
13
|
+
printCheckPresetVersionsResult,
|
|
14
|
+
CheckPresetVersionsError
|
|
15
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
declare const REQUIRED_PREPUBLISH_ONLY = "bun ../../scripts/check-publish-manifest.ts";
|
|
4
|
+
interface PackageJson {
|
|
5
|
+
name?: string;
|
|
6
|
+
private?: boolean;
|
|
7
|
+
scripts?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
interface WorkspacePackageManifest {
|
|
10
|
+
manifest: PackageJson;
|
|
11
|
+
path: string;
|
|
12
|
+
}
|
|
13
|
+
interface PublishGuardrailViolation {
|
|
14
|
+
actual: string | undefined;
|
|
15
|
+
expected: string;
|
|
16
|
+
packageName: string;
|
|
17
|
+
path: string;
|
|
18
|
+
}
|
|
19
|
+
interface CheckPublishGuardrailsOptions {
|
|
20
|
+
readonly cwd: string;
|
|
21
|
+
}
|
|
22
|
+
interface CheckPublishGuardrailsResult {
|
|
23
|
+
readonly checkedManifestCount: number;
|
|
24
|
+
readonly ok: boolean;
|
|
25
|
+
readonly violations: readonly PublishGuardrailViolation[];
|
|
26
|
+
readonly workspaceRoot: string;
|
|
27
|
+
}
|
|
28
|
+
declare class CheckPublishGuardrailsError extends Error {
|
|
29
|
+
readonly _tag: "CheckPublishGuardrailsError";
|
|
30
|
+
constructor(message: string);
|
|
31
|
+
}
|
|
32
|
+
declare function findPublishGuardrailViolations(packages: WorkspacePackageManifest[]): PublishGuardrailViolation[];
|
|
33
|
+
declare function runCheckPublishGuardrails(options: CheckPublishGuardrailsOptions): Promise<Result<CheckPublishGuardrailsResult, CheckPublishGuardrailsError>>;
|
|
34
|
+
declare function printCheckPublishGuardrailsResult(result: CheckPublishGuardrailsResult, options?: {
|
|
35
|
+
mode?: CliOutputMode;
|
|
36
|
+
}): Promise<void>;
|
|
37
|
+
declare function runCheckPublishGuardrailsFromArgv(argv: readonly string[]): Promise<number>;
|
|
38
|
+
export { runCheckPublishGuardrailsFromArgv, runCheckPublishGuardrails, printCheckPublishGuardrailsResult, findPublishGuardrailViolations, WorkspacePackageManifest, REQUIRED_PREPUBLISH_ONLY, PublishGuardrailViolation, CheckPublishGuardrailsResult, CheckPublishGuardrailsOptions, CheckPublishGuardrailsError };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckPublishGuardrailsError,
|
|
4
|
+
REQUIRED_PREPUBLISH_ONLY,
|
|
5
|
+
findPublishGuardrailViolations,
|
|
6
|
+
printCheckPublishGuardrailsResult,
|
|
7
|
+
runCheckPublishGuardrails,
|
|
8
|
+
runCheckPublishGuardrailsFromArgv
|
|
9
|
+
} from "../shared/outfitter-ssynegbs.js";
|
|
10
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
11
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
12
|
+
export {
|
|
13
|
+
runCheckPublishGuardrailsFromArgv,
|
|
14
|
+
runCheckPublishGuardrails,
|
|
15
|
+
printCheckPublishGuardrailsResult,
|
|
16
|
+
findPublishGuardrailViolations,
|
|
17
|
+
REQUIRED_PREPUBLISH_ONLY,
|
|
18
|
+
CheckPublishGuardrailsError
|
|
19
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
interface SurfaceMapFormatCheckResult {
|
|
4
|
+
readonly actual: string;
|
|
5
|
+
readonly expected: string;
|
|
6
|
+
readonly filePath: string;
|
|
7
|
+
readonly ok: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface CheckSurfaceMapFormatOptions {
|
|
10
|
+
readonly cwd: string;
|
|
11
|
+
}
|
|
12
|
+
interface CheckSurfaceMapFormatResult {
|
|
13
|
+
readonly filePath: string;
|
|
14
|
+
readonly format: SurfaceMapFormatCheckResult | null;
|
|
15
|
+
readonly ok: boolean;
|
|
16
|
+
readonly reason: "format-drift" | "missing-file" | "ok";
|
|
17
|
+
}
|
|
18
|
+
declare class CheckSurfaceMapFormatError extends Error {
|
|
19
|
+
readonly _tag: "CheckSurfaceMapFormatError";
|
|
20
|
+
constructor(message: string);
|
|
21
|
+
}
|
|
22
|
+
declare function canonicalizeJson(content: string, filePath: string): string;
|
|
23
|
+
declare function checkSurfaceMapFormat(content: string, filePath: string): SurfaceMapFormatCheckResult;
|
|
24
|
+
declare function runCheckSurfaceMapFormat(options: CheckSurfaceMapFormatOptions): Promise<Result<CheckSurfaceMapFormatResult, CheckSurfaceMapFormatError>>;
|
|
25
|
+
declare function printCheckSurfaceMapFormatResult(result: CheckSurfaceMapFormatResult, options?: {
|
|
26
|
+
mode?: CliOutputMode;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
declare function runCheckSurfaceMapFormatFromArgv(argv: readonly string[]): Promise<number>;
|
|
29
|
+
export { runCheckSurfaceMapFormatFromArgv, runCheckSurfaceMapFormat, printCheckSurfaceMapFormatResult, checkSurfaceMapFormat, canonicalizeJson, SurfaceMapFormatCheckResult, CheckSurfaceMapFormatResult, CheckSurfaceMapFormatOptions, CheckSurfaceMapFormatError };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckSurfaceMapFormatError,
|
|
4
|
+
canonicalizeJson,
|
|
5
|
+
checkSurfaceMapFormat,
|
|
6
|
+
printCheckSurfaceMapFormatResult,
|
|
7
|
+
runCheckSurfaceMapFormat,
|
|
8
|
+
runCheckSurfaceMapFormatFromArgv
|
|
9
|
+
} from "../shared/outfitter-gyayfx5r.js";
|
|
10
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
11
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
12
|
+
export {
|
|
13
|
+
runCheckSurfaceMapFormatFromArgv,
|
|
14
|
+
runCheckSurfaceMapFormat,
|
|
15
|
+
printCheckSurfaceMapFormatResult,
|
|
16
|
+
checkSurfaceMapFormat,
|
|
17
|
+
canonicalizeJson,
|
|
18
|
+
CheckSurfaceMapFormatError
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
interface CheckSurfaceMapOptions {
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
}
|
|
6
|
+
interface CheckSurfaceMapResult {
|
|
7
|
+
readonly canonicalPath: string;
|
|
8
|
+
readonly legacyTrackedPath: string;
|
|
9
|
+
readonly ok: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare class CheckSurfaceMapError extends Error {
|
|
12
|
+
readonly _tag: "CheckSurfaceMapError";
|
|
13
|
+
constructor(message: string);
|
|
14
|
+
}
|
|
15
|
+
declare function runCheckSurfaceMap(options: CheckSurfaceMapOptions): Promise<Result<CheckSurfaceMapResult, CheckSurfaceMapError>>;
|
|
16
|
+
declare function printCheckSurfaceMapResult(result: CheckSurfaceMapResult, options?: {
|
|
17
|
+
mode?: CliOutputMode;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
declare function runCheckSurfaceMapFromArgv(argv: readonly string[]): Promise<number>;
|
|
20
|
+
export { runCheckSurfaceMapFromArgv, runCheckSurfaceMap, printCheckSurfaceMapResult, CheckSurfaceMapResult, CheckSurfaceMapOptions, CheckSurfaceMapError };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckSurfaceMapError,
|
|
4
|
+
printCheckSurfaceMapResult,
|
|
5
|
+
runCheckSurfaceMap,
|
|
6
|
+
runCheckSurfaceMapFromArgv
|
|
7
|
+
} from "../shared/outfitter-b9cpnr7e.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runCheckSurfaceMapFromArgv,
|
|
12
|
+
runCheckSurfaceMap,
|
|
13
|
+
printCheckSurfaceMapResult,
|
|
14
|
+
CheckSurfaceMapError
|
|
15
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { OutputMode } from "@outfitter/cli/types";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
/**
|
|
4
|
+
* Options for the check command.
|
|
5
|
+
*/
|
|
6
|
+
interface CheckOptions {
|
|
7
|
+
/** Check a specific block only. */
|
|
8
|
+
readonly block?: string;
|
|
9
|
+
/** Machine-oriented output for CI. */
|
|
10
|
+
readonly ci?: boolean;
|
|
11
|
+
/** Working directory to check. */
|
|
12
|
+
readonly cwd: string;
|
|
13
|
+
/** Only check manifest-tracked blocks; skip file-presence heuristic. */
|
|
14
|
+
readonly manifestOnly?: boolean;
|
|
15
|
+
/** Output mode override. */
|
|
16
|
+
readonly outputMode?: OutputMode;
|
|
17
|
+
/** Show diff information for drifted files. */
|
|
18
|
+
readonly verbose?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Information about a drifted file (included in verbose mode).
|
|
22
|
+
*/
|
|
23
|
+
interface DriftedFileInfo {
|
|
24
|
+
/** File path relative to project root. */
|
|
25
|
+
readonly path: string;
|
|
26
|
+
/** Reason for drift classification. */
|
|
27
|
+
readonly reason: "modified" | "missing";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Status of a single block after comparison.
|
|
31
|
+
*/
|
|
32
|
+
interface BlockCheckStatus {
|
|
33
|
+
/** Current tooling version providing the registry. */
|
|
34
|
+
readonly currentToolingVersion?: string;
|
|
35
|
+
/** Drifted file details (populated when verbose is true). */
|
|
36
|
+
readonly driftedFiles?: DriftedFileInfo[];
|
|
37
|
+
/** Tooling version the block was installed from. */
|
|
38
|
+
readonly installedFrom?: string;
|
|
39
|
+
/** Block name. */
|
|
40
|
+
readonly name: string;
|
|
41
|
+
/** Comparison result. */
|
|
42
|
+
readonly status: "current" | "drifted" | "missing";
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Complete result of the check command.
|
|
46
|
+
*/
|
|
47
|
+
interface CheckResult {
|
|
48
|
+
/** Per-block comparison results. */
|
|
49
|
+
readonly blocks: BlockCheckStatus[];
|
|
50
|
+
/** Number of blocks matching the registry. */
|
|
51
|
+
readonly currentCount: number;
|
|
52
|
+
/** Number of blocks with local modifications. */
|
|
53
|
+
readonly driftedCount: number;
|
|
54
|
+
/** Number of blocks with missing files. */
|
|
55
|
+
readonly missingCount: number;
|
|
56
|
+
/** Number of blocks checked. */
|
|
57
|
+
readonly totalChecked: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Error returned when the check command fails.
|
|
61
|
+
*/
|
|
62
|
+
declare class CheckError extends Error {
|
|
63
|
+
readonly _tag: "CheckError";
|
|
64
|
+
constructor(message: string);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Runs the check command programmatically.
|
|
68
|
+
*
|
|
69
|
+
* Reads the manifest (or falls back to file-presence heuristic) and
|
|
70
|
+
* compares each installed block against the registry.
|
|
71
|
+
*
|
|
72
|
+
* @param options - Check command options
|
|
73
|
+
* @returns Result with per-block comparison statuses
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const result = await runCheck({ cwd: process.cwd() });
|
|
78
|
+
* if (result.isOk()) {
|
|
79
|
+
* if (result.value.driftedCount > 0) {
|
|
80
|
+
* console.log("Some blocks have drifted from the registry");
|
|
81
|
+
* }
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
declare function runCheck(options: CheckOptions): Promise<Result<CheckResult, CheckError>>;
|
|
86
|
+
/**
|
|
87
|
+
* Formats and outputs check results.
|
|
88
|
+
*/
|
|
89
|
+
declare function printCheckResults(result: CheckResult, options?: {
|
|
90
|
+
mode?: OutputMode;
|
|
91
|
+
verbose?: boolean;
|
|
92
|
+
}): Promise<void>;
|
|
93
|
+
export { runCheck, printCheckResults, DriftedFileInfo, CheckResult, CheckOptions, CheckError, BlockCheckStatus };
|