nexus-agents 2.93.0 → 2.94.0

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 (117) hide show
  1. package/dist/{child-mcp-config-WNISXFYD.js → child-mcp-config-PPFHJZSO.js} +2 -2
  2. package/dist/{chunk-RTUZSR4R.js → chunk-24WC4XO2.js} +2 -2
  3. package/dist/{chunk-XVY3I7JT.js → chunk-2YMRRZRM.js} +9 -12
  4. package/dist/chunk-2YMRRZRM.js.map +1 -0
  5. package/dist/{chunk-4A4WPM75.js → chunk-43UDRX3N.js} +8 -10
  6. package/dist/{chunk-4A4WPM75.js.map → chunk-43UDRX3N.js.map} +1 -1
  7. package/dist/{chunk-BHA6V7GK.js → chunk-4QESFYGV.js} +4 -4
  8. package/dist/{chunk-AZP66FIA.js → chunk-5B4VLSMP.js} +3 -3
  9. package/dist/{chunk-VSG6RSE6.js → chunk-5ZB3MTA7.js} +3 -3
  10. package/dist/{chunk-FTCU55O6.js → chunk-63OGXDHS.js} +4 -4
  11. package/dist/{chunk-G5IDRWWI.js → chunk-76535ZNP.js} +4 -4
  12. package/dist/{chunk-SHSKW5ML.js → chunk-77JUKFTG.js} +7 -7
  13. package/dist/{chunk-ZYHHDPFW.js → chunk-ADRTAUJA.js} +4 -4
  14. package/dist/{chunk-DTFMYM3V.js → chunk-EB43BGAR.js} +2 -2
  15. package/dist/{chunk-T73G67GT.js → chunk-EDPDH5YT.js} +3 -3
  16. package/dist/{chunk-CPH6LKXO.js → chunk-EJR6U67L.js} +2 -2
  17. package/dist/{chunk-ULBKFMVO.js → chunk-FUGPKYEJ.js} +2 -2
  18. package/dist/{chunk-ZOAU7RE4.js → chunk-G5EBHQ2L.js} +4 -6
  19. package/dist/{chunk-ZOAU7RE4.js.map → chunk-G5EBHQ2L.js.map} +1 -1
  20. package/dist/{chunk-SMGH2B3A.js → chunk-GMZDRTVJ.js} +20 -3
  21. package/dist/chunk-GMZDRTVJ.js.map +1 -0
  22. package/dist/{chunk-57OH2O2U.js → chunk-KSJPDQSG.js} +2 -2
  23. package/dist/{chunk-JEBWSHSU.js → chunk-L7I55FAN.js} +2 -2
  24. package/dist/{chunk-JCETWDU7.js → chunk-LCLVSNST.js} +2 -2
  25. package/dist/{chunk-K7VGX37L.js → chunk-OKGHHCS5.js} +3 -3
  26. package/dist/{chunk-WU3SUA35.js → chunk-OSSGG7KW.js} +2 -2
  27. package/dist/{chunk-HKISF2E7.js → chunk-OT6V5ROA.js} +225 -8
  28. package/dist/chunk-OT6V5ROA.js.map +1 -0
  29. package/dist/{chunk-BNHBZRU7.js → chunk-Q3NUA7CW.js} +3 -3
  30. package/dist/{chunk-E3QWWP67.js → chunk-R2NKJPUX.js} +2 -2
  31. package/dist/{chunk-2T4NV6QT.js → chunk-ROAANOOB.js} +2 -2
  32. package/dist/{chunk-LJMO5P6O.js → chunk-TNBWHOPY.js} +23 -13
  33. package/dist/chunk-TNBWHOPY.js.map +1 -0
  34. package/dist/{chunk-IJ2AZZVH.js → chunk-UC3PVIN4.js} +141 -28
  35. package/dist/chunk-UC3PVIN4.js.map +1 -0
  36. package/dist/{chunk-SORBJPRA.js → chunk-XBPFVWA2.js} +2 -2
  37. package/dist/{chunk-2IBJC2EP.js → chunk-YDXGYKZJ.js} +2 -2
  38. package/dist/{chunk-5BTRDVWC.js → chunk-ZY2EMD72.js} +5 -5
  39. package/dist/{cli-circuit-breaker-6E4E2IU7.js → cli-circuit-breaker-BAERQZ3H.js} +4 -4
  40. package/dist/cli.js +68 -42
  41. package/dist/cli.js.map +1 -1
  42. package/dist/{composite-router-MQOPXLVV.js → composite-router-EONKFRDD.js} +2 -2
  43. package/dist/{consensus-vote-ZRADOLXH.js → consensus-vote-TO5575P3.js} +12 -13
  44. package/dist/{context-retriever-TZGIETJO.js → context-retriever-JM564MOV.js} +6 -6
  45. package/dist/{doctor-deep-OU2WC55V.js → doctor-deep-VFBQ7TY4.js} +3 -3
  46. package/dist/{expert-bridge-WP5ZWXFY.js → expert-bridge-OXME7FES.js} +4 -4
  47. package/dist/{factory-RJTRVII5.js → factory-FVZLVIYH.js} +5 -5
  48. package/dist/{factory-2TN2VZTR.js → factory-MDT5CFA5.js} +5 -5
  49. package/dist/index.d.ts +215 -207
  50. package/dist/index.js +26 -27
  51. package/dist/index.js.map +1 -1
  52. package/dist/{init-opencode-AYMNMWU7.js → init-opencode-Y6XKR6WS.js} +5 -5
  53. package/dist/{issue-triage-QIVZN3PJ.js → issue-triage-2XVD4JQ7.js} +5 -5
  54. package/dist/{pr-reviewer-helpers-P24OBKVM.js → pr-reviewer-helpers-JLWEQIN6.js} +4 -4
  55. package/dist/{registry-command-KWWOKJ5C.js → registry-command-FYVOMCBG.js} +2 -2
  56. package/dist/{repo-security-plan-KZNEXDCI.js → repo-security-plan-JRDHWI2R.js} +3 -3
  57. package/dist/{research-helpers-synthesize-DH5PPX7A.js → research-helpers-synthesize-F7L7M7FJ.js} +3 -4
  58. package/dist/{routing-memory-AGHJQTRH.js → routing-memory-JAV2ICXR.js} +2 -2
  59. package/dist/{session-memory-O24IVZAW.js → session-memory-2XAGY3PX.js} +3 -3
  60. package/dist/{setup-command-NBXZ4NGV.js → setup-command-6WVEOE4Q.js} +11 -12
  61. package/dist/{setup-config-Y4JA5QWO.js → setup-config-KUZU2GFI.js} +3 -3
  62. package/dist/{setup-custom-api-UNX4OJEX.js → setup-custom-api-3M7CU3TF.js} +4 -5
  63. package/dist/{setup-custom-api-UNX4OJEX.js.map → setup-custom-api-3M7CU3TF.js.map} +1 -1
  64. package/dist/{tool-memory-UEQNXIGC.js → tool-memory-YWX4FTIQ.js} +5 -5
  65. package/dist/{weather-report-S5YXRY7G.js → weather-report-ZZM5EU7N.js} +2 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-HKISF2E7.js.map +0 -1
  68. package/dist/chunk-IJ2AZZVH.js.map +0 -1
  69. package/dist/chunk-LJMO5P6O.js.map +0 -1
  70. package/dist/chunk-NESW2TTD.js +0 -134
  71. package/dist/chunk-NESW2TTD.js.map +0 -1
  72. package/dist/chunk-SMGH2B3A.js.map +0 -1
  73. package/dist/chunk-XVY3I7JT.js.map +0 -1
  74. /package/dist/{child-mcp-config-WNISXFYD.js.map → child-mcp-config-PPFHJZSO.js.map} +0 -0
  75. /package/dist/{chunk-RTUZSR4R.js.map → chunk-24WC4XO2.js.map} +0 -0
  76. /package/dist/{chunk-BHA6V7GK.js.map → chunk-4QESFYGV.js.map} +0 -0
  77. /package/dist/{chunk-AZP66FIA.js.map → chunk-5B4VLSMP.js.map} +0 -0
  78. /package/dist/{chunk-VSG6RSE6.js.map → chunk-5ZB3MTA7.js.map} +0 -0
  79. /package/dist/{chunk-FTCU55O6.js.map → chunk-63OGXDHS.js.map} +0 -0
  80. /package/dist/{chunk-G5IDRWWI.js.map → chunk-76535ZNP.js.map} +0 -0
  81. /package/dist/{chunk-SHSKW5ML.js.map → chunk-77JUKFTG.js.map} +0 -0
  82. /package/dist/{chunk-ZYHHDPFW.js.map → chunk-ADRTAUJA.js.map} +0 -0
  83. /package/dist/{chunk-DTFMYM3V.js.map → chunk-EB43BGAR.js.map} +0 -0
  84. /package/dist/{chunk-T73G67GT.js.map → chunk-EDPDH5YT.js.map} +0 -0
  85. /package/dist/{chunk-CPH6LKXO.js.map → chunk-EJR6U67L.js.map} +0 -0
  86. /package/dist/{chunk-ULBKFMVO.js.map → chunk-FUGPKYEJ.js.map} +0 -0
  87. /package/dist/{chunk-57OH2O2U.js.map → chunk-KSJPDQSG.js.map} +0 -0
  88. /package/dist/{chunk-JEBWSHSU.js.map → chunk-L7I55FAN.js.map} +0 -0
  89. /package/dist/{chunk-JCETWDU7.js.map → chunk-LCLVSNST.js.map} +0 -0
  90. /package/dist/{chunk-K7VGX37L.js.map → chunk-OKGHHCS5.js.map} +0 -0
  91. /package/dist/{chunk-WU3SUA35.js.map → chunk-OSSGG7KW.js.map} +0 -0
  92. /package/dist/{chunk-BNHBZRU7.js.map → chunk-Q3NUA7CW.js.map} +0 -0
  93. /package/dist/{chunk-E3QWWP67.js.map → chunk-R2NKJPUX.js.map} +0 -0
  94. /package/dist/{chunk-2T4NV6QT.js.map → chunk-ROAANOOB.js.map} +0 -0
  95. /package/dist/{chunk-SORBJPRA.js.map → chunk-XBPFVWA2.js.map} +0 -0
  96. /package/dist/{chunk-2IBJC2EP.js.map → chunk-YDXGYKZJ.js.map} +0 -0
  97. /package/dist/{chunk-5BTRDVWC.js.map → chunk-ZY2EMD72.js.map} +0 -0
  98. /package/dist/{cli-circuit-breaker-6E4E2IU7.js.map → cli-circuit-breaker-BAERQZ3H.js.map} +0 -0
  99. /package/dist/{composite-router-MQOPXLVV.js.map → composite-router-EONKFRDD.js.map} +0 -0
  100. /package/dist/{consensus-vote-ZRADOLXH.js.map → consensus-vote-TO5575P3.js.map} +0 -0
  101. /package/dist/{context-retriever-TZGIETJO.js.map → context-retriever-JM564MOV.js.map} +0 -0
  102. /package/dist/{doctor-deep-OU2WC55V.js.map → doctor-deep-VFBQ7TY4.js.map} +0 -0
  103. /package/dist/{expert-bridge-WP5ZWXFY.js.map → expert-bridge-OXME7FES.js.map} +0 -0
  104. /package/dist/{factory-2TN2VZTR.js.map → factory-FVZLVIYH.js.map} +0 -0
  105. /package/dist/{factory-RJTRVII5.js.map → factory-MDT5CFA5.js.map} +0 -0
  106. /package/dist/{init-opencode-AYMNMWU7.js.map → init-opencode-Y6XKR6WS.js.map} +0 -0
  107. /package/dist/{issue-triage-QIVZN3PJ.js.map → issue-triage-2XVD4JQ7.js.map} +0 -0
  108. /package/dist/{pr-reviewer-helpers-P24OBKVM.js.map → pr-reviewer-helpers-JLWEQIN6.js.map} +0 -0
  109. /package/dist/{registry-command-KWWOKJ5C.js.map → registry-command-FYVOMCBG.js.map} +0 -0
  110. /package/dist/{repo-security-plan-KZNEXDCI.js.map → repo-security-plan-JRDHWI2R.js.map} +0 -0
  111. /package/dist/{research-helpers-synthesize-DH5PPX7A.js.map → research-helpers-synthesize-F7L7M7FJ.js.map} +0 -0
  112. /package/dist/{routing-memory-AGHJQTRH.js.map → routing-memory-JAV2ICXR.js.map} +0 -0
  113. /package/dist/{session-memory-O24IVZAW.js.map → session-memory-2XAGY3PX.js.map} +0 -0
  114. /package/dist/{setup-command-NBXZ4NGV.js.map → setup-command-6WVEOE4Q.js.map} +0 -0
  115. /package/dist/{setup-config-Y4JA5QWO.js.map → setup-config-KUZU2GFI.js.map} +0 -0
  116. /package/dist/{tool-memory-UEQNXIGC.js.map → tool-memory-YWX4FTIQ.js.map} +0 -0
  117. /package/dist/{weather-report-S5YXRY7G.js.map → weather-report-ZZM5EU7N.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  CompositeRoutingError,
5
5
  DEFAULT_COMPOSITE_CONFIG,
6
6
  createCompositeRouter
7
- } from "./chunk-HKISF2E7.js";
7
+ } from "./chunk-OT6V5ROA.js";
8
8
  import "./chunk-CH7QIDHQ.js";
