allagents 1.4.7 → 1.4.8
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 +63 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31557,6 +31557,56 @@ function formatNativeResult(nativeResult) {
|
|
|
31557
31557
|
}
|
|
31558
31558
|
return lines;
|
|
31559
31559
|
}
|
|
31560
|
+
function formatVerboseSyncLines(result) {
|
|
31561
|
+
const lines = [];
|
|
31562
|
+
for (const pluginResult of result.pluginResults) {
|
|
31563
|
+
lines.push(formatPluginHeader(pluginResult));
|
|
31564
|
+
if (pluginResult.error) {
|
|
31565
|
+
lines.push(` Error: ${pluginResult.error}`);
|
|
31566
|
+
}
|
|
31567
|
+
lines.push(...formatPluginArtifacts(pluginResult.copyResults));
|
|
31568
|
+
const generated = pluginResult.copyResults.filter((r) => r.action === "generated").length;
|
|
31569
|
+
const failed = pluginResult.copyResults.filter((r) => r.action === "failed").length;
|
|
31570
|
+
if (generated > 0)
|
|
31571
|
+
lines.push(` Generated: ${generated} files`);
|
|
31572
|
+
if (failed > 0) {
|
|
31573
|
+
lines.push(` Failed: ${failed} files`);
|
|
31574
|
+
for (const failedResult of pluginResult.copyResults.filter((r) => r.action === "failed")) {
|
|
31575
|
+
lines.push(` - ${failedResult.destination}: ${failedResult.error}`);
|
|
31576
|
+
}
|
|
31577
|
+
}
|
|
31578
|
+
}
|
|
31579
|
+
if (result.warnings && result.warnings.length > 0) {
|
|
31580
|
+
lines.push("");
|
|
31581
|
+
for (const warning of result.warnings) {
|
|
31582
|
+
lines.push(` ⚠ ${warning}`);
|
|
31583
|
+
}
|
|
31584
|
+
}
|
|
31585
|
+
if (result.mcpResults) {
|
|
31586
|
+
for (const [scope, mcpResult] of Object.entries(result.mcpResults)) {
|
|
31587
|
+
if (!mcpResult)
|
|
31588
|
+
continue;
|
|
31589
|
+
const mcpLines = formatMcpResult(mcpResult, scope);
|
|
31590
|
+
if (mcpLines.length > 0) {
|
|
31591
|
+
lines.push("");
|
|
31592
|
+
lines.push(...mcpLines);
|
|
31593
|
+
}
|
|
31594
|
+
}
|
|
31595
|
+
}
|
|
31596
|
+
if (result.nativeResult) {
|
|
31597
|
+
const nativeLines = formatNativeResult(result.nativeResult);
|
|
31598
|
+
if (nativeLines.length > 0) {
|
|
31599
|
+
lines.push("");
|
|
31600
|
+
lines.push(...nativeLines);
|
|
31601
|
+
}
|
|
31602
|
+
}
|
|
31603
|
+
const summaryLines = formatSyncSummary(result);
|
|
31604
|
+
if (summaryLines.length > 0) {
|
|
31605
|
+
lines.push("");
|
|
31606
|
+
lines.push(...summaryLines);
|
|
31607
|
+
}
|
|
31608
|
+
return lines;
|
|
31609
|
+
}
|
|
31560
31610
|
function buildSyncData(result) {
|
|
31561
31611
|
return {
|
|
31562
31612
|
copied: result.totalCopied,
|
|
@@ -34053,7 +34103,7 @@ var package_default;
|
|
|
34053
34103
|
var init_package = __esm(() => {
|
|
34054
34104
|
package_default = {
|
|
34055
34105
|
name: "allagents",
|
|
34056
|
-
version: "1.4.
|
|
34106
|
+
version: "1.4.8",
|
|
34057
34107
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
34058
34108
|
type: "module",
|
|
34059
34109
|
bin: {
|
|
@@ -34347,12 +34397,7 @@ async function runSync(context) {
|
|
|
34347
34397
|
}
|
|
34348
34398
|
kt2(result.error, "Sync Error");
|
|
34349
34399
|
} else {
|
|
34350
|
-
projectLines = result
|
|
34351
|
-
projectLines.push("");
|
|
34352
|
-
projectLines.push(...formatSyncSummary(result));
|
|
34353
|
-
if (result.nativeResult) {
|
|
34354
|
-
projectLines.push(...formatNativeResult(result.nativeResult));
|
|
34355
|
-
}
|
|
34400
|
+
projectLines = formatVerboseSyncLines(result);
|
|
34356
34401
|
if (context.userPluginCount > 0) {
|
|
34357
34402
|
s.message("Syncing user plugins...");
|
|
34358
34403
|
} else {
|
|
@@ -34376,19 +34421,7 @@ async function runSync(context) {
|
|
|
34376
34421
|
if (userResult.error) {
|
|
34377
34422
|
kt2(userResult.error, "User Sync Error");
|
|
34378
34423
|
} else {
|
|
34379
|
-
const lines = userResult
|
|
34380
|
-
lines.push("");
|
|
34381
|
-
lines.push(...formatSyncSummary(userResult));
|
|
34382
|
-
if (userResult.mcpResults) {
|
|
34383
|
-
for (const [scope, mcpResult] of Object.entries(userResult.mcpResults)) {
|
|
34384
|
-
if (!mcpResult)
|
|
34385
|
-
continue;
|
|
34386
|
-
lines.push(...formatMcpResult(mcpResult, scope));
|
|
34387
|
-
}
|
|
34388
|
-
}
|
|
34389
|
-
if (userResult.nativeResult) {
|
|
34390
|
-
lines.push(...formatNativeResult(userResult.nativeResult));
|
|
34391
|
-
}
|
|
34424
|
+
const lines = formatVerboseSyncLines(userResult);
|
|
34392
34425
|
kt2(lines.join(`
|
|
34393
34426
|
`), "User Sync");
|
|
34394
34427
|
}
|
|
@@ -34450,7 +34483,8 @@ async function runInit() {
|
|
|
34450
34483
|
lines.push(`Clients: ${selectedClients.join(", ")}`);
|
|
34451
34484
|
}
|
|
34452
34485
|
if (result.syncResult) {
|
|
34453
|
-
lines.push(
|
|
34486
|
+
lines.push("");
|
|
34487
|
+
lines.push(...formatVerboseSyncLines(result.syncResult));
|
|
34454
34488
|
}
|
|
34455
34489
|
kt2(lines.join(`
|
|
34456
34490
|
`), "Workspace Created");
|
|
@@ -34463,6 +34497,7 @@ var text;
|
|
|
34463
34497
|
var init_init2 = __esm(() => {
|
|
34464
34498
|
init_dist2();
|
|
34465
34499
|
init_workspace();
|
|
34500
|
+
init_format_sync();
|
|
34466
34501
|
init_prompt_clients();
|
|
34467
34502
|
({ text } = exports_dist);
|
|
34468
34503
|
});
|
|
@@ -34516,6 +34551,7 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
|
|
|
34516
34551
|
const scope = scopeChoice;
|
|
34517
34552
|
const s = Ie();
|
|
34518
34553
|
s.start("Installing plugin...");
|
|
34554
|
+
let syncResult;
|
|
34519
34555
|
if (scope === "project") {
|
|
34520
34556
|
const workspacePath = context.workspacePath ?? process.cwd();
|
|
34521
34557
|
const result = await addPlugin(pluginRef, workspacePath);
|
|
@@ -34525,7 +34561,7 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
|
|
|
34525
34561
|
return false;
|
|
34526
34562
|
}
|
|
34527
34563
|
s.message("Syncing...");
|
|
34528
|
-
await syncWorkspace(workspacePath);
|
|
34564
|
+
syncResult = await syncWorkspace(workspacePath);
|
|
34529
34565
|
s.stop("Installed and synced");
|
|
34530
34566
|
} else {
|
|
34531
34567
|
const result = await addUserPlugin(pluginRef);
|
|
@@ -34535,11 +34571,13 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
|
|
|
34535
34571
|
return false;
|
|
34536
34572
|
}
|
|
34537
34573
|
s.message("Syncing...");
|
|
34538
|
-
await syncUserWorkspace();
|
|
34574
|
+
syncResult = await syncUserWorkspace();
|
|
34539
34575
|
s.stop("Installed and synced");
|
|
34540
34576
|
}
|
|
34541
34577
|
cache2?.invalidate();
|
|
34542
|
-
|
|
34578
|
+
const lines = formatVerboseSyncLines(syncResult);
|
|
34579
|
+
kt2(lines.join(`
|
|
34580
|
+
`), `Installed: ${pluginRef}`);
|
|
34543
34581
|
return true;
|
|
34544
34582
|
}
|
|
34545
34583
|
async function runUpdatePlugin(pluginSource, scope, context, cache2) {
|
|
@@ -35093,6 +35131,7 @@ var init_plugins = __esm(() => {
|
|
|
35093
35131
|
init_sync();
|
|
35094
35132
|
init_marketplace();
|
|
35095
35133
|
init_plugin();
|
|
35134
|
+
init_format_sync();
|
|
35096
35135
|
init_marketplace_manifest_parser();
|
|
35097
35136
|
init_status2();
|
|
35098
35137
|
init_skills();
|