@sixb/app 0.1.18 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/assets/connector-icons/README.md +2 -1
- package/assets/connector-icons/fleetio.ico +0 -0
- package/dist/agent/activity-label.d.ts.map +1 -1
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/background/background-card.d.ts +10 -0
- package/dist/agent/background/background-card.d.ts.map +1 -0
- package/dist/agent/background/background-tool-row.d.ts +9 -0
- package/dist/agent/background/background-tool-row.d.ts.map +1 -0
- package/dist/agent/background/context.d.ts +23 -0
- package/dist/agent/background/context.d.ts.map +1 -0
- package/dist/agent/background/interpret.d.ts +116 -0
- package/dist/agent/background/interpret.d.ts.map +1 -0
- package/dist/agent/bash/bash-tool-view.d.ts.map +1 -1
- package/dist/agent/bash/interpret.d.ts +5 -1
- package/dist/agent/bash/interpret.d.ts.map +1 -1
- package/dist/agent/components/agent-message-body.d.ts.map +1 -1
- package/dist/agent/components/composer-menu.d.ts +3 -1
- package/dist/agent/components/composer-menu.d.ts.map +1 -1
- package/dist/agent/components/composer-place.d.ts +11 -0
- package/dist/agent/components/composer-place.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +7 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/computer-place.d.ts +25 -0
- package/dist/agent/components/computer-place.d.ts.map +1 -0
- package/dist/agent/components/context-meter.d.ts +41 -0
- package/dist/agent/components/context-meter.d.ts.map +1 -0
- package/dist/agent/components/message-parts.d.ts +9 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/message-view.d.ts +18 -3
- package/dist/agent/components/message-view.d.ts.map +1 -1
- package/dist/agent/components/transcript.d.ts +13 -0
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -1
- package/dist/agent/conversation.d.ts +17 -2
- package/dist/agent/conversation.d.ts.map +1 -1
- package/dist/agent/delegation/child-parts.d.ts +2 -0
- package/dist/agent/delegation/child-parts.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts +65 -5
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/format.d.ts +4 -0
- package/dist/agent/format.d.ts.map +1 -1
- package/dist/agent/hooks/use-agent-conversation.d.ts +33 -3
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-new-thread-place.d.ts +48 -0
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-lists.d.ts +68 -4
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +125 -0
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +224 -0
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/live-run.d.ts +4 -0
- package/dist/agent/live-run.d.ts.map +1 -1
- package/dist/agent/observed-conversation.d.ts.map +1 -1
- package/dist/agent/parts.d.ts +2 -0
- package/dist/agent/parts.d.ts.map +1 -1
- package/dist/agent/run-presentation.d.ts +2 -0
- package/dist/agent/run-presentation.d.ts.map +1 -1
- package/dist/agent/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/types.d.ts +3 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/utils/web-fetch.d.ts +33 -1
- package/dist/agent/utils/web-fetch.d.ts.map +1 -1
- package/dist/agent/utils/web-search.d.ts +14 -2
- package/dist/agent/utils/web-search.d.ts.map +1 -1
- package/dist/{chunk-pkcm8rn8.js → chunk-4j3c3p72.js} +1 -1
- package/dist/{chunk-sw3pyqgy.js → chunk-4mprsd2n.js} +15 -34
- package/dist/chunk-4mprsd2n.js.map +10 -0
- package/dist/{chunk-gq6xek89.js → chunk-7fj9cfkw.js} +3 -3
- package/dist/chunk-7fj9cfkw.js.map +10 -0
- package/dist/{chunk-md3p7qdt.js → chunk-dgs11da9.js} +3 -3
- package/dist/{chunk-md3p7qdt.js.map → chunk-dgs11da9.js.map} +2 -2
- package/dist/{chunk-hdbmj6f0.js → chunk-j8g956dt.js} +1 -1
- package/dist/{chunk-6n5pdqp0.js → chunk-j98jkx60.js} +3 -3
- package/dist/{chunk-6n5pdqp0.js.map → chunk-j98jkx60.js.map} +2 -2
- package/dist/{chunk-k4epnkcr.js → chunk-kwbw4dyk.js} +1 -1
- package/dist/{chunk-53z5653y.js → chunk-q69001w3.js} +78 -90
- package/dist/chunk-q69001w3.js.map +11 -0
- package/dist/{chunk-btky7c9w.js → chunk-ytadd0b5.js} +4205 -2203
- package/dist/{chunk-btky7c9w.js.map → chunk-ytadd0b5.js.map} +44 -36
- package/dist/codegen.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -16
- package/dist/index.js.map +5 -5
- package/dist/locale-messages.d.ts +8 -20
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +8 -20
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +1 -1
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/{observability → console}/action-run.d.ts +1 -1
- package/dist/pages/console/action-run.d.ts.map +1 -0
- package/dist/pages/console/data/connectors.d.ts +5 -0
- package/dist/pages/console/data/connectors.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/datasets.d.ts +3 -3
- package/dist/pages/console/data/datasets.d.ts.map +1 -0
- package/dist/pages/console/data/live-updates.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/messages.d.ts +19 -1
- package/dist/pages/console/data/messages.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/pipeline-canvas.d.ts +1 -1
- package/dist/pages/console/data/pipeline-canvas.d.ts.map +1 -0
- package/dist/pages/console/data/pipelines.d.ts +9 -0
- package/dist/pages/console/data/pipelines.d.ts.map +1 -0
- package/dist/pages/console/data/producer.d.ts +21 -0
- package/dist/pages/console/data/producer.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/projections.d.ts +3 -3
- package/dist/pages/console/data/projections.d.ts.map +1 -0
- package/dist/pages/console/data/schema.d.ts.map +1 -0
- package/dist/pages/console/data/shared.d.ts.map +1 -0
- package/dist/pages/console/data/sync-button.d.ts.map +1 -0
- package/dist/pages/console/data/syncs.d.ts +5 -0
- package/dist/pages/console/data/syncs.d.ts.map +1 -0
- package/dist/pages/console/live-updates.d.ts.map +1 -0
- package/dist/pages/{observability → console}/logs.d.ts +2 -2
- package/dist/pages/console/logs.d.ts.map +1 -0
- package/dist/pages/{observability → console}/messages.d.ts +8 -100
- package/dist/pages/console/messages.d.ts.map +1 -0
- package/dist/pages/console/ontology/action-runs.d.ts +16 -0
- package/dist/pages/console/ontology/action-runs.d.ts.map +1 -0
- package/dist/pages/console/ontology/actions.d.ts +6 -0
- package/dist/pages/console/ontology/actions.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/action-param-null-control.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/collection-toolbar.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/common.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/file-ref-upload-field.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-filter-popover.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-icon.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-chart.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-grid.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-tile.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-value.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/usage-bar.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/user-picker.d.ts.map +1 -0
- package/dist/pages/console/ontology/graph.d.ts +6 -0
- package/dist/pages/console/ontology/graph.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/object-live-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/object-type-counts.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/rule-live-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/format-value.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/labels.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/lib/live-update-keys.d.ts +2 -0
- package/dist/pages/console/ontology/lib/live-update-keys.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/object-query.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/ontology-graph-links.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/telemetry-history.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/time.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/user-preferences.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/action-name.d.ts +6 -0
- package/dist/pages/console/ontology/lineage/action-name.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/dataset-steps.d.ts +15 -0
- package/dist/pages/console/ontology/lineage/dataset-steps.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/links.d.ts +13 -0
- package/dist/pages/console/ontology/lineage/links.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/messages.d.ts +108 -0
- package/dist/pages/console/ontology/lineage/messages.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/model.d.ts +84 -0
- package/dist/pages/console/ontology/lineage/model.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts +17 -0
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/property-source.d.ts +12 -0
- package/dist/pages/console/ontology/lineage/property-source.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/query.d.ts +8 -0
- package/dist/pages/console/ontology/lineage/query.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/requester.d.ts +8 -0
- package/dist/pages/console/ontology/lineage/requester.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/separated.d.ts +16 -0
- package/dist/pages/console/ontology/lineage/separated.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/summary.d.ts +10 -0
- package/dist/pages/console/ontology/lineage/summary.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/trail-step.d.ts +20 -0
- package/dist/pages/console/ontology/lineage/trail-step.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/trail.d.ts +21 -0
- package/dist/pages/console/ontology/lineage/trail.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/value-lineage-panel.d.ts +26 -0
- package/dist/pages/console/ontology/lineage/value-lineage-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/object-page.d.ts.map +1 -0
- package/dist/pages/console/ontology/object-type.d.ts +3 -0
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -0
- package/dist/pages/console/ontology/object-types.d.ts +7 -0
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -0
- package/dist/pages/console/ontology/objects.d.ts +6 -0
- package/dist/pages/console/ontology/objects.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/rules.d.ts +3 -3
- package/dist/pages/console/ontology/rules.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/workflow.d.ts +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/workflows/agent-execution-panel.d.ts +1 -1
- package/dist/pages/console/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/intervention-panel.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/workflows/node-execution-panel.d.ts +1 -1
- package/dist/pages/console/ontology/workflows/node-execution-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/request-run-dialog.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/run-debug-section.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/run-progress.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/status-badge.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/utils.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/workflow-card.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows.d.ts +3 -0
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -0
- package/dist/pages/{observability → console}/workflow-run.d.ts +1 -1
- package/dist/pages/console/workflow-run.d.ts.map +1 -0
- package/dist/pages/routes.d.ts +16 -8
- package/dist/pages/routes.d.ts.map +1 -1
- package/dist/pages/section-page.d.ts +2 -6
- package/dist/pages/section-page.d.ts.map +1 -1
- package/dist/pages/section-ui.d.ts +15 -0
- package/dist/pages/section-ui.d.ts.map +1 -1
- package/dist/pages/settings/activity/calendar.d.ts.map +1 -0
- package/dist/pages/settings/activity/connections.d.ts.map +1 -0
- package/dist/pages/settings/activity/format.d.ts.map +1 -0
- package/dist/pages/{observability → settings}/activity/messages.d.ts +1 -1
- package/dist/pages/settings/activity/messages.d.ts.map +1 -0
- package/dist/pages/settings/activity/meta-items.d.ts.map +1 -0
- package/dist/pages/settings/activity/page.d.ts +6 -0
- package/dist/pages/settings/activity/page.d.ts.map +1 -0
- package/dist/pages/{observability → settings}/activity/period.d.ts +1 -1
- package/dist/pages/settings/activity/period.d.ts.map +1 -0
- package/dist/pages/settings/activity/steps.d.ts.map +1 -0
- package/dist/pages/settings/activity/thread.d.ts +6 -0
- package/dist/pages/settings/activity/thread.d.ts.map +1 -0
- package/dist/pages/settings/activity/timeline.d.ts.map +1 -0
- package/dist/pages/settings/activity/users.d.ts.map +1 -0
- package/dist/pages/settings/controls.d.ts +1 -1
- package/dist/pages/settings/controls.d.ts.map +1 -1
- package/dist/pages/settings/members.d.ts +4 -1
- package/dist/pages/settings/members.d.ts.map +1 -1
- package/dist/pages/settings/memory-editors.d.ts +55 -0
- package/dist/pages/settings/memory-editors.d.ts.map +1 -0
- package/dist/pages/settings/memory-entries.d.ts +2 -5
- package/dist/pages/settings/memory-entries.d.ts.map +1 -1
- package/dist/pages/settings/memory-files.d.ts +17 -14
- package/dist/pages/settings/memory-files.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts +5 -3
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/memory-note.d.ts +15 -0
- package/dist/pages/settings/memory-note.d.ts.map +1 -0
- package/dist/pages/settings/memory.d.ts +3 -17
- package/dist/pages/settings/memory.d.ts.map +1 -1
- package/dist/pages/settings/messages.d.ts +76 -16
- package/dist/pages/settings/messages.d.ts.map +1 -1
- package/dist/pages/settings/service-accounts.d.ts +8 -2
- package/dist/pages/settings/service-accounts.d.ts.map +1 -1
- package/dist/pages/settings/usage/breakdown.d.ts +17 -0
- package/dist/pages/settings/usage/breakdown.d.ts.map +1 -0
- package/dist/pages/settings/usage/call-detail.d.ts +9 -0
- package/dist/pages/settings/usage/call-detail.d.ts.map +1 -0
- package/dist/pages/settings/usage/filter-menu.d.ts +28 -0
- package/dist/pages/settings/usage/filter-menu.d.ts.map +1 -0
- package/dist/pages/{observability/ai-usage → settings/usage}/format.d.ts +0 -53
- package/dist/pages/settings/usage/format.d.ts.map +1 -0
- package/dist/pages/settings/usage/limits.d.ts.map +1 -0
- package/dist/pages/settings/usage/messages.d.ts +615 -0
- package/dist/pages/settings/usage/messages.d.ts.map +1 -0
- package/dist/pages/settings/usage/page.d.ts +6 -0
- package/dist/pages/settings/usage/page.d.ts.map +1 -0
- package/dist/pages/settings/usage/runs.d.ts +17 -0
- package/dist/pages/settings/usage/runs.d.ts.map +1 -0
- package/dist/pages/settings/usage/segmented.d.ts +11 -0
- package/dist/pages/settings/usage/segmented.d.ts.map +1 -0
- package/dist/pages/settings/usage/spend-chart.d.ts +22 -0
- package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -0
- package/dist/pages/settings/usage/spend-model.d.ts +133 -0
- package/dist/pages/settings/usage/spend-model.d.ts.map +1 -0
- package/dist/pages/values.d.ts +10 -2
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +21 -23
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +24976 -22781
- package/dist/pages.js.map +87 -66
- package/dist/sections/catalog.d.ts +10 -6
- package/dist/sections/catalog.d.ts.map +1 -1
- package/dist/sections/counts.d.ts.map +1 -1
- package/dist/sections/sections.d.ts +11 -18
- package/dist/sections/sections.d.ts.map +1 -1
- package/dist/server.js +128 -37
- package/dist/server.js.map +4 -4
- package/dist/session.d.ts +6 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/shared-unavailable.d.ts +14 -0
- package/dist/shared-unavailable.d.ts.map +1 -0
- package/dist/shell/user-menu.d.ts +1 -1
- package/package.json +4 -4
- package/src/agent/activity-label.ts +6 -2
- package/src/agent/agent-chat.tsx +4 -0
- package/src/agent/agent.css +47 -0
- package/src/agent/background/background-card.tsx +308 -0
- package/src/agent/background/background-tool-row.tsx +58 -0
- package/src/agent/background/context.ts +26 -0
- package/src/agent/background/interpret.ts +356 -0
- package/src/agent/bash/bash-tool-view.tsx +9 -4
- package/src/agent/bash/interpret.ts +29 -3
- package/src/agent/components/agent-message-body.tsx +13 -3
- package/src/agent/components/approval-card.tsx +1 -1
- package/src/agent/components/composer-menu.tsx +4 -1
- package/src/agent/components/composer-place.tsx +144 -0
- package/src/agent/components/composer.tsx +18 -0
- package/src/agent/components/computer-place.tsx +136 -0
- package/src/agent/components/context-meter.tsx +419 -0
- package/src/agent/components/conversation-panel.tsx +1 -1
- package/src/agent/components/message-parts.tsx +72 -6
- package/src/agent/components/message-view.tsx +74 -17
- package/src/agent/components/transcript.tsx +62 -5
- package/src/agent/components/web-fetch-tool-view.tsx +94 -29
- package/src/agent/conversation.ts +33 -3
- package/src/agent/delegation/child-parts.tsx +1 -1
- package/src/agent/format.ts +21 -1
- package/src/agent/hooks/use-agent-conversation.ts +200 -6
- package/src/agent/hooks/use-new-thread-place.ts +170 -0
- package/src/agent/hooks/use-thread-stream.ts +7 -0
- package/src/agent/i18n/en.ts +123 -0
- package/src/agent/i18n/fr.ts +121 -0
- package/src/agent/live-run.ts +24 -3
- package/src/agent/observed-conversation.tsx +3 -0
- package/src/agent/parts.ts +10 -0
- package/src/agent/run-presentation.ts +3 -0
- package/src/agent/tool-views/built-in.tsx +26 -11
- package/src/agent/types.ts +4 -0
- package/src/agent/utils/web-fetch.ts +89 -10
- package/src/agent/utils/web-search.ts +67 -28
- package/src/codegen.ts +134 -18
- package/src/index.ts +4 -2
- package/src/locale-messages.ts +12 -31
- package/src/metadata.ts +1 -33
- package/src/pages/{observability → console}/action-run.tsx +11 -10
- package/src/pages/{data → console/data}/connectors.tsx +11 -11
- package/src/pages/{data → console/data}/datasets.tsx +35 -16
- package/src/pages/{data → console/data}/messages.ts +13 -1
- package/src/pages/{data → console/data}/pipeline-canvas.tsx +1 -1
- package/src/pages/{data → console/data}/pipelines.tsx +11 -11
- package/src/pages/console/data/producer.tsx +90 -0
- package/src/pages/{data → console/data}/projections.tsx +11 -11
- package/src/pages/{data → console/data}/schema.tsx +1 -1
- package/src/pages/{data → console/data}/shared.tsx +2 -1
- package/src/pages/{data → console/data}/sync-button.tsx +1 -1
- package/src/pages/{data → console/data}/syncs.tsx +12 -12
- package/src/pages/{observability → console}/logs.tsx +10 -10
- package/src/pages/{observability → console}/messages.ts +9 -107
- package/src/pages/console/ontology/action-runs.tsx +247 -0
- package/src/pages/{ontology → console/ontology}/actions.tsx +57 -10
- package/src/pages/{ontology → console/ontology}/components/action-button.tsx +5 -5
- package/src/pages/{ontology → console/ontology}/graph.tsx +6 -6
- package/src/pages/{ontology → console/ontology}/lib/live-update-keys.ts +10 -1
- package/src/pages/console/ontology/lineage/action-name.ts +19 -0
- package/src/pages/console/ontology/lineage/dataset-steps.tsx +127 -0
- package/src/pages/console/ontology/lineage/links.tsx +45 -0
- package/src/pages/console/ontology/lineage/messages.ts +117 -0
- package/src/pages/console/ontology/lineage/model.ts +176 -0
- package/src/pages/console/ontology/lineage/properties-panel.tsx +95 -0
- package/src/pages/console/ontology/lineage/property-source.tsx +60 -0
- package/src/pages/console/ontology/lineage/query.ts +21 -0
- package/src/pages/console/ontology/lineage/requester.tsx +73 -0
- package/src/pages/console/ontology/lineage/separated.tsx +33 -0
- package/src/pages/console/ontology/lineage/summary.tsx +58 -0
- package/src/pages/console/ontology/lineage/trail-step.tsx +71 -0
- package/src/pages/console/ontology/lineage/trail.tsx +346 -0
- package/src/pages/console/ontology/lineage/value-lineage-panel.tsx +146 -0
- package/src/pages/{ontology → console/ontology}/object-page.tsx +22 -14
- package/src/pages/{ontology → console/ontology}/object-type.tsx +6 -6
- package/src/pages/{ontology → console/ontology}/object-types.tsx +7 -7
- package/src/pages/{ontology → console/ontology}/objects.tsx +6 -6
- package/src/pages/{ontology → console/ontology}/rules.tsx +10 -10
- package/src/pages/{ontology → console/ontology}/workflow.tsx +9 -9
- package/src/pages/{ontology → console/ontology}/workflows/agent-execution-panel.tsx +3 -3
- package/src/pages/{ontology → console/ontology}/workflows/intervention-panel.tsx +1 -1
- package/src/pages/{ontology → console/ontology}/workflows/node-execution-panel.tsx +2 -2
- package/src/pages/{ontology → console/ontology}/workflows/request-run-dialog.tsx +1 -1
- package/src/pages/{ontology → console/ontology}/workflows/run-debug-section.tsx +1 -1
- package/src/pages/{ontology → console/ontology}/workflows/utils.ts +2 -2
- package/src/pages/{ontology → console/ontology}/workflows/workflow-card.tsx +2 -2
- package/src/pages/{ontology → console/ontology}/workflows.tsx +5 -5
- package/src/pages/{observability → console}/workflow-run.tsx +18 -13
- package/src/pages/routes.ts +38 -16
- package/src/pages/section-page.tsx +3 -13
- package/src/pages/section-ui.tsx +74 -0
- package/src/pages/{observability → settings}/activity/messages.ts +1 -1
- package/src/pages/{observability → settings}/activity/page.tsx +3 -3
- package/src/pages/{observability → settings}/activity/period.ts +1 -1
- package/src/pages/{observability → settings}/activity/thread.tsx +5 -5
- package/src/pages/{observability → settings}/activity/timeline.tsx +2 -2
- package/src/pages/settings/controls.tsx +9 -4
- package/src/pages/settings/members.tsx +493 -203
- package/src/pages/settings/memory-editors.tsx +310 -0
- package/src/pages/settings/memory-entries.ts +10 -22
- package/src/pages/settings/memory-files.ts +37 -53
- package/src/pages/settings/memory-history.tsx +185 -194
- package/src/pages/settings/memory-note.tsx +710 -0
- package/src/pages/settings/memory.tsx +287 -776
- package/src/pages/settings/messages.ts +95 -26
- package/src/pages/settings/service-accounts.tsx +14 -12
- package/src/pages/settings/usage/breakdown.tsx +424 -0
- package/src/pages/settings/usage/call-detail.tsx +283 -0
- package/src/pages/settings/usage/filter-menu.tsx +183 -0
- package/src/pages/{observability/ai-usage → settings/usage}/format.ts +0 -156
- package/src/pages/settings/usage/messages.ts +566 -0
- package/src/pages/settings/usage/page.tsx +567 -0
- package/src/pages/settings/usage/runs.tsx +774 -0
- package/src/pages/settings/usage/segmented.tsx +38 -0
- package/src/pages/settings/usage/spend-chart.tsx +334 -0
- package/src/pages/settings/usage/spend-model.ts +336 -0
- package/src/pages/values.tsx +25 -3
- package/src/pages.ts +26 -30
- package/src/sections/catalog.ts +93 -89
- package/src/sections/counts.ts +31 -12
- package/src/sections/sections.tsx +29 -48
- package/src/session.ts +12 -0
- package/src/shared-unavailable.ts +13 -0
- package/src/shell/user-menu.tsx +1 -1
- package/dist/chunk-53z5653y.js.map +0 -11
- package/dist/chunk-gq6xek89.js.map +0 -10
- package/dist/chunk-sw3pyqgy.js.map +0 -10
- package/dist/chunk-yvhzn4ye.js +0 -98
- package/dist/chunk-yvhzn4ye.js.map +0 -10
- package/dist/pages/data/connectors.d.ts +0 -5
- package/dist/pages/data/connectors.d.ts.map +0 -1
- package/dist/pages/data/datasets.d.ts.map +0 -1
- package/dist/pages/data/live-updates.d.ts.map +0 -1
- package/dist/pages/data/messages.d.ts.map +0 -1
- package/dist/pages/data/pipeline-canvas.d.ts.map +0 -1
- package/dist/pages/data/pipelines.d.ts +0 -9
- package/dist/pages/data/pipelines.d.ts.map +0 -1
- package/dist/pages/data/projections.d.ts.map +0 -1
- package/dist/pages/data/schema.d.ts.map +0 -1
- package/dist/pages/data/shared.d.ts.map +0 -1
- package/dist/pages/data/sync-button.d.ts.map +0 -1
- package/dist/pages/data/syncs.d.ts +0 -5
- package/dist/pages/data/syncs.d.ts.map +0 -1
- package/dist/pages/observability/action-run.d.ts.map +0 -1
- package/dist/pages/observability/activity/calendar.d.ts.map +0 -1
- package/dist/pages/observability/activity/connections.d.ts.map +0 -1
- package/dist/pages/observability/activity/format.d.ts.map +0 -1
- package/dist/pages/observability/activity/messages.d.ts.map +0 -1
- package/dist/pages/observability/activity/meta-items.d.ts.map +0 -1
- package/dist/pages/observability/activity/page.d.ts +0 -6
- package/dist/pages/observability/activity/page.d.ts.map +0 -1
- package/dist/pages/observability/activity/period.d.ts.map +0 -1
- package/dist/pages/observability/activity/steps.d.ts.map +0 -1
- package/dist/pages/observability/activity/thread.d.ts +0 -6
- package/dist/pages/observability/activity/thread.d.ts.map +0 -1
- package/dist/pages/observability/activity/timeline.d.ts.map +0 -1
- package/dist/pages/observability/activity/users.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/calls.d.ts +0 -27
- package/dist/pages/observability/ai-usage/calls.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/charts.d.ts +0 -23
- package/dist/pages/observability/ai-usage/charts.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/format.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/kinds.d.ts +0 -40
- package/dist/pages/observability/ai-usage/kinds.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/limits.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/messages.d.ts +0 -493
- package/dist/pages/observability/ai-usage/messages.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/page.d.ts +0 -6
- package/dist/pages/observability/ai-usage/page.d.ts.map +0 -1
- package/dist/pages/observability/live-updates.d.ts.map +0 -1
- package/dist/pages/observability/logs.d.ts.map +0 -1
- package/dist/pages/observability/messages.d.ts.map +0 -1
- package/dist/pages/observability/runs.d.ts +0 -7
- package/dist/pages/observability/runs.d.ts.map +0 -1
- package/dist/pages/observability/workflow-run.d.ts.map +0 -1
- package/dist/pages/ontology/actions.d.ts +0 -3
- package/dist/pages/ontology/actions.d.ts.map +0 -1
- package/dist/pages/ontology/components/action-button.d.ts.map +0 -1
- package/dist/pages/ontology/components/action-param-null-control.d.ts.map +0 -1
- package/dist/pages/ontology/components/collection-toolbar.d.ts.map +0 -1
- package/dist/pages/ontology/components/common.d.ts.map +0 -1
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +0 -1
- package/dist/pages/ontology/components/object-filter-popover.d.ts.map +0 -1
- package/dist/pages/ontology/components/object-icon.d.ts.map +0 -1
- package/dist/pages/ontology/components/object-query-bar.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-chart.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-grid.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-tile.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-value.d.ts.map +0 -1
- package/dist/pages/ontology/components/usage-bar.d.ts.map +0 -1
- package/dist/pages/ontology/components/user-picker.d.ts.map +0 -1
- package/dist/pages/ontology/graph.d.ts +0 -6
- package/dist/pages/ontology/graph.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +0 -1
- package/dist/pages/ontology/lib/action-params.d.ts.map +0 -1
- package/dist/pages/ontology/lib/format-value.d.ts.map +0 -1
- package/dist/pages/ontology/lib/labels.d.ts.map +0 -1
- package/dist/pages/ontology/lib/live-update-keys.d.ts.map +0 -1
- package/dist/pages/ontology/lib/object-query.d.ts.map +0 -1
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +0 -1
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +0 -1
- package/dist/pages/ontology/lib/telemetry-history.d.ts.map +0 -1
- package/dist/pages/ontology/lib/time.d.ts.map +0 -1
- package/dist/pages/ontology/lib/user-preferences.d.ts.map +0 -1
- package/dist/pages/ontology/object-page.d.ts.map +0 -1
- package/dist/pages/ontology/object-type.d.ts +0 -3
- package/dist/pages/ontology/object-type.d.ts.map +0 -1
- package/dist/pages/ontology/object-types.d.ts +0 -7
- package/dist/pages/ontology/object-types.d.ts.map +0 -1
- package/dist/pages/ontology/objects.d.ts +0 -6
- package/dist/pages/ontology/objects.d.ts.map +0 -1
- package/dist/pages/ontology/rules.d.ts.map +0 -1
- package/dist/pages/ontology/workflow.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/run-input-form.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/run-progress.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/schema-shape.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/status-badge.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/utils.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/workflow-card.d.ts.map +0 -1
- package/dist/pages/ontology/workflows.d.ts +0 -3
- package/dist/pages/ontology/workflows.d.ts.map +0 -1
- package/dist/pages/settings/memory-contents.d.ts +0 -30
- package/dist/pages/settings/memory-contents.d.ts.map +0 -1
- package/src/pages/observability/ai-usage/calls.tsx +0 -585
- package/src/pages/observability/ai-usage/charts.tsx +0 -126
- package/src/pages/observability/ai-usage/kinds.tsx +0 -156
- package/src/pages/observability/ai-usage/messages.ts +0 -523
- package/src/pages/observability/ai-usage/page.tsx +0 -923
- package/src/pages/observability/runs.tsx +0 -732
- package/src/pages/settings/memory-contents.tsx +0 -173
- /package/dist/{chunk-pkcm8rn8.js.map → chunk-4j3c3p72.js.map} +0 -0
- /package/dist/{chunk-hdbmj6f0.js.map → chunk-j8g956dt.js.map} +0 -0
- /package/dist/{chunk-k4epnkcr.js.map → chunk-kwbw4dyk.js.map} +0 -0
- /package/dist/pages/{data → console/data}/live-updates.d.ts +0 -0
- /package/dist/pages/{data → console/data}/schema.d.ts +0 -0
- /package/dist/pages/{data → console/data}/shared.d.ts +0 -0
- /package/dist/pages/{data → console/data}/sync-button.d.ts +0 -0
- /package/dist/pages/{observability → console}/live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/action-button.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/action-param-null-control.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/collection-toolbar.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/common.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/file-ref-upload-field.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/object-filter-popover.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/object-icon.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/object-query-bar.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-chart.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-grid.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-tile.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-value.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/usage-bar.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/user-picker.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/object-live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/object-telemetry-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/object-type-counts.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/rule-live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/workflow-live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/action-params.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/format-value.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/labels.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/object-query.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/ontology-graph-layout.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/ontology-graph-links.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/telemetry-history.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/time.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/user-preferences.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/object-page.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/intervention-panel.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/request-run-dialog.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/run-debug-section.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/run-input-form.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/run-progress.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/schema-shape.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/status-badge.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/utils.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/workflow-card.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/calendar.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/connections.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/format.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/meta-items.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/steps.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/timeline.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/users.d.ts +0 -0
- /package/dist/pages/{observability/ai-usage → settings/usage}/limits.d.ts +0 -0
- /package/src/pages/{data → console/data}/live-updates.ts +0 -0
- /package/src/pages/{observability → console}/live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/components/action-param-null-control.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/collection-toolbar.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/common.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/file-ref-upload-field.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/object-filter-popover.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/object-icon.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/object-query-bar.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-chart.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-grid.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-tile.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-value.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/usage-bar.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/user-picker.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/object-live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/object-telemetry-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/object-type-counts.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/rule-live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/workflow-live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/action-params.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/format-value.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/labels.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/object-query.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/ontology-graph-layout.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/ontology-graph-links.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/telemetry-history.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/time.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/user-preferences.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/run-input-form.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/run-progress.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/schema-shape.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/status-badge.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/calendar.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/connections.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/format.ts +0 -0
- /package/src/pages/{observability → settings}/activity/meta-items.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/steps.ts +0 -0
- /package/src/pages/{observability → settings}/activity/users.tsx +0 -0
- /package/src/pages/{observability/ai-usage → settings/usage}/limits.tsx +0 -0
package/dist/session.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import { type GetAuthSessionResponse } from "@sixb/client";
|
|
|
3
3
|
export type CurrentUser = Extract<GetAuthSessionResponse, {
|
|
4
4
|
readonly authenticated: true;
|
|
5
5
|
}>["user"];
|
|
6
|
+
/** Which Settings pages about the project the signed-in person may open. */
|
|
7
|
+
export type SessionAccess = Extract<GetAuthSessionResponse, {
|
|
8
|
+
readonly authenticated: true;
|
|
9
|
+
}>["access"];
|
|
6
10
|
/**
|
|
7
11
|
* The signed-in person, or `null` when auth is off or nobody is signed in.
|
|
8
12
|
*
|
|
@@ -10,6 +14,8 @@ export type CurrentUser = Extract<GetAuthSessionResponse, {
|
|
|
10
14
|
* Sixb app this returns at once instead of fetching the session again.
|
|
11
15
|
*/
|
|
12
16
|
export declare function useCurrentUser(): CurrentUser | null;
|
|
17
|
+
/** What the signed-in person may open, or `null` when nobody is signed in. */
|
|
18
|
+
export declare function useSessionAccess(): SessionAccess | null;
|
|
13
19
|
/**
|
|
14
20
|
* Returns a function that signs out and reloads, which sends the browser to sign in again. The
|
|
15
21
|
* promise rejects when the API refuses, so a button can recover.
|
package/dist/session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAW,MAAM,cAAc,CAAA;AAKnE,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,EAAE;IAAE,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnG;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,WAAW,GAAG,IAAI,CAGnD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,OAAO,CAAC,IAAI,CAAC,CAKhD"}
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAW,MAAM,cAAc,CAAA;AAKnE,8EAA8E;AAC9E,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,EAAE;IAAE,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnG,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,sBAAsB,EACtB;IAAE,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAA;CAAE,CACjC,CAAC,QAAQ,CAAC,CAAA;AAEX;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,WAAW,GAAG,IAAI,CAGnD;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,aAAa,GAAG,IAAI,CAGvD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,OAAO,CAAC,IAAI,CAAC,CAKhD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `app/shared-unavailable.tsx` receives when a shared link is invalid, expired, or revoked.
|
|
3
|
+
*
|
|
4
|
+
* The screen renders without a session, a router or the data client: the link opened nothing, so
|
|
5
|
+
* there is nothing of the project to read. `title` and `description` are Sixb's own text, in the
|
|
6
|
+
* reader's language, for a screen that keeps them.
|
|
7
|
+
*/
|
|
8
|
+
export interface SharedUnavailableProps {
|
|
9
|
+
/** The reader's language, negotiated from the browser: `"en"` or `"fr"`. */
|
|
10
|
+
readonly locale: string;
|
|
11
|
+
readonly title: string;
|
|
12
|
+
readonly description: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=shared-unavailable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-unavailable.d.ts","sourceRoot":"","sources":["../src/shared-unavailable.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -12,7 +12,7 @@ export interface UserMenuItemProps {
|
|
|
12
12
|
readonly children: ReactNode;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* The signed-in person, Artifacts and the built-in sections they may open,
|
|
15
|
+
* The signed-in person, Artifacts and the built-in sections they may open, the Console and
|
|
16
16
|
* Settings, theme switching and sign-out, at the foot of any sidebar. With sign-in off it is the
|
|
17
17
|
* way into the sections.
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixb/app",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Custom app toolkit for Sixb projects — route scanning, dev serving, and production builds",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixb",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"prepack": "bun run build"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@sixb/client": "^0.1
|
|
58
|
-
"@sixb/core": "^0.
|
|
59
|
-
"@sixb/ui": "^0.
|
|
57
|
+
"@sixb/client": "^0.2.1",
|
|
58
|
+
"@sixb/core": "^0.2.2",
|
|
59
|
+
"@sixb/ui": "^0.2.0",
|
|
60
60
|
"@tailwindcss/cli": "^4.2.2",
|
|
61
61
|
"@xyflow/react": "^12.10.2",
|
|
62
62
|
"lucide-react": "^0.562.0",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { heldCallsInOutput } from "./approvals"
|
|
2
|
+
import { backgroundRowLabel, isBackgroundStart } from "./background/interpret"
|
|
2
3
|
import {
|
|
3
4
|
classifyCommand,
|
|
4
5
|
coerceBashInput,
|
|
@@ -12,7 +13,7 @@ import { childQuestions, describeMessageAgent } from "./message-agent/interpret"
|
|
|
12
13
|
import type { NormalizedPart, NormalizedTool } from "./parts"
|
|
13
14
|
import { isPublishTool, publishTitle } from "./publish-artifact/interpret"
|
|
14
15
|
import { coerceReadInput, coerceReadOutput, describeRead } from "./read/interpret"
|
|
15
|
-
import { webFetchUrl } from "./utils/web-fetch"
|
|
16
|
+
import { webFetchQuestion, webFetchUrl } from "./utils/web-fetch"
|
|
16
17
|
import { describeViewFile } from "./view-file/interpret"
|
|
17
18
|
|
|
18
19
|
/** A short, present-tense label for the newest visible step in a live work group. */
|
|
@@ -39,13 +40,16 @@ function toolProgressLabel(
|
|
|
39
40
|
const domain = webFetchUrl(tool.input)?.hostname.replace(/^www\./, "") ?? messages.web.webPage
|
|
40
41
|
if (tool.state === "output-error") return messages.web.readFailed(domain)
|
|
41
42
|
if (tool.state === "output-available") return messages.web.reviewing(domain)
|
|
42
|
-
return messages.web.reading(domain)
|
|
43
|
+
return webFetchQuestion(tool.input) ? messages.web.asking(domain) : messages.web.reading(domain)
|
|
43
44
|
}
|
|
44
45
|
if (tool.toolName === "web_search") {
|
|
45
46
|
if (tool.state === "output-error") return messages.web.continuingAfterFailure
|
|
46
47
|
if (tool.state === "output-available") return messages.web.reviewingResults
|
|
47
48
|
return messages.web.searching
|
|
48
49
|
}
|
|
50
|
+
if (tool.toolName === "bash_output" || tool.toolName === "bash_stop" || isBackgroundStart(tool)) {
|
|
51
|
+
return backgroundRowLabel(tool, messages)
|
|
52
|
+
}
|
|
49
53
|
if (tool.toolName === "bash") {
|
|
50
54
|
if (tool.state === "input-streaming") return messages.bash.preparing
|
|
51
55
|
if (tool.state === "output-available" && heldCallsInOutput(tool.output).length > 0) {
|
package/src/agent/agent-chat.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { type ReactNode, useId } from "react"
|
|
|
5
5
|
import { ArtifactPeopleContext } from "../artifacts/people"
|
|
6
6
|
import type { ArtifactTarget } from "../artifacts/target"
|
|
7
7
|
import { ArtifactPanelRoot } from "./artifact-panel"
|
|
8
|
+
import { ComputerBadge, ComputerOfflineNotice } from "./components/computer-place"
|
|
8
9
|
import { ConversationPanel } from "./components/conversation-panel"
|
|
9
10
|
import { SandboxRecovery } from "./components/sandbox-recovery"
|
|
10
11
|
import { SharedThreadNotice } from "./components/shared-thread-notice"
|
|
@@ -94,6 +95,7 @@ export function AgentChat({
|
|
|
94
95
|
const conversationHeaderActions =
|
|
95
96
|
threadId || hostHeaderActions ? (
|
|
96
97
|
<>
|
|
98
|
+
{conversation.computer ? <ComputerBadge computer={conversation.computer} /> : null}
|
|
97
99
|
{threadId ? <ThreadArtifactsMenu threadId={threadId} /> : null}
|
|
98
100
|
{sharingThread ? (
|
|
99
101
|
<ThreadPeople
|
|
@@ -172,6 +174,8 @@ export function AgentChat({
|
|
|
172
174
|
composerNotice={
|
|
173
175
|
participant ? (
|
|
174
176
|
<SharedThreadNotice owner={owner} sharing={sharing} onComputer={readOnly} />
|
|
177
|
+
) : conversation.computerNoticeProps ? (
|
|
178
|
+
<ComputerOfflineNotice {...conversation.computerNoticeProps} />
|
|
175
179
|
) : undefined
|
|
176
180
|
}
|
|
177
181
|
readOnly={readOnly}
|
package/src/agent/agent.css
CHANGED
|
@@ -35,6 +35,24 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/* What a fetched page said, inside its row: one reading size, headings marked by weight alone. */
|
|
39
|
+
.prose.sixb-web-fetch {
|
|
40
|
+
font-size: 13px;
|
|
41
|
+
line-height: 1.6;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.prose.sixb-web-fetch-page {
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: var(--muted-foreground);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.prose.sixb-web-fetch :is(h1, h2, h3, h4, h5, h6) {
|
|
50
|
+
margin: 0.75em 0 0.25em;
|
|
51
|
+
font-size: inherit;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
color: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
38
56
|
@keyframes sixb-reasoning-max {
|
|
39
57
|
0%,
|
|
40
58
|
100% {
|
|
@@ -299,6 +317,35 @@
|
|
|
299
317
|
0 0 0 0.5px rgb(255 255 255 / 0.18);
|
|
300
318
|
}
|
|
301
319
|
|
|
320
|
+
/*
|
|
321
|
+
* A composer menu that holds a dense reading, such as the context meter's details: the same edge,
|
|
322
|
+
* shadow and motion as the glass, on the popover's opaque surface, so nothing behind it shows
|
|
323
|
+
* through its figures.
|
|
324
|
+
*/
|
|
325
|
+
.sixb-composer-glass.sixb-composer-solid,
|
|
326
|
+
:is(.dark *).sixb-composer-glass.sixb-composer-solid {
|
|
327
|
+
background: var(--popover);
|
|
328
|
+
-webkit-backdrop-filter: none;
|
|
329
|
+
backdrop-filter: none;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* The room a context meter keeps for the model's answer: fine diagonal hatching, never a color. */
|
|
333
|
+
.context-meter-hatch {
|
|
334
|
+
background: repeating-linear-gradient(
|
|
335
|
+
-45deg,
|
|
336
|
+
rgb(0 0 0 / 0.14) 0 1.5px,
|
|
337
|
+
rgb(0 0 0 / 0.04) 1.5px 4px
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
:is(.dark *).context-meter-hatch {
|
|
342
|
+
background: repeating-linear-gradient(
|
|
343
|
+
-45deg,
|
|
344
|
+
rgb(255 255 255 / 0.2) 0 1.5px,
|
|
345
|
+
rgb(255 255 255 / 0.05) 1.5px 4px
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
|
|
302
349
|
/* Send pops in once there is something to send. */
|
|
303
350
|
.sixb-composer-send {
|
|
304
351
|
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from "@sixb/ui/components"
|
|
2
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
3
|
+
import { ChevronRight, CircleCheck, CircleStop, CircleX, Square } from "lucide-react"
|
|
4
|
+
import { useEffect, useRef, useState } from "react"
|
|
5
|
+
import { useNow } from "../delegation/child-parts"
|
|
6
|
+
import { formatWorked } from "../delegation/interpret"
|
|
7
|
+
import { useAgentMessages } from "../i18n"
|
|
8
|
+
import type { AgentMessages } from "../i18n/en"
|
|
9
|
+
import type { NormalizedTool } from "../parts"
|
|
10
|
+
import { BackgroundToolRow } from "./background-tool-row"
|
|
11
|
+
import { useBackgroundCards } from "./context"
|
|
12
|
+
import {
|
|
13
|
+
type BackgroundCardState,
|
|
14
|
+
type BackgroundStart,
|
|
15
|
+
backgroundCardState,
|
|
16
|
+
backgroundStartOf,
|
|
17
|
+
} from "./interpret"
|
|
18
|
+
|
|
19
|
+
/** How many lines of what the agent read the card shows: the newest. */
|
|
20
|
+
const OUTPUT_LINES = 60
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A command the agent started in the background, as its step in the work: the card that says how
|
|
24
|
+
* it stands, which only a reader who opens the steps sees. On its way, or outside a transcript, it
|
|
25
|
+
* is a quiet line like any other step.
|
|
26
|
+
*/
|
|
27
|
+
export function BackgroundCommandStep({ tool }: { readonly tool: NormalizedTool }) {
|
|
28
|
+
const context = useBackgroundCards()
|
|
29
|
+
const start = backgroundStartOf(tool)
|
|
30
|
+
if (!context || start?.kind !== "started") return <BackgroundToolRow tool={tool} />
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
// The steps scroll past their height: the card keeps its own rather than shrink with them.
|
|
34
|
+
<div className="min-w-0 shrink-0 overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground">
|
|
35
|
+
<BackgroundCommandCard start={start} />
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* One background command as it stands now: what runs, for how long or how it ended, the newest of
|
|
42
|
+
* what the agent read of its output, and, for its owner while it runs on their computer, Stop. Its
|
|
43
|
+
* calls, its `sixb`'s reports and its turn make one state (see `backgroundCardState`).
|
|
44
|
+
*/
|
|
45
|
+
function BackgroundCommandCard({ start }: { readonly start: BackgroundStart }) {
|
|
46
|
+
const context = useBackgroundCards()
|
|
47
|
+
const messages = useAgentMessages()
|
|
48
|
+
const labels = messages.background
|
|
49
|
+
const [stopAsked, setStopAsked] = useState(false)
|
|
50
|
+
const [stopFailed, setStopFailed] = useState(false)
|
|
51
|
+
const [open, setOpen] = useState(false)
|
|
52
|
+
|
|
53
|
+
const calls = start.kind === "started" ? context?.thread.commands.get(start.key) : undefined
|
|
54
|
+
const state = context
|
|
55
|
+
? backgroundCardState({
|
|
56
|
+
start,
|
|
57
|
+
...(calls ? { calls } : {}),
|
|
58
|
+
source: context.source,
|
|
59
|
+
liveRunId: context.liveRunId,
|
|
60
|
+
stopAsked,
|
|
61
|
+
})
|
|
62
|
+
: null
|
|
63
|
+
const now = useNow(state?.status === "running")
|
|
64
|
+
if (!context || !state) return null
|
|
65
|
+
|
|
66
|
+
const stop = context.stop
|
|
67
|
+
const canStop = state.canStop && stop !== undefined && start.kind === "started"
|
|
68
|
+
const askStop = () => {
|
|
69
|
+
if (!canStop || start.kind !== "started") return
|
|
70
|
+
setStopAsked(true)
|
|
71
|
+
setStopFailed(false)
|
|
72
|
+
stop({ id: start.id, startedAt: start.startedAt }).catch(() => {
|
|
73
|
+
setStopAsked(false)
|
|
74
|
+
setStopFailed(true)
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const command = firstLine(state.command)
|
|
79
|
+
const output = tail(state.output)
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<Collapsible
|
|
83
|
+
open={open}
|
|
84
|
+
onOpenChange={setOpen}
|
|
85
|
+
role="region"
|
|
86
|
+
aria-label={labels.card(command)}
|
|
87
|
+
data-background-status={state.status}
|
|
88
|
+
className="min-w-0"
|
|
89
|
+
>
|
|
90
|
+
{/* Said once per change of how it stands, never per tick of its clock. */}
|
|
91
|
+
<span className="sr-only" aria-live="polite">
|
|
92
|
+
{statusWords(state, labels)}
|
|
93
|
+
</span>
|
|
94
|
+
|
|
95
|
+
<div className="flex min-w-0 items-center gap-3 px-3 py-2.5 sm:px-3.5">
|
|
96
|
+
<StatusMark state={state} />
|
|
97
|
+
<div className="min-w-0 flex-1">
|
|
98
|
+
<p
|
|
99
|
+
className="truncate font-mono text-[12.5px] leading-5 text-foreground"
|
|
100
|
+
title={state.command}
|
|
101
|
+
>
|
|
102
|
+
{command}
|
|
103
|
+
</p>
|
|
104
|
+
<p className="truncate text-xs leading-5 text-muted-foreground tabular-nums">
|
|
105
|
+
<StatusLine state={state} now={now} messages={messages} />
|
|
106
|
+
</p>
|
|
107
|
+
</div>
|
|
108
|
+
<div className="flex shrink-0 items-center gap-1">
|
|
109
|
+
{output.lines.length > 0 ? (
|
|
110
|
+
<CollapsibleTrigger
|
|
111
|
+
aria-label={labels.output}
|
|
112
|
+
title={labels.lines(output.count)}
|
|
113
|
+
className="group flex h-6 items-center gap-0.5 rounded-md px-1.5 text-xs text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-[state=open]:text-foreground"
|
|
114
|
+
>
|
|
115
|
+
{/* A phone keeps the room for the command: the chevron says it opens. */}
|
|
116
|
+
<span className="hidden sm:inline">{labels.output}</span>
|
|
117
|
+
<ChevronRight
|
|
118
|
+
className="size-3.5 shrink-0 transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none"
|
|
119
|
+
aria-hidden="true"
|
|
120
|
+
/>
|
|
121
|
+
</CollapsibleTrigger>
|
|
122
|
+
) : null}
|
|
123
|
+
{canStop ? (
|
|
124
|
+
<Button
|
|
125
|
+
type="button"
|
|
126
|
+
variant="outline"
|
|
127
|
+
size="xs"
|
|
128
|
+
onClick={askStop}
|
|
129
|
+
title={labels.stopHint}
|
|
130
|
+
className="rounded-full px-2.5 text-muted-foreground hover:text-foreground"
|
|
131
|
+
>
|
|
132
|
+
<Square className="size-2 fill-current" aria-hidden="true" />
|
|
133
|
+
{labels.stop}
|
|
134
|
+
</Button>
|
|
135
|
+
) : null}
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
{stopFailed ? (
|
|
140
|
+
<p
|
|
141
|
+
role="alert"
|
|
142
|
+
className="-mt-1 px-3 pb-2.5 pl-10 text-xs text-destructive sm:pl-[2.875rem]"
|
|
143
|
+
>
|
|
144
|
+
{labels.stopFailed}
|
|
145
|
+
</p>
|
|
146
|
+
) : null}
|
|
147
|
+
|
|
148
|
+
{output.lines.length > 0 ? (
|
|
149
|
+
<CollapsibleContent>
|
|
150
|
+
<OutputTail lines={output.lines} />
|
|
151
|
+
{(state.truncated || output.cut) && state.outputPath ? (
|
|
152
|
+
<p className="-mt-1 truncate px-3 pb-2.5 font-mono text-[11px] text-muted-foreground/70 sm:px-3.5">
|
|
153
|
+
{labels.earlierOutput(state.outputPath)}
|
|
154
|
+
</p>
|
|
155
|
+
) : null}
|
|
156
|
+
</CollapsibleContent>
|
|
157
|
+
) : null}
|
|
158
|
+
</Collapsible>
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** The newest output, scrolled to its end as it opens: a tail reads from the bottom. */
|
|
163
|
+
function OutputTail({ lines }: { readonly lines: readonly string[] }) {
|
|
164
|
+
const ref = useRef<HTMLPreElement>(null)
|
|
165
|
+
const text = lines.join("\n")
|
|
166
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: new output scrolls it again
|
|
167
|
+
useEffect(() => {
|
|
168
|
+
const pre = ref.current
|
|
169
|
+
if (pre) pre.scrollTop = pre.scrollHeight
|
|
170
|
+
}, [text])
|
|
171
|
+
|
|
172
|
+
return (
|
|
173
|
+
<pre
|
|
174
|
+
ref={ref}
|
|
175
|
+
className="scrollbar-thin mx-3 mb-3 max-h-56 overflow-auto overscroll-contain rounded-lg bg-muted/50 p-2.5 font-mono text-[11px] leading-relaxed whitespace-pre-wrap break-words text-foreground/90 sm:mx-3.5"
|
|
176
|
+
>
|
|
177
|
+
{text}
|
|
178
|
+
</pre>
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** Running pulses; an end reads at a glance: done, failed, stopped. */
|
|
183
|
+
function StatusMark({ state }: { readonly state: BackgroundCardState }) {
|
|
184
|
+
const box = "flex size-4 shrink-0 items-center justify-center"
|
|
185
|
+
|
|
186
|
+
if (state.status === "running" || state.status === "starting") {
|
|
187
|
+
const live = state.status === "running" && !state.stopping
|
|
188
|
+
return (
|
|
189
|
+
<span className={box} aria-hidden="true">
|
|
190
|
+
<span className="relative flex size-2">
|
|
191
|
+
{live ? (
|
|
192
|
+
<span className="absolute inline-flex size-full animate-ping rounded-full bg-emerald-500/50 motion-reduce:hidden" />
|
|
193
|
+
) : null}
|
|
194
|
+
<span
|
|
195
|
+
className={cn(
|
|
196
|
+
"relative inline-flex size-2 rounded-full",
|
|
197
|
+
live ? "bg-emerald-500" : "animate-pulse bg-muted-foreground/40"
|
|
198
|
+
)}
|
|
199
|
+
/>
|
|
200
|
+
</span>
|
|
201
|
+
</span>
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
if (state.status === "exited") {
|
|
205
|
+
return state.exitCode === 0 || state.exitCode === undefined ? (
|
|
206
|
+
<CircleCheck
|
|
207
|
+
className="size-4 shrink-0 text-emerald-600 dark:text-emerald-400"
|
|
208
|
+
aria-hidden="true"
|
|
209
|
+
/>
|
|
210
|
+
) : (
|
|
211
|
+
<CircleX className="size-4 shrink-0 text-red-600/85 dark:text-red-400" aria-hidden="true" />
|
|
212
|
+
)
|
|
213
|
+
}
|
|
214
|
+
if (state.status === "stopped") {
|
|
215
|
+
return <CircleStop className="size-4 shrink-0 text-muted-foreground" aria-hidden="true" />
|
|
216
|
+
}
|
|
217
|
+
return (
|
|
218
|
+
<span className={box} aria-hidden="true">
|
|
219
|
+
<span className="size-2 rounded-full bg-muted-foreground/35" />
|
|
220
|
+
</span>
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** How it stands, then for how long: `Running · 2m 14s`, `Failed · exit code 1 · 12s`. */
|
|
225
|
+
function StatusLine({
|
|
226
|
+
state,
|
|
227
|
+
now,
|
|
228
|
+
messages,
|
|
229
|
+
}: {
|
|
230
|
+
readonly state: BackgroundCardState
|
|
231
|
+
readonly now: number
|
|
232
|
+
readonly messages: AgentMessages
|
|
233
|
+
}) {
|
|
234
|
+
const labels = messages.background
|
|
235
|
+
const started = state.startedAt ? Date.parse(state.startedAt) : undefined
|
|
236
|
+
const ended = state.endedAt ? Date.parse(state.endedAt) : undefined
|
|
237
|
+
const ran =
|
|
238
|
+
started === undefined
|
|
239
|
+
? undefined
|
|
240
|
+
: state.status === "running"
|
|
241
|
+
? now - started
|
|
242
|
+
: ended === undefined
|
|
243
|
+
? undefined
|
|
244
|
+
: ended - started
|
|
245
|
+
const time = ran === undefined ? null : formatWorked(ran, messages.delegation)
|
|
246
|
+
|
|
247
|
+
const clauses: { readonly text: string; readonly tone?: "live" | "quiet" }[] = []
|
|
248
|
+
const words = statusWords(state, labels)
|
|
249
|
+
clauses.push({
|
|
250
|
+
text: words,
|
|
251
|
+
...(state.stopping || state.status === "starting" ? { tone: "live" as const } : {}),
|
|
252
|
+
})
|
|
253
|
+
if (time && !state.endedWith) clauses.push({ text: time })
|
|
254
|
+
if (state.status === "running" && !state.stopping && state.pending) {
|
|
255
|
+
clauses.push({ text: labels[state.pending], tone: "quiet" })
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return clauses.map((clause, index) => (
|
|
259
|
+
<span key={clause.text}>
|
|
260
|
+
{index > 0 ? <span className="text-muted-foreground/50"> · </span> : null}
|
|
261
|
+
<span
|
|
262
|
+
className={cn(
|
|
263
|
+
clause.tone === "live" && "shimmer motion-reduce:animate-none",
|
|
264
|
+
clause.tone === "quiet" && "text-muted-foreground/70"
|
|
265
|
+
)}
|
|
266
|
+
>
|
|
267
|
+
{clause.text}
|
|
268
|
+
</span>
|
|
269
|
+
</span>
|
|
270
|
+
))
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
function statusWords(state: BackgroundCardState, labels: AgentMessages["background"]): string {
|
|
274
|
+
if (state.stopping) return labels.stopping
|
|
275
|
+
switch (state.status) {
|
|
276
|
+
case "starting":
|
|
277
|
+
return labels.starting
|
|
278
|
+
case "running":
|
|
279
|
+
return labels.running
|
|
280
|
+
case "exited":
|
|
281
|
+
return labels.exited(state.exitCode ?? 0)
|
|
282
|
+
case "stopped":
|
|
283
|
+
return state.endedWith === "turn"
|
|
284
|
+
? labels.stoppedWithTurn
|
|
285
|
+
: state.endedWith === "sixb"
|
|
286
|
+
? labels.stoppedWithSixb
|
|
287
|
+
: labels.stopped
|
|
288
|
+
case "unknown":
|
|
289
|
+
return state.unreachable ? labels.unreachable : labels.unknown
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** The output's newest lines, and how many it has in all. */
|
|
294
|
+
function tail(output: string): {
|
|
295
|
+
readonly lines: readonly string[]
|
|
296
|
+
readonly count: number
|
|
297
|
+
readonly cut: boolean
|
|
298
|
+
} {
|
|
299
|
+
const trimmed = output.replace(/\s+$/, "")
|
|
300
|
+
if (!trimmed) return { lines: [], count: 0, cut: false }
|
|
301
|
+
const all = trimmed.split("\n")
|
|
302
|
+
return { lines: all.slice(-OUTPUT_LINES), count: all.length, cut: all.length > OUTPUT_LINES }
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function firstLine(command: string): string {
|
|
306
|
+
const lines = command.trim().split("\n")
|
|
307
|
+
return (lines[0] ?? "") + (lines.length > 1 ? " …" : "")
|
|
308
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Terminal } from "lucide-react"
|
|
2
|
+
import { ActivityStatusText } from "../components/activity-status"
|
|
3
|
+
import { useAgentMessages } from "../i18n"
|
|
4
|
+
import type { NormalizedTool } from "../parts"
|
|
5
|
+
import { toolResultValue } from "../parts"
|
|
6
|
+
import { useBackgroundCards } from "./context"
|
|
7
|
+
import { backgroundRowLabel } from "./interpret"
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A call that starts, reads or stops a background command, as one quiet line of the work: the
|
|
11
|
+
* card under the work is where the command stands, so the line only says what the agent did.
|
|
12
|
+
*/
|
|
13
|
+
export function BackgroundToolRow({ tool }: { readonly tool: NormalizedTool }) {
|
|
14
|
+
const messages = useAgentMessages()
|
|
15
|
+
const context = useBackgroundCards()
|
|
16
|
+
const running = tool.state === "input-streaming" || tool.state === "input-available"
|
|
17
|
+
const label = backgroundRowLabel(tool, messages)
|
|
18
|
+
const detail = commandNamed(tool, context?.thread.commands)
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div className="flex w-fit max-w-full items-center gap-1.5 text-[13px] leading-normal text-muted-foreground">
|
|
22
|
+
<Terminal className="size-3.5 shrink-0" />
|
|
23
|
+
{running ? (
|
|
24
|
+
<ActivityStatusText label={label} className="font-medium shimmer" />
|
|
25
|
+
) : (
|
|
26
|
+
<span className="min-w-0 truncate font-medium">{label}</span>
|
|
27
|
+
)}
|
|
28
|
+
{detail ? (
|
|
29
|
+
// A phone keeps the line for what the agent did.
|
|
30
|
+
<span className="hidden min-w-0 shrink truncate font-mono text-xs text-muted-foreground/60 sm:inline">
|
|
31
|
+
{detail}
|
|
32
|
+
</span>
|
|
33
|
+
) : null}
|
|
34
|
+
</div>
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** The command a call names: its own input, what it returned, or the start of that id. */
|
|
39
|
+
function commandNamed(
|
|
40
|
+
tool: NormalizedTool,
|
|
41
|
+
commands: ReadonlyMap<string, { readonly id: string; readonly command: string }> | undefined
|
|
42
|
+
): string {
|
|
43
|
+
const input = isRecord(tool.input) ? tool.input : {}
|
|
44
|
+
const output = toolResultValue(tool.output)
|
|
45
|
+
const named =
|
|
46
|
+
typeof input.command === "string"
|
|
47
|
+
? input.command
|
|
48
|
+
: isRecord(output) && typeof output.command === "string"
|
|
49
|
+
? output.command
|
|
50
|
+
: [...(commands?.values() ?? [])].reverse().find((command) => command.id === input.id)
|
|
51
|
+
?.command
|
|
52
|
+
const line = named?.trim().split("\n")[0] ?? ""
|
|
53
|
+
return line || (typeof input.id === "string" ? input.id : "")
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
57
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
58
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createContext, useContext } from "react"
|
|
2
|
+
import type { BackgroundSource, ThreadBackground } from "./interpret"
|
|
3
|
+
|
|
4
|
+
/** What a conversation knows of its background commands, and lets its reader do with them. */
|
|
5
|
+
export interface TranscriptBackground {
|
|
6
|
+
readonly source: BackgroundSource
|
|
7
|
+
/**
|
|
8
|
+
* Ask its computer to stop a command, which it does at once: its owner's, while their `sixb`
|
|
9
|
+
* runs it. Absent for anyone else.
|
|
10
|
+
*/
|
|
11
|
+
readonly stop?: (command: { readonly id: string; readonly startedAt: string }) => Promise<void>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** What the background command cards of a transcript read. */
|
|
15
|
+
export interface BackgroundCardsContext extends TranscriptBackground {
|
|
16
|
+
readonly thread: ThreadBackground
|
|
17
|
+
/** The turn streaming now, which runs the commands it started. */
|
|
18
|
+
readonly liveRunId: string | null
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Null outside a transcript, such as in a workflow's agent trace: no card is shown there. */
|
|
22
|
+
export const BackgroundCardsContext = createContext<BackgroundCardsContext | null>(null)
|
|
23
|
+
|
|
24
|
+
export function useBackgroundCards(): BackgroundCardsContext | null {
|
|
25
|
+
return useContext(BackgroundCardsContext)
|
|
26
|
+
}
|