feat: Phase 4 — json-cas engine migration #300

Merged
xiaoju merged 1 commits from feat/294-phase4-engine-migration into main 2026-05-18 02:38:05 +00:00
Owner

What

New engine module using json-cas Store, running alongside the old engine.

Changes

  • json-cas-engine.ts — executeJsonCasThread using typed json-cas nodes
  • json-cas-context.ts — build ThreadContext from thread-step chain (via previous refs)
  • json-cas-types.ts — JsonCasEngineIo, JsonCasAgentFn, JsonCasThreadSnapshot
  • Thread lifecycle: thread-start → thread-step (linked list) → thread-end
  • JSONata moderator integration
  • React placeholder (null session, Phase 5 fills in)

Tests

21 tests: end-to-end workflow, node structure, moderator routing, abort, context accumulation, walk reachability

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

## What New engine module using json-cas Store, running alongside the old engine. ## Changes - `json-cas-engine.ts` — executeJsonCasThread using typed json-cas nodes - `json-cas-context.ts` — build ThreadContext from thread-step chain (via previous refs) - `json-cas-types.ts` — JsonCasEngineIo, JsonCasAgentFn, JsonCasThreadSnapshot - Thread lifecycle: thread-start → thread-step (linked list) → thread-end - JSONata moderator integration - React placeholder (null session, Phase 5 fills in) ## Tests 21 tests: end-to-end workflow, node structure, moderator routing, abort, context accumulation, walk reachability Ref: Closes #299, Part of #294 小橘 🍊(NEKO Team)
xiaoju added 1 commit 2026-05-18 02:37:19 +00:00
- json-cas-engine.ts: new engine using json-cas Store + typed nodes
- json-cas-context.ts: build ThreadContext from thread-step chain
- json-cas-types.ts: engine types (JsonCasEngineIo, JsonCasAgentFn, etc.)
- thread-start/step/end/content nodes in json-cas format
- JSONata moderator via evaluateModerator
- react placeholder (Phase 5 will fill in)
- 21 tests passing, biome clean

Closes #299
小橘 <xiaoju@shazhou.work>
xiaoju merged commit 5af2d54e0f into main 2026-05-18 02:38:05 +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#300