@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,49 +0,0 @@
1
- /**
2
- * RuVector Persistence Layer
3
- *
4
- * Per Constitution: Agents persist ONLY via ruvector-service.
5
- * NEVER connect directly to Google SQL.
6
- * NEVER execute SQL.
7
- */
8
- import { DecisionEvent } from '../contracts';
9
- export interface RuvectorConfig {
10
- endpoint: string;
11
- apiKey?: string;
12
- namespace: string;
13
- timeout?: number;
14
- }
15
- /**
16
- * RuVector Persistence Service
17
- *
18
- * Handles all persistence operations through the ruvector-service.
19
- * This is the ONLY allowed persistence mechanism per constitution.
20
- */
21
- export declare class RuvectorPersistence {
22
- private readonly config;
23
- constructor(config: RuvectorConfig);
24
- /**
25
- * Store a DecisionEvent in ruvector
26
- */
27
- store(event: DecisionEvent): Promise<{
28
- id: string;
29
- stored: boolean;
30
- }>;
31
- /**
32
- * Retrieve a DecisionEvent by execution reference
33
- */
34
- retrieve(executionRef: string): Promise<DecisionEvent | null>;
35
- /**
36
- * Search for DecisionEvents by agent and decision type
37
- */
38
- search(params: {
39
- agentId?: string;
40
- decisionType?: string;
41
- fromTimestamp?: string;
42
- toTimestamp?: string;
43
- limit?: number;
44
- }): Promise<DecisionEvent[]>;
45
- }
46
- /**
47
- * Create RuVector persistence from environment
48
- */
49
- export declare function createRuvectorFromEnv(): RuvectorPersistence;
@@ -1,125 +0,0 @@
1
- "use strict";
2
- /**
3
- * RuVector Persistence Layer
4
- *
5
- * Per Constitution: Agents persist ONLY via ruvector-service.
6
- * NEVER connect directly to Google SQL.
7
- * NEVER execute SQL.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.RuvectorPersistence = void 0;
11
- exports.createRuvectorFromEnv = createRuvectorFromEnv;
12
- /**
13
- * RuVector Persistence Service
14
- *
15
- * Handles all persistence operations through the ruvector-service.
16
- * This is the ONLY allowed persistence mechanism per constitution.
17
- */
18
- class RuvectorPersistence {
19
- config;
20
- constructor(config) {
21
- this.config = {
22
- timeout: 30000,
23
- ...config,
24
- };
25
- }
26
- /**
27
- * Store a DecisionEvent in ruvector
28
- */
29
- async store(event) {
30
- const url = `${this.config.endpoint}/api/v1/events`;
31
- const response = await fetch(url, {
32
- method: 'POST',
33
- headers: {
34
- 'Content-Type': 'application/json',
35
- ...(this.config.apiKey && { 'Authorization': `Bearer ${this.config.apiKey}` }),
36
- 'X-Namespace': this.config.namespace,
37
- },
38
- body: JSON.stringify({
39
- event_type: `agent.${event.decision_type}`,
40
- agent_id: event.agent_id,
41
- agent_version: event.agent_version,
42
- payload: event,
43
- timestamp: event.timestamp,
44
- }),
45
- signal: AbortSignal.timeout(this.config.timeout),
46
- });
47
- if (!response.ok) {
48
- throw new Error(`RuVector persistence failed: ${response.status} ${response.statusText}`);
49
- }
50
- const result = await response.json();
51
- return {
52
- id: result.id || event.execution_ref,
53
- stored: true,
54
- };
55
- }
56
- /**
57
- * Retrieve a DecisionEvent by execution reference
58
- */
59
- async retrieve(executionRef) {
60
- const url = `${this.config.endpoint}/api/v1/events/${executionRef}`;
61
- const response = await fetch(url, {
62
- method: 'GET',
63
- headers: {
64
- 'Content-Type': 'application/json',
65
- ...(this.config.apiKey && { 'Authorization': `Bearer ${this.config.apiKey}` }),
66
- 'X-Namespace': this.config.namespace,
67
- },
68
- signal: AbortSignal.timeout(this.config.timeout),
69
- });
70
- if (response.status === 404) {
71
- return null;
72
- }
73
- if (!response.ok) {
74
- throw new Error(`RuVector retrieval failed: ${response.status} ${response.statusText}`);
75
- }
76
- const result = await response.json();
77
- return result.payload;
78
- }
79
- /**
80
- * Search for DecisionEvents by agent and decision type
81
- */
82
- async search(params) {
83
- const queryParams = new URLSearchParams();
84
- if (params.agentId)
85
- queryParams.set('agent_id', params.agentId);
86
- if (params.decisionType)
87
- queryParams.set('decision_type', params.decisionType);
88
- if (params.fromTimestamp)
89
- queryParams.set('from', params.fromTimestamp);
90
- if (params.toTimestamp)
91
- queryParams.set('to', params.toTimestamp);
92
- if (params.limit)
93
- queryParams.set('limit', params.limit.toString());
94
- const url = `${this.config.endpoint}/api/v1/events?${queryParams.toString()}`;
95
- const response = await fetch(url, {
96
- method: 'GET',
97
- headers: {
98
- 'Content-Type': 'application/json',
99
- ...(this.config.apiKey && { 'Authorization': `Bearer ${this.config.apiKey}` }),
100
- 'X-Namespace': this.config.namespace,
101
- },
102
- signal: AbortSignal.timeout(this.config.timeout),
103
- });
104
- if (!response.ok) {
105
- throw new Error(`RuVector search failed: ${response.status} ${response.statusText}`);
106
- }
107
- const result = await response.json();
108
- return (result.events || []).map((e) => e.payload);
109
- }
110
- }
111
- exports.RuvectorPersistence = RuvectorPersistence;
112
- /**
113
- * Create RuVector persistence from environment
114
- */
115
- function createRuvectorFromEnv() {
116
- const endpoint = process.env.RUVECTOR_ENDPOINT || 'http://localhost:8081';
117
- const apiKey = process.env.RUVECTOR_API_KEY;
118
- const namespace = process.env.RUVECTOR_NAMESPACE || 'agents';
119
- return new RuvectorPersistence({
120
- endpoint,
121
- apiKey,
122
- namespace,
123
- });
124
- }
125
- //# sourceMappingURL=ruvector-persistence.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ruvector-persistence.js","sourceRoot":"","sources":["../../../../../services/agents/planner/ruvector-persistence.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkIH,sDAUC;AAjID;;;;;GAKG;AACH,MAAa,mBAAmB;IACb,MAAM,CAAiB;IAExC,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG;YACZ,OAAO,EAAE,KAAK;YACd,GAAG,MAAM;SACV,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK,CAAC,KAAoB;QAC9B,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,gBAAgB,CAAC;QAEpD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;YAChC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,GAAG,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* Per Constitution: All agents MUST emit telemetry compatible with LLM-Observatory.
5
- */
6
- export interface TelemetryConfig {
7
- endpoint?: string;
8
- serviceName: string;
9
- serviceVersion: string;
10
- enabled: boolean;
11
- }
12
- export interface TelemetrySpan {
13
- traceId: string;
14
- spanId: string;
15
- parentSpanId?: string;
16
- name: string;
17
- startTime: number;
18
- endTime?: number;
19
- status: 'ok' | 'error';
20
- attributes: Record<string, string | number | boolean>;
21
- }
22
- /**
23
- * Telemetry Service for LLM-Observatory compatibility
24
- */
25
- export declare class Telemetry {
26
- private readonly config;
27
- private spans;
28
- constructor(config: TelemetryConfig);
29
- /**
30
- * Record agent invocation start
31
- */
32
- recordStart(agentId: string, executionRef: string, input: unknown): void;
33
- /**
34
- * Record successful completion
35
- */
36
- recordSuccess(agentId: string, executionRef: string, durationMs: number): void;
37
- /**
38
- * Record failure
39
- */
40
- recordFailure(agentId: string, executionRef: string, errorCode: string, errorMessage: string): void;
41
- /**
42
- * Emit a custom event
43
- */
44
- emitEvent(eventType: string, data: Record<string, unknown>): void;
45
- /**
46
- * Find span by execution ref
47
- */
48
- private findSpan;
49
- /**
50
- * Generate span ID
51
- */
52
- private generateSpanId;
53
- /**
54
- * Hash input for telemetry (no sensitive data)
55
- */
56
- private hashInput;
57
- /**
58
- * Emit span to observatory
59
- */
60
- private emitSpan;
61
- /**
62
- * Emit metric to observatory
63
- */
64
- private emitMetric;
65
- /**
66
- * Send data to LLM-Observatory endpoint
67
- */
68
- private sendToObservatory;
69
- }
70
- /**
71
- * Create telemetry from environment
72
- */
73
- export declare function createTelemetryFromEnv(): Telemetry;
@@ -1,192 +0,0 @@
1
- "use strict";
2
- /**
3
- * Telemetry for LLM-Observatory
4
- *
5
- * Per Constitution: All agents MUST emit telemetry compatible with LLM-Observatory.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Telemetry = void 0;
9
- exports.createTelemetryFromEnv = createTelemetryFromEnv;
10
- /**
11
- * Telemetry Service for LLM-Observatory compatibility
12
- */
13
- class Telemetry {
14
- config;
15
- spans = [];
16
- constructor(config) {
17
- this.config = config;
18
- }
19
- /**
20
- * Record agent invocation start
21
- */
22
- recordStart(agentId, executionRef, input) {
23
- if (!this.config.enabled)
24
- return;
25
- const span = {
26
- traceId: executionRef,
27
- spanId: this.generateSpanId(),
28
- name: `agent.${agentId}.invoke`,
29
- startTime: Date.now(),
30
- status: 'ok',
31
- attributes: {
32
- 'agent.id': agentId,
33
- 'agent.version': this.config.serviceVersion,
34
- 'service.name': this.config.serviceName,
35
- 'execution.ref': executionRef,
36
- 'input.hash': this.hashInput(input),
37
- },
38
- };
39
- this.spans.push(span);
40
- this.emitSpan(span, 'start');
41
- }
42
- /**
43
- * Record successful completion
44
- */
45
- recordSuccess(agentId, executionRef, durationMs) {
46
- if (!this.config.enabled)
47
- return;
48
- const span = this.findSpan(executionRef);
49
- if (span) {
50
- span.endTime = Date.now();
51
- span.status = 'ok';
52
- span.attributes['duration.ms'] = durationMs;
53
- this.emitSpan(span, 'end');
54
- }
55
- this.emitMetric({
56
- name: 'agent.invocation.duration',
57
- value: durationMs,
58
- unit: 'ms',
59
- tags: {
60
- agent_id: agentId,
61
- status: 'success',
62
- },
63
- });
64
- this.emitMetric({
65
- name: 'agent.invocation.count',
66
- value: 1,
67
- unit: 'count',
68
- tags: {
69
- agent_id: agentId,
70
- status: 'success',
71
- },
72
- });
73
- }
74
- /**
75
- * Record failure
76
- */
77
- recordFailure(agentId, executionRef, errorCode, errorMessage) {
78
- if (!this.config.enabled)
79
- return;
80
- const span = this.findSpan(executionRef);
81
- if (span) {
82
- span.endTime = Date.now();
83
- span.status = 'error';
84
- span.attributes['error.code'] = errorCode;
85
- span.attributes['error.message'] = errorMessage.substring(0, 256);
86
- this.emitSpan(span, 'end');
87
- }
88
- this.emitMetric({
89
- name: 'agent.invocation.count',
90
- value: 1,
91
- unit: 'count',
92
- tags: {
93
- agent_id: agentId,
94
- status: 'error',
95
- error_code: errorCode,
96
- },
97
- });
98
- }
99
- /**
100
- * Emit a custom event
101
- */
102
- emitEvent(eventType, data) {
103
- if (!this.config.enabled)
104
- return;
105
- const event = {
106
- type: eventType,
107
- timestamp: new Date().toISOString(),
108
- service: this.config.serviceName,
109
- version: this.config.serviceVersion,
110
- data,
111
- };
112
- this.sendToObservatory('events', event);
113
- }
114
- /**
115
- * Find span by execution ref
116
- */
117
- findSpan(executionRef) {
118
- return this.spans.find(s => s.traceId === executionRef);
119
- }
120
- /**
121
- * Generate span ID
122
- */
123
- generateSpanId() {
124
- return Array.from({ length: 16 }, () => Math.floor(Math.random() * 16).toString(16)).join('');
125
- }
126
- /**
127
- * Hash input for telemetry (no sensitive data)
128
- */
129
- hashInput(input) {
130
- const str = JSON.stringify(input);
131
- let hash = 0;
132
- for (let i = 0; i < str.length; i++) {
133
- const char = str.charCodeAt(i);
134
- hash = ((hash << 5) - hash) + char;
135
- hash = hash & hash;
136
- }
137
- return Math.abs(hash).toString(16);
138
- }
139
- /**
140
- * Emit span to observatory
141
- */
142
- emitSpan(span, phase) {
143
- this.sendToObservatory('spans', { ...span, phase });
144
- }
145
- /**
146
- * Emit metric to observatory
147
- */
148
- emitMetric(metric) {
149
- this.sendToObservatory('metrics', {
150
- ...metric,
151
- timestamp: new Date().toISOString(),
152
- });
153
- }
154
- /**
155
- * Send data to LLM-Observatory endpoint
156
- */
157
- async sendToObservatory(type, data) {
158
- if (!this.config.endpoint) {
159
- // Log to console if no endpoint configured
160
- console.log(`[TELEMETRY:${type}]`, JSON.stringify(data));
161
- return;
162
- }
163
- try {
164
- await fetch(`${this.config.endpoint}/api/v1/${type}`, {
165
- method: 'POST',
166
- headers: {
167
- 'Content-Type': 'application/json',
168
- 'X-Service-Name': this.config.serviceName,
169
- 'X-Service-Version': this.config.serviceVersion,
170
- },
171
- body: JSON.stringify(data),
172
- });
173
- }
174
- catch {
175
- // Telemetry failures should not break agent operation
176
- console.error(`Telemetry send failed for ${type}`);
177
- }
178
- }
179
- }
180
- exports.Telemetry = Telemetry;
181
- /**
182
- * Create telemetry from environment
183
- */
184
- function createTelemetryFromEnv() {
185
- return new Telemetry({
186
- endpoint: process.env.LLM_OBSERVATORY_ENDPOINT,
187
- serviceName: 'planner-agent',
188
- serviceVersion: '1.0.0',
189
- enabled: process.env.TELEMETRY_ENABLED !== 'false',
190
- });
191
- }
192
- //# sourceMappingURL=telemetry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../services/agents/planner/telemetry.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAiOH,wDAOC;AApND;;GAEG;AACH,MAAa,SAAS;IACH,MAAM,CAAkB;IACjC,KAAK,GAAoB,EAAE,CAAC;IAEpC,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,OAAe,EAAE,YAAoB,EAAE,KAAc;QAC/D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,OAAO;QAEjC,MAAM,IAAI,GAAkB;YAC1B,OAAO,EAAE,YAAY;YACrB,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE;YAC7B,IAAI,EAAE,SAAS,OAAO,SAAS;YAC/B,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE;gBACV,UAAU,EAAE,OAAO;gBACnB,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc;gBAC3C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;gBACvC,eAAe,EAAE,YAAY;gBAC7B,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;aACpC;SACF,CAAC;QAEF,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,aAAa,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AQ,WAAW,IAAI,EAAE,EAAE;gBACpD,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;oBACzC,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc;iBAChD;gBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CAAC,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACP,sDAAsD;YACtD,OAAO,CAAC,KAAK,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AArMD,8BAqMC;AAED;;GAEG;AACH,SAAgB,sBAAsB;IACpC,OAAO,IAAI,SAAS,CAAC;QACnB,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;QAC9C,WAAW,EAAE,eAAe;QAC5B,cAAc,EAAE,OAAO;QACvB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,OAAO;KACnD,CAAC,CAAC;AACL,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Reflection Agent Module Exports
3
- *
4
- * Purpose: Analyze DecisionEvents to extract learning and quality signals
5
- * Classification: POST_EXECUTION_ANALYSIS, QUALITY_ASSESSMENT
6
- * decision_type: reflection_analysis
7
- */
8
- export { ReflectionAgent } from './reflection-agent';
9
- export { RuvectorPersistence, createRuvectorFromEnv } from './ruvector-persistence';
10
- export { Telemetry, createTelemetryFromEnv } from './telemetry';
11
- export { ReflectionInputSchema, ReflectionOutputSchema, QualitySignalSchema, LearningSignalSchema, GapAnalysisSchema, OutcomeEvaluationSchema, type ReflectionInput, type ReflectionOutput, type QualitySignal, type LearningSignal, type GapAnalysis, type OutcomeEvaluation, } from '../contracts';
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /**
3
- * Reflection Agent Module Exports
4
- *
5
- * Purpose: Analyze DecisionEvents to extract learning and quality signals
6
- * Classification: POST_EXECUTION_ANALYSIS, QUALITY_ASSESSMENT
7
- * decision_type: reflection_analysis
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.OutcomeEvaluationSchema = exports.GapAnalysisSchema = exports.LearningSignalSchema = exports.QualitySignalSchema = exports.ReflectionOutputSchema = exports.ReflectionInputSchema = exports.createTelemetryFromEnv = exports.Telemetry = exports.createRuvectorFromEnv = exports.RuvectorPersistence = exports.ReflectionAgent = void 0;
11
- var reflection_agent_1 = require("./reflection-agent");
12
- Object.defineProperty(exports, "ReflectionAgent", { enumerable: true, get: function () { return reflection_agent_1.ReflectionAgent; } });
13
- var ruvector_persistence_1 = require("./ruvector-persistence");
14
- Object.defineProperty(exports, "RuvectorPersistence", { enumerable: true, get: function () { return ruvector_persistence_1.RuvectorPersistence; } });
15
- Object.defineProperty(exports, "createRuvectorFromEnv", { enumerable: true, get: function () { return ruvector_persistence_1.createRuvectorFromEnv; } });
16
- var telemetry_1 = require("./telemetry");
17
- Object.defineProperty(exports, "Telemetry", { enumerable: true, get: function () { return telemetry_1.Telemetry; } });
18
- Object.defineProperty(exports, "createTelemetryFromEnv", { enumerable: true, get: function () { return telemetry_1.createTelemetryFromEnv; } });
19
- // Re-export schemas from contracts
20
- var contracts_1 = require("../contracts");
21
- Object.defineProperty(exports, "ReflectionInputSchema", { enumerable: true, get: function () { return contracts_1.ReflectionInputSchema; } });
22
- Object.defineProperty(exports, "ReflectionOutputSchema", { enumerable: true, get: function () { return contracts_1.ReflectionOutputSchema; } });
23
- Object.defineProperty(exports, "QualitySignalSchema", { enumerable: true, get: function () { return contracts_1.QualitySignalSchema; } });
24
- Object.defineProperty(exports, "LearningSignalSchema", { enumerable: true, get: function () { return contracts_1.LearningSignalSchema; } });
25
- Object.defineProperty(exports, "GapAnalysisSchema", { enumerable: true, get: function () { return contracts_1.GapAnalysisSchema; } });
26
- Object.defineProperty(exports, "OutcomeEvaluationSchema", { enumerable: true, get: function () { return contracts_1.OutcomeEvaluationSchema; } });
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../services/agents/reflection/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,+DAAoF;AAA3E,2HAAA,mBAAmB,OAAA;AAAE,6HAAA,qBAAqB,OAAA;AACnD,yCAAgE;AAAvD,sGAAA,SAAS,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAE1C,mCAAmC;AACnC,0CAasB;AAZpB,kHAAA,qBAAqB,OAAA;AACrB,mHAAA,sBAAsB,OAAA;AACtB,gHAAA,mBAAmB,OAAA;AACnB,iHAAA,oBAAoB,OAAA;AACpB,8GAAA,iBAAiB,OAAA;AACjB,oHAAA,uBAAuB,OAAA"}
@@ -1,122 +0,0 @@
1
- /**
2
- * Reflection Agent
3
- *
4
- * Purpose: Analyze DecisionEvents to extract learning and quality signals
5
- * Classification: POST_EXECUTION_ANALYSIS, QUALITY_ASSESSMENT
6
- * decision_type: reflection_analysis
7
- *
8
- * Scope:
9
- * - Evaluate outcomes
10
- * - Identify gaps and inefficiencies
11
- * - Produce improvement insights
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
- * - Modify behavior
26
- * - Trigger retries
27
- * - Apply optimizations
28
- */
29
- import { BaseAgent, AgentMetadata, AgentResult, ReflectionInput, ReflectionOutput } from '../contracts';
30
- import { RuvectorPersistence } from './ruvector-persistence';
31
- import { Telemetry } from './telemetry';
32
- /**
33
- * Reflection Agent Implementation
34
- *
35
- * This agent analyzes DecisionEvents and produces quality/learning signals.
36
- * It is purely analytical - it NEVER modifies behavior, triggers retries, or applies optimizations.
37
- */
38
- export declare class ReflectionAgent implements BaseAgent<ReflectionInput, ReflectionOutput> {
39
- readonly metadata: AgentMetadata;
40
- private readonly persistence;
41
- private readonly telemetry;
42
- constructor(persistence: RuvectorPersistence, telemetry: Telemetry);
43
- /**
44
- * Validate input against ReflectionInputSchema
45
- */
46
- validateInput(input: unknown): ReflectionInput;
47
- /**
48
- * Invoke the reflection agent
49
- *
50
- * DETERMINISTIC: Same input always produces same output structure
51
- * STATELESS: No internal state modified
52
- * NON-BLOCKING: Fully async
53
- */
54
- invoke(input: ReflectionInput, executionRef: string): Promise<AgentResult>;
55
- /**
56
- * Analyze DecisionEvents and produce reflection output
57
- *
58
- * This is the core reflection logic - purely analytical.
59
- * NEVER modifies behavior, triggers retries, or applies optimizations.
60
- */
61
- private analyzeDecisionEvents;
62
- /**
63
- * Evaluate outcomes for each decision event
64
- */
65
- private evaluateOutcomes;
66
- /**
67
- * Assess quality dimensions for a decision event
68
- */
69
- private assessDimensions;
70
- /**
71
- * Assess quality of event outputs
72
- */
73
- private assessOutputQuality;
74
- /**
75
- * Generate outcome summary
76
- */
77
- private generateOutcomeSummary;
78
- /**
79
- * Generate deviation notes
80
- */
81
- private generateDeviationNotes;
82
- /**
83
- * Extract quality signals from events
84
- */
85
- private extractQualitySignals;
86
- /**
87
- * Extract learning signals from events
88
- */
89
- private extractLearningSignals;
90
- /**
91
- * Analyze constraint usage patterns
92
- */
93
- private analyzeConstraintPatterns;
94
- /**
95
- * Detect outlier events
96
- */
97
- private detectOutliers;
98
- /**
99
- * Identify gaps in the analyzed events
100
- */
101
- private identifyGaps;
102
- /**
103
- * Find correlations between events
104
- */
105
- private findCorrelations;
106
- /**
107
- * Generate summary statistics
108
- */
109
- private generateSummary;
110
- /**
111
- * Calculate confidence score for reflection analysis
112
- */
113
- private calculateConfidence;
114
- /**
115
- * Get constraints applied during reflection
116
- */
117
- private getAppliedConstraints;
118
- /**
119
- * Classify error for proper error code
120
- */
121
- private classifyError;
122
- }