@easbot/memory 0.3.21 → 0.3.23
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/README.en.md +2 -2
- package/README.md +4 -4
- package/dist/chunks/chunk-2TBNGTSA.mjs +65 -0
- package/dist/chunks/{chunk-TIZCWDJ7.mjs → chunk-3EDNN7MP.mjs} +1 -1
- package/dist/chunks/chunk-5YDI4K2F.cjs +65 -0
- package/dist/chunks/{chunk-EGWJG65Q.cjs → chunk-EK34SXJ7.cjs} +24 -17
- package/dist/chunks/{chunk-N5YRDTEH.mjs → chunk-K4K3YR6R.mjs} +35 -29
- package/dist/chunks/{chunk-S6S35LDL.cjs → chunk-MENFLGGM.cjs} +36 -30
- package/dist/chunks/{chunk-AYGZUNFR.cjs → chunk-OU5TQHJE.cjs} +1 -1
- package/dist/chunks/{chunk-JDPZ5U53.mjs → chunk-PJGILQSZ.mjs} +24 -17
- package/dist/chunks/cli-handler-7HISH37M.cjs +1 -0
- package/dist/chunks/cli-handler-WOX5EG34.mjs +1 -0
- package/dist/chunks/{config-RPPQ73HK.cjs → config-I2I6U4XM.cjs} +1 -1
- package/dist/chunks/consolidate-JBTOQWUX.mjs +2 -0
- package/dist/chunks/{consolidate-G4YJV756.cjs → consolidate-JGLVNSDT.cjs} +1 -1
- package/dist/chunks/doctor-C7RIJGYC.cjs +1 -0
- package/dist/chunks/{doctor-GKMREWZN.mjs → doctor-DLQO7QMW.mjs} +1 -1
- package/dist/chunks/{extract-YKDPZ7GA.cjs → extract-4ZGVF2DQ.cjs} +1 -1
- package/dist/chunks/extract-WH4DU4NQ.mjs +2 -0
- package/dist/chunks/{forget-VQB5DUJ3.mjs → forget-CRDWG4XE.mjs} +1 -1
- package/dist/chunks/{forget-GNIJL2DU.cjs → forget-PARGCUIH.cjs} +1 -1
- package/dist/chunks/{graph-GTYUNUJE.cjs → graph-NJJLGDZI.cjs} +1 -1
- package/dist/chunks/{graph-4W63TU2D.mjs → graph-T66JXDLU.mjs} +1 -1
- package/dist/chunks/init-2ZTVBJ6N.mjs +1 -0
- package/dist/chunks/{init-DGMGRNCG.cjs → init-EEWFFF4Y.cjs} +1 -1
- package/dist/chunks/{interfaces-XWE45ENK.cjs → interfaces-Q5OGU5EK.cjs} +1 -1
- package/dist/chunks/{llm-RMPVWEVP.cjs → llm-7LQGYSUE.cjs} +1 -1
- package/dist/chunks/{mcp-EHUKGJRB.cjs → mcp-ES7O3UKN.cjs} +1 -1
- package/dist/chunks/{mcp-QQBHEZFY.mjs → mcp-OAUOA4PI.mjs} +1 -1
- package/dist/chunks/{recall-ZENMAOMJ.cjs → recall-LCKRI4TB.cjs} +1 -1
- package/dist/chunks/recall-VMW7Y55X.mjs +2 -0
- package/dist/chunks/{remember-3ZY66RJQ.cjs → remember-OZOQ76IA.cjs} +1 -1
- package/dist/chunks/{remember-P3G7WWYB.mjs → remember-ZVTM3IP4.mjs} +1 -1
- package/dist/chunks/status-6R335JGR.cjs +1 -0
- package/dist/chunks/{status-JYI52QKB.mjs → status-LHXMB3ZY.mjs} +1 -1
- package/dist/chunks/stdio-server-IMJF7HB6.cjs +1 -0
- package/dist/chunks/stdio-server-SONZIWC4.mjs +1 -0
- package/dist/chunks/{sync-64JINCSC.cjs → sync-7VBREDVM.cjs} +1 -1
- package/dist/chunks/{sync-ZPRCA4MO.mjs → sync-KWHUII26.mjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.mjs +4 -4
- package/package.json +11 -11
- package/dist/chunks/chunk-UF2Y2Q4L.mjs +0 -50
- package/dist/chunks/chunk-Z5E4HBGK.cjs +0 -50
- package/dist/chunks/cli-handler-2IPBL45N.cjs +0 -1
- package/dist/chunks/cli-handler-5YNHYDSM.mjs +0 -1
- package/dist/chunks/consolidate-MSPLH3T6.mjs +0 -2
- package/dist/chunks/doctor-YTUQCHFJ.cjs +0 -1
- package/dist/chunks/extract-3C4QFS7E.mjs +0 -2
- package/dist/chunks/init-G2WTR477.mjs +0 -1
- package/dist/chunks/recall-SGA2DITO.mjs +0 -2
- package/dist/chunks/status-UEKBJVCI.cjs +0 -1
- package/dist/chunks/stdio-server-2PWTBTDJ.mjs +0 -1
- package/dist/chunks/stdio-server-JL4XNUHH.cjs +0 -1
- /package/dist/chunks/{chunk-NVGACA7W.cjs → chunk-M2YU5LAI.cjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b,c}from'./chunk-QYBWHFOX.mjs';import'./chunk-SWYQLQ7Z.mjs';import {v,x as x$1}from'./chunk-UF2Y2Q4L.mjs';import'./chunk-JDPZ5U53.mjs';import'./chunk-WDVDYZ25.mjs';import'./chunk-6CQMBEIQ.mjs';import'./chunk-HQBRVVXS.mjs';async function m(r){if(!r.sessionId?.trim())throw new Error("extract: --session is required");let e=r.agentId?.trim()||"default",t=r.workspaceDir??process.cwd();return v("extract",{sessionId:r.sessionId,lastN:r.lastN??10,fromMessageId:r.fromMessageId},x$1(e,t))}function p(r){let e=r,t=[b("extract",{extractedCount:e.extractedCount},"Extracted {{extractedCount}} fact(s) from {{fromMessageId}}..{{toMessageId}}")];for(let s of e.factIds)t.push(c("extract",{id:s}," - {{id}}"));if(e.entities&&e.entities.length>0){t.push(""),t.push("entities:");for(let s of e.entities)t.push(` - ${s.name} (${s.type})`);}if(e.relations&&e.relations.length>0){t.push(""),t.push("relations:");for(let s of e.relations)t.push(` - ${s.source} --${s.relation}--> ${s.target}`);}return t.join(`
|
|
2
|
-
`)}function x(r){let e={};for(let t=0;t<r.length;t++){let s=r[t];if(s===void 0)continue;let n=r[t+1];s==="--agent"?(e.agentId=n,t++):s==="--session"?(e.sessionId=n,t++):s==="--last-n"?(e.lastN=Number(n),t++):s==="--from-msg"?(e.fromMessageId=n,t++):s==="--json"?e.json=true:(s==="--help"||s==="-h")&&(e.help=true);}return e}export{p as formatExtractText,x as parseExtractOptions,m as runExtract};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {v,x as x$1}from'./chunk-UF2Y2Q4L.mjs';import'./chunk-JDPZ5U53.mjs';import {j}from'./chunk-WDVDYZ25.mjs';import'./chunk-6CQMBEIQ.mjs';import'./chunk-HQBRVVXS.mjs';async function m(t){let e=t.workspaceDir?.trim()||t.ctxWorkspaceDir?.trim()||process.cwd(),i=t.agentId??"",n=t.ctxWorkspaceDir?.trim()||e;return v("init",{workspaceDir:e,dbPath:j(n),force:t.force??false},x$1(i,n))}function x(t){let e={},i=[];for(let n=0;n<t.length;n++){let r=t[n];if(r===void 0)continue;let p=t[n+1];r==="--agent"?(e.agentId=p,n++):r==="--force"?e.force=true:r==="--json"?e.json=true:r==="--help"||r==="-h"?e.help=true:r.startsWith("-")||i.push(r);}return e.workspaceDir=i[0],e}export{x as parseInitOptions,m as runInit};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-SWYQLQ7Z.mjs';import {v,x}from'./chunk-UF2Y2Q4L.mjs';import'./chunk-JDPZ5U53.mjs';import'./chunk-WDVDYZ25.mjs';import'./chunk-6CQMBEIQ.mjs';import'./chunk-HQBRVVXS.mjs';async function f(n){if(!n.query?.trim())throw new Error("recall: --query is required");let e=n.agentId?.trim()||"default",t=n.workspaceDir??process.cwd();return v("recall",{query:n.query,maxResults:n.limit??10,category:n.category,minImportance:n.minImportance},x(e,t))}function g(n){let e=n;if(e.total===0)return a("memory.recall.empty",{fallback:"(no facts)"});let t=[a("memory.recall.summary",{vars:{total:e.total},fallback:`Found ${e.total} fact(s):`})];for(let r of e.hits)t.push(a("memory.recall.item",{vars:{id:r.memoryId,category:r.category,importance:String(r.importance),score:r.score.toFixed(3),content:r.snippet},fallback:" - {{id}} [{{category}}/imp={{importance}}/score={{score}}] {{content}}"}));return t.join(`
|
|
2
|
-
`)}function y(n){let e={};for(let t=0;t<n.length;t++){let r=n[t];if(r===void 0)continue;let o=n[t+1];r==="--agent"?(e.agentId=o,t++):r==="--query"?(e.query=o,t++):r==="--limit"?(e.limit=Number(o),t++):r==="--category"?(e.category=o,t++):r==="--min-importance"?(e.minImportance=Number(o),t++):r==="--json"?e.json=true:(r==="--help"||r==="-h")&&(e.help=true);}return e}export{g as formatRecallText,y as parseRecallOptions,f as runRecall};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkZ5E4HBGK_cjs=require('./chunk-Z5E4HBGK.cjs');require('./chunk-EGWJG65Q.cjs'),require('./chunk-CPRDIUQ4.cjs'),require('./chunk-J5XF2W4Z.cjs'),require('./chunk-NVGACA7W.cjs');async function c(t){let n=t.agentId,e=t.workspaceDir??process.cwd();return chunkZ5E4HBGK_cjs.v("status",{agentId:n},chunkZ5E4HBGK_cjs.x(n,e))}function f(t){return ""}function l(t){let n={};for(let e=0;e<t.length;e++){let o=t[e];if(o===void 0)continue;let i=t[e+1];o==="--agent"?(n.agentId=i,e++):o==="--json"?n.json=true:(o==="--help"||o==="-h")&&(n.help=true);}return n}exports.formatStatusText=f;exports.parseStatusOptions=l;exports.runStatus=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as MemoryStdioServer}from'./chunk-N5YRDTEH.mjs';import'./chunk-UF2Y2Q4L.mjs';import'./chunk-JDPZ5U53.mjs';import'./chunk-WDVDYZ25.mjs';import'./chunk-6CQMBEIQ.mjs';import'./chunk-HQBRVVXS.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkS6S35LDL_cjs=require('./chunk-S6S35LDL.cjs');require('./chunk-Z5E4HBGK.cjs'),require('./chunk-EGWJG65Q.cjs'),require('./chunk-CPRDIUQ4.cjs'),require('./chunk-J5XF2W4Z.cjs'),require('./chunk-NVGACA7W.cjs');Object.defineProperty(exports,"MemoryStdioServer",{enumerable:true,get:function(){return chunkS6S35LDL_cjs.b}});
|
|
File without changes
|