allagents 1.0.15 → 1.1.0
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 +41 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30170,6 +30170,21 @@ ${fileValidationErrors.map((e) => ` - ${e}`).join(`
|
|
|
30170
30170
|
vscodeState = { hash: result.hash, repos: result.repos };
|
|
30171
30171
|
}
|
|
30172
30172
|
}
|
|
30173
|
+
const mcpResults = {};
|
|
30174
|
+
if (syncClients.includes("vscode")) {
|
|
30175
|
+
const trackedMcpServers = getPreviouslySyncedMcpServers(previousState, "vscode");
|
|
30176
|
+
const projectMcpPath = join15(workspacePath, ".vscode", "mcp.json");
|
|
30177
|
+
const vscodeMcp = syncVscodeMcpConfig(validPlugins, {
|
|
30178
|
+
dryRun,
|
|
30179
|
+
force: false,
|
|
30180
|
+
configPath: projectMcpPath,
|
|
30181
|
+
trackedServers: trackedMcpServers
|
|
30182
|
+
});
|
|
30183
|
+
if (vscodeMcp.warnings.length > 0) {
|
|
30184
|
+
warnings.push(...vscodeMcp.warnings);
|
|
30185
|
+
}
|
|
30186
|
+
mcpResults.vscode = vscodeMcp;
|
|
30187
|
+
}
|
|
30173
30188
|
const { totalCopied, totalFailed, totalSkipped, totalGenerated } = countCopyResults(pluginResults, workspaceFileResults);
|
|
30174
30189
|
const hasFailures = pluginResults.some((r) => !r.success) || totalFailed > 0;
|
|
30175
30190
|
const availableSkillNames = await collectAvailableSkillNames(validPlugins);
|
|
@@ -30179,7 +30194,12 @@ ${fileValidationErrors.map((e) => ` - ${e}`).join(`
|
|
|
30179
30194
|
const deletedArtifacts = computeDeletedArtifacts(previousState, newStatePaths, syncClients, resolvedMappings, availableSkillNames);
|
|
30180
30195
|
const { pluginsByClient: nativePluginsByClient } = collectNativePluginSources(validPlugins);
|
|
30181
30196
|
if (!dryRun) {
|
|
30182
|
-
await persistSyncState(workspacePath, pluginResults, workspaceFileResults, syncClients, nativePluginsByClient, nativeResult,
|
|
30197
|
+
await persistSyncState(workspacePath, pluginResults, workspaceFileResults, syncClients, nativePluginsByClient, nativeResult, {
|
|
30198
|
+
...vscodeState && { vscodeState },
|
|
30199
|
+
...Object.keys(mcpResults).length > 0 && {
|
|
30200
|
+
mcpTrackedServers: Object.fromEntries(Object.entries(mcpResults).map(([scope, r]) => [scope, r.trackedServers]))
|
|
30201
|
+
}
|
|
30202
|
+
});
|
|
30183
30203
|
}
|
|
30184
30204
|
return {
|
|
30185
30205
|
success: !hasFailures,
|
|
@@ -30192,6 +30212,7 @@ ${fileValidationErrors.map((e) => ` - ${e}`).join(`
|
|
|
30192
30212
|
...deletedArtifacts.length > 0 && { deletedArtifacts },
|
|
30193
30213
|
...warnings.length > 0 && { warnings },
|
|
30194
30214
|
...messages.length > 0 && { messages },
|
|
30215
|
+
...Object.keys(mcpResults).length > 0 && { mcpResults },
|
|
30195
30216
|
...nativeResult && { nativeResult }
|
|
30196
30217
|
};
|
|
30197
30218
|
}
|
|
@@ -33448,7 +33469,7 @@ var package_default;
|
|
|
33448
33469
|
var init_package = __esm(() => {
|
|
33449
33470
|
package_default = {
|
|
33450
33471
|
name: "allagents",
|
|
33451
|
-
version: "1.0
|
|
33472
|
+
version: "1.1.0",
|
|
33452
33473
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
33453
33474
|
type: "module",
|
|
33454
33475
|
bin: {
|
|
@@ -36717,7 +36738,7 @@ import { join as join23 } from "node:path";
|
|
|
36717
36738
|
async function runSyncAndPrint(options2) {
|
|
36718
36739
|
if (!isJsonMode()) {
|
|
36719
36740
|
console.log(`
|
|
36720
|
-
|
|
36741
|
+
Updating workspace...
|
|
36721
36742
|
`);
|
|
36722
36743
|
}
|
|
36723
36744
|
const result = await syncWorkspace(process.cwd(), options2);
|
|
@@ -36749,6 +36770,19 @@ Syncing workspace...
|
|
|
36749
36770
|
}
|
|
36750
36771
|
}
|
|
36751
36772
|
}
|
|
36773
|
+
if (result.mcpResults) {
|
|
36774
|
+
for (const [scope, mcpResult] of Object.entries(result.mcpResults)) {
|
|
36775
|
+
if (!mcpResult)
|
|
36776
|
+
continue;
|
|
36777
|
+
const mcpLines = formatMcpResult(mcpResult, scope);
|
|
36778
|
+
if (mcpLines.length > 0) {
|
|
36779
|
+
console.log("");
|
|
36780
|
+
for (const line of mcpLines) {
|
|
36781
|
+
console.log(line);
|
|
36782
|
+
}
|
|
36783
|
+
}
|
|
36784
|
+
}
|
|
36785
|
+
}
|
|
36752
36786
|
if (result.nativeResult) {
|
|
36753
36787
|
const nativeLines = formatNativeResult(result.nativeResult);
|
|
36754
36788
|
if (nativeLines.length > 0) {
|
|
@@ -36766,10 +36800,6 @@ Warnings:`);
|
|
|
36766
36800
|
console.log(` ⚠ ${warning}`);
|
|
36767
36801
|
}
|
|
36768
36802
|
}
|
|
36769
|
-
console.log("");
|
|
36770
|
-
for (const line of formatSyncSummary(result)) {
|
|
36771
|
-
console.log(line);
|
|
36772
|
-
}
|
|
36773
36803
|
}
|
|
36774
36804
|
return { ok: result.success && result.totalFailed === 0, syncData };
|
|
36775
36805
|
}
|
|
@@ -36826,10 +36856,6 @@ native:`);
|
|
|
36826
36856
|
}
|
|
36827
36857
|
}
|
|
36828
36858
|
}
|
|
36829
|
-
console.log("");
|
|
36830
|
-
for (const line of formatSyncSummary(result)) {
|
|
36831
|
-
console.log(line);
|
|
36832
|
-
}
|
|
36833
36859
|
}
|
|
36834
36860
|
return { ok: result.success && result.totalFailed === 0, syncData };
|
|
36835
36861
|
}
|
|
@@ -37509,9 +37535,12 @@ Enabled skills: ${skills.join(", ")}`);
|
|
|
37509
37535
|
if (result.autoRegistered) {
|
|
37510
37536
|
console.log(` Resolved marketplace: ${result.autoRegistered}`);
|
|
37511
37537
|
}
|
|
37512
|
-
console.log(
|
|
37538
|
+
console.log(`Installing plugin "${displayPlugin}"...`);
|
|
37513
37539
|
}
|
|
37514
37540
|
const { ok: syncOk, syncData } = isUser ? await runUserSyncAndPrint() : await runSyncAndPrint();
|
|
37541
|
+
if (!isJsonMode() && syncOk) {
|
|
37542
|
+
console.log(`✔ Successfully installed plugin: ${displayPlugin} (scope: ${isUser ? "user" : "project"})`);
|
|
37543
|
+
}
|
|
37515
37544
|
if (isJsonMode()) {
|
|
37516
37545
|
jsonOutput({
|
|
37517
37546
|
success: syncOk,
|