@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,35 @@
1
+ "use strict";
2
+ /**
3
+ * CORS Middleware for Cloud Functions
4
+ *
5
+ * Handles preflight requests and sets CORS headers on all responses.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.setCorsHeaders = setCorsHeaders;
9
+ exports.handlePreflight = handlePreflight;
10
+ const ALLOWED_ORIGINS = [
11
+ 'https://agentics.dev',
12
+ 'https://console.agentics.dev',
13
+ 'https://us-central1-agentics-dev.cloudfunctions.net',
14
+ ];
15
+ const ALLOWED_METHODS = 'GET, POST, OPTIONS';
16
+ const ALLOWED_HEADERS = 'Content-Type, Authorization, X-Correlation-Id, X-Request-Id';
17
+ const MAX_AGE = '3600';
18
+ /**
19
+ * Set CORS headers on the response
20
+ */
21
+ function setCorsHeaders(res) {
22
+ // Allow any origin for now (can be restricted via ALLOWED_ORIGINS in production)
23
+ res.setHeader('Access-Control-Allow-Origin', '*');
24
+ res.setHeader('Access-Control-Allow-Methods', ALLOWED_METHODS);
25
+ res.setHeader('Access-Control-Allow-Headers', ALLOWED_HEADERS);
26
+ res.setHeader('Access-Control-Max-Age', MAX_AGE);
27
+ }
28
+ /**
29
+ * Handle CORS preflight (OPTIONS) request
30
+ */
31
+ function handlePreflight(res) {
32
+ res.writeHead(204);
33
+ res.end();
34
+ }
35
+ //# sourceMappingURL=cors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cors.js","sourceRoot":"","sources":["../../../src/cors.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAiBH,wCAMC;AAKD,0CAGC;AA3BD,MAAM,eAAe,GAAG;IACtB,sBAAsB;IACtB,8BAA8B;IAC9B,qDAAqD;CACtD,CAAC;AAEF,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAC7C,MAAM,eAAe,GAAG,6DAA6D,CAAC;AACtF,MAAM,OAAO,GAAG,MAAM,CAAC;AAEvB;;GAEG;AACH,SAAgB,cAAc,CAAC,GAAe;IAC5C,iFAAiF;IACjF,GAAG,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;IAClD,GAAG,CAAC,SAAS,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC;IAC/D,GAAG,CAAC,SAAS,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC;IAC/D,GAAG,CAAC,SAAS,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,GAAe;IAC7C,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACnB,GAAG,CAAC,GAAG,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Response Envelope
3
+ *
4
+ * Every response from copilot-agents MUST include:
5
+ * - execution_metadata (trace_id, timestamp, service, execution_id)
6
+ * - layers_executed (routing + agent layer with status and duration)
7
+ */
8
+ export interface ExecutionMetadata {
9
+ trace_id: string;
10
+ timestamp: string;
11
+ service: 'copilot-agents';
12
+ execution_id: string;
13
+ }
14
+ export interface LayerExecuted {
15
+ layer: string;
16
+ status: 'completed' | 'error';
17
+ duration_ms?: number;
18
+ }
19
+ export interface EnvelopedResponse {
20
+ data: unknown;
21
+ execution_metadata: ExecutionMetadata;
22
+ layers_executed: LayerExecuted[];
23
+ }
24
+ /**
25
+ * Wrap any response payload with execution_metadata and layers_executed
26
+ */
27
+ export declare function wrapResponse(data: unknown, executionMetadata: ExecutionMetadata, layersExecuted: LayerExecuted[]): EnvelopedResponse;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Response Envelope
4
+ *
5
+ * Every response from copilot-agents MUST include:
6
+ * - execution_metadata (trace_id, timestamp, service, execution_id)
7
+ * - layers_executed (routing + agent layer with status and duration)
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.wrapResponse = wrapResponse;
11
+ /**
12
+ * Wrap any response payload with execution_metadata and layers_executed
13
+ */
14
+ function wrapResponse(data, executionMetadata, layersExecuted) {
15
+ return {
16
+ data,
17
+ execution_metadata: executionMetadata,
18
+ layers_executed: layersExecuted,
19
+ };
20
+ }
21
+ //# sourceMappingURL=envelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../../src/envelope.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwBH,oCAUC;AAbD;;GAEG;AACH,SAAgB,YAAY,CAC1B,IAAa,EACb,iBAAoC,EACpC,cAA+B;IAE/B,OAAO;QACL,IAAI;QACJ,kBAAkB,EAAE,iBAAiB;QACrC,eAAe,EAAE,cAAc;KAChC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Health Check Handler
3
+ *
4
+ * Returns the status of all 7 copilot agents.
5
+ * Agents: planner, config, decomposer, clarifier, intent, reflection, meta-reasoner
6
+ */
7
+ export interface AgentHealthStatus {
8
+ agent: string;
9
+ status: 'healthy' | 'degraded' | 'unhealthy';
10
+ version: string;
11
+ }
12
+ export interface HealthResponse {
13
+ status: 'healthy' | 'degraded' | 'unhealthy';
14
+ service: string;
15
+ version: string;
16
+ agents: AgentHealthStatus[];
17
+ uptime_seconds: number;
18
+ }
19
+ /**
20
+ * Build health check response for all agents
21
+ */
22
+ export declare function handleHealth(): HealthResponse;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Health Check Handler
4
+ *
5
+ * Returns the status of all 7 copilot agents.
6
+ * Agents: planner, config, decomposer, clarifier, intent, reflection, meta-reasoner
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.handleHealth = handleHealth;
10
+ const SERVICE_START_TIME = Date.now();
11
+ const AGENT_REGISTRY = [
12
+ { name: 'planner', version: '1.0.0' },
13
+ { name: 'config', version: '1.0.0' },
14
+ { name: 'decomposer', version: '1.0.0' },
15
+ { name: 'clarifier', version: '1.0.0' },
16
+ { name: 'intent', version: '1.0.0' },
17
+ { name: 'reflection', version: '1.0.0' },
18
+ { name: 'meta-reasoner', version: '1.0.0' },
19
+ ];
20
+ /**
21
+ * Build health check response for all agents
22
+ */
23
+ function handleHealth() {
24
+ const agents = AGENT_REGISTRY.map(agent => ({
25
+ agent: agent.name,
26
+ status: 'healthy',
27
+ version: agent.version,
28
+ }));
29
+ const allHealthy = agents.every(a => a.status === 'healthy');
30
+ return {
31
+ status: allHealthy ? 'healthy' : 'degraded',
32
+ service: 'copilot-agents',
33
+ version: '1.0.0',
34
+ agents,
35
+ uptime_seconds: Math.floor((Date.now() - SERVICE_START_TIME) / 1000),
36
+ };
37
+ }
38
+ //# sourceMappingURL=health.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.js","sourceRoot":"","sources":["../../../src/health.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AA+BH,oCAgBC;AA/BD,MAAM,kBAAkB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AAEtC,MAAM,cAAc,GAA6C;IAC/D,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE;IACrC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;IACpC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE;IACxC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE;IACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;IACpC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE;IACxC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE;CAC5C,CAAC;AAEF;;GAEG;AACH,SAAgB,YAAY;IAC1B,MAAM,MAAM,GAAwB,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC/D,KAAK,EAAE,KAAK,CAAC,IAAI;QACjB,MAAM,EAAE,SAAkB;QAC1B,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC,CAAC,CAAC;IAEJ,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC;IAE7D,OAAO;QACL,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;QAC3C,OAAO,EAAE,gBAAgB;QACzB,OAAO,EAAE,OAAO;QAChB,MAAM;QACN,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,kBAAkB,CAAC,GAAG,IAAI,CAAC;KACrE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Cloud Function Entry Point: copilot-agents
3
+ *
4
+ * Unified HTTP handler for all 7 copilot agents.
5
+ * Deploy: gcloud functions deploy copilot-agents --runtime nodejs20 --trigger-http
6
+ * --region us-central1 --project agentics-dev --entry-point handler
7
+ * --memory 512MB --timeout 120s --no-allow-unauthenticated
8
+ *
9
+ * Routes:
10
+ * POST /v1/copilot/planner → Planner Agent
11
+ * POST /v1/copilot/config → Config Validation Agent
12
+ * POST /v1/copilot/decomposer → Decomposer Agent
13
+ * POST /v1/copilot/clarifier → Objective Clarifier Agent
14
+ * POST /v1/copilot/intent → Intent Classifier Agent
15
+ * POST /v1/copilot/reflection → Reflection Agent
16
+ * POST /v1/copilot/meta-reasoner → Meta-Reasoner Agent
17
+ * GET /health → Health check
18
+ */
19
+ import { IncomingMessage, ServerResponse } from 'http';
20
+ export interface CfRequest extends IncomingMessage {
21
+ body?: unknown;
22
+ rawBody?: Buffer;
23
+ }
24
+ export interface CfResponse extends ServerResponse {
25
+ status?: (code: number) => CfResponse;
26
+ json?: (data: unknown) => void;
27
+ send?: (data: string | Buffer) => void;
28
+ }
29
+ /**
30
+ * Main Cloud Function handler
31
+ *
32
+ * Entry point name: handler
33
+ */
34
+ export declare function handler(req: CfRequest, res: CfResponse): Promise<void>;
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ /**
3
+ * Cloud Function Entry Point: copilot-agents
4
+ *
5
+ * Unified HTTP handler for all 7 copilot agents.
6
+ * Deploy: gcloud functions deploy copilot-agents --runtime nodejs20 --trigger-http
7
+ * --region us-central1 --project agentics-dev --entry-point handler
8
+ * --memory 512MB --timeout 120s --no-allow-unauthenticated
9
+ *
10
+ * Routes:
11
+ * POST /v1/copilot/planner → Planner Agent
12
+ * POST /v1/copilot/config → Config Validation Agent
13
+ * POST /v1/copilot/decomposer → Decomposer Agent
14
+ * POST /v1/copilot/clarifier → Objective Clarifier Agent
15
+ * POST /v1/copilot/intent → Intent Classifier Agent
16
+ * POST /v1/copilot/reflection → Reflection Agent
17
+ * POST /v1/copilot/meta-reasoner → Meta-Reasoner Agent
18
+ * GET /health → Health check
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __importStar = (this && this.__importStar) || (function () {
37
+ var ownKeys = function(o) {
38
+ ownKeys = Object.getOwnPropertyNames || function (o) {
39
+ var ar = [];
40
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
41
+ return ar;
42
+ };
43
+ return ownKeys(o);
44
+ };
45
+ return function (mod) {
46
+ if (mod && mod.__esModule) return mod;
47
+ var result = {};
48
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
49
+ __setModuleDefault(result, mod);
50
+ return result;
51
+ };
52
+ })();
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.handler = handler;
55
+ const crypto = __importStar(require("crypto"));
56
+ const router_1 = require("./router");
57
+ const health_1 = require("./health");
58
+ const cors_1 = require("./cors");
59
+ const envelope_1 = require("./envelope");
60
+ /**
61
+ * Parse JSON body from request
62
+ */
63
+ function parseBody(req) {
64
+ // Cloud Functions automatically parse JSON bodies into req.body
65
+ if (req.body !== undefined) {
66
+ return req.body;
67
+ }
68
+ return undefined;
69
+ }
70
+ /**
71
+ * Send JSON response
72
+ */
73
+ function sendJson(res, statusCode, data) {
74
+ res.writeHead(statusCode, { 'Content-Type': 'application/json' });
75
+ res.end(JSON.stringify(data));
76
+ }
77
+ /**
78
+ * Main Cloud Function handler
79
+ *
80
+ * Entry point name: handler
81
+ */
82
+ async function handler(req, res) {
83
+ const startTime = Date.now();
84
+ // CORS headers on every response
85
+ (0, cors_1.setCorsHeaders)(res);
86
+ // Handle CORS preflight
87
+ if (req.method === 'OPTIONS') {
88
+ (0, cors_1.handlePreflight)(res);
89
+ return;
90
+ }
91
+ const url = new URL(req.url || '/', `https://${req.headers.host || 'localhost'}`);
92
+ const pathname = url.pathname;
93
+ // Build execution metadata
94
+ const traceId = req.headers['x-correlation-id'] || crypto.randomUUID();
95
+ const executionId = crypto.randomUUID();
96
+ const executionMetadata = {
97
+ trace_id: traceId,
98
+ timestamp: new Date().toISOString(),
99
+ service: 'copilot-agents',
100
+ execution_id: executionId,
101
+ };
102
+ // Health endpoint
103
+ if (pathname === '/health' && (req.method === 'GET' || req.method === 'HEAD')) {
104
+ const healthResult = (0, health_1.handleHealth)();
105
+ const layers = [
106
+ { layer: 'AGENT_ROUTING', status: 'completed' },
107
+ { layer: 'HEALTH_CHECK', status: 'completed', duration_ms: Date.now() - startTime },
108
+ ];
109
+ sendJson(res, 200, (0, envelope_1.wrapResponse)(healthResult, executionMetadata, layers));
110
+ return;
111
+ }
112
+ // Agent routes: POST /v1/copilot/{agent}
113
+ if (req.method === 'POST' && pathname.startsWith('/v1/copilot/')) {
114
+ // Require end-user Anthropic API key via header
115
+ const anthropicApiKey = req.headers['x-anthropic-api-key'];
116
+ if (!anthropicApiKey) {
117
+ const layers = [
118
+ { layer: 'AGENT_ROUTING', status: 'error' },
119
+ ];
120
+ sendJson(res, 400, (0, envelope_1.wrapResponse)({ error: 'Missing Anthropic API key. Set it via `agentics login` or the ANTHROPIC_API_KEY environment variable.' }, executionMetadata, layers));
121
+ return;
122
+ }
123
+ const agentSlug = pathname.replace('/v1/copilot/', '').replace(/\/$/, '');
124
+ const body = parseBody(req);
125
+ if (!body || typeof body !== 'object') {
126
+ const layers = [
127
+ { layer: 'AGENT_ROUTING', status: 'completed' },
128
+ ];
129
+ sendJson(res, 400, (0, envelope_1.wrapResponse)({ error: 'Request body must be a JSON object' }, executionMetadata, layers));
130
+ return;
131
+ }
132
+ try {
133
+ const routingLayerStart = Date.now();
134
+ const agentResult = await (0, router_1.routeRequest)(agentSlug, body);
135
+ const routingDuration = Date.now() - routingLayerStart;
136
+ const agentName = agentSlug.toUpperCase().replace(/-/g, '_');
137
+ const layers = [
138
+ { layer: 'AGENT_ROUTING', status: 'completed' },
139
+ { layer: `COPILOT_${agentName}`, status: 'completed', duration_ms: routingDuration },
140
+ ];
141
+ const statusCode = agentResult.status === 'success' ? 200 : 422;
142
+ sendJson(res, statusCode, (0, envelope_1.wrapResponse)(agentResult, executionMetadata, layers));
143
+ return;
144
+ }
145
+ catch (err) {
146
+ const agentName = agentSlug.toUpperCase().replace(/-/g, '_');
147
+ const layers = [
148
+ { layer: 'AGENT_ROUTING', status: 'completed' },
149
+ { layer: `COPILOT_${agentName}`, status: 'error', duration_ms: Date.now() - startTime },
150
+ ];
151
+ const errorMessage = err instanceof Error ? err.message : 'Internal server error';
152
+ sendJson(res, 500, (0, envelope_1.wrapResponse)({ error: errorMessage }, executionMetadata, layers));
153
+ return;
154
+ }
155
+ }
156
+ // 404 for unmatched routes
157
+ const layers = [
158
+ { layer: 'AGENT_ROUTING', status: 'error' },
159
+ ];
160
+ sendJson(res, 404, (0, envelope_1.wrapResponse)({
161
+ error: 'Not found',
162
+ available_routes: [
163
+ 'POST /v1/copilot/planner',
164
+ 'POST /v1/copilot/config',
165
+ 'POST /v1/copilot/decomposer',
166
+ 'POST /v1/copilot/clarifier',
167
+ 'POST /v1/copilot/intent',
168
+ 'POST /v1/copilot/reflection',
169
+ 'POST /v1/copilot/meta-reasoner',
170
+ 'GET /health',
171
+ ],
172
+ }, executionMetadata, layers));
173
+ }
174
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CH,0BAyGC;AAlJD,+CAAiC;AACjC,qCAAwC;AACxC,qCAAwC;AACxC,iCAAyD;AACzD,yCAA4E;AAa5E;;GAEG;AACH,SAAS,SAAS,CAAC,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AC7B,EAAE,KAAK,EAAE,YAAY,EAAE,EACvB,iBAAiB,EACjB,MAAM,CACP,CAAC,CAAC;YACH,OAAO;QACT,CAAC;IACH,CAAC;IAED,2BAA2B;IAC3B,MAAM,MAAM,GAAoB;QAC9B,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE;KAC5C,CAAC;IACF,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,IAAA,uBAAY,EAC7B;QACE,KAAK,EAAE,WAAW;QAClB,gBAAgB,EAAE;YAChB,0BAA0B;YAC1B,yBAAyB;YACzB,6BAA6B;YAC7B,4BAA4B;YAC5B,yBAAyB;YACzB,6BAA6B;YAC7B,gCAAgC;YAChC,aAAa;SACd;KACF,EACD,iBAAiB,EACjB,MAAM,CACP,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Agent Router
3
+ *
4
+ * Maps URL slugs to agent invocations.
5
+ * Does NOT create new agents or modify business logic.
6
+ * Instantiates existing agents with persistence/telemetry from env
7
+ * and routes HTTP bodies to agent.invoke().
8
+ *
9
+ * Routes:
10
+ * planner → PlannerAgent
11
+ * config → ConfigValidationAgent
12
+ * decomposer → DecomposerAgent
13
+ * clarifier → ObjectiveClarifierAgent
14
+ * intent → IntentClassifierAgent
15
+ * reflection → ReflectionAgent
16
+ * meta-reasoner → MetaReasonerAgent
17
+ */
18
+ import { AgentResult } from '../../services/agents/contracts';
19
+ /**
20
+ * Route a request to the appropriate agent
21
+ *
22
+ * @param slug - The agent slug from the URL path
23
+ * @param body - The parsed JSON request body
24
+ * @returns The agent result (success or error)
25
+ * @throws If the slug is unknown
26
+ */
27
+ export declare function routeRequest(slug: string, body: unknown): Promise<AgentResult>;
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ /**
3
+ * Agent Router
4
+ *
5
+ * Maps URL slugs to agent invocations.
6
+ * Does NOT create new agents or modify business logic.
7
+ * Instantiates existing agents with persistence/telemetry from env
8
+ * and routes HTTP bodies to agent.invoke().
9
+ *
10
+ * Routes:
11
+ * planner → PlannerAgent
12
+ * config → ConfigValidationAgent
13
+ * decomposer → DecomposerAgent
14
+ * clarifier → ObjectiveClarifierAgent
15
+ * intent → IntentClassifierAgent
16
+ * reflection → ReflectionAgent
17
+ * meta-reasoner → MetaReasonerAgent
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.routeRequest = routeRequest;
21
+ const uuid_1 = require("uuid");
22
+ // Agent imports
23
+ const planner_1 = require("../../services/agents/planner");
24
+ const config_validation_1 = require("../../services/agents/config-validation");
25
+ const decomposer_1 = require("../../services/agents/decomposer");
26
+ const objective_clarifier_1 = require("../../services/agents/objective-clarifier");
27
+ const intent_classifier_1 = require("../../services/agents/intent-classifier");
28
+ const reflection_1 = require("../../services/agents/reflection");
29
+ const meta_reasoner_1 = require("../../services/agents/meta-reasoner");
30
+ // Each agent uses its own persistence/telemetry module (they have identical APIs
31
+ // but TypeScript treats separate class declarations as distinct types)
32
+ const ruvector_persistence_1 = require("../../services/agents/planner/ruvector-persistence");
33
+ const telemetry_1 = require("../../services/agents/planner/telemetry");
34
+ const ruvector_persistence_2 = require("../../services/agents/objective-clarifier/ruvector-persistence");
35
+ const telemetry_2 = require("../../services/agents/objective-clarifier/telemetry");
36
+ const ruvector_persistence_3 = require("../../services/agents/reflection/ruvector-persistence");
37
+ const telemetry_3 = require("../../services/agents/reflection/telemetry");
38
+ /**
39
+ * Agent factory: instantiate the correct agent for the given slug
40
+ */
41
+ function createAgent(slug) {
42
+ switch (slug) {
43
+ case 'planner': {
44
+ const p = (0, ruvector_persistence_1.createRuvectorFromEnv)();
45
+ const t = (0, telemetry_1.createTelemetryFromEnv)();
46
+ return new planner_1.PlannerAgent(p, t);
47
+ }
48
+ case 'config': {
49
+ const p = (0, ruvector_persistence_1.createRuvectorFromEnv)();
50
+ const t = (0, telemetry_1.createTelemetryFromEnv)();
51
+ return new config_validation_1.ConfigValidationAgent(p, t);
52
+ }
53
+ case 'decomposer': {
54
+ const p = (0, ruvector_persistence_1.createRuvectorFromEnv)();
55
+ const t = (0, telemetry_1.createTelemetryFromEnv)();
56
+ return new decomposer_1.DecomposerAgent(p, t);
57
+ }
58
+ case 'clarifier': {
59
+ const p = (0, ruvector_persistence_2.createRuvectorFromEnv)();
60
+ const t = (0, telemetry_2.createTelemetryFromEnv)();
61
+ return new objective_clarifier_1.ObjectiveClarifierAgent(p, t);
62
+ }
63
+ case 'intent': {
64
+ // IntentClassifier imports from planner persistence/telemetry
65
+ const p = (0, ruvector_persistence_1.createRuvectorFromEnv)();
66
+ const t = (0, telemetry_1.createTelemetryFromEnv)();
67
+ return new intent_classifier_1.IntentClassifierAgent(p, t);
68
+ }
69
+ case 'reflection': {
70
+ const p = (0, ruvector_persistence_3.createRuvectorFromEnv)();
71
+ const t = (0, telemetry_3.createTelemetryFromEnv)();
72
+ return new reflection_1.ReflectionAgent(p, t);
73
+ }
74
+ case 'meta-reasoner': {
75
+ // MetaReasoner imports from planner persistence/telemetry
76
+ const p = (0, ruvector_persistence_1.createRuvectorFromEnv)();
77
+ const t = (0, telemetry_1.createTelemetryFromEnv)();
78
+ return new meta_reasoner_1.MetaReasonerAgent(p, t);
79
+ }
80
+ default:
81
+ return null;
82
+ }
83
+ }
84
+ /**
85
+ * Route a request to the appropriate agent
86
+ *
87
+ * @param slug - The agent slug from the URL path
88
+ * @param body - The parsed JSON request body
89
+ * @returns The agent result (success or error)
90
+ * @throws If the slug is unknown
91
+ */
92
+ async function routeRequest(slug, body) {
93
+ const agent = createAgent(slug);
94
+ if (!agent) {
95
+ throw new Error(`Unknown agent: "${slug}". Valid agents: planner, config, decomposer, clarifier, intent, reflection, meta-reasoner`);
96
+ }
97
+ // Extract execution_ref from body or generate one
98
+ const bodyObj = body;
99
+ const executionRef = (typeof bodyObj.execution_ref === 'string' && bodyObj.execution_ref)
100
+ ? bodyObj.execution_ref
101
+ : (0, uuid_1.v4)();
102
+ // Validate input through the agent's schema
103
+ const validatedInput = agent.validateInput(body);
104
+ // Invoke the agent
105
+ return agent.invoke(validatedInput, executionRef);
106
+ }
107
+ //# sourceMappingURL=router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.js","sourceRoot":"","sources":["../../../src/router.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAsFH,oCAoBC;AAxGD,+BAAoC;AAGpC,gBAAgB;AAChB,2DAA6D;AAC7D,+EAAgF;AAChF,iEAAmE;AACnE,mFAAoF;AACpF,+EAAgF;AAChF,iEAAmE;AACnE,uEAAwE;AAExE,iFAAiF;AACjF,uEAAuE;AACvE,6FAAuH;AACvH,uEAA2G;AAC3G,yGAAqI;AACrI,mFAAyH;AACzH,gGAA6H;AAC7H,0EAAiH;AAUjH;;GAEG;AACH,SAAS,WAAW,CAAC,IAAY;IAC/B,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS,CAAC,CAAC,CAAC;YACf,MAAM,CAAC,GAAG,IAAA,4CAAwB,GAAE,CAAC;YACrC,MAAM,CAAC,GAAG,IAAA,kCAAsB,GAAE,CAAC;YACnC,OAAO,IAAI,sBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAChC,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,MAAM,CAAC,GAAG,IAAA,4CAAwB,GAAE,CAAC;YACrC,MAAM,CAAC,GAAG,IAAA,kCAAsB,GAAE,CAAC;YACnC,OAAO,IAAI,yCAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,YAAY,CAAC,CAAC,CAAC;YAClB,MAAM,CAAC,GAAG,IAAA,4CAAwB,GAAE,CAAC;YACrC,MAAM,CAAC,GAAG,IAAA,kCAAsB,GAAE,CAAC;YACnC,OAAO,IAAI,4BAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;QACD,KAAK,WAAW,CAAC,CAAC,CAAC;YACjB,MAAM,CA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