nexus-agents 2.83.0 → 2.84.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 (126) hide show
  1. package/dist/{child-mcp-config-XVPIO5HV.js → child-mcp-config-VSGPMVLL.js} +3 -3
  2. package/dist/{chunk-5T6SYCH2.js → chunk-2PKAWFEU.js} +3 -2
  3. package/dist/chunk-2PKAWFEU.js.map +1 -0
  4. package/dist/{chunk-I2HMWH4R.js → chunk-2WCYG75B.js} +13 -2
  5. package/dist/chunk-2WCYG75B.js.map +1 -0
  6. package/dist/{chunk-PMLVZXAE.js → chunk-3PFESR6I.js} +1864 -1633
  7. package/dist/chunk-3PFESR6I.js.map +1 -0
  8. package/dist/{chunk-54UXPJVM.js → chunk-4IXQ6IXI.js} +2 -2
  9. package/dist/{chunk-FI77TGBY.js → chunk-5LFUZ5IC.js} +2 -2
  10. package/dist/{chunk-633WH2ML.js → chunk-6T3EPABN.js} +1 -1
  11. package/dist/chunk-6T3EPABN.js.map +1 -0
  12. package/dist/{chunk-ZM5JKJHI.js → chunk-BX3MUA26.js} +2 -2
  13. package/dist/{chunk-3ASED5PR.js → chunk-CJHIKBWI.js} +4 -4
  14. package/dist/{chunk-Z64MSLEK.js → chunk-D5BKSM6H.js} +2 -2
  15. package/dist/{chunk-3WUVWZUC.js → chunk-GBGMTN7O.js} +2 -2
  16. package/dist/{chunk-RXVH52UI.js → chunk-HLNMWGW3.js} +27 -4
  17. package/dist/chunk-HLNMWGW3.js.map +1 -0
  18. package/dist/{chunk-3GJAAENS.js → chunk-I3O5WOGW.js} +4 -4
  19. package/dist/{chunk-AFPHR72D.js → chunk-KK2RZVPU.js} +2 -2
  20. package/dist/{chunk-PPBZQKRP.js → chunk-KRRBRT7B.js} +6 -6
  21. package/dist/{chunk-YO27YAEX.js → chunk-KVYQOOML.js} +8 -24
  22. package/dist/chunk-KVYQOOML.js.map +1 -0
  23. package/dist/{chunk-BZUEUD4G.js → chunk-MBD5EJBO.js} +3 -3
  24. package/dist/{chunk-FHGDJKCZ.js → chunk-OE7OL2BE.js} +155 -47
  25. package/dist/chunk-OE7OL2BE.js.map +1 -0
  26. package/dist/{chunk-WJFUTRHX.js → chunk-OROUYVUX.js} +2 -2
  27. package/dist/{chunk-RVRXKNND.js → chunk-QIRZSDJK.js} +2 -2
  28. package/dist/{chunk-L362KRSU.js → chunk-REH5BB67.js} +78 -63
  29. package/dist/chunk-REH5BB67.js.map +1 -0
  30. package/dist/{chunk-NLPMYBIV.js → chunk-RZVEVT3M.js} +7 -7
  31. package/dist/{chunk-WGSRH5EQ.js → chunk-T6B6CKU6.js} +4 -4
  32. package/dist/chunk-T6B6CKU6.js.map +1 -0
  33. package/dist/{chunk-Q6PZMGLU.js → chunk-UJMIGLZI.js} +2 -2
  34. package/dist/{chunk-ZIWEEVMI.js → chunk-V35FWPHD.js} +2 -2
  35. package/dist/{chunk-4BXQ2OZY.js → chunk-V7RC2PIY.js} +20 -38
  36. package/dist/chunk-V7RC2PIY.js.map +1 -0
  37. package/dist/{chunk-AINOJRZX.js → chunk-VQIWH6X4.js} +9 -9
  38. package/dist/{chunk-2W4QJ27D.js → chunk-VXHDZULO.js} +3 -3
  39. package/dist/{chunk-U6LDVJS7.js → chunk-XK523BNC.js} +2 -2
  40. package/dist/chunk-YVG32OQF.js +27 -0
  41. package/dist/chunk-YVG32OQF.js.map +1 -0
  42. package/dist/{chunk-6WDJ3IE4.js → chunk-ZJGCOJC6.js} +4 -4
  43. package/dist/{cli-circuit-breaker-Y26NPPNO.js → cli-circuit-breaker-6EQKYNAA.js} +5 -5
  44. package/dist/cli.js +37 -34
  45. package/dist/cli.js.map +1 -1
  46. package/dist/{composite-router-X2ZYIEHH.js → composite-router-SA4XHXA3.js} +3 -3
  47. package/dist/consensus-vote-QKUHNHS4.js +31 -0
  48. package/dist/context-retriever-XX4TQBIB.js +19 -0
  49. package/dist/{doctor-deep-2E2GBMYR.js → doctor-deep-NB7IDWJE.js} +4 -4
  50. package/dist/expert-bridge-4MHM77VW.js +13 -0
  51. package/dist/{factory-STNVY3Y3.js → factory-FKOPQXRS.js} +6 -5
  52. package/dist/factory-UHH4ZZ64.js +14 -0
  53. package/dist/index.d.ts +114 -149
  54. package/dist/index.js +63 -128
  55. package/dist/index.js.map +1 -1
  56. package/dist/{init-opencode-6LVZ4CAQ.js → init-opencode-AVYAC33Q.js} +6 -6
  57. package/dist/issue-triage-7PYND7PY.js +15 -0
  58. package/dist/{learning-persistence-NX2KHL5T.js → learning-persistence-5ALG6XRC.js} +2 -2
  59. package/dist/{registry-command-P5VIAEOL.js → registry-command-7SFNZRG5.js} +3 -3
  60. package/dist/{repo-security-plan-RHSLO7H6.js → repo-security-plan-MTVL5B73.js} +4 -4
  61. package/dist/{research-helpers-synthesize-PVP6JRZV.js → research-helpers-synthesize-6CJ5P4WL.js} +4 -4
  62. package/dist/{routing-memory-QRIJPRVD.js → routing-memory-Y577PXFP.js} +3 -3
  63. package/dist/{session-memory-WARRGYY7.js → session-memory-6YFGMEMP.js} +4 -4
  64. package/dist/{setup-command-GMP5FI7F.js → setup-command-YBTD6D53.js} +13 -12
  65. package/dist/setup-config-BQYLUJHY.js +10 -0
  66. package/dist/{setup-custom-api-B63X7ISD.js → setup-custom-api-ZB7LOQC5.js} +5 -5
  67. package/dist/{tool-memory-E7JW4YLT.js → tool-memory-GFYQFRQI.js} +7 -6
  68. package/dist/{weather-report-RACZWJQL.js → weather-report-CN6WPJI4.js} +3 -3
  69. package/package.json +1 -1
  70. package/dist/chunk-4BXQ2OZY.js.map +0 -1
  71. package/dist/chunk-5T6SYCH2.js.map +0 -1
  72. package/dist/chunk-633WH2ML.js.map +0 -1
  73. package/dist/chunk-FHGDJKCZ.js.map +0 -1
  74. package/dist/chunk-I2HMWH4R.js.map +0 -1
  75. package/dist/chunk-L362KRSU.js.map +0 -1
  76. package/dist/chunk-PMLVZXAE.js.map +0 -1
  77. package/dist/chunk-RXVH52UI.js.map +0 -1
  78. package/dist/chunk-WGSRH5EQ.js.map +0 -1
  79. package/dist/chunk-YO27YAEX.js.map +0 -1
  80. package/dist/consensus-vote-KZ6UURUI.js +0 -30
  81. package/dist/context-retriever-QY4FNTDZ.js +0 -18
  82. package/dist/expert-bridge-FHPWDFJX.js +0 -13
  83. package/dist/factory-W6KROBFN.js +0 -14
  84. package/dist/issue-triage-Y77JI7WF.js +0 -15
  85. package/dist/setup-config-G3KKZM7O.js +0 -10
  86. /package/dist/{child-mcp-config-XVPIO5HV.js.map → child-mcp-config-VSGPMVLL.js.map} +0 -0
  87. /package/dist/{chunk-54UXPJVM.js.map → chunk-4IXQ6IXI.js.map} +0 -0
  88. /package/dist/{chunk-FI77TGBY.js.map → chunk-5LFUZ5IC.js.map} +0 -0
  89. /package/dist/{chunk-ZM5JKJHI.js.map → chunk-BX3MUA26.js.map} +0 -0
  90. /package/dist/{chunk-3ASED5PR.js.map → chunk-CJHIKBWI.js.map} +0 -0
  91. /package/dist/{chunk-Z64MSLEK.js.map → chunk-D5BKSM6H.js.map} +0 -0
  92. /package/dist/{chunk-3WUVWZUC.js.map → chunk-GBGMTN7O.js.map} +0 -0
  93. /package/dist/{chunk-3GJAAENS.js.map → chunk-I3O5WOGW.js.map} +0 -0
  94. /package/dist/{chunk-AFPHR72D.js.map → chunk-KK2RZVPU.js.map} +0 -0
  95. /package/dist/{chunk-PPBZQKRP.js.map → chunk-KRRBRT7B.js.map} +0 -0
  96. /package/dist/{chunk-BZUEUD4G.js.map → chunk-MBD5EJBO.js.map} +0 -0
  97. /package/dist/{chunk-WJFUTRHX.js.map → chunk-OROUYVUX.js.map} +0 -0
  98. /package/dist/{chunk-RVRXKNND.js.map → chunk-QIRZSDJK.js.map} +0 -0
  99. /package/dist/{chunk-NLPMYBIV.js.map → chunk-RZVEVT3M.js.map} +0 -0
  100. /package/dist/{chunk-Q6PZMGLU.js.map → chunk-UJMIGLZI.js.map} +0 -0
  101. /package/dist/{chunk-ZIWEEVMI.js.map → chunk-V35FWPHD.js.map} +0 -0
  102. /package/dist/{chunk-AINOJRZX.js.map → chunk-VQIWH6X4.js.map} +0 -0
  103. /package/dist/{chunk-2W4QJ27D.js.map → chunk-VXHDZULO.js.map} +0 -0
  104. /package/dist/{chunk-U6LDVJS7.js.map → chunk-XK523BNC.js.map} +0 -0
  105. /package/dist/{chunk-6WDJ3IE4.js.map → chunk-ZJGCOJC6.js.map} +0 -0
  106. /package/dist/{cli-circuit-breaker-Y26NPPNO.js.map → cli-circuit-breaker-6EQKYNAA.js.map} +0 -0
  107. /package/dist/{composite-router-X2ZYIEHH.js.map → composite-router-SA4XHXA3.js.map} +0 -0
  108. /package/dist/{consensus-vote-KZ6UURUI.js.map → consensus-vote-QKUHNHS4.js.map} +0 -0
  109. /package/dist/{context-retriever-QY4FNTDZ.js.map → context-retriever-XX4TQBIB.js.map} +0 -0
  110. /package/dist/{doctor-deep-2E2GBMYR.js.map → doctor-deep-NB7IDWJE.js.map} +0 -0
  111. /package/dist/{expert-bridge-FHPWDFJX.js.map → expert-bridge-4MHM77VW.js.map} +0 -0
  112. /package/dist/{factory-STNVY3Y3.js.map → factory-FKOPQXRS.js.map} +0 -0
  113. /package/dist/{factory-W6KROBFN.js.map → factory-UHH4ZZ64.js.map} +0 -0
  114. /package/dist/{init-opencode-6LVZ4CAQ.js.map → init-opencode-AVYAC33Q.js.map} +0 -0
  115. /package/dist/{issue-triage-Y77JI7WF.js.map → issue-triage-7PYND7PY.js.map} +0 -0
  116. /package/dist/{learning-persistence-NX2KHL5T.js.map → learning-persistence-5ALG6XRC.js.map} +0 -0
  117. /package/dist/{registry-command-P5VIAEOL.js.map → registry-command-7SFNZRG5.js.map} +0 -0
  118. /package/dist/{repo-security-plan-RHSLO7H6.js.map → repo-security-plan-MTVL5B73.js.map} +0 -0
  119. /package/dist/{research-helpers-synthesize-PVP6JRZV.js.map → research-helpers-synthesize-6CJ5P4WL.js.map} +0 -0
  120. /package/dist/{routing-memory-QRIJPRVD.js.map → routing-memory-Y577PXFP.js.map} +0 -0
  121. /package/dist/{session-memory-WARRGYY7.js.map → session-memory-6YFGMEMP.js.map} +0 -0
  122. /package/dist/{setup-command-GMP5FI7F.js.map → setup-command-YBTD6D53.js.map} +0 -0
  123. /package/dist/{setup-config-G3KKZM7O.js.map → setup-config-BQYLUJHY.js.map} +0 -0
  124. /package/dist/{setup-custom-api-B63X7ISD.js.map → setup-custom-api-ZB7LOQC5.js.map} +0 -0
  125. /package/dist/{tool-memory-E7JW4YLT.js.map → tool-memory-GFYQFRQI.js.map} +0 -0
  126. /package/dist/{weather-report-RACZWJQL.js.map → weather-report-CN6WPJI4.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createGitHubProvider,
3
3
  createScmProvider
4
- } from "./chunk-3ASED5PR.js";
4
+ } from "./chunk-CJHIKBWI.js";
5
5
  import {
6
6
  ALLOWED_COMMANDS,
7
7
  ARTIFACT_TYPES,
@@ -519,26 +519,26 @@ import {
519
519
  validateWorkflow,
520
520
  validateWorkflowDependencies,
521
521
  withLogging
522
- } from "./chunk-PMLVZXAE.js";
522
+ } from "./chunk-3PFESR6I.js";
523
523
  import {
524
524
  getTokenEnvVars,
525
525
  hasToken,
526
526
  resolveToken
527
- } from "./chunk-Z64MSLEK.js";
527
+ } from "./chunk-D5BKSM6H.js";
528
528
  import "./chunk-X2M7OF27.js";
