@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.
Files changed (206) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +6 -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/local-artifacts/index.ts +65 -0
  31. package/corpus/templates/assets/app/components/library/GenerationPresetsPanel.tsx +325 -0
  32. package/corpus/templates/assets/app/hooks/use-navigation-state.ts +12 -0
  33. package/corpus/templates/assets/app/i18n/zh-TW.ts +21 -0
  34. package/corpus/templates/assets/app/i18n-data.ts +215 -0
  35. package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +19 -479
  36. package/corpus/templates/assets/app/routes/brand-kits.$id_.presets.$presetId.tsx +1 -1
  37. package/corpus/templates/assets/app/routes/brand-kits.$id_.settings.tsx +446 -0
  38. package/corpus/templates/clips/app/components/editor/editor-layout.tsx +12 -2
  39. package/corpus/templates/clips/app/components/player/settings-panel.tsx +30 -12
  40. package/corpus/templates/clips/app/components/player/video-player.tsx +5 -1
  41. package/corpus/templates/clips/app/components/recorder/microphone-visualizer.tsx +22 -3
  42. package/corpus/templates/clips/app/i18n/ar-SA.ts +3 -2
  43. package/corpus/templates/clips/app/i18n/de-DE.ts +4 -2
  44. package/corpus/templates/clips/app/i18n/en-US.ts +3 -2
  45. package/corpus/templates/clips/app/i18n/es-ES.ts +4 -2
  46. package/corpus/templates/clips/app/i18n/fr-FR.ts +3 -2
  47. package/corpus/templates/clips/app/i18n/hi-IN.ts +3 -2
  48. package/corpus/templates/clips/app/i18n/ja-JP.ts +4 -1
  49. package/corpus/templates/clips/app/i18n/ko-KR.ts +3 -2
  50. package/corpus/templates/clips/app/i18n/pt-BR.ts +4 -2
  51. package/corpus/templates/clips/app/i18n/zh-CN.ts +3 -2
  52. package/corpus/templates/clips/app/i18n/zh-TW.ts +3 -2
  53. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +27 -1
  54. package/corpus/templates/clips/server/lib/share-password.ts +6 -3
  55. package/corpus/templates/content/.agents/skills/content/SKILL.md +26 -39
  56. package/corpus/templates/content/AGENTS.md +25 -30
  57. package/corpus/templates/content/actions/_builder-docs-client.ts +23 -0
  58. package/corpus/templates/content/actions/_content-database-source-adapters.ts +21 -3
  59. package/corpus/templates/content/actions/_content-files.ts +338 -0
  60. package/corpus/templates/content/actions/_content-space-access.ts +135 -0
  61. package/corpus/templates/content/actions/_content-spaces.ts +640 -0
  62. package/corpus/templates/content/actions/_database-source-utils.ts +90 -7
  63. package/corpus/templates/content/actions/_database-utils.ts +7 -1
  64. package/corpus/templates/content/actions/_local-file-documents.ts +0 -9
  65. package/corpus/templates/content/actions/_local-folder-source.ts +53 -0
  66. package/corpus/templates/content/actions/_property-utils.ts +9 -4
  67. package/corpus/templates/content/actions/add-database-item.ts +108 -65
  68. package/corpus/templates/content/actions/backfill-content-files.ts +22 -0
  69. package/corpus/templates/content/actions/connect-local-folder-source.ts +221 -0
  70. package/corpus/templates/content/actions/create-content-database.ts +129 -3
  71. package/corpus/templates/content/actions/create-document.ts +65 -55
  72. package/corpus/templates/content/actions/create-inline-content-database.ts +6 -1
  73. package/corpus/templates/content/actions/delete-content-database.ts +3 -0
  74. package/corpus/templates/content/actions/delete-document.ts +7 -11
  75. package/corpus/templates/content/actions/disconnect-local-folder-source.ts +175 -0
  76. package/corpus/templates/content/actions/duplicate-database-item.ts +10 -0
  77. package/corpus/templates/content/actions/duplicate-database-items.ts +13 -0
  78. package/corpus/templates/content/actions/edit-document.ts +2 -28
  79. package/corpus/templates/content/actions/ensure-content-spaces.ts +26 -0
  80. package/corpus/templates/content/actions/export-content-source.ts +47 -9
  81. package/corpus/templates/content/actions/get-document.ts +0 -14
  82. package/corpus/templates/content/actions/import-content-source.ts +43 -3
  83. package/corpus/templates/content/actions/list-content-spaces.ts +103 -0
  84. package/corpus/templates/content/actions/list-documents.ts +12 -9
  85. package/corpus/templates/content/actions/move-document.ts +3 -14
  86. package/corpus/templates/content/actions/pull-document.ts +0 -23
  87. package/corpus/templates/content/actions/remove-local-file-source.ts +50 -29
  88. package/corpus/templates/content/actions/resolve-local-folder-conflict.ts +442 -0
  89. package/corpus/templates/content/actions/reveal-local-source-file.ts +6 -17
  90. package/corpus/templates/content/actions/search-documents.ts +0 -34
  91. package/corpus/templates/content/actions/share-local-file-document.ts +25 -1
  92. package/corpus/templates/content/actions/submit-content-database-form.ts +12 -0
  93. package/corpus/templates/content/actions/sync-local-folder-source.ts +731 -0
  94. package/corpus/templates/content/actions/sync-manifest-local-folder-source.ts +123 -0
  95. package/corpus/templates/content/actions/update-content-database-view.ts +10 -1
  96. package/corpus/templates/content/actions/update-document.ts +0 -15
  97. package/corpus/templates/content/actions/view-screen.ts +2 -50
  98. package/corpus/templates/content/app/components/editor/SlashCommandMenu.tsx +76 -62
  99. package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +70 -22
  100. package/corpus/templates/content/app/components/editor/database/grouping.ts +2 -1
  101. package/corpus/templates/content/app/components/editor/database/settings.tsx +23 -20
  102. package/corpus/templates/content/app/components/editor/database/shared.tsx +2 -0
  103. package/corpus/templates/content/app/components/editor/database/sidebar.tsx +330 -0
  104. package/corpus/templates/content/app/components/editor/database/types.ts +1 -0
  105. package/corpus/templates/content/app/components/editor/database/view-config.ts +3 -1
  106. package/corpus/templates/content/app/components/layout/Layout.tsx +25 -1
  107. package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +209 -113
  108. package/corpus/templates/content/app/components/sidebar/select-content-space.ts +31 -0
  109. package/corpus/templates/content/app/hooks/use-content-database.ts +16 -0
  110. package/corpus/templates/content/app/hooks/use-content-spaces.ts +39 -0
  111. package/corpus/templates/content/app/i18n/zh-TW.ts +11 -0
  112. package/corpus/templates/content/app/i18n-data.ts +75 -0
  113. package/corpus/templates/content/app/routes/_app.local-files.tsx +174 -65
  114. package/corpus/templates/content/changelog/2026-07-16-content-callouts-can-now-be-reviewed-and-published-to-builder.md +6 -0
  115. package/corpus/templates/content/changelog/2026-07-16-heading-5-and-heading-6-are-available-from-the-editor-slash-.md +6 -0
  116. package/corpus/templates/content/changelog/2026-07-16-organize-every-workspace-through-a-customizable-files-databa.md +6 -0
  117. package/corpus/templates/content/parity/matrix.md +2 -1
  118. package/corpus/templates/content/parity/matrix.ts +37 -1
  119. package/corpus/templates/content/scripts/dev-database.mjs +7 -5
  120. package/corpus/templates/content/server/db/schema.ts +113 -40
  121. package/corpus/templates/content/server/lib/document-context.ts +15 -1
  122. package/corpus/templates/content/server/lib/notion-sync.ts +6 -0
  123. package/corpus/templates/content/server/plugins/db.ts +153 -0
  124. package/corpus/templates/content/shared/api.ts +17 -3
  125. package/corpus/templates/content/shared/builder-mdx.ts +163 -16
  126. package/corpus/templates/design/.agents/skills/design-templates/SKILL.md +59 -0
  127. package/corpus/templates/design/AGENTS.md +6 -1
  128. package/corpus/templates/design/actions/create-design-from-template.ts +19 -7
  129. package/corpus/templates/design/actions/list-design-templates.ts +69 -21
  130. package/corpus/templates/design/actions/navigate.ts +2 -2
  131. package/corpus/templates/design/actions/view-screen.ts +15 -2
  132. package/corpus/templates/design/agent-native.app-skill.json +5 -0
  133. package/corpus/templates/design/app/components/editor/PromptDialog.tsx +281 -56
  134. package/corpus/templates/design/app/components/templates/TemplatePreview.tsx +14 -2
  135. package/corpus/templates/design/app/hooks/use-navigation-state.ts +3 -2
  136. package/corpus/templates/design/app/i18n/zh-TW.ts +3 -3
  137. package/corpus/templates/design/app/i18n-data.ts +21 -2
  138. package/corpus/templates/design/app/i18n-template-feature.ts +218 -10
  139. package/corpus/templates/design/app/pages/Index.tsx +195 -24
  140. package/corpus/templates/design/app/pages/Templates.tsx +144 -55
  141. package/corpus/templates/design/app/pages/design-editor/generation-prompt-directives.ts +12 -1
  142. package/corpus/templates/design/changelog/2026-07-14-templates-now-appear-in-the-new-design-picker-with-previews-.md +6 -0
  143. package/corpus/templates/design/changelog/2026-07-15-templates-now-open-immediately-after-copying-even-while-the-.md +6 -0
  144. package/corpus/templates/design/server/plugins/agent-chat.ts +1 -1
  145. package/corpus/templates/mail/AGENTS.md +23 -18
  146. package/corpus/templates/mail/actions/bulk-archive.ts +32 -28
  147. package/corpus/templates/mail/actions/mark-read.ts +131 -20
  148. package/corpus/templates/mail/actions/mark-thread-read.ts +1 -1
  149. package/corpus/templates/mail/actions/move-email.ts +30 -24
  150. package/corpus/templates/mail/actions/send-email.ts +73 -68
  151. package/corpus/templates/mail/changelog/2026-07-15-unread-inbox-cleanup-now-completes-reliably.md +6 -0
  152. package/corpus/templates/mail/server/handlers/emails.ts +218 -209
  153. package/corpus/templates/mail/server/lib/bulk-mark-read.ts +30 -0
  154. package/corpus/templates/mail/server/lib/email-state.ts +198 -113
  155. package/corpus/templates/mail/server/lib/google-auth.ts +218 -25
  156. package/corpus/templates/mail/server/lib/jobs.ts +69 -74
  157. package/corpus/templates/mail/server/lib/local-email-store.ts +265 -0
  158. package/corpus/templates/mail/server/plugins/agent-chat.ts +6 -0
  159. package/dist/cli/content-local.d.ts +1 -0
  160. package/dist/cli/content-local.d.ts.map +1 -1
  161. package/dist/cli/content-local.js +75 -17
  162. package/dist/cli/content-local.js.map +1 -1
  163. package/dist/cli/index.js +2 -2
  164. package/dist/cli/index.js.map +1 -1
  165. package/dist/cli/skills-content/content-skill.d.ts +1 -1
  166. package/dist/cli/skills-content/content-skill.d.ts.map +1 -1
  167. package/dist/cli/skills-content/content-skill.js +36 -25
  168. package/dist/cli/skills-content/content-skill.js.map +1 -1
  169. package/dist/cli/skills.d.ts.map +1 -1
  170. package/dist/cli/skills.js +47 -14
  171. package/dist/cli/skills.js.map +1 -1
  172. package/dist/collab/awareness.d.ts +2 -2
  173. package/dist/collab/awareness.d.ts.map +1 -1
  174. package/dist/collab/struct-routes.d.ts +1 -1
  175. package/dist/local-artifacts/index.d.ts +10 -0
  176. package/dist/local-artifacts/index.d.ts.map +1 -1
  177. package/dist/local-artifacts/index.js +39 -0
  178. package/dist/local-artifacts/index.js.map +1 -1
  179. package/dist/notifications/routes.d.ts +1 -1
  180. package/dist/observability/routes.d.ts +5 -5
  181. package/dist/resources/handlers.d.ts +1 -1
  182. package/dist/secrets/routes.d.ts +9 -9
  183. package/docs/content/local-file-mode.mdx +99 -489
  184. package/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
  185. package/docs/content/locales/ar-SA/template-content.mdx +10 -24
  186. package/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
  187. package/docs/content/locales/de-DE/template-content.mdx +10 -24
  188. package/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
  189. package/docs/content/locales/es-ES/template-content.mdx +10 -24
  190. package/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
  191. package/docs/content/locales/fr-FR/template-content.mdx +10 -24
  192. package/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
  193. package/docs/content/locales/hi-IN/template-content.mdx +10 -24
  194. package/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
  195. package/docs/content/locales/ja-JP/template-content.mdx +10 -24
  196. package/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
  197. package/docs/content/locales/ko-KR/template-content.mdx +10 -24
  198. package/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
  199. package/docs/content/locales/pt-BR/template-content.mdx +10 -24
  200. package/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
  201. package/docs/content/locales/zh-CN/template-content.mdx +9 -24
  202. package/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
  203. package/docs/content/locales/zh-TW/template-content.mdx +9 -24
  204. package/docs/content/template-content.mdx +26 -42
  205. package/package.json +1 -1
  206. package/corpus/templates/assets/app/components/library/EditLibraryDialog.tsx +0 -126
