Commit graph

3 commits

Author SHA1 Message Date
b609d4c896 Phase 3: Task queue, behavior engine, trait-driven decisions
- TaskQueue with 6 priority levels (IDLE → CRITICAL)
- BehaviorEngine generates tasks based on persona traits:
  - Survival: flee (bravery-weighted), eat, seek shelter (anxiety)
  - Combat: attack hostiles (bravery threshold)
  - Social: follow players (sociability), approach for interaction
  - Exploration: read signs, check containers, wander (curiosity range)
  - Organization: inventory management (OCD quirk)
  - Idle: look around, unprompted chat (chatty_cathy)
- Brain rewritten to use scan → generate → execute loop
- New bridge actions: open_chest, close_container, transfer_item,
  scan_surroundings, find_blocks, attack_nearest_hostile,
  list_recipes, craft_item, use_block, drop_item
- Traits influence: flee distance, wander range, combat willingness,
  social approach frequency, container curiosity
- Brain passes persona traits from database to behavior engine
- Unprompted AI chat via wants_ai_chat signal

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:48:15 -05:00
8f616598fd Fix chat, brain stability, MariaDB reconnect, suppress warnings
- Listen on raw 'text' packet for Bedrock chat (pattern-based chat event
  doesn't fire reliably on Bedrock)
- Brain: add safety reset for stuck pending_status flag
- MariaDB: add retry-on-disconnect for all query methods
- Suppress harmless punycode deprecation warning from Node.js
- Add mineflayer-bedrock lib packages (mineflayer, prismarine-chunk,
  prismarine-registry) for movement support
- Exclude minecraft-data from git (278MB, installed via npm)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:33:17 -05:00
d0a96ce028 Rebuild bridge on mineflayer-bedrock — real movement!
- Replace raw bedrock-protocol packets with mineflayer-bedrock
- Movement uses pathfinder (setGoal/GoalNear) — works on server-auth BDS
- No cheats, no OP, no teleports — Doug walks like a real player
- Bridge is now plain JS (no TypeScript) with Node 22
- Brain uses move_to with pathfinder instead of fake teleport steps
- Fix MariaDB connection timeout with auto-reconnect
- Tested: bot spawns and walks on vanilla BDS 1.26.11

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:56:56 -05:00