529
529
  import {
530
530
  OPENAI_MODELS,
531
531
  OPENAI_MODEL_ALIASES,
532
532
  OpenAIAdapter,
533
533
  createOpenAIAdapter
534
- } from "./chunk-WGSRH5EQ.js";
534
+ } from "./chunk-T6B6CKU6.js";
535
535
  import {
536
536
  CliCircuitBreakerIntegration,
537
537
  createCliCircuitBreakerIntegration
538
- } from "./chunk-2W4QJ27D.js";
538
+ } from "./chunk-VXHDZULO.js";
539
539
  import {
540
540
  executeExpert
541
- } from "./chunk-NLPMYBIV.js";
541
+ } from "./chunk-RZVEVT3M.js";
542
542
  import {
543
543
  AgentFindingSchema,
544
544
  AgentPerformanceSchema,
@@ -613,8 +613,6 @@ import {
613
613
  createWeightedVoting,
614
614
  denyMutationsWithoutModeRule,
615
615
  determineFinalStatus,
616
- emitThresholdUpdate,
617
- emitTrendDetected,
618
616
  evaluatePolicy,
619
617
  extractRequestSystemPrompt,
620
618
  extractSystemPrompt,
@@ -634,7 +632,7 @@ import {
634
632
  validateToolInput,
635
633
  withModelNotFoundFallback,
636
634
  wrapResilientWithFallback
637
- } from "./chunk-4BXQ2OZY.js";
635
+ } from "./chunk-V7RC2PIY.js";
638
636
  import {
639
637
  AdapterModelError,
640
638
  BaseAdapter,
@@ -658,11 +656,11 @@ import {
658
656
  transformStream,
659
657
  validateApiKeyPresence,
660
658
  withTimeout
661
- } from "./chunk-54UXPJVM.js";
659
+ } from "./chunk-4IXQ6IXI.js";
662
660
  import {
663
661
  PROVIDER_ENV_KEYS
664
- } from "./chunk-ZIWEEVMI.js";
665
- import "./chunk-AFPHR72D.js";
662
+ } from "./chunk-V35FWPHD.js";
663
+ import "./chunk-KK2RZVPU.js";
666
664
  import {
667
665
  AgentActionSchema,
668
666
  GitHubReviewer,
@@ -695,11 +693,11 @@ import {
695
693
  sanitizeInput,
696
694
  validateAgentAction,
697
695
  validateCorroboration
698
- } from "./chunk-BZUEUD4G.js";
696
+ } from "./chunk-MBD5EJBO.js";
699
697
  import {
700
698
  GitHubProvider,
701
699
  ScmError
702
- } from "./chunk-L362KRSU.js";
700
+ } from "./chunk-REH5BB67.js";
703
701
  import {
704
702
  FALLBACK_SCANNER_DATA,
705
703
  buildPlanFromAnalysis,
@@ -707,7 +705,7 @@ import {
707
705
  generateSecurityPlan,
708
706
  getRegistryManifest,
709
707
  resolveScannerData
710
- } from "./chunk-RVRXKNND.js";
708
+ } from "./chunk-QIRZSDJK.js";
711
709
  import {
712
710
  analyzeGitHubRepo,
713
711
  analyzeRepo,
@@ -717,10 +715,10 @@ import "./chunk-3ACDP4E6.js";
717
715
  import {
718
716
  PersistentStrategyDistiller,
719
717
  RulesSnapshotSchema
720
- } from "./chunk-3GJAAENS.js";
718
+ } from "./chunk-I3O5WOGW.js";
721
719
  import {
722
720
  MemoryError
723
- } from "./chunk-YO27YAEX.js";
721
+ } from "./chunk-KVYQOOML.js";
724
722
  import {
725
723
  AppConfigSchema,
726
724
  ExpertConfigSchema,
@@ -739,7 +737,7 @@ import {
739
737
  getKnownNexusVarNames,
740
738
  startStdioServer,
741
739
  validateNexusEnv
742
- } from "./chunk-AINOJRZX.js";
740
+ } from "./chunk-VQIWH6X4.js";
743
741
  import {
744
742
  AvailabilityCache,
745
743
  filterAvailableModels,
@@ -748,17 +746,17 @@ import {
748
746
  getFallbackChain,
749
747
  resetAvailabilityCache,
750
748
  resolveFallback
751
- } from "./chunk-3WUVWZUC.js";
749
+ } from "./chunk-GBGMTN7O.js";
752
750
  import {
753
751
  AvailableModelsCache,
754
752
  getDefaultAvailableModelsCache,
755
753
  setDefaultAvailableModelsCache
756
- } from "./chunk-Q6PZMGLU.js";
754
+ } from "./chunk-UJMIGLZI.js";
757
755
  import {
758
756
  DEFAULTS
759
- } from "./chunk-ZM5JKJHI.js";
757
+ } from "./chunk-BX3MUA26.js";
760
758
  import "./chunk-NUBSJGQZ.js";
