@llm-dev-ops/agentics-cli 1.4.47 → 1.4.48

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 (315) hide show
  1. package/dist/cli/index.js +43 -67
  2. package/dist/cli/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/dist/bundled-agents/connector-hub-agents/package-lock.json +0 -11697
  5. package/dist/bundled-agents/connector-hub-agents/package.json +0 -75
  6. package/dist/bundled-agents/connector-hub-agents/tsconfig.build.json +0 -22
  7. package/dist/bundled-agents/connector-hub-agents/tsconfig.json +0 -57
  8. package/dist/bundled-agents/copilot-agents/functions/.gcloudignore +0 -17
  9. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.d.ts +0 -14
  10. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js +0 -35
  11. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js.map +0 -1
  12. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.d.ts +0 -55
  13. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js +0 -40
  14. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js.map +0 -1
  15. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.d.ts +0 -22
  16. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js +0 -38
  17. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js.map +0 -1
  18. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.d.ts +0 -34
  19. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js +0 -186
  20. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js.map +0 -1
  21. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.d.ts +0 -36
  22. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js +0 -121
  23. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js.map +0 -1
  24. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.d.ts +0 -157
  25. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js +0 -948
  26. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js.map +0 -1
  27. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.d.ts +0 -9
  28. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js +0 -27
  29. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js.map +0 -1
  30. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.d.ts +0 -23
  31. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js +0 -50
  32. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js.map +0 -1
  33. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.d.ts +0 -214
  34. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js +0 -91
  35. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js.map +0 -1
  36. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.d.ts +0 -1166
  37. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js +0 -308
  38. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js.map +0 -1
  39. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.d.ts +0 -59
  40. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js +0 -62
  41. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js.map +0 -1
  42. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.d.ts +0 -400
  43. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js +0 -113
  44. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js.map +0 -1
  45. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.d.ts +0 -250
  46. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js +0 -169
  47. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js.map +0 -1
  48. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.d.ts +0 -17
  49. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js +0 -97
  50. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js.map +0 -1
  51. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.d.ts +0 -1674
  52. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js +0 -246
  53. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js.map +0 -1
  54. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.d.ts +0 -1085
  55. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js +0 -218
  56. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js.map +0 -1
  57. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.d.ts +0 -949
  58. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js +0 -253
  59. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js.map +0 -1
  60. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.d.ts +0 -657
  61. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js +0 -205
  62. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js.map +0 -1
  63. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.d.ts +0 -285
  64. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js +0 -106
  65. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js.map +0 -1
  66. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.d.ts +0 -581
  67. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js +0 -136
  68. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js.map +0 -1
  69. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.d.ts +0 -791
  70. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js +0 -225
  71. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js.map +0 -1
  72. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.d.ts +0 -120
  73. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js +0 -535
  74. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js.map +0 -1
  75. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.d.ts +0 -9
  76. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js +0 -18
  77. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js.map +0 -1
  78. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.d.ts +0 -4
  79. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js +0 -9
  80. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js.map +0 -1
  81. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.d.ts +0 -123
  82. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js +0 -609
  83. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js.map +0 -1
  84. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.d.ts +0 -10
  85. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js +0 -25
  86. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js.map +0 -1
  87. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +0 -111
  88. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js +0 -686
  89. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js.map +0 -1
  90. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.d.ts +0 -11
  91. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js +0 -25
  92. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js.map +0 -1
  93. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.d.ts +0 -6
  94. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js +0 -15
  95. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js.map +0 -1
  96. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +0 -126
  97. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js +0 -780
  98. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js.map +0 -1
  99. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.d.ts +0 -49
  100. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js +0 -125
  101. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js.map +0 -1
  102. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.d.ts +0 -73
  103. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js +0 -192
  104. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js.map +0 -1
  105. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.d.ts +0 -11
  106. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js +0 -25
  107. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js.map +0 -1
  108. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.d.ts +0 -127
  109. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js +0 -483
  110. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js.map +0 -1
  111. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.d.ts +0 -49
  112. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js +0 -125
  113. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js.map +0 -1
  114. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.d.ts +0 -73
  115. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js +0 -192
  116. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js.map +0 -1
  117. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.d.ts +0 -11
  118. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js +0 -27
  119. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js.map +0 -1
  120. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.d.ts +0 -122
  121. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js +0 -645
  122. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js.map +0 -1
  123. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.d.ts +0 -59
  124. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js +0 -156
  125. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js.map +0 -1
  126. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.d.ts +0 -88
  127. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js +0 -246
  128. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js.map +0 -1
  129. package/dist/bundled-agents/copilot-agents/functions/index.js +0 -4
  130. package/dist/bundled-agents/copilot-agents/functions/jest.config.js +0 -29
  131. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.d.ts +0 -14
  132. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js +0 -35
  133. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js.map +0 -1
  134. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.d.ts +0 -27
  135. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js +0 -21
  136. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js.map +0 -1
  137. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.d.ts +0 -22
  138. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js +0 -38
  139. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js.map +0 -1
  140. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.d.ts +0 -34
  141. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js +0 -174
  142. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js.map +0 -1
  143. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.d.ts +0 -27
  144. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js +0 -107
  145. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js.map +0 -1
  146. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.d.ts +0 -157
  147. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js +0 -941
  148. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js.map +0 -1
  149. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.d.ts +0 -9
  150. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js +0 -27
  151. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js.map +0 -1
  152. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.d.ts +0 -23
  153. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js +0 -50
  154. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js.map +0 -1
  155. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.d.ts +0 -185
  156. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js +0 -86
  157. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js.map +0 -1
  158. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.d.ts +0 -1081
  159. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js +0 -305
  160. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js.map +0 -1
  161. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.d.ts +0 -59
  162. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js +0 -62
  163. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js.map +0 -1
  164. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.d.ts +0 -315
  165. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js +0 -110
  166. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js.map +0 -1
  167. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.d.ts +0 -250
  168. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js +0 -169
  169. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js.map +0 -1
  170. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.d.ts +0 -16
  171. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js +0 -88
  172. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js.map +0 -1
  173. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.d.ts +0 -1674
  174. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js +0 -246
  175. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js.map +0 -1
  176. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.d.ts +0 -1000
  177. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js +0 -215
  178. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js.map +0 -1
  179. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.d.ts +0 -864
  180. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js +0 -250
  181. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js.map +0 -1
  182. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.d.ts +0 -572
  183. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js +0 -202
  184. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js.map +0 -1
  185. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.d.ts +0 -496
  186. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js +0 -133
  187. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js.map +0 -1
  188. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.d.ts +0 -706
  189. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js +0 -222
  190. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js.map +0 -1
  191. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.d.ts +0 -107
  192. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js +0 -360
  193. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js.map +0 -1
  194. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.d.ts +0 -9
  195. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js +0 -18
  196. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js.map +0 -1
  197. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.d.ts +0 -4
  198. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js +0 -9
  199. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js.map +0 -1
  200. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.d.ts +0 -123
  201. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js +0 -609
  202. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js.map +0 -1
  203. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.d.ts +0 -10
  204. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js +0 -25
  205. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js.map +0 -1
  206. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +0 -111
  207. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js +0 -686
  208. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js.map +0 -1
  209. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.d.ts +0 -11
  210. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js +0 -25
  211. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js.map +0 -1
  212. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.d.ts +0 -6
  213. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js +0 -15
  214. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js.map +0 -1
  215. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +0 -126
  216. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js +0 -780
  217. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js.map +0 -1
  218. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.d.ts +0 -49
  219. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js +0 -125
  220. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js.map +0 -1
  221. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.d.ts +0 -73
  222. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js +0 -192
  223. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js.map +0 -1
  224. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.d.ts +0 -11
  225. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js +0 -25
  226. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js.map +0 -1
  227. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.d.ts +0 -119
  228. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js +0 -421
  229. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js.map +0 -1
  230. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.d.ts +0 -49
  231. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js +0 -125
  232. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js.map +0 -1
  233. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.d.ts +0 -73
  234. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js +0 -192
  235. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js.map +0 -1
  236. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.d.ts +0 -11
  237. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js +0 -27
  238. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js.map +0 -1
  239. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.d.ts +0 -122
  240. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js +0 -645
  241. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js.map +0 -1
  242. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.d.ts +0 -59
  243. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js +0 -156
  244. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js.map +0 -1
  245. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.d.ts +0 -88
  246. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js +0 -246
  247. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js.map +0 -1
  248. package/dist/bundled-agents/copilot-agents/functions/package-lock.json +0 -5473
  249. package/dist/bundled-agents/copilot-agents/functions/package.json +0 -40
  250. package/dist/bundled-agents/copilot-agents/functions/src/claude.ts +0 -71
  251. package/dist/bundled-agents/copilot-agents/functions/src/cors.ts +0 -36
  252. package/dist/bundled-agents/copilot-agents/functions/src/envelope.ts +0 -77
  253. package/dist/bundled-agents/copilot-agents/functions/src/handler.test.ts +0 -340
  254. package/dist/bundled-agents/copilot-agents/functions/src/health.ts +0 -53
  255. package/dist/bundled-agents/copilot-agents/functions/src/index.ts +0 -201
  256. package/dist/bundled-agents/copilot-agents/functions/src/router.ts +0 -148
  257. package/dist/bundled-agents/copilot-agents/functions/tsconfig.json +0 -31
  258. package/dist/bundled-agents/copilot-agents/package-lock.json +0 -11825
  259. package/dist/bundled-agents/copilot-agents/package.json +0 -5
  260. package/dist/bundled-agents/governance-dashboard-agents/package-lock.json +0 -8282
  261. package/dist/bundled-agents/governance-dashboard-agents/package.json +0 -13
  262. package/dist/bundled-agents/orchestrator-agents/functions/contracts/index.js +0 -590
  263. package/dist/bundled-agents/orchestrator-agents/functions/index.js +0 -442
  264. package/dist/bundled-agents/orchestrator-agents/functions/test.js +0 -325
  265. package/dist/bundled-agents/orchestrator-agents/index.js +0 -6
  266. package/dist/bundled-agents/orchestrator-agents/package-lock.json +0 -13254
  267. package/dist/bundled-agents/orchestrator-agents/package.json +0 -20
  268. package/dist/bundled-agents/platform-agents/package-lock.json +0 -1723
  269. package/dist/bundled-agents/platform-agents/package.json +0 -22
  270. package/dist/bundled-agents/platform-agents/src/agents/decision-memo.ts +0 -463
  271. package/dist/bundled-agents/platform-agents/src/agents/decision.ts +0 -234
  272. package/dist/bundled-agents/platform-agents/src/agents/executive-summary.ts +0 -229
  273. package/dist/bundled-agents/platform-agents/src/agents/risk-score.ts +0 -327
  274. package/dist/bundled-agents/platform-agents/src/claude.ts +0 -71
  275. package/dist/bundled-agents/platform-agents/src/cors.ts +0 -24
  276. package/dist/bundled-agents/platform-agents/src/envelope.ts +0 -37
  277. package/dist/bundled-agents/platform-agents/src/health.ts +0 -20
  278. package/dist/bundled-agents/platform-agents/src/index.ts +0 -171
  279. package/dist/bundled-agents/platform-agents/src/router.ts +0 -38
  280. package/dist/bundled-agents/platform-agents/src/text-analysis.ts +0 -238
  281. package/dist/bundled-agents/platform-agents/tsconfig.json +0 -19
  282. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts +0 -3
  283. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts.map +0 -1
  284. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js +0 -43
  285. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js.map +0 -1
  286. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts +0 -3
  287. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts.map +0 -1
  288. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js +0 -30
  289. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js.map +0 -1
  290. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts +0 -3
  291. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts.map +0 -1
  292. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js +0 -53
  293. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js.map +0 -1
  294. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts +0 -3
  295. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts.map +0 -1
  296. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js +0 -51
  297. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js.map +0 -1
  298. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts +0 -3
  299. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts.map +0 -1
  300. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js +0 -36
  301. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js.map +0 -1
  302. package/dist/bundled-agents/sentinel-agents/lib/index.d.ts +0 -2
  303. package/dist/bundled-agents/sentinel-agents/lib/index.d.ts.map +0 -1
  304. package/dist/bundled-agents/sentinel-agents/lib/index.js +0 -70
  305. package/dist/bundled-agents/sentinel-agents/lib/index.js.map +0 -1
  306. package/dist/bundled-agents/sentinel-agents/package-lock.json +0 -12591
  307. package/dist/bundled-agents/sentinel-agents/package.json +0 -62
  308. package/dist/bundled-agents/sentinel-agents/src/agents/alert.ts +0 -46
  309. package/dist/bundled-agents/sentinel-agents/src/agents/anomaly.ts +0 -33
  310. package/dist/bundled-agents/sentinel-agents/src/agents/correlation.ts +0 -56
  311. package/dist/bundled-agents/sentinel-agents/src/agents/drift.ts +0 -54
  312. package/dist/bundled-agents/sentinel-agents/src/agents/rca.ts +0 -38
  313. package/dist/bundled-agents/sentinel-agents/src/claude.ts +0 -71
  314. package/dist/bundled-agents/sentinel-agents/src/index.ts +0 -77
  315. package/dist/bundled-agents/sentinel-agents/tsconfig.json +0 -20
