@agent-native/core 0.118.0 → 0.119.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 +32 -0
- package/corpus/core/docs/content/a2a-protocol.mdx +15 -0
- package/corpus/core/docs/content/template-chat.mdx +1 -1
- package/corpus/core/docs/content/template-plan.mdx +3 -3
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/a2a/activity.ts +371 -0
- package/corpus/core/src/a2a/client.ts +35 -11
- package/corpus/core/src/a2a/index.ts +21 -0
- package/corpus/core/src/a2a/types.ts +8 -0
- package/corpus/core/src/agent/model-config.ts +19 -23
- package/corpus/core/src/agent/production-agent.ts +167 -100
- package/corpus/core/src/agent/types.ts +16 -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 +9 -1
- package/corpus/core/src/client/RunStuckBanner.tsx +39 -47
- package/corpus/core/src/client/chat/action-chat-ui-surface.tsx +32 -0
- package/corpus/core/src/client/chat/message-components.tsx +53 -8
- package/corpus/core/src/client/chat/tool-call-display.tsx +214 -44
- package/corpus/core/src/client/chat/widgets/InlineExtensionWidget.tsx +0 -1
- package/corpus/core/src/client/chat/widgets/builtin-tool-renderers.tsx +7 -3
- package/corpus/core/src/client/chat-model-groups.ts +67 -27
- 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/resources/McpConnectionSuggestion.tsx +20 -14
- package/corpus/core/src/client/resources/ResourcesPanel.tsx +5 -1
- package/corpus/core/src/client/resources/mcp-integration-catalog.ts +7 -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/SettingsPanel.tsx +15 -6
- package/corpus/core/src/client/sharing/ShareButton.tsx +1 -27
- package/corpus/core/src/client/sharing/ShareDialog.tsx +0 -16
- package/corpus/core/src/client/sharing/useShareButtonController.ts +0 -7
- package/corpus/core/src/client/sharing/useShareDialogController.ts +0 -2
- package/corpus/core/src/client/sse-event-processor.ts +85 -1
- package/corpus/core/src/client/transcription/use-live-transcription.ts +64 -45
- 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 +7 -1
- package/corpus/core/src/mcp-client/oauth-routes.ts +45 -12
- package/corpus/core/src/scripts/agent-engines/list-agent-engines.ts +1 -18
- package/corpus/core/src/scripts/call-agent.ts +49 -6
- package/corpus/core/src/server/agent-chat-plugin.ts +50 -10
- package/corpus/core/src/server/realtime-voice.ts +4 -1
- package/corpus/core/src/templates/workspace-core/.agents/skills/a2a-protocol/SKILL.md +16 -0
- 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 +166 -1
- 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/brain/app/routes/sources.tsx +181 -114
- 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/lib/capture-install-options.ts +15 -4
- 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-transcript-generation-now-retries-with-backup-speech-recogni.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-23-fixed-recordings-failing-to-save-with-a-cancelled-or-cleanup.md +6 -0
- package/corpus/templates/clips/server/lib/public-agent-context.ts +2 -2
- package/corpus/templates/clips/server/plugins/db.ts +9 -1
- package/corpus/templates/clips/server/register-secrets.ts +7 -6
- 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/extensions/ImageBlock.tsx +2 -2
- package/corpus/templates/content/app/i18n-data.ts +10 -0
- package/corpus/templates/design/server/lib/fig-file-decoder.ts +1 -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/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/toolkit/CHANGELOG.md +9 -0
- package/corpus/toolkit/package.json +1 -1
- package/corpus/toolkit/src/composer/PromptComposer.tsx +5 -1
- package/corpus/toolkit/src/composer/RealtimeVoiceMode.tsx +119 -31
- package/corpus/toolkit/src/composer/useRealtimeVoiceMode.tsx +30 -0
- package/corpus/toolkit/src/conformance/runner.tsx +153 -1
- 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/styles.css +52 -23
- package/dist/a2a/activity.d.ts +50 -0
- package/dist/a2a/activity.d.ts.map +1 -0
- package/dist/a2a/activity.js +236 -0
- package/dist/a2a/activity.js.map +1 -0
- package/dist/a2a/client.d.ts +5 -1
- package/dist/a2a/client.d.ts.map +1 -1
- package/dist/a2a/client.js +18 -13
- package/dist/a2a/client.js.map +1 -1
- package/dist/a2a/index.d.ts +2 -1
- package/dist/a2a/index.d.ts.map +1 -1
- package/dist/a2a/index.js +1 -0
- package/dist/a2a/index.js.map +1 -1
- package/dist/a2a/types.d.ts +1 -0
- package/dist/a2a/types.d.ts.map +1 -1
- package/dist/a2a/types.js.map +1 -1
- package/dist/agent/engine/anthropic-engine.d.ts +1 -1
- package/dist/agent/engine/builder-engine.d.ts +2 -2
- package/dist/agent/engine/builder-engine.d.ts.map +1 -1
- package/dist/agent/model-config.d.ts +16 -16
- package/dist/agent/model-config.d.ts.map +1 -1
- package/dist/agent/model-config.js +19 -23
- package/dist/agent/model-config.js.map +1 -1
- package/dist/agent/production-agent.d.ts +26 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +137 -80
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/types.d.ts +10 -0
- 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 +4 -1
- package/dist/client/AgentPanel.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/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 +3 -0
- package/dist/client/chat/message-components.d.ts.map +1 -1
- package/dist/client/chat/message-components.js +40 -7
- 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 +76 -23
- 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 +1 -1
- 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/chat-model-groups.d.ts.map +1 -1
- package/dist/client/chat-model-groups.js +44 -21
- package/dist/client/chat-model-groups.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/resources/McpConnectionSuggestion.d.ts +1 -0
- package/dist/client/resources/McpConnectionSuggestion.d.ts.map +1 -1
- package/dist/client/resources/McpConnectionSuggestion.js +9 -8
- package/dist/client/resources/McpConnectionSuggestion.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 +1 -0
- package/dist/client/resources/mcp-integration-catalog.d.ts.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.js +4 -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/SettingsPanel.d.ts.map +1 -1
- package/dist/client/settings/SettingsPanel.js +2 -2
- package/dist/client/settings/SettingsPanel.js.map +1 -1
- package/dist/client/sharing/ShareButton.d.ts +1 -1
- package/dist/client/sharing/ShareButton.d.ts.map +1 -1
- package/dist/client/sharing/ShareButton.js +3 -4
- package/dist/client/sharing/ShareButton.js.map +1 -1
- package/dist/client/sharing/ShareDialog.d.ts.map +1 -1
- package/dist/client/sharing/ShareDialog.js +1 -2
- package/dist/client/sharing/ShareDialog.js.map +1 -1
- package/dist/client/sharing/useShareButtonController.d.ts +0 -1
- package/dist/client/sharing/useShareButtonController.d.ts.map +1 -1
- package/dist/client/sharing/useShareButtonController.js +0 -6
- package/dist/client/sharing/useShareButtonController.js.map +1 -1
- package/dist/client/sharing/useShareDialogController.d.ts +0 -1
- package/dist/client/sharing/useShareDialogController.d.ts.map +1 -1
- package/dist/client/sharing/useShareDialogController.js +0 -1
- package/dist/client/sharing/useShareDialogController.js.map +1 -1
- package/dist/client/sse-event-processor.d.ts +12 -0
- package/dist/client/sse-event-processor.d.ts.map +1 -1
- package/dist/client/sse-event-processor.js +63 -1
- package/dist/client/sse-event-processor.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/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +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 +6 -0
- package/dist/localization/default-messages.d.ts.map +1 -1
- package/dist/localization/default-messages.js +7 -1
- package/dist/localization/default-messages.js.map +1 -1
- package/dist/mcp-client/oauth-routes.d.ts +3 -0
- package/dist/mcp-client/oauth-routes.d.ts.map +1 -1
- package/dist/mcp-client/oauth-routes.js +41 -12
- package/dist/mcp-client/oauth-routes.js.map +1 -1
- package/dist/observability/routes.d.ts +3 -3
- package/dist/provider-api/actions/custom-provider-registration.d.ts +8 -8
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/scripts/agent-engines/list-agent-engines.d.ts.map +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.js +1 -18
- package/dist/scripts/agent-engines/list-agent-engines.js.map +1 -1
- package/dist/scripts/call-agent.d.ts.map +1 -1
- package/dist/scripts/call-agent.js +49 -6
- package/dist/scripts/call-agent.js.map +1 -1
- package/dist/secrets/routes.d.ts +6 -6
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +38 -10
- package/dist/server/agent-chat-plugin.js.map +1 -1
- 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 +1 -1
- package/dist/server/realtime-voice.js.map +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/templates/workspace-core/.agents/skills/a2a-protocol/SKILL.md +16 -0
- 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 +8 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +113 -2
- package/dist/vite/client.js.map +1 -1
- package/docs/content/a2a-protocol.mdx +15 -0
- package/docs/content/template-chat.mdx +1 -1
- package/docs/content/template-plan.mdx +3 -3
- package/package.json +2 -2
- package/src/a2a/activity.ts +371 -0
- package/src/a2a/client.ts +35 -11
- package/src/a2a/index.ts +21 -0
- package/src/a2a/types.ts +8 -0
- package/src/agent/model-config.ts +19 -23
- package/src/agent/production-agent.ts +167 -100
- package/src/agent/types.ts +16 -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 +9 -1
- package/src/client/RunStuckBanner.tsx +39 -47
- package/src/client/chat/action-chat-ui-surface.tsx +32 -0
- package/src/client/chat/message-components.tsx +53 -8
- package/src/client/chat/tool-call-display.tsx +214 -44
- package/src/client/chat/widgets/InlineExtensionWidget.tsx +0 -1
- package/src/client/chat/widgets/builtin-tool-renderers.tsx +7 -3
- package/src/client/chat-model-groups.ts +67 -27
- package/src/client/conversation/AgentConversation.tsx +12 -1
- package/src/client/error-capture.ts +2 -6
- package/src/client/resources/McpConnectionSuggestion.tsx +20 -14
- package/src/client/resources/ResourcesPanel.tsx +5 -1
- package/src/client/resources/mcp-integration-catalog.ts +7 -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/SettingsPanel.tsx +15 -6
- package/src/client/sharing/ShareButton.tsx +1 -27
- package/src/client/sharing/ShareDialog.tsx +0 -16
- package/src/client/sharing/useShareButtonController.ts +0 -7
- package/src/client/sharing/useShareDialogController.ts +0 -2
- package/src/client/sse-event-processor.ts +85 -1
- package/src/client/transcription/use-live-transcription.ts +64 -45
- 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 +7 -1
- package/src/mcp-client/oauth-routes.ts +45 -12
- package/src/scripts/agent-engines/list-agent-engines.ts +1 -18
- package/src/scripts/call-agent.ts +49 -6
- package/src/server/agent-chat-plugin.ts +50 -10
- package/src/server/realtime-voice.ts +4 -1
- package/src/templates/workspace-core/.agents/skills/a2a-protocol/SKILL.md +16 -0
- 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 +166 -1
- package/corpus/core/src/observability/hosted-model-experiment.ts +0 -118
- 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 -177
- package/corpus/templates/crm/.agents/skills/crm/SKILL.md +0 -128
- package/corpus/templates/crm/.agents/skills/customizing-agent-native/SKILL.md +0 -220
- 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 -78
- package/corpus/templates/crm/app/components/crm/CrmSignalsPanel.tsx +0 -226
- package/corpus/templates/crm/app/components/crm/IntelligenceSettings.tsx +0 -414
- 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 -362
- package/corpus/templates/crm/app/components/crm/SavedViewDataProgram.tsx +0 -93
- package/corpus/templates/crm/app/components/crm/Surface.tsx +0 -97
- 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/components/ui/alert-dialog.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/badge.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/button.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/card.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/dialog.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/input.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/label.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/select.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/sheet.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/skeleton.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/switch.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/table.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/tabs.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/textarea.tsx +0 -1
- package/corpus/templates/crm/app/components/ui/toolkit-provider.tsx +0 -17
- package/corpus/templates/crm/app/design-system.ts +0 -3
- 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 -91
- 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/dist/observability/hosted-model-experiment.d.ts +0 -39
- package/dist/observability/hosted-model-experiment.d.ts.map +0 -1
- package/dist/observability/hosted-model-experiment.js +0 -90
- package/dist/observability/hosted-model-experiment.js.map +0 -1
- package/src/observability/hosted-model-experiment.ts +0 -118
|
@@ -126,11 +126,15 @@ function renderDataWidget(context: ToolRendererContext) {
|
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function BuiltinToolRendererSkeleton() {
|
|
129
|
+
function BuiltinToolRendererSkeleton({ framed = true }: { framed?: boolean }) {
|
|
130
130
|
return (
|
|
131
131
|
<div
|
|
132
132
|
aria-label="Loading tool result"
|
|
133
|
-
className=
|
|
133
|
+
className={
|
|
134
|
+
framed
|
|
135
|
+
? "my-1.5 h-24 animate-pulse rounded-lg border border-border bg-muted/30"
|
|
136
|
+
: "h-24 animate-pulse bg-muted/30"
|
|
137
|
+
}
|
|
134
138
|
/>
|
|
135
139
|
);
|
|
136
140
|
}
|
|
@@ -140,7 +144,7 @@ const BuiltinDataWidgetRenderer: ToolRendererComponent = ({ context }) =>
|
|
|
140
144
|
|
|
141
145
|
const BuiltinInlineExtensionRenderer: ToolRendererComponent = ({ context }) =>
|
|
142
146
|
normalizeInlineExtensionToolResult(context) ? (
|
|
143
|
-
<Suspense fallback={<BuiltinToolRendererSkeleton />}>
|
|
147
|
+
<Suspense fallback={<BuiltinToolRendererSkeleton framed={false} />}>
|
|
144
148
|
<LazyInlineExtensionWidget context={context} />
|
|
145
149
|
</Suspense>
|
|
146
150
|
) : null;
|
|
@@ -40,34 +40,64 @@ function addCurrentModel(
|
|
|
40
40
|
return next;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
const MODEL_COST_ORDER = [
|
|
44
|
+
"luna",
|
|
45
|
+
"terra",
|
|
46
|
+
"sol",
|
|
47
|
+
"haiku",
|
|
48
|
+
"sonnet",
|
|
49
|
+
"opus",
|
|
50
|
+
"fable",
|
|
51
|
+
"flash",
|
|
52
|
+
"pro",
|
|
53
|
+
] as const;
|
|
54
|
+
|
|
55
|
+
function modelCostRank(model: string): number {
|
|
56
|
+
const normalized = model.toLowerCase();
|
|
57
|
+
const rank = MODEL_COST_ORDER.findIndex((tier) => normalized.includes(tier));
|
|
58
|
+
return rank === -1 ? MODEL_COST_ORDER.length : rank;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function sortModelsByCost(models: readonly string[]): string[] {
|
|
62
|
+
return [...models].sort((a, b) => modelCostRank(a) - modelCostRank(b));
|
|
63
|
+
}
|
|
64
|
+
|
|
43
65
|
function groupBuilderModels(models: readonly string[]): EngineModelGroup[] {
|
|
44
|
-
const claude =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
(model) =>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
66
|
+
const claude = sortModelsByCost(
|
|
67
|
+
models.filter((model) => model.startsWith("claude-")),
|
|
68
|
+
);
|
|
69
|
+
const openai = sortModelsByCost(
|
|
70
|
+
models.filter((model) => model.startsWith("gpt-")),
|
|
71
|
+
);
|
|
72
|
+
const gemini = sortModelsByCost(
|
|
73
|
+
models.filter((model) => model.startsWith("gemini-")),
|
|
74
|
+
);
|
|
75
|
+
const other = sortModelsByCost(
|
|
76
|
+
models.filter(
|
|
77
|
+
(model) =>
|
|
78
|
+
!model.startsWith("claude-") &&
|
|
79
|
+
!model.startsWith("gpt-") &&
|
|
80
|
+
!model.startsWith("gemini-"),
|
|
81
|
+
),
|
|
52
82
|
);
|
|
53
83
|
|
|
54
84
|
return [
|
|
55
|
-
...(
|
|
85
|
+
...(openai.length
|
|
56
86
|
? [
|
|
57
87
|
{
|
|
58
88
|
engine: "builder",
|
|
59
|
-
label: "
|
|
60
|
-
models:
|
|
89
|
+
label: "OpenAI",
|
|
90
|
+
models: openai,
|
|
61
91
|
configured: true,
|
|
62
92
|
},
|
|
63
93
|
]
|
|
64
94
|
: []),
|
|
65
|
-
...(
|
|
95
|
+
...(claude.length
|
|
66
96
|
? [
|
|
67
97
|
{
|
|
68
98
|
engine: "builder",
|
|
69
|
-
label: "
|
|
70
|
-
models:
|
|
99
|
+
label: "Claude",
|
|
100
|
+
models: claude,
|
|
71
101
|
configured: true,
|
|
72
102
|
},
|
|
73
103
|
]
|
|
@@ -115,16 +145,24 @@ function shouldShowDirectEngine(
|
|
|
115
145
|
return true;
|
|
116
146
|
}
|
|
117
147
|
|
|
118
|
-
function
|
|
148
|
+
function modelPickerEngineRank(engine: ChatModelEngineEntry): number {
|
|
149
|
+
if (engine.name === "ai-sdk:openai" || engine.label === "OpenAI") return 0;
|
|
150
|
+
if (
|
|
151
|
+
engine.name === "anthropic" ||
|
|
152
|
+
engine.name === "ai-sdk:anthropic" ||
|
|
153
|
+
engine.label === "Claude"
|
|
154
|
+
) {
|
|
155
|
+
return 1;
|
|
156
|
+
}
|
|
157
|
+
if (engine.name === "ai-sdk:openrouter") return 100;
|
|
158
|
+
return 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function sortModelPickerEngines(
|
|
119
162
|
a: ChatModelEngineEntry,
|
|
120
163
|
b: ChatModelEngineEntry,
|
|
121
164
|
): number {
|
|
122
|
-
|
|
123
|
-
const bIsOpenRouter = b.name === "ai-sdk:openrouter";
|
|
124
|
-
if (aIsOpenRouter === bIsOpenRouter) return 0;
|
|
125
|
-
if (aIsOpenRouter) return 1;
|
|
126
|
-
if (bIsOpenRouter) return -1;
|
|
127
|
-
return 0;
|
|
165
|
+
return modelPickerEngineRank(a) - modelPickerEngineRank(b);
|
|
128
166
|
}
|
|
129
167
|
|
|
130
168
|
export function buildChatModelGroups({
|
|
@@ -150,17 +188,19 @@ export function buildChatModelGroups({
|
|
|
150
188
|
return engines
|
|
151
189
|
.filter((engine) => engine.packageInstalled !== false)
|
|
152
190
|
.filter((engine) => shouldShowDirectEngine(engine, currentEngineName))
|
|
153
|
-
.sort(
|
|
191
|
+
.sort(sortModelPickerEngines)
|
|
154
192
|
.map((engine) => {
|
|
155
193
|
const requiredEnvVars = engine.requiredEnvVars ?? [];
|
|
156
194
|
return {
|
|
157
195
|
engine: engine.name,
|
|
158
196
|
label: engine.label,
|
|
159
|
-
models:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
197
|
+
models: sortModelsByCost(
|
|
198
|
+
addCurrentModel(
|
|
199
|
+
engine.supportedModels ?? [],
|
|
200
|
+
engine.name,
|
|
201
|
+
currentEngineName,
|
|
202
|
+
currentModel,
|
|
203
|
+
),
|
|
164
204
|
),
|
|
165
205
|
configured:
|
|
166
206
|
requiredEnvVars.length === 0 ||
|
|
@@ -13,10 +13,12 @@ import React from "react";
|
|
|
13
13
|
import ReactMarkdown, { defaultUrlTransform } from "react-markdown";
|
|
14
14
|
import remarkGfm from "remark-gfm";
|
|
15
15
|
|
|
16
|
+
import { ActionChatUiSurface } from "../chat/action-chat-ui-surface.js";
|
|
16
17
|
import { resolveToolRenderer } from "../chat/tool-render-registry.js";
|
|
17
18
|
import {
|
|
18
19
|
resolveBuiltinActionChatRenderer,
|
|
19
20
|
resolveBuiltinFallbackToolRenderer,
|
|
21
|
+
isBuiltinDataWidgetActionRenderer,
|
|
20
22
|
} from "../chat/widgets/builtin-tool-renderers.js";
|
|
21
23
|
import {
|
|
22
24
|
MessageScroller,
|
|
@@ -414,7 +416,16 @@ function ConversationToolCall({ tool }: { tool: AgentConversationToolCall }) {
|
|
|
414
416
|
resolveToolRenderer(nativeToolContext) ??
|
|
415
417
|
resolveBuiltinFallbackToolRenderer(nativeToolContext);
|
|
416
418
|
if (NativeToolRenderer) {
|
|
417
|
-
return
|
|
419
|
+
return (
|
|
420
|
+
<ActionChatUiSurface
|
|
421
|
+
context={nativeToolContext}
|
|
422
|
+
isBuiltinDataWidget={isBuiltinDataWidgetActionRenderer(
|
|
423
|
+
nativeToolContext,
|
|
424
|
+
)}
|
|
425
|
+
>
|
|
426
|
+
<NativeToolRenderer context={nativeToolContext} />
|
|
427
|
+
</ActionChatUiSurface>
|
|
428
|
+
);
|
|
418
429
|
}
|
|
419
430
|
|
|
420
431
|
const hasDetails = Boolean(tool.input || tool.result || tool.mcpApp);
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* the server normalizes + groups it. That keeps one tested source of truth for
|
|
22
22
|
* grouping instead of duplicating parser logic across the wire.
|
|
23
23
|
*/
|
|
24
|
+
import { isDynamicImportFailureMessage } from "./route-chunk-recovery.js";
|
|
24
25
|
import { scrubUrl } from "./url-scrub.js";
|
|
25
26
|
|
|
26
27
|
export type ExceptionLevel = "fatal" | "error" | "warning" | "info" | "debug";
|
|
@@ -358,12 +359,7 @@ function shouldIgnoreAutoCapturedError(normalized: {
|
|
|
358
359
|
// Route-chunk recovery reloads the current page after stale lazy chunks or
|
|
359
360
|
// module scripts fail. Browser-level failures have no useful stack, so do
|
|
360
361
|
// not retain the transient loader noise as an application issue.
|
|
361
|
-
if (
|
|
362
|
-
!stack &&
|
|
363
|
-
/^(?:Importing a module script failed\.?|(?:Failed to fetch|error loading) dynamically imported module(?::.*)?)$/i.test(
|
|
364
|
-
message,
|
|
365
|
-
)
|
|
366
|
-
) {
|
|
362
|
+
if (!stack && isDynamicImportFailureMessage(message)) {
|
|
367
363
|
return true;
|
|
368
364
|
}
|
|
369
365
|
|
|
@@ -39,6 +39,18 @@ export interface McpConnectionSuggestionProps {
|
|
|
39
39
|
integrations?: DefaultMcpIntegration[];
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
export function findMcpConnectionSuggestionIntegration({
|
|
43
|
+
text,
|
|
44
|
+
contextText = "",
|
|
45
|
+
variant = "composer",
|
|
46
|
+
integrations = getDefaultMcpIntegrations(),
|
|
47
|
+
}: McpConnectionSuggestionProps): DefaultMcpIntegration | null {
|
|
48
|
+
return findMcpIntegrationForText(
|
|
49
|
+
variant === "response" ? contextText : text,
|
|
50
|
+
integrations,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
42
54
|
function compareUrl(value: string): string {
|
|
43
55
|
try {
|
|
44
56
|
const url = new URL(value.trim());
|
|
@@ -99,22 +111,16 @@ export function McpConnectionSuggestion({
|
|
|
99
111
|
() => integrationOptions ?? getDefaultMcpIntegrations(),
|
|
100
112
|
[integrationOptions],
|
|
101
113
|
);
|
|
102
|
-
const
|
|
103
|
-
() => findMcpIntegrationForText(text, integrations),
|
|
104
|
-
[integrations, text],
|
|
105
|
-
);
|
|
106
|
-
const contextIntegration = useMemo(
|
|
114
|
+
const integration = useMemo(
|
|
107
115
|
() =>
|
|
108
|
-
|
|
109
|
-
|
|
116
|
+
findMcpConnectionSuggestionIntegration({
|
|
117
|
+
text,
|
|
118
|
+
contextText,
|
|
119
|
+
variant,
|
|
120
|
+
integrations,
|
|
121
|
+
}),
|
|
122
|
+
[contextText, integrations, text, variant],
|
|
110
123
|
);
|
|
111
|
-
const integration =
|
|
112
|
-
variant === "response" &&
|
|
113
|
-
textIntegration &&
|
|
114
|
-
contextIntegration &&
|
|
115
|
-
textIntegration.id !== contextIntegration.id
|
|
116
|
-
? null
|
|
117
|
-
: (textIntegration ?? contextIntegration);
|
|
118
124
|
const apiFallback = integration
|
|
119
125
|
? getMcpIntegrationApiFallback(integration)
|
|
120
126
|
: null;
|
|
@@ -338,7 +338,11 @@ function CreateMenu({
|
|
|
338
338
|
window.clearTimeout(skillFlyoutCloseTimerRef.current);
|
|
339
339
|
skillFlyoutCloseTimerRef.current = null;
|
|
340
340
|
}
|
|
341
|
-
if (
|
|
341
|
+
if (
|
|
342
|
+
rowEl &&
|
|
343
|
+
typeof window !== "undefined" &&
|
|
344
|
+
typeof rowEl.getBoundingClientRect === "function"
|
|
345
|
+
) {
|
|
342
346
|
const rect = rowEl.getBoundingClientRect();
|
|
343
347
|
const FLYOUT_WIDTH = 248;
|
|
344
348
|
setSkillFlyoutSide(
|
|
@@ -49,6 +49,7 @@ export interface DefaultMcpIntegration {
|
|
|
49
49
|
templateUses?: readonly string[];
|
|
50
50
|
};
|
|
51
51
|
headerPlaceholder?: string;
|
|
52
|
+
brandAliases?: string[];
|
|
52
53
|
aliases?: string[];
|
|
53
54
|
keywords: string[];
|
|
54
55
|
}
|
|
@@ -138,16 +139,6 @@ export const DEFAULT_MCP_INTEGRATIONS: DefaultMcpIntegration[] = [
|
|
|
138
139
|
logoUrl: mcpIntegrationLogo("granola"),
|
|
139
140
|
docsUrl: "https://docs.granola.ai/help-center/sharing/integrations/mcp",
|
|
140
141
|
setupNoteKey: "mcpIntegrations.catalog.granola.setupNote",
|
|
141
|
-
aliases: [
|
|
142
|
-
"meeting notes",
|
|
143
|
-
"meeting recordings",
|
|
144
|
-
"recordings",
|
|
145
|
-
"transcripts",
|
|
146
|
-
"action items",
|
|
147
|
-
"follow-ups",
|
|
148
|
-
"follow ups",
|
|
149
|
-
"decisions",
|
|
150
|
-
],
|
|
151
142
|
keywords: [
|
|
152
143
|
"meetings",
|
|
153
144
|
"meeting notes",
|
|
@@ -210,7 +201,7 @@ export const DEFAULT_MCP_INTEGRATIONS: DefaultMcpIntegration[] = [
|
|
|
210
201
|
docsUrl:
|
|
211
202
|
"https://developer.atlassian.com/cloud/rovo-mcp/guides/getting-started/",
|
|
212
203
|
setupNoteKey: "mcpIntegrations.catalog.atlassian.setupNote",
|
|
213
|
-
|
|
204
|
+
brandAliases: ["Jira", "Confluence", "Rovo"],
|
|
214
205
|
keywords: ["atlassian", "jira", "confluence", "issues", "tickets"],
|
|
215
206
|
},
|
|
216
207
|
{
|
|
@@ -721,6 +712,8 @@ export function filterMcpIntegrations(
|
|
|
721
712
|
integration.description,
|
|
722
713
|
integration.useCase,
|
|
723
714
|
integration.url,
|
|
715
|
+
...(integration.brandAliases ?? []),
|
|
716
|
+
...(integration.aliases ?? []),
|
|
724
717
|
...integration.keywords,
|
|
725
718
|
]
|
|
726
719
|
.join(" ")
|
|
@@ -802,12 +795,9 @@ export function findMcpIntegrationForText(
|
|
|
802
795
|
isMcpConnectionFailureText(normalizedText);
|
|
803
796
|
if (!hasResourceIntent) return null;
|
|
804
797
|
const matchesCanonicalName = (integration: DefaultMcpIntegration) =>
|
|
805
|
-
[
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
integration.id,
|
|
809
|
-
...(integration.aliases ?? []),
|
|
810
|
-
].some((alias) => textContainsTerm(normalizedText, alias));
|
|
798
|
+
[integration.name, ...(integration.brandAliases ?? [])].some((alias) =>
|
|
799
|
+
textContainsTerm(normalizedText, alias),
|
|
800
|
+
);
|
|
811
801
|
const canonicalMatch = integrations.find(matchesCanonicalName);
|
|
812
802
|
if (canonicalMatch) return canonicalMatch;
|
|
813
803
|
return null;
|
|
@@ -24,8 +24,8 @@ const LOGOS = {
|
|
|
24
24
|
data: "PHN2ZyBmaWxsPSIjMDAwMDAwIiByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+Tm90aW9uPC90aXRsZT48cGF0aCBkPSJNNC40NTkgNC4yMDhjLjc0Ni42MDYgMS4wMjYuNTYgMi40MjguNDY2bDEzLjIxNS0uNzkzYy4yOCAwIC4wNDctLjI4LS4wNDYtLjMyNkwxNy44NiAxLjk2OGMtLjQyLS4zMjYtLjk4MS0uNy0yLjA1NS0uNjA3TDMuMDEgMi4yOTVjLS40NjYuMDQ2LS41Ni4yOC0uMzc0LjQ2NnptLjc5MyAzLjA4djEzLjkwNGMwIC43NDcuMzczIDEuMDI3IDEuMjE0Ljk4bDE0LjUyMy0uODRjLjg0MS0uMDQ2LjkzNS0uNTYuOTM1LTEuMTY3VjYuMzU0YzAtLjYwNi0uMjMzLS45MzMtLjc0OC0uODg3bC0xNS4xNzcuODg3Yy0uNTYuMDQ3LS43NDcuMzI3LS43NDcuOTMzem0xNC4zMzcuNzQ1Yy4wOTMuNDIgMCAuODQtLjQyLjg4OGwtLjcuMTR2MTAuMjY0Yy0uNjA4LjMyNy0xLjE2OC41MTQtMS42MzUuNTE0LS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uqSSrOf+SGDz6nMQNZCV26RoGenThg5/PCWD/zglJwbjlzjQ88kw2Rj+QgWHXJqKPrBKqg/ZwRu+5XychKQin9Q7XWN21NydpbG/ss9kYdW8GuvYIF5+OUWztA3dKEYCvSMFHdZVhSH5ZkTFhDtiQYfG4QMJ/Ay+MAQMhPXqFywCGaem0PuHiIogEZ/XQaxNAt/iYcZl48i9dNWLe/XBnLe+KqxNxRv9IxErcwturi303kyxmKnVUHYvEXKkpaSxKrOpR96Rrn6S5V9gGvy9NbYVprKwYfjnld/dlSMw4BYz/9u0fJVZ4KLgCuHuD+3ZOlUGH3c8NAtjV8t96bQT8BPDaUJpD5CeAuXHzWi0/Abw2lOYQ+Qlgbty8VstPAK8NpTlEfgKYGzev1fITwGtDaQ6RnwDmxs1rtfwE8NpQmkPkJ4Bi3Nq7+P8AAAD//8J62gUAAAAGSURBVAMA8KanWR4An2UAAAAASUVORK5CYII=",
|
|
29
29
|
},
|
|
30
30
|
linear: {
|
|
31
31
|
mime: "image/svg+xml",
|
|
@@ -33,10 +33,12 @@ export function isRouteModuleReloadMessage(value: unknown): boolean {
|
|
|
33
33
|
|
|
34
34
|
export function isDynamicImportFailureMessage(value: unknown): boolean {
|
|
35
35
|
if (typeof value !== "string") return false;
|
|
36
|
+
const message = value.toLowerCase();
|
|
36
37
|
return (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
message.includes("failed to fetch dynamically imported module") ||
|
|
39
|
+
message.includes("error loading dynamically imported module") ||
|
|
40
|
+
message.includes("importing a module script failed") ||
|
|
41
|
+
message.includes("failed to fetch dynamically imported")
|
|
40
42
|
);
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -1158,13 +1158,13 @@ function updateReplayResourceNode(
|
|
|
1158
1158
|
): ReplayResourceNode {
|
|
1159
1159
|
return {
|
|
1160
1160
|
tagName: current.tagName,
|
|
1161
|
-
rel: Object.
|
|
1161
|
+
rel: Object.prototype.hasOwnProperty.call(attributes, "rel")
|
|
1162
1162
|
? replayAttributeString(attributes, "rel")
|
|
1163
1163
|
: current.rel,
|
|
1164
|
-
as: Object.
|
|
1164
|
+
as: Object.prototype.hasOwnProperty.call(attributes, "as")
|
|
1165
1165
|
? replayAttributeString(attributes, "as")
|
|
1166
1166
|
: current.as,
|
|
1167
|
-
type: Object.
|
|
1167
|
+
type: Object.prototype.hasOwnProperty.call(attributes, "type")
|
|
1168
1168
|
? replayAttributeString(attributes, "type")
|
|
1169
1169
|
: current.type,
|
|
1170
1170
|
};
|
|
@@ -1119,12 +1119,7 @@ function LLMSectionInner({
|
|
|
1119
1119
|
label="Connect Builder.io"
|
|
1120
1120
|
/>
|
|
1121
1121
|
{!builderConnected && (
|
|
1122
|
-
<ManualSetupCard
|
|
1123
|
-
hint={manualSetupHint}
|
|
1124
|
-
docsUrl={PROVIDER_DOCS[selectedEngine]}
|
|
1125
|
-
sourceBadge={sourceBadge}
|
|
1126
|
-
docsLabel="Get an API key"
|
|
1127
|
-
>
|
|
1122
|
+
<ManualSetupCard hint={manualSetupHint} sourceBadge={sourceBadge}>
|
|
1128
1123
|
<div className="space-y-2 mb-1">
|
|
1129
1124
|
<SettingsSelect
|
|
1130
1125
|
label="Provider"
|
|
@@ -1330,6 +1325,20 @@ function LLMSectionInner({
|
|
|
1330
1325
|
"Test"
|
|
1331
1326
|
)}
|
|
1332
1327
|
</Button>
|
|
1328
|
+
{PROVIDER_DOCS[selectedEngine] ? (
|
|
1329
|
+
<a
|
|
1330
|
+
href={PROVIDER_DOCS[selectedEngine]}
|
|
1331
|
+
target="_blank"
|
|
1332
|
+
rel="noopener noreferrer"
|
|
1333
|
+
className={cn(
|
|
1334
|
+
pillButtonClass(isPage, "outline"),
|
|
1335
|
+
"no-underline",
|
|
1336
|
+
)}
|
|
1337
|
+
>
|
|
1338
|
+
Get an API key
|
|
1339
|
+
<IconExternalLink size={isPage ? 14 : 10} />
|
|
1340
|
+
</a>
|
|
1341
|
+
) : null}
|
|
1333
1342
|
{engineChanged && (
|
|
1334
1343
|
<Button
|
|
1335
1344
|
intent="primary"
|
|
@@ -77,7 +77,7 @@ export interface ShareButtonProps {
|
|
|
77
77
|
shareUrlPlacement?: "top" | "bottom";
|
|
78
78
|
/** Whether to render copyable share URL fields. Defaults to true. */
|
|
79
79
|
showShareLinks?: boolean;
|
|
80
|
-
/**
|
|
80
|
+
/** @deprecated The Done action was removed; share popovers dismiss directly. */
|
|
81
81
|
showDoneButton?: boolean;
|
|
82
82
|
/** Optional placeholder shown in the share-URL slot when `shareUrl` is
|
|
83
83
|
* undefined. Use this to explain *why* there's no link yet (e.g. "Publish
|
|
@@ -301,7 +301,6 @@ function SharePanel(
|
|
|
301
301
|
const {
|
|
302
302
|
inviteEmail,
|
|
303
303
|
setInviteEmail: onInviteEmailChange,
|
|
304
|
-
handleOpenChange,
|
|
305
304
|
activeShareTab,
|
|
306
305
|
handleShareTabChange,
|
|
307
306
|
data,
|
|
@@ -326,7 +325,6 @@ function SharePanel(
|
|
|
326
325
|
handleAdd,
|
|
327
326
|
handleChangeRole,
|
|
328
327
|
handleRemove,
|
|
329
|
-
handleDone,
|
|
330
328
|
} = controller;
|
|
331
329
|
const hasInviteEmail = inviteEmail.trim().length > 0;
|
|
332
330
|
|
|
@@ -367,7 +365,6 @@ function SharePanel(
|
|
|
367
365
|
(Boolean(props.shareUrl) ||
|
|
368
366
|
Boolean(props.shareUrlPlaceholder) ||
|
|
369
367
|
Boolean(props.secondaryShareUrl));
|
|
370
|
-
const showDoneButton = props.showDoneButton ?? true;
|
|
371
368
|
const shareUrlPlacement = props.shareUrlPlacement ?? "bottom";
|
|
372
369
|
const extraTabs = props.shareTabs?.tabs ?? [];
|
|
373
370
|
const hasTabs = extraTabs.length > 0;
|
|
@@ -392,17 +389,6 @@ function SharePanel(
|
|
|
392
389
|
<div className="mb-4 h-7 rounded-md bg-muted animate-pulse" />
|
|
393
390
|
<div className="mb-2 text-sm font-semibold">{generalAccessLabel}</div>
|
|
394
391
|
<div className="mb-4 h-9 rounded-md bg-muted animate-pulse" />
|
|
395
|
-
{showDoneButton ? (
|
|
396
|
-
<div className="mt-2 flex justify-end">
|
|
397
|
-
<button
|
|
398
|
-
type="button"
|
|
399
|
-
onClick={() => handleOpenChange(false)}
|
|
400
|
-
className={BUTTON_PRIMARY_SM}
|
|
401
|
-
>
|
|
402
|
-
Done
|
|
403
|
-
</button>
|
|
404
|
-
</div>
|
|
405
|
-
) : null}
|
|
406
392
|
</div>
|
|
407
393
|
) : (
|
|
408
394
|
<div>
|
|
@@ -579,18 +565,6 @@ function SharePanel(
|
|
|
579
565
|
{showShareLinks && shareUrlPlacement === "bottom" ? shareLinks : null}
|
|
580
566
|
|
|
581
567
|
{props.shareFooterContent}
|
|
582
|
-
|
|
583
|
-
{showDoneButton ? (
|
|
584
|
-
<div className="mt-2 flex justify-end">
|
|
585
|
-
<button
|
|
586
|
-
type="button"
|
|
587
|
-
onClick={handleDone}
|
|
588
|
-
className={BUTTON_PRIMARY_SM}
|
|
589
|
-
>
|
|
590
|
-
Done
|
|
591
|
-
</button>
|
|
592
|
-
</div>
|
|
593
|
-
) : null}
|
|
594
568
|
</div>
|
|
595
569
|
);
|
|
596
570
|
|
|
@@ -61,10 +61,6 @@ const BUTTON_OUTLINE_SM = cn(
|
|
|
61
61
|
BUTTON_BASE,
|
|
62
62
|
"!h-9 !px-3 border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
63
63
|
);
|
|
64
|
-
const BUTTON_PRIMARY_SM = cn(
|
|
65
|
-
BUTTON_BASE,
|
|
66
|
-
"!h-9 !px-4 bg-primary text-primary-foreground hover:bg-primary/90",
|
|
67
|
-
);
|
|
68
64
|
const BUTTON_GHOST_ICON = cn(
|
|
69
65
|
BUTTON_BASE,
|
|
70
66
|
"!h-8 !w-8 !p-0 text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
@@ -171,18 +167,6 @@ export function ShareDialog({
|
|
|
171
167
|
? (embedTabContent ?? <DefaultEmbedBody controller={controller} />)
|
|
172
168
|
: null}
|
|
173
169
|
</div>
|
|
174
|
-
|
|
175
|
-
<div className="flex justify-end border-t border-border px-5 py-3">
|
|
176
|
-
<ActionButton
|
|
177
|
-
type="button"
|
|
178
|
-
intent="primary"
|
|
179
|
-
emphasis="solid"
|
|
180
|
-
onPress={controller.close}
|
|
181
|
-
className={BUTTON_PRIMARY_SM}
|
|
182
|
-
>
|
|
183
|
-
{controller.labels.done}
|
|
184
|
-
</ActionButton>
|
|
185
|
-
</div>
|
|
186
170
|
</DesignSystemDialog>
|
|
187
171
|
);
|
|
188
172
|
}
|
|
@@ -105,7 +105,6 @@ export interface ShareButtonController {
|
|
|
105
105
|
handleAdd: () => void;
|
|
106
106
|
handleChangeRole: (share: ShareButtonShare, role: ShareButtonRole) => void;
|
|
107
107
|
handleRemove: (share: ShareButtonShare) => void;
|
|
108
|
-
handleDone: () => void;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
export function useShareButtonController(
|
|
@@ -547,11 +546,6 @@ export function useShareButtonController(
|
|
|
547
546
|
],
|
|
548
547
|
);
|
|
549
548
|
|
|
550
|
-
const handleDone = useCallback(() => {
|
|
551
|
-
if (canManage && inviteEmail.trim()) handleAdd();
|
|
552
|
-
handleOpenChange(false);
|
|
553
|
-
}, [canManage, handleAdd, handleOpenChange, inviteEmail]);
|
|
554
|
-
|
|
555
549
|
return {
|
|
556
550
|
open,
|
|
557
551
|
handleOpenChange,
|
|
@@ -585,7 +579,6 @@ export function useShareButtonController(
|
|
|
585
579
|
handleAdd,
|
|
586
580
|
handleChangeRole,
|
|
587
581
|
handleRemove,
|
|
588
|
-
handleDone,
|
|
589
582
|
};
|
|
590
583
|
}
|
|
591
584
|
|
|
@@ -71,7 +71,6 @@ export interface ShareDialogController {
|
|
|
71
71
|
tabs: Array<{ value: ShareDialogTab; label: string }>;
|
|
72
72
|
labels: {
|
|
73
73
|
close: string;
|
|
74
|
-
done: string;
|
|
75
74
|
shareOptions: string;
|
|
76
75
|
generalAccess: string;
|
|
77
76
|
shareLink: string;
|
|
@@ -407,7 +406,6 @@ export function useShareDialogController({
|
|
|
407
406
|
],
|
|
408
407
|
labels: {
|
|
409
408
|
close: t("share.close"),
|
|
410
|
-
done: t("share.done"),
|
|
411
409
|
shareOptions: t("share.shareOptions"),
|
|
412
410
|
generalAccess: t("share.generalAccess"),
|
|
413
411
|
shareLink: t("share.shareLink"),
|