Files
zclaw_openfang/docs
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
..
2026-03-12 00:23:42 +08:00

ZCLAW 文档中心

快速导航

文档 说明
开发指南 开发环境设置、构建、测试
OpenViking 集成 记忆系统集成文档
用户手册 终端用户使用指南
Agent 进化计划 Agent 智能层发展规划
工作总结 最新工作进展

文档结构

docs/
├── DEVELOPMENT.md                    # 开发指南
├── OPENVIKING_INTEGRATION.md         # OpenViking 集成
├── USER_MANUAL.md                    # 用户手册
├── ZCLAW_AGENT_INTELLIGENCE_EVOLUTION.md  # Agent 进化计划
├── WORK_SUMMARY_*.md                 # 工作总结(按日期)
│
├── archive/                          # 归档文档
│   ├── completed-plans/              # 已完成的计划
│   ├── research-reports/             # 研究报告
│   └── openclaw-legacy/              # OpenClaw 遗留文档
│
├── knowledge-base/                   # 技术知识库
│   ├── openfang-technical-reference.md  # OpenFang 技术参考
│   ├── openfang-websocket-protocol.md   # WebSocket 协议
│   ├── troubleshooting.md               # 故障排除
│   └── ...
│
├── plans/                            # 执行计划
│   └── ...
│
└── test-reports/                     # 测试报告
    └── ...

项目状态

  • Agent 智能层: Phase 1-3 完成274 tests passing
  • OpenViking 集成: 本地服务器管理完成
  • 文档整理: 完成

贡献指南

  1. 新文档放在适当的目录中
  2. 使用清晰的文件命名(小写、连字符分隔)
  3. 计划文件使用日期前缀:YYYY-MM-DD-description.md
  4. 完成后将计划移动到 archive/completed-plans/