@@ -1,523 +1,68 @@
1
1
  ---
2
- title: "وضع الملف المحلي"
3
- description: "قم بتشغيل تطبيقات الوكيل الأصلية باستخدام ملفات Markdown وMDX المحلية وملفات الريبو الأخرى كمصدر للحقيقة - بما في ذلك مستندات MDX ذات النمط Obsidian مع المكونات المخصصة."
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:
20
- تظهر مستنداتك كملفات، بينما يضيف التطبيق محررًا مرئيًا، الوكيل actions،
21
- نسخ قابلة للمشاركة، ومكونات MDX تفاعلية غنية.
18
+ ## ربط مجلد
22
19
 
23
- استخدم وضع الملف المحلي عندما تريد سير عمل الريبو الأول:
20
+ اختر مجلدًا عبر المتصفح أو Agent Native Desktop، ثم اربطه بمساحة موجودة أو
21
+ أنشئ له مساحة خاصة. لا يخزن SQL سوى معرف الاتصال المعتم، والمسارات النسبية،
22
+ والبصمات، وبيانات المصدر الوصفية؛ ولا يخزن المسار المطلق أو مقبض المتصفح أو نص
23
+ الملف الخام.
24
24
 
25
- - مستودع المستندات باستخدام `docs/*.mdx`
26
- - مدونة تحتوي على `blog/*.mdx`
27
- - موارد مثل تحديد المواقع أو المراسلة أو ملاحظات الفريق في `resources/*.md`
28
- - قاعدة معرفية شخصية على طراز Obsidian مع محرر MDX الأكثر ثراءً
29
- - المستندات التي تحتاج إلى كتل MDX تفاعلية مخصصة تم إنشاؤها من كود React المحلي
30
- - عناصر التطبيق التي ينبغي أن يسهل على وكلاء البرمجة فحصها وتصحيحها
25
+ السياسات هي `database_primary` و`source_primary` و`reviewed_bidirectional`.
26
+ تحول المزامنة الملفات إلى صفحات SQL عادية. إذا تغير الملف وصفحته معًا، يُنشئ
27
+ Content تغييرًا للمراجعة بدل الكتابة فوق أحدهما. يحافظ قطع الاتصال على الصفحات
28
+ والملفات المحلية.
31
29
 
