multica/src
Jiang Bohan 9fe6b920c4 fix(agent): always provide getApiKey callback and emit error events
PiAgentCore was created with an empty object when no API key was
initially configured. This broke dynamic provider switching because
setProvider() updated currentApiKey but PiAgentCore had no getApiKey
callback to read it. Always provide the callback so it dynamically
reads the current key.

Also adds AgentErrorEvent to MulticaEvent and emits it from
AsyncAgent.write() catch handlers so errors flow through the
subscriber mechanism to IPC listeners.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 22:23:44 +08:00
..
agent fix(agent): always provide getApiKey callback and emit error events 2026-02-06 22:23:44 +08:00
client Initial project setup with multi-component architecture 2026-01-28 14:08:34 +08:00
console feat(console): enable CORS for cross-origin web app requests 2026-01-30 22:40:38 +08:00
cron feat(hub): wire heartbeat controls into hub and cron wake mode 2026-02-06 16:42:14 +08:00
gateway feat(gateway): add auto-connect, hub discovery via list-devices 2026-02-02 16:13:40 +08:00
heartbeat feat(heartbeat): add heartbeat core runner and profile integration 2026-02-06 16:41:56 +08:00
hub fix(heartbeat): keep manual trigger runs out of chat stream 2026-02-06 17:28:25 +08:00
shared refactor(sdk): unify gateway-sdk into @multica/sdk package 2026-02-02 13:43:52 +08:00
index.ts feat(heartbeat): add heartbeat core runner and profile integration 2026-02-06 16:41:56 +08:00