Files
javis_bot/bot/package.json
javis-bot 03375a77d0 fix(docker+brain): make container Chrome search work, harden, improve toggle
Addresses review findings on the dockerized stack:
- Container Chrome search was dead: add --remote-debugging-port + a non-default
  --user-data-dir (Chrome 136+ refuses CDP on the default profile), add the
  playwright dep (browse-search.mjs connectOverCDP) with browser download
  skipped, and connect to 127.0.0.1 not "localhost" (container localhost -> ::1
  while Chrome binds IPv4). Verified: browse-search returns real results.
- Broadcast toggle reliability: always offer setBroadcast in screen-share mode
  (the embedding/keyword router dropped it for non-English utterances) and make
  its description force a tool call. "방송 꺼줘"->stop now 5/5; no false triggers.
- Stop the broadcast on voice leave (no orphaned stream).
- Security: bind VNC/noVNC to loopback by default (VNC_BIND override) and the
  bridge to the container loopback (BRIDGE_HOST=127.0.0.1), not published.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-11 10:44:56 +09:00

38 lines
970 B
JSON

{
"name": "javis-bot",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Discord-native voice/video front-end for the Jarvis brain (bun + discord.js)",
"scripts": {
"start": "bun run src/index.ts",
"register": "bun run src/register-commands.ts",
"token": "bun run src/get-token.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@discordjs/voice": "^0.18.0",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"libsodium-wrappers": "^0.7.15",
"opusscript": "^0.1.1",
"playwright": "^1.60.0",
"prism-media": "^1.3.5",
"qrcode": "^1.5.4"
},
"optionalDependencies": {
"@dank074/discord-video-stream": "^6.0.0",
"discord.js-selfbot-v13": "^3.7.1"
},
"devDependencies": {
"@types/bun": "^1.3.14",
"@types/node": "^22.7.0",
"@types/qrcode": "^1.5.6",
"typescript": "^5.6.3"
},
"trustedDependencies": [
"@lng2004/node-datachannel",
"node-av"
]
}