@agent-native/dispatch 0.12.3 → 0.13.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/dist/actions/apply-dream-proposal.d.ts +14 -14
- package/dist/actions/apply-dream-proposal.d.ts.map +1 -1
- package/dist/actions/apply-dream-proposal.js.map +1 -1
- package/dist/actions/approve-dispatch-change.d.ts.map +1 -1
- package/dist/actions/approve-dispatch-change.js.map +1 -1
- package/dist/actions/approve-vault-request.d.ts.map +1 -1
- package/dist/actions/approve-vault-request.js.map +1 -1
- package/dist/actions/archive-workspace-app.d.ts.map +1 -1
- package/dist/actions/archive-workspace-app.js.map +1 -1
- package/dist/actions/ask_app.d.ts.map +1 -1
- package/dist/actions/ask_app.js.map +1 -1
- package/dist/actions/create-dream-report.d.ts +26 -26
- package/dist/actions/create-dream-report.d.ts.map +1 -1
- package/dist/actions/create-dream-report.js.map +1 -1
- package/dist/actions/create-link-token.d.ts +1 -1
- package/dist/actions/create-link-token.d.ts.map +1 -1
- package/dist/actions/create-link-token.js.map +1 -1
- package/dist/actions/create-pylon-ticket.d.ts +1 -1
- package/dist/actions/create-pylon-ticket.d.ts.map +1 -1
- package/dist/actions/create-pylon-ticket.js.map +1 -1
- package/dist/actions/create-vault-grant.d.ts.map +1 -1
- package/dist/actions/create-vault-grant.js.map +1 -1
- package/dist/actions/create-vault-secret.d.ts.map +1 -1
- package/dist/actions/create-vault-secret.js.map +1 -1
- package/dist/actions/create-workspace-resource-grant.d.ts.map +1 -1
- package/dist/actions/create-workspace-resource-grant.js.map +1 -1
- package/dist/actions/create-workspace-resource.d.ts +2 -2
- package/dist/actions/create-workspace-resource.d.ts.map +1 -1
- package/dist/actions/create-workspace-resource.js.map +1 -1
- package/dist/actions/create_embed_session.d.ts.map +1 -1
- package/dist/actions/create_embed_session.js.map +1 -1
- package/dist/actions/delete-destination.d.ts +12 -12
- package/dist/actions/delete-destination.d.ts.map +1 -1
- package/dist/actions/delete-destination.js.map +1 -1
- package/dist/actions/delete-staged-dataset.d.ts.map +1 -1
- package/dist/actions/delete-staged-dataset.js.map +1 -1
- package/dist/actions/delete-vault-secret.d.ts.map +1 -1
- package/dist/actions/delete-vault-secret.js.map +1 -1
- package/dist/actions/delete-workspace-resource.d.ts +13 -13
- package/dist/actions/delete-workspace-resource.d.ts.map +1 -1
- package/dist/actions/delete-workspace-resource.js.map +1 -1
- package/dist/actions/deny-vault-request.d.ts.map +1 -1
- package/dist/actions/deny-vault-request.js.map +1 -1
- package/dist/actions/ensure-dream-job.d.ts.map +1 -1
- package/dist/actions/ensure-dream-job.js.map +1 -1
- package/dist/actions/get-agent-thread-debug.d.ts +2 -2
- package/dist/actions/get-agent-thread-debug.d.ts.map +1 -1
- package/dist/actions/get-agent-thread-debug.js.map +1 -1
- package/dist/actions/get-app-creation-settings.d.ts.map +1 -1
- package/dist/actions/get-app-creation-settings.js.map +1 -1
- package/dist/actions/get-dispatch-settings.d.ts.map +1 -1
- package/dist/actions/get-dispatch-settings.js.map +1 -1
- package/dist/actions/get-dream-settings.d.ts.map +1 -1
- package/dist/actions/get-dream-settings.js.map +1 -1
- package/dist/actions/get-dream.d.ts +26 -26
- package/dist/actions/get-dream.d.ts.map +1 -1
- package/dist/actions/get-dream.js.map +1 -1
- package/dist/actions/get-vault-access-settings.d.ts.map +1 -1
- package/dist/actions/get-vault-access-settings.js.map +1 -1
- package/dist/actions/get-workspace-info.d.ts.map +1 -1
- package/dist/actions/get-workspace-info.js.map +1 -1
- package/dist/actions/get-workspace-resource-effective-context.d.ts.map +1 -1
- package/dist/actions/get-workspace-resource-effective-context.js.map +1 -1
- package/dist/actions/grant-vault-secrets-to-app.d.ts.map +1 -1
- package/dist/actions/grant-vault-secrets-to-app.js.map +1 -1
- package/dist/actions/grant-workspace-resources-to-app.d.ts.map +1 -1
- package/dist/actions/grant-workspace-resources-to-app.js.map +1 -1
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +12 -12
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/list-agent-thread-sources.d.ts.map +1 -1
- package/dist/actions/list-agent-thread-sources.js.map +1 -1
- package/dist/actions/list-available-workspace-templates.d.ts.map +1 -1
- package/dist/actions/list-available-workspace-templates.js.map +1 -1
- package/dist/actions/list-connected-agents.d.ts +4 -4
- package/dist/actions/list-connected-agents.d.ts.map +1 -1
- package/dist/actions/list-connected-agents.js +4 -4
- package/dist/actions/list-connected-agents.js.map +1 -1
- package/dist/actions/list-destinations.d.ts.map +1 -1
- package/dist/actions/list-destinations.js.map +1 -1
- package/dist/actions/list-dispatch-approvals.d.ts.map +1 -1
- package/dist/actions/list-dispatch-approvals.js.map +1 -1
- package/dist/actions/list-dispatch-audit.d.ts.map +1 -1
- package/dist/actions/list-dispatch-audit.js.map +1 -1
- package/dist/actions/list-dispatch-overview.d.ts +7 -7
- package/dist/actions/list-dispatch-overview.d.ts.map +1 -1
- package/dist/actions/list-dispatch-overview.js.map +1 -1
- package/dist/actions/list-dispatch-usage-metrics.d.ts.map +1 -1
- package/dist/actions/list-dispatch-usage-metrics.js.map +1 -1
- package/dist/actions/list-dream-candidates.d.ts.map +1 -1
- package/dist/actions/list-dream-candidates.js.map +1 -1
- package/dist/actions/list-dreams.d.ts +14 -14
- package/dist/actions/list-dreams.d.ts.map +1 -1
- package/dist/actions/list-dreams.js.map +1 -1
- package/dist/actions/list-integrations-catalog.d.ts.map +1 -1
- package/dist/actions/list-integrations-catalog.js.map +1 -1
- package/dist/actions/list-linked-identities.d.ts.map +1 -1
- package/dist/actions/list-linked-identities.js.map +1 -1
- package/dist/actions/list-mcp-app-access.d.ts.map +1 -1
- package/dist/actions/list-mcp-app-access.js.map +1 -1
- package/dist/actions/list-staged-datasets.d.ts.map +1 -1
- package/dist/actions/list-staged-datasets.js.map +1 -1
- package/dist/actions/list-vault-audit.d.ts.map +1 -1
- package/dist/actions/list-vault-audit.js.map +1 -1
- package/dist/actions/list-vault-grants.d.ts.map +1 -1
- package/dist/actions/list-vault-grants.js.map +1 -1
- package/dist/actions/list-vault-requests.d.ts +1 -1
- package/dist/actions/list-vault-requests.d.ts.map +1 -1
- package/dist/actions/list-vault-requests.js.map +1 -1
- package/dist/actions/list-vault-secret-options.d.ts.map +1 -1
- package/dist/actions/list-vault-secret-options.js.map +1 -1
- package/dist/actions/list-vault-secrets.d.ts.map +1 -1
- package/dist/actions/list-vault-secrets.js.map +1 -1
- package/dist/actions/list-workspace-apps.d.ts.map +1 -1
- package/dist/actions/list-workspace-apps.js.map +1 -1
- package/dist/actions/list-workspace-resource-grants.d.ts.map +1 -1
- package/dist/actions/list-workspace-resource-grants.js.map +1 -1
- package/dist/actions/list-workspace-resource-options.d.ts +1 -1
- package/dist/actions/list-workspace-resource-options.d.ts.map +1 -1
- package/dist/actions/list-workspace-resource-options.js.map +1 -1
- package/dist/actions/list-workspace-resources-for-app.d.ts.map +1 -1
- package/dist/actions/list-workspace-resources-for-app.js.map +1 -1
- package/dist/actions/list-workspace-resources.d.ts +1 -1
- package/dist/actions/list-workspace-resources.d.ts.map +1 -1
- package/dist/actions/list-workspace-resources.js.map +1 -1
- package/dist/actions/list_apps.d.ts.map +1 -1
- package/dist/actions/list_apps.js.map +1 -1
- package/dist/actions/navigate.d.ts.map +1 -1
- package/dist/actions/navigate.js +1 -1
- package/dist/actions/navigate.js.map +1 -1
- package/dist/actions/open_app.d.ts.map +1 -1
- package/dist/actions/open_app.js.map +1 -1
- package/dist/actions/preview-dream-proposal.d.ts +15 -15
- package/dist/actions/preview-dream-proposal.d.ts.map +1 -1
- package/dist/actions/preview-dream-proposal.js.map +1 -1
- package/dist/actions/preview-workspace-resource-change.d.ts +1 -1
- package/dist/actions/preview-workspace-resource-change.d.ts.map +1 -1
- package/dist/actions/preview-workspace-resource-change.js.map +1 -1
- package/dist/actions/provider-api-catalog.d.ts +4 -4
- package/dist/actions/provider-api-catalog.d.ts.map +1 -1
- package/dist/actions/provider-api-catalog.js.map +1 -1
- package/dist/actions/provider-api-docs.d.ts +3 -3
- package/dist/actions/provider-api-docs.d.ts.map +1 -1
- package/dist/actions/provider-api-docs.js.map +1 -1
- package/dist/actions/provider-api-register.d.ts +14 -14
- package/dist/actions/provider-api-register.d.ts.map +1 -1
- package/dist/actions/provider-api-register.js +1 -1
- package/dist/actions/provider-api-register.js.map +1 -1
- package/dist/actions/provider-api-request.d.ts +1 -1
- package/dist/actions/provider-api-request.d.ts.map +1 -1
- package/dist/actions/provider-api-request.js.map +1 -1
- package/dist/actions/query-staged-dataset.d.ts +2 -2
- package/dist/actions/query-staged-dataset.d.ts.map +1 -1
- package/dist/actions/query-staged-dataset.js.map +1 -1
- package/dist/actions/reject-dispatch-change.d.ts.map +1 -1
- package/dist/actions/reject-dispatch-change.js.map +1 -1
- package/dist/actions/reject-dream-proposal.d.ts +14 -14
- package/dist/actions/reject-dream-proposal.d.ts.map +1 -1
- package/dist/actions/reject-dream-proposal.js.map +1 -1
- package/dist/actions/remove-pending-workspace-app.d.ts.map +1 -1
- package/dist/actions/remove-pending-workspace-app.js.map +1 -1
- package/dist/actions/request-vault-secret.d.ts.map +1 -1
- package/dist/actions/request-vault-secret.js.map +1 -1
- package/dist/actions/restore-starter-workspace-resources.d.ts.map +1 -1
- package/dist/actions/restore-starter-workspace-resources.js.map +1 -1
- package/dist/actions/revoke-vault-grant.d.ts.map +1 -1
- package/dist/actions/revoke-vault-grant.js.map +1 -1
- package/dist/actions/revoke-workspace-resource-grant.d.ts.map +1 -1
- package/dist/actions/revoke-workspace-resource-grant.js.map +1 -1
- package/dist/actions/scaffold-workspace-app.d.ts.map +1 -1
- package/dist/actions/scaffold-workspace-app.js.map +1 -1
- package/dist/actions/search-agent-threads.d.ts +1 -1
- package/dist/actions/search-agent-threads.d.ts.map +1 -1
- package/dist/actions/search-agent-threads.js.map +1 -1
- package/dist/actions/send-code-agent-remote-command.d.ts.map +1 -1
- package/dist/actions/send-code-agent-remote-command.js.map +1 -1
- package/dist/actions/send-platform-message.d.ts +3 -3
- package/dist/actions/send-platform-message.d.ts.map +1 -1
- package/dist/actions/send-platform-message.js +1 -1
- package/dist/actions/send-platform-message.js.map +1 -1
- package/dist/actions/set-app-creation-settings.d.ts.map +1 -1
- package/dist/actions/set-app-creation-settings.js.map +1 -1
- package/dist/actions/set-dispatch-approval-policy.d.ts.map +1 -1
- package/dist/actions/set-dispatch-approval-policy.js.map +1 -1
- package/dist/actions/set-dream-settings.d.ts.map +1 -1
- package/dist/actions/set-dream-settings.js.map +1 -1
- package/dist/actions/set-mcp-app-access.d.ts.map +1 -1
- package/dist/actions/set-mcp-app-access.js +2 -2
- package/dist/actions/set-mcp-app-access.js.map +1 -1
- package/dist/actions/set-vault-access-settings.d.ts.map +1 -1
- package/dist/actions/set-vault-access-settings.js.map +1 -1
- package/dist/actions/start-workspace-app-creation.d.ts +4 -4
- package/dist/actions/start-workspace-app-creation.d.ts.map +1 -1
- package/dist/actions/start-workspace-app-creation.js.map +1 -1
- package/dist/actions/sync-vault-to-app.d.ts +1 -1
- package/dist/actions/sync-vault-to-app.d.ts.map +1 -1
- package/dist/actions/sync-vault-to-app.js.map +1 -1
- package/dist/actions/unarchive-workspace-app.d.ts.map +1 -1
- package/dist/actions/unarchive-workspace-app.js.map +1 -1
- package/dist/actions/update-vault-secret.d.ts.map +1 -1
- package/dist/actions/update-vault-secret.js.map +1 -1
- package/dist/actions/update-workspace-app-metadata.d.ts.map +1 -1
- package/dist/actions/update-workspace-app-metadata.js.map +1 -1
- package/dist/actions/update-workspace-resource.d.ts.map +1 -1
- package/dist/actions/update-workspace-resource.js.map +1 -1
- package/dist/actions/upsert-destination.d.ts +2 -2
- package/dist/actions/upsert-destination.d.ts.map +1 -1
- package/dist/actions/upsert-destination.js.map +1 -1
- package/dist/actions/view-screen.d.ts.map +1 -1
- package/dist/actions/view-screen.js +3 -3
- package/dist/actions/view-screen.js.map +1 -1
- package/dist/components/agents-panel.d.ts +1 -1
- package/dist/components/agents-panel.d.ts.map +1 -1
- package/dist/components/agents-panel.js +3 -3
- package/dist/components/agents-panel.js.map +1 -1
- package/dist/components/app-keys-popover.d.ts +1 -1
- package/dist/components/app-keys-popover.d.ts.map +1 -1
- package/dist/components/app-keys-popover.js +2 -2
- package/dist/components/app-keys-popover.js.map +1 -1
- package/dist/components/approval-value-block.d.ts +1 -1
- package/dist/components/approval-value-block.d.ts.map +1 -1
- package/dist/components/create-app-popover.d.ts +2 -2
- package/dist/components/create-app-popover.d.ts.map +1 -1
- package/dist/components/create-app-popover.js +3 -3
- package/dist/components/create-app-popover.js.map +1 -1
- package/dist/components/dispatch-control-plane.d.ts +1 -1
- package/dist/components/dispatch-control-plane.d.ts.map +1 -1
- package/dist/components/dispatch-control-plane.js +6 -6
- package/dist/components/dispatch-control-plane.js.map +1 -1
- package/dist/components/dispatch-shell.d.ts +1 -1
- package/dist/components/dispatch-shell.d.ts.map +1 -1
- package/dist/components/dispatch-shell.js +2 -2
- package/dist/components/dispatch-shell.js.map +1 -1
- package/dist/components/layout/Header.d.ts +1 -1
- package/dist/components/layout/Header.d.ts.map +1 -1
- package/dist/components/layout/Header.js +3 -3
- package/dist/components/layout/Header.js.map +1 -1
- package/dist/components/layout/Layout.d.ts +2 -2
- package/dist/components/layout/Layout.d.ts.map +1 -1
- package/dist/components/layout/Layout.js +4 -4
- package/dist/components/layout/Layout.js.map +1 -1
- package/dist/components/messaging-setup-panel.d.ts +1 -1
- package/dist/components/messaging-setup-panel.d.ts.map +1 -1
- package/dist/components/messaging-setup-panel.js +3 -3
- package/dist/components/messaging-setup-panel.js.map +1 -1
- package/dist/components/ui/accordion.d.ts +2 -2
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +9 -9
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +2 -2
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +1 -1
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +3 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +1 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +3 -3
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts +12 -12
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +3 -3
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +13 -13
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +5 -5
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +9 -9
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +19 -19
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +5 -5
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form.d.ts +7 -5
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +2 -2
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +7 -7
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +2 -2
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +5 -5
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +2 -2
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +2 -2
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +20 -20
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +2 -2
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +10 -10
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +4 -4
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +4 -4
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/spinner.d.ts +1 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/toast.d.ts +2 -2
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +2 -2
- package/dist/components/ui/toast.js.map +1 -1
- package/dist/components/ui/toaster.d.ts +1 -1
- package/dist/components/ui/toaster.d.ts.map +1 -1
- package/dist/components/ui/toaster.js +1 -1
- package/dist/components/ui/toaster.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +6 -6
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +5 -5
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/workspace-app-card.d.ts +1 -1
- package/dist/components/workspace-app-card.d.ts.map +1 -1
- package/dist/components/workspace-app-card.js +2 -2
- package/dist/components/workspace-app-card.js.map +1 -1
- package/dist/components/workspace-resource-effective-stack.d.ts +2 -2
- package/dist/components/workspace-resource-effective-stack.d.ts.map +1 -1
- package/dist/components/workspace-resource-effective-stack.js +1 -1
- package/dist/components/workspace-resource-effective-stack.js.map +1 -1
- package/dist/components/workspace-resource-impact-preview.d.ts +1 -1
- package/dist/components/workspace-resource-impact-preview.d.ts.map +1 -1
- package/dist/components/workspace-resource-impact-preview.js.map +1 -1
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js.map +1 -1
- package/dist/db/schema.d.ts +13 -13
- package/dist/hooks/use-navigation-state.d.ts.map +1 -1
- package/dist/hooks/use-navigation-state.js +3 -3
- package/dist/hooks/use-navigation-state.js.map +1 -1
- package/dist/hooks/use-toast.d.ts +1 -1
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js.map +1 -1
- package/dist/lib/catch-all-target.js.map +1 -1
- package/dist/lib/thread-link-preview.d.ts +4 -4
- package/dist/routes/pages/$appId.d.ts +1 -1
- package/dist/routes/pages/$appId.d.ts.map +1 -1
- package/dist/routes/pages/$appId.js +3 -3
- package/dist/routes/pages/$appId.js.map +1 -1
- package/dist/routes/pages/_index.d.ts +7 -7
- package/dist/routes/pages/_index.d.ts.map +1 -1
- package/dist/routes/pages/_index.js +6 -7
- package/dist/routes/pages/_index.js.map +1 -1
- package/dist/routes/pages/agents.d.ts +1 -1
- package/dist/routes/pages/agents.d.ts.map +1 -1
- package/dist/routes/pages/agents.js +3 -3
- package/dist/routes/pages/agents.js.map +1 -1
- package/dist/routes/pages/approval.d.ts +1 -1
- package/dist/routes/pages/approval.d.ts.map +1 -1
- package/dist/routes/pages/approval.js +3 -3
- package/dist/routes/pages/approval.js.map +1 -1
- package/dist/routes/pages/approvals.d.ts +1 -1
- package/dist/routes/pages/approvals.d.ts.map +1 -1
- package/dist/routes/pages/approvals.js +1 -1
- package/dist/routes/pages/approvals.js.map +1 -1
- package/dist/routes/pages/apps.$appId.d.ts +1 -1
- package/dist/routes/pages/apps.$appId.d.ts.map +1 -1
- package/dist/routes/pages/apps.$appId.js +2 -2
- package/dist/routes/pages/apps.$appId.js.map +1 -1
- package/dist/routes/pages/apps.d.ts +1 -1
- package/dist/routes/pages/apps.d.ts.map +1 -1
- package/dist/routes/pages/apps.js +3 -3
- package/dist/routes/pages/apps.js.map +1 -1
- package/dist/routes/pages/audit.d.ts +1 -1
- package/dist/routes/pages/audit.d.ts.map +1 -1
- package/dist/routes/pages/audit.js.map +1 -1
- package/dist/routes/pages/chat.d.ts +1 -1
- package/dist/routes/pages/chat.d.ts.map +1 -1
- package/dist/routes/pages/chat.js +1 -1
- package/dist/routes/pages/chat.js.map +1 -1
- package/dist/routes/pages/destinations.d.ts +1 -1
- package/dist/routes/pages/destinations.d.ts.map +1 -1
- package/dist/routes/pages/destinations.js +3 -3
- package/dist/routes/pages/destinations.js.map +1 -1
- package/dist/routes/pages/dreams.d.ts +1 -1
- package/dist/routes/pages/dreams.d.ts.map +1 -1
- package/dist/routes/pages/dreams.js +4 -3
- package/dist/routes/pages/dreams.js.map +1 -1
- package/dist/routes/pages/extensions.$id.d.ts +1 -1
- package/dist/routes/pages/extensions.$id.d.ts.map +1 -1
- package/dist/routes/pages/extensions._index.d.ts +1 -1
- package/dist/routes/pages/extensions._index.d.ts.map +1 -1
- package/dist/routes/pages/identities.d.ts +1 -1
- package/dist/routes/pages/identities.d.ts.map +1 -1
- package/dist/routes/pages/identities.js.map +1 -1
- package/dist/routes/pages/integrations.d.ts +1 -1
- package/dist/routes/pages/integrations.d.ts.map +1 -1
- package/dist/routes/pages/integrations.js +3 -3
- package/dist/routes/pages/integrations.js.map +1 -1
- package/dist/routes/pages/messaging.d.ts +1 -1
- package/dist/routes/pages/messaging.d.ts.map +1 -1
- package/dist/routes/pages/messaging.js +1 -1
- package/dist/routes/pages/messaging.js.map +1 -1
- package/dist/routes/pages/metrics.d.ts +1 -1
- package/dist/routes/pages/metrics.d.ts.map +1 -1
- package/dist/routes/pages/metrics.js +2 -2
- package/dist/routes/pages/metrics.js.map +1 -1
- package/dist/routes/pages/new-app.d.ts +1 -1
- package/dist/routes/pages/new-app.d.ts.map +1 -1
- package/dist/routes/pages/new-app.js.map +1 -1
- package/dist/routes/pages/overview.d.ts +7 -7
- package/dist/routes/pages/overview.d.ts.map +1 -1
- package/dist/routes/pages/settings.d.ts +1 -1
- package/dist/routes/pages/settings.d.ts.map +1 -1
- package/dist/routes/pages/settings.js +1 -1
- package/dist/routes/pages/settings.js.map +1 -1
- package/dist/routes/pages/team.d.ts +1 -1
- package/dist/routes/pages/team.d.ts.map +1 -1
- package/dist/routes/pages/team.js.map +1 -1
- package/dist/routes/pages/thread-debug.d.ts +1 -1
- package/dist/routes/pages/thread-debug.d.ts.map +1 -1
- package/dist/routes/pages/thread-debug.js +4 -3
- package/dist/routes/pages/thread-debug.js.map +1 -1
- package/dist/routes/pages/tools.$id.d.ts +1 -1
- package/dist/routes/pages/tools.$id.d.ts.map +1 -1
- package/dist/routes/pages/tools._index.d.ts +1 -1
- package/dist/routes/pages/tools._index.d.ts.map +1 -1
- package/dist/routes/pages/vault.d.ts +1 -1
- package/dist/routes/pages/vault.d.ts.map +1 -1
- package/dist/routes/pages/vault.js +5 -5
- package/dist/routes/pages/vault.js.map +1 -1
- package/dist/routes/pages/workspace.d.ts +1 -1
- package/dist/routes/pages/workspace.d.ts.map +1 -1
- package/dist/routes/pages/workspace.js +5 -5
- package/dist/routes/pages/workspace.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/lib/app-creation-store.d.ts +4 -4
- package/dist/server/lib/app-creation-store.d.ts.map +1 -1
- package/dist/server/lib/app-creation-store.js +3 -3
- package/dist/server/lib/app-creation-store.js.map +1 -1
- package/dist/server/lib/dispatch-integrations.d.ts.map +1 -1
- package/dist/server/lib/dispatch-integrations.js +2 -2
- package/dist/server/lib/dispatch-integrations.js.map +1 -1
- package/dist/server/lib/dispatch-store.d.ts.map +1 -1
- package/dist/server/lib/dispatch-store.js +2 -2
- package/dist/server/lib/dispatch-store.js.map +1 -1
- package/dist/server/lib/dreams-store.d.ts +122 -122
- package/dist/server/lib/dreams-store.d.ts.map +1 -1
- package/dist/server/lib/dreams-store.js +1 -1
- package/dist/server/lib/dreams-store.js.map +1 -1
- package/dist/server/lib/mcp-access-store.js +1 -1
- package/dist/server/lib/mcp-access-store.js.map +1 -1
- package/dist/server/lib/mcp-gateway.d.ts.map +1 -1
- package/dist/server/lib/mcp-gateway.js +1 -1
- package/dist/server/lib/mcp-gateway.js.map +1 -1
- package/dist/server/lib/onboarding-steps.d.ts.map +1 -1
- package/dist/server/lib/onboarding-steps.js.map +1 -1
- package/dist/server/lib/provider-api.d.ts +2 -2
- package/dist/server/lib/thread-debug-store.d.ts +2 -2
- package/dist/server/lib/thread-debug-store.d.ts.map +1 -1
- package/dist/server/lib/thread-debug-store.js.map +1 -1
- package/dist/server/lib/thread-link-preview.d.ts.map +1 -1
- package/dist/server/lib/thread-link-preview.js.map +1 -1
- package/dist/server/lib/usage-metrics-store.d.ts.map +1 -1
- package/dist/server/lib/usage-metrics-store.js +3 -3
- package/dist/server/lib/usage-metrics-store.js.map +1 -1
- package/dist/server/lib/vault-store.d.ts +2 -2
- package/dist/server/lib/vault-store.d.ts.map +1 -1
- package/dist/server/lib/vault-store.js +2 -2
- package/dist/server/lib/vault-store.js.map +1 -1
- package/dist/server/lib/workspace-resources-store.d.ts.map +1 -1
- package/dist/server/lib/workspace-resources-store.js +2 -2
- package/dist/server/lib/workspace-resources-store.js.map +1 -1
- package/dist/server/plugins/agent-chat.d.ts.map +1 -1
- package/dist/server/plugins/agent-chat.js +1 -1
- package/dist/server/plugins/agent-chat.js.map +1 -1
- package/dist/server/plugins/auth.d.ts.map +1 -1
- package/dist/server/plugins/auth.js.map +1 -1
- package/dist/server/plugins/core-routes.d.ts.map +1 -1
- package/dist/server/plugins/core-routes.js.map +1 -1
- package/dist/server/plugins/db.d.ts.map +1 -1
- package/dist/server/plugins/db.js.map +1 -1
- package/dist/server/plugins/integrations.d.ts.map +1 -1
- package/dist/server/plugins/integrations.js +2 -2
- package/dist/server/plugins/integrations.js.map +1 -1
- package/package.json +29 -29
- package/src/actions/apply-dream-proposal.ts +1 -0
- package/src/actions/approve-dispatch-change.ts +1 -0
- package/src/actions/approve-vault-request.ts +1 -0
- package/src/actions/archive-workspace-app.ts +1 -0
- package/src/actions/ask_app.ts +1 -0
- package/src/actions/create-dream-report.ts +1 -0
- package/src/actions/create-link-token.ts +1 -0
- package/src/actions/create-pylon-ticket.ts +1 -0
- package/src/actions/create-vault-grant.ts +1 -0
- package/src/actions/create-vault-secret.ts +1 -0
- package/src/actions/create-workspace-resource-grant.ts +1 -0
- package/src/actions/create-workspace-resource.ts +1 -0
- package/src/actions/create_embed_session.ts +1 -0
- package/src/actions/delete-destination.ts +1 -0
- package/src/actions/delete-staged-dataset.ts +1 -0
- package/src/actions/delete-vault-secret.ts +1 -0
- package/src/actions/delete-workspace-resource.ts +1 -0
- package/src/actions/deny-vault-request.ts +1 -0
- package/src/actions/ensure-dream-job.ts +1 -0
- package/src/actions/get-agent-thread-debug.ts +1 -0
- package/src/actions/get-app-creation-settings.ts +1 -0
- package/src/actions/get-dispatch-settings.ts +1 -0
- package/src/actions/get-dream-settings.ts +1 -0
- package/src/actions/get-dream.ts +1 -0
- package/src/actions/get-vault-access-settings.ts +1 -0
- package/src/actions/get-workspace-info.ts +1 -0
- package/src/actions/get-workspace-resource-effective-context.ts +1 -0
- package/src/actions/grant-vault-secrets-to-app.ts +1 -0
- package/src/actions/grant-workspace-resources-to-app.ts +1 -0
- package/src/actions/index.ts +13 -12
- package/src/actions/list-agent-thread-sources.ts +1 -0
- package/src/actions/list-available-workspace-templates.ts +1 -0
- package/src/actions/list-connected-agents.ts +9 -9
- package/src/actions/list-destinations.ts +1 -0
- package/src/actions/list-dispatch-approvals.ts +1 -0
- package/src/actions/list-dispatch-audit.ts +1 -0
- package/src/actions/list-dispatch-overview.ts +1 -0
- package/src/actions/list-dispatch-usage-metrics.ts +1 -0
- package/src/actions/list-dream-candidates.ts +1 -0
- package/src/actions/list-dreams.ts +1 -0
- package/src/actions/list-integrations-catalog.ts +1 -0
- package/src/actions/list-linked-identities.ts +1 -0
- package/src/actions/list-mcp-app-access.ts +1 -0
- package/src/actions/list-staged-datasets.ts +1 -0
- package/src/actions/list-vault-audit.ts +1 -0
- package/src/actions/list-vault-grants.ts +1 -0
- package/src/actions/list-vault-requests.ts +1 -0
- package/src/actions/list-vault-secret-options.ts +1 -0
- package/src/actions/list-vault-secrets.ts +1 -0
- package/src/actions/list-workspace-apps.ts +1 -0
- package/src/actions/list-workspace-resource-grants.ts +1 -0
- package/src/actions/list-workspace-resource-options.ts +1 -0
- package/src/actions/list-workspace-resources-for-app.ts +1 -0
- package/src/actions/list-workspace-resources.ts +1 -0
- package/src/actions/list_apps.ts +1 -0
- package/src/actions/navigate.ts +1 -1
- package/src/actions/open_app.ts +1 -0
- package/src/actions/preview-dream-proposal.ts +1 -0
- package/src/actions/preview-workspace-resource-change.ts +1 -0
- package/src/actions/provider-api-catalog.ts +1 -0
- package/src/actions/provider-api-docs.ts +1 -0
- package/src/actions/provider-api-register.ts +1 -1
- package/src/actions/provider-api-request.ts +1 -0
- package/src/actions/query-staged-dataset.ts +1 -0
- package/src/actions/reject-dispatch-change.ts +1 -0
- package/src/actions/reject-dream-proposal.ts +1 -0
- package/src/actions/remove-pending-workspace-app.ts +1 -0
- package/src/actions/request-vault-secret.ts +1 -0
- package/src/actions/restore-starter-workspace-resources.ts +1 -0
- package/src/actions/revoke-vault-grant.ts +1 -0
- package/src/actions/revoke-workspace-resource-grant.ts +1 -0
- package/src/actions/scaffold-workspace-app.ts +1 -0
- package/src/actions/search-agent-threads.ts +1 -0
- package/src/actions/send-code-agent-remote-command.ts +1 -0
- package/src/actions/send-platform-message.ts +2 -1
- package/src/actions/set-app-creation-settings.ts +1 -0
- package/src/actions/set-dispatch-approval-policy.ts +1 -0
- package/src/actions/set-dream-settings.ts +1 -0
- package/src/actions/set-mcp-app-access.ts +3 -2
- package/src/actions/set-vault-access-settings.ts +1 -0
- package/src/actions/start-workspace-app-creation.ts +1 -0
- package/src/actions/sync-vault-to-app.ts +1 -0
- package/src/actions/unarchive-workspace-app.ts +1 -0
- package/src/actions/update-vault-secret.ts +1 -0
- package/src/actions/update-workspace-app-metadata.ts +1 -0
- package/src/actions/update-workspace-resource.ts +1 -0
- package/src/actions/upsert-destination.ts +1 -0
- package/src/actions/view-screen.ts +8 -7
- package/src/components/agents-panel.tsx +5 -4
- package/src/components/app-keys-popover.tsx +3 -2
- package/src/components/approval-value-block.spec.tsx +1 -0
- package/src/components/create-app-popover.tsx +3 -2
- package/src/components/dispatch-control-plane.tsx +7 -6
- package/src/components/dispatch-shell.tsx +4 -3
- package/src/components/layout/Header.tsx +5 -3
- package/src/components/layout/Layout.tsx +13 -11
- package/src/components/messaging-setup-panel.tsx +4 -3
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/avatar.tsx +1 -1
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/calendar.tsx +2 -2
- package/src/components/ui/carousel.tsx +3 -3
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/command.tsx +3 -3
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/form.tsx +2 -2
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-otp.tsx +2 -2
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +2 -2
- package/src/components/ui/pagination.tsx +2 -2
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +4 -4
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/toast.tsx +2 -2
- package/src/components/ui/toaster.tsx +1 -1
- package/src/components/ui/toggle-group.tsx +2 -2
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/workspace-app-card.tsx +3 -2
- package/src/components/workspace-resource-effective-stack.spec.tsx +1 -0
- package/src/components/workspace-resource-effective-stack.tsx +1 -0
- package/src/components/workspace-resource-impact-preview.spec.tsx +1 -0
- package/src/components/workspace-resource-impact-preview.tsx +2 -0
- package/src/db/index.ts +1 -0
- package/src/db/migrations.spec.ts +1 -0
- package/src/hooks/use-navigation-state.spec.ts +1 -0
- package/src/hooks/use-navigation-state.ts +4 -3
- package/src/lib/catch-all-target.spec.ts +1 -0
- package/src/routes/pages/$appId.tsx +8 -7
- package/src/routes/pages/_index.tsx +7 -7
- package/src/routes/pages/agents.tsx +4 -3
- package/src/routes/pages/approval.tsx +10 -9
- package/src/routes/pages/approvals.tsx +2 -1
- package/src/routes/pages/apps.$appId.tsx +3 -2
- package/src/routes/pages/apps.tsx +3 -2
- package/src/routes/pages/audit.tsx +1 -0
- package/src/routes/pages/chat.tsx +7 -6
- package/src/routes/pages/destinations.tsx +12 -11
- package/src/routes/pages/dream-settings.spec.ts +1 -0
- package/src/routes/pages/dreams.tsx +13 -8
- package/src/routes/pages/identities.tsx +1 -0
- package/src/routes/pages/integrations.tsx +4 -3
- package/src/routes/pages/messaging.tsx +1 -1
- package/src/routes/pages/metrics.tsx +2 -1
- package/src/routes/pages/new-app.tsx +1 -0
- package/src/routes/pages/settings.tsx +2 -1
- package/src/routes/pages/team.tsx +1 -0
- package/src/routes/pages/thread-debug.tsx +6 -4
- package/src/routes/pages/vault.tsx +16 -15
- package/src/routes/pages/workspace.tsx +8 -7
- package/src/server/index.ts +2 -1
- package/src/server/lib/app-creation-store.spec.ts +2 -1
- package/src/server/lib/app-creation-store.ts +6 -4
- package/src/server/lib/dispatch-integrations.spec.ts +2 -1
- package/src/server/lib/dispatch-integrations.ts +5 -3
- package/src/server/lib/dispatch-remote-commands.spec.ts +2 -1
- package/src/server/lib/dispatch-store.ts +4 -2
- package/src/server/lib/dreams-store.ts +10 -1
- package/src/server/lib/mcp-access-store.spec.ts +1 -0
- package/src/server/lib/mcp-access-store.ts +4 -4
- package/src/server/lib/mcp-gateway.spec.ts +2 -1
- package/src/server/lib/mcp-gateway.ts +2 -1
- package/src/server/lib/onboarding-steps.ts +1 -0
- package/src/server/lib/thread-debug-store.ts +1 -0
- package/src/server/lib/thread-link-preview.spec.ts +2 -2
- package/src/server/lib/thread-link-preview.ts +1 -0
- package/src/server/lib/usage-metrics-store.ts +8 -7
- package/src/server/lib/vault-store.ts +4 -2
- package/src/server/lib/workspace-resource-approval-lifecycle.spec.ts +1 -0
- package/src/server/lib/workspace-resources-store.ts +4 -2
- package/src/server/plugins/agent-chat.ts +2 -1
- package/src/server/plugins/auth.ts +1 -0
- package/src/server/plugins/core-routes.ts +1 -0
- package/src/server/plugins/db.ts +1 -0
- package/src/server/plugins/integrations.ts +3 -2
- package/src/styles/dispatch-css.spec.ts +1 -0
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { useEffect, useMemo, useState } from "react";
|
|
2
|
-
import { useSearchParams } from "react-router";
|
|
3
1
|
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
4
|
-
import { toast } from "sonner";
|
|
5
2
|
import {
|
|
6
3
|
IconAlertTriangle,
|
|
7
4
|
IconBrain,
|
|
@@ -16,6 +13,10 @@ import {
|
|
|
16
13
|
IconSettings,
|
|
17
14
|
IconX,
|
|
18
15
|
} from "@tabler/icons-react";
|
|
16
|
+
import { useEffect, useMemo, useState } from "react";
|
|
17
|
+
import { useSearchParams } from "react-router";
|
|
18
|
+
import { toast } from "sonner";
|
|
19
|
+
|
|
19
20
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
20
21
|
import {
|
|
21
22
|
Accordion,
|
|
@@ -53,6 +54,7 @@ import {
|
|
|
53
54
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
54
55
|
import { Textarea } from "@/components/ui/textarea";
|
|
55
56
|
import { cn } from "@/lib/utils";
|
|
57
|
+
|
|
56
58
|
import {
|
|
57
59
|
dreamSettingsToDraft,
|
|
58
60
|
dreamSettingsUpdateFromDraft,
|
|
@@ -1321,9 +1323,12 @@ export default function DreamsRoute() {
|
|
|
1321
1323
|
const dreamSettings = dreamSettingsQuery.data ?? null;
|
|
1322
1324
|
const selectedDream =
|
|
1323
1325
|
detail?.dream ?? dreams.find((dream) => dream.id === selectedDreamId);
|
|
1324
|
-
const proposals = detail?.proposals ?? [];
|
|
1325
|
-
const inspectedRuns
|
|
1326
|
-
|
|
1326
|
+
const proposals: DreamProposal[] = detail?.proposals ?? [];
|
|
1327
|
+
const inspectedRuns: CandidateRun[] =
|
|
1328
|
+
detail?.inspectedRuns ?? detail?.candidates ?? [];
|
|
1329
|
+
const evidenceItems: DreamEvidence[] = detail?.evidence ?? [];
|
|
1330
|
+
const selectedSourceHealth: DreamSourceHealth[] =
|
|
1331
|
+
selectedDream?.sourceHealth ?? [];
|
|
1327
1332
|
const pendingProposalCount = proposals.filter(
|
|
1328
1333
|
(proposal) =>
|
|
1329
1334
|
String(proposal.status || "pending").toLowerCase() === "pending",
|
|
@@ -1668,7 +1673,7 @@ export default function DreamsRoute() {
|
|
|
1668
1673
|
<SourceHealthPanel sources={selectedSourceHealth} />
|
|
1669
1674
|
</div>
|
|
1670
1675
|
) : null}
|
|
1671
|
-
{inspectedRuns.length > 0 ||
|
|
1676
|
+
{inspectedRuns.length > 0 || evidenceItems.length ? (
|
|
1672
1677
|
<Accordion type="multiple" className="rounded-lg border">
|
|
1673
1678
|
{inspectedRuns.map((run, index) => (
|
|
1674
1679
|
<AccordionItem
|
|
@@ -1710,7 +1715,7 @@ export default function DreamsRoute() {
|
|
|
1710
1715
|
</AccordionContent>
|
|
1711
1716
|
</AccordionItem>
|
|
1712
1717
|
))}
|
|
1713
|
-
{
|
|
1718
|
+
{evidenceItems.map((item, index) => (
|
|
1714
1719
|
<AccordionItem
|
|
1715
1720
|
key={item.id || `evidence-${index}`}
|
|
1716
1721
|
value={item.id || `evidence-${index}`}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { useMemo, useState } from "react";
|
|
2
1
|
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
3
|
-
import { useQueryClient } from "@tanstack/react-query";
|
|
4
|
-
import { toast } from "sonner";
|
|
5
2
|
import {
|
|
6
3
|
IconCheck,
|
|
7
4
|
IconChevronRight,
|
|
@@ -10,6 +7,10 @@ import {
|
|
|
10
7
|
IconLink,
|
|
11
8
|
IconPlugConnected,
|
|
12
9
|
} from "@tabler/icons-react";
|
|
10
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
11
|
+
import { useMemo, useState } from "react";
|
|
12
|
+
import { toast } from "sonner";
|
|
13
|
+
|
|
13
14
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
14
15
|
import { Badge } from "@/components/ui/badge";
|
|
15
16
|
import { Button } from "@/components/ui/button";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MessagingSetupPanel } from "@/components/messaging-setup-panel";
|
|
2
1
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
2
|
+
import { MessagingSetupPanel } from "@/components/messaging-setup-panel";
|
|
3
3
|
|
|
4
4
|
export function meta() {
|
|
5
5
|
return [{ title: "Messaging — Dispatch" }];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useMemo, useState, type ReactNode } from "react";
|
|
2
1
|
import { useActionQuery, useT } from "@agent-native/core/client";
|
|
3
2
|
import {
|
|
4
3
|
IconActivity,
|
|
@@ -10,6 +9,8 @@ import {
|
|
|
10
9
|
IconMessages,
|
|
11
10
|
IconUsersGroup,
|
|
12
11
|
} from "@tabler/icons-react";
|
|
12
|
+
import { useMemo, useState, type ReactNode } from "react";
|
|
13
|
+
|
|
13
14
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
14
15
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
15
16
|
import { Badge } from "@/components/ui/badge";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Link } from "react-router";
|
|
2
1
|
import {
|
|
3
2
|
LanguagePicker,
|
|
4
3
|
openAgentSettings,
|
|
5
4
|
useT,
|
|
6
5
|
} from "@agent-native/core/client";
|
|
6
|
+
import { Link } from "react-router";
|
|
7
|
+
|
|
7
8
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
8
9
|
import { Button } from "@/components/ui/button";
|
|
9
10
|
import {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useEffect, useMemo, useState } from "react";
|
|
2
1
|
import { agentNativePath, useActionQuery } from "@agent-native/core/client";
|
|
3
2
|
import {
|
|
4
3
|
IconDatabase,
|
|
@@ -6,6 +5,8 @@ import {
|
|
|
6
5
|
IconRefresh,
|
|
7
6
|
IconSearch,
|
|
8
7
|
} from "@tabler/icons-react";
|
|
8
|
+
import { useEffect, useMemo, useState } from "react";
|
|
9
|
+
|
|
9
10
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
10
11
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
11
12
|
import { Badge } from "@/components/ui/badge";
|
|
@@ -436,7 +437,7 @@ export default function ThreadDebugRoute() {
|
|
|
436
437
|
sources: ThreadDebugSource[];
|
|
437
438
|
}>("list-agent-thread-sources", {});
|
|
438
439
|
|
|
439
|
-
const sources = sourcesData?.sources ?? [];
|
|
440
|
+
const sources: ThreadDebugSource[] = sourcesData?.sources ?? [];
|
|
440
441
|
const searchParams = useMemo(
|
|
441
442
|
() => ({
|
|
442
443
|
sourceId: submittedSearch.sourceId,
|
|
@@ -457,6 +458,7 @@ export default function ThreadDebugRoute() {
|
|
|
457
458
|
access: { scope: string; canInspectAll: boolean };
|
|
458
459
|
source: { id: string; label: string };
|
|
459
460
|
}>("search-agent-threads", searchParams);
|
|
461
|
+
const searchThreads: ThreadSearchResult[] = searchData?.threads ?? [];
|
|
460
462
|
|
|
461
463
|
const detailParams = useMemo(
|
|
462
464
|
() => ({
|
|
@@ -629,13 +631,13 @@ export default function ThreadDebugRoute() {
|
|
|
629
631
|
<Skeleton className="h-28 w-full rounded-lg" />
|
|
630
632
|
</>
|
|
631
633
|
) : null}
|
|
632
|
-
{!searchLoading &&
|
|
634
|
+
{!searchLoading && searchThreads.length === 0 ? (
|
|
633
635
|
<div className="flex min-h-64 flex-col items-center justify-center rounded-lg border border-dashed px-4 text-center text-sm text-muted-foreground">
|
|
634
636
|
<IconDatabase className="mb-2 h-5 w-5" />
|
|
635
637
|
No threads found.
|
|
636
638
|
</div>
|
|
637
639
|
) : null}
|
|
638
|
-
{
|
|
640
|
+
{searchThreads.map((result) => (
|
|
639
641
|
<ResultCard
|
|
640
642
|
key={result.id}
|
|
641
643
|
result={result}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
1
|
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
3
|
-
import { toast } from "sonner";
|
|
4
2
|
import {
|
|
5
3
|
IconChevronDown,
|
|
6
4
|
IconChevronRight,
|
|
@@ -13,18 +11,10 @@ import {
|
|
|
13
11
|
IconTrash,
|
|
14
12
|
IconX,
|
|
15
13
|
} from "@tabler/icons-react";
|
|
14
|
+
import { useState } from "react";
|
|
15
|
+
import { toast } from "sonner";
|
|
16
|
+
|
|
16
17
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
17
|
-
import { Badge } from "@/components/ui/badge";
|
|
18
|
-
import { Button } from "@/components/ui/button";
|
|
19
|
-
import {
|
|
20
|
-
Dialog,
|
|
21
|
-
DialogContent,
|
|
22
|
-
DialogDescription,
|
|
23
|
-
DialogFooter,
|
|
24
|
-
DialogHeader,
|
|
25
|
-
DialogTitle,
|
|
26
|
-
DialogTrigger,
|
|
27
|
-
} from "@/components/ui/dialog";
|
|
28
18
|
import {
|
|
29
19
|
AlertDialog,
|
|
30
20
|
AlertDialogAction,
|
|
@@ -36,9 +26,19 @@ import {
|
|
|
36
26
|
AlertDialogTitle,
|
|
37
27
|
AlertDialogTrigger,
|
|
38
28
|
} from "@/components/ui/alert-dialog";
|
|
29
|
+
import { Badge } from "@/components/ui/badge";
|
|
30
|
+
import { Button } from "@/components/ui/button";
|
|
31
|
+
import {
|
|
32
|
+
Dialog,
|
|
33
|
+
DialogContent,
|
|
34
|
+
DialogDescription,
|
|
35
|
+
DialogFooter,
|
|
36
|
+
DialogHeader,
|
|
37
|
+
DialogTitle,
|
|
38
|
+
DialogTrigger,
|
|
39
|
+
} from "@/components/ui/dialog";
|
|
39
40
|
import { Input } from "@/components/ui/input";
|
|
40
41
|
import { Label } from "@/components/ui/label";
|
|
41
|
-
import { Switch } from "@/components/ui/switch";
|
|
42
42
|
import {
|
|
43
43
|
Select,
|
|
44
44
|
SelectContent,
|
|
@@ -46,9 +46,10 @@ import {
|
|
|
46
46
|
SelectTrigger,
|
|
47
47
|
SelectValue,
|
|
48
48
|
} from "@/components/ui/select";
|
|
49
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
50
|
+
import { Switch } from "@/components/ui/switch";
|
|
49
51
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
50
52
|
import { Textarea } from "@/components/ui/textarea";
|
|
51
|
-
import { Skeleton } from "@/components/ui/skeleton";
|
|
52
53
|
|
|
53
54
|
const PROVIDERS = [
|
|
54
55
|
"google",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { useEffect, useState, type ReactNode } from "react";
|
|
2
1
|
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
3
|
-
import { toast } from "sonner";
|
|
4
2
|
import {
|
|
5
3
|
IconAlertCircle,
|
|
6
4
|
IconBook,
|
|
@@ -16,11 +14,10 @@ import {
|
|
|
16
14
|
IconUser,
|
|
17
15
|
IconX,
|
|
18
16
|
} from "@tabler/icons-react";
|
|
17
|
+
import { useEffect, useState, type ReactNode } from "react";
|
|
18
|
+
import { toast } from "sonner";
|
|
19
|
+
|
|
19
20
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
20
|
-
import {
|
|
21
|
-
ImpactPreview,
|
|
22
|
-
workspaceResourceMutationMessage,
|
|
23
|
-
} from "@/components/workspace-resource-impact-preview";
|
|
24
21
|
import {
|
|
25
22
|
AlertDialog,
|
|
26
23
|
AlertDialogAction,
|
|
@@ -52,9 +49,13 @@ import {
|
|
|
52
49
|
SelectTrigger,
|
|
53
50
|
SelectValue,
|
|
54
51
|
} from "@/components/ui/select";
|
|
52
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
55
53
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
56
54
|
import { Textarea } from "@/components/ui/textarea";
|
|
57
|
-
import {
|
|
55
|
+
import {
|
|
56
|
+
ImpactPreview,
|
|
57
|
+
workspaceResourceMutationMessage,
|
|
58
|
+
} from "@/components/workspace-resource-impact-preview";
|
|
58
59
|
|
|
59
60
|
export function meta() {
|
|
60
61
|
return [{ title: "Workspace Resources — Dispatch" }];
|
package/src/server/index.ts
CHANGED
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
registerPackageActions,
|
|
3
3
|
type NitroPluginDef,
|
|
4
4
|
} from "@agent-native/core/server";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
import { dispatchActions } from "../actions/index.js";
|
|
7
|
+
import type { DispatchConfig } from "../config.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Register dispatch's package-contributed actions on import. The framework's
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
2
1
|
import { runWithRequestContext } from "@agent-native/core/server";
|
|
2
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
3
|
+
|
|
3
4
|
import {
|
|
4
5
|
generateWorkspaceAppDescription,
|
|
5
6
|
listAvailableWorkspaceTemplates,
|
|
@@ -2,8 +2,8 @@ import { spawn } from "node:child_process";
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
|
|
6
|
-
import {
|
|
5
|
+
|
|
6
|
+
import { getDbExec } from "@agent-native/core/db";
|
|
7
7
|
import {
|
|
8
8
|
getBuilderBranchProjectId,
|
|
9
9
|
getRequestContext,
|
|
@@ -12,14 +12,16 @@ import {
|
|
|
12
12
|
resolveBuilderCredentials,
|
|
13
13
|
runBuilderAgent,
|
|
14
14
|
} from "@agent-native/core/server";
|
|
15
|
-
import {
|
|
15
|
+
import { getSetting, putSetting } from "@agent-native/core/settings";
|
|
16
|
+
import { assertValidWorkspaceAppId } from "@agent-native/core/shared";
|
|
17
|
+
|
|
18
|
+
import { identityKeyForIncoming } from "./dispatch-integrations.js";
|
|
16
19
|
import {
|
|
17
20
|
currentOrgId,
|
|
18
21
|
currentOwnerEmail,
|
|
19
22
|
recordAudit,
|
|
20
23
|
resolveLinkedOwner,
|
|
21
24
|
} from "./dispatch-store.js";
|
|
22
|
-
import { identityKeyForIncoming } from "./dispatch-integrations.js";
|
|
23
25
|
import { createRequest, listSecrets } from "./vault-store.js";
|
|
24
26
|
import {
|
|
25
27
|
grantWorkspaceResourcesToApp,
|
|
@@ -15,11 +15,12 @@ vi.mock("@agent-native/core/org", () => ({
|
|
|
15
15
|
resolveOrgIdForEmail: mocks.resolveOrgIdForEmail,
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
|
+
import type { IncomingMessage } from "@agent-native/core/server";
|
|
19
|
+
|
|
18
20
|
import {
|
|
19
21
|
identityKeyForIncoming,
|
|
20
22
|
resolveDispatchOwner,
|
|
21
23
|
} from "./dispatch-integrations.js";
|
|
22
|
-
import type { IncomingMessage } from "@agent-native/core/server";
|
|
23
24
|
|
|
24
25
|
const originalFetch = globalThis.fetch;
|
|
25
26
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
2
|
+
|
|
3
|
+
import { resolveOrgIdForEmail } from "@agent-native/core/org";
|
|
1
4
|
import type {
|
|
2
5
|
IncomingMessage,
|
|
3
6
|
PlatformAdapter,
|
|
4
7
|
} from "@agent-native/core/server";
|
|
5
|
-
|
|
6
|
-
import crypto from "node:crypto";
|
|
7
|
-
import { consumeLinkToken, resolveLinkedOwner } from "./dispatch-store.js";
|
|
8
|
+
|
|
8
9
|
import { handleRemoteCodeCommand } from "./dispatch-remote-commands.js";
|
|
10
|
+
import { consumeLinkToken, resolveLinkedOwner } from "./dispatch-store.js";
|
|
9
11
|
|
|
10
12
|
type SlackSenderProfile = {
|
|
11
13
|
email: string | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { describe, expect, it, vi } from "vitest";
|
|
2
1
|
import type {
|
|
3
2
|
IncomingMessage,
|
|
4
3
|
PlatformAdapter,
|
|
5
4
|
} from "@agent-native/core/server";
|
|
5
|
+
import { describe, expect, it, vi } from "vitest";
|
|
6
|
+
|
|
6
7
|
import {
|
|
7
8
|
handleRemoteCodeCommand,
|
|
8
9
|
parseTelegramCodeCommand,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
|
|
3
|
+
import { and, desc, eq, isNull, or } from "@agent-native/core/db/schema";
|
|
4
4
|
import {
|
|
5
5
|
getRequestUserEmail,
|
|
6
6
|
getRequestOrgId,
|
|
7
7
|
} from "@agent-native/core/server";
|
|
8
|
+
import { getOrgSetting, putOrgSetting } from "@agent-native/core/settings";
|
|
9
|
+
|
|
8
10
|
import { getDb, schema } from "../../db/index.js";
|
|
9
11
|
|
|
10
12
|
export const SHARED_DISPATCH_OWNER = "dispatch@shared";
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
and,
|
|
5
|
+
desc,
|
|
6
|
+
eq,
|
|
7
|
+
inArray,
|
|
8
|
+
isNull,
|
|
9
|
+
or,
|
|
10
|
+
} from "@agent-native/core/db/schema";
|
|
3
11
|
import {
|
|
4
12
|
resourceGetByPath,
|
|
5
13
|
resourceList,
|
|
@@ -12,6 +20,7 @@ import {
|
|
|
12
20
|
putOrgSetting,
|
|
13
21
|
putUserSetting,
|
|
14
22
|
} from "@agent-native/core/settings";
|
|
23
|
+
|
|
15
24
|
import { getDb, schema } from "../../db/index.js";
|
|
16
25
|
import {
|
|
17
26
|
createApprovalRequest,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getRequestOrgId,
|
|
3
|
+
getRequestUserEmail,
|
|
4
|
+
} from "@agent-native/core/server";
|
|
1
5
|
import {
|
|
2
6
|
getOrgSetting,
|
|
3
7
|
getUserSetting,
|
|
4
8
|
putOrgSetting,
|
|
5
9
|
putUserSetting,
|
|
6
10
|
} from "@agent-native/core/settings";
|
|
7
|
-
import {
|
|
8
|
-
getRequestOrgId,
|
|
9
|
-
getRequestUserEmail,
|
|
10
|
-
} from "@agent-native/core/server";
|
|
11
11
|
|
|
12
12
|
export const MCP_APP_ACCESS_SETTINGS_KEY = "dispatch-mcp-app-access";
|
|
13
13
|
|
|
@@ -70,6 +70,8 @@ vi.mock("@agent-native/core/mcp-client", () => ({
|
|
|
70
70
|
},
|
|
71
71
|
}));
|
|
72
72
|
|
|
73
|
+
import { runWithRequestContext } from "@agent-native/core/server";
|
|
74
|
+
|
|
73
75
|
import {
|
|
74
76
|
createGrantedDispatchMcpEmbedSession,
|
|
75
77
|
listGrantedDispatchMcpApps,
|
|
@@ -77,7 +79,6 @@ import {
|
|
|
77
79
|
openGrantedDispatchMcpApp,
|
|
78
80
|
resolveGrantedDispatchMcpApp,
|
|
79
81
|
} from "./mcp-gateway.js";
|
|
80
|
-
import { runWithRequestContext } from "@agent-native/core/server";
|
|
81
82
|
|
|
82
83
|
const analyticsAgent = {
|
|
83
84
|
id: "analytics",
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
buildMcpToolName,
|
|
4
4
|
McpClientManager,
|
|
5
5
|
} from "@agent-native/core/mcp-client";
|
|
6
|
+
import { getOrgA2ASecret, getOrgDomain } from "@agent-native/core/org";
|
|
6
7
|
import {
|
|
7
8
|
buildDeepLink,
|
|
8
9
|
buildEmbedStartPath,
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
discoverAgents,
|
|
16
17
|
type DiscoveredAgent,
|
|
17
18
|
} from "@agent-native/core/server/agent-discovery";
|
|
18
|
-
|
|
19
|
+
|
|
19
20
|
import {
|
|
20
21
|
getDispatchMcpAppAccessSettings,
|
|
21
22
|
isAppAllowedByMcpAccess,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
1
|
import type { ChatThread } from "@agent-native/core/server";
|
|
2
|
+
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
3
3
|
|
|
4
4
|
const getRequestContextMock = vi.hoisted(() => vi.fn());
|
|
5
5
|
const getThreadMock = vi.hoisted(() => vi.fn());
|
|
@@ -9,8 +9,8 @@ vi.mock("@agent-native/core/server", () => ({
|
|
|
9
9
|
getThread: getThreadMock,
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
|
-
import { loadThreadLinkPreview } from "./thread-link-preview";
|
|
13
12
|
import { extractThreadPreviewImageUrl } from "../../lib/thread-link-preview";
|
|
13
|
+
import { loadThreadLinkPreview } from "./thread-link-preview";
|
|
14
14
|
|
|
15
15
|
function threadDataWithResult(toolName: string, result: unknown) {
|
|
16
16
|
return JSON.stringify({
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getUsageSummary,
|
|
3
|
-
usageBillingForEngine,
|
|
4
|
-
type UsageBillingMode,
|
|
5
|
-
} from "@agent-native/core/usage";
|
|
6
|
-
import { getDbExec } from "@agent-native/core/db";
|
|
7
1
|
import {
|
|
8
2
|
detectEngineFromEnv,
|
|
9
3
|
detectEngineFromUserSecrets,
|
|
@@ -12,12 +6,19 @@ import {
|
|
|
12
6
|
isStoredEngineUsable,
|
|
13
7
|
registerBuiltinEngines,
|
|
14
8
|
} from "@agent-native/core/agent/engine";
|
|
9
|
+
import { getDbExec } from "@agent-native/core/db";
|
|
15
10
|
import { getSetting } from "@agent-native/core/settings";
|
|
16
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
getUsageSummary,
|
|
13
|
+
usageBillingForEngine,
|
|
14
|
+
type UsageBillingMode,
|
|
15
|
+
} from "@agent-native/core/usage";
|
|
16
|
+
|
|
17
17
|
import {
|
|
18
18
|
listWorkspaceApps,
|
|
19
19
|
type WorkspaceAppSummary,
|
|
20
20
|
} from "./app-creation-store.js";
|
|
21
|
+
import { currentOrgId, currentOwnerEmail } from "./dispatch-store.js";
|
|
21
22
|
|
|
22
23
|
const DAY_MS = 86_400_000;
|
|
23
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
|
|
3
|
+
import { and, desc, eq, isNull, or } from "@agent-native/core/db/schema";
|
|
4
4
|
import { ssrfSafeFetch } from "@agent-native/core/extensions/url-safety";
|
|
5
5
|
import {
|
|
6
6
|
deleteAppSecret,
|
|
@@ -8,12 +8,14 @@ import {
|
|
|
8
8
|
writeAppSecret,
|
|
9
9
|
type SecretScope,
|
|
10
10
|
} from "@agent-native/core/secrets";
|
|
11
|
+
import { discoverAgents } from "@agent-native/core/server/agent-discovery";
|
|
11
12
|
import {
|
|
12
13
|
getOrgSetting,
|
|
13
14
|
getUserSetting,
|
|
14
15
|
putOrgSetting,
|
|
15
16
|
putUserSetting,
|
|
16
17
|
} from "@agent-native/core/settings";
|
|
18
|
+
|
|
17
19
|
import { getDb, schema } from "../../db/index.js";
|
|
18
20
|
import {
|
|
19
21
|
currentOwnerEmail,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { getDbExec, isPostgres } from "@agent-native/core/db";
|
|
4
|
+
import { and, desc, eq, isNull, or } from "@agent-native/core/db/schema";
|
|
4
5
|
import {
|
|
5
6
|
resourceDeleteByPath,
|
|
6
7
|
resourceEffectiveContext,
|
|
@@ -14,13 +15,14 @@ import {
|
|
|
14
15
|
type ResourceInheritanceScope,
|
|
15
16
|
type ResourceMeta,
|
|
16
17
|
} from "@agent-native/core/resources/store";
|
|
18
|
+
import { discoverAgents } from "@agent-native/core/server/agent-discovery";
|
|
17
19
|
import {
|
|
18
20
|
getOrgSetting,
|
|
19
21
|
getUserSetting,
|
|
20
22
|
putOrgSetting,
|
|
21
23
|
putUserSetting,
|
|
22
24
|
} from "@agent-native/core/settings";
|
|
23
|
-
|
|
25
|
+
|
|
24
26
|
import { getDb, schema } from "../../db/index.js";
|
|
25
27
|
import {
|
|
26
28
|
createApprovalRequest,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { createAgentChatPlugin } from "@agent-native/core/server";
|
|
2
1
|
import { getOrgContext } from "@agent-native/core/org";
|
|
2
|
+
import { createAgentChatPlugin } from "@agent-native/core/server";
|
|
3
|
+
|
|
3
4
|
import { dispatchActions } from "../../actions/index.js";
|
|
4
5
|
|
|
5
6
|
const INITIAL_TOOL_NAMES = [
|