@openviking/openclaw-plugin 2026.11.16-1 → 2026.11.19-1
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/context-engine.ts
CHANGED
|
@@ -94,6 +94,7 @@ type ContextEngine = {
|
|
|
94
94
|
sessionId: string;
|
|
95
95
|
sessionKey?: string;
|
|
96
96
|
isHeartbeat?: boolean;
|
|
97
|
+
runtimeContext?: Record<string, unknown>;
|
|
97
98
|
}) => Promise<{ status: "committed" | "duplicate" }>;
|
|
98
99
|
compact: (params: {
|
|
99
100
|
sessionId: string;
|
|
@@ -442,6 +443,7 @@ export function createMemoryOpenVikingContextEngine(params: {
|
|
|
442
443
|
prePromptMessageCount: 0, // Host already supplies the closed-turn range.
|
|
443
444
|
isHeartbeat: commitParams.isHeartbeat,
|
|
444
445
|
tokenBudget: 128_000, // Durable delivery does not carry a token budget.
|
|
446
|
+
runtimeContext: commitParams.runtimeContext,
|
|
445
447
|
throwOnError: true,
|
|
446
448
|
cfg,
|
|
447
449
|
getClient,
|
package/dist/context-engine.js
CHANGED
|
@@ -261,6 +261,7 @@ export function createMemoryOpenVikingContextEngine(params) {
|
|
|
261
261
|
prePromptMessageCount: 0, // Host already supplies the closed-turn range.
|
|
262
262
|
isHeartbeat: commitParams.isHeartbeat,
|
|
263
263
|
tokenBudget: 128_000, // Durable delivery does not carry a token budget.
|
|
264
|
+
runtimeContext: commitParams.runtimeContext,
|
|
264
265
|
throwOnError: true,
|
|
265
266
|
cfg,
|
|
266
267
|
getClient,
|
|
@@ -21,11 +21,10 @@ export function resolveOpenVikingMessagePeerId(params) {
|
|
|
21
21
|
return undefined;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Peer scoping is soft isolation. OpenClaw
|
|
25
|
-
* (
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* taking OpenViking away for the turn.
|
|
24
|
+
* Peer scoping is soft isolation. OpenClaw may not hand every path a sender
|
|
25
|
+
* (for example, cron and heartbeat turns have no sender at all), so a missing
|
|
26
|
+
* one widens to the unscoped request a caller without X-OpenViking-Actor-Peer
|
|
27
|
+
* gets, with a warning, rather than taking OpenViking away for the turn.
|
|
29
28
|
*/
|
|
30
29
|
export function resolveOpenVikingActorPeerId(params) {
|
|
31
30
|
const actorPeerId = resolveOpenVikingMessagePeerId({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openviking/openclaw-plugin",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.19-1",
|
|
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",
|
|
@@ -42,11 +42,10 @@ export function resolveOpenVikingMessagePeerId(params: {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Peer scoping is soft isolation. OpenClaw
|
|
46
|
-
* (
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* taking OpenViking away for the turn.
|
|
45
|
+
* Peer scoping is soft isolation. OpenClaw may not hand every path a sender
|
|
46
|
+
* (for example, cron and heartbeat turns have no sender at all), so a missing
|
|
47
|
+
* one widens to the unscoped request a caller without X-OpenViking-Actor-Peer
|
|
48
|
+
* gets, with a warning, rather than taking OpenViking away for the turn.
|
|
50
49
|
*/
|
|
51
50
|
export function resolveOpenVikingActorPeerId(params: {
|
|
52
51
|
peerRole: OpenVikingPeerRole;
|