mover-os 4.0.2 → 4.0.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/install.js +24 -34
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -1300,6 +1300,24 @@ async function main() {
|
|
|
1300
1300
|
let totalSteps = 0;
|
|
1301
1301
|
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
1302
1302
|
|
|
1303
|
+
// 0. Legacy cleanup (remove files from older installer versions)
|
|
1304
|
+
const legacyPaths = [
|
|
1305
|
+
path.join(vaultPath, "src"), // hooks used to install here
|
|
1306
|
+
path.join(vaultPath, "SOUL.md"), // old soul file
|
|
1307
|
+
];
|
|
1308
|
+
for (const lp of legacyPaths) {
|
|
1309
|
+
if (fs.existsSync(lp)) {
|
|
1310
|
+
try {
|
|
1311
|
+
const stat = fs.statSync(lp);
|
|
1312
|
+
if (stat.isDirectory()) {
|
|
1313
|
+
fs.rmSync(lp, { recursive: true, force: true });
|
|
1314
|
+
} else {
|
|
1315
|
+
fs.unlinkSync(lp);
|
|
1316
|
+
}
|
|
1317
|
+
} catch {}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1303
1321
|
// 1. Vault structure
|
|
1304
1322
|
let sp = spinner("Vault structure");
|
|
1305
1323
|
const dirsCreated = createVaultStructure(vaultPath);
|
|
@@ -1408,49 +1426,21 @@ async function main() {
|
|
|
1408
1426
|
const verb = updateMode ? "updated" : "installed";
|
|
1409
1427
|
outro(`${green("Done.")} Mover OS v${VERSION} ${verb}. ${dim(`${totalSteps} steps in ${elapsed}s`)}`);
|
|
1410
1428
|
|
|
1411
|
-
// Agent display names and CLI commands
|
|
1412
|
-
const agentInfo = {
|
|
1413
|
-
"claude-code": { name: "Claude Code", cli: "claude" },
|
|
1414
|
-
cursor: { name: "Cursor", cli: null },
|
|
1415
|
-
cline: { name: "Cline", cli: null },
|
|
1416
|
-
codex: { name: "Codex", cli: "codex" },
|
|
1417
|
-
windsurf: { name: "Windsurf", cli: null },
|
|
1418
|
-
openclaw: { name: "OpenClaw", cli: "openclaw" },
|
|
1419
|
-
antigravity: { name: "Antigravity", cli: "gemini" },
|
|
1420
|
-
"roo-code": { name: "Roo Code", cli: null },
|
|
1421
|
-
copilot: { name: "Copilot", cli: null },
|
|
1422
|
-
amp: { name: "Amp", cli: "amp" },
|
|
1423
|
-
aider: { name: "Aider", cli: "aider" },
|
|
1424
|
-
};
|
|
1425
|
-
|
|
1426
1429
|
const command = updateMode ? "/update" : "/setup";
|
|
1427
|
-
const agentNames = selectedAgents.map((a) =>
|
|
1428
|
-
const agentList = agentNames.join(", ");
|
|
1429
|
-
|
|
1430
|
-
// CLI agents get "cd + run" instructions, GUI agents get "open folder"
|
|
1431
|
-
const cliAgents = selectedAgents.filter((a) => agentInfo[a.id]?.cli);
|
|
1432
|
-
const guiAgents = selectedAgents.filter((a) => !agentInfo[a.id]?.cli);
|
|
1430
|
+
const agentNames = selectedAgents.map((a) => a.name);
|
|
1433
1431
|
|
|
1434
1432
|
ln(` ${bold("Next steps")}`);
|
|
1435
1433
|
ln();
|
|
1436
1434
|
ln(` ${cyan("1")} Open your vault in ${bold("Obsidian")}`);
|
|
1437
|
-
ln(` ${dim("
|
|
1435
|
+
ln(` ${dim("This is where you view and browse your files")}`);
|
|
1438
1436
|
ln();
|
|
1439
|
-
ln(` ${cyan("2")} Open the vault in your AI agent`);
|
|
1440
|
-
|
|
1441
|
-
const cmds = cliAgents.map((a) => agentInfo[a.id].cli);
|
|
1442
|
-
ln(` ${dim("cd")} ${vaultPath}`);
|
|
1443
|
-
ln(` ${dim("then run:")} ${cmds.map((c) => bold(c)).join(dim(" or "))}`);
|
|
1444
|
-
}
|
|
1445
|
-
if (guiAgents.length > 0) {
|
|
1446
|
-
const names = guiAgents.map((a) => bold(agentInfo[a.id]?.name || a.name)).join(dim(", "));
|
|
1447
|
-
ln(` ${dim("Open")} ${names} ${dim("→ open the vault folder")}`);
|
|
1448
|
-
}
|
|
1437
|
+
ln(` ${cyan("2")} Open the vault folder in your AI agent`);
|
|
1438
|
+
ln(` ${dim("Installed: " + agentNames.join(", "))}`);
|
|
1449
1439
|
ln();
|
|
1450
1440
|
ln(` ${cyan("3")} Enable the Obsidian theme`);
|
|
1451
|
-
ln(` ${dim("Settings → Appearance → CSS snippets →
|
|
1441
|
+
ln(` ${dim("Settings → Appearance → CSS snippets → minimal-theme")}`);
|
|
1452
1442
|
ln();
|
|
1453
|
-
ln(` ${cyan("4")} Run ${bold(command)}
|
|
1443
|
+
ln(` ${cyan("4")} Run ${bold(command)}`);
|
|
1454
1444
|
ln(` ${dim(updateMode ? "Syncs your Engine with the latest version" : "Builds your Identity, Strategy, and Goals")}`);
|
|
1455
1445
|
ln();
|
|
1456
1446
|
ln(gray(" ─────────────────────────────────────"));
|