feat: Phase 5+6 — React layer + Agent model #303

Merged
xiaoju merged 1 commits from feat/294-phase5-react-layer into main 2026-05-18 02:47:31 +00:00
Owner

What

Phase 5: React layer instrumentation — full ReAct trace in CAS.
Phase 6: Agent instance model + packageDescriptor convention.

Phase 5 Changes

  • json-cas-react-recorder.ts — writeReactSession stores turns/tool-calls as CAS nodes
  • ReactTrace types for capturing LLM calls and tool invocations
  • Engine integration: real react-session replaces placeholder

Phase 6 Changes

  • PackageDescriptor type in workflow-protocol
  • packageDescriptor exports in all 4 agent packages (cursor, hermes, llm, react)
  • putAgentInstance utility in workflow-json-def
  • Agent CAS nodes with package + version + config

Tests

29 tests for engine + react recorder

Ref: Closes #301, Closes #302, Part of #294
小橘 🍊(NEKO Team)

## What Phase 5: React layer instrumentation — full ReAct trace in CAS. Phase 6: Agent instance model + packageDescriptor convention. ## Phase 5 Changes - `json-cas-react-recorder.ts` — writeReactSession stores turns/tool-calls as CAS nodes - ReactTrace types for capturing LLM calls and tool invocations - Engine integration: real react-session replaces placeholder ## Phase 6 Changes - PackageDescriptor type in workflow-protocol - packageDescriptor exports in all 4 agent packages (cursor, hermes, llm, react) - putAgentInstance utility in workflow-json-def - Agent CAS nodes with package + version + config ## Tests 29 tests for engine + react recorder Ref: Closes #301, Closes #302, Part of #294 小橘 🍊(NEKO Team)
xiaoju added 1 commit 2026-05-18 02:46:09 +00:00
- json-cas-react-recorder.ts: writeReactSession stores full ReAct trace
- ReactTrace/ReactTurnTrace/ReactToolCallTrace types
- JsonCasAgentResult with optional react trace
- Engine integration: real react-session when trace provided, placeholder when null
- 10 new tests (29 total for json-cas engine), biome clean

Closes #301
小橘 <xiaoju@shazhou.work>
xiaoju force-pushed feat/294-phase5-react-layer from e3f0a7e7d7 to 94c719870f 2026-05-18 02:47:22 +00:00 Compare
xiaoju merged commit 33cf23ed01 into main 2026-05-18 02:47:31 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#303