Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

741 B
Raw Blame
const test = require("node:test");
const assert = require("node:assert/strict");

test("a turn that keeps notes unchanged isn't offered update_note", async () => {
  const { createToolRegistry } = await import("../../src/services/tools/index.ts");
  const settings = {
    isSignedIn: false,
    calendarConnected: false,
    cloudBackupEnabled: false,
    webSearchEnabled: false,
  };

  const chat = createToolRegistry(settings);
  const chatAction = createToolRegistry({ ...settings, keepNotesUnchanged: true });

  assert.ok(chat.get("update_note"), "a plain message can still edit a note");
  assert.equal(chatAction.get("update_note"), undefined);
  assert.ok(chatAction.get("get_note"), "a chat action can still read the note");
});