@sixb/app 0.1.11 → 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 +958 -2890
- package/dist/index.js.map +14 -13
- package/dist/locale-messages.d.ts +72 -6
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +73 -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/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 +24 -21
- 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 +61 -79
- package/src/createCustomApp.ts +155 -67
- package/src/index.ts +52 -16
- package/src/locale-messages.ts +121 -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/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/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/browser.ts +0 -2
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSyncOptions,
|
|
3
|
+
getSyncQueryKey,
|
|
4
|
+
listSyncRunsQueryKey,
|
|
5
|
+
listSyncsQueryKey,
|
|
6
|
+
requestSyncRunMutation,
|
|
7
|
+
} from "@sixb/client/hooks"
|
|
8
|
+
import { Button } from "@sixb/ui/components"
|
|
9
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
10
|
+
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
|
|
11
|
+
import { RefreshCw } from "lucide-react"
|
|
12
|
+
import { apiErrorMessage, useFormat } from "../section-ui"
|
|
13
|
+
import { useSyncLiveUpdates } from "./live-updates"
|
|
14
|
+
import { useDataMessages } from "./messages"
|
|
15
|
+
|
|
16
|
+
export interface SyncButtonProps {
|
|
17
|
+
/** The sync's id, as named in `syncs/`. */
|
|
18
|
+
readonly sync: string
|
|
19
|
+
/** Shows when it last synced, or that it failed, beside the button. A refused request shows either way. */
|
|
20
|
+
readonly showStatus?: boolean
|
|
21
|
+
readonly variant?: "default" | "outline" | "secondary" | "ghost"
|
|
22
|
+
readonly size?: "default" | "sm"
|
|
23
|
+
readonly className?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Starts a sync and shows it working until its run ends, for any page that shows synced data.
|
|
28
|
+
* People without the `run` grant on the sync see the request refused beside the button.
|
|
29
|
+
*/
|
|
30
|
+
export function SyncButton({
|
|
31
|
+
sync,
|
|
32
|
+
showStatus = false,
|
|
33
|
+
variant = "outline",
|
|
34
|
+
size = "sm",
|
|
35
|
+
className,
|
|
36
|
+
}: SyncButtonProps) {
|
|
37
|
+
const messages = useDataMessages().syncButton
|
|
38
|
+
const format = useFormat()
|
|
39
|
+
const queryClient = useQueryClient()
|
|
40
|
+
const path = { syncId: sync }
|
|
41
|
+
useSyncLiveUpdates({ syncId: sync })
|
|
42
|
+
|
|
43
|
+
const syncQuery = useQuery({
|
|
44
|
+
...getSyncOptions({ path }),
|
|
45
|
+
retry: false,
|
|
46
|
+
// Live updates refresh it as the run moves; polling covers a dropped event stream.
|
|
47
|
+
refetchInterval: (query) => {
|
|
48
|
+
const status = query.state.data?.latestRun?.status
|
|
49
|
+
return status === "queued" || status === "running" ? 5000 : false
|
|
50
|
+
},
|
|
51
|
+
})
|
|
52
|
+
const request = useMutation({
|
|
53
|
+
...requestSyncRunMutation(),
|
|
54
|
+
onSuccess: () =>
|
|
55
|
+
Promise.all([
|
|
56
|
+
queryClient.invalidateQueries({ queryKey: getSyncQueryKey({ path }) }),
|
|
57
|
+
queryClient.invalidateQueries({ queryKey: listSyncsQueryKey() }),
|
|
58
|
+
queryClient.invalidateQueries({ queryKey: listSyncRunsQueryKey() }),
|
|
59
|
+
]),
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
const latestRun = syncQuery.data?.latestRun ?? null
|
|
63
|
+
const working =
|
|
64
|
+
request.isPending || latestRun?.status === "queued" || latestRun?.status === "running"
|
|
65
|
+
|
|
66
|
+
let status: { readonly text: string; readonly failed: boolean } | null = null
|
|
67
|
+
if (request.isError) {
|
|
68
|
+
status = { text: apiErrorMessage(request.error, messages.requestFailed), failed: true }
|
|
69
|
+
} else if (!working && syncQuery.isSuccess) {
|
|
70
|
+
if (!latestRun) status = { text: messages.never, failed: false }
|
|
71
|
+
else if (latestRun.status === "failed") status = { text: messages.failed, failed: true }
|
|
72
|
+
else if (latestRun.status === "succeeded")
|
|
73
|
+
status = {
|
|
74
|
+
text: messages.synced(format.relative(latestRun.finishedAt ?? latestRun.queuedAt)),
|
|
75
|
+
failed: false,
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<div className={cn("inline-flex items-center gap-3", className)}>
|
|
81
|
+
{status && (showStatus || request.isError) ? (
|
|
82
|
+
<span
|
|
83
|
+
className={cn(
|
|
84
|
+
"text-[0.8125rem]",
|
|
85
|
+
status.failed ? "text-red-600 dark:text-red-400" : "text-muted-foreground"
|
|
86
|
+
)}
|
|
87
|
+
>
|
|
88
|
+
{status.text}
|
|
89
|
+
</span>
|
|
90
|
+
) : null}
|
|
91
|
+
<Button
|
|
92
|
+
type="button"
|
|
93
|
+
variant={variant}
|
|
94
|
+
size={size}
|
|
95
|
+
disabled={working}
|
|
96
|
+
onClick={() => request.mutate({ path, body: {} })}
|
|
97
|
+
>
|
|
98
|
+
<RefreshCw className={cn(working && "animate-spin")} />
|
|
99
|
+
{working ? messages.syncing : messages.syncNow}
|
|
100
|
+
</Button>
|
|
101
|
+
</div>
|
|
102
|
+
)
|
|
103
|
+
}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { getSyncOptions, listSyncRunsOptions, listSyncsOptions } from "@sixb/client/hooks"
|
|
2
|
+
import { useQuery } from "@tanstack/react-query"
|
|
3
|
+
import { CalendarClock, ChevronRight, RefreshCw } from "lucide-react"
|
|
4
|
+
import { Link, useParams } from "react-router-dom"
|
|
5
|
+
import { DetailFallback, SectionPage } from "../section-page"
|
|
6
|
+
import {
|
|
7
|
+
apiErrorMessage,
|
|
8
|
+
Facts,
|
|
9
|
+
FailureSummary,
|
|
10
|
+
formatDuration,
|
|
11
|
+
humanize,
|
|
12
|
+
isUnrecorded,
|
|
13
|
+
MetaDot,
|
|
14
|
+
PageSection,
|
|
15
|
+
Panel,
|
|
16
|
+
PanelEmpty,
|
|
17
|
+
PanelRow,
|
|
18
|
+
PanelSkeleton,
|
|
19
|
+
Pill,
|
|
20
|
+
RunStatusPill,
|
|
21
|
+
Stats,
|
|
22
|
+
UnrecordedHistory,
|
|
23
|
+
useFormat,
|
|
24
|
+
useNumbers,
|
|
25
|
+
useRunStatusLabels,
|
|
26
|
+
} from "../section-ui"
|
|
27
|
+
import { useSyncLiveUpdates } from "./live-updates"
|
|
28
|
+
import { useDataMessages } from "./messages"
|
|
29
|
+
import { SchemaPanel } from "./schema"
|
|
30
|
+
import { ConnectorIcon, ScheduleMeta } from "./shared"
|
|
31
|
+
import { SyncButton } from "./sync-button"
|
|
32
|
+
|
|
33
|
+
/** Data › Syncs: what copies each connector's data into the project, and how it last went. */
|
|
34
|
+
export function DataSyncsPage() {
|
|
35
|
+
const messages = useDataMessages()
|
|
36
|
+
const format = useFormat()
|
|
37
|
+
useSyncLiveUpdates()
|
|
38
|
+
const syncsQuery = useQuery({ ...listSyncsOptions(), retry: false })
|
|
39
|
+
const syncs = syncsQuery.data ?? []
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<SectionPage
|
|
43
|
+
section="data"
|
|
44
|
+
page="syncs"
|
|
45
|
+
title={messages.syncs.title}
|
|
46
|
+
description={messages.syncs.description}
|
|
47
|
+
>
|
|
48
|
+
<Panel>
|
|
49
|
+
{syncsQuery.isPending ? (
|
|
50
|
+
<PanelSkeleton rows={3} />
|
|
51
|
+
) : syncsQuery.isError ? (
|
|
52
|
+
<PanelEmpty
|
|
53
|
+
tone="error"
|
|
54
|
+
icon={RefreshCw}
|
|
55
|
+
title={messages.syncs.title}
|
|
56
|
+
description={apiErrorMessage(syncsQuery.error, messages.common.loadFailed)}
|
|
57
|
+
/>
|
|
58
|
+
) : syncs.length === 0 ? (
|
|
59
|
+
<PanelEmpty
|
|
60
|
+
icon={RefreshCw}
|
|
61
|
+
title={messages.syncs.emptyTitle}
|
|
62
|
+
description={messages.syncs.emptyDescription}
|
|
63
|
+
/>
|
|
64
|
+
) : (
|
|
65
|
+
syncs.map((sync) => (
|
|
66
|
+
<PanelRow
|
|
67
|
+
key={sync.id}
|
|
68
|
+
href={`/data/syncs/${encodeURIComponent(sync.id)}`}
|
|
69
|
+
leading={<ConnectorIcon type={sync.connector.type} />}
|
|
70
|
+
title={<span className="truncate">{humanize(sync.id)}</span>}
|
|
71
|
+
meta={
|
|
72
|
+
<>
|
|
73
|
+
<span>{messages.common.modes[sync.mode]}</span>
|
|
74
|
+
<MetaDot />
|
|
75
|
+
<span className="truncate">{messages.common.writes(sync.target.dataset.id)}</span>
|
|
76
|
+
{sync.triggers.map((trigger) => (
|
|
77
|
+
<ScheduleMeta key={trigger.scheduleId} id={trigger.scheduleId} />
|
|
78
|
+
))}
|
|
79
|
+
{sync.latestRun ? (
|
|
80
|
+
<>
|
|
81
|
+
<MetaDot />
|
|
82
|
+
<span>
|
|
83
|
+
{format.relative(sync.latestRun.startedAt ?? sync.latestRun.queuedAt)}
|
|
84
|
+
</span>
|
|
85
|
+
</>
|
|
86
|
+
) : null}
|
|
87
|
+
</>
|
|
88
|
+
}
|
|
89
|
+
trailing={
|
|
90
|
+
<>
|
|
91
|
+
{sync.latestRun ? (
|
|
92
|
+
<RunStatusPill status={sync.latestRun.status} />
|
|
93
|
+
) : (
|
|
94
|
+
<Pill tone="muted">{messages.common.neverRun}</Pill>
|
|
95
|
+
)}
|
|
96
|
+
<ChevronRight className="size-4 text-muted-foreground/60" />
|
|
97
|
+
</>
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
))
|
|
101
|
+
)}
|
|
102
|
+
</Panel>
|
|
103
|
+
</SectionPage>
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** One sync: run it, how its runs went, and what it writes. */
|
|
108
|
+
export function DataSyncPage() {
|
|
109
|
+
const statusLabels = useRunStatusLabels()
|
|
110
|
+
const messages = useDataMessages()
|
|
111
|
+
const format = useFormat()
|
|
112
|
+
const numbers = useNumbers()
|
|
113
|
+
const syncId = useParams().syncId ?? ""
|
|
114
|
+
// The page's SyncButton keeps this sync and its runs live.
|
|
115
|
+
const syncQuery = useQuery({ ...getSyncOptions({ path: { syncId } }), retry: false })
|
|
116
|
+
const runsQuery = useQuery({
|
|
117
|
+
...listSyncRunsOptions({ query: { syncId, limit: "20", order: "desc" } }),
|
|
118
|
+
retry: false,
|
|
119
|
+
// Polling covers a dropped event stream while a run is under way.
|
|
120
|
+
refetchInterval: (query) =>
|
|
121
|
+
query.state.data?.runs.some((run) => run.status === "queued" || run.status === "running")
|
|
122
|
+
? 5000
|
|
123
|
+
: false,
|
|
124
|
+
})
|
|
125
|
+
const sync = syncQuery.data
|
|
126
|
+
const back = { href: "/data/syncs", label: messages.syncs.title }
|
|
127
|
+
|
|
128
|
+
if (!sync) {
|
|
129
|
+
return (
|
|
130
|
+
<DetailFallback
|
|
131
|
+
section="data"
|
|
132
|
+
page="syncs"
|
|
133
|
+
back={back}
|
|
134
|
+
name={humanize(syncId)}
|
|
135
|
+
id={syncId}
|
|
136
|
+
icon={RefreshCw}
|
|
137
|
+
error={syncQuery.error}
|
|
138
|
+
/>
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const latestRun = sync.latestRun
|
|
143
|
+
// A failed latest run gets its own panel; its row leaves the failure out rather than repeat it.
|
|
144
|
+
const failedLatest = latestRun?.status === "failed" && latestRun.error ? latestRun : null
|
|
145
|
+
const dataset = sync.target.dataset
|
|
146
|
+
const datasetHref = `/data/datasets/${encodeURIComponent(dataset.id)}`
|
|
147
|
+
|
|
148
|
+
return (
|
|
149
|
+
<SectionPage
|
|
150
|
+
section="data"
|
|
151
|
+
page="syncs"
|
|
152
|
+
back={back}
|
|
153
|
+
icon={<ConnectorIcon type={sync.connector.type} size="lg" />}
|
|
154
|
+
title={humanize(sync.id)}
|
|
155
|
+
meta={
|
|
156
|
+
<>
|
|
157
|
+
{latestRun ? (
|
|
158
|
+
<RunStatusPill status={latestRun.status} />
|
|
159
|
+
) : (
|
|
160
|
+
<Pill tone="muted">{messages.common.neverRun}</Pill>
|
|
161
|
+
)}
|
|
162
|
+
<span>{messages.common.modes[sync.mode]}</span>
|
|
163
|
+
<MetaDot />
|
|
164
|
+
<Link to={datasetHref} className="hover:text-foreground hover:underline">
|
|
165
|
+
{messages.common.writes(dataset.id)}
|
|
166
|
+
</Link>
|
|
167
|
+
</>
|
|
168
|
+
}
|
|
169
|
+
actions={<SyncButton sync={sync.id} variant="default" />}
|
|
170
|
+
>
|
|
171
|
+
<Stats
|
|
172
|
+
items={[
|
|
173
|
+
{
|
|
174
|
+
label: messages.common.lastRun,
|
|
175
|
+
value: latestRun ? (
|
|
176
|
+
statusLabels[latestRun.status]
|
|
177
|
+
) : (
|
|
178
|
+
<span className="text-muted-foreground">{messages.common.neverRun}</span>
|
|
179
|
+
),
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
label: messages.common.started,
|
|
183
|
+
value: latestRun ? format.relative(latestRun.startedAt ?? latestRun.queuedAt) : "—",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: messages.common.took,
|
|
187
|
+
value: formatDuration(latestRun?.startedAt, latestRun?.finishedAt),
|
|
188
|
+
},
|
|
189
|
+
{ label: messages.syncs.rowsRead, value: numbers.count(latestRun?.rowsRead) },
|
|
190
|
+
]}
|
|
191
|
+
/>
|
|
192
|
+
|
|
193
|
+
{failedLatest?.error ? (
|
|
194
|
+
<PageSection title={messages.common.lastRunFailed}>
|
|
195
|
+
<Panel>
|
|
196
|
+
<div className="px-5 py-4">
|
|
197
|
+
<FailureSummary failure={failedLatest.error} />
|
|
198
|
+
</div>
|
|
199
|
+
</Panel>
|
|
200
|
+
</PageSection>
|
|
201
|
+
) : null}
|
|
202
|
+
|
|
203
|
+
<PageSection title={messages.common.runs} description={messages.common.runsDescription}>
|
|
204
|
+
<Panel>
|
|
205
|
+
{runsQuery.isPending ? (
|
|
206
|
+
<PanelSkeleton rows={3} />
|
|
207
|
+
) : runsQuery.isError ? (
|
|
208
|
+
isUnrecorded(runsQuery.error) ? (
|
|
209
|
+
<UnrecordedHistory what={messages.syncs.runWhat} />
|
|
210
|
+
) : (
|
|
211
|
+
<PanelEmpty
|
|
212
|
+
tone="error"
|
|
213
|
+
icon={RefreshCw}
|
|
214
|
+
title={messages.common.runs}
|
|
215
|
+
description={apiErrorMessage(runsQuery.error, messages.common.loadFailed)}
|
|
216
|
+
/>
|
|
217
|
+
)
|
|
218
|
+
) : runsQuery.data.runs.length === 0 ? (
|
|
219
|
+
<PanelEmpty icon={RefreshCw} title={messages.common.noRunsTitle} />
|
|
220
|
+
) : (
|
|
221
|
+
runsQuery.data.runs.map((run) => (
|
|
222
|
+
<PanelRow
|
|
223
|
+
key={run.id}
|
|
224
|
+
title={format.dateTime(run.startedAt ?? run.queuedAt)}
|
|
225
|
+
meta={
|
|
226
|
+
<>
|
|
227
|
+
<span>{messages.common.modes[run.mode]}</span>
|
|
228
|
+
{run.finishedAt ? (
|
|
229
|
+
<>
|
|
230
|
+
<MetaDot />
|
|
231
|
+
<span className="tabular-nums">
|
|
232
|
+
{formatDuration(run.startedAt, run.finishedAt)}
|
|
233
|
+
</span>
|
|
234
|
+
</>
|
|
235
|
+
) : null}
|
|
236
|
+
{run.rowsRead !== undefined ? (
|
|
237
|
+
<>
|
|
238
|
+
<MetaDot />
|
|
239
|
+
<span className="tabular-nums">
|
|
240
|
+
{messages.common.rows(run.rowsRead, numbers.count(run.rowsRead))}
|
|
241
|
+
</span>
|
|
242
|
+
</>
|
|
243
|
+
) : null}
|
|
244
|
+
{run.output ? (
|
|
245
|
+
<>
|
|
246
|
+
<MetaDot />
|
|
247
|
+
<Link
|
|
248
|
+
to={`${datasetHref}?version=${encodeURIComponent(run.output.versionId)}`}
|
|
249
|
+
className="font-mono text-xs hover:text-foreground hover:underline"
|
|
250
|
+
>
|
|
251
|
+
{run.output.versionId.slice(0, 12)}
|
|
252
|
+
</Link>
|
|
253
|
+
</>
|
|
254
|
+
) : null}
|
|
255
|
+
{run.commitMessage ? (
|
|
256
|
+
<>
|
|
257
|
+
<MetaDot />
|
|
258
|
+
<span className="truncate">{run.commitMessage}</span>
|
|
259
|
+
</>
|
|
260
|
+
) : null}
|
|
261
|
+
</>
|
|
262
|
+
}
|
|
263
|
+
trailing={<RunStatusPill status={run.status} />}
|
|
264
|
+
>
|
|
265
|
+
{run.error && run.id !== failedLatest?.id ? (
|
|
266
|
+
<FailureSummary failure={run.error} compact />
|
|
267
|
+
) : null}
|
|
268
|
+
</PanelRow>
|
|
269
|
+
))
|
|
270
|
+
)}
|
|
271
|
+
</Panel>
|
|
272
|
+
</PageSection>
|
|
273
|
+
|
|
274
|
+
<PageSection title={messages.common.details}>
|
|
275
|
+
<Panel>
|
|
276
|
+
<Facts
|
|
277
|
+
items={[
|
|
278
|
+
{
|
|
279
|
+
label: messages.syncs.connector,
|
|
280
|
+
value: (
|
|
281
|
+
<Link
|
|
282
|
+
to={`/data/connectors/${encodeURIComponent(sync.connector.id)}`}
|
|
283
|
+
className="hover:underline"
|
|
284
|
+
>
|
|
285
|
+
{humanize(sync.connector.id)}
|
|
286
|
+
</Link>
|
|
287
|
+
),
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
label: messages.syncs.dataset,
|
|
291
|
+
value: (
|
|
292
|
+
<Link to={datasetHref} className="font-mono text-xs hover:underline">
|
|
293
|
+
{dataset.id}
|
|
294
|
+
</Link>
|
|
295
|
+
),
|
|
296
|
+
},
|
|
297
|
+
{ label: messages.common.mode, value: messages.common.modes[sync.mode] },
|
|
298
|
+
...(sync.triggers.length > 0
|
|
299
|
+
? [
|
|
300
|
+
{
|
|
301
|
+
label: messages.common.schedules,
|
|
302
|
+
value: (
|
|
303
|
+
<span className="flex flex-wrap gap-1.5">
|
|
304
|
+
{sync.triggers.map((trigger) => (
|
|
305
|
+
<span
|
|
306
|
+
key={trigger.scheduleId}
|
|
307
|
+
className="inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-0.5 font-mono text-xs"
|
|
308
|
+
>
|
|
309
|
+
<CalendarClock className="size-3.5 text-muted-foreground" />
|
|
310
|
+
{trigger.scheduleId}
|
|
311
|
+
</span>
|
|
312
|
+
))}
|
|
313
|
+
</span>
|
|
314
|
+
),
|
|
315
|
+
},
|
|
316
|
+
]
|
|
317
|
+
: []),
|
|
318
|
+
]}
|
|
319
|
+
/>
|
|
320
|
+
</Panel>
|
|
321
|
+
</PageSection>
|
|
322
|
+
|
|
323
|
+
<SchemaPanel dataset={dataset} />
|
|
324
|
+
</SectionPage>
|
|
325
|
+
)
|
|
326
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { getAgentOptions } from "@sixb/client/hooks"
|
|
2
|
+
import { useQuery } from "@tanstack/react-query"
|
|
3
|
+
import { useState } from "react"
|
|
4
|
+
import { useNavigate } from "react-router-dom"
|
|
5
|
+
import { AgentChat } from "../agent/agent-chat"
|
|
6
|
+
import { useAppMessages } from "../locale"
|
|
7
|
+
import { readDocumentIdentity } from "../shell/brand"
|
|
8
|
+
import { Mosaic } from "./mosaic"
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The home page until a project adds `app/page.tsx`: a conversation with the project's agent that
|
|
12
|
+
* continues on the agent's own page once sent. Without an agent it shows the app's name.
|
|
13
|
+
*/
|
|
14
|
+
export function HomePage() {
|
|
15
|
+
const navigate = useNavigate()
|
|
16
|
+
const agent = useQuery(getAgentOptions())
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
// The page's height inside a shell, or the viewport's when the layout adds no frame.
|
|
20
|
+
<div className="relative flex h-dvh max-h-full min-h-0 flex-col overflow-hidden">
|
|
21
|
+
<div className="pointer-events-none absolute inset-x-0 bottom-0 hidden md:block">
|
|
22
|
+
<Mosaic />
|
|
23
|
+
</div>
|
|
24
|
+
{agent.isPending ? null : agent.data ? (
|
|
25
|
+
<AgentChat
|
|
26
|
+
className="relative z-10 min-h-0 flex-1"
|
|
27
|
+
threadId={null}
|
|
28
|
+
welcomeContent={<Welcome />}
|
|
29
|
+
onNavigateHome={() => navigate("/")}
|
|
30
|
+
onNavigateThread={(threadId) => navigate(`/agents/${encodeURIComponent(threadId)}`)}
|
|
31
|
+
/>
|
|
32
|
+
) : (
|
|
33
|
+
<Empty />
|
|
34
|
+
)}
|
|
35
|
+
</div>
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function Welcome() {
|
|
40
|
+
const messages = useAppMessages().home
|
|
41
|
+
return (
|
|
42
|
+
<div className="mx-auto flex max-w-2xl flex-col items-center gap-4 text-center">
|
|
43
|
+
<h1 className="text-4xl leading-none font-semibold tracking-tight md:text-5xl">
|
|
44
|
+
{messages.title}
|
|
45
|
+
<br />
|
|
46
|
+
<span className="text-muted-foreground">{messages.subtitle}</span>
|
|
47
|
+
</h1>
|
|
48
|
+
<p className="max-w-[46ch] text-base text-muted-foreground">{messages.description}</p>
|
|
49
|
+
</div>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function Empty() {
|
|
54
|
+
const messages = useAppMessages().home
|
|
55
|
+
const [identity] = useState(readDocumentIdentity)
|
|
56
|
+
return (
|
|
57
|
+
<div className="relative z-10 flex flex-1 flex-col items-center justify-center gap-3 px-6 pb-[25vh] text-center">
|
|
58
|
+
<h1 className="text-4xl leading-none font-semibold tracking-tight md:text-5xl">
|
|
59
|
+
{identity.title}
|
|
60
|
+
</h1>
|
|
61
|
+
<p className="text-base text-muted-foreground">{messages.empty}</p>
|
|
62
|
+
</div>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { CSSProperties } from "react"
|
|
2
|
+
|
|
3
|
+
const COLUMNS = 96
|
|
4
|
+
const ROWS = 24
|
|
5
|
+
const BLOCK = 8
|
|
6
|
+
|
|
7
|
+
// Brand blue, mixed into the page background so the mosaic suits light and dark themes.
|
|
8
|
+
const TONES = [8, 18, 38, 68, 100].map(
|
|
9
|
+
(percent) => `color-mix(in oklch, #007aff ${percent}%, var(--background))`
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
interface Cell {
|
|
13
|
+
readonly column: number
|
|
14
|
+
readonly row: number
|
|
15
|
+
readonly size: number
|
|
16
|
+
readonly tone: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Blue blocks rising from the bottom edge, highest at the sides; drawn once, the same every time. */
|
|
20
|
+
export function Mosaic({ className }: { readonly className?: string }) {
|
|
21
|
+
return (
|
|
22
|
+
<div
|
|
23
|
+
aria-hidden="true"
|
|
24
|
+
className={className}
|
|
25
|
+
style={{
|
|
26
|
+
display: "grid",
|
|
27
|
+
gridTemplateColumns: `repeat(${COLUMNS}, minmax(0, 1fr))`,
|
|
28
|
+
gridTemplateRows: `repeat(${ROWS}, minmax(0, 1fr))`,
|
|
29
|
+
aspectRatio: `${COLUMNS} / ${ROWS}`,
|
|
30
|
+
gap: "1px",
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
{CELLS.map((cell) => (
|
|
34
|
+
<span key={`${cell.column}-${cell.row}`} style={cellStyle(cell)} />
|
|
35
|
+
))}
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function cellStyle(cell: Cell): CSSProperties {
|
|
41
|
+
return {
|
|
42
|
+
gridColumn: `${cell.column + 1} / span ${cell.size}`,
|
|
43
|
+
gridRow: `${cell.row + 1} / span ${cell.size}`,
|
|
44
|
+
background: cell.tone,
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const CELLS = buildCells()
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A quadtree over the grid: blocks below the surface stay whole where they are deep, split as they
|
|
52
|
+
* near it, and darken with depth. A seeded hash adds a few extra splits, so the result is fixed.
|
|
53
|
+
*/
|
|
54
|
+
function buildCells(): Cell[] {
|
|
55
|
+
// Row where the blocks begin in each column: a valley in the middle under the composer.
|
|
56
|
+
const surface = Array.from({ length: COLUMNS }, (_, x) => {
|
|
57
|
+
const valley = Math.exp(-(((x - 47.5) / 21) ** 2))
|
|
58
|
+
return Math.round(4 + 10.5 * valley + 1.4 * Math.sin(x * 0.37) + 0.9 * Math.sin(x * 0.13 + 1.2))
|
|
59
|
+
})
|
|
60
|
+
const cells: Cell[] = []
|
|
61
|
+
|
|
62
|
+
const visit = (column: number, row: number, size: number) => {
|
|
63
|
+
let shallowest = Number.POSITIVE_INFINITY
|
|
64
|
+
let deepest = Number.NEGATIVE_INFINITY
|
|
65
|
+
for (let x = column; x < column + size; x++) {
|
|
66
|
+
const top = surface[x] ?? 0
|
|
67
|
+
shallowest = Math.min(shallowest, row - top)
|
|
68
|
+
deepest = Math.max(deepest, row + size - 1 - top)
|
|
69
|
+
}
|
|
70
|
+
if (deepest < 0) return
|
|
71
|
+
|
|
72
|
+
const allowed = shallowest >= 9 ? 8 : shallowest >= 5 ? 4 : shallowest >= 2 ? 2 : 1
|
|
73
|
+
if (size > 1 && (shallowest < 0 || size > allowed || noise(column, row, size) < 0.16)) {
|
|
74
|
+
const half = size / 2
|
|
75
|
+
visit(column, row, half)
|
|
76
|
+
visit(column + half, row, half)
|
|
77
|
+
visit(column, row + half, half)
|
|
78
|
+
visit(column + half, row + half, half)
|
|
79
|
+
return
|
|
80
|
+
}
|
|
81
|
+
if (shallowest < 0) return
|
|
82
|
+
|
|
83
|
+
const depth = shallowest + (size - 1) / 2
|
|
84
|
+
const tone = depth < 1 ? 0 : depth < 2.5 ? 1 : depth < 5 ? 2 : depth < 9 ? 3 : 4
|
|
85
|
+
cells.push({ column, row, size, tone: TONES[tone] ?? TONES[0] ?? "" })
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
for (let row = 0; row < ROWS; row += BLOCK) {
|
|
89
|
+
for (let column = 0; column < COLUMNS; column += BLOCK) visit(column, row, BLOCK)
|
|
90
|
+
}
|
|
91
|
+
return cells
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function noise(a: number, b: number, c: number): number {
|
|
95
|
+
const n = Math.sin(a * 12.9898 + b * 78.233 + c * 37.719) * 43758.5453
|
|
96
|
+
return n - Math.floor(n)
|
|
97
|
+
}
|