@tina_summer/codepocket 2.6.4 → 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 +5 -0
- package/package.json +5 -5
package/bin/codepocket.js
CHANGED
|
@@ -336,6 +336,11 @@ 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
345
|
// Must match miniprogram/utils/config.local.js default — otherwise new users running
|
|
341
346
|
// `codepocket --key XXX` (no --relay) silently fail to connect.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tina_summer/codepocket",
|
|
3
|
-
"version": "2.6.
|
|
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.
|
|
24
|
-
"@tina_summer/codepocket-darwin-x64": "2.6.
|
|
25
|
-
"@tina_summer/codepocket-linux-x64": "2.6.
|
|
26
|
-
"@tina_summer/codepocket-win32-x64": "2.6.
|
|
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"
|