@super-pocock-ai/suite 2.0.18 → 2.0.20

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 +9 -3
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -4,7 +4,12 @@ import { fileURLToPath } from 'url'
4
4
  import { execSync } from 'child_process'
5
5
 
6
6
  const __dirname = dirname(fileURLToPath(import.meta.url))
7
- const SUITE_VERSION = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8')).version
7
+
8
+ // Read version from config directory (not cache) to ensure latest version
9
+ const configSuitePath = join(process.env.HOME, '.config', 'opencode', 'node_modules', '@super-pocock-ai', 'suite', 'package.json')
10
+ const SUITE_VERSION = existsSync(configSuitePath)
11
+ ? JSON.parse(readFileSync(configSuitePath, 'utf-8')).version
12
+ : JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8')).version
8
13
 
9
14
  export const SuperPocockSuite = async ({ project, client, $, directory, worktree }) => {
10
15
  const agentsDir = join(process.env.HOME, '.config', 'opencode', 'agents')
@@ -139,7 +144,8 @@ export const SuperPocockSuite = async ({ project, client, $, directory, worktree
139
144
  })
140
145
 
141
146
  try {
142
- execSync('npm update @super-pocock-ai/suite --save', {
147
+ // Use npm install with @latest to get the latest version
148
+ execSync('npm install @super-pocock-ai/suite@latest --save', {
143
149
  cwd: join(process.env.HOME, '.config', 'opencode'),
144
150
  stdio: 'pipe'
145
151
  })
@@ -159,7 +165,7 @@ export const SuperPocockSuite = async ({ project, client, $, directory, worktree
159
165
  body: {
160
166
  service: 'super-pocock-suite',
161
167
  level: 'warn',
162
- message: `Auto-update failed: ${e.message}. Please run: rm -rf ~/.cache/opencode/node_modules`
168
+ message: `Auto-update failed: ${e.message}. Please run: opencode plugin @super-pocock-ai/suite -g -f`
163
169
  }
164
170
  })
165
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-pocock-ai/suite",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "Superpocock 完整套件,包含记忆系统和工作流",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,10 +13,10 @@
13
13
  "postinstall": "node postinstall.js"
14
14
  },
15
15
  "dependencies": {
16
- "@super-pocock-ai/memory-core": "2.0.18",
17
- "@super-pocock-ai/memory-agents": "2.0.18",
18
- "@super-pocock-ai/compose-workflow": "2.0.18",
19
- "@super-pocock-ai/compose-agents": "2.0.18"
16
+ "@super-pocock-ai/memory-core": "2.0.20",
17
+ "@super-pocock-ai/memory-agents": "2.0.20",
18
+ "@super-pocock-ai/compose-workflow": "2.0.20",
19
+ "@super-pocock-ai/compose-agents": "2.0.20"
20
20
  },
21
21
  "keywords": [
22
22
  "opencode",