@openviking/openclaw-plugin 2026.8.13-1 → 2026.8.13

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/client.ts CHANGED
@@ -378,17 +378,13 @@ export class OpenVikingClient {
378
378
  const payload = (await response.json().catch(() => ({}))) as {
379
379
  status?: string;
380
380
  result?: T;
381
- error?: { code?: string; message?: string; trace_id?: string };
381
+ error?: { code?: string; message?: string };
382
382
  };
383
383
 
384
384
  if (!response.ok || payload.status === "error") {
385
385
  const code = payload.error?.code ? ` [${payload.error.code}]` : "";
386
386
  const message = payload.error?.message ?? `HTTP ${response.status}`;
387
- const traceId = payload.error?.trace_id;
388
- throw new Error(
389
- `OpenViking request failed${code}: ${message}` +
390
- (traceId ? ` (trace_id=${traceId})` : ""),
391
- );
387
+ throw new Error(`OpenViking request failed${code}: ${message}`);
392
388
  }
393
389
 
394
390
  return (payload.result ?? payload) as T;
package/dist/client.js CHANGED
@@ -150,9 +150,7 @@ export class OpenVikingClient {
150
150
  if (!response.ok || payload.status === "error") {
151
151
  const code = payload.error?.code ? ` [${payload.error.code}]` : "";
152
152
  const message = payload.error?.message ?? `HTTP ${response.status}`;
153
- const traceId = payload.error?.trace_id;
154
- throw new Error(`OpenViking request failed${code}: ${message}` +
155
- (traceId ? ` (trace_id=${traceId})` : ""));
153
+ throw new Error(`OpenViking request failed${code}: ${message}`);
156
154
  }
157
155
  return (payload.result ?? payload);
158
156
  }
@@ -55,41 +55,27 @@ export function registerOpenVikingMemoryTools(deps) {
55
55
  });
56
56
  const memoriesCount = totalCommitMemories(commitResult);
57
57
  if (commitResult.status === "failed") {
58
- deps.logger.warn(`openviking: memory_store commit failed (sessionId=${sessionId}): ` +
59
- `${commitResult.error ?? "unknown"}, trace_id=${commitResult.trace_id ?? "none"}`);
58
+ deps.logger.warn(`openviking: memory_store commit failed (sessionId=${sessionId}): ${commitResult.error ?? "unknown"}`);
60
59
  return {
61
- content: [{
62
- type: "text",
63
- text: `Memory extraction failed for session ${sessionId}: ${commitResult.error ?? "unknown"}` +
64
- (commitResult.trace_id ? ` (trace_id=${commitResult.trace_id})` : ""),
65
- }],
60
+ content: [{ type: "text", text: `Memory extraction failed for session ${sessionId}: ${commitResult.error ?? "unknown"}` }],
66
61
  details: {
67
62
  action: "failed",
68
63
  sessionId,
69
64
  status: "failed",
70
65
  error: commitResult.error,
71
- traceId: commitResult.trace_id,
72
66
  usedTempSession,
73
67
  },
74
68
  };
75
69
  }
76
70
  if (commitResult.status === "timeout") {
77
- deps.logger.warn(`openviking: memory_store commit timed out (sessionId=${sessionId}), ` +
78
- `task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}. ` +
79
- "Memories may still be extracting in background.");
71
+ deps.logger.warn(`openviking: memory_store commit timed out (sessionId=${sessionId}), task_id=${commitResult.task_id ?? "none"}. Memories may still be extracting in background.`);
80
72
  return {
81
- content: [{
82
- type: "text",
83
- text: `Memory extraction timed out for session ${sessionId}. ` +
84
- `It may still complete in the background (task_id=${commitResult.task_id ?? "none"}` +
85
- `${commitResult.trace_id ? `, trace_id=${commitResult.trace_id}` : ""}).`,
86
- }],
73
+ content: [{ type: "text", text: `Memory extraction timed out for session ${sessionId}. It may still complete in the background (task_id=${commitResult.task_id ?? "none"}).` }],
87
74
  details: {
88
75
  action: "timeout",
89
76
  sessionId,
90
77
  status: "timeout",
91
78
  taskId: commitResult.task_id,
92
- traceId: commitResult.trace_id,
93
79
  usedTempSession,
94
80
  },
95
81
  };
@@ -99,15 +85,13 @@ export function registerOpenVikingMemoryTools(deps) {
99
85
  "Check OpenViking server logs for embedding/extract errors (e.g. 401 API key, or extraction pipeline).");
100
86
  }
101
87
  else {
102
- deps.logger.info?.(`openviking: memory_store committed, memories=${memoriesCount}, ` +
103
- `trace_id=${commitResult.trace_id ?? "none"}`);
88
+ deps.logger.info?.(`openviking: memory_store committed, memories=${memoriesCount}`);
104
89
  }