9
9
  import "./chunk-PR4QN5HX.js";
10
10
  export {
@@ -14,4 +14,4 @@ export {
14
14
  DEFAULT_COMPOSITE_CONFIG,
15
15
  createCompositeRouter
16
16
  };
17
- //# sourceMappingURL=composite-router-MQOPXLVV.js.map
17
+ //# sourceMappingURL=composite-router-EONKFRDD.js.map
@@ -6,20 +6,19 @@ import {
6
6
  executeVoting,
7
7
  registerConsensusVoteTool,
8
8
  resetCorrelationTracker
9
- } from "./chunk-LJMO5P6O.js";
10
- import "./chunk-JEBWSHSU.js";
11
- import "./chunk-2IBJC2EP.js";
12
- import "./chunk-FTCU55O6.js";
13
- import "./chunk-57OH2O2U.js";
14
- import "./chunk-4A4WPM75.js";
15
- import "./chunk-NESW2TTD.js";
9
+ } from "./chunk-TNBWHOPY.js";
10
+ import "./chunk-L7I55FAN.js";
11
+ import "./chunk-YDXGYKZJ.js";
12
+ import "./chunk-63OGXDHS.js";
13
+ import "./chunk-KSJPDQSG.js";
14
+ import "./chunk-43UDRX3N.js";
16
15
  import "./chunk-6T3EPABN.js";
