@agent-native/core 0.165.3 → 0.167.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 (249) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/templates/analytics/.agents/skills/secrets/SKILL.md +5 -1
  3. package/corpus/templates/analytics/.agents/skills/workspace-conventions/SKILL.md +4 -1
  4. package/corpus/templates/analytics/CHANGELOG.md +740 -2
  5. package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +93 -56
  6. package/corpus/templates/analytics/app/i18n-data.ts +23 -20
  7. package/corpus/templates/analytics/app/pages/Settings.tsx +0 -1
  8. package/corpus/templates/analytics/app/pages/adhoc/explorer/index.tsx +0 -1
  9. package/corpus/templates/analytics/app/pages/adhoc/explorer-dashboard/index.tsx +1 -1
  10. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +2 -1
  11. package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +0 -1
  12. package/corpus/templates/analytics/server/lib/first-party-analytics-backend.ts +0 -32
  13. package/corpus/templates/analytics/server/lib/session-replay.ts +1 -5
  14. package/corpus/templates/assets/.agents/skills/secrets/SKILL.md +5 -1
  15. package/corpus/templates/assets/.agents/skills/workspace-conventions/SKILL.md +4 -1
  16. package/corpus/templates/assets/CHANGELOG.md +204 -2
  17. package/corpus/templates/assets/actions/navigate.ts +2 -2
  18. package/corpus/templates/assets/actions/save-generated-image.ts +0 -5
  19. package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +2 -262
  20. package/corpus/templates/assets/app/routes/library.tsx +1 -1
  21. package/corpus/templates/assets/app/routes/settings.tsx +0 -3
  22. package/corpus/templates/brain/.agents/skills/secrets/SKILL.md +5 -1
  23. package/corpus/templates/brain/.agents/skills/workspace-conventions/SKILL.md +4 -1
  24. package/corpus/templates/brain/CHANGELOG.md +145 -2
  25. package/corpus/templates/brain/actions/ask-brain.ts +0 -1
  26. package/corpus/templates/brain/actions/navigate.ts +2 -2
  27. package/corpus/templates/brain/app/routes/sources.tsx +0 -4
  28. package/corpus/templates/brain/server/lib/capture-sanitization.ts +0 -11
  29. package/corpus/templates/calendar/.agents/skills/secrets/SKILL.md +5 -1
  30. package/corpus/templates/calendar/.agents/skills/workspace-conventions/SKILL.md +4 -1
  31. package/corpus/templates/calendar/CHANGELOG.md +272 -2
  32. package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +0 -20
  33. package/corpus/templates/calendar/app/pages/CalendarView.tsx +0 -1
  34. package/corpus/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
  35. package/corpus/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
  36. package/corpus/templates/chat/CHANGELOG.md +89 -2
  37. package/corpus/templates/chat/actions/navigate.ts +2 -2
  38. package/corpus/templates/clips/.agents/skills/secrets/SKILL.md +5 -1
  39. package/corpus/templates/clips/.agents/skills/workspace-conventions/SKILL.md +4 -1
  40. package/corpus/templates/clips/CHANGELOG.md +865 -2
  41. package/corpus/templates/clips/actions/import-loom-recording.ts +16 -4
  42. package/corpus/templates/clips/actions/navigate.ts +2 -2
  43. package/corpus/templates/clips/app/components/editor/stitch-manager.tsx +0 -1
  44. package/corpus/templates/clips/app/components/library/space-dialogs.tsx +0 -1
  45. package/corpus/templates/clips/app/components/meetings/share-meeting-dialog.tsx +0 -1
  46. package/corpus/templates/clips/app/components/player/clips-share-trigger.tsx +17 -0
  47. package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +3 -3
  48. package/corpus/templates/clips/app/components/player/video-player.tsx +2 -2
  49. package/corpus/templates/clips/app/components/recorder/recorder-engine.ts +0 -1
  50. package/corpus/templates/clips/app/components/settings/ai-setup-section.tsx +0 -1
  51. package/corpus/templates/clips/app/global.css +31 -0
  52. package/corpus/templates/clips/app/hooks/use-playback-position.ts +0 -2
  53. package/corpus/templates/clips/app/lib/download-release-channel.ts +10 -0
  54. package/corpus/templates/clips/app/routes/_app.meetings.$meetingId.tsx +1 -3
  55. package/corpus/templates/clips/app/routes/download.tsx +67 -44
  56. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +7 -12
  57. package/corpus/templates/clips/app/routes/record.tsx +6 -6
  58. package/corpus/templates/clips/app/routes/share.$shareId.tsx +26 -29
  59. package/corpus/templates/clips/changelog/2026-08-20-clip-viewer-share-actions.md +6 -0
  60. package/corpus/templates/clips/changelog/2026-08-20-preparing-recording-countdown-overlay.md +6 -0
  61. package/corpus/templates/clips/chrome-extension/src/background.ts +0 -13
  62. package/corpus/templates/clips/chrome-extension/src/overlay.ts +0 -1
  63. package/corpus/templates/clips/chrome-extension/src/popup.ts +0 -20
  64. package/corpus/templates/clips/desktop/src/app.tsx +6 -18
  65. package/corpus/templates/clips/desktop/src/hooks/useMediaDevices.ts +0 -1
  66. package/corpus/templates/clips/desktop/src/lib/recorder.ts +0 -8
  67. package/corpus/templates/clips/desktop/src/overlays/preparing.tsx +4 -6
  68. package/corpus/templates/clips/desktop/src/styles.css +18 -20
  69. package/corpus/templates/clips/desktop/src-tauri/src/clips/mod.rs +9 -17
  70. package/corpus/templates/content/.agents/skills/secrets/SKILL.md +5 -1
  71. package/corpus/templates/content/.agents/skills/workspace-conventions/SKILL.md +4 -1
  72. package/corpus/templates/content/CHANGELOG.md +503 -2
  73. package/corpus/templates/content/actions/_database-source-utils.ts +0 -3
  74. package/corpus/templates/content/actions/attach-content-database-source.ts +1 -4
  75. package/corpus/templates/content/actions/navigate.ts +2 -2
  76. package/corpus/templates/content/actions/prepare-builder-source-execution.ts +1 -1
  77. package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +0 -6
  78. package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +0 -580
  79. package/corpus/templates/content/app/components/editor/database/FormView.tsx +2 -2
  80. package/corpus/templates/content/app/components/editor/database/filter-sort.ts +1 -1
  81. package/corpus/templates/content/app/components/editor/database/settings.tsx +0 -23
  82. package/corpus/templates/content/app/components/editor/database/sidebar.tsx +0 -1
  83. package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +8 -304
  84. package/corpus/templates/content/app/hooks/use-documents.ts +0 -1
  85. package/corpus/templates/content/shared/api.ts +0 -1
  86. package/corpus/templates/content/shared/builder-mdx.ts +0 -1
  87. package/corpus/templates/content/shared/nfm.ts +1 -7
  88. package/corpus/templates/crm/.agents/skills/secrets/SKILL.md +5 -1
  89. package/corpus/templates/crm/.agents/skills/workspace-conventions/SKILL.md +4 -1
  90. package/corpus/templates/crm/CHANGELOG.md +31 -2
  91. package/corpus/templates/crm/actions/merge-crm-records.ts +0 -4
  92. package/corpus/templates/crm/app/components/crm/record/RecordLists.tsx +0 -1
  93. package/corpus/templates/crm/server/crm/hubspot-adapter.ts +0 -1
  94. package/corpus/templates/crm/server/crm/salesforce-adapter.ts +0 -1
  95. package/corpus/templates/crm/server/db/crm-store.ts +1 -1
  96. package/corpus/templates/design/.agents/skills/secrets/SKILL.md +5 -1
  97. package/corpus/templates/design/.agents/skills/workspace-conventions/SKILL.md +4 -1
  98. package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +1 -14
  99. package/corpus/templates/design/AGENTS.md +2 -1
  100. package/corpus/templates/design/CHANGELOG.md +870 -2
  101. package/corpus/templates/design/actions/apply-component-prop-edit.ts +1 -5
  102. package/corpus/templates/design/actions/generate-design.ts +0 -1
  103. package/corpus/templates/design/actions/generate-screens.ts +5 -2
  104. package/corpus/templates/design/actions/go-to-main-component.ts +2 -2
  105. package/corpus/templates/design/actions/list-design-systems.ts +10 -0
  106. package/corpus/templates/design/actions/navigate.ts +2 -2
  107. package/corpus/templates/design/actions/open-component-source.ts +4 -4
  108. package/corpus/templates/design/actions/present-design-variants.ts +1 -2
  109. package/corpus/templates/design/actions/run-design-audit.ts +0 -22
  110. package/corpus/templates/design/actions/show-design-questions.ts +5 -2
  111. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +19 -8
  112. package/corpus/templates/design/app/components/design/EditPanel.tsx +11 -183
  113. package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +21 -4
  114. package/corpus/templates/design/app/components/design/QuestionFlow.tsx +1 -5
  115. package/corpus/templates/design/app/components/design/bridge/codegen.ts +1 -1
  116. package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +10 -19
  117. package/corpus/templates/design/app/components/design/edit-panel/appearance-properties.tsx +1 -1
  118. package/corpus/templates/design/app/components/design/edit-panel/layout-properties.tsx +13 -3
  119. package/corpus/templates/design/app/components/design/edit-panel/panel-primitives.tsx +38 -32
  120. package/corpus/templates/design/app/components/design/edit-panel/position-layout-properties.tsx +1 -4
  121. package/corpus/templates/design/app/components/design/inspector/AlignmentMatrix.tsx +0 -4
  122. package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +15 -6
  123. package/corpus/templates/design/app/components/design/inspector/DesignColorPicker.tsx +2 -2
  124. package/corpus/templates/design/app/components/visual-editor/NodeRewriteProposal.tsx +0 -1
  125. package/corpus/templates/design/app/components/visual-editor/ReviewCanvasPins.tsx +1 -1
  126. package/corpus/templates/design/app/i18n-data.ts +122 -0
  127. package/corpus/templates/design/app/lib/clipboard-content-lineage.ts +11 -1
  128. package/corpus/templates/design/app/pages/DesignEditor.tsx +50 -254
  129. package/corpus/templates/design/app/pages/DesignSystemSetup.tsx +163 -8
  130. package/corpus/templates/design/app/pages/Index.tsx +17 -0
  131. package/corpus/templates/design/app/pages/design-editor/canvas-primitive-insert.ts +44 -32
  132. package/corpus/templates/design/app/pages/design-editor/canvas-primitives.ts +10 -0
  133. package/corpus/templates/design/app/pages/design-editor/clone-and-pen-edit.ts +49 -3
  134. package/corpus/templates/design/app/pages/design-editor/clone-idrefs.ts +31 -0
  135. package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +28 -0
  136. package/corpus/templates/design/app/pages/design-editor/commands/add-auto-layout.ts +3 -3
  137. package/corpus/templates/design/app/pages/design-editor/commands/align-selection.ts +44 -14
  138. package/corpus/templates/design/app/pages/design-editor/commands/apply-local-content-update.ts +16 -5
  139. package/corpus/templates/design/app/pages/design-editor/commands/change-selected-z-index.ts +1 -1
  140. package/corpus/templates/design/app/pages/design-editor/commands/frame-selection.ts +1 -1
  141. package/corpus/templates/design/app/pages/design-editor/commands/group-selection.ts +1 -1
  142. package/corpus/templates/design/app/pages/design-editor/commands/nudge-selection.ts +1 -1
  143. package/corpus/templates/design/app/pages/design-editor/commands/paste-selection.ts +142 -17
  144. package/corpus/templates/design/app/pages/design-editor/commands/screen-visual-duplicate-change.ts +1 -0
  145. package/corpus/templates/design/app/pages/design-editor/commands/ungroup-selection.ts +1 -1
  146. package/corpus/templates/design/app/pages/design-editor/commands/visual-duplicate-change.ts +1 -0
  147. package/corpus/templates/design/app/pages/design-editor/cross-screen-text-color.ts +25 -9
  148. package/corpus/templates/design/app/pages/design-editor/editor-state.ts +1 -0
  149. package/corpus/templates/design/app/pages/design-editor/measure-child-rects.ts +83 -0
  150. package/corpus/templates/design/app/pages/design-editor/paste-placement.ts +66 -0
  151. package/corpus/templates/design/server/routes/[...page].get.ts +0 -1
  152. package/corpus/templates/design/shared/code-layer.ts +120 -70
  153. package/corpus/templates/design/shared/design-surface-index.ts +0 -1
  154. package/corpus/templates/design/shared/pen-path.ts +0 -4
  155. package/corpus/templates/dispatch/.agents/skills/secrets/SKILL.md +5 -1
  156. package/corpus/templates/dispatch/.agents/skills/workspace-conventions/SKILL.md +4 -1
  157. package/corpus/templates/dispatch/CHANGELOG.md +196 -2
  158. package/corpus/templates/dispatch/app/routes/integrations.tsx +0 -109
  159. package/corpus/templates/factory/.agents/skills/secrets/SKILL.md +5 -1
  160. package/corpus/templates/factory/.agents/skills/workspace-conventions/SKILL.md +4 -1
  161. package/corpus/templates/factory/CHANGELOG.md +121 -2
  162. package/corpus/templates/factory/actions/navigate.ts +2 -2
  163. package/corpus/templates/factory/app/components/factory/FactoryAuditView.tsx +0 -13
  164. package/corpus/templates/factory/app/routes/factory.tsx +0 -1
  165. package/corpus/templates/factory/server/factory-graph/store.ts +0 -1
  166. package/corpus/templates/forms/.agents/skills/secrets/SKILL.md +5 -1
  167. package/corpus/templates/forms/.agents/skills/workspace-conventions/SKILL.md +4 -1
  168. package/corpus/templates/forms/CHANGELOG.md +166 -2
  169. package/corpus/templates/macros/.agents/skills/secrets/SKILL.md +5 -1
  170. package/corpus/templates/macros/.agents/skills/workspace-conventions/SKILL.md +4 -1
  171. package/corpus/templates/macros/CHANGELOG.md +49 -2
  172. package/corpus/templates/macros/app/components/layout/AppLayout.tsx +0 -1
  173. package/corpus/templates/mail/.agents/skills/secrets/SKILL.md +5 -1
  174. package/corpus/templates/mail/.agents/skills/workspace-conventions/SKILL.md +4 -1
  175. package/corpus/templates/mail/CHANGELOG.md +201 -2
  176. package/corpus/templates/mail/app/components/email/EmailList.tsx +0 -1
  177. package/corpus/templates/mail/app/components/layout/AppLayout.tsx +2 -2
  178. package/corpus/templates/mail/shared/markdown.ts +3 -0
  179. package/corpus/templates/plan/.agents/skills/secrets/SKILL.md +5 -1
  180. package/corpus/templates/plan/.agents/skills/workspace-conventions/SKILL.md +4 -1
  181. package/corpus/templates/plan/CHANGELOG.md +277 -2
  182. package/corpus/templates/slides/.agents/skills/secrets/SKILL.md +5 -1
  183. package/corpus/templates/slides/.agents/skills/workspace-conventions/SKILL.md +4 -1
  184. package/corpus/templates/slides/CHANGELOG.md +437 -2
  185. package/corpus/templates/slides/actions/add-slide.ts +0 -1
  186. package/corpus/templates/slides/actions/list-decks.ts +1 -1
  187. package/corpus/templates/slides/app/components/editor/EditorSidebar.tsx +1 -4
  188. package/corpus/templates/slides/app/components/editor/SlideContextToolbar.tsx +0 -1
  189. package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +1 -1
  190. package/corpus/templates/slides/app/pages/DeckEditor.tsx +1 -6
  191. package/corpus/templates/tasks/.agents/skills/secrets/SKILL.md +5 -1
  192. package/corpus/templates/tasks/.agents/skills/workspace-conventions/SKILL.md +4 -1
  193. package/corpus/templates/tasks/CHANGELOG.md +32 -2
  194. package/corpus/templates/tasks/app/components/layout/Layout.tsx +0 -1
  195. package/corpus/templates/tasks/app/hooks/use-visible-task-fields.ts +1 -4
  196. package/corpus/templates/tasks/server/custom-fields/store.ts +1 -6
  197. package/corpus/templates/tasks/shared/list-screen-snapshot.ts +2 -2
  198. package/dist/agent/engine/registry.js +27 -14
  199. package/dist/agent/index.d.ts +1 -1
  200. package/dist/agent/production-agent.d.ts +19 -6
  201. package/dist/agent/production-agent.js +57 -16
  202. package/dist/agent/types.d.ts +3 -0
  203. package/dist/changelog/parse.d.ts +3 -3
  204. package/dist/changelog/parse.js +35 -16
  205. package/dist/client/EnvironmentBadge.d.ts +1 -0
  206. package/dist/client/EnvironmentBadge.js +7 -0
  207. package/dist/collab/awareness.d.ts +2 -2
  208. package/dist/collab/routes.d.ts +1 -1
  209. package/dist/collab/struct-routes.d.ts +1 -1
  210. package/dist/config.d.ts +11 -0
  211. package/dist/config.js +248 -0
  212. package/dist/deploy/build.js +12 -1
  213. package/dist/index.d.ts +1 -1
  214. package/dist/notifications/routes.d.ts +3 -3
  215. package/dist/observability/routes.d.ts +6 -6
  216. package/dist/resources/handlers.d.ts +2 -2
  217. package/dist/secrets/routes.d.ts +9 -9
  218. package/dist/server/agent-chat/plugin-options.d.ts +3 -2
  219. package/dist/server/agent-chat-plugin.js +5 -2
  220. package/dist/server/index.d.ts +1 -1
  221. package/dist/server/realtime-token.d.ts +1 -1
  222. package/dist/server/transcribe-voice.d.ts +1 -1
  223. package/dist/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
  224. package/dist/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
  225. package/dist/templates/chat/CHANGELOG.md +89 -2
  226. package/dist/templates/chat/actions/navigate.ts +2 -2
  227. package/dist/templates/default/.agents/skills/secrets/SKILL.md +5 -1
  228. package/dist/templates/default/.agents/skills/workspace-conventions/SKILL.md +4 -1
  229. package/dist/templates/headless/.agents/skills/secrets/SKILL.md +5 -1
  230. package/dist/templates/workspace-core/.agents/skills/secrets/SKILL.md +5 -1
  231. package/dist/templates/workspace-core/.agents/skills/workspace-conventions/SKILL.md +4 -1
  232. package/dist/vite/agent-native-config-loader.d.ts +1 -0
  233. package/dist/vite/agent-native-config-loader.js +3 -3
  234. package/dist/vite/agents-bundle-plugin.d.ts +1 -1
  235. package/dist/vite/agents-bundle-plugin.js +13 -1
  236. package/dist/vite/client.js +14 -14
  237. package/docs/content/agent-native-config.mdx +62 -11
  238. package/docs/content/agent-surfaces.mdx +6 -0
  239. package/docs/content/environment-variables.mdx +5 -2
  240. package/package.json +3 -3
  241. package/src/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
  242. package/src/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
  243. package/src/templates/chat/CHANGELOG.md +89 -2
  244. package/src/templates/chat/actions/navigate.ts +2 -2
  245. package/src/templates/default/.agents/skills/secrets/SKILL.md +5 -1
  246. package/src/templates/default/.agents/skills/workspace-conventions/SKILL.md +4 -1
  247. package/src/templates/headless/.agents/skills/secrets/SKILL.md +5 -1
  248. package/src/templates/workspace-core/.agents/skills/secrets/SKILL.md +5 -1
  249. package/src/templates/workspace-core/.agents/skills/workspace-conventions/SKILL.md +4 -1
