nexus-agents 2.82.0 → 2.83.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 (125) hide show
  1. package/dist/{child-mcp-config-BMSYR7VV.js → child-mcp-config-XVPIO5HV.js} +2 -2
  2. package/dist/{chunk-OYDJ3C4N.js → chunk-2W4QJ27D.js} +3 -3
  3. package/dist/{chunk-BQ4YXGGQ.js → chunk-3ACDP4E6.js} +124 -2
  4. package/dist/chunk-3ACDP4E6.js.map +1 -0
  5. package/dist/{chunk-C7P2HLJX.js → chunk-3ASED5PR.js} +4 -4
  6. package/dist/{chunk-TXIUCEFT.js → chunk-3GJAAENS.js} +3 -3
  7. package/dist/{chunk-GNG7URCR.js → chunk-3WUVWZUC.js} +2 -2
  8. package/dist/{chunk-FTT2IYYX.js → chunk-4BXQ2OZY.js} +34 -16
  9. package/dist/chunk-4BXQ2OZY.js.map +1 -0
  10. package/dist/{chunk-SBZVRH4S.js → chunk-54UXPJVM.js} +2 -2
  11. package/dist/{chunk-QHL4KGNB.js → chunk-5T6SYCH2.js} +2 -2
  12. package/dist/{chunk-BL5IBHEY.js → chunk-6WDJ3IE4.js} +3 -3
  13. package/dist/{chunk-2R5UUBGA.js → chunk-AFPHR72D.js} +2 -2
  14. package/dist/{chunk-S36LIUV2.js → chunk-AINOJRZX.js} +7 -7
  15. package/dist/{chunk-HJUHDPXJ.js → chunk-BZUEUD4G.js} +3 -3
  16. package/dist/{chunk-2SQXJQTA.js → chunk-FHGDJKCZ.js} +16 -13
  17. package/dist/{chunk-2SQXJQTA.js.map → chunk-FHGDJKCZ.js.map} +1 -1
  18. package/dist/{chunk-XGUDCUMB.js → chunk-FI77TGBY.js} +2 -2
  19. package/dist/{chunk-7J7PNOJQ.js → chunk-HFOQKCD2.js} +22 -5
  20. package/dist/chunk-HFOQKCD2.js.map +1 -0
  21. package/dist/{chunk-PZESEBD3.js → chunk-L362KRSU.js} +2 -2
  22. package/dist/{chunk-HMXQKDUV.js → chunk-NLPMYBIV.js} +23 -7
  23. package/dist/chunk-NLPMYBIV.js.map +1 -0
  24. package/dist/{chunk-4XNVJS5A.js → chunk-PMLVZXAE.js} +763 -728
  25. package/dist/chunk-PMLVZXAE.js.map +1 -0
  26. package/dist/{chunk-JM3R267Z.js → chunk-PPBZQKRP.js} +5 -5
  27. package/dist/{chunk-WUUEKFKG.js → chunk-Q6PZMGLU.js} +2 -2
  28. package/dist/{chunk-W2AIGD35.js → chunk-RVRXKNND.js} +3 -3
  29. package/dist/{chunk-7VNVDFD5.js → chunk-RXVH52UI.js} +44 -18
  30. package/dist/{chunk-7VNVDFD5.js.map → chunk-RXVH52UI.js.map} +1 -1
  31. package/dist/{chunk-HVZ52LOL.js → chunk-U6LDVJS7.js} +2 -2
  32. package/dist/{chunk-X3JR3GMT.js → chunk-WGSRH5EQ.js} +3 -3
  33. package/dist/{chunk-SXL744NF.js → chunk-WJFUTRHX.js} +2 -2
  34. package/dist/{chunk-U7JXQSEM.js → chunk-YO27YAEX.js} +3 -3
  35. package/dist/{chunk-G2DZBEMU.js → chunk-Z64MSLEK.js} +2 -2
  36. package/dist/{chunk-NTLJ3INA.js → chunk-ZIWEEVMI.js} +2 -2
  37. package/dist/{chunk-SHWGK7X6.js → chunk-ZM5JKJHI.js} +2 -2
  38. package/dist/{cli-circuit-breaker-BIJUQRQI.js → cli-circuit-breaker-Y26NPPNO.js} +4 -4
  39. package/dist/cli.js +366 -344
  40. package/dist/cli.js.map +1 -1
  41. package/dist/codebase-search-ZFJUVMVR.js +8 -0
  42. package/dist/{composite-router-FB7P22L5.js → composite-router-X2ZYIEHH.js} +2 -2
  43. package/dist/{consensus-vote-KKAIFULI.js → consensus-vote-KZ6UURUI.js} +11 -11
  44. package/dist/{context-retriever-4JCGMWH7.js → context-retriever-QY4FNTDZ.js} +5 -5
  45. package/dist/{doctor-deep-7YK4BZIJ.js → doctor-deep-2E2GBMYR.js} +3 -3
  46. package/dist/expert-bridge-FHPWDFJX.js +13 -0
  47. package/dist/{factory-PK4EZL7K.js → factory-STNVY3Y3.js} +4 -4
  48. package/dist/{factory-DOWBGVAL.js → factory-W6KROBFN.js} +5 -5
  49. package/dist/index.d.ts +104 -60
  50. package/dist/index.js +100 -105
  51. package/dist/index.js.map +1 -1
  52. package/dist/{init-opencode-QP5CAMWN.js → init-opencode-6LVZ4CAQ.js} +5 -5
  53. package/dist/{issue-triage-T3SKNBH5.js → issue-triage-Y77JI7WF.js} +4 -4
  54. package/dist/{registry-command-TH7U6UMC.js → registry-command-P5VIAEOL.js} +2 -2
  55. package/dist/{repo-analyze-D2OY2QSR.js → repo-analyze-JZEMBE6R.js} +2 -2
  56. package/dist/{repo-security-plan-V257RYTW.js → repo-security-plan-RHSLO7H6.js} +4 -4
  57. package/dist/{research-helpers-synthesize-Y3O76PY4.js → research-helpers-synthesize-PVP6JRZV.js} +3 -3
  58. package/dist/{routing-memory-AAH7NIHD.js → routing-memory-QRIJPRVD.js} +2 -2
  59. package/dist/{session-memory-MY6YS2VX.js → session-memory-WARRGYY7.js} +3 -3
  60. package/dist/{setup-command-B6EC3OJA.js → setup-command-GMP5FI7F.js} +10 -10
  61. package/dist/{setup-config-HVO6ZSLW.js → setup-config-G3KKZM7O.js} +3 -3
  62. package/dist/{setup-custom-api-UOIKUQL4.js → setup-custom-api-B63X7ISD.js} +4 -4
  63. package/dist/{tool-memory-T7ZYIUJ2.js → tool-memory-E7JW4YLT.js} +4 -4
  64. package/dist/{weather-report-O3Z3BBAX.js → weather-report-RACZWJQL.js} +2 -2
  65. package/package.json +1 -1
  66. package/dist/chunk-4XNVJS5A.js.map +0 -1
  67. package/dist/chunk-7J7PNOJQ.js.map +0 -1
  68. package/dist/chunk-AP2FD37C.js +0 -127
  69. package/dist/chunk-AP2FD37C.js.map +0 -1
  70. package/dist/chunk-BQ4YXGGQ.js.map +0 -1
  71. package/dist/chunk-ED6VQWNG.js +0 -63
  72. package/dist/chunk-ED6VQWNG.js.map +0 -1
  73. package/dist/chunk-FTT2IYYX.js.map +0 -1
  74. package/dist/chunk-HMXQKDUV.js.map +0 -1
  75. package/dist/codebase-search-PIBRTGBE.js +0 -9
  76. package/dist/expert-bridge-DJM5GAWZ.js +0 -11
  77. package/dist/shared-memory-CM6T2MYE.js +0 -8
  78. package/dist/symbol-extractor-WYXPJH65.js +0 -10
  79. package/dist/tool-memory-T7ZYIUJ2.js.map +0 -1
  80. package/dist/weather-report-O3Z3BBAX.js.map +0 -1
  81. /package/dist/{child-mcp-config-BMSYR7VV.js.map → child-mcp-config-XVPIO5HV.js.map} +0 -0
  82. /package/dist/{chunk-OYDJ3C4N.js.map → chunk-2W4QJ27D.js.map} +0 -0
  83. /package/dist/{chunk-C7P2HLJX.js.map → chunk-3ASED5PR.js.map} +0 -0
  84. /package/dist/{chunk-TXIUCEFT.js.map → chunk-3GJAAENS.js.map} +0 -0
  85. /package/dist/{chunk-GNG7URCR.js.map → chunk-3WUVWZUC.js.map} +0 -0
  86. /package/dist/{chunk-SBZVRH4S.js.map → chunk-54UXPJVM.js.map} +0 -0
  87. /package/dist/{chunk-QHL4KGNB.js.map → chunk-5T6SYCH2.js.map} +0 -0
  88. /package/dist/{chunk-BL5IBHEY.js.map → chunk-6WDJ3IE4.js.map} +0 -0
  89. /package/dist/{chunk-2R5UUBGA.js.map → chunk-AFPHR72D.js.map} +0 -0
  90. /package/dist/{chunk-S36LIUV2.js.map → chunk-AINOJRZX.js.map} +0 -0
  91. /package/dist/{chunk-HJUHDPXJ.js.map → chunk-BZUEUD4G.js.map} +0 -0
  92. /package/dist/{chunk-XGUDCUMB.js.map → chunk-FI77TGBY.js.map} +0 -0
  93. /package/dist/{chunk-PZESEBD3.js.map → chunk-L362KRSU.js.map} +0 -0
  94. /package/dist/{chunk-JM3R267Z.js.map → chunk-PPBZQKRP.js.map} +0 -0
  95. /package/dist/{chunk-WUUEKFKG.js.map → chunk-Q6PZMGLU.js.map} +0 -0
  96. /package/dist/{chunk-W2AIGD35.js.map → chunk-RVRXKNND.js.map} +0 -0
  97. /package/dist/{chunk-HVZ52LOL.js.map → chunk-U6LDVJS7.js.map} +0 -0
  98. /package/dist/{chunk-X3JR3GMT.js.map → chunk-WGSRH5EQ.js.map} +0 -0
  99. /package/dist/{chunk-SXL744NF.js.map → chunk-WJFUTRHX.js.map} +0 -0
  100. /package/dist/{chunk-U7JXQSEM.js.map → chunk-YO27YAEX.js.map} +0 -0
  101. /package/dist/{chunk-G2DZBEMU.js.map → chunk-Z64MSLEK.js.map} +0 -0
  102. /package/dist/{chunk-NTLJ3INA.js.map → chunk-ZIWEEVMI.js.map} +0 -0
  103. /package/dist/{chunk-SHWGK7X6.js.map → chunk-ZM5JKJHI.js.map} +0 -0
  104. /package/dist/{cli-circuit-breaker-BIJUQRQI.js.map → cli-circuit-breaker-Y26NPPNO.js.map} +0 -0
  105. /package/dist/{codebase-search-PIBRTGBE.js.map → codebase-search-ZFJUVMVR.js.map} +0 -0
  106. /package/dist/{composite-router-FB7P22L5.js.map → composite-router-X2ZYIEHH.js.map} +0 -0
  107. /package/dist/{consensus-vote-KKAIFULI.js.map → consensus-vote-KZ6UURUI.js.map} +0 -0
  108. /package/dist/{context-retriever-4JCGMWH7.js.map → context-retriever-QY4FNTDZ.js.map} +0 -0
  109. /package/dist/{doctor-deep-7YK4BZIJ.js.map → doctor-deep-2E2GBMYR.js.map} +0 -0
  110. /package/dist/{expert-bridge-DJM5GAWZ.js.map → expert-bridge-FHPWDFJX.js.map} +0 -0
  111. /package/dist/{factory-DOWBGVAL.js.map → factory-STNVY3Y3.js.map} +0 -0
  112. /package/dist/{factory-PK4EZL7K.js.map → factory-W6KROBFN.js.map} +0 -0
  113. /package/dist/{init-opencode-QP5CAMWN.js.map → init-opencode-6LVZ4CAQ.js.map} +0 -0
  114. /package/dist/{issue-triage-T3SKNBH5.js.map → issue-triage-Y77JI7WF.js.map} +0 -0
  115. /package/dist/{registry-command-TH7U6UMC.js.map → registry-command-P5VIAEOL.js.map} +0 -0
  116. /package/dist/{repo-analyze-D2OY2QSR.js.map → repo-analyze-JZEMBE6R.js.map} +0 -0
  117. /package/dist/{repo-security-plan-V257RYTW.js.map → repo-security-plan-RHSLO7H6.js.map} +0 -0
  118. /package/dist/{research-helpers-synthesize-Y3O76PY4.js.map → research-helpers-synthesize-PVP6JRZV.js.map} +0 -0
  119. /package/dist/{routing-memory-AAH7NIHD.js.map → routing-memory-QRIJPRVD.js.map} +0 -0
  120. /package/dist/{session-memory-MY6YS2VX.js.map → session-memory-WARRGYY7.js.map} +0 -0
  121. /package/dist/{setup-command-B6EC3OJA.js.map → setup-command-GMP5FI7F.js.map} +0 -0
  122. /package/dist/{setup-config-HVO6ZSLW.js.map → setup-config-G3KKZM7O.js.map} +0 -0
  123. /package/dist/{setup-custom-api-UOIKUQL4.js.map → setup-custom-api-B63X7ISD.js.map} +0 -0
  124. /package/dist/{shared-memory-CM6T2MYE.js.map → tool-memory-E7JW4YLT.js.map} +0 -0
  125. /package/dist/{symbol-extractor-WYXPJH65.js.map → weather-report-RACZWJQL.js.map} +0 -0
