@agent-native/core 0.102.2 → 0.103.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +12 -0
- package/corpus/core/docs/content/local-file-mode.mdx +99 -489
- package/corpus/core/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
- package/corpus/core/docs/content/locales/ar-SA/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
- package/corpus/core/docs/content/locales/de-DE/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
- package/corpus/core/docs/content/locales/es-ES/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
- package/corpus/core/docs/content/locales/fr-FR/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
- package/corpus/core/docs/content/locales/hi-IN/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
- package/corpus/core/docs/content/locales/ja-JP/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
- package/corpus/core/docs/content/locales/ko-KR/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
- package/corpus/core/docs/content/locales/pt-BR/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
- package/corpus/core/docs/content/locales/zh-CN/template-content.mdx +9 -24
- package/corpus/core/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
- package/corpus/core/docs/content/locales/zh-TW/template-content.mdx +9 -24
- package/corpus/core/docs/content/template-content.mdx +26 -42
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/cli/content-local.ts +86 -18
- package/corpus/core/src/cli/index.ts +2 -2
- package/corpus/core/src/cli/skills-content/content-skill.ts +36 -25
- package/corpus/core/src/cli/skills.ts +47 -13
- package/corpus/core/src/local-artifacts/index.ts +65 -0
- package/corpus/core/src/vite/client.ts +2 -0
- package/corpus/templates/assets/app/components/library/GenerationPresetsPanel.tsx +325 -0
- package/corpus/templates/assets/app/hooks/use-navigation-state.ts +12 -0
- package/corpus/templates/assets/app/i18n/zh-TW.ts +21 -0
- package/corpus/templates/assets/app/i18n-data.ts +215 -0
- package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +19 -479
- package/corpus/templates/assets/app/routes/brand-kits.$id_.presets.$presetId.tsx +1 -1
- package/corpus/templates/assets/app/routes/brand-kits.$id_.settings.tsx +446 -0
- package/corpus/templates/clips/app/components/editor/editor-layout.tsx +12 -2
- package/corpus/templates/clips/app/components/player/settings-panel.tsx +30 -12
- package/corpus/templates/clips/app/components/player/video-player.tsx +5 -1
- package/corpus/templates/clips/app/components/recorder/microphone-visualizer.tsx +22 -3
- package/corpus/templates/clips/app/i18n/ar-SA.ts +3 -2
- package/corpus/templates/clips/app/i18n/de-DE.ts +4 -2
- package/corpus/templates/clips/app/i18n/en-US.ts +3 -2
- package/corpus/templates/clips/app/i18n/es-ES.ts +4 -2
- package/corpus/templates/clips/app/i18n/fr-FR.ts +3 -2
- package/corpus/templates/clips/app/i18n/hi-IN.ts +3 -2
- package/corpus/templates/clips/app/i18n/ja-JP.ts +4 -1
- package/corpus/templates/clips/app/i18n/ko-KR.ts +3 -2
- package/corpus/templates/clips/app/i18n/pt-BR.ts +4 -2
- package/corpus/templates/clips/app/i18n/zh-CN.ts +3 -2
- package/corpus/templates/clips/app/i18n/zh-TW.ts +3 -2
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +27 -1
- package/corpus/templates/clips/server/lib/share-password.ts +6 -3
- package/corpus/templates/content/.agents/skills/content/SKILL.md +26 -39
- package/corpus/templates/content/AGENTS.md +25 -30
- package/corpus/templates/content/actions/_builder-docs-client.ts +23 -0
- package/corpus/templates/content/actions/_content-database-source-adapters.ts +21 -3
- package/corpus/templates/content/actions/_content-files.ts +338 -0
- package/corpus/templates/content/actions/_content-space-access.ts +135 -0
- package/corpus/templates/content/actions/_content-spaces.ts +640 -0
- package/corpus/templates/content/actions/_database-source-utils.ts +90 -7
- package/corpus/templates/content/actions/_database-utils.ts +7 -1
- package/corpus/templates/content/actions/_local-file-documents.ts +0 -9
- package/corpus/templates/content/actions/_local-folder-source.ts +53 -0
- package/corpus/templates/content/actions/_property-utils.ts +9 -4
- package/corpus/templates/content/actions/add-database-item.ts +108 -65
- package/corpus/templates/content/actions/backfill-content-files.ts +22 -0
- package/corpus/templates/content/actions/connect-local-folder-source.ts +221 -0
- package/corpus/templates/content/actions/create-content-database.ts +129 -3
- package/corpus/templates/content/actions/create-document.ts +65 -55
- package/corpus/templates/content/actions/create-inline-content-database.ts +6 -1
- package/corpus/templates/content/actions/delete-content-database.ts +3 -0
- package/corpus/templates/content/actions/delete-document.ts +7 -11
- package/corpus/templates/content/actions/disconnect-local-folder-source.ts +175 -0
- package/corpus/templates/content/actions/duplicate-database-item.ts +10 -0
- package/corpus/templates/content/actions/duplicate-database-items.ts +13 -0
- package/corpus/templates/content/actions/edit-document.ts +2 -28
- package/corpus/templates/content/actions/ensure-content-spaces.ts +26 -0
- package/corpus/templates/content/actions/export-content-source.ts +47 -9
- package/corpus/templates/content/actions/get-document.ts +0 -14
- package/corpus/templates/content/actions/import-content-source.ts +43 -3
- package/corpus/templates/content/actions/list-content-spaces.ts +103 -0
- package/corpus/templates/content/actions/list-documents.ts +12 -9
- package/corpus/templates/content/actions/move-document.ts +3 -14
- package/corpus/templates/content/actions/pull-document.ts +0 -23
- package/corpus/templates/content/actions/remove-local-file-source.ts +50 -29
- package/corpus/templates/content/actions/resolve-local-folder-conflict.ts +442 -0
- package/corpus/templates/content/actions/reveal-local-source-file.ts +6 -17
- package/corpus/templates/content/actions/search-documents.ts +0 -34
- package/corpus/templates/content/actions/share-local-file-document.ts +25 -1
- package/corpus/templates/content/actions/submit-content-database-form.ts +12 -0
- package/corpus/templates/content/actions/sync-local-folder-source.ts +731 -0
- package/corpus/templates/content/actions/sync-manifest-local-folder-source.ts +123 -0
- package/corpus/templates/content/actions/update-content-database-view.ts +10 -1
- package/corpus/templates/content/actions/update-document.ts +0 -15
- package/corpus/templates/content/actions/view-screen.ts +2 -50
- package/corpus/templates/content/app/components/editor/SlashCommandMenu.tsx +76 -62
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +70 -22
- package/corpus/templates/content/app/components/editor/database/grouping.ts +2 -1
- package/corpus/templates/content/app/components/editor/database/settings.tsx +23 -20
- package/corpus/templates/content/app/components/editor/database/shared.tsx +2 -0
- package/corpus/templates/content/app/components/editor/database/sidebar.tsx +330 -0
- package/corpus/templates/content/app/components/editor/database/types.ts +1 -0
- package/corpus/templates/content/app/components/editor/database/view-config.ts +3 -1
- package/corpus/templates/content/app/components/layout/Layout.tsx +25 -1
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +209 -113
- package/corpus/templates/content/app/components/sidebar/select-content-space.ts +31 -0
- package/corpus/templates/content/app/hooks/use-content-database.ts +16 -0
- package/corpus/templates/content/app/hooks/use-content-spaces.ts +39 -0
- package/corpus/templates/content/app/i18n/zh-TW.ts +11 -0
- package/corpus/templates/content/app/i18n-data.ts +75 -0
- package/corpus/templates/content/app/routes/_app.local-files.tsx +174 -65
- package/corpus/templates/content/changelog/2026-07-16-content-callouts-can-now-be-reviewed-and-published-to-builder.md +6 -0
- package/corpus/templates/content/changelog/2026-07-16-heading-5-and-heading-6-are-available-from-the-editor-slash-.md +6 -0
- package/corpus/templates/content/changelog/2026-07-16-organize-every-workspace-through-a-customizable-files-databa.md +6 -0
- package/corpus/templates/content/parity/matrix.md +2 -1
- package/corpus/templates/content/parity/matrix.ts +37 -1
- package/corpus/templates/content/scripts/dev-database.mjs +7 -5
- package/corpus/templates/content/server/db/schema.ts +113 -40
- package/corpus/templates/content/server/lib/document-context.ts +15 -1
- package/corpus/templates/content/server/lib/notion-sync.ts +6 -0
- package/corpus/templates/content/server/plugins/db.ts +153 -0
- package/corpus/templates/content/shared/api.ts +17 -3
- package/corpus/templates/content/shared/builder-mdx.ts +163 -16
- package/corpus/templates/design/.agents/skills/design-templates/SKILL.md +59 -0
- package/corpus/templates/design/AGENTS.md +6 -1
- package/corpus/templates/design/actions/create-design-from-template.ts +19 -7
- package/corpus/templates/design/actions/list-design-templates.ts +69 -21
- package/corpus/templates/design/actions/navigate.ts +2 -2
- package/corpus/templates/design/actions/view-screen.ts +15 -2
- package/corpus/templates/design/agent-native.app-skill.json +5 -0
- package/corpus/templates/design/app/components/editor/PromptDialog.tsx +281 -56
- package/corpus/templates/design/app/components/templates/TemplatePreview.tsx +14 -2
- package/corpus/templates/design/app/hooks/use-navigation-state.ts +3 -2
- package/corpus/templates/design/app/i18n/zh-TW.ts +3 -3
- package/corpus/templates/design/app/i18n-data.ts +21 -2
- package/corpus/templates/design/app/i18n-template-feature.ts +218 -10
- package/corpus/templates/design/app/pages/Index.tsx +195 -24
- package/corpus/templates/design/app/pages/Templates.tsx +144 -55
- package/corpus/templates/design/app/pages/design-editor/generation-prompt-directives.ts +12 -1
- package/corpus/templates/design/changelog/2026-07-14-templates-now-appear-in-the-new-design-picker-with-previews-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-15-templates-now-open-immediately-after-copying-even-while-the-.md +6 -0
- package/corpus/templates/design/server/plugins/agent-chat.ts +1 -1
- package/corpus/templates/mail/AGENTS.md +23 -18
- package/corpus/templates/mail/actions/bulk-archive.ts +32 -28
- package/corpus/templates/mail/actions/mark-read.ts +131 -20
- package/corpus/templates/mail/actions/mark-thread-read.ts +1 -1
- package/corpus/templates/mail/actions/move-email.ts +30 -24
- package/corpus/templates/mail/actions/send-email.ts +73 -68
- package/corpus/templates/mail/changelog/2026-07-15-unread-inbox-cleanup-now-completes-reliably.md +6 -0
- package/corpus/templates/mail/server/handlers/emails.ts +218 -209
- package/corpus/templates/mail/server/lib/bulk-mark-read.ts +30 -0
- package/corpus/templates/mail/server/lib/email-state.ts +198 -113
- package/corpus/templates/mail/server/lib/google-auth.ts +218 -25
- package/corpus/templates/mail/server/lib/jobs.ts +69 -74
- package/corpus/templates/mail/server/lib/local-email-store.ts +265 -0
- package/corpus/templates/mail/server/plugins/agent-chat.ts +6 -0
- package/dist/cli/content-local.d.ts +1 -0
- package/dist/cli/content-local.d.ts.map +1 -1
- package/dist/cli/content-local.js +75 -17
- package/dist/cli/content-local.js.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/skills-content/content-skill.d.ts +1 -1
- package/dist/cli/skills-content/content-skill.d.ts.map +1 -1
- package/dist/cli/skills-content/content-skill.js +36 -25
- package/dist/cli/skills-content/content-skill.js.map +1 -1
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +47 -14
- package/dist/cli/skills.js.map +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/local-artifacts/index.d.ts +10 -0
- package/dist/local-artifacts/index.d.ts.map +1 -1
- package/dist/local-artifacts/index.js +39 -0
- package/dist/local-artifacts/index.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +2 -0
- package/dist/vite/client.js.map +1 -1
- package/docs/content/local-file-mode.mdx +99 -489
- package/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
- package/docs/content/locales/ar-SA/template-content.mdx +10 -24
- package/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
- package/docs/content/locales/de-DE/template-content.mdx +10 -24
- package/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
- package/docs/content/locales/es-ES/template-content.mdx +10 -24
- package/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
- package/docs/content/locales/fr-FR/template-content.mdx +10 -24
- package/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
- package/docs/content/locales/hi-IN/template-content.mdx +10 -24
- package/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
- package/docs/content/locales/ja-JP/template-content.mdx +10 -24
- package/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
- package/docs/content/locales/ko-KR/template-content.mdx +10 -24
- package/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
- package/docs/content/locales/pt-BR/template-content.mdx +10 -24
- package/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
- package/docs/content/locales/zh-CN/template-content.mdx +9 -24
- package/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
- package/docs/content/locales/zh-TW/template-content.mdx +9 -24
- package/docs/content/template-content.mdx +26 -42
- package/package.json +1 -1
- package/corpus/templates/assets/app/components/library/EditLibraryDialog.tsx +0 -126
|
@@ -1,523 +1,65 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "本機資料夾來源"
|
|
3
|
+
description: "將 Markdown 與 MDX 資料夾連接至由資料庫支援的 Content 空間。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# 本機資料夾來源
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
而不是 SQL 支援的應用紀錄。
|
|
8
|
+
Content 現在只有一個資料模型:每個頁面都儲存在 SQL 中,屬於一個**空間**,並且
|
|
9
|
+
是該空間系統 **Files** 資料庫的項目。本機資料夾是連接至 Files 的來源,而不是
|
|
10
|
+
另一種應用程式模式。`AGENT_NATIVE_MODE` 切換已移除。
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
也可以由 Codex、Claude 程式碼、Agent-Native 側邊欄代理或普通編輯
|
|
17
|
-
編輯器。
|
|
12
|
+
每位使用者有個人空間,每個可存取的組織有組織空間;個人 **Workspaces** 目錄
|
|
13
|
+
決定應用程式顯示哪些空間。Files 是一般 Content 資料庫,因此它的屬性、篩選、
|
|
14
|
+
排序、分組與已儲存檢視也能呈現為側邊欄。
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
您的檔案以檔案形式存在,而應用程式新增了視覺化編輯器、代理 actions,
|
|
21
|
-
可共用的副本,以及豐富的互動式 MDX 元件。
|
|
16
|
+
## 連接資料夾
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
透過瀏覽器或 Agent Native Desktop 選擇資料夾,將它連接至既有空間,或建立一個
|
|
19
|
+
由該資料夾支援的私人空間。SQL 只儲存不透明的連線 ID、相對路徑、雜湊與來源
|
|
20
|
+
中繼資料;不儲存絕對路徑、瀏覽器控制代碼或原始檔案本文。
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- 需要從本機 React 程式碼產生的互動式自訂 MDX 塊的檔案
|
|
30
|
-
- 應用程式工件應該易於編碼代理檢查和修補
|
|
22
|
+
可用策略為 `database_primary`、`source_primary` 與
|
|
23
|
+
`reviewed_bidirectional`。同步會將檔案實體化為一般 SQL 頁面。若檔案和 Content
|
|
24
|
+
頁面同時變更,系統會建立待審查的變更,而不會悄悄覆寫任一方。中斷連線會保留
|
|
25
|
+
頁面與本機檔案。
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
多使用者共用、SQL 支援的權限、評論、版本歷史紀錄和
|
|
34
|
-
沒有本機檔案系統存取權限的正式環境託管。
|
|
35
|
-
|
|
36
|
-
## 心智模型
|
|
37
|
-
|
|
38
|
-
有兩種真相來源模式:
|
|
39
|
-
|
|
40
|
-
| 模式 | 事實來源 | 最適合 |
|
|
41
|
-
| ------------ | --------------------------------- | ------------------------------------------------------- |
|
|
42
|
-
| 資料庫模式 | SQL 行至 Drizzle | 託管應用、協作、共用、評論、版本歷史紀錄 |
|
|
43
|
-
| 本機檔案模式 | `agent-native.json`聲明的Repo檔案 | 本機/開發工作流程、Git 審核、編碼代理編輯、檔案本機內容 |
|
|
44
|
-
|
|
45
|
-
UI 和代理 actions 在兩種模式下都應保持相同的形狀。內容
|
|
46
|
-
編輯器仍然編輯檔案;區別在於這些檔案是否解析
|
|
47
|
-
到 SQL 行或本機檔案。
|
|
48
|
-
|
|
49
|
-
<Diagram id="doc-block-k2vgl3" title={"相同的行為,兩個事實來源"} summary={"UI 和代理在兩種模式下呼叫相同的操作。操作層決定每個呼叫是否解析為 SQL 行或儲存庫檔案。"}>
|
|
50
|
-
|
|
51
|
-
```html
|
|
52
|
-
<div class="diagram-mode">
|
|
53
|
-
<div class="diagram-col entry">
|
|
54
|
-
<div class="diagram-node">內容 UI</div>
|
|
55
|
-
<div class="diagram-node">
|
|
56
|
-
代理 + actions<br /><small class="diagram-muted"
|
|
57
|
-
>list/get/update-document</small
|
|
58
|
-
>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="diagram-arrow diagram-muted" aria-hidden="true">→</div>
|
|
62
|
-
<div class="diagram-row resolve">
|
|
63
|
-
<div class="diagram-panel" data-rough>
|
|
64
|
-
<span class="diagram-pill accent">資料庫模式</span
|
|
65
|
-
><small class="diagram-muted">SQL rows via Drizzle</small
|
|
66
|
-
><small class="diagram-muted">託管 · 分享 · 評論 · 歷史</small>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="diagram-panel" data-rough>
|
|
69
|
-
<span class="diagram-pill ok">Local File Mode</span
|
|
70
|
-
><small class="diagram-muted">repo files via agent-native.json</small
|
|
71
|
-
><small class="diagram-muted">Git 評審 · 編碼代理編輯</small>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
```css
|
|
78
|
-
.diagram-mode {
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
gap: 14px;
|
|
82
|
-
flex-wrap: wrap;
|
|
83
|
-
}
|
|
84
|
-
.diagram-mode .diagram-col {
|
|
85
|
-
display: flex;
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
gap: 10px;
|
|
88
|
-
}
|
|
89
|
-
.diagram-mode .diagram-arrow {
|
|
90
|
-
font-size: 22px;
|
|
91
|
-
line-height: 1;
|
|
92
|
-
}
|
|
93
|
-
.diagram-mode .resolve {
|
|
94
|
-
display: flex;
|
|
95
|
-
gap: 12px;
|
|
96
|
-
flex-wrap: wrap;
|
|
97
|
-
}
|
|
98
|
-
.diagram-mode .diagram-panel {
|
|
99
|
-
display: flex;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
gap: 4px;
|
|
102
|
-
padding: 12px 14px;
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
</Diagram>
|
|
107
|
-
|
|
108
|
-
## 範例儲存庫
|
|
109
|
-
|
|
110
|
-
內容工作區可以像這樣小:
|
|
111
|
-
|
|
112
|
-
<FileTree
|
|
113
|
-
id="doc-block-mxljc9"
|
|
114
|
-
title={"一個 Content workspace repo"}
|
|
115
|
-
entries={[
|
|
116
|
-
{
|
|
117
|
-
path: "agent-native.json",
|
|
118
|
-
note: "聲明哪些資料夾是內容根以及它們的型別",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
path: "docs/",
|
|
122
|
-
note: "內容根:在側邊欄中顯示為頁面",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
path: "docs/getting-started.mdx",
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
path: "docs/guides/custom-components.mdx",
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
path: "blog/",
|
|
132
|
-
note: "內容根",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
path: "blog/launch-post.mdx",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
path: "resources/",
|
|
139
|
-
note: "內容根",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
path: "resources/messaging/positioning.md",
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
path: "components/",
|
|
146
|
-
note: "不是內容根:MDX 可匯入的 preview 元件庫",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
path: "components/FrameworkTabs.tsx",
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
path: "components/Callout.tsx",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
path: "extensions/",
|
|
156
|
-
note: "不是內容根:本機 extension 庫(沙盒 widgets)",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
path: "extensions/doc-status/extension.json",
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
path: "extensions/doc-status/index.html",
|
|
163
|
-
},
|
|
164
|
-
]}
|
|
165
|
-
/>
|
|
166
|
-
|
|
167
|
-
在本機檔案模式下,內容側邊欄顯示 `docs/`、`blog/` 和
|
|
168
|
-
`resources/` 樹為頁面。選取 `docs/getting-started.mdx` 開啟
|
|
169
|
-
標準內容編輯器中的檔案;在 UI 中編輯寫回
|
|
170
|
-
`docs/getting-started.mdx`.
|
|
171
|
-
|
|
172
|
-
`components/` 不是內容根。 MDX
|
|
173
|
-
檔案可以匯入或引用。編輯器可以渲染簡單的本機 MDX 元件
|
|
174
|
-
無需您克隆或分叉整個內容應用。
|
|
175
|
-
|
|
176
|
-
`extensions/` 也不是內容根。它是一個本機擴充功能庫:
|
|
177
|
-
小型沙盒小工具,可以在應用程式槽中呈現,同時其來源保留在
|
|
178
|
-
儲存庫。
|
|
179
|
-
|
|
180
|
-
## 將內容安裝到儲存庫中
|
|
181
|
-
|
|
182
|
-
對於現有檔案、部落格或 MDX 工作區,安裝內容本機檔案
|
|
183
|
-
技能:
|
|
27
|
+
## 從儲存庫啟動
|
|
184
28
|
|
|
185
29
|
```bash
|
|
186
|
-
npx @agent-native/core@latest
|
|
30
|
+
npx @agent-native/core@latest content .
|
|
187
31
|
```
|
|
188
32
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
- 工作區層級的 `mode: "local-files"`
|
|
193
|
-
- `apps.content.mode: "local-files"`
|
|
194
|
-
- `docs/`、`blog/`、`content/` 和 `resources/` 的內容根
|
|
195
|
-
- `components/` 用於本機 MDX 元件
|
|
196
|
-
- `extensions/` 用於本機擴充功能小工具
|
|
197
|
-
|
|
198
|
-
安裝的技能告訴編碼代理使用內容actions
|
|
199
|
-
(`list-documents`, `get-document`, `edit-document`, `update-document`,
|
|
200
|
-
`share-local-file-document` 和元件檔案 actions)(當本機內容應用時)
|
|
201
|
-
或 Agent Native 桌面橋公開它們。如果沒有橋在執行,則該技能
|
|
202
|
-
退回到安全的直接儲存庫編輯,同時保留 frontmatter、匯入、JSX,
|
|
203
|
-
和未知的 MDX。
|
|
33
|
+
此命令啟動一般的資料庫版 Content,將資料夾註冊為來源並開啟連線畫面;它不會
|
|
34
|
+
設定模式環境變數。
|
|
204
35
|
|
|
205
36
|
## 設定
|
|
206
37
|
|
|
207
|
-
將 `agent-native.json` 新增到儲存庫或工作區根目錄:
|
|
208
|
-
|
|
209
38
|
```json
|
|
210
39
|
{
|
|
211
40
|
"version": 1,
|
|
212
41
|
"apps": {
|
|
213
42
|
"content": {
|
|
214
|
-
"mode": "local-files",
|
|
215
43
|
"roots": [
|
|
216
44
|
{
|
|
217
45
|
"name": "Docs",
|
|
218
46
|
"path": "docs",
|
|
219
47
|
"kind": "docs",
|
|
220
|
-
"extensions": [".md", ".mdx"]
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
"extensions": [".md", ".mdx"]
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "Resources",
|
|
230
|
-
"path": "resources",
|
|
231
|
-
"kind": "resources",
|
|
232
|
-
"extensions": [".md", ".mdx"]
|
|
48
|
+
"extensions": [".md", ".mdx"],
|
|
49
|
+
"source": {
|
|
50
|
+
"type": "local-folder",
|
|
51
|
+
"connectionId": "local-folder:<opaque-id>",
|
|
52
|
+
"truthPolicy": "source_primary"
|
|
53
|
+
}
|
|
233
54
|
}
|
|
234
55
|
],
|
|
235
56
|
"components": "components",
|
|
236
|
-
"extensions": "extensions"
|
|
237
|
-
"hide": ["**/_*.md", "**/_*.mdx"]
|
|
57
|
+
"extensions": "extensions"
|
|
238
58
|
}
|
|
239
59
|
}
|
|
240
60
|
}
|
|
241
61
|
```
|
|
242
62
|
|
|
243
|
-
|
|
244
|
-
`
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
## 內容檔案格式
|
|
248
|
-
|
|
249
|
-
內容為 Markdown 和 MDX。 Frontmatter 儲存頁面中繼資料,內文為
|
|
250
|
-
可編輯檔案:
|
|
251
|
-
|
|
252
|
-
```mdx
|
|
253
|
-
---
|
|
254
|
-
title: "開始使用"
|
|
255
|
-
icon: "sparkles"
|
|
256
|
-
isFavorite: true
|
|
257
|
-
updatedAt: "2026-06-12T20:00:00.000Z"
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
# 開始使用
|
|
261
|
-
|
|
262
|
-
Use <FrameworkTabs value="react" /> to show framework-specific code.
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
標題來自 `title` frontmatter(如果存在),否則來自
|
|
266
|
-
檔名。編輯器保留了 MDX 來源程式碼,但尚無法進行視覺化編輯,因此
|
|
267
|
-
編碼代理和普通文字編輯器仍然是安全的逃生艙口。
|
|
268
|
-
|
|
269
|
-
## 自訂 MDX 元件
|
|
270
|
-
|
|
271
|
-
內容可以從設定的 `components` 資料夾中預覽本機元件。
|
|
272
|
-
這適用於檔案樣式的 MDX 元件,例如分頁、標注、包
|
|
273
|
-
安裝片段或特定於框架的程式碼塊。
|
|
274
|
-
|
|
275
|
-
例如,在您的內容旁邊新增一個互動式元件:
|
|
276
|
-
|
|
277
|
-
```tsx
|
|
278
|
-
// components/ImpactCounter.tsx
|
|
279
|
-
import { useState } from "react";
|
|
280
|
-
|
|
281
|
-
export function ImpactCounter({
|
|
282
|
-
label = "points",
|
|
283
|
-
accent = "blue",
|
|
284
|
-
featured = false,
|
|
285
|
-
}: {
|
|
286
|
-
label?: string;
|
|
287
|
-
accent?: "blue" | "green" | "purple";
|
|
288
|
-
featured?: boolean;
|
|
289
|
-
}) {
|
|
290
|
-
const [count, setCount] = useState(3);
|
|
291
|
-
const accentClass =
|
|
292
|
-
accent === "green"
|
|
293
|
-
? "border-green-300 bg-green-50"
|
|
294
|
-
: accent === "purple"
|
|
295
|
-
? "border-purple-300 bg-purple-50"
|
|
296
|
-
: "border-blue-300 bg-blue-50";
|
|
297
|
-
|
|
298
|
-
return (
|
|
299
|
-
<div className={`rounded-md border p-4 ${accentClass}`}>
|
|
300
|
-
<div className="text-sm text-muted-foreground">Launch impact</div>
|
|
301
|
-
<div className="mt-1 text-3xl font-semibold">
|
|
302
|
-
{count} {label}
|
|
303
|
-
</div>
|
|
304
|
-
{featured ? <div className="mt-1 text-sm">Featured metric</div> : null}
|
|
305
|
-
<button
|
|
306
|
-
type="button"
|
|
307
|
-
className="mt-3 rounded border px-3 py-1 text-sm"
|
|
308
|
-
onClick={() => setCount((value) => value + 1)}
|
|
309
|
-
>
|
|
310
|
-
Add point
|
|
311
|
-
</button>
|
|
312
|
-
</div>
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export const ImpactCounterInputs = {
|
|
317
|
-
label: {
|
|
318
|
-
type: "string",
|
|
319
|
-
label: "Metric label",
|
|
320
|
-
default: "points",
|
|
321
|
-
},
|
|
322
|
-
accent: {
|
|
323
|
-
type: "select",
|
|
324
|
-
label: "Accent",
|
|
325
|
-
options: ["blue", "green", "purple"],
|
|
326
|
-
default: "blue",
|
|
327
|
-
},
|
|
328
|
-
featured: {
|
|
329
|
-
type: "boolean",
|
|
330
|
-
label: "Featured",
|
|
331
|
-
default: false,
|
|
332
|
-
},
|
|
333
|
-
};
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
然後從任何本機 MDX 檔案使用它:
|
|
337
|
-
|
|
338
|
-
```mdx
|
|
339
|
-
---
|
|
340
|
-
title: "發布說明"
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
# 發布說明
|
|
344
|
-
|
|
345
|
-
<ImpactCounter label="wins" />
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
內容開發伺服器發現 PascalCase 命名匯出和 PascalCase 預設
|
|
349
|
-
從 `components/` 下的 `.tsx`、`.jsx`、`.ts` 和 `.js` 檔案匯出。那些
|
|
350
|
-
元件在編輯器內呈現並出現在
|
|
351
|
-
**本機元件**。斜線插入建立一個最小的標籤,例如
|
|
352
|
-
`<ImpactCounter />`;需要時在 MDX 來源中新增 props。
|
|
353
|
-
|
|
354
|
-
元件執行有意成為本機開發/桌面橋接功能,而不是
|
|
355
|
-
普通託管瀏覽器資料夾存取。如果你開啟`content.agent-native.com`,
|
|
356
|
-
選取**本機檔案**,並在Chrome中選取一個資料夾,應用程式可以讀寫
|
|
357
|
-
透過瀏覽器檔案系統存取`.md`和`.mdx`檔案 API,但是
|
|
358
|
-
Chrome 不會公開 Vite 編譯的絕對資料夾路徑
|
|
359
|
-
`components/*.tsx`。要預覽和熱重載自訂 React 元件,請執行
|
|
360
|
-
本機內容或使用 Agent Native Desktop,以便受信任的本機網橋可以
|
|
361
|
-
將所選工作區註冊到本機內容開發伺服器。在該模式下,
|
|
362
|
-
透過 Vite 編輯現有元件檔案熱重載,並新增或
|
|
363
|
-
刪除元件檔案會重新載入元件註冊表和斜杠選單。
|
|
364
|
-
|
|
365
|
-
代理還可以使用這些已註冊的元件檔案。使用
|
|
366
|
-
`list-local-component-files` 找到註冊的工作空間id,然後
|
|
367
|
-
`write-local-component-file` 建立或更新 `.tsx`、`.jsx`、`.ts` 或
|
|
368
|
-
`.js` 檔案位於工作區的 `components/` 資料夾下。 MDX 檔案仍然是
|
|
369
|
-
元件使用的真實來源;元件檔案保持正常倉庫
|
|
370
|
-
使用 Git 審核來源檔案。
|
|
371
|
-
|
|
372
|
-
如果元件匯出輸入中繼資料,則在編輯器中選取該元件
|
|
373
|
-
在元件的右上角顯示一個編輯按鈕。支援的輸入型別
|
|
374
|
-
為 `string`、`textarea`、`number`、`boolean` 和 `select`。表格寫
|
|
375
|
-
更改回 MDX 標籤,因此本機檔案仍然是事實來源。
|
|
376
|
-
中繼資料可以匯出為 `ComponentNameInputs`、`ComponentNameConfig.inputs`、
|
|
377
|
-
`Component.inputs`,或`agentNative.inputs`。
|
|
378
|
-
|
|
379
|
-
帶有文字屬性的簡單元件標籤可以行內預覽:
|
|
380
|
-
|
|
381
|
-
```mdx
|
|
382
|
-
<FrameworkTabs value="react" />
|
|
383
|
-
|
|
384
|
-
<Callout tone="warning">
|
|
385
|
-
|
|
386
|
-
This setting affects production deploys.
|
|
387
|
-
|
|
388
|
-
</Callout>
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
複雜的 JSX 表達式保留在來源程式碼中。如果編輯者不能安全
|
|
392
|
-
預覽元件道具,它顯示一個警告預留位置而不是
|
|
393
|
-
默默地丟棄資料。
|
|
394
|
-
|
|
395
|
-
## 共用本機檔案
|
|
396
|
-
|
|
397
|
-
本機檔案不會直接共用,因為其他使用者無法讀取路徑
|
|
398
|
-
你的機器。內容工具列的共用按鈕建立或重新整理
|
|
399
|
-
所選檔案的資料庫支援副本,導覽到該副本,然後開啟
|
|
400
|
-
正常共用快顯視窗。原始本機檔案保留在本機檔案下;
|
|
401
|
-
資料庫副本出現在本機檔案模式下的共用副本下,並使用
|
|
402
|
-
標準檔案共用模型。
|
|
403
|
-
|
|
404
|
-
## 本機擴充功能
|
|
405
|
-
|
|
406
|
-
本機檔案模式還可以從設定中載入儲存庫支援的擴充功能
|
|
407
|
-
`extensions` 資料夾。每個擴充功能都是一個帶有 `extension.json`
|
|
408
|
-
清單和 HTML 條目檔案:
|
|
409
|
-
|
|
410
|
-
```text
|
|
411
|
-
extensions/
|
|
412
|
-
doc-status/
|
|
413
|
-
extension.json
|
|
414
|
-
index.html
|
|
415
|
-
```
|
|
416
|
-
|
|
417
|
-
```json
|
|
418
|
-
{
|
|
419
|
-
"id": "doc-status",
|
|
420
|
-
"name": "Doc Status",
|
|
421
|
-
"description": "Shows metadata for the selected Content file.",
|
|
422
|
-
"entry": "index.html",
|
|
423
|
-
"slots": ["content.sidebar.bottom"],
|
|
424
|
-
"permissions": {
|
|
425
|
-
"appActions": ["list-documents"],
|
|
426
|
-
"extensionData": true
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
`index.html` 與普通使用的 Alpine/Tailwind 擴充功能主體格式相同
|
|
432
|
-
資料庫支援的擴充功能。當內容應用看到本機擴充功能時
|
|
433
|
-
聲明了 `content.sidebar.bottom`,它在底部呈現該擴充功能
|
|
434
|
-
內容側邊欄。主機透過選取的`window.slotContext`
|
|
435
|
-
檔案 ID、標題、來源中繼資料以及內容是否處於本機檔案模式。
|
|
436
|
-
|
|
437
|
-
本機擴充功能由應用程式預覽,但作為檔案進行編輯。擴充功能
|
|
438
|
-
清單顯示它們帶有本機檔案徽章,整頁面檢視器指向
|
|
439
|
-
入口檔案。 SQL 支援的擴充功能 actions,例如更新、刪除、共用和
|
|
440
|
-
歷史紀錄不適用;使用您的編輯器、Codex、Claude 程式碼或 Git 歷史紀錄
|
|
441
|
-
來源程式碼更改。
|
|
442
|
-
|
|
443
|
-
對於 v1,本機擴充功能有意保守:
|
|
444
|
-
|
|
445
|
-
- 他們可以將 `extensionData` 用於自己的小型執行時狀態
|
|
446
|
-
- 他們只能呼叫`extension.json`中列出的`appAction`
|
|
447
|
-
- 原始 SQL 助手和外部 `extensionFetch` 已停用
|
|
448
|
-
- slot 目標在 `extension.json` 中聲明,而不是透過 SQL 安裝
|
|
449
|
-
|
|
450
|
-
這為本機工作空間提供了類似黑曜石的外掛介面,而無需讓
|
|
451
|
-
任意儲存庫檔案繼承資料庫支援的擴充功能的所有功能。
|
|
452
|
-
|
|
453
|
-
## 應用程式如何使用它
|
|
454
|
-
|
|
455
|
-
本機檔案模式是透過框架的本機工件助手實現的。
|
|
456
|
-
應用程式聲明其擁有的工件型別的根,然後讀取和寫入
|
|
457
|
-
透過 UI 和代理已經使用的相同操作介面。
|
|
458
|
-
|
|
459
|
-
對於內容,這意味著:
|
|
460
|
-
|
|
461
|
-
- `list-documents` 列出設定的 `.md` 和 `.mdx` 檔案。
|
|
462
|
-
- `get-document` 讀取選定的本機檔案。
|
|
463
|
-
- `update-document` 寫入選定的本機檔案。
|
|
464
|
-
- `create-document` 在所選資料夾中建立新的本機 `.mdx` 檔案。
|
|
465
|
-
- `delete-document`刪除本機檔案。
|
|
466
|
-
- 搜尋在設定的本機檔案中執行。
|
|
467
|
-
|
|
468
|
-
不能從內容 UI 中行動、重新命名和重新排序本機檔案頁面
|
|
469
|
-
尚支援。在工作區或使用編碼代理執行這些操作;
|
|
470
|
-
內容側邊欄將反映產生的檔案樹。
|
|
471
|
-
|
|
472
|
-
這使代理合約變得簡單:代理可以繼續使用內容 actions,
|
|
473
|
-
而這些 actions 決定目標是 SQL 支援的還是檔案支援的。
|
|
474
|
-
|
|
475
|
-
隨著時間的推移,其他應用程式可以采用相同的模式。幻燈片應用程式可以對應
|
|
476
|
-
`slides/*.mdx` 到甲板,計畫應用程式可以將 `plans/*` 對應到計畫檔案,以及
|
|
477
|
-
儀表板應用程式可以將 `dashboards/*.mdx` 對應到儀表板。那些特定於應用程式的
|
|
478
|
-
資料夾是位於同一本機工件合約之上的約定。
|
|
479
|
-
|
|
480
|
-
## 本機檔案與匯出/匯入
|
|
481
|
-
|
|
482
|
-
內容有兩種不同的檔案工作流程:
|
|
483
|
-
|
|
484
|
-
| 工作流程 | 發生了什麼 |
|
|
485
|
-
| ------------------------ | ------------------------------------------------------------------------ |
|
|
486
|
-
| `/local-files` 匯出/匯入 | 資料庫模式仍然是事實來源。檔案是您匯出、編輯、預覽和匯入的顯式同步表面。 |
|
|
487
|
-
| 本機檔案模式 | 檔案是真相的來源。內容側邊欄和編輯器直接對本機檔案進行操作。 |
|
|
488
|
-
|
|
489
|
-
當您需要偶爾檢視託管工作區的檔案時,請使用匯出/匯入。
|
|
490
|
-
當儲存庫本身是工作區時,使用本機檔案模式。
|
|
491
|
-
|
|
492
|
-
## 歷史與合作
|
|
493
|
-
|
|
494
|
-
本機檔案模式依賴於檔案本機歷史紀錄:
|
|
495
|
-
|
|
496
|
-
- 向 Git 提交重要更改
|
|
497
|
-
- 使用 pull request 進行審核
|
|
498
|
-
- 讓編碼代理直接編輯相同的檔案
|
|
499
|
-
- 使用普通檔案差異來了解更改
|
|
500
|
-
|
|
501
|
-
資料庫模式仍然更適合託管協作功能,例如
|
|
502
|
-
共用、評論、SQL 支援的版本歷史紀錄和即時多使用者編輯。
|
|
503
|
-
|
|
504
|
-
提供者同步可以分層在任一模式之上。例如,檔案儲存庫可以
|
|
505
|
-
新增 actions,將內容從 CMS 擷取到本機 MDX 檔案或推送所選內容
|
|
506
|
-
本機檔案返回到那個CMS。
|
|
507
|
-
|
|
508
|
-
## 安全正式環境
|
|
509
|
-
|
|
510
|
-
本機檔案模式為應用程式 actions 提供對設定的工作區的直接寫入存取權限
|
|
511
|
-
檔案。這適合本機開發和可信單租戶檔案
|
|
512
|
-
橋梁,但它不是預設的正式環境安全模型。
|
|
513
|
-
|
|
514
|
-
當 `NODE_ENV=production` 時,框架拒絕 `local-files` 模式,除非您
|
|
515
|
-
設定:
|
|
516
|
-
|
|
517
|
-
```bash
|
|
518
|
-
AGENT_NATIVE_ALLOW_LOCAL_FILES_IN_PRODUCTION=true
|
|
519
|
-
```
|
|
520
|
-
|
|
521
|
-
僅針對受信任的單租戶部署進行設定,其中每個人都可以使用
|
|
522
|
-
應用程式可以讀取和寫入設定的檔案。對於普通託管,
|
|
523
|
-
多使用者應用程式,使用資料庫模式和 SQL 支援的共用。
|
|
63
|
+
移轉時請刪除 `mode: "local-files"` 與 `AGENT_NATIVE_MODE=local-files`,保留
|
|
64
|
+
roots 並加入 `source`。frontmatter ID 能在重新命名與移動時維持頁面身分。本機
|
|
65
|
+
元件和擴充功能仍透過受信任的本機橋接載入。
|
|
@@ -89,9 +89,8 @@ description: "MDX 的開放原始碼 Obsidian:編輯本機 Markdown/MDX 檔案
|
|
|
89
89
|
- **在樹中組織頁面** — 無限嵌套、拖動重新排序、釘選您經常使用的頁面。
|
|
90
90
|
- **搜尋所有內容**,透過標題和內容進行全文搜尋。
|
|
91
91
|
- **像 Obsidian 一樣編輯本機 Markdown/MDX 檔案。**使用 `/local-files` 檢視
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
選定的 `.md` 或 `.mdx` 檔案。
|
|
92
|
+
將資料夾連接至 Files,使用自己的工具編輯並同步變更,然後在 SQL 應用程式
|
|
93
|
+
中審查衝突。
|
|
95
94
|
- **生成豐富的互動式自訂塊。**註冊本機 React 元件,
|
|
96
95
|
將它們插入為 MDX,並讓代理建立或更新元件檔案
|
|
97
96
|
您的檔案。
|
|
@@ -133,32 +132,18 @@ description: "MDX 的開放原始碼 Obsidian:編輯本機 Markdown/MDX 檔案
|
|
|
133
132
|
評論、權限和即時協作;本機資料夾是顯式的
|
|
134
133
|
同步表面。
|
|
135
134
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
`content/` 和 `resources/`。然後標準內容編輯器填充其
|
|
140
|
-
來自本機 `.md`/`.mdx` 檔案的左側邊欄,並將編輯寫回
|
|
141
|
-
透過普通檔案actions選取檔案。將其用於回購優先檔案,
|
|
142
|
-
由 MDX 驅動的部落格、資源庫或黑曜石風格的個人內容
|
|
143
|
-
元件;當您需要託管協作時切換回資料庫模式並且
|
|
144
|
-
SQL 支援的共用。請參閱 [Local File Mode](/docs/local-file-mode)
|
|
145
|
-
獨立儲存庫布局、設定、自訂 MDX 元件、本機
|
|
146
|
-
`extensions/`小工具、安全正式環境指南。
|
|
135
|
+
本機資料夾現在與所有頁面使用相同的 SQL 模型。每個頁面屬於一個空間和它的
|
|
136
|
+
Files 資料庫;資料夾是該資料庫的來源介面卡。策略、衝突、MDX 元件與舊模式
|
|
137
|
+
移轉請參閱[本機資料夾來源](/docs/local-file-mode)。
|
|
147
138
|
|
|
148
|
-
|
|
139
|
+
要在既有儲存庫中開啟 Content:
|
|
149
140
|
|
|
150
141
|
```bash
|
|
151
|
-
npx @agent-native/core@latest
|
|
142
|
+
npx @agent-native/core@latest content .
|
|
152
143
|
```
|
|
153
144
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
和`resources/`。當本機內容應用、Agent Native 桌面或受信任
|
|
157
|
-
本機網橋正在執行,代理應使用內容actions,例如
|
|
158
|
-
`list-documents`、`get-document`、`edit-document`、`update-document` 和
|
|
159
|
-
`share-local-file-document` 而不是原始檔案系統寫入。沒有那個本機
|
|
160
|
-
bridge,已安裝的技能仍然為代理提供了回購編輯合同
|
|
161
|
-
安全 Markdown/MDX 編輯。
|
|
145
|
+
CLI 會啟動一般的資料庫版 Content,註冊資料夾來源,並在不設定模式環境變數的
|
|
146
|
+
情況下開啟連線畫面。
|
|
162
147
|
|
|
163
148
|
## 對於開發者
|
|
164
149
|
|