@open-mercato/enterprise 0.7.1-develop.7193.1.910a5b0a1e → 0.7.1-develop.7194.1.ab4fc81f82
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,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/modules/agent_orchestrator/backend/processes/definitions/page.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\"\n\nimport * as React from 'react'\nimport { useRouter } from 'next/navigation'\nimport type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'\nimport { z } from 'zod'\nimport { Plus, Bot, Workflow as WorkflowIcon, CalendarClock, Hand, Radio, X, TriangleAlert } from 'lucide-react'\nimport { Page, PageBody } from '@open-mercato/ui/backend/Page'\nimport { DataTable } from '@open-mercato/ui/backend/DataTable'\nimport { RowActions } from '@open-mercato/ui/backend/RowActions'\nimport { StatusBadge, type StatusMap } from '@open-mercato/ui/primitives/status-badge'\nimport { useAppEvent } from '@open-mercato/ui/backend/injection/useAppEvent'\nimport {\n CrudForm,\n type CrudField,\n type CrudFieldOption,\n type CrudCustomFieldRenderProps,\n} from '@open-mercato/ui/backend/CrudForm'\nimport { LoadingMessage, ErrorMessage } from '@open-mercato/ui/backend/detail'\nimport { EmptyState } from '@open-mercato/ui/primitives/empty-state'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { IconButton } from '@open-mercato/ui/primitives/icon-button'\nimport { Input } from '@open-mercato/ui/primitives/input'\nimport { Switch } from '@open-mercato/ui/primitives/switch'\nimport { apiCall, withScopedApiRequestHeaders } from '@open-mercato/ui/backend/utils/apiCall'\nimport { createCrud, updateCrud, deleteCrud } from '@open-mercato/ui/backend/utils/crud'\nimport { buildOptimisticLockHeader } from '@open-mercato/ui/backend/utils/optimisticLock'\nimport { surfaceRecordConflict } from '@open-mercato/ui/backend/conflicts'\nimport { createCrudFormError } from '@open-mercato/ui/backend/utils/serverErrors'\nimport { flash } from '@open-mercato/ui/backend/FlashMessages'\nimport { useConfirmDialog } from '@open-mercato/ui/backend/confirm-dialog'\nimport { useT, useLocale } from '@open-mercato/shared/lib/i18n/context'\nimport { formatRelativeAge } from '../../../components/types'\nimport { useCoalescedReload } from '../../../components/useCoalescedReload'\nimport { PROCESS_STATUS_LABEL_KEY, type ProcessInstanceStatus } from '../../../components/processTypes'\nimport {\n processMilestonesSchema,\n processSingleAgentSchema,\n processTriggersSchema,\n type ProcessMilestone,\n type ProcessSingleAgent,\n type ProcessTrigger,\n} from '../../../data/validators'\nimport { parseProcessTriggers, scheduleTriggers, eventTriggers, manualTrigger } from '../../../lib/tasks/triggers'\nimport { parseProcessMilestones } from '../../../lib/tasks/milestones'\nimport { TriggerEditor, invalidScheduleIndexes } from './TriggerEditor'\nimport { MilestoneEditor } from './MilestoneEditor'\nimport {\n parseGrantedFeaturesText,\n resolveFeaturePrefill,\n unknownFeatureIds,\n} from './formHelpers'\n\nconst ENTITY_ID = 'agent_orchestrator:process_definition'\n\ntype ProcessLastExecution = { status: string; completedAt: string | null }\n\n/**\n * The execution status is DERIVED from the workflow instance, so the vocabulary is\n * the projection's, not a ledger's. An unknown value renders neutral rather than\n * being coerced into one of these \u2014 a status this list does not know is not a\n * failure.\n */\nconst lastExecutionVariant: StatusMap<string> = {\n running: 'info',\n waiting_on_you: 'warning',\n question_open: 'warning',\n docs_requested: 'warning',\n fraud_hold: 'warning',\n auto_completing: 'info',\n auto_completed: 'success',\n completed: 'success',\n failed: 'error',\n cancelled: 'neutral',\n}\n\nfunction mapLastExecution(raw: unknown): ProcessLastExecution | null {\n if (!raw || typeof raw !== 'object') return null\n const record = raw as Record<string, unknown>\n const status = record.status\n if (typeof status !== 'string') return null\n const completed = record.completed_at ?? record.completedAt\n return { status, completedAt: typeof completed === 'string' ? completed : null }\n}\n\ntype ProcessDefinitionRow = {\n id: string\n name: string\n description: string | null\n /** Derived from the bound workflow id, not stored \u2014 see the list route. */\n workflowMode: 'single_agent' | 'workflow'\n workflowId: string | null\n /** Read back from the generated workflow; null once it has been extended by hand. */\n singleAgent: ProcessSingleAgent | null\n inputDefaults: unknown\n inputSchema: unknown\n grantedFeatures: string[]\n triggers: ProcessTrigger[]\n milestones: ProcessMilestone[]\n enabled: boolean\n lastExecution: ProcessLastExecution | null\n updatedAt: string | null\n}\n\ntype FormValues = {\n id?: string\n name: string\n description?: string\n workflowMode: 'single_agent' | 'workflow'\n agentId?: string\n workflowId?: string\n autoApproveThreshold?: string\n inputDefaultsJson?: string\n inputSchemaJson?: string\n grantedFeaturesText?: string\n triggers: ProcessTrigger[]\n milestones: ProcessMilestone[]\n enabled: boolean\n updatedAt?: string | null\n}\n\n/**\n * The disposition rule a single-agent process runs with, as one choice instead of\n * a threshold plus a margin plus a boolean. `ask` is the safe default: a process\n * that mutates the domain without anyone looking is a decision, not a default.\n */\nconst AUTO_APPROVE_CHOICES = ['ask', '0.8', '0.9', '0.95'] as const\n\nfunction parseOnResult(threshold: string | undefined): ProcessSingleAgent['onResult'] {\n if (!threshold || threshold === 'ask') return { alwaysAsk: true }\n const value = Number.parseFloat(threshold)\n if (!Number.isFinite(value)) return { alwaysAsk: true }\n return { autoApproveThreshold: value, autoApproveMargin: 0 }\n}\n\nfunction formatOnResult(onResult: ProcessSingleAgent['onResult'] | undefined): string {\n if (!onResult || 'alwaysAsk' in onResult) return 'ask'\n return String(onResult.autoApproveThreshold)\n}\n\nfunction readString(record: Record<string, unknown>, ...keys: string[]): string {\n for (const key of keys) {\n const value = record[key]\n if (typeof value === 'string') return value\n }\n return ''\n}\n\nfunction mapRow(item: Record<string, unknown>): ProcessDefinitionRow | null {\n const id = readString(item, 'id')\n if (!id) return null\n const grantedRaw = item.granted_features ?? item.grantedFeatures\n const singleAgentRaw = item.single_agent ?? item.singleAgent\n const parsedSingleAgent = singleAgentRaw ? processSingleAgentSchema.safeParse(singleAgentRaw) : null\n return {\n id,\n name: readString(item, 'name'),\n description: typeof item.description === 'string' ? item.description : null,\n workflowMode: readString(item, 'workflow_mode', 'workflowMode') === 'single_agent' ? 'single_agent' : 'workflow',\n workflowId: readString(item, 'workflow_id', 'workflowId') || null,\n singleAgent: parsedSingleAgent?.success ? parsedSingleAgent.data : null,\n inputDefaults: item.input_defaults ?? item.inputDefaults ?? null,\n inputSchema: item.input_schema ?? item.inputSchema ?? null,\n grantedFeatures: Array.isArray(grantedRaw)\n ? grantedRaw.filter((value): value is string => typeof value === 'string')\n : [],\n triggers: parseProcessTriggers(item.triggers),\n milestones: parseProcessMilestones(item.milestones),\n enabled: (item.enabled ?? true) !== false,\n lastExecution: mapLastExecution(item.last_execution ?? item.lastExecution),\n updatedAt: readString(item, 'updated_at', 'updatedAt') || null,\n }\n}\n\nfunction parseJsonField(raw: string | undefined, fieldId: string, message: string): unknown {\n const trimmed = raw?.trim()\n if (!trimmed) return undefined\n try {\n return JSON.parse(trimmed)\n } catch {\n throw createCrudFormError(message, { [fieldId]: message })\n }\n}\n\ntype FeatureCatalogItem = { id: string; title: string }\n\nconst FEATURES_DATALIST_ID = 'om-agent-process-definition-features'\n\n/**\n * Chips + datalist picker over the declared feature catalog. The form value\n * stays the newline-joined string (`grantedFeaturesText`) so submit/edit\n * plumbing is unchanged; this component is the safety layer: catalog\n * suggestions while typing, warning chips for unknown ids, a least-privilege\n * prefill when switching a fresh task to a workflow target, and a non-blocking\n * empty-grants warning for workflow-target tasks.\n */\nfunction FeaturesPickerField({\n fieldProps,\n catalog,\n isEdit,\n t,\n}: {\n fieldProps: CrudCustomFieldRenderProps\n catalog: FeatureCatalogItem[]\n isEdit: boolean\n t: ReturnType<typeof useT>\n}) {\n const { value, values, setValue } = fieldProps\n const [draft, setDraft] = React.useState('')\n const prefilledRef = React.useRef(false)\n const features = React.useMemo(\n () => parseGrantedFeaturesText(typeof value === 'string' ? value : ''),\n [value],\n )\n const workflowMode = values?.workflowMode === 'single_agent' ? ('single_agent' as const) : ('workflow' as const)\n\n React.useEffect(() => {\n if (isEdit || prefilledRef.current) return\n const prefill = resolveFeaturePrefill(features)\n if (prefill) {\n prefilledRef.current = true\n setValue(prefill.join('\\n'))\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [workflowMode])\n\n const unknown = React.useMemo(\n () => new Set(unknownFeatureIds(features, catalog.map((item) => item.id))),\n [features, catalog],\n )\n\n const addDraft = React.useCallback(() => {\n const trimmed = draft.trim()\n if (!trimmed) return\n if (!features.includes(trimmed)) setValue([...features, trimmed].join('\\n'))\n setDraft('')\n }, [draft, features, setValue])\n\n const removeFeature = React.useCallback(\n (id: string) => {\n setValue(features.filter((feature) => feature !== id).join('\\n'))\n },\n [features, setValue],\n )\n\n return (\n <div className=\"space-y-2\">\n <div className=\"flex items-center gap-2\">\n <Input\n id={fieldProps.id}\n list={FEATURES_DATALIST_ID}\n value={draft}\n placeholder={t('agent_orchestrator.processDefinitions.form.featuresAdd')}\n onChange={(event) => setDraft(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n event.preventDefault()\n addDraft()\n }\n }}\n />\n <Button type=\"button\" variant=\"outline\" onClick={addDraft} disabled={!draft.trim()}>\n {t('agent_orchestrator.processDefinitions.form.featuresAddAction')}\n </Button>\n <datalist id={FEATURES_DATALIST_ID}>\n {catalog.map((item) => (\n <option key={item.id} value={item.id}>\n {item.title}\n </option>\n ))}\n </datalist>\n </div>\n {features.length > 0 ? (\n <div className=\"flex flex-wrap gap-1.5\">\n {features.map((feature) => {\n const isUnknown = unknown.has(feature)\n return (\n <span\n key={feature}\n title={isUnknown ? t('agent_orchestrator.processDefinitions.form.featuresUnknown') : undefined}\n className={\n isUnknown\n ? 'inline-flex items-center gap-1 rounded-md border border-status-warning-border bg-status-warning-bg px-2 py-0.5 font-mono text-xs text-status-warning-text'\n : 'inline-flex items-center gap-1 rounded-md border border-border bg-muted px-2 py-0.5 font-mono text-xs text-foreground'\n }\n >\n {isUnknown ? <TriangleAlert className=\"size-3 shrink-0\" /> : null}\n {feature}\n <IconButton\n type=\"button\"\n variant=\"ghost\"\n size=\"xs\"\n aria-label={t('agent_orchestrator.processDefinitions.form.featuresRemove', undefined, { id: feature })}\n onClick={() => removeFeature(feature)}\n >\n <X className=\"size-3\" />\n </IconButton>\n </span>\n )\n })}\n </div>\n ) : null}\n {features.length === 0 ? (\n <div\n role=\"status\"\n className=\"flex items-start gap-2 rounded-md border border-status-warning-border bg-status-warning-bg px-3 py-2 text-xs text-status-warning-text\"\n >\n <TriangleAlert className=\"mt-0.5 size-3.5 shrink-0\" />\n <span>{t('agent_orchestrator.processDefinitions.form.workflowGrantsWarning')}</span>\n </div>\n ) : null}\n </div>\n )\n}\n\n/**\n * One compact cell answering \"how can this start\" \u2014 the question no surface\n * could answer while cron, event triggers and the run route were three\n * unrelated mechanisms.\n */\nfunction TriggerSummary({ triggers, t }: { triggers: ProcessTrigger[]; t: ReturnType<typeof useT> }) {\n const schedules = scheduleTriggers(triggers)\n const events = eventTriggers(triggers)\n const manual = manualTrigger(triggers)\n if (triggers.length === 0) {\n return <span className=\"text-xs text-muted-foreground\">{t('agent_orchestrator.processDefinitions.triggers.none')}</span>\n }\n return (\n <div className=\"flex flex-wrap items-center gap-1.5\">\n {schedules.map((trigger, index) => (\n <span\n key={`schedule-${index}`}\n className=\"inline-flex items-center gap-1 rounded-md border border-border bg-background px-1.5 py-0.5 font-mono text-xs text-foreground\"\n >\n <CalendarClock className=\"size-3.5 shrink-0 text-muted-foreground\" />\n {trigger.cron}\n {!trigger.enabled ? (\n <span className=\"font-sans text-muted-foreground\">\n ({t('agent_orchestrator.processDefinitions.list.schedulePaused')})\n </span>\n ) : null}\n </span>\n ))}\n {events.map((trigger, index) => (\n <span\n key={`event-${index}`}\n className=\"inline-flex items-center gap-1 rounded-md border border-border bg-background px-1.5 py-0.5 font-mono text-xs text-foreground\"\n >\n <Radio className=\"size-3.5 shrink-0 text-muted-foreground\" />\n {trigger.eventPattern}\n </span>\n ))}\n {manual ? (\n <span className=\"inline-flex items-center gap-1 rounded-md border border-border bg-background px-1.5 py-0.5 text-xs text-foreground\">\n <Hand className=\"size-3.5 shrink-0 text-muted-foreground\" />\n {t('agent_orchestrator.processDefinitions.triggers.manual.badge')}\n </span>\n ) : null}\n </div>\n )\n}\n\nexport default function ProcessDefinitionsPage() {\n const t = useT()\n const router = useRouter()\n const [rows, setRows] = React.useState<ProcessDefinitionRow[]>([])\n const [isLoading, setIsLoading] = React.useState(true)\n const [error, setError] = React.useState<string | null>(null)\n const [editing, setEditing] = React.useState<ProcessDefinitionRow | null>(null)\n const [mode, setMode] = React.useState<'list' | 'create' | 'edit'>('list')\n const [agents, setAgents] = React.useState<CrudFieldOption[]>([])\n const [workflows, setWorkflows] = React.useState<CrudFieldOption[]>([])\n const [featureCatalog, setFeatureCatalog] = React.useState<FeatureCatalogItem[]>([])\n const locale = useLocale()\n const { confirm, ConfirmDialogElement } = useConfirmDialog()\n\n const load = React.useCallback(async (opts?: { silent?: boolean }) => {\n if (!opts?.silent) setIsLoading(true)\n setError(null)\n const call = await apiCall<{ items?: Array<Record<string, unknown>> }>(\n '/api/agent_orchestrator/processes?pageSize=100',\n undefined,\n { fallback: { items: [] } },\n )\n if (!call.ok) {\n setError(t('agent_orchestrator.processDefinitions.list.error'))\n if (!opts?.silent) setIsLoading(false)\n return\n }\n const items = Array.isArray(call.result?.items) ? call.result.items : []\n setRows(items.map(mapRow).filter((row): row is ProcessDefinitionRow => !!row))\n if (!opts?.silent) setIsLoading(false)\n }, [t])\n\n React.useEffect(() => {\n void load()\n }, [load])\n\n // Live refresh: task runs starting/finishing update the Last-run column\n // without a manual reload (silent \u2014 no loading flash), coalesced so an\n // event burst triggers at most one refetch per interval.\n const coalescedReload = useCoalescedReload(\n React.useCallback(() => { void load({ silent: true }) }, [load]),\n )\n useAppEvent('agent_orchestrator.process.execution.*', () => {\n coalescedReload()\n })\n\n React.useEffect(() => {\n let cancelled = false\n void apiCall<{ items?: Array<Record<string, unknown>> }>(\n '/api/agent_orchestrator/agents',\n undefined,\n { fallback: { items: [] } },\n ).then((call) => {\n if (cancelled || !call.ok) return\n const items = Array.isArray(call.result?.items) ? call.result.items : []\n setAgents(\n items\n .map((item) => {\n const id = typeof item.id === 'string' ? item.id : ''\n const label = typeof item.label === 'string' && item.label ? item.label : id\n return { value: id, label }\n })\n .filter((option) => option.value !== ''),\n )\n })\n void apiCall<{ items?: Array<Record<string, unknown>> }>(\n '/api/workflows/definitions?pageSize=100',\n undefined,\n { fallback: { items: [] } },\n ).then((call) => {\n if (cancelled || !call.ok) return\n const items = Array.isArray(call.result?.items) ? call.result.items : []\n setWorkflows(\n items\n .map((item) => {\n const id = typeof item.workflowId === 'string' ? item.workflowId : ''\n const label = typeof item.name === 'string' && item.name ? `${item.name} (${id})` : id\n return { value: id, label }\n })\n .filter((option) => option.value !== ''),\n )\n })\n void apiCall<{ items?: Array<Record<string, unknown>> }>(\n '/api/agent_orchestrator/features',\n undefined,\n { fallback: { items: [] } },\n ).then((call) => {\n if (cancelled || !call.ok) return\n const items = Array.isArray(call.result?.items) ? call.result.items : []\n setFeatureCatalog(\n items\n .map((item) => ({\n id: typeof item.id === 'string' ? item.id : '',\n title: typeof item.title === 'string' ? item.title : '',\n }))\n .filter((item) => item.id !== ''),\n )\n })\n return () => { cancelled = true }\n }, [])\n\n const toggleEnabled = React.useCallback(async (row: ProcessDefinitionRow, next: boolean) => {\n setRows((prev) => prev.map((item) => (item.id === row.id ? { ...item, enabled: next } : item)))\n try {\n await withScopedApiRequestHeaders(\n buildOptimisticLockHeader(row.updatedAt),\n () => updateCrud('agent_orchestrator/processes', {\n id: row.id,\n name: row.name,\n workflowMode: row.workflowMode,\n workflowId: row.workflowId ?? undefined,\n singleAgent: row.singleAgent ?? undefined,\n grantedFeatures: row.grantedFeatures,\n triggers: row.triggers,\n enabled: next,\n }),\n )\n await load({ silent: true })\n } catch (err) {\n setRows((prev) => prev.map((item) => (item.id === row.id ? { ...item, enabled: row.enabled } : item)))\n if (surfaceRecordConflict(err, t)) return\n flash(t('agent_orchestrator.processDefinitions.flash.toggleError'), 'error')\n }\n }, [load, t])\n\n const formSchema = React.useMemo(\n () =>\n z\n .object({\n name: z.string().min(1, 'agent_orchestrator.processDefinitions.form.errors.nameRequired'),\n description: z.string().optional(),\n workflowMode: z.enum(['single_agent', 'workflow']),\n agentId: z.string().optional(),\n workflowId: z.string().optional(),\n autoApproveThreshold: z.string().optional(),\n inputDefaultsJson: z.string().optional(),\n inputSchemaJson: z.string().optional(),\n grantedFeaturesText: z.string().optional(),\n triggers: processTriggersSchema,\n milestones: processMilestonesSchema,\n enabled: z.boolean(),\n })\n .superRefine((data, ctx) => {\n // Every process points at a workflow: name one, or name the agent the\n // generated one runs. The server-side schema enforces the same rule.\n if (data.workflowMode === 'single_agent' && !data.agentId?.trim()) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['agentId'],\n message: 'agent_orchestrator.processDefinitions.form.errors.agentRequired',\n })\n }\n if (data.workflowMode === 'workflow' && !data.workflowId?.trim()) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['workflowId'],\n message: 'agent_orchestrator.processDefinitions.form.errors.workflowRequired',\n })\n }\n // Invalid cron is rejected AT SAVE, not discovered at fire time. The\n // same parser the server-side `withScheduleSemanticChecks` runs.\n for (const index of invalidScheduleIndexes(data.triggers)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: ['triggers', index, 'cron'],\n message: 'agent_orchestrator.processDefinitions.form.errors.cronInvalid',\n })\n }\n }),\n [],\n )\n\n const fields = React.useMemo<CrudField[]>(\n () => [\n { id: 'name', label: t('agent_orchestrator.processDefinitions.form.name'), type: 'text', required: true },\n { id: 'description', label: t('agent_orchestrator.processDefinitions.form.description'), type: 'textarea' },\n {\n id: 'workflowMode',\n label: t('agent_orchestrator.processDefinitions.form.workflowMode'),\n type: 'select',\n description: t('agent_orchestrator.processDefinitions.form.workflowModeHint'),\n options: [\n { value: 'single_agent', label: t('agent_orchestrator.processDefinitions.mode.singleAgent') },\n { value: 'workflow', label: t('agent_orchestrator.processDefinitions.mode.workflow') },\n ],\n },\n {\n id: 'agentId',\n label: t('agent_orchestrator.processDefinitions.form.agent'),\n type: 'combobox',\n description: t('agent_orchestrator.processDefinitions.form.agentHint'),\n options: agents,\n seedOptions: agents,\n allowCustomValues: true,\n visibleWhen: { field: 'workflowMode', equals: 'single_agent' },\n },\n {\n id: 'autoApproveThreshold',\n label: t('agent_orchestrator.processDefinitions.form.autoApprove'),\n type: 'select',\n description: t('agent_orchestrator.processDefinitions.form.autoApproveHint'),\n visibleWhen: { field: 'workflowMode', equals: 'single_agent' },\n options: AUTO_APPROVE_CHOICES.map((choice) => ({\n value: choice,\n label:\n choice === 'ask'\n ? t('agent_orchestrator.processDefinitions.form.autoApproveAsk')\n : t('agent_orchestrator.processDefinitions.form.autoApproveAt', undefined, { threshold: choice }),\n })),\n },\n {\n id: 'workflowId',\n label: t('agent_orchestrator.processDefinitions.form.workflow'),\n type: 'combobox',\n options: workflows,\n seedOptions: workflows,\n allowCustomValues: true,\n visibleWhen: { field: 'workflowMode', equals: 'workflow' },\n },\n {\n id: 'inputDefaultsJson',\n label: t('agent_orchestrator.processDefinitions.form.inputDefaults'),\n type: 'textarea',\n description: t('agent_orchestrator.processDefinitions.form.inputDefaultsHint'),\n },\n {\n id: 'inputSchemaJson',\n label: t('agent_orchestrator.processDefinitions.form.inputSchema'),\n type: 'textarea',\n description: t('agent_orchestrator.processDefinitions.form.inputSchemaHint'),\n },\n {\n id: 'grantedFeaturesText',\n label: t('agent_orchestrator.processDefinitions.form.grantedFeatures'),\n type: 'custom',\n description: t('agent_orchestrator.processDefinitions.form.grantedFeaturesHint'),\n component: (fieldProps) => (\n <FeaturesPickerField fieldProps={fieldProps} catalog={featureCatalog} isEdit={mode === 'edit'} t={t} />\n ),\n },\n {\n id: 'triggers',\n label: t('agent_orchestrator.processDefinitions.triggers.title'),\n type: 'custom',\n description: t('agent_orchestrator.processDefinitions.triggers.description'),\n component: ({ value, setValue }) => (\n <TriggerEditor\n value={Array.isArray(value) ? (value as ProcessTrigger[]) : []}\n onChange={(next) => setValue(next)}\n locale={locale}\n t={t}\n />\n ),\n },\n {\n id: 'milestones',\n label: t('agent_orchestrator.processDefinitions.milestones.title'),\n type: 'custom',\n description: t('agent_orchestrator.processDefinitions.milestones.description'),\n component: ({ value, values, setValue }) => (\n <MilestoneEditor\n value={Array.isArray(value) ? (value as ProcessMilestone[]) : []}\n onChange={(next) => setValue(next)}\n workflowId={typeof values?.workflowId === 'string' ? values.workflowId : null}\n t={t}\n />\n ),\n },\n { id: 'enabled', label: t('agent_orchestrator.processDefinitions.form.enabled'), type: 'checkbox' },\n ],\n [t, agents, workflows, featureCatalog, locale, mode],\n )\n\n const columns = React.useMemo<ColumnDef<ProcessDefinitionRow>[]>(\n () => [\n {\n accessorKey: 'name',\n header: t('agent_orchestrator.processDefinitions.list.col.name'),\n cell: ({ row }) => (\n <div className=\"min-w-0\">\n <div className=\"truncate text-sm font-medium text-foreground\">{row.original.name}</div>\n {row.original.description ? (\n <div className=\"truncate text-xs text-muted-foreground\">{row.original.description}</div>\n ) : null}\n </div>\n ),\n },\n {\n accessorKey: 'workflowMode',\n header: t('agent_orchestrator.processDefinitions.list.col.runs'),\n cell: ({ row }) => {\n // Both modes run a workflow; what differs is who wrote it. Naming the\n // agent for a generated one is what the reader actually wants to know.\n const isSingleAgent = row.original.workflowMode === 'single_agent'\n const Icon = isSingleAgent ? Bot : WorkflowIcon\n const label = isSingleAgent\n ? row.original.singleAgent?.agentId ?? row.original.workflowId\n : row.original.workflowId\n return (\n <span className=\"inline-flex items-center gap-1 rounded-md border border-border bg-background px-2 py-0.5 text-xs font-medium text-foreground\">\n <Icon className=\"size-3.5 shrink-0 text-muted-foreground\" />\n <span className=\"truncate font-mono\">{label ?? '\u2014'}</span>\n </span>\n )\n },\n },\n {\n accessorKey: 'triggers',\n header: t('agent_orchestrator.processDefinitions.list.col.triggers'),\n enableSorting: false,\n cell: ({ row }) => <TriggerSummary triggers={row.original.triggers} t={t} />,\n },\n {\n accessorKey: 'lastExecution',\n header: t('agent_orchestrator.processDefinitions.list.col.lastExecution'),\n enableSorting: false,\n cell: ({ row }) => {\n const last = row.original.lastExecution\n if (!last) {\n return <span className=\"text-xs text-muted-foreground\">{t('agent_orchestrator.processDefinitions.list.lastExecutionNever')}</span>\n }\n const age = formatRelativeAge(last.completedAt)\n return (\n <span className=\"inline-flex items-center gap-1.5\">\n <StatusBadge variant={lastExecutionVariant[last.status] ?? 'neutral'}>\n {t(PROCESS_STATUS_LABEL_KEY[last.status as ProcessInstanceStatus] ?? last.status)}\n </StatusBadge>\n {age ? <span className=\"text-xs tabular-nums text-muted-foreground\">{age}</span> : null}\n </span>\n )\n },\n },\n {\n accessorKey: 'enabled',\n header: t('agent_orchestrator.processDefinitions.list.col.enabled'),\n enableSorting: false,\n cell: ({ row }) => (\n <div className=\"flex items-center\" onClick={(event) => event.stopPropagation()}>\n <Switch\n checked={row.original.enabled}\n onCheckedChange={(next) => { void toggleEnabled(row.original, next) }}\n aria-label={t('agent_orchestrator.processDefinitions.list.col.enabled')}\n />\n </div>\n ),\n },\n ],\n [t, toggleEnabled],\n )\n\n function buildBody(values: FormValues): Record<string, unknown> {\n const invalidJson = t('agent_orchestrator.processDefinitions.form.errors.invalidJson')\n const inputDefaults = parseJsonField(values.inputDefaultsJson, 'inputDefaultsJson', invalidJson)\n const inputSchema = parseJsonField(values.inputSchemaJson, 'inputSchemaJson', invalidJson)\n const grantedFeatures = (values.grantedFeaturesText ?? '')\n .split('\\n')\n .map((line) => line.trim())\n .filter((line) => line.length > 0)\n return {\n name: values.name,\n description: values.description?.trim() ? values.description.trim() : undefined,\n workflowMode: values.workflowMode,\n workflowId: values.workflowMode === 'workflow' ? values.workflowId : undefined,\n singleAgent:\n values.workflowMode === 'single_agent' && values.agentId\n ? { agentId: values.agentId, onResult: parseOnResult(values.autoApproveThreshold) }\n : undefined,\n inputDefaults,\n inputSchema,\n grantedFeatures,\n triggers: values.triggers ?? [],\n milestones: values.milestones ?? [],\n enabled: values.enabled,\n }\n }\n\n if (mode !== 'list') {\n const isEdit = mode === 'edit' && editing\n const initialValues: Partial<FormValues> = isEdit\n ? {\n id: editing!.id,\n name: editing!.name,\n description: editing!.description ?? undefined,\n workflowMode: editing!.workflowMode,\n agentId: editing!.singleAgent?.agentId ?? undefined,\n workflowId: editing!.workflowId ?? undefined,\n autoApproveThreshold: formatOnResult(editing!.singleAgent?.onResult),\n inputDefaultsJson: editing!.inputDefaults ? JSON.stringify(editing!.inputDefaults, null, 2) : '',\n inputSchemaJson: editing!.inputSchema ? JSON.stringify(editing!.inputSchema, null, 2) : '',\n grantedFeaturesText: editing!.grantedFeatures.join('\\n'),\n triggers: editing!.triggers,\n milestones: editing!.milestones,\n enabled: editing!.enabled,\n updatedAt: editing!.updatedAt,\n }\n : {\n workflowMode: 'single_agent',\n autoApproveThreshold: 'ask',\n // A new definition can be started by hand unless the author says\n // otherwise \u2014 the same default the manual-trigger backfill gives every\n // definition that predates this phase.\n triggers: [{ kind: 'manual', requireFeatures: [] }],\n milestones: [],\n enabled: true,\n }\n\n return (\n <Page>\n <PageBody>\n <div className=\"max-w-2xl\">\n <CrudForm<FormValues>\n title={\n isEdit\n ? t('agent_orchestrator.processDefinitions.form.editTitle')\n : t('agent_orchestrator.processDefinitions.form.createTitle')\n }\n fields={fields}\n initialValues={initialValues}\n entityIds={[ENTITY_ID]}\n schema={formSchema}\n submitLabel={t('agent_orchestrator.processDefinitions.form.submit')}\n cancelHref=\"/backend/processes/definitions\"\n disableOptimisticLock\n onSubmit={async (values) => {\n const body = buildBody(values)\n try {\n if (isEdit) {\n await withScopedApiRequestHeaders(\n buildOptimisticLockHeader(editing!.updatedAt),\n () => updateCrud('agent_orchestrator/processes', { id: editing!.id, ...body }),\n )\n } else {\n await createCrud('agent_orchestrator/processes', body)\n }\n } catch (err) {\n if (surfaceRecordConflict(err, t)) return\n throw err\n }\n flash(t('agent_orchestrator.processDefinitions.flash.saved'), 'success')\n setMode('list')\n setEditing(null)\n await load()\n }}\n />\n </div>\n </PageBody>\n </Page>\n )\n }\n\n if (isLoading) {\n return (\n <Page>\n <PageBody>\n <LoadingMessage label={t('agent_orchestrator.processDefinitions.list.title')} />\n </PageBody>\n </Page>\n )\n }\n\n if (error) {\n return (\n <Page>\n <PageBody>\n <ErrorMessage label={error} />\n </PageBody>\n </Page>\n )\n }\n\n return (\n <Page>\n <PageBody className=\"space-y-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <div>\n <h1 className=\"text-lg font-semibold\">{t('agent_orchestrator.processDefinitions.list.title')}</h1>\n <p className=\"text-sm text-muted-foreground\">{t('agent_orchestrator.processDefinitions.list.subtitle')}</p>\n </div>\n <Button size=\"sm\" onClick={() => { setEditing(null); setMode('create') }}>\n <Plus className=\"mr-2 size-4\" />\n {t('agent_orchestrator.processDefinitions.actions.new')}\n </Button>\n </div>\n\n {rows.length === 0 ? (\n <EmptyState\n title={t('agent_orchestrator.processDefinitions.list.empty')}\n description={t('agent_orchestrator.processDefinitions.list.emptyDescription')}\n />\n ) : (\n <DataTable<ProcessDefinitionRow>\n columns={columns}\n data={rows}\n sortable\n onRowClick={(row) => router.push(`/backend/processes/definitions/${encodeURIComponent(row.id)}`)}\n rowActions={(row) => (\n <RowActions\n items={[\n {\n id: 'open',\n label: t('agent_orchestrator.processDefinitions.list.actions.open'),\n onSelect: () => router.push(`/backend/processes/definitions/${encodeURIComponent(row.id)}`),\n },\n {\n id: 'edit',\n label: t('agent_orchestrator.processDefinitions.list.actions.edit'),\n onSelect: () => { setEditing(row); setMode('edit') },\n },\n {\n id: 'delete',\n label: t('agent_orchestrator.processDefinitions.list.actions.delete'),\n destructive: true,\n onSelect: async () => {\n const confirmed = await confirm({\n title: t('agent_orchestrator.processDefinitions.confirmDelete.title'),\n text: t('agent_orchestrator.processDefinitions.confirmDelete.text'),\n variant: 'destructive',\n })\n if (!confirmed) return\n try {\n await withScopedApiRequestHeaders(\n buildOptimisticLockHeader(row.updatedAt),\n () => deleteCrud('agent_orchestrator/processes', row.id),\n )\n flash(t('agent_orchestrator.processDefinitions.flash.deleted'), 'success')\n await load({ silent: true })\n } catch (err) {\n if (surfaceRecordConflict(err, t)) return\n flash(t('agent_orchestrator.processDefinitions.flash.deleteError'), 'error')\n }\n },\n },\n ]}\n />\n )}\n />\n )}\n {ConfirmDialogElement}\n </PageBody>\n </Page>\n )\n}\n"],
|
|
5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AK,kCAAkC,mBAAmB,IAAI,EAAE,CAAC,EAAE;AAAA,cAC5F;AAAA,cACA;AAAA,gBACE,IAAI;AAAA,gBACJ,OAAO,EAAE,yDAAyD;AAAA,gBAClE,UAAU,MAAM;AAAE,6BAAW,GAAG;AAAG,0BAAQ,MAAM;AAAA,gBAAE;AAAA,cACrD;AAAA,cACA;AAAA,gBACE,IAAI;AAAA,gBACJ,OAAO,EAAE,2DAA2D;AAAA,gBACpE,aAAa;AAAA,gBACb,UAAU,YAAY;AACpB,wBAAM,YAAY,MAAM,QAAQ;AAAA,oBAC9B,OAAO,EAAE,2DAA2D;AAAA,oBACpE,MAAM,EAAE,0DAA0D;AAAA,oBAClE,SAAS;AAAA,kBACX,CAAC;AACD,sBAAI,CAAC,UAAW;AAChB,sBAAI;AACF,0BAAM;AAAA,sBACJ,0BAA0B,IAAI,SAAS;AAAA,sBACvC,MAAM,WAAW,gCAAgC,IAAI,EAAE;AAAA,oBACzD;AACA,0BAAM,EAAE,qDAAqD,GAAG,SAAS;AACzE,0BAAM,KAAK,EAAE,QAAQ,KAAK,CAAC;AAAA,kBAC7B,SAAS,KAAK;AACZ,wBAAI,sBAAsB,KAAK,CAAC,EAAG;AACnC,0BAAM,EAAE,yDAAyD,GAAG,OAAO;AAAA,kBAC7E;AAAA,gBACF;AAAA,cACF;AAAA,YACF;AAAA;AAAA,QACF;AAAA;AAAA,IAEJ;AAAA,IAED;AAAA,KACH,GACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
const processDefinitionsIcon = React.createElement(
|
|
3
|
+
"svg",
|
|
4
|
+
{ width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2 },
|
|
5
|
+
React.createElement("path", { d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }),
|
|
6
|
+
React.createElement("path", { d: "m9 12 2 2 4-4" })
|
|
7
|
+
);
|
|
8
|
+
const metadata = {
|
|
9
|
+
requireAuth: true,
|
|
10
|
+
requireFeatures: ["agent_orchestrator.processes.view"],
|
|
11
|
+
pageTitle: "Process definitions",
|
|
12
|
+
pageTitleKey: "agent_orchestrator.nav.processDefinitions",
|
|
13
|
+
pageGroup: "Agents",
|
|
14
|
+
pageGroupKey: "agent_orchestrator.nav.group",
|
|
15
|
+
pagePriority: 40,
|
|
16
|
+
pageOrder: 120,
|
|
17
|
+
icon: processDefinitionsIcon,
|
|
18
|
+
breadcrumb: [{ label: "Process definitions", labelKey: "agent_orchestrator.nav.processDefinitions" }]
|
|
19
|
+
};
|
|
20
|
+
var page_meta_default = metadata;
|
|
21
|
+
export {
|
|
22
|
+
page_meta_default as default,
|
|
23
|
+
metadata
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=page.meta.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/modules/agent_orchestrator/backend/processes/definitions/page.meta.ts"],
|
|
4
|
+
"sourcesContent": ["import React from 'react'\n\nconst processDefinitionsIcon = React.createElement(\n 'svg',\n { width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },\n React.createElement('path', { d: 'M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z' }),\n React.createElement('path', { d: 'm9 12 2 2 4-4' }),\n)\n\nexport const metadata = {\n requireAuth: true,\n requireFeatures: ['agent_orchestrator.processes.view'],\n pageTitle: 'Process definitions',\n pageTitleKey: 'agent_orchestrator.nav.processDefinitions',\n pageGroup: 'Agents',\n pageGroupKey: 'agent_orchestrator.nav.group',\n pagePriority: 40,\n pageOrder: 120,\n icon: processDefinitionsIcon,\n breadcrumb: [{ label: 'Process definitions', labelKey: 'agent_orchestrator.nav.processDefinitions' }],\n}\n\nexport default metadata\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAElB,MAAM,yBAAyB,MAAM;AAAA,EACnC;AAAA,EACA,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,QAAQ,gBAAgB,aAAa,EAAE;AAAA,EACpG,MAAM,cAAc,QAAQ,EAAE,GAAG,4HAA4H,CAAC;AAAA,EAC9J,MAAM,cAAc,QAAQ,EAAE,GAAG,gBAAgB,CAAC;AACpD;AAEO,MAAM,WAAW;AAAA,EACtB,aAAa;AAAA,EACb,iBAAiB,CAAC,mCAAmC;AAAA,EACrD,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,uBAAuB,UAAU,4CAA4C,CAAC;AACtG;AAEA,IAAO,oBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useRouter } from "next/navigation";
|
|
5
|
+
import { Page, PageBody } from "@open-mercato/ui/backend/Page";
|
|
6
|
+
import { DataTable } from "@open-mercato/ui/backend/DataTable";
|
|
7
|
+
import { LoadingMessage, ErrorMessage } from "@open-mercato/ui/backend/detail";
|
|
8
|
+
import { Avatar } from "@open-mercato/ui/primitives/avatar";
|
|
9
|
+
import { agentAvatarIcon } from "../../components/agentChips.js";
|
|
10
|
+
import { useAgentIconMap } from "../../components/useAgentIcons.js";
|
|
11
|
+
import { StatusBadge } from "@open-mercato/ui/primitives/status-badge";
|
|
12
|
+
import { SearchInput } from "@open-mercato/ui/primitives/search-input";
|
|
13
|
+
import { apiCall } from "@open-mercato/ui/backend/utils/apiCall";
|
|
14
|
+
import { useAppEvent } from "@open-mercato/ui/backend/injection/useAppEvent";
|
|
15
|
+
import { cn } from "@open-mercato/shared/lib/utils";
|
|
16
|
+
import { useT } from "@open-mercato/shared/lib/i18n/context";
|
|
17
|
+
import { formatCostMinor, formatRelativeAge } from "../../components/types.js";
|
|
18
|
+
import { useCoalescedReload } from "../../components/useCoalescedReload.js";
|
|
19
|
+
import {
|
|
20
|
+
PROCESS_HEADER_SORT_FIELDS,
|
|
21
|
+
serverSortToSorting,
|
|
22
|
+
sortingToServerSort
|
|
23
|
+
} from "../../components/serverSort.js";
|
|
24
|
+
import {
|
|
25
|
+
mapProcessListRow,
|
|
26
|
+
PROCESS_STATUS_LABEL_KEY,
|
|
27
|
+
PROCESS_STATUS_TONE
|
|
28
|
+
} from "../../components/processTypes.js";
|
|
29
|
+
const FACET_SCOPE = {
|
|
30
|
+
needs_decision: "needs_decision",
|
|
31
|
+
stuck: "stuck_24h",
|
|
32
|
+
high_value: "high_value",
|
|
33
|
+
fraud: "fraud_flagged"
|
|
34
|
+
};
|
|
35
|
+
const FACETS = ["all", "needs_decision", "stuck", "high_value", "fraud"];
|
|
36
|
+
function listPath(facet, page, pageSize, q, sort) {
|
|
37
|
+
const params = new URLSearchParams({ page: String(page), pageSize: String(pageSize) });
|
|
38
|
+
if (facet !== "all") params.set("scope", FACET_SCOPE[facet]);
|
|
39
|
+
if (q) params.set("q", q);
|
|
40
|
+
if (sort) {
|
|
41
|
+
params.set("sortField", sort.field);
|
|
42
|
+
params.set("sortDir", sort.dir);
|
|
43
|
+
}
|
|
44
|
+
return `/api/agent_orchestrator/executions?${params.toString()}`;
|
|
45
|
+
}
|
|
46
|
+
function ProcessesListPage() {
|
|
47
|
+
const t = useT();
|
|
48
|
+
const router = useRouter();
|
|
49
|
+
const [facet, setFacet] = React.useState("all");
|
|
50
|
+
const [page, setPage] = React.useState(1);
|
|
51
|
+
const [pageSize, setPageSize] = React.useState(50);
|
|
52
|
+
const [rows, setRows] = React.useState([]);
|
|
53
|
+
const [total, setTotal] = React.useState(0);
|
|
54
|
+
const [totalIsCapped, setTotalIsCapped] = React.useState(false);
|
|
55
|
+
const [totalPages, setTotalPages] = React.useState(1);
|
|
56
|
+
const [facetCounts, setFacetCounts] = React.useState({});
|
|
57
|
+
const [isLoading, setIsLoading] = React.useState(true);
|
|
58
|
+
const [error, setError] = React.useState(null);
|
|
59
|
+
const [search, setSearch] = React.useState("");
|
|
60
|
+
const [q, setQ] = React.useState("");
|
|
61
|
+
const [sort, setSort] = React.useState(null);
|
|
62
|
+
React.useEffect(() => {
|
|
63
|
+
const handle = setTimeout(() => setQ(search.trim()), 300);
|
|
64
|
+
return () => clearTimeout(handle);
|
|
65
|
+
}, [search]);
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
setPage(1);
|
|
68
|
+
}, [q, sort]);
|
|
69
|
+
const reload = React.useCallback(async () => {
|
|
70
|
+
setError(null);
|
|
71
|
+
const [listCall, ...countCalls] = await Promise.all([
|
|
72
|
+
apiCall(listPath(facet, page, pageSize, q, sort), void 0, { fallback: {} }),
|
|
73
|
+
// Facet counts share the search filter so the tab badges always describe
|
|
74
|
+
// the same result set the table shows.
|
|
75
|
+
...FACETS.map(
|
|
76
|
+
(tab) => apiCall(listPath(tab, 1, 1, q, null), void 0, { fallback: {} })
|
|
77
|
+
)
|
|
78
|
+
]);
|
|
79
|
+
if (!listCall.ok) {
|
|
80
|
+
setError(t("agent_orchestrator.process.list.error"));
|
|
81
|
+
setIsLoading(false);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const items = Array.isArray(listCall.result?.items) ? listCall.result.items : [];
|
|
85
|
+
setRows(items.map(mapProcessListRow).filter((row) => !!row));
|
|
86
|
+
setTotal(typeof listCall.result?.total === "number" ? listCall.result.total : items.length);
|
|
87
|
+
setTotalIsCapped(listCall.result?.totalIsCapped === true);
|
|
88
|
+
setTotalPages(typeof listCall.result?.totalPages === "number" ? listCall.result.totalPages : 1);
|
|
89
|
+
const counts = {};
|
|
90
|
+
FACETS.forEach((tab, index) => {
|
|
91
|
+
const call = countCalls[index];
|
|
92
|
+
if (call?.ok && typeof call.result?.total === "number") counts[tab] = call.result.total;
|
|
93
|
+
});
|
|
94
|
+
setFacetCounts(counts);
|
|
95
|
+
setIsLoading(false);
|
|
96
|
+
}, [facet, page, pageSize, q, sort, t]);
|
|
97
|
+
React.useEffect(() => {
|
|
98
|
+
setIsLoading(true);
|
|
99
|
+
void reload();
|
|
100
|
+
}, [reload]);
|
|
101
|
+
const coalescedReload = useCoalescedReload(reload);
|
|
102
|
+
useAppEvent("agent_orchestrator.process.updated", () => {
|
|
103
|
+
coalescedReload();
|
|
104
|
+
});
|
|
105
|
+
const agentIcons = useAgentIconMap();
|
|
106
|
+
const columns = React.useMemo(
|
|
107
|
+
() => [
|
|
108
|
+
{
|
|
109
|
+
accessorKey: "subjectLabel",
|
|
110
|
+
header: t("agent_orchestrator.process.list.col.claim"),
|
|
111
|
+
// No entry in the route's sortFieldMap — a header sort would only
|
|
112
|
+
// reorder the visible page, which the audit flagged as a lying sort.
|
|
113
|
+
enableSorting: false,
|
|
114
|
+
cell: ({ row }) => /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
115
|
+
/* @__PURE__ */ jsx("div", { className: "font-mono text-sm font-medium text-foreground", children: row.original.subjectLabel }),
|
|
116
|
+
/* @__PURE__ */ jsx("div", { className: "truncate text-xs text-muted-foreground", children: row.original.subjectTitle })
|
|
117
|
+
] })
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
accessorKey: "subjectType",
|
|
121
|
+
header: t("agent_orchestrator.process.list.col.type"),
|
|
122
|
+
enableSorting: false,
|
|
123
|
+
cell: ({ row }) => /* @__PURE__ */ jsx("span", { className: "text-sm text-foreground", children: row.original.subjectType })
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
accessorKey: "currentStage",
|
|
127
|
+
header: t("agent_orchestrator.process.list.col.stage"),
|
|
128
|
+
enableSorting: false,
|
|
129
|
+
cell: ({ row }) => /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: row.original.currentStage })
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
accessorKey: "agentIds",
|
|
133
|
+
header: t("agent_orchestrator.process.list.col.agents"),
|
|
134
|
+
enableSorting: false,
|
|
135
|
+
cell: ({ row }) => /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1", children: [
|
|
136
|
+
row.original.agentIds.slice(0, 4).map((agent) => {
|
|
137
|
+
const info = agentIcons.get(agent);
|
|
138
|
+
return /* @__PURE__ */ jsx(Avatar, { label: agent, size: "sm", variant: "monochrome", icon: agentAvatarIcon(info?.icon ?? null, info?.resultKind) }, agent);
|
|
139
|
+
}),
|
|
140
|
+
row.original.agentIds.length > 4 ? /* @__PURE__ */ jsxs("span", { className: "text-xs font-medium text-muted-foreground", children: [
|
|
141
|
+
"+",
|
|
142
|
+
row.original.agentIds.length - 4
|
|
143
|
+
] }) : null
|
|
144
|
+
] })
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
accessorKey: "status",
|
|
148
|
+
header: t("agent_orchestrator.process.list.col.status"),
|
|
149
|
+
cell: ({ row }) => /* @__PURE__ */ jsx(StatusBadge, { variant: PROCESS_STATUS_TONE[row.original.status], dot: true, children: t(PROCESS_STATUS_LABEL_KEY[row.original.status]) })
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
accessorKey: "openedAt",
|
|
153
|
+
header: t("agent_orchestrator.process.list.col.age"),
|
|
154
|
+
cell: ({ row }) => /* @__PURE__ */ jsx("span", { className: "text-sm tabular-nums text-muted-foreground", children: formatRelativeAge(row.original.openedAt) ?? "\u2014" })
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
accessorKey: "costMinor",
|
|
158
|
+
header: t("agent_orchestrator.process.list.col.cost"),
|
|
159
|
+
cell: ({ row }) => /* @__PURE__ */ jsx("span", { className: "text-sm tabular-nums text-muted-foreground", children: formatCostMinor(row.original.costMinor, row.original.currency) ?? "\u2014" })
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
[t, agentIcons]
|
|
163
|
+
);
|
|
164
|
+
return /* @__PURE__ */ jsx(Page, { children: /* @__PURE__ */ jsxs(PageBody, { className: "space-y-4", children: [
|
|
165
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
166
|
+
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold", children: t("agent_orchestrator.process.list.title") }),
|
|
167
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.process.list.subtitle") })
|
|
168
|
+
] }),
|
|
169
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
170
|
+
/* @__PURE__ */ jsx("div", { className: "w-full sm:w-72 lg:w-80", children: /* @__PURE__ */ jsx(
|
|
171
|
+
SearchInput,
|
|
172
|
+
{
|
|
173
|
+
value: search,
|
|
174
|
+
onChange: setSearch,
|
|
175
|
+
placeholder: t("agent_orchestrator.process.list.searchPlaceholder")
|
|
176
|
+
}
|
|
177
|
+
) }),
|
|
178
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: t("agent_orchestrator.process.list.searchHint") })
|
|
179
|
+
] }),
|
|
180
|
+
/* @__PURE__ */ jsx("div", { role: "tablist", className: "flex flex-nowrap items-center gap-4 overflow-x-auto border-b border-border", children: FACETS.map((tab) => {
|
|
181
|
+
const active = facet === tab;
|
|
182
|
+
const label = t(`agent_orchestrator.process.facet.${tab === "all" ? "all" : tab === "needs_decision" ? "needsDecision" : tab === "stuck" ? "stuck" : tab === "high_value" ? "highValue" : "fraud"}`);
|
|
183
|
+
return /* @__PURE__ */ jsxs(
|
|
184
|
+
"button",
|
|
185
|
+
{
|
|
186
|
+
type: "button",
|
|
187
|
+
role: "tab",
|
|
188
|
+
"aria-selected": active,
|
|
189
|
+
onClick: () => {
|
|
190
|
+
setFacet(tab);
|
|
191
|
+
setPage(1);
|
|
192
|
+
},
|
|
193
|
+
className: cn(
|
|
194
|
+
"-mb-px flex shrink-0 items-center gap-1.5 whitespace-nowrap border-b-2 py-2.5 text-sm transition-colors",
|
|
195
|
+
active ? "border-brand-violet font-semibold text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
196
|
+
),
|
|
197
|
+
children: [
|
|
198
|
+
label,
|
|
199
|
+
/* @__PURE__ */ jsx(
|
|
200
|
+
"span",
|
|
201
|
+
{
|
|
202
|
+
className: cn(
|
|
203
|
+
"inline-flex min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-medium tabular-nums",
|
|
204
|
+
active ? "bg-brand-violet/10 text-brand-violet" : "bg-muted text-muted-foreground"
|
|
205
|
+
),
|
|
206
|
+
children: facetCounts[tab] ?? "\u2014"
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
tab
|
|
212
|
+
);
|
|
213
|
+
}) }),
|
|
214
|
+
isLoading ? /* @__PURE__ */ jsx(LoadingMessage, { label: t("agent_orchestrator.process.list.title") }) : error ? /* @__PURE__ */ jsx(ErrorMessage, { label: error }) : rows.length === 0 ? /* @__PURE__ */ jsx("p", { className: "py-10 text-center text-sm text-muted-foreground", children: q ? t("agent_orchestrator.process.list.searchEmpty") : facet !== "all" ? t("agent_orchestrator.process.list.facetEmpty") : t("agent_orchestrator.process.list.empty") }) : /* @__PURE__ */ jsx(
|
|
215
|
+
DataTable,
|
|
216
|
+
{
|
|
217
|
+
columns,
|
|
218
|
+
data: rows,
|
|
219
|
+
sortable: true,
|
|
220
|
+
manualSorting: true,
|
|
221
|
+
sorting: serverSortToSorting(sort, PROCESS_HEADER_SORT_FIELDS),
|
|
222
|
+
onSortingChange: (next) => setSort(sortingToServerSort(next, PROCESS_HEADER_SORT_FIELDS)),
|
|
223
|
+
onRowClick: (row) => router.push(`/backend/processes/${encodeURIComponent(row.id)}`),
|
|
224
|
+
pagination: {
|
|
225
|
+
page,
|
|
226
|
+
pageSize,
|
|
227
|
+
total,
|
|
228
|
+
totalPages,
|
|
229
|
+
totalIsCapped,
|
|
230
|
+
onPageChange: setPage,
|
|
231
|
+
pageSizeOptions: [20, 50, 100],
|
|
232
|
+
onPageSizeChange: (next) => {
|
|
233
|
+
setPageSize(next);
|
|
234
|
+
setPage(1);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
] }) });
|
|
240
|
+
}
|
|
241
|
+
export {
|
|
242
|
+
ProcessesListPage as default
|
|
243
|
+
};
|
|
244
|
+
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/modules/agent_orchestrator/backend/processes/page.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\"\n\nimport * as React from 'react'\nimport { useRouter } from 'next/navigation'\nimport type { LegacyColumnDef as ColumnDef } from '@tanstack/react-table/legacy'\nimport type { SortingState } from '@tanstack/react-table'\nimport { Page, PageBody } from '@open-mercato/ui/backend/Page'\nimport { DataTable } from '@open-mercato/ui/backend/DataTable'\nimport { LoadingMessage, ErrorMessage } from '@open-mercato/ui/backend/detail'\nimport { Avatar } from '@open-mercato/ui/primitives/avatar'\nimport { agentAvatarIcon } from '../../components/agentChips'\nimport { useAgentIconMap } from '../../components/useAgentIcons'\nimport { StatusBadge } from '@open-mercato/ui/primitives/status-badge'\nimport { SearchInput } from '@open-mercato/ui/primitives/search-input'\nimport { apiCall } from '@open-mercato/ui/backend/utils/apiCall'\nimport { useAppEvent } from '@open-mercato/ui/backend/injection/useAppEvent'\nimport { cn } from '@open-mercato/shared/lib/utils'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\nimport { formatCostMinor, formatRelativeAge } from '../../components/types'\nimport { useCoalescedReload } from '../../components/useCoalescedReload'\nimport {\n PROCESS_HEADER_SORT_FIELDS,\n serverSortToSorting,\n sortingToServerSort,\n type ServerSort,\n} from '../../components/serverSort'\nimport {\n mapProcessListRow,\n PROCESS_STATUS_LABEL_KEY,\n PROCESS_STATUS_TONE,\n type ProcessListRow,\n} from '../../components/processTypes'\n\ntype Facet = 'all' | 'needs_decision' | 'stuck' | 'high_value' | 'fraud'\n\n/** Facet tab \u2192 server-side list scope (spec 2026-06-25 \u00A7API Contracts). */\nconst FACET_SCOPE: Record<Exclude<Facet, 'all'>, string> = {\n needs_decision: 'needs_decision',\n stuck: 'stuck_24h',\n high_value: 'high_value',\n fraud: 'fraud_flagged',\n}\n\nconst FACETS: Facet[] = ['all', 'needs_decision', 'stuck', 'high_value', 'fraud']\n\ntype ListResponse = {\n items?: Array<Record<string, unknown>>\n total?: number\n totalPages?: number\n totalIsCapped?: boolean\n}\n\nfunction listPath(\n facet: Facet,\n page: number,\n pageSize: number,\n q: string,\n sort: ServerSort | null,\n): string {\n const params = new URLSearchParams({ page: String(page), pageSize: String(pageSize) })\n if (facet !== 'all') params.set('scope', FACET_SCOPE[facet])\n if (q) params.set('q', q)\n if (sort) {\n params.set('sortField', sort.field)\n params.set('sortDir', sort.dir)\n }\n return `/api/agent_orchestrator/executions?${params.toString()}`\n}\n\nexport default function ProcessesListPage() {\n const t = useT()\n const router = useRouter()\n const [facet, setFacet] = React.useState<Facet>('all')\n const [page, setPage] = React.useState(1)\n const [pageSize, setPageSize] = React.useState(50)\n const [rows, setRows] = React.useState<ProcessListRow[]>([])\n const [total, setTotal] = React.useState(0)\n const [totalIsCapped, setTotalIsCapped] = React.useState(false)\n const [totalPages, setTotalPages] = React.useState(1)\n const [facetCounts, setFacetCounts] = React.useState<Partial<Record<Facet, number>>>({})\n const [isLoading, setIsLoading] = React.useState(true)\n const [error, setError] = React.useState<string | null>(null)\n const [search, setSearch] = React.useState('')\n // Debounced 300 ms before hitting the server `q` (subject reference, or the\n // process id the identifier column shows when there is no subject).\n const [q, setQ] = React.useState('')\n // Header sort \u2192 server sortField/sortDir; null = the route's default order.\n const [sort, setSort] = React.useState<ServerSort | null>(null)\n\n React.useEffect(() => {\n const handle = setTimeout(() => setQ(search.trim()), 300)\n return () => clearTimeout(handle)\n }, [search])\n\n React.useEffect(() => { setPage(1) }, [q, sort])\n\n const reload = React.useCallback(async () => {\n setError(null)\n const [listCall, ...countCalls] = await Promise.all([\n apiCall<ListResponse>(listPath(facet, page, pageSize, q, sort), undefined, { fallback: {} }),\n // Facet counts share the search filter so the tab badges always describe\n // the same result set the table shows.\n ...FACETS.map((tab) =>\n apiCall<ListResponse>(listPath(tab, 1, 1, q, null), undefined, { fallback: {} }),\n ),\n ])\n if (!listCall.ok) {\n setError(t('agent_orchestrator.process.list.error'))\n setIsLoading(false)\n return\n }\n const items = Array.isArray(listCall.result?.items) ? listCall.result.items : []\n setRows(items.map(mapProcessListRow).filter((row): row is ProcessListRow => !!row))\n setTotal(typeof listCall.result?.total === 'number' ? listCall.result.total : items.length)\n setTotalIsCapped(listCall.result?.totalIsCapped === true)\n setTotalPages(typeof listCall.result?.totalPages === 'number' ? listCall.result.totalPages : 1)\n const counts: Partial<Record<Facet, number>> = {}\n FACETS.forEach((tab, index) => {\n const call = countCalls[index]\n if (call?.ok && typeof call.result?.total === 'number') counts[tab] = call.result.total\n })\n setFacetCounts(counts)\n setIsLoading(false)\n }, [facet, page, pageSize, q, sort, t])\n\n React.useEffect(() => {\n setIsLoading(true)\n void reload()\n }, [reload])\n\n const coalescedReload = useCoalescedReload(reload)\n useAppEvent('agent_orchestrator.process.updated', () => {\n coalescedReload()\n })\n\n const agentIcons = useAgentIconMap()\n\n const columns = React.useMemo<ColumnDef<ProcessListRow>[]>(\n () => [\n {\n accessorKey: 'subjectLabel',\n header: t('agent_orchestrator.process.list.col.claim'),\n // No entry in the route's sortFieldMap \u2014 a header sort would only\n // reorder the visible page, which the audit flagged as a lying sort.\n enableSorting: false,\n cell: ({ row }) => (\n <div className=\"min-w-0\">\n <div className=\"font-mono text-sm font-medium text-foreground\">{row.original.subjectLabel}</div>\n <div className=\"truncate text-xs text-muted-foreground\">{row.original.subjectTitle}</div>\n </div>\n ),\n },\n {\n accessorKey: 'subjectType',\n header: t('agent_orchestrator.process.list.col.type'),\n enableSorting: false,\n cell: ({ row }) => <span className=\"text-sm text-foreground\">{row.original.subjectType}</span>,\n },\n {\n accessorKey: 'currentStage',\n header: t('agent_orchestrator.process.list.col.stage'),\n enableSorting: false,\n cell: ({ row }) => <span className=\"text-sm text-muted-foreground\">{row.original.currentStage}</span>,\n },\n {\n accessorKey: 'agentIds',\n header: t('agent_orchestrator.process.list.col.agents'),\n enableSorting: false,\n cell: ({ row }) => (\n <div className=\"flex flex-wrap items-center gap-1\">\n {row.original.agentIds.slice(0, 4).map((agent) => {\n const info = agentIcons.get(agent)\n return (\n <Avatar key={agent} label={agent} size=\"sm\" variant=\"monochrome\" icon={agentAvatarIcon(info?.icon ?? null, info?.resultKind)} />\n )\n })}\n {row.original.agentIds.length > 4 ? (\n <span className=\"text-xs font-medium text-muted-foreground\">\n +{row.original.agentIds.length - 4}\n </span>\n ) : null}\n </div>\n ),\n },\n {\n accessorKey: 'status',\n header: t('agent_orchestrator.process.list.col.status'),\n cell: ({ row }) => (\n <StatusBadge variant={PROCESS_STATUS_TONE[row.original.status]} dot>\n {t(PROCESS_STATUS_LABEL_KEY[row.original.status])}\n </StatusBadge>\n ),\n },\n {\n accessorKey: 'openedAt',\n header: t('agent_orchestrator.process.list.col.age'),\n cell: ({ row }) => (\n <span className=\"text-sm tabular-nums text-muted-foreground\">{formatRelativeAge(row.original.openedAt) ?? '\u2014'}</span>\n ),\n },\n {\n accessorKey: 'costMinor',\n header: t('agent_orchestrator.process.list.col.cost'),\n cell: ({ row }) => (\n <span className=\"text-sm tabular-nums text-muted-foreground\">\n {formatCostMinor(row.original.costMinor, row.original.currency) ?? '\u2014'}\n </span>\n ),\n },\n ],\n [t, agentIcons],\n )\n\n return (\n <Page>\n <PageBody className=\"space-y-4\">\n <div>\n <h1 className=\"text-lg font-semibold\">{t('agent_orchestrator.process.list.title')}</h1>\n <p className=\"text-sm text-muted-foreground\">{t('agent_orchestrator.process.list.subtitle')}</p>\n </div>\n\n <div className=\"flex flex-wrap items-center gap-2\">\n <div className=\"w-full sm:w-72 lg:w-80\">\n <SearchInput\n value={search}\n onChange={setSearch}\n placeholder={t('agent_orchestrator.process.list.searchPlaceholder')}\n />\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t('agent_orchestrator.process.list.searchHint')}\n </p>\n </div>\n\n <div role=\"tablist\" className=\"flex flex-nowrap items-center gap-4 overflow-x-auto border-b border-border\">\n {FACETS.map((tab) => {\n const active = facet === tab\n const label = t(`agent_orchestrator.process.facet.${\n tab === 'all' ? 'all'\n : tab === 'needs_decision' ? 'needsDecision'\n : tab === 'stuck' ? 'stuck'\n : tab === 'high_value' ? 'highValue'\n : 'fraud'\n }`)\n return (\n <button\n key={tab}\n type=\"button\"\n role=\"tab\"\n aria-selected={active}\n onClick={() => {\n setFacet(tab)\n setPage(1)\n }}\n className={cn(\n '-mb-px flex shrink-0 items-center gap-1.5 whitespace-nowrap border-b-2 py-2.5 text-sm transition-colors',\n active\n ? 'border-brand-violet font-semibold text-foreground'\n : 'border-transparent text-muted-foreground hover:text-foreground',\n )}\n >\n {label}\n <span\n className={cn(\n 'inline-flex min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-medium tabular-nums',\n active ? 'bg-brand-violet/10 text-brand-violet' : 'bg-muted text-muted-foreground',\n )}\n >\n {facetCounts[tab] ?? '\u2014'}\n </span>\n </button>\n )\n })}\n </div>\n\n {isLoading ? (\n <LoadingMessage label={t('agent_orchestrator.process.list.title')} />\n ) : error ? (\n <ErrorMessage label={error} />\n ) : rows.length === 0 ? (\n <p className=\"py-10 text-center text-sm text-muted-foreground\">\n {q\n ? t('agent_orchestrator.process.list.searchEmpty')\n : facet !== 'all'\n ? t('agent_orchestrator.process.list.facetEmpty')\n : t('agent_orchestrator.process.list.empty')}\n </p>\n ) : (\n <DataTable<ProcessListRow>\n columns={columns}\n data={rows}\n sortable\n manualSorting\n sorting={serverSortToSorting(sort, PROCESS_HEADER_SORT_FIELDS)}\n onSortingChange={(next: SortingState) =>\n setSort(sortingToServerSort(next, PROCESS_HEADER_SORT_FIELDS))\n }\n onRowClick={(row) => router.push(`/backend/processes/${encodeURIComponent(row.id)}`)}\n pagination={{\n page,\n pageSize,\n total,\n totalPages,\n totalIsCapped,\n onPageChange: setPage,\n pageSizeOptions: [20, 50, 100],\n onPageSizeChange: (next) => {\n setPageSize(next)\n setPage(1)\n },\n }}\n />\n )}\n </PageBody>\n </Page>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAkJU,SACE,KADF;AAhJV,YAAY,WAAW;AACvB,SAAS,iBAAiB;AAG1B,SAAS,MAAM,gBAAgB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB,oBAAoB;AAC7C,SAAS,cAAc;AACvB,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,UAAU;AACnB,SAAS,YAAY;AACrB,SAAS,iBAAiB,yBAAyB;AACnD,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAKP,MAAM,cAAqD;AAAA,EACzD,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,OAAO;AACT;AAEA,MAAM,SAAkB,CAAC,OAAO,kBAAkB,SAAS,cAAc,OAAO;AAShF,SAAS,SACP,OACA,MACA,UACA,GACA,MACQ;AACR,QAAM,SAAS,IAAI,gBAAgB,EAAE,MAAM,OAAO,IAAI,GAAG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AAI,EAAE,CAAC,EAAE;AAAA,QACnF,YAAY;AAAA,UACV;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,cAAc;AAAA,UACd,iBAAiB,CAAC,IAAI,IAAI,GAAG;AAAA,UAC7B,kBAAkB,CAAC,SAAS;AAC1B,wBAAY,IAAI;AAChB,oBAAQ,CAAC;AAAA,UACX;AAAA,QACF;AAAA;AAAA,IACF;AAAA,KAEJ,GACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
const processesIcon = React.createElement(
|
|
3
|
+
"svg",
|
|
4
|
+
{ width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" },
|
|
5
|
+
React.createElement("circle", { cx: 5, cy: 6, r: 2 }),
|
|
6
|
+
React.createElement("circle", { cx: 5, cy: 18, r: 2 }),
|
|
7
|
+
React.createElement("path", { d: "M5 8v8" }),
|
|
8
|
+
React.createElement("path", { d: "M11 6h7" }),
|
|
9
|
+
React.createElement("path", { d: "M11 12h7" }),
|
|
10
|
+
React.createElement("path", { d: "M11 18h7" })
|
|
11
|
+
);
|
|
12
|
+
const metadata = {
|
|
13
|
+
requireAuth: true,
|
|
14
|
+
requireFeatures: ["agent_orchestrator.processes.view"],
|
|
15
|
+
pageTitle: "Processes",
|
|
16
|
+
pageTitleKey: "agent_orchestrator.nav.processes",
|
|
17
|
+
pageGroup: "Agents",
|
|
18
|
+
pageGroupKey: "agent_orchestrator.nav.group",
|
|
19
|
+
pagePriority: 50,
|
|
20
|
+
pageOrder: 130,
|
|
21
|
+
icon: processesIcon,
|
|
22
|
+
breadcrumb: [{ label: "Processes", labelKey: "agent_orchestrator.nav.processes" }]
|
|
23
|
+
};
|
|
24
|
+
var page_meta_default = metadata;
|
|
25
|
+
export {
|
|
26
|
+
page_meta_default as default,
|
|
27
|
+
metadata
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=page.meta.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/modules/agent_orchestrator/backend/processes/page.meta.ts"],
|
|
4
|
+
"sourcesContent": ["import React from 'react'\n\nconst processesIcon = React.createElement(\n 'svg',\n { width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2, strokeLinecap: 'round', strokeLinejoin: 'round' },\n React.createElement('circle', { cx: 5, cy: 6, r: 2 }),\n React.createElement('circle', { cx: 5, cy: 18, r: 2 }),\n React.createElement('path', { d: 'M5 8v8' }),\n React.createElement('path', { d: 'M11 6h7' }),\n React.createElement('path', { d: 'M11 12h7' }),\n React.createElement('path', { d: 'M11 18h7' }),\n)\n\nexport const metadata = {\n requireAuth: true,\n requireFeatures: ['agent_orchestrator.processes.view'],\n pageTitle: 'Processes',\n pageTitleKey: 'agent_orchestrator.nav.processes',\n pageGroup: 'Agents',\n pageGroupKey: 'agent_orchestrator.nav.group',\n pagePriority: 50,\n pageOrder: 130,\n icon: processesIcon,\n breadcrumb: [{ label: 'Processes', labelKey: 'agent_orchestrator.nav.processes' }],\n}\n\nexport default metadata\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAElB,MAAM,gBAAgB,MAAM;AAAA,EAC1B;AAAA,EACA,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,QAAQ,gBAAgB,aAAa,GAAG,eAAe,SAAS,gBAAgB,QAAQ;AAAA,EACrJ,MAAM,cAAc,UAAU,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC;AAAA,EACpD,MAAM,cAAc,UAAU,EAAE,IAAI,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;AAAA,EACrD,MAAM,cAAc,QAAQ,EAAE,GAAG,SAAS,CAAC;AAAA,EAC3C,MAAM,cAAc,QAAQ,EAAE,GAAG,UAAU,CAAC;AAAA,EAC5C,MAAM,cAAc,QAAQ,EAAE,GAAG,WAAW,CAAC;AAAA,EAC7C,MAAM,cAAc,QAAQ,EAAE,GAAG,WAAW,CAAC;AAC/C;AAEO,MAAM,WAAW;AAAA,EACtB,aAAa;AAAA,EACb,iBAAiB,CAAC,mCAAmC;AAAA,EACrD,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,aAAa,UAAU,mCAAmC,CAAC;AACnF;AAEA,IAAO,oBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|