@agent-native/core 0.109.3 → 0.109.4
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 +2 -2
- package/corpus/core/CHANGELOG.md +8 -0
- package/corpus/core/docs/content/agent-native-toolkit.mdx +46 -13
- package/corpus/core/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
- package/corpus/core/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
- package/corpus/core/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
- package/corpus/core/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
- package/corpus/core/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
- package/corpus/core/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/toolkit-capability-packages.mdx +52 -0
- package/corpus/core/docs/content/toolkit-context-knowledge.mdx +46 -0
- package/corpus/core/docs/content/toolkit-editors-canvases.mdx +55 -0
- package/corpus/core/package.json +35 -34
- package/corpus/core/src/cli/create.ts +39 -3
- package/corpus/core/src/cli/package-lifecycle.ts +2 -0
- package/corpus/core/src/cli/skills-content/visual-plan-skill.ts +2 -0
- package/corpus/core/src/client/context-xray/ContextMeter.tsx +31 -111
- package/corpus/core/src/client/context-xray/ContextSegmentRow.tsx +8 -111
- package/corpus/core/src/client/context-xray/ContextTreemap.tsx +6 -111
- package/corpus/core/src/client/context-xray/ContextXRayPanel.tsx +31 -391
- package/corpus/core/src/client/context-xray/SegmentProvenancePopover.tsx +4 -52
- package/corpus/core/src/client/context-xray/format.ts +0 -33
- package/corpus/core/src/client/rich-markdown-editor/index.ts +42 -57
- package/corpus/core/src/client/rich-markdown-editor/uploadEditorImage.ts +2 -1
- package/corpus/core/src/client/visual-style-controls.tsx +1 -1088
- package/corpus/core/src/collab/agent-identity.ts +5 -22
- package/corpus/core/src/collab/client.ts +1 -53
- package/corpus/core/src/styles/rich-markdown-editor.css +1 -510
- package/corpus/core/src/testing.ts +1 -1
- package/corpus/core/src/vite/client.ts +3 -0
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +5 -3
- package/corpus/templates/content/app/components/editor/extensions/DragHandle.tsx +4 -4
- package/corpus/templates/content/package.json +25 -25
- package/corpus/templates/design/app/components/design/TweaksPanel.tsx +2 -1
- package/corpus/templates/design/package.json +1 -1
- package/corpus/templates/mail/package.json +9 -9
- package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +2 -0
- package/corpus/templates/plan/app/components/editor/PlanDocumentEditor.tsx +8 -8
- package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +6 -6
- package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +4 -7
- package/corpus/templates/plan/app/components/plan/PlanMarkdownEditor.tsx +6 -4
- package/corpus/templates/plan/app/components/plan/PlanVisualSurface.tsx +1 -1
- package/corpus/templates/plan/changelog/2026-07-18-visual-plans-now-open-on-wireframes-by-default-when-a-protot.md +6 -0
- package/corpus/templates/plan/package.json +3 -3
- package/corpus/templates/slides/app/components/editor/SlideStyleInspector.tsx +2 -2
- package/corpus/templates/slides/app/components/editor/TweaksPanel.tsx +2 -2
- package/corpus/templates/slides/package.json +13 -13
- package/dist/catalog.json +39 -1
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +32 -3
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/package-lifecycle.d.ts.map +1 -1
- package/dist/cli/package-lifecycle.js +2 -0
- package/dist/cli/package-lifecycle.js.map +1 -1
- package/dist/cli/skills-content/visual-plan-skill.d.ts +1 -1
- package/dist/cli/skills-content/visual-plan-skill.d.ts.map +1 -1
- package/dist/cli/skills-content/visual-plan-skill.js +2 -0
- package/dist/cli/skills-content/visual-plan-skill.js.map +1 -1
- package/dist/client/context-xray/ContextMeter.d.ts.map +1 -1
- package/dist/client/context-xray/ContextMeter.js +8 -23
- package/dist/client/context-xray/ContextMeter.js.map +1 -1
- package/dist/client/context-xray/ContextSegmentRow.d.ts.map +1 -1
- package/dist/client/context-xray/ContextSegmentRow.js +3 -19
- package/dist/client/context-xray/ContextSegmentRow.js.map +1 -1
- package/dist/client/context-xray/ContextTreemap.d.ts.map +1 -1
- package/dist/client/context-xray/ContextTreemap.js +3 -54
- package/dist/client/context-xray/ContextTreemap.js.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.d.ts.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.js +21 -163
- package/dist/client/context-xray/ContextXRayPanel.js.map +1 -1
- package/dist/client/context-xray/SegmentProvenancePopover.d.ts.map +1 -1
- package/dist/client/context-xray/SegmentProvenancePopover.js +3 -4
- package/dist/client/context-xray/SegmentProvenancePopover.js.map +1 -1
- package/dist/client/context-xray/format.d.ts +0 -4
- package/dist/client/context-xray/format.d.ts.map +1 -1
- package/dist/client/context-xray/format.js +0 -49
- package/dist/client/context-xray/format.js.map +1 -1
- package/dist/client/rich-markdown-editor/index.d.ts +1 -12
- package/dist/client/rich-markdown-editor/index.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/index.js +1 -12
- package/dist/client/rich-markdown-editor/index.js.map +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +1 -1
- package/dist/client/visual-style-controls.d.ts +1 -89
- package/dist/client/visual-style-controls.d.ts.map +1 -1
- package/dist/client/visual-style-controls.js +1 -498
- package/dist/client/visual-style-controls.js.map +1 -1
- package/dist/collab/agent-identity.d.ts +1 -14
- package/dist/collab/agent-identity.d.ts.map +1 -1
- package/dist/collab/agent-identity.js +1 -13
- package/dist/collab/agent-identity.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/collab/client.d.ts +1 -19
- package/dist/collab/client.d.ts.map +1 -1
- package/dist/collab/client.js +1 -53
- package/dist/collab/client.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/styles/rich-markdown-editor.css +1 -510
- package/dist/testing.d.ts +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +3 -0
- package/dist/vite/client.js.map +1 -1
- package/docs/content/agent-native-toolkit.mdx +46 -13
- package/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
- package/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
- package/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
- package/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
- package/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
- package/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
- package/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
- package/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/toolkit-capability-packages.mdx +52 -0
- package/docs/content/toolkit-context-knowledge.mdx +46 -0
- package/docs/content/toolkit-editors-canvases.mdx +55 -0
- package/package.json +27 -26
- package/corpus/core/src/client/rich-markdown-editor/BubbleToolbar.tsx +0 -253
- package/corpus/core/src/client/rich-markdown-editor/CodeBlockNode.tsx +0 -258
- package/corpus/core/src/client/rich-markdown-editor/DragHandle.ts +0 -1437
- package/corpus/core/src/client/rich-markdown-editor/ImageExtension.ts +0 -306
- package/corpus/core/src/client/rich-markdown-editor/RichMarkdownEditor.tsx +0 -80
- package/corpus/core/src/client/rich-markdown-editor/RunId.ts +0 -61
- package/corpus/core/src/client/rich-markdown-editor/SharedRichEditor.tsx +0 -321
- package/corpus/core/src/client/rich-markdown-editor/SlashCommandMenu.tsx +0 -310
- package/corpus/core/src/client/rich-markdown-editor/extensions.ts +0 -402
- package/corpus/core/src/client/rich-markdown-editor/gfmDoc.ts +0 -92
- package/corpus/core/src/client/rich-markdown-editor/surgical-apply.ts +0 -192
- package/corpus/core/src/client/rich-markdown-editor/useCollabReconcile.ts +0 -590
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts +0 -37
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/BubbleToolbar.js +0 -171
- package/dist/client/rich-markdown-editor/BubbleToolbar.js.map +0 -1
- package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts +0 -49
- package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/CodeBlockNode.js +0 -127
- package/dist/client/rich-markdown-editor/CodeBlockNode.js.map +0 -1
- package/dist/client/rich-markdown-editor/DragHandle.d.ts +0 -97
- package/dist/client/rich-markdown-editor/DragHandle.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/DragHandle.js +0 -1066
- package/dist/client/rich-markdown-editor/DragHandle.js.map +0 -1
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts +0 -63
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/ImageExtension.js +0 -243
- package/dist/client/rich-markdown-editor/ImageExtension.js.map +0 -1
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts +0 -51
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js +0 -37
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js.map +0 -1
- package/dist/client/rich-markdown-editor/RunId.d.ts +0 -28
- package/dist/client/rich-markdown-editor/RunId.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RunId.js +0 -60
- package/dist/client/rich-markdown-editor/RunId.js.map +0 -1
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts +0 -110
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/SharedRichEditor.js +0 -144
- package/dist/client/rich-markdown-editor/SharedRichEditor.js.map +0 -1
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts +0 -41
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js +0 -221
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js.map +0 -1
- package/dist/client/rich-markdown-editor/extensions.d.ts +0 -178
- package/dist/client/rich-markdown-editor/extensions.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/extensions.js +0 -224
- package/dist/client/rich-markdown-editor/extensions.js.map +0 -1
- package/dist/client/rich-markdown-editor/gfmDoc.d.ts +0 -24
- package/dist/client/rich-markdown-editor/gfmDoc.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/gfmDoc.js +0 -83
- package/dist/client/rich-markdown-editor/gfmDoc.js.map +0 -1
- package/dist/client/rich-markdown-editor/surgical-apply.d.ts +0 -66
- package/dist/client/rich-markdown-editor/surgical-apply.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/surgical-apply.js +0 -147
- package/dist/client/rich-markdown-editor/surgical-apply.js.map +0 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts +0 -110
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.js +0 -441
- package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +0 -1
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "Toolkit"
|
|
3
|
+
description: "一个均衡的目录,涵盖可复用基础、编辑器与画布、智能体上下文、治理、工作区框架、运营以及 Toolkit 能力模块。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- i18n-docs-ignore -->
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Toolkit
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
applications. They turn the hard product work that repeats across apps into
|
|
12
|
-
standard surfaces: realtime collaboration between humans and agents, sharing
|
|
13
|
-
with humans and agents, settings, teams, setup, resources, history, review, and
|
|
14
|
-
observability.
|
|
10
|
+
Toolkit 是面向高质量智能体应用的可复用、久经验证的构建模块。它将跨应用反复出现的棘手产品工作转化为标准界面:人类与智能体之间的实时协作、面向人类和智能体的共享、设置、团队、配置、资源、历史记录、审阅和可观测性。
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
access boundaries, and agent-visible behavior that users expect to work
|
|
18
|
-
consistently. Apps still own their domain model and visual identity; toolkits
|
|
19
|
-
make the common product systems feel complete from the first version instead of
|
|
20
|
-
being rebuilt in slightly different ways every time.
|
|
12
|
+
每个工具包都封装了用户期望持续一致的 UI 模式、操作契约、应用状态预期、访问边界和智能体可见行为。应用仍拥有自己的领域模型和视觉标识;Toolkit 让通用产品系统从第一个版本起就完整可用,而不是每次以略有不同的方式重新构建。
|
|
21
13
|
|
|
22
14
|
<WireframeBlock id="doc-block-toolkits-index">
|
|
23
15
|
<Screen
|
|
@@ -28,23 +20,23 @@ being rebuilt in slightly different ways every time.
|
|
|
28
20
|
/>
|
|
29
21
|
</WireframeBlock>
|
|
30
22
|
|
|
31
|
-
<Diagram id="doc-block-toolkits-boundary" title="
|
|
23
|
+
<Diagram id="doc-block-toolkits-boundary" title="工具包如何融入" summary={"框架运行时提供持久保证。Toolkit 将这些保证转化为可复用的产品系统。应用再加入领域特定的数据、路由和视觉标识。"}>
|
|
32
24
|
|
|
33
25
|
```html
|
|
34
26
|
<div class="diagram-row">
|
|
35
27
|
<div class="diagram-card">
|
|
36
|
-
<span class="diagram-pill accent"
|
|
37
|
-
|
|
28
|
+
<span class="diagram-pill accent">运行时</span><br />
|
|
29
|
+
操作、SQL、认证、应用状态、访问检查、实时传输
|
|
38
30
|
</div>
|
|
39
31
|
<div class="diagram-arrow diagram-muted" aria-hidden="true">→</div>
|
|
40
32
|
<div class="diagram-card">
|
|
41
|
-
<span class="diagram-pill accent">
|
|
42
|
-
|
|
33
|
+
<span class="diagram-pill accent">Toolkit</span><br />
|
|
34
|
+
协作、共享、配置、审阅、历史记录、可观测性
|
|
43
35
|
</div>
|
|
44
36
|
<div class="diagram-arrow diagram-muted" aria-hidden="true">→</div>
|
|
45
37
|
<div class="diagram-card">
|
|
46
|
-
<span class="diagram-pill accent"
|
|
47
|
-
|
|
38
|
+
<span class="diagram-pill accent">应用</span><br />
|
|
39
|
+
领域架构、路由、操作、品牌、专门工作流
|
|
48
40
|
</div>
|
|
49
41
|
</div>
|
|
50
42
|
```
|
|
@@ -68,45 +60,60 @@ being rebuilt in slightly different ways every time.
|
|
|
68
60
|
|
|
69
61
|
</Diagram>
|
|
70
62
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
| [
|
|
76
|
-
| [
|
|
77
|
-
| [
|
|
78
|
-
| [
|
|
79
|
-
| [
|
|
80
|
-
| [
|
|
81
|
-
| [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(
|
|
91
|
-
(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
63
|
+
## 目录 {#catalog}
|
|
64
|
+
|
|
65
|
+
| 领域 | 从这里开始 | 覆盖内容 |
|
|
66
|
+
| ------------------ | ----------------------------------------------- | ------------------------------------------------------------ |
|
|
67
|
+
| 基础 | [UI 原语](/docs/toolkit-ui) | 共享控件、Hook、应用适配器和 Shell 接缝。 |
|
|
68
|
+
| 编辑器与画布 | [编辑器与画布](/docs/toolkit-editors-canvases) | 富文本编辑、结构化区块、可复用画布控件和 Design 模式。 |
|
|
69
|
+
| 智能体体验与上下文 | [上下文与知识](/docs/toolkit-context-knowledge) | Context X-Ray、资源、知识、Composer 上下文和智能体可见状态。 |
|
|
70
|
+
| 协作与治理 | [协作](/docs/toolkit-collaboration) | 分享、在线状态、审阅、历史、审计和组织边界。 |
|
|
71
|
+
| 工作区框架 | [应用框架](/docs/toolkit-settings) | 设置、团队、配置、导航、资源和智能体 UX。 |
|
|
72
|
+
| 运营 | [可观测性](/docs/toolkit-observability) | 使用情况、反馈、回放、诊断和运营可见性。 |
|
|
73
|
+
| Toolkit 能力模块 | [能力包](/docs/toolkit-capability-packages) | 按需安装的领域包及其生命周期清单。 |
|
|
74
|
+
|
|
75
|
+
## 产品套件 {#product-kits}
|
|
76
|
+
|
|
77
|
+
| 工具包 | 用途 |
|
|
78
|
+
| ---------------------------------------------- | ----------------------------------------------------------------------- |
|
|
79
|
+
| [共享](/docs/toolkit-sharing) | 可拥有资源、共享对话框、可见性徽章、共享操作、公开/私有/组织访问。 |
|
|
80
|
+
| [协作](/docs/toolkit-collaboration) | 实时编辑、在线状态、实时光标、最近编辑高亮、协作撤销。 |
|
|
81
|
+
| [设置](/docs/toolkit-settings) | 标准设置页和标签页,让应用设置与智能体/提供商设置位于一个可预测的位置。 |
|
|
82
|
+
| [组织与团队](/docs/toolkit-org-team) | 团队页、组织切换、邀请、组织域、角色和应用切换。 |
|
|
83
|
+
| [配置与连接](/docs/toolkit-setup-connections) | 引导、密钥、工作区连接、OAuth/提供商就绪状态和 Builder 连接。 |
|
|
84
|
+
| [命令与导航](/docs/toolkit-command-navigation) | 命令菜单、深层链接、标准应用路由、侧栏和外壳模式。 |
|
|
85
|
+
| [资源](/docs/toolkit-resources) | 资源树、编辑器、文件选择/搜索、附件和本地文件模式。 |
|
|
86
|
+
| [智能体 UX](/docs/toolkit-agent-ux) | 编辑器、模型选择器、上下文标签、批准、运行恢复和运行托盘。 |
|
|
87
|
+
| [历史记录](/docs/toolkit-history) | 版本历史、审计日志、撤销/重做、恢复和“发生了什么变化”界面。 |
|
|
88
|
+
| [评论与审阅](/docs/toolkit-comments-review) | 内联评论、注释、提及、已解决线程和审阅状态。 |
|
|
89
|
+
| [可观测性](/docs/toolkit-observability) | 用量、支出、反馈、回放、错误和运行诊断。 |
|
|
90
|
+
|
|
91
|
+
## 包成熟度与所有权 {#package-maturity-and-ownership}
|
|
92
|
+
|
|
93
|
+
- 富文本编辑器由 **Toolkit** 所有;迁移期间,现有 Core import 继续作为轻量兼容性 re-export。
|
|
94
|
+
- Design 是带有可复用 `design-tweaks` 的**模板模式**,不是完整的即插即用编辑器或画布。
|
|
95
|
+
- 本阶段 Blocks 和 Context X-Ray 引擎仍由 **Core** 所有;可复用的 Context X-Ray 呈现由 Toolkit 所有。
|
|
96
|
+
- Creative Context、Scheduling 和 Pinpoint 是按需安装的 **Toolkit 能力模块**;它们保留独立的 npm 包和生命周期清单。Dispatch 仍是独立产品。
|
|
97
|
+
|
|
98
|
+
## 实现边界 {#implementation-boundary}
|
|
99
|
+
|
|
100
|
+
工具包首先是产品界面。一些部分由运行时支持(`@agent-native/core`),一些是呈现原语(`@agent-native/toolkit`),应用通常通过本地适配器封装两者。请使用拥有所需行为的包路径,但将面向用户的设置、协作、共享、团队、审阅和配置体验设计为一个连贯的工具包,而不是在应用中暴露包边界。
|
|
101
|
+
|
|
102
|
+
## 基础组成部分 {#foundation-pieces}
|
|
103
|
+
|
|
104
|
+
- [UI 原语](/docs/toolkit-ui) 涵盖 `@agent-native/toolkit/ui/*` 下共享的 shadcn 风格原语。
|
|
105
|
+
- [应用适配器](/docs/toolkit-ui#app-adapters) 展示应用如何通过本地 `@/components/*` 适配器封装 Toolkit 组件。
|
|
106
|
+
- [外壳与 Hook](/docs/toolkit-ui#shell-hooks) 涵盖页头操作、移动端 Hook、提示消息和小型应用外壳辅助工具。
|
|
107
|
+
- [组件 API](/docs/components) 仍是公共 React 导出的低层参考。
|
|
108
|
+
|
|
109
|
+
## 设计规则 {#design-rule}
|
|
110
|
+
|
|
111
|
+
当某种行为在应用之间重复出现,并且用户希望它具有标准体验时,请使用 Toolkit:共享、设置、团队、评论、历史记录和智能体进度不应在每个模板中略有不同。将领域特定的数据、工作流、标签和视觉样式保留在应用中。
|
|
112
|
+
|
|
113
|
+
## 下一步
|
|
114
|
+
|
|
115
|
+
- [**Toolkit UI 原语**](/docs/toolkit-ui) — 共享原语、应用适配器和 Shell Hook。
|
|
116
|
+
- [**分享套件**](/docs/toolkit-sharing) — 资源、分享对话框和可见性的良好起点。
|
|
117
|
+
- [**创建模板**](/docs/creating-templates) — 端到端构建模板,并了解套件如何融入其中。
|
|
118
|
+
- [**组件 API**](/docs/components) — 所有公开 React 导出的参考。
|
|
119
|
+
- [**包生命周期**](/docs/package-lifecycle) — 安全地检查、添加和弹出由清单驱动的 Toolkit 能力模块。
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "能力包"
|
|
3
|
+
description: "管理领域能力及其清单驱动的生命周期,而不将其并入 Toolkit。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 能力包
|
|
7
|
+
|
|
8
|
+
Toolkit 提供跨应用产品基础;能力包提供受限领域、actions、skills 和生命周期元数据。Scheduling 和 Creative Context 是独立能力包,而不是 Toolkit 功能套件。
|
|
9
|
+
|
|
10
|
+
`@agent-native/scheduling` 参与通用清单试点。请以各包本地文档和生命周期清单作为扩展点与归属的来源。
|
|
11
|
+
|
|
12
|
+
- [Scheduling 包文档](https://github.com/BuilderIO/agent-native/tree/main/packages/scheduling/docs)
|
|
13
|
+
- [Creative Context 包文档](https://github.com/BuilderIO/agent-native/tree/main/packages/creative-context/docs)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
agent-native package inspect @agent-native/scheduling
|
|
17
|
+
agent-native package add @agent-native/scheduling --apply
|
|
18
|
+
agent-native package eject @agent-native/scheduling --apply
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
检查、预演和 eject 规则见[包生命周期](/docs/package-lifecycle)。
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "上下文与知识"
|
|
3
|
+
description: "在引擎、数据访问和可复用呈现之间保持正确边界,构建面向智能体的上下文表面。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 上下文与知识
|
|
7
|
+
|
|
8
|
+
Core 负责应用状态、范围受限的访问和 Context X-Ray 引擎。Toolkit 提供可复用呈现;应用负责领域记录、分类法和选择规则。
|
|
9
|
+
|
|
10
|
+
Context X-Ray 引擎仍归 Core。可用 Toolkit 统一呈现上下文,但状态和访问决策应保留在 Core 与 actions 中。[Context awareness](/docs/context-awareness) 让导航、选择和聚焦对象对智能体可见;[Resources](/docs/toolkit-resources) 处理文件与附件。
|
|
11
|
+
|
|
12
|
+
上下文不能替代访问控制。检索提供商知识前必须保留资源和凭据检查。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "编辑器与画布"
|
|
3
|
+
description: "在 Core 兼容路径、模板模式与 Toolkit 原语之间作出清晰选择。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 编辑器与画布
|
|
7
|
+
|
|
8
|
+
编辑器和画布是相关的产品表面,不应把其中任何一个作为唯一旗舰功能。
|
|
9
|
+
|
|
10
|
+
| 表面 | 当前归属 |
|
|
11
|
+
| ------------ | ----------------------------------------------------------- |
|
|
12
|
+
| 富文本编辑器 | 归 Toolkit,Core 保留兼容性重导出。 |
|
|
13
|
+
| Blocks | 本阶段仍归 Core。 |
|
|
14
|
+
| Design | 带有 `design-tweaks` 的模板模式,并非完整的即插即用编辑器。 |
|
|
15
|
+
| 画布呈现 | Toolkit 或应用的组合。 |
|
|
16
|
+
|
|
17
|
+
请从 `@agent-native/toolkit/editor` 导入编辑器。旧 Core 路径继续作为兼容性重导出。架构、命令和持久化仍由应用负责。Blocks 仍归 Core,但 Toolkit 栏目是可复用 UI 的统一目录,因此文档集中在这里。
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "Toolkit"
|
|
3
|
+
description: "一個均衡的目錄,涵蓋可重用基礎、編輯器與畫布、智慧代理脈絡、治理、工作區框架、營運以及 Toolkit 能力模組。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- i18n-docs-ignore -->
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Toolkit
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
applications. They turn the hard product work that repeats across apps into
|
|
12
|
-
standard surfaces: realtime collaboration between humans and agents, sharing
|
|
13
|
-
with humans and agents, settings, teams, setup, resources, history, review, and
|
|
14
|
-
observability.
|
|
10
|
+
Toolkit 是面向高品質智慧代理應用程式、可重複使用且經過實戰驗證的建構元件。它將跨應用程式反覆出現的困難產品工作轉化為標準介面:人類與智慧代理之間的即時協作、面向人類和智慧代理的分享、設定、團隊、設定流程、資源、歷程、審閱和可觀測性。
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
access boundaries, and agent-visible behavior that users expect to work
|
|
18
|
-
consistently. Apps still own their domain model and visual identity; toolkits
|
|
19
|
-
make the common product systems feel complete from the first version instead of
|
|
20
|
-
being rebuilt in slightly different ways every time.
|
|
12
|
+
每個套件都封裝了使用者期待能持續一致運作的 UI 模式、動作契約、應用程式狀態預期、存取邊界和智慧代理可見行為。應用程式仍擁有自己的領域模型和視覺識別;Toolkit 讓通用產品系統從第一個版本起就完整可用,而不是每次以稍有不同的方式重新建立。
|
|
21
13
|
|
|
22
14
|
<WireframeBlock id="doc-block-toolkits-index">
|
|
23
15
|
<Screen
|
|
@@ -28,23 +20,23 @@ being rebuilt in slightly different ways every time.
|
|
|
28
20
|
/>
|
|
29
21
|
</WireframeBlock>
|
|
30
22
|
|
|
31
|
-
<Diagram id="doc-block-toolkits-boundary" title="
|
|
23
|
+
<Diagram id="doc-block-toolkits-boundary" title="套件如何融入" summary={"框架執行階段提供持久保證。Toolkit 將這些保證轉化為可重複使用的產品系統。應用程式再加入領域特定的資料、路由和視覺識別。"}>
|
|
32
24
|
|
|
33
25
|
```html
|
|
34
26
|
<div class="diagram-row">
|
|
35
27
|
<div class="diagram-card">
|
|
36
|
-
<span class="diagram-pill accent"
|
|
37
|
-
|
|
28
|
+
<span class="diagram-pill accent">執行階段</span><br />
|
|
29
|
+
動作、SQL、驗證、應用程式狀態、存取檢查、即時傳輸
|
|
38
30
|
</div>
|
|
39
31
|
<div class="diagram-arrow diagram-muted" aria-hidden="true">→</div>
|
|
40
32
|
<div class="diagram-card">
|
|
41
|
-
<span class="diagram-pill accent">
|
|
42
|
-
|
|
33
|
+
<span class="diagram-pill accent">Toolkit</span><br />
|
|
34
|
+
協作、分享、設定流程、審閱、歷程、可觀測性
|
|
43
35
|
</div>
|
|
44
36
|
<div class="diagram-arrow diagram-muted" aria-hidden="true">→</div>
|
|
45
37
|
<div class="diagram-card">
|
|
46
|
-
<span class="diagram-pill accent"
|
|
47
|
-
|
|
38
|
+
<span class="diagram-pill accent">應用程式</span><br />
|
|
39
|
+
領域結構描述、路由、動作、品牌、專門工作流程
|
|
48
40
|
</div>
|
|
49
41
|
</div>
|
|
50
42
|
```
|
|
@@ -68,45 +60,60 @@ being rebuilt in slightly different ways every time.
|
|
|
68
60
|
|
|
69
61
|
</Diagram>
|
|
70
62
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
| [
|
|
76
|
-
| [
|
|
77
|
-
| [
|
|
78
|
-
| [
|
|
79
|
-
| [
|
|
80
|
-
| [
|
|
81
|
-
| [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(
|
|
91
|
-
(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
63
|
+
## 目錄 {#catalog}
|
|
64
|
+
|
|
65
|
+
| 領域 | 從這裡開始 | 涵蓋內容 |
|
|
66
|
+
| ------------------ | ---------------------------------------------- | ------------------------------------------------------------ |
|
|
67
|
+
| 基礎 | [UI 原語](/docs/toolkit-ui) | 共用控制項、Hook、應用程式配接器和 Shell 接點。 |
|
|
68
|
+
| 編輯器與畫布 | [編輯器與畫布](/docs/toolkit-editors-canvases) | 豐富編輯、結構化區塊、可重用畫布控制項和 Design 模式。 |
|
|
69
|
+
| 智慧代理體驗與脈絡 | [脈絡與知識](/docs/toolkit-context-knowledge) | Context X-Ray、資源、知識、Composer 脈絡和智慧代理可見狀態。 |
|
|
70
|
+
| 協作與治理 | [協作](/docs/toolkit-collaboration) | 分享、在線狀態、審閱、歷程、稽核和組織邊界。 |
|
|
71
|
+
| 工作區框架 | [應用程式框架](/docs/toolkit-settings) | 設定、團隊、設定流程、導覽、資源和智慧代理 UX。 |
|
|
72
|
+
| 營運 | [可觀測性](/docs/toolkit-observability) | 使用情況、意見回饋、重播、診斷和營運可見性。 |
|
|
73
|
+
| Toolkit 能力模組 | [能力套件](/docs/toolkit-capability-packages) | 依需要安裝的領域套件及其生命週期資訊清單。 |
|
|
74
|
+
|
|
75
|
+
## 產品套件 {#product-kits}
|
|
76
|
+
|
|
77
|
+
| 套件 | 用途 |
|
|
78
|
+
| ------------------------------------------------- | ------------------------------------------------------------------------------ |
|
|
79
|
+
| [分享](/docs/toolkit-sharing) | 可擁有資源、分享對話方塊、可見性徽章、分享動作、公開/私人/組織存取。 |
|
|
80
|
+
| [協作](/docs/toolkit-collaboration) | 即時編輯、在線狀態、即時游標、最近編輯醒目提示、協作復原。 |
|
|
81
|
+
| [設定](/docs/toolkit-settings) | 標準設定頁面和分頁,讓應用程式設定與智慧代理/提供者設定位於一個可預期的位置。 |
|
|
82
|
+
| [組織與團隊](/docs/toolkit-org-team) | 團隊頁面、組織切換、邀請、組織網域、角色和應用程式切換。 |
|
|
83
|
+
| [設定流程與連線](/docs/toolkit-setup-connections) | 上手引導、密鑰、工作區連線、OAuth/提供者就緒狀態和 Builder 連線。 |
|
|
84
|
+
| [命令與導覽](/docs/toolkit-command-navigation) | 命令選單、深層連結、標準應用程式路由、側欄和 Shell 模式。 |
|
|
85
|
+
| [資源](/docs/toolkit-resources) | 資源樹、編輯器、檔案選擇/搜尋、附件和本機檔案模式。 |
|
|
86
|
+
| [智慧代理 UX](/docs/toolkit-agent-ux) | Composer、模型選擇器、脈絡籤、核准、執行復原和執行托盤。 |
|
|
87
|
+
| [歷程](/docs/toolkit-history) | 版本歷程、稽核日誌、復原/重做、還原和「有何變更」介面。 |
|
|
88
|
+
| [評論與審閱](/docs/toolkit-comments-review) | 內嵌評論、註解、提及、已解決討論串和審閱狀態。 |
|
|
89
|
+
| [可觀測性](/docs/toolkit-observability) | 使用量、支出、意見回饋、重播、錯誤和執行診斷。 |
|
|
90
|
+
|
|
91
|
+
## 套件成熟度與所有權 {#package-maturity-and-ownership}
|
|
92
|
+
|
|
93
|
+
- 豐富編輯器由 **Toolkit** 擁有;移轉期間,現有 Core import 持續作為精簡的相容性 re-export。
|
|
94
|
+
- Design 是使用可重用 `design-tweaks` 的**範本模式**,不是完整的即插即用編輯器或畫布。
|
|
95
|
+
- 此階段 Blocks 和 Context X-Ray 引擎仍由 **Core** 擁有;可重用的 Context X-Ray 呈現由 Toolkit 擁有。
|
|
96
|
+
- Creative Context、Scheduling 和 Pinpoint 是依需要安裝的 **Toolkit 能力模組**;它們保留獨立 npm 套件和生命週期資訊清單。Dispatch 仍是獨立產品。
|
|
97
|
+
|
|
98
|
+
## 實作邊界 {#implementation-boundary}
|
|
99
|
+
|
|
100
|
+
套件首先是產品介面。有些部分由執行階段支援(`@agent-native/core`),有些是呈現原語(`@agent-native/toolkit`),應用程式通常會透過本機配接器封裝兩者。請使用擁有所需行為的套件路徑,但將面向使用者的設定、協作、分享、團隊、審閱和設定流程體驗設計為一個連貫的套件,而不要在應用程式中暴露套件邊界。
|
|
101
|
+
|
|
102
|
+
## 基礎元件 {#foundation-pieces}
|
|
103
|
+
|
|
104
|
+
- [UI 原語](/docs/toolkit-ui) 涵蓋 `@agent-native/toolkit/ui/*` 下共用的 shadcn 風格原語。
|
|
105
|
+
- [應用程式配接器](/docs/toolkit-ui#app-adapters) 說明應用程式如何透過本機 `@/components/*` 配接器封裝 Toolkit 元件。
|
|
106
|
+
- [Shell 與 Hook](/docs/toolkit-ui#shell-hooks) 涵蓋頁首動作、行動裝置 Hook、Toast 和小型應用程式 Shell 輔助工具。
|
|
107
|
+
- [元件 API](/docs/components) 仍是公開 React 匯出的低階參考。
|
|
108
|
+
|
|
109
|
+
## 設計規則 {#design-rule}
|
|
110
|
+
|
|
111
|
+
當行為在各應用程式間重複出現,且使用者期待標準體驗時,請使用 Toolkit:分享、設定、團隊、評論、歷程和智慧代理進度不應在每個範本中略有不同。請將領域特定的資料、工作流程、標籤和視覺樣式保留在應用程式中。
|
|
112
|
+
|
|
113
|
+
## 下一步
|
|
114
|
+
|
|
115
|
+
- [**Toolkit UI 原語**](/docs/toolkit-ui) — 共用原語、應用程式配接器和 Shell Hook。
|
|
116
|
+
- [**分享套件**](/docs/toolkit-sharing) — 資源、分享對話框和可見性的良好起點。
|
|
117
|
+
- [**建立範本**](/docs/creating-templates) — 端到端建立範本,並了解套件如何融入其中。
|
|
118
|
+
- [**元件 API**](/docs/components) — 所有公開 React 匯出的參考。
|
|
119
|
+
- [**套件生命週期**](/docs/package-lifecycle) — 安全地檢查、新增和彈出由資訊清單驅動的 Toolkit 能力模組。
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "能力套件"
|
|
3
|
+
description: "管理領域能力及其清單驅動生命週期,而不將其併入 Toolkit。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 能力套件
|
|
7
|
+
|
|
8
|
+
Toolkit 提供跨應用程式產品基礎;能力套件提供受限領域、actions、skills 和生命週期中繼資料。Scheduling 和 Creative Context 是獨立能力套件,而不是 Toolkit 功能套件。
|
|
9
|
+
|
|
10
|
+
`@agent-native/scheduling` 參與通用清單試行。請以各套件本機文件與生命週期清單作為擴充點和歸屬的來源。
|
|
11
|
+
|
|
12
|
+
- [Scheduling 套件文件](https://github.com/BuilderIO/agent-native/tree/main/packages/scheduling/docs)
|
|
13
|
+
- [Creative Context 套件文件](https://github.com/BuilderIO/agent-native/tree/main/packages/creative-context/docs)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
agent-native package inspect @agent-native/scheduling
|
|
17
|
+
agent-native package add @agent-native/scheduling --apply
|
|
18
|
+
agent-native package eject @agent-native/scheduling --apply
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
檢查、預演和 eject 規則見[套件生命週期](/docs/package-lifecycle)。
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "脈絡與知識"
|
|
3
|
+
description: "在引擎、資料存取和可重用呈現之間維持正確邊界,建立面向智慧代理的脈絡表面。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 脈絡與知識
|
|
7
|
+
|
|
8
|
+
Core 負責應用程式狀態、範圍受限存取與 Context X-Ray 引擎。Toolkit 提供可重用呈現;應用程式負責領域記錄、分類與選擇規則。
|
|
9
|
+
|
|
10
|
+
Context X-Ray 引擎仍歸 Core。可用 Toolkit 統一呈現脈絡,但狀態和存取決策應保留在 Core 與 actions 中。[Context awareness](/docs/context-awareness) 讓導覽、選取和聚焦物件對智慧代理可見;[Resources](/docs/toolkit-resources) 處理檔案與附件。
|
|
11
|
+
|
|
12
|
+
脈絡不能取代存取控制。擷取提供者知識前必須保留資源與憑證檢查。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "編輯器與畫布"
|
|
3
|
+
description: "在 Core 相容路徑、範本模式與 Toolkit 原語之間作出清楚選擇。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 編輯器與畫布
|
|
7
|
+
|
|
8
|
+
編輯器和畫布是相關的產品表面,不應將任何一項當成唯一旗艦功能。
|
|
9
|
+
|
|
10
|
+
| 表面 | 目前歸屬 |
|
|
11
|
+
| ---------- | ------------------------------------------------------- |
|
|
12
|
+
| 豐富編輯器 | 歸 Toolkit,Core 保留相容性重新匯出。 |
|
|
13
|
+
| Blocks | 此階段仍歸 Core。 |
|
|
14
|
+
| Design | 具 `design-tweaks` 的範本模式,並非完整即插即用編輯器。 |
|
|
15
|
+
| 畫布呈現 | Toolkit 或應用程式的組合。 |
|
|
16
|
+
|
|
17
|
+
請從 `@agent-native/toolkit/editor` 匯入編輯器。舊 Core 路徑繼續作為相容性重新匯出。結構、命令與持久化仍由應用程式負責。Blocks 仍歸 Core,但 Toolkit 區段是可重用 UI 的統一目錄,因此文件集中在這裡。
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Toolkit Capability Modules"
|
|
3
|
+
description: "Install Toolkit domain capabilities on demand while preserving their package-level dependency and lifecycle boundaries."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Toolkit capability modules
|
|
7
|
+
|
|
8
|
+
Toolkit capability modules add reusable domain behavior on demand. They share
|
|
9
|
+
one Toolkit discovery shelf while staying in separate npm packages, so an app
|
|
10
|
+
only installs the bounded domain model, actions, skills, dependencies, and
|
|
11
|
+
lifecycle metadata it needs.
|
|
12
|
+
|
|
13
|
+
## Current package boundary
|
|
14
|
+
|
|
15
|
+
| Package | Toolkit module | Lifecycle |
|
|
16
|
+
| -------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `@agent-native/scheduling` | Scheduling and booking, installed on demand | Supports the generic manifest lifecycle pilot; package-local docs live under `docs/`. |
|
|
18
|
+
| `@agent-native/creative-context` | Governed creative context, installed on demand | Publishes its own `agent-native.package.json` and package-local `docs/llms.txt` / `docs/llms-full.txt`. |
|
|
19
|
+
| `@agent-native/pinpoint` | Visual feedback and annotation, installed on demand | Package-local setup and agent integration live in its README and packaged assets. |
|
|
20
|
+
|
|
21
|
+
These modules belong to the Toolkit brand without being folded into the
|
|
22
|
+
`@agent-native/toolkit` npm package. Use each published package's README and,
|
|
23
|
+
where present, `docs/` bundle and `agent-native.package.json` lifecycle manifest
|
|
24
|
+
as the source of truth for setup, contribution points, and ownership.
|
|
25
|
+
|
|
26
|
+
Dispatch is the workspace control plane and remains a separate product.
|
|
27
|
+
|
|
28
|
+
- [Scheduling package docs](https://github.com/BuilderIO/agent-native/tree/main/packages/scheduling/docs)
|
|
29
|
+
- [Creative Context package docs](https://github.com/BuilderIO/agent-native/tree/main/packages/creative-context/docs)
|
|
30
|
+
- [Pinpoint package README](https://github.com/BuilderIO/agent-native/tree/main/packages/pinpoint)
|
|
31
|
+
|
|
32
|
+
## Lifecycle manifests
|
|
33
|
+
|
|
34
|
+
Each manifest describes static contributions such as actions, schema entry
|
|
35
|
+
points, skills, required secret names, and peer providers. Inspect before
|
|
36
|
+
writing, then use the explicit apply step:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
agent-native package inspect @agent-native/scheduling
|
|
40
|
+
agent-native package add @agent-native/scheduling --apply
|
|
41
|
+
agent-native package eject @agent-native/scheduling --apply
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
See [Package Lifecycle](/docs/package-lifecycle) for the safety, dry-run, and
|
|
45
|
+
eject rules. See [Scheduling](/docs/template-calendar) for a product-level
|
|
46
|
+
example; it is not a substitute for the package-local contract.
|
|
47
|
+
|
|
48
|
+
## Related docs
|
|
49
|
+
|
|
50
|
+
- [Toolkit overview](/docs/agent-native-toolkit) — the unified discovery shelf.
|
|
51
|
+
- [Package Lifecycle](/docs/package-lifecycle) — manifest inspection, add, and eject.
|
|
52
|
+
- [Recurring jobs](/docs/recurring-jobs) — runtime scheduling is different from the Scheduling package.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Context & Knowledge"
|
|
3
|
+
description: "Build agent-aware context and knowledge surfaces while keeping engines, data access, and reusable presentation in their proper layers."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Context & knowledge
|
|
7
|
+
|
|
8
|
+
Context and knowledge are shared responsibilities: the runtime makes state and
|
|
9
|
+
access durable, Toolkit presents reusable surfaces, and each app owns the
|
|
10
|
+
domain records that make context useful.
|
|
11
|
+
|
|
12
|
+
## Ownership boundary
|
|
13
|
+
|
|
14
|
+
| Layer | Owns |
|
|
15
|
+
| ------- | ------------------------------------------------------------------------------------------ |
|
|
16
|
+
| Core | Application state, scoped data access, Context X-Ray engine, resource and block contracts. |
|
|
17
|
+
| Toolkit | Reusable Context X-Ray presentation and agent-facing context UI. |
|
|
18
|
+
| App | Domain knowledge, selection rules, resource taxonomy, and product-specific context. |
|
|
19
|
+
|
|
20
|
+
The Context X-Ray engine remains Core-owned. Use Toolkit presentation to show
|
|
21
|
+
that context consistently, but keep the actual app-state and access decisions
|
|
22
|
+
on the Core/action surface.
|
|
23
|
+
|
|
24
|
+
Import the controlled presentation views from `@agent-native/toolkit/context-ui`.
|
|
25
|
+
Core's existing Context X-Ray components remain adapters that connect those
|
|
26
|
+
views to runtime state and mutations. Both are documented in this Toolkit
|
|
27
|
+
section because together they form one reusable product surface.
|
|
28
|
+
|
|
29
|
+
## Build a useful context surface
|
|
30
|
+
|
|
31
|
+
Use [context awareness](/docs/context-awareness) to make navigation,
|
|
32
|
+
selection, and focused objects visible to the agent. Use [Resources](/docs/toolkit-resources)
|
|
33
|
+
for browsable files and attachments, and use scoped actions for every read or
|
|
34
|
+
write. Context should describe what the user is working on without bypassing
|
|
35
|
+
the app's access model.
|
|
36
|
+
|
|
37
|
+
For knowledge that comes from a provider, preserve provider credentials and
|
|
38
|
+
resource access checks before exposing retrieval to the agent. Do not treat a
|
|
39
|
+
presentation component as an authorization boundary.
|
|
40
|
+
|
|
41
|
+
## Related docs
|
|
42
|
+
|
|
43
|
+
- [Agent UX](/docs/toolkit-agent-ux) — composer context chips, approvals, and runs.
|
|
44
|
+
- [Resources](/docs/toolkit-resources) — resource trees, search, and attachments.
|
|
45
|
+
- [Context awareness](/docs/context-awareness) — application state shared with the agent.
|
|
46
|
+
- [Security](/docs/security) — scoped access and credential handling.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Editors & Canvases"
|
|
3
|
+
description: "Choose reusable editor and canvas surfaces without confusing Core compatibility APIs, template patterns, and Toolkit primitives."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Editors & canvases
|
|
7
|
+
|
|
8
|
+
Editors and canvases are related product surfaces, not one flagship feature.
|
|
9
|
+
Choose the smallest reusable layer that matches the interaction your app owns.
|
|
10
|
+
|
|
11
|
+
## Ownership today
|
|
12
|
+
|
|
13
|
+
| Surface | Current owner and maturity | Use it when |
|
|
14
|
+
| ------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| Rich editor | Toolkit, with Core compatibility re-exports | You need portable rich editing, markdown, slash commands, images, drag handles, or collaboration reconciliation. |
|
|
16
|
+
| Blocks | Core in this phase | You need registered, structured blocks and their runtime contract. |
|
|
17
|
+
| Design | Template pattern plus reusable `design-tweaks` | You are building a Design-like workflow and can own its domain behavior. |
|
|
18
|
+
| Canvas presentation | Toolkit or app composition | You need reusable UI around an app-specific canvas model. |
|
|
19
|
+
|
|
20
|
+
## Choose deliberately
|
|
21
|
+
|
|
22
|
+
Import the portable editor surface from `@agent-native/toolkit/editor`:
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import {
|
|
26
|
+
RichMarkdownEditor,
|
|
27
|
+
createSharedEditorExtensions,
|
|
28
|
+
useCollabReconcile,
|
|
29
|
+
} from "@agent-native/toolkit/editor";
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Existing imports from `@agent-native/core/client` and
|
|
33
|
+
`@agent-native/core/client/editor` continue to work as compatibility
|
|
34
|
+
re-exports. Keep app-specific schemas, commands, persistence, upload actions,
|
|
35
|
+
and registry adapters in your app or Core as appropriate.
|
|
36
|
+
|
|
37
|
+
Design is not a drop-in replacement for an editor or general canvas. The
|
|
38
|
+
[Design template](/docs/template-design) demonstrates a complete product
|
|
39
|
+
pattern; `design-tweaks` are reusable presentation adjustments within that
|
|
40
|
+
pattern. Reuse them when they fit, but do not assume they supply a complete
|
|
41
|
+
canvas data model, collaboration model, or workflow.
|
|
42
|
+
|
|
43
|
+
Blocks remain Core-owned because the browser and server contracts share one
|
|
44
|
+
implementation. They are documented here alongside editors and canvases
|
|
45
|
+
because Toolkit docs are the discovery catalog for reusable UI, regardless of
|
|
46
|
+
which package currently owns the implementation. Register and render blocks
|
|
47
|
+
through the Core contract so the agent and UI share the same structured
|
|
48
|
+
vocabulary.
|
|
49
|
+
|
|
50
|
+
## Related docs
|
|
51
|
+
|
|
52
|
+
- [Toolkit overview](/docs/agent-native-toolkit) — the full catalog and ownership boundary.
|
|
53
|
+
- [Component API](/docs/components) — public React exports and rich-editor compatibility details.
|
|
54
|
+
- [Real-time collaboration](/docs/real-time-collaboration) — presence and collaborative editing foundations.
|
|
55
|
+
- [Design template](/docs/template-design) — the Design product pattern.
|