@agent-native/core 0.141.6 → 0.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-native.eject.json +9 -0
- package/corpus/README.md +1 -1
- package/corpus/templates/analytics/.agents/skills/dashboard-management/SKILL.md +3 -14
- package/corpus/templates/analytics/.agents/skills/data-querying/SKILL.md +11 -6
- package/corpus/templates/analytics/.agents/skills/prometheus/SKILL.md +5 -5
- package/corpus/templates/analytics/.agents/skills/provider-api/SKILL.md +19 -0
- package/corpus/templates/analytics/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/analytics/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/analytics/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/analytics/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/analytics/AGENTS.md +37 -40
- package/corpus/templates/analytics/actions/compose-dashboard.ts +1 -1
- package/corpus/templates/analytics/actions/ensure-native-v2-dashboards.ts +1 -1
- package/corpus/templates/analytics/actions/list-dashboard-usage-stats.ts +17 -22
- package/corpus/templates/analytics/actions/migrate-first-party-analytics-to-bigquery.ts +135 -0
- package/corpus/templates/analytics/actions/navigate.ts +5 -6
- package/corpus/templates/analytics/actions/provider-api-register.ts +50 -0
- package/corpus/templates/analytics/actions/query-agent-native-analytics.ts +46 -13
- package/corpus/templates/analytics/actions/test-custom-api-connection.ts +106 -0
- package/corpus/templates/analytics/actions/update-dashboard.ts +0 -1
- package/corpus/templates/analytics/actions/view-screen.ts +0 -20
- package/corpus/templates/analytics/app/components/CustomApiCard.tsx +430 -0
- package/corpus/templates/analytics/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/analytics/app/hooks/use-navigation-state.ts +5 -5
- package/corpus/templates/analytics/app/i18n-data.ts +682 -90
- package/corpus/templates/analytics/app/lib/native-mcp-exclusions.ts +6 -0
- package/corpus/templates/analytics/app/lib/sql-query.ts +33 -6
- package/corpus/templates/analytics/app/pages/Agents.tsx +0 -3
- package/corpus/templates/analytics/app/pages/DataSources.tsx +4 -0
- package/corpus/templates/analytics/app/pages/Settings.tsx +22 -43
- package/corpus/templates/analytics/app/pages/settings/settings-search.ts +23 -20
- package/corpus/templates/analytics/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/analytics/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/analytics/app/routes/team.tsx +1 -1
- package/corpus/templates/analytics/changelog/2026-08-05-settings-no-longer-includes-an-unnecessary-about-section.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-analytics-dashboards-load-reliably-during-background-data-sw.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-analytics-dashboards-remain-responsive-while-historical-data.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-analytics-query-results-now-render-as-a-table-with-csv-downl.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-connect-public-https-custom-apis-and-hand-tested-endpoints-t.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-durable-agent-worker-memory.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-live-dashboard-panels-use-the-shared-query-timeout.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-on-demand-billing-is-available-as-a-native-dashboard-with-ta.md +6 -0
- package/corpus/templates/analytics/changelog/2026-08-06-visible-dashboard-names-are-unique.md +6 -0
- package/corpus/templates/analytics/docs/schemas/first-party-analytics.md +1 -1
- package/corpus/templates/analytics/netlify.toml +7 -0
- package/corpus/templates/analytics/scripts/emit-netlify-dashboard-report-cron.ts +4 -0
- package/corpus/templates/analytics/scripts/first-party-analytics-bigquery.sql +104 -0
- package/corpus/templates/analytics/server/db/index.ts +27 -0
- package/corpus/templates/analytics/server/db/schema.ts +10 -0
- package/corpus/templates/analytics/server/lib/agent-chat-plan-mode.ts +0 -2
- package/corpus/templates/analytics/server/lib/dashboards-store.ts +227 -60
- package/corpus/templates/analytics/server/lib/first-party-analytics-backend.ts +1147 -0
- package/corpus/templates/analytics/server/lib/first-party-analytics-health.ts +34 -15
- package/corpus/templates/analytics/server/lib/first-party-analytics.ts +57 -4
- package/corpus/templates/analytics/server/lib/native-v2-dashboards.ts +227 -1
- package/corpus/templates/analytics/server/lib/real-data-actions.ts +1 -3
- package/corpus/templates/analytics/server/plugins/agent-chat.ts +7 -4
- package/corpus/templates/analytics/server/plugins/analytics-rollup-backfill-jobs.ts +1 -0
- package/corpus/templates/analytics/server/plugins/db.ts +52 -18
- package/corpus/templates/assets/.agents/skills/asset-generation/SKILL.md +36 -8
- package/corpus/templates/assets/.agents/skills/image-generation/SKILL.md +16 -1
- package/corpus/templates/assets/.agents/skills/library-management/SKILL.md +16 -1
- package/corpus/templates/assets/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/assets/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/assets/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/assets/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/assets/AGENTS.md +1 -0
- package/corpus/templates/assets/actions/_helpers.ts +12 -0
- package/corpus/templates/assets/actions/generate-image.ts +9 -3
- package/corpus/templates/assets/actions/import-style-from-url.ts +115 -0
- package/corpus/templates/assets/app/hooks/use-navigation-state.ts +3 -1
- package/corpus/templates/assets/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/assets/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/assets/app/routes/settings.tsx +5 -0
- package/corpus/templates/assets/app/routes/team.tsx +1 -1
- package/corpus/templates/assets/changelog/2026-08-05-brand-kits-can-import-a-website-s-hydrated-visual-language-a.md +6 -0
- package/corpus/templates/assets/changelog/2026-08-05-generated-images-now-hand-off-embeddable-previews-to-other-w.md +6 -0
- package/corpus/templates/assets/server/lib/generation.ts +58 -0
- package/corpus/templates/assets/shared/api.ts +12 -0
- package/corpus/templates/brain/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/brain/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/brain/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/brain/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/brain/actions/list-connection-providers.ts +24 -3
- package/corpus/templates/brain/app/lib/dispatch-links.ts +44 -0
- package/corpus/templates/brain/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/brain/app/routes/sources.tsx +15 -7
- package/corpus/templates/brain/app/routes/team.tsx +1 -1
- package/corpus/templates/brain/app/routes.ts +1 -1
- package/corpus/templates/brain/changelog/2026-08-06-brain-provider-setup-links-open-dispatch-correctly-in-standa.md +6 -0
- package/corpus/templates/brain/server/plugins/agent-chat.ts +1 -0
- package/corpus/templates/calendar/.agents/skills/event-management/SKILL.md +26 -0
- package/corpus/templates/calendar/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/calendar/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/calendar/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/calendar/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/calendar/AGENTS.md +11 -32
- package/corpus/templates/calendar/actions/update-event.ts +107 -1
- package/corpus/templates/calendar/app/components/calendar/EventCalendarSelect.tsx +83 -0
- package/corpus/templates/calendar/app/components/calendar/EventDetailPanel.tsx +57 -0
- package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +59 -73
- package/corpus/templates/calendar/app/components/layout/AppLayout.tsx +3 -1
- package/corpus/templates/calendar/app/hooks/use-events.ts +4 -1
- package/corpus/templates/calendar/app/i18n-data.ts +20 -0
- package/corpus/templates/calendar/app/routes/_app.extensions._index.tsx +1 -1
- package/corpus/templates/calendar/app/routes/_app.settings.$.tsx +1 -0
- package/corpus/templates/calendar/app/routes/_app.team.tsx +1 -1
- package/corpus/templates/calendar/changelog/2026-08-06-delegated-requests-continue-in-the-background.md +6 -0
- package/corpus/templates/calendar/changelog/2026-08-06-existing-events-can-move-between-connected-google-account-ca.md +6 -0
- package/corpus/templates/calendar/server/lib/google-calendar.ts +101 -0
- package/corpus/templates/calendar/server/plugins/agent-chat.ts +7 -1
- package/corpus/templates/chat/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/chat/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/chat/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/chat/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/chat/app/components/layout/Layout.tsx +1 -1
- package/corpus/templates/chat/app/hooks/use-navigation-state.ts +1 -1
- package/corpus/templates/chat/app/root.tsx +1 -1
- package/corpus/templates/chat/app/routes/agent.tsx +7 -7
- package/corpus/templates/chat/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/chat/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/chat/app/routes/team.tsx +1 -1
- package/corpus/templates/clips/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/clips/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/clips/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/clips/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/clips/app/components/editor/editor-layout.tsx +9 -24
- package/corpus/templates/clips/app/components/editor/timeline-geometry.ts +15 -0
- package/corpus/templates/clips/app/components/editor/waveform.tsx +4 -17
- package/corpus/templates/clips/app/components/library/library-layout.tsx +1 -1
- package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +14 -3
- package/corpus/templates/clips/app/components/player/transcript-panel.tsx +1 -1
- package/corpus/templates/clips/app/components/recorder/storage-setup-card.tsx +1 -1
- package/corpus/templates/clips/app/routes/_app.extensions._index.tsx +1 -1
- package/corpus/templates/clips/app/routes/_app.settings.$.tsx +1 -0
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +28 -38
- package/corpus/templates/clips/app/routes/share.$shareId.tsx +21 -27
- package/corpus/templates/clips/changelog/2026-08-06-clips-recovers-from-stalled-recording-setup-without-requirin.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-06-clips-starts-faster-after-a-deploy-or-idle-period-startup-no.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-06-deleting-a-recording-returns-cleanly-to-the-library-and-fit-.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-06-hide-clip-insights-from-viewers-without-analytics-access.md +6 -0
- package/corpus/templates/clips/desktop/src/app.tsx +48 -20
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +275 -74
- package/corpus/templates/clips/desktop/src/lib/recording-start-guard.ts +84 -0
- package/corpus/templates/clips/desktop/src/overlays/toolbar.tsx +14 -4
- package/corpus/templates/clips/server/plugins/db.ts +214 -26
- package/corpus/templates/content/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/content/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/content/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/content/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/content/app/routes/_app.extensions._index.tsx +1 -1
- package/corpus/templates/content/app/routes/_app.settings.$.tsx +1 -0
- package/corpus/templates/content/app/routes/_app.team.tsx +1 -1
- package/corpus/templates/content/e2e/global-setup.ts +1 -1
- package/corpus/templates/crm/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/crm/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/crm/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/crm/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/crm/changelog/2026-08-06-crm-starts-faster-after-a-deploy-or-idle-period-one-time-dat.md +6 -0
- package/corpus/templates/crm/server/plugins/db.ts +11 -8
- package/corpus/templates/design/.agents/skills/design-generation/SKILL.md +36 -1
- package/corpus/templates/design/.agents/skills/design-systems/SKILL.md +6 -1
- package/corpus/templates/design/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/design/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/design/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/design/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/design/actions/analyze-brand-assets.ts +7 -7
- package/corpus/templates/design/actions/import-from-url.ts +6 -5
- package/corpus/templates/design/app/components/design/LayersPanel.tsx +27 -18
- package/corpus/templates/design/app/pages/DesignSystemSetup.tsx +2 -2
- package/corpus/templates/design/app/pages/Index.tsx +6 -2
- package/corpus/templates/design/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/design/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/design/app/routes/team.tsx +1 -1
- package/corpus/templates/design/changelog/2026-08-05-deleting-a-design-from-the-home-page-no-longer-leaves-the-ap.md +6 -0
- package/corpus/templates/design/changelog/2026-08-05-renaming-a-layer-now-focuses-its-name-field-automatically.md +6 -0
- package/corpus/templates/design/changelog/2026-08-05-website-url-imports-now-capture-hydrated-browser-computed-de.md +6 -0
- package/corpus/templates/design/e2e/global-setup.ts +1 -1
- package/corpus/templates/design/server/plugins/agent-chat.ts +2 -0
- package/corpus/templates/dispatch/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/dispatch/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/dispatch/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/dispatch/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/dispatch/app/hooks/use-navigation-state.ts +1 -1
- package/corpus/templates/dispatch/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/dispatch/app/routes/team.tsx +1 -1
- package/corpus/templates/dispatch/changelog/2026-08-06-ready-workspace-apps-stay-one-click-away-in-a-compact-dispat.md +6 -0
- package/corpus/templates/dispatch/changelog/2026-08-06-shared-vault-values-and-management-are-now-restricted-to-wor.md +6 -0
- package/corpus/templates/factory/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/factory/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/factory/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/factory/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/factory/app/hooks/use-navigation-state.ts +1 -1
- package/corpus/templates/factory/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/factory/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/factory/app/routes/team.tsx +1 -1
- package/corpus/templates/forms/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/forms/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/forms/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/forms/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/forms/app/routes/_app.extensions._index.tsx +1 -1
- package/corpus/templates/forms/app/routes/_app.settings.$.tsx +1 -0
- package/corpus/templates/forms/app/routes/_app.team.tsx +1 -1
- package/corpus/templates/forms/changelog/2026-08-06-delegated-requests-continue-in-the-background.md +6 -0
- package/corpus/templates/forms/server/plugins/agent-chat.ts +4 -0
- package/corpus/templates/forms/shared/navigation.ts +1 -1
- package/corpus/templates/macros/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/macros/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/macros/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/macros/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/macros/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/macros/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/macros/app/routes/team.tsx +1 -1
- package/corpus/templates/mail/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/mail/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/mail/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/mail/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/mail/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/mail/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/mail/changelog/2026-08-06-delegated-requests-continue-in-the-background.md +6 -0
- package/corpus/templates/mail/server/plugins/agent-chat.ts +6 -0
- package/corpus/templates/plan/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/plan/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/plan/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/plan/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/plan/app/hooks/use-navigation-state.ts +1 -1
- package/corpus/templates/plan/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/plan/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/plan/app/routes/team.tsx +1 -1
- package/corpus/templates/slides/.agents/skills/create-deck/SKILL.md +48 -5
- package/corpus/templates/slides/.agents/skills/design-systems/SKILL.md +40 -2
- package/corpus/templates/slides/.agents/skills/image-generation-via-a2a/SKILL.md +6 -0
- package/corpus/templates/slides/.agents/skills/slide-editing/SKILL.md +15 -2
- package/corpus/templates/slides/.agents/skills/slide-images/SKILL.md +29 -24
- package/corpus/templates/slides/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/slides/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/slides/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/slides/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/slides/AGENTS.md +7 -9
- package/corpus/templates/slides/_gitignore +1 -0
- package/corpus/templates/slides/actions/analyze-brand-assets.ts +7 -7
- package/corpus/templates/slides/actions/export-pptx.ts +402 -36
- package/corpus/templates/slides/actions/import-file.ts +46 -85
- package/corpus/templates/slides/actions/import-from-url.ts +6 -6
- package/corpus/templates/slides/actions/import-google-slides-reference.ts +271 -12
- package/corpus/templates/slides/actions/import-pptx.ts +85 -60
- package/corpus/templates/slides/app/components/deck/DeckCard.tsx +10 -13
- package/corpus/templates/slides/app/components/design-system/DesignSystemSetup.tsx +1 -1
- package/corpus/templates/slides/app/components/editor/AddSlidePopover.tsx +5 -1
- package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +25 -12
- package/corpus/templates/slides/app/components/editor/ExportMenu.tsx +112 -57
- package/corpus/templates/slides/app/components/editor/GoogleDriveConnectionCta.tsx +202 -0
- package/corpus/templates/slides/app/components/editor/GoogleSlidesReferenceImport.tsx +26 -14
- package/corpus/templates/slides/app/components/editor/PromptDialog.tsx +176 -0
- package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +182 -141
- package/corpus/templates/slides/app/components/editor/canvas-interactions/index.ts +1 -0
- package/corpus/templates/slides/app/components/editor/canvas-interactions/slides-canvas-adapter.ts +18 -0
- package/corpus/templates/slides/app/components/editor/slide-text-targets.ts +85 -0
- package/corpus/templates/slides/app/components/layout/Layout.tsx +3 -0
- package/corpus/templates/slides/app/components/onboarding/FirstDeckOnboardingFlow.tsx +13 -3
- package/corpus/templates/slides/app/components/presentation/PresentationView.tsx +27 -1
- package/corpus/templates/slides/app/context/DeckContext.tsx +71 -20
- package/corpus/templates/slides/app/global.css +6 -0
- package/corpus/templates/slides/app/i18n/en-US.ts +1 -0
- package/corpus/templates/slides/app/lib/create-deck-generation.ts +10 -6
- package/corpus/templates/slides/app/lib/deck-preview-frame.ts +15 -0
- package/corpus/templates/slides/app/lib/deck-share-links.ts +9 -0
- package/corpus/templates/slides/app/lib/export-pptx-client.ts +89 -0
- package/corpus/templates/slides/app/lib/slide-animation-elements.ts +3 -0
- package/corpus/templates/slides/app/pages/DeckEditor.tsx +17 -0
- package/corpus/templates/slides/app/pages/Index.tsx +107 -6
- package/corpus/templates/slides/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/slides/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/slides/app/routes/team.tsx +1 -1
- package/corpus/templates/slides/changelog/2026-08-05-failed-deck-creation-and-reference-uploads-now-recover-clean.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-05-slides-recover-completed-generation-results-after-a-sync-hic.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-05-website-url-imports-now-capture-hydrated-browser-computed-st.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-clicking-the-gray-canvas-around-a-slide-clears-its-selection.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-deck-thumbnails-keep-a-consistent-listing-frame-across-aspec.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-deep-linked-decks-open-directly-instead-of-being-interrupted.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-google-slides-exports-now-show-clear-import-steps-when-direc.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-import-pdf-google-slides-and-powerpoint-decks-directly-from-.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-imported-powerpoint-exports-keep-text-and-images-editable-an.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-presentation-prompts-continue-adding-rendered-slides-until-t.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-public-decks-now-share-read-only-presentation-links-by-defau.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-slides-offers-a-direct-connect-google-button-when-a-drive-co.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-slides-preserve-uploaded-pdf-layouts-accept-larger-reference.md +6 -0
- package/corpus/templates/slides/changelog/2026-08-06-styled-words-stay-part-of-their-text-box-instead-of-becoming.md +6 -0
- package/corpus/templates/slides/server/handlers/google-docs-auth.ts +7 -20
- package/corpus/templates/slides/server/handlers/import/html-converter.ts +236 -13
- package/corpus/templates/slides/server/handlers/import/pptx-assets.ts +67 -0
- package/corpus/templates/slides/server/handlers/import/pptx-parser.ts +2 -0
- package/corpus/templates/slides/server/handlers/uploads.ts +7 -3
- package/corpus/templates/slides/server/lib/chat-attachments.ts +6 -3
- package/corpus/templates/slides/server/lib/emails.ts +7 -2
- package/corpus/templates/slides/server/lib/google-docs-error.ts +50 -0
- package/corpus/templates/slides/server/lib/google-docs-oauth.ts +1 -0
- package/corpus/templates/slides/server/lib/import-asset-storage.ts +127 -0
- package/corpus/templates/slides/server/plugins/agent-chat.ts +4 -3
- package/corpus/templates/slides/server/routes/api/import-assets/[token].get.ts +70 -0
- package/corpus/templates/slides/shared/upload-types.ts +3 -0
- package/corpus/templates/tasks/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/corpus/templates/tasks/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/corpus/templates/tasks/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/tasks/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/tasks/app/components/layout/Header.tsx +3 -1
- package/corpus/templates/tasks/app/routes/extensions._index.tsx +1 -1
- package/corpus/templates/tasks/app/routes/settings.$.tsx +1 -0
- package/dist/agent/engine/ai-sdk-engine.js +49 -3
- package/dist/agent/production-agent.d.ts +18 -0
- package/dist/agent/production-agent.js +80 -1
- package/dist/agent/types.d.ts +7 -0
- package/dist/cli/agent-plugin.d.ts +112 -0
- package/dist/cli/agent-plugin.js +1081 -0
- package/dist/cli/app-skill.js +39 -1
- package/dist/cli/code-agent-executor.d.ts +3 -0
- package/dist/cli/code-agent-executor.js +51 -13
- package/dist/cli/index.js +13 -0
- package/dist/cli/templates-meta.js +1 -1
- package/dist/client/AgentPanel.d.ts +3 -1
- package/dist/client/AgentPanel.js +9 -2
- package/dist/client/AssistantChat.d.ts +8 -0
- package/dist/client/AssistantChat.js +23 -8
- package/dist/client/NewWorkspaceAppFlow.js +1 -0
- package/dist/client/agent-chat-adapter.d.ts +1 -1
- package/dist/client/agent-chat-adapter.js +153 -7
- package/dist/client/agent-page/AgentWorkspaceContent.d.ts +1 -1
- package/dist/client/agent-page/AgentWorkspaceContent.js +13 -13
- package/dist/client/assistant-ui-recovery.d.ts +2 -1
- package/dist/client/assistant-ui-recovery.js +7 -3
- package/dist/client/chat/run-recovery.js +5 -1
- package/dist/client/embed-auth.js +6 -2
- package/dist/client/error-format.js +12 -0
- package/dist/client/integrations/IntegrationsPanel.js +40 -6
- package/dist/client/onboarding/FirstRunOnboarding.js +11 -4
- package/dist/client/org/OrgSwitcher.js +2 -2
- package/dist/client/org/TeamPage.js +92 -72
- package/dist/client/require-session.d.ts +1 -1
- package/dist/client/require-session.js +4 -4
- package/dist/client/resources/McpConnectionSuggestion.d.ts +1 -0
- package/dist/client/resources/McpConnectionSuggestion.js +27 -10
- package/dist/client/resources/McpIntegrationDialog.js +77 -45
- package/dist/client/resources/mcp-integration-catalog.d.ts +13 -1
- package/dist/client/resources/mcp-integration-catalog.js +255 -2
- package/dist/client/resources/mcp-integration-logos.js +18 -2
- package/dist/client/resources/use-mcp-servers.d.ts +5 -0
- package/dist/client/resources/use-mcp-servers.js +36 -0
- package/dist/client/settings/AccountSettingsCard.js +42 -36
- package/dist/client/settings/AutomationsSection.js +1 -1
- package/dist/client/settings/DemoModeSection.d.ts +3 -1
- package/dist/client/settings/DemoModeSection.js +4 -1
- package/dist/client/settings/ExtensionsSettingsContent.js +1 -1
- package/dist/client/settings/SchedulingTimezoneField.d.ts +3 -1
- package/dist/client/settings/SchedulingTimezoneField.js +9 -5
- package/dist/client/settings/SettingsPanel.d.ts +4 -1
- package/dist/client/settings/SettingsPanel.js +21 -21
- package/dist/client/settings/SettingsTabsPage.d.ts +2 -2
- package/dist/client/settings/SettingsTabsPage.js +98 -45
- package/dist/client/settings/VoiceTranscriptionSection.js +6 -1
- package/dist/client/settings/useSettingsPanelController.js +47 -8
- package/dist/collab/routes.d.ts +1 -1
- package/dist/db/client.d.ts +9 -0
- package/dist/db/client.js +51 -16
- package/dist/db/create-get-db.js +2 -2
- package/dist/db/ddl-guard.d.ts +11 -10
- package/dist/db/ddl-guard.js +40 -12
- package/dist/deploy/build.d.ts +2 -0
- package/dist/deploy/build.js +97 -4
- package/dist/deploy/workspace-deploy.js +0 -2
- package/dist/guards/no-env-credentials.js +9 -0
- package/dist/ingestion/index.d.ts +1 -1
- package/dist/ingestion/pptx.d.ts +68 -0
- package/dist/ingestion/pptx.js +660 -213
- package/dist/ingestion/website.d.ts +30 -0
- package/dist/integrations/plugin.js +9 -6
- package/dist/localization/default-messages.d.ts +59 -0
- package/dist/localization/default-messages.js +62 -2
- package/dist/mcp/screen-memory-stdio.d.ts +7 -7
- package/dist/mcp-client/oauth-routes.d.ts +2 -0
- package/dist/mcp-client/oauth-routes.js +74 -7
- package/dist/mcp-client/routes.d.ts +1 -0
- package/dist/mcp-client/routes.js +49 -0
- package/dist/navigation/index.js +16 -5
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +3 -3
- package/dist/onboarding/app-profile.js +11 -0
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +13 -13
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/resources/store.js +15 -1
- package/dist/scripts/call-agent.js +45 -4
- package/dist/secrets/routes.d.ts +6 -6
- package/dist/server/agent-chat/action-filters-a2a.d.ts +1 -1
- package/dist/server/agent-chat/action-filters-a2a.js +36 -1
- package/dist/server/agent-chat-plugin.js +29 -8
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/auth.js +55 -17
- package/dist/server/better-auth-instance.js +5 -3
- package/dist/server/core-routes-plugin.d.ts +8 -1
- package/dist/server/core-routes-plugin.js +28 -3
- package/dist/server/credential-provider.d.ts +3 -3
- package/dist/server/credential-provider.js +90 -4
- package/dist/server/identity-sso.js +2 -1
- package/dist/server/onboarding-html.d.ts +2 -0
- package/dist/server/onboarding-html.js +171 -62
- package/dist/server/realtime-token.d.ts +1 -1
- package/dist/server/self-dispatch.d.ts +5 -4
- package/dist/server/self-dispatch.js +25 -14
- package/dist/server/ssr-handler.d.ts +1 -1
- package/dist/server/ssr-handler.js +1 -1
- package/dist/server/workspace-provider-oauth.js +1 -1
- package/dist/setup-connections/onboarding.js +1 -1
- package/dist/shared/cache-control.d.ts +26 -2
- package/dist/shared/cache-control.js +43 -2
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/password-policy.d.ts +3 -0
- package/dist/shared/password-policy.js +3 -0
- package/dist/shared/sign-in-journey.d.ts +5 -2
- package/dist/shared/sign-in-journey.js +10 -4
- package/dist/sharing/actions/set-resource-visibility.js +16 -4
- package/dist/sharing/registry.d.ts +14 -0
- package/dist/styles/agent-native.css +6 -0
- package/dist/templates/chat/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/dist/templates/chat/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/dist/templates/chat/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/dist/templates/chat/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/dist/templates/chat/app/components/layout/Layout.tsx +1 -1
- package/dist/templates/chat/app/hooks/use-navigation-state.ts +1 -1
- package/dist/templates/chat/app/root.tsx +1 -1
- package/dist/templates/chat/app/routes/agent.tsx +7 -7
- package/dist/templates/chat/app/routes/extensions._index.tsx +1 -1
- package/dist/templates/chat/app/routes/settings.$.tsx +1 -0
- package/dist/templates/chat/app/routes/team.tsx +1 -1
- package/dist/templates/default/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/dist/templates/default/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/dist/templates/default/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/dist/templates/default/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/dist/templates/headless/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/dist/templates/headless/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/dist/templates/headless/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/dist/templates/headless/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/dist/templates/workspace-core/.agents/skills/adding-workspace-apps/SKILL.md +6 -0
- package/dist/templates/workspace-core/.agents/skills/address-feedback/SKILL.md +37 -6
- package/dist/templates/workspace-core/.agents/skills/authentication/SKILL.md +4 -2
- package/dist/templates/workspace-core/.agents/skills/performance/SKILL.md +51 -0
- package/dist/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/dist/templates/workspace-core/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/dist/templates/workspace-core/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/dist/templates/workspace-core/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/dist/templates/workspace-root/AGENTS.md +7 -0
- package/dist/user-profile/actions/change-password.js +8 -3
- package/dist/user-profile/actions/set-password.js +5 -1
- package/dist/vite/action-types-plugin.js +59 -0
- package/docs/content/authentication.mdx +4 -5
- package/docs/content/skills-guide.mdx +13 -0
- package/docs/content/template-analytics-developers.mdx +1 -1
- package/docs/content/template-calendar-developers.mdx +1 -1
- package/docs/content/template-chat-developers.mdx +2 -2
- package/docs/content/template-content-developers.mdx +1 -1
- package/docs/content/template-mail-developers.mdx +1 -1
- package/docs/content/template-plan-developers.mdx +1 -1
- package/docs/content/toolkit-command-navigation.mdx +6 -6
- package/docs/content/toolkit-org-team.mdx +1 -1
- package/docs/content/toolkit-settings.mdx +8 -8
- package/docs/content/toolkit-setup-connections.mdx +1 -1
- package/package.json +6 -2
- package/src/templates/chat/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/src/templates/chat/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/src/templates/chat/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/src/templates/chat/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/src/templates/chat/app/components/layout/Layout.tsx +1 -1
- package/src/templates/chat/app/hooks/use-navigation-state.ts +1 -1
- package/src/templates/chat/app/root.tsx +1 -1
- package/src/templates/chat/app/routes/agent.tsx +7 -7
- package/src/templates/chat/app/routes/extensions._index.tsx +1 -1
- package/src/templates/chat/app/routes/settings.$.tsx +1 -0
- package/src/templates/chat/app/routes/team.tsx +1 -1
- package/src/templates/default/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/src/templates/default/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/src/templates/default/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/src/templates/default/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/src/templates/headless/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/src/templates/headless/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/src/templates/headless/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/src/templates/headless/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/src/templates/workspace-core/.agents/skills/adding-workspace-apps/SKILL.md +6 -0
- package/src/templates/workspace-core/.agents/skills/address-feedback/SKILL.md +37 -6
- package/src/templates/workspace-core/.agents/skills/authentication/SKILL.md +4 -2
- package/src/templates/workspace-core/.agents/skills/performance/SKILL.md +51 -0
- package/src/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md +296 -0
- package/src/templates/workspace-core/.agents/skills/turn-into-app/agents/openai.yaml +4 -0
- package/src/templates/workspace-core/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/src/templates/workspace-core/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/src/templates/workspace-root/AGENTS.md +7 -0
- package/corpus/templates/analytics/.agents/skills/dashboard-management/references/template-catalog-and-demo.md +0 -62
- package/corpus/templates/analytics/actions/install-dashboard-template.ts +0 -369
- package/corpus/templates/analytics/actions/list-dashboard-templates.ts +0 -47
- package/corpus/templates/analytics/actions/list-native-v2-dashboard-templates.ts +0 -34
- package/corpus/templates/analytics/app/routes/catalog.tsx +0 -240
- package/src/templates/default/actions/navigate.spec.ts +0 -53
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const DEFAULT_PUBLIC_CACHE_CONTROL = "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
2
2
|
export declare const DEFAULT_SSR_CACHE_CONTROL = "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
3
3
|
export declare const DEFAULT_SSR_CDN_CACHE_CONTROL = "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
4
|
-
export declare const DEFAULT_SSR_NETLIFY_CDN_CACHE_CONTROL = "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
4
|
+
export declare const DEFAULT_SSR_NETLIFY_CDN_CACHE_CONTROL = "public, durable, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
5
5
|
export declare const DEFAULT_SSR_CACHE_HEADERS: {
|
|
6
6
|
readonly "cache-control": "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
7
7
|
readonly "cdn-cache-control": "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
8
|
-
readonly "netlify-cdn-cache-control": "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
8
|
+
readonly "netlify-cdn-cache-control": "public, durable, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Deployment-wide override for the SSR shell cache policy.
|
|
@@ -58,6 +58,30 @@ export declare function ssrCacheHeadersForPolicy(policy: SsrCachePolicy): SsrCac
|
|
|
58
58
|
* response — copy it before mutating.
|
|
59
59
|
*/
|
|
60
60
|
export declare function resolveSsrCacheHeaders(env?: Record<string, string | undefined>): Readonly<SsrCacheHeaders>;
|
|
61
|
+
/**
|
|
62
|
+
* Provider-specific cache-KEY headers, emitted only on the provider that
|
|
63
|
+
* understands them.
|
|
64
|
+
*
|
|
65
|
+
* Netlify keys its durable cache on the FULL query string by default, so every
|
|
66
|
+
* `?fbclid=`, `?gclid=` and `?utm_source=` mints a separate entry. On a
|
|
67
|
+
* marketing URL that fan-out is unbounded: measured on www.agent-native.com,
|
|
68
|
+
* every ad or social click was a guaranteed cold render (~4.5s) that could
|
|
69
|
+
* never be reused. `netlify-vary` narrows the key to the params that actually
|
|
70
|
+
* change the response.
|
|
71
|
+
*
|
|
72
|
+
* `_routes` is react-router's partial-payload param and DOES change the body —
|
|
73
|
+
* `.data` is ~45KB while `.data?_routes=root` is ~108 bytes — so it must stay
|
|
74
|
+
* in the key. (Remix v2's `_data` is inert here; naming it instead collapses
|
|
75
|
+
* those two into one entry and serves the wrong payload.)
|
|
76
|
+
*
|
|
77
|
+
* This lives in core, gated by runtime, for two reasons. It was written once
|
|
78
|
+
* before — `DEFAULT_SSR_NETLIFY_VARY`, added 2026-07-11 in PR #2026 and deleted
|
|
79
|
+
* 2h09m later in PR #2031 — and then independently re-derived inside an app,
|
|
80
|
+
* where the next person cannot find it. And a header no other provider
|
|
81
|
+
* understands should not be on every response everywhere: on anything but
|
|
82
|
+
* Netlify this returns {}.
|
|
83
|
+
*/
|
|
84
|
+
export declare function resolveSsrCacheKeyHeaders(env?: Record<string, string | undefined>): Readonly<Record<string, string>>;
|
|
61
85
|
export declare function isSsrCacheEnabled(env?: Record<string, string | undefined>): boolean;
|
|
62
86
|
export declare const DEFAULT_SPECULATION_RULES_PATH = "/_agent-native/speculation-rules.json";
|
|
63
87
|
export declare const DEFAULT_SPECULATION_RULES_HEADER = "\"/_agent-native/speculation-rules.json\"";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const DEFAULT_PUBLIC_CACHE_CONTROL = "public, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
2
2
|
export const DEFAULT_SSR_CACHE_CONTROL = DEFAULT_PUBLIC_CACHE_CONTROL;
|
|
3
3
|
export const DEFAULT_SSR_CDN_CACHE_CONTROL = DEFAULT_SSR_CACHE_CONTROL;
|
|
4
|
-
export const DEFAULT_SSR_NETLIFY_CDN_CACHE_CONTROL =
|
|
4
|
+
export const DEFAULT_SSR_NETLIFY_CDN_CACHE_CONTROL = "public, durable, max-age=600, stale-while-revalidate=604800, stale-if-error=3600";
|
|
5
5
|
export const DEFAULT_SSR_CACHE_HEADERS = {
|
|
6
6
|
"cache-control": DEFAULT_SSR_CACHE_CONTROL,
|
|
7
7
|
"cdn-cache-control": DEFAULT_SSR_CDN_CACHE_CONTROL,
|
|
@@ -85,10 +85,12 @@ export function ssrCacheHeadersForPolicy(policy) {
|
|
|
85
85
|
// the 7-day default SWR here would hand back the staleness they opted out of.
|
|
86
86
|
const control = `public, max-age=${policy.seconds}, ` +
|
|
87
87
|
`stale-while-revalidate=${policy.seconds}, stale-if-error=3600`;
|
|
88
|
+
const netlifyControl = `public, durable, max-age=${policy.seconds}, ` +
|
|
89
|
+
`stale-while-revalidate=${policy.seconds}, stale-if-error=3600`;
|
|
88
90
|
return {
|
|
89
91
|
"cache-control": control,
|
|
90
92
|
"cdn-cache-control": control,
|
|
91
|
-
"netlify-cdn-cache-control":
|
|
93
|
+
"netlify-cdn-cache-control": netlifyControl,
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
let memoizedRaw;
|
|
@@ -109,6 +111,45 @@ export function resolveSsrCacheHeaders(env = typeof process === "undefined"
|
|
|
109
111
|
memoizedHeaders = Object.freeze(ssrCacheHeadersForPolicy(parseSsrCacheSetting(raw)));
|
|
110
112
|
return memoizedHeaders;
|
|
111
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Provider-specific cache-KEY headers, emitted only on the provider that
|
|
116
|
+
* understands them.
|
|
117
|
+
*
|
|
118
|
+
* Netlify keys its durable cache on the FULL query string by default, so every
|
|
119
|
+
* `?fbclid=`, `?gclid=` and `?utm_source=` mints a separate entry. On a
|
|
120
|
+
* marketing URL that fan-out is unbounded: measured on www.agent-native.com,
|
|
121
|
+
* every ad or social click was a guaranteed cold render (~4.5s) that could
|
|
122
|
+
* never be reused. `netlify-vary` narrows the key to the params that actually
|
|
123
|
+
* change the response.
|
|
124
|
+
*
|
|
125
|
+
* `_routes` is react-router's partial-payload param and DOES change the body —
|
|
126
|
+
* `.data` is ~45KB while `.data?_routes=root` is ~108 bytes — so it must stay
|
|
127
|
+
* in the key. (Remix v2's `_data` is inert here; naming it instead collapses
|
|
128
|
+
* those two into one entry and serves the wrong payload.)
|
|
129
|
+
*
|
|
130
|
+
* This lives in core, gated by runtime, for two reasons. It was written once
|
|
131
|
+
* before — `DEFAULT_SSR_NETLIFY_VARY`, added 2026-07-11 in PR #2026 and deleted
|
|
132
|
+
* 2h09m later in PR #2031 — and then independently re-derived inside an app,
|
|
133
|
+
* where the next person cannot find it. And a header no other provider
|
|
134
|
+
* understands should not be on every response everywhere: on anything but
|
|
135
|
+
* Netlify this returns {}.
|
|
136
|
+
*/
|
|
137
|
+
export function resolveSsrCacheKeyHeaders(env = typeof process === "undefined"
|
|
138
|
+
? {}
|
|
139
|
+
: process.env) {
|
|
140
|
+
// NETLIFY is the build-time marker; deployed functions expose SITE_ID at
|
|
141
|
+
// runtime. An explicit "false"/local override means we are not really hosted.
|
|
142
|
+
const explicitlyNotNetlify = env.NETLIFY_LOCAL === "true" || env.NETLIFY === "false";
|
|
143
|
+
const onNetlify = !explicitlyNotNetlify && (Boolean(env.NETLIFY) || Boolean(env.SITE_ID)); // guard:allow-env-credential -- Netlify's public runtime host marker, not a credential.
|
|
144
|
+
const none = Object.freeze({});
|
|
145
|
+
if (!onNetlify)
|
|
146
|
+
return none;
|
|
147
|
+
// This NARROWS the cache key rather than splitting it per user: it removes
|
|
148
|
+
// utm/fbclid/gclid so one entry serves everyone. The shapes the guard exists
|
|
149
|
+
// to stop are `private`, `no-store` and `Vary: Cookie`, none of which this is.
|
|
150
|
+
// guard:allow-ssr-shell-exception — narrows the shared key, never splits it
|
|
151
|
+
return Object.freeze({ "netlify-vary": "query=_routes|index" });
|
|
152
|
+
}
|
|
112
153
|
export function isSsrCacheEnabled(env = typeof process === "undefined"
|
|
113
154
|
? {}
|
|
114
155
|
: process.env) {
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { agentChat, type AgentChatMessage, type AgentChatCallOptions, type AgentChatResponse, } from "./agent-chat.js";
|
|
2
2
|
export { agentEnv, type EnvVar } from "./agent-env.js";
|
|
3
3
|
export { extractOAuthStateAppId } from "./oauth-state.js";
|
|
4
|
-
export { SIGN_IN_CONTINUATION_MAX_LENGTH, SIGN_IN_CONTINUATION_PARAM, SIGN_IN_ENTRY_PATH, SIGN_IN_LEGACY_RETURN_PARAM, decodeContinuation, encodeContinuation, normalizeAppPath, signInJourney, signInJourneyInlineScript, type SignInJourney, type SignInJourneyInput, } from "./sign-in-journey.js";
|
|
4
|
+
export { SIGN_IN_CONTINUATION_MAX_LENGTH, SIGN_IN_CONTINUATION_PARAM, SIGN_IN_ENTRY_PATH, SIGN_IN_LEGACY_ENTRY_PATH, SIGN_IN_LEGACY_RETURN_PARAM, decodeContinuation, encodeContinuation, normalizeAppPath, signInJourney, signInJourneyInlineScript, type SignInJourney, type SignInJourneyInput, } from "./sign-in-journey.js";
|
|
5
5
|
export { truncate } from "./truncate.js";
|
|
6
6
|
export { injectDocumentMarkup } from "./html-document.js";
|
|
7
7
|
export { withBuilderUtmTrackingParams } from "./builder-link-tracking.js";
|
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { agentChat, } from "./agent-chat.js";
|
|
2
2
|
export { agentEnv } from "./agent-env.js";
|
|
3
3
|
export { extractOAuthStateAppId } from "./oauth-state.js";
|
|
4
|
-
export { SIGN_IN_CONTINUATION_MAX_LENGTH, SIGN_IN_CONTINUATION_PARAM, SIGN_IN_ENTRY_PATH, SIGN_IN_LEGACY_RETURN_PARAM, decodeContinuation, encodeContinuation, normalizeAppPath, signInJourney, signInJourneyInlineScript, } from "./sign-in-journey.js";
|
|
4
|
+
export { SIGN_IN_CONTINUATION_MAX_LENGTH, SIGN_IN_CONTINUATION_PARAM, SIGN_IN_ENTRY_PATH, SIGN_IN_LEGACY_ENTRY_PATH, SIGN_IN_LEGACY_RETURN_PARAM, decodeContinuation, encodeContinuation, normalizeAppPath, signInJourney, signInJourneyInlineScript, } from "./sign-in-journey.js";
|
|
5
5
|
export { truncate } from "./truncate.js";
|
|
6
6
|
export { injectDocumentMarkup } from "./html-document.js";
|
|
7
7
|
export { withBuilderUtmTrackingParams } from "./builder-link-tracking.js";
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* - `signInJourney` returns `signInHref: null` — no token at all — when the
|
|
19
19
|
* browser is already at an auth entry path, so the one function permitted
|
|
20
20
|
* to mint continuations refuses to mint the dangerous value;
|
|
21
|
-
* - the sign-in URL is `<base>/
|
|
21
|
+
* - the sign-in URL is `<base>/sign-in?c=<opaque>`, so
|
|
22
22
|
* "capture the current location as the return" has no URL-shaped input to
|
|
23
23
|
* re-encode;
|
|
24
24
|
* - `c` does not look like a URL, so Better Auth's `callbackURL`, a proxy, or
|
|
@@ -42,7 +42,10 @@ export declare const SIGN_IN_CONTINUATION_PARAM = "c";
|
|
|
42
42
|
* therefore will not be caught.
|
|
43
43
|
*/
|
|
44
44
|
export declare const SIGN_IN_LEGACY_RETURN_PARAM = "return";
|
|
45
|
-
|
|
45
|
+
/** The clean, user-facing sign-in entry point emitted by current clients. */
|
|
46
|
+
export declare const SIGN_IN_ENTRY_PATH = "/sign-in";
|
|
47
|
+
/** The old framework entry point, retained for generated apps and bookmarks. */
|
|
48
|
+
export declare const SIGN_IN_LEGACY_ENTRY_PATH = "/_agent-native/sign-in";
|
|
46
49
|
/** Max length of an encoded continuation token, in characters. */
|
|
47
50
|
export declare const SIGN_IN_CONTINUATION_MAX_LENGTH = 512;
|
|
48
51
|
export interface SignInJourney {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* - `signInJourney` returns `signInHref: null` — no token at all — when the
|
|
19
19
|
* browser is already at an auth entry path, so the one function permitted
|
|
20
20
|
* to mint continuations refuses to mint the dangerous value;
|
|
21
|
-
* - the sign-in URL is `<base>/
|
|
21
|
+
* - the sign-in URL is `<base>/sign-in?c=<opaque>`, so
|
|
22
22
|
* "capture the current location as the return" has no URL-shaped input to
|
|
23
23
|
* re-encode;
|
|
24
24
|
* - `c` does not look like a URL, so Better Auth's `callbackURL`, a proxy, or
|
|
@@ -42,7 +42,10 @@ export const SIGN_IN_CONTINUATION_PARAM = "c";
|
|
|
42
42
|
* therefore will not be caught.
|
|
43
43
|
*/
|
|
44
44
|
export const SIGN_IN_LEGACY_RETURN_PARAM = "return";
|
|
45
|
-
|
|
45
|
+
/** The clean, user-facing sign-in entry point emitted by current clients. */
|
|
46
|
+
export const SIGN_IN_ENTRY_PATH = "/sign-in";
|
|
47
|
+
/** The old framework entry point, retained for generated apps and bookmarks. */
|
|
48
|
+
export const SIGN_IN_LEGACY_ENTRY_PATH = "/_agent-native/sign-in";
|
|
46
49
|
/** Max length of an encoded continuation token, in characters. */
|
|
47
50
|
export const SIGN_IN_CONTINUATION_MAX_LENGTH = 512;
|
|
48
51
|
/**
|
|
@@ -56,7 +59,8 @@ export const SIGN_IN_CONTINUATION_MAX_LENGTH = 512;
|
|
|
56
59
|
function createSignInJourneyRuntime(basePath) {
|
|
57
60
|
var PARAM = "c";
|
|
58
61
|
var LEGACY_PARAM = "return";
|
|
59
|
-
var ENTRY_PATH = "/
|
|
62
|
+
var ENTRY_PATH = "/sign-in";
|
|
63
|
+
var LEGACY_ENTRY_PATH = "/_agent-native/sign-in";
|
|
60
64
|
var MAX_TOKEN = 512;
|
|
61
65
|
var SENTINEL = "http://an.invalid";
|
|
62
66
|
function normalizeBasePath(raw) {
|
|
@@ -79,7 +83,9 @@ function createSignInJourneyRuntime(basePath) {
|
|
|
79
83
|
// including one this process was not configured with (a workspace host
|
|
80
84
|
// serving a sibling app's URL).
|
|
81
85
|
if (pathname === ENTRY_PATH ||
|
|
82
|
-
pathname.slice(-ENTRY_PATH.length) === ENTRY_PATH
|
|
86
|
+
pathname.slice(-ENTRY_PATH.length) === ENTRY_PATH ||
|
|
87
|
+
pathname === LEGACY_ENTRY_PATH ||
|
|
88
|
+
pathname.slice(-LEGACY_ENTRY_PATH.length) === LEGACY_ENTRY_PATH) {
|
|
83
89
|
return true;
|
|
84
90
|
}
|
|
85
91
|
var rest = pathname;
|
|
@@ -52,10 +52,22 @@ export default defineAction({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
const beforeExtensionTargets = await getExtensionShareChangeTargets(args.resourceType, args.resourceId);
|
|
55
|
-
|
|
56
|
-
.
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
if (reg.persistVisibilityChange) {
|
|
56
|
+
await reg.persistVisibilityChange({
|
|
57
|
+
resource: access.resource,
|
|
58
|
+
resourceId: args.resourceId,
|
|
59
|
+
visibility: args.visibility,
|
|
60
|
+
update,
|
|
61
|
+
userEmail: rawAccess.userEmail,
|
|
62
|
+
orgId: currentOrgId,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
await db
|
|
67
|
+
.update(reg.resourceTable)
|
|
68
|
+
.set(update)
|
|
69
|
+
.where(eq(reg.resourceTable.id, args.resourceId));
|
|
70
|
+
}
|
|
59
71
|
invalidateCollabAccessCache(args.resourceType, args.resourceId);
|
|
60
72
|
await notifyExtensionShareChanged(args.resourceType, args.resourceId, beforeExtensionTargets);
|
|
61
73
|
return { ok: true, visibility: args.visibility };
|
|
@@ -110,6 +110,20 @@ export interface ShareableResourceRegistration {
|
|
|
110
110
|
* the right DB instance (schema is template-specific).
|
|
111
111
|
*/
|
|
112
112
|
getDb: () => any;
|
|
113
|
+
/**
|
|
114
|
+
* Optional resource-owned persistence hook for visibility changes. Use this
|
|
115
|
+
* when changing visibility must share a transaction with another invariant,
|
|
116
|
+
* such as reserving a human-readable name before the row becomes visible.
|
|
117
|
+
* The generic action falls back to a direct update when this is omitted.
|
|
118
|
+
*/
|
|
119
|
+
persistVisibilityChange?: (args: {
|
|
120
|
+
resource: any;
|
|
121
|
+
resourceId: string;
|
|
122
|
+
visibility: "private" | "org" | "public";
|
|
123
|
+
update: Record<string, unknown>;
|
|
124
|
+
userEmail?: string;
|
|
125
|
+
orgId?: string;
|
|
126
|
+
}) => void | Promise<void>;
|
|
113
127
|
/**
|
|
114
128
|
* When `false`, `visibility: "public"` is rejected by `set-resource-visibility`,
|
|
115
129
|
* and `accessFilter` / `resolveAccess` treat any stored public row as private
|
|
@@ -128,6 +128,12 @@
|
|
|
128
128
|
width: var(--agent-layout-left-drawer-expanded-width, 14rem);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
.agent-layout-left-drawer[data-collapsed="false"] > * {
|
|
132
|
+
width: var(--agent-layout-left-drawer-expanded-width, 14rem);
|
|
133
|
+
min-width: var(--agent-layout-left-drawer-expanded-width, 14rem);
|
|
134
|
+
max-width: var(--agent-layout-left-drawer-expanded-width, 14rem);
|
|
135
|
+
}
|
|
136
|
+
|
|
131
137
|
.agent-layout-left-drawer .bg-sidebar {
|
|
132
138
|
background: var(--agent-native-lower-surface) !important;
|
|
133
139
|
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: turn-into-app
|
|
3
|
+
description: >-
|
|
4
|
+
Turn a proven thread, skill, or workflow into a runnable Agent-Native app
|
|
5
|
+
with simple buttons, visible agent steps, preview, and deployment handoff.
|
|
6
|
+
Use when a user invokes `/turn-into-app` or asks to make a workflow into an
|
|
7
|
+
app.
|
|
8
|
+
user-invocable: true
|
|
9
|
+
scope: both
|
|
10
|
+
metadata:
|
|
11
|
+
internal: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Turn Into App
|
|
15
|
+
|
|
16
|
+
## Default behavior
|
|
17
|
+
|
|
18
|
+
This is an end-to-end build skill, not a request for an app proposal.
|
|
19
|
+
|
|
20
|
+
- With no argument, use the current thread as the source. This is the normal
|
|
21
|
+
invocation at the end of a successful workflow.
|
|
22
|
+
- With a named skill or local workflow, read that source and package it
|
|
23
|
+
immediately, even at the beginning of a thread. For example,
|
|
24
|
+
`/turn-into-app /some-skill` means “turn `/some-skill` into an app.”
|
|
25
|
+
- With an attachment or path, read the supplied artifact as the source.
|
|
26
|
+
- Do not ask the user to restate context that is already in the thread.
|
|
27
|
+
- When invoked from an Agent-Native app, keep the current thread as the source
|
|
28
|
+
and use the available workspace/coding-agent handoff when the current runtime
|
|
29
|
+
cannot edit files. Do not claim the app exists without an actual path and
|
|
30
|
+
verification result.
|
|
31
|
+
|
|
32
|
+
## Source support
|
|
33
|
+
|
|
34
|
+
Supported source paths today are the current Codex thread, a named skill, or a
|
|
35
|
+
local workflow/transcript supplied as a path or attachment. An exported
|
|
36
|
+
ChatGPT or Claude transcript can use the same local-file path today.
|
|
37
|
+
|
|
38
|
+
ChatGPT shared-conversation import and Claude web conversation/project import
|
|
39
|
+
are **coming soon**. Do not claim private web access, invent an importer, add
|
|
40
|
+
fake OAuth, or scrape a logged-in page without an explicit supported adapter.
|
|
41
|
+
If a user gives one of those URLs before an adapter exists, ask for an export or
|
|
42
|
+
transcript instead and treat it as imported source material.
|
|
43
|
+
|
|
44
|
+
Deliver a fresh app in a new directory, implement the repeatable workflow with
|
|
45
|
+
buttons and agent handoffs, start its dev server, verify the main path, and
|
|
46
|
+
continue through build/deployment handoff. Do not stop at a plan.
|
|
47
|
+
|
|
48
|
+
## Source selection guard
|
|
49
|
+
|
|
50
|
+
The generated app must implement the concrete workflow found in the source. It
|
|
51
|
+
must not become a generic “what app do you want to make?” intake form.
|
|
52
|
+
|
|
53
|
+
- In a delegated or forked task, read the actual referenced source thread and
|
|
54
|
+
the latest explicit workflow direction in the current task. If they disagree,
|
|
55
|
+
the latest concrete workflow direction wins.
|
|
56
|
+
- Do not treat a thread that merely discusses building this skill as the product
|
|
57
|
+
source unless the user explicitly asks to appify that meta-workflow.
|
|
58
|
+
- If the source contains several workflows, choose the latest successful,
|
|
59
|
+
repeatable job that motivated the request and name it in the handoff. If no
|
|
60
|
+
concrete job can be identified, stop and report what is missing instead of
|
|
61
|
+
inventing an app-builder UI.
|
|
62
|
+
|
|
63
|
+
## UI contract for generated apps
|
|
64
|
+
|
|
65
|
+
Generated apps must follow the shared Agent-Native surface model:
|
|
66
|
+
|
|
67
|
+
- Keep the domain workflow on a named route (`/workflow`, `/automations`,
|
|
68
|
+
`/block`, or the source's equivalent). Preserve the scaffold's full-page
|
|
69
|
+
chat route instead of replacing it with a domain form while leaving the
|
|
70
|
+
layout configured as a chat page.
|
|
71
|
+
- Use the right `AgentSidebar` for contextual AI. Every button-triggered
|
|
72
|
+
`sendToAgentChat` handoff should open or focus that sidebar and keep the user
|
|
73
|
+
on the current domain page.
|
|
74
|
+
- Use a sans-first SaaS hierarchy for the app shell. Choose a named visual
|
|
75
|
+
direction in `DESIGN.md` before styling: product mode, audience, palette
|
|
76
|
+
family, type treatment, composition, shape language, and anti-references.
|
|
77
|
+
One restrained editorial cue is welcome, but warm beige plus terracotta is
|
|
78
|
+
not the default and serif type belongs in content previews or a deliberate
|
|
79
|
+
brand moment rather than the whole tool.
|
|
80
|
+
- Preserve existing brand tokens. For a new unbranded app, choose a
|
|
81
|
+
product-fitting palette family and compare sibling apps before reusing their
|
|
82
|
+
accent. Keep shared semantic tokens and Agent-Native behavior consistent
|
|
83
|
+
while varying the visual world, density, composition, and shape language.
|
|
84
|
+
- Give the AgentSidebar a subtle surface or divider boundary so it is visually
|
|
85
|
+
distinct from the domain page without becoming a heavy panel wall.
|
|
86
|
+
- Every AI-labeled button must actually call `sendToAgentChat` with bounded
|
|
87
|
+
context and `openSidebar: true`. Keep `submit: true` for direct execution and
|
|
88
|
+
`submit: false` only when the user should edit the staged prompt first. Label
|
|
89
|
+
deterministic local actions as local, preview, or analyze instead of AI.
|
|
90
|
+
- Standalone apps that render `AgentSidebar` must keep one assistant-ui runtime
|
|
91
|
+
context. Pin the versions compatible with the installed core/toolkit peer
|
|
92
|
+
graph, and add Vite dedupe/aliases when linked or transitive packages resolve
|
|
93
|
+
duplicate assistant-ui modules. Verify a fresh AI handoff has no
|
|
94
|
+
`AssistantUiStaleIndexErrorBoundary` or stale-index console error.
|
|
95
|
+
- Make the left navigation describe domain destinations. Chat is a separate
|
|
96
|
+
destination, not the label for every app page.
|
|
97
|
+
- Start with one primary action and one compact state. Put setup choices,
|
|
98
|
+
advanced inputs, diagnostics, and long explanations behind progressive
|
|
99
|
+
disclosure or later workflow steps.
|
|
100
|
+
- Never use sparkle, wand, magic, robot, or similar decorative AI icons. Use a
|
|
101
|
+
message or neutral action icon, or no icon when the button label is enough.
|
|
102
|
+
- Before handoff, inspect the first viewport for text density, repeated cards,
|
|
103
|
+
unrelated forms, and generic helper copy. Remove what the user does not need
|
|
104
|
+
until the next decision.
|
|
105
|
+
- Run a `distill`, `typeset`, `colorize`, `layout`, `polish`, and `audit` pass
|
|
106
|
+
as useful named reviews. Make one intervention at a time and commit the
|
|
107
|
+
chosen direction rather than averaging several options into generic SaaS.
|
|
108
|
+
- For before/after or original/generated review, stack the source first and the
|
|
109
|
+
result second by default. Reserve side-by-side layouts for short content that
|
|
110
|
+
remains comfortable to scan at the target width.
|
|
111
|
+
|
|
112
|
+
## 1. Extract the workflow
|
|
113
|
+
|
|
114
|
+
Read the full available source before coding. Reduce it to a short working
|
|
115
|
+
brief:
|
|
116
|
+
|
|
117
|
+
- the user and repeatable job;
|
|
118
|
+
- inputs and outputs;
|
|
119
|
+
- the 1-3 judgment-heavy agent moments;
|
|
120
|
+
- the buttons, review points, and retry states a user needs;
|
|
121
|
+
- data, permissions, integrations, and failure boundaries.
|
|
122
|
+
|
|
123
|
+
Preserve useful judgment from the source, but do not turn a one-off answer,
|
|
124
|
+
private data, or an unverified result into a product contract. If the source is
|
|
125
|
+
not available or does not contain a repeatable job, say what is missing rather
|
|
126
|
+
than claiming the app is complete.
|
|
127
|
+
|
|
128
|
+
## 2. Create a fresh app
|
|
129
|
+
|
|
130
|
+
Choose a short slug from the workflow and create a new directory. Never
|
|
131
|
+
overwrite an existing app. If the user supplied a directory, use it; otherwise
|
|
132
|
+
use `apps/<slug>` inside an existing Agent-Native workspace, or a new sibling
|
|
133
|
+
directory when working outside one.
|
|
134
|
+
|
|
135
|
+
For a new UI-bearing standalone app, use the current Agent-Native scaffold and
|
|
136
|
+
then read the generated `AGENTS.md`:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
npx @agent-native/core@latest create <app-directory> --template chat
|
|
140
|
+
cd <app-directory>
|
|
141
|
+
pnpm install
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
When working inside an existing Agent-Native workspace, create the app from
|
|
145
|
+
the workspace root instead:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
pnpm exec agent-native add-app <slug> --template=chat
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Do not use `create` for an existing workspace; it scaffolds a new standalone
|
|
152
|
+
workspace rather than adding an app to the current one.
|
|
153
|
+
|
|
154
|
+
Use a first-party template only when it materially fits the workflow. Keep the
|
|
155
|
+
new app independent from the source thread's working tree unless the user
|
|
156
|
+
explicitly asks to extend an existing app.
|
|
157
|
+
|
|
158
|
+
Read the generated `DESIGN.md` before building the first screen and fill in the
|
|
159
|
+
visual direction as part of the app brief. Do not copy the previous app's
|
|
160
|
+
palette just because its tokens are nearby.
|
|
161
|
+
|
|
162
|
+
## 3. Turn the workflow into buttons and agent work
|
|
163
|
+
|
|
164
|
+
Implement the smallest useful surface around the extracted brief. The app
|
|
165
|
+
should make the repeated path obvious without hiding the agent's judgment:
|
|
166
|
+
|
|
167
|
+
- Give each important repeated moment a clear button, such as “Analyze,”
|
|
168
|
+
“Suggest options,” “Draft,” “Review,” or “Publish.” Use the source's actual
|
|
169
|
+
vocabulary when it is clear.
|
|
170
|
+
- Put deterministic reads, writes, approvals, and publishing in `actions/`
|
|
171
|
+
with `defineAction`. The UI and agent must call the same action surface.
|
|
172
|
+
- Use application state for the current screen, selected item, and focused
|
|
173
|
+
object so the agent can see where the user is.
|
|
174
|
+
- Use `sendToAgentChat({ message, context, submit: true })` for intentional
|
|
175
|
+
button-triggered agent work. Use `submit: false` when the user should review
|
|
176
|
+
or edit the proposed prompt first.
|
|
177
|
+
- Pass IDs, URLs, and bounded summaries in context. Do not paste large provider
|
|
178
|
+
dumps into prompts, call an LLM directly from the browser, or invent fake
|
|
179
|
+
progress.
|
|
180
|
+
- Make agent results visible, editable, retryable, and attributable. Keep
|
|
181
|
+
irreversible actions behind an explicit review or confirmation point.
|
|
182
|
+
|
|
183
|
+
Use the existing shadcn/ui primitives, Tabler icons, shared composer, and
|
|
184
|
+
optimistic action patterns. Do not add a parallel CRUD API route for an action.
|
|
185
|
+
|
|
186
|
+
## 4. Keep onboarding shared
|
|
187
|
+
|
|
188
|
+
Use the framework's existing setup experience. The app should offer the normal
|
|
189
|
+
“Connect Builder” and “Add your own keys” paths for AI setup. Do not create a
|
|
190
|
+
second credential form or hardcode a provider key.
|
|
191
|
+
|
|
192
|
+
In local-development instructions, add a brief note that a developer can set
|
|
193
|
+
an environment variable such as `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` before
|
|
194
|
+
starting the app; after restart, the setup prompt is no longer shown when the
|
|
195
|
+
key is available. Keep real secrets out of source, examples, and generated
|
|
196
|
+
content.
|
|
197
|
+
|
|
198
|
+
Turn-into-app apps should commit an `agent-native.json` app configuration so a
|
|
199
|
+
plain `pnpm dev` has the right first-run behavior without extra flags:
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"version": 1,
|
|
204
|
+
"onboarding": {
|
|
205
|
+
"firstRun": {
|
|
206
|
+
"development": "connect",
|
|
207
|
+
"production": "connect-and-integrations"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
`connect` keeps the Connect Builder / Add your own keys choice visible and
|
|
214
|
+
skips only the generic “This app is an agent.” integrations catalog. The
|
|
215
|
+
production value includes that catalog for a hosted app. Do not replace this
|
|
216
|
+
with a local credential form or remove the shared onboarding. In development,
|
|
217
|
+
the shared Connect Builder card also explains the deployment-level
|
|
218
|
+
`ANTHROPIC_API_KEY` / `OPENAI_API_KEY` fallback and links to the full
|
|
219
|
+
environment-variable guide.
|
|
220
|
+
|
|
221
|
+
When the onboarding default needs code rather than a static mode map, add an
|
|
222
|
+
optional `agent-native.config.ts` with the same returned shape:
|
|
223
|
+
|
|
224
|
+
```ts
|
|
225
|
+
import { defineAgentNativeConfig } from "@agent-native/core/config";
|
|
226
|
+
|
|
227
|
+
export default defineAgentNativeConfig(({ isDev }) => ({
|
|
228
|
+
version: 1,
|
|
229
|
+
onboarding: {
|
|
230
|
+
firstRun: isDev ? "connect" : "connect-and-integrations",
|
|
231
|
+
},
|
|
232
|
+
}));
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
The Vite preset loads this file automatically on supported Node versions. The
|
|
236
|
+
JSON file remains the portable, inspectable fallback. See the [Agent-Native
|
|
237
|
+
app configuration guide](/docs/agent-native-config) for precedence, supported
|
|
238
|
+
modes, and the boundary between committed config and deployment secrets.
|
|
239
|
+
|
|
240
|
+
For an account-free local preview, create the ignored local `.env` file with
|
|
241
|
+
`AUTH_DISABLED=1` before starting the dev server. This is only for loopback
|
|
242
|
+
development; never commit or deploy this setting. AI/provider connections still
|
|
243
|
+
use the normal onboarding flow or the documented environment-variable keys.
|
|
244
|
+
|
|
245
|
+
## 5. Run it immediately
|
|
246
|
+
|
|
247
|
+
From the new app directory:
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
pnpm dev
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
For a fresh local test app, use the ignored `.env` with `AUTH_DISABLED=1` so the
|
|
254
|
+
domain UI opens without an account; the committed app config makes shared
|
|
255
|
+
onboarding visible. Keep the process running so the user can try the app. Read
|
|
256
|
+
the actual server output and report the real local URL. If the app needs installation or a setup step,
|
|
257
|
+
complete it when possible and distinguish “not configured” from an unavailable
|
|
258
|
+
credential store.
|
|
259
|
+
|
|
260
|
+
## 6. Verify, build, and deploy
|
|
261
|
+
|
|
262
|
+
Exercise the actual happy path, not only the source files:
|
|
263
|
+
|
|
264
|
+
1. Load the reported URL and confirm the main route renders.
|
|
265
|
+
2. Confirm the shared onboarding state or a configured local key.
|
|
266
|
+
3. Click the primary workflow button and confirm the intended agent handoff.
|
|
267
|
+
Also click every other AI-labeled button and confirm it opens the same
|
|
268
|
+
contextual sidebar with the expected prompt or staged context.
|
|
269
|
+
4. Confirm the result, action persistence, application state, and sync path.
|
|
270
|
+
5. Check the dev output for browser/runtime errors, and capture input, result,
|
|
271
|
+
and agent-sidebar states so the complete flow is reviewable.
|
|
272
|
+
|
|
273
|
+
Then run the supported build. For a standalone app, use the generated app's
|
|
274
|
+
documented build and hosting path. For an app inside a workspace, use the
|
|
275
|
+
workspace deploy command, for example:
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
npx @agent-native/core@latest build
|
|
279
|
+
npx @agent-native/core@latest deploy --preset netlify
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Use `vercel` or another supported preset when that is the configured target.
|
|
283
|
+
Attempt deployment when the user requested it or the project already has the
|
|
284
|
+
required provider configuration. If external authentication, a production
|
|
285
|
+
secret, or a hosting decision is missing, finish local verification and report
|
|
286
|
+
the exact remaining handoff without claiming a live deployment.
|
|
287
|
+
|
|
288
|
+
Label evidence separately: locally running, locally verified, build-ready,
|
|
289
|
+
deployed, and live-verified are different states.
|
|
290
|
+
|
|
291
|
+
## Handoff
|
|
292
|
+
|
|
293
|
+
End with the new app directory, local URL, visual direction, what the buttons do,
|
|
294
|
+
account-free local-preview status, verification performed, deployment URL if it is real,
|
|
295
|
+
and one precise pending step when something could not be completed. Keep the
|
|
296
|
+
handoff short enough to use in a demo or recording.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Turn Into App"
|
|
3
|
+
short_description: "Turn a thread or skill into a runnable app"
|
|
4
|
+
default_prompt: "Scan the current thread, turn the workflow into a new Agent-Native app with clear buttons, run it locally, verify it, and complete the deployment handoff."
|