An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Import search attributes directly and document module extraction rules https://github.com/siyuan-note/siyuan/issues/19317
Daniel601ad1b01f10
diff --git a/AGENTS.md b/AGENTS.mdindex b2a8b9f07f..029768f5e6 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -102,6 +102,7 @@ SiYuan repository guide. Module path `github.com/siyuan-note/siyuan`, license AG3. **UI paths:** In all contexts, including code comments, UI text, i18n, user guides, documentation, issue/PR content, and responses, separate navigation levels with a hyphen surrounded by spaces (for example, `设置 - 快捷键 - 通用`); do not use arrow symbols such as `→`4. **Markdown:** Do not hand-wrap; keep each line (paragraphs, table rows, list items, etc.) on a single line5. **TypeScript/JavaScript:** Semicolons required, use double quotes, indent with spaces+ - When moving or extracting a symbol into another module, update all affected imports to reference its defining module directly. Do not leave forwarding re-exports in the original module merely to avoid updating callers6. **CSS:** Do not use the `:has()` selector because of its performance impact7. **CSS positioning and scrolling:** When changing `position`, `transform`, `contain`, or `overflow` on a shared container, check the effects on descendant positioning reference frames, overlay coverage, and clipping. Prefer a dedicated container when a local control needs a positioning reference. For settings dialog changes, verify detail overlays, the top drag area, and scrollbar placement at different window widthsdiff --git a/app/src/search/unRef.ts b/app/src/search/unRef.tsindex ea95127de7..627617d5a3 100644--- a/app/src/search/unRef.ts+++ b/app/src/search/unRef.ts@@ -1,7 +1,8 @@import {Constants} from "../constants";import {fetchPost} from "../util/fetch";import {setStorageVal} from "../protyle/util/compatibility";-import {getArticle, getAttr} from "./util";+import {getArticle} from "./util";+import {getAttr} from "./attrs";import {escapeAriaLabel, escapeLessThans} from "../util/escape";import {getIconByType} from "../editor/getIcon";import {unicode2Emoji} from "../emoji";diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex 647c767ad8..9d0fb5a5e5 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -1554,8 +1554,6 @@ export const inputEvent = (element: Element, config: Config.IUILayoutTabSearchCo});};-export {getAttr} from "./attrs";-const onSearch = (data: IBlock[], edit: Protyle, element: Element, config: Config.IUILayoutTabSearchConfig,focusId?: {currentId?: string,