105
90
  return {
106
91
  content: [
107
92
  {
108
93
  type: "text",
109
- text: `Stored in OpenViking session ${sessionId} and committed ${memoriesCount} memories.` +
110
- (commitResult.trace_id ? ` (trace_id=${commitResult.trace_id})` : ""),
94
+ text: `Stored in OpenViking session ${sessionId} and committed ${memoriesCount} memories.`,
111
95
  },
112
96
  ],
113
97
  details: {
@@ -116,7 +100,6 @@ export function registerOpenVikingMemoryTools(deps) {
116
100
  memoriesCount,
117
101
  status: commitResult.status,
118
102
  archived: commitResult.archived ?? false,
119
- traceId: commitResult.trace_id,
120
103
  usedTempSession,
121
104
  },
122
105
  };
@@ -160,13 +160,11 @@ export async function commitOpenVikingSession({ sessionId, sessionKey, getClient
160
160
  });
161
161
  const memCount = totalExtractedMemories(commitResult.memories_extracted);
162
162
  if (commitResult.status === "failed") {
163
- logger.warn?.(`openviking: commit Phase 2 failed for session=${sessionId}: ${commitResult.error ?? "unknown"}, ` +
164
- `trace_id=${commitResult.trace_id ?? "none"}`);
163
+ logger.warn?.(`openviking: commit Phase 2 failed for session=${sessionId}: ${commitResult.error ?? "unknown"}`);
165
164
  return false;
166
165
  }
167
166
  if (commitResult.status === "timeout") {
168
- logger.warn?.(`openviking: commit Phase 2 timed out for session=${sessionId}, ` +
169
- `task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}`);
167
+ logger.warn?.(`openviking: commit Phase 2 timed out for session=${sessionId}, task_id=${commitResult.task_id ?? "none"}`);
170
168
  return false;
171
169
  }
172
170
  logger.info(`openviking: committed OV session=${sessionId} ovId=${ovId}, archived=${commitResult.archived ?? false}, memories=${memCount}, task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}`);
@@ -724,8 +722,7 @@ export async function compactOpenVikingSession({ sessionId, sessionKey, tokenBud
724
722
  });
725
723
  const memCount = totalExtractedMemories(commitResult.memories_extracted);
726
724
  if (commitResult.status === "failed") {
727
- logger.warn?.(`openviking: compact commit Phase 2 failed for session=${ovSessionId}: ` +
728
- `${commitResult.error ?? "unknown"}, trace_id=${commitResult.trace_id ?? "none"}`);
725
+ logger.warn?.(`openviking: compact commit Phase 2 failed for session=${ovSessionId}: ${commitResult.error ?? "unknown"}`);
729
726
  diag("compact_result", ovSessionId, {
730
727
  ok: false,
731
728
  compacted: false,
@@ -738,8 +735,7 @@ export async function compactOpenVikingSession({ sessionId, sessionKey, tokenBud
738
735
  return compactFailureResult("commit_failed", tokensBefore, { commit: commitResult });
739
736
  }
740
737
  if (commitResult.status === "timeout") {
741
- logger.warn?.(`openviking: compact commit Phase 2 timed out for session=${ovSessionId}, ` +
742
- `task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}`);
738
+ logger.warn?.(`openviking: compact commit Phase 2 timed out for session=${ovSessionId}, task_id=${commitResult.task_id ?? "none"}`);
743
739
  diag("compact_result", ovSessionId, {
744
740
  ok: false,
745
741
  compacted: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openviking/openclaw-plugin",
3
- "version": "2026.8.13-1",
3
+ "version": "2026.8.13",
4
4
  "displayName": "OpenViking",
5
5
  "description": "OpenClaw context-engine plugin — OpenViking AI memory, long-term memory, knowledge base, semantic search, RAG, context engine. 长期记忆 · 知识库 · 语义检索 · 上下文引擎",
6
6
  "type": "module",
@@ -132,44 +132,30 @@ export function registerOpenVikingMemoryTools(deps: OpenVikingMemoryToolsDeps):
132
132
  const memoriesCount = totalCommitMemories(commitResult);
133
133
  if (commitResult.status === "failed") {
134
134
  deps.logger.warn(
135
- `openviking: memory_store commit failed (sessionId=${sessionId}): ` +
136
- `${commitResult.error ?? "unknown"}, trace_id=${commitResult.trace_id ?? "none"}`,
135
+ `openviking: memory_store commit failed (sessionId=${sessionId}): ${commitResult.error ?? "unknown"}`,
137
136
  );
138
137
  return {
139
- content: [{
140
- type: "text",
141
- text: `Memory extraction failed for session ${sessionId}: ${commitResult.error ?? "unknown"}` +
142
- (commitResult.trace_id ? ` (trace_id=${commitResult.trace_id})` : ""),
143
- }],
138
+ content: [{ type: "text", text: `Memory extraction failed for session ${sessionId}: ${commitResult.error ?? "unknown"}` }],
144
139
  details: {
145
140
  action: "failed",
146
141
  sessionId,
147
142
  status: "failed",
148
143
  error: commitResult.error,
149
- traceId: commitResult.trace_id,
150
144
  usedTempSession,
151
145
  },
152
146
  };
153
147
  }
154
148
  if (commitResult.status === "timeout") {
155
149
  deps.logger.warn(
156
- `openviking: memory_store commit timed out (sessionId=${sessionId}), ` +
157
- `task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}. ` +
158
- "Memories may still be extracting in background.",
150
+ `openviking: memory_store commit timed out (sessionId=${sessionId}), task_id=${commitResult.task_id ?? "none"}. Memories may still be extracting in background.`,
159
151
  );
160
152
  return {
161
- content: [{
162
- type: "text",
163
- text: `Memory extraction timed out for session ${sessionId}. ` +
164
- `It may still complete in the background (task_id=${commitResult.task_id ?? "none"}` +
165
- `${commitResult.trace_id ? `, trace_id=${commitResult.trace_id}` : ""}).`,
166
- }],
153
+ content: [{ type: "text", text: `Memory extraction timed out for session ${sessionId}. It may still complete in the background (task_id=${commitResult.task_id ?? "none"}).` }],
167
154
  details: {
168
155
  action: "timeout",
169
156
  sessionId,
170
157
  status: "timeout",
171
158
  taskId: commitResult.task_id,
172
- traceId: commitResult.trace_id,
173
159
  usedTempSession,
174
160
  },
175
161
  };
@@ -180,17 +166,13 @@ export function registerOpenVikingMemoryTools(deps: OpenVikingMemoryToolsDeps):
180
166
  "Check OpenViking server logs for embedding/extract errors (e.g. 401 API key, or extraction pipeline).",
181
167
  );
182
168
  } else {
183
- deps.logger.info?.(
184
- `openviking: memory_store committed, memories=${memoriesCount}, ` +
185
- `trace_id=${commitResult.trace_id ?? "none"}`,
186
- );
169
+ deps.logger.info?.(`openviking: memory_store committed, memories=${memoriesCount}`);
187
170
  }
188
171
  return {
189
172
  content: [
190
173
  {
191
174
  type: "text",
192
- text: `Stored in OpenViking session ${sessionId} and committed ${memoriesCount} memories.` +
193
- (commitResult.trace_id ? ` (trace_id=${commitResult.trace_id})` : ""),
175
+ text: `Stored in OpenViking session ${sessionId} and committed ${memoriesCount} memories.`,
194
176
  },
195
177
  ],
196
178
  details: {
@@ -199,7 +181,6 @@ export function registerOpenVikingMemoryTools(deps: OpenVikingMemoryToolsDeps):
199
181
  memoriesCount,
200
182
  status: commitResult.status,
201
183
  archived: commitResult.archived ?? false,
202
- traceId: commitResult.trace_id,
203
184
  usedTempSession,
204
185
  },
205
186
  };
@@ -368,17 +368,11 @@ export async function commitOpenVikingSession({
368
368
  });
369
369
  const memCount = totalExtractedMemories(commitResult.memories_extracted);
370
370
  if (commitResult.status === "failed") {
371
- logger.warn?.(
372
- `openviking: commit Phase 2 failed for session=${sessionId}: ${commitResult.error ?? "unknown"}, ` +
373
- `trace_id=${commitResult.trace_id ?? "none"}`,
374
- );
371
+ logger.warn?.(`openviking: commit Phase 2 failed for session=${sessionId}: ${commitResult.error ?? "unknown"}`);
375
372
  return false;
376
373
  }
377
374
  if (commitResult.status === "timeout") {
378
- logger.warn?.(
379
- `openviking: commit Phase 2 timed out for session=${sessionId}, ` +
380
- `task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}`,
381
- );
375
+ logger.warn?.(`openviking: commit Phase 2 timed out for session=${sessionId}, task_id=${commitResult.task_id ?? "none"}`);
382
376
  return false;
383
377
  }
384
378
  logger.info(
@@ -1075,8 +1069,7 @@ export async function compactOpenVikingSession({
1075
1069
 
1076
1070
  if (commitResult.status === "failed") {
1077
1071
  logger.warn?.(
1078
- `openviking: compact commit Phase 2 failed for session=${ovSessionId}: ` +
1079
- `${commitResult.error ?? "unknown"}, trace_id=${commitResult.trace_id ?? "none"}`,
1072
+ `openviking: compact commit Phase 2 failed for session=${ovSessionId}: ${commitResult.error ?? "unknown"}`,
1080
1073
  );
1081
1074
  diag("compact_result", ovSessionId, {
1082
1075
  ok: false,
@@ -1092,8 +1085,7 @@ export async function compactOpenVikingSession({
1092
1085
 
1093
1086
  if (commitResult.status === "timeout") {
1094
1087
  logger.warn?.(
1095
- `openviking: compact commit Phase 2 timed out for session=${ovSessionId}, ` +
1096
- `task_id=${commitResult.task_id ?? "none"}, trace_id=${commitResult.trace_id ?? "none"}`,
1088
+ `openviking: compact commit Phase 2 timed out for session=${ovSessionId}, task_id=${commitResult.task_id ?? "none"}`,
1097
1089
  );
1098
1090
  diag("compact_result", ovSessionId, {
1099
1091
  ok: false,