@llm-dev-ops/agentics-cli 1.4.52 → 1.4.54

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 (328) hide show
  1. package/dist/bundled-agents/connector-hub-agents/package-lock.json +11697 -0
  2. package/dist/bundled-agents/connector-hub-agents/package.json +75 -0
  3. package/dist/bundled-agents/connector-hub-agents/tsconfig.build.json +22 -0
  4. package/dist/bundled-agents/connector-hub-agents/tsconfig.json +57 -0
  5. package/dist/bundled-agents/copilot-agents/functions/.gcloudignore +17 -0
  6. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.d.ts +14 -0
  7. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js +35 -0
  8. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js.map +1 -0
  9. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.d.ts +55 -0
  10. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js +40 -0
  11. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js.map +1 -0
  12. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.d.ts +22 -0
  13. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js +38 -0
  14. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js.map +1 -0
  15. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.d.ts +34 -0
  16. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js +186 -0
  17. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js.map +1 -0
  18. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.d.ts +36 -0
  19. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js +121 -0
  20. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js.map +1 -0
  21. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.d.ts +157 -0
  22. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js +948 -0
  23. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js.map +1 -0
  24. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.d.ts +9 -0
  25. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js +27 -0
  26. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js.map +1 -0
  27. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.d.ts +23 -0
  28. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js +50 -0
  29. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js.map +1 -0
  30. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.d.ts +214 -0
  31. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js +91 -0
  32. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js.map +1 -0
  33. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.d.ts +1166 -0
  34. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js +308 -0
  35. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js.map +1 -0
  36. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.d.ts +59 -0
  37. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js +62 -0
  38. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js.map +1 -0
  39. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.d.ts +400 -0
  40. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js +113 -0
  41. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js.map +1 -0
  42. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.d.ts +250 -0
  43. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js +169 -0
  44. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js.map +1 -0
  45. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.d.ts +17 -0
  46. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js +97 -0
  47. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js.map +1 -0
  48. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.d.ts +1674 -0
  49. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js +246 -0
  50. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js.map +1 -0
  51. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.d.ts +1085 -0
  52. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js +218 -0
  53. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js.map +1 -0
  54. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.d.ts +949 -0
  55. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js +253 -0
  56. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js.map +1 -0
  57. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.d.ts +657 -0
  58. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js +205 -0
  59. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js.map +1 -0
  60. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.d.ts +285 -0
  61. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js +106 -0
  62. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js.map +1 -0
  63. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.d.ts +581 -0
  64. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js +136 -0
  65. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js.map +1 -0
  66. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.d.ts +791 -0
  67. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js +225 -0
  68. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js.map +1 -0
  69. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.d.ts +120 -0
  70. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js +535 -0
  71. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js.map +1 -0
  72. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.d.ts +9 -0
  73. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js +18 -0
  74. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js.map +1 -0
  75. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.d.ts +4 -0
  76. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js +9 -0
  77. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js.map +1 -0
  78. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.d.ts +123 -0
  79. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js +609 -0
  80. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js.map +1 -0
  81. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.d.ts +10 -0
  82. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js +25 -0
  83. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js.map +1 -0
  84. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +111 -0
  85. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js +686 -0
  86. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js.map +1 -0
  87. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.d.ts +11 -0
  88. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js +25 -0
  89. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js.map +1 -0
  90. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.d.ts +6 -0
  91. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js +15 -0
  92. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js.map +1 -0
  93. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +126 -0
  94. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js +780 -0
  95. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js.map +1 -0
  96. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.d.ts +49 -0
  97. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js +125 -0
  98. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js.map +1 -0
  99. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.d.ts +73 -0
  100. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js +192 -0
  101. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js.map +1 -0
  102. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.d.ts +11 -0
  103. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js +25 -0
  104. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js.map +1 -0
  105. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.d.ts +127 -0
  106. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js +483 -0
  107. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js.map +1 -0
  108. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.d.ts +49 -0
  109. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js +125 -0
  110. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js.map +1 -0
  111. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.d.ts +73 -0
  112. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js +192 -0
  113. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js.map +1 -0
  114. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.d.ts +11 -0
  115. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js +27 -0
  116. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js.map +1 -0
  117. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.d.ts +122 -0
  118. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js +645 -0
  119. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js.map +1 -0
  120. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.d.ts +59 -0
  121. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js +156 -0
  122. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js.map +1 -0
  123. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.d.ts +88 -0
  124. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js +246 -0
  125. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js.map +1 -0
  126. package/dist/bundled-agents/copilot-agents/functions/index.js +4 -0
  127. package/dist/bundled-agents/copilot-agents/functions/jest.config.js +29 -0
  128. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.d.ts +14 -0
  129. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js +35 -0
  130. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js.map +1 -0
  131. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.d.ts +27 -0
  132. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js +21 -0
  133. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js.map +1 -0
  134. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.d.ts +22 -0
  135. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js +38 -0
  136. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js.map +1 -0
  137. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.d.ts +34 -0
  138. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js +174 -0
  139. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js.map +1 -0
  140. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.d.ts +27 -0
  141. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js +107 -0
  142. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js.map +1 -0
  143. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.d.ts +157 -0
  144. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js +941 -0
  145. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js.map +1 -0
  146. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.d.ts +9 -0
  147. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js +27 -0
  148. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js.map +1 -0
  149. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.d.ts +23 -0
  150. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js +50 -0
  151. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js.map +1 -0
  152. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.d.ts +185 -0
  153. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js +86 -0
  154. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js.map +1 -0
  155. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.d.ts +1081 -0
  156. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js +305 -0
  157. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js.map +1 -0
  158. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.d.ts +59 -0
  159. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js +62 -0
  160. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js.map +1 -0
  161. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.d.ts +315 -0
  162. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js +110 -0
  163. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js.map +1 -0
  164. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.d.ts +250 -0
  165. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js +169 -0
  166. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js.map +1 -0
  167. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.d.ts +16 -0
  168. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js +88 -0
  169. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js.map +1 -0
  170. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.d.ts +1674 -0
  171. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js +246 -0
  172. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js.map +1 -0
  173. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.d.ts +1000 -0
  174. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js +215 -0
  175. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js.map +1 -0
  176. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.d.ts +864 -0
  177. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js +250 -0
  178. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js.map +1 -0
  179. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.d.ts +572 -0
  180. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js +202 -0
  181. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js.map +1 -0
  182. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.d.ts +496 -0
  183. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js +133 -0
  184. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js.map +1 -0
  185. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.d.ts +706 -0
  186. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js +222 -0
  187. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js.map +1 -0
  188. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.d.ts +107 -0
  189. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js +360 -0
  190. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js.map +1 -0
  191. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.d.ts +9 -0
  192. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js +18 -0
  193. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js.map +1 -0
  194. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.d.ts +4 -0
  195. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js +9 -0
  196. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js.map +1 -0
  197. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.d.ts +123 -0
  198. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js +609 -0
  199. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js.map +1 -0
  200. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.d.ts +10 -0
  201. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js +25 -0
  202. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js.map +1 -0
  203. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +111 -0
  204. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js +686 -0
  205. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js.map +1 -0
  206. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.d.ts +11 -0
  207. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js +25 -0
  208. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js.map +1 -0
  209. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.d.ts +6 -0
  210. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js +15 -0
  211. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js.map +1 -0
  212. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +126 -0
  213. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js +780 -0
  214. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js.map +1 -0
  215. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.d.ts +49 -0
  216. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js +125 -0
  217. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js.map +1 -0
  218. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.d.ts +73 -0
  219. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js +192 -0
  220. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js.map +1 -0
  221. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.d.ts +11 -0
  222. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js +25 -0
  223. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js.map +1 -0
  224. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.d.ts +119 -0
  225. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js +421 -0
  226. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js.map +1 -0
  227. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.d.ts +49 -0
  228. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js +125 -0
  229. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js.map +1 -0
  230. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.d.ts +73 -0
  231. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js +192 -0
  232. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js.map +1 -0
  233. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.d.ts +11 -0
  234. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js +27 -0
  235. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js.map +1 -0
  236. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.d.ts +122 -0
  237. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js +645 -0
  238. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js.map +1 -0
  239. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.d.ts +59 -0
  240. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js +156 -0
  241. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js.map +1 -0
  242. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.d.ts +88 -0
  243. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js +246 -0
  244. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js.map +1 -0
  245. package/dist/bundled-agents/copilot-agents/functions/package-lock.json +5473 -0
  246. package/dist/bundled-agents/copilot-agents/functions/package.json +40 -0
  247. package/dist/bundled-agents/copilot-agents/functions/src/claude.ts +71 -0
  248. package/dist/bundled-agents/copilot-agents/functions/src/cors.ts +36 -0
  249. package/dist/bundled-agents/copilot-agents/functions/src/envelope.ts +77 -0
  250. package/dist/bundled-agents/copilot-agents/functions/src/handler.test.ts +340 -0
  251. package/dist/bundled-agents/copilot-agents/functions/src/health.ts +53 -0
  252. package/dist/bundled-agents/copilot-agents/functions/src/index.ts +201 -0
  253. package/dist/bundled-agents/copilot-agents/functions/src/router.ts +148 -0
  254. package/dist/bundled-agents/copilot-agents/functions/tsconfig.json +31 -0
  255. package/dist/bundled-agents/copilot-agents/package-lock.json +11825 -0
  256. package/dist/bundled-agents/copilot-agents/package.json +5 -0
  257. package/dist/bundled-agents/governance-dashboard-agents/package-lock.json +8282 -0
  258. package/dist/bundled-agents/governance-dashboard-agents/package.json +13 -0
  259. package/dist/bundled-agents/orchestrator-agents/functions/contracts/index.js +590 -0
  260. package/dist/bundled-agents/orchestrator-agents/functions/index.js +442 -0
  261. package/dist/bundled-agents/orchestrator-agents/functions/test.js +325 -0
  262. package/dist/bundled-agents/orchestrator-agents/index.js +6 -0
  263. package/dist/bundled-agents/orchestrator-agents/package-lock.json +13254 -0
  264. package/dist/bundled-agents/orchestrator-agents/package.json +20 -0
  265. package/dist/bundled-agents/platform-agents/package-lock.json +1723 -0
  266. package/dist/bundled-agents/platform-agents/package.json +22 -0
  267. package/dist/bundled-agents/platform-agents/src/agents/decision-memo.ts +463 -0
  268. package/dist/bundled-agents/platform-agents/src/agents/decision.ts +234 -0
  269. package/dist/bundled-agents/platform-agents/src/agents/executive-summary.ts +229 -0
  270. package/dist/bundled-agents/platform-agents/src/agents/risk-score.ts +327 -0
  271. package/dist/bundled-agents/platform-agents/src/claude.ts +71 -0
  272. package/dist/bundled-agents/platform-agents/src/cors.ts +24 -0
  273. package/dist/bundled-agents/platform-agents/src/envelope.ts +37 -0
  274. package/dist/bundled-agents/platform-agents/src/health.ts +20 -0
  275. package/dist/bundled-agents/platform-agents/src/index.ts +171 -0
  276. package/dist/bundled-agents/platform-agents/src/router.ts +38 -0
  277. package/dist/bundled-agents/platform-agents/src/text-analysis.ts +238 -0
  278. package/dist/bundled-agents/platform-agents/tsconfig.json +19 -0
  279. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts +3 -0
  280. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts.map +1 -0
  281. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js +43 -0
  282. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js.map +1 -0
  283. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts +3 -0
  284. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts.map +1 -0
  285. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js +30 -0
  286. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js.map +1 -0
  287. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts +3 -0
  288. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts.map +1 -0
  289. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js +53 -0
  290. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js.map +1 -0
  291. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts +3 -0
  292. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts.map +1 -0
  293. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js +51 -0
  294. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js.map +1 -0
  295. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts +3 -0
  296. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts.map +1 -0
  297. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js +36 -0
  298. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js.map +1 -0
  299. package/dist/bundled-agents/sentinel-agents/lib/index.d.ts +2 -0
  300. package/dist/bundled-agents/sentinel-agents/lib/index.d.ts.map +1 -0
  301. package/dist/bundled-agents/sentinel-agents/lib/index.js +70 -0
  302. package/dist/bundled-agents/sentinel-agents/lib/index.js.map +1 -0
  303. package/dist/bundled-agents/sentinel-agents/package-lock.json +12591 -0
  304. package/dist/bundled-agents/sentinel-agents/package.json +62 -0
  305. package/dist/bundled-agents/sentinel-agents/src/agents/alert.ts +46 -0
  306. package/dist/bundled-agents/sentinel-agents/src/agents/anomaly.ts +33 -0
  307. package/dist/bundled-agents/sentinel-agents/src/agents/correlation.ts +56 -0
  308. package/dist/bundled-agents/sentinel-agents/src/agents/drift.ts +54 -0
  309. package/dist/bundled-agents/sentinel-agents/src/agents/rca.ts +38 -0
  310. package/dist/bundled-agents/sentinel-agents/src/claude.ts +71 -0
  311. package/dist/bundled-agents/sentinel-agents/src/index.ts +77 -0
  312. package/dist/bundled-agents/sentinel-agents/tsconfig.json +20 -0
  313. package/dist/pipeline/auto-chain.d.ts.map +1 -1
  314. package/dist/pipeline/auto-chain.js +52 -0
  315. package/dist/pipeline/auto-chain.js.map +1 -1
  316. package/dist/pipeline/phase2/phases/ddd-generator.d.ts.map +1 -1
  317. package/dist/pipeline/phase2/phases/ddd-generator.js +15 -1
  318. package/dist/pipeline/phase2/phases/ddd-generator.js.map +1 -1
  319. package/dist/pipeline/phase2/phases/sparc-specification.d.ts.map +1 -1
  320. package/dist/pipeline/phase2/phases/sparc-specification.js +9 -0
  321. package/dist/pipeline/phase2/phases/sparc-specification.js.map +1 -1
  322. package/dist/pipeline/phase3/phases/domain-codegen.d.ts.map +1 -1
  323. package/dist/pipeline/phase3/phases/domain-codegen.js +41 -0
  324. package/dist/pipeline/phase3/phases/domain-codegen.js.map +1 -1
  325. package/dist/pipeline/ruflo-phase-executor.d.ts.map +1 -1
  326. package/dist/pipeline/ruflo-phase-executor.js +109 -19
  327. package/dist/pipeline/ruflo-phase-executor.js.map +1 -1
  328. package/package.json +1 -1
