Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
feat(policy): Mirror the server-only memoryEnabled org-policy field (#1717)
Chad Piha91c119501b0b
diff --git a/src/types/policy.ts b/src/types/policy.tsindex aea15ea6f..01e20bdf2 100644--- a/src/types/policy.ts+++ b/src/types/policy.ts@@ -27,6 +27,11 @@ export interface OrgPolicy {webSearchEnabled: boolean;/** Absent on servers that predate the field; absent means allowed. */screenContextEnabled?: boolean;+ /**+ * Server-only Mem0 agent-memory gate, enforced by the API on+ * `/api/agent/stream`; the app never reads it. Absent on older servers.+ */+ memoryEnabled?: boolean;};sharing: {externalLinkSharing: ExternalSharingMode;diff --git a/test/helpers/policyValidation.test.js b/test/helpers/policyValidation.test.jsindex f23520e9f..f7d881f72 100644--- a/test/helpers/policyValidation.test.js+++ b/test/helpers/policyValidation.test.js@@ -65,6 +65,16 @@ test("rejects a malformed screenContextEnabled", () => {}});+test("tolerates the server-only memoryEnabled flag", () => {+ // The API gates Mem0 agent memory itself and the app never reads the field,+ // so its presence must not invalidate an otherwise valid policy.+ for (const value of [true, false]) {+ const policy = validPolicy();+ policy.features.memoryEnabled = value;+ assert.equal(isValidPolicyShape(policy), true, String(value));+ }+});+test("requires the supported policy schema version", () => {for (const version of [undefined, null, 0, 2, "1"]) {const policy = validPolicy();