outfitter 0.2.3 → 0.2.5
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/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-b0y0cwkr.js → chunk-tpwtpa74.js} +20 -21
- package/package.json +5 -5
- package/templates/cli/package.json.template +1 -1
- package/templates/cli/src/program.ts.template +11 -3
- package/dist/actions.d.ts +0 -2
- package/dist/actions.js +0 -34
- package/dist/commands/add.d.ts +0 -54
- package/dist/commands/add.js +0 -16
- 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 -13
- package/dist/commands/init.d.ts +0 -7
- package/dist/commands/init.js +0 -31
- package/dist/commands/migrate-kit.d.ts +0 -2
- package/dist/commands/migrate-kit.js +0 -15
- 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 -31
- package/dist/commands/shared-deps.d.ts +0 -36
- package/dist/commands/shared-deps.js +0 -10
- package/dist/commands/update-planner.d.ts +0 -58
- package/dist/commands/update-planner.js +0 -8
- package/dist/commands/update-workspace.d.ts +0 -76
- package/dist/commands/update-workspace.js +0 -16
- package/dist/commands/update.d.ts +0 -113
- package/dist/commands/update.js +0 -21
- package/dist/create/index.d.ts +0 -5
- package/dist/create/index.js +0 -29
- package/dist/create/planner.d.ts +0 -3
- package/dist/create/planner.js +0 -21
- 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 -12
- package/dist/engine/executor.d.ts +0 -3
- package/dist/engine/executor.js +0 -16
- package/dist/engine/index.d.ts +0 -8
- package/dist/engine/index.js +0 -59
- package/dist/engine/names.d.ts +0 -2
- package/dist/engine/names.js +0 -16
- 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 -13
- 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-193jvzg4.d.ts +0 -5
- package/dist/shared/outfitter-1dd0k853.js +0 -194
- package/dist/shared/outfitter-1h7k8xxt.js +0 -29
- package/dist/shared/outfitter-1qwpjt6w.js +0 -125
- package/dist/shared/outfitter-2ngep1h2.d.ts +0 -5
- package/dist/shared/outfitter-2np85etz.js +0 -95
- package/dist/shared/outfitter-33w361tc.d.ts +0 -18
- package/dist/shared/outfitter-344t1r38.js +0 -1
- package/dist/shared/outfitter-3weh61w7.d.ts +0 -25
- package/dist/shared/outfitter-4s9meh3j.js +0 -221
- package/dist/shared/outfitter-6a4bq054.js +0 -322
- package/dist/shared/outfitter-6bkqjk86.d.ts +0 -3
- package/dist/shared/outfitter-6gc3g5wk.js +0 -98
- package/dist/shared/outfitter-7cv5fg1m.js +0 -61
- package/dist/shared/outfitter-7ha7p61k.d.ts +0 -6
- package/dist/shared/outfitter-7r12fj7f.js +0 -30
- package/dist/shared/outfitter-8y2dfx6n.js +0 -11
- package/dist/shared/outfitter-9c8edfsn.js +0 -715
- 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-ara3djt0.js +0 -73
- package/dist/shared/outfitter-avhm5z6w.js +0 -82
- package/dist/shared/outfitter-b5nd42y4.d.ts +0 -45
- package/dist/shared/outfitter-dd0btgec.d.ts +0 -40
- package/dist/shared/outfitter-e2zz5wv7.d.ts +0 -51
- package/dist/shared/outfitter-ehp18x1n.js +0 -1
- package/dist/shared/outfitter-fnsmx3xg.js +0 -750
- package/dist/shared/outfitter-gdvm5c0b.d.ts +0 -4
- package/dist/shared/outfitter-gp4v5gkf.js +0 -322
- package/dist/shared/outfitter-h1mnzzd1.d.ts +0 -14
- package/dist/shared/outfitter-hpymx4m9.js +0 -184
- package/dist/shared/outfitter-hvsaxgcp.js +0 -1
- package/dist/shared/outfitter-j8yc7294.d.ts +0 -22
- package/dist/shared/outfitter-jyxwznk1.js +0 -404
- package/dist/shared/outfitter-k112c427.js +0 -21
- package/dist/shared/outfitter-k56rmt24.d.ts +0 -30
- package/dist/shared/outfitter-ksa1pp4t.d.ts +0 -4
- package/dist/shared/outfitter-mdt37hqm.js +0 -4
- package/dist/shared/outfitter-mtbpabf3.js +0 -91
- package/dist/shared/outfitter-nm4m0v6x.d.ts +0 -131
- package/dist/shared/outfitter-nmeecf1b.js +0 -531
- package/dist/shared/outfitter-npyfbdmc.d.ts +0 -6
- package/dist/shared/outfitter-pxt58tsq.js +0 -582
- package/dist/shared/outfitter-q9agarmb.js +0 -42
- package/dist/shared/outfitter-qfgj5xpq.js +0 -70
- package/dist/shared/outfitter-qfh36ddg.d.ts +0 -66
- package/dist/shared/outfitter-s6k8y2p4.js +0 -269
- package/dist/shared/outfitter-sftf1s26.js +0 -199
- package/dist/shared/outfitter-sg7ncy4a.d.ts +0 -51
- package/dist/shared/outfitter-sgtq57qr.d.ts +0 -5
- package/dist/shared/outfitter-txre6cdn.d.ts +0 -60
- package/dist/shared/outfitter-vh4xgb93.js +0 -35
- package/dist/shared/outfitter-ya44h1km.js +0 -191
- 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/dist/cli.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createRepoCommand,
|
|
4
4
|
outfitterActions
|
|
5
|
-
} from "./shared/chunk-
|
|
5
|
+
} from "./shared/chunk-tpwtpa74.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
8
8
|
import { readFileSync } from "node:fs";
|
|
9
|
+
import { exitWithError } from "@outfitter/cli";
|
|
9
10
|
import { buildCliCommands } from "@outfitter/cli/actions";
|
|
10
11
|
import { createCLI } from "@outfitter/cli/command";
|
|
11
|
-
import { exitWithError } from "@outfitter/cli/output";
|
|
12
12
|
import { createContext, generateRequestId } from "@outfitter/contracts";
|
|
13
13
|
import { createOutfitterLoggerFactory } from "@outfitter/logging";
|
|
14
14
|
function createProgram() {
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
4
4
|
// src/commands/doctor.ts
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { join, resolve } from "node:path";
|
|
7
|
-
import { output } from "@outfitter/cli
|
|
7
|
+
import { output } from "@outfitter/cli";
|
|
8
8
|
import { createTheme } from "@outfitter/tui/render";
|
|
9
9
|
|
|
10
10
|
// src/output-mode.ts
|
|
@@ -427,7 +427,7 @@ import {
|
|
|
427
427
|
select,
|
|
428
428
|
text
|
|
429
429
|
} from "@clack/prompts";
|
|
430
|
-
import { exitWithError, output as output4 } from "@outfitter/cli
|
|
430
|
+
import { exitWithError, output as output4 } from "@outfitter/cli";
|
|
431
431
|
import { Result as Result10 } from "@outfitter/contracts";
|
|
432
432
|
|
|
433
433
|
// src/engine/collector.ts
|
|
@@ -470,7 +470,7 @@ import {
|
|
|
470
470
|
} from "node:fs";
|
|
471
471
|
import { dirname, join as join3, resolve as resolve2 } from "node:path";
|
|
472
472
|
import { fileURLToPath } from "node:url";
|
|
473
|
-
import { output as output2 } from "@outfitter/cli
|
|
473
|
+
import { output as output2 } from "@outfitter/cli";
|
|
474
474
|
import { Result as Result3 } from "@outfitter/contracts";
|
|
475
475
|
import { RegistrySchema } from "@outfitter/tooling";
|
|
476
476
|
|
|
@@ -1584,7 +1584,7 @@ async function runPostScaffold(options, collector) {
|
|
|
1584
1584
|
|
|
1585
1585
|
// src/engine/render-plan.ts
|
|
1586
1586
|
import { relative as relative2 } from "node:path";
|
|
1587
|
-
import { output as output3 } from "@outfitter/cli
|
|
1587
|
+
import { output as output3 } from "@outfitter/cli";
|
|
1588
1588
|
async function renderOperationPlan(collector, options) {
|
|
1589
1589
|
const structuredMode = resolveStructuredOutputMode(options?.mode);
|
|
1590
1590
|
if (structuredMode) {
|
|
@@ -2219,7 +2219,7 @@ import {
|
|
|
2219
2219
|
writeFileSync as writeFileSync5
|
|
2220
2220
|
} from "node:fs";
|
|
2221
2221
|
import { basename as basename3, dirname as dirname4, join as join9, relative as relative3, resolve as resolve5 } from "node:path";
|
|
2222
|
-
import { output as output5 } from "@outfitter/cli
|
|
2222
|
+
import { output as output5 } from "@outfitter/cli";
|
|
2223
2223
|
import { Result as Result11 } from "@outfitter/contracts";
|
|
2224
2224
|
import ts from "typescript";
|
|
2225
2225
|
var FOUNDATION_IMPORT_MAP = {
|
|
@@ -2932,7 +2932,7 @@ import {
|
|
|
2932
2932
|
writeFileSync as writeFileSync6
|
|
2933
2933
|
} from "node:fs";
|
|
2934
2934
|
import { basename as basename4, dirname as dirname5, join as join10, resolve as resolve6 } from "node:path";
|
|
2935
|
-
import { exitWithError as exitWithError2, output as output6 } from "@outfitter/cli
|
|
2935
|
+
import { exitWithError as exitWithError2, output as output6 } from "@outfitter/cli";
|
|
2936
2936
|
import { Result as Result12 } from "@outfitter/contracts";
|
|
2937
2937
|
class ScaffoldCommandError extends Error {
|
|
2938
2938
|
_tag = "ScaffoldCommandError";
|
|
@@ -3420,7 +3420,8 @@ function scaffoldCommand(program) {
|
|
|
3420
3420
|
|
|
3421
3421
|
// src/actions.ts
|
|
3422
3422
|
import { resolve as resolve10 } from "node:path";
|
|
3423
|
-
import { output as output10 } from "@outfitter/cli
|
|
3423
|
+
import { output as output10 } from "@outfitter/cli";
|
|
3424
|
+
import { cwdPreset, verbosePreset } from "@outfitter/cli/flags";
|
|
3424
3425
|
import {
|
|
3425
3426
|
createActionRegistry,
|
|
3426
3427
|
defineAction,
|
|
@@ -3433,7 +3434,7 @@ import { z as z2 } from "zod";
|
|
|
3433
3434
|
import { existsSync as existsSync10, readFileSync as readFileSync8 } from "node:fs";
|
|
3434
3435
|
import { dirname as dirname6, join as join11, resolve as resolve7 } from "node:path";
|
|
3435
3436
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
3436
|
-
import { output as output7 } from "@outfitter/cli
|
|
3437
|
+
import { output as output7 } from "@outfitter/cli";
|
|
3437
3438
|
import { Result as Result13 } from "@outfitter/contracts";
|
|
3438
3439
|
import { RegistrySchema as RegistrySchema2 } from "@outfitter/tooling";
|
|
3439
3440
|
import { createTheme as createTheme2 } from "@outfitter/tui/render";
|
|
@@ -3744,7 +3745,7 @@ async function printCheckResults(result, options) {
|
|
|
3744
3745
|
|
|
3745
3746
|
// src/commands/demo.ts
|
|
3746
3747
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
3747
|
-
import { output as output8 } from "@outfitter/cli
|
|
3748
|
+
import { output as output8 } from "@outfitter/cli";
|
|
3748
3749
|
import {
|
|
3749
3750
|
getPrimitiveIds,
|
|
3750
3751
|
isPrimitiveId,
|
|
@@ -3843,7 +3844,7 @@ async function runDemo(options) {
|
|
|
3843
3844
|
// src/commands/update.ts
|
|
3844
3845
|
import { existsSync as existsSync12, readFileSync as readFileSync10 } from "node:fs";
|
|
3845
3846
|
import { join as join13, resolve as resolve9 } from "node:path";
|
|
3846
|
-
import { output as output9 } from "@outfitter/cli
|
|
3847
|
+
import { output as output9 } from "@outfitter/cli";
|
|
3847
3848
|
import { InternalError as InternalError3, Result as Result15 } from "@outfitter/contracts";
|
|
3848
3849
|
import { createTheme as createTheme3 } from "@outfitter/tui/render";
|
|
3849
3850
|
|
|
@@ -5134,6 +5135,9 @@ var checkInputSchema = z2.object({
|
|
|
5134
5135
|
ci: z2.boolean(),
|
|
5135
5136
|
outputMode: outputModeSchema
|
|
5136
5137
|
});
|
|
5138
|
+
var checkVerbose = verbosePreset();
|
|
5139
|
+
var checkCwd = cwdPreset();
|
|
5140
|
+
var checkVerboseOptions = checkVerbose.options.map((option) => option.flags === "-v, --verbose" ? { ...option, description: "Show diffs for drifted files" } : option);
|
|
5137
5141
|
var checkAction = defineAction({
|
|
5138
5142
|
id: "check",
|
|
5139
5143
|
description: "Compare local config blocks against the registry for drift detection",
|
|
@@ -5143,11 +5147,7 @@ var checkAction = defineAction({
|
|
|
5143
5147
|
command: "check",
|
|
5144
5148
|
description: "Compare local config blocks against the registry for drift detection",
|
|
5145
5149
|
options: [
|
|
5146
|
-
|
|
5147
|
-
flags: "-v, --verbose",
|
|
5148
|
-
description: "Show diffs for drifted files",
|
|
5149
|
-
defaultValue: false
|
|
5150
|
-
},
|
|
5150
|
+
...checkVerboseOptions,
|
|
5151
5151
|
{
|
|
5152
5152
|
flags: "-b, --block <name>",
|
|
5153
5153
|
description: "Check a specific block only"
|
|
@@ -5157,18 +5157,17 @@ var checkAction = defineAction({
|
|
|
5157
5157
|
description: "Machine-oriented output for CI",
|
|
5158
5158
|
defaultValue: false
|
|
5159
5159
|
},
|
|
5160
|
-
|
|
5161
|
-
flags: "--cwd <path>",
|
|
5162
|
-
description: "Working directory (defaults to current directory)"
|
|
5163
|
-
}
|
|
5160
|
+
...checkCwd.options
|
|
5164
5161
|
],
|
|
5165
5162
|
mapInput: (context) => {
|
|
5166
5163
|
const outputMode = resolveOutputModeFromContext(context.flags);
|
|
5167
|
-
const
|
|
5164
|
+
const { verbose } = checkVerbose.resolve(context.flags);
|
|
5165
|
+
const { cwd: rawCwd } = checkCwd.resolve(context.flags);
|
|
5166
|
+
const cwd = resolve10(process.cwd(), rawCwd);
|
|
5168
5167
|
const block = resolveStringFlag(context.flags["block"]);
|
|
5169
5168
|
return {
|
|
5170
5169
|
cwd,
|
|
5171
|
-
verbose
|
|
5170
|
+
verbose,
|
|
5172
5171
|
...block !== undefined ? { block } : {},
|
|
5173
5172
|
ci: Boolean(context.flags["ci"]),
|
|
5174
5173
|
outputMode
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "outfitter",
|
|
3
3
|
"description": "Outfitter umbrella CLI for scaffolding and project management",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"test:watch": "bun test --watch",
|
|
230
230
|
"lint": "biome lint ./src",
|
|
231
231
|
"lint:fix": "biome lint --write ./src",
|
|
232
|
-
"pretypecheck": "bun run --filter @outfitter/logging build && bun run --filter @outfitter/cli build",
|
|
232
|
+
"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)",
|
|
233
233
|
"typecheck": "tsc --noEmit",
|
|
234
234
|
"sync:templates": "bun run ../../scripts/sync-templates.ts",
|
|
235
235
|
"prepack": "bun run sync:templates",
|
|
@@ -237,10 +237,10 @@
|
|
|
237
237
|
},
|
|
238
238
|
"dependencies": {
|
|
239
239
|
"@clack/prompts": "^0.10.0",
|
|
240
|
-
"@outfitter/cli": "0.
|
|
240
|
+
"@outfitter/cli": "0.5.0",
|
|
241
241
|
"@outfitter/tui": "0.2.0",
|
|
242
|
-
"@outfitter/config": "0.3.
|
|
243
|
-
"@outfitter/contracts": "0.
|
|
242
|
+
"@outfitter/config": "0.3.2",
|
|
243
|
+
"@outfitter/contracts": "0.4.0",
|
|
244
244
|
"@outfitter/docs": "0.1.1",
|
|
245
245
|
"@outfitter/logging": "0.4.0",
|
|
246
246
|
"@outfitter/tooling": "0.2.3",
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* {{projectName}} - CLI program definition
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { command, createCLI } from "@outfitter/cli/command";
|
|
6
|
+
import { verbosePreset } from "@outfitter/cli/flags";
|
|
6
7
|
import { createLogger } from "@outfitter/logging";
|
|
7
8
|
|
|
8
9
|
const logger = createLogger({ name: "{{binName}}" });
|
|
@@ -13,11 +14,18 @@ export const program = createCLI({
|
|
|
13
14
|
description: "{{description}}",
|
|
14
15
|
});
|
|
15
16
|
|
|
17
|
+
const verbose = verbosePreset();
|
|
18
|
+
|
|
16
19
|
program.register(
|
|
17
20
|
command("hello [name]")
|
|
18
21
|
.description("Say hello")
|
|
19
|
-
.
|
|
22
|
+
.preset(verbose)
|
|
23
|
+
.action<{ verbose: boolean }>(async ({ args, flags }) => {
|
|
24
|
+
const { verbose: isVerbose } = verbose.resolve(flags);
|
|
20
25
|
const name = args[0] ?? "World";
|
|
21
|
-
logger.info`Hello, ${name}
|
|
26
|
+
logger.info(`Hello, ${name}!`);
|
|
27
|
+
if (isVerbose) {
|
|
28
|
+
logger.debug("Running in verbose mode");
|
|
29
|
+
}
|
|
22
30
|
}),
|
|
23
31
|
);
|
package/dist/actions.d.ts
DELETED
package/dist/actions.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
outfitterActions
|
|
4
|
-
} from "./shared/outfitter-fnsmx3xg.js";
|
|
5
|
-
import"./shared/outfitter-9c8edfsn.js";
|
|
6
|
-
import"./shared/outfitter-nmeecf1b.js";
|
|
7
|
-
import"./shared/outfitter-pxt58tsq.js";
|
|
8
|
-
import"./shared/outfitter-ehp18x1n.js";
|
|
9
|
-
import"./shared/outfitter-1dd0k853.js";
|
|
10
|
-
import"./shared/outfitter-jyxwznk1.js";
|
|
11
|
-
import"./shared/outfitter-qfgj5xpq.js";
|
|
12
|
-
import"./shared/outfitter-sftf1s26.js";
|
|
13
|
-
import"./shared/outfitter-6a4bq054.js";
|
|
14
|
-
import"./shared/outfitter-ya44h1km.js";
|
|
15
|
-
import"./shared/outfitter-gp4v5gkf.js";
|
|
16
|
-
import"./shared/outfitter-4s9meh3j.js";
|
|
17
|
-
import"./shared/outfitter-344t1r38.js";
|
|
18
|
-
import"./shared/outfitter-2np85etz.js";
|
|
19
|
-
import"./shared/outfitter-q9agarmb.js";
|
|
20
|
-
import"./shared/outfitter-1qwpjt6w.js";
|
|
21
|
-
import"./shared/outfitter-9x1brcmq.js";
|
|
22
|
-
import"./shared/outfitter-7cv5fg1m.js";
|
|
23
|
-
import"./shared/outfitter-s6k8y2p4.js";
|
|
24
|
-
import"./shared/outfitter-mtbpabf3.js";
|
|
25
|
-
import"./shared/outfitter-6gc3g5wk.js";
|
|
26
|
-
import"./shared/outfitter-7r12fj7f.js";
|
|
27
|
-
import"./shared/outfitter-ara3djt0.js";
|
|
28
|
-
import"./shared/outfitter-k112c427.js";
|
|
29
|
-
import"./shared/outfitter-8y2dfx6n.js";
|
|
30
|
-
import"./shared/outfitter-1h7k8xxt.js";
|
|
31
|
-
import"./shared/outfitter-mdt37hqm.js";
|
|
32
|
-
export {
|
|
33
|
-
outfitterActions
|
|
34
|
-
};
|
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
|
-
/** Overwrite existing files */
|
|
11
|
-
readonly force: boolean;
|
|
12
|
-
/** Show what would be done without making changes */
|
|
13
|
-
readonly dryRun: boolean;
|
|
14
|
-
/** Working directory (defaults to cwd) */
|
|
15
|
-
readonly cwd?: string;
|
|
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-s6k8y2p4.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
|
-
};
|
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
|
-
/** Working directory to check. */
|
|
8
|
-
readonly cwd: string;
|
|
9
|
-
/** Show diff information for drifted files. */
|
|
10
|
-
readonly verbose?: boolean;
|
|
11
|
-
/** Check a specific block only. */
|
|
12
|
-
readonly block?: string;
|
|
13
|
-
/** Machine-oriented output for CI. */
|
|
14
|
-
readonly ci?: boolean;
|
|
15
|
-
/** Output mode override. */
|
|
16
|
-
readonly outputMode?: OutputMode;
|
|
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
|
-
/** Block name. */
|
|
32
|
-
readonly name: string;
|
|
33
|
-
/** Comparison result. */
|
|
34
|
-
readonly status: "current" | "drifted" | "missing";
|
|
35
|
-
/** Tooling version the block was installed from. */
|
|
36
|
-
readonly installedFrom?: string;
|
|
37
|
-
/** Current tooling version providing the registry. */
|
|
38
|
-
readonly currentToolingVersion?: string;
|
|
39
|
-
/** Drifted file details (populated when verbose is true). */
|
|
40
|
-
readonly driftedFiles?: DriftedFileInfo[];
|
|
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 checked. */
|
|
49
|
-
readonly totalChecked: number;
|
|
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
|
-
}
|
|
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-gp4v5gkf.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";
|
|
2
|
-
/**
|
|
3
|
-
* Options for forwarding to the demo CLI.
|
|
4
|
-
*/
|
|
5
|
-
interface DemoOptions {
|
|
6
|
-
readonly section?: string | undefined;
|
|
7
|
-
readonly list?: boolean | undefined;
|
|
8
|
-
readonly animate?: boolean | undefined;
|
|
9
|
-
readonly outputMode: CliOutputMode;
|
|
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-dd0btgec";
|
|
2
|
-
export { loadDocsModule, ExecuteSyncCommandOptions, ExecuteExportCommandOptions, ExecuteCheckCommandOptions, DocsExportTarget, DocsCommandIo, CreateDocsCommandOptions };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { BunVersionCheck, CheckResult, ConfigFilesCheck, DependenciesCheck, DirectoriesCheck, DoctorOptions, DoctorResult, DoctorSummary, PackageJsonCheck, doctorCommand, printDoctorResults, runDoctor } from "../shared/outfitter-nm4m0v6x";
|
|
2
|
-
export { runDoctor, printDoctorResults, doctorCommand, PackageJsonCheck, DoctorSummary, DoctorResult, DoctorOptions, DirectoriesCheck, DependenciesCheck, ConfigFilesCheck, CheckResult, BunVersionCheck };
|
package/dist/commands/doctor.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
doctorCommand,
|
|
4
|
-
printDoctorResults,
|
|
5
|
-
runDoctor
|
|
6
|
-
} from "../shared/outfitter-sftf1s26.js";
|
|
7
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
8
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
9
|
-
export {
|
|
10
|
-
runDoctor,
|
|
11
|
-
printDoctorResults,
|
|
12
|
-
doctorCommand
|
|
13
|
-
};
|
package/dist/commands/init.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InitError, InitOptions, InitPresetId, InitResult, InitStructure, initCommand, printInitResults, runInit } from "../shared/outfitter-txre6cdn";
|
|
2
|
-
import "../shared/outfitter-y784nh31";
|
|
3
|
-
import "../shared/outfitter-33w361tc";
|
|
4
|
-
import "../shared/outfitter-k56rmt24";
|
|
5
|
-
import "../shared/outfitter-3weh61w7";
|
|
6
|
-
import "../shared/outfitter-amc4jbs1";
|
|
7
|
-
export { runInit, printInitResults, initCommand, InitStructure, InitResult, InitPresetId, InitOptions, InitError };
|
package/dist/commands/init.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
InitError,
|
|
4
|
-
initCommand,
|
|
5
|
-
printInitResults,
|
|
6
|
-
runInit
|
|
7
|
-
} from "../shared/outfitter-pxt58tsq.js";
|
|
8
|
-
import"../shared/outfitter-ehp18x1n.js";
|
|
9
|
-
import"../shared/outfitter-1dd0k853.js";
|
|
10
|
-
import"../shared/outfitter-4s9meh3j.js";
|
|
11
|
-
import"../shared/outfitter-344t1r38.js";
|
|
12
|
-
import"../shared/outfitter-2np85etz.js";
|
|
13
|
-
import"../shared/outfitter-q9agarmb.js";
|
|
14
|
-
import"../shared/outfitter-1qwpjt6w.js";
|
|
15
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
16
|
-
import"../shared/outfitter-7cv5fg1m.js";
|
|
17
|
-
import"../shared/outfitter-s6k8y2p4.js";
|
|
18
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
19
|
-
import"../shared/outfitter-6gc3g5wk.js";
|
|
20
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
21
|
-
import"../shared/outfitter-ara3djt0.js";
|
|
22
|
-
import"../shared/outfitter-k112c427.js";
|
|
23
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
24
|
-
import"../shared/outfitter-1h7k8xxt.js";
|
|
25
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
26
|
-
export {
|
|
27
|
-
runInit,
|
|
28
|
-
printInitResults,
|
|
29
|
-
initCommand,
|
|
30
|
-
InitError
|
|
31
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { MigrateKitError, MigrateKitOptions, MigrateKitResult, migrateKitCommand, printMigrateKitResults, runMigrateKit } from "../shared/outfitter-sg7ncy4a";
|
|
2
|
-
export { runMigrateKit, printMigrateKitResults, migrateKitCommand, MigrateKitResult, MigrateKitOptions, MigrateKitError };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
MigrateKitError,
|
|
4
|
-
migrateKitCommand,
|
|
5
|
-
printMigrateKitResults,
|
|
6
|
-
runMigrateKit
|
|
7
|
-
} from "../shared/outfitter-9c8edfsn.js";
|
|
8
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
10
|
-
export {
|
|
11
|
-
runMigrateKit,
|
|
12
|
-
printMigrateKitResults,
|
|
13
|
-
migrateKitCommand,
|
|
14
|
-
MigrateKitError
|
|
15
|
-
};
|
package/dist/commands/repo.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { CreateRepoCommandOptions, RepoCheckSubject, RepoCommandIo, RepoToolingInvocation, createRepoCommand } from "../shared/outfitter-j8yc7294";
|
|
2
|
-
import "../shared/outfitter-dd0btgec";
|
|
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-b5nd42y4";
|
|
2
|
-
import "../shared/outfitter-3weh61w7";
|
|
3
|
-
import "../shared/outfitter-amc4jbs1";
|
|
4
|
-
export { scaffoldCommand, runScaffold, printScaffoldResults, ScaffoldOptions, ScaffoldCommandResult, ScaffoldCommandError };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ScaffoldCommandError,
|
|
4
|
-
printScaffoldResults,
|
|
5
|
-
runScaffold,
|
|
6
|
-
scaffoldCommand
|
|
7
|
-
} from "../shared/outfitter-nmeecf1b.js";
|
|
8
|
-
import"../shared/outfitter-ehp18x1n.js";
|
|
9
|
-
import"../shared/outfitter-1dd0k853.js";
|
|
10
|
-
import"../shared/outfitter-4s9meh3j.js";
|
|
11
|
-
import"../shared/outfitter-344t1r38.js";
|
|
12
|
-
import"../shared/outfitter-2np85etz.js";
|
|
13
|
-
import"../shared/outfitter-q9agarmb.js";
|
|
14
|
-
import"../shared/outfitter-1qwpjt6w.js";
|
|
15
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
16
|
-
import"../shared/outfitter-7cv5fg1m.js";
|
|
17
|
-
import"../shared/outfitter-s6k8y2p4.js";
|
|
18
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
19
|
-
import"../shared/outfitter-6gc3g5wk.js";
|
|
20
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
21
|
-
import"../shared/outfitter-ara3djt0.js";
|
|
22
|
-
import"../shared/outfitter-k112c427.js";
|
|
23
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
24
|
-
import"../shared/outfitter-1h7k8xxt.js";
|
|
25
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
26
|
-
export {
|
|
27
|
-
scaffoldCommand,
|
|
28
|
-
runScaffold,
|
|
29
|
-
printScaffoldResults,
|
|
30
|
-
ScaffoldCommandError
|
|
31
|
-
};
|