@openviking/opencode-plugin 2026.10.8 → 2026.10.9
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/INSTALL-ZH.md +0 -1
- package/INSTALL.md +0 -1
- package/README.md +0 -1
- package/lib/memory-session.mjs +1 -1
- package/lib/shared/config-schema.mjs +5 -0
- package/lib/shared/session-model.mjs +4 -1
- package/package.json +2 -2
package/INSTALL-ZH.md
CHANGED
|
@@ -113,7 +113,6 @@ export { OpenVikingPlugin, default } from "./openviking/index.mjs"
|
|
|
113
113
|
"recallTokenBudget": 2000,
|
|
114
114
|
"minQueryLength": 3,
|
|
115
115
|
"commitTokenThreshold": 20000,
|
|
116
|
-
"commitKeepRecentCount": 10,
|
|
117
116
|
"profileTokenBudget": 10000,
|
|
118
117
|
"skillCatalog": true,
|
|
119
118
|
"skillCatalogTokenBudget": 1200,
|
package/INSTALL.md
CHANGED
package/README.md
CHANGED
|
@@ -143,7 +143,6 @@ Behaviour knobs live in `~/.openviking/ovcli.conf` beside the connection fields,
|
|
|
143
143
|
"recallTokenBudget": 2000,
|
|
144
144
|
"minQueryLength": 3,
|
|
145
145
|
"commitTokenThreshold": 20000,
|
|
146
|
-
"commitKeepRecentCount": 10,
|
|
147
146
|
"profileTokenBudget": 10000,
|
|
148
147
|
"skillCatalog": true,
|
|
149
148
|
"skillCatalogTokenBudget": 1200,
|
package/lib/memory-session.mjs
CHANGED
|
@@ -472,7 +472,7 @@ export function createMemorySessionManager({ config, pluginRoot }) {
|
|
|
472
472
|
|
|
473
473
|
async function commitOvSession(ovSessionId, { force = false, reason = "manual", abortSignal } = {}) {
|
|
474
474
|
if (!force && config.commitTokenThreshold <= 0) return { status: "skipped" }
|
|
475
|
-
const body = { keep_recent_count:
|
|
475
|
+
const body = { keep_recent_count: 0 }
|
|
476
476
|
const res = await fetchJSON(config, `/api/v1/sessions/${encodeURIComponent(ovSessionId)}/commit`, {
|
|
477
477
|
method: "POST",
|
|
478
478
|
body: JSON.stringify(body),
|
|
@@ -203,6 +203,11 @@ export const KNOBS = [
|
|
|
203
203
|
capability: "session",
|
|
204
204
|
},
|
|
205
205
|
|
|
206
|
+
// Codex's OV-Usage footer. Strings rather than enums: the reader matches
|
|
207
|
+
// several spellings case-insensitively (off/false/0/disabled, expanded/full/details).
|
|
208
|
+
{ name: "usageView", type: "string", default: "summary", env: "OPENVIKING_USAGE_VIEW", workspace: "usage.view", capability: "session" },
|
|
209
|
+
{ name: "usageOutput", type: "string", default: "auto", env: "OPENVIKING_USAGE_OUTPUT", workspace: "usage.output", capability: "session" },
|
|
210
|
+
|
|
206
211
|
// ── debug ─────────────────────────────────────────────────────────────
|
|
207
212
|
{ name: "debug", type: "bool", default: false, env: "OPENVIKING_DEBUG", capability: "debug" },
|
|
208
213
|
// The default path is per-harness and built from a log directory the loader
|
|
@@ -27,7 +27,10 @@ export function isBypassed(cfg, { sessionId, cwd } = {}) {
|
|
|
27
27
|
if (cfg.bypassSession) return true;
|
|
28
28
|
const patterns = cfg.bypassSessionPatterns || [];
|
|
29
29
|
if (patterns.length === 0) return false;
|
|
30
|
-
|
|
30
|
+
// Windows hands hooks `C:\work\scratch`, while directory patterns are written
|
|
31
|
+
// with forward slashes.
|
|
32
|
+
const slashCwd = typeof cwd === "string" && cwd.includes("\\") ? cwd.replace(/\\/g, "/") : "";
|
|
33
|
+
const haystacks = [sessionId, cwd, slashCwd].filter(Boolean);
|
|
31
34
|
for (const pat of patterns) {
|
|
32
35
|
const re = globToRe(pat);
|
|
33
36
|
if (haystacks.some((h) => re.test(h))) return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openviking/opencode-plugin",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.9",
|
|
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": "71bd2170889e2b3948a5ac27f71c792515455f2d"
|
|
50
50
|
}
|