claude-flow-novice 1.6.1 → 1.6.2

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 (244) hide show
  1. package/.claude/agents/cfn-loop/product-owner.md +54 -4
  2. package/.claude/commands/cfn-claude-sync.md +303 -0
  3. package/.claude/commands/cfn-loop-epic.md +290 -0
  4. package/.claude/commands/cfn-loop-single.md +168 -0
  5. package/.claude/commands/cfn-loop-sprints.md +384 -0
  6. package/.claude/commands/cfn-loop.md +180 -0
  7. package/.claude/commands/metrics-summary.md +58 -0
  8. package/.claude/commands/parse-epic.md +357 -0
  9. package/.claude/settings.json +4 -4
  10. package/.claude/settings.local.json +9 -2
  11. package/.claude-flow-novice/.claude/agents/cfn-loop/product-owner.md +792 -0
  12. package/.claude-flow-novice/dist/mcp/server.js +21 -2
  13. package/.claude-flow-novice/dist/src/api/claude-client.js +138 -3
  14. package/.claude-flow-novice/dist/src/api/claude-client.js.map +1 -1
  15. package/.claude-flow-novice/dist/src/cfn-loop/phase-orchestrator-example.js +1 -1
  16. package/.claude-flow-novice/dist/src/cfn-loop/scope-control.js +247 -0
  17. package/.claude-flow-novice/dist/src/cfn-loop/scope-control.js.map +1 -0
  18. package/.claude-flow-novice/dist/src/cli/commands/swarm.js +32 -15
  19. package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
  20. package/.claude-flow-novice/dist/src/cli/commands/transparency.js +455 -0
  21. package/.claude-flow-novice/dist/src/cli/commands/transparency.js.map +1 -0
  22. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE.md +129 -13
  23. package/.claude-flow-novice/dist/src/components/visualizations/index.js +9 -0
  24. package/.claude-flow-novice/dist/src/components/visualizations/index.js.map +1 -0
  25. package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js +462 -0
  26. package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js.map +1 -0
  27. package/.claude-flow-novice/dist/src/coordination/config-translator.js +248 -0
  28. package/.claude-flow-novice/dist/src/coordination/config-translator.js.map +1 -0
  29. package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js +287 -0
  30. package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js.map +1 -0
  31. package/.claude-flow-novice/dist/src/coordination/distributed-consensus.js +68 -9
  32. package/.claude-flow-novice/dist/src/coordination/distributed-consensus.js.map +1 -1
  33. package/.claude-flow-novice/dist/src/coordination/feature-flags.js +166 -0
  34. package/.claude-flow-novice/dist/src/coordination/feature-flags.js.map +1 -0
  35. package/.claude-flow-novice/dist/src/coordination/queen-agent.js +18 -4
  36. package/.claude-flow-novice/dist/src/coordination/queen-agent.js.map +1 -1
  37. package/.claude-flow-novice/dist/src/coordination/role-assignment.js +6 -110
  38. package/.claude-flow-novice/dist/src/coordination/role-assignment.js.map +1 -1
  39. package/.claude-flow-novice/dist/src/coordination/v2/cache/artifact-cache-optimizer.js +632 -0
  40. package/.claude-flow-novice/dist/src/coordination/v2/cache/artifact-cache-optimizer.js.map +1 -0
  41. package/.claude-flow-novice/dist/src/coordination/v2/cache/index.js +11 -0
  42. package/.claude-flow-novice/dist/src/coordination/v2/cache/index.js.map +1 -0
  43. package/.claude-flow-novice/dist/src/coordination/v2/checkpoints/checkpoint-compressor.js +318 -0
  44. package/.claude-flow-novice/dist/src/coordination/v2/checkpoints/checkpoint-compressor.js.map +1 -0
  45. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.example.js +364 -0
  46. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.example.js.map +1 -0
  47. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.js +492 -0
  48. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.js.map +1 -0
  49. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/hierarchical-coordinator.js +786 -0
  50. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/hierarchical-coordinator.js.map +1 -0
  51. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/index.js +16 -0
  52. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/index.js.map +1 -0
  53. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/parent-child-manager.js +342 -0
  54. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/parent-child-manager.js.map +1 -0
  55. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/swarm-coordinator-v2.js +601 -0
  56. package/.claude-flow-novice/dist/src/coordination/v2/coordinators/swarm-coordinator-v2.js.map +1 -0
  57. package/.claude-flow-novice/dist/src/coordination/v2/core/help-request-metrics.js +211 -0
  58. package/.claude-flow-novice/dist/src/coordination/v2/core/help-request-metrics.js.map +1 -0
  59. package/.claude-flow-novice/dist/src/coordination/v2/core/index.js +1 -0
  60. package/.claude-flow-novice/dist/src/coordination/v2/core/index.js.map +1 -1
  61. package/.claude-flow-novice/dist/src/coordination/v2/core/message-broker.js +365 -6
  62. package/.claude-flow-novice/dist/src/coordination/v2/core/message-broker.js.map +1 -1
  63. package/.claude-flow-novice/dist/src/coordination/v2/core/resource-manager-safe.js +478 -0
  64. package/.claude-flow-novice/dist/src/coordination/v2/core/resource-manager-safe.js.map +1 -0
  65. package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine-config.js +5 -2
  66. package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine-config.js.map +1 -1
  67. package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine.js +189 -0
  68. package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine.js.map +1 -1
  69. package/.claude-flow-novice/dist/src/coordination/v2/deadlock/deadlock-detector.js +424 -0
  70. package/.claude-flow-novice/dist/src/coordination/v2/deadlock/deadlock-detector.js.map +1 -0
  71. package/.claude-flow-novice/dist/src/coordination/v2/deadlock/index.js +9 -0
  72. package/.claude-flow-novice/dist/src/coordination/v2/deadlock/index.js.map +1 -0
  73. package/.claude-flow-novice/dist/src/coordination/v2/deadlock/resource-manager.js +669 -0
  74. package/.claude-flow-novice/dist/src/coordination/v2/deadlock/resource-manager.js.map +1 -0
  75. package/.claude-flow-novice/dist/src/coordination/v2/dependency/artifact-storage.js +451 -0
  76. package/.claude-flow-novice/dist/src/coordination/v2/dependency/artifact-storage.js.map +1 -0
  77. package/.claude-flow-novice/dist/src/coordination/v2/dependency/cycle-detector.js +271 -0
  78. package/.claude-flow-novice/dist/src/coordination/v2/dependency/cycle-detector.js.map +1 -0
  79. package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-graph.js +335 -0
  80. package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-graph.js.map +1 -0
  81. package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-manager.js +439 -0
  82. package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-manager.js.map +1 -0
  83. package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-request.js +92 -0
  84. package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-request.js.map +1 -0
  85. package/.claude-flow-novice/dist/src/coordination/v2/dependency/index.js +21 -0
  86. package/.claude-flow-novice/dist/src/coordination/v2/dependency/index.js.map +1 -0
  87. package/.claude-flow-novice/dist/src/coordination/v2/dependency/topological-sort.js +223 -0
  88. package/.claude-flow-novice/dist/src/coordination/v2/dependency/topological-sort.js.map +1 -0
  89. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-coordinator.js +436 -0
  90. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-coordinator.js.map +1 -0
  91. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-matcher.js +278 -0
  92. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-matcher.js.map +1 -0
  93. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request-handler.js +317 -0
  94. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request-handler.js.map +1 -0
  95. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request.js +273 -0
  96. package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request.js.map +1 -0
  97. package/.claude-flow-novice/dist/src/coordination/v2/help-system/index.js +15 -0
  98. package/.claude-flow-novice/dist/src/coordination/v2/help-system/index.js.map +1 -0
  99. package/.claude-flow-novice/dist/src/coordination/v2/help-system/waiting-agent-pool.js +512 -0
  100. package/.claude-flow-novice/dist/src/coordination/v2/help-system/waiting-agent-pool.js.map +1 -0
  101. package/.claude-flow-novice/dist/src/coordination/v2/index.js +6 -0
  102. package/.claude-flow-novice/dist/src/coordination/v2/index.js.map +1 -1
  103. package/.claude-flow-novice/dist/src/coordination/v2/integration/help-deadlock-integration.js +557 -0
  104. package/.claude-flow-novice/dist/src/coordination/v2/integration/help-deadlock-integration.js.map +1 -0
  105. package/.claude-flow-novice/dist/src/coordination/v2/integration/index.js +14 -0
  106. package/.claude-flow-novice/dist/src/coordination/v2/integration/index.js.map +1 -0
  107. package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.example.js +212 -0
  108. package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.example.js.map +1 -0
  109. package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.js +552 -0
  110. package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.js.map +1 -0
  111. package/.claude-flow-novice/dist/src/coordination/v2/memory/dependency-storage.js +367 -0
  112. package/.claude-flow-novice/dist/src/coordination/v2/memory/dependency-storage.js.map +1 -0
  113. package/.claude-flow-novice/dist/src/coordination/v2/memory/index.js +1 -0
  114. package/.claude-flow-novice/dist/src/coordination/v2/memory/index.js.map +1 -1
  115. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channel.js +371 -0
  116. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channel.js.map +1 -0
  117. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/dependency-channel.js +355 -0
  118. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/dependency-channel.js.map +1 -0
  119. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/help-channel.js +424 -0
  120. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/help-channel.js.map +1 -0
  121. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/index.js +16 -0
  122. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/index.js.map +1 -0
  123. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/state-channel.js +295 -0
  124. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/state-channel.js.map +1 -0
  125. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/task-channel.js +411 -0
  126. package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/task-channel.js.map +1 -0
  127. package/.claude-flow-novice/dist/src/coordination/v2/messaging/index.js +14 -0
  128. package/.claude-flow-novice/dist/src/coordination/v2/messaging/index.js.map +1 -0
  129. package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-bus.js +387 -0
  130. package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-bus.js.map +1 -0
  131. package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-persistence.js +589 -0
  132. package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-persistence.js.map +1 -0
  133. package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-router.js +444 -0
  134. package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-router.js.map +1 -0
  135. package/.claude-flow-novice/dist/src/coordination/v2/sdk/checkpoint-manager.js +29 -8
  136. package/.claude-flow-novice/dist/src/coordination/v2/sdk/checkpoint-manager.js.map +1 -1
  137. package/.claude-flow-novice/dist/src/coordination/v2/sdk/help-coordinator.js +470 -0
  138. package/.claude-flow-novice/dist/src/coordination/v2/sdk/help-coordinator.js.map +1 -0
  139. package/.claude-flow-novice/dist/src/coordination/v2/sdk/hierarchical-background-integration.js +450 -0
  140. package/.claude-flow-novice/dist/src/coordination/v2/sdk/hierarchical-background-integration.js.map +1 -0
  141. package/.claude-flow-novice/dist/src/coordination/v2/sdk/index.js +5 -0
  142. package/.claude-flow-novice/dist/src/coordination/v2/sdk/index.js.map +1 -1
  143. package/.claude-flow-novice/dist/src/coordination/v2/sdk/multi-level-control.js +545 -0
  144. package/.claude-flow-novice/dist/src/coordination/v2/sdk/multi-level-control.js.map +1 -0
  145. package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-controller.js +44 -0
  146. package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-controller.js.map +1 -1
  147. package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-message-integration.js +415 -0
  148. package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-message-integration.js.map +1 -0
  149. package/.claude-flow-novice/dist/src/coordination/v2/sdk/session-pool-optimizer.js +615 -0
  150. package/.claude-flow-novice/dist/src/coordination/v2/sdk/session-pool-optimizer.js.map +1 -0
  151. package/.claude-flow-novice/dist/src/coordination/v2/security/payload-validator.js +259 -0
  152. package/.claude-flow-novice/dist/src/coordination/v2/security/payload-validator.js.map +1 -0
  153. package/.claude-flow-novice/dist/src/coordination/v2/transparency/index.js +17 -0
  154. package/.claude-flow-novice/dist/src/coordination/v2/transparency/index.js.map +1 -0
  155. package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-integration.js +357 -0
  156. package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-integration.js.map +1 -0
  157. package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-system.js +679 -0
  158. package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-system.js.map +1 -0
  159. package/.claude-flow-novice/dist/src/core/agent-manager.js +30 -0
  160. package/.claude-flow-novice/dist/src/core/agent-manager.js.map +1 -1
  161. package/.claude-flow-novice/dist/src/mcp/server.js +21 -2
  162. package/.claude-flow-novice/dist/src/mcp/server.js.map +1 -1
  163. package/.claude-flow-novice/dist/src/observability/metrics-counter.js +268 -0
  164. package/.claude-flow-novice/dist/src/observability/metrics-counter.js.map +1 -0
  165. package/.claude-flow-novice/dist/src/observability/metrics-storage.js +265 -0
  166. package/.claude-flow-novice/dist/src/observability/metrics-storage.js.map +1 -0
  167. package/.claude-flow-novice/dist/src/observability/telemetry.js +26 -0
  168. package/.claude-flow-novice/dist/src/observability/telemetry.js.map +1 -1
  169. package/.claude-flow-novice/dist/src/providers/tiered-router.js +64 -10
  170. package/.claude-flow-novice/dist/src/providers/tiered-router.js.map +1 -1
  171. package/.claude-flow-novice/dist/src/providers/zai-provider.js +196 -97
  172. package/.claude-flow-novice/dist/src/providers/zai-provider.js.map +1 -1
  173. package/.claude-flow-novice/dist/src/slash-commands/cfn-claude-sync.js +533 -0
  174. package/.claude-flow-novice/dist/src/slash-commands/index.js +5 -0
  175. package/.claude-flow-novice/dist/src/slash-commands/metrics-summary-class.js +74 -0
  176. package/.claude-flow-novice/dist/src/slash-commands/metrics-summary.js +335 -0
  177. package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +12 -0
  178. package/.claude-flow-novice/dist/src/verification/checkpoint-compression-demo.js +96 -0
  179. package/.claude-flow-novice/dist/src/verification/checkpoint-compression-demo.js.map +1 -0
  180. package/.claude-flow-novice/dist/src/verification/checkpoint-compression.js +406 -0
  181. package/.claude-flow-novice/dist/src/verification/checkpoint-compression.js.map +1 -0
  182. package/.claude-flow-novice/dist/src/verification/checkpoint-manager.js +35 -5
  183. package/.claude-flow-novice/dist/src/verification/checkpoint-manager.js.map +1 -1
  184. package/.claude-flow-novice/dist/src/web/api/config/api-config.js +186 -0
  185. package/.claude-flow-novice/dist/src/web/api/config/api-config.js.map +1 -0
  186. package/.claude-flow-novice/dist/src/web/api/middleware/auth.js +205 -0
  187. package/.claude-flow-novice/dist/src/web/api/middleware/auth.js.map +1 -0
  188. package/.claude-flow-novice/dist/src/web/api/middleware/cache.js +262 -0
  189. package/.claude-flow-novice/dist/src/web/api/middleware/cache.js.map +1 -0
  190. package/.claude-flow-novice/dist/src/web/api/middleware/error-handler.js +250 -0
  191. package/.claude-flow-novice/dist/src/web/api/middleware/error-handler.js.map +1 -0
  192. package/.claude-flow-novice/dist/src/web/api/middleware/request-logger.js +217 -0
  193. package/.claude-flow-novice/dist/src/web/api/middleware/request-logger.js.map +1 -0
  194. package/.claude-flow-novice/dist/src/web/api/middleware/validation.js +325 -0
  195. package/.claude-flow-novice/dist/src/web/api/middleware/validation.js.map +1 -0
  196. package/.claude-flow-novice/dist/src/web/api/routes/events.js +465 -0
  197. package/.claude-flow-novice/dist/src/web/api/routes/events.js.map +1 -0
  198. package/.claude-flow-novice/dist/src/web/api/routes/hierarchy.js +302 -0
  199. package/.claude-flow-novice/dist/src/web/api/routes/hierarchy.js.map +1 -0
  200. package/.claude-flow-novice/dist/src/web/api/routes/index.js +14 -0
  201. package/.claude-flow-novice/dist/src/web/api/routes/index.js.map +1 -0
  202. package/.claude-flow-novice/dist/src/web/api/routes/metrics.js +561 -0
  203. package/.claude-flow-novice/dist/src/web/api/routes/metrics.js.map +1 -0
  204. package/.claude-flow-novice/dist/src/web/api/routes/status.js +450 -0
  205. package/.claude-flow-novice/dist/src/web/api/routes/status.js.map +1 -0
  206. package/.claude-flow-novice/dist/src/web/api/server.js +451 -0
  207. package/.claude-flow-novice/dist/src/web/api/server.js.map +1 -0
  208. package/.claude-flow-novice/dist/src/web/dashboard/hooks/useWebSocket.js +385 -0
  209. package/.claude-flow-novice/dist/src/web/dashboard/hooks/useWebSocket.js.map +1 -0
  210. package/.claude-flow-novice/dist/src/web/dashboard/index.js +87 -0
  211. package/.claude-flow-novice/dist/src/web/dashboard/index.js.map +1 -0
  212. package/.claude-flow-novice/dist/src/web/dashboard/types.js +6 -0
  213. package/.claude-flow-novice/dist/src/web/dashboard/types.js.map +1 -0
  214. package/.claude-flow-novice/metrics.db +0 -0
  215. package/.claude-flow-novice/metrics.db-shm +0 -0
  216. package/.claude-flow-novice/metrics.db-wal +0 -0
  217. package/CLAUDE.md +29 -0
  218. package/README.md +27 -0
  219. package/config/hooks/post-edit-pipeline.js +36 -2
  220. package/examples/metrics-counter-demo.ts +106 -0
  221. package/examples/persistent-metrics-demo.ts +83 -0
  222. package/examples/phase-5-multi-level-control.ts +282 -0
  223. package/examples/session-pool-optimizer-example.ts +311 -0
  224. package/package.json +15 -3
  225. package/scripts/check-routing-stats.cjs +122 -0
  226. package/scripts/pre-publish-validation.cjs +212 -0
  227. package/scripts/test-provider-routing.cjs +228 -0
  228. package/scripts/test-routing-telemetry.cjs +147 -0
  229. package/scripts/test-zai-10k.cjs +81 -0
  230. package/scripts/test-zai-api.cjs +191 -0
  231. package/scripts/test-zai-diagnostic.cjs +151 -0
  232. package/scripts/test-zai-final.cjs +128 -0
  233. package/scripts/test-zai-with-env.cjs +85 -0
  234. package/scripts/validate-coordination-cli.js +69 -0
  235. package/scripts/validate-coordination-toggle-integration.cjs +501 -0
  236. package/src/cli/simple-commands/init/templates/CLAUDE.md +29 -0
  237. package/src/observability/metrics-counter.ts +347 -0
  238. package/src/observability/metrics-storage.ts +356 -0
  239. package/src/observability/telemetry.ts +658 -0
  240. package/src/slash-commands/cfn-claude-sync.js +533 -0
  241. package/src/slash-commands/index.js +5 -0
  242. package/src/slash-commands/metrics-summary-class.js +74 -0
  243. package/src/slash-commands/metrics-summary.js +335 -0
  244. package/src/slash-commands/register-all-commands.js +12 -0
