@agent-native/core 0.102.1 → 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.
Files changed (295) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +15 -0
  3. package/corpus/core/docs/content/local-file-mode.mdx +99 -489
  4. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
  5. package/corpus/core/docs/content/locales/ar-SA/template-content.mdx +10 -24
  6. package/corpus/core/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
  7. package/corpus/core/docs/content/locales/de-DE/template-content.mdx +10 -24
  8. package/corpus/core/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
  9. package/corpus/core/docs/content/locales/es-ES/template-content.mdx +10 -24
  10. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
  11. package/corpus/core/docs/content/locales/fr-FR/template-content.mdx +10 -24
  12. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
  13. package/corpus/core/docs/content/locales/hi-IN/template-content.mdx +10 -24
  14. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
  15. package/corpus/core/docs/content/locales/ja-JP/template-content.mdx +10 -24
  16. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
  17. package/corpus/core/docs/content/locales/ko-KR/template-content.mdx +10 -24
  18. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
  19. package/corpus/core/docs/content/locales/pt-BR/template-content.mdx +10 -24
  20. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
  21. package/corpus/core/docs/content/locales/zh-CN/template-content.mdx +9 -24
  22. package/corpus/core/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
  23. package/corpus/core/docs/content/locales/zh-TW/template-content.mdx +9 -24
  24. package/corpus/core/docs/content/template-content.mdx +26 -42
  25. package/corpus/core/package.json +1 -1
  26. package/corpus/core/src/cli/content-local.ts +86 -18
  27. package/corpus/core/src/cli/index.ts +2 -2
  28. package/corpus/core/src/cli/skills-content/content-skill.ts +36 -25
  29. package/corpus/core/src/cli/skills.ts +47 -13
  30. package/corpus/core/src/client/AgentPanel.tsx +7 -0
  31. package/corpus/core/src/client/AssistantChat.tsx +7 -0
  32. package/corpus/core/src/client/agent-chat-adapter.ts +7 -1
  33. package/corpus/core/src/client/chat/message-components.tsx +17 -3
  34. package/corpus/core/src/client/composer/ComposerPlusMenu.tsx +96 -6
  35. package/corpus/core/src/client/composer/asset-picker-url.ts +80 -0
  36. package/corpus/core/src/client/error-format.ts +24 -0
  37. package/corpus/core/src/client/resources/McpIntegrationDialog.tsx +8 -1
  38. package/corpus/core/src/local-artifacts/index.ts +65 -0
  39. package/corpus/templates/assets/app/components/library/GenerationPresetsPanel.tsx +325 -0
  40. package/corpus/templates/assets/app/hooks/use-navigation-state.ts +12 -0
  41. package/corpus/templates/assets/app/i18n/zh-TW.ts +21 -0
  42. package/corpus/templates/assets/app/i18n-data.ts +215 -0
  43. package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +19 -479
  44. package/corpus/templates/assets/app/routes/brand-kits.$id_.presets.$presetId.tsx +1 -1
  45. package/corpus/templates/assets/app/routes/brand-kits.$id_.settings.tsx +446 -0
  46. package/corpus/templates/assets/app/routes/library.tsx +69 -0
  47. package/corpus/templates/assets/changelog/2026-07-15-fixed-top-level-image-picker-selections-returning-to-the-com.md +6 -0
  48. package/corpus/templates/clips/actions/disconnect-calendar.ts +57 -9
  49. package/corpus/templates/clips/actions/generate-workflow.ts +102 -59
  50. package/corpus/templates/clips/actions/get-recording-player-data.ts +64 -1
  51. package/corpus/templates/clips/actions/regenerate-summary.ts +7 -0
  52. package/corpus/templates/clips/actions/regenerate-title.ts +29 -11
  53. package/corpus/templates/clips/app/components/editor/editor-layout.tsx +34 -13
  54. package/corpus/templates/clips/app/components/editor/thumbnail-picker.tsx +87 -9
  55. package/corpus/templates/clips/app/components/editor/trim-handles.tsx +15 -0
  56. package/corpus/templates/clips/app/components/editor/waveform.tsx +21 -8
  57. package/corpus/templates/clips/app/components/library/folder-tree.tsx +52 -0
  58. package/corpus/templates/clips/app/components/player/settings-panel.tsx +116 -58
  59. package/corpus/templates/clips/app/components/player/share-dialog.tsx +43 -37
  60. package/corpus/templates/clips/app/components/player/video-player.tsx +50 -2
  61. package/corpus/templates/clips/app/components/recorder/microphone-visualizer.tsx +22 -3
  62. package/corpus/templates/clips/app/i18n/ar-SA.ts +5 -2
  63. package/corpus/templates/clips/app/i18n/de-DE.ts +6 -2
  64. package/corpus/templates/clips/app/i18n/en-US.ts +5 -2
  65. package/corpus/templates/clips/app/i18n/es-ES.ts +6 -2
  66. package/corpus/templates/clips/app/i18n/fr-FR.ts +5 -2
  67. package/corpus/templates/clips/app/i18n/hi-IN.ts +5 -2
  68. package/corpus/templates/clips/app/i18n/ja-JP.ts +6 -1
  69. package/corpus/templates/clips/app/i18n/ko-KR.ts +5 -2
  70. package/corpus/templates/clips/app/i18n/pt-BR.ts +6 -2
  71. package/corpus/templates/clips/app/i18n/zh-CN.ts +5 -2
  72. package/corpus/templates/clips/app/i18n/zh-TW.ts +5 -2
  73. package/corpus/templates/clips/app/lib/timestamp-mapping.ts +14 -0
  74. package/corpus/templates/clips/app/routes/_app.library._index.tsx +1 -2
  75. package/corpus/templates/clips/app/routes/_index.tsx +1 -2
  76. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +98 -32
  77. package/corpus/templates/clips/app/routes/share.$shareId.tsx +4 -1
  78. package/corpus/templates/clips/changelog/2026-07-15-ai-workflow-generation-now-stays-visible-avoids-duplicate-re.md +6 -0
  79. package/corpus/templates/clips/changelog/2026-07-15-clip-playback-and-cta-controls-remain-interactive-through-ed.md +6 -0
  80. package/corpus/templates/clips/changelog/2026-07-15-clip-titles-no-longer-describe-the-product-as-a-loom-alterna.md +6 -0
  81. package/corpus/templates/clips/changelog/2026-07-15-description-regeneration-now-opens-the-agent-chat-so-progres.md +6 -0
  82. package/corpus/templates/clips/changelog/2026-07-15-direct-recording-urls-now-respect-share-link-and-password-ac.md +6 -0
  83. package/corpus/templates/clips/changelog/2026-07-15-disconnecting-a-calendar-now-clears-unrecorded-synced-meetin.md +6 -0
  84. package/corpus/templates/clips/changelog/2026-07-15-folders-now-expose-rename-and-delete-actions-directly-in-the.md +6 -0
  85. package/corpus/templates/clips/changelog/2026-07-15-recording-pages-now-explain-sign-in-access-and-avoid-showing.md +6 -0
  86. package/corpus/templates/clips/changelog/2026-07-15-the-clips-extension-quick-actions-toolbar-can-be-moved-out-o.md +6 -0
  87. package/corpus/templates/clips/changelog/2026-07-15-the-editor-now-skips-cut-sections-during-preview-and-keeps-t.md +6 -0
  88. package/corpus/templates/clips/changelog/2026-07-15-thumbnail-capture-now-updates-previews-while-scrubbing-and-l.md +6 -0
  89. package/corpus/templates/clips/changelog/2026-07-15-windows-permission-links-open-the-matching-settings-page.md +6 -0
  90. package/corpus/templates/clips/chrome-extension/src/content-script.ts +117 -2
  91. package/corpus/templates/clips/chrome-extension/src/overlay.ts +27 -0
  92. package/corpus/templates/clips/desktop/src-tauri/tauri.conf.json +1 -1
  93. package/corpus/templates/clips/server/lib/calendar-event-meetings.ts +139 -101
  94. package/corpus/templates/clips/server/lib/recording-page-access.ts +35 -0
  95. package/corpus/templates/clips/server/lib/share-password.ts +6 -3
  96. package/corpus/templates/content/.agents/skills/content/SKILL.md +26 -39
  97. package/corpus/templates/content/AGENTS.md +25 -30
  98. package/corpus/templates/content/actions/_builder-docs-client.ts +23 -0
  99. package/corpus/templates/content/actions/_content-database-source-adapters.ts +21 -3
  100. package/corpus/templates/content/actions/_content-files.ts +338 -0
  101. package/corpus/templates/content/actions/_content-space-access.ts +135 -0
  102. package/corpus/templates/content/actions/_content-spaces.ts +640 -0
  103. package/corpus/templates/content/actions/_database-source-utils.ts +90 -7
  104. package/corpus/templates/content/actions/_database-utils.ts +7 -1
  105. package/corpus/templates/content/actions/_local-file-documents.ts +0 -9
  106. package/corpus/templates/content/actions/_local-folder-source.ts +53 -0
  107. package/corpus/templates/content/actions/_property-utils.ts +9 -4
  108. package/corpus/templates/content/actions/add-database-item.ts +108 -65
  109. package/corpus/templates/content/actions/backfill-content-files.ts +22 -0
  110. package/corpus/templates/content/actions/connect-local-folder-source.ts +221 -0
  111. package/corpus/templates/content/actions/create-content-database.ts +129 -3
  112. package/corpus/templates/content/actions/create-document.ts +65 -55
  113. package/corpus/templates/content/actions/create-inline-content-database.ts +6 -1
  114. package/corpus/templates/content/actions/delete-content-database.ts +3 -0
  115. package/corpus/templates/content/actions/delete-document.ts +7 -11
  116. package/corpus/templates/content/actions/disconnect-local-folder-source.ts +175 -0
  117. package/corpus/templates/content/actions/duplicate-database-item.ts +10 -0
  118. package/corpus/templates/content/actions/duplicate-database-items.ts +13 -0
  119. package/corpus/templates/content/actions/edit-document.ts +2 -28
  120. package/corpus/templates/content/actions/ensure-content-spaces.ts +26 -0
  121. package/corpus/templates/content/actions/export-content-source.ts +47 -9
  122. package/corpus/templates/content/actions/get-document.ts +0 -14
  123. package/corpus/templates/content/actions/import-content-source.ts +43 -3
  124. package/corpus/templates/content/actions/list-content-spaces.ts +103 -0
  125. package/corpus/templates/content/actions/list-documents.ts +12 -9
  126. package/corpus/templates/content/actions/move-document.ts +3 -14
  127. package/corpus/templates/content/actions/pull-document.ts +0 -23
  128. package/corpus/templates/content/actions/remove-local-file-source.ts +50 -29
  129. package/corpus/templates/content/actions/resolve-local-folder-conflict.ts +442 -0
  130. package/corpus/templates/content/actions/reveal-local-source-file.ts +6 -17
  131. package/corpus/templates/content/actions/search-documents.ts +0 -34
  132. package/corpus/templates/content/actions/share-local-file-document.ts +25 -1
  133. package/corpus/templates/content/actions/submit-content-database-form.ts +12 -0
  134. package/corpus/templates/content/actions/sync-local-folder-source.ts +731 -0
  135. package/corpus/templates/content/actions/sync-manifest-local-folder-source.ts +123 -0
  136. package/corpus/templates/content/actions/update-content-database-view.ts +10 -1
  137. package/corpus/templates/content/actions/update-document.ts +0 -15
  138. package/corpus/templates/content/actions/view-screen.ts +2 -50
  139. package/corpus/templates/content/app/components/editor/SlashCommandMenu.tsx +76 -62
  140. package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +70 -22
  141. package/corpus/templates/content/app/components/editor/database/grouping.ts +2 -1
  142. package/corpus/templates/content/app/components/editor/database/settings.tsx +23 -20
  143. package/corpus/templates/content/app/components/editor/database/shared.tsx +2 -0
  144. package/corpus/templates/content/app/components/editor/database/sidebar.tsx +330 -0
  145. package/corpus/templates/content/app/components/editor/database/types.ts +1 -0
  146. package/corpus/templates/content/app/components/editor/database/view-config.ts +3 -1
  147. package/corpus/templates/content/app/components/layout/Layout.tsx +25 -1
  148. package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +209 -113
  149. package/corpus/templates/content/app/components/sidebar/select-content-space.ts +31 -0
  150. package/corpus/templates/content/app/hooks/use-content-database.ts +16 -0
  151. package/corpus/templates/content/app/hooks/use-content-spaces.ts +39 -0
  152. package/corpus/templates/content/app/i18n/zh-TW.ts +11 -0
  153. package/corpus/templates/content/app/i18n-data.ts +75 -0
  154. package/corpus/templates/content/app/routes/_app.local-files.tsx +174 -65
  155. package/corpus/templates/content/changelog/2026-07-16-content-callouts-can-now-be-reviewed-and-published-to-builder.md +6 -0
  156. package/corpus/templates/content/changelog/2026-07-16-heading-5-and-heading-6-are-available-from-the-editor-slash-.md +6 -0
  157. package/corpus/templates/content/changelog/2026-07-16-organize-every-workspace-through-a-customizable-files-databa.md +6 -0
  158. package/corpus/templates/content/parity/matrix.md +2 -1
  159. package/corpus/templates/content/parity/matrix.ts +37 -1
  160. package/corpus/templates/content/scripts/dev-database.mjs +7 -5
  161. package/corpus/templates/content/server/db/schema.ts +113 -40
  162. package/corpus/templates/content/server/lib/document-context.ts +15 -1
  163. package/corpus/templates/content/server/lib/notion-sync.ts +6 -0
  164. package/corpus/templates/content/server/plugins/db.ts +153 -0
  165. package/corpus/templates/content/shared/api.ts +17 -3
  166. package/corpus/templates/content/shared/builder-mdx.ts +163 -16
  167. package/corpus/templates/design/.agents/skills/design-templates/SKILL.md +59 -0
  168. package/corpus/templates/design/AGENTS.md +6 -1
  169. package/corpus/templates/design/actions/create-design-from-template.ts +19 -7
  170. package/corpus/templates/design/actions/list-design-templates.ts +69 -21
  171. package/corpus/templates/design/actions/navigate.ts +2 -2
  172. package/corpus/templates/design/actions/view-screen.ts +15 -2
  173. package/corpus/templates/design/agent-native.app-skill.json +5 -0
  174. package/corpus/templates/design/app/components/design/design-canvas/external-preview.ts +7 -3
  175. package/corpus/templates/design/app/components/editor/PromptDialog.tsx +281 -56
  176. package/corpus/templates/design/app/components/templates/TemplatePreview.tsx +14 -2
  177. package/corpus/templates/design/app/hooks/use-navigation-state.ts +3 -2
  178. package/corpus/templates/design/app/i18n/zh-TW.ts +3 -3
  179. package/corpus/templates/design/app/i18n-data.ts +21 -2
  180. package/corpus/templates/design/app/i18n-template-feature.ts +218 -10
  181. package/corpus/templates/design/app/pages/Index.tsx +195 -24
  182. package/corpus/templates/design/app/pages/Templates.tsx +144 -55
  183. package/corpus/templates/design/app/pages/design-editor/generation-prompt-directives.ts +12 -1
  184. package/corpus/templates/design/changelog/2026-07-14-templates-now-appear-in-the-new-design-picker-with-previews-.md +6 -0
  185. package/corpus/templates/design/changelog/2026-07-15-prototype-print-and-download-buttons-now-work-in-preview.md +6 -0
  186. package/corpus/templates/design/changelog/2026-07-15-templates-now-open-immediately-after-copying-even-while-the-.md +6 -0
  187. package/corpus/templates/design/server/plugins/agent-chat.ts +1 -1
  188. package/corpus/templates/mail/AGENTS.md +23 -18
  189. package/corpus/templates/mail/actions/bulk-archive.ts +32 -28
  190. package/corpus/templates/mail/actions/mark-read.ts +131 -20
  191. package/corpus/templates/mail/actions/mark-thread-read.ts +1 -1
  192. package/corpus/templates/mail/actions/move-email.ts +30 -24
  193. package/corpus/templates/mail/actions/send-email.ts +73 -68
  194. package/corpus/templates/mail/changelog/2026-07-15-unread-inbox-cleanup-now-completes-reliably.md +6 -0
  195. package/corpus/templates/mail/server/handlers/emails.ts +218 -209
  196. package/corpus/templates/mail/server/lib/bulk-mark-read.ts +30 -0
  197. package/corpus/templates/mail/server/lib/email-state.ts +198 -113
  198. package/corpus/templates/mail/server/lib/google-auth.ts +218 -25
  199. package/corpus/templates/mail/server/lib/jobs.ts +69 -74
  200. package/corpus/templates/mail/server/lib/local-email-store.ts +265 -0
  201. package/corpus/templates/mail/server/plugins/agent-chat.ts +6 -0
  202. package/corpus/templates/slides/actions/extract-pdf.ts +1 -1
  203. package/corpus/templates/slides/actions/import-file.ts +4 -1
  204. package/corpus/templates/slides/app/components/editor/ImageGenPanel.tsx +1 -1
  205. package/corpus/templates/slides/app/components/editor/ImageSearchPanel.tsx +9 -12
  206. package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +29 -21
  207. package/corpus/templates/slides/app/i18n/ar-SA.ts +1 -0
  208. package/corpus/templates/slides/app/i18n/de-DE.ts +1 -0
  209. package/corpus/templates/slides/app/i18n/en-US.ts +1 -0
  210. package/corpus/templates/slides/app/i18n/es-ES.ts +1 -0
  211. package/corpus/templates/slides/app/i18n/fr-FR.ts +1 -0
  212. package/corpus/templates/slides/app/i18n/hi-IN.ts +1 -0
  213. package/corpus/templates/slides/app/i18n/ja-JP.ts +1 -0
  214. package/corpus/templates/slides/app/i18n/ko-KR.ts +1 -0
  215. package/corpus/templates/slides/app/i18n/pt-BR.ts +1 -0
  216. package/corpus/templates/slides/app/i18n/zh-CN.ts +1 -0
  217. package/corpus/templates/slides/app/i18n/zh-TW.ts +1 -0
  218. package/corpus/templates/slides/changelog/2026-07-15-image-search-and-generation-controls-now-use-the-registered-.md +6 -0
  219. package/corpus/templates/slides/changelog/2026-07-15-pdf-deck-references-can-be-imported-for-slide-inspiration-ag.md +6 -0
  220. package/corpus/templates/slides/changelog/2026-07-15-stable-style-inspector-dock.md +6 -0
  221. package/dist/cli/content-local.d.ts +1 -0
  222. package/dist/cli/content-local.d.ts.map +1 -1
  223. package/dist/cli/content-local.js +75 -17
  224. package/dist/cli/content-local.js.map +1 -1
  225. package/dist/cli/index.js +2 -2
  226. package/dist/cli/index.js.map +1 -1
  227. package/dist/cli/skills-content/content-skill.d.ts +1 -1
  228. package/dist/cli/skills-content/content-skill.d.ts.map +1 -1
  229. package/dist/cli/skills-content/content-skill.js +36 -25
  230. package/dist/cli/skills-content/content-skill.js.map +1 -1
  231. package/dist/cli/skills.d.ts.map +1 -1
  232. package/dist/cli/skills.js +47 -14
  233. package/dist/cli/skills.js.map +1 -1
  234. package/dist/client/AgentPanel.d.ts.map +1 -1
  235. package/dist/client/AgentPanel.js +5 -0
  236. package/dist/client/AgentPanel.js.map +1 -1
  237. package/dist/client/AssistantChat.d.ts.map +1 -1
  238. package/dist/client/AssistantChat.js +7 -0
  239. package/dist/client/AssistantChat.js.map +1 -1
  240. package/dist/client/agent-chat-adapter.d.ts.map +1 -1
  241. package/dist/client/agent-chat-adapter.js +8 -1
  242. package/dist/client/agent-chat-adapter.js.map +1 -1
  243. package/dist/client/chat/message-components.d.ts +4 -0
  244. package/dist/client/chat/message-components.d.ts.map +1 -1
  245. package/dist/client/chat/message-components.js +10 -3
  246. package/dist/client/chat/message-components.js.map +1 -1
  247. package/dist/client/composer/ComposerPlusMenu.d.ts.map +1 -1
  248. package/dist/client/composer/ComposerPlusMenu.js +58 -6
  249. package/dist/client/composer/ComposerPlusMenu.js.map +1 -1
  250. package/dist/client/composer/asset-picker-url.d.ts +16 -0
  251. package/dist/client/composer/asset-picker-url.d.ts.map +1 -0
  252. package/dist/client/composer/asset-picker-url.js +64 -0
  253. package/dist/client/composer/asset-picker-url.js.map +1 -0
  254. package/dist/client/error-format.d.ts.map +1 -1
  255. package/dist/client/error-format.js +17 -0
  256. package/dist/client/error-format.js.map +1 -1
  257. package/dist/client/resources/McpIntegrationDialog.d.ts.map +1 -1
  258. package/dist/client/resources/McpIntegrationDialog.js +6 -1
  259. package/dist/client/resources/McpIntegrationDialog.js.map +1 -1
  260. package/dist/collab/awareness.d.ts +2 -2
  261. package/dist/collab/awareness.d.ts.map +1 -1
  262. package/dist/collab/struct-routes.d.ts +1 -1
  263. package/dist/local-artifacts/index.d.ts +10 -0
  264. package/dist/local-artifacts/index.d.ts.map +1 -1
  265. package/dist/local-artifacts/index.js +39 -0
  266. package/dist/local-artifacts/index.js.map +1 -1
  267. package/dist/notifications/routes.d.ts +1 -1
  268. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  269. package/dist/resources/handlers.d.ts +3 -3
  270. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  271. package/dist/server/transcribe-voice.d.ts +1 -1
  272. package/docs/content/local-file-mode.mdx +99 -489
  273. package/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
  274. package/docs/content/locales/ar-SA/template-content.mdx +10 -24
  275. package/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
  276. package/docs/content/locales/de-DE/template-content.mdx +10 -24
  277. package/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
  278. package/docs/content/locales/es-ES/template-content.mdx +10 -24
  279. package/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
  280. package/docs/content/locales/fr-FR/template-content.mdx +10 -24
  281. package/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
  282. package/docs/content/locales/hi-IN/template-content.mdx +10 -24
  283. package/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
  284. package/docs/content/locales/ja-JP/template-content.mdx +10 -24
  285. package/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
  286. package/docs/content/locales/ko-KR/template-content.mdx +10 -24
  287. package/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
  288. package/docs/content/locales/pt-BR/template-content.mdx +10 -24
  289. package/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
  290. package/docs/content/locales/zh-CN/template-content.mdx +9 -24
  291. package/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
  292. package/docs/content/locales/zh-TW/template-content.mdx +9 -24
  293. package/docs/content/template-content.mdx +26 -42
  294. package/package.json +1 -1
  295. package/corpus/templates/assets/app/components/library/EditLibraryDialog.tsx +0 -126
