@ciridae/ui 0.16.1 → 1.0.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 +17 -12
- package/dist/chat/chat-api-error.d.ts +14 -0
- package/dist/chat/chat-api-error.js +11 -0
- package/dist/chat/chat-client.d.ts +37 -0
- package/dist/chat/chat-client.js +66 -0
- package/dist/chat/chat-hooks.d.ts +4 -0
- package/dist/chat/chat-hooks.js +4 -0
- package/dist/chat/chat-query-keys.d.ts +10 -0
- package/dist/chat/chat-query-keys.js +8 -0
- package/dist/chat/contract.d.ts +488 -0
- package/dist/chat/contract.js +223 -0
- package/dist/chat/conversation-items-query-options.d.ts +382 -0
- package/dist/chat/conversation-items-query-options.js +15 -0
- package/dist/chat/describe-tool-call.d.ts +5 -0
- package/dist/chat/describe-tool-call.js +33 -0
- package/dist/chat/fetch-new-conversation-items.d.ts +10 -0
- package/dist/chat/fetch-new-conversation-items.js +38 -0
- package/dist/chat/message-group-position.d.ts +17 -0
- package/dist/chat/message-group-position.js +25 -0
- package/dist/chat/message-text.d.ts +23 -0
- package/dist/chat/message-text.js +118 -0
- package/dist/chat/mock-chat-client.d.ts +97 -0
- package/dist/chat/mock-chat-client.js +566 -0
- package/dist/chat/use-chat-conversation.d.ts +43 -0
- package/dist/chat/use-chat-conversation.js +156 -0
- package/dist/chat/use-conversation-list.d.ts +32 -0
- package/dist/chat/use-conversation-list.js +19 -0
- package/dist/ciridae.css +60 -479
- package/dist/components/activity-feed.d.ts +80 -0
- package/dist/components/activity-feed.js +373 -0
- package/dist/components/agent-work.d.ts +76 -0
- package/dist/components/agent-work.js +224 -0
- package/dist/components/app-navigation.d.ts +66 -0
- package/dist/components/app-navigation.js +102 -0
- package/dist/components/badge.d.ts +14 -0
- package/dist/components/badge.js +107 -0
- package/dist/components/brand-icons.d.ts +17 -0
- package/dist/components/brand-icons.js +21 -0
- package/dist/components/breakpoint.d.ts +7 -0
- package/dist/components/breakpoint.js +16 -0
- package/dist/components/bulk-action-bar.d.ts +15 -0
- package/dist/components/bulk-action-bar.js +45 -0
- package/dist/components/button.d.ts +52 -0
- package/dist/components/button.js +272 -0
- package/dist/components/calendar.d.ts +14 -0
- package/dist/components/calendar.js +158 -0
- package/dist/components/centered-page.d.ts +21 -0
- package/dist/components/centered-page.js +55 -0
- package/dist/components/chart.d.ts +22 -0
- package/dist/components/chart.js +116 -0
- package/dist/components/chat-page.d.ts +34 -0
- package/dist/components/chat-page.js +171 -0
- package/dist/components/chat-sheet-controller.d.ts +50 -0
- package/dist/components/chat-sheet-controller.js +133 -0
- package/dist/components/chat-sheet.d.ts +80 -0
- package/dist/components/chat-sheet.js +544 -0
- package/dist/components/chat.d.ts +135 -0
- package/dist/components/chat.js +545 -0
- package/dist/components/checkbox-item.d.ts +11 -0
- package/dist/components/checkbox-item.js +45 -0
- package/dist/components/checkbox-list.d.ts +51 -0
- package/dist/components/checkbox-list.js +167 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.js +43 -0
- package/dist/components/collapsible.d.ts +8 -0
- package/dist/components/collapsible.js +41 -0
- package/dist/components/color-theme.d.ts +40 -0
- package/dist/components/color-theme.js +109 -0
- package/dist/components/column-settings.d.ts +22 -0
- package/dist/components/column-settings.js +112 -0
- package/dist/components/command-match.d.ts +7 -0
- package/dist/components/command-match.js +50 -0
- package/dist/components/command-menu.d.ts +43 -0
- package/dist/components/command-menu.js +339 -0
- package/dist/components/command-palette.d.ts +36 -0
- package/dist/components/command-palette.js +77 -0
- package/dist/components/controllable-state.d.ts +5 -0
- package/dist/components/controllable-state.js +15 -0
- package/dist/components/copyable-id.d.ts +37 -0
- package/dist/components/copyable-id.js +136 -0
- package/dist/components/data-display.d.ts +47 -0
- package/dist/components/data-display.js +221 -0
- package/dist/components/data-grid.d.ts +170 -0
- package/dist/components/data-grid.js +829 -0
- package/dist/components/date-range-picker.d.ts +44 -0
- package/dist/components/date-range-picker.js +153 -0
- package/dist/components/date-time.d.ts +11 -0
- package/dist/components/date-time.js +44 -0
- package/dist/components/dialog-height-context.d.ts +2 -0
- package/dist/components/dialog-height-context.js +3 -0
- package/dist/components/document-viewer.d.ts +62 -0
- package/dist/components/document-viewer.js +419 -0
- package/dist/components/drawer.d.ts +44 -0
- package/dist/components/drawer.js +236 -0
- package/dist/components/dropzone.d.ts +47 -0
- package/dist/components/dropzone.js +370 -0
- package/dist/components/editable-field.d.ts +99 -0
- package/dist/components/editable-field.js +422 -0
- package/dist/components/email-input.d.ts +12 -0
- package/dist/components/email-input.js +83 -0
- package/dist/components/environment-frame.d.ts +13 -0
- package/dist/components/environment-frame.js +42 -0
- package/dist/components/expandable-text.d.ts +9 -0
- package/dist/components/expandable-text.js +48 -0
- package/dist/components/feedback-screenshot.d.ts +19 -0
- package/dist/components/feedback-screenshot.js +162 -0
- package/dist/components/feedback-sheet.d.ts +80 -0
- package/dist/components/feedback-sheet.js +475 -0
- package/dist/components/field-context.d.ts +23 -0
- package/dist/components/field-context.js +15 -0
- package/dist/components/filter-bar.d.ts +77 -0
- package/dist/components/filter-bar.js +350 -0
- package/dist/components/form-controls.d.ts +53 -0
- package/dist/components/form-controls.js +123 -0
- package/dist/components/form-layout.d.ts +32 -0
- package/dist/components/form-layout.js +72 -0
- package/dist/components/hotkeys.d.ts +27 -0
- package/dist/components/hotkeys.js +70 -0
- package/dist/components/icon.d.ts +58 -0
- package/dist/components/icon.js +42 -0
- package/dist/components/input.d.ts +36 -0
- package/dist/components/input.js +249 -0
- package/dist/components/keyboard-shortcuts.d.ts +10 -0
- package/dist/components/keyboard-shortcuts.js +91 -0
- package/dist/components/keycap.d.ts +12 -0
- package/dist/components/keycap.js +45 -0
- package/dist/components/layout.d.ts +174 -0
- package/dist/components/layout.js +282 -0
- package/dist/components/lightbox.d.ts +14 -0
- package/dist/components/lightbox.js +117 -0
- package/dist/components/link.d.ts +13 -0
- package/dist/components/link.js +37 -0
- package/dist/components/locale.d.ts +463 -0
- package/dist/components/locale.js +501 -0
- package/dist/components/log-list.d.ts +20 -0
- package/dist/components/log-list.js +92 -0
- package/dist/components/mention-input.d.ts +50 -0
- package/dist/components/mention-input.js +503 -0
- package/dist/components/menu.d.ts +76 -0
- package/dist/components/menu.js +112 -0
- package/dist/components/meter.d.ts +14 -0
- package/dist/components/meter.js +44 -0
- package/dist/components/navigation.d.ts +21 -0
- package/dist/components/navigation.js +75 -0
- package/dist/components/notification-tray.d.ts +47 -0
- package/dist/components/notification-tray.js +218 -0
- package/dist/components/overlays.d.ts +107 -0
- package/dist/components/overlays.js +240 -0
- package/dist/components/page-frame.d.ts +65 -0
- package/dist/components/page-frame.js +94 -0
- package/dist/components/panel.d.ts +24 -0
- package/dist/components/panel.js +107 -0
- package/dist/components/profile-header.d.ts +15 -0
- package/dist/components/profile-header.js +40 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.js +18 -0
- package/dist/components/project-avatar.d.ts +12 -0
- package/dist/components/project-avatar.js +22 -0
- package/dist/components/radio-card.d.ts +22 -0
- package/dist/components/radio-card.js +66 -0
- package/dist/components/recent-items.d.ts +28 -0
- package/dist/components/recent-items.js +63 -0
- package/dist/components/record.d.ts +95 -0
- package/dist/components/record.js +282 -0
- package/dist/components/scroll-area.d.ts +16 -0
- package/dist/components/scroll-area.js +50 -0
- package/dist/components/secret-dialog.d.ts +10 -0
- package/dist/components/secret-dialog.js +12 -0
- package/dist/components/segmented-bar.d.ts +23 -0
- package/dist/components/segmented-bar.js +75 -0
- package/dist/components/select.d.ts +84 -0
- package/dist/components/select.js +374 -0
- package/dist/components/settings.d.ts +34 -0
- package/dist/components/settings.js +56 -0
- package/dist/components/shell-skeleton.d.ts +7 -0
- package/dist/components/shell-skeleton.js +15 -0
- package/dist/components/shell.d.ts +62 -0
- package/dist/components/shell.js +415 -0
- package/dist/components/side-panel.d.ts +36 -0
- package/dist/components/side-panel.js +184 -0
- package/dist/components/sidebar.d.ts +35 -0
- package/dist/components/sidebar.js +207 -0
- package/dist/components/site-banner.d.ts +25 -0
- package/dist/components/site-banner.js +30 -0
- package/dist/components/skeleton.d.ts +15 -0
- package/dist/components/skeleton.js +61 -0
- package/dist/components/skeletons.d.ts +28 -0
- package/dist/components/skeletons.js +60 -0
- package/dist/components/stages.d.ts +97 -0
- package/dist/components/stages.js +365 -0
- package/dist/components/stat-card.d.ts +34 -0
- package/dist/components/stat-card.js +117 -0
- package/dist/components/status-banner.d.ts +17 -0
- package/dist/components/status-banner.js +132 -0
- package/dist/components/status.d.ts +32 -0
- package/dist/components/status.js +93 -0
- package/dist/components/steps.d.ts +17 -0
- package/dist/components/steps.js +51 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.js +39 -0
- package/dist/components/tabs.d.ts +48 -0
- package/dist/components/tabs.js +247 -0
- package/dist/components/theme-customizer.d.ts +53 -0
- package/dist/components/theme-customizer.js +116 -0
- package/dist/components/toast.d.ts +23 -0
- package/dist/components/toast.js +140 -0
- package/dist/components/user-chip.d.ts +66 -0
- package/dist/components/user-chip.js +174 -0
- package/dist/components/wizard.d.ts +33 -0
- package/dist/components/wizard.js +91 -0
- package/dist/feedback/client.d.ts +37 -0
- package/dist/feedback/client.js +125 -0
- package/dist/feedback/comment-types.d.ts +17 -0
- package/dist/feedback/contract.d.ts +252 -0
- package/dist/feedback/contract.js +32 -0
- package/dist/feedback/feedback-cache.d.ts +6 -0
- package/dist/feedback/feedback-cache.js +58 -0
- package/dist/feedback/feedback-center-model.d.ts +8 -0
- package/dist/feedback/feedback-center-model.js +37 -0
- package/dist/feedback/feedback-composer-types.d.ts +11 -0
- package/dist/feedback/feedback-controller.d.ts +56 -0
- package/dist/feedback/feedback-controller.js +181 -0
- package/dist/feedback/feedback-tracking-types.d.ts +14 -0
- package/dist/feedback/generated/index.d.ts +1 -0
- package/dist/feedback/generated/index.js +2 -0
- package/dist/feedback/generated/types.gen.d.ts +737 -0
- package/dist/feedback/generated/types.gen.js +2 -0
- package/dist/feedback/generated/zod.gen.d.ts +738 -0
- package/dist/feedback/generated/zod.gen.js +293 -0
- package/dist/feedback/get-response-error-id.d.ts +1 -0
- package/dist/feedback/get-response-error-id.js +7 -0
- package/dist/feedback/operator-client.d.ts +21 -0
- package/dist/feedback/operator-client.js +96 -0
- package/dist/feedback/operator-contract.d.ts +111 -0
- package/dist/feedback/operator-contract.js +22 -0
- package/dist/feedback/operator-controller.d.ts +80 -0
- package/dist/feedback/operator-controller.js +43 -0
- package/dist/feedback/require-config.d.ts +2 -0
- package/dist/feedback/require-config.js +7 -0
- package/dist/feedback/submit-feedback-with-attachments.d.ts +10 -0
- package/dist/feedback/submit-feedback-with-attachments.js +10 -0
- package/dist/format/compact-number.d.ts +2 -0
- package/dist/format/compact-number.js +8 -0
- package/dist/format/money.d.ts +13 -0
- package/dist/format/money.js +21 -0
- package/dist/format/usd.d.ts +2 -0
- package/dist/format/usd.js +16 -0
- package/dist/preset.d.ts +18 -0
- package/dist/preset.js +470 -0
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +3 -3
- package/dist/styled-system/patterns/box.d.ts +1 -1
- package/dist/styled-system/patterns/container.d.ts +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/dist/styled-system/styles.css +7834 -458
- package/dist/styled-system/tokens/index.mjs +1465 -677
- package/dist/styled-system/tokens/tokens.d.ts +32 -26
- package/dist/styled-system/types/conditions.d.ts +11 -1
- package/dist/styled-system/types/prop-type.d.ts +12 -23
- package/dist/styled-system/types/style-props.d.ts +25 -24
- package/dist/styles.css +60 -479
- package/dist/theme/breakpoints.d.ts +15 -0
- package/dist/theme/breakpoints.js +12 -0
- package/dist/theme/color.d.ts +2 -0
- package/dist/theme/color.js +27 -0
- package/dist/theme/derive.d.ts +5 -0
- package/dist/theme/derive.js +43 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +9 -0
- package/dist/theme/options.d.ts +32 -0
- package/dist/theme/options.js +9 -0
- package/dist/theme/palettes.d.ts +60 -0
- package/dist/theme/palettes.js +185 -0
- package/dist/theme/tokens.d.ts +29 -0
- package/dist/theme/tokens.js +188 -0
- package/package.json +475 -68
- package/dist/assets/ciridae/brand-background-dark.webp +0 -0
- package/dist/assets/ciridae/brand-background-light.webp +0 -0
- package/dist/assets/ciridae/ciridae-black.svg +0 -17
- package/dist/assets/ciridae/ciridae-brand-assets.d.ts +0 -25
- package/dist/assets/ciridae/ciridae-brand-assets.js +0 -25
- package/dist/assets/ciridae/ciridae-icon-black.png +0 -0
- package/dist/assets/ciridae/ciridae-icon-white.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-white.png +0 -0
- package/dist/assets/ciridae/ciridae-white.svg +0 -17
- package/dist/assets/ciridae/ciridae-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-wordmark-white.png +0 -0
- package/dist/assets/ciridae/favicon.ico +0 -0
- package/dist/assets/ciridae/logo-white.png +0 -0
- package/dist/assets/ciridae/sign-in-screenshot.png +0 -0
- package/dist/components/blocks/admin-users-table.d.ts +0 -22
- package/dist/components/blocks/admin-users-table.js +0 -115
- package/dist/components/blocks/comment-composer.d.ts +0 -18
- package/dist/components/blocks/comment-composer.js +0 -137
- package/dist/components/blocks/comment-item.d.ts +0 -8
- package/dist/components/blocks/comment-item.js +0 -45
- package/dist/components/blocks/comment-thread.d.ts +0 -19
- package/dist/components/blocks/comment-thread.js +0 -37
- package/dist/components/blocks/comment-types.d.ts +0 -18
- package/dist/components/blocks/comment-types.js +0 -11
- package/dist/components/blocks/copy-field.d.ts +0 -18
- package/dist/components/blocks/copy-field.js +0 -61
- package/dist/components/blocks/feedback-center-comments.d.ts +0 -16
- package/dist/components/blocks/feedback-center-comments.js +0 -61
- package/dist/components/blocks/feedback-center-footer.d.ts +0 -12
- package/dist/components/blocks/feedback-center-footer.js +0 -10
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +0 -40
- package/dist/components/blocks/feedback-center-sheet-parts.js +0 -39
- package/dist/components/blocks/feedback-center-sheet.d.ts +0 -28
- package/dist/components/blocks/feedback-center-sheet.js +0 -105
- package/dist/components/blocks/feedback-composer-parts.d.ts +0 -16
- package/dist/components/blocks/feedback-composer-parts.js +0 -43
- package/dist/components/blocks/feedback-composer-types.d.ts +0 -12
- package/dist/components/blocks/feedback-composer.d.ts +0 -23
- package/dist/components/blocks/feedback-composer.js +0 -82
- package/dist/components/blocks/feedback-date-format.d.ts +0 -5
- package/dist/components/blocks/feedback-date-format.js +0 -11
- package/dist/components/blocks/feedback-detail-sheet.d.ts +0 -15
- package/dist/components/blocks/feedback-detail-sheet.js +0 -59
- package/dist/components/blocks/feedback-emergency-fields.d.ts +0 -17
- package/dist/components/blocks/feedback-emergency-fields.js +0 -32
- package/dist/components/blocks/feedback-metrics.d.ts +0 -6
- package/dist/components/blocks/feedback-metrics.js +0 -15
- package/dist/components/blocks/feedback-sheet.d.ts +0 -8
- package/dist/components/blocks/feedback-sheet.js +0 -29
- package/dist/components/blocks/feedback-status-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-status-badge.js +0 -15
- package/dist/components/blocks/feedback-table-row.d.ts +0 -6
- package/dist/components/blocks/feedback-table-row.js +0 -27
- package/dist/components/blocks/feedback-table-sort.d.ts +0 -11
- package/dist/components/blocks/feedback-table-sort.js +0 -82
- package/dist/components/blocks/feedback-table.d.ts +0 -16
- package/dist/components/blocks/feedback-table.js +0 -45
- package/dist/components/blocks/feedback-tracking-types.d.ts +0 -102
- package/dist/components/blocks/feedback-tracking-types.js +0 -54
- package/dist/components/blocks/feedback-triage-timeline.d.ts +0 -11
- package/dist/components/blocks/feedback-triage-timeline.js +0 -17
- package/dist/components/blocks/feedback-type-badge.d.ts +0 -11
- package/dist/components/blocks/feedback-type-badge.js +0 -18
- package/dist/components/blocks/feedback-unread-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-unread-badge.js +0 -9
- package/dist/components/blocks/feedback-user-detail.d.ts +0 -11
- package/dist/components/blocks/feedback-user-detail.js +0 -63
- package/dist/components/blocks/feedback-user-list.d.ts +0 -11
- package/dist/components/blocks/feedback-user-list.js +0 -41
- package/dist/components/blocks/generated-connect-link.d.ts +0 -22
- package/dist/components/blocks/generated-connect-link.js +0 -68
- package/dist/components/blocks/invite-user-sheet.d.ts +0 -20
- package/dist/components/blocks/invite-user-sheet.js +0 -72
- package/dist/components/blocks/kanban-board-parts.d.ts +0 -26
- package/dist/components/blocks/kanban-board-parts.js +0 -83
- package/dist/components/blocks/kanban-board-utils.d.ts +0 -58
- package/dist/components/blocks/kanban-board-utils.js +0 -140
- package/dist/components/blocks/kanban-board.d.ts +0 -16
- package/dist/components/blocks/kanban-board.js +0 -35
- package/dist/components/blocks/kanban-card.d.ts +0 -10
- package/dist/components/blocks/kanban-card.js +0 -34
- package/dist/components/blocks/kanban-column.d.ts +0 -17
- package/dist/components/blocks/kanban-column.js +0 -34
- package/dist/components/blocks/kanban-detail-sheet.d.ts +0 -17
- package/dist/components/blocks/kanban-detail-sheet.js +0 -34
- package/dist/components/blocks/kanban-types.d.ts +0 -24
- package/dist/components/blocks/mcp-access-grouped-tool-picker.d.ts +0 -19
- package/dist/components/blocks/mcp-access-grouped-tool-picker.js +0 -116
- package/dist/components/blocks/mcp-access-tool-picker-internals.d.ts +0 -35
- package/dist/components/blocks/mcp-access-tool-picker-internals.js +0 -24
- package/dist/components/blocks/mcp-access-tool-picker.d.ts +0 -22
- package/dist/components/blocks/mcp-access-tool-picker.js +0 -33
- package/dist/components/blocks/mcp-access-types.d.ts +0 -42
- package/dist/components/blocks/mcp-access-types.js +0 -7
- package/dist/components/blocks/mcp-client-setup.d.ts +0 -29
- package/dist/components/blocks/mcp-client-setup.js +0 -58
- package/dist/components/blocks/mcp-connect-clients.d.ts +0 -43
- package/dist/components/blocks/mcp-connect-clients.js +0 -66
- package/dist/components/blocks/mcp-plan-choice.d.ts +0 -17
- package/dist/components/blocks/mcp-plan-choice.js +0 -28
- package/dist/components/blocks/submit-feedback-composer.d.ts +0 -5
- package/dist/components/blocks/submit-feedback-composer.js +0 -40
- package/dist/components/blocks/timestamp-format.d.ts +0 -14
- package/dist/components/blocks/timestamp-format.js +0 -72
- package/dist/components/blocks/use-feedback-composer-state.d.ts +0 -27
- package/dist/components/blocks/use-feedback-composer-state.js +0 -60
- package/dist/components/blocks/use-reveal-thread-end.d.ts +0 -11
- package/dist/components/blocks/use-reveal-thread-end.js +0 -25
- package/dist/components/pages/admin-users-page.d.ts +0 -11
- package/dist/components/pages/admin-users-page.js +0 -30
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +0 -18
- package/dist/components/pages/feedback-stakeholder-page-parts.js +0 -36
- package/dist/components/pages/feedback-stakeholder-page.d.ts +0 -9
- package/dist/components/pages/feedback-stakeholder-page.js +0 -66
- package/dist/components/pages/kanban-page.d.ts +0 -13
- package/dist/components/pages/kanban-page.js +0 -68
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.js +0 -17
- package/dist/components/ui/alert-dialog.d.ts +0 -22
- package/dist/components/ui/alert-dialog.js +0 -51
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.js +0 -24
- package/dist/components/ui/app-shell-page.d.ts +0 -22
- package/dist/components/ui/app-shell-page.js +0 -21
- package/dist/components/ui/app-shell.d.ts +0 -45
- package/dist/components/ui/app-shell.js +0 -44
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/aspect-ratio.js +0 -7
- package/dist/components/ui/avatar.d.ts +0 -11
- package/dist/components/ui/avatar.js +0 -22
- package/dist/components/ui/badge-variants.d.ts +0 -100
- package/dist/components/ui/badge-variants.js +0 -140
- package/dist/components/ui/badge.d.ts +0 -6
- package/dist/components/ui/badge.js +0 -9
- package/dist/components/ui/breadcrumb.d.ts +0 -11
- package/dist/components/ui/breadcrumb.js +0 -27
- package/dist/components/ui/button-group-variants.d.ts +0 -6
- package/dist/components/ui/button-group-variants.js +0 -13
- package/dist/components/ui/button-group.d.ts +0 -8
- package/dist/components/ui/button-group.js +0 -16
- package/dist/components/ui/button-variants.d.ts +0 -133
- package/dist/components/ui/button-variants.js +0 -170
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/button.js +0 -59
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/calendar.js +0 -99
- package/dist/components/ui/card.d.ts +0 -14
- package/dist/components/ui/card.js +0 -28
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.js +0 -104
- package/dist/components/ui/chart-context.d.ts +0 -33
- package/dist/components/ui/chart-context.js +0 -36
- package/dist/components/ui/chart-panel.d.ts +0 -11
- package/dist/components/ui/chart-panel.js +0 -6
- package/dist/components/ui/chart-tooltip.d.ts +0 -13
- package/dist/components/ui/chart-tooltip.js +0 -84
- package/dist/components/ui/chart.d.ts +0 -23
- package/dist/components/ui/chart.js +0 -52
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.js +0 -9
- package/dist/components/ui/ciridae-ui-provider.d.ts +0 -8
- package/dist/components/ui/ciridae-ui-provider.js +0 -14
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/collapsible.js +0 -12
- package/dist/components/ui/color-theme-context.d.ts +0 -28
- package/dist/components/ui/color-theme-context.js +0 -3
- package/dist/components/ui/color-theme.d.ts +0 -5
- package/dist/components/ui/color-theme.js +0 -147
- package/dist/components/ui/combobox-anchor.d.ts +0 -3
- package/dist/components/ui/combobox-anchor.js +0 -5
- package/dist/components/ui/combobox.d.ts +0 -24
- package/dist/components/ui/combobox.js +0 -54
- package/dist/components/ui/command.d.ts +0 -19
- package/dist/components/ui/command.js +0 -38
- package/dist/components/ui/context-menu.d.ts +0 -30
- package/dist/components/ui/context-menu.js +0 -63
- package/dist/components/ui/data-table-column-settings.d.ts +0 -23
- package/dist/components/ui/data-table-column-settings.js +0 -170
- package/dist/components/ui/data-table-context.d.ts +0 -8
- package/dist/components/ui/data-table-context.js +0 -53
- package/dist/components/ui/data-table-controls.d.ts +0 -9
- package/dist/components/ui/data-table-controls.js +0 -30
- package/dist/components/ui/data-table-facet-filter.d.ts +0 -39
- package/dist/components/ui/data-table-facet-filter.js +0 -65
- package/dist/components/ui/data-table-grid.d.ts +0 -10
- package/dist/components/ui/data-table-grid.js +0 -34
- package/dist/components/ui/data-table-pagination.d.ts +0 -17
- package/dist/components/ui/data-table-pagination.js +0 -89
- package/dist/components/ui/data-table-search-input.d.ts +0 -14
- package/dist/components/ui/data-table-search-input.js +0 -15
- package/dist/components/ui/data-table-state.d.ts +0 -19
- package/dist/components/ui/data-table-state.js +0 -8
- package/dist/components/ui/data-table-tanstack.d.ts +0 -99
- package/dist/components/ui/data-table-tanstack.js +0 -128
- package/dist/components/ui/data-table.d.ts +0 -19
- package/dist/components/ui/data-table.js +0 -35
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.js +0 -48
- package/dist/components/ui/direction-context.d.ts +0 -3
- package/dist/components/ui/direction-context.js +0 -3
- package/dist/components/ui/direction.d.ts +0 -6
- package/dist/components/ui/direction.js +0 -7
- package/dist/components/ui/drawer.d.ts +0 -18
- package/dist/components/ui/drawer.js +0 -47
- package/dist/components/ui/dropdown-menu.d.ts +0 -30
- package/dist/components/ui/dropdown-menu.js +0 -63
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/empty.js +0 -33
- package/dist/components/ui/expandable-data-table.d.ts +0 -24
- package/dist/components/ui/expandable-data-table.js +0 -62
- package/dist/components/ui/field.d.ts +0 -26
- package/dist/components/ui/field.js +0 -74
- package/dist/components/ui/file-upload-field-parts.d.ts +0 -21
- package/dist/components/ui/file-upload-field-parts.js +0 -55
- package/dist/components/ui/file-upload-field.d.ts +0 -16
- package/dist/components/ui/file-upload-field.js +0 -85
- package/dist/components/ui/form-context.d.ts +0 -23
- package/dist/components/ui/form-context.js +0 -35
- package/dist/components/ui/form-sheet.d.ts +0 -22
- package/dist/components/ui/form-sheet.js +0 -74
- package/dist/components/ui/form.d.ts +0 -12
- package/dist/components/ui/form.js +0 -38
- package/dist/components/ui/hover-card.d.ts +0 -10
- package/dist/components/ui/hover-card.js +0 -22
- package/dist/components/ui/input-group.d.ts +0 -16
- package/dist/components/ui/input-group.js +0 -62
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-otp.js +0 -21
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/input.js +0 -6
- package/dist/components/ui/item.d.ts +0 -24
- package/dist/components/ui/item.js +0 -73
- package/dist/components/ui/kbd.d.ts +0 -3
- package/dist/components/ui/kbd.js +0 -9
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/label.js +0 -7
- package/dist/components/ui/loading-state.d.ts +0 -27
- package/dist/components/ui/loading-state.js +0 -44
- package/dist/components/ui/menubar.d.ts +0 -30
- package/dist/components/ui/menubar.js +0 -63
- package/dist/components/ui/metrics-strip.d.ts +0 -7
- package/dist/components/ui/metrics-strip.js +0 -18
- package/dist/components/ui/native-select.d.ts +0 -7
- package/dist/components/ui/native-select.js +0 -13
- package/dist/components/ui/navigation-menu-variants.d.ts +0 -2
- package/dist/components/ui/navigation-menu-variants.js +0 -3
- package/dist/components/ui/navigation-menu.d.ts +0 -13
- package/dist/components/ui/navigation-menu.js +0 -30
- package/dist/components/ui/page-header.d.ts +0 -33
- package/dist/components/ui/page-header.js +0 -54
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/pagination.js +0 -29
- package/dist/components/ui/popover.d.ts +0 -14
- package/dist/components/ui/popover.js +0 -34
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/progress.js +0 -8
- package/dist/components/ui/property-list.d.ts +0 -6
- package/dist/components/ui/property-list.js +0 -15
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/radio-group.js +0 -11
- package/dist/components/ui/registry-docs-api.d.ts +0 -11
- package/dist/components/ui/registry-docs-api.js +0 -9
- package/dist/components/ui/registry-docs-code.d.ts +0 -19
- package/dist/components/ui/registry-docs-code.js +0 -78
- package/dist/components/ui/registry-docs-showcase.d.ts +0 -11
- package/dist/components/ui/registry-docs-showcase.js +0 -27
- package/dist/components/ui/registry-docs.d.ts +0 -27
- package/dist/components/ui/registry-docs.js +0 -32
- package/dist/components/ui/resizable.d.ts +0 -14
- package/dist/components/ui/resizable.js +0 -15
- package/dist/components/ui/scroll-area.d.ts +0 -7
- package/dist/components/ui/scroll-area.js +0 -10
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -38
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -21
- package/dist/components/ui/sheet.js +0 -62
- package/dist/components/ui/sidebar/context.d.ts +0 -27
- package/dist/components/ui/sidebar/context.js +0 -23
- package/dist/components/ui/sidebar/group.d.ts +0 -10
- package/dist/components/ui/sidebar/group.js +0 -18
- package/dist/components/ui/sidebar/layout.d.ts +0 -17
- package/dist/components/ui/sidebar/layout.js +0 -78
- package/dist/components/ui/sidebar/menu.d.ts +0 -30
- package/dist/components/ui/sidebar/menu.js +0 -64
- package/dist/components/ui/sidebar/provider.d.ts +0 -7
- package/dist/components/ui/sidebar/provider.js +0 -53
- package/dist/components/ui/sidebar/rail.d.ts +0 -3
- package/dist/components/ui/sidebar/rail.js +0 -12
- package/dist/components/ui/sidebar/trigger.d.ts +0 -4
- package/dist/components/ui/sidebar/trigger.js +0 -16
- package/dist/components/ui/sidebar-account-menu-theme.d.ts +0 -7
- package/dist/components/ui/sidebar-account-menu-theme.js +0 -32
- package/dist/components/ui/sidebar-account-menu.d.ts +0 -16
- package/dist/components/ui/sidebar-account-menu.js +0 -51
- package/dist/components/ui/sidebar.d.ts +0 -7
- package/dist/components/ui/sidebar.js +0 -7
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/skeleton.js +0 -15
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/slider.js +0 -9
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/sonner.js +0 -33
- package/dist/components/ui/spinner.d.ts +0 -2
- package/dist/components/ui/spinner.js +0 -16
- package/dist/components/ui/switch.d.ts +0 -6
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -21
- package/dist/components/ui/table.js +0 -34
- package/dist/components/ui/tabs-variants.d.ts +0 -6
- package/dist/components/ui/tabs-variants.js +0 -13
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.js +0 -17
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/textarea.js +0 -6
- package/dist/components/ui/toggle-group.d.ts +0 -9
- package/dist/components/ui/toggle-group.js +0 -24
- package/dist/components/ui/toggle-variants.d.ts +0 -7
- package/dist/components/ui/toggle-variants.js +0 -19
- package/dist/components/ui/toggle.d.ts +0 -5
- package/dist/components/ui/toggle.js +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -14
- package/dist/components/ui/tooltip.js +0 -25
- package/dist/components/ui/use-color-theme.d.ts +0 -2
- package/dist/components/ui/use-color-theme.js +0 -10
- package/dist/components/ui/workflow-timeline.d.ts +0 -20
- package/dist/components/ui/workflow-timeline.js +0 -92
- package/dist/components/walkthrough/presentation/WalkthroughCoach.d.ts +0 -14
- package/dist/components/walkthrough/presentation/WalkthroughCoach.js +0 -32
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.d.ts +0 -5
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.js +0 -9
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.d.ts +0 -1
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.js +0 -70
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.d.ts +0 -11
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.js +0 -24
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.d.ts +0 -4
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.js +0 -17
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.d.ts +0 -20
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.js +0 -2
- package/dist/components/walkthrough/runtime/WalkthroughProvider.d.ts +0 -12
- package/dist/components/walkthrough/runtime/WalkthroughProvider.js +0 -190
- package/dist/components/walkthrough/runtime/useWalkthrough.d.ts +0 -1
- package/dist/components/walkthrough/runtime/useWalkthrough.js +0 -8
- package/dist/components/walkthrough/runtime/walkthroughEvents.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughEvents.js +0 -55
- package/dist/components/walkthrough/runtime/walkthroughLocation.d.ts +0 -2
- package/dist/components/walkthrough/runtime/walkthroughLocation.js +0 -27
- package/dist/components/walkthrough/runtime/walkthroughStorage.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughStorage.js +0 -54
- package/dist/components/walkthrough/runtime/walkthroughTypes.d.ts +0 -32
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.d.ts +0 -2
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.js +0 -19
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.d.ts +0 -15
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.js +0 -54
- package/dist/components/walkthrough/targeting/walkthroughTarget.d.ts +0 -6
- package/dist/components/walkthrough/targeting/walkthroughTarget.js +0 -24
- package/dist/components/walkthrough.d.ts +0 -4
- package/dist/components/walkthrough.js +0 -2
- package/dist/entries/accordion.d.ts +0 -1
- package/dist/entries/accordion.js +0 -1
- package/dist/entries/admin-users-page.d.ts +0 -1
- package/dist/entries/admin-users-page.js +0 -1
- package/dist/entries/admin-users-table.d.ts +0 -1
- package/dist/entries/admin-users-table.js +0 -1
- package/dist/entries/alert-dialog.d.ts +0 -1
- package/dist/entries/alert-dialog.js +0 -1
- package/dist/entries/alert.d.ts +0 -1
- package/dist/entries/alert.js +0 -1
- package/dist/entries/app-shell-page.d.ts +0 -1
- package/dist/entries/app-shell-page.js +0 -1
- package/dist/entries/app-shell.d.ts +0 -1
- package/dist/entries/app-shell.js +0 -1
- package/dist/entries/aspect-ratio.d.ts +0 -1
- package/dist/entries/aspect-ratio.js +0 -1
- package/dist/entries/avatar.d.ts +0 -1
- package/dist/entries/avatar.js +0 -1
- package/dist/entries/badge-variants.d.ts +0 -1
- package/dist/entries/badge-variants.js +0 -1
- package/dist/entries/badge.d.ts +0 -1
- package/dist/entries/badge.js +0 -1
- package/dist/entries/breadcrumb.d.ts +0 -1
- package/dist/entries/breadcrumb.js +0 -1
- package/dist/entries/button-group-variants.d.ts +0 -1
- package/dist/entries/button-group-variants.js +0 -1
- package/dist/entries/button-group.d.ts +0 -1
- package/dist/entries/button-group.js +0 -1
- package/dist/entries/button-variants.d.ts +0 -1
- package/dist/entries/button-variants.js +0 -1
- package/dist/entries/button.d.ts +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/calendar.d.ts +0 -1
- package/dist/entries/calendar.js +0 -1
- package/dist/entries/card.d.ts +0 -1
- package/dist/entries/card.js +0 -1
- package/dist/entries/carousel.d.ts +0 -1
- package/dist/entries/carousel.js +0 -1
- package/dist/entries/chart-context.d.ts +0 -1
- package/dist/entries/chart-context.js +0 -1
- package/dist/entries/chart-panel.d.ts +0 -1
- package/dist/entries/chart-panel.js +0 -1
- package/dist/entries/chart-tooltip.d.ts +0 -1
- package/dist/entries/chart-tooltip.js +0 -1
- package/dist/entries/chart.d.ts +0 -1
- package/dist/entries/chart.js +0 -1
- package/dist/entries/checkbox.d.ts +0 -1
- package/dist/entries/checkbox.js +0 -1
- package/dist/entries/ciridae-brand-assets.d.ts +0 -1
- package/dist/entries/ciridae-brand-assets.js +0 -1
- package/dist/entries/ciridae-ui-provider.d.ts +0 -1
- package/dist/entries/ciridae-ui-provider.js +0 -1
- package/dist/entries/collapsible.d.ts +0 -1
- package/dist/entries/collapsible.js +0 -1
- package/dist/entries/color-theme-context.d.ts +0 -1
- package/dist/entries/color-theme-context.js +0 -1
- package/dist/entries/color-theme.d.ts +0 -1
- package/dist/entries/color-theme.js +0 -1
- package/dist/entries/combobox-anchor.d.ts +0 -1
- package/dist/entries/combobox-anchor.js +0 -1
- package/dist/entries/combobox.d.ts +0 -1
- package/dist/entries/combobox.js +0 -1
- package/dist/entries/command.d.ts +0 -1
- package/dist/entries/command.js +0 -1
- package/dist/entries/comment-composer.d.ts +0 -1
- package/dist/entries/comment-composer.js +0 -1
- package/dist/entries/comment-item.d.ts +0 -1
- package/dist/entries/comment-item.js +0 -1
- package/dist/entries/comment-thread.d.ts +0 -1
- package/dist/entries/comment-thread.js +0 -1
- package/dist/entries/comment-types.d.ts +0 -1
- package/dist/entries/comment-types.js +0 -1
- package/dist/entries/context-menu.d.ts +0 -1
- package/dist/entries/context-menu.js +0 -1
- package/dist/entries/copy-field.d.ts +0 -1
- package/dist/entries/copy-field.js +0 -1
- package/dist/entries/data-table-column-settings.d.ts +0 -1
- package/dist/entries/data-table-column-settings.js +0 -1
- package/dist/entries/data-table-context.d.ts +0 -1
- package/dist/entries/data-table-context.js +0 -1
- package/dist/entries/data-table-controls.d.ts +0 -1
- package/dist/entries/data-table-controls.js +0 -1
- package/dist/entries/data-table-facet-filter.d.ts +0 -1
- package/dist/entries/data-table-facet-filter.js +0 -1
- package/dist/entries/data-table-grid.d.ts +0 -1
- package/dist/entries/data-table-grid.js +0 -1
- package/dist/entries/data-table-pagination.d.ts +0 -1
- package/dist/entries/data-table-pagination.js +0 -1
- package/dist/entries/data-table-search-input.d.ts +0 -1
- package/dist/entries/data-table-search-input.js +0 -1
- package/dist/entries/data-table-state.d.ts +0 -1
- package/dist/entries/data-table-state.js +0 -1
- package/dist/entries/data-table-tanstack.d.ts +0 -1
- package/dist/entries/data-table-tanstack.js +0 -1
- package/dist/entries/data-table.d.ts +0 -1
- package/dist/entries/data-table.js +0 -1
- package/dist/entries/dialog.d.ts +0 -1
- package/dist/entries/dialog.js +0 -1
- package/dist/entries/direction-context.d.ts +0 -1
- package/dist/entries/direction-context.js +0 -1
- package/dist/entries/direction.d.ts +0 -1
- package/dist/entries/direction.js +0 -1
- package/dist/entries/drawer.d.ts +0 -1
- package/dist/entries/drawer.js +0 -1
- package/dist/entries/dropdown-menu.d.ts +0 -1
- package/dist/entries/dropdown-menu.js +0 -1
- package/dist/entries/empty.d.ts +0 -1
- package/dist/entries/empty.js +0 -1
- package/dist/entries/expandable-data-table.d.ts +0 -1
- package/dist/entries/expandable-data-table.js +0 -1
- package/dist/entries/feedback-center-comments.d.ts +0 -1
- package/dist/entries/feedback-center-comments.js +0 -1
- package/dist/entries/feedback-center-footer.d.ts +0 -1
- package/dist/entries/feedback-center-footer.js +0 -1
- package/dist/entries/feedback-center-sheet-parts.d.ts +0 -1
- package/dist/entries/feedback-center-sheet-parts.js +0 -1
- package/dist/entries/feedback-center-sheet.d.ts +0 -1
- package/dist/entries/feedback-center-sheet.js +0 -1
- package/dist/entries/feedback-composer-parts.d.ts +0 -1
- package/dist/entries/feedback-composer-parts.js +0 -1
- package/dist/entries/feedback-composer-types.d.ts +0 -1
- package/dist/entries/feedback-composer-types.js +0 -1
- package/dist/entries/feedback-composer.d.ts +0 -1
- package/dist/entries/feedback-composer.js +0 -1
- package/dist/entries/feedback-date-format.d.ts +0 -1
- package/dist/entries/feedback-date-format.js +0 -1
- package/dist/entries/feedback-detail-sheet.d.ts +0 -1
- package/dist/entries/feedback-detail-sheet.js +0 -1
- package/dist/entries/feedback-emergency-fields.d.ts +0 -1
- package/dist/entries/feedback-emergency-fields.js +0 -1
- package/dist/entries/feedback-metrics.d.ts +0 -1
- package/dist/entries/feedback-metrics.js +0 -1
- package/dist/entries/feedback-sheet.d.ts +0 -1
- package/dist/entries/feedback-sheet.js +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.js +0 -1
- package/dist/entries/feedback-stakeholder-page.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page.js +0 -1
- package/dist/entries/feedback-status-badge.d.ts +0 -1
- package/dist/entries/feedback-status-badge.js +0 -1
- package/dist/entries/feedback-table-row.d.ts +0 -1
- package/dist/entries/feedback-table-row.js +0 -1
- package/dist/entries/feedback-table-sort.d.ts +0 -1
- package/dist/entries/feedback-table-sort.js +0 -1
- package/dist/entries/feedback-table.d.ts +0 -1
- package/dist/entries/feedback-table.js +0 -1
- package/dist/entries/feedback-tracking-types.d.ts +0 -1
- package/dist/entries/feedback-tracking-types.js +0 -1
- package/dist/entries/feedback-triage-timeline.d.ts +0 -1
- package/dist/entries/feedback-triage-timeline.js +0 -1
- package/dist/entries/feedback-type-badge.d.ts +0 -1
- package/dist/entries/feedback-type-badge.js +0 -1
- package/dist/entries/feedback-unread-badge.d.ts +0 -1
- package/dist/entries/feedback-unread-badge.js +0 -1
- package/dist/entries/feedback-user-detail.d.ts +0 -1
- package/dist/entries/feedback-user-detail.js +0 -1
- package/dist/entries/feedback-user-list.d.ts +0 -1
- package/dist/entries/feedback-user-list.js +0 -1
- package/dist/entries/field.d.ts +0 -1
- package/dist/entries/field.js +0 -1
- package/dist/entries/file-upload-field-parts.d.ts +0 -1
- package/dist/entries/file-upload-field-parts.js +0 -1
- package/dist/entries/file-upload-field.d.ts +0 -1
- package/dist/entries/file-upload-field.js +0 -1
- package/dist/entries/form-context.d.ts +0 -1
- package/dist/entries/form-context.js +0 -1
- package/dist/entries/form-sheet.d.ts +0 -1
- package/dist/entries/form-sheet.js +0 -1
- package/dist/entries/form.d.ts +0 -1
- package/dist/entries/form.js +0 -1
- package/dist/entries/generated-connect-link.d.ts +0 -1
- package/dist/entries/generated-connect-link.js +0 -1
- package/dist/entries/hover-card.d.ts +0 -1
- package/dist/entries/hover-card.js +0 -1
- package/dist/entries/input-group.d.ts +0 -1
- package/dist/entries/input-group.js +0 -1
- package/dist/entries/input-otp.d.ts +0 -1
- package/dist/entries/input-otp.js +0 -1
- package/dist/entries/input.d.ts +0 -1
- package/dist/entries/input.js +0 -1
- package/dist/entries/invite-user-sheet.d.ts +0 -1
- package/dist/entries/invite-user-sheet.js +0 -1
- package/dist/entries/item.d.ts +0 -1
- package/dist/entries/item.js +0 -1
- package/dist/entries/kanban-board-parts.d.ts +0 -1
- package/dist/entries/kanban-board-parts.js +0 -1
- package/dist/entries/kanban-board-utils.d.ts +0 -1
- package/dist/entries/kanban-board-utils.js +0 -1
- package/dist/entries/kanban-board.d.ts +0 -1
- package/dist/entries/kanban-board.js +0 -1
- package/dist/entries/kanban-card.d.ts +0 -1
- package/dist/entries/kanban-card.js +0 -1
- package/dist/entries/kanban-column.d.ts +0 -1
- package/dist/entries/kanban-column.js +0 -1
- package/dist/entries/kanban-detail-sheet.d.ts +0 -1
- package/dist/entries/kanban-detail-sheet.js +0 -1
- package/dist/entries/kanban-page.d.ts +0 -1
- package/dist/entries/kanban-page.js +0 -1
- package/dist/entries/kanban-types.d.ts +0 -1
- package/dist/entries/kanban-types.js +0 -1
- package/dist/entries/kbd.d.ts +0 -1
- package/dist/entries/kbd.js +0 -1
- package/dist/entries/label.d.ts +0 -1
- package/dist/entries/label.js +0 -1
- package/dist/entries/loading-state.d.ts +0 -1
- package/dist/entries/loading-state.js +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.js +0 -1
- package/dist/entries/mcp-access-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-tool-picker.js +0 -1
- package/dist/entries/mcp-access-types.d.ts +0 -1
- package/dist/entries/mcp-access-types.js +0 -1
- package/dist/entries/mcp-client-setup.d.ts +0 -1
- package/dist/entries/mcp-client-setup.js +0 -1
- package/dist/entries/mcp-connect-clients.d.ts +0 -1
- package/dist/entries/mcp-connect-clients.js +0 -1
- package/dist/entries/mcp-plan-choice.d.ts +0 -1
- package/dist/entries/mcp-plan-choice.js +0 -1
- package/dist/entries/menubar.d.ts +0 -1
- package/dist/entries/menubar.js +0 -1
- package/dist/entries/metrics-strip.d.ts +0 -1
- package/dist/entries/metrics-strip.js +0 -1
- package/dist/entries/native-select.d.ts +0 -1
- package/dist/entries/native-select.js +0 -1
- package/dist/entries/navigation-menu-variants.d.ts +0 -1
- package/dist/entries/navigation-menu-variants.js +0 -1
- package/dist/entries/navigation-menu.d.ts +0 -1
- package/dist/entries/navigation-menu.js +0 -1
- package/dist/entries/page-header.d.ts +0 -1
- package/dist/entries/page-header.js +0 -1
- package/dist/entries/pagination.d.ts +0 -1
- package/dist/entries/pagination.js +0 -1
- package/dist/entries/palette.d.ts +0 -2
- package/dist/entries/palette.js +0 -2
- package/dist/entries/popover.d.ts +0 -1
- package/dist/entries/popover.js +0 -1
- package/dist/entries/progress.d.ts +0 -1
- package/dist/entries/progress.js +0 -1
- package/dist/entries/property-list.d.ts +0 -1
- package/dist/entries/property-list.js +0 -1
- package/dist/entries/radio-group.d.ts +0 -1
- package/dist/entries/radio-group.js +0 -1
- package/dist/entries/registry-docs-api.d.ts +0 -1
- package/dist/entries/registry-docs-api.js +0 -1
- package/dist/entries/registry-docs-code.d.ts +0 -1
- package/dist/entries/registry-docs-code.js +0 -1
- package/dist/entries/registry-docs-showcase.d.ts +0 -1
- package/dist/entries/registry-docs-showcase.js +0 -1
- package/dist/entries/registry-docs.d.ts +0 -1
- package/dist/entries/registry-docs.js +0 -1
- package/dist/entries/resizable.d.ts +0 -1
- package/dist/entries/resizable.js +0 -1
- package/dist/entries/scroll-area.d.ts +0 -1
- package/dist/entries/scroll-area.js +0 -1
- package/dist/entries/select.d.ts +0 -1
- package/dist/entries/select.js +0 -1
- package/dist/entries/separator.d.ts +0 -1
- package/dist/entries/separator.js +0 -1
- package/dist/entries/sheet.d.ts +0 -1
- package/dist/entries/sheet.js +0 -1
- package/dist/entries/sidebar/context.d.ts +0 -1
- package/dist/entries/sidebar/context.js +0 -1
- package/dist/entries/sidebar/group.d.ts +0 -1
- package/dist/entries/sidebar/group.js +0 -1
- package/dist/entries/sidebar/layout.d.ts +0 -1
- package/dist/entries/sidebar/layout.js +0 -1
- package/dist/entries/sidebar/menu.d.ts +0 -1
- package/dist/entries/sidebar/menu.js +0 -1
- package/dist/entries/sidebar/provider.d.ts +0 -1
- package/dist/entries/sidebar/provider.js +0 -1
- package/dist/entries/sidebar/rail.d.ts +0 -1
- package/dist/entries/sidebar/rail.js +0 -1
- package/dist/entries/sidebar/trigger.d.ts +0 -1
- package/dist/entries/sidebar/trigger.js +0 -1
- package/dist/entries/sidebar-account-menu-theme.d.ts +0 -1
- package/dist/entries/sidebar-account-menu-theme.js +0 -1
- package/dist/entries/sidebar-account-menu.d.ts +0 -1
- package/dist/entries/sidebar-account-menu.js +0 -1
- package/dist/entries/sidebar.d.ts +0 -1
- package/dist/entries/sidebar.js +0 -1
- package/dist/entries/skeleton.d.ts +0 -1
- package/dist/entries/skeleton.js +0 -1
- package/dist/entries/slider.d.ts +0 -1
- package/dist/entries/slider.js +0 -1
- package/dist/entries/sonner.d.ts +0 -1
- package/dist/entries/sonner.js +0 -1
- package/dist/entries/spinner.d.ts +0 -1
- package/dist/entries/spinner.js +0 -1
- package/dist/entries/submit-feedback-composer.d.ts +0 -1
- package/dist/entries/submit-feedback-composer.js +0 -1
- package/dist/entries/switch.d.ts +0 -1
- package/dist/entries/switch.js +0 -1
- package/dist/entries/table.d.ts +0 -1
- package/dist/entries/table.js +0 -1
- package/dist/entries/tabs-variants.d.ts +0 -1
- package/dist/entries/tabs-variants.js +0 -1
- package/dist/entries/tabs.d.ts +0 -1
- package/dist/entries/tabs.js +0 -1
- package/dist/entries/textarea.d.ts +0 -1
- package/dist/entries/textarea.js +0 -1
- package/dist/entries/timestamp-format.d.ts +0 -1
- package/dist/entries/timestamp-format.js +0 -1
- package/dist/entries/toggle-group.d.ts +0 -1
- package/dist/entries/toggle-group.js +0 -1
- package/dist/entries/toggle-variants.d.ts +0 -1
- package/dist/entries/toggle-variants.js +0 -1
- package/dist/entries/toggle.d.ts +0 -1
- package/dist/entries/toggle.js +0 -1
- package/dist/entries/tooltip.d.ts +0 -1
- package/dist/entries/tooltip.js +0 -1
- package/dist/entries/use-color-theme.d.ts +0 -1
- package/dist/entries/use-color-theme.js +0 -1
- package/dist/entries/use-feedback-composer-state.d.ts +0 -1
- package/dist/entries/use-feedback-composer-state.js +0 -1
- package/dist/entries/use-mobile.d.ts +0 -1
- package/dist/entries/use-mobile.js +0 -1
- package/dist/entries/utils.d.ts +0 -1
- package/dist/entries/utils.js +0 -1
- package/dist/entries/walkthrough.d.ts +0 -1
- package/dist/entries/walkthrough.js +0 -1
- package/dist/entries/workflow-timeline.d.ts +0 -1
- package/dist/entries/workflow-timeline.js +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/hooks/use-mobile.js +0 -17
- package/dist/lib/browser-storage.d.ts +0 -12
- package/dist/lib/browser-storage.js +0 -42
- package/dist/lib/palette-presets.d.ts +0 -17
- package/dist/lib/palette-presets.js +0 -42
- package/dist/lib/palette-tokens.d.ts +0 -39
- package/dist/lib/palette-tokens.js +0 -133
- package/dist/lib/palette.d.ts +0 -83
- package/dist/lib/palette.js +0 -151
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -8
- package/dist/style-imports.d.ts +0 -3
- /package/dist/{components/blocks/feedback-composer-types.js → feedback/comment-types.js} +0 -0
- /package/dist/{components/blocks/kanban-types.js → feedback/feedback-composer-types.js} +0 -0
- /package/dist/{components/walkthrough/runtime/walkthroughTypes.js → feedback/feedback-tracking-types.js} +0 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/*
|
|
3
|
+
* Wire shapes for the agent service API (apps/agent/README.md). Every response body is parsed
|
|
4
|
+
* through these schemas once, in the client, and the parsed types are the only ones the UI uses.
|
|
5
|
+
* Field names stay snake_case to match the API.
|
|
6
|
+
*/
|
|
7
|
+
export const ConversationIdSchema = z.string().min(1).brand();
|
|
8
|
+
export const ItemIdSchema = z.string().min(1).brand();
|
|
9
|
+
export const ResponseIdSchema = z.string().min(1).brand();
|
|
10
|
+
export const ApprovalIdSchema = z.string().min(1).brand();
|
|
11
|
+
export const AttachmentIdSchema = z.string().min(1).brand();
|
|
12
|
+
export const QuestionIdSchema = z.string().min(1).brand();
|
|
13
|
+
const TimestampSchema = z.iso.datetime({ offset: true });
|
|
14
|
+
export const ResponseStatusSchema = z.enum([
|
|
15
|
+
"queued",
|
|
16
|
+
"in_progress",
|
|
17
|
+
"requires_action",
|
|
18
|
+
"completed",
|
|
19
|
+
"failed",
|
|
20
|
+
"cancelled",
|
|
21
|
+
]);
|
|
22
|
+
/** Statuses after which a response never changes again. */
|
|
23
|
+
export const settledResponseStatuses = [
|
|
24
|
+
"completed",
|
|
25
|
+
"failed",
|
|
26
|
+
"cancelled",
|
|
27
|
+
];
|
|
28
|
+
export function isResponseActive(status) {
|
|
29
|
+
return !settledResponseStatuses.includes(status);
|
|
30
|
+
}
|
|
31
|
+
export const ResponseErrorSchema = z.object({
|
|
32
|
+
code: z.string(),
|
|
33
|
+
message: z.string(),
|
|
34
|
+
});
|
|
35
|
+
export const ResponseUsageSchema = z.object({
|
|
36
|
+
input_tokens: z.number().int().nonnegative(),
|
|
37
|
+
output_tokens: z.number().int().nonnegative(),
|
|
38
|
+
});
|
|
39
|
+
export const ResponseSchema = z.object({
|
|
40
|
+
id: ResponseIdSchema,
|
|
41
|
+
conversation_id: ConversationIdSchema,
|
|
42
|
+
status: ResponseStatusSchema,
|
|
43
|
+
output_item_ids: z.array(ItemIdSchema),
|
|
44
|
+
usage: ResponseUsageSchema.nullable(),
|
|
45
|
+
error: ResponseErrorSchema.nullable(),
|
|
46
|
+
created_at: TimestampSchema,
|
|
47
|
+
completed_at: TimestampSchema.nullable(),
|
|
48
|
+
});
|
|
49
|
+
export const ConversationSchema = z.object({
|
|
50
|
+
id: ConversationIdSchema,
|
|
51
|
+
agent: z.string(),
|
|
52
|
+
title: z.string().nullable(),
|
|
53
|
+
/**
|
|
54
|
+
* The latest message's text, from the user or the assistant, as one plain line the service
|
|
55
|
+
* shortens for a conversation list; null before the first message. Optional until every chat
|
|
56
|
+
* service returns it.
|
|
57
|
+
*/
|
|
58
|
+
preview: z.string().nullish(),
|
|
59
|
+
metadata: z.record(z.string(), z.string()),
|
|
60
|
+
/** The most recent response, so a caller can resume polling or show how the last turn ended. */
|
|
61
|
+
latest_response: ResponseSchema.nullable(),
|
|
62
|
+
created_at: TimestampSchema,
|
|
63
|
+
updated_at: TimestampSchema,
|
|
64
|
+
});
|
|
65
|
+
export const ConversationPageSchema = z.object({
|
|
66
|
+
data: z.array(ConversationSchema),
|
|
67
|
+
next_cursor: z.string().nullable(),
|
|
68
|
+
});
|
|
69
|
+
export const AttachmentSchema = z.object({
|
|
70
|
+
id: AttachmentIdSchema,
|
|
71
|
+
name: z.string(),
|
|
72
|
+
media_type: z.string(),
|
|
73
|
+
size_bytes: z.number().int().nonnegative(),
|
|
74
|
+
/**
|
|
75
|
+
* Where the file's bytes are served, as a path relative to the API base
|
|
76
|
+
* (`/v1/attachments/:id/content`), so it goes through the same proxy and auth as every other
|
|
77
|
+
* call; null when the service keeps no copy.
|
|
78
|
+
*/
|
|
79
|
+
url: z.string().nullable(),
|
|
80
|
+
});
|
|
81
|
+
const itemBase = {
|
|
82
|
+
id: ItemIdSchema,
|
|
83
|
+
conversation_id: ConversationIdSchema,
|
|
84
|
+
/** Position in the conversation; strictly increasing, and the `after` cursor for polling. */
|
|
85
|
+
seq: z.number().int().nonnegative(),
|
|
86
|
+
response_id: ResponseIdSchema,
|
|
87
|
+
created_at: TimestampSchema,
|
|
88
|
+
};
|
|
89
|
+
export const MessageItemSchema = z.object({
|
|
90
|
+
...itemBase,
|
|
91
|
+
type: z.literal("message"),
|
|
92
|
+
role: z.enum(["user", "assistant"]),
|
|
93
|
+
/** Plain text; mentions are inline as `[@label](mention://kind/id)`, see `MentionSchema`. */
|
|
94
|
+
content: z.string(),
|
|
95
|
+
attachments: z.array(AttachmentSchema),
|
|
96
|
+
/**
|
|
97
|
+
* When the assistant first saw this user message: the start of the model step that read it.
|
|
98
|
+
* Null until then and always null on assistant messages. Optional until every service sends it.
|
|
99
|
+
*/
|
|
100
|
+
read_at: TimestampSchema.nullish(),
|
|
101
|
+
});
|
|
102
|
+
export const FunctionCallItemSchema = z.object({
|
|
103
|
+
...itemBase,
|
|
104
|
+
type: z.literal("function_call"),
|
|
105
|
+
call_id: z.string().min(1),
|
|
106
|
+
name: z.string().min(1),
|
|
107
|
+
/** The call's arguments as a JSON document. */
|
|
108
|
+
arguments: z.string(),
|
|
109
|
+
});
|
|
110
|
+
export const FunctionCallOutputItemSchema = z.object({
|
|
111
|
+
...itemBase,
|
|
112
|
+
type: z.literal("function_call_output"),
|
|
113
|
+
call_id: z.string().min(1),
|
|
114
|
+
status: z.enum(["completed", "failed"]),
|
|
115
|
+
output: z.string(),
|
|
116
|
+
});
|
|
117
|
+
export const ReasoningItemSchema = z.object({
|
|
118
|
+
...itemBase,
|
|
119
|
+
type: z.literal("reasoning"),
|
|
120
|
+
content: z.string(),
|
|
121
|
+
});
|
|
122
|
+
export const ApprovalDecisionSchema = z.enum(["allow", "deny"]);
|
|
123
|
+
export const ApprovalRequestItemSchema = z.object({
|
|
124
|
+
...itemBase,
|
|
125
|
+
type: z.literal("approval_request"),
|
|
126
|
+
approval_id: ApprovalIdSchema,
|
|
127
|
+
tool: z.string().min(1),
|
|
128
|
+
/** The arguments the tool would run with, as a JSON document. */
|
|
129
|
+
arguments: z.string(),
|
|
130
|
+
decision: ApprovalDecisionSchema.nullable(),
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* One prompt from opencode's native `question` tool, in its own shape: a short header, the
|
|
134
|
+
* question, options with a description each, and whether several may be picked. opencode adds a
|
|
135
|
+
* free-text answer to every question itself.
|
|
136
|
+
*/
|
|
137
|
+
export const QuestionPromptSchema = z.object({
|
|
138
|
+
question: z.string(),
|
|
139
|
+
header: z.string(),
|
|
140
|
+
options: z.array(z.object({ label: z.string(), description: z.string() })),
|
|
141
|
+
multiple: z.boolean().optional(),
|
|
142
|
+
});
|
|
143
|
+
/**
|
|
144
|
+
* The assistant asking the user one or more questions through opencode's `question` tool. The
|
|
145
|
+
* response waits in `requires_action` until they are answered; `answers` holds one list of picked
|
|
146
|
+
* labels or typed text per question, or null while unanswered.
|
|
147
|
+
*/
|
|
148
|
+
export const QuestionItemSchema = z.object({
|
|
149
|
+
...itemBase,
|
|
150
|
+
type: z.literal("question"),
|
|
151
|
+
question_id: QuestionIdSchema,
|
|
152
|
+
questions: z.array(QuestionPromptSchema).min(1),
|
|
153
|
+
answers: z.array(z.array(z.string())).nullable(),
|
|
154
|
+
});
|
|
155
|
+
export const ItemSchema = z.discriminatedUnion("type", [
|
|
156
|
+
MessageItemSchema,
|
|
157
|
+
FunctionCallItemSchema,
|
|
158
|
+
FunctionCallOutputItemSchema,
|
|
159
|
+
ReasoningItemSchema,
|
|
160
|
+
ApprovalRequestItemSchema,
|
|
161
|
+
QuestionItemSchema,
|
|
162
|
+
]);
|
|
163
|
+
export const ItemPageSchema = z.object({
|
|
164
|
+
data: z.array(ItemSchema),
|
|
165
|
+
has_more: z.boolean(),
|
|
166
|
+
});
|
|
167
|
+
export const CreatedItemSchema = z.object({ response_id: ResponseIdSchema });
|
|
168
|
+
export const ApprovalSchema = z.object({
|
|
169
|
+
id: ApprovalIdSchema,
|
|
170
|
+
response_id: ResponseIdSchema,
|
|
171
|
+
item_id: ItemIdSchema,
|
|
172
|
+
tool: z.string().min(1),
|
|
173
|
+
arguments: z.string(),
|
|
174
|
+
decision: ApprovalDecisionSchema.nullable(),
|
|
175
|
+
decided_by: z.string().nullable(),
|
|
176
|
+
decided_at: TimestampSchema.nullable(),
|
|
177
|
+
});
|
|
178
|
+
/**
|
|
179
|
+
* Something a message points at, such as a record, a field or a document. It travels inside the
|
|
180
|
+
* message text as `[@label](mention://kind/id)`, so the model reads the label and the reference in
|
|
181
|
+
* place and the UI draws a chip there; `formatMention` and `parseMentions` convert both ways.
|
|
182
|
+
*/
|
|
183
|
+
export const MentionSchema = z.object({
|
|
184
|
+
id: z.string().min(1),
|
|
185
|
+
kind: z.string().regex(/^[a-z][a-z0-9_-]*$/),
|
|
186
|
+
label: z.string().min(1),
|
|
187
|
+
});
|
|
188
|
+
const mentionPattern = /\[@([^\]]+)\]\(mention:\/\/([a-z][a-z0-9_-]*)\/([^)\s]+)\)/g;
|
|
189
|
+
export function formatMention({ id, kind, label }) {
|
|
190
|
+
return `[@${label.replace(/[[\]]/g, "")}](mention://${kind}/${encodeURIComponent(id)})`;
|
|
191
|
+
}
|
|
192
|
+
/** Message text split into plain runs and mentions, in order. */
|
|
193
|
+
export function parseMentions(content) {
|
|
194
|
+
const parts = [];
|
|
195
|
+
let lastIndex = 0;
|
|
196
|
+
for (const match of content.matchAll(mentionPattern)) {
|
|
197
|
+
const [token, label = "", kind = "", encodedId = ""] = match;
|
|
198
|
+
if (match.index > lastIndex)
|
|
199
|
+
parts.push(content.slice(lastIndex, match.index));
|
|
200
|
+
parts.push({ label, kind, id: decodeURIComponent(encodedId) });
|
|
201
|
+
lastIndex = match.index + token.length;
|
|
202
|
+
}
|
|
203
|
+
if (lastIndex < content.length)
|
|
204
|
+
parts.push(content.slice(lastIndex));
|
|
205
|
+
return parts;
|
|
206
|
+
}
|
|
207
|
+
export const CreateConversationRequestSchema = z.strictObject({
|
|
208
|
+
agent: z.string().min(1).optional(),
|
|
209
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
210
|
+
});
|
|
211
|
+
/** Files are uploaded first with `POST /v1/attachments` (multipart, field `file`). */
|
|
212
|
+
export const CreateItemRequestSchema = z.strictObject({
|
|
213
|
+
content: z.string(),
|
|
214
|
+
attachment_ids: z.array(AttachmentIdSchema).readonly().optional(),
|
|
215
|
+
});
|
|
216
|
+
export const DecideApprovalRequestSchema = z.strictObject({ decision: ApprovalDecisionSchema });
|
|
217
|
+
/**
|
|
218
|
+
* `POST /v1/conversations/:id/questions/:question_id/answer`, passed to opencode's `form.reply`:
|
|
219
|
+
* one list of picked labels or typed text per question, in order.
|
|
220
|
+
*/
|
|
221
|
+
export const AnswerQuestionRequestSchema = z.strictObject({
|
|
222
|
+
answers: z.array(z.array(z.string().min(1)).min(1)).min(1),
|
|
223
|
+
});
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { type QueryClient } from "@tanstack/react-query";
|
|
2
|
+
import type { ChatClient } from "./chat-client.js";
|
|
3
|
+
import type { ConversationId } from "./contract.js";
|
|
4
|
+
/** A conversation's items, shared by the open conversation and the prefetches that warm it. */
|
|
5
|
+
export declare function conversationItemsQueryOptions(queryClient: QueryClient, client: ChatClient, conversationId: ConversationId | null): import("@tanstack/react-query/build/legacy").UseQueryOptions<({
|
|
6
|
+
type: "message";
|
|
7
|
+
role: "user" | "assistant";
|
|
8
|
+
content: string;
|
|
9
|
+
attachments: {
|
|
10
|
+
id: string & import("zod/index.cjs").$brand<"AttachmentId">;
|
|
11
|
+
name: string;
|
|
12
|
+
media_type: string;
|
|
13
|
+
size_bytes: number;
|
|
14
|
+
url: string | null;
|
|
15
|
+
}[];
|
|
16
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
17
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
18
|
+
seq: number;
|
|
19
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
20
|
+
created_at: string;
|
|
21
|
+
read_at?: string | null | undefined;
|
|
22
|
+
} | {
|
|
23
|
+
type: "function_call";
|
|
24
|
+
call_id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
arguments: string;
|
|
27
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
28
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
29
|
+
seq: number;
|
|
30
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
31
|
+
created_at: string;
|
|
32
|
+
} | {
|
|
33
|
+
type: "function_call_output";
|
|
34
|
+
call_id: string;
|
|
35
|
+
status: "completed" | "failed";
|
|
36
|
+
output: string;
|
|
37
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
38
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
39
|
+
seq: number;
|
|
40
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
41
|
+
created_at: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: "reasoning";
|
|
44
|
+
content: string;
|
|
45
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
46
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
47
|
+
seq: number;
|
|
48
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
49
|
+
created_at: string;
|
|
50
|
+
} | {
|
|
51
|
+
type: "approval_request";
|
|
52
|
+
approval_id: string & import("zod/index.cjs").$brand<"ApprovalId">;
|
|
53
|
+
tool: string;
|
|
54
|
+
arguments: string;
|
|
55
|
+
decision: "allow" | "deny" | null;
|
|
56
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
57
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
58
|
+
seq: number;
|
|
59
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
60
|
+
created_at: string;
|
|
61
|
+
} | {
|
|
62
|
+
type: "question";
|
|
63
|
+
question_id: string & import("zod/index.cjs").$brand<"QuestionId">;
|
|
64
|
+
questions: {
|
|
65
|
+
question: string;
|
|
66
|
+
header: string;
|
|
67
|
+
options: {
|
|
68
|
+
label: string;
|
|
69
|
+
description: string;
|
|
70
|
+
}[];
|
|
71
|
+
multiple?: boolean | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
answers: string[][] | null;
|
|
74
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
75
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
76
|
+
seq: number;
|
|
77
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
78
|
+
created_at: string;
|
|
79
|
+
})[], Error, ({
|
|
80
|
+
type: "message";
|
|
81
|
+
role: "user" | "assistant";
|
|
82
|
+
content: string;
|
|
83
|
+
attachments: {
|
|
84
|
+
id: string & import("zod/index.cjs").$brand<"AttachmentId">;
|
|
85
|
+
name: string;
|
|
86
|
+
media_type: string;
|
|
87
|
+
size_bytes: number;
|
|
88
|
+
url: string | null;
|
|
89
|
+
}[];
|
|
90
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
91
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
92
|
+
seq: number;
|
|
93
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
94
|
+
created_at: string;
|
|
95
|
+
read_at?: string | null | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
type: "function_call";
|
|
98
|
+
call_id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
arguments: string;
|
|
101
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
102
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
103
|
+
seq: number;
|
|
104
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
105
|
+
created_at: string;
|
|
106
|
+
} | {
|
|
107
|
+
type: "function_call_output";
|
|
108
|
+
call_id: string;
|
|
109
|
+
status: "completed" | "failed";
|
|
110
|
+
output: string;
|
|
111
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
112
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
113
|
+
seq: number;
|
|
114
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
115
|
+
created_at: string;
|
|
116
|
+
} | {
|
|
117
|
+
type: "reasoning";
|
|
118
|
+
content: string;
|
|
119
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
120
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
121
|
+
seq: number;
|
|
122
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
123
|
+
created_at: string;
|
|
124
|
+
} | {
|
|
125
|
+
type: "approval_request";
|
|
126
|
+
approval_id: string & import("zod/index.cjs").$brand<"ApprovalId">;
|
|
127
|
+
tool: string;
|
|
128
|
+
arguments: string;
|
|
129
|
+
decision: "allow" | "deny" | null;
|
|
130
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
131
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
132
|
+
seq: number;
|
|
133
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
134
|
+
created_at: string;
|
|
135
|
+
} | {
|
|
136
|
+
type: "question";
|
|
137
|
+
question_id: string & import("zod/index.cjs").$brand<"QuestionId">;
|
|
138
|
+
questions: {
|
|
139
|
+
question: string;
|
|
140
|
+
header: string;
|
|
141
|
+
options: {
|
|
142
|
+
label: string;
|
|
143
|
+
description: string;
|
|
144
|
+
}[];
|
|
145
|
+
multiple?: boolean | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
answers: string[][] | null;
|
|
148
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
149
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
150
|
+
seq: number;
|
|
151
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
152
|
+
created_at: string;
|
|
153
|
+
})[], readonly ["ciridae-chat", string, "conversation-items", (string & import("zod/index.cjs").$brand<"ConversationId">) | null]> & {
|
|
154
|
+
initialData?: ({
|
|
155
|
+
type: "message";
|
|
156
|
+
role: "user" | "assistant";
|
|
157
|
+
content: string;
|
|
158
|
+
attachments: {
|
|
159
|
+
id: string & import("zod/index.cjs").$brand<"AttachmentId">;
|
|
160
|
+
name: string;
|
|
161
|
+
media_type: string;
|
|
162
|
+
size_bytes: number;
|
|
163
|
+
url: string | null;
|
|
164
|
+
}[];
|
|
165
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
166
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
167
|
+
seq: number;
|
|
168
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
169
|
+
created_at: string;
|
|
170
|
+
read_at?: string | null | undefined;
|
|
171
|
+
} | {
|
|
172
|
+
type: "function_call";
|
|
173
|
+
call_id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
arguments: string;
|
|
176
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
177
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
178
|
+
seq: number;
|
|
179
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
180
|
+
created_at: string;
|
|
181
|
+
} | {
|
|
182
|
+
type: "function_call_output";
|
|
183
|
+
call_id: string;
|
|
184
|
+
status: "completed" | "failed";
|
|
185
|
+
output: string;
|
|
186
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
187
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
188
|
+
seq: number;
|
|
189
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
190
|
+
created_at: string;
|
|
191
|
+
} | {
|
|
192
|
+
type: "reasoning";
|
|
193
|
+
content: string;
|
|
194
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
195
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
196
|
+
seq: number;
|
|
197
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
198
|
+
created_at: string;
|
|
199
|
+
} | {
|
|
200
|
+
type: "approval_request";
|
|
201
|
+
approval_id: string & import("zod/index.cjs").$brand<"ApprovalId">;
|
|
202
|
+
tool: string;
|
|
203
|
+
arguments: string;
|
|
204
|
+
decision: "allow" | "deny" | null;
|
|
205
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
206
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
207
|
+
seq: number;
|
|
208
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
209
|
+
created_at: string;
|
|
210
|
+
} | {
|
|
211
|
+
type: "question";
|
|
212
|
+
question_id: string & import("zod/index.cjs").$brand<"QuestionId">;
|
|
213
|
+
questions: {
|
|
214
|
+
question: string;
|
|
215
|
+
header: string;
|
|
216
|
+
options: {
|
|
217
|
+
label: string;
|
|
218
|
+
description: string;
|
|
219
|
+
}[];
|
|
220
|
+
multiple?: boolean | undefined;
|
|
221
|
+
}[];
|
|
222
|
+
answers: string[][] | null;
|
|
223
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
224
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
225
|
+
seq: number;
|
|
226
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
227
|
+
created_at: string;
|
|
228
|
+
})[] | import("@tanstack/react-query/build/legacy").InitialDataFunction<({
|
|
229
|
+
type: "message";
|
|
230
|
+
role: "user" | "assistant";
|
|
231
|
+
content: string;
|
|
232
|
+
attachments: {
|
|
233
|
+
id: string & import("zod/index.cjs").$brand<"AttachmentId">;
|
|
234
|
+
name: string;
|
|
235
|
+
media_type: string;
|
|
236
|
+
size_bytes: number;
|
|
237
|
+
url: string | null;
|
|
238
|
+
}[];
|
|
239
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
240
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
241
|
+
seq: number;
|
|
242
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
243
|
+
created_at: string;
|
|
244
|
+
read_at?: string | null | undefined;
|
|
245
|
+
} | {
|
|
246
|
+
type: "function_call";
|
|
247
|
+
call_id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
arguments: string;
|
|
250
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
251
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
252
|
+
seq: number;
|
|
253
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
254
|
+
created_at: string;
|
|
255
|
+
} | {
|
|
256
|
+
type: "function_call_output";
|
|
257
|
+
call_id: string;
|
|
258
|
+
status: "completed" | "failed";
|
|
259
|
+
output: string;
|
|
260
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
261
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
262
|
+
seq: number;
|
|
263
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
264
|
+
created_at: string;
|
|
265
|
+
} | {
|
|
266
|
+
type: "reasoning";
|
|
267
|
+
content: string;
|
|
268
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
269
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
270
|
+
seq: number;
|
|
271
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
272
|
+
created_at: string;
|
|
273
|
+
} | {
|
|
274
|
+
type: "approval_request";
|
|
275
|
+
approval_id: string & import("zod/index.cjs").$brand<"ApprovalId">;
|
|
276
|
+
tool: string;
|
|
277
|
+
arguments: string;
|
|
278
|
+
decision: "allow" | "deny" | null;
|
|
279
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
280
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
281
|
+
seq: number;
|
|
282
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
283
|
+
created_at: string;
|
|
284
|
+
} | {
|
|
285
|
+
type: "question";
|
|
286
|
+
question_id: string & import("zod/index.cjs").$brand<"QuestionId">;
|
|
287
|
+
questions: {
|
|
288
|
+
question: string;
|
|
289
|
+
header: string;
|
|
290
|
+
options: {
|
|
291
|
+
label: string;
|
|
292
|
+
description: string;
|
|
293
|
+
}[];
|
|
294
|
+
multiple?: boolean | undefined;
|
|
295
|
+
}[];
|
|
296
|
+
answers: string[][] | null;
|
|
297
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
298
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
299
|
+
seq: number;
|
|
300
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
301
|
+
created_at: string;
|
|
302
|
+
})[]> | undefined;
|
|
303
|
+
} & {
|
|
304
|
+
queryKey: readonly ["ciridae-chat", string, "conversation-items", (string & import("zod/index.cjs").$brand<"ConversationId">) | null] & {
|
|
305
|
+
[dataTagSymbol]: ({
|
|
306
|
+
type: "message";
|
|
307
|
+
role: "user" | "assistant";
|
|
308
|
+
content: string;
|
|
309
|
+
attachments: {
|
|
310
|
+
id: string & import("zod/index.cjs").$brand<"AttachmentId">;
|
|
311
|
+
name: string;
|
|
312
|
+
media_type: string;
|
|
313
|
+
size_bytes: number;
|
|
314
|
+
url: string | null;
|
|
315
|
+
}[];
|
|
316
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
317
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
318
|
+
seq: number;
|
|
319
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
320
|
+
created_at: string;
|
|
321
|
+
read_at?: string | null | undefined;
|
|
322
|
+
} | {
|
|
323
|
+
type: "function_call";
|
|
324
|
+
call_id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
arguments: string;
|
|
327
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
328
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
329
|
+
seq: number;
|
|
330
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
331
|
+
created_at: string;
|
|
332
|
+
} | {
|
|
333
|
+
type: "function_call_output";
|
|
334
|
+
call_id: string;
|
|
335
|
+
status: "completed" | "failed";
|
|
336
|
+
output: string;
|
|
337
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
338
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
339
|
+
seq: number;
|
|
340
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
341
|
+
created_at: string;
|
|
342
|
+
} | {
|
|
343
|
+
type: "reasoning";
|
|
344
|
+
content: string;
|
|
345
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
346
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
347
|
+
seq: number;
|
|
348
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
349
|
+
created_at: string;
|
|
350
|
+
} | {
|
|
351
|
+
type: "approval_request";
|
|
352
|
+
approval_id: string & import("zod/index.cjs").$brand<"ApprovalId">;
|
|
353
|
+
tool: string;
|
|
354
|
+
arguments: string;
|
|
355
|
+
decision: "allow" | "deny" | null;
|
|
356
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
357
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
358
|
+
seq: number;
|
|
359
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
360
|
+
created_at: string;
|
|
361
|
+
} | {
|
|
362
|
+
type: "question";
|
|
363
|
+
question_id: string & import("zod/index.cjs").$brand<"QuestionId">;
|
|
364
|
+
questions: {
|
|
365
|
+
question: string;
|
|
366
|
+
header: string;
|
|
367
|
+
options: {
|
|
368
|
+
label: string;
|
|
369
|
+
description: string;
|
|
370
|
+
}[];
|
|
371
|
+
multiple?: boolean | undefined;
|
|
372
|
+
}[];
|
|
373
|
+
answers: string[][] | null;
|
|
374
|
+
id: string & import("zod/index.cjs").$brand<"ItemId">;
|
|
375
|
+
conversation_id: string & import("zod/index.cjs").$brand<"ConversationId">;
|
|
376
|
+
seq: number;
|
|
377
|
+
response_id: string & import("zod/index.cjs").$brand<"ResponseId">;
|
|
378
|
+
created_at: string;
|
|
379
|
+
})[];
|
|
380
|
+
[dataTagErrorSymbol]: Error;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { queryOptions, skipToken } from "@tanstack/react-query";
|
|
2
|
+
import { chatQueryKeys } from "./chat-query-keys.js";
|
|
3
|
+
import { fetchNewConversationItems } from "./fetch-new-conversation-items.js";
|
|
4
|
+
/** How long a conversation's items stay cached after nothing shows them, so reopening it is instant. */
|
|
5
|
+
const unusedConversationItemsGcTimeMs = 30 * 60000;
|
|
6
|
+
/** A conversation's items, shared by the open conversation and the prefetches that warm it. */
|
|
7
|
+
export function conversationItemsQueryOptions(queryClient, client, conversationId) {
|
|
8
|
+
return queryOptions({
|
|
9
|
+
queryKey: chatQueryKeys.conversationItems(client, conversationId),
|
|
10
|
+
queryFn: conversationId === null
|
|
11
|
+
? skipToken
|
|
12
|
+
: () => fetchNewConversationItems(queryClient, client, conversationId),
|
|
13
|
+
gcTime: unusedConversationItemsGcTimeMs,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a tool call waiting for approval asks to do, read from a tool name that starts with its
|
|
3
|
+
* verb: `search_invoices` is "Search invoices", and a one-word noun like `webfetch` "Use webfetch".
|
|
4
|
+
*/
|
|
5
|
+
export declare function describeApprovalRequest(toolName: string): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Common verbs a tool name can be on its own, so `read` reads as a verb. */
|
|
2
|
+
const singleWordVerbs = new Set([
|
|
3
|
+
"find",
|
|
4
|
+
"get",
|
|
5
|
+
"make",
|
|
6
|
+
"put",
|
|
7
|
+
"read",
|
|
8
|
+
"run",
|
|
9
|
+
"send",
|
|
10
|
+
"set",
|
|
11
|
+
"stop",
|
|
12
|
+
"write",
|
|
13
|
+
]);
|
|
14
|
+
/**
|
|
15
|
+
* What a tool call waiting for approval asks to do, read from a tool name that starts with its
|
|
16
|
+
* verb: `search_invoices` is "Search invoices", and a one-word noun like `webfetch` "Use webfetch".
|
|
17
|
+
*/
|
|
18
|
+
export function describeApprovalRequest(toolName) {
|
|
19
|
+
const [verb = toolName, ...rest] = splitIdentifierWords(toolName).map((word) => word.toLowerCase());
|
|
20
|
+
const object = rest.join(" ");
|
|
21
|
+
if (!object && !singleWordVerbs.has(verb))
|
|
22
|
+
return `Use ${verb}`;
|
|
23
|
+
return capitalize([verb, object].filter(Boolean).join(" "));
|
|
24
|
+
}
|
|
25
|
+
function splitIdentifierWords(name) {
|
|
26
|
+
return name
|
|
27
|
+
.replace(/([a-z0-9])([A-Z])/g, "$1 $2")
|
|
28
|
+
.split(/[\s_.-]+/)
|
|
29
|
+
.filter(Boolean);
|
|
30
|
+
}
|
|
31
|
+
function capitalize(text) {
|
|
32
|
+
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChatClient } from "./chat-client.js";
|
|
2
|
+
import type { ConversationId, Item } from "./contract.js";
|
|
3
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
4
|
+
/**
|
|
5
|
+
* Fetches the items after the newest cached one, following `has_more`, and returns the cached
|
|
6
|
+
* items with them merged in seq order. An empty cache fetches the whole conversation. A user
|
|
7
|
+
* message of the newest response that the assistant has not read yet is fetched again, so its
|
|
8
|
+
* `read_at` arrives.
|
|
9
|
+
*/
|
|
10
|
+
export declare function fetchNewConversationItems(queryClient: QueryClient, client: ChatClient, conversationId: ConversationId): Promise<Item[]>;
|