17
- import "./chunk-BHA6V7GK.js";
18
- import "./chunk-RTUZSR4R.js";
19
- import "./chunk-SORBJPRA.js";
16
+ import "./chunk-4QESFYGV.js";
17
+ import "./chunk-24WC4XO2.js";
18
+ import "./chunk-XBPFVWA2.js";
20
19
  import "./chunk-PQHVC4BD.js";
21
- import "./chunk-JCETWDU7.js";
22
- import "./chunk-HKISF2E7.js";
20
+ import "./chunk-LCLVSNST.js";
21
+ import "./chunk-OT6V5ROA.js";
23
22
  import "./chunk-CH7QIDHQ.js";
24
23
  import "./chunk-PR4QN5HX.js";
25
24
  export {
@@ -31,4 +30,4 @@ export {
31
30
  registerConsensusVoteTool,
32
31
  resetCorrelationTracker
33
32
  };
34
- //# sourceMappingURL=consensus-vote-ZRADOLXH.js.map
33
+ //# sourceMappingURL=consensus-vote-TO5575P3.js.map
@@ -2,13 +2,13 @@ import {
2
2
  getContextForTask,
3
3
  inferTaskCategory,
4
4
  summarizeContextForPrompt
5
- } from "./chunk-K7VGX37L.js";
6
- import "./chunk-FTCU55O6.js";
5
+ } from "./chunk-OKGHHCS5.js";
6
+ import "./chunk-63OGXDHS.js";
7
7
  import "./chunk-6T3EPABN.js";
