@dungle-scrubs/admin-ui-soft 0.0.0-stage → 0.1.0
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/GUIDE.md +110 -0
- package/LICENSE +21 -0
- package/README.md +36 -2
- package/THIRD-PARTY-NOTICES.md +25 -0
- package/UPSTREAM-VENDORED-CHANGES.md +317 -0
- package/VENDORED-CHANGES.md +60 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/ai/compositions/agent-console/agent-console.d.ts +109 -0
- package/dist/ai/compositions/agent-console/agent-console.js +644 -0
- package/dist/ai/compositions/attention-feed/attention-feed.d.ts +127 -0
- package/dist/ai/compositions/attention-feed/attention-feed.js +626 -0
- package/dist/ai/compositions/conversation-browser/conversation-browser.d.ts +126 -0
- package/dist/ai/compositions/conversation-browser/conversation-browser.js +364 -0
- package/dist/ai/compositions/redaction-marker/redaction-marker.d.ts +42 -0
- package/dist/ai/compositions/redaction-marker/redaction-marker.js +202 -0
- package/dist/ai/compositions/run-inspector/json-view.js +164 -0
- package/dist/ai/compositions/run-inspector/run-inspector.d.ts +66 -0
- package/dist/ai/compositions/run-inspector/run-inspector.js +703 -0
- package/dist/ai/compositions/run-inspector/run-model.js +155 -0
- package/dist/ai/compositions/tool-approval/json-args.js +54 -0
- package/dist/ai/compositions/tool-approval/tool-approval.d.ts +57 -0
- package/dist/ai/compositions/tool-approval/tool-approval.js +331 -0
- package/dist/ai/compositions/tool-call-row/tool-call-row.js +74 -0
- package/dist/ai/compositions/transcript-viewer/to-thread-messages.js +65 -0
- package/dist/ai/compositions/transcript-viewer/transcript-viewer.d.ts +63 -0
- package/dist/ai/compositions/transcript-viewer/transcript-viewer.js +471 -0
- package/dist/ai/compositions/usage-meter/usage-format.js +107 -0
- package/dist/ai/compositions/usage-meter/usage-meter.d.ts +32 -0
- package/dist/ai/compositions/usage-meter/usage-meter.js +258 -0
- package/dist/ai/testing/mock-clock.d.ts +31 -0
- package/dist/ai/testing/mock-clock.js +66 -0
- package/dist/ai/testing/mock-reply.d.ts +70 -0
- package/dist/ai/testing/mock-reply.js +100 -0
- package/dist/ai/testing/mock-runtime.d.ts +86 -0
- package/dist/ai/testing/mock-runtime.js +384 -0
- package/dist/ai/types.d.ts +323 -0
- package/dist/ai.css +1088 -0
- package/dist/ai.d.ts +160 -0
- package/dist/ai.js +158 -0
- package/dist/components/assistant-ui/elements/activity-graph.d.ts +14 -0
- package/dist/components/assistant-ui/elements/activity-graph.js +69 -0
- package/dist/components/assistant-ui/elements/agent-card.d.ts +21 -0
- package/dist/components/assistant-ui/elements/agent-card.js +75 -0
- package/dist/components/assistant-ui/elements/agent-handoff.d.ts +13 -0
- package/dist/components/assistant-ui/elements/agent-handoff.js +47 -0
- package/dist/components/assistant-ui/elements/agent-plan.d.ts +16 -0
- package/dist/components/assistant-ui/elements/agent-plan.js +93 -0
- package/dist/components/assistant-ui/elements/agent-status.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/agent-status.aui.js +161 -0
- package/dist/components/assistant-ui/elements/agent-status.d.ts +17 -0
- package/dist/components/assistant-ui/elements/agent-status.js +47 -0
- package/dist/components/assistant-ui/elements/approval-card.d.ts +31 -0
- package/dist/components/assistant-ui/elements/approval-card.js +99 -0
- package/dist/components/assistant-ui/elements/artifact-card.d.ts +12 -0
- package/dist/components/assistant-ui/elements/artifact-card.js +47 -0
- package/dist/components/assistant-ui/elements/assistant-modal.aui.d.ts +7 -0
- package/dist/components/assistant-ui/elements/assistant-modal.aui.js +276 -0
- package/dist/components/assistant-ui/elements/assistant-sidebar.aui.d.ts +7 -0
- package/dist/components/assistant-ui/elements/assistant-sidebar.aui.js +18 -0
- package/dist/components/assistant-ui/elements/attachment.aui.d.ts +9 -0
- package/dist/components/assistant-ui/elements/attachment.aui.js +143 -0
- package/dist/components/assistant-ui/elements/background-inbox.d.ts +18 -0
- package/dist/components/assistant-ui/elements/background-inbox.js +65 -0
- package/dist/components/assistant-ui/elements/canvas-split.d.ts +25 -0
- package/dist/components/assistant-ui/elements/canvas-split.js +106 -0
- package/dist/components/assistant-ui/elements/chart.d.ts +19 -0
- package/dist/components/assistant-ui/elements/chart.js +105 -0
- package/dist/components/assistant-ui/elements/chat-panel.d.ts +15 -0
- package/dist/components/assistant-ui/elements/chat-panel.js +82 -0
- package/dist/components/assistant-ui/elements/checkpoint-history.d.ts +17 -0
- package/dist/components/assistant-ui/elements/checkpoint-history.js +60 -0
- package/dist/components/assistant-ui/elements/code-diff.d.ts +18 -0
- package/dist/components/assistant-ui/elements/code-diff.js +89 -0
- package/dist/components/assistant-ui/elements/code-runner.d.ts +15 -0
- package/dist/components/assistant-ui/elements/code-runner.js +108 -0
- package/dist/components/assistant-ui/elements/command-palette.d.ts +20 -0
- package/dist/components/assistant-ui/elements/command-palette.js +129 -0
- package/dist/components/assistant-ui/elements/comparison-card.d.ts +18 -0
- package/dist/components/assistant-ui/elements/comparison-card.js +58 -0
- package/dist/components/assistant-ui/elements/composer-trigger-popover.aui.d.ts +51 -0
- package/dist/components/assistant-ui/elements/composer-trigger-popover.aui.js +104 -0
- package/dist/components/assistant-ui/elements/composer.d.ts +91 -0
- package/dist/components/assistant-ui/elements/composer.js +416 -0
- package/dist/components/assistant-ui/elements/computer-use.d.ts +19 -0
- package/dist/components/assistant-ui/elements/computer-use.js +84 -0
- package/dist/components/assistant-ui/elements/confidence-marker.d.ts +20 -0
- package/dist/components/assistant-ui/elements/confidence-marker.js +58 -0
- package/dist/components/assistant-ui/elements/connection-state.d.ts +13 -0
- package/dist/components/assistant-ui/elements/connection-state.js +59 -0
- package/dist/components/assistant-ui/elements/context-breakdown.d.ts +15 -0
- package/dist/components/assistant-ui/elements/context-breakdown.js +91 -0
- package/dist/components/assistant-ui/elements/context-display.aui.d.ts +25 -0
- package/dist/components/assistant-ui/elements/context-display.aui.js +26 -0
- package/dist/components/assistant-ui/elements/context-display.d.ts +43 -0
- package/dist/components/assistant-ui/elements/context-display.js +300 -0
- package/dist/components/assistant-ui/elements/conversation-map.aui.d.ts +9 -0
- package/dist/components/assistant-ui/elements/conversation-map.aui.js +177 -0
- package/dist/components/assistant-ui/elements/conversation-map.d.ts +19 -0
- package/dist/components/assistant-ui/elements/conversation-map.js +84 -0
- package/dist/components/assistant-ui/elements/conversation-search.d.ts +20 -0
- package/dist/components/assistant-ui/elements/conversation-search.js +75 -0
- package/dist/components/assistant-ui/elements/cost-meter.d.ts +19 -0
- package/dist/components/assistant-ui/elements/cost-meter.js +76 -0
- package/dist/components/assistant-ui/elements/data-table.d.ts +72 -0
- package/dist/components/assistant-ui/elements/data-table.js +368 -0
- package/dist/components/assistant-ui/elements/day-separator.d.ts +16 -0
- package/dist/components/assistant-ui/elements/day-separator.js +44 -0
- package/dist/components/assistant-ui/elements/diagram.d.ts +15 -0
- package/dist/components/assistant-ui/elements/diagram.js +65 -0
- package/dist/components/assistant-ui/elements/directive-text.aui.d.ts +11 -0
- package/dist/components/assistant-ui/elements/directive-text.aui.js +18 -0
- package/dist/components/assistant-ui/elements/directive-text.d.ts +32 -0
- package/dist/components/assistant-ui/elements/directive-text.js +35 -0
- package/dist/components/assistant-ui/elements/document-reference.d.ts +17 -0
- package/dist/components/assistant-ui/elements/document-reference.js +62 -0
- package/dist/components/assistant-ui/elements/draft-restore.d.ts +12 -0
- package/dist/components/assistant-ui/elements/draft-restore.js +43 -0
- package/dist/components/assistant-ui/elements/edit-message.d.ts +15 -0
- package/dist/components/assistant-ui/elements/edit-message.js +63 -0
- package/dist/components/assistant-ui/elements/elicitation-form.d.ts +23 -0
- package/dist/components/assistant-ui/elements/elicitation-form.js +112 -0
- package/dist/components/assistant-ui/elements/empty-state.d.ts +16 -0
- package/dist/components/assistant-ui/elements/empty-state.js +71 -0
- package/dist/components/assistant-ui/elements/error-state.d.ts +13 -0
- package/dist/components/assistant-ui/elements/error-state.js +52 -0
- package/dist/components/assistant-ui/elements/feedback-dialog.d.ts +15 -0
- package/dist/components/assistant-ui/elements/feedback-dialog.js +77 -0
- package/dist/components/assistant-ui/elements/file-tree.d.ts +20 -0
- package/dist/components/assistant-ui/elements/file-tree.js +74 -0
- package/dist/components/assistant-ui/elements/file.d.ts +52 -0
- package/dist/components/assistant-ui/elements/file.js +222 -0
- package/dist/components/assistant-ui/elements/flow-graph.d.ts +23 -0
- package/dist/components/assistant-ui/elements/flow-graph.js +72 -0
- package/dist/components/assistant-ui/elements/follow-up-suggestions.aui.d.ts +7 -0
- package/dist/components/assistant-ui/elements/follow-up-suggestions.aui.js +30 -0
- package/dist/components/assistant-ui/elements/generative-ui.d.ts +8 -0
- package/dist/components/assistant-ui/elements/generative-ui.js +27 -0
- package/dist/components/assistant-ui/elements/geo-map.d.ts +29 -0
- package/dist/components/assistant-ui/elements/geo-map.js +190 -0
- package/dist/components/assistant-ui/elements/guardrail-notice.d.ts +15 -0
- package/dist/components/assistant-ui/elements/guardrail-notice.js +59 -0
- package/dist/components/assistant-ui/elements/heat-graph.d.ts +9 -0
- package/dist/components/assistant-ui/elements/heat-graph.js +90 -0
- package/dist/components/assistant-ui/elements/image-gallery.d.ts +22 -0
- package/dist/components/assistant-ui/elements/image-gallery.js +192 -0
- package/dist/components/assistant-ui/elements/image-generation.d.ts +11 -0
- package/dist/components/assistant-ui/elements/image-generation.js +64 -0
- package/dist/components/assistant-ui/elements/image.d.ts +59 -0
- package/dist/components/assistant-ui/elements/image.js +416 -0
- package/dist/components/assistant-ui/elements/inline-citation.d.ts +23 -0
- package/dist/components/assistant-ui/elements/inline-citation.js +90 -0
- package/dist/components/assistant-ui/elements/job-progress.d.ts +25 -0
- package/dist/components/assistant-ui/elements/job-progress.js +102 -0
- package/dist/components/assistant-ui/elements/launcher-bubble.d.ts +15 -0
- package/dist/components/assistant-ui/elements/launcher-bubble.js +71 -0
- package/dist/components/assistant-ui/elements/link-preview.d.ts +17 -0
- package/dist/components/assistant-ui/elements/link-preview.js +77 -0
- package/dist/components/assistant-ui/elements/loading-state.d.ts +13 -0
- package/dist/components/assistant-ui/elements/loading-state.js +33 -0
- package/dist/components/assistant-ui/elements/logos.d.ts +10 -0
- package/dist/components/assistant-ui/elements/logos.js +63 -0
- package/dist/components/assistant-ui/elements/map-answer.d.ts +19 -0
- package/dist/components/assistant-ui/elements/map-answer.js +120 -0
- package/dist/components/assistant-ui/elements/markdown-text.d.ts +11 -0
- package/dist/components/assistant-ui/elements/markdown-text.js +152 -0
- package/dist/components/assistant-ui/elements/math-block.d.ts +25 -0
- package/dist/components/assistant-ui/elements/math-block.js +60 -0
- package/dist/components/assistant-ui/elements/mcp-config.aui.d.ts +28 -0
- package/dist/components/assistant-ui/elements/mcp-config.aui.js +380 -0
- package/dist/components/assistant-ui/elements/mcp-server-panel.d.ts +20 -0
- package/dist/components/assistant-ui/elements/mcp-server-panel.js +114 -0
- package/dist/components/assistant-ui/elements/media-player.d.ts +21 -0
- package/dist/components/assistant-ui/elements/media-player.js +302 -0
- package/dist/components/assistant-ui/elements/memory-chips.d.ts +16 -0
- package/dist/components/assistant-ui/elements/memory-chips.js +44 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.aui.d.ts +14 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.aui.js +43 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.d.ts +20 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.js +258 -0
- package/dist/components/assistant-ui/elements/message-actions.d.ts +17 -0
- package/dist/components/assistant-ui/elements/message-actions.js +57 -0
- package/dist/components/assistant-ui/elements/message-attachment.d.ts +18 -0
- package/dist/components/assistant-ui/elements/message-attachment.js +58 -0
- package/dist/components/assistant-ui/elements/message-branches.d.ts +12 -0
- package/dist/components/assistant-ui/elements/message-branches.js +55 -0
- package/dist/components/assistant-ui/elements/message-pair.d.ts +16 -0
- package/dist/components/assistant-ui/elements/message-pair.js +63 -0
- package/dist/components/assistant-ui/elements/message-queue.d.ts +15 -0
- package/dist/components/assistant-ui/elements/message-queue.js +70 -0
- package/dist/components/assistant-ui/elements/message-timing.aui.d.ts +30 -0
- package/dist/components/assistant-ui/elements/message-timing.aui.js +98 -0
- package/dist/components/assistant-ui/elements/message-timing.d.ts +14 -0
- package/dist/components/assistant-ui/elements/message-timing.js +26 -0
- package/dist/components/assistant-ui/elements/mobile-composer.d.ts +18 -0
- package/dist/components/assistant-ui/elements/mobile-composer.js +76 -0
- package/dist/components/assistant-ui/elements/model-picker.d.ts +19 -0
- package/dist/components/assistant-ui/elements/model-picker.js +68 -0
- package/dist/components/assistant-ui/elements/model-selector.aui.d.ts +23 -0
- package/dist/components/assistant-ui/elements/model-selector.aui.js +79 -0
- package/dist/components/assistant-ui/elements/model-selector.d.ts +130 -0
- package/dist/components/assistant-ui/elements/model-selector.js +399 -0
- package/dist/components/assistant-ui/elements/number-ticker.d.ts +10 -0
- package/dist/components/assistant-ui/elements/number-ticker.js +41 -0
- package/dist/components/assistant-ui/elements/onboarding.d.ts +17 -0
- package/dist/components/assistant-ui/elements/onboarding.js +69 -0
- package/dist/components/assistant-ui/elements/option-list.d.ts +39 -0
- package/dist/components/assistant-ui/elements/option-list.js +176 -0
- package/dist/components/assistant-ui/elements/permission-grant.d.ts +14 -0
- package/dist/components/assistant-ui/elements/permission-grant.js +84 -0
- package/dist/components/assistant-ui/elements/prompt-library.d.ts +20 -0
- package/dist/components/assistant-ui/elements/prompt-library.js +121 -0
- package/dist/components/assistant-ui/elements/question-flow.d.ts +24 -0
- package/dist/components/assistant-ui/elements/question-flow.js +180 -0
- package/dist/components/assistant-ui/elements/quota-banner.d.ts +14 -0
- package/dist/components/assistant-ui/elements/quota-banner.js +68 -0
- package/dist/components/assistant-ui/elements/quote-reply.d.ts +20 -0
- package/dist/components/assistant-ui/elements/quote-reply.js +66 -0
- package/dist/components/assistant-ui/elements/quote.aui.d.ts +61 -0
- package/dist/components/assistant-ui/elements/quote.aui.js +170 -0
- package/dist/components/assistant-ui/elements/read-aloud.d.ts +16 -0
- package/dist/components/assistant-ui/elements/read-aloud.js +66 -0
- package/dist/components/assistant-ui/elements/reasoning-effort.d.ts +17 -0
- package/dist/components/assistant-ui/elements/reasoning-effort.js +67 -0
- package/dist/components/assistant-ui/elements/reasoning-panel.d.ts +20 -0
- package/dist/components/assistant-ui/elements/reasoning-panel.js +60 -0
- package/dist/components/assistant-ui/elements/reasoning.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/reasoning.aui.js +70 -0
- package/dist/components/assistant-ui/elements/reasoning.d.ts +38 -0
- package/dist/components/assistant-ui/elements/reasoning.js +194 -0
- package/dist/components/assistant-ui/elements/recommendation-card.d.ts +16 -0
- package/dist/components/assistant-ui/elements/recommendation-card.js +65 -0
- package/dist/components/assistant-ui/elements/regenerate-menu.d.ts +18 -0
- package/dist/components/assistant-ui/elements/regenerate-menu.js +46 -0
- package/dist/components/assistant-ui/elements/research-report.d.ts +19 -0
- package/dist/components/assistant-ui/elements/research-report.js +63 -0
- package/dist/components/assistant-ui/elements/retrieval-chunks.d.ts +19 -0
- package/dist/components/assistant-ui/elements/retrieval-chunks.js +86 -0
- package/dist/components/assistant-ui/elements/reviewable-diff.d.ts +21 -0
- package/dist/components/assistant-ui/elements/reviewable-diff.js +104 -0
- package/dist/components/assistant-ui/elements/schedule-card.d.ts +19 -0
- package/dist/components/assistant-ui/elements/schedule-card.js +80 -0
- package/dist/components/assistant-ui/elements/score-breakdown.d.ts +19 -0
- package/dist/components/assistant-ui/elements/score-breakdown.js +107 -0
- package/dist/components/assistant-ui/elements/scroll-anchor.d.ts +15 -0
- package/dist/components/assistant-ui/elements/scroll-anchor.js +104 -0
- package/dist/components/assistant-ui/elements/settings-panel.d.ts +23 -0
- package/dist/components/assistant-ui/elements/settings-panel.js +108 -0
- package/dist/components/assistant-ui/elements/shared-conversation.d.ts +18 -0
- package/dist/components/assistant-ui/elements/shared-conversation.js +56 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.aui.d.ts +29 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.aui.js +31 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.d.ts +26 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.js +49 -0
- package/dist/components/assistant-ui/elements/sources.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/sources.aui.js +121 -0
- package/dist/components/assistant-ui/elements/sources.d.ts +21 -0
- package/dist/components/assistant-ui/elements/sources.js +109 -0
- package/dist/components/assistant-ui/elements/speaker-identity.d.ts +17 -0
- package/dist/components/assistant-ui/elements/speaker-identity.js +45 -0
- package/dist/components/assistant-ui/elements/spec-sheet.d.ts +17 -0
- package/dist/components/assistant-ui/elements/spec-sheet.js +39 -0
- package/dist/components/assistant-ui/elements/stopped-run.d.ts +12 -0
- package/dist/components/assistant-ui/elements/stopped-run.js +44 -0
- package/dist/components/assistant-ui/elements/streaming-text.d.ts +15 -0
- package/dist/components/assistant-ui/elements/streaming-text.js +45 -0
- package/dist/components/assistant-ui/elements/subagent-list.d.ts +17 -0
- package/dist/components/assistant-ui/elements/subagent-list.js +74 -0
- package/dist/components/assistant-ui/elements/suggestions.d.ts +14 -0
- package/dist/components/assistant-ui/elements/suggestions.js +25 -0
- package/dist/components/assistant-ui/elements/surfaces.d.ts +42 -0
- package/dist/components/assistant-ui/elements/surfaces.js +87 -0
- package/dist/components/assistant-ui/elements/syntax-highlighter.d.ts +7 -0
- package/dist/components/assistant-ui/elements/syntax-highlighter.js +41 -0
- package/dist/components/assistant-ui/elements/task-card.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/task-card.aui.js +136 -0
- package/dist/components/assistant-ui/elements/task-card.d.ts +22 -0
- package/dist/components/assistant-ui/elements/task-card.js +104 -0
- package/dist/components/assistant-ui/elements/terminal-block.d.ts +27 -0
- package/dist/components/assistant-ui/elements/terminal-block.js +266 -0
- package/dist/components/assistant-ui/elements/thinking-indicator.d.ts +10 -0
- package/dist/components/assistant-ui/elements/thinking-indicator.js +30 -0
- package/dist/components/assistant-ui/elements/thread-list.aui.d.ts +39 -0
- package/dist/components/assistant-ui/elements/thread-list.aui.js +331 -0
- package/dist/components/assistant-ui/elements/thread-list.d.ts +19 -0
- package/dist/components/assistant-ui/elements/thread-list.js +72 -0
- package/dist/components/assistant-ui/elements/thread-search.d.ts +20 -0
- package/dist/components/assistant-ui/elements/thread-search.js +94 -0
- package/dist/components/assistant-ui/elements/thread.aui.d.ts +36 -0
- package/dist/components/assistant-ui/elements/thread.aui.js +625 -0
- package/dist/components/assistant-ui/elements/threadlist-sidebar.aui.d.ts +19 -0
- package/dist/components/assistant-ui/elements/threadlist-sidebar.aui.js +75 -0
- package/dist/components/assistant-ui/elements/timeline.d.ts +18 -0
- package/dist/components/assistant-ui/elements/timeline.js +40 -0
- package/dist/components/assistant-ui/elements/todo-list.d.ts +21 -0
- package/dist/components/assistant-ui/elements/todo-list.js +100 -0
- package/dist/components/assistant-ui/elements/tool-call.d.ts +17 -0
- package/dist/components/assistant-ui/elements/tool-call.js +70 -0
- package/dist/components/assistant-ui/elements/tool-error.d.ts +16 -0
- package/dist/components/assistant-ui/elements/tool-error.js +62 -0
- package/dist/components/assistant-ui/elements/tool-fallback.aui.d.ts +44 -0
- package/dist/components/assistant-ui/elements/tool-fallback.aui.js +542 -0
- package/dist/components/assistant-ui/elements/tool-group.aui.d.ts +37 -0
- package/dist/components/assistant-ui/elements/tool-group.aui.js +104 -0
- package/dist/components/assistant-ui/elements/tool-group.d.ts +20 -0
- package/dist/components/assistant-ui/elements/tool-group.js +71 -0
- package/dist/components/assistant-ui/elements/tool-timeline.d.ts +44 -0
- package/dist/components/assistant-ui/elements/tool-timeline.js +109 -0
- package/dist/components/assistant-ui/elements/tooltip-icon-button.d.ts +12 -0
- package/dist/components/assistant-ui/elements/tooltip-icon-button.js +30 -0
- package/dist/components/assistant-ui/elements/trace-waterfall.d.ts +33 -0
- package/dist/components/assistant-ui/elements/trace-waterfall.js +102 -0
- package/dist/components/assistant-ui/elements/typing-indicator.d.ts +9 -0
- package/dist/components/assistant-ui/elements/typing-indicator.js +45 -0
- package/dist/components/assistant-ui/elements/voice-conversation.aui.d.ts +11 -0
- package/dist/components/assistant-ui/elements/voice-conversation.aui.js +54 -0
- package/dist/components/assistant-ui/elements/voice-conversation.d.ts +21 -0
- package/dist/components/assistant-ui/elements/voice-conversation.js +110 -0
- package/dist/components/assistant-ui/elements/voice.aui.d.ts +22 -0
- package/dist/components/assistant-ui/elements/voice.aui.js +100 -0
- package/dist/components/assistant-ui/elements/voice.d.ts +15 -0
- package/dist/components/assistant-ui/elements/voice.js +400 -0
- package/dist/components/assistant-ui/elements/web-preview.d.ts +18 -0
- package/dist/components/assistant-ui/elements/web-preview.js +61 -0
- package/dist/components/assistant-ui/elements/web-search.d.ts +17 -0
- package/dist/components/assistant-ui/elements/web-search.js +54 -0
- package/dist/components/assistant-ui/utils/href.d.ts +13 -0
- package/dist/components/assistant-ui/utils/href.js +39 -0
- package/dist/components/assistant-ui/utils/range.d.ts +22 -0
- package/dist/components/assistant-ui/utils/range.js +48 -0
- package/dist/components/assistant-ui/utils/task.d.ts +14 -0
- package/dist/components/assistant-ui/utils/task.js +75 -0
- package/dist/components/icons/github.js +13 -0
- package/dist/components/theme-provider.d.ts +16 -0
- package/dist/components/theme-provider.js +116 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.js +53 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.js +93 -0
- package/dist/components/ui/alert.d.ts +12 -0
- package/dist/components/ui/alert.js +42 -0
- package/dist/components/ui/aspect-ratio.d.ts +6 -0
- package/dist/components/ui/aspect-ratio.js +13 -0
- package/dist/components/ui/attachment.d.ts +25 -0
- package/dist/components/ui/attachment.js +103 -0
- package/dist/components/ui/avatar.d.ts +13 -0
- package/dist/components/ui/avatar.js +50 -0
- package/dist/components/ui/badge.d.ts +14 -0
- package/dist/components/ui/badge.js +30 -0
- package/dist/components/ui/breadcrumb.d.ts +12 -0
- package/dist/components/ui/breadcrumb.js +71 -0
- package/dist/components/ui/bubble.d.ts +18 -0
- package/dist/components/ui/bubble.js +72 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button-group.js +41 -0
- package/dist/components/ui/button.d.ts +19 -0
- package/dist/components/ui/button.js +71 -0
- package/dist/components/ui/calendar.d.ts +12 -0
- package/dist/components/ui/calendar.js +108 -0
- package/dist/components/ui/card.d.ts +13 -0
- package/dist/components/ui/card.js +55 -0
- package/dist/components/ui/carousel.d.ts +30 -0
- package/dist/components/ui/carousel.js +131 -0
- package/dist/components/ui/chart.d.ts +46 -0
- package/dist/components/ui/chart.js +148 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.js +20 -0
- package/dist/components/ui/collapsible.d.ts +7 -0
- package/dist/components/ui/collapsible.js +23 -0
- package/dist/components/ui/combobox.d.ts +26 -0
- package/dist/components/ui/combobox.js +161 -0
- package/dist/components/ui/command.d.ts +21 -0
- package/dist/components/ui/command.js +87 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/context-menu.js +132 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dialog.js +91 -0
- package/dist/components/ui/diff-viewer.d.ts +100 -0
- package/dist/components/ui/diff-viewer.js +461 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.js +2 -0
- package/dist/components/ui/dot-matrix.d.ts +150 -0
- package/dist/components/ui/dot-matrix.js +248 -0
- package/dist/components/ui/drawer.d.ts +18 -0
- package/dist/components/ui/drawer.js +123 -0
- package/dist/components/ui/dropdown-menu.d.ts +31 -0
- package/dist/components/ui/dropdown-menu.js +136 -0
- package/dist/components/ui/empty.d.ts +13 -0
- package/dist/components/ui/empty.js +59 -0
- package/dist/components/ui/field.d.ts +26 -0
- package/dist/components/ui/field.js +109 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.js +36 -0
- package/dist/components/ui/input-group.d.ts +20 -0
- package/dist/components/ui/input-group.js +77 -0
- package/dist/components/ui/input-otp.d.ts +13 -0
- package/dist/components/ui/input-otp.js +46 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +14 -0
- package/dist/components/ui/item.d.ts +24 -0
- package/dist/components/ui/item.js +120 -0
- package/dist/components/ui/kbd.d.ts +5 -0
- package/dist/components/ui/kbd.js +19 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.js +12 -0
- package/dist/components/ui/marker.d.ts +12 -0
- package/dist/components/ui/marker.js +42 -0
- package/dist/components/ui/menubar.d.ts +31 -0
- package/dist/components/ui/menubar.js +135 -0
- package/dist/components/ui/message-scroller.d.ts +12 -0
- package/dist/components/ui/message-scroller.js +59 -0
- package/dist/components/ui/message.d.ts +12 -0
- package/dist/components/ui/message.js +48 -0
- package/dist/components/ui/native-select.d.ts +10 -0
- package/dist/components/ui/native-select.js +37 -0
- package/dist/components/ui/navigation-menu.d.ts +13 -0
- package/dist/components/ui/navigation-menu.js +82 -0
- package/dist/components/ui/number-roll.d.ts +21 -0
- package/dist/components/ui/number-roll.js +269 -0
- package/dist/components/ui/pagination.d.ts +19 -0
- package/dist/components/ui/pagination.js +79 -0
- package/dist/components/ui/popover.d.ts +11 -0
- package/dist/components/ui/popover.js +54 -0
- package/dist/components/ui/progress.d.ts +9 -0
- package/dist/components/ui/progress.js +44 -0
- package/dist/components/ui/questionnaire.d.ts +21 -0
- package/dist/components/ui/questionnaire.js +169 -0
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.js +26 -0
- package/dist/components/ui/resizable.d.ts +9 -0
- package/dist/components/ui/resizable.js +28 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.js +35 -0
- package/dist/components/ui/select.d.ts +17 -0
- package/dist/components/ui/select.js +96 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.js +14 -0
- package/dist/components/ui/sheet.d.ts +16 -0
- package/dist/components/ui/sheet.js +87 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/sidebar.js +386 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/skeleton.js +12 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.js +33 -0
- package/dist/components/ui/spinner.d.ts +4 -0
- package/dist/components/ui/spinner.js +15 -0
- package/dist/components/ui/switch.d.ts +7 -0
- package/dist/components/ui/switch.js +19 -0
- package/dist/components/ui/table.d.ts +12 -0
- package/dist/components/ui/table.js +65 -0
- package/dist/components/ui/tabs.d.ts +12 -0
- package/dist/components/ui/tabs.js +45 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +12 -0
- package/dist/components/ui/toast.d.ts +18 -0
- package/dist/components/ui/toast.js +121 -0
- package/dist/components/ui/toggle-group.d.ts +13 -0
- package/dist/components/ui/toggle-group.js +51 -0
- package/dist/components/ui/toggle.d.ts +10 -0
- package/dist/components/ui/toggle.js +35 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.js +43 -0
- package/dist/compositions/app-rail/app-rail.d.ts +19 -0
- package/dist/compositions/app-rail/app-rail.js +58 -0
- package/dist/compositions/app-shell/app-shell.d.ts +56 -0
- package/dist/compositions/app-shell/app-shell.js +143 -0
- package/dist/compositions/app-shell/theme-toggle.d.ts +10 -0
- package/dist/compositions/app-shell/theme-toggle.js +65 -0
- package/dist/compositions/confirm-action/confirm-action.d.ts +48 -0
- package/dist/compositions/confirm-action/confirm-action.js +48 -0
- package/dist/compositions/data-table/data-table-state.d.ts +23 -0
- package/dist/compositions/data-table/data-table-state.js +46 -0
- package/dist/compositions/data-table/data-table.d.ts +185 -0
- package/dist/compositions/data-table/data-table.js +615 -0
- package/dist/compositions/date-range-picker/date-range-options.d.ts +28 -0
- package/dist/compositions/date-range-picker/date-range-options.js +61 -0
- package/dist/compositions/date-range-picker/date-range-picker.d.ts +55 -0
- package/dist/compositions/date-range-picker/date-range-picker.js +409 -0
- package/dist/compositions/decision-queue/decision-queue.d.ts +114 -0
- package/dist/compositions/decision-queue/decision-queue.js +478 -0
- package/dist/compositions/event-feed/event-feed.d.ts +59 -0
- package/dist/compositions/event-feed/event-feed.js +105 -0
- package/dist/compositions/feedback.d.ts +20 -0
- package/dist/compositions/feedback.js +49 -0
- package/dist/compositions/fields.d.ts +64 -0
- package/dist/compositions/fields.js +293 -0
- package/dist/compositions/form-kit/form-context.d.ts +10 -0
- package/dist/compositions/form-kit/form-context.js +12 -0
- package/dist/compositions/form-kit/form-fields.d.ts +95 -0
- package/dist/compositions/form-kit/form-fields.js +233 -0
- package/dist/compositions/form-kit/form-kit.d.ts +128 -0
- package/dist/compositions/form-kit/form-kit.js +119 -0
- package/dist/compositions/inspector/inspector.d.ts +53 -0
- package/dist/compositions/inspector/inspector.js +80 -0
- package/dist/compositions/layout.d.ts +36 -0
- package/dist/compositions/layout.js +86 -0
- package/dist/compositions/state-blocks/state-blocks.d.ts +42 -0
- package/dist/compositions/state-blocks/state-blocks.js +81 -0
- package/dist/compositions/status-panel/status-panel.d.ts +94 -0
- package/dist/compositions/status-panel/status-panel.js +189 -0
- package/dist/fonts/InterVariable.woff2 +0 -0
- package/dist/fonts/inter.css +15 -0
- package/dist/hooks/use-attachment-src.js +35 -0
- package/dist/hooks/use-copy-to-clipboard.js +34 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +18 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +102 -0
- package/dist/lib/context-level.js +7 -0
- package/dist/lib/elapsed.js +61 -0
- package/dist/lib/iso-date.js +30 -0
- package/dist/lib/motion-loop.js +41 -0
- package/dist/lib/pointer.js +14 -0
- package/dist/lib/status-tone.d.ts +7 -0
- package/dist/lib/status-tone.js +55 -0
- package/dist/lib/triage-keys.js +229 -0
- package/dist/lib/utils.js +2 -0
- package/dist/motion/alert-toast/alert-toast.d.ts +51 -0
- package/dist/motion/alert-toast/alert-toast.js +226 -0
- package/dist/motion/branch-menu/branch-menu.d.ts +47 -0
- package/dist/motion/branch-menu/branch-menu.js +287 -0
- package/dist/motion/check-item/check-item.d.ts +24 -0
- package/dist/motion/check-item/check-item.js +110 -0
- package/dist/motion/dial/dial.d.ts +39 -0
- package/dist/motion/dial/dial.js +290 -0
- package/dist/motion/dictation-button/dictation-button.d.ts +45 -0
- package/dist/motion/dictation-button/dictation-button.js +232 -0
- package/dist/motion/hold-button/hold-button.d.ts +37 -0
- package/dist/motion/hold-button/hold-button.js +192 -0
- package/dist/motion/masonry-grid/masonry-grid.d.ts +42 -0
- package/dist/motion/masonry-grid/masonry-grid.js +145 -0
- package/dist/motion/prompt-composer/prompt-composer.d.ts +90 -0
- package/dist/motion/prompt-composer/prompt-composer.js +374 -0
- package/dist/motion/scrub-select/scrub-select.d.ts +33 -0
- package/dist/motion/scrub-select/scrub-select.js +346 -0
- package/dist/motion/spotlight-grid/spotlight-grid.d.ts +40 -0
- package/dist/motion/spotlight-grid/spotlight-grid.js +171 -0
- package/dist/motion/star-rating/star-rating.d.ts +32 -0
- package/dist/motion/star-rating/star-rating.js +191 -0
- package/dist/motion/status-glyph/status-glyph.d.ts +28 -0
- package/dist/motion/status-glyph/status-glyph.js +171 -0
- package/dist/motion/stepper/stepper.d.ts +56 -0
- package/dist/motion/stepper/stepper.js +211 -0
- package/dist/motion/swipe-row/swipe-row.d.ts +52 -0
- package/dist/motion/swipe-row/swipe-row.js +208 -0
- package/dist/motion/thinking-trace/thinking-trace.d.ts +32 -0
- package/dist/motion/thinking-trace/thinking-trace.js +186 -0
- package/dist/motion/tool-call-chip/tool-call-chip.d.ts +36 -0
- package/dist/motion/tool-call-chip/tool-call-chip.js +135 -0
- package/dist/motion/working-indicator/working-indicator.d.ts +38 -0
- package/dist/motion/working-indicator/working-indicator.js +171 -0
- package/dist/styles.css +828 -0
- package/dist/tokens.css +230 -0
- package/licenses/Inter-OFL.txt +92 -0
- package/licenses/assistant-ui-MIT.txt +21 -0
- package/licenses/shadcn-MIT.md +21 -0
- package/package.json +131 -3
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
//#region src/ai/types.d.ts
|
|
2
|
+
/** A JSON value: what Tether stores in its `jsonb` columns. */
|
|
3
|
+
export type JsonValue = string | number | boolean | null | readonly JsonValue[] | {
|
|
4
|
+
readonly [key: string]: JsonValue;
|
|
5
|
+
};
|
|
6
|
+
/** A JSON object, such as a task's `input` or a tool call's arguments. */
|
|
7
|
+
export type JsonObject = {
|
|
8
|
+
readonly [key: string]: JsonValue;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Where a run is in its lifecycle.
|
|
12
|
+
*
|
|
13
|
+
* Tether mapping: derived from `TaskRecord`'s lifecycle timestamps the way
|
|
14
|
+
* `TaskSnapshot.status` is. `pending`: created, or released or claim-expired
|
|
15
|
+
* and not yet claimed again. `running`: `claimedAt` set and no terminal
|
|
16
|
+
* timestamp. `waiting`: running with an approval not yet recorded.
|
|
17
|
+
* `succeeded`: `completedAt`. `failed`: `failedAt`. `cancelled`: `cancelledAt`.
|
|
18
|
+
*/
|
|
19
|
+
export type RunStatus = "pending" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
|
|
20
|
+
/**
|
|
21
|
+
* Why a run or a step failed.
|
|
22
|
+
*
|
|
23
|
+
* Tether mapping: `TaskRecord.failure` (JSONB). Read `message` and `code` from
|
|
24
|
+
* it when the harness writes them; otherwise stringify the object into
|
|
25
|
+
* `message`.
|
|
26
|
+
*/
|
|
27
|
+
export type RunError = {
|
|
28
|
+
/** A human-readable explanation, shown in place. */
|
|
29
|
+
readonly message: string;
|
|
30
|
+
/** A machine-readable code, such as `SMTP_554` or `rate_limited`. */
|
|
31
|
+
readonly code?: string;
|
|
32
|
+
/** Whether retrying the same input can succeed. */
|
|
33
|
+
readonly retryable?: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* An owner decision on a gated action (a tool call, or a whole task).
|
|
37
|
+
*
|
|
38
|
+
* Tether mapping: `TaskApprovalRecord` (`task_approvals` row, or the
|
|
39
|
+
* `approval.recorded` event payload). `decision` is its `decision`
|
|
40
|
+
* (`approved` / `rejected`), `reason` its `reason` (JSONB; a string, or the
|
|
41
|
+
* object's text), `decidedAt` its `decidedAt`, `decidedBy` its
|
|
42
|
+
* `decidedByParticipantId` resolved to a display name. Tether has no field for
|
|
43
|
+
* amended arguments or standing permissions; `amendedArgs` and
|
|
44
|
+
* `byStandingPermission` stay empty until a harness adds them.
|
|
45
|
+
*/
|
|
46
|
+
export type Approval = {
|
|
47
|
+
/** The decision. */
|
|
48
|
+
readonly decision: "approved" | "rejected";
|
|
49
|
+
/** The optional reason the owner gave. */
|
|
50
|
+
readonly reason?: string;
|
|
51
|
+
/** When the decision was recorded (ISO 8601). */
|
|
52
|
+
readonly decidedAt: string;
|
|
53
|
+
/** Who decided, as a display name. */
|
|
54
|
+
readonly decidedBy?: string;
|
|
55
|
+
/** Arguments the owner edited before approving, if any. */
|
|
56
|
+
readonly amendedArgs?: JsonObject;
|
|
57
|
+
/**
|
|
58
|
+
* The call ran under a standing permission ("always allow") the owner gave
|
|
59
|
+
* earlier, not a decision on this call. `decidedAt` is when the call was
|
|
60
|
+
* allowed. Tether has no source for it yet.
|
|
61
|
+
*/
|
|
62
|
+
readonly byStandingPermission?: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** Where one tool call stands. */
|
|
65
|
+
export type ToolCallStatus = "running" | "awaiting-approval" | "succeeded" | "failed" | "denied" | "cancelled";
|
|
66
|
+
/**
|
|
67
|
+
* One tool call an agent made.
|
|
68
|
+
*
|
|
69
|
+
* Tether mapping: no harness records tool-call arguments or results today
|
|
70
|
+
* (hub#46). The nearest records are outcome-level: email's `Action`
|
|
71
|
+
* (`surface` as `name`, `attempts` as retries), a delegated child task
|
|
72
|
+
* (`TaskRecord` with `parentTaskId`: `kind` as `name`, `input` as `args`,
|
|
73
|
+
* `result` as `result`). A harness that adopts RunInspector or
|
|
74
|
+
* TranscriptViewer adds a tool-call event to Tether.
|
|
75
|
+
*/
|
|
76
|
+
export type ToolCall = {
|
|
77
|
+
/** Stable id of this invocation. */
|
|
78
|
+
readonly id: string;
|
|
79
|
+
/** The tool's name, such as `archive_message`. */
|
|
80
|
+
readonly name: string;
|
|
81
|
+
/** The arguments the agent passed. */
|
|
82
|
+
readonly args: JsonObject;
|
|
83
|
+
/** What the tool returned; absent while it runs. */
|
|
84
|
+
readonly result?: JsonValue;
|
|
85
|
+
/** Where the call stands. */
|
|
86
|
+
readonly status: ToolCallStatus;
|
|
87
|
+
/** Whether the tool is marked dangerous (needs press-and-hold to approve). */
|
|
88
|
+
readonly dangerous?: boolean;
|
|
89
|
+
/** When the call started (ISO 8601). */
|
|
90
|
+
readonly startedAt?: string;
|
|
91
|
+
/** When the result landed (ISO 8601). */
|
|
92
|
+
readonly endedAt?: string;
|
|
93
|
+
/** The owner's decision, for a gated tool. */
|
|
94
|
+
readonly approval?: Approval;
|
|
95
|
+
/** Why the call failed, when `status` is `failed`. */
|
|
96
|
+
readonly error?: RunError;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* What kind of thing a run step is. A `plan` step is the agent's plan or todo
|
|
100
|
+
* list at that point of the run (see `RunStep.plan`).
|
|
101
|
+
*/
|
|
102
|
+
export type RunStepKind = "message" | "reasoning" | "tool-call" | "approval" | "progress" | "plan" | "error";
|
|
103
|
+
/**
|
|
104
|
+
* One item of an agent's plan or todo list.
|
|
105
|
+
*
|
|
106
|
+
* Tether mapping: no Tether event carries a plan yet. A harness that records
|
|
107
|
+
* one (a todo-list tool's arguments, or a planner's output) maps each entry
|
|
108
|
+
* here; `id` is the entry's stable key, or its position.
|
|
109
|
+
*/
|
|
110
|
+
export type PlanItem = {
|
|
111
|
+
/** Stable id of the item. */
|
|
112
|
+
readonly id: string;
|
|
113
|
+
/** What the item is, such as "Classify the 42 new messages". */
|
|
114
|
+
readonly label: string;
|
|
115
|
+
/** Whether the agent has finished it. */
|
|
116
|
+
readonly done: boolean;
|
|
117
|
+
/** A note under the label. */
|
|
118
|
+
readonly description?: string;
|
|
119
|
+
};
|
|
120
|
+
/** Where one run step stands. */
|
|
121
|
+
export type RunStepStatus = "pending" | "running" | "succeeded" | "failed" | "skipped";
|
|
122
|
+
/**
|
|
123
|
+
* One step on a run's timeline.
|
|
124
|
+
*
|
|
125
|
+
* Tether mapping: one `SessionEvent` scoped to the task. `id` is its
|
|
126
|
+
* `eventId`, `seq` its `seq`, `startedAt` its `createdAt`. `kind` follows the
|
|
127
|
+
* event `type`: `agent.output` and `user.message` are `message`,
|
|
128
|
+
* `task.progress` is `progress`, `approval.recorded` is `approval`,
|
|
129
|
+
* `task.failed` is `error`; `reasoning` and `tool-call` have no Tether event
|
|
130
|
+
* yet. `endedAt` is the next step's `createdAt` when the harness records no
|
|
131
|
+
* end. A retried step repeats with a higher `attempt`.
|
|
132
|
+
*/
|
|
133
|
+
export type RunStep = {
|
|
134
|
+
/** Stable id of the step. */
|
|
135
|
+
readonly id: string;
|
|
136
|
+
/** The event sequence number within the session, for ordering and anchors. */
|
|
137
|
+
readonly seq?: number;
|
|
138
|
+
/** What kind of step this is. */
|
|
139
|
+
readonly kind: RunStepKind;
|
|
140
|
+
/** A short label, such as "Classified 42 messages". */
|
|
141
|
+
readonly label: string;
|
|
142
|
+
/** Where the step stands. */
|
|
143
|
+
readonly status: RunStepStatus;
|
|
144
|
+
/** When the step started (ISO 8601). */
|
|
145
|
+
readonly startedAt: string;
|
|
146
|
+
/** When the step ended (ISO 8601); absent while it runs. */
|
|
147
|
+
readonly endedAt?: string;
|
|
148
|
+
/** The enclosing step, for nesting in a waterfall. */
|
|
149
|
+
readonly parentStepId?: string;
|
|
150
|
+
/** 1 for the first try; 2 and up for retries. */
|
|
151
|
+
readonly attempt?: number;
|
|
152
|
+
/** Message or reasoning text, for `message` and `reasoning` steps. */
|
|
153
|
+
readonly text?: string;
|
|
154
|
+
/** The call, for `tool-call` steps. */
|
|
155
|
+
readonly toolCall?: ToolCall;
|
|
156
|
+
/** The decision, for `approval` steps. */
|
|
157
|
+
readonly approval?: Approval;
|
|
158
|
+
/** Why the step failed, when `status` is `failed`. */
|
|
159
|
+
readonly error?: RunError;
|
|
160
|
+
/**
|
|
161
|
+
* The plan or todo list, in order, for `plan` steps. A later plan step
|
|
162
|
+
* holds the list as it stood then.
|
|
163
|
+
*/
|
|
164
|
+
readonly plan?: readonly PlanItem[];
|
|
165
|
+
/**
|
|
166
|
+
* The id of the step this one retries, when `attempt` is 2 or more. It
|
|
167
|
+
* links the attempts of one action, so each can be reached from the
|
|
168
|
+
* others. Tether has no source yet.
|
|
169
|
+
*/
|
|
170
|
+
readonly retryOf?: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Model usage for a run, a message or a thread.
|
|
174
|
+
*
|
|
175
|
+
* Tether mapping: Tether records no tokens or cost (hub#46). Today's real
|
|
176
|
+
* signals are `model` (email `Classification.model`, rolodex
|
|
177
|
+
* `model_version`, ollama identity on `SessionSummaryRecord`) and
|
|
178
|
+
* `latencyMs` (email `Classification.latencyMs`). Token and cost fields wait
|
|
179
|
+
* for a harness to persist the provider's usage object.
|
|
180
|
+
*/
|
|
181
|
+
export type Usage = {
|
|
182
|
+
/** The model id, such as `claude-sonnet-4-5` or `qwen3-14b`. */
|
|
183
|
+
readonly model?: string;
|
|
184
|
+
/** Prompt tokens sent to the model. */
|
|
185
|
+
readonly inputTokens?: number;
|
|
186
|
+
/** Tokens the model generated. */
|
|
187
|
+
readonly outputTokens?: number;
|
|
188
|
+
/** Prompt tokens served from the provider's cache, a subset of `inputTokens`. */
|
|
189
|
+
readonly cachedInputTokens?: number;
|
|
190
|
+
/** Generated tokens spent on reasoning, a subset of `outputTokens`. */
|
|
191
|
+
readonly reasoningTokens?: number;
|
|
192
|
+
/** Cost in US dollars. */
|
|
193
|
+
readonly costUsd?: number;
|
|
194
|
+
/** The model's context window in tokens, to show how full it is. */
|
|
195
|
+
readonly contextWindow?: number;
|
|
196
|
+
/** Wall-clock latency of the call or run, in milliseconds. */
|
|
197
|
+
readonly latencyMs?: number;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* One agent run: a unit of work with a lifecycle, input, result and timeline.
|
|
201
|
+
*
|
|
202
|
+
* Tether mapping: a `TaskRecord` (or `TaskSnapshot`). `id` is `taskId`,
|
|
203
|
+
* `sessionId` `sessionId`, `parentRunId` `parentTaskId`, `kind` `kind`,
|
|
204
|
+
* `objective` `objective`, `input` / `result` the JSONB columns, `error`
|
|
205
|
+
* `failure`. `createdAt` is `createdAt`, `startedAt` `claimedAt`, `endedAt`
|
|
206
|
+
* whichever of `completedAt` / `failedAt` / `cancelledAt` is set. `agent` is
|
|
207
|
+
* the assignee or claimant participant's display name. `steps` come from the
|
|
208
|
+
* session's events for the task; `approvals` from `TaskSnapshot.approvals`.
|
|
209
|
+
*/
|
|
210
|
+
export type Run = {
|
|
211
|
+
/** Stable id of the run. */
|
|
212
|
+
readonly id: string;
|
|
213
|
+
/** The session (conversation) the run belongs to. */
|
|
214
|
+
readonly sessionId?: string;
|
|
215
|
+
/** The run that delegated this one, if any. */
|
|
216
|
+
readonly parentRunId?: string;
|
|
217
|
+
/** The agent that ran it, as a display name, such as "Email agent". */
|
|
218
|
+
readonly agent: string;
|
|
219
|
+
/** The task kind, such as `email_triage` or `email_fetch_signin`. */
|
|
220
|
+
readonly kind: string;
|
|
221
|
+
/** What the run set out to do, in a sentence. */
|
|
222
|
+
readonly objective: string;
|
|
223
|
+
/** Where the run stands. */
|
|
224
|
+
readonly status: RunStatus;
|
|
225
|
+
/** The run's input. */
|
|
226
|
+
readonly input?: JsonObject;
|
|
227
|
+
/** The run's result, once it succeeded. */
|
|
228
|
+
readonly result?: JsonObject;
|
|
229
|
+
/** Why it failed, once it failed. */
|
|
230
|
+
readonly error?: RunError;
|
|
231
|
+
/** When it was created (ISO 8601). */
|
|
232
|
+
readonly createdAt: string;
|
|
233
|
+
/** When an agent picked it up (ISO 8601). */
|
|
234
|
+
readonly startedAt?: string;
|
|
235
|
+
/** When it reached a terminal status (ISO 8601). */
|
|
236
|
+
readonly endedAt?: string;
|
|
237
|
+
/** The timeline, oldest first. */
|
|
238
|
+
readonly steps: readonly RunStep[];
|
|
239
|
+
/** Decisions recorded on the run, oldest first. */
|
|
240
|
+
readonly approvals?: readonly Approval[];
|
|
241
|
+
/** Model usage for the whole run. */
|
|
242
|
+
readonly usage?: Usage;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* One message of a stored conversation, for read-only display.
|
|
246
|
+
*
|
|
247
|
+
* Tether mapping: a `user.message` or `agent.output` `SessionEvent`. `id` is
|
|
248
|
+
* the chat-v1 `messageId` or the event's `eventId`; `role` is `user` for
|
|
249
|
+
* `user.message` and `assistant` for `agent.output`; `text` is the payload's
|
|
250
|
+
* `text` (chat-v1) or `output`; `author` the `senderId` resolved to a display
|
|
251
|
+
* name; `createdAt` the payload's `recordedAt` or the event's `createdAt`;
|
|
252
|
+
* `runId` the `agent.output` payload's `taskId`. Tether stores no reasoning,
|
|
253
|
+
* tool calls or usage for a message today.
|
|
254
|
+
*/
|
|
255
|
+
export type TranscriptMessage = {
|
|
256
|
+
/** Stable id, used as the message's link anchor. */
|
|
257
|
+
readonly id: string;
|
|
258
|
+
/** Who spoke. */
|
|
259
|
+
readonly role: "user" | "assistant" | "system";
|
|
260
|
+
/** The speaker's display name, such as "Kevin" or "Email agent". */
|
|
261
|
+
readonly author?: string;
|
|
262
|
+
/** When it was sent (ISO 8601). */
|
|
263
|
+
readonly createdAt: string;
|
|
264
|
+
/** The message body, as markdown. */
|
|
265
|
+
readonly text: string;
|
|
266
|
+
/** The agent's reasoning before it answered, if recorded. */
|
|
267
|
+
readonly reasoning?: string;
|
|
268
|
+
/** Tool calls the agent made while answering, in order. */
|
|
269
|
+
readonly toolCalls?: readonly ToolCall[];
|
|
270
|
+
/** The run that produced this message, for linking to RunInspector. */
|
|
271
|
+
readonly runId?: string;
|
|
272
|
+
/** Model usage for this message. */
|
|
273
|
+
readonly usage?: Usage;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* One fact a gated summary let through to a hosted agent.
|
|
277
|
+
*
|
|
278
|
+
* Tether mapping: a `SessionSummaryFact`: `category` its `category`,
|
|
279
|
+
* `statement` its `statement`, `sourceEventIds` its `sourceEventIds`. Rolodex
|
|
280
|
+
* `gateView` `publicFacts` map the same way.
|
|
281
|
+
*/
|
|
282
|
+
export type GatedFact = {
|
|
283
|
+
/** The fact's category, such as `approval` or `decision`. */
|
|
284
|
+
readonly category: string;
|
|
285
|
+
/** The fact as the hosted agent received it. */
|
|
286
|
+
readonly statement: string;
|
|
287
|
+
/** The events the fact was drawn from, for linking back. */
|
|
288
|
+
readonly sourceEventIds?: readonly string[];
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* The fields a gate withheld in one category. Names only: this type has no
|
|
292
|
+
* place for a withheld value, by design (RFC-02 Design 4).
|
|
293
|
+
*/
|
|
294
|
+
export type WithheldGroup = {
|
|
295
|
+
/** The sensitivity category, such as `health`, `money` or `credentials`. */
|
|
296
|
+
readonly category: string;
|
|
297
|
+
/** The names of the withheld fields, such as `body` or `sign_in_code`. */
|
|
298
|
+
readonly fields: readonly string[];
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* What a hosted agent received from a privacy gate, and what it did not.
|
|
302
|
+
*
|
|
303
|
+
* Tether mapping: a gated artifact. Chat's digest or interrupt-card payload
|
|
304
|
+
* (`summary` is the writer summary, `withheld` lists the message fields the
|
|
305
|
+
* payload omits), a `SessionSummaryRecord` (`summary` is `headline` plus
|
|
306
|
+
* `narrative`, `facts` its `facts`), or rolodex `gateView` (`facts` from
|
|
307
|
+
* `publicFacts`; `heldFactsCount` becomes one group of unnamed fields when
|
|
308
|
+
* the categories must stay unnamed). `producedAt` is the artifact's
|
|
309
|
+
* `published_at` or the summary's creation time.
|
|
310
|
+
*/
|
|
311
|
+
export type Redaction = {
|
|
312
|
+
/** The gated summary the hosted agent received. */
|
|
313
|
+
readonly summary: string;
|
|
314
|
+
/** Individual facts that passed the gate, if the gate itemizes them. */
|
|
315
|
+
readonly facts?: readonly GatedFact[];
|
|
316
|
+
/** What was withheld, grouped by category. Names only, never values. */
|
|
317
|
+
readonly withheld: readonly WithheldGroup[];
|
|
318
|
+
/** The gate that produced this, such as `chat-digest` or `rolodex-gate`. */
|
|
319
|
+
readonly gate?: string;
|
|
320
|
+
/** When the gated payload was produced (ISO 8601). */
|
|
321
|
+
readonly producedAt?: string;
|
|
322
|
+
};
|
|
323
|
+
//#endregion
|