@@ -1,360 +0,0 @@
1
- "use strict";
2
- /**
3
- * Decomposer Agent
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
- * CONSTITUTION COMPLIANCE:
15
- * ✓ Stateless at runtime
16
- * ✓ Emits exactly ONE DecisionEvent per invocation
17
- * ✓ Persists ONLY via ruvector-service
18
- * ✓ NEVER connects directly to databases
19
- * ✓ NEVER executes SQL
20
- * ✓ NEVER modifies runtime behavior
21
- * ✓ NEVER orchestrates other agents
22
- * ✓ NEVER enforces policy
23
- * ✓ NEVER intercepts execution paths
24
- *
25
- * Must Never:
26
- * - Execute sub-objectives
27
- * - Assign agents
28
- * - Allocate resources
29
- * - Schedule execution
30
- */
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.DecomposerAgent = void 0;
33
- const uuid_1 = require("uuid");
34
- const contracts_1 = require("../contracts");
35
- const AGENT_ID = 'decomposer-agent';
36
- const AGENT_VERSION = '1.0.0';
37
- const DECISION_TYPE = 'objective_decomposition';
38
- /**
39
- * Decomposer Agent Implementation
40
- *
41
- * This agent analyzes complex objectives and produces structured sub-objectives.
42
- * It is purely analytical - it NEVER executes, assigns, or schedules anything.
43
- */
44
- class DecomposerAgent {
45
- metadata = {
46
- id: AGENT_ID,
47
- name: 'Decomposer Agent',
48
- version: AGENT_VERSION,
49
- classifications: [
50
- contracts_1.AgentClassification.DECOMPOSITION,
51
- contracts_1.AgentClassification.STRUCTURAL_SYNTHESIS,
52
- ],
53
- decision_type: DECISION_TYPE,
54
- description: 'Decomposes complex objectives into manageable sub-objectives with relationships and completeness assessment.',
55
- };
56
- persistence;
57
- telemetry;
58
- constructor(persistence, telemetry) {
59
- this.persistence = persistence;
60
- this.telemetry = telemetry;
61
- }
62
- /**
63
- * Validate input against DecomposerInputSchema
64
- */
65
- validateInput(input) {
66
- return contracts_1.DecomposerInputSchema.parse(input);
67
- }
68
- /**
69
- * Invoke the decomposer agent
70
- *
71
- * DETERMINISTIC: Same input always produces same output structure
72
- * STATELESS: No internal state modified
73
- * NON-BLOCKING: Fully async
74
- */
75
- async invoke(input, executionRef) {
76
- const startTime = Date.now();
77
- try {
78
- // Emit telemetry start
79
- this.telemetry.recordStart(AGENT_ID, executionRef, input);
80
- // Decompose the objective (pure analysis, no side effects)
81
- const output = this.decompose(input);
82
- // Validate output
83
- const validatedOutput = contracts_1.DecomposerOutputSchema.parse(output);
84
- // Calculate confidence based on decomposition quality
85
- const confidence = this.calculateConfidence(validatedOutput);
86
- // Constraints applied during decomposition
87
- const constraintsApplied = this.getAppliedConstraints(input);
88
- // Create the DecisionEvent
89
- const event = (0, contracts_1.createDecisionEvent)(AGENT_ID, AGENT_VERSION, DECISION_TYPE, input, validatedOutput, confidence, constraintsApplied, executionRef);
90
- // Persist via ruvector-service (best-effort, non-blocking)
91
- let persistence_status;
92
- try {
93
- await this.persistence.store(event);
94
- persistence_status = { status: 'persisted' };
95
- }
96
- catch (persistError) {
97
- const persistMessage = persistError instanceof Error ? persistError.message : 'Unknown persistence error';
98
- console.error(`[${AGENT_ID}] RuVector persistence failed (non-blocking): ${persistMessage}`);
99
- persistence_status = { status: 'skipped', error: persistMessage };
100
- }
101
- // Emit telemetry success
102
- this.telemetry.recordSuccess(AGENT_ID, executionRef, Date.now() - startTime);
103
- return {
104
- status: 'success',
105
- event,
106
- persistence_status,
107
- };
108
- }
109
- catch (error) {
110
- const errorMessage = error instanceof Error ? error.message : 'Unknown error';
111
- const errorCode = this.classifyError(error);
112
- // Emit telemetry failure
113
- this.telemetry.recordFailure(AGENT_ID, executionRef, errorCode, errorMessage);
114
- return (0, contracts_1.createErrorResult)(errorCode, errorMessage, executionRef);
115
- }
116
- }
117
- /**
118
- * Decompose objective into sub-objectives
119
- *
120
- * This is the core decomposition logic - purely analytical.
121
- * NEVER executes, assigns agents, or schedules anything.
122
- */
123
- decompose(input) {
124
- const decompositionId = (0, uuid_1.v4)();
125
- const maxDepth = input.context?.max_depth ?? 3;
126
- const maxSubObjectives = input.config?.max_sub_objectives ?? 20;
127
- const subObjectives = this.extractSubObjectives(input, maxDepth, maxSubObjectives);
128
- const treeStructure = this.buildTreeStructure(subObjectives);
129
- const dependencyGraph = this.buildDependencyGraph(subObjectives);
130
- const atomicCount = subObjectives.filter(s => s.is_atomic).length;
131
- const complexityDist = this.calculateComplexityDistribution(subObjectives);
132
- const coverageScore = this.assessCoverage(subObjectives, input);
133
- const maxDepthReached = Math.max(0, ...subObjectives.map(s => s.depth));
134
- return {
135
- decomposition_id: decompositionId,
136
- original_objective: this.summarize(input.objective),
137
- sub_objectives: subObjectives,
138
- tree_structure: treeStructure,
139
- dependency_graph: dependencyGraph,
140
- analysis: {
141
- total_sub_objectives: subObjectives.length,
142
- max_depth_reached: maxDepthReached,
143
- atomic_count: atomicCount,
144
- coverage_score: coverageScore,
145
- complexity_distribution: complexityDist,
146
- assumptions: this.extractAssumptions(input),
147
- },
148
- version: '1.0.0',
149
- };
150
- }
151
- /**
152
- * Extract sub-objectives from the objective using pattern-based analysis
153
- */
154
- extractSubObjectives(input, maxDepth, maxCount) {
155
- const objective = input.objective.toLowerCase();
156
- const subs = [];
157
- let counter = 0;
158
- const addSub = (title, description, parentId, depth, tags, complexity, isAtomic, deps = [], criteria = []) => {
159
- if (subs.length >= maxCount || depth > maxDepth)
160
- return '';
161
- const id = `sub-${++counter}`;
162
- subs.push({
163
- sub_objective_id: id,
164
- title,
165
- description,
166
- parent_id: parentId,
167
- depth,
168
- dependencies: deps,
169
- tags,
170
- complexity,
171
- is_atomic: isAtomic,
172
- acceptance_criteria: criteria,
173
- });
174
- return id;
175
- };
176
- // Top-level: understand requirements
177
- const understandId = addSub('Understand Requirements', 'Analyze and capture all requirements from the objective', null, 0, ['requirements', 'analysis'], 'simple', true, [], ['All requirements identified', 'Ambiguities documented']);
178
- // Top-level: design approach
179
- const designId = addSub('Design Approach', 'Design the solution approach and architecture', null, 0, ['design', 'architecture'], 'moderate', false, understandId ? [{ depends_on: understandId, type: 'data' }] : [], ['Architecture decisions documented', 'Approach validated']);
180
- // Conditional sub-objectives based on objective content
181
- if (this.containsAny(objective, ['build', 'create', 'implement', 'develop'])) {
182
- const implId = addSub('Implement Core Logic', 'Implement the core functionality described in the objective', null, 0, ['implementation', 'core'], 'complex', false, designId ? [{ depends_on: designId, type: 'blocking' }] : [], ['Core functionality working', 'Unit tests passing']);
183
- if (implId && maxDepth >= 1) {
184
- addSub('Set Up Project Structure', 'Create the project scaffolding and configuration', implId, 1, ['setup', 'scaffolding'], 'simple', true, [], ['Project structure created', 'Dependencies installed']);
185
- addSub('Implement Business Logic', 'Build the primary business logic components', implId, 1, ['business-logic', 'core'], 'complex', true, [], ['Business rules implemented', 'Edge cases handled']);
186
- }
187
- }
188
- if (this.containsAny(objective, ['api', 'service', 'endpoint', 'interface'])) {
189
- addSub('Define Interface Contracts', 'Specify API contracts, schemas, and interface boundaries', designId, 1, ['interfaces', 'contracts', 'api'], 'moderate', true, [], ['API contracts defined', 'Schemas validated']);
190
- }
191
- if (this.containsAny(objective, ['test', 'validate', 'verify', 'quality'])) {
192
- addSub('Establish Validation Strategy', 'Define the testing and validation approach', null, 0, ['testing', 'validation'], 'moderate', true, designId ? [{ depends_on: designId, type: 'data' }] : [], ['Test strategy defined', 'Coverage targets set']);
193
- }
194
- if (this.containsAny(objective, ['deploy', 'release', 'production', 'launch'])) {
195
- addSub('Plan Deployment', 'Define the deployment and release strategy', null, 0, ['deployment', 'release'], 'moderate', true, designId ? [{ depends_on: designId, type: 'data' }] : [], ['Deployment pipeline defined', 'Rollback plan documented']);
196
- }
197
- if (this.containsAny(objective, ['integrate', 'connect', 'migrate'])) {
198
- addSub('Plan Integration', 'Define integration points and data flow between systems', null, 0, ['integration', 'connectivity'], 'complex', false, designId ? [{ depends_on: designId, type: 'data' }] : [], ['Integration points mapped', 'Data flow documented']);
199
- }
200
- // Always add a completion/review sub-objective
201
- const allTopLevel = subs.filter(s => s.parent_id === null).map(s => s.sub_objective_id);
202
- addSub('Review and Validate Completeness', 'Ensure all sub-objectives adequately cover the original objective', null, 0, ['review', 'completeness'], 'simple', true, allTopLevel.map(id => ({ depends_on: id, type: 'data' })), ['All sub-objectives addressed', 'Coverage verified']);
203
- return subs;
204
- }
205
- /**
206
- * Build tree structure (parent -> children) from sub-objectives
207
- */
208
- buildTreeStructure(subs) {
209
- const tree = { root: [] };
210
- for (const sub of subs) {
211
- if (sub.parent_id === null) {
212
- tree.root.push(sub.sub_objective_id);
213
- }
214
- else {
215
- if (!tree[sub.parent_id]) {
216
- tree[sub.parent_id] = [];
217
- }
218
- tree[sub.parent_id].push(sub.sub_objective_id);
219
- }
220
- }
221
- return tree;
222
- }
223
- /**
224
- * Build dependency graph as adjacency list
225
- */
226
- buildDependencyGraph(subs) {
227
- const graph = {};
228
- for (const sub of subs) {
229
- graph[sub.sub_objective_id] = sub.dependencies.map(d => d.depends_on);
230
- }
231
- return graph;
232
- }
233
- /**
234
- * Calculate complexity distribution
235
- */
236
- calculateComplexityDistribution(subs) {
237
- const dist = {
238
- trivial: 0, simple: 0, moderate: 0, complex: 0, very_complex: 0,
239
- };
240
- for (const sub of subs) {
241
- dist[sub.complexity]++;
242
- }
243
- return dist;
244
- }
245
- /**
246
- * Assess how well the sub-objectives cover the original objective
247
- */
248
- assessCoverage(subs, input) {
249
- let score = 0.5; // Base coverage
250
- // More sub-objectives generally means better coverage (up to a point)
251
- if (subs.length >= 3 && subs.length <= 15)
252
- score += 0.15;
253
- if (subs.length > 15)
254
- score += 0.1;
255
- // Atomic sub-objectives are actionable
256
- const atomicRatio = subs.filter(s => s.is_atomic).length / subs.length;
257
- if (atomicRatio > 0.4)
258
- score += 0.1;
259
- // Sub-objectives with acceptance criteria
260
- const criteriaRatio = subs.filter(s => s.acceptance_criteria.length > 0).length / subs.length;
261
- score += criteriaRatio * 0.15;
262
- // Multi-depth decomposition
263
- const maxDepth = Math.max(0, ...subs.map(s => s.depth));
264
- if (maxDepth >= 1)
265
- score += 0.1;
266
- return Math.min(1.0, Math.max(0.0, score));
267
- }
268
- /**
269
- * Summarize objective for output
270
- */
271
- summarize(objective) {
272
- const cleaned = objective.trim().replace(/\s+/g, ' ');
273
- return cleaned.length > 200 ? cleaned.substring(0, 197) + '...' : cleaned;
274
- }
275
- /**
276
- * Extract assumptions made during decomposition
277
- */
278
- extractAssumptions(input) {
279
- const assumptions = [
280
- 'Objective has been validated for clarity',
281
- 'Decomposition is based on structural analysis of the objective text',
282
- ];
283
- if (!input.context?.constraints?.length) {
284
- assumptions.push('No explicit constraints provided - using default decomposition strategy');
285
- }
286
- if (!input.context?.existing_components?.length) {
287
- assumptions.push('No existing components specified - decomposing as new work');
288
- }
289
- if (!input.config?.target_granularity) {
290
- assumptions.push('Using medium granularity as default');
291
- }
292
- return assumptions;
293
- }
294
- /**
295
- * Calculate confidence score based on decomposition quality
296
- */
297
- calculateConfidence(output) {
298
- let confidence = 0.65; // Base confidence
299
- // Boost for well-structured decompositions
300
- if (output.sub_objectives.length >= 3 && output.sub_objectives.length <= 20) {
301
- confidence += 0.1;
302
- }
303
- // Boost for good coverage
304
- if (output.analysis.coverage_score >= 0.7) {
305
- confidence += 0.1;
306
- }
307
- // Boost for multi-depth decomposition
308
- if (output.analysis.max_depth_reached >= 1) {
309
- confidence += 0.05;
310
- }
311
- // Boost for atomic sub-objectives
312
- if (output.analysis.atomic_count > 0) {
313
- confidence += 0.05;
314
- }
315
- // Reduce for too many sub-objectives (potential over-decomposition)
316
- if (output.sub_objectives.length > 25) {
317
- confidence -= 0.1;
318
- }
319
- return Math.min(1.0, Math.max(0.0, confidence));
320
- }
321
- /**
322
- * Get constraints applied during decomposition
323
- */
324
- getAppliedConstraints(input) {
325
- const constraints = [
326
- 'read_only_analysis',
327
- 'no_execution',
328
- 'no_agent_assignment',
329
- 'no_resource_allocation',
330
- 'no_scheduling',
331
- 'deterministic_output',
332
- ];
333
- if (input.context?.constraints) {
334
- constraints.push(...input.context.constraints.map(c => `user_constraint:${c}`));
335
- }
336
- return constraints;
337
- }
338
- /**
339
- * Classify error for proper error code
340
- */
341
- classifyError(error) {
342
- if (error instanceof Error) {
343
- if (error.name === 'ZodError') {
344
- return contracts_1.AgentErrorCodes.VALIDATION_FAILED;
345
- }
346
- if (error.message.includes('persistence') || error.message.includes('ruvector')) {
347
- return contracts_1.AgentErrorCodes.PERSISTENCE_ERROR;
348
- }
349
- }
350
- return contracts_1.AgentErrorCodes.PROCESSING_ERROR;
351
- }
352
- /**
353
- * Helper: Check if text contains any of the keywords
354
- */
355
- containsAny(text, keywords) {
356
- return keywords.some(kw => text.includes(kw));
357
- }
358
- }
359
- exports.DecomposerAgent = DecomposerAgent;
360
- //# sourceMappingURL=decomposer-agent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decomposer-agent.js","sourceRoot":"","sources":["../../../../../services/agents/decomposer/decomposer-agent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;AAEH,+BAAoC;AACpC,4CAasB;AAItB,MAAM,QAAQ,GAAG,kBAAkB,CAAC;AACpC,MAAM,aAAa,GAAG,OAAO,CAAC;AAC9B,MAAM,aAAa,GAAG,yBAAyB,CAAC;AAEhD;;;;;GAKG;AACH,MAAa,eAAe;IACjB,QAAQ,GAAkB;QACjC,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,aAAa;QACtB,eAAe,EAAE;YACf,+BAAmB,CAAC,aAAa;YACjC,+BAAmB,CAAC,oBAAoB;SACzC;QACD,aAAa,EAAE,aAAa;QAC5B,WAAW,EAAE,8GAA8G;KAC5H,CAAC;IAEe,WAAW,CAAsB;IACjC,SAAS,CAAY;IAEtC,YAAY,WAAgC,EAAE,S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,CAAC;IAED;;OAEG;IACK,WAAW,CAAC,IAAY,EAAE,QAAkB;QAClD,OAAO,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAreD,0CAqeC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Decomposer Agent Module Exports
3
- *
4
- * Purpose: Decompose complex objectives into manageable sub-objectives
5
- * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
6
- * decision_type: objective_decomposition
7
- */
8
- export { DecomposerAgent } from './decomposer-agent';
9
- export { SubObjectiveSchema, DecomposerInputSchema, DecomposerOutputSchema, type SubObjective, type DecomposerInput, type DecomposerOutput, } from '../contracts';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /**
3
- * Decomposer Agent Module Exports
4
- *
5
- * Purpose: Decompose complex objectives into manageable sub-objectives
6
- * Classification: DECOMPOSITION, STRUCTURAL_SYNTHESIS
7
- * decision_type: objective_decomposition
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.DecomposerOutputSchema = exports.DecomposerInputSchema = exports.SubObjectiveSchema = exports.DecomposerAgent = void 0;
11
- var decomposer_agent_1 = require("./decomposer-agent");
12
- Object.defineProperty(exports, "DecomposerAgent", { enumerable: true, get: function () { return decomposer_agent_1.DecomposerAgent; } });
13
- // Re-export schemas from contracts
14
- var contracts_1 = require("../contracts");
15
- Object.defineProperty(exports, "SubObjectiveSchema", { enumerable: true, get: function () { return contracts_1.SubObjectiveSchema; } });
16
- Object.defineProperty(exports, "DecomposerInputSchema", { enumerable: true, get: function () { return contracts_1.DecomposerInputSchema; } });
17
- Object.defineProperty(exports, "DecomposerOutputSchema", { enumerable: true, get: function () { return contracts_1.DecomposerOutputSchema; } });
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../services/agents/decomposer/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AAExB,mCAAmC;AACnC,0CAOsB;AANpB,+GAAA,kBAAkB,OAAA;AAClB,kHAAA,qBAAqB,OAAA;AACrB,mHAAA,sBAAsB,OAAA"}
@@ -1,4 +0,0 @@
1
- /**
2
- * Intent Classifier Agent Module Exports
3
- */
4
- export { IntentClassifierAgent } from './intent-classifier-agent';
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /**
3
- * Intent Classifier Agent Module Exports
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IntentClassifierAgent = void 0;
7
- var intent_classifier_agent_1 = require("./intent-classifier-agent");
8
- Object.defineProperty(exports, "IntentClassifierAgent", { enumerable: true, get: function () { return intent_classifier_agent_1.IntentClassifierAgent; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../services/agents/intent-classifier/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA"}
@@ -1,123 +0,0 @@
1
- /**
2
- * Intent Classifier Agent
3
- *
4
- * Purpose: Classify user or system intent to guide downstream reasoning
5
- * Classification: INTENT_ANALYSIS
6
- * decision_type: intent_classification
7
- *
8
- * Scope:
9
- * - Classify intent type
10
- * - Detect multi-intent states
11
- * - Assign confidence scores
12
- *
13
- * CONSTITUTION COMPLIANCE:
14
- * ✓ Stateless at runtime
15
- * ✓ Emits exactly ONE DecisionEvent per invocation
16
- * ✓ Persists ONLY via ruvector-service
17
- * ✓ NEVER connects directly to databases
18
- * ✓ NEVER executes SQL
19
- * ✓ NEVER modifies runtime behavior
20
- * ✓ NEVER orchestrates other agents
21
- * ✓ NEVER enforces policy
22
- * ✓ NEVER intercepts execution paths
23
- *
24
- * Must Never:
25
- * - Trigger workflows
26
- * - Route execution
27
- * - Enforce policy
28
- */
29
- import { BaseAgent, AgentMetadata, AgentResult } from '../contracts';
30
- import { IntentClassifierInput, IntentClassifierOutput } from '../contracts/intent-classifier-schemas';
31
- import { RuvectorPersistence } from '../planner/ruvector-persistence';
32
- import { Telemetry } from '../planner/telemetry';
33
- /**
34
- * Intent Classifier Agent Implementation
35
- *
36
- * This agent analyzes text and classifies user/system intent.
37
- * It is purely analytical - it NEVER executes, routes, or enforces anything.
38
- */
39
- export declare class IntentClassifierAgent implements BaseAgent<IntentClassifierInput, IntentClassifierOutput> {
40
- readonly metadata: AgentMetadata;
41
- private readonly persistence;
42
- private readonly telemetry;
43
- constructor(persistence: RuvectorPersistence, telemetry: Telemetry);
44
- /**
45
- * Validate input against IntentClassifierInputSchema
46
- */
47
- validateInput(input: unknown): IntentClassifierInput;
48
- /**
49
- * Invoke the intent classifier agent
50
- *
51
- * DETERMINISTIC: Same input always produces same output structure
52
- * STATELESS: No internal state modified
53
- * NON-BLOCKING: Fully async
54
- */
55
- invoke(input: IntentClassifierInput, executionRef: string): Promise<AgentResult>;
56
- /**
57
- * Classify intent from input text
58
- *
59
- * This is the core classification logic - purely analytical.
60
- * NEVER triggers workflows, routes execution, or enforces policy.
61
- */
62
- private classifyIntent;
63
- /**
64
- * Normalize text for analysis
65
- */
66
- private normalizeText;
67
- /**
68
- * Detect all potential intents from normalized text
69
- */
70
- private detectIntents;
71
- /**
72
- * Extract target from text based on intent
73
- */
74
- private extractTarget;
75
- /**
76
- * Extract action from text based on intent
77
- */
78
- private extractAction;
79
- /**
80
- * Extract scope from input context
81
- */
82
- private extractScope;
83
- /**
84
- * Apply hints to filter intents
85
- */
86
- private applyHints;
87
- /**
88
- * Create unknown intent fallback
89
- */
90
- private createUnknownIntent;
91
- /**
92
- * Analyze multi-intent state
93
- */
94
- private analyzeMultiIntentState;
95
- /**
96
- * Detect relationship between intents
97
- */
98
- private detectIntentRelationship;
99
- /**
100
- * Detect ambiguity in classification
101
- */
102
- private detectAmbiguity;
103
- /**
104
- * Detect language of input
105
- */
106
- private detectLanguage;
107
- /**
108
- * Generate analysis notes
109
- */
110
- private generateNotes;
111
- /**
112
- * Calculate overall confidence
113
- */
114
- private calculateOverallConfidence;
115
- /**
116
- * Get constraints applied during classification
117
- */
118
- private getAppliedConstraints;
119
- /**
120
- * Classify error for proper error code
121
- */
122
- private classifyError;
123
- }