@@ -0,0 +1,8 @@
1
+ import {
2
+ CodebaseIndex
3
+ } from "./chunk-3ACDP4E6.js";
4
+ import "./chunk-PR4QN5HX.js";
5
+ export {
6
+ CodebaseIndex
7
+ };
8
+ //# sourceMappingURL=codebase-search-ZFJUVMVR.js.map
@@ -4,7 +4,7 @@ import {
4
4
  CompositeRoutingError,
5
5
  DEFAULT_COMPOSITE_CONFIG,
6
6
  createCompositeRouter
7
- } from "./chunk-7VNVDFD5.js";
7
+ } from "./chunk-RXVH52UI.js";
8
8
  import "./chunk-I2HMWH4R.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-FB7P22L5.js.map
17
+ //# sourceMappingURL=composite-router-X2ZYIEHH.js.map
@@ -5,18 +5,18 @@ import {
5
5
  executeVoting,
6
6
  registerConsensusVoteTool,
7
7
  resetCorrelationTracker
8
- } from "./chunk-FTT2IYYX.js";
9
- import "./chunk-NTLJ3INA.js";
10
- import "./chunk-SBZVRH4S.js";
11
- import "./chunk-U7JXQSEM.js";
12
- import "./chunk-WUUEKFKG.js";
13
- import "./chunk-SHWGK7X6.js";
8
+ } from "./chunk-4BXQ2OZY.js";
9
+ import "./chunk-54UXPJVM.js";
10
+ import "./chunk-ZIWEEVMI.js";
11
+ import "./chunk-YO27YAEX.js";
12
+ import "./chunk-Q6PZMGLU.js";
13
+ import "./chunk-ZM5JKJHI.js";
14
14
  import "./chunk-633WH2ML.js";
