@agent-native/core 0.80.9 → 0.80.10

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 (111) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +7 -0
  3. package/corpus/core/package.json +1 -1
  4. package/corpus/core/src/cli/design-connect.ts +28 -2
  5. package/corpus/core/src/cli/skills.ts +45 -24
  6. package/corpus/templates/design/DESIGN-STUDIO-PLAN.md +717 -0
  7. package/corpus/templates/design/actions/add-breakpoint.ts +143 -0
  8. package/corpus/templates/design/actions/add-localhost-screens.ts +5 -0
  9. package/corpus/templates/design/actions/apply-a11y-fix.ts +317 -0
  10. package/corpus/templates/design/actions/apply-component-prop-edit.ts +433 -0
  11. package/corpus/templates/design/actions/apply-design-state.ts +200 -0
  12. package/corpus/templates/design/actions/apply-design-token-edit.ts +202 -0
  13. package/corpus/templates/design/actions/apply-motion-edit.ts +450 -0
  14. package/corpus/templates/design/actions/apply-shader-fill.ts +404 -0
  15. package/corpus/templates/design/actions/apply-visual-edit.ts +191 -5
  16. package/corpus/templates/design/actions/capture-design-state.ts +224 -0
  17. package/corpus/templates/design/actions/connect-builder-app.ts +162 -0
  18. package/corpus/templates/design/actions/create-component.ts +447 -0
  19. package/corpus/templates/design/actions/create-design-branch.ts +263 -0
  20. package/corpus/templates/design/actions/create-design-state.ts +162 -0
  21. package/corpus/templates/design/actions/delete-design-state.ts +55 -0
  22. package/corpus/templates/design/actions/deploy-design-preview.ts +275 -0
  23. package/corpus/templates/design/actions/get-component-details.ts +242 -0
  24. package/corpus/templates/design/actions/get-design-branch-diff.ts +362 -0
  25. package/corpus/templates/design/actions/get-design-review.ts +314 -0
  26. package/corpus/templates/design/actions/get-design-surface-index.ts +582 -0
  27. package/corpus/templates/design/actions/get-motion-timeline.ts +99 -0
  28. package/corpus/templates/design/actions/index-components.ts +258 -0
  29. package/corpus/templates/design/actions/index-design-tokens.ts +273 -0
  30. package/corpus/templates/design/actions/list-design-extensions.ts +309 -0
  31. package/corpus/templates/design/actions/list-design-source-capabilities.ts +153 -0
  32. package/corpus/templates/design/actions/list-design-states.ts +72 -0
  33. package/corpus/templates/design/actions/migrate-inline-design-to-app.ts +298 -0
  34. package/corpus/templates/design/actions/open-component-source.ts +237 -0
  35. package/corpus/templates/design/actions/preview-component-prop-edit.ts +254 -0
  36. package/corpus/templates/design/actions/preview-design-token-edit.ts +113 -0
  37. package/corpus/templates/design/actions/preview-shader-fill.ts +189 -0
  38. package/corpus/templates/design/actions/remove-breakpoint.ts +103 -0
  39. package/corpus/templates/design/actions/remove-motion-timeline.ts +196 -0
  40. package/corpus/templates/design/actions/run-design-audit.ts +421 -0
  41. package/corpus/templates/design/actions/run-design-extension-action.ts +284 -0
  42. package/corpus/templates/design/actions/set-active-breakpoint.ts +39 -0
  43. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +1414 -71
  44. package/corpus/templates/design/app/components/design/DesignExtensionsPanel.tsx +632 -43
  45. package/corpus/templates/design/app/components/design/DrawOverlay.tsx +1 -1
  46. package/corpus/templates/design/app/components/design/EditPanel.tsx +1391 -52
  47. package/corpus/templates/design/app/components/design/LayersPanel.tsx +4 -3
  48. package/corpus/templates/design/app/components/design/LocalSourceEditBanner.tsx +157 -0
  49. package/corpus/templates/design/app/components/design/MotionDock.tsx +1062 -0
  50. package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +1052 -98
  51. package/corpus/templates/design/app/components/design/ReviewPanel.tsx +759 -0
  52. package/corpus/templates/design/app/components/design/StatesPanel.tsx +579 -0
  53. package/corpus/templates/design/app/components/design/TokensPanel.tsx +573 -0
  54. package/corpus/templates/design/app/components/design/canvas-primitive-style.ts +241 -0
  55. package/corpus/templates/design/app/components/design/index.ts +16 -0
  56. package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +15 -6
  57. package/corpus/templates/design/app/components/design/inspector/DesignColorPicker.tsx +66 -3
  58. package/corpus/templates/design/app/components/design/inspector/InspectorAiActions.tsx +145 -0
  59. package/corpus/templates/design/app/components/design/inspector/SHADER_INTEGRATION.md +42 -12
  60. package/corpus/templates/design/app/components/visual-editor/DrawOverlay.tsx +1 -1
  61. package/corpus/templates/design/app/hooks/useAgentEditRequest.ts +131 -0
  62. package/corpus/templates/design/app/hooks/useDesignHotkeys.ts +3 -1
  63. package/corpus/templates/design/app/i18n/zh-TW.ts +31 -0
  64. package/corpus/templates/design/app/i18n-data.ts +269 -0
  65. package/corpus/templates/design/app/pages/DesignEditor.tsx +2478 -386
  66. package/corpus/templates/design/changelog/2026-06-29-added-a-review-panel-in-the-design-editor-s-inspector-with-a.md +6 -0
  67. package/corpus/templates/design/changelog/2026-06-29-copying-and-pasting-layers-no-longer-shows-success-notificat.md +6 -0
  68. package/corpus/templates/design/changelog/2026-06-29-device-presets-in-all-screens-view-resize-the-selected-previ.md +6 -0
  69. package/corpus/templates/design/changelog/2026-06-29-layer-and-canvas-drags-keep-the-layer-list-stable-while-chan.md +6 -0
  70. package/corpus/templates/design/changelog/2026-06-29-layer-moves-can-be-undone-and-redone-without-flashing-the-ca.md +6 -0
  71. package/corpus/templates/design/changelog/2026-06-29-screen-previews-use-a-single-blue-hover-border-in-all-screen.md +6 -0
  72. package/corpus/templates/design/changelog/2026-06-29-selected-containers-show-draggable-padding-and-gap-guides-on.md +6 -0
  73. package/corpus/templates/design/changelog/2026-06-29-the-design-editor-adds-a-studio-layer-with-tokens-respon.md +6 -0
  74. package/corpus/templates/design/changelog/2026-06-30-accessibility-findings-now-offer-a-one-click-fix.md +6 -0
  75. package/corpus/templates/design/changelog/2026-06-30-component-instances-now-have-editable-props-in-the-inspe.md +6 -0
  76. package/corpus/templates/design/changelog/2026-06-30-inspect-code-now-shows-the-elements-opening-tag-at-a-gla.md +6 -0
  77. package/corpus/templates/design/changelog/2026-06-30-shader-fill-presets-can-now-be-applied-to-an-element.md +6 -0
  78. package/corpus/templates/design/changelog/2026-06-30-the-motion-timeline-can-now-add-a-track-to-any-element-a.md +6 -0
  79. package/corpus/templates/design/changelog/2026-06-30-visual-editor-selection-layer-paint-and-drawing-controls-are-more-reliable.md +6 -0
  80. package/corpus/templates/design/e2e/helpers.ts +10 -4
  81. package/corpus/templates/design/server/db/schema.ts +123 -0
  82. package/corpus/templates/design/server/plugins/db.ts +90 -0
  83. package/corpus/templates/design/shared/builder-app.ts +297 -0
  84. package/corpus/templates/design/shared/capability-resolver.ts +123 -0
  85. package/corpus/templates/design/shared/capture-sanitize.ts +70 -0
  86. package/corpus/templates/design/shared/code-layer.ts +1016 -71
  87. package/corpus/templates/design/shared/component-model.ts +239 -0
  88. package/corpus/templates/design/shared/design-review.ts +275 -0
  89. package/corpus/templates/design/shared/design-source-capabilities.ts +286 -0
  90. package/corpus/templates/design/shared/design-state.ts +112 -0
  91. package/corpus/templates/design/shared/design-surface-index.ts +258 -0
  92. package/corpus/templates/design/shared/motion-compiler.ts +278 -0
  93. package/corpus/templates/design/shared/motion-timeline.ts +193 -0
  94. package/corpus/templates/design/shared/responsive-classes.ts +452 -0
  95. package/corpus/templates/design/shared/shader-fill.ts +323 -0
  96. package/corpus/templates/design/shared/source-mode.ts +245 -0
  97. package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +6 -2
  98. package/corpus/templates/plan/changelog/2026-06-29-plan-canvases-open-without-an-initial-pan-and-zoom-flicker.md +6 -0
  99. package/dist/cli/design-connect.d.ts.map +1 -1
  100. package/dist/cli/design-connect.js +28 -2
  101. package/dist/cli/design-connect.js.map +1 -1
  102. package/dist/cli/skills.d.ts.map +1 -1
  103. package/dist/cli/skills.js +37 -21
  104. package/dist/cli/skills.js.map +1 -1
  105. package/dist/collab/routes.d.ts +1 -1
  106. package/dist/file-upload/actions/upload-image.d.ts +2 -2
  107. package/dist/notifications/routes.d.ts +2 -2
  108. package/dist/observability/routes.d.ts +7 -7
  109. package/dist/resources/handlers.d.ts +2 -2
  110. package/dist/server/transcribe-voice.d.ts +1 -1
  111. package/package.json +1 -1
