@sdxc/kit 2026.10.21 → 2026.10.23
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 +84 -4
- package/changelog.jsonl +86 -0
- package/config.schema.json +154 -0
- package/dist/architecture/complexity.d.ts +73 -0
- package/dist/architecture/complexity.js +185 -0
- package/dist/architecture/crap.d.ts +62 -0
- package/dist/architecture/crap.js +121 -0
- package/dist/architecture/graph.d.ts +55 -0
- package/dist/architecture/graph.js +194 -0
- package/dist/architecture/layers.d.ts +29 -0
- package/dist/architecture/layers.js +81 -0
- package/dist/architecture/mermaid.d.ts +20 -0
- package/dist/architecture/mermaid.js +51 -0
- package/dist/cli.js +9 -0
- package/dist/commands/create.js +4 -3
- package/dist/commands/deploy.js +10 -9
- package/dist/commands/destroy.d.ts +1 -1
- package/dist/commands/diagram.d.ts +17 -0
- package/dist/commands/diagram.js +45 -0
- package/dist/commands/fix.d.ts +69 -0
- package/dist/commands/fix.js +102 -0
- package/dist/commands/make.d.ts +71 -2
- package/dist/commands/make.js +46 -0
- package/dist/commands/run.d.ts +15 -11
- package/dist/commands/run.js +21 -16
- package/dist/commands/scaffold.d.ts +1 -1
- package/dist/commands/setup.d.ts +26 -0
- package/dist/commands/setup.js +33 -0
- package/dist/config.d.ts +52 -0
- package/dist/config.js +88 -1
- package/dist/contract.d.ts +52 -3
- package/dist/contract.js +124 -2
- package/dist/dependencies.js +7 -1
- package/dist/deploy/plan.d.ts +5 -0
- package/dist/deploy/plan.js +10 -0
- package/dist/destroy.js +13 -6
- package/dist/diagram.d.ts +32 -0
- package/dist/diagram.js +47 -0
- package/dist/doctor/checks.d.ts +2 -1
- package/dist/doctor/checks.js +24 -1
- package/dist/doctor/complexity.d.ts +13 -0
- package/dist/doctor/complexity.js +52 -0
- package/dist/doctor/crap.d.ts +14 -0
- package/dist/doctor/crap.js +67 -0
- package/dist/doctor/dependencies.d.ts +13 -0
- package/dist/doctor/dependencies.js +42 -0
- package/dist/doctor/duplication.d.ts +19 -0
- package/dist/doctor/duplication.js +106 -0
- package/dist/doctor/fan-out.d.ts +12 -0
- package/dist/doctor/fan-out.js +42 -0
- package/dist/doctor/feature-scatter.d.ts +15 -0
- package/dist/doctor/feature-scatter.js +84 -0
- package/dist/doctor/module-size.d.ts +13 -0
- package/dist/doctor/module-size.js +50 -0
- package/dist/doctor/mutation.d.ts +20 -0
- package/dist/doctor/mutation.js +97 -0
- package/dist/doctor/orphans.d.ts +13 -0
- package/dist/doctor/orphans.js +50 -0
- package/dist/doctor/project.js +8 -5
- package/dist/doctor/result-throws.d.ts +17 -0
- package/dist/doctor/result-throws.js +72 -0
- package/dist/doctor/test-ratio.d.ts +12 -0
- package/dist/doctor/test-ratio.js +31 -0
- package/dist/fix/commands.d.ts +37 -0
- package/dist/fix/commands.js +63 -0
- package/dist/fix/emails.d.ts +21 -0
- package/dist/fix/emails.js +159 -0
- package/dist/fix/env.d.ts +29 -0
- package/dist/fix/env.js +58 -0
- package/dist/fix/index.d.ts +11 -0
- package/dist/fix/index.js +11 -0
- package/dist/fix/models.d.ts +20 -0
- package/dist/fix/models.js +95 -0
- package/dist/lock.js +12 -2
- package/dist/make/binding.d.ts +42 -0
- package/dist/make/binding.js +237 -0
- package/dist/make/imports.js +7 -5
- package/dist/make/schema-diff.js +8 -1
- package/dist/models.js +7 -7
- package/dist/routes/modules.js +8 -5
- package/dist/routes/parse.js +8 -7
- package/dist/routes/routers.js +9 -5
- package/dist/setup/auth.d.ts +12 -0
- package/dist/setup/auth.js +209 -0
- package/dist/setup/billing.d.ts +11 -0
- package/dist/setup/billing.js +116 -0
- package/dist/setup/catalog.d.ts +25 -0
- package/dist/setup/catalog.js +34 -0
- package/dist/setup/credit.d.ts +13 -0
- package/dist/setup/credit.js +21 -0
- package/dist/setup/flags.d.ts +11 -0
- package/dist/setup/flags.js +62 -0
- package/dist/setup/index.d.ts +25 -0
- package/dist/setup/index.js +53 -0
- package/dist/setup/plan.d.ts +38 -0
- package/dist/setup/plan.js +62 -0
- package/dist/testing.js +3 -3
- package/dist/ui/layout.js +1 -1
- package/dist/ui/registry.d.ts +2 -2
- package/dist/upgrade/project.d.ts +2 -2
- package/dist/upgrade/prompt.js +7 -5
- package/package.json +10 -7
- package/registry/ui/attachment.json +2 -2
- package/templates/app/AGENTS.md +14 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The app-layout layers Clean Architecture's dependency rule maps onto: outer kinds may import
|
|
3
|
+
* inner ones, never the reverse, so a model never reaches a controller and a view never pulls a
|
|
4
|
+
* job. Ranks are the only rule; same-rank edges stay allowed.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
/** Higher rank is more inward; an import may only reach a layer at this rank or higher. */
|
|
10
|
+
export const LAYER_RANK = {
|
|
11
|
+
models: 40,
|
|
12
|
+
policies: 30,
|
|
13
|
+
services: 30,
|
|
14
|
+
initializers: 30,
|
|
15
|
+
http: 20,
|
|
16
|
+
jobs: 20,
|
|
17
|
+
mcp: 20,
|
|
18
|
+
emails: 20,
|
|
19
|
+
commands: 20,
|
|
20
|
+
test: 20,
|
|
21
|
+
resources: 10,
|
|
22
|
+
routes: 10,
|
|
23
|
+
bootstrap: 10,
|
|
24
|
+
};
|
|
25
|
+
/** Display order for architecture diagrams, outer first. */
|
|
26
|
+
export const LAYER_ORDER = [
|
|
27
|
+
"bootstrap",
|
|
28
|
+
"routes",
|
|
29
|
+
"resources",
|
|
30
|
+
"http",
|
|
31
|
+
"jobs",
|
|
32
|
+
"mcp",
|
|
33
|
+
"emails",
|
|
34
|
+
"commands",
|
|
35
|
+
"test",
|
|
36
|
+
"initializers",
|
|
37
|
+
"services",
|
|
38
|
+
"policies",
|
|
39
|
+
"models",
|
|
40
|
+
];
|
|
41
|
+
/** Prefixes that assign a path to a layer, most specific first. */
|
|
42
|
+
const LAYER_PREFIXES = [
|
|
43
|
+
["app/http/", "http"],
|
|
44
|
+
["app/jobs/", "jobs"],
|
|
45
|
+
["app/mcp/", "mcp"],
|
|
46
|
+
["app/emails/", "emails"],
|
|
47
|
+
["app/commands/", "commands"],
|
|
48
|
+
["app/initializers/", "initializers"],
|
|
49
|
+
["app/services/", "services"],
|
|
50
|
+
["app/policies/", "policies"],
|
|
51
|
+
["app/models/", "models"],
|
|
52
|
+
["app/test/", "test"],
|
|
53
|
+
["resources/", "resources"],
|
|
54
|
+
["routes/", "routes"],
|
|
55
|
+
["bootstrap/", "bootstrap"],
|
|
56
|
+
];
|
|
57
|
+
/**
|
|
58
|
+
* The layer `path` belongs to, or `null` when the path is outside the ranked kinds (config,
|
|
59
|
+
* database, or a package).
|
|
60
|
+
*
|
|
61
|
+
* @param path - Project-relative path with `/` separators.
|
|
62
|
+
*/
|
|
63
|
+
export function layerOf(path) {
|
|
64
|
+
let normalized = path.split("\\").join("/");
|
|
65
|
+
for (let [prefix, layer] of LAYER_PREFIXES) {
|
|
66
|
+
if (normalized === prefix.slice(0, -1) || normalized.startsWith(prefix))
|
|
67
|
+
return layer;
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Whether an import from `from` to `to` obeys the dependency rule. Unranked endpoints are left
|
|
73
|
+
* alone so config and packages stay free to import.
|
|
74
|
+
*/
|
|
75
|
+
export function allowsDependency(from, to) {
|
|
76
|
+
let source = layerOf(from);
|
|
77
|
+
let target = layerOf(to);
|
|
78
|
+
if (source === null || target === null)
|
|
79
|
+
return true;
|
|
80
|
+
return LAYER_RANK[source] <= LAYER_RANK[target];
|
|
81
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns a {@link ProjectGraph} into Mermaid flowchart source: one node per layer that appears,
|
|
3
|
+
* edges labelled with import counts, and dependency-rule breaches drawn as dashed red links so
|
|
4
|
+
* `@sdxc/diagram` can render the same text the command prints.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { ProjectGraph } from "./graph.js";
|
|
10
|
+
/** Options for {@link toMermaid}. */
|
|
11
|
+
export interface MermaidOptions {
|
|
12
|
+
/** Accessible name passed to {@link toSVG} as `alt`; omitted from the Mermaid text. */
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A `flowchart TB` of the project's layers. Empty projects still produce a valid one-node
|
|
17
|
+
* diagram so `toSVG` and `--json` have something to print. Edges that break the dependency
|
|
18
|
+
* rule are dashed and labelled so they read without Mermaid styling statements.
|
|
19
|
+
*/
|
|
20
|
+
export declare function toMermaid(graph: ProjectGraph, _options?: MermaidOptions): string;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns a {@link ProjectGraph} into Mermaid flowchart source: one node per layer that appears,
|
|
3
|
+
* edges labelled with import counts, and dependency-rule breaches drawn as dashed red links so
|
|
4
|
+
* `@sdxc/diagram` can render the same text the command prints.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import { LAYER_ORDER, layerOf } from "./layers.js";
|
|
10
|
+
/**
|
|
11
|
+
* A `flowchart TB` of the project's layers. Empty projects still produce a valid one-node
|
|
12
|
+
* diagram so `toSVG` and `--json` have something to print. Edges that break the dependency
|
|
13
|
+
* rule are dashed and labelled so they read without Mermaid styling statements.
|
|
14
|
+
*/
|
|
15
|
+
export function toMermaid(graph, _options = {}) {
|
|
16
|
+
let present = new Set();
|
|
17
|
+
for (let edge of graph.layers) {
|
|
18
|
+
present.add(edge.from);
|
|
19
|
+
present.add(edge.to);
|
|
20
|
+
}
|
|
21
|
+
for (let module of graph.modules) {
|
|
22
|
+
let layer = layerOf(module);
|
|
23
|
+
if (layer)
|
|
24
|
+
present.add(layer);
|
|
25
|
+
}
|
|
26
|
+
let nodes = LAYER_ORDER.filter((layer) => present.has(layer));
|
|
27
|
+
if (nodes.length === 0)
|
|
28
|
+
nodes = ["models"];
|
|
29
|
+
let lines = ["flowchart TB"];
|
|
30
|
+
for (let layer of nodes) {
|
|
31
|
+
lines.push(` ${nodeId(layer)}["${escapeLabel(layer)}"]`);
|
|
32
|
+
}
|
|
33
|
+
for (let edge of graph.layers) {
|
|
34
|
+
let label = edge.count === 1 ? "1 import" : `${edge.count} imports`;
|
|
35
|
+
if (edge.allowed) {
|
|
36
|
+
lines.push(` ${nodeId(edge.from)} -->|${escapeLabel(label)}| ${nodeId(edge.to)}`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
lines.push(` ${nodeId(edge.from)} -.->|${escapeLabel(`${label}, breaks rule`)}| ${nodeId(edge.to)}`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return `${lines.join("\n")}\n`;
|
|
43
|
+
}
|
|
44
|
+
/** Stable Mermaid node id for a layer name. */
|
|
45
|
+
function nodeId(layer) {
|
|
46
|
+
return `L_${layer}`;
|
|
47
|
+
}
|
|
48
|
+
/** Mermaid breaks on `"` inside labels; keep labels plain. */
|
|
49
|
+
function escapeLabel(text) {
|
|
50
|
+
return text.replace(/"/g, "'");
|
|
51
|
+
}
|
package/dist/cli.js
CHANGED
|
@@ -34,6 +34,10 @@ export function createSDXC(options = {}) {
|
|
|
34
34
|
cli.map(SDXC_COMMANDS.deploy, lazy(() => import("./commands/deploy.js")));
|
|
35
35
|
cli.map(SDXC_COMMANDS.destroy, lazy(() => import("./commands/destroy.js")));
|
|
36
36
|
cli.map(SDXC_COMMANDS.doctor, lazy(() => import("./commands/doctor.js")));
|
|
37
|
+
cli.map(SDXC_COMMANDS.fix, lazy(() => import("./commands/fix.js").then((module) => ({ default: module.group }))));
|
|
38
|
+
cli.map(SDXC_COMMANDS.fix.env, lazy(() => import("./commands/fix.js").then((module) => ({ default: module.env }))));
|
|
39
|
+
cli.map(SDXC_COMMANDS.fix.models, lazy(() => import("./commands/fix.js").then((module) => ({ default: module.models }))));
|
|
40
|
+
cli.map(SDXC_COMMANDS.fix.emails, lazy(() => import("./commands/fix.js").then((module) => ({ default: module.emails }))));
|
|
37
41
|
cli.map(SDXC_COMMANDS.init, lazy(() => import("./commands/init.js")));
|
|
38
42
|
cli.map(SDXC_COMMANDS.initializers, lazy(() => import("./commands/initializers.js")));
|
|
39
43
|
cli.map(SDXC_COMMANDS.middleware, lazy(() => import("./commands/middleware.js")));
|
|
@@ -41,6 +45,7 @@ export function createSDXC(options = {}) {
|
|
|
41
45
|
cli.map(SDXC_COMMANDS.notes, lazy(() => import("./commands/notes.js")));
|
|
42
46
|
cli.map(SDXC_COMMANDS.schedule, lazy(() => import("./commands/schedule.js")));
|
|
43
47
|
cli.map(SDXC_COMMANDS.stats, lazy(() => import("./commands/stats.js")));
|
|
48
|
+
cli.map(SDXC_COMMANDS.diagram, lazy(() => import("./commands/diagram.js")));
|
|
44
49
|
cli.map(SDXC_COMMANDS.make, lazy(() => import("./commands/make.js").then((module) => ({ default: module.group }))));
|
|
45
50
|
cli.map(SDXC_COMMANDS.make.controller, lazy(() => import("./commands/make.js").then((module) => ({ default: module.controller }))));
|
|
46
51
|
cli.map(SDXC_COMMANDS.make.middleware, lazy(() => import("./commands/make.js").then((module) => ({ default: module.middleware }))));
|
|
@@ -57,9 +62,13 @@ export function createSDXC(options = {}) {
|
|
|
57
62
|
cli.map(SDXC_COMMANDS.make.command, lazy(() => import("./commands/make.js").then((module) => ({ default: module.command }))));
|
|
58
63
|
cli.map(SDXC_COMMANDS.make.test, lazy(() => import("./commands/make.js").then((module) => ({ default: module.test }))));
|
|
59
64
|
cli.map(SDXC_COMMANDS.make.stubs, lazy(() => import("./commands/make.js").then((module) => ({ default: module.stubs }))));
|
|
65
|
+
cli.map(SDXC_COMMANDS.make.secret, lazy(() => import("./commands/make.js").then((module) => ({ default: module.secret }))));
|
|
66
|
+
cli.map(SDXC_COMMANDS.make.binding, lazy(() => import("./commands/make.js").then((module) => ({ default: module.binding }))));
|
|
67
|
+
cli.map(SDXC_COMMANDS.make.do, lazy(() => import("./commands/make.js").then((module) => ({ default: module.durableObject }))));
|
|
60
68
|
cli.map(SDXC_COMMANDS.routes, lazy(() => import("./commands/routes.js")));
|
|
61
69
|
cli.map(SDXC_COMMANDS.scaffold, lazy(() => import("./commands/scaffold.js")));
|
|
62
70
|
cli.map(SDXC_COMMANDS.run, lazy(() => import("./commands/run.js")));
|
|
71
|
+
cli.map(SDXC_COMMANDS.setup, lazy(() => import("./commands/setup.js")));
|
|
63
72
|
cli.map(SDXC_COMMANDS.ui.list, lazy(() => import("./commands/ui/list.js")));
|
|
64
73
|
cli.map(SDXC_COMMANDS.ui.add, lazy(() => import("./commands/ui/add.js")));
|
|
65
74
|
cli.map(SDXC_COMMANDS.ui.diff, lazy(() => import("./commands/ui/diff.js")));
|
package/dist/commands/create.js
CHANGED
|
@@ -72,7 +72,8 @@ async function initializeGit(ctx, wanted, directory, shown) {
|
|
|
72
72
|
ctx.stdout("git is not on the PATH, so no repository was initialized\n");
|
|
73
73
|
return success(undefined);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
let shouldInit = wanted;
|
|
76
|
+
if (shouldInit === undefined) {
|
|
76
77
|
let answer = await ctx.prompt.confirm({
|
|
77
78
|
message: `Initialize a git repository in ${shown}?`,
|
|
78
79
|
default: false,
|
|
@@ -81,9 +82,9 @@ async function initializeGit(ctx, wanted, directory, shown) {
|
|
|
81
82
|
});
|
|
82
83
|
if (isFailure(answer))
|
|
83
84
|
return answer;
|
|
84
|
-
|
|
85
|
+
shouldInit = answer.data;
|
|
85
86
|
}
|
|
86
|
-
if (!
|
|
87
|
+
if (!shouldInit)
|
|
87
88
|
return success(undefined);
|
|
88
89
|
let initialized = await ctx.exec(["git", "init", "--quiet"], {
|
|
89
90
|
cwd: directory,
|
package/dist/commands/deploy.js
CHANGED
|
@@ -11,11 +11,11 @@ import { basename, join } from "node:path";
|
|
|
11
11
|
import { createCommand, ExecError, exit, failure, success, usage } from "@sdxc/cli";
|
|
12
12
|
import { isFailure, isSuccess, wrap } from "@sdxc/result";
|
|
13
13
|
import { SDXC_COMMANDS } from "../contract.js";
|
|
14
|
-
import { deployFailure, formatPlan, isUnknown, migrates, parsePending } from "../deploy/plan.js";
|
|
14
|
+
import { deployFailure, execDetail, formatPlan, isUnknown, migrates, parsePending, } from "../deploy/plan.js";
|
|
15
15
|
import { project } from "../middleware.js";
|
|
16
16
|
import { lockFileAtOrAbove, packageManager } from "../package-manager.js";
|
|
17
17
|
import { readManifest } from "../upgrade/project.js";
|
|
18
|
-
import {
|
|
18
|
+
import { commandLine, projectPath } from "./run.js";
|
|
19
19
|
/**
|
|
20
20
|
* Runs build, `db migrate --remote` and `deploy` in that order and stops at the first failure,
|
|
21
21
|
* whose message says what production now runs. Every remote change waits for a yes: `--yes`, or
|
|
@@ -34,9 +34,10 @@ export default createCommand(SDXC_COMMANDS.deploy, {
|
|
|
34
34
|
return usage("--skip migrate and --skip deploy leave nothing to run in production");
|
|
35
35
|
}
|
|
36
36
|
let root = ctx.project.root;
|
|
37
|
+
let entry = ctx.project.config.run.entry;
|
|
37
38
|
let path = projectPath(root, ctx.env.PATH);
|
|
38
|
-
if (!isSuccess(await wrap(() => stat(join(root,
|
|
39
|
-
return failure(new Error(`${
|
|
39
|
+
if (!isSuccess(await wrap(() => stat(join(root, entry))))) {
|
|
40
|
+
return failure(new Error(`${entry} is missing; sdxc deploy runs the app's db migrate --remote and deploy commands from it`));
|
|
40
41
|
}
|
|
41
42
|
let manifest = await readManifest(root);
|
|
42
43
|
if (isFailure(manifest))
|
|
@@ -61,7 +62,7 @@ export default createCommand(SDXC_COMMANDS.deploy, {
|
|
|
61
62
|
}
|
|
62
63
|
let migrations = { status: "skipped", reason: "--skip migrate" };
|
|
63
64
|
if (!skip.has("migrate")) {
|
|
64
|
-
let listing = await commandLine(root, ["db", "migrate", "--remote", "--pending"]);
|
|
65
|
+
let listing = await commandLine(root, entry, ["db", "migrate", "--remote", "--pending"]);
|
|
65
66
|
if (isFailure(listing))
|
|
66
67
|
return listing;
|
|
67
68
|
let listed = await ctx.exec(listing.data, {
|
|
@@ -79,11 +80,11 @@ export default createCommand(SDXC_COMMANDS.deploy, {
|
|
|
79
80
|
return failure(new Error("The app's command line has no db migrate command; add one that applies production migrations with --remote, or pass --skip migrate"));
|
|
80
81
|
}
|
|
81
82
|
else {
|
|
82
|
-
return failure(new Error(`Listing pending migrations with db migrate --remote --pending failed; nothing was migrated or deployed: ${listed.error
|
|
83
|
+
return failure(new Error(`Listing pending migrations with db migrate --remote --pending failed; nothing was migrated or deployed: ${execDetail(listed.error)}`));
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
if (!skip.has("deploy")) {
|
|
86
|
-
let checking = await commandLine(root, ["deploy", "--dry-run"]);
|
|
87
|
+
let checking = await commandLine(root, entry, ["deploy", "--dry-run"]);
|
|
87
88
|
if (isFailure(checking))
|
|
88
89
|
return checking;
|
|
89
90
|
let checked = await ctx.exec(checking.data, {
|
|
@@ -121,7 +122,7 @@ export default createCommand(SDXC_COMMANDS.deploy, {
|
|
|
121
122
|
return exit(1, "Not confirmed; nothing was migrated or deployed");
|
|
122
123
|
}
|
|
123
124
|
if (migrates(migrations)) {
|
|
124
|
-
let command = await commandLine(root, ["db", "migrate", "--remote"]);
|
|
125
|
+
let command = await commandLine(root, entry, ["db", "migrate", "--remote"]);
|
|
125
126
|
if (isFailure(command))
|
|
126
127
|
return command;
|
|
127
128
|
/** `CI=1` makes `cf` take the yes this run already got instead of asking again. */
|
|
@@ -138,7 +139,7 @@ export default createCommand(SDXC_COMMANDS.deploy, {
|
|
|
138
139
|
ctx.stdout(`${migrated(migrations)}; deploy skipped\n`);
|
|
139
140
|
return success();
|
|
140
141
|
}
|
|
141
|
-
let command = await commandLine(root, ["deploy"]);
|
|
142
|
+
let command = await commandLine(root, entry, ["deploy"]);
|
|
142
143
|
if (isFailure(command))
|
|
143
144
|
return command;
|
|
144
145
|
let deployed = await ctx.exec(command.data, {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
/** Removes what `sdxc make` wrote for one kind and name, after one confirmation. */
|
|
10
10
|
declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<{
|
|
11
|
-
readonly kind: import("@sdxc/cli").Argument<"email" | "command" | "
|
|
11
|
+
readonly kind: import("@sdxc/cli").Argument<"email" | "command" | "model" | "service" | "controller" | "middleware" | "validator" | "job" | "factory" | "initializer" | "mcp">;
|
|
12
12
|
readonly name: import("@sdxc/cli").Argument<string>;
|
|
13
13
|
}, {
|
|
14
14
|
readonly yes: import("@sdxc/cli").Flag<boolean>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sdxc diagram` handler: prints the project's layer import graph as Mermaid, or as JSON for
|
|
3
|
+
* an agent, and optionally writes an SVG through `@sdxc/diagram`.
|
|
4
|
+
*
|
|
5
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
+
* @copyright Sergio Xalambrí 2026
|
|
7
|
+
*/
|
|
8
|
+
/** Builds the architecture diagram and prints Mermaid, JSON, or the SVG path. */
|
|
9
|
+
declare const _default: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
10
|
+
readonly json: import("@sdxc/cli").Flag<boolean>;
|
|
11
|
+
readonly svg: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
12
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
13
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
14
|
+
value: import("../middleware.js").Project;
|
|
15
|
+
property: "project";
|
|
16
|
+
}>]>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sdxc diagram` handler: prints the project's layer import graph as Mermaid, or as JSON for
|
|
3
|
+
* an agent, and optionally writes an SVG through `@sdxc/diagram`.
|
|
4
|
+
*
|
|
5
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
+
* @copyright Sergio Xalambrí 2026
|
|
7
|
+
*/
|
|
8
|
+
import { createCommand, failure, success } from "@sdxc/cli";
|
|
9
|
+
import { isFailure } from "@sdxc/result";
|
|
10
|
+
import { SDXC_COMMANDS } from "../contract.js";
|
|
11
|
+
import { buildDiagram, formatDiagramSummary } from "../diagram.js";
|
|
12
|
+
import { project } from "../middleware.js";
|
|
13
|
+
/** Builds the architecture diagram and prints Mermaid, JSON, or the SVG path. */
|
|
14
|
+
export default createCommand(SDXC_COMMANDS.diagram, {
|
|
15
|
+
middleware: [project()],
|
|
16
|
+
/** Fails only when SVG rendering or writing fails; an empty project still prints a diagram. */
|
|
17
|
+
async handler(ctx) {
|
|
18
|
+
let result = await buildDiagram(ctx.project.root, {
|
|
19
|
+
svg: ctx.flags.svg,
|
|
20
|
+
title: "Architecture",
|
|
21
|
+
});
|
|
22
|
+
if (isFailure(result)) {
|
|
23
|
+
ctx.stderr(`${result.error.message}\n`);
|
|
24
|
+
return failure(result.error);
|
|
25
|
+
}
|
|
26
|
+
if (ctx.flags.json) {
|
|
27
|
+
ctx.stdout(`${JSON.stringify({
|
|
28
|
+
mermaid: result.data.mermaid,
|
|
29
|
+
modules: result.data.graph.modules,
|
|
30
|
+
edges: result.data.graph.edges,
|
|
31
|
+
layers: result.data.graph.layers,
|
|
32
|
+
cycles: result.data.graph.cycles,
|
|
33
|
+
violations: result.data.graph.violations,
|
|
34
|
+
svg: result.data.svgPath,
|
|
35
|
+
}, null, 2)}\n`);
|
|
36
|
+
return success();
|
|
37
|
+
}
|
|
38
|
+
if (result.data.svgPath) {
|
|
39
|
+
ctx.stdout(`${result.data.svgPath}\n`);
|
|
40
|
+
return success();
|
|
41
|
+
}
|
|
42
|
+
ctx.stdout(formatDiagramSummary(result.data.graph));
|
|
43
|
+
return success();
|
|
44
|
+
},
|
|
45
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sdxc fix` handlers: command-shaped repairs, `.env.example` secrets, and model/email
|
|
3
|
+
* registration through the same codemods `make` uses.
|
|
4
|
+
*
|
|
5
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
+
* @copyright Sergio Xalambrí 2026
|
|
7
|
+
*/
|
|
8
|
+
/** `sdxc fix` with no member: command-shaped repairs from doctor. */
|
|
9
|
+
export declare const group: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Group<Omit<{
|
|
10
|
+
readonly description: "Apply doctor repairs the kit can make safely";
|
|
11
|
+
readonly flags: {
|
|
12
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
13
|
+
};
|
|
14
|
+
readonly env: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
15
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
16
|
+
}>;
|
|
17
|
+
readonly models: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
18
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
19
|
+
}>;
|
|
20
|
+
readonly emails: import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
21
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
22
|
+
}>;
|
|
23
|
+
}, "description" | "hidden" | "arguments" | "flags" | "tasks">, Record<never, never>, {
|
|
24
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
25
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
26
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
27
|
+
value: import("../middleware.js").Project;
|
|
28
|
+
property: "project";
|
|
29
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
30
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
31
|
+
value: string;
|
|
32
|
+
property: "packageRoot";
|
|
33
|
+
}>]>;
|
|
34
|
+
/** `sdxc fix env`. */
|
|
35
|
+
export declare const env: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
36
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
37
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
38
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
39
|
+
value: import("../middleware.js").Project;
|
|
40
|
+
property: "project";
|
|
41
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
42
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
43
|
+
value: string;
|
|
44
|
+
property: "packageRoot";
|
|
45
|
+
}>]>;
|
|
46
|
+
/** `sdxc fix models`. */
|
|
47
|
+
export declare const models: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
48
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
49
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
50
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
51
|
+
value: import("../middleware.js").Project;
|
|
52
|
+
property: "project";
|
|
53
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
54
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
55
|
+
value: string;
|
|
56
|
+
property: "packageRoot";
|
|
57
|
+
}>]>;
|
|
58
|
+
/** `sdxc fix emails`. */
|
|
59
|
+
export declare const emails: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<Readonly<Record<string, import("@sdxc/cli").Argument<unknown>>>, {
|
|
60
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
61
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
62
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
63
|
+
value: import("../middleware.js").Project;
|
|
64
|
+
property: "project";
|
|
65
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
66
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
67
|
+
value: string;
|
|
68
|
+
property: "packageRoot";
|
|
69
|
+
}>]>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `sdxc fix` handlers: command-shaped repairs, `.env.example` secrets, and model/email
|
|
3
|
+
* registration through the same codemods `make` uses.
|
|
4
|
+
*
|
|
5
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
+
* @copyright Sergio Xalambrí 2026
|
|
7
|
+
*/
|
|
8
|
+
import { createCommand, success } from "@sdxc/cli";
|
|
9
|
+
import { isFailure } from "@sdxc/result";
|
|
10
|
+
import { SDXC_COMMANDS } from "../contract.js";
|
|
11
|
+
import { fixCommands, fixEmails, fixEnv, fixModels } from "../fix/index.js";
|
|
12
|
+
import { packageRoot, project } from "../middleware.js";
|
|
13
|
+
import { lockFileAtOrAbove, packageManager } from "../package-manager.js";
|
|
14
|
+
import { readManifest } from "../upgrade/project.js";
|
|
15
|
+
/** Middleware every `fix` handler runs behind. */
|
|
16
|
+
const FIX_MIDDLEWARE = [project(), packageRoot()];
|
|
17
|
+
/** `sdxc fix` with no member: command-shaped repairs from doctor. */
|
|
18
|
+
export const group = createCommand(SDXC_COMMANDS.fix, {
|
|
19
|
+
middleware: FIX_MIDDLEWARE,
|
|
20
|
+
async handler(ctx) {
|
|
21
|
+
let read = await readManifest(ctx.project.root);
|
|
22
|
+
if (isFailure(read))
|
|
23
|
+
return read;
|
|
24
|
+
let manager = await packageManager({
|
|
25
|
+
declared: read.data.manifest.packageManager,
|
|
26
|
+
findLockFile: lockFileAtOrAbove(ctx.project.root),
|
|
27
|
+
});
|
|
28
|
+
let fixed = await fixCommands(ctx, {
|
|
29
|
+
root: ctx.project.root,
|
|
30
|
+
packageRoot: ctx.packageRoot,
|
|
31
|
+
manager,
|
|
32
|
+
config: ctx.project.config,
|
|
33
|
+
manifest: read.data.manifest,
|
|
34
|
+
dryRun: ctx.flags.dryRun,
|
|
35
|
+
});
|
|
36
|
+
if (isFailure(fixed))
|
|
37
|
+
return fixed;
|
|
38
|
+
if (fixed.data.length === 0)
|
|
39
|
+
ctx.stdout("Nothing to fix\n");
|
|
40
|
+
return success();
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
/** `sdxc fix env`. */
|
|
44
|
+
export const env = createCommand(SDXC_COMMANDS.fix.env, {
|
|
45
|
+
middleware: FIX_MIDDLEWARE,
|
|
46
|
+
async handler(ctx) {
|
|
47
|
+
let fixed = await fixEnv(ctx.project.root, { dryRun: ctx.flags.dryRun });
|
|
48
|
+
if (isFailure(fixed))
|
|
49
|
+
return fixed;
|
|
50
|
+
if (fixed.data.missing.length === 0) {
|
|
51
|
+
ctx.stdout("Every secret is already in .env.example\n");
|
|
52
|
+
return success();
|
|
53
|
+
}
|
|
54
|
+
if (ctx.flags.dryRun)
|
|
55
|
+
ctx.stdout(fixed.data.diff);
|
|
56
|
+
else
|
|
57
|
+
ctx.stdout(`appended ${fixed.data.missing.join(", ")} to .env.example\n`);
|
|
58
|
+
return success();
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
/** `sdxc fix models`. */
|
|
62
|
+
export const models = createCommand(SDXC_COMMANDS.fix.models, {
|
|
63
|
+
middleware: FIX_MIDDLEWARE,
|
|
64
|
+
async handler(ctx) {
|
|
65
|
+
let fixed = await fixModels(ctx.project.root, { dryRun: ctx.flags.dryRun });
|
|
66
|
+
if (isFailure(fixed))
|
|
67
|
+
return fixed;
|
|
68
|
+
if (fixed.data.length === 0) {
|
|
69
|
+
ctx.stdout("Every model is already registered\n");
|
|
70
|
+
return success();
|
|
71
|
+
}
|
|
72
|
+
for (let row of fixed.data) {
|
|
73
|
+
if (ctx.flags.dryRun)
|
|
74
|
+
for (let diff of row.diffs)
|
|
75
|
+
ctx.stdout(diff);
|
|
76
|
+
else
|
|
77
|
+
ctx.stdout(`registered ${row.file}\n`);
|
|
78
|
+
}
|
|
79
|
+
return success();
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
/** `sdxc fix emails`. */
|
|
83
|
+
export const emails = createCommand(SDXC_COMMANDS.fix.emails, {
|
|
84
|
+
middleware: FIX_MIDDLEWARE,
|
|
85
|
+
async handler(ctx) {
|
|
86
|
+
let fixed = await fixEmails(ctx.project.root, { dryRun: ctx.flags.dryRun });
|
|
87
|
+
if (isFailure(fixed))
|
|
88
|
+
return fixed;
|
|
89
|
+
if (fixed.data.length === 0) {
|
|
90
|
+
ctx.stdout("Every declared email is already mapped\n");
|
|
91
|
+
return success();
|
|
92
|
+
}
|
|
93
|
+
for (let row of fixed.data) {
|
|
94
|
+
if (ctx.flags.dryRun)
|
|
95
|
+
for (let diff of row.diffs)
|
|
96
|
+
ctx.stdout(diff);
|
|
97
|
+
else
|
|
98
|
+
ctx.stdout(`mapped ${row.name} → ${row.template}\n`);
|
|
99
|
+
}
|
|
100
|
+
return success();
|
|
101
|
+
},
|
|
102
|
+
});
|
package/dist/commands/make.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const controller: import("@sdxc/cli").CommandAction<import("@sdxc
|
|
|
14
14
|
readonly path: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
15
15
|
readonly routes: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
16
16
|
readonly resource: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
17
|
-
readonly actions: import("@sdxc/cli").ValueFlag<"index" | "
|
|
17
|
+
readonly actions: import("@sdxc/cli").ValueFlag<"index" | "new" | "all" | "show" | "edit" | "create" | "update" | "destroy", false, true, false>;
|
|
18
18
|
readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
|
|
19
19
|
readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
|
|
20
20
|
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
@@ -257,6 +257,54 @@ export declare const stubs: import("@sdxc/cli").CommandAction<import("@sdxc/cli"
|
|
|
257
257
|
value: string;
|
|
258
258
|
property: "packageRoot";
|
|
259
259
|
}>]>;
|
|
260
|
+
/** `sdxc make secret`. */
|
|
261
|
+
export declare const secret: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<{
|
|
262
|
+
readonly name: import("@sdxc/cli").Argument<string>;
|
|
263
|
+
}, {
|
|
264
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
265
|
+
readonly force: import("@sdxc/cli").Flag<boolean>;
|
|
266
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
267
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
268
|
+
value: import("../middleware.js").Project;
|
|
269
|
+
property: "project";
|
|
270
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
271
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
272
|
+
value: string;
|
|
273
|
+
property: "packageRoot";
|
|
274
|
+
}>]>;
|
|
275
|
+
/** `sdxc make binding`. */
|
|
276
|
+
export declare const binding: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<{
|
|
277
|
+
readonly kind: import("@sdxc/cli").Argument<"secret" | "kv" | "d1" | "r2" | "queue" | "rateLimit" | "sendEmail" | "durableObject">;
|
|
278
|
+
readonly name: import("@sdxc/cli").Argument<string>;
|
|
279
|
+
}, {
|
|
280
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
281
|
+
readonly force: import("@sdxc/cli").Flag<boolean>;
|
|
282
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
283
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
284
|
+
value: import("../middleware.js").Project;
|
|
285
|
+
property: "project";
|
|
286
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
287
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
288
|
+
value: string;
|
|
289
|
+
property: "packageRoot";
|
|
290
|
+
}>]>;
|
|
291
|
+
/** `sdxc make do`. */
|
|
292
|
+
export declare const durableObject: import("@sdxc/cli").CommandAction<import("@sdxc/cli").Command<{
|
|
293
|
+
readonly name: import("@sdxc/cli").Argument<string>;
|
|
294
|
+
}, {
|
|
295
|
+
readonly role: import("@sdxc/cli").ValueFlag<"model" | "service", true, false, false>;
|
|
296
|
+
readonly binding: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
297
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
298
|
+
readonly force: import("@sdxc/cli").Flag<boolean>;
|
|
299
|
+
}>, readonly [import("@sdxc/cli").CommandMiddleware<{
|
|
300
|
+
key: typeof import("../middleware.js").CurrentProject;
|
|
301
|
+
value: import("../middleware.js").Project;
|
|
302
|
+
property: "project";
|
|
303
|
+
}>, import("@sdxc/cli").CommandMiddleware<{
|
|
304
|
+
key: typeof import("../middleware.js").PackageRoot;
|
|
305
|
+
value: string;
|
|
306
|
+
property: "packageRoot";
|
|
307
|
+
}>]>;
|
|
260
308
|
/**
|
|
261
309
|
* `sdxc make` with no kind: the contract asks for the kind and the name on a terminal, and this
|
|
262
310
|
* asks a controller's method, then makes it with every flag of the kind at its default. Without
|
|
@@ -281,7 +329,7 @@ export declare const group: import("@sdxc/cli").CommandAction<import("@sdxc/cli"
|
|
|
281
329
|
readonly path: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
282
330
|
readonly routes: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
283
331
|
readonly resource: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
284
|
-
readonly actions: import("@sdxc/cli").ValueFlag<"index" | "
|
|
332
|
+
readonly actions: import("@sdxc/cli").ValueFlag<"index" | "new" | "all" | "show" | "edit" | "create" | "update" | "destroy", false, true, false>;
|
|
285
333
|
readonly test: import("@sdxc/cli").Flag<boolean | undefined>;
|
|
286
334
|
readonly spec: import("@sdxc/cli").Flag<boolean | undefined>;
|
|
287
335
|
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
@@ -389,6 +437,27 @@ export declare const group: import("@sdxc/cli").CommandAction<import("@sdxc/cli"
|
|
|
389
437
|
readonly stubs: import("@sdxc/cli").Command<{
|
|
390
438
|
readonly kinds: import("@sdxc/cli").Argument<(import("../make/kinds.js").KindName | "scaffold")[]>;
|
|
391
439
|
}, Readonly<Record<string, import("@sdxc/cli").Flag<unknown>>>>;
|
|
440
|
+
readonly secret: import("@sdxc/cli").Command<{
|
|
441
|
+
readonly name: import("@sdxc/cli").Argument<string>;
|
|
442
|
+
}, {
|
|
443
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
444
|
+
readonly force: import("@sdxc/cli").Flag<boolean>;
|
|
445
|
+
}>;
|
|
446
|
+
readonly binding: import("@sdxc/cli").Command<{
|
|
447
|
+
readonly kind: import("@sdxc/cli").Argument<"secret" | "kv" | "d1" | "r2" | "queue" | "rateLimit" | "sendEmail" | "durableObject">;
|
|
448
|
+
readonly name: import("@sdxc/cli").Argument<string>;
|
|
449
|
+
}, {
|
|
450
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
451
|
+
readonly force: import("@sdxc/cli").Flag<boolean>;
|
|
452
|
+
}>;
|
|
453
|
+
readonly do: import("@sdxc/cli").Command<{
|
|
454
|
+
readonly name: import("@sdxc/cli").Argument<string>;
|
|
455
|
+
}, {
|
|
456
|
+
readonly role: import("@sdxc/cli").ValueFlag<"model" | "service", true, false, false>;
|
|
457
|
+
readonly binding: import("@sdxc/cli").ValueFlag<string, false, false, false>;
|
|
458
|
+
readonly dryRun: import("@sdxc/cli").Flag<boolean>;
|
|
459
|
+
readonly force: import("@sdxc/cli").Flag<boolean>;
|
|
460
|
+
}>;
|
|
392
461
|
}, "description" | "hidden" | "arguments" | "flags" | "tasks">, {
|
|
393
462
|
readonly kind: import("@sdxc/cli").Argument<import("../make/kinds.js").KindName>;
|
|
394
463
|
readonly name: import("@sdxc/cli").Argument<string>;
|