allagents 0.21.1 → 0.21.2
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 +15 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28865,7 +28865,7 @@ var package_default;
|
|
|
28865
28865
|
var init_package = __esm(() => {
|
|
28866
28866
|
package_default = {
|
|
28867
28867
|
name: "allagents",
|
|
28868
|
-
version: "0.21.
|
|
28868
|
+
version: "0.21.2",
|
|
28869
28869
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
28870
28870
|
type: "module",
|
|
28871
28871
|
bin: {
|
|
@@ -31080,24 +31080,22 @@ async function getCachedMarketplacePlugins(name, cache2) {
|
|
|
31080
31080
|
return result;
|
|
31081
31081
|
}
|
|
31082
31082
|
async function installSelectedPlugin(pluginRef, context, cache2) {
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
31088
|
-
|
|
31089
|
-
|
|
31090
|
-
|
|
31091
|
-
|
|
31092
|
-
if (Ct(scopeChoice)) {
|
|
31093
|
-
return false;
|
|
31094
|
-
}
|
|
31095
|
-
scope = scopeChoice;
|
|
31083
|
+
const scopeChoice = await select2({
|
|
31084
|
+
message: "Install scope",
|
|
31085
|
+
options: [
|
|
31086
|
+
{ label: "Project (this workspace)", value: "project" },
|
|
31087
|
+
{ label: "User (global)", value: "user" }
|
|
31088
|
+
]
|
|
31089
|
+
});
|
|
31090
|
+
if (Ct(scopeChoice)) {
|
|
31091
|
+
return false;
|
|
31096
31092
|
}
|
|
31093
|
+
const scope = scopeChoice;
|
|
31097
31094
|
const s = Ie();
|
|
31098
31095
|
s.start("Installing plugin...");
|
|
31099
|
-
if (scope === "project"
|
|
31100
|
-
const
|
|
31096
|
+
if (scope === "project") {
|
|
31097
|
+
const workspacePath = context.workspacePath ?? process.cwd();
|
|
31098
|
+
const result = await addPlugin(pluginRef, workspacePath);
|
|
31101
31099
|
if (!result.success) {
|
|
31102
31100
|
s.stop("Installation failed");
|
|
31103
31101
|
kt2(result.error ?? "Unknown error", "Error");
|
|
@@ -31106,7 +31104,7 @@ async function installSelectedPlugin(pluginRef, context, cache2) {
|
|
|
31106
31104
|
s.stop("Plugin added");
|
|
31107
31105
|
const syncS = Ie();
|
|
31108
31106
|
syncS.start("Syncing...");
|
|
31109
|
-
await syncWorkspace(
|
|
31107
|
+
await syncWorkspace(workspacePath);
|
|
31110
31108
|
syncS.stop("Sync complete");
|
|
31111
31109
|
} else {
|
|
31112
31110
|
const result = await addUserPlugin(pluginRef);
|