@tina_summer/codepocket 2.1.2 → 2.1.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.
package/bin/codepocket.js CHANGED
@@ -77,7 +77,8 @@ const CONNECT_ONLY = ['connect', 'c'].includes(args[0])
77
77
  const filteredArgs = CONNECT_ONLY ? args.slice(1) : args
78
78
 
79
79
  let hubUrl = process.env.CPKT_HUB_URL || process.env.HAPI_HUB_URL || 'http://127.0.0.1:3006'
80
- let relayUrl = process.env.RELAY_WS_URL || process.env.RELAY_URL || ''
80
+ const DEFAULT_RELAY_URL = 'wss://bkstory.cn/ws'
81
+ let relayUrl = process.env.RELAY_WS_URL || process.env.RELAY_URL || DEFAULT_RELAY_URL
81
82
  let relayKey = process.env.RELAY_KEY || ''
82
83
  let noHub = false
83
84
 
@@ -431,15 +432,9 @@ async function run() {
431
432
  }
432
433
  }
433
434
 
434
- // 1.5 Relay URL (prompt if missing)
435
+ // 1.5 Relay URL (default: wss://bkstory.cn/ws)
435
436
  if (!relayUrl) {
436
- relayUrl = await new Promise((resolve) => {
437
- const rl = readline.createInterface({ input: process.stdin, output: process.stdout })
438
- rl.question(' Relay URL (如 wss://example.com/ws): ', (answer) => {
439
- rl.close()
440
- resolve(answer.trim())
441
- })
442
- })
437
+ relayUrl = DEFAULT_RELAY_URL
443
438
  }
444
439
 
445
440
  if (relayKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tina_summer/codepocket",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "CodePocket — 你的全能 AI 随身控制台",
5
5
  "bin": {
6
6
  "codepocket": "bin/codepocket.js",