allagents 1.0.8 → 1.0.9

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 +16 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27808,6 +27808,16 @@ function extractPluginNames(pluginSource) {
27808
27808
  }
27809
27809
  return names;
27810
27810
  }
27811
+ if (isGitHubUrl(pluginSource)) {
27812
+ const parsed = parseGitHubUrl(pluginSource);
27813
+ if (parsed) {
27814
+ const names = [parsed.repo];
27815
+ const ownerRepo = `${parsed.owner}-${parsed.repo}`;
27816
+ if (ownerRepo !== parsed.repo)
27817
+ names.push(ownerRepo);
27818
+ return names;
27819
+ }
27820
+ }
27811
27821
  const parts = pluginSource.split(/[/\\]/).filter(Boolean);
27812
27822
  const last2 = parts[parts.length - 1];
27813
27823
  if (!last2)
@@ -33420,7 +33430,7 @@ var package_default;
33420
33430
  var init_package = __esm(() => {
33421
33431
  package_default = {
33422
33432
  name: "allagents",
33423
- version: "1.0.8",
33433
+ version: "1.0.9",
33424
33434
  description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
33425
33435
  type: "module",
33426
33436
  bin: {
@@ -36531,8 +36541,6 @@ var addCmd = import_cmd_ts3.command({
36531
36541
  try {
36532
36542
  let skill = skillArg;
36533
36543
  let from = fromArg;
36534
- const isUser = scope === "user" || !scope && resolveScope(process.cwd()) === "user";
36535
- const workspacePath = isUser ? getHomeDir() : process.cwd();
36536
36544
  const urlResolved = resolveSkillFromUrl(skill);
36537
36545
  if (urlResolved) {
36538
36546
  if (from) {
@@ -36551,6 +36559,9 @@ var addCmd = import_cmd_ts3.command({
36551
36559
  skill = urlResolved.skill;
36552
36560
  }
36553
36561
  }
36562
+ const hasFromSource = Boolean(from);
36563
+ const isUser = scope === "user" || !scope && !hasFromSource && resolveScope(process.cwd()) === "user";
36564
+ const workspacePath = isUser ? getHomeDir() : process.cwd();
36554
36565
  const matches = await findSkillByName(skill, workspacePath);
36555
36566
  if (matches.length === 0) {
36556
36567
  if (from) {
@@ -37462,7 +37473,8 @@ var pluginInstallCmd = import_cmd_ts4.command({
37462
37473
  }
37463
37474
  }
37464
37475
  const allSkills = await getAllSkillsFromPlugins(workspacePath);
37465
- const pluginSkills = allSkills.filter((s) => s.pluginSource === displayPlugin);
37476
+ const displayNames = extractPluginNames(displayPlugin);
37477
+ const pluginSkills = allSkills.filter((s) => s.pluginSource === displayPlugin || displayNames.includes(s.pluginName));
37466
37478
  if (pluginSkills.length === 0) {
37467
37479
  if (!isJsonMode()) {
37468
37480
  console.error(`Warning: No skills found in plugin ${displayPlugin}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allagents",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
5
5
  "type": "module",
6
6
  "bin": {