allagents 1.4.7 → 1.4.9-next.1

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.
Files changed (2) hide show
  1. package/dist/index.js +68 -24
  2. package/package.json +6 -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.7",
34106
+ version: "1.4.9-next.1",
34057
34107
  description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
34058
34108
  type: "module",
34059
34109
  bin: {
@@ -34097,6 +34147,11 @@ var init_package = __esm(() => {
34097
34147
  ],
34098
34148
  author: "",
34099
34149
  license: "MIT",
34150
+ repository: {
34151
+ type: "git",
34152
+ url: "https://github.com/EntityProcess/allagents.git"
34153
+ },
34154
+ homepage: "https://allagents.dev",
34100
34155
  dependencies: {
34101
34156
  "@clack/prompts": "^1.0.0",
34102
34157
  chalk: "^5.6.2",
@@ -34347,12 +34402,7 @@ async function runSync(context) {
34347
34402
  }
34348
34403
  kt2(result.error, "Sync Error");
34349
34404
  } else {
34350
- projectLines = result.pluginResults.map((pr) => formatPluginHeader(pr));
34351
- projectLines.push("");
34352
- projectLines.push(...formatSyncSummary(result));
34353
- if (result.nativeResult) {
34354
- projectLines.push(...formatNativeResult(result.nativeResult));
34355
- }
34405
+ projectLines = formatVerboseSyncLines(result);
34356
34406
  if (context.userPluginCount > 0) {
34357
34407
  s.message("Syncing user plugins...");
34358
34408
  } else {
@@ -34376,19 +34426,7 @@ async function runSync(context) {
34376
34426
  if (userResult.error) {
34377
34427
  kt2(userResult.error, "User Sync Error");
34378
34428
  } else {
34379
- const lines = userResult.pluginResults.map((pr) => formatPluginHeader(pr));
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
- }
34429
+ const lines = formatVerboseSyncLines(userResult);
34392
34430
  kt2(lines.join(`
34393
34431
  `), "User Sync");
34394
34432
  }
@@ -34450,7 +34488,8 @@ async function runInit() {
34450
34488
  lines.push(`Clients: ${selectedClients.join(", ")}`);
34451
34489
  }
34452
34490
  if (result.syncResult) {
34453
- lines.push(`Plugins synced: ${result.syncResult.totalCopied} copied, ${result.syncResult.totalFailed} failed`);
34491
+ lines.push("");
34492
+ lines.push(...formatVerboseSyncLines(result.syncResult));
34454
34493
  }
34455
34494
  kt2(lines.join(`
34456
34495
  `), "Workspace Created");
@@ -34463,6 +34502,7 @@ var text;
34463
34502
  var init_init2 = __esm(() => {
34464
34503
  init_dist2();
34465
34504
  init_workspace();
34505
+ init_format_sync();
34466
34506
  init_prompt_clients();
34467
34507
  ({ text } = exports_dist);
34468
34508
  });
@@ -34516,6 +34556,7 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
34516
34556
  const scope = scopeChoice;
34517
34557
  const s = Ie();
34518
34558
  s.start("Installing plugin...");
34559
+ let syncResult;
34519
34560
  if (scope === "project") {
34520
34561
  const workspacePath = context.workspacePath ?? process.cwd();
34521
34562
  const result = await addPlugin(pluginRef, workspacePath);
@@ -34525,7 +34566,7 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
34525
34566
  return false;
34526
34567
  }
34527
34568
  s.message("Syncing...");
34528
- await syncWorkspace(workspacePath);
34569
+ syncResult = await syncWorkspace(workspacePath);
34529
34570
  s.stop("Installed and synced");
34530
34571
  } else {
34531
34572
  const result = await addUserPlugin(pluginRef);
@@ -34535,11 +34576,13 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
34535
34576
  return false;
34536
34577
  }
34537
34578
  s.message("Syncing...");
34538
- await syncUserWorkspace();
34579
+ syncResult = await syncUserWorkspace();
34539
34580
  s.stop("Installed and synced");
34540
34581
  }
34541
34582
  cache2?.invalidate();
34542
- kt2(`Installed: ${pluginRef}`, "Success");
34583
+ const lines = formatVerboseSyncLines(syncResult);
34584
+ kt2(lines.join(`
34585
+ `), `Installed: ${pluginRef}`);
34543
34586
  return true;
34544
34587
  }
34545
34588
  async function runUpdatePlugin(pluginSource, scope, context, cache2) {
@@ -35093,6 +35136,7 @@ var init_plugins = __esm(() => {
35093
35136
  init_sync();
35094
35137
  init_marketplace();
35095
35138
  init_plugin();
35139
+ init_format_sync();
35096
35140
  init_marketplace_manifest_parser();
35097
35141
  init_status2();
35098
35142
  init_skills();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allagents",
3
- "version": "1.4.7",
3
+ "version": "1.4.9-next.1",
4
4
  "description": "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
5
5
  "type": "module",
6
6
  "bin": {
@@ -44,6 +44,11 @@
44
44
  ],
45
45
  "author": "",
46
46
  "license": "MIT",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "https://github.com/EntityProcess/allagents.git"
50
+ },
51
+ "homepage": "https://allagents.dev",
47
52
  "dependencies": {
48
53
  "@clack/prompts": "^1.0.0",
49
54
  "chalk": "^5.6.2",