@fenglimg/fabric-cli 1.7.0 → 1.8.0-rc.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/dist/{doctor-XP4OQOTX.js → doctor-F52XWWZC.js} +11 -5
- package/dist/index.js +4 -4
- package/dist/{init-WMB3WLXM.js → init-CAZN4S4T.js} +154 -178
- package/dist/{serve-7AXYKBIT.js → serve-466QXQ5Q.js} +14 -2
- package/package.json +5 -7
- package/templates/claude-hooks/{agents-md-init-reminder.cjs → fabric-init-reminder.cjs} +1 -1
- package/templates/claude-skills/fabric-init/SKILL.md +163 -0
- package/templates/codex-skills/fabric-init/SKILL.md +153 -18
- package/templates/skill-source/fabric-init/SOURCE.md +157 -0
- package/templates/skill-source/fabric-init/clients.json +17 -0
- package/templates/claude-skills/agents-md-init/SKILL.md +0 -86
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/commands/doctor.ts
|
|
10
10
|
import { defineCommand } from "citty";
|
|
11
|
-
import { runDoctorFix, runDoctorReport } from "@fenglimg/fabric-server";
|
|
11
|
+
import { checkLockOrThrow, runDoctorFix, runDoctorReport } from "@fenglimg/fabric-server";
|
|
12
12
|
var doctorCommand = defineCommand({
|
|
13
13
|
meta: {
|
|
14
14
|
name: "doctor",
|
|
@@ -33,11 +33,17 @@ var doctorCommand = defineCommand({
|
|
|
33
33
|
type: "boolean",
|
|
34
34
|
description: t("cli.doctor.args.strict.description"),
|
|
35
35
|
default: false
|
|
36
|
+
},
|
|
37
|
+
force: {
|
|
38
|
+
type: "boolean",
|
|
39
|
+
description: t("cli.doctor.args.force.description"),
|
|
40
|
+
default: false
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
43
|
async run({ args }) {
|
|
39
44
|
const workspaceRoot = process.cwd();
|
|
40
45
|
const resolution = resolveDevMode(args.target, workspaceRoot);
|
|
46
|
+
checkLockOrThrow(resolution.target, { force: args.force });
|
|
41
47
|
const fixReport = args.fix === true ? await runDoctorFix(resolution.target) : null;
|
|
42
48
|
const report = fixReport?.report ?? await runDoctorReport(resolution.target);
|
|
43
49
|
if (args.json === true) {
|
|
@@ -59,16 +65,16 @@ function renderHumanReport(report) {
|
|
|
59
65
|
for (const check of report.checks) {
|
|
60
66
|
writeStdout(`${renderStatus(check.status)} ${check.name}: ${check.message}`);
|
|
61
67
|
}
|
|
62
|
-
writeIssueSection("
|
|
63
|
-
writeIssueSection("
|
|
64
|
-
writeIssueSection("
|
|
68
|
+
writeIssueSection(t("doctor.section.fixable"), report.fixable_errors);
|
|
69
|
+
writeIssueSection(t("doctor.section.manual"), report.manual_errors);
|
|
70
|
+
writeIssueSection(t("doctor.section.warnings"), report.warnings);
|
|
65
71
|
}
|
|
66
72
|
function writeIssueSection(title, issues) {
|
|
67
73
|
if (issues.length === 0) {
|
|
68
74
|
return;
|
|
69
75
|
}
|
|
70
76
|
writeStdout("");
|
|
71
|
-
writeStdout(
|
|
77
|
+
writeStdout(title);
|
|
72
78
|
for (const issue of issues) {
|
|
73
79
|
writeStdout(`- ${issue.code}: ${issue.message}`);
|
|
74
80
|
}
|
package/dist/index.js
CHANGED
|
@@ -8,17 +8,17 @@ import { defineCommand, runMain } from "citty";
|
|
|
8
8
|
|
|
9
9
|
// src/commands/index.ts
|
|
10
10
|
var allCommands = {
|
|
11
|
-
init: () => import("./init-
|
|
11
|
+
init: () => import("./init-CAZN4S4T.js").then((module) => module.default),
|
|
12
12
|
scan: () => import("./scan-NNBNGIZG.js").then((module) => module.default),
|
|
13
|
-
serve: () => import("./serve-
|
|
14
|
-
doctor: () => import("./doctor-
|
|
13
|
+
serve: () => import("./serve-466QXQ5Q.js").then((module) => module.default),
|
|
14
|
+
doctor: () => import("./doctor-F52XWWZC.js").then((module) => module.default)
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// src/index.ts
|
|
18
18
|
var main = defineCommand({
|
|
19
19
|
meta: {
|
|
20
20
|
name: "fabric",
|
|
21
|
-
version: "1.
|
|
21
|
+
version: "1.8.0-rc.2",
|
|
22
22
|
description: 'Initialize and manage Fabric projects. Use "fabric init" for one-shot setup.'
|
|
23
23
|
},
|
|
24
24
|
subCommands: allCommands
|