Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(a2ui): add session surface manager, tool, and server event wiring

6 months ago

d219a8d
Authored
Cursor Agent4/17/2026, 5:33:03 PM
- New A2uiSurfaceManager folds v0.9 envelopes and broadcasts a2ui_surface ServerEvents.
- New a2ui tool gated behind enableA2ui config flag (default off).
- Conversation projection emits uiSurface ProjectedItem into the session feed.
- JSON-RPC event projector forwards via cowork/session/a2ui/surface plus the
  standard item/started/item/completed notifications.
- TurnExecutionManager threads applyA2uiEnvelope into the tool context when the
  feature is enabled; AgentSession resets surfaces on session reset.

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parentb9c84be

14 files changed
  • config/defaults.json+1−0
  • src/agent.ts+14−0
  • src/config.ts+8−0
  • src/server/jsonrpc/eventProjector.ts+4−0
  • src/server/projection/conversationProjection.ts+20−0
  • src/server/protocol.ts+13−0
  • src/server/session/A2uiSurfaceManager.ts+184−0
  • src/server/session/AgentSession.ts+16−0
  • src/server/session/TurnExecutionManager.ts
+21
−0
  • src/tools/a2ui.ts+107−0
  • src/tools/context.ts+13−0
  • src/tools/index.ts+4−1
  • src/types.ts+6−0
  • test/a2ui/surfaceManager.test.ts+103−0