@sixb/app 0.1.10 → 0.1.12
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 +25 -19
- 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 +24 -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 +27 -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/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 +13 -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/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/document-preview/classify.d.ts +4 -0
- package/dist/agent/document-preview/classify.d.ts.map +1 -0
- package/dist/agent/document-preview/content-policy.d.ts +10 -0
- package/dist/agent/document-preview/content-policy.d.ts.map +1 -0
- package/dist/agent/document-preview/content.d.ts +26 -0
- package/dist/agent/document-preview/content.d.ts.map +1 -0
- package/dist/agent/document-preview/delimited.d.ts +19 -0
- package/dist/agent/document-preview/delimited.d.ts.map +1 -0
- package/dist/agent/document-preview/document-preview-root.d.ts +24 -0
- package/dist/agent/document-preview/document-preview-root.d.ts.map +1 -0
- package/dist/agent/document-preview/file-size.d.ts +3 -0
- package/dist/agent/document-preview/file-size.d.ts.map +1 -0
- package/dist/agent/document-preview/html.d.ts +9 -0
- package/dist/agent/document-preview/html.d.ts.map +1 -0
- package/dist/agent/document-preview/persistence.d.ts +6 -0
- package/dist/agent/document-preview/persistence.d.ts.map +1 -0
- package/dist/agent/document-preview/presentation.d.ts +3 -0
- package/dist/agent/document-preview/presentation.d.ts.map +1 -0
- package/dist/agent/document-preview/rendering.d.ts +14 -0
- package/dist/agent/document-preview/rendering.d.ts.map +1 -0
- package/dist/agent/document-preview/source.d.ts +13 -0
- package/dist/agent/document-preview/source.d.ts.map +1 -0
- package/dist/agent/document-preview/state.d.ts +27 -0
- package/dist/agent/document-preview/state.d.ts.map +1 -0
- package/dist/agent/document-preview/types.d.ts +33 -0
- package/dist/agent/document-preview/types.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 +338 -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 +589 -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 +1161 -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/react-router.d.ts +8 -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/agent/workspace.d.ts +11 -0
- package/dist/agent/workspace.d.ts.map +1 -0
- package/dist/chunk-3a99tmwg.js +176 -0
- package/dist/chunk-3a99tmwg.js.map +10 -0
- package/dist/chunk-48pkffj6.js +20 -0
- package/dist/chunk-48pkffj6.js.map +10 -0
- package/dist/chunk-6n5pdqp0.js +115 -0
- package/dist/chunk-6n5pdqp0.js.map +11 -0
- package/dist/chunk-j97e06rg.js +10668 -0
- package/dist/chunk-j97e06rg.js.map +80 -0
- package/dist/chunk-md3p7qdt.js +379 -0
- package/dist/chunk-md3p7qdt.js.map +10 -0
- package/dist/chunk-shmw3f8t.js +251 -0
- package/dist/chunk-shmw3f8t.js.map +10 -0
- package/dist/chunk-yvhzn4ye.js +98 -0
- package/dist/chunk-yvhzn4ye.js.map +10 -0
- package/dist/chunk-zcxrt24m.js +148 -0
- package/dist/chunk-zcxrt24m.js.map +10 -0
- package/dist/codegen.d.ts +6 -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 +33 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +955 -2784
- package/dist/index.js.map +14 -13
- package/dist/locale-messages.d.ts +103 -0
- package/dist/locale-messages.d.ts.map +1 -0
- package/dist/locale.d.ts +111 -0
- package/dist/locale.d.ts.map +1 -0
- package/dist/locale.js +15 -0
- package/dist/{auth.js.map → locale.js.map} +1 -1
- 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/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 +19 -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 +211 -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 +42 -0
- package/dist/pages.d.ts.map +1 -0
- package/dist/pages.js +23931 -0
- package/dist/pages.js.map +85 -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 +2983 -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 +29 -20
- package/src/agent/activity-label.ts +63 -0
- package/src/agent/agent-chat.tsx +237 -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 +79 -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/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 +137 -0
- package/src/agent/components/message-parts.tsx +280 -0
- package/src/agent/components/message-view.tsx +428 -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/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/document-preview/classify.ts +55 -0
- package/src/agent/document-preview/content-policy.ts +37 -0
- package/src/agent/document-preview/content.ts +82 -0
- package/src/agent/document-preview/delimited.ts +118 -0
- package/src/agent/document-preview/document-preview-root.tsx +1017 -0
- package/src/agent/document-preview/file-size.ts +26 -0
- package/src/agent/document-preview/html.ts +67 -0
- package/src/agent/document-preview/persistence.ts +115 -0
- package/src/agent/document-preview/presentation.ts +13 -0
- package/src/agent/document-preview/rendering.ts +48 -0
- package/src/agent/document-preview/source.ts +48 -0
- package/src/agent/document-preview/state.ts +77 -0
- package/src/agent/document-preview/types.ts +36 -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 +542 -0
- package/src/agent/i18n/fr.ts +574 -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/react-router.tsx +84 -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 +120 -0
- package/src/{agents.ts → agent/workspace.ts} +4 -19
- package/src/codegen.ts +187 -103
- package/src/createCustomApp.ts +155 -67
- package/src/index.ts +52 -16
- package/src/locale-messages.ts +181 -0
- package/src/locale.ts +23 -0
- 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/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 +48 -0
- package/src/pages/section-page.tsx +272 -0
- package/src/pages/section-ui.tsx +771 -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 +56 -0
- package/src/runtime.ts +0 -3
- package/src/sections/catalog.ts +181 -0
- package/src/sections/counts.ts +33 -0
- package/src/sections/sections.tsx +257 -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 +158 -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/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-e1gj8c1a.js +0 -8
- package/dist/chunk-e1gj8c1a.js.map +0 -10
- package/src/browser.ts +0 -2
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HoverCard,
|
|
3
|
+
HoverCardContent,
|
|
4
|
+
HoverCardTrigger,
|
|
5
|
+
Popover,
|
|
6
|
+
PopoverContent,
|
|
7
|
+
PopoverTrigger,
|
|
8
|
+
} from "@sixb/ui/components"
|
|
9
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
10
|
+
import { Check, Info } from "lucide-react"
|
|
11
|
+
import { useId, useState } from "react"
|
|
12
|
+
import { useAgentMessages } from "../i18n"
|
|
13
|
+
import type { LanguageModel } from "../types"
|
|
14
|
+
import { ProviderLogo } from "./provider-logo"
|
|
15
|
+
|
|
16
|
+
export function ModelPickerRow({
|
|
17
|
+
model,
|
|
18
|
+
selected,
|
|
19
|
+
disabled,
|
|
20
|
+
onSelect,
|
|
21
|
+
}: {
|
|
22
|
+
model: LanguageModel
|
|
23
|
+
selected: boolean
|
|
24
|
+
disabled?: boolean
|
|
25
|
+
onSelect: (model: LanguageModel) => void
|
|
26
|
+
}) {
|
|
27
|
+
const messages = useAgentMessages().models
|
|
28
|
+
const [detailsOpen, setDetailsOpen] = useState(false)
|
|
29
|
+
const detailsId = useId()
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div className={cn("flex items-center rounded-lg", selected && "bg-muted/60")}>
|
|
33
|
+
<HoverCard open={detailsOpen} onOpenChange={setDetailsOpen} openDelay={350} closeDelay={150}>
|
|
34
|
+
<HoverCardTrigger asChild>
|
|
35
|
+
<button
|
|
36
|
+
type="button"
|
|
37
|
+
disabled={disabled}
|
|
38
|
+
aria-pressed={selected}
|
|
39
|
+
aria-describedby={detailsOpen ? detailsId : undefined}
|
|
40
|
+
onFocus={(event) => {
|
|
41
|
+
if (!event.currentTarget.matches(":focus-visible")) event.preventDefault()
|
|
42
|
+
}}
|
|
43
|
+
onClick={() => {
|
|
44
|
+
setDetailsOpen(false)
|
|
45
|
+
onSelect(model)
|
|
46
|
+
}}
|
|
47
|
+
className="flex min-w-0 flex-1 items-center gap-2.5 rounded-lg px-2.5 py-2.5 text-left outline-none transition-colors hover:bg-muted/70 focus-visible:bg-muted focus-visible:ring-2 focus-visible:ring-ring/40 disabled:opacity-50"
|
|
48
|
+
>
|
|
49
|
+
<ProviderLogo model={model} className="size-5" />
|
|
50
|
+
<span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
|
|
51
|
+
{model.name}
|
|
52
|
+
</span>
|
|
53
|
+
<span className="flex size-5 shrink-0 items-center justify-center">
|
|
54
|
+
{selected ? <Check className="size-4 text-foreground" aria-hidden="true" /> : null}
|
|
55
|
+
</span>
|
|
56
|
+
</button>
|
|
57
|
+
</HoverCardTrigger>
|
|
58
|
+
<HoverCardContent
|
|
59
|
+
id={detailsId}
|
|
60
|
+
role="tooltip"
|
|
61
|
+
side="right"
|
|
62
|
+
align="start"
|
|
63
|
+
sideOffset={12}
|
|
64
|
+
collisionPadding={8}
|
|
65
|
+
onEscapeKeyDown={(event) => {
|
|
66
|
+
event.stopPropagation()
|
|
67
|
+
setDetailsOpen(false)
|
|
68
|
+
}}
|
|
69
|
+
className="w-72 max-w-[calc(100vw-1rem)] rounded-2xl border-border/60 p-4 shadow-xl shadow-black/10"
|
|
70
|
+
>
|
|
71
|
+
<ModelDetails model={model} />
|
|
72
|
+
</HoverCardContent>
|
|
73
|
+
</HoverCard>
|
|
74
|
+
<Popover>
|
|
75
|
+
<PopoverTrigger asChild>
|
|
76
|
+
<button
|
|
77
|
+
type="button"
|
|
78
|
+
disabled={disabled}
|
|
79
|
+
aria-label={messages.details(model.name)}
|
|
80
|
+
className="mr-1 hidden size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 disabled:opacity-50 [@media(pointer:coarse)]:flex"
|
|
81
|
+
>
|
|
82
|
+
<Info className="size-3.5" aria-hidden="true" />
|
|
83
|
+
</button>
|
|
84
|
+
</PopoverTrigger>
|
|
85
|
+
<PopoverContent
|
|
86
|
+
side="top"
|
|
87
|
+
align="end"
|
|
88
|
+
sideOffset={8}
|
|
89
|
+
collisionPadding={8}
|
|
90
|
+
aria-label={messages.details(model.name)}
|
|
91
|
+
className="w-72 max-w-[calc(100vw-1rem)] rounded-2xl border-border/60 p-4 shadow-xl shadow-black/10"
|
|
92
|
+
>
|
|
93
|
+
<ModelDetails model={model} />
|
|
94
|
+
</PopoverContent>
|
|
95
|
+
</Popover>
|
|
96
|
+
</div>
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function ModelDetails({ model }: { model: LanguageModel }) {
|
|
101
|
+
const messages = useAgentMessages().models
|
|
102
|
+
const capabilities = [
|
|
103
|
+
model.capabilities.input.includes("image") && messages.images,
|
|
104
|
+
model.capabilities.input.includes("pdf") && messages.pdf,
|
|
105
|
+
model.capabilities.input.includes("audio") && messages.audio,
|
|
106
|
+
model.capabilities.input.includes("video") && messages.video,
|
|
107
|
+
model.capabilities.tools && messages.tools,
|
|
108
|
+
model.capabilities.reasoning && messages.reasoning,
|
|
109
|
+
].filter(Boolean)
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<div className="space-y-3">
|
|
113
|
+
<div className="flex items-start gap-2.5">
|
|
114
|
+
<ProviderLogo model={model} className="mt-0.5 size-5" />
|
|
115
|
+
<p className="min-w-0 text-sm font-medium leading-5 text-foreground">{model.name}</p>
|
|
116
|
+
</div>
|
|
117
|
+
{model.description ? (
|
|
118
|
+
<p className="line-clamp-3 text-xs leading-5 text-muted-foreground">{model.description}</p>
|
|
119
|
+
) : null}
|
|
120
|
+
{model.capabilities.contextWindowTokens ? (
|
|
121
|
+
<div className="flex items-baseline justify-between gap-3 text-xs">
|
|
122
|
+
<span className="text-muted-foreground">{messages.contextWindow}</span>
|
|
123
|
+
<span className="text-foreground">
|
|
124
|
+
{messages.tokens(model.capabilities.contextWindowTokens)}
|
|
125
|
+
</span>
|
|
126
|
+
</div>
|
|
127
|
+
) : null}
|
|
128
|
+
{capabilities.length > 0 ? (
|
|
129
|
+
<p className="text-xs leading-5 text-muted-foreground">{capabilities.join(" · ")}</p>
|
|
130
|
+
) : null}
|
|
131
|
+
{model.via ? (
|
|
132
|
+
<p className="text-[11px] text-muted-foreground/70">{messages.via(model.via)}</p>
|
|
133
|
+
) : null}
|
|
134
|
+
</div>
|
|
135
|
+
)
|
|
136
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
2
|
+
import type { LanguageModel } from "../types"
|
|
3
|
+
import { providerLogoPath } from "./provider-logos"
|
|
4
|
+
|
|
5
|
+
export function ProviderLogo({ model, className }: { model: LanguageModel; className?: string }) {
|
|
6
|
+
const path = providerLogoPath(model.publisher.id)
|
|
7
|
+
if (path) {
|
|
8
|
+
return (
|
|
9
|
+
<svg
|
|
10
|
+
viewBox="0 0 24 24"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
fillRule="evenodd"
|
|
13
|
+
className={cn("shrink-0 text-foreground", className)}
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
>
|
|
16
|
+
<path d={path} />
|
|
17
|
+
</svg>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<span
|
|
23
|
+
className={cn(
|
|
24
|
+
"flex shrink-0 items-center justify-center text-xs font-bold text-foreground",
|
|
25
|
+
className
|
|
26
|
+
)}
|
|
27
|
+
>
|
|
28
|
+
{model.publisher.name.charAt(0).toUpperCase()}
|
|
29
|
+
</span>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** LobeHub icons, MIT; see this package's LICENSE. Source revision a94750e3f5f8fc33757b839d85030e742284e43a. */
|
|
2
|
+
const paths: Readonly<Record<string, string>> = {
|
|
3
|
+
google:
|
|
4
|
+
"M23 12.245c0-.905-.075-1.565-.236-2.25h-10.54v4.083h6.186c-.124 1.014-.797 2.542-2.294 3.569l-.021.136 3.332 2.53.23.022C21.779 18.417 23 15.593 23 12.245z M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z",
|
|
5
|
+
spacexai:
|
|
6
|
+
"M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z",
|
|
7
|
+
zai: "M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z",
|
|
8
|
+
meta: "M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z",
|
|
9
|
+
moonshotai:
|
|
10
|
+
"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z",
|
|
11
|
+
nvidia:
|
|
12
|
+
"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z",
|
|
13
|
+
openai:
|
|
14
|
+
"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z",
|
|
15
|
+
anthropic:
|
|
16
|
+
"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z",
|
|
17
|
+
deepseek:
|
|
18
|
+
"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Presentation assets only; unknown providers keep the initial fallback. */
|
|
22
|
+
export function providerLogoPath(publisherId: string): string | undefined {
|
|
23
|
+
return Object.hasOwn(paths, publisherId) ? paths[publisherId] : undefined
|
|
24
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { ModelReasoningLevel } from "@sixb/core/models"
|
|
2
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
3
|
+
import { RotateCcw } from "lucide-react"
|
|
4
|
+
import type { CSSProperties } from "react"
|
|
5
|
+
import { useAgentMessages } from "../i18n"
|
|
6
|
+
import { defaultReasoningLevel } from "../model-selection"
|
|
7
|
+
import type { LanguageModel } from "../types"
|
|
8
|
+
|
|
9
|
+
export function ReasoningEffortSlider({
|
|
10
|
+
model,
|
|
11
|
+
value,
|
|
12
|
+
disabled,
|
|
13
|
+
onChange,
|
|
14
|
+
onReset,
|
|
15
|
+
}: {
|
|
16
|
+
model: LanguageModel
|
|
17
|
+
value: ModelReasoningLevel
|
|
18
|
+
disabled?: boolean
|
|
19
|
+
onChange: (level: ModelReasoningLevel) => void
|
|
20
|
+
/** Return to the model's default reasoning. Defaults to selecting that level. */
|
|
21
|
+
onReset?: () => void
|
|
22
|
+
}) {
|
|
23
|
+
const messages = useAgentMessages().reasoning
|
|
24
|
+
const levels: readonly ModelReasoningLevel[] = model.reasoningLevels.filter(
|
|
25
|
+
(level) => level !== "provider-default" && level !== "none" && level !== "minimal"
|
|
26
|
+
)
|
|
27
|
+
const selectedIndex = levels.indexOf(value)
|
|
28
|
+
const index = Math.max(0, selectedIndex)
|
|
29
|
+
const lastIndex = Math.max(0, levels.length - 1)
|
|
30
|
+
const progress = lastIndex > 0 ? index / lastIndex : 0
|
|
31
|
+
const enhanced = value === "max"
|
|
32
|
+
const resetLevel = defaultReasoningLevel(model)
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<div>
|
|
36
|
+
<div className="relative flex min-h-6 items-center justify-between gap-2 pr-8">
|
|
37
|
+
<span className="text-xs text-muted-foreground">{messages.thinking}</span>
|
|
38
|
+
<div className="min-w-0 text-center">
|
|
39
|
+
<span
|
|
40
|
+
title={messages.descriptions[value]}
|
|
41
|
+
className={cn(
|
|
42
|
+
"text-sm font-medium",
|
|
43
|
+
enhanced ? "text-[#007aff] dark:text-[#9ec3ee]" : "text-primary"
|
|
44
|
+
)}
|
|
45
|
+
>
|
|
46
|
+
<span key={value} className="sixb-reasoning-label">
|
|
47
|
+
{messages.levels[value]}
|
|
48
|
+
</span>
|
|
49
|
+
</span>
|
|
50
|
+
</div>
|
|
51
|
+
<button
|
|
52
|
+
type="button"
|
|
53
|
+
disabled={disabled || value === resetLevel}
|
|
54
|
+
aria-label={messages.reset}
|
|
55
|
+
title={messages.useDefault}
|
|
56
|
+
onClick={() => {
|
|
57
|
+
if (onReset) onReset()
|
|
58
|
+
else if (resetLevel) onChange(resetLevel)
|
|
59
|
+
}}
|
|
60
|
+
className="absolute top-1/2 right-0 flex size-6 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground/60 outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 disabled:opacity-40"
|
|
61
|
+
>
|
|
62
|
+
<RotateCcw className="size-3.5" aria-hidden="true" />
|
|
63
|
+
</button>
|
|
64
|
+
</div>
|
|
65
|
+
<div
|
|
66
|
+
data-max={enhanced}
|
|
67
|
+
className="sixb-reasoning-slider"
|
|
68
|
+
hidden={levels.length === 0}
|
|
69
|
+
style={{ "--sixb-reasoning-progress": progress } as CSSProperties}
|
|
70
|
+
>
|
|
71
|
+
<div aria-hidden="true" className="sixb-reasoning-track">
|
|
72
|
+
<div className="sixb-reasoning-fill" />
|
|
73
|
+
<div className="sixb-reasoning-max">
|
|
74
|
+
<div className="sixb-reasoning-sparkles" />
|
|
75
|
+
</div>
|
|
76
|
+
<div className="sixb-reasoning-stops">
|
|
77
|
+
{levels.map((level, stop) => (
|
|
78
|
+
<span
|
|
79
|
+
key={level}
|
|
80
|
+
className="sixb-reasoning-stop"
|
|
81
|
+
data-filled={stop <= selectedIndex}
|
|
82
|
+
style={{ left: `${lastIndex > 0 ? (stop / lastIndex) * 100 : 0}%` }}
|
|
83
|
+
/>
|
|
84
|
+
))}
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<span aria-hidden="true" className="sixb-reasoning-thumb" />
|
|
88
|
+
<input
|
|
89
|
+
type="range"
|
|
90
|
+
min={0}
|
|
91
|
+
max={lastIndex}
|
|
92
|
+
step={1}
|
|
93
|
+
value={index}
|
|
94
|
+
disabled={disabled}
|
|
95
|
+
aria-label={messages.effort}
|
|
96
|
+
aria-valuetext={`${messages.levels[value]}: ${messages.descriptions[value]}`}
|
|
97
|
+
onChange={(event) => {
|
|
98
|
+
const level = levels[Number(event.target.value)]
|
|
99
|
+
if (level) onChange(level)
|
|
100
|
+
}}
|
|
101
|
+
onPointerUp={(event) => {
|
|
102
|
+
// The first stop selects its explicit effort when the current value has no stop.
|
|
103
|
+
const level = levels[Number(event.currentTarget.value)]
|
|
104
|
+
if (selectedIndex < 0 && level) onChange(level)
|
|
105
|
+
}}
|
|
106
|
+
onKeyDown={(event) => {
|
|
107
|
+
if (
|
|
108
|
+
selectedIndex < 0 &&
|
|
109
|
+
["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)
|
|
110
|
+
) {
|
|
111
|
+
event.preventDefault()
|
|
112
|
+
const level = levels[event.key === "End" ? lastIndex : 0]
|
|
113
|
+
if (level) onChange(level)
|
|
114
|
+
}
|
|
115
|
+
}}
|
|
116
|
+
className="sixb-reasoning-input focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-popover"
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
)
|
|
121
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AlertDialog,
|
|
3
|
+
AlertDialogAction,
|
|
4
|
+
AlertDialogCancel,
|
|
5
|
+
AlertDialogContent,
|
|
6
|
+
AlertDialogDescription,
|
|
7
|
+
AlertDialogFooter,
|
|
8
|
+
AlertDialogHeader,
|
|
9
|
+
AlertDialogTitle,
|
|
10
|
+
AlertDialogTrigger,
|
|
11
|
+
Button,
|
|
12
|
+
} from "@sixb/ui/components"
|
|
13
|
+
import { useAgentMessages } from "../i18n"
|
|
14
|
+
|
|
15
|
+
export function SandboxRecovery({
|
|
16
|
+
pending,
|
|
17
|
+
error,
|
|
18
|
+
onRecreate,
|
|
19
|
+
}: {
|
|
20
|
+
readonly pending: boolean
|
|
21
|
+
readonly error: boolean
|
|
22
|
+
readonly onRecreate: () => void
|
|
23
|
+
}) {
|
|
24
|
+
const messages = useAgentMessages().sandbox
|
|
25
|
+
return (
|
|
26
|
+
<div className="mx-auto w-full max-w-3xl px-4 py-3 text-sm" role="status">
|
|
27
|
+
<p className="font-medium">{messages.title}</p>
|
|
28
|
+
<p className="text-muted-foreground">{messages.description}</p>
|
|
29
|
+
{error && <p role="alert">{messages.recreateFailed}</p>}
|
|
30
|
+
<AlertDialog>
|
|
31
|
+
<AlertDialogTrigger asChild>
|
|
32
|
+
<Button className="mt-2" variant="outline" size="sm" disabled={pending}>
|
|
33
|
+
{pending ? messages.recreating : messages.startFresh}
|
|
34
|
+
</Button>
|
|
35
|
+
</AlertDialogTrigger>
|
|
36
|
+
<AlertDialogContent>
|
|
37
|
+
<AlertDialogHeader>
|
|
38
|
+
<AlertDialogTitle>{messages.confirmTitle}</AlertDialogTitle>
|
|
39
|
+
<AlertDialogDescription>{messages.confirmDescription}</AlertDialogDescription>
|
|
40
|
+
</AlertDialogHeader>
|
|
41
|
+
<AlertDialogFooter>
|
|
42
|
+
<AlertDialogCancel>{messages.cancel}</AlertDialogCancel>
|
|
43
|
+
<AlertDialogAction onClick={onRecreate}>{messages.create}</AlertDialogAction>
|
|
44
|
+
</AlertDialogFooter>
|
|
45
|
+
</AlertDialogContent>
|
|
46
|
+
</AlertDialog>
|
|
47
|
+
</div>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Bubble,
|
|
3
|
+
BubbleContent,
|
|
4
|
+
MessageScroller,
|
|
5
|
+
MessageScrollerButton,
|
|
6
|
+
MessageScrollerContent,
|
|
7
|
+
MessageScrollerItem,
|
|
8
|
+
MessageScrollerProvider,
|
|
9
|
+
MessageScrollerViewport,
|
|
10
|
+
} from "@sixb/ui/components"
|
|
11
|
+
import { memo, useMemo } from "react"
|
|
12
|
+
import { hasLiveContent, type LiveRunState } from "../live-run"
|
|
13
|
+
import type { AgentContextEntryInput, AgentFileRef, AgentMessage } from "../types"
|
|
14
|
+
import { ContextChips } from "./context-chips"
|
|
15
|
+
import {
|
|
16
|
+
LiveAssistant,
|
|
17
|
+
MessageView,
|
|
18
|
+
ReconnectingMarker,
|
|
19
|
+
RunCancelledMarker,
|
|
20
|
+
RunFailureMarker,
|
|
21
|
+
RunInterruptedMarker,
|
|
22
|
+
RunTimeoutMarker,
|
|
23
|
+
ThinkingMarker,
|
|
24
|
+
UserFileAttachment,
|
|
25
|
+
} from "./message-view"
|
|
26
|
+
|
|
27
|
+
export interface TranscriptProps {
|
|
28
|
+
readonly threadId: string | null
|
|
29
|
+
readonly messages: readonly AgentMessage[]
|
|
30
|
+
readonly live: LiveRunState
|
|
31
|
+
/** A just-sent user message echoed locally until durable state catches up. */
|
|
32
|
+
readonly pendingUserText?: string | null
|
|
33
|
+
readonly pendingUserAttachments?: readonly AgentFileRef[]
|
|
34
|
+
readonly pendingUserContext?: readonly AgentContextEntryInput[]
|
|
35
|
+
/** This client initiated the current turn, so keep the user prompt anchored while it streams. */
|
|
36
|
+
readonly anchorCurrentTurn?: boolean
|
|
37
|
+
/** A run is requested but the live stream hasn't produced content yet — show a thinking shimmer. */
|
|
38
|
+
readonly awaitingResponse?: boolean
|
|
39
|
+
/** The queued run has crossed the conversational delay threshold. */
|
|
40
|
+
readonly waitingLonger?: boolean
|
|
41
|
+
/** The newest run failed before it produced a durable assistant message. */
|
|
42
|
+
readonly failedBeforeResponse?: boolean
|
|
43
|
+
readonly cancelledBeforeResponse?: boolean
|
|
44
|
+
readonly timeout?: { readonly hasProgress: boolean; readonly timeoutMs?: number }
|
|
45
|
+
/** The newest run lost its worker mid-turn; without saved progress, its stream is not shown. */
|
|
46
|
+
readonly interrupted?: { readonly hasProgress: boolean }
|
|
47
|
+
readonly onRetry?: () => void
|
|
48
|
+
readonly onContinue?: () => void
|
|
49
|
+
readonly retrying?: boolean
|
|
50
|
+
readonly continuing?: boolean
|
|
51
|
+
/** The active run's stream dropped and is re-subscribing — surface a transient notice. */
|
|
52
|
+
readonly reconnecting?: boolean
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function Transcript({
|
|
56
|
+
threadId,
|
|
57
|
+
messages,
|
|
58
|
+
live,
|
|
59
|
+
pendingUserText,
|
|
60
|
+
pendingUserAttachments = [],
|
|
61
|
+
pendingUserContext = [],
|
|
62
|
+
anchorCurrentTurn,
|
|
63
|
+
awaitingResponse,
|
|
64
|
+
waitingLonger,
|
|
65
|
+
failedBeforeResponse,
|
|
66
|
+
cancelledBeforeResponse,
|
|
67
|
+
timeout,
|
|
68
|
+
interrupted,
|
|
69
|
+
onRetry,
|
|
70
|
+
onContinue,
|
|
71
|
+
retrying,
|
|
72
|
+
continuing,
|
|
73
|
+
reconnecting,
|
|
74
|
+
}: TranscriptProps) {
|
|
75
|
+
// Keep the live row until the finalized assistant message is present in durable state, so the
|
|
76
|
+
// handoff from streaming to stored content never flashes empty.
|
|
77
|
+
const finalizedInDurable =
|
|
78
|
+
live.finalizedMessageId !== null &&
|
|
79
|
+
messages.some((message) => message.id === live.finalizedMessageId)
|
|
80
|
+
const showLive =
|
|
81
|
+
hasLiveContent(live, live.runId) &&
|
|
82
|
+
!finalizedInDurable &&
|
|
83
|
+
!(interrupted && !interrupted.hasProgress)
|
|
84
|
+
const handoffPending = live.finalizedMessageId !== null && !finalizedInDurable
|
|
85
|
+
// Bridge the gap between sending and the first stream event with a standalone thinking shimmer.
|
|
86
|
+
const showThinking = Boolean(awaitingResponse) && !showLive && !finalizedInDurable
|
|
87
|
+
|
|
88
|
+
// A saved thread should open at the newest content, not at the first or last user turn. Only mark
|
|
89
|
+
// a user row as a scroll anchor while the current UI-initiated turn is in flight: the optimistic
|
|
90
|
+
// row anchors first, then the durable user row takes over once it replaces the optimistic echo.
|
|
91
|
+
const shouldAnchorCurrentTurn = Boolean(
|
|
92
|
+
anchorCurrentTurn &&
|
|
93
|
+
(pendingUserText ||
|
|
94
|
+
pendingUserAttachments.length > 0 ||
|
|
95
|
+
pendingUserContext.length > 0 ||
|
|
96
|
+
showLive ||
|
|
97
|
+
showThinking ||
|
|
98
|
+
handoffPending ||
|
|
99
|
+
live.finishStatus !== null)
|
|
100
|
+
)
|
|
101
|
+
const anchoredUserMessageId = useMemo(() => {
|
|
102
|
+
if (
|
|
103
|
+
pendingUserText ||
|
|
104
|
+
pendingUserAttachments.length > 0 ||
|
|
105
|
+
pendingUserContext.length > 0 ||
|
|
106
|
+
!shouldAnchorCurrentTurn
|
|
107
|
+
)
|
|
108
|
+
return null
|
|
109
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
110
|
+
if (messages[i].role === "user") return messages[i].id
|
|
111
|
+
}
|
|
112
|
+
return null
|
|
113
|
+
}, [
|
|
114
|
+
messages,
|
|
115
|
+
pendingUserText,
|
|
116
|
+
pendingUserAttachments.length,
|
|
117
|
+
pendingUserContext.length,
|
|
118
|
+
shouldAnchorCurrentTurn,
|
|
119
|
+
])
|
|
120
|
+
|
|
121
|
+
return (
|
|
122
|
+
// Let the message-scroller own the complete chat contract: open saved threads at the latest
|
|
123
|
+
// content, anchor a newly submitted prompt while the response fills the viewport, follow the
|
|
124
|
+
// live edge once appropriate, and release immediately on human scroll intent. The jump button
|
|
125
|
+
// explicitly resumes following after that override.
|
|
126
|
+
<MessageScrollerProvider key={threadId ?? "draft"} autoScroll defaultScrollPosition="end">
|
|
127
|
+
<MessageScroller className="flex-1">
|
|
128
|
+
<MessageScrollerViewport>
|
|
129
|
+
<MessageScrollerContent
|
|
130
|
+
aria-busy={live.active || showThinking}
|
|
131
|
+
className="mx-auto w-full max-w-3xl px-4 pt-12 pb-6"
|
|
132
|
+
>
|
|
133
|
+
{messages.map((message) => (
|
|
134
|
+
<TranscriptMessage
|
|
135
|
+
key={message.id}
|
|
136
|
+
message={message}
|
|
137
|
+
scrollAnchor={message.id === anchoredUserMessageId}
|
|
138
|
+
/>
|
|
139
|
+
))}
|
|
140
|
+
{pendingUserText ||
|
|
141
|
+
pendingUserAttachments.length > 0 ||
|
|
142
|
+
pendingUserContext.length > 0 ? (
|
|
143
|
+
<MessageScrollerItem messageId="pending-user" scrollAnchor>
|
|
144
|
+
<div className="flex flex-col items-end gap-1.5">
|
|
145
|
+
<ContextChips entries={pendingUserContext} className="justify-end" />
|
|
146
|
+
{pendingUserAttachments.length > 0 ? (
|
|
147
|
+
<div className="flex max-w-[min(80%,32rem)] flex-col items-end gap-1.5">
|
|
148
|
+
{pendingUserAttachments.map((fileRef, index) => (
|
|
149
|
+
<UserFileAttachment key={`${fileRef.blobId}-${index}`} fileRef={fileRef} />
|
|
150
|
+
))}
|
|
151
|
+
</div>
|
|
152
|
+
) : null}
|
|
153
|
+
{pendingUserText ? (
|
|
154
|
+
<Bubble variant="secondary" align="end">
|
|
155
|
+
<BubbleContent className="whitespace-pre-wrap">
|
|
156
|
+
{pendingUserText}
|
|
157
|
+
</BubbleContent>
|
|
158
|
+
</Bubble>
|
|
159
|
+
) : null}
|
|
160
|
+
</div>
|
|
161
|
+
</MessageScrollerItem>
|
|
162
|
+
) : null}
|
|
163
|
+
{showLive ? (
|
|
164
|
+
// The answer is not a turn anchor — it grows into the space below the anchored user
|
|
165
|
+
// message, so streaming never yanks the reader away from where the turn started.
|
|
166
|
+
<MessageScrollerItem messageId="live">
|
|
167
|
+
<LiveAssistant
|
|
168
|
+
live={live}
|
|
169
|
+
keepWorkOpen={handoffPending}
|
|
170
|
+
timeout={timeout}
|
|
171
|
+
interrupted={interrupted}
|
|
172
|
+
onRetry={onRetry}
|
|
173
|
+
onContinue={onContinue}
|
|
174
|
+
retrying={retrying}
|
|
175
|
+
continuing={continuing}
|
|
176
|
+
/>
|
|
177
|
+
</MessageScrollerItem>
|
|
178
|
+
) : showThinking ? (
|
|
179
|
+
<MessageScrollerItem messageId="thinking">
|
|
180
|
+
<ThinkingMarker takingLonger={waitingLonger} />
|
|
181
|
+
</MessageScrollerItem>
|
|
182
|
+
) : timeout ? (
|
|
183
|
+
<MessageScrollerItem messageId="run-timeout">
|
|
184
|
+
<RunTimeoutMarker
|
|
185
|
+
hasProgress={timeout.hasProgress}
|
|
186
|
+
timeoutMs={timeout.timeoutMs}
|
|
187
|
+
onRetry={onRetry}
|
|
188
|
+
onContinue={onContinue}
|
|
189
|
+
retrying={retrying}
|
|
190
|
+
continuing={continuing}
|
|
191
|
+
/>
|
|
192
|
+
</MessageScrollerItem>
|
|
193
|
+
) : interrupted ? (
|
|
194
|
+
<MessageScrollerItem messageId="run-interrupted">
|
|
195
|
+
<RunInterruptedMarker
|
|
196
|
+
hasProgress={interrupted.hasProgress}
|
|
197
|
+
onRetry={onRetry}
|
|
198
|
+
onContinue={onContinue}
|
|
199
|
+
retrying={retrying}
|
|
200
|
+
continuing={continuing}
|
|
201
|
+
/>
|
|
202
|
+
</MessageScrollerItem>
|
|
203
|
+
) : failedBeforeResponse ? (
|
|
204
|
+
<MessageScrollerItem messageId="run-failed">
|
|
205
|
+
<RunFailureMarker onRetry={onRetry} retrying={retrying} />
|
|
206
|
+
</MessageScrollerItem>
|
|
207
|
+
) : cancelledBeforeResponse ? (
|
|
208
|
+
<MessageScrollerItem messageId="run-cancelled">
|
|
209
|
+
<RunCancelledMarker />
|
|
210
|
+
</MessageScrollerItem>
|
|
211
|
+
) : null}
|
|
212
|
+
{live.active && reconnecting ? (
|
|
213
|
+
<MessageScrollerItem messageId="reconnecting">
|
|
214
|
+
<ReconnectingMarker />
|
|
215
|
+
</MessageScrollerItem>
|
|
216
|
+
) : null}
|
|
217
|
+
</MessageScrollerContent>
|
|
218
|
+
</MessageScrollerViewport>
|
|
219
|
+
<MessageScrollerButton />
|
|
220
|
+
</MessageScroller>
|
|
221
|
+
</MessageScrollerProvider>
|
|
222
|
+
)
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// A live chunk should only reconcile the transient assistant row. Completed rows can contain
|
|
226
|
+
// substantial Markdown, tables, and file previews, so keep their scroller wrappers stable too.
|
|
227
|
+
const TranscriptMessage = memo(function TranscriptMessage({
|
|
228
|
+
message,
|
|
229
|
+
scrollAnchor,
|
|
230
|
+
}: {
|
|
231
|
+
readonly message: AgentMessage
|
|
232
|
+
readonly scrollAnchor: boolean
|
|
233
|
+
}) {
|
|
234
|
+
return (
|
|
235
|
+
<MessageScrollerItem messageId={message.id} scrollAnchor={scrollAnchor}>
|
|
236
|
+
<MessageView message={message} />
|
|
237
|
+
</MessageScrollerItem>
|
|
238
|
+
)
|
|
239
|
+
})
|