32
- استخدم وضع قاعدة البيانات عندما تريد تجربة التطبيق التعاوني المستضاف:
33
- مشاركة متعددة المستخدمين، والأذونات المدعومة SQL، والتعليقات، وسجل الإصدارات، و
34
- استضافة الإنتاج دون الوصول إلى نظام الملفات المحلي.
35
-
36
- ## النموذج العقلي
37
-
38
- هناك وضعان لمصدر الحقيقة:
39
-
40
- | الوضع | مصدر الحقيقة | الأفضل لـ |
41
- | ------------------ | ----------------------------------------------- | ---------------------------------------------------------------------------------- |
42
- | وضع قاعدة البيانات | صفوف SQL حتى Drizzle | التطبيقات المستضافة والتعاون والمشاركة والتعليقات وسجل الإصدارات |
43
- | وضع الملف المحلي | ملفات الريبو المعلنة بواسطة `agent-native.json` | سير العمل المحلي/المطور، ومراجعة Git، وتعديلات وكيل الترميز، والمحتوى الأصلي للملف |
44
-
45
- يجب أن يظل UI والوكيل actions بنفس الشكل في كلا الوضعين. المحتوى
46
- لا يزال المحرر يقوم بتحرير المستندات؛ والفرق هو ما إذا كانت هذه المستندات قد تم حلها
47
- إلى صفوف SQL أو الملفات المحلية.
48
-
49
- <Diagram id="doc-block-1wre3w3" title={"نفس الأفعال، مصدران للحقيقة"} summary={"تستدعي واجهة المستخدم والوكيل إجراءات متطابقة في كلا الوضعين. تقرر طبقة الإجراء ما إذا كان كل استدعاء سيحل إلى صفوف SQL أو ملفات الريبو."}>
50
-
51
- ```html
52
- <div class="diagram-mode">
53
- <div class="diagram-col entry">
54
- <div class="diagram-node">واجهة المحتوى</div>
55
- <div class="diagram-node">
56
- الوكيل + الإجراءات<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-4tvbz2"
114
- title={"repo لـ Content workspace"}
115
- entries={[
116
- {
117
- path: "agent-native.json",
118
- note: "يعلن أي folders هي content roots وأنواعها",
119
- },
120
- {
121
- path: "docs/",
122
- note: "content root: يظهر في الشريط الجانبي كصفحات",
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: "ليس content root: مكتبة مكونات preview يمكن لـ MDX استيرادها",
147
- },
148
- {
149
- path: "components/FrameworkTabs.tsx",
150
- },
151
- {
152
- path: "components/Callout.tsx",
153
- },
154
- {
155
- path: "extensions/",
156
- note: "ليس content root: مكتبة extensions محلية (widgets داخل sandbox)",
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
- المهارة:
30
+ ## البدء من مستودع
184
31
 
185
32
  ```bash
