@agent-native/core 0.102.2 → 0.103.0
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 +6 -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/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/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.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/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +5 -5
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +9 -9
- 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,525 +1,71 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "Lokale Ordnerquellen"
|
|
3
|
+
description: "Markdown- und MDX-Ordner mit den datenbankgestützten Content-Bereichen verbinden."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Lokale Ordnerquellen
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Content verwendet nur noch ein Datenmodell: Jede Seite liegt in SQL, gehört zu
|
|
9
|
+
einem **Bereich** und ist Mitglied der Systemdatenbank **Files** dieses Bereichs.
|
|
10
|
+
Ein lokaler Ordner ist eine mit Files verbundene Quelle, kein zweiter App-Modus.
|
|
11
|
+
Einen `AGENT_NATIVE_MODE`-Schalter gibt es nicht mehr.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
Jeder Benutzer erhält einen persönlichen Bereich, jede zugängliche Organisation
|
|
14
|
+
einen Organisationsbereich. Der persönliche **Workspaces**-Katalog bestimmt,
|
|
15
|
+
welche Bereiche erscheinen. Files ist eine normale Content-Datenbank; ihre
|
|
16
|
+
Eigenschaften, Filter, Sortierungen, Gruppen und gespeicherten Ansichten können
|
|
17
|
+
auch die Seitenleiste darstellen.
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
Ihre Dokumente bleiben als Dateien bestehen, während die App einen visuellen Editor, Agentenaktionen, hinzufügt
|
|
21
|
-
gemeinsame Kopien und umfangreiche interaktive MDX-Komponenten.
|
|
19
|
+
## Ordner verbinden
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
Wählen Sie den Ordner im Browser oder in Agent Native Desktop. Verbinden Sie ihn
|
|
22
|
+
mit einem vorhandenen Bereich oder erstellen Sie einen privaten ordnergestützten
|
|
23
|
+
Bereich. SQL speichert nur die undurchsichtige Verbindungs-ID, relative Pfade,
|
|
24
|
+
Hashes und Quellmetadaten — nie absoluten Pfad, Browser-Handle oder Dateitext.
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
- Dokumente, die interaktive benutzerdefinierte MDX-Blöcke benötigen, die aus lokalem React-Code generiert werden
|
|
30
|
-
- App-Artefakte, die für Programmierer leicht zu prüfen und zu patchen sein sollten
|
|
26
|
+
Verfügbar sind `database_primary`, `source_primary` und
|
|
27
|
+
`reviewed_bidirectional`. Die Synchronisierung materialisiert Dateien als
|
|
28
|
+
normale SQL-Seiten. Gleichzeitige Änderungen werden zur Prüfung erfasst, statt
|
|
29
|
+
eine Seite zu überschreiben. Beim Trennen bleiben Seiten und Dateien erhalten.
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
Mehrbenutzerfreigabe, SQL-gestützte Berechtigungen, Kommentare, Versionsverlauf und
|
|
34
|
-
Produktionshosting ohne Zugriff auf das lokale Dateisystem.
|
|
35
|
-
|
|
36
|
-
## Das mentale Modell
|
|
37
|
-
|
|
38
|
-
Es gibt zwei Source-of-Truth-Modi:
|
|
39
|
-
|
|
40
|
-
| Modus | Quelle der Wahrheit | Am besten für |
|
|
41
|
-
| ------------------ | ----------------------------------------------- | ------------------------------------------------------------------------------------------ |
|
|
42
|
-
| Datenbankmodus | SQL Zeilen bis Drizzle | Gehostete Apps, Zusammenarbeit, Freigabe, Kommentare, Versionsverlauf |
|
|
43
|
-
| Lokaler Dateimodus | Repo-Dateien deklariert von `agent-native.json` | Lokale/Entwickler-Workflows, Git-Überprüfung, Coding-Agent-Änderungen, dateinativer Inhalt |
|
|
44
|
-
|
|
45
|
-
UI und Agentenaktionen sollten in beiden Modi die gleiche Form behalten. Ein Inhalt
|
|
46
|
-
Editor bearbeitet weiterhin Dokumente; Der Unterschied besteht darin, ob diese Dokumente aufgelöst werden
|
|
47
|
-
in SQL Zeilen oder lokale Dateien.
|
|
48
|
-
|
|
49
|
-
<Diagram id="doc-block-hrf5ek" title="Gleiche Handlungen, zwei Quellen der Wahrheit" summary={"Die Benutzeroberfläche und der Agent rufen in beiden Modi identische Aktionen auf. Die Aktionsschicht entscheidet, ob jeder Aufruf in SQL-Zeilen oder Repo-Dateien aufgelöst wird."}>
|
|
50
|
-
|
|
51
|
-
```html
|
|
52
|
-
<div class="diagram-mode">
|
|
53
|
-
<div class="diagram-col entry">
|
|
54
|
-
<div class="diagram-node">Content-UI</div>
|
|
55
|
-
<div class="diagram-node">
|
|
56
|
-
Agent + 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">Datenbankmodus</span
|
|
65
|
-
><small class="diagram-muted">SQL rows via Drizzle</small
|
|
66
|
-
><small class="diagram-muted"
|
|
67
|
-
>gehostet · Teilen · Kommentare · Verlauf</small
|
|
68
|
-
>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="diagram-panel" data-rough>
|
|
71
|
-
<span class="diagram-pill ok">Local File Mode</span
|
|
72
|
-
><small class="diagram-muted">repo files via agent-native.json</small
|
|
73
|
-
><small class="diagram-muted">Git-Review · Coding-Agent-Edits</small>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
```css
|
|
80
|
-
.diagram-mode {
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
gap: 14px;
|
|
84
|
-
flex-wrap: wrap;
|
|
85
|
-
}
|
|
86
|
-
.diagram-mode .diagram-col {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
gap: 10px;
|
|
90
|
-
}
|
|
91
|
-
.diagram-mode .diagram-arrow {
|
|
92
|
-
font-size: 22px;
|
|
93
|
-
line-height: 1;
|
|
94
|
-
}
|
|
95
|
-
.diagram-mode .resolve {
|
|
96
|
-
display: flex;
|
|
97
|
-
gap: 12px;
|
|
98
|
-
flex-wrap: wrap;
|
|
99
|
-
}
|
|
100
|
-
.diagram-mode .diagram-panel {
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
gap: 4px;
|
|
104
|
-
padding: 12px 14px;
|
|
105
|
-
}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
</Diagram>
|
|
109
|
-
|
|
110
|
-
## Beispiel-Repo
|
|
111
|
-
|
|
112
|
-
Ein Inhaltsarbeitsbereich kann so klein sein:
|
|
113
|
-
|
|
114
|
-
<FileTree
|
|
115
|
-
id="doc-block-1kxxc5j"
|
|
116
|
-
title="Ein Content-Workspace-Repo"
|
|
117
|
-
entries={[
|
|
118
|
-
{
|
|
119
|
-
path: "agent-native.json",
|
|
120
|
-
note: "Deklariert, welche Ordner Content-Roots sind und welche Arten sie haben",
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
path: "docs/",
|
|
124
|
-
note: "Content-Root: erscheint in der Sidebar als Seiten",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
path: "docs/getting-started.mdx",
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
path: "docs/guides/custom-components.mdx",
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
path: "blog/",
|
|
134
|
-
note: "Content-Root",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
path: "blog/launch-post.mdx",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
path: "resources/",
|
|
141
|
-
note: "Content-Root",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
path: "resources/messaging/positioning.md",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
path: "components/",
|
|
148
|
-
note: "KEIN Content-Root: Preview-Komponentenbibliothek, die MDX importieren kann",
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
path: "components/FrameworkTabs.tsx",
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
path: "components/Callout.tsx",
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
path: "extensions/",
|
|
158
|
-
note: "KEIN Content-Root: lokale Extension-Bibliothek (sandboxed Widgets)",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
path: "extensions/doc-status/extension.json",
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
path: "extensions/doc-status/index.html",
|
|
165
|
-
},
|
|
166
|
-
]}
|
|
167
|
-
/>
|
|
168
|
-
|
|
169
|
-
Im lokalen Dateimodus zeigt die Inhaltsseitenleiste `docs/`, `blog/` und
|
|
170
|
-
`resources/` Bäume als Seiten. Wenn Sie `docs/getting-started.mdx` auswählen, wird das geöffnet
|
|
171
|
-
Datei im Standard-Inhaltseditor; Bearbeitung im UI schreibt zurück nach
|
|
172
|
-
`docs/getting-started.mdx`.
|
|
173
|
-
|
|
174
|
-
`components/` ist kein Inhaltsstammverzeichnis. Es handelt sich um eine Vorschau-Komponentenbibliothek, die MDX
|
|
175
|
-
Dateien können importiert oder referenziert werden. Der Editor kann einfache lokale MDX-Komponenten rendern
|
|
176
|
-
ohne dass Sie die gesamte Content-App klonen oder forken müssen.
|
|
177
|
-
|
|
178
|
-
`extensions/` ist ebenfalls kein Inhaltsstammverzeichnis. Es handelt sich um eine lokale Erweiterungsbibliothek:
|
|
179
|
-
kleine Sandbox-Widgets, die in App-Slots gerendert werden können, während ihre Quelle drin bleibt
|
|
180
|
-
das Repo.
|
|
181
|
-
|
|
182
|
-
## Inhalt in ein Repo installieren
|
|
183
|
-
|
|
184
|
-
Installieren Sie für vorhandene Dokumente, Blogs oder MDX-Arbeitsbereiche die lokalen Inhaltsdateien
|
|
185
|
-
Fähigkeit:
|
|
31
|
+
## Aus einem Repository starten
|
|
186
32
|
|
|
187
33
|
```bash
|
|
188
|
-
npx @agent-native/core@latest
|
|
34
|
+
npx @agent-native/core@latest content .
|
|
189
35
|
```
|
|
190
36
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
- `mode: "local-files"` auf Arbeitsbereichsebene
|
|
195
|
-
- `apps.content.mode: "local-files"`
|
|
196
|
-
- Inhaltsstämme für `docs/`, `blog/`, `content/` und `resources/`
|
|
197
|
-
- `components/` für lokale MDX-Komponenten
|
|
198
|
-
- `extensions/` für lokale Erweiterungs-Widgets
|
|
199
|
-
|
|
200
|
-
Der installierte Skill weist Programmieragenten an, Content actions zu verwenden
|
|
201
|
-
(`list-documents`, `get-document`, `edit-document`, `update-document`,
|
|
202
|
-
`share-local-file-document` und Komponentendatei actions) bei einer lokalen Content-App
|
|
203
|
-
oder Agent Native Desktop Bridge macht sie verfügbar. Wenn keine Bridge läuft, wird der Skill
|
|
204
|
-
greift auf sichere direkte Repo-Bearbeitungen zurück und behält dabei Frontmatter, Importe, JSX,
|
|
205
|
-
und unbekanntes MDX.
|
|
37
|
+
Der Befehl startet die normale datenbankgestützte Content-App, registriert den
|
|
38
|
+
Ordner als Quelle und öffnet die Verbindung — ohne Modus-Umgebungsvariable.
|
|
206
39
|
|
|
207
40
|
## Konfiguration
|
|
208
41
|
|
|
209
|
-
Fügen Sie `agent-native.json` zum Repository oder Arbeitsbereichsstamm hinzu:
|
|
210
|
-
|
|
211
42
|
```json
|
|
212
43
|
{
|
|
213
44
|
"version": 1,
|
|
214
45
|
"apps": {
|
|
215
46
|
"content": {
|
|
216
|
-
"mode": "local-files",
|
|
217
47
|
"roots": [
|
|
218
48
|
{
|
|
219
49
|
"name": "Docs",
|
|
220
50
|
"path": "docs",
|
|
221
51
|
"kind": "docs",
|
|
222
|
-
"extensions": [".md", ".mdx"]
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
"extensions": [".md", ".mdx"]
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"name": "Resources",
|
|
232
|
-
"path": "resources",
|
|
233
|
-
"kind": "resources",
|
|
234
|
-
"extensions": [".md", ".mdx"]
|
|
52
|
+
"extensions": [".md", ".mdx"],
|
|
53
|
+
"source": {
|
|
54
|
+
"type": "local-folder",
|
|
55
|
+
"connectionId": "local-folder:<opaque-id>",
|
|
56
|
+
"truthPolicy": "source_primary"
|
|
57
|
+
}
|
|
235
58
|
}
|
|
236
59
|
],
|
|
237
60
|
"components": "components",
|
|
238
|
-
"extensions": "extensions"
|
|
239
|
-
"hide": ["**/_*.md", "**/_*.mdx"]
|
|
61
|
+
"extensions": "extensions"
|
|
240
62
|
}
|
|
241
63
|
}
|
|
242
64
|
}
|
|
243
65
|
```
|
|
244
66
|
|
|
245
|
-
|
|
246
|
-
`
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
Der Inhalt lautet Markdown und MDX. Frontmatter enthält Seitenmetadaten und der Text ist
|
|
252
|
-
das bearbeitbare Dokument:
|
|
253
|
-
|
|
254
|
-
```mdx
|
|
255
|
-
---
|
|
256
|
-
title: "Erste Schritte"
|
|
257
|
-
icon: "sparkles"
|
|
258
|
-
isFavorite: true
|
|
259
|
-
updatedAt: "2026-06-12T20:00:00.000Z"
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
# Erste Schritte
|
|
263
|
-
|
|
264
|
-
Use <FrameworkTabs value="react" /> to show framework-specific code.
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
Der Titel stammt von `title` frontmatter, sofern vorhanden, andernfalls von
|
|
268
|
-
Dateiname. Der Editor behält die MDX-Quelle bei, die er noch nicht visuell bearbeiten kann, also
|
|
269
|
-
Codierungsagenten und normale Texteditoren bleiben sichere Fluchtwege.
|
|
270
|
-
|
|
271
|
-
## Benutzerdefinierte MDX-Komponenten
|
|
272
|
-
|
|
273
|
-
Inhalte können eine Vorschau lokaler Komponenten aus dem konfigurierten `components`-Ordner anzeigen.
|
|
274
|
-
Dies ist für MDX-Komponenten im Dokumentstil wie Registerkarten, Beschriftungen und Pakete gedacht.
|
|
275
|
-
Installieren Sie Snippets oder Framework-spezifische Codeblöcke.
|
|
276
|
-
|
|
277
|
-
Fügen Sie beispielsweise eine interaktive Komponente neben Ihrem Inhalt hinzu:
|
|
278
|
-
|
|
279
|
-
```tsx
|
|
280
|
-
// components/ImpactCounter.tsx
|
|
281
|
-
import { useState } from "react";
|
|
282
|
-
|
|
283
|
-
export function ImpactCounter({
|
|
284
|
-
label = "points",
|
|
285
|
-
accent = "blue",
|
|
286
|
-
featured = false,
|
|
287
|
-
}: {
|
|
288
|
-
label?: string;
|
|
289
|
-
accent?: "blue" | "green" | "purple";
|
|
290
|
-
featured?: boolean;
|
|
291
|
-
}) {
|
|
292
|
-
const [count, setCount] = useState(3);
|
|
293
|
-
const accentClass =
|
|
294
|
-
accent === "green"
|
|
295
|
-
? "border-green-300 bg-green-50"
|
|
296
|
-
: accent === "purple"
|
|
297
|
-
? "border-purple-300 bg-purple-50"
|
|
298
|
-
: "border-blue-300 bg-blue-50";
|
|
299
|
-
|
|
300
|
-
return (
|
|
301
|
-
<div className={`rounded-md border p-4 ${accentClass}`}>
|
|
302
|
-
<div className="text-sm text-muted-foreground">Launch impact</div>
|
|
303
|
-
<div className="mt-1 text-3xl font-semibold">
|
|
304
|
-
{count} {label}
|
|
305
|
-
</div>
|
|
306
|
-
{featured ? <div className="mt-1 text-sm">Featured metric</div> : null}
|
|
307
|
-
<button
|
|
308
|
-
type="button"
|
|
309
|
-
className="mt-3 rounded border px-3 py-1 text-sm"
|
|
310
|
-
onClick={() => setCount((value) => value + 1)}
|
|
311
|
-
>
|
|
312
|
-
Add point
|
|
313
|
-
</button>
|
|
314
|
-
</div>
|
|
315
|
-
);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export const ImpactCounterInputs = {
|
|
319
|
-
label: {
|
|
320
|
-
type: "string",
|
|
321
|
-
label: "Metric label",
|
|
322
|
-
default: "points",
|
|
323
|
-
},
|
|
324
|
-
accent: {
|
|
325
|
-
type: "select",
|
|
326
|
-
label: "Accent",
|
|
327
|
-
options: ["blue", "green", "purple"],
|
|
328
|
-
default: "blue",
|
|
329
|
-
},
|
|
330
|
-
featured: {
|
|
331
|
-
type: "boolean",
|
|
332
|
-
label: "Featured",
|
|
333
|
-
default: false,
|
|
334
|
-
},
|
|
335
|
-
};
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
Dann verwenden Sie es aus einer beliebigen lokalen MDX-Datei:
|
|
339
|
-
|
|
340
|
-
```mdx
|
|
341
|
-
---
|
|
342
|
-
title: "Notizen starten"
|
|
343
|
-
---
|
|
344
|
-
|
|
345
|
-
# Notizen starten
|
|
346
|
-
|
|
347
|
-
<ImpactCounter label="wins" />
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
Der Content-Entwicklungsserver erkennt PascalCase-benannte Exporte und PascalCase-Standardwerte
|
|
351
|
-
Exporte aus `.tsx`-, `.jsx`-, `.ts`- und `.js`-Dateien unter `components/`. Diese
|
|
352
|
-
Komponenten werden im Editor gerendert und im Slash-Menü darunter angezeigt
|
|
353
|
-
**Lokale Komponenten**. Durch das Einfügen eines Schrägstrichs wird ein minimales Tag erstellt, z. B.
|
|
354
|
-
`<ImpactCounter />`; Fügen Sie bei Bedarf Requisiten zur MDX-Quelle hinzu.
|
|
355
|
-
|
|
356
|
-
Die Komponentenausführung ist absichtlich eine lokale Dev/Desktop-Bridge-Funktion, nicht
|
|
357
|
-
einfacher Zugriff auf gehostete Browserordner. Wenn Sie `content.agent-native.com` öffnen,
|
|
358
|
-
Wählen Sie **Lokale Dateien** und einen Ordner in Chrome, den die App lesen und schreiben kann
|
|
359
|
-
die Dateien `.md` und `.mdx` über den Browser-Dateisystemzugriff auf API, aber
|
|
360
|
-
Chrome stellt keinen absoluten Ordnerpfad für die Kompilierung durch Vite bereit
|
|
361
|
-
`components/*.tsx`. Um benutzerdefinierte React-Komponenten in der Vorschau anzuzeigen und im laufenden Betrieb neu zu laden, führen Sie
|
|
362
|
-
Inhalte lokal oder verwenden Sie Agent Native Desktop, damit die vertrauenswürdige lokale Bridge dies tun kann
|
|
363
|
-
registrieren Sie den ausgewählten Arbeitsbereich beim lokalen Content-Entwicklungsserver. In diesem Modus
|
|
364
|
-
Änderungen an vorhandenen Komponentendateien, Hot-Reload über Vite und Hinzufügen von oder
|
|
365
|
-
Durch das Entfernen von Komponentendateien werden die Komponentenregistrierung und das Slash-Menü neu geladen.
|
|
366
|
-
|
|
367
|
-
Agenten können auch mit diesen registrierten Komponentendateien arbeiten. Verwenden
|
|
368
|
-
`list-local-component-files`, um dann die registrierte Arbeitsbereichs-ID zu finden
|
|
369
|
-
`write-local-component-file` zum Erstellen oder Aktualisieren von `.tsx`, `.jsx`, `.ts` oder
|
|
370
|
-
`.js`-Dateien im Ordner `components/` des Arbeitsbereichs. Die MDX-Dateien bleiben die
|
|
371
|
-
Quelle der Wahrheit für die Komponentenverwendung; Die Komponentendateien bleiben normale Repo
|
|
372
|
-
Quelldateien mit Git überprüft.
|
|
373
|
-
|
|
374
|
-
Wenn eine Komponente Eingabemetadaten exportiert, wählen Sie die Komponente im Editor aus
|
|
375
|
-
zeigt eine Schaltfläche zum Bearbeiten in der oberen rechten Ecke der Komponente an. Unterstützte Eingabetypen
|
|
376
|
-
sind `string`, `textarea`, `number`, `boolean` und `select`. Das Formular schreibt
|
|
377
|
-
wechselt zurück zum MDX-Tag, sodass lokale Dateien die Quelle der Wahrheit bleiben. Die
|
|
378
|
-
Metadaten können als `ComponentNameInputs`, `ComponentNameConfig.inputs`,
|
|
379
|
-
`Component.inputs` oder `agentNative.inputs`.
|
|
380
|
-
|
|
381
|
-
Einfache Komponenten-Tags mit Literal-Requisiten können inline in der Vorschau angezeigt werden:
|
|
382
|
-
|
|
383
|
-
```mdx
|
|
384
|
-
<FrameworkTabs value="react" />
|
|
385
|
-
|
|
386
|
-
<Callout tone="warning">
|
|
387
|
-
|
|
388
|
-
This setting affects production deploys.
|
|
389
|
-
|
|
390
|
-
</Callout>
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
Komplexe JSX-Ausdrücke bleiben in der Quelle erhalten. Wenn der Editor dies nicht sicher tun kann
|
|
394
|
-
Sehen Sie sich noch eine Vorschau einer Komponenten-Requisite an, es wird ein Warnungsplatzhalter angezeigt und nicht
|
|
395
|
-
Daten werden stillschweigend gelöscht.
|
|
396
|
-
|
|
397
|
-
## Lokale Dateien teilen
|
|
398
|
-
|
|
399
|
-
Lokale Dateien werden nicht direkt freigegeben, da andere Benutzer einen Pfad darauf nicht lesen können
|
|
400
|
-
Ihre Maschine. Mit der Schaltfläche „Teilen“ in der Symbolleiste „Inhalt“ wird ein
|
|
401
|
-
datenbankgestützte Kopie der ausgewählten Datei, navigiert zu dieser Kopie und öffnet die
|
|
402
|
-
normales Freigabe-Popover. Die ursprüngliche lokale Datei verbleibt unter „Lokale Dateien“. die
|
|
403
|
-
Datenbankkopie erscheint unter „Freigegebene Kopien“ im lokalen Dateimodus und verwendet die
|
|
404
|
-
Standardmodell für die gemeinsame Nutzung von Dokumenten.
|
|
405
|
-
|
|
406
|
-
## Lokale Erweiterungen
|
|
407
|
-
|
|
408
|
-
Der lokale Dateimodus kann auch Repo-gestützte Erweiterungen aus der konfigurierten Datei laden
|
|
409
|
-
`extensions`-Ordner. Jede Erweiterung ist ein Verzeichnis mit einem `extension.json`
|
|
410
|
-
Manifest und eine HTML-Eintragsdatei:
|
|
411
|
-
|
|
412
|
-
```text
|
|
413
|
-
extensions/
|
|
414
|
-
doc-status/
|
|
415
|
-
extension.json
|
|
416
|
-
index.html
|
|
417
|
-
```
|
|
418
|
-
|
|
419
|
-
```json
|
|
420
|
-
{
|
|
421
|
-
"id": "doc-status",
|
|
422
|
-
"name": "Doc Status",
|
|
423
|
-
"description": "Shows metadata for the selected Content file.",
|
|
424
|
-
"entry": "index.html",
|
|
425
|
-
"slots": ["content.sidebar.bottom"],
|
|
426
|
-
"permissions": {
|
|
427
|
-
"appActions": ["list-documents"],
|
|
428
|
-
"extensionData": true
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
`index.html` ist das gleiche Alpine/Tailwind-Erweiterungskörperformat, das von Normal verwendet wird
|
|
434
|
-
datenbankgestützte Erweiterungen. Wenn die Content-App eine lokale Erweiterung erkennt,
|
|
435
|
-
deklariert `content.sidebar.bottom` und rendert diese Erweiterung am Ende von
|
|
436
|
-
die Inhaltsseitenleiste. Der Host übergibt `window.slotContext` mit dem ausgewählten
|
|
437
|
-
Dokument-ID, Titel, Quellmetadaten und ob sich der Inhalt im lokalen Dateimodus befindet.
|
|
438
|
-
|
|
439
|
-
Lokale Erweiterungen werden von der App in der Vorschau angezeigt, aber als Dateien bearbeitet. Die Erweiterungen
|
|
440
|
-
Liste zeigt sie mit einem Lokaldatei-Logo an und der Ganzseitenbetrachter verweist darauf
|
|
441
|
-
die Eintragsdatei. Von SQL unterstützte Erweiterung actions wie Aktualisieren, Löschen, Teilen und
|
|
442
|
-
Verlauf gilt nicht; Verwenden Sie Ihren Editor, Codex-, Claude-Code oder den Git-Verlauf für
|
|
443
|
-
Quellenänderungen.
|
|
444
|
-
|
|
445
|
-
Für v1 sind lokale Erweiterungen absichtlich konservativ:
|
|
446
|
-
|
|
447
|
-
- Sie können `extensionData` für ihren eigenen kleinen Laufzeitstatus verwenden
|
|
448
|
-
- Sie können nur die in `extension.json` aufgeführten `appAction`s aufrufen
|
|
449
|
-
- rohe SQL-Helfer und externe `extensionFetch` sind deaktiviert
|
|
450
|
-
- Slot-Ziele werden in `extension.json` deklariert und nicht über SQL installiert
|
|
451
|
-
|
|
452
|
-
Dadurch erhalten lokale Arbeitsbereiche eine Obsidian-ähnliche Plugin-Oberfläche, ohne dass eine
|
|
453
|
-
Beliebige Repo-Dateien erben alle Funktionen einer datenbankgestützten Erweiterung.
|
|
454
|
-
|
|
455
|
-
## Wie Apps es nutzen
|
|
456
|
-
|
|
457
|
-
Der lokale Dateimodus wird durch die lokalen Artefakt-Helfer des Frameworks implementiert.
|
|
458
|
-
Eine App deklariert Roots für die Artefakttypen, die sie besitzt, und liest und schreibt dann
|
|
459
|
-
über dieselbe Aktionsoberfläche, die UI und Agent bereits verwenden.
|
|
460
|
-
|
|
461
|
-
Für Inhalte bedeutet das:
|
|
462
|
-
|
|
463
|
-
- `list-documents` listet konfigurierte `.md`- und `.mdx`-Dateien auf.
|
|
464
|
-
- `get-document` liest eine ausgewählte lokale Datei.
|
|
465
|
-
- `update-document` schreibt die ausgewählte lokale Datei.
|
|
466
|
-
- `create-document` erstellt eine neue lokale `.mdx`-Datei im ausgewählten Ordner.
|
|
467
|
-
- `delete-document` löscht die lokale Datei.
|
|
468
|
-
- Die Suche erfolgt über die konfigurierten lokalen Dateien.
|
|
469
|
-
|
|
470
|
-
Das Verschieben, Umbenennen und Neuanordnen lokaler Dateiseiten aus dem Inhalt UI ist nicht möglich
|
|
471
|
-
wird noch unterstützt. Führen Sie diese Vorgänge im Arbeitsbereich oder mit einem Codierungsagenten aus. die
|
|
472
|
-
Die Inhaltsseitenleiste spiegelt den resultierenden Dateibaum wider.
|
|
473
|
-
|
|
474
|
-
Dadurch bleibt der Agentenvertrag einfach: Der Agent kann weiterhin Inhalte actions verwenden,
|
|
475
|
-
und diese actions entscheiden, ob das Ziel SQL-backed oder file-backed ist.
|
|
476
|
-
|
|
477
|
-
Andere Apps können im Laufe der Zeit dasselbe Muster annehmen. Eine Slides-App kann Karten erstellen
|
|
478
|
-
`slides/*.mdx` zu Decks, eine Pläne-App kann `plans/*` zu Plandokumenten zuordnen und ein
|
|
479
|
-
Dashboards-App kann `dashboards/*.mdx` Dashboards zuordnen. Diese App-spezifischen
|
|
480
|
-
Ordner sind Konventionen, die über demselben lokalen Artefaktvertrag liegen.
|
|
481
|
-
|
|
482
|
-
## Lokale Dateien vs. Export/Import
|
|
483
|
-
|
|
484
|
-
Inhalt hat zwei verschiedene Datei-Workflows:
|
|
485
|
-
|
|
486
|
-
| Workflow | Was passiert |
|
|
487
|
-
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
488
|
-
| `/local-files` Export/Import | Der Datenbankmodus bleibt die Quelle der Wahrheit. Dateien sind eine explizite Synchronisierungsoberfläche, die Sie exportieren, bearbeiten, in der Vorschau anzeigen und importieren können. |
|
|
489
|
-
| Lokaler Dateimodus | Dateien sind die Quelle der Wahrheit. Die Inhaltsseitenleiste und der Editor arbeiten direkt mit lokalen Dateien. |
|
|
490
|
-
|
|
491
|
-
Verwenden Sie Export/Import, wenn Sie gelegentlich Dateien in einem gehosteten Arbeitsbereich überprüfen möchten.
|
|
492
|
-
Verwenden Sie den lokalen Dateimodus, wenn das Repo selbst der Arbeitsbereich ist.
|
|
493
|
-
|
|
494
|
-
## Geschichte und Zusammenarbeit
|
|
495
|
-
|
|
496
|
-
Der lokale Dateimodus basiert auf dem dateinativen Verlauf:
|
|
497
|
-
|
|
498
|
-
- übertragen Sie wichtige Änderungen an Git
|
|
499
|
-
- Pull-Anfragen zur Überprüfung verwenden
|
|
500
|
-
- Lassen Sie Codierungsagenten dieselben Dateien direkt bearbeiten
|
|
501
|
-
- Verwenden Sie normale Dateiunterschiede, um Änderungen zu verstehen
|
|
502
|
-
|
|
503
|
-
Der Datenbankmodus eignet sich weiterhin besser für gehostete Kollaborationsfunktionen wie
|
|
504
|
-
Freigabe, Kommentare, SQL-gestützter Versionsverlauf und Live-Mehrbenutzerbearbeitung.
|
|
505
|
-
|
|
506
|
-
Die Anbietersynchronisierung kann über beide Modi gelegt werden. Beispielsweise kann ein Dokumenten-Repository
|
|
507
|
-
Fügen Sie actions hinzu, die Inhalte von einem CMS in lokale MDX-Dateien ziehen oder ausgewählte Dateien per Push übertragen
|
|
508
|
-
lokale Dateien zurück zu diesem CMS.
|
|
509
|
-
|
|
510
|
-
## Produktionssicherheit
|
|
511
|
-
|
|
512
|
-
Der lokale Dateimodus gewährt der App-Actions direkten Schreibzugriff auf den konfigurierten Arbeitsbereich
|
|
513
|
-
Dateien. Dies eignet sich für die lokale Entwicklung und vertrauenswürdige Single-Tenant-Dateien
|
|
514
|
-
Brücken, aber es ist nicht das Standard-Produktionssicherheitsmodell.
|
|
515
|
-
|
|
516
|
-
Bei `NODE_ENV=production` verweigert das Framework den `local-files`-Modus, es sei denn, Sie
|
|
517
|
-
set:
|
|
518
|
-
|
|
519
|
-
```bash
|
|
520
|
-
AGENT_NATIVE_ALLOW_LOCAL_FILES_IN_PRODUCTION=true
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
Legen Sie dies nur für eine vertrauenswürdige Einzelmandantenbereitstellung fest, die jeder verwenden kann
|
|
524
|
-
Die App darf die konfigurierten Dateien lesen und schreiben. Für normales Hosting:
|
|
525
|
-
Mehrbenutzer-Apps, verwenden Sie den Datenbankmodus und SQL-gestützte Freigabe.
|
|
67
|
+
Zur Migration `mode: "local-files"` und
|
|
68
|
+
`AGENT_NATIVE_MODE=local-files` entfernen, Roots behalten und `source`
|
|
69
|
+
ergänzen. Frontmatter-IDs bewahren die Seitenidentität bei Umbenennungen und
|
|
70
|
+
Verschiebungen. Lokale Komponenten und Erweiterungen verwenden weiter die
|
|
71
|
+
vertrauenswürdige lokale Bridge.
|
|
@@ -91,9 +91,8 @@ Wenn Sie die App öffnen, sehen Sie neben dem Editor einen Seitenbaum. Der Agent
|
|
|
91
91
|
- **Seiten in einer Baumstruktur organisieren** – unbegrenzt verschachteln, zum Neuanordnen ziehen, Lieblingsseiten, die Sie häufig verwenden.
|
|
92
92
|
- **Alles durchsuchen** mit Volltextsuche über Titel und Inhalte hinweg.
|
|
93
93
|
- **Bearbeiten Sie lokale Markdown/MDX-Dateien wie Obsidian.** Verwenden Sie die `/local-files`-Ansicht
|
|
94
|
-
|
|
95
|
-
Änderungen
|
|
96
|
-
die ausgewählte `.md`- oder `.mdx`-Datei.
|
|
94
|
+
um einen Ordner mit Files zu verbinden, ihn mit eigenen Werkzeugen zu bearbeiten,
|
|
95
|
+
Änderungen zu synchronisieren und Konflikte in der SQL-App zu prüfen.
|
|
97
96
|
- **Generieren Sie umfangreiche interaktive benutzerdefinierte Blöcke.** Registrieren Sie lokale React-Komponenten,
|
|
98
97
|
Fügen Sie sie als MDX ein und lassen Sie den Agent Komponentendateien erstellen oder aktualisieren
|
|
99
98
|
Ihre Dokumente.
|
|
@@ -136,32 +135,19 @@ als Überprüfungsoberfläche. Die gehostete App bleibt die Quelle der Wahrheit
|
|
|
136
135
|
Kommentare, Berechtigungen und Live-Zusammenarbeit; Der lokale Ordner ist ein expliziter
|
|
137
136
|
Oberfläche synchronisieren.
|
|
138
137
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
linkte Seitenleiste aus diesen lokalen `.md`/`.mdx`-Dateien und schreibt Änderungen zurück in die
|
|
144
|
-
ausgewählte Datei durch das normale Dokument actions. Verwenden Sie dies für Repo-First-Dokumente
|
|
145
|
-
Blogs, Ressourcenbibliotheken oder persönliche Inhalte im Obsidian-Stil mit MDX-Unterstützung
|
|
146
|
-
Komponenten; Wechseln Sie zurück in den Datenbankmodus, wenn Sie eine gehostete Zusammenarbeit wünschen und
|
|
147
|
-
SQL-gestütztes Teilen. Siehe [Local File Mode](/docs/local-file-mode) für
|
|
148
|
-
eigenständiges Repo-Layout, Konfiguration, benutzerdefinierte MDX-Komponenten, lokal
|
|
149
|
-
`extensions/`-Widgets und Leitfaden zur Produktionssicherheit.
|
|
138
|
+
Lokale Ordner verwenden jetzt dasselbe SQL-Modell wie alle Seiten. Jede Seite
|
|
139
|
+
gehört zu einem Bereich und seiner Files-Datenbank; der Ordner ist ein
|
|
140
|
+
Quelladapter. Siehe [Lokale Ordnerquellen](/docs/local-file-mode) für Richtlinien,
|
|
141
|
+
Konflikte, MDX-Komponenten und die Migration vom alten Modus.
|
|
150
142
|
|
|
151
|
-
So
|
|
143
|
+
So öffnen Sie Content für ein vorhandenes Repository:
|
|
152
144
|
|
|
153
145
|
```bash
|
|
154
|
-
npx @agent-native/core@latest
|
|
146
|
+
npx @agent-native/core@latest content .
|
|
155
147
|
```
|
|
156
148
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
und `resources/`. Wenn eine lokale Content-App, Agent Native Desktop oder vertrauenswürdig
|
|
160
|
-
Lokale Bridge läuft, Agenten sollten Content actions wie
|
|
161
|
-
`list-documents`, `get-document`, `edit-document`, `update-document` und
|
|
162
|
-
`share-local-file-document` anstelle von unformatierten Dateisystem-Schreibvorgängen. Ohne dieses lokale
|
|
163
|
-
bridge, der installierte Skill gibt dem Agent weiterhin den Repo-Bearbeitungsvertrag für
|
|
164
|
-
sichere Markdown/MDX-Änderungen.
|
|
149
|
+
Die CLI startet Content mit der normalen Datenbank, registriert die Ordnerquelle
|
|
150
|
+
und öffnet die Verbindung, ohne eine Modus-Umgebungsvariable zu setzen.
|
|
165
151
|
|
|
166
152
|
## Für Entwickler
|
|
167
153
|
|