@agent-native/core 0.129.2 → 0.130.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.
- package/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +72 -0
- package/corpus/core/docs/content/cloneable-saas.mdx +114 -0
- package/corpus/core/docs/content/creating-templates.mdx +28 -2
- package/corpus/core/docs/content/syncing-template-changes.mdx +7 -0
- package/corpus/core/docs/content/template-clips-developers.mdx +12 -5
- package/corpus/core/docs/content/template-dispatch-developers.mdx +1 -1
- package/corpus/core/docs/content/template-dispatch.mdx +1 -1
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/action-ui.ts +1 -0
- package/corpus/core/src/action.ts +5 -1
- package/corpus/core/src/agent/engine/ai-sdk-engine.ts +15 -5
- package/corpus/core/src/agent/harness/runner.ts +5 -0
- package/corpus/core/src/agent/production-agent.ts +33 -0
- package/corpus/core/src/agent/run-loop-with-resume.ts +5 -0
- package/corpus/core/src/agent/run-manager.ts +126 -1
- package/corpus/core/src/agent/thread-data-builder.ts +47 -2
- package/corpus/core/src/agent/types.ts +2 -0
- package/corpus/core/src/chat-threads/store.ts +4 -5
- package/corpus/core/src/cli/create.ts +1139 -65
- package/corpus/core/src/cli/design-connect.ts +3 -7
- package/corpus/core/src/cli/index.ts +5 -3
- package/corpus/core/src/cli/skills-content/design-visual-edit-skill.ts +83 -47
- package/corpus/core/src/client/AssistantChat.tsx +27 -16
- package/corpus/core/src/client/agent-chat-adapter.ts +24 -0
- package/corpus/core/src/client/blocks/library/wireframe-kit.tsx +17 -2
- package/corpus/core/src/client/chat/index.ts +1 -0
- package/corpus/core/src/client/chat/message-components.tsx +104 -1
- package/corpus/core/src/client/chat/run-recovery.tsx +15 -3
- package/corpus/core/src/client/chat/widgets/DataTableWidget.tsx +10 -29
- package/corpus/core/src/client/chat/widgets/WorkspaceFileWidget.tsx +71 -0
- package/corpus/core/src/client/chat/widgets/builtin-tool-renderers.tsx +22 -0
- package/corpus/core/src/client/chat/widgets/workspace-file-result.ts +49 -0
- package/corpus/core/src/client/embed-auth.ts +2 -0
- package/corpus/core/src/client/org/InvitationBanner.tsx +14 -1
- package/corpus/core/src/client/org/OrgSwitcher.tsx +23 -0
- package/corpus/core/src/client/org/TeamPage.tsx +130 -0
- package/corpus/core/src/client/org/WorkspaceNotice.tsx +85 -0
- package/corpus/core/src/client/org/hooks.ts +14 -0
- package/corpus/core/src/client/org/index.ts +2 -0
- package/corpus/core/src/client/resources/McpIntegrationDialog.tsx +27 -40
- package/corpus/core/src/client/resources/ResourcesPanel.tsx +134 -51
- package/corpus/core/src/client/resources/mcp-integration-catalog.ts +7 -0
- package/corpus/core/src/client/resources/use-resources.ts +6 -0
- package/corpus/core/src/client/use-action.ts +3 -1
- package/corpus/core/src/client/widgets/index.ts +1 -0
- package/corpus/core/src/coding-tools/run-code.ts +2 -1
- package/corpus/core/src/db/client.ts +28 -4
- package/corpus/core/src/deploy/build.ts +31 -3
- package/corpus/core/src/eject/remote-mcp-presets.ts +1 -1
- package/corpus/core/src/index.browser.ts +1 -0
- package/corpus/core/src/index.ts +1 -0
- package/corpus/core/src/integrations/google-docs-poller.ts +3 -0
- package/corpus/core/src/integrations/webhook-handler.ts +28 -11
- package/corpus/core/src/jobs/scheduler.ts +4 -0
- package/corpus/core/src/localization/default-messages.ts +3 -2
- package/corpus/core/src/observability/traces.ts +48 -12
- package/corpus/core/src/org/handlers.ts +52 -1
- package/corpus/core/src/org/migrations.ts +4 -0
- package/corpus/core/src/org/plugin.ts +14 -0
- package/corpus/core/src/org/schema.ts +1 -0
- package/corpus/core/src/org/types.ts +8 -0
- package/corpus/core/src/org/workspace-url.ts +74 -0
- package/corpus/core/src/resources/handlers.ts +35 -5
- package/corpus/core/src/scripts/runner.ts +183 -5
- package/corpus/core/src/server/action-routes.ts +32 -2
- package/corpus/core/src/server/agent-chat-plugin.ts +29 -0
- package/corpus/core/src/server/agent-teams.ts +10 -1
- package/corpus/core/src/server/auth.ts +33 -7
- package/corpus/core/src/server/embed-route.ts +9 -0
- package/corpus/core/src/server/embed-session.ts +62 -3
- package/corpus/core/src/server/open-route.ts +20 -6
- package/corpus/core/src/server/prompts/framework-core-compact.ts +1 -1
- package/corpus/core/src/server/prompts/framework-core.ts +1 -0
- package/corpus/core/src/server/request-context.ts +36 -1
- package/corpus/core/src/shared/embed-auth.ts +1 -0
- package/corpus/core/src/shared/html-document.ts +115 -0
- package/corpus/core/src/shared/index.ts +1 -0
- package/corpus/core/src/sharing/access.ts +8 -1
- package/corpus/core/src/sharing/registry.ts +11 -2
- package/corpus/core/src/workspace-files/actions.ts +100 -0
- package/corpus/core/src/workspace-files/tool.ts +4 -0
- package/corpus/templates/analytics/.agents/skills/analysis-workspace/SKILL.md +4 -0
- package/corpus/templates/analytics/.agents/skills/hubspot/SKILL.md +9 -1
- package/corpus/templates/analytics/AGENTS.md +17 -24
- package/corpus/templates/analytics/actions/data-source-status.ts +11 -1
- package/corpus/templates/analytics/app/i18n-data.ts +34 -0
- package/corpus/templates/analytics/app/lib/data-source-status.ts +86 -0
- package/corpus/templates/analytics/app/lib/native-mcp-exclusions.ts +9 -0
- package/corpus/templates/analytics/app/pages/DataSources.tsx +184 -20
- package/corpus/templates/analytics/changelog/2026-07-28-native-analytics-data-sources-no-longer-show-duplicate-mc.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-exports-now-appear-in-chat-with-a-direct-download-instead-of.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-queued-chat-prompts-no-longer-resend-after-analytics-navigat.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-scheduled-dashboard-emails-load-every-panel-reliably-without.md +6 -0
- package/corpus/templates/analytics/scripts/emit-netlify-dashboard-report-cron.ts +6 -3
- package/corpus/templates/analytics/server/lib/credential-keys.ts +1 -1
- package/corpus/templates/analytics/server/lib/hubspot.ts +1 -1
- package/corpus/templates/analytics/server/lib/provider-credentials.ts +55 -1
- package/corpus/templates/analytics/server/plugins/agent-chat.ts +123 -27
- package/corpus/templates/analytics/server/routes/[...page].get.ts +2 -7
- package/corpus/templates/analytics/vite.config.ts +7 -0
- package/corpus/templates/brain/actions/list-connection-providers.ts +100 -2
- package/corpus/templates/brain/app/lib/brain.ts +10 -0
- package/corpus/templates/brain/app/routes/sources.tsx +15 -4
- package/corpus/templates/brain/changelog/2026-07-29-brain-automatically-retries-failed-source-syncs-and-guides-y.md +6 -0
- package/corpus/templates/brain/jobs/process-ingest-queue.ts +13 -0
- package/corpus/templates/brain/server/jobs/sync-sources.ts +27 -22
- package/corpus/templates/brain/server/plugins/agent-chat.ts +2 -1
- package/corpus/templates/brain/server/routes/api/brain/queue/run.post.ts +7 -1
- package/corpus/templates/clips/AGENTS.md +1 -1
- package/corpus/templates/clips/actions/create-recording-agent-link.ts +11 -1
- package/corpus/templates/clips/actions/update-comment.ts +68 -0
- package/corpus/templates/clips/app/components/editor/editor-layout.tsx +0 -1
- package/corpus/templates/clips/app/components/player/comments-panel.tsx +221 -65
- package/corpus/templates/clips/app/components/player/video-player.tsx +101 -27
- package/corpus/templates/clips/app/i18n/en-US.ts +2 -1
- package/corpus/templates/clips/app/routes/bug-report.done.tsx +48 -27
- package/corpus/templates/clips/app/routes/bug-report.tsx +43 -4
- package/corpus/templates/clips/app/routes/record.tsx +2 -0
- package/corpus/templates/clips/changelog/2026-07-29-clip-playback-now-recovers-instead-of-getting-stuck-when-a-b.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-29-comments-can-now-be-edited-after-posting.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-29-download-actions-now-use-a-shorter-clearer-label.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-29-embedded-bug-reports-now-return-a-temporary-agent-readable.md +6 -0
- package/corpus/templates/clips/shared/bug-report.ts +99 -0
- package/corpus/templates/content/actions/_content-database-personal-view.ts +7 -1
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +5 -2
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +20 -8
- package/corpus/templates/content/changelog/2026-07-29-missing-databases-no-longer-trigger-repeated-personal-view-e.md +6 -0
- package/corpus/templates/design/.agents/skills/visual-edit/SKILL.md +83 -47
- package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +474 -55
- package/corpus/templates/design/.generated/bridge/embedded-wheel.generated.ts +3 -0
- package/corpus/templates/design/.generated/bridge/hit-test.generated.ts +18 -1
- package/corpus/templates/design/.generated/bridge/source-location.generated.ts +348 -0
- package/corpus/templates/design/actions/add-localhost-screens.ts +2 -7
- package/corpus/templates/design/actions/apply-visual-edit.ts +7 -1
- package/corpus/templates/design/actions/connect-localhost.ts +5 -9
- package/corpus/templates/design/actions/create-component.ts +16 -13
- package/corpus/templates/design/actions/grant-localhost-write-consent.ts +2 -7
- package/corpus/templates/design/actions/list-design-source-capabilities.ts +4 -7
- package/corpus/templates/design/actions/list-local-files.ts +26 -50
- package/corpus/templates/design/actions/list-localhost-connections.ts +2 -7
- package/corpus/templates/design/actions/migrate-board-objects-to-file.ts +2 -2
- package/corpus/templates/design/actions/open-visual-edit.ts +234 -135
- package/corpus/templates/design/actions/read-local-file.ts +26 -50
- package/corpus/templates/design/actions/request-localhost-write-consent.ts +2 -7
- package/corpus/templates/design/actions/write-local-file.ts +31 -73
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +307 -133
- package/corpus/templates/design/app/components/design/EditPanel.tsx +94 -22
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +137 -60
- package/corpus/templates/design/app/components/design/ResponsiveInteractBar.tsx +75 -14
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +755 -97
- package/corpus/templates/design/app/components/design/bridge/embedded-wheel.bridge.ts +8 -0
- package/corpus/templates/design/app/components/design/bridge/hit-test.bridge.ts +24 -1
- package/corpus/templates/design/app/components/design/bridge/source-location.bridge.ts +530 -0
- package/corpus/templates/design/app/components/design/code-workbench/CodeWorkbenchLoader.tsx +278 -0
- package/corpus/templates/design/app/components/design/code-workbench/editor/MonacoHost.tsx +32 -12
- package/corpus/templates/design/app/components/design/code-workbench/editor/monaco-setup.ts +14 -3
- package/corpus/templates/design/app/components/design/code-workbench/explorer/ExplorerView.tsx +87 -24
- package/corpus/templates/design/app/components/design/code-workbench/explorer/FileTree.tsx +36 -0
- package/corpus/templates/design/app/components/design/code-workbench/store.tsx +2 -1
- package/corpus/templates/design/app/components/design/code-workbench/workspace/localhost-provider.ts +48 -8
- package/corpus/templates/design/app/components/design/design-canvas/content-size-report.ts +3 -13
- package/corpus/templates/design/app/components/design/design-canvas/embedded-frame.ts +4 -2
- package/corpus/templates/design/app/components/design/design-canvas/hit-test.ts +3 -13
- package/corpus/templates/design/app/components/design/edit-panel/element-classification.ts +3 -1
- package/corpus/templates/design/app/components/design/edit-panel/inspect-code-source.ts +93 -0
- package/corpus/templates/design/app/components/design/multi-screen/board-surface-html.ts +4 -2
- package/corpus/templates/design/app/components/design/multi-screen/cross-screen-drop.ts +35 -0
- package/corpus/templates/design/app/components/design/multi-screen/iframe-targeting.ts +24 -0
- package/corpus/templates/design/app/components/design/multi-screen/types.ts +9 -0
- package/corpus/templates/design/app/components/design/types.ts +29 -0
- package/corpus/templates/design/app/components/layout/Layout.tsx +7 -4
- package/corpus/templates/design/app/hooks/use-navigation-state.ts +3 -0
- package/corpus/templates/design/app/i18n-data.ts +153 -46
- package/corpus/templates/design/app/i18n-responsive-interact.ts +12 -12
- package/corpus/templates/design/app/lib/design-editor-route.ts +23 -0
- package/corpus/templates/design/app/pages/VisualEdit.tsx +19 -6
- package/corpus/templates/design/app/pages/design-editor/action-error.ts +19 -0
- package/corpus/templates/design/app/pages/design-editor/canvas-primitive-insert.ts +29 -0
- package/corpus/templates/design/app/pages/design-editor/clone-and-pen-edit.ts +6 -0
- package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +277 -15
- package/corpus/templates/design/app/pages/design-editor/editor-state.ts +75 -9
- package/corpus/templates/design/app/pages/design-editor/layer-state-scope.ts +28 -0
- package/corpus/templates/design/app/pages/design-editor/live-screen-layer-drop.ts +41 -0
- package/corpus/templates/design/app/pages/design-editor/pending-edits.ts +496 -41
- package/corpus/templates/design/app/pages/design-editor/pending-live-edit-unload-guard.ts +27 -0
- package/corpus/templates/design/app/pages/design-editor/pending-structure-verification.ts +10 -0
- package/corpus/templates/design/app/pages/design-editor/react-semantic-handoff.ts +168 -9
- package/corpus/templates/design/app/pages/design-editor/responsive-interact.ts +41 -3
- package/corpus/templates/design/app/pages/design-editor/screen-command-utils.ts +5 -0
- package/corpus/templates/design/app/pages/design-editor/selection-state.ts +42 -13
- package/corpus/templates/design/app/pages/design-editor/source-location.ts +180 -0
- package/corpus/templates/design/app/pages/design-editor/tool-state.ts +17 -0
- package/corpus/templates/design/app/public-routes.ts +1 -0
- package/corpus/templates/design/app/routes/visual-edit.$id.tsx +15 -0
- package/corpus/templates/design/changelog/2026-06-29-screen-overview-is-easier-to-find-and-named-screens-open-dir.md +1 -1
- package/corpus/templates/design/changelog/2026-07-28-deleting-a-selected-element-now-removes-it-from-the-live-pre.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-deleting-an-element-on-a-connected-localhost-screen-now-queu.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-interact-mode-now-shows-a-responsive-device-preview-with-pre.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-layer-hide-and-lock-now-apply-to-the-live-preview-instead-of.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-layers-panel-selections-on-a-connected-localhost-screen-can-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-locked-layers-now-show-a-subtle-dashed-outline-in-the-live-p.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-the-apply-design-updates-button-now-counts-pending-live-text.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-the-design-canvas-no-longer-stalls-on-a-render-loop-while-a-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-visual-edit-on-a-local-dev-server-no-longer-requires-signing.md +6 -0
- package/corpus/templates/design/changelog/2026-07-28-visual-edits-on-a-react-19-app-no-longer-report-a-source-lin.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-an-edit-that-cannot-be-written-to-source-now-names-the-reaso.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-applying-a-primitive-dropped-onto-a-connected-localhost-scre.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-changing-a-style-in-the-inspector-now-updates-a-connected-lo.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-choosing-edit-or-annotate-from-a-focused-screen-now-returns-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-concurrent-source-edits-now-return-a-clear-conflict-response.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-creating-a-component-from-an-element-that-repeats-in-the-sou.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-deleting-an-element-you-just-dropped-onto-a-live-screen-no-l.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-dragging-a-layer-across-screens-no-longer-dies-when-the-poin.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-dragging-an-element-from-a-stored-screen-into-a-live-localho.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-drawing-a-box-on-the-canvas-and-dragging-it-into-a-connected.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-fixed-a-loading-screen-flicker-when-reopening-designs-with-a.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-interact-mode-has-edit-and-annotate-buttons-again-so-you-can.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-layer-groups-can-be-dropped-onto-live-localhost-screens.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-localhost-source-errors-now-say-what-actually-went-wrong-whi.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-opening-or-refreshing-a-live-localhost-screen-in-single-scre.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-redo-after-undoing-a-drop-onto-a-live-screen-puts-the-elemen.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-shapes-can-be-drawn-directly-onto-live-localhost-screens.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-shapes-drawn-on-the-canvas-board-now-appear-immediately-inst.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-style-edits-on-a-running-localhost-screen-now-preview-live-a.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-the-apply-design-updates-control-now-appears-as-a-clean-conn.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-visual-edits-on-a-mapped-component-instance-now-tell-the-age.md +6 -0
- package/corpus/templates/design/server/lib/design-data-access.ts +21 -7
- package/corpus/templates/design/server/lib/localhost-connection.ts +240 -0
- package/corpus/templates/design/server/routes/[...page].get.ts +2 -5
- package/corpus/templates/design/server/source-workspace.ts +2 -0
- package/corpus/templates/design/shared/code-layer.ts +43 -0
- package/corpus/templates/design/shared/html-content.ts +26 -0
- package/corpus/templates/design/shared/html-integrity.ts +21 -1
- package/corpus/templates/design/shared/local-jsx-visual-edit.ts +15 -0
- package/corpus/templates/design/shared/source-mode.ts +76 -0
- package/corpus/templates/dispatch/changelog/2026-07-29-workspace-members-without-admin-access-now-see-a-clear-permi.md +6 -0
- package/corpus/templates/dispatch/server/lib/usage-metrics.ts +2 -1
- package/corpus/templates/plan/app/lib/plan-annotation-runtime.ts +3 -4
- package/corpus/templates/plan/server/routes/[...page].get.ts +2 -5
- package/corpus/templates/slides/actions/patch-deck.ts +29 -17
- package/corpus/toolkit/CHANGELOG.md +6 -0
- package/corpus/toolkit/package.json +1 -1
- package/corpus/toolkit/src/composer/ComposerPlusMenu.tsx +3 -2
- package/dist/action-ui.d.ts +1 -0
- package/dist/action-ui.d.ts.map +1 -1
- package/dist/action-ui.js +1 -0
- package/dist/action-ui.js.map +1 -1
- package/dist/action.d.ts +5 -1
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js.map +1 -1
- package/dist/agent/engine/ai-sdk-engine.d.ts.map +1 -1
- package/dist/agent/engine/ai-sdk-engine.js +13 -5
- package/dist/agent/engine/ai-sdk-engine.js.map +1 -1
- package/dist/agent/harness/runner.d.ts.map +1 -1
- package/dist/agent/harness/runner.js +5 -0
- package/dist/agent/harness/runner.js.map +1 -1
- package/dist/agent/production-agent.d.ts +16 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +18 -1
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/run-loop-with-resume.d.ts.map +1 -1
- package/dist/agent/run-loop-with-resume.js +6 -0
- package/dist/agent/run-loop-with-resume.js.map +1 -1
- package/dist/agent/run-manager.d.ts +14 -0
- package/dist/agent/run-manager.d.ts.map +1 -1
- package/dist/agent/run-manager.js +91 -1
- package/dist/agent/run-manager.js.map +1 -1
- package/dist/agent/thread-data-builder.d.ts +3 -0
- package/dist/agent/thread-data-builder.d.ts.map +1 -1
- package/dist/agent/thread-data-builder.js +35 -3
- package/dist/agent/thread-data-builder.js.map +1 -1
- package/dist/agent/types.d.ts +2 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/chat-threads/store.d.ts.map +1 -1
- package/dist/chat-threads/store.js +4 -6
- package/dist/chat-threads/store.js.map +1 -1
- package/dist/cli/create.d.ts +66 -6
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +765 -66
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/design-connect.d.ts.map +1 -1
- package/dist/cli/design-connect.js +2 -7
- package/dist/cli/design-connect.js.map +1 -1
- package/dist/cli/index.js +5 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/skills-content/design-visual-edit-skill.d.ts +1 -1
- package/dist/cli/skills-content/design-visual-edit-skill.d.ts.map +1 -1
- package/dist/cli/skills-content/design-visual-edit-skill.js +83 -47
- package/dist/cli/skills-content/design-visual-edit-skill.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +16 -9
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/agent-chat-adapter.js +21 -0
- package/dist/client/agent-chat-adapter.js.map +1 -1
- package/dist/client/blocks/library/wireframe-kit.d.ts +2 -0
- package/dist/client/blocks/library/wireframe-kit.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe-kit.js +8 -2
- package/dist/client/blocks/library/wireframe-kit.js.map +1 -1
- package/dist/client/chat/index.d.ts +1 -1
- package/dist/client/chat/index.d.ts.map +1 -1
- package/dist/client/chat/index.js +1 -1
- package/dist/client/chat/index.js.map +1 -1
- package/dist/client/chat/message-components.d.ts +17 -0
- package/dist/client/chat/message-components.d.ts.map +1 -1
- package/dist/client/chat/message-components.js +24 -2
- package/dist/client/chat/message-components.js.map +1 -1
- package/dist/client/chat/run-recovery.d.ts +6 -0
- package/dist/client/chat/run-recovery.d.ts.map +1 -1
- package/dist/client/chat/run-recovery.js +13 -3
- package/dist/client/chat/run-recovery.js.map +1 -1
- package/dist/client/chat/widgets/DataTableWidget.d.ts.map +1 -1
- package/dist/client/chat/widgets/DataTableWidget.js +2 -3
- package/dist/client/chat/widgets/DataTableWidget.js.map +1 -1
- package/dist/client/chat/widgets/WorkspaceFileWidget.d.ts +5 -0
- package/dist/client/chat/widgets/WorkspaceFileWidget.d.ts.map +1 -0
- package/dist/client/chat/widgets/WorkspaceFileWidget.js +34 -0
- package/dist/client/chat/widgets/WorkspaceFileWidget.js.map +1 -0
- package/dist/client/chat/widgets/builtin-tool-renderers.d.ts.map +1 -1
- package/dist/client/chat/widgets/builtin-tool-renderers.js +13 -1
- package/dist/client/chat/widgets/builtin-tool-renderers.js.map +1 -1
- package/dist/client/chat/widgets/workspace-file-result.d.ts +12 -0
- package/dist/client/chat/widgets/workspace-file-result.d.ts.map +1 -0
- package/dist/client/chat/widgets/workspace-file-result.js +34 -0
- package/dist/client/chat/widgets/workspace-file-result.js.map +1 -0
- package/dist/client/embed-auth.d.ts.map +1 -1
- package/dist/client/embed-auth.js +2 -1
- package/dist/client/embed-auth.js.map +1 -1
- package/dist/client/org/InvitationBanner.d.ts +5 -2
- package/dist/client/org/InvitationBanner.d.ts.map +1 -1
- package/dist/client/org/InvitationBanner.js +9 -2
- package/dist/client/org/InvitationBanner.js.map +1 -1
- package/dist/client/org/OrgSwitcher.d.ts.map +1 -1
- package/dist/client/org/OrgSwitcher.js +3 -2
- package/dist/client/org/OrgSwitcher.js.map +1 -1
- package/dist/client/org/TeamPage.d.ts.map +1 -1
- package/dist/client/org/TeamPage.js +27 -3
- package/dist/client/org/TeamPage.js.map +1 -1
- package/dist/client/org/WorkspaceNotice.d.ts +18 -0
- package/dist/client/org/WorkspaceNotice.d.ts.map +1 -0
- package/dist/client/org/WorkspaceNotice.js +56 -0
- package/dist/client/org/WorkspaceNotice.js.map +1 -0
- package/dist/client/org/hooks.d.ts +1 -0
- package/dist/client/org/hooks.d.ts.map +1 -1
- package/dist/client/org/hooks.js +12 -0
- package/dist/client/org/hooks.js.map +1 -1
- package/dist/client/org/index.d.ts +2 -1
- package/dist/client/org/index.d.ts.map +1 -1
- package/dist/client/org/index.js +2 -1
- package/dist/client/org/index.js.map +1 -1
- package/dist/client/resources/McpIntegrationDialog.d.ts.map +1 -1
- package/dist/client/resources/McpIntegrationDialog.js +8 -12
- package/dist/client/resources/McpIntegrationDialog.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts +3 -0
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +49 -20
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.d.ts +1 -0
- package/dist/client/resources/mcp-integration-catalog.d.ts.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.js +3 -0
- package/dist/client/resources/mcp-integration-catalog.js.map +1 -1
- package/dist/client/resources/use-resources.d.ts +1 -0
- package/dist/client/resources/use-resources.d.ts.map +1 -1
- package/dist/client/resources/use-resources.js +3 -0
- package/dist/client/resources/use-resources.js.map +1 -1
- package/dist/client/use-action.d.ts +3 -1
- package/dist/client/use-action.d.ts.map +1 -1
- package/dist/client/use-action.js +3 -1
- package/dist/client/use-action.js.map +1 -1
- package/dist/client/widgets/index.d.ts +1 -1
- package/dist/client/widgets/index.d.ts.map +1 -1
- package/dist/client/widgets/index.js +1 -1
- package/dist/client/widgets/index.js.map +1 -1
- package/dist/coding-tools/run-code.js +2 -1
- package/dist/coding-tools/run-code.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/db/client.d.ts +1 -0
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +24 -3
- package/dist/db/client.js.map +1 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +25 -3
- package/dist/deploy/build.js.map +1 -1
- package/dist/eject/remote-mcp-presets.js +1 -1
- package/dist/eject/remote-mcp-presets.js.map +1 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/google-docs-poller.d.ts.map +1 -1
- package/dist/integrations/google-docs-poller.js +4 -1
- package/dist/integrations/google-docs-poller.js.map +1 -1
- package/dist/integrations/webhook-handler.d.ts.map +1 -1
- package/dist/integrations/webhook-handler.js +23 -11
- package/dist/integrations/webhook-handler.js.map +1 -1
- package/dist/jobs/scheduler.js +4 -0
- package/dist/jobs/scheduler.js.map +1 -1
- package/dist/localization/default-messages.d.ts +3 -2
- package/dist/localization/default-messages.d.ts.map +1 -1
- package/dist/localization/default-messages.js +3 -2
- package/dist/localization/default-messages.js.map +1 -1
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +3 -3
- package/dist/observability/traces.d.ts.map +1 -1
- package/dist/observability/traces.js +27 -7
- package/dist/observability/traces.js.map +1 -1
- package/dist/org/handlers.d.ts +15 -0
- package/dist/org/handlers.d.ts.map +1 -1
- package/dist/org/handlers.js +45 -1
- package/dist/org/handlers.js.map +1 -1
- package/dist/org/migrations.d.ts.map +1 -1
- package/dist/org/migrations.js +4 -0
- package/dist/org/migrations.js.map +1 -1
- package/dist/org/plugin.d.ts +1 -0
- package/dist/org/plugin.d.ts.map +1 -1
- package/dist/org/plugin.js +10 -1
- package/dist/org/plugin.js.map +1 -1
- package/dist/org/schema.d.ts +19 -0
- package/dist/org/schema.d.ts.map +1 -1
- package/dist/org/schema.js +1 -0
- package/dist/org/schema.js.map +1 -1
- package/dist/org/types.d.ts +8 -0
- package/dist/org/types.d.ts.map +1 -1
- package/dist/org/types.js.map +1 -1
- package/dist/org/workspace-url.d.ts +32 -0
- package/dist/org/workspace-url.d.ts.map +1 -0
- package/dist/org/workspace-url.js +63 -0
- package/dist/org/workspace-url.js.map +1 -0
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +11 -11
- package/dist/provider-api/actions/provider-api.d.ts +7 -7
- package/dist/resources/handlers.d.ts +2 -3
- package/dist/resources/handlers.d.ts.map +1 -1
- package/dist/resources/handlers.js +25 -5
- package/dist/resources/handlers.js.map +1 -1
- package/dist/scripts/runner.d.ts +17 -0
- package/dist/scripts/runner.d.ts.map +1 -1
- package/dist/scripts/runner.js +130 -5
- package/dist/scripts/runner.js.map +1 -1
- package/dist/server/action-routes.d.ts.map +1 -1
- package/dist/server/action-routes.js +24 -2
- package/dist/server/action-routes.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +26 -1
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-teams.d.ts.map +1 -1
- package/dist/server/agent-teams.js +10 -1
- package/dist/server/agent-teams.js.map +1 -1
- package/dist/server/auth.d.ts +22 -0
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +33 -7
- package/dist/server/auth.js.map +1 -1
- package/dist/server/embed-route.d.ts.map +1 -1
- package/dist/server/embed-route.js +6 -1
- package/dist/server/embed-route.js.map +1 -1
- package/dist/server/embed-session.d.ts +7 -0
- package/dist/server/embed-session.d.ts.map +1 -1
- package/dist/server/embed-session.js +46 -4
- package/dist/server/embed-session.js.map +1 -1
- package/dist/server/open-route.d.ts.map +1 -1
- package/dist/server/open-route.js +17 -7
- package/dist/server/open-route.js.map +1 -1
- package/dist/server/prompts/framework-core-compact.js +1 -1
- package/dist/server/prompts/framework-core-compact.js.map +1 -1
- package/dist/server/prompts/framework-core.d.ts.map +1 -1
- package/dist/server/prompts/framework-core.js +1 -0
- package/dist/server/prompts/framework-core.js.map +1 -1
- package/dist/server/realtime-token.d.ts +1 -1
- package/dist/server/request-context.d.ts +26 -0
- package/dist/server/request-context.d.ts.map +1 -1
- package/dist/server/request-context.js +18 -1
- package/dist/server/request-context.js.map +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/shared/embed-auth.d.ts +1 -0
- package/dist/shared/embed-auth.d.ts.map +1 -1
- package/dist/shared/embed-auth.js +1 -0
- package/dist/shared/embed-auth.js.map +1 -1
- package/dist/shared/html-document.d.ts +12 -0
- package/dist/shared/html-document.d.ts.map +1 -0
- package/dist/shared/html-document.js +92 -0
- package/dist/shared/html-document.js.map +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/sharing/access.d.ts +1 -0
- package/dist/sharing/access.d.ts.map +1 -1
- package/dist/sharing/access.js +8 -2
- package/dist/sharing/access.js.map +1 -1
- package/dist/sharing/registry.d.ts +3 -0
- package/dist/sharing/registry.d.ts.map +1 -1
- package/dist/sharing/registry.js.map +1 -1
- package/dist/workspace-files/actions.d.ts +28 -0
- package/dist/workspace-files/actions.d.ts.map +1 -0
- package/dist/workspace-files/actions.js +75 -0
- package/dist/workspace-files/actions.js.map +1 -0
- package/dist/workspace-files/tool.d.ts.map +1 -1
- package/dist/workspace-files/tool.js +4 -0
- package/dist/workspace-files/tool.js.map +1 -1
- package/docs/content/cloneable-saas.mdx +114 -0
- package/docs/content/creating-templates.mdx +28 -2
- package/docs/content/syncing-template-changes.mdx +7 -0
- package/docs/content/template-clips-developers.mdx +12 -5
- package/docs/content/template-dispatch-developers.mdx +1 -1
- package/docs/content/template-dispatch.mdx +1 -1
- package/package.json +2 -2
- package/src/action-ui.ts +1 -0
- package/src/action.ts +5 -1
- package/src/agent/engine/ai-sdk-engine.ts +15 -5
- package/src/agent/harness/runner.ts +5 -0
- package/src/agent/production-agent.ts +33 -0
- package/src/agent/run-loop-with-resume.ts +5 -0
- package/src/agent/run-manager.ts +126 -1
- package/src/agent/thread-data-builder.ts +47 -2
- package/src/agent/types.ts +2 -0
- package/src/chat-threads/store.ts +4 -5
- package/src/cli/create.ts +1139 -65
- package/src/cli/design-connect.ts +3 -7
- package/src/cli/index.ts +5 -3
- package/src/cli/skills-content/design-visual-edit-skill.ts +83 -47
- package/src/client/AssistantChat.tsx +27 -16
- package/src/client/agent-chat-adapter.ts +24 -0
- package/src/client/blocks/library/wireframe-kit.tsx +17 -2
- package/src/client/chat/index.ts +1 -0
- package/src/client/chat/message-components.tsx +104 -1
- package/src/client/chat/run-recovery.tsx +15 -3
- package/src/client/chat/widgets/DataTableWidget.tsx +10 -29
- package/src/client/chat/widgets/WorkspaceFileWidget.tsx +71 -0
- package/src/client/chat/widgets/builtin-tool-renderers.tsx +22 -0
- package/src/client/chat/widgets/workspace-file-result.ts +49 -0
- package/src/client/embed-auth.ts +2 -0
- package/src/client/org/InvitationBanner.tsx +14 -1
- package/src/client/org/OrgSwitcher.tsx +23 -0
- package/src/client/org/TeamPage.tsx +130 -0
- package/src/client/org/WorkspaceNotice.tsx +85 -0
- package/src/client/org/hooks.ts +14 -0
- package/src/client/org/index.ts +2 -0
- package/src/client/resources/McpIntegrationDialog.tsx +27 -40
- package/src/client/resources/ResourcesPanel.tsx +134 -51
- package/src/client/resources/mcp-integration-catalog.ts +7 -0
- package/src/client/resources/use-resources.ts +6 -0
- package/src/client/use-action.ts +3 -1
- package/src/client/widgets/index.ts +1 -0
- package/src/coding-tools/run-code.ts +2 -1
- package/src/db/client.ts +28 -4
- package/src/deploy/build.ts +31 -3
- package/src/eject/remote-mcp-presets.ts +1 -1
- package/src/index.browser.ts +1 -0
- package/src/index.ts +1 -0
- package/src/integrations/google-docs-poller.ts +3 -0
- package/src/integrations/webhook-handler.ts +28 -11
- package/src/jobs/scheduler.ts +4 -0
- package/src/localization/default-messages.ts +3 -2
- package/src/observability/traces.ts +48 -12
- package/src/org/handlers.ts +52 -1
- package/src/org/migrations.ts +4 -0
- package/src/org/plugin.ts +14 -0
- package/src/org/schema.ts +1 -0
- package/src/org/types.ts +8 -0
- package/src/org/workspace-url.ts +74 -0
- package/src/resources/handlers.ts +35 -5
- package/src/scripts/runner.ts +183 -5
- package/src/server/__snapshots__/agent-chat-plugin.surface.spec.ts.snap +2 -1
- package/src/server/action-routes.ts +32 -2
- package/src/server/agent-chat-plugin.ts +29 -0
- package/src/server/agent-teams.ts +10 -1
- package/src/server/auth.ts +33 -7
- package/src/server/embed-route.ts +9 -0
- package/src/server/embed-session.ts +62 -3
- package/src/server/open-route.ts +20 -6
- package/src/server/prompts/framework-core-compact.ts +1 -1
- package/src/server/prompts/framework-core.ts +1 -0
- package/src/server/request-context.ts +36 -1
- package/src/shared/embed-auth.ts +1 -0
- package/src/shared/html-document.ts +115 -0
- package/src/shared/index.ts +1 -0
- package/src/sharing/access.ts +8 -1
- package/src/sharing/registry.ts +11 -2
- package/src/workspace-files/actions.ts +100 -0
- package/src/workspace-files/tool.ts +4 -0
- package/corpus/templates/design/changelog/2026-07-28-interact-mode-can-preview-designs-in-responsive-device-sizes.md +0 -6
- package/corpus/templates/design/changelog/2026-07-28-interact-mode-now-opens-a-full-screen-responsive-preview-wit.md +0 -6
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { useActionQuery } from "@agent-native/core/client/hooks";
|
|
2
|
+
import { IconFileCode, IconLoader2 } from "@tabler/icons-react";
|
|
3
|
+
import {
|
|
4
|
+
useCallback,
|
|
5
|
+
Component,
|
|
6
|
+
lazy,
|
|
7
|
+
useMemo,
|
|
8
|
+
Suspense,
|
|
9
|
+
useEffect,
|
|
10
|
+
useState,
|
|
11
|
+
type ComponentType,
|
|
12
|
+
type ErrorInfo,
|
|
13
|
+
type ReactNode,
|
|
14
|
+
} from "react";
|
|
15
|
+
|
|
16
|
+
import { Spinner } from "@/components/ui/spinner";
|
|
17
|
+
import { prettyScreenName } from "@/lib/screen-names";
|
|
18
|
+
|
|
19
|
+
import type { CodeWorkbenchProps } from "./CodeWorkbench";
|
|
20
|
+
import { baseName } from "./workspace/types";
|
|
21
|
+
|
|
22
|
+
export type CodeWorkbenchModuleLoader = () => Promise<{
|
|
23
|
+
default: ComponentType<CodeWorkbenchProps>;
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
const loadCodeWorkbench: CodeWorkbenchModuleLoader = () =>
|
|
27
|
+
import("./CodeWorkbench").then((module) => ({
|
|
28
|
+
default: module.CodeWorkbench,
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
export function preloadCodeWorkbench() {
|
|
32
|
+
void loadCodeWorkbench().catch(() => {
|
|
33
|
+
// The mounted boundary reports import failures. Hover/focus preloading is
|
|
34
|
+
// speculative and must not produce an unhandled rejection.
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (typeof window !== "undefined" && import.meta.env.MODE !== "test") {
|
|
39
|
+
preloadCodeWorkbench();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CodeWorkbenchLoader(props: CodeWorkbenchProps) {
|
|
43
|
+
return (
|
|
44
|
+
<RetryableCodeWorkbenchLoader
|
|
45
|
+
loadWorkbench={loadCodeWorkbench}
|
|
46
|
+
workbenchProps={props}
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RetryableCodeWorkbenchLoader({
|
|
52
|
+
loadWorkbench,
|
|
53
|
+
workbenchProps,
|
|
54
|
+
}: {
|
|
55
|
+
loadWorkbench: CodeWorkbenchModuleLoader;
|
|
56
|
+
workbenchProps: CodeWorkbenchProps;
|
|
57
|
+
}) {
|
|
58
|
+
const [attempt, setAttempt] = useState(0);
|
|
59
|
+
const LazyCodeWorkbench = useMemo(
|
|
60
|
+
() => lazy(loadWorkbench),
|
|
61
|
+
[attempt, loadWorkbench],
|
|
62
|
+
);
|
|
63
|
+
const retry = useCallback(() => setAttempt((current) => current + 1), []);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<CodeWorkbenchLoadErrorBoundary key={attempt} onRetry={retry}>
|
|
67
|
+
<Suspense
|
|
68
|
+
fallback={<CodeWorkbenchLoading {...workbenchProps} onRetry={retry} />}
|
|
69
|
+
>
|
|
70
|
+
<LazyCodeWorkbench {...workbenchProps} />
|
|
71
|
+
</Suspense>
|
|
72
|
+
</CodeWorkbenchLoadErrorBoundary>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
interface PreviewFile {
|
|
77
|
+
path: string;
|
|
78
|
+
label: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function CodeWorkbenchLoading({
|
|
82
|
+
designId,
|
|
83
|
+
localhostConnections = [],
|
|
84
|
+
onRetry,
|
|
85
|
+
}: CodeWorkbenchProps & { onRetry: () => void }) {
|
|
86
|
+
const [slow, setSlow] = useState(false);
|
|
87
|
+
const sourceFilesQuery = useActionQuery("list-source-files", { designId });
|
|
88
|
+
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
const timer = window.setTimeout(() => setSlow(true), 12_000);
|
|
91
|
+
return () => window.clearTimeout(timer);
|
|
92
|
+
}, []);
|
|
93
|
+
|
|
94
|
+
const inlineFiles = (
|
|
95
|
+
sourceFilesQuery.data as
|
|
96
|
+
| { files?: Array<{ path?: string; displayName?: string }> }
|
|
97
|
+
| undefined
|
|
98
|
+
)?.files;
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<div
|
|
102
|
+
role="status"
|
|
103
|
+
data-testid="design-code-workbench-loading"
|
|
104
|
+
className="flex min-h-0 flex-1 bg-[var(--design-editor-panel-bg)] text-muted-foreground"
|
|
105
|
+
>
|
|
106
|
+
<div className="flex w-60 shrink-0 flex-col border-r border-border">
|
|
107
|
+
<div className="flex h-9 shrink-0 items-center border-b border-border px-3 text-[11px] font-medium uppercase tracking-wide">
|
|
108
|
+
{"Explorer" /* i18n-ignore */}
|
|
109
|
+
</div>
|
|
110
|
+
<div className="min-h-0 flex-1 overflow-auto py-1">
|
|
111
|
+
<PreviewFileRoot
|
|
112
|
+
label="DESIGN FILES"
|
|
113
|
+
files={(inlineFiles ?? []).map((file) => ({
|
|
114
|
+
path: file.path ?? file.displayName ?? "",
|
|
115
|
+
label:
|
|
116
|
+
file.displayName ??
|
|
117
|
+
(file.path
|
|
118
|
+
? prettyScreenName(baseName(file.path))
|
|
119
|
+
: "Untitled"),
|
|
120
|
+
}))}
|
|
121
|
+
loading={sourceFilesQuery.isLoading}
|
|
122
|
+
error={
|
|
123
|
+
sourceFilesQuery.error instanceof Error
|
|
124
|
+
? sourceFilesQuery.error.message
|
|
125
|
+
: undefined
|
|
126
|
+
}
|
|
127
|
+
/>
|
|
128
|
+
{localhostConnections.map((connection) => (
|
|
129
|
+
<PreviewFileRoot
|
|
130
|
+
key={connection.connectionId}
|
|
131
|
+
label={`LOCAL FILES — ${connection.label}`}
|
|
132
|
+
title={connection.rootPath}
|
|
133
|
+
files={[]}
|
|
134
|
+
loading
|
|
135
|
+
loadingLabel={"Starting editor…" /* i18n-ignore */}
|
|
136
|
+
/>
|
|
137
|
+
))}
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
<div className="grid min-h-0 flex-1 place-items-center bg-[var(--workbench-editor-bg,var(--design-editor-panel-bg))] p-6">
|
|
141
|
+
{slow ? (
|
|
142
|
+
<div className="max-w-sm text-center text-[12px]">
|
|
143
|
+
<p>
|
|
144
|
+
{
|
|
145
|
+
"The code editor is taking longer than expected to load." /* i18n-ignore */
|
|
146
|
+
}
|
|
147
|
+
</p>
|
|
148
|
+
<button
|
|
149
|
+
type="button"
|
|
150
|
+
className="mt-3 cursor-pointer rounded-md bg-primary px-3 py-1.5 font-medium text-primary-foreground hover:opacity-90"
|
|
151
|
+
onClick={onRetry}
|
|
152
|
+
>
|
|
153
|
+
{"Retry code editor" /* i18n-ignore */}
|
|
154
|
+
</button>
|
|
155
|
+
</div>
|
|
156
|
+
) : (
|
|
157
|
+
<div className="flex items-center gap-2 text-[12px]">
|
|
158
|
+
<Spinner className="size-3.5" />
|
|
159
|
+
<span>{"Starting Monaco…" /* i18n-ignore */}</span>
|
|
160
|
+
</div>
|
|
161
|
+
)}
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function PreviewFileRoot({
|
|
168
|
+
label,
|
|
169
|
+
title,
|
|
170
|
+
files,
|
|
171
|
+
loading,
|
|
172
|
+
loadingLabel = "Loading files…" /* i18n-ignore */,
|
|
173
|
+
error,
|
|
174
|
+
}: {
|
|
175
|
+
label: string;
|
|
176
|
+
title?: string;
|
|
177
|
+
files: PreviewFile[];
|
|
178
|
+
loading: boolean;
|
|
179
|
+
loadingLabel?: string;
|
|
180
|
+
error?: string;
|
|
181
|
+
}) {
|
|
182
|
+
return (
|
|
183
|
+
<section className="pb-1">
|
|
184
|
+
<div
|
|
185
|
+
className="flex h-[22px] items-center px-2 text-[11px] font-bold uppercase tracking-wide"
|
|
186
|
+
title={title}
|
|
187
|
+
>
|
|
188
|
+
<span className="truncate">{label}</span>
|
|
189
|
+
</div>
|
|
190
|
+
{loading ? (
|
|
191
|
+
<div className="flex items-center gap-1.5 px-3 py-1 text-[11px]">
|
|
192
|
+
<IconLoader2 className="size-3 animate-spin" />
|
|
193
|
+
<span>{loadingLabel}</span>
|
|
194
|
+
</div>
|
|
195
|
+
) : error ? (
|
|
196
|
+
<p className="break-words px-3 py-1 text-[11px]">{error}</p>
|
|
197
|
+
) : (
|
|
198
|
+
files.map((file) => (
|
|
199
|
+
<div
|
|
200
|
+
key={file.path}
|
|
201
|
+
className="flex h-6 items-center gap-1.5 px-3 text-[12px]"
|
|
202
|
+
title={file.path}
|
|
203
|
+
>
|
|
204
|
+
<IconFileCode className="size-3.5 shrink-0" />
|
|
205
|
+
<span className="truncate">{file.label}</span>
|
|
206
|
+
</div>
|
|
207
|
+
))
|
|
208
|
+
)}
|
|
209
|
+
</section>
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function CodeWorkbenchLoadFailure({
|
|
214
|
+
message,
|
|
215
|
+
onRetry,
|
|
216
|
+
}: {
|
|
217
|
+
message: string;
|
|
218
|
+
onRetry: () => void;
|
|
219
|
+
}) {
|
|
220
|
+
return (
|
|
221
|
+
<div
|
|
222
|
+
role="alert"
|
|
223
|
+
data-testid="design-code-workbench-load-error"
|
|
224
|
+
className="grid min-h-0 flex-1 place-items-center bg-[var(--design-editor-panel-bg)] p-6 text-muted-foreground"
|
|
225
|
+
>
|
|
226
|
+
<div className="max-w-sm text-center text-[12px]">
|
|
227
|
+
<p>{message}</p>
|
|
228
|
+
<button
|
|
229
|
+
type="button"
|
|
230
|
+
className="mt-3 cursor-pointer rounded-md bg-primary px-3 py-1.5 font-medium text-primary-foreground hover:opacity-90"
|
|
231
|
+
onClick={onRetry}
|
|
232
|
+
>
|
|
233
|
+
{"Retry code editor" /* i18n-ignore */}
|
|
234
|
+
</button>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
interface CodeWorkbenchLoadErrorBoundaryProps {
|
|
241
|
+
children: ReactNode;
|
|
242
|
+
onRetry: () => void;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface CodeWorkbenchLoadErrorBoundaryState {
|
|
246
|
+
error: Error | null;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
class CodeWorkbenchLoadErrorBoundary extends Component<
|
|
250
|
+
CodeWorkbenchLoadErrorBoundaryProps,
|
|
251
|
+
CodeWorkbenchLoadErrorBoundaryState
|
|
252
|
+
> {
|
|
253
|
+
state: CodeWorkbenchLoadErrorBoundaryState = { error: null };
|
|
254
|
+
|
|
255
|
+
static getDerivedStateFromError(error: Error) {
|
|
256
|
+
return { error };
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
componentDidCatch(_error: Error, _info: ErrorInfo) {
|
|
260
|
+
// The visible retry state is actionable; runtime reporting still receives
|
|
261
|
+
// the original error through React's error boundary instrumentation.
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
render() {
|
|
265
|
+
if (this.state.error) {
|
|
266
|
+
return (
|
|
267
|
+
<CodeWorkbenchLoadFailure
|
|
268
|
+
message={
|
|
269
|
+
this.state.error.message ||
|
|
270
|
+
"The code editor could not be loaded." /* i18n-ignore */
|
|
271
|
+
}
|
|
272
|
+
onRetry={this.props.onRetry}
|
|
273
|
+
/>
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
return this.props.children;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -45,7 +45,7 @@ export function MonacoHost({
|
|
|
45
45
|
commands,
|
|
46
46
|
commandContext,
|
|
47
47
|
}: MonacoHostProps) {
|
|
48
|
-
const { state } = useWorkbench();
|
|
48
|
+
const { state, api } = useWorkbench();
|
|
49
49
|
const hostRef = useRef<HTMLDivElement | null>(null);
|
|
50
50
|
const activeUriRef = useRef<string | null>(null);
|
|
51
51
|
const commandsRef = useRef(commands);
|
|
@@ -117,17 +117,19 @@ export function MonacoHost({
|
|
|
117
117
|
// Explorer, sidebar toggle, tab navigation) must also work while Monaco
|
|
118
118
|
// has focus — Monaco swallows keydown otherwise, so register editor
|
|
119
119
|
// commands that call back into the same dispatcher the root uses.
|
|
120
|
-
const editorKeyDownDisposable = editor.onKeyDown(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
120
|
+
const editorKeyDownDisposable = editor.onKeyDown(
|
|
121
|
+
(event: monaco.IKeyboardEvent) => {
|
|
122
|
+
const handled = dispatchKeybinding(
|
|
123
|
+
event.browserEvent,
|
|
124
|
+
commandsRef.current,
|
|
125
|
+
commandContextRef.current,
|
|
126
|
+
);
|
|
127
|
+
if (handled) {
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
event.stopPropagation();
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
);
|
|
131
133
|
|
|
132
134
|
return () => {
|
|
133
135
|
editorKeyDownDisposable.dispose();
|
|
@@ -275,6 +277,24 @@ export function MonacoHost({
|
|
|
275
277
|
<Spinner className="size-4" />
|
|
276
278
|
</div>
|
|
277
279
|
) : null}
|
|
280
|
+
{!loading && activeUri && activeBuffer?.error ? (
|
|
281
|
+
<div
|
|
282
|
+
role="alert"
|
|
283
|
+
data-testid="design-code-buffer-error"
|
|
284
|
+
className="absolute inset-0 grid place-items-center bg-[var(--workbench-editor-bg)]/95 p-6 text-[var(--workbench-muted-fg)]"
|
|
285
|
+
>
|
|
286
|
+
<div className="max-w-sm text-center text-[12px]">
|
|
287
|
+
<p className="break-words">{activeBuffer.error}</p>
|
|
288
|
+
<button
|
|
289
|
+
type="button"
|
|
290
|
+
className="mt-3 cursor-pointer rounded-[5px] bg-[var(--workbench-accent)] px-3 py-1.5 font-medium text-white hover:opacity-90"
|
|
291
|
+
onClick={() => void api.reloadBuffer(activeUri)}
|
|
292
|
+
>
|
|
293
|
+
{"Try again" /* i18n-ignore */}
|
|
294
|
+
</button>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
) : null}
|
|
278
298
|
</div>
|
|
279
299
|
);
|
|
280
300
|
}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import * as monaco from "monaco-editor";
|
|
2
|
-
import
|
|
1
|
+
import * as monaco from "monaco-editor/esm/vs/editor/editor.api.js";
|
|
2
|
+
import EditorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
3
3
|
|
|
4
4
|
import "monaco-editor/min/vs/editor/editor.main.css";
|
|
5
|
-
import
|
|
5
|
+
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js";
|
|
6
|
+
import "monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js";
|
|
7
|
+
import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js";
|
|
8
|
+
import "monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js";
|
|
9
|
+
import "monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js";
|
|
6
10
|
import CssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
11
|
+
import "monaco-editor/esm/vs/language/css/monaco.contribution.js";
|
|
7
12
|
import HtmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
13
|
+
import "monaco-editor/esm/vs/language/html/monaco.contribution.js";
|
|
8
14
|
import JsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
15
|
+
import "monaco-editor/esm/vs/language/json/monaco.contribution.js";
|
|
16
|
+
import * as monacoTypescriptRuntime from "monaco-editor/esm/vs/language/typescript/monaco.contribution.js";
|
|
9
17
|
import TypeScriptWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
10
18
|
|
|
19
|
+
const monacoTypescript =
|
|
20
|
+
monacoTypescriptRuntime as unknown as (typeof import("monaco-editor"))["typescript"];
|
|
21
|
+
|
|
11
22
|
/**
|
|
12
23
|
* Global Monaco environment + language-service wiring, adopted from the old
|
|
13
24
|
* CodeWorkbenchHost. Idempotent: safe to call from every mount site (the
|
package/corpus/templates/design/app/components/design/code-workbench/explorer/ExplorerView.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useActionQuery } from "@agent-native/core/client/hooks";
|
|
2
|
-
import {
|
|
2
|
+
import { useT } from "@agent-native/core/client/i18n";
|
|
3
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
4
|
|
|
4
5
|
import { prettyScreenName } from "@/lib/screen-names";
|
|
5
6
|
|
|
@@ -17,6 +18,12 @@ export interface ExplorerViewProps {
|
|
|
17
18
|
) => void;
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
interface LocalhostFileListState {
|
|
22
|
+
files: WorkspaceFileEntry[];
|
|
23
|
+
loading: boolean;
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
/**
|
|
21
28
|
* Multi-root explorer: one collapsible section per workspace provider.
|
|
22
29
|
* "Design files" (inline) is fetched via `list-source-files` so useDbSync
|
|
@@ -28,6 +35,7 @@ export function ExplorerView({
|
|
|
28
35
|
explorerFocusToken,
|
|
29
36
|
onRequestLocalWriteConsent,
|
|
30
37
|
}: ExplorerViewProps) {
|
|
38
|
+
const t = useT();
|
|
31
39
|
const { state, api, providers } = useWorkbench();
|
|
32
40
|
|
|
33
41
|
const inlineProviderKey = `inline:${designId}`;
|
|
@@ -55,22 +63,64 @@ export function ExplorerView({
|
|
|
55
63
|
const localhostProviders = providers.filter(
|
|
56
64
|
(provider) => provider.kind === "localhost",
|
|
57
65
|
);
|
|
58
|
-
const [
|
|
59
|
-
Record<string,
|
|
66
|
+
const [localhostFileLists, setLocalhostFileLists] = useState<
|
|
67
|
+
Record<string, LocalhostFileListState>
|
|
60
68
|
>({});
|
|
69
|
+
const requestIdsRef = useRef<Record<string, number>>({});
|
|
70
|
+
const mountedRef = useRef(false);
|
|
71
|
+
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
mountedRef.current = true;
|
|
74
|
+
return () => {
|
|
75
|
+
mountedRef.current = false;
|
|
76
|
+
requestIdsRef.current = {};
|
|
77
|
+
};
|
|
78
|
+
}, []);
|
|
61
79
|
|
|
62
80
|
const loadLocalhostFiles = useCallback(
|
|
63
81
|
async (providerKey: string) => {
|
|
64
82
|
const provider = providers.find((entry) => entry.key === providerKey);
|
|
65
|
-
if (!provider) return;
|
|
83
|
+
if (!provider || !mountedRef.current) return;
|
|
84
|
+
const requestId = (requestIdsRef.current[providerKey] ?? 0) + 1;
|
|
85
|
+
requestIdsRef.current[providerKey] = requestId;
|
|
86
|
+
setLocalhostFileLists((current) => ({
|
|
87
|
+
...current,
|
|
88
|
+
[providerKey]: {
|
|
89
|
+
files: current[providerKey]?.files ?? [],
|
|
90
|
+
loading: true,
|
|
91
|
+
},
|
|
92
|
+
}));
|
|
66
93
|
try {
|
|
67
94
|
const files = await provider.listFiles();
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
95
|
+
if (
|
|
96
|
+
!mountedRef.current ||
|
|
97
|
+
requestIdsRef.current[providerKey] !== requestId
|
|
98
|
+
) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
setLocalhostFileLists((current) => ({
|
|
102
|
+
...current,
|
|
103
|
+
[providerKey]: { files, loading: false },
|
|
104
|
+
}));
|
|
105
|
+
} catch (error) {
|
|
106
|
+
if (
|
|
107
|
+
!mountedRef.current ||
|
|
108
|
+
requestIdsRef.current[providerKey] !== requestId
|
|
109
|
+
) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
setLocalhostFileLists((current) => ({
|
|
113
|
+
...current,
|
|
114
|
+
[providerKey]: {
|
|
115
|
+
files: current[providerKey]?.files ?? [],
|
|
116
|
+
loading: false,
|
|
117
|
+
error:
|
|
118
|
+
error instanceof Error ? error.message : t("common.genericError"),
|
|
119
|
+
},
|
|
120
|
+
}));
|
|
71
121
|
}
|
|
72
122
|
},
|
|
73
|
-
[providers],
|
|
123
|
+
[providers, t],
|
|
74
124
|
);
|
|
75
125
|
|
|
76
126
|
useEffect(() => {
|
|
@@ -126,6 +176,14 @@ export function ExplorerView({
|
|
|
126
176
|
nodes={buildFileTree(inlineFiles)}
|
|
127
177
|
activeUri={activeUri}
|
|
128
178
|
dirtyUris={dirtyUris}
|
|
179
|
+
loading={sourceFilesQuery.isLoading}
|
|
180
|
+
error={
|
|
181
|
+
sourceFilesQuery.error instanceof Error
|
|
182
|
+
? sourceFilesQuery.error.message
|
|
183
|
+
: sourceFilesQuery.error
|
|
184
|
+
? "Could not load design files" /* i18n-ignore */
|
|
185
|
+
: undefined
|
|
186
|
+
}
|
|
129
187
|
focusToken={
|
|
130
188
|
focusOwnerKey === inlineProviderKey ? explorerFocusToken : 0
|
|
131
189
|
}
|
|
@@ -134,22 +192,27 @@ export function ExplorerView({
|
|
|
134
192
|
onRequestLocalWriteConsent={onRequestLocalWriteConsent}
|
|
135
193
|
/>
|
|
136
194
|
) : null}
|
|
137
|
-
{localhostProviders.map((provider) =>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
195
|
+
{localhostProviders.map((provider) => {
|
|
196
|
+
const fileList = localhostFileLists[provider.key];
|
|
197
|
+
return (
|
|
198
|
+
<FileTree
|
|
199
|
+
key={provider.key}
|
|
200
|
+
providerKey={provider.key}
|
|
201
|
+
providerLabel={`LOCAL FILES — ${provider.label}` /* i18n-ignore */}
|
|
202
|
+
providerTitle={provider.rootPath}
|
|
203
|
+
capabilities={provider.capabilities}
|
|
204
|
+
nodes={buildFileTree(fileList?.files ?? [])}
|
|
205
|
+
activeUri={activeUri}
|
|
206
|
+
dirtyUris={dirtyUris}
|
|
207
|
+
loading={fileList?.loading ?? true}
|
|
208
|
+
error={fileList?.error}
|
|
209
|
+
focusToken={focusOwnerKey === provider.key ? explorerFocusToken : 0}
|
|
210
|
+
registerRef={() => {}}
|
|
211
|
+
onRefresh={() => void loadLocalhostFiles(provider.key)}
|
|
212
|
+
onRequestLocalWriteConsent={onRequestLocalWriteConsent}
|
|
213
|
+
/>
|
|
214
|
+
);
|
|
215
|
+
})}
|
|
153
216
|
{!inlineFiles.length &&
|
|
154
217
|
localhostProviders.length === 0 &&
|
|
155
218
|
!sourceFilesQuery.isLoading ? (
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
IconChevronDown,
|
|
3
3
|
IconChevronRight,
|
|
4
4
|
IconFold,
|
|
5
|
+
IconLoader2,
|
|
5
6
|
IconPlus,
|
|
6
7
|
IconRefresh,
|
|
7
8
|
} from "@tabler/icons-react";
|
|
@@ -53,6 +54,8 @@ interface FileTreeProps {
|
|
|
53
54
|
nodes: TreeNode[];
|
|
54
55
|
activeUri: string | null;
|
|
55
56
|
dirtyUris: ReadonlySet<string>;
|
|
57
|
+
loading?: boolean;
|
|
58
|
+
error?: string;
|
|
56
59
|
focusToken: number;
|
|
57
60
|
registerRef: (element: HTMLDivElement | null) => void;
|
|
58
61
|
onRefresh: () => void;
|
|
@@ -75,6 +78,8 @@ export function FileTree({
|
|
|
75
78
|
nodes,
|
|
76
79
|
activeUri,
|
|
77
80
|
dirtyUris,
|
|
81
|
+
loading = false,
|
|
82
|
+
error,
|
|
78
83
|
focusToken,
|
|
79
84
|
registerRef,
|
|
80
85
|
onRefresh,
|
|
@@ -343,6 +348,32 @@ export function FileTree({
|
|
|
343
348
|
if (node) handleRowKeyDown(event, node, index);
|
|
344
349
|
}}
|
|
345
350
|
>
|
|
351
|
+
{error ? (
|
|
352
|
+
<div
|
|
353
|
+
role="status"
|
|
354
|
+
data-testid={`design-code-file-list-error-${providerKey}`}
|
|
355
|
+
className="mx-1 my-1 rounded-[5px] border border-border bg-[var(--workbench-editor-bg)] px-2 py-2 text-[11px] text-[var(--workbench-muted-fg)]"
|
|
356
|
+
>
|
|
357
|
+
<p className="break-words">{error}</p>
|
|
358
|
+
<button
|
|
359
|
+
type="button"
|
|
360
|
+
className="mt-1 cursor-pointer font-medium text-[var(--workbench-accent)] hover:underline"
|
|
361
|
+
onClick={onRefresh}
|
|
362
|
+
>
|
|
363
|
+
{"Try again" /* i18n-ignore */}
|
|
364
|
+
</button>
|
|
365
|
+
</div>
|
|
366
|
+
) : null}
|
|
367
|
+
{loading && rows.length === 0 ? (
|
|
368
|
+
<div
|
|
369
|
+
role="status"
|
|
370
|
+
data-testid={`design-code-file-list-loading-${providerKey}`}
|
|
371
|
+
className="flex items-center gap-1.5 px-2 py-2 text-[11px] text-[var(--workbench-muted-fg)]"
|
|
372
|
+
>
|
|
373
|
+
<IconLoader2 className="size-3 animate-spin" />
|
|
374
|
+
<span>{"Loading files…" /* i18n-ignore */}</span>
|
|
375
|
+
</div>
|
|
376
|
+
) : null}
|
|
346
377
|
{rows.map((row, index) => {
|
|
347
378
|
const uri = workbenchUri(providerKey, row.path);
|
|
348
379
|
const isActive = activeUri === uri;
|
|
@@ -489,6 +520,11 @@ export function FileTree({
|
|
|
489
520
|
</ContextMenu>
|
|
490
521
|
);
|
|
491
522
|
})}
|
|
523
|
+
{!loading && !error && rows.length === 0 ? (
|
|
524
|
+
<p className="px-2 py-2 text-[11px] text-[var(--workbench-muted-fg)]">
|
|
525
|
+
{"No files found" /* i18n-ignore */}
|
|
526
|
+
</p>
|
|
527
|
+
) : null}
|
|
492
528
|
{pendingNewFile ? (
|
|
493
529
|
<div
|
|
494
530
|
className="flex h-6 items-center gap-1 rounded-[5px] pr-1 text-[12px]"
|
|
@@ -362,7 +362,7 @@ export function WorkbenchProvider({
|
|
|
362
362
|
dispatch({
|
|
363
363
|
type: "SET_BUFFER",
|
|
364
364
|
meta: existingMeta
|
|
365
|
-
? { ...existingMeta, uri, loading: true }
|
|
365
|
+
? { ...existingMeta, uri, loading: true, error: undefined }
|
|
366
366
|
: {
|
|
367
367
|
uri,
|
|
368
368
|
loading: true,
|
|
@@ -370,6 +370,7 @@ export function WorkbenchProvider({
|
|
|
370
370
|
conflict: false,
|
|
371
371
|
saving: false,
|
|
372
372
|
readonly: false,
|
|
373
|
+
error: undefined,
|
|
373
374
|
},
|
|
374
375
|
});
|
|
375
376
|
try {
|