186
- npx @agent-native/core@latest skills add content --mode local-files --scope project
33
+ npx @agent-native/core@latest content .
187
34
  ```
188
35
 
189
- يؤدي هذا إلى نسخ مهارة `content` إلى مجلدات مهارات وكيل الريبو والكتابة
190
- أو يقوم بتحديث `agent-native.json` باستخدام الإعدادات الافتراضية للمحتوى:
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
- يعود إلى تعديلات الريبو المباشرة الآمنة مع الحفاظ على المادة الأمامية، والواردات، JSX،
203
- وMDX غير معروف.
204
-
205
- ## التكوين
36
+ يشغل الأمر تطبيق Content العادي المدعوم بقاعدة البيانات، ويسجل المجلد كمصدر،
37
+ ويفتح شاشة الاتصال. ولا يضبط متغير بيئة خاصًا بالوضع.
206
38
 
207
- أضف `agent-native.json` إلى الريبو أو جذر مساحة العمل:
39
+ ## الإعداد
208
40
 
209
41
  ```json
210
42
  {
211
43
  "version": 1,
212
44
  "apps": {
213
45
  "content": {
214
- "mode": "local-files",
215
46
  "roots": [
216
47
  {
217
48
  "name": "Docs",
218
49
  "path": "docs",
219
50
  "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"]
51
+ "extensions": [".md", ".mdx"],
52
+ "source": {
53
+ "type": "local-folder",
54
+ "connectionId": "local-folder:<opaque-id>",
55
+ "truthPolicy": "source_primary"
56
+ }
233
57
  }
234
58
  ],
235
59
  "components": "components",
236
- "extensions": "extensions",
237
- "hide": ["**/_*.md", "**/_*.mdx"]
60
+ "extensions": "extensions"
238
61
  }
239
62
  }
