outfitter 0.2.4 → 0.2.6
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 +8 -5
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +34 -0
- package/dist/cli.js +1 -1
- package/dist/commands/add.d.ts +54 -0
- package/dist/commands/add.js +16 -0
- package/dist/commands/check.d.ts +91 -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-module-loader.d.ts +2 -0
- package/dist/commands/docs-module-loader.js +8 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +13 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.js +31 -0
- package/dist/commands/migrate-kit.d.ts +2 -0
- package/dist/commands/migrate-kit.js +15 -0
- package/dist/commands/repo.d.ts +3 -0
- package/dist/commands/repo.js +9 -0
- package/dist/commands/scaffold.d.ts +4 -0
- package/dist/commands/scaffold.js +31 -0
- package/dist/commands/shared-deps.d.ts +36 -0
- package/dist/commands/shared-deps.js +10 -0
- package/dist/commands/upgrade-codemods.d.ts +42 -0
- package/dist/commands/upgrade-codemods.js +15 -0
- package/dist/commands/upgrade-planner.d.ts +58 -0
- package/dist/commands/upgrade-planner.js +8 -0
- package/dist/commands/upgrade-workspace.d.ts +76 -0
- package/dist/commands/upgrade-workspace.js +16 -0
- package/dist/commands/upgrade.d.ts +214 -0
- package/dist/commands/upgrade.js +25 -0
- package/dist/create/index.d.ts +5 -0
- package/dist/create/index.js +29 -0
- package/dist/create/planner.d.ts +3 -0
- package/dist/create/planner.js +21 -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 +12 -0
- package/dist/engine/executor.d.ts +3 -0
- package/dist/engine/executor.js +16 -0
- package/dist/engine/index.d.ts +8 -0
- package/dist/engine/index.js +59 -0
- package/dist/engine/names.d.ts +2 -0
- package/dist/engine/names.js +16 -0
- package/dist/engine/post-scaffold.d.ts +3 -0
- package/dist/engine/post-scaffold.js +8 -0
- package/dist/engine/render-plan.d.ts +7 -0
- package/dist/engine/render-plan.js +9 -0
- package/dist/engine/template.d.ts +3 -0
- package/dist/engine/template.js +17 -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 +13 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -1
- 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/{chunk-tpwtpa74.js → chunk-k59f60cp.js} +858 -396
- package/dist/shared/outfitter-193jvzg4.d.ts +5 -0
- package/dist/shared/outfitter-1dd0k853.js +194 -0
- package/dist/shared/outfitter-1dvma85c.js +322 -0
- package/dist/shared/outfitter-1h7k8xxt.js +29 -0
- package/dist/shared/outfitter-2ngep1h2.d.ts +5 -0
- package/dist/shared/outfitter-2np85etz.js +95 -0
- package/dist/shared/outfitter-33w361tc.d.ts +18 -0
- package/dist/shared/outfitter-344t1r38.js +1 -0
- package/dist/shared/outfitter-3weh61w7.d.ts +25 -0
- package/dist/shared/outfitter-4s9meh3j.js +221 -0
- package/dist/shared/outfitter-66b25bj8.js +125 -0
- package/dist/shared/outfitter-6bkqjk86.d.ts +3 -0
- package/dist/shared/outfitter-79vfxt6y.js +269 -0
- package/dist/shared/outfitter-7ha7p61k.d.ts +6 -0
- package/dist/shared/outfitter-7r12fj7f.js +30 -0
- package/dist/shared/outfitter-8y2dfx6n.js +11 -0
- package/dist/shared/outfitter-9x1brcmq.js +184 -0
- package/dist/shared/outfitter-9zqc2njf.js +859 -0
- package/dist/shared/outfitter-a79xrm12.d.ts +17 -0
- package/dist/shared/outfitter-amc4jbs1.d.ts +50 -0
- package/dist/shared/outfitter-ara3djt0.js +73 -0
- package/dist/shared/outfitter-avhm5z6w.js +82 -0
- package/dist/shared/outfitter-bkwpbkr9.d.ts +63 -0
- package/dist/shared/outfitter-bn9c8p2e.js +204 -0
- package/dist/shared/outfitter-bpr28y54.js +70 -0
- package/dist/shared/outfitter-cwq39bv4.d.ts +48 -0
- package/dist/shared/outfitter-d7pq7d0k.js +196 -0
- package/dist/shared/outfitter-dd0btgec.d.ts +40 -0
- package/dist/shared/outfitter-e2zz5wv7.d.ts +51 -0
- package/dist/shared/outfitter-ehp18x1n.js +1 -0
- package/dist/shared/outfitter-gdvm5c0b.d.ts +4 -0
- package/dist/shared/outfitter-h1mnzzd1.d.ts +14 -0
- package/dist/shared/outfitter-hvsaxgcp.js +1 -0
- package/dist/shared/outfitter-hws10ze7.js +532 -0
- package/dist/shared/outfitter-j833sxws.js +61 -0
- package/dist/shared/outfitter-j8yc7294.d.ts +22 -0
- package/dist/shared/outfitter-k112c427.js +21 -0
- package/dist/shared/outfitter-k56rmt24.d.ts +30 -0
- package/dist/shared/outfitter-ksa1pp4t.d.ts +4 -0
- package/dist/shared/outfitter-ksyvwmb5.js +191 -0
- package/dist/shared/outfitter-mdt37hqm.js +4 -0
- package/dist/shared/outfitter-mtbpabf3.js +91 -0
- package/dist/shared/outfitter-mxz69pgy.js +713 -0
- package/dist/shared/outfitter-npemy7ta.d.ts +53 -0
- package/dist/shared/outfitter-npyfbdmc.d.ts +6 -0
- package/dist/shared/outfitter-pyy1zkfh.d.ts +133 -0
- package/dist/shared/outfitter-q9agarmb.js +42 -0
- package/dist/shared/outfitter-qfh36ddg.d.ts +66 -0
- package/dist/shared/outfitter-qn864k6h.js +581 -0
- package/dist/shared/outfitter-rdc5v5ms.js +746 -0
- package/dist/shared/outfitter-sgtq57qr.d.ts +5 -0
- package/dist/shared/outfitter-ttjr95y9.js +98 -0
- package/dist/shared/outfitter-vh4xgb93.js +35 -0
- package/dist/shared/outfitter-yvksv5qb.js +322 -0
- package/dist/shared/outfitter-zwyvewr1.js +36 -0
- package/dist/targets/index.d.ts +4 -0
- package/dist/targets/index.js +29 -0
- package/dist/targets/registry.d.ts +3 -0
- package/dist/targets/registry.js +28 -0
- package/dist/targets/types.d.ts +2 -0
- package/dist/targets/types.js +1 -0
- package/package.json +21 -14
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
buildWorkspaceRootPackageJson,
|
|
4
|
+
detectWorkspaceRoot,
|
|
5
|
+
scaffoldWorkspaceRoot
|
|
6
|
+
} from "../shared/outfitter-2np85etz.js";
|
|
7
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
8
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
9
|
+
export {
|
|
10
|
+
scaffoldWorkspaceRoot,
|
|
11
|
+
detectWorkspaceRoot,
|
|
12
|
+
buildWorkspaceRootPackageJson
|
|
13
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,8 @@ declare function printDoctorResults(result: DoctorResult, options?: {
|
|
|
118
118
|
/**
|
|
119
119
|
* Registers the doctor command with the CLI program.
|
|
120
120
|
*
|
|
121
|
+
* @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
|
|
122
|
+
*
|
|
121
123
|
* @param program - Commander program instance
|
|
122
124
|
*
|
|
123
125
|
* @example
|
|
@@ -239,6 +241,9 @@ declare function runInit(options: InitOptions, presetOverride?: InitPresetId): P
|
|
|
239
241
|
declare function printInitResults(result: InitResult, options?: {
|
|
240
242
|
mode?: OutputMode2;
|
|
241
243
|
}): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
|
|
246
|
+
*/
|
|
242
247
|
declare function initCommand(program: Command2): void;
|
|
243
248
|
import { OutputMode as OutputMode3 } from "@outfitter/cli/types";
|
|
244
249
|
import { Result as Result4 } from "@outfitter/contracts";
|
|
@@ -288,6 +293,8 @@ declare function printMigrateKitResults(result: MigrateKitResult, options?: {
|
|
|
288
293
|
}): Promise<void>;
|
|
289
294
|
/**
|
|
290
295
|
* Register `migrate kit` command directly on Commander.
|
|
296
|
+
*
|
|
297
|
+
* @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
|
|
291
298
|
*/
|
|
292
299
|
declare function migrateKitCommand(program: Command3): void;
|
|
293
300
|
import { Command as Command5 } from "commander";
|
|
@@ -369,6 +376,9 @@ declare function runScaffold(options: ScaffoldOptions): Promise<Result5<Scaffold
|
|
|
369
376
|
declare function printScaffoldResults(result: ScaffoldCommandResult, options?: {
|
|
370
377
|
readonly mode?: OutputMode4;
|
|
371
378
|
}): Promise<void>;
|
|
379
|
+
/**
|
|
380
|
+
* @deprecated Use action-registry CLI wiring via `buildCliCommands(outfitterActions, ...)`.
|
|
381
|
+
*/
|
|
372
382
|
declare function scaffoldCommand(program: Command6): void;
|
|
373
383
|
import { Result as Result6, ValidationError as ValidationError2 } from "@outfitter/contracts";
|
|
374
384
|
/**
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { OutfitterError, Result } from "@outfitter/contracts";
|
|
2
|
+
import { ZodType } from "zod";
|
|
3
|
+
/** A single block entry in the manifest. */
|
|
4
|
+
interface BlockEntry {
|
|
5
|
+
/** Tooling version the block was installed from. */
|
|
6
|
+
installedFrom: string;
|
|
7
|
+
/** ISO 8601 timestamp of when the block was installed or last updated. */
|
|
8
|
+
installedAt: string;
|
|
9
|
+
}
|
|
10
|
+
/** The full manifest structure. */
|
|
11
|
+
interface Manifest {
|
|
12
|
+
/** Manifest format version. Currently always 1. */
|
|
13
|
+
version: 1;
|
|
14
|
+
/** Map of block name to install metadata. */
|
|
15
|
+
blocks: Record<string, BlockEntry>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Schema for a single block entry in the manifest.
|
|
19
|
+
*/
|
|
20
|
+
declare const BlockEntrySchema: ZodType<BlockEntry>;
|
|
21
|
+
/**
|
|
22
|
+
* Schema for the manifest file.
|
|
23
|
+
*/
|
|
24
|
+
declare const ManifestSchema: ZodType<Manifest>;
|
|
25
|
+
/**
|
|
26
|
+
* Reads and validates `.outfitter/manifest.json`.
|
|
27
|
+
*
|
|
28
|
+
* @param cwd - Working directory containing the `.outfitter/` folder
|
|
29
|
+
* @returns The parsed manifest, or `null` if the file does not exist
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const result = await readManifest(process.cwd());
|
|
34
|
+
* if (result.isOk() && result.value) {
|
|
35
|
+
* console.log(result.value.blocks);
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare function readManifest(cwd: string): Promise<Result<Manifest | null, OutfitterError>>;
|
|
40
|
+
/**
|
|
41
|
+
* Writes a manifest to `.outfitter/manifest.json`.
|
|
42
|
+
*
|
|
43
|
+
* Creates the `.outfitter/` directory if it does not exist.
|
|
44
|
+
* Writes atomically via `Bun.write`.
|
|
45
|
+
*
|
|
46
|
+
* @param cwd - Working directory to write the manifest into
|
|
47
|
+
* @param manifest - The manifest data to write
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* await writeManifest(process.cwd(), { version: 1, blocks: {} });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare function writeManifest(cwd: string, manifest: Manifest): Promise<Result<void, OutfitterError>>;
|
|
55
|
+
/**
|
|
56
|
+
* Adds or updates a block entry in the manifest (read-modify-write).
|
|
57
|
+
*
|
|
58
|
+
* If no manifest exists, creates a new one. If the block already exists,
|
|
59
|
+
* updates its `installedFrom` and `installedAt` fields.
|
|
60
|
+
*
|
|
61
|
+
* @param cwd - Working directory containing the project
|
|
62
|
+
* @param blockName - Name of the block to stamp
|
|
63
|
+
* @param toolingVersion - Version of the tooling package the block was installed from
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* await stampBlock(process.cwd(), "biome", "0.2.1");
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
declare function stampBlock(cwd: string, blockName: string, toolingVersion: string): Promise<Result<void, OutfitterError>>;
|
|
71
|
+
export { writeManifest, stampBlock, readManifest, ManifestSchema, Manifest, BlockEntrySchema, BlockEntry };
|
package/dist/manifest.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
BlockEntrySchema,
|
|
4
|
+
ManifestSchema,
|
|
5
|
+
readManifest,
|
|
6
|
+
stampBlock,
|
|
7
|
+
writeManifest
|
|
8
|
+
} from "./shared/outfitter-mtbpabf3.js";
|
|
9
|
+
import"./shared/outfitter-mdt37hqm.js";
|
|
10
|
+
export {
|
|
11
|
+
writeManifest,
|
|
12
|
+
stampBlock,
|
|
13
|
+
readManifest,
|
|
14
|
+
ManifestSchema,
|
|
15
|
+
BlockEntrySchema
|
|
16
|
+
};
|