@agent-native/core 0.90.11 → 0.91.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 +2 -2
- package/corpus/core/CHANGELOG.md +34 -0
- package/corpus/core/docs/content/toolkit-settings.mdx +56 -3
- package/corpus/core/package.json +2 -1
- package/corpus/core/src/agent/run-ownership.ts +29 -1
- package/corpus/core/src/changelog/parse.ts +78 -0
- package/corpus/core/src/chat-threads/schema.ts +43 -0
- package/corpus/core/src/chat-threads/store.ts +144 -12
- package/corpus/core/src/cli/design-connect.ts +53 -9
- package/corpus/core/src/cli/workspace-dev.ts +25 -5
- package/corpus/core/src/client/AgentPanel.tsx +79 -14
- package/corpus/core/src/client/AssistantChat.tsx +359 -425
- package/corpus/core/src/client/analytics-session.ts +70 -0
- package/corpus/core/src/client/analytics.ts +175 -49
- package/corpus/core/src/client/chat/message-components.tsx +22 -2
- package/corpus/core/src/client/components/ui/message-scroller.tsx +131 -0
- package/corpus/core/src/client/conversation/AgentConversation.tsx +63 -41
- package/corpus/core/src/client/error-capture.ts +616 -0
- package/corpus/core/src/client/index.ts +12 -0
- package/corpus/core/src/client/session-replay.ts +57 -7
- package/corpus/core/src/client/settings/SettingsPanel.tsx +123 -1
- package/corpus/core/src/client/settings/SettingsTabsPage.tsx +292 -45
- package/corpus/core/src/client/settings/index.ts +1 -0
- package/corpus/core/src/client/sharing/ShareButton.tsx +14 -11
- package/corpus/core/src/client/sharing/ShareDialog.tsx +13 -10
- package/corpus/core/src/mcp/builtin-tools.ts +29 -2
- package/corpus/core/src/server/agent-chat-plugin.ts +174 -79
- package/corpus/core/src/server/onboarding-html.ts +28 -16
- package/corpus/core/src/sharing/actions/list-resource-shares.ts +45 -1
- package/corpus/core/src/sharing/actions/share-resource.ts +9 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +4 -2
- package/corpus/core/src/templates/workspace-core/.agents/skills/changelog/SKILL.md +9 -6
- package/corpus/core/src/vite/client.ts +217 -35
- package/corpus/templates/analytics/.agents/skills/adhoc-analysis/SKILL.md +8 -7
- package/corpus/templates/analytics/.agents/skills/analysis-workspace/SKILL.md +14 -10
- package/corpus/templates/analytics/.agents/skills/bigquery/SKILL.md +15 -15
- package/corpus/templates/analytics/.agents/skills/cross-source-analysis/SKILL.md +1 -0
- package/corpus/templates/analytics/.agents/skills/dashboard-management/SKILL.md +38 -22
- package/corpus/templates/analytics/.agents/skills/data-programs/SKILL.md +114 -61
- package/corpus/templates/analytics/.agents/skills/data-querying/SKILL.md +1 -0
- package/corpus/templates/analytics/.agents/skills/gong/SKILL.md +7 -7
- package/corpus/templates/analytics/.agents/skills/hubspot/SKILL.md +1 -0
- package/corpus/templates/analytics/.agents/skills/prometheus/SKILL.md +1 -1
- package/corpus/templates/analytics/.builder/skills/bigquery/SKILL.md +17 -17
- package/corpus/templates/analytics/.builder/skills/gcloud/SKILL.md +5 -5
- package/corpus/templates/analytics/.builder/skills/github/SKILL.md +7 -7
- package/corpus/templates/analytics/.builder/skills/gong/SKILL.md +12 -12
- package/corpus/templates/analytics/.builder/skills/grafana/SKILL.md +7 -7
- package/corpus/templates/analytics/.builder/skills/sentry/SKILL.md +7 -7
- package/corpus/templates/analytics/.builder/skills/slack/SKILL.md +6 -6
- package/corpus/templates/analytics/.builder/skills/stripe/SKILL.md +7 -7
- package/corpus/templates/analytics/AGENTS.md +47 -2
- package/corpus/templates/analytics/actions/add-status-page-monitor.ts +36 -0
- package/corpus/templates/analytics/actions/capture-test-error.ts +33 -0
- package/corpus/templates/analytics/actions/delete-monitor.ts +24 -0
- package/corpus/templates/analytics/actions/delete-status-page.ts +23 -0
- package/corpus/templates/analytics/actions/get-error-issue.ts +36 -0
- package/corpus/templates/analytics/actions/get-monitor-stats.ts +55 -0
- package/corpus/templates/analytics/actions/get-monitor.ts +27 -0
- package/corpus/templates/analytics/actions/get-public-status-page.ts +41 -0
- package/corpus/templates/analytics/actions/get-status-page.ts +29 -0
- package/corpus/templates/analytics/actions/list-error-issues.ts +40 -0
- package/corpus/templates/analytics/actions/list-monitors.ts +21 -0
- package/corpus/templates/analytics/actions/list-status-pages.ts +21 -0
- package/corpus/templates/analytics/actions/match-error-issues.ts +51 -0
- package/corpus/templates/analytics/actions/navigate.ts +58 -4
- package/corpus/templates/analytics/actions/remove-status-page-monitor.ts +22 -0
- package/corpus/templates/analytics/actions/reorder-status-page-monitors.ts +25 -0
- package/corpus/templates/analytics/actions/resolve-error-issue.ts +38 -0
- package/corpus/templates/analytics/actions/run-monitor-check.ts +23 -0
- package/corpus/templates/analytics/actions/save-analysis.ts +1 -0
- package/corpus/templates/analytics/actions/save-monitor.ts +145 -0
- package/corpus/templates/analytics/actions/save-status-page.ts +47 -0
- package/corpus/templates/analytics/actions/view-screen.ts +212 -0
- package/corpus/templates/analytics/app/components/layout/Header.tsx +1 -0
- package/corpus/templates/analytics/app/components/layout/Layout.tsx +10 -1
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +134 -39
- package/corpus/templates/analytics/app/components/monitoring/PublicStatusView.tsx +351 -0
- package/corpus/templates/analytics/app/components/monitoring/ResponseTimeChart.tsx +174 -0
- package/corpus/templates/analytics/app/components/monitoring/UptimeStatCards.tsx +85 -0
- package/corpus/templates/analytics/app/components/monitoring/UptimeTimelineBars.tsx +106 -0
- package/corpus/templates/analytics/app/components/monitoring/chart-utils.ts +101 -0
- package/corpus/templates/analytics/app/components/monitoring/index.ts +28 -0
- package/corpus/templates/analytics/app/components/monitoring/types.ts +42 -0
- package/corpus/templates/analytics/app/hooks/use-navigation-state.ts +34 -0
- package/corpus/templates/analytics/app/i18n/zh-TW.ts +6 -0
- package/corpus/templates/analytics/app/i18n-data.ts +33 -0
- package/corpus/templates/analytics/app/pages/DataSources.tsx +28 -0
- package/corpus/templates/analytics/app/pages/Settings.tsx +77 -9
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +3 -3
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/dashboard-layout.ts +7 -0
- package/corpus/templates/analytics/app/pages/monitoring/ErrorsPanel.tsx +205 -0
- package/corpus/templates/analytics/app/pages/monitoring/MonitoringPage.tsx +100 -0
- package/corpus/templates/analytics/app/pages/monitoring/UptimePanel.tsx +475 -0
- package/corpus/templates/analytics/app/pages/monitoring/errors/IssueDetail.tsx +372 -0
- package/corpus/templates/analytics/app/pages/monitoring/errors/IssueList.tsx +360 -0
- package/corpus/templates/analytics/app/pages/monitoring/errors/Sparkline.tsx +55 -0
- package/corpus/templates/analytics/app/pages/monitoring/errors/i18n.ts +106 -0
- package/corpus/templates/analytics/app/pages/monitoring/errors/types.ts +75 -0
- package/corpus/templates/analytics/app/pages/monitoring/errors/utils.ts +132 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/MonitorDetail.tsx +535 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/MonitorFormPage.tsx +1026 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/MonitorList.tsx +311 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/i18n.ts +235 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/status-pages/StatusPageEditor.tsx +661 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/status-pages/StatusPagesView.tsx +355 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/status-pages/i18n.ts +106 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/status-pages/slug.ts +24 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/status-pages/types.ts +20 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/status-summary.ts +87 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/types.ts +161 -0
- package/corpus/templates/analytics/app/pages/monitoring/uptime/utils.ts +210 -0
- package/corpus/templates/analytics/app/pages/sessions/SessionDetailPage.tsx +76 -1
- package/corpus/templates/analytics/app/pages/sessions/SessionDevToolsPanel.tsx +74 -9
- package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +197 -20
- package/corpus/templates/analytics/app/root.tsx +33 -1
- package/corpus/templates/analytics/app/routes/monitoring._index.tsx +10 -0
- package/corpus/templates/analytics/app/routes/status.$slug.tsx +118 -0
- package/corpus/templates/analytics/changelog/2026-07-08-add-uptime-monitors-that-ping-your-urls-and-alert-you-when-t.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-analytics-chats-keep-large-data-dictionaries-compact-so-prov.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-create-public-status-pages-that-share-the-live-health-of-cho.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-dashboard-extension-panels-use-clearer-open-copy.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-error-capture.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-fixed-single-panel-dashboard-drags-so-they-no-longer-rewrite.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-jump-straight-from-an-error-in-a-session-recording-to-its-fu.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-monitor-detail-and-list-now-show-colorful-uptime-timelines-r.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-pinned-ask-chats-now-show-a-pin-icon-in-the-sidebar.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-publish-a-public-uptime-status-page-with-colorful-uptime-tim.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-sessions-now-hide-visitor-emails-in-demo-mode-and-show-clean.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-08-settings-are-cleaner-searchable-and-alerts-have-their-own-tab.md +5 -0
- package/corpus/templates/analytics/changelog/2026-07-08-sidebar-sections-stay-collapsed-until-opened.md +5 -0
- package/corpus/templates/analytics/changelog/2026-07-08-the-uptime-monitor-list-now-has-a-current-status-overview-wi.md +6 -0
- package/corpus/templates/analytics/docs/error-capture.md +172 -0
- package/corpus/templates/analytics/docs/uptime-monitoring.md +150 -0
- package/corpus/templates/analytics/server/db/schema-errors.ts +150 -0
- package/corpus/templates/analytics/server/db/schema-monitoring.ts +177 -0
- package/corpus/templates/analytics/server/db/schema.ts +6 -0
- package/corpus/templates/analytics/server/jobs/uptime-monitors.ts +123 -0
- package/corpus/templates/analytics/server/lib/agent-chat-plan-mode.ts +41 -0
- package/corpus/templates/analytics/server/lib/data-dictionary-context.ts +55 -12
- package/corpus/templates/analytics/server/lib/error-capture.ts +1331 -0
- package/corpus/templates/analytics/server/lib/first-party-analytics.ts +47 -1
- package/corpus/templates/analytics/server/lib/monitor-stats.ts +494 -0
- package/corpus/templates/analytics/server/lib/status-pages.ts +798 -0
- package/corpus/templates/analytics/server/lib/uptime-monitors.ts +1665 -0
- package/corpus/templates/analytics/server/plugins/agent-chat.ts +7 -37
- package/corpus/templates/analytics/server/plugins/auth.ts +11 -1
- package/corpus/templates/analytics/server/plugins/db.ts +408 -0
- package/corpus/templates/analytics/server/plugins/uptime-monitor-jobs.ts +63 -0
- package/corpus/templates/assets/app/routes/_index.tsx +1 -1
- package/corpus/templates/assets/app/routes/settings.tsx +22 -1
- package/corpus/templates/assets/changelog/2026-07-08-recent-drafts-keep-comfortable-side-padding.md +6 -0
- package/corpus/templates/assets/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/brain/app/routes/settings.tsx +43 -5
- package/corpus/templates/brain/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/calendar/app/pages/Settings.tsx +44 -6
- package/corpus/templates/calendar/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/chat/app/routes/settings.tsx +16 -1
- package/corpus/templates/chat/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/clips/actions/lib/audio-only-transcription.ts +79 -37
- package/corpus/templates/clips/app/components/player/player-controls.tsx +35 -0
- package/corpus/templates/clips/app/components/player/video-player.tsx +162 -18
- package/corpus/templates/clips/app/routes/_app.settings._index.tsx +63 -6
- package/corpus/templates/clips/app/routes/record.tsx +18 -1
- package/corpus/templates/clips/changelog/2026-07-07-shared-clips-start-playback-reliably-from-the-first-play-click.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-08-chrome-extension-camera-and-microphone-menus-now-show-which-.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-08-chrome-extension-copies-new-clip-links-after-saving.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-08-chrome-extension-recordings-now-continue-after-granting-came.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-08-mobile-shared-clips-now-have-loom-style-tap-and-skip-controls.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-08-recordings-and-uploads-copy-links-after-saving.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-08-settings-are-cleaner-searchable-and-collapse-s3-with-builder.md +5 -0
- package/corpus/templates/clips/changelog/2026-07-08-transcripts-are-more-reliable-for-longer-desktop-recordings-.md +6 -0
- package/corpus/templates/clips/chrome-extension/public/manifest.json +1 -0
- package/corpus/templates/clips/chrome-extension/src/background.ts +162 -13
- package/corpus/templates/clips/chrome-extension/src/content-script.ts +14 -0
- package/corpus/templates/clips/chrome-extension/src/offscreen.ts +36 -0
- package/corpus/templates/clips/chrome-extension/src/overlay.ts +99 -25
- package/corpus/templates/clips/chrome-extension/src/permission.ts +63 -14
- package/corpus/templates/clips/chrome-extension/src/popup.ts +123 -23
- package/corpus/templates/content/actions/_builder-cms-read-client.ts +47 -0
- package/corpus/templates/content/actions/_database-source-utils.ts +33 -4
- package/corpus/templates/content/actions/add-content-database-source-field-property.ts +214 -29
- package/corpus/templates/content/actions/attach-content-database-source.ts +3 -0
- package/corpus/templates/content/actions/change-content-database-source-role.ts +1 -0
- package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +42 -32
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +352 -81
- package/corpus/templates/content/app/components/editor/database/settings.tsx +49 -24
- package/corpus/templates/content/app/routes/_app.settings.tsx +19 -1
- package/corpus/templates/content/changelog/2026-07-07-builder-source-tag-fields-now-import-as-multi-select.md +6 -0
- package/corpus/templates/content/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/content/shared/api.ts +3 -0
- package/corpus/templates/content/shared/properties.ts +42 -0
- package/corpus/templates/design/AGENTS.md +9 -0
- package/corpus/templates/design/actions/generate-design.ts +3 -0
- package/corpus/templates/design/actions/get-design-system.ts +147 -1
- package/corpus/templates/design/actions/request-localhost-write-consent.ts +141 -0
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +13 -19
- package/corpus/templates/design/app/routes/settings.tsx +16 -1
- package/corpus/templates/design/changelog/2026-07-08-design-generation-now-follows-hydrated-builder-design-system.md +6 -0
- package/corpus/templates/design/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/design/server/lib/verify-write-grant.ts +4 -2
- package/corpus/templates/dispatch/app/routes/settings.tsx +23 -2
- package/corpus/templates/dispatch/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/forms/app/routes/_app.settings.tsx +16 -1
- package/corpus/templates/forms/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/macros/app/routes/settings.tsx +16 -1
- package/corpus/templates/macros/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/mail/app/components/settings/GmailFiltersSection.tsx +1 -1
- package/corpus/templates/mail/app/components/settings/SnippetsSection.tsx +1 -1
- package/corpus/templates/mail/app/pages/SettingsPage.tsx +123 -105
- package/corpus/templates/mail/changelog/2026-07-08-settings-redesigned-with-a-consistent-searchable-layout.md +5 -0
- package/corpus/templates/plan/app/routes/settings.tsx +23 -2
- package/corpus/templates/plan/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/corpus/templates/slides/actions/add-slide.ts +1 -0
- package/corpus/templates/slides/actions/get-design-system.ts +147 -1
- package/corpus/templates/slides/app/pages/Index.tsx +46 -1
- package/corpus/templates/slides/app/routes/settings.tsx +16 -1
- package/corpus/templates/slides/changelog/2026-07-08-deck-generation-now-follows-hydrated-builder-design-system-g.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-08-settings-are-cleaner-and-searchable.md +5 -0
- package/dist/agent/run-ownership.d.ts +6 -0
- package/dist/agent/run-ownership.d.ts.map +1 -1
- package/dist/agent/run-ownership.js +11 -1
- package/dist/agent/run-ownership.js.map +1 -1
- package/dist/changelog/parse.d.ts +7 -0
- package/dist/changelog/parse.d.ts.map +1 -1
- package/dist/changelog/parse.js +64 -0
- package/dist/changelog/parse.js.map +1 -1
- package/dist/chat-threads/schema.d.ts +445 -0
- package/dist/chat-threads/schema.d.ts.map +1 -0
- package/dist/chat-threads/schema.js +39 -0
- package/dist/chat-threads/schema.js.map +1 -0
- package/dist/chat-threads/store.d.ts +12 -0
- package/dist/chat-threads/store.d.ts.map +1 -1
- package/dist/chat-threads/store.js +99 -10
- package/dist/chat-threads/store.js.map +1 -1
- package/dist/cli/design-connect.d.ts.map +1 -1
- package/dist/cli/design-connect.js +40 -10
- package/dist/cli/design-connect.js.map +1 -1
- package/dist/cli/workspace-dev.d.ts.map +1 -1
- package/dist/cli/workspace-dev.js +20 -5
- package/dist/cli/workspace-dev.js.map +1 -1
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +35 -7
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +105 -183
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/analytics-session.d.ts +3 -0
- package/dist/client/analytics-session.d.ts.map +1 -0
- package/dist/client/analytics-session.js +66 -0
- package/dist/client/analytics-session.js.map +1 -0
- package/dist/client/analytics.d.ts +32 -0
- package/dist/client/analytics.d.ts.map +1 -1
- package/dist/client/analytics.js +116 -46
- package/dist/client/analytics.js.map +1 -1
- package/dist/client/chat/message-components.d.ts +2 -1
- package/dist/client/chat/message-components.d.ts.map +1 -1
- package/dist/client/chat/message-components.js +16 -6
- package/dist/client/chat/message-components.js.map +1 -1
- package/dist/client/components/ui/message-scroller.d.ts +16 -0
- package/dist/client/components/ui/message-scroller.d.ts.map +1 -0
- package/dist/client/components/ui/message-scroller.js +25 -0
- package/dist/client/components/ui/message-scroller.js.map +1 -0
- package/dist/client/conversation/AgentConversation.d.ts +1 -1
- package/dist/client/conversation/AgentConversation.d.ts.map +1 -1
- package/dist/client/conversation/AgentConversation.js +3 -8
- package/dist/client/conversation/AgentConversation.js.map +1 -1
- package/dist/client/error-capture.d.ts +99 -0
- package/dist/client/error-capture.d.ts.map +1 -0
- package/dist/client/error-capture.js +437 -0
- package/dist/client/error-capture.js.map +1 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/session-replay.d.ts +22 -0
- package/dist/client/session-replay.d.ts.map +1 -1
- package/dist/client/session-replay.js +45 -4
- 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 +100 -5
- package/dist/client/settings/SettingsPanel.js.map +1 -1
- package/dist/client/settings/SettingsTabsPage.d.ts +49 -1
- package/dist/client/settings/SettingsTabsPage.d.ts.map +1 -1
- package/dist/client/settings/SettingsTabsPage.js +131 -19
- package/dist/client/settings/SettingsTabsPage.js.map +1 -1
- package/dist/client/settings/index.d.ts +1 -1
- package/dist/client/settings/index.d.ts.map +1 -1
- package/dist/client/settings/index.js.map +1 -1
- package/dist/client/sharing/ShareButton.d.ts.map +1 -1
- package/dist/client/sharing/ShareButton.js +13 -8
- 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 +12 -7
- package/dist/client/sharing/ShareDialog.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/mcp/builtin-tools.d.ts.map +1 -1
- package/dist/mcp/builtin-tools.js +21 -2
- package/dist/mcp/builtin-tools.js.map +1 -1
- package/dist/observability/routes.d.ts +1 -1
- package/dist/org/schema.d.ts +15 -15
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +109 -73
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +28 -16
- package/dist/server/onboarding-html.js.map +1 -1
- package/dist/sharing/actions/list-resource-shares.js +30 -1
- package/dist/sharing/actions/list-resource-shares.js.map +1 -1
- package/dist/sharing/actions/share-resource.js +6 -0
- package/dist/sharing/actions/share-resource.js.map +1 -1
- package/dist/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +4 -2
- package/dist/templates/workspace-core/.agents/skills/changelog/SKILL.md +9 -6
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +192 -30
- package/dist/vite/client.js.map +1 -1
- package/docs/content/toolkit-settings.mdx +56 -3
- package/package.json +2 -1
- package/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +4 -2
- package/src/templates/workspace-core/.agents/skills/changelog/SKILL.md +9 -6
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { useActionQuery } from "@agent-native/core/client";
|
|
2
|
+
import {
|
|
3
|
+
IconArrowLeft,
|
|
4
|
+
IconArrowBackUp,
|
|
5
|
+
IconCircleCheck,
|
|
6
|
+
IconEyeOff,
|
|
7
|
+
IconPlayerPlay,
|
|
8
|
+
} from "@tabler/icons-react";
|
|
9
|
+
import { Link } from "react-router";
|
|
10
|
+
|
|
11
|
+
import { Button } from "@/components/ui/button";
|
|
12
|
+
import { Card, CardContent } from "@/components/ui/card";
|
|
13
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
14
|
+
import { cn } from "@/lib/utils";
|
|
15
|
+
|
|
16
|
+
import { fmt, useErrorsT } from "./i18n";
|
|
17
|
+
import type {
|
|
18
|
+
ErrorEventDetail,
|
|
19
|
+
ErrorIssueDetail,
|
|
20
|
+
ErrorIssueSummary,
|
|
21
|
+
IssueStatus,
|
|
22
|
+
ParsedStackFrame,
|
|
23
|
+
} from "./types";
|
|
24
|
+
import {
|
|
25
|
+
formatDateTime,
|
|
26
|
+
formatNumber,
|
|
27
|
+
formatRelativeTime,
|
|
28
|
+
levelBadgeClass,
|
|
29
|
+
shortFrameFile,
|
|
30
|
+
statusBadgeClass,
|
|
31
|
+
useStatusLabel,
|
|
32
|
+
} from "./utils";
|
|
33
|
+
|
|
34
|
+
export function IssueDetail({
|
|
35
|
+
issueId,
|
|
36
|
+
fallback,
|
|
37
|
+
onBack,
|
|
38
|
+
onSetStatus,
|
|
39
|
+
pendingStatus,
|
|
40
|
+
}: {
|
|
41
|
+
issueId: string;
|
|
42
|
+
fallback?: ErrorIssueSummary;
|
|
43
|
+
onBack: () => void;
|
|
44
|
+
onSetStatus: (status: IssueStatus) => void;
|
|
45
|
+
pendingStatus: boolean;
|
|
46
|
+
}) {
|
|
47
|
+
const t = useErrorsT();
|
|
48
|
+
const statusLabel = useStatusLabel();
|
|
49
|
+
|
|
50
|
+
const { data, isLoading, error } = useActionQuery<ErrorIssueDetail>(
|
|
51
|
+
"get-error-issue",
|
|
52
|
+
{ id: issueId },
|
|
53
|
+
{ staleTime: 10_000 },
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const issue = data?.issue ?? fallback ?? null;
|
|
57
|
+
const events = data?.events ?? [];
|
|
58
|
+
const latest = events[0];
|
|
59
|
+
const replayPath =
|
|
60
|
+
latest?.sessionRecordingPath ?? issue?.lastSessionRecordingPath ?? null;
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<div className="space-y-5">
|
|
64
|
+
<div className="flex flex-col gap-3">
|
|
65
|
+
<button
|
|
66
|
+
type="button"
|
|
67
|
+
onClick={onBack}
|
|
68
|
+
className="inline-flex w-fit items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground"
|
|
69
|
+
>
|
|
70
|
+
<IconArrowLeft className="size-4" />
|
|
71
|
+
{t.back}
|
|
72
|
+
</button>
|
|
73
|
+
|
|
74
|
+
{error ? (
|
|
75
|
+
<Card>
|
|
76
|
+
<CardContent className="p-6 text-sm text-destructive">
|
|
77
|
+
{fmt(t.detailLoadFailed, { message: error.message })}
|
|
78
|
+
</CardContent>
|
|
79
|
+
</Card>
|
|
80
|
+
) : !issue ? (
|
|
81
|
+
<HeaderSkeleton />
|
|
82
|
+
) : (
|
|
83
|
+
<div className="flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between">
|
|
84
|
+
<div className="min-w-0 space-y-1.5">
|
|
85
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
86
|
+
<span
|
|
87
|
+
className={cn(
|
|
88
|
+
"inline-flex items-center rounded border px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide",
|
|
89
|
+
levelBadgeClass(issue.level),
|
|
90
|
+
)}
|
|
91
|
+
>
|
|
92
|
+
{issue.type}
|
|
93
|
+
</span>
|
|
94
|
+
<span
|
|
95
|
+
className={cn(
|
|
96
|
+
"inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] font-medium",
|
|
97
|
+
statusBadgeClass(issue.status),
|
|
98
|
+
)}
|
|
99
|
+
>
|
|
100
|
+
{statusLabel(issue.status)}
|
|
101
|
+
</span>
|
|
102
|
+
</div>
|
|
103
|
+
<h2 className="truncate text-lg font-semibold text-foreground">
|
|
104
|
+
{issue.title}
|
|
105
|
+
</h2>
|
|
106
|
+
{issue.culprit ? (
|
|
107
|
+
<p className="truncate font-mono text-xs text-muted-foreground">
|
|
108
|
+
{issue.culprit}
|
|
109
|
+
</p>
|
|
110
|
+
) : null}
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<div className="flex shrink-0 flex-wrap items-center gap-2">
|
|
114
|
+
{replayPath ? (
|
|
115
|
+
<Button asChild size="sm">
|
|
116
|
+
<Link to={replayPath}>
|
|
117
|
+
<IconPlayerPlay className="size-3.5 fill-current" />
|
|
118
|
+
{t.watchReplay}
|
|
119
|
+
</Link>
|
|
120
|
+
</Button>
|
|
121
|
+
) : null}
|
|
122
|
+
{issue.status !== "resolved" ? (
|
|
123
|
+
<Button
|
|
124
|
+
variant="outline"
|
|
125
|
+
size="sm"
|
|
126
|
+
disabled={pendingStatus}
|
|
127
|
+
onClick={() => onSetStatus("resolved")}
|
|
128
|
+
>
|
|
129
|
+
<IconCircleCheck className="size-3.5" />
|
|
130
|
+
{t.resolve}
|
|
131
|
+
</Button>
|
|
132
|
+
) : null}
|
|
133
|
+
{issue.status !== "unresolved" ? (
|
|
134
|
+
<Button
|
|
135
|
+
variant="outline"
|
|
136
|
+
size="sm"
|
|
137
|
+
disabled={pendingStatus}
|
|
138
|
+
onClick={() => onSetStatus("unresolved")}
|
|
139
|
+
>
|
|
140
|
+
<IconArrowBackUp className="size-3.5" />
|
|
141
|
+
{t.reopen}
|
|
142
|
+
</Button>
|
|
143
|
+
) : null}
|
|
144
|
+
{issue.status !== "ignored" ? (
|
|
145
|
+
<Button
|
|
146
|
+
variant="ghost"
|
|
147
|
+
size="sm"
|
|
148
|
+
disabled={pendingStatus}
|
|
149
|
+
onClick={() => onSetStatus("ignored")}
|
|
150
|
+
>
|
|
151
|
+
<IconEyeOff className="size-3.5" />
|
|
152
|
+
{t.ignore}
|
|
153
|
+
</Button>
|
|
154
|
+
) : null}
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
)}
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
{issue ? <OverviewGrid issue={issue} latest={latest} /> : null}
|
|
161
|
+
|
|
162
|
+
{isLoading && !latest ? (
|
|
163
|
+
<Card>
|
|
164
|
+
<CardContent className="space-y-3 p-6">
|
|
165
|
+
<Skeleton className="h-4 w-40" />
|
|
166
|
+
<Skeleton className="h-24 w-full" />
|
|
167
|
+
</CardContent>
|
|
168
|
+
</Card>
|
|
169
|
+
) : (
|
|
170
|
+
<>
|
|
171
|
+
<StackTraceCard event={latest} />
|
|
172
|
+
<BreadcrumbsCard event={latest} />
|
|
173
|
+
<OccurrencesCard events={events} />
|
|
174
|
+
</>
|
|
175
|
+
)}
|
|
176
|
+
</div>
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function OverviewGrid({
|
|
181
|
+
issue,
|
|
182
|
+
latest,
|
|
183
|
+
}: {
|
|
184
|
+
issue: ErrorIssueSummary;
|
|
185
|
+
latest?: ErrorEventDetail;
|
|
186
|
+
}) {
|
|
187
|
+
const t = useErrorsT();
|
|
188
|
+
const items: Array<{ label: string; value: string }> = [
|
|
189
|
+
{ label: t.metaFirstSeen, value: formatRelativeTime(issue.firstSeenAt) },
|
|
190
|
+
{ label: t.metaLastSeen, value: formatRelativeTime(issue.lastSeenAt) },
|
|
191
|
+
{ label: t.metaEvents, value: formatNumber(issue.eventCount) },
|
|
192
|
+
{ label: t.metaUsers, value: formatNumber(issue.usersAffected) },
|
|
193
|
+
];
|
|
194
|
+
const environment = latest?.environment;
|
|
195
|
+
const release = latest?.release;
|
|
196
|
+
if (environment) items.push({ label: t.metaEnvironment, value: environment });
|
|
197
|
+
if (release) items.push({ label: t.metaRelease, value: release });
|
|
198
|
+
|
|
199
|
+
return (
|
|
200
|
+
<Card>
|
|
201
|
+
<CardContent className="grid grid-cols-2 gap-4 p-4 sm:grid-cols-4">
|
|
202
|
+
{items.map((item) => (
|
|
203
|
+
<div key={item.label} className="min-w-0">
|
|
204
|
+
<div className="text-[11px] font-semibold uppercase tracking-wide text-muted-foreground">
|
|
205
|
+
{item.label}
|
|
206
|
+
</div>
|
|
207
|
+
<div className="mt-0.5 truncate text-sm font-medium text-foreground">
|
|
208
|
+
{item.value}
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
))}
|
|
212
|
+
</CardContent>
|
|
213
|
+
</Card>
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function StackTraceCard({ event }: { event?: ErrorEventDetail }) {
|
|
218
|
+
const t = useErrorsT();
|
|
219
|
+
const frames = event?.stack ?? [];
|
|
220
|
+
|
|
221
|
+
return (
|
|
222
|
+
<Card>
|
|
223
|
+
<CardContent className="p-0">
|
|
224
|
+
<div className="border-b px-4 py-3 text-sm font-medium">
|
|
225
|
+
{t.stackTrace}
|
|
226
|
+
</div>
|
|
227
|
+
{frames.length === 0 ? (
|
|
228
|
+
<p className="p-4 text-sm text-muted-foreground">{t.noStack}</p>
|
|
229
|
+
) : (
|
|
230
|
+
<ol className="divide-y divide-border/40 font-mono text-xs">
|
|
231
|
+
{frames.map((frame, index) => (
|
|
232
|
+
<StackFrameRow key={index} frame={frame} />
|
|
233
|
+
))}
|
|
234
|
+
</ol>
|
|
235
|
+
)}
|
|
236
|
+
</CardContent>
|
|
237
|
+
</Card>
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function StackFrameRow({ frame }: { frame: ParsedStackFrame }) {
|
|
242
|
+
const t = useErrorsT();
|
|
243
|
+
return (
|
|
244
|
+
<li
|
|
245
|
+
className={cn(
|
|
246
|
+
"flex flex-wrap items-baseline gap-x-2 px-4 py-2",
|
|
247
|
+
frame.inApp ? "bg-transparent" : "bg-muted/20 text-muted-foreground",
|
|
248
|
+
)}
|
|
249
|
+
>
|
|
250
|
+
<span
|
|
251
|
+
className={cn(
|
|
252
|
+
"font-semibold",
|
|
253
|
+
frame.inApp ? "text-foreground" : "text-muted-foreground",
|
|
254
|
+
)}
|
|
255
|
+
>
|
|
256
|
+
{frame.function || "<anonymous>"}
|
|
257
|
+
</span>
|
|
258
|
+
<span className="text-muted-foreground">
|
|
259
|
+
{shortFrameFile(frame.file)}
|
|
260
|
+
{frame.lineno != null ? `:${frame.lineno}` : ""}
|
|
261
|
+
{frame.colno != null ? `:${frame.colno}` : ""}
|
|
262
|
+
</span>
|
|
263
|
+
<span
|
|
264
|
+
className={cn(
|
|
265
|
+
"ms-auto rounded px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide",
|
|
266
|
+
frame.inApp
|
|
267
|
+
? "bg-primary/10 text-primary"
|
|
268
|
+
: "bg-muted text-muted-foreground",
|
|
269
|
+
)}
|
|
270
|
+
>
|
|
271
|
+
{frame.inApp ? t.inApp : t.vendor}
|
|
272
|
+
</span>
|
|
273
|
+
</li>
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
function BreadcrumbsCard({ event }: { event?: ErrorEventDetail }) {
|
|
278
|
+
const t = useErrorsT();
|
|
279
|
+
const crumbs = event?.breadcrumbs ?? [];
|
|
280
|
+
|
|
281
|
+
return (
|
|
282
|
+
<Card>
|
|
283
|
+
<CardContent className="p-0">
|
|
284
|
+
<div className="border-b px-4 py-3 text-sm font-medium">
|
|
285
|
+
{t.breadcrumbs}
|
|
286
|
+
</div>
|
|
287
|
+
{crumbs.length === 0 ? (
|
|
288
|
+
<p className="p-4 text-sm text-muted-foreground">{t.noBreadcrumbs}</p>
|
|
289
|
+
) : (
|
|
290
|
+
<ol className="divide-y divide-border/40">
|
|
291
|
+
{crumbs.map((crumb, index) => (
|
|
292
|
+
<li
|
|
293
|
+
key={index}
|
|
294
|
+
className="flex items-baseline gap-3 px-4 py-2 text-xs"
|
|
295
|
+
>
|
|
296
|
+
<span className="shrink-0 rounded bg-muted px-1.5 py-0.5 font-medium text-muted-foreground">
|
|
297
|
+
{crumb.category || "log"}
|
|
298
|
+
</span>
|
|
299
|
+
<span className="min-w-0 flex-1 truncate text-foreground">
|
|
300
|
+
{crumb.message || ""}
|
|
301
|
+
</span>
|
|
302
|
+
<span className="shrink-0 text-muted-foreground">
|
|
303
|
+
{formatRelativeTime(crumb.timestamp)}
|
|
304
|
+
</span>
|
|
305
|
+
</li>
|
|
306
|
+
))}
|
|
307
|
+
</ol>
|
|
308
|
+
)}
|
|
309
|
+
</CardContent>
|
|
310
|
+
</Card>
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function OccurrencesCard({ events }: { events: ErrorEventDetail[] }) {
|
|
315
|
+
const t = useErrorsT();
|
|
316
|
+
|
|
317
|
+
return (
|
|
318
|
+
<Card>
|
|
319
|
+
<CardContent className="p-0">
|
|
320
|
+
<div className="border-b px-4 py-3 text-sm font-medium">
|
|
321
|
+
{t.occurrences}
|
|
322
|
+
</div>
|
|
323
|
+
{events.length === 0 ? (
|
|
324
|
+
<p className="p-4 text-sm text-muted-foreground">{t.noOccurrences}</p>
|
|
325
|
+
) : (
|
|
326
|
+
<ul className="divide-y divide-border/40">
|
|
327
|
+
{events.map((event) => (
|
|
328
|
+
<li
|
|
329
|
+
key={event.id}
|
|
330
|
+
className="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-2.5 text-xs"
|
|
331
|
+
>
|
|
332
|
+
<span className="w-32 shrink-0 text-muted-foreground">
|
|
333
|
+
{formatDateTime(event.occurredAt)}
|
|
334
|
+
</span>
|
|
335
|
+
<span className="min-w-0 flex-1 truncate text-foreground">
|
|
336
|
+
{event.userKey ||
|
|
337
|
+
event.userId ||
|
|
338
|
+
event.anonymousId ||
|
|
339
|
+
t.anonymous}
|
|
340
|
+
</span>
|
|
341
|
+
{event.url ? (
|
|
342
|
+
<span className="hidden min-w-0 max-w-[40%] truncate font-mono text-muted-foreground md:block">
|
|
343
|
+
{event.url}
|
|
344
|
+
</span>
|
|
345
|
+
) : null}
|
|
346
|
+
{event.sessionRecordingPath ? (
|
|
347
|
+
<Link
|
|
348
|
+
to={event.sessionRecordingPath}
|
|
349
|
+
className="inline-flex shrink-0 items-center gap-1 font-medium text-primary hover:underline"
|
|
350
|
+
>
|
|
351
|
+
<IconPlayerPlay className="size-3 fill-current" />
|
|
352
|
+
{t.watchReplay}
|
|
353
|
+
</Link>
|
|
354
|
+
) : null}
|
|
355
|
+
</li>
|
|
356
|
+
))}
|
|
357
|
+
</ul>
|
|
358
|
+
)}
|
|
359
|
+
</CardContent>
|
|
360
|
+
</Card>
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function HeaderSkeleton() {
|
|
365
|
+
return (
|
|
366
|
+
<div className="space-y-2">
|
|
367
|
+
<Skeleton className="h-5 w-24" />
|
|
368
|
+
<Skeleton className="h-6 w-2/3" />
|
|
369
|
+
<Skeleton className="h-4 w-1/3" />
|
|
370
|
+
</div>
|
|
371
|
+
);
|
|
372
|
+
}
|