240
63
  }
241
64
  ```
242
65
 
243
- يمكنك أيضًا تمكين الملفات المحلية باستخدام `AGENT_NATIVE_MODE=local-files` أو
244
- `AGENT_NATIVE_DATA_MODE=local-files`; the manifest is preferred because it
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
- يتم التصدير من ملفات `.tsx` و`.jsx` و`.ts` و`.js` ضمن `components/`. تلك
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 Desktop حتى يتمكن الجسر المحلي الموثوق به من
361
- قم بتسجيل مساحة العمل المختارة باستخدام خادم تطوير المحتوى المحلي. في هذا الوضع،
362
- عمليات التحرير على ملفات المكونات الموجودة، إعادة التحميل السريع من خلال Vite، وإضافة أو
363
- تؤدي إزالة ملفات المكونات إلى إعادة تحميل سجل المكونات وقائمة الشرطة المائلة.
364
-
365
- يمكن للوكلاء أيضًا العمل مع ملفات المكونات المسجلة. استخدم
366
- `list-local-component-files` للعثور على معرف مساحة العمل المسجلة، ثم
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
- معرف المستند، والعنوان، وبيانات تعريف المصدر، وما إذا كان المحتوى في وضع الملف المحلي.
436
-
437
- يقوم التطبيق بمعاينة الإضافات المحلية ولكن يتم تحريرها كملفات. الامتدادات
438
- هذه الملفات بشارة ملف محلي، ويشير عارض الصفحة الكاملة إلى
439
- ملف الإدخال. الامتداد المدعوم SQL actions مثل التحديث والحذف والمشاركة و
440
- لا ينطبق التاريخ؛ استخدم المحرر الخاص بك، Codex، رمز Claude، أو سجل Git لـ
441
- تغييرات المصدر.
442
-
443
- بالنسبة للإصدار 1، تكون الامتدادات المحلية متحفظة عمدًا:
444
-
445
- - يمكنهم استخدام `extensionData` لحالة وقت التشغيل الصغيرة الخاصة بهم
446
- - يمكنهم الاتصال فقط بـ `appAction` المدرجة في `extension.json`
447
- - تم تعطيل مساعدات SQL الأولية و`extensionFetch` الخارجية
448
- - تم الإعلان عن أهداف الفتحات في `extension.json`، ولم يتم تثبيتها من خلال SQL
449
-
450
- يمنح هذا مساحات العمل المحلية سطحًا إضافيًا شبيهًا بسطح Obsidian دون السماح
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
- - استخدم طلبات السحب للمراجعة
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.
66
+ للترحيل، احذف `mode: "local-files"` و`AGENT_NATIVE_MODE=local-files واحتفظ
67
+ بالجذور، وأضف `source`. تحافظ معرفات frontmatter على هوية الصفحة عند إعادة
68
+ التسمية أو النقل. وتستمر المكونات والامتدادات المحلية عبر الجسر المحلي الموثوق.
@@ -93,9 +93,8 @@ description: "Obsidian مفتوح المصدر لـ MDX: قم بتحرير مل
93
93
  - **تنظيم الصفحات في شجرة** — تداخل بشكل لا نهائي، اسحب لإعادة ترتيب الصفحات المفضلة التي تستخدمها كثيرًا.
