refactor(workflow-utils): reorganize — roles top-level, shared internals in shared/ #228
Reference in New Issue
Block a user
Delete Branch "refactor/227-workflow-utils-reorg"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Reorganize
packages/workflow-utils/src/so the package's core purpose (role factories) is immediately obvious.Changes
Structure: flat mixed → layered
Eliminated files:
start-step.ts(6 lines) → absorbed intorole-types.tshermes-options.ts(29 lines) → absorbed intoshared/hermes-agent.tsrole-factories.ts(223 lines) → split into 4role-*.tsfilesOther improvements:
pick()formatLlmErrorintoshared/format-error.ts(DRY)Result
index.tsexports) unchangedFixes #227