nexus-agents 2.77.13 → 2.79.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 (132) hide show
  1. package/dist/{child-mcp-config-MJMUF7TL.js → child-mcp-config-CTO2MBRM.js} +3 -4
  2. package/dist/{child-mcp-config-MJMUF7TL.js.map → child-mcp-config-CTO2MBRM.js.map} +1 -1
  3. package/dist/{chunk-YJ2IGAD2.js → chunk-2UYTFLMO.js} +2 -2
  4. package/dist/{chunk-6AY5DK4E.js → chunk-2YPG6PDG.js} +3 -3
  5. package/dist/{chunk-3VWMM6UF.js → chunk-3NIPH6UP.js} +2 -2
  6. package/dist/{chunk-GFKGL2GQ.js → chunk-3ULMVOIF.js} +171 -83
  7. package/dist/chunk-3ULMVOIF.js.map +1 -0
  8. package/dist/{chunk-JN6UWGHH.js → chunk-5O6XLBPP.js} +2 -2
  9. package/dist/{chunk-ERWXGXV2.js → chunk-6TFTVW77.js} +3 -3
  10. package/dist/{chunk-GOT7OAL5.js → chunk-7BMOZJYS.js} +29 -5
  11. package/dist/chunk-7BMOZJYS.js.map +1 -0
  12. package/dist/{chunk-C2LLQ6TW.js → chunk-7XCUZI4G.js} +4 -4
  13. package/dist/chunk-7XCUZI4G.js.map +1 -0
  14. package/dist/{chunk-TDV5ALHY.js → chunk-D6TM2VHX.js} +3 -3
  15. package/dist/{chunk-PWTJGGKB.js → chunk-DLXT23AC.js} +2 -2
  16. package/dist/chunk-DNO2INX5.js +276 -0
  17. package/dist/chunk-DNO2INX5.js.map +1 -0
  18. package/dist/{chunk-G2CSKBY5.js → chunk-FJWWSVWB.js} +29 -6
  19. package/dist/chunk-FJWWSVWB.js.map +1 -0
  20. package/dist/{chunk-DSQ5XM4O.js → chunk-FVPYP5DD.js} +4 -4
  21. package/dist/{chunk-MGLWPN2I.js → chunk-GONMG4NM.js} +2 -2
  22. package/dist/{chunk-YQMQSJQK.js → chunk-HYU4GZY6.js} +2 -2
  23. package/dist/{chunk-3DH5SLFH.js → chunk-K2QILJG4.js} +6 -6
  24. package/dist/{chunk-5WHWKY32.js → chunk-KT5FIBWS.js} +2 -2
  25. package/dist/{chunk-DIB6V67T.js → chunk-L6SCKLGO.js} +3 -3
  26. package/dist/{chunk-IPWCD22D.js → chunk-PLX6FCFC.js} +2 -2
  27. package/dist/chunk-PQHVC4BD.js +639 -0
  28. package/dist/chunk-PQHVC4BD.js.map +1 -0
  29. package/dist/chunk-Q5CFPIJ5.js +5581 -0
  30. package/dist/chunk-Q5CFPIJ5.js.map +1 -0
  31. package/dist/{chunk-G6ZPVADX.js → chunk-SD76JZBG.js} +2 -2
  32. package/dist/{chunk-Y2CP4Z5B.js → chunk-SWFJU3W2.js} +220 -4580
  33. package/dist/chunk-SWFJU3W2.js.map +1 -0
  34. package/dist/{chunk-3MRM53T4.js → chunk-WDYCIJWN.js} +640 -470
  35. package/dist/chunk-WDYCIJWN.js.map +1 -0
  36. package/dist/{chunk-RBZ4CDMY.js → chunk-YMMYYAZT.js} +5 -5
  37. package/dist/{chunk-CM3TORGV.js → chunk-YXWGEIQR.js} +2 -2
  38. package/dist/{chunk-JX6OI4FS.js → chunk-ZI6G7U7Y.js} +125 -33
  39. package/dist/chunk-ZI6G7U7Y.js.map +1 -0
  40. package/dist/{chunk-7NK7BTWP.js → chunk-ZVCED4Z4.js} +2 -2
  41. package/dist/cli-circuit-breaker-I74ZQ44Q.js +13 -0
  42. package/dist/cli.js +109 -58
  43. package/dist/cli.js.map +1 -1
  44. package/dist/{composite-router-S6E26BCI.js → composite-router-V3OC57IE.js} +3 -4
  45. package/dist/consensus-vote-ESFPGEJE.js +30 -0
  46. package/dist/context-retriever-MB3D7KS6.js +18 -0
  47. package/dist/dist-NIXVXYIH.js +42 -0
  48. package/dist/doctor-deep-KQ765XZA.js +12 -0
  49. package/dist/expert-bridge-JKLC57IC.js +10 -0
  50. package/dist/factory-BUUXNGIB.js +14 -0
  51. package/dist/{factory-X3VKIGKP.js → factory-LHHYDVZX.js} +5 -6
  52. package/dist/index.d.ts +72 -8
  53. package/dist/index.js +208 -316
  54. package/dist/index.js.map +1 -1
  55. package/dist/{init-opencode-CFE7M6XA.js → init-opencode-GXZN2W5S.js} +6 -7
  56. package/dist/{init-opencode-CFE7M6XA.js.map → init-opencode-GXZN2W5S.js.map} +1 -1
  57. package/dist/issue-triage-RMXPDZ2K.js +15 -0
  58. package/dist/{learning-persistence-N6ILD2HX.js → learning-persistence-Q3HTOGTU.js} +2 -3
  59. package/dist/outcome-store-adapter-QRFJJIKB.js +57 -0
  60. package/dist/outcome-store-adapter-QRFJJIKB.js.map +1 -0
  61. package/dist/{registry-command-RPPC7N2K.js → registry-command-6E4YKAMT.js} +3 -4
  62. package/dist/{registry-command-RPPC7N2K.js.map → registry-command-6E4YKAMT.js.map} +1 -1
  63. package/dist/{repo-security-plan-7ZCDVH5O.js → repo-security-plan-AGRU72DL.js} +4 -5
  64. package/dist/research-helpers-synthesize-K2UCJQQG.js +13 -0
  65. package/dist/{routing-memory-5VTX7LQX.js → routing-memory-3B6DDZ76.js} +3 -4
  66. package/dist/{session-memory-7XBV6BMY.js → session-memory-L7EQIY2O.js} +4 -5
  67. package/dist/{setup-command-W6UKPODL.js → setup-command-R4BOEMLZ.js} +11 -12
  68. package/dist/setup-config-EQT24DD4.js +10 -0
  69. package/dist/{setup-custom-api-WM5W5AY5.js → setup-custom-api-IBDV654K.js} +5 -6
  70. package/dist/{setup-custom-api-WM5W5AY5.js.map → setup-custom-api-IBDV654K.js.map} +1 -1
  71. package/dist/tool-memory-6HCHQLAN.js +19 -0
  72. package/dist/{weather-report-YJMVKJGA.js → weather-report-ER3WUZ7S.js} +3 -4
  73. package/package.json +3 -2
  74. package/dist/adaptive-memory-EI564K4C.js +0 -16
  75. package/dist/chunk-3MRM53T4.js.map +0 -1
  76. package/dist/chunk-BJ2OMC7P.js +0 -944
  77. package/dist/chunk-BJ2OMC7P.js.map +0 -1
  78. package/dist/chunk-C2LLQ6TW.js.map +0 -1
  79. package/dist/chunk-G2CSKBY5.js.map +0 -1
  80. package/dist/chunk-GFKGL2GQ.js.map +0 -1
  81. package/dist/chunk-GOT7OAL5.js.map +0 -1
  82. package/dist/chunk-I7ORMAO7.js +0 -32
  83. package/dist/chunk-I7ORMAO7.js.map +0 -1
  84. package/dist/chunk-JX6OI4FS.js.map +0 -1
  85. package/dist/chunk-Y2CP4Z5B.js.map +0 -1
  86. package/dist/cli-circuit-breaker-YX4BWZD5.js +0 -14
  87. package/dist/consensus-vote-MUQ4HPIF.js +0 -30
  88. package/dist/doctor-deep-BRU5ZUJI.js +0 -13
  89. package/dist/expert-bridge-ZPNVLJVN.js +0 -11
  90. package/dist/factory-A7DTCCUY.js +0 -15
  91. package/dist/issue-triage-6XD6CVPB.js +0 -16
  92. package/dist/mobimem-CG2MNS7V.js +0 -14
  93. package/dist/nexus-data-dir-77UO7N6J.js +0 -12
  94. package/dist/research-helpers-synthesize-36TUTUUA.js +0 -14
  95. package/dist/setup-config-EI5KROA3.js +0 -11
  96. /package/dist/{chunk-YJ2IGAD2.js.map → chunk-2UYTFLMO.js.map} +0 -0
  97. /package/dist/{chunk-6AY5DK4E.js.map → chunk-2YPG6PDG.js.map} +0 -0
  98. /package/dist/{chunk-3VWMM6UF.js.map → chunk-3NIPH6UP.js.map} +0 -0
  99. /package/dist/{chunk-JN6UWGHH.js.map → chunk-5O6XLBPP.js.map} +0 -0
  100. /package/dist/{chunk-ERWXGXV2.js.map → chunk-6TFTVW77.js.map} +0 -0
  101. /package/dist/{chunk-TDV5ALHY.js.map → chunk-D6TM2VHX.js.map} +0 -0
  102. /package/dist/{chunk-PWTJGGKB.js.map → chunk-DLXT23AC.js.map} +0 -0
  103. /package/dist/{chunk-DSQ5XM4O.js.map → chunk-FVPYP5DD.js.map} +0 -0
  104. /package/dist/{chunk-MGLWPN2I.js.map → chunk-GONMG4NM.js.map} +0 -0
  105. /package/dist/{chunk-YQMQSJQK.js.map → chunk-HYU4GZY6.js.map} +0 -0
  106. /package/dist/{chunk-3DH5SLFH.js.map → chunk-K2QILJG4.js.map} +0 -0
  107. /package/dist/{chunk-5WHWKY32.js.map → chunk-KT5FIBWS.js.map} +0 -0
  108. /package/dist/{chunk-DIB6V67T.js.map → chunk-L6SCKLGO.js.map} +0 -0
  109. /package/dist/{chunk-IPWCD22D.js.map → chunk-PLX6FCFC.js.map} +0 -0
  110. /package/dist/{chunk-G6ZPVADX.js.map → chunk-SD76JZBG.js.map} +0 -0
  111. /package/dist/{chunk-RBZ4CDMY.js.map → chunk-YMMYYAZT.js.map} +0 -0
  112. /package/dist/{chunk-CM3TORGV.js.map → chunk-YXWGEIQR.js.map} +0 -0
  113. /package/dist/{chunk-7NK7BTWP.js.map → chunk-ZVCED4Z4.js.map} +0 -0
  114. /package/dist/{adaptive-memory-EI564K4C.js.map → cli-circuit-breaker-I74ZQ44Q.js.map} +0 -0
  115. /package/dist/{cli-circuit-breaker-YX4BWZD5.js.map → composite-router-V3OC57IE.js.map} +0 -0
  116. /package/dist/{composite-router-S6E26BCI.js.map → consensus-vote-ESFPGEJE.js.map} +0 -0
  117. /package/dist/{consensus-vote-MUQ4HPIF.js.map → context-retriever-MB3D7KS6.js.map} +0 -0
  118. /package/dist/{doctor-deep-BRU5ZUJI.js.map → dist-NIXVXYIH.js.map} +0 -0
  119. /package/dist/{expert-bridge-ZPNVLJVN.js.map → doctor-deep-KQ765XZA.js.map} +0 -0
  120. /package/dist/{factory-A7DTCCUY.js.map → expert-bridge-JKLC57IC.js.map} +0 -0
  121. /package/dist/{factory-X3VKIGKP.js.map → factory-BUUXNGIB.js.map} +0 -0
  122. /package/dist/{issue-triage-6XD6CVPB.js.map → factory-LHHYDVZX.js.map} +0 -0
  123. /package/dist/{learning-persistence-N6ILD2HX.js.map → issue-triage-RMXPDZ2K.js.map} +0 -0
  124. /package/dist/{mobimem-CG2MNS7V.js.map → learning-persistence-Q3HTOGTU.js.map} +0 -0
  125. /package/dist/{nexus-data-dir-77UO7N6J.js.map → repo-security-plan-AGRU72DL.js.map} +0 -0
  126. /package/dist/{repo-security-plan-7ZCDVH5O.js.map → research-helpers-synthesize-K2UCJQQG.js.map} +0 -0
  127. /package/dist/{research-helpers-synthesize-36TUTUUA.js.map → routing-memory-3B6DDZ76.js.map} +0 -0
  128. /package/dist/{routing-memory-5VTX7LQX.js.map → session-memory-L7EQIY2O.js.map} +0 -0
  129. /package/dist/{session-memory-7XBV6BMY.js.map → setup-command-R4BOEMLZ.js.map} +0 -0
  130. /package/dist/{setup-command-W6UKPODL.js.map → setup-config-EQT24DD4.js.map} +0 -0
  131. /package/dist/{setup-config-EI5KROA3.js.map → tool-memory-6HCHQLAN.js.map} +0 -0
  132. /package/dist/{weather-report-YJMVKJGA.js.map → weather-report-ER3WUZ7S.js.map} +0 -0
