plugin-agent-orchestrator 1.0.0 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (629) hide show
  1. package/dist/client/AIEmployeeSelect.d.ts +11 -0
  2. package/dist/client/AIEmployeesContext.d.ts +23 -0
  3. package/dist/client/OrchestratorSettings.d.ts +2 -0
  4. package/dist/client/RulesTab.d.ts +2 -0
  5. package/dist/client/TracingTab.d.ts +2 -0
  6. package/dist/client/index.d.ts +1 -0
  7. package/dist/client/index.js +10 -8
  8. package/dist/client/plugin.d.ts +5 -0
  9. package/dist/externalVersion.js +22 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +48 -0
  12. package/dist/node_modules/zod/LICENSE +21 -0
  13. package/dist/node_modules/zod/index.cjs +1 -0
  14. package/dist/node_modules/zod/index.d.cts +4 -0
  15. package/dist/node_modules/zod/index.d.ts +4 -0
  16. package/dist/node_modules/zod/index.js +4 -0
  17. package/dist/node_modules/zod/package.json +1 -0
  18. package/dist/node_modules/zod/src/index.ts +4 -0
  19. package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
  20. package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  21. package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  22. package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  23. package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  24. package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  25. package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  26. package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  27. package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  28. package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  29. package/dist/node_modules/zod/src/v3/errors.ts +13 -0
  30. package/dist/node_modules/zod/src/v3/external.ts +6 -0
  31. package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  32. package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  33. package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  34. package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  35. package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  36. package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
  37. package/dist/node_modules/zod/src/v3/index.ts +4 -0
  38. package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
  39. package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
  40. package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  41. package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  42. package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  43. package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  44. package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  45. package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  46. package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  47. package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  48. package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  49. package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  50. package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  51. package/dist/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  52. package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  53. package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  54. package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  55. package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  56. package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  57. package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  58. package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  59. package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  60. package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  61. package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  62. package/dist/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  63. package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  64. package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  65. package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  66. package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  67. package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  68. package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  69. package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  70. package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  71. package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  72. package/dist/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  73. package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  74. package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  75. package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  76. package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  77. package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  78. package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  79. package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  80. package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  81. package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  82. package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  83. package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  84. package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  85. package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  86. package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  87. package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  88. package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  89. package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  90. package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  91. package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  92. package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  93. package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  94. package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  95. package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  96. package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  97. package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  98. package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  99. package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  100. package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  101. package/dist/node_modules/zod/src/v3/types.ts +5136 -0
  102. package/dist/node_modules/zod/src/v4/classic/checks.ts +30 -0
  103. package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  104. package/dist/node_modules/zod/src/v4/classic/compat.ts +66 -0
  105. package/dist/node_modules/zod/src/v4/classic/errors.ts +75 -0
  106. package/dist/node_modules/zod/src/v4/classic/external.ts +50 -0
  107. package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
  108. package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
  109. package/dist/node_modules/zod/src/v4/classic/parse.ts +33 -0
  110. package/dist/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  111. package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  112. package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  113. package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  114. package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  115. package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  116. package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  117. package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  118. package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  119. package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  120. package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  121. package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  122. package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  123. package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  124. package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  125. package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  126. package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  127. package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  128. package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  129. package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  130. package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  131. package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  132. package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  133. package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  134. package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  135. package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  136. package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  137. package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  138. package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  139. package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  140. package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  141. package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  142. package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  143. package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  144. package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  145. package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  146. package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  147. package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  148. package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  149. package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  150. package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  151. package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  152. package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  153. package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  154. package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  155. package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  156. package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  157. package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  158. package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  159. package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  160. package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  161. package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  162. package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  163. package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  164. package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  165. package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  166. package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  167. package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  168. package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  169. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  170. package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  171. package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  172. package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  173. package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  174. package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  175. package/dist/node_modules/zod/src/v4/core/api.ts +1594 -0
  176. package/dist/node_modules/zod/src/v4/core/checks.ts +1283 -0
  177. package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
  178. package/dist/node_modules/zod/src/v4/core/core.ts +134 -0
  179. package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
  180. package/dist/node_modules/zod/src/v4/core/errors.ts +424 -0
  181. package/dist/node_modules/zod/src/v4/core/function.ts +176 -0
  182. package/dist/node_modules/zod/src/v4/core/index.ts +15 -0
  183. package/dist/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  184. package/dist/node_modules/zod/src/v4/core/parse.ts +94 -0
  185. package/dist/node_modules/zod/src/v4/core/regexes.ts +135 -0
  186. package/dist/node_modules/zod/src/v4/core/registries.ts +96 -0
  187. package/dist/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  188. package/dist/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  189. package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  190. package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  191. package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  192. package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  193. package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  194. package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  195. package/dist/node_modules/zod/src/v4/core/util.ts +775 -0
  196. package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
  197. package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
  198. package/dist/node_modules/zod/src/v4/index.ts +4 -0
  199. package/dist/node_modules/zod/src/v4/locales/ar.ts +125 -0
  200. package/dist/node_modules/zod/src/v4/locales/az.ts +121 -0
  201. package/dist/node_modules/zod/src/v4/locales/be.ts +184 -0
  202. package/dist/node_modules/zod/src/v4/locales/ca.ts +127 -0
  203. package/dist/node_modules/zod/src/v4/locales/cs.ts +142 -0
  204. package/dist/node_modules/zod/src/v4/locales/de.ts +124 -0
  205. package/dist/node_modules/zod/src/v4/locales/en.ts +127 -0
  206. package/dist/node_modules/zod/src/v4/locales/eo.ts +125 -0
  207. package/dist/node_modules/zod/src/v4/locales/es.ts +125 -0
  208. package/dist/node_modules/zod/src/v4/locales/fa.ts +134 -0
  209. package/dist/node_modules/zod/src/v4/locales/fi.ts +131 -0
  210. package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  211. package/dist/node_modules/zod/src/v4/locales/fr.ts +124 -0
  212. package/dist/node_modules/zod/src/v4/locales/he.ts +125 -0
  213. package/dist/node_modules/zod/src/v4/locales/hu.ts +126 -0
  214. package/dist/node_modules/zod/src/v4/locales/id.ts +125 -0
  215. package/dist/node_modules/zod/src/v4/locales/index.ts +39 -0
  216. package/dist/node_modules/zod/src/v4/locales/it.ts +125 -0
  217. package/dist/node_modules/zod/src/v4/locales/ja.ts +122 -0
  218. package/dist/node_modules/zod/src/v4/locales/kh.ts +126 -0
  219. package/dist/node_modules/zod/src/v4/locales/ko.ts +131 -0
  220. package/dist/node_modules/zod/src/v4/locales/mk.ts +127 -0
  221. package/dist/node_modules/zod/src/v4/locales/ms.ts +124 -0
  222. package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
  223. package/dist/node_modules/zod/src/v4/locales/no.ts +124 -0
  224. package/dist/node_modules/zod/src/v4/locales/ota.ts +125 -0
  225. package/dist/node_modules/zod/src/v4/locales/pl.ts +126 -0
  226. package/dist/node_modules/zod/src/v4/locales/ps.ts +133 -0
  227. package/dist/node_modules/zod/src/v4/locales/pt.ts +123 -0
  228. package/dist/node_modules/zod/src/v4/locales/ru.ts +184 -0
  229. package/dist/node_modules/zod/src/v4/locales/sl.ts +126 -0
  230. package/dist/node_modules/zod/src/v4/locales/sv.ts +127 -0
  231. package/dist/node_modules/zod/src/v4/locales/ta.ts +125 -0
  232. package/dist/node_modules/zod/src/v4/locales/th.ts +126 -0
  233. package/dist/node_modules/zod/src/v4/locales/tr.ts +121 -0
  234. package/dist/node_modules/zod/src/v4/locales/ua.ts +126 -0
  235. package/dist/node_modules/zod/src/v4/locales/ur.ts +126 -0
  236. package/dist/node_modules/zod/src/v4/locales/vi.ts +125 -0
  237. package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  238. package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  239. package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
  240. package/dist/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  241. package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
  242. package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
  243. package/dist/node_modules/zod/src/v4/mini/iso.ts +62 -0
  244. package/dist/node_modules/zod/src/v4/mini/parse.ts +1 -0
  245. package/dist/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  246. package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  247. package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  248. package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  249. package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  250. package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  251. package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  252. package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  253. package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  254. package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  255. package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  256. package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  257. package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  258. package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
  259. package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
  260. package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
  261. package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
  262. package/dist/node_modules/zod/v3/ZodError.js +133 -0
  263. package/dist/node_modules/zod/v3/errors.cjs +17 -0
  264. package/dist/node_modules/zod/v3/errors.d.cts +5 -0
  265. package/dist/node_modules/zod/v3/errors.d.ts +5 -0
  266. package/dist/node_modules/zod/v3/errors.js +9 -0
  267. package/dist/node_modules/zod/v3/external.cjs +22 -0
  268. package/dist/node_modules/zod/v3/external.d.cts +6 -0
  269. package/dist/node_modules/zod/v3/external.d.ts +6 -0
  270. package/dist/node_modules/zod/v3/external.js +6 -0
  271. package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  272. package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  273. package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  274. package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  275. package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  276. package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  277. package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  278. package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  279. package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  280. package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  281. package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  282. package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  283. package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  284. package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  285. package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  286. package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  287. package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  288. package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  289. package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  290. package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  291. package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
  292. package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
  293. package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
  294. package/dist/node_modules/zod/v3/helpers/util.js +133 -0
  295. package/dist/node_modules/zod/v3/index.cjs +33 -0
  296. package/dist/node_modules/zod/v3/index.d.cts +4 -0
  297. package/dist/node_modules/zod/v3/index.d.ts +4 -0
  298. package/dist/node_modules/zod/v3/index.js +4 -0
  299. package/dist/node_modules/zod/v3/locales/en.cjs +111 -0
  300. package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
  301. package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
  302. package/dist/node_modules/zod/v3/locales/en.js +109 -0
  303. package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
  304. package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
  305. package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
  306. package/dist/node_modules/zod/v3/standard-schema.js +1 -0
  307. package/dist/node_modules/zod/v3/types.cjs +3775 -0
  308. package/dist/node_modules/zod/v3/types.d.cts +1031 -0
  309. package/dist/node_modules/zod/v3/types.d.ts +1031 -0
  310. package/dist/node_modules/zod/v3/types.js +3693 -0
  311. package/dist/node_modules/zod/v4/classic/checks.cjs +32 -0
  312. package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
  313. package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
  314. package/dist/node_modules/zod/v4/classic/checks.js +1 -0
  315. package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
  316. package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  317. package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  318. package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
  319. package/dist/node_modules/zod/v4/classic/compat.cjs +57 -0
  320. package/dist/node_modules/zod/v4/classic/compat.d.cts +46 -0
  321. package/dist/node_modules/zod/v4/classic/compat.d.ts +46 -0
  322. package/dist/node_modules/zod/v4/classic/compat.js +27 -0
  323. package/dist/node_modules/zod/v4/classic/errors.cjs +67 -0
  324. package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
  325. package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
  326. package/dist/node_modules/zod/v4/classic/errors.js +41 -0
  327. package/dist/node_modules/zod/v4/classic/external.cjs +70 -0
  328. package/dist/node_modules/zod/v4/classic/external.d.cts +13 -0
  329. package/dist/node_modules/zod/v4/classic/external.d.ts +13 -0
  330. package/dist/node_modules/zod/v4/classic/external.js +18 -0
  331. package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
  332. package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
  333. package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
  334. package/dist/node_modules/zod/v4/classic/index.js +4 -0
  335. package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
  336. package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
  337. package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
  338. package/dist/node_modules/zod/v4/classic/iso.js +30 -0
  339. package/dist/node_modules/zod/v4/classic/parse.cjs +32 -0
  340. package/dist/node_modules/zod/v4/classic/parse.d.cts +23 -0
  341. package/dist/node_modules/zod/v4/classic/parse.d.ts +23 -0
  342. package/dist/node_modules/zod/v4/classic/parse.js +6 -0
  343. package/dist/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  344. package/dist/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  345. package/dist/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  346. package/dist/node_modules/zod/v4/classic/schemas.js +1006 -0
  347. package/dist/node_modules/zod/v4/core/api.cjs +1039 -0
  348. package/dist/node_modules/zod/v4/core/api.d.cts +284 -0
  349. package/dist/node_modules/zod/v4/core/api.d.ts +284 -0
  350. package/dist/node_modules/zod/v4/core/api.js +906 -0
  351. package/dist/node_modules/zod/v4/core/checks.cjs +591 -0
  352. package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
  353. package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
  354. package/dist/node_modules/zod/v4/core/checks.js +565 -0
  355. package/dist/node_modules/zod/v4/core/core.cjs +67 -0
  356. package/dist/node_modules/zod/v4/core/core.d.cts +49 -0
  357. package/dist/node_modules/zod/v4/core/core.d.ts +49 -0
  358. package/dist/node_modules/zod/v4/core/core.js +61 -0
  359. package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
  360. package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
  361. package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
  362. package/dist/node_modules/zod/v4/core/doc.js +35 -0
  363. package/dist/node_modules/zod/v4/core/errors.cjs +226 -0
  364. package/dist/node_modules/zod/v4/core/errors.d.cts +208 -0
  365. package/dist/node_modules/zod/v4/core/errors.d.ts +208 -0
  366. package/dist/node_modules/zod/v4/core/errors.js +195 -0
  367. package/dist/node_modules/zod/v4/core/function.cjs +102 -0
  368. package/dist/node_modules/zod/v4/core/function.d.cts +52 -0
  369. package/dist/node_modules/zod/v4/core/function.d.ts +52 -0
  370. package/dist/node_modules/zod/v4/core/function.js +75 -0
  371. package/dist/node_modules/zod/v4/core/index.cjs +44 -0
  372. package/dist/node_modules/zod/v4/core/index.d.cts +15 -0
  373. package/dist/node_modules/zod/v4/core/index.d.ts +15 -0
  374. package/dist/node_modules/zod/v4/core/index.js +15 -0
  375. package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
  376. package/dist/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  377. package/dist/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  378. package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
  379. package/dist/node_modules/zod/v4/core/parse.cjs +87 -0
  380. package/dist/node_modules/zod/v4/core/parse.d.cts +25 -0
  381. package/dist/node_modules/zod/v4/core/parse.d.ts +25 -0
  382. package/dist/node_modules/zod/v4/core/parse.js +57 -0
  383. package/dist/node_modules/zod/v4/core/regexes.cjs +103 -0
  384. package/dist/node_modules/zod/v4/core/regexes.d.cts +62 -0
  385. package/dist/node_modules/zod/v4/core/regexes.d.ts +62 -0
  386. package/dist/node_modules/zod/v4/core/regexes.js +95 -0
  387. package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
  388. package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
  389. package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
  390. package/dist/node_modules/zod/v4/core/registries.js +51 -0
  391. package/dist/node_modules/zod/v4/core/schemas.cjs +1748 -0
  392. package/dist/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  393. package/dist/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  394. package/dist/node_modules/zod/v4/core/schemas.js +1717 -0
  395. package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  396. package/dist/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  397. package/dist/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  398. package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
  399. package/dist/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  400. package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  401. package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  402. package/dist/node_modules/zod/v4/core/to-json-schema.js +849 -0
  403. package/dist/node_modules/zod/v4/core/util.cjs +539 -0
  404. package/dist/node_modules/zod/v4/core/util.d.cts +183 -0
  405. package/dist/node_modules/zod/v4/core/util.d.ts +183 -0
  406. package/dist/node_modules/zod/v4/core/util.js +493 -0
  407. package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
  408. package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
  409. package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
  410. package/dist/node_modules/zod/v4/core/versions.js +5 -0
  411. package/dist/node_modules/zod/v4/index.cjs +22 -0
  412. package/dist/node_modules/zod/v4/index.d.cts +3 -0
  413. package/dist/node_modules/zod/v4/index.d.ts +3 -0
  414. package/dist/node_modules/zod/v4/index.js +3 -0
  415. package/dist/node_modules/zod/v4/locales/ar.cjs +142 -0
  416. package/dist/node_modules/zod/v4/locales/ar.d.cts +4 -0
  417. package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
  418. package/dist/node_modules/zod/v4/locales/ar.js +116 -0
  419. package/dist/node_modules/zod/v4/locales/az.cjs +141 -0
  420. package/dist/node_modules/zod/v4/locales/az.d.cts +4 -0
  421. package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
  422. package/dist/node_modules/zod/v4/locales/az.js +115 -0
  423. package/dist/node_modules/zod/v4/locales/be.cjs +190 -0
  424. package/dist/node_modules/zod/v4/locales/be.d.cts +4 -0
  425. package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
  426. package/dist/node_modules/zod/v4/locales/be.js +164 -0
  427. package/dist/node_modules/zod/v4/locales/ca.cjs +144 -0
  428. package/dist/node_modules/zod/v4/locales/ca.d.cts +4 -0
  429. package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
  430. package/dist/node_modules/zod/v4/locales/ca.js +118 -0
  431. package/dist/node_modules/zod/v4/locales/cs.cjs +161 -0
  432. package/dist/node_modules/zod/v4/locales/cs.d.cts +4 -0
  433. package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
  434. package/dist/node_modules/zod/v4/locales/cs.js +135 -0
  435. package/dist/node_modules/zod/v4/locales/de.cjs +142 -0
  436. package/dist/node_modules/zod/v4/locales/de.d.cts +4 -0
  437. package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
  438. package/dist/node_modules/zod/v4/locales/de.js +116 -0
  439. package/dist/node_modules/zod/v4/locales/en.cjs +145 -0
  440. package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
  441. package/dist/node_modules/zod/v4/locales/en.d.ts +5 -0
  442. package/dist/node_modules/zod/v4/locales/en.js +117 -0
  443. package/dist/node_modules/zod/v4/locales/eo.cjs +144 -0
  444. package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
  445. package/dist/node_modules/zod/v4/locales/eo.d.ts +5 -0
  446. package/dist/node_modules/zod/v4/locales/eo.js +116 -0
  447. package/dist/node_modules/zod/v4/locales/es.cjs +143 -0
  448. package/dist/node_modules/zod/v4/locales/es.d.cts +4 -0
  449. package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
  450. package/dist/node_modules/zod/v4/locales/es.js +117 -0
  451. package/dist/node_modules/zod/v4/locales/fa.cjs +148 -0
  452. package/dist/node_modules/zod/v4/locales/fa.d.cts +4 -0
  453. package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
  454. package/dist/node_modules/zod/v4/locales/fa.js +122 -0
  455. package/dist/node_modules/zod/v4/locales/fi.cjs +148 -0
  456. package/dist/node_modules/zod/v4/locales/fi.d.cts +4 -0
  457. package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
  458. package/dist/node_modules/zod/v4/locales/fi.js +122 -0
  459. package/dist/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  460. package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  461. package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  462. package/dist/node_modules/zod/v4/locales/fr-CA.js +117 -0
  463. package/dist/node_modules/zod/v4/locales/fr.cjs +142 -0
  464. package/dist/node_modules/zod/v4/locales/fr.d.cts +4 -0
  465. package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
  466. package/dist/node_modules/zod/v4/locales/fr.js +116 -0
  467. package/dist/node_modules/zod/v4/locales/he.cjs +143 -0
  468. package/dist/node_modules/zod/v4/locales/he.d.cts +4 -0
  469. package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
  470. package/dist/node_modules/zod/v4/locales/he.js +117 -0
  471. package/dist/node_modules/zod/v4/locales/hu.cjs +143 -0
  472. package/dist/node_modules/zod/v4/locales/hu.d.cts +4 -0
  473. package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
  474. package/dist/node_modules/zod/v4/locales/hu.js +117 -0
  475. package/dist/node_modules/zod/v4/locales/id.cjs +142 -0
  476. package/dist/node_modules/zod/v4/locales/id.d.cts +4 -0
  477. package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
  478. package/dist/node_modules/zod/v4/locales/id.js +116 -0
  479. package/dist/node_modules/zod/v4/locales/index.cjs +84 -0
  480. package/dist/node_modules/zod/v4/locales/index.d.cts +39 -0
  481. package/dist/node_modules/zod/v4/locales/index.d.ts +39 -0
  482. package/dist/node_modules/zod/v4/locales/index.js +39 -0
  483. package/dist/node_modules/zod/v4/locales/it.cjs +143 -0
  484. package/dist/node_modules/zod/v4/locales/it.d.cts +4 -0
  485. package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
  486. package/dist/node_modules/zod/v4/locales/it.js +117 -0
  487. package/dist/node_modules/zod/v4/locales/ja.cjs +141 -0
  488. package/dist/node_modules/zod/v4/locales/ja.d.cts +4 -0
  489. package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
  490. package/dist/node_modules/zod/v4/locales/ja.js +115 -0
  491. package/dist/node_modules/zod/v4/locales/kh.cjs +143 -0
  492. package/dist/node_modules/zod/v4/locales/kh.d.cts +4 -0
  493. package/dist/node_modules/zod/v4/locales/kh.d.ts +4 -0
  494. package/dist/node_modules/zod/v4/locales/kh.js +117 -0
  495. package/dist/node_modules/zod/v4/locales/ko.cjs +147 -0
  496. package/dist/node_modules/zod/v4/locales/ko.d.cts +4 -0
  497. package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
  498. package/dist/node_modules/zod/v4/locales/ko.js +121 -0
  499. package/dist/node_modules/zod/v4/locales/mk.cjs +144 -0
  500. package/dist/node_modules/zod/v4/locales/mk.d.cts +4 -0
  501. package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
  502. package/dist/node_modules/zod/v4/locales/mk.js +118 -0
  503. package/dist/node_modules/zod/v4/locales/ms.cjs +142 -0
  504. package/dist/node_modules/zod/v4/locales/ms.d.cts +4 -0
  505. package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
  506. package/dist/node_modules/zod/v4/locales/ms.js +116 -0
  507. package/dist/node_modules/zod/v4/locales/nl.cjs +143 -0
  508. package/dist/node_modules/zod/v4/locales/nl.d.cts +4 -0
  509. package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
  510. package/dist/node_modules/zod/v4/locales/nl.js +117 -0
  511. package/dist/node_modules/zod/v4/locales/no.cjs +142 -0
  512. package/dist/node_modules/zod/v4/locales/no.d.cts +4 -0
  513. package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
  514. package/dist/node_modules/zod/v4/locales/no.js +116 -0
  515. package/dist/node_modules/zod/v4/locales/ota.cjs +143 -0
  516. package/dist/node_modules/zod/v4/locales/ota.d.cts +4 -0
  517. package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
  518. package/dist/node_modules/zod/v4/locales/ota.js +117 -0
  519. package/dist/node_modules/zod/v4/locales/pl.cjs +143 -0
  520. package/dist/node_modules/zod/v4/locales/pl.d.cts +4 -0
  521. package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
  522. package/dist/node_modules/zod/v4/locales/pl.js +117 -0
  523. package/dist/node_modules/zod/v4/locales/ps.cjs +148 -0
  524. package/dist/node_modules/zod/v4/locales/ps.d.cts +4 -0
  525. package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
  526. package/dist/node_modules/zod/v4/locales/ps.js +122 -0
  527. package/dist/node_modules/zod/v4/locales/pt.cjs +142 -0
  528. package/dist/node_modules/zod/v4/locales/pt.d.cts +4 -0
  529. package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
  530. package/dist/node_modules/zod/v4/locales/pt.js +116 -0
  531. package/dist/node_modules/zod/v4/locales/ru.cjs +190 -0
  532. package/dist/node_modules/zod/v4/locales/ru.d.cts +4 -0
  533. package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
  534. package/dist/node_modules/zod/v4/locales/ru.js +164 -0
  535. package/dist/node_modules/zod/v4/locales/sl.cjs +143 -0
  536. package/dist/node_modules/zod/v4/locales/sl.d.cts +4 -0
  537. package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
  538. package/dist/node_modules/zod/v4/locales/sl.js +117 -0
  539. package/dist/node_modules/zod/v4/locales/sv.cjs +144 -0
  540. package/dist/node_modules/zod/v4/locales/sv.d.cts +4 -0
  541. package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
  542. package/dist/node_modules/zod/v4/locales/sv.js +118 -0
  543. package/dist/node_modules/zod/v4/locales/ta.cjs +143 -0
  544. package/dist/node_modules/zod/v4/locales/ta.d.cts +4 -0
  545. package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
  546. package/dist/node_modules/zod/v4/locales/ta.js +117 -0
  547. package/dist/node_modules/zod/v4/locales/th.cjs +143 -0
  548. package/dist/node_modules/zod/v4/locales/th.d.cts +4 -0
  549. package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
  550. package/dist/node_modules/zod/v4/locales/th.js +117 -0
  551. package/dist/node_modules/zod/v4/locales/tr.cjs +143 -0
  552. package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
  553. package/dist/node_modules/zod/v4/locales/tr.d.ts +5 -0
  554. package/dist/node_modules/zod/v4/locales/tr.js +115 -0
  555. package/dist/node_modules/zod/v4/locales/ua.cjs +143 -0
  556. package/dist/node_modules/zod/v4/locales/ua.d.cts +4 -0
  557. package/dist/node_modules/zod/v4/locales/ua.d.ts +4 -0
  558. package/dist/node_modules/zod/v4/locales/ua.js +117 -0
  559. package/dist/node_modules/zod/v4/locales/ur.cjs +143 -0
  560. package/dist/node_modules/zod/v4/locales/ur.d.cts +4 -0
  561. package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
  562. package/dist/node_modules/zod/v4/locales/ur.js +117 -0
  563. package/dist/node_modules/zod/v4/locales/vi.cjs +142 -0
  564. package/dist/node_modules/zod/v4/locales/vi.d.cts +4 -0
  565. package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
  566. package/dist/node_modules/zod/v4/locales/vi.js +116 -0
  567. package/dist/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  568. package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  569. package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  570. package/dist/node_modules/zod/v4/locales/zh-CN.js +116 -0
  571. package/dist/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  572. package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  573. package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  574. package/dist/node_modules/zod/v4/locales/zh-TW.js +117 -0
  575. package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
  576. package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
  577. package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
  578. package/dist/node_modules/zod/v4/mini/checks.js +1 -0
  579. package/dist/node_modules/zod/v4/mini/coerce.cjs +47 -0
  580. package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  581. package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  582. package/dist/node_modules/zod/v4/mini/coerce.js +17 -0
  583. package/dist/node_modules/zod/v4/mini/external.cjs +62 -0
  584. package/dist/node_modules/zod/v4/mini/external.d.cts +11 -0
  585. package/dist/node_modules/zod/v4/mini/external.d.ts +11 -0
  586. package/dist/node_modules/zod/v4/mini/external.js +13 -0
  587. package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
  588. package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
  589. package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
  590. package/dist/node_modules/zod/v4/mini/index.js +3 -0
  591. package/dist/node_modules/zod/v4/mini/iso.cjs +60 -0
  592. package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
  593. package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
  594. package/dist/node_modules/zod/v4/mini/iso.js +30 -0
  595. package/dist/node_modules/zod/v4/mini/parse.cjs +8 -0
  596. package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
  597. package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
  598. package/dist/node_modules/zod/v4/mini/parse.js +1 -0
  599. package/dist/node_modules/zod/v4/mini/schemas.cjs +839 -0
  600. package/dist/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  601. package/dist/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  602. package/dist/node_modules/zod/v4/mini/schemas.js +732 -0
  603. package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
  604. package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
  605. package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
  606. package/dist/node_modules/zod/v4-mini/index.js +1 -0
  607. package/dist/server/collections/orchestrator-config.d.ts +2 -0
  608. package/dist/server/collections/orchestrator-config.js +79 -0
  609. package/dist/server/collections/orchestrator-logs.d.ts +8 -0
  610. package/dist/server/collections/orchestrator-logs.js +123 -0
  611. package/dist/server/index.d.ts +1 -0
  612. package/dist/server/index.js +41 -7
  613. package/dist/server/plugin.d.ts +11 -0
  614. package/dist/server/plugin.js +73 -42
  615. package/dist/server/resources/tracing.d.ts +7 -0
  616. package/dist/server/resources/tracing.js +104 -81
  617. package/dist/server/tools/delegate-task.d.ts +15 -0
  618. package/dist/server/tools/delegate-task.js +250 -298
  619. package/package.json +1 -1
  620. package/src/client/OrchestratorSettings.tsx +3 -19
  621. package/src/client/TracingTab.tsx +2 -12
  622. package/dist/client/AIEmployeeSelect.js +0 -29
  623. package/dist/client/AIEmployeesContext.js +0 -64
  624. package/dist/client/OrchestratorSettings.js +0 -32
  625. package/dist/client/RulesTab.js +0 -144
  626. package/dist/client/TracingTab.js +0 -88
  627. package/dist/client/plugin.js +0 -17
  628. /package/dist/{client/locale → locale}/en-US.json +0 -0
  629. /package/dist/{client/locale → locale}/vi-VN.json +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../v4/mini/index.cjs"), exports);
