@sixb/app 0.1.11 → 0.1.13
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/LICENSE +2 -0
- package/README.md +27 -26
- package/assets/connector-icons/README.md +29 -0
- package/assets/connector-icons/ace-iot.ico +0 -0
- package/assets/connector-icons/companycam.png +0 -0
- package/assets/connector-icons/exa.png +0 -0
- package/assets/connector-icons/github.svg +1 -0
- package/assets/connector-icons/google.ico +0 -0
- package/assets/connector-icons/googleads.svg +29 -0
- package/assets/connector-icons/linkedin.svg +1 -0
- package/assets/connector-icons/mercury.svg +1 -0
- package/assets/connector-icons/meta.svg +1 -0
- package/assets/connector-icons/microsoft.ico +0 -0
- package/assets/connector-icons/notion.svg +1 -0
- package/assets/connector-icons/pandadoc.png +0 -0
- package/assets/connector-icons/pennylane.ico +0 -0
- package/assets/connector-icons/pipedrive.png +0 -0
- package/assets/connector-icons/plaud.png +0 -0
- package/assets/connector-icons/quickbooks.svg +1 -0
- package/assets/connector-icons/stripe.svg +1 -0
- package/assets/connector-icons/teamleader.ico +0 -0
- package/assets/connector-icons/tiktok.svg +1 -0
- package/assets/connector-icons/unipile.png +0 -0
- package/dist/agent/activity-label.d.ts +5 -0
- package/dist/agent/activity-label.d.ts.map +1 -0
- package/dist/agent/agent-chat.d.ts +25 -0
- package/dist/agent/agent-chat.d.ts.map +1 -0
- package/dist/agent/agent-context-provider.d.ts +9 -0
- package/dist/agent/agent-context-provider.d.ts.map +1 -0
- package/dist/agent/agent-execution-trace.d.ts +9 -0
- package/dist/agent/agent-execution-trace.d.ts.map +1 -0
- package/dist/agent/agent-panel.d.ts +24 -0
- package/dist/agent/agent-panel.d.ts.map +1 -0
- package/dist/agent/agent-surface-state.d.ts +22 -0
- package/dist/agent/agent-surface-state.d.ts.map +1 -0
- package/dist/agent/agent-surface.d.ts +46 -0
- package/dist/agent/agent-surface.d.ts.map +1 -0
- package/dist/agent/agents-page.d.ts +4 -0
- package/dist/agent/agents-page.d.ts.map +1 -0
- package/dist/agent/artifact-card.d.ts +9 -0
- package/dist/agent/artifact-card.d.ts.map +1 -0
- package/dist/agent/artifact-panel-state.d.ts +16 -0
- package/dist/agent/artifact-panel-state.d.ts.map +1 -0
- package/dist/agent/artifact-panel.d.ts +38 -0
- package/dist/agent/artifact-panel.d.ts.map +1 -0
- package/dist/agent/bash/bash-tool-view.d.ts +17 -0
- package/dist/agent/bash/bash-tool-view.d.ts.map +1 -0
- package/dist/agent/bash/data.d.ts +35 -0
- package/dist/agent/bash/data.d.ts.map +1 -0
- package/dist/agent/bash/interpret.d.ts +84 -0
- package/dist/agent/bash/interpret.d.ts.map +1 -0
- package/dist/agent/bash/renderers.d.ts +31 -0
- package/dist/agent/bash/renderers.d.ts.map +1 -0
- package/dist/agent/bash/shell.d.ts +16 -0
- package/dist/agent/bash/shell.d.ts.map +1 -0
- package/dist/agent/components/activity-status.d.ts +13 -0
- package/dist/agent/components/activity-status.d.ts.map +1 -0
- package/dist/agent/components/agent-thread-switcher.d.ts +16 -0
- package/dist/agent/components/agent-thread-switcher.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +47 -0
- package/dist/agent/components/composer.d.ts.map +1 -0
- package/dist/agent/components/context-chips.d.ts +7 -0
- package/dist/agent/components/context-chips.d.ts.map +1 -0
- package/dist/agent/components/context-picker.d.ts +16 -0
- package/dist/agent/components/context-picker.d.ts.map +1 -0
- package/dist/agent/components/conversation-panel.d.ts +82 -0
- package/dist/agent/components/conversation-panel.d.ts.map +1 -0
- package/dist/agent/components/file-attachment-card.d.ts +8 -0
- package/dist/agent/components/file-attachment-card.d.ts.map +1 -0
- package/dist/agent/components/message-parts.d.ts +14 -0
- package/dist/agent/components/message-parts.d.ts.map +1 -0
- package/dist/agent/components/message-view.d.ts +58 -0
- package/dist/agent/components/message-view.d.ts.map +1 -0
- package/dist/agent/components/model-controls.d.ts +20 -0
- package/dist/agent/components/model-controls.d.ts.map +1 -0
- package/dist/agent/components/model-picker-row.d.ts +8 -0
- package/dist/agent/components/model-picker-row.d.ts.map +1 -0
- package/dist/agent/components/provider-logo.d.ts +6 -0
- package/dist/agent/components/provider-logo.d.ts.map +1 -0
- package/dist/agent/components/provider-logos.d.ts +3 -0
- package/dist/agent/components/provider-logos.d.ts.map +1 -0
- package/dist/agent/components/reasoning-effort-slider.d.ts +11 -0
- package/dist/agent/components/reasoning-effort-slider.d.ts.map +1 -0
- package/dist/agent/components/sandbox-recovery.d.ts +6 -0
- package/dist/agent/components/sandbox-recovery.d.ts.map +1 -0
- package/dist/agent/components/thread-artifacts-menu.d.ts +8 -0
- package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -0
- package/dist/agent/components/transcript.d.ts +36 -0
- package/dist/agent/components/transcript.d.ts.map +1 -0
- package/dist/agent/components/web-fetch-tool-view.d.ts +5 -0
- package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -0
- package/dist/agent/components/web-search-tool-view.d.ts +5 -0
- package/dist/agent/components/web-search-tool-view.d.ts.map +1 -0
- package/dist/agent/components/web-sources.d.ts +9 -0
- package/dist/agent/components/web-sources.d.ts.map +1 -0
- package/dist/agent/format.d.ts +12 -0
- package/dist/agent/format.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +337 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-stream.d.ts +22 -0
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -0
- package/dist/agent/i18n/en.d.ts +550 -0
- package/dist/agent/i18n/en.d.ts.map +1 -0
- package/dist/agent/i18n/fr.d.ts +4 -0
- package/dist/agent/i18n/fr.d.ts.map +1 -0
- package/dist/agent/i18n/index.d.ts +1079 -0
- package/dist/agent/i18n/index.d.ts.map +1 -0
- package/dist/agent/live-run.d.ts +48 -0
- package/dist/agent/live-run.d.ts.map +1 -0
- package/dist/agent/model-selection.d.ts +33 -0
- package/dist/agent/model-selection.d.ts.map +1 -0
- package/dist/agent/object-context-title.d.ts +22 -0
- package/dist/agent/object-context-title.d.ts.map +1 -0
- package/dist/agent/parts.d.ts +42 -0
- package/dist/agent/parts.d.ts.map +1 -0
- package/dist/agent/publish-artifact/interpret.d.ts +32 -0
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +9 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -0
- package/dist/agent/publish-artifact/use-live-publishes.d.ts +10 -0
- package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -0
- package/dist/agent/react-router.d.ts +7 -0
- package/dist/agent/react-router.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +24 -0
- package/dist/agent/read/interpret.d.ts.map +1 -0
- package/dist/agent/read/read-tool-view.d.ts +5 -0
- package/dist/agent/read/read-tool-view.d.ts.map +1 -0
- package/dist/agent/requester-settings.d.ts +15 -0
- package/dist/agent/requester-settings.d.ts.map +1 -0
- package/dist/agent/run-presentation.d.ts +70 -0
- package/dist/agent/run-presentation.d.ts.map +1 -0
- package/dist/agent/thread-navigation.d.ts +5 -0
- package/dist/agent/thread-navigation.d.ts.map +1 -0
- package/dist/agent/types.d.ts +22 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/utils/context-display.d.ts +5 -0
- package/dist/agent/utils/context-display.d.ts.map +1 -0
- package/dist/agent/utils/context-mention.d.ts +12 -0
- package/dist/agent/utils/context-mention.d.ts.map +1 -0
- package/dist/agent/utils/web-fetch.d.ts +4 -0
- package/dist/agent/utils/web-fetch.d.ts.map +1 -0
- package/dist/agent/utils/web-search.d.ts +20 -0
- package/dist/agent/utils/web-search.d.ts.map +1 -0
- package/dist/agent/view-file/interpret.d.ts +9 -0
- package/dist/agent/view-file/interpret.d.ts.map +1 -0
- package/dist/agent/view-file/view-file-tool-view.d.ts +9 -0
- package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -0
- package/dist/artifacts/artifact-page.d.ts +7 -0
- package/dist/artifacts/artifact-page.d.ts.map +1 -0
- package/dist/artifacts/card-details.d.ts +15 -0
- package/dist/artifacts/card-details.d.ts.map +1 -0
- package/dist/artifacts/card-preview.d.ts +59 -0
- package/dist/artifacts/card-preview.d.ts.map +1 -0
- package/dist/artifacts/copy-feedback.d.ts +6 -0
- package/dist/artifacts/copy-feedback.d.ts.map +1 -0
- package/dist/artifacts/file-size.d.ts +11 -0
- package/dist/artifacts/file-size.d.ts.map +1 -0
- package/dist/artifacts/file-source.d.ts +45 -0
- package/dist/artifacts/file-source.d.ts.map +1 -0
- package/dist/artifacts/file-view.d.ts +9 -0
- package/dist/artifacts/file-view.d.ts.map +1 -0
- package/dist/artifacts/frame.d.ts +45 -0
- package/dist/artifacts/frame.d.ts.map +1 -0
- package/dist/artifacts/gallery.d.ts +6 -0
- package/dist/artifacts/gallery.d.ts.map +1 -0
- package/dist/artifacts/kind-icon.d.ts +8 -0
- package/dist/artifacts/kind-icon.d.ts.map +1 -0
- package/dist/artifacts/markdown-tree.d.ts +22 -0
- package/dist/artifacts/markdown-tree.d.ts.map +1 -0
- package/dist/artifacts/messages.d.ts +301 -0
- package/dist/artifacts/messages.d.ts.map +1 -0
- package/dist/artifacts/queries.d.ts +21 -0
- package/dist/artifacts/queries.d.ts.map +1 -0
- package/dist/artifacts/references/embed-tree.d.ts +17 -0
- package/dist/artifacts/references/embed-tree.d.ts.map +1 -0
- package/dist/artifacts/references/references.d.ts +50 -0
- package/dist/artifacts/references/references.d.ts.map +1 -0
- package/dist/artifacts/renderers/document-tree.d.ts +11 -0
- package/dist/artifacts/renderers/document-tree.d.ts.map +1 -0
- package/dist/artifacts/renderers/document.d.ts +17 -0
- package/dist/artifacts/renderers/document.d.ts.map +1 -0
- package/dist/artifacts/renderers/file.d.ts +10 -0
- package/dist/artifacts/renderers/file.d.ts.map +1 -0
- package/dist/artifacts/renderers/notice.d.ts +12 -0
- package/dist/artifacts/renderers/notice.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/chart-data.d.ts +33 -0
- package/dist/artifacts/renderers/sheet/chart-data.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/chart.d.ts +15 -0
- package/dist/artifacts/renderers/sheet/chart.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/format.d.ts +35 -0
- package/dist/artifacts/renderers/sheet/format.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/grid.d.ts +25 -0
- package/dist/artifacts/renderers/sheet/grid.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/mini-chart.d.ts +7 -0
- package/dist/artifacts/renderers/sheet/mini-chart.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/model.d.ts +29 -0
- package/dist/artifacts/renderers/sheet/model.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/selection.d.ts +42 -0
- package/dist/artifacts/renderers/sheet/selection.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/sheet.d.ts +17 -0
- package/dist/artifacts/renderers/sheet/sheet.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/virtual.d.ts +13 -0
- package/dist/artifacts/renderers/sheet/virtual.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/workbook.d.ts +24 -0
- package/dist/artifacts/renderers/sheet/workbook.d.ts.map +1 -0
- package/dist/artifacts/renderers/slides/navigation.d.ts +17 -0
- package/dist/artifacts/renderers/slides/navigation.d.ts.map +1 -0
- package/dist/artifacts/renderers/slides/slides.d.ts +14 -0
- package/dist/artifacts/renderers/slides/slides.d.ts.map +1 -0
- package/dist/artifacts/target.d.ts +29 -0
- package/dist/artifacts/target.d.ts.map +1 -0
- package/dist/artifacts/theme.d.ts +18 -0
- package/dist/artifacts/theme.d.ts.map +1 -0
- package/dist/artifacts/viewer.d.ts +19 -0
- package/dist/artifacts/viewer.d.ts.map +1 -0
- package/dist/chunk-3schcf10.js +251 -0
- package/dist/chunk-3schcf10.js.map +10 -0
- package/dist/chunk-6n5pdqp0.js +115 -0
- package/dist/chunk-6n5pdqp0.js.map +11 -0
- package/dist/chunk-c7gy61rx.js +276 -0
- package/dist/chunk-c7gy61rx.js.map +10 -0
- package/dist/chunk-g3f4cm8x.js +20 -0
- package/dist/chunk-g3f4cm8x.js.map +10 -0
- package/dist/chunk-gn3k23q5.js +149 -0
- package/dist/chunk-gn3k23q5.js.map +10 -0
- package/dist/chunk-md3p7qdt.js +379 -0
- package/dist/chunk-md3p7qdt.js.map +10 -0
- package/dist/chunk-ng0hdnrq.js +183 -0
- package/dist/chunk-ng0hdnrq.js.map +10 -0
- package/dist/chunk-xxpdn63v.js +15018 -0
- package/dist/chunk-xxpdn63v.js.map +105 -0
- package/dist/chunk-yvhzn4ye.js +98 -0
- package/dist/chunk-yvhzn4ye.js.map +10 -0
- package/dist/codegen.d.ts +8 -4
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts +14 -7
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +31 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +962 -2891
- package/dist/index.js.map +14 -13
- package/dist/locale-messages.d.ts +74 -6
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +75 -8
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +10 -19
- package/dist/locale.js.map +3 -4
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/data/connectors.d.ts +5 -0
- package/dist/pages/data/connectors.d.ts.map +1 -0
- package/dist/pages/data/datasets.d.ts +30 -0
- package/dist/pages/data/datasets.d.ts.map +1 -0
- package/dist/pages/data/live-updates.d.ts +13 -0
- package/dist/pages/data/live-updates.d.ts.map +1 -0
- package/dist/pages/data/messages.d.ts +354 -0
- package/dist/pages/data/messages.d.ts.map +1 -0
- package/dist/pages/data/pipeline-canvas.d.ts +34 -0
- package/dist/pages/data/pipeline-canvas.d.ts.map +1 -0
- package/dist/pages/data/pipelines.d.ts +9 -0
- package/dist/pages/data/pipelines.d.ts.map +1 -0
- package/dist/pages/data/projections.d.ts +10 -0
- package/dist/pages/data/projections.d.ts.map +1 -0
- package/dist/pages/data/schema.d.ts +20 -0
- package/dist/pages/data/schema.d.ts.map +1 -0
- package/dist/pages/data/shared.d.ts +13 -0
- package/dist/pages/data/shared.d.ts.map +1 -0
- package/dist/pages/data/sync-button.d.ts +15 -0
- package/dist/pages/data/sync-button.d.ts.map +1 -0
- package/dist/pages/data/syncs.d.ts +5 -0
- package/dist/pages/data/syncs.d.ts.map +1 -0
- package/dist/pages/home.d.ts +6 -0
- package/dist/pages/home.d.ts.map +1 -0
- package/dist/pages/mosaic.d.ts +5 -0
- package/dist/pages/mosaic.d.ts.map +1 -0
- package/dist/pages/observability/action-run.d.ts +19 -0
- package/dist/pages/observability/action-run.d.ts.map +1 -0
- package/dist/pages/observability/activity/calendar.d.ts +9 -0
- package/dist/pages/observability/activity/calendar.d.ts.map +1 -0
- package/dist/pages/observability/activity/connections.d.ts +7 -0
- package/dist/pages/observability/activity/connections.d.ts.map +1 -0
- package/dist/pages/observability/activity/format.d.ts +11 -0
- package/dist/pages/observability/activity/format.d.ts.map +1 -0
- package/dist/pages/observability/activity/messages.d.ts +231 -0
- package/dist/pages/observability/activity/messages.d.ts.map +1 -0
- package/dist/pages/observability/activity/meta-items.d.ts +10 -0
- package/dist/pages/observability/activity/meta-items.d.ts.map +1 -0
- package/dist/pages/observability/activity/page.d.ts +6 -0
- package/dist/pages/observability/activity/page.d.ts.map +1 -0
- package/dist/pages/observability/activity/period.d.ts +31 -0
- package/dist/pages/observability/activity/period.d.ts.map +1 -0
- package/dist/pages/observability/activity/steps.d.ts +44 -0
- package/dist/pages/observability/activity/steps.d.ts.map +1 -0
- package/dist/pages/observability/activity/timeline.d.ts +36 -0
- package/dist/pages/observability/activity/timeline.d.ts.map +1 -0
- package/dist/pages/observability/activity/users.d.ts +18 -0
- package/dist/pages/observability/activity/users.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/calls.d.ts +27 -0
- package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/charts.d.ts +23 -0
- package/dist/pages/observability/ai-usage/charts.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/format.d.ts +101 -0
- package/dist/pages/observability/ai-usage/format.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/limits.d.ts +12 -0
- package/dist/pages/observability/ai-usage/limits.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/messages.d.ts +431 -0
- package/dist/pages/observability/ai-usage/messages.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/page.d.ts +6 -0
- package/dist/pages/observability/ai-usage/page.d.ts.map +1 -0
- package/dist/pages/observability/live-updates.d.ts +3 -0
- package/dist/pages/observability/live-updates.d.ts.map +1 -0
- package/dist/pages/observability/logs.d.ts +11 -0
- package/dist/pages/observability/logs.d.ts.map +1 -0
- package/dist/pages/observability/messages.d.ts +329 -0
- package/dist/pages/observability/messages.d.ts.map +1 -0
- package/dist/pages/observability/runs.d.ts +7 -0
- package/dist/pages/observability/runs.d.ts.map +1 -0
- package/dist/pages/observability/workflow-run.d.ts +6 -0
- package/dist/pages/observability/workflow-run.d.ts.map +1 -0
- package/dist/pages/ontology/actions.d.ts +3 -0
- package/dist/pages/ontology/actions.d.ts.map +1 -0
- package/dist/pages/ontology/components/action-button.d.ts +12 -0
- package/dist/pages/ontology/components/action-button.d.ts.map +1 -0
- package/dist/pages/ontology/components/action-param-null-control.d.ts +7 -0
- package/dist/pages/ontology/components/action-param-null-control.d.ts.map +1 -0
- package/dist/pages/ontology/components/collection-toolbar.d.ts +21 -0
- package/dist/pages/ontology/components/collection-toolbar.d.ts.map +1 -0
- package/dist/pages/ontology/components/common.d.ts +16 -0
- package/dist/pages/ontology/components/common.d.ts.map +1 -0
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts +13 -0
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-filter-popover.d.ts +9 -0
- package/dist/pages/ontology/components/object-filter-popover.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-icon.d.ts +7 -0
- package/dist/pages/ontology/components/object-icon.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-query-bar.d.ts +21 -0
- package/dist/pages/ontology/components/object-query-bar.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-chart.d.ts +18 -0
- package/dist/pages/ontology/components/telemetry-chart.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-grid.d.ts +19 -0
- package/dist/pages/ontology/components/telemetry-grid.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-tile.d.ts +18 -0
- package/dist/pages/ontology/components/telemetry-tile.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-value.d.ts +10 -0
- package/dist/pages/ontology/components/telemetry-value.d.ts.map +1 -0
- package/dist/pages/ontology/components/usage-bar.d.ts +12 -0
- package/dist/pages/ontology/components/usage-bar.d.ts.map +1 -0
- package/dist/pages/ontology/graph.d.ts +6 -0
- package/dist/pages/ontology/graph.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-live-updates.d.ts +5 -0
- package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts +8 -0
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-type-counts.d.ts +5 -0
- package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts +9 -0
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts +6 -0
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/lib/action-params.d.ts +55 -0
- package/dist/pages/ontology/lib/action-params.d.ts.map +1 -0
- package/dist/pages/ontology/lib/format-value.d.ts +3 -0
- package/dist/pages/ontology/lib/format-value.d.ts.map +1 -0
- package/dist/pages/ontology/lib/labels.d.ts +3 -0
- package/dist/pages/ontology/lib/labels.d.ts.map +1 -0
- package/dist/pages/ontology/lib/live-update-keys.d.ts +15 -0
- package/dist/pages/ontology/lib/live-update-keys.d.ts.map +1 -0
- package/dist/pages/ontology/lib/object-query.d.ts +72 -0
- package/dist/pages/ontology/lib/object-query.d.ts.map +1 -0
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts +68 -0
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts +4 -0
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +1 -0
- package/dist/pages/ontology/lib/telemetry-history.d.ts +10 -0
- package/dist/pages/ontology/lib/telemetry-history.d.ts.map +1 -0
- package/dist/pages/ontology/lib/time.d.ts +3 -0
- package/dist/pages/ontology/lib/time.d.ts.map +1 -0
- package/dist/pages/ontology/lib/user-preferences.d.ts +8 -0
- package/dist/pages/ontology/lib/user-preferences.d.ts.map +1 -0
- package/dist/pages/ontology/object-page.d.ts +7 -0
- package/dist/pages/ontology/object-page.d.ts.map +1 -0
- package/dist/pages/ontology/object-type.d.ts +3 -0
- package/dist/pages/ontology/object-type.d.ts.map +1 -0
- package/dist/pages/ontology/object-types.d.ts +7 -0
- package/dist/pages/ontology/object-types.d.ts.map +1 -0
- package/dist/pages/ontology/objects.d.ts +6 -0
- package/dist/pages/ontology/objects.d.ts.map +1 -0
- package/dist/pages/ontology/rules.d.ts +32 -0
- package/dist/pages/ontology/rules.d.ts.map +1 -0
- package/dist/pages/ontology/workflow.d.ts +6 -0
- package/dist/pages/ontology/workflow.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts +17 -0
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/intervention-panel.d.ts +5 -0
- package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts +11 -0
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts +5 -0
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-debug-section.d.ts +11 -0
- package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-input-form.d.ts +18 -0
- package/dist/pages/ontology/workflows/run-input-form.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-progress.d.ts +15 -0
- package/dist/pages/ontology/workflows/run-progress.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/schema-shape.d.ts +10 -0
- package/dist/pages/ontology/workflows/schema-shape.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/status-badge.d.ts +5 -0
- package/dist/pages/ontology/workflows/status-badge.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/utils.d.ts +29 -0
- package/dist/pages/ontology/workflows/utils.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/workflow-card.d.ts +5 -0
- package/dist/pages/ontology/workflows/workflow-card.d.ts.map +1 -0
- package/dist/pages/ontology/workflows.d.ts +3 -0
- package/dist/pages/ontology/workflows.d.ts.map +1 -0
- package/dist/pages/routes.d.ts +26 -0
- package/dist/pages/routes.d.ts.map +1 -0
- package/dist/pages/section-page.d.ts +91 -0
- package/dist/pages/section-page.d.ts.map +1 -0
- package/dist/pages/section-ui.d.ts +212 -0
- package/dist/pages/section-ui.d.ts.map +1 -0
- package/dist/pages/settings/controls.d.ts +94 -0
- package/dist/pages/settings/controls.d.ts.map +1 -0
- package/dist/pages/settings/developers.d.ts +3 -0
- package/dist/pages/settings/developers.d.ts.map +1 -0
- package/dist/pages/settings/members.d.ts +3 -0
- package/dist/pages/settings/members.d.ts.map +1 -0
- package/dist/pages/settings/messages.d.ts +538 -0
- package/dist/pages/settings/messages.d.ts.map +1 -0
- package/dist/pages/settings/personal.d.ts +6 -0
- package/dist/pages/settings/personal.d.ts.map +1 -0
- package/dist/pages/settings/service-accounts.d.ts +3 -0
- package/dist/pages/settings/service-accounts.d.ts.map +1 -0
- package/dist/pages/settings/sessions.d.ts +3 -0
- package/dist/pages/settings/sessions.d.ts.map +1 -0
- package/dist/pages/values.d.ts +77 -0
- package/dist/pages/values.d.ts.map +1 -0
- package/dist/pages.d.ts +45 -0
- package/dist/pages.d.ts.map +1 -0
- package/dist/pages.js +26029 -0
- package/dist/pages.js.map +98 -0
- package/dist/runtime.d.ts +0 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/sections/catalog.d.ts +37 -0
- package/dist/sections/catalog.d.ts.map +1 -0
- package/dist/sections/counts.d.ts +7 -0
- package/dist/sections/counts.d.ts.map +1 -0
- package/dist/sections/sections.d.ts +67 -0
- package/dist/sections/sections.d.ts.map +1 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +3036 -0
- package/dist/server.js.map +19 -0
- package/dist/session.d.ts +18 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/shell/agent-dock.d.ts +7 -0
- package/dist/shell/agent-dock.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +42 -0
- package/dist/shell/app-shell.d.ts.map +1 -0
- package/dist/shell/brand.d.ts +15 -0
- package/dist/shell/brand.d.ts.map +1 -0
- package/dist/shell/nav-items.d.ts +34 -0
- package/dist/shell/nav-items.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +12 -0
- package/dist/shell/search-command.d.ts.map +1 -0
- package/dist/shell/section-nav.d.ts +13 -0
- package/dist/shell/section-nav.d.ts.map +1 -0
- package/dist/shell/user-menu.d.ts +25 -0
- package/dist/shell/user-menu.d.ts.map +1 -0
- package/dist/tailwind.d.ts +4 -4
- package/dist/tailwind.d.ts.map +1 -1
- package/package.json +22 -21
- package/src/agent/activity-label.ts +70 -0
- package/src/agent/agent-chat.tsx +248 -0
- package/src/agent/agent-context-provider.tsx +92 -0
- package/src/agent/agent-execution-trace.tsx +316 -0
- package/src/agent/agent-panel.tsx +74 -0
- package/src/agent/agent-surface-state.ts +113 -0
- package/src/agent/agent-surface.tsx +363 -0
- package/src/agent/agent.css +231 -0
- package/src/agent/agents-page.ts +7 -0
- package/src/agent/artifact-card.tsx +190 -0
- package/src/agent/artifact-panel-state.ts +38 -0
- package/src/agent/artifact-panel.tsx +320 -0
- package/src/agent/bash/bash-tool-view.tsx +288 -0
- package/src/agent/bash/data.ts +137 -0
- package/src/agent/bash/interpret.ts +769 -0
- package/src/agent/bash/renderers.tsx +503 -0
- package/src/agent/bash/shell.ts +195 -0
- package/src/agent/components/activity-status.tsx +86 -0
- package/src/agent/components/agent-thread-switcher.tsx +346 -0
- package/src/agent/components/composer.tsx +870 -0
- package/src/agent/components/context-chips.tsx +63 -0
- package/src/agent/components/context-picker.tsx +88 -0
- package/src/agent/components/conversation-panel.tsx +352 -0
- package/src/agent/components/file-attachment-card.tsx +136 -0
- package/src/agent/components/message-parts.tsx +305 -0
- package/src/agent/components/message-view.tsx +422 -0
- package/src/agent/components/model-controls.tsx +204 -0
- package/src/agent/components/model-picker-row.tsx +136 -0
- package/src/agent/components/provider-logo.tsx +31 -0
- package/src/agent/components/provider-logos.ts +24 -0
- package/src/agent/components/reasoning-effort-slider.tsx +121 -0
- package/src/agent/components/sandbox-recovery.tsx +49 -0
- package/src/agent/components/thread-artifacts-menu.tsx +77 -0
- package/src/agent/components/transcript.tsx +239 -0
- package/src/agent/components/web-fetch-tool-view.tsx +69 -0
- package/src/agent/components/web-search-tool-view.tsx +37 -0
- package/src/agent/components/web-sources.tsx +159 -0
- package/src/agent/format.ts +60 -0
- package/src/agent/hooks/use-agent-conversation.ts +536 -0
- package/src/agent/hooks/use-thread-stream.ts +121 -0
- package/src/agent/i18n/en.ts +500 -0
- package/src/agent/i18n/fr.ts +530 -0
- package/src/agent/i18n/index.ts +14 -0
- package/src/agent/live-run.ts +257 -0
- package/src/agent/model-selection.ts +88 -0
- package/src/agent/object-context-title.ts +57 -0
- package/src/agent/parts.ts +119 -0
- package/src/agent/publish-artifact/interpret.ts +110 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +62 -0
- package/src/agent/publish-artifact/use-live-publishes.ts +45 -0
- package/src/agent/react-router.tsx +103 -0
- package/src/agent/read/interpret.ts +101 -0
- package/src/agent/read/read-tool-view.tsx +92 -0
- package/src/agent/requester-settings.ts +55 -0
- package/src/agent/run-presentation.ts +211 -0
- package/src/agent/thread-navigation.ts +11 -0
- package/src/agent/types.ts +37 -0
- package/src/agent/utils/context-display.ts +72 -0
- package/src/agent/utils/context-mention.ts +28 -0
- package/src/agent/utils/web-fetch.ts +20 -0
- package/src/agent/utils/web-search.ts +106 -0
- package/src/agent/view-file/interpret.ts +22 -0
- package/src/agent/view-file/view-file-tool-view.tsx +123 -0
- package/src/artifacts/artifact-page.tsx +61 -0
- package/src/artifacts/artifacts.css +172 -0
- package/src/artifacts/card-details.ts +92 -0
- package/src/artifacts/card-preview.tsx +612 -0
- package/src/artifacts/copy-feedback.ts +25 -0
- package/src/artifacts/file-size.ts +24 -0
- package/src/artifacts/file-source.ts +109 -0
- package/src/artifacts/file-view.ts +57 -0
- package/src/artifacts/frame.tsx +288 -0
- package/src/artifacts/gallery.tsx +405 -0
- package/src/artifacts/kind-icon.tsx +23 -0
- package/src/artifacts/markdown-tree.ts +32 -0
- package/src/artifacts/messages.ts +317 -0
- package/src/artifacts/queries.ts +85 -0
- package/src/artifacts/references/embed-tree.ts +86 -0
- package/src/artifacts/references/references.tsx +739 -0
- package/src/artifacts/renderers/document-tree.ts +157 -0
- package/src/artifacts/renderers/document.tsx +334 -0
- package/src/artifacts/renderers/file.tsx +160 -0
- package/src/artifacts/renderers/notice.tsx +38 -0
- package/src/artifacts/renderers/sheet/chart-data.ts +73 -0
- package/src/artifacts/renderers/sheet/chart.tsx +288 -0
- package/src/artifacts/renderers/sheet/format.ts +142 -0
- package/src/artifacts/renderers/sheet/grid.tsx +709 -0
- package/src/artifacts/renderers/sheet/mini-chart.tsx +241 -0
- package/src/artifacts/renderers/sheet/model.ts +136 -0
- package/src/artifacts/renderers/sheet/selection.ts +152 -0
- package/src/artifacts/renderers/sheet/sheet.tsx +471 -0
- package/src/artifacts/renderers/sheet/virtual.ts +49 -0
- package/src/artifacts/renderers/sheet/workbook.ts +57 -0
- package/src/artifacts/renderers/slides/navigation.ts +38 -0
- package/src/artifacts/renderers/slides/slides.tsx +441 -0
- package/src/artifacts/target.ts +76 -0
- package/src/artifacts/theme.ts +29 -0
- package/src/artifacts/viewer.tsx +476 -0
- package/src/build.ts +13 -2
- package/src/codegen.ts +98 -80
- package/src/createCustomApp.ts +175 -67
- package/src/index.ts +47 -16
- package/src/locale-messages.ts +128 -12
- package/src/locale.ts +1 -2
- package/src/metadata.ts +35 -1
- package/src/pages/canvas.css +43 -0
- package/src/pages/data/connectors.tsx +317 -0
- package/src/pages/data/datasets.tsx +731 -0
- package/src/pages/data/live-updates.ts +71 -0
- package/src/pages/data/messages.ts +349 -0
- package/src/pages/data/pipeline-canvas.tsx +288 -0
- package/src/pages/data/pipelines.tsx +710 -0
- package/src/pages/data/projections.tsx +482 -0
- package/src/pages/data/schema.tsx +62 -0
- package/src/pages/data/shared.tsx +78 -0
- package/src/pages/data/sync-button.tsx +103 -0
- package/src/pages/data/syncs.tsx +326 -0
- package/src/pages/home.tsx +64 -0
- package/src/pages/mosaic.tsx +97 -0
- package/src/pages/observability/action-run.tsx +229 -0
- package/src/pages/observability/activity/calendar.tsx +239 -0
- package/src/pages/observability/activity/connections.tsx +144 -0
- package/src/pages/observability/activity/format.ts +49 -0
- package/src/pages/observability/activity/messages.ts +255 -0
- package/src/pages/observability/activity/meta-items.tsx +23 -0
- package/src/pages/observability/activity/page.tsx +605 -0
- package/src/pages/observability/activity/period.ts +63 -0
- package/src/pages/observability/activity/steps.ts +102 -0
- package/src/pages/observability/activity/timeline.tsx +411 -0
- package/src/pages/observability/activity/users.tsx +133 -0
- package/src/pages/observability/ai-usage/calls.tsx +541 -0
- package/src/pages/observability/ai-usage/charts.tsx +126 -0
- package/src/pages/observability/ai-usage/format.ts +276 -0
- package/src/pages/observability/ai-usage/limits.tsx +629 -0
- package/src/pages/observability/ai-usage/messages.ts +446 -0
- package/src/pages/observability/ai-usage/page.tsx +814 -0
- package/src/pages/observability/live-updates.ts +19 -0
- package/src/pages/observability/logs.tsx +617 -0
- package/src/pages/observability/messages.ts +336 -0
- package/src/pages/observability/runs.tsx +732 -0
- package/src/pages/observability/workflow-run.tsx +323 -0
- package/src/pages/ontology/actions.tsx +749 -0
- package/src/pages/ontology/components/action-button.tsx +355 -0
- package/src/pages/ontology/components/action-param-null-control.tsx +35 -0
- package/src/pages/ontology/components/collection-toolbar.tsx +61 -0
- package/src/pages/ontology/components/common.tsx +60 -0
- package/src/pages/ontology/components/file-ref-upload-field.tsx +279 -0
- package/src/pages/ontology/components/object-filter-popover.tsx +311 -0
- package/src/pages/ontology/components/object-icon.tsx +133 -0
- package/src/pages/ontology/components/object-query-bar.tsx +217 -0
- package/src/pages/ontology/components/telemetry-chart.tsx +392 -0
- package/src/pages/ontology/components/telemetry-grid.tsx +137 -0
- package/src/pages/ontology/components/telemetry-tile.tsx +164 -0
- package/src/pages/ontology/components/telemetry-value.tsx +91 -0
- package/src/pages/ontology/components/usage-bar.tsx +64 -0
- package/src/pages/ontology/graph.tsx +1283 -0
- package/src/pages/ontology/hooks/object-live-updates.ts +53 -0
- package/src/pages/ontology/hooks/object-telemetry-updates.ts +45 -0
- package/src/pages/ontology/hooks/object-type-counts.ts +27 -0
- package/src/pages/ontology/hooks/rule-live-updates.ts +28 -0
- package/src/pages/ontology/hooks/workflow-live-updates.ts +20 -0
- package/src/pages/ontology/lib/action-params.ts +231 -0
- package/src/pages/ontology/lib/format-value.ts +34 -0
- package/src/pages/ontology/lib/labels.ts +50 -0
- package/src/pages/ontology/lib/live-update-keys.ts +62 -0
- package/src/pages/ontology/lib/object-query.ts +372 -0
- package/src/pages/ontology/lib/ontology-graph-layout.ts +1004 -0
- package/src/pages/ontology/lib/ontology-graph-links.ts +15 -0
- package/src/pages/ontology/lib/telemetry-history.ts +56 -0
- package/src/pages/ontology/lib/time.ts +23 -0
- package/src/pages/ontology/lib/user-preferences.ts +52 -0
- package/src/pages/ontology/object-page.tsx +1029 -0
- package/src/pages/ontology/object-type.tsx +910 -0
- package/src/pages/ontology/object-types.tsx +240 -0
- package/src/pages/ontology/objects.tsx +938 -0
- package/src/pages/ontology/rules.tsx +805 -0
- package/src/pages/ontology/workflow.tsx +1485 -0
- package/src/pages/ontology/workflows/agent-execution-panel.tsx +340 -0
- package/src/pages/ontology/workflows/intervention-panel.tsx +261 -0
- package/src/pages/ontology/workflows/node-execution-panel.tsx +86 -0
- package/src/pages/ontology/workflows/request-run-dialog.tsx +197 -0
- package/src/pages/ontology/workflows/run-debug-section.tsx +54 -0
- package/src/pages/ontology/workflows/run-input-form.tsx +900 -0
- package/src/pages/ontology/workflows/run-progress.tsx +83 -0
- package/src/pages/ontology/workflows/schema-shape.tsx +206 -0
- package/src/pages/ontology/workflows/status-badge.tsx +15 -0
- package/src/pages/ontology/workflows/utils.ts +107 -0
- package/src/pages/ontology/workflows/workflow-card.tsx +48 -0
- package/src/pages/ontology/workflows.tsx +143 -0
- package/src/pages/routes.ts +63 -0
- package/src/pages/section-page.tsx +272 -0
- package/src/pages/section-ui.tsx +773 -0
- package/src/pages/settings/controls.tsx +721 -0
- package/src/pages/settings/developers.tsx +163 -0
- package/src/pages/settings/members.tsx +1018 -0
- package/src/pages/settings/messages.ts +551 -0
- package/src/pages/settings/personal.tsx +97 -0
- package/src/pages/settings/service-accounts.tsx +623 -0
- package/src/pages/settings/sessions.tsx +183 -0
- package/src/pages/values.tsx +700 -0
- package/src/pages.ts +59 -0
- package/src/runtime.ts +0 -3
- package/src/sections/catalog.ts +182 -0
- package/src/sections/counts.ts +33 -0
- package/src/sections/sections.tsx +259 -0
- package/src/server.ts +19 -0
- package/src/session.ts +29 -0
- package/src/shell/agent-dock.tsx +32 -0
- package/src/shell/app-shell.tsx +142 -0
- package/src/shell/brand.tsx +47 -0
- package/src/shell/nav-items.tsx +136 -0
- package/src/shell/search-command.tsx +160 -0
- package/src/shell/section-nav.tsx +61 -0
- package/src/shell/user-menu.tsx +206 -0
- package/src/tailwind.ts +4 -4
- package/dist/agents.d.ts +0 -11
- package/dist/agents.d.ts.map +0 -1
- package/dist/agents.js +0 -41
- package/dist/agents.js.map +0 -10
- package/dist/auth.js +0 -3
- package/dist/auth.js.map +0 -9
- package/dist/browser.d.ts +0 -3
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -9
- package/dist/browser.js.map +0 -9
- package/dist/chunk-cftmy40z.js +0 -70
- package/dist/chunk-cftmy40z.js.map +0 -10
- package/dist/chunk-e1gj8c1a.js +0 -8
- package/dist/chunk-e1gj8c1a.js.map +0 -10
- package/src/agents.ts +0 -48
- package/src/browser.ts +0 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
GetAgentResponse,
|
|
3
|
+
GetAgentRunResponse,
|
|
4
|
+
ListAgentThreadMessagesResponse,
|
|
5
|
+
ListAgentThreadsResponse,
|
|
6
|
+
ListModelsResponse,
|
|
7
|
+
} from "@sixb/client"
|
|
8
|
+
import type { AgentContextEntryInput, AgentContextInput } from "@sixb/core/agents/context"
|
|
9
|
+
import type { ModelReasoningLevel } from "@sixb/core/models"
|
|
10
|
+
|
|
11
|
+
export type { AgentContextEntryInput, AgentContextInput }
|
|
12
|
+
|
|
13
|
+
// The generated client describes agent payloads as inline response shapes. Re-derive the row types
|
|
14
|
+
// here so the rest of the agent UI has stable, readable names to work with.
|
|
15
|
+
|
|
16
|
+
export type Agent = GetAgentResponse
|
|
17
|
+
|
|
18
|
+
export type AgentThread = ListAgentThreadsResponse["threads"][number]
|
|
19
|
+
|
|
20
|
+
export type AgentMessage = ListAgentThreadMessagesResponse["messages"][number]
|
|
21
|
+
|
|
22
|
+
export type AgentMessagePart = AgentMessage["parts"][number]
|
|
23
|
+
|
|
24
|
+
export type AgentFileRef = Extract<AgentMessagePart, { type: "file" }>["fileRef"]
|
|
25
|
+
|
|
26
|
+
export type AgentContextPart = Extract<AgentMessagePart, { type: "context" }>
|
|
27
|
+
|
|
28
|
+
export type AgentRun = GetAgentRunResponse
|
|
29
|
+
|
|
30
|
+
export type AgentRunStatus = AgentRun["status"]
|
|
31
|
+
|
|
32
|
+
export type LanguageModel = ListModelsResponse["language"][number]
|
|
33
|
+
|
|
34
|
+
export interface AgentModelSelection {
|
|
35
|
+
readonly model: Pick<LanguageModel, "provider" | "modelId">
|
|
36
|
+
readonly reasoning?: ModelReasoningLevel
|
|
37
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type AgentContextInput, agentContextIdentity } from "@sixb/core/agents/context"
|
|
2
|
+
import { en } from "../i18n/en"
|
|
3
|
+
|
|
4
|
+
/** `unnamed` labels an object type id with no readable words, in the reader's language. */
|
|
5
|
+
export function agentContextLabel(
|
|
6
|
+
context: AgentContextInput,
|
|
7
|
+
unnamed: string = en.context.unnamed
|
|
8
|
+
): string {
|
|
9
|
+
if (context.kind === "app-state") return context.label
|
|
10
|
+
if (context.label !== undefined) return context.label
|
|
11
|
+
|
|
12
|
+
const typeLabel = displayWords(context.ref.objectTypeId) || unnamed
|
|
13
|
+
const primaryId = stripObjectTypePrefix(context.ref.primaryId, context.ref.objectTypeId)
|
|
14
|
+
const parts = primaryId.split(/[:/]+/).filter(Boolean)
|
|
15
|
+
while (parts.length > 1 && looksOpaque(parts.at(-1) ?? "")) parts.pop()
|
|
16
|
+
|
|
17
|
+
const subject =
|
|
18
|
+
parts.length === 1 && looksOpaque(parts[0] ?? "")
|
|
19
|
+
? `${parts[0]?.slice(0, 8)}…`
|
|
20
|
+
: displayWords(parts.join(" "))
|
|
21
|
+
if (!subject) return typeLabel
|
|
22
|
+
return `${typeLabel} · ${subject}`
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function stripObjectTypePrefix(primaryId: string, objectTypeId: string): string {
|
|
26
|
+
const words = splitWords(objectTypeId)
|
|
27
|
+
const prefixes = new Set([objectTypeId, words.join("-"), words.join("_"), words.join(" ")])
|
|
28
|
+
const lowerPrimaryId = primaryId.toLowerCase()
|
|
29
|
+
|
|
30
|
+
for (const prefix of prefixes) {
|
|
31
|
+
for (const separator of [":", "/", "-", "_"]) {
|
|
32
|
+
const candidate = `${prefix.toLowerCase()}${separator}`
|
|
33
|
+
if (lowerPrimaryId.startsWith(candidate)) return primaryId.slice(candidate.length)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return primaryId
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function displayWords(value: string): string {
|
|
40
|
+
const words = splitWords(value)
|
|
41
|
+
if (words.length === 0) return ""
|
|
42
|
+
const label = words.join(" ")
|
|
43
|
+
return label.charAt(0).toUpperCase() + label.slice(1)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function splitWords(value: string): string[] {
|
|
47
|
+
return value
|
|
48
|
+
.replace(/([a-z0-9])([A-Z])/g, "$1 $2")
|
|
49
|
+
.split(/[\s:_/-]+/)
|
|
50
|
+
.filter(Boolean)
|
|
51
|
+
.map((word) => word.toLowerCase())
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function looksOpaque(value: string): boolean {
|
|
55
|
+
return (
|
|
56
|
+
/^[a-f\d]{16,}$/i.test(value) ||
|
|
57
|
+
/^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/i.test(value) ||
|
|
58
|
+
(/^[a-z\d]+$/i.test(value) && value.length >= 24)
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function mergeAgentContext(
|
|
63
|
+
primary: readonly AgentContextInput[],
|
|
64
|
+
secondary: readonly AgentContextInput[]
|
|
65
|
+
): readonly AgentContextInput[] {
|
|
66
|
+
const values = new Map(primary.map((context) => [agentContextIdentity(context), context]))
|
|
67
|
+
for (const context of secondary) {
|
|
68
|
+
const identity = agentContextIdentity(context)
|
|
69
|
+
if (!values.has(identity)) values.set(identity, context)
|
|
70
|
+
}
|
|
71
|
+
return [...values.values()]
|
|
72
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface AgentContextMention {
|
|
2
|
+
readonly start: number
|
|
3
|
+
readonly end: number
|
|
4
|
+
readonly query: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Return the `@query` token immediately before the caret, if any. */
|
|
8
|
+
export function findAgentContextMention(value: string, caret: number): AgentContextMention | null {
|
|
9
|
+
const beforeCaret = value.slice(0, caret)
|
|
10
|
+
const match = /(?:^|\s)@([^\s@]*)$/.exec(beforeCaret)
|
|
11
|
+
if (!match) return null
|
|
12
|
+
const query = match[1] ?? ""
|
|
13
|
+
return {
|
|
14
|
+
start: caret - query.length - 1,
|
|
15
|
+
end: caret,
|
|
16
|
+
query,
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function removeAgentContextMention(
|
|
21
|
+
value: string,
|
|
22
|
+
mention: AgentContextMention
|
|
23
|
+
): { readonly value: string; readonly caret: number } {
|
|
24
|
+
return {
|
|
25
|
+
value: `${value.slice(0, mention.start)}${value.slice(mention.end)}`,
|
|
26
|
+
caret: mention.start,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { coerceWebSearchOutput, type WebSource } from "./web-search"
|
|
2
|
+
|
|
3
|
+
export function coerceWebFetchOutput(value: unknown): WebSource | null {
|
|
4
|
+
if (!isRecord(value) || typeof value.content !== "string") return null
|
|
5
|
+
return coerceWebSearchOutput({ results: [{ ...value, text: value.content }] })?.[0] ?? null
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function webFetchUrl(input: unknown): URL | null {
|
|
9
|
+
if (!isRecord(input) || typeof input.url !== "string") return null
|
|
10
|
+
try {
|
|
11
|
+
const url = new URL(input.url)
|
|
12
|
+
return ["http:", "https:"].includes(url.protocol) && !url.username && !url.password ? url : null
|
|
13
|
+
} catch {
|
|
14
|
+
return null
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
19
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
20
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { NormalizedPart } from "../parts"
|
|
2
|
+
|
|
3
|
+
export interface WebSource {
|
|
4
|
+
readonly id: string
|
|
5
|
+
readonly url: string
|
|
6
|
+
readonly domain: string
|
|
7
|
+
readonly faviconUrl: string
|
|
8
|
+
readonly title: string
|
|
9
|
+
readonly excerpt: string
|
|
10
|
+
readonly author?: string
|
|
11
|
+
/** ISO date as published by the source; see {@link formatPublicationDate}. */
|
|
12
|
+
readonly publishedDate?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** A publication date in the reader's language. Sources publish calendar dates, read in UTC. */
|
|
16
|
+
export function formatPublicationDate(value: string, locale: string): string {
|
|
17
|
+
return new Intl.DateTimeFormat(locale, {
|
|
18
|
+
day: "numeric",
|
|
19
|
+
month: "short",
|
|
20
|
+
year: "numeric",
|
|
21
|
+
timeZone: "UTC",
|
|
22
|
+
}).format(new Date(value))
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Recognize the bounded Exa web_search output, without depending on the connector package. */
|
|
26
|
+
export function coerceWebSearchOutput(value: unknown): readonly WebSource[] | null {
|
|
27
|
+
if (!isRecord(value) || !Array.isArray(value.results)) return null
|
|
28
|
+
const sources: WebSource[] = []
|
|
29
|
+
for (const result of value.results) {
|
|
30
|
+
if (
|
|
31
|
+
!isRecord(result) ||
|
|
32
|
+
typeof result.url !== "string" ||
|
|
33
|
+
typeof result.title !== "string" ||
|
|
34
|
+
typeof result.text !== "string"
|
|
35
|
+
) {
|
|
36
|
+
return null
|
|
37
|
+
}
|
|
38
|
+
const url = httpUrl(result.url)
|
|
39
|
+
if (!url) continue
|
|
40
|
+
const page = new URL(url)
|
|
41
|
+
page.hash = ""
|
|
42
|
+
sources.push({
|
|
43
|
+
id: page.href,
|
|
44
|
+
url: url.href,
|
|
45
|
+
domain: url.hostname.replace(/^www\./, ""),
|
|
46
|
+
faviconUrl: new URL("/favicon.ico", url.origin).href,
|
|
47
|
+
title: compact(result.title) || url.hostname,
|
|
48
|
+
excerpt: excerpt(result.text),
|
|
49
|
+
author: typeof result.author === "string" ? compact(result.author) : undefined,
|
|
50
|
+
publishedDate: publicationDate(result.publishedDate),
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
// Invalid links are not evidence that a search returned zero results. Keep the inspector.
|
|
54
|
+
return value.results.length > 0 && sources.length === 0 ? null : sources
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function webSearchQuery(input: unknown): string | undefined {
|
|
58
|
+
return isRecord(input) && typeof input.query === "string" ? input.query.trim() : undefined
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** Keep provider order and the first occurrence; separate pages on one domain remain separate. */
|
|
62
|
+
export function collectWebSources(parts: readonly NormalizedPart[]): readonly WebSource[] {
|
|
63
|
+
const sources = new Map<string, WebSource>()
|
|
64
|
+
for (const part of parts) {
|
|
65
|
+
if (
|
|
66
|
+
part.kind !== "tool" ||
|
|
67
|
+
part.tool.toolName !== "web_search" ||
|
|
68
|
+
part.tool.state !== "output-available"
|
|
69
|
+
) {
|
|
70
|
+
continue
|
|
71
|
+
}
|
|
72
|
+
for (const source of coerceWebSearchOutput(part.tool.output) ?? []) {
|
|
73
|
+
if (!sources.has(source.id)) sources.set(source.id, source)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return [...sources.values()]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function httpUrl(value: string): URL | null {
|
|
80
|
+
try {
|
|
81
|
+
const url = new URL(value)
|
|
82
|
+
if (!["http:", "https:"].includes(url.protocol) || url.username || url.password) return null
|
|
83
|
+
return url
|
|
84
|
+
} catch {
|
|
85
|
+
return null
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function compact(value: string): string {
|
|
90
|
+
return value.replace(/\s+/g, " ").trim()
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function excerpt(value: string): string {
|
|
94
|
+
const text = compact(value)
|
|
95
|
+
return text.length > 360 ? `${text.slice(0, 357).trimEnd()}…` : text
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function publicationDate(value: unknown): string | undefined {
|
|
99
|
+
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}(?:T|$)/.test(value)) return
|
|
100
|
+
if (!Number.isFinite(new Date(value).getTime())) return
|
|
101
|
+
return value
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
105
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
106
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type NormalizedFile, type NormalizedTool, toolResultFiles } from "../parts"
|
|
2
|
+
|
|
3
|
+
export interface ViewFileDescription {
|
|
4
|
+
/** The file name, or empty until the call names one. */
|
|
5
|
+
readonly target: string
|
|
6
|
+
/** The file the call prepared for the model, once it has a result. */
|
|
7
|
+
readonly file?: NormalizedFile
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function describeViewFile(tool: NormalizedTool): ViewFileDescription {
|
|
11
|
+
// A saved message resolves each file's source; a live result only carries its reference.
|
|
12
|
+
const file =
|
|
13
|
+
tool.files?.[0] ??
|
|
14
|
+
toolResultFiles(tool.output).map(({ fileRef }): NormalizedFile => ({ fileRef }))[0]
|
|
15
|
+
const path = isRecord(tool.input) && typeof tool.input.path === "string" ? tool.input.path : ""
|
|
16
|
+
const target = file?.fileRef.fileName?.trim() || path.split("/").filter(Boolean).at(-1) || ""
|
|
17
|
+
return file ? { target, file } : { target }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
21
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
22
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { useLocale } from "@sixb/ui/lib/i18n"
|
|
2
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
3
|
+
import { Eye, File as FileIcon } from "lucide-react"
|
|
4
|
+
import type { ReactNode } from "react"
|
|
5
|
+
import { formatFileSize } from "../../artifacts/file-size"
|
|
6
|
+
import { fileView } from "../../artifacts/file-view"
|
|
7
|
+
import { useArtifactPanel } from "../artifact-panel"
|
|
8
|
+
import { ActivityStatusText } from "../components/activity-status"
|
|
9
|
+
import { useAgentMessages } from "../i18n"
|
|
10
|
+
import type { NormalizedFile, NormalizedTool } from "../parts"
|
|
11
|
+
import { describeViewFile } from "./interpret"
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A file the agent viewed. It belongs to the work, not to the answer, so it stays in the trace: an
|
|
15
|
+
* image as a small preview, any other file as a compact chip, each opening in the artifact panel.
|
|
16
|
+
*/
|
|
17
|
+
export function ViewFileToolView({ tool }: { tool: NormalizedTool }) {
|
|
18
|
+
const messages = useAgentMessages().viewFile
|
|
19
|
+
const { target, file } = describeViewFile(tool)
|
|
20
|
+
const running = tool.state === "input-streaming" || tool.state === "input-available"
|
|
21
|
+
const label =
|
|
22
|
+
tool.state === "output-error"
|
|
23
|
+
? messages.failed(target)
|
|
24
|
+
: running
|
|
25
|
+
? messages.running(target)
|
|
26
|
+
: messages.title(target)
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<div className="min-w-0 space-y-1.5">
|
|
30
|
+
<div className="flex w-fit max-w-full items-center gap-1.5 text-[13px] leading-normal text-muted-foreground">
|
|
31
|
+
<Eye className="size-3.5 shrink-0" />
|
|
32
|
+
{running ? (
|
|
33
|
+
<ActivityStatusText label={label} className="font-medium shimmer" />
|
|
34
|
+
) : (
|
|
35
|
+
<span className="min-w-0 truncate font-medium">{label}</span>
|
|
36
|
+
)}
|
|
37
|
+
</div>
|
|
38
|
+
{file && tool.state === "output-available" ? (
|
|
39
|
+
<div className="pl-5">
|
|
40
|
+
<ViewedFile file={file} />
|
|
41
|
+
</div>
|
|
42
|
+
) : null}
|
|
43
|
+
</div>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function ViewedFile({ file }: { file: NormalizedFile }) {
|
|
48
|
+
const messages = useAgentMessages().files
|
|
49
|
+
const locale = useLocale()
|
|
50
|
+
const { fileRef, source } = file
|
|
51
|
+
const name = fileRef.fileName?.trim() || messages.file
|
|
52
|
+
|
|
53
|
+
if (source && fileView(fileRef) === "image") {
|
|
54
|
+
return (
|
|
55
|
+
<OpenFile file={file} name={name}>
|
|
56
|
+
<img
|
|
57
|
+
src={source.inlineUrl}
|
|
58
|
+
alt={name}
|
|
59
|
+
loading="lazy"
|
|
60
|
+
className="block h-auto max-h-28 w-auto max-w-[min(10rem,100%)] rounded-md border border-border/70 bg-muted/40 object-contain"
|
|
61
|
+
/>
|
|
62
|
+
</OpenFile>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<OpenFile file={file} name={name}>
|
|
68
|
+
<span className="inline-flex max-w-full items-center gap-1.5 rounded-md border border-border/70 bg-background px-2 py-1 text-xs text-muted-foreground">
|
|
69
|
+
<FileIcon className="size-3.5 shrink-0" />
|
|
70
|
+
<span className="min-w-0 truncate font-medium text-foreground/80">{name}</span>
|
|
71
|
+
<span className="shrink-0 text-muted-foreground/60">
|
|
72
|
+
{formatFileSize(fileRef.sizeBytes, locale, messages)}
|
|
73
|
+
</span>
|
|
74
|
+
</span>
|
|
75
|
+
</OpenFile>
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Open a saved file in the artifact panel, or in a new tab outside a conversation. */
|
|
80
|
+
function OpenFile({
|
|
81
|
+
file,
|
|
82
|
+
name,
|
|
83
|
+
children,
|
|
84
|
+
}: {
|
|
85
|
+
file: NormalizedFile
|
|
86
|
+
name: string
|
|
87
|
+
children: ReactNode
|
|
88
|
+
}) {
|
|
89
|
+
const panel = useArtifactPanel()
|
|
90
|
+
const messages = useAgentMessages()
|
|
91
|
+
const { source } = file
|
|
92
|
+
const className = cn(
|
|
93
|
+
"block w-fit max-w-full rounded-md outline-none transition-opacity focus-visible:ring-2 focus-visible:ring-ring",
|
|
94
|
+
source && "hover:opacity-80"
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
if (source && panel) {
|
|
98
|
+
return (
|
|
99
|
+
<button
|
|
100
|
+
type="button"
|
|
101
|
+
className={className}
|
|
102
|
+
onClick={() => panel.open({ type: "file", source })}
|
|
103
|
+
aria-label={messages.files.preview(name)}
|
|
104
|
+
>
|
|
105
|
+
{children}
|
|
106
|
+
</button>
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
if (source) {
|
|
110
|
+
return (
|
|
111
|
+
<a
|
|
112
|
+
href={source.inlineUrl}
|
|
113
|
+
target="_blank"
|
|
114
|
+
rel="noreferrer"
|
|
115
|
+
className={className}
|
|
116
|
+
aria-label={messages.viewFile.open(name)}
|
|
117
|
+
>
|
|
118
|
+
{children}
|
|
119
|
+
</a>
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
return <span className={className}>{children}</span>
|
|
123
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useNavigate, useParams, useSearchParams } from "react-router-dom"
|
|
2
|
+
import {
|
|
3
|
+
type ArtifactTarget,
|
|
4
|
+
artifactTargetFromSearch,
|
|
5
|
+
artifactTargetHref,
|
|
6
|
+
withArtifactTarget,
|
|
7
|
+
} from "./target"
|
|
8
|
+
import { Viewer } from "./viewer"
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* An artifact on its own page, at `/artifacts/:artifactId` with `?v=` and `?part=`: the whole
|
|
12
|
+
* window, over whatever shell the app draws, so a shared link opens just the artifact. It belongs
|
|
13
|
+
* to no section: whoever may read the artifact can open it, and a link to it works anywhere.
|
|
14
|
+
*/
|
|
15
|
+
export function ArtifactPage() {
|
|
16
|
+
const { artifactId } = useParams()
|
|
17
|
+
const [searchParams, setSearchParams] = useSearchParams()
|
|
18
|
+
const navigate = useNavigate()
|
|
19
|
+
if (!artifactId) return null
|
|
20
|
+
|
|
21
|
+
// The artifact is the path; the version and part are parameters.
|
|
22
|
+
const params = new URLSearchParams(searchParams)
|
|
23
|
+
params.set("artifact", artifactId)
|
|
24
|
+
const target: ArtifactTarget = artifactTargetFromSearch(params) ?? {
|
|
25
|
+
type: "artifact",
|
|
26
|
+
artifactId,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<div className="fixed inset-0 z-50 flex flex-col bg-background text-foreground">
|
|
31
|
+
<Viewer
|
|
32
|
+
target={target}
|
|
33
|
+
chrome={{
|
|
34
|
+
// Back to where the link was followed from, or into the app for a link opened cold.
|
|
35
|
+
onBack: () => (canGoBack() ? navigate(-1) : navigate("/")),
|
|
36
|
+
}}
|
|
37
|
+
// A version or part of this artifact replaces the address; it is the same page.
|
|
38
|
+
onTargetChange={(next) => {
|
|
39
|
+
if (next.type !== "artifact") return
|
|
40
|
+
const nextParams = withArtifactTarget(searchParams, next)
|
|
41
|
+
nextParams.delete("artifact")
|
|
42
|
+
setSearchParams(nextParams, { replace: true })
|
|
43
|
+
}}
|
|
44
|
+
// Another artifact is another page, so back returns to this one.
|
|
45
|
+
onOpenReference={(next) => navigate(artifactTargetHref(next))}
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** React Router numbers the entries it pushed; the first one has nowhere in the app to go back to. */
|
|
52
|
+
function canGoBack(): boolean {
|
|
53
|
+
const state: unknown = window.history.state
|
|
54
|
+
return (
|
|
55
|
+
typeof state === "object" &&
|
|
56
|
+
state !== null &&
|
|
57
|
+
"idx" in state &&
|
|
58
|
+
typeof state.idx === "number" &&
|
|
59
|
+
state.idx > 0
|
|
60
|
+
)
|
|
61
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@source "./**/*.{ts,tsx}";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* The document page, on top of the shared `.prose`: a measured reading column, a title block, and
|
|
5
|
+
* the parts a report needs. Theme tokens only, so the app's theme, dark mode, and an artifact's own
|
|
6
|
+
* `theme.json` all apply.
|
|
7
|
+
*/
|
|
8
|
+
.prose.sixb-document {
|
|
9
|
+
max-width: 70ch;
|
|
10
|
+
font-size: 1.0625rem;
|
|
11
|
+
line-height: 1.7;
|
|
12
|
+
text-wrap: pretty;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.prose.sixb-document .sixb-document-title {
|
|
16
|
+
margin: 0 0 1rem;
|
|
17
|
+
font-family: var(--font-serif);
|
|
18
|
+
font-size: clamp(2.25rem, 1.8rem + 1.6vw, 2.875rem);
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
letter-spacing: -0.015em;
|
|
21
|
+
line-height: 1.08;
|
|
22
|
+
text-wrap: balance;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.prose.sixb-document .sixb-document-lede {
|
|
26
|
+
margin: 0 0 2rem;
|
|
27
|
+
color: color-mix(in oklab, var(--foreground) 78%, var(--background));
|
|
28
|
+
font-size: 1.25rem;
|
|
29
|
+
line-height: 1.55;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.prose.sixb-document h2 {
|
|
33
|
+
margin-top: 3.25rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* The section anchor shows beside a heading the reader points at, and copies its address. */
|
|
37
|
+
.prose.sixb-document :is(h2, h3) {
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sixb-section-anchor {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
margin-left: 0.5rem;
|
|
44
|
+
padding: 0.125rem;
|
|
45
|
+
vertical-align: middle;
|
|
46
|
+
border-radius: calc(var(--radius) - 2px);
|
|
47
|
+
color: var(--muted-foreground);
|
|
48
|
+
opacity: 0;
|
|
49
|
+
transition: opacity 120ms ease;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sixb-section-anchor svg {
|
|
54
|
+
width: 1rem;
|
|
55
|
+
height: 1rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.prose.sixb-document :is(h2, h3):hover .sixb-section-anchor,
|
|
59
|
+
.sixb-section-anchor:focus-visible,
|
|
60
|
+
.sixb-section-anchor[data-copied] {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.prose.sixb-document figure {
|
|
65
|
+
margin: 2rem 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.prose.sixb-document figure img,
|
|
69
|
+
.prose.sixb-document p > img {
|
|
70
|
+
display: block;
|
|
71
|
+
margin-inline: auto;
|
|
72
|
+
border-radius: var(--radius);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.prose.sixb-document figcaption {
|
|
76
|
+
margin-top: 0.75rem;
|
|
77
|
+
color: var(--muted-foreground);
|
|
78
|
+
font-size: 0.8125rem;
|
|
79
|
+
line-height: 1.5;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sixb-callout {
|
|
83
|
+
display: flex;
|
|
84
|
+
gap: 0.75rem;
|
|
85
|
+
margin: 1.75rem 0;
|
|
86
|
+
padding: 0.875rem 1rem;
|
|
87
|
+
border-radius: var(--radius);
|
|
88
|
+
background: var(--muted);
|
|
89
|
+
font-size: 0.9375rem;
|
|
90
|
+
line-height: 1.6;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.sixb-callout[data-callout="warning"],
|
|
94
|
+
.sixb-callout[data-callout="caution"] {
|
|
95
|
+
background: color-mix(in oklch, var(--warning) 12%, var(--background));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sixb-callout-icon {
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
width: 1.125rem;
|
|
101
|
+
height: 1.125rem;
|
|
102
|
+
margin-top: 0.1875rem;
|
|
103
|
+
color: var(--muted-foreground);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.sixb-callout-body {
|
|
107
|
+
min-width: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.prose .sixb-callout-label {
|
|
111
|
+
margin: 0 0 0.25rem;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.prose .sixb-callout-body > :last-child {
|
|
116
|
+
margin-bottom: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.prose.sixb-document .sixb-numeric {
|
|
120
|
+
text-align: right;
|
|
121
|
+
font-variant-numeric: tabular-nums;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.prose.sixb-document table {
|
|
125
|
+
font-variant-numeric: tabular-nums;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.prose.sixb-document section[data-footnotes] {
|
|
129
|
+
margin-top: 3.5rem;
|
|
130
|
+
padding-top: 1.25rem;
|
|
131
|
+
border-top: 1px solid var(--border);
|
|
132
|
+
color: var(--muted-foreground);
|
|
133
|
+
font-size: 0.8125rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* An embed: another artifact shown inside a document or a reply, or filling a deck's box. It sets
|
|
137
|
+
its own table, link, and spacing rules over the host's prose. */
|
|
138
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) .sixb-embed-table {
|
|
139
|
+
margin: 0;
|
|
140
|
+
font-size: 13px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) .sixb-embed-table :is(th, td) {
|
|
144
|
+
padding: 7px 12px;
|
|
145
|
+
border-bottom: 1px solid color-mix(in oklab, var(--border) 65%, transparent);
|
|
146
|
+
white-space: nowrap;
|
|
147
|
+
text-align: left;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) .sixb-embed-table th {
|
|
151
|
+
font-size: 12px;
|
|
152
|
+
font-weight: 500;
|
|
153
|
+
color: var(--muted-foreground);
|
|
154
|
+
border-bottom-color: var(--border);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) .sixb-embed-table tr:last-child td {
|
|
158
|
+
border-bottom: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) .sixb-embed-table :is(th, td)[data-numeric] {
|
|
162
|
+
text-align: right;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) :is(.sixb-embed-card, .sixb-embed-source) {
|
|
166
|
+
font-weight: inherit;
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:is(.prose .sixb-embed, .sixb-embed-filled) .sixb-embed-section > .prose > :first-child {
|
|
171
|
+
margin-top: 0;
|
|
172
|
+
}
|