Baileys 6.7.21 silently failed the pairing handshake. Upgrade to 6.17.16 which fixes this. Three related issues: 1. proto is no longer a named ESM export in 6.17.x — use createRequire to import via CJS (matching the proven v1 pattern). 2. Setup auth script didn't handle the 515 stream restart that WhatsApp sends after successful pairing. Refactored to reconnect (matching v1's connectSocket(isReconnect) pattern) instead of hanging until timeout. 3. Added succeeded guard and process.exit(0) to prevent timeout race after successful auth. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
64 lines
1.9 KiB
JSON
64 lines
1.9 KiB
JSON
{
|
|
"name": "nanoclaw",
|
|
"version": "1.2.52",
|
|
"description": "Personal Claude assistant. Lightweight, secure, customizable.",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx src/index.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
"format:fix": "prettier --write \"src/**/*.ts\"",
|
|
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
"prepare": "husky",
|
|
"setup": "tsx setup/index.ts",
|
|
"auth": "tsx src/whatsapp-auth.ts",
|
|
"lint": "eslint src/",
|
|
"lint:fix": "eslint src/ --fix",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@beeper/chat-adapter-matrix": "^0.2.0",
|
|
"@bitbasti/chat-adapter-webex": "^0.1.0",
|
|
"@chat-adapter/discord": "^4.24.0",
|
|
"@chat-adapter/gchat": "^4.24.0",
|
|
"@chat-adapter/github": "^4.24.0",
|
|
"@chat-adapter/linear": "^4.26.0",
|
|
"@chat-adapter/slack": "^4.24.0",
|
|
"@chat-adapter/state-memory": "^4.24.0",
|
|
"@chat-adapter/teams": "^4.24.0",
|
|
"@chat-adapter/telegram": "^4.24.0",
|
|
"@chat-adapter/whatsapp": "^4.24.0",
|
|
"@onecli-sh/sdk": "^0.3.1",
|
|
"@resend/chat-sdk-adapter": "^0.1.1",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@whiskeysockets/baileys": "^6.17.16",
|
|
"better-sqlite3": "11.10.0",
|
|
"chat": "^4.24.0",
|
|
"chat-adapter-imessage": "^0.1.1",
|
|
"cron-parser": "5.5.0",
|
|
"pino": "^9.6.0",
|
|
"qrcode": "^1.5.4"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.35.0",
|
|
"@types/better-sqlite3": "^7.6.12",
|
|
"@types/node": "^22.10.0",
|
|
"eslint": "^9.35.0",
|
|
"eslint-plugin-no-catch-all": "^1.1.0",
|
|
"globals": "^15.12.0",
|
|
"husky": "^9.1.7",
|
|
"prettier": "^3.8.1",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0",
|
|
"typescript-eslint": "^8.35.0",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|