@openviking/opencode-plugin 2026.10.19 → 2026.10.20
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/lib/shared/recall-core.mjs +11 -6
- package/package.json +2 -2
|
@@ -473,17 +473,22 @@ function looksLikeUnknownField(res) {
|
|
|
473
473
|
return text.includes("extra") || text.includes("mode") || text.includes("unexpected");
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
+
// Recalled text is the user's own history. Without a provenance boundary a model
|
|
477
|
+
// may cite an internal decision as external evidence or industry practice.
|
|
478
|
+
export const RECALL_CONTEXT_TEMPLATE = [
|
|
479
|
+
"<openviking-context>",
|
|
480
|
+
"Relevant memory from OpenViking. It is this user's own saved history (past conversations, meetings, notes) as recorded then: internal context, not an external source or established fact. Use the search/read MCP tools to expand URIs.",
|
|
481
|
+
"{context}",
|
|
482
|
+
"</openviking-context>",
|
|
483
|
+
].join("\n");
|
|
484
|
+
|
|
476
485
|
function wrapContext(body) {
|
|
477
486
|
// Retrieved text cannot introduce a second capture delimiter inside ours.
|
|
478
487
|
const text = String(body)
|
|
479
488
|
.replace(/<\/?relevant-memor(?:y|ies)\b[^>]*>/gi, "legacy memory wrapper")
|
|
480
489
|
.replace(/<\/?openviking-context\b[^>]*>/gi, "openviking context marker");
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
"Relevant memory from OpenViking. Use the search/read MCP tools to expand URIs.",
|
|
484
|
-
text,
|
|
485
|
-
"</openviking-context>",
|
|
486
|
-
].join("\n");
|
|
490
|
+
// Use a replacer so recalled dollar sequences stay literal.
|
|
491
|
+
return RECALL_CONTEXT_TEMPLATE.replace("{context}", () => text);
|
|
487
492
|
}
|
|
488
493
|
|
|
489
494
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openviking/opencode-plugin",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.20",
|
|
4
4
|
"author": "@openviking",
|
|
5
5
|
"description": "Unified OpenCode plugin for OpenViking repository retrieval and long-term memory",
|
|
6
6
|
"type": "module",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"code-search"
|
|
47
47
|
],
|
|
48
48
|
"license": "Apache-2.0",
|
|
49
|
-
"openvikingSourceCommit": "
|
|
49
|
+
"openvikingSourceCommit": "172c8648f8f0d4b8336d2534647487f728288aa2"
|
|
50
50
|
}
|