- 脚手架: uni-app vue3 ts + 微信小程序manifest + pages(chat/conversations)+暗色主题
- WS客户端(ws.ts): uni.connectSocket连relay /ws/miniapp + Hello握手 + 指数退避重连 + 心跳Ping + JSON透传分派
- 类型镜像: events.ts AiChatEvent 18变体(对齐mod.rs grep核验) + relay.ts协议(BroadcastMessage/Hello/ControlMessage/MiniCommand)
- useAiChat: 18变体分派状态机(TextDelta累积/AgentRound flush/Tool状态/ConvState驱动generating) + send/stop/regenerate/switch + 乐观渲染
- 页面: chat(消息气泡/流式渲染/输入栏/工具调用展示) + conversations(列表占位)
- vue-tsc零错; 核验修正注释(变体数22→18, 心跳heartbeat→ping)
- 待对齐(Phase3联调): miniapp MiniCommand{cmd,args} vs df-tunnel TunnelCommand{kind,...} 格式需统一
35 lines
949 B
JSON
35 lines
949 B
JSON
{
|
|
"name": "df-miniapp",
|
|
"version": "0.1.0",
|
|
"description": "DevFlow 微信小程序(uni-app Vue3)—— 远程 AI Chat 操作桌面端",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev:h5": "uni",
|
|
"dev:mp-weixin": "uni -p mp-weixin",
|
|
"build:h5": "uni build",
|
|
"build:mp-weixin": "uni build -p mp-weixin",
|
|
"type-check": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@dcloudio/uni-app": "vue3",
|
|
"@dcloudio/uni-components": "vue3",
|
|
"@dcloudio/uni-mp-weixin": "vue3",
|
|
"@dcloudio/uni-h5": "vue3",
|
|
"vue": "^3.4.0",
|
|
"vue-i18n": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@dcloudio/types": "^3.4.0",
|
|
"@dcloudio/uni-automator": "vue3",
|
|
"@dcloudio/uni-cli-shared": "vue3",
|
|
"@dcloudio/vite-plugin-uni": "vue3",
|
|
"@types/node": "^20.0.0",
|
|
"@vue/runtime-core": "^3.4.0",
|
|
"@vue/tsconfig": "^0.5.0",
|
|
"sass": "^1.70.0",
|
|
"typescript": "^5.3.0",
|
|
"vite": "^7.3.0",
|
|
"vue-tsc": "^2.0.0"
|
|
}
|
|
}
|