@@ -0,0 +1 @@
1
+ export * from "../v4/mini/index.cjs";
@@ -0,0 +1 @@
1
+ export * from "../v4/mini/index.js";
@@ -0,0 +1 @@
1
+ export * from "../v4/mini/index.js";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@nocobase/database").CollectionOptions;
2
+ export default _default;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var orchestrator_config_exports = {};
28
+ __export(orchestrator_config_exports, {
29
+ default: () => orchestrator_config_default
30
+ });
31
+ module.exports = __toCommonJS(orchestrator_config_exports);
32
+ var import_database = require("@nocobase/database");
33
+ var orchestrator_config_default = (0, import_database.defineCollection)({
34
+ name: "orchestratorConfig",
35
+ title: "Orchestrator Config",
36
+ fields: [
37
+ {
38
+ name: "id",
39
+ type: "bigInt",
40
+ autoIncrement: true,
41
+ primaryKey: true
42
+ },
43
+ {
44
+ name: "leaderUsername",
45
+ type: "string",
46
+ allowNull: false,
47
+ comment: "AI Employee username that acts as the Leader/Orchestrator"
48
+ },
49
+ {
50
+ name: "subAgentUsername",
51
+ type: "string",
52
+ allowNull: false,
53
+ comment: "AI Employee username that acts as the Sub-Agent"
54
+ },
55
+ {
56
+ name: "enabled",
57
+ type: "boolean",
58
+ defaultValue: true
59
+ },
60
+ {
61
+ name: "maxDepth",
62
+ type: "integer",
63
+ defaultValue: 1,
64
+ comment: "Maximum delegation depth (1 = leader can call sub, sub cannot call further)"
65
+ },
66
+ {
67
+ name: "timeout",
68
+ type: "integer",
69
+ defaultValue: 12e4,
70
+ comment: "Timeout in ms for sub-agent execution"
71
+ }
72
+ ],
73
+ indexes: [
74
+ {
75
+ unique: true,
76
+ fields: ["leaderUsername", "subAgentUsername"]
77
+ }
78
+ ]
79
+ });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Stores delegation execution logs for Swarm Tracing (Phase 5).
3
+ *
4
+ * Since createReactAgent doesn't create aiConversation records,
5
+ * we log delegation events to a dedicated table for observability.
6
+ */
7
+ declare const _default: import("@nocobase/database").CollectionOptions;
8
+ export default _default;
@@ -0,0 +1,123 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var orchestrator_logs_exports = {};
28
+ __export(orchestrator_logs_exports, {
29
+ default: () => orchestrator_logs_default
30
+ });
31
+ module.exports = __toCommonJS(orchestrator_logs_exports);
32
+ var import_database = require("@nocobase/database");
33
+ var orchestrator_logs_default = (0, import_database.defineCollection)({
34
+ name: "orchestratorLogs",
35
+ title: "Orchestrator Logs",
36
+ fields: [
37
+ {
38
+ name: "id",
39
+ type: "bigInt",
40
+ autoIncrement: true,
41
+ primaryKey: true
42
+ },
43
+ {
44
+ name: "leaderUsername",
45
+ type: "string",
46
+ allowNull: false,
47
+ comment: "The AI Employee that initiated the delegation"
48
+ },
49
+ {
50
+ name: "subAgentUsername",
51
+ type: "string",
52
+ allowNull: false,
53
+ comment: "The AI Employee that executed the delegated task"
54
+ },
55
+ {
56
+ name: "toolName",
57
+ type: "string",
58
+ comment: "The tool name used for delegation (e.g., delegate_to_sql_expert)"
59
+ },
60
+ {
61
+ name: "task",
62
+ type: "text",
63
+ comment: "The task description sent to the sub-agent"
64
+ },
65
+ {
66
+ name: "result",
67
+ type: "text",
68
+ comment: "The sub-agent result content"
69
+ },
70
+ {
71
+ name: "status",
72
+ type: "string",
73
+ comment: "success or error"
74
+ },
75
+ {
76
+ name: "depth",
77
+ type: "integer",
78
+ defaultValue: 0,
79
+ comment: "Delegation depth level (0 = first-level delegation)"
80
+ },
81
+ {
82
+ name: "durationMs",
83
+ type: "integer",
84
+ comment: "Execution duration in milliseconds"
85
+ },
86
+ {
87
+ name: "error",
88
+ type: "text",
89
+ comment: "Error message if status is error"
90
+ },
91
+ {
92
+ name: "userId",
93
+ type: "bigInt",
94
+ comment: "The user who triggered the leader conversation"
95
+ },
96
+ {
97
+ name: "createdAt",
98
+ type: "date",
99
+ interface: "createdAt",
100
+ field: "createdAt",
101
+ uiSchema: {
102
+ type: "datetime",
103
+ title: '{{t("Created at")}}',
104
+ "x-component": "DatePicker",
105
+ "x-component-props": { showTime: true },
106
+ "x-read-pretty": true
107
+ }
108
+ },
109
+ {
110
+ name: "updatedAt",
111
+ type: "date",
112
+ interface: "updatedAt",
113
+ field: "updatedAt",
114
+ uiSchema: {
115
+ type: "datetime",
116
+ title: '{{t("Updated at")}}',
117
+ "x-component": "DatePicker",
118
+ "x-component-props": { showTime: true },
119
+ "x-read-pretty": true
120
+ }
121
+ }
122
+ ]
123
+ });
@@ -0,0 +1 @@
1
+ export { default } from './plugin';
@@ -1,8 +1,42 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
4
19
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
7
- var plugin_1 = require("./plugin");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(plugin_1).default; } });
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var server_exports = {};
38
+ __export(server_exports, {
39
+ default: () => import_plugin.default
40
+ });
41
+ module.exports = __toCommonJS(server_exports);
42
+ var import_plugin = __toESM(require("./plugin"));
@@ -0,0 +1,11 @@
1
+ import { Plugin } from '@nocobase/server';
2
+ export declare class PluginAgentOrchestratorServer extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ beforeLoad(): Promise<void>;
5
+ load(): Promise<void>;
6
+ install(): Promise<void>;
7
+ afterEnable(): Promise<void>;
8
+ afterDisable(): Promise<void>;
9
+ remove(): Promise<void>;
10
+ }
11
+ export default PluginAgentOrchestratorServer;
@@ -1,44 +1,75 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
4
19
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PluginAgentOrchestratorServer = void 0;
7
- const server_1 = require("@nocobase/server");
8
- const path_1 = __importDefault(require("path"));
9
- const delegate_task_1 = require("./tools/delegate-task");
10
- const tracing_1 = require("./resources/tracing");
11
- class PluginAgentOrchestratorServer extends server_1.Plugin {
12
- async afterAdd() { }
13
- async beforeLoad() {
14
- // Import collection definitions
15
- this.db.import({ directory: path_1.default.resolve(__dirname, 'collections') });
16
- }
17
- async load() {
18
- // --- ACL ---
19
- this.app.acl.registerSnippet({
20
- name: `pm.${this.name}`,
21
- actions: ['orchestratorConfig:*'],
22
- });
23
- // --- Register Dynamic Tools ---
24
- // Each configured sub-agent becomes a callable tool for its leader.
25
- // Uses createReactAgent (LangGraph public API) instead of private AIEmployee class.
26
- // Tools are registered via app.aiManager.toolsManager (public API from @nocobase/ai core).
27
- const toolsManager = this.app.aiManager.toolsManager;
28
- toolsManager.registerDynamicTools((0, delegate_task_1.createDelegateToolsProvider)(this));
29
- // --- Register Tracing Resource (Phase 5) ---
30
- // Custom read-only resource for the Swarm Tracing admin page.
31
- (0, tracing_1.registerTracingResource)(this);
32
- // NOTE: The createReactAgent approach does NOT create aiConversation records,
33
- // so there is no need for a middleware to hide "headless" conversations.
34
- // If future versions need conversation logging, add it here.
35
- }
36
- async install() {
37
- // No seed data needed on first install
38
- }
39
- async afterEnable() { }
40
- async afterDisable() { }
41
- async remove() { }
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var plugin_exports = {};
38
+ __export(plugin_exports, {
39
+ PluginAgentOrchestratorServer: () => PluginAgentOrchestratorServer,
40
+ default: () => plugin_default
41
+ });
42
+ module.exports = __toCommonJS(plugin_exports);
43
+ var import_server = require("@nocobase/server");
44
+ var import_path = __toESM(require("path"));
45
+ var import_delegate_task = require("./tools/delegate-task");
46
+ var import_tracing = require("./resources/tracing");
47
+ class PluginAgentOrchestratorServer extends import_server.Plugin {
48
+ async afterAdd() {
49
+ }
50
+ async beforeLoad() {
51
+ this.db.import({ directory: import_path.default.resolve(__dirname, "collections") });
52
+ }
53
+ async load() {
54
+ this.app.acl.registerSnippet({
55
+ name: `pm.${this.name}`,
56
+ actions: ["orchestratorConfig:*"]
57
+ });
58
+ const toolsManager = this.app.aiManager.toolsManager;
59
+ toolsManager.registerDynamicTools((0, import_delegate_task.createDelegateToolsProvider)(this));
60
+ (0, import_tracing.registerTracingResource)(this);
61
+ }
62
+ async install() {
63
+ }
64
+ async afterEnable() {
65
+ }
66
+ async afterDisable() {
67
+ }
68
+ async remove() {
69
+ }
42
70
  }
43
- exports.PluginAgentOrchestratorServer = PluginAgentOrchestratorServer;
44
- exports.default = PluginAgentOrchestratorServer;
71
+ var plugin_default = PluginAgentOrchestratorServer;
72
+ // Annotate the CommonJS export names for ESM import in node:
73
+ 0 && (module.exports = {
74
+ PluginAgentOrchestratorServer
75
+ });
@@ -0,0 +1,7 @@
1
+ import { Plugin } from '@nocobase/server';
2
+ /**
3
+ * Custom resource for the Swarm Tracing admin UI (Phase 5).
4
+ * Queries the dedicated orchestratorLogs collection instead of
5
+ * filtering aiConversations by JSONB (P2 fix: DB-engine agnostic).
6
+ */
7
+ export declare function registerTracingResource(plugin: Plugin): void;
@@ -1,85 +1,108 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerTracingResource = void 0;
4
1
  /**
5
- * Custom resource for the Swarm Tracing admin UI (Phase 5).
6
- * Queries the dedicated orchestratorLogs collection instead of
7
- * filtering aiConversations by JSONB (P2 fix: DB-engine agnostic).
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var tracing_exports = {};
28
+ __export(tracing_exports, {
29
+ registerTracingResource: () => registerTracingResource
30
+ });
31
+ module.exports = __toCommonJS(tracing_exports);
9
32
  function registerTracingResource(plugin) {
10
- const app = plugin.app;
11
- app.resource({
12
- name: 'orchestratorTracing',
13
- actions: {
14
- /**
15
- * List all delegation execution logs.
16
- */
17
- async list(ctx, next) {
18
- const repo = ctx.db.getRepository('orchestratorLogs');
19
- const { page = 1, pageSize = 50, sort = ['-createdAt'] } = ctx.action.params;
20
- try {
21
- const [rows, count] = await repo.findAndCount({
22
- sort,
23
- offset: (Number(page) - 1) * Number(pageSize),
24
- limit: Number(pageSize),
25
- });
26
- ctx.body = {
27
- data: rows.map((row) => ({
28
- id: row.id,
29
- leaderUsername: row.leaderUsername,
30
- subAgentUsername: row.subAgentUsername,
31
- toolName: row.toolName,
32
- task: row.task,
33
- result: row.result,
34
- status: row.status,
35
- depth: row.depth,
36
- durationMs: row.durationMs,
37
- error: row.error,
38
- userId: row.userId,
39
- createdAt: row.createdAt,
40
- })),
41
- meta: {
42
- count,
43
- page: Number(page),
44
- pageSize: Number(pageSize),
45
- totalPage: Math.ceil(count / Number(pageSize)),
46
- },
47
- };
48
- }
49
- catch (e) {
50
- ctx.log.error('[AgentOrchestrator] Tracing list error', e);
51
- ctx.body = { data: [], meta: { count: 0 } };
52
- }
53
- await next();
54
- },
55
- /**
56
- * Get a single delegation log by ID.
57
- */
58
- async get(ctx, next) {
59
- const { filterByTk } = ctx.action.params;
60
- if (!filterByTk) {
61
- ctx.throw(400, 'id is required');
62
- return;
63
- }
64
- try {
65
- const repo = ctx.db.getRepository('orchestratorLogs');
66
- const log = await repo.findOne({
67
- filter: { id: filterByTk },
68
- });
69
- ctx.body = { data: log };
70
- }
71
- catch (e) {
72
- ctx.log.error('[AgentOrchestrator] Tracing get error', e);
73
- ctx.body = { data: null };
74
- }
75
- await next();
76
- },
77
- },
78
- });
79
- // ACL: allow admin access to tracing endpoints
80
- app.acl.registerSnippet({
81
- name: `pm.${plugin.name}.tracing`,
82
- actions: ['orchestratorTracing:list', 'orchestratorTracing:get'],
83
- });
33
+ const app = plugin.app;
34
+ app.resource({
35
+ name: "orchestratorTracing",
36
+ actions: {
37
+ /**
38
+ * List all delegation execution logs.
39
+ */
40
+ async list(ctx, next) {
41
+ const repo = ctx.db.getRepository("orchestratorLogs");
42
+ const { page = 1, pageSize = 50, sort = ["-createdAt"] } = ctx.action.params;
43
+ try {
44
+ const [rows, count] = await repo.findAndCount({
45
+ sort,
46
+ offset: (Number(page) - 1) * Number(pageSize),
47
+ limit: Number(pageSize)
48
+ });
49
+ ctx.body = {
50
+ data: rows.map((row) => ({
51
+ id: row.id,
52
+ leaderUsername: row.leaderUsername,
53
+ subAgentUsername: row.subAgentUsername,
54
+ toolName: row.toolName,
55
+ task: row.task,
56
+ result: row.result,
57
+ status: row.status,
58
+ depth: row.depth,
59
+ durationMs: row.durationMs,
60
+ error: row.error,
61
+ userId: row.userId,
62
+ createdAt: row.createdAt
63
+ })),
64
+ meta: {
65
+ count,
66
+ page: Number(page),
67
+ pageSize: Number(pageSize),
68
+ totalPage: Math.ceil(count / Number(pageSize))
69
+ }
70
+ };
71
+ } catch (e) {
72
+ ctx.log.error("[AgentOrchestrator] Tracing list error", e);
73
+ ctx.body = { data: [], meta: { count: 0 } };
74
+ }
75
+ await next();
76
+ },
77
+ /**
78
+ * Get a single delegation log by ID.
79
+ */
80
+ async get(ctx, next) {
81
+ const { filterByTk } = ctx.action.params;
82
+ if (!filterByTk) {
83
+ ctx.throw(400, "id is required");
84
+ return;
85
+ }
86
+ try {
87
+ const repo = ctx.db.getRepository("orchestratorLogs");
88
+ const log = await repo.findOne({
89
+ filter: { id: filterByTk }
90
+ });
91
+ ctx.body = { data: log };
92
+ } catch (e) {
93
+ ctx.log.error("[AgentOrchestrator] Tracing get error", e);
94
+ ctx.body = { data: null };
95
+ }
96
+ await next();
97
+ }
98
+ }
99
+ });
100
+ app.acl.registerSnippet({
101
+ name: `pm.${plugin.name}.tracing`,
102
+ actions: ["orchestratorTracing:list", "orchestratorTracing:get"]
103
+ });
84
104
  }
85
- exports.registerTracingResource = registerTracingResource;
105
+ // Annotate the CommonJS export names for ESM import in node:
106
+ 0 && (module.exports = {
107
+ registerTracingResource
108
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Creates one dynamic tool per configured sub-agent for a given leader.
3
+ * Uses Strategy B (Per-SubAgent Tool): each sub-agent becomes a separate tool
4
+ * with its own name and description, making LLM tool selection natural.
5
+ *
6
+ * Architecture:
7
+ * - Uses createReactAgent (public LangGraph API) for agent execution
8
+ * - Uses plugin-ai's getLLMService() for LLM model resolution
9
+ * - Uses core app.aiManager.toolsManager.listTools() for tool resolution
10
+ * (same manager that AIEmployee uses — see ai-employee.ts:1286)
11
+ * - Depth enforcement via ctx metadata tracking
12
+ * - Per-leader scoping via invoke-time check (core ToolsOptions has no
13
+ * leaderUsername field, so scoping is enforced in the invoke callback)
14
+ */
15
+ export declare function createDelegateToolsProvider(plugin: any): (register: any) => Promise<void>;