@openviking/dsh-memory-plugin 0.5.18 → 0.5.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/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: this.config.commitKeepRecentCount }),
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.18";
4
+ export const PLUGIN_VERSION = "0.5.20";
5
5
 
6
6
  /**
7
7
  * Namespace for the bridged OpenViking MCP tools. DSH publishes every MCP tool
package/icon.svg CHANGED
@@ -1,4 +1,4 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#07090D">
2
- <style>@media (prefers-color-scheme: dark) { .openviking-mark { fill: #F4F5F3; } }</style>
3
- <g class="openviking-mark"><polygon points="2,21 6,21 18,3"/><polygon points="9,21 21,3 21,21"/></g>
2
+ <style>@media (prefers-color-scheme: dark) { .openviking-mark { fill: #F2F4F6; } }</style>
3
+ <path class="openviking-mark" transform="scale(.24)" d="M20.5 84H31L70 16.45H67ZM37 84 76 16.45V84Z"/>
4
4
  </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openviking/dsh-memory-plugin",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
4
4
  "description": "OpenViking memory and context bundle for DeepSeek Harness",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
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;
@@ -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
@@ -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(() => null);
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,