co-mono/packages/coding-agent/src/core
Sumeet Agarwal ff5148e7cc
feat(extensions): forward message and tool execution events to extensions (#1375)
The extension system currently only forwards agent_start, agent_end,
turn_start, and turn_end events. This means extensions cannot access
streaming text (token-by-token), message lifecycle, or tool execution
progress — all of which are available to internal subscribers.

This adds forwarding for the remaining 6 agent event types:
- message_start, message_update, message_end
- tool_execution_start, tool_execution_update, tool_execution_end

These follow the exact same pattern as the existing forwarded events:
new interfaces in types.ts, exports in index.ts, and else-if blocks
in _emitExtensionEvent(). The new types are included in ExtensionEvent
and automatically flow through RunnerEmitEvent (they're not in the
exclusion list).

This enables extensions to build real-time UIs, streaming WebSocket
bridges, and other integrations that need fine-grained event access.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
2026-02-12 20:30:46 +01:00
..
compaction feat(coding-agent): add extension compaction helpers 2026-01-17 11:40:39 +01:00
export-html feat(coding-agent): show tool input schema in /export HTML 2026-02-08 22:58:46 +01:00
extensions feat(extensions): forward message and tool execution events to extensions (#1375) 2026-02-12 20:30:46 +01:00
tools fix(coding-agent): normalize @ path prefixes closes #1206 2026-02-02 23:56:20 +01:00
agent-session.ts feat(extensions): forward message and tool execution events to extensions (#1375) 2026-02-12 20:30:46 +01:00
auth-storage.ts fix(coding-agent): handle compromised auth lock without crashing 2026-02-06 19:15:26 +01:00
bash-executor.ts feat(coding-agent): ResourceLoader, package management, and /reload command (#645) 2026-01-22 13:49:38 +01:00
defaults.ts fix(coding-agent): improve thinking defaults in footer 2026-01-29 00:33:45 +01:00
diagnostics.ts refactor(coding-agent): unify SkillWarning and ResourceDiagnostic 2026-01-24 00:45:01 +01:00
event-bus.ts Fix event bus async error handling, clear pending messages on session switch, improve SDK docs 2026-01-04 22:04:50 +01:00
exec.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
footer-data-provider.ts cheers 2026-01-23 15:05:08 +01:00
index.ts Rename /branch command to /fork 2026-01-11 23:12:31 +01:00
keybindings.ts feat(coding-agent): add resume as configurable keybinding action (#1249) 2026-02-04 13:43:51 +01:00
messages.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
model-registry.ts feat(coding-agent): merge custom models with built-ins by id 2026-02-06 19:15:26 +01:00
model-resolver.ts fix(coding-agent): make resolveCliModel sync, update docs and changelog 2026-02-12 19:04:51 +01:00
package-manager.ts fix(coding-agent): treat dot-prefixed extension paths as local 2026-02-08 23:52:23 +01:00
prompt-templates.ts Add get_commands RPC for headless clients (#995) 2026-01-28 02:34:15 +01:00
resolve-config-value.ts feat(coding-agent): support shell commands and env vars in auth.json API keys 2026-02-04 23:02:00 +01:00
resource-loader.ts feat(coding-agent): add resources_discover hook 2026-02-01 02:20:35 +01:00
sdk.ts fix(coding-agent): persist thinking level defaults 2026-02-03 17:17:38 +01:00
session-manager.ts fix(coding-agent): persist user message after fork 2026-02-04 13:35:45 +01:00
settings-manager.ts fix(coding-agent): reload global settings fixes #1241 2026-02-04 14:14:52 +01:00
skills.ts fix(coding-agent): respect ignore files in skill loader 2026-02-05 20:24:15 +01:00
slash-commands.ts fix(coding-agent): add /quit autocomplete and remove /exit fixes #1303 2026-02-06 00:16:56 +01:00
system-prompt.ts docs(coding-agent): expand pi documentation references in system prompt 2026-01-26 16:52:32 +01:00
timings.ts Release v0.27.1 2025-12-22 19:28:26 +01:00