nexus-agents 2.83.0 → 2.83.1
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.
- package/dist/{child-mcp-config-XVPIO5HV.js → child-mcp-config-3ZW2UPKZ.js} +2 -2
- package/dist/{chunk-AINOJRZX.js → chunk-4XSCU4B3.js} +8 -8
- package/dist/{chunk-BZUEUD4G.js → chunk-5QJPM5CB.js} +3 -3
- package/dist/{chunk-633WH2ML.js → chunk-6T3EPABN.js} +1 -1
- package/dist/chunk-6T3EPABN.js.map +1 -0
- package/dist/{chunk-RXVH52UI.js → chunk-6UI4NKT4.js} +2 -2
- package/dist/{chunk-ZIWEEVMI.js → chunk-6XRNFLPI.js} +2 -2
- package/dist/{chunk-YO27YAEX.js → chunk-7V367KT4.js} +4 -4
- package/dist/{chunk-6WDJ3IE4.js → chunk-A6WC5I7V.js} +3 -3
- package/dist/{chunk-2W4QJ27D.js → chunk-BICIQYET.js} +3 -3
- package/dist/{chunk-WJFUTRHX.js → chunk-BUXXAN6V.js} +2 -2
- package/dist/{chunk-ZM5JKJHI.js → chunk-DWOSFYI2.js} +2 -2
- package/dist/{chunk-FHGDJKCZ.js → chunk-ELRNVADA.js} +3 -3
- package/dist/{chunk-AFPHR72D.js → chunk-FHY7I736.js} +2 -2
- package/dist/{chunk-3GJAAENS.js → chunk-HGPIHDC4.js} +3 -3
- package/dist/{chunk-WGSRH5EQ.js → chunk-IM2B3FK2.js} +3 -3
- package/dist/{chunk-PMLVZXAE.js → chunk-J4ZBKE4B.js} +129 -190
- package/dist/chunk-J4ZBKE4B.js.map +1 -0
- package/dist/{chunk-54UXPJVM.js → chunk-JA6ON2RP.js} +2 -2
- package/dist/{chunk-5T6SYCH2.js → chunk-LM2S2QWO.js} +2 -2
- package/dist/{chunk-5T6SYCH2.js.map → chunk-LM2S2QWO.js.map} +1 -1
- package/dist/{chunk-3ASED5PR.js → chunk-MATFDJRW.js} +4 -4
- package/dist/{chunk-FI77TGBY.js → chunk-O3XJLOEX.js} +2 -2
- package/dist/{chunk-4BXQ2OZY.js → chunk-ODKIRXN7.js} +9 -36
- package/dist/chunk-ODKIRXN7.js.map +1 -0
- package/dist/{chunk-NLPMYBIV.js → chunk-SZZS57X7.js} +7 -7
- package/dist/{chunk-RVRXKNND.js → chunk-TKGVRHEI.js} +2 -2
- package/dist/{chunk-U6LDVJS7.js → chunk-UFUR6RBP.js} +2 -2
- package/dist/{chunk-Q6PZMGLU.js → chunk-VXIHHHLQ.js} +2 -2
- package/dist/{chunk-3WUVWZUC.js → chunk-W6MLS2UL.js} +2 -2
- package/dist/{chunk-Z64MSLEK.js → chunk-XODXYOFN.js} +2 -2
- package/dist/{chunk-PPBZQKRP.js → chunk-ZA6AZ7LK.js} +5 -5
- package/dist/{chunk-L362KRSU.js → chunk-ZLGU7T6J.js} +2 -2
- package/dist/{cli-circuit-breaker-Y26NPPNO.js → cli-circuit-breaker-LC4NZUGD.js} +4 -4
- package/dist/cli.js +33 -33
- package/dist/{composite-router-X2ZYIEHH.js → composite-router-GXQ25DO4.js} +2 -2
- package/dist/{consensus-vote-KZ6UURUI.js → consensus-vote-MTLP6E72.js} +12 -12
- package/dist/{context-retriever-QY4FNTDZ.js → context-retriever-GQRC2MVM.js} +6 -6
- package/dist/{doctor-deep-2E2GBMYR.js → doctor-deep-T3UUJX2E.js} +3 -3
- package/dist/{expert-bridge-FHPWDFJX.js → expert-bridge-7LPGCPPR.js} +4 -4
- package/dist/{factory-W6KROBFN.js → factory-3XB5CAAA.js} +5 -5
- package/dist/{factory-STNVY3Y3.js → factory-OKNCTJO6.js} +4 -4
- package/dist/index.d.ts +3 -143
- package/dist/index.js +28 -126
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-6LVZ4CAQ.js → init-opencode-KDTBKLXS.js} +5 -5
- package/dist/{issue-triage-Y77JI7WF.js → issue-triage-MURMDN2G.js} +4 -4
- package/dist/{registry-command-P5VIAEOL.js → registry-command-D56ROMFJ.js} +2 -2
- package/dist/{repo-security-plan-RHSLO7H6.js → repo-security-plan-N3CDMW6L.js} +3 -3
- package/dist/{research-helpers-synthesize-PVP6JRZV.js → research-helpers-synthesize-36QBOKII.js} +3 -3
- package/dist/{routing-memory-QRIJPRVD.js → routing-memory-6IEPJ3EP.js} +2 -2
- package/dist/{session-memory-WARRGYY7.js → session-memory-X6SCDFER.js} +3 -3
- package/dist/{setup-command-GMP5FI7F.js → setup-command-5AEO5A4Z.js} +11 -11
- package/dist/{setup-config-G3KKZM7O.js → setup-config-RPSVIQJO.js} +3 -3
- package/dist/{setup-custom-api-B63X7ISD.js → setup-custom-api-RBOJT3SS.js} +4 -4
- package/dist/{tool-memory-E7JW4YLT.js → tool-memory-EEHITQRJ.js} +5 -5
- package/dist/{weather-report-RACZWJQL.js → weather-report-6BC3JK5H.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-4BXQ2OZY.js.map +0 -1
- package/dist/chunk-633WH2ML.js.map +0 -1
- package/dist/chunk-PMLVZXAE.js.map +0 -1
- /package/dist/{child-mcp-config-XVPIO5HV.js.map → child-mcp-config-3ZW2UPKZ.js.map} +0 -0
- /package/dist/{chunk-AINOJRZX.js.map → chunk-4XSCU4B3.js.map} +0 -0
- /package/dist/{chunk-BZUEUD4G.js.map → chunk-5QJPM5CB.js.map} +0 -0
- /package/dist/{chunk-RXVH52UI.js.map → chunk-6UI4NKT4.js.map} +0 -0
- /package/dist/{chunk-ZIWEEVMI.js.map → chunk-6XRNFLPI.js.map} +0 -0
- /package/dist/{chunk-YO27YAEX.js.map → chunk-7V367KT4.js.map} +0 -0
- /package/dist/{chunk-6WDJ3IE4.js.map → chunk-A6WC5I7V.js.map} +0 -0
- /package/dist/{chunk-2W4QJ27D.js.map → chunk-BICIQYET.js.map} +0 -0
- /package/dist/{chunk-WJFUTRHX.js.map → chunk-BUXXAN6V.js.map} +0 -0
- /package/dist/{chunk-ZM5JKJHI.js.map → chunk-DWOSFYI2.js.map} +0 -0
- /package/dist/{chunk-FHGDJKCZ.js.map → chunk-ELRNVADA.js.map} +0 -0
- /package/dist/{chunk-AFPHR72D.js.map → chunk-FHY7I736.js.map} +0 -0
- /package/dist/{chunk-3GJAAENS.js.map → chunk-HGPIHDC4.js.map} +0 -0
- /package/dist/{chunk-WGSRH5EQ.js.map → chunk-IM2B3FK2.js.map} +0 -0
- /package/dist/{chunk-54UXPJVM.js.map → chunk-JA6ON2RP.js.map} +0 -0
- /package/dist/{chunk-3ASED5PR.js.map → chunk-MATFDJRW.js.map} +0 -0
- /package/dist/{chunk-FI77TGBY.js.map → chunk-O3XJLOEX.js.map} +0 -0
- /package/dist/{chunk-NLPMYBIV.js.map → chunk-SZZS57X7.js.map} +0 -0
- /package/dist/{chunk-RVRXKNND.js.map → chunk-TKGVRHEI.js.map} +0 -0
- /package/dist/{chunk-U6LDVJS7.js.map → chunk-UFUR6RBP.js.map} +0 -0
- /package/dist/{chunk-Q6PZMGLU.js.map → chunk-VXIHHHLQ.js.map} +0 -0
- /package/dist/{chunk-3WUVWZUC.js.map → chunk-W6MLS2UL.js.map} +0 -0
- /package/dist/{chunk-Z64MSLEK.js.map → chunk-XODXYOFN.js.map} +0 -0
- /package/dist/{chunk-PPBZQKRP.js.map → chunk-ZA6AZ7LK.js.map} +0 -0
- /package/dist/{chunk-L362KRSU.js.map → chunk-ZLGU7T6J.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-Y26NPPNO.js.map → cli-circuit-breaker-LC4NZUGD.js.map} +0 -0
- /package/dist/{composite-router-X2ZYIEHH.js.map → composite-router-GXQ25DO4.js.map} +0 -0
- /package/dist/{consensus-vote-KZ6UURUI.js.map → consensus-vote-MTLP6E72.js.map} +0 -0
- /package/dist/{context-retriever-QY4FNTDZ.js.map → context-retriever-GQRC2MVM.js.map} +0 -0
- /package/dist/{doctor-deep-2E2GBMYR.js.map → doctor-deep-T3UUJX2E.js.map} +0 -0
- /package/dist/{expert-bridge-FHPWDFJX.js.map → expert-bridge-7LPGCPPR.js.map} +0 -0
- /package/dist/{factory-STNVY3Y3.js.map → factory-3XB5CAAA.js.map} +0 -0
- /package/dist/{factory-W6KROBFN.js.map → factory-OKNCTJO6.js.map} +0 -0
- /package/dist/{init-opencode-6LVZ4CAQ.js.map → init-opencode-KDTBKLXS.js.map} +0 -0
- /package/dist/{issue-triage-Y77JI7WF.js.map → issue-triage-MURMDN2G.js.map} +0 -0
- /package/dist/{registry-command-P5VIAEOL.js.map → registry-command-D56ROMFJ.js.map} +0 -0
- /package/dist/{repo-security-plan-RHSLO7H6.js.map → repo-security-plan-N3CDMW6L.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-PVP6JRZV.js.map → research-helpers-synthesize-36QBOKII.js.map} +0 -0
- /package/dist/{routing-memory-QRIJPRVD.js.map → routing-memory-6IEPJ3EP.js.map} +0 -0
- /package/dist/{session-memory-WARRGYY7.js.map → session-memory-X6SCDFER.js.map} +0 -0
- /package/dist/{setup-command-GMP5FI7F.js.map → setup-command-5AEO5A4Z.js.map} +0 -0
- /package/dist/{setup-config-G3KKZM7O.js.map → setup-config-RPSVIQJO.js.map} +0 -0
- /package/dist/{setup-custom-api-B63X7ISD.js.map → setup-custom-api-RBOJT3SS.js.map} +0 -0
- /package/dist/{tool-memory-E7JW4YLT.js.map → tool-memory-EEHITQRJ.js.map} +0 -0
- /package/dist/{weather-report-RACZWJQL.js.map → weather-report-6BC3JK5H.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-
|
|
4
|
+
} from "./chunk-MATFDJRW.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-
|
|
522
|
+
} from "./chunk-J4ZBKE4B.js";
|
|
523
523
|
import {
|
|
524
524
|
getTokenEnvVars,
|
|
525
525
|
hasToken,
|
|
526
526
|
resolveToken
|
|
527
|
-
} from "./chunk-
|
|
527
|
+
} from "./chunk-XODXYOFN.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-
|
|
534
|
+
} from "./chunk-IM2B3FK2.js";
|
|
535
535
|
import {
|
|
536
536
|
CliCircuitBreakerIntegration,
|
|
537
537
|
createCliCircuitBreakerIntegration
|
|
538
|
-
} from "./chunk-
|
|
538
|
+
} from "./chunk-BICIQYET.js";
|
|
539
539
|
import {
|
|
540
540
|
executeExpert
|
|
541
|
-
} from "./chunk-
|
|
541
|
+
} from "./chunk-SZZS57X7.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-
|
|
635
|
+
} from "./chunk-ODKIRXN7.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-
|
|
659
|
+
} from "./chunk-JA6ON2RP.js";
|
|
662
660
|
import {
|
|
663
661
|
PROVIDER_ENV_KEYS
|
|
664
|
-
} from "./chunk-
|
|
665
|
-
import "./chunk-
|
|
662
|
+
} from "./chunk-6XRNFLPI.js";
|
|
663
|
+
import "./chunk-FHY7I736.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-
|
|
696
|
+
} from "./chunk-5QJPM5CB.js";
|
|
699
697
|
import {
|
|
700
698
|
GitHubProvider,
|
|
701
699
|
ScmError
|
|
702
|
-
} from "./chunk-
|
|
700
|
+
} from "./chunk-ZLGU7T6J.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-
|
|
708
|
+
} from "./chunk-TKGVRHEI.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-
|
|
718
|
+
} from "./chunk-HGPIHDC4.js";
|
|
721
719
|
import {
|
|
722
720
|
MemoryError
|
|
723
|
-
} from "./chunk-
|
|
721
|
+
} from "./chunk-7V367KT4.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-
|
|
740
|
+
} from "./chunk-4XSCU4B3.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-
|
|
749
|
+
} from "./chunk-W6MLS2UL.js";
|
|
752
750
|
import {
|
|
753
751
|
AvailableModelsCache,
|
|
754
752
|
getDefaultAvailableModelsCache,
|
|
755
753
|
setDefaultAvailableModelsCache
|
|
756
|
-
} from "./chunk-
|
|
754
|
+
} from "./chunk-VXIHHHLQ.js";
|
|
757
755
|
import {
|
|
758
756
|
DEFAULTS
|
|
759
|
-
} from "./chunk-
|
|
757
|
+
} from "./chunk-DWOSFYI2.js";
|
|
760
758
|
import "./chunk-NUBSJGQZ.js";
|
|
761
|
-
import "./chunk-
|
|
759
|
+
import "./chunk-6T3EPABN.js";
|
|
762
760
|
import {
|
|
763
761
|
BaseCliAdapter,
|
|
764
762
|
CLI_TIMEOUT_PROFILES,
|
|
@@ -787,8 +785,8 @@ import {
|
|
|
787
785
|
isCliAvailable,
|
|
788
786
|
isRetryableError,
|
|
789
787
|
sleep
|
|
790
|
-
} from "./chunk-
|
|
791
|
-
import "./chunk-
|
|
788
|
+
} from "./chunk-ELRNVADA.js";
|
|
789
|
+
import "./chunk-LM2S2QWO.js";
|
|
792
790
|
import {
|
|
793
791
|
BUILT_IN_EXPERTS,
|
|
794
792
|
BuiltInExpertTypeSchema,
|
|
@@ -799,7 +797,7 @@ import {
|
|
|
799
797
|
validateExpertConfig
|
|
800
798
|
} from "./chunk-ZM4O442V.js";
|
|
801
799
|
import "./chunk-PQHVC4BD.js";
|
|
802
|
-
import "./chunk-
|
|
800
|
+
import "./chunk-UFUR6RBP.js";
|
|
803
801
|
import {
|
|
804
802
|
AgentCapability,
|
|
805
803
|
AgentError,
|
|
@@ -874,7 +872,7 @@ import {
|
|
|
874
872
|
toError,
|
|
875
873
|
unwrap,
|
|
876
874
|
unwrapOr
|
|
877
|
-
} from "./chunk-
|
|
875
|
+
} from "./chunk-6UI4NKT4.js";
|
|
878
876
|
import "./chunk-I2HMWH4R.js";
|
|
879
877
|
import "./chunk-PR4QN5HX.js";
|
|
880
878
|
|
|
@@ -5631,8 +5629,8 @@ var PIPELINE_EVENT_TYPES = [
|
|
|
5631
5629
|
"artifact.created",
|
|
5632
5630
|
"model.called",
|
|
5633
5631
|
"routing.decision",
|
|
5634
|
-
|
|
5635
|
-
|
|
5632
|
+
// 'learning.threshold_updated' + 'learning.trend_detected' removed in
|
|
5633
|
+
// #3022 — the emit helpers and event-bus subscribers both never landed.
|
|
5636
5634
|
"tool.invoked",
|
|
5637
5635
|
"tool.completed",
|
|
5638
5636
|
"wave.started",
|
|
@@ -5939,7 +5937,7 @@ function buildVotingInput(plan, config) {
|
|
|
5939
5937
|
}
|
|
5940
5938
|
async function executeSingleVote(plan, config, log) {
|
|
5941
5939
|
try {
|
|
5942
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
5940
|
+
const { executeVoting } = await import("./consensus-vote-MTLP6E72.js");
|
|
5943
5941
|
const input = buildVotingInput(plan, config);
|
|
5944
5942
|
const result = await executeVoting(input, log);
|
|
5945
5943
|
return parseVotingResult(result);
|
|
@@ -5964,36 +5962,6 @@ function parseVotingResult(result) {
|
|
|
5964
5962
|
return { kind: "rejected", feedback, approvalPercentage: pct };
|
|
5965
5963
|
}
|
|
5966
5964
|
|
|
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
5965
|
// src/pipeline/shared-memory.ts
|
|
5998
5966
|
var SharedMemoryStore = class {
|
|
5999
5967
|
entries = [];
|
|
@@ -6053,66 +6021,8 @@ function formatContent(content) {
|
|
|
6053
6021
|
return String(content);
|
|
6054
6022
|
}
|
|
6055
6023
|
|
|
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
6024
|
// src/replay/replay-executor.ts
|
|
6115
|
-
var
|
|
6025
|
+
var logger12 = createLogger({ component: "ReplayExecutor" });
|
|
6116
6026
|
export {
|
|
6117
6027
|
ALLOWED_COMMANDS,
|
|
6118
6028
|
ARTIFACT_TYPES,
|
|
@@ -6272,7 +6182,6 @@ export {
|
|
|
6272
6182
|
DependencyGraph,
|
|
6273
6183
|
DirectedInteractionGraph,
|
|
6274
6184
|
DocumentationExpert,
|
|
6275
|
-
DynamicExpertManager,
|
|
6276
6185
|
END,
|
|
6277
6186
|
EXPERT_CAPABILITIES,
|
|
6278
6187
|
EXPERT_DEFAULT_CAPABILITIES,
|
|
@@ -6356,7 +6265,6 @@ export {
|
|
|
6356
6265
|
LoggingConfigSchema,
|
|
6357
6266
|
MANIPULATION_CATEGORY,
|
|
6358
6267
|
MAX_DIFF_LENGTH,
|
|
6359
|
-
MAX_DYNAMIC_EXPERTS,
|
|
6360
6268
|
MAX_EXECUTION_TIME_MS,
|
|
6361
6269
|
MEM0_TARGETS,
|
|
6362
6270
|
MIN_EXPERTS_FOR_PATTERN,
|
|
@@ -6629,7 +6537,6 @@ export {
|
|
|
6629
6537
|
calculateWinLoss,
|
|
6630
6538
|
canExecuteSkill,
|
|
6631
6539
|
canInfluenceDecisions,
|
|
6632
|
-
canPipelineProceed,
|
|
6633
6540
|
canProceed,
|
|
6634
6541
|
cancelExecution,
|
|
6635
6542
|
categorizeOutcomeError,
|
|
@@ -6708,7 +6615,6 @@ export {
|
|
|
6708
6615
|
createGitHubProvider,
|
|
6709
6616
|
createGraphAuditBridge,
|
|
6710
6617
|
createHigherOrderVotingStrategy,
|
|
6711
|
-
createIncompleteResult,
|
|
6712
6618
|
createInitialCostMetrics,
|
|
6713
6619
|
createInitialSessionMetrics,
|
|
6714
6620
|
createInitialTokenUsage,
|
|
@@ -6794,8 +6700,6 @@ export {
|
|
|
6794
6700
|
emitStageStarted,
|
|
6795
6701
|
emitStateUpdated,
|
|
6796
6702
|
emitStepCompleted,
|
|
6797
|
-
emitThresholdUpdate,
|
|
6798
|
-
emitTrendDetected,
|
|
6799
6703
|
emitTrustEvent,
|
|
6800
6704
|
err,
|
|
6801
6705
|
estimateTokens2 as estimateBenchmarkTokens,
|
|
@@ -6820,7 +6724,6 @@ export {
|
|
|
6820
6724
|
extractStringArrayField,
|
|
6821
6725
|
extractStringField,
|
|
6822
6726
|
filterAvailableModels,
|
|
6823
|
-
filterBySeverity,
|
|
6824
6727
|
filterStream,
|
|
6825
6728
|
findActiveSession,
|
|
6826
6729
|
findMissingDependencies,
|
|
@@ -6892,7 +6795,6 @@ export {
|
|
|
6892
6795
|
isCliAvailable,
|
|
6893
6796
|
isRetryableError as isCliRetryableError,
|
|
6894
6797
|
isErr,
|
|
6895
|
-
isIncompleteResult,
|
|
6896
6798
|
isMutatingAction,
|
|
6897
6799
|
isOk,
|
|
6898
6800
|
isReadOnlyAction,
|