@agent-native/core 0.130.2 → 0.131.3
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 +79 -0
- package/corpus/core/docs/content/agent-surfaces.mdx +4 -4
- package/corpus/core/docs/content/automations.mdx +61 -12
- package/corpus/core/docs/content/deployment.mdx +11 -4
- package/corpus/core/docs/content/extensions.mdx +39 -33
- package/corpus/core/docs/content/recurring-jobs.mdx +41 -19
- package/corpus/core/docs/content/template-dispatch-operations.mdx +19 -7
- package/corpus/core/package.json +3 -1
- package/corpus/core/src/a2a/types.ts +6 -0
- package/corpus/core/src/action.ts +68 -0
- package/corpus/core/src/agent/engine/builder-engine.ts +8 -4
- package/corpus/core/src/agent/production-agent.ts +175 -100
- package/corpus/core/src/agent/tool-search.ts +36 -0
- package/corpus/core/src/automations/service.ts +506 -0
- package/corpus/core/src/browser-context/index.ts +392 -0
- package/corpus/core/src/client/AgentPanel.tsx +2 -1
- package/corpus/core/src/client/FeedbackButton.tsx +37 -4
- package/corpus/core/src/client/MultiTabAssistantChat.tsx +21 -0
- package/corpus/core/src/client/agent-chat.ts +31 -3
- package/corpus/core/src/client/agent-page/AgentJobsTab.tsx +438 -310
- package/corpus/core/src/client/agent-page/AgentTabsPage.tsx +4 -4
- package/corpus/core/src/client/agent-page/use-jobs.ts +7 -0
- package/corpus/core/src/client/analytics-session.ts +13 -0
- package/corpus/core/src/client/extensions/ExtensionViewer.tsx +67 -0
- package/corpus/core/src/client/settings/AutomationsSection.tsx +27 -499
- package/corpus/core/src/client/settings/SettingsPanel.tsx +32 -11
- package/corpus/core/src/client/settings/index.ts +2 -0
- package/corpus/core/src/client/use-agent-chat.ts +35 -3
- package/corpus/core/src/client/use-chat-threads.ts +8 -25
- package/corpus/core/src/deploy/build.ts +2 -0
- package/corpus/core/src/deploy/workspace-deploy.ts +2 -0
- package/corpus/core/src/extensions/actions.ts +115 -3
- package/corpus/core/src/extensions/fetch-tool.ts +11 -0
- package/corpus/core/src/extensions/routes.ts +16 -1
- package/corpus/core/src/extensions/web-content.ts +96 -1
- package/corpus/core/src/integrations/computer-supervision.ts +33 -1
- package/corpus/core/src/integrations/index.ts +6 -0
- package/corpus/core/src/integrations/integration-durable-dispatch-config.ts +10 -0
- package/corpus/core/src/integrations/integration-durable-dispatch.ts +4 -0
- package/corpus/core/src/integrations/plugin.ts +94 -41
- package/corpus/core/src/integrations/remote-browser-actions.ts +621 -0
- package/corpus/core/src/jobs/actions/list-recurring-jobs.ts +5 -7
- package/corpus/core/src/jobs/actions/manage-recurring-job.ts +3 -7
- package/corpus/core/src/jobs/background-automation-runner.ts +437 -0
- package/corpus/core/src/jobs/frontmatter.ts +308 -0
- package/corpus/core/src/jobs/scheduler.ts +89 -598
- package/corpus/core/src/jobs/tools.ts +22 -3
- package/corpus/core/src/localization/default-messages.ts +45 -45
- package/corpus/core/src/mcp-client/index.ts +6 -0
- package/corpus/core/src/notifications/actions.ts +5 -0
- package/corpus/core/src/progress/actions.ts +5 -0
- package/corpus/core/src/provider-api/actions/github-repo-files.ts +11 -0
- package/corpus/core/src/provider-api/actions/provider-api.ts +13 -0
- package/corpus/core/src/server/action-discovery.ts +7 -0
- package/corpus/core/src/server/agent-capabilities.ts +43 -8
- package/corpus/core/src/server/agent-chat/action-filters-a2a.ts +63 -1
- package/corpus/core/src/server/agent-chat/browser-team-tools.ts +126 -3
- package/corpus/core/src/server/agent-chat/framework-prompts.ts +7 -11
- package/corpus/core/src/server/agent-chat/plugin-options.ts +3 -3
- package/corpus/core/src/server/agent-chat/script-entries.ts +52 -1
- package/corpus/core/src/server/agent-chat-plugin.ts +25 -5
- package/corpus/core/src/server/attribution.ts +22 -0
- package/corpus/core/src/server/auth.ts +20 -6
- package/corpus/core/src/server/better-auth-instance.ts +10 -2
- package/corpus/core/src/server/core-routes-plugin.ts +10 -1
- package/corpus/core/src/server/csrf.ts +25 -0
- package/corpus/core/src/server/google-oauth.ts +21 -1
- package/corpus/core/src/server/onboarding-html.ts +18 -0
- package/corpus/core/src/server/prompts/framework-core-compact.ts +3 -3
- package/corpus/core/src/server/prompts/framework-core.ts +3 -3
- package/corpus/core/src/server/prompts/shared-rules.ts +3 -3
- package/corpus/core/src/settings/index.ts +1 -0
- package/corpus/core/src/shared/analytics-anonymous-id.ts +35 -0
- package/corpus/core/src/templates/default/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/core/src/templates/default/app/i18n/ar-SA.ts +26 -0
- package/corpus/core/src/templates/default/app/i18n/de-DE.ts +28 -0
- package/corpus/core/src/templates/default/app/i18n/en-US.ts +27 -0
- package/corpus/core/src/templates/default/app/i18n/es-ES.ts +28 -0
- package/corpus/core/src/templates/default/app/i18n/fr-FR.ts +28 -0
- package/corpus/core/src/templates/default/app/i18n/hi-IN.ts +25 -0
- package/corpus/core/src/templates/default/app/i18n/ja-JP.ts +27 -0
- package/corpus/core/src/templates/default/app/i18n/ko-KR.ts +27 -0
- package/corpus/core/src/templates/default/app/i18n/pt-BR.ts +27 -0
- package/corpus/core/src/templates/default/app/i18n/zh-CN.ts +24 -0
- package/corpus/core/src/templates/default/app/i18n/zh-TW.ts +24 -0
- package/corpus/core/src/templates/headless/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-page/SKILL.md +10 -7
- package/corpus/core/src/templates/workspace-core/.agents/skills/automations/SKILL.md +53 -8
- package/corpus/core/src/templates/workspace-core/.agents/skills/browser-sessions/SKILL.md +131 -0
- package/corpus/core/src/templates/workspace-core/.agents/skills/extension-points/SKILL.md +13 -4
- package/corpus/core/src/templates/workspace-core/.agents/skills/extensions/SKILL.md +23 -15
- package/corpus/core/src/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +33 -18
- package/corpus/core/src/tracking/providers.ts +1 -0
- package/corpus/core/src/tracking/registry.ts +2 -1
- package/corpus/core/src/tracking/types.ts +1 -0
- package/corpus/core/src/triggers/actions/list-automations.ts +43 -44
- package/corpus/core/src/triggers/actions/manage-automation.ts +17 -48
- package/corpus/core/src/triggers/actions.ts +218 -127
- package/corpus/core/src/triggers/dispatcher.ts +181 -367
- package/corpus/core/src/triggers/routes.ts +84 -27
- package/corpus/core/src/triggers/types.ts +9 -23
- package/corpus/templates/analytics/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/analytics/AGENTS.md +5 -0
- package/corpus/templates/analytics/actions/hubspot-deals.ts +1 -0
- package/corpus/templates/analytics/actions/hubspot-records.ts +1 -0
- package/corpus/templates/analytics/actions/install-dashboard-template.ts +13 -4
- package/corpus/templates/analytics/actions/rename-dashboard.ts +8 -3
- package/corpus/templates/analytics/actions/restore-dashboard-revision.ts +8 -3
- package/corpus/templates/analytics/actions/update-dashboard.ts +22 -5
- package/corpus/templates/analytics/app/components/dashboard/DashboardPanelSkeleton.tsx +7 -1
- package/corpus/templates/analytics/app/components/layout/CommandPalette.tsx +1 -82
- package/corpus/templates/analytics/app/components/layout/NewDashboardDialog.tsx +4 -4
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +23 -13
- package/corpus/templates/analytics/app/global.css +21 -0
- package/corpus/templates/analytics/app/i18n-data.ts +165 -101
- package/corpus/templates/analytics/app/lib/custom-block-promotion.ts +62 -0
- package/corpus/templates/analytics/app/pages/adhoc/explorer-dashboard/index.tsx +17 -2
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/PanelEditorDialog.tsx +3 -1
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +77 -12
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/dashboard-save-queue.ts +34 -0
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/index.tsx +42 -26
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/types.ts +15 -0
- package/corpus/templates/analytics/app/pages/analyses/AnalysisDetail.tsx +1 -1
- package/corpus/templates/analytics/changelog/2026-07-29-chat-history-now-closes-smoothly-and-stays-ready-when-you-re.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-chat-history-stays-visible-when-you-return-to-the-dashboard.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-custom-dashboard-blocks-now-identify-one-off-agent-patches-a.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-dashboard-chart-deletions-now-save-in-order-so-removed-rows-.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-dashboard-chart-loaders-are-easier-to-see-and-animate-more-s.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-plan-mode-can-now-query-connected-analytics-sources-while-ke.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-plan-mode-can-use-clips-as-read-only-prompt-context.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/analytics/changelog/2026-07-29-signup-entry-pages-now-show-the-first-page-viewed-before-eac.md +6 -0
- package/corpus/templates/analytics/seeds/dashboards/agent-native-templates-first-party.json +26 -1
- package/corpus/templates/analytics/server/lib/agent-chat-plan-mode.ts +0 -33
- package/corpus/templates/analytics/server/lib/analytics-connector-catalog.ts +2 -0
- package/corpus/templates/analytics/server/lib/canonical-first-party-dashboard-repair.ts +13 -3
- package/corpus/templates/analytics/server/lib/dashboard-catalog.ts +9 -1
- package/corpus/templates/analytics/server/lib/first-party-analytics.ts +44 -1
- package/corpus/templates/analytics/server/lib/first-party-metric-catalog.ts +96 -16
- package/corpus/templates/analytics/server/plugins/agent-chat.ts +18 -27
- package/corpus/templates/analytics/server/plugins/core-routes.ts +1 -0
- package/corpus/templates/assets/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/assets/app/components/layout/Sidebar.tsx +4 -8
- package/corpus/templates/assets/changelog/2026-07-29-chat-history-now-closes-smoothly-and-stays-ready-when-you-re.md +6 -0
- package/corpus/templates/assets/changelog/2026-07-29-chat-history-stays-visible-when-you-return-to-the-workspace.md +6 -0
- package/corpus/templates/assets/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/brain/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/brain/app/components/layout/Sidebar.tsx +3 -7
- package/corpus/templates/brain/app/root.tsx +0 -3
- package/corpus/templates/brain/changelog/2026-07-29-chat-history-now-closes-smoothly-and-stays-ready-when-you-re.md +6 -0
- package/corpus/templates/brain/changelog/2026-07-29-chat-history-stays-visible-when-you-return-to-ask-brain.md +6 -0
- package/corpus/templates/brain/changelog/2026-07-29-extensions-are-no-longer-shown-as-a-default-command-menu-des.md +6 -0
- package/corpus/templates/brain/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/calendar/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/calendar/.agents/skills/event-management/SKILL.md +25 -5
- package/corpus/templates/calendar/AGENTS.md +5 -0
- package/corpus/templates/calendar/actions/create-event.ts +43 -13
- package/corpus/templates/calendar/actions/event-action-helpers.ts +131 -1
- package/corpus/templates/calendar/actions/get-event.ts +1 -0
- package/corpus/templates/calendar/actions/manage-event-draft.ts +65 -2
- package/corpus/templates/calendar/app/components/calendar/CreateEventDialog.tsx +438 -258
- package/corpus/templates/calendar/app/components/calendar/DayView.tsx +19 -3
- package/corpus/templates/calendar/app/components/calendar/EventDetailPanel.tsx +7 -3
- package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +14 -19
- package/corpus/templates/calendar/app/components/calendar/MonthView.tsx +24 -0
- package/corpus/templates/calendar/app/components/calendar/WeekView.tsx +15 -2
- package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +1 -5
- package/corpus/templates/calendar/app/hooks/use-events.ts +51 -5
- package/corpus/templates/calendar/app/i18n-data.ts +50 -0
- package/corpus/templates/calendar/app/lib/all-day-layout.ts +9 -2
- package/corpus/templates/calendar/app/lib/event-form-initialization.ts +4 -8
- package/corpus/templates/calendar/app/lib/event-form-utils.ts +43 -8
- package/corpus/templates/calendar/app/lib/location-suggestions.ts +36 -0
- package/corpus/templates/calendar/app/lib/out-of-office.ts +87 -1
- package/corpus/templates/calendar/app/pages/CalendarView.tsx +82 -20
- package/corpus/templates/calendar/changelog/2026-07-26-out-of-office-events-now-default-to-full-days-with-a-ready.md +6 -0
- package/corpus/templates/calendar/changelog/2026-07-29-recent-calendar-locations-now-appear-as-address-suggestions-.md +6 -0
- package/corpus/templates/calendar/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/calendar/changelog/2026-07-29-unnamed-events-now-use-a-title-placeholder.md +6 -0
- package/corpus/templates/calendar/server/lib/find-time.ts +29 -5
- package/corpus/templates/calendar/server/lib/google-calendar.ts +2 -0
- package/corpus/templates/calendar/server/lib/ical-fetcher.ts +1 -0
- package/corpus/templates/calendar/shared/api.ts +4 -0
- package/corpus/templates/chat/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/chat/app/components/layout/Sidebar.tsx +1 -5
- package/corpus/templates/chat/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/clips/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/clips/app/components/library/library-layout.tsx +1 -5
- package/corpus/templates/clips/changelog/2026-07-29-fixed-system-audio-recordings-picking-up-your-microphone-in-.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-29-the-desktop-camera-preview-now-closes-after-a-recording-fin.md +6 -0
- package/corpus/templates/clips/desktop/src/app.tsx +14 -15
- package/corpus/templates/clips/desktop/src/lib/bubble-session.ts +11 -0
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +9 -4
- package/corpus/templates/clips/desktop/src/lib/transcription-capture.ts +11 -0
- package/corpus/templates/clips/server/jobs/transactional-emails.ts +47 -23
- package/corpus/templates/clips/server/lib/transactional-email-store.ts +16 -6
- package/corpus/templates/content/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/content/.agents/skills/content-product-development/SKILL.md +103 -0
- package/corpus/templates/content/.agents/skills/content-product-development/references/verification.md +57 -0
- package/corpus/templates/content/AGENTS.md +2 -0
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +1 -6
- package/corpus/templates/content/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/content/docs/product/README.md +115 -0
- package/corpus/templates/content/docs/product/architecture.md +98 -0
- package/corpus/templates/content/docs/product/capabilities/content.access.page-database.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.access.row-private.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.access.safe-aggregate.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.access.visibility-closure.md +79 -0
- package/corpus/templates/content/docs/product/capabilities/content.action.button.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.action-parity.md +73 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.audience-safe.md +91 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.automation.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.expression-authoring.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.presence.md +103 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.resource-consent.md +90 -0
- package/corpus/templates/content/docs/product/capabilities/content.agent.skill-catalog.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.api.cms.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.author.code.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.author.document-editor.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.author.footnotes.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.author.math.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.author.media.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.author.mermaid.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.automation.scheduled.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.capture.enrich.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.command.fabric.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.comment.page-owned.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.diff.ai-assist.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.diff.filtered-review.md +79 -0
- package/corpus/templates/content/docs/product/capabilities/content.diff.in-place.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.discussion.page.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.embed.host-grant.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.embed.mcp-app.md +69 -0
- package/corpus/templates/content/docs/product/capabilities/content.embed.surface.md +74 -0
- package/corpus/templates/content/docs/product/capabilities/content.event.committed.md +85 -0
- package/corpus/templates/content/docs/product/capabilities/content.expression.cached-result.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.expression.catalog.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.expression.language.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.feedback.signal.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.form.shared-engine.md +72 -0
- package/corpus/templates/content/docs/product/capabilities/content.history.queryable.md +79 -0
- package/corpus/templates/content/docs/product/capabilities/content.home.global.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.job.durable.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.knowledge.graph.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.knowledge.links.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.knowledge.search.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.layout.responsive.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.navigation.sidebar.md +86 -0
- package/corpus/templates/content/docs/product/capabilities/content.notification.source.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.block.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.blocks-field.md +79 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.database.md +92 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.multi-membership.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.page.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.reference.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.object.transclusion.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.organization.teams.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.portability.pdf-export.md +78 -0
- package/corpus/templates/content/docs/product/capabilities/content.portability.roundtrip.md +154 -0
- package/corpus/templates/content/docs/product/capabilities/content.portability.source-representation.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.portability.vault-export.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.presentation.mode.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.preset.catalog.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.property.actor.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.property.catalog.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.property.constraints.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.property.guarded-change.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.property.location.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.property.typed.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.publish.public.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.publish.reading.md +74 -0
- package/corpus/templates/content/docs/product/capabilities/content.query.object.md +114 -0
- package/corpus/templates/content/docs/product/capabilities/content.reader.documents.md +69 -0
- package/corpus/templates/content/docs/product/capabilities/content.reader.surface.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.relationship.edge.md +183 -0
- package/corpus/templates/content/docs/product/capabilities/content.renderer.artifact-block.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.renderer.custom-block.md +81 -0
- package/corpus/templates/content/docs/product/capabilities/content.renderer.graph.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.renderer.typed.md +92 -0
- package/corpus/templates/content/docs/product/capabilities/content.research.annotation.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.research.citation.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.review.code.md +67 -0
- package/corpus/templates/content/docs/product/capabilities/content.revision.suggestions.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.rule.deterministic.md +79 -0
- package/corpus/templates/content/docs/product/capabilities/content.schedule.constraints.md +81 -0
- package/corpus/templates/content/docs/product/capabilities/content.security.private-vault.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.share.views.md +140 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.adapters.md +154 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.builder-codec.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.catalog.md +149 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.file-folder.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.local-bridge.md +156 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.local-project.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.page-link.md +70 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.row-union.md +69 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.spaces-files.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.source.sync-policy.md +161 -0
- package/corpus/templates/content/docs/product/capabilities/content.system.dependencies.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.system.my-tasks.md +75 -0
- package/corpus/templates/content/docs/product/capabilities/content.system.project-status.md +77 -0
- package/corpus/templates/content/docs/product/capabilities/content.system.research-workspace.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.system.task-project.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.template.governance.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.template.graph.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.template.item-body.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.template.update.md +71 -0
- package/corpus/templates/content/docs/product/capabilities/content.time.types.md +85 -0
- package/corpus/templates/content/docs/product/capabilities/content.version.branching.md +151 -0
- package/corpus/templates/content/docs/product/capabilities/content.version.field-history.md +103 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.canvas.md +94 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.chart.md +91 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.dynamic-create.md +137 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.fast-capture.md +82 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.graph.md +95 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.grouping-aggregation.md +83 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.map.md +77 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.personal-state.md +99 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.pivot.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.query.md +106 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.renderer-conformance.md +77 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.scale.md +77 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.source-query.md +159 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.timeline.md +86 -0
- package/corpus/templates/content/docs/product/capabilities/content.view.tree.md +77 -0
- package/corpus/templates/content/docs/product/capabilities/content.workspace.multi-scope.md +80 -0
- package/corpus/templates/content/docs/product/capabilities/content.workspace.session-restore.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.workspace.view-instance.md +76 -0
- package/corpus/templates/content/docs/product/capabilities/content.workspace.working-set.md +77 -0
- package/corpus/templates/content/docs/product/chapters/content.chapter.capture-research.md +20 -0
- package/corpus/templates/content/docs/product/chapters/content.chapter.connected-sources.md +20 -0
- package/corpus/templates/content/docs/product/chapters/content.chapter.consensus.md +19 -0
- package/corpus/templates/content/docs/product/chapters/content.chapter.durable-home.md +21 -0
- package/corpus/templates/content/docs/product/chapters/content.chapter.publishing-portability.md +21 -0
- package/corpus/templates/content/docs/product/chapters/content.chapter.working-systems.md +27 -0
- package/corpus/templates/content/docs/product/encyclopedia.md +559 -0
- package/corpus/templates/content/docs/product/features/content.feature.bring-your-local-work.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.build-living-dashboards.md +34 -0
- package/corpus/templates/content/docs/product/features/content.feature.build-new-surfaces.md +33 -0
- package/corpus/templates/content/docs/product/features/content.feature.capture-into-action.md +34 -0
- package/corpus/templates/content/docs/product/features/content.feature.cite-what-you-found.md +34 -0
- package/corpus/templates/content/docs/product/features/content.feature.collaborate-in-context.md +59 -0
- package/corpus/templates/content/docs/product/features/content.feature.collect-structured-input.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.connect-your-sources.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.data-that-keeps-itself-right.md +45 -0
- package/corpus/templates/content/docs/product/features/content.feature.durable-foundations.md +48 -0
- package/corpus/templates/content/docs/product/features/content.feature.evolve-systems-safely.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.explore-alternatives-safely.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.find-your-place-again.md +40 -0
- package/corpus/templates/content/docs/product/features/content.feature.keep-your-private-vault-private.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.living-references.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.make-the-workspace-yours.md +40 -0
- package/corpus/templates/content/docs/product/features/content.feature.move-without-starting-over.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.plan-work-across-time.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.publish-with-confidence.md +43 -0
- package/corpus/templates/content/docs/product/features/content.feature.put-your-organizations-know-how-to-work.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.read-and-annotate-anything.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.review-changes-in-place.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.run-projects-your-way.md +44 -0
- package/corpus/templates/content/docs/product/features/content.feature.see-your-information-your-way.md +44 -0
- package/corpus/templates/content/docs/product/features/content.feature.share-how-your-organization-works.md +38 -0
- package/corpus/templates/content/docs/product/features/content.feature.sketch-connections-keep-whats-true.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.take-the-whole-vault-with-you.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.trust-your-connected-sources.md +40 -0
- package/corpus/templates/content/docs/product/features/content.feature.understand-what-your-data-says.md +39 -0
- package/corpus/templates/content/docs/product/features/content.feature.when-this-happens-that-follows.md +43 -0
- package/corpus/templates/content/docs/product/features/content.feature.work-across-every-workspace.md +37 -0
- package/corpus/templates/content/docs/product/features/content.feature.work-on-content-inside-another-application.md +37 -0
- package/corpus/templates/content/docs/product/roadmap.md +878 -0
- package/corpus/templates/crm/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/crm/app/components/layout/CrmSidebar.tsx +1 -7
- package/corpus/templates/crm/app/i18n/en-US.ts +4 -0
- package/corpus/templates/crm/app/routes/settings.tsx +33 -8
- package/corpus/templates/crm/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/design/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +133 -63
- package/corpus/templates/design/.generated/bridge/embedded-wheel.generated.ts +19 -2
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +51 -14
- package/corpus/templates/design/app/components/design/DesignExtensionsPanel.tsx +41 -26
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +22 -4
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +216 -116
- package/corpus/templates/design/app/components/design/bridge/embedded-wheel.bridge.ts +21 -2
- package/corpus/templates/design/app/components/design/code-workbench/CodeWorkbench.tsx +5 -1
- package/corpus/templates/design/app/components/design/code-workbench/CodeWorkbenchLoader.tsx +10 -2
- package/corpus/templates/design/app/components/design/code-workbench/code-workbench-shell.ts +2 -0
- package/corpus/templates/design/app/components/design/code-workbench/explorer/ExplorerView.tsx +60 -55
- package/corpus/templates/design/app/components/design/design-canvas/content-size-report.ts +88 -2
- package/corpus/templates/design/app/components/design/multi-screen/board-surface-html.ts +3 -2
- package/corpus/templates/design/app/components/design/types.ts +4 -0
- package/corpus/templates/design/app/components/layout/Sidebar.tsx +1 -5
- package/corpus/templates/design/app/pages/design-editor/clipboard-layer-source.ts +28 -0
- package/corpus/templates/design/app/pages/design-editor/clone-and-pen-edit.ts +117 -0
- package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +3 -1
- package/corpus/templates/design/app/pages/design-editor/pending-edits.ts +120 -74
- package/corpus/templates/design/app/pages/design-editor/pending-structure-verification.ts +11 -0
- package/corpus/templates/design/app/pages/design-editor/react-semantic-handoff.ts +2 -0
- package/corpus/templates/design/app/pages/design-editor/source-location.ts +1 -1
- package/corpus/templates/design/changelog/2026-07-29-copy-rendered-ui-between-live-local-apps-and-design-files-wh.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-design-boards-stay-dark-and-viewport-height-content-keeps-it.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-design-frames-no-longer-grow-continuously-when-their-content.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-the-code-panel-and-apply-design-update-control-now-use-clear.md +6 -0
- package/corpus/templates/design/changelog/2026-07-29-the-tools-panel-now-keeps-extension-creation-and-discovery-h.md +6 -0
- package/corpus/templates/design/shared/source-mode.ts +7 -1
- package/corpus/templates/dispatch/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/dispatch/app/i18n-data.ts +171 -0
- package/corpus/templates/dispatch/app/routes/browser-chat.tsx +4 -0
- package/corpus/templates/dispatch/app/routes/browser-connect.tsx +4 -0
- package/corpus/templates/dispatch/changelog/2026-07-29-browser-chat-can-securely-connect-the-agent-native-chrome-ex.md +6 -0
- package/corpus/templates/forms/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/forms/app/components/layout/Sidebar.tsx +1 -6
- package/corpus/templates/forms/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/macros/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/macros/app/components/layout/AppLayout.tsx +1 -5
- package/corpus/templates/macros/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/mail/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +1 -9
- package/corpus/templates/mail/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/plan/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/plan/app/components/layout/Sidebar.tsx +3 -7
- package/corpus/templates/plan/app/pages/PlansPage.tsx +2 -2
- package/corpus/templates/plan/changelog/2026-07-29-chat-history-now-closes-smoothly-and-stays-ready-when-you-re.md +6 -0
- package/corpus/templates/plan/changelog/2026-07-29-chat-history-stays-visible-when-you-return-to-ask-plan.md +6 -0
- package/corpus/templates/plan/changelog/2026-07-29-fixed-plan-pages-crashing-when-recent-activity-is-unavailabl.md +6 -0
- package/corpus/templates/plan/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/slides/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/slides/.agents/skills/analytics-data-for-decks/SKILL.md +48 -0
- package/corpus/templates/slides/.agents/skills/create-deck/SKILL.md +60 -4
- package/corpus/templates/slides/.agents/skills/design-systems/SKILL.md +20 -0
- package/corpus/templates/slides/.agents/skills/slide-editing/SKILL.md +30 -1
- package/corpus/templates/slides/.agents/skills/slide-images/SKILL.md +3 -1
- package/corpus/templates/slides/AGENTS.md +25 -24
- package/corpus/templates/slides/actions/check-image-gen.ts +8 -2
- package/corpus/templates/slides/actions/create-deck.ts +4 -12
- package/corpus/templates/slides/actions/export-pptx.ts +25 -3
- package/corpus/templates/slides/actions/generate-image-api.ts +4 -2
- package/corpus/templates/slides/actions/generate-slides-ai.ts +1 -1
- package/corpus/templates/slides/actions/get-deck-reference-context.ts +136 -0
- package/corpus/templates/slides/actions/get-workspace-defaults.ts +55 -0
- package/corpus/templates/slides/actions/image-gen-status.ts +10 -1
- package/corpus/templates/slides/actions/import-file.ts +53 -38
- package/corpus/templates/slides/actions/list-decks.ts +2 -0
- package/corpus/templates/slides/actions/patch-deck.ts +2 -0
- package/corpus/templates/slides/actions/set-workspace-defaults.ts +50 -0
- package/corpus/templates/slides/actions/view-screen.ts +6 -0
- package/corpus/templates/slides/app/components/comments/SlideCommentsPanel.tsx +1 -1
- package/corpus/templates/slides/app/components/deck/DeckCard.tsx +67 -3
- package/corpus/templates/slides/app/components/deck/SlideRenderer.tsx +40 -8
- package/corpus/templates/slides/app/components/design-system/DesignSystemCard.tsx +33 -8
- package/corpus/templates/slides/app/components/editor/EditorSidebar.tsx +6 -2
- package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +114 -128
- package/corpus/templates/slides/app/components/editor/ExportMenu.tsx +74 -9
- package/corpus/templates/slides/app/components/editor/ImageGenPanel.tsx +1 -1
- package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +1193 -267
- package/corpus/templates/slides/app/components/editor/SlideStyleInspector.tsx +302 -102
- package/corpus/templates/slides/app/components/editor/rich-text-selection.ts +270 -0
- package/corpus/templates/slides/app/components/editor/slide-escape-arbiter.ts +34 -0
- package/corpus/templates/slides/app/components/editor/slide-object-interactions.ts +368 -0
- package/corpus/templates/slides/app/components/editor/slide-presence.ts +13 -0
- package/corpus/templates/slides/app/components/layout/AgentWorkIndicator.tsx +23 -3
- package/corpus/templates/slides/app/components/layout/Layout.tsx +39 -6
- package/corpus/templates/slides/app/components/layout/Sidebar.tsx +1 -6
- package/corpus/templates/slides/app/components/layout/layout-route-policy.ts +23 -0
- package/corpus/templates/slides/app/components/visual-editor/DrawOverlay.tsx +0 -2
- package/corpus/templates/slides/app/context/DeckContext.tsx +2 -0
- package/corpus/templates/slides/app/global.css +60 -0
- package/corpus/templates/slides/app/hooks/use-agent-generating.ts +76 -5
- package/corpus/templates/slides/app/hooks/use-workspace-defaults.ts +26 -0
- package/corpus/templates/slides/app/i18n/en-US.ts +39 -3
- package/corpus/templates/slides/app/lib/generation-state.ts +13 -3
- package/corpus/templates/slides/app/lib/slide-image-replacement.ts +27 -6
- package/corpus/templates/slides/app/lib/text-tool-shortcut.ts +62 -0
- package/corpus/templates/slides/app/pages/DeckEditor.tsx +197 -83
- package/corpus/templates/slides/app/pages/DesignSystems.tsx +95 -0
- package/corpus/templates/slides/app/pages/Index.tsx +348 -53
- package/corpus/templates/slides/changelog/2026-07-28-pick-an-existing-deck-as-a-style-reference-when-creating-a-n.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-ai-editing-status-is-now-quieter-and-only-shows-slide-presen.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-design-systems-and-reference-decks-are-easier-to-choose-toge.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-generated-decks-now-receive-a-concise-relevant-title-before-.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-google-slides-exports-can-connect-your-google-account-direct.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-new-deck-prompts-reuse-empty-chats.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-new-deck-setup-now-stays-in-the-editor-with-closable-style-a.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-selected-words-and-text-runs-can-now-be-styled-independently.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-slide-annotation-tools-are-clearer-and-escape-now-exits-anno.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-slide-editing-now-opens-with-the-app-navigation-collapsed-fo.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-slide-editing-stays-visually-clean-on-hover-without-a-canvas.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-slides-now-appear-one-by-one-while-ai-builds-a-deck-with-ste.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-text-boxes-now-select-move-duplicate-resize-and-style-like-a.md +6 -0
- package/corpus/templates/slides/changelog/2026-07-29-untitled-decks-now-use-a-clearer-this-deck-label-in-the-agen.md +6 -0
- package/corpus/templates/slides/server/handlers/google-docs-auth.ts +4 -2
- package/corpus/templates/slides/server/handlers/image-providers/builder.ts +305 -0
- package/corpus/templates/slides/server/handlers/image-providers/index.ts +6 -3
- package/corpus/templates/slides/server/plugins/agent-chat.ts +1 -0
- package/corpus/templates/slides/server/workspace-defaults.ts +169 -0
- package/corpus/templates/tasks/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/corpus/templates/tasks/app/components/layout/Sidebar.tsx +31 -8
- package/corpus/templates/tasks/app/i18n/en-US.ts +7 -0
- package/corpus/templates/tasks/app/routes/settings.tsx +25 -2
- package/corpus/templates/tasks/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/corpus/toolkit/CHANGELOG.md +15 -0
- package/corpus/toolkit/README.md +2 -2
- package/corpus/toolkit/package.json +1 -1
- package/corpus/toolkit/src/app-shell/sidebar-footer-actions.tsx +0 -3
- package/corpus/toolkit/src/chat-history.css +1 -0
- package/corpus/toolkit/src/composer/ComposerPlusMenu.tsx +35 -14
- package/corpus/toolkit/src/composer/PromptComposer.tsx +6 -0
- package/corpus/toolkit/src/composer/TiptapComposer.tsx +11 -3
- package/corpus/toolkit/src/design-tweaks/visual-style-controls.tsx +64 -11
- package/dist/a2a/types.d.ts +6 -0
- package/dist/a2a/types.d.ts.map +1 -1
- package/dist/a2a/types.js.map +1 -1
- package/dist/action.d.ts +57 -0
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +9 -0
- package/dist/action.js.map +1 -1
- package/dist/agent/engine/builder-engine.js +6 -4
- package/dist/agent/engine/builder-engine.js.map +1 -1
- package/dist/agent/production-agent.d.ts +11 -1
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +131 -90
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/tool-search.d.ts +4 -0
- package/dist/agent/tool-search.d.ts.map +1 -1
- package/dist/agent/tool-search.js +30 -0
- package/dist/agent/tool-search.js.map +1 -1
- package/dist/automations/service.d.ts +85 -0
- package/dist/automations/service.d.ts.map +1 -0
- package/dist/automations/service.js +332 -0
- package/dist/automations/service.js.map +1 -0
- package/dist/browser-context/index.d.ts +579 -0
- package/dist/browser-context/index.d.ts.map +1 -0
- package/dist/browser-context/index.js +331 -0
- package/dist/browser-context/index.js.map +1 -0
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +1 -1
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/client/FeedbackButton.d.ts +6 -2
- package/dist/client/FeedbackButton.d.ts.map +1 -1
- package/dist/client/FeedbackButton.js +20 -3
- package/dist/client/FeedbackButton.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +19 -2
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/agent-chat.d.ts +15 -0
- package/dist/client/agent-chat.d.ts.map +1 -1
- package/dist/client/agent-chat.js +13 -3
- package/dist/client/agent-chat.js.map +1 -1
- package/dist/client/agent-page/AgentJobsTab.d.ts +1 -0
- package/dist/client/agent-page/AgentJobsTab.d.ts.map +1 -1
- package/dist/client/agent-page/AgentJobsTab.js +186 -98
- package/dist/client/agent-page/AgentJobsTab.js.map +1 -1
- package/dist/client/agent-page/AgentTabsPage.js +4 -4
- package/dist/client/agent-page/AgentTabsPage.js.map +1 -1
- package/dist/client/agent-page/use-jobs.d.ts +7 -0
- package/dist/client/agent-page/use-jobs.d.ts.map +1 -1
- package/dist/client/agent-page/use-jobs.js.map +1 -1
- package/dist/client/analytics-session.d.ts.map +1 -1
- package/dist/client/analytics-session.js +13 -0
- package/dist/client/analytics-session.js.map +1 -1
- package/dist/client/extensions/ExtensionViewer.d.ts.map +1 -1
- package/dist/client/extensions/ExtensionViewer.js +29 -6
- package/dist/client/extensions/ExtensionViewer.js.map +1 -1
- package/dist/client/settings/AutomationsSection.d.ts +0 -9
- package/dist/client/settings/AutomationsSection.d.ts.map +1 -1
- package/dist/client/settings/AutomationsSection.js +9 -168
- package/dist/client/settings/AutomationsSection.js.map +1 -1
- package/dist/client/settings/SettingsPanel.d.ts +9 -1
- package/dist/client/settings/SettingsPanel.d.ts.map +1 -1
- package/dist/client/settings/SettingsPanel.js +19 -11
- package/dist/client/settings/SettingsPanel.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 +1 -1
- package/dist/client/settings/index.js.map +1 -1
- package/dist/client/use-agent-chat.d.ts.map +1 -1
- package/dist/client/use-agent-chat.js +20 -3
- package/dist/client/use-agent-chat.js.map +1 -1
- package/dist/client/use-chat-threads.d.ts.map +1 -1
- package/dist/client/use-chat-threads.js +4 -17
- package/dist/client/use-chat-threads.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +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 +2 -1
- package/dist/deploy/build.js.map +1 -1
- package/dist/deploy/workspace-deploy.d.ts.map +1 -1
- package/dist/deploy/workspace-deploy.js +2 -1
- package/dist/deploy/workspace-deploy.js.map +1 -1
- package/dist/extensions/actions.d.ts.map +1 -1
- package/dist/extensions/actions.js +82 -6
- package/dist/extensions/actions.js.map +1 -1
- package/dist/extensions/fetch-tool.d.ts.map +1 -1
- package/dist/extensions/fetch-tool.js +11 -0
- package/dist/extensions/fetch-tool.js.map +1 -1
- package/dist/extensions/routes.d.ts +5 -1
- package/dist/extensions/routes.d.ts.map +1 -1
- package/dist/extensions/routes.js +7 -1
- package/dist/extensions/routes.js.map +1 -1
- package/dist/extensions/web-content.d.ts +1 -0
- package/dist/extensions/web-content.d.ts.map +1 -1
- package/dist/extensions/web-content.js +82 -1
- package/dist/extensions/web-content.js.map +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/integrations/computer-supervision.d.ts.map +1 -1
- package/dist/integrations/computer-supervision.js +22 -1
- package/dist/integrations/computer-supervision.js.map +1 -1
- package/dist/integrations/index.d.ts +3 -2
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +3 -2
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/integration-durable-dispatch-config.d.ts +2 -0
- package/dist/integrations/integration-durable-dispatch-config.d.ts.map +1 -1
- package/dist/integrations/integration-durable-dispatch-config.js +4 -0
- package/dist/integrations/integration-durable-dispatch-config.js.map +1 -1
- package/dist/integrations/integration-durable-dispatch.d.ts +2 -2
- package/dist/integrations/integration-durable-dispatch.d.ts.map +1 -1
- package/dist/integrations/integration-durable-dispatch.js +2 -2
- package/dist/integrations/integration-durable-dispatch.js.map +1 -1
- package/dist/integrations/plugin.d.ts.map +1 -1
- package/dist/integrations/plugin.js +84 -39
- package/dist/integrations/plugin.js.map +1 -1
- package/dist/integrations/remote-browser-actions.d.ts +7 -0
- package/dist/integrations/remote-browser-actions.d.ts.map +1 -0
- package/dist/integrations/remote-browser-actions.js +482 -0
- package/dist/integrations/remote-browser-actions.js.map +1 -0
- package/dist/jobs/actions/list-recurring-jobs.d.ts.map +1 -1
- package/dist/jobs/actions/list-recurring-jobs.js +4 -6
- package/dist/jobs/actions/list-recurring-jobs.js.map +1 -1
- package/dist/jobs/actions/manage-recurring-job.js +3 -6
- package/dist/jobs/actions/manage-recurring-job.js.map +1 -1
- package/dist/jobs/background-automation-runner.d.ts +76 -0
- package/dist/jobs/background-automation-runner.d.ts.map +1 -0
- package/dist/jobs/background-automation-runner.js +288 -0
- package/dist/jobs/background-automation-runner.js.map +1 -0
- package/dist/jobs/frontmatter.d.ts +63 -0
- package/dist/jobs/frontmatter.d.ts.map +1 -0
- package/dist/jobs/frontmatter.js +216 -0
- package/dist/jobs/frontmatter.js.map +1 -0
- package/dist/jobs/scheduler.d.ts +6 -60
- package/dist/jobs/scheduler.d.ts.map +1 -1
- package/dist/jobs/scheduler.js +67 -484
- package/dist/jobs/scheduler.js.map +1 -1
- package/dist/jobs/tools.d.ts.map +1 -1
- package/dist/jobs/tools.js +24 -3
- package/dist/jobs/tools.js.map +1 -1
- package/dist/localization/default-messages.d.ts +28 -33
- package/dist/localization/default-messages.d.ts.map +1 -1
- package/dist/localization/default-messages.js +34 -39
- package/dist/localization/default-messages.js.map +1 -1
- package/dist/mcp/screen-memory-stdio.d.ts +7 -7
- package/dist/mcp/screen-memory-stdio.d.ts.map +1 -1
- package/dist/mcp-client/index.d.ts.map +1 -1
- package/dist/mcp-client/index.js +4 -0
- package/dist/mcp-client/index.js.map +1 -1
- package/dist/notifications/actions.d.ts.map +1 -1
- package/dist/notifications/actions.js +5 -0
- package/dist/notifications/actions.js.map +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/progress/actions.d.ts.map +1 -1
- package/dist/progress/actions.js +5 -0
- package/dist/progress/actions.js.map +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +14 -14
- package/dist/provider-api/actions/github-repo-files.d.ts.map +1 -1
- package/dist/provider-api/actions/github-repo-files.js +9 -0
- package/dist/provider-api/actions/github-repo-files.js.map +1 -1
- package/dist/provider-api/actions/provider-api.d.ts +16 -16
- package/dist/provider-api/actions/provider-api.d.ts.map +1 -1
- package/dist/provider-api/actions/provider-api.js +14 -0
- package/dist/provider-api/actions/provider-api.js.map +1 -1
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +5 -0
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/agent-capabilities.d.ts.map +1 -1
- package/dist/server/agent-capabilities.js +32 -3
- package/dist/server/agent-capabilities.js.map +1 -1
- package/dist/server/agent-chat/action-filters-a2a.d.ts +17 -1
- package/dist/server/agent-chat/action-filters-a2a.d.ts.map +1 -1
- package/dist/server/agent-chat/action-filters-a2a.js +50 -1
- package/dist/server/agent-chat/action-filters-a2a.js.map +1 -1
- package/dist/server/agent-chat/browser-team-tools.d.ts.map +1 -1
- package/dist/server/agent-chat/browser-team-tools.js +90 -3
- package/dist/server/agent-chat/browser-team-tools.js.map +1 -1
- package/dist/server/agent-chat/framework-prompts.d.ts.map +1 -1
- package/dist/server/agent-chat/framework-prompts.js +7 -11
- package/dist/server/agent-chat/framework-prompts.js.map +1 -1
- package/dist/server/agent-chat/plugin-options.d.ts +3 -3
- package/dist/server/agent-chat/plugin-options.js.map +1 -1
- package/dist/server/agent-chat/script-entries.d.ts.map +1 -1
- package/dist/server/agent-chat/script-entries.js +43 -1
- package/dist/server/agent-chat/script-entries.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +24 -5
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/attribution.d.ts +6 -0
- package/dist/server/attribution.d.ts.map +1 -1
- package/dist/server/attribution.js +14 -14
- package/dist/server/attribution.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +5 -2
- package/dist/server/auth.js.map +1 -1
- package/dist/server/better-auth-instance.d.ts +2 -1
- package/dist/server/better-auth-instance.d.ts.map +1 -1
- package/dist/server/better-auth-instance.js +6 -3
- package/dist/server/better-auth-instance.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts +7 -0
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +3 -1
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/server/csrf.d.ts.map +1 -1
- package/dist/server/csrf.js +25 -0
- package/dist/server/csrf.js.map +1 -1
- package/dist/server/google-oauth.d.ts +3 -0
- package/dist/server/google-oauth.d.ts.map +1 -1
- package/dist/server/google-oauth.js +12 -1
- package/dist/server/google-oauth.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +18 -0
- package/dist/server/onboarding-html.js.map +1 -1
- package/dist/server/prompts/framework-core-compact.js +3 -3
- package/dist/server/prompts/framework-core-compact.js.map +1 -1
- package/dist/server/prompts/framework-core.js +3 -3
- package/dist/server/prompts/framework-core.js.map +1 -1
- package/dist/server/prompts/shared-rules.js +3 -3
- package/dist/server/prompts/shared-rules.js.map +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.d.ts.map +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/settings/index.js.map +1 -1
- package/dist/shared/analytics-anonymous-id.d.ts +12 -0
- package/dist/shared/analytics-anonymous-id.d.ts.map +1 -0
- package/dist/shared/analytics-anonymous-id.js +29 -0
- package/dist/shared/analytics-anonymous-id.js.map +1 -0
- package/dist/templates/chat/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/dist/templates/chat/app/components/layout/Sidebar.tsx +1 -5
- package/dist/templates/chat/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/dist/templates/default/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/dist/templates/default/app/i18n/ar-SA.ts +26 -0
- package/dist/templates/default/app/i18n/de-DE.ts +28 -0
- package/dist/templates/default/app/i18n/en-US.ts +27 -0
- package/dist/templates/default/app/i18n/es-ES.ts +28 -0
- package/dist/templates/default/app/i18n/fr-FR.ts +28 -0
- package/dist/templates/default/app/i18n/hi-IN.ts +25 -0
- package/dist/templates/default/app/i18n/ja-JP.ts +27 -0
- package/dist/templates/default/app/i18n/ko-KR.ts +27 -0
- package/dist/templates/default/app/i18n/pt-BR.ts +27 -0
- package/dist/templates/default/app/i18n/zh-CN.ts +24 -0
- package/dist/templates/default/app/i18n/zh-TW.ts +24 -0
- package/dist/templates/headless/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/dist/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/dist/templates/workspace-core/.agents/skills/agent-page/SKILL.md +10 -7
- package/dist/templates/workspace-core/.agents/skills/automations/SKILL.md +53 -8
- package/dist/templates/workspace-core/.agents/skills/browser-sessions/SKILL.md +131 -0
- package/dist/templates/workspace-core/.agents/skills/extension-points/SKILL.md +13 -4
- package/dist/templates/workspace-core/.agents/skills/extensions/SKILL.md +23 -15
- package/dist/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +33 -18
- package/dist/tracking/providers.d.ts.map +1 -1
- package/dist/tracking/providers.js +1 -0
- package/dist/tracking/providers.js.map +1 -1
- package/dist/tracking/registry.d.ts +1 -0
- package/dist/tracking/registry.d.ts.map +1 -1
- package/dist/tracking/registry.js +1 -0
- package/dist/tracking/registry.js.map +1 -1
- package/dist/tracking/types.d.ts +1 -0
- package/dist/tracking/types.d.ts.map +1 -1
- package/dist/tracking/types.js.map +1 -1
- package/dist/triggers/actions/list-automations.d.ts +7 -0
- package/dist/triggers/actions/list-automations.d.ts.map +1 -1
- package/dist/triggers/actions/list-automations.js +29 -41
- package/dist/triggers/actions/list-automations.js.map +1 -1
- package/dist/triggers/actions/manage-automation.js +15 -33
- package/dist/triggers/actions/manage-automation.js.map +1 -1
- package/dist/triggers/actions.d.ts.map +1 -1
- package/dist/triggers/actions.js +184 -95
- package/dist/triggers/actions.js.map +1 -1
- package/dist/triggers/dispatcher.d.ts +3 -9
- package/dist/triggers/dispatcher.d.ts.map +1 -1
- package/dist/triggers/dispatcher.js +134 -304
- package/dist/triggers/dispatcher.js.map +1 -1
- package/dist/triggers/routes.d.ts.map +1 -1
- package/dist/triggers/routes.js +76 -17
- package/dist/triggers/routes.js.map +1 -1
- package/dist/triggers/types.d.ts +4 -23
- package/dist/triggers/types.d.ts.map +1 -1
- package/dist/triggers/types.js.map +1 -1
- package/docs/content/agent-surfaces.mdx +4 -4
- package/docs/content/automations.mdx +61 -12
- package/docs/content/deployment.mdx +11 -4
- package/docs/content/extensions.mdx +39 -33
- package/docs/content/recurring-jobs.mdx +41 -19
- package/docs/content/template-dispatch-operations.mdx +19 -7
- package/package.json +4 -2
- package/src/a2a/types.ts +6 -0
- package/src/action.ts +68 -0
- package/src/agent/engine/builder-engine.ts +8 -4
- package/src/agent/production-agent.ts +175 -100
- package/src/agent/tool-search.ts +36 -0
- package/src/automations/service.ts +506 -0
- package/src/browser-context/index.ts +392 -0
- package/src/client/AgentPanel.tsx +2 -1
- package/src/client/FeedbackButton.tsx +37 -4
- package/src/client/MultiTabAssistantChat.tsx +21 -0
- package/src/client/agent-chat.ts +31 -3
- package/src/client/agent-page/AgentJobsTab.tsx +438 -310
- package/src/client/agent-page/AgentTabsPage.tsx +4 -4
- package/src/client/agent-page/use-jobs.ts +7 -0
- package/src/client/analytics-session.ts +13 -0
- package/src/client/extensions/ExtensionViewer.tsx +67 -0
- package/src/client/settings/AutomationsSection.tsx +27 -499
- package/src/client/settings/SettingsPanel.tsx +32 -11
- package/src/client/settings/index.ts +2 -0
- package/src/client/use-agent-chat.ts +35 -3
- package/src/client/use-chat-threads.ts +8 -25
- package/src/deploy/build.ts +2 -0
- package/src/deploy/workspace-deploy.ts +2 -0
- package/src/extensions/actions.ts +115 -3
- package/src/extensions/fetch-tool.ts +11 -0
- package/src/extensions/routes.ts +16 -1
- package/src/extensions/web-content.ts +96 -1
- package/src/integrations/computer-supervision.ts +33 -1
- package/src/integrations/index.ts +6 -0
- package/src/integrations/integration-durable-dispatch-config.ts +10 -0
- package/src/integrations/integration-durable-dispatch.ts +4 -0
- package/src/integrations/plugin.ts +94 -41
- package/src/integrations/remote-browser-actions.ts +621 -0
- package/src/jobs/actions/list-recurring-jobs.ts +5 -7
- package/src/jobs/actions/manage-recurring-job.ts +3 -7
- package/src/jobs/background-automation-runner.ts +437 -0
- package/src/jobs/frontmatter.ts +308 -0
- package/src/jobs/scheduler.ts +89 -598
- package/src/jobs/tools.ts +22 -3
- package/src/localization/default-messages.ts +45 -45
- package/src/mcp-client/index.ts +6 -0
- package/src/notifications/actions.ts +5 -0
- package/src/progress/actions.ts +5 -0
- package/src/provider-api/actions/github-repo-files.ts +11 -0
- package/src/provider-api/actions/provider-api.ts +13 -0
- package/src/server/__snapshots__/agent-chat-plugin.surface.spec.ts.snap +4 -4
- package/src/server/action-discovery.ts +7 -0
- package/src/server/agent-capabilities.ts +43 -8
- package/src/server/agent-chat/action-filters-a2a.ts +63 -1
- package/src/server/agent-chat/browser-team-tools.ts +126 -3
- package/src/server/agent-chat/framework-prompts.ts +7 -11
- package/src/server/agent-chat/plugin-options.ts +3 -3
- package/src/server/agent-chat/script-entries.ts +52 -1
- package/src/server/agent-chat-plugin.ts +25 -5
- package/src/server/attribution.ts +22 -0
- package/src/server/auth.ts +20 -6
- package/src/server/better-auth-instance.ts +10 -2
- package/src/server/core-routes-plugin.ts +10 -1
- package/src/server/csrf.ts +25 -0
- package/src/server/google-oauth.ts +21 -1
- package/src/server/onboarding-html.ts +18 -0
- package/src/server/prompts/framework-core-compact.ts +3 -3
- package/src/server/prompts/framework-core.ts +3 -3
- package/src/server/prompts/shared-rules.ts +3 -3
- package/src/settings/index.ts +1 -0
- package/src/shared/analytics-anonymous-id.ts +35 -0
- package/src/templates/chat/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/src/templates/chat/app/components/layout/Sidebar.tsx +1 -5
- package/src/templates/chat/changelog/2026-07-29-sidebar-footers-now-keep-feedback-search-and-collapse-togeth.md +6 -0
- package/src/templates/default/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/src/templates/default/app/i18n/ar-SA.ts +26 -0
- package/src/templates/default/app/i18n/de-DE.ts +28 -0
- package/src/templates/default/app/i18n/en-US.ts +27 -0
- package/src/templates/default/app/i18n/es-ES.ts +28 -0
- package/src/templates/default/app/i18n/fr-FR.ts +28 -0
- package/src/templates/default/app/i18n/hi-IN.ts +25 -0
- package/src/templates/default/app/i18n/ja-JP.ts +27 -0
- package/src/templates/default/app/i18n/ko-KR.ts +27 -0
- package/src/templates/default/app/i18n/pt-BR.ts +27 -0
- package/src/templates/default/app/i18n/zh-CN.ts +24 -0
- package/src/templates/default/app/i18n/zh-TW.ts +24 -0
- package/src/templates/headless/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +5 -0
- package/src/templates/workspace-core/.agents/skills/agent-page/SKILL.md +10 -7
- package/src/templates/workspace-core/.agents/skills/automations/SKILL.md +53 -8
- package/src/templates/workspace-core/.agents/skills/browser-sessions/SKILL.md +131 -0
- package/src/templates/workspace-core/.agents/skills/extension-points/SKILL.md +13 -4
- package/src/templates/workspace-core/.agents/skills/extensions/SKILL.md +23 -15
- package/src/templates/workspace-core/.agents/skills/recurring-jobs/SKILL.md +33 -18
- package/src/tracking/providers.ts +1 -0
- package/src/tracking/registry.ts +2 -1
- package/src/tracking/types.ts +1 -0
- package/src/triggers/actions/list-automations.ts +43 -44
- package/src/triggers/actions/manage-automation.ts +17 -48
- package/src/triggers/actions.ts +218 -127
- package/src/triggers/dispatcher.ts +181 -367
- package/src/triggers/routes.ts +84 -27
- package/src/triggers/types.ts +9 -23
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
IconUsers,
|
|
14
14
|
} from "@tabler/icons-react";
|
|
15
15
|
import { differenceInMinutes, format } from "date-fns";
|
|
16
|
-
import { useState, useEffect, useMemo, useRef } from "react";
|
|
16
|
+
import { useId, useState, useEffect, useMemo, useRef } from "react";
|
|
17
17
|
import { toast } from "sonner";
|
|
18
18
|
|
|
19
19
|
import {
|
|
@@ -90,6 +90,10 @@ type EventType = "default" | "outOfOffice" | "focusTime" | "workingLocation";
|
|
|
90
90
|
type Availability = "opaque" | "transparent";
|
|
91
91
|
type Visibility = "default" | "public" | "private" | "confidential";
|
|
92
92
|
type WorkingLocationType = "homeOffice" | "officeLocation" | "customLocation";
|
|
93
|
+
type AutoDeclineMode =
|
|
94
|
+
| "declineNone"
|
|
95
|
+
| "declineAllConflictingInvitations"
|
|
96
|
+
| "declineOnlyNewConflictingInvitations";
|
|
93
97
|
|
|
94
98
|
const EMPTY_CONNECTED_ACCOUNTS: Array<{ email: string }> = [];
|
|
95
99
|
|
|
@@ -210,6 +214,7 @@ interface CreateEventPopoverProps {
|
|
|
210
214
|
draft?: CalendarEventDraft | null;
|
|
211
215
|
onDraftChange?: (draft: CalendarEventDraft) => void;
|
|
212
216
|
onDraftCreated?: (draftId: string) => void;
|
|
217
|
+
locationSuggestions?: string[];
|
|
213
218
|
}
|
|
214
219
|
|
|
215
220
|
export function CreateEventPopover({
|
|
@@ -221,6 +226,7 @@ export function CreateEventPopover({
|
|
|
221
226
|
draft,
|
|
222
227
|
onDraftChange,
|
|
223
228
|
onDraftCreated,
|
|
229
|
+
locationSuggestions = [],
|
|
224
230
|
}: CreateEventPopoverProps) {
|
|
225
231
|
const t = useT();
|
|
226
232
|
const today = defaultDate || new Date();
|
|
@@ -244,8 +250,15 @@ export function CreateEventPopover({
|
|
|
244
250
|
const [startTime, setStartTime] = useState(defaultStart || fallbackStart);
|
|
245
251
|
const [endTime, setEndTime] = useState(defaultEnd || fallbackEnd);
|
|
246
252
|
const [location, setLocation] = useState("");
|
|
253
|
+
const locationSuggestionsId = useId();
|
|
247
254
|
const [allDay, setAllDay] = useState(false);
|
|
248
255
|
const [eventType, setEventType] = useState<EventType>("default");
|
|
256
|
+
const [autoDeclineMode, setAutoDeclineMode] = useState<AutoDeclineMode>(
|
|
257
|
+
"declineAllConflictingInvitations",
|
|
258
|
+
);
|
|
259
|
+
const [declineMessage, setDeclineMessage] = useState(
|
|
260
|
+
"Declined because I am out of office",
|
|
261
|
+
);
|
|
249
262
|
const [availability, setAvailability] = useState<Availability>("opaque");
|
|
250
263
|
const [visibility, setVisibility] = useState<Visibility>("default");
|
|
251
264
|
const [timezone, setTimezone] = useState(defaultTimezone);
|
|
@@ -264,8 +277,8 @@ export function CreateEventPopover({
|
|
|
264
277
|
const [attendees, setAttendees] = useState<AttendeeRecipient[]>([]);
|
|
265
278
|
const [accountEmail, setAccountEmail] = useState<string>();
|
|
266
279
|
const [findTimeOpen, setFindTimeOpen] = useState(false);
|
|
267
|
-
const
|
|
268
|
-
|
|
280
|
+
const isOutOfOffice = eventType === "outOfOffice";
|
|
281
|
+
const timedOnlyStatus = eventType === "focusTime";
|
|
269
282
|
|
|
270
283
|
const createEvent = useCreateEvent();
|
|
271
284
|
const delEvent = useDeleteEvent();
|
|
@@ -282,9 +295,14 @@ export function CreateEventPopover({
|
|
|
282
295
|
const formRef = useRef<HTMLFormElement>(null);
|
|
283
296
|
const attendeeAutocompleteRef = useRef<AttendeeAutocompleteHandle>(null);
|
|
284
297
|
const initializedKeyRef = useRef<string | null>(null);
|
|
298
|
+
const preserveInitializationOnCloseRef = useRef(false);
|
|
285
299
|
|
|
286
300
|
useEffect(() => {
|
|
287
301
|
if (!open) {
|
|
302
|
+
if (preserveInitializationOnCloseRef.current) {
|
|
303
|
+
preserveInitializationOnCloseRef.current = false;
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
288
306
|
initializedKeyRef.current = null;
|
|
289
307
|
return;
|
|
290
308
|
}
|
|
@@ -294,21 +312,26 @@ export function CreateEventPopover({
|
|
|
294
312
|
draft?.startTimeZone || draft?.endTimeZone || defaultTimezone;
|
|
295
313
|
const initKey = buildEventFormInitializationKey({
|
|
296
314
|
draftId: draft?.id,
|
|
297
|
-
draftTimezone,
|
|
298
315
|
date: nextDate,
|
|
299
|
-
startTime: defaultStart
|
|
300
|
-
endTime: defaultEnd
|
|
301
|
-
defaultTimezone,
|
|
316
|
+
startTime: defaultStart,
|
|
317
|
+
endTime: defaultEnd,
|
|
302
318
|
});
|
|
303
319
|
if (initializedKeyRef.current === initKey) return;
|
|
304
320
|
initializedKeyRef.current = initKey;
|
|
305
321
|
|
|
306
322
|
if (draft) {
|
|
307
323
|
const startParts = draft.start
|
|
308
|
-
?
|
|
324
|
+
? draft.fullDay && /^\d{4}-\d{2}-\d{2}$/.test(draft.start)
|
|
325
|
+
? { date: draft.start, time: "00:00" }
|
|
326
|
+
: dateTimePartsInTimezone(draft.start, draftTimezone)
|
|
309
327
|
: null;
|
|
310
328
|
const endParts = draft.end
|
|
311
|
-
?
|
|
329
|
+
? draft.fullDay && /^\d{4}-\d{2}-\d{2}$/.test(draft.end)
|
|
330
|
+
? { date: draft.end, time: "00:00" }
|
|
331
|
+
: dateTimePartsInTimezone(
|
|
332
|
+
draft.end,
|
|
333
|
+
draft.endTimeZone || draftTimezone,
|
|
334
|
+
)
|
|
312
335
|
: null;
|
|
313
336
|
const reminderState = remindersToDraftState({
|
|
314
337
|
reminders: draft.reminders,
|
|
@@ -319,15 +342,25 @@ export function CreateEventPopover({
|
|
|
319
342
|
setDescription(draft.description || "");
|
|
320
343
|
setDate(startParts?.date || nextDate);
|
|
321
344
|
setEndDate(
|
|
322
|
-
draft.
|
|
323
|
-
?
|
|
324
|
-
:
|
|
345
|
+
draft.fullDay
|
|
346
|
+
? endParts?.date || startParts?.date || nextDate
|
|
347
|
+
: draft.allDay
|
|
348
|
+
? allDayEndDate(draft.end, startParts?.date || nextDate)
|
|
349
|
+
: endParts?.date || startParts?.date || nextDate,
|
|
325
350
|
);
|
|
326
351
|
setStartTime(startParts?.time || defaultStart || fallbackStart);
|
|
327
352
|
setEndTime(endParts?.time || defaultEnd || fallbackEnd);
|
|
328
353
|
setLocation(draft.location || draft.workingLocationLabel || "");
|
|
329
|
-
setAllDay(draft.allDay ?? false);
|
|
354
|
+
setAllDay(draft.fullDay ?? draft.allDay ?? false);
|
|
330
355
|
setEventType(draft.eventType ?? "default");
|
|
356
|
+
setAutoDeclineMode(
|
|
357
|
+
draft.outOfOfficeProperties?.autoDeclineMode ??
|
|
358
|
+
"declineAllConflictingInvitations",
|
|
359
|
+
);
|
|
360
|
+
setDeclineMessage(
|
|
361
|
+
draft.outOfOfficeProperties?.declineMessage ??
|
|
362
|
+
"Declined because I am out of office",
|
|
363
|
+
);
|
|
331
364
|
setAvailability(draft.transparency ?? "opaque");
|
|
332
365
|
setVisibility(draft.visibility ?? "default");
|
|
333
366
|
setTimezone(draftTimezone);
|
|
@@ -364,6 +397,8 @@ export function CreateEventPopover({
|
|
|
364
397
|
setLocation("");
|
|
365
398
|
setAllDay(false);
|
|
366
399
|
setEventType("default");
|
|
400
|
+
setAutoDeclineMode("declineAllConflictingInvitations");
|
|
401
|
+
setDeclineMessage("Declined because I am out of office");
|
|
367
402
|
setAvailability("opaque");
|
|
368
403
|
setVisibility("default");
|
|
369
404
|
setTimezone(defaultTimezone);
|
|
@@ -409,32 +444,45 @@ export function CreateEventPopover({
|
|
|
409
444
|
const draftId = safeDraftId(draft?.id);
|
|
410
445
|
if (!open || !draftId) return;
|
|
411
446
|
|
|
412
|
-
const
|
|
413
|
-
|
|
447
|
+
const fullDayOutOfOffice = isOutOfOffice && allDay;
|
|
448
|
+
const effectiveAllDay = allDay && !isOutOfOffice && !timedOnlyStatus;
|
|
449
|
+
if (!date || !endDate || (!allDay && (!startTime || !endTime))) {
|
|
414
450
|
return;
|
|
415
451
|
}
|
|
416
452
|
const allDayEnd = new Date(`${endDate}T00:00:00`);
|
|
417
453
|
allDayEnd.setDate(allDayEnd.getDate() + 1);
|
|
418
|
-
const
|
|
419
|
-
?
|
|
420
|
-
:
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
454
|
+
const startValue = fullDayOutOfOffice
|
|
455
|
+
? date
|
|
456
|
+
: effectiveAllDay
|
|
457
|
+
? new Date(`${date}T00:00:00`).toISOString()
|
|
458
|
+
: dateTimeInTimezoneToIso(date, startTime, timezone);
|
|
459
|
+
const endValue = fullDayOutOfOffice
|
|
460
|
+
? endDate
|
|
461
|
+
: effectiveAllDay
|
|
462
|
+
? allDayEnd.toISOString()
|
|
463
|
+
: dateTimeInTimezoneToIso(endDate, endTime, timezone);
|
|
424
464
|
const attachmentResult = validateAttachmentDrafts(attachments);
|
|
425
465
|
const reminderPatch = buildReminderPayload(reminderMode, reminders);
|
|
426
466
|
const nextDraft: CalendarEventDraft = {
|
|
427
467
|
id: draftId,
|
|
428
468
|
createdAt: draft?.createdAt,
|
|
429
469
|
title,
|
|
430
|
-
description,
|
|
431
|
-
start:
|
|
432
|
-
end:
|
|
470
|
+
description: isOutOfOffice ? "" : description,
|
|
471
|
+
start: startValue,
|
|
472
|
+
end: endValue,
|
|
433
473
|
startTimeZone: effectiveAllDay ? undefined : timezone,
|
|
434
474
|
endTimeZone: effectiveAllDay ? undefined : timezone,
|
|
435
|
-
location,
|
|
475
|
+
location: isOutOfOffice ? "" : location,
|
|
436
476
|
allDay: effectiveAllDay,
|
|
477
|
+
fullDay: fullDayOutOfOffice,
|
|
437
478
|
eventType,
|
|
479
|
+
outOfOfficeProperties: isOutOfOffice
|
|
480
|
+
? {
|
|
481
|
+
autoDeclineMode,
|
|
482
|
+
declineMessage:
|
|
483
|
+
autoDeclineMode === "declineNone" ? undefined : declineMessage,
|
|
484
|
+
}
|
|
485
|
+
: undefined,
|
|
438
486
|
transparency:
|
|
439
487
|
eventType === "workingLocation"
|
|
440
488
|
? "transparent"
|
|
@@ -450,14 +498,16 @@ export function CreateEventPopover({
|
|
|
450
498
|
? undefined
|
|
451
499
|
: attachmentResult.attachments,
|
|
452
500
|
attendees:
|
|
453
|
-
attendees.length > 0
|
|
501
|
+
!isOutOfOffice && attendees.length > 0
|
|
454
502
|
? attendees.map((attendee) => ({
|
|
455
503
|
email: attendee.email,
|
|
456
504
|
displayName: attendee.displayName,
|
|
457
505
|
...(attendee.optional === true ? { optional: true } : {}),
|
|
458
506
|
}))
|
|
459
507
|
: undefined,
|
|
460
|
-
...
|
|
508
|
+
...(!isOutOfOffice
|
|
509
|
+
? buildVideoProviderPatch(videoProvider, videoProviderTouched)
|
|
510
|
+
: {}),
|
|
461
511
|
accountEmail,
|
|
462
512
|
workingLocationType,
|
|
463
513
|
workingLocationLabel:
|
|
@@ -493,6 +543,8 @@ export function CreateEventPopover({
|
|
|
493
543
|
location,
|
|
494
544
|
allDay,
|
|
495
545
|
eventType,
|
|
546
|
+
autoDeclineMode,
|
|
547
|
+
declineMessage,
|
|
496
548
|
availability,
|
|
497
549
|
visibility,
|
|
498
550
|
timezone,
|
|
@@ -504,6 +556,7 @@ export function CreateEventPopover({
|
|
|
504
556
|
videoProvider,
|
|
505
557
|
videoProviderTouched,
|
|
506
558
|
workingLocationType,
|
|
559
|
+
isOutOfOffice,
|
|
507
560
|
timedOnlyStatus,
|
|
508
561
|
onDraftChange,
|
|
509
562
|
]);
|
|
@@ -544,6 +597,17 @@ export function CreateEventPopover({
|
|
|
544
597
|
}
|
|
545
598
|
}, [allDay, eventType, timedOnlyStatus]);
|
|
546
599
|
|
|
600
|
+
function handleEventTypeChange(nextEventType: EventType) {
|
|
601
|
+
if (nextEventType === "outOfOffice") {
|
|
602
|
+
if (!title.trim()) setTitle("Out of office");
|
|
603
|
+
setAllDay(true);
|
|
604
|
+
} else if (eventType === "outOfOffice" && title === "Out of office") {
|
|
605
|
+
setTitle("");
|
|
606
|
+
}
|
|
607
|
+
if (nextEventType === "focusTime") setAllDay(false);
|
|
608
|
+
setEventType(nextEventType);
|
|
609
|
+
}
|
|
610
|
+
|
|
547
611
|
function addAttendee(attendee: AttendeeRecipient) {
|
|
548
612
|
setAttendees((prev) => uniqueAttendees([...prev, attendee]));
|
|
549
613
|
}
|
|
@@ -569,7 +633,7 @@ export function CreateEventPopover({
|
|
|
569
633
|
);
|
|
570
634
|
}
|
|
571
635
|
|
|
572
|
-
const effectiveAllDay = allDay && !timedOnlyStatus;
|
|
636
|
+
const effectiveAllDay = allDay && !isOutOfOffice && !timedOnlyStatus;
|
|
573
637
|
const currentStartISO =
|
|
574
638
|
!effectiveAllDay && date && startTime
|
|
575
639
|
? dateTimeInTimezoneToIso(date, startTime, timezone)
|
|
@@ -631,22 +695,31 @@ export function CreateEventPopover({
|
|
|
631
695
|
function handleSubmit(e: React.FormEvent) {
|
|
632
696
|
e.preventDefault();
|
|
633
697
|
const activeDraftId = safeDraftId(draft?.id);
|
|
634
|
-
if (!title.trim()) {
|
|
698
|
+
if (!title.trim() && !isOutOfOffice) {
|
|
635
699
|
toast.error(t("eventForm.titleRequired"));
|
|
636
700
|
return;
|
|
637
701
|
}
|
|
638
702
|
|
|
639
|
-
const
|
|
703
|
+
const fullDayOutOfOffice = isOutOfOffice && allDay;
|
|
704
|
+
const effectiveAllDay = allDay && !isOutOfOffice && !timedOnlyStatus;
|
|
640
705
|
const allDayEnd = new Date(`${endDate}T00:00:00`);
|
|
641
706
|
allDayEnd.setDate(allDayEnd.getDate() + 1);
|
|
642
|
-
const
|
|
643
|
-
?
|
|
644
|
-
:
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
707
|
+
const startValue = fullDayOutOfOffice
|
|
708
|
+
? date
|
|
709
|
+
: effectiveAllDay
|
|
710
|
+
? new Date(`${date}T00:00:00`).toISOString()
|
|
711
|
+
: dateTimeInTimezoneToIso(date, startTime, timezone);
|
|
712
|
+
const endValue = fullDayOutOfOffice
|
|
713
|
+
? endDate
|
|
714
|
+
: effectiveAllDay
|
|
715
|
+
? allDayEnd.toISOString()
|
|
716
|
+
: dateTimeInTimezoneToIso(endDate, endTime, timezone);
|
|
717
|
+
|
|
718
|
+
if (
|
|
719
|
+
fullDayOutOfOffice
|
|
720
|
+
? endDate < date
|
|
721
|
+
: new Date(endValue).getTime() <= new Date(startValue).getTime()
|
|
722
|
+
) {
|
|
650
723
|
toast.error(
|
|
651
724
|
getEventEndValidationMessage({
|
|
652
725
|
allDay: effectiveAllDay,
|
|
@@ -683,15 +756,22 @@ export function CreateEventPopover({
|
|
|
683
756
|
};
|
|
684
757
|
|
|
685
758
|
const payload: Parameters<typeof createEvent.mutate>[0] = {
|
|
686
|
-
title: title.trim(),
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
759
|
+
title: title.trim() || undefined,
|
|
760
|
+
titleIsGenerated: !title.trim(),
|
|
761
|
+
description: isOutOfOffice ? "" : description,
|
|
762
|
+
start: startValue,
|
|
763
|
+
end: endValue,
|
|
690
764
|
startTimeZone: effectiveAllDay ? undefined : timezone,
|
|
691
765
|
endTimeZone: effectiveAllDay ? undefined : timezone,
|
|
692
|
-
location,
|
|
766
|
+
location: isOutOfOffice ? "" : location,
|
|
693
767
|
accountEmail,
|
|
694
768
|
allDay: effectiveAllDay,
|
|
769
|
+
fullDay: fullDayOutOfOffice,
|
|
770
|
+
autoDeclineMode: isOutOfOffice ? autoDeclineMode : undefined,
|
|
771
|
+
declineMessage:
|
|
772
|
+
isOutOfOffice && autoDeclineMode !== "declineNone"
|
|
773
|
+
? declineMessage
|
|
774
|
+
: undefined,
|
|
695
775
|
transparency:
|
|
696
776
|
eventType === "workingLocation"
|
|
697
777
|
? "transparent"
|
|
@@ -708,19 +788,23 @@ export function CreateEventPopover({
|
|
|
708
788
|
? attachmentResult.attachments
|
|
709
789
|
: undefined,
|
|
710
790
|
attendees:
|
|
711
|
-
finalAttendees.length > 0
|
|
791
|
+
!isOutOfOffice && finalAttendees.length > 0
|
|
712
792
|
? finalAttendees.map((attendee) => ({
|
|
713
793
|
email: attendee.email,
|
|
714
794
|
displayName: attendee.displayName,
|
|
715
795
|
...(attendee.optional === true ? { optional: true } : {}),
|
|
716
796
|
}))
|
|
717
797
|
: undefined,
|
|
718
|
-
...
|
|
798
|
+
...(!isOutOfOffice
|
|
799
|
+
? buildVideoProviderPatch(videoProvider, videoProviderTouched)
|
|
800
|
+
: {}),
|
|
719
801
|
};
|
|
720
802
|
|
|
803
|
+
preserveInitializationOnCloseRef.current = true;
|
|
721
804
|
onOpenChange(false);
|
|
722
805
|
createEvent.mutate(payload, {
|
|
723
806
|
onSuccess: (result) => {
|
|
807
|
+
initializedKeyRef.current = null;
|
|
724
808
|
if (activeDraftId) {
|
|
725
809
|
deletePersistedDraft(activeDraftId);
|
|
726
810
|
onDraftCreated?.(activeDraftId);
|
|
@@ -760,7 +844,7 @@ export function CreateEventPopover({
|
|
|
760
844
|
align="end"
|
|
761
845
|
sideOffset={8}
|
|
762
846
|
collisionPadding={16}
|
|
763
|
-
className="max-h-[var(--radix-popover-content-available-height)] w-[calc(100vw-2rem)] overflow-
|
|
847
|
+
className="flex max-h-[var(--radix-popover-content-available-height)] w-[calc(100vw-2rem)] flex-col overflow-hidden p-0 sm:w-80"
|
|
764
848
|
onInteractOutside={(event) => {
|
|
765
849
|
if (findTimeOpen) {
|
|
766
850
|
event.preventDefault();
|
|
@@ -772,29 +856,31 @@ export function CreateEventPopover({
|
|
|
772
856
|
}
|
|
773
857
|
}}
|
|
774
858
|
>
|
|
775
|
-
<div className="
|
|
859
|
+
<div className="shrink-0 px-4 pb-3 pt-4 text-sm font-semibold">
|
|
776
860
|
{draft ? t("eventForm.reviewInvite") : t("eventForm.newEvent")}
|
|
777
861
|
</div>
|
|
778
862
|
<form
|
|
779
863
|
ref={formRef}
|
|
780
864
|
onSubmit={handleSubmit}
|
|
781
865
|
onKeyDown={handleFormKeyDown}
|
|
782
|
-
className="
|
|
866
|
+
className="flex min-h-0 flex-1 flex-col"
|
|
783
867
|
>
|
|
784
|
-
<div className="space-y-3">
|
|
785
|
-
|
|
786
|
-
<
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
868
|
+
<div className="min-h-0 flex-1 space-y-3 overflow-y-auto px-4 pb-3">
|
|
869
|
+
{!isOutOfOffice && (
|
|
870
|
+
<div className="space-y-1.5">
|
|
871
|
+
<Label htmlFor="event-title" className="text-xs">
|
|
872
|
+
{t("eventForm.title")}
|
|
873
|
+
</Label>
|
|
874
|
+
<Input
|
|
875
|
+
id="event-title"
|
|
876
|
+
value={title}
|
|
877
|
+
onChange={(e) => setTitle(e.target.value)}
|
|
878
|
+
placeholder={t("eventForm.eventTitlePlaceholder")}
|
|
879
|
+
autoFocus
|
|
880
|
+
className="h-8 text-sm"
|
|
881
|
+
/>
|
|
882
|
+
</div>
|
|
883
|
+
)}
|
|
798
884
|
|
|
799
885
|
{shouldShowEventAccountSelector(connectedAccounts) &&
|
|
800
886
|
accountEmail && (
|
|
@@ -843,7 +929,9 @@ export function CreateEventPopover({
|
|
|
843
929
|
</Label>
|
|
844
930
|
<Select
|
|
845
931
|
value={eventType}
|
|
846
|
-
onValueChange={(value) =>
|
|
932
|
+
onValueChange={(value) =>
|
|
933
|
+
handleEventTypeChange(value as EventType)
|
|
934
|
+
}
|
|
847
935
|
>
|
|
848
936
|
<SelectTrigger id="event-type" className="h-8 text-sm">
|
|
849
937
|
<SelectValue />
|
|
@@ -897,31 +985,33 @@ export function CreateEventPopover({
|
|
|
897
985
|
</div>
|
|
898
986
|
)}
|
|
899
987
|
|
|
900
|
-
|
|
901
|
-
<div className="
|
|
902
|
-
<
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
988
|
+
{!isOutOfOffice && (
|
|
989
|
+
<div className="space-y-1.5">
|
|
990
|
+
<div className="flex items-center justify-between gap-2">
|
|
991
|
+
<Label htmlFor="event-description" className="text-xs">
|
|
992
|
+
{t("eventForm.description")}
|
|
993
|
+
</Label>
|
|
994
|
+
<Button
|
|
995
|
+
type="button"
|
|
996
|
+
variant="ghost"
|
|
997
|
+
size="sm"
|
|
998
|
+
className="h-6 gap-1 px-1.5 text-[11px] text-muted-foreground"
|
|
999
|
+
onClick={handleDraftDescription}
|
|
1000
|
+
>
|
|
1001
|
+
<IconMessage className="h-3 w-3" />
|
|
1002
|
+
{t("eventForm.askAi")}
|
|
1003
|
+
</Button>
|
|
1004
|
+
</div>
|
|
1005
|
+
<Textarea
|
|
1006
|
+
id="event-description"
|
|
1007
|
+
value={description}
|
|
1008
|
+
onChange={(e) => setDescription(e.target.value)}
|
|
1009
|
+
placeholder={t("eventForm.optionalDescription")}
|
|
1010
|
+
rows={2}
|
|
1011
|
+
className="text-sm"
|
|
1012
|
+
/>
|
|
915
1013
|
</div>
|
|
916
|
-
|
|
917
|
-
id="event-description"
|
|
918
|
-
value={description}
|
|
919
|
-
onChange={(e) => setDescription(e.target.value)}
|
|
920
|
-
placeholder={t("eventForm.optionalDescription")}
|
|
921
|
-
rows={2}
|
|
922
|
-
className="text-sm"
|
|
923
|
-
/>
|
|
924
|
-
</div>
|
|
1014
|
+
)}
|
|
925
1015
|
|
|
926
1016
|
<div className="grid grid-cols-2 gap-3">
|
|
927
1017
|
<div className="space-y-1.5">
|
|
@@ -970,9 +1060,7 @@ export function CreateEventPopover({
|
|
|
970
1060
|
</div>
|
|
971
1061
|
</TooltipTrigger>
|
|
972
1062
|
<TooltipContent>
|
|
973
|
-
{
|
|
974
|
-
? t("eventForm.outOfOfficeTimedOnly")
|
|
975
|
-
: t("eventForm.focusTimeTimedOnly")}
|
|
1063
|
+
{t("eventForm.focusTimeTimedOnly")}
|
|
976
1064
|
</TooltipContent>
|
|
977
1065
|
</Tooltip>
|
|
978
1066
|
) : (
|
|
@@ -1023,7 +1111,7 @@ export function CreateEventPopover({
|
|
|
1023
1111
|
</div>
|
|
1024
1112
|
)}
|
|
1025
1113
|
|
|
1026
|
-
{!effectiveAllDay && (
|
|
1114
|
+
{!isOutOfOffice && !effectiveAllDay && (
|
|
1027
1115
|
<Button
|
|
1028
1116
|
type="button"
|
|
1029
1117
|
variant="outline"
|
|
@@ -1036,110 +1124,130 @@ export function CreateEventPopover({
|
|
|
1036
1124
|
</Button>
|
|
1037
1125
|
)}
|
|
1038
1126
|
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1127
|
+
{!isOutOfOffice && (
|
|
1128
|
+
<>
|
|
1129
|
+
<div className="space-y-1.5">
|
|
1130
|
+
<Label htmlFor="event-attendees" className="text-xs">
|
|
1131
|
+
{t("eventForm.attendees")}
|
|
1132
|
+
</Label>
|
|
1133
|
+
<AttendeeAutocomplete
|
|
1134
|
+
ref={attendeeAutocompleteRef}
|
|
1135
|
+
attendees={attendees}
|
|
1136
|
+
onAdd={addAttendee}
|
|
1137
|
+
onRemove={removeAttendee}
|
|
1138
|
+
onToggleOptional={toggleAttendeeOptional}
|
|
1139
|
+
inputId="event-attendees"
|
|
1140
|
+
placeholder={t("eventForm.attendeesPlaceholder")}
|
|
1141
|
+
onEmptyEnter={() => formRef.current?.requestSubmit()}
|
|
1142
|
+
/>
|
|
1143
|
+
{attendees.length > 0 && (
|
|
1144
|
+
<p className="flex items-center gap-1 text-[10px] text-muted-foreground">
|
|
1145
|
+
<IconUsers className="h-3 w-3" />
|
|
1146
|
+
{t("eventForm.invitedNotice", {
|
|
1147
|
+
count: attendees.length,
|
|
1148
|
+
})}
|
|
1149
|
+
</p>
|
|
1150
|
+
)}
|
|
1151
|
+
</div>
|
|
1060
1152
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1153
|
+
<div className="space-y-1.5">
|
|
1154
|
+
<Label htmlFor="event-location" className="text-xs">
|
|
1155
|
+
{t("eventForm.location")}
|
|
1156
|
+
</Label>
|
|
1157
|
+
<Input
|
|
1158
|
+
id="event-location"
|
|
1159
|
+
value={location}
|
|
1160
|
+
onChange={(e) => setLocation(e.target.value)}
|
|
1161
|
+
placeholder={t("eventForm.optionalLocation")}
|
|
1162
|
+
className="h-8 text-sm"
|
|
1163
|
+
list={
|
|
1164
|
+
locationSuggestions.length > 0
|
|
1165
|
+
? locationSuggestionsId
|
|
1166
|
+
: undefined
|
|
1167
|
+
}
|
|
1168
|
+
/>
|
|
1169
|
+
{locationSuggestions.length > 0 && (
|
|
1170
|
+
<datalist id={locationSuggestionsId}>
|
|
1171
|
+
{locationSuggestions.map((suggestion) => (
|
|
1172
|
+
<option key={suggestion} value={suggestion} />
|
|
1173
|
+
))}
|
|
1174
|
+
</datalist>
|
|
1175
|
+
)}
|
|
1176
|
+
</div>
|
|
1073
1177
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
<
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
<
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
<
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
error
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1178
|
+
<div className="space-y-1.5">
|
|
1179
|
+
<Label htmlFor="event-video-provider" className="text-xs">
|
|
1180
|
+
{t("eventForm.video")}
|
|
1181
|
+
</Label>
|
|
1182
|
+
<Select
|
|
1183
|
+
value={videoProvider}
|
|
1184
|
+
onValueChange={(value) => {
|
|
1185
|
+
setVideoProvider(value as VideoProvider);
|
|
1186
|
+
setVideoProviderTouched(true);
|
|
1187
|
+
}}
|
|
1188
|
+
>
|
|
1189
|
+
<SelectTrigger
|
|
1190
|
+
id="event-video-provider"
|
|
1191
|
+
className="h-8 text-sm"
|
|
1192
|
+
>
|
|
1193
|
+
<SelectValue />
|
|
1194
|
+
</SelectTrigger>
|
|
1195
|
+
<SelectContent>
|
|
1196
|
+
<SelectItem value="none">
|
|
1197
|
+
{t("eventForm.noVideo")}
|
|
1198
|
+
</SelectItem>
|
|
1199
|
+
<SelectItem value="google_meet">
|
|
1200
|
+
<span className="flex items-center gap-2">
|
|
1201
|
+
<IconVideo className="h-3.5 w-3.5" />
|
|
1202
|
+
{t("eventForm.googleMeet")}
|
|
1203
|
+
</span>
|
|
1204
|
+
</SelectItem>
|
|
1205
|
+
<SelectItem value="zoom">
|
|
1206
|
+
<span className="flex items-center gap-2">
|
|
1207
|
+
<IconBrandZoom className="h-3.5 w-3.5" />
|
|
1208
|
+
{t("eventForm.zoom")}
|
|
1209
|
+
</span>
|
|
1210
|
+
</SelectItem>
|
|
1211
|
+
</SelectContent>
|
|
1212
|
+
</Select>
|
|
1213
|
+
{videoProvider === "zoom" && !zoomStatus.data?.connected && (
|
|
1214
|
+
<div className="rounded-md border border-border bg-muted/30 p-2">
|
|
1215
|
+
<div className="flex items-center justify-between gap-2">
|
|
1216
|
+
<p className="text-xs text-muted-foreground">
|
|
1217
|
+
{zoomStatus.data?.configured === false
|
|
1218
|
+
? t("eventForm.zoomNotConfigured")
|
|
1219
|
+
: t("eventForm.connectZoomBeforeCreate")}
|
|
1220
|
+
</p>
|
|
1221
|
+
{zoomStatus.data?.configured !== false && (
|
|
1222
|
+
<Button
|
|
1223
|
+
type="button"
|
|
1224
|
+
variant="outline"
|
|
1225
|
+
size="sm"
|
|
1226
|
+
className="h-7 shrink-0 gap-1.5 text-xs"
|
|
1227
|
+
disabled={connectZoom.isPending}
|
|
1228
|
+
onClick={() =>
|
|
1229
|
+
connectZoom.mutate(undefined, {
|
|
1230
|
+
onSuccess: () =>
|
|
1231
|
+
toast(t("eventForm.zoomConnectionOpened")),
|
|
1232
|
+
onError: (error) =>
|
|
1233
|
+
toast.error(
|
|
1234
|
+
error instanceof Error
|
|
1235
|
+
? error.message
|
|
1236
|
+
: t("eventForm.zoomConnectFailed"),
|
|
1237
|
+
),
|
|
1238
|
+
})
|
|
1239
|
+
}
|
|
1240
|
+
>
|
|
1241
|
+
<IconBrandZoom className="h-3.5 w-3.5" />
|
|
1242
|
+
{t("common.connect")}
|
|
1243
|
+
</Button>
|
|
1244
|
+
)}
|
|
1245
|
+
</div>
|
|
1246
|
+
</div>
|
|
1247
|
+
)}
|
|
1140
1248
|
</div>
|
|
1141
|
-
|
|
1142
|
-
|
|
1249
|
+
</>
|
|
1250
|
+
)}
|
|
1143
1251
|
|
|
1144
1252
|
<Collapsible>
|
|
1145
1253
|
<CollapsibleTrigger asChild>
|
|
@@ -1157,76 +1265,145 @@ export function CreateEventPopover({
|
|
|
1157
1265
|
</Button>
|
|
1158
1266
|
</CollapsibleTrigger>
|
|
1159
1267
|
<CollapsibleContent className="space-y-3">
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
<
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
: "opaque"
|
|
1172
|
-
}
|
|
1173
|
-
onValueChange={(value) =>
|
|
1174
|
-
setAvailability(value as Availability)
|
|
1175
|
-
}
|
|
1176
|
-
disabled={eventType !== "default"}
|
|
1177
|
-
>
|
|
1178
|
-
<SelectTrigger
|
|
1179
|
-
id="event-availability"
|
|
1268
|
+
{isOutOfOffice && (
|
|
1269
|
+
<>
|
|
1270
|
+
<div className="space-y-1.5">
|
|
1271
|
+
<Label htmlFor="event-title" className="text-xs">
|
|
1272
|
+
{t("eventForm.title")}
|
|
1273
|
+
</Label>
|
|
1274
|
+
<Input
|
|
1275
|
+
id="event-title"
|
|
1276
|
+
value={title}
|
|
1277
|
+
onChange={(event) => setTitle(event.target.value)}
|
|
1278
|
+
placeholder={t("eventForm.outOfOffice")}
|
|
1180
1279
|
className="h-8 text-sm"
|
|
1280
|
+
/>
|
|
1281
|
+
</div>
|
|
1282
|
+
<div className="space-y-1.5">
|
|
1283
|
+
<Label htmlFor="event-auto-decline" className="text-xs">
|
|
1284
|
+
{t("eventForm.autoDecline")}
|
|
1285
|
+
</Label>
|
|
1286
|
+
<Select
|
|
1287
|
+
value={autoDeclineMode}
|
|
1288
|
+
onValueChange={(value) =>
|
|
1289
|
+
setAutoDeclineMode(value as AutoDeclineMode)
|
|
1290
|
+
}
|
|
1181
1291
|
>
|
|
1182
|
-
<
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
</
|
|
1188
|
-
<
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1292
|
+
<SelectTrigger
|
|
1293
|
+
id="event-auto-decline"
|
|
1294
|
+
className="h-8 text-sm"
|
|
1295
|
+
>
|
|
1296
|
+
<SelectValue />
|
|
1297
|
+
</SelectTrigger>
|
|
1298
|
+
<SelectContent>
|
|
1299
|
+
<SelectItem value="declineAllConflictingInvitations">
|
|
1300
|
+
{t("eventForm.declineAllConflicts")}
|
|
1301
|
+
</SelectItem>
|
|
1302
|
+
<SelectItem value="declineOnlyNewConflictingInvitations">
|
|
1303
|
+
{t("eventForm.declineNewConflicts")}
|
|
1304
|
+
</SelectItem>
|
|
1305
|
+
<SelectItem value="declineNone">
|
|
1306
|
+
{t("eventForm.declineNone")}
|
|
1307
|
+
</SelectItem>
|
|
1308
|
+
</SelectContent>
|
|
1309
|
+
</Select>
|
|
1310
|
+
</div>
|
|
1311
|
+
{autoDeclineMode !== "declineNone" && (
|
|
1312
|
+
<div className="space-y-1.5">
|
|
1313
|
+
<Label
|
|
1314
|
+
htmlFor="event-decline-message"
|
|
1315
|
+
className="text-xs"
|
|
1316
|
+
>
|
|
1317
|
+
{t("eventForm.declineMessage")}
|
|
1318
|
+
</Label>
|
|
1319
|
+
<Textarea
|
|
1320
|
+
id="event-decline-message"
|
|
1321
|
+
value={declineMessage}
|
|
1322
|
+
onChange={(event) =>
|
|
1323
|
+
setDeclineMessage(event.target.value)
|
|
1324
|
+
}
|
|
1325
|
+
rows={2}
|
|
1326
|
+
className="text-sm"
|
|
1327
|
+
/>
|
|
1328
|
+
</div>
|
|
1329
|
+
)}
|
|
1330
|
+
</>
|
|
1331
|
+
)}
|
|
1194
1332
|
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1333
|
+
{!isOutOfOffice && (
|
|
1334
|
+
<div className="grid grid-cols-2 gap-3">
|
|
1335
|
+
<div className="space-y-1.5">
|
|
1336
|
+
<Label htmlFor="event-availability" className="text-xs">
|
|
1337
|
+
{t("eventForm.showAs")}
|
|
1338
|
+
</Label>
|
|
1339
|
+
<Select
|
|
1340
|
+
value={
|
|
1341
|
+
eventType === "workingLocation"
|
|
1342
|
+
? "transparent"
|
|
1343
|
+
: eventType === "default"
|
|
1344
|
+
? availability
|
|
1345
|
+
: "opaque"
|
|
1346
|
+
}
|
|
1347
|
+
onValueChange={(value) =>
|
|
1348
|
+
setAvailability(value as Availability)
|
|
1349
|
+
}
|
|
1350
|
+
disabled={eventType !== "default"}
|
|
1351
|
+
>
|
|
1352
|
+
<SelectTrigger
|
|
1353
|
+
id="event-availability"
|
|
1354
|
+
className="h-8 text-sm"
|
|
1355
|
+
>
|
|
1356
|
+
<SelectValue />
|
|
1357
|
+
</SelectTrigger>
|
|
1358
|
+
<SelectContent>
|
|
1359
|
+
<SelectItem value="opaque">
|
|
1360
|
+
{t("eventForm.busy")}
|
|
1361
|
+
</SelectItem>
|
|
1362
|
+
<SelectItem value="transparent">
|
|
1363
|
+
{t("eventForm.free")}
|
|
1364
|
+
</SelectItem>
|
|
1365
|
+
</SelectContent>
|
|
1366
|
+
</Select>
|
|
1367
|
+
</div>
|
|
1368
|
+
|
|
1369
|
+
<div className="space-y-1.5">
|
|
1370
|
+
<Label htmlFor="event-visibility" className="text-xs">
|
|
1371
|
+
{t("eventForm.visibility")}
|
|
1372
|
+
</Label>
|
|
1373
|
+
<Select
|
|
1374
|
+
value={
|
|
1375
|
+
eventType === "workingLocation"
|
|
1376
|
+
? "public"
|
|
1377
|
+
: visibility
|
|
1378
|
+
}
|
|
1379
|
+
onValueChange={(value) =>
|
|
1380
|
+
setVisibility(value as Visibility)
|
|
1381
|
+
}
|
|
1382
|
+
disabled={eventType === "workingLocation"}
|
|
1211
1383
|
>
|
|
1212
|
-
<
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
</
|
|
1218
|
-
<
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1384
|
+
<SelectTrigger
|
|
1385
|
+
id="event-visibility"
|
|
1386
|
+
className="h-8 text-sm"
|
|
1387
|
+
>
|
|
1388
|
+
<SelectValue />
|
|
1389
|
+
</SelectTrigger>
|
|
1390
|
+
<SelectContent>
|
|
1391
|
+
<SelectItem value="default">
|
|
1392
|
+
{t("eventForm.default")}
|
|
1393
|
+
</SelectItem>
|
|
1394
|
+
<SelectItem value="public">
|
|
1395
|
+
{t("eventForm.public")}
|
|
1396
|
+
</SelectItem>
|
|
1397
|
+
<SelectItem value="private">
|
|
1398
|
+
{t("eventForm.private")}
|
|
1399
|
+
</SelectItem>
|
|
1400
|
+
</SelectContent>
|
|
1401
|
+
</Select>
|
|
1402
|
+
</div>
|
|
1226
1403
|
</div>
|
|
1227
|
-
|
|
1404
|
+
)}
|
|
1228
1405
|
|
|
1229
|
-
{!allDay && (
|
|
1406
|
+
{(!allDay || isOutOfOffice) && (
|
|
1230
1407
|
<div className="space-y-1.5">
|
|
1231
1408
|
<Label htmlFor="event-timezone" className="text-xs">
|
|
1232
1409
|
{t("eventForm.timezone")}
|
|
@@ -1293,7 +1470,7 @@ export function CreateEventPopover({
|
|
|
1293
1470
|
onRemoveAttendee={removeAttendee}
|
|
1294
1471
|
/>
|
|
1295
1472
|
|
|
1296
|
-
<div className="flex items-center justify-between
|
|
1473
|
+
<div className="flex shrink-0 items-center justify-between border-t border-border bg-popover px-4 py-3">
|
|
1297
1474
|
<p className="text-[10px] text-muted-foreground/60">
|
|
1298
1475
|
<kbd className="rounded border border-border bg-muted px-1 font-mono text-[10px]">
|
|
1299
1476
|
↵
|
|
@@ -1306,7 +1483,10 @@ export function CreateEventPopover({
|
|
|
1306
1483
|
variant="ghost"
|
|
1307
1484
|
size="sm"
|
|
1308
1485
|
className="h-7 text-xs"
|
|
1309
|
-
onClick={() =>
|
|
1486
|
+
onClick={() => {
|
|
1487
|
+
initializedKeyRef.current = null;
|
|
1488
|
+
onOpenChange(false);
|
|
1489
|
+
}}
|
|
1310
1490
|
>
|
|
1311
1491
|
{t("eventForm.cancel")}
|
|
1312
1492
|
</Button>
|