iven
|
1cf3f585d3
|
refactor(store): split gatewayStore into specialized domain stores
Major restructuring:
- Split monolithic gatewayStore into 5 focused stores:
- connectionStore: WebSocket connection and gateway lifecycle
- configStore: quickConfig, workspaceInfo, MCP services
- agentStore: clones, usage stats, agent management
- handStore: hands, approvals, triggers, hand runs
- workflowStore: workflows, workflow runs, execution
- Update all components to use new stores with selector pattern
- Remove
|
2026-03-20 22:14:13 +08:00 |
|
iven
|
f4efc823e2
|
refactor(types): comprehensive TypeScript type system improvements
Major type system refactoring and error fixes across the codebase:
**Type System Improvements:**
- Extended OpenFangStreamEvent with 'connected' and 'agents_updated' event types
- Added GatewayPong interface for WebSocket pong responses
- Added index signature to MemorySearchOptions for Record compatibility
- Fixed RawApproval interface with hand_name, run_id properties
**Gateway & Protocol Fixes:**
- Fixed performHandshake nonce handling in gateway-client.ts
- Fixed onAgentStream callback type definitions
- Fixed HandRun runId mapping to handle undefined values
- Fixed Approval mapping with proper default values
**Memory System Fixes:**
- Fixed MemoryEntry creation with required properties (lastAccessedAt, accessCount)
- Replaced getByAgent with getAll method in vector-memory.ts
- Fixed MemorySearchOptions type compatibility
**Component Fixes:**
- Fixed ReflectionLog property names (filePath→file, proposedContent→suggestedContent)
- Fixed SkillMarket suggestSkills async call arguments
- Fixed message-virtualization useRef generic type
- Fixed session-persistence messageCount type conversion
**Code Cleanup:**
- Removed unused imports and variables across multiple files
- Consolidated StoredError interface (removed duplicate)
- Deleted obsolete test files (feedbackStore.test.ts, memory-index.test.ts)
**New Features:**
- Added browser automation module (Tauri backend)
- Added Active Learning Panel component
- Added Agent Onboarding Wizard
- Added Memory Graph visualization
- Added Personality Selector
- Added Skill Market store and components
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-17 08:05:07 +08:00 |
|
iven
|
f22b1a2095
|
refactor(phase-11): extract specialized stores from gatewayStore
Decompose monolithic gatewayStore.ts (1660 lines) into focused stores:
- connectionStore.ts (444 lines) - WebSocket, auth, local gateway
- agentStore.ts (256 lines) - Clones, usage stats, plugins
- handStore.ts (498 lines) - Hands, triggers, approvals
- workflowStore.ts (255 lines) - Workflows, runs
- configStore.ts (537 lines) - QuickConfig, channels, skills
Each store uses client injection pattern for loose coupling.
Coordinator layer to be added in next commit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-15 20:17:17 +08:00 |
|