94
94
  - **البحث في كل شيء** من خلال البحث في النص الكامل عبر العناوين والمحتوى.
95
95
  - **تحرير ملفات Markdown/MDX المحلية مثل Obsidian.** استخدم طريقة العرض `/local-files`
96
- لتصدير مساحة العمل الخاصة بك إلى الملفات، قم بتحريرها باستخدام أدواتك الخاصة، ثم قم بالمعاينة
97
- التغييرات، ثم قم باستيرادها مرة أخرى. في وضع الملف المحلي، تتم كتابة المحتوى مباشرة إلى
98
- الملف `.md` أو `.mdx` المحدد.
96
+ لربط مجلد بـ Files وتحريره بأدواتك ومزامنة التغييرات ومراجعة التعارضات
97
+ داخل تطبيق SQL.
99
98
  - **إنشاء كتل مخصصة تفاعلية غنية.** تسجيل مكونات React المحلية،
100
99
  أدخلها كـ MDX، واسمح للوكيل بإنشاء أو تحديث ملفات المكونات لـ
101
100
  مستنداتك.
@@ -138,32 +137,19 @@ description: "Obsidian مفتوح المصدر لـ MDX: قم بتحرير مل
138
137
  التعليقات والأذونات والتعاون المباشر؛ المجلد المحلي صريح
