@tina_summer/codepocket 2.6.3 → 2.6.5

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/bin/codepocket.js CHANGED
@@ -336,8 +336,15 @@ if (args[0] === 'status') {
336
336
  const CONNECT_ONLY = ['connect', 'c'].includes(args[0])
337
337
  const filteredArgs = CONNECT_ONLY ? args.slice(1) : args
338
338
 
339
+ if (filteredArgs.includes('--version') || filteredArgs.includes('-v')) {
340
+ console.log(require('../package.json').version)
341
+ process.exit(0)
342
+ }
343
+
339
344
  let hubUrl = process.env.CPKT_HUB_URL || process.env.HAPI_HUB_URL || 'http://127.0.0.1:3006'
340
- const DEFAULT_RELAY_URL = ''
345
+ // Must match miniprogram/utils/config.local.js default — otherwise new users running
346
+ // `codepocket --key XXX` (no --relay) silently fail to connect.
347
+ const DEFAULT_RELAY_URL = 'wss://bkstory.cn/ws'
341
348
  let relayUrl = process.env.RELAY_WS_URL || process.env.RELAY_URL || DEFAULT_RELAY_URL
342
349
  let relayKey = process.env.RELAY_KEY || ''
343
350
  let noHub = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tina_summer/codepocket",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
4
4
  "description": "CodePocket — 基于ClaudeCode的微信小程序工作台",
5
5
  "bin": {
6
6
  "codepocket": "bin/codepocket.js",
@@ -20,10 +20,10 @@
20
20
  "ws": "^8.18.0"
21
21
  },
22
22
  "optionalDependencies": {
23
- "@tina_summer/codepocket-darwin-arm64": "2.6.3",
24
- "@tina_summer/codepocket-darwin-x64": "2.6.3",
25
- "@tina_summer/codepocket-linux-x64": "2.6.3",
26
- "@tina_summer/codepocket-win32-x64": "2.6.3"
23
+ "@tina_summer/codepocket-darwin-arm64": "2.6.5",
24
+ "@tina_summer/codepocket-darwin-x64": "2.6.5",
25
+ "@tina_summer/codepocket-linux-x64": "2.6.5",
26
+ "@tina_summer/codepocket-win32-x64": "2.6.5"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=18"