create-openclaw-bot 5.5.0 → 5.6.0

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 (39) hide show
  1. package/README.md +18 -17
  2. package/README.vi.md +18 -17
  3. package/{cli.js → dist/cli.js} +295 -224
  4. package/dist/setup/shared/install-gen.js +485 -0
  5. package/{setup/shared/scaffold-gen.js → dist/setup/shared/workspace-gen.js} +247 -25
  6. package/{setup.js → dist/setup.js} +771 -1158
  7. package/package.json +10 -7
  8. package/.github/workflows/check-openclaw-update.yml +0 -106
  9. package/CHANGELOG.md +0 -602
  10. package/CHANGELOG.vi.md +0 -588
  11. package/docs/SETUP.md +0 -532
  12. package/docs/SETUP.vi.md +0 -439
  13. package/docs/ai-providers.md +0 -144
  14. package/docs/ai-providers.vi.md +0 -144
  15. package/docs/browser-automation-guide.md +0 -207
  16. package/docs/faq.md +0 -63
  17. package/docs/faq.vi.md +0 -63
  18. package/docs/hardware-guide.md +0 -55
  19. package/docs/hardware-guide.vi.md +0 -55
  20. package/docs/install-docker.md +0 -161
  21. package/docs/install-docker.vi.md +0 -161
  22. package/docs/install-native.md +0 -96
  23. package/docs/install-native.vi.md +0 -96
  24. package/docs/preview.png +0 -0
  25. package/docs/skills-plugins-guide.md +0 -126
  26. package/index.html +0 -589
  27. package/old_v510.js +0 -0
  28. package/setup/shared/runtime-gen.js +0 -710
  29. package/style.css +0 -1653
  30. package/upgrade.ps1 +0 -90
  31. package/upgrade.sh +0 -93
  32. /package/{setup → dist/setup}/data/channels.js +0 -0
  33. /package/{setup → dist/setup}/data/header.js +0 -0
  34. /package/{setup → dist/setup}/data/index.js +0 -0
  35. /package/{setup → dist/setup}/data/plugins.js +0 -0
  36. /package/{setup → dist/setup}/data/providers.js +0 -0
  37. /package/{setup → dist/setup}/data/skills.js +0 -0
  38. /package/{setup → dist/setup}/shared/common-gen.js +0 -0
  39. /package/{setup → dist/setup}/shared/docker-gen.js +0 -0
