@joshuaswarren/openclaw-engram 9.2.2 → 9.2.4

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
@@ -87,7 +87,7 @@ import {
87
87
  validateRouteTarget,
88
88
  validateWorkProductLedgerEntry,
89
89
  wrapWorkLayerContext
90
- } from "./chunk-RITRBWEK.js";
90
+ } from "./chunk-JH4LLA7O.js";
91
91
  import "./chunk-YZG2OWZQ.js";
92
92
  import {
93
93
  getCausalTrajectoryStoreStatus
@@ -7773,6 +7773,127 @@ var EngramMcpServer = class {
7773
7773
  required: ["query"],
7774
7774
  additionalProperties: false
7775
7775
  }
7776
+ },
7777
+ // ── Parity tools (matching OpenClaw plugin feature set) ───────────
7778
+ {
7779
+ name: "engram.memory_search",
7780
+ description: "Direct semantic search over memory files using the QMD index. Returns matching memories with relevance scores.",
7781
+ inputSchema: {
7782
+ type: "object",
7783
+ properties: {
7784
+ query: { type: "string" },
7785
+ namespace: { type: "string" },
7786
+ maxResults: { type: "number" },
7787
+ collection: { type: "string", description: "QMD collection (omit for memory, 'global' for all)" }
7788
+ },
7789
+ required: ["query"],
7790
+ additionalProperties: false
7791
+ }
7792
+ },
7793
+ {
7794
+ name: "engram.memory_profile",
7795
+ description: "Read the user's behavioral profile \u2014 a living document of their preferences, habits, and personality.",
7796
+ inputSchema: {
7797
+ type: "object",
7798
+ properties: { namespace: { type: "string" } },
7799
+ additionalProperties: false
7800
+ }
7801
+ },
7802
+ {
7803
+ name: "engram.memory_entities_list",
7804
+ description: "List all tracked entities (people, projects, tools, companies).",
7805
+ inputSchema: {
7806
+ type: "object",
7807
+ properties: { namespace: { type: "string" } },
7808
+ additionalProperties: false
7809
+ }
7810
+ },
7811
+ {
7812
+ name: "engram.memory_questions",
7813
+ description: "List open questions the system is curious about from past conversations.",
7814
+ inputSchema: {
7815
+ type: "object",
7816
+ properties: { namespace: { type: "string" } },
7817
+ additionalProperties: false
7818
+ }
7819
+ },
7820
+ {
7821
+ name: "engram.memory_last_recall",
7822
+ description: "Return the last recall snapshot for a session (debug introspection).",
7823
+ inputSchema: {
7824
+ type: "object",
7825
+ properties: { sessionKey: { type: "string" } },
7826
+ additionalProperties: false
7827
+ }
7828
+ },
7829
+ {
7830
+ name: "engram.memory_intent_debug",
7831
+ description: "Return the last intent classification debug snapshot.",
7832
+ inputSchema: {
7833
+ type: "object",
7834
+ properties: { namespace: { type: "string" } },
7835
+ additionalProperties: false
7836
+ }
7837
+ },
7838
+ {
7839
+ name: "engram.memory_qmd_debug",
7840
+ description: "Return QMD search index debug information from the last recall.",
7841
+ inputSchema: {
7842
+ type: "object",
7843
+ properties: { namespace: { type: "string" } },
7844
+ additionalProperties: false
7845
+ }
7846
+ },
7847
+ {
7848
+ name: "engram.memory_graph_explain",
7849
+ description: "Explain the last entity graph recall \u2014 which entities were activated and why.",
7850
+ inputSchema: {
7851
+ type: "object",
7852
+ properties: { namespace: { type: "string" } },
7853
+ additionalProperties: false
7854
+ }
7855
+ },
7856
+ {
7857
+ name: "engram.memory_feedback",
7858
+ description: "Record relevance feedback (thumbs up/down) for a specific memory.",
7859
+ inputSchema: {
7860
+ type: "object",
7861
+ properties: {
7862
+ memoryId: { type: "string" },
7863
+ vote: { type: "string", enum: ["up", "down"] },
7864
+ note: { type: "string" }
7865
+ },
7866
+ required: ["memoryId", "vote"],
7867
+ additionalProperties: false
7868
+ }
7869
+ },
7870
+ {
7871
+ name: "engram.memory_promote",
7872
+ description: "Promote a memory's lifecycle state (e.g. from draft to active).",
7873
+ inputSchema: {
7874
+ type: "object",
7875
+ properties: {
7876
+ memoryId: { type: "string" },
7877
+ namespace: { type: "string" },
7878
+ sessionKey: { type: "string" }
7879
+ },
7880
+ required: ["memoryId"],
7881
+ additionalProperties: false
7882
+ }
7883
+ },
7884
+ {
7885
+ name: "engram.context_checkpoint",
7886
+ description: "Save a structured context checkpoint for a session (preserves conversation state to disk).",
7887
+ inputSchema: {
7888
+ type: "object",
7889
+ properties: {
7890
+ sessionKey: { type: "string" },
7891
+ context: { type: "string", description: "Context content to checkpoint" },
7892
+ namespace: { type: "string" }
7893
+ },
7894
+ required: ["sessionKey", "context"],
7895
+ additionalProperties: false
7896
+ }
7776
7897
  }
