opencode-agents 1.0.12 → 1.0.14

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
- copyDirectory(sourcePath2, join3(targetPath, name));
25963
- logger.success(`Copied agent "${name}" to ${targetPath}`);
25964
- }
25950
+ copyFileSync2(sourcePath2, finalPath);
25965
25951
  }
25952
+ logger.success(`Copied agent "${name}" to ${finalPath}`);
25966
25953
  }
25967
25954
  }
25968
25955
  }