@agent-native/core 0.102.2 → 0.103.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +12 -0
- package/corpus/core/docs/content/local-file-mode.mdx +99 -489
- package/corpus/core/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
- package/corpus/core/docs/content/locales/ar-SA/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
- package/corpus/core/docs/content/locales/de-DE/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
- package/corpus/core/docs/content/locales/es-ES/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
- package/corpus/core/docs/content/locales/fr-FR/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
- package/corpus/core/docs/content/locales/hi-IN/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
- package/corpus/core/docs/content/locales/ja-JP/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
- package/corpus/core/docs/content/locales/ko-KR/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
- package/corpus/core/docs/content/locales/pt-BR/template-content.mdx +10 -24
- package/corpus/core/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
- package/corpus/core/docs/content/locales/zh-CN/template-content.mdx +9 -24
- package/corpus/core/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
- package/corpus/core/docs/content/locales/zh-TW/template-content.mdx +9 -24
- package/corpus/core/docs/content/template-content.mdx +26 -42
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/cli/content-local.ts +86 -18
- package/corpus/core/src/cli/index.ts +2 -2
- package/corpus/core/src/cli/skills-content/content-skill.ts +36 -25
- package/corpus/core/src/cli/skills.ts +47 -13
- package/corpus/core/src/local-artifacts/index.ts +65 -0
- package/corpus/core/src/vite/client.ts +2 -0
- package/corpus/templates/assets/app/components/library/GenerationPresetsPanel.tsx +325 -0
- package/corpus/templates/assets/app/hooks/use-navigation-state.ts +12 -0
- package/corpus/templates/assets/app/i18n/zh-TW.ts +21 -0
- package/corpus/templates/assets/app/i18n-data.ts +215 -0
- package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +19 -479
- package/corpus/templates/assets/app/routes/brand-kits.$id_.presets.$presetId.tsx +1 -1
- package/corpus/templates/assets/app/routes/brand-kits.$id_.settings.tsx +446 -0
- package/corpus/templates/clips/app/components/editor/editor-layout.tsx +12 -2
- package/corpus/templates/clips/app/components/player/settings-panel.tsx +30 -12
- package/corpus/templates/clips/app/components/player/video-player.tsx +5 -1
- package/corpus/templates/clips/app/components/recorder/microphone-visualizer.tsx +22 -3
- package/corpus/templates/clips/app/i18n/ar-SA.ts +3 -2
- package/corpus/templates/clips/app/i18n/de-DE.ts +4 -2
- package/corpus/templates/clips/app/i18n/en-US.ts +3 -2
- package/corpus/templates/clips/app/i18n/es-ES.ts +4 -2
- package/corpus/templates/clips/app/i18n/fr-FR.ts +3 -2
- package/corpus/templates/clips/app/i18n/hi-IN.ts +3 -2
- package/corpus/templates/clips/app/i18n/ja-JP.ts +4 -1
- package/corpus/templates/clips/app/i18n/ko-KR.ts +3 -2
- package/corpus/templates/clips/app/i18n/pt-BR.ts +4 -2
- package/corpus/templates/clips/app/i18n/zh-CN.ts +3 -2
- package/corpus/templates/clips/app/i18n/zh-TW.ts +3 -2
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +27 -1
- package/corpus/templates/clips/server/lib/share-password.ts +6 -3
- package/corpus/templates/content/.agents/skills/content/SKILL.md +26 -39
- package/corpus/templates/content/AGENTS.md +25 -30
- package/corpus/templates/content/actions/_builder-docs-client.ts +23 -0
- package/corpus/templates/content/actions/_content-database-source-adapters.ts +21 -3
- package/corpus/templates/content/actions/_content-files.ts +338 -0
- package/corpus/templates/content/actions/_content-space-access.ts +135 -0
- package/corpus/templates/content/actions/_content-spaces.ts +640 -0
- package/corpus/templates/content/actions/_database-source-utils.ts +90 -7
- package/corpus/templates/content/actions/_database-utils.ts +7 -1
- package/corpus/templates/content/actions/_local-file-documents.ts +0 -9
- package/corpus/templates/content/actions/_local-folder-source.ts +53 -0
- package/corpus/templates/content/actions/_property-utils.ts +9 -4
- package/corpus/templates/content/actions/add-database-item.ts +108 -65
- package/corpus/templates/content/actions/backfill-content-files.ts +22 -0
- package/corpus/templates/content/actions/connect-local-folder-source.ts +221 -0
- package/corpus/templates/content/actions/create-content-database.ts +129 -3
- package/corpus/templates/content/actions/create-document.ts +65 -55
- package/corpus/templates/content/actions/create-inline-content-database.ts +6 -1
- package/corpus/templates/content/actions/delete-content-database.ts +3 -0
- package/corpus/templates/content/actions/delete-document.ts +7 -11
- package/corpus/templates/content/actions/disconnect-local-folder-source.ts +175 -0
- package/corpus/templates/content/actions/duplicate-database-item.ts +10 -0
- package/corpus/templates/content/actions/duplicate-database-items.ts +13 -0
- package/corpus/templates/content/actions/edit-document.ts +2 -28
- package/corpus/templates/content/actions/ensure-content-spaces.ts +26 -0
- package/corpus/templates/content/actions/export-content-source.ts +47 -9
- package/corpus/templates/content/actions/get-document.ts +0 -14
- package/corpus/templates/content/actions/import-content-source.ts +43 -3
- package/corpus/templates/content/actions/list-content-spaces.ts +103 -0
- package/corpus/templates/content/actions/list-documents.ts +12 -9
- package/corpus/templates/content/actions/move-document.ts +3 -14
- package/corpus/templates/content/actions/pull-document.ts +0 -23
- package/corpus/templates/content/actions/remove-local-file-source.ts +50 -29
- package/corpus/templates/content/actions/resolve-local-folder-conflict.ts +442 -0
- package/corpus/templates/content/actions/reveal-local-source-file.ts +6 -17
- package/corpus/templates/content/actions/search-documents.ts +0 -34
- package/corpus/templates/content/actions/share-local-file-document.ts +25 -1
- package/corpus/templates/content/actions/submit-content-database-form.ts +12 -0
- package/corpus/templates/content/actions/sync-local-folder-source.ts +731 -0
- package/corpus/templates/content/actions/sync-manifest-local-folder-source.ts +123 -0
- package/corpus/templates/content/actions/update-content-database-view.ts +10 -1
- package/corpus/templates/content/actions/update-document.ts +0 -15
- package/corpus/templates/content/actions/view-screen.ts +2 -50
- package/corpus/templates/content/app/components/editor/SlashCommandMenu.tsx +76 -62
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +70 -22
- package/corpus/templates/content/app/components/editor/database/grouping.ts +2 -1
- package/corpus/templates/content/app/components/editor/database/settings.tsx +23 -20
- package/corpus/templates/content/app/components/editor/database/shared.tsx +2 -0
- package/corpus/templates/content/app/components/editor/database/sidebar.tsx +330 -0
- package/corpus/templates/content/app/components/editor/database/types.ts +1 -0
- package/corpus/templates/content/app/components/editor/database/view-config.ts +3 -1
- package/corpus/templates/content/app/components/layout/Layout.tsx +25 -1
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +209 -113
- package/corpus/templates/content/app/components/sidebar/select-content-space.ts +31 -0
- package/corpus/templates/content/app/hooks/use-content-database.ts +16 -0
- package/corpus/templates/content/app/hooks/use-content-spaces.ts +39 -0
- package/corpus/templates/content/app/i18n/zh-TW.ts +11 -0
- package/corpus/templates/content/app/i18n-data.ts +75 -0
- package/corpus/templates/content/app/routes/_app.local-files.tsx +174 -65
- package/corpus/templates/content/changelog/2026-07-16-content-callouts-can-now-be-reviewed-and-published-to-builder.md +6 -0
- package/corpus/templates/content/changelog/2026-07-16-heading-5-and-heading-6-are-available-from-the-editor-slash-.md +6 -0
- package/corpus/templates/content/changelog/2026-07-16-organize-every-workspace-through-a-customizable-files-databa.md +6 -0
- package/corpus/templates/content/parity/matrix.md +2 -1
- package/corpus/templates/content/parity/matrix.ts +37 -1
- package/corpus/templates/content/scripts/dev-database.mjs +7 -5
- package/corpus/templates/content/server/db/schema.ts +113 -40
- package/corpus/templates/content/server/lib/document-context.ts +15 -1
- package/corpus/templates/content/server/lib/notion-sync.ts +6 -0
- package/corpus/templates/content/server/plugins/db.ts +153 -0
- package/corpus/templates/content/shared/api.ts +17 -3
- package/corpus/templates/content/shared/builder-mdx.ts +163 -16
- package/corpus/templates/design/.agents/skills/design-templates/SKILL.md +59 -0
- package/corpus/templates/design/AGENTS.md +6 -1
- package/corpus/templates/design/actions/create-design-from-template.ts +19 -7
- package/corpus/templates/design/actions/list-design-templates.ts +69 -21
- package/corpus/templates/design/actions/navigate.ts +2 -2
- package/corpus/templates/design/actions/view-screen.ts +15 -2
- package/corpus/templates/design/agent-native.app-skill.json +5 -0
- package/corpus/templates/design/app/components/editor/PromptDialog.tsx +281 -56
- package/corpus/templates/design/app/components/templates/TemplatePreview.tsx +14 -2
- package/corpus/templates/design/app/hooks/use-navigation-state.ts +3 -2
- package/corpus/templates/design/app/i18n/zh-TW.ts +3 -3
- package/corpus/templates/design/app/i18n-data.ts +21 -2
- package/corpus/templates/design/app/i18n-template-feature.ts +218 -10
- package/corpus/templates/design/app/pages/Index.tsx +195 -24
- package/corpus/templates/design/app/pages/Templates.tsx +144 -55
- package/corpus/templates/design/app/pages/design-editor/generation-prompt-directives.ts +12 -1
- package/corpus/templates/design/changelog/2026-07-14-templates-now-appear-in-the-new-design-picker-with-previews-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-15-templates-now-open-immediately-after-copying-even-while-the-.md +6 -0
- package/corpus/templates/design/server/plugins/agent-chat.ts +1 -1
- package/corpus/templates/mail/AGENTS.md +23 -18
- package/corpus/templates/mail/actions/bulk-archive.ts +32 -28
- package/corpus/templates/mail/actions/mark-read.ts +131 -20
- package/corpus/templates/mail/actions/mark-thread-read.ts +1 -1
- package/corpus/templates/mail/actions/move-email.ts +30 -24
- package/corpus/templates/mail/actions/send-email.ts +73 -68
- package/corpus/templates/mail/changelog/2026-07-15-unread-inbox-cleanup-now-completes-reliably.md +6 -0
- package/corpus/templates/mail/server/handlers/emails.ts +218 -209
- package/corpus/templates/mail/server/lib/bulk-mark-read.ts +30 -0
- package/corpus/templates/mail/server/lib/email-state.ts +198 -113
- package/corpus/templates/mail/server/lib/google-auth.ts +218 -25
- package/corpus/templates/mail/server/lib/jobs.ts +69 -74
- package/corpus/templates/mail/server/lib/local-email-store.ts +265 -0
- package/corpus/templates/mail/server/plugins/agent-chat.ts +6 -0
- package/dist/cli/content-local.d.ts +1 -0
- package/dist/cli/content-local.d.ts.map +1 -1
- package/dist/cli/content-local.js +75 -17
- package/dist/cli/content-local.js.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/skills-content/content-skill.d.ts +1 -1
- package/dist/cli/skills-content/content-skill.d.ts.map +1 -1
- package/dist/cli/skills-content/content-skill.js +36 -25
- package/dist/cli/skills-content/content-skill.js.map +1 -1
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +47 -14
- package/dist/cli/skills.js.map +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/local-artifacts/index.d.ts +10 -0
- package/dist/local-artifacts/index.d.ts.map +1 -1
- package/dist/local-artifacts/index.js +39 -0
- package/dist/local-artifacts/index.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +2 -0
- package/dist/vite/client.js.map +1 -1
- package/docs/content/local-file-mode.mdx +99 -489
- package/docs/content/locales/ar-SA/local-file-mode.mdx +35 -490
- package/docs/content/locales/ar-SA/template-content.mdx +10 -24
- package/docs/content/locales/de-DE/local-file-mode.mdx +37 -491
- package/docs/content/locales/de-DE/template-content.mdx +10 -24
- package/docs/content/locales/es-ES/local-file-mode.mdx +35 -493
- package/docs/content/locales/es-ES/template-content.mdx +10 -24
- package/docs/content/locales/fr-FR/local-file-mode.mdx +38 -491
- package/docs/content/locales/fr-FR/template-content.mdx +10 -24
- package/docs/content/locales/hi-IN/local-file-mode.mdx +33 -492
- package/docs/content/locales/hi-IN/template-content.mdx +10 -24
- package/docs/content/locales/ja-JP/local-file-mode.mdx +36 -492
- package/docs/content/locales/ja-JP/template-content.mdx +10 -24
- package/docs/content/locales/ko-KR/local-file-mode.mdx +35 -490
- package/docs/content/locales/ko-KR/template-content.mdx +10 -24
- package/docs/content/locales/pt-BR/local-file-mode.mdx +35 -493
- package/docs/content/locales/pt-BR/template-content.mdx +10 -24
- package/docs/content/locales/zh-CN/local-file-mode.mdx +31 -489
- package/docs/content/locales/zh-CN/template-content.mdx +9 -24
- package/docs/content/locales/zh-TW/local-file-mode.mdx +31 -489
- package/docs/content/locales/zh-TW/template-content.mdx +9 -24
- package/docs/content/template-content.mdx +26 -42
- package/package.json +1 -1
- package/corpus/templates/assets/app/components/library/EditLibraryDialog.tsx +0 -126
|
@@ -1,523 +1,68 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "مصادر المجلدات المحلية"
|
|
3
|
+
description: "اربط مجلدات Markdown وMDX بمساحات Content المدعومة بقاعدة البيانات."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# مصادر المجلدات المحلية
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
يستخدم Content الآن نموذج بيانات واحدًا: تُحفظ كل صفحة في SQL، وتنتمي إلى
|
|
9
|
+
**مساحة**، وتكون عنصرًا في قاعدة النظام **Files** لتلك المساحة. المجلد المحلي
|
|
10
|
+
مصدر متصل بـ Files، وليس وضعًا آخر للتطبيق. لم يعد هناك مفتاح
|
|
11
|
+
`AGENT_NATIVE_MODE`.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
محرر.
|
|
13
|
+
لكل مستخدم مساحة شخصية، ولكل مؤسسة متاحة مساحة مؤسسة، ويحدد كتالوج
|
|
14
|
+
**Workspaces** الشخصي المساحات التي تظهر. Files قاعدة Content عادية؛ يمكن
|
|
15
|
+
لخصائصها وعوامل التصفية والترتيب والتجميع وطرق العرض المحفوظة أن تعرض الشريط
|
|
16
|
+
الجانبي أيضًا.
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
تظهر مستنداتك كملفات، بينما يضيف التطبيق محررًا مرئيًا، الوكيل actions،
|
|
21
|
-
نسخ قابلة للمشاركة، ومكونات MDX تفاعلية غنية.
|
|
18
|
+
## ربط مجلد
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
اختر مجلدًا عبر المتصفح أو Agent Native Desktop، ثم اربطه بمساحة موجودة أو
|
|
21
|
+
أنشئ له مساحة خاصة. لا يخزن SQL سوى معرف الاتصال المعتم، والمسارات النسبية،
|
|
22
|
+
والبصمات، وبيانات المصدر الوصفية؛ ولا يخزن المسار المطلق أو مقبض المتصفح أو نص
|
|
23
|
+
الملف الخام.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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">→</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
|
|
33
|
+
npx @agent-native/core@latest content .
|
|
187
34
|
```
|
|
188
35
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
- `mode: "local-files"` على مستوى مساحة العمل
|
|
193
|
-
- `apps.content.mode: "local-files"`
|
|
194
|
-
- جذور المحتوى لـ `docs/` و`blog/` و`content/` و`resources/`
|
|
195
|
-
- `components/` لمكونات MDX المحلية
|
|
196
|
-
- `extensions/` لعناصر واجهة المستخدم المحلية
|
|
197
|
-
|
|
198
|
-
تخبر المهارة المثبتة وكلاء البرمجة باستخدام المحتوى actions
|
|
199
|
-
(`list-documents`, `get-document`, `edit-document`, `update-document`,
|
|
200
|
-
`share-local-file-document`، وملف المكون actions) عند تطبيق محتوى محلي
|
|
201
|
-
أو جسر سطح المكتب Agent Native يعرضهم. إذا لم يتم تشغيل أي جسر، فستتم المهارة
|
|
202
|
-
يعود إلى تعديلات الريبو المباشرة الآمنة مع الحفاظ على المادة الأمامية، والواردات، JSX،
|
|
203
|
-
وMDX غير معروف.
|
|
204
|
-
|
|
205
|
-
## التكوين
|
|
36
|
+
يشغل الأمر تطبيق Content العادي المدعوم بقاعدة البيانات، ويسجل المجلد كمصدر،
|
|
37
|
+
ويفتح شاشة الاتصال. ولا يضبط متغير بيئة خاصًا بالوضع.
|
|
206
38
|
|
|
207
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
244
|
-
`
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
## تنسيق ملف المحتوى
|
|
248
|
-
|
|
249
|
-
يقرأ المحتوى Markdown وMDX. يحتفظ Frontmatter بالبيانات التعريفية للصفحة، والنص الأساسي هو
|
|
250
|
-
المستند القابل للتحرير:
|
|
251
|
-
|
|
252
|
-
```mdx
|
|
253
|
-
---
|
|
254
|
-
title: "البدء"
|
|
255
|
-
icon: "sparkles"
|
|
256
|
-
isFavorite: true
|
|
257
|
-
updatedAt: "2026-06-12T20:00:00.000Z"
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
# البدء
|
|
261
|
-
|
|
262
|
-
Use <FrameworkTabs value="react" /> to show framework-specific code.
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
يأتي العنوان من المادة الأمامية `title` في حالة وجوده، وإلا من
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
|
148
|
+
npx @agent-native/core@latest content .
|
|
157
149
|
```
|
|
158
150
|
|
|
159
|
-
|
|
160
|
-
|
|
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
|
|