Commit graph

515 commits

Author SHA1 Message Date
yuanbo
f654d175f8
fix(telegram-bot): fix velin rendering, action loop, and LLM compatibility (#1333) 2026-03-13 18:31:31 +08:00
Neko Ayaka
da62f1c16b
release: v0.9.0-alpha.14 2026-03-12 01:48:21 +08:00
Neko Ayaka
53f79713d7
release: v0.9.0-alpha.13 2026-03-11 19:36:13 +08:00
Qiaochu Hu
5157b9c445
fix(services): resolve lint issues (#1261)
* fix: resolve lint issues

## Summary

Fix lint issues identified by the linter.

## Changes

- **app.js**: Use `Number.isNaN()` instead of global `isNaN()`
- **app.js**: Prefix unused variable `result` with underscore
- **scheduler.ts**: Remove unused variable `log`

## Details

- `Number.isNaN()` is the preferred way to check for NaN in modern JavaScript
- Unused variables are flagged by the linter and should be removed or prefixed with underscore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Apply suggestion from @gemini-code-assist[bot]

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: hobostay <hobostay@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Garfield Lee <Garfield550@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-03-11 17:15:56 +08:00
Neko Ayaka
96d3149909
release: v0.9.0-alpha.12 2026-03-11 04:35:37 +08:00
Neko Ayaka
208ff1d8a5
release: v0.9.0-alpha.11 2026-03-11 02:03:28 +08:00
Neko Ayaka
a2da08f2ce
fix(stage-tamagotchi): should handle EADDRINUSE, bug of srvx, robust for server channel restart, injeca fix 2026-03-10 23:47:39 +08:00
LemonNeko
38d41cca84
release: v0.9.0-alpha.10 2026-03-10 22:32:07 +08:00
Neko Ayaka
03a38f9e0c
release: v0.9.0-alpha.9 2026-03-10 19:33:11 +08:00
LemonNeko
7daaeece46
release: v0.9.0-alpha.8 2026-03-10 18:42:35 +08:00
Neko Ayaka
a5cca0225b
release: v0.9.0-alpha.7 2026-03-10 17:47:25 +08:00
Neko Ayaka
f6fe68b167
style(discord-bot): updated 2026-03-10 02:40:23 +08:00
Neko Ayaka
84dc6c7473
docs(discord-bot): updated README.md 2026-03-10 01:59:26 +08:00
Neko Ayaka
03188f9855
release: v0.9.0-alpha.6 2026-03-10 01:29:38 +08:00
Kunal Bhujbal
57b04d957b
fix(minecraft): add stop method to Ticker to prevent resource leak (#1213) 2026-03-09 20:45:46 +08:00
Jason
3e723abad9
fix(discord): prevent VoiceManager memory leaks on join/leave cycles (#1203) 2026-03-08 18:43:18 +08:00
Rin
7b11d1e0bd
feat(minecraft): disable debug servers by default (#1193) 2026-03-08 18:41:32 +08:00
LemonNeko
583b54bfee
release: v0.9.0-alpha.5 2026-03-08 18:35:38 +08:00
SakataRyuichi
49d57a5b8b
fix(server-runtime): use superjson.parse for incoming WebSocket messages (#1187) 2026-03-08 18:19:38 +08:00
LemonNeko
7b981d08de
release: v0.9.0-alpha.4 2026-03-08 17:37:59 +08:00
LemonNeko
9c514b17f0
release: v0.9.0-alpha.3 2026-03-08 17:20:32 +08:00
Rin
561b608c03
fix(minecraft): downgrade to mitigate upstream issue and mcp cleanup (#1192)
* fix(minecraft): downgrade minecraft-data to 3.102.3

Serialization error for play.toServer : Write error for undefined : The value of "value" is out of range. It must be >= -128 and <= 127. Received 218 stack=RangeError [ERR_OUT_OF_RANGE]: Write error for undefined : The value of "value" is out of range. It must be >= -128 and <= 127. Received 218

* fix(minecraft): close existing MCP transports on client reconnect

Handle client refresh scenarios by closing existing streamable and SSE transports before creating new ones, preventing resource leaks and connection conflicts.
2026-03-08 05:54:49 +08:00
sed-i
19822e3c43
refactor(minecraft): migrate reflex runtime to alien-signals, harden zod validation, and unify skill utilities (#1092)
* chore: use utils

* feat: refactor pathfinding stagnation detection and add navigation tests

* refactor(minecraft): simplify ensure.ts with shared ensureMined helper

* refactor(minecraft): centralize collectible block aliases and extraction flow

- move block collection usage onto the dedicated action module
- extract collectible alias expansion for ores, deepslate variants, and dirt
- keep exact block validation strict while widening collection lookups
- preserve original smelting errors when temporary furnace cleanup fails
- add regression coverage for alias handling and furnace cleanup

* chore: sleep() using shared utils

* refactor(minecraft): container helpers; guarantee close in takeFromChest()

* chore: add unsafe type comment

refactor: zod schema for YAML rule DSL

refactor: zod for hardened config validation

refactor: zod schema for ws client command validation

* refactor(minecraft): alien-signals for reflex context/runtime/manager state

* fix(minecraft): prevent reconnect deadlock before spawn; centralize plugin lifecycle

* fix(minecraft): make command chat listener idempotent across spawn/reconnect

* refactor(minecraft): extract reconnect state machine into connection supervisor; further centralize plugin-related logic

* fix(minecraft): temp type fix

* fix(minecraft): add LLM call timeout/cancel boundaries and ignore pause abort errors

* fix(minecraft): enforce deterministic temporal rule semantics and honor accumulator.mode

* fix(minecraft): preserve callback errors during container cleanup

* fix(minecraft): report EventBus subscriber failures via project logger

* refactor(minecraft): migrate perception temporal accumulator to detector with decision tracing

* feat(minecraft): add detector.groupBy and optimize rule engine detector hot path

* fix(minecraft): bound event queue and temp anti-starvation scheduling

* fix(minecraft): normalize debug dashboard tool param typing

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Neko <neko@ayaka.moe>
Co-authored-by: Rin <shinohara-rin@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-07 03:01:49 +08:00
Neko Ayaka
3605548973
chore: lint & lock 2026-03-06 16:49:31 +08:00
Ryanba
bbf1f19310
fix(telegram-bot): guard structured message fallback (#1162) 2026-03-06 16:48:31 +08:00
Nashchennc
6d3bde1586
refactor(satori-bot): migrate persistence to adapter (#1155) 2026-03-06 13:44:53 +08:00
Neko Ayaka
b24ba8cc26
release: v0.9.0-alpha.2 2026-03-05 15:52:21 +08:00
Neko Ayaka
41940242e0
release: v0.9.0-alpha.1 2026-03-05 03:45:19 +08:00
LemonNeko
a9900b3985
chore: release v0.8.5-beta.4 2026-03-04 21:41:04 +08:00
Neko Ayaka
163957f0f5
release: v0.8.5-beta.3 2026-02-26 23:38:19 +08:00
Neko Ayaka
fec2569bf8
release: v0.8.5-beta.2 2026-02-26 23:30:52 +08:00
Neko Ayaka
f3323df3f8
release: v0.8.5-beta.1 2026-02-26 23:13:03 +08:00
Neko Ayaka
92d87833be
chore(deps): bump dependencies 2026-02-26 18:33:52 +08:00
Rin
a5287c08d2
refactor(minecraft): add ETA-based pathfinding timeout with stuck detection and retry limits
Patches mineflayer-pathfinder to implement estimated-time-of-arrival based navigation timeouts (2× estimated travel time + grace period). Adds stuck detection counter that triggers failure after 3 consecutive resets without progress. Introduces patchedGoto wrapper returning {ok, reason, elapsedMs, estimatedTimeMs, message} for all navigation calls. Updates goToPlayer/goToPosition actions to surface timeout
2026-02-19 00:25:06 +08:00
Rin
91e5158cf3
refactor(minecraft): redesign debug dashboard conversation view with turn-based grouping and context boundary visualization
Replaces flat message list with collapsible turn cards (user+assistant pairs). Parses user messages into tagged sections ([EVENT], [FEEDBACK], [PERCEPTION], etc.) with inline/collapsible rendering based on content type. Adds context status bar showing active context label and archived summaries. Introduces Brain.broadcastConversationState() to emit full context metadata (active
2026-02-19 00:25:06 +08:00
Rin
08afe0f2aa
feat(minecraft): add context boundary system with auto-summarization to prevent unbounded conversation history growth
Introduces task context boundaries via enterContext()/exitContext() REPL functions. Active context messages remain in full; completed contexts are summarized and archived. Adds [CONTEXT_HISTORY] prefix message with archived summaries, auto-trim when active context exceeds 30 messages, and auto-collapse when >10 summaries accumulate. Provides history query runtime (recent/search/playerChats/
2026-02-19 00:25:06 +08:00
Rin
4ce0c427bc
refactor(minecraft): simplify giveUp action to halt until player input instead of timed cooldown
Removes cooldown_seconds parameter and timer-based resumption from giveUp action. Brain now uses boolean givenUp flag instead of giveUpUntil timestamp. Action halts all autonomous processing until next player chat message. Updates error-burst guard to remove suggestedCooldownSeconds field. Adjusts prompts, tests, and MCP server to reflect halt-until-input semantics.
2026-02-19 00:25:06 +08:00
autofix-ci[bot]
f176aecaee
[autofix.ci] apply automated fixes 2026-02-18 03:18:35 +00:00
Neko Ayaka
7b9ee3c24b
chore(minecraft-bot): improve 2026-02-18 11:14:59 +08:00
Rin
f3486005ea
refactor(minecraft): simplify EventBus by removing history and trace query features
Strips ring buffer history storage, getHistory(), getEventsByTrace(), and historySize config from EventBus. Removes logger dependency and default config object. EventBus now only handles emit/subscribe/dispatch without persistent event storage. Updates container to use zero-config createEventBus(). Moves event-bus from cognitive/os/ to cognitive/ directory.

Update services/minecraft/codex-skills/minecraft-debug-mcp/references/mcp-surface.md

Update services/minecraft/codex-skills/minecraft-debug-mcp/references/mcp-surface.md

Update services/minecraft/codex-skills/minecraft-debug-mcp/SKILL.md
2026-02-18 11:14:46 +08:00
Rin
fca2f9a244
docs(minecraft): update README to reflect current perception pipeline and cognitive architecture
Replaces outdated attention-detector/buffer references with EventRegistry + RuleEngine pipeline. Updates Conscious layer to Brain/JS-planner/Query-DSL. Clarifies Action layer components (TaskExecutor, ActionRegistry, Tool Catalog). Revises project structure to match current codebase organization.
2026-02-18 11:14:46 +08:00
Rin
aa2d7af17c
refactor(minecraft): further cleanup 2026-02-18 11:14:45 +08:00
Rin
13805ab7b5
chore(minecraft): remove unused scenario test files
Removes basic-chat.json and damage-reaction.json scenario definitions that are no longer used for testing chat responses and damage reactions.
2026-02-18 11:14:45 +08:00
Rin
ae297e8b06
refactor(minecraft): dead code cleanup
Strips saliency thresholds, window counters, signal generation, and route filtering from all perception event definitions and EventRegistry. Events now emit raw data directly via onRawEvent callback without conscious/reflex/debug routing or threshold-based filtering. Removes WindowCounter, SaliencySnapshot, and related timer/slot logic.
2026-02-18 11:14:45 +08:00
Rin
46b1a8d438
refactor(minecraft): replace look-at and teabag behaviors with idle-gaze behavior 2026-02-18 11:14:45 +08:00
Rin
2022c733b3
feat(minecraft): add map() query DSL for ASCII spatial awareness and terrain visualization
Adds `query.map(options?)` to Brain's query runtime, returning ASCII top-down or cross-section maps with configurable radius (1-32), entity/elevation overlays, and yLevel slicing. Symbols include ground, stone, water, lava, trees, ores, chests, players, and mobs. Enables spatial navigation, resource finding, and underground exploration.
2026-02-18 11:14:45 +08:00
Rin
122be40782
chore(minecraft): add @modelcontextprotocol/sdk dependency 2026-02-18 11:14:45 +08:00
Rin
a135b07957
fix(minecraft): await reconnect plugin initialization before spawn hooks to prevent race conditions
Plugin loadPlugin calls were fire-and-forget during reconnect, allowing spawn
event handlers to run before plugins finished loading. Now initializeReconnectPlugins
runs sequentially and spawn waits for completion before invoking spawned hooks.
2026-02-18 11:14:45 +08:00
Rin
e668b9b410
fix(minecraft): nullify EventRegistry context on stop() to prevent stale handler execution
When stop() is called before detachFromBot(), mineflayer listeners remain
attached. Nullifying context ensures handleMineflayerEvent's guard clause
silently ignores any events that fire in this window.
2026-02-18 11:14:44 +08:00
Rin
32957e4269
fix(minecraft): make action tool globals updatable so REPL reflects runtime action changes
Action tools were defined with configurable: false, preventing updates after
the first evaluate() call. New defineUpdatableGlobal uses configurable: true
so installActionTools can redefine them when available actions change.
2026-02-18 11:14:44 +08:00