@llm-dev-ops/agentics-cli 1.4.53 → 1.4.55

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 (325) 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 +194 -2
  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 +42 -33
  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 +438 -0
  324. package/dist/pipeline/phase3/phases/domain-codegen.js.map +1 -1
  325. package/package.json +1 -1
@@ -0,0 +1,315 @@
1
+ /**
2
+ * Decomposer Agent Schemas
3
+ *
4
+ * Purpose: Decompose complex objectives into manageable sub-objectives
5
+ * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
6
+ * decision_type: objective_decomposition
7
+ *
8
+ * Scope:
9
+ * - Break complex objectives into sub-objectives
10
+ * - Identify sub-objective relationships
11
+ * - Assess decomposition completeness
12
+ *
13
+ * Must Never:
14
+ * - Execute sub-objectives
15
+ * - Assign agents
16
+ * - Allocate resources
17
+ * - Schedule execution
18
+ */
19
+ import { z } from 'zod';
20
+ /**
21
+ * A single sub-objective produced by decomposition
22
+ */
23
+ export declare const SubObjectiveSchema: z.ZodObject<{
24
+ /** Unique identifier for this sub-objective */
25
+ sub_objective_id: z.ZodString;
26
+ /** Human-readable title */
27
+ title: z.ZodString;
28
+ /** Detailed description of the sub-objective */
29
+ description: z.ZodString;
30
+ /** Parent sub-objective ID (null for top-level) */
31
+ parent_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
32
+ /** Depth level in the decomposition tree (0 = top-level) */
33
+ depth: z.ZodNumber;
34
+ /** Dependencies on other sub-objectives */
35
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
36
+ depends_on: z.ZodString;
37
+ type: z.ZodEnum<["blocking", "data", "sequential"]>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: "blocking" | "data" | "sequential";
40
+ depends_on: string;
41
+ }, {
42
+ type: "blocking" | "data" | "sequential";
43
+ depends_on: string;
44
+ }>, "many">>;
45
+ /** Classification tags */
46
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
47
+ /** Estimated complexity */
48
+ complexity: z.ZodDefault<z.ZodEnum<["trivial", "simple", "moderate", "complex", "very_complex"]>>;
49
+ /** Whether this sub-objective can be further decomposed */
50
+ is_atomic: z.ZodDefault<z.ZodBoolean>;
51
+ /** Acceptance criteria for this sub-objective */
52
+ acceptance_criteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ description: string;
55
+ dependencies: {
56
+ type: "blocking" | "data" | "sequential";
57
+ depends_on: string;
58
+ }[];
59
+ tags: string[];
60
+ title: string;
61
+ complexity: "simple" | "moderate" | "complex" | "very_complex" | "trivial";
62
+ sub_objective_id: string;
63
+ parent_id: string | null;
64
+ depth: number;
65
+ is_atomic: boolean;
66
+ acceptance_criteria: string[];
67
+ }, {
68
+ description: string;
69
+ title: string;
70
+ sub_objective_id: string;
71
+ depth: number;
72
+ dependencies?: {
73
+ type: "blocking" | "data" | "sequential";
74
+ depends_on: string;
75
+ }[] | undefined;
76
+ tags?: string[] | undefined;
77
+ complexity?: "simple" | "moderate" | "complex" | "very_complex" | "trivial" | undefined;
78
+ parent_id?: string | null | undefined;
79
+ is_atomic?: boolean | undefined;
80
+ acceptance_criteria?: string[] | undefined;
81
+ }>;
82
+ export type SubObjective = z.infer<typeof SubObjectiveSchema>;
83
+ /**
84
+ * Decomposer Agent Input Schema
85
+ */
86
+ export declare const DecomposerInputSchema: z.ZodObject<{
87
+ /** The complex objective to decompose */
88
+ objective: z.ZodString;
89
+ /** Optional context to aid decomposition */
90
+ context: z.ZodOptional<z.ZodObject<{
91
+ /** Domain/industry context */
92
+ domain: z.ZodOptional<z.ZodString>;
93
+ /** Existing components or systems */
94
+ existing_components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
+ /** Known constraints */
96
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
97
+ /** Maximum decomposition depth */
98
+ max_depth: z.ZodOptional<z.ZodNumber>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ constraints?: string[] | undefined;
101
+ domain?: string | undefined;
102
+ existing_components?: string[] | undefined;
103
+ max_depth?: number | undefined;
104
+ }, {
105
+ constraints?: string[] | undefined;
106
+ domain?: string | undefined;
107
+ existing_components?: string[] | undefined;
108
+ max_depth?: number | undefined;
109
+ }>>;
110
+ /** Configuration for decomposition */
111
+ config: z.ZodOptional<z.ZodObject<{
112
+ /** Target granularity for leaf sub-objectives */
113
+ target_granularity: z.ZodOptional<z.ZodEnum<["coarse", "medium", "fine"]>>;
114
+ /** Maximum number of sub-objectives to produce */
115
+ max_sub_objectives: z.ZodOptional<z.ZodNumber>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ target_granularity?: "medium" | "coarse" | "fine" | undefined;
118
+ max_sub_objectives?: number | undefined;
119
+ }, {
120
+ target_granularity?: "medium" | "coarse" | "fine" | undefined;
121
+ max_sub_objectives?: number | undefined;
122
+ }>>;
123
+ /** Request ID for tracing */
124
+ request_id: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ objective: string;
127
+ context?: {
128
+ constraints?: string[] | undefined;
129
+ domain?: string | undefined;
130
+ existing_components?: string[] | undefined;
131
+ max_depth?: number | undefined;
132
+ } | undefined;
133
+ request_id?: string | undefined;
134
+ config?: {
135
+ target_granularity?: "medium" | "coarse" | "fine" | undefined;
136
+ max_sub_objectives?: number | undefined;
137
+ } | undefined;
138
+ }, {
139
+ objective: string;
140
+ context?: {
141
+ constraints?: string[] | undefined;
142
+ domain?: string | undefined;
143
+ existing_components?: string[] | undefined;
144
+ max_depth?: number | undefined;
145
+ } | undefined;
146
+ request_id?: string | undefined;
147
+ config?: {
148
+ target_granularity?: "medium" | "coarse" | "fine" | undefined;
149
+ max_sub_objectives?: number | undefined;
150
+ } | undefined;
151
+ }>;
152
+ export type DecomposerInput = z.infer<typeof DecomposerInputSchema>;
153
+ /**
154
+ * Decomposer Agent Output Schema
155
+ */
156
+ export declare const DecomposerOutputSchema: z.ZodObject<{
157
+ /** Unique decomposition identifier */
158
+ decomposition_id: z.ZodString;
159
+ /** Original objective (echoed for verification) */
160
+ original_objective: z.ZodString;
161
+ /** List of sub-objectives produced */
162
+ sub_objectives: z.ZodArray<z.ZodObject<{
163
+ /** Unique identifier for this sub-objective */
164
+ sub_objective_id: z.ZodString;
165
+ /** Human-readable title */
166
+ title: z.ZodString;
167
+ /** Detailed description of the sub-objective */
168
+ description: z.ZodString;
169
+ /** Parent sub-objective ID (null for top-level) */
170
+ parent_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
171
+ /** Depth level in the decomposition tree (0 = top-level) */
172
+ depth: z.ZodNumber;
173
+ /** Dependencies on other sub-objectives */
174
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
175
+ depends_on: z.ZodString;
176
+ type: z.ZodEnum<["blocking", "data", "sequential"]>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "blocking" | "data" | "sequential";
179
+ depends_on: string;
180
+ }, {
181
+ type: "blocking" | "data" | "sequential";
182
+ depends_on: string;
183
+ }>, "many">>;
184
+ /** Classification tags */
185
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
186
+ /** Estimated complexity */
187
+ complexity: z.ZodDefault<z.ZodEnum<["trivial", "simple", "moderate", "complex", "very_complex"]>>;
188
+ /** Whether this sub-objective can be further decomposed */
189
+ is_atomic: z.ZodDefault<z.ZodBoolean>;
190
+ /** Acceptance criteria for this sub-objective */
191
+ acceptance_criteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ description: string;
194
+ dependencies: {
195
+ type: "blocking" | "data" | "sequential";
196
+ depends_on: string;
197
+ }[];
198
+ tags: string[];
199
+ title: string;
200
+ complexity: "simple" | "moderate" | "complex" | "very_complex" | "trivial";
201
+ sub_objective_id: string;
202
+ parent_id: string | null;
203
+ depth: number;
204
+ is_atomic: boolean;
205
+ acceptance_criteria: string[];
206
+ }, {
207
+ description: string;
208
+ title: string;
209
+ sub_objective_id: string;
210
+ depth: number;
211
+ dependencies?: {
212
+ type: "blocking" | "data" | "sequential";
213
+ depends_on: string;
214
+ }[] | undefined;
215
+ tags?: string[] | undefined;
216
+ complexity?: "simple" | "moderate" | "complex" | "very_complex" | "trivial" | undefined;
217
+ parent_id?: string | null | undefined;
218
+ is_atomic?: boolean | undefined;
219
+ acceptance_criteria?: string[] | undefined;
220
+ }>, "many">;
221
+ /** Tree structure as adjacency list (parent -> children) */
222
+ tree_structure: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
223
+ /** Dependency graph as adjacency list */
224
+ dependency_graph: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
225
+ /** Analysis metadata */
226
+ analysis: z.ZodObject<{
227
+ /** Total number of sub-objectives */
228
+ total_sub_objectives: z.ZodNumber;
229
+ /** Maximum decomposition depth reached */
230
+ max_depth_reached: z.ZodNumber;
231
+ /** Number of atomic (leaf) sub-objectives */
232
+ atomic_count: z.ZodNumber;
233
+ /** Coverage assessment */
234
+ coverage_score: z.ZodNumber;
235
+ /** Complexity distribution */
236
+ complexity_distribution: z.ZodRecord<z.ZodString, z.ZodNumber>;
237
+ /** Assumptions made during decomposition */
238
+ assumptions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ assumptions: string[];
241
+ total_sub_objectives: number;
242
+ max_depth_reached: number;
243
+ atomic_count: number;
244
+ coverage_score: number;
245
+ complexity_distribution: Record<string, number>;
246
+ }, {
247
+ total_sub_objectives: number;
248
+ max_depth_reached: number;
249
+ atomic_count: number;
250
+ coverage_score: number;
251
+ complexity_distribution: Record<string, number>;
252
+ assumptions?: string[] | undefined;
253
+ }>;
254
+ /** Decomposition version */
255
+ version: z.ZodDefault<z.ZodString>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ version: string;
258
+ dependency_graph: Record<string, string[]>;
259
+ analysis: {
260
+ assumptions: string[];
261
+ total_sub_objectives: number;
262
+ max_depth_reached: number;
263
+ atomic_count: number;
264
+ coverage_score: number;
265
+ complexity_distribution: Record<string, number>;
266
+ };
267
+ original_objective: string;
268
+ decomposition_id: string;
269
+ sub_objectives: {
270
+ description: string;
271
+ dependencies: {
272
+ type: "blocking" | "data" | "sequential";
273
+ depends_on: string;
274
+ }[];
275
+ tags: string[];
276
+ title: string;
277
+ complexity: "simple" | "moderate" | "complex" | "very_complex" | "trivial";
278
+ sub_objective_id: string;
279
+ parent_id: string | null;
280
+ depth: number;
281
+ is_atomic: boolean;
282
+ acceptance_criteria: string[];
283
+ }[];
284
+ tree_structure: Record<string, string[]>;
285
+ }, {
286
+ dependency_graph: Record<string, string[]>;
287
+ analysis: {
288
+ total_sub_objectives: number;
289
+ max_depth_reached: number;
290
+ atomic_count: number;
291
+ coverage_score: number;
292
+ complexity_distribution: Record<string, number>;
293
+ assumptions?: string[] | undefined;
294
+ };
295
+ original_objective: string;
296
+ decomposition_id: string;
297
+ sub_objectives: {
298
+ description: string;
299
+ title: string;
300
+ sub_objective_id: string;
301
+ depth: number;
302
+ dependencies?: {
303
+ type: "blocking" | "data" | "sequential";
304
+ depends_on: string;
305
+ }[] | undefined;
306
+ tags?: string[] | undefined;
307
+ complexity?: "simple" | "moderate" | "complex" | "very_complex" | "trivial" | undefined;
308
+ parent_id?: string | null | undefined;
309
+ is_atomic?: boolean | undefined;
310
+ acceptance_criteria?: string[] | undefined;
311
+ }[];
312
+ tree_structure: Record<string, string[]>;
313
+ version?: string | undefined;
314
+ }>;
315
+ export type DecomposerOutput = z.infer<typeof DecomposerOutputSchema>;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ /**
3
+ * Decomposer Agent Schemas
4
+ *
5
+ * Purpose: Decompose complex objectives into manageable sub-objectives
6
+ * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
7
+ * decision_type: objective_decomposition
8
+ *
9
+ * Scope:
10
+ * - Break complex objectives into sub-objectives
11
+ * - Identify sub-objective relationships
12
+ * - Assess decomposition completeness
13
+ *
14
+ * Must Never:
15
+ * - Execute sub-objectives
16
+ * - Assign agents
17
+ * - Allocate resources
18
+ * - Schedule execution
19
+ */
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.DecomposerOutputSchema = exports.DecomposerInputSchema = exports.SubObjectiveSchema = void 0;
22
+ const zod_1 = require("zod");
23
+ /**
24
+ * A single sub-objective produced by decomposition
25
+ */
26
+ exports.SubObjectiveSchema = zod_1.z.object({
27
+ /** Unique identifier for this sub-objective */
28
+ sub_objective_id: zod_1.z.string().min(1),
29
+ /** Human-readable title */
30
+ title: zod_1.z.string().min(1).max(200),
31
+ /** Detailed description of the sub-objective */
32
+ description: zod_1.z.string().min(1),
33
+ /** Parent sub-objective ID (null for top-level) */
34
+ parent_id: zod_1.z.string().nullable().default(null),
35
+ /** Depth level in the decomposition tree (0 = top-level) */
36
+ depth: zod_1.z.number().int().nonnegative(),
37
+ /** Dependencies on other sub-objectives */
38
+ dependencies: zod_1.z.array(zod_1.z.object({
39
+ depends_on: zod_1.z.string(),
40
+ type: zod_1.z.enum(['blocking', 'data', 'sequential']),
41
+ })).default([]),
42
+ /** Classification tags */
43
+ tags: zod_1.z.array(zod_1.z.string()).default([]),
44
+ /** Estimated complexity */
45
+ complexity: zod_1.z.enum(['trivial', 'simple', 'moderate', 'complex', 'very_complex']).default('moderate'),
46
+ /** Whether this sub-objective can be further decomposed */
47
+ is_atomic: zod_1.z.boolean().default(false),
48
+ /** Acceptance criteria for this sub-objective */
49
+ acceptance_criteria: zod_1.z.array(zod_1.z.string()).default([]),
50
+ });
51
+ /**
52
+ * Decomposer Agent Input Schema
53
+ */
54
+ exports.DecomposerInputSchema = zod_1.z.object({
55
+ /** The complex objective to decompose */
56
+ objective: zod_1.z.string().min(1).max(50000),
57
+ /** Optional context to aid decomposition */
58
+ context: zod_1.z.object({
59
+ /** Domain/industry context */
60
+ domain: zod_1.z.string().optional(),
61
+ /** Existing components or systems */
62
+ existing_components: zod_1.z.array(zod_1.z.string()).optional(),
63
+ /** Known constraints */
64
+ constraints: zod_1.z.array(zod_1.z.string()).optional(),
65
+ /** Maximum decomposition depth */
66
+ max_depth: zod_1.z.number().int().positive().max(10).optional(),
67
+ }).optional(),
68
+ /** Configuration for decomposition */
69
+ config: zod_1.z.object({
70
+ /** Target granularity for leaf sub-objectives */
71
+ target_granularity: zod_1.z.enum(['coarse', 'medium', 'fine']).optional(),
72
+ /** Maximum number of sub-objectives to produce */
73
+ max_sub_objectives: zod_1.z.number().int().positive().max(50).optional(),
74
+ }).optional(),
75
+ /** Request ID for tracing */
76
+ request_id: zod_1.z.string().uuid().optional(),
77
+ });
78
+ /**
79
+ * Decomposer Agent Output Schema
80
+ */
81
+ exports.DecomposerOutputSchema = zod_1.z.object({
82
+ /** Unique decomposition identifier */
83
+ decomposition_id: zod_1.z.string().uuid(),
84
+ /** Original objective (echoed for verification) */
85
+ original_objective: zod_1.z.string(),
86
+ /** List of sub-objectives produced */
87
+ sub_objectives: zod_1.z.array(exports.SubObjectiveSchema).min(1),
88
+ /** Tree structure as adjacency list (parent -> children) */
89
+ tree_structure: zod_1.z.record(zod_1.z.array(zod_1.z.string())),
90
+ /** Dependency graph as adjacency list */
91
+ dependency_graph: zod_1.z.record(zod_1.z.array(zod_1.z.string())),
92
+ /** Analysis metadata */
93
+ analysis: zod_1.z.object({
94
+ /** Total number of sub-objectives */
95
+ total_sub_objectives: zod_1.z.number().int().nonnegative(),
96
+ /** Maximum decomposition depth reached */
97
+ max_depth_reached: zod_1.z.number().int().nonnegative(),
98
+ /** Number of atomic (leaf) sub-objectives */
99
+ atomic_count: zod_1.z.number().int().nonnegative(),
100
+ /** Coverage assessment */
101
+ coverage_score: zod_1.z.number().min(0).max(1),
102
+ /** Complexity distribution */
103
+ complexity_distribution: zod_1.z.record(zod_1.z.number().int().nonnegative()),
104
+ /** Assumptions made during decomposition */
105
+ assumptions: zod_1.z.array(zod_1.z.string()).default([]),
106
+ }),
107
+ /** Decomposition version */
108
+ version: zod_1.z.string().default('1.0.0'),
109
+ });
110
+ //# sourceMappingURL=decomposer-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decomposer-schemas.js","sourceRoot":"","sources":["../../../../../services/agents/contracts/decomposer-schemas.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,250 @@
1
+ /**
2
+ * Agentics Execution Graph - Foundational Execution Unit instrumentation.
3
+ *
4
+ * Defines the hierarchical execution span model that integrates this
5
+ * repository into the Agentics ExecutionGraph system.
6
+ *
7
+ * Invariant: Core → Repo (copilot-agent) → Agent (one or more)
8
+ */
9
+ import { z } from 'zod';
10
+ /** The name of this repository in the Agentics execution graph. */
11
+ export declare const REPO_NAME = "copilot-agent";
12
+ export declare const SpanTypeSchema: z.ZodEnum<["core", "repo", "agent"]>;
13
+ export type SpanType = z.infer<typeof SpanTypeSchema>;
14
+ export declare const ExecutionStatusSchema: z.ZodEnum<["running", "completed", "failed"]>;
15
+ export type ExecutionStatus = z.infer<typeof ExecutionStatusSchema>;
16
+ export declare const ArtifactSchema: z.ZodObject<{
17
+ name: z.ZodString;
18
+ artifact_type: z.ZodString;
19
+ reference: z.ZodString;
20
+ data: z.ZodUnknown;
21
+ }, "strip", z.ZodTypeAny, {
22
+ name: string;
23
+ artifact_type: string;
24
+ reference: string;
25
+ data?: unknown;
26
+ }, {
27
+ name: string;
28
+ artifact_type: string;
29
+ reference: string;
30
+ data?: unknown;
31
+ }>;
32
+ export type Artifact = z.infer<typeof ArtifactSchema>;
33
+ export declare const ExecutionSpanSchema: z.ZodObject<{
34
+ span_id: z.ZodString;
35
+ parent_span_id: z.ZodString;
36
+ trace_id: z.ZodString;
37
+ span_type: z.ZodEnum<["core", "repo", "agent"]>;
38
+ repo_name: z.ZodOptional<z.ZodString>;
39
+ agent_name: z.ZodOptional<z.ZodString>;
40
+ status: z.ZodEnum<["running", "completed", "failed"]>;
41
+ start_time: z.ZodString;
42
+ end_time: z.ZodOptional<z.ZodString>;
43
+ failure_reason: z.ZodOptional<z.ZodString>;
44
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
45
+ name: z.ZodString;
46
+ artifact_type: z.ZodString;
47
+ reference: z.ZodString;
48
+ data: z.ZodUnknown;
49
+ }, "strip", z.ZodTypeAny, {
50
+ name: string;
51
+ artifact_type: string;
52
+ reference: string;
53
+ data?: unknown;
54
+ }, {
55
+ name: string;
56
+ artifact_type: string;
57
+ reference: string;
58
+ data?: unknown;
59
+ }>, "many">>;
60
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ status: "completed" | "running" | "failed";
63
+ artifacts: {
64
+ name: string;
65
+ artifact_type: string;
66
+ reference: string;
67
+ data?: unknown;
68
+ }[];
69
+ span_id: string;
70
+ parent_span_id: string;
71
+ trace_id: string;
72
+ span_type: "core" | "repo" | "agent";
73
+ start_time: string;
74
+ attributes: Record<string, string>;
75
+ repo_name?: string | undefined;
76
+ agent_name?: string | undefined;
77
+ end_time?: string | undefined;
78
+ failure_reason?: string | undefined;
79
+ }, {
80
+ status: "completed" | "running" | "failed";
81
+ span_id: string;
82
+ parent_span_id: string;
83
+ trace_id: string;
84
+ span_type: "core" | "repo" | "agent";
85
+ start_time: string;
86
+ artifacts?: {
87
+ name: string;
88
+ artifact_type: string;
89
+ reference: string;
90
+ data?: unknown;
91
+ }[] | undefined;
92
+ repo_name?: string | undefined;
93
+ agent_name?: string | undefined;
94
+ end_time?: string | undefined;
95
+ failure_reason?: string | undefined;
96
+ attributes?: Record<string, string> | undefined;
97
+ }>;
98
+ export type ExecutionSpan = z.infer<typeof ExecutionSpanSchema>;
99
+ export declare const ExecutionGraphSchema: z.ZodObject<{
100
+ execution_id: z.ZodString;
101
+ repo_span_id: z.ZodString;
102
+ spans: z.ZodArray<z.ZodObject<{
103
+ span_id: z.ZodString;
104
+ parent_span_id: z.ZodString;
105
+ trace_id: z.ZodString;
106
+ span_type: z.ZodEnum<["core", "repo", "agent"]>;
107
+ repo_name: z.ZodOptional<z.ZodString>;
108
+ agent_name: z.ZodOptional<z.ZodString>;
109
+ status: z.ZodEnum<["running", "completed", "failed"]>;
110
+ start_time: z.ZodString;
111
+ end_time: z.ZodOptional<z.ZodString>;
112
+ failure_reason: z.ZodOptional<z.ZodString>;
113
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
114
+ name: z.ZodString;
115
+ artifact_type: z.ZodString;
116
+ reference: z.ZodString;
117
+ data: z.ZodUnknown;
118
+ }, "strip", z.ZodTypeAny, {
119
+ name: string;
120
+ artifact_type: string;
121
+ reference: string;
122
+ data?: unknown;
123
+ }, {
124
+ name: string;
125
+ artifact_type: string;
126
+ reference: string;
127
+ data?: unknown;
128
+ }>, "many">>;
129
+ attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ status: "completed" | "running" | "failed";
132
+ artifacts: {
133
+ name: string;
134
+ artifact_type: string;
135
+ reference: string;
136
+ data?: unknown;
137
+ }[];
138
+ span_id: string;
139
+ parent_span_id: string;
140
+ trace_id: string;
141
+ span_type: "core" | "repo" | "agent";
142
+ start_time: string;
143
+ attributes: Record<string, string>;
144
+ repo_name?: string | undefined;
145
+ agent_name?: string | undefined;
146
+ end_time?: string | undefined;
147
+ failure_reason?: string | undefined;
148
+ }, {
149
+ status: "completed" | "running" | "failed";
150
+ span_id: string;
151
+ parent_span_id: string;
152
+ trace_id: string;
153
+ span_type: "core" | "repo" | "agent";
154
+ start_time: string;
155
+ artifacts?: {
156
+ name: string;
157
+ artifact_type: string;
158
+ reference: string;
159
+ data?: unknown;
160
+ }[] | undefined;
161
+ repo_name?: string | undefined;
162
+ agent_name?: string | undefined;
163
+ end_time?: string | undefined;
164
+ failure_reason?: string | undefined;
165
+ attributes?: Record<string, string> | undefined;
166
+ }>, "many">;
167
+ }, "strip", z.ZodTypeAny, {
168
+ spans: {
169
+ status: "completed" | "running" | "failed";
170
+ artifacts: {
171
+ name: string;
172
+ artifact_type: string;
173
+ reference: string;
174
+ data?: unknown;
175
+ }[];
176
+ span_id: string;
177
+ parent_span_id: string;
178
+ trace_id: string;
179
+ span_type: "core" | "repo" | "agent";
180
+ start_time: string;
181
+ attributes: Record<string, string>;
182
+ repo_name?: string | undefined;
183
+ agent_name?: string | undefined;
184
+ end_time?: string | undefined;
185
+ failure_reason?: string | undefined;
186
+ }[];
187
+ execution_id: string;
188
+ repo_span_id: string;
189
+ }, {
190
+ spans: {
191
+ status: "completed" | "running" | "failed";
192
+ span_id: string;
193
+ parent_span_id: string;
194
+ trace_id: string;
195
+ span_type: "core" | "repo" | "agent";
196
+ start_time: string;
197
+ artifacts?: {
198
+ name: string;
199
+ artifact_type: string;
200
+ reference: string;
201
+ data?: unknown;
202
+ }[] | undefined;
203
+ repo_name?: string | undefined;
204
+ agent_name?: string | undefined;
205
+ end_time?: string | undefined;
206
+ failure_reason?: string | undefined;
207
+ attributes?: Record<string, string> | undefined;
208
+ }[];
209
+ execution_id: string;
210
+ repo_span_id: string;
211
+ }>;
212
+ export type ExecutionGraphData = z.infer<typeof ExecutionGraphSchema>;
213
+ /**
214
+ * Builds an ExecutionGraph for a single invocation of this repository.
215
+ *
216
+ * Usage:
217
+ * 1. Create via constructor (auto-creates repo span)
218
+ * 2. Call startAgentSpan() before each agent runs
219
+ * 3. Call completeAgentSpan() or failAgentSpan() when done
220
+ * 4. Call completeRepo() or failRepo() at the end
221
+ * 5. Call toJSON() to get the serialized graph
222
+ */
223
+ export declare class ExecutionGraphBuilder {
224
+ private readonly executionId;
225
+ private readonly repoSpanId;
226
+ private readonly spans;
227
+ constructor(executionId: string, parentSpanId: string, traceId: string);
228
+ /** Start a new agent-level span as a child of the repo span. */
229
+ startAgentSpan(agentName: string): string;
230
+ /** Complete an agent-level span with optional artifacts. */
231
+ completeAgentSpan(spanId: string, artifacts?: Artifact[]): void;
232
+ /** Mark an agent-level span as failed. */
233
+ failAgentSpan(spanId: string, reason: string): void;
234
+ /**
235
+ * Complete the repo-level span.
236
+ * Throws if no agent-level spans were emitted.
237
+ */
238
+ completeRepo(): void;
239
+ /** Mark the repo-level span as failed, preserving all emitted spans. */
240
+ failRepo(reason: string): void;
241
+ /** Validate that at least one agent span exists. */
242
+ validate(): void;
243
+ /** Check if any agent spans exist. */
244
+ hasAgentSpans(): boolean;
245
+ /** Add an attribute to the repo-level span. */
246
+ setRepoAttribute(key: string, value: string): void;
247
+ /** Serialize the graph to a plain JSON-serializable object. */
248
+ toJSON(): ExecutionGraphData;
249
+ private findSpan;
250
+ }