@burdenoff/microfe-botmanor 2026.1120.21 → 2026.1120.22

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.
Files changed (36) hide show
  1. package/dist/botlit/components/A2ACardVerificationCard.d.ts +8 -0
  2. package/dist/botlit/components/A2ACardVerificationCard.js +123 -0
  3. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -0
  4. package/dist/botlit/components/A2ARunCollaborationPanel.d.ts +4 -0
  5. package/dist/botlit/components/A2ARunCollaborationPanel.js +149 -0
  6. package/dist/botlit/components/A2ARunCollaborationPanel.js.map +1 -0
  7. package/dist/botlit/components/A2AVerificationBadge.d.ts +4 -0
  8. package/dist/botlit/components/A2AVerificationBadge.js +37 -0
  9. package/dist/botlit/components/A2AVerificationBadge.js.map +1 -0
  10. package/dist/botlit/components/AgentA2APanel.js +85 -73
  11. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  12. package/dist/botlit/hooks/index.d.ts +1 -1
  13. package/dist/botlit/hooks/useA2A.d.ts +36 -0
  14. package/dist/botlit/hooks/useA2A.js +154 -109
  15. package/dist/botlit/hooks/useA2A.js.map +1 -1
  16. package/dist/botlit/hooks/useA2APlan.d.ts +8 -0
  17. package/dist/botlit/hooks/useA2APlan.js +24 -0
  18. package/dist/botlit/hooks/useA2APlan.js.map +1 -0
  19. package/dist/botlit/pages/A2AAgentDetailPage.js +384 -342
  20. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  21. package/dist/botlit/pages/A2ARegistryPage.js +148 -140
  22. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  23. package/dist/botlit/pages/ExecutionDetailPage.js +172 -170
  24. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  25. package/dist/botlit/utils/a2aRunCollaboration.d.ts +37 -0
  26. package/dist/botlit/utils/a2aRunCollaboration.js +42 -0
  27. package/dist/botlit/utils/a2aRunCollaboration.js.map +1 -0
  28. package/dist/botlit/utils/a2aVerificationStatus.d.ts +11 -0
  29. package/dist/botlit/utils/a2aVerificationStatus.js +18 -0
  30. package/dist/botlit/utils/a2aVerificationStatus.js.map +1 -0
  31. package/dist/generated/wspace-operations.d.ts +159 -0
  32. package/dist/generated/wspace-operations.js +186 -114
  33. package/dist/generated/wspace-operations.js.map +1 -1
  34. package/dist/generated/wspace-types.d.ts +74 -1
  35. package/dist/generated/wspace-types.js.map +1 -1
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ExecutionDetailPage.js","names":["GqlExecutionStatus","_Fragment","Fragment$1","ACTIVE_RUN_POLL_MS","RERUNNABLE_TYPES","getStatusIcon","status","ExecutionStatus","CheckCircle","XCircle","Timer","Ban","RefreshCw","Hourglass","AlertTriangle","getStatusBadgeVariant","metadataString","value","metadata","key","metadataNumber","Fact","label","mono","NamedId","id","name","RunFacts","execution","metrics","model","provider","agentVersion","ragChunks","delegations","blockedOutput","notRecorded","Card","CardHeader","CardTitle","CardDescription","CardContent","formatNumber","ExecutionDetailPage","t","useTr","useParams","useBotlit","useExecution","executionId","rerun","useRerunExecution","live","useLiveExecution","refetch","useEffect","timer","loading","PageLayout","error","ErrorState","notFound","EmptyState","Button","navigateTo","executionStatusLabel","output","readablePayload","handleReplay","created","toast","err","ArrowLeft","Badge","LiveIndicator","Copy","nativeCopyText","isNative","nativeToast","BotmanorPermissionGate","BOTMANOR_PERMISSIONS","Play","PagePurpose","Clock","formatDuration","Zap","DollarSign","formatCurrency","formatRelativeTime","ExecutionModelFallback","ExecutionFeedback"],"sources":["../../../src/botlit/pages/ExecutionDetailPage.tsx"],"sourcesContent":["/**\n * Execution Detail Page\n * @module botlit/pages\n */\n\nimport { useEffect } from 'react';\nimport type { FC, ReactNode } from 'react';\nimport { useParams } from 'react-router';\nimport { useBotlit } from '../providers/BotlitProvider';\nimport { isNative, nativeCopyText, nativeToast } from '../../utils/nativeBridge';\nimport {\n ArrowLeft,\n Play,\n Clock,\n DollarSign,\n Zap,\n AlertTriangle,\n CheckCircle,\n XCircle,\n RefreshCw,\n Hourglass,\n Copy,\n Timer,\n Ban,\n} from 'lucide-react';\nimport { toast } from 'sonner';\nimport { useTr } from '../../shared/hooks/useTr';\nimport { PageLayout } from '../components/PageLayout';\nimport { PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { EmptyState } from '../components/EmptyState';\nimport { Card, CardHeader, CardTitle, CardContent, CardDescription } from '../components/Card';\nimport { Button } from '../components/Button';\nimport { Badge } from '../components/Badge';\nimport { ErrorState } from '../components/ErrorState';\nimport { ExecutionModelFallback } from '../components/ExecutionModelFallback';\nimport { ExecutionFeedback } from '../components/ExecutionFeedback';\nimport { useExecution, type ExecutionRecord } from '../hooks/useExecutions';\nimport { useRerunExecution } from '../hooks/useRerunExecution';\nimport { useLiveExecution } from '../hooks/useExecutionLiveUpdates';\nimport { LiveIndicator } from '../components/LiveIndicator';\nimport {\n formatNumber,\n formatCurrency,\n formatDuration,\n formatRelativeTime,\n MISSING_VALUE,\n} from '../utils/formatters';\nimport { ExecutionStatus as GqlExecutionStatus } from '../../generated/wspace-types';\nimport { BOTMANOR_PERMISSIONS, BotmanorPermissionGate } from '../permissions';\nimport {\n ORPHANED_ERROR_CODE,\n executionStatusLabel,\n readablePayload,\n} from '../utils/executionStatus';\n\ntype Translate = ReturnType<typeof useTr>;\n\n/** How often an unfinished run is re-read so its outcome shows without a reload. */\nconst ACTIVE_RUN_POLL_MS = 3000;\n\n/** Execution kinds `rerunExecution` accepts; workflow runs are re-run from FluidGrids. */\nconst RERUNNABLE_TYPES: ReadonlySet<string> = new Set(['AGENT', 'APP']);\n\nconst getStatusIcon = (status: string) => {\n switch (status) {\n case GqlExecutionStatus.Completed:\n return <CheckCircle className=\"text-status-success-text\" size={20} />;\n case GqlExecutionStatus.Failed:\n return <XCircle className=\"text-status-error-text\" size={20} />;\n case GqlExecutionStatus.Timeout:\n return <Timer className=\"text-status-error-text\" size={20} />;\n case GqlExecutionStatus.Cancelled:\n return <Ban className=\"text-text-secondary\" size={20} />;\n case GqlExecutionStatus.Running:\n return <RefreshCw className=\"text-status-info-text motion-safe:animate-spin\" size={20} />;\n case GqlExecutionStatus.Pending:\n return <Hourglass className=\"text-status-warning-text\" size={20} />;\n default:\n return <AlertTriangle className=\"text-text-secondary\" size={20} />;\n }\n};\n\nconst getStatusBadgeVariant = (\n status: string\n): 'success' | 'destructive' | 'warning' | 'secondary' | 'default' => {\n switch (status) {\n case GqlExecutionStatus.Completed:\n return 'success';\n case GqlExecutionStatus.Failed:\n case GqlExecutionStatus.Timeout:\n return 'destructive';\n case GqlExecutionStatus.Pending:\n return 'warning';\n case GqlExecutionStatus.Running:\n return 'default';\n default:\n return 'secondary';\n }\n};\n\nfunction metadataString(metadata: Record<string, unknown> | null | undefined, key: string) {\n const value = metadata?.[key];\n return typeof value === 'string' && value ? value : undefined;\n}\n\nfunction metadataNumber(metadata: Record<string, unknown> | null | undefined, key: string) {\n const value = metadata?.[key];\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined;\n}\n\nconst Fact: FC<{ label: string; children: ReactNode; mono?: boolean }> = ({\n label,\n children,\n mono,\n}) => (\n <div>\n <dt className=\"text-sm text-text-secondary\">{label}</dt>\n <dd className={mono ? 'font-mono text-sm break-all' : 'font-medium break-words'}>{children}</dd>\n </div>\n);\n\n/** Name with its ID underneath, or the ID alone when no name resolves. */\nconst NamedId: FC<{ name?: string | null; id?: string | null }> = ({ name, id }) => {\n if (!id) return <>{MISSING_VALUE}</>;\n return (\n <>\n <span className=\"block\">{name ?? id}</span>\n {name && <span className=\"block font-mono text-xs text-text-secondary\">{id}</span>}\n </>\n );\n};\n\n/** What the runtime recorded about how the run was answered (BOFF-12620). */\nconst RunFacts: FC<{ execution: ExecutionRecord; t: Translate }> = ({ execution, t }) => {\n const metadata = execution.metadata;\n const metrics = execution.metrics;\n const model = metadataString(metadata, 'model');\n const provider = metadataString(metadata, 'providerType');\n const agentVersion = metadataString(metadata, 'agentVersionId');\n const ragChunks = metrics?.ragChunks ?? metadataNumber(metadata, 'ragChunksUsed');\n const delegations = metadataNumber(metadata, 'delegationCount');\n const blockedOutput = metadata?.policyBlockedOutput === true;\n const notRecorded = t('botlit.executions.detail.notRecorded', 'Not recorded');\n return (\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.howAnswered', 'How it was answered')}</CardTitle>\n <CardDescription>\n {t(\n 'botlit.executions.detail.howAnsweredHint',\n 'What the runtime recorded for this run. Individual model and tool calls are not stored step by step.'\n )}\n </CardDescription>\n </CardHeader>\n <CardContent>\n <dl className=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n <Fact label={t('botlit.executions.detail.model', 'Model')}>\n {model ? (provider ? `${model} (${provider})` : model) : notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.agentVersion', 'Agent version')} mono>\n {agentVersion ?? notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.tokenSplit', 'Input / output tokens')}>\n {metrics\n ? `${formatNumber(metrics.inputTokens)} / ${formatNumber(metrics.outputTokens)}`\n : notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.toolCalls', 'Tool calls')}>\n {metrics?.toolCalls ?? notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.knowledgeChunks', 'Knowledge passages used')}>\n {ragChunks ?? 0}\n </Fact>\n <Fact label={t('botlit.executions.detail.delegations', 'Delegations to other agents')}>\n {delegations ?? 0}\n </Fact>\n {blockedOutput && (\n <Fact label={t('botlit.executions.detail.policy', 'Policy')}>\n {t(\n 'botlit.executions.detail.outputBlocked',\n 'The answer was replaced because a content policy blocked it.'\n )}\n </Fact>\n )}\n </dl>\n </CardContent>\n </Card>\n );\n};\n\nexport const ExecutionDetailPage: FC = () => {\n const t = useTr();\n const { executionId } = useParams();\n const { navigateTo } = useBotlit();\n const { data: execution, loading, error, refetch } = useExecution(executionId);\n const rerun = useRerunExecution();\n const status = execution?.status;\n\n // Updates arrive on the run's live stream while it is open (BOFF-15360).\n const live = useLiveExecution(executionId, status, () => void refetch());\n\n // Without a live stream, a PENDING or RUNNING run (for example one just\n // started with \"Run again\") is re-read until it finishes, so the page shows\n // its outcome.\n useEffect(() => {\n if (live === 'live') return;\n if (status !== GqlExecutionStatus.Pending && status !== GqlExecutionStatus.Running) return;\n const timer = setInterval(() => void refetch(), ACTIVE_RUN_POLL_MS);\n return () => clearInterval(timer);\n }, [live, status, refetch]);\n\n // Keep showing the run while it is re-read; only the first load shows the placeholder.\n if (loading && !execution) {\n return (\n <PageLayout title={t('botlit.executions.detail.loading', 'Loading…')}>\n <div className=\"h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg\" />\n </PageLayout>\n );\n }\n\n if (error) {\n return (\n <PageLayout title={t('botlit.executions.detail.title', 'Execution')}>\n <ErrorState resource=\"this execution\" error={error} onRetry={() => void refetch()} />\n </PageLayout>\n );\n }\n\n if (!execution) {\n const notFound = t('botlit.executions.detail.notFound', 'Execution not found');\n return (\n <PageLayout title={notFound}>\n <EmptyState\n illustration=\"empty-search\"\n title={notFound}\n description={t(\n 'botlit.executions.detail.notFoundHint',\n 'This execution does not exist in this workspace.'\n )}\n action={\n <Button onClick={() => navigateTo('executions')}>\n {t('botlit.executions.detail.back', 'Back to Executions')}\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n const label = executionStatusLabel(t, execution.status);\n const output = readablePayload(execution.output);\n\n /**\n * Runs this execution again. `rerunExecution` creates a new run with the same\n * input, agent and bot (pointing back to this one) and starts it in the\n * background; the new run's page follows it until it finishes.\n */\n const handleReplay = async () => {\n try {\n const created = await rerun.mutateAsync(execution.id);\n toast.success('Re-run started');\n navigateTo(`executions/${created.id}`);\n } catch (err) {\n toast.error(err instanceof Error ? err.message : 'Failed to re-run execution');\n }\n };\n\n return (\n <PageLayout\n title={\n <div className=\"flex items-center gap-3\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => navigateTo('executions')}\n aria-label={t('botlit.executions.detail.back', 'Back to Executions')}\n >\n <ArrowLeft size={20} />\n </Button>\n {getStatusIcon(execution.status)}\n <div>\n <div className=\"flex items-center gap-2\">\n <span>\n {t('botlit.executions.detail.heading', 'Execution {{id}}…', {\n id: execution.id.slice(0, 8),\n })}\n </span>\n <Badge variant={getStatusBadgeVariant(execution.status)}>{label}</Badge>\n <LiveIndicator state={live} />\n </div>\n <p className=\"text-sm font-normal text-text-secondary\">\n {execution.appName ?? execution.appId ?? MISSING_VALUE} /{' '}\n {execution.agentName ?? execution.agentId ?? MISSING_VALUE}\n </p>\n </div>\n </div>\n }\n actions={\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n leftIcon={<Copy size={16} />}\n onClick={() => {\n void nativeCopyText(execution.id);\n if (isNative()) void nativeToast(t('botlit.executions.detail.copied', 'Copied'));\n }}\n >\n {t('botlit.executions.detail.copyId', 'Copy ID')}\n </Button>\n {RERUNNABLE_TYPES.has(execution.type) && (\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.EXECUTION_CREATE}>\n <Button\n leftIcon={<Play size={16} />}\n onClick={() => void handleReplay()}\n isLoading={rerun.isPending}\n >\n Run again\n </Button>\n </BotmanorPermissionGate>\n )}\n </div>\n }\n >\n <div className=\"space-y-6\">\n <PagePurpose icon={<Clock size={18} />}>\n {t(\n 'botlit.executions.detail.purpose',\n 'This is the record of one agent run — its status, how long it took, the tokens and cost it consumed, the model and agent version that answered, and its input and output. Use it to debug a failure, understand an unexpected answer, or audit what the agent did on a given request.'\n )}\n </PagePurpose>\n\n {/* Metrics Summary */}\n <div className=\"grid grid-cols-2 md:grid-cols-4 gap-4\">\n <Card treatment=\"glass\" glow>\n <CardContent className=\"pt-6 text-center\">\n <Clock className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold tabular-nums\">\n {formatDuration(execution.duration)}\n </p>\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.table.duration', 'Duration')}\n </p>\n </CardContent>\n </Card>\n <Card treatment=\"metric\">\n <CardContent className=\"pt-6 text-center\">\n <Zap className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold tabular-nums\">\n {execution.tokensUsed === null || execution.tokensUsed === undefined\n ? MISSING_VALUE\n : formatNumber(execution.tokensUsed)}\n </p>\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.table.tokens', 'Tokens')}\n </p>\n </CardContent>\n </Card>\n <Card treatment=\"metric\">\n <CardContent className=\"pt-6 text-center\">\n <DollarSign className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold tabular-nums\">{formatCurrency(execution.cost)}</p>\n <p className=\"text-sm text-text-secondary\">\n {execution.cost === null || execution.cost === undefined\n ? t('botlit.executions.detail.costUnknown', 'Cost (price unknown)')\n : t('botlit.executions.table.cost', 'Cost')}\n </p>\n </CardContent>\n </Card>\n <Card treatment=\"metric\">\n <CardContent className=\"pt-6 text-center\">\n <RefreshCw className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold capitalize\">{execution.type.toLowerCase()}</p>\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.detail.type', 'Type')}\n </p>\n </CardContent>\n </Card>\n </div>\n\n {/* Failure details */}\n {(execution.errorMessage || execution.errorCode) && (\n <Card>\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2 text-status-error-text\">\n <AlertTriangle size={18} />\n {t('botlit.executions.detail.failure', 'Failure')}\n </CardTitle>\n {execution.errorCode && <CardDescription>{execution.errorCode}</CardDescription>}\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {execution.errorCode === ORPHANED_ERROR_CODE && (\n <p className=\"text-sm text-text-primary\">\n {t(\n 'botlit.executions.detail.orphanedHint',\n 'This run never finished, so the cleanup job closed it as failed.'\n )}\n </p>\n )}\n {execution.errorMessage && (\n <p className=\"text-sm text-text-primary\">{execution.errorMessage}</p>\n )}\n {execution.errorDetails && (\n <pre className=\"max-h-64 overflow-auto rounded-lg bg-bg-sunken p-3 font-mono text-xs\">\n {JSON.stringify(execution.errorDetails, null, 2)}\n </pre>\n )}\n </CardContent>\n </Card>\n )}\n\n {/* Identity & timings */}\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.runDetails', 'Run details')}</CardTitle>\n </CardHeader>\n <CardContent>\n <dl className=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n <Fact label={t('botlit.executions.detail.executionId', 'Execution ID')} mono>\n {execution.id}\n </Fact>\n <Fact label={t('botlit.executions.filters.bot', 'Bot')}>\n <NamedId name={execution.appName} id={execution.appId} />\n </Fact>\n <Fact label={t('botlit.executions.filters.agent', 'Agent')}>\n <NamedId name={execution.agentName} id={execution.agentId} />\n </Fact>\n <Fact label={t('botlit.executions.detail.conversation', 'Conversation')} mono>\n {execution.conversationId ?? MISSING_VALUE}\n </Fact>\n <Fact label={t('botlit.executions.table.started', 'Started')}>\n {formatRelativeTime(execution.createdAt)}\n </Fact>\n <Fact label={t('botlit.executions.detail.completed', 'Completed')}>\n {formatRelativeTime(execution.completedAt)}\n </Fact>\n </dl>\n </CardContent>\n </Card>\n\n <RunFacts execution={execution} t={t} />\n\n {/* Input / Output */}\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.input', 'Input')}</CardTitle>\n </CardHeader>\n <CardContent>\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-bg-sunken p-3 font-sans text-sm\">\n {readablePayload(execution.input) || MISSING_VALUE}\n </pre>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.output', 'Output')}</CardTitle>\n </CardHeader>\n <CardContent>\n {output ? (\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-bg-sunken p-3 font-sans text-sm\">\n {output}\n </pre>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.detail.noOutput', 'This run has not produced an output.')}\n </p>\n )}\n </CardContent>\n </Card>\n </div>\n\n {/* BOFF-15360 — which model served the run, and what it fell back from */}\n <ExecutionModelFallback metadata={execution.metadata} />\n <ExecutionFeedback executionId={execution.id} status={execution.status} />\n\n {/* Metadata */}\n {execution.metadata && Object.keys(execution.metadata).length > 0 && (\n <Card>\n <CardHeader>\n <CardTitle>\n {t('botlit.executions.detail.rawMetadata', 'Recorded metadata')}\n </CardTitle>\n </CardHeader>\n <CardContent>\n <pre className=\"max-h-64 overflow-auto rounded-lg bg-bg-sunken p-3 font-mono text-xs\">\n {JSON.stringify(execution.metadata, null, 2)}\n </pre>\n </CardContent>\n </Card>\n )}\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,IAAMG,IAAqB,KAGrBC,oBAAwC,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,GAEhEC,KAAiB,MAAmB;CACxC,QAAQC,GAAR;EACE,KAAKN,EAAmB,WACtB,OAAO,kBAACQ,GAAD;GAAa,WAAU;GAA2B,MAAM;EAAK,CAAA;EACtE,KAAKR,EAAmB,QACtB,OAAO,kBAACS,GAAD;GAAS,WAAU;GAAyB,MAAM;EAAK,CAAA;EAChE,KAAKT,EAAmB,SACtB,OAAO,kBAACU,GAAD;GAAO,WAAU;GAAyB,MAAM;EAAK,CAAA;EAC9D,KAAKV,EAAmB,WACtB,OAAO,kBAACW,GAAD;GAAK,WAAU;GAAsB,MAAM;EAAK,CAAA;EACzD,KAAKX,EAAmB,SACtB,OAAO,kBAACY,GAAD;GAAW,WAAU;GAAiD,MAAM;EAAK,CAAA;EAC1F,KAAKZ,EAAmB,SACtB,OAAO,kBAACa,GAAD;GAAW,WAAU;GAA2B,MAAM;EAAK,CAAA;EACpE,SACE,OAAO,kBAACC,GAAD;GAAe,WAAU;GAAsB,MAAM;EAAK,CAAA;CACrE;AACF,GAEMC,KACJ,MACoE;CACpE,QAAQT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AAD,EAAA,UAAYK,EAAE,mCAAmC,QAAQ,EAAa,CAAA,EAC5D,CAAA,GACZ,kBAACH,GAAD,EAAA,UACGyB,IACC,kBAAC,OAAD;MAAK,WAAU;MACZ,UAAAA;KACE,CAAA,IAEL,kBAAC,KAAD;MAAG,WAAU;MACV,UAAAtB,EAAE,qCAAqC,sCAAsC;KAC7E,CAAA,EAEM,CAAA,CACT,EAAA,CAAA,CACH;;IAGL,kBAAC6C,IAAD,EAAwB,UAAU7D,EAAU,SAAW,CAAA;IACvD,kBAAC8D,IAAD;KAAmB,aAAa9D,EAAU;KAAI,QAAQA,EAAU;IAAS,CAAA;IAGxEA,EAAU,YAAY,OAAO,KAAKA,EAAU,QAAQ,CAAC,CAAC,SAAS,KAC9D,kBAACS,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UACE,kBAACC,GAAD,EAAA,UACGK,EAAE,wCAAwC,mBAAmB,EACrD,CAAA,EACD,CAAA,GACZ,kBAACH,GAAD,EAAA,UACE,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAA,KAAK,UAAUb,EAAU,UAAU,MAAM,CAAC;IACxC,CAAA,EACM,CAAA,CACT,EAAA,CAAA;GAEL;;CACK,CAAA;AAEhB"}
1
+ {"version":3,"file":"ExecutionDetailPage.js","names":["GqlExecutionStatus","_Fragment","Fragment$1","ACTIVE_RUN_POLL_MS","RERUNNABLE_TYPES","getStatusIcon","status","ExecutionStatus","CheckCircle","XCircle","Timer","Ban","RefreshCw","Hourglass","AlertTriangle","getStatusBadgeVariant","metadataString","value","metadata","key","metadataNumber","Fact","label","mono","NamedId","id","name","RunFacts","execution","metrics","model","provider","agentVersion","ragChunks","delegations","blockedOutput","notRecorded","Card","CardHeader","CardTitle","CardDescription","CardContent","formatNumber","ExecutionDetailPage","t","useTr","useParams","useBotlit","useExecution","executionId","rerun","useRerunExecution","live","useLiveExecution","refetch","useEffect","timer","loading","PageLayout","error","ErrorState","notFound","EmptyState","Button","navigateTo","executionStatusLabel","output","readablePayload","handleReplay","created","toast","err","ArrowLeft","Badge","LiveIndicator","Copy","nativeCopyText","isNative","nativeToast","BotmanorPermissionGate","BOTMANOR_PERMISSIONS","Play","PagePurpose","Clock","formatDuration","Zap","DollarSign","formatCurrency","formatRelativeTime","ExecutionModelFallback","ExecutionFeedback","A2ARunCollaborationPanel"],"sources":["../../../src/botlit/pages/ExecutionDetailPage.tsx"],"sourcesContent":["/**\n * Execution Detail Page\n * @module botlit/pages\n */\n\nimport { useEffect } from 'react';\nimport type { FC, ReactNode } from 'react';\nimport { useParams } from 'react-router';\nimport { useBotlit } from '../providers/BotlitProvider';\nimport { isNative, nativeCopyText, nativeToast } from '../../utils/nativeBridge';\nimport {\n ArrowLeft,\n Play,\n Clock,\n DollarSign,\n Zap,\n AlertTriangle,\n CheckCircle,\n XCircle,\n RefreshCw,\n Hourglass,\n Copy,\n Timer,\n Ban,\n} from 'lucide-react';\nimport { toast } from 'sonner';\nimport { useTr } from '../../shared/hooks/useTr';\nimport { PageLayout } from '../components/PageLayout';\nimport { PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { EmptyState } from '../components/EmptyState';\nimport { Card, CardHeader, CardTitle, CardContent, CardDescription } from '../components/Card';\nimport { Button } from '../components/Button';\nimport { Badge } from '../components/Badge';\nimport { A2ARunCollaborationPanel } from '../components/A2ARunCollaborationPanel';\nimport { ErrorState } from '../components/ErrorState';\nimport { ExecutionModelFallback } from '../components/ExecutionModelFallback';\nimport { ExecutionFeedback } from '../components/ExecutionFeedback';\nimport { useExecution, type ExecutionRecord } from '../hooks/useExecutions';\nimport { useRerunExecution } from '../hooks/useRerunExecution';\nimport { useLiveExecution } from '../hooks/useExecutionLiveUpdates';\nimport { LiveIndicator } from '../components/LiveIndicator';\nimport {\n formatNumber,\n formatCurrency,\n formatDuration,\n formatRelativeTime,\n MISSING_VALUE,\n} from '../utils/formatters';\nimport { ExecutionStatus as GqlExecutionStatus } from '../../generated/wspace-types';\nimport { BOTMANOR_PERMISSIONS, BotmanorPermissionGate } from '../permissions';\nimport {\n ORPHANED_ERROR_CODE,\n executionStatusLabel,\n readablePayload,\n} from '../utils/executionStatus';\n\ntype Translate = ReturnType<typeof useTr>;\n\n/** How often an unfinished run is re-read so its outcome shows without a reload. */\nconst ACTIVE_RUN_POLL_MS = 3000;\n\n/** Execution kinds `rerunExecution` accepts; workflow runs are re-run from FluidGrids. */\nconst RERUNNABLE_TYPES: ReadonlySet<string> = new Set(['AGENT', 'APP']);\n\nconst getStatusIcon = (status: string) => {\n switch (status) {\n case GqlExecutionStatus.Completed:\n return <CheckCircle className=\"text-status-success-text\" size={20} />;\n case GqlExecutionStatus.Failed:\n return <XCircle className=\"text-status-error-text\" size={20} />;\n case GqlExecutionStatus.Timeout:\n return <Timer className=\"text-status-error-text\" size={20} />;\n case GqlExecutionStatus.Cancelled:\n return <Ban className=\"text-text-secondary\" size={20} />;\n case GqlExecutionStatus.Running:\n return <RefreshCw className=\"text-status-info-text motion-safe:animate-spin\" size={20} />;\n case GqlExecutionStatus.Pending:\n return <Hourglass className=\"text-status-warning-text\" size={20} />;\n default:\n return <AlertTriangle className=\"text-text-secondary\" size={20} />;\n }\n};\n\nconst getStatusBadgeVariant = (\n status: string\n): 'success' | 'destructive' | 'warning' | 'secondary' | 'default' => {\n switch (status) {\n case GqlExecutionStatus.Completed:\n return 'success';\n case GqlExecutionStatus.Failed:\n case GqlExecutionStatus.Timeout:\n return 'destructive';\n case GqlExecutionStatus.Pending:\n return 'warning';\n case GqlExecutionStatus.Running:\n return 'default';\n default:\n return 'secondary';\n }\n};\n\nfunction metadataString(metadata: Record<string, unknown> | null | undefined, key: string) {\n const value = metadata?.[key];\n return typeof value === 'string' && value ? value : undefined;\n}\n\nfunction metadataNumber(metadata: Record<string, unknown> | null | undefined, key: string) {\n const value = metadata?.[key];\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined;\n}\n\nconst Fact: FC<{ label: string; children: ReactNode; mono?: boolean }> = ({\n label,\n children,\n mono,\n}) => (\n <div>\n <dt className=\"text-sm text-text-secondary\">{label}</dt>\n <dd className={mono ? 'font-mono text-sm break-all' : 'font-medium break-words'}>{children}</dd>\n </div>\n);\n\n/** Name with its ID underneath, or the ID alone when no name resolves. */\nconst NamedId: FC<{ name?: string | null; id?: string | null }> = ({ name, id }) => {\n if (!id) return <>{MISSING_VALUE}</>;\n return (\n <>\n <span className=\"block\">{name ?? id}</span>\n {name && <span className=\"block font-mono text-xs text-text-secondary\">{id}</span>}\n </>\n );\n};\n\n/** What the runtime recorded about how the run was answered (BOFF-12620). */\nconst RunFacts: FC<{ execution: ExecutionRecord; t: Translate }> = ({ execution, t }) => {\n const metadata = execution.metadata;\n const metrics = execution.metrics;\n const model = metadataString(metadata, 'model');\n const provider = metadataString(metadata, 'providerType');\n const agentVersion = metadataString(metadata, 'agentVersionId');\n const ragChunks = metrics?.ragChunks ?? metadataNumber(metadata, 'ragChunksUsed');\n const delegations = metadataNumber(metadata, 'delegationCount');\n const blockedOutput = metadata?.policyBlockedOutput === true;\n const notRecorded = t('botlit.executions.detail.notRecorded', 'Not recorded');\n return (\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.howAnswered', 'How it was answered')}</CardTitle>\n <CardDescription>\n {t(\n 'botlit.executions.detail.howAnsweredHint',\n 'What the runtime recorded for this run. Individual model and tool calls are not stored step by step.'\n )}\n </CardDescription>\n </CardHeader>\n <CardContent>\n <dl className=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n <Fact label={t('botlit.executions.detail.model', 'Model')}>\n {model ? (provider ? `${model} (${provider})` : model) : notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.agentVersion', 'Agent version')} mono>\n {agentVersion ?? notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.tokenSplit', 'Input / output tokens')}>\n {metrics\n ? `${formatNumber(metrics.inputTokens)} / ${formatNumber(metrics.outputTokens)}`\n : notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.toolCalls', 'Tool calls')}>\n {metrics?.toolCalls ?? notRecorded}\n </Fact>\n <Fact label={t('botlit.executions.detail.knowledgeChunks', 'Knowledge passages used')}>\n {ragChunks ?? 0}\n </Fact>\n <Fact label={t('botlit.executions.detail.delegations', 'Delegations to other agents')}>\n {delegations ?? 0}\n </Fact>\n {blockedOutput && (\n <Fact label={t('botlit.executions.detail.policy', 'Policy')}>\n {t(\n 'botlit.executions.detail.outputBlocked',\n 'The answer was replaced because a content policy blocked it.'\n )}\n </Fact>\n )}\n </dl>\n </CardContent>\n </Card>\n );\n};\n\nexport const ExecutionDetailPage: FC = () => {\n const t = useTr();\n const { executionId } = useParams();\n const { navigateTo } = useBotlit();\n const { data: execution, loading, error, refetch } = useExecution(executionId);\n const rerun = useRerunExecution();\n const status = execution?.status;\n\n // Updates arrive on the run's live stream while it is open (BOFF-15360).\n const live = useLiveExecution(executionId, status, () => void refetch());\n\n // Without a live stream, a PENDING or RUNNING run (for example one just\n // started with \"Run again\") is re-read until it finishes, so the page shows\n // its outcome.\n useEffect(() => {\n if (live === 'live') return;\n if (status !== GqlExecutionStatus.Pending && status !== GqlExecutionStatus.Running) return;\n const timer = setInterval(() => void refetch(), ACTIVE_RUN_POLL_MS);\n return () => clearInterval(timer);\n }, [live, status, refetch]);\n\n // Keep showing the run while it is re-read; only the first load shows the placeholder.\n if (loading && !execution) {\n return (\n <PageLayout title={t('botlit.executions.detail.loading', 'Loading…')}>\n <div className=\"h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg\" />\n </PageLayout>\n );\n }\n\n if (error) {\n return (\n <PageLayout title={t('botlit.executions.detail.title', 'Execution')}>\n <ErrorState resource=\"this execution\" error={error} onRetry={() => void refetch()} />\n </PageLayout>\n );\n }\n\n if (!execution) {\n const notFound = t('botlit.executions.detail.notFound', 'Execution not found');\n return (\n <PageLayout title={notFound}>\n <EmptyState\n illustration=\"empty-search\"\n title={notFound}\n description={t(\n 'botlit.executions.detail.notFoundHint',\n 'This execution does not exist in this workspace.'\n )}\n action={\n <Button onClick={() => navigateTo('executions')}>\n {t('botlit.executions.detail.back', 'Back to Executions')}\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n const label = executionStatusLabel(t, execution.status);\n const output = readablePayload(execution.output);\n\n /**\n * Runs this execution again. `rerunExecution` creates a new run with the same\n * input, agent and bot (pointing back to this one) and starts it in the\n * background; the new run's page follows it until it finishes.\n */\n const handleReplay = async () => {\n try {\n const created = await rerun.mutateAsync(execution.id);\n toast.success('Re-run started');\n navigateTo(`executions/${created.id}`);\n } catch (err) {\n toast.error(err instanceof Error ? err.message : 'Failed to re-run execution');\n }\n };\n\n return (\n <PageLayout\n title={\n <div className=\"flex items-center gap-3\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => navigateTo('executions')}\n aria-label={t('botlit.executions.detail.back', 'Back to Executions')}\n >\n <ArrowLeft size={20} />\n </Button>\n {getStatusIcon(execution.status)}\n <div>\n <div className=\"flex items-center gap-2\">\n <span>\n {t('botlit.executions.detail.heading', 'Execution {{id}}…', {\n id: execution.id.slice(0, 8),\n })}\n </span>\n <Badge variant={getStatusBadgeVariant(execution.status)}>{label}</Badge>\n <LiveIndicator state={live} />\n </div>\n <p className=\"text-sm font-normal text-text-secondary\">\n {execution.appName ?? execution.appId ?? MISSING_VALUE} /{' '}\n {execution.agentName ?? execution.agentId ?? MISSING_VALUE}\n </p>\n </div>\n </div>\n }\n actions={\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n leftIcon={<Copy size={16} />}\n onClick={() => {\n void nativeCopyText(execution.id);\n if (isNative()) void nativeToast(t('botlit.executions.detail.copied', 'Copied'));\n }}\n >\n {t('botlit.executions.detail.copyId', 'Copy ID')}\n </Button>\n {RERUNNABLE_TYPES.has(execution.type) && (\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.EXECUTION_CREATE}>\n <Button\n leftIcon={<Play size={16} />}\n onClick={() => void handleReplay()}\n isLoading={rerun.isPending}\n >\n Run again\n </Button>\n </BotmanorPermissionGate>\n )}\n </div>\n }\n >\n <div className=\"space-y-6\">\n <PagePurpose icon={<Clock size={18} />}>\n {t(\n 'botlit.executions.detail.purpose',\n 'This is the record of one agent run — its status, how long it took, the tokens and cost it consumed, the model and agent version that answered, and its input and output. Use it to debug a failure, understand an unexpected answer, or audit what the agent did on a given request.'\n )}\n </PagePurpose>\n\n {/* Metrics Summary */}\n <div className=\"grid grid-cols-2 md:grid-cols-4 gap-4\">\n <Card treatment=\"glass\" glow>\n <CardContent className=\"pt-6 text-center\">\n <Clock className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold tabular-nums\">\n {formatDuration(execution.duration)}\n </p>\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.table.duration', 'Duration')}\n </p>\n </CardContent>\n </Card>\n <Card treatment=\"metric\">\n <CardContent className=\"pt-6 text-center\">\n <Zap className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold tabular-nums\">\n {execution.tokensUsed === null || execution.tokensUsed === undefined\n ? MISSING_VALUE\n : formatNumber(execution.tokensUsed)}\n </p>\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.table.tokens', 'Tokens')}\n </p>\n </CardContent>\n </Card>\n <Card treatment=\"metric\">\n <CardContent className=\"pt-6 text-center\">\n <DollarSign className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold tabular-nums\">{formatCurrency(execution.cost)}</p>\n <p className=\"text-sm text-text-secondary\">\n {execution.cost === null || execution.cost === undefined\n ? t('botlit.executions.detail.costUnknown', 'Cost (price unknown)')\n : t('botlit.executions.table.cost', 'Cost')}\n </p>\n </CardContent>\n </Card>\n <Card treatment=\"metric\">\n <CardContent className=\"pt-6 text-center\">\n <RefreshCw className=\"h-6 w-6 mx-auto mb-2 text-text-secondary\" />\n <p className=\"text-2xl font-bold capitalize\">{execution.type.toLowerCase()}</p>\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.detail.type', 'Type')}\n </p>\n </CardContent>\n </Card>\n </div>\n\n {/* Failure details */}\n {(execution.errorMessage || execution.errorCode) && (\n <Card>\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2 text-status-error-text\">\n <AlertTriangle size={18} />\n {t('botlit.executions.detail.failure', 'Failure')}\n </CardTitle>\n {execution.errorCode && <CardDescription>{execution.errorCode}</CardDescription>}\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {execution.errorCode === ORPHANED_ERROR_CODE && (\n <p className=\"text-sm text-text-primary\">\n {t(\n 'botlit.executions.detail.orphanedHint',\n 'This run never finished, so the cleanup job closed it as failed.'\n )}\n </p>\n )}\n {execution.errorMessage && (\n <p className=\"text-sm text-text-primary\">{execution.errorMessage}</p>\n )}\n {execution.errorDetails && (\n <pre className=\"max-h-64 overflow-auto rounded-lg bg-bg-sunken p-3 font-mono text-xs\">\n {JSON.stringify(execution.errorDetails, null, 2)}\n </pre>\n )}\n </CardContent>\n </Card>\n )}\n\n {/* Identity & timings */}\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.runDetails', 'Run details')}</CardTitle>\n </CardHeader>\n <CardContent>\n <dl className=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n <Fact label={t('botlit.executions.detail.executionId', 'Execution ID')} mono>\n {execution.id}\n </Fact>\n <Fact label={t('botlit.executions.filters.bot', 'Bot')}>\n <NamedId name={execution.appName} id={execution.appId} />\n </Fact>\n <Fact label={t('botlit.executions.filters.agent', 'Agent')}>\n <NamedId name={execution.agentName} id={execution.agentId} />\n </Fact>\n <Fact label={t('botlit.executions.detail.conversation', 'Conversation')} mono>\n {execution.conversationId ?? MISSING_VALUE}\n </Fact>\n <Fact label={t('botlit.executions.table.started', 'Started')}>\n {formatRelativeTime(execution.createdAt)}\n </Fact>\n <Fact label={t('botlit.executions.detail.completed', 'Completed')}>\n {formatRelativeTime(execution.completedAt)}\n </Fact>\n </dl>\n </CardContent>\n </Card>\n\n <RunFacts execution={execution} t={t} />\n\n {/* Input / Output */}\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.input', 'Input')}</CardTitle>\n </CardHeader>\n <CardContent>\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-bg-sunken p-3 font-sans text-sm\">\n {readablePayload(execution.input) || MISSING_VALUE}\n </pre>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>{t('botlit.executions.detail.output', 'Output')}</CardTitle>\n </CardHeader>\n <CardContent>\n {output ? (\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg bg-bg-sunken p-3 font-sans text-sm\">\n {output}\n </pre>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n {t('botlit.executions.detail.noOutput', 'This run has not produced an output.')}\n </p>\n )}\n </CardContent>\n </Card>\n </div>\n\n {/* BOFF-15360 — which model served the run, and what it fell back from */}\n <ExecutionModelFallback metadata={execution.metadata} />\n <ExecutionFeedback executionId={execution.id} status={execution.status} />\n\n {/* BOFF-15360 — agent-to-agent delegations this run made or answered */}\n <A2ARunCollaborationPanel metadata={execution.metadata} />\n\n {/* Metadata */}\n {execution.metadata && Object.keys(execution.metadata).length > 0 && (\n <Card>\n <CardHeader>\n <CardTitle>\n {t('botlit.executions.detail.rawMetadata', 'Recorded metadata')}\n </CardTitle>\n </CardHeader>\n <CardContent>\n <pre className=\"max-h-64 overflow-auto rounded-lg bg-bg-sunken p-3 font-mono text-xs\">\n {JSON.stringify(execution.metadata, null, 2)}\n </pre>\n </CardContent>\n </Card>\n )}\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,IAAMG,IAAqB,KAGrBC,oBAAwC,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,GAEhEC,KAAiB,MAAmB;CACxC,QAAQC,GAAR;EACE,K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,EACrD,CAAA,EACD,CAAA,GACZ,kBAACH,GAAD,EAAA,UACE,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAA,KAAK,UAAUb,EAAU,UAAU,MAAM,CAAC;IACxC,CAAA,EACM,CAAA,CACT,EAAA,CAAA;GAEL;;CACK,CAAA;AAEhB"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A2A run collaboration metadata (BOFF-15360)
3
+ * @module botlit/utils
4
+ *
5
+ * Reads how a run took part in agent-to-agent work from its metadata, for
6
+ * `A2ARunCollaborationPanel`.
7
+ */
8
+ export interface A2AQueuedDelegation {
9
+ a2aMessageId: string;
10
+ targetAgentId: string;
11
+ status: string;
12
+ deadlineAt: string | null;
13
+ completedAt: string | null;
14
+ targetExecutionId?: string;
15
+ error?: string;
16
+ callbackAt?: string;
17
+ callbackAbandoned?: boolean;
18
+ callbackUnconfirmed?: boolean;
19
+ }
20
+ export interface A2ARunCollaboration {
21
+ /** Set on a run another agent delegated to. */
22
+ delegatedFrom?: string;
23
+ a2aMessageId?: string;
24
+ depth?: number;
25
+ agentChain: string[];
26
+ queued: boolean;
27
+ ragChunksUsed?: number;
28
+ ragAbstained: boolean;
29
+ /** Set on a run that delegated. */
30
+ delegationCount: number;
31
+ asyncDelegations: A2AQueuedDelegation[];
32
+ }
33
+ /**
34
+ * Reads the A2A part of a run's metadata. Returns null for a run that neither
35
+ * was delegated to nor delegated, so the page shows no empty panel.
36
+ */
37
+ export declare function readRunCollaboration(metadata: Record<string, unknown> | null | undefined): A2ARunCollaboration | null;
@@ -0,0 +1,42 @@
1
+ // src/botlit/utils/a2aRunCollaboration.ts
2
+ function e(e) {
3
+ return e && typeof e == "object" && !Array.isArray(e) ? e : {};
4
+ }
5
+ function t(e) {
6
+ return typeof e == "string" && e !== "" ? e : void 0;
7
+ }
8
+ function n(e) {
9
+ return typeof e == "number" && Number.isFinite(e) ? e : void 0;
10
+ }
11
+ function r(n) {
12
+ let r = e(n), i = t(r.a2aMessageId), a = t(r.targetAgentId);
13
+ return !i || !a ? null : {
14
+ a2aMessageId: i,
15
+ targetAgentId: a,
16
+ status: t(r.status) ?? "PENDING",
17
+ deadlineAt: t(r.deadlineAt) ?? null,
18
+ completedAt: t(r.completedAt) ?? null,
19
+ targetExecutionId: t(r.targetExecutionId),
20
+ error: t(r.error),
21
+ callbackAt: t(r.callbackAt),
22
+ callbackAbandoned: r.callbackAbandoned === !0,
23
+ callbackUnconfirmed: r.callbackUnconfirmed === !0
24
+ };
25
+ }
26
+ function i(i) {
27
+ let a = e(i), o = (Array.isArray(a.asyncDelegations) ? a.asyncDelegations : []).map(r).filter((e) => e !== null), s = {
28
+ delegatedFrom: t(a.delegatedFrom),
29
+ a2aMessageId: t(a.a2aMessageId),
30
+ depth: n(a.depth),
31
+ agentChain: Array.isArray(a.agentChain) ? a.agentChain.filter((e) => typeof e == "string") : [],
32
+ queued: a.asyncDelegation === !0,
33
+ ragChunksUsed: n(a.ragChunksUsed),
34
+ ragAbstained: a.ragAbstained === !0,
35
+ delegationCount: Math.max(n(a.delegationCount) ?? 0, o.length),
36
+ asyncDelegations: o
37
+ };
38
+ return s.delegatedFrom || s.a2aMessageId || s.delegationCount > 0 ? s : null;
39
+ }
40
+ export { i as readRunCollaboration };
41
+
42
+ //# sourceMappingURL=a2aRunCollaboration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a2aRunCollaboration.js","names":["asRecord","value","optionalString","optionalNumber","readDelegation","entry","a2aMessageId","targetAgentId","readRunCollaboration","source","metadata","asyncDelegations","collaboration","id"],"sources":["../../../src/botlit/utils/a2aRunCollaboration.ts"],"sourcesContent":["/**\n * A2A run collaboration metadata (BOFF-15360)\n * @module botlit/utils\n *\n * Reads how a run took part in agent-to-agent work from its metadata, for\n * `A2ARunCollaborationPanel`.\n */\n\nexport interface A2AQueuedDelegation {\n a2aMessageId: string;\n targetAgentId: string;\n status: string;\n deadlineAt: string | null;\n completedAt: string | null;\n targetExecutionId?: string;\n error?: string;\n callbackAt?: string;\n callbackAbandoned?: boolean;\n callbackUnconfirmed?: boolean;\n}\n\nexport interface A2ARunCollaboration {\n /** Set on a run another agent delegated to. */\n delegatedFrom?: string;\n a2aMessageId?: string;\n depth?: number;\n agentChain: string[];\n queued: boolean;\n ragChunksUsed?: number;\n ragAbstained: boolean;\n /** Set on a run that delegated. */\n delegationCount: number;\n asyncDelegations: A2AQueuedDelegation[];\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : {};\n}\n\nfunction optionalString(value: unknown): string | undefined {\n return typeof value === 'string' && value !== '' ? value : undefined;\n}\n\nfunction optionalNumber(value: unknown): number | undefined {\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined;\n}\n\nfunction readDelegation(value: unknown): A2AQueuedDelegation | null {\n const entry = asRecord(value);\n const a2aMessageId = optionalString(entry.a2aMessageId);\n const targetAgentId = optionalString(entry.targetAgentId);\n if (!a2aMessageId || !targetAgentId) return null;\n return {\n a2aMessageId,\n targetAgentId,\n status: optionalString(entry.status) ?? 'PENDING',\n deadlineAt: optionalString(entry.deadlineAt) ?? null,\n completedAt: optionalString(entry.completedAt) ?? null,\n targetExecutionId: optionalString(entry.targetExecutionId),\n error: optionalString(entry.error),\n callbackAt: optionalString(entry.callbackAt),\n callbackAbandoned: entry.callbackAbandoned === true,\n callbackUnconfirmed: entry.callbackUnconfirmed === true,\n };\n}\n\n/**\n * Reads the A2A part of a run's metadata. Returns null for a run that neither\n * was delegated to nor delegated, so the page shows no empty panel.\n */\nexport function readRunCollaboration(\n metadata: Record<string, unknown> | null | undefined\n): A2ARunCollaboration | null {\n const source = asRecord(metadata);\n const asyncDelegations = (Array.isArray(source.asyncDelegations) ? source.asyncDelegations : [])\n .map(readDelegation)\n .filter((entry): entry is A2AQueuedDelegation => entry !== null);\n const collaboration: A2ARunCollaboration = {\n delegatedFrom: optionalString(source.delegatedFrom),\n a2aMessageId: optionalString(source.a2aMessageId),\n depth: optionalNumber(source.depth),\n agentChain: Array.isArray(source.agentChain)\n ? source.agentChain.filter((id): id is string => typeof id === 'string')\n : [],\n queued: source.asyncDelegation === true,\n ragChunksUsed: optionalNumber(source.ragChunksUsed),\n ragAbstained: source.ragAbstained === true,\n delegationCount: Math.max(optionalNumber(source.delegationCount) ?? 0, asyncDelegations.length),\n asyncDelegations,\n };\n const delegatedTo = Boolean(collaboration.delegatedFrom || collaboration.a2aMessageId);\n return delegatedTo || collaboration.delegationCount > 0 ? collaboration : null;\n}\n"],"mappings":";AAmCA,SAASA,EAAS,GAAyC;CACzD,OAAOC,KAAS,OAAOA,KAAU,YAAY,CAAC,MAAM,QAAQA,CAAK,IAC5DA,IACD,CAAC;AACP;AAEA,SAASC,EAAe,GAAoC;CAC1D,OAAO,OAAOD,KAAU,YAAYA,MAAU,KAAKA,IAAQ,KAAA;AAC7D;AAEA,SAASE,EAAe,GAAoC;CAC1D,OAAO,OAAOF,KAAU,YAAY,OAAO,SAASA,CAAK,IAAIA,IAAQ,KAAA;AACvE;AAEA,SAASG,EAAe,GAA4C;CAClE,IAAMC,IAAQL,EAASC,CAAK,GACtBK,IAAeJ,EAAeG,EAAM,YAAY,GAChDE,IAAgBL,EAAeG,EAAM,aAAa;CAExD,OADI,CAACC,KAAgB,CAACC,IAAsB,OACrC;EACL;EACA;EACA,QAAQL,EAAeG,EAAM,MAAM,KAAK;EACxC,YAAYH,EAAeG,EAAM,UAAU,KAAK;EAChD,aAAaH,EAAeG,EAAM,WAAW,KAAK;EAClD,mBAAmBH,EAAeG,EAAM,iBAAiB;EACzD,OAAOH,EAAeG,EAAM,KAAK;EACjC,YAAYH,EAAeG,EAAM,UAAU;EAC3C,mBAAmBA,EAAM,sBAAsB;EAC/C,qBAAqBA,EAAM,wBAAwB;CACrD;AACF;AAMA,SAAgBG,EACd,GAC4B;CAC5B,IAAMC,IAAST,EAASU,CAAQ,GAC1BC,KAAoB,MAAM,QAAQF,EAAO,gBAAgB,IAAIA,EAAO,mBAAmB,CAAC,EAAA,CAC3F,IAAIL,CAAc,CAAC,CACnB,QAAQ,MAAwCC,MAAU,IAAI,GAC3DO,IAAqC;EACzC,eAAeV,EAAeO,EAAO,aAAa;EAClD,cAAcP,EAAeO,EAAO,YAAY;EAChD,OAAON,EAAeM,EAAO,KAAK;EAClC,YAAY,MAAM,QAAQA,EAAO,UAAU,IACvCA,EAAO,WAAW,QAAQ,MAAqB,OAAOI,KAAO,QAAQ,IACrE,CAAC;EACL,QAAQJ,EAAO,oBAAoB;EACnC,eAAeN,EAAeM,EAAO,aAAa;EAClD,cAAcA,EAAO,iBAAiB;EACtC,iBAAiB,KAAK,IAAIN,EAAeM,EAAO,eAAe,KAAK,GAAGE,EAAiB,MAAM;EAC9F;CACF;CAEA,OAD4BC,EAAc,iBAAiBA,EAAc,gBACnDA,EAAc,kBAAkB,IAAIA,IAAgB;AAC5E"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A2A card verification status (BOFF-15360)
3
+ * @module botlit/utils
4
+ *
5
+ * The outcome of the last check of an entry's published agent card, and its
6
+ * translated label, shared by the registry list and the entry page.
7
+ */
8
+ export type A2AVerificationStatus = 'VERIFIED' | 'FAILED' | 'UNVERIFIED';
9
+ export declare function toVerificationStatus(value: string | null | undefined): A2AVerificationStatus;
10
+ /** Translated name of a verification outcome. */
11
+ export declare function useVerificationStatusLabel(): (status: A2AVerificationStatus) => string;
@@ -0,0 +1,18 @@
1
+ import { useTr as e } from "../../shared/hooks/useTr.js";
2
+ // src/botlit/utils/a2aVerificationStatus.ts
3
+ function t(e) {
4
+ return e === "VERIFIED" || e === "FAILED" ? e : "UNVERIFIED";
5
+ }
6
+ function n() {
7
+ let t = e();
8
+ return (e) => {
9
+ switch (e) {
10
+ case "VERIFIED": return t("botlit.a2aRegistry.verification.status.verified", "Card verified");
11
+ case "FAILED": return t("botlit.a2aRegistry.verification.status.failed", "Verification failed");
12
+ default: return t("botlit.a2aRegistry.verification.status.unverified", "Not verified yet");
13
+ }
14
+ };
15
+ }
16
+ export { t as toVerificationStatus, n as useVerificationStatusLabel };
17
+
18
+ //# sourceMappingURL=a2aVerificationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a2aVerificationStatus.js","names":["toVerificationStatus","value","useVerificationStatusLabel","useTr","status"],"sources":["../../../src/botlit/utils/a2aVerificationStatus.ts"],"sourcesContent":["/**\n * A2A card verification status (BOFF-15360)\n * @module botlit/utils\n *\n * The outcome of the last check of an entry's published agent card, and its\n * translated label, shared by the registry list and the entry page.\n */\n\nimport { useTr } from '../../shared/hooks/useTr';\n\nexport type A2AVerificationStatus = 'VERIFIED' | 'FAILED' | 'UNVERIFIED';\n\nexport function toVerificationStatus(value: string | null | undefined): A2AVerificationStatus {\n return value === 'VERIFIED' || value === 'FAILED' ? value : 'UNVERIFIED';\n}\n\n/** Translated name of a verification outcome. */\nexport function useVerificationStatusLabel(): (status: A2AVerificationStatus) => string {\n const t = useTr();\n return (status) => {\n switch (status) {\n case 'VERIFIED':\n return t('botlit.a2aRegistry.verification.status.verified', 'Card verified');\n case 'FAILED':\n return t('botlit.a2aRegistry.verification.status.failed', 'Verification failed');\n default:\n return t('botlit.a2aRegistry.verification.status.unverified', 'Not verified yet');\n }\n };\n}\n"],"mappings":";;AAYA,SAAgBA,EAAqB,GAAyD;CAC5F,OAAOC,MAAU,cAAcA,MAAU,WAAWA,IAAQ;AAC9D;AAGA,SAAgBC,IAAwE;CACtF,IAAM,IAAIC,EAAM;CAChB,QAAQ,MAAW;EACjB,QAAQC,GAAR;GACE,KAAK,YACH,OAAO,EAAE,mDAAmD,eAAe;GAC7E,KAAK,UACH,OAAO,EAAE,iDAAiD,qBAAqB;GACjF,SACE,OAAO,EAAE,qDAAqD,kBAAkB;EACpF;CACF;AACF"}
@@ -11,6 +11,7 @@ export type Incremental<T> = T | {
11
11
  import * as Types from './wspace-types';
12
12
  import * as Apollo from '../../node_modules/@apollo/client';
13
13
  import * as ApolloReactHooks from '../../node_modules/@apollo/client/react';
14
+ export type A2ACardVerificationStatus = 'FAILED' | 'UNVERIFIED' | 'VERIFIED';
14
15
  export type A2ARegistryEntryFilterInput = {
15
16
  bucketId?: string | number | null | undefined;
16
17
  status?: EntityStatus | null | undefined;
@@ -863,6 +864,16 @@ export type UpdateSkillInput = {
863
864
  visibility?: Visibility | null | undefined;
864
865
  };
865
866
  export type Visibility = 'PRIVATE' | 'PUBLIC' | 'WORKSPACE';
867
+ export type CheckA2APlanQuotaQueryVariables = Exact<{
868
+ workspaceId: string | number;
869
+ }>;
870
+ export type CheckA2APlanQuotaQuery = {
871
+ checkWorkspaceQuota: {
872
+ allowed: boolean;
873
+ assignmentId: string | null;
874
+ noLimit: boolean;
875
+ };
876
+ };
866
877
  export type GetA2ARegistryEntryQueryVariables = Exact<{
867
878
  id: string | number;
868
879
  }>;
@@ -870,6 +881,7 @@ export type GetA2ARegistryEntryQuery = {
870
881
  getA2ARegistryEntry: {
871
882
  agentCard: Record<string, unknown>;
872
883
  bucketId: string | null;
884
+ cardSigned: boolean;
873
885
  createdAt: string;
874
886
  createdById: string;
875
887
  description: string | null;
@@ -877,12 +889,16 @@ export type GetA2ARegistryEntryQuery = {
877
889
  id: string;
878
890
  metadata: Record<string, unknown> | null;
879
891
  name: string;
892
+ requestedTrustLevel: Types.A2ATrustLevel;
880
893
  revision: number;
881
894
  status: Types.EntityStatus;
882
895
  tags: Array<string>;
883
896
  trustLevel: Types.A2ATrustLevel;
884
897
  updatedAt: string;
885
898
  updatedById: string;
899
+ verificationError: string | null;
900
+ verificationStatus: Types.A2ACardVerificationStatus;
901
+ verifiedAt: string | null;
886
902
  visibility: Types.Visibility;
887
903
  wellKnownUrl: string | null;
888
904
  workspaceId: string;
@@ -896,6 +912,7 @@ export type ListA2ARegistryEntriesQuery = {
896
912
  listA2ARegistryEntries: Array<{
897
913
  agentCard: Record<string, unknown>;
898
914
  bucketId: string | null;
915
+ cardSigned: boolean;
899
916
  createdAt: string;
900
917
  createdById: string;
901
918
  description: string | null;
@@ -903,12 +920,16 @@ export type ListA2ARegistryEntriesQuery = {
903
920
  id: string;
904
921
  metadata: Record<string, unknown> | null;
905
922
  name: string;
923
+ requestedTrustLevel: Types.A2ATrustLevel;
906
924
  revision: number;
907
925
  status: Types.EntityStatus;
908
926
  tags: Array<string>;
909
927
  trustLevel: Types.A2ATrustLevel;
910
928
  updatedAt: string;
911
929
  updatedById: string;
930
+ verificationError: string | null;
931
+ verificationStatus: Types.A2ACardVerificationStatus;
932
+ verifiedAt: string | null;
912
933
  visibility: Types.Visibility;
913
934
  wellKnownUrl: string | null;
914
935
  workspaceId: string;
@@ -921,6 +942,7 @@ export type CreateA2ARegistryEntryMutation = {
921
942
  createA2ARegistryEntry: {
922
943
  agentCard: Record<string, unknown>;
923
944
  bucketId: string | null;
945
+ cardSigned: boolean;
924
946
  createdAt: string;
925
947
  createdById: string;
926
948
  description: string | null;
@@ -928,12 +950,16 @@ export type CreateA2ARegistryEntryMutation = {
928
950
  id: string;
929
951
  metadata: Record<string, unknown> | null;
930
952
  name: string;
953
+ requestedTrustLevel: Types.A2ATrustLevel;
931
954
  revision: number;
932
955
  status: Types.EntityStatus;
933
956
  tags: Array<string>;
934
957
  trustLevel: Types.A2ATrustLevel;
935
958
  updatedAt: string;
936
959
  updatedById: string;
960
+ verificationError: string | null;
961
+ verificationStatus: Types.A2ACardVerificationStatus;
962
+ verifiedAt: string | null;
937
963
  visibility: Types.Visibility;
938
964
  wellKnownUrl: string | null;
939
965
  workspaceId: string;
@@ -947,6 +973,7 @@ export type UpdateA2ARegistryEntryMutation = {
947
973
  updateA2ARegistryEntry: {
948
974
  agentCard: Record<string, unknown>;
949
975
  bucketId: string | null;
976
+ cardSigned: boolean;
950
977
  createdAt: string;
951
978
  createdById: string;
952
979
  description: string | null;
@@ -954,12 +981,16 @@ export type UpdateA2ARegistryEntryMutation = {
954
981
  id: string;
955
982
  metadata: Record<string, unknown> | null;
956
983
  name: string;
984
+ requestedTrustLevel: Types.A2ATrustLevel;
957
985
  revision: number;
958
986
  status: Types.EntityStatus;
959
987
  tags: Array<string>;
960
988
  trustLevel: Types.A2ATrustLevel;
961
989
  updatedAt: string;
962
990
  updatedById: string;
991
+ verificationError: string | null;
992
+ verificationStatus: Types.A2ACardVerificationStatus;
993
+ verifiedAt: string | null;
963
994
  visibility: Types.Visibility;
964
995
  wellKnownUrl: string | null;
965
996
  workspaceId: string;
@@ -971,6 +1002,51 @@ export type DeleteA2ARegistryEntryMutationVariables = Exact<{
971
1002
  export type DeleteA2ARegistryEntryMutation = {
972
1003
  deleteA2ARegistryEntry: boolean;
973
1004
  };
1005
+ export type VerifyA2ARegistryEntryMutationVariables = Exact<{
1006
+ id: string | number;
1007
+ }>;
1008
+ export type VerifyA2ARegistryEntryMutation = {
1009
+ verifyA2ARegistryEntry: {
1010
+ agentCard: Record<string, unknown>;
1011
+ bucketId: string | null;
1012
+ cardSigned: boolean;
1013
+ createdAt: string;
1014
+ createdById: string;
1015
+ description: string | null;
1016
+ entitlements: Record<string, unknown>;
1017
+ id: string;
1018
+ metadata: Record<string, unknown> | null;
1019
+ name: string;
1020
+ requestedTrustLevel: Types.A2ATrustLevel;
1021
+ revision: number;
1022
+ status: Types.EntityStatus;
1023
+ tags: Array<string>;
1024
+ trustLevel: Types.A2ATrustLevel;
1025
+ updatedAt: string;
1026
+ updatedById: string;
1027
+ verificationError: string | null;
1028
+ verificationStatus: Types.A2ACardVerificationStatus;
1029
+ verifiedAt: string | null;
1030
+ visibility: Types.Visibility;
1031
+ wellKnownUrl: string | null;
1032
+ workspaceId: string;
1033
+ };
1034
+ };
1035
+ export type GetA2ARegistryEntryUsageQueryVariables = Exact<{
1036
+ id: string | number;
1037
+ }>;
1038
+ export type GetA2ARegistryEntryUsageQuery = {
1039
+ getA2ARegistryEntryUsage: {
1040
+ connectionCount: number;
1041
+ connections: Array<{
1042
+ id: string;
1043
+ name: string;
1044
+ senderAgentId: string;
1045
+ senderAgentName: string | null;
1046
+ isActive: boolean;
1047
+ }>;
1048
+ };
1049
+ };
974
1050
  export type AgentBindingsFieldsFragment = {
975
1051
  agentId: string;
976
1052
  effectiveSystemPrompt: string;
@@ -3662,6 +3738,36 @@ export type AgentExecutionUpdatedSubscription = {
3662
3738
  export declare const AgentBindingsFieldsFragmentDoc: Apollo.DocumentNode;
3663
3739
  export declare const StorePackageFieldsFragmentDoc: Apollo.DocumentNode;
3664
3740
  export declare const InstalledPackageFieldsFragmentDoc: Apollo.DocumentNode;
3741
+ export declare const CheckA2APlanQuotaDocument: Apollo.DocumentNode;
3742
+ /**
3743
+ * __useCheckA2APlanQuotaQuery__
3744
+ *
3745
+ * To run a query within a React component, call `useCheckA2APlanQuotaQuery` and pass it any options that fit your needs.
3746
+ * When your component renders, `useCheckA2APlanQuotaQuery` returns an object from Apollo Client that contains loading, error, and data properties
3747
+ * you can use to render your UI.
3748
+ *
3749
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
3750
+ *
3751
+ * @example
3752
+ * const { data, loading, error } = useCheckA2APlanQuotaQuery({
3753
+ * variables: {
3754
+ * workspaceId: // value for 'workspaceId'
3755
+ * },
3756
+ * });
3757
+ */
3758
+ export declare function useCheckA2APlanQuotaQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables> & ({
3759
+ variables: Types.CheckA2APlanQuotaQueryVariables;
3760
+ skip?: boolean;
3761
+ } | {
3762
+ skip: boolean;
3763
+ })): ApolloReactHooks.useQuery.Result<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables, "empty" | "complete" | "streaming", Types.CheckA2APlanQuotaQueryVariables, undefined>;
3764
+ export declare function useCheckA2APlanQuotaLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables, "empty" | "complete" | "streaming", undefined>;
3765
+ export declare function useCheckA2APlanQuotaSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables>;
3766
+ export declare function useCheckA2APlanQuotaSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.CheckA2APlanQuotaQuery | undefined, Types.CheckA2APlanQuotaQueryVariables>;
3767
+ export type CheckA2APlanQuotaQueryHookResult = ReturnType<typeof useCheckA2APlanQuotaQuery>;
3768
+ export type CheckA2APlanQuotaLazyQueryHookResult = ReturnType<typeof useCheckA2APlanQuotaLazyQuery>;
3769
+ export type CheckA2APlanQuotaSuspenseQueryHookResult = ReturnType<typeof useCheckA2APlanQuotaSuspenseQuery>;
3770
+ export type CheckA2APlanQuotaQueryResult = Apollo.QueryResult<Types.CheckA2APlanQuotaQuery, Types.CheckA2APlanQuotaQueryVariables>;
3665
3771
  export declare const GetA2ARegistryEntryDocument: Apollo.DocumentNode;
3666
3772
  /**
3667
3773
  * __useGetA2ARegistryEntryQuery__
@@ -3788,6 +3894,59 @@ export declare function useDeleteA2ARegistryEntryMutation(baseOptions?: ApolloRe
3788
3894
  export type DeleteA2ARegistryEntryMutationHookResult = ReturnType<typeof useDeleteA2ARegistryEntryMutation>;
3789
3895
  export type DeleteA2ARegistryEntryMutationResult = Apollo.MutationResult<Types.DeleteA2ARegistryEntryMutation>;
3790
3896
  export type DeleteA2ARegistryEntryMutationOptions = Apollo.BaseMutationOptions<Types.DeleteA2ARegistryEntryMutation, Types.DeleteA2ARegistryEntryMutationVariables>;
3897
+ export declare const VerifyA2ARegistryEntryDocument: Apollo.DocumentNode;
3898
+ export type VerifyA2ARegistryEntryMutationFn = Apollo.MutationFunction<Types.VerifyA2ARegistryEntryMutation, Types.VerifyA2ARegistryEntryMutationVariables>;
3899
+ /**
3900
+ * __useVerifyA2ARegistryEntryMutation__
3901
+ *
3902
+ * To run a mutation, you first call `useVerifyA2ARegistryEntryMutation` within a React component and pass it any options that fit your needs.
3903
+ * When your component renders, `useVerifyA2ARegistryEntryMutation` returns a tuple that includes:
3904
+ * - A mutate function that you can call at any time to execute the mutation
3905
+ * - An object with fields that represent the current status of the mutation's execution
3906
+ *
3907
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
3908
+ *
3909
+ * @example
3910
+ * const [verifyA2ARegistryEntryMutation, { data, loading, error }] = useVerifyA2ARegistryEntryMutation({
3911
+ * variables: {
3912
+ * id: // value for 'id'
3913
+ * },
3914
+ * });
3915
+ */
3916
+ export declare function useVerifyA2ARegistryEntryMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.VerifyA2ARegistryEntryMutation, Types.VerifyA2ARegistryEntryMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.VerifyA2ARegistryEntryMutation, any, Apollo.ApolloCache, undefined>;
3917
+ export type VerifyA2ARegistryEntryMutationHookResult = ReturnType<typeof useVerifyA2ARegistryEntryMutation>;
3918
+ export type VerifyA2ARegistryEntryMutationResult = Apollo.MutationResult<Types.VerifyA2ARegistryEntryMutation>;
3919
+ export type VerifyA2ARegistryEntryMutationOptions = Apollo.BaseMutationOptions<Types.VerifyA2ARegistryEntryMutation, Types.VerifyA2ARegistryEntryMutationVariables>;
3920
+ export declare const GetA2ARegistryEntryUsageDocument: Apollo.DocumentNode;
3921
+ /**
3922
+ * __useGetA2ARegistryEntryUsageQuery__
3923
+ *
3924
+ * To run a query within a React component, call `useGetA2ARegistryEntryUsageQuery` and pass it any options that fit your needs.
3925
+ * When your component renders, `useGetA2ARegistryEntryUsageQuery` returns an object from Apollo Client that contains loading, error, and data properties
3926
+ * you can use to render your UI.
3927
+ *
3928
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
3929
+ *
3930
+ * @example
3931
+ * const { data, loading, error } = useGetA2ARegistryEntryUsageQuery({
3932
+ * variables: {
3933
+ * id: // value for 'id'
3934
+ * },
3935
+ * });
3936
+ */
3937
+ export declare function useGetA2ARegistryEntryUsageQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables> & ({
3938
+ variables: Types.GetA2ARegistryEntryUsageQueryVariables;
3939
+ skip?: boolean;
3940
+ } | {
3941
+ skip: boolean;
3942
+ })): ApolloReactHooks.useQuery.Result<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables, "empty" | "complete" | "streaming", Types.GetA2ARegistryEntryUsageQueryVariables, undefined>;
3943
+ export declare function useGetA2ARegistryEntryUsageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables, "empty" | "complete" | "streaming", undefined>;
3944
+ export declare function useGetA2ARegistryEntryUsageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables>;
3945
+ export declare function useGetA2ARegistryEntryUsageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetA2ARegistryEntryUsageQuery | undefined, Types.GetA2ARegistryEntryUsageQueryVariables>;
3946
+ export type GetA2ARegistryEntryUsageQueryHookResult = ReturnType<typeof useGetA2ARegistryEntryUsageQuery>;
3947
+ export type GetA2ARegistryEntryUsageLazyQueryHookResult = ReturnType<typeof useGetA2ARegistryEntryUsageLazyQuery>;
3948
+ export type GetA2ARegistryEntryUsageSuspenseQueryHookResult = ReturnType<typeof useGetA2ARegistryEntryUsageSuspenseQuery>;
3949
+ export type GetA2ARegistryEntryUsageQueryResult = Apollo.QueryResult<Types.GetA2ARegistryEntryUsageQuery, Types.GetA2ARegistryEntryUsageQueryVariables>;
3791
3950
  export declare const GetAgentBindingsDocument: Apollo.DocumentNode;
3792
3951
  /**
3793
3952
  * __useGetAgentBindingsQuery__