feat(runtime): survival-bot pivot — MC chat is dialog-only (Phase 0) (#12)
Phase 0 of plans/autonomous-survival-bot-prd.md: change the product direction from operator-driven remote control to autonomous survival resident. MC chat is dialog-only for everyone, including OPERATOR_USERNAMES — commands like come/follow/build/pause/stop are recorded in the diary but not dispatched. TUI remains the only local control plane. Runtime changes: - Remove operatorGoalReflex from reflex.js (the come-here chat command). - Replace handleOperatorChat in bot.js with a dialog-only handleChat that answers greetings/status questions and records command-like verbs (en+ru) without dispatching them. - Default MC_VERSION to "auto" in runtime/config.js; mineflayer receives `false` to trigger version auto-detection. - Update auto-escalation prompt's reflex chain summary. Docs: - AGENTS.md: product pivot notice up top; chat-driven scope-trust is flagged as legacy/Pi-only. - README.md / docs/runtime.md: replace operator-chat command list with dialog-only description; update reflex chain summary. - docs/roadmap.md: Phase 2/3 marked superseded by the PRD where they assumed chat-driven control. Co-authored-by: Yuriy Mayatnikov <mayatnikov@me.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #12.
This commit is contained in:
+10
-1
@@ -22,11 +22,20 @@ const host = req("MC_HOST");
|
||||
const port = Number.parseInt(opt("MC_PORT", "25565"), 10);
|
||||
const username = req("MC_USERNAME");
|
||||
|
||||
// MC_VERSION: "auto" (or empty) lets mineflayer auto-detect from the server
|
||||
// handshake — the right default per the survival-bot PRD (no hard-coded modern
|
||||
// version unless the server requires pinning). Mineflayer accepts `false` to
|
||||
// auto-detect, so we translate "auto" into false at the boundary; the original
|
||||
// string is preserved for logging.
|
||||
const rawVersion = opt("MC_VERSION", "auto");
|
||||
const mineflayerVersion = rawVersion.toLowerCase() === "auto" ? false : rawVersion;
|
||||
|
||||
export const config = Object.freeze({
|
||||
host,
|
||||
port,
|
||||
username,
|
||||
version: opt("MC_VERSION", "1.21.5"),
|
||||
version: rawVersion,
|
||||
mineflayerVersion,
|
||||
authMode: opt("MC_AUTH_MODE", "offline"),
|
||||
authmePassword: opt("MC_AUTHME_PASSWORD", ""),
|
||||
operators: opt("OPERATOR_USERNAMES", "")
|
||||
|
||||
Reference in New Issue
Block a user