@agent-native/core 0.113.0 → 0.114.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-native.eject.json +164 -0
- package/corpus/README.md +3 -3
- package/corpus/core/CHANGELOG.md +20 -0
- package/corpus/core/README.md +61 -174
- package/corpus/core/agent-native.eject.json +164 -0
- package/corpus/core/docs/content/agent-native-toolkit.mdx +38 -0
- package/corpus/core/docs/content/package-lifecycle.mdx +54 -4
- package/corpus/core/package.json +15 -2
- package/corpus/core/src/cli/eject.ts +1594 -0
- package/corpus/core/src/cli/index.ts +16 -0
- package/corpus/core/src/client/build-compatibility.ts +77 -0
- package/corpus/core/src/client/index.ts +4 -0
- package/corpus/core/src/client/resources/McpConnectionSuggestion.tsx +8 -2
- package/corpus/core/src/client/resources/McpIntegrationDialog.tsx +7 -2
- package/corpus/core/src/client/resources/ResourcesPanel.tsx +17 -3
- package/corpus/core/src/client/resources/index.ts +19 -0
- package/corpus/core/src/client/resources/mcp-integration-catalog.ts +9 -1
- package/corpus/core/src/client/resources/runtime.ts +1 -0
- package/corpus/core/src/client/route-chunk-recovery/index.ts +1 -0
- package/corpus/core/src/client/setup-connections/catalog.ts +6 -0
- package/corpus/core/src/client/setup-connections/index.ts +1 -0
- package/corpus/core/src/client/setup-connections/runtime.ts +1 -0
- package/corpus/core/src/client/use-action.ts +32 -1
- package/corpus/core/src/connections/catalog.ts +41 -24
- package/corpus/core/src/connections/index.ts +1 -0
- package/corpus/core/src/connections/runtime.ts +1 -0
- package/corpus/core/src/deploy/build.ts +4 -1
- package/corpus/core/src/eject/provider-api-definitions.ts +193 -0
- package/corpus/core/src/eject/remote-mcp-presets.ts +137 -0
- package/corpus/core/src/eject/setup-readiness-ui.tsx +29 -0
- package/corpus/core/src/eject/workspace-connections.ts +92 -0
- package/corpus/core/src/index.ts +1 -0
- package/corpus/core/src/integrations/adapter-overrides.ts +12 -0
- package/corpus/core/src/integrations/eject/messaging-adapters.ts +85 -0
- package/corpus/core/src/integrations/index.ts +5 -1
- package/corpus/core/src/integrations/plugin.ts +34 -12
- package/corpus/core/src/integrations/runtime.ts +1 -0
- package/corpus/core/src/integrations/types.ts +3 -1
- package/corpus/core/src/org/context.ts +56 -30
- package/corpus/core/src/package-lifecycle/eject-manifest.ts +345 -0
- package/corpus/core/src/package-lifecycle/index.ts +1 -0
- package/corpus/core/src/provider-api/index.ts +46 -12
- package/corpus/core/src/provider-api/runtime.ts +1 -0
- package/corpus/core/src/server/action-routes.ts +52 -2
- package/corpus/core/src/server/auth-plugin.ts +9 -4
- package/corpus/core/src/server/better-auth-instance.ts +5 -1
- package/corpus/core/src/setup-connections/index.ts +1 -0
- package/corpus/core/src/shared/mcp-embed-headers.ts +1 -1
- package/corpus/core/src/shared/merge-by-id.ts +14 -0
- package/corpus/core/src/templates/default/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/corpus/core/src/templates/default/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/core/src/templates/default/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/core/src/templates/default/AGENTS.md +6 -5
- package/corpus/core/src/templates/headless/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/corpus/core/src/templates/headless/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/core/src/templates/headless/AGENTS.md +5 -4
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/corpus/core/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +3 -2
- package/corpus/core/src/templates/workspace-core/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/core/src/templates/workspace-core/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/core/src/templates/workspace-core/AGENTS.md +4 -4
- package/corpus/core/src/templates/workspace-root/AGENTS.md +4 -4
- package/corpus/core/src/vite/client.ts +42 -2
- package/corpus/templates/analytics/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/analytics/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/assets/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/assets/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/brain/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/brain/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/brain/actions/remediate-legacy-capture-audiences.ts +167 -0
- package/corpus/templates/brain/app/lib/brain-chat-readiness.ts +6 -0
- package/corpus/templates/brain/app/routes/_index.tsx +8 -0
- package/corpus/templates/brain/app/routes.ts +1 -0
- package/corpus/templates/brain/changelog/2026-07-19-ask-starts-immediately-when-builder-s-managed-ai-connection-.md +6 -0
- package/corpus/templates/brain/changelog/2026-07-19-slack-and-granola-backfills-now-process-captures-concurrentl.md +6 -0
- package/corpus/templates/brain/changelog/2026-07-19-source-review-settings-now-control-knowledge-approval.md +6 -0
- package/corpus/templates/brain/changelog/2026-07-19-the-manage-agent-page-now-opens-correctly-from-brain-navigat.md +6 -0
- package/corpus/templates/brain/server/db/schema.ts +3 -0
- package/corpus/templates/brain/server/lib/brain.ts +41 -2
- package/corpus/templates/brain/server/lib/connectors.ts +379 -113
- package/corpus/templates/brain/server/lib/meeting-audience.ts +38 -0
- package/corpus/templates/brain/server/plugins/db.ts +10 -0
- package/corpus/templates/brain/server/routes/api/_agent-native/brain/ingest.post.ts +6 -4
- package/corpus/templates/calendar/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/calendar/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/chat/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/corpus/templates/chat/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/chat/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/chat/AGENTS.md +3 -2
- package/corpus/templates/clips/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/clips/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/content/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/content/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/content/AGENTS.md +2 -0
- package/corpus/templates/content/actions/_content-database-personal-view.ts +49 -5
- package/corpus/templates/content/actions/_content-document-access.ts +21 -0
- package/corpus/templates/content/actions/_content-favorites.ts +91 -0
- package/corpus/templates/content/actions/_content-files.ts +79 -23
- package/corpus/templates/content/actions/_content-sidebar-state.ts +24 -0
- package/corpus/templates/content/actions/_content-space-access.ts +15 -17
- package/corpus/templates/content/actions/_content-space-catalog-guards.ts +20 -0
- package/corpus/templates/content/actions/_content-spaces.ts +364 -167
- package/corpus/templates/content/actions/_database-source-utils.ts +8 -0
- package/corpus/templates/content/actions/_database-utils.ts +249 -15
- package/corpus/templates/content/actions/_delete-content-space.ts +84 -0
- package/corpus/templates/content/actions/_files-system-properties.ts +499 -0
- package/corpus/templates/content/actions/_local-file-documents.ts +0 -1
- package/corpus/templates/content/actions/_property-utils.ts +18 -9
- package/corpus/templates/content/actions/bind-content-database-source-field.ts +3 -0
- package/corpus/templates/content/actions/configure-document-property.ts +3 -0
- package/corpus/templates/content/actions/create-content-database.ts +2 -2
- package/corpus/templates/content/actions/create-content-space.ts +34 -0
- package/corpus/templates/content/actions/create-document.ts +4 -1
- package/corpus/templates/content/actions/delete-content-space.ts +19 -0
- package/corpus/templates/content/actions/delete-database-items.ts +28 -1
- package/corpus/templates/content/actions/delete-document-property.ts +3 -0
- package/corpus/templates/content/actions/delete-document.ts +39 -2
- package/corpus/templates/content/actions/duplicate-database-item.ts +6 -0
- package/corpus/templates/content/actions/duplicate-database-items.ts +6 -0
- package/corpus/templates/content/actions/duplicate-document-property.ts +3 -0
- package/corpus/templates/content/actions/get-content-database.ts +11 -2
- package/corpus/templates/content/actions/get-content-sidebar-state.ts +23 -0
- package/corpus/templates/content/actions/get-document.ts +32 -7
- package/corpus/templates/content/actions/import-content-source.ts +33 -1
- package/corpus/templates/content/actions/list-content-spaces.ts +34 -2
- package/corpus/templates/content/actions/list-documents.ts +39 -7
- package/corpus/templates/content/actions/reorder-document-property.ts +9 -0
- package/corpus/templates/content/actions/set-document-property.ts +41 -23
- package/corpus/templates/content/actions/share-local-file-document.ts +15 -0
- package/corpus/templates/content/actions/submit-content-database-form.ts +7 -0
- package/corpus/templates/content/actions/sync-local-folder-source.ts +14 -0
- package/corpus/templates/content/actions/update-content-database-view.ts +1 -0
- package/corpus/templates/content/actions/update-content-sidebar-state.ts +27 -0
- package/corpus/templates/content/actions/update-document.ts +158 -66
- package/corpus/templates/content/app/components/EmptyState.tsx +4 -57
- package/corpus/templates/content/app/components/editor/CommentsSidebar.tsx +8 -1
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +519 -178
- package/corpus/templates/content/app/components/editor/DocumentInfoPanel.tsx +39 -0
- package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +1 -1
- package/corpus/templates/content/app/components/editor/DocumentToolbar.tsx +266 -7
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +430 -152
- package/corpus/templates/content/app/components/editor/database/sidebar.tsx +467 -66
- package/corpus/templates/content/app/components/editor/database/view-config.ts +9 -3
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +720 -196
- package/corpus/templates/content/app/components/sidebar/DocumentTreeItem.tsx +173 -1
- package/corpus/templates/content/app/components/sidebar/document-sidebar-sections.ts +1 -1
- package/corpus/templates/content/app/components/sidebar/select-content-space.ts +91 -16
- package/corpus/templates/content/app/entry.client.tsx +5 -1
- package/corpus/templates/content/app/hooks/use-content-database.ts +84 -3
- package/corpus/templates/content/app/hooks/use-content-spaces.ts +60 -2
- package/corpus/templates/content/app/hooks/use-create-page.ts +30 -0
- package/corpus/templates/content/app/hooks/use-documents.ts +270 -19
- package/corpus/templates/content/app/i18n-data.ts +243 -20
- package/corpus/templates/content/app/lib/local-folder-picker-safety.ts +54 -0
- package/corpus/templates/content/app/lib/local-folder-picker-support.ts +18 -0
- package/corpus/templates/content/app/routes/_app.favorites.tsx +30 -0
- package/corpus/templates/content/app/routes/_app.local-files.tsx +18 -6
- package/corpus/templates/content/changelog/2026-07-17-workspace-files-now-stay-in-a-loading-state-until-automatic-.md +6 -0
- package/corpus/templates/content/changelog/2026-07-17-workspace-switching-now-opens-the-selected-files-database-pr.md +6 -0
- package/corpus/templates/content/changelog/2026-07-17-workspaces-now-expand-above-their-own-files-list-without-dup.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-create-named-workspaces-each-with-its-own-private-files-data.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-favorites-align-with-workspace-and-file-rows-in-the-sidebar.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-local-folder-selection-no-longer-invokes-the-unsafe-native-p.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-made-content-workspaces-independently-expandable-restored-or.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-page-details-now-live-in-a-shared-info-and-comments-rail-dat.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-workspace-database-views-now-control-sidebar-workspace-navig.md +6 -0
- package/corpus/templates/content/changelog/2026-07-18-workspace-navigation-now-aligns-favorites-with-workspace-pag.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-favorites-now-open-as-a-table-and-compact-breadcrumbs-make-w.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-files-databases-now-start-unfiltered-sidebar-rows-exactly-fo.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-sidebar-page-trees-now-open-only-when-expanded-remember-thei.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-workspace-file-databases-now-use-the-workspace-name-open-as-.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-workspace-navigation-now-stays-stable-on-hover-uses-folder-i.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-workspace-rows-now-use-folder-icons-and-deleting-a-user-crea.md +6 -0
- package/corpus/templates/content/changelog/2026-07-19-workspaces-can-be-created-without-leaving-the-workspaces-dat.md +6 -0
- package/corpus/templates/content/e2e/global-setup.ts +3 -2
- package/corpus/templates/content/parity/matrix.md +28 -28
- package/corpus/templates/content/parity/matrix.ts +8 -2
- package/corpus/templates/content/server/db/index.ts +1 -0
- package/corpus/templates/content/server/db/schema.ts +10 -0
- package/corpus/templates/content/server/lib/documents.ts +12 -7
- package/corpus/templates/content/server/plugins/db.ts +17 -0
- package/corpus/templates/content/shared/api.ts +9 -0
- package/corpus/templates/content/shared/database-form.ts +11 -2
- package/corpus/templates/content/vite.config.ts +1 -0
- package/corpus/templates/design/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/design/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/dispatch/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/dispatch/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/forms/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/forms/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/macros/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/mail/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/mail/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/plan/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/plan/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/slides/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/slides/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/templates/tasks/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/corpus/templates/tasks/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/corpus/templates/tasks/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/corpus/toolkit/CHANGELOG.md +6 -0
- package/corpus/toolkit/agent-native.eject.json +411 -0
- package/corpus/toolkit/package.json +5 -2
- package/dist/cli/eject.d.ts +21 -0
- package/dist/cli/eject.d.ts.map +1 -0
- package/dist/cli/eject.js +1145 -0
- package/dist/cli/eject.js.map +1 -0
- package/dist/cli/index.js +15 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/client/build-compatibility.d.ts +11 -0
- package/dist/client/build-compatibility.d.ts.map +1 -0
- package/dist/client/build-compatibility.js +56 -0
- package/dist/client/build-compatibility.js.map +1 -0
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/resources/McpConnectionSuggestion.d.ts +4 -3
- package/dist/client/resources/McpConnectionSuggestion.d.ts.map +1 -1
- package/dist/client/resources/McpConnectionSuggestion.js +3 -3
- package/dist/client/resources/McpConnectionSuggestion.js.map +1 -1
- package/dist/client/resources/McpIntegrationDialog.d.ts +4 -3
- package/dist/client/resources/McpIntegrationDialog.d.ts.map +1 -1
- package/dist/client/resources/McpIntegrationDialog.js +2 -2
- package/dist/client/resources/McpIntegrationDialog.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts +4 -1
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js +9 -7
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/resources/index.d.ts +3 -0
- package/dist/client/resources/index.d.ts.map +1 -1
- package/dist/client/resources/index.js +3 -0
- package/dist/client/resources/index.js.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.d.ts +2 -1
- package/dist/client/resources/mcp-integration-catalog.d.ts.map +1 -1
- package/dist/client/resources/mcp-integration-catalog.js +6 -2
- package/dist/client/resources/mcp-integration-catalog.js.map +1 -1
- package/dist/client/resources/runtime.d.ts +2 -0
- package/dist/client/resources/runtime.d.ts.map +1 -0
- package/dist/client/resources/runtime.js +2 -0
- package/dist/client/resources/runtime.js.map +1 -0
- package/dist/client/route-chunk-recovery/index.d.ts +1 -0
- package/dist/client/route-chunk-recovery/index.d.ts.map +1 -1
- package/dist/client/route-chunk-recovery/index.js +1 -0
- package/dist/client/route-chunk-recovery/index.js.map +1 -1
- package/dist/client/setup-connections/catalog.d.ts +2 -0
- package/dist/client/setup-connections/catalog.d.ts.map +1 -0
- package/dist/client/setup-connections/catalog.js +7 -0
- package/dist/client/setup-connections/catalog.js.map +1 -0
- package/dist/client/setup-connections/index.d.ts +1 -0
- package/dist/client/setup-connections/index.d.ts.map +1 -1
- package/dist/client/setup-connections/index.js +1 -0
- package/dist/client/setup-connections/index.js.map +1 -1
- package/dist/client/setup-connections/runtime.d.ts +2 -0
- package/dist/client/setup-connections/runtime.d.ts.map +1 -0
- package/dist/client/setup-connections/runtime.js +2 -0
- package/dist/client/setup-connections/runtime.js.map +1 -0
- package/dist/client/use-action.d.ts.map +1 -1
- package/dist/client/use-action.js +19 -1
- package/dist/client/use-action.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/connections/catalog.d.ts +5 -3
- package/dist/connections/catalog.d.ts.map +1 -1
- package/dist/connections/catalog.js +16 -8
- package/dist/connections/catalog.js.map +1 -1
- package/dist/connections/index.d.ts +1 -1
- package/dist/connections/index.d.ts.map +1 -1
- package/dist/connections/index.js +1 -1
- package/dist/connections/index.js.map +1 -1
- package/dist/connections/runtime.d.ts +2 -0
- package/dist/connections/runtime.d.ts.map +1 -0
- package/dist/connections/runtime.js +2 -0
- package/dist/connections/runtime.js.map +1 -0
- package/dist/deploy/build.js +2 -1
- package/dist/deploy/build.js.map +1 -1
- package/dist/eject/provider-api-definitions.d.ts +34 -0
- package/dist/eject/provider-api-definitions.d.ts.map +1 -0
- package/dist/eject/provider-api-definitions.js +88 -0
- package/dist/eject/provider-api-definitions.js.map +1 -0
- package/dist/eject/remote-mcp-presets.d.ts +17 -0
- package/dist/eject/remote-mcp-presets.d.ts.map +1 -0
- package/dist/eject/remote-mcp-presets.js +81 -0
- package/dist/eject/remote-mcp-presets.js.map +1 -0
- package/dist/eject/setup-readiness-ui.d.ts +7 -0
- package/dist/eject/setup-readiness-ui.d.ts.map +1 -0
- package/dist/eject/setup-readiness-ui.js +13 -0
- package/dist/eject/setup-readiness-ui.js.map +1 -0
- package/dist/eject/workspace-connections.d.ts +11 -0
- package/dist/eject/workspace-connections.d.ts.map +1 -0
- package/dist/eject/workspace-connections.js +47 -0
- package/dist/eject/workspace-connections.js.map +1 -0
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/adapter-overrides.d.ts +3 -0
- package/dist/integrations/adapter-overrides.d.ts.map +1 -0
- package/dist/integrations/adapter-overrides.js +7 -0
- package/dist/integrations/adapter-overrides.js.map +1 -0
- package/dist/integrations/eject/messaging-adapters.d.ts +12 -0
- package/dist/integrations/eject/messaging-adapters.d.ts.map +1 -0
- package/dist/integrations/eject/messaging-adapters.js +49 -0
- package/dist/integrations/eject/messaging-adapters.js.map +1 -0
- package/dist/integrations/index.d.ts +3 -2
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +2 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/plugin.d.ts +32 -1
- package/dist/integrations/plugin.d.ts.map +1 -1
- package/dist/integrations/plugin.js +19 -12
- package/dist/integrations/plugin.js.map +1 -1
- package/dist/integrations/runtime.d.ts +2 -0
- package/dist/integrations/runtime.d.ts.map +1 -0
- package/dist/integrations/runtime.js +2 -0
- package/dist/integrations/runtime.js.map +1 -0
- package/dist/integrations/types.d.ts +3 -1
- package/dist/integrations/types.d.ts.map +1 -1
- package/dist/integrations/types.js.map +1 -1
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +5 -5
- package/dist/org/context.d.ts +4 -2
- package/dist/org/context.d.ts.map +1 -1
- package/dist/org/context.js +44 -22
- package/dist/org/context.js.map +1 -1
- package/dist/package-lifecycle/eject-manifest.d.ts +43 -0
- package/dist/package-lifecycle/eject-manifest.d.ts.map +1 -0
- package/dist/package-lifecycle/eject-manifest.js +219 -0
- package/dist/package-lifecycle/eject-manifest.js.map +1 -0
- package/dist/package-lifecycle/index.d.ts +1 -0
- package/dist/package-lifecycle/index.d.ts.map +1 -1
- package/dist/package-lifecycle/index.js +1 -0
- package/dist/package-lifecycle/index.js.map +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +11 -11
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/provider-api/index.d.ts +6 -2
- package/dist/provider-api/index.d.ts.map +1 -1
- package/dist/provider-api/index.js +25 -12
- package/dist/provider-api/index.js.map +1 -1
- package/dist/provider-api/runtime.d.ts +2 -0
- package/dist/provider-api/runtime.d.ts.map +1 -0
- package/dist/provider-api/runtime.js +2 -0
- package/dist/provider-api/runtime.js.map +1 -0
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/server/action-routes.d.ts.map +1 -1
- package/dist/server/action-routes.js +32 -2
- package/dist/server/action-routes.js.map +1 -1
- package/dist/server/auth-plugin.d.ts.map +1 -1
- package/dist/server/auth-plugin.js +9 -5
- package/dist/server/auth-plugin.js.map +1 -1
- package/dist/server/better-auth-instance.d.ts.map +1 -1
- package/dist/server/better-auth-instance.js +4 -1
- package/dist/server/better-auth-instance.js.map +1 -1
- package/dist/setup-connections/index.d.ts +1 -1
- package/dist/setup-connections/index.d.ts.map +1 -1
- package/dist/setup-connections/index.js +1 -1
- package/dist/setup-connections/index.js.map +1 -1
- package/dist/shared/mcp-embed-headers.d.ts +1 -1
- package/dist/shared/mcp-embed-headers.d.ts.map +1 -1
- package/dist/shared/mcp-embed-headers.js +1 -1
- package/dist/shared/mcp-embed-headers.js.map +1 -1
- package/dist/shared/merge-by-id.d.ts +5 -0
- package/dist/shared/merge-by-id.d.ts.map +1 -0
- package/dist/shared/merge-by-id.js +7 -0
- package/dist/shared/merge-by-id.js.map +1 -0
- package/dist/templates/chat/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/dist/templates/chat/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/dist/templates/chat/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/dist/templates/chat/AGENTS.md +3 -2
- package/dist/templates/default/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/dist/templates/default/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/dist/templates/default/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/dist/templates/default/AGENTS.md +6 -5
- package/dist/templates/headless/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/dist/templates/headless/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/dist/templates/headless/AGENTS.md +5 -4
- package/dist/templates/workspace-core/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/dist/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +3 -2
- package/dist/templates/workspace-core/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/dist/templates/workspace-core/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/dist/templates/workspace-core/AGENTS.md +4 -4
- package/dist/templates/workspace-root/AGENTS.md +4 -4
- package/dist/vite/client.d.ts +6 -0
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +30 -2
- package/dist/vite/client.js.map +1 -1
- package/docs/content/agent-native-toolkit.mdx +38 -0
- package/docs/content/package-lifecycle.mdx +54 -4
- package/package.json +15 -2
- package/src/a2a/agent-card.ts +83 -0
- package/src/a2a/artifact-response.ts +1648 -0
- package/src/a2a/auth-policy.ts +66 -0
- package/src/a2a/caller-auth.ts +102 -0
- package/src/a2a/client.ts +876 -0
- package/src/a2a/correlation.ts +50 -0
- package/src/a2a/handlers.ts +1285 -0
- package/src/a2a/index.ts +50 -0
- package/src/a2a/invoke.ts +348 -0
- package/src/a2a/response-text.ts +53 -0
- package/src/a2a/server.ts +586 -0
- package/src/a2a/task-store.ts +917 -0
- package/src/a2a/types.ts +221 -0
- package/src/a2a-claims.ts +52 -0
- package/src/action-change-marker.ts +74 -0
- package/src/action-ui.ts +38 -0
- package/src/action.ts +1406 -0
- package/src/adapters/cli/index.ts +6 -0
- package/src/adapters/cli/registry.ts +73 -0
- package/src/adapters/cli/shell-adapter.ts +92 -0
- package/src/adapters/cli/types.ts +27 -0
- package/src/agent/action-continuation-guidance.ts +38 -0
- package/src/agent/app-model-defaults.ts +201 -0
- package/src/agent/context-xray/actions/context-evict.ts +56 -0
- package/src/agent/context-xray/actions/context-manifest-get.ts +75 -0
- package/src/agent/context-xray/actions/context-pin.ts +56 -0
- package/src/agent/context-xray/actions/context-preview-get.ts +134 -0
- package/src/agent/context-xray/actions/context-report.ts +75 -0
- package/src/agent/context-xray/actions/context-restore.ts +51 -0
- package/src/agent/context-xray/actions/errors.ts +40 -0
- package/src/agent/context-xray/apply-directives.ts +137 -0
- package/src/agent/context-xray/directives-store.ts +178 -0
- package/src/agent/context-xray/identity.ts +37 -0
- package/src/agent/context-xray/manifest.ts +284 -0
- package/src/agent/context-xray/migrations.ts +32 -0
- package/src/agent/context-xray/plugin.ts +23 -0
- package/src/agent/context-xray/schema.ts +17 -0
- package/src/agent/context-xray/segments.ts +194 -0
- package/src/agent/context-xray/tokenize.ts +93 -0
- package/src/agent/default-model.ts +5 -0
- package/src/agent/durable-background.ts +547 -0
- package/src/agent/engine/ai-sdk-engine.ts +565 -0
- package/src/agent/engine/anthropic-engine.ts +320 -0
- package/src/agent/engine/builder-engine.ts +1110 -0
- package/src/agent/engine/builder-gateway-headers.ts +44 -0
- package/src/agent/engine/builtin.ts +122 -0
- package/src/agent/engine/context-directives-transform.ts +73 -0
- package/src/agent/engine/continuation-dispatch-retry.ts +168 -0
- package/src/agent/engine/credential-errors.ts +69 -0
- package/src/agent/engine/index.ts +54 -0
- package/src/agent/engine/openai-compatible-endpoint.ts +25 -0
- package/src/agent/engine/output-tokens.ts +181 -0
- package/src/agent/engine/provider-env-vars.ts +69 -0
- package/src/agent/engine/registry.ts +853 -0
- package/src/agent/engine/tool-call-journal-seed.ts +85 -0
- package/src/agent/engine/translate-ai-sdk.ts +407 -0
- package/src/agent/engine/translate-anthropic.ts +611 -0
- package/src/agent/engine/types.ts +310 -0
- package/src/agent/harness/acp-adapter.ts +893 -0
- package/src/agent/harness/acp-builtin.ts +70 -0
- package/src/agent/harness/ai-sdk-adapter.ts +509 -0
- package/src/agent/harness/background.ts +365 -0
- package/src/agent/harness/builtin.ts +50 -0
- package/src/agent/harness/index.ts +86 -0
- package/src/agent/harness/lifecycle.ts +498 -0
- package/src/agent/harness/registry.ts +97 -0
- package/src/agent/harness/runner.ts +182 -0
- package/src/agent/harness/store.ts +466 -0
- package/src/agent/harness/translate.ts +130 -0
- package/src/agent/harness/types.ts +129 -0
- package/src/agent/index.ts +32 -0
- package/src/agent/loop-settings.ts +186 -0
- package/src/agent/model-config.ts +363 -0
- package/src/agent/observational-memory/compactor.ts +78 -0
- package/src/agent/observational-memory/config.ts +78 -0
- package/src/agent/observational-memory/index.ts +79 -0
- package/src/agent/observational-memory/internal-run.ts +89 -0
- package/src/agent/observational-memory/message-text.ts +49 -0
- package/src/agent/observational-memory/migrations.ts +44 -0
- package/src/agent/observational-memory/observer.ts +128 -0
- package/src/agent/observational-memory/plugin.ts +35 -0
- package/src/agent/observational-memory/prompts.ts +53 -0
- package/src/agent/observational-memory/read.ts +131 -0
- package/src/agent/observational-memory/reflector.ts +119 -0
- package/src/agent/observational-memory/schema.ts +48 -0
- package/src/agent/observational-memory/store.ts +275 -0
- package/src/agent/observational-memory/types.ts +65 -0
- package/src/agent/processors.ts +209 -0
- package/src/agent/production-agent.ts +8254 -0
- package/src/agent/run-loop-with-resume.ts +394 -0
- package/src/agent/run-manager.ts +1825 -0
- package/src/agent/run-ownership.ts +75 -0
- package/src/agent/run-store.ts +2601 -0
- package/src/agent/runtime-context.ts +169 -0
- package/src/agent/thread-data-builder.ts +1584 -0
- package/src/agent/tool-call-journal.ts +368 -0
- package/src/agent/tool-error-redaction.ts +52 -0
- package/src/agent/tool-result-images.ts +178 -0
- package/src/agent/tool-search.ts +376 -0
- package/src/agent/types.ts +372 -0
- package/src/agent-native/index.ts +198 -0
- package/src/agent-web/config.ts +253 -0
- package/src/agent-web/generator.ts +382 -0
- package/src/agent-web/index.ts +36 -0
- package/src/appearance/actions/change-appearance.ts +35 -0
- package/src/application-state/emitter.ts +81 -0
- package/src/application-state/handlers.ts +121 -0
- package/src/application-state/index.ts +44 -0
- package/src/application-state/script-helpers.ts +155 -0
- package/src/application-state/store.ts +274 -0
- package/src/assets/branding/agent-native.icon/Assets/background.svg +3 -0
- package/src/assets/branding/agent-native.icon/Assets/foreground.svg +12 -0
- package/src/assets/branding/agent-native.icon/icon.json +49 -0
- package/src/assets/branding/favicon.png +0 -0
- package/src/assets/branding/favicon.svg +1 -0
- package/src/assets/branding/icon-on-dark.svg +10 -0
- package/src/assets/branding/icon-on-light.svg +10 -0
- package/src/assets/branding/mac-app-icon.svg +1 -0
- package/src/assets/branding/slack-bot/agent-native-1024.png +0 -0
- package/src/assets/branding/slack-bot/agent-native-512.png +0 -0
- package/src/assets/branding/tray-icon.svg +6 -0
- package/src/assets/branding/wordmark-on-dark.svg +21 -0
- package/src/assets/branding/wordmark-on-light.svg +21 -0
- package/src/assets/fonts/LICENSE_LIBERATION +96 -0
- package/src/assets/fonts/LICENSE_NOTO_NASKH_ARABIC +93 -0
- package/src/assets/fonts/LiberationSans-Bold.ttf +0 -0
- package/src/assets/fonts/LiberationSans-Regular.ttf +0 -0
- package/src/assets/fonts/NotoNaskhArabic-Variable.ttf +0 -0
- package/src/audit/actions/export-audit-events.ts +162 -0
- package/src/audit/actions/get-audit-event.ts +24 -0
- package/src/audit/actions/list-audit-events.ts +66 -0
- package/src/audit/cleanup-job.ts +100 -0
- package/src/audit/config.ts +90 -0
- package/src/audit/index.ts +43 -0
- package/src/audit/record.ts +180 -0
- package/src/audit/redact.ts +109 -0
- package/src/audit/store.ts +346 -0
- package/src/audit/types.ts +141 -0
- package/src/automation/index.ts +802 -0
- package/src/brand-kit/brand-signals.ts +124 -0
- package/src/brand-kit/fig/index.ts +64 -0
- package/src/brand-kit/index.ts +72 -0
- package/src/brand-kit/types.ts +113 -0
- package/src/browser-sessions/actions.ts +302 -0
- package/src/browser-sessions/routes.ts +234 -0
- package/src/browser-sessions/store.ts +679 -0
- package/src/browser-sessions/types.ts +84 -0
- package/src/changelog/parse.ts +328 -0
- package/src/chat-threads/emitter.ts +22 -0
- package/src/chat-threads/schema.ts +43 -0
- package/src/chat-threads/store.ts +1311 -0
- package/src/checkpoints/index.ts +15 -0
- package/src/checkpoints/service.ts +142 -0
- package/src/checkpoints/store.ts +153 -0
- package/src/cli/add.ts +425 -0
- package/src/cli/agent.ts +424 -0
- package/src/cli/agents.ts +122 -0
- package/src/cli/app-skill.ts +1455 -0
- package/src/cli/atomic-json-file.ts +324 -0
- package/src/cli/audit-agent-web.ts +324 -0
- package/src/cli/changelog.ts +199 -0
- package/src/cli/claude-code-participant.ts +515 -0
- package/src/cli/code-agent-commands.ts +270 -0
- package/src/cli/code-agent-connector.ts +1109 -0
- package/src/cli/code-agent-executor.ts +1970 -0
- package/src/cli/code-agent-output-smoother.ts +140 -0
- package/src/cli/code-agent-runs.concurrent-worker.ts +33 -0
- package/src/cli/code-agent-runs.ts +548 -0
- package/src/cli/code.ts +1805 -0
- package/src/cli/codex-cli-participant.ts +496 -0
- package/src/cli/connect.ts +2714 -0
- package/src/cli/content-local.ts +442 -0
- package/src/cli/context-xray-local.ts +2193 -0
- package/src/cli/create-workspace.ts +30 -0
- package/src/cli/create.ts +2247 -0
- package/src/cli/deploy-build.ts +50 -0
- package/src/cli/design-connect.ts +3187 -0
- package/src/cli/doctor.ts +472 -0
- package/src/cli/eject.ts +1594 -0
- package/src/cli/eval.ts +134 -0
- package/src/cli/gateway-helpers.ts +70 -0
- package/src/cli/index.ts +1217 -0
- package/src/cli/info.ts +105 -0
- package/src/cli/invoke.ts +288 -0
- package/src/cli/mcp-config-writers.ts +857 -0
- package/src/cli/mcp.ts +594 -0
- package/src/cli/migrate.ts +1813 -0
- package/src/cli/migration-codemod.ts +646 -0
- package/src/cli/multi-frontier-runs.ts +1952 -0
- package/src/cli/package-lifecycle.ts +823 -0
- package/src/cli/plan-blocks.ts +143 -0
- package/src/cli/plan-local.ts +3189 -0
- package/src/cli/plan-publish-store.ts +138 -0
- package/src/cli/pr-visual-recap-workflow.ts +2 -0
- package/src/cli/recap.ts +5 -0
- package/src/cli/setup-agents.ts +120 -0
- package/src/cli/skills-content/assets-skill.ts +83 -0
- package/src/cli/skills-content/canvas.ts +153 -0
- package/src/cli/skills-content/connection.ts +52 -0
- package/src/cli/skills-content/content-skill.ts +120 -0
- package/src/cli/skills-content/design-exploration-skill.ts +118 -0
- package/src/cli/skills-content/design-visual-edit-skill.ts +228 -0
- package/src/cli/skills-content/document-quality.ts +196 -0
- package/src/cli/skills-content/exemplar.ts +69 -0
- package/src/cli/skills-content/help.ts +77 -0
- package/src/cli/skills-content/index.ts +22 -0
- package/src/cli/skills-content/local-files.ts +100 -0
- package/src/cli/skills-content/plan-setup-auth.ts +80 -0
- package/src/cli/skills-content/visual-plan-skill.ts +493 -0
- package/src/cli/skills-content/visual-recap-skill.ts +553 -0
- package/src/cli/skills-content/visualize-repo-skill.ts +93 -0
- package/src/cli/skills-content/wireframe.ts +349 -0
- package/src/cli/skills.ts +4340 -0
- package/src/cli/sync-builder-starter-manifest.ts +631 -0
- package/src/cli/telemetry.ts +136 -0
- package/src/cli/templates-meta.ts +269 -0
- package/src/cli/upgrade.ts +956 -0
- package/src/cli/visualize-repo.ts +715 -0
- package/src/cli/workspace-dev.ts +1486 -0
- package/src/cli/workspacify.ts +258 -0
- package/src/client/AgentAskPopover.tsx +89 -0
- package/src/client/AgentChatHome.tsx +66 -0
- package/src/client/AgentNative.tsx +161 -0
- package/src/client/AgentNativeEmbedded.tsx +288 -0
- package/src/client/AgentNativeFrame.tsx +151 -0
- package/src/client/AgentPanel.tsx +3437 -0
- package/src/client/AgentTaskCard.tsx +273 -0
- package/src/client/AppearancePicker.tsx +79 -0
- package/src/client/AssistantChat.tsx +5793 -0
- package/src/client/ClientOnly.tsx +22 -0
- package/src/client/CommandMenu.tsx +726 -0
- package/src/client/ConnectBuilderCard.tsx +390 -0
- package/src/client/DefaultSpinner.tsx +47 -0
- package/src/client/ErrorBoundary.tsx +359 -0
- package/src/client/ErrorReportActions.tsx +69 -0
- package/src/client/FeedbackButton.tsx +553 -0
- package/src/client/HighlightedCodeBlock.tsx +173 -0
- package/src/client/IframeEmbed.tsx +151 -0
- package/src/client/KeepTabOpenNotice.tsx +181 -0
- package/src/client/MultiTabAssistantChat.tsx +2576 -0
- package/src/client/NewWorkspaceAppFlow.tsx +525 -0
- package/src/client/PoweredByBadge.tsx +284 -0
- package/src/client/RunStuckBanner.tsx +431 -0
- package/src/client/StarfieldBackground.tsx +466 -0
- package/src/client/Turnstile.tsx +125 -0
- package/src/client/active-run-state.ts +139 -0
- package/src/client/agent-chat/index.ts +279 -0
- package/src/client/agent-chat-adapter.ts +3692 -0
- package/src/client/agent-chat.ts +1233 -0
- package/src/client/agent-engine-key.ts +122 -0
- package/src/client/agent-page/AgentContextTab.tsx +487 -0
- package/src/client/agent-page/AgentEmptyState.tsx +44 -0
- package/src/client/agent-page/AgentJobsTab.tsx +441 -0
- package/src/client/agent-page/AgentTabFrame.tsx +39 -0
- package/src/client/agent-page/AgentTabsPage.tsx +1096 -0
- package/src/client/agent-page/types.ts +18 -0
- package/src/client/agent-page/use-jobs.ts +150 -0
- package/src/client/agent-sidebar-state.ts +166 -0
- package/src/client/analytics/index.ts +40 -0
- package/src/client/analytics-session.ts +70 -0
- package/src/client/analytics.ts +1757 -0
- package/src/client/api-path.ts +124 -0
- package/src/client/app-providers.tsx +230 -0
- package/src/client/appearance.ts +130 -0
- package/src/client/application-state.ts +154 -0
- package/src/client/assistant-ui-recovery.tsx +205 -0
- package/src/client/automation/index.ts +4 -0
- package/src/client/automation.ts +22 -0
- package/src/client/blocks/AiEditableField.tsx +30 -0
- package/src/client/blocks/BlockView.tsx +145 -0
- package/src/client/blocks/RegistryBlockDataProvider.tsx +121 -0
- package/src/client/blocks/SchemaBlockEditor.tsx +457 -0
- package/src/client/blocks/agent.ts +95 -0
- package/src/client/blocks/code-block-direction.ts +21 -0
- package/src/client/blocks/index.ts +308 -0
- package/src/client/blocks/library/AnnotatedCodeBlock.tsx +710 -0
- package/src/client/blocks/library/ApiEndpointBlock.tsx +1120 -0
- package/src/client/blocks/library/DataModelBlock.tsx +775 -0
- package/src/client/blocks/library/DiffBlock.tsx +1854 -0
- package/src/client/blocks/library/FileTreeBlock.tsx +868 -0
- package/src/client/blocks/library/HighlightedCode.tsx +260 -0
- package/src/client/blocks/library/JsonExplorerBlock.tsx +608 -0
- package/src/client/blocks/library/MermaidBlock.tsx +362 -0
- package/src/client/blocks/library/OpenApiSpecBlock.tsx +998 -0
- package/src/client/blocks/library/annotated-code.config.ts +101 -0
- package/src/client/blocks/library/annotation-rail.tsx +1020 -0
- package/src/client/blocks/library/api-endpoint.config.ts +207 -0
- package/src/client/blocks/library/block-copy.ts +399 -0
- package/src/client/blocks/library/callout.config.ts +57 -0
- package/src/client/blocks/library/callout.tsx +149 -0
- package/src/client/blocks/library/checklist.config.ts +56 -0
- package/src/client/blocks/library/checklist.tsx +208 -0
- package/src/client/blocks/library/code-filename-label.tsx +59 -0
- package/src/client/blocks/library/code-highlight.tsx +178 -0
- package/src/client/blocks/library/code-tabs.config.ts +70 -0
- package/src/client/blocks/library/code-tabs.tsx +606 -0
- package/src/client/blocks/library/code.config.ts +69 -0
- package/src/client/blocks/library/code.tsx +440 -0
- package/src/client/blocks/library/columns.config.ts +85 -0
- package/src/client/blocks/library/columns.tsx +334 -0
- package/src/client/blocks/library/data-model.config.ts +152 -0
- package/src/client/blocks/library/dev-doc-ui.tsx +191 -0
- package/src/client/blocks/library/diagram.config.ts +222 -0
- package/src/client/blocks/library/diagram.tsx +958 -0
- package/src/client/blocks/library/diff.config.ts +115 -0
- package/src/client/blocks/library/file-tree.config.ts +92 -0
- package/src/client/blocks/library/html.config.ts +79 -0
- package/src/client/blocks/library/html.tsx +258 -0
- package/src/client/blocks/library/json-explorer.config.ts +74 -0
- package/src/client/blocks/library/mermaid.config.ts +49 -0
- package/src/client/blocks/library/narrow-container.tsx +37 -0
- package/src/client/blocks/library/openapi-spec.config.ts +66 -0
- package/src/client/blocks/library/question-form.config.ts +127 -0
- package/src/client/blocks/library/question-form.tsx +944 -0
- package/src/client/blocks/library/sanitize-html.ts +343 -0
- package/src/client/blocks/library/server-specs.ts +338 -0
- package/src/client/blocks/library/specs.tsx +308 -0
- package/src/client/blocks/library/table.config.ts +61 -0
- package/src/client/blocks/library/table.tsx +449 -0
- package/src/client/blocks/library/tabs.config.ts +96 -0
- package/src/client/blocks/library/tabs.tsx +665 -0
- package/src/client/blocks/library/wireframe-icons.ts +210 -0
- package/src/client/blocks/library/wireframe-kit.tsx +1850 -0
- package/src/client/blocks/library/wireframe.config.ts +539 -0
- package/src/client/blocks/library/wireframe.tsx +535 -0
- package/src/client/blocks/mdx.ts +364 -0
- package/src/client/blocks/provider.tsx +51 -0
- package/src/client/blocks/registry.ts +83 -0
- package/src/client/blocks/schema-form/introspect.ts +201 -0
- package/src/client/blocks/server.ts +170 -0
- package/src/client/blocks/types.ts +415 -0
- package/src/client/browser-session-bridge.ts +548 -0
- package/src/client/browser-tab-id.ts +36 -0
- package/src/client/build-compatibility.ts +77 -0
- package/src/client/builder-frame.ts +194 -0
- package/src/client/builder-mark.tsx +21 -0
- package/src/client/changelog/Changelog.tsx +333 -0
- package/src/client/changelog/index.ts +1 -0
- package/src/client/chat/ChatHistoryList.tsx +7 -0
- package/src/client/chat/attachment-adapters.ts +426 -0
- package/src/client/chat/connectors.ts +1579 -0
- package/src/client/chat/index.ts +160 -0
- package/src/client/chat/markdown-renderer.tsx +693 -0
- package/src/client/chat/message-components.tsx +1326 -0
- package/src/client/chat/repo-helpers.ts +281 -0
- package/src/client/chat/run-recovery.tsx +994 -0
- package/src/client/chat/runtime.ts +1810 -0
- package/src/client/chat/tool-call-display.tsx +1270 -0
- package/src/client/chat/tool-render-registry.tsx +144 -0
- package/src/client/chat/use-agent-chat-lifecycle-tracking.ts +74 -0
- package/src/client/chat/use-reconnect-reader-owner.ts +28 -0
- package/src/client/chat/widgets/DataChartRenderer.tsx +242 -0
- package/src/client/chat/widgets/DataChartWidget.tsx +51 -0
- package/src/client/chat/widgets/DataInsightsWidget.tsx +59 -0
- package/src/client/chat/widgets/DataTableWidget.tsx +240 -0
- package/src/client/chat/widgets/InlineExtensionWidget.tsx +60 -0
- package/src/client/chat/widgets/builtin-tool-renderers.tsx +213 -0
- package/src/client/chat/widgets/data-widget-types.ts +1 -0
- package/src/client/chat/widgets/inline-extension-result.ts +86 -0
- package/src/client/chat-model-groups.ts +171 -0
- package/src/client/chat-thread-url.ts +11 -0
- package/src/client/chat-view-transition.ts +213 -0
- package/src/client/client-action.ts +21 -0
- package/src/client/client-bootstrap.ts +7 -0
- package/src/client/client-surface.ts +41 -0
- package/src/client/clipboard.ts +89 -0
- package/src/client/code-agent-chat-adapter.ts +537 -0
- package/src/client/collab/index.ts +60 -0
- package/src/client/command-navigation/index.ts +15 -0
- package/src/client/comments-review/index.ts +1 -0
- package/src/client/components/AgentPresenceChip.tsx +4 -0
- package/src/client/components/ApiKeySettings.tsx +309 -0
- package/src/client/components/CodeAgentIndicator.tsx +59 -0
- package/src/client/components/CodeRequiredDialog.tsx +470 -0
- package/src/client/components/LiveCursorOverlay.tsx +5 -0
- package/src/client/components/MissingKeyCard.tsx +61 -0
- package/src/client/components/PresenceBar.tsx +4 -0
- package/src/client/components/RecentEditHighlights.tsx +4 -0
- package/src/client/components/RemoteSelectionRings.tsx +5 -0
- package/src/client/components/icons/AgentNativeIcon.tsx +46 -0
- package/src/client/components/ui/dialog.tsx +1 -0
- package/src/client/components/ui/dropdown-menu.tsx +1 -0
- package/src/client/components/ui/hover-card.tsx +1 -0
- package/src/client/components/ui/message-scroller.tsx +131 -0
- package/src/client/components/ui/popover.tsx +1 -0
- package/src/client/components/ui/sheet.tsx +1 -0
- package/src/client/components/ui/tooltip.tsx +1 -0
- package/src/client/composer/index.ts +11 -0
- package/src/client/composer/runtime-adapters.tsx +123 -0
- package/src/client/composer/use-mention-search.ts +7 -0
- package/src/client/composer/wired-components.tsx +53 -0
- package/src/client/context-xray/ContextMeter.tsx +124 -0
- package/src/client/context-xray/ContextSegmentRow.tsx +27 -0
- package/src/client/context-xray/ContextTreemap.tsx +24 -0
- package/src/client/context-xray/ContextXRayPanel.tsx +59 -0
- package/src/client/context-xray/SegmentProvenancePopover.tsx +18 -0
- package/src/client/context-xray/format.ts +27 -0
- package/src/client/conversation/AgentConversation.tsx +555 -0
- package/src/client/conversation/code-agent-transcript.ts +283 -0
- package/src/client/conversation/index.ts +22 -0
- package/src/client/conversation/types.ts +85 -0
- package/src/client/conversation/use-near-bottom-autoscroll.ts +278 -0
- package/src/client/create-query-client.ts +86 -0
- package/src/client/db-admin/DataGrid.tsx +551 -0
- package/src/client/db-admin/DbAdminPage.tsx +218 -0
- package/src/client/db-admin/DevDatabaseLink.tsx +16 -0
- package/src/client/db-admin/EditableCell.tsx +451 -0
- package/src/client/db-admin/FilterBar.tsx +203 -0
- package/src/client/db-admin/ResultsGrid.tsx +114 -0
- package/src/client/db-admin/RowSidePanel.tsx +337 -0
- package/src/client/db-admin/SqlEditor.tsx +840 -0
- package/src/client/db-admin/TableBrowser.tsx +212 -0
- package/src/client/db-admin/TableEditor.tsx +760 -0
- package/src/client/db-admin/cell-format.ts +246 -0
- package/src/client/db-admin/changeset.ts +296 -0
- package/src/client/db-admin/export-utils.ts +78 -0
- package/src/client/db-admin/index.ts +33 -0
- package/src/client/db-admin/sql-storage.ts +134 -0
- package/src/client/db-admin/storage.ts +68 -0
- package/src/client/db-admin/useAgentSync.ts +226 -0
- package/src/client/db-admin/useDbAdmin.ts +294 -0
- package/src/client/dev-overlay/DevOverlay.tsx +576 -0
- package/src/client/dev-overlay/builtins.ts +40 -0
- package/src/client/dev-overlay/index.ts +23 -0
- package/src/client/dev-overlay/registry.ts +67 -0
- package/src/client/dev-overlay/types.ts +64 -0
- package/src/client/dev-overlay/use-dev-option.ts +78 -0
- package/src/client/dev-overlay/use-dev-overlay-shortcut.ts +31 -0
- package/src/client/dynamic-suggestions.ts +455 -0
- package/src/client/embed-auth.ts +544 -0
- package/src/client/embed.ts +54 -0
- package/src/client/error-capture.ts +690 -0
- package/src/client/error-format.ts +211 -0
- package/src/client/error-reporting.ts +100 -0
- package/src/client/extensions/AgentNativeExtensionFrame.e2e-host.tsx +136 -0
- package/src/client/extensions/AgentNativeExtensionFrame.tsx +708 -0
- package/src/client/extensions/EmbeddedExtension.tsx +604 -0
- package/src/client/extensions/ExtensionEditor.tsx +450 -0
- package/src/client/extensions/ExtensionQueryErrorState.tsx +47 -0
- package/src/client/extensions/ExtensionSlot.tsx +345 -0
- package/src/client/extensions/ExtensionViewer.tsx +1502 -0
- package/src/client/extensions/ExtensionViewerPage.tsx +32 -0
- package/src/client/extensions/ExtensionsListPage.tsx +432 -0
- package/src/client/extensions/ExtensionsSidebarSection.tsx +1259 -0
- package/src/client/extensions/InlineExtensionFrame.tsx +660 -0
- package/src/client/extensions/agent-native-extension-runtime.ts +495 -0
- package/src/client/extensions/delete-extension.ts +76 -0
- package/src/client/extensions/extension-load-error.ts +26 -0
- package/src/client/extensions/extension-order.ts +49 -0
- package/src/client/extensions/extension-popularity.ts +61 -0
- package/src/client/extensions/iframe-bridge.ts +377 -0
- package/src/client/extensions/index.ts +84 -0
- package/src/client/extensions/portable-extension.ts +712 -0
- package/src/client/feature-flags/FeatureFlagsPanel.tsx +519 -0
- package/src/client/feature-flags/helpers.ts +77 -0
- package/src/client/feature-flags/index.ts +13 -0
- package/src/client/feature-flags/types.ts +29 -0
- package/src/client/feature-flags/use-feature-flag.ts +26 -0
- package/src/client/feedback-context.ts +90 -0
- package/src/client/frame-protocol.ts +168 -0
- package/src/client/frame.ts +329 -0
- package/src/client/guided-questions.tsx +1152 -0
- package/src/client/history/VersionHistoryPanel.tsx +175 -0
- package/src/client/history/index.ts +21 -0
- package/src/client/history/use-history.ts +114 -0
- package/src/client/hooks/index.ts +46 -0
- package/src/client/host/index.ts +170 -0
- package/src/client/host-bridge.ts +1272 -0
- package/src/client/host-tools.ts +190 -0
- package/src/client/i18n.tsx +798 -0
- package/src/client/index.ts +370 -0
- package/src/client/integrations/IntegrationCard.tsx +186 -0
- package/src/client/integrations/IntegrationsPanel.tsx +633 -0
- package/src/client/integrations/api.ts +295 -0
- package/src/client/integrations/index.ts +29 -0
- package/src/client/integrations/useIntegrationStatus.ts +52 -0
- package/src/client/mcp-app-host.ts +720 -0
- package/src/client/mcp-apps/McpAppRenderer.tsx +760 -0
- package/src/client/navigation/index.ts +54 -0
- package/src/client/notifications/NotificationsBell.tsx +383 -0
- package/src/client/notifications/index.ts +1 -0
- package/src/client/observability/ObservabilityDashboard.tsx +890 -0
- package/src/client/observability/ThumbsFeedback.tsx +160 -0
- package/src/client/observability/index.ts +20 -0
- package/src/client/observability/useObservability.ts +266 -0
- package/src/client/onboarding/OnboardingBanner.tsx +73 -0
- package/src/client/onboarding/OnboardingPanel.tsx +1036 -0
- package/src/client/onboarding/SetupButton.tsx +64 -0
- package/src/client/onboarding/index.ts +25 -0
- package/src/client/onboarding/use-onboarding.ts +164 -0
- package/src/client/onboarding/use-preview-mode.ts +40 -0
- package/src/client/org/InvitationBanner.tsx +148 -0
- package/src/client/org/OrgSwitcher.tsx +754 -0
- package/src/client/org/RequireActiveOrg.tsx +337 -0
- package/src/client/org/TeamPage.tsx +1432 -0
- package/src/client/org/hooks.ts +359 -0
- package/src/client/org/index.ts +70 -0
- package/src/client/org/workspace-app-links.ts +367 -0
- package/src/client/org-team/index.ts +1 -0
- package/src/client/progress/RunsTray.tsx +680 -0
- package/src/client/progress/index.ts +1 -0
- package/src/client/require-session.tsx +142 -0
- package/src/client/resources/BuiltinCapabilityDetail.tsx +258 -0
- package/src/client/resources/McpConnectionSuggestion.tsx +276 -0
- package/src/client/resources/McpIntegrationDialog.tsx +808 -0
- package/src/client/resources/McpServerDetail.tsx +230 -0
- package/src/client/resources/ResourceEditor.tsx +872 -0
- package/src/client/resources/ResourceTree.tsx +860 -0
- package/src/client/resources/ResourcesPanel.tsx +1960 -0
- package/src/client/resources/index.ts +25 -0
- package/src/client/resources/mcp-integration-catalog.ts +771 -0
- package/src/client/resources/mcp-integration-logos.ts +108 -0
- package/src/client/resources/runtime.ts +1 -0
- package/src/client/resources/use-builtin-capabilities.ts +113 -0
- package/src/client/resources/use-mcp-servers.ts +217 -0
- package/src/client/resources/use-resources.ts +402 -0
- package/src/client/review/ReviewCommentComposer.tsx +123 -0
- package/src/client/review/ReviewStatusBadge.tsx +39 -0
- package/src/client/review/ReviewThreadPanel.tsx +625 -0
- package/src/client/review/index.ts +38 -0
- package/src/client/review/use-review.ts +186 -0
- package/src/client/route-chunk-recovery/index.ts +2 -0
- package/src/client/route-chunk-recovery.ts +331 -0
- package/src/client/route-state.ts +455 -0
- package/src/client/route-warmup.tsx +543 -0
- package/src/client/session-replay-iframe.e2e-host.tsx +100 -0
- package/src/client/session-replay.ts +3417 -0
- package/src/client/settings/AgentsSection.tsx +441 -0
- package/src/client/settings/AutomationsSection.tsx +516 -0
- package/src/client/settings/BackgroundAgentSection.tsx +189 -0
- package/src/client/settings/BrowserSection.tsx +110 -0
- package/src/client/settings/DemoModeSection.tsx +48 -0
- package/src/client/settings/SecretsSection.tsx +875 -0
- package/src/client/settings/SettingsPanel.tsx +3162 -0
- package/src/client/settings/SettingsSection.tsx +283 -0
- package/src/client/settings/SettingsTabsPage.tsx +592 -0
- package/src/client/settings/UsageSection.tsx +401 -0
- package/src/client/settings/VoiceTranscriptionSection.tsx +960 -0
- package/src/client/settings/agent-settings-search.ts +220 -0
- package/src/client/settings/index.ts +27 -0
- package/src/client/settings/useBuilderStatus.ts +1055 -0
- package/src/client/setup-connections/BuilderConnectCard.tsx +89 -0
- package/src/client/setup-connections/ProviderReadinessBadge.tsx +73 -0
- package/src/client/setup-connections/SetupConnectionsPage.tsx +94 -0
- package/src/client/setup-connections/catalog.ts +6 -0
- package/src/client/setup-connections/index.ts +47 -0
- package/src/client/setup-connections/runtime.ts +1 -0
- package/src/client/sharing/ShareButton.tsx +1748 -0
- package/src/client/sharing/ShareDialog.tsx +846 -0
- package/src/client/sharing/VisibilityBadge.tsx +4 -0
- package/src/client/sharing/index.ts +2 -0
- package/src/client/sse-event-processor.ts +2002 -0
- package/src/client/terminal/AgentTerminal.tsx +488 -0
- package/src/client/terminal/index.ts +7 -0
- package/src/client/theme.ts +27 -0
- package/src/client/tombstone/agent-presence-chip.ts +17 -0
- package/src/client/tombstone/editor.ts +265 -0
- package/src/client/tombstone/live-cursor-overlay.ts +21 -0
- package/src/client/tombstone/presence-bar.ts +17 -0
- package/src/client/tombstone/recent-edit-highlights.ts +17 -0
- package/src/client/tombstone/remote-selection-rings.ts +21 -0
- package/src/client/tombstone/rich-markdown-editor.ts +265 -0
- package/src/client/tombstone/ui-dialog.ts +49 -0
- package/src/client/tombstone/ui-dropdown-menu.ts +69 -0
- package/src/client/tombstone/ui-hover-card.ts +21 -0
- package/src/client/tombstone/ui-popover.ts +25 -0
- package/src/client/tombstone/ui-sheet.ts +49 -0
- package/src/client/tombstone/ui-tooltip.ts +29 -0
- package/src/client/tombstone/visual-style-controls.ts +61 -0
- package/src/client/tool-cells/BashCell.tsx +164 -0
- package/src/client/tool-cells/EditCell.tsx +303 -0
- package/src/client/tool-cells/FilesChangedSummary.tsx +208 -0
- package/src/client/tool-cells/WriteCell.tsx +145 -0
- package/src/client/tool-cells/index.ts +7 -0
- package/src/client/tool-display.ts +41 -0
- package/src/client/track.ts +57 -0
- package/src/client/transcription/BuilderTranscriptionCta.tsx +120 -0
- package/src/client/transcription/use-live-transcription.ts +292 -0
- package/src/client/ui/index.ts +55 -0
- package/src/client/uploads/index.ts +6 -0
- package/src/client/uploads/upload-editor-image.ts +79 -0
- package/src/client/uploads/use-upload-resource.ts +24 -0
- package/src/client/url-scrub.ts +51 -0
- package/src/client/use-action.ts +797 -0
- package/src/client/use-agent-chat-context.ts +63 -0
- package/src/client/use-agent-chat-home-handoff.ts +207 -0
- package/src/client/use-agent-chat.ts +53 -0
- package/src/client/use-agent-engine-configured.ts +211 -0
- package/src/client/use-avatar.ts +127 -0
- package/src/client/use-change-version.ts +150 -0
- package/src/client/use-chat-models.ts +252 -0
- package/src/client/use-chat-threads.ts +1262 -0
- package/src/client/use-db-sync.ts +1112 -0
- package/src/client/use-demo-mode-status.ts +30 -0
- package/src/client/use-dev-mode.ts +177 -0
- package/src/client/use-external-value.ts +40 -0
- package/src/client/use-pausing-interval.ts +65 -0
- package/src/client/use-pinch-zoom.ts +202 -0
- package/src/client/use-run-stuck-detection.ts +427 -0
- package/src/client/use-send-to-agent-chat.ts +85 -0
- package/src/client/use-session.ts +114 -0
- package/src/client/utils.ts +7 -0
- package/src/client/visual-style-controls.tsx +1 -0
- package/src/client/vite-dev-recovery-script.ts +226 -0
- package/src/client/voice-provider-status.ts +44 -0
- package/src/client/widgets/index.ts +41 -0
- package/src/code-agents/background-controller.ts +398 -0
- package/src/code-agents/background-run.ts +156 -0
- package/src/code-agents/index.ts +95 -0
- package/src/code-agents/prompt-attachments.ts +39 -0
- package/src/code-agents/transcript-normalizer.ts +750 -0
- package/src/code-agents/transcript-order.ts +73 -0
- package/src/coding-tools/index.ts +742 -0
- package/src/coding-tools/run-code.ts +1662 -0
- package/src/coding-tools/sandbox/adapter.ts +82 -0
- package/src/coding-tools/sandbox/background.ts +406 -0
- package/src/coding-tools/sandbox/executions-store.ts +517 -0
- package/src/coding-tools/sandbox/index.ts +132 -0
- package/src/coding-tools/sandbox/local-child-process-adapter.ts +217 -0
- package/src/collab/agent-identity.ts +5 -0
- package/src/collab/agent-presence.ts +341 -0
- package/src/collab/awareness-store.ts +196 -0
- package/src/collab/awareness.ts +317 -0
- package/src/collab/client-struct.ts +366 -0
- package/src/collab/client.ts +1205 -0
- package/src/collab/emitter.ts +31 -0
- package/src/collab/follow-mode.ts +107 -0
- package/src/collab/index.ts +151 -0
- package/src/collab/json-to-yjs.ts +504 -0
- package/src/collab/presence.ts +207 -0
- package/src/collab/recent-edits.ts +215 -0
- package/src/collab/routes.ts +191 -0
- package/src/collab/storage.ts +228 -0
- package/src/collab/struct-routes.ts +133 -0
- package/src/collab/text-to-yjs.ts +79 -0
- package/src/collab/undo.ts +432 -0
- package/src/collab/xml-ops.ts +68 -0
- package/src/collab/ydoc-manager.ts +544 -0
- package/src/command-navigation/actions.ts +100 -0
- package/src/command-navigation/index.ts +12 -0
- package/src/comments-review/index.ts +1 -0
- package/src/connections/catalog.ts +451 -0
- package/src/connections/index.ts +48 -0
- package/src/connections/reader.ts +911 -0
- package/src/connections/runtime.ts +1 -0
- package/src/credentials/index.ts +187 -0
- package/src/data-programs/actions.ts +335 -0
- package/src/data-programs/contract.ts +284 -0
- package/src/data-programs/execute.ts +693 -0
- package/src/data-programs/index.ts +72 -0
- package/src/data-programs/schema.ts +148 -0
- package/src/data-programs/store.ts +755 -0
- package/src/data-widgets/index.ts +376 -0
- package/src/db/client.ts +1627 -0
- package/src/db/create-get-db.ts +579 -0
- package/src/db/ddl-guard.ts +302 -0
- package/src/db/drizzle-config.ts +190 -0
- package/src/db/ensure-additive-columns.ts +430 -0
- package/src/db/index.ts +57 -0
- package/src/db/migrations.ts +691 -0
- package/src/db/request-telemetry.ts +154 -0
- package/src/db/runtime-diagnostics.ts +331 -0
- package/src/db/schema.ts +121 -0
- package/src/db/widen-columns.ts +75 -0
- package/src/db-admin/agent-tools.ts +202 -0
- package/src/db-admin/index.ts +26 -0
- package/src/db-admin/operations.ts +803 -0
- package/src/db-admin/routes.ts +174 -0
- package/src/db-admin/types.ts +110 -0
- package/src/demo/browser-state.ts +47 -0
- package/src/demo/fetch-interceptor.ts +175 -0
- package/src/demo/redact.ts +575 -0
- package/src/deploy/build.ts +3938 -0
- package/src/deploy/immutable-assets.ts +65 -0
- package/src/deploy/route-discovery.ts +458 -0
- package/src/deploy/workspace-core.ts +282 -0
- package/src/deploy/workspace-deploy.ts +1488 -0
- package/src/eject/provider-api-definitions.ts +193 -0
- package/src/eject/remote-mcp-presets.ts +137 -0
- package/src/eject/setup-readiness-ui.tsx +29 -0
- package/src/eject/workspace-connections.ts +92 -0
- package/src/embedding/agent.ts +159 -0
- package/src/embedding/bridge.ts +297 -0
- package/src/embedding/index.ts +43 -0
- package/src/embedding/protocol.ts +185 -0
- package/src/embedding/react.tsx +319 -0
- package/src/embeddings/index.ts +233 -0
- package/src/eval/agent-runner.ts +210 -0
- package/src/eval/define-eval.ts +55 -0
- package/src/eval/index.ts +49 -0
- package/src/eval/report.ts +75 -0
- package/src/eval/runner.ts +369 -0
- package/src/eval/scorer.ts +244 -0
- package/src/eval/types.ts +188 -0
- package/src/event-bus/bus.ts +140 -0
- package/src/event-bus/index.ts +3 -0
- package/src/event-bus/registry.ts +79 -0
- package/src/event-bus/types.ts +29 -0
- package/src/extensions/actions.ts +1636 -0
- package/src/extensions/change-marker.ts +54 -0
- package/src/extensions/content-patch.ts +468 -0
- package/src/extensions/fetch-tool.ts +461 -0
- package/src/extensions/html-shell.ts +803 -0
- package/src/extensions/local.ts +462 -0
- package/src/extensions/path.ts +40 -0
- package/src/extensions/proxy-security.ts +171 -0
- package/src/extensions/routes.ts +1080 -0
- package/src/extensions/schema.ts +269 -0
- package/src/extensions/session-replay-iframe.ts +131 -0
- package/src/extensions/slots/routes.ts +126 -0
- package/src/extensions/slots/schema.ts +87 -0
- package/src/extensions/slots/store.ts +450 -0
- package/src/extensions/store.ts +1347 -0
- package/src/extensions/theme.ts +114 -0
- package/src/extensions/url-safety.ts +316 -0
- package/src/extensions/web-content.ts +663 -0
- package/src/extensions/web-search-tool.ts +437 -0
- package/src/feature-flags/a2a-action-route.ts +56 -0
- package/src/feature-flags/actions/get-feature-flags.ts +24 -0
- package/src/feature-flags/actions/list-feature-flags.ts +69 -0
- package/src/feature-flags/actions/set-feature-flag.ts +89 -0
- package/src/feature-flags/index.ts +21 -0
- package/src/feature-flags/permissions.ts +53 -0
- package/src/feature-flags/plugin.ts +44 -0
- package/src/feature-flags/registry.ts +96 -0
- package/src/feature-flags/store.ts +176 -0
- package/src/file-upload/actions/upload-image.ts +213 -0
- package/src/file-upload/builder.ts +431 -0
- package/src/file-upload/index.ts +24 -0
- package/src/file-upload/pre-upload-attachments.ts +305 -0
- package/src/file-upload/registry.ts +125 -0
- package/src/file-upload/types.ts +89 -0
- package/src/guards/db-tool-scoping.ts +129 -0
- package/src/guards/index.ts +23 -0
- package/src/guards/no-drizzle-push.ts +116 -0
- package/src/guards/no-env-credentials.ts +229 -0
- package/src/guards/no-env-mutation.ts +114 -0
- package/src/guards/no-localhost-fallback.ts +124 -0
- package/src/guards/no-unscoped-credentials.ts +227 -0
- package/src/guards/no-unscoped-queries.ts +834 -0
- package/src/guards/scan-utils.ts +105 -0
- package/src/guards/types.ts +30 -0
- package/src/history/actions/create-resource-version.ts +92 -0
- package/src/history/actions/get-resource-version.ts +60 -0
- package/src/history/actions/list-resource-history.ts +53 -0
- package/src/history/actions/list-resource-versions.ts +43 -0
- package/src/history/actions/restore-resource-version.ts +96 -0
- package/src/history/index.ts +26 -0
- package/src/history/registry.ts +111 -0
- package/src/history/store.ts +379 -0
- package/src/history/types.ts +69 -0
- package/src/index.browser.ts +155 -0
- package/src/index.ts +408 -0
- package/src/ingestion/docx.ts +158 -0
- package/src/ingestion/figma-node-to-html.ts +1860 -0
- package/src/ingestion/figma.ts +548 -0
- package/src/ingestion/index.ts +107 -0
- package/src/ingestion/media.ts +264 -0
- package/src/ingestion/notion.ts +121 -0
- package/src/ingestion/office.ts +213 -0
- package/src/ingestion/orchestration.ts +160 -0
- package/src/ingestion/pptx.ts +331 -0
- package/src/ingestion/selection.ts +81 -0
- package/src/ingestion/website.ts +151 -0
- package/src/integrations/a2a-continuation-marker.ts +2 -0
- package/src/integrations/a2a-continuation-processor.ts +888 -0
- package/src/integrations/a2a-continuations-store.ts +643 -0
- package/src/integrations/adapter-overrides.ts +12 -0
- package/src/integrations/adapters/discord.ts +364 -0
- package/src/integrations/adapters/email.ts +1164 -0
- package/src/integrations/adapters/google-docs.ts +371 -0
- package/src/integrations/adapters/index.ts +29 -0
- package/src/integrations/adapters/microsoft-teams.ts +413 -0
- package/src/integrations/adapters/slack.ts +1914 -0
- package/src/integrations/adapters/telegram.ts +386 -0
- package/src/integrations/adapters/whatsapp.ts +358 -0
- package/src/integrations/awaiting-input-store.ts +130 -0
- package/src/integrations/catalog.ts +571 -0
- package/src/integrations/computer-supervision-store.ts +423 -0
- package/src/integrations/computer-supervision.ts +213 -0
- package/src/integrations/config-store.ts +131 -0
- package/src/integrations/controls-store.ts +187 -0
- package/src/integrations/eject/messaging-adapters.ts +85 -0
- package/src/integrations/google-docs-poller.ts +671 -0
- package/src/integrations/identity-links-store.ts +210 -0
- package/src/integrations/identity.ts +196 -0
- package/src/integrations/index.ts +220 -0
- package/src/integrations/installations-store.ts +677 -0
- package/src/integrations/integration-memory.ts +187 -0
- package/src/integrations/internal-token.ts +106 -0
- package/src/integrations/pending-tasks-retry-job.ts +286 -0
- package/src/integrations/pending-tasks-store.ts +468 -0
- package/src/integrations/plugin.ts +3048 -0
- package/src/integrations/remote-commands-store.ts +690 -0
- package/src/integrations/remote-devices-store.ts +492 -0
- package/src/integrations/remote-json-safety.ts +127 -0
- package/src/integrations/remote-push-delivery-job.ts +48 -0
- package/src/integrations/remote-push-delivery.ts +370 -0
- package/src/integrations/remote-push-store.ts +664 -0
- package/src/integrations/remote-retry-job.ts +55 -0
- package/src/integrations/remote-run-events-store.ts +222 -0
- package/src/integrations/remote-types.ts +186 -0
- package/src/integrations/runtime.ts +1 -0
- package/src/integrations/scope-store.ts +498 -0
- package/src/integrations/slack-manifest.ts +78 -0
- package/src/integrations/slack-oauth.ts +344 -0
- package/src/integrations/task-queue-stats.ts +144 -0
- package/src/integrations/thread-mapping-store.ts +134 -0
- package/src/integrations/types.ts +485 -0
- package/src/integrations/usage-budget-store.ts +906 -0
- package/src/integrations/webhook-delivery.ts +55 -0
- package/src/integrations/webhook-handler.ts +1939 -0
- package/src/jobs/actions/list-recurring-jobs.ts +105 -0
- package/src/jobs/actions/manage-recurring-job.ts +85 -0
- package/src/jobs/cron.ts +126 -0
- package/src/jobs/index.ts +9 -0
- package/src/jobs/scheduler.ts +703 -0
- package/src/jobs/tools.ts +367 -0
- package/src/local-artifacts/index.ts +1372 -0
- package/src/localization/actions/get-localization-preference.ts +24 -0
- package/src/localization/actions/set-localization-preference.ts +32 -0
- package/src/localization/default-messages.ts +1009 -0
- package/src/localization/index.ts +2 -0
- package/src/localization/server.ts +131 -0
- package/src/localization/shared.ts +208 -0
- package/src/mcp/actions/call-mcp-tool.ts +19 -0
- package/src/mcp/actions/create-org-service-token.ts +87 -0
- package/src/mcp/actions/list-mcp-tools.ts +18 -0
- package/src/mcp/actions/list-org-service-tokens.ts +44 -0
- package/src/mcp/actions/revoke-org-service-token.ts +30 -0
- package/src/mcp/actions/service-token-access.ts +121 -0
- package/src/mcp/ask-app-inline-tasks.ts +125 -0
- package/src/mcp/build-server.ts +2356 -0
- package/src/mcp/builtin-tools.ts +1506 -0
- package/src/mcp/connect-route.ts +1460 -0
- package/src/mcp/connect-store.ts +680 -0
- package/src/mcp/embed-app.ts +2051 -0
- package/src/mcp/embed-route.ts +84 -0
- package/src/mcp/external-agent-policy.ts +18 -0
- package/src/mcp/index.ts +47 -0
- package/src/mcp/oauth-route.ts +1016 -0
- package/src/mcp/oauth-store.ts +581 -0
- package/src/mcp/oauth-token.ts +227 -0
- package/src/mcp/org-directory.ts +343 -0
- package/src/mcp/route-paths.ts +34 -0
- package/src/mcp/screen-memory-stdio.ts +290 -0
- package/src/mcp/server.ts +507 -0
- package/src/mcp/stdio.ts +328 -0
- package/src/mcp/workspace-resolve.ts +261 -0
- package/src/mcp-client/app-api.ts +136 -0
- package/src/mcp-client/app-result.ts +64 -0
- package/src/mcp-client/builtin-capabilities.ts +146 -0
- package/src/mcp-client/builtin-store.ts +93 -0
- package/src/mcp-client/config.ts +281 -0
- package/src/mcp-client/errors.ts +54 -0
- package/src/mcp-client/hub-client.ts +172 -0
- package/src/mcp-client/hub-routes.ts +198 -0
- package/src/mcp-client/index.ts +504 -0
- package/src/mcp-client/manager.ts +968 -0
- package/src/mcp-client/oauth-client.ts +462 -0
- package/src/mcp-client/oauth-routes.ts +307 -0
- package/src/mcp-client/remote-store.ts +674 -0
- package/src/mcp-client/remote-url.ts +97 -0
- package/src/mcp-client/routes.ts +1093 -0
- package/src/mcp-client/screen-memory-local.ts +461 -0
- package/src/mcp-client/tool-policy.ts +182 -0
- package/src/mcp-client/visibility.ts +56 -0
- package/src/mcp-client/workspace-servers.ts +379 -0
- package/src/navigation/index.ts +170 -0
- package/src/notifications/actions.ts +151 -0
- package/src/notifications/channels.ts +410 -0
- package/src/notifications/index.ts +22 -0
- package/src/notifications/registry.ts +216 -0
- package/src/notifications/routes.ts +106 -0
- package/src/notifications/store.ts +236 -0
- package/src/notifications/types.ts +52 -0
- package/src/oauth-tokens/google-refresh.ts +175 -0
- package/src/oauth-tokens/index.ts +15 -0
- package/src/oauth-tokens/store.ts +384 -0
- package/src/observability/cleanup-job.ts +124 -0
- package/src/observability/evals.ts +507 -0
- package/src/observability/experiments.ts +359 -0
- package/src/observability/feedback.ts +332 -0
- package/src/observability/hosted-model-experiment.ts +118 -0
- package/src/observability/index.ts +62 -0
- package/src/observability/plugin.ts +31 -0
- package/src/observability/routes.ts +431 -0
- package/src/observability/sentiment.ts +261 -0
- package/src/observability/store.ts +1347 -0
- package/src/observability/traces.ts +789 -0
- package/src/observability/tracing.ts +157 -0
- package/src/observability/tracking-identity.ts +55 -0
- package/src/observability/types.ts +211 -0
- package/src/onboarding/default-steps.ts +428 -0
- package/src/onboarding/index.ts +22 -0
- package/src/onboarding/plugin.ts +262 -0
- package/src/onboarding/registry.ts +47 -0
- package/src/onboarding/types.ts +96 -0
- package/src/org/accept-pending.ts +98 -0
- package/src/org/auto-join-domain.ts +113 -0
- package/src/org/context.ts +640 -0
- package/src/org/free-email-providers.ts +124 -0
- package/src/org/handlers.ts +1153 -0
- package/src/org/index.ts +63 -0
- package/src/org/migrations.ts +105 -0
- package/src/org/permissions.ts +30 -0
- package/src/org/plugin.ts +255 -0
- package/src/org/schema.ts +28 -0
- package/src/org/types.ts +57 -0
- package/src/org-team/index.ts +1 -0
- package/src/package-lifecycle/deprecated-imports.ts +179 -0
- package/src/package-lifecycle/eject-manifest.ts +345 -0
- package/src/package-lifecycle/index.ts +7 -0
- package/src/package-lifecycle/manifest.ts +120 -0
- package/src/package-lifecycle/migration-manifest.ts +159 -0
- package/src/package-lifecycle/migration-message.ts +6 -0
- package/src/package-lifecycle/tombstone.ts +58 -0
- package/src/package-lifecycle/upgrade-error.ts +37 -0
- package/src/private-blob/index.ts +18 -0
- package/src/private-blob/registry.ts +242 -0
- package/src/private-blob/types.ts +55 -0
- package/src/progress/actions.ts +179 -0
- package/src/progress/index.ts +16 -0
- package/src/progress/registry.ts +127 -0
- package/src/progress/routes.ts +89 -0
- package/src/progress/store.ts +353 -0
- package/src/progress/types.ts +59 -0
- package/src/provider-api/actions/custom-provider-registration.ts +197 -0
- package/src/provider-api/actions/delete-staged-dataset.ts +5 -0
- package/src/provider-api/actions/github-repo-files.ts +266 -0
- package/src/provider-api/actions/list-staged-datasets.ts +5 -0
- package/src/provider-api/actions/provider-api-audit.ts +88 -0
- package/src/provider-api/actions/provider-api.ts +460 -0
- package/src/provider-api/actions/query-staged-dataset.ts +5 -0
- package/src/provider-api/actions/staged-datasets.ts +359 -0
- package/src/provider-api/corpus-jobs-store.ts +522 -0
- package/src/provider-api/corpus-jobs.ts +1817 -0
- package/src/provider-api/custom-registry.ts +456 -0
- package/src/provider-api/github-repo.ts +675 -0
- package/src/provider-api/gong.ts +108 -0
- package/src/provider-api/index.ts +5444 -0
- package/src/provider-api/quota-governor.ts +562 -0
- package/src/provider-api/runtime.ts +1 -0
- package/src/provider-api/staged-datasets-aggregate.ts +304 -0
- package/src/provider-api/staged-datasets-store.ts +441 -0
- package/src/provider-api/staging.ts +483 -0
- package/src/resources/agents.ts +65 -0
- package/src/resources/emitter.ts +54 -0
- package/src/resources/handlers.ts +728 -0
- package/src/resources/index.ts +4 -0
- package/src/resources/metadata.ts +252 -0
- package/src/resources/script-helpers.ts +160 -0
- package/src/resources/store.ts +1618 -0
- package/src/review/actions/consume-review-feedback.ts +48 -0
- package/src/review/actions/create-review-comment.ts +108 -0
- package/src/review/actions/delete-review-comment.ts +67 -0
- package/src/review/actions/get-review-feedback.ts +49 -0
- package/src/review/actions/list-review-comments.ts +87 -0
- package/src/review/actions/reply-review-comment.ts +118 -0
- package/src/review/actions/resolve-review-thread.ts +94 -0
- package/src/review/actions/send-review-thread-to-agent.ts +62 -0
- package/src/review/actions/set-review-status.ts +58 -0
- package/src/review/identity.ts +101 -0
- package/src/review/index.ts +45 -0
- package/src/review/mentions.ts +44 -0
- package/src/review/registry.ts +111 -0
- package/src/review/store.ts +997 -0
- package/src/review/types.ts +101 -0
- package/src/router/index.ts +24 -0
- package/src/scripts/agent-engines/list-agent-engines.ts +130 -0
- package/src/scripts/agent-engines/manage-agent-engine.ts +197 -0
- package/src/scripts/agent-engines/set-agent-engine.ts +84 -0
- package/src/scripts/agent-engines/test-agent-engine.ts +174 -0
- package/src/scripts/call-agent.ts +792 -0
- package/src/scripts/chat/index.ts +8 -0
- package/src/scripts/chat/open-chat.ts +56 -0
- package/src/scripts/chat/search-chats.ts +121 -0
- package/src/scripts/core-scripts.ts +22 -0
- package/src/scripts/db/check-scoping.ts +212 -0
- package/src/scripts/db/exec.ts +791 -0
- package/src/scripts/db/index.ts +19 -0
- package/src/scripts/db/migrate-encrypt-credentials.ts +223 -0
- package/src/scripts/db/migrate-encrypt-oauth-tokens.ts +213 -0
- package/src/scripts/db/migrate-user-api-keys.ts +257 -0
- package/src/scripts/db/patch.ts +820 -0
- package/src/scripts/db/query.ts +299 -0
- package/src/scripts/db/reset-dev-owner.ts +285 -0
- package/src/scripts/db/safety.ts +286 -0
- package/src/scripts/db/schema.ts +364 -0
- package/src/scripts/db/scoping.ts +341 -0
- package/src/scripts/db/sqlite-client.ts +78 -0
- package/src/scripts/db/tool-mode.ts +23 -0
- package/src/scripts/db/tool-schemas.ts +31 -0
- package/src/scripts/db/wipe-leaked-builder-keys.ts +201 -0
- package/src/scripts/dev/index.ts +296 -0
- package/src/scripts/dev/list-files.ts +119 -0
- package/src/scripts/dev/read-file.ts +77 -0
- package/src/scripts/dev/search-files.ts +151 -0
- package/src/scripts/dev/shell.ts +111 -0
- package/src/scripts/dev/write-file.ts +56 -0
- package/src/scripts/dev-session.ts +96 -0
- package/src/scripts/docs/index.ts +8 -0
- package/src/scripts/docs/search.ts +274 -0
- package/src/scripts/docs/source-search.ts +363 -0
- package/src/scripts/index.ts +15 -0
- package/src/scripts/manage-agent-loop-settings.ts +84 -0
- package/src/scripts/parse-args.ts +46 -0
- package/src/scripts/resources/delete-memory.ts +67 -0
- package/src/scripts/resources/delete.ts +69 -0
- package/src/scripts/resources/effective.ts +71 -0
- package/src/scripts/resources/index.ts +18 -0
- package/src/scripts/resources/list.ts +103 -0
- package/src/scripts/resources/migrate-learnings.ts +40 -0
- package/src/scripts/resources/read.ts +107 -0
- package/src/scripts/resources/save-memory.ts +99 -0
- package/src/scripts/resources/write.ts +158 -0
- package/src/scripts/runner.ts +339 -0
- package/src/scripts/utils.ts +130 -0
- package/src/search/index.ts +413 -0
- package/src/search-utils/index.ts +112 -0
- package/src/secrets/crypto.ts +228 -0
- package/src/secrets/index.ts +65 -0
- package/src/secrets/onboarding.ts +101 -0
- package/src/secrets/register-framework-secrets.ts +228 -0
- package/src/secrets/register.ts +129 -0
- package/src/secrets/routes.ts +697 -0
- package/src/secrets/schema.ts +52 -0
- package/src/secrets/storage.ts +561 -0
- package/src/secrets/substitution.ts +305 -0
- package/src/server/__snapshots__/agent-chat-plugin.surface.spec.ts.snap +150 -0
- package/src/server/action-change.ts +66 -0
- package/src/server/action-discovery.ts +774 -0
- package/src/server/action-routes.ts +658 -0
- package/src/server/agent-access.ts +72 -0
- package/src/server/agent-chat/action-filters-a2a.ts +339 -0
- package/src/server/agent-chat/browser-team-tools.ts +510 -0
- package/src/server/agent-chat/context-tools.ts +599 -0
- package/src/server/agent-chat/framework-prompts.ts +467 -0
- package/src/server/agent-chat/lazy-fs.ts +11 -0
- package/src/server/agent-chat/mcp-glue.ts +91 -0
- package/src/server/agent-chat/plugin-options.ts +379 -0
- package/src/server/agent-chat/process-run-failure.ts +62 -0
- package/src/server/agent-chat/prompt-resources.ts +1004 -0
- package/src/server/agent-chat/recurring-jobs-runtime.ts +80 -0
- package/src/server/agent-chat/request-surface.ts +71 -0
- package/src/server/agent-chat/run-code-tools.ts +67 -0
- package/src/server/agent-chat/script-entries.ts +796 -0
- package/src/server/agent-chat/shared-thread.ts +301 -0
- package/src/server/agent-chat/skill-frontmatter.ts +41 -0
- package/src/server/agent-chat-plugin.ts +5930 -0
- package/src/server/agent-discovery.ts +706 -0
- package/src/server/agent-engine-api-key-route.ts +236 -0
- package/src/server/agent-run-context.ts +204 -0
- package/src/server/agent-teams-run-queue.ts +344 -0
- package/src/server/agent-teams.ts +2257 -0
- package/src/server/agents-bundle.ts +464 -0
- package/src/server/analytics.ts +105 -0
- package/src/server/app-base-path.ts +79 -0
- package/src/server/app-name.ts +53 -0
- package/src/server/app-url.ts +184 -0
- package/src/server/attachment-actions.ts +276 -0
- package/src/server/attribution.ts +214 -0
- package/src/server/auth-marketing.ts +260 -0
- package/src/server/auth-plugin.ts +32 -0
- package/src/server/auth.ts +3803 -0
- package/src/server/better-auth-instance.ts +1201 -0
- package/src/server/builder-browser.ts +1701 -0
- package/src/server/builder-design-systems.ts +668 -0
- package/src/server/builder-space.ts +176 -0
- package/src/server/captcha.ts +63 -0
- package/src/server/capture-error.ts +64 -0
- package/src/server/cli-capture.ts +141 -0
- package/src/server/collab-plugin.ts +391 -0
- package/src/server/complete-text.ts +231 -0
- package/src/server/cookie-namespace.ts +159 -0
- package/src/server/core-routes-plugin.ts +4122 -0
- package/src/server/cors-origins.ts +60 -0
- package/src/server/create-server.ts +268 -0
- package/src/server/credential-provider.ts +1202 -0
- package/src/server/csrf.ts +229 -0
- package/src/server/date-utils.ts +42 -0
- package/src/server/deep-link.ts +119 -0
- package/src/server/derived-secret.ts +32 -0
- package/src/server/design-token-utils.ts +1032 -0
- package/src/server/desktop-sso.ts +83 -0
- package/src/server/edge.ts +69 -0
- package/src/server/email-actions.ts +218 -0
- package/src/server/email-template.ts +192 -0
- package/src/server/email-templates.ts +148 -0
- package/src/server/email.ts +219 -0
- package/src/server/embed-route.ts +283 -0
- package/src/server/embed-session.ts +805 -0
- package/src/server/embedded.ts +252 -0
- package/src/server/entry-server.tsx +154 -0
- package/src/server/framework-request-handler.ts +848 -0
- package/src/server/fusion-app.ts +447 -0
- package/src/server/google-auth-mode.ts +34 -0
- package/src/server/google-auth-plugin.ts +496 -0
- package/src/server/google-oauth-credentials.ts +128 -0
- package/src/server/google-oauth.ts +972 -0
- package/src/server/google-realtime-session.ts +182 -0
- package/src/server/h3-helpers.ts +174 -0
- package/src/server/http-response-telemetry.ts +396 -0
- package/src/server/identity-sso-store.ts +304 -0
- package/src/server/identity-sso.ts +514 -0
- package/src/server/index.ts +593 -0
- package/src/server/missing-key.ts +36 -0
- package/src/server/oauth-helpers.ts +44 -0
- package/src/server/oauth-public-origin.ts +44 -0
- package/src/server/oauth-return-url.ts +120 -0
- package/src/server/og-fonts-data.ts +15 -0
- package/src/server/og-fonts.ts +75 -0
- package/src/server/onboarding-html.ts +4040 -0
- package/src/server/open-route.ts +311 -0
- package/src/server/org-admin.ts +28 -0
- package/src/server/poll-events.ts +88 -0
- package/src/server/poll.ts +1224 -0
- package/src/server/prompts/framework-core-compact.ts +107 -0
- package/src/server/prompts/framework-core.ts +143 -0
- package/src/server/prompts/index.ts +16 -0
- package/src/server/prompts/model-overlays.ts +54 -0
- package/src/server/prompts/shared-rules.ts +104 -0
- package/src/server/realtime-voice.ts +967 -0
- package/src/server/recap-image-route.ts +242 -0
- package/src/server/recap-image-store.ts +185 -0
- package/src/server/request-context.ts +416 -0
- package/src/server/request-origin.ts +67 -0
- package/src/server/resources-plugin.ts +119 -0
- package/src/server/schema-prompt.ts +429 -0
- package/src/server/scoped-key-storage.ts +223 -0
- package/src/server/security-headers.ts +170 -0
- package/src/server/self-dispatch.ts +224 -0
- package/src/server/sentry-config.ts +73 -0
- package/src/server/sentry-plugin.ts +138 -0
- package/src/server/sentry.ts +444 -0
- package/src/server/short-lived-token.ts +170 -0
- package/src/server/social-og-image.ts +454 -0
- package/src/server/sse.ts +102 -0
- package/src/server/ssr-handler.ts +466 -0
- package/src/server/transcribe-voice.ts +1076 -0
- package/src/server/voice-providers-status.ts +118 -0
- package/src/server/workspace-oauth.ts +31 -0
- package/src/server/workspace-provider-oauth.ts +970 -0
- package/src/session-replay-iframe-protocol.ts +58 -0
- package/src/settings/handlers.ts +44 -0
- package/src/settings/index.ts +34 -0
- package/src/settings/org-settings.ts +83 -0
- package/src/settings/script-helpers.ts +24 -0
- package/src/settings/store.ts +247 -0
- package/src/settings/user-settings.ts +47 -0
- package/src/setup-connections/index.ts +90 -0
- package/src/setup-connections/onboarding.ts +47 -0
- package/src/shared/agent-access.ts +112 -0
- package/src/shared/agent-chat.ts +124 -0
- package/src/shared/agent-env.ts +46 -0
- package/src/shared/agent-readable-resource.ts +111 -0
- package/src/shared/agent-sidebar-url.ts +39 -0
- package/src/shared/cache-control.ts +25 -0
- package/src/shared/cloudflare-globals.d.ts +34 -0
- package/src/shared/context-xray.ts +172 -0
- package/src/shared/embed-auth.ts +6 -0
- package/src/shared/index.ts +83 -0
- package/src/shared/llm-connection.ts +42 -0
- package/src/shared/markdown-block-split.ts +129 -0
- package/src/shared/mcp-connect-content.ts +130 -0
- package/src/shared/mcp-embed-headers.ts +175 -0
- package/src/shared/mcp-integration-config.ts +101 -0
- package/src/shared/merge-by-id.ts +14 -0
- package/src/shared/oauth-state.ts +39 -0
- package/src/shared/reasoning-effort.ts +228 -0
- package/src/shared/route-warmup-config.ts +128 -0
- package/src/shared/runtime.ts +31 -0
- package/src/shared/social-meta.ts +82 -0
- package/src/shared/streaming-text-smoothing.ts +184 -0
- package/src/shared/truncate.ts +13 -0
- package/src/shared/workspace-app-audience.ts +177 -0
- package/src/shared/workspace-app-id.ts +54 -0
- package/src/sharing/access.ts +585 -0
- package/src/sharing/actions/create-agent-resource-link.ts +91 -0
- package/src/sharing/actions/extension-change.ts +22 -0
- package/src/sharing/actions/list-resource-shares.ts +93 -0
- package/src/sharing/actions/set-resource-visibility.ts +91 -0
- package/src/sharing/actions/share-resource.ts +322 -0
- package/src/sharing/actions/unshare-resource.ts +72 -0
- package/src/sharing/index.ts +35 -0
- package/src/sharing/registry.ts +201 -0
- package/src/sharing/schema.ts +99 -0
- package/src/styles/agent-conversation.css +766 -0
- package/src/styles/agent-native.css +938 -0
- package/src/styles/blocks.css +1717 -0
- package/src/styles/chat-history-list.css +1 -0
- package/src/styles/rich-markdown-editor.css +1 -0
- package/src/tailwind.preset.ts +140 -0
- package/src/templates/chat/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/src/templates/chat/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/src/templates/chat/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/src/templates/chat/AGENTS.md +3 -2
- package/src/templates/default/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/src/templates/default/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/src/templates/default/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/src/templates/default/AGENTS.md +6 -5
- package/src/templates/headless/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/src/templates/headless/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/src/templates/headless/AGENTS.md +5 -4
- package/src/templates/workspace-core/.agents/skills/agent-native-docs/SKILL.md +15 -13
- package/src/templates/workspace-core/.agents/skills/agent-native-toolkit/SKILL.md +3 -2
- package/src/templates/workspace-core/.agents/skills/customizing-agent-native/SKILL.md +63 -20
- package/src/templates/workspace-core/.agents/skills/self-modifying-code/SKILL.md +9 -6
- package/src/templates/workspace-core/AGENTS.md +4 -4
- package/src/templates/workspace-root/AGENTS.md +4 -4
- package/src/terminal/cli-registry.ts +57 -0
- package/src/terminal/index.ts +22 -0
- package/src/terminal/pty-server.ts +389 -0
- package/src/terminal/terminal-plugin.ts +265 -0
- package/src/testing.ts +23 -0
- package/src/tracking/index.ts +10 -0
- package/src/tracking/providers.ts +422 -0
- package/src/tracking/registry.ts +102 -0
- package/src/tracking/route.ts +108 -0
- package/src/tracking/types.ts +16 -0
- package/src/transcription/builder-transcription.ts +118 -0
- package/src/triggers/actions/list-automations.ts +99 -0
- package/src/triggers/actions/manage-automation.ts +78 -0
- package/src/triggers/actions.ts +333 -0
- package/src/triggers/condition-evaluator.ts +163 -0
- package/src/triggers/dispatcher.ts +536 -0
- package/src/triggers/index.ts +13 -0
- package/src/triggers/routes.ts +322 -0
- package/src/triggers/types.ts +42 -0
- package/src/types/pglite.d.ts +26 -0
- package/src/usage/store.ts +698 -0
- package/src/vite/action-types-plugin.ts +481 -0
- package/src/vite/agent-web-plugin.ts +78 -0
- package/src/vite/agents-bundle-plugin.ts +185 -0
- package/src/vite/client.ts +3056 -0
- package/src/vite/index.ts +21 -0
- package/src/voice/index.ts +18 -0
- package/src/voice/voice-cleanup-prompt.ts +38 -0
- package/src/voice/voice-context.ts +217 -0
- package/src/voice/voice-replacements.ts +75 -0
- package/src/workspace-connections/credentials.ts +603 -0
- package/src/workspace-connections/index.ts +72 -0
- package/src/workspace-connections/lifecycle.ts +43 -0
- package/src/workspace-connections/store.ts +1943 -0
- package/src/workspace-files/index.ts +18 -0
- package/src/workspace-files/store.ts +339 -0
- package/src/workspace-files/tool.ts +266 -0
|
@@ -0,0 +1,1717 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared styling for the core block library (`client/blocks/library/*`).
|
|
3
|
+
*
|
|
4
|
+
* The block components emit app-neutral `an-block*` / `an-callout` classes that
|
|
5
|
+
* resolve against shadcn/ui theme tokens (`--foreground`, `--muted-foreground`,
|
|
6
|
+
* `--border`, `--card`, `--ring`) which EVERY template already defines — so the
|
|
7
|
+
* blocks render correctly in any app (plan, content, future templates) using
|
|
8
|
+
* that app's own palette. Templates may still add their own block classes for a
|
|
9
|
+
* bespoke look; because this file is imported via `agent-native.css` BEFORE a
|
|
10
|
+
* template's `global.css`, any template rule of equal specificity wins (this is
|
|
11
|
+
* how the plan template keeps its existing `.plan-callout` treatment while
|
|
12
|
+
* content gets the theme-token version here).
|
|
13
|
+
*
|
|
14
|
+
* Callout tone accents are fixed semantic hues (info=blue, decision=violet,
|
|
15
|
+
* risk=red, warning=amber, success=green) rather than theme tokens, since their
|
|
16
|
+
* meaning is universal; the dark variants are brightened to read on dark
|
|
17
|
+
* surfaces.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
--an-callout-info: 218 85% 57%;
|
|
22
|
+
--an-callout-decision: 262 83% 58%;
|
|
23
|
+
--an-callout-risk: 0 84% 60%;
|
|
24
|
+
--an-callout-warning: 25 95% 48%;
|
|
25
|
+
--an-callout-success: 142 71% 38%;
|
|
26
|
+
|
|
27
|
+
/* Standardized small code-body size for every monospace code surface in the
|
|
28
|
+
core block library (diffs, annotated-code, JSON explorer, Mermaid source,
|
|
29
|
+
etc.). The block components reference this via `[font-size:var(--plan-code-size)]`;
|
|
30
|
+
without a definition the declaration is invalid and code falls back to the
|
|
31
|
+
large prose size. The plan template overrides this var in its own
|
|
32
|
+
`global.css`; this is the cross-app default. */
|
|
33
|
+
--plan-code-size: 0.7rem;
|
|
34
|
+
|
|
35
|
+
/* AUTHORITATIVE code-body size for DENSE in-document code surfaces (diff rows,
|
|
36
|
+
annotated-code lines, API JSON examples, code-tabs, the `code` primitive
|
|
37
|
+
read surface). The catch-all below forces every such surface to this size
|
|
38
|
+
with `!important`, so dense document code is sized from ONE place no matter
|
|
39
|
+
which component renders it or what inline/utility/template size it would
|
|
40
|
+
otherwise pick up.
|
|
41
|
+
|
|
42
|
+
This is deliberately DECOUPLED from `--plan-code-size`: the plan template
|
|
43
|
+
raises `--plan-code-size` to 1rem for its free-standing prose-scale code,
|
|
44
|
+
which made dense surfaces (annotated diffs, API JSON) read far too large —
|
|
45
|
+
the user's recurring complaint. By pinning dense code to its own small,
|
|
46
|
+
comfortable size here, those surfaces stay compact and scannable in every
|
|
47
|
+
app while a free-standing snippet can still follow `--plan-code-size`.
|
|
48
|
+
Resize ALL dense document code at once by overriding this var. */
|
|
49
|
+
--plan-doc-code-size: 0.7rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dark {
|
|
53
|
+
--an-callout-info: 218 85% 67%;
|
|
54
|
+
--an-callout-decision: 263 88% 74%;
|
|
55
|
+
--an-callout-risk: 0 84% 67%;
|
|
56
|
+
--an-callout-warning: 28 96% 60%;
|
|
57
|
+
--an-callout-success: 142 60% 52%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* ════════════════════════════════════════════════════════════════════════
|
|
61
|
+
AUTHORITATIVE code-surface font-size catch-all.
|
|
62
|
+
|
|
63
|
+
THE single source of truth for how big monospace code renders inside plan
|
|
64
|
+
document content. Historically the size was set per-surface — a Tailwind
|
|
65
|
+
arbitrary `[font-size:var(--plan-code-size)]` on diff/annotated-code rows
|
|
66
|
+
(specificity 0,1,0), the plan template's `.plan-code-surface pre` rule
|
|
67
|
+
(0,2,0), the editor node-view `.an-rich-md-prose .an-code-block pre` rule
|
|
68
|
+
(0,3,0), etc. Because those live in different files at different specificities
|
|
69
|
+
(and the plan template raises `--plan-code-size` to 1rem), one surface could
|
|
70
|
+
render large while another stayed small: the recurring "code is too big in
|
|
71
|
+
the annotated diff / API JSON" whack-a-mole.
|
|
72
|
+
|
|
73
|
+
This rule ends it. It scopes to plan document content via a ZERO-specificity
|
|
74
|
+
`:where()` wrapper, then targets EVERY code surface — shiki/lowlight `<pre>`
|
|
75
|
+
and `<code>`, the `.plan-shiki` wrapper, the shared `.plan-code-surface`
|
|
76
|
+
scroll body, the editor `.an-code-block`, and an explicit
|
|
77
|
+
`[data-code-surface]` hook the dense block components stamp on their code
|
|
78
|
+
containers — and forces `font-size: var(--plan-doc-code-size)` with
|
|
79
|
+
`!important`. The `!important` + the `[data-code-surface]` attribute leaf
|
|
80
|
+
(specificity contribution 0,1,0 inside `:is()`, but `!important` is what
|
|
81
|
+
decides the cascade) guarantees it WINS over every per-surface size above,
|
|
82
|
+
including the plan template's later-loaded `.plan-code-surface pre` and the
|
|
83
|
+
inline Tailwind arbitrary class — no surface can escape it. Free-standing
|
|
84
|
+
prose code (inline `code` in body copy) is intentionally NOT in scope: it is
|
|
85
|
+
matched only when it sits inside one of the code-surface containers.
|
|
86
|
+
|
|
87
|
+
Tune `--plan-doc-code-size` (here or per-app) to resize ALL dense document
|
|
88
|
+
code at once. ════════════════════════════════════════════════════════════ */
|
|
89
|
+
:where(.plan-document-flow, .plan-block, .plan-block-node)
|
|
90
|
+
:is(
|
|
91
|
+
[data-code-surface],
|
|
92
|
+
[data-code-surface] pre,
|
|
93
|
+
[data-code-surface] code,
|
|
94
|
+
[data-code-surface] .plan-shiki,
|
|
95
|
+
.plan-code-surface,
|
|
96
|
+
.plan-code-surface pre,
|
|
97
|
+
.plan-code-surface code,
|
|
98
|
+
.plan-code-surface .plan-shiki,
|
|
99
|
+
.plan-code-surface .plan-code-surface-scroll,
|
|
100
|
+
.an-code-block,
|
|
101
|
+
.an-code-block pre,
|
|
102
|
+
.an-code-block code
|
|
103
|
+
) {
|
|
104
|
+
font-size: var(--plan-doc-code-size) !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Syntax-token spans nested INSIDE a highlighted `<pre>`/`<code>` (shiki +
|
|
108
|
+
lowlight wrap every token in a `<span>`) inherit the forced size, so a stray
|
|
109
|
+
per-token size can never reintroduce a large glyph. Scoped to spans under
|
|
110
|
+
pre/code only — NOT every span in the surface — so the in-code annotation
|
|
111
|
+
marker pips (their own tiny `text-[9px]`) and other chrome keep their size. */
|
|
112
|
+
:where(.plan-document-flow, .plan-block, .plan-block-node)
|
|
113
|
+
:is([data-code-surface], .plan-code-surface, .an-code-block)
|
|
114
|
+
:is(pre, code)
|
|
115
|
+
span {
|
|
116
|
+
font-size: inherit !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Universal guarantee (NOT gated on a plan-document ancestor): the dense code
|
|
120
|
+
block components — annotated-code, diff, api-endpoint — stamp
|
|
121
|
+
`data-code-surface` / `.an-code-block` on their code containers. Force the
|
|
122
|
+
dense size on those WHEREVER they render, so the standard annotated/diff
|
|
123
|
+
component can never show oversized code on any surface (embedded panels,
|
|
124
|
+
non-plan-document hosts, etc.), not just inside `.plan-document-flow`. The
|
|
125
|
+
`var(--plan-doc-code-size, 0.7rem)` fallback covers hosts that don't define
|
|
126
|
+
the token. */
|
|
127
|
+
:is(
|
|
128
|
+
[data-code-surface],
|
|
129
|
+
[data-code-surface] pre,
|
|
130
|
+
[data-code-surface] code,
|
|
131
|
+
[data-code-surface] .plan-shiki,
|
|
132
|
+
.an-code-block,
|
|
133
|
+
.an-code-block pre,
|
|
134
|
+
.an-code-block code
|
|
135
|
+
) {
|
|
136
|
+
font-size: var(--plan-doc-code-size, 0.7rem) !important;
|
|
137
|
+
}
|
|
138
|
+
:is([data-code-surface], .an-code-block) :is(pre, code) span {
|
|
139
|
+
font-size: inherit !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* COMPREHENSIVE NET — the final backstop so "code is too big" can't reappear in
|
|
143
|
+
a NEW place. Every code/data/JSON component opts into monospace via the
|
|
144
|
+
`.font-mono` utility (12+ block components, incl. the JSON-explorer tree which
|
|
145
|
+
renders as div/span — NOT pre/code — and so escaped every earlier rule). Force
|
|
146
|
+
the dense doc-code size on any `.font-mono` inside plan content, and on the
|
|
147
|
+
code-block component hooks wherever they render. Annotation marker pips are NOT
|
|
148
|
+
font-mono, so they keep their tiny size; inline prose `code` is styled by the
|
|
149
|
+
prose plugin (no `.font-mono` class), so body copy is unaffected. */
|
|
150
|
+
:where(.plan-document-flow, .plan-block, .plan-block-node) .font-mono,
|
|
151
|
+
:is([data-code-surface], .an-code-block) .font-mono {
|
|
152
|
+
font-size: var(--plan-doc-code-size, 0.7rem) !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Small, muted eyebrow label above a block (block title). */
|
|
156
|
+
.an-block-label {
|
|
157
|
+
margin: 0 0 1rem;
|
|
158
|
+
color: hsl(var(--muted-foreground));
|
|
159
|
+
font-size: 0.8rem;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
letter-spacing: 0.04em;
|
|
162
|
+
line-height: 1.3;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Callout: a self-contained tinted box with an inline-start accent bar and a tone. */
|
|
166
|
+
.an-callout {
|
|
167
|
+
max-width: 860px;
|
|
168
|
+
border-inline-start: 3px solid hsl(var(--border));
|
|
169
|
+
border-start-start-radius: 0;
|
|
170
|
+
border-end-start-radius: 0;
|
|
171
|
+
border-start-end-radius: 8px;
|
|
172
|
+
border-end-end-radius: 8px;
|
|
173
|
+
padding-block: 0.9rem;
|
|
174
|
+
padding-inline-start: 1.25rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* The body editor/reader may carry a leading margin; the box padding owns the
|
|
178
|
+
top rhythm, so drop it (a label, when present, keeps its own margin-bottom). */
|
|
179
|
+
.an-callout > .an-rich-md-wrapper {
|
|
180
|
+
margin-top: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.an-callout[data-tone="info"] {
|
|
184
|
+
--an-callout-accent: var(--an-callout-info);
|
|
185
|
+
}
|
|
186
|
+
.an-callout[data-tone="decision"] {
|
|
187
|
+
--an-callout-accent: var(--an-callout-decision);
|
|
188
|
+
}
|
|
189
|
+
.an-callout[data-tone="risk"] {
|
|
190
|
+
--an-callout-accent: var(--an-callout-risk);
|
|
191
|
+
}
|
|
192
|
+
.an-callout[data-tone="warning"] {
|
|
193
|
+
--an-callout-accent: var(--an-callout-warning);
|
|
194
|
+
}
|
|
195
|
+
.an-callout[data-tone="success"] {
|
|
196
|
+
--an-callout-accent: var(--an-callout-success);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.an-callout[data-tone] {
|
|
200
|
+
border-inline-start-color: hsl(var(--an-callout-accent));
|
|
201
|
+
background-image: linear-gradient(
|
|
202
|
+
90deg,
|
|
203
|
+
hsl(var(--an-callout-accent) / 0.08),
|
|
204
|
+
hsl(var(--an-callout-accent) / 0.02) 38%,
|
|
205
|
+
transparent 72%
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[dir="rtl"] .an-callout[data-tone],
|
|
210
|
+
.an-callout[dir="rtl"][data-tone] {
|
|
211
|
+
background-image: linear-gradient(
|
|
212
|
+
270deg,
|
|
213
|
+
hsl(var(--an-callout-accent) / 0.08),
|
|
214
|
+
hsl(var(--an-callout-accent) / 0.02) 38%,
|
|
215
|
+
transparent 72%
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.an-callout[data-tone] .an-block-label {
|
|
220
|
+
color: hsl(var(--an-callout-accent));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* ════════════════════════════════════════════════════════════════════════
|
|
224
|
+
Migrated plan block contract.
|
|
225
|
+
|
|
226
|
+
The core block library (`client/blocks/library/*`) still emits the legacy
|
|
227
|
+
`.plan-*` class names and the `text/bg/border-plan-*` color utilities. Those
|
|
228
|
+
were originally defined ONLY in `templates/plan/app/global.css`, so the
|
|
229
|
+
blocks rendered UNSTYLED in any other app (e.g. content). The structural
|
|
230
|
+
geometry below is migrated verbatim from plan; the only change is that COLOR
|
|
231
|
+
values now resolve against shadcn theme tokens (`--foreground`,
|
|
232
|
+
`--muted-foreground`, `--border`, `--muted`) instead of plan's `--plan-*`
|
|
233
|
+
surface vars — so each app renders the blocks in its own palette.
|
|
234
|
+
|
|
235
|
+
PLAN STAYS PIXEL-IDENTICAL. This file loads (via `agent-native.css`) BEFORE a
|
|
236
|
+
template's `global.css`, so plan's later-declared copies still win:
|
|
237
|
+
• Color utilities live in `@layer utilities` (matching plan); within the
|
|
238
|
+
layer, plan's later copy wins → plan unchanged, content gets these.
|
|
239
|
+
• Structural classes are un-layered (matching plan); source order makes
|
|
240
|
+
plan's later copy win.
|
|
241
|
+
Plan's document-layout / canvas / wireframe / chrome rules are NOT migrated —
|
|
242
|
+
they stay plan-only.
|
|
243
|
+
|
|
244
|
+
Token mapping:
|
|
245
|
+
--plan-text → --foreground
|
|
246
|
+
--plan-muted → --muted-foreground
|
|
247
|
+
--plan-line → --border
|
|
248
|
+
--plan-block → --muted
|
|
249
|
+
--plan-code → --muted
|
|
250
|
+
--plan-code-text → --foreground
|
|
251
|
+
════════════════════════════════════════════════════════════════════════ */
|
|
252
|
+
|
|
253
|
+
/* ── Color utilities (layered so plan's later copy wins) ─────────────────── */
|
|
254
|
+
@layer utilities {
|
|
255
|
+
.bg-plan-block {
|
|
256
|
+
background-color: hsl(var(--muted));
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.bg-plan-code {
|
|
260
|
+
background-color: hsl(var(--muted));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.text-plan-text {
|
|
264
|
+
color: hsl(var(--foreground));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.text-plan-muted {
|
|
268
|
+
color: hsl(var(--muted-foreground));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.text-plan-code-text {
|
|
272
|
+
color: hsl(var(--foreground));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.border-plan-line {
|
|
276
|
+
border-color: hsl(var(--border));
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* ── Block label + per-column header (structural) ────────────────────────── */
|
|
281
|
+
|
|
282
|
+
/* Small, muted eyebrow label above a block (block title). */
|
|
283
|
+
.plan-block-label {
|
|
284
|
+
margin: 0 0 1rem;
|
|
285
|
+
color: hsl(var(--muted-foreground));
|
|
286
|
+
font-size: 0.8rem;
|
|
287
|
+
font-weight: 600;
|
|
288
|
+
letter-spacing: 0.04em;
|
|
289
|
+
line-height: 1.3;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* Per-column header for `columns` comparison blocks (e.g. Before / After). */
|
|
293
|
+
.plan-columns-label {
|
|
294
|
+
margin: 0 0 0.6rem;
|
|
295
|
+
color: hsl(var(--foreground));
|
|
296
|
+
font-size: 0.95rem;
|
|
297
|
+
font-weight: 600;
|
|
298
|
+
letter-spacing: 0.01em;
|
|
299
|
+
line-height: 1.3;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Nested block spacing (a block inside another block). */
|
|
303
|
+
.plan-block .plan-block {
|
|
304
|
+
margin-top: 1.75rem;
|
|
305
|
+
padding-top: 0;
|
|
306
|
+
border-top: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.plan-block .plan-block .plan-block-label {
|
|
310
|
+
margin-bottom: 0.75rem;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Canonical document body / lede text size. */
|
|
314
|
+
.plan-doc-body {
|
|
315
|
+
font-size: 1.0625rem;
|
|
316
|
+
line-height: 1.75;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* ── Notion-like rich-text block prose ───────────────────────────────────── */
|
|
320
|
+
.plan-rich-markdown-editor {
|
|
321
|
+
max-width: 820px;
|
|
322
|
+
color: hsl(var(--foreground));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.plan-rich-markdown-editor .an-rich-md-prose {
|
|
326
|
+
color: hsl(var(--foreground));
|
|
327
|
+
font-size: 1.0625rem;
|
|
328
|
+
line-height: 1.75;
|
|
329
|
+
text-align: start;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.plan-rich-markdown-editor .an-rich-md-prose > :first-child {
|
|
333
|
+
margin-top: 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.plan-rich-markdown-editor .an-rich-md-prose > :last-child {
|
|
337
|
+
margin-bottom: 0;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.plan-rich-markdown-editor .an-rich-md-prose p {
|
|
341
|
+
margin: 0.9rem 0;
|
|
342
|
+
color: hsl(var(--muted-foreground));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.plan-rich-markdown-editor.an-table-cell-markdown {
|
|
346
|
+
max-width: none;
|
|
347
|
+
min-height: 1.5rem;
|
|
348
|
+
color: inherit;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.plan-rich-markdown-editor.an-table-cell-markdown .an-rich-md-prose {
|
|
352
|
+
min-height: 1.5rem;
|
|
353
|
+
color: inherit;
|
|
354
|
+
font-size: inherit;
|
|
355
|
+
line-height: inherit;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.plan-rich-markdown-editor.an-table-cell-markdown .an-rich-md-prose p {
|
|
359
|
+
min-height: 1.5rem;
|
|
360
|
+
margin: 0;
|
|
361
|
+
color: inherit;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.plan-rich-markdown-editor.an-table-cell-markdown
|
|
365
|
+
.an-rich-md-prose
|
|
366
|
+
> :first-child {
|
|
367
|
+
margin-top: 0;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.plan-rich-markdown-editor.an-table-cell-markdown
|
|
371
|
+
.an-rich-md-prose
|
|
372
|
+
> :last-child {
|
|
373
|
+
margin-bottom: 0;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* Annotated-code side notes: compact prose so a note matches its small card. */
|
|
377
|
+
.plan-annotation-note > .plan-rich-markdown-editor {
|
|
378
|
+
margin-top: 0;
|
|
379
|
+
}
|
|
380
|
+
.plan-annotation-note .plan-rich-markdown-editor .an-rich-md-prose {
|
|
381
|
+
font-size: 0.8125rem;
|
|
382
|
+
line-height: 1.5;
|
|
383
|
+
color: inherit;
|
|
384
|
+
}
|
|
385
|
+
.plan-annotation-note .plan-rich-markdown-editor .an-rich-md-prose p {
|
|
386
|
+
margin: 0;
|
|
387
|
+
color: inherit;
|
|
388
|
+
}
|
|
389
|
+
.plan-annotation-note .plan-rich-markdown-editor .an-rich-md-prose p + p {
|
|
390
|
+
margin-top: 0.45rem;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.plan-rich-markdown-editor .an-rich-md-prose h1,
|
|
394
|
+
.plan-rich-markdown-editor .an-rich-md-prose h2,
|
|
395
|
+
.plan-rich-markdown-editor .an-rich-md-prose h3,
|
|
396
|
+
.plan-rich-markdown-editor .an-rich-md-prose h4 {
|
|
397
|
+
color: hsl(var(--foreground));
|
|
398
|
+
font-weight: 640;
|
|
399
|
+
letter-spacing: 0;
|
|
400
|
+
line-height: 1.2;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.plan-rich-markdown-editor .an-rich-md-prose h1 {
|
|
404
|
+
margin: 2.2rem 0 0.85rem;
|
|
405
|
+
font-size: 1.75rem;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.plan-rich-markdown-editor .an-rich-md-prose h2 {
|
|
409
|
+
margin: 2rem 0 0.75rem;
|
|
410
|
+
font-size: 1.45rem;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.plan-rich-markdown-editor .an-rich-md-prose h3 {
|
|
414
|
+
margin: 1.6rem 0 0.6rem;
|
|
415
|
+
font-size: 1.2rem;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.plan-rich-markdown-editor .an-rich-md-prose h4 {
|
|
419
|
+
margin: 1.3rem 0 0.5rem;
|
|
420
|
+
font-size: 1.05rem;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.plan-rich-markdown-editor .an-rich-md-prose ul:not(.an-rich-md-task-list),
|
|
424
|
+
.plan-rich-markdown-editor .an-rich-md-prose ol,
|
|
425
|
+
.plan-rich-markdown-editor .an-rich-md-task-list {
|
|
426
|
+
margin: 0.85rem 0;
|
|
427
|
+
padding-inline-start: 1.45em;
|
|
428
|
+
color: hsl(var(--muted-foreground));
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.plan-rich-markdown-editor .an-rich-md-task-list {
|
|
432
|
+
padding-inline-start: 0;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.plan-rich-markdown-editor .an-rich-md-prose li {
|
|
436
|
+
margin: 0.35rem 0;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.plan-rich-markdown-editor .an-rich-md-prose li::marker {
|
|
440
|
+
color: hsl(var(--border));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.plan-rich-markdown-editor .an-rich-md-link {
|
|
444
|
+
color: hsl(var(--ring));
|
|
445
|
+
text-decoration-color: hsl(var(--ring) / 0.55);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.plan-rich-markdown-editor .an-rich-md-prose strong {
|
|
449
|
+
color: hsl(var(--foreground));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.plan-rich-markdown-editor .an-rich-md-prose blockquote {
|
|
453
|
+
margin: 1.1rem 0;
|
|
454
|
+
border-inline-start-color: hsl(var(--border));
|
|
455
|
+
color: hsl(var(--muted-foreground));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.plan-rich-markdown-editor .an-rich-md-prose hr {
|
|
459
|
+
border-top-color: hsl(var(--border));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* Inline code only — never the block code inside <pre>. */
|
|
463
|
+
.plan-rich-markdown-editor .an-rich-md-prose :not(pre) > code {
|
|
464
|
+
background: hsl(var(--muted));
|
|
465
|
+
color: hsl(var(--foreground));
|
|
466
|
+
direction: ltr;
|
|
467
|
+
unicode-bidi: isolate;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* Block code surface fallback for any stray bare <pre>. */
|
|
471
|
+
.plan-rich-markdown-editor .an-rich-md-prose pre {
|
|
472
|
+
border: 1px solid hsl(var(--border));
|
|
473
|
+
background: hsl(var(--muted));
|
|
474
|
+
color: hsl(var(--foreground));
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.plan-rich-markdown-editor .an-rich-md-table th,
|
|
478
|
+
.plan-rich-markdown-editor .an-rich-md-table td {
|
|
479
|
+
border-color: hsl(var(--border));
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.plan-rich-markdown-editor .an-rich-md-table th {
|
|
483
|
+
background: hsl(var(--muted));
|
|
484
|
+
color: hsl(var(--foreground));
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.plan-rich-markdown-editor .an-rich-md-table td {
|
|
488
|
+
color: hsl(var(--muted-foreground));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.plan-rich-markdown-editor .an-rich-md-task-list li input[type="checkbox"] {
|
|
492
|
+
accent-color: hsl(var(--ring));
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* ── Code block — shared read/edit surface (structural) ──────────────────── */
|
|
496
|
+
|
|
497
|
+
/* Read-only surface (Shiki-highlighted, collapses past `--plan-code-max-lines`). */
|
|
498
|
+
.plan-code-surface {
|
|
499
|
+
border-radius: 12px;
|
|
500
|
+
overflow: hidden;
|
|
501
|
+
border: 1px solid hsl(var(--border));
|
|
502
|
+
background: hsl(var(--muted));
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.plan-code-surface-bar {
|
|
506
|
+
display: flex;
|
|
507
|
+
align-items: center;
|
|
508
|
+
justify-content: flex-end;
|
|
509
|
+
padding: 0.4rem 0.85rem;
|
|
510
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.plan-code-surface-lang {
|
|
514
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
515
|
+
font-size: 0.6875rem;
|
|
516
|
+
font-weight: 500;
|
|
517
|
+
letter-spacing: 0.02em;
|
|
518
|
+
color: hsl(var(--muted-foreground));
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.plan-code-surface-scroll {
|
|
522
|
+
position: relative;
|
|
523
|
+
overflow: auto;
|
|
524
|
+
font-size: var(--plan-code-size);
|
|
525
|
+
line-height: 1.6;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/* Collapsed: clamp to N lines (+ the pre's top padding) and hide the rest. */
|
|
529
|
+
.plan-code-surface[data-collapsed="true"] .plan-code-surface-scroll {
|
|
530
|
+
max-height: calc(var(--plan-code-max-lines, 30) * 1lh + 0.85rem);
|
|
531
|
+
overflow: hidden;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.plan-code-surface-fade {
|
|
535
|
+
position: absolute;
|
|
536
|
+
inset: auto 0 0 0;
|
|
537
|
+
height: 3.5rem;
|
|
538
|
+
pointer-events: none;
|
|
539
|
+
background: linear-gradient(to bottom, transparent, hsl(var(--muted)) 92%);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.plan-code-surface-toggle {
|
|
543
|
+
display: block;
|
|
544
|
+
width: 100%;
|
|
545
|
+
padding: 0.45rem 0.85rem;
|
|
546
|
+
border-top: 1px solid hsl(var(--border));
|
|
547
|
+
background: transparent;
|
|
548
|
+
color: hsl(var(--muted-foreground));
|
|
549
|
+
font-size: 0.75rem;
|
|
550
|
+
font-weight: 500;
|
|
551
|
+
text-align: start;
|
|
552
|
+
cursor: pointer;
|
|
553
|
+
transition:
|
|
554
|
+
color 0.15s,
|
|
555
|
+
background-color 0.15s;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.plan-code-surface-toggle:hover {
|
|
559
|
+
color: hsl(var(--foreground));
|
|
560
|
+
background: color-mix(in srgb, hsl(var(--muted)) 60%, transparent);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.plan-code-surface .plan-shiki,
|
|
564
|
+
.plan-code-surface pre {
|
|
565
|
+
margin: 0;
|
|
566
|
+
padding: 0.85rem 1.1rem;
|
|
567
|
+
background: var(--shiki-light-bg, hsl(var(--muted))) !important;
|
|
568
|
+
color: var(--shiki-light, hsl(var(--foreground)));
|
|
569
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
570
|
+
font-size: var(--plan-code-size);
|
|
571
|
+
line-height: 1.6;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.plan-code-surface pre code {
|
|
575
|
+
color: inherit;
|
|
576
|
+
background: none;
|
|
577
|
+
padding: 0;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.plan-code-surface .plan-shiki pre,
|
|
581
|
+
.plan-code-surface .plan-shiki code {
|
|
582
|
+
background: var(--shiki-light-bg, transparent) !important;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.plan-code-surface .plan-shiki pre span {
|
|
586
|
+
color: var(--shiki-light);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.dark .plan-code-surface .plan-shiki,
|
|
590
|
+
.dark .plan-code-surface .plan-shiki pre {
|
|
591
|
+
background: var(--shiki-dark-bg, hsl(var(--muted))) !important;
|
|
592
|
+
color: var(--shiki-dark, hsl(var(--foreground)));
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.dark .plan-code-surface .plan-shiki pre span {
|
|
596
|
+
color: var(--shiki-dark);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/* `code` primitive block: read wraps the surface with a borderless filename
|
|
600
|
+
header + hover chrome; edit is a single-bordered auto-growing surface. */
|
|
601
|
+
.plan-code {
|
|
602
|
+
position: relative;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.plan-code-head {
|
|
606
|
+
display: flex;
|
|
607
|
+
align-items: center;
|
|
608
|
+
justify-content: space-between;
|
|
609
|
+
gap: 0.75rem;
|
|
610
|
+
padding: 0 0.15rem 0.4rem;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.plan-code-filename {
|
|
614
|
+
display: inline-flex;
|
|
615
|
+
align-items: center;
|
|
616
|
+
gap: 0.4rem;
|
|
617
|
+
min-width: 0;
|
|
618
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
619
|
+
font-size: 0.78rem;
|
|
620
|
+
font-weight: 600;
|
|
621
|
+
color: hsl(var(--foreground));
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.plan-code-muted {
|
|
625
|
+
color: hsl(var(--muted-foreground));
|
|
626
|
+
font-weight: 500;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.plan-code-chrome {
|
|
630
|
+
display: inline-flex;
|
|
631
|
+
align-items: center;
|
|
632
|
+
gap: 0.35rem;
|
|
633
|
+
opacity: 0;
|
|
634
|
+
transition: opacity 0.12s ease;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.plan-code:hover .plan-code-chrome,
|
|
638
|
+
.plan-code:focus-within .plan-code-chrome {
|
|
639
|
+
opacity: 1;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.plan-code-chrome-float {
|
|
643
|
+
position: absolute;
|
|
644
|
+
top: 0.5rem;
|
|
645
|
+
inset-inline-end: 0.5rem;
|
|
646
|
+
z-index: 2;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.plan-code-chip {
|
|
650
|
+
display: inline-flex;
|
|
651
|
+
align-items: center;
|
|
652
|
+
justify-content: center;
|
|
653
|
+
height: 1.75rem;
|
|
654
|
+
width: 1.75rem;
|
|
655
|
+
border-radius: 7px;
|
|
656
|
+
border: 1px solid hsl(var(--border));
|
|
657
|
+
background: hsl(var(--muted));
|
|
658
|
+
color: hsl(var(--muted-foreground));
|
|
659
|
+
cursor: pointer;
|
|
660
|
+
transition:
|
|
661
|
+
color 0.12s,
|
|
662
|
+
background-color 0.12s;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.plan-code-chip:hover {
|
|
666
|
+
color: hsl(var(--foreground));
|
|
667
|
+
background: hsl(var(--muted));
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.plan-code-lang-select {
|
|
671
|
+
height: 1.75rem;
|
|
672
|
+
padding: 0 0.4rem;
|
|
673
|
+
border-radius: 7px;
|
|
674
|
+
border: 1px solid hsl(var(--border));
|
|
675
|
+
background: hsl(var(--muted));
|
|
676
|
+
color: hsl(var(--muted-foreground));
|
|
677
|
+
font-size: 0.72rem;
|
|
678
|
+
font-weight: 500;
|
|
679
|
+
cursor: pointer;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.plan-code-lang-select:hover {
|
|
683
|
+
color: hsl(var(--foreground));
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/* Editable surface: ONE border, auto-grows to content (no drag-to-resize). */
|
|
687
|
+
.plan-code-editing {
|
|
688
|
+
overflow: visible;
|
|
689
|
+
border: 1px solid hsl(var(--border));
|
|
690
|
+
border-radius: 12px;
|
|
691
|
+
/* Sit on the page background like the diff block — no distinct surface fill. */
|
|
692
|
+
background: transparent;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.plan-code-editing .plan-code-head {
|
|
696
|
+
padding: 0.4rem 0.5rem 0.4rem 0.85rem;
|
|
697
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.plan-code-editing:hover .plan-code-chrome,
|
|
701
|
+
.plan-code-editing:focus-within .plan-code-chrome {
|
|
702
|
+
opacity: 1;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/* Read view of the `code` block reuses the shared CodeSurface — flatten it for
|
|
706
|
+
the `code` primitive only so the snippet sits on the page (no gray box). */
|
|
707
|
+
.plan-code .plan-code-surface {
|
|
708
|
+
background: transparent;
|
|
709
|
+
}
|
|
710
|
+
.plan-code .plan-code-surface .plan-shiki,
|
|
711
|
+
.plan-code .plan-code-surface pre,
|
|
712
|
+
.dark .plan-code .plan-code-surface .plan-shiki,
|
|
713
|
+
.dark .plan-code .plan-code-surface pre {
|
|
714
|
+
background: transparent !important;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.plan-code-editor-body {
|
|
718
|
+
position: relative;
|
|
719
|
+
overflow: auto;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.plan-code-editor-layer,
|
|
723
|
+
.plan-code-editor-input {
|
|
724
|
+
box-sizing: border-box;
|
|
725
|
+
margin: 0;
|
|
726
|
+
padding: 0.85rem 1.1rem;
|
|
727
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
728
|
+
font-size: var(--plan-code-size);
|
|
729
|
+
line-height: 1.6;
|
|
730
|
+
font-weight: 400;
|
|
731
|
+
letter-spacing: 0;
|
|
732
|
+
font-kerning: none;
|
|
733
|
+
font-variant-ligatures: none;
|
|
734
|
+
font-feature-settings:
|
|
735
|
+
"liga" 0,
|
|
736
|
+
"calt" 0;
|
|
737
|
+
white-space: pre;
|
|
738
|
+
tab-size: 2;
|
|
739
|
+
overflow-wrap: normal;
|
|
740
|
+
word-break: normal;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.plan-code-editor-layer {
|
|
744
|
+
position: absolute;
|
|
745
|
+
inset: 0;
|
|
746
|
+
overflow: hidden;
|
|
747
|
+
pointer-events: none;
|
|
748
|
+
color: hsl(var(--foreground));
|
|
749
|
+
/* This is a <pre>; a base `pre {}` style would leak in a bg + border + larger
|
|
750
|
+
font-size. Override so it's flat and lines up exactly with the textarea. */
|
|
751
|
+
margin: 0 !important;
|
|
752
|
+
padding: 0.85rem 1.1rem !important;
|
|
753
|
+
background: transparent !important;
|
|
754
|
+
border: 0 !important;
|
|
755
|
+
border-radius: 0;
|
|
756
|
+
font-family:
|
|
757
|
+
"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace !important;
|
|
758
|
+
font-size: var(--plan-code-size) !important;
|
|
759
|
+
line-height: 1.6 !important;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.plan-code-editor-layer :where(code, span) {
|
|
763
|
+
font: inherit !important;
|
|
764
|
+
letter-spacing: 0 !important;
|
|
765
|
+
font-kerning: none !important;
|
|
766
|
+
font-variant-ligatures: none !important;
|
|
767
|
+
font-feature-settings:
|
|
768
|
+
"liga" 0,
|
|
769
|
+
"calt" 0 !important;
|
|
770
|
+
overflow-wrap: normal !important;
|
|
771
|
+
word-break: normal !important;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.plan-code-editor-input {
|
|
775
|
+
position: relative;
|
|
776
|
+
display: block;
|
|
777
|
+
width: 100%;
|
|
778
|
+
min-height: 2.5rem;
|
|
779
|
+
resize: none;
|
|
780
|
+
overflow: auto;
|
|
781
|
+
border: 0;
|
|
782
|
+
background: transparent;
|
|
783
|
+
color: transparent;
|
|
784
|
+
caret-color: hsl(var(--foreground));
|
|
785
|
+
outline: none;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.plan-code-editor-input::placeholder {
|
|
789
|
+
color: hsl(var(--muted-foreground));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/* Collapsed long snippet: fade the clipped bottom into the page background. */
|
|
793
|
+
.plan-code-editor-fade {
|
|
794
|
+
position: absolute;
|
|
795
|
+
inset: auto 0 0 0;
|
|
796
|
+
height: 3rem;
|
|
797
|
+
pointer-events: none;
|
|
798
|
+
background: linear-gradient(
|
|
799
|
+
to bottom,
|
|
800
|
+
transparent,
|
|
801
|
+
hsl(var(--background)) 92%
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.plan-code-caption {
|
|
806
|
+
margin-top: 0.5rem;
|
|
807
|
+
font-size: 0.8rem;
|
|
808
|
+
color: hsl(var(--muted-foreground));
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.plan-code-caption-input {
|
|
812
|
+
width: 100%;
|
|
813
|
+
padding: 0 0.15rem;
|
|
814
|
+
border: 0;
|
|
815
|
+
background: transparent;
|
|
816
|
+
font-size: 0.8rem;
|
|
817
|
+
color: hsl(var(--muted-foreground));
|
|
818
|
+
outline: none;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/* ── Editor node view (Tiptap): language picker header + highlighted <pre> ─── */
|
|
822
|
+
.an-code-block {
|
|
823
|
+
position: relative;
|
|
824
|
+
margin: 1.1rem 0;
|
|
825
|
+
border: 1px solid hsl(var(--border));
|
|
826
|
+
border-radius: 12px;
|
|
827
|
+
background: hsl(var(--muted));
|
|
828
|
+
overflow: hidden;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.an-code-block__header {
|
|
832
|
+
display: flex;
|
|
833
|
+
align-items: center;
|
|
834
|
+
padding: 0.3rem 0.55rem;
|
|
835
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
836
|
+
min-height: 2rem;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.an-code-block__lang {
|
|
840
|
+
display: inline-flex;
|
|
841
|
+
align-items: center;
|
|
842
|
+
gap: 0.25rem;
|
|
843
|
+
padding: 0.15rem 0.5rem;
|
|
844
|
+
border: none;
|
|
845
|
+
border-radius: 6px;
|
|
846
|
+
background: transparent;
|
|
847
|
+
color: hsl(var(--muted-foreground));
|
|
848
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
849
|
+
font-size: 0.7rem;
|
|
850
|
+
font-weight: 500;
|
|
851
|
+
cursor: pointer;
|
|
852
|
+
transition:
|
|
853
|
+
background-color 0.15s,
|
|
854
|
+
color 0.15s;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.an-code-block__lang:hover {
|
|
858
|
+
background: color-mix(in srgb, hsl(var(--muted)) 70%, transparent);
|
|
859
|
+
color: hsl(var(--foreground));
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.an-code-block__lang--readonly,
|
|
863
|
+
.an-code-block__lang--readonly:hover {
|
|
864
|
+
cursor: default;
|
|
865
|
+
background: transparent;
|
|
866
|
+
color: hsl(var(--muted-foreground));
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* The node-view wrapper owns the surface (border + bg), so the inner <pre> is
|
|
870
|
+
transparent. Scoped via `.an-rich-md-prose` so it applies in every editor. */
|
|
871
|
+
.an-rich-md-prose .an-code-block pre {
|
|
872
|
+
margin: 0;
|
|
873
|
+
padding: 0.85rem 1.1rem;
|
|
874
|
+
border: 0;
|
|
875
|
+
border-radius: 0;
|
|
876
|
+
background: transparent;
|
|
877
|
+
color: hsl(var(--foreground));
|
|
878
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
879
|
+
font-size: var(--plan-code-size);
|
|
880
|
+
line-height: 1.6;
|
|
881
|
+
overflow-x: auto;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.an-code-block pre code {
|
|
885
|
+
background: none;
|
|
886
|
+
padding: 0;
|
|
887
|
+
color: inherit;
|
|
888
|
+
font-size: inherit;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/* Language picker popover (rendered in a portal by the shared Popover). */
|
|
892
|
+
.an-code-block__search {
|
|
893
|
+
width: 100%;
|
|
894
|
+
padding: 0.5rem 0.65rem;
|
|
895
|
+
background: transparent;
|
|
896
|
+
border: none;
|
|
897
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
898
|
+
color: hsl(var(--foreground));
|
|
899
|
+
font-size: 0.8rem;
|
|
900
|
+
outline: none;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.an-code-block__list {
|
|
904
|
+
max-height: 220px;
|
|
905
|
+
overflow-y: auto;
|
|
906
|
+
padding: 0.25rem;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.an-code-block__option {
|
|
910
|
+
display: flex;
|
|
911
|
+
align-items: center;
|
|
912
|
+
justify-content: space-between;
|
|
913
|
+
width: 100%;
|
|
914
|
+
padding: 0.35rem 0.5rem;
|
|
915
|
+
border: none;
|
|
916
|
+
border-radius: 6px;
|
|
917
|
+
background: transparent;
|
|
918
|
+
color: hsl(var(--foreground));
|
|
919
|
+
font-size: 0.8rem;
|
|
920
|
+
text-align: start;
|
|
921
|
+
cursor: pointer;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.an-code-block__option:hover {
|
|
925
|
+
background: hsl(var(--accent));
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.an-code-block__option.is-active {
|
|
929
|
+
color: hsl(var(--primary));
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/* ════════════════════════════════════════════════════════════════════════
|
|
933
|
+
Wireframe kit + inline diagram + HTML-artboard styling.
|
|
934
|
+
|
|
935
|
+
Copied verbatim from the plan template's wireframe CSS
|
|
936
|
+
(wireframe/html-artboard.css + wireframe/kit/plan-wireframe-tokens.css).
|
|
937
|
+
These already reference plan palette vars with shadcn theme-token
|
|
938
|
+
FALLBACKS — e.g. var(--plan-text, hsl(var(--foreground))) — so in plan
|
|
939
|
+
they resolve to plan's palette (unchanged) and in any other app they
|
|
940
|
+
resolve to that app's theme tokens. Loaded globally here so the shared
|
|
941
|
+
wireframe + diagram blocks render in any app, not just plan.
|
|
942
|
+
════════════════════════════════════════════════════════════════════════ */
|
|
943
|
+
|
|
944
|
+
/* Question form / visual questions: respondent-facing intake block. */
|
|
945
|
+
.an-questions-block {
|
|
946
|
+
max-width: 860px;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/*
|
|
950
|
+
* HTML artboard styling.
|
|
951
|
+
*
|
|
952
|
+
* The model writes a plain, semantic HTML mockup of a screen. This stylesheet
|
|
953
|
+
* gives that HTML the wireframe look WITHOUT the model having to specify colors,
|
|
954
|
+
* fonts, or borders: it themes bare elements via tokens that flip on
|
|
955
|
+
* [data-theme], swaps the font on [data-style] (sketchy handwriting vs clean
|
|
956
|
+
* sans), and exposes --wf-* tokens + a few helper classes the model can lean on.
|
|
957
|
+
* The rough.js overlay then redraws the bordered boxes as hand-drawn strokes.
|
|
958
|
+
*
|
|
959
|
+
* Scope: `.plan-html-frame`. Everything is contained so model HTML can't leak
|
|
960
|
+
* into the app chrome.
|
|
961
|
+
*/
|
|
962
|
+
|
|
963
|
+
.plan-html-frame {
|
|
964
|
+
--wf-ink: var(--plan-text, hsl(var(--foreground)));
|
|
965
|
+
--wf-muted: var(--plan-muted, hsl(var(--muted-foreground)));
|
|
966
|
+
--wf-line: var(--plan-line, hsl(var(--border)));
|
|
967
|
+
/* Hand-drawn sketch stroke. Separate from --wf-ink (text) so the rough.js
|
|
968
|
+
overlay can run a touch softer than the body text — most important in dark
|
|
969
|
+
mode, where near-white text ink as a stroke makes harsh, eye-straining
|
|
970
|
+
borders. In light mode it matches the ink. */
|
|
971
|
+
/* Sketch stroke = a soft gray a step more pronounced than the hairline
|
|
972
|
+
--wf-line, so rough (broken) strokes still read clearly. Gentle, not hard
|
|
973
|
+
ink; text stays the dark --wf-ink above. */
|
|
974
|
+
--wf-sketch: var(--plan-muted-line, hsl(var(--border)));
|
|
975
|
+
--wf-paper: var(--plan-document, hsl(var(--background)));
|
|
976
|
+
--wf-card: var(--plan-block, hsl(var(--card)));
|
|
977
|
+
--wf-accent: hsl(var(--ring));
|
|
978
|
+
--wf-accent-fg: hsl(var(--primary-foreground));
|
|
979
|
+
--wf-accent-soft: color-mix(in srgb, var(--wf-accent) 11%, transparent);
|
|
980
|
+
--wf-warn: hsl(var(--destructive));
|
|
981
|
+
--wf-ok: var(--wf-accent);
|
|
982
|
+
--wf-radius: 9px;
|
|
983
|
+
|
|
984
|
+
--wf-font-hand: "Excalifont", "Comic Sans MS", "Bradley Hand", cursive;
|
|
985
|
+
--wf-font-clean:
|
|
986
|
+
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
|
|
987
|
+
--wf-font: var(--wf-font-hand);
|
|
988
|
+
|
|
989
|
+
position: relative;
|
|
990
|
+
width: 100%;
|
|
991
|
+
/* `min-height` (not a fixed `height: 100%`) so an HTML mockup fills the
|
|
992
|
+
auto-height artboard's floor yet grows with its content instead of clipping.
|
|
993
|
+
The frame shell (ArtboardFrame) owns the height policy; the prototype-live
|
|
994
|
+
scroll mode below pins to 100% for an internally-scrolling canvas. */
|
|
995
|
+
min-height: 100%;
|
|
996
|
+
overflow: hidden;
|
|
997
|
+
box-sizing: border-box;
|
|
998
|
+
background: transparent;
|
|
999
|
+
color: var(--wf-ink);
|
|
1000
|
+
font-family: var(--wf-font);
|
|
1001
|
+
font-size: 14px;
|
|
1002
|
+
line-height: 1.45;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.plan-html-frame-content {
|
|
1006
|
+
width: 100%;
|
|
1007
|
+
min-height: 100%;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.plan-html-frame[data-frame="hide"]:not([data-render-mode="design"])
|
|
1011
|
+
> .plan-html-frame-content
|
|
1012
|
+
> :first-child {
|
|
1013
|
+
margin: 0 !important;
|
|
1014
|
+
padding: 0 !important;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.plan-html-frame[data-prototype-live="true"] {
|
|
1018
|
+
overflow: auto;
|
|
1019
|
+
}
|
|
1020
|
+
.plan-html-frame[data-prototype-live="true"] > .plan-html-frame-content {
|
|
1021
|
+
height: 100%;
|
|
1022
|
+
min-height: 0;
|
|
1023
|
+
overflow: auto !important;
|
|
1024
|
+
overscroll-behavior: contain;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.plan-html-frame[data-style="clean"] {
|
|
1028
|
+
--wf-font: var(--wf-font-clean);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.plan-html-frame[data-render-mode="design"] {
|
|
1032
|
+
--wf-font: var(--wf-font-clean);
|
|
1033
|
+
background: transparent;
|
|
1034
|
+
color: inherit;
|
|
1035
|
+
font-family: var(--wf-font-clean);
|
|
1036
|
+
font-size: 16px;
|
|
1037
|
+
line-height: normal;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
:where(.plan-html-frame[data-render-mode="design"] .plan-html-frame-content)
|
|
1041
|
+
:where(h1, h2, h3, p, small, a, button, input, textarea, select, hr) {
|
|
1042
|
+
all: revert;
|
|
1043
|
+
box-sizing: border-box;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.plan-html-frame[data-render-mode="design"] button,
|
|
1047
|
+
.plan-html-frame[data-render-mode="design"] [role="button"],
|
|
1048
|
+
.plan-html-frame[data-render-mode="design"] [data-goto] {
|
|
1049
|
+
cursor: pointer;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.plan-html-frame[data-render-mode="design"] [data-plan-design-selected] {
|
|
1053
|
+
outline: 2px solid hsl(var(--ring)) !important;
|
|
1054
|
+
outline-offset: 2px;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.plan-html-frame * {
|
|
1058
|
+
box-sizing: border-box;
|
|
1059
|
+
min-width: 0;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/* Bare semantic elements get the wireframe look from tokens. */
|
|
1063
|
+
.plan-html-frame:not([data-render-mode="design"]) h1 {
|
|
1064
|
+
font-size: 22px;
|
|
1065
|
+
font-weight: 700;
|
|
1066
|
+
line-height: 1.15;
|
|
1067
|
+
margin: 0 0 8px;
|
|
1068
|
+
}
|
|
1069
|
+
.plan-html-frame:not([data-render-mode="design"]) h2 {
|
|
1070
|
+
font-size: 17px;
|
|
1071
|
+
font-weight: 700;
|
|
1072
|
+
line-height: 1.2;
|
|
1073
|
+
margin: 0 0 6px;
|
|
1074
|
+
}
|
|
1075
|
+
.plan-html-frame:not([data-render-mode="design"]) h3 {
|
|
1076
|
+
font-size: 14px;
|
|
1077
|
+
font-weight: 700;
|
|
1078
|
+
margin: 0 0 4px;
|
|
1079
|
+
}
|
|
1080
|
+
.plan-html-frame:not([data-render-mode="design"]) p {
|
|
1081
|
+
margin: 0 0 8px;
|
|
1082
|
+
}
|
|
1083
|
+
.plan-html-frame:not([data-render-mode="design"]) small,
|
|
1084
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-muted {
|
|
1085
|
+
color: var(--wf-muted);
|
|
1086
|
+
font-size: 12.5px;
|
|
1087
|
+
}
|
|
1088
|
+
.plan-html-frame:not([data-render-mode="design"]) a {
|
|
1089
|
+
color: var(--wf-accent);
|
|
1090
|
+
text-decoration: none;
|
|
1091
|
+
}
|
|
1092
|
+
.plan-html-frame:not([data-render-mode="design"]) hr {
|
|
1093
|
+
border: 0;
|
|
1094
|
+
border-top: 1.4px solid var(--wf-line);
|
|
1095
|
+
margin: 10px 0;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-icon {
|
|
1099
|
+
display: inline-block;
|
|
1100
|
+
width: 1em;
|
|
1101
|
+
height: 1em;
|
|
1102
|
+
flex: 0 0 auto;
|
|
1103
|
+
color: currentColor;
|
|
1104
|
+
vertical-align: -0.16em;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-icon-fallback {
|
|
1108
|
+
display: inline-flex;
|
|
1109
|
+
align-items: center;
|
|
1110
|
+
justify-content: center;
|
|
1111
|
+
border: 1.2px solid currentColor;
|
|
1112
|
+
border-radius: 999px;
|
|
1113
|
+
font-size: 0.72em;
|
|
1114
|
+
font-weight: 700;
|
|
1115
|
+
line-height: 1;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.plan-html-frame:not([data-render-mode="design"]) button,
|
|
1119
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-btn {
|
|
1120
|
+
display: inline-flex;
|
|
1121
|
+
align-items: center;
|
|
1122
|
+
justify-content: center;
|
|
1123
|
+
gap: 6px;
|
|
1124
|
+
font: inherit;
|
|
1125
|
+
font-weight: 700;
|
|
1126
|
+
color: var(--wf-ink);
|
|
1127
|
+
/* Opaque paper fill (not transparent) so a floating / overlapping button —
|
|
1128
|
+
a FAB, a sticky toolbar action like "+ Add habit" — never shows the
|
|
1129
|
+
content behind it through its body. */
|
|
1130
|
+
background: var(--wf-paper);
|
|
1131
|
+
border: 1.4px solid var(--wf-line);
|
|
1132
|
+
border-radius: var(--wf-radius);
|
|
1133
|
+
padding: 7px 14px;
|
|
1134
|
+
cursor: default;
|
|
1135
|
+
}
|
|
1136
|
+
.plan-html-frame[data-prototype-live="true"]
|
|
1137
|
+
:is(button, .wf-btn, [role="button"], [data-goto]) {
|
|
1138
|
+
cursor: pointer;
|
|
1139
|
+
}
|
|
1140
|
+
.plan-html-frame[data-prototype-live="true"] :is(button, .wf-btn):active {
|
|
1141
|
+
transform: translateY(1px);
|
|
1142
|
+
}
|
|
1143
|
+
.plan-html-frame[data-prototype-live="true"] [hidden] {
|
|
1144
|
+
display: none !important;
|
|
1145
|
+
}
|
|
1146
|
+
.plan-html-frame[data-prototype-live="true"] .is-done,
|
|
1147
|
+
.plan-html-frame[data-prototype-live="true"] [data-done="true"] {
|
|
1148
|
+
color: var(--wf-muted);
|
|
1149
|
+
text-decoration: line-through;
|
|
1150
|
+
text-decoration-thickness: 1.5px;
|
|
1151
|
+
}
|
|
1152
|
+
.plan-html-frame:not([data-render-mode="design"]) button.primary,
|
|
1153
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-btn.primary,
|
|
1154
|
+
.plan-html-frame:not([data-render-mode="design"]) [data-primary] {
|
|
1155
|
+
background: var(--wf-accent);
|
|
1156
|
+
border-color: var(--wf-accent);
|
|
1157
|
+
color: var(--wf-accent-fg);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.plan-html-frame:not([data-render-mode="design"]) input,
|
|
1161
|
+
.plan-html-frame:not([data-render-mode="design"]) textarea,
|
|
1162
|
+
.plan-html-frame:not([data-render-mode="design"]) select {
|
|
1163
|
+
font: inherit;
|
|
1164
|
+
color: var(--wf-ink);
|
|
1165
|
+
background: var(--wf-card);
|
|
1166
|
+
border: 1.4px solid var(--wf-line);
|
|
1167
|
+
border-radius: var(--wf-radius);
|
|
1168
|
+
padding: 8px 10px;
|
|
1169
|
+
width: 100%;
|
|
1170
|
+
}
|
|
1171
|
+
.plan-html-frame:not([data-render-mode="design"]) input[type="checkbox"],
|
|
1172
|
+
.plan-html-frame:not([data-render-mode="design"]) input[type="radio"] {
|
|
1173
|
+
width: 16px;
|
|
1174
|
+
height: 16px;
|
|
1175
|
+
padding: 0;
|
|
1176
|
+
accent-color: var(--wf-accent);
|
|
1177
|
+
flex: 0 0 auto;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-card,
|
|
1181
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-box {
|
|
1182
|
+
background: var(--wf-card);
|
|
1183
|
+
border: 1.4px solid var(--wf-line);
|
|
1184
|
+
border-radius: var(--wf-radius);
|
|
1185
|
+
padding: 12px;
|
|
1186
|
+
}
|
|
1187
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-row {
|
|
1188
|
+
display: flex;
|
|
1189
|
+
align-items: center;
|
|
1190
|
+
justify-content: space-between;
|
|
1191
|
+
gap: 10px;
|
|
1192
|
+
}
|
|
1193
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-row > :last-child {
|
|
1194
|
+
margin-inline-start: auto;
|
|
1195
|
+
text-align: end;
|
|
1196
|
+
}
|
|
1197
|
+
.plan-html-frame[data-style="sketchy"]:not([data-render-mode="design"])
|
|
1198
|
+
:is(.wf-card, .wf-box) {
|
|
1199
|
+
border-color: color-mix(in srgb, var(--wf-line) 72%, transparent);
|
|
1200
|
+
}
|
|
1201
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-pill,
|
|
1202
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-chip {
|
|
1203
|
+
display: inline-flex;
|
|
1204
|
+
align-items: center;
|
|
1205
|
+
gap: 5px;
|
|
1206
|
+
border: 1.4px solid var(--wf-line);
|
|
1207
|
+
border-radius: 999px;
|
|
1208
|
+
padding: 2px 10px;
|
|
1209
|
+
font-size: 12.5px;
|
|
1210
|
+
}
|
|
1211
|
+
.plan-html-frame:not([data-render-mode="design"]) .wf-pill.accent {
|
|
1212
|
+
border-color: var(--wf-accent);
|
|
1213
|
+
color: var(--wf-accent);
|
|
1214
|
+
background: var(--wf-accent-soft);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/* Once rough has drawn, hide crisp borders on the standard wireframe primitives
|
|
1218
|
+
that rough.js redraws. Fills and text stay in CSS; only outlines switch to
|
|
1219
|
+
the hand-drawn overlay. */
|
|
1220
|
+
.plan-html-frame[data-rough-ready]
|
|
1221
|
+
:is(
|
|
1222
|
+
button,
|
|
1223
|
+
input,
|
|
1224
|
+
textarea,
|
|
1225
|
+
select,
|
|
1226
|
+
hr,
|
|
1227
|
+
.wf-btn,
|
|
1228
|
+
.wf-card,
|
|
1229
|
+
.wf-box,
|
|
1230
|
+
.wf-pill,
|
|
1231
|
+
.wf-chip,
|
|
1232
|
+
.wf-icon-fallback,
|
|
1233
|
+
[style*="border:"],
|
|
1234
|
+
[style*="border-top:"],
|
|
1235
|
+
[style*="border-right:"],
|
|
1236
|
+
[style*="border-bottom:"],
|
|
1237
|
+
[style*="border-left:"],
|
|
1238
|
+
[data-rough]
|
|
1239
|
+
):not([data-rough="none"]) {
|
|
1240
|
+
border-color: transparent !important;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/* Skeleton register: neutral textless geometry. */
|
|
1244
|
+
.plan-html-frame[data-skeleton="true"] {
|
|
1245
|
+
--wf-ink: var(--plan-muted-line, hsl(var(--border)));
|
|
1246
|
+
--wf-muted: var(--plan-muted-line, hsl(var(--border)));
|
|
1247
|
+
--wf-line: var(--plan-placeholder-line, hsl(var(--border)));
|
|
1248
|
+
--wf-card: var(--plan-block, hsl(var(--card)));
|
|
1249
|
+
--wf-accent: var(--plan-muted-line, hsl(var(--border)));
|
|
1250
|
+
--wf-accent-soft: var(--plan-block, hsl(var(--card)));
|
|
1251
|
+
}
|
|
1252
|
+
.plan-html-frame[data-skeleton="true"] * {
|
|
1253
|
+
color: transparent !important;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/*
|
|
1257
|
+
* Inline architecture/code diagrams.
|
|
1258
|
+
*
|
|
1259
|
+
* These are document-local HTML/SVG fragments, not top-canvas wireframes. They
|
|
1260
|
+
* share the wireframe sketch preference so the same viewer toggle can switch
|
|
1261
|
+
* authored diagrams between crisp and hand-drawn presentation.
|
|
1262
|
+
*/
|
|
1263
|
+
|
|
1264
|
+
.plan-diagram-shell {
|
|
1265
|
+
position: relative;
|
|
1266
|
+
width: 100%;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.plan-diagram-frame {
|
|
1270
|
+
--wf-ink: var(--plan-text, hsl(var(--foreground)));
|
|
1271
|
+
--wf-muted: var(--plan-muted, hsl(var(--muted-foreground)));
|
|
1272
|
+
--wf-line: var(--plan-line, hsl(var(--border)));
|
|
1273
|
+
--wf-sketch: var(--plan-muted-line, hsl(var(--border)));
|
|
1274
|
+
--wf-diagram-line: var(--wf-line);
|
|
1275
|
+
--wf-paper: var(--plan-document, hsl(var(--background)));
|
|
1276
|
+
--wf-card: var(--plan-block, hsl(var(--card)));
|
|
1277
|
+
--wf-accent: hsl(var(--ring));
|
|
1278
|
+
--wf-accent-fg: hsl(var(--primary-foreground));
|
|
1279
|
+
--wf-accent-soft: color-mix(in srgb, var(--wf-accent) 11%, transparent);
|
|
1280
|
+
--wf-warn: hsl(var(--destructive));
|
|
1281
|
+
--wf-ok: var(--wf-accent);
|
|
1282
|
+
--wf-radius: 8px;
|
|
1283
|
+
--wf-font-hand: "Excalifont", "Comic Sans MS", "Bradley Hand", cursive;
|
|
1284
|
+
--wf-font-clean:
|
|
1285
|
+
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
|
|
1286
|
+
--wf-font: var(--wf-font-clean);
|
|
1287
|
+
|
|
1288
|
+
position: relative;
|
|
1289
|
+
overflow: auto;
|
|
1290
|
+
width: 100%;
|
|
1291
|
+
border: 0;
|
|
1292
|
+
border-radius: 10px;
|
|
1293
|
+
background: var(--wf-paper);
|
|
1294
|
+
color: var(--wf-ink);
|
|
1295
|
+
font-family: var(--wf-font);
|
|
1296
|
+
font-size: 14px;
|
|
1297
|
+
line-height: 1.4;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.plan-diagram-frame[data-frame="show"] {
|
|
1301
|
+
border: 1px solid var(--wf-diagram-line);
|
|
1302
|
+
padding: 10px;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.plan-diagram-frame[data-frame="show"][data-rough-ready] {
|
|
1306
|
+
border-color: transparent;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
.plan-diagram-frame[data-frame="hide"] {
|
|
1310
|
+
border: 0;
|
|
1311
|
+
background: transparent;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
.plan-diagram-frame[data-theme="dark"] {
|
|
1315
|
+
--wf-diagram-line: color-mix(in srgb, var(--wf-sketch) 72%, var(--wf-line));
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.plan-diagram-frame[data-style="sketchy"] {
|
|
1319
|
+
--wf-font: var(--wf-font-hand);
|
|
1320
|
+
line-height: 1.32;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.plan-diagram-frame * {
|
|
1324
|
+
box-sizing: border-box;
|
|
1325
|
+
min-width: 0;
|
|
1326
|
+
overflow-wrap: anywhere;
|
|
1327
|
+
text-wrap: pretty;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.plan-diagram-frame-content {
|
|
1331
|
+
width: 100%;
|
|
1332
|
+
padding: 8px 0;
|
|
1333
|
+
direction: inherit;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
.plan-diagram-frame[data-frame="show"] .plan-diagram-frame-content {
|
|
1337
|
+
padding: 0;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.plan-diagram-frame-content
|
|
1341
|
+
> .diagram-panel:not([data-rough]):not([data-diagram-frame]) {
|
|
1342
|
+
--rough-skip: 1;
|
|
1343
|
+
background: transparent;
|
|
1344
|
+
border-color: transparent;
|
|
1345
|
+
box-shadow: none;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.plan-diagram-frame svg {
|
|
1349
|
+
display: block;
|
|
1350
|
+
max-width: 100%;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.plan-diagram-frame :is(h1, h2, h3, p, small, strong) {
|
|
1354
|
+
margin: 0;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
.plan-diagram-frame :is(h1, h2, h3, strong) {
|
|
1358
|
+
color: var(--wf-ink);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.plan-diagram-frame h1 {
|
|
1362
|
+
font-size: 20px;
|
|
1363
|
+
line-height: 1.15;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.plan-diagram-frame h2 {
|
|
1367
|
+
font-size: 16px;
|
|
1368
|
+
line-height: 1.2;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.plan-diagram-frame h3 {
|
|
1372
|
+
font-size: 14px;
|
|
1373
|
+
line-height: 1.2;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.plan-diagram-frame :is(p, small, .diagram-muted) {
|
|
1377
|
+
color: var(--wf-muted);
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.plan-diagram-frame
|
|
1381
|
+
:is(.diagram-panel, .diagram-card, .diagram-node, .diagram-box) {
|
|
1382
|
+
--rough-stroke: var(--wf-diagram-line);
|
|
1383
|
+
border: 1.25px solid var(--wf-diagram-line);
|
|
1384
|
+
border-radius: var(--wf-radius);
|
|
1385
|
+
background: var(--wf-card);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.plan-diagram-frame
|
|
1389
|
+
:is(
|
|
1390
|
+
.diagram-panel,
|
|
1391
|
+
.diagram-card,
|
|
1392
|
+
.diagram-node,
|
|
1393
|
+
.diagram-box,
|
|
1394
|
+
[class*="card"],
|
|
1395
|
+
[class*="panel"],
|
|
1396
|
+
[class*="box"]
|
|
1397
|
+
) {
|
|
1398
|
+
--rough-stroke: var(--wf-diagram-line);
|
|
1399
|
+
border-color: var(--wf-diagram-line) !important;
|
|
1400
|
+
background: var(--wf-card) !important;
|
|
1401
|
+
color: var(--wf-ink) !important;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
.plan-diagram-frame
|
|
1405
|
+
:is(
|
|
1406
|
+
.diagram-panel,
|
|
1407
|
+
.diagram-card,
|
|
1408
|
+
.diagram-node,
|
|
1409
|
+
.diagram-box,
|
|
1410
|
+
[class*="card"],
|
|
1411
|
+
[class*="panel"],
|
|
1412
|
+
[class*="box"]
|
|
1413
|
+
) {
|
|
1414
|
+
max-width: 100%;
|
|
1415
|
+
overflow-wrap: anywhere !important;
|
|
1416
|
+
word-break: break-word;
|
|
1417
|
+
white-space: normal !important;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.plan-diagram-frame
|
|
1421
|
+
:is(
|
|
1422
|
+
.diagram-panel,
|
|
1423
|
+
.diagram-card,
|
|
1424
|
+
.diagram-node,
|
|
1425
|
+
.diagram-box,
|
|
1426
|
+
[class*="card"],
|
|
1427
|
+
[class*="panel"],
|
|
1428
|
+
[class*="box"]
|
|
1429
|
+
)
|
|
1430
|
+
:is(h1, h2, h3, p, small, strong, span, li) {
|
|
1431
|
+
max-width: 100%;
|
|
1432
|
+
overflow-wrap: anywhere !important;
|
|
1433
|
+
word-break: break-word;
|
|
1434
|
+
white-space: normal !important;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/* Base padding so primitive text never touches the box edge, even when an author
|
|
1438
|
+
* diagram omits its own padding. The wildcard selectors mirror the theme-color
|
|
1439
|
+
* rules above so every box/card/panel variant authors use is covered. Author CSS
|
|
1440
|
+
* (higher specificity, scoped to the diagram instance) still overrides this when
|
|
1441
|
+
* it sets padding explicitly. */
|
|
1442
|
+
.plan-diagram-frame :is(.diagram-node, .diagram-box, [class*="box"]) {
|
|
1443
|
+
padding: 8px 12px;
|
|
1444
|
+
}
|
|
1445
|
+
.plan-diagram-frame
|
|
1446
|
+
:is(.diagram-card, .diagram-panel, [class*="card"], [class*="panel"]) {
|
|
1447
|
+
padding: 14px 16px;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.plan-diagram-frame :is(.diagram-node, .diagram-box, .diagram-card) small {
|
|
1451
|
+
display: block;
|
|
1452
|
+
max-width: 100%;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
.plan-diagram-frame :is(.diagram-muted, [class*="muted"], small) {
|
|
1456
|
+
color: var(--wf-muted) !important;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.plan-diagram-frame
|
|
1460
|
+
:is(.diagram-pill, [class*="pill"], [class*="badge"], [class*="chip"]) {
|
|
1461
|
+
--rough-stroke: var(--wf-diagram-line);
|
|
1462
|
+
border-color: var(--wf-diagram-line) !important;
|
|
1463
|
+
background: var(--wf-paper) !important;
|
|
1464
|
+
color: var(--wf-ink) !important;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.plan-diagram-frame :is(.diagram-accent, [class*="accent"], [class*="active"]) {
|
|
1468
|
+
border-color: var(--wf-accent) !important;
|
|
1469
|
+
color: var(--wf-accent) !important;
|
|
1470
|
+
background: var(--wf-accent-soft) !important;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
.plan-diagram-frame :is(svg, line, path, polyline, polygon, rect, circle) {
|
|
1474
|
+
stroke: var(--wf-line) !important;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
.plan-diagram-frame
|
|
1478
|
+
:is(rect, circle, ellipse, polygon)[fill]:not([fill="none"]) {
|
|
1479
|
+
fill: var(--wf-card) !important;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.plan-diagram-frame svg text {
|
|
1483
|
+
fill: var(--wf-ink) !important;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.plan-diagram-frame[data-style="sketchy"]
|
|
1487
|
+
:is(.diagram-node, .diagram-box, .diagram-card) {
|
|
1488
|
+
line-height: 1.16;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.plan-diagram-frame[data-style="sketchy"] :is(.diagram-node, .diagram-box) {
|
|
1492
|
+
padding-inline: 12px;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.plan-diagram-frame
|
|
1496
|
+
:is(.diagram-pill, [class*="pill"], [class*="badge"], [class*="chip"]) {
|
|
1497
|
+
display: inline-flex;
|
|
1498
|
+
align-items: center;
|
|
1499
|
+
justify-content: center;
|
|
1500
|
+
flex-wrap: wrap;
|
|
1501
|
+
/* A pill hugs its label. `fit-content` is a definite cross size, so a flex
|
|
1502
|
+
* column with the default `align-items: stretch` no longer blows the pill out
|
|
1503
|
+
* to full width (the number chips and short status labels stay pill-shaped).
|
|
1504
|
+
* The wildcard selectors match the theme-color rules so every pill/badge/chip
|
|
1505
|
+
* variant used across the docs diagrams stays pill-shaped, not a full bar. */
|
|
1506
|
+
width: fit-content;
|
|
1507
|
+
max-width: 100%;
|
|
1508
|
+
border: 1px solid var(--wf-diagram-line);
|
|
1509
|
+
border-radius: 999px;
|
|
1510
|
+
padding: 3px 11px;
|
|
1511
|
+
color: var(--wf-ink);
|
|
1512
|
+
background: var(--wf-paper);
|
|
1513
|
+
overflow-wrap: anywhere !important;
|
|
1514
|
+
text-align: center;
|
|
1515
|
+
white-space: normal !important;
|
|
1516
|
+
word-break: break-word;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
.plan-diagram-frame
|
|
1520
|
+
:is(.diagram-pill, [class*="pill"], [class*="badge"], [class*="chip"])
|
|
1521
|
+
> * {
|
|
1522
|
+
min-width: 0;
|
|
1523
|
+
max-width: 100%;
|
|
1524
|
+
overflow-wrap: anywhere !important;
|
|
1525
|
+
white-space: normal !important;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.plan-diagram-frame :is(.diagram-accent, .diagram-pill.accent) {
|
|
1529
|
+
--rough-stroke: var(--wf-accent);
|
|
1530
|
+
border-color: var(--wf-accent) !important;
|
|
1531
|
+
color: var(--wf-accent) !important;
|
|
1532
|
+
background: var(--wf-accent-soft) !important;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
.plan-diagram-frame :is(.diagram-ok, .diagram-pill.ok) {
|
|
1536
|
+
--rough-stroke: var(--wf-ok);
|
|
1537
|
+
border-color: var(--wf-ok) !important;
|
|
1538
|
+
color: var(--wf-ok) !important;
|
|
1539
|
+
background: color-mix(in srgb, var(--wf-ok) 10%, transparent) !important;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
.plan-diagram-frame :is(.diagram-warn, .diagram-pill.warn) {
|
|
1543
|
+
--rough-stroke: var(--wf-warn);
|
|
1544
|
+
border-color: var(--wf-warn) !important;
|
|
1545
|
+
color: var(--wf-warn) !important;
|
|
1546
|
+
background: color-mix(in srgb, var(--wf-warn) 10%, transparent) !important;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
.plan-diagram-frame[data-rough-ready]
|
|
1550
|
+
:is(
|
|
1551
|
+
.diagram-panel,
|
|
1552
|
+
.diagram-card,
|
|
1553
|
+
.diagram-node,
|
|
1554
|
+
.diagram-box,
|
|
1555
|
+
.diagram-pill,
|
|
1556
|
+
[class*="card"],
|
|
1557
|
+
[class*="box"],
|
|
1558
|
+
[class*="panel"],
|
|
1559
|
+
[class*="pill"],
|
|
1560
|
+
[data-rough],
|
|
1561
|
+
hr
|
|
1562
|
+
) {
|
|
1563
|
+
border-color: color-mix(
|
|
1564
|
+
in srgb,
|
|
1565
|
+
var(--wf-diagram-line) 54%,
|
|
1566
|
+
transparent
|
|
1567
|
+
) !important;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.plan-diagram-frame[data-rough-ready]
|
|
1571
|
+
.plan-diagram-frame-content
|
|
1572
|
+
> .diagram-panel:not([data-rough]):not([data-diagram-frame]) {
|
|
1573
|
+
border-color: transparent !important;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/*
|
|
1577
|
+
* Plan wireframe design tokens.
|
|
1578
|
+
*
|
|
1579
|
+
* The MODEL emits a lean kit tree (no geometry, no CSS). This stylesheet owns
|
|
1580
|
+
* ALL visual quality for the wireframe primitives: ink/paper/accent palette,
|
|
1581
|
+
* density-driven spacing/type, and the hand-drawn fonts. Every kit component in
|
|
1582
|
+
* ./* reads these CSS vars, so density / accent / theme are switchable by
|
|
1583
|
+
* toggling a single attribute on a `.plan-wf` scope — never by changing nodes.
|
|
1584
|
+
*
|
|
1585
|
+
* Scope: `.plan-wf` (set on the Screen wrapper). Tokens are scoped, not global,
|
|
1586
|
+
* so wireframes can sit alongside the normal app chrome without leaking fonts
|
|
1587
|
+
* or colors.
|
|
1588
|
+
*/
|
|
1589
|
+
|
|
1590
|
+
/* Hand-drawn fonts. Excalifont is served by the app; no remote font dependency. */
|
|
1591
|
+
|
|
1592
|
+
.plan-wf {
|
|
1593
|
+
/* ---- Theme palette ----------------------------------------------------- */
|
|
1594
|
+
--ink: var(--plan-text, hsl(var(--foreground)));
|
|
1595
|
+
--ink-soft: var(--plan-muted, hsl(var(--muted-foreground)));
|
|
1596
|
+
--line: var(--plan-line, hsl(var(--border)));
|
|
1597
|
+
/* Sketch stroke = a soft gray a step more pronounced than --line so rough
|
|
1598
|
+
strokes read clearly; matches the HTML artboard. Text stays the dark --ink. */
|
|
1599
|
+
--wf-sketch: var(--plan-muted-line, hsl(var(--border)));
|
|
1600
|
+
--paper: var(--plan-document, hsl(var(--background)));
|
|
1601
|
+
--card: var(--plan-block, hsl(var(--card)));
|
|
1602
|
+
--accent: hsl(var(--ring));
|
|
1603
|
+
--accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
1604
|
+
--warn: hsl(var(--destructive));
|
|
1605
|
+
--warn-soft: color-mix(in srgb, var(--warn) 14%, transparent);
|
|
1606
|
+
--ok: var(--accent);
|
|
1607
|
+
--ok-soft: color-mix(in srgb, var(--ok) 15%, transparent);
|
|
1608
|
+
|
|
1609
|
+
/* Page backdrop behind artboards (board surface, not the screen paper). */
|
|
1610
|
+
--plan-wf-page-bg: var(--plan-canvas, hsl(var(--background)));
|
|
1611
|
+
|
|
1612
|
+
/* ---- Fonts ------------------------------------------------------------- */
|
|
1613
|
+
--font-hand:
|
|
1614
|
+
"Excalifont", "Comic Sans MS", "Bradley Hand", "Marker Felt", cursive;
|
|
1615
|
+
--font-script:
|
|
1616
|
+
"Excalifont", "Comic Sans MS", "Bradley Hand", "Marker Felt", cursive;
|
|
1617
|
+
--font-clean:
|
|
1618
|
+
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
|
|
1619
|
+
|
|
1620
|
+
/* ---- Density (regular default) ----------------------------------------- */
|
|
1621
|
+
/* Density is selected via [data-density]; individual tokens below. */
|
|
1622
|
+
--gap: 11px;
|
|
1623
|
+
--pad: 12px;
|
|
1624
|
+
--fs: 14px;
|
|
1625
|
+
--radius: 7px;
|
|
1626
|
+
--stroke: 1.4px;
|
|
1627
|
+
|
|
1628
|
+
/* ---- Sketch wobble ----------------------------------------------------- */
|
|
1629
|
+
/* Default crisp (low sketch). setSketch() helper overrides these inline. */
|
|
1630
|
+
--wobble: none;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
/* Density variants. Match the reference DENSITY map exactly. */
|
|
1634
|
+
.plan-wf[data-density="compact"] {
|
|
1635
|
+
--gap: 7px;
|
|
1636
|
+
--pad: 9px;
|
|
1637
|
+
--fs: 13px;
|
|
1638
|
+
--radius: 6px;
|
|
1639
|
+
--stroke: 1.3px;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
.plan-wf[data-density="regular"] {
|
|
1643
|
+
--gap: 11px;
|
|
1644
|
+
--pad: 12px;
|
|
1645
|
+
--fs: 14px;
|
|
1646
|
+
--radius: 7px;
|
|
1647
|
+
--stroke: 1.4px;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
.plan-wf[data-density="roomy"] {
|
|
1651
|
+
--gap: 15px;
|
|
1652
|
+
--pad: 17px;
|
|
1653
|
+
--fs: 15px;
|
|
1654
|
+
--radius: 9px;
|
|
1655
|
+
--stroke: 1.6px;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/* ---- Clean style: drop the hand-drawn font for a normal sans ------------- */
|
|
1659
|
+
/* In clean mode the rough overlay is off and frames get crisp CSS borders, so
|
|
1660
|
+
the handwriting font reads as out of place — switch to the sans stack. */
|
|
1661
|
+
.plan-wf[data-style="clean"] {
|
|
1662
|
+
--font-hand: var(--font-clean);
|
|
1663
|
+
--font-script: var(--font-clean);
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
/* ---- Rough sketch layer -------------------------------------------------- */
|
|
1667
|
+
/* The hand-drawn outlines are drawn by the rough.js overlay (kit/rough.tsx).
|
|
1668
|
+
Once it has measured + drawn, hide the crisp CSS borders so there is never a
|
|
1669
|
+
doubled border — fills and text stay, only the outline is replaced. */
|
|
1670
|
+
.plan-wf[data-rough-ready] [data-rough] {
|
|
1671
|
+
border-color: transparent !important;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
/* ---- Skeleton / neutral loading register --------------------------------- */
|
|
1675
|
+
/* One block flips the WHOLE kit to a textless skeleton: no ink, no rough, no
|
|
1676
|
+
color — every primitive already reads these vars, so nothing else changes.
|
|
1677
|
+
A skeleton is boxes + bars only; real labels collapse to transparent so the
|
|
1678
|
+
silhouette is preserved without readable copy. */
|
|
1679
|
+
.plan-wf[data-skeleton="true"] {
|
|
1680
|
+
--ink: var(--skeleton-fill);
|
|
1681
|
+
--ink-soft: var(--skeleton-fill);
|
|
1682
|
+
--line: var(--skeleton-fill);
|
|
1683
|
+
--card: var(--skeleton-block);
|
|
1684
|
+
--accent: var(--skeleton-fill);
|
|
1685
|
+
--accent-soft: var(--skeleton-block);
|
|
1686
|
+
--warn: var(--skeleton-fill);
|
|
1687
|
+
--warn-soft: var(--skeleton-block);
|
|
1688
|
+
--ok: var(--skeleton-fill);
|
|
1689
|
+
--ok-soft: var(--skeleton-block);
|
|
1690
|
+
--stroke: 0px;
|
|
1691
|
+
--skeleton-fill: var(--plan-muted-line, hsl(var(--border)));
|
|
1692
|
+
--skeleton-block: var(--plan-block, hsl(var(--card)));
|
|
1693
|
+
}
|
|
1694
|
+
/* Textless: hide real labels but keep their layout footprint. */
|
|
1695
|
+
.plan-wf[data-skeleton="true"] * {
|
|
1696
|
+
color: transparent !important;
|
|
1697
|
+
border-color: transparent !important;
|
|
1698
|
+
}
|
|
1699
|
+
/* Soft rounded placeholder bars in skeleton mode. */
|
|
1700
|
+
.plan-wf[data-skeleton="true"] {
|
|
1701
|
+
--radius: 7px;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1705
|
+
.plan-wf[data-skeleton="true"] {
|
|
1706
|
+
animation: plan-skeleton-pulse 1.6s ease-in-out infinite;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
@keyframes plan-skeleton-pulse {
|
|
1710
|
+
0%,
|
|
1711
|
+
100% {
|
|
1712
|
+
opacity: 1;
|
|
1713
|
+
}
|
|
1714
|
+
50% {
|
|
1715
|
+
opacity: 0.7;
|
|
1716
|
+
}
|
|
1717
|
+
}
|