shoplazza-ai-dev-cli 0.1.4 → 0.1.5
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.mjs +13 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -6508,12 +6508,14 @@ async function runUpdate(args = []) {
|
|
|
6508
6508
|
name: pl.name,
|
|
6509
6509
|
ref: pl.ref,
|
|
6510
6510
|
canonical: pl.canonical,
|
|
6511
|
+
agents: pl.agents,
|
|
6511
6512
|
hasProjectEntry: hasProjectEntryFor(pl.canonical, cwd)
|
|
6512
6513
|
})), ...inventory.skills.filter((s) => Boolean(s.ref)).map((s) => ({
|
|
6513
6514
|
kind: "skill",
|
|
6514
6515
|
name: s.name,
|
|
6515
6516
|
ref: s.ref,
|
|
6516
6517
|
canonical: s.canonical,
|
|
6518
|
+
agents: s.agents,
|
|
6517
6519
|
hasProjectEntry: hasProjectEntryFor(s.canonical, cwd)
|
|
6518
6520
|
}))];
|
|
6519
6521
|
if (options.names && options.names.length > 0) {
|
|
@@ -6555,12 +6557,23 @@ async function runUpdate(args = []) {
|
|
|
6555
6557
|
for (const t of targets) {
|
|
6556
6558
|
const safeName = sanitizeMetadata(t.name);
|
|
6557
6559
|
if (!options.json) console.log(`${TEXT}Updating ${safeName}...${RESET} ${DIM}(${t.ref})${RESET}`);
|
|
6560
|
+
if (t.agents.length === 0) {
|
|
6561
|
+
fail++;
|
|
6562
|
+
if (!options.json) console.log(` ${DIM}✗ skipped ${safeName} — no IDE entries point at this canonical${RESET}`);
|
|
6563
|
+
results.push({
|
|
6564
|
+
name: t.name,
|
|
6565
|
+
kind: t.kind,
|
|
6566
|
+
ok: false
|
|
6567
|
+
});
|
|
6568
|
+
continue;
|
|
6569
|
+
}
|
|
6558
6570
|
const passthrough = [
|
|
6559
6571
|
"add",
|
|
6560
6572
|
t.ref,
|
|
6561
6573
|
"-y"
|
|
6562
6574
|
];
|
|
6563
6575
|
if (!t.hasProjectEntry) passthrough.push("-g");
|
|
6576
|
+
passthrough.push("-a", ...t.agents);
|
|
6564
6577
|
const ok = spawnSync(process.execPath, [cliEntry, ...passthrough], {
|
|
6565
6578
|
stdio: options.json ? [
|
|
6566
6579
|
"ignore",
|