(userText, reply)
| 4458 | } |
| 4459 | |
| 4460 | async function rememberUnifiedMemoryFromRemoteExecution(userText, reply) { |
| 4461 | const text = String(userText || "").trim(); |
| 4462 | const result = String(reply || "").trim(); |
| 4463 | if (!text || !result) return; |
| 4464 | const projectLike = /(实现|修改|修复|文件|代码|脚本|运行|测试|完成|打开|删除|创建|项目|部署|readme|截图)/i.test(`${text} ${result}`); |
| 4465 | if (!projectLike) return; |
| 4466 | await unifiedMemory.write({ |
| 4467 | type: "projectNote", |
| 4468 | source: "remoteExecution", |
| 4469 | channel: "imessage", |
| 4470 | originDevice: "mobile_or_messages", |
| 4471 | executionDevice: "desktop", |
| 4472 | mode: "remoteExecution", |
| 4473 | topic: text.slice(0, 60), |
| 4474 | summary: `远程执行模式处理:${text.slice(0, 220)};结果:${result.slice(0, 420)}`, |
| 4475 | sourceTextHint: text, |
| 4476 | confidence: 0.78, |
| 4477 | zone: "base" |
| 4478 | }); |
| 4479 | } |
| 4480 | |
| 4481 | async function loadRemoteExecutionSkillContext() { |
| 4482 | const skill = state.remoteExecution.skill; |
no outgoing calls
no test coverage detected