7777
7898
  ];
7778
7899
  }
@@ -8038,6 +8159,66 @@ ${body}`;
8038
8159
  limit: typeof args.limit === "number" && Number.isFinite(args.limit) ? args.limit : void 0,
8039
8160
  authenticatedPrincipal: effectivePrincipal
8040
8161
  });
8162
+ // ── Parity tools ──────────────────────────────────────────────────
8163
+ case "engram.memory_search":
8164
+ return this.service.memorySearch({
8165
+ query: typeof args.query === "string" ? args.query : "",
8166
+ namespace: typeof args.namespace === "string" ? args.namespace : void 0,
8167
+ maxResults: typeof args.maxResults === "number" && Number.isFinite(args.maxResults) ? args.maxResults : void 0,
8168
+ collection: typeof args.collection === "string" ? args.collection : void 0,
8169
+ principal: effectivePrincipal
8170
+ });
8171
+ case "engram.memory_profile":
8172
+ return this.service.memoryProfile(
8173
+ typeof args.namespace === "string" ? args.namespace : void 0,
8174
+ effectivePrincipal
8175
+ );
8176
+ case "engram.memory_entities_list":
8177
+ return this.service.memoryEntitiesList(
8178
+ typeof args.namespace === "string" ? args.namespace : void 0,
8179
+ effectivePrincipal
8180
+ );
8181
+ case "engram.memory_questions":
8182
+ return this.service.memoryQuestions(
8183
+ typeof args.namespace === "string" ? args.namespace : void 0,
8184
+ effectivePrincipal
8185
+ );
8186
+ case "engram.memory_last_recall":
8187
+ return this.service.lastRecallSnapshot(
8188
+ typeof args.sessionKey === "string" ? args.sessionKey : void 0
8189
+ );
8190
+ case "engram.memory_intent_debug":
8191
+ return this.service.intentDebug(
8192
+ typeof args.namespace === "string" ? args.namespace : void 0
8193
+ );
8194
+ case "engram.memory_qmd_debug":
8195
+ return this.service.qmdDebug(
8196
+ typeof args.namespace === "string" ? args.namespace : void 0
8197
+ );
8198
+ case "engram.memory_graph_explain":
8199
+ return this.service.graphExplainLastRecall(
8200
+ typeof args.namespace === "string" ? args.namespace : void 0
8201
+ );
8202
+ case "engram.memory_feedback":
8203
+ return this.service.memoryFeedback({
8204
+ memoryId: typeof args.memoryId === "string" ? args.memoryId : "",
8205
+ vote: args.vote === "down" ? "down" : "up",
8206
+ note: typeof args.note === "string" ? args.note : void 0
8207
+ });
8208
+ case "engram.memory_promote":
8209
+ return this.service.memoryPromote({
8210
+ memoryId: typeof args.memoryId === "string" ? args.memoryId : "",
8211
+ namespace: typeof args.namespace === "string" ? args.namespace : void 0,
8212
+ principal: effectivePrincipal,
8213
+ sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : void 0
8214
+ });
8215
+ case "engram.context_checkpoint":
8216
+ return this.service.contextCheckpoint({
8217
+ sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : "",
8218
+ context: typeof args.context === "string" ? args.context : "",
8219
+ namespace: typeof args.namespace === "string" ? args.namespace : void 0,
8220
+ principal: effectivePrincipal
8221
+ });
8041
8222
  default:
8042
8223
  throw new Error(`unknown tool: ${name}`);
8043
8224
  }