@@ -0,0 +1,131 @@
1
+ import { sendToAgentChat, useT } from "@agent-native/core/client";
2
+ import { useCallback } from "react";
3
+ import { toast } from "sonner";
4
+
5
+ export interface AgentEditRequestArgs {
6
+ /** Freeform user message describing the edit to make. */
7
+ message: string;
8
+ /** CSS selector or data-agent-native-node-id identifying the target element. */
9
+ selector?: string;
10
+ /** Source id (data-code-layer-id) of the target element. */
11
+ sourceId?: string;
12
+ /** The design file id (screen / file row id) being edited. */
13
+ fileId?: string;
14
+ /** The design id (row id of the design). */
15
+ designId?: string;
16
+ /** For localhost-connected screens: the source file path to route edits through. */
17
+ routeSourceFile?: string;
18
+ /** Human-readable filename for context (e.g. "index.html"). */
19
+ filename?: string;
20
+ }
21
+
22
+ /**
23
+ * Builds the hidden agent context string for an edit request, following the
24
+ * same pattern used by the tweaks panel (DesignEditor.tsx ~5293) and the
25
+ * extensions panel context builder (DesignExtensionsPanel.tsx ~120-131).
26
+ */
27
+ function buildEditContext(args: AgentEditRequestArgs): string {
28
+ const lines: string[] = [];
29
+
30
+ if (args.designId) {
31
+ lines.push(`Design id: "${args.designId}".`);
32
+ }
33
+ if (args.fileId) {
34
+ lines.push(
35
+ args.filename
36
+ ? `Active file: "${args.filename}" (file id: "${args.fileId}").`
37
+ : `Active file id: "${args.fileId}".`,
38
+ );
39
+ } else if (args.filename) {
40
+ lines.push(`Active file: "${args.filename}".`);
41
+ }
42
+ if (args.selector) {
43
+ lines.push(`Selected element CSS selector: "${args.selector}".`);
44
+ }
45
+ if (args.sourceId) {
46
+ lines.push(
47
+ `Selected element source id (data-code-layer-id): "${args.sourceId}".`,
48
+ );
49
+ }
50
+ if (args.routeSourceFile) {
51
+ lines.push(
52
+ `Localhost source file to route edits through: "${args.routeSourceFile}".`,
53
+ );
54
+ }
55
+
56
+ lines.push("");
57
+ lines.push("Agent instructions:");
58
+ lines.push(
59
+ "1. Call view-screen first to see the current state of the design.",
60
+ );
61
+ lines.push(
62
+ "2. For style, class, text, or positional changes on the selected element, prefer apply-visual-edit — it is deterministic and does not require a full regeneration.",
63
+ );
64
+ lines.push(
65
+ "3. For structural changes, new sections, or multi-element edits, use edit-design (search/replace) for small targeted changes or generate-design for full rewrites.",
66
+ );
67
+ lines.push(
68
+ "4. If a routeSourceFile is provided, the design screen is connected to localhost source code. Route edits through the agent code editing surface for that file rather than modifying the inline HTML prototype.",
69
+ );
70
+
71
+ return lines.join("\n");
72
+ }
73
+
74
+ /**
75
+ * Builds the full pasteable prompt string (visible message + context block)
76
+ * for use in the "Copy prompt" flow.
77
+ */
78
+ function buildFullPrompt(args: AgentEditRequestArgs): string {
79
+ const context = buildEditContext(args);
80
+ return `${args.message}\n\n---\n${context}`;
81
+ }
82
+
83
+ export interface UseAgentEditRequestReturn {
84
+ /**
85
+ * Routes the edit request directly to the agent chat sidebar.
86
+ * The message is shown in the chat; the context is hidden.
87
+ */
88
+ sendEdit: (args: AgentEditRequestArgs) => Promise<void>;
89
+ /**
90
+ * Builds the same prompt+context as a single string and copies it to the
91
+ * clipboard. Toasts success or blocked per the pattern in DesignEditor.tsx ~7608.
92
+ */
93
+ copyPrompt: (args: AgentEditRequestArgs) => Promise<void>;
94
+ }
95
+
96
+ /**
97
+ * Shared hook for routing AI edit requests from the inspector and the
98
+ * local-source banner. Reuses sendToAgentChat from @agent-native/core/client
99
+ * and the clipboard+toast pattern established in DesignEditor.tsx.
100
+ */
101
+ export function useAgentEditRequest(): UseAgentEditRequestReturn {
102
+ const t = useT();
103
+
104
+ const sendEdit = useCallback(
105
+ async (args: AgentEditRequestArgs): Promise<void> => {
106
+ const context = buildEditContext(args);
107
+ sendToAgentChat({
108
+ message: args.message,
109
+ context,
110
+ submit: true,
111
+ openSidebar: true,
112
+ });
113
+ },
114
+ [],
115
+ );
116
+
117
+ const copyPrompt = useCallback(
118
+ async (args: AgentEditRequestArgs): Promise<void> => {
119
+ const text = buildFullPrompt(args);
120
+ try {
121
+ await navigator.clipboard.writeText(text);
122
+ toast.success(t("designEditor.toasts.codingHandoffCopied"));
123
+ } catch {
124
+ toast.error(t("designEditor.toasts.clipboardBlocked"));
125
+ }
126
+ },
127
+ [t],
128
+ );
129
+
130
+ return { sendEdit, copyPrompt };
131
+ }
@@ -307,7 +307,9 @@ function handleDesignHotkey(
307
307
  if (primary && key === "d") return run(props.onDuplicate);
308
308
  if (primary && key === "r") return run(props.onRename);
309
309
  if (primary && key === "g") {
310
- return event.shiftKey ? run(props.onUngroup) : run(props.onGroup);
310
+ // Figma uses ⇧⌘G for ungroup; also support ⌥⌘G as an alias.
311
+ if (event.shiftKey || event.altKey) return run(props.onUngroup);
312
+ return run(props.onGroup);
311
313
  }
312
314
 
313
315
  if (primary && (key === "=" || key === "+")) return run(props.onZoomIn);
@@ -239,6 +239,18 @@ const messages = {
239
239
  },
240
240
  },
