opencode-haimati 1.4.1 → 1.4.2
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/dist/index.js +4 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -336,7 +336,9 @@ ${o}`),await f.info("[haimati_list] \u5217\u51FA\u6210\u529F: \u5168\u90E8"),o}c
|
|
|
336
336
|
- \u9519\u8BEF\u6216\u8FC7\u671F\u7684\u4FE1\u606F\u76F4\u63A5\u5220\u9664\u6216\u4FEE\u6539
|
|
337
337
|
- \u4E0D\u786E\u5B9A\u5206\u7C7B\u65F6\uFF0C\u5148\u7528 haimati_list \u67E5\u770B\u73B0\u6709\u7ED3\u6784
|
|
338
338
|
|
|
339
|
-
\u5982\u679C\u6CA1\u4EC0\u4E48\u53EF\u505A\u7684\uFF0C\u56DE\u590D"\u65E0"`}]}}).then(h=>{let d=h?.data?.info?.id;d&&a.add(d),i.delete(u.sessionID),o.set(u.sessionID,Date.now()+c),f.info(`[autoWrite] AI\u8BB0\u5FC6\u5199\u5165\u5B8C\u6210 session=${u.sessionID}`)}).catch(h=>{i.delete(u.sessionID),o.set(u.sessionID,Date.now()+c);let d=h instanceof Error?h.message:String(h);f.error(`[autoWrite] \u5931\u8D25: ${d}`)})),await f.debug(`[message.updated] AI\u56DE\u590D\u7ED3\u675F messageID=${u.id}`)}}},"chat.message":async(m,u)=>{
|
|
339
|
+
\u5982\u679C\u6CA1\u4EC0\u4E48\u53EF\u505A\u7684\uFF0C\u56DE\u590D"\u65E0"`}]}}).then(h=>{let d=h?.data?.info?.id;d&&a.add(d),i.delete(u.sessionID),o.set(u.sessionID,Date.now()+c),f.info(`[autoWrite] AI\u8BB0\u5FC6\u5199\u5165\u5B8C\u6210 session=${u.sessionID}`)}).catch(h=>{i.delete(u.sessionID),o.set(u.sessionID,Date.now()+c);let d=h instanceof Error?h.message:String(h);f.error(`[autoWrite] \u5931\u8D25: ${d}`)})),await f.debug(`[message.updated] AI\u56DE\u590D\u7ED3\u675F messageID=${u.id}`)}}},"chat.message":async(m,u)=>{let l=u.parts.filter(Pe);if(l.length!==0){if(s.has(u.message.sessionID)){u.parts.unshift({id:`prt_auto_reminder_${Date.now()}`,sessionID:l[0].sessionID??u.message.sessionID,messageID:l[0].messageID??u.message.id,type:"text",text:`<\u6D77\u9A6C\u4F53\u81EA\u52A8\u63D0\u793A>
|
|
340
|
+
\u8BF7\u786E\u8BA4\u7528\u6237\u6240\u8BF4\u7684\u4E8B\u60C5\uFF0C\u5728\u6D77\u9A6C\u4F53\u4E2D\u662F\u5426\u5B58\u5728\u76F8\u5173\u8BB0\u5FC6\u5E76\u8BFB\u53D6
|
|
341
|
+
</\u6D77\u9A6C\u4F53\u81EA\u52A8\u63D0\u793A>`,synthetic:!0}),await f.debug("[chat.message] \u6CE8\u5165\u7B80\u77ED\u786E\u8BA4\u63D0\u793A");return}s.add(u.message.sessionID),u.parts.unshift({id:`prt_auto_reminder_${Date.now()}`,sessionID:l[0].sessionID??u.message.sessionID,messageID:l[0].messageID??u.message.id,type:"text",text:`<\u6D77\u9A6C\u4F53\u81EA\u52A8\u63D0\u793A>
|
|
340
342
|
\u4F60\u6709\u4E00\u5957\u6D77\u9A6C\u4F53\u8BB0\u5FC6\u63D2\u4EF6\u53EF\u7528
|
|
341
343
|
|
|
342
344
|
# \u5DE5\u4F5C\u6D41\u7A0B
|
|
@@ -349,4 +351,4 @@ ${o}`),await f.info("[haimati_list] \u5217\u51FA\u6210\u529F: \u5168\u90E8"),o}c
|
|
|
349
351
|
- \u5220\u9664\u8FC7\u671F\u7684\u4FE1\u606F
|
|
350
352
|
- \u6574\u5408\u91CD\u590D\u7684\u8BB0\u5FC6
|
|
351
353
|
- \u5982\u679C\u5B58\u5728\u672A\u4EE5\u9879\u76EE\u540D\u4F5C\u4E3A\u6839\u8282\u70B9\u7684\u6D77\u9A6C\u4F53\u6761\u76EE\uFF0C\u5219\u8C03\u6574
|
|
352
|
-
</\u6D77\u9A6C\u4F53\
|
|
354
|
+
</\u6D77\u9A6C\u4F53\u81EA\u52A8\u63D0\u793A>`,synthetic:!0}),await f.debug("[chat.message] \u6CE8\u5165\u5DE5\u4F5C\u89C4\u5219\u63D0\u793A")}}}};export{Ln as HaimatiPlugin};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-haimati",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "OpenCode plugin for a file-based memory system inspired by the hippocampus, providing long-term memory storage and retrieval across sessions.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-haimati",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "OpenCode plugin for a file-based memory system inspired by the hippocampus, providing long-term memory storage and retrieval across sessions.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|