outfitter 0.2.7 → 0.3.2
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 +1 -2
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.js +8 -7
- package/dist/shared/{chunk-x6644tk8.js → chunk-3pwh8ys4.js} +124 -154
- package/package.json +15 -11
- package/dist/actions.d.ts +0 -2
- package/dist/actions.js +0 -35
- package/dist/commands/add.d.ts +0 -54
- package/dist/commands/add.js +0 -16
- package/dist/commands/check-tsdoc.d.ts +0 -22
- package/dist/commands/check-tsdoc.js +0 -8
- package/dist/commands/check.d.ts +0 -91
- package/dist/commands/check.js +0 -14
- package/dist/commands/demo.d.ts +0 -21
- package/dist/commands/demo.js +0 -8
- package/dist/commands/docs-module-loader.d.ts +0 -2
- package/dist/commands/docs-module-loader.js +0 -8
- package/dist/commands/doctor.d.ts +0 -2
- package/dist/commands/doctor.js +0 -25
- package/dist/commands/init.d.ts +0 -7
- package/dist/commands/init.js +0 -32
- package/dist/commands/repo.d.ts +0 -3
- package/dist/commands/repo.js +0 -9
- package/dist/commands/scaffold.d.ts +0 -4
- package/dist/commands/scaffold.js +0 -32
- package/dist/commands/shared-deps.d.ts +0 -21
- package/dist/commands/shared-deps.js +0 -11
- package/dist/commands/upgrade-codemods.d.ts +0 -42
- package/dist/commands/upgrade-codemods.js +0 -15
- package/dist/commands/upgrade-planner.d.ts +0 -58
- package/dist/commands/upgrade-planner.js +0 -8
- package/dist/commands/upgrade-workspace.d.ts +0 -2
- package/dist/commands/upgrade-workspace.js +0 -16
- package/dist/commands/upgrade.d.ts +0 -221
- package/dist/commands/upgrade.js +0 -25
- package/dist/create/index.d.ts +0 -5
- package/dist/create/index.js +0 -30
- package/dist/create/planner.d.ts +0 -3
- package/dist/create/planner.js +0 -22
- package/dist/create/presets.d.ts +0 -3
- package/dist/create/presets.js +0 -12
- package/dist/create/types.d.ts +0 -2
- package/dist/create/types.js +0 -1
- package/dist/engine/blocks.d.ts +0 -3
- package/dist/engine/blocks.js +0 -12
- package/dist/engine/collector.d.ts +0 -2
- package/dist/engine/collector.js +0 -8
- package/dist/engine/config.d.ts +0 -3
- package/dist/engine/config.js +0 -15
- package/dist/engine/dependency-versions.d.ts +0 -12
- package/dist/engine/dependency-versions.js +0 -12
- package/dist/engine/executor.d.ts +0 -3
- package/dist/engine/executor.js +0 -19
- package/dist/engine/index.d.ts +0 -8
- package/dist/engine/index.js +0 -68
- package/dist/engine/names.d.ts +0 -2
- package/dist/engine/names.js +0 -24
- package/dist/engine/post-scaffold.d.ts +0 -3
- package/dist/engine/post-scaffold.js +0 -8
- package/dist/engine/render-plan.d.ts +0 -7
- package/dist/engine/render-plan.js +0 -9
- package/dist/engine/template.d.ts +0 -3
- package/dist/engine/template.js +0 -17
- package/dist/engine/types.d.ts +0 -2
- package/dist/engine/types.js +0 -8
- package/dist/engine/workspace.d.ts +0 -3
- package/dist/engine/workspace.js +0 -20
- package/dist/manifest.d.ts +0 -71
- package/dist/manifest.js +0 -16
- package/dist/output-mode.d.ts +0 -2
- package/dist/output-mode.js +0 -10
- package/dist/shared/outfitter-109s75x0.d.ts +0 -76
- package/dist/shared/outfitter-1fy7byz5.js +0 -170
- package/dist/shared/outfitter-1h7k8xxt.js +0 -29
- package/dist/shared/outfitter-20f6a2n4.js +0 -35
- package/dist/shared/outfitter-344t1r38.js +0 -1
- package/dist/shared/outfitter-4q1zfmvc.js +0 -154
- package/dist/shared/outfitter-4s9meh3j.js +0 -221
- package/dist/shared/outfitter-5akzvppx.js +0 -125
- package/dist/shared/outfitter-5y646xzk.js +0 -301
- package/dist/shared/outfitter-5yjr404v.d.ts +0 -22
- package/dist/shared/outfitter-63gse8fv.js +0 -316
- package/dist/shared/outfitter-6bkqjk86.d.ts +0 -3
- package/dist/shared/outfitter-6fgk6adm.d.ts +0 -40
- package/dist/shared/outfitter-79vfxt6y.js +0 -269
- package/dist/shared/outfitter-7ch26yq8.js +0 -885
- package/dist/shared/outfitter-7r12fj7f.js +0 -30
- package/dist/shared/outfitter-8y2dfx6n.js +0 -11
- package/dist/shared/outfitter-9x1brcmq.js +0 -184
- package/dist/shared/outfitter-a79xrm12.d.ts +0 -17
- package/dist/shared/outfitter-amc4jbs1.d.ts +0 -50
- package/dist/shared/outfitter-bn9c8p2e.js +0 -204
- package/dist/shared/outfitter-bpr28y54.js +0 -70
- package/dist/shared/outfitter-dpj9erew.d.ts +0 -4
- package/dist/shared/outfitter-e9rrfekb.d.ts +0 -51
- package/dist/shared/outfitter-ehp18x1n.js +0 -1
- package/dist/shared/outfitter-f9znfhkn.d.ts +0 -5
- package/dist/shared/outfitter-fhnjpjwc.d.ts +0 -18
- package/dist/shared/outfitter-fn20r49x.d.ts +0 -5
- package/dist/shared/outfitter-h3q6ae6d.d.ts +0 -48
- package/dist/shared/outfitter-ha89qf8q.js +0 -132
- package/dist/shared/outfitter-hsp8vy5m.d.ts +0 -146
- package/dist/shared/outfitter-hvsaxgcp.js +0 -1
- package/dist/shared/outfitter-j833sxws.js +0 -61
- package/dist/shared/outfitter-ksyvwmb5.js +0 -191
- package/dist/shared/outfitter-m3ehh37q.d.ts +0 -22
- package/dist/shared/outfitter-m44n0qzw.js +0 -161
- package/dist/shared/outfitter-mdt37hqm.js +0 -4
- package/dist/shared/outfitter-mt7d1ek2.js +0 -698
- package/dist/shared/outfitter-mtbpabf3.js +0 -91
- package/dist/shared/outfitter-n9g1zk4x.d.ts +0 -66
- package/dist/shared/outfitter-p71qb0f0.js +0 -82
- package/dist/shared/outfitter-pcj9gg2g.js +0 -909
- package/dist/shared/outfitter-pj9vp00r.js +0 -601
- package/dist/shared/outfitter-qakwgrrh.d.ts +0 -4
- package/dist/shared/outfitter-r419zfgs.d.ts +0 -30
- package/dist/shared/outfitter-s7jetkge.d.ts +0 -18
- package/dist/shared/outfitter-ttjr95y9.js +0 -98
- package/dist/shared/outfitter-vh4xgb93.js +0 -35
- package/dist/shared/outfitter-w1j80j1r.js +0 -326
- package/dist/shared/outfitter-xe5mzgdc.js +0 -208
- package/dist/shared/outfitter-ybbazsxq.d.ts +0 -14
- package/dist/shared/outfitter-yraebrmw.d.ts +0 -5
- package/dist/shared/outfitter-yvksv5qb.js +0 -322
- package/dist/shared/outfitter-z0we32cp.d.ts +0 -63
- package/dist/shared/outfitter-z5sx06qe.d.ts +0 -25
- package/dist/shared/outfitter-zwyvewr1.js +0 -36
- package/dist/targets/index.d.ts +0 -4
- package/dist/targets/index.js +0 -29
- package/dist/targets/registry.d.ts +0 -3
- package/dist/targets/registry.js +0 -28
- package/dist/targets/types.d.ts +0 -2
- package/dist/targets/types.js +0 -1
- package/template-versions.json +0 -22
- package/templates/.gitkeep +0 -0
- package/templates/basic/.gitignore.template +0 -30
- package/templates/basic/.lefthook.yml.template +0 -26
- package/templates/basic/package.json.template +0 -46
- package/templates/basic/src/index.ts.template +0 -26
- package/templates/basic/tsconfig.json.template +0 -34
- package/templates/cli/.gitignore.template +0 -4
- package/templates/cli/.lefthook.yml.template +0 -26
- package/templates/cli/README.md.template +0 -35
- package/templates/cli/biome.json.template +0 -4
- package/templates/cli/package.json.template +0 -53
- package/templates/cli/src/cli.ts.template +0 -8
- package/templates/cli/src/index.ts.template +0 -7
- package/templates/cli/src/program.ts.template +0 -31
- package/templates/cli/tsconfig.json.template +0 -34
- package/templates/daemon/.gitignore.template +0 -4
- package/templates/daemon/.lefthook.yml.template +0 -26
- package/templates/daemon/README.md.template +0 -67
- package/templates/daemon/biome.json.template +0 -4
- package/templates/daemon/package.json.template +0 -56
- package/templates/daemon/src/cli.ts.template +0 -96
- package/templates/daemon/src/daemon-main.ts.template +0 -79
- package/templates/daemon/src/daemon.ts.template +0 -11
- package/templates/daemon/src/index.ts.template +0 -7
- package/templates/daemon/tsconfig.json.template +0 -23
- package/templates/full-stack/.gitignore.template +0 -30
- package/templates/full-stack/README.md.template +0 -30
- package/templates/full-stack/apps/cli/package.json.template +0 -39
- package/templates/full-stack/apps/cli/src/cli.ts.template +0 -24
- package/templates/full-stack/apps/cli/src/index.test.ts.template +0 -18
- package/templates/full-stack/apps/cli/src/index.ts.template +0 -5
- package/templates/full-stack/apps/cli/tsconfig.json.template +0 -37
- package/templates/full-stack/apps/mcp/package.json.template +0 -40
- package/templates/full-stack/apps/mcp/src/index.test.ts.template +0 -18
- package/templates/full-stack/apps/mcp/src/index.ts.template +0 -6
- package/templates/full-stack/apps/mcp/src/mcp.ts.template +0 -22
- package/templates/full-stack/apps/mcp/src/server.ts.template +0 -10
- package/templates/full-stack/apps/mcp/tsconfig.json.template +0 -37
- package/templates/full-stack/package.json.template +0 -16
- package/templates/full-stack/packages/core/package.json.template +0 -36
- package/templates/full-stack/packages/core/src/handlers.ts.template +0 -31
- package/templates/full-stack/packages/core/src/index.test.ts.template +0 -30
- package/templates/full-stack/packages/core/src/index.ts.template +0 -8
- package/templates/full-stack/packages/core/src/types.ts.template +0 -13
- package/templates/full-stack/packages/core/tsconfig.json.template +0 -34
- package/templates/library/.gitignore.template +0 -30
- package/templates/library/README.md.template +0 -29
- package/templates/library/bunup.config.ts.template +0 -20
- package/templates/library/package.json.template +0 -55
- package/templates/library/src/handlers.ts.template +0 -31
- package/templates/library/src/index.test.ts.template +0 -35
- package/templates/library/src/index.ts.template +0 -8
- package/templates/library/src/types.ts.template +0 -13
- package/templates/library/tsconfig.json.template +0 -34
- package/templates/mcp/.gitignore.template +0 -4
- package/templates/mcp/.lefthook.yml.template +0 -26
- package/templates/mcp/README.md.template +0 -54
- package/templates/mcp/biome.json.template +0 -4
- package/templates/mcp/package.json.template +0 -53
- package/templates/mcp/src/index.ts.template +0 -7
- package/templates/mcp/src/mcp.ts.template +0 -33
- package/templates/mcp/src/server.ts.template +0 -8
- package/templates/mcp/tsconfig.json.template +0 -23
- package/templates/minimal/.gitignore.template +0 -30
- package/templates/minimal/.lefthook.yml.template +0 -26
- package/templates/minimal/package.json.template +0 -53
- package/templates/minimal/src/index.ts.template +0 -26
- package/templates/minimal/tsconfig.json.template +0 -34
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "outfitter",
|
|
3
3
|
"description": "Outfitter umbrella CLI for scaffolding and project management",
|
|
4
|
-
"version": "0.2
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
"templates",
|
|
9
|
-
"template-versions.json"
|
|
7
|
+
"dist"
|
|
10
8
|
],
|
|
11
9
|
"module": "./dist/index.js",
|
|
12
10
|
"types": "./dist/index.d.ts",
|
|
@@ -179,6 +177,12 @@
|
|
|
179
177
|
"default": "./dist/engine/post-scaffold.js"
|
|
180
178
|
}
|
|
181
179
|
},
|
|
180
|
+
"./engine/preset": {
|
|
181
|
+
"import": {
|
|
182
|
+
"types": "./dist/engine/preset.d.ts",
|
|
183
|
+
"default": "./dist/engine/preset.js"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
182
186
|
"./engine/render-plan": {
|
|
183
187
|
"import": {
|
|
184
188
|
"types": "./dist/engine/render-plan.d.ts",
|
|
@@ -227,9 +231,7 @@
|
|
|
227
231
|
"types": "./dist/targets/types.d.ts",
|
|
228
232
|
"default": "./dist/targets/types.js"
|
|
229
233
|
}
|
|
230
|
-
}
|
|
231
|
-
"./template-versions": "./template-versions.json",
|
|
232
|
-
"./template-versions.json": "./template-versions.json"
|
|
234
|
+
}
|
|
233
235
|
},
|
|
234
236
|
"bin": {
|
|
235
237
|
"outfitter": "./dist/cli.js",
|
|
@@ -247,8 +249,6 @@
|
|
|
247
249
|
"lint:fix": "biome lint --write ./src",
|
|
248
250
|
"pretypecheck": "(test -f ../../packages/logging/dist/index.d.ts || bun run --filter @outfitter/logging build) && (test -f ../../packages/cli/dist/output.d.ts || bun run --filter @outfitter/cli build)",
|
|
249
251
|
"typecheck": "tsc --noEmit",
|
|
250
|
-
"sync:templates": "bun run ../../scripts/sync-templates.ts",
|
|
251
|
-
"prepack": "bun run sync:templates",
|
|
252
252
|
"prepublishOnly": "bun ../../scripts/check-publish-manifest.ts",
|
|
253
253
|
"clean": "rm -rf dist"
|
|
254
254
|
},
|
|
@@ -258,16 +258,20 @@
|
|
|
258
258
|
"@outfitter/tui": "0.2.1",
|
|
259
259
|
"@outfitter/config": "0.3.3",
|
|
260
260
|
"@outfitter/contracts": "0.4.1",
|
|
261
|
+
"@outfitter/daemon": "0.2.4",
|
|
262
|
+
"@outfitter/presets": "0.2.0",
|
|
261
263
|
"@outfitter/docs": "0.1.2",
|
|
262
264
|
"@outfitter/logging": "0.4.1",
|
|
263
|
-
"@outfitter/
|
|
265
|
+
"@outfitter/mcp": "0.4.2",
|
|
266
|
+
"@outfitter/tooling": "0.3.3",
|
|
267
|
+
"@outfitter/types": "0.2.3",
|
|
264
268
|
"commander": "^14.0.2",
|
|
265
269
|
"typescript": "^5.9.3",
|
|
266
270
|
"zod": "^4.3.5"
|
|
267
271
|
},
|
|
268
272
|
"devDependencies": {
|
|
269
273
|
"@types/bun": "^1.3.9",
|
|
270
|
-
"@types/node": "^25.0
|
|
274
|
+
"@types/node": "^25.3.0"
|
|
271
275
|
},
|
|
272
276
|
"engines": {
|
|
273
277
|
"bun": ">=1.3.9"
|
package/dist/actions.d.ts
DELETED
package/dist/actions.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
outfitterActions
|
|
4
|
-
} from "./shared/outfitter-7ch26yq8.js";
|
|
5
|
-
import"./shared/outfitter-pj9vp00r.js";
|
|
6
|
-
import"./shared/outfitter-mt7d1ek2.js";
|
|
7
|
-
import"./shared/outfitter-ksyvwmb5.js";
|
|
8
|
-
import"./shared/outfitter-w1j80j1r.js";
|
|
9
|
-
import"./shared/outfitter-5y646xzk.js";
|
|
10
|
-
import"./shared/outfitter-63gse8fv.js";
|
|
11
|
-
import"./shared/outfitter-pcj9gg2g.js";
|
|
12
|
-
import"./shared/outfitter-bpr28y54.js";
|
|
13
|
-
import"./shared/outfitter-yvksv5qb.js";
|
|
14
|
-
import"./shared/outfitter-4s9meh3j.js";
|
|
15
|
-
import"./shared/outfitter-ehp18x1n.js";
|
|
16
|
-
import"./shared/outfitter-xe5mzgdc.js";
|
|
17
|
-
import"./shared/outfitter-1h7k8xxt.js";
|
|
18
|
-
import"./shared/outfitter-ttjr95y9.js";
|
|
19
|
-
import"./shared/outfitter-344t1r38.js";
|
|
20
|
-
import"./shared/outfitter-5akzvppx.js";
|
|
21
|
-
import"./shared/outfitter-ha89qf8q.js";
|
|
22
|
-
import"./shared/outfitter-20f6a2n4.js";
|
|
23
|
-
import"./shared/outfitter-m44n0qzw.js";
|
|
24
|
-
import"./shared/outfitter-9x1brcmq.js";
|
|
25
|
-
import"./shared/outfitter-j833sxws.js";
|
|
26
|
-
import"./shared/outfitter-79vfxt6y.js";
|
|
27
|
-
import"./shared/outfitter-1fy7byz5.js";
|
|
28
|
-
import"./shared/outfitter-4q1zfmvc.js";
|
|
29
|
-
import"./shared/outfitter-8y2dfx6n.js";
|
|
30
|
-
import"./shared/outfitter-mtbpabf3.js";
|
|
31
|
-
import"./shared/outfitter-7r12fj7f.js";
|
|
32
|
-
import"./shared/outfitter-mdt37hqm.js";
|
|
33
|
-
export {
|
|
34
|
-
outfitterActions
|
|
35
|
-
};
|
package/dist/commands/add.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
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 };
|
package/dist/commands/add.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
AddError,
|
|
4
|
-
listBlocks,
|
|
5
|
-
printAddResults,
|
|
6
|
-
runAdd
|
|
7
|
-
} from "../shared/outfitter-79vfxt6y.js";
|
|
8
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
9
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
10
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
11
|
-
export {
|
|
12
|
-
runAdd,
|
|
13
|
-
printAddResults,
|
|
14
|
-
listBlocks,
|
|
15
|
-
AddError
|
|
16
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
-
import { Result } from "@outfitter/contracts";
|
|
3
|
-
import { CoverageLevel, TsDocCheckResult } from "@outfitter/tooling";
|
|
4
|
-
/** Validated input for the check-tsdoc action handler. */
|
|
5
|
-
interface CheckTsDocInput {
|
|
6
|
-
readonly cwd: string;
|
|
7
|
-
readonly jq: string | undefined;
|
|
8
|
-
readonly level: CoverageLevel | undefined;
|
|
9
|
-
readonly minCoverage: number;
|
|
10
|
-
readonly outputMode: CliOutputMode;
|
|
11
|
-
readonly packages: readonly string[];
|
|
12
|
-
readonly strict: boolean;
|
|
13
|
-
readonly summary: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Run TSDoc coverage analysis and format output.
|
|
17
|
-
*
|
|
18
|
-
* @param input - Validated action input
|
|
19
|
-
* @returns Result containing the coverage analysis
|
|
20
|
-
*/
|
|
21
|
-
declare function runCheckTsdoc(input: CheckTsDocInput): Promise<Result<TsDocCheckResult, Error>>;
|
|
22
|
-
export { runCheckTsdoc, CheckTsDocInput };
|
package/dist/commands/check.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
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
|
-
/** Output mode override. */
|
|
14
|
-
readonly outputMode?: OutputMode;
|
|
15
|
-
/** Show diff information for drifted files. */
|
|
16
|
-
readonly verbose?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Information about a drifted file (included in verbose mode).
|
|
20
|
-
*/
|
|
21
|
-
interface DriftedFileInfo {
|
|
22
|
-
/** File path relative to project root. */
|
|
23
|
-
readonly path: string;
|
|
24
|
-
/** Reason for drift classification. */
|
|
25
|
-
readonly reason: "modified" | "missing";
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Status of a single block after comparison.
|
|
29
|
-
*/
|
|
30
|
-
interface BlockCheckStatus {
|
|
31
|
-
/** Current tooling version providing the registry. */
|
|
32
|
-
readonly currentToolingVersion?: string;
|
|
33
|
-
/** Drifted file details (populated when verbose is true). */
|
|
34
|
-
readonly driftedFiles?: DriftedFileInfo[];
|
|
35
|
-
/** Tooling version the block was installed from. */
|
|
36
|
-
readonly installedFrom?: string;
|
|
37
|
-
/** Block name. */
|
|
38
|
-
readonly name: string;
|
|
39
|
-
/** Comparison result. */
|
|
40
|
-
readonly status: "current" | "drifted" | "missing";
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Complete result of the check command.
|
|
44
|
-
*/
|
|
45
|
-
interface CheckResult {
|
|
46
|
-
/** Per-block comparison results. */
|
|
47
|
-
readonly blocks: BlockCheckStatus[];
|
|
48
|
-
/** Number of blocks matching the registry. */
|
|
49
|
-
readonly currentCount: number;
|
|
50
|
-
/** Number of blocks with local modifications. */
|
|
51
|
-
readonly driftedCount: number;
|
|
52
|
-
/** Number of blocks with missing files. */
|
|
53
|
-
readonly missingCount: number;
|
|
54
|
-
/** Number of blocks checked. */
|
|
55
|
-
readonly totalChecked: number;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Error returned when the check command fails.
|
|
59
|
-
*/
|
|
60
|
-
declare class CheckError extends Error {
|
|
61
|
-
readonly _tag: "CheckError";
|
|
62
|
-
constructor(message: string);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Runs the check command programmatically.
|
|
66
|
-
*
|
|
67
|
-
* Reads the manifest (or falls back to file-presence heuristic) and
|
|
68
|
-
* compares each installed block against the registry.
|
|
69
|
-
*
|
|
70
|
-
* @param options - Check command options
|
|
71
|
-
* @returns Result with per-block comparison statuses
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```typescript
|
|
75
|
-
* const result = await runCheck({ cwd: process.cwd() });
|
|
76
|
-
* if (result.isOk()) {
|
|
77
|
-
* if (result.value.driftedCount > 0) {
|
|
78
|
-
* console.log("Some blocks have drifted from the registry");
|
|
79
|
-
* }
|
|
80
|
-
* }
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
declare function runCheck(options: CheckOptions): Promise<Result<CheckResult, CheckError>>;
|
|
84
|
-
/**
|
|
85
|
-
* Formats and outputs check results.
|
|
86
|
-
*/
|
|
87
|
-
declare function printCheckResults(result: CheckResult, options?: {
|
|
88
|
-
mode?: OutputMode;
|
|
89
|
-
verbose?: boolean;
|
|
90
|
-
}): Promise<void>;
|
|
91
|
-
export { runCheck, printCheckResults, DriftedFileInfo, CheckResult, CheckOptions, CheckError, BlockCheckStatus };
|
package/dist/commands/check.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CheckError,
|
|
4
|
-
printCheckResults,
|
|
5
|
-
runCheck
|
|
6
|
-
} from "../shared/outfitter-w1j80j1r.js";
|
|
7
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
8
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
10
|
-
export {
|
|
11
|
-
runCheck,
|
|
12
|
-
printCheckResults,
|
|
13
|
-
CheckError
|
|
14
|
-
};
|
package/dist/commands/demo.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
-
/**
|
|
3
|
-
* Options for forwarding to the demo CLI.
|
|
4
|
-
*/
|
|
5
|
-
interface DemoOptions {
|
|
6
|
-
readonly animate?: boolean | undefined;
|
|
7
|
-
readonly list?: boolean | undefined;
|
|
8
|
-
readonly outputMode: CliOutputMode;
|
|
9
|
-
readonly section?: string | undefined;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Result of forwarding the demo command.
|
|
13
|
-
*/
|
|
14
|
-
interface DemoResult {
|
|
15
|
-
readonly exitCode: number;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Runs the demo command through available entrypoints.
|
|
19
|
-
*/
|
|
20
|
-
declare function runDemo(options: DemoOptions): Promise<DemoResult>;
|
|
21
|
-
export { runDemo, DemoResult, DemoOptions };
|
package/dist/commands/demo.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CreateDocsCommandOptions, DocsCommandIo, DocsExportTarget, ExecuteCheckCommandOptions, ExecuteExportCommandOptions, ExecuteSyncCommandOptions, loadDocsModule } from "../shared/outfitter-6fgk6adm.js";
|
|
2
|
-
export { loadDocsModule, ExecuteSyncCommandOptions, ExecuteExportCommandOptions, ExecuteCheckCommandOptions, DocsExportTarget, DocsCommandIo, CreateDocsCommandOptions };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { BunVersionCheck, CheckResult, ConfigFilesCheck, DependenciesCheck, DirectoriesCheck, DoctorOptions, DoctorResult, DoctorSummary, PackageJsonCheck, WorkspaceMemberHealth, doctorCommand, printDoctorResults, runDoctor } from "../shared/outfitter-hsp8vy5m.js";
|
|
2
|
-
export { runDoctor, printDoctorResults, doctorCommand, WorkspaceMemberHealth, PackageJsonCheck, DoctorSummary, DoctorResult, DoctorOptions, DirectoriesCheck, DependenciesCheck, ConfigFilesCheck, CheckResult, BunVersionCheck };
|
package/dist/commands/doctor.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
doctorCommand,
|
|
4
|
-
printDoctorResults,
|
|
5
|
-
runDoctor
|
|
6
|
-
} from "../shared/outfitter-5y646xzk.js";
|
|
7
|
-
import"../shared/outfitter-344t1r38.js";
|
|
8
|
-
import"../shared/outfitter-5akzvppx.js";
|
|
9
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
10
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
11
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
12
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
13
|
-
import"../shared/outfitter-j833sxws.js";
|
|
14
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
15
|
-
import"../shared/outfitter-1fy7byz5.js";
|
|
16
|
-
import"../shared/outfitter-4q1zfmvc.js";
|
|
17
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
18
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
19
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
20
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
21
|
-
export {
|
|
22
|
-
runDoctor,
|
|
23
|
-
printDoctorResults,
|
|
24
|
-
doctorCommand
|
|
25
|
-
};
|
package/dist/commands/init.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InitError, InitOptions, InitPresetId, InitResult, InitStructure, initCommand, printInitResults, runInit } from "../shared/outfitter-z0we32cp.js";
|
|
2
|
-
import "../shared/outfitter-z5sx06qe.js";
|
|
3
|
-
import "../shared/outfitter-y784nh31.js";
|
|
4
|
-
import "../shared/outfitter-s7jetkge.js";
|
|
5
|
-
import "../shared/outfitter-r419zfgs.js";
|
|
6
|
-
import "../shared/outfitter-amc4jbs1.js";
|
|
7
|
-
export { runInit, printInitResults, initCommand, InitStructure, InitResult, InitPresetId, InitOptions, InitError };
|
package/dist/commands/init.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
InitError,
|
|
4
|
-
initCommand,
|
|
5
|
-
printInitResults,
|
|
6
|
-
runInit
|
|
7
|
-
} from "../shared/outfitter-mt7d1ek2.js";
|
|
8
|
-
import"../shared/outfitter-4s9meh3j.js";
|
|
9
|
-
import"../shared/outfitter-ehp18x1n.js";
|
|
10
|
-
import"../shared/outfitter-xe5mzgdc.js";
|
|
11
|
-
import"../shared/outfitter-1h7k8xxt.js";
|
|
12
|
-
import"../shared/outfitter-ttjr95y9.js";
|
|
13
|
-
import"../shared/outfitter-344t1r38.js";
|
|
14
|
-
import"../shared/outfitter-5akzvppx.js";
|
|
15
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
16
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
17
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
18
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
19
|
-
import"../shared/outfitter-j833sxws.js";
|
|
20
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
21
|
-
import"../shared/outfitter-1fy7byz5.js";
|
|
22
|
-
import"../shared/outfitter-4q1zfmvc.js";
|
|
23
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
24
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
25
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
26
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
27
|
-
export {
|
|
28
|
-
runInit,
|
|
29
|
-
printInitResults,
|
|
30
|
-
initCommand,
|
|
31
|
-
InitError
|
|
32
|
-
};
|
package/dist/commands/repo.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { CreateRepoCommandOptions, RepoCheckSubject, RepoCommandIo, RepoToolingInvocation, createRepoCommand } from "../shared/outfitter-5yjr404v.js";
|
|
2
|
-
import "../shared/outfitter-6fgk6adm.js";
|
|
3
|
-
export { createRepoCommand, RepoToolingInvocation, RepoCommandIo, RepoCheckSubject, CreateRepoCommandOptions };
|
package/dist/commands/repo.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ScaffoldCommandError, ScaffoldCommandResult, ScaffoldOptions, printScaffoldResults, runScaffold, scaffoldCommand } from "../shared/outfitter-h3q6ae6d.js";
|
|
2
|
-
import "../shared/outfitter-z5sx06qe.js";
|
|
3
|
-
import "../shared/outfitter-amc4jbs1.js";
|
|
4
|
-
export { scaffoldCommand, runScaffold, printScaffoldResults, ScaffoldOptions, ScaffoldCommandResult, ScaffoldCommandError };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ScaffoldCommandError,
|
|
4
|
-
printScaffoldResults,
|
|
5
|
-
runScaffold,
|
|
6
|
-
scaffoldCommand
|
|
7
|
-
} from "../shared/outfitter-pj9vp00r.js";
|
|
8
|
-
import"../shared/outfitter-4s9meh3j.js";
|
|
9
|
-
import"../shared/outfitter-ehp18x1n.js";
|
|
10
|
-
import"../shared/outfitter-xe5mzgdc.js";
|
|
11
|
-
import"../shared/outfitter-1h7k8xxt.js";
|
|
12
|
-
import"../shared/outfitter-ttjr95y9.js";
|
|
13
|
-
import"../shared/outfitter-344t1r38.js";
|
|
14
|
-
import"../shared/outfitter-5akzvppx.js";
|
|
15
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
16
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
17
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
18
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
19
|
-
import"../shared/outfitter-j833sxws.js";
|
|
20
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
21
|
-
import"../shared/outfitter-1fy7byz5.js";
|
|
22
|
-
import"../shared/outfitter-4q1zfmvc.js";
|
|
23
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
24
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
25
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
26
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
27
|
-
export {
|
|
28
|
-
scaffoldCommand,
|
|
29
|
-
runScaffold,
|
|
30
|
-
printScaffoldResults,
|
|
31
|
-
ScaffoldCommandError
|
|
32
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared devDependencies injected into all scaffolded projects.
|
|
3
|
-
* Template-specific devDependencies take precedence over these defaults.
|
|
4
|
-
*
|
|
5
|
-
* Keep these in sync with the root package.json versions.
|
|
6
|
-
*/
|
|
7
|
-
declare const SHARED_DEV_DEPS: Readonly<Record<string, string>>;
|
|
8
|
-
/**
|
|
9
|
-
* Shared scripts injected into all scaffolded projects.
|
|
10
|
-
* Template-specific scripts take precedence over these defaults.
|
|
11
|
-
*/
|
|
12
|
-
declare const SHARED_SCRIPTS: {
|
|
13
|
-
readonly check: "ultracite check";
|
|
14
|
-
readonly "clean:artifacts": "rm -rf dist .turbo";
|
|
15
|
-
readonly "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test";
|
|
16
|
-
readonly lint: "biome check .";
|
|
17
|
-
readonly "lint:fix": "biome check . --write";
|
|
18
|
-
readonly format: "biome format --write .";
|
|
19
|
-
readonly typecheck: "tsc --noEmit";
|
|
20
|
-
};
|
|
21
|
-
export { SHARED_SCRIPTS, SHARED_DEV_DEPS };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { OutfitterError } from "@outfitter/contracts";
|
|
2
|
-
import { Result } from "@outfitter/contracts";
|
|
3
|
-
/** Options passed to a codemod's transform function. */
|
|
4
|
-
interface CodemodOptions {
|
|
5
|
-
readonly dryRun: boolean;
|
|
6
|
-
readonly targetDir: string;
|
|
7
|
-
}
|
|
8
|
-
/** Result returned by a codemod's transform function. */
|
|
9
|
-
interface CodemodResult {
|
|
10
|
-
readonly changedFiles: readonly string[];
|
|
11
|
-
readonly errors: readonly string[];
|
|
12
|
-
readonly skippedFiles: readonly string[];
|
|
13
|
-
}
|
|
14
|
-
/** A discovered codemod with resolved paths. */
|
|
15
|
-
interface DiscoveredCodemod {
|
|
16
|
-
/** Absolute path to the codemod file. */
|
|
17
|
-
readonly absolutePath: string;
|
|
18
|
-
/** Path relative to the codemods directory. */
|
|
19
|
-
readonly relativePath: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Find the codemods directory, checking known locations.
|
|
23
|
-
*
|
|
24
|
-
* Searches:
|
|
25
|
-
* 1. Relative to the target cwd
|
|
26
|
-
* 2. Walking up parent directories from cwd (monorepo root detection)
|
|
27
|
-
* 3. Relative to the outfitter binary itself (development mode)
|
|
28
|
-
*/
|
|
29
|
-
declare function findCodemodsDir(cwd: string, binaryDir?: string): string | null;
|
|
30
|
-
/**
|
|
31
|
-
* Discover codemods referenced in migration docs for a package version range.
|
|
32
|
-
*
|
|
33
|
-
* Scans migration doc frontmatter for `codemod` references in the `changes`
|
|
34
|
-
* array, resolves them to absolute paths in the codemods directory, and
|
|
35
|
-
* deduplicates.
|
|
36
|
-
*/
|
|
37
|
-
declare function discoverCodemods(migrationsDir: string, codemodsDir: string, shortName: string, fromVersion: string, toVersion: string): DiscoveredCodemod[];
|
|
38
|
-
/**
|
|
39
|
-
* Run a single codemod by importing and executing its `transform` function.
|
|
40
|
-
*/
|
|
41
|
-
declare function runCodemod(codemodPath: string, targetDir: string, dryRun: boolean): Promise<Result<CodemodResult, OutfitterError>>;
|
|
42
|
-
export { runCodemod, findCodemodsDir, discoverCodemods, DiscoveredCodemod, CodemodResult, CodemodOptions };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
discoverCodemods,
|
|
4
|
-
findCodemodsDir,
|
|
5
|
-
runCodemod
|
|
6
|
-
} from "../shared/outfitter-pcj9gg2g.js";
|
|
7
|
-
import"../shared/outfitter-bpr28y54.js";
|
|
8
|
-
import"../shared/outfitter-yvksv5qb.js";
|
|
9
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
10
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
11
|
-
export {
|
|
12
|
-
runCodemod,
|
|
13
|
-
findCodemodsDir,
|
|
14
|
-
discoverCodemods
|
|
15
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure, deterministic planner for the `outfitter upgrade` command.
|
|
3
|
-
*
|
|
4
|
-
* Classifies each installed package into one of four bump categories
|
|
5
|
-
* based on the installed version, the latest available version, and
|
|
6
|
-
* metadata about whether the bump contains breaking changes.
|
|
7
|
-
*
|
|
8
|
-
* Pre-1.0 packages (major version 0) treat minor bumps as breaking
|
|
9
|
-
* per semver convention.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
/** Classification of a version bump for a single package. */
|
|
14
|
-
type BumpClassification = "upToDate" | "upgradableNonBreaking" | "upgradableBreaking" | "blocked";
|
|
15
|
-
/** Describes the planned action for a single package. */
|
|
16
|
-
interface PackageUpgradeAction {
|
|
17
|
-
/** Whether this update contains breaking changes */
|
|
18
|
-
readonly breaking: boolean;
|
|
19
|
-
/** Bump classification */
|
|
20
|
-
readonly classification: BumpClassification;
|
|
21
|
-
/** Currently installed version */
|
|
22
|
-
readonly currentVersion: string;
|
|
23
|
-
/** Latest available version */
|
|
24
|
-
readonly latestVersion: string;
|
|
25
|
-
/** Migration doc path if available */
|
|
26
|
-
readonly migrationDoc?: string;
|
|
27
|
-
/** Full package name (e.g. "@outfitter/cli") */
|
|
28
|
-
readonly name: string;
|
|
29
|
-
}
|
|
30
|
-
/** The complete update plan with per-package actions and aggregate summary. */
|
|
31
|
-
interface UpgradePlan {
|
|
32
|
-
/** Per-package update actions, sorted by name for deterministic output. */
|
|
33
|
-
readonly packages: PackageUpgradeAction[];
|
|
34
|
-
/** Aggregate counts by classification. */
|
|
35
|
-
readonly summary: {
|
|
36
|
-
readonly upToDate: number;
|
|
37
|
-
readonly upgradableNonBreaking: number;
|
|
38
|
-
readonly upgradableBreaking: number;
|
|
39
|
-
readonly blocked: number;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Analyze installed packages against their latest versions and produce
|
|
44
|
-
* a deterministic update plan.
|
|
45
|
-
*
|
|
46
|
-
* This function is **pure** — no side effects, no I/O, no process.env reads.
|
|
47
|
-
* Same inputs always produce the same output.
|
|
48
|
-
*
|
|
49
|
-
* @param installed - Map of package name to currently installed version.
|
|
50
|
-
* @param latest - Map of package name to latest version info (version string + breaking flag).
|
|
51
|
-
* @param migrationDocs - Optional map of package name to migration doc path.
|
|
52
|
-
* @returns A deterministic update plan with per-package actions and summary.
|
|
53
|
-
*/
|
|
54
|
-
declare function analyzeUpgrades(installed: Map<string, string>, latest: Map<string, {
|
|
55
|
-
version: string;
|
|
56
|
-
breaking?: boolean;
|
|
57
|
-
}>, migrationDocs?: Map<string, string>): UpgradePlan;
|
|
58
|
-
export { analyzeUpgrades, UpgradePlan, PackageUpgradeAction, BumpClassification };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { VersionConflict, WorkspacePackageEntry, WorkspaceScanResult, applyUpdatesToWorkspace, collectWorkspaceManifests, detectWorkspaceRoot, getInstalledPackagesFromWorkspace, runInstall } from "../shared/outfitter-109s75x0.js";
|
|
2
|
-
export { runInstall, getInstalledPackagesFromWorkspace, detectWorkspaceRoot, collectWorkspaceManifests, applyUpdatesToWorkspace, WorkspaceScanResult, WorkspacePackageEntry, VersionConflict };
|