feat: Phase 3 — workflow JSON definitions in CAS #298

Merged
xiaoju merged 1 commits from feat/294-phase3-workflow-json into main 2026-05-18 02:27:56 +00:00
Owner

What

Convert workflow templates to pure JSON definitions stored in CAS.

Changes

  • New package: @uncaged/workflow-json-def
  • registerWorkflow(store, typeHashes, def) — recursively stores role-schema → role → workflow
  • loadWorkflow(store, typeHashes, hash) — hydrates full workflow from CAS
  • solve-issue + develop templates converted to JSON (Zod → JSON Schema, moderator → JSONata)

Tests

30 tests: round-trip, idempotency, walk, refs, hydration, moderator compatibility

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

## What Convert workflow templates to pure JSON definitions stored in CAS. ## Changes - New package: `@uncaged/workflow-json-def` - `registerWorkflow(store, typeHashes, def)` — recursively stores role-schema → role → workflow - `loadWorkflow(store, typeHashes, hash)` — hydrates full workflow from CAS - solve-issue + develop templates converted to JSON (Zod → JSON Schema, moderator → JSONata) ## Tests 30 tests: round-trip, idempotency, walk, refs, hydration, moderator compatibility Ref: Closes #297, Part of #294 小橘 🍊(NEKO Team)
xiaoju added 1 commit 2026-05-18 02:25:06 +00:00
- New package: @uncaged/workflow-json-def
- registerWorkflow/loadWorkflow for CAS round-trip
- solve-issue and develop templates converted to pure JSON
- Zod schemas → JSON Schema, moderator → JSONata
- 30 tests passing, biome clean

Closes #297
小橘 <xiaoju@shazhou.work>
xiaoju merged commit f9d3d38008 into main 2026-05-18 02:27:56 +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#298