@@ -4,9 +4,8 @@ import {
4
4
  CompositeRoutingError,
5
5
  DEFAULT_COMPOSITE_CONFIG,
6
6
  createCompositeRouter
7
- } from "./chunk-3MRM53T4.js";
8
- import "./chunk-I7ORMAO7.js";
9
- import "./chunk-GOT7OAL5.js";
7
+ } from "./chunk-WDYCIJWN.js";
8
+ import "./chunk-7BMOZJYS.js";
10
9
  import "./chunk-UP2VWCW5.js";
11
10
  export {
12
11
  CompositeRouter,
@@ -15,4 +14,4 @@ export {
15
14
  DEFAULT_COMPOSITE_CONFIG,
16
15
  createCompositeRouter
17
16
  };
18
- //# sourceMappingURL=composite-router-S6E26BCI.js.map
17
+ //# sourceMappingURL=composite-router-V3OC57IE.js.map
@@ -0,0 +1,30 @@
1
+ import {
2
+ CONSENSUS_VOTE_OUTPUT_SCHEMA,
3
+ ConsensusVoteInputSchema,
4
+ VotingStrategySchema,
5
+ executeVoting,
6
+ registerConsensusVoteTool,
7
+ resetCorrelationTracker
8
+ } from "./chunk-SWFJU3W2.js";
9
+ import "./chunk-ZVCED4Z4.js";
10
+ import "./chunk-PLX6FCFC.js";
11
+ import "./chunk-Q5CFPIJ5.js";
12
+ import "./chunk-KT5FIBWS.js";
13
+ import "./chunk-HYU4GZY6.js";
14
+ import "./chunk-633WH2ML.js";
15
+ import "./chunk-D6TM2VHX.js";
16
+ import "./chunk-DLXT23AC.js";
17
+ import "./chunk-PQHVC4BD.js";
18
+ import "./chunk-3NIPH6UP.js";
19
+ import "./chunk-WDYCIJWN.js";
20
+ import "./chunk-7BMOZJYS.js";
21
+ import "./chunk-UP2VWCW5.js";
22
+ export {
23
+ CONSENSUS_VOTE_OUTPUT_SCHEMA,
24
+ ConsensusVoteInputSchema,
25
+ VotingStrategySchema,
26
+ executeVoting,
27
+ registerConsensusVoteTool,
28
+ resetCorrelationTracker
29
+ };
30
+ //# sourceMappingURL=consensus-vote-ESFPGEJE.js.map
@@ -0,0 +1,18 @@
1
+ import {
2
+ getContextForTask,
3
+ inferTaskCategory,
4
+ summarizeContextForPrompt
5
+ } from "./chunk-DNO2INX5.js";
6
+ import "./chunk-Q5CFPIJ5.js";
7
+ import "./chunk-633WH2ML.js";
8
+ import "./chunk-PQHVC4BD.js";
9
+ import "./chunk-3NIPH6UP.js";
10
+ import "./chunk-WDYCIJWN.js";
11
+ import "./chunk-7BMOZJYS.js";
12
+ import "./chunk-UP2VWCW5.js";
13
+ export {
14
+ getContextForTask,
15
+ inferTaskCategory,
16
+ summarizeContextForPrompt
17
+ };
18
+ //# sourceMappingURL=context-retriever-MB3D7KS6.js.map
@@ -0,0 +1,42 @@
1
+ import {
2
+ InMemoryBackend,
3
+ MemoryRegistry,
4
+ MemoryValidationError,
5
+ SqliteBackend,
6
+ backupSourceFile,
7
+ closeMemoryRegistry,
8
+ createInMemoryMemoryRegistry,
9
+ createSqliteMemoryRegistry,
10
+ getMemoryEventCounters,
11
+ getMemoryRegistry,
12
+ listImporters,
13
+ recordMemoryEvent,
14
+ registerImporter,
15
+ resetImporters,
16
+ resetMemoryTelemetry,
17
+ runImporters,
18
+ setMemoryRegistry,
19
+ subscribeToMemoryEvents
20
+ } from "./chunk-PQHVC4BD.js";
21
+ import "./chunk-UP2VWCW5.js";
22
+ export {
23
+ InMemoryBackend,
24
+ MemoryRegistry,
25
+ MemoryValidationError,
26
+ SqliteBackend,
27
+ backupSourceFile,
28
+ closeMemoryRegistry,
29
+ createInMemoryMemoryRegistry,
30
+ createSqliteMemoryRegistry,
31
+ getMemoryEventCounters,
32
+ getMemoryRegistry,
33
+ listImporters,
34
+ recordMemoryEvent,
35
+ registerImporter,
36
+ resetImporters,
37
+ resetMemoryTelemetry,
38
+ runImporters,
39
+ setMemoryRegistry,
40
+ subscribeToMemoryEvents
41
+ };
42
+ //# sourceMappingURL=dist-NIXVXYIH.js.map
@@ -0,0 +1,12 @@
1
+ import {
2
+ formatDeepDiagnostics,
3
+ runDeepDiagnostics
4
+ } from "./chunk-2UYTFLMO.js";
5
+ import "./chunk-WDYCIJWN.js";
6
+ import "./chunk-7BMOZJYS.js";
7
+ import "./chunk-UP2VWCW5.js";
8
+ export {
9
+ formatDeepDiagnostics,
10
+ runDeepDiagnostics
11
+ };
12
+ //# sourceMappingURL=doctor-deep-KQ765XZA.js.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ executeExpert
3
+ } from "./chunk-K2QILJG4.js";
4
+ import "./chunk-WDYCIJWN.js";
5
+ import "./chunk-7BMOZJYS.js";
6
+ import "./chunk-UP2VWCW5.js";
7
+ export {
8
+ executeExpert
9
+ };
10
+ //# sourceMappingURL=expert-bridge-JKLC57IC.js.map
@@ -0,0 +1,14 @@
1
+ import {
2
+ createGitHubProvider,
3
+ createScmProvider
4
+ } from "./chunk-FVPYP5DD.js";
5
+ import "./chunk-GONMG4NM.js";
6
+ import "./chunk-SD76JZBG.js";
7
+ import "./chunk-WDYCIJWN.js";
8
+ import "./chunk-7BMOZJYS.js";
9
+ import "./chunk-UP2VWCW5.js";
10
+ export {
11
+ createGitHubProvider,
12
+ createScmProvider
13
+ };
14
+ //# sourceMappingURL=factory-BUUXNGIB.js.map
@@ -3,11 +3,10 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-TDV5ALHY.js";
7
- import "./chunk-PWTJGGKB.js";
8
- import "./chunk-3MRM53T4.js";
9
- import "./chunk-I7ORMAO7.js";
10
- import "./chunk-GOT7OAL5.js";
6
+ } from "./chunk-D6TM2VHX.js";
7
+ import "./chunk-DLXT23AC.js";
8
+ import "./chunk-WDYCIJWN.js";
9
+ import "./chunk-7BMOZJYS.js";
11
10
  import "./chunk-UP2VWCW5.js";
