opencode-haimati 1.4.1 → 1.4.3

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 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)=>{if(s.has(u.message.sessionID))return;s.add(u.message.sessionID);let l=u.parts.filter(Pe);l.length!==0&&(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\u63D2\u4EF6\u81EA\u52A8\u63D0\u793A>
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
+ \u5DE5\u4F5C\u524D\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u8BFB\u53D6\u6240\u6709\u76F8\u5173\u7684\u6D77\u9A6C\u4F53\u8BB0\u5FC6
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\u63D2\u4EF6\u81EA\u52A8\u63D0\u793A>`,synthetic:!0}),await f.info("[chat.message] \u6CE8\u5165\u5DE5\u4F5C\u89C4\u5219\u63D0\u793A"))}}};export{Ln as HaimatiPlugin};
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.1",
3
+ "version": "1.4.3",
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.1",
3
+ "version": "1.4.3",
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",