An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
{
"ID": "20211226122358-hctqcn5",
"Spec": "2",
"Type": "NodeDocument",
"Properties": {
"id": "20211226122358-hctqcn5",
"title": "Kernel 參數",
"type": "doc",
"updated": "20261016112115"
},
"Children": [
{
"ID": "20211226122447-mz36qeo",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20211226122447-mz36qeo",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
}
]
},
{
"ID": "20211226122447-zrnua6j",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122447-zrnua6j",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "serve"
},
{
"Type": "NodeText",
"Data": " 透過 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " 指定工作空間。未指定時依序使用環境變數 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_WORKSPACE_PATH"
},
{
"Type": "NodeText",
"Data": "、最後一個已註冊工作空間、系統預設目錄:macOS 為 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~/Library/Application Support/SiYuan"
},
{
"Type": "NodeText",
"Data": ",Windows 為 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "%USERPROFILE%\\SiYuan"
},
{
"Type": "NodeText",
"Data": ",其他平台為 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~/SiYuan"
},
{
"Type": "NodeText",
"Data": "。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--home-dir"
},
{
"Type": "NodeText",
"Data": " 會改變設定與預設路徑使用的使用者主目錄。一般單次 CLI 指令的選擇規則不同,詳見 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260612191214-ymtlxn2",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "命令列"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20211226122447-zfdaq9r",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20211226122447-zfdaq9r",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--wd"
}
]
},
{
"ID": "20211226122447-8jh9v5s",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122447-8jh9v5s",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "包含 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "appearance/"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "stage/"
},
{
"Type": "NodeText",
"Data": " 的程式資源目錄,未指定時根據核心執行檔自動尋找。它與 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " 指定的資料目錄不同。"
}
]
},
{
"ID": "20211226122447-bs6e25j",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20211226122447-bs6e25j",
"updated": "20211226011025"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--readonly"
}
]
},
{
"ID": "20211226122447-3obspkw",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122447-3obspkw",
"updated": "20220517144244"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--readonly=true"
},
{
"Type": "NodeText",
"Data": " 指定後 Kernel 將以唯讀模式運行,所有寫入作業將被禁止。",
"Properties": {
"id": ""
}
}
]
},
{
"ID": "20211226122447-k8827y1",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20211226122447-k8827y1",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--accessAuthCode"
}
]
},
{
"ID": "20211226122447-5lookgq",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122447-5lookgq",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "用於設定瀏覽器"
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20211226122545-lsv6dhu",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "鎖屏密碼"
},
{
"Type": "NodeText",
"Data": "。非空 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--accessAuthCode"
},
{
"Type": "NodeText",
"Data": " 會覆寫 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "conf/conf.json"
},
{
"Type": "NodeText",
"Data": " 中的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "accessAuthCode"
},
{
"Type": "NodeText",
"Data": ";省略或傳入空值時回退至 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_ACCESS_AUTH_CODE"
},
{
"Type": "NodeText",
"Data": "。最終值為空不會清除已儲存的密碼。"
}
]
},
{
"ID": "20211226122447-0c1fqp7",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20211226122447-0c1fqp7",
"updated": "20211226011025"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--ssl"
}
]
},
{
"ID": "20211226122447-rpubgbb",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122447-rpubgbb",
"updated": "20211226011025"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--ssl=true"
},
{
"Type": "NodeText",
"Data": " 後將使用 https 和 wss 協議進行伺服。",
"Properties": {
"id": ""
}
}
]
},
{
"ID": "20220517144220-400hbxb",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20220517144220-400hbxb",
"updated": "20260914011526"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--lang"
}
]
},
{
"ID": "20220517144220-5dryt3i",
"Type": "NodeParagraph",
"Properties": {
"id": "20220517144220-5dryt3i",
"updated": "20260914011526"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--lang=zh-CN"
},
{
"Type": "NodeText",
"Data": " 後將使用簡體中文初始化外觀語言。未指定時使用已儲存的語言;首次初始化時比對系統語言,無法比對則回退至 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "en"
},
{
"Type": "NodeText",
"Data": "。目前可選值:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ar"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "de"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "en"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "es"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "fr"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "he"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "hi"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "id"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "it"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ja"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ko"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "nl"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "pl"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "pt-BR"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ru"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sk"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sr"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "th"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "tr"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "uk"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "zh-CN"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "zh-TW"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20220601091152-z1gdkxi",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20220601091152-z1gdkxi",
"updated": "20260917190844"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode"
}
]
},
{
"ID": "20220601091152-fx2ojfv",
"Type": "NodeParagraph",
"Properties": {
"id": "20220601091152-fx2ojfv",
"updated": "20220601091200"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode=dev"
},
{
"Type": "NodeText",
"Data": " 後將使用開發模式運行,使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode=prod"
},
{
"Type": "NodeText",
"Data": " 將使用生產模式運行,預設 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "prod"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20220601091152-7qrn8ca",
"Type": "NodeParagraph",
"Properties": {
"id": "20220601091152-7qrn8ca",
"updated": "20260917190844"
},
"Children": [
{
"Type": "NodeText",
"Data": "開發模式和生產模式的主要區別開發模式會使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作目錄/appearance/"
},
{
"Type": "NodeText",
"Data": " 作為外觀文件夾,而生產模式使用的是 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作空間/conf/appearance/"
},
{
"Type": "NodeText",
"Data": "。這裡的外觀資料夾儲存內建資源;第三方主題和圖示套件統一使用工作空間/data/themes/ 和工作空間/data/icons/,不隨執行模式改變。"
}
]
},
{
"ID": "20221025095644-g0ka4wv",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20221025095644-g0ka4wv",
"updated": "20221025095644"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--port"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20221025095644-7uijx77",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025095644-7uijx77",
"updated": "20221025095644"
},
"Children": [
{
"Type": "NodeText",
"Data": "用於指定偵聽埠,不指定時:"
}
]
},
{
"ID": "20221025095644-yxap136",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20221025095644-yxap136",
"updated": "20221025095721"
},
"Children": [
{
"ID": "20221025095644-4yq1w95",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20221025095644-4yq1w95",
"updated": "20221025095644"
},
"Children": [
{
"ID": "20221025095644-rf1ldjb",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025095644-rf1ldjb",
"updated": "20221025095644"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端使用隨機埠"
}
]
}
]
},
{
"ID": "20221025095644-weqayss",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20221025095644-weqayss",
"updated": "20221025095721"
},
"Children": [
{
"ID": "20221025095644-uhgv2bx",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025095644-uhgv2bx",
"updated": "20221025095721"
},
"Children": [
{
"Type": "NodeText",
"Data": "Docker/移動端使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "6806"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
}
]
}