@fanchao8609/agent_brain_sync 0.3.0 → 0.3.1

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 +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanchao8609/agent_brain_sync",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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
@@ -258,7 +258,7 @@ import { appendFile, mkdir, readFile, stat } from "node:fs/promises"
258
258
  import { homedir } from "node:os"
259
259
  import { join, dirname } from "node:path"
260
260
 
261
- export const AbsPlugin = async ({ client, directory }) => {
261
+ const server = async ({ client, directory }) => {
262
262
  // 本会话是否真改过文件 (由 tool.execute.after 观测)
263
263
  let wroteFiles = false
264
264
  let nudged = false
@@ -336,6 +336,11 @@ export const AbsPlugin = async ({ client, directory }) => {
336
336
  },
337
337
  }
338
338
  }
339
+
340
+ export default {
341
+ id: "abs",
342
+ server,
343
+ }
339
344
  ${MARK}
340
345
  `;
341
346
  }