mother-brain 0.4.1 → 0.4.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/cli.js +15 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -103,8 +103,14 @@ async function init(options = {}) {
|
|
|
103
103
|
await fs.symlink(relTarget, link, "dir");
|
|
104
104
|
linkedCount++;
|
|
105
105
|
} catch {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
try {
|
|
107
|
+
const absTarget = path.resolve(path.dirname(link), relTarget);
|
|
108
|
+
await fs.symlink(absTarget, link, "junction");
|
|
109
|
+
linkedCount++;
|
|
110
|
+
} catch {
|
|
111
|
+
await fs.copy(source, link, { overwrite: true });
|
|
112
|
+
linkedCount++;
|
|
113
|
+
}
|
|
108
114
|
}
|
|
109
115
|
}
|
|
110
116
|
}
|
|
@@ -194,7 +200,12 @@ async function update() {
|
|
|
194
200
|
try {
|
|
195
201
|
await fs2.symlink(relTarget, link, "dir");
|
|
196
202
|
} catch {
|
|
197
|
-
|
|
203
|
+
try {
|
|
204
|
+
const absTarget = path2.resolve(path2.dirname(link), relTarget);
|
|
205
|
+
await fs2.symlink(absTarget, link, "junction");
|
|
206
|
+
} catch {
|
|
207
|
+
await fs2.copy(source, link, { overwrite: true });
|
|
208
|
+
}
|
|
198
209
|
}
|
|
199
210
|
}
|
|
200
211
|
}
|
|
@@ -697,7 +708,7 @@ async function uninstall(options) {
|
|
|
697
708
|
// src/cli.ts
|
|
698
709
|
import { exec as exec3 } from "child_process";
|
|
699
710
|
var program = new Command();
|
|
700
|
-
var VERSION = "0.4.
|
|
711
|
+
var VERSION = "0.4.2";
|
|
701
712
|
program.name("mother-brain").description("AI-powered project management framework for GitHub Copilot CLI and Codex CLI").version(VERSION);
|
|
702
713
|
program.command("init").description("Initialize Mother Brain in the current project").option("-f, --force", "Overwrite existing skills").action(init);
|
|
703
714
|
program.command("update").description("Update Mother Brain skills to the latest version").action(update);
|