@agent-native/core 0.117.2 → 0.118.1
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 +3 -3
- package/corpus/core/CHANGELOG.md +51 -0
- package/corpus/core/docs/content/custom-design-system.mdx +445 -0
- package/corpus/core/docs/content/toolkit-ui.mdx +16 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/a2a/client.ts +32 -10
- package/corpus/core/src/a2a/types.ts +1 -0
- package/corpus/core/src/agent/types.ts +1 -1
- package/corpus/core/src/cli/index.ts +18 -10
- package/corpus/core/src/cli/multi-frontier-runs.ts +5 -3
- package/corpus/core/src/cli/templates-meta.ts +0 -12
- package/corpus/core/src/cli/workspace-dev.ts +1 -1
- package/corpus/core/src/client/AgentPanel.tsx +99 -108
- package/corpus/core/src/client/AssistantChat.tsx +30 -13
- package/corpus/core/src/client/CommandMenu.tsx +68 -178
- package/corpus/core/src/client/RunStuckBanner.tsx +39 -47
- package/corpus/core/src/client/agent-chat-adapter.ts +3 -1
- package/corpus/core/src/client/app-providers.tsx +1 -1
- package/corpus/core/src/client/chat/action-chat-ui-surface.tsx +32 -0
- package/corpus/core/src/client/chat/message-components.tsx +169 -18
- package/corpus/core/src/client/chat/tool-call-display.tsx +50 -14
- package/corpus/core/src/client/chat/widgets/InlineExtensionWidget.tsx +13 -40
- package/corpus/core/src/client/chat/widgets/builtin-tool-renderers.tsx +7 -3
- package/corpus/core/src/client/components/ui/message-scroller.tsx +15 -1
- package/corpus/core/src/client/conversation/AgentConversation.tsx +12 -1
- package/corpus/core/src/client/error-capture.ts +2 -6
- package/corpus/core/src/client/i18n.tsx +22 -0
- package/corpus/core/src/client/index.ts +17 -0
- package/corpus/core/src/client/org/TeamPage.tsx +257 -153
- package/corpus/core/src/client/progress/RunsTray.tsx +89 -88
- package/corpus/core/src/client/resources/McpConnectionSuggestion.tsx +25 -16
- package/corpus/core/src/client/resources/McpIntegrationDialog.tsx +34 -13
- package/corpus/core/src/client/resources/ResourcesPanel.tsx +5 -1
- package/corpus/core/src/client/resources/mcp-integration-catalog.ts +20 -17
- package/corpus/core/src/client/resources/mcp-integration-logos.ts +2 -2
- package/corpus/core/src/client/route-chunk-recovery.ts +5 -3
- package/corpus/core/src/client/session-replay.ts +3 -3
- package/corpus/core/src/client/settings/DemoModeSection.tsx +6 -18
- package/corpus/core/src/client/settings/SecretsSection.tsx +97 -52
- package/corpus/core/src/client/settings/SettingsPanel.tsx +217 -252
- package/corpus/core/src/client/settings/SettingsTabsPage.tsx +23 -2
- package/corpus/core/src/client/settings/VoiceTranscriptionSection.tsx +7 -18
- package/corpus/core/src/client/settings/index.ts +7 -0
- package/corpus/core/src/client/settings/useSettingsPanelController.ts +155 -0
- package/corpus/core/src/client/setup-connections/BuilderConnectCard.tsx +116 -51
- package/corpus/core/src/client/setup-connections/index.ts +10 -0
- package/corpus/core/src/client/setup-connections/useBuilderConnectCardController.ts +82 -0
- package/corpus/core/src/client/sharing/ShareButton.tsx +64 -586
- package/corpus/core/src/client/sharing/ShareDialog.tsx +299 -633
- package/corpus/core/src/client/sharing/index.ts +42 -0
- package/corpus/core/src/client/sharing/share-controller-helpers.ts +318 -0
- package/corpus/core/src/client/sharing/useShareButtonController.ts +600 -0
- package/corpus/core/src/client/sharing/useShareDialogController.ts +559 -0
- package/corpus/core/src/client/sse-event-processor.ts +23 -0
- package/corpus/core/src/client/tool-display.ts +71 -0
- package/corpus/core/src/client/transcription/use-live-transcription.ts +64 -45
- package/corpus/core/src/client/use-agent-engine-configured.ts +12 -19
- package/corpus/core/src/client/use-chat-threads.ts +33 -12
- package/corpus/core/src/deploy/build.ts +2 -1
- package/corpus/core/src/guards/db-tool-scoping.ts +1 -1
- package/corpus/core/src/integrations/adapters/slack.ts +84 -5
- package/corpus/core/src/integrations/index.ts +5 -1
- package/corpus/core/src/localization/default-messages.ts +6 -1
- package/corpus/core/src/mcp-client/oauth-routes.ts +61 -14
- package/corpus/core/src/scripts/call-agent.ts +5 -1
- package/corpus/core/src/server/realtime-voice.ts +5 -2
- package/corpus/core/src/styles/agent-native.css +0 -24
- package/corpus/core/src/templates/default/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/core/src/templates/default/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/core/src/templates/default/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/core/src/templates/default/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/core/src/templates/default/app/components/ui/toolkit-provider.tsx +10 -0
- package/corpus/core/src/templates/default/app/design-system.ts +3 -0
- package/corpus/core/src/templates/default/app/root.tsx +5 -2
- package/corpus/core/src/templates/default/package.json +1 -0
- package/corpus/core/src/templates/headless/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/core/src/templates/headless/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/core/src/templates/workspace-core/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/core/src/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/core/src/templates/workspace-core/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/core/src/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +7 -5
- package/corpus/core/src/terminal/cli-registry.ts +1 -1
- package/corpus/core/src/vite/client.ts +205 -1
- package/corpus/templates/analytics/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/analytics/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/analytics/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/analytics/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/analytics/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/analytics/app/design-system.ts +3 -0
- package/corpus/templates/analytics/app/hooks/use-dashboard-views.ts +13 -1
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/ViewsMenu.tsx +10 -0
- package/corpus/templates/analytics/changelog/2026-07-22-show-a-useful-error-when-saving-a-dashboard-view-fails.md +6 -0
- package/corpus/templates/assets/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/assets/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/assets/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/assets/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/assets/app/components/ui/alert.tsx +1 -0
- package/corpus/templates/assets/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/assets/app/design-system.ts +3 -0
- package/corpus/templates/assets/app/routes/brand-kits.$id_.presets.$presetId.tsx +26 -30
- package/corpus/templates/brain/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/brain/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/brain/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/brain/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/brain/app/components/ui/dialog.tsx +1 -0
- package/corpus/templates/brain/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/brain/app/design-system.ts +3 -0
- package/corpus/templates/brain/app/routes/sources.tsx +189 -122
- package/corpus/templates/calendar/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/calendar/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/calendar/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/calendar/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/calendar/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/calendar/app/design-system.ts +3 -0
- package/corpus/templates/chat/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/chat/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/chat/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/chat/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/chat/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/chat/app/design-system.ts +3 -0
- package/corpus/templates/clips/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/clips/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/clips/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/clips/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/clips/AGENTS.md +8 -6
- package/corpus/templates/clips/actions/request-transcript.ts +90 -420
- package/corpus/templates/clips/actions/save-browser-transcript.ts +11 -28
- package/corpus/templates/clips/app/components/capture-install-options.tsx +5 -3
- package/corpus/templates/clips/app/components/player/transcript-panel.tsx +3 -136
- package/corpus/templates/clips/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/clips/app/design-system.ts +3 -0
- package/corpus/templates/clips/app/lib/capture-install-options.ts +15 -4
- package/corpus/templates/clips/app/routes/_app.library._index.tsx +1 -1
- package/corpus/templates/clips/app/routes/download.tsx +3 -2
- package/corpus/templates/clips/changelog/2026-07-22-fixed-an-intermittent-hydration-error-on-the-download-page.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-22-fixed-transcript-generation-when-native-speech-capture-retur.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-22-fixed-windows-recordings-aborting-during-the-countdown.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-22-permissions-and-rewind-controls-are-now-grouped-with-clearer.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-22-the-desktop-popover-opens-centered-under-the-menu-bar-icon-o.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-22-transcript-generation-now-retries-with-backup-speech-recogni.md +6 -0
- package/corpus/templates/clips/desktop/src/app.tsx +86 -82
- package/corpus/templates/clips/desktop/src/styles.css +13 -0
- package/corpus/templates/clips/desktop/src-tauri/src/lib.rs +10 -1
- package/corpus/templates/clips/desktop/src-tauri/src/shortcuts.rs +37 -2
- package/corpus/templates/clips/desktop/src-tauri/src/tray.rs +18 -0
- package/corpus/templates/clips/server/lib/public-agent-context.ts +2 -2
- package/corpus/templates/clips/server/register-secrets.ts +7 -6
- package/corpus/templates/content/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/content/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/content/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/content/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/content/app/components/editor/DocumentToolbar.tsx +41 -59
- package/corpus/templates/content/app/components/editor/SlashCommandMenu.tsx +16 -84
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +13 -7
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +41 -41
- package/corpus/templates/content/app/components/editor/database/GalleryView.tsx +2 -1
- package/corpus/templates/content/app/components/editor/database/ListView.tsx +2 -1
- package/corpus/templates/content/app/components/editor/database/TimelineView.tsx +9 -9
- package/corpus/templates/content/app/components/editor/database/sidebar.tsx +7 -7
- package/corpus/templates/content/app/components/editor/database-sources/BuilderSourceReviewDialog.tsx +11 -11
- package/corpus/templates/content/app/components/editor/extensions/ImageBlock.tsx +2 -2
- package/corpus/templates/content/app/components/ui/checkbox.tsx +1 -0
- package/corpus/templates/content/app/components/ui/collapsible.tsx +1 -0
- package/corpus/templates/content/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/content/app/design-system.ts +3 -0
- package/corpus/templates/content/app/global.css +29 -3
- package/corpus/templates/content/app/i18n-data.ts +10 -0
- package/corpus/templates/content/changelog/2026-07-22-page-actions-are-grouped-into-the-three-dots-menu-for-a-clea.md +6 -0
- package/corpus/templates/design/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/design/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/design/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/design/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/design/app/components/editor/PromptDialog.tsx +8 -8
- package/corpus/templates/design/app/components/ui/command.tsx +1 -0
- package/corpus/templates/design/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/design/app/design-system.ts +3 -0
- package/corpus/templates/design/server/lib/fig-file-decoder.ts +1 -0
- package/corpus/templates/dispatch/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/dispatch/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/dispatch/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/dispatch/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/dispatch/app/components/ui/button.tsx +1 -0
- package/corpus/templates/dispatch/app/components/ui/toolkit-provider.tsx +17 -0
- package/corpus/templates/dispatch/app/design-system.ts +3 -0
- package/corpus/templates/dispatch/app/root.tsx +10 -7
- package/corpus/templates/dispatch/package.json +1 -0
- package/corpus/templates/forms/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/forms/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/forms/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/forms/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/forms/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/forms/app/design-system.ts +3 -0
- package/corpus/templates/macros/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/macros/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/macros/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/macros/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/macros/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/macros/app/design-system.ts +3 -0
- package/corpus/templates/mail/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/mail/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/mail/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/mail/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/mail/app/components/email/EmailThread.tsx +134 -93
- package/corpus/templates/mail/app/components/email/email-iframe-document.ts +8 -2
- package/corpus/templates/mail/app/components/ui/textarea.tsx +1 -21
- package/corpus/templates/mail/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/mail/app/design-system.ts +3 -0
- package/corpus/templates/mail/changelog/2026-07-22-email-messages-no-longer-flash-with-an-unstyled-page-while-l.md +6 -0
- package/corpus/templates/plan/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/plan/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/plan/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/plan/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/plan/app/components/plan/PlanContentRenderer.tsx +1 -1
- package/corpus/templates/plan/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/plan/app/design-system.ts +3 -0
- package/corpus/templates/plan/app/entry.client.tsx +3 -0
- package/corpus/templates/plan/changelog/2026-07-22-recover-stale-pages-after-a-deployment-refresh-automatically.md +6 -0
- package/corpus/templates/slides/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/slides/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/slides/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/slides/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/slides/app/components/ui/toolkit-provider.tsx +6 -1
- package/corpus/templates/slides/app/design-system.ts +3 -0
- package/corpus/templates/slides/app/hooks/use-agent-generating.ts +10 -3
- package/corpus/templates/slides/app/pages/Index.tsx +1 -0
- package/corpus/templates/slides/changelog/2026-07-22-new-deck-prompts-now-open-in-their-own-visible-chat-thread.md +6 -0
- package/corpus/templates/tasks/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/corpus/templates/tasks/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/corpus/templates/tasks/.agents/skills/frontend-design/SKILL.md +22 -2
- package/corpus/templates/tasks/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/corpus/templates/tasks/app/components/ui/toolkit-provider.tsx +17 -0
- package/corpus/templates/tasks/app/design-system.ts +3 -0
- package/corpus/templates/tasks/app/root.tsx +5 -2
- package/corpus/toolkit/CHANGELOG.md +23 -0
- package/corpus/toolkit/agent-native.eject.json +71 -0
- package/corpus/toolkit/package.json +31 -1
- package/corpus/toolkit/src/chat-history/ChatHistoryRail.tsx +100 -39
- package/corpus/toolkit/src/chat-history/index.ts +9 -0
- package/corpus/toolkit/src/chat-history/useChatHistoryRailController.ts +76 -0
- package/corpus/toolkit/src/chat-history.css +2 -0
- package/corpus/toolkit/src/composer/ComposerPlusMenu.tsx +11 -8
- package/corpus/toolkit/src/composer/PromptComposer.tsx +32 -7
- package/corpus/toolkit/src/composer/RealtimeVoiceMode.tsx +119 -31
- package/corpus/toolkit/src/composer/useRealtimeVoiceMode.tsx +124 -9
- package/corpus/toolkit/src/conformance/__fixtures__/css-in-js-adapter.tsx +401 -0
- package/corpus/toolkit/src/conformance/index.ts +3 -0
- package/corpus/toolkit/src/conformance/runner.tsx +862 -0
- package/corpus/toolkit/src/conformance/types.ts +45 -0
- package/corpus/toolkit/src/conformance/version.ts +22 -0
- package/corpus/toolkit/src/design-system/components.tsx +146 -0
- package/corpus/toolkit/src/design-system/context.tsx +31 -0
- package/corpus/toolkit/src/design-system/default-adapter.tsx +915 -0
- package/corpus/toolkit/src/design-system/definition.ts +14 -0
- package/corpus/toolkit/src/design-system/error-boundary.tsx +37 -0
- package/corpus/toolkit/src/design-system/index.ts +7 -0
- package/corpus/toolkit/src/design-system/theme.ts +145 -0
- package/corpus/toolkit/src/design-system/types.ts +363 -0
- package/corpus/toolkit/src/editor/SharedRichEditor.tsx +13 -2
- package/corpus/toolkit/src/editor/SlashCommandMenu.tsx +20 -0
- package/corpus/toolkit/src/editor/index.ts +2 -0
- package/corpus/toolkit/src/provider.tsx +98 -5
- package/corpus/toolkit/src/styles.css +52 -23
- package/corpus/toolkit/src/ui/button.tsx +95 -6
- package/corpus/toolkit/src/ui/dialog.tsx +48 -23
- package/corpus/toolkit/src/ui/popover.tsx +16 -2
- package/corpus/toolkit/src/ui/select.tsx +7 -3
- package/corpus/toolkit/src/ui/sidebar.tsx +47 -48
- package/corpus/toolkit/src/ui/tooltip.tsx +7 -3
- package/dist/a2a/client.d.ts +3 -1
- package/dist/a2a/client.d.ts.map +1 -1
- package/dist/a2a/client.js +17 -12
- package/dist/a2a/client.js.map +1 -1
- package/dist/a2a/types.d.ts +1 -1
- package/dist/a2a/types.d.ts.map +1 -1
- package/dist/a2a/types.js.map +1 -1
- package/dist/agent/types.d.ts +1 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/cli/index.js +18 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/multi-frontier-runs.js +3 -3
- package/dist/cli/multi-frontier-runs.js.map +1 -1
- package/dist/cli/templates-meta.d.ts.map +1 -1
- package/dist/cli/templates-meta.js +0 -12
- package/dist/cli/templates-meta.js.map +1 -1
- package/dist/cli/workspace-dev.js +1 -1
- package/dist/cli/workspace-dev.js.map +1 -1
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +18 -15
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +26 -15
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/CommandMenu.d.ts.map +1 -1
- package/dist/client/CommandMenu.js +18 -106
- package/dist/client/CommandMenu.js.map +1 -1
- package/dist/client/RunStuckBanner.d.ts +3 -5
- package/dist/client/RunStuckBanner.d.ts.map +1 -1
- package/dist/client/RunStuckBanner.js +17 -18
- package/dist/client/RunStuckBanner.js.map +1 -1
- package/dist/client/agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/agent-chat-adapter.js +2 -1
- package/dist/client/agent-chat-adapter.js.map +1 -1
- package/dist/client/app-providers.d.ts.map +1 -1
- package/dist/client/app-providers.js +1 -1
- package/dist/client/app-providers.js.map +1 -1
- package/dist/client/chat/action-chat-ui-surface.d.ts +8 -0
- package/dist/client/chat/action-chat-ui-surface.d.ts.map +1 -0
- package/dist/client/chat/action-chat-ui-surface.js +10 -0
- package/dist/client/chat/action-chat-ui-surface.js.map +1 -0
- package/dist/client/chat/message-components.d.ts +12 -1
- package/dist/client/chat/message-components.d.ts.map +1 -1
- package/dist/client/chat/message-components.js +102 -14
- package/dist/client/chat/message-components.js.map +1 -1
- package/dist/client/chat/tool-call-display.d.ts +3 -1
- package/dist/client/chat/tool-call-display.d.ts.map +1 -1
- package/dist/client/chat/tool-call-display.js +33 -14
- package/dist/client/chat/tool-call-display.js.map +1 -1
- package/dist/client/chat/widgets/InlineExtensionWidget.d.ts.map +1 -1
- package/dist/client/chat/widgets/InlineExtensionWidget.js +9 -12
- package/dist/client/chat/widgets/InlineExtensionWidget.js.map +1 -1
- package/dist/client/chat/widgets/builtin-tool-renderers.d.ts.map +1 -1
- package/dist/client/chat/widgets/builtin-tool-renderers.js +5 -3
- package/dist/client/chat/widgets/builtin-tool-renderers.js.map +1 -1
- package/dist/client/components/ui/message-scroller.d.ts +1 -1
- package/dist/client/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/client/components/ui/message-scroller.js +4 -3
- package/dist/client/components/ui/message-scroller.js.map +1 -1
- package/dist/client/conversation/AgentConversation.d.ts.map +1 -1
- package/dist/client/conversation/AgentConversation.js +3 -2
- package/dist/client/conversation/AgentConversation.js.map +1 -1
- package/dist/client/error-capture.d.ts.map +1 -1
- package/dist/client/error-capture.js +2 -2
- package/dist/client/error-capture.js.map +1 -1
- package/dist/client/i18n.d.ts.map +1 -1
- package/dist/client/i18n.js +9 -0
- package/dist/client/i18n.js.map +1 -1
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/org/TeamPage.d.ts.map +1 -1
- package/dist/client/org/TeamPage.js +41 -33
- package/dist/client/org/TeamPage.js.map +1 -1
- package/dist/client/progress/RunsTray.d.ts.map +1 -1
- package/dist/client/progress/RunsTray.js +9 -10
- package/dist/client/progress/RunsTray.js.map +1 -1
- package/dist/client/resources/McpConnectionSuggestion.d.ts +1 -0
- package/dist/client/resources/McpConnectionSuggestion.d.ts.map +1 -1
- package/dist/client/resources/McpConnectionSuggestion.js +14 -12
- package/dist/client/resources/McpConnectionSuggestion.js.map +1 -1
- package/dist/client/resources/McpIntegrationDialog.d.ts.map +1 -1
- package/dist/client/resources/McpIntegrationDialog.js +10 -8
- package/dist/client/resources/McpIntegrationDialog.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +3 -1
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.d.ts +2 -0
- package/dist/client/resources/mcp-integration-catalog.d.ts.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.js +17 -17
- package/dist/client/resources/mcp-integration-catalog.js.map +1 -1
- package/dist/client/resources/mcp-integration-logos.js +2 -2
- package/dist/client/resources/mcp-integration-logos.js.map +1 -1
- package/dist/client/route-chunk-recovery.d.ts.map +1 -1
- package/dist/client/route-chunk-recovery.js +5 -3
- package/dist/client/route-chunk-recovery.js.map +1 -1
- package/dist/client/session-replay.js +3 -3
- package/dist/client/session-replay.js.map +1 -1
- package/dist/client/settings/DemoModeSection.d.ts.map +1 -1
- package/dist/client/settings/DemoModeSection.js +2 -5
- package/dist/client/settings/DemoModeSection.js.map +1 -1
- package/dist/client/settings/SecretsSection.d.ts.map +1 -1
- package/dist/client/settings/SecretsSection.js +18 -6
- package/dist/client/settings/SecretsSection.js.map +1 -1
- package/dist/client/settings/SettingsPanel.d.ts.map +1 -1
- package/dist/client/settings/SettingsPanel.js +53 -118
- package/dist/client/settings/SettingsPanel.js.map +1 -1
- package/dist/client/settings/SettingsTabsPage.d.ts.map +1 -1
- package/dist/client/settings/SettingsTabsPage.js +16 -1
- package/dist/client/settings/SettingsTabsPage.js.map +1 -1
- package/dist/client/settings/VoiceTranscriptionSection.d.ts.map +1 -1
- package/dist/client/settings/VoiceTranscriptionSection.js +2 -5
- package/dist/client/settings/VoiceTranscriptionSection.js.map +1 -1
- package/dist/client/settings/index.d.ts +1 -0
- package/dist/client/settings/index.d.ts.map +1 -1
- package/dist/client/settings/index.js +1 -0
- package/dist/client/settings/index.js.map +1 -1
- package/dist/client/settings/useSettingsPanelController.d.ts +22 -0
- package/dist/client/settings/useSettingsPanelController.d.ts.map +1 -0
- package/dist/client/settings/useSettingsPanelController.js +103 -0
- package/dist/client/settings/useSettingsPanelController.js.map +1 -0
- package/dist/client/setup-connections/BuilderConnectCard.d.ts +14 -6
- package/dist/client/setup-connections/BuilderConnectCard.d.ts.map +1 -1
- package/dist/client/setup-connections/BuilderConnectCard.js +24 -16
- package/dist/client/setup-connections/BuilderConnectCard.js.map +1 -1
- package/dist/client/setup-connections/index.d.ts +2 -1
- package/dist/client/setup-connections/index.d.ts.map +1 -1
- package/dist/client/setup-connections/index.js +2 -1
- package/dist/client/setup-connections/index.js.map +1 -1
- package/dist/client/setup-connections/useBuilderConnectCardController.d.ts +34 -0
- package/dist/client/setup-connections/useBuilderConnectCardController.d.ts.map +1 -0
- package/dist/client/setup-connections/useBuilderConnectCardController.js +39 -0
- package/dist/client/setup-connections/useBuilderConnectCardController.js.map +1 -0
- package/dist/client/sharing/ShareButton.d.ts +2 -1
- package/dist/client/sharing/ShareButton.d.ts.map +1 -1
- package/dist/client/sharing/ShareButton.js +17 -463
- package/dist/client/sharing/ShareButton.js.map +1 -1
- package/dist/client/sharing/ShareDialog.d.ts +6 -6
- package/dist/client/sharing/ShareDialog.d.ts.map +1 -1
- package/dist/client/sharing/ShareDialog.js +69 -283
- package/dist/client/sharing/ShareDialog.js.map +1 -1
- package/dist/client/sharing/index.d.ts +3 -0
- package/dist/client/sharing/index.d.ts.map +1 -1
- package/dist/client/sharing/index.js +3 -0
- package/dist/client/sharing/index.js.map +1 -1
- package/dist/client/sharing/share-controller-helpers.d.ts +70 -0
- package/dist/client/sharing/share-controller-helpers.d.ts.map +1 -0
- package/dist/client/sharing/share-controller-helpers.js +224 -0
- package/dist/client/sharing/share-controller-helpers.js.map +1 -0
- package/dist/client/sharing/useShareButtonController.d.ts +91 -0
- package/dist/client/sharing/useShareButtonController.d.ts.map +1 -0
- package/dist/client/sharing/useShareButtonController.js +397 -0
- package/dist/client/sharing/useShareButtonController.js.map +1 -0
- package/dist/client/sharing/useShareDialogController.d.ts +109 -0
- package/dist/client/sharing/useShareDialogController.d.ts.map +1 -0
- package/dist/client/sharing/useShareDialogController.js +348 -0
- package/dist/client/sharing/useShareDialogController.js.map +1 -0
- package/dist/client/sse-event-processor.d.ts.map +1 -1
- package/dist/client/sse-event-processor.js +21 -0
- package/dist/client/sse-event-processor.js.map +1 -1
- package/dist/client/tool-display.d.ts +16 -0
- package/dist/client/tool-display.d.ts.map +1 -1
- package/dist/client/tool-display.js +52 -0
- package/dist/client/tool-display.js.map +1 -1
- package/dist/client/transcription/use-live-transcription.d.ts +3 -3
- package/dist/client/transcription/use-live-transcription.d.ts.map +1 -1
- package/dist/client/transcription/use-live-transcription.js +22 -11
- package/dist/client/transcription/use-live-transcription.js.map +1 -1
- package/dist/client/use-agent-engine-configured.d.ts +3 -2
- package/dist/client/use-agent-engine-configured.d.ts.map +1 -1
- package/dist/client/use-agent-engine-configured.js +7 -19
- package/dist/client/use-agent-engine-configured.js.map +1 -1
- package/dist/client/use-chat-threads.d.ts.map +1 -1
- package/dist/client/use-chat-threads.js +21 -8
- package/dist/client/use-chat-threads.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +1 -1
- package/dist/deploy/build.js.map +1 -1
- package/dist/guards/db-tool-scoping.js +1 -1
- package/dist/guards/db-tool-scoping.js.map +1 -1
- package/dist/integrations/adapters/slack.d.ts +1 -0
- package/dist/integrations/adapters/slack.d.ts.map +1 -1
- package/dist/integrations/adapters/slack.js +61 -5
- package/dist/integrations/adapters/slack.js.map +1 -1
- package/dist/integrations/index.d.ts +1 -1
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +1 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/localization/default-messages.d.ts +4 -0
- package/dist/localization/default-messages.d.ts.map +1 -1
- package/dist/localization/default-messages.js +5 -1
- package/dist/localization/default-messages.js.map +1 -1
- package/dist/mcp-client/oauth-routes.d.ts +5 -0
- package/dist/mcp-client/oauth-routes.d.ts.map +1 -1
- package/dist/mcp-client/oauth-routes.js +53 -14
- package/dist/mcp-client/oauth-routes.js.map +1 -1
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +12 -12
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/scripts/call-agent.d.ts.map +1 -1
- package/dist/scripts/call-agent.js +5 -1
- package/dist/scripts/call-agent.js.map +1 -1
- package/dist/secrets/routes.d.ts +6 -6
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/realtime-voice.d.ts.map +1 -1
- package/dist/server/realtime-voice.js +2 -2
- package/dist/server/realtime-voice.js.map +1 -1
- package/dist/styles/agent-native.css +0 -24
- package/dist/templates/chat/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/dist/templates/chat/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/dist/templates/chat/.agents/skills/frontend-design/SKILL.md +22 -2
- package/dist/templates/chat/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/dist/templates/chat/app/components/ui/toolkit-provider.tsx +6 -1
- package/dist/templates/chat/app/design-system.ts +3 -0
- package/dist/templates/default/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/dist/templates/default/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/dist/templates/default/.agents/skills/frontend-design/SKILL.md +22 -2
- package/dist/templates/default/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/dist/templates/default/app/components/ui/toolkit-provider.tsx +10 -0
- package/dist/templates/default/app/design-system.ts +3 -0
- package/dist/templates/default/app/root.tsx +5 -2
- package/dist/templates/default/package.json +1 -0
- package/dist/templates/headless/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/dist/templates/headless/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/dist/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/dist/templates/workspace-core/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/dist/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +22 -2
- package/dist/templates/workspace-core/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/dist/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +7 -5
- package/dist/terminal/cli-registry.js +1 -1
- package/dist/terminal/cli-registry.js.map +1 -1
- package/dist/vite/client.d.ts +11 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +144 -2
- package/dist/vite/client.js.map +1 -1
- package/docs/content/custom-design-system.mdx +445 -0
- package/docs/content/toolkit-ui.mdx +16 -0
- package/package.json +2 -2
- package/src/a2a/client.ts +32 -10
- package/src/a2a/types.ts +1 -0
- package/src/agent/types.ts +1 -1
- package/src/cli/index.ts +18 -10
- package/src/cli/multi-frontier-runs.ts +5 -3
- package/src/cli/templates-meta.ts +0 -12
- package/src/cli/workspace-dev.ts +1 -1
- package/src/client/AgentPanel.tsx +99 -108
- package/src/client/AssistantChat.tsx +30 -13
- package/src/client/CommandMenu.tsx +68 -178
- package/src/client/RunStuckBanner.tsx +39 -47
- package/src/client/agent-chat-adapter.ts +3 -1
- package/src/client/app-providers.tsx +1 -1
- package/src/client/chat/action-chat-ui-surface.tsx +32 -0
- package/src/client/chat/message-components.tsx +169 -18
- package/src/client/chat/tool-call-display.tsx +50 -14
- package/src/client/chat/widgets/InlineExtensionWidget.tsx +13 -40
- package/src/client/chat/widgets/builtin-tool-renderers.tsx +7 -3
- package/src/client/components/ui/message-scroller.tsx +15 -1
- package/src/client/conversation/AgentConversation.tsx +12 -1
- package/src/client/error-capture.ts +2 -6
- package/src/client/i18n.tsx +22 -0
- package/src/client/index.ts +17 -0
- package/src/client/org/TeamPage.tsx +257 -153
- package/src/client/progress/RunsTray.tsx +89 -88
- package/src/client/resources/McpConnectionSuggestion.tsx +25 -16
- package/src/client/resources/McpIntegrationDialog.tsx +34 -13
- package/src/client/resources/ResourcesPanel.tsx +5 -1
- package/src/client/resources/mcp-integration-catalog.ts +20 -17
- package/src/client/resources/mcp-integration-logos.ts +2 -2
- package/src/client/route-chunk-recovery.ts +5 -3
- package/src/client/session-replay.ts +3 -3
- package/src/client/settings/DemoModeSection.tsx +6 -18
- package/src/client/settings/SecretsSection.tsx +97 -52
- package/src/client/settings/SettingsPanel.tsx +217 -252
- package/src/client/settings/SettingsTabsPage.tsx +23 -2
- package/src/client/settings/VoiceTranscriptionSection.tsx +7 -18
- package/src/client/settings/index.ts +7 -0
- package/src/client/settings/useSettingsPanelController.ts +155 -0
- package/src/client/setup-connections/BuilderConnectCard.tsx +116 -51
- package/src/client/setup-connections/index.ts +10 -0
- package/src/client/setup-connections/useBuilderConnectCardController.ts +82 -0
- package/src/client/sharing/ShareButton.tsx +64 -586
- package/src/client/sharing/ShareDialog.tsx +299 -633
- package/src/client/sharing/index.ts +42 -0
- package/src/client/sharing/share-controller-helpers.ts +318 -0
- package/src/client/sharing/useShareButtonController.ts +600 -0
- package/src/client/sharing/useShareDialogController.ts +559 -0
- package/src/client/sse-event-processor.ts +23 -0
- package/src/client/tool-display.ts +71 -0
- package/src/client/transcription/use-live-transcription.ts +64 -45
- package/src/client/use-agent-engine-configured.ts +12 -19
- package/src/client/use-chat-threads.ts +33 -12
- package/src/deploy/build.ts +2 -1
- package/src/guards/db-tool-scoping.ts +1 -1
- package/src/integrations/adapters/slack.ts +84 -5
- package/src/integrations/index.ts +5 -1
- package/src/localization/default-messages.ts +6 -1
- package/src/mcp-client/oauth-routes.ts +61 -14
- package/src/scripts/call-agent.ts +5 -1
- package/src/server/realtime-voice.ts +5 -2
- package/src/styles/agent-native.css +0 -24
- package/src/templates/chat/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/src/templates/chat/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/src/templates/chat/.agents/skills/frontend-design/SKILL.md +22 -2
- package/src/templates/chat/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/src/templates/chat/app/components/ui/toolkit-provider.tsx +6 -1
- package/src/templates/chat/app/design-system.ts +3 -0
- package/src/templates/default/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/src/templates/default/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/src/templates/default/.agents/skills/frontend-design/SKILL.md +22 -2
- package/src/templates/default/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/src/templates/default/app/components/ui/toolkit-provider.tsx +10 -0
- package/src/templates/default/app/design-system.ts +3 -0
- package/src/templates/default/app/root.tsx +5 -2
- package/src/templates/default/package.json +1 -0
- package/src/templates/headless/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/src/templates/headless/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +37 -2
- package/src/templates/workspace-core/.agents/skills/customizing-agent-native/SKILL.md +86 -11
- package/src/templates/workspace-core/.agents/skills/frontend-design/SKILL.md +22 -2
- package/src/templates/workspace-core/.agents/skills/shadcn-ui/SKILL.md +28 -4
- package/src/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +7 -5
- package/src/terminal/cli-registry.ts +1 -1
- package/src/vite/client.ts +205 -1
- package/corpus/templates/analytics/app/components/ui/calendar.tsx +0 -70
- package/corpus/templates/analytics/app/components/ui/chart.tsx +0 -386
- package/corpus/templates/calendar/app/components/ui/sonner.tsx +0 -58
- package/corpus/templates/crm/.agents/skills/agent-native-docs/SKILL.md +0 -115
- package/corpus/templates/crm/.agents/skills/agent-native-toolkit/SKILL.md +0 -142
- package/corpus/templates/crm/.agents/skills/crm/SKILL.md +0 -128
- package/corpus/templates/crm/.agents/skills/customizing-agent-native/SKILL.md +0 -145
- package/corpus/templates/crm/.agents/skills/feature-flags/SKILL.md +0 -169
- package/corpus/templates/crm/.agents/skills/upgrade-agent-native/SKILL.md +0 -100
- package/corpus/templates/crm/.env.example +0 -5
- package/corpus/templates/crm/AGENTS.md +0 -120
- package/corpus/templates/crm/CHANGELOG.md +0 -1
- package/corpus/templates/crm/DEVELOPING.md +0 -66
- package/corpus/templates/crm/README.md +0 -106
- package/corpus/templates/crm/_gitignore +0 -12
- package/corpus/templates/crm/actions/_crm-action-utils.ts +0 -87
- package/corpus/templates/crm/actions/_crm-dashboard.ts +0 -69
- package/corpus/templates/crm/actions/_crm-data-program-actions.ts +0 -15
- package/corpus/templates/crm/actions/_crm-signal-utils.ts +0 -79
- package/corpus/templates/crm/actions/apply-crm-proposals.ts +0 -203
- package/corpus/templates/crm/actions/attach-call-evidence.ts +0 -170
- package/corpus/templates/crm/actions/configure-crm-connection.ts +0 -126
- package/corpus/templates/crm/actions/configure-native-crm.ts +0 -44
- package/corpus/templates/crm/actions/create-crm-record.ts +0 -148
- package/corpus/templates/crm/actions/create-crm-signal-tracker.ts +0 -58
- package/corpus/templates/crm/actions/delete-staged-dataset.ts +0 -14
- package/corpus/templates/crm/actions/get-crm-automation-recipe.ts +0 -36
- package/corpus/templates/crm/actions/get-crm-dashboard-panel.ts +0 -35
- package/corpus/templates/crm/actions/get-crm-dashboard.ts +0 -14
- package/corpus/templates/crm/actions/get-crm-overview.ts +0 -13
- package/corpus/templates/crm/actions/get-crm-pipeline-data.ts +0 -61
- package/corpus/templates/crm/actions/get-crm-record.ts +0 -75
- package/corpus/templates/crm/actions/install-crm-pipeline-dashboard.ts +0 -81
- package/corpus/templates/crm/actions/list-crm-dashboard-revisions.ts +0 -15
- package/corpus/templates/crm/actions/list-crm-dashboards.ts +0 -15
- package/corpus/templates/crm/actions/list-crm-proposals.ts +0 -31
- package/corpus/templates/crm/actions/list-crm-records.ts +0 -79
- package/corpus/templates/crm/actions/list-crm-saved-views.ts +0 -15
- package/corpus/templates/crm/actions/list-crm-signal-hits.ts +0 -43
- package/corpus/templates/crm/actions/list-crm-signal-trackers.ts +0 -32
- package/corpus/templates/crm/actions/list-crm-tasks.ts +0 -22
- package/corpus/templates/crm/actions/list-staged-datasets.ts +0 -14
- package/corpus/templates/crm/actions/list-workspace-connections.ts +0 -47
- package/corpus/templates/crm/actions/manage-crm-signal-tracker.ts +0 -87
- package/corpus/templates/crm/actions/manage-crm-task.ts +0 -132
- package/corpus/templates/crm/actions/navigate.ts +0 -63
- package/corpus/templates/crm/actions/provider-api-catalog.ts +0 -22
- package/corpus/templates/crm/actions/provider-api-docs.ts +0 -54
- package/corpus/templates/crm/actions/provider-api-request.ts +0 -92
- package/corpus/templates/crm/actions/query-staged-dataset.ts +0 -44
- package/corpus/templates/crm/actions/record-crm-call-insight.ts +0 -160
- package/corpus/templates/crm/actions/record-crm-smart-signal.ts +0 -150
- package/corpus/templates/crm/actions/restore-crm-dashboard-revision.ts +0 -23
- package/corpus/templates/crm/actions/review-crm-signal.ts +0 -31
- package/corpus/templates/crm/actions/run-crm-saved-view-program.ts +0 -103
- package/corpus/templates/crm/actions/run-crm-signal-trackers.ts +0 -275
- package/corpus/templates/crm/actions/run.ts +0 -7
- package/corpus/templates/crm/actions/save-crm-dashboard.ts +0 -51
- package/corpus/templates/crm/actions/save-crm-saved-view.ts +0 -119
- package/corpus/templates/crm/actions/sync-crm.ts +0 -146
- package/corpus/templates/crm/actions/update-crm-record.ts +0 -510
- package/corpus/templates/crm/actions/view-screen.ts +0 -218
- package/corpus/templates/crm/agent-native.app-skill.json +0 -58
- package/corpus/templates/crm/app/components/crm/CreateCrmRecordDialog.tsx +0 -158
- package/corpus/templates/crm/app/components/crm/CrmDashboardPanel.tsx +0 -83
- package/corpus/templates/crm/app/components/crm/CrmSignalsPanel.tsx +0 -225
- package/corpus/templates/crm/app/components/crm/IntelligenceSettings.tsx +0 -413
- package/corpus/templates/crm/app/components/crm/RecordActions.tsx +0 -510
- package/corpus/templates/crm/app/components/crm/RecordGrid.tsx +0 -134
- package/corpus/templates/crm/app/components/crm/RecordWorkspace.tsx +0 -367
- package/corpus/templates/crm/app/components/crm/SavedViewDataProgram.tsx +0 -92
- package/corpus/templates/crm/app/components/crm/Surface.tsx +0 -96
- package/corpus/templates/crm/app/components/crm/WorkOverview.tsx +0 -180
- package/corpus/templates/crm/app/components/layout/CrmLayout.tsx +0 -112
- package/corpus/templates/crm/app/components/layout/CrmSidebar.tsx +0 -84
- package/corpus/templates/crm/app/entry.client.tsx +0 -16
- package/corpus/templates/crm/app/entry.server.tsx +0 -10
- package/corpus/templates/crm/app/global.css +0 -167
- package/corpus/templates/crm/app/hooks/use-navigation-state.ts +0 -60
- package/corpus/templates/crm/app/i18n/en-US.ts +0 -89
- package/corpus/templates/crm/app/i18n/index.ts +0 -34
- package/corpus/templates/crm/app/lib/dashboard.ts +0 -13
- package/corpus/templates/crm/app/lib/navigation.ts +0 -54
- package/corpus/templates/crm/app/lib/tab-id.ts +0 -1
- package/corpus/templates/crm/app/lib/types.ts +0 -172
- package/corpus/templates/crm/app/lib/utils.ts +0 -1
- package/corpus/templates/crm/app/root.tsx +0 -88
- package/corpus/templates/crm/app/routes/_index.tsx +0 -26
- package/corpus/templates/crm/app/routes/accounts.tsx +0 -41
- package/corpus/templates/crm/app/routes/agent.tsx +0 -5
- package/corpus/templates/crm/app/routes/ask.tsx +0 -53
- package/corpus/templates/crm/app/routes/dashboard.tsx +0 -118
- package/corpus/templates/crm/app/routes/opportunities.tsx +0 -41
- package/corpus/templates/crm/app/routes/people.tsx +0 -41
- package/corpus/templates/crm/app/routes/proposals.tsx +0 -266
- package/corpus/templates/crm/app/routes/records.$recordId.tsx +0 -35
- package/corpus/templates/crm/app/routes/settings.tsx +0 -63
- package/corpus/templates/crm/app/routes/setup.tsx +0 -308
- package/corpus/templates/crm/app/routes/tasks.tsx +0 -252
- package/corpus/templates/crm/app/routes/views.tsx +0 -333
- package/corpus/templates/crm/app/routes.ts +0 -17
- package/corpus/templates/crm/app/vite-env.d.ts +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-agent-native-crm.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-clips-call-evidence-review-recipe.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-crm-can-now-find-and-review-evidence-grounded-call-signals-w.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-crm-can-now-manage-keyword-and-smart-call-signal-trackers-fr.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-delegated-local-crm-automation.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-native-sql.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-pipeline-dashboard.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-pipeline-dashboards-now-install-correctly-from-the-crm-actio.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-21-salesforce-connection.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-22-crm-field-validation-now-explains-which-fields-cannot-be-edi.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-22-fixed-hubspot-contact-syncs-missing-records-updated-after-th.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-22-fixed-pipeline-dashboard-panels-so-their-opportunity-data-lo.md +0 -6
- package/corpus/templates/crm/changelog/2026-07-22-full-page-chat-keeps-the-active-conversation-when-moving-to-.md +0 -6
- package/corpus/templates/crm/components.json +0 -20
- package/corpus/templates/crm/docs/architecture/crm-contract.md +0 -180
- package/corpus/templates/crm/learnings.defaults.md +0 -5
- package/corpus/templates/crm/package.json +0 -59
- package/corpus/templates/crm/public/favicon.svg +0 -1
- package/corpus/templates/crm/public/icon-180.svg +0 -1
- package/corpus/templates/crm/public/manifest.json +0 -11
- package/corpus/templates/crm/react-router.config.ts +0 -7
- package/corpus/templates/crm/server/crm/adapter.ts +0 -32
- package/corpus/templates/crm/server/crm/crm-field-firewall.ts +0 -64
- package/corpus/templates/crm/server/crm/crm-mirror.ts +0 -711
- package/corpus/templates/crm/server/crm/hubspot-adapter.ts +0 -1146
- package/corpus/templates/crm/server/crm/native-adapter.ts +0 -1715
- package/corpus/templates/crm/server/crm/read-through.ts +0 -207
- package/corpus/templates/crm/server/crm/salesforce-adapter.ts +0 -1255
- package/corpus/templates/crm/server/db/crm-store.ts +0 -1170
- package/corpus/templates/crm/server/db/index.ts +0 -169
- package/corpus/templates/crm/server/db/schema.ts +0 -441
- package/corpus/templates/crm/server/lib/intelligence/default-detectors.ts +0 -65
- package/corpus/templates/crm/server/lib/intelligence/evidence.ts +0 -105
- package/corpus/templates/crm/server/lib/intelligence/keyword-detector.ts +0 -100
- package/corpus/templates/crm/server/lib/intelligence/smart-detector.ts +0 -144
- package/corpus/templates/crm/server/lib/intelligence/summary.ts +0 -141
- package/corpus/templates/crm/server/lib/provider-api.ts +0 -64
- package/corpus/templates/crm/server/middleware/auth.ts +0 -4
- package/corpus/templates/crm/server/plugins/agent-chat.ts +0 -68
- package/corpus/templates/crm/server/plugins/auth.ts +0 -14
- package/corpus/templates/crm/server/plugins/core-routes.ts +0 -17
- package/corpus/templates/crm/server/plugins/db.ts +0 -454
- package/corpus/templates/crm/server/routes/[...page].get.ts +0 -5
- package/corpus/templates/crm/shared/crm-automation-recipes.ts +0 -132
- package/corpus/templates/crm/shared/crm-contract.ts +0 -254
- package/corpus/templates/crm/shared/crm-sales-config.ts +0 -63
- package/corpus/templates/crm/ssr-entry.ts +0 -11
- package/corpus/templates/crm/tsconfig.json +0 -24
- package/corpus/templates/crm/vite.config.ts +0 -15
- package/corpus/templates/crm/vitest.config.ts +0 -5
- package/corpus/templates/forms/app/components/ui/calendar.tsx +0 -214
- package/corpus/templates/forms/app/components/ui/chart.tsx +0 -379
- package/corpus/templates/forms/app/components/ui/command.tsx +0 -153
- package/corpus/templates/forms/app/components/ui/context-menu.tsx +0 -198
- package/corpus/templates/forms/app/components/ui/menubar.tsx +0 -254
- package/corpus/templates/macros/app/components/ui/menubar.tsx +0 -238
- package/corpus/templates/macros/app/components/ui/progress.tsx +0 -26
- package/corpus/templates/mail/app/components/ui/calendar.tsx +0 -211
- package/corpus/templates/mail/app/components/ui/chart.tsx +0 -379
- package/corpus/templates/mail/app/components/ui/command.tsx +0 -153
- package/corpus/templates/mail/app/components/ui/context-menu.tsx +0 -198
- package/corpus/templates/mail/app/components/ui/menubar.tsx +0 -254
- package/corpus/templates/tasks/app/components/ui/accordion.tsx +0 -56
- package/corpus/templates/tasks/app/components/ui/aspect-ratio.tsx +0 -5
- package/corpus/templates/tasks/app/components/ui/breadcrumb.tsx +0 -115
- package/corpus/templates/tasks/app/components/ui/calendar.tsx +0 -70
- package/corpus/templates/tasks/app/components/ui/carousel.tsx +0 -260
- package/corpus/templates/tasks/app/components/ui/chart.tsx +0 -379
- package/corpus/templates/tasks/app/components/ui/form.tsx +0 -177
- package/corpus/templates/tasks/app/components/ui/hover-card.tsx +0 -27
- package/corpus/templates/tasks/app/components/ui/input-otp.tsx +0 -69
- package/corpus/templates/tasks/app/components/ui/menubar.tsx +0 -254
- package/corpus/templates/tasks/app/components/ui/navigation-menu.tsx +0 -128
- package/corpus/templates/tasks/app/components/ui/pagination.tsx +0 -121
- package/corpus/templates/tasks/app/components/ui/resizable.tsx +0 -43
- package/corpus/templates/tasks/app/components/ui/sidebar.tsx +0 -782
- package/corpus/templates/tasks/app/components/ui/toggle.tsx +0 -43
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createContext,
|
|
3
3
|
useContext,
|
|
4
|
+
useEffect,
|
|
4
5
|
useMemo,
|
|
6
|
+
type ElementType,
|
|
5
7
|
type ReactNode,
|
|
6
8
|
type ComponentType,
|
|
7
9
|
} from "react";
|
|
8
10
|
|
|
11
|
+
import {
|
|
12
|
+
DesignSystemContext,
|
|
13
|
+
LegacyButtonRenderContext,
|
|
14
|
+
type DesignSystemContextValue,
|
|
15
|
+
} from "./design-system/context.js";
|
|
16
|
+
import type { DesignSystemDefinition } from "./design-system/definition.js";
|
|
17
|
+
import type {
|
|
18
|
+
ActionButtonProps,
|
|
19
|
+
DesignSystemComponents,
|
|
20
|
+
} from "./design-system/types.js";
|
|
9
21
|
import type { ButtonProps } from "./ui/button.js";
|
|
10
22
|
|
|
11
23
|
export interface ToolkitComponents {
|
|
12
24
|
Button?: ComponentType<ButtonProps>;
|
|
13
25
|
}
|
|
14
26
|
|
|
15
|
-
interface ToolkitProviderProps {
|
|
27
|
+
export interface ToolkitProviderProps {
|
|
16
28
|
children: ReactNode;
|
|
17
29
|
components?: ToolkitComponents;
|
|
30
|
+
designSystem?: DesignSystemDefinition;
|
|
18
31
|
}
|
|
19
32
|
|
|
20
33
|
const ToolkitComponentsContext = createContext<ToolkitComponents>({});
|
|
@@ -22,17 +35,97 @@ const ToolkitComponentsContext = createContext<ToolkitComponents>({});
|
|
|
22
35
|
export function ToolkitProvider({
|
|
23
36
|
children,
|
|
24
37
|
components,
|
|
38
|
+
designSystem,
|
|
25
39
|
}: ToolkitProviderProps) {
|
|
26
40
|
const parent = useContext(ToolkitComponentsContext);
|
|
27
|
-
const
|
|
41
|
+
const parentDesignSystem = useContext(DesignSystemContext);
|
|
42
|
+
const value = useMemo<ToolkitComponents>(
|
|
28
43
|
() => ({ ...parent, ...components }),
|
|
29
44
|
[parent, components],
|
|
30
45
|
);
|
|
46
|
+
const mergedDefinition = useMemo<DesignSystemDefinition | undefined>(() => {
|
|
47
|
+
if (!designSystem) return parentDesignSystem.definition;
|
|
48
|
+
return {
|
|
49
|
+
...parentDesignSystem.definition,
|
|
50
|
+
...designSystem,
|
|
51
|
+
components: {
|
|
52
|
+
...parentDesignSystem.definition?.components,
|
|
53
|
+
...designSystem.components,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}, [designSystem, parentDesignSystem.definition]);
|
|
57
|
+
const legacyActionButton = useMemo<
|
|
58
|
+
DesignSystemComponents["ActionButton"] | undefined
|
|
59
|
+
>(() => {
|
|
60
|
+
if (!value.Button) return parentDesignSystem.legacyActionButton;
|
|
61
|
+
const LegacyButton = value.Button as ElementType<
|
|
62
|
+
ButtonProps & { ref?: ActionButtonProps["elementRef"] }
|
|
63
|
+
>;
|
|
64
|
+
return function LegacyActionButton({
|
|
65
|
+
children,
|
|
66
|
+
intent,
|
|
67
|
+
emphasis,
|
|
68
|
+
size,
|
|
69
|
+
pending,
|
|
70
|
+
leadingIcon,
|
|
71
|
+
trailingIcon,
|
|
72
|
+
onPress,
|
|
73
|
+
elementRef,
|
|
74
|
+
...props
|
|
75
|
+
}: ActionButtonProps) {
|
|
76
|
+
const variant =
|
|
77
|
+
emphasis === "ghost"
|
|
78
|
+
? "ghost"
|
|
79
|
+
: emphasis === "outline"
|
|
80
|
+
? "outline"
|
|
81
|
+
: intent === "danger"
|
|
82
|
+
? "destructive"
|
|
83
|
+
: intent === "primary"
|
|
84
|
+
? "default"
|
|
85
|
+
: "secondary";
|
|
86
|
+
const legacySize =
|
|
87
|
+
size === "compact" ? "sm" : size === "large" ? "lg" : "default";
|
|
88
|
+
return (
|
|
89
|
+
<LegacyButtonRenderContext.Provider value={true}>
|
|
90
|
+
<LegacyButton
|
|
91
|
+
{...props}
|
|
92
|
+
ref={elementRef}
|
|
93
|
+
variant={variant}
|
|
94
|
+
size={legacySize}
|
|
95
|
+
disabled={props.disabled || pending}
|
|
96
|
+
aria-busy={pending || undefined}
|
|
97
|
+
onClick={(event) => onPress?.(event)}
|
|
98
|
+
>
|
|
99
|
+
{leadingIcon}
|
|
100
|
+
{children}
|
|
101
|
+
{trailingIcon}
|
|
102
|
+
</LegacyButton>
|
|
103
|
+
</LegacyButtonRenderContext.Provider>
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
}, [parentDesignSystem.legacyActionButton, value.Button]);
|
|
107
|
+
const designSystemValue = useMemo<DesignSystemContextValue>(
|
|
108
|
+
() => ({ definition: mergedDefinition, legacyActionButton }),
|
|
109
|
+
[legacyActionButton, mergedDefinition],
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
useEffect(() => {
|
|
113
|
+
if (!mergedDefinition?.components?.ActionButton || !value.Button) return;
|
|
114
|
+
const isDevelopment =
|
|
115
|
+
(import.meta as ImportMeta & { env?: { DEV?: boolean } }).env?.DEV ??
|
|
116
|
+
true;
|
|
117
|
+
if (!isDevelopment) return;
|
|
118
|
+
console.warn(
|
|
119
|
+
"[agent-native] ToolkitProvider received both designSystem.components.ActionButton and legacy components.Button. ActionButton takes precedence.",
|
|
120
|
+
);
|
|
121
|
+
}, [mergedDefinition?.components?.ActionButton, value.Button]);
|
|
31
122
|
|
|
32
123
|
return (
|
|
33
|
-
<
|
|
34
|
-
{
|
|
35
|
-
|
|
124
|
+
<DesignSystemContext.Provider value={designSystemValue}>
|
|
125
|
+
<ToolkitComponentsContext.Provider value={value}>
|
|
126
|
+
{children}
|
|
127
|
+
</ToolkitComponentsContext.Provider>
|
|
128
|
+
</DesignSystemContext.Provider>
|
|
36
129
|
);
|
|
37
130
|
}
|
|
38
131
|
|
|
@@ -20,37 +20,66 @@
|
|
|
20
20
|
*/
|
|
21
21
|
@source "./**/*.{js,ts,tsx}";
|
|
22
22
|
|
|
23
|
-
.agent-realtime-voice-
|
|
23
|
+
.agent-realtime-voice-glow {
|
|
24
|
+
--agent-realtime-voice-edge-opacity: 0.52;
|
|
25
|
+
--agent-realtime-voice-halo-opacity: 0.28;
|
|
24
26
|
position: absolute;
|
|
25
27
|
z-index: 0;
|
|
28
|
+
inset: -4px;
|
|
29
|
+
border-radius: inherit;
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
transform: rotate(0turn);
|
|
32
|
+
will-change: transform;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.agent-realtime-voice-working {
|
|
36
|
+
--agent-realtime-voice-edge-opacity: 0.92;
|
|
37
|
+
--agent-realtime-voice-halo-opacity: 0.58;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.agent-realtime-voice-glow::before,
|
|
41
|
+
.agent-realtime-voice-glow::after {
|
|
42
|
+
position: absolute;
|
|
26
43
|
inset: 0;
|
|
27
44
|
border-radius: inherit;
|
|
28
45
|
pointer-events: none;
|
|
29
46
|
content: "";
|
|
47
|
+
background: conic-gradient(
|
|
48
|
+
from -18deg,
|
|
49
|
+
transparent 0deg 228deg,
|
|
50
|
+
oklch(0.65 0.2 294 / 0.18) 244deg,
|
|
51
|
+
oklch(0.7 0.2 265 / 0.7) 274deg,
|
|
52
|
+
oklch(0.79 0.16 235 / 0.96) 306deg,
|
|
53
|
+
oklch(0.96 0.035 210) 326deg,
|
|
54
|
+
oklch(0.88 0.11 202 / 0.72) 340deg,
|
|
55
|
+
transparent 360deg
|
|
56
|
+
);
|
|
57
|
+
opacity: var(--agent-realtime-voice-edge-opacity);
|
|
58
|
+
padding: 1.5px;
|
|
59
|
+
-webkit-mask:
|
|
60
|
+
linear-gradient(#000 0 0) content-box,
|
|
61
|
+
linear-gradient(#000 0 0);
|
|
62
|
+
mask:
|
|
63
|
+
linear-gradient(#000 0 0) content-box,
|
|
64
|
+
linear-gradient(#000 0 0);
|
|
65
|
+
-webkit-mask-composite: xor;
|
|
66
|
+
mask-composite: exclude;
|
|
67
|
+
transition: opacity 220ms ease-out;
|
|
30
68
|
}
|
|
31
69
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
background-repeat: repeat;
|
|
43
|
-
background-size: 14rem 100%;
|
|
44
|
-
animation: agent-realtime-voice-shine 2.6s linear infinite;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@keyframes agent-realtime-voice-shine {
|
|
48
|
-
from {
|
|
49
|
-
background-position: 0 0;
|
|
50
|
-
}
|
|
70
|
+
.agent-realtime-voice-glow::before {
|
|
71
|
+
inset: -1px;
|
|
72
|
+
opacity: var(--agent-realtime-voice-halo-opacity);
|
|
73
|
+
padding: 2px;
|
|
74
|
+
filter: blur(1px) drop-shadow(0 0 2px oklch(0.9 0.07 215 / 0.95))
|
|
75
|
+
drop-shadow(0 0 6px oklch(0.78 0.15 236 / 0.82))
|
|
76
|
+
drop-shadow(0 0 14px oklch(0.67 0.2 258 / 0.48))
|
|
77
|
+
drop-shadow(0 0 28px oklch(0.62 0.18 276 / 0.26));
|
|
78
|
+
mix-blend-mode: plus-lighter;
|
|
79
|
+
}
|
|
51
80
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
81
|
+
@media (prefers-reduced-motion: reduce) {
|
|
82
|
+
.agent-realtime-voice-glow {
|
|
83
|
+
transform: rotate(35deg);
|
|
55
84
|
}
|
|
56
85
|
}
|
|
@@ -2,6 +2,15 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
2
2
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
+
import {
|
|
6
|
+
LegacyButtonRenderContext,
|
|
7
|
+
useDesignSystemComponent,
|
|
8
|
+
} from "../design-system/context.js";
|
|
9
|
+
import { DesignSystemErrorBoundary } from "../design-system/error-boundary.js";
|
|
10
|
+
import type {
|
|
11
|
+
DesignSystemEmphasis,
|
|
12
|
+
DesignSystemIntent,
|
|
13
|
+
} from "../design-system/types.js";
|
|
5
14
|
import { useToolkitComponent } from "../provider.js";
|
|
6
15
|
import { cn } from "../utils.js";
|
|
7
16
|
|
|
@@ -39,10 +48,25 @@ export interface ButtonProps
|
|
|
39
48
|
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
40
49
|
VariantProps<typeof buttonVariants> {
|
|
41
50
|
asChild?: boolean;
|
|
51
|
+
/** Semantic meaning forwarded to a registered design-system ActionButton. */
|
|
52
|
+
intent?: DesignSystemIntent;
|
|
53
|
+
/** Semantic prominence forwarded independently of the default visual variant. */
|
|
54
|
+
emphasis?: DesignSystemEmphasis;
|
|
42
55
|
}
|
|
43
56
|
|
|
44
57
|
const ButtonBase = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
45
|
-
(
|
|
58
|
+
(
|
|
59
|
+
{
|
|
60
|
+
className,
|
|
61
|
+
variant,
|
|
62
|
+
size,
|
|
63
|
+
asChild = false,
|
|
64
|
+
intent: _intent,
|
|
65
|
+
emphasis: _emphasis,
|
|
66
|
+
...props
|
|
67
|
+
},
|
|
68
|
+
ref,
|
|
69
|
+
) => {
|
|
46
70
|
const Comp = asChild ? Slot : "button";
|
|
47
71
|
return (
|
|
48
72
|
<Comp
|
|
@@ -58,19 +82,84 @@ ButtonBase.displayName = "ButtonBase";
|
|
|
58
82
|
const ButtonOverrideRenderContext = React.createContext(false);
|
|
59
83
|
|
|
60
84
|
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
61
|
-
(props, ref) => {
|
|
85
|
+
({ variant, size, asChild = false, intent, emphasis, ...props }, ref) => {
|
|
86
|
+
const DesignSystemActionButton = useDesignSystemComponent("ActionButton");
|
|
62
87
|
const Override = useToolkitComponent("Button");
|
|
63
88
|
const isRenderingOverride = React.useContext(ButtonOverrideRenderContext);
|
|
89
|
+
const isRenderingLegacyButton = React.useContext(LegacyButtonRenderContext);
|
|
90
|
+
const fallback = (
|
|
91
|
+
<ButtonBase
|
|
92
|
+
ref={ref}
|
|
93
|
+
variant={variant}
|
|
94
|
+
size={size}
|
|
95
|
+
asChild={asChild}
|
|
96
|
+
{...props}
|
|
97
|
+
/>
|
|
98
|
+
);
|
|
99
|
+
if (DesignSystemActionButton && !asChild && !isRenderingLegacyButton) {
|
|
100
|
+
const semanticIntent =
|
|
101
|
+
intent ??
|
|
102
|
+
(variant === "destructive"
|
|
103
|
+
? "danger"
|
|
104
|
+
: variant === "default"
|
|
105
|
+
? "primary"
|
|
106
|
+
: "neutral");
|
|
107
|
+
const semanticEmphasis =
|
|
108
|
+
emphasis ??
|
|
109
|
+
(variant === "outline"
|
|
110
|
+
? "outline"
|
|
111
|
+
: variant === "ghost" || variant === "link"
|
|
112
|
+
? "ghost"
|
|
113
|
+
: "solid");
|
|
114
|
+
const semanticSize =
|
|
115
|
+
size === "sm" ? "compact" : size === "lg" ? "large" : "default";
|
|
116
|
+
return (
|
|
117
|
+
<DesignSystemErrorBoundary component="ActionButton" fallback={fallback}>
|
|
118
|
+
<DesignSystemActionButton
|
|
119
|
+
className={props.className}
|
|
120
|
+
style={props.style}
|
|
121
|
+
id={props.id}
|
|
122
|
+
aria-label={props["aria-label"]}
|
|
123
|
+
aria-labelledby={props["aria-labelledby"]}
|
|
124
|
+
aria-describedby={props["aria-describedby"]}
|
|
125
|
+
aria-controls={props["aria-controls"]}
|
|
126
|
+
elementRef={ref}
|
|
127
|
+
type={props.type}
|
|
128
|
+
disabled={props.disabled}
|
|
129
|
+
intent={semanticIntent}
|
|
130
|
+
emphasis={semanticEmphasis}
|
|
131
|
+
size={semanticSize}
|
|
132
|
+
onPress={(event) =>
|
|
133
|
+
props.onClick?.(
|
|
134
|
+
event as React.MouseEvent<HTMLButtonElement, MouseEvent>,
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
>
|
|
138
|
+
{props.children}
|
|
139
|
+
</DesignSystemActionButton>
|
|
140
|
+
</DesignSystemErrorBoundary>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
64
143
|
if (Override && Override !== Button && !isRenderingOverride) {
|
|
65
144
|
const OverrideButton = Override as React.ElementType<ButtonProps>;
|
|
66
145
|
return (
|
|
67
|
-
<
|
|
68
|
-
<
|
|
69
|
-
|
|
146
|
+
<DesignSystemErrorBoundary component="ActionButton" fallback={fallback}>
|
|
147
|
+
<ButtonOverrideRenderContext.Provider value={true}>
|
|
148
|
+
<OverrideButton
|
|
149
|
+
ref={ref}
|
|
150
|
+
variant={variant}
|
|
151
|
+
size={size}
|
|
152
|
+
asChild={asChild}
|
|
153
|
+
intent={intent}
|
|
154
|
+
emphasis={emphasis}
|
|
155
|
+
{...props}
|
|
156
|
+
/>
|
|
157
|
+
</ButtonOverrideRenderContext.Provider>
|
|
158
|
+
</DesignSystemErrorBoundary>
|
|
70
159
|
);
|
|
71
160
|
}
|
|
72
161
|
|
|
73
|
-
return
|
|
162
|
+
return fallback;
|
|
74
163
|
},
|
|
75
164
|
);
|
|
76
165
|
Button.displayName = "Button";
|
|
@@ -47,34 +47,59 @@ interface DialogContentProps extends React.ComponentPropsWithoutRef<
|
|
|
47
47
|
hideClose?: boolean;
|
|
48
48
|
// High-frequency keyboard surfaces can opt out without changing ordinary dialogs.
|
|
49
49
|
motion?: DialogMotion;
|
|
50
|
+
container?: React.ComponentPropsWithoutRef<
|
|
51
|
+
typeof DialogPrimitive.Portal
|
|
52
|
+
>["container"];
|
|
53
|
+
closeLabel?: string;
|
|
54
|
+
overlayClassName?: string;
|
|
55
|
+
overlayStyle?: React.CSSProperties;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
const DialogContent = React.forwardRef<
|
|
53
59
|
React.ElementRef<typeof DialogPrimitive.Content>,
|
|
54
60
|
DialogContentProps
|
|
55
|
-
>(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
61
|
+
>(
|
|
62
|
+
(
|
|
63
|
+
{
|
|
64
|
+
className,
|
|
65
|
+
children,
|
|
66
|
+
hideClose,
|
|
67
|
+
motion = "default",
|
|
68
|
+
container,
|
|
69
|
+
closeLabel = "Close",
|
|
70
|
+
overlayClassName,
|
|
71
|
+
overlayStyle,
|
|
72
|
+
...props
|
|
73
|
+
},
|
|
74
|
+
ref,
|
|
75
|
+
) => (
|
|
76
|
+
<DialogPortal container={container}>
|
|
77
|
+
<DialogOverlay
|
|
78
|
+
motion={motion}
|
|
79
|
+
className={overlayClassName}
|
|
80
|
+
style={overlayStyle}
|
|
81
|
+
/>
|
|
82
|
+
<DialogPrimitive.Content
|
|
83
|
+
ref={ref}
|
|
84
|
+
className={cn(
|
|
85
|
+
"fixed left-1/2 top-1/2 z-[280] grid max-h-[min(760px,calc(100vh-32px))] w-[calc(100vw-24px)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 overflow-hidden rounded-lg border border-border bg-background p-6 text-foreground shadow-lg outline-none",
|
|
86
|
+
motion === "default" &&
|
|
87
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-150 data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
88
|
+
className,
|
|
89
|
+
)}
|
|
90
|
+
{...props}
|
|
91
|
+
>
|
|
92
|
+
{children}
|
|
93
|
+
{!hideClose && (
|
|
94
|
+
<DialogPrimitive.Close className="absolute end-3 top-3 flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring">
|
|
95
|
+
<IconX className="h-4 w-4" />
|
|
96
|
+
<span className="sr-only">{closeLabel}</span>
|
|
97
|
+
</DialogPrimitive.Close>
|
|
98
|
+
)}
|
|
99
|
+
</DialogPrimitive.Content>
|
|
100
|
+
</DialogPortal>
|
|
101
|
+
),
|
|
102
|
+
);
|
|
78
103
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
79
104
|
|
|
80
105
|
const DialogHeader = ({
|
|
@@ -15,10 +15,20 @@ const PopoverContent = React.forwardRef<
|
|
|
15
15
|
// When false, renders inline without a portal — useful inside overflow-hidden
|
|
16
16
|
// containers where a portalled overlay would escape the clip boundary.
|
|
17
17
|
portalled?: boolean;
|
|
18
|
+
container?: React.ComponentPropsWithoutRef<
|
|
19
|
+
typeof PopoverPrimitive.Portal
|
|
20
|
+
>["container"];
|
|
18
21
|
}
|
|
19
22
|
>(
|
|
20
23
|
(
|
|
21
|
-
{
|
|
24
|
+
{
|
|
25
|
+
className,
|
|
26
|
+
align = "center",
|
|
27
|
+
sideOffset = 4,
|
|
28
|
+
portalled = true,
|
|
29
|
+
container,
|
|
30
|
+
...props
|
|
31
|
+
},
|
|
22
32
|
ref,
|
|
23
33
|
) => {
|
|
24
34
|
const content = (
|
|
@@ -36,7 +46,11 @@ const PopoverContent = React.forwardRef<
|
|
|
36
46
|
|
|
37
47
|
if (!portalled) return content;
|
|
38
48
|
|
|
39
|
-
return
|
|
49
|
+
return (
|
|
50
|
+
<PopoverPrimitive.Portal container={container}>
|
|
51
|
+
{content}
|
|
52
|
+
</PopoverPrimitive.Portal>
|
|
53
|
+
);
|
|
40
54
|
},
|
|
41
55
|
);
|
|
42
56
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
@@ -67,9 +67,13 @@ SelectScrollDownButton.displayName =
|
|
|
67
67
|
|
|
68
68
|
const SelectContent = React.forwardRef<
|
|
69
69
|
React.ElementRef<typeof SelectPrimitive.Content>,
|
|
70
|
-
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & {
|
|
71
|
+
container?: React.ComponentPropsWithoutRef<
|
|
72
|
+
typeof SelectPrimitive.Portal
|
|
73
|
+
>["container"];
|
|
74
|
+
}
|
|
75
|
+
>(({ className, children, position = "popper", container, ...props }, ref) => (
|
|
76
|
+
<SelectPrimitive.Portal container={container}>
|
|
73
77
|
<SelectPrimitive.Content
|
|
74
78
|
ref={ref}
|
|
75
79
|
className={cn(
|
|
@@ -3,19 +3,22 @@ import { IconLayoutSidebar } from "@tabler/icons-react";
|
|
|
3
3
|
import { VariantProps, cva } from "class-variance-authority";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
|
+
import {
|
|
7
|
+
Skeleton as DesignSystemSkeleton,
|
|
8
|
+
Tooltip as DesignSystemTooltip,
|
|
9
|
+
} from "../design-system/components.js";
|
|
6
10
|
import { useIsMobile } from "../hooks/use-mobile.js";
|
|
7
11
|
import { cn } from "../utils.js";
|
|
8
12
|
import { Button } from "./button.js";
|
|
9
13
|
import { Input } from "./input.js";
|
|
10
14
|
import { Separator } from "./separator.js";
|
|
11
15
|
import { Sheet, SheetContent, SheetDescription, SheetTitle } from "./sheet.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./tooltip.js";
|
|
16
|
+
|
|
17
|
+
type SidebarTooltip = {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
hidden?: boolean;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
};
|
|
19
22
|
|
|
20
23
|
const SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
21
24
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -137,25 +140,23 @@ const SidebarProvider = React.forwardRef<
|
|
|
137
140
|
|
|
138
141
|
return (
|
|
139
142
|
<SidebarContext.Provider value={contextValue}>
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
</div>
|
|
158
|
-
</TooltipProvider>
|
|
143
|
+
<div
|
|
144
|
+
style={
|
|
145
|
+
{
|
|
146
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
147
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
148
|
+
...style,
|
|
149
|
+
} as React.CSSProperties
|
|
150
|
+
}
|
|
151
|
+
className={cn(
|
|
152
|
+
"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",
|
|
153
|
+
className,
|
|
154
|
+
)}
|
|
155
|
+
ref={ref}
|
|
156
|
+
{...props}
|
|
157
|
+
>
|
|
158
|
+
{children}
|
|
159
|
+
</div>
|
|
159
160
|
</SidebarContext.Provider>
|
|
160
161
|
);
|
|
161
162
|
},
|
|
@@ -302,8 +303,8 @@ const SidebarRail = React.forwardRef<
|
|
|
302
303
|
const { toggleSidebar } = useSidebar();
|
|
303
304
|
|
|
304
305
|
return (
|
|
305
|
-
<
|
|
306
|
-
|
|
306
|
+
<DesignSystemTooltip
|
|
307
|
+
trigger={
|
|
307
308
|
<button
|
|
308
309
|
ref={ref}
|
|
309
310
|
data-sidebar="rail"
|
|
@@ -321,9 +322,10 @@ const SidebarRail = React.forwardRef<
|
|
|
321
322
|
)}
|
|
322
323
|
{...props}
|
|
323
324
|
/>
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
}
|
|
326
|
+
content="Toggle Sidebar"
|
|
327
|
+
placement="top"
|
|
328
|
+
/>
|
|
327
329
|
);
|
|
328
330
|
});
|
|
329
331
|
SidebarRail.displayName = "SidebarRail";
|
|
@@ -552,7 +554,7 @@ const SidebarMenuButton = React.forwardRef<
|
|
|
552
554
|
React.ComponentProps<"button"> & {
|
|
553
555
|
asChild?: boolean;
|
|
554
556
|
isActive?: boolean;
|
|
555
|
-
tooltip?: string |
|
|
557
|
+
tooltip?: string | SidebarTooltip;
|
|
556
558
|
} & VariantProps<typeof sidebarMenuButtonVariants>
|
|
557
559
|
>(
|
|
558
560
|
(
|
|
@@ -585,22 +587,17 @@ const SidebarMenuButton = React.forwardRef<
|
|
|
585
587
|
return button;
|
|
586
588
|
}
|
|
587
589
|
|
|
588
|
-
|
|
589
|
-
tooltip
|
|
590
|
-
|
|
591
|
-
};
|
|
592
|
-
}
|
|
590
|
+
const tooltipText =
|
|
591
|
+
typeof tooltip === "string" ? tooltip : tooltip.children;
|
|
592
|
+
if (!tooltipText || state !== "collapsed" || isMobile) return button;
|
|
593
593
|
|
|
594
594
|
return (
|
|
595
|
-
<
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
{...tooltip}
|
|
602
|
-
/>
|
|
603
|
-
</Tooltip>
|
|
595
|
+
<DesignSystemTooltip
|
|
596
|
+
trigger={button}
|
|
597
|
+
content={tooltipText}
|
|
598
|
+
placement="right"
|
|
599
|
+
align="center"
|
|
600
|
+
/>
|
|
604
601
|
);
|
|
605
602
|
},
|
|
606
603
|
);
|
|
@@ -677,13 +674,15 @@ const SidebarMenuSkeleton = React.forwardRef<
|
|
|
677
674
|
{...props}
|
|
678
675
|
>
|
|
679
676
|
{showIcon && (
|
|
680
|
-
<
|
|
677
|
+
<DesignSystemSkeleton
|
|
681
678
|
className="size-4 rounded-md"
|
|
679
|
+
shape="rectangle"
|
|
682
680
|
data-sidebar="menu-skeleton-icon"
|
|
683
681
|
/>
|
|
684
682
|
)}
|
|
685
|
-
<
|
|
683
|
+
<DesignSystemSkeleton
|
|
686
684
|
className="h-4 flex-1 max-w-[--skeleton-width]"
|
|
685
|
+
shape="line"
|
|
687
686
|
data-sidebar="menu-skeleton-text"
|
|
688
687
|
style={
|
|
689
688
|
{
|
|
@@ -21,12 +21,16 @@ function normalizeTooltipText(text: string): string {
|
|
|
21
21
|
|
|
22
22
|
const TooltipContent = React.forwardRef<
|
|
23
23
|
React.ElementRef<typeof TooltipPrimitive.Content>,
|
|
24
|
-
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
|
|
25
|
-
|
|
24
|
+
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {
|
|
25
|
+
container?: React.ComponentPropsWithoutRef<
|
|
26
|
+
typeof TooltipPrimitive.Portal
|
|
27
|
+
>["container"];
|
|
28
|
+
}
|
|
29
|
+
>(({ className, sideOffset = 6, children, container, ...props }, ref) => {
|
|
26
30
|
const normalizedChildren =
|
|
27
31
|
typeof children === "string" ? normalizeTooltipText(children) : children;
|
|
28
32
|
return (
|
|
29
|
-
<TooltipPrimitive.Portal>
|
|
33
|
+
<TooltipPrimitive.Portal container={container}>
|
|
30
34
|
<TooltipPrimitive.Content
|
|
31
35
|
ref={ref}
|
|
32
36
|
sideOffset={sideOffset}
|
package/dist/a2a/client.d.ts
CHANGED
|
@@ -66,7 +66,9 @@ export declare class A2AClient {
|
|
|
66
66
|
/**
|
|
67
67
|
* Poll for a task by id. Used in async mode after `send({ async: true })`.
|
|
68
68
|
*/
|
|
69
|
-
getTask(taskId: string
|
|
69
|
+
getTask(taskId: string, opts?: {
|
|
70
|
+
requestTimeoutMs?: number;
|
|
71
|
+
}): Promise<Task>;
|
|
70
72
|
/**
|
|
71
73
|
* Execute one receiver-approved read-only action without starting the
|
|
72
74
|
* receiver's agent loop. The receiver still owns validation, credentials,
|