@fanchao8609/agent_brain_sync 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/install.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanchao8609/agent_brain_sync",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "agent-brain-sync: 跨会话 AI 编码记忆 — hook 纯触发 + CLI/MCP 读写 .brain markdown 图谱, 防并发写保护。",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/install.js CHANGED
@@ -270,7 +270,7 @@ const server = async ({ client, directory }) => {
270
270
  const pad = (n) => String(n).padStart(2, "0")
271
271
  const stamp = d.getFullYear() + "-" + pad(d.getMonth() + 1) + "-" + pad(d.getDate()) + " " + pad(d.getHours()) + ":" + pad(d.getMinutes()) + ":" + pad(d.getSeconds())
272
272
  await mkdir(dir, { recursive: true })
273
- await appendFile(join(dir, "hooks.log"), "[" + stamp + "] op​encode:" + evt + "\\n")
273
+ await appendFile(join(dir, "hooks.log"), "[" + stamp + "] opencode:" + evt + "\\n")
274
274
  } catch {} // fire-and-forget: 永不阻塞宿主
275
275
  }
276
276