create-openclaw-bot 5.2.3 → 5.3.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.
@@ -251,7 +251,7 @@ checks.push(() => expect(
251
251
 
252
252
  checks.push(() => expectMatch(
253
253
  cli,
254
- /channelKey === 'zalo-personal'\) \{\s*botConfig\.channels\['zalouser'\] = \{\s*enabled: true,\s*dmPolicy: 'open',\s*autoReply: true/s,
254
+ /hasZaloPersonal\(channelKey\)\) \{[\s\S]*botConfig\.channels\['zalouser'\] = \{\s*enabled: true,\s*dmPolicy: 'open',\s*allowFrom: \['\*'\]/s,
255
255
  'CLI must configure Zalo Personal under channels.zalouser'
256
256
  ));
257
257
 
@@ -269,7 +269,7 @@ checks.push(() => expectMatch(
269
269
 
270
270
  checks.push(() => expectMatch(
271
271
  cli,
272
- /function resolveNative9RouterDesktopLaunch\(\) \{[\s\S]*resolveCommandOnPath\('9router'\)[\s\S]*command: routerBin[\s\S]*args: \['-n', '-l', '-H', '0\.0\.0\.0', '-p', '20128', '--skip-update'\][\s\S]*PORT: '20128'[\s\S]*HOSTNAME: '0\.0\.0\.0'/s,
272
+ /function resolveNative9RouterDesktopLaunch\(\) \{[\s\S]*resolveCommandOnPath\('9router'\)[\s\S]*command: routerBin[\s\S]*args: \['-n', '-H', '0\.0\.0\.0', '-p', '20128', '--skip-update'\][\s\S]*PORT: '20128'[\s\S]*HOSTNAME: '0\.0\.0\.0'/s,
273
273
  'Native desktop 9Router launch must use the 9router CLI binary directly with server args to bypass the interactive menu'
274
274
  ));
275
275
 
@@ -299,7 +299,7 @@ checks.push(() => expectMatch(
299
299
 
300
300
  checks.push(() => expectMatch(
301
301
  cli,
302
- /if \(channelKey === 'zalo-personal'\) \{\s*await runNativeZaloPersonalLoginFlow\(\{ isVi, projectDir \}\);\s*\}[\s\S]*const child = spawn\('openclaw', \['gateway', 'run'\], \{/s,
302
+ /if \(hasZaloPersonal\(channelKey\)\) \{\s*await runNativeZaloPersonalLoginFlow\(\{ isVi, projectDir \}\);\s*\}[\s\S]*const child = spawn\('openclaw', \['gateway', 'run'\], \{/s,
303
303
  'Native desktop flows must finish the Zalo login flow before starting openclaw in foreground'
304
304
  ));
305
305
 
@@ -391,12 +391,11 @@ checks.push(() => expect(
391
391
  && setup.includes('function native9RouterServerEntryLookup() {')
392
392
  && setup.includes('return "node -e ')
393
393
  && !setup.includes('return "node -p ')
394
- && setup.includes('function windowsHiddenNodeLaunch(targetPath, extraEnv = {}) {')
395
- && setup.includes('NINE_ROUTER_ENTRY=%%I')
396
- && setup.includes("windowsHiddenNodeLaunch('%NINE_ROUTER_ENTRY%', { PORT: '20128', HOSTNAME: '0.0.0.0', DATA_DIR: '%DATA_DIR%' })")
397
- && setup.includes('NINE_ROUTER_ENTRY="$(${native9RouterServerEntryLookup()})"')
394
+ && setup.includes("start \"9Router Dashboard\" /min cmd /c")
395
+ && setup.includes("9router -n -H 0.0.0.0 -p 20128 --skip-update")
396
+ && setup.includes('NINE_ROUTER_BIN="$(command -v 9router)"')
397
+ && setup.includes('"$NINE_ROUTER_BIN" -n -H 0.0.0.0 -p 20128 --skip-update')
398
398
  && setup.includes("const p=path.join(process.env.DATA_DIR||'.9router','db.json');")
399
- && setup.includes('nohup env PORT=20128 HOSTNAME=0.0.0.0 DATA_DIR="$PWD/.9router" node "$NINE_ROUTER_ENTRY" >/tmp/9router.log 2>&1 &')
400
399
  && setup.includes('nohup env DATA_DIR="$PWD/.9router" node ./.openclaw/9router-smart-route-sync.js >/tmp/9router-sync.log 2>&1 &')
401
400
  && setup.includes('set "PROJECT_DIR=')
402
401
  && setup.includes('set "OPENCLAW_HOME=%PROJECT_DIR%\\\\.openclaw"')
@@ -423,9 +422,9 @@ checks.push(() => expect(
423
422
  && setup.includes("state.bots[state.activeBotIndex].model = p.models[0].id;")
424
423
  && setup.includes("state.bots[state.activeBotIndex].provider = state.config.provider;")
425
424
  && setup.includes("state.bots[state.activeBotIndex].model = state.config.model;")
426
- && setup.includes("if (state.botCount <= 1 && state.bots[state.activeBotIndex]) {")
427
- && setup.includes("state.bots[state.activeBotIndex].token = botTokenEl.value;")
428
- && setup.includes("state.bots[state.activeBotIndex].apiKey = apiKeyEl.value;")
425
+ && setup.includes("if (state.botCount <= 1 && state.bots[0]) {")
426
+ && setup.includes("state.bots[0].token = botTokenEl.value;")
427
+ && setup.includes("state.bots[0].apiKey = apiKeyEl.value;")
429
428
  && setup.includes("const authProviderName = provider.isProxy ? '9router' : state.config.provider;")
430
429
  && setup.includes("const authProviderName = botProvider.isProxy ? '9router' : (bot.provider || state.config.provider);")
431
430
  && setup.includes("const nativeSkillConfigs = state.config.skills")