开发

本地开发与打包

环境要求

Node.js >=22 + npm。根目录 workspace 包括 MemoryApp/backend/local-api-contractsApp/backendApp/frontend/*App/shell/desktop/interfaceApp/shell/*

常用命令

npm install            # 根目录安装依赖
npm run dev:desktop    # 同时启动桌面前端 Vite 和 Electron 壳
npm run build          # 构建 Memory 和所有 workspace
npm run lint
npm run typecheck
npm run test
npm run db:migrate     # 后端数据库迁移
npm run package:mac    # 打包 macOS DMG
npm run package:win:x64

Memory 单独开发

npm run memory:serve:dev -- \
  --host 127.0.0.1 \
  --port 18960 \
  --db ~/.memmy/memory-service/memory.sqlite \
  --config ~/.memmy/config.yaml

memmy-agent 源码态

cd App/memmy-agent
npm install && npm run build
node dist/main.js onboard
node dist/main.js agent --message "你好,介绍一下当前工作区"
node dist/main.js serve

本页目录