761
- import "./chunk-633WH2ML.js";
759
+ import "./chunk-6T3EPABN.js";
762
760
  import {
763
761
  BaseCliAdapter,
764
762
  CLI_TIMEOUT_PROFILES,
@@ -787,8 +785,9 @@ import {
787
785
  isCliAvailable,
788
786
  isRetryableError,
789
787
  sleep
790
- } from "./chunk-FHGDJKCZ.js";
791
- import "./chunk-5T6SYCH2.js";
788
+ } from "./chunk-OE7OL2BE.js";
789
+ import "./chunk-2PKAWFEU.js";
790
+ import "./chunk-YVG32OQF.js";
792
791
  import {
793
792
  BUILT_IN_EXPERTS,
794
793
  BuiltInExpertTypeSchema,
@@ -799,7 +798,7 @@ import {
799
798
  validateExpertConfig
800
799
  } from "./chunk-ZM4O442V.js";
801
800
  import "./chunk-PQHVC4BD.js";
802
- import "./chunk-U6LDVJS7.js";
801
+ import "./chunk-XK523BNC.js";
803
802
  import {
804
803
  AgentCapability,
805
804
  AgentError,
@@ -874,8 +873,8 @@ import {
874
873
  toError,
875
874
  unwrap,
876
875
  unwrapOr
877
- } from "./chunk-RXVH52UI.js";
878
- import "./chunk-I2HMWH4R.js";
876
+ } from "./chunk-HLNMWGW3.js";
877
+ import "./chunk-2WCYG75B.js";
879
878
  import "./chunk-PR4QN5HX.js";
880
879
 
881
880
  // src/adapters/factory.ts
@@ -1486,6 +1485,36 @@ function withRetryWrapper(fn, options = {}) {
1486
1485
 
1487
1486
  // src/adapters/ollama-adapter.ts
1488
1487
  import { Ollama } from "ollama";
1488
+
1489
+ // src/adapters/abort-utils.ts
1490
+ var AbortError = class extends Error {
1491
+ name = "AbortError";
1492
+ constructor(message = "Operation aborted") {
1493
+ super(message);
1494
+ }
1495
+ };
1496
+ function raceAbort(promise, signal) {
1497
+ if (signal === void 0) return promise;
1498
+ if (signal.aborted) return Promise.reject(new AbortError());
1499
+ return new Promise((resolve2, reject) => {
1500
+ const onAbort = () => {
1501
+ reject(new AbortError());
1502
+ };
1503
+ signal.addEventListener("abort", onAbort, { once: true });
1504
+ promise.then(
1505
+ (value) => {
1506
+ signal.removeEventListener("abort", onAbort);
1507
+ resolve2(value);
1508
+ },
1509
+ (error) => {
1510
+ signal.removeEventListener("abort", onAbort);
1511
+ reject(error instanceof Error ? error : new Error(String(error)));
1512
+ }
1513
+ );
1514
+ });
1515
+ }
1516
+
1517
+ // src/adapters/ollama-adapter.ts
1489
1518
  var OLLAMA_MODELS = {
1490
1519
  LLAMA3_8B: "llama3:8b",
1491
1520
  LLAMA3_70B: "llama3:70b",
@@ -1605,7 +1634,8 @@ var OllamaAdapter = class extends BaseAdapter {
1605
1634
  this.logRequest(request);
1606
1635
  try {
1607
1636
  const params = this.buildRequestParams(request);
1608
- const response = await this.client.chat({ ...params, stream: false });
1637
+ const chatPromise = this.client.chat({ ...params, stream: false });
1638
+ const response = await raceAbort(chatPromise, request.signal);
1609
1639
  const result = this.mapResponse(response);
1610
1640
  this.logResponse(result);
1611
1641
  return ok(result);
@@ -1967,6 +1997,7 @@ var GeminiAdapter = class extends BaseAdapter {
1967
1997
  if (request.tools !== void 0 && request.tools.length > 0) {
1968
1998
  config.tools = [{ functionDeclarations: request.tools.map(mapToolToFunctionDeclaration) }];
1969
1999
  }
2000
+ if (request.signal !== void 0) config.abortSignal = request.signal;
1970
2001
  return config;
1971
2002
  }
1972
2003
  /**
@@ -5631,8 +5662,8 @@ var PIPELINE_EVENT_TYPES = [
5631
5662
  "artifact.created",
5632
5663
  "model.called",
5633
5664
  "routing.decision",
5634
- "learning.threshold_updated",
5635
- "learning.trend_detected",
5665
+ // 'learning.threshold_updated' + 'learning.trend_detected' removed in
5666
+ // #3022 — the emit helpers and event-bus subscribers both never landed.
5636
5667
  "tool.invoked",
5637
5668
  "tool.completed",
5638
5669
  "wave.started",
@@ -5939,7 +5970,7 @@ function buildVotingInput(plan, config) {
5939
5970
  }
5940
5971
  async function executeSingleVote(plan, config, log) {
5941
5972
  try {
5942
- const { executeVoting } = await import("./consensus-vote-KZ6UURUI.js");
5973
+ const { executeVoting } = await import("./consensus-vote-QKUHNHS4.js");
5943
5974
  const input = buildVotingInput(plan, config);
5944
5975
  const result = await executeVoting(input, log);
5945
5976
  return parseVotingResult(result);
@@ -5964,36 +5995,6 @@ function parseVotingResult(result) {
5964
5995
  return { kind: "rejected", feedback, approvalPercentage: pct };
5965
5996
  }
5966
5997
 
5967
- // src/pipeline/incomplete-result.ts
5968
- function isIncompleteResult(value) {
5969
- if (typeof value !== "object" || value === null) return false;
5970
- const obj = value;
5971
- return typeof obj["stageId"] === "string" && typeof obj["severity"] === "string" && typeof obj["justification"] === "string" && typeof obj["canProceed"] === "boolean" && Array.isArray(obj["missing"]);
5972
- }
5973
- function createIncompleteResult(stageId, partialOutput, missing, severity, justification) {
5974
- return {
5975
- stageId,
5976
- partialOutput,
5977
- missing,
5978
- severity,
5979
- justification,
5980
- canProceed: severity !== "critical"
5981
- };
5982
- }
5983
- function canPipelineProceed(results) {
5984
- return results.every((r) => r.canProceed);
5985
- }
5986
- function filterBySeverity(results, minSeverity) {
5987
- const severityOrder = {
5988
- info: 0,
5989
- warning: 1,
5990
- error: 2,
5991
- critical: 3
5992
- };
5993
- const threshold = severityOrder[minSeverity];
5994
- return results.filter((r) => severityOrder[r.severity] >= threshold);
5995
- }
5996
-
5997
5998
  // src/pipeline/shared-memory.ts
5998
5999
  var SharedMemoryStore = class {
5999
6000
  entries = [];
@@ -6053,66 +6054,8 @@ function formatContent(content) {
6053
6054
  return String(content);
6054
6055
  }
6055
6056
 
6056
- // src/pipeline/dynamic-expert.ts
6057
- var logger12 = createLogger({ component: "dynamic-expert" });
6058
- var MAX_DYNAMIC_EXPERTS = 2;
6059
- var DynamicExpertManager = class {
6060
- experts = [];
6061
- maxExperts;
6062
- constructor(maxExperts = MAX_DYNAMIC_EXPERTS) {
6063
- this.maxExperts = maxExperts;
6064
- }
6065
- /** Create a new dynamic expert. Returns null if limit reached. */
6066
- create(spec) {
6067
- if (this.experts.length >= this.maxExperts) {
6068
- logger12.warn("Dynamic expert limit reached", {
6069
- limit: this.maxExperts,
6070
- requested: spec.id
6071
- });
6072
- return null;
6073
- }
6074
- if (spec.id.trim() === "" || spec.name.trim() === "") {
6075
- logger12.warn("Invalid dynamic expert spec", { id: spec.id });
6076
- return null;
6077
- }
6078
- if (this.experts.some((e) => e.spec.id === spec.id)) {
6079
- logger12.warn("Duplicate dynamic expert ID", { id: spec.id });
6080
- return null;
6081
- }
6082
- const expert = {
6083
- spec,
6084
- createdAt: Date.now(),
6085
- promoted: false
6086
- };
6087
- this.experts.push(expert);
6088
- logger12.info("Dynamic expert created", {
6089
- id: spec.id,
6090
- name: spec.name,
6091
- total: this.experts.length,
6092
- max: this.maxExperts
6093
- });
6094
- return expert;
6095
- }
6096
- /** Get all created experts. */
6097
- list() {
6098
- return [...this.experts];
6099
- }
6100
- /** Get an expert by ID. */
6101
- get(id) {
6102
- return this.experts.find((e) => e.spec.id === id);
6103
- }
6104
- /** How many more experts can be created. */
6105
- get remaining() {
6106
- return Math.max(0, this.maxExperts - this.experts.length);
6107
- }
6108
- /** Whether the limit has been reached. */
6109
- get atLimit() {
6110
- return this.experts.length >= this.maxExperts;
6111
- }
6112
- };
6113
-
6114
6057
  // src/replay/replay-executor.ts
6115
- var logger13 = createLogger({ component: "ReplayExecutor" });
6058
+ var logger12 = createLogger({ component: "ReplayExecutor" });
6116
6059
  export {
6117
6060
  ALLOWED_COMMANDS,
6118
6061
  ARTIFACT_TYPES,
@@ -6272,7 +6215,6 @@ export {
6272
6215
  DependencyGraph,
6273
6216
  DirectedInteractionGraph,
6274
6217
  DocumentationExpert,
6275
- DynamicExpertManager,
6276
6218
  END,
6277
6219
  EXPERT_CAPABILITIES,
6278
6220
  EXPERT_DEFAULT_CAPABILITIES,
@@ -6356,7 +6298,6 @@ export {
6356
6298
  LoggingConfigSchema,
6357
6299
  MANIPULATION_CATEGORY,
6358
6300
  MAX_DIFF_LENGTH,
6359
- MAX_DYNAMIC_EXPERTS,
6360
6301
  MAX_EXECUTION_TIME_MS,
6361
6302
  MEM0_TARGETS,
6362
6303
  MIN_EXPERTS_FOR_PATTERN,
@@ -6629,7 +6570,6 @@ export {
6629
6570
  calculateWinLoss,
6630
6571
  canExecuteSkill,
6631
6572
  canInfluenceDecisions,
6632
- canPipelineProceed,
6633
6573
  canProceed,
6634
6574
  cancelExecution,
6635
6575
  categorizeOutcomeError,
@@ -6708,7 +6648,6 @@ export {
6708
6648
  createGitHubProvider,
6709
6649
  createGraphAuditBridge,
6710
6650
  createHigherOrderVotingStrategy,
6711
- createIncompleteResult,
6712
6651
  createInitialCostMetrics,
6713
6652
  createInitialSessionMetrics,
6714
6653
  createInitialTokenUsage,
@@ -6794,8 +6733,6 @@ export {
6794
6733
  emitStageStarted,
6795
6734
  emitStateUpdated,
6796
6735
  emitStepCompleted,
6797
- emitThresholdUpdate,
6798
- emitTrendDetected,
6799
6736
  emitTrustEvent,
6800
6737
  err,
6801
6738
  estimateTokens2 as estimateBenchmarkTokens,
@@ -6820,7 +6757,6 @@ export {
6820
6757
  extractStringArrayField,
6821
6758
  extractStringField,
6822
6759
  filterAvailableModels,
6823
- filterBySeverity,
6824
6760
  filterStream,
6825
6761
  findActiveSession,
6826
6762
  findMissingDependencies,
@@ -6892,7 +6828,6 @@ export {
6892
6828
  isCliAvailable,
6893
6829
  isRetryableError as isCliRetryableError,
6894
6830
  isErr,
6895
- isIncompleteResult,
6896
6831
  isMutatingAction,
6897
6832
  isOk,
6898
6833
  isReadOnlyAction,