@shahmilsaari/memory-core 0.2.6 → 0.2.7
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 +17 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1442,6 +1442,12 @@ program.command("init").description("Initialize memory-core in the current proje
|
|
|
1442
1442
|
]
|
|
1443
1443
|
});
|
|
1444
1444
|
}
|
|
1445
|
+
const { checkbox } = await import("@inquirer/prompts");
|
|
1446
|
+
const selectedAgents = await checkbox({
|
|
1447
|
+
message: "Which AI agents do you want to generate files for?",
|
|
1448
|
+
choices: AGENT_NAMES.filter((a) => a !== "Shared").map((name) => ({ name, value: name, checked: true })),
|
|
1449
|
+
instructions: " (Space to toggle, A to select all, Enter to confirm)"
|
|
1450
|
+
});
|
|
1445
1451
|
const enableHook = await confirm({
|
|
1446
1452
|
message: "Enable pre-commit hook? (blocks commits that violate your rules)",
|
|
1447
1453
|
default: true
|
|
@@ -1452,7 +1458,8 @@ program.command("init").description("Initialize memory-core in the current proje
|
|
|
1452
1458
|
backendArchitecture,
|
|
1453
1459
|
frontendFramework,
|
|
1454
1460
|
language,
|
|
1455
|
-
caveman: { enabled: installCaveman, intensity: cavemanIntensity }
|
|
1461
|
+
caveman: { enabled: installCaveman, intensity: cavemanIntensity },
|
|
1462
|
+
agents: selectedAgents
|
|
1456
1463
|
};
|
|
1457
1464
|
let memories = [];
|
|
1458
1465
|
if (pullMemories) {
|
|
@@ -1480,7 +1487,8 @@ program.command("init").description("Initialize memory-core in the current proje
|
|
|
1480
1487
|
const spinner = ora("Generating AI agent context files\u2026").start();
|
|
1481
1488
|
const written = await generate(
|
|
1482
1489
|
{ projectName, projectType, backendArchitecture, frontendFramework, language, memories, caveman: config2.caveman },
|
|
1483
|
-
process.cwd()
|
|
1490
|
+
process.cwd(),
|
|
1491
|
+
[...selectedAgents, "Shared"]
|
|
1484
1492
|
);
|
|
1485
1493
|
writeProjectConfig(config2);
|
|
1486
1494
|
spinner.succeed(`Generated ${written.written.length} files`);
|
|
@@ -1502,9 +1510,14 @@ program.command("sync").description("Re-pull memories and regenerate AI agent fi
|
|
|
1502
1510
|
process.exit(1);
|
|
1503
1511
|
}
|
|
1504
1512
|
const { checkbox } = await import("@inquirer/prompts");
|
|
1513
|
+
const savedAgents = new Set(config2.agents ?? AGENT_NAMES.filter((a) => a !== "Shared"));
|
|
1505
1514
|
const selectedAgents = await checkbox({
|
|
1506
1515
|
message: "Which agents do you want to sync?",
|
|
1507
|
-
choices: AGENT_NAMES.
|
|
1516
|
+
choices: AGENT_NAMES.filter((a) => a !== "Shared").map((name) => ({
|
|
1517
|
+
name,
|
|
1518
|
+
value: name,
|
|
1519
|
+
checked: savedAgents.has(name)
|
|
1520
|
+
})),
|
|
1508
1521
|
instructions: " (Space to toggle, A to select all, Enter to confirm)"
|
|
1509
1522
|
});
|
|
1510
1523
|
if (selectedAgents.length === 0) {
|
|
@@ -1531,7 +1544,7 @@ program.command("sync").description("Re-pull memories and regenerate AI agent fi
|
|
|
1531
1544
|
caveman: config2.caveman
|
|
1532
1545
|
},
|
|
1533
1546
|
process.cwd(),
|
|
1534
|
-
selectedAgents
|
|
1547
|
+
[...selectedAgents, "Shared"]
|
|
1535
1548
|
);
|
|
1536
1549
|
const updatedCount = result.written.length;
|
|
1537
1550
|
const skippedCount = result.skipped.length;
|