8
- import "./chunk-SORBJPRA.js";
8
+ import "./chunk-XBPFVWA2.js";
9
9
  import "./chunk-PQHVC4BD.js";
10
- import "./chunk-JCETWDU7.js";
11
- import "./chunk-HKISF2E7.js";
10
+ import "./chunk-LCLVSNST.js";
11
+ import "./chunk-OT6V5ROA.js";
12
12
  import "./chunk-CH7QIDHQ.js";
13
13
  import "./chunk-PR4QN5HX.js";
14
14
  export {
@@ -16,4 +16,4 @@ export {
16
16
  inferTaskCategory,
17
17
  summarizeContextForPrompt
18
18
  };
19
- //# sourceMappingURL=context-retriever-TZGIETJO.js.map
19
+ //# sourceMappingURL=context-retriever-JM564MOV.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  formatDeepDiagnostics,
3
3
  runDeepDiagnostics
4
- } from "./chunk-E3QWWP67.js";
5
- import "./chunk-HKISF2E7.js";
4
+ } from "./chunk-R2NKJPUX.js";
5
+ import "./chunk-OT6V5ROA.js";
6
6
  import "./chunk-CH7QIDHQ.js";
7
7
  import "./chunk-PR4QN5HX.js";
8
8
  export {
9
9
  formatDeepDiagnostics,
10
10
  runDeepDiagnostics
11
11
  };
12
- //# sourceMappingURL=doctor-deep-OU2WC55V.js.map
12
+ //# sourceMappingURL=doctor-deep-VFBQ7TY4.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  executeExpert,
3
3
  shutdownExpertBridge
4
- } from "./chunk-XVY3I7JT.js";
5
- import "./chunk-SMGH2B3A.js";
6
- import "./chunk-HKISF2E7.js";
4
+ } from "./chunk-2YMRRZRM.js";
5
+ import "./chunk-GMZDRTVJ.js";
6
+ import "./chunk-OT6V5ROA.js";
7
7
  import "./chunk-CH7QIDHQ.js";
8
8
  import "./chunk-PR4QN5HX.js";
9
9
  export {
10
10
  executeExpert,
11
11
  shutdownExpertBridge
12
12
  };
13
- //# sourceMappingURL=expert-bridge-WP5ZWXFY.js.map
13
+ //# sourceMappingURL=expert-bridge-OXME7FES.js.map
@@ -3,10 +3,10 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-BHA6V7GK.js";
7
- import "./chunk-RTUZSR4R.js";
8
- import "./chunk-SORBJPRA.js";
9
- import "./chunk-HKISF2E7.js";
6
+ } from "./chunk-4QESFYGV.js";
7
+ import "./chunk-24WC4XO2.js";
8
+ import "./chunk-XBPFVWA2.js";
9
+ import "./chunk-OT6V5ROA.js";
10
10
  import "./chunk-CH7QIDHQ.js";
11
11
  import "./chunk-PR4QN5HX.js";
12
12
  export {
@@ -15,4 +15,4 @@ export {
15
15
  getAvailableClis,
16
16
  isCliAvailable
17
17
  };
18
- //# sourceMappingURL=factory-RJTRVII5.js.map
18
+ //# sourceMappingURL=factory-FVZLVIYH.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-ZYHHDPFW.js";
5
- import "./chunk-WU3SUA35.js";
6
- import "./chunk-CPH6LKXO.js";
7
- import "./chunk-HKISF2E7.js";
4
+ } from "./chunk-ADRTAUJA.js";
5
+ import "./chunk-OSSGG7KW.js";
6
+ import "./chunk-EJR6U67L.js";
7
+ import "./chunk-OT6V5ROA.js";
8
8
  import "./chunk-CH7QIDHQ.js";
9
9
  import "./chunk-PR4QN5HX.js";
10
10
  export {
11
11
  createGitHubProvider,
12
12
  createScmProvider
13
13
  };
