@agent-native/dispatch 0.1.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 +220 -0
- package/dist/actions/approve-dispatch-change.d.ts +3 -0
- package/dist/actions/approve-dispatch-change.d.ts.map +1 -0
- package/dist/actions/approve-dispatch-change.js +11 -0
- package/dist/actions/approve-dispatch-change.js.map +1 -0
- package/dist/actions/approve-vault-request.d.ts +3 -0
- package/dist/actions/approve-vault-request.d.ts.map +1 -0
- package/dist/actions/approve-vault-request.js +16 -0
- package/dist/actions/approve-vault-request.js.map +1 -0
- package/dist/actions/create-link-token.d.ts +3 -0
- package/dist/actions/create-link-token.d.ts.map +1 -0
- package/dist/actions/create-link-token.js +11 -0
- package/dist/actions/create-link-token.js.map +1 -0
- package/dist/actions/create-vault-grant.d.ts +3 -0
- package/dist/actions/create-vault-grant.d.ts.map +1 -0
- package/dist/actions/create-vault-grant.js +14 -0
- package/dist/actions/create-vault-grant.js.map +1 -0
- package/dist/actions/create-vault-secret.d.ts +3 -0
- package/dist/actions/create-vault-secret.d.ts.map +1 -0
- package/dist/actions/create-vault-secret.js +20 -0
- package/dist/actions/create-vault-secret.js.map +1 -0
- package/dist/actions/create-workspace-resource-grant.d.ts +3 -0
- package/dist/actions/create-workspace-resource-grant.d.ts.map +1 -0
- package/dist/actions/create-workspace-resource-grant.js +14 -0
- package/dist/actions/create-workspace-resource-grant.js.map +1 -0
- package/dist/actions/create-workspace-resource.d.ts +3 -0
- package/dist/actions/create-workspace-resource.d.ts.map +1 -0
- package/dist/actions/create-workspace-resource.js +24 -0
- package/dist/actions/create-workspace-resource.js.map +1 -0
- package/dist/actions/delete-destination.d.ts +3 -0
- package/dist/actions/delete-destination.d.ts.map +1 -0
- package/dist/actions/delete-destination.js +11 -0
- package/dist/actions/delete-destination.js.map +1 -0
- package/dist/actions/delete-vault-secret.d.ts +3 -0
- package/dist/actions/delete-vault-secret.d.ts.map +1 -0
- package/dist/actions/delete-vault-secret.js +11 -0
- package/dist/actions/delete-vault-secret.js.map +1 -0
- package/dist/actions/delete-workspace-resource.d.ts +3 -0
- package/dist/actions/delete-workspace-resource.d.ts.map +1 -0
- package/dist/actions/delete-workspace-resource.js +11 -0
- package/dist/actions/delete-workspace-resource.js.map +1 -0
- package/dist/actions/deny-vault-request.d.ts +3 -0
- package/dist/actions/deny-vault-request.d.ts.map +1 -0
- package/dist/actions/deny-vault-request.js +12 -0
- package/dist/actions/deny-vault-request.js.map +1 -0
- package/dist/actions/get-app-creation-settings.d.ts +3 -0
- package/dist/actions/get-app-creation-settings.d.ts.map +1 -0
- package/dist/actions/get-app-creation-settings.js +10 -0
- package/dist/actions/get-app-creation-settings.js.map +1 -0
- package/dist/actions/get-dispatch-settings.d.ts +3 -0
- package/dist/actions/get-dispatch-settings.d.ts.map +1 -0
- package/dist/actions/get-dispatch-settings.js +10 -0
- package/dist/actions/get-dispatch-settings.js.map +1 -0
- package/dist/actions/get-workspace-info.d.ts +3 -0
- package/dist/actions/get-workspace-info.d.ts.map +1 -0
- package/dist/actions/get-workspace-info.js +10 -0
- package/dist/actions/get-workspace-info.js.map +1 -0
- package/dist/actions/grant-vault-secrets-to-app.d.ts +3 -0
- package/dist/actions/grant-vault-secrets-to-app.d.ts.map +1 -0
- package/dist/actions/grant-vault-secrets-to-app.js +19 -0
- package/dist/actions/grant-vault-secrets-to-app.js.map +1 -0
- package/dist/actions/index.d.ts +9 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +101 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/list-connected-agents.d.ts +3 -0
- package/dist/actions/list-connected-agents.d.ts.map +1 -0
- package/dist/actions/list-connected-agents.js +79 -0
- package/dist/actions/list-connected-agents.js.map +1 -0
- package/dist/actions/list-destinations.d.ts +3 -0
- package/dist/actions/list-destinations.d.ts.map +1 -0
- package/dist/actions/list-destinations.js +10 -0
- package/dist/actions/list-destinations.js.map +1 -0
- package/dist/actions/list-dispatch-approvals.d.ts +3 -0
- package/dist/actions/list-dispatch-approvals.d.ts.map +1 -0
- package/dist/actions/list-dispatch-approvals.js +10 -0
- package/dist/actions/list-dispatch-approvals.js.map +1 -0
- package/dist/actions/list-dispatch-audit.d.ts +3 -0
- package/dist/actions/list-dispatch-audit.d.ts.map +1 -0
- package/dist/actions/list-dispatch-audit.js +12 -0
- package/dist/actions/list-dispatch-audit.js.map +1 -0
- package/dist/actions/list-dispatch-overview.d.ts +3 -0
- package/dist/actions/list-dispatch-overview.d.ts.map +1 -0
- package/dist/actions/list-dispatch-overview.js +17 -0
- package/dist/actions/list-dispatch-overview.js.map +1 -0
- package/dist/actions/list-integrations-catalog.d.ts +3 -0
- package/dist/actions/list-integrations-catalog.d.ts.map +1 -0
- package/dist/actions/list-integrations-catalog.js +10 -0
- package/dist/actions/list-integrations-catalog.js.map +1 -0
- package/dist/actions/list-linked-identities.d.ts +3 -0
- package/dist/actions/list-linked-identities.d.ts.map +1 -0
- package/dist/actions/list-linked-identities.js +10 -0
- package/dist/actions/list-linked-identities.js.map +1 -0
- package/dist/actions/list-vault-audit.d.ts +3 -0
- package/dist/actions/list-vault-audit.d.ts.map +1 -0
- package/dist/actions/list-vault-audit.js +15 -0
- package/dist/actions/list-vault-audit.js.map +1 -0
- package/dist/actions/list-vault-grants.d.ts +3 -0
- package/dist/actions/list-vault-grants.d.ts.map +1 -0
- package/dist/actions/list-vault-grants.js +13 -0
- package/dist/actions/list-vault-grants.js.map +1 -0
- package/dist/actions/list-vault-requests.d.ts +3 -0
- package/dist/actions/list-vault-requests.d.ts.map +1 -0
- package/dist/actions/list-vault-requests.js +15 -0
- package/dist/actions/list-vault-requests.js.map +1 -0
- package/dist/actions/list-vault-secret-options.d.ts +3 -0
- package/dist/actions/list-vault-secret-options.d.ts.map +1 -0
- package/dist/actions/list-vault-secret-options.js +19 -0
- package/dist/actions/list-vault-secret-options.js.map +1 -0
- package/dist/actions/list-vault-secrets.d.ts +3 -0
- package/dist/actions/list-vault-secrets.d.ts.map +1 -0
- package/dist/actions/list-vault-secrets.js +25 -0
- package/dist/actions/list-vault-secrets.js.map +1 -0
- package/dist/actions/list-workspace-apps.d.ts +3 -0
- package/dist/actions/list-workspace-apps.d.ts.map +1 -0
- package/dist/actions/list-workspace-apps.js +24 -0
- package/dist/actions/list-workspace-apps.js.map +1 -0
- package/dist/actions/list-workspace-resource-grants.d.ts +3 -0
- package/dist/actions/list-workspace-resource-grants.d.ts.map +1 -0
- package/dist/actions/list-workspace-resource-grants.js +13 -0
- package/dist/actions/list-workspace-resource-grants.js.map +1 -0
- package/dist/actions/list-workspace-resources.d.ts +3 -0
- package/dist/actions/list-workspace-resources.d.ts.map +1 -0
- package/dist/actions/list-workspace-resources.js +15 -0
- package/dist/actions/list-workspace-resources.js.map +1 -0
- package/dist/actions/navigate.d.ts +16 -0
- package/dist/actions/navigate.d.ts.map +1 -0
- package/dist/actions/navigate.js +55 -0
- package/dist/actions/navigate.js.map +1 -0
- package/dist/actions/reject-dispatch-change.d.ts +3 -0
- package/dist/actions/reject-dispatch-change.d.ts.map +1 -0
- package/dist/actions/reject-dispatch-change.js +12 -0
- package/dist/actions/reject-dispatch-change.js.map +1 -0
- package/dist/actions/request-vault-secret.d.ts +3 -0
- package/dist/actions/request-vault-secret.d.ts.map +1 -0
- package/dist/actions/request-vault-secret.js +15 -0
- package/dist/actions/request-vault-secret.js.map +1 -0
- package/dist/actions/revoke-vault-grant.d.ts +3 -0
- package/dist/actions/revoke-vault-grant.d.ts.map +1 -0
- package/dist/actions/revoke-vault-grant.js +11 -0
- package/dist/actions/revoke-vault-grant.js.map +1 -0
- package/dist/actions/revoke-workspace-resource-grant.d.ts +3 -0
- package/dist/actions/revoke-workspace-resource-grant.d.ts.map +1 -0
- package/dist/actions/revoke-workspace-resource-grant.js +11 -0
- package/dist/actions/revoke-workspace-resource-grant.js.map +1 -0
- package/dist/actions/send-platform-message.d.ts +3 -0
- package/dist/actions/send-platform-message.d.ts.map +1 -0
- package/dist/actions/send-platform-message.js +73 -0
- package/dist/actions/send-platform-message.js.map +1 -0
- package/dist/actions/set-app-creation-settings.d.ts +3 -0
- package/dist/actions/set-app-creation-settings.d.ts.map +1 -0
- package/dist/actions/set-app-creation-settings.js +18 -0
- package/dist/actions/set-app-creation-settings.js.map +1 -0
- package/dist/actions/set-dispatch-approval-policy.d.ts +3 -0
- package/dist/actions/set-dispatch-approval-policy.d.ts.map +1 -0
- package/dist/actions/set-dispatch-approval-policy.js +19 -0
- package/dist/actions/set-dispatch-approval-policy.js.map +1 -0
- package/dist/actions/start-workspace-app-creation.d.ts +3 -0
- package/dist/actions/start-workspace-app-creation.d.ts.map +1 -0
- package/dist/actions/start-workspace-app-creation.js +31 -0
- package/dist/actions/start-workspace-app-creation.js.map +1 -0
- package/dist/actions/sync-vault-to-app.d.ts +3 -0
- package/dist/actions/sync-vault-to-app.d.ts.map +1 -0
- package/dist/actions/sync-vault-to-app.js +13 -0
- package/dist/actions/sync-vault-to-app.js.map +1 -0
- package/dist/actions/sync-workspace-resources-to-all.d.ts +3 -0
- package/dist/actions/sync-workspace-resources-to-all.d.ts.map +1 -0
- package/dist/actions/sync-workspace-resources-to-all.js +9 -0
- package/dist/actions/sync-workspace-resources-to-all.js.map +1 -0
- package/dist/actions/sync-workspace-resources-to-app.d.ts +3 -0
- package/dist/actions/sync-workspace-resources-to-app.d.ts.map +1 -0
- package/dist/actions/sync-workspace-resources-to-app.js +11 -0
- package/dist/actions/sync-workspace-resources-to-app.js.map +1 -0
- package/dist/actions/update-vault-secret.d.ts +3 -0
- package/dist/actions/update-vault-secret.d.ts.map +1 -0
- package/dist/actions/update-vault-secret.js +12 -0
- package/dist/actions/update-vault-secret.js.map +1 -0
- package/dist/actions/update-workspace-resource.d.ts +3 -0
- package/dist/actions/update-workspace-resource.d.ts.map +1 -0
- package/dist/actions/update-workspace-resource.js +18 -0
- package/dist/actions/update-workspace-resource.js.map +1 -0
- package/dist/actions/upsert-destination.d.ts +3 -0
- package/dist/actions/upsert-destination.d.ts.map +1 -0
- package/dist/actions/upsert-destination.js +26 -0
- package/dist/actions/upsert-destination.js.map +1 -0
- package/dist/actions/view-screen.d.ts +11 -0
- package/dist/actions/view-screen.d.ts.map +1 -0
- package/dist/actions/view-screen.js +68 -0
- package/dist/actions/view-screen.js.map +1 -0
- package/dist/components/agents-panel.d.ts +16 -0
- package/dist/components/agents-panel.d.ts.map +1 -0
- package/dist/components/agents-panel.js +64 -0
- package/dist/components/agents-panel.js.map +1 -0
- package/dist/components/app-keys-popover.d.ts +11 -0
- package/dist/components/app-keys-popover.d.ts.map +1 -0
- package/dist/components/app-keys-popover.js +84 -0
- package/dist/components/app-keys-popover.js.map +1 -0
- package/dist/components/create-app-popover.d.ts +24 -0
- package/dist/components/create-app-popover.d.ts.map +1 -0
- package/dist/components/create-app-popover.js +188 -0
- package/dist/components/create-app-popover.js.map +1 -0
- package/dist/components/dispatch-shell.d.ts +13 -0
- package/dist/components/dispatch-shell.d.ts.map +1 -0
- package/dist/components/dispatch-shell.js +15 -0
- package/dist/components/dispatch-shell.js.map +1 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +12 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/layout/Header.d.ts +5 -0
- package/dist/components/layout/Header.d.ts.map +1 -0
- package/dist/components/layout/Header.js +34 -0
- package/dist/components/layout/Header.js.map +1 -0
- package/dist/components/layout/HeaderActions.d.ts +18 -0
- package/dist/components/layout/HeaderActions.d.ts.map +1 -0
- package/dist/components/layout/HeaderActions.js +52 -0
- package/dist/components/layout/HeaderActions.js.map +1 -0
- package/dist/components/layout/Layout.d.ts +8 -0
- package/dist/components/layout/Layout.d.ts.map +1 -0
- package/dist/components/layout/Layout.js +70 -0
- package/dist/components/layout/Layout.js.map +1 -0
- package/dist/components/messaging-setup-panel.d.ts +2 -0
- package/dist/components/messaging-setup-panel.d.ts.map +1 -0
- package/dist/components/messaging-setup-panel.js +300 -0
- package/dist/components/messaging-setup-panel.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +14 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +27 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +23 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +4 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +12 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +21 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +20 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +24 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +34 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +41 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +17 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +99 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +80 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +131 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +9 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +6 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +83 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +29 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +28 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +34 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +23 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/drawer.d.ts +23 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +23 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +36 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +63 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +10 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +35 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +19 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +9 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +10 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +29 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +41 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +13 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +25 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +29 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +24 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +10 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +8 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +15 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +9 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +12 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +27 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +8 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +37 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +67 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +233 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +7 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +8 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +5 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +25 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +7 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +8 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +21 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +13 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +9 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.d.ts +16 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +34 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toaster.js +10 -0
- package/dist/components/ui/toaster.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +13 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +21 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +26 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +11 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/use-toast.d.ts +3 -0
- package/dist/components/ui/use-toast.d.ts.map +1 -0
- package/dist/components/ui/use-toast.js +3 -0
- package/dist/components/ui/use-toast.js.map +1 -0
- package/dist/config.d.ts +33 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -0
- package/dist/db/index.d.ts +7 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +10 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +5 -0
- package/dist/db/migrations.d.ts.map +1 -0
- package/dist/db/migrations.js +166 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/db/schema.d.ts +2344 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +148 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-navigation-state.d.ts +6 -0
- package/dist/hooks/use-navigation-state.d.ts.map +1 -0
- package/dist/hooks/use-navigation-state.js +129 -0
- package/dist/hooks/use-navigation-state.js.map +1 -0
- package/dist/hooks/use-toast.d.ts +45 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +127 -0
- package/dist/hooks/use-toast.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +2 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/routes/index.d.ts +32 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +51 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/pages/_index.d.ts +15 -0
- package/dist/routes/pages/_index.d.ts.map +1 -0
- package/dist/routes/pages/_index.js +42 -0
- package/dist/routes/pages/_index.js.map +1 -0
- package/dist/routes/pages/agents.d.ts +5 -0
- package/dist/routes/pages/agents.d.ts.map +1 -0
- package/dist/routes/pages/agents.js +12 -0
- package/dist/routes/pages/agents.js.map +1 -0
- package/dist/routes/pages/approval.d.ts +5 -0
- package/dist/routes/pages/approval.d.ts.map +1 -0
- package/dist/routes/pages/approval.js +47 -0
- package/dist/routes/pages/approval.js.map +1 -0
- package/dist/routes/pages/approvals.d.ts +5 -0
- package/dist/routes/pages/approvals.d.ts.map +1 -0
- package/dist/routes/pages/approvals.js +48 -0
- package/dist/routes/pages/approvals.js.map +1 -0
- package/dist/routes/pages/apps.$appId.d.ts +5 -0
- package/dist/routes/pages/apps.$appId.d.ts.map +1 -0
- package/dist/routes/pages/apps.$appId.js +31 -0
- package/dist/routes/pages/apps.$appId.js.map +1 -0
- package/dist/routes/pages/apps.d.ts +5 -0
- package/dist/routes/pages/apps.d.ts.map +1 -0
- package/dist/routes/pages/apps.js +42 -0
- package/dist/routes/pages/apps.js.map +1 -0
- package/dist/routes/pages/audit.d.ts +5 -0
- package/dist/routes/pages/audit.d.ts.map +1 -0
- package/dist/routes/pages/audit.js +11 -0
- package/dist/routes/pages/audit.js.map +1 -0
- package/dist/routes/pages/destinations.d.ts +5 -0
- package/dist/routes/pages/destinations.d.ts.map +1 -0
- package/dist/routes/pages/destinations.js +80 -0
- package/dist/routes/pages/destinations.js.map +1 -0
- package/dist/routes/pages/identities.d.ts +5 -0
- package/dist/routes/pages/identities.d.ts.map +1 -0
- package/dist/routes/pages/identities.js +18 -0
- package/dist/routes/pages/identities.js.map +1 -0
- package/dist/routes/pages/integrations.d.ts +5 -0
- package/dist/routes/pages/integrations.d.ts.map +1 -0
- package/dist/routes/pages/integrations.js +46 -0
- package/dist/routes/pages/integrations.js.map +1 -0
- package/dist/routes/pages/messaging.d.ts +5 -0
- package/dist/routes/pages/messaging.d.ts.map +1 -0
- package/dist/routes/pages/messaging.js +10 -0
- package/dist/routes/pages/messaging.js.map +1 -0
- package/dist/routes/pages/new-app.d.ts +5 -0
- package/dist/routes/pages/new-app.d.ts.map +1 -0
- package/dist/routes/pages/new-app.js +10 -0
- package/dist/routes/pages/new-app.js.map +1 -0
- package/dist/routes/pages/overview.d.ts +5 -0
- package/dist/routes/pages/overview.d.ts.map +1 -0
- package/dist/routes/pages/overview.js +225 -0
- package/dist/routes/pages/overview.js.map +1 -0
- package/dist/routes/pages/team.d.ts +5 -0
- package/dist/routes/pages/team.d.ts.map +1 -0
- package/dist/routes/pages/team.js +10 -0
- package/dist/routes/pages/team.js.map +1 -0
- package/dist/routes/pages/tools.$id.d.ts +2 -0
- package/dist/routes/pages/tools.$id.d.ts.map +1 -0
- package/dist/routes/pages/tools.$id.js +6 -0
- package/dist/routes/pages/tools.$id.js.map +1 -0
- package/dist/routes/pages/tools._index.d.ts +2 -0
- package/dist/routes/pages/tools._index.d.ts.map +1 -0
- package/dist/routes/pages/tools._index.js +6 -0
- package/dist/routes/pages/tools._index.js.map +1 -0
- package/dist/routes/pages/vault.d.ts +5 -0
- package/dist/routes/pages/vault.d.ts.map +1 -0
- package/dist/routes/pages/vault.js +131 -0
- package/dist/routes/pages/vault.js.map +1 -0
- package/dist/routes/pages/workspace.d.ts +5 -0
- package/dist/routes/pages/workspace.d.ts.map +1 -0
- package/dist/routes/pages/workspace.js +149 -0
- package/dist/routes/pages/workspace.js.map +1 -0
- package/dist/server/index.d.ts +44 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +68 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/lib/app-creation-store.d.ts +102 -0
- package/dist/server/lib/app-creation-store.d.ts.map +1 -0
- package/dist/server/lib/app-creation-store.js +780 -0
- package/dist/server/lib/app-creation-store.js.map +1 -0
- package/dist/server/lib/dispatch-integrations.d.ts +10 -0
- package/dist/server/lib/dispatch-integrations.d.ts.map +1 -0
- package/dist/server/lib/dispatch-integrations.js +105 -0
- package/dist/server/lib/dispatch-integrations.js.map +1 -0
- package/dist/server/lib/dispatch-store.d.ts +313 -0
- package/dist/server/lib/dispatch-store.d.ts.map +1 -0
- package/dist/server/lib/dispatch-store.js +669 -0
- package/dist/server/lib/dispatch-store.js.map +1 -0
- package/dist/server/lib/env-config.d.ts +3 -0
- package/dist/server/lib/env-config.d.ts.map +1 -0
- package/dist/server/lib/env-config.js +43 -0
- package/dist/server/lib/env-config.js.map +1 -0
- package/dist/server/lib/pre-auth-routing.d.ts +2 -0
- package/dist/server/lib/pre-auth-routing.d.ts.map +1 -0
- package/dist/server/lib/pre-auth-routing.js +128 -0
- package/dist/server/lib/pre-auth-routing.js.map +1 -0
- package/dist/server/lib/vault-store.d.ts +270 -0
- package/dist/server/lib/vault-store.d.ts.map +1 -0
- package/dist/server/lib/vault-store.js +554 -0
- package/dist/server/lib/vault-store.js.map +1 -0
- package/dist/server/lib/workspace-resources-store.d.ts +165 -0
- package/dist/server/lib/workspace-resources-store.d.ts.map +1 -0
- package/dist/server/lib/workspace-resources-store.js +310 -0
- package/dist/server/lib/workspace-resources-store.js.map +1 -0
- package/dist/server/plugins/agent-chat.d.ts +3 -0
- package/dist/server/plugins/agent-chat.d.ts.map +1 -0
- package/dist/server/plugins/agent-chat.js +36 -0
- package/dist/server/plugins/agent-chat.js.map +1 -0
- package/dist/server/plugins/auth.d.ts +9 -0
- package/dist/server/plugins/auth.d.ts.map +1 -0
- package/dist/server/plugins/auth.js +30 -0
- package/dist/server/plugins/auth.js.map +1 -0
- package/dist/server/plugins/core-routes.d.ts +3 -0
- package/dist/server/plugins/core-routes.d.ts.map +1 -0
- package/dist/server/plugins/core-routes.js +6 -0
- package/dist/server/plugins/core-routes.js.map +1 -0
- package/dist/server/plugins/db.d.ts +3 -0
- package/dist/server/plugins/db.d.ts.map +1 -0
- package/dist/server/plugins/db.js +6 -0
- package/dist/server/plugins/db.js.map +1 -0
- package/dist/server/plugins/integrations.d.ts +8 -0
- package/dist/server/plugins/integrations.d.ts.map +1 -0
- package/dist/server/plugins/integrations.js +51 -0
- package/dist/server/plugins/integrations.js.map +1 -0
- package/package.json +103 -0
- package/src/actions/approve-dispatch-change.ts +11 -0
- package/src/actions/approve-vault-request.ts +23 -0
- package/src/actions/create-link-token.ts +12 -0
- package/src/actions/create-vault-grant.ts +15 -0
- package/src/actions/create-vault-secret.ts +21 -0
- package/src/actions/create-workspace-resource-grant.ts +15 -0
- package/src/actions/create-workspace-resource.ts +29 -0
- package/src/actions/delete-destination.ts +11 -0
- package/src/actions/delete-vault-secret.ts +12 -0
- package/src/actions/delete-workspace-resource.ts +12 -0
- package/src/actions/deny-vault-request.ts +12 -0
- package/src/actions/get-app-creation-settings.ts +11 -0
- package/src/actions/get-dispatch-settings.ts +10 -0
- package/src/actions/get-workspace-info.ts +11 -0
- package/src/actions/grant-vault-secrets-to-app.ts +20 -0
- package/src/actions/index.ts +102 -0
- package/src/actions/list-connected-agents.ts +103 -0
- package/src/actions/list-destinations.ts +10 -0
- package/src/actions/list-dispatch-approvals.ts +10 -0
- package/src/actions/list-dispatch-audit.ts +12 -0
- package/src/actions/list-dispatch-overview.ts +18 -0
- package/src/actions/list-integrations-catalog.ts +11 -0
- package/src/actions/list-linked-identities.ts +10 -0
- package/src/actions/list-vault-audit.ts +16 -0
- package/src/actions/list-vault-grants.ts +14 -0
- package/src/actions/list-vault-requests.ts +16 -0
- package/src/actions/list-vault-secret-options.ts +20 -0
- package/src/actions/list-vault-secrets.ts +26 -0
- package/src/actions/list-workspace-apps.ts +25 -0
- package/src/actions/list-workspace-resource-grants.ts +14 -0
- package/src/actions/list-workspace-resources.ts +16 -0
- package/src/actions/navigate.ts +55 -0
- package/src/actions/reject-dispatch-change.ts +12 -0
- package/src/actions/request-vault-secret.ts +16 -0
- package/src/actions/revoke-vault-grant.ts +11 -0
- package/src/actions/revoke-workspace-resource-grant.ts +15 -0
- package/src/actions/send-platform-message.ts +96 -0
- package/src/actions/set-app-creation-settings.ts +19 -0
- package/src/actions/set-dispatch-approval-policy.ts +24 -0
- package/src/actions/start-workspace-app-creation.ts +33 -0
- package/src/actions/sync-vault-to-app.ts +14 -0
- package/src/actions/sync-workspace-resources-to-all.ts +10 -0
- package/src/actions/sync-workspace-resources-to-app.ts +12 -0
- package/src/actions/update-vault-secret.ts +12 -0
- package/src/actions/update-workspace-resource.ts +19 -0
- package/src/actions/upsert-destination.ts +29 -0
- package/src/actions/view-screen.ts +78 -0
- package/src/components/agents-panel.tsx +262 -0
- package/src/components/app-keys-popover.tsx +231 -0
- package/src/components/create-app-popover.tsx +423 -0
- package/src/components/dispatch-shell.tsx +53 -0
- package/src/components/index.ts +11 -0
- package/src/components/layout/Header.tsx +69 -0
- package/src/components/layout/HeaderActions.tsx +84 -0
- package/src/components/layout/Layout.tsx +243 -0
- package/src/components/messaging-setup-panel.tsx +666 -0
- package/src/components/ui/accordion.tsx +56 -0
- package/src/components/ui/alert-dialog.tsx +139 -0
- package/src/components/ui/alert.tsx +59 -0
- package/src/components/ui/aspect-ratio.tsx +5 -0
- package/src/components/ui/avatar.tsx +48 -0
- package/src/components/ui/badge.tsx +37 -0
- package/src/components/ui/breadcrumb.tsx +115 -0
- package/src/components/ui/button.tsx +57 -0
- package/src/components/ui/calendar.tsx +68 -0
- package/src/components/ui/card.tsx +86 -0
- package/src/components/ui/carousel.tsx +260 -0
- package/src/components/ui/chart.tsx +375 -0
- package/src/components/ui/checkbox.tsx +28 -0
- package/src/components/ui/collapsible.tsx +9 -0
- package/src/components/ui/command.tsx +154 -0
- package/src/components/ui/context-menu.tsx +198 -0
- package/src/components/ui/dialog.tsx +120 -0
- package/src/components/ui/drawer.tsx +116 -0
- package/src/components/ui/dropdown-menu.tsx +198 -0
- package/src/components/ui/form.tsx +177 -0
- package/src/components/ui/hover-card.tsx +27 -0
- package/src/components/ui/input-otp.tsx +69 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/menubar.tsx +235 -0
- package/src/components/ui/navigation-menu.tsx +128 -0
- package/src/components/ui/pagination.tsx +121 -0
- package/src/components/ui/popover.tsx +29 -0
- package/src/components/ui/progress.tsx +26 -0
- package/src/components/ui/radio-group.tsx +42 -0
- package/src/components/ui/resizable.tsx +43 -0
- package/src/components/ui/scroll-area.tsx +46 -0
- package/src/components/ui/select.tsx +158 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +778 -0
- package/src/components/ui/skeleton.tsx +15 -0
- package/src/components/ui/slider.tsx +26 -0
- package/src/components/ui/sonner.tsx +58 -0
- package/src/components/ui/spinner.tsx +17 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/components/ui/table.tsx +117 -0
- package/src/components/ui/tabs.tsx +53 -0
- package/src/components/ui/textarea.tsx +23 -0
- package/src/components/ui/toast.tsx +127 -0
- package/src/components/ui/toaster.tsx +33 -0
- package/src/components/ui/toggle-group.tsx +59 -0
- package/src/components/ui/toggle.tsx +43 -0
- package/src/components/ui/tooltip.tsx +28 -0
- package/src/components/ui/use-toast.ts +3 -0
- package/src/config.ts +35 -0
- package/src/db/index.ts +12 -0
- package/src/db/migrations.ts +165 -0
- package/src/db/schema.ts +160 -0
- package/src/hooks/use-mobile.tsx +21 -0
- package/src/hooks/use-navigation-state.ts +132 -0
- package/src/hooks/use-toast.ts +188 -0
- package/src/index.ts +19 -0
- package/src/lib/utils.ts +1 -0
- package/src/routes/index.ts +51 -0
- package/src/routes/pages/_index.tsx +51 -0
- package/src/routes/pages/agents.tsx +23 -0
- package/src/routes/pages/approval.tsx +243 -0
- package/src/routes/pages/approvals.tsx +157 -0
- package/src/routes/pages/apps.$appId.tsx +134 -0
- package/src/routes/pages/apps.tsx +163 -0
- package/src/routes/pages/audit.tsx +41 -0
- package/src/routes/pages/destinations.tsx +253 -0
- package/src/routes/pages/identities.tsx +91 -0
- package/src/routes/pages/integrations.tsx +278 -0
- package/src/routes/pages/messaging.tsx +17 -0
- package/src/routes/pages/new-app.tsx +17 -0
- package/src/routes/pages/overview.tsx +792 -0
- package/src/routes/pages/team.tsx +23 -0
- package/src/routes/pages/tools.$id.tsx +5 -0
- package/src/routes/pages/tools._index.tsx +5 -0
- package/src/routes/pages/vault.tsx +617 -0
- package/src/routes/pages/workspace.tsx +598 -0
- package/src/server/index.ts +78 -0
- package/src/server/lib/app-creation-store.ts +996 -0
- package/src/server/lib/dispatch-integrations.ts +125 -0
- package/src/server/lib/dispatch-store.ts +889 -0
- package/src/server/lib/env-config.ts +44 -0
- package/src/server/lib/pre-auth-routing.ts +150 -0
- package/src/server/lib/vault-store.ts +811 -0
- package/src/server/lib/workspace-resources-store.ts +445 -0
- package/src/server/plugins/agent-chat.ts +36 -0
- package/src/server/plugins/auth.ts +34 -0
- package/src/server/plugins/core-routes.ts +6 -0
- package/src/server/plugins/db.ts +6 -0
- package/src/server/plugins/integrations.ts +59 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { useActionQuery } from "@agent-native/core/client";
|
|
2
|
+
import {
|
|
3
|
+
IconArrowUpRight,
|
|
4
|
+
IconApps,
|
|
5
|
+
IconClockHour4,
|
|
6
|
+
IconPlus,
|
|
7
|
+
} from "@tabler/icons-react";
|
|
8
|
+
import { AppKeysPopover } from "@/components/app-keys-popover";
|
|
9
|
+
import { CreateAppPopover } from "@/components/create-app-popover";
|
|
10
|
+
import { DispatchShell } from "@/components/dispatch-shell";
|
|
11
|
+
import { Badge } from "@/components/ui/badge";
|
|
12
|
+
import { Button } from "@/components/ui/button";
|
|
13
|
+
|
|
14
|
+
interface WorkspaceAppSummary {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
path: string;
|
|
19
|
+
url?: string | null;
|
|
20
|
+
isDispatch: boolean;
|
|
21
|
+
status?: "ready" | "pending";
|
|
22
|
+
statusLabel?: string;
|
|
23
|
+
builderUrl?: string | null;
|
|
24
|
+
branchName?: string | null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function workspaceAppHref(app: WorkspaceAppSummary): string | null {
|
|
28
|
+
if (app.status === "pending") return app.builderUrl || null;
|
|
29
|
+
return app.url || app.path || null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function isPendingBuilderHref(app: WorkspaceAppSummary): boolean {
|
|
33
|
+
return app.status === "pending" && !!app.builderUrl;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function meta() {
|
|
37
|
+
return [{ title: "Apps — Dispatch" }];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface WorkspaceInfo {
|
|
41
|
+
name: string | null;
|
|
42
|
+
displayName: string | null;
|
|
43
|
+
appCount: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export default function AppsRoute() {
|
|
47
|
+
const { data: apps = [] } = useActionQuery(
|
|
48
|
+
"list-workspace-apps",
|
|
49
|
+
{ includeAgentCards: false },
|
|
50
|
+
{
|
|
51
|
+
refetchInterval: 2_000,
|
|
52
|
+
},
|
|
53
|
+
);
|
|
54
|
+
const { data: workspace } = useActionQuery(
|
|
55
|
+
"get-workspace-info",
|
|
56
|
+
{},
|
|
57
|
+
{ staleTime: 60_000 },
|
|
58
|
+
);
|
|
59
|
+
const ws = workspace as WorkspaceInfo | undefined;
|
|
60
|
+
const workspaceLabel = ws?.displayName ?? ws?.name ?? null;
|
|
61
|
+
const typedApps = (apps as WorkspaceAppSummary[]).filter(
|
|
62
|
+
(app) => !app.isDispatch,
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<DispatchShell
|
|
67
|
+
title="Apps"
|
|
68
|
+
description={
|
|
69
|
+
workspaceLabel
|
|
70
|
+
? `Apps in the "${workspaceLabel}" workspace. Each app gets its own route under this workspace and shares its database, auth, and agent chat.`
|
|
71
|
+
: "Open workspace apps and start new app creation from Dispatch."
|
|
72
|
+
}
|
|
73
|
+
>
|
|
74
|
+
<div className="space-y-4">
|
|
75
|
+
<section className="space-y-3">
|
|
76
|
+
<div className="flex items-center justify-between gap-3">
|
|
77
|
+
<div className="flex items-center gap-2">
|
|
78
|
+
<IconApps size={16} className="text-muted-foreground" />
|
|
79
|
+
<h2 className="text-sm font-semibold text-foreground">
|
|
80
|
+
{workspaceLabel
|
|
81
|
+
? `Apps in ${workspaceLabel}`
|
|
82
|
+
: "Workspace apps"}
|
|
83
|
+
</h2>
|
|
84
|
+
</div>
|
|
85
|
+
<CreateAppPopover
|
|
86
|
+
align="end"
|
|
87
|
+
trigger={
|
|
88
|
+
<Button size="sm" variant="outline">
|
|
89
|
+
<IconPlus size={15} className="mr-1.5" />
|
|
90
|
+
App
|
|
91
|
+
</Button>
|
|
92
|
+
}
|
|
93
|
+
/>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div className="grid gap-3 md:grid-cols-2 xl:grid-cols-3">
|
|
97
|
+
{typedApps.map((app) => {
|
|
98
|
+
const href = workspaceAppHref(app);
|
|
99
|
+
// Pending Builder branches live on a different host; open
|
|
100
|
+
// those in a new tab. Ready workspace apps stay in-window
|
|
101
|
+
// so the cards work inside the Builder webview, where new
|
|
102
|
+
// tabs would escape to the host browser.
|
|
103
|
+
const openInNewTab = isPendingBuilderHref(app);
|
|
104
|
+
return (
|
|
105
|
+
<a
|
|
106
|
+
key={app.id}
|
|
107
|
+
href={href ?? undefined}
|
|
108
|
+
target={openInNewTab ? "_blank" : undefined}
|
|
109
|
+
rel={openInNewTab ? "noreferrer" : undefined}
|
|
110
|
+
aria-disabled={!href}
|
|
111
|
+
className="group rounded-lg border bg-card p-4 transition hover:border-foreground/30 aria-disabled:pointer-events-none aria-disabled:opacity-60"
|
|
112
|
+
>
|
|
113
|
+
<div className="flex items-start justify-between gap-3">
|
|
114
|
+
<div className="min-w-0">
|
|
115
|
+
<div className="flex min-w-0 items-center gap-2">
|
|
116
|
+
<h3 className="truncate text-sm font-semibold text-foreground">
|
|
117
|
+
{app.name}
|
|
118
|
+
</h3>
|
|
119
|
+
{app.status === "pending" ? (
|
|
120
|
+
<Badge
|
|
121
|
+
variant="outline"
|
|
122
|
+
className="shrink-0 gap-1 border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300"
|
|
123
|
+
>
|
|
124
|
+
<IconClockHour4 size={12} />
|
|
125
|
+
Building
|
|
126
|
+
</Badge>
|
|
127
|
+
) : null}
|
|
128
|
+
</div>
|
|
129
|
+
<p className="mt-1 truncate font-mono text-xs text-muted-foreground">
|
|
130
|
+
{app.path}
|
|
131
|
+
</p>
|
|
132
|
+
{app.status === "pending" && app.branchName ? (
|
|
133
|
+
<p className="mt-1 truncate text-xs text-muted-foreground">
|
|
134
|
+
Branch: {app.branchName}
|
|
135
|
+
</p>
|
|
136
|
+
) : null}
|
|
137
|
+
{app.description ? (
|
|
138
|
+
<p className="mt-2 line-clamp-2 text-xs leading-relaxed text-muted-foreground">
|
|
139
|
+
{app.description}
|
|
140
|
+
</p>
|
|
141
|
+
) : null}
|
|
142
|
+
</div>
|
|
143
|
+
<div className="flex shrink-0 items-center gap-1">
|
|
144
|
+
{app.status === "ready" ? (
|
|
145
|
+
<AppKeysPopover appId={app.id} appName={app.name} />
|
|
146
|
+
) : null}
|
|
147
|
+
<IconArrowUpRight
|
|
148
|
+
size={16}
|
|
149
|
+
className="text-muted-foreground transition group-hover:text-foreground"
|
|
150
|
+
/>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</a>
|
|
154
|
+
);
|
|
155
|
+
})}
|
|
156
|
+
|
|
157
|
+
<CreateAppPopover />
|
|
158
|
+
</div>
|
|
159
|
+
</section>
|
|
160
|
+
</div>
|
|
161
|
+
</DispatchShell>
|
|
162
|
+
);
|
|
163
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useActionQuery } from "@agent-native/core/client";
|
|
2
|
+
import { DispatchShell } from "@/components/dispatch-shell";
|
|
3
|
+
|
|
4
|
+
export function meta() {
|
|
5
|
+
return [{ title: "Audit — Dispatch" }];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function AuditRoute() {
|
|
9
|
+
const { data } = useActionQuery("list-dispatch-audit", { limit: 100 });
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<DispatchShell
|
|
13
|
+
title="Audit"
|
|
14
|
+
description="Change history for routes, settings, and approvals."
|
|
15
|
+
>
|
|
16
|
+
<section className="rounded-2xl border bg-card p-5">
|
|
17
|
+
<div className="space-y-3">
|
|
18
|
+
{(data || []).map((event) => (
|
|
19
|
+
<div
|
|
20
|
+
key={event.id}
|
|
21
|
+
className="rounded-xl border bg-muted/30 px-4 py-3"
|
|
22
|
+
>
|
|
23
|
+
<div className="text-sm font-medium text-foreground">
|
|
24
|
+
{event.summary}
|
|
25
|
+
</div>
|
|
26
|
+
<div className="mt-1 text-xs text-muted-foreground">
|
|
27
|
+
{event.actor} · {event.action} ·{" "}
|
|
28
|
+
{new Date(event.createdAt).toLocaleString()}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
))}
|
|
32
|
+
{(data?.length || 0) === 0 && (
|
|
33
|
+
<div className="rounded-xl border border-dashed px-4 py-6 text-sm text-muted-foreground">
|
|
34
|
+
No audit entries yet.
|
|
35
|
+
</div>
|
|
36
|
+
)}
|
|
37
|
+
</div>
|
|
38
|
+
</section>
|
|
39
|
+
</DispatchShell>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
3
|
+
import { toast } from "sonner";
|
|
4
|
+
import { DispatchShell } from "@/components/dispatch-shell";
|
|
5
|
+
import { Button } from "@/components/ui/button";
|
|
6
|
+
import { Input } from "@/components/ui/input";
|
|
7
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
8
|
+
import {
|
|
9
|
+
Select,
|
|
10
|
+
SelectContent,
|
|
11
|
+
SelectItem,
|
|
12
|
+
SelectTrigger,
|
|
13
|
+
SelectValue,
|
|
14
|
+
} from "@/components/ui/select";
|
|
15
|
+
import {
|
|
16
|
+
AlertDialog,
|
|
17
|
+
AlertDialogAction,
|
|
18
|
+
AlertDialogCancel,
|
|
19
|
+
AlertDialogContent,
|
|
20
|
+
AlertDialogDescription,
|
|
21
|
+
AlertDialogFooter,
|
|
22
|
+
AlertDialogHeader,
|
|
23
|
+
AlertDialogTitle,
|
|
24
|
+
AlertDialogTrigger,
|
|
25
|
+
} from "@/components/ui/alert-dialog";
|
|
26
|
+
|
|
27
|
+
export function meta() {
|
|
28
|
+
return [{ title: "Destinations — Dispatch" }];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function QuickSendRow({
|
|
32
|
+
destination,
|
|
33
|
+
}: {
|
|
34
|
+
destination: { id: string; name: string };
|
|
35
|
+
}) {
|
|
36
|
+
const [text, setText] = useState("");
|
|
37
|
+
const send = useActionMutation("send-platform-message", {
|
|
38
|
+
onSuccess: () => {
|
|
39
|
+
toast.success("Message sent");
|
|
40
|
+
setText("");
|
|
41
|
+
},
|
|
42
|
+
onError: (error) => {
|
|
43
|
+
toast.error(
|
|
44
|
+
error instanceof Error ? error.message : "Unable to send message",
|
|
45
|
+
);
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
return (
|
|
49
|
+
<div className="mt-3 flex gap-2">
|
|
50
|
+
<Input
|
|
51
|
+
value={text}
|
|
52
|
+
onChange={(event) => setText(event.target.value)}
|
|
53
|
+
placeholder="Quick test message"
|
|
54
|
+
/>
|
|
55
|
+
<Button
|
|
56
|
+
onClick={() =>
|
|
57
|
+
send.mutate({
|
|
58
|
+
destinationId: destination.id,
|
|
59
|
+
text: text || `Test message to ${destination.name}`,
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
disabled={send.isPending}
|
|
63
|
+
>
|
|
64
|
+
Send
|
|
65
|
+
</Button>
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default function DestinationsRoute() {
|
|
71
|
+
const { data } = useActionQuery("list-destinations", {});
|
|
72
|
+
const [form, setForm] = useState({
|
|
73
|
+
name: "",
|
|
74
|
+
platform: "slack",
|
|
75
|
+
destination: "",
|
|
76
|
+
threadRef: "",
|
|
77
|
+
notes: "",
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
const upsert = useActionMutation("upsert-destination", {
|
|
81
|
+
onSuccess: () => {
|
|
82
|
+
toast.success("Destination saved");
|
|
83
|
+
setForm((current) => ({
|
|
84
|
+
...current,
|
|
85
|
+
name: "",
|
|
86
|
+
destination: "",
|
|
87
|
+
threadRef: "",
|
|
88
|
+
notes: "",
|
|
89
|
+
}));
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
const remove = useActionMutation("delete-destination", {
|
|
93
|
+
onSuccess: () => toast.success("Destination removed"),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<DispatchShell
|
|
98
|
+
title="Destinations"
|
|
99
|
+
description="Saved outbound Slack channels, Telegram chats, and thread targets."
|
|
100
|
+
>
|
|
101
|
+
<div className="grid gap-4 xl:grid-cols-[minmax(0,1.1fr)_minmax(0,0.9fr)]">
|
|
102
|
+
<section className="rounded-2xl border bg-card p-5">
|
|
103
|
+
<h2 className="text-lg font-semibold text-foreground">
|
|
104
|
+
Saved destinations
|
|
105
|
+
</h2>
|
|
106
|
+
<div className="mt-4 space-y-3">
|
|
107
|
+
{(data || []).map((destination) => (
|
|
108
|
+
<div
|
|
109
|
+
key={destination.id}
|
|
110
|
+
className="rounded-xl border bg-muted/30 p-4"
|
|
111
|
+
>
|
|
112
|
+
<div className="flex items-start justify-between gap-3">
|
|
113
|
+
<div>
|
|
114
|
+
<div className="text-sm font-medium text-foreground">
|
|
115
|
+
{destination.name}
|
|
116
|
+
</div>
|
|
117
|
+
<div className="mt-1 text-xs text-muted-foreground">
|
|
118
|
+
{destination.platform} · {destination.destination}
|
|
119
|
+
{destination.threadRef
|
|
120
|
+
? ` · thread ${destination.threadRef}`
|
|
121
|
+
: ""}
|
|
122
|
+
</div>
|
|
123
|
+
{destination.notes && (
|
|
124
|
+
<p className="mt-2 text-sm text-muted-foreground">
|
|
125
|
+
{destination.notes}
|
|
126
|
+
</p>
|
|
127
|
+
)}
|
|
128
|
+
</div>
|
|
129
|
+
<AlertDialog>
|
|
130
|
+
<AlertDialogTrigger asChild>
|
|
131
|
+
<Button variant="outline" size="sm">
|
|
132
|
+
Delete
|
|
133
|
+
</Button>
|
|
134
|
+
</AlertDialogTrigger>
|
|
135
|
+
<AlertDialogContent>
|
|
136
|
+
<AlertDialogHeader>
|
|
137
|
+
<AlertDialogTitle>Delete destination?</AlertDialogTitle>
|
|
138
|
+
<AlertDialogDescription>
|
|
139
|
+
“{destination.name}” will be removed. Any saved
|
|
140
|
+
workflows or jobs that target this destination will
|
|
141
|
+
start failing on the next send.
|
|
142
|
+
</AlertDialogDescription>
|
|
143
|
+
</AlertDialogHeader>
|
|
144
|
+
<AlertDialogFooter>
|
|
145
|
+
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
146
|
+
<AlertDialogAction
|
|
147
|
+
onClick={() => remove.mutate({ id: destination.id })}
|
|
148
|
+
>
|
|
149
|
+
Delete
|
|
150
|
+
</AlertDialogAction>
|
|
151
|
+
</AlertDialogFooter>
|
|
152
|
+
</AlertDialogContent>
|
|
153
|
+
</AlertDialog>
|
|
154
|
+
</div>
|
|
155
|
+
<QuickSendRow destination={destination} />
|
|
156
|
+
</div>
|
|
157
|
+
))}
|
|
158
|
+
{(data?.length || 0) === 0 && (
|
|
159
|
+
<div className="rounded-xl border border-dashed px-4 py-8 text-sm text-muted-foreground">
|
|
160
|
+
No destinations saved yet. Add your first Slack channel or
|
|
161
|
+
Telegram chat on the right.
|
|
162
|
+
</div>
|
|
163
|
+
)}
|
|
164
|
+
</div>
|
|
165
|
+
</section>
|
|
166
|
+
|
|
167
|
+
<section className="rounded-2xl border bg-card p-5">
|
|
168
|
+
<h2 className="text-lg font-semibold text-foreground">
|
|
169
|
+
Add destination
|
|
170
|
+
</h2>
|
|
171
|
+
<div className="mt-4 space-y-3">
|
|
172
|
+
<Input
|
|
173
|
+
value={form.name}
|
|
174
|
+
onChange={(event) =>
|
|
175
|
+
setForm((current) => ({ ...current, name: event.target.value }))
|
|
176
|
+
}
|
|
177
|
+
placeholder="Daily digest channel"
|
|
178
|
+
/>
|
|
179
|
+
<Select
|
|
180
|
+
value={form.platform}
|
|
181
|
+
onValueChange={(value) =>
|
|
182
|
+
setForm((current) => ({
|
|
183
|
+
...current,
|
|
184
|
+
platform: value,
|
|
185
|
+
}))
|
|
186
|
+
}
|
|
187
|
+
>
|
|
188
|
+
<SelectTrigger>
|
|
189
|
+
<SelectValue />
|
|
190
|
+
</SelectTrigger>
|
|
191
|
+
<SelectContent>
|
|
192
|
+
<SelectItem value="slack">Slack</SelectItem>
|
|
193
|
+
<SelectItem value="telegram">Telegram</SelectItem>
|
|
194
|
+
<SelectItem value="email">Email</SelectItem>
|
|
195
|
+
</SelectContent>
|
|
196
|
+
</Select>
|
|
197
|
+
<Input
|
|
198
|
+
value={form.destination}
|
|
199
|
+
onChange={(event) =>
|
|
200
|
+
setForm((current) => ({
|
|
201
|
+
...current,
|
|
202
|
+
destination: event.target.value,
|
|
203
|
+
}))
|
|
204
|
+
}
|
|
205
|
+
placeholder={
|
|
206
|
+
form.platform === "slack"
|
|
207
|
+
? "C0123456789"
|
|
208
|
+
: form.platform === "email"
|
|
209
|
+
? "teammate+qa@agent-native.test"
|
|
210
|
+
: "123456789"
|
|
211
|
+
}
|
|
212
|
+
/>
|
|
213
|
+
<Input
|
|
214
|
+
value={form.threadRef}
|
|
215
|
+
onChange={(event) =>
|
|
216
|
+
setForm((current) => ({
|
|
217
|
+
...current,
|
|
218
|
+
threadRef: event.target.value,
|
|
219
|
+
}))
|
|
220
|
+
}
|
|
221
|
+
placeholder="Optional thread or topic id"
|
|
222
|
+
/>
|
|
223
|
+
<Textarea
|
|
224
|
+
value={form.notes}
|
|
225
|
+
onChange={(event) =>
|
|
226
|
+
setForm((current) => ({
|
|
227
|
+
...current,
|
|
228
|
+
notes: event.target.value,
|
|
229
|
+
}))
|
|
230
|
+
}
|
|
231
|
+
placeholder="What should use this destination?"
|
|
232
|
+
/>
|
|
233
|
+
<Button
|
|
234
|
+
className="w-full"
|
|
235
|
+
onClick={() =>
|
|
236
|
+
upsert.mutate({
|
|
237
|
+
name: form.name,
|
|
238
|
+
platform: form.platform as "slack" | "telegram" | "email",
|
|
239
|
+
destination: form.destination,
|
|
240
|
+
threadRef: form.threadRef || undefined,
|
|
241
|
+
notes: form.notes || undefined,
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
disabled={!form.name || !form.destination}
|
|
245
|
+
>
|
|
246
|
+
Save destination
|
|
247
|
+
</Button>
|
|
248
|
+
</div>
|
|
249
|
+
</section>
|
|
250
|
+
</div>
|
|
251
|
+
</DispatchShell>
|
|
252
|
+
);
|
|
253
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
2
|
+
import { toast } from "sonner";
|
|
3
|
+
import { DispatchShell } from "@/components/dispatch-shell";
|
|
4
|
+
import { Button } from "@/components/ui/button";
|
|
5
|
+
|
|
6
|
+
export function meta() {
|
|
7
|
+
return [{ title: "Identities — Dispatch" }];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function IdentitiesRoute() {
|
|
11
|
+
const { data } = useActionQuery("list-linked-identities", {});
|
|
12
|
+
const createToken = useActionMutation("create-link-token", {
|
|
13
|
+
onSuccess: () => toast.success("Link token created"),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<DispatchShell
|
|
18
|
+
title="Identities"
|
|
19
|
+
description="Link external senders to workspace users."
|
|
20
|
+
>
|
|
21
|
+
<div className="grid gap-4 xl:grid-cols-2">
|
|
22
|
+
<section className="rounded-2xl border bg-card p-5">
|
|
23
|
+
<div className="flex flex-wrap items-center justify-between gap-2">
|
|
24
|
+
<h2 className="text-lg font-semibold text-foreground">
|
|
25
|
+
Active links
|
|
26
|
+
</h2>
|
|
27
|
+
<div className="flex shrink-0 gap-2">
|
|
28
|
+
<Button
|
|
29
|
+
variant="outline"
|
|
30
|
+
onClick={() => createToken.mutate({ platform: "slack" })}
|
|
31
|
+
>
|
|
32
|
+
New Slack token
|
|
33
|
+
</Button>
|
|
34
|
+
<Button
|
|
35
|
+
onClick={() => createToken.mutate({ platform: "telegram" })}
|
|
36
|
+
>
|
|
37
|
+
New Telegram token
|
|
38
|
+
</Button>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div className="mt-4 space-y-3">
|
|
42
|
+
{(data?.links || []).map((link) => (
|
|
43
|
+
<div
|
|
44
|
+
key={link.id}
|
|
45
|
+
className="rounded-xl border bg-muted/30 px-4 py-3"
|
|
46
|
+
>
|
|
47
|
+
<div className="text-sm font-medium text-foreground">
|
|
48
|
+
{link.externalUserName || link.externalUserId}
|
|
49
|
+
</div>
|
|
50
|
+
<div className="mt-1 text-xs text-muted-foreground">
|
|
51
|
+
{link.platform} → {link.ownerEmail}
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
))}
|
|
55
|
+
{(data?.links?.length || 0) === 0 && (
|
|
56
|
+
<div className="rounded-xl border border-dashed px-4 py-8 text-sm text-muted-foreground">
|
|
57
|
+
No linked identities yet. Generate a token and ask the user to
|
|
58
|
+
send <code>/link TOKEN</code> from Slack or Telegram.
|
|
59
|
+
</div>
|
|
60
|
+
)}
|
|
61
|
+
</div>
|
|
62
|
+
</section>
|
|
63
|
+
|
|
64
|
+
<section className="rounded-2xl border bg-card p-5">
|
|
65
|
+
<h2 className="text-lg font-semibold text-foreground">Link tokens</h2>
|
|
66
|
+
<div className="mt-4 space-y-3">
|
|
67
|
+
{(data?.tokens || []).map((token) => (
|
|
68
|
+
<div key={token.id} className="rounded-xl border px-4 py-3">
|
|
69
|
+
<div className="text-sm font-medium text-foreground">
|
|
70
|
+
/link {token.token}
|
|
71
|
+
</div>
|
|
72
|
+
<div className="mt-1 text-xs text-muted-foreground">
|
|
73
|
+
{token.platform} · expires{" "}
|
|
74
|
+
{new Date(token.expiresAt).toLocaleString()}
|
|
75
|
+
{token.claimedAt
|
|
76
|
+
? ` · claimed by ${token.claimedByExternalUserName || token.claimedByExternalUserId}`
|
|
77
|
+
: " · waiting to be claimed"}
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
))}
|
|
81
|
+
{(data?.tokens?.length || 0) === 0 && (
|
|
82
|
+
<div className="rounded-xl border border-dashed px-4 py-8 text-sm text-muted-foreground">
|
|
83
|
+
No active link tokens.
|
|
84
|
+
</div>
|
|
85
|
+
)}
|
|
86
|
+
</div>
|
|
87
|
+
</section>
|
|
88
|
+
</div>
|
|
89
|
+
</DispatchShell>
|
|
90
|
+
);
|
|
91
|
+
}
|