Home

mweinbach / agent-coworker

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

feat(a2ui): phase 3 — v0.9 client-side Functions (if/not/eq/and/or/concat/length/join/map/coalesce)

6 months ago

1d5a618
Authored
Cursor Agent4/17/2026, 6:20:28 PM
- Add src/shared/a2ui/functions.ts with bounded, safe evaluators for the core v0.9 function set
- Depth cap (32) prevents runaway recursion; invalid inputs return undefined (renders empty)
- map scopes the item binding so template-level paths can reference the current iteration
- Desktop renderer now resolves Text/Heading/Select/ProgressBar/Table props through resolveDynamicWithFunctions

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

Parent26e50be

4 files changed
  • apps/desktop/src/ui/chat/a2ui/A2uiRenderer.tsx+12−7
  • src/shared/a2ui/functions.ts+251−0
  • src/shared/a2ui/index.ts+8−0
  • test/a2ui/functions.test.ts+105−0