Commit Graph
20 Commits
Author SHA1 Message Date
Neko Ayaka ce60323d8a style: lint 2026-03-23 02:16:10 +08:00
Neko Ayaka 956a4541e9 style: lint 2026-03-19 14:27:23 +08:00
Rin e83c17fe57 fix(minecraft): xss mitigation for minecraft debug dashboard (#1344)
Authored-by-agent: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-03-14 00:20:15 +08:00
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
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
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 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 4a354c357e feat(minecraft): add live conversation panel with session tracking and processing state
Replace LLM traces panel with live conversation view showing real-time chat messages, add ConversationUpdateEvent/RequestConversationCommand types, implement emitConversationUpdate in Brain to broadcast conversation state changes (on forgetConversation/turn completion/errors), add session boundary tracking to grey out cleared conversations, implement typing indicator during LLM processing, add collapsible system
2026-02-18 11:14:42 +08:00
Rin f70f9fac46 feat(minecraft): capture and expose LLM input snapshot in REPL with source tracking
Add LlmInputSnapshot interface tracking systemPrompt/userMessage/messages/conversationHistory/updatedAt/attempt, store lastLlmInputSnapshot in Brain and inject into RuntimeGlobals as llmInput, expose llmInput/llmMessages/llmSystemPrompt/llmUserMessage/llmConversationHistory as frozen readonly globals in JavaScriptPlanner sandbox, add source:'manual'|'llm' field to DebugReplResult to distinguish user-triggered vs autonomous
2026-02-18 11:14:38 +08:00
Rin cce492f685 feat(minecraft): add REPL dashboard tab with live execution 2026-02-18 11:14:38 +08:00
Rin 54b3bfdc06 refactor(minecraft): remove legacy action adapter and simplify execution model
- Remove unused ActionLLMHandler and createActionNeuriAgent from adapter.ts
- Replace execution:'parallel'/'sequential' with readonly:true for query tools
- Add 'skip' action for explicit no-op turns
- Remove error suggestion logic (now handled by brain retry)
- Simplify TaskExecutor to use ActionAgent.performAction directly
- Update tests to use createNeuriAgent() without bot parameter
2026-02-18 11:14:08 +08:00
Rin 02d3f38663 fix(minecraft): make logging actually meaningful
Ported from commit f8b73bbf (partial - debug files only):
- Add /api/logs endpoint for listing and loading persisted log files
- Add log file selector UI to debug dashboard
- Filter persistEvent to only save relevant event types
- Add refreshFileList and loadPersistedLog methods to LogsPanel
2026-02-18 11:14:07 +08:00
Rin 4133b90ece feat(minecraft): show reflex mode in dashboard 2026-02-18 11:12:19 +08:00
Rin ffa0a431b7 fix(minecraft): debug dashboard layout problem 2026-02-18 11:12:19 +08:00
Rin 500ad53e31 chore(minecraft): truncate system prompt in debug dashboard 2026-02-18 11:12:04 +08:00
Rin 07097d1f78 feat(minecraft): execute tools from dashboard 2026-02-18 11:12:03 +08:00
Rin 7fa307592e feat(minecraft): resizable debug dashboard 2026-02-18 11:12:03 +08:00
Rin 07f65950a6 feat(minecraft): add reflex state to dashboard 2026-02-18 11:12:02 +08:00
Rin 7158c55e9a feat(minecraft): yet another overhaul...
i honestly don't know what to feel about this
2026-02-18 11:12:02 +08:00
Rin c46b3fa3d2 feat(minecraft) debug server redesigned 2026-02-18 11:11:02 +08:00