139
138
  سطح المزامنة.
140
139
 
141
- يمكن أيضًا تشغيل المحتوى في **وضع الملف المحلي**، حيث تكون الملفات هي مصدر
142
- الحقيقة بدلاً من مستندات SQL. أضف `agent-native.json` إلى الريبو، اضبط
143
- `mode: "local-files"`، وقم بتكوين الجذور مثل `docs/`، `blog/`،
144
- `content/` و`resources/`. يقوم محرر المحتوى القياسي بعد ذلك بملء
145
- الشريط الجانبي الأيسر من ملفات `.md`/`.mdx` المحلية ويكتب التعديلات مرة أخرى إلى
146
- الملف المحدد من خلال المستند العادي actions. استخدم هذا لمستندات الريبو الأولى،
147
- المدونات أو مكتبات الموارد أو المحتوى الشخصي بنمط Obsidian الذي يعمل بنظام MDX
148
- المكونات؛ قم بالتبديل مرة أخرى إلى وضع قاعدة البيانات عندما تريد التعاون المستضاف و
149
- المشاركة المدعومة بـ SQL. راجع [Local File Mode](/docs/local-file-mode) لمعرفة
150
- تخطيط الريبو المستقل، التكوين، مكونات MDX المخصصة، المحلية
151
- أدوات `extensions/` ودليل سلامة الإنتاج.
140
+ تستخدم المجلدات المحلية الآن نموذج SQL نفسه الذي تستخدمه كل الصفحات. تنتمي كل
141
+ صفحة إلى مساحة وقاعدة Files الخاصة بها؛ والمجلد هو محول مصدر لهذه القاعدة. راجع
142
+ [مصادر المجلدات المحلية](/docs/local-file-mode) للسياسات والتعارضات ومكونات MDX
143
+ والترحيل من الوضع القديم.
152
144
 
153
- لتثبيت مهارة ملفات المحتوى المحلية في الريبو الحالي:
145
+ لفتح Content في مستودع موجود:
154
146
 
155
147
  ```bash
156
- npx @agent-native/core@latest skills add content --mode local-files --scope project
148
+ npx @agent-native/core@latest content .
157
149
  ```
158
150
 
159
- يقوم المثبت بنسخ مهارة `content` لوكيل الترميز الخاص بك ويقوم بكتابة أو
160
- تحديثات `agent-native.json` بجذور المحتوى لـ `docs/`، و`blog/`، و`content/`،
161
- و `resources/`. عندما يكون تطبيق المحتوى المحلي، أو Agent Native Desktop، أو موثوقًا به
162
- الجسر المحلي قيد التشغيل، ويجب على الوكلاء استخدام المحتوى actions مثل
163
- `list-documents`، و`get-document`، و`edit-document`، و`update-document`، و
164
- يكتب `share-local-file-document` بدلاً من نظام الملفات الخام. بدون ذلك المحلي
165
- الجسر، لا تزال المهارة المثبتة تمنح الوكيل عقد تحرير الريبو لـ
166
- تعديلات Markdown/MDX الآمنة.
151
+ يشغل CLI تطبيق Content العادي المدعوم بقاعدة البيانات، ويسجل مصدر المجلد، ويفتح
152
+ الاتصال من دون ضبط متغير بيئة خاص بالوضع.
167
153
 
168
154
  ## للمطورين
169
155