feat(DIS-107): Zod schemas for disclaw.yaml, agent.yaml, CLI output #49
No reviewers
Labels
No labels
blocked
needs-review
phase:0
phase:1
phase:1.5
phase:2
phase:3
phase:4
phase:5
phase:6+
priority:p0
priority:p1
priority:p2
security
type:chore
type:ci
type:docs
type:feat
type:fix
type:idea
type:known-issue
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dev/disclaw#49
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-1/zod-schemas"
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?
Summary
DisclawConfigSchema(Zod) fordisclaw.yamlwith defaults and validationAgentYamlSchema(Zod) foragent.yamlandClaudeJsonOutputSchemafor CLI outputloader.tsandidentity.tsto validate external data at parse time with clear error messagesTest plan
npx vitest run tests/unit/schemas.test.ts-- all 6 schema tests passnpx vitest run-- full suite (50 tests) passesloadDisclawConfigthrows descriptive error on invalid YAMLloadAgentIdentitythrows descriptive error on missingchannel_id