package/upgrade.ps1 DELETED
@@ -1,90 +0,0 @@
1
- # OpenClaw Upgrade Script — Windows (PowerShell)
2
- # Cach dung:
3
- # Nhan dup upgrade.ps1 hoac: .\upgrade.ps1
4
- # irm https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/upgrade.ps1 | iex
5
- # Chi danh cho Windows. Linux/macOS/Ubuntu: dung upgrade.sh
6
-
7
- $ErrorActionPreference = "Stop"
8
-
9
- # ── Version ──────────────────────────────────────────────────────────────────
10
- $VER_STR = ""
11
- try {
12
- if (Test-Path "package.json") {
13
- $pkg = Get-Content "package.json" -Raw | ConvertFrom-Json
14
- if ($pkg.version) { $VER_STR = " v$($pkg.version)" }
15
- }
16
- } catch {}
17
-
18
- # ── Banner: LOGO + BOX ───────────────────────────────────────────────────────
19
- Write-Host ""
20
- $logo = @(
21
- '████████╗██╗ ██╗ █████╗ ███╗ ██╗███╗ ███╗██╗███╗ ██╗██╗ ██╗██╗ ██╗ ██████╗ ██╗ ███████╗',
22
- '╚══██╔══╝██║ ██║██╔══██╗████╗ ██║████╗ ████║██║████╗ ██║██║ ██║██║ ██║██╔═══██╗██║ ██╔════╝',
23
- ' ██║ ██║ ██║███████║██╔██╗ ██║██╔████╔██║██║██╔██╗ ██║███████║███████║██║ ██║██║ █████╗ ',
24
- ' ██║ ██║ ██║██╔══██║██║╚██╗██║██║╚██╔╝██║██║██║╚██╗██║██╔══██║██╔══██║██║ ██║██║ ██╔══╝ ',
25
- ' ██║ ╚██████╔╝██║ ██║██║ ╚████║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║██║ ██║╚██████╔╝███████╗███████╗',
26
- ' ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝'
27
- )
28
- foreach ($l in $logo) { Write-Host $l -ForegroundColor Red }
29
- Write-Host ""
30
-
31
- # Box — node render (handles emoji visual width correctly on all terminals)
32
- $env:L1 = " 🦞 OpenClaw Setup${VER_STR} | Upgrade Script"
33
- $env:L2 = " Windows (PowerShell)"
34
- node -e @"
35
- const RED='`u{1b}[0;31m',NC='`u{1b}[0m';
36
- function vw(s){let w=0;for(const c of[...s]){const cp=c.codePointAt(0);w+=(cp>=0x1F000&&cp<=0x1FFFF?2:1);}return w;}
37
- const L1=process.env.L1,L2=process.env.L2;
38
- const INNER=Math.max(vw(L1),vw(L2))+2;
39
- const D='─'.repeat(INNER);const pad=s=>' '.repeat(Math.max(0,INNER-vw(s)));
40
- console.log(RED+'╭'+D+'╮'+NC);
41
- console.log(RED+'│'+NC+L1+pad(L1)+RED+'│'+NC);
42
- console.log(RED+'│'+NC+L2+pad(L2)+RED+'│'+NC);
43
- console.log(RED+'╰'+D+'╯'+NC);
44
- "@
45
- Write-Host ""
46
-
47
- # ── 1. Kiem tra Node.js ──────────────────────────────────────────────────────
48
- if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
49
- Write-Host " ❌ Khong tim thay Node.js." -ForegroundColor Red
50
- Write-Host " Tai LTS: https://nodejs.org/" -ForegroundColor Yellow
51
- Read-Host "Nhan Enter de dong"; exit 1
52
- }
53
- $nodeVer = node -e "process.stdout.write(process.version)"
54
- Write-Host " ✅ Node.js $nodeVer" -ForegroundColor Green
55
-
56
- # ── 2. Xac dinh thu muc project ──────────────────────────────────────────────
57
- $ScriptDir = $PSScriptRoot
58
- if (-not $ScriptDir -or $ScriptDir -eq "") {
59
- $ProjectDir = (Get-Location).Path
60
- } elseif ((Test-Path (Join-Path $ScriptDir ".openclaw")) -or (Test-Path (Join-Path $ScriptDir "docker"))) {
61
- $ProjectDir = $ScriptDir
62
- } else {
63
- $ProjectDir = (Get-Location).Path
64
- }
65
- Write-Host " 📁 Project: $ProjectDir" -ForegroundColor DarkGray
66
- Write-Host ""
67
- Set-Location $ProjectDir
68
-
69
- # ── 3. Chay upgrade ──────────────────────────────────────────────────────────
70
- Write-Host " 🔄 Dang lay CLI moi nhat va chay upgrade..." -ForegroundColor Cyan
71
- Write-Host " npx luon tai create-openclaw-bot@latest — khong can cap nhat tay" -ForegroundColor DarkGray
72
- Write-Host ""
73
-
74
- try {
75
- & npx create-openclaw-bot@latest upgrade
76
- $exitCode = $LASTEXITCODE
77
- } catch {
78
- Write-Host " ❌ Loi: $_" -ForegroundColor Red
79
- Read-Host "Nhan Enter de dong"; exit 1
80
- }
81
-
82
- Write-Host ""
83
- if ($exitCode -eq 0) {
84
- Write-Host " 🎉 Upgrade hoan tat!" -ForegroundColor Green
85
- Write-Host " Dashboard: http://localhost:18791" -ForegroundColor Cyan
86
- } else {
87
- Write-Host " ⚠️ Ma loi: $exitCode — xem log o tren." -ForegroundColor Yellow
88
- }
89
- Write-Host ""
90
- Read-Host "Nhan Enter de dong"
package/upgrade.sh DELETED
@@ -1,93 +0,0 @@
1
- #!/bin/bash
2
- # OpenClaw Upgrade Script — Linux / macOS / Ubuntu
3
- # Cach dung:
4
- # bash upgrade.sh
5
- # curl -fsSL https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/upgrade.sh | bash
6
- # wget -qO- https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/upgrade.sh | bash
7
-
8
- set -e
9
-
10
- RED='\033[0;31m'
11
- GREEN='\033[0;32m'
12
- CYAN='\033[0;36m'
13
- YELLOW='\033[1;33m'
14
- GRAY='\033[0;90m'
15
- NC='\033[0m'
16
-
17
- # ── Version ──────────────────────────────────────────────────────────────────
18
- VER=""
19
- if [ -f "package.json" ] && command -v node &>/dev/null; then
20
- VER=$(node -p "try{JSON.parse(require('fs').readFileSync('package.json','utf8')).version}catch(e){''}" 2>/dev/null || true)
21
- fi
22
- [ -n "$VER" ] && VER_STR=" v${VER}" || VER_STR=""
23
-
24
- # ── Banner: LOGO + BOX ───────────────────────────────────────────────────────
25
- echo -e "${RED}"
26
- echo '████████╗██╗ ██╗ █████╗ ███╗ ██╗███╗ ███╗██╗███╗ ██╗██╗ ██╗██╗ ██╗ ██████╗ ██╗ ███████╗'
27
- echo '╚══██╔══╝██║ ██║██╔══██╗████╗ ██║████╗ ████║██║████╗ ██║██║ ██║██║ ██║██╔═══██╗██║ ██╔════╝'
28
- echo ' ██║ ██║ ██║███████║██╔██╗ ██║██╔████╔██║██║██╔██╗ ██║███████║███████║██║ ██║██║ █████╗ '
29
- echo ' ██║ ██║ ██║██╔══██║██║╚██╗██║██║╚██╔╝██║██║██║╚██╗██║██╔══██║██╔══██║██║ ██║██║ ██╔══╝ '
30
- echo ' ██║ ╚██████╔╝██║ ██║██║ ╚████║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║██║ ██║╚██████╔╝███████╗███████╗'
31
- echo ' ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝'
32
- echo -e "${NC}"
33
-
34
- # Box — node render (handles emoji visual width correctly on all terminals)
35
- L1=" 🦞 OpenClaw Setup${VER_STR} | Upgrade Script"
36
- L2=" Linux / macOS / Ubuntu"
37
- L1="$L1" L2="$L2" node -e "
38
- const RED='\x1b[0;31m',NC='\x1b[0m';
39
- function vw(s){let w=0;for(const c of[...s]){const cp=c.codePointAt(0);w+=(cp>=0x1F000&&cp<=0x1FFFF?2:1);}return w;}
40
- const L1=process.env.L1,L2=process.env.L2;
41
- const INNER=Math.max(vw(L1),vw(L2))+2;
42
- const D='─'.repeat(INNER);const pad=s=>' '.repeat(Math.max(0,INNER-vw(s)));
43
- console.log(RED+'╭'+D+'╮'+NC);
44
- console.log(RED+'│'+NC+L1+pad(L1)+RED+'│'+NC);
45
- console.log(RED+'│'+NC+L2+pad(L2)+RED+'│'+NC);
46
- console.log(RED+'╰'+D+'╯'+NC);
47
- "
48
- echo ""
49
-
50
- # ── 1. Kiem tra Node.js ──────────────────────────────────────────────────────
51
- if ! command -v node &> /dev/null; then
52
- echo -e "${RED} ❌ Khong tim thay Node.js.${NC}"
53
- echo -e "${YELLOW} Cai dat: https://nodejs.org/${NC}"
54
- echo ""
55
- echo -e "${GRAY} Ubuntu/Debian:${NC}"
56
- echo -e "${GRAY} curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -${NC}"
57
- echo -e "${GRAY} sudo apt-get install -y nodejs${NC}"
58
- exit 1
59
- fi
60
- NODE_VER=$(node -e "process.stdout.write(process.version)")
61
- echo -e "${GREEN} ✅ Node.js ${NODE_VER}${NC}"
62
-
63
- # ── 2. Xac dinh thu muc project ──────────────────────────────────────────────
64
- if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
65
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
66
- if [ -d "$SCRIPT_DIR/.openclaw" ] || [ -d "$SCRIPT_DIR/docker" ]; then
67
- PROJECT_DIR="$SCRIPT_DIR"
68
- else
69
- PROJECT_DIR="$PWD"
70
- fi
71
- else
72
- PROJECT_DIR="$PWD"
73
- fi
74
- echo -e "${GRAY} 📁 Project: $PROJECT_DIR${NC}"
75
- echo ""
76
- cd "$PROJECT_DIR"
77
-
78
- # ── 3. Chay upgrade ──────────────────────────────────────────────────────────
79
- echo -e "${CYAN} 🔄 Dang lay CLI moi nhat va chay upgrade...${NC}"
80
- echo -e "${GRAY} npx luon tai create-openclaw-bot@latest — khong can cap nhat tay${NC}"
81
- echo ""
82
-
83
- npx create-openclaw-bot@latest upgrade
84
- EXIT_CODE=$?
85
-
86
- echo ""
87
- if [ $EXIT_CODE -eq 0 ]; then
88
- echo -e "${GREEN} 🎉 Upgrade hoan tat!${NC}"
89
- echo -e "${CYAN} Dashboard: http://localhost:18791${NC}"
90
- else
91
- echo -e "${YELLOW} ⚠️ Ma loi: $EXIT_CODE — xem log o tren.${NC}"
92
- fi
93
- echo ""
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes