@openviking/dsh-memory-plugin 0.5.19 → 0.5.21
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/client.mjs +1 -1
- package/config.mjs +1 -1
- package/package.json +1 -1
- package/runtime.mjs +2 -6
- package/shared/config-schema.mjs +5 -0
- package/shared/ov-http.mjs +4 -1
package/client.mjs
CHANGED
|
@@ -49,7 +49,7 @@ export class OpenVikingClient {
|
|
|
49
49
|
`/api/v1/sessions/${encodeURIComponent(sessionId)}/commit`,
|
|
50
50
|
{
|
|
51
51
|
method: "POST",
|
|
52
|
-
body: JSON.stringify({ keep_recent_count:
|
|
52
|
+
body: JSON.stringify({ keep_recent_count: 0 }),
|
|
53
53
|
},
|
|
54
54
|
{ timeoutMs: options.timeoutMs ?? 30000, actorPeerId },
|
|
55
55
|
);
|
package/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildPluginConfig } from "./shared/plugin-config.mjs";
|
|
2
2
|
import { loadCredentialFiles } from "./shared/credentials.mjs";
|
|
3
3
|
|
|
4
|
-
export const PLUGIN_VERSION = "0.5.
|
|
4
|
+
export const PLUGIN_VERSION = "0.5.21";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Namespace for the bridged OpenViking MCP tools. DSH publishes every MCP tool
|
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -201,9 +201,7 @@ export class OpenVikingRuntime {
|
|
|
201
201
|
error: response.ok ? undefined : response.error?.message || response.error?.code,
|
|
202
202
|
});
|
|
203
203
|
if (isRetryableFailure(response)) {
|
|
204
|
-
await this.enqueueFinalCommit(state, {
|
|
205
|
-
keep_recent_count: state.config.commitKeepRecentCount,
|
|
206
|
-
});
|
|
204
|
+
await this.enqueueFinalCommit(state, { keep_recent_count: 0 });
|
|
207
205
|
}
|
|
208
206
|
});
|
|
209
207
|
}
|
|
@@ -215,9 +213,7 @@ export class OpenVikingRuntime {
|
|
|
215
213
|
state.disposing = (async () => {
|
|
216
214
|
this.enqueueWrite(state, async () => {
|
|
217
215
|
if (!isCaptureEnabled(state.config)) return;
|
|
218
|
-
const commitPayload = {
|
|
219
|
-
keep_recent_count: state.config.commitKeepRecentCount,
|
|
220
|
-
};
|
|
216
|
+
const commitPayload = { keep_recent_count: 0 };
|
|
221
217
|
if (state.hasPendingWrites) {
|
|
222
218
|
await this.enqueueFinalCommit(state, commitPayload);
|
|
223
219
|
return;
|
package/shared/config-schema.mjs
CHANGED
|
@@ -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
|
package/shared/ov-http.mjs
CHANGED
|
@@ -77,7 +77,10 @@ export function createOvHttp(cfg = {}, {
|
|
|
77
77
|
...(init.headers || {}),
|
|
78
78
|
};
|
|
79
79
|
const response = await fetch(`${baseUrl}${path}`, { ...init, headers, signal: controller.signal });
|
|
80
|
-
const body = await response.json().catch(() =>
|
|
80
|
+
const body = await response.json().catch((error) => {
|
|
81
|
+
if (!(error instanceof SyntaxError)) throw error;
|
|
82
|
+
return null;
|
|
83
|
+
});
|
|
81
84
|
if (requireJsonBody && !body) {
|
|
82
85
|
return {
|
|
83
86
|
ok: false,
|