opencode-agents 1.0.13 → 1.0.15

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 CHANGED
@@ -25202,7 +25202,7 @@ import { existsSync as existsSync4, rmSync as rmSync3 } from "fs";
25202
25202
 
25203
25203
  // src/core/installer.ts
25204
25204
  import { join as join3, basename as basename3 } from "path";
25205
- import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3, copyFileSync as copyFileSync2, symlinkSync as symlinkSync2, rmSync as rmSync2 } from "fs";
25205
+ import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3, copyFileSync as copyFileSync2, rmSync as rmSync2 } from "fs";
25206
25206
  import { tmpdir } from "os";
25207
25207
  import { mkdtempSync } from "fs";
25208
25208
 
@@ -25943,26 +25943,13 @@ async function installAgent(options2) {
25943
25943
  logger.warn(`Agent "${name}" already exists at ${finalPath}`);
25944
25944
  continue;
25945
25945
  }
25946
- if (copy) {
25947
- const sourcePath2 = agentFile.path;
25948
- if (isDirectory(sourcePath2)) {
25949
- copyDirectory(sourcePath2, join3(targetPath, name));
25950
- } else {
25951
- copyFileSync2(sourcePath2, finalPath);
25952
- }
25953
- logger.success(`Copied agent "${name}" to ${finalPath}`);
25946
+ const sourcePath2 = agentFile.path;
25947
+ if (isDirectory(sourcePath2)) {
25948
+ copyDirectory(sourcePath2, join3(targetPath, name));
25954
25949
  } else {
25955
- const sourcePath2 = agentFile.path;
25956
- const linkType = isDirectory(sourcePath2) ? "dir" : "file";
25957
- try {
25958
- symlinkSync2(sourcePath2, finalPath, linkType);
25959
- logger.success(`Symlinked agent "${name}" to ${finalPath}`);
25960
- } catch (err) {
25961
- logger.warn(`Failed to create symlink, copying instead: ${err}`);
25962
- copyFileSync2(sourcePath2, finalPath);
25963
- logger.success(`Copied agent "${name}" to ${finalPath}`);
25964
- }
25950
+ copyFileSync2(sourcePath2, finalPath);
25965
25951
  }
25952
+ logger.success(`Copied agent "${name}" to ${finalPath}`);
25966
25953
  }
25967
25954
  }
25968
25955
  }
@@ -26353,7 +26340,7 @@ async function updateCommand() {
26353
26340
  var program2 = new Command();
26354
26341
  program2.name("agents").description("CLI for managing AI coding agents").version("1.0.0");
26355
26342
  program2.command("add <source>").description("Install one or more agents from a GitHub repository or local path").option("-g, --global", "Install to global directory", false).option("-a, --agent <agents...>", "Target agent platform(s)").option("--agent-name <name>", "Name for the installed agent").option("-y, --yes", "Skip confirmation", false).option("--copy", "Copy instead of symlink", false).action(addCommand);
26356
- program2.command("list").description("List installed agents").option("-g, --global", "List only global agents").option("-a, --agent <agent>", "Filter by platform").action(listCommand);
26343
+ program2.command("list").alias("ls").description("List installed agents").option("-g, --global", "List only global agents").option("-a, --agent <agent>", "Filter by platform").action(listCommand);
26357
26344
  program2.command("remove <name>").description("Remove an installed agent").option("-g, --global", "Remove from global directory").option("-a, --agent <agent>", "Remove from specific platform").action(removeCommand);
26358
26345
  program2.command("init [name]").description("Create a new agent definition template").action(initCommand);
26359
26346
  program2.command("find [query]").description("Search for available agents").action(findCommand);