Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(llm): describe behavior rather than absences in comments
Elian Doran355da790e6b5
diff --git a/apps/client/src/services/note_types.spec.ts b/apps/client/src/services/note_types.spec.tsindex df05707cd2..8b135f0379 100644--- a/apps/client/src/services/note_types.spec.ts+++ b/apps/client/src/services/note_types.spec.ts@@ -217,7 +217,6 @@ describe("getBlankNoteTypes (via getNoteTypeItems)", () => {const types = cmdItems.map((i: any) => i.type);expect(types).toContain("llmChat");- // llmChat is neither new nor beta, so it carries no badge.const llmChat = cmdItems.find((i: any) => i.type === "llmChat");expect(llmChat.badges).toEqual([]);} finally {diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ReasoningEffortDropdown.spec.tsx b/apps/client/src/widgets/type_widgets/llm_chat/ReasoningEffortDropdown.spec.tsxindex d93973b882..b9b502d957 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ReasoningEffortDropdown.spec.tsx+++ b/apps/client/src/widgets/type_widgets/llm_chat/ReasoningEffortDropdown.spec.tsx@@ -59,7 +59,7 @@ describe("ReasoningEffortDropdown", () => {"llm_chat.reasoning_effort_levels.low","llm_chat.reasoning_effort_levels.high"]);- // Pro has no Medium, so High is in effect and ticked.+ // Medium on Pro runs at the nearest level it offers, High, which is ticked.expect(items.map(item => item.classList.contains("checked") || !!item.querySelector(".bx-check"))).toEqual([ false, true ]);expect(host.querySelector("button")?.title).toBe("llm_chat.reasoning_effort_title(llm_chat.reasoning_effort_levels.high)");diff --git a/apps/server/src/services/llm/providers/antigravity_hook.ts b/apps/server/src/services/llm/providers/antigravity_hook.tsindex bf77e78d13..7f79f038a7 100644--- a/apps/server/src/services/llm/providers/antigravity_hook.ts+++ b/apps/server/src/services/llm/providers/antigravity_hook.ts@@ -11,8 +11,7 @@* every tool call, and a hook's `deny` stops the call. A hook that fails also* stops it. Trilium writes a hook there that posts each call to its own* loopback listener (`getAcpHookEndpointUrl`) with `curl`, and- * {@link decideAntigravityToolCall} answers. A workspace's `.agents/hooks.json`- * would not do: the server asks the user to trust the workspace first.+ * {@link decideAntigravityToolCall} answers.*/import { existsSync, mkdirSync, realpathSync, writeFileSync } from "fs";