@@ -0,0 +1,211 @@
1
+ /**
2
+ * Agent Coordination V2 - Help Request Metrics
3
+ *
4
+ * Tracks metrics for agent help requests and helper state management.
5
+ * Monitors WAITING → HELPING transitions, checkpoint recovery times,
6
+ * and helper collaboration performance.
7
+ *
8
+ * @module coordination/v2/core/help-request-metrics
9
+ */ /**
10
+ * HelpRequestTracker - Manages help request metrics and checkpoint recovery
11
+ */ export class HelpRequestTracker {
12
+ helpRequests = new Map();
13
+ activeHelpers = new Map();
14
+ waitTimes = [];
15
+ helpDurations = [];
16
+ checkpointRecoveryTimes = [];
17
+ metrics = {
18
+ totalRequests: 0,
19
+ completedRequests: 0,
20
+ failedRequests: 0,
21
+ averageWaitTimeMs: 0,
22
+ averageHelpDurationMs: 0,
23
+ p99CheckpointRecoveryMs: 0,
24
+ totalCheckpointRecoveries: 0,
25
+ activeRequests: 0
26
+ };
27
+ /**
28
+ * Create a new help request
29
+ */ createHelpRequest(requestingAgentId, helperAgentId, reason) {
30
+ const requestId = this.generateRequestId(requestingAgentId, helperAgentId);
31
+ const request = {
32
+ id: requestId,
33
+ requestingAgentId,
34
+ helperAgentId,
35
+ requestedAt: Date.now(),
36
+ reason,
37
+ status: 'pending'
38
+ };
39
+ this.helpRequests.set(requestId, request);
40
+ this.metrics.totalRequests++;
41
+ this.metrics.activeRequests++;
42
+ return requestId;
43
+ }
44
+ /**
45
+ * Mark help request as started (helper transitioned to HELPING)
46
+ */ startHelp(requestId, checkpointId) {
47
+ const request = this.helpRequests.get(requestId);
48
+ if (!request) {
49
+ throw new Error(`Help request ${requestId} not found`);
50
+ }
51
+ request.startedAt = Date.now();
52
+ request.status = 'in_progress';
53
+ request.checkpointId = checkpointId;
54
+ // Track wait time
55
+ const waitTime = request.startedAt - request.requestedAt;
56
+ this.waitTimes.push(waitTime);
57
+ this.updateAverageWaitTime();
58
+ // Mark helper as active
59
+ this.activeHelpers.set(request.helperAgentId, requestId);
60
+ }
61
+ /**
62
+ * Mark help request as completed
63
+ */ completeHelp(requestId) {
64
+ const request = this.helpRequests.get(requestId);
65
+ if (!request) {
66
+ throw new Error(`Help request ${requestId} not found`);
67
+ }
68
+ request.completedAt = Date.now();
69
+ request.status = 'completed';
70
+ // Track help duration
71
+ if (request.startedAt) {
72
+ const duration = request.completedAt - request.startedAt;
73
+ this.helpDurations.push(duration);
74
+ this.updateAverageHelpDuration();
75
+ }
76
+ // Update metrics
77
+ this.metrics.completedRequests++;
78
+ this.metrics.activeRequests = Math.max(0, this.metrics.activeRequests - 1);
79
+ // Remove from active helpers
80
+ this.activeHelpers.delete(request.helperAgentId);
81
+ }
82
+ /**
83
+ * Mark help request as failed
84
+ */ failHelp(requestId, error) {
85
+ const request = this.helpRequests.get(requestId);
86
+ if (!request) {
87
+ throw new Error(`Help request ${requestId} not found`);
88
+ }
89
+ request.status = 'failed';
90
+ request.error = error;
91
+ this.metrics.failedRequests++;
92
+ this.metrics.activeRequests = Math.max(0, this.metrics.activeRequests - 1);
93
+ // Remove from active helpers
94
+ this.activeHelpers.delete(request.helperAgentId);
95
+ }
96
+ /**
97
+ * Track checkpoint recovery for helper state preservation
98
+ */ trackCheckpointRecovery(recoveryLatencyMs) {
99
+ this.checkpointRecoveryTimes.push(recoveryLatencyMs);
100
+ this.metrics.totalCheckpointRecoveries++;
101
+ this.updateCheckpointRecoveryMetrics();
102
+ // Enforce p99 < 500ms requirement
103
+ if (recoveryLatencyMs > 500 && this.metrics.totalCheckpointRecoveries >= 100) {
104
+ console.warn(`⚠️ Checkpoint recovery exceeded 500ms: ${recoveryLatencyMs.toFixed(2)}ms (p99: ${this.metrics.p99CheckpointRecoveryMs.toFixed(2)}ms)`);
105
+ }
106
+ }
107
+ /**
108
+ * Get help request by ID
109
+ */ getHelpRequest(requestId) {
110
+ return this.helpRequests.get(requestId);
111
+ }
112
+ /**
113
+ * Get active help request for helper agent
114
+ */ getActiveHelpForAgent(helperAgentId) {
115
+ const requestId = this.activeHelpers.get(helperAgentId);
116
+ if (!requestId) {
117
+ return undefined;
118
+ }
119
+ return this.helpRequests.get(requestId);
120
+ }
121
+ /**
122
+ * Get all active help requests
123
+ */ getActiveHelpRequests() {
124
+ return Array.from(this.helpRequests.values()).filter((r)=>r.status === 'in_progress' || r.status === 'pending');
125
+ }
126
+ /**
127
+ * Get help request metrics
128
+ */ getMetrics() {
129
+ return {
130
+ ...this.metrics
131
+ };
132
+ }
133
+ /**
134
+ * Reset metrics (for testing)
135
+ */ resetMetrics() {
136
+ this.helpRequests.clear();
137
+ this.activeHelpers.clear();
138
+ this.waitTimes = [];
139
+ this.helpDurations = [];
140
+ this.checkpointRecoveryTimes = [];
141
+ this.metrics = {
142
+ totalRequests: 0,
143
+ completedRequests: 0,
144
+ failedRequests: 0,
145
+ averageWaitTimeMs: 0,
146
+ averageHelpDurationMs: 0,
147
+ p99CheckpointRecoveryMs: 0,
148
+ totalCheckpointRecoveries: 0,
149
+ activeRequests: 0
150
+ };
151
+ }
152
+ /**
153
+ * Private: Generate unique request ID
154
+ */ generateRequestId(requestingAgentId, helperAgentId) {
155
+ const timestamp = Date.now();
156
+ return `help_${requestingAgentId}_${helperAgentId}_${timestamp}`;
157
+ }
158
+ /**
159
+ * Private: Update average wait time
160
+ */ updateAverageWaitTime() {
161
+ if (this.waitTimes.length === 0) return;
162
+ const sum = this.waitTimes.reduce((acc, time)=>acc + time, 0);
163
+ this.metrics.averageWaitTimeMs = sum / this.waitTimes.length;
164
+ // Keep only last 1000 samples
165
+ if (this.waitTimes.length > 1000) {
166
+ this.waitTimes = this.waitTimes.slice(-1000);
167
+ }
168
+ }
169
+ /**
170
+ * Private: Update average help duration
171
+ */ updateAverageHelpDuration() {
172
+ if (this.helpDurations.length === 0) return;
173
+ const sum = this.helpDurations.reduce((acc, time)=>acc + time, 0);
174
+ this.metrics.averageHelpDurationMs = sum / this.helpDurations.length;
175
+ // Keep only last 1000 samples
176
+ if (this.helpDurations.length > 1000) {
177
+ this.helpDurations = this.helpDurations.slice(-1000);
178
+ }
179
+ }
180
+ /**
181
+ * Private: Update checkpoint recovery metrics
182
+ */ updateCheckpointRecoveryMetrics() {
183
+ if (this.checkpointRecoveryTimes.length === 0) return;
184
+ // Calculate p99
185
+ const sorted = [
186
+ ...this.checkpointRecoveryTimes
187
+ ].sort((a, b)=>a - b);
188
+ const p99Index = Math.floor(sorted.length * 0.99);
189
+ this.metrics.p99CheckpointRecoveryMs = sorted[p99Index] || sorted[sorted.length - 1];
190
+ // Keep only last 1000 samples for p99 calculation
191
+ if (this.checkpointRecoveryTimes.length > 1000) {
192
+ this.checkpointRecoveryTimes = this.checkpointRecoveryTimes.slice(-1000);
193
+ }
194
+ }
195
+ /**
196
+ * Clean up old completed/failed requests (retention policy)
197
+ */ cleanup(retentionMs = 3600000) {
198
+ const cutoffTime = Date.now() - retentionMs;
199
+ let deletedCount = 0;
200
+ for (const [requestId, request] of this.helpRequests.entries()){
201
+ const isOld = request.completedAt ? request.completedAt < cutoffTime : request.requestedAt < cutoffTime;
202
+ if ((request.status === 'completed' || request.status === 'failed') && isOld) {
203
+ this.helpRequests.delete(requestId);
204
+ deletedCount++;
205
+ }
206
+ }
207
+ return deletedCount;
208
+ }
209
+ }
210
+
211
+ //# sourceMappingURL=help-request-metrics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/coordination/v2/core/help-request-metrics.ts"],"names":["HelpRequestTracker","helpRequests","Map","activeHelpers","waitTimes","helpDurations","checkpointRecoveryTimes","metrics","totalRequests","completedRequests","failedRequests","averageWaitTimeMs","averageHelpDurationMs","p99CheckpointRecoveryMs","totalCheckpointRecoveries","activeRequests","createHelpRequest","requestingAgentId","helperAgentId","reason","requestId","generateRequestId","request","id","requestedAt","Date","now","status","set","startHelp","checkpointId","get","Error","startedAt","waitTime","push","updateAverageWaitTime","completeHelp","completedAt","duration","updateAverageHelpDuration","Math","max","delete","failHelp","error","trackCheckpointRecovery","recoveryLatencyMs","updateCheckpointRecoveryMetrics","console","warn","toFixed","getHelpRequest","getActiveHelpForAgent","undefined","getActiveHelpRequests","Array","from","values","filter","r","getMetrics","resetMetrics","clear","timestamp","length","sum","reduce","acc","time","slice","sorted","sort","a","b","p99Index","floor","cleanup","retentionMs","cutoffTime","deletedCount","entries","isOld"],"mappings":"AAAA;;;;;;;;CAQC,GAgFD;;CAEC,GACD,OAAO,MAAMA;IACHC,eAAyC,IAAIC,MAAM;IACnDC,gBAAqC,IAAID,MAAM;IAC/CE,YAAsB,EAAE,CAAC;IACzBC,gBAA0B,EAAE,CAAC;IAC7BC,0BAAoC,EAAE,CAAC;IAEvCC,UAA8B;QACpCC,eAAe;QACfC,mBAAmB;QACnBC,gBAAgB;QAChBC,mBAAmB;QACnBC,uBAAuB;QACvBC,yBAAyB;QACzBC,2BAA2B;QAC3BC,gBAAgB;IAClB,EAAE;IAEF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G,EAAE;QAEpF,kDAAkD;QAClD,IAAI,IAAI,CAAC3D,uBAAuB,CAAC2D,MAAM,GAAG,MAAM;YAC9C,IAAI,CAAC3D,uBAAuB,GAAG,IAAI,CAACA,uBAAuB,CAACgE,KAAK,CAAC,CAAC;QACrE;IACF;IAEA;;GAEC,GACDO,QAAQC,cAAsB,OAAO,EAAU;QAC7C,MAAMC,aAAatD,KAAKC,GAAG,KAAKoD;QAChC,IAAIE,eAAe;QAEnB,KAAK,MAAM,CAAC5D,WAAWE,QAAQ,IAAI,IAAI,CAACrB,YAAY,CAACgF,OAAO,GAAI;YAC9D,MAAMC,QAAQ5D,QAAQgB,WAAW,GAC7BhB,QAAQgB,WAAW,GAAGyC,aACtBzD,QAAQE,WAAW,GAAGuD;YAE1B,IAAI,AAACzD,CAAAA,QAAQK,MAAM,KAAK,eAAeL,QAAQK,MAAM,KAAK,QAAO,KAAMuD,OAAO;gBAC5E,IAAI,CAACjF,YAAY,CAAC0C,MAAM,CAACvB;gBACzB4D;YACF;QACF;QAEA,OAAOA;IACT;AACF"}
@@ -13,6 +13,7 @@ export { AgentState } from './agent-state.js';
13
13
  export { StateMachine } from './state-machine.js';
