@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.
Files changed (962) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/README.md +1 -0
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +2 -2
  5. package/dist/modules/agent_orchestrator/acl.js +132 -0
  6. package/dist/modules/agent_orchestrator/acl.js.map +7 -0
  7. package/dist/modules/agent_orchestrator/ai-agents.js +57 -0
  8. package/dist/modules/agent_orchestrator/ai-agents.js.map +7 -0
  9. package/dist/modules/agent_orchestrator/ai-skills.js +48 -0
  10. package/dist/modules/agent_orchestrator/ai-skills.js.map +7 -0
  11. package/dist/modules/agent_orchestrator/ai-tools.js +254 -0
  12. package/dist/modules/agent_orchestrator/ai-tools.js.map +7 -0
  13. package/dist/modules/agent_orchestrator/api/agents/[id]/files/route.js +69 -0
  14. package/dist/modules/agent_orchestrator/api/agents/[id]/files/route.js.map +7 -0
  15. package/dist/modules/agent_orchestrator/api/agents/[id]/metrics/route.js +81 -0
  16. package/dist/modules/agent_orchestrator/api/agents/[id]/metrics/route.js.map +7 -0
  17. package/dist/modules/agent_orchestrator/api/agents/[id]/route.js +154 -0
  18. package/dist/modules/agent_orchestrator/api/agents/[id]/route.js.map +7 -0
  19. package/dist/modules/agent_orchestrator/api/agents/[id]/run/route.js +250 -0
  20. package/dist/modules/agent_orchestrator/api/agents/[id]/run/route.js.map +7 -0
  21. package/dist/modules/agent_orchestrator/api/agents/[id]/settings/route.js +105 -0
  22. package/dist/modules/agent_orchestrator/api/agents/[id]/settings/route.js.map +7 -0
  23. package/dist/modules/agent_orchestrator/api/agents/route.js +114 -0
  24. package/dist/modules/agent_orchestrator/api/agents/route.js.map +7 -0
  25. package/dist/modules/agent_orchestrator/api/artifacts/file/[id]/route.js +64 -0
  26. package/dist/modules/agent_orchestrator/api/artifacts/file/[id]/route.js.map +7 -0
  27. package/dist/modules/agent_orchestrator/api/audit/by-instigator/[humanUserId]/route.js +105 -0
  28. package/dist/modules/agent_orchestrator/api/audit/by-instigator/[humanUserId]/route.js.map +7 -0
  29. package/dist/modules/agent_orchestrator/api/auto-approval/settings/route.js +110 -0
  30. package/dist/modules/agent_orchestrator/api/auto-approval/settings/route.js.map +7 -0
  31. package/dist/modules/agent_orchestrator/api/context-bundles/route.js +88 -0
  32. package/dist/modules/agent_orchestrator/api/context-bundles/route.js.map +7 -0
  33. package/dist/modules/agent_orchestrator/api/corrections/route.js +101 -0
  34. package/dist/modules/agent_orchestrator/api/corrections/route.js.map +7 -0
  35. package/dist/modules/agent_orchestrator/api/eval-assertions/preview/route.js +98 -0
  36. package/dist/modules/agent_orchestrator/api/eval-assertions/preview/route.js.map +7 -0
  37. package/dist/modules/agent_orchestrator/api/eval-assertions/route.js +196 -0
  38. package/dist/modules/agent_orchestrator/api/eval-assertions/route.js.map +7 -0
  39. package/dist/modules/agent_orchestrator/api/eval-cases/[id]/approve/route.js +86 -0
  40. package/dist/modules/agent_orchestrator/api/eval-cases/[id]/approve/route.js.map +7 -0
  41. package/dist/modules/agent_orchestrator/api/eval-cases/[id]/archive/route.js +85 -0
  42. package/dist/modules/agent_orchestrator/api/eval-cases/[id]/archive/route.js.map +7 -0
  43. package/dist/modules/agent_orchestrator/api/eval-cases/[id]/route.js +67 -0
  44. package/dist/modules/agent_orchestrator/api/eval-cases/[id]/route.js.map +7 -0
  45. package/dist/modules/agent_orchestrator/api/eval-cases/export/route.js +78 -0
  46. package/dist/modules/agent_orchestrator/api/eval-cases/export/route.js.map +7 -0
  47. package/dist/modules/agent_orchestrator/api/eval-cases/route.js +140 -0
  48. package/dist/modules/agent_orchestrator/api/eval-cases/route.js.map +7 -0
  49. package/dist/modules/agent_orchestrator/api/eval-runs/[id]/cancel/route.js +67 -0
  50. package/dist/modules/agent_orchestrator/api/eval-runs/[id]/cancel/route.js.map +7 -0
  51. package/dist/modules/agent_orchestrator/api/eval-runs/[id]/case-runs/[caseRunId]/results/route.js +66 -0
  52. package/dist/modules/agent_orchestrator/api/eval-runs/[id]/case-runs/[caseRunId]/results/route.js.map +7 -0
  53. package/dist/modules/agent_orchestrator/api/eval-runs/[id]/route.js +111 -0
  54. package/dist/modules/agent_orchestrator/api/eval-runs/[id]/route.js.map +7 -0
  55. package/dist/modules/agent_orchestrator/api/eval-runs/route.js +157 -0
  56. package/dist/modules/agent_orchestrator/api/eval-runs/route.js.map +7 -0
  57. package/dist/modules/agent_orchestrator/api/eval-scorers/route.js +34 -0
  58. package/dist/modules/agent_orchestrator/api/eval-scorers/route.js.map +7 -0
  59. package/dist/modules/agent_orchestrator/api/executions/[id]/route.js +72 -0
  60. package/dist/modules/agent_orchestrator/api/executions/[id]/route.js.map +7 -0
  61. package/dist/modules/agent_orchestrator/api/executions/route.js +185 -0
  62. package/dist/modules/agent_orchestrator/api/executions/route.js.map +7 -0
  63. package/dist/modules/agent_orchestrator/api/features/route.js +61 -0
  64. package/dist/modules/agent_orchestrator/api/features/route.js.map +7 -0
  65. package/dist/modules/agent_orchestrator/api/guardrail-checks/route.js +85 -0
  66. package/dist/modules/agent_orchestrator/api/guardrail-checks/route.js.map +7 -0
  67. package/dist/modules/agent_orchestrator/api/identity/agent/auth/route.js +95 -0
  68. package/dist/modules/agent_orchestrator/api/identity/agent/auth/route.js.map +7 -0
  69. package/dist/modules/agent_orchestrator/api/identity/grants/[id]/revoke/route.js +109 -0
  70. package/dist/modules/agent_orchestrator/api/identity/grants/[id]/revoke/route.js.map +7 -0
  71. package/dist/modules/agent_orchestrator/api/identity/token/route.js +80 -0
  72. package/dist/modules/agent_orchestrator/api/identity/token/route.js.map +7 -0
  73. package/dist/modules/agent_orchestrator/api/identity/well-known/route.js +44 -0
  74. package/dist/modules/agent_orchestrator/api/identity/well-known/route.js.map +7 -0
  75. package/dist/modules/agent_orchestrator/api/metrics/agents/route.js +122 -0
  76. package/dist/modules/agent_orchestrator/api/metrics/agents/route.js.map +7 -0
  77. package/dist/modules/agent_orchestrator/api/metrics/overview/route.js +165 -0
  78. package/dist/modules/agent_orchestrator/api/metrics/overview/route.js.map +7 -0
  79. package/dist/modules/agent_orchestrator/api/openapi.js +29 -0
  80. package/dist/modules/agent_orchestrator/api/openapi.js.map +7 -0
  81. package/dist/modules/agent_orchestrator/api/processes/[id]/executions/route.js +160 -0
  82. package/dist/modules/agent_orchestrator/api/processes/[id]/executions/route.js.map +7 -0
  83. package/dist/modules/agent_orchestrator/api/processes/[id]/route.js +53 -0
  84. package/dist/modules/agent_orchestrator/api/processes/[id]/route.js.map +7 -0
  85. package/dist/modules/agent_orchestrator/api/processes/route.js +357 -0
  86. package/dist/modules/agent_orchestrator/api/processes/route.js.map +7 -0
  87. package/dist/modules/agent_orchestrator/api/proposals/[id]/dispose/route.js +111 -0
  88. package/dist/modules/agent_orchestrator/api/proposals/[id]/dispose/route.js.map +7 -0
  89. package/dist/modules/agent_orchestrator/api/proposals/route.js +98 -0
  90. package/dist/modules/agent_orchestrator/api/proposals/route.js.map +7 -0
  91. package/dist/modules/agent_orchestrator/api/runs/[id]/artifact/route.js +71 -0
  92. package/dist/modules/agent_orchestrator/api/runs/[id]/artifact/route.js.map +7 -0
  93. package/dist/modules/agent_orchestrator/api/runs/[id]/artifacts/route.js +66 -0
  94. package/dist/modules/agent_orchestrator/api/runs/[id]/artifacts/route.js.map +7 -0
  95. package/dist/modules/agent_orchestrator/api/runs/[id]/eval-case/route.js +73 -0
  96. package/dist/modules/agent_orchestrator/api/runs/[id]/eval-case/route.js.map +7 -0
  97. package/dist/modules/agent_orchestrator/api/runs/[id]/flag/route.js +74 -0
  98. package/dist/modules/agent_orchestrator/api/runs/[id]/flag/route.js.map +7 -0
  99. package/dist/modules/agent_orchestrator/api/runs/[id]/rerun/route.js +165 -0
  100. package/dist/modules/agent_orchestrator/api/runs/[id]/rerun/route.js.map +7 -0
  101. package/dist/modules/agent_orchestrator/api/runs/[id]/route.js +86 -0
  102. package/dist/modules/agent_orchestrator/api/runs/[id]/route.js.map +7 -0
  103. package/dist/modules/agent_orchestrator/api/runs/route.js +137 -0
  104. package/dist/modules/agent_orchestrator/api/runs/route.js.map +7 -0
  105. package/dist/modules/agent_orchestrator/api/tokens/estimate/route.js +56 -0
  106. package/dist/modules/agent_orchestrator/api/tokens/estimate/route.js.map +7 -0
  107. package/dist/modules/agent_orchestrator/api/trace/ingest/route.js +80 -0
  108. package/dist/modules/agent_orchestrator/api/trace/ingest/route.js.map +7 -0
  109. package/dist/modules/agent_orchestrator/api/web-search/health/route.js +184 -0
  110. package/dist/modules/agent_orchestrator/api/web-search/health/route.js.map +7 -0
  111. package/dist/modules/agent_orchestrator/api/web-search/preview/route.js +150 -0
  112. package/dist/modules/agent_orchestrator/api/web-search/preview/route.js.map +7 -0
  113. package/dist/modules/agent_orchestrator/api/web-search/settings/route.js +213 -0
  114. package/dist/modules/agent_orchestrator/api/web-search/settings/route.js.map +7 -0
  115. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ActivityTab.js +112 -0
  116. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ActivityTab.js.map +7 -0
  117. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentConfigDrawer.js +58 -0
  118. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentConfigDrawer.js.map +7 -0
  119. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentHeaderCard.js +117 -0
  120. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AgentHeaderCard.js.map +7 -0
  121. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AssertionFormDrawer.js +318 -0
  122. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/AssertionFormDrawer.js.map +7 -0
  123. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ConfigurationTab.js +126 -0
  124. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/ConfigurationTab.js.map +7 -0
  125. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalCaseDrawer.js +379 -0
  126. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalCaseDrawer.js.map +7 -0
  127. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalResultsDrawer.js +159 -0
  128. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvalResultsDrawer.js.map +7 -0
  129. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvaluationTab.js +581 -0
  130. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/EvaluationTab.js.map +7 -0
  131. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/FilesTab.js +249 -0
  132. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/FilesTab.js.map +7 -0
  133. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/OverviewTab.js +162 -0
  134. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/OverviewTab.js.map +7 -0
  135. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/RunEvaluationDrawer.js +199 -0
  136. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/RunEvaluationDrawer.js.map +7 -0
  137. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/TokenCalculatorTab.js +137 -0
  138. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/TokenCalculatorTab.js.map +7 -0
  139. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/filesShared.js +97 -0
  140. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/filesShared.js.map +7 -0
  141. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspacePrimitives.js +159 -0
  142. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspacePrimitives.js.map +7 -0
  143. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspaceShared.js +132 -0
  144. package/dist/modules/agent_orchestrator/backend/agents/[id]/components/workspaceShared.js.map +7 -0
  145. package/dist/modules/agent_orchestrator/backend/agents/[id]/page.js +266 -0
  146. package/dist/modules/agent_orchestrator/backend/agents/[id]/page.js.map +7 -0
  147. package/dist/modules/agent_orchestrator/backend/agents/[id]/page.meta.js +18 -0
  148. package/dist/modules/agent_orchestrator/backend/agents/[id]/page.meta.js.map +7 -0
  149. package/dist/modules/agent_orchestrator/backend/agents/agentListFilters.js +44 -0
  150. package/dist/modules/agent_orchestrator/backend/agents/agentListFilters.js.map +7 -0
  151. package/dist/modules/agent_orchestrator/backend/agents/page.js +439 -0
  152. package/dist/modules/agent_orchestrator/backend/agents/page.js.map +7 -0
  153. package/dist/modules/agent_orchestrator/backend/agents/page.meta.js +28 -0
  154. package/dist/modules/agent_orchestrator/backend/agents/page.meta.js.map +7 -0
  155. package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.js +80 -0
  156. package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.js.map +7 -0
  157. package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.meta.js +19 -0
  158. package/dist/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.meta.js.map +7 -0
  159. package/dist/modules/agent_orchestrator/backend/audit/page.js +324 -0
  160. package/dist/modules/agent_orchestrator/backend/audit/page.js.map +7 -0
  161. package/dist/modules/agent_orchestrator/backend/audit/page.meta.js +27 -0
  162. package/dist/modules/agent_orchestrator/backend/audit/page.meta.js.map +7 -0
  163. package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.js +239 -0
  164. package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.js.map +7 -0
  165. package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.meta.js +18 -0
  166. package/dist/modules/agent_orchestrator/backend/caseload/[proposalId]/page.meta.js.map +7 -0
  167. package/dist/modules/agent_orchestrator/backend/caseload/hooks.js +344 -0
  168. package/dist/modules/agent_orchestrator/backend/caseload/hooks.js.map +7 -0
  169. package/dist/modules/agent_orchestrator/backend/caseload/page.js +1360 -0
  170. package/dist/modules/agent_orchestrator/backend/caseload/page.js.map +7 -0
  171. package/dist/modules/agent_orchestrator/backend/caseload/page.meta.js +25 -0
  172. package/dist/modules/agent_orchestrator/backend/caseload/page.meta.js.map +7 -0
  173. package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.js +357 -0
  174. package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.js.map +7 -0
  175. package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.meta.js +18 -0
  176. package/dist/modules/agent_orchestrator/backend/eval-cases/[id]/page.meta.js.map +7 -0
  177. package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.js +595 -0
  178. package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.js.map +7 -0
  179. package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.meta.js +18 -0
  180. package/dist/modules/agent_orchestrator/backend/eval-runs/[id]/page.meta.js.map +7 -0
  181. package/dist/modules/agent_orchestrator/backend/overview/page.js +593 -0
  182. package/dist/modules/agent_orchestrator/backend/overview/page.js.map +7 -0
  183. package/dist/modules/agent_orchestrator/backend/overview/page.meta.js +27 -0
  184. package/dist/modules/agent_orchestrator/backend/overview/page.meta.js.map +7 -0
  185. package/dist/modules/agent_orchestrator/backend/playground/PlaygroundEvalPanel.js +219 -0
  186. package/dist/modules/agent_orchestrator/backend/playground/PlaygroundEvalPanel.js.map +7 -0
  187. package/dist/modules/agent_orchestrator/backend/playground/page.js +443 -0
  188. package/dist/modules/agent_orchestrator/backend/playground/page.js.map +7 -0
  189. package/dist/modules/agent_orchestrator/backend/playground/page.meta.js +24 -0
  190. package/dist/modules/agent_orchestrator/backend/playground/page.meta.js.map +7 -0
  191. package/dist/modules/agent_orchestrator/backend/processes/[id]/page.js +611 -0
  192. package/dist/modules/agent_orchestrator/backend/processes/[id]/page.js.map +7 -0
  193. package/dist/modules/agent_orchestrator/backend/processes/[id]/page.meta.js +18 -0
  194. package/dist/modules/agent_orchestrator/backend/processes/[id]/page.meta.js.map +7 -0
  195. package/dist/modules/agent_orchestrator/backend/processes/definitions/MilestoneEditor.js +219 -0
  196. package/dist/modules/agent_orchestrator/backend/processes/definitions/MilestoneEditor.js.map +7 -0
  197. package/dist/modules/agent_orchestrator/backend/processes/definitions/TriggerEditor.js +326 -0
  198. package/dist/modules/agent_orchestrator/backend/processes/definitions/TriggerEditor.js.map +7 -0
  199. package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.js +565 -0
  200. package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.js.map +7 -0
  201. package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.meta.js +17 -0
  202. package/dist/modules/agent_orchestrator/backend/processes/definitions/[id]/page.meta.js.map +7 -0
  203. package/dist/modules/agent_orchestrator/backend/processes/definitions/formHelpers.js +69 -0
  204. package/dist/modules/agent_orchestrator/backend/processes/definitions/formHelpers.js.map +7 -0
  205. package/dist/modules/agent_orchestrator/backend/processes/definitions/navigation.js +9 -0
  206. package/dist/modules/agent_orchestrator/backend/processes/definitions/navigation.js.map +7 -0
  207. package/dist/modules/agent_orchestrator/backend/processes/definitions/page.js +735 -0
  208. package/dist/modules/agent_orchestrator/backend/processes/definitions/page.js.map +7 -0
  209. package/dist/modules/agent_orchestrator/backend/processes/definitions/page.meta.js +25 -0
  210. package/dist/modules/agent_orchestrator/backend/processes/definitions/page.meta.js.map +7 -0
  211. package/dist/modules/agent_orchestrator/backend/processes/page.js +244 -0
  212. package/dist/modules/agent_orchestrator/backend/processes/page.js.map +7 -0
  213. package/dist/modules/agent_orchestrator/backend/processes/page.meta.js +29 -0
  214. package/dist/modules/agent_orchestrator/backend/processes/page.meta.js.map +7 -0
  215. package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.js +204 -0
  216. package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.js.map +7 -0
  217. package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.meta.js +30 -0
  218. package/dist/modules/agent_orchestrator/backend/settings/auto-approval/page.meta.js.map +7 -0
  219. package/dist/modules/agent_orchestrator/backend/settings/web-search/AdapterRow.js +241 -0
  220. package/dist/modules/agent_orchestrator/backend/settings/web-search/AdapterRow.js.map +7 -0
  221. package/dist/modules/agent_orchestrator/backend/settings/web-search/WebSearchPreview.js +129 -0
  222. package/dist/modules/agent_orchestrator/backend/settings/web-search/WebSearchPreview.js.map +7 -0
  223. package/dist/modules/agent_orchestrator/backend/settings/web-search/page.js +644 -0
  224. package/dist/modules/agent_orchestrator/backend/settings/web-search/page.js.map +7 -0
  225. package/dist/modules/agent_orchestrator/backend/settings/web-search/page.meta.js +32 -0
  226. package/dist/modules/agent_orchestrator/backend/settings/web-search/page.meta.js.map +7 -0
  227. package/dist/modules/agent_orchestrator/backend/traces/[id]/page.js +1015 -0
  228. package/dist/modules/agent_orchestrator/backend/traces/[id]/page.js.map +7 -0
  229. package/dist/modules/agent_orchestrator/backend/traces/[id]/page.meta.js +18 -0
  230. package/dist/modules/agent_orchestrator/backend/traces/[id]/page.meta.js.map +7 -0
  231. package/dist/modules/agent_orchestrator/backend/traces/page.js +477 -0
  232. package/dist/modules/agent_orchestrator/backend/traces/page.js.map +7 -0
  233. package/dist/modules/agent_orchestrator/backend/traces/page.meta.js +24 -0
  234. package/dist/modules/agent_orchestrator/backend/traces/page.meta.js.map +7 -0
  235. package/dist/modules/agent_orchestrator/cli.js +592 -0
  236. package/dist/modules/agent_orchestrator/cli.js.map +7 -0
  237. package/dist/modules/agent_orchestrator/commands/artifacts.js +127 -0
  238. package/dist/modules/agent_orchestrator/commands/artifacts.js.map +7 -0
  239. package/dist/modules/agent_orchestrator/commands/corrections.js +284 -0
  240. package/dist/modules/agent_orchestrator/commands/corrections.js.map +7 -0
  241. package/dist/modules/agent_orchestrator/commands/dispose.js +265 -0
  242. package/dist/modules/agent_orchestrator/commands/dispose.js.map +7 -0
  243. package/dist/modules/agent_orchestrator/commands/evalRuns.js +202 -0
  244. package/dist/modules/agent_orchestrator/commands/evalRuns.js.map +7 -0
  245. package/dist/modules/agent_orchestrator/commands/grants.js +119 -0
  246. package/dist/modules/agent_orchestrator/commands/grants.js.map +7 -0
  247. package/dist/modules/agent_orchestrator/commands/index.js +11 -0
  248. package/dist/modules/agent_orchestrator/commands/index.js.map +7 -0
  249. package/dist/modules/agent_orchestrator/commands/processes.js +130 -0
  250. package/dist/modules/agent_orchestrator/commands/processes.js.map +7 -0
  251. package/dist/modules/agent_orchestrator/commands/proposals.js +67 -0
  252. package/dist/modules/agent_orchestrator/commands/proposals.js.map +7 -0
  253. package/dist/modules/agent_orchestrator/commands/runActions.js +42 -0
  254. package/dist/modules/agent_orchestrator/commands/runActions.js.map +7 -0
  255. package/dist/modules/agent_orchestrator/commands/runs.js +183 -0
  256. package/dist/modules/agent_orchestrator/commands/runs.js.map +7 -0
  257. package/dist/modules/agent_orchestrator/commands/trace.js +89 -0
  258. package/dist/modules/agent_orchestrator/commands/trace.js.map +7 -0
  259. package/dist/modules/agent_orchestrator/components/AgentIoDrawer.js +45 -0
  260. package/dist/modules/agent_orchestrator/components/AgentIoDrawer.js.map +7 -0
  261. package/dist/modules/agent_orchestrator/components/AgentTimeline.js +129 -0
  262. package/dist/modules/agent_orchestrator/components/AgentTimeline.js.map +7 -0
  263. package/dist/modules/agent_orchestrator/components/DisposeDialog.js +87 -0
  264. package/dist/modules/agent_orchestrator/components/DisposeDialog.js.map +7 -0
  265. package/dist/modules/agent_orchestrator/components/EmptyArt.js +50 -0
  266. package/dist/modules/agent_orchestrator/components/EmptyArt.js.map +7 -0
  267. package/dist/modules/agent_orchestrator/components/InvokeAgentNodeConfig.js +111 -0
  268. package/dist/modules/agent_orchestrator/components/InvokeAgentNodeConfig.js.map +7 -0
  269. package/dist/modules/agent_orchestrator/components/ProcessOutcomeLink.js +42 -0
  270. package/dist/modules/agent_orchestrator/components/ProcessOutcomeLink.js.map +7 -0
  271. package/dist/modules/agent_orchestrator/components/ProposalCard.js +431 -0
  272. package/dist/modules/agent_orchestrator/components/ProposalCard.js.map +7 -0
  273. package/dist/modules/agent_orchestrator/components/ProposalFacts.js +85 -0
  274. package/dist/modules/agent_orchestrator/components/ProposalFacts.js.map +7 -0
  275. package/dist/modules/agent_orchestrator/components/ProposalOptionList.js +190 -0
  276. package/dist/modules/agent_orchestrator/components/ProposalOptionList.js.map +7 -0
  277. package/dist/modules/agent_orchestrator/components/ProposeOnlyNotice.js +25 -0
  278. package/dist/modules/agent_orchestrator/components/ProposeOnlyNotice.js.map +7 -0
  279. package/dist/modules/agent_orchestrator/components/SkillDrawer.js +48 -0
  280. package/dist/modules/agent_orchestrator/components/SkillDrawer.js.map +7 -0
  281. package/dist/modules/agent_orchestrator/components/StartHereGuide.js +183 -0
  282. package/dist/modules/agent_orchestrator/components/StartHereGuide.js.map +7 -0
  283. package/dist/modules/agent_orchestrator/components/SystemHealthTile.js +135 -0
  284. package/dist/modules/agent_orchestrator/components/SystemHealthTile.js.map +7 -0
  285. package/dist/modules/agent_orchestrator/components/WebSearchActivity.js +87 -0
  286. package/dist/modules/agent_orchestrator/components/WebSearchActivity.js.map +7 -0
  287. package/dist/modules/agent_orchestrator/components/agentChips.js +90 -0
  288. package/dist/modules/agent_orchestrator/components/agentChips.js.map +7 -0
  289. package/dist/modules/agent_orchestrator/components/cockpitStatus.js +94 -0
  290. package/dist/modules/agent_orchestrator/components/cockpitStatus.js.map +7 -0
  291. package/dist/modules/agent_orchestrator/components/evalRunTypes.js +209 -0
  292. package/dist/modules/agent_orchestrator/components/evalRunTypes.js.map +7 -0
  293. package/dist/modules/agent_orchestrator/components/health/HealthRow.js +15 -0
  294. package/dist/modules/agent_orchestrator/components/health/HealthRow.js.map +7 -0
  295. package/dist/modules/agent_orchestrator/components/health/HealthStateBadge.js +13 -0
  296. package/dist/modules/agent_orchestrator/components/health/HealthStateBadge.js.map +7 -0
  297. package/dist/modules/agent_orchestrator/components/health/SystemHealthPanel.js +126 -0
  298. package/dist/modules/agent_orchestrator/components/health/SystemHealthPanel.js.map +7 -0
  299. package/dist/modules/agent_orchestrator/components/health/vocabulary.js +40 -0
  300. package/dist/modules/agent_orchestrator/components/health/vocabulary.js.map +7 -0
  301. package/dist/modules/agent_orchestrator/components/optionalRequest.js +7 -0
  302. package/dist/modules/agent_orchestrator/components/optionalRequest.js.map +7 -0
  303. package/dist/modules/agent_orchestrator/components/playgroundRunError.js +37 -0
  304. package/dist/modules/agent_orchestrator/components/playgroundRunError.js.map +7 -0
  305. package/dist/modules/agent_orchestrator/components/playgroundToolCalls.js +12 -0
  306. package/dist/modules/agent_orchestrator/components/playgroundToolCalls.js.map +7 -0
  307. package/dist/modules/agent_orchestrator/components/processTypes.js +454 -0
  308. package/dist/modules/agent_orchestrator/components/processTypes.js.map +7 -0
  309. package/dist/modules/agent_orchestrator/components/proposalCaseStatus.js +64 -0
  310. package/dist/modules/agent_orchestrator/components/proposalCaseStatus.js.map +7 -0
  311. package/dist/modules/agent_orchestrator/components/proposalEdit.js +71 -0
  312. package/dist/modules/agent_orchestrator/components/proposalEdit.js.map +7 -0
  313. package/dist/modules/agent_orchestrator/components/proposalFactsData.js +138 -0
  314. package/dist/modules/agent_orchestrator/components/proposalFactsData.js.map +7 -0
  315. package/dist/modules/agent_orchestrator/components/serverSort.js +34 -0
  316. package/dist/modules/agent_orchestrator/components/serverSort.js.map +7 -0
  317. package/dist/modules/agent_orchestrator/components/subjectRef.js +34 -0
  318. package/dist/modules/agent_orchestrator/components/subjectRef.js.map +7 -0
  319. package/dist/modules/agent_orchestrator/components/types.js +462 -0
  320. package/dist/modules/agent_orchestrator/components/types.js.map +7 -0
  321. package/dist/modules/agent_orchestrator/components/useAgentIcons.js +31 -0
  322. package/dist/modules/agent_orchestrator/components/useAgentIcons.js.map +7 -0
  323. package/dist/modules/agent_orchestrator/components/useAgentLabels.js +35 -0
  324. package/dist/modules/agent_orchestrator/components/useAgentLabels.js.map +7 -0
  325. package/dist/modules/agent_orchestrator/components/useAgentTags.js +32 -0
  326. package/dist/modules/agent_orchestrator/components/useAgentTags.js.map +7 -0
  327. package/dist/modules/agent_orchestrator/components/useCoalescedReload.js +33 -0
  328. package/dist/modules/agent_orchestrator/components/useCoalescedReload.js.map +7 -0
  329. package/dist/modules/agent_orchestrator/data/agentIcons.js +35 -0
  330. package/dist/modules/agent_orchestrator/data/agentIcons.js.map +7 -0
  331. package/dist/modules/agent_orchestrator/data/agentTags.js +26 -0
  332. package/dist/modules/agent_orchestrator/data/agentTags.js.map +7 -0
  333. package/dist/modules/agent_orchestrator/data/entities.js +1382 -0
  334. package/dist/modules/agent_orchestrator/data/entities.js.map +7 -0
  335. package/dist/modules/agent_orchestrator/data/proposalEnvelope.js +168 -0
  336. package/dist/modules/agent_orchestrator/data/proposalEnvelope.js.map +7 -0
  337. package/dist/modules/agent_orchestrator/data/validators.js +949 -0
  338. package/dist/modules/agent_orchestrator/data/validators.js.map +7 -0
  339. package/dist/modules/agent_orchestrator/di.js +169 -0
  340. package/dist/modules/agent_orchestrator/di.js.map +7 -0
  341. package/dist/modules/agent_orchestrator/encryption.js +100 -0
  342. package/dist/modules/agent_orchestrator/encryption.js.map +7 -0
  343. package/dist/modules/agent_orchestrator/events.js +87 -0
  344. package/dist/modules/agent_orchestrator/events.js.map +7 -0
  345. package/dist/modules/agent_orchestrator/examples/deals-health-check-workflow.json +124 -0
  346. package/dist/modules/agent_orchestrator/examples/refund-triage-workflow.json +210 -0
  347. package/dist/modules/agent_orchestrator/generated/file-agents.generated.js +169 -0
  348. package/dist/modules/agent_orchestrator/generated/file-agents.generated.js.map +7 -0
  349. package/dist/modules/agent_orchestrator/i18n/de.json +1495 -0
  350. package/dist/modules/agent_orchestrator/i18n/en.json +1495 -0
  351. package/dist/modules/agent_orchestrator/i18n/es.json +1495 -0
  352. package/dist/modules/agent_orchestrator/i18n/ko.json +1495 -0
  353. package/dist/modules/agent_orchestrator/i18n/pl.json +1495 -0
  354. package/dist/modules/agent_orchestrator/index.js +151 -0
  355. package/dist/modules/agent_orchestrator/index.js.map +7 -0
  356. package/dist/modules/agent_orchestrator/lib/automationLinks.js +12 -0
  357. package/dist/modules/agent_orchestrator/lib/automationLinks.js.map +7 -0
  358. package/dist/modules/agent_orchestrator/lib/context/contextResolver.js +317 -0
  359. package/dist/modules/agent_orchestrator/lib/context/contextResolver.js.map +7 -0
  360. package/dist/modules/agent_orchestrator/lib/context/documentIngest.js +93 -0
  361. package/dist/modules/agent_orchestrator/lib/context/documentIngest.js.map +7 -0
  362. package/dist/modules/agent_orchestrator/lib/context/documentOcrProvider.js +90 -0
  363. package/dist/modules/agent_orchestrator/lib/context/documentOcrProvider.js.map +7 -0
  364. package/dist/modules/agent_orchestrator/lib/context/documentSource.js +44 -0
  365. package/dist/modules/agent_orchestrator/lib/context/documentSource.js.map +7 -0
  366. package/dist/modules/agent_orchestrator/lib/context/index.js +64 -0
  367. package/dist/modules/agent_orchestrator/lib/context/index.js.map +7 -0
  368. package/dist/modules/agent_orchestrator/lib/context/packer.js +47 -0
  369. package/dist/modules/agent_orchestrator/lib/context/packer.js.map +7 -0
  370. package/dist/modules/agent_orchestrator/lib/context/redactor.js +72 -0
  371. package/dist/modules/agent_orchestrator/lib/context/redactor.js.map +7 -0
  372. package/dist/modules/agent_orchestrator/lib/context/registry.js +60 -0
  373. package/dist/modules/agent_orchestrator/lib/context/registry.js.map +7 -0
  374. package/dist/modules/agent_orchestrator/lib/context/retrievalSource.js +69 -0
  375. package/dist/modules/agent_orchestrator/lib/context/retrievalSource.js.map +7 -0
  376. package/dist/modules/agent_orchestrator/lib/crudCache.js +24 -0
  377. package/dist/modules/agent_orchestrator/lib/crudCache.js.map +7 -0
  378. package/dist/modules/agent_orchestrator/lib/disposition/autoApprovalPolicy.js +51 -0
  379. package/dist/modules/agent_orchestrator/lib/disposition/autoApprovalPolicy.js.map +7 -0
  380. package/dist/modules/agent_orchestrator/lib/disposition/dispositionService.js +190 -0
  381. package/dist/modules/agent_orchestrator/lib/disposition/dispositionService.js.map +7 -0
  382. package/dist/modules/agent_orchestrator/lib/disposition/resume.js +42 -0
  383. package/dist/modules/agent_orchestrator/lib/disposition/resume.js.map +7 -0
  384. package/dist/modules/agent_orchestrator/lib/disposition/tenantAutoApprovalPolicy.js +59 -0
  385. package/dist/modules/agent_orchestrator/lib/disposition/tenantAutoApprovalPolicy.js.map +7 -0
  386. package/dist/modules/agent_orchestrator/lib/eval/assertionResolution.js +53 -0
  387. package/dist/modules/agent_orchestrator/lib/eval/assertionResolution.js.map +7 -0
  388. package/dist/modules/agent_orchestrator/lib/eval/canonicalInputKey.js +20 -0
  389. package/dist/modules/agent_orchestrator/lib/eval/canonicalInputKey.js.map +7 -0
  390. package/dist/modules/agent_orchestrator/lib/eval/defaultAssertions.js +78 -0
  391. package/dist/modules/agent_orchestrator/lib/eval/defaultAssertions.js.map +7 -0
  392. package/dist/modules/agent_orchestrator/lib/eval/evalGate.js +71 -0
  393. package/dist/modules/agent_orchestrator/lib/eval/evalGate.js.map +7 -0
  394. package/dist/modules/agent_orchestrator/lib/eval/evalReplayService.js +277 -0
  395. package/dist/modules/agent_orchestrator/lib/eval/evalReplayService.js.map +7 -0
  396. package/dist/modules/agent_orchestrator/lib/eval/evalRuntimeService.js +141 -0
  397. package/dist/modules/agent_orchestrator/lib/eval/evalRuntimeService.js.map +7 -0
  398. package/dist/modules/agent_orchestrator/lib/eval/judgeRubric.js +150 -0
  399. package/dist/modules/agent_orchestrator/lib/eval/judgeRubric.js.map +7 -0
  400. package/dist/modules/agent_orchestrator/lib/eval/llmJudge.js +122 -0
  401. package/dist/modules/agent_orchestrator/lib/eval/llmJudge.js.map +7 -0
  402. package/dist/modules/agent_orchestrator/lib/eval/projectRunView.js +32 -0
  403. package/dist/modules/agent_orchestrator/lib/eval/projectRunView.js.map +7 -0
  404. package/dist/modules/agent_orchestrator/lib/eval/registry/agent.js +240 -0
  405. package/dist/modules/agent_orchestrator/lib/eval/registry/agent.js.map +7 -0
  406. package/dist/modules/agent_orchestrator/lib/eval/registry/economics.js +77 -0
  407. package/dist/modules/agent_orchestrator/lib/eval/registry/economics.js.map +7 -0
  408. package/dist/modules/agent_orchestrator/lib/eval/registry/index.js +97 -0
  409. package/dist/modules/agent_orchestrator/lib/eval/registry/index.js.map +7 -0
  410. package/dist/modules/agent_orchestrator/lib/eval/registry/judge.js +66 -0
  411. package/dist/modules/agent_orchestrator/lib/eval/registry/judge.js.map +7 -0
  412. package/dist/modules/agent_orchestrator/lib/eval/registry/shared.js +146 -0
  413. package/dist/modules/agent_orchestrator/lib/eval/registry/shared.js.map +7 -0
  414. package/dist/modules/agent_orchestrator/lib/eval/registry/structured.js +264 -0
  415. package/dist/modules/agent_orchestrator/lib/eval/registry/structured.js.map +7 -0
  416. package/dist/modules/agent_orchestrator/lib/eval/registry/text.js +110 -0
  417. package/dist/modules/agent_orchestrator/lib/eval/registry/text.js.map +7 -0
  418. package/dist/modules/agent_orchestrator/lib/eval/registry/tools.js +232 -0
  419. package/dist/modules/agent_orchestrator/lib/eval/registry/tools.js.map +7 -0
  420. package/dist/modules/agent_orchestrator/lib/eval/sampling.js +26 -0
  421. package/dist/modules/agent_orchestrator/lib/eval/sampling.js.map +7 -0
  422. package/dist/modules/agent_orchestrator/lib/eval/scorers.js +46 -0
  423. package/dist/modules/agent_orchestrator/lib/eval/scorers.js.map +7 -0
  424. package/dist/modules/agent_orchestrator/lib/eval/types.js +16 -0
  425. package/dist/modules/agent_orchestrator/lib/eval/types.js.map +7 -0
  426. package/dist/modules/agent_orchestrator/lib/featureFlags.js +9 -0
  427. package/dist/modules/agent_orchestrator/lib/featureFlags.js.map +7 -0
  428. package/dist/modules/agent_orchestrator/lib/guardrails/grounding.js +90 -0
  429. package/dist/modules/agent_orchestrator/lib/guardrails/grounding.js.map +7 -0
  430. package/dist/modules/agent_orchestrator/lib/guardrails/groundingSets.js +35 -0
  431. package/dist/modules/agent_orchestrator/lib/guardrails/groundingSets.js.map +7 -0
  432. package/dist/modules/agent_orchestrator/lib/guardrails/guardrailService.js +160 -0
  433. package/dist/modules/agent_orchestrator/lib/guardrails/guardrailService.js.map +7 -0
  434. package/dist/modules/agent_orchestrator/lib/guardrails/promptInjection.js +94 -0
  435. package/dist/modules/agent_orchestrator/lib/guardrails/promptInjection.js.map +7 -0
  436. package/dist/modules/agent_orchestrator/lib/guardrails/publicEndpointRateLimit.js +36 -0
  437. package/dist/modules/agent_orchestrator/lib/guardrails/publicEndpointRateLimit.js.map +7 -0
  438. package/dist/modules/agent_orchestrator/lib/guardrails/syncGroundingSets.js +43 -0
  439. package/dist/modules/agent_orchestrator/lib/guardrails/syncGroundingSets.js.map +7 -0
  440. package/dist/modules/agent_orchestrator/lib/identity/agentAuthMdService.js +136 -0
  441. package/dist/modules/agent_orchestrator/lib/identity/agentAuthMdService.js.map +7 -0
  442. package/dist/modules/agent_orchestrator/lib/identity/agentDelegationGrantService.js +55 -0
  443. package/dist/modules/agent_orchestrator/lib/identity/agentDelegationGrantService.js.map +7 -0
  444. package/dist/modules/agent_orchestrator/lib/identity/agentNoBypassSubscriber.js +50 -0
  445. package/dist/modules/agent_orchestrator/lib/identity/agentNoBypassSubscriber.js.map +7 -0
  446. package/dist/modules/agent_orchestrator/lib/identity/agentPrincipalService.js +149 -0
  447. package/dist/modules/agent_orchestrator/lib/identity/agentPrincipalService.js.map +7 -0
  448. package/dist/modules/agent_orchestrator/lib/identity/agentTokenService.js +138 -0
  449. package/dist/modules/agent_orchestrator/lib/identity/agentTokenService.js.map +7 -0
  450. package/dist/modules/agent_orchestrator/lib/identity/agentWriteScope.js +22 -0
  451. package/dist/modules/agent_orchestrator/lib/identity/agentWriteScope.js.map +7 -0
  452. package/dist/modules/agent_orchestrator/lib/metrics/metricRollupService.js +112 -0
  453. package/dist/modules/agent_orchestrator/lib/metrics/metricRollupService.js.map +7 -0
  454. package/dist/modules/agent_orchestrator/lib/processes/executionSearch.js +16 -0
  455. package/dist/modules/agent_orchestrator/lib/processes/executionSearch.js.map +7 -0
  456. package/dist/modules/agent_orchestrator/lib/processes/materializeAgentWorkflow.js +178 -0
  457. package/dist/modules/agent_orchestrator/lib/processes/materializeAgentWorkflow.js.map +7 -0
  458. package/dist/modules/agent_orchestrator/lib/processes/processProjection.js +220 -0
  459. package/dist/modules/agent_orchestrator/lib/processes/processProjection.js.map +7 -0
  460. package/dist/modules/agent_orchestrator/lib/processes/subjectContext.js +14 -0
  461. package/dist/modules/agent_orchestrator/lib/processes/subjectContext.js.map +7 -0
  462. package/dist/modules/agent_orchestrator/lib/processes/workflowGrant.js +41 -0
  463. package/dist/modules/agent_orchestrator/lib/processes/workflowGrant.js.map +7 -0
  464. package/dist/modules/agent_orchestrator/lib/queue.js +25 -0
  465. package/dist/modules/agent_orchestrator/lib/queue.js.map +7 -0
  466. package/dist/modules/agent_orchestrator/lib/runtime/actionVocabulary.js +66 -0
  467. package/dist/modules/agent_orchestrator/lib/runtime/actionVocabulary.js.map +7 -0
  468. package/dist/modules/agent_orchestrator/lib/runtime/admission.js +113 -0
  469. package/dist/modules/agent_orchestrator/lib/runtime/admission.js.map +7 -0
  470. package/dist/modules/agent_orchestrator/lib/runtime/agentRunSessionStore.js +92 -0
  471. package/dist/modules/agent_orchestrator/lib/runtime/agentRunSessionStore.js.map +7 -0
  472. package/dist/modules/agent_orchestrator/lib/runtime/agentRuntime.js +67 -0
  473. package/dist/modules/agent_orchestrator/lib/runtime/agentRuntime.js.map +7 -0
  474. package/dist/modules/agent_orchestrator/lib/runtime/agentWorkspaceManager.js +111 -0
  475. package/dist/modules/agent_orchestrator/lib/runtime/agentWorkspaceManager.js.map +7 -0
  476. package/dist/modules/agent_orchestrator/lib/runtime/artifactCollector.js +146 -0
  477. package/dist/modules/agent_orchestrator/lib/runtime/artifactCollector.js.map +7 -0
  478. package/dist/modules/agent_orchestrator/lib/runtime/artifactFileStore.js +85 -0
  479. package/dist/modules/agent_orchestrator/lib/runtime/artifactFileStore.js.map +7 -0
  480. package/dist/modules/agent_orchestrator/lib/runtime/attachmentStager.js +62 -0
  481. package/dist/modules/agent_orchestrator/lib/runtime/attachmentStager.js.map +7 -0
  482. package/dist/modules/agent_orchestrator/lib/runtime/errors.js +38 -0
  483. package/dist/modules/agent_orchestrator/lib/runtime/errors.js.map +7 -0
  484. package/dist/modules/agent_orchestrator/lib/runtime/executeProposal.js +37 -0
  485. package/dist/modules/agent_orchestrator/lib/runtime/executeProposal.js.map +7 -0
  486. package/dist/modules/agent_orchestrator/lib/runtime/fileAgentSkills.js +32 -0
  487. package/dist/modules/agent_orchestrator/lib/runtime/fileAgentSkills.js.map +7 -0
  488. package/dist/modules/agent_orchestrator/lib/runtime/fileInput.js +27 -0
  489. package/dist/modules/agent_orchestrator/lib/runtime/fileInput.js.map +7 -0
  490. package/dist/modules/agent_orchestrator/lib/runtime/invokeAgentForWorkflow.js +115 -0
  491. package/dist/modules/agent_orchestrator/lib/runtime/invokeAgentForWorkflow.js.map +7 -0
  492. package/dist/modules/agent_orchestrator/lib/runtime/modelPricing.js +77 -0
  493. package/dist/modules/agent_orchestrator/lib/runtime/modelPricing.js.map +7 -0
  494. package/dist/modules/agent_orchestrator/lib/runtime/nativeAgentRunner.js +422 -0
  495. package/dist/modules/agent_orchestrator/lib/runtime/nativeAgentRunner.js.map +7 -0
  496. package/dist/modules/agent_orchestrator/lib/runtime/nativeTraceCapture.js +132 -0
  497. package/dist/modules/agent_orchestrator/lib/runtime/nativeTraceCapture.js.map +7 -0
  498. package/dist/modules/agent_orchestrator/lib/runtime/openCodeAgentRunner.js +581 -0
  499. package/dist/modules/agent_orchestrator/lib/runtime/openCodeAgentRunner.js.map +7 -0
  500. package/dist/modules/agent_orchestrator/lib/runtime/persistence.js +110 -0
  501. package/dist/modules/agent_orchestrator/lib/runtime/persistence.js.map +7 -0
  502. package/dist/modules/agent_orchestrator/lib/runtime/providerBudget.js +152 -0
  503. package/dist/modules/agent_orchestrator/lib/runtime/providerBudget.js.map +7 -0
  504. package/dist/modules/agent_orchestrator/lib/runtime/rerunContext.js +13 -0
  505. package/dist/modules/agent_orchestrator/lib/runtime/rerunContext.js.map +7 -0
  506. package/dist/modules/agent_orchestrator/lib/runtime/runContext.js +17 -0
  507. package/dist/modules/agent_orchestrator/lib/runtime/runContext.js.map +7 -0
  508. package/dist/modules/agent_orchestrator/lib/runtime/sandboxedScript.js +39 -0
  509. package/dist/modules/agent_orchestrator/lib/runtime/sandboxedScript.js.map +7 -0
  510. package/dist/modules/agent_orchestrator/lib/sdk/agentMarkdown.js +91 -0
  511. package/dist/modules/agent_orchestrator/lib/sdk/agentMarkdown.js.map +7 -0
  512. package/dist/modules/agent_orchestrator/lib/sdk/agentOutcomeContract.js +35 -0
  513. package/dist/modules/agent_orchestrator/lib/sdk/agentOutcomeContract.js.map +7 -0
  514. package/dist/modules/agent_orchestrator/lib/sdk/defineAgent.js +214 -0
  515. package/dist/modules/agent_orchestrator/lib/sdk/defineAgent.js.map +7 -0
  516. package/dist/modules/agent_orchestrator/lib/sdk/defineFileAgent.js +417 -0
  517. package/dist/modules/agent_orchestrator/lib/sdk/defineFileAgent.js.map +7 -0
  518. package/dist/modules/agent_orchestrator/lib/sdk/defineSkill.js +40 -0
  519. package/dist/modules/agent_orchestrator/lib/sdk/defineSkill.js.map +7 -0
  520. package/dist/modules/agent_orchestrator/lib/sdk/outcomeSchema.js +129 -0
  521. package/dist/modules/agent_orchestrator/lib/sdk/outcomeSchema.js.map +7 -0
  522. package/dist/modules/agent_orchestrator/lib/sdk/skillMarkdown.js +78 -0
  523. package/dist/modules/agent_orchestrator/lib/sdk/skillMarkdown.js.map +7 -0
  524. package/dist/modules/agent_orchestrator/lib/seeds.js +224 -0
  525. package/dist/modules/agent_orchestrator/lib/seeds.js.map +7 -0
  526. package/dist/modules/agent_orchestrator/lib/settings/agentSettings.js +55 -0
  527. package/dist/modules/agent_orchestrator/lib/settings/agentSettings.js.map +7 -0
  528. package/dist/modules/agent_orchestrator/lib/systemHealth.js +94 -0
  529. package/dist/modules/agent_orchestrator/lib/systemHealth.js.map +7 -0
  530. package/dist/modules/agent_orchestrator/lib/tasks/eventTriggerMatch.js +81 -0
  531. package/dist/modules/agent_orchestrator/lib/tasks/eventTriggerMatch.js.map +7 -0
  532. package/dist/modules/agent_orchestrator/lib/tasks/milestones.js +96 -0
  533. package/dist/modules/agent_orchestrator/lib/tasks/milestones.js.map +7 -0
  534. package/dist/modules/agent_orchestrator/lib/tasks/outcome.js +44 -0
  535. package/dist/modules/agent_orchestrator/lib/tasks/outcome.js.map +7 -0
  536. package/dist/modules/agent_orchestrator/lib/tasks/outcomeLink.js +45 -0
  537. package/dist/modules/agent_orchestrator/lib/tasks/outcomeLink.js.map +7 -0
  538. package/dist/modules/agent_orchestrator/lib/tasks/schedule.js +63 -0
  539. package/dist/modules/agent_orchestrator/lib/tasks/schedule.js.map +7 -0
  540. package/dist/modules/agent_orchestrator/lib/tasks/scheduleValidation.js +25 -0
  541. package/dist/modules/agent_orchestrator/lib/tasks/scheduleValidation.js.map +7 -0
  542. package/dist/modules/agent_orchestrator/lib/tasks/triggers.js +34 -0
  543. package/dist/modules/agent_orchestrator/lib/tasks/triggers.js.map +7 -0
  544. package/dist/modules/agent_orchestrator/lib/tokens/computeAgentTokenUsage.js +70 -0
  545. package/dist/modules/agent_orchestrator/lib/tokens/computeAgentTokenUsage.js.map +7 -0
  546. package/dist/modules/agent_orchestrator/lib/tokens/types.js +1 -0
  547. package/dist/modules/agent_orchestrator/lib/tokens/types.js.map +7 -0
  548. package/dist/modules/agent_orchestrator/lib/trace/artifactStore.js +89 -0
  549. package/dist/modules/agent_orchestrator/lib/trace/artifactStore.js.map +7 -0
  550. package/dist/modules/agent_orchestrator/lib/trace/correctionService.js +61 -0
  551. package/dist/modules/agent_orchestrator/lib/trace/correctionService.js.map +7 -0
  552. package/dist/modules/agent_orchestrator/lib/trace/ingestAuth.js +39 -0
  553. package/dist/modules/agent_orchestrator/lib/trace/ingestAuth.js.map +7 -0
  554. package/dist/modules/agent_orchestrator/lib/trace/redactToolSummary.js +44 -0
  555. package/dist/modules/agent_orchestrator/lib/trace/redactToolSummary.js.map +7 -0
  556. package/dist/modules/agent_orchestrator/lib/trace/spanTimeline.js +96 -0
  557. package/dist/modules/agent_orchestrator/lib/trace/spanTimeline.js.map +7 -0
  558. package/dist/modules/agent_orchestrator/lib/trace/traceIngestionService.js +168 -0
  559. package/dist/modules/agent_orchestrator/lib/trace/traceIngestionService.js.map +7 -0
  560. package/dist/modules/agent_orchestrator/lib/webSearch/guardrails.js +116 -0
  561. package/dist/modules/agent_orchestrator/lib/webSearch/guardrails.js.map +7 -0
  562. package/dist/modules/agent_orchestrator/lib/webSearch/healthCache.js +68 -0
  563. package/dist/modules/agent_orchestrator/lib/webSearch/healthCache.js.map +7 -0
  564. package/dist/modules/agent_orchestrator/lib/webSearch/healthProbePlan.js +16 -0
  565. package/dist/modules/agent_orchestrator/lib/webSearch/healthProbePlan.js.map +7 -0
  566. package/dist/modules/agent_orchestrator/lib/webSearch/policy.js +172 -0
  567. package/dist/modules/agent_orchestrator/lib/webSearch/policy.js.map +7 -0
  568. package/dist/modules/agent_orchestrator/lib/webSearch/registry.js +113 -0
  569. package/dist/modules/agent_orchestrator/lib/webSearch/registry.js.map +7 -0
  570. package/dist/modules/agent_orchestrator/lib/webSearch/secretStorage.js +87 -0
  571. package/dist/modules/agent_orchestrator/lib/webSearch/secretStorage.js.map +7 -0
  572. package/dist/modules/agent_orchestrator/lib/webSearch/steps.js +48 -0
  573. package/dist/modules/agent_orchestrator/lib/webSearch/steps.js.map +7 -0
  574. package/dist/modules/agent_orchestrator/lib/webSearch/tools.js +176 -0
  575. package/dist/modules/agent_orchestrator/lib/webSearch/tools.js.map +7 -0
  576. package/dist/modules/agent_orchestrator/lib/workInbox/agentDispositionSource.js +151 -0
  577. package/dist/modules/agent_orchestrator/lib/workInbox/agentDispositionSource.js.map +7 -0
  578. package/dist/modules/agent_orchestrator/migrations/Migration20260906141535_agent_orchestrator.js +200 -0
  579. package/dist/modules/agent_orchestrator/migrations/Migration20260906141535_agent_orchestrator.js.map +7 -0
  580. package/dist/modules/agent_orchestrator/notifications.js +32 -0
  581. package/dist/modules/agent_orchestrator/notifications.js.map +7 -0
  582. package/dist/modules/agent_orchestrator/setup.js +147 -0
  583. package/dist/modules/agent_orchestrator/setup.js.map +7 -0
  584. package/dist/modules/agent_orchestrator/subscribers/process-event-trigger.js +140 -0
  585. package/dist/modules/agent_orchestrator/subscribers/process-event-trigger.js.map +7 -0
  586. package/dist/modules/agent_orchestrator/subscribers/process-proposal-created.js +17 -0
  587. package/dist/modules/agent_orchestrator/subscribers/process-proposal-created.js.map +7 -0
  588. package/dist/modules/agent_orchestrator/subscribers/process-proposal-disposed.js +15 -0
  589. package/dist/modules/agent_orchestrator/subscribers/process-proposal-disposed.js.map +7 -0
  590. package/dist/modules/agent_orchestrator/subscribers/process-run-completed.js +17 -0
  591. package/dist/modules/agent_orchestrator/subscribers/process-run-completed.js.map +7 -0
  592. package/dist/modules/agent_orchestrator/subscribers/process-run-ingested.js +17 -0
  593. package/dist/modules/agent_orchestrator/subscribers/process-run-ingested.js.map +7 -0
  594. package/dist/modules/agent_orchestrator/subscribers/process-workflow-cancelled.js +20 -0
  595. package/dist/modules/agent_orchestrator/subscribers/process-workflow-cancelled.js.map +7 -0
  596. package/dist/modules/agent_orchestrator/subscribers/process-workflow-completed.js +20 -0
  597. package/dist/modules/agent_orchestrator/subscribers/process-workflow-completed.js.map +7 -0
  598. package/dist/modules/agent_orchestrator/subscribers/process-workflow-failed.js +21 -0
  599. package/dist/modules/agent_orchestrator/subscribers/process-workflow-failed.js.map +7 -0
  600. package/dist/modules/agent_orchestrator/subscribers/process-workflow-milestone.js +30 -0
  601. package/dist/modules/agent_orchestrator/subscribers/process-workflow-milestone.js.map +7 -0
  602. package/dist/modules/agent_orchestrator/subscribers/process-workflow-started.js +25 -0
  603. package/dist/modules/agent_orchestrator/subscribers/process-workflow-started.js.map +7 -0
  604. package/dist/modules/agent_orchestrator/subscribers/proposal-disposed-notification-clear.js +34 -0
  605. package/dist/modules/agent_orchestrator/subscribers/proposal-disposed-notification-clear.js.map +7 -0
  606. package/dist/modules/agent_orchestrator/subscribers/proposal-pending-notification.js +53 -0
  607. package/dist/modules/agent_orchestrator/subscribers/proposal-pending-notification.js.map +7 -0
  608. package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.client.js +44 -0
  609. package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.client.js.map +7 -0
  610. package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.js +17 -0
  611. package/dist/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.js.map +7 -0
  612. package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.client.js +107 -0
  613. package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.client.js.map +7 -0
  614. package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.js +17 -0
  615. package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.js.map +7 -0
  616. package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-link/widget.js +28 -0
  617. package/dist/modules/agent_orchestrator/widgets/injection/task-proposal-link/widget.js.map +7 -0
  618. package/dist/modules/agent_orchestrator/widgets/injection-table.js +33 -0
  619. package/dist/modules/agent_orchestrator/widgets/injection-table.js.map +7 -0
  620. package/dist/modules/agent_orchestrator/workers/eval-suite-runner.js +56 -0
  621. package/dist/modules/agent_orchestrator/workers/eval-suite-runner.js.map +7 -0
  622. package/dist/modules/agent_orchestrator/workers/llm-judge.js +29 -0
  623. package/dist/modules/agent_orchestrator/workers/llm-judge.js.map +7 -0
  624. package/dist/modules/agent_orchestrator/workers/metric-rollup.js +29 -0
  625. package/dist/modules/agent_orchestrator/workers/metric-rollup.js.map +7 -0
  626. package/dist/modules/agent_orchestrator/workers/process-execution-starter.js +130 -0
  627. package/dist/modules/agent_orchestrator/workers/process-execution-starter.js.map +7 -0
  628. package/dist/modules/record_locks/lib/conflictValues.js +78 -0
  629. package/dist/modules/record_locks/lib/conflictValues.js.map +7 -0
  630. package/dist/modules/record_locks/lib/crudMutationGuardService.js +19 -4
  631. package/dist/modules/record_locks/lib/crudMutationGuardService.js.map +2 -2
  632. package/dist/modules/record_locks/lib/recordLockService.js +1 -44
  633. package/dist/modules/record_locks/lib/recordLockService.js.map +2 -2
  634. package/jest.config.cjs +2 -0
  635. package/package.json +18 -6
  636. package/src/index.ts +1 -1
  637. package/src/modules/agent_orchestrator/.ai/skills/om-create-opencode-agent/SKILL.md +251 -0
  638. package/src/modules/agent_orchestrator/AGENTS.md +374 -0
  639. package/src/modules/agent_orchestrator/DEMO.md +175 -0
  640. package/src/modules/agent_orchestrator/acl.ts +131 -0
  641. package/src/modules/agent_orchestrator/ai-agents.ts +70 -0
  642. package/src/modules/agent_orchestrator/ai-skills.ts +59 -0
  643. package/src/modules/agent_orchestrator/ai-tools.ts +391 -0
  644. package/src/modules/agent_orchestrator/api/agents/[id]/files/route.ts +77 -0
  645. package/src/modules/agent_orchestrator/api/agents/[id]/metrics/route.ts +106 -0
  646. package/src/modules/agent_orchestrator/api/agents/[id]/route.ts +166 -0
  647. package/src/modules/agent_orchestrator/api/agents/[id]/run/route.ts +339 -0
  648. package/src/modules/agent_orchestrator/api/agents/[id]/settings/route.ts +119 -0
  649. package/src/modules/agent_orchestrator/api/agents/route.ts +124 -0
  650. package/src/modules/agent_orchestrator/api/artifacts/file/[id]/route.ts +80 -0
  651. package/src/modules/agent_orchestrator/api/audit/by-instigator/[humanUserId]/route.ts +143 -0
  652. package/src/modules/agent_orchestrator/api/auto-approval/settings/route.ts +143 -0
  653. package/src/modules/agent_orchestrator/api/context-bundles/route.ts +89 -0
  654. package/src/modules/agent_orchestrator/api/corrections/route.ts +119 -0
  655. package/src/modules/agent_orchestrator/api/eval-assertions/preview/route.ts +123 -0
  656. package/src/modules/agent_orchestrator/api/eval-assertions/route.ts +228 -0
  657. package/src/modules/agent_orchestrator/api/eval-cases/[id]/approve/route.ts +101 -0
  658. package/src/modules/agent_orchestrator/api/eval-cases/[id]/archive/route.ts +100 -0
  659. package/src/modules/agent_orchestrator/api/eval-cases/[id]/route.ts +84 -0
  660. package/src/modules/agent_orchestrator/api/eval-cases/export/route.ts +92 -0
  661. package/src/modules/agent_orchestrator/api/eval-cases/route.ts +159 -0
  662. package/src/modules/agent_orchestrator/api/eval-runs/[id]/cancel/route.ts +78 -0
  663. package/src/modules/agent_orchestrator/api/eval-runs/[id]/case-runs/[caseRunId]/results/route.ts +82 -0
  664. package/src/modules/agent_orchestrator/api/eval-runs/[id]/route.ts +133 -0
  665. package/src/modules/agent_orchestrator/api/eval-runs/route.ts +197 -0
  666. package/src/modules/agent_orchestrator/api/eval-scorers/route.ts +51 -0
  667. package/src/modules/agent_orchestrator/api/executions/[id]/route.ts +106 -0
  668. package/src/modules/agent_orchestrator/api/executions/route.ts +206 -0
  669. package/src/modules/agent_orchestrator/api/features/route.ts +71 -0
  670. package/src/modules/agent_orchestrator/api/guardrail-checks/route.ts +86 -0
  671. package/src/modules/agent_orchestrator/api/identity/agent/auth/route.ts +121 -0
  672. package/src/modules/agent_orchestrator/api/identity/grants/[id]/revoke/route.ts +133 -0
  673. package/src/modules/agent_orchestrator/api/identity/token/route.ts +102 -0
  674. package/src/modules/agent_orchestrator/api/identity/well-known/route.ts +60 -0
  675. package/src/modules/agent_orchestrator/api/metrics/agents/route.ts +160 -0
  676. package/src/modules/agent_orchestrator/api/metrics/overview/route.ts +240 -0
  677. package/src/modules/agent_orchestrator/api/openapi.ts +31 -0
  678. package/src/modules/agent_orchestrator/api/processes/[id]/executions/route.ts +211 -0
  679. package/src/modules/agent_orchestrator/api/processes/[id]/route.ts +70 -0
  680. package/src/modules/agent_orchestrator/api/processes/route.ts +458 -0
  681. package/src/modules/agent_orchestrator/api/proposals/[id]/dispose/route.ts +131 -0
  682. package/src/modules/agent_orchestrator/api/proposals/route.ts +113 -0
  683. package/src/modules/agent_orchestrator/api/runs/[id]/artifact/route.ts +93 -0
  684. package/src/modules/agent_orchestrator/api/runs/[id]/artifacts/route.ts +83 -0
  685. package/src/modules/agent_orchestrator/api/runs/[id]/eval-case/route.ts +91 -0
  686. package/src/modules/agent_orchestrator/api/runs/[id]/flag/route.ts +89 -0
  687. package/src/modules/agent_orchestrator/api/runs/[id]/rerun/route.ts +195 -0
  688. package/src/modules/agent_orchestrator/api/runs/[id]/route.ts +102 -0
  689. package/src/modules/agent_orchestrator/api/runs/route.ts +146 -0
  690. package/src/modules/agent_orchestrator/api/tokens/estimate/route.ts +61 -0
  691. package/src/modules/agent_orchestrator/api/trace/ingest/route.ts +98 -0
  692. package/src/modules/agent_orchestrator/api/web-search/health/route.ts +268 -0
  693. package/src/modules/agent_orchestrator/api/web-search/preview/route.ts +184 -0
  694. package/src/modules/agent_orchestrator/api/web-search/settings/route.ts +309 -0
  695. package/src/modules/agent_orchestrator/auth.md +107 -0
  696. package/src/modules/agent_orchestrator/backend/agents/[id]/components/ActivityTab.tsx +118 -0
  697. package/src/modules/agent_orchestrator/backend/agents/[id]/components/AgentConfigDrawer.tsx +96 -0
  698. package/src/modules/agent_orchestrator/backend/agents/[id]/components/AgentHeaderCard.tsx +174 -0
  699. package/src/modules/agent_orchestrator/backend/agents/[id]/components/AssertionFormDrawer.tsx +418 -0
  700. package/src/modules/agent_orchestrator/backend/agents/[id]/components/ConfigurationTab.tsx +185 -0
  701. package/src/modules/agent_orchestrator/backend/agents/[id]/components/EvalCaseDrawer.tsx +488 -0
  702. package/src/modules/agent_orchestrator/backend/agents/[id]/components/EvalResultsDrawer.tsx +244 -0
  703. package/src/modules/agent_orchestrator/backend/agents/[id]/components/EvaluationTab.tsx +715 -0
  704. package/src/modules/agent_orchestrator/backend/agents/[id]/components/FilesTab.tsx +328 -0
  705. package/src/modules/agent_orchestrator/backend/agents/[id]/components/OverviewTab.tsx +211 -0
  706. package/src/modules/agent_orchestrator/backend/agents/[id]/components/RunEvaluationDrawer.tsx +247 -0
  707. package/src/modules/agent_orchestrator/backend/agents/[id]/components/TokenCalculatorTab.tsx +143 -0
  708. package/src/modules/agent_orchestrator/backend/agents/[id]/components/filesShared.ts +149 -0
  709. package/src/modules/agent_orchestrator/backend/agents/[id]/components/workspacePrimitives.tsx +236 -0
  710. package/src/modules/agent_orchestrator/backend/agents/[id]/components/workspaceShared.ts +193 -0
  711. package/src/modules/agent_orchestrator/backend/agents/[id]/page.meta.ts +14 -0
  712. package/src/modules/agent_orchestrator/backend/agents/[id]/page.tsx +335 -0
  713. package/src/modules/agent_orchestrator/backend/agents/agentListFilters.ts +95 -0
  714. package/src/modules/agent_orchestrator/backend/agents/page.meta.ts +26 -0
  715. package/src/modules/agent_orchestrator/backend/agents/page.tsx +549 -0
  716. package/src/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.meta.ts +15 -0
  717. package/src/modules/agent_orchestrator/backend/audit/by-instigator/[humanUserId]/page.tsx +126 -0
  718. package/src/modules/agent_orchestrator/backend/audit/page.meta.ts +25 -0
  719. package/src/modules/agent_orchestrator/backend/audit/page.tsx +392 -0
  720. package/src/modules/agent_orchestrator/backend/caseload/[proposalId]/page.meta.ts +14 -0
  721. package/src/modules/agent_orchestrator/backend/caseload/[proposalId]/page.tsx +298 -0
  722. package/src/modules/agent_orchestrator/backend/caseload/hooks.ts +583 -0
  723. package/src/modules/agent_orchestrator/backend/caseload/page.meta.ts +23 -0
  724. package/src/modules/agent_orchestrator/backend/caseload/page.tsx +1761 -0
  725. package/src/modules/agent_orchestrator/backend/eval-cases/[id]/page.meta.ts +14 -0
  726. package/src/modules/agent_orchestrator/backend/eval-cases/[id]/page.tsx +446 -0
  727. package/src/modules/agent_orchestrator/backend/eval-runs/[id]/page.meta.ts +14 -0
  728. package/src/modules/agent_orchestrator/backend/eval-runs/[id]/page.tsx +824 -0
  729. package/src/modules/agent_orchestrator/backend/overview/page.meta.ts +25 -0
  730. package/src/modules/agent_orchestrator/backend/overview/page.tsx +755 -0
  731. package/src/modules/agent_orchestrator/backend/playground/PlaygroundEvalPanel.tsx +292 -0
  732. package/src/modules/agent_orchestrator/backend/playground/page.meta.ts +22 -0
  733. package/src/modules/agent_orchestrator/backend/playground/page.tsx +647 -0
  734. package/src/modules/agent_orchestrator/backend/processes/[id]/page.meta.ts +14 -0
  735. package/src/modules/agent_orchestrator/backend/processes/[id]/page.tsx +856 -0
  736. package/src/modules/agent_orchestrator/backend/processes/definitions/MilestoneEditor.tsx +285 -0
  737. package/src/modules/agent_orchestrator/backend/processes/definitions/TriggerEditor.tsx +391 -0
  738. package/src/modules/agent_orchestrator/backend/processes/definitions/[id]/page.meta.ts +13 -0
  739. package/src/modules/agent_orchestrator/backend/processes/definitions/[id]/page.tsx +705 -0
  740. package/src/modules/agent_orchestrator/backend/processes/definitions/formHelpers.ts +100 -0
  741. package/src/modules/agent_orchestrator/backend/processes/definitions/navigation.ts +6 -0
  742. package/src/modules/agent_orchestrator/backend/processes/definitions/page.meta.ts +23 -0
  743. package/src/modules/agent_orchestrator/backend/processes/definitions/page.tsx +904 -0
  744. package/src/modules/agent_orchestrator/backend/processes/page.meta.ts +27 -0
  745. package/src/modules/agent_orchestrator/backend/processes/page.tsx +317 -0
  746. package/src/modules/agent_orchestrator/backend/settings/auto-approval/page.meta.ts +28 -0
  747. package/src/modules/agent_orchestrator/backend/settings/auto-approval/page.tsx +315 -0
  748. package/src/modules/agent_orchestrator/backend/settings/web-search/AdapterRow.tsx +351 -0
  749. package/src/modules/agent_orchestrator/backend/settings/web-search/WebSearchPreview.tsx +203 -0
  750. package/src/modules/agent_orchestrator/backend/settings/web-search/page.meta.ts +30 -0
  751. package/src/modules/agent_orchestrator/backend/settings/web-search/page.tsx +913 -0
  752. package/src/modules/agent_orchestrator/backend/traces/[id]/page.meta.ts +14 -0
  753. package/src/modules/agent_orchestrator/backend/traces/[id]/page.tsx +1383 -0
  754. package/src/modules/agent_orchestrator/backend/traces/page.meta.ts +22 -0
  755. package/src/modules/agent_orchestrator/backend/traces/page.tsx +601 -0
  756. package/src/modules/agent_orchestrator/cli.ts +719 -0
  757. package/src/modules/agent_orchestrator/commands/artifacts.ts +171 -0
  758. package/src/modules/agent_orchestrator/commands/corrections.ts +345 -0
  759. package/src/modules/agent_orchestrator/commands/dispose.ts +380 -0
  760. package/src/modules/agent_orchestrator/commands/evalRuns.ts +291 -0
  761. package/src/modules/agent_orchestrator/commands/grants.ts +149 -0
  762. package/src/modules/agent_orchestrator/commands/index.ts +10 -0
  763. package/src/modules/agent_orchestrator/commands/processes.ts +176 -0
  764. package/src/modules/agent_orchestrator/commands/proposals.ts +82 -0
  765. package/src/modules/agent_orchestrator/commands/runActions.ts +52 -0
  766. package/src/modules/agent_orchestrator/commands/runs.ts +212 -0
  767. package/src/modules/agent_orchestrator/commands/trace.ts +118 -0
  768. package/src/modules/agent_orchestrator/components/AgentIoDrawer.tsx +87 -0
  769. package/src/modules/agent_orchestrator/components/AgentTimeline.tsx +175 -0
  770. package/src/modules/agent_orchestrator/components/DisposeDialog.tsx +112 -0
  771. package/src/modules/agent_orchestrator/components/EmptyArt.tsx +51 -0
  772. package/src/modules/agent_orchestrator/components/InvokeAgentNodeConfig.tsx +150 -0
  773. package/src/modules/agent_orchestrator/components/ProcessOutcomeLink.tsx +50 -0
  774. package/src/modules/agent_orchestrator/components/ProposalCard.tsx +602 -0
  775. package/src/modules/agent_orchestrator/components/ProposalFacts.tsx +139 -0
  776. package/src/modules/agent_orchestrator/components/ProposalOptionList.tsx +273 -0
  777. package/src/modules/agent_orchestrator/components/ProposeOnlyNotice.tsx +40 -0
  778. package/src/modules/agent_orchestrator/components/SkillDrawer.tsx +75 -0
  779. package/src/modules/agent_orchestrator/components/StartHereGuide.tsx +241 -0
  780. package/src/modules/agent_orchestrator/components/SystemHealthTile.tsx +189 -0
  781. package/src/modules/agent_orchestrator/components/WebSearchActivity.tsx +180 -0
  782. package/src/modules/agent_orchestrator/components/agentChips.tsx +123 -0
  783. package/src/modules/agent_orchestrator/components/cockpitStatus.tsx +154 -0
  784. package/src/modules/agent_orchestrator/components/evalRunTypes.ts +339 -0
  785. package/src/modules/agent_orchestrator/components/health/HealthRow.tsx +36 -0
  786. package/src/modules/agent_orchestrator/components/health/HealthStateBadge.tsx +21 -0
  787. package/src/modules/agent_orchestrator/components/health/SystemHealthPanel.tsx +206 -0
  788. package/src/modules/agent_orchestrator/components/health/vocabulary.ts +53 -0
  789. package/src/modules/agent_orchestrator/components/optionalRequest.ts +18 -0
  790. package/src/modules/agent_orchestrator/components/playgroundRunError.ts +63 -0
  791. package/src/modules/agent_orchestrator/components/playgroundToolCalls.ts +32 -0
  792. package/src/modules/agent_orchestrator/components/processTypes.ts +613 -0
  793. package/src/modules/agent_orchestrator/components/proposalCaseStatus.ts +100 -0
  794. package/src/modules/agent_orchestrator/components/proposalEdit.ts +118 -0
  795. package/src/modules/agent_orchestrator/components/proposalFactsData.ts +222 -0
  796. package/src/modules/agent_orchestrator/components/serverSort.ts +56 -0
  797. package/src/modules/agent_orchestrator/components/subjectRef.ts +61 -0
  798. package/src/modules/agent_orchestrator/components/types.ts +834 -0
  799. package/src/modules/agent_orchestrator/components/useAgentIcons.ts +42 -0
  800. package/src/modules/agent_orchestrator/components/useAgentLabels.ts +44 -0
  801. package/src/modules/agent_orchestrator/components/useAgentTags.ts +38 -0
  802. package/src/modules/agent_orchestrator/components/useCoalescedReload.ts +43 -0
  803. package/src/modules/agent_orchestrator/data/agentIcons.ts +52 -0
  804. package/src/modules/agent_orchestrator/data/agentTags.ts +39 -0
  805. package/src/modules/agent_orchestrator/data/entities.ts +1904 -0
  806. package/src/modules/agent_orchestrator/data/proposalEnvelope.ts +263 -0
  807. package/src/modules/agent_orchestrator/data/validators.ts +1585 -0
  808. package/src/modules/agent_orchestrator/di.ts +182 -0
  809. package/src/modules/agent_orchestrator/encryption.ts +98 -0
  810. package/src/modules/agent_orchestrator/events.ts +97 -0
  811. package/src/modules/agent_orchestrator/examples/deals-health-check-workflow.json +124 -0
  812. package/src/modules/agent_orchestrator/examples/refund-triage-workflow.json +210 -0
  813. package/src/modules/agent_orchestrator/generated/file-agents.generated.ts +207 -0
  814. package/src/modules/agent_orchestrator/i18n/.hardcoded-allowlist.json +22 -0
  815. package/src/modules/agent_orchestrator/i18n/de.json +1495 -0
  816. package/src/modules/agent_orchestrator/i18n/en.json +1495 -0
  817. package/src/modules/agent_orchestrator/i18n/es.json +1495 -0
  818. package/src/modules/agent_orchestrator/i18n/ko.json +1495 -0
  819. package/src/modules/agent_orchestrator/i18n/pl.json +1495 -0
  820. package/src/modules/agent_orchestrator/index.ts +155 -0
  821. package/src/modules/agent_orchestrator/lib/automationLinks.ts +20 -0
  822. package/src/modules/agent_orchestrator/lib/context/contextResolver.ts +528 -0
  823. package/src/modules/agent_orchestrator/lib/context/documentIngest.ts +187 -0
  824. package/src/modules/agent_orchestrator/lib/context/documentOcrProvider.ts +189 -0
  825. package/src/modules/agent_orchestrator/lib/context/documentSource.ts +88 -0
  826. package/src/modules/agent_orchestrator/lib/context/index.ts +68 -0
  827. package/src/modules/agent_orchestrator/lib/context/packer.ts +114 -0
  828. package/src/modules/agent_orchestrator/lib/context/redactor.ts +138 -0
  829. package/src/modules/agent_orchestrator/lib/context/registry.ts +153 -0
  830. package/src/modules/agent_orchestrator/lib/context/retrievalSource.ts +146 -0
  831. package/src/modules/agent_orchestrator/lib/crudCache.ts +62 -0
  832. package/src/modules/agent_orchestrator/lib/disposition/autoApprovalPolicy.ts +163 -0
  833. package/src/modules/agent_orchestrator/lib/disposition/dispositionService.ts +310 -0
  834. package/src/modules/agent_orchestrator/lib/disposition/resume.ts +81 -0
  835. package/src/modules/agent_orchestrator/lib/disposition/tenantAutoApprovalPolicy.ts +100 -0
  836. package/src/modules/agent_orchestrator/lib/eval/assertionResolution.ts +105 -0
  837. package/src/modules/agent_orchestrator/lib/eval/canonicalInputKey.ts +32 -0
  838. package/src/modules/agent_orchestrator/lib/eval/defaultAssertions.ts +103 -0
  839. package/src/modules/agent_orchestrator/lib/eval/evalGate.ts +139 -0
  840. package/src/modules/agent_orchestrator/lib/eval/evalReplayService.ts +517 -0
  841. package/src/modules/agent_orchestrator/lib/eval/evalRuntimeService.ts +215 -0
  842. package/src/modules/agent_orchestrator/lib/eval/judgeRubric.ts +212 -0
  843. package/src/modules/agent_orchestrator/lib/eval/llmJudge.ts +174 -0
  844. package/src/modules/agent_orchestrator/lib/eval/projectRunView.ts +53 -0
  845. package/src/modules/agent_orchestrator/lib/eval/registry/agent.ts +334 -0
  846. package/src/modules/agent_orchestrator/lib/eval/registry/economics.ts +91 -0
  847. package/src/modules/agent_orchestrator/lib/eval/registry/index.ts +157 -0
  848. package/src/modules/agent_orchestrator/lib/eval/registry/judge.ts +102 -0
  849. package/src/modules/agent_orchestrator/lib/eval/registry/shared.ts +208 -0
  850. package/src/modules/agent_orchestrator/lib/eval/registry/structured.ts +297 -0
  851. package/src/modules/agent_orchestrator/lib/eval/registry/text.ts +125 -0
  852. package/src/modules/agent_orchestrator/lib/eval/registry/tools.ts +263 -0
  853. package/src/modules/agent_orchestrator/lib/eval/sampling.ts +33 -0
  854. package/src/modules/agent_orchestrator/lib/eval/scorers.ts +90 -0
  855. package/src/modules/agent_orchestrator/lib/eval/types.ts +189 -0
  856. package/src/modules/agent_orchestrator/lib/featureFlags.ts +22 -0
  857. package/src/modules/agent_orchestrator/lib/guardrails/grounding.ts +172 -0
  858. package/src/modules/agent_orchestrator/lib/guardrails/groundingSets.ts +61 -0
  859. package/src/modules/agent_orchestrator/lib/guardrails/guardrailService.ts +293 -0
  860. package/src/modules/agent_orchestrator/lib/guardrails/promptInjection.ts +163 -0
  861. package/src/modules/agent_orchestrator/lib/guardrails/publicEndpointRateLimit.ts +74 -0
  862. package/src/modules/agent_orchestrator/lib/guardrails/syncGroundingSets.ts +68 -0
  863. package/src/modules/agent_orchestrator/lib/identity/agentAuthMdService.ts +247 -0
  864. package/src/modules/agent_orchestrator/lib/identity/agentDelegationGrantService.ts +85 -0
  865. package/src/modules/agent_orchestrator/lib/identity/agentNoBypassSubscriber.ts +98 -0
  866. package/src/modules/agent_orchestrator/lib/identity/agentPrincipalService.ts +230 -0
  867. package/src/modules/agent_orchestrator/lib/identity/agentTokenService.ts +281 -0
  868. package/src/modules/agent_orchestrator/lib/identity/agentWriteScope.ts +68 -0
  869. package/src/modules/agent_orchestrator/lib/metrics/metricRollupService.ts +168 -0
  870. package/src/modules/agent_orchestrator/lib/processes/executionSearch.ts +35 -0
  871. package/src/modules/agent_orchestrator/lib/processes/materializeAgentWorkflow.ts +320 -0
  872. package/src/modules/agent_orchestrator/lib/processes/processProjection.ts +401 -0
  873. package/src/modules/agent_orchestrator/lib/processes/subjectContext.ts +30 -0
  874. package/src/modules/agent_orchestrator/lib/processes/workflowGrant.ts +84 -0
  875. package/src/modules/agent_orchestrator/lib/queue.ts +56 -0
  876. package/src/modules/agent_orchestrator/lib/runtime/actionVocabulary.ts +127 -0
  877. package/src/modules/agent_orchestrator/lib/runtime/admission.ts +177 -0
  878. package/src/modules/agent_orchestrator/lib/runtime/agentRunSessionStore.ts +166 -0
  879. package/src/modules/agent_orchestrator/lib/runtime/agentRuntime.ts +108 -0
  880. package/src/modules/agent_orchestrator/lib/runtime/agentWorkspaceManager.ts +187 -0
  881. package/src/modules/agent_orchestrator/lib/runtime/artifactCollector.ts +188 -0
  882. package/src/modules/agent_orchestrator/lib/runtime/artifactFileStore.ts +189 -0
  883. package/src/modules/agent_orchestrator/lib/runtime/attachmentStager.ts +100 -0
  884. package/src/modules/agent_orchestrator/lib/runtime/errors.ts +63 -0
  885. package/src/modules/agent_orchestrator/lib/runtime/executeProposal.ts +78 -0
  886. package/src/modules/agent_orchestrator/lib/runtime/fileAgentSkills.ts +81 -0
  887. package/src/modules/agent_orchestrator/lib/runtime/fileInput.ts +44 -0
  888. package/src/modules/agent_orchestrator/lib/runtime/invokeAgentForWorkflow.ts +255 -0
  889. package/src/modules/agent_orchestrator/lib/runtime/modelPricing.ts +146 -0
  890. package/src/modules/agent_orchestrator/lib/runtime/nativeAgentRunner.ts +617 -0
  891. package/src/modules/agent_orchestrator/lib/runtime/nativeTraceCapture.ts +217 -0
  892. package/src/modules/agent_orchestrator/lib/runtime/openCodeAgentRunner.ts +889 -0
  893. package/src/modules/agent_orchestrator/lib/runtime/persistence.ts +314 -0
  894. package/src/modules/agent_orchestrator/lib/runtime/providerBudget.ts +230 -0
  895. package/src/modules/agent_orchestrator/lib/runtime/rerunContext.ts +26 -0
  896. package/src/modules/agent_orchestrator/lib/runtime/runContext.ts +47 -0
  897. package/src/modules/agent_orchestrator/lib/runtime/sandboxedScript.ts +106 -0
  898. package/src/modules/agent_orchestrator/lib/sdk/agentMarkdown.ts +157 -0
  899. package/src/modules/agent_orchestrator/lib/sdk/agentOutcomeContract.ts +58 -0
  900. package/src/modules/agent_orchestrator/lib/sdk/defineAgent.ts +525 -0
  901. package/src/modules/agent_orchestrator/lib/sdk/defineFileAgent.ts +765 -0
  902. package/src/modules/agent_orchestrator/lib/sdk/defineSkill.ts +80 -0
  903. package/src/modules/agent_orchestrator/lib/sdk/outcomeSchema.ts +190 -0
  904. package/src/modules/agent_orchestrator/lib/sdk/skillMarkdown.ts +139 -0
  905. package/src/modules/agent_orchestrator/lib/seeds.ts +335 -0
  906. package/src/modules/agent_orchestrator/lib/settings/agentSettings.ts +92 -0
  907. package/src/modules/agent_orchestrator/lib/systemHealth.ts +212 -0
  908. package/src/modules/agent_orchestrator/lib/tasks/eventTriggerMatch.ts +116 -0
  909. package/src/modules/agent_orchestrator/lib/tasks/milestones.ts +201 -0
  910. package/src/modules/agent_orchestrator/lib/tasks/outcome.ts +93 -0
  911. package/src/modules/agent_orchestrator/lib/tasks/outcomeLink.ts +91 -0
  912. package/src/modules/agent_orchestrator/lib/tasks/schedule.ts +106 -0
  913. package/src/modules/agent_orchestrator/lib/tasks/scheduleValidation.ts +34 -0
  914. package/src/modules/agent_orchestrator/lib/tasks/triggers.ts +47 -0
  915. package/src/modules/agent_orchestrator/lib/tokens/computeAgentTokenUsage.ts +111 -0
  916. package/src/modules/agent_orchestrator/lib/tokens/types.ts +77 -0
  917. package/src/modules/agent_orchestrator/lib/trace/artifactStore.ts +198 -0
  918. package/src/modules/agent_orchestrator/lib/trace/correctionService.ts +117 -0
  919. package/src/modules/agent_orchestrator/lib/trace/ingestAuth.ts +65 -0
  920. package/src/modules/agent_orchestrator/lib/trace/redactToolSummary.ts +76 -0
  921. package/src/modules/agent_orchestrator/lib/trace/spanTimeline.ts +181 -0
  922. package/src/modules/agent_orchestrator/lib/trace/traceIngestionService.ts +250 -0
  923. package/src/modules/agent_orchestrator/lib/webSearch/guardrails.ts +199 -0
  924. package/src/modules/agent_orchestrator/lib/webSearch/healthCache.ts +109 -0
  925. package/src/modules/agent_orchestrator/lib/webSearch/healthProbePlan.ts +58 -0
  926. package/src/modules/agent_orchestrator/lib/webSearch/policy.ts +283 -0
  927. package/src/modules/agent_orchestrator/lib/webSearch/registry.ts +177 -0
  928. package/src/modules/agent_orchestrator/lib/webSearch/secretStorage.ts +181 -0
  929. package/src/modules/agent_orchestrator/lib/webSearch/steps.ts +77 -0
  930. package/src/modules/agent_orchestrator/lib/webSearch/tools.ts +246 -0
  931. package/src/modules/agent_orchestrator/lib/workInbox/agentDispositionSource.ts +324 -0
  932. package/src/modules/agent_orchestrator/migrations/.snapshot-open-mercato.json +7083 -0
  933. package/src/modules/agent_orchestrator/migrations/Migration20260906141535_agent_orchestrator.ts +278 -0
  934. package/src/modules/agent_orchestrator/migrations/adopt-squash.mjs +232 -0
  935. package/src/modules/agent_orchestrator/notifications.ts +43 -0
  936. package/src/modules/agent_orchestrator/setup.ts +190 -0
  937. package/src/modules/agent_orchestrator/skills/deals.stage_playbook.md +37 -0
  938. package/src/modules/agent_orchestrator/subscribers/process-event-trigger.ts +198 -0
  939. package/src/modules/agent_orchestrator/subscribers/process-proposal-created.ts +28 -0
  940. package/src/modules/agent_orchestrator/subscribers/process-proposal-disposed.ts +20 -0
  941. package/src/modules/agent_orchestrator/subscribers/process-run-completed.ts +23 -0
  942. package/src/modules/agent_orchestrator/subscribers/process-run-ingested.ts +22 -0
  943. package/src/modules/agent_orchestrator/subscribers/process-workflow-cancelled.ts +22 -0
  944. package/src/modules/agent_orchestrator/subscribers/process-workflow-completed.ts +32 -0
  945. package/src/modules/agent_orchestrator/subscribers/process-workflow-failed.ts +23 -0
  946. package/src/modules/agent_orchestrator/subscribers/process-workflow-milestone.ts +47 -0
  947. package/src/modules/agent_orchestrator/subscribers/process-workflow-started.ts +34 -0
  948. package/src/modules/agent_orchestrator/subscribers/proposal-disposed-notification-clear.ts +50 -0
  949. package/src/modules/agent_orchestrator/subscribers/proposal-pending-notification.ts +84 -0
  950. package/src/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.client.tsx +68 -0
  951. package/src/modules/agent_orchestrator/widgets/injection/caseload-nav-badge/widget.ts +16 -0
  952. package/src/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.client.tsx +148 -0
  953. package/src/modules/agent_orchestrator/widgets/injection/task-proposal-draft/widget.ts +24 -0
  954. package/src/modules/agent_orchestrator/widgets/injection/task-proposal-link/widget.ts +34 -0
  955. package/src/modules/agent_orchestrator/widgets/injection-table.ts +42 -0
  956. package/src/modules/agent_orchestrator/workers/eval-suite-runner.ts +85 -0
  957. package/src/modules/agent_orchestrator/workers/llm-judge.ts +39 -0
  958. package/src/modules/agent_orchestrator/workers/metric-rollup.ts +39 -0
  959. package/src/modules/agent_orchestrator/workers/process-execution-starter.ts +227 -0
  960. package/src/modules/record_locks/lib/conflictValues.ts +107 -0
  961. package/src/modules/record_locks/lib/crudMutationGuardService.ts +47 -3
  962. 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
+ "mappings": ";AAuPM,SACE,KADF;AArPN,YAAY,WAAW;AACvB,SAAS,iBAAiB;AAE1B,SAAS,SAAS;AAClB,SAAS,MAAM,KAAK,YAAY,cAAc,eAAe,MAAM,OAAO,GAAG,qBAAqB;AAClG,SAAS,MAAM,g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,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,EAC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,QACC;AAAA,QACA,MAAM;AAAA,QACN,UAAQ;AAAA,QACR,eAAa;AAAA,QACb,SAAS,oBAAoB,MAAM,0BAA0B;AAAA,QAC7D,iBAAiB,CAAC,SAChB,QAAQ,oBAAoB,MAAM,0BAA0B,CAAC;AAAA,QAE/D,YAAY,CAAC,QAAQ,OAAO,KAAK,sBAAsB,mBAAmB,IAAI,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
+ }