claude-flow-novice 1.6.4 → 1.6.5

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 (269) hide show
  1. package/.claude/commands/parse-epic.js +180 -0
  2. package/.claude/settings.local.json +2 -1
  3. package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +37 -2
  4. package/.claude-flow-novice/dist/mcp/transports/base.js +5 -0
  5. package/.claude-flow-novice/dist/mcp/transports/base.js.map +1 -0
  6. package/.claude-flow-novice/dist/mcp/transports/http.js +414 -0
  7. package/.claude-flow-novice/dist/mcp/transports/http.js.map +1 -0
  8. package/.claude-flow-novice/dist/mcp/transports/stdio.js +217 -0
  9. package/.claude-flow-novice/dist/mcp/transports/stdio.js.map +1 -0
  10. package/.claude-flow-novice/dist/src/cli/commands/parse-epic.js +129 -0
  11. package/.claude-flow-novice/dist/src/cli/commands/parse-epic.js.map +1 -0
  12. package/.claude-flow-novice/dist/src/cli/index.js +3 -0
  13. package/.claude-flow-novice/dist/src/cli/index.js.map +1 -1
  14. package/.claude-flow-novice/dist/src/cli/utils/epic-parser.js +266 -0
  15. package/.claude-flow-novice/dist/src/cli/utils/epic-parser.js.map +1 -0
  16. package/.claude-flow-novice/dist/src/communication/message-bus.js +105 -2
  17. package/.claude-flow-novice/dist/src/communication/message-bus.js.map +1 -1
  18. package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js +1 -1
  19. package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js.map +1 -1
  20. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/artifact-cache-optimizer.js +632 -0
  21. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/artifact-cache-optimizer.js.map +1 -0
  22. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/index.js +11 -0
  23. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/cache/index.js.map +1 -0
  24. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/checkpoints/checkpoint-compressor.js +318 -0
  25. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/checkpoints/checkpoint-compressor.js.map +1 -0
  26. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/completion-detector.js +234 -0
  27. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/completion-detector.js.map +1 -0
  28. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/hierarchical-detector.js +347 -0
  29. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/hierarchical-detector.js.map +1 -0
  30. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/index.js +13 -0
  31. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/index.js.map +1 -0
  32. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/lamport-clock.js +173 -0
  33. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/lamport-clock.js.map +1 -0
  34. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/mesh-detector.js +526 -0
  35. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/mesh-detector.js.map +1 -0
  36. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/sdk-completion-detector.js +443 -0
  37. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/sdk-completion-detector.js.map +1 -0
  38. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/swarm-shutdown.js +366 -0
  39. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/completion/swarm-shutdown.js.map +1 -0
  40. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinator-factory.js +287 -0
  41. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinator-factory.js.map +1 -0
  42. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.example.js +364 -0
  43. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.example.js.map +1 -0
  44. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.js +492 -0
  45. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/cascading-shutdown.js.map +1 -0
  46. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/hierarchical-coordinator.js +786 -0
  47. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/hierarchical-coordinator.js.map +1 -0
  48. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/index.js +16 -0
  49. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/index.js.map +1 -0
  50. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/parent-child-manager.js +342 -0
  51. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/parent-child-manager.js.map +1 -0
  52. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/swarm-coordinator-v2.js +601 -0
  53. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/coordinators/swarm-coordinator-v2.js.map +1 -0
  54. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/agent-state.js +9 -0
  55. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/agent-state.js.map +1 -0
  56. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dead-letter-queue.js +413 -0
  57. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dead-letter-queue.js.map +1 -0
  58. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-graph.js +471 -0
  59. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-graph.js.map +1 -0
  60. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-node.js +379 -0
  61. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-node.js.map +1 -0
  62. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-resolver.js +335 -0
  63. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/dependency-resolver.js.map +1 -0
  64. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/help-request-metrics.js +211 -0
  65. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/help-request-metrics.js.map +1 -0
  66. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/index.js +33 -0
  67. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/index.js.map +1 -0
  68. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-broker.js +920 -0
  69. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-broker.js.map +1 -0
  70. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-router.js +385 -0
  71. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message-router.js.map +1 -0
  72. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message.js +138 -0
  73. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/message.js.map +1 -0
  74. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/resource-manager-safe.js +478 -0
  75. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/resource-manager-safe.js.map +1 -0
  76. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine-config.js +358 -0
  77. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine-config.js.map +1 -0
  78. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine.js +588 -0
  79. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-machine.js.map +1 -0
  80. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-transition.js +153 -0
  81. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/state-transition.js.map +1 -0
  82. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/task-scheduler.js +360 -0
  83. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/task-scheduler.js.map +1 -0
  84. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/topic-manager.js +337 -0
  85. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/core/topic-manager.js.map +1 -0
  86. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/deadlock-detector.js +424 -0
  87. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/deadlock-detector.js.map +1 -0
  88. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/index.js +9 -0
  89. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/index.js.map +1 -0
  90. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/resource-manager.js +669 -0
  91. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/deadlock/resource-manager.js.map +1 -0
  92. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/artifact-storage.js +451 -0
  93. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/artifact-storage.js.map +1 -0
  94. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/cycle-detector.js +271 -0
  95. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/cycle-detector.js.map +1 -0
  96. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-graph.js +335 -0
  97. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-graph.js.map +1 -0
  98. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-manager.js +439 -0
  99. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-manager.js.map +1 -0
  100. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-request.js +92 -0
  101. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/dependency-request.js.map +1 -0
  102. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/index.js +21 -0
  103. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/index.js.map +1 -0
  104. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/topological-sort.js +223 -0
  105. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/dependency/topological-sort.js.map +1 -0
  106. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-coordinator.js +436 -0
  107. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-coordinator.js.map +1 -0
  108. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-matcher.js +278 -0
  109. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-matcher.js.map +1 -0
  110. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request-handler.js +317 -0
  111. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request-handler.js.map +1 -0
  112. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request.js +273 -0
  113. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/help-request.js.map +1 -0
  114. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/index.js +15 -0
  115. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/index.js.map +1 -0
  116. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/waiting-agent-pool.js +512 -0
  117. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/help-system/waiting-agent-pool.js.map +1 -0
  118. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/index.js +67 -0
  119. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/index.js.map +1 -0
  120. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/help-deadlock-integration.js +557 -0
  121. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/help-deadlock-integration.js.map +1 -0
  122. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/index.js +14 -0
  123. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/index.js.map +1 -0
  124. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.example.js +212 -0
  125. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.example.js.map +1 -0
  126. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.js +552 -0
  127. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/message-bus-completion-integration.js.map +1 -0
  128. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/state-machine-integration.js +635 -0
  129. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/integration/state-machine-integration.js.map +1 -0
  130. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/IArtifactStorage.js +28 -0
  131. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/IArtifactStorage.js.map +1 -0
  132. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ICoordinator.js +9 -0
  133. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ICoordinator.js.map +1 -0
  134. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ISessionStore.js +25 -0
  135. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/ISessionStore.js.map +1 -0
  136. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/index.js +14 -0
  137. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/interfaces/index.js.map +1 -0
  138. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/artifact-adapter.js +308 -0
  139. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/artifact-adapter.js.map +1 -0
  140. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/completion-storage.js +439 -0
  141. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/completion-storage.js.map +1 -0
  142. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-graph-storage.js +540 -0
  143. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-graph-storage.js.map +1 -0
  144. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-storage.js +367 -0
  145. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/dependency-storage.js.map +1 -0
  146. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/index.js +14 -0
  147. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/index.js.map +1 -0
  148. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/message-storage.js +518 -0
  149. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/message-storage.js.map +1 -0
  150. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/state-storage.js +377 -0
  151. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/memory/state-storage.js.map +1 -0
  152. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channel.js +371 -0
  153. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channel.js.map +1 -0
  154. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/dependency-channel.js +355 -0
  155. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/dependency-channel.js.map +1 -0
  156. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/help-channel.js +424 -0
  157. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/help-channel.js.map +1 -0
  158. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/index.js +16 -0
  159. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/index.js.map +1 -0
  160. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/state-channel.js +295 -0
  161. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/state-channel.js.map +1 -0
  162. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/task-channel.js +411 -0
  163. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/channels/task-channel.js.map +1 -0
  164. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/index.js +14 -0
  165. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/index.js.map +1 -0
  166. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-bus.js +387 -0
  167. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-bus.js.map +1 -0
  168. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-persistence.js +589 -0
  169. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-persistence.js.map +1 -0
  170. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-router.js +444 -0
  171. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/messaging/message-router.js.map +1 -0
  172. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/artifact-storage.js +560 -0
  173. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/artifact-storage.js.map +1 -0
  174. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/background-orchestrator.js +335 -0
  175. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/background-orchestrator.js.map +1 -0
  176. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/bash-output-monitor.js +104 -0
  177. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/bash-output-monitor.js.map +1 -0
  178. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/checkpoint-manager.js +847 -0
  179. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/checkpoint-manager.js.map +1 -0
  180. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/help-coordinator.js +470 -0
  181. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/help-coordinator.js.map +1 -0
  182. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/hierarchical-background-integration.js +450 -0
  183. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/hierarchical-background-integration.js.map +1 -0
  184. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/index.js +13 -0
  185. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/index.js.map +1 -0
  186. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/message-bus-integration.js +625 -0
  187. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/message-bus-integration.js.map +1 -0
  188. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/multi-level-control.js +545 -0
  189. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/multi-level-control.js.map +1 -0
  190. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-controller.js +740 -0
  191. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-controller.js.map +1 -0
  192. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-message-integration.js +415 -0
  193. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/query-message-integration.js.map +1 -0
  194. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/session-pool-optimizer.js +615 -0
  195. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/session-pool-optimizer.js.map +1 -0
  196. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-machine-integration.js +547 -0
  197. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-machine-integration.js.map +1 -0
  198. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-sdk-integration.js +342 -0
  199. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/sdk/state-sdk-integration.js.map +1 -0
  200. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/security/payload-validator.js +259 -0
  201. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/security/payload-validator.js.map +1 -0
  202. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/framework-registry.js +273 -0
  203. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/framework-registry.js.map +1 -0
  204. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/index.js +8 -0
  205. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/index.js.map +1 -0
  206. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-config-manager.js +310 -0
  207. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-config-manager.js.map +1 -0
  208. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-validator.js +218 -0
  209. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/truth/truth-validator.js.map +1 -0
  210. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/types/sdk.js +9 -0
  211. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/types/sdk.js.map +1 -0
  212. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/index.js +6 -0
  213. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/index.js.map +1 -0
  214. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/priority-queue.js +145 -0
  215. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/priority-queue.js.map +1 -0
  216. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/sdk-helpers.js +122 -0
  217. package/.claude-flow-novice/dist/src/coordination/archives/v2-sdk-typescript/v2/utils/sdk-helpers.js.map +1 -0
  218. package/.claude-flow-novice/dist/src/coordination/config-translator.js +17 -43
  219. package/.claude-flow-novice/dist/src/coordination/config-translator.js.map +1 -1
  220. package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js +34 -76
  221. package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js.map +1 -1
  222. package/.claude-flow-novice/dist/src/coordination/shared/core/agent-state.js +172 -0
  223. package/.claude-flow-novice/dist/src/coordination/shared/core/agent-state.js.map +1 -0
  224. package/.claude-flow-novice/dist/src/coordination/shared/core/index.js +7 -0
  225. package/.claude-flow-novice/dist/src/coordination/shared/core/index.js.map +1 -0
  226. package/.claude-flow-novice/dist/src/coordination/shared/index.js +19 -0
  227. package/.claude-flow-novice/dist/src/coordination/shared/index.js.map +1 -0
  228. package/.claude-flow-novice/dist/src/coordination/shared/interfaces/ICoordinator.js +24 -0
  229. package/.claude-flow-novice/dist/src/coordination/shared/interfaces/ICoordinator.js.map +1 -0
  230. package/.claude-flow-novice/dist/src/coordination/shared/interfaces/index.js +7 -0
  231. package/.claude-flow-novice/dist/src/coordination/shared/interfaces/index.js.map +1 -0
  232. package/.claude-flow-novice/dist/src/coordination/shared/message-broker.js +920 -0
  233. package/.claude-flow-novice/dist/src/coordination/shared/message-broker.js.map +1 -0
  234. package/.claude-flow-novice/dist/src/coordination/shared/message.js +138 -0
  235. package/.claude-flow-novice/dist/src/coordination/shared/message.js.map +1 -0
  236. package/.claude-flow-novice/dist/src/coordination/shared/security/payload-validator.js +259 -0
  237. package/.claude-flow-novice/dist/src/coordination/shared/security/payload-validator.js.map +1 -0
  238. package/.claude-flow-novice/dist/src/coordination/shared/transparency/index.js +17 -0
  239. package/.claude-flow-novice/dist/src/coordination/shared/transparency/index.js.map +1 -0
  240. package/.claude-flow-novice/dist/src/coordination/shared/transparency/interfaces/transparency-system.js +19 -0
  241. package/.claude-flow-novice/dist/src/coordination/shared/transparency/interfaces/transparency-system.js.map +1 -0
  242. package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-integration.js +357 -0
  243. package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-integration.js.map +1 -0
  244. package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-system.js +679 -0
  245. package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-system.js.map +1 -0
  246. package/.claude-flow-novice/dist/src/coordination/shared/types/index.js +7 -0
  247. package/.claude-flow-novice/dist/src/coordination/shared/types/index.js.map +1 -0
  248. package/.claude-flow-novice/dist/src/coordination/shared/types/sdk.js +10 -0
  249. package/.claude-flow-novice/dist/src/coordination/shared/types/sdk.js.map +1 -0
  250. package/.claude-flow-novice/dist/src/feature-flags/core/FeatureFlagManager.js +52 -2
  251. package/.claude-flow-novice/dist/src/feature-flags/core/FeatureFlagManager.js.map +1 -1
  252. package/.claude-flow-novice/dist/src/mcp/mcp-server-novice.js +37 -2
  253. package/.claude-flow-novice/dist/src/mcp/session-manager.js +3 -1
  254. package/.claude-flow-novice/dist/src/mcp/session-manager.js.map +1 -1
  255. package/.claude-flow-novice/dist/src/providers/provider-manager.js +36 -3
  256. package/.claude-flow-novice/dist/src/providers/provider-manager.js.map +1 -1
  257. package/.claude-flow-novice/dist/src/utils/markdown-sanitizer.js +65 -41
  258. package/.claude-flow-novice/dist/src/utils/markdown-sanitizer.js.map +1 -1
  259. package/.claude-flow-novice/dist/src/web/api/server.js +1 -1
  260. package/.claude-flow-novice/dist/src/web/api/server.js.map +1 -1
  261. package/.claude-flow-novice/dist/src/workflows/progressive-rollout-manager.js +30 -0
  262. package/.claude-flow-novice/dist/src/workflows/progressive-rollout-manager.js.map +1 -1
  263. package/.claude-flow-novice/metrics.db-shm +0 -0
  264. package/.claude-flow-novice/metrics.db-wal +0 -0
  265. package/package.json +2 -2
  266. package/scripts/monitoring/alert-monitor.sh +220 -0
  267. package/scripts/monitoring/view-alerts.sh +307 -0
  268. package/scripts/test-zai-api.cjs +2 -2
  269. package/src/slash-commands/parse-epic.js +1 -1