241
241
  designEditor: {
242
+ askAgent: "詢問代理",
243
+ tokens: {
244
+ title: "權杖",
245
+ newToken: "新增權杖",
246
+ cssVar: "CSS 變數",
247
+ value: "值",
248
+ add: "新增權杖",
249
+ refresh: "重新整理權杖",
250
+ empty: "尚無權杖",
251
+ emptyHint: "新增設計權杖以重複使用顏色、間距等。",
252
+ applying: "套用中…",
253
+ },
242
254
  generationMayHaveStopped:
243
255
  "生成可能在建立檔案前停止。請檢視代理訊息或重試。",
244
256
  generationMayHaveStoppedToast: "生成可能在建立檔案前停止。",
@@ -383,6 +395,8 @@ const messages = {
383
395
  "agent-structural-edit": "結構移動需要代理",
384
396
  },
385
397
  toasts: {
398
+ componentCreated: "元件已建立",
399
+ componentCreateFailed: "無法建立元件",
386
400
  codingHandoffError: "無法建立編碼交接",
387
401
  codingHandoffCopied: "編碼交接已複製",
388
402
  clipboardBlocked: "剪貼簿被阻止",
@@ -412,6 +426,23 @@ const messages = {
412
426
  duplicateElementFailed: "無法複製該元素",
413
427
  saveCopyError: "無法儲存這個設計的副本",
414
428
  },
429
+ localSourceEdit: {
430
+ bannerNotice: "對已連結本機程式碼的編輯由 AI 代理套用,不會直接寫入。",
431
+ askAiToEdit: "請 AI 編輯",
432
+ copyPrompt: "複製提示",
433
+ dialogTitle: "請 AI 編輯已連結的來源",
434
+ requestPlaceholder: "將按鈕顏色改成藍色、更新標題文字…",
435
+ askAi: "詢問 AI",
436
+ applyWithAi: "用 AI 套用",
437
+ copyPromptTooltip: "將提示複製到剪貼簿",
438
+ targeting: "目標:",
439
+ describeElementChange: "描述要對此元素進行的變更…",
440
+ describeChange: "描述您想要變更的內容…",
441
+ dialogDescription:
442
+ "描述您想要變更的內容。代理會先呼叫 view-screen,再透過程式碼編輯器套用編輯。",
443
+ dialogDescriptionFile:
444
+ "描述您想在「{{file}}」中變更的內容。代理會先呼叫 view-screen,再透過程式碼編輯器套用編輯。",
445
+ },
415
446
  inspectorLockedTitle: "產生中,檢查器已鎖定",
416
447
  inspectorLockedDescription: "第一個畫面準備好後即可使用控制項。",
417
448
  },
@@ -244,6 +244,18 @@ const enUS = {
244
244
  },
245
245
  },
