feat(domains): create domain-driven architecture for Phase 2
Chat Domain: - Add types.ts with Message, Conversation, Agent types - Add store.ts with Valtio-based state management - Add hooks.ts with useChatState, useMessages, etc. - Add index.ts for public API export Hands Domain: - Add types.ts with Hand, Trigger, Approval types - Add machine.ts with XState state machine - Add store.ts with Valtio-based state management - Add hooks.ts with useHands, useApprovalQueue, etc. Shared Module: - Add types.ts with Result, AsyncResult, PaginatedResponse - Add error-handling.ts with AppError, NetworkError, etc. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1174
docs/superpowers/plans/2026-03-21-phase2-domain-reorganization.md
Normal file
1174
docs/superpowers/plans/2026-03-21-phase2-domain-reorganization.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user