@@ -0,0 +1,535 @@
1
+ "use strict";
2
+ /**
3
+ * Decomposer Agent
4
+ *
5
+ * Purpose: Decompose complex objectives into manageable sub-objectives
6
+ * and produce structured pipeline execution plans.
7
+ * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
8
+ * decision_type: objective_decomposition
9
+ *
10
+ * Scope:
11
+ * - Break complex objectives into sub-objectives
12
+ * - Identify sub-objective relationships
13
+ * - Assess decomposition completeness
14
+ * - Produce a pipeline spec (DAG) routing to agents across the 27-domain registry
15
+ *
16
+ * CONSTITUTION COMPLIANCE:
17
+ * ✓ Stateless at runtime
18
+ * ✓ Emits exactly ONE DecisionEvent per invocation
19
+ * ✓ Persists ONLY via ruvector-service
20
+ * ✓ NEVER connects directly to databases
21
+ * ✓ NEVER executes SQL
22
+ * ✓ NEVER modifies runtime behavior
23
+ * ✓ NEVER orchestrates other agents
24
+ * ✓ NEVER enforces policy
25
+ * ✓ NEVER intercepts execution paths
26
+ *
27
+ * Must Never:
28
+ * - Execute sub-objectives
29
+ * - Assign agents
30
+ * - Allocate resources
31
+ * - Schedule execution
32
+ */
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.DecomposerAgent = void 0;
35
+ const uuid_1 = require("uuid");
36
+ const contracts_1 = require("../contracts");
37
+ const AGENT_ID = 'decomposer-agent';
38
+ const AGENT_VERSION = '1.0.0';
39
+ const DECISION_TYPE = 'objective_decomposition';
40
+ const DOMAIN_ROUTES = [
41
+ // copilot domain
42
+ { keywords: ['plan', 'strategy', 'roadmap', 'approach'], domain: 'copilot', agent: 'planner', description: 'Generate implementation plan', output_schema: 'plan_artifact' },
43
+ { keywords: ['clarify', 'ambiguous', 'unclear', 'requirements'], domain: 'copilot', agent: 'clarifier', description: 'Clarify objective requirements', output_schema: 'clarification_artifact' },
44
+ { keywords: ['intent', 'classify', 'categorize'], domain: 'copilot', agent: 'intent', description: 'Classify user intent', output_schema: 'intent_artifact' },
45
+ { keywords: ['reflect', 'evaluate', 'review', 'quality'], domain: 'copilot', agent: 'reflection', description: 'Evaluate decision quality', output_schema: 'reflection_artifact' },
46
+ { keywords: ['validate', 'config', 'configuration'], domain: 'copilot', agent: 'config', description: 'Validate configuration', output_schema: 'config_artifact' },
47
+ // forge domain
48
+ { keywords: ['scaffold', 'mvp', 'prototype', 'boilerplate'], domain: 'forge', agent: 'scaffold', description: 'Scaffold project structure', output_schema: 'forge_artifact' },
49
+ { keywords: ['sdk', 'library', 'package'], domain: 'forge', agent: 'sdk', description: 'Generate SDK / library scaffold', output_schema: 'forge_artifact' },
50
+ { keywords: ['template', 'starter'], domain: 'forge', agent: 'template', description: 'Apply project template', output_schema: 'forge_artifact' },
51
+ // runtime domain
52
+ { keywords: ['execute', 'run', 'sandbox'], domain: 'runtime', agent: 'executor', description: 'Execute code in sandbox', output_schema: 'runtime_artifact' },
53
+ // data domain
54
+ { keywords: ['ingest', 'etl', 'import', 'data pipeline'], domain: 'data', agent: 'ingest', description: 'Ingest data from sources', output_schema: 'data_artifact' },
55
+ { keywords: ['transform', 'clean', 'normalize data'], domain: 'data', agent: 'transform', description: 'Transform and clean data', output_schema: 'data_artifact' },
56
+ { keywords: ['query', 'sql', 'database', 'db'], domain: 'data', agent: 'query', description: 'Query data sources', output_schema: 'data_artifact' },
57
+ // auth domain
58
+ { keywords: ['auth', 'login', 'identity', 'sso', 'oauth'], domain: 'auth', agent: 'identity', description: 'Set up authentication / identity', output_schema: 'auth_artifact' },
59
+ { keywords: ['rbac', 'permission', 'role', 'access control'], domain: 'auth', agent: 'rbac', description: 'Configure role-based access', output_schema: 'auth_artifact' },
60
+ // deploy domain
61
+ { keywords: ['deploy', 'release', 'ship', 'production', 'ci/cd'], domain: 'deploy', agent: 'cd', description: 'Plan deployment pipeline', output_schema: 'deploy_artifact' },
62
+ { keywords: ['rollback', 'revert'], domain: 'deploy', agent: 'rollback', description: 'Plan rollback strategy', output_schema: 'deploy_artifact' },
63
+ // test domain
64
+ { keywords: ['test', 'unit test', 'spec'], domain: 'test', agent: 'unit', description: 'Generate unit tests', output_schema: 'test_artifact' },
65
+ { keywords: ['integration test', 'contract test'], domain: 'test', agent: 'integration', description: 'Generate integration tests', output_schema: 'test_artifact' },
66
+ { keywords: ['e2e', 'end-to-end', 'acceptance test'], domain: 'test', agent: 'e2e', description: 'Generate end-to-end tests', output_schema: 'test_artifact' },
67
+ // docs domain
68
+ { keywords: ['document', 'docs', 'readme', 'api doc'], domain: 'docs', agent: 'generate', description: 'Generate documentation', output_schema: 'docs_artifact' },
69
+ // security domain
70
+ { keywords: ['security', 'scan', 'vulnerability'], domain: 'security', agent: 'scan', description: 'Run security scan', output_schema: 'security_artifact' },
71
+ { keywords: ['audit', 'compliance', 'gdpr', 'hipaa', 'soc2'], domain: 'security', agent: 'audit', description: 'Perform security audit', output_schema: 'security_artifact' },
72
+ // ml domain
73
+ { keywords: ['train', 'model', 'machine learning', 'ml'], domain: 'ml', agent: 'train', description: 'Train ML model', output_schema: 'ml_artifact' },
74
+ { keywords: ['inference', 'predict'], domain: 'ml', agent: 'inference', description: 'Run ML inference', output_schema: 'ml_artifact' },
75
+ // ui domain
76
+ { keywords: ['ui', 'component', 'frontend', 'react', 'vue'], domain: 'ui', agent: 'component', description: 'Build UI components', output_schema: 'ui_artifact' },
77
+ // messaging domain
78
+ { keywords: ['event', 'pubsub', 'queue', 'message', 'kafka'], domain: 'messaging', agent: 'pubsub', description: 'Configure messaging / events', output_schema: 'messaging_artifact' },
79
+ // storage domain
80
+ { keywords: ['storage', 'upload', 'blob', 'file', 's3'], domain: 'storage', agent: 'blob', description: 'Configure storage', output_schema: 'storage_artifact' },
81
+ { keywords: ['cache', 'redis', 'memcache'], domain: 'storage', agent: 'cache', description: 'Configure caching layer', output_schema: 'storage_artifact' },
82
+ // gateway domain
83
+ { keywords: ['api gateway', 'route', 'proxy', 'rate limit'], domain: 'gateway', agent: 'route', description: 'Configure API gateway', output_schema: 'gateway_artifact' },
84
+ // analytics domain
85
+ { keywords: ['analytics', 'metrics', 'dashboard', 'report'], domain: 'analytics', agent: 'report', description: 'Set up analytics / reporting', output_schema: 'analytics_artifact' },
86
+ // notification domain
87
+ { keywords: ['notify', 'email', 'push', 'webhook', 'alert'], domain: 'notification', agent: 'webhook', description: 'Configure notifications', output_schema: 'notification_artifact' },
88
+ // migration domain
89
+ { keywords: ['migrate', 'migration', 'upgrade'], domain: 'migration', agent: 'schema', description: 'Plan migration', output_schema: 'migration_artifact' },
90
+ // i18n domain
91
+ { keywords: ['translate', 'i18n', 'locale', 'internationali'], domain: 'i18n', agent: 'translate', description: 'Set up internationalisation', output_schema: 'i18n_artifact' },
92
+ // devtools domain
93
+ { keywords: ['lint', 'format', 'prettier', 'eslint'], domain: 'devtools', agent: 'lint', description: 'Configure linting / formatting', output_schema: 'devtools_artifact' },
94
+ // observability domain
95
+ { keywords: ['monitor', 'trace', 'observability', 'log'], domain: 'observability', agent: 'trace', description: 'Set up observability', output_schema: 'observability_artifact' },
96
+ // edge domain
97
+ { keywords: ['cdn', 'edge', 'serverless function'], domain: 'edge', agent: 'cdn', description: 'Configure edge / CDN', output_schema: 'edge_artifact' },
98
+ // secret domain
99
+ { keywords: ['secret', 'vault', 'credential', 'env var'], domain: 'secret', agent: 'vault', description: 'Manage secrets / credentials', output_schema: 'secret_artifact' },
100
+ // workflow domain
101
+ { keywords: ['workflow', 'pipeline', 'orchestrat'], domain: 'workflow', agent: 'orchestrate', description: 'Design workflow orchestration', output_schema: 'workflow_artifact' },
102
+ // billing domain
103
+ { keywords: ['billing', 'payment', 'invoice', 'subscription'], domain: 'billing', agent: 'meter', description: 'Configure billing / metering', output_schema: 'billing_artifact' },
104
+ // config (as a domain, distinct from copilot/config agent)
105
+ { keywords: ['feature flag', 'remote config', 'distribute config'], domain: 'config', agent: 'distribute', description: 'Distribute configuration', output_schema: 'config_dist_artifact' },
106
+ // search domain
107
+ { keywords: ['search', 'elasticsearch', 'full-text', 'index'], domain: 'search', agent: 'index', description: 'Set up search indexing', output_schema: 'search_artifact' },
108
+ ];
109
+ /**
110
+ * Decomposer Agent Implementation
111
+ *
112
+ * This agent analyzes complex objectives and produces:
113
+ * 1. Structured sub-objectives (legacy output, always produced)
114
+ * 2. A pipeline_spec — a DAG of steps routed across the 27-domain registry
115
+ *
116
+ * It is purely analytical - it NEVER executes, assigns, or schedules anything.
117
+ */
118
+ class DecomposerAgent {
119
+ metadata = {
120
+ id: AGENT_ID,
121
+ name: 'Decomposer Agent',
122
+ version: AGENT_VERSION,
123
+ classifications: [
124
+ contracts_1.AgentClassification.DECOMPOSITION,
125
+ contracts_1.AgentClassification.STRUCTURAL_SYNTHESIS,
126
+ ],
127
+ decision_type: DECISION_TYPE,
128
+ description: 'Decomposes complex objectives into manageable sub-objectives and produces structured pipeline execution plans routed across the 27-domain registry.',
129
+ };
130
+ persistence;
131
+ telemetry;
132
+ constructor(persistence, telemetry) {
133
+ this.persistence = persistence;
134
+ this.telemetry = telemetry;
135
+ }
136
+ /**
137
+ * Validate input against DecomposerInputSchema
138
+ */
139
+ validateInput(input) {
140
+ return contracts_1.DecomposerInputSchema.parse(input);
141
+ }
142
+ /**
143
+ * Invoke the decomposer agent
144
+ *
145
+ * DETERMINISTIC: Same input always produces same output structure
146
+ * STATELESS: No internal state modified
147
+ * NON-BLOCKING: Fully async
148
+ */
149
+ async invoke(input, executionRef) {
150
+ const startTime = Date.now();
151
+ try {
152
+ // Emit telemetry start
153
+ this.telemetry.recordStart(AGENT_ID, executionRef, input);
154
+ // Decompose the objective (pure analysis, no side effects)
155
+ const output = this.decompose(input);
156
+ // Validate output
157
+ const validatedOutput = contracts_1.DecomposerOutputSchema.parse(output);
158
+ // Build the pipeline spec from the sub-objectives + objective text
159
+ const pipelineSpec = this.buildPipelineSpec(input, validatedOutput);
160
+ // Combined output: legacy decomposer output + pipeline_spec
161
+ const combinedOutput = {
162
+ ...validatedOutput,
163
+ pipeline_spec: pipelineSpec,
164
+ };
165
+ // Calculate confidence based on decomposition quality
166
+ const confidence = this.calculateConfidence(validatedOutput);
167
+ // Constraints applied during decomposition
168
+ const constraintsApplied = this.getAppliedConstraints(input);
169
+ // Create the DecisionEvent
170
+ const event = (0, contracts_1.createDecisionEvent)(AGENT_ID, AGENT_VERSION, DECISION_TYPE, input, combinedOutput, confidence, constraintsApplied, executionRef);
171
+ // Persist via ruvector-service (best-effort, non-blocking)
172
+ let persistence_status;
173
+ try {
174
+ await this.persistence.store(event);
175
+ persistence_status = { status: 'persisted' };
176
+ }
177
+ catch (persistError) {
178
+ const persistMessage = persistError instanceof Error ? persistError.message : 'Unknown persistence error';
179
+ console.error(`[${AGENT_ID}] RuVector persistence failed (non-blocking): ${persistMessage}`);
180
+ persistence_status = { status: 'skipped', error: persistMessage };
181
+ }
182
+ // Emit telemetry success
183
+ this.telemetry.recordSuccess(AGENT_ID, executionRef, Date.now() - startTime);
184
+ return {
185
+ status: 'success',
186
+ event,
187
+ persistence_status,
188
+ };
189
+ }
190
+ catch (error) {
191
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
192
+ const errorCode = this.classifyError(error);
193
+ // Emit telemetry failure
194
+ this.telemetry.recordFailure(AGENT_ID, executionRef, errorCode, errorMessage);
195
+ return (0, contracts_1.createErrorResult)(errorCode, errorMessage, executionRef);
196
+ }
197
+ }
198
+ // -------------------------------------------------------------------------
199
+ // Pipeline Spec Builder
200
+ // -------------------------------------------------------------------------
201
+ /**
202
+ * Build a structured pipeline spec (DAG) from the objective.
203
+ *
204
+ * Analyses the query text to select domains and agents from the
205
+ * 27-domain registry. Produces an ordered list of steps where
206
+ * `input_from` expresses data-flow dependencies.
207
+ */
208
+ buildPipelineSpec(input, decomposition) {
209
+ const planId = (0, uuid_1.v4)();
210
+ const objectiveLower = input.objective.toLowerCase();
211
+ // --- Step 1: always start with a planner step ---
212
+ const steps = [
213
+ {
214
+ step_id: '1',
215
+ domain: 'copilot',
216
+ agent: 'planner',
217
+ description: 'Generate implementation plan',
218
+ input_from: null,
219
+ output_schema: 'plan_artifact',
220
+ },
221
+ ];
222
+ let stepCounter = 1;
223
+ const usedDomainAgents = new Set(['copilot/planner']);
224
+ // --- Step 2: match objective keywords to domain routes ---
225
+ for (const route of DOMAIN_ROUTES) {
226
+ const key = `${route.domain}/${route.agent}`;
227
+ if (usedDomainAgents.has(key))
228
+ continue;
229
+ const matched = route.keywords.some(kw => objectiveLower.includes(kw));
230
+ if (!matched)
231
+ continue;
232
+ usedDomainAgents.add(key);
233
+ stepCounter++;
234
+ // Determine dependency: most steps depend on the planner output.
235
+ // Build/scaffold steps depend on planner; test steps depend on build; deploy depends on test.
236
+ let inputFrom = '1'; // default: depends on planner
237
+ if (route.domain === 'test') {
238
+ // test depends on the latest forge/runtime step, or planner
239
+ const buildStep = steps.find(s => s.domain === 'forge' || s.domain === 'runtime');
240
+ inputFrom = buildStep ? buildStep.step_id : '1';
241
+ }
242
+ else if (route.domain === 'deploy') {
243
+ // deploy depends on latest test step, or build, or planner
244
+ const testStep = steps.find(s => s.domain === 'test');
245
+ const buildStep = steps.find(s => s.domain === 'forge' || s.domain === 'runtime');
246
+ inputFrom = testStep ? testStep.step_id : (buildStep ? buildStep.step_id : '1');
247
+ }
248
+ else if (route.domain === 'docs') {
249
+ // docs depend on planner + any build step
250
+ const buildStep = steps.find(s => s.domain === 'forge' || s.domain === 'runtime');
251
+ inputFrom = buildStep ? buildStep.step_id : '1';
252
+ }
253
+ steps.push({
254
+ step_id: String(stepCounter),
255
+ domain: route.domain,
256
+ agent: route.agent,
257
+ description: route.description,
258
+ input_from: inputFrom,
259
+ output_schema: route.output_schema,
260
+ });
261
+ }
262
+ // --- Step 3: if nothing beyond planner was matched, add a forge/scaffold step ---
263
+ if (steps.length === 1) {
264
+ steps.push({
265
+ step_id: '2',
266
+ domain: 'forge',
267
+ agent: 'sdk',
268
+ description: 'Scaffold MVP from plan',
269
+ input_from: '1',
270
+ output_schema: 'forge_artifact',
271
+ });
272
+ }
273
+ // Validate (will throw on schema violation, caught in invoke)
274
+ const spec = contracts_1.PipelineSpecSchema.parse({
275
+ plan_id: planId,
276
+ steps,
277
+ metadata: {
278
+ source_query: input.objective,
279
+ created_at: new Date().toISOString(),
280
+ estimated_steps: steps.length,
281
+ },
282
+ });
283
+ return spec;
284
+ }
285
+ // -------------------------------------------------------------------------
286
+ // Legacy Decomposition Logic (unchanged)
287
+ // -------------------------------------------------------------------------
288
+ /**
289
+ * Decompose objective into sub-objectives
290
+ *
291
+ * This is the core decomposition logic - purely analytical.
292
+ * NEVER executes, assigns agents, or schedules anything.
293
+ */
294
+ decompose(input) {
295
+ const decompositionId = (0, uuid_1.v4)();
296
+ const maxDepth = input.context?.max_depth ?? 3;
297
+ const maxSubObjectives = input.config?.max_sub_objectives ?? 20;
298
+ const subObjectives = this.extractSubObjectives(input, maxDepth, maxSubObjectives);
299
+ const treeStructure = this.buildTreeStructure(subObjectives);
300
+ const dependencyGraph = this.buildDependencyGraph(subObjectives);
301
+ const atomicCount = subObjectives.filter(s => s.is_atomic).length;
302
+ const complexityDist = this.calculateComplexityDistribution(subObjectives);
303
+ const coverageScore = this.assessCoverage(subObjectives, input);
304
+ const maxDepthReached = Math.max(0, ...subObjectives.map(s => s.depth));
305
+ return {
306
+ decomposition_id: decompositionId,
307
+ original_objective: this.summarize(input.objective),
308
+ sub_objectives: subObjectives,
309
+ tree_structure: treeStructure,
310
+ dependency_graph: dependencyGraph,
311
+ analysis: {
312
+ total_sub_objectives: subObjectives.length,
313
+ max_depth_reached: maxDepthReached,
314
+ atomic_count: atomicCount,
315
+ coverage_score: coverageScore,
316
+ complexity_distribution: complexityDist,
317
+ assumptions: this.extractAssumptions(input),
318
+ },
319
+ version: '1.0.0',
320
+ };
321
+ }
322
+ /**
323
+ * Extract sub-objectives from the objective using pattern-based analysis
324
+ */
325
+ extractSubObjectives(input, maxDepth, maxCount) {
326
+ const objective = input.objective.toLowerCase();
327
+ const subs = [];
328
+ let counter = 0;
329
+ const addSub = (title, description, parentId, depth, tags, complexity, isAtomic, deps = [], criteria = []) => {
330
+ if (subs.length >= maxCount || depth > maxDepth)
331
+ return '';
332
+ const id = `sub-${++counter}`;
333
+ subs.push({
334
+ sub_objective_id: id,
335
+ title,
336
+ description,
337
+ parent_id: parentId,
338
+ depth,
339
+ dependencies: deps,
340
+ tags,
341
+ complexity,
342
+ is_atomic: isAtomic,
343
+ acceptance_criteria: criteria,
344
+ });
345
+ return id;
346
+ };
347
+ // Top-level: understand requirements
348
+ const understandId = addSub('Understand Requirements', 'Analyze and capture all requirements from the objective', null, 0, ['requirements', 'analysis'], 'simple', true, [], ['All requirements identified', 'Ambiguities documented']);
349
+ // Top-level: design approach
350
+ const designId = addSub('Design Approach', 'Design the solution approach and architecture', null, 0, ['design', 'architecture'], 'moderate', false, understandId ? [{ depends_on: understandId, type: 'data' }] : [], ['Architecture decisions documented', 'Approach validated']);
351
+ // Conditional sub-objectives based on objective content
352
+ if (this.containsAny(objective, ['build', 'create', 'implement', 'develop'])) {
353
+ const implId = addSub('Implement Core Logic', 'Implement the core functionality described in the objective', null, 0, ['implementation', 'core'], 'complex', false, designId ? [{ depends_on: designId, type: 'blocking' }] : [], ['Core functionality working', 'Unit tests passing']);
354
+ if (implId && maxDepth >= 1) {
355
+ addSub('Set Up Project Structure', 'Create the project scaffolding and configuration', implId, 1, ['setup', 'scaffolding'], 'simple', true, [], ['Project structure created', 'Dependencies installed']);
356
+ addSub('Implement Business Logic', 'Build the primary business logic components', implId, 1, ['business-logic', 'core'], 'complex', true, [], ['Business rules implemented', 'Edge cases handled']);
357
+ }
358
+ }
359
+ if (this.containsAny(objective, ['api', 'service', 'endpoint', 'interface'])) {
360
+ addSub('Define Interface Contracts', 'Specify API contracts, schemas, and interface boundaries', designId, 1, ['interfaces', 'contracts', 'api'], 'moderate', true, [], ['API contracts defined', 'Schemas validated']);
361
+ }
362
+ if (this.containsAny(objective, ['test', 'validate', 'verify', 'quality'])) {
363
+ addSub('Establish Validation Strategy', 'Define the testing and validation approach', null, 0, ['testing', 'validation'], 'moderate', true, designId ? [{ depends_on: designId, type: 'data' }] : [], ['Test strategy defined', 'Coverage targets set']);
364
+ }
365
+ if (this.containsAny(objective, ['deploy', 'release', 'production', 'launch'])) {
366
+ addSub('Plan Deployment', 'Define the deployment and release strategy', null, 0, ['deployment', 'release'], 'moderate', true, designId ? [{ depends_on: designId, type: 'data' }] : [], ['Deployment pipeline defined', 'Rollback plan documented']);
367
+ }
368
+ if (this.containsAny(objective, ['integrate', 'connect', 'migrate'])) {
369
+ addSub('Plan Integration', 'Define integration points and data flow between systems', null, 0, ['integration', 'connectivity'], 'complex', false, designId ? [{ depends_on: designId, type: 'data' }] : [], ['Integration points mapped', 'Data flow documented']);
370
+ }
371
+ // Always add a completion/review sub-objective
372
+ const allTopLevel = subs.filter(s => s.parent_id === null).map(s => s.sub_objective_id);
373
+ addSub('Review and Validate Completeness', 'Ensure all sub-objectives adequately cover the original objective', null, 0, ['review', 'completeness'], 'simple', true, allTopLevel.map(id => ({ depends_on: id, type: 'data' })), ['All sub-objectives addressed', 'Coverage verified']);
374
+ return subs;
375
+ }
376
+ /**
377
+ * Build tree structure (parent -> children) from sub-objectives
378
+ */
379
+ buildTreeStructure(subs) {
380
+ const tree = { root: [] };
381
+ for (const sub of subs) {
382
+ if (sub.parent_id === null) {
383
+ tree.root.push(sub.sub_objective_id);
384
+ }
385
+ else {
386
+ if (!tree[sub.parent_id]) {
387
+ tree[sub.parent_id] = [];
388
+ }
389
+ tree[sub.parent_id].push(sub.sub_objective_id);
390
+ }
391
+ }
392
+ return tree;
393
+ }
394
+ /**
395
+ * Build dependency graph as adjacency list
396
+ */
397
+ buildDependencyGraph(subs) {
398
+ const graph = {};
399
+ for (const sub of subs) {
400
+ graph[sub.sub_objective_id] = sub.dependencies.map(d => d.depends_on);
401
+ }
402
+ return graph;
403
+ }
404
+ /**
405
+ * Calculate complexity distribution
406
+ */
407
+ calculateComplexityDistribution(subs) {
408
+ const dist = {
409
+ trivial: 0, simple: 0, moderate: 0, complex: 0, very_complex: 0,
410
+ };
411
+ for (const sub of subs) {
412
+ dist[sub.complexity]++;
413
+ }
414
+ return dist;
415
+ }
416
+ /**
417
+ * Assess how well the sub-objectives cover the original objective
418
+ */
419
+ assessCoverage(subs, input) {
420
+ let score = 0.5; // Base coverage
421
+ // More sub-objectives generally means better coverage (up to a point)
422
+ if (subs.length >= 3 && subs.length <= 15)
423
+ score += 0.15;
424
+ if (subs.length > 15)
425
+ score += 0.1;
426
+ // Atomic sub-objectives are actionable
427
+ const atomicRatio = subs.filter(s => s.is_atomic).length / subs.length;
428
+ if (atomicRatio > 0.4)
429
+ score += 0.1;
430
+ // Sub-objectives with acceptance criteria
431
+ const criteriaRatio = subs.filter(s => s.acceptance_criteria.length > 0).length / subs.length;
432
+ score += criteriaRatio * 0.15;
433
+ // Multi-depth decomposition
434
+ const maxDepth = Math.max(0, ...subs.map(s => s.depth));
435
+ if (maxDepth >= 1)
436
+ score += 0.1;
437
+ return Math.min(1.0, Math.max(0.0, score));
438
+ }
439
+ /**
440
+ * Summarize objective for output
441
+ */
442
+ summarize(objective) {
443
+ const cleaned = objective.trim().replace(/\s+/g, ' ');
444
+ return cleaned.length > 200 ? cleaned.substring(0, 197) + '...' : cleaned;
445
+ }
446
+ /**
447
+ * Extract assumptions made during decomposition
448
+ */
449
+ extractAssumptions(input) {
450
+ const assumptions = [
451
+ 'Objective has been validated for clarity',
452
+ 'Decomposition is based on structural analysis of the objective text',
453
+ ];
454
+ if (!input.context?.constraints?.length) {
455
+ assumptions.push('No explicit constraints provided - using default decomposition strategy');
456
+ }
457
+ if (!input.context?.existing_components?.length) {
458
+ assumptions.push('No existing components specified - decomposing as new work');
459
+ }
460
+ if (!input.config?.target_granularity) {
461
+ assumptions.push('Using medium granularity as default');
462
+ }
463
+ return assumptions;
464
+ }
465
+ /**
466
+ * Calculate confidence score based on decomposition quality
467
+ */
468
+ calculateConfidence(output) {
469
+ let confidence = 0.65; // Base confidence
470
+ // Boost for well-structured decompositions
471
+ if (output.sub_objectives.length >= 3 && output.sub_objectives.length <= 20) {
472
+ confidence += 0.1;
473
+ }
474
+ // Boost for good coverage
475
+ if (output.analysis.coverage_score >= 0.7) {
476
+ confidence += 0.1;
477
+ }
478
+ // Boost for multi-depth decomposition
479
+ if (output.analysis.max_depth_reached >= 1) {
480
+ confidence += 0.05;
481
+ }
482
+ // Boost for atomic sub-objectives
483
+ if (output.analysis.atomic_count > 0) {
484
+ confidence += 0.05;
485
+ }
486
+ // Reduce for too many sub-objectives (potential over-decomposition)
487
+ if (output.sub_objectives.length > 25) {
488
+ confidence -= 0.1;
489
+ }
490
+ return Math.min(1.0, Math.max(0.0, confidence));
491
+ }
492
+ /**
493
+ * Get constraints applied during decomposition
494
+ */
495
+ getAppliedConstraints(input) {
496
+ const constraints = [
497
+ 'read_only_analysis',
498
+ 'no_execution',
499
+ 'no_agent_assignment',
500
+ 'no_resource_allocation',
501
+ 'no_scheduling',
502
+ 'deterministic_output',
503
+ 'pipeline_spec_generation',
504
+ ];
505
+ if (input.context?.constraints) {
506
+ constraints.push(...input.context.constraints.map(c => `user_constraint:${c}`));
507
+ }
508
+ if (input.pipeline_context) {
509
+ constraints.push('pipeline_context_present');
510
+ }
511
+ return constraints;
512
+ }
513
+ /**
514
+ * Classify error for proper error code
515
+ */
516
+ classifyError(error) {
517
+ if (error instanceof Error) {
518
+ if (error.name === 'ZodError') {
519
+ return contracts_1.AgentErrorCodes.VALIDATION_FAILED;
520
+ }
521
+ if (error.message.includes('persistence') || error.message.includes('ruvector')) {
522
+ return contracts_1.AgentErrorCodes.PERSISTENCE_ERROR;
523
+ }
524
+ }
525
+ return contracts_1.AgentErrorCodes.PROCESSING_ERROR;
526
+ }
527
+ /**
528
+ * Helper: Check if text contains any of the keywords
529
+ */
530
+ containsAny(text, keywords) {
531
+ return keywords.some(kw => text.includes(kw));
532
+ }
533
+ }
534
+ exports.DecomposerAgent = DecomposerAgent;
535
+ //# sourceMappingURL=decomposer-agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decomposer-agent.js","sourceRoot":"","sources":["../../../../../services/agents/decomposer/decomposer-agent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;AAEH,+BAAoC;AACpC,4CAoBsB;AAItB,MAAM,QAAQ,GAAG,kBAAkB,CAAC;AACpC,MAAM,aAAa,GAAG,OAAO,CAAC;AAC9B,MAAM,aAAa,GAAG,yBAAyB,CAAC;AAchD,MAAM,aAAa,GAAkB;IACnC,iBAAiB;IACjB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,EAAQ,MAAM,EAAE,SAAS,EAAI,KAAK,EAAE,SAAS,EAAQ,WAAW,EAAE,8BAA8B,EAAa,aAAa,EAAE,eAAe,EAAE;IACpM,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,SAAS,EAAG,KAAK,EAAE,WAAW,EAAM,WAA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AEF,IAAI,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC;YAC/B,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,CAAC;QAED,IAAI,KAAK,CAAC,gBAAgB,EAAE,CAAC;YAC3B,WAAW,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;OAEG;IACK,aAAa,CAAC,KAAc;QAClC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;gBAC9B,OAAO,2BAAe,CAAC,iBAAiB,CAAC;YAC3C,CAAC;YACD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gBAChF,OAAO,2BAAe,CAAC,iBAAiB,CAAC;YAC3C,CAAC;QACH,CAAC;QACD,OAAO,2BAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;IAED;;OAEG;IACK,WAAW,CAAC,IAAY,EAAE,QAAkB;QAClD,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAhmBD,0CAgmBC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Decomposer Agent Module Exports
3
+ *
4
+ * Purpose: Decompose complex objectives into manageable sub-objectives
5
+ * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
6
+ * decision_type: objective_decomposition
7
+ */
8
+ export { DecomposerAgent } from './decomposer-agent';
9
+ export { SubObjectiveSchema, DecomposerInputSchema, DecomposerOutputSchema, type SubObjective, type DecomposerInput, type DecomposerOutput, } from '../contracts';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * Decomposer Agent Module Exports
4
+ *
5
+ * Purpose: Decompose complex objectives into manageable sub-objectives
6
+ * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
7
+ * decision_type: objective_decomposition
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.DecomposerOutputSchema = exports.DecomposerInputSchema = exports.SubObjectiveSchema = exports.DecomposerAgent = void 0;
11
+ var decomposer_agent_1 = require("./decomposer-agent");
12
+ Object.defineProperty(exports, "DecomposerAgent", { enumerable: true, get: function () { return decomposer_agent_1.DecomposerAgent; } });
13
+ // Re-export schemas from contracts
14
+ var contracts_1 = require("../contracts");
15
+ Object.defineProperty(exports, "SubObjectiveSchema", { enumerable: true, get: function () { return contracts_1.SubObjectiveSchema; } });
16
+ Object.defineProperty(exports, "DecomposerInputSchema", { enumerable: true, get: function () { return contracts_1.DecomposerInputSchema; } });
17
+ Object.defineProperty(exports, "DecomposerOutputSchema", { enumerable: true, get: function () { return contracts_1.DecomposerOutputSchema; } });
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../services/agents/decomposer/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AAExB,mCAAmC;AACnC,0CAOsB;AANpB,+GAAA,kBAAkB,OAAA;AAClB,kHAAA,qBAAqB,OAAA;AACrB,mHAAA,sBAAsB,OAAA"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Intent Classifier Agent Module Exports
3
+ */
4
+ export { IntentClassifierAgent } from './intent-classifier-agent';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Intent Classifier Agent Module Exports
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IntentClassifierAgent = void 0;
7
+ var intent_classifier_agent_1 = require("./intent-classifier-agent");
8
+ Object.defineProperty(exports, "IntentClassifierAgent", { enumerable: true, get: function () { return intent_classifier_agent_1.IntentClassifierAgent; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../services/agents/intent-classifier/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA"}