@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,541 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ListAiModelCallGroupsResponse,
|
|
3
|
+
ListAiModelCallsData,
|
|
4
|
+
ListAiModelCallsResponse,
|
|
5
|
+
} from "@sixb/client"
|
|
6
|
+
import { listAiModelCallsOptions } from "@sixb/client/hooks"
|
|
7
|
+
import { Button } from "@sixb/ui/components"
|
|
8
|
+
import { useLocale } from "@sixb/ui/lib/i18n"
|
|
9
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
10
|
+
import { useQuery } from "@tanstack/react-query"
|
|
11
|
+
import { ArrowUpRight, Bot, ChevronRight, GitBranch, Layers, Workflow, Zap } from "lucide-react"
|
|
12
|
+
import { type ReactNode, useState } from "react"
|
|
13
|
+
import { Link } from "react-router-dom"
|
|
14
|
+
import { actionRunHref, workflowRunHref } from "../../routes"
|
|
15
|
+
import { PageSection, Panel, Pill, type Tone } from "../../section-ui"
|
|
16
|
+
import { formatMoney } from "./format"
|
|
17
|
+
import { type AiUsageMessages, useAiUsageMessages } from "./messages"
|
|
18
|
+
|
|
19
|
+
type Group = ListAiModelCallGroupsResponse["items"][number]
|
|
20
|
+
type Execution = Group["executions"][number]
|
|
21
|
+
type ModelCall = ListAiModelCallsResponse["items"][number]
|
|
22
|
+
export type CallFilters = Omit<ListAiModelCallsData["query"], "executionId" | "offset" | "limit">
|
|
23
|
+
|
|
24
|
+
export const callsPageSize = 25
|
|
25
|
+
|
|
26
|
+
const grid =
|
|
27
|
+
"grid grid-cols-[minmax(0,1fr)_7rem] items-center gap-x-4 md:grid-cols-[minmax(0,1fr)_10rem_4rem_8rem_8rem_9rem]"
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The model calls behind the charts, by execution: an agent's conversation, a workflow run, an
|
|
31
|
+
* action run. An execution that delegated to sub-agents opens onto each, then onto their calls.
|
|
32
|
+
*/
|
|
33
|
+
export function ModelCalls({
|
|
34
|
+
data,
|
|
35
|
+
filters,
|
|
36
|
+
loading,
|
|
37
|
+
error,
|
|
38
|
+
offset,
|
|
39
|
+
filterControl,
|
|
40
|
+
onPrevious,
|
|
41
|
+
onNext,
|
|
42
|
+
onRetry,
|
|
43
|
+
}: {
|
|
44
|
+
readonly data: ListAiModelCallGroupsResponse | undefined
|
|
45
|
+
readonly filters: CallFilters
|
|
46
|
+
readonly loading: boolean
|
|
47
|
+
readonly error: boolean
|
|
48
|
+
readonly offset: number
|
|
49
|
+
readonly filterControl: ReactNode
|
|
50
|
+
readonly onPrevious: () => void
|
|
51
|
+
readonly onNext: () => void
|
|
52
|
+
readonly onRetry: () => void
|
|
53
|
+
}) {
|
|
54
|
+
const messages = useAiUsageMessages().calls
|
|
55
|
+
const locale = useLocale()
|
|
56
|
+
const groups = data?.items ?? []
|
|
57
|
+
return (
|
|
58
|
+
<div id="ai-model-calls" className="scroll-mt-4">
|
|
59
|
+
<PageSection title={messages.title} description={messages.description} action={filterControl}>
|
|
60
|
+
<Panel
|
|
61
|
+
footer={
|
|
62
|
+
<div className="flex items-center justify-between gap-3">
|
|
63
|
+
<span className="tabular-nums">
|
|
64
|
+
{data?.total
|
|
65
|
+
? messages.executions(
|
|
66
|
+
(offset + 1).toLocaleString(locale),
|
|
67
|
+
Math.min(offset + groups.length, data.total).toLocaleString(locale),
|
|
68
|
+
data.total.toLocaleString(locale)
|
|
69
|
+
)
|
|
70
|
+
: messages.noExecutions}
|
|
71
|
+
</span>
|
|
72
|
+
<span className="flex gap-1">
|
|
73
|
+
<Button
|
|
74
|
+
type="button"
|
|
75
|
+
variant="ghost"
|
|
76
|
+
size="sm"
|
|
77
|
+
className="-my-1"
|
|
78
|
+
disabled={loading || offset === 0}
|
|
79
|
+
onClick={onPrevious}
|
|
80
|
+
>
|
|
81
|
+
{messages.previous}
|
|
82
|
+
</Button>
|
|
83
|
+
<Button
|
|
84
|
+
type="button"
|
|
85
|
+
variant="ghost"
|
|
86
|
+
size="sm"
|
|
87
|
+
className="-my-1"
|
|
88
|
+
disabled={loading || !data?.hasMore}
|
|
89
|
+
onClick={onNext}
|
|
90
|
+
>
|
|
91
|
+
{messages.next}
|
|
92
|
+
</Button>
|
|
93
|
+
</span>
|
|
94
|
+
</div>
|
|
95
|
+
}
|
|
96
|
+
>
|
|
97
|
+
<div
|
|
98
|
+
className={cn(
|
|
99
|
+
grid,
|
|
100
|
+
"hidden h-9 px-4 text-xs font-medium text-muted-foreground md:grid [&>*:nth-child(n+3)]:text-right"
|
|
101
|
+
)}
|
|
102
|
+
>
|
|
103
|
+
<span>{messages.execution}</span>
|
|
104
|
+
<span>{messages.columns.model}</span>
|
|
105
|
+
<span>{messages.columns.calls}</span>
|
|
106
|
+
<span>{messages.columns.usage}</span>
|
|
107
|
+
<span>{messages.columns.cost}</span>
|
|
108
|
+
<span className="text-left!">{messages.columns.valuation}</span>
|
|
109
|
+
</div>
|
|
110
|
+
{loading ? (
|
|
111
|
+
<Notice>{messages.loading}</Notice>
|
|
112
|
+
) : error ? (
|
|
113
|
+
<Notice onRetry={onRetry}>{messages.failed}</Notice>
|
|
114
|
+
) : groups.length === 0 ? (
|
|
115
|
+
<Notice>{messages.empty}</Notice>
|
|
116
|
+
) : (
|
|
117
|
+
groups.map((group) => (
|
|
118
|
+
<GroupRow key={group.executionId} group={group} filters={filters} />
|
|
119
|
+
))
|
|
120
|
+
)}
|
|
121
|
+
</Panel>
|
|
122
|
+
</PageSection>
|
|
123
|
+
</div>
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function groupLabel(group: Group, messages: AiUsageMessages["calls"]): string {
|
|
128
|
+
if (group.label) return group.label
|
|
129
|
+
const source = group.attribution
|
|
130
|
+
if (source?.kind === "agent") return messages.agent
|
|
131
|
+
if (source?.kind === "workflowAgent" || source?.kind === "workflow") {
|
|
132
|
+
return messages.workflow(source.workflowId)
|
|
133
|
+
}
|
|
134
|
+
if (source?.kind === "action") return messages.action(source.actionId)
|
|
135
|
+
if (source?.kind === "request") return messages.request(source.requestId)
|
|
136
|
+
return messages.execution
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// An agent conversation links only for someone who may read it; the server says who.
|
|
140
|
+
function groupHref(group: Group): string | undefined {
|
|
141
|
+
const source = group.attribution
|
|
142
|
+
if (source?.kind === "agent") {
|
|
143
|
+
return group.canOpenThread ? `/agents/${encodeURIComponent(source.threadId)}` : undefined
|
|
144
|
+
}
|
|
145
|
+
if (source?.kind === "workflowAgent" || source?.kind === "workflow") {
|
|
146
|
+
return workflowRunHref(source.workflowRunId)
|
|
147
|
+
}
|
|
148
|
+
if (source?.kind === "action") return actionRunHref(source.actionRunId)
|
|
149
|
+
return undefined
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function GroupRow({ group, filters }: { readonly group: Group; readonly filters: CallFilters }) {
|
|
153
|
+
const messages = useAiUsageMessages().calls
|
|
154
|
+
const format = useCallFormat()
|
|
155
|
+
const [open, setOpen] = useState(false)
|
|
156
|
+
const children = group.executions.filter(
|
|
157
|
+
(execution) => execution.executionId !== group.executionId
|
|
158
|
+
)
|
|
159
|
+
const direct = group.executions.find((execution) => execution.executionId === group.executionId)
|
|
160
|
+
const models = [
|
|
161
|
+
...new Map(
|
|
162
|
+
group.executions.flatMap((execution) =>
|
|
163
|
+
execution.models.map((model) => [`${model.providerId}/${model.modelId}`, model] as const)
|
|
164
|
+
)
|
|
165
|
+
).values(),
|
|
166
|
+
]
|
|
167
|
+
const label = groupLabel(group, messages)
|
|
168
|
+
const href = groupHref(group)
|
|
169
|
+
const kind = group.attribution?.kind
|
|
170
|
+
const Icon =
|
|
171
|
+
kind === "agent"
|
|
172
|
+
? Bot
|
|
173
|
+
: kind === "action"
|
|
174
|
+
? Zap
|
|
175
|
+
: kind === "workflow" || kind === "workflowAgent"
|
|
176
|
+
? Workflow
|
|
177
|
+
: Layers
|
|
178
|
+
|
|
179
|
+
return (
|
|
180
|
+
<div className={cn(open && "bg-muted/25")}>
|
|
181
|
+
<div className={cn(grid, "px-4 py-2.5")}>
|
|
182
|
+
<div className="flex min-w-0 items-center gap-1">
|
|
183
|
+
<button
|
|
184
|
+
type="button"
|
|
185
|
+
aria-expanded={open}
|
|
186
|
+
onClick={() => setOpen((value) => !value)}
|
|
187
|
+
className="flex min-w-0 flex-1 items-center gap-2.5 rounded-md text-left outline-none focus-visible:ring-2 focus-visible:ring-ring/50"
|
|
188
|
+
>
|
|
189
|
+
<ChevronRight
|
|
190
|
+
aria-hidden
|
|
191
|
+
className={cn(
|
|
192
|
+
"size-3.5 shrink-0 text-muted-foreground transition-transform",
|
|
193
|
+
open && "rotate-90"
|
|
194
|
+
)}
|
|
195
|
+
/>
|
|
196
|
+
<span className="flex size-8 shrink-0 items-center justify-center rounded-lg border border-border bg-background">
|
|
197
|
+
<Icon className="size-4 text-muted-foreground" aria-hidden />
|
|
198
|
+
</span>
|
|
199
|
+
<span className="min-w-0">
|
|
200
|
+
<span title={label} className="block truncate text-sm font-medium">
|
|
201
|
+
{label}
|
|
202
|
+
</span>
|
|
203
|
+
<span className="block text-xs text-muted-foreground">
|
|
204
|
+
{format.time(group.firstCallAt)}
|
|
205
|
+
{children.length > 0 ? ` · ${messages.subAgents(children.length)}` : ""}
|
|
206
|
+
</span>
|
|
207
|
+
</span>
|
|
208
|
+
</button>
|
|
209
|
+
{href ? (
|
|
210
|
+
<Link
|
|
211
|
+
to={href}
|
|
212
|
+
aria-label={messages.open(label)}
|
|
213
|
+
title={messages.open(label)}
|
|
214
|
+
className="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
|
|
215
|
+
>
|
|
216
|
+
<ArrowUpRight className="size-3.5" aria-hidden />
|
|
217
|
+
</Link>
|
|
218
|
+
) : null}
|
|
219
|
+
</div>
|
|
220
|
+
<Summary summary={group} models={models} />
|
|
221
|
+
</div>
|
|
222
|
+
{open ? (
|
|
223
|
+
children.length === 0 ? (
|
|
224
|
+
<Calls executionId={group.executionId} filters={filters} />
|
|
225
|
+
) : (
|
|
226
|
+
<>
|
|
227
|
+
{direct ? (
|
|
228
|
+
<ExecutionRow execution={direct} label={messages.direct} filters={filters} />
|
|
229
|
+
) : (
|
|
230
|
+
<Notice indent>{messages.noDirect}</Notice>
|
|
231
|
+
)}
|
|
232
|
+
{children.map((execution, index) => (
|
|
233
|
+
<ExecutionRow
|
|
234
|
+
key={execution.executionId}
|
|
235
|
+
execution={execution}
|
|
236
|
+
label={execution.label ?? messages.subAgent(index + 1)}
|
|
237
|
+
filters={filters}
|
|
238
|
+
child
|
|
239
|
+
/>
|
|
240
|
+
))}
|
|
241
|
+
</>
|
|
242
|
+
)
|
|
243
|
+
) : null}
|
|
244
|
+
</div>
|
|
245
|
+
)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function ExecutionRow({
|
|
249
|
+
execution,
|
|
250
|
+
label,
|
|
251
|
+
filters,
|
|
252
|
+
child = false,
|
|
253
|
+
}: {
|
|
254
|
+
readonly execution: Execution
|
|
255
|
+
readonly label: string
|
|
256
|
+
readonly filters: CallFilters
|
|
257
|
+
readonly child?: boolean
|
|
258
|
+
}) {
|
|
259
|
+
const [open, setOpen] = useState(false)
|
|
260
|
+
return (
|
|
261
|
+
<>
|
|
262
|
+
<div className={cn(grid, "py-2 pr-4 pl-10")}>
|
|
263
|
+
<button
|
|
264
|
+
type="button"
|
|
265
|
+
aria-expanded={open}
|
|
266
|
+
onClick={() => setOpen((value) => !value)}
|
|
267
|
+
className="flex min-w-0 items-center gap-2 rounded-md text-left outline-none focus-visible:ring-2 focus-visible:ring-ring/50"
|
|
268
|
+
>
|
|
269
|
+
<ChevronRight
|
|
270
|
+
aria-hidden
|
|
271
|
+
className={cn(
|
|
272
|
+
"size-3.5 shrink-0 text-muted-foreground transition-transform",
|
|
273
|
+
open && "rotate-90"
|
|
274
|
+
)}
|
|
275
|
+
/>
|
|
276
|
+
{child ? (
|
|
277
|
+
<GitBranch className="size-3.5 shrink-0 text-muted-foreground" aria-hidden />
|
|
278
|
+
) : null}
|
|
279
|
+
<span title={execution.executionId} className="truncate text-xs font-medium">
|
|
280
|
+
{label}
|
|
281
|
+
</span>
|
|
282
|
+
</button>
|
|
283
|
+
<Summary summary={execution} models={execution.models} />
|
|
284
|
+
</div>
|
|
285
|
+
{open ? <Calls executionId={execution.executionId} filters={filters} nested /> : null}
|
|
286
|
+
</>
|
|
287
|
+
)
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function Calls({
|
|
291
|
+
executionId,
|
|
292
|
+
filters,
|
|
293
|
+
nested = false,
|
|
294
|
+
}: {
|
|
295
|
+
readonly executionId: string
|
|
296
|
+
readonly filters: CallFilters
|
|
297
|
+
readonly nested?: boolean
|
|
298
|
+
}) {
|
|
299
|
+
const messages = useAiUsageMessages().calls
|
|
300
|
+
const locale = useLocale()
|
|
301
|
+
const [offset, setOffset] = useState(0)
|
|
302
|
+
const query = useQuery({
|
|
303
|
+
...listAiModelCallsOptions({
|
|
304
|
+
query: { ...filters, executionId, limit: String(callsPageSize), offset: String(offset) },
|
|
305
|
+
}),
|
|
306
|
+
retry: false,
|
|
307
|
+
})
|
|
308
|
+
if (query.isPending) return <Notice indent>{messages.loadingCalls}</Notice>
|
|
309
|
+
if (query.isError || !query.data) {
|
|
310
|
+
return (
|
|
311
|
+
<Notice indent onRetry={() => void query.refetch()}>
|
|
312
|
+
{messages.callsFailed}
|
|
313
|
+
</Notice>
|
|
314
|
+
)
|
|
315
|
+
}
|
|
316
|
+
if (query.data.items.length === 0) return <Notice indent>{messages.empty}</Notice>
|
|
317
|
+
const { items, total, hasMore } = query.data
|
|
318
|
+
return (
|
|
319
|
+
<>
|
|
320
|
+
{items.map((call) => (
|
|
321
|
+
<ModelCallRow key={call.usage.id} call={call} nested={nested} />
|
|
322
|
+
))}
|
|
323
|
+
{total > callsPageSize ? (
|
|
324
|
+
<div className="flex items-center justify-between gap-3 py-1.5 pr-4 pl-14 text-xs text-muted-foreground">
|
|
325
|
+
<span className="tabular-nums">
|
|
326
|
+
{messages.callRange(
|
|
327
|
+
(offset + 1).toLocaleString(locale),
|
|
328
|
+
(offset + items.length).toLocaleString(locale),
|
|
329
|
+
total.toLocaleString(locale)
|
|
330
|
+
)}
|
|
331
|
+
</span>
|
|
332
|
+
<span className="flex gap-1">
|
|
333
|
+
<Button
|
|
334
|
+
type="button"
|
|
335
|
+
variant="ghost"
|
|
336
|
+
size="sm"
|
|
337
|
+
disabled={offset === 0}
|
|
338
|
+
onClick={() => setOffset(Math.max(0, offset - callsPageSize))}
|
|
339
|
+
>
|
|
340
|
+
{messages.previousCalls}
|
|
341
|
+
</Button>
|
|
342
|
+
<Button
|
|
343
|
+
type="button"
|
|
344
|
+
variant="ghost"
|
|
345
|
+
size="sm"
|
|
346
|
+
disabled={!hasMore}
|
|
347
|
+
onClick={() => setOffset(offset + callsPageSize)}
|
|
348
|
+
>
|
|
349
|
+
{messages.nextCalls}
|
|
350
|
+
</Button>
|
|
351
|
+
</span>
|
|
352
|
+
</div>
|
|
353
|
+
) : null}
|
|
354
|
+
</>
|
|
355
|
+
)
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/** One model call: when, which model, what it used and cost, and where its cost came from. */
|
|
359
|
+
export function ModelCallRow({
|
|
360
|
+
call,
|
|
361
|
+
nested = false,
|
|
362
|
+
}: {
|
|
363
|
+
readonly call: ModelCall
|
|
364
|
+
readonly nested?: boolean
|
|
365
|
+
}) {
|
|
366
|
+
const messages = useAiUsageMessages().calls
|
|
367
|
+
const format = useCallFormat()
|
|
368
|
+
const { audioDurationMs, totalTokens } = call.usage.usage
|
|
369
|
+
return (
|
|
370
|
+
<div className={cn(grid, "py-1.5 pr-4 text-xs", nested ? "pl-20" : "pl-14")}>
|
|
371
|
+
<span
|
|
372
|
+
className="text-muted-foreground"
|
|
373
|
+
title={`${call.usage.callId} · ${call.usage.attempt}`}
|
|
374
|
+
>
|
|
375
|
+
{format.time(call.usage.occurredAt, true)}
|
|
376
|
+
</span>
|
|
377
|
+
<span className="hidden min-w-0 md:block">
|
|
378
|
+
<ModelName
|
|
379
|
+
models={[{ providerId: call.usage.providerId, modelId: call.usage.requestedModelId }]}
|
|
380
|
+
/>
|
|
381
|
+
{call.usage.modelKind === "transcription" ? (
|
|
382
|
+
<span className="block text-muted-foreground">{messages.transcription}</span>
|
|
383
|
+
) : null}
|
|
384
|
+
{call.usage.requestedReasoning === undefined ? null : (
|
|
385
|
+
<span className="block text-muted-foreground">
|
|
386
|
+
{typeof call.usage.requestedReasoning === "string"
|
|
387
|
+
? messages.reasoning(call.usage.requestedReasoning)
|
|
388
|
+
: messages.reasoningBudget(format.number(call.usage.requestedReasoning.budgetTokens))}
|
|
389
|
+
</span>
|
|
390
|
+
)}
|
|
391
|
+
</span>
|
|
392
|
+
<span className="hidden text-right font-mono text-muted-foreground md:block">1</span>
|
|
393
|
+
<span className="hidden text-right font-mono tabular-nums md:block">
|
|
394
|
+
{audioDurationMs !== undefined ? (
|
|
395
|
+
<span className="block">{messages.audio(format.number(audioDurationMs / 1000, 3))}</span>
|
|
396
|
+
) : null}
|
|
397
|
+
{totalTokens !== undefined ? (
|
|
398
|
+
<span className="block">{messages.tokens(format.number(totalTokens))}</span>
|
|
399
|
+
) : null}
|
|
400
|
+
{audioDurationMs === undefined && totalTokens === undefined ? "—" : null}
|
|
401
|
+
</span>
|
|
402
|
+
<span className="text-right font-mono whitespace-nowrap tabular-nums">
|
|
403
|
+
{call.cost && call.cost.status !== "unpriceable" ? format.money(call.cost.money) : "—"}
|
|
404
|
+
</span>
|
|
405
|
+
<span className="hidden md:block">
|
|
406
|
+
<Valuation call={call} />
|
|
407
|
+
</span>
|
|
408
|
+
</div>
|
|
409
|
+
)
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function Summary({
|
|
413
|
+
summary,
|
|
414
|
+
models,
|
|
415
|
+
}: {
|
|
416
|
+
readonly summary: Group | Execution
|
|
417
|
+
readonly models: Execution["models"]
|
|
418
|
+
}) {
|
|
419
|
+
const messages = useAiUsageMessages().calls
|
|
420
|
+
const format = useCallFormat()
|
|
421
|
+
const withoutCost = summary.costs.unvaluedCallCount + summary.costs.unpriceableCallCount
|
|
422
|
+
return (
|
|
423
|
+
<>
|
|
424
|
+
<span className="hidden min-w-0 md:block">
|
|
425
|
+
<ModelName models={models} />
|
|
426
|
+
</span>
|
|
427
|
+
<span className="hidden text-right font-mono text-xs tabular-nums md:block">
|
|
428
|
+
{format.number(summary.modelCallCount)}
|
|
429
|
+
</span>
|
|
430
|
+
<span className="hidden text-right font-mono text-xs tabular-nums md:block">
|
|
431
|
+
{summary.totalTokens === undefined
|
|
432
|
+
? "—"
|
|
433
|
+
: messages.tokens(format.number(summary.totalTokens))}
|
|
434
|
+
</span>
|
|
435
|
+
<span className="text-right font-mono text-xs whitespace-nowrap tabular-nums">
|
|
436
|
+
{summary.costs.amounts.length
|
|
437
|
+
? summary.costs.amounts.map((money) => (
|
|
438
|
+
<span key={money.currency} className="block">
|
|
439
|
+
{format.money(money)}
|
|
440
|
+
</span>
|
|
441
|
+
))
|
|
442
|
+
: "—"}
|
|
443
|
+
</span>
|
|
444
|
+
<span className="hidden text-xs text-muted-foreground md:block">
|
|
445
|
+
{withoutCost > 0 ? (
|
|
446
|
+
<span className="text-amber-700 dark:text-amber-300">
|
|
447
|
+
{messages.withoutCost(format.number(withoutCost))}
|
|
448
|
+
</span>
|
|
449
|
+
) : (
|
|
450
|
+
messages.costAvailable
|
|
451
|
+
)}
|
|
452
|
+
</span>
|
|
453
|
+
</>
|
|
454
|
+
)
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function ModelName({ models }: { readonly models: Execution["models"] }) {
|
|
458
|
+
const messages = useAiUsageMessages().calls
|
|
459
|
+
const model = models[0]
|
|
460
|
+
if (models.length !== 1 || !model) {
|
|
461
|
+
return (
|
|
462
|
+
<span
|
|
463
|
+
className="text-xs text-muted-foreground"
|
|
464
|
+
title={models.map((entry) => `${entry.providerId} · ${entry.modelId}`).join("\n")}
|
|
465
|
+
>
|
|
466
|
+
{messages.models(models.length)}
|
|
467
|
+
</span>
|
|
468
|
+
)
|
|
469
|
+
}
|
|
470
|
+
return (
|
|
471
|
+
<span className="block min-w-0 text-xs">
|
|
472
|
+
<span className="block truncate font-medium" title={model.modelId}>
|
|
473
|
+
{model.modelId}
|
|
474
|
+
</span>
|
|
475
|
+
<span className="block text-muted-foreground">{model.providerId}</span>
|
|
476
|
+
</span>
|
|
477
|
+
)
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
function Valuation({ call }: { readonly call: ModelCall }) {
|
|
481
|
+
const messages = useAiUsageMessages().calls
|
|
482
|
+
const cost = call.cost
|
|
483
|
+
const { label, tone }: { label: string; tone: Tone } =
|
|
484
|
+
cost?.status === "rated"
|
|
485
|
+
? cost.source === "provider"
|
|
486
|
+
? { label: messages.provider, tone: "ok" }
|
|
487
|
+
: {
|
|
488
|
+
label: cost.source === "estimate" ? messages.estimate : messages.unclassified,
|
|
489
|
+
tone: "info",
|
|
490
|
+
}
|
|
491
|
+
: call.valuationStatus === "unpriceable"
|
|
492
|
+
? { label: messages.unpriceable, tone: "warn" }
|
|
493
|
+
: { label: messages.unvalued, tone: "warn" }
|
|
494
|
+
return <Pill tone={tone}>{label}</Pill>
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
function Notice({
|
|
498
|
+
children,
|
|
499
|
+
indent = false,
|
|
500
|
+
onRetry,
|
|
501
|
+
}: {
|
|
502
|
+
readonly children: ReactNode
|
|
503
|
+
readonly indent?: boolean
|
|
504
|
+
/** Offered when what failed can be read again. */
|
|
505
|
+
readonly onRetry?: () => void
|
|
506
|
+
}) {
|
|
507
|
+
const messages = useAiUsageMessages()
|
|
508
|
+
return (
|
|
509
|
+
<p
|
|
510
|
+
className={cn(
|
|
511
|
+
"flex items-center justify-center gap-3 py-6 text-[0.8125rem] text-muted-foreground",
|
|
512
|
+
indent && "justify-start py-3 pl-14 text-xs"
|
|
513
|
+
)}
|
|
514
|
+
>
|
|
515
|
+
{children}
|
|
516
|
+
{onRetry ? (
|
|
517
|
+
<Button type="button" variant="outline" size="sm" onClick={onRetry}>
|
|
518
|
+
{messages.retry}
|
|
519
|
+
</Button>
|
|
520
|
+
) : null}
|
|
521
|
+
</p>
|
|
522
|
+
)
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
function useCallFormat() {
|
|
526
|
+
const locale = useLocale()
|
|
527
|
+
return {
|
|
528
|
+
time: (value: string, seconds = false) =>
|
|
529
|
+
new Date(value).toLocaleString(locale, {
|
|
530
|
+
month: "short",
|
|
531
|
+
day: "numeric",
|
|
532
|
+
hour: "numeric",
|
|
533
|
+
minute: "2-digit",
|
|
534
|
+
...(seconds ? { second: "2-digit" } : {}),
|
|
535
|
+
}),
|
|
536
|
+
number: (value: number, digits = 0) =>
|
|
537
|
+
value.toLocaleString(locale, { maximumFractionDigits: digits }),
|
|
538
|
+
money: (money: { readonly currency: string; readonly amountNanos: string }) =>
|
|
539
|
+
formatMoney(money, locale),
|
|
540
|
+
}
|
|
541
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// Loaded only when AI usage opens, so the charting library stays out of every other page's bundle.
|
|
2
|
+
import type { ReactNode } from "react"
|
|
3
|
+
import { Bar, BarChart, CartesianGrid, Legend, Tooltip, XAxis, YAxis } from "recharts"
|
|
4
|
+
|
|
5
|
+
export interface TimeSeriesProps {
|
|
6
|
+
readonly data: readonly Readonly<Record<string, number | string | undefined>>[]
|
|
7
|
+
readonly xKey: string
|
|
8
|
+
readonly series: readonly {
|
|
9
|
+
readonly key: string
|
|
10
|
+
readonly label: string
|
|
11
|
+
readonly color: string
|
|
12
|
+
readonly stackId?: string
|
|
13
|
+
}[]
|
|
14
|
+
/** The least height; in a flex column the chart grows past it to fill the space. */
|
|
15
|
+
readonly height?: number
|
|
16
|
+
readonly yAxisWidth?: number
|
|
17
|
+
readonly showLegend?: boolean
|
|
18
|
+
readonly xFormatter: (value: string) => string
|
|
19
|
+
readonly tooltipLabel?: (value: string) => ReactNode
|
|
20
|
+
readonly valueFormatter: (value: number) => string
|
|
21
|
+
readonly emptyLabel: string
|
|
22
|
+
readonly ariaLabel: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Bars over time, one series or several stacked, in the theme's chart colors. */
|
|
26
|
+
export default function TimeSeries({
|
|
27
|
+
data,
|
|
28
|
+
xKey,
|
|
29
|
+
series,
|
|
30
|
+
height = 260,
|
|
31
|
+
yAxisWidth = 54,
|
|
32
|
+
showLegend = true,
|
|
33
|
+
xFormatter,
|
|
34
|
+
tooltipLabel,
|
|
35
|
+
valueFormatter,
|
|
36
|
+
emptyLabel,
|
|
37
|
+
ariaLabel,
|
|
38
|
+
}: TimeSeriesProps) {
|
|
39
|
+
if (data.length === 0) {
|
|
40
|
+
return (
|
|
41
|
+
<div
|
|
42
|
+
className="flex flex-1 items-center justify-center rounded-lg border border-dashed border-border text-[0.8125rem] text-muted-foreground"
|
|
43
|
+
style={{ minHeight: height }}
|
|
44
|
+
>
|
|
45
|
+
{emptyLabel}
|
|
46
|
+
</div>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
return (
|
|
50
|
+
// Recharts makes the chart focusable for its keyboard support, and a click then draws the
|
|
51
|
+
// browser's focus ring around the chart or its bars.
|
|
52
|
+
<div
|
|
53
|
+
role="img"
|
|
54
|
+
aria-label={ariaLabel}
|
|
55
|
+
className="w-full flex-1 [&_*:focus]:outline-none"
|
|
56
|
+
style={{ minHeight: height }}
|
|
57
|
+
>
|
|
58
|
+
<BarChart
|
|
59
|
+
responsive
|
|
60
|
+
style={{ width: "100%", height: "100%" }}
|
|
61
|
+
data={[...data]}
|
|
62
|
+
margin={{ top: 8, right: 8, bottom: 4, left: 0 }}
|
|
63
|
+
>
|
|
64
|
+
<CartesianGrid vertical={false} stroke="var(--border)" strokeDasharray="3 3" />
|
|
65
|
+
<XAxis
|
|
66
|
+
dataKey={xKey}
|
|
67
|
+
tickLine={false}
|
|
68
|
+
axisLine={false}
|
|
69
|
+
minTickGap={28}
|
|
70
|
+
tickMargin={10}
|
|
71
|
+
tick={{ fontSize: 11, fill: "var(--muted-foreground)" }}
|
|
72
|
+
tickFormatter={(value) => xFormatter(String(value))}
|
|
73
|
+
/>
|
|
74
|
+
<YAxis
|
|
75
|
+
tickLine={false}
|
|
76
|
+
axisLine={false}
|
|
77
|
+
width={yAxisWidth}
|
|
78
|
+
tickMargin={8}
|
|
79
|
+
tick={{ fontSize: 11, fill: "var(--muted-foreground)" }}
|
|
80
|
+
tickFormatter={(value) => valueFormatter(Number(value))}
|
|
81
|
+
/>
|
|
82
|
+
<Tooltip
|
|
83
|
+
cursor={{ fill: "var(--muted)", opacity: 0.4 }}
|
|
84
|
+
contentStyle={{
|
|
85
|
+
background: "var(--popover)",
|
|
86
|
+
border: "1px solid var(--border)",
|
|
87
|
+
borderRadius: "var(--radius-md)",
|
|
88
|
+
color: "var(--popover-foreground)",
|
|
89
|
+
fontSize: 12,
|
|
90
|
+
}}
|
|
91
|
+
labelStyle={{ color: "var(--muted-foreground)", marginBottom: 4 }}
|
|
92
|
+
wrapperStyle={{ zIndex: 20, outline: "none" }}
|
|
93
|
+
labelFormatter={(label) =>
|
|
94
|
+
typeof label === "string" ? (tooltipLabel ?? xFormatter)(label) : label
|
|
95
|
+
}
|
|
96
|
+
formatter={(value, name) => [
|
|
97
|
+
valueFormatter(Number(value)),
|
|
98
|
+
series.find((entry) => entry.key === String(name))?.label ?? String(name),
|
|
99
|
+
]}
|
|
100
|
+
/>
|
|
101
|
+
{showLegend ? (
|
|
102
|
+
<Legend
|
|
103
|
+
iconSize={8}
|
|
104
|
+
iconType="circle"
|
|
105
|
+
height={28}
|
|
106
|
+
wrapperStyle={{ color: "var(--muted-foreground)", fontSize: 12, paddingTop: 8 }}
|
|
107
|
+
formatter={(value) =>
|
|
108
|
+
series.find((entry) => entry.key === String(value))?.label ?? String(value)
|
|
109
|
+
}
|
|
110
|
+
/>
|
|
111
|
+
) : null}
|
|
112
|
+
{series.map((entry) => (
|
|
113
|
+
<Bar
|
|
114
|
+
key={entry.key}
|
|
115
|
+
dataKey={entry.key}
|
|
116
|
+
stackId={entry.stackId}
|
|
117
|
+
fill={entry.color}
|
|
118
|
+
radius={[3, 3, 0, 0]}
|
|
119
|
+
maxBarSize={36}
|
|
120
|
+
isAnimationActive={false}
|
|
121
|
+
/>
|
|
122
|
+
))}
|
|
123
|
+
</BarChart>
|
|
124
|
+
</div>
|
|
125
|
+
)
|
|
126
|
+
}
|