@@ -1,523 +1,68 @@
1
1
  ---
2
- title: "로컬 파일 모드"
3
- description: "로컬 Markdown, MDX 기타 repo 파일을 정보 소스로 사용하여 에이전트 네이티브 앱을 실행합니다. 여기에는 맞춤 구성요소가 포함된 Obsidian 스타일 MDX 문서도 포함됩니다."
2
+ title: "로컬 폴더 소스"
3
+ description: "Markdown 및 MDX 폴더를 데이터베이스 기반 Content 공간에 연결합니다."
4
4
  ---
5
5
 
6
- # 로컬 파일 모드
6
+ # 로컬 폴더 소스
7
7
 
8
- 로컬 파일 모드를 사용하면 에이전트 네이티브 앱이 일반 UI 및 작업 표면을 연결할 수 있습니다.
9
- 저장소나 작업공간의 파일에 직접 연결됩니다. 앱이 여전히 호스팅된 것처럼 느껴집니다.
10
- 제품, 목록 보기, 편집기 에이전트 도구는 로컬 파일을 읽고 씁니다
11
- SQL 지원 기록 대신
8
+ Content에는 하나의 데이터 모델만 있습니다. 모든 페이지는 SQL에 저장되고
9
+ **공간**에 속하며 해당 공간의 시스템 **Files** 데이터베이스 항목이 됩니다.
10
+ 로컬 폴더는 Files에 연결되는 소스이지 별도의 모드가 아닙니다.
11
+ `AGENT_NATIVE_MODE` 전환은 이상 사용하지 않습니다.
12
12
 
