@openviking/openclaw-plugin 2026.7.11 → 2026.7.15
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/auto-recall.ts +5 -4
- package/context-engine.ts +0 -1
- package/dist/auto-recall.js +4 -4
- package/dist/context-engine.js +0 -1
- package/dist/index.js +4 -4
- package/dist/plugin/openviking-archive-tools.js +1 -2
- package/dist/plugin/openviking-command-definitions.js +3 -3
- package/dist/plugin/openviking-import-tools.js +2 -2
- package/dist/plugin/openviking-memory-recall-tools.js +4 -4
- package/dist/plugin/openviking-memory-tools.js +11 -6
- package/dist/plugin/openviking-query-runtime.js +1 -1
- package/dist/plugin/openviking-query-tools.js +4 -4
- package/dist/plugin/openviking-recall-trace-runtime.js +3 -3
- package/dist/plugin/openviking-session-routing-runtime.js +9 -2
- package/dist/plugin/openviking-tool-result-tools.js +3 -3
- package/dist/routing/identity-routing.js +27 -0
- package/dist/routing/memory-uri.js +1 -0
- package/dist/services/context-lifecycle-service.js +21 -16
- package/dist/services/context-message-adapter.js +2 -9
- package/index.ts +3 -3
- package/package.json +1 -1
- package/plugin/command-registration.ts +2 -0
- package/plugin/openviking-archive-tools.ts +1 -4
- package/plugin/openviking-command-definitions.ts +4 -3
- package/plugin/openviking-import-tools.ts +4 -2
- package/plugin/openviking-memory-recall-tools.ts +6 -4
- package/plugin/openviking-memory-tools.ts +18 -10
- package/plugin/openviking-query-runtime.ts +1 -1
- package/plugin/openviking-query-tools.ts +6 -4
- package/plugin/openviking-recall-trace-runtime.ts +4 -3
- package/plugin/openviking-recall-trace-tools.ts +2 -0
- package/plugin/openviking-session-routing-runtime.ts +15 -1
- package/plugin/openviking-tool-result-tools.ts +0 -6
- package/routing/identity-routing.ts +41 -0
- package/routing/memory-uri.ts +1 -0
- package/services/context-lifecycle-service.ts +27 -18
- package/services/context-message-adapter.ts +2 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OVMessage } from "../client.js";
|
|
2
|
+
import { sanitizeOpenVikingPeerId } from "../routing/identity-routing.js";
|
|
2
3
|
import { sanitizeToolUseResultPairing } from "../session-transcript-repair.js";
|
|
3
4
|
|
|
4
5
|
export type AgentMessage = {
|
|
@@ -8,15 +9,7 @@ export type AgentMessage = {
|
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export function toRoleId(senderId: string | undefined): string | undefined {
|
|
11
|
-
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
const normalized = senderId
|
|
15
|
-
.trim()
|
|
16
|
-
.replace(/[^a-zA-Z0-9_-]+/g, "_")
|
|
17
|
-
.replace(/^_+|_+$/g, "")
|
|
18
|
-
.replace(/_+/g, "_");
|
|
19
|
-
return normalized || undefined;
|
|
12
|
+
return sanitizeOpenVikingPeerId(senderId);
|
|
20
13
|
}
|
|
21
14
|
|
|
22
15
|
/**
|