15
- import "./chunk-2SQXJQTA.js";
16
- import "./chunk-QHL4KGNB.js";
15
+ import "./chunk-FHGDJKCZ.js";
16
+ import "./chunk-5T6SYCH2.js";
17
17
  import "./chunk-PQHVC4BD.js";
18
- import "./chunk-HVZ52LOL.js";
19
- import "./chunk-7VNVDFD5.js";
18
+ import "./chunk-U6LDVJS7.js";
19
+ import "./chunk-RXVH52UI.js";
20
20
  import "./chunk-I2HMWH4R.js";
21
21
  import "./chunk-PR4QN5HX.js";
22
22
  export {
@@ -27,4 +27,4 @@ export {
27
27
  registerConsensusVoteTool,
28
28
  resetCorrelationTracker
29
29
  };
30
- //# sourceMappingURL=consensus-vote-KKAIFULI.js.map
30
+ //# sourceMappingURL=consensus-vote-KZ6UURUI.js.map
@@ -2,12 +2,12 @@ import {
2
2
  getContextForTask,
3
3
  inferTaskCategory,
4
4
  summarizeContextForPrompt
5
- } from "./chunk-TXIUCEFT.js";
6
- import "./chunk-U7JXQSEM.js";
5
+ } from "./chunk-3GJAAENS.js";
6
+ import "./chunk-YO27YAEX.js";
7
7
  import "./chunk-633WH2ML.js";
8
8
  import "./chunk-PQHVC4BD.js";
9
- import "./chunk-HVZ52LOL.js";
10
- import "./chunk-7VNVDFD5.js";
9
+ import "./chunk-U6LDVJS7.js";
10
+ import "./chunk-RXVH52UI.js";
11
11
  import "./chunk-I2HMWH4R.js";
12
12
  import "./chunk-PR4QN5HX.js";
13
13
  export {
@@ -15,4 +15,4 @@ export {
15
15
  inferTaskCategory,
16
16
  summarizeContextForPrompt
17
17
  };
18
- //# sourceMappingURL=context-retriever-4JCGMWH7.js.map
18
+ //# sourceMappingURL=context-retriever-QY4FNTDZ.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  formatDeepDiagnostics,
3
3
  runDeepDiagnostics
4
- } from "./chunk-XGUDCUMB.js";
5
- import "./chunk-7VNVDFD5.js";
4
+ } from "./chunk-FI77TGBY.js";
5
+ import "./chunk-RXVH52UI.js";
6
6
  import "./chunk-I2HMWH4R.js";
7
7
  import "./chunk-PR4QN5HX.js";
8
8
  export {
9
9
  formatDeepDiagnostics,
10
10
  runDeepDiagnostics
11
11
  };
12
- //# sourceMappingURL=doctor-deep-7YK4BZIJ.js.map
12
+ //# sourceMappingURL=doctor-deep-2E2GBMYR.js.map
@@ -0,0 +1,13 @@
1
+ import {
2
+ executeExpert,
3
+ shutdownExpertBridge
4
+ } from "./chunk-NLPMYBIV.js";
5
+ import "./chunk-3WUVWZUC.js";
6
+ import "./chunk-RXVH52UI.js";
7
+ import "./chunk-I2HMWH4R.js";
8
+ import "./chunk-PR4QN5HX.js";
9
+ export {
10
+ executeExpert,
11
+ shutdownExpertBridge
12
+ };
13
+ //# sourceMappingURL=expert-bridge-FHPWDFJX.js.map
@@ -3,9 +3,9 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-2SQXJQTA.js";
7
- import "./chunk-QHL4KGNB.js";
8
- import "./chunk-7VNVDFD5.js";
6
+ } from "./chunk-FHGDJKCZ.js";
7
+ import "./chunk-5T6SYCH2.js";
8
+ import "./chunk-RXVH52UI.js";
9
9
  import "./chunk-I2HMWH4R.js";
10
10
  import "./chunk-PR4QN5HX.js";
11
11
  export {
@@ -14,4 +14,4 @@ export {
14
14
  getAvailableClis,
15
15
  isCliAvailable
16
16
  };
17
- //# sourceMappingURL=factory-PK4EZL7K.js.map
17
+ //# sourceMappingURL=factory-STNVY3Y3.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-C7P2HLJX.js";
5
- import "./chunk-G2DZBEMU.js";
6
- import "./chunk-PZESEBD3.js";
7
- import "./chunk-7VNVDFD5.js";
4
+ } from "./chunk-3ASED5PR.js";
5
+ import "./chunk-Z64MSLEK.js";
6
+ import "./chunk-L362KRSU.js";
7
+ import "./chunk-RXVH52UI.js";
8
8
  import "./chunk-I2HMWH4R.js";
9
9
  import "./chunk-PR4QN5HX.js";
10
10
  export {
11
11
  createGitHubProvider,
12
12
  createScmProvider
13
13
  };
14
- //# sourceMappingURL=factory-DOWBGVAL.js.map
14
+ //# sourceMappingURL=factory-W6KROBFN.js.map
package/dist/index.d.ts CHANGED
@@ -12136,8 +12136,8 @@ declare const TrinityRoleSchema: z.ZodEnum<{
12136
12136
  declare const TrinityPhaseSchema: z.ZodEnum<{
12137
12137
  thinking: "thinking";
12138
12138
  working: "working";
12139
- verifying: "verifying";
12140
12139
  complete: "complete";
12140
+ verifying: "verifying";
12141
12141
  }>;
12142
12142
  /** Schema for verifier verdict. */
12143
12143
  declare const VerifierVerdictSchema: z.ZodEnum<{
@@ -28311,6 +28311,28 @@ type GitHubInput = z.infer<typeof GitHubInputSchema>;
28311
28311
  */
28312
28312
  declare function createGitHubAdapter(): ISourceAdapter;
28313
28313
 
28314
+ /**
28315
+ * nexus-agents/orchestration - Orchestrator Adapters
28316
+ *
28317
+ * Adapters wrapping Orchestrator, PuppeteerOrchestrator, WorkflowEngine
28318
+ * to implement the unified IOrchestrator interface.
28319
+ *
28320
+ * @module orchestration/orchestrator-adapters
28321
+ * @see docs/adr/0002-orchestrator-interface.md
28322
+ */
28323
+
28324
+ /**
28325
+ * Narrow shape of an agent that the OrchestratorAdapter (and the factory
28326
+ * config that wires one in) needs. Narrows the input to `Task` so the
28327
+ * concrete `Orchestrator` instance can be passed without an `as unknown
28328
+ * as` cast (#2944). Keeps the `Result` payload+error wide because the
28329
+ * adapter is intentionally resilient to non-`AgentError` failures
28330
+ * (see orchestrator-adapters.test.ts "fails with non-Error" coverage).
28331
+ */
28332
+ interface OrchestratorAgentLike {
28333
+ execute(task: Task$1): Promise<Result<unknown, unknown>>;
28334
+ }
28335
+
28314
28336
  /**
28315
28337
  * nexus-agents/orchestration - Orchestrator Factory
28316
28338
  *
@@ -28368,17 +28390,22 @@ interface OrchestratorFactoryConfig {
28368
28390
  modelAdapter?: IModelAdapter;
28369
28391
  /** Workflow engine config */
28370
28392
  workflowConfig?: WorkflowEngineFactoryConfig;
28371
- /** Pre-created orchestrator agent instance for orchestrator adapter */
28372
- techLead?: {
28373
- execute: (task: unknown) => Promise<Result<unknown, unknown>>;
28374
- };
28393
+ /**
28394
+ * Pre-created orchestrator agent instance for orchestrator adapter.
28395
+ * Narrowed from `(task: unknown)` to `OrchestratorAgentLike` so a real
28396
+ * `Orchestrator` instance can be passed without an `as unknown as` cast
28397
+ * (#2944). Task-input contract matches `OrchestratorAdapter.setOrchestrator`.
28398
+ */
28399
+ techLead?: OrchestratorAgentLike;
28375
28400
  /** Alias for techLead (preferred, Issue #759) */
28376
- orchestratorAgent?: {
28377
- execute: (task: unknown) => Promise<Result<unknown, unknown>>;
28378
- };
28379
- /** Pre-created PuppeteerOrchestrator instance */
28401
+ orchestratorAgent?: OrchestratorAgentLike;
28402
+ /**
28403
+ * Pre-created PuppeteerOrchestrator instance. Input stays `unknown`
28404
+ * because Puppeteer accepts arbitrary policy-shaped tasks, not the
28405
+ * core `Task` type that the regular agent path requires.
28406
+ */
28380
28407
  puppeteerOrchestrator?: {
28381
- execute: (task: unknown) => Promise<Result<unknown, unknown>>;
28408
+ execute(task: unknown): Promise<Result<unknown, unknown>>;
28382
28409
  };
28383
28410
  }
28384
28411
  /**
@@ -31049,6 +31076,10 @@ declare function createDefaultPolicyEngine(): PolicyEngine;
31049
31076
  * Listens for `model.called` and `stage.failed` events and records
31050
31077
  * them as TaskOutcome entries in the OutcomeStore.
31051
31078
  *
31079
+ * Returns an Unsubscribe handle for callers that manage their own
31080
+ * subscription lifecycle (e.g. tests). For the server-wide singleton
31081
+ * subscription, use `startFeedbackSubscriber` / `shutdownFeedbackSubscriber`.
31082
+ *
31052
31083
  * @returns Unsubscribe function to stop the bridge.
31053
31084
  */
31054
31085
  declare function createFeedbackSubscriber(bus: IEventBus, store: OutcomeStore): Unsubscribe;
@@ -31119,11 +31150,16 @@ interface PipelineMetrics {
31119
31150
  readonly policyBlocked?: boolean;
31120
31151
  readonly policyViolations?: readonly string[];
31121
31152
  }
31153
+ /** Optional contract-construction options (#2957). */
31154
+ interface DelegateContractOpts {
31155
+ /** Caller trust tier from RequestContext (`'1'..'4'`). */
31156
+ readonly trustTier?: string;
31157
+ }
31122
31158
  /**
31123
31159
  * Converts delegate_to_model input into a V2 TaskContract.
31124
31160
  * Input fields are preserved in metadata for downstream pipeline stages.
31125
31161
  */
31126
- declare function delegateInputToTaskContract(input: DelegateInputLike): TaskContract;
31162
+ declare function delegateInputToTaskContract(input: DelegateInputLike, opts?: DelegateContractOpts): TaskContract;
31127
31163
  /**
31128
31164
  * Compiles and executes a V2 pipeline for the given TaskContract.
31129
31165
  * Evaluates policy before execution — block mode halts the pipeline.
@@ -31192,8 +31228,13 @@ interface OrchestrateInputLike {
31192
31228
  readonly context?: Record<string, unknown>;
31193
31229
  readonly maxIterations?: number;
31194
31230
  }
31231
+ /** Optional contract-construction options (#2957). */
31232
+ interface OrchestrateContractOpts {
31233
+ /** Caller trust tier from RequestContext (`'1'..'4'`). */
31234
+ readonly trustTier?: string;
31235
+ }
31195
31236
  /** Converts orchestrate input to a TaskContract. */
31196
- declare function orchestrateInputToTaskContract(input: OrchestrateInputLike): TaskContract;
31237
+ declare function orchestrateInputToTaskContract(input: OrchestrateInputLike, opts?: OrchestrateContractOpts): TaskContract;
31197
31238
  /** Executes the V2 orchestrate pipeline and returns metrics. */
31198
31239
  declare function executeOrchestratePipeline(task: TaskContract): Promise<PipelineMetrics>;
31199
31240
 
@@ -31557,50 +31598,6 @@ interface IterativeConsensusResult {
31557
31598
  }
31558
31599
  declare function runIterativeConsensus(initialPlan: string, revisePlan: (plan: string, feedback: string) => Promise<string>, config?: IterativeConsensusConfig): Promise<IterativeConsensusResult>;
31559
31600
 
31560
- /**
31561
- * Shared Memory — Cross-stage knowledge propagation (#1737, Phase 4)
31562
- *
31563
- * Early pipeline stages (planning, research) write structured discoveries
31564
- * to a shared memory layer. Later stages read before acting.
31565
- *
31566
- * Scoped to a single pipeline run — not persisted cross-session.
31567
- *
31568
- * Pattern from: SWE-AF shared memory, AutoGen knowledge propagation.
31569
- *
31570
- * @module pipeline/shared-memory
31571
- */
31572
- /** A tagged memory entry written by a pipeline stage. */
31573
- interface SharedMemoryEntry {
31574
- /** Stage that wrote this entry. */
31575
- readonly sourceStage: string;
31576
- /** Category tag for filtering. */
31577
- readonly tag: SharedMemoryTag;
31578
- /** The content (structured or text). */
31579
- readonly content: unknown;
31580
- /** When this was written. */
31581
- readonly timestamp: number;
31582
- }
31583
- /** Tags for categorizing shared memory entries. */
31584
- type SharedMemoryTag = 'convention' | 'discovery' | 'constraint' | 'decision' | 'risk' | 'dependency' | 'context';
31585
- /** In-memory store for cross-stage knowledge sharing. */
31586
- declare class SharedMemoryStore {
31587
- private readonly entries;
31588
- private readonly maxEntries;
31589
- constructor(maxEntries?: number);
31590
- /** Write a memory entry. */
31591
- write(sourceStage: string, tag: SharedMemoryTag, content: unknown): void;
31592
- /** Read all entries, optionally filtered by tag. */
31593
- read(tag?: SharedMemoryTag): readonly SharedMemoryEntry[];
31594
- /** Read entries from a specific stage. */
31595
- readFromStage(sourceStage: string): readonly SharedMemoryEntry[];
31596
- /** Get summary of all entries as context string for LLM consumption. */
31597
- summarize(maxLength?: number): string;
31598
- /** Get entry count. */
31599
- get size(): number;
31600
- /** Clear all entries. */
31601
- clear(): void;
31602
- }
31603
-
31604
31601
  /**
31605
31602
  * Pipeline Stage Types — Shared interfaces for graph-backed pipelines (#1735, Phase 2)
31606
31603
  *
@@ -31617,10 +31614,14 @@ interface PipelineContext {
31617
31614
  readonly task: string;
31618
31615
  /** Pipeline template being executed. */
31619
31616
  readonly templateId: string;
31620
- /** Accumulated state from prior stages. */
31617
+ /**
31618
+ * Accumulated state from prior stages. The only cross-stage handoff
31619
+ * channel — `sharedMemory` (the #1764 SharedMemoryStore) was removed
31620
+ * in #2937 after being write-only since introduction. If you need
31621
+ * structured cross-stage data, add a well-known key to
31622
+ * `PIPELINE_STATE_KEYS` and write/read through `state`.
31623
+ */
31621
31624
  readonly state: Readonly<Record<string, unknown>>;
31622
- /** Cross-stage knowledge store for discoveries, decisions, constraints (#1764). */
31623
- readonly sharedMemory: SharedMemoryStore;
31624
31625
  }
31625
31626
  /** Result of executing a single pipeline stage. */
31626
31627
  interface StageOutput {
@@ -31686,7 +31687,6 @@ declare const PIPELINE_STATE_KEYS: {
31686
31687
  readonly PARSED_SPEC: "parsedSpec";
31687
31688
  readonly SCAFFOLD_OUTPUT: "scaffoldOutput";
31688
31689
  readonly COMPLETED: "completed";
31689
- readonly SHARED_MEMORY: "__sharedMemory__";
31690
31690
  };
31691
31691
 
31692
31692
  /**
@@ -31873,6 +31873,50 @@ declare function canPipelineProceed(results: readonly IncompleteResult[]): boole
31873
31873
  /** Filter incomplete results by severity. */
31874
31874
  declare function filterBySeverity(results: readonly IncompleteResult[], minSeverity: IncompleteSeverity): readonly IncompleteResult[];
31875
31875
 
31876
+ /**
31877
+ * Shared Memory — Cross-stage knowledge propagation (#1737, Phase 4)
31878
+ *
31879
+ * Early pipeline stages (planning, research) write structured discoveries
31880
+ * to a shared memory layer. Later stages read before acting.
31881
+ *
31882
+ * Scoped to a single pipeline run — not persisted cross-session.
31883
+ *
31884
+ * Pattern from: SWE-AF shared memory, AutoGen knowledge propagation.
31885
+ *
31886
+ * @module pipeline/shared-memory
31887
+ */
31888
+ /** A tagged memory entry written by a pipeline stage. */
31889
+ interface SharedMemoryEntry {
31890
+ /** Stage that wrote this entry. */
31891
+ readonly sourceStage: string;
31892
+ /** Category tag for filtering. */
31893
+ readonly tag: SharedMemoryTag;
31894
+ /** The content (structured or text). */
31895
+ readonly content: unknown;
31896
+ /** When this was written. */
31897
+ readonly timestamp: number;
31898
+ }
31899
+ /** Tags for categorizing shared memory entries. */
31900
+ type SharedMemoryTag = 'convention' | 'discovery' | 'constraint' | 'decision' | 'risk' | 'dependency' | 'context';
31901
+ /** In-memory store for cross-stage knowledge sharing. */
31902
+ declare class SharedMemoryStore {
31903
+ private readonly entries;
31904
+ private readonly maxEntries;
31905
+ constructor(maxEntries?: number);
31906
+ /** Write a memory entry. */
31907
+ write(sourceStage: string, tag: SharedMemoryTag, content: unknown): void;
31908
+ /** Read all entries, optionally filtered by tag. */
31909
+ read(tag?: SharedMemoryTag): readonly SharedMemoryEntry[];
31910
+ /** Read entries from a specific stage. */
31911
+ readFromStage(sourceStage: string): readonly SharedMemoryEntry[];
31912
+ /** Get summary of all entries as context string for LLM consumption. */
31913
+ summarize(maxLength?: number): string;
31914
+ /** Get entry count. */
31915
+ get size(): number;
31916
+ /** Clear all entries. */
31917
+ clear(): void;
31918
+ }
31919
+
31876
31920
  /**
31877
31921
  * Dynamic Expert Creation — Bounded agent creation at runtime (#1737, Phase 4)
31878
31922
  *