13
- 번째 구현은 콘텐츠 템플릿에 있습니다. 왼쪽 사이드바는 다음과 같습니다.
14
- 로컬 `.md` `.mdx` 파일로 채워지며, 페이지를 선택하면 표준이 열립니다.
15
- 컨텐츠 편집기 저장하면 선택한 파일에 다시 기록됩니다. 동일한 파일은 다음과 같습니다.
16
- Codex, Claude 코드, Agent-Native 사이드바 에이전트 또는 일반 사용자로도 편집 가능
17
- 편집자.
13
+ 사용자마다 개인 공간이 있고 접근 가능한 조직마다 조직 공간이 있습니다. 개인
14
+ **Workspaces** 카탈로그가 앱에 표시할 공간을 정합니다. Files는 일반 Content
15
+ 데이터베이스이므로 속성, 필터, 정렬, 그룹 저장된 보기를 사이드바에도 사용할
16
+ 있습니다.
18
17
 
19
- 콘텐츠의 경우 제품이 MDX용 오픈 소스 Obsidian처럼 느껴집니다.
20
- 문서는 파일로 저장되고 앱에는 시각적 편집기인 에이전트 actions가 추가됩니다.
21
- 공유 가능한 복사본 및 풍부한 대화형 MDX 구성 요소
18
+ ## 폴더 연결
22
19
 
