@vendoai/ui 0.4.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/LICENSE +202 -0
- package/README.md +7 -0
- package/dist/chrome/activity-ledger.d.ts +14 -0
- package/dist/chrome/activity-ledger.d.ts.map +1 -0
- package/dist/chrome/activity-ledger.js +40 -0
- package/dist/chrome/activity-ledger.js.map +1 -0
- package/dist/chrome/activity-panel.d.ts +7 -0
- package/dist/chrome/activity-panel.d.ts.map +1 -0
- package/dist/chrome/activity-panel.js +27 -0
- package/dist/chrome/activity-panel.js.map +1 -0
- package/dist/chrome/activity-semantics.d.ts +42 -0
- package/dist/chrome/activity-semantics.d.ts.map +1 -0
- package/dist/chrome/activity-semantics.js +119 -0
- package/dist/chrome/activity-semantics.js.map +1 -0
- package/dist/chrome/approval-card.d.ts +22 -0
- package/dist/chrome/approval-card.d.ts.map +1 -0
- package/dist/chrome/approval-card.js +95 -0
- package/dist/chrome/approval-card.js.map +1 -0
- package/dist/chrome/approval-sheet.d.ts +23 -0
- package/dist/chrome/approval-sheet.d.ts.map +1 -0
- package/dist/chrome/approval-sheet.js +72 -0
- package/dist/chrome/approval-sheet.js.map +1 -0
- package/dist/chrome/automations-panel.d.ts +3 -0
- package/dist/chrome/automations-panel.d.ts.map +1 -0
- package/dist/chrome/automations-panel.js +305 -0
- package/dist/chrome/automations-panel.js.map +1 -0
- package/dist/chrome/build-beat.d.ts +70 -0
- package/dist/chrome/build-beat.d.ts.map +1 -0
- package/dist/chrome/build-beat.js +101 -0
- package/dist/chrome/build-beat.js.map +1 -0
- package/dist/chrome/chrome-css.d.ts +7 -0
- package/dist/chrome/chrome-css.d.ts.map +1 -0
- package/dist/chrome/chrome-css.js +2042 -0
- package/dist/chrome/chrome-css.js.map +1 -0
- package/dist/chrome/chrome-root.d.ts +13 -0
- package/dist/chrome/chrome-root.d.ts.map +1 -0
- package/dist/chrome/chrome-root.js +39 -0
- package/dist/chrome/chrome-root.js.map +1 -0
- package/dist/chrome/clipboard.d.ts +4 -0
- package/dist/chrome/clipboard.d.ts.map +1 -0
- package/dist/chrome/clipboard.js +49 -0
- package/dist/chrome/clipboard.js.map +1 -0
- package/dist/chrome/connect-card.d.ts +19 -0
- package/dist/chrome/connect-card.d.ts.map +1 -0
- package/dist/chrome/connect-card.js +57 -0
- package/dist/chrome/connect-card.js.map +1 -0
- package/dist/chrome/connect-dock.d.ts +25 -0
- package/dist/chrome/connect-dock.d.ts.map +1 -0
- package/dist/chrome/connect-dock.js +192 -0
- package/dist/chrome/connect-dock.js.map +1 -0
- package/dist/chrome/connected-accounts-panel.d.ts +14 -0
- package/dist/chrome/connected-accounts-panel.d.ts.map +1 -0
- package/dist/chrome/connected-accounts-panel.js +157 -0
- package/dist/chrome/connected-accounts-panel.js.map +1 -0
- package/dist/chrome/dev-mode.d.ts +5 -0
- package/dist/chrome/dev-mode.d.ts.map +1 -0
- package/dist/chrome/dev-mode.js +7 -0
- package/dist/chrome/dev-mode.js.map +1 -0
- package/dist/chrome/discoverability.d.ts +33 -0
- package/dist/chrome/discoverability.d.ts.map +1 -0
- package/dist/chrome/discoverability.js +63 -0
- package/dist/chrome/discoverability.js.map +1 -0
- package/dist/chrome/embeds.d.ts +21 -0
- package/dist/chrome/embeds.d.ts.map +1 -0
- package/dist/chrome/embeds.js +181 -0
- package/dist/chrome/embeds.js.map +1 -0
- package/dist/chrome/fluid-thinking.d.ts +15 -0
- package/dist/chrome/fluid-thinking.d.ts.map +1 -0
- package/dist/chrome/fluid-thinking.js +37 -0
- package/dist/chrome/fluid-thinking.js.map +1 -0
- package/dist/chrome/humanize.d.ts +46 -0
- package/dist/chrome/humanize.d.ts.map +1 -0
- package/dist/chrome/humanize.js +104 -0
- package/dist/chrome/humanize.js.map +1 -0
- package/dist/chrome/index.d.ts +39 -0
- package/dist/chrome/index.d.ts.map +1 -0
- package/dist/chrome/index.js +38 -0
- package/dist/chrome/index.js.map +1 -0
- package/dist/chrome/markdown.d.ts +23 -0
- package/dist/chrome/markdown.d.ts.map +1 -0
- package/dist/chrome/markdown.js +149 -0
- package/dist/chrome/markdown.js.map +1 -0
- package/dist/chrome/morph-toast.d.ts +43 -0
- package/dist/chrome/morph-toast.d.ts.map +1 -0
- package/dist/chrome/morph-toast.js +89 -0
- package/dist/chrome/morph-toast.js.map +1 -0
- package/dist/chrome/no-policy-notice.d.ts +8 -0
- package/dist/chrome/no-policy-notice.d.ts.map +1 -0
- package/dist/chrome/no-policy-notice.js +18 -0
- package/dist/chrome/no-policy-notice.js.map +1 -0
- package/dist/chrome/onest-font.gen.d.ts +10 -0
- package/dist/chrome/onest-font.gen.d.ts.map +1 -0
- package/dist/chrome/onest-font.gen.js +10 -0
- package/dist/chrome/onest-font.gen.js.map +1 -0
- package/dist/chrome/overlay-registry.d.ts +66 -0
- package/dist/chrome/overlay-registry.d.ts.map +1 -0
- package/dist/chrome/overlay-registry.js +103 -0
- package/dist/chrome/overlay-registry.js.map +1 -0
- package/dist/chrome/palette-hotkey.d.ts +42 -0
- package/dist/chrome/palette-hotkey.d.ts.map +1 -0
- package/dist/chrome/palette-hotkey.js +91 -0
- package/dist/chrome/palette-hotkey.js.map +1 -0
- package/dist/chrome/policy-notice-body.d.ts +3 -0
- package/dist/chrome/policy-notice-body.d.ts.map +1 -0
- package/dist/chrome/policy-notice-body.js +6 -0
- package/dist/chrome/policy-notice-body.js.map +1 -0
- package/dist/chrome/takeover-portal.d.ts +16 -0
- package/dist/chrome/takeover-portal.d.ts.map +1 -0
- package/dist/chrome/takeover-portal.js +21 -0
- package/dist/chrome/takeover-portal.js.map +1 -0
- package/dist/chrome/thread/attachments.d.ts +24 -0
- package/dist/chrome/thread/attachments.d.ts.map +1 -0
- package/dist/chrome/thread/attachments.js +50 -0
- package/dist/chrome/thread/attachments.js.map +1 -0
- package/dist/chrome/thread/composer.d.ts +63 -0
- package/dist/chrome/thread/composer.d.ts.map +1 -0
- package/dist/chrome/thread/composer.js +259 -0
- package/dist/chrome/thread/composer.js.map +1 -0
- package/dist/chrome/thread/index.d.ts +41 -0
- package/dist/chrome/thread/index.d.ts.map +1 -0
- package/dist/chrome/thread/index.js +258 -0
- package/dist/chrome/thread/index.js.map +1 -0
- package/dist/chrome/thread/message-data.d.ts +35 -0
- package/dist/chrome/thread/message-data.d.ts.map +1 -0
- package/dist/chrome/thread/message-data.js +127 -0
- package/dist/chrome/thread/message-data.js.map +1 -0
- package/dist/chrome/thread/message-list.d.ts +30 -0
- package/dist/chrome/thread/message-list.d.ts.map +1 -0
- package/dist/chrome/thread/message-list.js +11 -0
- package/dist/chrome/thread/message-list.js.map +1 -0
- package/dist/chrome/thread/message.d.ts +18 -0
- package/dist/chrome/thread/message.d.ts.map +1 -0
- package/dist/chrome/thread/message.js +57 -0
- package/dist/chrome/thread/message.js.map +1 -0
- package/dist/chrome/thread/parts.d.ts +53 -0
- package/dist/chrome/thread/parts.d.ts.map +1 -0
- package/dist/chrome/thread/parts.js +184 -0
- package/dist/chrome/thread/parts.js.map +1 -0
- package/dist/chrome/thread/scrolling.d.ts +26 -0
- package/dist/chrome/thread/scrolling.d.ts.map +1 -0
- package/dist/chrome/thread/scrolling.js +214 -0
- package/dist/chrome/thread/scrolling.js.map +1 -0
- package/dist/chrome/truncate.d.ts +12 -0
- package/dist/chrome/truncate.d.ts.map +1 -0
- package/dist/chrome/truncate.js +18 -0
- package/dist/chrome/truncate.js.map +1 -0
- package/dist/chrome/vendo-activities.d.ts +24 -0
- package/dist/chrome/vendo-activities.d.ts.map +1 -0
- package/dist/chrome/vendo-activities.js +38 -0
- package/dist/chrome/vendo-activities.js.map +1 -0
- package/dist/chrome/vendo-overlay.d.ts +63 -0
- package/dist/chrome/vendo-overlay.d.ts.map +1 -0
- package/dist/chrome/vendo-overlay.js +256 -0
- package/dist/chrome/vendo-overlay.js.map +1 -0
- package/dist/chrome/vendo-page.d.ts +3 -0
- package/dist/chrome/vendo-page.d.ts.map +1 -0
- package/dist/chrome/vendo-page.js +162 -0
- package/dist/chrome/vendo-page.js.map +1 -0
- package/dist/chrome/vendo-palette.d.ts +29 -0
- package/dist/chrome/vendo-palette.d.ts.map +1 -0
- package/dist/chrome/vendo-palette.js +95 -0
- package/dist/chrome/vendo-palette.js.map +1 -0
- package/dist/chrome/vendo-slot.d.ts +79 -0
- package/dist/chrome/vendo-slot.d.ts.map +1 -0
- package/dist/chrome/vendo-slot.js +153 -0
- package/dist/chrome/vendo-slot.js.map +1 -0
- package/dist/chrome/vendo-toasts.d.ts +40 -0
- package/dist/chrome/vendo-toasts.d.ts.map +1 -0
- package/dist/chrome/vendo-toasts.js +135 -0
- package/dist/chrome/vendo-toasts.js.map +1 -0
- package/dist/chrome/vendo-trigger.d.ts +24 -0
- package/dist/chrome/vendo-trigger.d.ts.map +1 -0
- package/dist/chrome/vendo-trigger.js +30 -0
- package/dist/chrome/vendo-trigger.js.map +1 -0
- package/dist/chrome/waiting-queue.d.ts +8 -0
- package/dist/chrome/waiting-queue.d.ts.map +1 -0
- package/dist/chrome/waiting-queue.js +21 -0
- package/dist/chrome/waiting-queue.js.map +1 -0
- package/dist/client-impl.d.ts +4 -0
- package/dist/client-impl.d.ts.map +1 -0
- package/dist/client-impl.js +160 -0
- package/dist/client-impl.js.map +1 -0
- package/dist/client.d.ts +136 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -0
- package/dist/context.d.ts +97 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +71 -0
- package/dist/context.js.map +1 -0
- package/dist/eject-templates/activities/index.tsx +113 -0
- package/dist/eject-templates/templates.json +29 -0
- package/dist/eject-templates/thread/attachments.tsx +69 -0
- package/dist/eject-templates/thread/composer.tsx +409 -0
- package/dist/eject-templates/thread/index.tsx +422 -0
- package/dist/eject-templates/thread/message-data.ts +151 -0
- package/dist/eject-templates/thread/message-list.tsx +123 -0
- package/dist/eject-templates/thread/message.tsx +149 -0
- package/dist/eject-templates/thread/parts.tsx +293 -0
- package/dist/eject-templates/thread/scrolling.ts +223 -0
- package/dist/embeds.d.ts +28 -0
- package/dist/embeds.d.ts.map +1 -0
- package/dist/embeds.js +2 -0
- package/dist/embeds.js.map +1 -0
- package/dist/hooks/index.d.ts +18 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +19 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/scripted-transport.d.ts +44 -0
- package/dist/hooks/scripted-transport.d.ts.map +1 -0
- package/dist/hooks/scripted-transport.js +58 -0
- package/dist/hooks/scripted-transport.js.map +1 -0
- package/dist/hooks/use-activity.d.ts +17 -0
- package/dist/hooks/use-activity.d.ts.map +1 -0
- package/dist/hooks/use-activity.js +50 -0
- package/dist/hooks/use-activity.js.map +1 -0
- package/dist/hooks/use-app.d.ts +19 -0
- package/dist/hooks/use-app.d.ts.map +1 -0
- package/dist/hooks/use-app.js +66 -0
- package/dist/hooks/use-app.js.map +1 -0
- package/dist/hooks/use-approvals.d.ts +13 -0
- package/dist/hooks/use-approvals.d.ts.map +1 -0
- package/dist/hooks/use-approvals.js +14 -0
- package/dist/hooks/use-approvals.js.map +1 -0
- package/dist/hooks/use-apps.d.ts +17 -0
- package/dist/hooks/use-apps.d.ts.map +1 -0
- package/dist/hooks/use-apps.js +30 -0
- package/dist/hooks/use-apps.js.map +1 -0
- package/dist/hooks/use-automations.d.ts +25 -0
- package/dist/hooks/use-automations.d.ts.map +1 -0
- package/dist/hooks/use-automations.js +30 -0
- package/dist/hooks/use-automations.js.map +1 -0
- package/dist/hooks/use-connections.d.ts +12 -0
- package/dist/hooks/use-connections.d.ts.map +1 -0
- package/dist/hooks/use-connections.js +15 -0
- package/dist/hooks/use-connections.js.map +1 -0
- package/dist/hooks/use-connector-catalog.d.ts +8 -0
- package/dist/hooks/use-connector-catalog.d.ts.map +1 -0
- package/dist/hooks/use-connector-catalog.js +52 -0
- package/dist/hooks/use-connector-catalog.js.map +1 -0
- package/dist/hooks/use-grants.d.ts +13 -0
- package/dist/hooks/use-grants.d.ts.map +1 -0
- package/dist/hooks/use-grants.js +14 -0
- package/dist/hooks/use-grants.js.map +1 -0
- package/dist/hooks/use-mobile-takeover.d.ts +22 -0
- package/dist/hooks/use-mobile-takeover.d.ts.map +1 -0
- package/dist/hooks/use-mobile-takeover.js +66 -0
- package/dist/hooks/use-mobile-takeover.js.map +1 -0
- package/dist/hooks/use-resource.d.ts +21 -0
- package/dist/hooks/use-resource.d.ts.map +1 -0
- package/dist/hooks/use-resource.js +79 -0
- package/dist/hooks/use-resource.js.map +1 -0
- package/dist/hooks/use-slot-app.d.ts +19 -0
- package/dist/hooks/use-slot-app.d.ts.map +1 -0
- package/dist/hooks/use-slot-app.js +18 -0
- package/dist/hooks/use-slot-app.js.map +1 -0
- package/dist/hooks/use-threads.d.ts +16 -0
- package/dist/hooks/use-threads.d.ts.map +1 -0
- package/dist/hooks/use-threads.js +15 -0
- package/dist/hooks/use-threads.js.map +1 -0
- package/dist/hooks/use-vendo-overlay.d.ts +31 -0
- package/dist/hooks/use-vendo-overlay.d.ts.map +1 -0
- package/dist/hooks/use-vendo-overlay.js +23 -0
- package/dist/hooks/use-vendo-overlay.js.map +1 -0
- package/dist/hooks/use-vendo-status.d.ts +6 -0
- package/dist/hooks/use-vendo-status.d.ts.map +1 -0
- package/dist/hooks/use-vendo-status.js +28 -0
- package/dist/hooks/use-vendo-status.js.map +1 -0
- package/dist/hooks/use-vendo-thread.d.ts +39 -0
- package/dist/hooks/use-vendo-thread.d.ts.map +1 -0
- package/dist/hooks/use-vendo-thread.js +185 -0
- package/dist/hooks/use-vendo-thread.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/kit/charts/bar.d.ts +16 -0
- package/dist/kit/charts/bar.d.ts.map +1 -0
- package/dist/kit/charts/bar.js +21 -0
- package/dist/kit/charts/bar.js.map +1 -0
- package/dist/kit/charts/donut.d.ts +16 -0
- package/dist/kit/charts/donut.d.ts.map +1 -0
- package/dist/kit/charts/donut.js +17 -0
- package/dist/kit/charts/donut.js.map +1 -0
- package/dist/kit/charts/line.d.ts +19 -0
- package/dist/kit/charts/line.d.ts.map +1 -0
- package/dist/kit/charts/line.js +21 -0
- package/dist/kit/charts/line.js.map +1 -0
- package/dist/kit/charts/progress.d.ts +12 -0
- package/dist/kit/charts/progress.d.ts.map +1 -0
- package/dist/kit/charts/progress.js +25 -0
- package/dist/kit/charts/progress.js.map +1 -0
- package/dist/kit/charts/sanitize.d.ts +24 -0
- package/dist/kit/charts/sanitize.d.ts.map +1 -0
- package/dist/kit/charts/sanitize.js +50 -0
- package/dist/kit/charts/sanitize.js.map +1 -0
- package/dist/kit/charts/sparkline.d.ts +11 -0
- package/dist/kit/charts/sparkline.d.ts.map +1 -0
- package/dist/kit/charts/sparkline.js +17 -0
- package/dist/kit/charts/sparkline.js.map +1 -0
- package/dist/kit/data/badge.d.ts +13 -0
- package/dist/kit/data/badge.d.ts.map +1 -0
- package/dist/kit/data/badge.js +12 -0
- package/dist/kit/data/badge.js.map +1 -0
- package/dist/kit/data/card-list.d.ts +23 -0
- package/dist/kit/data/card-list.d.ts.map +1 -0
- package/dist/kit/data/card-list.js +43 -0
- package/dist/kit/data/card-list.js.map +1 -0
- package/dist/kit/data/data-table.d.ts +32 -0
- package/dist/kit/data/data-table.d.ts.map +1 -0
- package/dist/kit/data/data-table.js +153 -0
- package/dist/kit/data/data-table.js.map +1 -0
- package/dist/kit/data/stat.d.ts +15 -0
- package/dist/kit/data/stat.d.ts.map +1 -0
- package/dist/kit/data/stat.js +28 -0
- package/dist/kit/data/stat.js.map +1 -0
- package/dist/kit/feedback/accordion.d.ts +15 -0
- package/dist/kit/feedback/accordion.d.ts.map +1 -0
- package/dist/kit/feedback/accordion.js +33 -0
- package/dist/kit/feedback/accordion.js.map +1 -0
- package/dist/kit/feedback/callout.d.ts +13 -0
- package/dist/kit/feedback/callout.d.ts.map +1 -0
- package/dist/kit/feedback/callout.js +24 -0
- package/dist/kit/feedback/callout.js.map +1 -0
- package/dist/kit/feedback/tabs.d.ts +14 -0
- package/dist/kit/feedback/tabs.d.ts.map +1 -0
- package/dist/kit/feedback/tabs.js +37 -0
- package/dist/kit/feedback/tabs.js.map +1 -0
- package/dist/kit/format.d.ts +60 -0
- package/dist/kit/format.d.ts.map +1 -0
- package/dist/kit/format.js +123 -0
- package/dist/kit/format.js.map +1 -0
- package/dist/kit/forms/button.d.ts +17 -0
- package/dist/kit/forms/button.d.ts.map +1 -0
- package/dist/kit/forms/button.js +33 -0
- package/dist/kit/forms/button.js.map +1 -0
- package/dist/kit/forms/checkbox.d.ts +9 -0
- package/dist/kit/forms/checkbox.d.ts.map +1 -0
- package/dist/kit/forms/checkbox.js +9 -0
- package/dist/kit/forms/checkbox.js.map +1 -0
- package/dist/kit/forms/date-picker.d.ts +13 -0
- package/dist/kit/forms/date-picker.d.ts.map +1 -0
- package/dist/kit/forms/date-picker.js +9 -0
- package/dist/kit/forms/date-picker.js.map +1 -0
- package/dist/kit/forms/disclaimer.d.ts +8 -0
- package/dist/kit/forms/disclaimer.d.ts.map +1 -0
- package/dist/kit/forms/disclaimer.js +20 -0
- package/dist/kit/forms/disclaimer.js.map +1 -0
- package/dist/kit/forms/field.d.ts +18 -0
- package/dist/kit/forms/field.d.ts.map +1 -0
- package/dist/kit/forms/field.js +19 -0
- package/dist/kit/forms/field.js.map +1 -0
- package/dist/kit/forms/form.d.ts +10 -0
- package/dist/kit/forms/form.d.ts.map +1 -0
- package/dist/kit/forms/form.js +9 -0
- package/dist/kit/forms/form.js.map +1 -0
- package/dist/kit/forms/input.d.ts +14 -0
- package/dist/kit/forms/input.d.ts.map +1 -0
- package/dist/kit/forms/input.js +9 -0
- package/dist/kit/forms/input.js.map +1 -0
- package/dist/kit/forms/select.d.ts +21 -0
- package/dist/kit/forms/select.d.ts.map +1 -0
- package/dist/kit/forms/select.js +35 -0
- package/dist/kit/forms/select.js.map +1 -0
- package/dist/kit/forms/textarea.d.ts +12 -0
- package/dist/kit/forms/textarea.d.ts.map +1 -0
- package/dist/kit/forms/textarea.js +9 -0
- package/dist/kit/forms/textarea.js.map +1 -0
- package/dist/kit/index.d.ts +42 -0
- package/dist/kit/index.d.ts.map +1 -0
- package/dist/kit/index.js +45 -0
- package/dist/kit/index.js.map +1 -0
- package/dist/kit/kit-prompt.d.ts +7 -0
- package/dist/kit/kit-prompt.d.ts.map +1 -0
- package/dist/kit/kit-prompt.js +7 -0
- package/dist/kit/kit-prompt.js.map +1 -0
- package/dist/kit/layout.d.ts +29 -0
- package/dist/kit/layout.d.ts.map +1 -0
- package/dist/kit/layout.js +64 -0
- package/dist/kit/layout.js.map +1 -0
- package/dist/kit/registry.d.ts +11 -0
- package/dist/kit/registry.d.ts.map +1 -0
- package/dist/kit/registry.js +34 -0
- package/dist/kit/registry.js.map +1 -0
- package/dist/kit/schema.d.ts +9 -0
- package/dist/kit/schema.d.ts.map +1 -0
- package/dist/kit/schema.js +9 -0
- package/dist/kit/schema.js.map +1 -0
- package/dist/kit/tokens.d.ts +33 -0
- package/dist/kit/tokens.d.ts.map +1 -0
- package/dist/kit/tokens.js +48 -0
- package/dist/kit/tokens.js.map +1 -0
- package/dist/kit/values.d.ts +55 -0
- package/dist/kit/values.d.ts.map +1 -0
- package/dist/kit/values.js +108 -0
- package/dist/kit/values.js.map +1 -0
- package/dist/theme.d.ts +25 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +100 -0
- package/dist/theme.js.map +1 -0
- package/dist/tree/bindings.d.ts +4 -0
- package/dist/tree/bindings.d.ts.map +1 -0
- package/dist/tree/bindings.js +20 -0
- package/dist/tree/bindings.js.map +1 -0
- package/dist/tree/branded.d.ts +124 -0
- package/dist/tree/branded.d.ts.map +1 -0
- package/dist/tree/branded.js +319 -0
- package/dist/tree/branded.js.map +1 -0
- package/dist/tree/error-boundary.d.ts +22 -0
- package/dist/tree/error-boundary.d.ts.map +1 -0
- package/dist/tree/error-boundary.js +25 -0
- package/dist/tree/error-boundary.js.map +1 -0
- package/dist/tree/fluid-reveal.d.ts +22 -0
- package/dist/tree/fluid-reveal.d.ts.map +1 -0
- package/dist/tree/fluid-reveal.js +28 -0
- package/dist/tree/fluid-reveal.js.map +1 -0
- package/dist/tree/forming-skeleton.d.ts +14 -0
- package/dist/tree/forming-skeleton.d.ts.map +1 -0
- package/dist/tree/forming-skeleton.js +36 -0
- package/dist/tree/forming-skeleton.js.map +1 -0
- package/dist/tree/frames.d.ts +52 -0
- package/dist/tree/frames.d.ts.map +1 -0
- package/dist/tree/frames.js +143 -0
- package/dist/tree/frames.js.map +1 -0
- package/dist/tree/host-mount.d.ts +24 -0
- package/dist/tree/host-mount.d.ts.map +1 -0
- package/dist/tree/host-mount.js +0 -0
- package/dist/tree/host-mount.js.map +1 -0
- package/dist/tree/index.d.ts +9 -0
- package/dist/tree/index.d.ts.map +1 -0
- package/dist/tree/index.js +9 -0
- package/dist/tree/index.js.map +1 -0
- package/dist/tree/jail/JailedComponent.d.ts +41 -0
- package/dist/tree/jail/JailedComponent.d.ts.map +1 -0
- package/dist/tree/jail/JailedComponent.js +269 -0
- package/dist/tree/jail/JailedComponent.js.map +1 -0
- package/dist/tree/jail/runtime-bundle.gen.d.ts +3 -0
- package/dist/tree/jail/runtime-bundle.gen.d.ts.map +1 -0
- package/dist/tree/jail/runtime-bundle.gen.js +3 -0
- package/dist/tree/jail/runtime-bundle.gen.js.map +1 -0
- package/dist/tree/jail/runtime-entry.d.ts +18 -0
- package/dist/tree/jail/runtime-entry.d.ts.map +1 -0
- package/dist/tree/jail/runtime-entry.js +440 -0
- package/dist/tree/jail/runtime-entry.js.map +1 -0
- package/dist/tree/jail/viewport-css.d.ts +17 -0
- package/dist/tree/jail/viewport-css.d.ts.map +1 -0
- package/dist/tree/jail/viewport-css.js +32 -0
- package/dist/tree/jail/viewport-css.js.map +1 -0
- package/dist/tree/mcp-shim/entry.d.ts +2 -0
- package/dist/tree/mcp-shim/entry.d.ts.map +1 -0
- package/dist/tree/mcp-shim/entry.js +45 -0
- package/dist/tree/mcp-shim/entry.js.map +1 -0
- package/dist/tree/mcp-shim/http-open-card.d.ts +5 -0
- package/dist/tree/mcp-shim/http-open-card.d.ts.map +1 -0
- package/dist/tree/mcp-shim/http-open-card.js +61 -0
- package/dist/tree/mcp-shim/http-open-card.js.map +1 -0
- package/dist/tree/mcp-shim/shim-core.d.ts +58 -0
- package/dist/tree/mcp-shim/shim-core.d.ts.map +1 -0
- package/dist/tree/mcp-shim/shim-core.js +176 -0
- package/dist/tree/mcp-shim/shim-core.js.map +1 -0
- package/dist/tree/mcp-shim/theme.d.ts +8 -0
- package/dist/tree/mcp-shim/theme.d.ts.map +1 -0
- package/dist/tree/mcp-shim/theme.js +36 -0
- package/dist/tree/mcp-shim/theme.js.map +1 -0
- package/dist/tree/notice.d.ts +8 -0
- package/dist/tree/notice.d.ts.map +1 -0
- package/dist/tree/notice.js +30 -0
- package/dist/tree/notice.js.map +1 -0
- package/dist/tree/primitives.d.ts +30 -0
- package/dist/tree/primitives.d.ts.map +1 -0
- package/dist/tree/primitives.js +105 -0
- package/dist/tree/primitives.js.map +1 -0
- package/dist/tree/renderer-v2.d.ts +15 -0
- package/dist/tree/renderer-v2.d.ts.map +1 -0
- package/dist/tree/renderer-v2.js +71 -0
- package/dist/tree/renderer-v2.js.map +1 -0
- package/dist/tree/renderer.d.ts +77 -0
- package/dist/tree/renderer.d.ts.map +1 -0
- package/dist/tree/renderer.js +376 -0
- package/dist/tree/renderer.js.map +1 -0
- package/dist/voice/driver.d.ts +94 -0
- package/dist/voice/driver.d.ts.map +1 -0
- package/dist/voice/driver.js +2 -0
- package/dist/voice/driver.js.map +1 -0
- package/dist/voice/index.d.ts +7 -0
- package/dist/voice/index.d.ts.map +1 -0
- package/dist/voice/index.js +5 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/voice/realtime-driver.d.ts +57 -0
- package/dist/voice/realtime-driver.d.ts.map +1 -0
- package/dist/voice/realtime-driver.js +592 -0
- package/dist/voice/realtime-driver.js.map +1 -0
- package/dist/voice/stage.d.ts +12 -0
- package/dist/voice/stage.d.ts.map +1 -0
- package/dist/voice/stage.js +259 -0
- package/dist/voice/stage.js.map +1 -0
- package/dist/voice/use-voice-approvals.d.ts +16 -0
- package/dist/voice/use-voice-approvals.d.ts.map +1 -0
- package/dist/voice/use-voice-approvals.js +77 -0
- package/dist/voice/use-voice-approvals.js.map +1 -0
- package/dist/voice/use-voice.d.ts +26 -0
- package/dist/voice/use-voice.d.ts.map +1 -0
- package/dist/voice/use-voice.js +201 -0
- package/dist/voice/use-voice.js.map +1 -0
- package/dist/voice/voice-act.d.ts +13 -0
- package/dist/voice/voice-act.d.ts.map +1 -0
- package/dist/voice/voice-act.js +301 -0
- package/dist/voice/voice-act.js.map +1 -0
- package/dist/voice/voice-blob.d.ts +17 -0
- package/dist/voice/voice-blob.d.ts.map +1 -0
- package/dist/voice/voice-blob.js +67 -0
- package/dist/voice/voice-blob.js.map +1 -0
- package/dist/voice/voice-consent.d.ts +17 -0
- package/dist/voice/voice-consent.d.ts.map +1 -0
- package/dist/voice/voice-consent.js +45 -0
- package/dist/voice/voice-consent.js.map +1 -0
- package/dist/voice/voice-drawer.d.ts +10 -0
- package/dist/voice/voice-drawer.d.ts.map +1 -0
- package/dist/voice/voice-drawer.js +22 -0
- package/dist/voice/voice-drawer.js.map +1 -0
- package/dist/wire-types.d.ts +238 -0
- package/dist/wire-types.d.ts.map +1 -0
- package/dist/wire-types.js +2 -0
- package/dist/wire-types.js.map +1 -0
- package/package.json +106 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @vendoai/ui
|
|
2
|
+
|
|
3
|
+
Provides Vendo's headless React hooks, optional chrome, tree renderer, generated
|
|
4
|
+
component jail, theming, and voice surfaces.
|
|
5
|
+
|
|
6
|
+
Read [Generated UI](https://docs.vendo.run/concepts/generated-ui) and
|
|
7
|
+
[Theming](https://docs.vendo.run/connect/theming).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** ui-lane-panels pick B — the icon-ledger activity rows, shared by
|
|
2
|
+
ActivityPanel (full audit) and VendoActivities (shelf feed) so the two
|
|
3
|
+
surfaces can't drift. One scannable line per action: kind glyph disc,
|
|
4
|
+
humanized action with the input preview folded in, outcome with decider,
|
|
5
|
+
relative timestamp (absolute in the title/dateTime). */
|
|
6
|
+
import type { AuditEvent } from "@vendoai/core";
|
|
7
|
+
import type { ToolMetaMap } from "./humanize.js";
|
|
8
|
+
/** The rows only — header, caption, footer and empty states stay with the
|
|
9
|
+
owning panel (they differ between the audit table and the shelf feed). */
|
|
10
|
+
export declare function ActivityLedger({ events, tools }: {
|
|
11
|
+
events: AuditEvent[];
|
|
12
|
+
tools?: ToolMetaMap;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=activity-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-ledger.d.ts","sourceRoot":"","sources":["../../src/chrome/activity-ledger.tsx"],"names":[],"mappings":"AAAA;;;;2DAI2D;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAkDjD;6EAC6E;AAC7E,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAAE,+BAqC9F"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { describeActivity, formatAuditTime, formatRelativeAuditTime, kindGlyph, outcomeLabel, } from "./activity-semantics.js";
|
|
4
|
+
/** The status glyph for an outcome tone. In-flight tones animate (pulse/spin);
|
|
5
|
+
settled tones use a static tick / cross that reads without colour alone. */
|
|
6
|
+
function OutcomeIcon({ tone }) {
|
|
7
|
+
if (tone === "running")
|
|
8
|
+
return _jsx("span", { className: "fl-act-pulse", "aria-hidden": "true" });
|
|
9
|
+
if (tone === "pending")
|
|
10
|
+
return _jsx("span", { className: "fl-act-spin", "aria-hidden": "true" });
|
|
11
|
+
const glyph = tone === "ok" ? "✓" : tone === "connect" ? "⭘" : "✕";
|
|
12
|
+
const cls = tone === "ok" ? "fl-act-tick" : tone === "connect" ? "fl-act-denied" : "fl-act-x";
|
|
13
|
+
return _jsx("span", { className: `fl-act-ic ${cls}`, "aria-hidden": "true", children: glyph });
|
|
14
|
+
}
|
|
15
|
+
const GLYPH_PATHS = {
|
|
16
|
+
wrench: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",
|
|
17
|
+
zap: "m13 2-9 12h8l-1 8 9-12h-8l1-8Z",
|
|
18
|
+
shield: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
19
|
+
box: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z M3.3 7l8.7 5 8.7-5 M12 22V12",
|
|
20
|
+
};
|
|
21
|
+
function KindGlyph({ kind, label }) {
|
|
22
|
+
return (_jsx("span", { className: "fl-act-led-ic", role: "img", "aria-label": label, title: label, children: _jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: GLYPH_PATHS[kindGlyph(kind)].split(" M").map((d, i) => (_jsx("path", { d: i === 0 ? d : `M${d}` }, i))) }) }));
|
|
23
|
+
}
|
|
24
|
+
/** The rows only — header, caption, footer and empty states stay with the
|
|
25
|
+
owning panel (they differ between the audit table and the shelf feed). */
|
|
26
|
+
export function ActivityLedger({ events, tools }) {
|
|
27
|
+
// Relative labels ride a slow clock so "just now" doesn't freeze forever in
|
|
28
|
+
// a non-polling panel; minute precision needs nothing faster.
|
|
29
|
+
const [now, setNow] = useState(() => new Date());
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const timer = window.setInterval(() => setNow(new Date()), 60_000);
|
|
32
|
+
return () => window.clearInterval(timer);
|
|
33
|
+
}, []);
|
|
34
|
+
return (_jsx("ul", { className: "fl-act-led", role: "list", children: events.map(event => {
|
|
35
|
+
const { kindLabel, action } = describeActivity(event, tools);
|
|
36
|
+
const { label, tone } = outcomeLabel(event.outcome);
|
|
37
|
+
return (_jsxs("li", { className: "fl-act-led-row", children: [_jsx(KindGlyph, { kind: event.kind, label: kindLabel }), _jsxs("span", { className: "fl-act-led-main", children: [_jsx("b", { children: action }), event.inputPreview ? _jsxs("span", { className: "fl-act-led-det", children: [" \u2014 ", event.inputPreview] }) : null] }), _jsx("span", { className: "fl-act-led-out", children: _jsxs("span", { className: "fl-act-outcome", children: [_jsx(OutcomeIcon, { tone: tone }), _jsxs("span", { children: [label, event.decidedBy ? _jsxs("span", { className: "fl-act-led-by", children: [" by ", event.decidedBy] }) : null] })] }) }), _jsx("time", { className: "fl-act-when", dateTime: event.at, title: formatAuditTime(event.at), children: formatRelativeAuditTime(event.at, now) })] }, event.id));
|
|
38
|
+
}) }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=activity-ledger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-ledger.js","sourceRoot":"","sources":["../../src/chrome/activity-ledger.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,SAAS,EACT,YAAY,GAGb,MAAM,yBAAyB,CAAC;AAEjC;+EAC+E;AAC/E,SAAS,WAAW,CAAC,EAAE,IAAI,EAAyB;IAClD,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,eAAM,SAAS,EAAC,cAAc,iBAAa,MAAM,GAAG,CAAC;IACpF,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,eAAM,SAAS,EAAC,aAAa,iBAAa,MAAM,GAAG,CAAC;IACnF,MAAM,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IACnE,MAAM,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC;IAC9F,OAAO,eAAM,SAAS,EAAE,aAAa,GAAG,EAAE,iBAAc,MAAM,YAAE,KAAK,GAAQ,CAAC;AAChF,CAAC;AAED,MAAM,WAAW,GAAkC;IACjD,MAAM,EACJ,0JAA0J;I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taken as the user (a tool call, an approval, a connection…)
|
|
3
|
+
rendered as one icon-ledger line (ui-lane-panels pick B): kind glyph,
|
|
4
|
+
humanized action with the input preview folded in, plain-language result,
|
|
5
|
+
relative timestamp. Pagination ends in an explicit end-of-list marker. */
|
|
6
|
+
export declare function ActivityPanel(): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=activity-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-panel.d.ts","sourceRoot":"","sources":["../../src/chrome/activity-panel.tsx"],"names":[],"mappings":"AAMA;;;;6EAI6E;AAC7E,wBAAgB,aAAa,gCA4C5B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { useActivity } from "../hooks/use-activity.js";
|
|
4
|
+
import { useVendoTools } from "../context.js";
|
|
5
|
+
import { ChromeRoot } from "./chrome-root.js";
|
|
6
|
+
import { ActivityLedger } from "./activity-ledger.js";
|
|
7
|
+
/** 08-ui §4 — self-scoped, user-facing audit transparency. Every row is a
|
|
8
|
+
concrete action taken as the user (a tool call, an approval, a connection…)
|
|
9
|
+
rendered as one icon-ledger line (ui-lane-panels pick B): kind glyph,
|
|
10
|
+
humanized action with the input preview folded in, plain-language result,
|
|
11
|
+
relative timestamp. Pagination ends in an explicit end-of-list marker. */
|
|
12
|
+
export function ActivityPanel() {
|
|
13
|
+
const { events, isLoading, hasMore, loadMore } = useActivity();
|
|
14
|
+
const tools = useVendoTools();
|
|
15
|
+
const [error, setError] = useState();
|
|
16
|
+
const loadNext = async () => {
|
|
17
|
+
setError(undefined);
|
|
18
|
+
try {
|
|
19
|
+
await loadMore();
|
|
20
|
+
}
|
|
21
|
+
catch (reason) {
|
|
22
|
+
setError(reason instanceof Error ? reason.message : String(reason));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return (_jsx(ChromeRoot, { children: _jsxs("section", { className: "fl-act", "aria-labelledby": "vendo-activity-heading", children: [_jsxs("header", { className: "fl-act-head", children: [_jsx("span", { className: "fl-act-ic fl-act-tick", "aria-hidden": "true", children: "\u2713" }), _jsx("h2", { id: "vendo-activity-heading", className: "fl-act-head-lbl", style: { margin: 0 }, children: "Activity" })] }), error ? _jsx("div", { role: "alert", className: "fl-act-err fl-act-row", children: error }) : null, events.length === 0 ? (_jsx("p", { className: "fl-act-row fl-act-now", children: isLoading ? "Loading activity…" : "Nothing has run as you yet" })) : (_jsxs(_Fragment, { children: [_jsx("p", { className: "fl-act-cap", style: { margin: 0 }, children: "Actions performed as your account" }), _jsx(ActivityLedger, { events: events, tools: tools })] })), events.length > 0 ? (_jsx("div", { className: "fl-act-foot", children: hasMore ? (_jsx("button", { className: "fl-btn", type: "button", onClick: () => void loadNext(), children: "Load more" })) : (_jsx("p", { className: "fl-act-end", "data-testid": "activity-end", children: "You\u2019ve reached the end of your activity." })) })) : null] }) }));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=activity-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-panel.js","sourceRoot":"","sources":["../../src/chrome/activity-panel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;6EAI6E;AAC7E,MAAM,UAAU,aAAa;IAC3B,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;IAC/D,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAC9B,MAAM,CAA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zB,OAAO,CAAC,CAAC,CAAC,CACT,iBAAQ,SAAS,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,QAAQ,EAAE,0BAAoB,CAC5F,CAAC,CAAC,CAAC,CACF,YAAG,SAAS,EAAC,YAAY,iBAAa,cAAc,8DAA6C,CAClG,GACG,CACP,CAAC,CAAC,CAAC,IAAI,IACA,GACC,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** ENG-224 — activity panel semantics.
|
|
2
|
+
|
|
3
|
+
Pure, render-site helpers that turn a raw `AuditEvent` (01-core §7) into the
|
|
4
|
+
concrete, human-readable pieces the Activity panel shows: what happened, how
|
|
5
|
+
it resolved and when. Kept out of the component so every mapping is unit
|
|
6
|
+
tested in isolation and stays deterministic (see `formatAuditTime`). */
|
|
7
|
+
import type { AuditEvent } from "@vendoai/core";
|
|
8
|
+
import { type ToolMetaMap } from "./humanize.js";
|
|
9
|
+
/** Format an ISO instant as a human absolute timestamp — e.g.
|
|
10
|
+
`2026-07-11T12:00:00.000Z` → "Jul 11, 2026, 12:00 PM".
|
|
11
|
+
|
|
12
|
+
Rendered in UTC and assembled by hand rather than via `Intl`/relative time so
|
|
13
|
+
the exact string is identical on a developer laptop and in CI regardless of
|
|
14
|
+
the machine's timezone, locale or ICU data (no flaky screenshots or asserts).
|
|
15
|
+
Anything that is not a parseable instant is returned unchanged. */
|
|
16
|
+
export declare function formatAuditTime(iso: string): string;
|
|
17
|
+
/** Format an ISO instant relative to `now` — "just now", "54m ago", "2h ago",
|
|
18
|
+
"yesterday" — falling back to the absolute `formatAuditTime` string beyond
|
|
19
|
+
48 hours (or for unparseable/future instants). `now` is an argument, never
|
|
20
|
+
read from the clock here, so every mapping stays deterministic in tests. */
|
|
21
|
+
export declare function formatRelativeAuditTime(iso: string, now: Date): string;
|
|
22
|
+
/** The glyph disc an activity row leads with (ui-lane-panels pick B). */
|
|
23
|
+
export type ActivityGlyph = "wrench" | "zap" | "shield" | "box";
|
|
24
|
+
/** Map an audit kind to its ledger glyph; unknown kinds read as a tool. */
|
|
25
|
+
export declare function kindGlyph(kind: AuditEvent["kind"]): ActivityGlyph;
|
|
26
|
+
/** The tone the outcome pill/icon renders with (drives colour + glyph). */
|
|
27
|
+
export type OutcomeTone = "ok" | "error" | "pending" | "running" | "blocked" | "connect";
|
|
28
|
+
/** Map a wire outcome to a human label + tone. A missing outcome means the
|
|
29
|
+
action is still in flight, not that it failed. */
|
|
30
|
+
export declare function outcomeLabel(outcome: AuditEvent["outcome"]): {
|
|
31
|
+
label: string;
|
|
32
|
+
tone: OutcomeTone;
|
|
33
|
+
};
|
|
34
|
+
/** Turn an audit event into the two readable strings a row shows: a short kind
|
|
35
|
+
badge and a concrete action phrase. Tool-bearing kinds name the humanized
|
|
36
|
+
tool (host metadata wins, else the prettified slug — never a raw id); the
|
|
37
|
+
remaining kinds each get a plain-language phrase so no row is a mystery. */
|
|
38
|
+
export declare function describeActivity(event: AuditEvent, tools?: ToolMetaMap): {
|
|
39
|
+
kindLabel: string;
|
|
40
|
+
action: string;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=activity-semantics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-semantics.d.ts","sourceRoot":"","sources":["../../src/chrome/activity-semantics.ts"],"names":[],"mappings":"AAAA;;;;;2EAK2E;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAO5D;;;;;;sEAMsE;AACtE,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAWnD;AAED;;;+EAG+E;AAC/E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM,CAYtE;AAED,yEAAyE;AACzE,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;AAahE,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,aAAa,CAEjE;AAED,2EAA2E;AAC3E,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAUzF;qDACqD;AACrD,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAGjG;AAaD;;;+EAG+E;AAC/E,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,UAAU,EACjB,KAAK,CAAC,EAAE,WAAW,GAClB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKvC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { toolTitle } from "./humanize.js";
|
|
2
|
+
const MONTHS = [
|
|
3
|
+
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
|
4
|
+
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
|
|
5
|
+
];
|
|
6
|
+
/** Format an ISO instant as a human absolute timestamp — e.g.
|
|
7
|
+
`2026-07-11T12:00:00.000Z` → "Jul 11, 2026, 12:00 PM".
|
|
8
|
+
|
|
9
|
+
Rendered in UTC and assembled by hand rather than via `Intl`/relative time so
|
|
10
|
+
the exact string is identical on a developer laptop and in CI regardless of
|
|
11
|
+
the machine's timezone, locale or ICU data (no flaky screenshots or asserts).
|
|
12
|
+
Anything that is not a parseable instant is returned unchanged. */
|
|
13
|
+
export function formatAuditTime(iso) {
|
|
14
|
+
const date = new Date(iso);
|
|
15
|
+
if (Number.isNaN(date.getTime()))
|
|
16
|
+
return iso;
|
|
17
|
+
const month = MONTHS[date.getUTCMonth()];
|
|
18
|
+
const day = date.getUTCDate();
|
|
19
|
+
const year = date.getUTCFullYear();
|
|
20
|
+
const rawHours = date.getUTCHours();
|
|
21
|
+
const meridiem = rawHours < 12 ? "AM" : "PM";
|
|
22
|
+
const hours = rawHours % 12 === 0 ? 12 : rawHours % 12;
|
|
23
|
+
const minutes = String(date.getUTCMinutes()).padStart(2, "0");
|
|
24
|
+
return `${month} ${day}, ${year}, ${hours}:${minutes} ${meridiem}`;
|
|
25
|
+
}
|
|
26
|
+
/** Format an ISO instant relative to `now` — "just now", "54m ago", "2h ago",
|
|
27
|
+
"yesterday" — falling back to the absolute `formatAuditTime` string beyond
|
|
28
|
+
48 hours (or for unparseable/future instants). `now` is an argument, never
|
|
29
|
+
read from the clock here, so every mapping stays deterministic in tests. */
|
|
30
|
+
export function formatRelativeAuditTime(iso, now) {
|
|
31
|
+
const date = new Date(iso);
|
|
32
|
+
if (Number.isNaN(date.getTime()))
|
|
33
|
+
return iso;
|
|
34
|
+
const elapsed = now.getTime() - date.getTime();
|
|
35
|
+
if (elapsed < 0)
|
|
36
|
+
return formatAuditTime(iso);
|
|
37
|
+
const minutes = Math.floor(elapsed / 60_000);
|
|
38
|
+
if (minutes < 1)
|
|
39
|
+
return "just now";
|
|
40
|
+
if (minutes < 60)
|
|
41
|
+
return `${minutes}m ago`;
|
|
42
|
+
const hours = Math.floor(minutes / 60);
|
|
43
|
+
if (hours < 24)
|
|
44
|
+
return `${hours}h ago`;
|
|
45
|
+
if (hours < 48)
|
|
46
|
+
return "yesterday";
|
|
47
|
+
return formatAuditTime(iso);
|
|
48
|
+
}
|
|
49
|
+
const KIND_GLYPH = {
|
|
50
|
+
"tool-call": "wrench",
|
|
51
|
+
run: "zap",
|
|
52
|
+
approval: "shield",
|
|
53
|
+
"policy-decision": "shield",
|
|
54
|
+
"app-lifecycle": "box",
|
|
55
|
+
share: "box",
|
|
56
|
+
"door-auth": "wrench",
|
|
57
|
+
principal: "wrench",
|
|
58
|
+
};
|
|
59
|
+
/** Map an audit kind to its ledger glyph; unknown kinds read as a tool. */
|
|
60
|
+
export function kindGlyph(kind) {
|
|
61
|
+
return KIND_GLYPH[kind] ?? "wrench";
|
|
62
|
+
}
|
|
63
|
+
const OUTCOMES = {
|
|
64
|
+
ok: { label: "Succeeded", tone: "ok" },
|
|
65
|
+
error: { label: "Failed", tone: "error" },
|
|
66
|
+
"pending-approval": { label: "Awaiting approval", tone: "pending" },
|
|
67
|
+
blocked: { label: "Blocked", tone: "blocked" },
|
|
68
|
+
"connect-required": { label: "Connect required", tone: "connect" },
|
|
69
|
+
};
|
|
70
|
+
/** Map a wire outcome to a human label + tone. A missing outcome means the
|
|
71
|
+
action is still in flight, not that it failed. */
|
|
72
|
+
export function outcomeLabel(outcome) {
|
|
73
|
+
if (outcome === undefined)
|
|
74
|
+
return { label: "Running", tone: "running" };
|
|
75
|
+
return OUTCOMES[outcome] ?? { label: outcome, tone: "running" };
|
|
76
|
+
}
|
|
77
|
+
const KIND_LABEL = {
|
|
78
|
+
"tool-call": "Tool",
|
|
79
|
+
approval: "Approval",
|
|
80
|
+
"policy-decision": "Policy",
|
|
81
|
+
run: "Automation",
|
|
82
|
+
"app-lifecycle": "App",
|
|
83
|
+
share: "Share",
|
|
84
|
+
"door-auth": "Connection",
|
|
85
|
+
principal: "Identity",
|
|
86
|
+
};
|
|
87
|
+
/** Turn an audit event into the two readable strings a row shows: a short kind
|
|
88
|
+
badge and a concrete action phrase. Tool-bearing kinds name the humanized
|
|
89
|
+
tool (host metadata wins, else the prettified slug — never a raw id); the
|
|
90
|
+
remaining kinds each get a plain-language phrase so no row is a mystery. */
|
|
91
|
+
export function describeActivity(event, tools) {
|
|
92
|
+
const kindLabel = KIND_LABEL[event.kind];
|
|
93
|
+
const tool = event.tool ? toolTitle(event.tool, tools?.[event.tool]) : undefined;
|
|
94
|
+
const action = actionPhrase(event.kind, tool);
|
|
95
|
+
return { kindLabel, action };
|
|
96
|
+
}
|
|
97
|
+
function actionPhrase(kind, tool) {
|
|
98
|
+
switch (kind) {
|
|
99
|
+
case "tool-call":
|
|
100
|
+
return tool ?? "Tool call";
|
|
101
|
+
case "approval":
|
|
102
|
+
return tool ? `Approval: ${tool}` : "Approval request";
|
|
103
|
+
case "door-auth":
|
|
104
|
+
return "Account connected";
|
|
105
|
+
case "run":
|
|
106
|
+
return "Automation run";
|
|
107
|
+
case "policy-decision":
|
|
108
|
+
// A policy decision is ABOUT a tool call — name it so the row isn't a
|
|
109
|
+
// mystery (and so a reader can tell which action was gated).
|
|
110
|
+
return tool ? `Policy decision: ${tool}` : "Policy decision";
|
|
111
|
+
case "app-lifecycle":
|
|
112
|
+
return "App updated";
|
|
113
|
+
case "share":
|
|
114
|
+
return "App shared";
|
|
115
|
+
case "principal":
|
|
116
|
+
return "Identity updated";
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=activity-semantics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-semantics.js","sourceRoot":"","sources":["../../src/chrome/activity-semantics.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAoB,MAAM,eAAe,CAAC;AAE5D,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;IACxC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;CAChC,CAAC;AAEX;;;;;;sEAMsE;AACtE,MAAM,UAAU,eAAe,CAAC,GAAW;IACzC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QAAE,OAAO,GAAG,CAAC;IAC7C,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IACzC,MAAM,GAAG,GAAG,IAAI,CAAC,UAA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AW;YACd,OAAO,kBAAkB,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ApprovalDecision, type ApprovalRequest } from "@vendoai/core";
|
|
2
|
+
export interface ApprovalCardProps {
|
|
3
|
+
approval: ApprovalRequest;
|
|
4
|
+
onDecide(decision: ApprovalDecision): void | PromiseLike<void>;
|
|
5
|
+
/**
|
|
6
|
+
* The in-thread native resume path (`addToolApprovalResponse`) has no
|
|
7
|
+
* channel for `ApprovalDecision.remember`, so thread chrome hides the
|
|
8
|
+
* disclosure rather than dropping the answer silently. Queue surfaces
|
|
9
|
+
* (the real wire decision) keep it. Default true.
|
|
10
|
+
*/
|
|
11
|
+
allowRemember?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* ENG-216 — show the `venue · presence · appId` context byline. Queue
|
|
14
|
+
* surfaces carry a real server `ctx` and keep it (default true); the
|
|
15
|
+
* in-thread card sets this false because the live conversation is already
|
|
16
|
+
* the context and the wire carries no ctx to display honestly.
|
|
17
|
+
*/
|
|
18
|
+
showContext?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** 01-core §5; 08-ui §4 — the one consent surface, always showing real inputs. */
|
|
21
|
+
export declare function ApprovalCard({ approval, onDecide, allowRemember, showContext }: ApprovalCardProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=approval-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-card.d.ts","sourceRoot":"","sources":["../../src/chrome/approval-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AA+BtG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/D;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAQD,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAoB,EAAE,WAAkB,EAAE,EAAE,iBAAiB,+BAyL/G"}
|