@agent-native/dispatch 0.0.0-beta-20260819155526
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 +146 -0
- package/dist/actions/apply-dream-proposal.d.ts +29 -0
- package/dist/actions/apply-dream-proposal.d.ts.map +1 -0
- package/dist/actions/apply-dream-proposal.js +11 -0
- package/dist/actions/apply-dream-proposal.js.map +1 -0
- package/dist/actions/approve-dispatch-change.d.ts +22 -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 +20 -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/archive-workspace-app.d.ts +7 -0
- package/dist/actions/archive-workspace-app.d.ts.map +1 -0
- package/dist/actions/archive-workspace-app.js +15 -0
- package/dist/actions/archive-workspace-app.js.map +1 -0
- package/dist/actions/ask_app.d.ts +29 -0
- package/dist/actions/ask_app.d.ts.map +1 -0
- package/dist/actions/ask_app.js +23 -0
- package/dist/actions/ask_app.js.map +1 -0
- package/dist/actions/ask_app_status.d.ts +27 -0
- package/dist/actions/ask_app_status.d.ts.map +1 -0
- package/dist/actions/ask_app_status.js +14 -0
- package/dist/actions/ask_app_status.js.map +1 -0
- package/dist/actions/connect-external-agent.d.ts +18 -0
- package/dist/actions/connect-external-agent.d.ts.map +1 -0
- package/dist/actions/connect-external-agent.js +68 -0
- package/dist/actions/connect-external-agent.js.map +1 -0
- package/dist/actions/create-browser-chat-session.d.ts +15 -0
- package/dist/actions/create-browser-chat-session.d.ts.map +1 -0
- package/dist/actions/create-browser-chat-session.js +75 -0
- package/dist/actions/create-browser-chat-session.js.map +1 -0
- package/dist/actions/create-dream-report.d.ts +59 -0
- package/dist/actions/create-dream-report.d.ts.map +1 -0
- package/dist/actions/create-dream-report.js +67 -0
- package/dist/actions/create-dream-report.js.map +1 -0
- package/dist/actions/create-link-token.d.ts +10 -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-pylon-ticket.d.ts +17 -0
- package/dist/actions/create-pylon-ticket.d.ts.map +1 -0
- package/dist/actions/create-pylon-ticket.js +95 -0
- package/dist/actions/create-pylon-ticket.js.map +1 -0
- package/dist/actions/create-vault-grant.d.ts +17 -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 +21 -0
- package/dist/actions/create-vault-secret.d.ts.map +1 -0
- package/dist/actions/create-vault-secret.js +26 -0
- package/dist/actions/create-vault-secret.js.map +1 -0
- package/dist/actions/create-workspace-resource-grant.d.ts +16 -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 +40 -0
- package/dist/actions/create-workspace-resource.d.ts.map +1 -0
- package/dist/actions/create-workspace-resource.js +29 -0
- package/dist/actions/create-workspace-resource.js.map +1 -0
- package/dist/actions/create_embed_session.d.ts +13 -0
- package/dist/actions/create_embed_session.d.ts.map +1 -0
- package/dist/actions/create_embed_session.js +28 -0
- package/dist/actions/create_embed_session.js.map +1 -0
- package/dist/actions/create_workspace_app_embed_session.d.ts +19 -0
- package/dist/actions/create_workspace_app_embed_session.d.ts.map +1 -0
- package/dist/actions/create_workspace_app_embed_session.js +89 -0
- package/dist/actions/create_workspace_app_embed_session.js.map +1 -0
- package/dist/actions/delete-destination.d.ts +34 -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-staged-dataset.d.ts +10 -0
- package/dist/actions/delete-staged-dataset.d.ts.map +1 -0
- package/dist/actions/delete-staged-dataset.js +8 -0
- package/dist/actions/delete-staged-dataset.js.map +1 -0
- package/dist/actions/delete-vault-secret.d.ts +17 -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 +35 -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 +19 -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/ensure-dream-job.d.ts +33 -0
- package/dist/actions/ensure-dream-job.d.ts.map +1 -0
- package/dist/actions/ensure-dream-job.js +73 -0
- package/dist/actions/ensure-dream-job.js.map +1 -0
- package/dist/actions/get-agent-thread-debug.d.ts +72 -0
- package/dist/actions/get-agent-thread-debug.d.ts.map +1 -0
- package/dist/actions/get-agent-thread-debug.js +37 -0
- package/dist/actions/get-agent-thread-debug.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-dream-settings.d.ts +3 -0
- package/dist/actions/get-dream-settings.d.ts.map +1 -0
- package/dist/actions/get-dream-settings.js +11 -0
- package/dist/actions/get-dream-settings.js.map +1 -0
- package/dist/actions/get-dream.d.ts +48 -0
- package/dist/actions/get-dream.d.ts.map +1 -0
- package/dist/actions/get-dream.js +13 -0
- package/dist/actions/get-dream.js.map +1 -0
- package/dist/actions/get-vault-access-settings.d.ts +3 -0
- package/dist/actions/get-vault-access-settings.d.ts.map +1 -0
- package/dist/actions/get-vault-access-settings.js +10 -0
- package/dist/actions/get-vault-access-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/get-workspace-resource-effective-context.d.ts +8 -0
- package/dist/actions/get-workspace-resource-effective-context.d.ts.map +1 -0
- package/dist/actions/get-workspace-resource-effective-context.js +27 -0
- package/dist/actions/get-workspace-resource-effective-context.js.map +1 -0
- package/dist/actions/grant-vault-secrets-to-app.d.ts +27 -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/grant-workspace-resources-to-app.d.ts +17 -0
- package/dist/actions/grant-workspace-resources-to-app.d.ts.map +1 -0
- package/dist/actions/grant-workspace-resources-to-app.js +15 -0
- package/dist/actions/grant-workspace-resources-to-app.js.map +1 -0
- package/dist/actions/import-agent-pack.d.ts +96 -0
- package/dist/actions/import-agent-pack.d.ts.map +1 -0
- package/dist/actions/import-agent-pack.js +116 -0
- package/dist/actions/import-agent-pack.js.map +1 -0
- package/dist/actions/import-agent.d.ts +60 -0
- package/dist/actions/import-agent.d.ts.map +1 -0
- package/dist/actions/import-agent.js +82 -0
- package/dist/actions/import-agent.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 +207 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/list-agent-pack.d.ts +36 -0
- package/dist/actions/list-agent-pack.d.ts.map +1 -0
- package/dist/actions/list-agent-pack.js +32 -0
- package/dist/actions/list-agent-pack.js.map +1 -0
- package/dist/actions/list-agent-run-failures.d.ts +65 -0
- package/dist/actions/list-agent-run-failures.d.ts.map +1 -0
- package/dist/actions/list-agent-run-failures.js +42 -0
- package/dist/actions/list-agent-run-failures.js.map +1 -0
- package/dist/actions/list-agent-thread-sources.d.ts +9 -0
- package/dist/actions/list-agent-thread-sources.d.ts.map +1 -0
- package/dist/actions/list-agent-thread-sources.js +11 -0
- package/dist/actions/list-agent-thread-sources.js.map +1 -0
- package/dist/actions/list-available-workspace-templates.d.ts +3 -0
- package/dist/actions/list-available-workspace-templates.d.ts.map +1 -0
- package/dist/actions/list-available-workspace-templates.js +10 -0
- package/dist/actions/list-available-workspace-templates.js.map +1 -0
- package/dist/actions/list-connected-agents.d.ts +14 -0
- package/dist/actions/list-connected-agents.d.ts.map +1 -0
- package/dist/actions/list-connected-agents.js +87 -0
- package/dist/actions/list-connected-agents.js.map +1 -0
- package/dist/actions/list-curated-workspace-templates.d.ts +3 -0
- package/dist/actions/list-curated-workspace-templates.d.ts.map +1 -0
- package/dist/actions/list-curated-workspace-templates.js +10 -0
- package/dist/actions/list-curated-workspace-templates.js.map +1 -0
- package/dist/actions/list-destinations.d.ts +15 -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 +20 -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 +16 -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 +61 -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-dispatch-usage-metrics.d.ts +7 -0
- package/dist/actions/list-dispatch-usage-metrics.d.ts.map +1 -0
- package/dist/actions/list-dispatch-usage-metrics.js +28 -0
- package/dist/actions/list-dispatch-usage-metrics.js.map +1 -0
- package/dist/actions/list-dream-candidates.d.ts +24 -0
- package/dist/actions/list-dream-candidates.d.ts.map +1 -0
- package/dist/actions/list-dream-candidates.js +68 -0
- package/dist/actions/list-dream-candidates.js.map +1 -0
- package/dist/actions/list-dreams.d.ts +29 -0
- package/dist/actions/list-dreams.d.ts.map +1 -0
- package/dist/actions/list-dreams.js +17 -0
- package/dist/actions/list-dreams.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 +29 -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-mcp-app-access.d.ts +14 -0
- package/dist/actions/list-mcp-app-access.d.ts.map +1 -0
- package/dist/actions/list-mcp-app-access.js +25 -0
- package/dist/actions/list-mcp-app-access.js.map +1 -0
- package/dist/actions/list-staged-datasets.d.ts +13 -0
- package/dist/actions/list-staged-datasets.d.ts.map +1 -0
- package/dist/actions/list-staged-datasets.js +8 -0
- package/dist/actions/list-staged-datasets.js.map +1 -0
- package/dist/actions/list-vault-audit.d.ts +16 -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 +17 -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 +18 -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 +9 -0
- package/dist/actions/list-vault-secret-options.d.ts.map +1 -0
- package/dist/actions/list-vault-secret-options.js +12 -0
- package/dist/actions/list-vault-secret-options.js.map +1 -0
- package/dist/actions/list-vault-secrets.d.ts +13 -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 +7 -0
- package/dist/actions/list-workspace-apps.d.ts.map +1 -0
- package/dist/actions/list-workspace-apps.js +31 -0
- package/dist/actions/list-workspace-apps.js.map +1 -0
- package/dist/actions/list-workspace-resource-grants.d.ts +16 -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-resource-options.d.ts +5 -0
- package/dist/actions/list-workspace-resource-options.d.ts.map +1 -0
- package/dist/actions/list-workspace-resource-options.js +22 -0
- package/dist/actions/list-workspace-resource-options.js.map +1 -0
- package/dist/actions/list-workspace-resources-for-app.d.ts +15 -0
- package/dist/actions/list-workspace-resources-for-app.d.ts.map +1 -0
- package/dist/actions/list-workspace-resources-for-app.js +12 -0
- package/dist/actions/list-workspace-resources-for-app.js.map +1 -0
- package/dist/actions/list-workspace-resources.d.ts +18 -0
- package/dist/actions/list-workspace-resources.d.ts.map +1 -0
- package/dist/actions/list-workspace-resources.js +22 -0
- package/dist/actions/list-workspace-resources.js.map +1 -0
- package/dist/actions/list_apps.d.ts +15 -0
- package/dist/actions/list_apps.d.ts.map +1 -0
- package/dist/actions/list_apps.js +34 -0
- package/dist/actions/list_apps.js.map +1 -0
- package/dist/actions/navigate.d.ts +23 -0
- package/dist/actions/navigate.d.ts.map +1 -0
- package/dist/actions/navigate.js +53 -0
- package/dist/actions/navigate.js.map +1 -0
- package/dist/actions/open_app.d.ts +20 -0
- package/dist/actions/open_app.d.ts.map +1 -0
- package/dist/actions/open_app.js +123 -0
- package/dist/actions/open_app.js.map +1 -0
- package/dist/actions/preview-dream-proposal.d.ts +43 -0
- package/dist/actions/preview-dream-proposal.d.ts.map +1 -0
- package/dist/actions/preview-dream-proposal.js +13 -0
- package/dist/actions/preview-dream-proposal.js.map +1 -0
- package/dist/actions/preview-workspace-resource-change.d.ts +8 -0
- package/dist/actions/preview-workspace-resource-change.d.ts.map +1 -0
- package/dist/actions/preview-workspace-resource-change.js +24 -0
- package/dist/actions/preview-workspace-resource-change.js.map +1 -0
- package/dist/actions/provider-api-catalog.d.ts +28 -0
- package/dist/actions/provider-api-catalog.d.ts.map +1 -0
- package/dist/actions/provider-api-catalog.js +8 -0
- package/dist/actions/provider-api-catalog.js.map +1 -0
- package/dist/actions/provider-api-docs.d.ts +41 -0
- package/dist/actions/provider-api-docs.d.ts.map +1 -0
- package/dist/actions/provider-api-docs.js +12 -0
- package/dist/actions/provider-api-docs.js.map +1 -0
- package/dist/actions/provider-api-register.d.ts +109 -0
- package/dist/actions/provider-api-register.d.ts.map +1 -0
- package/dist/actions/provider-api-register.js +33 -0
- package/dist/actions/provider-api-register.js.map +1 -0
- package/dist/actions/provider-api-request.d.ts +67 -0
- package/dist/actions/provider-api-request.d.ts.map +1 -0
- package/dist/actions/provider-api-request.js +13 -0
- package/dist/actions/provider-api-request.js.map +1 -0
- package/dist/actions/query-staged-dataset.d.ts +45 -0
- package/dist/actions/query-staged-dataset.d.ts.map +1 -0
- package/dist/actions/query-staged-dataset.js +8 -0
- package/dist/actions/query-staged-dataset.js.map +1 -0
- package/dist/actions/read-slack-thread-context.d.ts +29 -0
- package/dist/actions/read-slack-thread-context.d.ts.map +1 -0
- package/dist/actions/read-slack-thread-context.js +138 -0
- package/dist/actions/read-slack-thread-context.js.map +1 -0
- package/dist/actions/reject-dispatch-change.d.ts +23 -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/reject-dream-proposal.d.ts +27 -0
- package/dist/actions/reject-dream-proposal.d.ts.map +1 -0
- package/dist/actions/reject-dream-proposal.js +12 -0
- package/dist/actions/reject-dream-proposal.js.map +1 -0
- package/dist/actions/remix-workspace-template.d.ts +48 -0
- package/dist/actions/remix-workspace-template.d.ts.map +1 -0
- package/dist/actions/remix-workspace-template.js +79 -0
- package/dist/actions/remix-workspace-template.js.map +1 -0
- package/dist/actions/remove-pending-workspace-app.d.ts +7 -0
- package/dist/actions/remove-pending-workspace-app.d.ts.map +1 -0
- package/dist/actions/remove-pending-workspace-app.js +15 -0
- package/dist/actions/remove-pending-workspace-app.js.map +1 -0
- package/dist/actions/request-vault-secret.d.ts +20 -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/resolve-integration-source-context.d.ts +5 -0
- package/dist/actions/resolve-integration-source-context.d.ts.map +1 -0
- package/dist/actions/resolve-integration-source-context.js +30 -0
- package/dist/actions/resolve-integration-source-context.js.map +1 -0
- package/dist/actions/restore-starter-workspace-resources.d.ts +9 -0
- package/dist/actions/restore-starter-workspace-resources.d.ts.map +1 -0
- package/dist/actions/restore-starter-workspace-resources.js +14 -0
- package/dist/actions/restore-starter-workspace-resources.js.map +1 -0
- package/dist/actions/revoke-vault-grant.d.ts +16 -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 +15 -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/scaffold-workspace-app.d.ts +10 -0
- package/dist/actions/scaffold-workspace-app.d.ts.map +1 -0
- package/dist/actions/scaffold-workspace-app.js +41 -0
- package/dist/actions/scaffold-workspace-app.js.map +1 -0
- package/dist/actions/search-agent-threads.d.ts +32 -0
- package/dist/actions/search-agent-threads.d.ts.map +1 -0
- package/dist/actions/search-agent-threads.js +25 -0
- package/dist/actions/search-agent-threads.js.map +1 -0
- package/dist/actions/send-code-agent-remote-command.d.ts +34 -0
- package/dist/actions/send-code-agent-remote-command.d.ts.map +1 -0
- package/dist/actions/send-code-agent-remote-command.js +53 -0
- package/dist/actions/send-code-agent-remote-command.js.map +1 -0
- package/dist/actions/send-platform-message.d.ts +15 -0
- package/dist/actions/send-platform-message.d.ts.map +1 -0
- package/dist/actions/send-platform-message.js +96 -0
- package/dist/actions/send-platform-message.js.map +1 -0
- package/dist/actions/set-app-creation-settings.d.ts +5 -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 +23 -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/set-dream-settings.d.ts +17 -0
- package/dist/actions/set-dream-settings.d.ts.map +1 -0
- package/dist/actions/set-dream-settings.js +41 -0
- package/dist/actions/set-dream-settings.js.map +1 -0
- package/dist/actions/set-mcp-app-access.d.ts +17 -0
- package/dist/actions/set-mcp-app-access.d.ts.map +1 -0
- package/dist/actions/set-mcp-app-access.js +43 -0
- package/dist/actions/set-mcp-app-access.js.map +1 -0
- package/dist/actions/set-vault-access-settings.d.ts +5 -0
- package/dist/actions/set-vault-access-settings.d.ts.map +1 -0
- package/dist/actions/set-vault-access-settings.js +13 -0
- package/dist/actions/set-vault-access-settings.js.map +1 -0
- package/dist/actions/start-workspace-app-creation.d.ts +10 -0
- package/dist/actions/start-workspace-app-creation.d.ts.map +1 -0
- package/dist/actions/start-workspace-app-creation.js +43 -0
- package/dist/actions/start-workspace-app-creation.js.map +1 -0
- package/dist/actions/sync-vault-to-app.d.ts +32 -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/unarchive-workspace-app.d.ts +7 -0
- package/dist/actions/unarchive-workspace-app.d.ts.map +1 -0
- package/dist/actions/unarchive-workspace-app.js +15 -0
- package/dist/actions/unarchive-workspace-app.js.map +1 -0
- package/dist/actions/update-vault-secret.d.ts +22 -0
- package/dist/actions/update-vault-secret.d.ts.map +1 -0
- package/dist/actions/update-vault-secret.js +43 -0
- package/dist/actions/update-vault-secret.js.map +1 -0
- package/dist/actions/update-workspace-app-metadata.d.ts +7 -0
- package/dist/actions/update-workspace-app-metadata.d.ts.map +1 -0
- package/dist/actions/update-workspace-app-metadata.js +30 -0
- package/dist/actions/update-workspace-app-metadata.js.map +1 -0
- package/dist/actions/update-workspace-resource.d.ts +39 -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 +39 -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 +332 -0
- package/dist/actions/view-screen.js.map +1 -0
- package/dist/client/transactional-emails.d.ts +57 -0
- package/dist/client/transactional-emails.d.ts.map +1 -0
- package/dist/client/transactional-emails.js +116 -0
- package/dist/client/transactional-emails.js.map +1 -0
- package/dist/components/action-query-error.d.ts +8 -0
- package/dist/components/action-query-error.d.ts.map +1 -0
- package/dist/components/action-query-error.js +10 -0
- package/dist/components/action-query-error.js.map +1 -0
- package/dist/components/admin-navigation.d.ts +16 -0
- package/dist/components/admin-navigation.d.ts.map +1 -0
- package/dist/components/admin-navigation.js +193 -0
- package/dist/components/admin-navigation.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 +133 -0
- package/dist/components/agents-panel.js.map +1 -0
- package/dist/components/app-icon.d.ts +10 -0
- package/dist/components/app-icon.d.ts.map +1 -0
- package/dist/components/app-icon.js +107 -0
- package/dist/components/app-icon.js.map +1 -0
- package/dist/components/app-keys-popover.d.ts +15 -0
- package/dist/components/app-keys-popover.d.ts.map +1 -0
- package/dist/components/app-keys-popover.js +115 -0
- package/dist/components/app-keys-popover.js.map +1 -0
- package/dist/components/app-list-row.d.ts +12 -0
- package/dist/components/app-list-row.d.ts.map +1 -0
- package/dist/components/app-list-row.js +11 -0
- package/dist/components/app-list-row.js.map +1 -0
- package/dist/components/app-open-actions.d.ts +2 -0
- package/dist/components/app-open-actions.d.ts.map +1 -0
- package/dist/components/app-open-actions.js +2 -0
- package/dist/components/app-open-actions.js.map +1 -0
- package/dist/components/app-row-settings.d.ts +6 -0
- package/dist/components/app-row-settings.d.ts.map +1 -0
- package/dist/components/app-row-settings.js +11 -0
- package/dist/components/app-row-settings.js.map +1 -0
- package/dist/components/approval-value-block.d.ts +7 -0
- package/dist/components/approval-value-block.d.ts.map +1 -0
- package/dist/components/approval-value-block.js +22 -0
- package/dist/components/approval-value-block.js.map +1 -0
- package/dist/components/automation-run-history-dialog.d.ts +9 -0
- package/dist/components/automation-run-history-dialog.d.ts.map +1 -0
- package/dist/components/automation-run-history-dialog.js +63 -0
- package/dist/components/automation-run-history-dialog.js.map +1 -0
- package/dist/components/connected-app-card.d.ts +6 -0
- package/dist/components/connected-app-card.d.ts.map +1 -0
- package/dist/components/connected-app-card.js +13 -0
- package/dist/components/connected-app-card.js.map +1 -0
- package/dist/components/create-app-popover.d.ts +29 -0
- package/dist/components/create-app-popover.d.ts.map +1 -0
- package/dist/components/create-app-popover.js +262 -0
- package/dist/components/create-app-popover.js.map +1 -0
- package/dist/components/dispatch-control-plane.d.ts +2 -0
- package/dist/components/dispatch-control-plane.d.ts.map +1 -0
- package/dist/components/dispatch-control-plane.js +114 -0
- package/dist/components/dispatch-control-plane.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 +21 -0
- package/dist/components/dispatch-shell.js.map +1 -0
- package/dist/components/docs-link.d.ts +16 -0
- package/dist/components/docs-link.d.ts.map +1 -0
- package/dist/components/docs-link.js +34 -0
- package/dist/components/docs-link.js.map +1 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +16 -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 +61 -0
- package/dist/components/layout/Header.js.map +1 -0
- package/dist/components/layout/HeaderActions.d.ts +2 -0
- package/dist/components/layout/HeaderActions.d.ts.map +1 -0
- package/dist/components/layout/HeaderActions.js +2 -0
- package/dist/components/layout/HeaderActions.js.map +1 -0
- package/dist/components/layout/Layout.d.ts +60 -0
- package/dist/components/layout/Layout.d.ts.map +1 -0
- package/dist/components/layout/Layout.js +1302 -0
- package/dist/components/layout/Layout.js.map +1 -0
- package/dist/components/layout/workspace-apps-rail.d.ts +5 -0
- package/dist/components/layout/workspace-apps-rail.d.ts.map +1 -0
- package/dist/components/layout/workspace-apps-rail.js +56 -0
- package/dist/components/layout/workspace-apps-rail.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 +414 -0
- package/dist/components/messaging-setup-panel.js.map +1 -0
- package/dist/components/other-apps-section.d.ts +33 -0
- package/dist/components/other-apps-section.d.ts.map +1 -0
- package/dist/components/other-apps-section.js +66 -0
- package/dist/components/other-apps-section.js.map +1 -0
- package/dist/components/simple-agents-panel.d.ts +12 -0
- package/dist/components/simple-agents-panel.d.ts.map +1 -0
- package/dist/components/simple-agents-panel.js +438 -0
- package/dist/components/simple-agents-panel.js.map +1 -0
- package/dist/components/task-queue-health.d.ts +2 -0
- package/dist/components/task-queue-health.d.ts.map +1 -0
- package/dist/components/task-queue-health.js +58 -0
- package/dist/components/task-queue-health.js.map +1 -0
- package/dist/components/transactional-email-activity.d.ts +24 -0
- package/dist/components/transactional-email-activity.d.ts.map +1 -0
- package/dist/components/transactional-email-activity.js +31 -0
- package/dist/components/transactional-email-activity.js.map +1 -0
- package/dist/components/transactional-email-metrics.d.ts +40 -0
- package/dist/components/transactional-email-metrics.d.ts.map +1 -0
- package/dist/components/transactional-email-metrics.js +44 -0
- package/dist/components/transactional-email-metrics.js.map +1 -0
- package/dist/components/transactional-email-preview.d.ts +7 -0
- package/dist/components/transactional-email-preview.d.ts.map +1 -0
- package/dist/components/transactional-email-preview.js +41 -0
- package/dist/components/transactional-email-preview.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 +2 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +2 -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 +2 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +2 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/form.d.ts +26 -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 +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +11 -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 +2 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +2 -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/components/usage-alerts-panel.d.ts +11 -0
- package/dist/components/usage-alerts-panel.d.ts.map +1 -0
- package/dist/components/usage-alerts-panel.js +125 -0
- package/dist/components/usage-alerts-panel.js.map +1 -0
- package/dist/components/workspace-app-card.d.ts +8 -0
- package/dist/components/workspace-app-card.d.ts.map +1 -0
- package/dist/components/workspace-app-card.js +198 -0
- package/dist/components/workspace-app-card.js.map +1 -0
- package/dist/components/workspace-app-host.d.ts +50 -0
- package/dist/components/workspace-app-host.d.ts.map +1 -0
- package/dist/components/workspace-app-host.js +386 -0
- package/dist/components/workspace-app-host.js.map +1 -0
- package/dist/components/workspace-app-search.d.ts +10 -0
- package/dist/components/workspace-app-search.d.ts.map +1 -0
- package/dist/components/workspace-app-search.js +27 -0
- package/dist/components/workspace-app-search.js.map +1 -0
- package/dist/components/workspace-resource-effective-stack.d.ts +11 -0
- package/dist/components/workspace-resource-effective-stack.d.ts.map +1 -0
- package/dist/components/workspace-resource-effective-stack.js +65 -0
- package/dist/components/workspace-resource-effective-stack.js.map +1 -0
- package/dist/components/workspace-resource-impact-preview.d.ts +9 -0
- package/dist/components/workspace-resource-impact-preview.d.ts.map +1 -0
- package/dist/components/workspace-resource-impact-preview.js +44 -0
- package/dist/components/workspace-resource-impact-preview.js.map +1 -0
- package/dist/components/workspace-template-card.d.ts +58 -0
- package/dist/components/workspace-template-card.d.ts.map +1 -0
- package/dist/components/workspace-template-card.js +113 -0
- package/dist/components/workspace-template-card.js.map +1 -0
- package/dist/config.d.ts +40 -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 +35 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +3 -0
- package/dist/db/migrations.d.ts.map +1 -0
- package/dist/db/migrations.js +250 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/db/schema.d.ts +3059 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +194 -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 +2 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-navigation-state.d.ts +25 -0
- package/dist/hooks/use-navigation-state.d.ts.map +1 -0
- package/dist/hooks/use-navigation-state.js +353 -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/agent-pack.d.ts +31 -0
- package/dist/lib/agent-pack.d.ts.map +1 -0
- package/dist/lib/agent-pack.js +149 -0
- package/dist/lib/agent-pack.js.map +1 -0
- package/dist/lib/automation-display.d.ts +22 -0
- package/dist/lib/automation-display.d.ts.map +1 -0
- package/dist/lib/automation-display.js +88 -0
- package/dist/lib/automation-display.js.map +1 -0
- package/dist/lib/automations.d.ts +32 -0
- package/dist/lib/automations.d.ts.map +1 -0
- package/dist/lib/automations.js +28 -0
- package/dist/lib/automations.js.map +1 -0
- package/dist/lib/browser-chat-bridge.d.ts +8 -0
- package/dist/lib/browser-chat-bridge.d.ts.map +1 -0
- package/dist/lib/browser-chat-bridge.js +48 -0
- package/dist/lib/browser-chat-bridge.js.map +1 -0
- package/dist/lib/browser-chat-protocol.d.ts +33 -0
- package/dist/lib/browser-chat-protocol.d.ts.map +1 -0
- package/dist/lib/browser-chat-protocol.js +82 -0
- package/dist/lib/browser-chat-protocol.js.map +1 -0
- package/dist/lib/catch-all-target.d.ts +17 -0
- package/dist/lib/catch-all-target.d.ts.map +1 -0
- package/dist/lib/catch-all-target.js +103 -0
- package/dist/lib/catch-all-target.js.map +1 -0
- package/dist/lib/embed-session-recovery.d.ts +3 -0
- package/dist/lib/embed-session-recovery.d.ts.map +1 -0
- package/dist/lib/embed-session-recovery.js +18 -0
- package/dist/lib/embed-session-recovery.js.map +1 -0
- package/dist/lib/other-apps.d.ts +16 -0
- package/dist/lib/other-apps.d.ts.map +1 -0
- package/dist/lib/other-apps.js +36 -0
- package/dist/lib/other-apps.js.map +1 -0
- package/dist/lib/overview-chat.d.ts +9 -0
- package/dist/lib/overview-chat.d.ts.map +1 -0
- package/dist/lib/overview-chat.js +16 -0
- package/dist/lib/overview-chat.js.map +1 -0
- package/dist/lib/simple-agent-profile.d.ts +36 -0
- package/dist/lib/simple-agent-profile.d.ts.map +1 -0
- package/dist/lib/simple-agent-profile.js +183 -0
- package/dist/lib/simple-agent-profile.js.map +1 -0
- package/dist/lib/task-queue.d.ts +19 -0
- package/dist/lib/task-queue.d.ts.map +1 -0
- package/dist/lib/task-queue.js +54 -0
- package/dist/lib/task-queue.js.map +1 -0
- package/dist/lib/thread-link-preview.d.ts +23 -0
- package/dist/lib/thread-link-preview.d.ts.map +1 -0
- package/dist/lib/thread-link-preview.js +150 -0
- package/dist/lib/thread-link-preview.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/workspace-app-layout.d.ts +19 -0
- package/dist/lib/workspace-app-layout.d.ts.map +1 -0
- package/dist/lib/workspace-app-layout.js +75 -0
- package/dist/lib/workspace-app-layout.js.map +1 -0
- package/dist/lib/workspace-apps.d.ts +72 -0
- package/dist/lib/workspace-apps.d.ts.map +1 -0
- package/dist/lib/workspace-apps.js +228 -0
- package/dist/lib/workspace-apps.js.map +1 -0
- package/dist/lib/workspace-apps.test.d.ts +2 -0
- package/dist/lib/workspace-apps.test.d.ts.map +1 -0
- package/dist/lib/workspace-apps.test.js +105 -0
- package/dist/lib/workspace-apps.test.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 +89 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/pages/$appId.d.ts +8 -0
- package/dist/routes/pages/$appId.d.ts.map +1 -0
- package/dist/routes/pages/$appId.js +126 -0
- package/dist/routes/pages/$appId.js.map +1 -0
- package/dist/routes/pages/_index.d.ts +22 -0
- package/dist/routes/pages/_index.d.ts.map +1 -0
- package/dist/routes/pages/_index.js +53 -0
- package/dist/routes/pages/_index.js.map +1 -0
- package/dist/routes/pages/_index.test.d.ts +2 -0
- package/dist/routes/pages/_index.test.d.ts.map +1 -0
- package/dist/routes/pages/_index.test.js +29 -0
- package/dist/routes/pages/_index.test.js.map +1 -0
- package/dist/routes/pages/admin._index.d.ts +5 -0
- package/dist/routes/pages/admin._index.d.ts.map +1 -0
- package/dist/routes/pages/admin._index.js +44 -0
- package/dist/routes/pages/admin._index.js.map +1 -0
- package/dist/routes/pages/admin.d.ts +5 -0
- package/dist/routes/pages/admin.d.ts.map +1 -0
- package/dist/routes/pages/admin.js +10 -0
- package/dist/routes/pages/admin.js.map +1 -0
- package/dist/routes/pages/agent-integrations.d.ts +5 -0
- package/dist/routes/pages/agent-integrations.d.ts.map +1 -0
- package/dist/routes/pages/agent-integrations.js +15 -0
- package/dist/routes/pages/agent-integrations.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 +96 -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 +58 -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 +55 -0
- package/dist/routes/pages/approvals.js.map +1 -0
- package/dist/routes/pages/apps.$appId.d.ts +6 -0
- package/dist/routes/pages/apps.$appId.d.ts.map +1 -0
- package/dist/routes/pages/apps.$appId.js +15 -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 +113 -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 +14 -0
- package/dist/routes/pages/audit.js.map +1 -0
- package/dist/routes/pages/automations.d.ts +5 -0
- package/dist/routes/pages/automations.d.ts.map +1 -0
- package/dist/routes/pages/automations.js +124 -0
- package/dist/routes/pages/automations.js.map +1 -0
- package/dist/routes/pages/browser-chat.d.ts +5 -0
- package/dist/routes/pages/browser-chat.d.ts.map +1 -0
- package/dist/routes/pages/browser-chat.js +43 -0
- package/dist/routes/pages/browser-chat.js.map +1 -0
- package/dist/routes/pages/browser-connect.d.ts +5 -0
- package/dist/routes/pages/browser-connect.d.ts.map +1 -0
- package/dist/routes/pages/browser-connect.js +72 -0
- package/dist/routes/pages/browser-connect.js.map +1 -0
- package/dist/routes/pages/chat.d.ts +5 -0
- package/dist/routes/pages/chat.d.ts.map +1 -0
- package/dist/routes/pages/chat.js +192 -0
- package/dist/routes/pages/chat.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 +96 -0
- package/dist/routes/pages/destinations.js.map +1 -0
- package/dist/routes/pages/dream-settings.d.ts +34 -0
- package/dist/routes/pages/dream-settings.d.ts.map +1 -0
- package/dist/routes/pages/dream-settings.js +68 -0
- package/dist/routes/pages/dream-settings.js.map +1 -0
- package/dist/routes/pages/dreams.d.ts +5 -0
- package/dist/routes/pages/dreams.d.ts.map +1 -0
- package/dist/routes/pages/dreams.js +455 -0
- package/dist/routes/pages/dreams.js.map +1 -0
- package/dist/routes/pages/extensions.$id.d.ts +5 -0
- package/dist/routes/pages/extensions.$id.d.ts.map +1 -0
- package/dist/routes/pages/extensions.$id.js +9 -0
- package/dist/routes/pages/extensions.$id.js.map +1 -0
- package/dist/routes/pages/extensions._index.d.ts +5 -0
- package/dist/routes/pages/extensions._index.d.ts.map +1 -0
- package/dist/routes/pages/extensions._index.js +9 -0
- package/dist/routes/pages/extensions._index.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 +20 -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 +196 -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/metrics.d.ts +5 -0
- package/dist/routes/pages/metrics.d.ts.map +1 -0
- package/dist/routes/pages/metrics.js +305 -0
- package/dist/routes/pages/metrics.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 +12 -0
- package/dist/routes/pages/new-app.js.map +1 -0
- package/dist/routes/pages/operations.d.ts +5 -0
- package/dist/routes/pages/operations.d.ts.map +1 -0
- package/dist/routes/pages/operations.js +53 -0
- package/dist/routes/pages/operations.js.map +1 -0
- package/dist/routes/pages/overview.d.ts +18 -0
- package/dist/routes/pages/overview.d.ts.map +1 -0
- package/dist/routes/pages/overview.js +19 -0
- package/dist/routes/pages/overview.js.map +1 -0
- package/dist/routes/pages/settings.d.ts +5 -0
- package/dist/routes/pages/settings.d.ts.map +1 -0
- package/dist/routes/pages/settings.js +57 -0
- package/dist/routes/pages/settings.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 +9 -0
- package/dist/routes/pages/team.js.map +1 -0
- package/dist/routes/pages/thread-debug.d.ts +5 -0
- package/dist/routes/pages/thread-debug.d.ts.map +1 -0
- package/dist/routes/pages/thread-debug.js +563 -0
- package/dist/routes/pages/thread-debug.js.map +1 -0
- package/dist/routes/pages/tools.$id.d.ts +5 -0
- package/dist/routes/pages/tools.$id.d.ts.map +1 -0
- package/dist/routes/pages/tools.$id.js +9 -0
- package/dist/routes/pages/tools.$id.js.map +1 -0
- package/dist/routes/pages/tools._index.d.ts +5 -0
- package/dist/routes/pages/tools._index.d.ts.map +1 -0
- package/dist/routes/pages/tools._index.js +9 -0
- package/dist/routes/pages/tools._index.js.map +1 -0
- package/dist/routes/pages/transactional-email.$appId.$id.d.ts +5 -0
- package/dist/routes/pages/transactional-email.$appId.$id.d.ts.map +1 -0
- package/dist/routes/pages/transactional-email.$appId.$id.js +147 -0
- package/dist/routes/pages/transactional-email.$appId.$id.js.map +1 -0
- package/dist/routes/pages/transactional-email.d.ts +5 -0
- package/dist/routes/pages/transactional-email.d.ts.map +1 -0
- package/dist/routes/pages/transactional-email.js +143 -0
- package/dist/routes/pages/transactional-email.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 +214 -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 +336 -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 +71 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/lib/agent-pack-store.d.ts +24 -0
- package/dist/server/lib/agent-pack-store.d.ts.map +1 -0
- package/dist/server/lib/agent-pack-store.js +22 -0
- package/dist/server/lib/agent-pack-store.js.map +1 -0
- package/dist/server/lib/app-creation-store.d.ts +164 -0
- package/dist/server/lib/app-creation-store.d.ts.map +1 -0
- package/dist/server/lib/app-creation-store.js +1975 -0
- package/dist/server/lib/app-creation-store.js.map +1 -0
- package/dist/server/lib/browser-extension-allowlist.d.ts +9 -0
- package/dist/server/lib/browser-extension-allowlist.d.ts.map +1 -0
- package/dist/server/lib/browser-extension-allowlist.js +39 -0
- package/dist/server/lib/browser-extension-allowlist.js.map +1 -0
- package/dist/server/lib/curated-workspace-templates.d.ts +22 -0
- package/dist/server/lib/curated-workspace-templates.d.ts.map +1 -0
- package/dist/server/lib/curated-workspace-templates.js +137 -0
- package/dist/server/lib/curated-workspace-templates.js.map +1 -0
- package/dist/server/lib/dispatch-integrations.d.ts +16 -0
- package/dist/server/lib/dispatch-integrations.d.ts.map +1 -0
- package/dist/server/lib/dispatch-integrations.js +411 -0
- package/dist/server/lib/dispatch-integrations.js.map +1 -0
- package/dist/server/lib/dispatch-remote-commands.d.ts +83 -0
- package/dist/server/lib/dispatch-remote-commands.d.ts.map +1 -0
- package/dist/server/lib/dispatch-remote-commands.js +256 -0
- package/dist/server/lib/dispatch-remote-commands.js.map +1 -0
- package/dist/server/lib/dispatch-routing.d.ts +6 -0
- package/dist/server/lib/dispatch-routing.d.ts.map +1 -0
- package/dist/server/lib/dispatch-routing.js +30 -0
- package/dist/server/lib/dispatch-routing.js.map +1 -0
- package/dist/server/lib/dispatch-store.d.ts +342 -0
- package/dist/server/lib/dispatch-store.d.ts.map +1 -0
- package/dist/server/lib/dispatch-store.js +725 -0
- package/dist/server/lib/dispatch-store.js.map +1 -0
- package/dist/server/lib/dreams-store.d.ts +398 -0
- package/dist/server/lib/dreams-store.d.ts.map +1 -0
- package/dist/server/lib/dreams-store.js +2330 -0
- package/dist/server/lib/dreams-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 +98 -0
- package/dist/server/lib/env-config.js.map +1 -0
- package/dist/server/lib/mcp-access-store.d.ts +16 -0
- package/dist/server/lib/mcp-access-store.d.ts.map +1 -0
- package/dist/server/lib/mcp-access-store.js +92 -0
- package/dist/server/lib/mcp-access-store.js.map +1 -0
- package/dist/server/lib/mcp-gateway.d.ts +90 -0
- package/dist/server/lib/mcp-gateway.d.ts.map +1 -0
- package/dist/server/lib/mcp-gateway.js +1036 -0
- package/dist/server/lib/mcp-gateway.js.map +1 -0
- package/dist/server/lib/onboarding-steps.d.ts +12 -0
- package/dist/server/lib/onboarding-steps.d.ts.map +1 -0
- package/dist/server/lib/onboarding-steps.js +72 -0
- package/dist/server/lib/onboarding-steps.js.map +1 -0
- package/dist/server/lib/provider-api.d.ts +29 -0
- package/dist/server/lib/provider-api.d.ts.map +1 -0
- package/dist/server/lib/provider-api.js +49 -0
- package/dist/server/lib/provider-api.js.map +1 -0
- package/dist/server/lib/thread-debug-store.d.ts +194 -0
- package/dist/server/lib/thread-debug-store.d.ts.map +1 -0
- package/dist/server/lib/thread-debug-store.js +849 -0
- package/dist/server/lib/thread-debug-store.js.map +1 -0
- package/dist/server/lib/thread-link-preview.d.ts +3 -0
- package/dist/server/lib/thread-link-preview.d.ts.map +1 -0
- package/dist/server/lib/thread-link-preview.js +28 -0
- package/dist/server/lib/thread-link-preview.js.map +1 -0
- package/dist/server/lib/usage-metrics-store.d.ts +113 -0
- package/dist/server/lib/usage-metrics-store.d.ts.map +1 -0
- package/dist/server/lib/usage-metrics-store.js +580 -0
- package/dist/server/lib/usage-metrics-store.js.map +1 -0
- package/dist/server/lib/vault-boot-resync.d.ts +23 -0
- package/dist/server/lib/vault-boot-resync.d.ts.map +1 -0
- package/dist/server/lib/vault-boot-resync.js +44 -0
- package/dist/server/lib/vault-boot-resync.js.map +1 -0
- package/dist/server/lib/vault-store.d.ts +381 -0
- package/dist/server/lib/vault-store.d.ts.map +1 -0
- package/dist/server/lib/vault-store.js +1106 -0
- package/dist/server/lib/vault-store.js.map +1 -0
- package/dist/server/lib/workspace-app-action-auth.d.ts +9 -0
- package/dist/server/lib/workspace-app-action-auth.d.ts.map +1 -0
- package/dist/server/lib/workspace-app-action-auth.js +102 -0
- package/dist/server/lib/workspace-app-action-auth.js.map +1 -0
- package/dist/server/lib/workspace-app-chat-proxy.d.ts +52 -0
- package/dist/server/lib/workspace-app-chat-proxy.d.ts.map +1 -0
- package/dist/server/lib/workspace-app-chat-proxy.js +306 -0
- package/dist/server/lib/workspace-app-chat-proxy.js.map +1 -0
- package/dist/server/lib/workspace-resources-store.d.ts +372 -0
- package/dist/server/lib/workspace-resources-store.d.ts.map +1 -0
- package/dist/server/lib/workspace-resources-store.js +1000 -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 +94 -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 +31 -0
- package/dist/server/plugins/auth.js.map +1 -0
- package/dist/server/plugins/core-routes.d.ts +4 -0
- package/dist/server/plugins/core-routes.d.ts.map +1 -0
- package/dist/server/plugins/core-routes.js +18 -0
- package/dist/server/plugins/core-routes.js.map +1 -0
- package/dist/server/plugins/db.d.ts +11 -0
- package/dist/server/plugins/db.d.ts.map +1 -0
- package/dist/server/plugins/db.js +18 -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 +72 -0
- package/dist/server/plugins/integrations.js.map +1 -0
- package/dist/shared/app-roles.d.ts +9 -0
- package/dist/shared/app-roles.d.ts.map +1 -0
- package/dist/shared/app-roles.js +7 -0
- package/dist/shared/app-roles.js.map +1 -0
- package/dist/shared/chat-first-pane.d.ts +8 -0
- package/dist/shared/chat-first-pane.d.ts.map +1 -0
- package/dist/shared/chat-first-pane.js +8 -0
- package/dist/shared/chat-first-pane.js.map +1 -0
- package/dist/shared/feature-flags.d.ts +8 -0
- package/dist/shared/feature-flags.d.ts.map +1 -0
- package/dist/shared/feature-flags.js +17 -0
- package/dist/shared/feature-flags.js.map +1 -0
- package/dist/shared/workspace-app-chat.d.ts +23 -0
- package/dist/shared/workspace-app-chat.d.ts.map +1 -0
- package/dist/shared/workspace-app-chat.js +45 -0
- package/dist/shared/workspace-app-chat.js.map +1 -0
- package/dist/shared/workspace-sso.d.ts +48 -0
- package/dist/shared/workspace-sso.d.ts.map +1 -0
- package/dist/shared/workspace-sso.js +142 -0
- package/dist/shared/workspace-sso.js.map +1 -0
- package/package.json +118 -0
- package/src/actions/apply-dream-proposal.ts +13 -0
- package/src/actions/approve-dispatch-change.ts +12 -0
- package/src/actions/approve-vault-request.ts +24 -0
- package/src/actions/archive-workspace-app.ts +17 -0
- package/src/actions/ask_app.ts +26 -0
- package/src/actions/ask_app_status.ts +16 -0
- package/src/actions/connect-external-agent.ts +92 -0
- package/src/actions/create-browser-chat-session.spec.ts +122 -0
- package/src/actions/create-browser-chat-session.ts +99 -0
- package/src/actions/create-dream-report.ts +77 -0
- package/src/actions/create-link-token.ts +13 -0
- package/src/actions/create-pylon-ticket.ts +111 -0
- package/src/actions/create-vault-grant.ts +16 -0
- package/src/actions/create-vault-secret.ts +28 -0
- package/src/actions/create-workspace-resource-grant.ts +16 -0
- package/src/actions/create-workspace-resource.ts +37 -0
- package/src/actions/create_embed_session.ts +30 -0
- package/src/actions/create_workspace_app_embed_session.spec.ts +122 -0
- package/src/actions/create_workspace_app_embed_session.ts +102 -0
- package/src/actions/delete-destination.ts +12 -0
- package/src/actions/delete-staged-dataset.ts +10 -0
- package/src/actions/delete-vault-secret.ts +13 -0
- package/src/actions/delete-workspace-resource.ts +13 -0
- package/src/actions/deny-vault-request.ts +13 -0
- package/src/actions/ensure-dream-job.ts +77 -0
- package/src/actions/get-agent-thread-debug.ts +41 -0
- package/src/actions/get-app-creation-settings.ts +12 -0
- package/src/actions/get-dispatch-settings.ts +11 -0
- package/src/actions/get-dream-settings.ts +13 -0
- package/src/actions/get-dream.ts +15 -0
- package/src/actions/get-vault-access-settings.ts +12 -0
- package/src/actions/get-workspace-info.ts +12 -0
- package/src/actions/get-workspace-resource-effective-context.ts +35 -0
- package/src/actions/grant-vault-secrets-to-app.ts +21 -0
- package/src/actions/grant-workspace-resources-to-app.ts +17 -0
- package/src/actions/import-agent-pack.ts +146 -0
- package/src/actions/import-agent.ts +102 -0
- package/src/actions/index.spec.ts +59 -0
- package/src/actions/index.ts +210 -0
- package/src/actions/list-agent-pack.ts +43 -0
- package/src/actions/list-agent-run-failures.ts +50 -0
- package/src/actions/list-agent-thread-sources.ts +13 -0
- package/src/actions/list-available-workspace-templates.ts +12 -0
- package/src/actions/list-connected-agents.spec.ts +73 -0
- package/src/actions/list-connected-agents.ts +112 -0
- package/src/actions/list-curated-workspace-templates.spec.ts +36 -0
- package/src/actions/list-curated-workspace-templates.ts +12 -0
- package/src/actions/list-destinations.ts +11 -0
- package/src/actions/list-dispatch-approvals.ts +11 -0
- package/src/actions/list-dispatch-audit.ts +13 -0
- package/src/actions/list-dispatch-overview.ts +19 -0
- package/src/actions/list-dispatch-usage-metrics.ts +30 -0
- package/src/actions/list-dream-candidates.ts +78 -0
- package/src/actions/list-dreams.ts +18 -0
- package/src/actions/list-integrations-catalog.ts +12 -0
- package/src/actions/list-linked-identities.ts +11 -0
- package/src/actions/list-mcp-app-access.ts +27 -0
- package/src/actions/list-staged-datasets.ts +10 -0
- package/src/actions/list-vault-audit.ts +17 -0
- package/src/actions/list-vault-grants.ts +15 -0
- package/src/actions/list-vault-requests.ts +17 -0
- package/src/actions/list-vault-secret-options.ts +14 -0
- package/src/actions/list-vault-secrets.ts +27 -0
- package/src/actions/list-workspace-apps.ts +33 -0
- package/src/actions/list-workspace-resource-grants.ts +15 -0
- package/src/actions/list-workspace-resource-options.ts +24 -0
- package/src/actions/list-workspace-resources-for-app.ts +14 -0
- package/src/actions/list-workspace-resources.ts +24 -0
- package/src/actions/list_apps.spec.ts +52 -0
- package/src/actions/list_apps.ts +36 -0
- package/src/actions/navigate.ts +53 -0
- package/src/actions/open_app.spec.ts +106 -0
- package/src/actions/open_app.ts +152 -0
- package/src/actions/preview-dream-proposal.ts +15 -0
- package/src/actions/preview-workspace-resource-change.ts +26 -0
- package/src/actions/provider-api-audit.spec.ts +51 -0
- package/src/actions/provider-api-catalog.ts +14 -0
- package/src/actions/provider-api-docs.ts +24 -0
- package/src/actions/provider-api-register.spec.ts +193 -0
- package/src/actions/provider-api-register.ts +35 -0
- package/src/actions/provider-api-request.ts +28 -0
- package/src/actions/query-staged-dataset.ts +10 -0
- package/src/actions/read-slack-thread-context.spec.ts +134 -0
- package/src/actions/read-slack-thread-context.ts +171 -0
- package/src/actions/reject-dispatch-change.ts +13 -0
- package/src/actions/reject-dream-proposal.ts +13 -0
- package/src/actions/remix-workspace-template.spec.ts +145 -0
- package/src/actions/remix-workspace-template.ts +106 -0
- package/src/actions/remove-pending-workspace-app.ts +17 -0
- package/src/actions/request-vault-secret.ts +17 -0
- package/src/actions/resolve-integration-source-context.spec.ts +78 -0
- package/src/actions/resolve-integration-source-context.ts +37 -0
- package/src/actions/restore-starter-workspace-resources.ts +18 -0
- package/src/actions/revoke-vault-grant.ts +12 -0
- package/src/actions/revoke-workspace-resource-grant.ts +16 -0
- package/src/actions/scaffold-workspace-app.spec.ts +33 -0
- package/src/actions/scaffold-workspace-app.ts +57 -0
- package/src/actions/search-agent-threads.ts +31 -0
- package/src/actions/send-code-agent-remote-command.ts +60 -0
- package/src/actions/send-platform-message.spec.ts +129 -0
- package/src/actions/send-platform-message.ts +150 -0
- package/src/actions/set-app-creation-settings.ts +22 -0
- package/src/actions/set-dispatch-approval-policy.ts +25 -0
- package/src/actions/set-dream-settings.spec.ts +81 -0
- package/src/actions/set-dream-settings.ts +45 -0
- package/src/actions/set-mcp-app-access.spec.ts +73 -0
- package/src/actions/set-mcp-app-access.ts +56 -0
- package/src/actions/set-vault-access-settings.ts +17 -0
- package/src/actions/start-workspace-app-creation.ts +55 -0
- package/src/actions/sync-vault-to-app.ts +15 -0
- package/src/actions/unarchive-workspace-app.ts +17 -0
- package/src/actions/update-vault-secret.ts +49 -0
- package/src/actions/update-workspace-app-metadata.ts +33 -0
- package/src/actions/update-workspace-resource.ts +20 -0
- package/src/actions/upsert-destination.ts +30 -0
- package/src/actions/view-screen.spec.ts +212 -0
- package/src/actions/view-screen.ts +398 -0
- package/src/client/transactional-emails.spec.ts +91 -0
- package/src/client/transactional-emails.ts +201 -0
- package/src/components/action-query-error.spec.tsx +56 -0
- package/src/components/action-query-error.tsx +32 -0
- package/src/components/admin-navigation.tsx +329 -0
- package/src/components/agents-panel.tsx +383 -0
- package/src/components/app-icon.spec.tsx +44 -0
- package/src/components/app-icon.tsx +177 -0
- package/src/components/app-keys-popover.spec.tsx +146 -0
- package/src/components/app-keys-popover.tsx +300 -0
- package/src/components/app-list-row.tsx +40 -0
- package/src/components/app-open-actions.tsx +5 -0
- package/src/components/app-row-settings.tsx +54 -0
- package/src/components/approval-value-block.spec.tsx +60 -0
- package/src/components/approval-value-block.tsx +33 -0
- package/src/components/automation-run-history-dialog.tsx +247 -0
- package/src/components/connected-app-card.tsx +39 -0
- package/src/components/create-app-popover.spec.tsx +376 -0
- package/src/components/create-app-popover.tsx +677 -0
- package/src/components/dispatch-control-plane.spec.tsx +344 -0
- package/src/components/dispatch-control-plane.tsx +416 -0
- package/src/components/dispatch-shell.tsx +59 -0
- package/src/components/docs-link.tsx +52 -0
- package/src/components/index.ts +21 -0
- package/src/components/layout/Header.tsx +100 -0
- package/src/components/layout/HeaderActions.tsx +1 -0
- package/src/components/layout/Layout.app-chat.spec.ts +31 -0
- package/src/components/layout/Layout.spec.tsx +549 -0
- package/src/components/layout/Layout.tsx +2532 -0
- package/src/components/layout/workspace-apps-rail.tsx +132 -0
- package/src/components/messaging-setup-panel.spec.tsx +261 -0
- package/src/components/messaging-setup-panel.tsx +1131 -0
- package/src/components/other-apps-section.tsx +223 -0
- package/src/components/simple-agents-panel.spec.tsx +153 -0
- package/src/components/simple-agents-panel.tsx +1311 -0
- package/src/components/task-queue-health.tsx +175 -0
- package/src/components/transactional-email-activity.tsx +102 -0
- package/src/components/transactional-email-metrics.tsx +127 -0
- package/src/components/transactional-email-preview.tsx +88 -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 +56 -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 +1 -0
- package/src/components/ui/drawer.tsx +128 -0
- package/src/components/ui/dropdown-menu.tsx +1 -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 +31 -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 +1 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +777 -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/components/usage-alerts-panel.tsx +445 -0
- package/src/components/workspace-app-card.spec.tsx +408 -0
- package/src/components/workspace-app-card.tsx +711 -0
- package/src/components/workspace-app-chat-rail.spec.tsx +182 -0
- package/src/components/workspace-app-host.spec.tsx +688 -0
- package/src/components/workspace-app-host.tsx +756 -0
- package/src/components/workspace-app-search.tsx +96 -0
- package/src/components/workspace-resource-effective-stack.spec.tsx +126 -0
- package/src/components/workspace-resource-effective-stack.tsx +159 -0
- package/src/components/workspace-resource-impact-preview.spec.tsx +148 -0
- package/src/components/workspace-resource-impact-preview.tsx +128 -0
- package/src/components/workspace-template-card.spec.tsx +228 -0
- package/src/components/workspace-template-card.tsx +363 -0
- package/src/config.ts +42 -0
- package/src/db/index.ts +40 -0
- package/src/db/migrations.spec.ts +84 -0
- package/src/db/migrations.ts +251 -0
- package/src/db/schema.ts +209 -0
- package/src/hooks/use-mobile.tsx +1 -0
- package/src/hooks/use-navigation-state.spec.ts +166 -0
- package/src/hooks/use-navigation-state.ts +400 -0
- package/src/hooks/use-toast.ts +188 -0
- package/src/index.ts +19 -0
- package/src/lib/agent-pack.spec.ts +47 -0
- package/src/lib/agent-pack.ts +226 -0
- package/src/lib/automation-display.spec.ts +149 -0
- package/src/lib/automation-display.ts +108 -0
- package/src/lib/automations.spec.ts +64 -0
- package/src/lib/automations.ts +66 -0
- package/src/lib/browser-chat-bridge.spec.ts +151 -0
- package/src/lib/browser-chat-bridge.ts +79 -0
- package/src/lib/browser-chat-protocol.spec.ts +113 -0
- package/src/lib/browser-chat-protocol.ts +124 -0
- package/src/lib/catch-all-target.spec.ts +156 -0
- package/src/lib/catch-all-target.ts +125 -0
- package/src/lib/embed-session-recovery.spec.ts +63 -0
- package/src/lib/embed-session-recovery.ts +26 -0
- package/src/lib/other-apps.spec.ts +133 -0
- package/src/lib/other-apps.ts +57 -0
- package/src/lib/overview-chat.spec.ts +51 -0
- package/src/lib/overview-chat.ts +29 -0
- package/src/lib/simple-agent-profile.spec.ts +77 -0
- package/src/lib/simple-agent-profile.ts +247 -0
- package/src/lib/task-queue.spec.ts +57 -0
- package/src/lib/task-queue.ts +72 -0
- package/src/lib/thread-link-preview.ts +160 -0
- package/src/lib/utils.ts +6 -0
- package/src/lib/workspace-app-layout.spec.ts +47 -0
- package/src/lib/workspace-app-layout.ts +121 -0
- package/src/lib/workspace-apps.spec.ts +175 -0
- package/src/lib/workspace-apps.test.ts +151 -0
- package/src/lib/workspace-apps.ts +306 -0
- package/src/routes/index.spec.ts +39 -0
- package/src/routes/index.ts +95 -0
- package/src/routes/pages/$appId.spec.tsx +115 -0
- package/src/routes/pages/$appId.tsx +240 -0
- package/src/routes/pages/_index.test.ts +34 -0
- package/src/routes/pages/_index.tsx +65 -0
- package/src/routes/pages/admin._index.tsx +107 -0
- package/src/routes/pages/admin.tsx +15 -0
- package/src/routes/pages/agent-integrations.tsx +24 -0
- package/src/routes/pages/agents.tsx +251 -0
- package/src/routes/pages/approval.tsx +301 -0
- package/src/routes/pages/approvals.tsx +198 -0
- package/src/routes/pages/apps.$appId.spec.tsx +66 -0
- package/src/routes/pages/apps.$appId.tsx +22 -0
- package/src/routes/pages/apps.tsx +431 -0
- package/src/routes/pages/audit.tsx +71 -0
- package/src/routes/pages/automations.tsx +363 -0
- package/src/routes/pages/browser-chat.spec.tsx +121 -0
- package/src/routes/pages/browser-chat.tsx +89 -0
- package/src/routes/pages/browser-connect.spec.tsx +137 -0
- package/src/routes/pages/browser-connect.tsx +143 -0
- package/src/routes/pages/chat.spec.tsx +183 -0
- package/src/routes/pages/chat.tsx +335 -0
- package/src/routes/pages/destinations.tsx +309 -0
- package/src/routes/pages/dream-settings.spec.ts +131 -0
- package/src/routes/pages/dream-settings.ts +103 -0
- package/src/routes/pages/dreams.tsx +1812 -0
- package/src/routes/pages/extensions.$id.tsx +9 -0
- package/src/routes/pages/extensions._index.tsx +9 -0
- package/src/routes/pages/identities.tsx +106 -0
- package/src/routes/pages/integrations.tsx +541 -0
- package/src/routes/pages/messaging.tsx +17 -0
- package/src/routes/pages/metrics.tsx +1135 -0
- package/src/routes/pages/new-app.tsx +20 -0
- package/src/routes/pages/operations.tsx +132 -0
- package/src/routes/pages/overview.tsx +22 -0
- package/src/routes/pages/settings.tsx +196 -0
- package/src/routes/pages/team.tsx +9 -0
- package/src/routes/pages/thread-debug.spec.tsx +370 -0
- package/src/routes/pages/thread-debug.tsx +1923 -0
- package/src/routes/pages/tools.$id.tsx +9 -0
- package/src/routes/pages/tools._index.tsx +9 -0
- package/src/routes/pages/transactional-email.$appId.$id.tsx +369 -0
- package/src/routes/pages/transactional-email.tsx +575 -0
- package/src/routes/pages/vault.tsx +978 -0
- package/src/routes/pages/workspace.tsx +1213 -0
- package/src/server/index.ts +86 -0
- package/src/server/lib/agent-pack-store.ts +35 -0
- package/src/server/lib/app-creation-store.spec.ts +1018 -0
- package/src/server/lib/app-creation-store.ts +2567 -0
- package/src/server/lib/approval-fencing.spec.ts +489 -0
- package/src/server/lib/browser-extension-allowlist.spec.ts +76 -0
- package/src/server/lib/browser-extension-allowlist.ts +58 -0
- package/src/server/lib/curated-workspace-templates.spec.ts +56 -0
- package/src/server/lib/curated-workspace-templates.ts +187 -0
- package/src/server/lib/dispatch-integrations.spec.ts +428 -0
- package/src/server/lib/dispatch-integrations.ts +528 -0
- package/src/server/lib/dispatch-remote-commands.spec.ts +168 -0
- package/src/server/lib/dispatch-remote-commands.ts +375 -0
- package/src/server/lib/dispatch-routing.spec.ts +44 -0
- package/src/server/lib/dispatch-routing.ts +42 -0
- package/src/server/lib/dispatch-store.ts +1008 -0
- package/src/server/lib/dreams-store.spec.ts +1492 -0
- package/src/server/lib/dreams-store.ts +3187 -0
- package/src/server/lib/env-config.ts +99 -0
- package/src/server/lib/mcp-access-store.spec.ts +171 -0
- package/src/server/lib/mcp-access-store.ts +138 -0
- package/src/server/lib/mcp-gateway.spec.ts +1583 -0
- package/src/server/lib/mcp-gateway.ts +1388 -0
- package/src/server/lib/onboarding-steps.ts +82 -0
- package/src/server/lib/provider-api.ts +69 -0
- package/src/server/lib/thread-debug-store.spec.ts +439 -0
- package/src/server/lib/thread-debug-store.ts +1170 -0
- package/src/server/lib/thread-link-preview.spec.ts +127 -0
- package/src/server/lib/thread-link-preview.ts +32 -0
- package/src/server/lib/usage-metrics-store.spec.ts +240 -0
- package/src/server/lib/usage-metrics-store.ts +879 -0
- package/src/server/lib/vault-boot-resync.spec.ts +68 -0
- package/src/server/lib/vault-boot-resync.ts +50 -0
- package/src/server/lib/vault-store.spec.ts +541 -0
- package/src/server/lib/vault-store.ts +1540 -0
- package/src/server/lib/workspace-app-action-auth.spec.ts +212 -0
- package/src/server/lib/workspace-app-action-auth.ts +122 -0
- package/src/server/lib/workspace-app-chat-proxy.spec.ts +322 -0
- package/src/server/lib/workspace-app-chat-proxy.ts +389 -0
- package/src/server/lib/workspace-resource-approval-lifecycle.spec.ts +227 -0
- package/src/server/lib/workspace-resources-store.spec.ts +1108 -0
- package/src/server/lib/workspace-resources-store.ts +1403 -0
- package/src/server/plugins/agent-chat.spec.ts +43 -0
- package/src/server/plugins/agent-chat.ts +99 -0
- package/src/server/plugins/auth.spec.ts +45 -0
- package/src/server/plugins/auth.ts +36 -0
- package/src/server/plugins/core-routes.ts +29 -0
- package/src/server/plugins/db.ts +20 -0
- package/src/server/plugins/integrations.ts +82 -0
- package/src/shared/app-roles.ts +8 -0
- package/src/shared/chat-first-pane.ts +7 -0
- package/src/shared/feature-flags.ts +20 -0
- package/src/shared/workspace-app-chat.ts +45 -0
- package/src/shared/workspace-sso.ts +173 -0
- package/src/styles/dispatch-css.spec.ts +87 -0
- package/src/styles/dispatch.css +146 -0
|
@@ -0,0 +1,1923 @@
|
|
|
1
|
+
import { useActionQuery } from "@agent-native/core/client/hooks";
|
|
2
|
+
import { useT } from "@agent-native/core/client/i18n";
|
|
3
|
+
import {
|
|
4
|
+
IconActivity,
|
|
5
|
+
IconAdjustmentsHorizontal,
|
|
6
|
+
IconAlertTriangle,
|
|
7
|
+
IconCopy,
|
|
8
|
+
IconDatabase,
|
|
9
|
+
IconFileSearch,
|
|
10
|
+
IconInfoCircle,
|
|
11
|
+
IconRefresh,
|
|
12
|
+
IconSearch,
|
|
13
|
+
IconTool,
|
|
14
|
+
} from "@tabler/icons-react";
|
|
15
|
+
import { useMemo, useState } from "react";
|
|
16
|
+
import { useSearchParams } from "react-router";
|
|
17
|
+
|
|
18
|
+
import { ActionQueryError } from "../../components/action-query-error";
|
|
19
|
+
import { DispatchShell } from "../../components/dispatch-shell";
|
|
20
|
+
import { Badge } from "../../components/ui/badge";
|
|
21
|
+
import { Button } from "../../components/ui/button";
|
|
22
|
+
import { Input } from "../../components/ui/input";
|
|
23
|
+
import {
|
|
24
|
+
Popover,
|
|
25
|
+
PopoverAnchor,
|
|
26
|
+
PopoverContent,
|
|
27
|
+
} from "../../components/ui/popover";
|
|
28
|
+
import {
|
|
29
|
+
Select,
|
|
30
|
+
SelectContent,
|
|
31
|
+
SelectItem,
|
|
32
|
+
SelectTrigger,
|
|
33
|
+
SelectValue,
|
|
34
|
+
} from "../../components/ui/select";
|
|
35
|
+
import { Skeleton } from "../../components/ui/skeleton";
|
|
36
|
+
import {
|
|
37
|
+
Tabs,
|
|
38
|
+
TabsContent,
|
|
39
|
+
TabsList,
|
|
40
|
+
TabsTrigger,
|
|
41
|
+
} from "../../components/ui/tabs";
|
|
42
|
+
import { cn } from "../../lib/utils";
|
|
43
|
+
|
|
44
|
+
export function meta() {
|
|
45
|
+
return [{ title: "Thread Debug — Dispatch" }];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface ThreadDebugSource {
|
|
49
|
+
id: string;
|
|
50
|
+
label: string;
|
|
51
|
+
kind: "current" | "env" | "configured";
|
|
52
|
+
current: boolean;
|
|
53
|
+
connected: boolean;
|
|
54
|
+
databaseUrlEnv: string | null;
|
|
55
|
+
databaseAuthTokenEnv: string | null;
|
|
56
|
+
canInspectAll: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface ThreadSearchResult {
|
|
60
|
+
id: string;
|
|
61
|
+
ownerEmail: string;
|
|
62
|
+
title: string;
|
|
63
|
+
preview: string;
|
|
64
|
+
messageCount: number;
|
|
65
|
+
createdAt: number;
|
|
66
|
+
updatedAt: number;
|
|
67
|
+
snippet: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface ThreadMessage {
|
|
71
|
+
index: number;
|
|
72
|
+
id: string | null;
|
|
73
|
+
role: string;
|
|
74
|
+
createdAt: string | number | null;
|
|
75
|
+
status: unknown;
|
|
76
|
+
text: string;
|
|
77
|
+
contentParts: any[];
|
|
78
|
+
attachments: any[];
|
|
79
|
+
metadata: unknown;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface ThreadRun {
|
|
83
|
+
id: string;
|
|
84
|
+
status: string;
|
|
85
|
+
turnId?: string | null;
|
|
86
|
+
abortReason: string | null;
|
|
87
|
+
errorCode?: string | null;
|
|
88
|
+
errorDetail?: string | null;
|
|
89
|
+
terminalReason?: string | null;
|
|
90
|
+
dispatchMode?: string | null;
|
|
91
|
+
diagStage?: string | null;
|
|
92
|
+
workerStage?: string | null;
|
|
93
|
+
startedAt: number;
|
|
94
|
+
completedAt: number | null;
|
|
95
|
+
heartbeatAt: number | null;
|
|
96
|
+
lastProgressAt?: number | null;
|
|
97
|
+
durationMs?: number | null;
|
|
98
|
+
peakRssMb?: number | null;
|
|
99
|
+
inFlightSince?: number | null;
|
|
100
|
+
hasDispatchPayload?: boolean;
|
|
101
|
+
events: Array<{ seq: number; event: any; rawEventData: string }>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
type ThreadDebugMode = "failures" | "threads";
|
|
105
|
+
type FailureStatus = "all" | "errored" | "aborted" | "truncated";
|
|
106
|
+
type FailureRegime = "all" | "interactive" | "scheduled";
|
|
107
|
+
type FailureRange = "24h" | "7d" | "30d";
|
|
108
|
+
|
|
109
|
+
interface FailureTaxonomy {
|
|
110
|
+
code: string;
|
|
111
|
+
label: string;
|
|
112
|
+
regime: "interactive" | "scheduled";
|
|
113
|
+
source: "error_code" | "error_detail" | "unknown";
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface RunFailureLike {
|
|
117
|
+
id?: string;
|
|
118
|
+
status?: string | null;
|
|
119
|
+
errorCode?: string | null;
|
|
120
|
+
errorDetail?: string | null;
|
|
121
|
+
terminalReason?: string | null;
|
|
122
|
+
abortReason?: string | null;
|
|
123
|
+
dispatchMode?: string | null;
|
|
124
|
+
diagStage?: string | null;
|
|
125
|
+
workerStage?: string | null;
|
|
126
|
+
durationMs?: number | null;
|
|
127
|
+
heartbeatAt?: number | null;
|
|
128
|
+
lastProgressAt?: number | null;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface AgentRunFailure {
|
|
132
|
+
id: string;
|
|
133
|
+
threadId: string;
|
|
134
|
+
sourceId?: string;
|
|
135
|
+
sourceLabel?: string;
|
|
136
|
+
source?: {
|
|
137
|
+
id: string;
|
|
138
|
+
label: string;
|
|
139
|
+
kind?: string;
|
|
140
|
+
databaseUrlEnv?: string | null;
|
|
141
|
+
};
|
|
142
|
+
ownerEmail: string;
|
|
143
|
+
turnId?: string | null;
|
|
144
|
+
threadTitle: string;
|
|
145
|
+
threadPreview: string;
|
|
146
|
+
status: string;
|
|
147
|
+
errorCode: string | null;
|
|
148
|
+
errorDetail: string | null;
|
|
149
|
+
terminalReason: string | null;
|
|
150
|
+
abortReason: string | null;
|
|
151
|
+
heartbeatAt?: number | null;
|
|
152
|
+
lastProgressAt?: number | null;
|
|
153
|
+
dispatchMode: string | null;
|
|
154
|
+
diagStage: string | null;
|
|
155
|
+
workerStage?: string | null;
|
|
156
|
+
startedAt: number;
|
|
157
|
+
completedAt: number | null;
|
|
158
|
+
durationMs: number | null;
|
|
159
|
+
regime?: "interactive" | "scheduled";
|
|
160
|
+
failureTaxonomy?: FailureTaxonomy;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface AgentRunFailuresResponse {
|
|
164
|
+
failures: AgentRunFailure[];
|
|
165
|
+
sources: Array<{
|
|
166
|
+
source: {
|
|
167
|
+
id: string;
|
|
168
|
+
label: string;
|
|
169
|
+
kind?: string;
|
|
170
|
+
databaseUrlEnv?: string | null;
|
|
171
|
+
};
|
|
172
|
+
status: "ok" | "unsupported" | "unavailable" | "disconnected";
|
|
173
|
+
failureCount: number;
|
|
174
|
+
errorCode?: string | null;
|
|
175
|
+
}>;
|
|
176
|
+
partial: boolean;
|
|
177
|
+
count?: number;
|
|
178
|
+
access: { viewerEmail: string; scope: string; canInspectAll: boolean };
|
|
179
|
+
filters?: {
|
|
180
|
+
sourceId?: string;
|
|
181
|
+
status?: FailureStatus;
|
|
182
|
+
lookbackHours?: number;
|
|
183
|
+
limit?: number;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
interface ThreadDebugResponse {
|
|
188
|
+
source: {
|
|
189
|
+
id: string;
|
|
190
|
+
label: string;
|
|
191
|
+
kind: string;
|
|
192
|
+
databaseUrlEnv: string | null;
|
|
193
|
+
};
|
|
194
|
+
access: { viewerEmail: string; scope: string; canInspectAll: boolean };
|
|
195
|
+
thread: ThreadSearchResult;
|
|
196
|
+
lookup?: { requestedId: string; threadId: string; runId: string | null };
|
|
197
|
+
messages: ThreadMessage[];
|
|
198
|
+
debug: any;
|
|
199
|
+
debugRuns: any[];
|
|
200
|
+
queuedMessages: any[];
|
|
201
|
+
threadData: any;
|
|
202
|
+
rawThreadData: string;
|
|
203
|
+
runs: ThreadRun[];
|
|
204
|
+
traces: { summaries: any[]; spans: any[] };
|
|
205
|
+
feedback: any[];
|
|
206
|
+
satisfaction: any[];
|
|
207
|
+
evals: any[];
|
|
208
|
+
checkpoints: any[];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const FAILURE_RANGE_HOURS: Record<FailureRange, number> = {
|
|
212
|
+
"24h": 24,
|
|
213
|
+
"7d": 7 * 24,
|
|
214
|
+
"30d": 30 * 24,
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
const EMPTY_FAILURES: AgentRunFailure[] = [];
|
|
218
|
+
|
|
219
|
+
function parseMode(value: string | null): ThreadDebugMode {
|
|
220
|
+
return value === "threads" ? "threads" : "failures";
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function parseFailureStatus(value: string | null): FailureStatus {
|
|
224
|
+
return value === "errored" || value === "aborted" || value === "truncated"
|
|
225
|
+
? value
|
|
226
|
+
: "all";
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function parseFailureRegime(value: string | null): FailureRegime {
|
|
230
|
+
return value === "interactive" || value === "scheduled" ? value : "all";
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function parseFailureRange(value: string | null): FailureRange {
|
|
234
|
+
return value === "7d" || value === "30d" ? value : "24h";
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function failureSourceId(failure: AgentRunFailure): string {
|
|
238
|
+
return failure.sourceId || failure.source?.id || "current";
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function failureSourceLabel(failure: AgentRunFailure): string {
|
|
242
|
+
return (
|
|
243
|
+
failure.sourceLabel || failure.source?.label || failureSourceId(failure)
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function isTechnicalIdentifier(value: string): boolean {
|
|
248
|
+
return /^(?:job|run|thread|turn|request|req)-[a-z0-9][a-z0-9_-]*$/i.test(
|
|
249
|
+
value.trim(),
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function displayListTitle(
|
|
254
|
+
value: string | null | undefined,
|
|
255
|
+
fallbackValue: string | null | undefined,
|
|
256
|
+
fallbackLabel: string,
|
|
257
|
+
): string {
|
|
258
|
+
const candidate = [value, fallbackValue]
|
|
259
|
+
.map((entry) => entry?.trim() || "")
|
|
260
|
+
.find((entry) => entry && !isTechnicalIdentifier(entry));
|
|
261
|
+
if (!candidate) return fallbackLabel;
|
|
262
|
+
|
|
263
|
+
const withoutDate = candidate
|
|
264
|
+
.replace(/\s+[—-]\s+\d{1,2}\/\d{1,2}\/\d{4}\s*$/, "")
|
|
265
|
+
.trim();
|
|
266
|
+
if (!withoutDate) return fallbackLabel;
|
|
267
|
+
|
|
268
|
+
if (/^job:/i.test(withoutDate)) {
|
|
269
|
+
return withoutDate
|
|
270
|
+
.replace(/^job:\s*/i, "")
|
|
271
|
+
.replace(/[-_]+/g, " ")
|
|
272
|
+
.replace(/\s+/g, " ")
|
|
273
|
+
.replace(/\b\w/g, (character) => character.toUpperCase())
|
|
274
|
+
.trim();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
return withoutDate;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function formatDate(value: number | string | null | undefined): string {
|
|
281
|
+
if (value == null || value === "") return "n/a";
|
|
282
|
+
const numeric = Number(value);
|
|
283
|
+
const date = Number.isFinite(numeric) ? new Date(numeric) : new Date(value);
|
|
284
|
+
if (Number.isNaN(date.getTime())) return "n/a";
|
|
285
|
+
return date.toLocaleString();
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function formatRelativeDate(value: number | string | null | undefined): string {
|
|
289
|
+
if (value == null || value === "") return "n/a";
|
|
290
|
+
const numeric = Number(value);
|
|
291
|
+
const timestamp = Number.isFinite(numeric)
|
|
292
|
+
? numeric
|
|
293
|
+
: new Date(value).getTime();
|
|
294
|
+
if (!Number.isFinite(timestamp)) return "n/a";
|
|
295
|
+
const elapsed = Date.now() - timestamp;
|
|
296
|
+
if (elapsed < 0) return "in a moment";
|
|
297
|
+
if (elapsed < 60_000) return "just now";
|
|
298
|
+
if (elapsed < 3_600_000) return `${Math.floor(elapsed / 60_000)}m ago`;
|
|
299
|
+
if (elapsed < 86_400_000) return `${Math.floor(elapsed / 3_600_000)}h ago`;
|
|
300
|
+
return `${Math.floor(elapsed / 86_400_000)}d ago`;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function formatDuration(value: number | null | undefined): string {
|
|
304
|
+
if (value == null || !Number.isFinite(value)) return "n/a";
|
|
305
|
+
if (value < 1_000) return `${Math.round(value)}ms`;
|
|
306
|
+
if (value < 60_000) return `${(value / 1_000).toFixed(1)}s`;
|
|
307
|
+
return `${(value / 60_000).toFixed(1)}m`;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function humanizeIdentifier(value: string | null | undefined): string {
|
|
311
|
+
if (!value) return "Unknown failure";
|
|
312
|
+
return value
|
|
313
|
+
.replace(/^(error:|failure:)/, "")
|
|
314
|
+
.replace(/[_-]+/g, " ")
|
|
315
|
+
.replace(/\b\w/g, (character) => character.toUpperCase());
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
function failureLabel(run: RunFailureLike): string {
|
|
319
|
+
const code = run.errorCode || run.terminalReason || run.abortReason;
|
|
320
|
+
const labels: Record<string, string> = {
|
|
321
|
+
stale_run: "Worker heartbeat stopped",
|
|
322
|
+
background_worker_never_started: "Background worker never started",
|
|
323
|
+
background_worker_failed: "Background worker setup failed",
|
|
324
|
+
builder_gateway_network_error: "Gateway stream ended early",
|
|
325
|
+
provider_timeout: "Provider timed out",
|
|
326
|
+
provider_network_error: "Provider connection dropped",
|
|
327
|
+
provider_config_error: "Provider configuration rejected",
|
|
328
|
+
authentication_error: "Provider authentication failed",
|
|
329
|
+
overloaded_error: "Provider was overloaded",
|
|
330
|
+
"aborted:user": "Stopped by user",
|
|
331
|
+
};
|
|
332
|
+
return (code && labels[code]) || humanizeIdentifier(code);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
function runDiagnosis(run: RunFailureLike): {
|
|
336
|
+
title: string;
|
|
337
|
+
summary: string;
|
|
338
|
+
nextStep: string;
|
|
339
|
+
code: string;
|
|
340
|
+
} {
|
|
341
|
+
const code =
|
|
342
|
+
run.errorCode || run.terminalReason || run.abortReason || "unknown";
|
|
343
|
+
if (code === "stale_run") {
|
|
344
|
+
const workerStarted = run.dispatchMode === "background-processing";
|
|
345
|
+
return {
|
|
346
|
+
title: "Worker stopped reporting",
|
|
347
|
+
summary: workerStarted
|
|
348
|
+
? "The worker claimed this run, then stopped writing heartbeat or progress signals before it finished. This is a liveness failure, not proof that the provider failed."
|
|
349
|
+
: "The run stayed active until liveness recovery closed it. No completed result was recorded, so inspect the handoff and retained evidence before blaming a provider.",
|
|
350
|
+
nextStep: workerStarted
|
|
351
|
+
? "Check the last worker stage and database heartbeat writes."
|
|
352
|
+
: "Check the scheduled background handoff and whether a worker claimed it.",
|
|
353
|
+
code,
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
if (code === "background_worker_never_started") {
|
|
357
|
+
return {
|
|
358
|
+
title: "Background worker never started",
|
|
359
|
+
summary:
|
|
360
|
+
"The handoff was acknowledged, but no background worker claimed the run.",
|
|
361
|
+
nextStep:
|
|
362
|
+
"Check the background route, authentication, and function logs.",
|
|
363
|
+
code,
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
if (code === "background_worker_failed") {
|
|
367
|
+
return {
|
|
368
|
+
title: "Background worker failed during setup",
|
|
369
|
+
summary:
|
|
370
|
+
"The worker claimed the run but stopped before it could start the turn.",
|
|
371
|
+
nextStep:
|
|
372
|
+
"Use the recorded setup stage and worker logs to find the first failure.",
|
|
373
|
+
code,
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
if (code === "builder_gateway_network_error") {
|
|
377
|
+
return {
|
|
378
|
+
title: "Gateway stream ended early",
|
|
379
|
+
summary:
|
|
380
|
+
run.errorDetail ||
|
|
381
|
+
"The model stream ended before the run emitted a terminal event.",
|
|
382
|
+
nextStep:
|
|
383
|
+
"Retry once; if it repeats, inspect gateway and provider transport health.",
|
|
384
|
+
code,
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
if (code === "aborted:user") {
|
|
388
|
+
return {
|
|
389
|
+
title: "Stopped by user",
|
|
390
|
+
summary: "This run was explicitly aborted and is not a system failure.",
|
|
391
|
+
nextStep: "No recovery action is required.",
|
|
392
|
+
code,
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
return {
|
|
396
|
+
title: failureLabel(run),
|
|
397
|
+
summary:
|
|
398
|
+
run.errorDetail || "The run ended without a more specific explanation.",
|
|
399
|
+
nextStep: "Open the timeline and inspect the last recorded stage or event.",
|
|
400
|
+
code,
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
function eventType(event: any): string {
|
|
405
|
+
return typeof event?.type === "string" ? event.type : "event";
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function eventIsNoise(event: any): boolean {
|
|
409
|
+
return [
|
|
410
|
+
"thinking",
|
|
411
|
+
"text",
|
|
412
|
+
"tool_input_delta",
|
|
413
|
+
"stream_keepalive",
|
|
414
|
+
"activity",
|
|
415
|
+
].includes(eventType(event));
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
function summarizeEvents(events: ThreadRun["events"]) {
|
|
419
|
+
const toolNames = new Map<string, number>();
|
|
420
|
+
let toolStarts = 0;
|
|
421
|
+
for (const entry of events) {
|
|
422
|
+
if (eventType(entry.event) !== "tool_start") continue;
|
|
423
|
+
toolStarts += 1;
|
|
424
|
+
const name = String(entry.event?.tool ?? "tool");
|
|
425
|
+
toolNames.set(name, (toolNames.get(name) ?? 0) + 1);
|
|
426
|
+
}
|
|
427
|
+
return {
|
|
428
|
+
toolStarts,
|
|
429
|
+
toolNames: [...toolNames.entries()],
|
|
430
|
+
meaningful: events.filter((entry) => !eventIsNoise(entry.event)).slice(-12),
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
function json(value: unknown): string {
|
|
435
|
+
try {
|
|
436
|
+
return JSON.stringify(value, null, 2);
|
|
437
|
+
} catch {
|
|
438
|
+
return String(value);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function eventLabel(event: any): string {
|
|
443
|
+
if (!event || typeof event !== "object") return "event";
|
|
444
|
+
if (event.type === "tool_start") return `tool_start · ${event.tool}`;
|
|
445
|
+
if (event.type === "tool_done") return `tool_done · ${event.tool}`;
|
|
446
|
+
if (event.type === "text") return "text";
|
|
447
|
+
if (event.type === "error") return `error · ${event.errorCode ?? "agent"}`;
|
|
448
|
+
return String(event.type ?? "event");
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
function messageTitle(message: ThreadMessage): string {
|
|
452
|
+
const role = message.role || "unknown";
|
|
453
|
+
return `${role.charAt(0).toUpperCase()}${role.slice(1)} ${message.index + 1}`;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
function toolParts(message: ThreadMessage): any[] {
|
|
457
|
+
return message.contentParts.filter((part) => part?.type === "tool-call");
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
function diagnosticStage(value: string | null | undefined): string | null {
|
|
461
|
+
if (!value) return null;
|
|
462
|
+
try {
|
|
463
|
+
const parsed = JSON.parse(value) as { stage?: unknown; detail?: unknown };
|
|
464
|
+
const stage =
|
|
465
|
+
typeof parsed.stage === "string" && parsed.stage.trim()
|
|
466
|
+
? parsed.stage.trim()
|
|
467
|
+
: value;
|
|
468
|
+
const detail =
|
|
469
|
+
typeof parsed.detail === "string" && parsed.detail.trim()
|
|
470
|
+
? parsed.detail.trim()
|
|
471
|
+
: "";
|
|
472
|
+
return detail ? `${stage}: ${detail}` : stage;
|
|
473
|
+
} catch {
|
|
474
|
+
return value;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
function RawBlock({
|
|
479
|
+
value,
|
|
480
|
+
className,
|
|
481
|
+
}: {
|
|
482
|
+
value: unknown;
|
|
483
|
+
className?: string;
|
|
484
|
+
}) {
|
|
485
|
+
return (
|
|
486
|
+
<pre
|
|
487
|
+
className={cn(
|
|
488
|
+
"max-h-[520px] overflow-auto rounded-lg border bg-muted/30 p-3 text-xs leading-relaxed text-foreground",
|
|
489
|
+
"whitespace-pre-wrap break-words",
|
|
490
|
+
className,
|
|
491
|
+
)}
|
|
492
|
+
>
|
|
493
|
+
{typeof value === "string" ? value : json(value)}
|
|
494
|
+
</pre>
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function ResultCard({
|
|
499
|
+
result,
|
|
500
|
+
selected,
|
|
501
|
+
onSelect,
|
|
502
|
+
}: {
|
|
503
|
+
result: ThreadSearchResult;
|
|
504
|
+
selected: boolean;
|
|
505
|
+
onSelect: () => void;
|
|
506
|
+
}) {
|
|
507
|
+
const title = displayListTitle(
|
|
508
|
+
result.title,
|
|
509
|
+
result.preview,
|
|
510
|
+
"Untitled thread",
|
|
511
|
+
);
|
|
512
|
+
|
|
513
|
+
return (
|
|
514
|
+
<button
|
|
515
|
+
type="button"
|
|
516
|
+
onClick={onSelect}
|
|
517
|
+
aria-current={selected ? "true" : undefined}
|
|
518
|
+
className={cn(
|
|
519
|
+
"group w-full border-b px-4 py-3 text-left transition-colors last:border-b-0",
|
|
520
|
+
selected ? "bg-accent/70" : "hover:bg-muted/50",
|
|
521
|
+
)}
|
|
522
|
+
>
|
|
523
|
+
<div className="truncate text-sm font-medium text-foreground">
|
|
524
|
+
{title}
|
|
525
|
+
</div>
|
|
526
|
+
<div className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-[11px] text-muted-foreground">
|
|
527
|
+
<span>
|
|
528
|
+
{result.messageCount}{" "}
|
|
529
|
+
{result.messageCount === 1 ? "message" : "messages"}
|
|
530
|
+
</span>
|
|
531
|
+
<span aria-hidden="true">·</span>
|
|
532
|
+
<span className="min-w-0 truncate">{result.ownerEmail}</span>
|
|
533
|
+
<span aria-hidden="true">·</span>
|
|
534
|
+
<span>{formatRelativeDate(result.updatedAt)}</span>
|
|
535
|
+
</div>
|
|
536
|
+
</button>
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
function FailureCard({
|
|
541
|
+
failure,
|
|
542
|
+
selected,
|
|
543
|
+
onSelect,
|
|
544
|
+
}: {
|
|
545
|
+
failure: AgentRunFailure;
|
|
546
|
+
selected: boolean;
|
|
547
|
+
onSelect: () => void;
|
|
548
|
+
}) {
|
|
549
|
+
const t = useT();
|
|
550
|
+
const diagnosis = runDiagnosis(failure);
|
|
551
|
+
const title = displayListTitle(
|
|
552
|
+
failure.threadTitle,
|
|
553
|
+
failure.threadPreview,
|
|
554
|
+
"Agent run",
|
|
555
|
+
);
|
|
556
|
+
const statusLabel =
|
|
557
|
+
failure.status === "errored"
|
|
558
|
+
? t("dispatch.pages.threadDebugErrored", {
|
|
559
|
+
defaultValue: "Errored",
|
|
560
|
+
})
|
|
561
|
+
: failure.status === "aborted"
|
|
562
|
+
? t("dispatch.pages.threadDebugAborted", {
|
|
563
|
+
defaultValue: "Aborted",
|
|
564
|
+
})
|
|
565
|
+
: failure.status === "truncated"
|
|
566
|
+
? t("dispatch.pages.threadDebugTruncated", {
|
|
567
|
+
defaultValue: "Truncated",
|
|
568
|
+
})
|
|
569
|
+
: failure.status;
|
|
570
|
+
|
|
571
|
+
return (
|
|
572
|
+
<button
|
|
573
|
+
type="button"
|
|
574
|
+
onClick={onSelect}
|
|
575
|
+
aria-current={selected ? "true" : undefined}
|
|
576
|
+
className={cn(
|
|
577
|
+
"group w-full border-b px-4 py-3 text-left transition-[background-color,border-color] last:border-b-0",
|
|
578
|
+
selected ? "bg-accent/70" : "hover:bg-muted/50",
|
|
579
|
+
)}
|
|
580
|
+
>
|
|
581
|
+
<div className="flex items-start gap-3">
|
|
582
|
+
<span
|
|
583
|
+
aria-hidden="true"
|
|
584
|
+
className={cn(
|
|
585
|
+
"mt-1.5 size-2 shrink-0 rounded-full",
|
|
586
|
+
failure.status === "aborted"
|
|
587
|
+
? "bg-muted-foreground/50"
|
|
588
|
+
: "bg-destructive",
|
|
589
|
+
)}
|
|
590
|
+
/>
|
|
591
|
+
<div className="min-w-0 flex-1">
|
|
592
|
+
<div className="flex items-start justify-between gap-3">
|
|
593
|
+
<div className="min-w-0">
|
|
594
|
+
<div className="truncate text-sm font-medium text-foreground">
|
|
595
|
+
{title}
|
|
596
|
+
</div>
|
|
597
|
+
<div className="mt-0.5 truncate text-xs text-muted-foreground">
|
|
598
|
+
{failureSourceLabel(failure)}
|
|
599
|
+
</div>
|
|
600
|
+
</div>
|
|
601
|
+
<span className="shrink-0 text-[11px] text-muted-foreground">
|
|
602
|
+
{formatRelativeDate(failure.completedAt ?? failure.startedAt)}
|
|
603
|
+
</span>
|
|
604
|
+
</div>
|
|
605
|
+
<div className="mt-2 flex min-w-0 items-center gap-2 text-xs">
|
|
606
|
+
<span className="truncate font-medium text-foreground">
|
|
607
|
+
{diagnosis.title}
|
|
608
|
+
</span>
|
|
609
|
+
<span className="shrink-0 text-muted-foreground">·</span>
|
|
610
|
+
<span className="shrink-0 text-muted-foreground">
|
|
611
|
+
{statusLabel}
|
|
612
|
+
</span>
|
|
613
|
+
</div>
|
|
614
|
+
{failure.durationMs == null ? null : (
|
|
615
|
+
<div className="mt-1 text-[11px] text-muted-foreground">
|
|
616
|
+
{formatDuration(failure.durationMs)}
|
|
617
|
+
</div>
|
|
618
|
+
)}
|
|
619
|
+
</div>
|
|
620
|
+
</div>
|
|
621
|
+
<span className="sr-only">
|
|
622
|
+
{t("dispatch.pages.threadDebugInspectFailure", {
|
|
623
|
+
defaultValue: "Inspect failed run",
|
|
624
|
+
})}
|
|
625
|
+
</span>
|
|
626
|
+
</button>
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
function MessageBlock({ message }: { message: ThreadMessage }) {
|
|
631
|
+
const tools = toolParts(message);
|
|
632
|
+
return (
|
|
633
|
+
<div className="rounded-lg bg-card">
|
|
634
|
+
<div className="flex flex-wrap items-center justify-between gap-2 border-b px-3 py-2">
|
|
635
|
+
<div className="flex min-w-0 items-center gap-2">
|
|
636
|
+
<Badge
|
|
637
|
+
variant={message.role === "assistant" ? "default" : "secondary"}
|
|
638
|
+
>
|
|
639
|
+
{message.role}
|
|
640
|
+
</Badge>
|
|
641
|
+
<span className="truncate text-sm font-medium text-foreground">
|
|
642
|
+
{messageTitle(message)}
|
|
643
|
+
</span>
|
|
644
|
+
</div>
|
|
645
|
+
<div className="flex items-center gap-2 text-[11px] text-muted-foreground">
|
|
646
|
+
{message.attachments.length > 0 ? (
|
|
647
|
+
<Badge variant="outline">{message.attachments.length} files</Badge>
|
|
648
|
+
) : null}
|
|
649
|
+
<span>{formatDate(message.createdAt)}</span>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
<div className="space-y-3 px-3 py-3">
|
|
653
|
+
{message.text ? (
|
|
654
|
+
<div className="whitespace-pre-wrap break-words text-sm leading-relaxed text-foreground">
|
|
655
|
+
{message.text}
|
|
656
|
+
</div>
|
|
657
|
+
) : (
|
|
658
|
+
<div className="text-sm text-muted-foreground">No text content</div>
|
|
659
|
+
)}
|
|
660
|
+
{tools.length > 0 ? (
|
|
661
|
+
<div className="space-y-2">
|
|
662
|
+
{tools.map((tool, index) => (
|
|
663
|
+
<details
|
|
664
|
+
key={`${message.id ?? message.index}-tool-${index}`}
|
|
665
|
+
className="rounded-md border bg-muted/30 px-3 py-2"
|
|
666
|
+
>
|
|
667
|
+
<summary className="cursor-pointer text-xs font-medium text-foreground">
|
|
668
|
+
{tool.toolName ?? tool.name ?? "tool-call"}
|
|
669
|
+
</summary>
|
|
670
|
+
<RawBlock value={tool} className="mt-2 max-h-72" />
|
|
671
|
+
</details>
|
|
672
|
+
))}
|
|
673
|
+
</div>
|
|
674
|
+
) : null}
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
function EvidenceStat({ label, value }: { label: string; value: string }) {
|
|
681
|
+
return (
|
|
682
|
+
<div className="min-w-0">
|
|
683
|
+
<div className="text-[11px] text-muted-foreground">{label}</div>
|
|
684
|
+
<div className="mt-1 truncate text-sm font-medium text-foreground">
|
|
685
|
+
{value}
|
|
686
|
+
</div>
|
|
687
|
+
</div>
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
function DiagnosisPanel({
|
|
692
|
+
run,
|
|
693
|
+
eventCount,
|
|
694
|
+
toolCount,
|
|
695
|
+
}: {
|
|
696
|
+
run: ThreadRun;
|
|
697
|
+
eventCount: number;
|
|
698
|
+
toolCount: number;
|
|
699
|
+
}) {
|
|
700
|
+
const diagnosis = runDiagnosis(run);
|
|
701
|
+
const isStoppedByUser = diagnosis.code === "aborted:user";
|
|
702
|
+
const isScheduled =
|
|
703
|
+
run.id?.startsWith("job-") || run.dispatchMode === "background-processing";
|
|
704
|
+
const workerClaimed = run.dispatchMode === "background-processing";
|
|
705
|
+
const staleThreshold = isScheduled
|
|
706
|
+
? workerClaimed
|
|
707
|
+
? "45s after claim"
|
|
708
|
+
: "90s before claim"
|
|
709
|
+
: "15s";
|
|
710
|
+
return (
|
|
711
|
+
<section
|
|
712
|
+
className={cn(
|
|
713
|
+
"border-b px-5 py-4",
|
|
714
|
+
isStoppedByUser ? "bg-muted/20" : "bg-destructive/[0.04]",
|
|
715
|
+
)}
|
|
716
|
+
aria-label="Run diagnosis"
|
|
717
|
+
>
|
|
718
|
+
<div className="flex items-start gap-3">
|
|
719
|
+
<span
|
|
720
|
+
aria-hidden="true"
|
|
721
|
+
className={cn(
|
|
722
|
+
"mt-1.5 size-2 shrink-0 rounded-full",
|
|
723
|
+
isStoppedByUser ? "bg-muted-foreground/50" : "bg-destructive",
|
|
724
|
+
)}
|
|
725
|
+
/>
|
|
726
|
+
<div className="min-w-0 flex-1">
|
|
727
|
+
<div className="flex flex-wrap items-start justify-between gap-2">
|
|
728
|
+
<div>
|
|
729
|
+
<h2 className="text-sm font-semibold text-foreground">
|
|
730
|
+
{diagnosis.title}
|
|
731
|
+
</h2>
|
|
732
|
+
<p className="mt-1 max-w-3xl text-sm leading-relaxed text-muted-foreground">
|
|
733
|
+
{diagnosis.summary}
|
|
734
|
+
</p>
|
|
735
|
+
</div>
|
|
736
|
+
<span className="font-mono text-[11px] text-muted-foreground">
|
|
737
|
+
{diagnosis.code}
|
|
738
|
+
</span>
|
|
739
|
+
</div>
|
|
740
|
+
<div className="mt-3 flex items-start gap-2 text-xs text-foreground">
|
|
741
|
+
<IconInfoCircle className="mt-0.5 size-3.5 shrink-0 text-muted-foreground" />
|
|
742
|
+
<span>
|
|
743
|
+
<span className="font-medium">Next check:</span>{" "}
|
|
744
|
+
{diagnosis.nextStep}
|
|
745
|
+
</span>
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
<div className="mt-4 grid gap-3 border-t pt-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-7">
|
|
750
|
+
<EvidenceStat
|
|
751
|
+
label="Run type"
|
|
752
|
+
value={isScheduled ? "Scheduled job" : "Interactive chat"}
|
|
753
|
+
/>
|
|
754
|
+
<EvidenceStat
|
|
755
|
+
label="Worker claim"
|
|
756
|
+
value={workerClaimed ? "Claimed" : "Not recorded"}
|
|
757
|
+
/>
|
|
758
|
+
<EvidenceStat
|
|
759
|
+
label="Last heartbeat"
|
|
760
|
+
value={formatDate(run.heartbeatAt)}
|
|
761
|
+
/>
|
|
762
|
+
<EvidenceStat
|
|
763
|
+
label="Last progress"
|
|
764
|
+
value={formatDate(run.lastProgressAt)}
|
|
765
|
+
/>
|
|
766
|
+
<EvidenceStat label="Stale threshold" value={staleThreshold} />
|
|
767
|
+
<EvidenceStat
|
|
768
|
+
label="Recovery payload"
|
|
769
|
+
value={run.hasDispatchPayload ? "Retained" : "Not retained"}
|
|
770
|
+
/>
|
|
771
|
+
<EvidenceStat
|
|
772
|
+
label="Worker stage"
|
|
773
|
+
value={
|
|
774
|
+
diagnosticStage(run.workerStage) ||
|
|
775
|
+
diagnosticStage(run.diagStage) ||
|
|
776
|
+
"Not recorded"
|
|
777
|
+
}
|
|
778
|
+
/>
|
|
779
|
+
</div>
|
|
780
|
+
<div className="mt-3 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
|
|
781
|
+
<span>
|
|
782
|
+
Evidence:{" "}
|
|
783
|
+
<span className="font-medium text-foreground">
|
|
784
|
+
{eventCount.toLocaleString()}
|
|
785
|
+
</span>{" "}
|
|
786
|
+
retained events
|
|
787
|
+
</span>
|
|
788
|
+
<span aria-hidden="true">·</span>
|
|
789
|
+
<span>
|
|
790
|
+
<span className="font-medium text-foreground">
|
|
791
|
+
{toolCount.toLocaleString()}
|
|
792
|
+
</span>{" "}
|
|
793
|
+
tool starts
|
|
794
|
+
</span>
|
|
795
|
+
<span aria-hidden="true">·</span>
|
|
796
|
+
<span>Liveness uses the newer heartbeat or progress timestamp.</span>
|
|
797
|
+
</div>
|
|
798
|
+
</section>
|
|
799
|
+
);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
function RunTimeline({ run }: { run: ThreadRun }) {
|
|
803
|
+
const summary = summarizeEvents(run.events);
|
|
804
|
+
return (
|
|
805
|
+
<div className="space-y-4">
|
|
806
|
+
<div className="flex flex-wrap items-center justify-between gap-3 border-b pb-3">
|
|
807
|
+
<div className="flex items-center gap-2">
|
|
808
|
+
<IconActivity className="size-4 text-muted-foreground" />
|
|
809
|
+
<span className="text-sm font-medium text-foreground">
|
|
810
|
+
{run.events.length.toLocaleString()} events retained
|
|
811
|
+
</span>
|
|
812
|
+
<span className="text-xs text-muted-foreground">
|
|
813
|
+
{summary.toolStarts} tool starts
|
|
814
|
+
</span>
|
|
815
|
+
</div>
|
|
816
|
+
<span className="text-xs text-muted-foreground">
|
|
817
|
+
Started {formatDate(run.startedAt)}
|
|
818
|
+
</span>
|
|
819
|
+
</div>
|
|
820
|
+
|
|
821
|
+
{summary.toolNames.length > 0 ? (
|
|
822
|
+
<div className="flex flex-wrap gap-2">
|
|
823
|
+
{summary.toolNames.map(([name, count]) => (
|
|
824
|
+
<span
|
|
825
|
+
key={name}
|
|
826
|
+
className="inline-flex items-center gap-1.5 rounded-md bg-muted/60 px-2 py-1 text-xs text-foreground"
|
|
827
|
+
>
|
|
828
|
+
<IconTool className="size-3.5 text-muted-foreground" />
|
|
829
|
+
{name} <span className="text-muted-foreground">×{count}</span>
|
|
830
|
+
</span>
|
|
831
|
+
))}
|
|
832
|
+
</div>
|
|
833
|
+
) : null}
|
|
834
|
+
|
|
835
|
+
<div className="divide-y rounded-lg border">
|
|
836
|
+
{summary.meaningful.length > 0 ? (
|
|
837
|
+
summary.meaningful.map((entry) => (
|
|
838
|
+
<div
|
|
839
|
+
key={`${run.id}-${entry.seq}`}
|
|
840
|
+
className="flex items-start gap-3 px-3 py-2.5 text-xs"
|
|
841
|
+
>
|
|
842
|
+
<span className="w-8 shrink-0 font-mono text-muted-foreground">
|
|
843
|
+
#{entry.seq}
|
|
844
|
+
</span>
|
|
845
|
+
<span className="min-w-0 flex-1 break-words text-foreground">
|
|
846
|
+
{eventLabel(entry.event)}
|
|
847
|
+
</span>
|
|
848
|
+
</div>
|
|
849
|
+
))
|
|
850
|
+
) : (
|
|
851
|
+
<div className="px-3 py-4 text-sm text-muted-foreground">
|
|
852
|
+
No summarized events were retained for this run.
|
|
853
|
+
</div>
|
|
854
|
+
)}
|
|
855
|
+
</div>
|
|
856
|
+
|
|
857
|
+
<details className="rounded-lg border">
|
|
858
|
+
<summary className="flex cursor-pointer list-none items-center justify-between gap-3 px-3 py-2.5 text-xs font-medium text-foreground">
|
|
859
|
+
<span>Show raw event stream</span>
|
|
860
|
+
<span className="font-normal text-muted-foreground">
|
|
861
|
+
{run.events.length.toLocaleString()} records
|
|
862
|
+
</span>
|
|
863
|
+
</summary>
|
|
864
|
+
<div className="space-y-2 border-t p-3">
|
|
865
|
+
{run.events.map((entry) => (
|
|
866
|
+
<details
|
|
867
|
+
key={`${run.id}-raw-${entry.seq}`}
|
|
868
|
+
className="rounded-md border bg-muted/20 px-3 py-2"
|
|
869
|
+
>
|
|
870
|
+
<summary className="cursor-pointer text-xs text-foreground">
|
|
871
|
+
#{entry.seq} {eventLabel(entry.event)}
|
|
872
|
+
</summary>
|
|
873
|
+
<RawBlock value={entry.event} className="mt-2 max-h-72" />
|
|
874
|
+
</details>
|
|
875
|
+
))}
|
|
876
|
+
</div>
|
|
877
|
+
</details>
|
|
878
|
+
</div>
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
function ThreadDetail({ detail }: { detail: ThreadDebugResponse }) {
|
|
883
|
+
const rawBundle = useMemo(
|
|
884
|
+
() => ({
|
|
885
|
+
thread: detail.thread,
|
|
886
|
+
debug: detail.debug,
|
|
887
|
+
debugRuns: detail.debugRuns,
|
|
888
|
+
queuedMessages: detail.queuedMessages,
|
|
889
|
+
threadData: detail.threadData,
|
|
890
|
+
runs: detail.runs,
|
|
891
|
+
traces: detail.traces,
|
|
892
|
+
feedback: detail.feedback,
|
|
893
|
+
satisfaction: detail.satisfaction,
|
|
894
|
+
evals: detail.evals,
|
|
895
|
+
checkpoints: detail.checkpoints,
|
|
896
|
+
}),
|
|
897
|
+
[detail],
|
|
898
|
+
);
|
|
899
|
+
const primaryRun =
|
|
900
|
+
detail.runs.find((run) => run.id === detail.lookup?.runId) ??
|
|
901
|
+
detail.runs[0] ??
|
|
902
|
+
null;
|
|
903
|
+
const eventCount = detail.runs.reduce(
|
|
904
|
+
(total, run) => total + run.events.length,
|
|
905
|
+
0,
|
|
906
|
+
);
|
|
907
|
+
const toolCount = detail.runs.reduce(
|
|
908
|
+
(total, run) => total + summarizeEvents(run.events).toolStarts,
|
|
909
|
+
0,
|
|
910
|
+
);
|
|
911
|
+
|
|
912
|
+
return (
|
|
913
|
+
<div className="min-w-0">
|
|
914
|
+
<div className="border-b px-5 py-4">
|
|
915
|
+
<div className="flex flex-wrap items-start justify-between gap-3">
|
|
916
|
+
<div className="min-w-0">
|
|
917
|
+
<div className="truncate text-base font-semibold text-foreground">
|
|
918
|
+
{detail.thread.title || detail.thread.preview || detail.thread.id}
|
|
919
|
+
</div>
|
|
920
|
+
<div className="mt-1 flex min-w-0 items-center gap-2 text-xs text-muted-foreground">
|
|
921
|
+
<span className="truncate font-mono">
|
|
922
|
+
{detail.lookup?.runId || detail.thread.id}
|
|
923
|
+
</span>
|
|
924
|
+
{detail.lookup?.runId ? (
|
|
925
|
+
<Button
|
|
926
|
+
type="button"
|
|
927
|
+
variant="ghost"
|
|
928
|
+
size="icon"
|
|
929
|
+
className="size-7 shrink-0"
|
|
930
|
+
title="Copy run ID"
|
|
931
|
+
aria-label="Copy run ID"
|
|
932
|
+
onClick={() =>
|
|
933
|
+
void navigator.clipboard?.writeText(
|
|
934
|
+
detail.lookup?.runId ?? "",
|
|
935
|
+
)
|
|
936
|
+
}
|
|
937
|
+
>
|
|
938
|
+
<IconCopy className="size-3.5" />
|
|
939
|
+
</Button>
|
|
940
|
+
) : null}
|
|
941
|
+
</div>
|
|
942
|
+
</div>
|
|
943
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
944
|
+
{primaryRun ? (
|
|
945
|
+
<Badge
|
|
946
|
+
variant={
|
|
947
|
+
primaryRun.status === "errored" ? "destructive" : "secondary"
|
|
948
|
+
}
|
|
949
|
+
>
|
|
950
|
+
{primaryRun.status}
|
|
951
|
+
</Badge>
|
|
952
|
+
) : null}
|
|
953
|
+
<Badge variant="outline">{detail.source.label}</Badge>
|
|
954
|
+
</div>
|
|
955
|
+
</div>
|
|
956
|
+
<div className="mt-3 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
|
|
957
|
+
<span className="truncate">{detail.thread.ownerEmail}</span>
|
|
958
|
+
<span aria-hidden="true">·</span>
|
|
959
|
+
<span>{detail.messages.length} messages</span>
|
|
960
|
+
<span aria-hidden="true">·</span>
|
|
961
|
+
<span>{detail.runs.length} runs</span>
|
|
962
|
+
<span aria-hidden="true">·</span>
|
|
963
|
+
<span>updated {formatDate(detail.thread.updatedAt)}</span>
|
|
964
|
+
</div>
|
|
965
|
+
</div>
|
|
966
|
+
|
|
967
|
+
{primaryRun ? (
|
|
968
|
+
<DiagnosisPanel
|
|
969
|
+
run={primaryRun}
|
|
970
|
+
eventCount={eventCount}
|
|
971
|
+
toolCount={toolCount}
|
|
972
|
+
/>
|
|
973
|
+
) : null}
|
|
974
|
+
|
|
975
|
+
<Tabs defaultValue="overview" className="p-5">
|
|
976
|
+
<TabsList className="h-9">
|
|
977
|
+
<TabsTrigger value="overview">Overview</TabsTrigger>
|
|
978
|
+
<TabsTrigger value="timeline">Timeline</TabsTrigger>
|
|
979
|
+
<TabsTrigger value="transcript">Transcript</TabsTrigger>
|
|
980
|
+
<TabsTrigger value="technical">Technical</TabsTrigger>
|
|
981
|
+
</TabsList>
|
|
982
|
+
|
|
983
|
+
<TabsContent value="overview" className="mt-4 space-y-4">
|
|
984
|
+
<div className="flex items-start gap-2 border-b pb-4 text-sm text-muted-foreground">
|
|
985
|
+
<IconInfoCircle className="mt-0.5 size-4 shrink-0" />
|
|
986
|
+
<p className="max-w-2xl leading-relaxed">
|
|
987
|
+
This is the compact readout. Open Timeline for the last meaningful
|
|
988
|
+
signals, Transcript for persisted messages and tool calls, or
|
|
989
|
+
Technical for raw records.
|
|
990
|
+
</p>
|
|
991
|
+
</div>
|
|
992
|
+
<div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-3">
|
|
993
|
+
<EvidenceStat
|
|
994
|
+
label="Created"
|
|
995
|
+
value={formatDate(detail.thread.createdAt)}
|
|
996
|
+
/>
|
|
997
|
+
<EvidenceStat
|
|
998
|
+
label="Updated"
|
|
999
|
+
value={formatDate(detail.thread.updatedAt)}
|
|
1000
|
+
/>
|
|
1001
|
+
<EvidenceStat label="Source" value={detail.source.label} />
|
|
1002
|
+
<EvidenceStat
|
|
1003
|
+
label="Messages"
|
|
1004
|
+
value={detail.messages.length.toLocaleString()}
|
|
1005
|
+
/>
|
|
1006
|
+
<EvidenceStat
|
|
1007
|
+
label="Retained events"
|
|
1008
|
+
value={eventCount.toLocaleString()}
|
|
1009
|
+
/>
|
|
1010
|
+
<EvidenceStat
|
|
1011
|
+
label="Tool starts"
|
|
1012
|
+
value={toolCount.toLocaleString()}
|
|
1013
|
+
/>
|
|
1014
|
+
</div>
|
|
1015
|
+
{detail.messages.length === 0 && eventCount > 0 ? (
|
|
1016
|
+
<div className="flex items-start gap-2 rounded-lg border bg-muted/20 px-3 py-3 text-sm text-muted-foreground">
|
|
1017
|
+
<IconActivity className="mt-0.5 size-4 shrink-0" />
|
|
1018
|
+
<span>
|
|
1019
|
+
No persisted messages are available, but this run retained{" "}
|
|
1020
|
+
{eventCount.toLocaleString()} execution events. The timeline is
|
|
1021
|
+
the authoritative audit trail for this run.
|
|
1022
|
+
</span>
|
|
1023
|
+
</div>
|
|
1024
|
+
) : null}
|
|
1025
|
+
</TabsContent>
|
|
1026
|
+
|
|
1027
|
+
<TabsContent value="timeline" className="mt-4 space-y-5">
|
|
1028
|
+
{detail.runs.length > 0 ? (
|
|
1029
|
+
detail.runs.map((run) => (
|
|
1030
|
+
<section
|
|
1031
|
+
key={run.id}
|
|
1032
|
+
className="border-b pb-5 last:border-b-0 last:pb-0"
|
|
1033
|
+
>
|
|
1034
|
+
<div className="mb-3 flex flex-wrap items-center gap-2">
|
|
1035
|
+
<Badge
|
|
1036
|
+
variant={
|
|
1037
|
+
run.status === "errored" ? "destructive" : "outline"
|
|
1038
|
+
}
|
|
1039
|
+
>
|
|
1040
|
+
{run.status}
|
|
1041
|
+
</Badge>
|
|
1042
|
+
<span className="font-mono text-xs text-muted-foreground">
|
|
1043
|
+
{run.id}
|
|
1044
|
+
</span>
|
|
1045
|
+
<span className="text-xs text-muted-foreground">
|
|
1046
|
+
{formatDuration(run.durationMs)}
|
|
1047
|
+
</span>
|
|
1048
|
+
</div>
|
|
1049
|
+
<RunTimeline run={run} />
|
|
1050
|
+
</section>
|
|
1051
|
+
))
|
|
1052
|
+
) : (
|
|
1053
|
+
<div className="rounded-lg border border-dashed px-4 py-8 text-center text-sm text-muted-foreground">
|
|
1054
|
+
No retained runs.
|
|
1055
|
+
</div>
|
|
1056
|
+
)}
|
|
1057
|
+
</TabsContent>
|
|
1058
|
+
|
|
1059
|
+
<TabsContent value="transcript" className="mt-4 space-y-3">
|
|
1060
|
+
{detail.messages.length > 0 ? (
|
|
1061
|
+
detail.messages.map((message) => (
|
|
1062
|
+
<MessageBlock
|
|
1063
|
+
key={message.id ?? `message-${message.index}`}
|
|
1064
|
+
message={message}
|
|
1065
|
+
/>
|
|
1066
|
+
))
|
|
1067
|
+
) : (
|
|
1068
|
+
<div className="rounded-lg border border-dashed px-4 py-8 text-center text-sm text-muted-foreground">
|
|
1069
|
+
<div>No persisted messages.</div>
|
|
1070
|
+
{eventCount > 0 ? (
|
|
1071
|
+
<div className="mt-1">
|
|
1072
|
+
Open Timeline to audit the retained execution events.
|
|
1073
|
+
</div>
|
|
1074
|
+
) : null}
|
|
1075
|
+
</div>
|
|
1076
|
+
)}
|
|
1077
|
+
</TabsContent>
|
|
1078
|
+
|
|
1079
|
+
<TabsContent value="technical" className="mt-4 space-y-3">
|
|
1080
|
+
<details className="rounded-lg border">
|
|
1081
|
+
<summary className="flex cursor-pointer list-none items-center justify-between gap-3 px-3 py-3 text-sm font-medium text-foreground">
|
|
1082
|
+
<span>Run records</span>
|
|
1083
|
+
<span className="text-xs font-normal text-muted-foreground">
|
|
1084
|
+
{detail.runs.length} {detail.runs.length === 1 ? "run" : "runs"}
|
|
1085
|
+
</span>
|
|
1086
|
+
</summary>
|
|
1087
|
+
<div className="space-y-4 border-t p-3">
|
|
1088
|
+
{detail.runs.length > 0 ? (
|
|
1089
|
+
detail.runs.map((run) => (
|
|
1090
|
+
<div key={run.id} className="space-y-3">
|
|
1091
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
1092
|
+
<Badge
|
|
1093
|
+
variant={
|
|
1094
|
+
run.status === "errored" ? "destructive" : "outline"
|
|
1095
|
+
}
|
|
1096
|
+
>
|
|
1097
|
+
{run.status}
|
|
1098
|
+
</Badge>
|
|
1099
|
+
<span className="break-all font-mono text-xs text-foreground">
|
|
1100
|
+
{run.id}
|
|
1101
|
+
</span>
|
|
1102
|
+
</div>
|
|
1103
|
+
<div className="grid gap-3 text-xs sm:grid-cols-2 xl:grid-cols-3">
|
|
1104
|
+
<EvidenceStat
|
|
1105
|
+
label="Failure code"
|
|
1106
|
+
value={run.errorCode || "n/a"}
|
|
1107
|
+
/>
|
|
1108
|
+
<EvidenceStat
|
|
1109
|
+
label="Terminal reason"
|
|
1110
|
+
value={run.terminalReason || run.abortReason || "n/a"}
|
|
1111
|
+
/>
|
|
1112
|
+
<EvidenceStat
|
|
1113
|
+
label="Dispatch mode"
|
|
1114
|
+
value={run.dispatchMode || "foreground"}
|
|
1115
|
+
/>
|
|
1116
|
+
<EvidenceStat
|
|
1117
|
+
label="Last stage"
|
|
1118
|
+
value={
|
|
1119
|
+
diagnosticStage(run.workerStage) ||
|
|
1120
|
+
diagnosticStage(run.diagStage) ||
|
|
1121
|
+
"n/a"
|
|
1122
|
+
}
|
|
1123
|
+
/>
|
|
1124
|
+
<EvidenceStat
|
|
1125
|
+
label="Duration"
|
|
1126
|
+
value={formatDuration(
|
|
1127
|
+
run.durationMs ??
|
|
1128
|
+
(run.completedAt == null
|
|
1129
|
+
? null
|
|
1130
|
+
: run.completedAt - run.startedAt),
|
|
1131
|
+
)}
|
|
1132
|
+
/>
|
|
1133
|
+
<EvidenceStat
|
|
1134
|
+
label="Last progress"
|
|
1135
|
+
value={formatDate(
|
|
1136
|
+
run.lastProgressAt ?? run.heartbeatAt,
|
|
1137
|
+
)}
|
|
1138
|
+
/>
|
|
1139
|
+
<EvidenceStat
|
|
1140
|
+
label="In-flight marker"
|
|
1141
|
+
value={formatDate(run.inFlightSince)}
|
|
1142
|
+
/>
|
|
1143
|
+
<EvidenceStat
|
|
1144
|
+
label="Recovery payload"
|
|
1145
|
+
value={
|
|
1146
|
+
run.hasDispatchPayload ? "retained" : "not retained"
|
|
1147
|
+
}
|
|
1148
|
+
/>
|
|
1149
|
+
</div>
|
|
1150
|
+
{run.errorDetail ? (
|
|
1151
|
+
<div className="rounded-md bg-destructive/10 px-3 py-2 text-xs leading-relaxed text-destructive">
|
|
1152
|
+
{run.errorDetail}
|
|
1153
|
+
</div>
|
|
1154
|
+
) : null}
|
|
1155
|
+
</div>
|
|
1156
|
+
))
|
|
1157
|
+
) : (
|
|
1158
|
+
<div className="text-sm text-muted-foreground">
|
|
1159
|
+
No retained run records.
|
|
1160
|
+
</div>
|
|
1161
|
+
)}
|
|
1162
|
+
</div>
|
|
1163
|
+
</details>
|
|
1164
|
+
|
|
1165
|
+
<details className="rounded-lg border">
|
|
1166
|
+
<summary className="flex cursor-pointer list-none items-center justify-between gap-3 px-3 py-3 text-sm font-medium text-foreground">
|
|
1167
|
+
<span>Traces, feedback, and evaluations</span>
|
|
1168
|
+
<span className="text-xs font-normal text-muted-foreground">
|
|
1169
|
+
diagnostic records
|
|
1170
|
+
</span>
|
|
1171
|
+
</summary>
|
|
1172
|
+
<div className="grid gap-4 border-t p-3 lg:grid-cols-2">
|
|
1173
|
+
<div>
|
|
1174
|
+
<div className="mb-2 text-xs font-medium text-foreground">
|
|
1175
|
+
Debug runs
|
|
1176
|
+
</div>
|
|
1177
|
+
<RawBlock
|
|
1178
|
+
value={
|
|
1179
|
+
detail.debugRuns.length > 0
|
|
1180
|
+
? detail.debugRuns
|
|
1181
|
+
: (detail.debug ?? {})
|
|
1182
|
+
}
|
|
1183
|
+
/>
|
|
1184
|
+
</div>
|
|
1185
|
+
<div>
|
|
1186
|
+
<div className="mb-2 text-xs font-medium text-foreground">
|
|
1187
|
+
Trace summaries
|
|
1188
|
+
</div>
|
|
1189
|
+
<RawBlock value={detail.traces.summaries} />
|
|
1190
|
+
</div>
|
|
1191
|
+
<div>
|
|
1192
|
+
<div className="mb-2 text-xs font-medium text-foreground">
|
|
1193
|
+
Trace spans
|
|
1194
|
+
</div>
|
|
1195
|
+
<RawBlock value={detail.traces.spans} />
|
|
1196
|
+
</div>
|
|
1197
|
+
<div>
|
|
1198
|
+
<div className="mb-2 text-xs font-medium text-foreground">
|
|
1199
|
+
Feedback and evals
|
|
1200
|
+
</div>
|
|
1201
|
+
<RawBlock
|
|
1202
|
+
value={{
|
|
1203
|
+
feedback: detail.feedback,
|
|
1204
|
+
satisfaction: detail.satisfaction,
|
|
1205
|
+
evals: detail.evals,
|
|
1206
|
+
checkpoints: detail.checkpoints,
|
|
1207
|
+
}}
|
|
1208
|
+
/>
|
|
1209
|
+
</div>
|
|
1210
|
+
</div>
|
|
1211
|
+
</details>
|
|
1212
|
+
|
|
1213
|
+
<details className="rounded-lg border">
|
|
1214
|
+
<summary className="flex cursor-pointer list-none items-center justify-between gap-3 px-3 py-3 text-sm font-medium text-foreground">
|
|
1215
|
+
<span>Raw thread bundle</span>
|
|
1216
|
+
<span className="text-xs font-normal text-muted-foreground">
|
|
1217
|
+
JSON
|
|
1218
|
+
</span>
|
|
1219
|
+
</summary>
|
|
1220
|
+
<div className="space-y-3 border-t p-3">
|
|
1221
|
+
<RawBlock value={rawBundle} />
|
|
1222
|
+
<RawBlock value={detail.rawThreadData} />
|
|
1223
|
+
</div>
|
|
1224
|
+
</details>
|
|
1225
|
+
</TabsContent>
|
|
1226
|
+
</Tabs>
|
|
1227
|
+
</div>
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export default function ThreadDebugRoute() {
|
|
1232
|
+
const t = useT();
|
|
1233
|
+
const [routeSearchParams, setRouteSearchParams] = useSearchParams();
|
|
1234
|
+
const mode = parseMode(routeSearchParams.get("mode"));
|
|
1235
|
+
const sourceId =
|
|
1236
|
+
routeSearchParams.get("source") ||
|
|
1237
|
+
(mode === "failures" ? "all" : "current");
|
|
1238
|
+
const ownerEmail = routeSearchParams.get("owner") || "";
|
|
1239
|
+
const query = routeSearchParams.get("query") || "";
|
|
1240
|
+
const status = parseFailureStatus(routeSearchParams.get("status"));
|
|
1241
|
+
const regime = parseFailureRegime(routeSearchParams.get("regime"));
|
|
1242
|
+
const range = parseFailureRange(routeSearchParams.get("range"));
|
|
1243
|
+
const runId = routeSearchParams.get("runId") || "";
|
|
1244
|
+
const threadId = routeSearchParams.get("threadId") || "";
|
|
1245
|
+
const inspectSourceId = routeSearchParams.get("inspectSource") || "";
|
|
1246
|
+
const [lookupId, setLookupId] = useState("");
|
|
1247
|
+
const [searchFocused, setSearchFocused] = useState(false);
|
|
1248
|
+
|
|
1249
|
+
function updateRouteState(
|
|
1250
|
+
updates: Record<string, string | null | undefined>,
|
|
1251
|
+
) {
|
|
1252
|
+
const next = new URLSearchParams(routeSearchParams);
|
|
1253
|
+
for (const [key, value] of Object.entries(updates)) {
|
|
1254
|
+
if (value == null || value === "") next.delete(key);
|
|
1255
|
+
else next.set(key, value);
|
|
1256
|
+
}
|
|
1257
|
+
setRouteSearchParams(next, { replace: true });
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
const sourcesQuery = useActionQuery<{
|
|
1261
|
+
access: {
|
|
1262
|
+
viewerEmail: string;
|
|
1263
|
+
orgId: string | null;
|
|
1264
|
+
role: string | null;
|
|
1265
|
+
envAdmin: boolean;
|
|
1266
|
+
canInspectAll: boolean;
|
|
1267
|
+
memberCount: number;
|
|
1268
|
+
};
|
|
1269
|
+
sources: ThreadDebugSource[];
|
|
1270
|
+
}>("list-agent-thread-sources", {});
|
|
1271
|
+
const { data: sourcesData } = sourcesQuery;
|
|
1272
|
+
|
|
1273
|
+
const sources: ThreadDebugSource[] = sourcesData?.sources ?? [];
|
|
1274
|
+
const failureParams = useMemo(
|
|
1275
|
+
() => ({
|
|
1276
|
+
sourceId,
|
|
1277
|
+
ownerEmail: ownerEmail.trim() || undefined,
|
|
1278
|
+
status,
|
|
1279
|
+
regime,
|
|
1280
|
+
lookbackHours: FAILURE_RANGE_HOURS[range],
|
|
1281
|
+
limit: 25,
|
|
1282
|
+
}),
|
|
1283
|
+
[ownerEmail, range, regime, sourceId, status],
|
|
1284
|
+
);
|
|
1285
|
+
const {
|
|
1286
|
+
data: failuresData,
|
|
1287
|
+
isLoading: failuresLoading,
|
|
1288
|
+
error: failuresError,
|
|
1289
|
+
refetch: refetchFailures,
|
|
1290
|
+
} = useActionQuery<AgentRunFailuresResponse>(
|
|
1291
|
+
"list-agent-run-failures",
|
|
1292
|
+
failureParams,
|
|
1293
|
+
{ enabled: mode === "failures" },
|
|
1294
|
+
);
|
|
1295
|
+
const failures = failuresData?.failures ?? EMPTY_FAILURES;
|
|
1296
|
+
const failurePatterns = useMemo(() => {
|
|
1297
|
+
const patterns = new Map<string, { label: string; count: number }>();
|
|
1298
|
+
for (const failure of failures) {
|
|
1299
|
+
const diagnosis = runDiagnosis(failure);
|
|
1300
|
+
const current = patterns.get(diagnosis.code);
|
|
1301
|
+
patterns.set(diagnosis.code, {
|
|
1302
|
+
label: diagnosis.title,
|
|
1303
|
+
count: (current?.count ?? 0) + 1,
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
return [...patterns.values()].sort((a, b) => b.count - a.count);
|
|
1307
|
+
}, [failures]);
|
|
1308
|
+
const unavailableFailureSources = (failuresData?.sources ?? []).filter(
|
|
1309
|
+
(source) => source.status !== "ok",
|
|
1310
|
+
);
|
|
1311
|
+
const failureSourceStatusLabels = {
|
|
1312
|
+
ok: "ok",
|
|
1313
|
+
disconnected: t("dispatch.pages.threadDebugDisconnected", {
|
|
1314
|
+
defaultValue: "disconnected",
|
|
1315
|
+
}),
|
|
1316
|
+
unsupported: t("dispatch.pages.threadDebugUnsupported", {
|
|
1317
|
+
defaultValue: "unsupported",
|
|
1318
|
+
}),
|
|
1319
|
+
unavailable: t("dispatch.pages.threadDebugUnavailable", {
|
|
1320
|
+
defaultValue: "unavailable",
|
|
1321
|
+
}),
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
const threadSourceId = sourceId === "all" ? "current" : sourceId;
|
|
1325
|
+
const detailSourceId =
|
|
1326
|
+
runId && inspectSourceId ? inspectSourceId : threadSourceId;
|
|
1327
|
+
const searchParams = useMemo(
|
|
1328
|
+
() => ({
|
|
1329
|
+
sourceId: threadSourceId,
|
|
1330
|
+
query: query.trim() || undefined,
|
|
1331
|
+
limit: 25,
|
|
1332
|
+
}),
|
|
1333
|
+
[query, threadSourceId],
|
|
1334
|
+
);
|
|
1335
|
+
const {
|
|
1336
|
+
data: searchData,
|
|
1337
|
+
isLoading: searchLoading,
|
|
1338
|
+
error: searchError,
|
|
1339
|
+
refetch: refetchSearch,
|
|
1340
|
+
} = useActionQuery<{
|
|
1341
|
+
count: number;
|
|
1342
|
+
threads: ThreadSearchResult[];
|
|
1343
|
+
access: { scope: string; canInspectAll: boolean };
|
|
1344
|
+
source: { id: string; label: string };
|
|
1345
|
+
}>("search-agent-threads", searchParams, { enabled: mode === "threads" });
|
|
1346
|
+
const searchThreads: ThreadSearchResult[] = searchData?.threads ?? [];
|
|
1347
|
+
const ownerEmailSuggestions = useMemo(() => {
|
|
1348
|
+
const emailQuery = query.trim().includes("@")
|
|
1349
|
+
? query.trim().toLowerCase()
|
|
1350
|
+
: "";
|
|
1351
|
+
return [...new Set(searchThreads.map((thread) => thread.ownerEmail))]
|
|
1352
|
+
.filter(
|
|
1353
|
+
(email) => !emailQuery || email.toLowerCase().includes(emailQuery),
|
|
1354
|
+
)
|
|
1355
|
+
.slice(0, 8);
|
|
1356
|
+
}, [query, searchThreads]);
|
|
1357
|
+
|
|
1358
|
+
const detailParams = useMemo(
|
|
1359
|
+
() => ({
|
|
1360
|
+
sourceId: detailSourceId,
|
|
1361
|
+
...(runId ? { runId } : { threadId }),
|
|
1362
|
+
ownerEmail: ownerEmail.trim() || undefined,
|
|
1363
|
+
maxRuns: 20,
|
|
1364
|
+
maxEvents: 800,
|
|
1365
|
+
maxTraceSpans: 600,
|
|
1366
|
+
}),
|
|
1367
|
+
[detailSourceId, ownerEmail, runId, threadId],
|
|
1368
|
+
);
|
|
1369
|
+
const {
|
|
1370
|
+
data: detail,
|
|
1371
|
+
isLoading: detailLoading,
|
|
1372
|
+
error: detailError,
|
|
1373
|
+
refetch: refetchDetail,
|
|
1374
|
+
} = useActionQuery<ThreadDebugResponse>(
|
|
1375
|
+
"get-agent-thread-debug",
|
|
1376
|
+
detailParams,
|
|
1377
|
+
{
|
|
1378
|
+
enabled: Boolean(runId || threadId),
|
|
1379
|
+
},
|
|
1380
|
+
);
|
|
1381
|
+
|
|
1382
|
+
const detailPane = (
|
|
1383
|
+
<section className="min-w-0">
|
|
1384
|
+
{detailError ? (
|
|
1385
|
+
<ActionQueryError
|
|
1386
|
+
error={detailError}
|
|
1387
|
+
onRetry={() => void refetchDetail()}
|
|
1388
|
+
/>
|
|
1389
|
+
) : null}
|
|
1390
|
+
{detailLoading ? (
|
|
1391
|
+
<div className="p-5">
|
|
1392
|
+
<Skeleton className="h-6 w-72" />
|
|
1393
|
+
<Skeleton className="mt-3 h-4 w-96" />
|
|
1394
|
+
<Skeleton className="mt-6 h-[520px] w-full" />
|
|
1395
|
+
</div>
|
|
1396
|
+
) : detail ? (
|
|
1397
|
+
<ThreadDetail detail={detail} />
|
|
1398
|
+
) : (
|
|
1399
|
+
<div className="flex min-h-[520px] flex-col items-center justify-center px-5 text-center text-sm text-muted-foreground">
|
|
1400
|
+
<IconFileSearch className="mb-2 size-5" />
|
|
1401
|
+
<div className="font-medium text-foreground">
|
|
1402
|
+
Choose a run to inspect
|
|
1403
|
+
</div>
|
|
1404
|
+
<div className="mt-1 max-w-xs leading-relaxed">
|
|
1405
|
+
See the diagnosis first, then open the timeline or technical
|
|
1406
|
+
evidence.
|
|
1407
|
+
</div>
|
|
1408
|
+
</div>
|
|
1409
|
+
)}
|
|
1410
|
+
</section>
|
|
1411
|
+
);
|
|
1412
|
+
|
|
1413
|
+
return (
|
|
1414
|
+
<DispatchShell
|
|
1415
|
+
title={t("dispatch.pages.threadDebugTitle", {
|
|
1416
|
+
defaultValue: "Thread Debug",
|
|
1417
|
+
})}
|
|
1418
|
+
description={t("dispatch.pages.threadDebugDescription", {
|
|
1419
|
+
defaultValue: "Find the failure pattern, then inspect the evidence.",
|
|
1420
|
+
})}
|
|
1421
|
+
>
|
|
1422
|
+
<div className="space-y-4">
|
|
1423
|
+
{sourcesQuery.isError ? (
|
|
1424
|
+
<ActionQueryError
|
|
1425
|
+
error={sourcesQuery.error}
|
|
1426
|
+
onRetry={() => void sourcesQuery.refetch()}
|
|
1427
|
+
/>
|
|
1428
|
+
) : null}
|
|
1429
|
+
<Tabs
|
|
1430
|
+
value={mode}
|
|
1431
|
+
onValueChange={(value) => {
|
|
1432
|
+
const nextMode = parseMode(value);
|
|
1433
|
+
updateRouteState({
|
|
1434
|
+
mode: nextMode,
|
|
1435
|
+
source:
|
|
1436
|
+
nextMode === "threads" && sourceId === "all"
|
|
1437
|
+
? "current"
|
|
1438
|
+
: sourceId,
|
|
1439
|
+
runId: null,
|
|
1440
|
+
threadId: null,
|
|
1441
|
+
inspectSource: null,
|
|
1442
|
+
});
|
|
1443
|
+
}}
|
|
1444
|
+
>
|
|
1445
|
+
<TabsList>
|
|
1446
|
+
<TabsTrigger value="failures">
|
|
1447
|
+
{t("dispatch.pages.threadDebugFailedRuns", {
|
|
1448
|
+
defaultValue: "Failed runs",
|
|
1449
|
+
})}
|
|
1450
|
+
</TabsTrigger>
|
|
1451
|
+
<TabsTrigger value="threads">
|
|
1452
|
+
{t("dispatch.pages.threadDebugThreads", {
|
|
1453
|
+
defaultValue: "Threads",
|
|
1454
|
+
})}
|
|
1455
|
+
</TabsTrigger>
|
|
1456
|
+
</TabsList>
|
|
1457
|
+
|
|
1458
|
+
<TabsContent value="failures" className="mt-4 space-y-4">
|
|
1459
|
+
<section className="border-b pb-4">
|
|
1460
|
+
<div className="flex flex-wrap items-start justify-between gap-3">
|
|
1461
|
+
<div>
|
|
1462
|
+
<h2 className="text-sm font-semibold text-foreground">
|
|
1463
|
+
Run health
|
|
1464
|
+
</h2>
|
|
1465
|
+
<p className="mt-1 text-xs text-muted-foreground">
|
|
1466
|
+
Start with the dominant failure pattern, then open one run.
|
|
1467
|
+
</p>
|
|
1468
|
+
</div>
|
|
1469
|
+
<Button
|
|
1470
|
+
type="button"
|
|
1471
|
+
variant="ghost"
|
|
1472
|
+
size="icon"
|
|
1473
|
+
onClick={() => void refetchFailures()}
|
|
1474
|
+
aria-label={t("dispatch.pages.threadDebugRefreshFailures", {
|
|
1475
|
+
defaultValue: "Refresh failed runs",
|
|
1476
|
+
})}
|
|
1477
|
+
>
|
|
1478
|
+
<IconRefresh className="size-4" />
|
|
1479
|
+
</Button>
|
|
1480
|
+
</div>
|
|
1481
|
+
<div className="mt-3 grid gap-2 sm:grid-cols-2 xl:grid-cols-[200px_minmax(180px,1fr)_180px_160px_150px]">
|
|
1482
|
+
<Select
|
|
1483
|
+
value={sourceId}
|
|
1484
|
+
onValueChange={(value) =>
|
|
1485
|
+
updateRouteState({
|
|
1486
|
+
source: value,
|
|
1487
|
+
runId: null,
|
|
1488
|
+
threadId: null,
|
|
1489
|
+
inspectSource: null,
|
|
1490
|
+
})
|
|
1491
|
+
}
|
|
1492
|
+
>
|
|
1493
|
+
<SelectTrigger>
|
|
1494
|
+
<SelectValue
|
|
1495
|
+
placeholder={t("dispatch.pages.threadDebugSource", {
|
|
1496
|
+
defaultValue: "Source",
|
|
1497
|
+
})}
|
|
1498
|
+
/>
|
|
1499
|
+
</SelectTrigger>
|
|
1500
|
+
<SelectContent>
|
|
1501
|
+
<SelectItem value="all">
|
|
1502
|
+
{t("dispatch.pages.threadDebugAllSources", {
|
|
1503
|
+
defaultValue: "All sources",
|
|
1504
|
+
})}
|
|
1505
|
+
</SelectItem>
|
|
1506
|
+
{sources.map((source) => (
|
|
1507
|
+
<SelectItem key={source.id} value={source.id}>
|
|
1508
|
+
{source.label}
|
|
1509
|
+
</SelectItem>
|
|
1510
|
+
))}
|
|
1511
|
+
</SelectContent>
|
|
1512
|
+
</Select>
|
|
1513
|
+
<Input
|
|
1514
|
+
value={ownerEmail}
|
|
1515
|
+
onChange={(event) =>
|
|
1516
|
+
updateRouteState({ owner: event.target.value })
|
|
1517
|
+
}
|
|
1518
|
+
aria-label={t("dispatch.pages.threadDebugOwner", {
|
|
1519
|
+
defaultValue: "Owner email",
|
|
1520
|
+
})}
|
|
1521
|
+
placeholder={t("dispatch.pages.threadDebugOwner", {
|
|
1522
|
+
defaultValue: "Owner email",
|
|
1523
|
+
})}
|
|
1524
|
+
/>
|
|
1525
|
+
<Select
|
|
1526
|
+
value={status}
|
|
1527
|
+
onValueChange={(value) =>
|
|
1528
|
+
updateRouteState({
|
|
1529
|
+
status: parseFailureStatus(value),
|
|
1530
|
+
runId: null,
|
|
1531
|
+
inspectSource: null,
|
|
1532
|
+
})
|
|
1533
|
+
}
|
|
1534
|
+
>
|
|
1535
|
+
<SelectTrigger>
|
|
1536
|
+
<SelectValue
|
|
1537
|
+
placeholder={t("dispatch.pages.threadDebugStatus", {
|
|
1538
|
+
defaultValue: "Status",
|
|
1539
|
+
})}
|
|
1540
|
+
/>
|
|
1541
|
+
</SelectTrigger>
|
|
1542
|
+
<SelectContent>
|
|
1543
|
+
<SelectItem value="all">
|
|
1544
|
+
{t("dispatch.pages.threadDebugAllStatuses", {
|
|
1545
|
+
defaultValue: "All statuses",
|
|
1546
|
+
})}
|
|
1547
|
+
</SelectItem>
|
|
1548
|
+
<SelectItem value="errored">
|
|
1549
|
+
{t("dispatch.pages.threadDebugErrored", {
|
|
1550
|
+
defaultValue: "Errored",
|
|
1551
|
+
})}
|
|
1552
|
+
</SelectItem>
|
|
1553
|
+
<SelectItem value="aborted">
|
|
1554
|
+
{t("dispatch.pages.threadDebugAborted", {
|
|
1555
|
+
defaultValue: "Aborted",
|
|
1556
|
+
})}
|
|
1557
|
+
</SelectItem>
|
|
1558
|
+
<SelectItem value="truncated">
|
|
1559
|
+
{t("dispatch.pages.threadDebugTruncated", {
|
|
1560
|
+
defaultValue: "Truncated",
|
|
1561
|
+
})}
|
|
1562
|
+
</SelectItem>
|
|
1563
|
+
</SelectContent>
|
|
1564
|
+
</Select>
|
|
1565
|
+
<Select
|
|
1566
|
+
value={regime}
|
|
1567
|
+
onValueChange={(value) =>
|
|
1568
|
+
updateRouteState({
|
|
1569
|
+
regime: parseFailureRegime(value),
|
|
1570
|
+
runId: null,
|
|
1571
|
+
inspectSource: null,
|
|
1572
|
+
})
|
|
1573
|
+
}
|
|
1574
|
+
>
|
|
1575
|
+
<SelectTrigger aria-label="Run type">
|
|
1576
|
+
<SelectValue placeholder="Run type" />
|
|
1577
|
+
</SelectTrigger>
|
|
1578
|
+
<SelectContent>
|
|
1579
|
+
<SelectItem value="all">All run types</SelectItem>
|
|
1580
|
+
<SelectItem value="interactive">
|
|
1581
|
+
Interactive chats
|
|
1582
|
+
</SelectItem>
|
|
1583
|
+
<SelectItem value="scheduled">Scheduled jobs</SelectItem>
|
|
1584
|
+
</SelectContent>
|
|
1585
|
+
</Select>
|
|
1586
|
+
<Select
|
|
1587
|
+
value={range}
|
|
1588
|
+
onValueChange={(value) =>
|
|
1589
|
+
updateRouteState({
|
|
1590
|
+
range: parseFailureRange(value),
|
|
1591
|
+
runId: null,
|
|
1592
|
+
inspectSource: null,
|
|
1593
|
+
})
|
|
1594
|
+
}
|
|
1595
|
+
>
|
|
1596
|
+
<SelectTrigger>
|
|
1597
|
+
<SelectValue
|
|
1598
|
+
placeholder={t("dispatch.pages.threadDebugRange", {
|
|
1599
|
+
defaultValue: "Time range",
|
|
1600
|
+
})}
|
|
1601
|
+
/>
|
|
1602
|
+
</SelectTrigger>
|
|
1603
|
+
<SelectContent>
|
|
1604
|
+
<SelectItem value="24h">
|
|
1605
|
+
{t("dispatch.pages.threadDebugRange24h", {
|
|
1606
|
+
defaultValue: "Last 24 hours",
|
|
1607
|
+
})}
|
|
1608
|
+
</SelectItem>
|
|
1609
|
+
<SelectItem value="7d">
|
|
1610
|
+
{t("dispatch.pages.threadDebugRange7d", {
|
|
1611
|
+
defaultValue: "Last 7 days",
|
|
1612
|
+
})}
|
|
1613
|
+
</SelectItem>
|
|
1614
|
+
<SelectItem value="30d">
|
|
1615
|
+
{t("dispatch.pages.threadDebugRange30d", {
|
|
1616
|
+
defaultValue: "Last 30 days",
|
|
1617
|
+
})}
|
|
1618
|
+
</SelectItem>
|
|
1619
|
+
</SelectContent>
|
|
1620
|
+
</Select>
|
|
1621
|
+
</div>
|
|
1622
|
+
{unavailableFailureSources.length > 0 ? (
|
|
1623
|
+
<div className="mt-2 flex items-start gap-1.5 text-xs text-muted-foreground">
|
|
1624
|
+
<IconAlertTriangle className="mt-0.5 size-3.5 shrink-0" />
|
|
1625
|
+
<span>
|
|
1626
|
+
{t("dispatch.pages.threadDebugUnavailableSources", {
|
|
1627
|
+
defaultValue: "Unavailable sources:",
|
|
1628
|
+
})}{" "}
|
|
1629
|
+
{unavailableFailureSources
|
|
1630
|
+
.map(
|
|
1631
|
+
({ source, status: sourceStatus }) =>
|
|
1632
|
+
`${source.label} (${failureSourceStatusLabels[sourceStatus]})`,
|
|
1633
|
+
)
|
|
1634
|
+
.join(", ")}
|
|
1635
|
+
</span>
|
|
1636
|
+
</div>
|
|
1637
|
+
) : null}
|
|
1638
|
+
{failuresData?.partial ? (
|
|
1639
|
+
<div className="mt-2">
|
|
1640
|
+
<Badge variant="outline">
|
|
1641
|
+
{t("dispatch.pages.threadDebugPartialResults", {
|
|
1642
|
+
defaultValue: "Partial results",
|
|
1643
|
+
})}
|
|
1644
|
+
</Badge>
|
|
1645
|
+
</div>
|
|
1646
|
+
) : null}
|
|
1647
|
+
</section>
|
|
1648
|
+
|
|
1649
|
+
{failuresError ? (
|
|
1650
|
+
<ActionQueryError
|
|
1651
|
+
error={failuresError}
|
|
1652
|
+
onRetry={() => void refetchFailures()}
|
|
1653
|
+
/>
|
|
1654
|
+
) : null}
|
|
1655
|
+
|
|
1656
|
+
<div className="overflow-hidden rounded-xl border bg-card">
|
|
1657
|
+
<div className="grid xl:grid-cols-[360px_minmax(0,1fr)]">
|
|
1658
|
+
<section className="min-h-[560px] border-b xl:border-b-0 xl:border-r">
|
|
1659
|
+
<div className="flex items-center justify-between border-b px-4 py-3">
|
|
1660
|
+
<div>
|
|
1661
|
+
<div className="text-sm font-semibold text-foreground">
|
|
1662
|
+
Needs attention
|
|
1663
|
+
</div>
|
|
1664
|
+
<div className="mt-0.5 text-xs text-muted-foreground">
|
|
1665
|
+
{failurePatterns[0]
|
|
1666
|
+
? `${failurePatterns[0].count} ${failurePatterns[0].label.toLowerCase()}`
|
|
1667
|
+
: "No active failure pattern"}
|
|
1668
|
+
</div>
|
|
1669
|
+
</div>
|
|
1670
|
+
<span className="text-xs text-muted-foreground">
|
|
1671
|
+
{failures.length}
|
|
1672
|
+
</span>
|
|
1673
|
+
</div>
|
|
1674
|
+
<div className="max-h-[760px] overflow-auto">
|
|
1675
|
+
{failuresLoading ? (
|
|
1676
|
+
<>
|
|
1677
|
+
<Skeleton className="mx-4 mt-4 h-16 w-[calc(100%-2rem)]" />
|
|
1678
|
+
<Skeleton className="mx-4 mt-2 h-16 w-[calc(100%-2rem)]" />
|
|
1679
|
+
<Skeleton className="mx-4 mt-2 h-16 w-[calc(100%-2rem)]" />
|
|
1680
|
+
</>
|
|
1681
|
+
) : null}
|
|
1682
|
+
{!failuresLoading && failures.length === 0 ? (
|
|
1683
|
+
<div className="flex min-h-64 flex-col items-center justify-center px-4 text-center text-sm text-muted-foreground">
|
|
1684
|
+
<IconDatabase className="mb-2 size-5" />
|
|
1685
|
+
{t("dispatch.pages.threadDebugNoFailures", {
|
|
1686
|
+
defaultValue: "No failed runs found.",
|
|
1687
|
+
})}
|
|
1688
|
+
</div>
|
|
1689
|
+
) : null}
|
|
1690
|
+
{failures.map((failure) => (
|
|
1691
|
+
<FailureCard
|
|
1692
|
+
key={`${failureSourceId(failure)}:${failure.id}`}
|
|
1693
|
+
failure={failure}
|
|
1694
|
+
selected={
|
|
1695
|
+
runId === failure.id &&
|
|
1696
|
+
detailSourceId === failureSourceId(failure)
|
|
1697
|
+
}
|
|
1698
|
+
onSelect={() =>
|
|
1699
|
+
updateRouteState({
|
|
1700
|
+
inspectSource: failureSourceId(failure),
|
|
1701
|
+
runId: failure.id,
|
|
1702
|
+
threadId: null,
|
|
1703
|
+
})
|
|
1704
|
+
}
|
|
1705
|
+
/>
|
|
1706
|
+
))}
|
|
1707
|
+
</div>
|
|
1708
|
+
</section>
|
|
1709
|
+
<div className="min-w-0">{detailPane}</div>
|
|
1710
|
+
</div>
|
|
1711
|
+
</div>
|
|
1712
|
+
</TabsContent>
|
|
1713
|
+
|
|
1714
|
+
<TabsContent value="threads" className="mt-4 space-y-4">
|
|
1715
|
+
<section className="border-b pb-4">
|
|
1716
|
+
<div className="grid gap-2 pt-3 lg:grid-cols-2 xl:grid-cols-[auto_180px_minmax(220px,1fr)_auto_auto]">
|
|
1717
|
+
<Select
|
|
1718
|
+
value={threadSourceId}
|
|
1719
|
+
onValueChange={(value) =>
|
|
1720
|
+
updateRouteState({
|
|
1721
|
+
source: value,
|
|
1722
|
+
runId: null,
|
|
1723
|
+
threadId: null,
|
|
1724
|
+
inspectSource: null,
|
|
1725
|
+
})
|
|
1726
|
+
}
|
|
1727
|
+
>
|
|
1728
|
+
<SelectTrigger>
|
|
1729
|
+
<SelectValue
|
|
1730
|
+
placeholder={t("dispatch.pages.threadDebugSource", {
|
|
1731
|
+
defaultValue: "Source",
|
|
1732
|
+
})}
|
|
1733
|
+
/>
|
|
1734
|
+
</SelectTrigger>
|
|
1735
|
+
<SelectContent>
|
|
1736
|
+
{sources.map((source) => (
|
|
1737
|
+
<SelectItem key={source.id} value={source.id}>
|
|
1738
|
+
{source.label}
|
|
1739
|
+
</SelectItem>
|
|
1740
|
+
))}
|
|
1741
|
+
{sources.length === 0 ? (
|
|
1742
|
+
<SelectItem value="current">
|
|
1743
|
+
{t("dispatch.pages.threadDebugCurrentDatabase", {
|
|
1744
|
+
defaultValue: "Current Dispatch DB",
|
|
1745
|
+
})}
|
|
1746
|
+
</SelectItem>
|
|
1747
|
+
) : null}
|
|
1748
|
+
</SelectContent>
|
|
1749
|
+
</Select>
|
|
1750
|
+
<Popover
|
|
1751
|
+
open={searchFocused && ownerEmailSuggestions.length > 0}
|
|
1752
|
+
onOpenChange={setSearchFocused}
|
|
1753
|
+
>
|
|
1754
|
+
<PopoverAnchor asChild>
|
|
1755
|
+
<span className="block">
|
|
1756
|
+
<Input
|
|
1757
|
+
value={query}
|
|
1758
|
+
onChange={(event) =>
|
|
1759
|
+
updateRouteState({ query: event.target.value })
|
|
1760
|
+
}
|
|
1761
|
+
onFocus={() => setSearchFocused(true)}
|
|
1762
|
+
placeholder={t(
|
|
1763
|
+
"dispatch.pages.threadDebugSearchPlaceholder",
|
|
1764
|
+
{
|
|
1765
|
+
defaultValue: "Search threads or email",
|
|
1766
|
+
},
|
|
1767
|
+
)}
|
|
1768
|
+
aria-label="Search threads or email"
|
|
1769
|
+
/>
|
|
1770
|
+
</span>
|
|
1771
|
+
</PopoverAnchor>
|
|
1772
|
+
<PopoverContent
|
|
1773
|
+
align="start"
|
|
1774
|
+
sideOffset={6}
|
|
1775
|
+
className="w-[var(--radix-popover-trigger-width)] p-1"
|
|
1776
|
+
onOpenAutoFocus={(event) => event.preventDefault()}
|
|
1777
|
+
>
|
|
1778
|
+
<div role="listbox" aria-label="Owner email suggestions">
|
|
1779
|
+
{ownerEmailSuggestions.map((email) => (
|
|
1780
|
+
<button
|
|
1781
|
+
key={email}
|
|
1782
|
+
type="button"
|
|
1783
|
+
role="option"
|
|
1784
|
+
aria-selected="false"
|
|
1785
|
+
className="flex w-full items-center rounded-sm px-2 py-1.5 text-left text-sm text-foreground outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"
|
|
1786
|
+
onMouseDown={(event) => event.preventDefault()}
|
|
1787
|
+
onClick={() => {
|
|
1788
|
+
updateRouteState({ query: email });
|
|
1789
|
+
setSearchFocused(false);
|
|
1790
|
+
}}
|
|
1791
|
+
>
|
|
1792
|
+
{email}
|
|
1793
|
+
</button>
|
|
1794
|
+
))}
|
|
1795
|
+
</div>
|
|
1796
|
+
</PopoverContent>
|
|
1797
|
+
</Popover>
|
|
1798
|
+
<Button
|
|
1799
|
+
type="button"
|
|
1800
|
+
size="icon"
|
|
1801
|
+
onClick={() => void refetchSearch()}
|
|
1802
|
+
aria-label="Search threads or email"
|
|
1803
|
+
title="Search threads or email"
|
|
1804
|
+
>
|
|
1805
|
+
<IconSearch className="size-4" />
|
|
1806
|
+
</Button>
|
|
1807
|
+
<Button
|
|
1808
|
+
type="button"
|
|
1809
|
+
variant="ghost"
|
|
1810
|
+
size="icon"
|
|
1811
|
+
onClick={() => void refetchSearch()}
|
|
1812
|
+
aria-label={t("dispatch.pages.threadDebugRefreshThreads", {
|
|
1813
|
+
defaultValue: "Refresh threads",
|
|
1814
|
+
})}
|
|
1815
|
+
>
|
|
1816
|
+
<IconRefresh className="size-4" />
|
|
1817
|
+
</Button>
|
|
1818
|
+
<details className="order-first justify-self-start rounded-lg border">
|
|
1819
|
+
<summary
|
|
1820
|
+
aria-label="Advanced lookup"
|
|
1821
|
+
title="Advanced lookup"
|
|
1822
|
+
className="flex size-10 cursor-pointer list-none items-center justify-center text-foreground"
|
|
1823
|
+
>
|
|
1824
|
+
<IconAdjustmentsHorizontal
|
|
1825
|
+
aria-hidden="true"
|
|
1826
|
+
className="size-4"
|
|
1827
|
+
/>
|
|
1828
|
+
<span className="sr-only">Advanced lookup</span>
|
|
1829
|
+
</summary>
|
|
1830
|
+
<div className="grid gap-3 border-t p-3 lg:w-80">
|
|
1831
|
+
<Input
|
|
1832
|
+
value={lookupId}
|
|
1833
|
+
onChange={(event) => setLookupId(event.target.value)}
|
|
1834
|
+
placeholder={t(
|
|
1835
|
+
"dispatch.pages.threadDebugLookupPlaceholder",
|
|
1836
|
+
{
|
|
1837
|
+
defaultValue: "Paste thread or request/run ID",
|
|
1838
|
+
},
|
|
1839
|
+
)}
|
|
1840
|
+
className="font-mono"
|
|
1841
|
+
/>
|
|
1842
|
+
<Button
|
|
1843
|
+
type="button"
|
|
1844
|
+
variant="outline"
|
|
1845
|
+
onClick={() => {
|
|
1846
|
+
const trimmed = lookupId.trim();
|
|
1847
|
+
if (!trimmed) return;
|
|
1848
|
+
updateRouteState(
|
|
1849
|
+
trimmed.startsWith("run-")
|
|
1850
|
+
? {
|
|
1851
|
+
runId: trimmed,
|
|
1852
|
+
threadId: null,
|
|
1853
|
+
inspectSource: null,
|
|
1854
|
+
}
|
|
1855
|
+
: {
|
|
1856
|
+
threadId: trimmed,
|
|
1857
|
+
runId: null,
|
|
1858
|
+
inspectSource: null,
|
|
1859
|
+
},
|
|
1860
|
+
);
|
|
1861
|
+
}}
|
|
1862
|
+
>
|
|
1863
|
+
<IconFileSearch className="size-4" />
|
|
1864
|
+
{t("dispatch.pages.threadDebugInspect", {
|
|
1865
|
+
defaultValue: "Inspect",
|
|
1866
|
+
})}
|
|
1867
|
+
</Button>
|
|
1868
|
+
</div>
|
|
1869
|
+
</details>
|
|
1870
|
+
</div>
|
|
1871
|
+
</section>
|
|
1872
|
+
|
|
1873
|
+
{searchError ? (
|
|
1874
|
+
<ActionQueryError
|
|
1875
|
+
error={searchError}
|
|
1876
|
+
onRetry={() => void refetchSearch()}
|
|
1877
|
+
/>
|
|
1878
|
+
) : null}
|
|
1879
|
+
|
|
1880
|
+
<div className="overflow-hidden rounded-xl border bg-card">
|
|
1881
|
+
<div className="grid xl:grid-cols-[360px_minmax(0,1fr)]">
|
|
1882
|
+
<section className="min-h-[560px] border-b xl:border-b-0 xl:border-r">
|
|
1883
|
+
<div className="max-h-[760px] overflow-auto">
|
|
1884
|
+
{searchLoading ? (
|
|
1885
|
+
<>
|
|
1886
|
+
<Skeleton className="mx-4 mt-4 h-16 w-[calc(100%-2rem)]" />
|
|
1887
|
+
<Skeleton className="mx-4 mt-2 h-16 w-[calc(100%-2rem)]" />
|
|
1888
|
+
<Skeleton className="mx-4 mt-2 h-16 w-[calc(100%-2rem)]" />
|
|
1889
|
+
</>
|
|
1890
|
+
) : null}
|
|
1891
|
+
{!searchLoading && searchThreads.length === 0 ? (
|
|
1892
|
+
<div className="flex min-h-64 flex-col items-center justify-center px-4 text-center text-sm text-muted-foreground">
|
|
1893
|
+
<IconDatabase className="mb-2 size-5" />
|
|
1894
|
+
{t("dispatch.pages.threadDebugNoThreads", {
|
|
1895
|
+
defaultValue: "No threads found.",
|
|
1896
|
+
})}
|
|
1897
|
+
</div>
|
|
1898
|
+
) : null}
|
|
1899
|
+
{searchThreads.map((result) => (
|
|
1900
|
+
<ResultCard
|
|
1901
|
+
key={result.id}
|
|
1902
|
+
result={result}
|
|
1903
|
+
selected={threadId === result.id}
|
|
1904
|
+
onSelect={() =>
|
|
1905
|
+
updateRouteState({
|
|
1906
|
+
threadId: result.id,
|
|
1907
|
+
runId: null,
|
|
1908
|
+
inspectSource: null,
|
|
1909
|
+
})
|
|
1910
|
+
}
|
|
1911
|
+
/>
|
|
1912
|
+
))}
|
|
1913
|
+
</div>
|
|
1914
|
+
</section>
|
|
1915
|
+
<div className="min-w-0">{detailPane}</div>
|
|
1916
|
+
</div>
|
|
1917
|
+
</div>
|
|
1918
|
+
</TabsContent>
|
|
1919
|
+
</Tabs>
|
|
1920
|
+
</div>
|
|
1921
|
+
</DispatchShell>
|
|
1922
|
+
);
|
|
1923
|
+
}
|