23
- 저장소 우선 워크플로를 원할 경우 로컬 파일 모드를 사용하세요.
20
+ 브라우저 또는 Agent Native Desktop에서 폴더를 선택해 기존 공간에 연결하거나
21
+ 전용 비공개 공간을 만듭니다. SQL에는 불투명한 연결 ID, 상대 경로, 해시와 소스
22
+ 메타데이터만 저장합니다. 절대 경로, 브라우저 핸들, 원본 파일 본문은 저장하지
23
+ 않습니다.
24
24
 
25
- - `docs/*.mdx`를 사용한 문서 저장소
26
- - `blog/*.mdx`가 있는 블로그
27
- - `resources/*.md`의 포지셔닝, 메시지 또는 메모와 같은 리소스
28
- - 풍부한 MDX 편집기를 갖춘 개인 흑요석 스타일 지식 기반
29
- - 로컬 React 코드에서 생성된 대화형 사용자 정의 MDX 블록이 필요한 문서
30
- - 코딩 에이전트가 쉽게 검사하고 패치할 수 있는 앱 아티팩트
25
+ 정책은 `database_primary`, `source_primary`, `reviewed_bidirectional`입니다.
26
+ 동기화는 파일을 일반 SQL 페이지로 구체화합니다. 양쪽이 동시에 바뀌면 덮어쓰는
27
+ 대신 검토할 변경을 만듭니다. 연결을 끊어도 페이지와 로컬 파일은 유지됩니다.
31
28
 
