@neomei/agent-soul-framework 4.5.27 → 4.5.28

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.
package/hunqi.sh CHANGED
@@ -50,10 +50,10 @@ if [ "$1" == "run" ] && [ -n "$2" ]; then
50
50
  exit 1
51
51
 
52
52
  elif [ "$1" == "interactive" ]; then
53
- # 交互模式 - @neomei/agentsoul 插件会自动注入灵魂,无需 stdin
53
+ # 交互模式 - @neomei/agent-soul-framework 插件会自动注入灵魂,无需 stdin
54
54
  echo "🎯 启动交互模式..."
55
55
  echo ""
56
- echo "💡 @neomei/agentsoul 插件会在每次 LLM 调用时自动注入灵魂"
56
+ echo "💡 @neomei/agent-soul-framework 插件会在每次 LLM 调用时自动注入灵魂"
57
57
  echo " Agent会记得自己是谁 ✨"
58
58
  echo ""
59
59
  if [ -t 0 ]; then
package/package.json CHANGED
@@ -74,5 +74,5 @@
74
74
  "@types/node": "^20.0.0",
75
75
  "typescript": "^5.4.0"
76
76
  },
77
- "version": "4.5.27"
77
+ "version": "4.5.28"
78
78
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunqi-plugin",
3
- "version": "4.5.8",
3
+ "version": "4.5.27",
4
4
  "description": "魂器 OpenCode 插件 — 自动注入灵魂 + 保存对话",
5
5
  "author": "NeoMei",
6
6
  "license": "MIT",
@@ -22,7 +22,10 @@
22
22
  "session.closed": {
23
23
  "description": "会话关闭时清理缓存"
24
24
  },
25
- "session.idle": { "description": "会话 idle 时重新注入灵魂上下文(无头模式)" }, "session.error": {
25
+ "session.idle": {
26
+ "description": "会话 idle 时重新注入灵魂上下文(无头模式)"
27
+ },
28
+ "session.error": {
26
29
  "description": "会话错误时忽略"
27
30
  }
28
31
  },
@@ -35,4 +38,3 @@
35
38
  "memoryDir": "memory/short-term"
36
39
  }
37
40
  }
38
-
@@ -1,3 +1,7 @@
1
+ import { createHash } from 'node:crypto';
2
+ import { existsSync, mkdirSync, appendFileSync } from 'node:fs';
3
+ import { join } from 'node:path';
4
+
1
5
  /**
2
6
  * ContentFilter — 审宝内容审查器
3
7
  * 在消息到达 LLM 之前进行代码层拦截