14
14
  export { STATE_TRANSITIONS, EVENT_STATE_MAPPING, DEFAULT_STATE_MACHINE_CONFIG, validateTransitionMatrix, validateEventMapping, getValidNextStates, isValidTransition, getExpectedStateForEvent, validateStateMachineConfig } from './state-machine-config.js';
15
15
  export { TransitionEventType, validateTransition, createTransitionEvent, isEventType, isErrorEvent, isTerminalEvent } from './state-transition.js';
16
+ export { HelpRequestTracker } from './help-request-metrics.js';
16
17
  // ============================================
17
18
  // Phase 02: Dependency Graph
18
19
  // ============================================
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/coordination/v2/core/index.ts"],"names":["AgentState","StateMachine","STATE_TRANSITIONS","EVENT_STATE_MAPPING","DEFAULT_STATE_MACHINE_CONFIG","validateTransitionMatrix","validateEventMapping","getValidNextStates","isValidTransition","getExpectedStateForEvent","validateStateMachineConfig","TransitionEventType","validateTransition","createTransitionEvent","isEventType","isErrorEvent","isTerminalEvent","DependencyGraph","DependencyGraphError","DependencyNodeImpl","DependencyNodeStatus","DependencyNodeValidationError","DependencyResolver","TaskScheduler","MessagePriority","DeliverySemantics","MessageValidationError","MessageUtils","MessageBroker","MessageBrokerError","TopicManager","MessageRouter","DeadLetterQueue"],"mappings":"AAAA;;;;;;;;CAQC,GAED,+CAA+C;AAC/C,0BAA0B;AAC1B,+CAA+C;AAE/C,SACEA,UAAU,QACL,mBAAmB;AAE1B,SACEC,YAAY,QAMP,qBAAqB;AAE5B,SACEC,iBAAiB,EACjBC,mBAAmB,EAEnBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,oBAAoB,EACpBC,kBAAkB,EAClBC,iBAAiB,EACjBC,wBAAwB,EACxBC,0BAA0B,QACrB,4BAA4B;AAEnC,SACEC,mBAAmB,EASnBC,kBAAkB,EAClBC,qBAAqB,EACrBC,WAAW,EACXC,YAAY,EACZC,eAAe,QACV,wBAAwB;AAE/B,+CAA+C;AAC/C,6BAA6B;AAC7B,+CAA+C;AAE/C,SACEC,eAAe,EAEfC,oBAAoB,QAEf,wBAAwB;AAE/B,SACEC,kBAAkB,EAClBC,oBAAoB,EACpBC,6BAA6B,QAGxB,uBAAuB;AAE9B,SACEC,kBAAkB,QAGb,2BAA2B;AAElC,SACEC,aAAa,QAMR,sBAAsB;AAE7B,+CAA+C;AAC/C,wBAAwB;AACxB,+CAA+C;AAE/C,SAGEC,eAAe,EACfC,iBAAiB,EACjBC,sBAAsB,EAQtBC,YAAY,QACP,eAAe;AAEtB,SACEC,aAAa,EACbC,kBAAkB,QAEb,sBAAsB;AAE7B,SACEC,YAAY,QAGP,qBAAqB;AAE5B,SACEC,aAAa,QAIR,sBAAsB;AAE7B,SACEC,eAAe,QAKV,yBAAyB"}
1
+ {"version":3,"sources":["../../../../../../src/coordination/v2/core/index.ts"],"names":["AgentState","StateMachine","STATE_TRANSITIONS","EVENT_STATE_MAPPING","DEFAULT_STATE_MACHINE_CONFIG","validateTransitionMatrix","validateEventMapping","getValidNextStates","isValidTransition","getExpectedStateForEvent","validateStateMachineConfig","TransitionEventType","validateTransition","createTransitionEvent","isEventType","isErrorEvent","isTerminalEvent","HelpRequestTracker","DependencyGraph","DependencyGraphError","DependencyNodeImpl","DependencyNodeStatus","DependencyNodeValidationError","DependencyResolver","TaskScheduler","MessagePriority","DeliverySemantics","MessageValidationError","MessageUtils","MessageBroker","MessageBrokerError","TopicManager","MessageRouter","DeadLetterQueue"],"mappings":"AAAA;;;;;;;;CAQC,GAED,+CAA+C;AAC/C,0BAA0B;AAC1B,+CAA+C;AAE/C,SACEA,UAAU,QACL,mBAAmB;AAE1B,SACEC,YAAY,QAMP,qBAAqB;AAE5B,SACEC,iBAAiB,EACjBC,mBAAmB,EAEnBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,oBAAoB,EACpBC,kBAAkB,EAClBC,iBAAiB,EACjBC,wBAAwB,EACxBC,0BAA0B,QACrB,4BAA4B;AAEnC,SACEC,mBAAmB,EASnBC,kBAAkB,EAClBC,qBAAqB,EACrBC,WAAW,EACXC,YAAY,EACZC,eAAe,QACV,wBAAwB;AAE/B,SACEC,kBAAkB,QAIb,4BAA4B;AAEnC,+CAA+C;AAC/C,6BAA6B;AAC7B,+CAA+C;AAE/C,SACEC,eAAe,EAEfC,oBAAoB,QAEf,wBAAwB;AAE/B,SACEC,kBAAkB,EAClBC,oBAAoB,EACpBC,6BAA6B,QAGxB,uBAAuB;AAE9B,SACEC,kBAAkB,QAGb,2BAA2B;AAElC,SACEC,aAAa,QAMR,sBAAsB;AAE7B,+CAA+C;AAC/C,wBAAwB;AACxB,+CAA+C;AAE/C,SAGEC,eAAe,EACfC,iBAAiB,EACjBC,sBAAsB,EAQtBC,YAAY,QACP,eAAe;AAEtB,SACEC,aAAa,EACbC,kBAAkB,QAEb,sBAAsB;AAE7B,SACEC,YAAY,QAGP,qBAAqB;AAE5B,SACEC,aAAa,QAIR,sBAAsB;AAE7B,SACEC,eAAe,QAKV,yBAAyB"}