@burdenoff/microfe-botmanor 2026.1120.4 → 2026.1120.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ExecutionDetailPage.js","names":["GqlExecutionStatus","EXECUTION_TYPES","getStatusIcon","status","ExecutionStatus","CheckCircle","XCircle","RefreshCw","Hourglass","AlertTriangle","getStatusBadgeVariant","ExecutionDetailPage","useParams","useBotlit","execution","useExecution","executionId","createExecution","createExecutionState","useCreateExecution","loading","PageLayout","error","ErrorState","refetch","EmptyState","Button","navigateTo","handleReplay","created","toUnion","toast","err","ArrowLeft","Badge","Copy","nativeCopyText","isNative","nativeToast","BotmanorPermissionGate","BOTMANOR_PERMISSIONS","Play","PagePurpose","Clock","Card","CardContent","formatDuration","Zap","formatNumber","DollarSign","formatCurrency","CardHeader","CardTitle","CardDescription","formatRelativeTime","ExecutionModelFallback"],"sources":["../../../src/botlit/pages/ExecutionDetailPage.tsx"],"sourcesContent":["/**\n * Execution Detail Page\n * @module botlit/pages\n */\n\nimport type { FC } 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} from 'lucide-react';\nimport { toast } from 'sonner';\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 { useExecution, useCreateExecution } from '../hooks/useExecutions';\nimport {\n formatNumber,\n formatCurrency,\n formatDuration,\n formatRelativeTime,\n MISSING_VALUE,\n} from '../utils/formatters';\nimport { toUnion } from '../utils/unions';\n\n/** Execution kinds `CreateExecutionInput.type` accepts. */\nconst EXECUTION_TYPES = ['AGENT', 'APP', 'WORKFLOW'] as const;\nimport { ExecutionStatus as GqlExecutionStatus } from '../../generated/wspace-types';\nimport { BOTMANOR_PERMISSIONS, BotmanorPermissionGate } from '../permissions';\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 case GqlExecutionStatus.Timeout:\n return <XCircle className=\"text-status-error-text\" size={20} />;\n case GqlExecutionStatus.Cancelled:\n return <XCircle 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\nexport const ExecutionDetailPage: FC = () => {\n const { executionId } = useParams();\n const { navigateTo } = useBotlit();\n const { data: execution, loading, error, refetch } = useExecution(executionId);\n const [createExecution, createExecutionState] = useCreateExecution();\n\n if (loading) {\n return (\n <PageLayout title=\"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=\"Execution\">\n <ErrorState resource=\"this execution\" error={error} onRetry={() => void refetch()} />\n </PageLayout>\n );\n }\n\n if (!execution) {\n return (\n <PageLayout title=\"Execution Not Found\">\n <EmptyState\n illustration=\"empty-search\"\n title=\"Execution Not Found\"\n description=\"The execution doesn't exist.\"\n action={<Button onClick={() => navigateTo('executions')}>Back to Executions</Button>}\n />\n </PageLayout>\n );\n }\n\n /**\n * Re-runs this execution's input. The service has no dedicated replay\n * operation, so this creates a fresh execution with the same input and a\n * pointer back to the run it came from.\n */\n const handleReplay = async () => {\n try {\n const created = await createExecution({\n input: {\n workspaceId: execution.workspaceId,\n type: toUnion(execution.type, EXECUTION_TYPES, 'AGENT'),\n input: execution.input,\n appId: execution.appId,\n agentId: execution.agentId,\n metadata: { sourceExecutionId: execution.id },\n },\n });\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 variant=\"ghost\" size=\"icon\" onClick={() => navigateTo('executions')}>\n <ArrowLeft size={20} />\n </Button>\n {getStatusIcon(execution.status)}\n <div>\n <div className=\"flex items-center gap-2\">\n <span>Execution {execution.id.slice(0, 8)}…</span>\n <Badge variant={getStatusBadgeVariant(execution.status)}>{execution.status}</Badge>\n </div>\n <p className=\"text-sm font-normal text-text-secondary\">\n {execution.appId ?? MISSING_VALUE} / {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('Copied');\n }}\n >\n Copy ID\n </Button>\n <BotmanorPermissionGate permission={BOTMANOR_PERMISSIONS.EXECUTION_CREATE}>\n <Button\n leftIcon={<Play size={16} />}\n onClick={() => void handleReplay()}\n isLoading={createExecutionState.loading}\n >\n Run again\n </Button>\n </BotmanorPermissionGate>\n </div>\n }\n >\n <div className=\"space-y-6\">\n <PagePurpose icon={<Clock size={18} />}>\n This is the record of one agent run — its status, how long it took, the tokens and cost it\n consumed, and the input and output that produced the result. Use it to debug a failure,\n understand an unexpected answer, or audit exactly what the agent did on a given request.\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 {execution.duration === null || execution.duration === undefined\n ? MISSING_VALUE\n : formatDuration(execution.duration)}\n </p>\n <p className=\"text-sm text-text-secondary\">Duration</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 {formatNumber(execution.tokensUsed)}\n </p>\n <p className=\"text-sm text-text-secondary\">Tokens</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\">Cost</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\">Type</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 Failure\n </CardTitle>\n {execution.errorCode && <CardDescription>{execution.errorCode}</CardDescription>}\n </CardHeader>\n <CardContent className=\"space-y-3\">\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>Run Details</CardTitle>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n <div>\n <p className=\"text-sm text-text-secondary\">Execution ID</p>\n <p className=\"font-mono text-sm break-all\">{execution.id}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Bot</p>\n <p className=\"font-mono text-sm break-all\">{execution.appId ?? MISSING_VALUE}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Agent</p>\n <p className=\"font-mono text-sm break-all\">{execution.agentId ?? MISSING_VALUE}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Conversation</p>\n <p className=\"font-mono text-sm break-all\">\n {execution.conversationId ?? MISSING_VALUE}\n </p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Started</p>\n <p className=\"font-medium\">{formatRelativeTime(execution.createdAt)}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Completed</p>\n <p className=\"font-medium\">{formatRelativeTime(execution.completedAt)}</p>\n </div>\n </div>\n </CardContent>\n </Card>\n\n {/* Input / Output */}\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle>Input</CardTitle>\n </CardHeader>\n <CardContent>\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap rounded-lg bg-bg-sunken p-3 text-sm\">\n {execution.input}\n </pre>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Output</CardTitle>\n </CardHeader>\n <CardContent>\n {execution.output ? (\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap rounded-lg bg-bg-sunken p-3 text-sm\">\n {execution.output}\n </pre>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n This run has not produced an output yet.\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\n {/* Metadata */}\n {execution.metadata && Object.keys(execution.metadata).length > 0 && (\n <Card>\n <CardHeader>\n <CardTitle>Metadata</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":";;;;;;;;;;;;;;;;;;;;;;AA0CA,IAAMC,IAAkB;CAAC;CAAS;CAAO;AAAU,GAI7CC,KAAiB,MAAmB;CACxC,QAAQC,GAAR;EACE,KAAKH,EAAmB,WACtB,OAAO,kBAACK,GAAD;GAAa,WAAU;GAA2B,MAAM;EAAK,CAAA;EACtE,KAAKL,EAAmB;EACxB,KAAKA,EAAmB,SACtB,OAAO,kBAACM,GAAD;GAAS,WAAU;GAAyB,MAAM;EAAK,CAAA;EAChE,KAAKN,EAAmB,WACtB,OAAO,kBAACM,GAAD;GAAS,WAAU;GAAsB,MAAM;EAAK,CAAA;EAC7D,KAAKN,EAAmB,SACtB,OAAO,kBAACO,GAAD;GAAW,WAAU;GAAiD,MAAM;EAAK,CAAA;EAC1F,KAAKP,EAAmB,SACtB,OAAO,kBAACQ,GAAD;GAAW,WAAU;GAA2B,MAAM;EAAK,CAAA;EACpE,SACE,OAAO,kBAACC,GAAD;GAAe,WAAU;GAAsB,MAAM;EAAK,CAAA;CACrE;AACF,GAEMC,KACJ,MACoE;CACpE,QAAQP,GAAR;EACE,KAAKH,EAAmB,WACtB,OAAO;EACT,KAAKA,EAAmB;EACxB,KAAKA,EAAmB,SACtB,OAAO;EACT,KAAKA,EAAmB,SACtB,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,UACE,kBAACC,GAAD,EAAA,UAAW,WAAmB,CAAA,EACpB,CAAA,GACZ,kBAACP,GAAD,EAAA,UACE,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAA,KAAK,UAAU/B,EAAU,UAAU,MAAM,CAAC;IACxC,CAAA,EACM,CAAA,CACT,EAAA,CAAA;GAEL;;CACK,CAAA;AAEhB"}
1
+ {"version":3,"file":"ExecutionDetailPage.js","names":["GqlExecutionStatus","ACTIVE_RUN_POLL_MS","RERUNNABLE_TYPES","getStatusIcon","status","ExecutionStatus","CheckCircle","XCircle","RefreshCw","Hourglass","AlertTriangle","getStatusBadgeVariant","ExecutionDetailPage","useParams","useBotlit","execution","useExecution","executionId","rerun","useRerunExecution","useEffect","timer","refetch","loading","PageLayout","error","ErrorState","EmptyState","Button","navigateTo","handleReplay","created","toast","err","ArrowLeft","Badge","Copy","nativeCopyText","isNative","nativeToast","BotmanorPermissionGate","BOTMANOR_PERMISSIONS","Play","PagePurpose","Clock","Card","CardContent","formatDuration","Zap","formatNumber","DollarSign","formatCurrency","CardHeader","CardTitle","CardDescription","formatRelativeTime","ExecutionModelFallback"],"sources":["../../../src/botlit/pages/ExecutionDetailPage.tsx"],"sourcesContent":["/**\n * Execution Detail Page\n * @module botlit/pages\n */\n\nimport { useEffect } from 'react';\nimport type { FC } 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} from 'lucide-react';\nimport { toast } from 'sonner';\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 { useExecution } from '../hooks/useExecutions';\nimport { useRerunExecution } from '../hooks/useRerunExecution';\nimport {\n formatNumber,\n formatCurrency,\n formatDuration,\n formatRelativeTime,\n MISSING_VALUE,\n} from '../utils/formatters';\n\nimport { ExecutionStatus as GqlExecutionStatus } from '../../generated/wspace-types';\nimport { BOTMANOR_PERMISSIONS, BotmanorPermissionGate } from '../permissions';\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 case GqlExecutionStatus.Timeout:\n return <XCircle className=\"text-status-error-text\" size={20} />;\n case GqlExecutionStatus.Cancelled:\n return <XCircle 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\nexport const ExecutionDetailPage: FC = () => {\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 // A PENDING or RUNNING run (for example one just started with \"Run again\")\n // is re-read until it finishes, so the page shows its outcome.\n useEffect(() => {\n if (status !== GqlExecutionStatus.Pending && status !== GqlExecutionStatus.Running) return;\n const timer = setInterval(() => void refetch(), ACTIVE_RUN_POLL_MS);\n return () => clearInterval(timer);\n }, [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=\"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=\"Execution\">\n <ErrorState resource=\"this execution\" error={error} onRetry={() => void refetch()} />\n </PageLayout>\n );\n }\n\n if (!execution) {\n return (\n <PageLayout title=\"Execution Not Found\">\n <EmptyState\n illustration=\"empty-search\"\n title=\"Execution Not Found\"\n description=\"The execution doesn't exist.\"\n action={<Button onClick={() => navigateTo('executions')}>Back to Executions</Button>}\n />\n </PageLayout>\n );\n }\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 variant=\"ghost\" size=\"icon\" onClick={() => navigateTo('executions')}>\n <ArrowLeft size={20} />\n </Button>\n {getStatusIcon(execution.status)}\n <div>\n <div className=\"flex items-center gap-2\">\n <span>Execution {execution.id.slice(0, 8)}…</span>\n <Badge variant={getStatusBadgeVariant(execution.status)}>{execution.status}</Badge>\n </div>\n <p className=\"text-sm font-normal text-text-secondary\">\n {execution.appId ?? MISSING_VALUE} / {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('Copied');\n }}\n >\n 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 This is the record of one agent run — its status, how long it took, the tokens and cost it\n consumed, and the input and output that produced the result. Use it to debug a failure,\n understand an unexpected answer, or audit exactly what the agent did on a given request.\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 {execution.duration === null || execution.duration === undefined\n ? MISSING_VALUE\n : formatDuration(execution.duration)}\n </p>\n <p className=\"text-sm text-text-secondary\">Duration</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 {formatNumber(execution.tokensUsed)}\n </p>\n <p className=\"text-sm text-text-secondary\">Tokens</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\">Cost</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\">Type</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 Failure\n </CardTitle>\n {execution.errorCode && <CardDescription>{execution.errorCode}</CardDescription>}\n </CardHeader>\n <CardContent className=\"space-y-3\">\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>Run Details</CardTitle>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-1 gap-6 md:grid-cols-3\">\n <div>\n <p className=\"text-sm text-text-secondary\">Execution ID</p>\n <p className=\"font-mono text-sm break-all\">{execution.id}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Bot</p>\n <p className=\"font-mono text-sm break-all\">{execution.appId ?? MISSING_VALUE}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Agent</p>\n <p className=\"font-mono text-sm break-all\">{execution.agentId ?? MISSING_VALUE}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Conversation</p>\n <p className=\"font-mono text-sm break-all\">\n {execution.conversationId ?? MISSING_VALUE}\n </p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Started</p>\n <p className=\"font-medium\">{formatRelativeTime(execution.createdAt)}</p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">Completed</p>\n <p className=\"font-medium\">{formatRelativeTime(execution.completedAt)}</p>\n </div>\n </div>\n </CardContent>\n </Card>\n\n {/* Input / Output */}\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle>Input</CardTitle>\n </CardHeader>\n <CardContent>\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap rounded-lg bg-bg-sunken p-3 text-sm\">\n {execution.input}\n </pre>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Output</CardTitle>\n </CardHeader>\n <CardContent>\n {execution.output ? (\n <pre className=\"max-h-96 overflow-auto whitespace-pre-wrap rounded-lg bg-bg-sunken p-3 text-sm\">\n {execution.output}\n </pre>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n This run has not produced an output yet.\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\n {/* Metadata */}\n {execution.metadata && Object.keys(execution.metadata).length > 0 && (\n <Card>\n <CardHeader>\n <CardTitle>Metadata</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":";;;;;;;;;;;;;;;;;;;;;;;AA8CA,IAAMC,IAAqB,KAGrBC,oBAAwC,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,GAEhEC,KAAiB,MAAmB;CACxC,QAAQC,GAAR;EACE,KAAKJ,EAAmB,WACtB,OAAO,kBAACM,GAAD;GAAa,WAAU;GAA2B,MAAM;EAAK,CAAA;EACtE,KAAKN,EAAmB;EACxB,KAAKA,EAAmB,SACtB,OAAO,kBAACO,GAAD;GAAS,WAAU;GAAyB,MAAM;EAAK,CAAA;EAChE,KAAKP,EAAmB,WACtB,OAAO,kBAACO,GAAD;GAAS,WAAU;GAAsB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AA,CACT,EAAA,CAAA,GACN,kBAAC8B,GAAD,EAAA,UAAA,CACE,kBAACO,GAAD,EAAA,UACE,kBAACC,GAAD,EAAA,UAAW,SAAiB,CAAA,EAClB,CAAA,GACZ,kBAACP,GAAD,EAAA,UACG/B,EAAU,SACT,kBAAC,OAAD;MAAK,WAAU;MACZ,UAAAA,EAAU;KACR,CAAA,IAEL,kBAAC,KAAD;MAAG,WAAU;MAA8B,UAAA;KAExC,CAAA,EAEM,CAAA,CACT,EAAA,CAAA,CACH;;IAGL,kBAACyC,GAAD,EAAwB,UAAUzC,EAAU,SAAW,CAAA;IAGtDA,EAAU,YAAY,OAAO,KAAKA,EAAU,QAAQ,CAAC,CAAC,SAAS,KAC9D,kBAAC8B,GAAD,EAAA,UAAA,CACE,kBAACO,GAAD,EAAA,UACE,kBAACC,GAAD,EAAA,UAAW,WAAmB,CAAA,EACpB,CAAA,GACZ,kBAACP,GAAD,EAAA,UACE,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAA,KAAK,UAAU/B,EAAU,UAAU,MAAM,CAAC;IACxC,CAAA,EACM,CAAA,CACT,EAAA,CAAA;GAEL;;CACK,CAAA;AAEhB"}
@@ -856,8 +856,7 @@ e`
856
856
  totalTokens
857
857
  }
858
858
  }
859
- `;
860
- var I = e`
859
+ `, e`
861
860
  mutation CreateExecution($input: CreateExecutionInput!) {
862
861
  createExecution(input: $input) {
863
862
  agentId
@@ -880,8 +879,7 @@ var I = e`
880
879
  workspaceId
881
880
  }
882
881
  }
883
- `;
884
- e`
882
+ `, e`
885
883
  mutation UpdateExecutionStatus($id: ID!, $input: UpdateExecutionStatusInput!) {
886
884
  updateExecutionStatus(id: $id, input: $input) {
887
885
  agentId
@@ -905,7 +903,7 @@ e`
905
903
  }
906
904
  }
907
905
  `;
908
- var L = e`
906
+ var I = e`
909
907
  query HandoffConfig($agentId: ID!) {
910
908
  handoffConfig(agentId: $agentId) {
911
909
  agentId
@@ -931,7 +929,7 @@ var L = e`
931
929
  updatedAt
932
930
  }
933
931
  }
934
- `, R = e`
932
+ `, L = e`
935
933
  query HandoffQueue($agentId: ID, $statuses: [BotmanorHandoffStatus!], $pagination: PaginationInput) {
936
934
  handoffQueue(agentId: $agentId, statuses: $statuses, pagination: $pagination) {
937
935
  items {
@@ -989,7 +987,7 @@ e`
989
987
  }
990
988
  }
991
989
  `;
992
- var z = e`
990
+ var R = e`
993
991
  mutation UpsertHandoffConfig($agentId: ID!, $input: BotmanorHandoffConfigInput!) {
994
992
  upsertHandoffConfig(agentId: $agentId, input: $input) {
995
993
  agentId
@@ -1047,7 +1045,7 @@ e`
1047
1045
  }
1048
1046
  }
1049
1047
  `;
1050
- var B = e`
1048
+ var z = e`
1051
1049
  mutation AcceptHandoff($id: ID!) {
1052
1050
  acceptHandoff(id: $id) {
1053
1051
  id
@@ -1056,7 +1054,7 @@ var B = e`
1056
1054
  acceptedAt
1057
1055
  }
1058
1056
  }
1059
- `, V = e`
1057
+ `, B = e`
1060
1058
  mutation ReleaseHandoff($id: ID!) {
1061
1059
  releaseHandoff(id: $id) {
1062
1060
  id
@@ -1064,7 +1062,7 @@ var B = e`
1064
1062
  releasedAt
1065
1063
  }
1066
1064
  }
1067
- `, H = e`
1065
+ `, V = e`
1068
1066
  mutation ResolveHandoff($id: ID!) {
1069
1067
  resolveHandoff(id: $id) {
1070
1068
  id
@@ -1072,14 +1070,14 @@ var B = e`
1072
1070
  resolvedAt
1073
1071
  }
1074
1072
  }
1075
- `, U = e`
1073
+ `, H = e`
1076
1074
  mutation RejectHandoff($id: ID!) {
1077
1075
  rejectHandoff(id: $id) {
1078
1076
  id
1079
1077
  status
1080
1078
  }
1081
1079
  }
1082
- `, W = e`
1080
+ `, U = e`
1083
1081
  query listKnowledgeBases($filters: KnowledgeBaseFilterInput, $pagination: PaginationInput) {
1084
1082
  listKnowledgeBases(filters: $filters, pagination: $pagination) {
1085
1083
  id
@@ -1102,7 +1100,7 @@ var B = e`
1102
1100
  workspaceId
1103
1101
  }
1104
1102
  }
1105
- `, G = e`
1103
+ `, W = e`
1106
1104
  query getKnowledgeBase($id: ID!) {
1107
1105
  getKnowledgeBase(id: $id) {
1108
1106
  id
@@ -1126,7 +1124,7 @@ var B = e`
1126
1124
  workspaceId
1127
1125
  }
1128
1126
  }
1129
- `, K = e`
1127
+ `, G = e`
1130
1128
  query listKnowledgeDocuments($knowledgeBaseId: ID!, $pagination: PaginationInput) {
1131
1129
  listKnowledgeDocuments(
1132
1130
  knowledgeBaseId: $knowledgeBaseId
@@ -1145,7 +1143,7 @@ var B = e`
1145
1143
  updatedAt
1146
1144
  }
1147
1145
  }
1148
- `, q = e`
1146
+ `, K = e`
1149
1147
  mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {
1150
1148
  createKnowledgeBase(input: $input) {
1151
1149
  id
@@ -1156,7 +1154,7 @@ var B = e`
1156
1154
  workspaceId
1157
1155
  }
1158
1156
  }
1159
- `, J = e`
1157
+ `, q = e`
1160
1158
  mutation updateKnowledgeBase($id: ID!, $input: UpdateKnowledgeBaseInput!) {
1161
1159
  updateKnowledgeBase(id: $id, input: $input) {
1162
1160
  id
@@ -1167,19 +1165,19 @@ var B = e`
1167
1165
  workspaceId
1168
1166
  }
1169
1167
  }
1170
- `, Y = e`
1168
+ `, J = e`
1171
1169
  mutation deleteKnowledgeBase($id: ID!) {
1172
1170
  deleteKnowledgeBase(id: $id)
1173
1171
  }
1174
- `, X = e`
1172
+ `, Y = e`
1175
1173
  mutation rebuildKnowledgeBaseIndex($knowledgeBaseId: ID!) {
1176
1174
  rebuildKnowledgeBaseIndex(knowledgeBaseId: $knowledgeBaseId)
1177
1175
  }
1178
- `, Z = e`
1176
+ `, X = e`
1179
1177
  mutation removeKnowledgeDocument($id: ID!) {
1180
1178
  removeKnowledgeDocument(id: $id)
1181
1179
  }
1182
- `, Q = e`
1180
+ `, Z = e`
1183
1181
  query getKnowledgeBaseUsage($id: ID!) {
1184
1182
  getKnowledgeBaseUsage(id: $id) {
1185
1183
  agents {
@@ -1189,7 +1187,7 @@ var B = e`
1189
1187
  }
1190
1188
  }
1191
1189
  }
1192
- `, $ = e`
1190
+ `, Q = e`
1193
1191
  query listBotmanorLLMProviders($filters: BotmanorLLMProviderFilterInput, $pagination: PaginationInput) {
1194
1192
  listBotmanorLLMProviders(filters: $filters, pagination: $pagination) {
1195
1193
  id
@@ -1227,7 +1225,7 @@ e`
1227
1225
  }
1228
1226
  }
1229
1227
  `;
1230
- var te = e`
1228
+ var $ = e`
1231
1229
  mutation createBotmanorLLMProvider($input: CreateBotmanorLLMProviderInput!) {
1232
1230
  createBotmanorLLMProvider(input: $input) {
1233
1231
  id
@@ -1241,7 +1239,7 @@ var te = e`
1241
1239
  workspaceId
1242
1240
  }
1243
1241
  }
1244
- `, ne = e`
1242
+ `, te = e`
1245
1243
  mutation updateBotmanorLLMProvider($id: ID!, $input: UpdateBotmanorLLMProviderInput!) {
1246
1244
  updateBotmanorLLMProvider(id: $id, input: $input) {
1247
1245
  id
@@ -1263,7 +1261,7 @@ e`
1263
1261
  deleteLLMProvider(id: $id)
1264
1262
  }
1265
1263
  `;
1266
- var re = e`
1264
+ var ne = e`
1267
1265
  query listBotmanorLLMModels($filters: LLMModelFilterInput, $pagination: PaginationInput) {
1268
1266
  listBotmanorLLMModels(filters: $filters, pagination: $pagination) {
1269
1267
  id
@@ -1283,11 +1281,11 @@ var re = e`
1283
1281
  updatedAt
1284
1282
  }
1285
1283
  }
1286
- `, ie = e`
1284
+ `, re = e`
1287
1285
  mutation testLlmConnection($id: ID!) {
1288
1286
  testLlmConnection(id: $id)
1289
1287
  }
1290
- `, ae = e`
1288
+ `, ie = e`
1291
1289
  mutation createBotmanorLLMModel($input: CreateBotmanorLLMModelInput!) {
1292
1290
  createBotmanorLLMModel(input: $input) {
1293
1291
  id
@@ -1307,7 +1305,7 @@ var re = e`
1307
1305
  updatedAt
1308
1306
  }
1309
1307
  }
1310
- `, oe = e`
1308
+ `, ae = e`
1311
1309
  query GetMCPConnection($id: ID!) {
1312
1310
  getMCPConnection(id: $id) {
1313
1311
  config
@@ -1328,7 +1326,7 @@ var re = e`
1328
1326
  workspaceId
1329
1327
  }
1330
1328
  }
1331
- `, se = e`
1329
+ `, oe = e`
1332
1330
  query ListMCPConnections($filters: MCPConnectionFilterInput, $pagination: PaginationInput) {
1333
1331
  listMCPConnections(filters: $filters, pagination: $pagination) {
1334
1332
  config
@@ -1349,7 +1347,7 @@ var re = e`
1349
1347
  workspaceId
1350
1348
  }
1351
1349
  }
1352
- `, ce = e`
1350
+ `, se = e`
1353
1351
  query ListMCPTools($connectionId: ID!) {
1354
1352
  listMCPTools(connectionId: $connectionId) {
1355
1353
  description
@@ -1359,7 +1357,7 @@ var re = e`
1359
1357
  riskLevel
1360
1358
  }
1361
1359
  }
1362
- `, le = e`
1360
+ `, ce = e`
1363
1361
  query ListMCPResources($connectionId: ID!) {
1364
1362
  listMCPResources(connectionId: $connectionId) {
1365
1363
  description
@@ -1368,7 +1366,7 @@ var re = e`
1368
1366
  uri
1369
1367
  }
1370
1368
  }
1371
- `, ue = e`
1369
+ `, le = e`
1372
1370
  mutation CreateMCPConnection($input: CreateMCPConnectionInput!) {
1373
1371
  createMCPConnection(input: $input) {
1374
1372
  config
@@ -1389,7 +1387,7 @@ var re = e`
1389
1387
  workspaceId
1390
1388
  }
1391
1389
  }
1392
- `, de = e`
1390
+ `, ue = e`
1393
1391
  mutation UpdateMCPConnection($id: ID!, $input: UpdateMCPConnectionInput!) {
1394
1392
  updateMCPConnection(id: $id, input: $input) {
1395
1393
  config
@@ -1410,11 +1408,11 @@ var re = e`
1410
1408
  workspaceId
1411
1409
  }
1412
1410
  }
1413
- `, fe = e`
1411
+ `, de = e`
1414
1412
  mutation DeleteMCPConnection($id: ID!) {
1415
1413
  deleteMCPConnection(id: $id)
1416
1414
  }
1417
- `, pe = e`
1415
+ `, fe = e`
1418
1416
  mutation TestMCPConnection($id: ID!) {
1419
1417
  testMCPConnection(id: $id)
1420
1418
  }
@@ -1430,7 +1428,7 @@ e`
1430
1428
  }
1431
1429
  }
1432
1430
  `;
1433
- var me = e`
1431
+ var pe = e`
1434
1432
  mutation UpdateMCPTool($id: ID!, $input: UpdateMCPToolInput!) {
1435
1433
  updateMCPTool(id: $id, input: $input) {
1436
1434
  description
@@ -1451,7 +1449,7 @@ e`
1451
1449
  }
1452
1450
  }
1453
1451
  `;
1454
- var he = e`
1452
+ var me = e`
1455
1453
  query GetPolicy($id: ID!) {
1456
1454
  getPolicy(id: $id) {
1457
1455
  bucketId
@@ -1472,7 +1470,7 @@ var he = e`
1472
1470
  workspaceId
1473
1471
  }
1474
1472
  }
1475
- `, ge = e`
1473
+ `, he = e`
1476
1474
  query ListPolicies($filters: PolicyFilterInput, $pagination: PaginationInput) {
1477
1475
  listPolicies(filters: $filters, pagination: $pagination) {
1478
1476
  bucketId
@@ -1493,7 +1491,7 @@ var he = e`
1493
1491
  workspaceId
1494
1492
  }
1495
1493
  }
1496
- `, _e = e`
1494
+ `, ge = e`
1497
1495
  mutation CreatePolicy($input: CreatePolicyInput!) {
1498
1496
  createPolicy(input: $input) {
1499
1497
  bucketId
@@ -1514,7 +1512,7 @@ var he = e`
1514
1512
  workspaceId
1515
1513
  }
1516
1514
  }
1517
- `, ve = e`
1515
+ `, _e = e`
1518
1516
  mutation UpdatePolicy($id: ID!, $input: UpdatePolicyInput!) {
1519
1517
  updatePolicy(id: $id, input: $input) {
1520
1518
  bucketId
@@ -1535,11 +1533,11 @@ var he = e`
1535
1533
  workspaceId
1536
1534
  }
1537
1535
  }
1538
- `, ye = e`
1536
+ `, ve = e`
1539
1537
  mutation DeletePolicy($id: ID!) {
1540
1538
  deletePolicy(id: $id)
1541
1539
  }
1542
- `, be = e`
1540
+ `, ye = e`
1543
1541
  query GetPromptTemplate($id: ID!) {
1544
1542
  getPromptTemplate(id: $id) {
1545
1543
  bucketId
@@ -1589,7 +1587,7 @@ e`
1589
1587
  }
1590
1588
  }
1591
1589
  `;
1592
- var xe = e`
1590
+ var be = e`
1593
1591
  query ListPromptTemplates($filters: PromptTemplateFilterInput, $pagination: PaginationInput) {
1594
1592
  listPromptTemplates(filters: $filters, pagination: $pagination) {
1595
1593
  bucketId
@@ -1613,7 +1611,7 @@ var xe = e`
1613
1611
  workspaceId
1614
1612
  }
1615
1613
  }
1616
- `, Se = e`
1614
+ `, xe = e`
1617
1615
  mutation CreatePromptTemplate($input: CreatePromptTemplateInput!) {
1618
1616
  createPromptTemplate(input: $input) {
1619
1617
  bucketId
@@ -1637,7 +1635,7 @@ var xe = e`
1637
1635
  workspaceId
1638
1636
  }
1639
1637
  }
1640
- `, Ce = e`
1638
+ `, Se = e`
1641
1639
  mutation UpdatePromptTemplate($id: ID!, $input: UpdatePromptTemplateInput!) {
1642
1640
  updatePromptTemplate(id: $id, input: $input) {
1643
1641
  bucketId
@@ -1661,7 +1659,7 @@ var xe = e`
1661
1659
  workspaceId
1662
1660
  }
1663
1661
  }
1664
- `, we = e`
1662
+ `, Ce = e`
1665
1663
  mutation DeletePromptTemplate($id: ID!) {
1666
1664
  deletePromptTemplate(id: $id)
1667
1665
  }
@@ -1691,11 +1689,11 @@ e`
1691
1689
  }
1692
1690
  }
1693
1691
  `;
1694
- var Te = e`
1692
+ var we = e`
1695
1693
  mutation RenderPromptTemplate($id: ID!, $variables: JSON) {
1696
1694
  renderPromptTemplate(id: $id, variables: $variables)
1697
1695
  }
1698
- `, Ee = e`
1696
+ `, Te = e`
1699
1697
  mutation TestPromptTemplate($id: ID!, $input: TestPromptTemplateInput!) {
1700
1698
  testPromptTemplate(id: $id, input: $input) {
1701
1699
  renderedPrompt
@@ -1707,7 +1705,7 @@ var Te = e`
1707
1705
  latencyMs
1708
1706
  }
1709
1707
  }
1710
- `, De = e`
1708
+ `, Ee = e`
1711
1709
  mutation SavePromptTemplateVersion($id: ID!, $input: SavePromptTemplateVersionInput!) {
1712
1710
  savePromptTemplateVersion(id: $id, input: $input) {
1713
1711
  id
@@ -1727,7 +1725,7 @@ var Te = e`
1727
1725
  }
1728
1726
  }
1729
1727
  }
1730
- `, Oe = e`
1728
+ `, De = e`
1731
1729
  query GetPromptTemplateVersions($id: ID!) {
1732
1730
  getPromptTemplate(id: $id) {
1733
1731
  id
@@ -1743,7 +1741,7 @@ var Te = e`
1743
1741
  }
1744
1742
  }
1745
1743
  }
1746
- `, ke = e`
1744
+ `, Oe = e`
1747
1745
  query BotmanorRetentionStatus {
1748
1746
  botmanorRetentionStatus {
1749
1747
  executionDataRetentionDays
@@ -1764,7 +1762,7 @@ var Te = e`
1764
1762
  }
1765
1763
  }
1766
1764
  }
1767
- `, Ae = e`
1765
+ `, ke = e`
1768
1766
  mutation ApplyBotmanorRetention {
1769
1767
  applyBotmanorRetention {
1770
1768
  id
@@ -1779,7 +1777,7 @@ var Te = e`
1779
1777
  finishedAt
1780
1778
  }
1781
1779
  }
1782
- `, je = e`
1780
+ `, Ae = e`
1783
1781
  query GetRetrievalProfile($id: ID!) {
1784
1782
  getRetrievalProfile(id: $id) {
1785
1783
  bucketId
@@ -1814,7 +1812,7 @@ var Te = e`
1814
1812
  workspaceId
1815
1813
  }
1816
1814
  }
1817
- `, Me = e`
1815
+ `, je = e`
1818
1816
  query ListRetrievalProfiles($filters: RetrievalProfileFilterInput, $pagination: PaginationInput) {
1819
1817
  listRetrievalProfiles(filters: $filters, pagination: $pagination) {
1820
1818
  bucketId
@@ -1848,7 +1846,7 @@ var Te = e`
1848
1846
  workspaceId
1849
1847
  }
1850
1848
  }
1851
- `, Ne = e`
1849
+ `, Me = e`
1852
1850
  mutation CreateRetrievalProfile($input: CreateRetrievalProfileInput!) {
1853
1851
  createRetrievalProfile(input: $input) {
1854
1852
  bucketId
@@ -1883,7 +1881,7 @@ var Te = e`
1883
1881
  workspaceId
1884
1882
  }
1885
1883
  }
1886
- `, Pe = e`
1884
+ `, Ne = e`
1887
1885
  mutation UpdateRetrievalProfile($id: ID!, $input: UpdateRetrievalProfileInput!) {
1888
1886
  updateRetrievalProfile(id: $id, input: $input) {
1889
1887
  bucketId
@@ -1918,11 +1916,11 @@ var Te = e`
1918
1916
  workspaceId
1919
1917
  }
1920
1918
  }
1921
- `, Fe = e`
1919
+ `, Pe = e`
1922
1920
  mutation DeleteRetrievalProfile($id: ID!) {
1923
1921
  deleteRetrievalProfile(id: $id)
1924
1922
  }
1925
- `, Ie = e`
1923
+ `, Fe = e`
1926
1924
  query GetSkill($id: ID!) {
1927
1925
  getSkill(id: $id) {
1928
1926
  bucketId
@@ -1947,7 +1945,7 @@ var Te = e`
1947
1945
  workspaceId
1948
1946
  }
1949
1947
  }
1950
- `, Le = e`
1948
+ `, Ie = e`
1951
1949
  query ListSkills($filters: SkillFilterInput, $pagination: PaginationInput) {
1952
1950
  listSkills(filters: $filters, pagination: $pagination) {
1953
1951
  bucketId
@@ -1972,7 +1970,7 @@ var Te = e`
1972
1970
  workspaceId
1973
1971
  }
1974
1972
  }
1975
- `, Re = e`
1973
+ `, Le = e`
1976
1974
  mutation CreateSkill($input: CreateSkillInput!) {
1977
1975
  createSkill(input: $input) {
1978
1976
  bucketId
@@ -1997,7 +1995,7 @@ var Te = e`
1997
1995
  workspaceId
1998
1996
  }
1999
1997
  }
2000
- `, ze = e`
1998
+ `, Re = e`
2001
1999
  mutation UpdateSkill($id: ID!, $input: UpdateSkillInput!) {
2002
2000
  updateSkill(id: $id, input: $input) {
2003
2001
  bucketId
@@ -2022,7 +2020,7 @@ var Te = e`
2022
2020
  workspaceId
2023
2021
  }
2024
2022
  }
2025
- `, Be = e`
2023
+ `, ze = e`
2026
2024
  mutation DeleteSkill($id: ID!) {
2027
2025
  deleteSkill(id: $id)
2028
2026
  }
@@ -2034,13 +2032,13 @@ e`
2034
2032
  }
2035
2033
  }
2036
2034
  ${n}`;
2037
- var Ve = e`
2035
+ var Be = e`
2038
2036
  query GetStorePackageBySlug($slug: String!) {
2039
2037
  getStorePackageBySlug(slug: $slug) {
2040
2038
  ...StorePackageFields
2041
2039
  }
2042
2040
  }
2043
- ${n}`, He = e`
2041
+ ${n}`, Ve = e`
2044
2042
  query ListStorePackages($filters: StorePackageFilterInput, $pagination: PaginationInput) {
2045
2043
  listStorePackages(filters: $filters, pagination: $pagination) {
2046
2044
  ...StorePackageFields
@@ -2055,28 +2053,28 @@ e`
2055
2053
  }
2056
2054
  ${r}
2057
2055
  ${n}`;
2058
- var Ue = e`
2056
+ var He = e`
2059
2057
  query ListInstalledPackages($filters: InstalledPackageFilterInput!, $pagination: PaginationInput) {
2060
2058
  listInstalledPackages(filters: $filters, pagination: $pagination) {
2061
2059
  ...InstalledPackageFields
2062
2060
  }
2063
2061
  }
2064
2062
  ${r}
2065
- ${n}`, We = e`
2063
+ ${n}`, Ue = e`
2066
2064
  mutation InstallPackage($input: InstallPackageInput!) {
2067
2065
  installPackage(input: $input) {
2068
2066
  ...InstalledPackageFields
2069
2067
  }
2070
2068
  }
2071
2069
  ${r}
2072
- ${n}`, Ge = e`
2070
+ ${n}`, We = e`
2073
2071
  mutation UpdateInstalledPackage($id: ID!, $input: UpdateInstalledPackageInput!) {
2074
2072
  updateInstalledPackage(id: $id, input: $input) {
2075
2073
  ...InstalledPackageFields
2076
2074
  }
2077
2075
  }
2078
2076
  ${r}
2079
- ${n}`, Ke = e`
2077
+ ${n}`, Ge = e`
2080
2078
  mutation UninstallPackage($id: ID!) {
2081
2079
  uninstallPackage(id: $id)
2082
2080
  }
@@ -2089,15 +2087,15 @@ e`
2089
2087
  }
2090
2088
  ${r}
2091
2089
  ${n}`;
2092
- var qe = e`
2090
+ var Ke = e`
2093
2091
  query CountStorePackages($filters: StorePackageFilterInput) {
2094
2092
  countStorePackages(filters: $filters)
2095
2093
  }
2096
- `, Je = e`
2094
+ `, qe = e`
2097
2095
  query CountInstalledPackages($filters: InstalledPackageFilterInput!) {
2098
2096
  countInstalledPackages(filters: $filters)
2099
2097
  }
2100
2098
  `;
