@fenglimg/fabric-cli 1.8.0-rc.2 → 1.8.0-rc.3
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/index.js
CHANGED
|
@@ -8,7 +8,7 @@ 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-7EYGUJNJ.js").then((module) => module.default),
|
|
12
12
|
scan: () => import("./scan-NNBNGIZG.js").then((module) => module.default),
|
|
13
13
|
serve: () => import("./serve-466QXQ5Q.js").then((module) => module.default),
|
|
14
14
|
doctor: () => import("./doctor-F52XWWZC.js").then((module) => module.default)
|
|
@@ -18,7 +18,7 @@ var allCommands = {
|
|
|
18
18
|
var main = defineCommand({
|
|
19
19
|
meta: {
|
|
20
20
|
name: "fabric",
|
|
21
|
-
version: "1.8.0-rc.
|
|
21
|
+
version: "1.8.0-rc.3",
|
|
22
22
|
description: 'Initialize and manage Fabric projects. Use "fabric init" for one-shot setup.'
|
|
23
23
|
},
|
|
24
24
|
subCommands: allCommands
|
|
@@ -463,7 +463,7 @@ function detectClientSupports(workspaceRoot, fabricConfig = {}) {
|
|
|
463
463
|
},
|
|
464
464
|
installedCapabilities: {
|
|
465
465
|
hook: existsSync5(join5(workspaceRoot, ".codex", "hooks.json")),
|
|
466
|
-
skill: existsSync5(join5(workspaceRoot, ".
|
|
466
|
+
skill: existsSync5(join5(workspaceRoot, ".codex", "skills", "fabric-init", "SKILL.md"))
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
];
|
|
@@ -1992,7 +1992,7 @@ function readProjectName(target) {
|
|
|
1992
1992
|
return basename(target);
|
|
1993
1993
|
}
|
|
1994
1994
|
function getCliVersion() {
|
|
1995
|
-
return true ? "1.8.0-rc.
|
|
1995
|
+
return true ? "1.8.0-rc.3" : "unknown";
|
|
1996
1996
|
}
|
|
1997
1997
|
function sortRecord(record) {
|
|
1998
1998
|
return Object.fromEntries(Object.entries(record).sort(([left], [right]) => left.localeCompare(right)));
|
|
@@ -2247,7 +2247,7 @@ async function buildInitFabricPlan(target, options) {
|
|
|
2247
2247
|
const rulesDir = join8(fabricDir, "rules");
|
|
2248
2248
|
const eventsPath = join8(fabricDir, "events.jsonl");
|
|
2249
2249
|
const claudeSkillPath = join8(target, ".claude", "skills", "fabric-init", "SKILL.md");
|
|
2250
|
-
const codexSkillPath = join8(target, ".
|
|
2250
|
+
const codexSkillPath = join8(target, ".codex", "skills", "fabric-init", "SKILL.md");
|
|
2251
2251
|
const codexSessionStartHookPath = join8(target, ".codex", "hooks", "fabric-session-start.cjs");
|
|
2252
2252
|
const codexStopHookPath = join8(target, ".codex", "hooks", "fabric-stop-reminder.cjs");
|
|
2253
2253
|
const codexHooksConfigPath = join8(target, ".codex", "hooks.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fenglimg/fabric-cli",
|
|
3
|
-
"version": "1.8.0-rc.
|
|
3
|
+
"version": "1.8.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"fab": "dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"tree-sitter-javascript": "^0.25.0",
|
|
21
21
|
"tree-sitter-typescript": "^0.23.2",
|
|
22
22
|
"web-tree-sitter": "^0.26.8",
|
|
23
|
-
"@fenglimg/fabric-server": "1.8.0-rc.
|
|
24
|
-
"@fenglimg/fabric-shared": "1.8.0-rc.
|
|
23
|
+
"@fenglimg/fabric-server": "1.8.0-rc.3",
|
|
24
|
+
"@fenglimg/fabric-shared": "1.8.0-rc.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.15.0",
|
|
@@ -13,7 +13,7 @@ process.stdout.write(
|
|
|
13
13
|
JSON.stringify({
|
|
14
14
|
hookSpecificOutput: {
|
|
15
15
|
additionalContext:
|
|
16
|
-
"这个仓库的 Fabric 初始化还没完成。继续操作前,请先查看 .fabric/forensic.json 和 .fabric/bootstrap/README.md,并使用仓库内的 .
|
|
16
|
+
"这个仓库的 Fabric 初始化还没完成。继续操作前,请先查看 .fabric/forensic.json 和 .fabric/bootstrap/README.md,并使用仓库内的 .codex/skills/fabric-init/SKILL.md。若 Codex hooks 没有触发,请确认配置里已启用 features.codex_hooks = true。",
|
|
17
17
|
},
|
|
18
18
|
}),
|
|
19
19
|
);
|
|
@@ -13,6 +13,6 @@ process.stdout.write(
|
|
|
13
13
|
JSON.stringify({
|
|
14
14
|
decision: "block",
|
|
15
15
|
reason:
|
|
16
|
-
"fab init 已经收集完当前仓库的初始化依据,但后续初始化还没完成。请先确认 Codex 已启用 features.codex_hooks = true,然后查看 .fabric/forensic.json 和 .fabric/bootstrap/README.md,并使用仓库内的 .
|
|
16
|
+
"fab init 已经收集完当前仓库的初始化依据,但后续初始化还没完成。请先确认 Codex 已启用 features.codex_hooks = true,然后查看 .fabric/forensic.json 和 .fabric/bootstrap/README.md,并使用仓库内的 .codex/skills/fabric-init/SKILL.md 继续初始化。",
|
|
17
17
|
}),
|
|
18
18
|
);
|