allagents 1.0.12 → 1.0.15
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 +22 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30790,6 +30790,7 @@ function classifyDestination(dest) {
|
|
|
30790
30790
|
function classifyCopyResults(copyResults) {
|
|
30791
30791
|
const clientCounts = new Map;
|
|
30792
30792
|
const seenDestinations = new Set;
|
|
30793
|
+
const seenClientArtifacts = new Set;
|
|
30793
30794
|
for (const result of copyResults) {
|
|
30794
30795
|
if (result.action !== "copied")
|
|
30795
30796
|
continue;
|
|
@@ -30801,6 +30802,11 @@ function classifyCopyResults(copyResults) {
|
|
|
30801
30802
|
continue;
|
|
30802
30803
|
const { artifactType } = classification;
|
|
30803
30804
|
const client = getDisplayName(classification.client);
|
|
30805
|
+
const artifactName = result.destination.replace(/\\/g, "/").split("/").pop() ?? result.destination;
|
|
30806
|
+
const clientArtifactKey = `${client}|${artifactType}|${artifactName}`;
|
|
30807
|
+
if (seenClientArtifacts.has(clientArtifactKey))
|
|
30808
|
+
continue;
|
|
30809
|
+
seenClientArtifacts.add(clientArtifactKey);
|
|
30804
30810
|
let counts = clientCounts.get(client);
|
|
30805
30811
|
if (!counts) {
|
|
30806
30812
|
counts = { skills: 0, commands: 0, agents: 0, hooks: 0 };
|
|
@@ -30851,10 +30857,18 @@ function formatPluginArtifacts(copyResults, indent = " ") {
|
|
|
30851
30857
|
}
|
|
30852
30858
|
return formatArtifactLines(classified, indent);
|
|
30853
30859
|
}
|
|
30854
|
-
function
|
|
30860
|
+
function formatSyncHeader(result) {
|
|
30861
|
+
const pluginCount = result.pluginResults.length;
|
|
30862
|
+
const successCount = result.pluginResults.filter((p) => p.success).length;
|
|
30863
|
+
return [
|
|
30864
|
+
`Updating ${pluginCount} plugin(s)...`,
|
|
30865
|
+
"",
|
|
30866
|
+
`✓ Successfully updated ${successCount} plugin(s)`
|
|
30867
|
+
];
|
|
30868
|
+
}
|
|
30869
|
+
function formatSyncSummary(result, { dryRun = false } = {}) {
|
|
30855
30870
|
const lines = [];
|
|
30856
30871
|
const allCopied = result.pluginResults.flatMap((pr) => pr.copyResults.filter((r) => r.action === "copied"));
|
|
30857
|
-
lines.push(`${label} complete${dryRun ? " (dry run)" : ""}:`);
|
|
30858
30872
|
const classified = classifyCopyResults(allCopied);
|
|
30859
30873
|
if (classified.size > 0) {
|
|
30860
30874
|
lines.push(...formatArtifactLines(classified));
|
|
@@ -33434,7 +33448,7 @@ var package_default;
|
|
|
33434
33448
|
var init_package = __esm(() => {
|
|
33435
33449
|
package_default = {
|
|
33436
33450
|
name: "allagents",
|
|
33437
|
-
version: "1.0.
|
|
33451
|
+
version: "1.0.15",
|
|
33438
33452
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
33439
33453
|
type: "module",
|
|
33440
33454
|
bin: {
|
|
@@ -35383,18 +35397,10 @@ var syncCmd = import_cmd_ts2.command({
|
|
|
35383
35397
|
}
|
|
35384
35398
|
let combined = null;
|
|
35385
35399
|
if (userConfigExists) {
|
|
35386
|
-
if (!isJsonMode()) {
|
|
35387
|
-
console.log(`Syncing user workspace...
|
|
35388
|
-
`);
|
|
35389
|
-
}
|
|
35390
35400
|
const userResult = await syncUserWorkspace({ offline, dryRun, force });
|
|
35391
35401
|
combined = userResult;
|
|
35392
35402
|
}
|
|
35393
35403
|
if (projectConfigExists) {
|
|
35394
|
-
if (!isJsonMode()) {
|
|
35395
|
-
console.log(`Syncing project workspace...
|
|
35396
|
-
`);
|
|
35397
|
-
}
|
|
35398
35404
|
const projectResult = await syncWorkspace(process.cwd(), {
|
|
35399
35405
|
offline,
|
|
35400
35406
|
dryRun
|
|
@@ -35426,6 +35432,10 @@ var syncCmd = import_cmd_ts2.command({
|
|
|
35426
35432
|
}
|
|
35427
35433
|
console.log("");
|
|
35428
35434
|
}
|
|
35435
|
+
for (const line of formatSyncHeader(result)) {
|
|
35436
|
+
console.log(line);
|
|
35437
|
+
}
|
|
35438
|
+
console.log("");
|
|
35429
35439
|
for (const pluginResult of result.pluginResults) {
|
|
35430
35440
|
const status = pluginResult.success ? "✓" : "✗";
|
|
35431
35441
|
console.log(`${status} Plugin: ${pluginResult.plugin}`);
|
|
@@ -36764,11 +36774,6 @@ Warnings:`);
|
|
|
36764
36774
|
return { ok: result.success && result.totalFailed === 0, syncData };
|
|
36765
36775
|
}
|
|
36766
36776
|
async function runUserSyncAndPrint() {
|
|
36767
|
-
if (!isJsonMode()) {
|
|
36768
|
-
console.log(`
|
|
36769
|
-
Syncing user workspace...
|
|
36770
|
-
`);
|
|
36771
|
-
}
|
|
36772
36777
|
const result = await syncUserWorkspace();
|
|
36773
36778
|
if (!result.success && result.error) {
|
|
36774
36779
|
if (!isJsonMode()) {
|
|
@@ -36822,7 +36827,7 @@ native:`);
|
|
|
36822
36827
|
}
|
|
36823
36828
|
}
|
|
36824
36829
|
console.log("");
|
|
36825
|
-
for (const line of formatSyncSummary(result
|
|
36830
|
+
for (const line of formatSyncSummary(result)) {
|
|
36826
36831
|
console.log(line);
|
|
36827
36832
|
}
|
|
36828
36833
|
}
|