@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,443 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { useSearchParams } from "next/navigation";
5
+ import { Play, Plug, RotateCw, Server, ShieldAlert, SquareCode } from "lucide-react";
6
+ import { Page, PageBody } from "@open-mercato/ui/backend/Page";
7
+ import { Button } from "@open-mercato/ui/primitives/button";
8
+ import { Textarea } from "@open-mercato/ui/primitives/textarea";
9
+ import { Spinner } from "@open-mercato/ui/primitives/spinner";
10
+ import { Alert } from "@open-mercato/ui/primitives/alert";
11
+ import { EmptyState } from "@open-mercato/ui/primitives/empty-state";
12
+ import { StatusBadge } from "@open-mercato/ui/primitives/status-badge";
13
+ import { SimpleTooltip } from "@open-mercato/ui/primitives/tooltip";
14
+ import {
15
+ Select,
16
+ SelectContent,
17
+ SelectItem,
18
+ SelectTrigger,
19
+ SelectValue
20
+ } from "@open-mercato/ui/primitives/select";
21
+ import { JsonDisplay } from "@open-mercato/ui/backend/JsonDisplay";
22
+ import { SectionHeader, CollapsibleSection } from "@open-mercato/ui/backend/SectionHeader";
23
+ import { apiCall } from "@open-mercato/ui/backend/utils/apiCall";
24
+ import { useT } from "@open-mercato/shared/lib/i18n/context";
25
+ import { useBackendChrome } from "@open-mercato/ui/backend/BackendChromeProvider";
26
+ import { hasFeature } from "@open-mercato/shared/security/features";
27
+ import { ProposeOnlyNotice } from "../../components/ProposeOnlyNotice.js";
28
+ import { AUTOMATION_AUTHOR_FEATURE, AUTOMATION_EDITOR_HREF } from "../../lib/automationLinks.js";
29
+ import { ProposalCard } from "../../components/ProposalCard.js";
30
+ import { WebSearchActivity } from "../../components/WebSearchActivity.js";
31
+ import { mapAdHocProposal, mapAgent } from "../../components/types.js";
32
+ import { toolPanelStateFromResponse } from "../../components/playgroundToolCalls.js";
33
+ import { runErrorStateFromBody } from "../../components/playgroundRunError.js";
34
+ import { Chip, TYPE_ICON, RUNTIME_ICON, resolveAgentIcon } from "../../components/agentChips.js";
35
+ import { PlaygroundEvalPanel } from "./PlaygroundEvalPanel.js";
36
+ const CONN_VARIANT = {
37
+ ok: "success",
38
+ warn: "warning",
39
+ down: "error",
40
+ unknown: "neutral"
41
+ };
42
+ function connectionsFromHealth(result) {
43
+ const opencodeHealthy = result?.opencode?.healthy === true;
44
+ const mcpEntries = Object.entries(result?.mcp ?? {}).map(([name, value]) => ({
45
+ name,
46
+ status: typeof value?.status === "string" ? value.status : "unknown"
47
+ }));
48
+ const mcpBridge = mcpEntries.some((entry) => entry.status === "connected") ? "ok" : mcpEntries.some((entry) => entry.status === "connecting") ? "warn" : mcpEntries.length > 0 ? "down" : "unknown";
49
+ const mcpServer = result?.mcpHealth ? result.mcpHealth.healthy === true ? "ok" : "down" : "unknown";
50
+ return {
51
+ opencode: opencodeHealthy ? "ok" : "down",
52
+ opencodeVersion: typeof result?.opencode?.version === "string" ? result.opencode.version : null,
53
+ mcpBridge,
54
+ mcpBridgeServers: mcpEntries,
55
+ mcpServer,
56
+ mcpServerTools: typeof result?.mcpHealth?.tools === "number" ? result.mcpHealth.tools : null
57
+ };
58
+ }
59
+ function ConnectionBadges() {
60
+ const t = useT();
61
+ const [state, setState] = React.useState({ mode: "loading" });
62
+ const load = React.useCallback(async () => {
63
+ const call = await apiCall("/api/ai_assistant/health", void 0, { fallback: null });
64
+ if (!call.ok) {
65
+ if (call.status === 401 || call.status === 403) {
66
+ setState({ mode: "hidden" });
67
+ return;
68
+ }
69
+ setState({
70
+ mode: "ready",
71
+ opencode: "down",
72
+ opencodeVersion: null,
73
+ mcpBridge: "unknown",
74
+ mcpBridgeServers: [],
75
+ mcpServer: "unknown",
76
+ mcpServerTools: null
77
+ });
78
+ return;
79
+ }
80
+ setState({ mode: "ready", ...connectionsFromHealth(call.result) });
81
+ }, []);
82
+ React.useEffect(() => {
83
+ void load();
84
+ }, [load]);
85
+ if (state.mode === "hidden") return null;
86
+ if (state.mode === "loading") {
87
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5", children: /* @__PURE__ */ jsx(StatusBadge, { variant: "neutral", dot: true, children: t("agent_orchestrator.playground.connections.checking", "Checking\u2026") }) });
88
+ }
89
+ const stateLabel = (value) => value === "ok" ? t("agent_orchestrator.playground.connections.connected", "Connected") : value === "warn" ? t("agent_orchestrator.playground.connections.connecting", "Connecting\u2026") : value === "down" ? t("agent_orchestrator.playground.connections.disconnected", "Not connected") : t("agent_orchestrator.playground.connections.unknown", "Status unknown");
90
+ const opencodeTooltip = state.opencode === "ok" && state.opencodeVersion ? `${stateLabel(state.opencode)} \xB7 ${t("agent_orchestrator.playground.connections.version", "Version {version}", { version: state.opencodeVersion })}` : stateLabel(state.opencode);
91
+ const mcpBridgeTooltip = state.mcpBridgeServers.length > 0 ? state.mcpBridgeServers.map((server) => `${server.name}: ${server.status}`).join(" \xB7 ") : stateLabel(state.mcpBridge);
92
+ const mcpServerTooltip = state.mcpServer === "ok" && state.mcpServerTools !== null ? `${stateLabel(state.mcpServer)} \xB7 ${t("agent_orchestrator.playground.connections.tools", "{count} tools", { count: state.mcpServerTools })}` : stateLabel(state.mcpServer);
93
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
94
+ /* @__PURE__ */ jsx(SimpleTooltip, { content: opencodeTooltip, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(StatusBadge, { variant: CONN_VARIANT[state.opencode], dot: true, className: "gap-1.5", children: [
95
+ /* @__PURE__ */ jsx(SquareCode, { className: "size-3.5 shrink-0", "aria-hidden": true }),
96
+ t("agent_orchestrator.playground.connections.opencode", "OpenCode")
97
+ ] }) }) }),
98
+ /* @__PURE__ */ jsx(SimpleTooltip, { content: mcpBridgeTooltip, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(StatusBadge, { variant: CONN_VARIANT[state.mcpBridge], dot: true, className: "gap-1.5", children: [
99
+ /* @__PURE__ */ jsx(Plug, { className: "size-3.5 shrink-0", "aria-hidden": true }),
100
+ t("agent_orchestrator.playground.connections.mcpBridge", "MCP \u2194 OpenCode")
101
+ ] }) }) }),
102
+ /* @__PURE__ */ jsx(SimpleTooltip, { content: mcpServerTooltip, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(StatusBadge, { variant: CONN_VARIANT[state.mcpServer], dot: true, className: "gap-1.5", children: [
103
+ /* @__PURE__ */ jsx(Server, { className: "size-3.5 shrink-0", "aria-hidden": true }),
104
+ t("agent_orchestrator.playground.connections.mcp", "MCP")
105
+ ] }) }) }),
106
+ /* @__PURE__ */ jsx(
107
+ Button,
108
+ {
109
+ type: "button",
110
+ variant: "ghost",
111
+ size: "sm",
112
+ className: "size-7 p-0",
113
+ "aria-label": t("agent_orchestrator.playground.connections.refresh", "Re-check connections"),
114
+ onClick: () => {
115
+ setState({ mode: "loading" });
116
+ void load();
117
+ },
118
+ children: /* @__PURE__ */ jsx(RotateCw, { className: "size-3.5" })
119
+ }
120
+ )
121
+ ] });
122
+ }
123
+ function AgentPlaygroundPage() {
124
+ const t = useT();
125
+ const searchParams = useSearchParams();
126
+ const { payload: chromePayload } = useBackendChrome();
127
+ const canAuthorAutomations = hasFeature(chromePayload?.grantedFeatures, AUTOMATION_AUTHOR_FEATURE);
128
+ const [agents, setAgents] = React.useState([]);
129
+ const [agentId, setAgentId] = React.useState("");
130
+ const [input, setInput] = React.useState("{\n \n}");
131
+ const [running, setRunning] = React.useState(false);
132
+ const [result, setResult] = React.useState(null);
133
+ const [runId, setRunId] = React.useState(null);
134
+ const [proposalId, setProposalId] = React.useState(null);
135
+ const [toolPanel, setToolPanel] = React.useState({ mode: "idle" });
136
+ const [error, setError] = React.useState(null);
137
+ const [guardrailBlock, setGuardrailBlock] = React.useState(null);
138
+ React.useEffect(() => {
139
+ let cancelled = false;
140
+ async function load() {
141
+ const call = await apiCall("/api/agent_orchestrator/agents", void 0, {
142
+ fallback: { items: [] }
143
+ });
144
+ if (cancelled || !call.ok) return;
145
+ const items = Array.isArray(call.result?.items) ? call.result.items : [];
146
+ const mapped = items.map((item) => mapAgent(item)).filter((agent) => !!agent);
147
+ setAgents(mapped);
148
+ const requested = searchParams?.get("agent");
149
+ if (requested && mapped.some((agent) => agent.id === requested)) {
150
+ setAgentId(requested);
151
+ } else if (mapped[0]) {
152
+ setAgentId(mapped[0].id);
153
+ }
154
+ }
155
+ load();
156
+ return () => {
157
+ cancelled = true;
158
+ };
159
+ }, [searchParams]);
160
+ const selectedAgent = React.useMemo(
161
+ () => agents.find((agent) => agent.id === agentId) ?? null,
162
+ [agents, agentId]
163
+ );
164
+ const sampleInput = selectedAgent?.sampleInput;
165
+ const run = React.useCallback(async () => {
166
+ if (!agentId) {
167
+ setError(t("agent_orchestrator.playground.selectAgentFirst"));
168
+ return;
169
+ }
170
+ let parsed;
171
+ try {
172
+ parsed = JSON.parse(input);
173
+ } catch {
174
+ setError(t("agent_orchestrator.playground.invalidJson"));
175
+ return;
176
+ }
177
+ setError(null);
178
+ setGuardrailBlock(null);
179
+ setRunning(true);
180
+ setResult(null);
181
+ setRunId(null);
182
+ setProposalId(null);
183
+ setToolPanel({ mode: "idle" });
184
+ try {
185
+ const call = await apiCall(
186
+ `/api/agent_orchestrator/agents/${encodeURIComponent(agentId)}/run`,
187
+ {
188
+ method: "POST",
189
+ headers: { "content-type": "application/json" },
190
+ body: JSON.stringify({ input: parsed })
191
+ },
192
+ { fallback: null }
193
+ );
194
+ if (!call.ok || !call.result) {
195
+ const errorState = runErrorStateFromBody(call.result);
196
+ if (errorState.kind === "guardrail") {
197
+ setGuardrailBlock({ guardrailKind: errorState.guardrailKind, phase: errorState.phase });
198
+ } else {
199
+ setError(
200
+ errorState.messageKey ? t(errorState.messageKey) : errorState.message ?? t("agent_orchestrator.playground.error")
201
+ );
202
+ }
203
+ return;
204
+ }
205
+ const data = call.result;
206
+ setResult(data);
207
+ setRunId(typeof data.runId === "string" ? data.runId : null);
208
+ setProposalId(typeof data.proposalId === "string" ? data.proposalId : null);
209
+ } catch (err) {
210
+ setError(err instanceof Error ? err.message : t("agent_orchestrator.playground.error"));
211
+ } finally {
212
+ setRunning(false);
213
+ }
214
+ }, [agentId, input, t]);
215
+ React.useEffect(() => {
216
+ if (!runId) return;
217
+ let cancelled = false;
218
+ async function loadToolCalls(id) {
219
+ setToolPanel({ mode: "loading" });
220
+ const call = await apiCall(
221
+ `/api/agent_orchestrator/runs/${encodeURIComponent(id)}`,
222
+ void 0,
223
+ { fallback: {} }
224
+ );
225
+ if (cancelled) return;
226
+ setToolPanel(toolPanelStateFromResponse(call));
227
+ }
228
+ void loadToolCalls(runId);
229
+ return () => {
230
+ cancelled = true;
231
+ };
232
+ }, [runId]);
233
+ const handleKeyDown = React.useCallback(
234
+ (event) => {
235
+ if ((event.metaKey || event.ctrlKey) && event.key === "Enter") {
236
+ event.preventDefault();
237
+ void run();
238
+ }
239
+ },
240
+ [run]
241
+ );
242
+ const hasOutcome = Boolean(result || running || error || guardrailBlock);
243
+ return /* @__PURE__ */ jsx(Page, { children: /* @__PURE__ */ jsxs(PageBody, { className: "space-y-5", onKeyDown: handleKeyDown, children: [
244
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
245
+ /* @__PURE__ */ jsxs("div", { children: [
246
+ /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold tracking-tight text-foreground", children: t("agent_orchestrator.playground.title") }),
247
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: t("agent_orchestrator.playground.subtitle") })
248
+ ] }),
249
+ /* @__PURE__ */ jsx(ConnectionBadges, {})
250
+ ] }),
251
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-start gap-4", children: [
252
+ /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-xl border border-border bg-card", children: [
253
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3", children: [
254
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: t("agent_orchestrator.playground.composeTitle", "Run an agent") }),
255
+ selectedAgent ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
256
+ /* @__PURE__ */ jsx(Chip, { icon: RUNTIME_ICON[selectedAgent.runtime], children: t(`agent_orchestrator.agents.list.runtime.${selectedAgent.runtime}`) }),
257
+ /* @__PURE__ */ jsx(Chip, { icon: TYPE_ICON[selectedAgent.resultKind], children: t(`agent_orchestrator.agents.list.resultKind.${selectedAgent.resultKind}`) })
258
+ ] }) : null
259
+ ] }),
260
+ /* @__PURE__ */ jsxs("div", { className: "space-y-4 p-4", children: [
261
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
262
+ /* @__PURE__ */ jsx("label", { className: "text-sm font-medium", htmlFor: "ao-pg-agent", children: t("agent_orchestrator.playground.agentLabel") }),
263
+ /* @__PURE__ */ jsxs(
264
+ Select,
265
+ {
266
+ value: agentId,
267
+ onValueChange: (value) => {
268
+ const nextId = value ?? "";
269
+ setAgentId(nextId);
270
+ const nextSample = agents.find((agent) => agent.id === nextId)?.sampleInput;
271
+ setInput(nextSample !== void 0 ? JSON.stringify(nextSample, null, 2) : "{\n \n}");
272
+ },
273
+ children: [
274
+ /* @__PURE__ */ jsx(SelectTrigger, { id: "ao-pg-agent", className: "focus-visible:ring-brand-violet", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: t("agent_orchestrator.playground.agentPlaceholder") }) }),
275
+ /* @__PURE__ */ jsx(SelectContent, { children: agents.map((agent) => {
276
+ const Glyph = resolveAgentIcon(agent.icon, agent.resultKind);
277
+ return /* @__PURE__ */ jsxs(SelectItem, { value: agent.id, children: [
278
+ Glyph ? /* @__PURE__ */ jsx(Glyph, { className: "size-4 text-muted-foreground" }) : null,
279
+ agent.label
280
+ ] }, agent.id);
281
+ }) })
282
+ ]
283
+ }
284
+ ),
285
+ selectedAgent?.description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: selectedAgent.description }) : null
286
+ ] }),
287
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
288
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
289
+ /* @__PURE__ */ jsx("label", { className: "text-sm font-medium", htmlFor: "ao-pg-input", children: t("agent_orchestrator.playground.inputLabel") }),
290
+ sampleInput !== void 0 ? /* @__PURE__ */ jsx(
291
+ Button,
292
+ {
293
+ type: "button",
294
+ variant: "outline",
295
+ size: "sm",
296
+ onClick: () => setInput(JSON.stringify(sampleInput, null, 2)),
297
+ children: t("agent_orchestrator.playground.insertSample")
298
+ }
299
+ ) : null
300
+ ] }),
301
+ /* @__PURE__ */ jsx(
302
+ Textarea,
303
+ {
304
+ id: "ao-pg-input",
305
+ value: input,
306
+ onChange: (event) => setInput(event.target.value),
307
+ placeholder: t("agent_orchestrator.playground.inputPlaceholder"),
308
+ rows: 12,
309
+ className: "font-mono"
310
+ }
311
+ )
312
+ ] })
313
+ ] }),
314
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2 border-t border-border px-4 py-3", children: [
315
+ /* @__PURE__ */ jsx(ProposeOnlyNotice, {}),
316
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t(
317
+ "agent_orchestrator.playground.rehearsalNote",
318
+ "This is a rehearsal \u2014 to have the agent act on real events, add an \u201Cinvoke agent\u201D step to an automation."
319
+ ) }),
320
+ canAuthorAutomations ? /* @__PURE__ */ jsx("a", { href: AUTOMATION_EDITOR_HREF, className: "inline-flex text-sm font-medium text-brand-violet hover:underline", children: t("agent_orchestrator.playground.useInAutomation", "Use this agent in an automation") }) : null
321
+ ] }),
322
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-border px-4 py-3", children: [
323
+ /* @__PURE__ */ jsx("span", { className: "hidden text-xs text-muted-foreground sm:inline", children: t("agent_orchestrator.playground.runHint", "Cmd/Ctrl + Enter runs the agent") }),
324
+ /* @__PURE__ */ jsxs(
325
+ Button,
326
+ {
327
+ type: "button",
328
+ onClick: () => void run(),
329
+ disabled: running || !agentId,
330
+ className: "bg-brand-violet text-brand-violet-foreground hover:bg-brand-violet/90",
331
+ children: [
332
+ running ? /* @__PURE__ */ jsx(Spinner, { className: "size-4" }) : /* @__PURE__ */ jsx(Play, { className: "size-4" }),
333
+ running ? t("agent_orchestrator.playground.running") : t("agent_orchestrator.playground.run")
334
+ ]
335
+ }
336
+ )
337
+ ] })
338
+ ] }),
339
+ /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-xl border border-border bg-card", children: [
340
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3", children: [
341
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: t("agent_orchestrator.playground.resultTitle", "Result") }),
342
+ result && runId ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-3", children: [
343
+ /* @__PURE__ */ jsx(
344
+ "a",
345
+ {
346
+ href: `/backend/traces/${encodeURIComponent(runId)}`,
347
+ className: "text-xs font-medium text-brand-violet hover:underline",
348
+ children: t("agent_orchestrator.playground.result.viewTrace")
349
+ }
350
+ ),
351
+ proposalId ? /* @__PURE__ */ jsx(
352
+ "a",
353
+ {
354
+ href: `/backend/caseload/${encodeURIComponent(proposalId)}`,
355
+ className: "text-xs font-medium text-brand-violet hover:underline",
356
+ children: t("agent_orchestrator.playground.result.openProposal")
357
+ }
358
+ ) : null,
359
+ canAuthorAutomations ? /* @__PURE__ */ jsx(
360
+ "a",
361
+ {
362
+ href: AUTOMATION_EDITOR_HREF,
363
+ className: "text-xs font-medium text-brand-violet hover:underline",
364
+ children: t("agent_orchestrator.playground.useInAutomation", "Use this agent in an automation")
365
+ }
366
+ ) : null
367
+ ] }) : null
368
+ ] }),
369
+ /* @__PURE__ */ jsxs("div", { className: "space-y-4 p-4", children: [
370
+ error ? /* @__PURE__ */ jsx(Alert, { status: "error", style: "light", children: error }) : null,
371
+ guardrailBlock ? /* @__PURE__ */ jsx(Alert, { status: "error", style: "light", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
372
+ /* @__PURE__ */ jsx(ShieldAlert, { className: "mt-0.5 size-4 shrink-0", "aria-hidden": true }),
373
+ /* @__PURE__ */ jsx("span", { children: t("agent_orchestrator.playground.guardrailBlocked", void 0, {
374
+ kind: guardrailBlock.guardrailKind,
375
+ phase: guardrailBlock.phase
376
+ }) })
377
+ ] }) }) : null,
378
+ running ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 py-12 text-center", children: [
379
+ /* @__PURE__ */ jsx(Spinner, { className: "size-5" }),
380
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.playground.running") })
381
+ ] }) : null,
382
+ !hasOutcome ? /* @__PURE__ */ jsx(
383
+ EmptyState,
384
+ {
385
+ title: t("agent_orchestrator.playground.noRun"),
386
+ description: t("agent_orchestrator.playground.noRunDescription")
387
+ }
388
+ ) : null,
389
+ result?.kind === "proposal" ? /* @__PURE__ */ jsx(ProposalCard, { adHoc: mapAdHocProposal(agentId, result.proposal) }) : null,
390
+ result?.kind === "research" ? /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
391
+ /* @__PURE__ */ jsx(SectionHeader, { title: t("agent_orchestrator.playground.result.research") }),
392
+ /* @__PURE__ */ jsx(JsonDisplay, { data: result.data })
393
+ ] }) : null,
394
+ result ? /* @__PURE__ */ jsx(CollapsibleSection, { title: t("agent_orchestrator.playground.result.trace"), defaultCollapsed: true, children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
395
+ toolPanel.mode === "real" ? /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
396
+ /* @__PURE__ */ jsx(
397
+ SectionHeader,
398
+ {
399
+ title: t("agent_orchestrator.playground.result.toolsHeading"),
400
+ count: toolPanel.calls.length
401
+ }
402
+ ),
403
+ toolPanel.calls.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: toolPanel.calls.map((toolCall) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 text-sm", children: [
404
+ /* @__PURE__ */ jsx("span", { className: "inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet" }),
405
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate font-mono text-xs", children: toolCall.toolName }),
406
+ toolCall.latencyMs != null ? /* @__PURE__ */ jsxs("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: [
407
+ toolCall.latencyMs,
408
+ "ms"
409
+ ] }) : null,
410
+ /* @__PURE__ */ jsx(StatusBadge, { variant: toolCall.status === "error" ? "error" : "success", children: toolCall.status ?? "ok" })
411
+ ] }, toolCall.id)) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.playground.result.noToolCalls") })
412
+ ] }) : toolPanel.mode === "loading" ? /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
413
+ /* @__PURE__ */ jsx(SectionHeader, { title: t("agent_orchestrator.playground.result.toolsHeading") }),
414
+ /* @__PURE__ */ jsx(Spinner, { className: "size-4" })
415
+ ] }) : /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
416
+ /* @__PURE__ */ jsx(
417
+ SectionHeader,
418
+ {
419
+ title: t("agent_orchestrator.playground.result.declaredTools"),
420
+ count: selectedAgent?.tools.length ?? 0
421
+ }
422
+ ),
423
+ selectedAgent && selectedAgent.tools.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: selectedAgent.tools.map((tool) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 text-sm", children: [
424
+ /* @__PURE__ */ jsx("span", { className: "inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet" }),
425
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-xs", children: tool })
426
+ ] }, tool)) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("agent_orchestrator.playground.result.noDeclaredTools") })
427
+ ] }),
428
+ /* @__PURE__ */ jsxs("section", { className: "space-y-2", children: [
429
+ /* @__PURE__ */ jsx(SectionHeader, { title: t("agent_orchestrator.playground.result.rawOutput") }),
430
+ /* @__PURE__ */ jsx(JsonDisplay, { data: result })
431
+ ] })
432
+ ] }) }) : null
433
+ ] })
434
+ ] })
435
+ ] }),
436
+ /* @__PURE__ */ jsx(WebSearchActivity, { className: "mt-4" }),
437
+ result && runId ? /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(PlaygroundEvalPanel, { runId, agentId }) }) : null
438
+ ] }) });
439
+ }
440
+ export {
441
+ AgentPlaygroundPage as default
442
+ };
443
+ //# sourceMappingURL=page.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/modules/agent_orchestrator/backend/playground/page.tsx"],
4
+ "sourcesContent": ["\"use client\"\n\nimport * as React from 'react'\nimport { useSearchParams } from 'next/navigation'\nimport { Play, Plug, RotateCw, Server, ShieldAlert, SquareCode } from 'lucide-react'\nimport { Page, PageBody } from '@open-mercato/ui/backend/Page'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { Textarea } from '@open-mercato/ui/primitives/textarea'\nimport { Spinner } from '@open-mercato/ui/primitives/spinner'\nimport { Alert } from '@open-mercato/ui/primitives/alert'\nimport { EmptyState } from '@open-mercato/ui/primitives/empty-state'\nimport { StatusBadge, type StatusBadgeVariant } from '@open-mercato/ui/primitives/status-badge'\nimport { SimpleTooltip } from '@open-mercato/ui/primitives/tooltip'\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@open-mercato/ui/primitives/select'\nimport { JsonDisplay } from '@open-mercato/ui/backend/JsonDisplay'\nimport { SectionHeader, CollapsibleSection } from '@open-mercato/ui/backend/SectionHeader'\nimport { apiCall } from '@open-mercato/ui/backend/utils/apiCall'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\nimport { useBackendChrome } from '@open-mercato/ui/backend/BackendChromeProvider'\nimport { hasFeature } from '@open-mercato/shared/security/features'\nimport { ProposeOnlyNotice } from '../../components/ProposeOnlyNotice'\nimport { AUTOMATION_AUTHOR_FEATURE, AUTOMATION_EDITOR_HREF } from '../../lib/automationLinks'\nimport { ProposalCard } from '../../components/ProposalCard'\nimport { WebSearchActivity } from '../../components/WebSearchActivity'\nimport { mapAdHocProposal, mapAgent, type AgentView } from '../../components/types'\nimport { toolPanelStateFromResponse, type ToolPanelState } from '../../components/playgroundToolCalls'\nimport { runErrorStateFromBody } from '../../components/playgroundRunError'\nimport { Chip, TYPE_ICON, RUNTIME_ICON, resolveAgentIcon } from '../../components/agentChips'\nimport { PlaygroundEvalPanel } from './PlaygroundEvalPanel'\n\ntype AgentsResponse = { items?: Array<Record<string, unknown>> }\n\ntype AgentResult =\n | { kind: 'research'; data: unknown }\n | { kind: 'proposal'; proposal: unknown }\n\ntype AgentRunResponse = AgentResult & { runId?: string | null; proposalId?: string | null }\n\n// Connectivity states derived from the ai_assistant health endpoint \u2014 the same\n// source the AI assistant settings page reads. Three independent signals:\n// \u2022 opencode \u2014 the OpenCode container is up (GET /global/health)\n// \u2022 mcpBridge \u2014 OpenCode has bound to the MCP server (GET /mcp)\n// \u2022 mcpServer \u2014 the MCP HTTP server itself is healthy (GET {mcpUrl}/health)\n// `hidden` covers callers without `ai_assistant.view`.\ntype ConnState = 'ok' | 'warn' | 'down' | 'unknown'\n\ntype ConnectionsState =\n | { mode: 'loading' }\n | { mode: 'hidden' }\n | {\n mode: 'ready'\n opencode: ConnState\n opencodeVersion: string | null\n mcpBridge: ConnState\n mcpBridgeServers: Array<{ name: string; status: string }>\n mcpServer: ConnState\n mcpServerTools: number | null\n }\n\ntype HealthResponse = {\n status?: 'ok' | 'error'\n opencode?: { healthy?: boolean; version?: string }\n mcp?: Record<string, { status?: string; error?: string }>\n mcpHealth?: { healthy?: boolean; status?: string; tools?: number }\n}\n\nconst CONN_VARIANT: Record<ConnState, StatusBadgeVariant> = {\n ok: 'success',\n warn: 'warning',\n down: 'error',\n unknown: 'neutral',\n}\n\nfunction connectionsFromHealth(result: HealthResponse | null): Omit<Extract<ConnectionsState, { mode: 'ready' }>, 'mode'> {\n const opencodeHealthy = result?.opencode?.healthy === true\n const mcpEntries = Object.entries(result?.mcp ?? {}).map(([name, value]) => ({\n name,\n status: typeof value?.status === 'string' ? value.status : 'unknown',\n }))\n const mcpBridge: ConnState = mcpEntries.some((entry) => entry.status === 'connected')\n ? 'ok'\n : mcpEntries.some((entry) => entry.status === 'connecting')\n ? 'warn'\n : mcpEntries.length > 0\n ? 'down'\n : 'unknown'\n const mcpServer: ConnState = result?.mcpHealth\n ? result.mcpHealth.healthy === true\n ? 'ok'\n : 'down'\n : 'unknown'\n return {\n opencode: opencodeHealthy ? 'ok' : 'down',\n opencodeVersion: typeof result?.opencode?.version === 'string' ? result.opencode.version : null,\n mcpBridge,\n mcpBridgeServers: mcpEntries,\n mcpServer,\n mcpServerTools: typeof result?.mcpHealth?.tools === 'number' ? result.mcpHealth.tools : null,\n }\n}\n\nfunction ConnectionBadges() {\n const t = useT()\n const [state, setState] = React.useState<ConnectionsState>({ mode: 'loading' })\n\n const load = React.useCallback(async () => {\n const call = await apiCall<HealthResponse>('/api/ai_assistant/health', undefined, { fallback: null })\n if (!call.ok) {\n // 401/403 \u2192 the caller cannot read health at all; hide instead of guessing.\n if (call.status === 401 || call.status === 403) {\n setState({ mode: 'hidden' })\n return\n }\n setState({\n mode: 'ready',\n opencode: 'down',\n opencodeVersion: null,\n mcpBridge: 'unknown',\n mcpBridgeServers: [],\n mcpServer: 'unknown',\n mcpServerTools: null,\n })\n return\n }\n setState({ mode: 'ready', ...connectionsFromHealth(call.result) })\n }, [])\n\n React.useEffect(() => {\n void load()\n }, [load])\n\n if (state.mode === 'hidden') return null\n if (state.mode === 'loading') {\n return (\n <div className=\"flex items-center gap-1.5\">\n <StatusBadge variant=\"neutral\" dot>\n {t('agent_orchestrator.playground.connections.checking', 'Checking\u2026')}\n </StatusBadge>\n </div>\n )\n }\n\n const stateLabel = (value: ConnState) =>\n value === 'ok'\n ? t('agent_orchestrator.playground.connections.connected', 'Connected')\n : value === 'warn'\n ? t('agent_orchestrator.playground.connections.connecting', 'Connecting\u2026')\n : value === 'down'\n ? t('agent_orchestrator.playground.connections.disconnected', 'Not connected')\n : t('agent_orchestrator.playground.connections.unknown', 'Status unknown')\n\n const opencodeTooltip =\n state.opencode === 'ok' && state.opencodeVersion\n ? `${stateLabel(state.opencode)} \u00B7 ${t('agent_orchestrator.playground.connections.version', 'Version {version}', { version: state.opencodeVersion })}`\n : stateLabel(state.opencode)\n const mcpBridgeTooltip =\n state.mcpBridgeServers.length > 0\n ? state.mcpBridgeServers.map((server) => `${server.name}: ${server.status}`).join(' \u00B7 ')\n : stateLabel(state.mcpBridge)\n const mcpServerTooltip =\n state.mcpServer === 'ok' && state.mcpServerTools !== null\n ? `${stateLabel(state.mcpServer)} \u00B7 ${t('agent_orchestrator.playground.connections.tools', '{count} tools', { count: state.mcpServerTools })}`\n : stateLabel(state.mcpServer)\n\n return (\n <div className=\"flex items-center gap-1.5\">\n <SimpleTooltip content={opencodeTooltip}>\n <span>\n <StatusBadge variant={CONN_VARIANT[state.opencode]} dot className=\"gap-1.5\">\n <SquareCode className=\"size-3.5 shrink-0\" aria-hidden />\n {t('agent_orchestrator.playground.connections.opencode', 'OpenCode')}\n </StatusBadge>\n </span>\n </SimpleTooltip>\n <SimpleTooltip content={mcpBridgeTooltip}>\n <span>\n <StatusBadge variant={CONN_VARIANT[state.mcpBridge]} dot className=\"gap-1.5\">\n <Plug className=\"size-3.5 shrink-0\" aria-hidden />\n {t('agent_orchestrator.playground.connections.mcpBridge', 'MCP \u2194 OpenCode')}\n </StatusBadge>\n </span>\n </SimpleTooltip>\n <SimpleTooltip content={mcpServerTooltip}>\n <span>\n <StatusBadge variant={CONN_VARIANT[state.mcpServer]} dot className=\"gap-1.5\">\n <Server className=\"size-3.5 shrink-0\" aria-hidden />\n {t('agent_orchestrator.playground.connections.mcp', 'MCP')}\n </StatusBadge>\n </span>\n </SimpleTooltip>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"size-7 p-0\"\n aria-label={t('agent_orchestrator.playground.connections.refresh', 'Re-check connections')}\n onClick={() => {\n setState({ mode: 'loading' })\n void load()\n }}\n >\n <RotateCw className=\"size-3.5\" />\n </Button>\n </div>\n )\n}\n\nexport default function AgentPlaygroundPage() {\n const t = useT()\n const searchParams = useSearchParams()\n const { payload: chromePayload } = useBackendChrome()\n // The automation CTAs are hidden, not disabled, for a runner who cannot author\n // one \u2014 a dead button teaches nothing.\n const canAuthorAutomations = hasFeature(chromePayload?.grantedFeatures, AUTOMATION_AUTHOR_FEATURE)\n const [agents, setAgents] = React.useState<AgentView[]>([])\n const [agentId, setAgentId] = React.useState<string>('')\n const [input, setInput] = React.useState<string>('{\\n \\n}')\n const [running, setRunning] = React.useState(false)\n const [result, setResult] = React.useState<AgentResult | null>(null)\n const [runId, setRunId] = React.useState<string | null>(null)\n const [proposalId, setProposalId] = React.useState<string | null>(null)\n const [toolPanel, setToolPanel] = React.useState<ToolPanelState>({ mode: 'idle' })\n const [error, setError] = React.useState<string | null>(null)\n const [guardrailBlock, setGuardrailBlock] = React.useState<{ guardrailKind: string; phase: string } | null>(null)\n\n React.useEffect(() => {\n let cancelled = false\n async function load() {\n const call = await apiCall<AgentsResponse>('/api/agent_orchestrator/agents', undefined, {\n fallback: { items: [] },\n })\n if (cancelled || !call.ok) return\n const items = Array.isArray(call.result?.items) ? call.result!.items : []\n const mapped = items\n .map((item) => mapAgent(item as Record<string, unknown>))\n .filter((agent): agent is AgentView => !!agent)\n setAgents(mapped)\n const requested = searchParams?.get('agent')\n if (requested && mapped.some((agent) => agent.id === requested)) {\n setAgentId(requested)\n } else if (mapped[0]) {\n setAgentId(mapped[0].id)\n }\n }\n load()\n return () => {\n cancelled = true\n }\n }, [searchParams])\n\n const selectedAgent = React.useMemo(\n () => agents.find((agent) => agent.id === agentId) ?? null,\n [agents, agentId],\n )\n\n // Per-agent example input ships with the agent definition (code agents via\n // `defineAgent({ sampleInput })`, file agents via `agents/<id>/SAMPLE.json`)\n // and arrives on the agent list payload \u2014 the Playground no longer hardcodes\n // samples. The button hides when an agent declares none.\n const sampleInput = selectedAgent?.sampleInput\n\n const run = React.useCallback(async () => {\n if (!agentId) {\n setError(t('agent_orchestrator.playground.selectAgentFirst'))\n return\n }\n let parsed: unknown\n try {\n parsed = JSON.parse(input)\n } catch {\n setError(t('agent_orchestrator.playground.invalidJson'))\n return\n }\n setError(null)\n setGuardrailBlock(null)\n setRunning(true)\n setResult(null)\n setRunId(null)\n setProposalId(null)\n setToolPanel({ mode: 'idle' })\n try {\n const call = await apiCall<AgentRunResponse>(\n `/api/agent_orchestrator/agents/${encodeURIComponent(agentId)}/run`,\n {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ input: parsed }),\n },\n { fallback: null },\n )\n if (!call.ok || !call.result) {\n // A guardrail block is a policy verdict with a typed reason \u2014 surface\n // it as its own alert, never the generic run-failed message (\u00A73.6).\n const errorState = runErrorStateFromBody(call.result)\n if (errorState.kind === 'guardrail') {\n setGuardrailBlock({ guardrailKind: errorState.guardrailKind, phase: errorState.phase })\n } else {\n setError(\n errorState.messageKey\n ? t(errorState.messageKey)\n : errorState.message ?? t('agent_orchestrator.playground.error'),\n )\n }\n return\n }\n const data = call.result\n setResult(data)\n setRunId(typeof data.runId === 'string' ? data.runId : null)\n setProposalId(typeof data.proposalId === 'string' ? data.proposalId : null)\n } catch (err) {\n setError(err instanceof Error ? err.message : t('agent_orchestrator.playground.error'))\n } finally {\n setRunning(false)\n }\n }, [agentId, input, t])\n\n // Fetch the run's ACTUAL tool calls from the trace-detail route once the run\n // id is known. That route gates `trace.view` while this page gates\n // `agents.run`; a 403 (or any failure) degrades to the declared-tools list\n // under a \"Declared tools\" heading \u2014 never the false \"Tools used\" framing.\n React.useEffect(() => {\n if (!runId) return\n let cancelled = false\n async function loadToolCalls(id: string) {\n setToolPanel({ mode: 'loading' })\n const call = await apiCall<Record<string, unknown>>(\n `/api/agent_orchestrator/runs/${encodeURIComponent(id)}`,\n undefined,\n { fallback: {} },\n )\n if (cancelled) return\n setToolPanel(toolPanelStateFromResponse(call))\n }\n void loadToolCalls(runId)\n return () => {\n cancelled = true\n }\n }, [runId])\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent) => {\n if ((event.metaKey || event.ctrlKey) && event.key === 'Enter') {\n event.preventDefault()\n void run()\n }\n },\n [run],\n )\n\n const hasOutcome = Boolean(result || running || error || guardrailBlock)\n\n return (\n <Page>\n <PageBody className=\"space-y-5\" onKeyDown={handleKeyDown}>\n <div className=\"flex flex-wrap items-start justify-between gap-3\">\n <div>\n <h1 className=\"text-2xl font-bold tracking-tight text-foreground\">{t('agent_orchestrator.playground.title')}</h1>\n <p className=\"mt-1 text-sm text-muted-foreground\">{t('agent_orchestrator.playground.subtitle')}</p>\n </div>\n <ConnectionBadges />\n </div>\n\n {/*\n Stacked, not side by side. Compose and Result shared a two-column row,\n which capped the result at half the viewport \u2014 the one panel whose\n whole job is to be read. An agent's returned payload is wide (JSON,\n prose, tool traces) and was the thing operators squinted at. Compose is\n a short form and loses nothing by being full width above it.\n */}\n <div className=\"grid grid-cols-1 items-start gap-4\">\n {/* Compose panel */}\n <div className=\"overflow-hidden rounded-xl border border-border bg-card\">\n <div className=\"flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3\">\n <span className=\"text-sm font-semibold text-foreground\">\n {t('agent_orchestrator.playground.composeTitle', 'Run an agent')}\n </span>\n {selectedAgent ? (\n <span className=\"flex items-center gap-1.5\">\n <Chip icon={RUNTIME_ICON[selectedAgent.runtime]}>\n {t(`agent_orchestrator.agents.list.runtime.${selectedAgent.runtime}`)}\n </Chip>\n <Chip icon={TYPE_ICON[selectedAgent.resultKind]}>\n {t(`agent_orchestrator.agents.list.resultKind.${selectedAgent.resultKind}`)}\n </Chip>\n </span>\n ) : null}\n </div>\n <div className=\"space-y-4 p-4\">\n <div className=\"space-y-1\">\n <label className=\"text-sm font-medium\" htmlFor=\"ao-pg-agent\">\n {t('agent_orchestrator.playground.agentLabel')}\n </label>\n <Select\n value={agentId}\n onValueChange={(value) => {\n const nextId = value ?? ''\n setAgentId(nextId)\n // Agent inputs are agent-specific: switching clears the previous\n // agent's JSON and re-offers the new agent's declared sample.\n const nextSample = agents.find((agent) => agent.id === nextId)?.sampleInput\n setInput(nextSample !== undefined ? JSON.stringify(nextSample, null, 2) : '{\\n \\n}')\n }}\n >\n <SelectTrigger id=\"ao-pg-agent\" className=\"focus-visible:ring-brand-violet\">\n <SelectValue placeholder={t('agent_orchestrator.playground.agentPlaceholder')} />\n </SelectTrigger>\n <SelectContent>\n {agents.map((agent) => {\n const Glyph = resolveAgentIcon(agent.icon, agent.resultKind)\n return (\n <SelectItem key={agent.id} value={agent.id}>\n {Glyph ? <Glyph className=\"size-4 text-muted-foreground\" /> : null}\n {agent.label}\n </SelectItem>\n )\n })}\n </SelectContent>\n </Select>\n {selectedAgent?.description ? (\n <p className=\"text-xs text-muted-foreground\">{selectedAgent.description}</p>\n ) : null}\n </div>\n\n <div className=\"space-y-1\">\n <div className=\"flex items-center justify-between\">\n <label className=\"text-sm font-medium\" htmlFor=\"ao-pg-input\">\n {t('agent_orchestrator.playground.inputLabel')}\n </label>\n {sampleInput !== undefined ? (\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => setInput(JSON.stringify(sampleInput, null, 2))}\n >\n {t('agent_orchestrator.playground.insertSample')}\n </Button>\n ) : null}\n </div>\n <Textarea\n id=\"ao-pg-input\"\n value={input}\n onChange={(event) => setInput(event.target.value)}\n placeholder={t('agent_orchestrator.playground.inputPlaceholder')}\n rows={12}\n className=\"font-mono\"\n />\n </div>\n </div>\n <div className=\"space-y-2 border-t border-border px-4 py-3\">\n <ProposeOnlyNotice />\n <p className=\"text-sm text-muted-foreground\">\n {t(\n 'agent_orchestrator.playground.rehearsalNote',\n 'This is a rehearsal \u2014 to have the agent act on real events, add an \u201Cinvoke agent\u201D step to an automation.',\n )}\n </p>\n {canAuthorAutomations ? (\n <a href={AUTOMATION_EDITOR_HREF} className=\"inline-flex text-sm font-medium text-brand-violet hover:underline\">\n {t('agent_orchestrator.playground.useInAutomation', 'Use this agent in an automation')}\n </a>\n ) : null}\n </div>\n <div className=\"flex items-center justify-between gap-2 border-t border-border px-4 py-3\">\n <span className=\"hidden text-xs text-muted-foreground sm:inline\">\n {t('agent_orchestrator.playground.runHint', 'Cmd/Ctrl + Enter runs the agent')}\n </span>\n <Button\n type=\"button\"\n onClick={() => void run()}\n disabled={running || !agentId}\n className=\"bg-brand-violet text-brand-violet-foreground hover:bg-brand-violet/90\"\n >\n {running ? <Spinner className=\"size-4\" /> : <Play className=\"size-4\" />}\n {running ? t('agent_orchestrator.playground.running') : t('agent_orchestrator.playground.run')}\n </Button>\n </div>\n </div>\n\n {/* Result panel */}\n <div className=\"overflow-hidden rounded-xl border border-border bg-card\">\n <div className=\"flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3\">\n <span className=\"text-sm font-semibold text-foreground\">\n {t('agent_orchestrator.playground.resultTitle', 'Result')}\n </span>\n {result && runId ? (\n <span className=\"flex items-center gap-3\">\n <a\n href={`/backend/traces/${encodeURIComponent(runId)}`}\n className=\"text-xs font-medium text-brand-violet hover:underline\"\n >\n {t('agent_orchestrator.playground.result.viewTrace')}\n </a>\n {proposalId ? (\n <a\n href={`/backend/caseload/${encodeURIComponent(proposalId)}`}\n className=\"text-xs font-medium text-brand-violet hover:underline\"\n >\n {t('agent_orchestrator.playground.result.openProposal')}\n </a>\n ) : null}\n {canAuthorAutomations ? (\n <a\n href={AUTOMATION_EDITOR_HREF}\n className=\"text-xs font-medium text-brand-violet hover:underline\"\n >\n {t('agent_orchestrator.playground.useInAutomation', 'Use this agent in an automation')}\n </a>\n ) : null}\n </span>\n ) : null}\n </div>\n <div className=\"space-y-4 p-4\">\n {error ? (\n <Alert status=\"error\" style=\"light\">\n {error}\n </Alert>\n ) : null}\n\n {guardrailBlock ? (\n <Alert status=\"error\" style=\"light\">\n <div className=\"flex items-start gap-2\">\n <ShieldAlert className=\"mt-0.5 size-4 shrink-0\" aria-hidden />\n <span>\n {t('agent_orchestrator.playground.guardrailBlocked', undefined, {\n kind: guardrailBlock.guardrailKind,\n phase: guardrailBlock.phase,\n })}\n </span>\n </div>\n </Alert>\n ) : null}\n\n {running ? (\n <div className=\"flex flex-col items-center gap-2 py-12 text-center\">\n <Spinner className=\"size-5\" />\n <p className=\"text-sm text-muted-foreground\">{t('agent_orchestrator.playground.running')}</p>\n </div>\n ) : null}\n\n {!hasOutcome ? (\n <EmptyState\n title={t('agent_orchestrator.playground.noRun')}\n description={t('agent_orchestrator.playground.noRunDescription')}\n />\n ) : null}\n\n {result?.kind === 'proposal' ? (\n <ProposalCard adHoc={mapAdHocProposal(agentId, result.proposal)} />\n ) : null}\n\n {result?.kind === 'research' ? (\n <section className=\"space-y-2\">\n <SectionHeader title={t('agent_orchestrator.playground.result.research')} />\n <JsonDisplay data={result.data} />\n </section>\n ) : null}\n\n {result ? (\n <CollapsibleSection title={t('agent_orchestrator.playground.result.trace')} defaultCollapsed>\n <div className=\"space-y-3\">\n {toolPanel.mode === 'real' ? (\n <section className=\"space-y-2\">\n <SectionHeader\n title={t('agent_orchestrator.playground.result.toolsHeading')}\n count={toolPanel.calls.length}\n />\n {toolPanel.calls.length > 0 ? (\n <ul className=\"space-y-1\">\n {toolPanel.calls.map((toolCall) => (\n <li key={toolCall.id} className=\"flex items-center gap-2 text-sm\">\n <span className=\"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet\" />\n <span className=\"min-w-0 flex-1 truncate font-mono text-xs\">{toolCall.toolName}</span>\n {toolCall.latencyMs != null ? (\n <span className=\"shrink-0 text-xs tabular-nums text-muted-foreground\">\n {toolCall.latencyMs}ms\n </span>\n ) : null}\n <StatusBadge variant={toolCall.status === 'error' ? 'error' : 'success'}>\n {toolCall.status ?? 'ok'}\n </StatusBadge>\n </li>\n ))}\n </ul>\n ) : (\n <p className=\"text-sm text-muted-foreground\">\n {t('agent_orchestrator.playground.result.noToolCalls')}\n </p>\n )}\n </section>\n ) : toolPanel.mode === 'loading' ? (\n <section className=\"space-y-2\">\n <SectionHeader title={t('agent_orchestrator.playground.result.toolsHeading')} />\n <Spinner className=\"size-4\" />\n </section>\n ) : (\n <section className=\"space-y-2\">\n <SectionHeader\n title={t('agent_orchestrator.playground.result.declaredTools')}\n count={selectedAgent?.tools.length ?? 0}\n />\n {selectedAgent && selectedAgent.tools.length > 0 ? (\n <ul className=\"space-y-1\">\n {selectedAgent.tools.map((tool) => (\n <li key={tool} className=\"flex items-center gap-2 text-sm\">\n <span className=\"inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-brand-violet\" />\n <span className=\"font-mono text-xs\">{tool}</span>\n </li>\n ))}\n </ul>\n ) : (\n <p className=\"text-sm text-muted-foreground\">\n {t('agent_orchestrator.playground.result.noDeclaredTools')}\n </p>\n )}\n </section>\n )}\n <section className=\"space-y-2\">\n <SectionHeader title={t('agent_orchestrator.playground.result.rawOutput')} />\n <JsonDisplay data={result} />\n </section>\n </div>\n </CollapsibleSection>\n ) : null}\n </div>\n </div>\n </div>\n {/* Its own card below the result: the run POST does not return until the\n agent finishes, so this is the only live view of what it is doing, and\n it stays readable afterwards as the record of which sources answered. */}\n <WebSearchActivity className=\"mt-4\" />\n\n {result && runId ? (\n <div className=\"mt-4\">\n <PlaygroundEvalPanel runId={runId} agentId={agentId} />\n </div>\n ) : null}\n </PageBody>\n </Page>\n )\n}\n"],
5
+ "mappings": ";AA6IQ,cAiCE,YAjCF;AA3IR,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,MAAM,MAAM,UAAU,QAAQ,aAAa,kBAAkB;AACtE,SAAS,MAAM,gBAAgB;AAC/B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,mBAA4C;AACrD,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,mBAAmB;AAC5B,SAAS,eAAe,0BAA0B;AAClD,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB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J,IACE,UAAU,SAAS,YACrB,qBAAC,aAAQ,WAAU,aACjB;AAAA,kCAAC,iBAAc,OAAO,EAAE,mDAAmD,GAAG;AAAA,cAC9E,oBAAC,WAAQ,WAAU,UAAS;AAAA,eAC9B,IAEA,qBAAC,aAAQ,WAAU,aACjB;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,OAAO,EAAE,oDAAoD;AAAA,kBAC7D,OAAO,eAAe,MAAM,UAAU;AAAA;AAAA,cACxC;AAAA,cACC,iBAAiB,cAAc,MAAM,SAAS,IAC7C,oBAAC,QAAG,WAAU,aACX,wBAAc,MAAM,IAAI,CAAC,SACxB,qBAAC,QAAc,WAAU,mCACvB;AAAA,oCAAC,UAAK,WAAU,kEAAiE;AAAA,gBACjF,oBAAC,UAAK,WAAU,qBAAqB,gBAAK;AAAA,mBAFnC,IAGT,CACD,GACH,IAEA,oBAAC,OAAE,WAAU,iCACV,YAAE,sDAAsD,GAC3D;AAAA,eAEJ;AAAA,YAEF,qBAAC,aAAQ,WAAU,aACjB;AAAA,kCAAC,iBAAc,OAAO,EAAE,gDAAgD,GAAG;AAAA,cAC3E,oBAAC,eAAY,MAAM,QAAQ;AAAA,eAC7B;AAAA,aACF,GACF,IACE;AAAA,WACN;AAAA,SACF;AAAA,OACF;AAAA,IAIA,oBAAC,qBAAkB,WAAU,QAAO;AAAA,IAEnC,UAAU,QACT,oBAAC,SAAI,WAAU,QACb,8BAAC,uBAAoB,OAAc,SAAkB,GACvD,IACE;AAAA,KACN,GACF;AAEJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ const playgroundIcon = React.createElement(
3
+ "svg",
4
+ { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2 },
5
+ React.createElement("polygon", { points: "5 3 19 12 5 21 5 3" })
6
+ );
7
+ const metadata = {
8
+ requireAuth: true,
9
+ requireFeatures: ["agent_orchestrator.agents.run"],
10
+ pageTitle: "Playground",
11
+ pageTitleKey: "agent_orchestrator.nav.playground",
12
+ pageGroup: "Agents",
13
+ pageGroupKey: "agent_orchestrator.nav.group",
14
+ pagePriority: 30,
15
+ pageOrder: 110,
16
+ icon: playgroundIcon,
17
+ breadcrumb: [{ label: "Playground", labelKey: "agent_orchestrator.nav.playground" }]
18
+ };
19
+ var page_meta_default = metadata;
20
+ export {
21
+ page_meta_default as default,
22
+ metadata
23
+ };
24
+ //# sourceMappingURL=page.meta.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/modules/agent_orchestrator/backend/playground/page.meta.ts"],
4
+ "sourcesContent": ["import React from 'react'\n\nconst playgroundIcon = React.createElement(\n 'svg',\n { width: 16, height: 16, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2 },\n React.createElement('polygon', { points: '5 3 19 12 5 21 5 3' }),\n)\n\nexport const metadata = {\n requireAuth: true,\n requireFeatures: ['agent_orchestrator.agents.run'],\n pageTitle: 'Playground',\n pageTitleKey: 'agent_orchestrator.nav.playground',\n pageGroup: 'Agents',\n pageGroupKey: 'agent_orchestrator.nav.group',\n pagePriority: 30,\n pageOrder: 110,\n icon: playgroundIcon,\n breadcrumb: [{ label: 'Playground', labelKey: 'agent_orchestrator.nav.playground' }],\n}\n\nexport default metadata\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAElB,MAAM,iBAAiB,MAAM;AAAA,EAC3B;AAAA,EACA,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,QAAQ,gBAAgB,aAAa,EAAE;AAAA,EACpG,MAAM,cAAc,WAAW,EAAE,QAAQ,qBAAqB,CAAC;AACjE;AAEO,MAAM,WAAW;AAAA,EACtB,aAAa;AAAA,EACb,iBAAiB,CAAC,+BAA+B;AAAA,EACjD,WAAW;AAAA,EACX,cAAc;AAAA,EACd,WAAW;AAAA,EACX,cAAc;AAAA,EACd,cAAc;AAAA,EACd,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY,CAAC,EAAE,OAAO,cAAc,UAAU,oCAAoC,CAAC;AACrF;AAEA,IAAO,oBAAQ;",
6
+ "names": []
7
+ }