14
- //# sourceMappingURL=factory-2TN2VZTR.js.map
14
+ //# sourceMappingURL=factory-MDT5CFA5.js.map
package/dist/index.d.ts CHANGED
@@ -2745,6 +2745,14 @@ interface CompletionRequest {
2745
2745
  temperature?: number;
2746
2746
  /** Maximum tokens to generate */
2747
2747
  maxTokens?: number;
2748
+ /**
2749
+ * Per-request timeout override in milliseconds. When set, adapters that
2750
+ * support it use this instead of their construction-time default — lets a
2751
+ * long-running caller (e.g. a consensus vote with a 300s budget) prevent the
2752
+ * adapter's shorter standard timeout from firing first (#3304). Adapters that
2753
+ * don't support per-request timeouts ignore it.
2754
+ */
2755
+ timeoutMs?: number;
2748
2756
  /** Tools available for the model */
2749
2757
  tools?: ToolDefinition[];
2750
2758
  /**
@@ -18815,6 +18823,213 @@ declare function getSwarmObserver(config?: Partial<SwarmObserverConfig>): SwarmO
18815
18823
  */
18816
18824
  declare function setSwarmObserver(observer: SwarmObserver): void;
18817
18825
 
18826
+ /**
18827
+ * Pipeline Event Types — V2 Observability (Issue #912, Phase 4-1)
18828
+ *
18829
+ * Typed event definitions for the pipeline event bus.
18830
+ * Every event carries a timestamp and relevant correlation IDs.
18831
+ *
18832
+ * @see docs/v2/08-observability-eventing.md
18833
+ * @module pipeline/event-types
18834
+ */
18835
+ /** All valid pipeline event types. */
18836
+ declare const PIPELINE_EVENT_TYPES: readonly ["task.created", "task.status_changed", "task.completed", "task.failed", "pipeline.started", "pipeline.completed", "pipeline.checkpoint", "stage.started", "stage.completed", "stage.failed", "stage.retrying", "policy.evaluated", "artifact.created", "model.called", "routing.decision", "tool.invoked", "tool.completed", "wave.started", "wave.completed", "signal.fitness_declined", "signal.swarm_unhealthy", "signal.vote_rejected"];
18837
+ type PipelineEventType = (typeof PIPELINE_EVENT_TYPES)[number];
18838
+ /** Base fields present on every event. */
18839
+ interface BaseEvent {
18840
+ readonly timestamp: number;
18841
+ }
18842
+ /** Task lifecycle events. */
18843
+ interface TaskCreatedEvent extends BaseEvent {
18844
+ readonly type: 'task.created';
18845
+ readonly taskId: string;
18846
+ }
18847
+ interface TaskStatusChangedEvent extends BaseEvent {
18848
+ readonly type: 'task.status_changed';
18849
+ readonly taskId: string;
18850
+ readonly from: string;
18851
+ readonly to: string;
18852
+ }
18853
+ interface TaskCompletedEvent extends BaseEvent {
18854
+ readonly type: 'task.completed';
18855
+ readonly taskId: string;
18856
+ readonly success: boolean;
18857
+ }
18858
+ interface TaskFailedEvent extends BaseEvent {
18859
+ readonly type: 'task.failed';
18860
+ readonly taskId: string;
18861
+ readonly error: string;
18862
+ }
18863
+ /** Pipeline lifecycle events. */
18864
+ interface PipelineStartedEvent extends BaseEvent {
18865
+ readonly type: 'pipeline.started';
18866
+ readonly taskId: string;
18867
+ readonly executionId: string;
18868
+ }
18869
+ interface PipelineCompletedEvent extends BaseEvent {
18870
+ readonly type: 'pipeline.completed';
18871
+ readonly executionId: string;
18872
+ readonly success: boolean;
18873
+ readonly durationMs: number;
18874
+ }
18875
+ interface PipelineCheckpointEvent extends BaseEvent {
18876
+ readonly type: 'pipeline.checkpoint';
18877
+ readonly executionId: string;
18878
+ readonly stepNumber: number;
18879
+ }
18880
+ /** Stage lifecycle events. */
18881
+ interface StageStartedEvent extends BaseEvent {
18882
+ readonly type: 'stage.started';
18883
+ readonly executionId: string;
18884
+ readonly stageId: string;
18885
+ readonly pluginId: string;
18886
+ }
18887
+ interface StageCompletedEvent extends BaseEvent {
18888
+ readonly type: 'stage.completed';
18889
+ readonly executionId: string;
18890
+ readonly stageId: string;
18891
+ readonly durationMs: number;
18892
+ readonly success: boolean;
18893
+ }
18894
+ interface StageFailedEvent extends BaseEvent {
18895
+ readonly type: 'stage.failed';
18896
+ readonly executionId: string;
18897
+ readonly stageId: string;
18898
+ readonly error: string;
18899
+ /** Error classification: retriable (transient) or fatal (permanent) (Epic #952). */
18900
+ readonly errorTaxonomy?: 'retriable' | 'fatal';
18901
+ }
18902
+ interface StageRetryingEvent extends BaseEvent {
18903
+ readonly type: 'stage.retrying';
18904
+ readonly executionId: string;
18905
+ readonly stageId: string;
18906
+ readonly attempt: number;
18907
+ }
18908
+ /** Policy gate events. */
18909
+ interface PolicyEvaluatedEvent extends BaseEvent {
18910
+ readonly type: 'policy.evaluated';
18911
+ readonly executionId: string;
18912
+ readonly gateId: string;
18913
+ readonly decision: string;
18914
+ }
18915
+ /** Artifact events. */
18916
+ interface ArtifactCreatedEvent extends BaseEvent {
18917
+ readonly type: 'artifact.created';
18918
+ readonly executionId: string;
18919
+ readonly artifactId: string;
18920
+ readonly artifactType: string;
18921
+ }
18922
+ /** Model call events. */
18923
+ interface ModelCalledEvent extends BaseEvent {
18924
+ readonly type: 'model.called';
18925
+ readonly executionId: string;
18926
+ readonly cli: string;
18927
+ readonly model: string;
18928
+ readonly tokensIn: number;
18929
+ readonly tokensOut: number;
18930
+ readonly durationMs: number;
18931
+ /** Agent that initiated this model call (Epic #952). */
18932
+ readonly agentId?: string;
18933
+ /** Agent role (e.g., code_expert, security_expert) (Epic #952). */
18934
+ readonly role?: string;
18935
+ }
18936
+ /** Routing decision events. */
18937
+ interface RoutingDecisionEvent extends BaseEvent {
18938
+ readonly type: 'routing.decision';
18939
+ readonly taskId: string;
18940
+ readonly selectedModel: string;
18941
+ /** Human-readable reasoning for model selection (Epic #952). */
18942
+ readonly reasoning?: string;
18943
+ /** Routing decision path (stage:result pairs) (Epic #952). */
18944
+ readonly decisionPath?: readonly string[];
18945
+ }
18946
+ /** Signal events (#3147 P2 — close the loop). Consumed by the TuneStage. */
18947
+ interface FitnessDeclinedSignalEvent extends BaseEvent {
18948
+ readonly type: 'signal.fitness_declined';
18949
+ /** Current fitness score (0-100). */
18950
+ readonly score: number;
18951
+ /** Governance floor the score fell below. */
18952
+ readonly floor: number;
18953
+ /** Fitness dimension that declined, when attributable. */
18954
+ readonly dimension?: string;
18955
+ }
18956
+ interface SwarmUnhealthySignalEvent extends BaseEvent {
18957
+ readonly type: 'signal.swarm_unhealthy';
18958
+ /** Agent/CLI whose health degraded. */
18959
+ readonly agentId: string;
18960
+ /** Human-readable degradation reason. */
18961
+ readonly reason: string;
18962
+ }
18963
+ interface VoteRejectedSignalEvent extends BaseEvent {
18964
+ readonly type: 'signal.vote_rejected';
18965
+ readonly proposalId: string;
18966
+ /** Approval percentage of the rejected vote (0-100). */
18967
+ readonly approvalPercentage: number;
18968
+ /** Rejection rule categories surfaced by voters. */
18969
+ readonly rejectionRules?: readonly string[];
18970
+ }
18971
+ /** MCP tool lifecycle events (Issue #1186). */
18972
+ interface ToolInvokedEvent extends BaseEvent {
18973
+ readonly type: 'tool.invoked';
18974
+ readonly toolName: string;
18975
+ readonly invocationId: string;
18976
+ }
18977
+ interface ToolCompletedEvent extends BaseEvent {
18978
+ readonly type: 'tool.completed';
18979
+ readonly toolName: string;
18980
+ readonly invocationId: string;
18981
+ readonly durationMs: number;
18982
+ readonly success: boolean;
18983
+ readonly errorMessage?: string;
18984
+ }
18985
+ /** Wave dispatch events for multi-wave worker execution (Issue #1401, Phase 6.2). */
18986
+ interface WaveStartedEvent extends BaseEvent {
18987
+ readonly type: 'wave.started';
18988
+ readonly executionId: string;
18989
+ readonly waveNumber: number;
18990
+ readonly totalWaves: number;
18991
+ readonly workerCount: number;
18992
+ readonly roles: readonly string[];
18993
+ }
18994
+ interface WaveCompletedEvent extends BaseEvent {
18995
+ readonly type: 'wave.completed';
18996
+ readonly executionId: string;
18997
+ readonly waveNumber: number;
18998
+ readonly totalWaves: number;
18999
+ readonly durationMs: number;
19000
+ readonly successes: number;
19001
+ readonly errors: number;
19002
+ }
19003
+ /** Discriminated union of all pipeline events. */
19004
+ type PipelineEvent = TaskCreatedEvent | TaskStatusChangedEvent | TaskCompletedEvent | TaskFailedEvent | PipelineStartedEvent | PipelineCompletedEvent | PipelineCheckpointEvent | StageStartedEvent | StageCompletedEvent | StageFailedEvent | StageRetryingEvent | PolicyEvaluatedEvent | ArtifactCreatedEvent | ModelCalledEvent | RoutingDecisionEvent | ToolInvokedEvent | ToolCompletedEvent | WaveStartedEvent | WaveCompletedEvent | FitnessDeclinedSignalEvent | SwarmUnhealthySignalEvent | VoteRejectedSignalEvent;
19005
+ /** Filter for subscribing to or querying events. */
19006
+ interface EventFilter {
19007
+ readonly type?: PipelineEventType | readonly PipelineEventType[];
19008
+ readonly taskId?: string;
19009
+ readonly executionId?: string;
19010
+ readonly since?: number;
19011
+ }
19012
+ /** Event handler callback. */
19013
+ type EventHandler = (event: PipelineEvent) => void;
19014
+ /** Unsubscribe function returned by subscribe. */
19015
+ type Unsubscribe = () => void;
19016
+ /**
19017
+ * Event bus interface — fire-and-forget event emission
19018
+ * with typed subscriptions and bounded query.
19019
+ */
19020
+ interface IEventBus {
19021
+ /** Emit an event. Handlers must not throw. */
19022
+ emit(event: PipelineEvent): void;
19023
+ /** Subscribe to events matching filter. Returns unsubscribe function. */
19024
+ subscribe(filter: EventFilter, handler: EventHandler): Unsubscribe;
19025
+ /** Query recent events (bounded buffer). */
19026
+ query(filter: EventFilter, limit?: number): readonly PipelineEvent[];
19027
+ /** Total events emitted (including evicted). */
19028
+ readonly totalEmitted: number;
19029
+ /** Current buffer size. */
19030
+ readonly bufferSize: number;
19031
+ }
19032
+
18818
19033
  /**
18819
19034
  * nexus-agents/observability - Dashboard Types
18820
19035
  *
@@ -20085,213 +20300,6 @@ declare class OrchestrationUnavailableError extends AgentError$1 {
20085
20300
  });
20086
20301
  }
20087
20302
 
20088
- /**
20089
- * Pipeline Event Types — V2 Observability (Issue #912, Phase 4-1)
20090
- *
20091
- * Typed event definitions for the pipeline event bus.
20092
- * Every event carries a timestamp and relevant correlation IDs.
20093
- *
20094
- * @see docs/v2/08-observability-eventing.md
20095
- * @module pipeline/event-types
20096
- */
20097
- /** All valid pipeline event types. */
20098
- declare const PIPELINE_EVENT_TYPES: readonly ["task.created", "task.status_changed", "task.completed", "task.failed", "pipeline.started", "pipeline.completed", "pipeline.checkpoint", "stage.started", "stage.completed", "stage.failed", "stage.retrying", "policy.evaluated", "artifact.created", "model.called", "routing.decision", "tool.invoked", "tool.completed", "wave.started", "wave.completed", "signal.fitness_declined", "signal.swarm_unhealthy", "signal.vote_rejected"];
20099
- type PipelineEventType = (typeof PIPELINE_EVENT_TYPES)[number];
20100
- /** Base fields present on every event. */
20101
- interface BaseEvent {
20102
- readonly timestamp: number;
20103
- }
20104
- /** Task lifecycle events. */
20105
- interface TaskCreatedEvent extends BaseEvent {
20106
- readonly type: 'task.created';
20107
- readonly taskId: string;
20108
- }
20109
- interface TaskStatusChangedEvent extends BaseEvent {
20110
- readonly type: 'task.status_changed';
20111
- readonly taskId: string;
20112
- readonly from: string;
20113
- readonly to: string;
20114
- }
20115
- interface TaskCompletedEvent extends BaseEvent {
20116
- readonly type: 'task.completed';
20117
- readonly taskId: string;
20118
- readonly success: boolean;
20119
- }
20120
- interface TaskFailedEvent extends BaseEvent {
20121
- readonly type: 'task.failed';
20122
- readonly taskId: string;
20123
- readonly error: string;
20124
- }
20125
- /** Pipeline lifecycle events. */
20126
- interface PipelineStartedEvent extends BaseEvent {
20127
- readonly type: 'pipeline.started';
20128
- readonly taskId: string;
20129
- readonly executionId: string;
20130
- }
20131
- interface PipelineCompletedEvent extends BaseEvent {
20132
- readonly type: 'pipeline.completed';
20133
- readonly executionId: string;
20134
- readonly success: boolean;
20135
- readonly durationMs: number;
20136
- }
20137
- interface PipelineCheckpointEvent extends BaseEvent {
20138
- readonly type: 'pipeline.checkpoint';
20139
- readonly executionId: string;
20140
- readonly stepNumber: number;
20141
- }
20142
- /** Stage lifecycle events. */
20143
- interface StageStartedEvent extends BaseEvent {
20144
- readonly type: 'stage.started';
20145
- readonly executionId: string;
20146
- readonly stageId: string;
20147
- readonly pluginId: string;
20148
- }
20149
- interface StageCompletedEvent extends BaseEvent {
20150
- readonly type: 'stage.completed';
20151
- readonly executionId: string;
20152
- readonly stageId: string;
20153
- readonly durationMs: number;
20154
- readonly success: boolean;
20155
- }
20156
- interface StageFailedEvent extends BaseEvent {
20157
- readonly type: 'stage.failed';
20158
- readonly executionId: string;
20159
- readonly stageId: string;
20160
- readonly error: string;
20161
- /** Error classification: retriable (transient) or fatal (permanent) (Epic #952). */
20162
- readonly errorTaxonomy?: 'retriable' | 'fatal';
20163
- }
20164
- interface StageRetryingEvent extends BaseEvent {
20165
- readonly type: 'stage.retrying';
20166
- readonly executionId: string;
20167
- readonly stageId: string;
20168
- readonly attempt: number;
20169
- }
20170
- /** Policy gate events. */
20171
- interface PolicyEvaluatedEvent extends BaseEvent {
20172
- readonly type: 'policy.evaluated';
20173
- readonly executionId: string;
20174
- readonly gateId: string;
20175
- readonly decision: string;
20176
- }
20177
- /** Artifact events. */
20178
- interface ArtifactCreatedEvent extends BaseEvent {
20179
- readonly type: 'artifact.created';
20180
- readonly executionId: string;
20181
- readonly artifactId: string;
20182
- readonly artifactType: string;
20183
- }
20184
- /** Model call events. */
20185
- interface ModelCalledEvent extends BaseEvent {
20186
- readonly type: 'model.called';
20187
- readonly executionId: string;
20188
- readonly cli: string;
20189
- readonly model: string;
20190
- readonly tokensIn: number;
20191
- readonly tokensOut: number;
20192
- readonly durationMs: number;
20193
- /** Agent that initiated this model call (Epic #952). */
20194
- readonly agentId?: string;
20195
- /** Agent role (e.g., code_expert, security_expert) (Epic #952). */
20196
- readonly role?: string;
20197
- }
20198
- /** Routing decision events. */
20199
- interface RoutingDecisionEvent extends BaseEvent {
20200
- readonly type: 'routing.decision';
20201
- readonly taskId: string;
20202
- readonly selectedModel: string;
20203
- /** Human-readable reasoning for model selection (Epic #952). */
20204
- readonly reasoning?: string;
20205
- /** Routing decision path (stage:result pairs) (Epic #952). */
20206
- readonly decisionPath?: readonly string[];
20207
- }
20208
- /** Signal events (#3147 P2 — close the loop). Consumed by the TuneStage. */
20209
- interface FitnessDeclinedSignalEvent extends BaseEvent {
20210
- readonly type: 'signal.fitness_declined';
20211
- /** Current fitness score (0-100). */
20212
- readonly score: number;
20213
- /** Governance floor the score fell below. */
20214
- readonly floor: number;
20215
- /** Fitness dimension that declined, when attributable. */
20216
- readonly dimension?: string;
20217
- }
20218
- interface SwarmUnhealthySignalEvent extends BaseEvent {
20219
- readonly type: 'signal.swarm_unhealthy';
20220
- /** Agent/CLI whose health degraded. */
20221
- readonly agentId: string;
20222
- /** Human-readable degradation reason. */
20223
- readonly reason: string;
20224
- }
20225
- interface VoteRejectedSignalEvent extends BaseEvent {
20226
- readonly type: 'signal.vote_rejected';
20227
- readonly proposalId: string;
20228
- /** Approval percentage of the rejected vote (0-100). */
20229
- readonly approvalPercentage: number;
20230
- /** Rejection rule categories surfaced by voters. */
20231
- readonly rejectionRules?: readonly string[];
20232
- }
20233
- /** MCP tool lifecycle events (Issue #1186). */
20234
- interface ToolInvokedEvent extends BaseEvent {
20235
- readonly type: 'tool.invoked';
20236
- readonly toolName: string;
20237
- readonly invocationId: string;
20238
- }
20239
- interface ToolCompletedEvent extends BaseEvent {
20240
- readonly type: 'tool.completed';
20241
- readonly toolName: string;
20242
- readonly invocationId: string;
20243
- readonly durationMs: number;
20244
- readonly success: boolean;
20245
- readonly errorMessage?: string;
20246
- }
20247
- /** Wave dispatch events for multi-wave worker execution (Issue #1401, Phase 6.2). */
20248
- interface WaveStartedEvent extends BaseEvent {
20249
- readonly type: 'wave.started';
20250
- readonly executionId: string;
20251
- readonly waveNumber: number;
20252
- readonly totalWaves: number;
20253
- readonly workerCount: number;
20254
- readonly roles: readonly string[];
20255
- }
20256
- interface WaveCompletedEvent extends BaseEvent {
20257
- readonly type: 'wave.completed';
20258
- readonly executionId: string;
20259
- readonly waveNumber: number;
20260
- readonly totalWaves: number;
20261
- readonly durationMs: number;
20262
- readonly successes: number;
20263
- readonly errors: number;
20264
- }
20265
- /** Discriminated union of all pipeline events. */
20266
- type PipelineEvent = TaskCreatedEvent | TaskStatusChangedEvent | TaskCompletedEvent | TaskFailedEvent | PipelineStartedEvent | PipelineCompletedEvent | PipelineCheckpointEvent | StageStartedEvent | StageCompletedEvent | StageFailedEvent | StageRetryingEvent | PolicyEvaluatedEvent | ArtifactCreatedEvent | ModelCalledEvent | RoutingDecisionEvent | ToolInvokedEvent | ToolCompletedEvent | WaveStartedEvent | WaveCompletedEvent | FitnessDeclinedSignalEvent | SwarmUnhealthySignalEvent | VoteRejectedSignalEvent;
20267
- /** Filter for subscribing to or querying events. */
20268
- interface EventFilter {
20269
- readonly type?: PipelineEventType | readonly PipelineEventType[];
20270
- readonly taskId?: string;
20271
- readonly executionId?: string;
20272
- readonly since?: number;
20273
- }
20274
- /** Event handler callback. */
20275
- type EventHandler = (event: PipelineEvent) => void;
20276
- /** Unsubscribe function returned by subscribe. */
20277
- type Unsubscribe = () => void;
20278
- /**
20279
- * Event bus interface — fire-and-forget event emission
20280
- * with typed subscriptions and bounded query.
20281
- */
20282
- interface IEventBus {
20283
- /** Emit an event. Handlers must not throw. */
20284
- emit(event: PipelineEvent): void;
20285
- /** Subscribe to events matching filter. Returns unsubscribe function. */
20286
- subscribe(filter: EventFilter, handler: EventHandler): Unsubscribe;
20287
- /** Query recent events (bounded buffer). */
20288
- query(filter: EventFilter, limit?: number): readonly PipelineEvent[];
20289
- /** Total events emitted (including evicted). */
20290
- readonly totalEmitted: number;
20291
- /** Current buffer size. */
20292
- readonly bufferSize: number;
20293
- }
20294
-
20295
20303
  /**
20296
20304
  * MCP tool for task orchestration with intelligent workflow pattern routing.
20297
20305
  * Types/schemas in orchestrate-types.ts (Issue #708). Routing via Issue #846.