32
- 호스팅된 협업 앱 경험을 원할 때 데이터베이스 모드를 사용하세요:
33
- 다중 사용자 공유, SQL 지원 권한, 댓글, 버전 기록 및
34
- 로컬 파일 시스템 액세스가 없는 프로덕션 호스팅
35
-
36
- ## 정신 모델
37
-
38
- 두 가지 정보 소스 모드가 있습니다:
39
-
40
- | 모드 | 진실의 근원 | 최적의 용도 |
41
- | ----------------- | -------------------------------------- | ------------------------------------------------------------------ |
42
- | 데이터베이스 모드 | Drizzle를 통한 SQL 행 | 호스팅된 앱, 공동 작업, 공유, 댓글, 버전 기록 |
43
- | 로컬 파일 모드 | `agent-native.json`가 선언한 Repo 파일 | 로컬/개발 워크플로, Git 검토, 코딩 에이전트 편집, 파일 기본 콘텐츠 |
44
-
45
- UI와 에이전트 actions는 두 모드 모두에서 동일한 모양을 유지해야 합니다. 내용
46
- 편집자는 여전히 문서를 편집합니다. 차이점은 해당 문서가 해결되는지 여부입니다.
47
- SQL 행 또는 로컬 파일
48
-
49
- <Diagram id="doc-block-5u9k9g" title={"동일한 행동, 두 가지 진실 소스"} summary={"UI와 에이전트는 두 모드에서 동일한 작업을 호출합니다. 작업 계층은 각 호출이 SQL 행 또는 repo 파일로 확인되는지 여부를 결정합니다."}>
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">&rarr;</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-xk1uma"
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가 import할 수 있는 preview 컴포넌트 라이브러리",
147
- },
148
- {
149
- path: "components/FrameworkTabs.tsx",
150
- },
151
- {
152
- path: "components/Callout.tsx",
153
- },
154
- {
155
- path: "extensions/",
156
- note: "콘텐츠 루트 아님: 로컬 extension 라이브러리(sandboxed 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
- 스킬:
29
+ ## 저장소에서 시작
184
30
 
185
31
  ```bash
186
- npx @agent-native/core@latest skills add content --mode local-files --scope project
32
+ npx @agent-native/core@latest content .
187
33
  ```
188
34
 
189
- `content` 스킬을 저장소의 에이전트 스킬 폴더에 복사하고 씁니다.
190
- 또는 콘텐츠 기본값으로 `agent-native.json`를 업데이트합니다.
191
-
192
- - 작업 공간 수준의 `mode: "local-files"`
193
- - `apps.content.mode: "local-files"`
194
- - `docs/`, `blog/`, `content/` 및 `resources/`의 콘텐츠 루트
195
- - 로컬 MDX 구성요소용 `components/`
196
- - 로컬 확장 위젯용 `extensions/`
197
-
198
- 설치된 스킬은 코딩 에이전트에게 콘텐츠 actions를 사용하도록 지시합니다
199
- (`list-documents`, `get-document`, `edit-document`, `update-document`,
200
- `share-local-file-document` 및 구성 요소 파일 actions)(로컬 콘텐츠 앱인 경우)
201
- 또는 Agent Native 데스크탑 브리지가 이를 노출합니다. 다리가 달리고 있지 않으면 스킬
202
- 머리말, 가져오기, JSX를 보존하면서 안전한 직접 저장소 편집으로 대체
203
- 그리고 알 수 없는 MDX.
204
-
205
- ## 구성
35
+ 명령은 일반 데이터베이스 기반 Content를 시작하고 폴더를 소스로 등록한 뒤 연결
36
+ 화면을 엽니다. 모드 환경 변수는 설정하지 않습니다.
206
37
 
207
- 저장소 또는 작업공간 루트에 `agent-native.json`를 추가하세요.
38
+ ## 설정
208
39
 
209
40
  ```json
210
41
  {
211
42
  "version": 1,
212
43
  "apps": {
213
44
  "content": {
214
- "mode": "local-files",
215
45
  "roots": [
216
46
  {
217
47
  "name": "Docs",
218
48
  "path": "docs",
219
49
  "kind": "docs",
220
- "extensions": [".md", ".mdx"]
221
- },
222
- {
223
- "name": "Blog",
224
- "path": "blog",
225
- "kind": "blog",
226
- "extensions": [".md", ".mdx"]
227
- },
228
- {
229
- "name": "Resources",
230
- "path": "resources",
231
- "kind": "resources",
232
- "extensions": [".md", ".mdx"]
50
+ "extensions": [".md", ".mdx"],
51
+ "source": {
52
+ "type": "local-folder",
53
+ "connectionId": "local-folder:<opaque-id>",
54
+ "truthPolicy": "source_primary"
55
+ }
233
56
  }
234
57
  ],
235
58
  "components": "components",
236
- "extensions": "extensions",
237
- "hide": ["**/_*.md", "**/_*.mdx"]
59
+ "extensions": "extensions"
238
60
  }
239
61
  }
240
62
  }
241
63
  ```
242
64
 
243
- `AGENT_NATIVE_MODE=local-files` 또는
244
- `AGENT_NATIVE_DATA_MODE=local-files`; 매니페스트가 선호되는 이유는
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` 머리말에서 나오며, 그렇지 않으면
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 소스에 소품을 추가하세요.
353
-
354
- 구성요소 실행은 의도적으로 로컬 개발/데스크톱 브리지 기능이 아닌
355
- 일반 호스팅 브라우저 폴더 액세스. `content.agent-native.com`를 열면
356
- **로컬 파일**을 선택하고 Chrome에서 폴더를 선택하면 앱이 읽고 쓸 수 있습니다.
357
- `.md` 및 `.mdx` 파일은 브라우저 파일 시스템 액세스 API를 통해 이루어지지만
358
- Chrome은 컴파일할 Vite의 절대 폴더 경로를 노출하지 않습니다.
359
- `components/*.tsx`. 사용자 정의 React 구성 요소를 미리 보고 핫 리로드하려면 다음을 실행하세요.
360
- 신뢰할 수 있는 로컬 브리지에서 콘텐츠를 로컬로 전송하거나 Agent Native 데스크탑을 사용하여
361
- 선택한 작업공간을 로컬 컨텐츠 개발 서버에 등록합니다. 해당 모드에서는
362
- Vite를 통해 기존 구성 요소 파일 핫 리로드를 편집하고 또는 추가
363
- 구성요소 파일을 제거하면 구성요소 레지스트리와 슬래시 메뉴가 다시 로드됩니다.
364
-
365
- 에이전트는 등록된 구성 요소 파일로 작업할 수도 있습니다. 사용
366
- `list-local-component-files`를 사용하여 등록된 작업공간 ID를 찾은 다음
367
- `write-local-component-file` - `.tsx`, `.jsx`, `.ts` 생성 또는 업데이트
368
- 작업 공간의 `components/` 폴더 아래에 있는 `.js` 파일. 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
- 로컬 파일 모드는 구성된 파일에서 repo 지원 확장을 로드할 수도 있습니다.
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
- the Content sidebar. The host passes `window.slotContext` with the selected
435
- 문서 ID, 제목, 소스 메타데이터 및 콘텐츠가 로컬 파일 모드에 있는지 여부
436
-
437
- 로컬 확장자는 앱에서 미리 볼 수 있지만 파일로 편집됩니다. 확장 프로그램
438
- 목록에는 로컬 파일 배지가 표시되며 전체 페이지 뷰어는 다음을 가리킵니다
439
- 항목 파일입니다. 업데이트, 삭제, 공유 및
440
- 이력은 적용되지 않습니다. 편집기, Codex, Claude 코드 또는 Git 기록을 사용하여
441
- 소스 변경.
442
-
443
- v1의 경우 로컬 확장은 의도적으로 보수적입니다.
444
-
445
- - 그들은 자신의 작은 런타임 상태를 위해 `extensionData`를 사용할 수 있습니다
446
- - `extension.json`에 나열된 `appAction`만 호출할 수 있습니다
447
- - 원시 SQL 도우미 및 외부 `extensionFetch`가 비활성화되었습니다.
448
- - 슬롯 대상은 SQL를 통해 설치되지 않은 `extension.json`에서 선언되었습니다.
449
-
450
- 이것은 로컬 작업 공간에 Obsidian과 유사한 플러그인 표면을 제공하지만
451
- 임의의 repo 파일은 데이터베이스 지원 확장 프로그램의 모든 기능을 상속합니다.
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 앱은 `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
- - 검토를 위해 풀 요청 사용
498
- - 코딩 에이전트가 동일한 파일을 직접 편집하도록 허용
499
- - 변경사항을 이해하려면 일반 파일 비교를 사용하세요
500
-
501
- 데이터베이스 모드는 다음과 같은 호스팅 공동 작업 기능에 더 적합합니다.
502
- 공유, 댓글, SQL 지원 버전 기록 및 실시간 다중 사용자 편집
503
-
504
- 공급자 동기화는 두 모드 중 하나 위에 계층화될 수 있습니다. 예를 들어, 문서 저장소는
505
- CMS의 콘텐츠를 로컬 MDX 파일로 가져오거나 선택한 항목을 푸시하는 actions를 추가하세요.
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 지원 공유를 사용하세요.
65
+ 마이그레이션할 때 `mode: "local-files"`와
66
+ `AGENT_NATIVE_MODE=local-files`를 제거하고 roots는 유지한 채 `source`를
67
+ 추가합니다. frontmatter ID는 이름 변경과 이동 시 페이지 정체성을 유지합니다.
68
+ 로컬 컴포넌트와 확장은 계속 신뢰할 수 있는 로컬 브리지를 사용합니다.
@@ -91,9 +91,8 @@ description: "MDX용 오픈 소스 Obsidian: 로컬 Markdown/MDX 파일을 편
91
91
  - **페이지를 트리로 정리** — 자주 사용하는 즐겨찾는 페이지를 무한히 중첩하고 드래그하여 재정렬하세요.
92
92
  - 제목과 콘텐츠 전체에 대한 전체 텍스트 검색으로 **모든 것을 검색**하세요.
93
93
  - **Obsidian과 같은 로컬 Markdown/MDX 파일을 편집합니다.** `/local-files` 보기를 사용하세요.
94
- 작업 공간을 파일로 내보내고, 자신의 도구에서 편집하고, 미리 보려면
95
- 변경 사항을 다시 가져옵니다. 로컬 파일 모드에서는 콘텐츠가 바로
96
- 선택한 `.md` 또는 `.mdx` 파일
94
+ 폴더를 Files에 연결하고 자신의 도구로 편집한 다음 변경 사항을 동기화하고
95
+ SQL 안에서 충돌을 검토할 있습니다.
97
96
  - **풍부한 대화형 사용자 정의 블록을 생성합니다.** 로컬 React 구성요소를 등록합니다.
98
97
  이를 MDX로 삽입하고 에이전트가 다음에 대한 구성 요소 파일을 생성하거나 업데이트하도록 합니다.
99
98
  문서
@@ -136,32 +135,19 @@ description: "MDX용 오픈 소스 Obsidian: 로컬 Markdown/MDX 파일을 편
136
135
  댓글, 권한 및 실시간 공동 작업 로컬 폴더는 명시적입니다
137
136
  동기화 표면.
138
137
 
139
- 파일이 원본인 **로컬 파일 모드**에서도 콘텐츠를 실행할 있습니다.
140
- SQL 문서 대신 진실. 저장소에 `agent-native.json`를 추가하고 설정
141
- `mode: "local-files"` `docs/`, `blog/`와 같은 루트 구성
142
- `content/` 및 `resources/`. 그러면 표준 콘텐츠 편집기가 해당 항목을 채웁니다.
143
- 해당 로컬 `.md`/`.mdx` 파일의 왼쪽 사이드바를 편집하고 편집 내용을 다시
144
- 일반 문서 actions를 통해 선택한 파일입니다. 저장소 우선 문서에 이것을 사용하세요.
145
- MDX 기반 블로그, 리소스 라이브러리 또는 Obsidian 스타일의 개인 콘텐츠
146
- 구성요소; 호스팅된 공동 작업을 원할 때 데이터베이스 모드로 다시 전환하고
147
- SQL 지원 공유. 자세한 내용은 [Local File Mode](/docs/local-file-mode)를 참조하세요.
148
- 독립형 저장소 레이아웃, 구성, 사용자 정의 MDX 구성 요소, 로컬
149
- `extensions/` 위젯 및 생산 안전 가이드.
138
+ 로컬 폴더도 모든 페이지와 같은 SQL 모델을 사용합니다. 각 페이지는 공간과 해당
139
+ Files 데이터베이스에 속하고 폴더는 소스 어댑터가 됩니다. 정책, 충돌, MDX 구성
140
+ 요소와 이전 모드에서의 마이그레이션은 [로컬 폴더 소스](/docs/local-file-mode)를
141
+ 참조하세요.
150
142
 
151
- 기존 저장소에 콘텐츠 로컬 파일 기술을 설치하려면:
143
+ 기존 저장소에서 Content를 열려면:
152
144
 
153
145
  ```bash
154
- npx @agent-native/core@latest skills add content --mode local-files --scope project
146
+ npx @agent-native/core@latest content .
155
147
  ```
156
148
 
157
- 설치 프로그램은 코딩 에이전트에 대한 `content` 기술을 복사하고 쓰기 또는
158
- `docs/`, `blog/`, `content/`에 대한 콘텐츠 루트로 `agent-native.json`를 업데이트합니다.
159
- 및 `resources/`. 로컬 콘텐츠 앱, Agent Native 데스크톱 또는 신뢰할 수 있는 경우
160
- 로컬 브리지가 실행 중입니다. 에이전트는 다음과 같은 Content actions를 사용해야 합니다.
161
- `list-documents`, `get-document`, `edit-document`, `update-document` 및
162
- 원시 파일 시스템 쓰기 대신 `share-local-file-document`. 그 지역이 없으면
163
- 브리지, 설치된 스킬은 여전히 에이전트에게 저장소 편집 계약을 제공합니다
164
- Markdown/MDX 편집은 안전합니다.
149
+ CLI는 일반 데이터베이스 기반 Content를 시작하고 폴더 소스를 등록한 뒤 모드
150
+ 환경 변수를 설정하지 않고 연결 화면을 엽니다.
165
151
 
166
152
  ## 개발자용
167
153