@@ -1478,6 +1478,9 @@ const enUS = {
1478
1478
  continue: "Continue to generation",
1479
1479
  starting: "Starting...",
1480
1480
  githubIndexStarted: "GitHub indexing started",
1481
+ designMdIndexStarted: "design.md indexing started",
1482
+ designMdUpload: "Upload design.md",
1483
+ designMdHelp: "Import design.md guidance into Builder DSI",
1481
1484
  title: "Set up your design system",
1482
1485
  description:
1483
1486
  "Connect Figma, code, and optional design.md guidance through Builder DSI. More context gives the agent a more accurate system.",
@@ -1542,6 +1545,11 @@ const enUS = {
1542
1545
  "Use a full GitHub repository URL, like https://github.com/org/repo.",
1543
1546
  githubIndex:
1544
1547
  "Could not start GitHub indexing. Check your Builder connection and repository access.",
1548
+ chooseDesignMd: "Please choose a design.md or design.mdx file.",
1549
+ readDesignMd: "Could not read the design.md file.",
1550
+ designMdTooLarge: "design.md must be 2 MB or smaller.",
1551
+ designMdIndex:
1552
+ "Could not start design.md indexing. Check your Builder connection.",
1545
1553
  noSources: "Add at least one source before generating a design system.",
1546
1554
  },
1547
1555
  sections: {
@@ -1559,6 +1567,10 @@ const enUS = {
1559
1567
  description:
1560
1568
  "GitHub repos, local source files, and optional design.md guidance for Builder DSI",
1561
1569
  },
1570
+ designMd: {
1571
+ title: "Import design.md",
1572
+ description: "Use a design.md file as the design system source",
1573
+ },
1562
1574
  designFiles: {
1563
1575
  title: "Reference files",
1564
1576
  description: "Documents, screenshots, logos, fonts, and brand assets",
@@ -1960,6 +1972,9 @@ const designLocaleOverrides = {
1960
1972
  continue: "继续生成",
1961
1973
  starting: "正在启动…",
1962
1974
  githubIndexStarted: "GitHub 索引已开始",
1975
+ designMdIndexStarted: "design.md 索引已开始",
1976
+ designMdUpload: "上传 design.md",
1977
+ designMdHelp: "将 design.md 指引导入 Builder DSI",
1963
1978
  title: "设置您的设计系统",
1964
1979
  description:
1965
1980
  "通过 Builder DSI 连接 Figma、代码和可选的 design.md 指引。上下文越多,代理得到的系统越准确。",
@@ -2016,6 +2031,10 @@ const designLocaleOverrides = {
2016
2031
  "使用完整的 GitHub 存储库 URL,例如 https://github.com/org/repo。",
2017
2032
  githubIndex:
2018
2033
  "无法启动 GitHub 索引。请检查 Builder 连接和仓库访问权限。",
2034
+ chooseDesignMd: "请选择 design.md 或 design.mdx 文件。",
2035
+ readDesignMd: "无法读取 design.md 文件。",
2036
+ designMdTooLarge: "design.md 必须不超过 2 MB。",
2037
+ designMdIndex: "无法启动 design.md 索引。请检查 Builder 连接。",
2019
2038
  noSources: "在生成设计系统之前至少添加一个源。",
2020
2039
  },
2021
2040
  sections: {
@@ -2033,6 +2052,10 @@ const designLocaleOverrides = {
2033
2052
  description:
2034
2053
  "GitHub 存储库、本地代码文件或 design.md 会交给 Builder DSI 索引。",
2035
2054
  },
2055
+ designMd: {
2056
+ title: "导入 design.md",
2057
+ description: "使用 design.md 文件作为设计系统来源",
2058
+ },
2036
2059
  designFiles: {
2037
2060
  title: "参考文件",
2038
2061
  description: "文档、截图和品牌资产会补充 Builder DSI 的索引上下文",
@@ -2376,6 +2399,9 @@ const designLocaleOverrides = {
2376
2399
  continue: "continuar con la generación",
2377
2400
  starting: "Iniciando…",
2378
2401
  githubIndexStarted: "La indexación de GitHub ha comenzado",
2402
+ designMdIndexStarted: "La indexación de design.md ha comenzado",
2403
+ designMdUpload: "Importar design.md",
2404
+ designMdHelp: "Importa las directrices de design.md a Builder DSI",
2379
2405
  title: "Configure su sistema de diseño",
2380
2406
  description:
2381
2407
  "Conecta Figma, código y guía opcional de design.md mediante Builder DSI. Más contexto le da al agente un sistema más preciso.",
@@ -2442,6 +2468,11 @@ const designLocaleOverrides = {
2442
2468
  "Utilice un repositorio GitHub completo URL, como https://github.com/org/repo.",
2443
2469
  githubIndex:
2444
2470
  "No se pudo iniciar la indexación de GitHub. Comprueba la conexión de Builder y el acceso al repositorio.",
2471
+ chooseDesignMd: "Elija un archivo design.md o design.mdx.",
2472
+ readDesignMd: "No se pudo leer el archivo design.md.",
2473
+ designMdTooLarge: "design.md debe tener un tamaño máximo de 2 MB.",
2474
+ designMdIndex:
2475
+ "No se pudo iniciar la indexación de design.md. Comprueba la conexión de Builder.",
2445
2476
  noSources:
2446
2477
  "Agregue al menos una fuente antes de generar un sistema de diseño.",
2447
2478
  },
@@ -2460,6 +2491,11 @@ const designLocaleOverrides = {
2460
2491
  description:
2461
2492
  "Repositorios de GitHub, archivos de código locales o design.md se indexan con Builder DSI.",
2462
2493
  },
2494
+ designMd: {
2495
+ title: "Importar design.md",
2496
+ description:
2497
+ "Usa un archivo design.md como fuente del sistema de diseño",
2498
+ },
2463
2499
  designFiles: {
2464
2500
  title: "Archivos de referencia",
2465
2501
  description:
@@ -2814,6 +2850,9 @@ const designLocaleOverrides = {
2814
2850
  continue: "Continuer jusqu'à la génération",
2815
2851
  starting: "Démarrage…",
2816
2852
  githubIndexStarted: "L’indexation GitHub a démarré",
2853
+ designMdIndexStarted: "L’indexation de design.md a démarré",
2854
+ designMdUpload: "Importer design.md",
2855
+ designMdHelp: "Importez les consignes design.md dans Builder DSI",
2817
2856
  title: "Configurez votre système de conception",
2818
2857
  description:
2819
2858
  "Connectez Figma, le code et les consignes design.md facultatives via Builder DSI. Plus le contexte est riche, plus le système de l’agent est précis.",
@@ -2881,6 +2920,11 @@ const designLocaleOverrides = {
2881
2920
  "Utilisez un référentiel GitHub complet URL, comme https://github.com/org/repo.",
2882
2921
  githubIndex:
2883
2922
  "Impossible de démarrer l’indexation GitHub. Vérifiez la connexion à Builder et l’accès au dépôt.",
2923
+ chooseDesignMd: "Veuillez choisir un fichier design.md ou design.mdx.",
2924
+ readDesignMd: "Impossible de lire le fichier design.md.",
2925
+ designMdTooLarge: "design.md doit faire 2 Mo ou moins.",
2926
+ designMdIndex:
2927
+ "Impossible de démarrer l’indexation de design.md. Vérifiez la connexion à Builder.",
2884
2928
  noSources:
2885
2929
  "Ajoutez au moins une source avant de générer un système de conception.",
2886
2930
  },
@@ -2899,6 +2943,11 @@ const designLocaleOverrides = {
2899
2943
  description:
2900
2944
  "Les dépôts GitHub, fichiers de code locaux ou design.md sont indexés par Builder DSI.",
2901
2945
  },
2946
+ designMd: {
2947
+ title: "Importer design.md",
2948
+ description:
2949
+ "Utilisez un fichier design.md comme source du système de conception",
2950
+ },
2902
2951
  designFiles: {
2903
2952
  title: "Fichiers de référence",
2904
2953
  description:
@@ -3253,6 +3302,9 @@ const designLocaleOverrides = {
3253
3302
  continue: "Weiter zur Generation",
3254
3303
  starting: "Wird gestartet…",
3255
3304
  githubIndexStarted: "GitHub-Indizierung gestartet",
3305
+ designMdIndexStarted: "design.md-Indizierung gestartet",
3306
+ designMdUpload: "design.md importieren",
3307
+ designMdHelp: "design.md-Anweisungen in Builder DSI importieren",
3256
3308
  title: "Richten Sie Ihr Designsystem ein",
3257
3309
  description:
3258
3310
  "Verbinde Figma, Code und optionale design.md-Anweisungen über Builder DSI. Mehr Kontext gibt dem Agenten ein genaueres System.",
@@ -3321,6 +3373,11 @@ const designLocaleOverrides = {
3321
3373
  "Verwenden Sie ein vollständiges GitHub-Repository URL, wie https://github.com/org/repo.",
3322
3374
  githubIndex:
3323
3375
  "GitHub-Indizierung konnte nicht gestartet werden. Prüfe die Builder-Verbindung und den Repository-Zugriff.",
3376
+ chooseDesignMd: "Wählen Sie eine design.md- oder design.mdx-Datei aus.",
3377
+ readDesignMd: "Die design.md-Datei konnte nicht gelesen werden.",
3378
+ designMdTooLarge: "design.md darf höchstens 2 MB groß sein.",
3379
+ designMdIndex:
3380
+ "Die design.md-Indizierung konnte nicht gestartet werden. Prüfen Sie die Builder-Verbindung.",
3324
3381
  noSources:
3325
3382
  "Fügen Sie mindestens eine Quelle hinzu, bevor Sie ein Designsystem erstellen.",
3326
3383
  },
@@ -3339,6 +3396,11 @@ const designLocaleOverrides = {
3339
3396
  description:
3340
3397
  "GitHub-Repositories, lokale Code-Dateien oder design.md werden mit Builder DSI indexiert.",
3341
3398
  },
3399
+ designMd: {
3400
+ title: "design.md importieren",
3401
+ description:
3402
+ "Eine design.md-Datei als Quelle für das Designsystem verwenden",
3403
+ },
3342
3404
  designFiles: {
3343
3405
  title: "Referenzdateien",
3344
3406
  description:
@@ -3691,6 +3753,9 @@ const designLocaleOverrides = {
3691
3753
  continue: "世代を継続する",
3692
3754
  starting: "開始中…",
3693
3755
  githubIndexStarted: "GitHub のインデックス作成を開始しました",
3756
+ designMdIndexStarted: "design.md のインデックス作成を開始しました",
3757
+ designMdUpload: "design.md をインポート",
3758
+ designMdHelp: "design.md ガイドを Builder DSI にインポートします",
3694
3759
  title: "デザインシステムをセットアップする",
3695
3760
  description:
3696
3761
  "Figma、コード、任意の design.md ガイドを Builder DSI で接続します。コンテキストが多いほど、エージェントのシステムは正確になります。",
@@ -3757,6 +3822,12 @@ const designLocaleOverrides = {
3757
3822
  "https://github.com/org/repo など、完全な GitHub リポジトリ URL を使用します。",
3758
3823
  githubIndex:
3759
3824
  "GitHub のインデックス作成を開始できませんでした。Builder の接続とリポジトリへのアクセスを確認してください。",
3825
+ chooseDesignMd:
3826
+ "design.md または design.mdx ファイルを選択してください。",
3827
+ readDesignMd: "design.md ファイルを読み込めませんでした。",
3828
+ designMdTooLarge: "design.md は 2 MB 以下にしてください。",
3829
+ designMdIndex:
3830
+ "design.md のインデックス作成を開始できませんでした。Builder の接続を確認してください。",
3760
3831
  noSources:
3761
3832
  "デザイン システムを生成する前に、少なくとも 1 つのソースを追加します。",
3762
3833
  },
@@ -3775,6 +3846,10 @@ const designLocaleOverrides = {
3775
3846
  description:
3776
3847
  "GitHub リポジトリ、ローカルコードファイル、design.md は Builder DSI でインデックス化されます。",
3777
3848
  },
3849
+ designMd: {
3850
+ title: "design.md をインポート",
3851
+ description: "design.md ファイルをデザインシステムのソースとして使用",
3852
+ },
3778
3853
  designFiles: {
3779
3854
  title: "参照ファイル",
3780
3855
  description:
@@ -4124,6 +4199,9 @@ const designLocaleOverrides = {
4124
4199
  continue: "세대를 이어가다",
4125
4200
  starting: "시작 중…",
4126
4201
  githubIndexStarted: "GitHub 인덱싱이 시작되었습니다",
4202
+ designMdIndexStarted: "design.md 인덱싱이 시작되었습니다",
4203
+ designMdUpload: "design.md 가져오기",
4204
+ designMdHelp: "design.md 지침을 Builder DSI로 가져오기",
4127
4205
  title: "디자인 시스템 설정",
4128
4206
  description:
4129
4207
  "Figma, 코드, 선택적 design.md 지침을 Builder DSI로 연결하세요. 맥락이 많을수록 에이전트의 시스템이 더 정확해집니다.",
@@ -4186,6 +4264,11 @@ const designLocaleOverrides = {
4186
4264
  "https://github.com/org/repo와 같은 전체 GitHub 저장소 URL를 사용하세요.",
4187
4265
  githubIndex:
4188
4266
  "GitHub 인덱싱을 시작할 수 없습니다. Builder 연결과 저장소 접근 권한을 확인하세요.",
4267
+ chooseDesignMd: "design.md 또는 design.mdx 파일을 선택하세요.",
4268
+ readDesignMd: "design.md 파일을 읽을 수 없습니다.",
4269
+ designMdTooLarge: "design.md 파일은 2MB 이하여야 합니다.",
4270
+ designMdIndex:
4271
+ "design.md 인덱싱을 시작할 수 없습니다. Builder 연결을 확인하세요.",
4189
4272
  noSources: "디자인 시스템을 생성하기 전에 소스를 하나 이상 추가하세요.",
4190
4273
  },
4191
4274
  sections: {
@@ -4203,6 +4286,10 @@ const designLocaleOverrides = {
4203
4286
  description:
4204
4287
  "GitHub 저장소, 로컬 코드 파일 또는 design.md가 Builder DSI로 색인화됩니다.",
4205
4288
  },
4289
+ designMd: {
4290
+ title: "design.md 가져오기",
4291
+ description: "design.md 파일을 디자인 시스템 소스로 사용",
4292
+ },
4206
4293
  designFiles: {
4207
4294
  title: "참조 파일",
4208
4295
  description:
@@ -4551,6 +4638,9 @@ const designLocaleOverrides = {
4551
4638
  continue: "Continuar para a geração",
4552
4639
  starting: "Iniciando…",
4553
4640
  githubIndexStarted: "Indexação do GitHub iniciada",
4641
+ designMdIndexStarted: "Indexação do design.md iniciada",
4642
+ designMdUpload: "Importar design.md",
4643
+ designMdHelp: "Importe as orientações de design.md para o Builder DSI",
4554
4644
  title: "Configure seu sistema de design",
4555
4645
  description:
4556
4646
  "Conecte Figma, código e orientações opcionais de design.md pelo Builder DSI. Mais contexto dá ao agente um sistema mais preciso.",
@@ -4616,6 +4706,11 @@ const designLocaleOverrides = {
4616
4706
  "Use um repositório GitHub completo URL, como https://github.com/org/repo.",
4617
4707
  githubIndex:
4618
4708
  "Não foi possível iniciar a indexação do GitHub. Verifique a conexão do Builder e o acesso ao repositório.",
4709
+ chooseDesignMd: "Escolha um arquivo design.md ou design.mdx.",
4710
+ readDesignMd: "Não foi possível ler o arquivo design.md.",
4711
+ designMdTooLarge: "design.md deve ter no máximo 2 MB.",
4712
+ designMdIndex:
4713
+ "Não foi possível iniciar a indexação do design.md. Verifique a conexão do Builder.",
4619
4714
  noSources:
4620
4715
  "Adicione pelo menos uma fonte antes de gerar um sistema de design.",
4621
4716
  },
@@ -4634,6 +4729,11 @@ const designLocaleOverrides = {
4634
4729
  description:
4635
4730
  "Repositórios GitHub, arquivos de código locais ou design.md são indexados com Builder DSI.",
4636
4731
  },
4732
+ designMd: {
4733
+ title: "Importar design.md",
4734
+ description:
4735
+ "Usar um arquivo design.md como fonte do sistema de design",
4736
+ },
4637
4737
  designFiles: {
4638
4738
  title: "Arquivos de referência",
4639
4739
  description:
@@ -4984,6 +5084,9 @@ const designLocaleOverrides = {
4984
5084
  continue: "पीढ़ी तक जारी रखें",
4985
5085
  starting: "शुरू हो रहा है…",
4986
5086
  githubIndexStarted: "GitHub इंडेक्सिंग शुरू हो गई",
5087
+ designMdIndexStarted: "design.md इंडेक्सिंग शुरू हो गई",
5088
+ designMdUpload: "design.md आयात करें",
5089
+ designMdHelp: "design.md मार्गदर्शन को Builder DSI में आयात करें",
4987
5090
  title: "अपना डिज़ाइन सिस्टम सेट करें",
4988
5091
  description:
4989
5092
  "Figma, कोड और वैकल्पिक design.md मार्गदर्शन को Builder DSI से कनेक्ट करें. अधिक संदर्भ एजेंट को अधिक सटीक सिस्टम देता है.",
@@ -5044,6 +5147,10 @@ const designLocaleOverrides = {
5044
5147
  "https://github.com/org/repo जैसे पूर्ण GitHub रिपॉजिटरी URL का उपयोग करें।",
5045
5148
  githubIndex:
5046
5149
  "GitHub इंडेक्सिंग शुरू नहीं हो सकी। Builder कनेक्शन और रिपॉजिटरी एक्सेस जाँचें।",
5150
+ chooseDesignMd: "कृपया design.md या design.mdx फ़ाइल चुनें।",
5151
+ readDesignMd: "design.md फ़ाइल पढ़ी नहीं जा सकी।",
5152
+ designMdTooLarge: "design.md 2 MB या उससे छोटा होना चाहिए।",
5153
+ designMdIndex: "design.md इंडेक्सिंग शुरू नहीं हो सकी। Builder कनेक्शन जाँचें।",
5047
5154
  noSources: "डिज़ाइन सिस्टम तैयार करने से पहले कम से कम एक स्रोत जोड़ें।",
5048
5155
  },
5049
5156
  sections: {
@@ -5061,6 +5168,10 @@ const designLocaleOverrides = {
5061
5168
  description:
5062
5169
  "GitHub रिपॉज़िटरी, स्थानीय कोड फ़ाइलें या design.md Builder DSI से index होते हैं.",
5063
5170
  },
5171
+ designMd: {
5172
+ title: "design.md आयात करें",
5173
+ description: "डिज़ाइन सिस्टम के स्रोत के रूप में design.md फ़ाइल का उपयोग करें",
5174
+ },
5064
5175
  designFiles: {
5065
5176
  title: "संदर्भ फ़ाइलें",
5066
5177
  description:
@@ -5407,6 +5518,9 @@ const designLocaleOverrides = {
5407
5518
  continue: "الاستمرار في الجيل",
5408
5519
  starting: "جارٍ البدء…",
5409
5520
  githubIndexStarted: "بدأت فهرسة GitHub",
5521
+ designMdIndexStarted: "بدأت فهرسة design.md",
5522
+ designMdUpload: "استيراد design.md",
5523
+ designMdHelp: "استيراد إرشادات design.md إلى Builder DSI",
5410
5524
  title: "قم بإعداد نظام التصميم الخاص بك",
5411
5525
  description:
5412
5526
  "اربط Figma والكود وإرشادات design.md الاختيارية عبر Builder DSI. كلما زاد السياق، حصل الوكيل على نظام أدق.",
@@ -5469,6 +5583,10 @@ const designLocaleOverrides = {
5469
5583
  "استخدم مستودع GitHub الكامل URL، مثل https://github.com/org/repo.",
5470
5584
  githubIndex:
5471
5585
  "تعذر بدء فهرسة GitHub. تحقق من اتصال Builder ومن صلاحية الوصول إلى المستودع.",
5586
+ chooseDesignMd: "يرجى اختيار ملف design.md أو design.mdx.",
5587
+ readDesignMd: "تعذر قراءة ملف design.md.",
5588
+ designMdTooLarge: "يجب ألا يتجاوز حجم design.md ‏2 ميغابايت.",
5589
+ designMdIndex: "تعذر بدء فهرسة design.md. تحقق من اتصال Builder.",
5472
5590
  noSources: "أضف مصدرًا واحدًا على الأقل قبل إنشاء نظام التصميم.",
5473
5591
  },
5474
5592
  sections: {
@@ -5486,6 +5604,10 @@ const designLocaleOverrides = {
5486
5604
  description:
5487
5605
  "تتم فهرسة مستودعات GitHub أو ملفات الكود المحلية أو design.md عبر Builder DSI.",
5488
5606
  },
5607
+ designMd: {
5608
+ title: "استيراد design.md",
5609
+ description: "استخدم ملف design.md كمصدر لنظام التصميم",
5610
+ },
5489
5611
  designFiles: {
5490
5612
  title: "ملفات مرجعية",
5491
5613
  description:
@@ -25,8 +25,18 @@ export function publishClipboardContentMutation(args: {
25
25
  nextContent: string;
26
26
  nextContentHash: string;
27
27
  origin: ClipboardContentMutationOrigin;
28
+ /**
29
+ * "document" means the base was read from the live document. Ordinary edits
30
+ * never advance the lineage, so a lineage disagreeing with such a base is
31
+ * behind it and is superseded, not a competing generation to reject.
32
+ */
33
+ baseSource?: "lineage" | "document";
28
34
  }): ClipboardContentLineage | null {
29
- if (args.current && args.current.contentHash !== args.baseContentHash) {
35
+ if (
36
+ args.current &&
37
+ args.current.contentHash !== args.baseContentHash &&
38
+ args.baseSource !== "document"
39
+ ) {
30
40
  return null;
31
41
  }
32
42
  return {