An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
🧪 Declare search key fixture return type https://github.com/siyuan-note/siyuan/issues/20314
Daniel57789cc5f12b
diff --git a/app/src/boot/globalEvent/searchKeydown.test.ts b/app/src/boot/globalEvent/searchKeydown.test.tsindex 730034cdb2..ad6069a039 100644--- a/app/src/boot/globalEvent/searchKeydown.test.ts+++ b/app/src/boot/globalEvent/searchKeydown.test.ts@@ -15,7 +15,7 @@ const runEnter = (targetId: string, method: number, resultType: string | undefin}};const dialog = {element: {contains: () => true, querySelector: (selector: string) => selector === "#searchList" ? {} : element},data: {method}, editors: {edit: {protyle: {}}}};- const dependencies = {matchHotKey: () => false, hasClosestByClassName: () => false, getKeysByLiElement: () => [], Constants: {KEYCODELIST: {}},+ const dependencies = {matchHotKey: () => false, hasClosestByClassName: () => false, getKeysByLiElement: (): string[] => [], Constants: {KEYCODELIST: {}},replace: () => calls.push("replace"), newFile: () => calls.push("newFile"), openSearchEditor: () => calls.push("open")};const exports: Record<string, unknown> = {};runInNewContext(transpileModule(readFileSync(__dirname + "/searchKeydown.ts", "utf8"), {