allagents 1.4.0 → 1.4.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.
- package/dist/index.js +12 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33998,7 +33998,7 @@ var package_default;
|
|
|
33998
33998
|
var init_package = __esm(() => {
|
|
33999
33999
|
package_default = {
|
|
34000
34000
|
name: "allagents",
|
|
34001
|
-
version: "1.4.
|
|
34001
|
+
version: "1.4.1",
|
|
34002
34002
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
34003
34003
|
type: "module",
|
|
34004
34004
|
bin: {
|
|
@@ -37993,10 +37993,9 @@ var pluginInstallCmd = import_cmd_ts4.command({
|
|
|
37993
37993
|
type: import_cmd_ts4.array(import_cmd_ts4.string),
|
|
37994
37994
|
long: "skill",
|
|
37995
37995
|
description: "Only enable specific skills (can be repeated)"
|
|
37996
|
-
})
|
|
37997
|
-
force: import_cmd_ts4.flag({ long: "force", short: "f", description: "Replace plugin if it already exists" })
|
|
37996
|
+
})
|
|
37998
37997
|
},
|
|
37999
|
-
handler: async ({ plugin, scope, skills
|
|
37998
|
+
handler: async ({ plugin, scope, skills }) => {
|
|
38000
37999
|
try {
|
|
38001
38000
|
const isUser = scope === "user" || !scope && isUserConfigPath(process.cwd());
|
|
38002
38001
|
if (!isUser) {
|
|
@@ -38019,17 +38018,8 @@ var pluginInstallCmd = import_cmd_ts4.command({
|
|
|
38019
38018
|
console.warn(`Warning: Workspace marketplace '${name}' overrides user marketplace of the same name.`);
|
|
38020
38019
|
}
|
|
38021
38020
|
}
|
|
38022
|
-
const result = isUser ? await addUserPlugin(plugin,
|
|
38023
|
-
|
|
38024
|
-
if (!result.success && !pluginAlreadyExists) {
|
|
38025
|
-
if (isJsonMode()) {
|
|
38026
|
-
jsonOutput({ success: false, command: "plugin install", error: result.error ?? "Unknown error" });
|
|
38027
|
-
process.exit(1);
|
|
38028
|
-
}
|
|
38029
|
-
console.error(`Error: ${result.error}`);
|
|
38030
|
-
process.exit(1);
|
|
38031
|
-
}
|
|
38032
|
-
if (pluginAlreadyExists && skills.length === 0) {
|
|
38021
|
+
const result = isUser ? await addUserPlugin(plugin, true) : await addPlugin(plugin, process.cwd(), true);
|
|
38022
|
+
if (!result.success) {
|
|
38033
38023
|
if (isJsonMode()) {
|
|
38034
38024
|
jsonOutput({ success: false, command: "plugin install", error: result.error ?? "Unknown error" });
|
|
38035
38025
|
process.exit(1);
|
|
@@ -38040,17 +38030,15 @@ var pluginInstallCmd = import_cmd_ts4.command({
|
|
|
38040
38030
|
const displayPlugin = result.normalizedPlugin ?? plugin;
|
|
38041
38031
|
if (skills.length > 0) {
|
|
38042
38032
|
const workspacePath = isUser ? getHomeDir() : process.cwd();
|
|
38043
|
-
|
|
38044
|
-
|
|
38045
|
-
|
|
38046
|
-
|
|
38047
|
-
|
|
38048
|
-
jsonOutput({ success: false, command: "plugin install", error });
|
|
38049
|
-
process.exit(1);
|
|
38050
|
-
}
|
|
38051
|
-
console.error(`Error: ${error}`);
|
|
38033
|
+
const initialSync = isUser ? await syncUserWorkspace() : await syncWorkspace(workspacePath);
|
|
38034
|
+
if (!initialSync.success) {
|
|
38035
|
+
const error = `Initial sync failed: ${initialSync.error ?? "Unknown error"}`;
|
|
38036
|
+
if (isJsonMode()) {
|
|
38037
|
+
jsonOutput({ success: false, command: "plugin install", error });
|
|
38052
38038
|
process.exit(1);
|
|
38053
38039
|
}
|
|
38040
|
+
console.error(`Error: ${error}`);
|
|
38041
|
+
process.exit(1);
|
|
38054
38042
|
}
|
|
38055
38043
|
const allSkills = await getAllSkillsFromPlugins(workspacePath);
|
|
38056
38044
|
const displayNames = extractPluginNames(displayPlugin);
|