@super-pocock-ai/suite 2.0.2 → 2.0.3

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/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,8 +2,6 @@ import { readFileSync, writeFileSync, mkdirSync, existsSync, readdirSync } from
2
2
  import { join, dirname } from 'path'
3
3
  import { fileURLToPath } from 'url'
4
4
 
5
- const __dirname = dirname(fileURLToPath(import.meta.url))
6
-
7
5
  export const SuperPocockSuite = async ({ project, client, $, directory, worktree }) => {
8
6
  const agentsDir = join(process.env.HOME, '.config', 'opencode', 'agents')
9
7
 
@@ -11,7 +9,8 @@ export const SuperPocockSuite = async ({ project, client, $, directory, worktree
11
9
  mkdirSync(agentsDir, { recursive: true })
12
10
  }
13
11
 
14
- const composeAgentsDir = join(__dirname, 'node_modules', '@super-pocock-ai', 'compose-agents', 'agents')
12
+ const configDir = join(process.env.HOME, '.config', 'opencode', 'node_modules')
13
+ const composeAgentsDir = join(configDir, '@super-pocock-ai', 'compose-agents', 'agents')
15
14
 
16
15
  if (existsSync(composeAgentsDir)) {
17
16
  const files = readdirSync(composeAgentsDir)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-pocock-ai/suite",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Superpocock 完整套件,包含记忆系统和工作流",
5
5
  "type": "module",
6
6
  "main": "index.js",