Implement the "Hybrid Client" and Event Streaming logic to solve the "Blind Agent" problem.
Scope:
- Agent Event Listener: Update
Neo.ai.Agent to support simultaneous MCP (Tool) and WebSocket (Event) connections.
- Worker-side Log Interceptor: Create
Neo.worker.mixin.LogBridge to capture console logs and exceptions in App/Data/Canvas workers.
- Log Forwarding: Stream these logs via the WebSocket RMA channel to the Agent.
- Event Stream: Expose high-level Neo.mjs framework events (
neo:window:connect, neo:component:mount) to the Agent.
- Event Filtering: Implement subscription mechanism (e.g.,
agent.subscribe(['neo:error'])) to prevent flooding.
Strategic Goal:
Enable agents to "see" runtime errors and state changes immediately without polling.
Reference: .github/AGENT_ARCHITECTURE.md
Implement the "Hybrid Client" and Event Streaming logic to solve the "Blind Agent" problem.
Scope:
Neo.ai.Agentto support simultaneous MCP (Tool) and WebSocket (Event) connections.Neo.worker.mixin.LogBridgeto capture console logs and exceptions in App/Data/Canvas workers.neo:window:connect,neo:component:mount) to the Agent.agent.subscribe(['neo:error'])) to prevent flooding.Strategic Goal: Enable agents to "see" runtime errors and state changes immediately without polling.
Reference:
.github/AGENT_ARCHITECTURE.md