allagents 1.11.6-next.1 → 1.11.7-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 +11 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -42193,7 +42193,7 @@ var package_default;
42193
42193
  var init_package = __esm(() => {
42194
42194
  package_default = {
42195
42195
  name: "allagents",
42196
- version: "1.11.6-next.1",
42196
+ version: "1.11.7-next.1",
42197
42197
  packageManager: "bun@1.3.12",
42198
42198
  description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
42199
42199
  type: "module",
@@ -45428,24 +45428,28 @@ Use --plugin to specify: allagents skill remove ${skill} --plugin <name>`;
45428
45428
  }
45429
45429
  }
45430
45430
  });
45431
- async function installSkillFromSource(opts) {
45431
+ async function installSkillFromSource(opts, deps = {}) {
45432
45432
  const { skill, from, isUser, workspacePath } = opts;
45433
+ const fetchPluginFn = deps.fetchPlugin ?? fetchPlugin;
45434
+ const parseMarketplaceManifestFn = deps.parseMarketplaceManifest ?? parseMarketplaceManifest;
45435
+ const installSkillViaMarketplaceFn = deps.installSkillViaMarketplace ?? installSkillViaMarketplace;
45436
+ const installSkillDirectFn = deps.installSkillDirect ?? installSkillDirect;
45433
45437
  if (!isJsonMode()) {
45434
45438
  console.log(`Installing skill '${skill}' from ${from}...`);
45435
45439
  }
45436
45440
  const parsed = isGitHubUrl(from) ? parseGitHubUrl(from) : null;
45437
- const fetchResult = await fetchPlugin(from, {
45441
+ const fetchResult = await fetchPluginFn(from, {
45438
45442
  ...parsed?.branch && { branch: parsed.branch }
45439
45443
  });
45440
45444
  if (!fetchResult.success) {
45441
45445
  return { success: false, error: `Failed to fetch '${from}': ${fetchResult.error ?? "Unknown error"}` };
45442
45446
  }
45443
45447
  const sourcePath = resolveFetchedSourcePath(from, fetchResult.cachePath);
45444
- const manifestResult = await parseMarketplaceManifest(sourcePath);
45448
+ const manifestResult = await parseMarketplaceManifestFn(sourcePath);
45445
45449
  if (manifestResult.success) {
45446
- return installSkillViaMarketplace({ skill, from, isUser, workspacePath });
45450
+ return installSkillViaMarketplaceFn({ skill, from, isUser, workspacePath });
45447
45451
  }
45448
- return installSkillDirect({ skill, from, isUser, workspacePath, cachePath: sourcePath });
45452
+ return installSkillDirectFn({ skill, from, isUser, workspacePath, sourcePath });
45449
45453
  }
45450
45454
  async function installSkillViaMarketplace(opts) {
45451
45455
  const { skill, from, isUser, workspacePath } = opts;
@@ -45497,8 +45501,7 @@ Available skills: ${allAvailableSkills.join(", ") || "none"}`
45497
45501
  return applySkillAllowlist({ skill, pluginName: targetPluginName, isUser, workspacePath });
45498
45502
  }
45499
45503
  async function installSkillDirect(opts) {
45500
- const { skill, from, isUser, workspacePath, cachePath } = opts;
45501
- const sourcePath = resolveFetchedSourcePath(from, cachePath);
45504
+ const { skill, from, isUser, workspacePath, sourcePath } = opts;
45502
45505
  const availableSkills = await discoverSkillNames(sourcePath);
45503
45506
  if (!availableSkills.includes(skill)) {
45504
45507
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allagents",
3
- "version": "1.11.6-next.1",
3
+ "version": "1.11.7-next.1",
4
4
  "packageManager": "bun@1.3.12",
5
5
  "description": "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
6
6
  "type": "module",