An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: https://github.com/siyuan-note/siyuan/issues/11133
Vanessa40d80e029417
diff --git a/app/src/plugin/commandPanel.ts b/app/src/boot/globalEvent/commandPanel.tssimilarity index 93%rename from app/src/plugin/commandPanel.tsrename to app/src/boot/globalEvent/commandPanel.tsindex d15cefea1d..ee72e51a10 100644--- a/app/src/plugin/commandPanel.ts+++ b/app/src/boot/globalEvent/commandPanel.ts@@ -1,12 +1,12 @@-import {Dialog} from "../dialog";-import {App} from "../index";-import {upDownHint} from "../util/upDownHint";+import {Dialog} from "../../dialog";+import {App} from "../../index";+import {upDownHint} from "../../util/upDownHint";/// #if !MOBILE-import {openSetting} from "../config";+import {openSetting} from "../../config";/// #endif-import {updateHotkeyTip} from "../protyle/util/compatibility";-import {isMobile} from "../util/functions";-import {Constants} from "../constants";+import {updateHotkeyTip} from "../../protyle/util/compatibility";+import {isMobile} from "../../util/functions";+import {Constants} from "../../constants";export const commandPanel = (app: App) => {const dialog = new Dialog({diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.tsindex 9ec8c68603..e3c22b3d4a 100644--- a/app/src/boot/globalEvent/keydown.ts+++ b/app/src/boot/globalEvent/keydown.ts@@ -59,7 +59,6 @@ import {reloadProtyle} from "../../protyle/util/reload";import {fullscreen, updateReadonly} from "../../protyle/breadcrumb/action";import {openRecentDocs} from "../../business/openRecentDocs";import {App} from "../../index";-import {commandPanel} from "../../plugin/commandPanel";import {openBacklink, openGraph, openOutline, toggleDockBar} from "../../layout/dock/util";import {workspaceMenu} from "../../menus/workspace";import {resize} from "../../protyle/util/resize";@@ -76,6 +75,7 @@ import {zoomOut} from "../../menus/protyle";import {openSearchAV} from "../../protyle/render/av/relation";import * as dayjs from "dayjs";import {getPlainText} from "../../protyle/util/paste";+import {commandPanel} from "./commandPanel";const switchDialogEvent = (app: App, event: MouseEvent) => {event.preventDefault();diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.tsindex 1861c493c9..a07dc26fb5 100644--- a/app/src/layout/topBar.ts+++ b/app/src/layout/topBar.ts@@ -18,8 +18,8 @@ import {Menu} from "../plugin/Menu";import {fetchPost} from "../util/fetch";import {needSubscribe} from "../util/needSubscribe";import * as dayjs from "dayjs";-import {commandPanel} from "../plugin/commandPanel";import {exportLayout} from "./util";+import {commandPanel} from "../boot/globalEvent/commandPanel";export const initBar = (app: App) => {const toolbarElement = document.getElementById("toolbar");diff --git a/app/src/mobile/menu/index.ts b/app/src/mobile/menu/index.tsindex 73b3246265..9f36494439 100644--- a/app/src/mobile/menu/index.ts+++ b/app/src/mobile/menu/index.ts@@ -20,7 +20,7 @@ import {isHuawei, isInAndroid, isInIOS} from "../../protyle/util/compatibility";import {newFile} from "../../util/newFile";import {afterLoadPlugin} from "../../plugin/loader";import {Menu} from "../../plugin/Menu";-import {commandPanel} from "../../plugin/commandPanel";+import {commandPanel} from "../../boot/globalEvent/commandPanel";export const popMenu = () => {activeBlur();