246
246
  designEditor: {
247
+ askAgent: "Ask agent",
248
+ tokens: {
249
+ title: "Tokens",
250
+ newToken: "New token",
251
+ cssVar: "CSS variable",
252
+ value: "Value",
253
+ add: "Add token",
254
+ refresh: "Refresh tokens",
255
+ empty: "No tokens yet",
256
+ emptyHint: "Add design tokens to reuse colors, spacing, and more.",
257
+ applying: "Applying…",
258
+ },
247
259
  generationMayHaveStopped:
248
260
  "Generation may have stopped before creating files. Check the agent message or try again.",
249
261
  generationMayHaveStoppedToast:
@@ -426,6 +438,27 @@ const enUS = {
426
438
  layerMoveFailed: "Could not move that layer",
427
439
  duplicateElementFailed: "Could not duplicate that element",
428
440
  saveCopyError: "Could not save a copy of this design",
441
+ componentCreated: "Component created",
442
+ componentCreateFailed: "Could not create component",
443
+ },
444
+ localSourceEdit: {
445
+ bannerNotice:
446
+ "Edits to connected local code are applied by the AI agent, not written directly.",
447
+ askAiToEdit: "Ask AI to edit",
448
+ copyPrompt: "Copy prompt",
449
+ dialogTitle: "Ask AI to edit connected source",
450
+ requestPlaceholder:
451
+ "Change the button color to blue, update the heading text…",
452
+ askAi: "Ask AI",
453
+ applyWithAi: "Apply with AI",
454
+ copyPromptTooltip: "Copy prompt to clipboard",
455
+ targeting: "Targeting:",
456
+ describeElementChange: "Describe the change for this element…",
457
+ describeChange: "Describe what you want to change…",
458
+ dialogDescription:
459
+ "Describe what you want to change. The agent will call view-screen first, then apply edits through the code editor.",
460
+ dialogDescriptionFile:
461
+ 'Describe what you want to change in "{{file}}". The agent will call view-screen first, then apply edits through the code editor.',
429
462
  },
430
463
  },
431
464
  layersPanel: {
@@ -9323,6 +9356,232 @@ const designVisualEditOverrides = {
9323
9356
  },
9324
9357
  } satisfies Record<Exclude<LocaleCode, "en-US">, PartialMessages>;
9325
9358
 
9359
+ const designLocalSourceEditOverrides = {
9360
+ "zh-TW": {
9361
+ designEditor: {
9362
+ localSourceEdit: {
9363
+ bannerNotice: "對已連結本機程式碼的編輯由 AI 代理套用,不會直接寫入。",
9364
+ askAiToEdit: "請 AI 編輯",
9365
+ copyPrompt: "複製提示",
9366
+ dialogTitle: "請 AI 編輯已連結的來源",
9367
+ requestPlaceholder: "將按鈕顏色改成藍色、更新標題文字…",
9368
+ askAi: "詢問 AI",
9369
+ applyWithAi: "用 AI 套用",
9370
+ copyPromptTooltip: "將提示複製到剪貼簿",
9371
+ targeting: "目標:",
9372
+ describeElementChange: "描述要對此元素進行的更改…",
9373
+ describeChange: "描述您想要更改的內容…",
9374
+ dialogDescription:
9375
+ "描述您想要更改的內容。代理會先呼叫 view-screen,再透過程式碼編輯器套用編輯。",
9376
+ dialogDescriptionFile:
9377
+ "描述您想在「{{file}}」中更改的內容。代理會先呼叫 view-screen,再透過程式碼編輯器套用編輯。",
9378
+ },
9379
+ },
9380
+ },
9381
+ "zh-CN": {
9382
+ designEditor: {
9383
+ localSourceEdit: {
9384
+ bannerNotice: "对已连接本地代码的编辑由 AI 代理应用,不会直接写入。",
9385
+ askAiToEdit: "请 AI 编辑",
9386
+ copyPrompt: "复制提示",
9387
+ dialogTitle: "请 AI 编辑已连接的源码",
9388
+ requestPlaceholder: "将按钮颜色改成蓝色、更新标题文字…",
9389
+ askAi: "询问 AI",
9390
+ applyWithAi: "用 AI 应用",
9391
+ copyPromptTooltip: "将提示复制到剪贴板",
9392
+ targeting: "目标:",
9393
+ describeElementChange: "描述要对此元素进行的更改…",
9394
+ describeChange: "描述您想要更改的内容…",
9395
+ dialogDescription:
9396
+ "描述您想要更改的内容。代理会先调用 view-screen,再通过代码编辑器应用编辑。",
9397
+ dialogDescriptionFile:
9398
+ "描述您想在“{{file}}”中更改的内容。代理会先调用 view-screen,再通过代码编辑器应用编辑。",
9399
+ },
9400
+ },
9401
+ },
9402
+ "es-ES": {
9403
+ designEditor: {
9404
+ localSourceEdit: {
9405
+ bannerNotice:
9406
+ "Las ediciones del código local conectado las aplica el agente de IA, no se escriben directamente.",
9407
+ askAiToEdit: "Pedir edición a la IA",
9408
+ copyPrompt: "Copiar prompt",
9409
+ dialogTitle: "Pedir a la IA que edite el código conectado",
9410
+ requestPlaceholder:
9411
+ "Cambia el color del botón a azul, actualiza el texto del título…",
9412
+ askAi: "Preguntar a la IA",
9413
+ applyWithAi: "Aplicar con IA",
9414
+ copyPromptTooltip: "Copiar prompt al portapapeles",
9415
+ targeting: "Objetivo:",
9416
+ describeElementChange: "Describe el cambio para este elemento…",
9417
+ describeChange: "Describe lo que quieres cambiar…",
9418
+ dialogDescription:
9419
+ "Describe lo que quieres cambiar. El agente llamará a view-screen primero y luego aplicará los cambios a través del editor de código.",
9420
+ dialogDescriptionFile:
9421
+ 'Describe lo que quieres cambiar en "{{file}}". El agente llamará a view-screen primero y luego aplicará los cambios a través del editor de código.',
9422
+ },
9423
+ },
9424
+ },
9425
+ "fr-FR": {
9426
+ designEditor: {
9427
+ localSourceEdit: {
9428
+ bannerNotice:
9429
+ "Les modifications du code local connecté sont appliquées par l'agent IA, pas écrites directement.",
9430
+ askAiToEdit: "Demander à l'IA de modifier",
9431
+ copyPrompt: "Copier le prompt",
9432
+ dialogTitle: "Demander à l'IA de modifier la source connectée",
9433
+ requestPlaceholder:
9434
+ "Change la couleur du bouton en bleu, mets à jour le titre…",
9435
+ askAi: "Demander à l'IA",
9436
+ applyWithAi: "Appliquer avec l'IA",
9437
+ copyPromptTooltip: "Copier le prompt dans le presse-papiers",
9438
+ targeting: "Cible :",
9439
+ describeElementChange: "Décrivez la modification pour cet élément…",
9440
+ describeChange: "Décrivez ce que vous voulez changer…",
9441
+ dialogDescription:
9442
+ "Décrivez ce que vous voulez changer. L'agent appellera d'abord view-screen, puis appliquera les modifications via l'éditeur de code.",
9443
+ dialogDescriptionFile:
9444
+ "Décrivez ce que vous voulez changer dans \"{{file}}\". L'agent appellera d'abord view-screen, puis appliquera les modifications via l'éditeur de code.",
9445
+ },
9446
+ },
9447
+ },
9448
+ "de-DE": {
9449
+ designEditor: {
9450
+ localSourceEdit: {
9451
+ bannerNotice:
9452
+ "Änderungen am verbundenen lokalen Code werden vom KI-Agenten angewendet, nicht direkt geschrieben.",
9453
+ askAiToEdit: "KI um Änderung bitten",
9454
+ copyPrompt: "Prompt kopieren",
9455
+ dialogTitle: "KI um Bearbeitung der verbundenen Quelle bitten",
9456
+ requestPlaceholder:
9457
+ "Ändere die Button-Farbe in Blau, aktualisiere den Überschriftstext…",
9458
+ askAi: "KI fragen",
9459
+ applyWithAi: "Mit KI anwenden",
9460
+ copyPromptTooltip: "Prompt in die Zwischenablage kopieren",
9461
+ targeting: "Ziel:",
9462
+ describeElementChange: "Beschreibe die Änderung für dieses Element…",
9463
+ describeChange: "Beschreibe, was du ändern möchtest…",
9464
+ dialogDescription:
9465
+ "Beschreibe, was du ändern möchtest. Der Agent ruft zuerst view-screen auf und wendet die Änderungen dann über den Code-Editor an.",
9466
+ dialogDescriptionFile:
9467
+ 'Beschreibe, was du in "{{file}}" ändern möchtest. Der Agent ruft zuerst view-screen auf und wendet die Änderungen dann über den Code-Editor an.',
9468
+ },
9469
+ },
9470
+ },
9471
+ "ja-JP": {
9472
+ designEditor: {
9473
+ localSourceEdit: {
9474
+ bannerNotice:
9475
+ "接続済みローカルコードの編集は AI エージェントが適用し、直接は書き込みません。",
9476
+ askAiToEdit: "AI に編集を依頼",
9477
+ copyPrompt: "プロンプトをコピー",
9478
+ dialogTitle: "接続済みソースの編集を AI に依頼",
9479
+ requestPlaceholder: "ボタンの色を青に変更、見出しテキストを更新…",
9480
+ askAi: "AI に質問",
9481
+ applyWithAi: "AI で適用",
9482
+ copyPromptTooltip: "プロンプトをクリップボードにコピー",
9483
+ targeting: "対象:",
9484
+ describeElementChange: "この要素への変更を説明してください…",
9485
+ describeChange: "変更したい内容を説明してください…",
9486
+ dialogDescription:
9487
+ "変更したい内容を説明してください。エージェントはまず view-screen を呼び出し、その後コードエディターで編集を適用します。",
9488
+ dialogDescriptionFile:
9489
+ "「{{file}}」で変更したい内容を説明してください。エージェントはまず view-screen を呼び出し、その後コードエディターで編集を適用します。",
9490
+ },
9491
+ },
9492
+ },
9493
+ "ko-KR": {
9494
+ designEditor: {
9495
+ localSourceEdit: {
9496
+ bannerNotice:
9497
+ "연결된 로컬 코드 편집은 AI 에이전트가 적용하며 직접 작성하지 않습니다.",
9498
+ askAiToEdit: "AI에 편집 요청",
9499
+ copyPrompt: "프롬프트 복사",
9500
+ dialogTitle: "연결된 소스 편집을 AI에 요청",
9501
+ requestPlaceholder:
9502
+ "버튼 색상을 파란색으로 변경, 제목 텍스트 업데이트…",
9503
+ askAi: "AI에 질문",
9504
+ applyWithAi: "AI로 적용",
9505
+ copyPromptTooltip: "프롬프트를 클립보드에 복사",
9506
+ targeting: "대상:",
9507
+ describeElementChange: "이 요소에 대한 변경 사항을 설명하세요…",
9508
+ describeChange: "변경하려는 내용을 설명하세요…",
9509
+ dialogDescription:
9510
+ "변경하려는 내용을 설명하세요. 에이전트가 먼저 view-screen을 호출한 다음 코드 편집기로 편집을 적용합니다.",
9511
+ dialogDescriptionFile:
9512
+ "“{{file}}”에서 변경하려는 내용을 설명하세요. 에이전트가 먼저 view-screen을 호출한 다음 코드 편집기로 편집을 적용합니다.",
9513
+ },
9514
+ },
9515
+ },
9516
+ "pt-BR": {
9517
+ designEditor: {
9518
+ localSourceEdit: {
9519
+ bannerNotice:
9520
+ "As edições do código local conectado são aplicadas pelo agente de IA, não escritas diretamente.",
9521
+ askAiToEdit: "Pedir edição à IA",
9522
+ copyPrompt: "Copiar prompt",
9523
+ dialogTitle: "Pedir à IA para editar a fonte conectada",
9524
+ requestPlaceholder:
9525
+ "Mude a cor do botão para azul, atualize o texto do título…",
9526
+ askAi: "Perguntar à IA",
9527
+ applyWithAi: "Aplicar com IA",
9528
+ copyPromptTooltip: "Copiar prompt para a área de transferência",
9529
+ targeting: "Alvo:",
9530
+ describeElementChange: "Descreva a alteração para este elemento…",
9531
+ describeChange: "Descreva o que você quer mudar…",
9532
+ dialogDescription:
9533
+ "Descreva o que você quer mudar. O agente chamará view-screen primeiro e depois aplicará as edições pelo editor de código.",
9534
+ dialogDescriptionFile:
9535
+ 'Descreva o que você quer mudar em "{{file}}". O agente chamará view-screen primeiro e depois aplicará as edições pelo editor de código.',
9536
+ },
9537
+ },
9538
+ },
9539
+ "hi-IN": {
9540
+ designEditor: {
9541
+ localSourceEdit: {
9542
+ bannerNotice:
9543
+ "जुड़े हुए local code में बदलाव AI agent लागू करता है, सीधे नहीं लिखे जाते।",
9544
+ askAiToEdit: "AI से edit करने को कहें",
9545
+ copyPrompt: "Prompt कॉपी करें",
9546
+ dialogTitle: "जुड़े हुए source को edit करने के लिए AI से कहें",
9547
+ requestPlaceholder: "बटन का रंग नीला करें, heading text अपडेट करें…",
9548
+ askAi: "AI से पूछें",
9549
+ applyWithAi: "AI से लागू करें",
9550
+ copyPromptTooltip: "Prompt को clipboard पर कॉपी करें",
9551
+ targeting: "लक्ष्य:",
9552
+ describeElementChange: "इस element के लिए बदलाव बताएं…",
9553
+ describeChange: "आप क्या बदलना चाहते हैं, बताएं…",
9554
+ dialogDescription:
9555
+ "आप क्या बदलना चाहते हैं, बताएं। Agent पहले view-screen को call करेगा, फिर code editor से बदलाव लागू करेगा।",
9556
+ dialogDescriptionFile:
9557
+ '"{{file}}" में आप क्या बदलना चाहते हैं, बताएं। Agent पहले view-screen को call करेगा, फिर code editor से बदलाव लागू करेगा।',
9558
+ },
9559
+ },
9560
+ },
9561
+ "ar-SA": {
9562
+ designEditor: {
9563
+ localSourceEdit: {
9564
+ bannerNotice:
9565
+ "يطبّق وكيل الذكاء الاصطناعي التعديلات على الكود المحلي المتصل، ولا تُكتب مباشرة.",
9566
+ askAiToEdit: "اطلب من الذكاء الاصطناعي التعديل",
9567
+ copyPrompt: "نسخ الموجّه",
9568
+ dialogTitle: "اطلب من الذكاء الاصطناعي تعديل المصدر المتصل",
9569
+ requestPlaceholder: "غيّر لون الزر إلى الأزرق، وحدّث نص العنوان…",
9570
+ askAi: "اسأل الذكاء الاصطناعي",
9571
+ applyWithAi: "تطبيق بالذكاء الاصطناعي",
9572
+ copyPromptTooltip: "نسخ الموجّه إلى الحافظة",
9573
+ targeting: "الهدف:",
9574
+ describeElementChange: "صف التغيير المطلوب على هذا العنصر…",
9575
+ describeChange: "صف ما تريد تغييره…",
9576
+ dialogDescription:
9577
+ "صف ما تريد تغييره. سيستدعي الوكيل view-screen أولاً ثم يطبّق التعديلات عبر محرر الكود.",
9578
+ dialogDescriptionFile:
9579
+ 'صف ما تريد تغييره في "{{file}}". سيستدعي الوكيل view-screen أولاً ثم يطبّق التعديلات عبر محرر الكود.',
9580
+ },
9581
+ },
9582
+ },
9583
+ } satisfies Record<Exclude<LocaleCode, "en-US">, PartialMessages>;
9584
+
9326
9585
  export const messagesByLocale = {
9327
9586
  "en-US": enUS,
9328
9587
  "zh-TW": mergeMessages(
@@ -9332,6 +9591,7 @@ export const messagesByLocale = {
9332
9591
  designShapeToolOverrides["zh-TW"],
9333
9592
  designPublicShareOverrides["zh-TW"],
9334
9593
  designVisualEditOverrides["zh-TW"],
9594
+ designLocalSourceEditOverrides["zh-TW"],
9335
9595
  ),
9336
9596
  ),
9337
9597
  "zh-CN": mergeMessages(
@@ -9344,6 +9604,7 @@ export const messagesByLocale = {
9344
9604
  designShapeToolOverrides["zh-CN"],
9345
9605
  designPublicShareOverrides["zh-CN"],
9346
9606
  designVisualEditOverrides["zh-CN"],
9607
+ designLocalSourceEditOverrides["zh-CN"],
9347
9608
  {
9348
9609
  root: {
9349
9610
  commandActions: "操作",
@@ -9395,6 +9656,7 @@ export const messagesByLocale = {
9395
9656
  designShapeToolOverrides["es-ES"],
9396
9657
  designPublicShareOverrides["es-ES"],
9397
9658
  designVisualEditOverrides["es-ES"],
9659
+ designLocalSourceEditOverrides["es-ES"],
9398
9660
  {
9399
9661
  root: {
9400
9662
  commandActions: "Acciones",
@@ -9446,6 +9708,7 @@ export const messagesByLocale = {
9446
9708
  designShapeToolOverrides["fr-FR"],
9447
9709
  designPublicShareOverrides["fr-FR"],
9448
9710
  designVisualEditOverrides["fr-FR"],
9711
+ designLocalSourceEditOverrides["fr-FR"],
9449
9712
  {
9450
9713
  root: {
9451
9714
  commandActions: "Actions",
@@ -9497,6 +9760,7 @@ export const messagesByLocale = {
9497
9760
  designShapeToolOverrides["de-DE"],
9498
9761
  designPublicShareOverrides["de-DE"],
9499
9762
  designVisualEditOverrides["de-DE"],
9763
+ designLocalSourceEditOverrides["de-DE"],
9500
9764
  {
9501
9765
  root: {
9502
9766
  commandActions: "Aktionen",
@@ -9548,6 +9812,7 @@ export const messagesByLocale = {
9548
9812
  designShapeToolOverrides["ja-JP"],
9549
9813
  designPublicShareOverrides["ja-JP"],
9550
9814
  designVisualEditOverrides["ja-JP"],
9815
+ designLocalSourceEditOverrides["ja-JP"],
9551
9816
  {
9552
9817
  root: {
9553
9818
  commandActions: "操作",
@@ -9600,6 +9865,7 @@ export const messagesByLocale = {
9600
9865
  designShapeToolOverrides["ko-KR"],
9601
9866
  designPublicShareOverrides["ko-KR"],
9602
9867
  designVisualEditOverrides["ko-KR"],
9868
+ designLocalSourceEditOverrides["ko-KR"],
9603
9869
  {
9604
9870
  root: {
9605
9871
  commandActions: "작업",
@@ -9650,6 +9916,7 @@ export const messagesByLocale = {
9650
9916
  designShapeToolOverrides["pt-BR"],
9651
9917
  designPublicShareOverrides["pt-BR"],
9652
9918
  designVisualEditOverrides["pt-BR"],
9919
+ designLocalSourceEditOverrides["pt-BR"],
9653
9920
  {
9654
9921
  root: {
9655
9922
  commandActions: "Ações",
@@ -9701,6 +9968,7 @@ export const messagesByLocale = {
9701
9968
  designShapeToolOverrides["hi-IN"],
9702
9969
  designPublicShareOverrides["hi-IN"],
9703
9970
  designVisualEditOverrides["hi-IN"],
9971
+ designLocalSourceEditOverrides["hi-IN"],
9704
9972
  {
9705
9973
  root: {
9706
9974
  commandActions: "क्रियाएं",
@@ -9752,6 +10020,7 @@ export const messagesByLocale = {
9752
10020
  designShapeToolOverrides["ar-SA"],
9753
10021
  designPublicShareOverrides["ar-SA"],
9754
10022
  designVisualEditOverrides["ar-SA"],
10023
+ designLocalSourceEditOverrides["ar-SA"],
9755
10024
  {
9756
10025
  root: {
9757
10026
  commandActions: "الإجراءات",