@agent-native/core 0.182.1 → 0.182.2-nightly-20260917225811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/corpus/README.md +1 -1
- package/corpus/templates/clips/app/root.tsx +59 -10
- package/corpus/templates/clips/changelog/2026-09-17-desktop-popover-closes-when-clicking-away.md +6 -0
- package/corpus/templates/clips/changelog/2026-09-17-self-hosted-extension-sign-in.md +6 -0
- package/corpus/templates/clips/chrome-extension/src/background.ts +45 -25
- package/corpus/templates/clips/chrome-extension/src/content-script.ts +43 -0
- package/corpus/templates/clips/desktop/src-tauri/src/lib.rs +55 -6
- package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +107 -19
- package/corpus/templates/design/.generated/bridge/hit-test.generated.ts +1 -0
- package/corpus/templates/design/actions/add-localhost-screens.ts +54 -22
- package/corpus/templates/design/actions/apply-component-prop-edit.ts +174 -14
- package/corpus/templates/design/actions/apply-visual-edit.ts +3 -1
- package/corpus/templates/design/actions/create-component.ts +173 -12
- package/corpus/templates/design/actions/create-design-from-template.ts +50 -35
- package/corpus/templates/design/actions/create-design-version.ts +21 -0
- package/corpus/templates/design/actions/create-file.ts +35 -33
- package/corpus/templates/design/actions/delete-design.ts +29 -28
- package/corpus/templates/design/actions/delete-file.ts +154 -23
- package/corpus/templates/design/actions/generate-design.ts +28 -16
- package/corpus/templates/design/actions/get-component-details.ts +272 -33
- package/corpus/templates/design/actions/get-design-version.ts +9 -1
- package/corpus/templates/design/actions/go-to-main-component.ts +37 -35
- package/corpus/templates/design/actions/index-components.ts +241 -126
- package/corpus/templates/design/actions/migrate-board-objects-to-file.ts +12 -9
- package/corpus/templates/design/actions/present-design-variants.ts +68 -72
- package/corpus/templates/design/actions/rename-component.ts +294 -0
- package/corpus/templates/design/actions/rename-screen.ts +10 -10
- package/corpus/templates/design/actions/update-file.ts +327 -330
- package/corpus/templates/design/actions/update-screen-source.ts +2 -43
- package/corpus/templates/design/app/components/design/EditPanel.tsx +17 -1
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +228 -24
- package/corpus/templates/design/app/components/design/ResponsiveInteractBar.tsx +17 -1
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +151 -32
- package/corpus/templates/design/app/components/design/bridge/hit-test.bridge.ts +4 -0
- package/corpus/templates/design/app/components/design/canvas-primitive-style.ts +1 -1
- package/corpus/templates/design/app/components/design/code-workbench/CodeWorkbench.tsx +8 -1
- package/corpus/templates/design/app/components/design/code-workbench/explorer/FileTree.tsx +55 -33
- package/corpus/templates/design/app/components/design/code-workbench/workspace/create-providers.ts +2 -0
- package/corpus/templates/design/app/components/design/code-workbench/workspace/inline-provider.ts +4 -2
- package/corpus/templates/design/app/components/design/edit-panel/component-section.tsx +273 -60
- package/corpus/templates/design/app/components/design/edit-panel/element-classification.ts +9 -2
- package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +57 -9
- package/corpus/templates/design/app/components/design/multi-screen/primitive-drop-target.ts +13 -0
- package/corpus/templates/design/app/components/design/multi-screen/types.ts +14 -0
- package/corpus/templates/design/app/components/design/types.ts +9 -1
- package/corpus/templates/design/app/hooks/use-design-versions.ts +3 -2
- package/corpus/templates/design/app/i18n-breakpoints.ts +0 -110
- package/corpus/templates/design/app/i18n-data.ts +0 -10
- package/corpus/templates/design/app/pages/DesignEditor.tsx +669 -161
- package/corpus/templates/design/app/pages/design-editor/clone-and-pen-edit.ts +20 -0
- package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +2 -0
- package/corpus/templates/design/app/pages/design-editor/commands/apply-design-editor-command.ts +21 -3
- package/corpus/templates/design/app/pages/design-editor/commands/apply-file-content-update.ts +2 -0
- package/corpus/templates/design/app/pages/design-editor/commands/create-component.ts +44 -3
- package/corpus/templates/design/app/pages/design-editor/commands/delete-files.ts +69 -47
- package/corpus/templates/design/app/pages/design-editor/commands/duplicate-screen.ts +157 -52
- package/corpus/templates/design/app/pages/design-editor/commands/duplicate-selection.ts +76 -1
- package/corpus/templates/design/app/pages/design-editor/commands/redo.ts +152 -44
- package/corpus/templates/design/app/pages/design-editor/commands/save-file-content.ts +131 -2
- package/corpus/templates/design/app/pages/design-editor/commands/screen-visual-duplicate-change.ts +5 -1
- package/corpus/templates/design/app/pages/design-editor/commands/undo.ts +26 -1
- package/corpus/templates/design/app/pages/design-editor/commands/visual-duplicate-change.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/editor-helpers.ts +58 -8
- package/corpus/templates/design/app/pages/design-editor/editor-state.ts +63 -2
- package/corpus/templates/design/app/pages/design-editor/history.ts +3 -0
- package/corpus/templates/design/app/pages/design-editor/nudge-intent.ts +74 -22
- package/corpus/templates/design/app/pages/design-editor/source-publication.ts +14 -2
- package/corpus/templates/design/changelog/2026-09-16-design-components-retain-linked-identities-when-edited-and-d.md +6 -0
- package/corpus/templates/design/changelog/2026-09-16-fix-design-nested-layer-dragging-and-screen-duplication-pari.md +6 -0
- package/corpus/templates/design/changelog/2026-09-17-design-drag-and-drop-keeps-duplicates-cross-screen-moves-and.md +6 -0
- package/corpus/templates/design/changelog/2026-09-17-design-preserves-reusable-component-identity-and-props-acros.md +6 -0
- package/corpus/templates/design/changelog/2026-09-17-open-vector-paths-no-longer-show-fills-and-interact-dimensio.md +6 -0
- package/corpus/templates/design/changelog/2026-09-17-screen-deletion-is-immediate-and-undoable-with-history-that-.md +6 -0
- package/corpus/templates/design/e2e/fixtures/design-component-react/index.html +98 -0
- package/corpus/templates/design/e2e/fixtures/design-component-react/inline-component.html +65 -0
- package/corpus/templates/design/e2e/helpers.ts +6 -1
- package/corpus/templates/design/server/lib/design-data-mutation.ts +9 -5
- package/corpus/templates/design/server/lib/design-snapshot.ts +28 -16
- package/corpus/templates/design/server/lib/design-versions.ts +208 -130
- package/corpus/templates/design/server/lib/fusion-screens.ts +46 -20
- package/corpus/templates/design/server/lib/import-design-files.ts +5 -1
- package/corpus/templates/design/server/lib/localhost-connection.ts +54 -0
- package/corpus/templates/design/server/source-workspace.ts +412 -356
- package/corpus/templates/design/shared/component-library.ts +36 -6
- package/corpus/templates/design/shared/component-model.ts +12 -2
- package/corpus/templates/design/shared/local-jsx-visual-edit.ts +231 -5
- package/corpus/templates/design/shared/source-mode.ts +22 -0
- package/dist/automation/index.d.ts +1 -1
- package/dist/client/AssistantChat.d.ts +4 -1
- package/dist/client/AssistantChat.js +26 -3
- package/dist/client/chat/agentkit-protocol.js +148 -34
- package/dist/client/chat/message-components.js +7 -5
- package/dist/client/chat/tool-call-display.js +4 -3
- package/dist/client/conversation/AgentConversation.js +4 -2
- package/dist/client/tool-display.d.ts +9 -0
- package/dist/client/tool-display.js +15 -0
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/routes.d.ts +1 -1
- package/dist/localization/core-messages/ar-SA.js +2 -0
- package/dist/localization/core-messages/de-DE.js +2 -0
- package/dist/localization/core-messages/en-US.d.ts +2 -0
- package/dist/localization/core-messages/en-US.js +2 -0
- package/dist/localization/core-messages/es-ES.js +2 -0
- package/dist/localization/core-messages/fr-FR.js +2 -0
- package/dist/localization/core-messages/hi-IN.js +2 -0
- package/dist/localization/core-messages/ja-JP.js +2 -0
- package/dist/localization/core-messages/ko-KR.js +2 -0
- package/dist/localization/core-messages/pt-BR.js +2 -0
- package/dist/localization/core-messages/zh-CN.js +2 -0
- package/dist/localization/core-messages/zh-TW.js +2 -0
- package/dist/localization/core-messages.d.ts +2 -0
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/observability/routes.d.ts +3 -3
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +3 -3
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/core-routes-plugin.d.ts +1 -1
- package/package.json +3 -3
- package/corpus/templates/design/app/components/design/editor/PendingScreenDeletionDialog.tsx +0 -66
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const messages = {
|
|
2
|
+
"activity.reasoning": "推理",
|
|
2
3
|
"approval.alwaysAllow": "始终允许",
|
|
3
4
|
"approval.alwaysAllowHint": "批准并始终允许此完全相同的命令",
|
|
4
5
|
"approval.alwaysAllowAction": "始终允许此操作",
|
|
@@ -655,6 +656,7 @@ const messages = {
|
|
|
655
656
|
"status.preparing": "正在准备 {{activity}}...",
|
|
656
657
|
"status.writing": "正在写入 {{activity}}...",
|
|
657
658
|
"status.stillGenerating": "仍在生成 {{activity}}",
|
|
659
|
+
"status.runningTool": "正在运行 {{activity}}",
|
|
658
660
|
"tabs.allChats": "所有聊天",
|
|
659
661
|
"tabs.closeTab": "关闭标签页",
|
|
660
662
|
"tabs.main": "主聊天",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const messages = {
|
|
2
|
+
"activity.reasoning": "推理",
|
|
2
3
|
"approval.alwaysAllow": "一律允許",
|
|
3
4
|
"approval.alwaysAllowHint": "核准並一律允許這個完全相同的命令",
|
|
4
5
|
"approval.alwaysAllowAction": "一律允許此動作",
|
|
@@ -655,6 +656,7 @@ const messages = {
|
|
|
655
656
|
"status.preparing": "正在準備 {{activity}}...",
|
|
656
657
|
"status.writing": "正在寫入 {{activity}}...",
|
|
657
658
|
"status.stillGenerating": "仍在產生 {{activity}}",
|
|
659
|
+
"status.runningTool": "正在執行 {{activity}}",
|
|
658
660
|
"tabs.allChats": "所有聊天",
|
|
659
661
|
"tabs.closeTab": "關閉分頁",
|
|
660
662
|
"tabs.main": "主要聊天",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type LocaleCode } from "./shared.js";
|
|
2
2
|
export type CoreLocaleMessages = Record<string, unknown>;
|
|
3
3
|
export declare const englishAgentChatMessages: {
|
|
4
|
+
readonly "activity.reasoning": "Reasoning";
|
|
4
5
|
readonly "approval.alwaysAllow": "Always allow";
|
|
5
6
|
readonly "approval.alwaysAllowHint": "Approve and always allow this exact command";
|
|
6
7
|
readonly "approval.alwaysAllowAction": "Always allow this action";
|
|
@@ -661,6 +662,7 @@ export declare const englishAgentChatMessages: {
|
|
|
661
662
|
readonly "status.preparing": "Preparing {{activity}}...";
|
|
662
663
|
readonly "status.writing": "Writing {{activity}}...";
|
|
663
664
|
readonly "status.stillGenerating": "Still generating {{activity}}";
|
|
665
|
+
readonly "status.runningTool": "Running {{activity}}";
|
|
664
666
|
readonly "tabs.allChats": "All chats";
|
|
665
667
|
readonly "tabs.closeTab": "Close tab";
|
|
666
668
|
readonly "tabs.main": "Main";
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
* DELETE /_agent-native/notifications/:id — delete
|
|
12
12
|
*/
|
|
13
13
|
export declare function createNotificationsHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<"" | import("./types.js").Notification[] | {
|
|
14
|
+
error?: undefined;
|
|
14
15
|
count: number;
|
|
15
16
|
updated?: undefined;
|
|
16
|
-
error?: undefined;
|
|
17
17
|
ok?: undefined;
|
|
18
18
|
} | {
|
|
19
|
+
error?: undefined;
|
|
19
20
|
count?: undefined;
|
|
20
21
|
updated: number;
|
|
21
|
-
error?: undefined;
|
|
22
22
|
ok?: undefined;
|
|
23
23
|
} | {
|
|
24
24
|
count?: undefined;
|
|
@@ -26,8 +26,8 @@ export declare function createNotificationsHandler(): import("h3").EventHandlerW
|
|
|
26
26
|
error: string;
|
|
27
27
|
ok?: undefined;
|
|
28
28
|
} | {
|
|
29
|
+
error?: undefined;
|
|
29
30
|
count?: undefined;
|
|
30
31
|
updated?: undefined;
|
|
31
|
-
error?: undefined;
|
|
32
32
|
ok: boolean;
|
|
33
33
|
}>>;
|
|
@@ -42,22 +42,22 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
42
42
|
avgEvalScore: number;
|
|
43
43
|
} | {
|
|
44
44
|
error?: undefined;
|
|
45
|
-
ok?: undefined;
|
|
46
45
|
summary: import("./types.js").TraceSummary;
|
|
47
46
|
spans: import("./types.js").TraceSpan[];
|
|
48
47
|
id?: undefined;
|
|
48
|
+
ok?: undefined;
|
|
49
49
|
} | {
|
|
50
50
|
error?: undefined;
|
|
51
|
-
ok?: undefined;
|
|
52
51
|
summary?: undefined;
|
|
53
52
|
spans?: undefined;
|
|
54
53
|
id: string;
|
|
55
|
-
} | {
|
|
56
54
|
ok?: undefined;
|
|
55
|
+
} | {
|
|
57
56
|
summary?: undefined;
|
|
58
57
|
spans?: undefined;
|
|
59
58
|
id?: undefined;
|
|
60
59
|
error: any;
|
|
60
|
+
ok?: undefined;
|
|
61
61
|
} | {
|
|
62
62
|
error?: undefined;
|
|
63
63
|
summary?: undefined;
|
|
@@ -48,8 +48,8 @@ export declare function handleUpdateResource(event: any): Promise<import("./stor
|
|
|
48
48
|
}>;
|
|
49
49
|
/** DELETE /_agent-native/resources/:id — delete a resource */
|
|
50
50
|
export declare function handleDeleteResource(event: any): Promise<{
|
|
51
|
-
error: string;
|
|
52
51
|
ok?: undefined;
|
|
52
|
+
error: string;
|
|
53
53
|
} | {
|
|
54
54
|
error?: undefined;
|
|
55
55
|
ok: boolean;
|
package/dist/secrets/routes.d.ts
CHANGED
|
@@ -57,16 +57,16 @@ export declare function createListSecretsHandler(): import("h3").EventHandlerWit
|
|
|
57
57
|
/** POST /_agent-native/secrets/:key — write a secret. */
|
|
58
58
|
export declare function createWriteSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
59
59
|
error: string;
|
|
60
|
-
status?: undefined;
|
|
61
60
|
ok?: undefined;
|
|
61
|
+
status?: undefined;
|
|
62
62
|
} | {
|
|
63
63
|
ok: boolean;
|
|
64
64
|
status: string;
|
|
65
65
|
error?: undefined;
|
|
66
66
|
} | {
|
|
67
|
+
ok?: undefined;
|
|
67
68
|
error: string;
|
|
68
69
|
removed?: undefined;
|
|
69
|
-
ok?: undefined;
|
|
70
70
|
} | {
|
|
71
71
|
ok: boolean;
|
|
72
72
|
removed: boolean;
|
|
@@ -77,9 +77,9 @@ export declare function createWriteSecretHandler(): import("h3").EventHandlerWit
|
|
|
77
77
|
* or the current stored value without changing anything.
|
|
78
78
|
*/
|
|
79
79
|
export declare function createTestSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
80
|
+
ok?: undefined;
|
|
80
81
|
error: string;
|
|
81
82
|
note?: undefined;
|
|
82
|
-
ok?: undefined;
|
|
83
83
|
} | {
|
|
84
84
|
ok: boolean;
|
|
85
85
|
note?: undefined;
|
|
@@ -56,10 +56,10 @@ export declare function createAgentEngineApiKeyHandler(): import("h3").EventHand
|
|
|
56
56
|
ok: boolean;
|
|
57
57
|
error: string;
|
|
58
58
|
} | {
|
|
59
|
+
error?: undefined;
|
|
59
60
|
ok: boolean;
|
|
60
61
|
key: string;
|
|
61
62
|
baseUrlKey?: string;
|
|
62
63
|
scope: AgentEngineApiKeyScope;
|
|
63
|
-
error?: undefined;
|
|
64
64
|
}>>;
|
|
65
65
|
export {};
|
|
@@ -408,8 +408,8 @@ export declare function createPublicRemoteAgentsHandler(discover?: PublicAgentDi
|
|
|
408
408
|
error: string;
|
|
409
409
|
agents?: undefined;
|
|
410
410
|
} | {
|
|
411
|
-
agents: Omit<import("./agent-discovery.js").DiscoveredAgent, "auth" | "kind">[];
|
|
412
411
|
error?: undefined;
|
|
412
|
+
agents: Omit<import("./agent-discovery.js").DiscoveredAgent, "auth" | "kind">[];
|
|
413
413
|
}>>;
|
|
414
414
|
export declare function getBuilderConnectErrorDisposition(error: unknown, connectAttemptId: string | null): "correlated" | "legacy" | null;
|
|
415
415
|
export declare function getBuilderConnectErrorKey(ownerEmail: string, connectAttemptId?: string | null): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.182.
|
|
3
|
+
"version": "0.182.2-nightly-20260917225811",
|
|
4
4
|
"description": "The agentic application framework for building autonomous agents with intuitive UIs",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -486,9 +486,9 @@
|
|
|
486
486
|
"yaml": "^2.9.0",
|
|
487
487
|
"yjs": "^13.6.32",
|
|
488
488
|
"zod": "^4.3.6",
|
|
489
|
-
"@agent-native/agentkit": "^0.2.
|
|
489
|
+
"@agent-native/agentkit": "^0.2.5-nightly-20260917225811",
|
|
490
490
|
"@agent-native/recap-cli": "0.5.34",
|
|
491
|
-
"@agent-native/toolkit": "^0.20.
|
|
491
|
+
"@agent-native/toolkit": "^0.20.5-nightly-20260917225811"
|
|
492
492
|
},
|
|
493
493
|
"devDependencies": {
|
|
494
494
|
"@ai-sdk/anthropic": "^3.0.71",
|
package/corpus/templates/design/app/components/design/editor/PendingScreenDeletionDialog.tsx
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { useT } from "@agent-native/core/client/i18n";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
AlertDialog,
|
|
5
|
-
AlertDialogAction,
|
|
6
|
-
AlertDialogCancel,
|
|
7
|
-
AlertDialogContent,
|
|
8
|
-
AlertDialogDescription,
|
|
9
|
-
AlertDialogFooter,
|
|
10
|
-
AlertDialogHeader,
|
|
11
|
-
AlertDialogTitle,
|
|
12
|
-
} from "@/components/ui/alert-dialog";
|
|
13
|
-
import type { DesignFile } from "@/pages/design-editor/types";
|
|
14
|
-
|
|
15
|
-
export function PendingScreenDeletionDialog({
|
|
16
|
-
pendingScreenDeletion,
|
|
17
|
-
onCancel,
|
|
18
|
-
onConfirm,
|
|
19
|
-
confirming = false,
|
|
20
|
-
}: {
|
|
21
|
-
pendingScreenDeletion: { files: DesignFile[] } | null;
|
|
22
|
-
onCancel: () => void;
|
|
23
|
-
onConfirm: () => void;
|
|
24
|
-
confirming?: boolean;
|
|
25
|
-
}) {
|
|
26
|
-
const t = useT();
|
|
27
|
-
return (
|
|
28
|
-
<AlertDialog open={pendingScreenDeletion !== null}>
|
|
29
|
-
<AlertDialogContent>
|
|
30
|
-
<AlertDialogHeader>
|
|
31
|
-
<AlertDialogTitle>
|
|
32
|
-
{pendingScreenDeletion?.files.length === 1
|
|
33
|
-
? t("designEditor.screenDeletion.titleOne")
|
|
34
|
-
: t("designEditor.screenDeletion.titleMany", {
|
|
35
|
-
count: pendingScreenDeletion?.files.length ?? 0,
|
|
36
|
-
})}
|
|
37
|
-
</AlertDialogTitle>
|
|
38
|
-
<AlertDialogDescription>
|
|
39
|
-
{pendingScreenDeletion?.files.length === 1
|
|
40
|
-
? t("designEditor.screenDeletion.descriptionOne", {
|
|
41
|
-
filename: pendingScreenDeletion.files[0]?.filename ?? "",
|
|
42
|
-
})
|
|
43
|
-
: t("designEditor.screenDeletion.descriptionMany")}
|
|
44
|
-
</AlertDialogDescription>
|
|
45
|
-
</AlertDialogHeader>
|
|
46
|
-
<AlertDialogFooter>
|
|
47
|
-
<AlertDialogCancel onClick={onCancel} disabled={confirming}>
|
|
48
|
-
{t("designEditor.screenDeletion.cancel")}
|
|
49
|
-
</AlertDialogCancel>
|
|
50
|
-
<AlertDialogAction
|
|
51
|
-
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
|
52
|
-
disabled={confirming}
|
|
53
|
-
onClick={(event) => {
|
|
54
|
-
event.preventDefault();
|
|
55
|
-
onConfirm();
|
|
56
|
-
}}
|
|
57
|
-
>
|
|
58
|
-
{confirming
|
|
59
|
-
? "Removing…" /* i18n-ignore */
|
|
60
|
-
: t("designEditor.screenDeletion.confirm")}
|
|
61
|
-
</AlertDialogAction>
|
|
62
|
-
</AlertDialogFooter>
|
|
63
|
-
</AlertDialogContent>
|
|
64
|
-
</AlertDialog>
|
|
65
|
-
);
|
|
66
|
-
}
|