12
11
  export {
13
12
  createAllAdapters,
@@ -15,4 +14,4 @@ export {
15
14
  getAvailableClis,
16
15
  isCliAvailable
17
16
  };
18
- //# sourceMappingURL=factory-X3VKIGKP.js.map
17
+ //# sourceMappingURL=factory-LHHYDVZX.js.map
package/dist/index.d.ts CHANGED
@@ -2544,6 +2544,7 @@ declare const TaskOutcomeSchema$2: z.ZodObject<{
2544
2544
  vendor: z.ZodOptional<z.ZodString>;
2545
2545
  family: z.ZodOptional<z.ZodString>;
2546
2546
  voterRole: z.ZodOptional<z.ZodString>;
2547
+ baselineId: z.ZodOptional<z.ZodString>;
2547
2548
  }, z.core.$strip>;
2548
2549
  /** Schema for filtering outcomes. */
2549
2550
  declare const OutcomeQuerySchema: z.ZodObject<{
@@ -2587,6 +2588,7 @@ declare const OutcomeQuerySchema: z.ZodObject<{
2587
2588
  since: z.ZodOptional<z.ZodString>;
2588
2589
  limit: z.ZodOptional<z.ZodNumber>;
2589
2590
  excludeQualitySignals: z.ZodOptional<z.ZodArray<z.ZodString>>;
2591
+ baselineId: z.ZodOptional<z.ZodString>;
2590
2592
  }, z.core.$strip>;
2591
2593
  /** A single recorded task execution outcome. */
2592
2594
  type TaskOutcome$2 = z.infer<typeof TaskOutcomeSchema$2>;
@@ -3579,6 +3581,15 @@ declare class CompositeRouter implements ICompositeRouter {
3579
3581
  private linucbBandit?;
3580
3582
  private latencyTracker?;
3581
3583
  private routingMemory?;
3584
+ /**
3585
+ * Most recently consulted unified memory context (Phase 3 of #2792).
3586
+ * Set on every {@link route} call so tests + telemetry can inspect what
3587
+ * the router saw at decision time. Typed as `unknown` here to avoid
3588
+ * pulling the typed surface into this module's circular-dep zone — the
3589
+ * field is for observability; callers that need typed reads should call
3590
+ * `getContextForTask` directly.
3591
+ */
3592
+ private lastUnifiedContext?;
3582
3593
  /** Metrics collector for routing observability (Issue #559) */
3583
3594
  private metricsCollector?;
3584
3595
  /** Orchestration observer for routing decision tracking (Issue #587) */
@@ -3593,7 +3604,7 @@ declare class CompositeRouter implements ICompositeRouter {
3593
3604
  private resourceStrategyStage?;
3594
3605
  /** Distilled rule stage instance (Issue #999) */
3595
3606
  private distilledRuleStage?;
3596
- /** KNN routing stage instance (arXiv:2507.05370) */
3607
+ /** KNN routing stage instance (arXiv:2505.12601) */
3597
3608
  private knnRoutingStage?;
3598
3609
  /** Strategy distiller instance (Issue #999) */
3599
3610
  private strategyDistiller?;
@@ -3622,6 +3633,12 @@ declare class CompositeRouter implements ICompositeRouter {
3622
3633
  private warmStartBandit;
3623
3634
  private logInitialization;
3624
3635
  route(task: CliTask): Promise<Result<CompositeRoutingDecision, CompositeRoutingError>>;
3636
+ /**
3637
+ * Read the unified memory context for this task. Best-effort, never
3638
+ * throws. Sets `this.lastUnifiedContext` so external observers (tests,
3639
+ * telemetry) can inspect what the router consulted at decision time.
3640
+ */
3641
+ private consultUnifiedContext;
3625
3642
  /**
3626
3643
  * Unified method that routes, executes, and auto-records feedback.
3627
3644
  * Use this for most cases; use route() when you need decision details without execution.
@@ -12791,6 +12808,27 @@ interface InputBinding {
12791
12808
  /** Literal value (if source is 'literal') */
12792
12809
  readonly value?: unknown;
12793
12810
  }
12811
+ /**
12812
+ * Promotion bridge from a per-instance skill library to the shared
12813
+ * memory substrate (Phase 6 of #2792). Called when a skill has
12814
+ * accumulated enough successful executions to be considered reliable.
12815
+ * The implementation typically writes a belief of the form
12816
+ * `subject = "skill:{name}"`, `predicate = "is_reliable_for"`,
12817
+ * `object = "{category}"` so future `getContextForTask` calls surface
12818
+ * the learning across all agents — not just the one that ran it.
12819
+ *
12820
+ * Best-effort: promoter implementations MUST NOT throw out of this
12821
+ * callback. SkillLibrary catches errors defensively, but cleaner not
12822
+ * to throw in the first place.
12823
+ */
12824
+ interface SkillPromotionEvent {
12825
+ readonly skillId: string;
12826
+ readonly name: string;
12827
+ readonly category: string;
12828
+ readonly successRate: number;
12829
+ readonly executionCount: number;
12830
+ }
12831
+ type SkillPromoter = (event: SkillPromotionEvent) => void | Promise<void>;
12794
12832
  /**
12795
12833
  * Configuration for the skill library.
12796
12834
  */
@@ -12807,6 +12845,19 @@ interface SkillLibraryConfig {
12807
12845
  readonly trackExecutionHistory: boolean;
12808
12846
  /** Maximum execution history entries per skill */
12809
12847
  readonly maxHistoryPerSkill: number;
12848
+ /**
12849
+ * Minimum successful executions before promoting the skill as a
12850
+ * belief into the shared substrate (Phase 6 of #2792). Default 5.
12851
+ * Skills below this threshold are still tracked locally; promotion
12852
+ * only fires once the signal stabilizes.
12853
+ */
12854
+ readonly minSuccessesForPromotion: number;
12855
+ /**
12856
+ * Optional promotion bridge to the shared belief store. When set,
12857
+ * SkillLibrary fires the callback whenever a skill crosses the
12858
+ * `minSuccessesForPromotion` threshold. Default: undefined (no-op).
12859
+ */
12860
+ readonly skillPromoter?: SkillPromoter;
12810
12861
  }
12811
12862
  /**
12812
12863
  * Default skill library configuration.
@@ -12929,6 +12980,19 @@ declare class SkillLibrary {
12929
12980
  * Updates metrics after an execution.
12930
12981
  */
12931
12982
  private updateMetrics;
12983
+ /**
12984
+ * Phase 6 of #2792 — promote a stabilized skill to the shared belief
12985
+ * store so future tasks (executed by other agents) see the signal.
12986
+ *
12987
+ * Fires exactly once per skill, when the successful-execution count
12988
+ * crosses {@link SkillLibraryConfig.minSuccessesForPromotion}. The
12989
+ * `previousMetrics → updatedMetrics` comparison guards against
12990
+ * re-promoting on every subsequent execution.
12991
+ *
12992
+ * Best-effort: a throwing/rejecting promoter is caught here so a
12993
+ * broken promotion bridge never breaks the local skill bookkeeping.
12994
+ */
12995
+ private maybePromote;
12932
12996
  /**
12933
12997
  * Evaluates whether a skill should be retained.
12934
12998
  */
@@ -14377,10 +14441,10 @@ type ActivationStrategy = 'ucb' | 'greedy' | 'diverse' | 'adaptive';
14377
14441
  * Schema for ActivationStrategy validation.
14378
14442
  */
14379
14443
  declare const ActivationStrategySchema: z.ZodEnum<{
14444
+ adaptive: "adaptive";
14380
14445
  ucb: "ucb";
14381
14446
  greedy: "greedy";
14382
14447
  diverse: "diverse";
14383
- adaptive: "adaptive";
14384
14448
  }>;
14385
14449
  /**
14386
14450
  * Strategy for sharing information across trees.
@@ -14475,10 +14539,10 @@ declare const ForestConfigSchema: z.ZodObject<{
14475
14539
  activationBudget: z.ZodDefault<z.ZodNumber>;
14476
14540
  sparsityRatio: z.ZodDefault<z.ZodNumber>;
14477
14541
  activationStrategy: z.ZodDefault<z.ZodEnum<{
14542
+ adaptive: "adaptive";
14478
14543
  ucb: "ucb";
14479
14544
  greedy: "greedy";
14480
14545
  diverse: "diverse";
14481
- adaptive: "adaptive";
14482
14546
  }>>;
14483
14547
  explorationConstant: z.ZodDefault<z.ZodNumber>;
14484
14548
  crossTreeStrategy: z.ZodDefault<z.ZodEnum<{
@@ -23664,10 +23728,10 @@ declare const MemoryQueryInputSchema: z.ZodObject<{
23664
23728
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
23665
23729
  source: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
23666
23730
  session: "session";
23667
- belief: "belief";
23668
23731
  all: "all";
23669
- adaptive: "adaptive";
23732
+ belief: "belief";
23670
23733
  agentic: "agentic";
23734
+ adaptive: "adaptive";
23671
23735
  typed: "typed";
23672
23736
  }>>>;
23673
23737
  }, z.core.$strip>;
@@ -23737,8 +23801,8 @@ declare const MemoryWriteInputSchema: z.ZodObject<{
23737
23801
  backend: z.ZodEnum<{
23738
23802
  session: "session";
23739
23803
  belief: "belief";
23740
- adaptive: "adaptive";
23741
23804
  agentic: "agentic";
23805
+ adaptive: "adaptive";
23742
23806
  typed: "typed";
23743
23807
  }>;
23744
23808
  confidence: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -30489,8 +30553,8 @@ declare const PluginManifestSchema: z.ZodObject<{
30489
30553
  trustLevel: z.ZodEnum<{
30490
30554
  external: "external";
30491
30555
  standard: "standard";
30492
- experimental: "experimental";
30493
30556
  core: "core";
30557
+ experimental: "experimental";
30494
30558
  }>;
30495
30559
  experimental: z.ZodBoolean;
30496
30560
  }, z.core.$strip>;
@@ -31196,7 +31260,7 @@ interface AgentExecutorConfig {
31196
31260
  readonly issueNumber?: number | undefined;
31197
31261
  readonly repo?: string | undefined;
31198
31262
  }
31199
- /** Flush pipeline memory session + persist MobiMem state (#1782). */
31263
+ /** Flush pipeline memory session. */
31200
31264
  declare function flushPipelineMemory(): void;
31201
31265
  declare function createAgentStages(config?: AgentExecutorConfig): DevPipelineStages;
31202
31266