Skip to content

Phase2 electron onboarding spec#9

Merged
ZengLiangYi merged 13 commits into
mainfrom
phase2-electron-onboarding-spec
May 23, 2026
Merged

Phase2 electron onboarding spec#9
ZengLiangYi merged 13 commits into
mainfrom
phase2-electron-onboarding-spec

Conversation

@ZengLiangYi
Copy link
Copy Markdown
Owner

概述 / Summary

Phase 2:新增 Electron 引导与云端/本地模式支持。

  • Electron 首次启动可选择“本地记忆库”或“连接超级大脑”
  • 云端模式不启动本机 Core,连接云端 URL + token 后加载云端 Web UI
  • Electron 云端模式会把 token 写入同源 localStorage,HTTP/HTTPS 体验一致;HTTP 仅提示推荐 HTTPS,不阻断
  • 本地模式启动本机 Core,默认关闭 watcher
  • 支持从 Electron 引导流程导入本机历史,或解析本机历史后上传到云端
  • MCP helper 输出完整可复制的 mcpServers.chatcrystal 配置
  • 本地导入 stream 改为 POST,并增加本地来源保护
  • 增加 Electron onboarding IPC 边界校验,防止非引导页调用

变更类型 / Change Type

  • 新功能 / New feature
  • Bug 修复 / Bug fix
  • 重构 / Refactoring
  • 文档 / Documentation
  • 其他 / Other

测试 / Testing

已执行:

  • npm run build
  • npm run lint
  • npm run test -w server,431 tests passed
  • .\node_modules\.bin\tsc.cmd -p electron/tsconfig.json
  • .\node_modules\.bin\tsx.cmd --test electron/test/state.test.ts electron/test/mcp-snippets.test.ts

@ZengLiangYi ZengLiangYi merged commit 0761148 into main May 23, 2026
2 checks passed
@ZengLiangYi ZengLiangYi deleted the phase2-electron-onboarding-spec branch May 23, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant