@open-mercato/enterprise 0.7.1-develop.7193.1.910a5b0a1e → 0.7.1-develop.7195.1.b5efd1d51a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/README.md +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/modules/agent_orchestrator/acl.js +132 -0
- package/dist/modules/agent_orchestrator/acl.js.map +7 -0
- package/dist/modules/agent_orchestrator/ai-agents.js +57 -0
- package/dist/modules/agent_orchestrator/ai-agents.js.map +7 -0
- package/dist/modules/agent_orchestrator/ai-skills.js +48 -0
- package/dist/modules/agent_orchestrator/ai-skills.js.map +7 -0
- package/dist/modules/agent_orchestrator/ai-tools.js +254 -0
- package/dist/modules/agent_orchestrator/ai-tools.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/files/route.js +69 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/files/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/metrics/route.js +81 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/metrics/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/route.js +154 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/run/route.js +250 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/run/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/settings/route.js +105 -0
- package/dist/modules/agent_orchestrator/api/agents/[id]/settings/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/agents/route.js +114 -0
- package/dist/modules/agent_orchestrator/api/agents/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/artifacts/file/[id]/route.js +64 -0
- package/dist/modules/agent_orchestrator/api/artifacts/file/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/audit/by-instigator/[humanUserId]/route.js +105 -0
- package/dist/modules/agent_orchestrator/api/audit/by-instigator/[humanUserId]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/auto-approval/settings/route.js +110 -0
- package/dist/modules/agent_orchestrator/api/auto-approval/settings/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/context-bundles/route.js +88 -0
- package/dist/modules/agent_orchestrator/api/context-bundles/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/corrections/route.js +101 -0
- package/dist/modules/agent_orchestrator/api/corrections/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-assertions/preview/route.js +98 -0
- package/dist/modules/agent_orchestrator/api/eval-assertions/preview/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-assertions/route.js +196 -0
- package/dist/modules/agent_orchestrator/api/eval-assertions/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/[id]/approve/route.js +86 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/[id]/approve/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/[id]/archive/route.js +85 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/[id]/archive/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/[id]/route.js +67 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/export/route.js +78 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/export/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/route.js +140 -0
- package/dist/modules/agent_orchestrator/api/eval-cases/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/[id]/cancel/route.js +67 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/[id]/cancel/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/[id]/case-runs/[caseRunId]/results/route.js +66 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/[id]/case-runs/[caseRunId]/results/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/[id]/route.js +111 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/route.js +157 -0
- package/dist/modules/agent_orchestrator/api/eval-runs/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/eval-scorers/route.js +34 -0
- package/dist/modules/agent_orchestrator/api/eval-scorers/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/executions/[id]/route.js +72 -0
- package/dist/modules/agent_orchestrator/api/executions/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/executions/route.js +185 -0
- package/dist/modules/agent_orchestrator/api/executions/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/features/route.js +61 -0
- package/dist/modules/agent_orchestrator/api/features/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/guardrail-checks/route.js +85 -0
- package/dist/modules/agent_orchestrator/api/guardrail-checks/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/identity/agent/auth/route.js +95 -0
- package/dist/modules/agent_orchestrator/api/identity/agent/auth/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/identity/grants/[id]/revoke/route.js +109 -0
- package/dist/modules/agent_orchestrator/api/identity/grants/[id]/revoke/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/identity/token/route.js +80 -0
- package/dist/modules/agent_orchestrator/api/identity/token/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/identity/well-known/route.js +44 -0
- package/dist/modules/agent_orchestrator/api/identity/well-known/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/metrics/agents/route.js +122 -0
- package/dist/modules/agent_orchestrator/api/metrics/agents/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/metrics/overview/route.js +165 -0
- package/dist/modules/agent_orchestrator/api/metrics/overview/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/openapi.js +29 -0
- package/dist/modules/agent_orchestrator/api/openapi.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/processes/[id]/executions/route.js +160 -0
- package/dist/modules/agent_orchestrator/api/processes/[id]/executions/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/processes/[id]/route.js +53 -0
- package/dist/modules/agent_orchestrator/api/processes/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/processes/route.js +357 -0
- package/dist/modules/agent_orchestrator/api/processes/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/proposals/[id]/dispose/route.js +111 -0
- package/dist/modules/agent_orchestrator/api/proposals/[id]/dispose/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/proposals/route.js +98 -0
- package/dist/modules/agent_orchestrator/api/proposals/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/artifact/route.js +71 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/artifact/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/artifacts/route.js +66 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/artifacts/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/eval-case/route.js +73 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/eval-case/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/flag/route.js +74 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/flag/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/rerun/route.js +165 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/rerun/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/route.js +86 -0
- package/dist/modules/agent_orchestrator/api/runs/[id]/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/runs/route.js +137 -0
- package/dist/modules/agent_orchestrator/api/runs/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/tokens/estimate/route.js +56 -0
- package/dist/modules/agent_orchestrator/api/tokens/estimate/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/trace/ingest/route.js +80 -0
- package/dist/modules/agent_orchestrator/api/trace/ingest/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/web-search/health/route.js +184 -0
- package/dist/modules/agent_orchestrator/api/web-search/health/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/web-search/preview/route.js +150 -0
- package/dist/modules/agent_orchestrator/api/web-search/preview/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/api/web-search/settings/route.js +213 -0
- package/dist/modules/agent_orchestrator/api/web-search/settings/route.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ActivityTab.js +112 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ActivityTab.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentConfigDrawer.js +58 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentConfigDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentHeaderCard.js +117 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentHeaderCard.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AssertionFormDrawer.js +318 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AssertionFormDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ConfigurationTab.js +126 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ConfigurationTab.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalCaseDrawer.js +379 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalCaseDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalResultsDrawer.js +159 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalResultsDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvaluationTab.js +581 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvaluationTab.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/FilesTab.js +249 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/FilesTab.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/OverviewTab.js +162 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/OverviewTab.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/RunEvaluationDrawer.js +199 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/RunEvaluationDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/TokenCalculatorTab.js +137 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/TokenCalculatorTab.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/filesShared.js +97 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/filesShared.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspacePrimitives.js +159 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspacePrimitives.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspaceShared.js +132 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspaceShared.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/page.js +266 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/page.meta.js +18 -0
- package/dist/modules/agent_orchestrator/backend/agents/[id]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/agentListFilters.js +44 -0
- package/dist/modules/agent_orchestrator/backend/agents/agentListFilters.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/page.js +439 -0
- package/dist/modules/agent_orchestrator/backend/agents/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/agents/page.meta.js +28 -0
- package/dist/modules/agent_orchestrator/backend/agents/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.js +80 -0
- package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.meta.js +19 -0
- package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/audit/page.js +324 -0
- package/dist/modules/agent_orchestrator/backend/audit/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/audit/page.meta.js +27 -0
- package/dist/modules/agent_orchestrator/backend/audit/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.js +239 -0
- package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.meta.js +18 -0
- package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/caseload/hooks.js +344 -0
- package/dist/modules/agent_orchestrator/backend/caseload/hooks.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/caseload/page.js +1360 -0
- package/dist/modules/agent_orchestrator/backend/caseload/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/caseload/page.meta.js +25 -0
- package/dist/modules/agent_orchestrator/backend/caseload/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.js +357 -0
- package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.meta.js +18 -0
- package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.js +595 -0
- package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.meta.js +18 -0
- package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/overview/page.js +593 -0
- package/dist/modules/agent_orchestrator/backend/overview/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/overview/page.meta.js +27 -0
- package/dist/modules/agent_orchestrator/backend/overview/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/playground/PlaygroundEvalPanel.js +219 -0
- package/dist/modules/agent_orchestrator/backend/playground/PlaygroundEvalPanel.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/playground/page.js +443 -0
- package/dist/modules/agent_orchestrator/backend/playground/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/playground/page.meta.js +24 -0
- package/dist/modules/agent_orchestrator/backend/playground/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/[id]/page.js +611 -0
- package/dist/modules/agent_orchestrator/backend/processes/[id]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/[id]/page.meta.js +18 -0
- package/dist/modules/agent_orchestrator/backend/processes/[id]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/MilestoneEditor.js +219 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/MilestoneEditor.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/TriggerEditor.js +326 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/TriggerEditor.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.js +565 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.meta.js +17 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/formHelpers.js +69 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/formHelpers.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/navigation.js +9 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/navigation.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/page.js +735 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/page.meta.js +25 -0
- package/dist/modules/agent_orchestrator/backend/processes/definitions/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/page.js +244 -0
- package/dist/modules/agent_orchestrator/backend/processes/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/processes/page.meta.js +29 -0
- package/dist/modules/agent_orchestrator/backend/processes/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.js +204 -0
- package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.meta.js +30 -0
- package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/AdapterRow.js +241 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/AdapterRow.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/WebSearchPreview.js +129 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/WebSearchPreview.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/page.js +644 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/page.meta.js +32 -0
- package/dist/modules/agent_orchestrator/backend/settings/web-search/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/traces/[id]/page.js +1015 -0
- package/dist/modules/agent_orchestrator/backend/traces/[id]/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/traces/[id]/page.meta.js +18 -0
- package/dist/modules/agent_orchestrator/backend/traces/[id]/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/traces/page.js +477 -0
- package/dist/modules/agent_orchestrator/backend/traces/page.js.map +7 -0
- package/dist/modules/agent_orchestrator/backend/traces/page.meta.js +24 -0
- package/dist/modules/agent_orchestrator/backend/traces/page.meta.js.map +7 -0
- package/dist/modules/agent_orchestrator/cli.js +592 -0
- package/dist/modules/agent_orchestrator/cli.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/artifacts.js +127 -0
- package/dist/modules/agent_orchestrator/commands/artifacts.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/corrections.js +284 -0
- package/dist/modules/agent_orchestrator/commands/corrections.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/dispose.js +265 -0
- package/dist/modules/agent_orchestrator/commands/dispose.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/evalRuns.js +202 -0
- package/dist/modules/agent_orchestrator/commands/evalRuns.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/grants.js +119 -0
- package/dist/modules/agent_orchestrator/commands/grants.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/index.js +11 -0
- package/dist/modules/agent_orchestrator/commands/index.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/processes.js +130 -0
- package/dist/modules/agent_orchestrator/commands/processes.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/proposals.js +67 -0
- package/dist/modules/agent_orchestrator/commands/proposals.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/runActions.js +42 -0
- package/dist/modules/agent_orchestrator/commands/runActions.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/runs.js +183 -0
- package/dist/modules/agent_orchestrator/commands/runs.js.map +7 -0
- package/dist/modules/agent_orchestrator/commands/trace.js +89 -0
- package/dist/modules/agent_orchestrator/commands/trace.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/AgentIoDrawer.js +45 -0
- package/dist/modules/agent_orchestrator/components/AgentIoDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/AgentTimeline.js +129 -0
- package/dist/modules/agent_orchestrator/components/AgentTimeline.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/DisposeDialog.js +87 -0
- package/dist/modules/agent_orchestrator/components/DisposeDialog.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/EmptyArt.js +50 -0
- package/dist/modules/agent_orchestrator/components/EmptyArt.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/InvokeAgentNodeConfig.js +111 -0
- package/dist/modules/agent_orchestrator/components/InvokeAgentNodeConfig.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/ProcessOutcomeLink.js +42 -0
- package/dist/modules/agent_orchestrator/components/ProcessOutcomeLink.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/ProposalCard.js +431 -0
- package/dist/modules/agent_orchestrator/components/ProposalCard.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/ProposalFacts.js +85 -0
- package/dist/modules/agent_orchestrator/components/ProposalFacts.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/ProposalOptionList.js +190 -0
- package/dist/modules/agent_orchestrator/components/ProposalOptionList.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/ProposeOnlyNotice.js +25 -0
- package/dist/modules/agent_orchestrator/components/ProposeOnlyNotice.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/SkillDrawer.js +48 -0
- package/dist/modules/agent_orchestrator/components/SkillDrawer.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/StartHereGuide.js +183 -0
- package/dist/modules/agent_orchestrator/components/StartHereGuide.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/SystemHealthTile.js +135 -0
- package/dist/modules/agent_orchestrator/components/SystemHealthTile.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/WebSearchActivity.js +87 -0
- package/dist/modules/agent_orchestrator/components/WebSearchActivity.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/agentChips.js +90 -0
- package/dist/modules/agent_orchestrator/components/agentChips.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/cockpitStatus.js +94 -0
- package/dist/modules/agent_orchestrator/components/cockpitStatus.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/evalRunTypes.js +209 -0
- package/dist/modules/agent_orchestrator/components/evalRunTypes.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/health/HealthRow.js +15 -0
- package/dist/modules/agent_orchestrator/components/health/HealthRow.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/health/HealthStateBadge.js +13 -0
- package/dist/modules/agent_orchestrator/components/health/HealthStateBadge.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/health/SystemHealthPanel.js +126 -0
- package/dist/modules/agent_orchestrator/components/health/SystemHealthPanel.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/health/vocabulary.js +40 -0
- package/dist/modules/agent_orchestrator/components/health/vocabulary.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/optionalRequest.js +7 -0
- package/dist/modules/agent_orchestrator/components/optionalRequest.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/playgroundRunError.js +37 -0
- package/dist/modules/agent_orchestrator/components/playgroundRunError.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/playgroundToolCalls.js +12 -0
- package/dist/modules/agent_orchestrator/components/playgroundToolCalls.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/processTypes.js +454 -0
- package/dist/modules/agent_orchestrator/components/processTypes.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/proposalCaseStatus.js +64 -0
- package/dist/modules/agent_orchestrator/components/proposalCaseStatus.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/proposalEdit.js +71 -0
- package/dist/modules/agent_orchestrator/components/proposalEdit.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/proposalFactsData.js +138 -0
- package/dist/modules/agent_orchestrator/components/proposalFactsData.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/serverSort.js +34 -0
- package/dist/modules/agent_orchestrator/components/serverSort.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/subjectRef.js +34 -0
- package/dist/modules/agent_orchestrator/components/subjectRef.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/types.js +462 -0
- package/dist/modules/agent_orchestrator/components/types.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/useAgentIcons.js +31 -0
- package/dist/modules/agent_orchestrator/components/useAgentIcons.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/useAgentLabels.js +35 -0
- package/dist/modules/agent_orchestrator/components/useAgentLabels.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/useAgentTags.js +32 -0
- package/dist/modules/agent_orchestrator/components/useAgentTags.js.map +7 -0
- package/dist/modules/agent_orchestrator/components/useCoalescedReload.js +33 -0
- package/dist/modules/agent_orchestrator/components/useCoalescedReload.js.map +7 -0
- package/dist/modules/agent_orchestrator/data/agentIcons.js +35 -0
- package/dist/modules/agent_orchestrator/data/agentIcons.js.map +7 -0
- package/dist/modules/agent_orchestrator/data/agentTags.js +26 -0
- package/dist/modules/agent_orchestrator/data/agentTags.js.map +7 -0
- package/dist/modules/agent_orchestrator/data/entities.js +1382 -0
- package/dist/modules/agent_orchestrator/data/entities.js.map +7 -0
- package/dist/modules/agent_orchestrator/data/proposalEnvelope.js +168 -0
- package/dist/modules/agent_orchestrator/data/proposalEnvelope.js.map +7 -0
- package/dist/modules/agent_orchestrator/data/validators.js +949 -0
- package/dist/modules/agent_orchestrator/data/validators.js.map +7 -0
- package/dist/modules/agent_orchestrator/di.js +169 -0
- package/dist/modules/agent_orchestrator/di.js.map +7 -0
- package/dist/modules/agent_orchestrator/encryption.js +100 -0
- package/dist/modules/agent_orchestrator/encryption.js.map +7 -0
- package/dist/modules/agent_orchestrator/events.js +87 -0
- package/dist/modules/agent_orchestrator/events.js.map +7 -0
- package/dist/modules/agent_orchestrator/examples/deals-health-check-workflow.json +124 -0
- package/dist/modules/agent_orchestrator/examples/refund-triage-workflow.json +210 -0
- package/dist/modules/agent_orchestrator/generated/file-agents.generated.js +169 -0
- package/dist/modules/agent_orchestrator/generated/file-agents.generated.js.map +7 -0
- package/dist/modules/agent_orchestrator/i18n/de.json +1495 -0
- package/dist/modules/agent_orchestrator/i18n/en.json +1495 -0
- package/dist/modules/agent_orchestrator/i18n/es.json +1495 -0
- package/dist/modules/agent_orchestrator/i18n/ko.json +1495 -0
- package/dist/modules/agent_orchestrator/i18n/pl.json +1495 -0
- package/dist/modules/agent_orchestrator/index.js +151 -0
- package/dist/modules/agent_orchestrator/index.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/automationLinks.js +12 -0
- package/dist/modules/agent_orchestrator/lib/automationLinks.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/contextResolver.js +317 -0
- package/dist/modules/agent_orchestrator/lib/context/contextResolver.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/documentIngest.js +93 -0
- package/dist/modules/agent_orchestrator/lib/context/documentIngest.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/documentOcrProvider.js +90 -0
- package/dist/modules/agent_orchestrator/lib/context/documentOcrProvider.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/documentSource.js +44 -0
- package/dist/modules/agent_orchestrator/lib/context/documentSource.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/index.js +64 -0
- package/dist/modules/agent_orchestrator/lib/context/index.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/packer.js +47 -0
- package/dist/modules/agent_orchestrator/lib/context/packer.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/redactor.js +72 -0
- package/dist/modules/agent_orchestrator/lib/context/redactor.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/registry.js +60 -0
- package/dist/modules/agent_orchestrator/lib/context/registry.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/context/retrievalSource.js +69 -0
- package/dist/modules/agent_orchestrator/lib/context/retrievalSource.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/crudCache.js +24 -0
- package/dist/modules/agent_orchestrator/lib/crudCache.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/disposition/autoApprovalPolicy.js +51 -0
- package/dist/modules/agent_orchestrator/lib/disposition/autoApprovalPolicy.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/disposition/dispositionService.js +190 -0
- package/dist/modules/agent_orchestrator/lib/disposition/dispositionService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/disposition/resume.js +42 -0
- package/dist/modules/agent_orchestrator/lib/disposition/resume.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/disposition/tenantAutoApprovalPolicy.js +59 -0
- package/dist/modules/agent_orchestrator/lib/disposition/tenantAutoApprovalPolicy.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/assertionResolution.js +53 -0
- package/dist/modules/agent_orchestrator/lib/eval/assertionResolution.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/canonicalInputKey.js +20 -0
- package/dist/modules/agent_orchestrator/lib/eval/canonicalInputKey.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/defaultAssertions.js +78 -0
- package/dist/modules/agent_orchestrator/lib/eval/defaultAssertions.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/evalGate.js +71 -0
- package/dist/modules/agent_orchestrator/lib/eval/evalGate.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/evalReplayService.js +277 -0
- package/dist/modules/agent_orchestrator/lib/eval/evalReplayService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/evalRuntimeService.js +141 -0
- package/dist/modules/agent_orchestrator/lib/eval/evalRuntimeService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/judgeRubric.js +150 -0
- package/dist/modules/agent_orchestrator/lib/eval/judgeRubric.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/llmJudge.js +122 -0
- package/dist/modules/agent_orchestrator/lib/eval/llmJudge.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/projectRunView.js +32 -0
- package/dist/modules/agent_orchestrator/lib/eval/projectRunView.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/agent.js +240 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/agent.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/economics.js +77 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/economics.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/index.js +97 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/index.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/judge.js +66 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/judge.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/shared.js +146 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/shared.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/structured.js +264 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/structured.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/text.js +110 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/text.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/tools.js +232 -0
- package/dist/modules/agent_orchestrator/lib/eval/registry/tools.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/sampling.js +26 -0
- package/dist/modules/agent_orchestrator/lib/eval/sampling.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/scorers.js +46 -0
- package/dist/modules/agent_orchestrator/lib/eval/scorers.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/eval/types.js +16 -0
- package/dist/modules/agent_orchestrator/lib/eval/types.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/featureFlags.js +9 -0
- package/dist/modules/agent_orchestrator/lib/featureFlags.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/grounding.js +90 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/grounding.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/groundingSets.js +35 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/groundingSets.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/guardrailService.js +160 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/guardrailService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/promptInjection.js +94 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/promptInjection.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/publicEndpointRateLimit.js +36 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/publicEndpointRateLimit.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/syncGroundingSets.js +43 -0
- package/dist/modules/agent_orchestrator/lib/guardrails/syncGroundingSets.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentAuthMdService.js +136 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentAuthMdService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentDelegationGrantService.js +55 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentDelegationGrantService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentNoBypassSubscriber.js +50 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentNoBypassSubscriber.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentPrincipalService.js +149 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentPrincipalService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentTokenService.js +138 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentTokenService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentWriteScope.js +22 -0
- package/dist/modules/agent_orchestrator/lib/identity/agentWriteScope.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/metrics/metricRollupService.js +112 -0
- package/dist/modules/agent_orchestrator/lib/metrics/metricRollupService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/processes/executionSearch.js +16 -0
- package/dist/modules/agent_orchestrator/lib/processes/executionSearch.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/processes/materializeAgentWorkflow.js +178 -0
- package/dist/modules/agent_orchestrator/lib/processes/materializeAgentWorkflow.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/processes/processProjection.js +220 -0
- package/dist/modules/agent_orchestrator/lib/processes/processProjection.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/processes/subjectContext.js +14 -0
- package/dist/modules/agent_orchestrator/lib/processes/subjectContext.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/processes/workflowGrant.js +41 -0
- package/dist/modules/agent_orchestrator/lib/processes/workflowGrant.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/queue.js +25 -0
- package/dist/modules/agent_orchestrator/lib/queue.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/actionVocabulary.js +66 -0
- package/dist/modules/agent_orchestrator/lib/runtime/actionVocabulary.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/admission.js +113 -0
- package/dist/modules/agent_orchestrator/lib/runtime/admission.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/agentRunSessionStore.js +92 -0
- package/dist/modules/agent_orchestrator/lib/runtime/agentRunSessionStore.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/agentRuntime.js +67 -0
- package/dist/modules/agent_orchestrator/lib/runtime/agentRuntime.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/agentWorkspaceManager.js +111 -0
- package/dist/modules/agent_orchestrator/lib/runtime/agentWorkspaceManager.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/artifactCollector.js +146 -0
- package/dist/modules/agent_orchestrator/lib/runtime/artifactCollector.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/artifactFileStore.js +85 -0
- package/dist/modules/agent_orchestrator/lib/runtime/artifactFileStore.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/attachmentStager.js +62 -0
- package/dist/modules/agent_orchestrator/lib/runtime/attachmentStager.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/errors.js +38 -0
- package/dist/modules/agent_orchestrator/lib/runtime/errors.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/executeProposal.js +37 -0
- package/dist/modules/agent_orchestrator/lib/runtime/executeProposal.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/fileAgentSkills.js +32 -0
- package/dist/modules/agent_orchestrator/lib/runtime/fileAgentSkills.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/fileInput.js +27 -0
- package/dist/modules/agent_orchestrator/lib/runtime/fileInput.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/invokeAgentForWorkflow.js +115 -0
- package/dist/modules/agent_orchestrator/lib/runtime/invokeAgentForWorkflow.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/modelPricing.js +77 -0
- package/dist/modules/agent_orchestrator/lib/runtime/modelPricing.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/nativeAgentRunner.js +422 -0
- package/dist/modules/agent_orchestrator/lib/runtime/nativeAgentRunner.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/nativeTraceCapture.js +132 -0
- package/dist/modules/agent_orchestrator/lib/runtime/nativeTraceCapture.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/openCodeAgentRunner.js +581 -0
- package/dist/modules/agent_orchestrator/lib/runtime/openCodeAgentRunner.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/persistence.js +110 -0
- package/dist/modules/agent_orchestrator/lib/runtime/persistence.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/providerBudget.js +152 -0
- package/dist/modules/agent_orchestrator/lib/runtime/providerBudget.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/rerunContext.js +13 -0
- package/dist/modules/agent_orchestrator/lib/runtime/rerunContext.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/runContext.js +17 -0
- package/dist/modules/agent_orchestrator/lib/runtime/runContext.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/runtime/sandboxedScript.js +39 -0
- package/dist/modules/agent_orchestrator/lib/runtime/sandboxedScript.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/agentMarkdown.js +91 -0
- package/dist/modules/agent_orchestrator/lib/sdk/agentMarkdown.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/agentOutcomeContract.js +35 -0
- package/dist/modules/agent_orchestrator/lib/sdk/agentOutcomeContract.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/defineAgent.js +214 -0
- package/dist/modules/agent_orchestrator/lib/sdk/defineAgent.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/defineFileAgent.js +417 -0
- package/dist/modules/agent_orchestrator/lib/sdk/defineFileAgent.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/defineSkill.js +40 -0
- package/dist/modules/agent_orchestrator/lib/sdk/defineSkill.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/outcomeSchema.js +129 -0
- package/dist/modules/agent_orchestrator/lib/sdk/outcomeSchema.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/sdk/skillMarkdown.js +78 -0
- package/dist/modules/agent_orchestrator/lib/sdk/skillMarkdown.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/seeds.js +224 -0
- package/dist/modules/agent_orchestrator/lib/seeds.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/settings/agentSettings.js +55 -0
- package/dist/modules/agent_orchestrator/lib/settings/agentSettings.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/systemHealth.js +94 -0
- package/dist/modules/agent_orchestrator/lib/systemHealth.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/eventTriggerMatch.js +81 -0
- package/dist/modules/agent_orchestrator/lib/tasks/eventTriggerMatch.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/milestones.js +96 -0
- package/dist/modules/agent_orchestrator/lib/tasks/milestones.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/outcome.js +44 -0
- package/dist/modules/agent_orchestrator/lib/tasks/outcome.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/outcomeLink.js +45 -0
- package/dist/modules/agent_orchestrator/lib/tasks/outcomeLink.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/schedule.js +63 -0
- package/dist/modules/agent_orchestrator/lib/tasks/schedule.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/scheduleValidation.js +25 -0
- package/dist/modules/agent_orchestrator/lib/tasks/scheduleValidation.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tasks/triggers.js +34 -0
- package/dist/modules/agent_orchestrator/lib/tasks/triggers.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tokens/computeAgentTokenUsage.js +70 -0
- package/dist/modules/agent_orchestrator/lib/tokens/computeAgentTokenUsage.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/tokens/types.js +1 -0
- package/dist/modules/agent_orchestrator/lib/tokens/types.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/trace/artifactStore.js +89 -0
- package/dist/modules/agent_orchestrator/lib/trace/artifactStore.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/trace/correctionService.js +61 -0
- package/dist/modules/agent_orchestrator/lib/trace/correctionService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/trace/ingestAuth.js +39 -0
- package/dist/modules/agent_orchestrator/lib/trace/ingestAuth.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/trace/redactToolSummary.js +44 -0
- package/dist/modules/agent_orchestrator/lib/trace/redactToolSummary.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/trace/spanTimeline.js +96 -0
- package/dist/modules/agent_orchestrator/lib/trace/spanTimeline.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/trace/traceIngestionService.js +168 -0
- package/dist/modules/agent_orchestrator/lib/trace/traceIngestionService.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/guardrails.js +116 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/guardrails.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/healthCache.js +68 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/healthCache.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/healthProbePlan.js +16 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/healthProbePlan.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/policy.js +172 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/policy.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/registry.js +113 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/registry.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/secretStorage.js +87 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/secretStorage.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/steps.js +48 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/steps.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/tools.js +176 -0
- package/dist/modules/agent_orchestrator/lib/webSearch/tools.js.map +7 -0
- package/dist/modules/agent_orchestrator/lib/workInbox/agentDispositionSource.js +151 -0
- package/dist/modules/agent_orchestrator/lib/workInbox/agentDispositionSource.js.map +7 -0
- package/dist/modules/agent_orchestrator/migrations/Migration20260906141535_agent_orchestrator.js +200 -0
- package/dist/modules/agent_orchestrator/migrations/Migration20260906141535_agent_orchestrator.js.map +7 -0
- package/dist/modules/agent_orchestrator/notifications.js +32 -0
- package/dist/modules/agent_orchestrator/notifications.js.map +7 -0
- package/dist/modules/agent_orchestrator/setup.js +147 -0
- package/dist/modules/agent_orchestrator/setup.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-event-trigger.js +140 -0
- package/dist/modules/agent_orchestrator/subscribers/process-event-trigger.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-proposal-created.js +17 -0
- package/dist/modules/agent_orchestrator/subscribers/process-proposal-created.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-proposal-disposed.js +15 -0
- package/dist/modules/agent_orchestrator/subscribers/process-proposal-disposed.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-run-completed.js +17 -0
- package/dist/modules/agent_orchestrator/subscribers/process-run-completed.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-run-ingested.js +17 -0
- package/dist/modules/agent_orchestrator/subscribers/process-run-ingested.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-cancelled.js +20 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-cancelled.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-completed.js +20 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-completed.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-failed.js +21 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-failed.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-milestone.js +30 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-milestone.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-started.js +25 -0
- package/dist/modules/agent_orchestrator/subscribers/process-workflow-started.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/proposal-disposed-notification-clear.js +34 -0
- package/dist/modules/agent_orchestrator/subscribers/proposal-disposed-notification-clear.js.map +7 -0
- package/dist/modules/agent_orchestrator/subscribers/proposal-pending-notification.js +53 -0
- package/dist/modules/agent_orchestrator/subscribers/proposal-pending-notification.js.map +7 -0
- package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.client.js +44 -0
- package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.client.js.map +7 -0
- package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.js +17 -0
- package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.js.map +7 -0
- package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.client.js +107 -0
- package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.client.js.map +7 -0
- package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.js +17 -0
- package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.js.map +7 -0
- package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-link/widget.js +28 -0
- package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-link/widget.js.map +7 -0
- package/dist/modules/agent_orchestrator/widgets/injection-table.js +33 -0
- package/dist/modules/agent_orchestrator/widgets/injection-table.js.map +7 -0
- package/dist/modules/agent_orchestrator/workers/eval-suite-runner.js +56 -0
- package/dist/modules/agent_orchestrator/workers/eval-suite-runner.js.map +7 -0
- package/dist/modules/agent_orchestrator/workers/llm-judge.js +29 -0
- package/dist/modules/agent_orchestrator/workers/llm-judge.js.map +7 -0
- package/dist/modules/agent_orchestrator/workers/metric-rollup.js +29 -0
- package/dist/modules/agent_orchestrator/workers/metric-rollup.js.map +7 -0
- package/dist/modules/agent_orchestrator/workers/process-execution-starter.js +130 -0
- package/dist/modules/agent_orchestrator/workers/process-execution-starter.js.map +7 -0
- package/dist/modules/record_locks/lib/conflictValues.js +78 -0
- package/dist/modules/record_locks/lib/conflictValues.js.map +7 -0
- package/dist/modules/record_locks/lib/crudMutationGuardService.js +19 -4
- package/dist/modules/record_locks/lib/crudMutationGuardService.js.map +2 -2
- package/dist/modules/record_locks/lib/recordLockService.js +1 -44
- package/dist/modules/record_locks/lib/recordLockService.js.map +2 -2
- package/jest.config.cjs +2 -0
- package/package.json +18 -6
- package/src/index.ts +1 -1
- package/src/modules/agent_orchestrator/.ai/skills/om-create-opencode-agent/SKILL.md +251 -0
- package/src/modules/agent_orchestrator/AGENTS.md +374 -0
- package/src/modules/agent_orchestrator/DEMO.md +175 -0
- package/src/modules/agent_orchestrator/acl.ts +131 -0
- package/src/modules/agent_orchestrator/ai-agents.ts +70 -0
- package/src/modules/agent_orchestrator/ai-skills.ts +59 -0
- package/src/modules/agent_orchestrator/ai-tools.ts +391 -0
- package/src/modules/agent_orchestrator/api/agents/[id]/files/route.ts +77 -0
- package/src/modules/agent_orchestrator/api/agents/[id]/metrics/route.ts +106 -0
- package/src/modules/agent_orchestrator/api/agents/[id]/route.ts +166 -0
- package/src/modules/agent_orchestrator/api/agents/[id]/run/route.ts +339 -0
- package/src/modules/agent_orchestrator/api/agents/[id]/settings/route.ts +119 -0
- package/src/modules/agent_orchestrator/api/agents/route.ts +124 -0
- package/src/modules/agent_orchestrator/api/artifacts/file/[id]/route.ts +80 -0
- package/src/modules/agent_orchestrator/api/audit/by-instigator/[humanUserId]/route.ts +143 -0
- package/src/modules/agent_orchestrator/api/auto-approval/settings/route.ts +143 -0
- package/src/modules/agent_orchestrator/api/context-bundles/route.ts +89 -0
- package/src/modules/agent_orchestrator/api/corrections/route.ts +119 -0
- package/src/modules/agent_orchestrator/api/eval-assertions/preview/route.ts +123 -0
- package/src/modules/agent_orchestrator/api/eval-assertions/route.ts +228 -0
- package/src/modules/agent_orchestrator/api/eval-cases/[id]/approve/route.ts +101 -0
- package/src/modules/agent_orchestrator/api/eval-cases/[id]/archive/route.ts +100 -0
- package/src/modules/agent_orchestrator/api/eval-cases/[id]/route.ts +84 -0
- package/src/modules/agent_orchestrator/api/eval-cases/export/route.ts +92 -0
- package/src/modules/agent_orchestrator/api/eval-cases/route.ts +159 -0
- package/src/modules/agent_orchestrator/api/eval-runs/[id]/cancel/route.ts +78 -0
- package/src/modules/agent_orchestrator/api/eval-runs/[id]/case-runs/[caseRunId]/results/route.ts +82 -0
- package/src/modules/agent_orchestrator/api/eval-runs/[id]/route.ts +133 -0
- package/src/modules/agent_orchestrator/api/eval-runs/route.ts +197 -0
- package/src/modules/agent_orchestrator/api/eval-scorers/route.ts +51 -0
- package/src/modules/agent_orchestrator/api/executions/[id]/route.ts +106 -0
- package/src/modules/agent_orchestrator/api/executions/route.ts +206 -0
- package/src/modules/agent_orchestrator/api/features/route.ts +71 -0
- package/src/modules/agent_orchestrator/api/guardrail-checks/route.ts +86 -0
- package/src/modules/agent_orchestrator/api/identity/agent/auth/route.ts +121 -0
- package/src/modules/agent_orchestrator/api/identity/grants/[id]/revoke/route.ts +133 -0
- package/src/modules/agent_orchestrator/api/identity/token/route.ts +102 -0
- package/src/modules/agent_orchestrator/api/identity/well-known/route.ts +60 -0
- package/src/modules/agent_orchestrator/api/metrics/agents/route.ts +160 -0
- package/src/modules/agent_orchestrator/api/metrics/overview/route.ts +240 -0
- package/src/modules/agent_orchestrator/api/openapi.ts +31 -0
- package/src/modules/agent_orchestrator/api/processes/[id]/executions/route.ts +211 -0
- package/src/modules/agent_orchestrator/api/processes/[id]/route.ts +70 -0
- package/src/modules/agent_orchestrator/api/processes/route.ts +458 -0
- package/src/modules/agent_orchestrator/api/proposals/[id]/dispose/route.ts +131 -0
- package/src/modules/agent_orchestrator/api/proposals/route.ts +113 -0
- package/src/modules/agent_orchestrator/api/runs/[id]/artifact/route.ts +93 -0
- package/src/modules/agent_orchestrator/api/runs/[id]/artifacts/route.ts +83 -0
- package/src/modules/agent_orchestrator/api/runs/[id]/eval-case/route.ts +91 -0
- package/src/modules/agent_orchestrator/api/runs/[id]/flag/route.ts +89 -0
- package/src/modules/agent_orchestrator/api/runs/[id]/rerun/route.ts +195 -0
- package/src/modules/agent_orchestrator/api/runs/[id]/route.ts +102 -0
- package/src/modules/agent_orchestrator/api/runs/route.ts +146 -0
- package/src/modules/agent_orchestrator/api/tokens/estimate/route.ts +61 -0
- package/src/modules/agent_orchestrator/api/trace/ingest/route.ts +98 -0
- package/src/modules/agent_orchestrator/api/web-search/health/route.ts +268 -0
- package/src/modules/agent_orchestrator/api/web-search/preview/route.ts +184 -0
- package/src/modules/agent_orchestrator/api/web-search/settings/route.ts +309 -0
- package/src/modules/agent_orchestrator/auth.md +107 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/ActivityTab.tsx +118 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/AgentConfigDrawer.tsx +96 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/AgentHeaderCard.tsx +174 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/AssertionFormDrawer.tsx +418 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/ConfigurationTab.tsx +185 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/EvalCaseDrawer.tsx +488 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/EvalResultsDrawer.tsx +244 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/EvaluationTab.tsx +715 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/FilesTab.tsx +328 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/OverviewTab.tsx +211 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/RunEvaluationDrawer.tsx +247 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/TokenCalculatorTab.tsx +143 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/filesShared.ts +149 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/workspacePrimitives.tsx +236 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/components/workspaceShared.ts +193 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/page.meta.ts +14 -0
- package/src/modules/agent_orchestrator/backend/agents/[id]/page.tsx +335 -0
- package/src/modules/agent_orchestrator/backend/agents/agentListFilters.ts +95 -0
- package/src/modules/agent_orchestrator/backend/agents/page.meta.ts +26 -0
- package/src/modules/agent_orchestrator/backend/agents/page.tsx +549 -0
- package/src/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.meta.ts +15 -0
- package/src/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.tsx +126 -0
- package/src/modules/agent_orchestrator/backend/audit/page.meta.ts +25 -0
- package/src/modules/agent_orchestrator/backend/audit/page.tsx +392 -0
- package/src/modules/agent_orchestrator/backend/caseload/[proposalId]/page.meta.ts +14 -0
- package/src/modules/agent_orchestrator/backend/caseload/[proposalId]/page.tsx +298 -0
- package/src/modules/agent_orchestrator/backend/caseload/hooks.ts +583 -0
- package/src/modules/agent_orchestrator/backend/caseload/page.meta.ts +23 -0
- package/src/modules/agent_orchestrator/backend/caseload/page.tsx +1761 -0
- package/src/modules/agent_orchestrator/backend/eval-cases/[id]/page.meta.ts +14 -0
- package/src/modules/agent_orchestrator/backend/eval-cases/[id]/page.tsx +446 -0
- package/src/modules/agent_orchestrator/backend/eval-runs/[id]/page.meta.ts +14 -0
- package/src/modules/agent_orchestrator/backend/eval-runs/[id]/page.tsx +824 -0
- package/src/modules/agent_orchestrator/backend/overview/page.meta.ts +25 -0
- package/src/modules/agent_orchestrator/backend/overview/page.tsx +755 -0
- package/src/modules/agent_orchestrator/backend/playground/PlaygroundEvalPanel.tsx +292 -0
- package/src/modules/agent_orchestrator/backend/playground/page.meta.ts +22 -0
- package/src/modules/agent_orchestrator/backend/playground/page.tsx +647 -0
- package/src/modules/agent_orchestrator/backend/processes/[id]/page.meta.ts +14 -0
- package/src/modules/agent_orchestrator/backend/processes/[id]/page.tsx +856 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/MilestoneEditor.tsx +285 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/TriggerEditor.tsx +391 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/[id]/page.meta.ts +13 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/[id]/page.tsx +705 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/formHelpers.ts +100 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/navigation.ts +6 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/page.meta.ts +23 -0
- package/src/modules/agent_orchestrator/backend/processes/definitions/page.tsx +904 -0
- package/src/modules/agent_orchestrator/backend/processes/page.meta.ts +27 -0
- package/src/modules/agent_orchestrator/backend/processes/page.tsx +317 -0
- package/src/modules/agent_orchestrator/backend/settings/auto-approval/page.meta.ts +28 -0
- package/src/modules/agent_orchestrator/backend/settings/auto-approval/page.tsx +315 -0
- package/src/modules/agent_orchestrator/backend/settings/web-search/AdapterRow.tsx +351 -0
- package/src/modules/agent_orchestrator/backend/settings/web-search/WebSearchPreview.tsx +203 -0
- package/src/modules/agent_orchestrator/backend/settings/web-search/page.meta.ts +30 -0
- package/src/modules/agent_orchestrator/backend/settings/web-search/page.tsx +913 -0
- package/src/modules/agent_orchestrator/backend/traces/[id]/page.meta.ts +14 -0
- package/src/modules/agent_orchestrator/backend/traces/[id]/page.tsx +1383 -0
- package/src/modules/agent_orchestrator/backend/traces/page.meta.ts +22 -0
- package/src/modules/agent_orchestrator/backend/traces/page.tsx +601 -0
- package/src/modules/agent_orchestrator/cli.ts +719 -0
- package/src/modules/agent_orchestrator/commands/artifacts.ts +171 -0
- package/src/modules/agent_orchestrator/commands/corrections.ts +345 -0
- package/src/modules/agent_orchestrator/commands/dispose.ts +380 -0
- package/src/modules/agent_orchestrator/commands/evalRuns.ts +291 -0
- package/src/modules/agent_orchestrator/commands/grants.ts +149 -0
- package/src/modules/agent_orchestrator/commands/index.ts +10 -0
- package/src/modules/agent_orchestrator/commands/processes.ts +176 -0
- package/src/modules/agent_orchestrator/commands/proposals.ts +82 -0
- package/src/modules/agent_orchestrator/commands/runActions.ts +52 -0
- package/src/modules/agent_orchestrator/commands/runs.ts +212 -0
- package/src/modules/agent_orchestrator/commands/trace.ts +118 -0
- package/src/modules/agent_orchestrator/components/AgentIoDrawer.tsx +87 -0
- package/src/modules/agent_orchestrator/components/AgentTimeline.tsx +175 -0
- package/src/modules/agent_orchestrator/components/DisposeDialog.tsx +112 -0
- package/src/modules/agent_orchestrator/components/EmptyArt.tsx +51 -0
- package/src/modules/agent_orchestrator/components/InvokeAgentNodeConfig.tsx +150 -0
- package/src/modules/agent_orchestrator/components/ProcessOutcomeLink.tsx +50 -0
- package/src/modules/agent_orchestrator/components/ProposalCard.tsx +602 -0
- package/src/modules/agent_orchestrator/components/ProposalFacts.tsx +139 -0
- package/src/modules/agent_orchestrator/components/ProposalOptionList.tsx +273 -0
- package/src/modules/agent_orchestrator/components/ProposeOnlyNotice.tsx +40 -0
- package/src/modules/agent_orchestrator/components/SkillDrawer.tsx +75 -0
- package/src/modules/agent_orchestrator/components/StartHereGuide.tsx +241 -0
- package/src/modules/agent_orchestrator/components/SystemHealthTile.tsx +189 -0
- package/src/modules/agent_orchestrator/components/WebSearchActivity.tsx +180 -0
- package/src/modules/agent_orchestrator/components/agentChips.tsx +123 -0
- package/src/modules/agent_orchestrator/components/cockpitStatus.tsx +154 -0
- package/src/modules/agent_orchestrator/components/evalRunTypes.ts +339 -0
- package/src/modules/agent_orchestrator/components/health/HealthRow.tsx +36 -0
- package/src/modules/agent_orchestrator/components/health/HealthStateBadge.tsx +21 -0
- package/src/modules/agent_orchestrator/components/health/SystemHealthPanel.tsx +206 -0
- package/src/modules/agent_orchestrator/components/health/vocabulary.ts +53 -0
- package/src/modules/agent_orchestrator/components/optionalRequest.ts +18 -0
- package/src/modules/agent_orchestrator/components/playgroundRunError.ts +63 -0
- package/src/modules/agent_orchestrator/components/playgroundToolCalls.ts +32 -0
- package/src/modules/agent_orchestrator/components/processTypes.ts +613 -0
- package/src/modules/agent_orchestrator/components/proposalCaseStatus.ts +100 -0
- package/src/modules/agent_orchestrator/components/proposalEdit.ts +118 -0
- package/src/modules/agent_orchestrator/components/proposalFactsData.ts +222 -0
- package/src/modules/agent_orchestrator/components/serverSort.ts +56 -0
- package/src/modules/agent_orchestrator/components/subjectRef.ts +61 -0
- package/src/modules/agent_orchestrator/components/types.ts +834 -0
- package/src/modules/agent_orchestrator/components/useAgentIcons.ts +42 -0
- package/src/modules/agent_orchestrator/components/useAgentLabels.ts +44 -0
- package/src/modules/agent_orchestrator/components/useAgentTags.ts +38 -0
- package/src/modules/agent_orchestrator/components/useCoalescedReload.ts +43 -0
- package/src/modules/agent_orchestrator/data/agentIcons.ts +52 -0
- package/src/modules/agent_orchestrator/data/agentTags.ts +39 -0
- package/src/modules/agent_orchestrator/data/entities.ts +1904 -0
- package/src/modules/agent_orchestrator/data/proposalEnvelope.ts +263 -0
- package/src/modules/agent_orchestrator/data/validators.ts +1585 -0
- package/src/modules/agent_orchestrator/di.ts +182 -0
- package/src/modules/agent_orchestrator/encryption.ts +98 -0
- package/src/modules/agent_orchestrator/events.ts +97 -0
- package/src/modules/agent_orchestrator/examples/deals-health-check-workflow.json +124 -0
- package/src/modules/agent_orchestrator/examples/refund-triage-workflow.json +210 -0
- package/src/modules/agent_orchestrator/generated/file-agents.generated.ts +207 -0
- package/src/modules/agent_orchestrator/i18n/.hardcoded-allowlist.json +22 -0
- package/src/modules/agent_orchestrator/i18n/de.json +1495 -0
- package/src/modules/agent_orchestrator/i18n/en.json +1495 -0
- package/src/modules/agent_orchestrator/i18n/es.json +1495 -0
- package/src/modules/agent_orchestrator/i18n/ko.json +1495 -0
- package/src/modules/agent_orchestrator/i18n/pl.json +1495 -0
- package/src/modules/agent_orchestrator/index.ts +155 -0
- package/src/modules/agent_orchestrator/lib/automationLinks.ts +20 -0
- package/src/modules/agent_orchestrator/lib/context/contextResolver.ts +528 -0
- package/src/modules/agent_orchestrator/lib/context/documentIngest.ts +187 -0
- package/src/modules/agent_orchestrator/lib/context/documentOcrProvider.ts +189 -0
- package/src/modules/agent_orchestrator/lib/context/documentSource.ts +88 -0
- package/src/modules/agent_orchestrator/lib/context/index.ts +68 -0
- package/src/modules/agent_orchestrator/lib/context/packer.ts +114 -0
- package/src/modules/agent_orchestrator/lib/context/redactor.ts +138 -0
- package/src/modules/agent_orchestrator/lib/context/registry.ts +153 -0
- package/src/modules/agent_orchestrator/lib/context/retrievalSource.ts +146 -0
- package/src/modules/agent_orchestrator/lib/crudCache.ts +62 -0
- package/src/modules/agent_orchestrator/lib/disposition/autoApprovalPolicy.ts +163 -0
- package/src/modules/agent_orchestrator/lib/disposition/dispositionService.ts +310 -0
- package/src/modules/agent_orchestrator/lib/disposition/resume.ts +81 -0
- package/src/modules/agent_orchestrator/lib/disposition/tenantAutoApprovalPolicy.ts +100 -0
- package/src/modules/agent_orchestrator/lib/eval/assertionResolution.ts +105 -0
- package/src/modules/agent_orchestrator/lib/eval/canonicalInputKey.ts +32 -0
- package/src/modules/agent_orchestrator/lib/eval/defaultAssertions.ts +103 -0
- package/src/modules/agent_orchestrator/lib/eval/evalGate.ts +139 -0
- package/src/modules/agent_orchestrator/lib/eval/evalReplayService.ts +517 -0
- package/src/modules/agent_orchestrator/lib/eval/evalRuntimeService.ts +215 -0
- package/src/modules/agent_orchestrator/lib/eval/judgeRubric.ts +212 -0
- package/src/modules/agent_orchestrator/lib/eval/llmJudge.ts +174 -0
- package/src/modules/agent_orchestrator/lib/eval/projectRunView.ts +53 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/agent.ts +334 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/economics.ts +91 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/index.ts +157 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/judge.ts +102 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/shared.ts +208 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/structured.ts +297 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/text.ts +125 -0
- package/src/modules/agent_orchestrator/lib/eval/registry/tools.ts +263 -0
- package/src/modules/agent_orchestrator/lib/eval/sampling.ts +33 -0
- package/src/modules/agent_orchestrator/lib/eval/scorers.ts +90 -0
- package/src/modules/agent_orchestrator/lib/eval/types.ts +189 -0
- package/src/modules/agent_orchestrator/lib/featureFlags.ts +22 -0
- package/src/modules/agent_orchestrator/lib/guardrails/grounding.ts +172 -0
- package/src/modules/agent_orchestrator/lib/guardrails/groundingSets.ts +61 -0
- package/src/modules/agent_orchestrator/lib/guardrails/guardrailService.ts +293 -0
- package/src/modules/agent_orchestrator/lib/guardrails/promptInjection.ts +163 -0
- package/src/modules/agent_orchestrator/lib/guardrails/publicEndpointRateLimit.ts +74 -0
- package/src/modules/agent_orchestrator/lib/guardrails/syncGroundingSets.ts +68 -0
- package/src/modules/agent_orchestrator/lib/identity/agentAuthMdService.ts +247 -0
- package/src/modules/agent_orchestrator/lib/identity/agentDelegationGrantService.ts +85 -0
- package/src/modules/agent_orchestrator/lib/identity/agentNoBypassSubscriber.ts +98 -0
- package/src/modules/agent_orchestrator/lib/identity/agentPrincipalService.ts +230 -0
- package/src/modules/agent_orchestrator/lib/identity/agentTokenService.ts +281 -0
- package/src/modules/agent_orchestrator/lib/identity/agentWriteScope.ts +68 -0
- package/src/modules/agent_orchestrator/lib/metrics/metricRollupService.ts +168 -0
- package/src/modules/agent_orchestrator/lib/processes/executionSearch.ts +35 -0
- package/src/modules/agent_orchestrator/lib/processes/materializeAgentWorkflow.ts +320 -0
- package/src/modules/agent_orchestrator/lib/processes/processProjection.ts +401 -0
- package/src/modules/agent_orchestrator/lib/processes/subjectContext.ts +30 -0
- package/src/modules/agent_orchestrator/lib/processes/workflowGrant.ts +84 -0
- package/src/modules/agent_orchestrator/lib/queue.ts +56 -0
- package/src/modules/agent_orchestrator/lib/runtime/actionVocabulary.ts +127 -0
- package/src/modules/agent_orchestrator/lib/runtime/admission.ts +177 -0
- package/src/modules/agent_orchestrator/lib/runtime/agentRunSessionStore.ts +166 -0
- package/src/modules/agent_orchestrator/lib/runtime/agentRuntime.ts +108 -0
- package/src/modules/agent_orchestrator/lib/runtime/agentWorkspaceManager.ts +187 -0
- package/src/modules/agent_orchestrator/lib/runtime/artifactCollector.ts +188 -0
- package/src/modules/agent_orchestrator/lib/runtime/artifactFileStore.ts +189 -0
- package/src/modules/agent_orchestrator/lib/runtime/attachmentStager.ts +100 -0
- package/src/modules/agent_orchestrator/lib/runtime/errors.ts +63 -0
- package/src/modules/agent_orchestrator/lib/runtime/executeProposal.ts +78 -0
- package/src/modules/agent_orchestrator/lib/runtime/fileAgentSkills.ts +81 -0
- package/src/modules/agent_orchestrator/lib/runtime/fileInput.ts +44 -0
- package/src/modules/agent_orchestrator/lib/runtime/invokeAgentForWorkflow.ts +255 -0
- package/src/modules/agent_orchestrator/lib/runtime/modelPricing.ts +146 -0
- package/src/modules/agent_orchestrator/lib/runtime/nativeAgentRunner.ts +617 -0
- package/src/modules/agent_orchestrator/lib/runtime/nativeTraceCapture.ts +217 -0
- package/src/modules/agent_orchestrator/lib/runtime/openCodeAgentRunner.ts +889 -0
- package/src/modules/agent_orchestrator/lib/runtime/persistence.ts +314 -0
- package/src/modules/agent_orchestrator/lib/runtime/providerBudget.ts +230 -0
- package/src/modules/agent_orchestrator/lib/runtime/rerunContext.ts +26 -0
- package/src/modules/agent_orchestrator/lib/runtime/runContext.ts +47 -0
- package/src/modules/agent_orchestrator/lib/runtime/sandboxedScript.ts +106 -0
- package/src/modules/agent_orchestrator/lib/sdk/agentMarkdown.ts +157 -0
- package/src/modules/agent_orchestrator/lib/sdk/agentOutcomeContract.ts +58 -0
- package/src/modules/agent_orchestrator/lib/sdk/defineAgent.ts +525 -0
- package/src/modules/agent_orchestrator/lib/sdk/defineFileAgent.ts +765 -0
- package/src/modules/agent_orchestrator/lib/sdk/defineSkill.ts +80 -0
- package/src/modules/agent_orchestrator/lib/sdk/outcomeSchema.ts +190 -0
- package/src/modules/agent_orchestrator/lib/sdk/skillMarkdown.ts +139 -0
- package/src/modules/agent_orchestrator/lib/seeds.ts +335 -0
- package/src/modules/agent_orchestrator/lib/settings/agentSettings.ts +92 -0
- package/src/modules/agent_orchestrator/lib/systemHealth.ts +212 -0
- package/src/modules/agent_orchestrator/lib/tasks/eventTriggerMatch.ts +116 -0
- package/src/modules/agent_orchestrator/lib/tasks/milestones.ts +201 -0
- package/src/modules/agent_orchestrator/lib/tasks/outcome.ts +93 -0
- package/src/modules/agent_orchestrator/lib/tasks/outcomeLink.ts +91 -0
- package/src/modules/agent_orchestrator/lib/tasks/schedule.ts +106 -0
- package/src/modules/agent_orchestrator/lib/tasks/scheduleValidation.ts +34 -0
- package/src/modules/agent_orchestrator/lib/tasks/triggers.ts +47 -0
- package/src/modules/agent_orchestrator/lib/tokens/computeAgentTokenUsage.ts +111 -0
- package/src/modules/agent_orchestrator/lib/tokens/types.ts +77 -0
- package/src/modules/agent_orchestrator/lib/trace/artifactStore.ts +198 -0
- package/src/modules/agent_orchestrator/lib/trace/correctionService.ts +117 -0
- package/src/modules/agent_orchestrator/lib/trace/ingestAuth.ts +65 -0
- package/src/modules/agent_orchestrator/lib/trace/redactToolSummary.ts +76 -0
- package/src/modules/agent_orchestrator/lib/trace/spanTimeline.ts +181 -0
- package/src/modules/agent_orchestrator/lib/trace/traceIngestionService.ts +250 -0
- package/src/modules/agent_orchestrator/lib/webSearch/guardrails.ts +199 -0
- package/src/modules/agent_orchestrator/lib/webSearch/healthCache.ts +109 -0
- package/src/modules/agent_orchestrator/lib/webSearch/healthProbePlan.ts +58 -0
- package/src/modules/agent_orchestrator/lib/webSearch/policy.ts +283 -0
- package/src/modules/agent_orchestrator/lib/webSearch/registry.ts +177 -0
- package/src/modules/agent_orchestrator/lib/webSearch/secretStorage.ts +181 -0
- package/src/modules/agent_orchestrator/lib/webSearch/steps.ts +77 -0
- package/src/modules/agent_orchestrator/lib/webSearch/tools.ts +246 -0
- package/src/modules/agent_orchestrator/lib/workInbox/agentDispositionSource.ts +324 -0
- package/src/modules/agent_orchestrator/migrations/.snapshot-open-mercato.json +7083 -0
- package/src/modules/agent_orchestrator/migrations/Migration20260906141535_agent_orchestrator.ts +278 -0
- package/src/modules/agent_orchestrator/migrations/adopt-squash.mjs +232 -0
- package/src/modules/agent_orchestrator/notifications.ts +43 -0
- package/src/modules/agent_orchestrator/setup.ts +190 -0
- package/src/modules/agent_orchestrator/skills/deals.stage_playbook.md +37 -0
- package/src/modules/agent_orchestrator/subscribers/process-event-trigger.ts +198 -0
- package/src/modules/agent_orchestrator/subscribers/process-proposal-created.ts +28 -0
- package/src/modules/agent_orchestrator/subscribers/process-proposal-disposed.ts +20 -0
- package/src/modules/agent_orchestrator/subscribers/process-run-completed.ts +23 -0
- package/src/modules/agent_orchestrator/subscribers/process-run-ingested.ts +22 -0
- package/src/modules/agent_orchestrator/subscribers/process-workflow-cancelled.ts +22 -0
- package/src/modules/agent_orchestrator/subscribers/process-workflow-completed.ts +32 -0
- package/src/modules/agent_orchestrator/subscribers/process-workflow-failed.ts +23 -0
- package/src/modules/agent_orchestrator/subscribers/process-workflow-milestone.ts +47 -0
- package/src/modules/agent_orchestrator/subscribers/process-workflow-started.ts +34 -0
- package/src/modules/agent_orchestrator/subscribers/proposal-disposed-notification-clear.ts +50 -0
- package/src/modules/agent_orchestrator/subscribers/proposal-pending-notification.ts +84 -0
- package/src/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.client.tsx +68 -0
- package/src/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.ts +16 -0
- package/src/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.client.tsx +148 -0
- package/src/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.ts +24 -0
- package/src/modules/agent_orchestrator/widgets/injection/task-proposal-link/widget.ts +34 -0
- package/src/modules/agent_orchestrator/widgets/injection-table.ts +42 -0
- package/src/modules/agent_orchestrator/workers/eval-suite-runner.ts +85 -0
- package/src/modules/agent_orchestrator/workers/llm-judge.ts +39 -0
- package/src/modules/agent_orchestrator/workers/metric-rollup.ts +39 -0
- package/src/modules/agent_orchestrator/workers/process-execution-starter.ts +227 -0
- package/src/modules/record_locks/lib/conflictValues.ts +107 -0
- package/src/modules/record_locks/lib/crudMutationGuardService.ts +47 -3
- package/src/modules/record_locks/lib/recordLockService.ts +1 -51
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useSearchParams } from "next/navigation";
|
|
5
|
+
import { Play, Plug, RotateCw, Server, ShieldAlert, SquareCode } from "lucide-react";
|
|
6
|
+
import { Page, PageBody } from "@open-mercato/ui/backend/Page";
|
|
7
|
+
import { Button } from "@open-mercato/ui/primitives/button";
|
|
8
|
+
import { Textarea } from "@open-mercato/ui/primitives/textarea";
|
|
9
|
+
import { Spinner } from "@open-mercato/ui/primitives/spinner";
|
|
10
|
+
import { Alert } from "@open-mercato/ui/primitives/alert";
|
|
11
|
+
import { EmptyState } from "@open-mercato/ui/primitives/empty-state";
|
|
12
|
+
import { StatusBadge } from "@open-mercato/ui/primitives/status-badge";
|
|
13
|
+
import { SimpleTooltip } from "@open-mercato/ui/primitives/tooltip";
|
|
14
|
+
import {
|
|
15
|
+
Select,
|
|
16
|
+
SelectContent,
|
|
17
|
+
SelectItem,
|
|
18
|
+
SelectTrigger,
|
|
19
|
+
SelectValue
|
|
20
|
+
} from "@open-mercato/ui/primitives/select";
|
|
21
|
+
import { JsonDisplay } from "@open-mercato/ui/backend/JsonDisplay";
|
|
22
|
+
import { SectionHeader, CollapsibleSection } from "@open-mercato/ui/backend/SectionHeader";
|
|
23
|
+
import { apiCall } from "@open-mercato/ui/backend/utils/apiCall";
|
|
24
|
+
import { useT } from "@open-mercato/shared/lib/i18n/context";
|
|
25
|
+
import { useBackendChrome } from "@open-mercato/ui/backend/BackendChromeProvider";
|
|
26
|
+
import { hasFeature } from "@open-mercato/shared/security/features";
|
|
27
|
+
import { ProposeOnlyNotice } from "../../components/ProposeOnlyNotice.js";
|
|
28
|
+
import { AUTOMATION_AUTHOR_FEATURE, AUTOMATION_EDITOR_HREF } from "../../lib/automationLinks.js";
|
|
29
|
+
import { ProposalCard } from "../../components/ProposalCard.js";
|
|
30
|
+
import { WebSearchActivity } from "../../components/WebSearchActivity.js";
|
|
31
|
+
import { mapAdHocProposal, mapAgent } from "../../components/types.js";
|
|
32
|
+
import { toolPanelStateFromResponse } from "../../components/playgroundToolCalls.js";
|
|
33
|
+
import { runErrorStateFromBody } from "../../components/playgroundRunError.js";
|
|
34
|
+
import { Chip, TYPE_ICON, RUNTIME_ICON, resolveAgentIcon } from "../../components/agentChips.js";
|
|
35
|
+
import { PlaygroundEvalPanel } from "./PlaygroundEvalPanel.js";
|
|
36
|
+
const CONN_VARIANT = {
|
|
37
|
+
ok: "success",
|
|
38
|
+
warn: "warning",
|
|
39
|
+
down: "error",
|
|
40
|
+
unknown: "neutral"
|
|
41
|
+
};
|
|
42
|
+
function connectionsFromHealth(result) {
|
|
43
|
+
const opencodeHealthy = result?.opencode?.healthy === true;
|
|
44
|
+
const mcpEntries = Object.entries(result?.mcp ?? {}).map(([name, value]) => ({
|
|
45
|
+
name,
|
|
46
|
+
status: typeof value?.status === "string" ? value.status : "unknown"
|
|
47
|
+
}));
|
|
48
|
+
const mcpBridge = mcpEntries.some((entry) => entry.status === "connected") ? "ok" : mcpEntries.some((entry) => entry.status === "connecting") ? "warn" : mcpEntries.length > 0 ? "down" : "unknown";
|
|
49
|
+
const mcpServer = result?.mcpHealth ? result.mcpHealth.healthy === true ? "ok" : "down" : "unknown";
|
|
50
|
+
return {
|
|
51
|
+
opencode: opencodeHealthy ? "ok" : "down",
|
|
52
|
+
opencodeVersion: typeof result?.opencode?.version === "string" ? result.opencode.version : null,
|
|
53
|
+
mcpBridge,
|
|
54
|
+
mcpBridgeServers: mcpEntries,
|
|
55
|
+
mcpServer,
|
|
56
|
+
mcpServerTools: typeof result?.mcpHealth?.tools === "number" ? result.mcpHealth.tools : null
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ConnectionBadges() {
|
|
60
|
+
const t = useT();
|
|
61
|
+
const [state, setState] = React.useState({ mode: "loading" });
|
|
62
|
+
const load = React.useCallback(async () => {
|
|
63
|
+
const call = await apiCall("/api/ai_assistant/health", void 0, { fallback: null });
|
|
64
|
+
if (!call.ok) {
|
|
65
|
+
if (call.status === 401 || call.status === 403) {
|
|
66
|
+
setState({ mode: "hidden" });
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
setState({
|
|
70
|
+
mode: "ready",
|
|
71
|
+
opencode: "down",
|
|
72
|
+
opencodeVersion: null,
|
|
73
|
+
mcpBridge: "unknown",
|
|
74
|
+
mcpBridgeServers: [],
|
|
75
|
+
mcpServer: "unknown",
|
|
76
|
+
mcpServerTools: null
|
|
77
|
+
});
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
setState({ mode: "ready", ...connectionsFromHealth(call.result) });
|
|
81
|
+
}, []);
|
|
82
|
+
React.useEffect(() => {
|
|
83
|
+
void load();
|
|
84
|
+
}, [load]);
|
|
85
|
+
if (state.mode === "hidden") return null;
|
|
86
|
+
if (state.mode === "loading") {
|
|
87
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5", children: /* @__PURE__ */ jsx(StatusBadge, { variant: "neutral", dot: true, children: t("agent_orchestrator.playground.connections.checking", "Checking\u2026") }) });
|
|
88
|
+
}
|
|
89
|
+
const stateLabel = (value) => value === "ok" ? t("agent_orchestrator.playground.connections.connected", "Connected") : value === "warn" ? t("agent_orchestrator.playground.connections.connecting", "Connecting\u2026") : value === "down" ? t("agent_orchestrator.playground.connections.disconnected", "Not connected") : t("agent_orchestrator.playground.connections.unknown", "Status unknown");
|
|
90
|
+
const opencodeTooltip = state.opencode === "ok" && state.opencodeVersion ? `${stateLabel(state.opencode)} \xB7 ${t("agent_orchestrator.playground.connections.version", "Version {version}", { version: state.opencodeVersion })}` : stateLabel(state.opencode);
|
|
91
|
+
const mcpBridgeTooltip = state.mcpBridgeServers.length > 0 ? state.mcpBridgeServers.map((server) => `${server.name}: ${server.status}`).join(" \xB7 ") : stateLabel(state.mcpBridge);
|
|
92
|
+
const mcpServerTooltip = state.mcpServer === "ok" && state.mcpServerTools !== null ? `${stateLabel(state.mcpServer)} \xB7 ${t("agent_orchestrator.playground.connections.tools", "{count} tools", { count: state.mcpServerTools })}` : stateLabel(state.mcpServer);
|
|
93
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
94
|
+
/* @__PURE__ */ jsx(SimpleTooltip, { content: opencodeTooltip, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(StatusBadge, { variant: CONN_VARIANT[state.opencode], dot: true, className: "gap-1.5", children: [
|
|
95
|
+
/* @__PURE__ */ jsx(SquareCode, { className: "size-3.5 shrink-0", "aria-hidden": true }),
|
|
96
|
+
t("agent_orchestrator.playground.connections.opencode", "OpenCode")
|
|
97
|
+
] }) }) }),
|
|
98
|
+
/* @__PURE__ */ jsx(SimpleTooltip, { content: mcpBridgeTooltip, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(StatusBadge, { variant: CONN_VARIANT[state.mcpBridge], dot: true, className: "gap-1.5", children: [
|
|
99
|
+
/* @__PURE__ */ jsx(Plug, { className: "size-3.5 shrink-0", "aria-hidden": true }),
|
|
100
|
+
t("agent_orchestrator.playground.connections.mcpBridge", "MCP \u2194 OpenCode")
|
|
101
|
+
] }) }) }),
|
|
102
|
+
/* @__PURE__ */ jsx(SimpleTooltip, { content: mcpServerTooltip, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(StatusBadge, { variant: CONN_VARIANT[state.mcpServer], dot: true, className: "gap-1.5", children: [
|
|
103
|
+
/* @__PURE__ */ jsx(Server, { className: "size-3.5 shrink-0", "aria-hidden": true }),
|
|
104
|
+
t("agent_orchestrator.playground.connections.mcp", "MCP")
|
|
105
|
+
] }) }) }),
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
Button,
|
|
108
|
+
{
|
|
109
|
+
type: "button",
|
|
110
|
+
variant: "ghost",
|
|
111
|
+
size: "sm",
|
|
112
|
+
className: "size-7 p-0",
|
|
113
|
+
"aria-label": t("agent_orchestrator.playground.connections.refresh", "Re-check connections"),
|
|
114
|
+
onClick: () => {
|
|
115
|
+
setState({ mode: "loading" });
|
|
116
|
+
void load();
|
|
117
|
+
},
|
|
118
|
+
children: /* @__PURE__ */ jsx(RotateCw, { className: "size-3.5" })
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] });
|
|
122
|
+
}
|
|
123
|
+
function AgentPlaygroundPage() {
|
|
124
|
+
const t = useT();
|
|
125
|
+
const searchParams = useSearchParams();
|
|
126
|
+
const { payload: chromePayload } = useBackendChrome();
|
|
127
|
+
const canAuthorAutomations = hasFeature(chromePayload?.grantedFeatures, AUTOMATION_AUTHOR_FEATURE);
|
|
128
|
+
const [agents, setAgents] = React.useState([]);
|
|
129
|
+
const [agentId, setAgentId] = React.useState("");
|
|
130
|
+
const [input, setInput] = React.useState("{\n \n}");
|
|
131
|
+
const [running, setRunning] = React.useState(false);
|
|
132
|
+
const [result, setResult] = React.useState(null);
|
|
133
|
+
const [runId, setRunId] = React.useState(null);
|
|
134
|
+
const [proposalId, setProposalId] = React.useState(null);
|
|
135
|
+
const [toolPanel, setToolPanel] = React.useState({ mode: "idle" });
|
|
136
|
+
const [error, setError] = React.useState(null);
|
|
137
|
+
const [guardrailBlock, setGuardrailBlock] = React.useState(null);
|
|
138
|
+
React.useEffect(() => {
|
|
139
|
+
let cancelled = false;
|
|
140
|
+
async function load() {
|
|
141
|
+
const call = await apiCall("/api/agent_orchestrator/agents", void 0, {
|
|
142
|
+
fallback: { items: [] }
|
|
143
|
+
});
|
|
144
|
+
if (cancelled || !call.ok) return;
|
|
145
|
+
const items = Array.isArray(call.result?.items) ? call.result.items : [];
|
|
146
|
+
const mapped = items.map((item) => mapAgent(item)).filter((agent) => !!agent);
|
|
147
|
+
setAgents(mapped);
|
|
148
|
+
const requested = searchParams?.get("agent");
|
|
149
|
+
if (requested && mapped.some((agent) => agent.id === requested)) {
|
|
150
|
+
setAgentId(requested);
|
|
151
|
+
} else if (mapped[0]) {
|
|
152
|
+
setAgentId(mapped[0].id);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
load();
|
|
156
|
+
return () => {
|
|
157
|
+
cancelled = true;
|
|
158
|
+
};
|
|
159
|
+
}, [searchParams]);
|
|
160
|
+
const selectedAgent = React.useMemo(
|
|
161
|
+
() => agents.find((agent) => agent.id === agentId) ?? null,
|
|
162
|
+
[agents, agentId]
|
|
163
|
+
);
|
|
164
|
+
const sampleInput = selectedAgent?.sampleInput;
|
|
165
|
+
const run = React.useCallback(async () => {
|
|
166
|
+
if (!agentId) {
|
|
167
|
+
setError(t("agent_orchestrator.playground.selectAgentFirst"));
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
let parsed;
|
|
171
|
+
try {
|
|
172
|
+
parsed = JSON.parse(input);
|
|
173
|
+
} catch {
|
|
174
|
+
setError(t("agent_orchestrator.playground.invalidJson"));
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
setError(null);
|
|
178
|
+
setGuardrailBlock(null);
|
|
179
|
+
setRunning(true);
|
|
180
|
+
setResult(null);
|
|
181
|
+
setRunId(null);
|
|
182
|
+
setProposalId(null);
|
|
183
|
+
setToolPanel({ mode: "idle" });
|
|
184
|
+
try {
|
|
185
|
+
const call = await apiCall(
|
|
186
|
+
`/api/agent_orchestrator/agents/${encodeURIComponent(agentId)}/run`,
|
|
187
|
+
{
|
|
188
|
+
method: "POST",
|
|
189
|
+
headers: { "content-type": "application/json" },
|
|
190
|
+
body: JSON.stringify({ input: parsed })
|
|
191
|
+
},
|
|
192
|
+
{ fallback: null }
|
|
193
|
+
);
|
|
194
|
+
if (!call.ok || !call.result) {
|
|
195
|
+
const errorState = runErrorStateFromBody(call.result);
|
|
196
|
+
if (errorState.kind === "guardrail") {
|
|
197
|
+
setGuardrailBlock({ guardrailKind: errorState.guardrailKind, phase: errorState.phase });
|
|
198
|
+
} else {
|
|
199
|
+
setError(
|
|
200
|
+
errorState.messageKey ? t(errorState.messageKey) : errorState.message ?? t("agent_orchestrator.playground.error")
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const data = call.result;
|
|
206
|
+
setResult(data);
|
|
207
|
+
setRunId(typeof data.runId === "string" ? data.runId : null);
|
|
208
|
+
setProposalId(typeof data.proposalId === "string" ? data.proposalId : null);
|
|
209
|
+
} catch (err) {
|
|
210
|
+
setError(err instanceof Error ? err.message : t("agent_orchestrator.playground.error"));
|
|
211
|
+
} finally {
|
|
212
|
+
setRunning(false);
|
|
213
|
+
}
|
|
214
|
+
}, [agentId, input, t]);
|
|
215
|
+
React.useEffect(() => {
|
|
216
|
+
if (!runId) return;
|
|
217
|
+
let cancelled = false;
|
|
218
|
+
async function loadToolCalls(id) {
|
|
219
|
+
setToolPanel({ mode: "loading" });
|
|
220
|
+
const call = await apiCall(
|
|
221
|
+
`/api/agent_orchestrator/runs/${encodeURIComponent(id)}`,
|
|
222
|
+
void 0,
|
|
223
|
+
{ fallback: {} }
|
|
224
|
+
);
|
|
225
|
+
if (cancelled) return;
|
|
226
|
+
setToolPanel(toolPanelStateFromResponse(call));
|
|
227
|
+
}
|
|
228
|
+
void loadToolCalls(runId);
|
|
229
|
+
return () => {
|
|
230
|
+
cancelled = true;
|
|
231
|
+
};
|
|
232
|
+
}, [runId]);
|
|
233
|
+
const handleKeyDown = React.useCallback(
|
|
234
|
+
(event) => {
|
|
235
|
+
if ((event.metaKey || event.ctrlKey) && event.key === "Enter") {
|
|
236
|
+
event.preventDefault();
|
|
237
|
+
void run();
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
[run]
|
|
241
|
+
);
|
|
242
|
+
const hasOutcome = Boolean(result || running || error || guardrailBlock);
|
|
243
|
+
return /* @__PURE__ */ jsx(Page, { children: /* @__PURE__ */ jsxs(PageBody, { className: "space-y-5", onKeyDown: handleKeyDown, children: [
|
|
244
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
|
|
245
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
246
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold tracking-tight text-foreground", children: t("agent_orchestrator.playground.title") }),
|
|
247
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: t("agent_orchestrator.playground.subtitle") })
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ jsx(ConnectionBadges, {})
|
|
250
|
+
] }),
|
|
251
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-start gap-4", children: [
|
|
252
|
+
/* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-xl border border-border bg-card", children: [
|
|
253
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3", children: [
|
|
254
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: t("agent_orchestrator.playground.composeTitle", "Run an agent") }),
|
|
255
|
+
selectedAgent ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
256
|
+
/* @__PURE__ */ jsx(Chip, { icon: RUNTIME_ICON[selectedAgent.runtime], children: t(`agent_orchestrator.agents.list.runtime.${selectedAgent.runtime}`) }),
|
|
257
|
+
/* @__PURE__ */ jsx(Chip, { icon: TYPE_ICON[selectedAgent.resultKind], children: t(`agent_orchestrator.agents.list.resultKind.${selectedAgent.resultKind}`) })
|
|
258
|
+
] }) : null
|
|
259
|
+
] }),
|
|
260
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-4 p-4", children: [
|
|
261
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
262
|
+
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", htmlFor: "ao-pg-agent", children: t("agent_orchestrator.playground.agentLabel") }),
|
|
263
|
+
/* @__PURE__ */ jsxs(
|
|
264
|
+
Select,
|
|
265
|
+
{
|
|
266
|
+
value: agentId,
|
|
267
|
+
onValueChange: (value) => {
|
|
268
|
+
const nextId = value ?? "";
|
|
269
|
+
setAgentId(nextId);
|
|
270
|
+
const nextSample = agents.find((agent) => agent.id === nextId)?.sampleInput;
|
|
271
|
+
setInput(nextSample !== void 0 ? JSON.stringify(nextSample, null, 2) : "{\n \n}");
|
|
272
|
+
},
|
|
273
|
+
children: [
|
|
274
|
+
/* @__PURE__ */ jsx(SelectTrigger, { id: "ao-pg-agent", className: "focus-visible:ring-brand-violet", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: t("agent_orchestrator.playground.agentPlaceholder") }) }),
|
|
275
|
+
/* @__PURE__ */ jsx(SelectContent, { children: agents.map((agent) => {
|
|
276
|
+
const Glyph = resolveAgentIcon(agent.icon, agent.resultKind);
|
|
277
|
+
return /* @__PURE__ */ jsxs(SelectItem, { value: agent.id, children: [
|
|
278
|
+
Glyph ? /* @__PURE__ */ jsx(Glyph, { className: "size-4 text-muted-foreground" }) : null,
|
|
279
|
+
agent.label
|
|
280
|
+
] }, agent.id);
|
|
281
|
+
}) })
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
selectedAgent?.description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: selectedAgent.description }) : null
|
|
286
|
+
] }),
|
|
287
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
288
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
289
|
+
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium", htmlFor: "ao-pg-input", children: t("agent_orchestrator.playground.inputLabel") }),
|
|
290
|
+
sampleInput !== void 0 ? /* @__PURE__ */ jsx(
|
|
291
|
+
Button,
|
|
292
|
+
{
|
|
293
|
+
type: "button",
|
|
294
|
+
variant: "outline",
|
|
295
|
+
size: "sm",
|
|
296
|
+
onClick: () => setInput(JSON.stringify(sampleInput, null, 2)),
|
|
297
|
+
children: t("agent_orchestrator.playground.insertSample")
|
|
298
|
+
}
|
|
299
|
+
) : null
|
|
300
|
+
] }),
|
|
301
|
+
/* @__PURE__ */ jsx(
|
|
302
|
+
Textarea,
|
|
303
|
+
{
|
|
304
|
+
id: "ao-pg-input",
|
|
305
|
+
value: input,
|
|
306
|
+
onChange: (event) => setInput(event.target.value),
|
|
307
|
+
placeholder: t("agent_orchestrator.playground.inputPlaceholder"),
|
|
308
|
+
rows: 12,
|
|
309
|
+
className: "font-mono"
|
|
310
|
+
}
|
|
311
|
+
)
|
|
312
|
+
] })
|
|
313
|
+
] }),
|
|
314
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 border-t border-border px-4 py-3", children: [
|
|
315
|
+
/* @__PURE__ */ jsx(ProposeOnlyNotice, {}),
|
|
316
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t(
|
|
317
|
+
"agent_orchestrator.playground.rehearsalNote",
|
|
318
|
+
"This is a rehearsal \u2014 to have the agent act on real events, add an \u201Cinvoke agent\u201D step to an automation."
|
|
319
|
+
) }),
|
|
320
|
+
canAuthorAutomations ? /* @__PURE__ */ jsx("a", { href: AUTOMATION_EDITOR_HREF, className: "inline-flex text-sm font-medium text-brand-violet hover:underline", children: t("agent_orchestrator.playground.useInAutomation", "Use this agent in an automation") }) : null
|
|
321
|
+
] }),
|
|
322
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-border px-4 py-3", children: [
|
|
323
|
+
/* @__PURE__ */ jsx("span", { className: "hidden text-xs text-muted-foreground sm:inline", children: t("agent_orchestrator.playground.runHint", "Cmd/Ctrl + Enter runs the agent") }),
|
|
324
|
+
/* @__PURE__ */ jsxs(
|
|
325
|
+
Button,
|
|
326
|
+
{
|
|
327
|
+
type: "button",
|
|
328
|
+
onClick: () => void run(),
|
|
329
|
+
disabled: running || !agentId,
|
|
330
|
+
className: "bg-brand-violet text-brand-violet-foreground hover:bg-brand-violet/90",
|
|
331
|
+
children: [
|
|
332
|
+
running ? /* @__PURE__ */ jsx(Spinner, { className: "size-4" }) : /* @__PURE__ */ jsx(Play, { className: "size-4" }),
|
|
333
|
+
running ? t("agent_orchestrator.playground.running") : t("agent_orchestrator.playground.run")
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
)
|
|
337
|
+
] })
|
|
338
|
+
] }),
|
|
339
|
+
/* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-xl border border-border bg-card", children: [
|
|
340
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3", children: [
|
|
341
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: t("agent_orchestrator.playground.resultTitle", "Result") }),
|
|
342
|
+
result && runId ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-3", children: [
|
|
343
|
+
/* @__PURE__ */ jsx(
|
|
344
|
+
"a",
|
|
345
|
+
{
|
|
346
|
+
href: `/backend/traces/${encodeURIComponent(runId)}`,
|
|
347
|
+
className: "text-xs font-medium text-brand-violet hover:underline",
|
|
348
|
+
children: t("agent_orchestrator.playground.result.viewTrace")
|
|
349
|
+
}
|
|
350
|
+
),
|
|
351
|
+
proposalId ? /* @__PURE__ */ jsx(
|
|
352
|
+
"a",
|
|
353
|
+
{
|
|
354
|
+
href: `/backend/caseload/${encodeURIComponent(proposalId)}`,
|
|
355
|
+
className: "text-xs font-medium text-brand-violet hover:underline",
|
|
356
|
+
children: t("agent_orchestrator.playground.result.openProposal")
|
|
357
|
+
}
|
|
358
|
+
) : null,
|
|
359
|
+
canAuthorAutomations ? /* @__PURE__ */ jsx(
|
|
360
|
+
"a",
|
|
361
|
+
{
|
|
362
|
+
href: AUTOMATION_EDITOR_HREF,
|
|
363
|
+
className: "text-xs font-medium text-brand-violet hover:underline",
|
|
364
|
+
children: t("agent_orchestrator.playground.useInAutomation", "Use this agent in an automation")
|
|
365
|
+
}
|
|
366
|
+
) : null
|
|
367
|
+
] }) : null
|
|
368
|
+
] }),
|
|
369
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-4 p-4", children: [
|
|
370
|
+
error ? /* @__PURE__ */ jsx(Alert, { status: "error", style: "light", children: error }) : null,
|
|
371
|
+
guardrailBlock ? /* @__PURE__ */ jsx(Alert, { status: "error", style: "light", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
|
|
372
|
+
/* @__PURE__ */ jsx(ShieldAlert, { className: "mt-0.5 size-4 shrink-0", "aria-hidden": true }),
|
|
373
|
+
/* @__PURE__ */ jsx("span", { children: t("agent_orchestrator.playground.guardrailBlocked", void 0, {
|
|
374
|
+
kind: guardrailBlock.guardrailKind,
|
|
375
|
+
phase: guardrailBlock.phase
|
|
376
|
+
}) })
|
|
377
|
+
] }) }) : null,
|
|
378
|
+
running ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 py-12 text-center", children: [
|
|
379
|
+
/* @__PURE__ */ jsx(Spinner, { className: "size-5" }),
|
|
380
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.playground.running") })
|
|
381
|
+
] }) : null,
|
|
382
|
+
!hasOutcome ? /* @__PURE__ */ jsx(
|
|
383
|
+
EmptyState,
|
|
384
|
+
{
|
|
385
|
+
title: t("agent_orchestrator.playground.noRun"),
|
|
386
|
+
description: t("agent_orchestrator.playground.noRunDescription")
|
|
387
|
+
}
|
|
388
|
+
) : null,
|
|
389
|
+
result?.kind === "proposal" ? /* @__PURE__ */ jsx(ProposalCard, { adHoc: mapAdHocProposal(agentId, result.proposal) }) : null,
|
|
390
|
+
result?.kind === "research" ? /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
|
|
391
|
+
/* @__PURE__ */ jsx(SectionHeader, { title: t("agent_orchestrator.playground.result.research") }),
|
|
392
|
+
/* @__PURE__ */ jsx(JsonDisplay, { data: result.data })
|
|
393
|
+
] }) : null,
|
|
394
|
+
result ? /* @__PURE__ */ jsx(CollapsibleSection, { title: t("agent_orchestrator.playground.result.trace"), defaultCollapsed: true, children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
395
|
+
toolPanel.mode === "real" ? /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
|
|
396
|
+
/* @__PURE__ */ jsx(
|
|
397
|
+
SectionHeader,
|
|
398
|
+
{
|
|
399
|
+
title: t("agent_orchestrator.playground.result.toolsHeading"),
|
|
400
|
+
count: toolPanel.calls.length
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
toolPanel.calls.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: toolPanel.calls.map((toolCall) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 text-sm", children: [
|
|
404
|
+
/* @__PURE__ */ jsx("span", { className: "inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet" }),
|
|
405
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate font-mono text-xs", children: toolCall.toolName }),
|
|
406
|
+
toolCall.latencyMs != null ? /* @__PURE__ */ jsxs("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: [
|
|
407
|
+
toolCall.latencyMs,
|
|
408
|
+
"ms"
|
|
409
|
+
] }) : null,
|
|
410
|
+
/* @__PURE__ */ jsx(StatusBadge, { variant: toolCall.status === "error" ? "error" : "success", children: toolCall.status ?? "ok" })
|
|
411
|
+
] }, toolCall.id)) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.playground.result.noToolCalls") })
|
|
412
|
+
] }) : toolPanel.mode === "loading" ? /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
|
|
413
|
+
/* @__PURE__ */ jsx(SectionHeader, { title: t("agent_orchestrator.playground.result.toolsHeading") }),
|
|
414
|
+
/* @__PURE__ */ jsx(Spinner, { className: "size-4" })
|
|
415
|
+
] }) : /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
|
|
416
|
+
/* @__PURE__ */ jsx(
|
|
417
|
+
SectionHeader,
|
|
418
|
+
{
|
|
419
|
+
title: t("agent_orchestrator.playground.result.declaredTools"),
|
|
420
|
+
count: selectedAgent?.tools.length ?? 0
|
|
421
|
+
}
|
|
422
|
+
),
|
|
423
|
+
selectedAgent && selectedAgent.tools.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: selectedAgent.tools.map((tool) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 text-sm", children: [
|
|
424
|
+
/* @__PURE__ */ jsx("span", { className: "inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet" }),
|
|
425
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-xs", children: tool })
|
|
426
|
+
] }, tool)) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.playground.result.noDeclaredTools") })
|
|
427
|
+
] }),
|
|
428
|
+
/* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
|
|
429
|
+
/* @__PURE__ */ jsx(SectionHeader, { title: t("agent_orchestrator.playground.result.rawOutput") }),
|
|
430
|
+
/* @__PURE__ */ jsx(JsonDisplay, { data: result })
|
|
431
|
+
] })
|
|
432
|
+
] }) }) : null
|
|
433
|
+
] })
|
|
434
|
+
] })
|
|
435
|
+
] }),
|
|
436
|
+
/* @__PURE__ */ jsx(WebSearchActivity, { className: "mt-4" }),
|
|
437
|
+
result && runId ? /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(PlaygroundEvalPanel, { runId, agentId }) }) : null
|
|
438
|
+
] }) });
|
|
439
|
+
}
|
|
440
|
+
export {
|
|
441
|
+
AgentPlaygroundPage as default
|
|
442
|
+
};
|
|
443
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/modules/agent_orchestrator/backend/playground/page.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\"\n\nimport * as React from 'react'\nimport { useSearchParams } from 'next/navigation'\nimport { Play, Plug, RotateCw, Server, ShieldAlert, SquareCode } from 'lucide-react'\nimport { Page, PageBody } from '@open-mercato/ui/backend/Page'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { Textarea } from '@open-mercato/ui/primitives/textarea'\nimport { Spinner } from '@open-mercato/ui/primitives/spinner'\nimport { Alert } from '@open-mercato/ui/primitives/alert'\nimport { EmptyState } from '@open-mercato/ui/primitives/empty-state'\nimport { StatusBadge, type StatusBadgeVariant } from '@open-mercato/ui/primitives/status-badge'\nimport { SimpleTooltip } from '@open-mercato/ui/primitives/tooltip'\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@open-mercato/ui/primitives/select'\nimport { JsonDisplay } from '@open-mercato/ui/backend/JsonDisplay'\nimport { SectionHeader, CollapsibleSection } from '@open-mercato/ui/backend/SectionHeader'\nimport { apiCall } from '@open-mercato/ui/backend/utils/apiCall'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\nimport { useBackendChrome } from '@open-mercato/ui/backend/BackendChromeProvider'\nimport { hasFeature } from '@open-mercato/shared/security/features'\nimport { ProposeOnlyNotice } from '../../components/ProposeOnlyNotice'\nimport { AUTOMATION_AUTHOR_FEATURE, AUTOMATION_EDITOR_HREF } from '../../lib/automationLinks'\nimport { ProposalCard } from '../../components/ProposalCard'\nimport { WebSearchActivity } from '../../components/WebSearchActivity'\nimport { mapAdHocProposal, mapAgent, type AgentView } from '../../components/types'\nimport { toolPanelStateFromResponse, type ToolPanelState } from '../../components/playgroundToolCalls'\nimport { runErrorStateFromBody } from '../../components/playgroundRunError'\nimport { Chip, TYPE_ICON, RUNTIME_ICON, resolveAgentIcon } from '../../components/agentChips'\nimport { PlaygroundEvalPanel } from './PlaygroundEvalPanel'\n\ntype AgentsResponse = { items?: Array<Record<string, unknown>> }\n\ntype AgentResult =\n | { kind: 'research'; data: unknown }\n | { kind: 'proposal'; proposal: unknown }\n\ntype AgentRunResponse = AgentResult & { runId?: string | null; proposalId?: string | null }\n\n// Connectivity states derived from the ai_assistant health endpoint \u2014 the same\n// source the AI assistant settings page reads. Three independent signals:\n// \u2022 opencode \u2014 the OpenCode container is up (GET /global/health)\n// \u2022 mcpBridge \u2014 OpenCode has bound to the MCP server (GET /mcp)\n// \u2022 mcpServer \u2014 the MCP HTTP server itself is healthy (GET {mcpUrl}/health)\n// `hidden` covers callers without `ai_assistant.view`.\ntype ConnState = 'ok' | 'warn' | 'down' | 'unknown'\n\ntype ConnectionsState =\n | { mode: 'loading' }\n | { mode: 'hidden' }\n | {\n mode: 'ready'\n opencode: ConnState\n opencodeVersion: string | null\n mcpBridge: ConnState\n mcpBridgeServers: Array<{ name: string; status: string }>\n mcpServer: ConnState\n mcpServerTools: number | null\n }\n\ntype HealthResponse = {\n status?: 'ok' | 'error'\n opencode?: { healthy?: boolean; version?: string }\n mcp?: Record<string, { status?: string; error?: string }>\n mcpHealth?: { healthy?: boolean; status?: string; tools?: number }\n}\n\nconst CONN_VARIANT: Record<ConnState, StatusBadgeVariant> = {\n ok: 'success',\n warn: 'warning',\n down: 'error',\n unknown: 'neutral',\n}\n\nfunction connectionsFromHealth(result: HealthResponse | null): Omit<Extract<ConnectionsState, { mode: 'ready' }>, 'mode'> {\n const opencodeHealthy = result?.opencode?.healthy === true\n const mcpEntries = Object.entries(result?.mcp ?? {}).map(([name, value]) => ({\n name,\n status: typeof value?.status === 'string' ? value.status : 'unknown',\n }))\n const mcpBridge: ConnState = mcpEntries.some((entry) => entry.status === 'connected')\n ? 'ok'\n : mcpEntries.some((entry) => entry.status === 'connecting')\n ? 'warn'\n : mcpEntries.length > 0\n ? 'down'\n : 'unknown'\n const mcpServer: ConnState = result?.mcpHealth\n ? result.mcpHealth.healthy === true\n ? 'ok'\n : 'down'\n : 'unknown'\n return {\n opencode: opencodeHealthy ? 'ok' : 'down',\n opencodeVersion: typeof result?.opencode?.version === 'string' ? result.opencode.version : null,\n mcpBridge,\n mcpBridgeServers: mcpEntries,\n mcpServer,\n mcpServerTools: typeof result?.mcpHealth?.tools === 'number' ? result.mcpHealth.tools : null,\n }\n}\n\nfunction ConnectionBadges() {\n const t = useT()\n const [state, setState] = React.useState<ConnectionsState>({ mode: 'loading' })\n\n const load = React.useCallback(async () => {\n const call = await apiCall<HealthResponse>('/api/ai_assistant/health', undefined, { fallback: null })\n if (!call.ok) {\n // 401/403 \u2192 the caller cannot read health at all; hide instead of guessing.\n if (call.status === 401 || call.status === 403) {\n setState({ mode: 'hidden' })\n return\n }\n setState({\n mode: 'ready',\n opencode: 'down',\n opencodeVersion: null,\n mcpBridge: 'unknown',\n mcpBridgeServers: [],\n mcpServer: 'unknown',\n mcpServerTools: null,\n })\n return\n }\n setState({ mode: 'ready', ...connectionsFromHealth(call.result) })\n }, [])\n\n React.useEffect(() => {\n void load()\n }, [load])\n\n if (state.mode === 'hidden') return null\n if (state.mode === 'loading') {\n return (\n <div className=\"flex items-center gap-1.5\">\n <StatusBadge variant=\"neutral\" dot>\n {t('agent_orchestrator.playground.connections.checking', 'Checking\u2026')}\n </StatusBadge>\n </div>\n )\n }\n\n const stateLabel = (value: ConnState) =>\n value === 'ok'\n ? t('agent_orchestrator.playground.connections.connected', 'Connected')\n : value === 'warn'\n ? t('agent_orchestrator.playground.connections.connecting', 'Connecting\u2026')\n : value === 'down'\n ? t('agent_orchestrator.playground.connections.disconnected', 'Not connected')\n : t('agent_orchestrator.playground.connections.unknown', 'Status unknown')\n\n const opencodeTooltip =\n state.opencode === 'ok' && state.opencodeVersion\n ? `${stateLabel(state.opencode)} \u00B7 ${t('agent_orchestrator.playground.connections.version', 'Version {version}', { version: state.opencodeVersion })}`\n : stateLabel(state.opencode)\n const mcpBridgeTooltip =\n state.mcpBridgeServers.length > 0\n ? state.mcpBridgeServers.map((server) => `${server.name}: ${server.status}`).join(' \u00B7 ')\n : stateLabel(state.mcpBridge)\n const mcpServerTooltip =\n state.mcpServer === 'ok' && state.mcpServerTools !== null\n ? `${stateLabel(state.mcpServer)} \u00B7 ${t('agent_orchestrator.playground.connections.tools', '{count} tools', { count: state.mcpServerTools })}`\n : stateLabel(state.mcpServer)\n\n return (\n <div className=\"flex items-center gap-1.5\">\n <SimpleTooltip content={opencodeTooltip}>\n <span>\n <StatusBadge variant={CONN_VARIANT[state.opencode]} dot className=\"gap-1.5\">\n <SquareCode className=\"size-3.5 shrink-0\" aria-hidden />\n {t('agent_orchestrator.playground.connections.opencode', 'OpenCode')}\n </StatusBadge>\n </span>\n </SimpleTooltip>\n <SimpleTooltip content={mcpBridgeTooltip}>\n <span>\n <StatusBadge variant={CONN_VARIANT[state.mcpBridge]} dot className=\"gap-1.5\">\n <Plug className=\"size-3.5 shrink-0\" aria-hidden />\n {t('agent_orchestrator.playground.connections.mcpBridge', 'MCP \u2194 OpenCode')}\n </StatusBadge>\n </span>\n </SimpleTooltip>\n <SimpleTooltip content={mcpServerTooltip}>\n <span>\n <StatusBadge variant={CONN_VARIANT[state.mcpServer]} dot className=\"gap-1.5\">\n <Server className=\"size-3.5 shrink-0\" aria-hidden />\n {t('agent_orchestrator.playground.connections.mcp', 'MCP')}\n </StatusBadge>\n </span>\n </SimpleTooltip>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"size-7 p-0\"\n aria-label={t('agent_orchestrator.playground.connections.refresh', 'Re-check connections')}\n onClick={() => {\n setState({ mode: 'loading' })\n void load()\n }}\n >\n <RotateCw className=\"size-3.5\" />\n </Button>\n </div>\n )\n}\n\nexport default function AgentPlaygroundPage() {\n const t = useT()\n const searchParams = useSearchParams()\n const { payload: chromePayload } = useBackendChrome()\n // The automation CTAs are hidden, not disabled, for a runner who cannot author\n // one \u2014 a dead button teaches nothing.\n const canAuthorAutomations = hasFeature(chromePayload?.grantedFeatures, AUTOMATION_AUTHOR_FEATURE)\n const [agents, setAgents] = React.useState<AgentView[]>([])\n const [agentId, setAgentId] = React.useState<string>('')\n const [input, setInput] = React.useState<string>('{\\n \\n}')\n const [running, setRunning] = React.useState(false)\n const [result, setResult] = React.useState<AgentResult | null>(null)\n const [runId, setRunId] = React.useState<string | null>(null)\n const [proposalId, setProposalId] = React.useState<string | null>(null)\n const [toolPanel, setToolPanel] = React.useState<ToolPanelState>({ mode: 'idle' })\n const [error, setError] = React.useState<string | null>(null)\n const [guardrailBlock, setGuardrailBlock] = React.useState<{ guardrailKind: string; phase: string } | null>(null)\n\n React.useEffect(() => {\n let cancelled = false\n async function load() {\n const call = await apiCall<AgentsResponse>('/api/agent_orchestrator/agents', undefined, {\n fallback: { items: [] },\n })\n if (cancelled || !call.ok) return\n const items = Array.isArray(call.result?.items) ? call.result!.items : []\n const mapped = items\n .map((item) => mapAgent(item as Record<string, unknown>))\n .filter((agent): agent is AgentView => !!agent)\n setAgents(mapped)\n const requested = searchParams?.get('agent')\n if (requested && mapped.some((agent) => agent.id === requested)) {\n setAgentId(requested)\n } else if (mapped[0]) {\n setAgentId(mapped[0].id)\n }\n }\n load()\n return () => {\n cancelled = true\n }\n }, [searchParams])\n\n const selectedAgent = React.useMemo(\n () => agents.find((agent) => agent.id === agentId) ?? null,\n [agents, agentId],\n )\n\n // Per-agent example input ships with the agent definition (code agents via\n // `defineAgent({ sampleInput })`, file agents via `agents/<id>/SAMPLE.json`)\n // and arrives on the agent list payload \u2014 the Playground no longer hardcodes\n // samples. The button hides when an agent declares none.\n const sampleInput = selectedAgent?.sampleInput\n\n const run = React.useCallback(async () => {\n if (!agentId) {\n setError(t('agent_orchestrator.playground.selectAgentFirst'))\n return\n }\n let parsed: unknown\n try {\n parsed = JSON.parse(input)\n } catch {\n setError(t('agent_orchestrator.playground.invalidJson'))\n return\n }\n setError(null)\n setGuardrailBlock(null)\n setRunning(true)\n setResult(null)\n setRunId(null)\n setProposalId(null)\n setToolPanel({ mode: 'idle' })\n try {\n const call = await apiCall<AgentRunResponse>(\n `/api/agent_orchestrator/agents/${encodeURIComponent(agentId)}/run`,\n {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ input: parsed }),\n },\n { fallback: null },\n )\n if (!call.ok || !call.result) {\n // A guardrail block is a policy verdict with a typed reason \u2014 surface\n // it as its own alert, never the generic run-failed message (\u00A73.6).\n const errorState = runErrorStateFromBody(call.result)\n if (errorState.kind === 'guardrail') {\n setGuardrailBlock({ guardrailKind: errorState.guardrailKind, phase: errorState.phase })\n } else {\n setError(\n errorState.messageKey\n ? t(errorState.messageKey)\n : errorState.message ?? t('agent_orchestrator.playground.error'),\n )\n }\n return\n }\n const data = call.result\n setResult(data)\n setRunId(typeof data.runId === 'string' ? data.runId : null)\n setProposalId(typeof data.proposalId === 'string' ? data.proposalId : null)\n } catch (err) {\n setError(err instanceof Error ? err.message : t('agent_orchestrator.playground.error'))\n } finally {\n setRunning(false)\n }\n }, [agentId, input, t])\n\n // Fetch the run's ACTUAL tool calls from the trace-detail route once the run\n // id is known. That route gates `trace.view` while this page gates\n // `agents.run`; a 403 (or any failure) degrades to the declared-tools list\n // under a \"Declared tools\" heading \u2014 never the false \"Tools used\" framing.\n React.useEffect(() => {\n if (!runId) return\n let cancelled = false\n async function loadToolCalls(id: string) {\n setToolPanel({ mode: 'loading' })\n const call = await apiCall<Record<string, unknown>>(\n `/api/agent_orchestrator/runs/${encodeURIComponent(id)}`,\n undefined,\n { fallback: {} },\n )\n if (cancelled) return\n setToolPanel(toolPanelStateFromResponse(call))\n }\n void loadToolCalls(runId)\n return () => {\n cancelled = true\n }\n }, [runId])\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent) => {\n if ((event.metaKey || event.ctrlKey) && event.key === 'Enter') {\n event.preventDefault()\n void run()\n }\n },\n [run],\n )\n\n const hasOutcome = Boolean(result || running || error || guardrailBlock)\n\n return (\n <Page>\n <PageBody className=\"space-y-5\" onKeyDown={handleKeyDown}>\n <div className=\"flex flex-wrap items-start justify-between gap-3\">\n <div>\n <h1 className=\"text-2xl font-bold tracking-tight text-foreground\">{t('agent_orchestrator.playground.title')}</h1>\n <p className=\"mt-1 text-sm text-muted-foreground\">{t('agent_orchestrator.playground.subtitle')}</p>\n </div>\n <ConnectionBadges />\n </div>\n\n {/*\n Stacked, not side by side. Compose and Result shared a two-column row,\n which capped the result at half the viewport \u2014 the one panel whose\n whole job is to be read. An agent's returned payload is wide (JSON,\n prose, tool traces) and was the thing operators squinted at. Compose is\n a short form and loses nothing by being full width above it.\n */}\n <div className=\"grid grid-cols-1 items-start gap-4\">\n {/* Compose panel */}\n <div className=\"overflow-hidden rounded-xl border border-border bg-card\">\n <div className=\"flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3\">\n <span className=\"text-sm font-semibold text-foreground\">\n {t('agent_orchestrator.playground.composeTitle', 'Run an agent')}\n </span>\n {selectedAgent ? (\n <span className=\"flex items-center gap-1.5\">\n <Chip icon={RUNTIME_ICON[selectedAgent.runtime]}>\n {t(`agent_orchestrator.agents.list.runtime.${selectedAgent.runtime}`)}\n </Chip>\n <Chip icon={TYPE_ICON[selectedAgent.resultKind]}>\n {t(`agent_orchestrator.agents.list.resultKind.${selectedAgent.resultKind}`)}\n </Chip>\n </span>\n ) : null}\n </div>\n <div className=\"space-y-4 p-4\">\n <div className=\"space-y-1\">\n <label className=\"text-sm font-medium\" htmlFor=\"ao-pg-agent\">\n {t('agent_orchestrator.playground.agentLabel')}\n </label>\n <Select\n value={agentId}\n onValueChange={(value) => {\n const nextId = value ?? ''\n setAgentId(nextId)\n // Agent inputs are agent-specific: switching clears the previous\n // agent's JSON and re-offers the new agent's declared sample.\n const nextSample = agents.find((agent) => agent.id === nextId)?.sampleInput\n setInput(nextSample !== undefined ? JSON.stringify(nextSample, null, 2) : '{\\n \\n}')\n }}\n >\n <SelectTrigger id=\"ao-pg-agent\" className=\"focus-visible:ring-brand-violet\">\n <SelectValue placeholder={t('agent_orchestrator.playground.agentPlaceholder')} />\n </SelectTrigger>\n <SelectContent>\n {agents.map((agent) => {\n const Glyph = resolveAgentIcon(agent.icon, agent.resultKind)\n return (\n <SelectItem key={agent.id} value={agent.id}>\n {Glyph ? <Glyph className=\"size-4 text-muted-foreground\" /> : null}\n {agent.label}\n </SelectItem>\n )\n })}\n </SelectContent>\n </Select>\n {selectedAgent?.description ? (\n <p className=\"text-xs text-muted-foreground\">{selectedAgent.description}</p>\n ) : null}\n </div>\n\n <div className=\"space-y-1\">\n <div className=\"flex items-center justify-between\">\n <label className=\"text-sm font-medium\" htmlFor=\"ao-pg-input\">\n {t('agent_orchestrator.playground.inputLabel')}\n </label>\n {sampleInput !== undefined ? (\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setInput(JSON.stringify(sampleInput, null, 2))}\n >\n {t('agent_orchestrator.playground.insertSample')}\n </Button>\n ) : null}\n </div>\n <Textarea\n id=\"ao-pg-input\"\n value={input}\n onChange={(event) => setInput(event.target.value)}\n placeholder={t('agent_orchestrator.playground.inputPlaceholder')}\n rows={12}\n className=\"font-mono\"\n />\n </div>\n </div>\n <div className=\"space-y-2 border-t border-border px-4 py-3\">\n <ProposeOnlyNotice />\n <p className=\"text-sm text-muted-foreground\">\n {t(\n 'agent_orchestrator.playground.rehearsalNote',\n 'This is a rehearsal \u2014 to have the agent act on real events, add an \u201Cinvoke agent\u201D step to an automation.',\n )}\n </p>\n {canAuthorAutomations ? (\n <a href={AUTOMATION_EDITOR_HREF} className=\"inline-flex text-sm font-medium text-brand-violet hover:underline\">\n {t('agent_orchestrator.playground.useInAutomation', 'Use this agent in an automation')}\n </a>\n ) : null}\n </div>\n <div className=\"flex items-center justify-between gap-2 border-t border-border px-4 py-3\">\n <span className=\"hidden text-xs text-muted-foreground sm:inline\">\n {t('agent_orchestrator.playground.runHint', 'Cmd/Ctrl + Enter runs the agent')}\n </span>\n <Button\n type=\"button\"\n onClick={() => void run()}\n disabled={running || !agentId}\n className=\"bg-brand-violet text-brand-violet-foreground hover:bg-brand-violet/90\"\n >\n {running ? <Spinner className=\"size-4\" /> : <Play className=\"size-4\" />}\n {running ? t('agent_orchestrator.playground.running') : t('agent_orchestrator.playground.run')}\n </Button>\n </div>\n </div>\n\n {/* Result panel */}\n <div className=\"overflow-hidden rounded-xl border border-border bg-card\">\n <div className=\"flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3\">\n <span className=\"text-sm font-semibold text-foreground\">\n {t('agent_orchestrator.playground.resultTitle', 'Result')}\n </span>\n {result && runId ? (\n <span className=\"flex items-center gap-3\">\n <a\n href={`/backend/traces/${encodeURIComponent(runId)}`}\n className=\"text-xs font-medium text-brand-violet hover:underline\"\n >\n {t('agent_orchestrator.playground.result.viewTrace')}\n </a>\n {proposalId ? (\n <a\n href={`/backend/caseload/${encodeURIComponent(proposalId)}`}\n className=\"text-xs font-medium text-brand-violet hover:underline\"\n >\n {t('agent_orchestrator.playground.result.openProposal')}\n </a>\n ) : null}\n {canAuthorAutomations ? (\n <a\n href={AUTOMATION_EDITOR_HREF}\n className=\"text-xs font-medium text-brand-violet hover:underline\"\n >\n {t('agent_orchestrator.playground.useInAutomation', 'Use this agent in an automation')}\n </a>\n ) : null}\n </span>\n ) : null}\n </div>\n <div className=\"space-y-4 p-4\">\n {error ? (\n <Alert status=\"error\" style=\"light\">\n {error}\n </Alert>\n ) : null}\n\n {guardrailBlock ? (\n <Alert status=\"error\" style=\"light\">\n <div className=\"flex items-start gap-2\">\n <ShieldAlert className=\"mt-0.5 size-4 shrink-0\" aria-hidden />\n <span>\n {t('agent_orchestrator.playground.guardrailBlocked', undefined, {\n kind: guardrailBlock.guardrailKind,\n phase: guardrailBlock.phase,\n })}\n </span>\n </div>\n </Alert>\n ) : null}\n\n {running ? (\n <div className=\"flex flex-col items-center gap-2 py-12 text-center\">\n <Spinner className=\"size-5\" />\n <p className=\"text-sm text-muted-foreground\">{t('agent_orchestrator.playground.running')}</p>\n </div>\n ) : null}\n\n {!hasOutcome ? (\n <EmptyState\n title={t('agent_orchestrator.playground.noRun')}\n description={t('agent_orchestrator.playground.noRunDescription')}\n />\n ) : null}\n\n {result?.kind === 'proposal' ? (\n <ProposalCard adHoc={mapAdHocProposal(agentId, result.proposal)} />\n ) : null}\n\n {result?.kind === 'research' ? (\n <section className=\"space-y-2\">\n <SectionHeader title={t('agent_orchestrator.playground.result.research')} />\n <JsonDisplay data={result.data} />\n </section>\n ) : null}\n\n {result ? (\n <CollapsibleSection title={t('agent_orchestrator.playground.result.trace')} defaultCollapsed>\n <div className=\"space-y-3\">\n {toolPanel.mode === 'real' ? (\n <section className=\"space-y-2\">\n <SectionHeader\n title={t('agent_orchestrator.playground.result.toolsHeading')}\n count={toolPanel.calls.length}\n />\n {toolPanel.calls.length > 0 ? (\n <ul className=\"space-y-1\">\n {toolPanel.calls.map((toolCall) => (\n <li key={toolCall.id} className=\"flex items-center gap-2 text-sm\">\n <span className=\"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet\" />\n <span className=\"min-w-0 flex-1 truncate font-mono text-xs\">{toolCall.toolName}</span>\n {toolCall.latencyMs != null ? (\n <span className=\"shrink-0 text-xs tabular-nums text-muted-foreground\">\n {toolCall.latencyMs}ms\n </span>\n ) : null}\n <StatusBadge variant={toolCall.status === 'error' ? 'error' : 'success'}>\n {toolCall.status ?? 'ok'}\n </StatusBadge>\n </li>\n ))}\n </ul>\n ) : (\n <p className=\"text-sm text-muted-foreground\">\n {t('agent_orchestrator.playground.result.noToolCalls')}\n </p>\n )}\n </section>\n ) : toolPanel.mode === 'loading' ? (\n <section className=\"space-y-2\">\n <SectionHeader title={t('agent_orchestrator.playground.result.toolsHeading')} />\n <Spinner className=\"size-4\" />\n </section>\n ) : (\n <section className=\"space-y-2\">\n <SectionHeader\n title={t('agent_orchestrator.playground.result.declaredTools')}\n count={selectedAgent?.tools.length ?? 0}\n />\n {selectedAgent && selectedAgent.tools.length > 0 ? (\n <ul className=\"space-y-1\">\n {selectedAgent.tools.map((tool) => (\n <li key={tool} className=\"flex items-center gap-2 text-sm\">\n <span className=\"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet\" />\n <span className=\"font-mono text-xs\">{tool}</span>\n </li>\n ))}\n </ul>\n ) : (\n <p className=\"text-sm text-muted-foreground\">\n {t('agent_orchestrator.playground.result.noDeclaredTools')}\n </p>\n )}\n </section>\n )}\n <section className=\"space-y-2\">\n <SectionHeader title={t('agent_orchestrator.playground.result.rawOutput')} />\n <JsonDisplay data={result} />\n </section>\n </div>\n </CollapsibleSection>\n ) : null}\n </div>\n </div>\n </div>\n {/* Its own card below the result: the run POST does not return until the\n agent finishes, so this is the only live view of what it is doing, and\n it stays readable afterwards as the record of which sources answered. */}\n <WebSearchActivity className=\"mt-4\" />\n\n {result && runId ? (\n <div className=\"mt-4\">\n <PlaygroundEvalPanel runId={runId} agentId={agentId} />\n </div>\n ) : null}\n </PageBody>\n </Page>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AA6IQ,cAiCE,YAjCF;AA3IR,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,MAAM,MAAM,UAAU,QAAQ,aAAa,kBAAkB;AACtE,SAAS,MAAM,gBAAgB;AAC/B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,mBAA4C;AACrD,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,mBAAmB;AAC5B,SAAS,eAAe,0BAA0B;AAClD,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAClC,SAAS,2BAA2B,8BAA8B;AAClE,SAAS,oBAAoB;AAC7B,SAAS,yBAAyB;AAClC,SAAS,kBAAkB,gBAAgC;AAC3D,SAAS,kCAAuD;AAChE,SAAS,6BAA6B;AACtC,SAAS,MAAM,WAAW,cAAc,wBAAwB;AAChE,SAAS,2BAA2B;AAsCpC,MAAM,eAAsD;AAAA,EAC1D,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AACX;AAEA,SA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ACX,wBAAc,MAAM,IAAI,CAAC,SACxB,qBAAC,QAAc,WAAU,mCACvB;AAAA,oCAAC,UAAK,WAAU,kEAAiE;AAAA,gBACjF,oBAAC,UAAK,WAAU,qBAAqB,gBAAK;AAAA,mBAFnC,IAGT,CACD,GACH,IAEA,oBAAC,OAAE,WAAU,iCACV,YAAE,sDAAsD,GAC3D;AAAA,eAEJ;AAAA,YAEF,qBAAC,aAAQ,WAAU,aACjB;AAAA,kCAAC,iBAAc,OAAO,EAAE,gDAAgD,GAAG;AAAA,cAC3E,oBAAC,eAAY,MAAM,QAAQ;AAAA,eAC7B;AAAA,aACF,GACF,IACE;AAAA,WACN;AAAA,SACF;AAAA,OACF;AAAA,IAIA,oBAAC,qBAAkB,WAAU,QAAO;AAAA,IAEnC,UAAU,QACT,oBAAC,SAAI,WAAU,QACb,8BAAC,uBAAoB,OAAc,SAAkB,GACvD,IACE;AAAA,KACN,GACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
const playgroundIcon = React.createElement(
|
|
3
|
+
"svg",
|
|
4
|
+
{ width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2 },
|
|
5
|
+
React.createElement("polygon", { points: "5 3 19 12 5 21 5 3" })
|
|
6
|
+
);
|
|
7
|
+
const metadata = {
|
|
8
|
+
requireAuth: true,
|
|
9
|
+
requireFeatures: ["agent_orchestrator.agents.run"],
|
|
10
|
+
pageTitle: "Playground",
|
|
11
|
+
pageTitleKey: "agent_orchestrator.nav.playground",
|
|
12
|
+
pageGroup: "Agents",
|
|
13
|
+
pageGroupKey: "agent_orchestrator.nav.group",
|
|
14
|
+
pagePriority: 30,
|
|
15
|
+
pageOrder: 110,
|
|
16
|
+
icon: playgroundIcon,
|
|
17
|
+
breadcrumb: [{ label: "Playground", labelKey: "agent_orchestrator.nav.playground" }]
|
|
18
|
+
};
|
|
19
|
+
var page_meta_default = metadata;
|
|
20
|
+
export {
|
|
21
|
+
page_meta_default as default,
|
|
22
|
+
metadata
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=page.meta.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/modules/agent_orchestrator/backend/playground/page.meta.ts"],
|
|
4
|
+
"sourcesContent": ["import React from 'react'\n\nconst playgroundIcon = React.createElement(\n 'svg',\n { width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },\n React.createElement('polygon', { points: '5 3 19 12 5 21 5 3' }),\n)\n\nexport const metadata = {\n requireAuth: true,\n requireFeatures: ['agent_orchestrator.agents.run'],\n pageTitle: 'Playground',\n pageTitleKey: 'agent_orchestrator.nav.playground',\n pageGroup: 'Agents',\n pageGroupKey: 'agent_orchestrator.nav.group',\n pagePriority: 30,\n pageOrder: 110,\n icon: playgroundIcon,\n breadcrumb: [{ label: 'Playground', labelKey: 'agent_orchestrator.nav.playground' }],\n}\n\nexport default metadata\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAElB,MAAM,iBAAiB,MAAM;AAAA,EAC3B;AAAA,EACA,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,QAAQ,gBAAgB,aAAa,EAAE;AAAA,EACpG,MAAM,cAAc,WAAW,EAAE,QAAQ,qBAAqB,CAAC;AACjE;AAEO,MAAM,WAAW;AAAA,EACtB,aAAa;AAAA,EACb,iBAAiB,CAAC,+BAA+B;AAAA,EACjD,WAAW;AAAA,EACX,cAAc;AAAA,EACd,WAAW;AAAA,EACX,cAAc;AAAA,EACd,cAAc;AAAA,EACd,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY,CAAC,EAAE,OAAO,cAAc,UAAU,oCAAoC,CAAC;AACrF;AAEA,IAAO,oBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|