@@ -0,0 +1,357 @@
1
+ /**
2
+ * Transparency System Integration
3
+ *
4
+ * Integrates transparency monitoring with V2 coordinator for real-time
5
+ * agent visibility, hierarchy tracking, and performance metrics.
6
+ *
7
+ * @module coordination/shared/transparency/transparency-integration
8
+ */ import { TransparencySystem } from './transparency-system.js';
9
+ import { Logger } from '../../../core/logger.js';
10
+ /**
11
+ * Enhanced coordinator with transparency integration
12
+ *
13
+ * Wraps any ICoordinator implementation to add transparency features:
14
+ * - Automatic agent registration/deregistration
15
+ * - State change tracking
16
+ * - Performance monitoring
17
+ * - Event streaming
18
+ */ export class TransparentCoordinator {
19
+ logger = new Logger({
20
+ level: 'info',
21
+ format: 'text',
22
+ destination: 'console'
23
+ });
24
+ baseCoordinator;
25
+ transparency;
26
+ agentMetadata = new Map();
27
+ constructor(baseCoordinator){
28
+ this.baseCoordinator = baseCoordinator;
29
+ this.transparency = new TransparencySystem();
30
+ }
31
+ // ===========================
32
+ // Coordinator Lifecycle
33
+ // ===========================
34
+ async initialize() {
35
+ this.logger.info('Initializing TransparentCoordinator');
36
+ // Initialize base coordinator
37
+ await this.baseCoordinator.initialize();
38
+ // Initialize transparency system
39
+ await this.transparency.initialize({
40
+ enableRealTimeMonitoring: true,
41
+ enableEventStreaming: true,
42
+ enablePerformanceTracking: true,
43
+ enableDependencyTracking: true,
44
+ metricsUpdateIntervalMs: 5000,
45
+ heartbeatIntervalMs: 10000
46
+ });
47
+ // Start transparency monitoring
48
+ await this.transparency.startMonitoring();
49
+ // Register transparency event listeners
50
+ this.registerTransparencyListeners();
51
+ this.logger.info('TransparentCoordinator initialized successfully');
52
+ }
53
+ async cleanup() {
54
+ this.logger.info('Cleaning up TransparentCoordinator');
55
+ // Stop transparency monitoring
56
+ await this.transparency.cleanup();
57
+ // Cleanup base coordinator
58
+ await this.baseCoordinator.cleanup();
59
+ this.logger.info('TransparentCoordinator cleanup complete');
60
+ }
61
+ isReady() {
62
+ return this.baseCoordinator.isReady();
63
+ }
64
+ // ===========================
65
+ // Agent Lifecycle (Enhanced with Transparency)
66
+ // ===========================
67
+ async spawnAgent(config) {
68
+ const startTime = Date.now();
69
+ // Spawn agent through base coordinator
70
+ const agent = await this.baseCoordinator.spawnAgent(config);
71
+ // Calculate spawn time
72
+ const spawnTimeMs = Date.now() - startTime;
73
+ // Determine parent agent from metadata or hierarchy
74
+ const parentAgentId = this.determineParentAgentId(agent);
75
+ // Register agent with transparency system
76
+ this.transparency.registerAgent(agent, parentAgentId);
77
+ // Store additional metadata
78
+ this.agentMetadata.set(agent.agentId, {
79
+ ...config,
80
+ spawnTimeMs,
81
+ parentAgentId,
82
+ registeredAt: new Date()
83
+ });
84
+ this.logger.info(`Agent ${agent.agentId} spawned and registered with transparency`, {
85
+ type: agent.type,
86
+ level: await this.getAgentLevel(agent.agentId),
87
+ spawnTimeMs,
88
+ parentAgentId
89
+ });
90
+ return agent;
91
+ }
92
+ async pauseAgent(agentId, reason) {
93
+ const pauseStartTime = Date.now();
94
+ // Get current state for transparency tracking
95
+ const currentState = await this.baseCoordinator.getAgentState(agentId);
96
+ // Pause agent through base coordinator
97
+ await this.baseCoordinator.pauseAgent(agentId, reason);
98
+ // Record pause in transparency
99
+ this.transparency.updateAgentState(agentId, 'paused', reason);
100
+ const pauseLatencyMs = Date.now() - pauseStartTime;
101
+ this.logger.info(`Agent ${agentId} paused`, {
102
+ reason,
103
+ pauseLatencyMs,
104
+ previousState: currentState
105
+ });
106
+ // Update performance metrics
107
+ this.updatePerformanceMetrics(agentId, {
108
+ pauseLatencyMs
109
+ });
110
+ }
111
+ async resumeAgent(agentId, checkpointId, messageUUID) {
112
+ const resumeStartTime = Date.now();
113
+ // Resume agent through base coordinator
114
+ await this.baseCoordinator.resumeAgent(agentId, checkpointId, messageUUID);
115
+ // Record resume in transparency
116
+ this.transparency.updateAgentState(agentId, 'active', 'Resumed from checkpoint');
117
+ const resumeLatencyMs = Date.now() - resumeStartTime;
118
+ this.logger.info(`Agent ${agentId} resumed`, {
119
+ checkpointId,
120
+ messageUUID,
121
+ resumeLatencyMs
122
+ });
123
+ // Update performance metrics
124
+ this.updatePerformanceMetrics(agentId, {
125
+ resumeLatencyMs
126
+ });
127
+ }
128
+ async terminateAgent(agentId, reason) {
129
+ // Get final state for transparency tracking
130
+ const finalState = await this.baseCoordinator.getAgentState(agentId);
131
+ // Terminate agent through base coordinator
132
+ await this.baseCoordinator.terminateAgent(agentId, reason);
133
+ // Record termination in transparency
134
+ this.transparency.updateAgentState(agentId, 'terminated', reason);
135
+ // Cleanup agent metadata
136
+ this.agentMetadata.delete(agentId);
137
+ this.logger.info(`Agent ${agentId} terminated`, {
138
+ reason,
139
+ finalState
140
+ });
141
+ }
142
+ // ===========================
143
+ // State Management (Enhanced with Transparency)
144
+ // ===========================
145
+ async getAgentState(agentId) {
146
+ const state = await this.baseCoordinator.getAgentState(agentId);
147
+ // Update transparency state tracking
148
+ this.transparency.updateAgentState(agentId, state);
149
+ return state;
150
+ }
151
+ async getAgentSession(agentId) {
152
+ return await this.baseCoordinator.getAgentSession(agentId);
153
+ }
154
+ async createCheckpoint(agentId, reason, metadata) {
155
+ // Create checkpoint through base coordinator
156
+ const checkpoint = await this.baseCoordinator.createCheckpoint(agentId, reason, metadata);
157
+ // Record checkpoint creation in transparency
158
+ this.transparency.updateAgentState(agentId, 'checkpointing', reason);
159
+ this.logger.debug(`Checkpoint created for agent ${agentId}`, {
160
+ checkpointId: checkpoint.id,
161
+ reason
162
+ });
163
+ return checkpoint;
164
+ }
165
+ async restoreCheckpoint(checkpointId) {
166
+ // Restore checkpoint through base coordinator
167
+ const agent = await this.baseCoordinator.restoreCheckpoint(checkpointId);
168
+ // Record checkpoint restoration in transparency
169
+ this.transparency.updateAgentState(agent.agentId, 'active', 'Restored from checkpoint');
170
+ this.logger.info(`Checkpoint restored for agent ${agent.agentId}`, {
171
+ checkpointId
172
+ });
173
+ return agent;
174
+ }
175
+ async listCheckpoints(agentId, limit) {
176
+ return await this.baseCoordinator.listCheckpoints(agentId, limit);
177
+ }
178
+ // ===========================
179
+ // Metrics & Monitoring (Enhanced with Transparency)
180
+ // ===========================
181
+ getMetrics() {
182
+ const baseMetrics = this.baseCoordinator.getMetrics();
183
+ // Add transparency-specific metrics
184
+ return {
185
+ ...baseMetrics,
186
+ transparency: {
187
+ // These will be populated asynchronously
188
+ agentHierarchyDepth: 0,
189
+ agentDistribution: {},
190
+ eventStreamStats: {
191
+ totalEvents: 0,
192
+ eventsPerSecond: 0
193
+ },
194
+ performanceAlerts: 0
195
+ }
196
+ };
197
+ }
198
+ getActiveAgents() {
199
+ return this.baseCoordinator.getActiveAgents();
200
+ }
201
+ getPausedAgents() {
202
+ return this.baseCoordinator.getPausedAgents();
203
+ }
204
+ async updateTokenUsage(agentId, tokensUsed) {
205
+ // Update base coordinator
206
+ await this.baseCoordinator.updateTokenUsage(agentId, tokensUsed);
207
+ // Update transparency tracking
208
+ this.transparency.updateTokenUsage(agentId, tokensUsed);
209
+ }
210
+ // ===========================
211
+ // Transparency-Specific Methods
212
+ // ===========================
213
+ /**
214
+ * Get transparency system instance
215
+ */ getTransparencySystem() {
216
+ return this.transparency;
217
+ }
218
+ /**
219
+ * Get agent hierarchy information
220
+ */ async getAgentHierarchy() {
221
+ return await this.transparency.getAgentHierarchy();
222
+ }
223
+ /**
224
+ * Get real-time agent statuses
225
+ */ async getAgentStatuses() {
226
+ return await this.transparency.getAllAgentStatuses();
227
+ }
228
+ /**
229
+ * Get recent lifecycle events
230
+ */ async getRecentEvents(limit = 100) {
231
+ return await this.transparency.getRecentEvents(limit);
232
+ }
233
+ /**
234
+ * Get transparency metrics
235
+ */ async getTransparencyMetrics() {
236
+ return await this.transparency.getTransparencyMetrics();
237
+ }
238
+ /**
239
+ * Get performance metrics for specific agent
240
+ */ async getAgentPerformanceMetrics(agentId) {
241
+ return await this.transparency.getAgentPerformanceMetrics(agentId);
242
+ }
243
+ // ===========================
244
+ // Private Helper Methods
245
+ // ===========================
246
+ determineParentAgentId(agent) {
247
+ // Try to determine parent from agent metadata
248
+ const metadata = this.agentMetadata.get(agent.agentId);
249
+ if (metadata?.parentAgentId) {
250
+ return metadata.parentAgentId;
251
+ }
252
+ // Try to determine from agent type and session
253
+ // This is a simplified heuristic - in practice, you'd have
254
+ // more sophisticated parent-child relationship tracking
255
+ const agentType = agent.type;
256
+ const sessionId = agent.sessionId;
257
+ // For certain agent types, we can infer hierarchy
258
+ if (agentType.includes('helper') || agentType.includes('-helper')) {
259
+ // Helper agents usually have parent workers
260
+ return this.findAgentInSession(sessionId, agentType.replace('-helper', '').replace('helper-', ''));
261
+ }
262
+ if (agentType.includes('worker')) {
263
+ // Workers might have root orchestrator as parent
264
+ return this.findAgentInSession(sessionId, 'orchestrator');
265
+ }
266
+ return undefined; // No parent found (root level)
267
+ }
268
+ async findAgentInSession(sessionId, type) {
269
+ try {
270
+ const allAgents = await this.transparency.getAgentHierarchy();
271
+ const found = allAgents.find((agent)=>agent.sessionId === sessionId && agent.type === type && agent.state !== 'terminated');
272
+ return found?.agentId;
273
+ } catch (error) {
274
+ this.logger.warn('Error finding parent agent', error);
275
+ return undefined;
276
+ }
277
+ }
278
+ async getAgentLevel(agentId) {
279
+ try {
280
+ const hierarchy = await this.transparency.getAgentHierarchy();
281
+ const agent = hierarchy.find((a)=>a.agentId === agentId);
282
+ return agent?.level || 1;
283
+ } catch (error) {
284
+ this.logger.warn('Error getting agent level', error);
285
+ return 1;
286
+ }
287
+ }
288
+ updatePerformanceMetrics(agentId, metrics) {
289
+ // Store performance metrics in agent metadata
290
+ const existing = this.agentMetadata.get(agentId) || {};
291
+ const performance = existing.performance || {};
292
+ this.agentMetadata.set(agentId, {
293
+ ...existing,
294
+ performance: {
295
+ ...performance,
296
+ ...metrics,
297
+ lastUpdated: new Date()
298
+ }
299
+ });
300
+ }
301
+ registerTransparencyListeners() {
302
+ // Register for hierarchy changes
303
+ this.transparency.registerEventListener({
304
+ onHierarchyChange: (change)=>{
305
+ this.logger.info('Agent hierarchy changed', {
306
+ type: change.type,
307
+ agentId: change.agentId
308
+ });
309
+ },
310
+ onAgentStateChange: (change)=>{
311
+ this.logger.debug('Agent state changed', {
312
+ agentId: change.agentId,
313
+ previousState: change.previousState,
314
+ newState: change.newState
315
+ });
316
+ },
317
+ onMetricsUpdate: (metrics)=>{
318
+ // Update coordinator metrics with transparency data
319
+ this.updateCoordinatorMetrics(metrics);
320
+ },
321
+ onLifecycleEvent: (event)=>{
322
+ this.logger.debug('Agent lifecycle event', {
323
+ agentId: event.agentId,
324
+ eventType: event.eventType
325
+ });
326
+ },
327
+ onPerformanceAlert: (alert)=>{
328
+ this.logger.warn('Performance alert', {
329
+ agentId: alert.agentId,
330
+ metric: alert.metric,
331
+ value: alert.value,
332
+ threshold: alert.threshold,
333
+ severity: alert.severity
334
+ });
335
+ }
336
+ });
337
+ }
338
+ updateCoordinatorMetrics(transparencyMetrics) {
339
+ // This would update the base coordinator's metrics
340
+ // to include transparency information
341
+ // Implementation depends on the specific coordinator type
342
+ this.logger.debug('Updating coordinator metrics with transparency data', {
343
+ totalAgents: transparencyMetrics.totalAgents,
344
+ eventStreamStats: transparencyMetrics.eventStreamStats
345
+ });
346
+ }
347
+ }
348
+ /**
349
+ * Factory function to wrap any coordinator with transparency
350
+ *
351
+ * @param baseCoordinator - Base coordinator to wrap
352
+ * @returns Transparent coordinator instance
353
+ */ export function withTransparency(baseCoordinator) {
354
+ return new TransparentCoordinator(baseCoordinator);
355
+ }
356
+
357
+ //# sourceMappingURL=transparency-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/coordination/shared/transparency/transparency-integration.ts"],"names":["TransparencySystem","Logger","TransparentCoordinator","logger","level","format","destination","baseCoordinator","transparency","agentMetadata","Map","initialize","info","enableRealTimeMonitoring","enableEventStreaming","enablePerformanceTracking","enableDependencyTracking","metricsUpdateIntervalMs","heartbeatIntervalMs","startMonitoring","registerTransparencyListeners","cleanup","isReady","spawnAgent","config","startTime","Date","now","agent","spawnTimeMs","parentAgentId","determineParentAgentId","registerAgent","set","agentId","registeredAt","type","getAgentLevel","pauseAgent","reason","pauseStartTime","currentState","getAgentState","updateAgentState","pauseLatencyMs","previousState","updatePerformanceMetrics","resumeAgent","checkpointId","messageUUID","resumeStartTime","resumeLatencyMs","terminateAgent","finalState","delete","state","getAgentSession","createCheckpoint","metadata","checkpoint","debug","id","restoreCheckpoint","listCheckpoints","limit","getMetrics","baseMetrics","agentHierarchyDepth","agentDistribution","eventStreamStats","totalEvents","eventsPerSecond","performanceAlerts","getActiveAgents","getPausedAgents","updateTokenUsage","tokensUsed","getTransparencySystem","getAgentHierarchy","getAgentStatuses","getAllAgentStatuses","getRecentEvents","getTransparencyMetrics","getAgentPerformanceMetrics","get","agentType","sessionId","includes","findAgentInSession","replace","undefined","allAgents","found","find","error","warn","hierarchy","a","metrics","existing","performance","lastUpdated","registerEventListener","onHierarchyChange","change","onAgentStateChange","newState","onMetricsUpdate","updateCoordinatorMetrics","onLifecycleEvent","event","eventType","onPerformanceAlert","alert","metric","value","threshold","severity","transparencyMetrics","totalAgents","withTransparency"],"mappings":"AAAA;;;;;;;CAOC,GAID,SAASA,kBAAkB,QAAQ,2BAA2B;AAE9D,SAASC,MAAM,QAAQ,0BAA0B;AAEjD;;;;;;;;CAQC,GACD,OAAO,MAAMC;IACMC,SAAS,IAAIF,OAAO;QACnCG,OAAO;QACPC,QAAQ;QACRC,aAAa;IACf,GAAG;IAEcC,gBAA8B;IAC9BC,aAAiC;IACjCC,gBAAgB,IAAIC,MAAmB;IAExD,YAAYH,eAA6B,CAAE;QACzC,IAAI,CAACA,eAAe,GAAGA;QACvB,IAAI,CAACC,YAAY,GAAG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