refactor(core): restructure ModeratorContext to { start, steps } #117

Merged
xiaoju merged 1 commits from refactor/110-moderator-context-restructure into main 2026-04-25 02:51:51 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 3ce9e3a846 refactor(core): restructure ModeratorContext to { start, steps }
- ModeratorContext: discriminated union → { start: StartStep; steps: RoleStep<M>[] }
- Moderator signature: (context, round, maxRounds) → (context)
- round derivable from steps.length, maxRounds from start.meta.maxRounds
- workflow-worker.ts: build steps array, pass full context to moderator
- Remove unused ModeratorContext import from workflow-worker
- Update README.md

Refs #110
2026-04-25 02:48:28 +00:00