2101
- export { B as AcceptHandoffDocument, t as AgentBindingsFieldsFragmentDoc, Ae as ApplyBotmanorRetentionDocument, ke as BotmanorRetentionStatusDocument, h as ConfigureSupervisorDocument, C as CountBucketsDocument, Je as CountInstalledPackagesDocument, qe as CountStorePackagesDocument, a as CreateA2ARegistryEntryDocument, ae as CreateBotmanorLlmModelDocument, te as CreateBotmanorLlmProviderDocument, b as CreateBucketDocument, k as CreateChannelConnectorDocument, M as CreateChannelRouteDocument, I as CreateExecutionDocument, q as CreateKnowledgeBaseDocument, ue as CreateMcpConnectionDocument, _e as CreatePolicyDocument, Se as CreatePromptTemplateDocument, Ne as CreateRetrievalProfileDocument, Re as CreateSkillDocument, s as DeleteA2ARegistryEntryDocument, S as DeleteBucketDocument, j as DeleteChannelConnectorDocument, N as DeleteChannelRouteDocument, Y as DeleteKnowledgeBaseDocument, fe as DeleteMcpConnectionDocument, ye as DeletePolicyDocument, we as DeletePromptTemplateDocument, Fe as DeleteRetrievalProfileDocument, Be as DeleteSkillDocument, i as GetA2ARegistryEntryDocument, c as GetAgentBindingsDocument, T as GetBucketContentsDocument, v as GetBucketDocument, E as GetChannelConnectorDocument, P as GetExecutionDocument, G as GetKnowledgeBaseDocument, Q as GetKnowledgeBaseUsageDocument, oe as GetMcpConnectionDocument, he as GetPolicyDocument, be as GetPromptTemplateDocument, Oe as GetPromptTemplateVersionsDocument, je as GetRetrievalProfileDocument, Ie as GetSkillDocument, Ve as GetStorePackageBySlugDocument, u as GetSupervisorConfigDocument, L as HandoffConfigDocument, R as HandoffQueueDocument, We as InstallPackageDocument, r as InstalledPackageFieldsFragmentDoc, ee as ListA2ARegistryEntriesDocument, f as ListAiPredictionsDocument, re as ListBotmanorLlmModelsDocument, $ as ListBotmanorLlmProvidersDocument, y as ListBucketsDocument, D as ListChannelConnectorsDocument, O as ListChannelRoutesDocument, F as ListExecutionsDocument, Ue as ListInstalledPackagesDocument, W as ListKnowledgeBasesDocument, K as ListKnowledgeDocumentsDocument, se as ListMcpConnectionsDocument, le as ListMcpResourcesDocument, ce as ListMcpToolsDocument, ge as ListPoliciesDocument, xe as ListPromptTemplatesDocument, Me as ListRetrievalProfilesDocument, Le as ListSkillsDocument, He as ListStorePackagesDocument, d as ListSupervisorRunsDocument, _ as PauseBotmanorAgentForSupervisorDocument, X as RebuildKnowledgeBaseIndexDocument, g as RebuildKnowledgeBaseIndexForSupervisorDocument, U as RejectHandoffDocument, V as ReleaseHandoffDocument, Z as RemoveKnowledgeDocumentDocument, Te as RenderPromptTemplateDocument, H as ResolveHandoffDocument, m as RunSupervisorNowDocument, De as SavePromptTemplateVersionDocument, w as SearchBucketsDocument, l as SetAgentBindingsDocument, p as SetAiPredictionStatusDocument, n as StorePackageFieldsFragmentDoc, ie as TestLlmConnectionDocument, pe as TestMcpConnectionDocument, Ee as TestPromptTemplateDocument, Ke as UninstallPackageDocument, o as UpdateA2ARegistryEntryDocument, ne as UpdateBotmanorLlmProviderDocument, x as UpdateBucketDocument, A as UpdateChannelConnectorDocument, Ge as UpdateInstalledPackageDocument, J as UpdateKnowledgeBaseDocument, de as UpdateMcpConnectionDocument, me as UpdateMcpToolDocument, ve as UpdatePolicyDocument, Ce as UpdatePromptTemplateDocument, Pe as UpdateRetrievalProfileDocument, ze as UpdateSkillDocument, z as UpsertHandoffConfigDocument };
2099
+ export { z as AcceptHandoffDocument, t as AgentBindingsFieldsFragmentDoc, ke as ApplyBotmanorRetentionDocument, Oe as BotmanorRetentionStatusDocument, h as ConfigureSupervisorDocument, C as CountBucketsDocument, qe as CountInstalledPackagesDocument, Ke as CountStorePackagesDocument, a as CreateA2ARegistryEntryDocument, ie as CreateBotmanorLlmModelDocument, $ as CreateBotmanorLlmProviderDocument, b as CreateBucketDocument, k as CreateChannelConnectorDocument, M as CreateChannelRouteDocument, K as CreateKnowledgeBaseDocument, le as CreateMcpConnectionDocument, ge as CreatePolicyDocument, xe as CreatePromptTemplateDocument, Me as CreateRetrievalProfileDocument, Le as CreateSkillDocument, s as DeleteA2ARegistryEntryDocument, S as DeleteBucketDocument, j as DeleteChannelConnectorDocument, N as DeleteChannelRouteDocument, J as DeleteKnowledgeBaseDocument, de as DeleteMcpConnectionDocument, ve as DeletePolicyDocument, Ce as DeletePromptTemplateDocument, Pe as DeleteRetrievalProfileDocument, ze as DeleteSkillDocument, i as GetA2ARegistryEntryDocument, c as GetAgentBindingsDocument, T as GetBucketContentsDocument, v as GetBucketDocument, E as GetChannelConnectorDocument, P as GetExecutionDocument, W as GetKnowledgeBaseDocument, Z as GetKnowledgeBaseUsageDocument, ae as GetMcpConnectionDocument, me as GetPolicyDocument, ye as GetPromptTemplateDocument, De as GetPromptTemplateVersionsDocument, Ae as GetRetrievalProfileDocument, Fe as GetSkillDocument, Be as GetStorePackageBySlugDocument, u as GetSupervisorConfigDocument, I as HandoffConfigDocument, L as HandoffQueueDocument, Ue as InstallPackageDocument, r as InstalledPackageFieldsFragmentDoc, ee as ListA2ARegistryEntriesDocument, f as ListAiPredictionsDocument, ne as ListBotmanorLlmModelsDocument, Q as ListBotmanorLlmProvidersDocument, y as ListBucketsDocument, D as ListChannelConnectorsDocument, O as ListChannelRoutesDocument, F as ListExecutionsDocument, He as ListInstalledPackagesDocument, U as ListKnowledgeBasesDocument, G as ListKnowledgeDocumentsDocument, oe as ListMcpConnectionsDocument, ce as ListMcpResourcesDocument, se as ListMcpToolsDocument, he as ListPoliciesDocument, be as ListPromptTemplatesDocument, je as ListRetrievalProfilesDocument, Ie as ListSkillsDocument, Ve as ListStorePackagesDocument, d as ListSupervisorRunsDocument, _ as PauseBotmanorAgentForSupervisorDocument, Y as RebuildKnowledgeBaseIndexDocument, g as RebuildKnowledgeBaseIndexForSupervisorDocument, H as RejectHandoffDocument, B as ReleaseHandoffDocument, X as RemoveKnowledgeDocumentDocument, we as RenderPromptTemplateDocument, V as ResolveHandoffDocument, m as RunSupervisorNowDocument, Ee as SavePromptTemplateVersionDocument, w as SearchBucketsDocument, l as SetAgentBindingsDocument, p as SetAiPredictionStatusDocument, n as StorePackageFieldsFragmentDoc, re as TestLlmConnectionDocument, fe as TestMcpConnectionDocument, Te as TestPromptTemplateDocument, Ge as UninstallPackageDocument, o as UpdateA2ARegistryEntryDocument, te as UpdateBotmanorLlmProviderDocument, x as UpdateBucketDocument, A as UpdateChannelConnectorDocument, We as UpdateInstalledPackageDocument, q as UpdateKnowledgeBaseDocument, ue as UpdateMcpConnectionDocument, pe as UpdateMcpToolDocument, _e as UpdatePolicyDocument, Se as UpdatePromptTemplateDocument, Ne as UpdateRetrievalProfileDocument, Re as UpdateSkillDocument, R as UpsertHandoffConfigDocument };
2102
2100
 
2103
2101
  //# sourceMappingURL=wspace-operations.js.map