@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.
Files changed (37) hide show
  1. package/auto-recall.ts +5 -4
  2. package/context-engine.ts +0 -1
  3. package/dist/auto-recall.js +4 -4
  4. package/dist/context-engine.js +0 -1
  5. package/dist/index.js +4 -4
  6. package/dist/plugin/openviking-archive-tools.js +1 -2
  7. package/dist/plugin/openviking-command-definitions.js +3 -3
  8. package/dist/plugin/openviking-import-tools.js +2 -2
  9. package/dist/plugin/openviking-memory-recall-tools.js +4 -4
  10. package/dist/plugin/openviking-memory-tools.js +11 -6
  11. package/dist/plugin/openviking-query-runtime.js +1 -1
  12. package/dist/plugin/openviking-query-tools.js +4 -4
  13. package/dist/plugin/openviking-recall-trace-runtime.js +3 -3
  14. package/dist/plugin/openviking-session-routing-runtime.js +9 -2
  15. package/dist/plugin/openviking-tool-result-tools.js +3 -3
  16. package/dist/routing/identity-routing.js +27 -0
  17. package/dist/routing/memory-uri.js +1 -0
  18. package/dist/services/context-lifecycle-service.js +21 -16
  19. package/dist/services/context-message-adapter.js +2 -9
  20. package/index.ts +3 -3
  21. package/package.json +1 -1
  22. package/plugin/command-registration.ts +2 -0
  23. package/plugin/openviking-archive-tools.ts +1 -4
  24. package/plugin/openviking-command-definitions.ts +4 -3
  25. package/plugin/openviking-import-tools.ts +4 -2
  26. package/plugin/openviking-memory-recall-tools.ts +6 -4
  27. package/plugin/openviking-memory-tools.ts +18 -10
  28. package/plugin/openviking-query-runtime.ts +1 -1
  29. package/plugin/openviking-query-tools.ts +6 -4
  30. package/plugin/openviking-recall-trace-runtime.ts +4 -3
  31. package/plugin/openviking-recall-trace-tools.ts +2 -0
  32. package/plugin/openviking-session-routing-runtime.ts +15 -1
  33. package/plugin/openviking-tool-result-tools.ts +0 -6
  34. package/routing/identity-routing.ts +41 -0
  35. package/routing/memory-uri.ts +1 -0
  36. package/services/context-lifecycle-service.ts +27 -18
  37. 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
- if (!senderId) {
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
  /**