opencode-agents 1.0.11 → 1.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-agents",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "CLI for managing AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -7,7 +7,8 @@ import { discoverFromDirectory } from '../core/discover.js';
7
7
  import { detectPlatforms } from '../utils/filesystem.js';
8
8
  import { logger } from '../utils/logger.js';
9
9
  import type { AgentPlatform, InstallOptions, AgentFile } from '../types/index.js';
10
- import { basename, mkdtempSync, join } from 'path';
10
+ import { basename, join } from 'path';
11
+ import { mkdtempSync } from 'fs';
11
12
  import degit from 'degit';
12
13
 
13
14
  interface AddCommandOptions {
@@ -63,8 +63,8 @@ export async function installAgent(options: InstallOptions): Promise<void> {
63
63
  logger.success(`Symlinked agent "${name}" to ${finalPath}`);
64
64
  } catch (err) {
65
65
  logger.warn(`Failed to create symlink, copying instead: ${err}`);
66
- copyDirectory(sourcePath, join(targetPath, name));
67
- logger.success(`Copied agent "${name}" to ${targetPath}`);
66
+ copyFileSync(sourcePath, finalPath);
67
+ logger.success(`Copied agent "${name}" to ${finalPath}`);
68
68
  }
69
69
  }
70
70
  }