nexus-agents 2.72.1 → 2.74.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.
- package/dist/{adaptive-memory-UPE76IP6.js → adaptive-memory-OJY3IVNM.js} +3 -3
- package/dist/{child-mcp-config-5HRJGLCR.js → child-mcp-config-KMCKKPNY.js} +2 -2
- package/dist/{chunk-TF3GROMO.js → chunk-2SVS5WRV.js} +2 -2
- package/dist/{chunk-QECRZ3YA.js → chunk-3ESCBV47.js} +2 -2
- package/dist/{chunk-QL4HCYRD.js → chunk-3SZBDLFX.js} +3 -3
- package/dist/{chunk-VTVKC4FS.js → chunk-44MVIL3F.js} +4 -4
- package/dist/{chunk-BVETPIOQ.js → chunk-4K6L7RKC.js} +3 -3
- package/dist/chunk-4K6L7RKC.js.map +1 -0
- package/dist/{chunk-C3JGKBL2.js → chunk-65R32U3M.js} +4 -4
- package/dist/{chunk-3FIDMWFC.js → chunk-BK54O5J5.js} +2 -2
- package/dist/chunk-BK54O5J5.js.map +1 -0
- package/dist/{chunk-J4VR2WNI.js → chunk-BYKS53GW.js} +1086 -1709
- package/dist/chunk-BYKS53GW.js.map +1 -0
- package/dist/{chunk-L6N2S3UB.js → chunk-CCODJRS6.js} +2 -2
- package/dist/{chunk-DA5UDQYW.js → chunk-DGELGUZF.js} +2 -2
- package/dist/{chunk-2KB63QGE.js → chunk-EQHYXT56.js} +2 -2
- package/dist/{chunk-VPC3YNFR.js → chunk-G5VE2DZS.js} +2 -2
- package/dist/{chunk-2MD5MWCK.js → chunk-GS3GW7C7.js} +2 -2
- package/dist/{chunk-ES6GFP35.js → chunk-NC2LECY6.js} +26 -9
- package/dist/chunk-NC2LECY6.js.map +1 -0
- package/dist/{chunk-5MHIWRKB.js → chunk-NQR7QAZX.js} +21 -2
- package/dist/chunk-NQR7QAZX.js.map +1 -0
- package/dist/{chunk-5WQ3SRSE.js → chunk-PAFH336F.js} +2 -2
- package/dist/{chunk-O4KUCF5S.js → chunk-Q3RFPJYK.js} +1325 -441
- package/dist/chunk-Q3RFPJYK.js.map +1 -0
- package/dist/{chunk-P5OFZWDW.js → chunk-Q6JDV36D.js} +13 -6
- package/dist/chunk-Q6JDV36D.js.map +1 -0
- package/dist/{chunk-A35XORXU.js → chunk-Q7FTNKPO.js} +2 -2
- package/dist/chunk-QON7LR7J.js +153 -0
- package/dist/chunk-QON7LR7J.js.map +1 -0
- package/dist/{chunk-53K3KEKT.js → chunk-T5VPZZYX.js} +1564 -848
- package/dist/chunk-T5VPZZYX.js.map +1 -0
- package/dist/{chunk-TQFRPFMG.js → chunk-TBRNRW2Q.js} +2 -2
- package/dist/{chunk-345KMHWH.js → chunk-UWJKMBPL.js} +6 -6
- package/dist/{chunk-V7ATY4BG.js → chunk-VJD5LANR.js} +14 -16
- package/dist/chunk-VJD5LANR.js.map +1 -0
- package/dist/{chunk-YOREAPF6.js → chunk-WCCTIRSB.js} +11 -10
- package/dist/chunk-WCCTIRSB.js.map +1 -0
- package/dist/{cli-circuit-breaker-GFF2RLBZ.js → cli-circuit-breaker-STXIH563.js} +4 -4
- package/dist/cli.d.ts +5 -2
- package/dist/cli.js +138 -106
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-33F3F74I.js → composite-router-7AHZN3VI.js} +2 -2
- package/dist/{consensus-vote-5V4KVHBE.js → consensus-vote-XY55C7WQ.js} +11 -10
- package/dist/consensus-vote-types-CoGbAEjf.d.ts +195 -0
- package/dist/{doctor-deep-AHDTNURD.js → doctor-deep-ONHJTGR4.js} +3 -3
- package/dist/{expert-bridge-DMDHHDEU.js → expert-bridge-3AWQHR65.js} +3 -3
- package/dist/{factory-FVD7PZ6S.js → factory-E5NMAMZC.js} +5 -5
- package/dist/{factory-VQS3HJ7V.js → factory-HWHQ44BB.js} +4 -4
- package/dist/index.d.ts +4089 -3693
- package/dist/index.js +85 -73
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-EIOIPVWL.js → init-opencode-Z7OQ5RCB.js} +5 -5
- package/dist/{issue-triage-HJUJWGAD.js → issue-triage-UWBHMQHC.js} +4 -4
- package/dist/{mobimem-BOJFXQ7B.js → mobimem-G4UXJTCV.js} +2 -2
- package/dist/{registry-command-NCWUJKAF.js → registry-command-HYWVRAHE.js} +5 -6
- package/dist/registry-command-HYWVRAHE.js.map +1 -0
- package/dist/{repo-security-plan-3J45VAD6.js → repo-security-plan-W35CXK3T.js} +3 -3
- package/dist/{research-helpers-synthesize-UGQHZZJN.js → research-helpers-synthesize-GUQORWL4.js} +3 -3
- package/dist/{routing-memory-NO7QEH7T.js → routing-memory-VOJBOX3X.js} +2 -2
- package/dist/{session-memory-DOXLEWEU.js → session-memory-B6LQMF4N.js} +3 -3
- package/dist/{setup-command-BWUFMZ7U.js → setup-command-CTC5YNA4.js} +9 -8
- package/dist/{setup-config-E3JZYSLR.js → setup-config-53MHJA7S.js} +3 -3
- package/dist/{setup-custom-api-DHJ5DRH2.js → setup-custom-api-VD5W754A.js} +4 -4
- package/dist/{weather-report-FNN4OX3N.js → weather-report-APASTJDQ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3FIDMWFC.js.map +0 -1
- package/dist/chunk-53K3KEKT.js.map +0 -1
- package/dist/chunk-5MHIWRKB.js.map +0 -1
- package/dist/chunk-BVETPIOQ.js.map +0 -1
- package/dist/chunk-ES6GFP35.js.map +0 -1
- package/dist/chunk-J4VR2WNI.js.map +0 -1
- package/dist/chunk-O4KUCF5S.js.map +0 -1
- package/dist/chunk-P5OFZWDW.js.map +0 -1
- package/dist/chunk-V7ATY4BG.js.map +0 -1
- package/dist/chunk-YOREAPF6.js.map +0 -1
- package/dist/model-capabilities-types-B57GZryc.d.ts +0 -18
- package/dist/registry-command-NCWUJKAF.js.map +0 -1
- /package/dist/{adaptive-memory-UPE76IP6.js.map → adaptive-memory-OJY3IVNM.js.map} +0 -0
- /package/dist/{child-mcp-config-5HRJGLCR.js.map → child-mcp-config-KMCKKPNY.js.map} +0 -0
- /package/dist/{chunk-TF3GROMO.js.map → chunk-2SVS5WRV.js.map} +0 -0
- /package/dist/{chunk-QECRZ3YA.js.map → chunk-3ESCBV47.js.map} +0 -0
- /package/dist/{chunk-QL4HCYRD.js.map → chunk-3SZBDLFX.js.map} +0 -0
- /package/dist/{chunk-VTVKC4FS.js.map → chunk-44MVIL3F.js.map} +0 -0
- /package/dist/{chunk-C3JGKBL2.js.map → chunk-65R32U3M.js.map} +0 -0
- /package/dist/{chunk-L6N2S3UB.js.map → chunk-CCODJRS6.js.map} +0 -0
- /package/dist/{chunk-DA5UDQYW.js.map → chunk-DGELGUZF.js.map} +0 -0
- /package/dist/{chunk-2KB63QGE.js.map → chunk-EQHYXT56.js.map} +0 -0
- /package/dist/{chunk-VPC3YNFR.js.map → chunk-G5VE2DZS.js.map} +0 -0
- /package/dist/{chunk-2MD5MWCK.js.map → chunk-GS3GW7C7.js.map} +0 -0
- /package/dist/{chunk-5WQ3SRSE.js.map → chunk-PAFH336F.js.map} +0 -0
- /package/dist/{chunk-A35XORXU.js.map → chunk-Q7FTNKPO.js.map} +0 -0
- /package/dist/{chunk-TQFRPFMG.js.map → chunk-TBRNRW2Q.js.map} +0 -0
- /package/dist/{chunk-345KMHWH.js.map → chunk-UWJKMBPL.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-GFF2RLBZ.js.map → cli-circuit-breaker-STXIH563.js.map} +0 -0
- /package/dist/{composite-router-33F3F74I.js.map → composite-router-7AHZN3VI.js.map} +0 -0
- /package/dist/{consensus-vote-5V4KVHBE.js.map → consensus-vote-XY55C7WQ.js.map} +0 -0
- /package/dist/{doctor-deep-AHDTNURD.js.map → doctor-deep-ONHJTGR4.js.map} +0 -0
- /package/dist/{expert-bridge-DMDHHDEU.js.map → expert-bridge-3AWQHR65.js.map} +0 -0
- /package/dist/{factory-FVD7PZ6S.js.map → factory-E5NMAMZC.js.map} +0 -0
- /package/dist/{factory-VQS3HJ7V.js.map → factory-HWHQ44BB.js.map} +0 -0
- /package/dist/{init-opencode-EIOIPVWL.js.map → init-opencode-Z7OQ5RCB.js.map} +0 -0
- /package/dist/{issue-triage-HJUJWGAD.js.map → issue-triage-UWBHMQHC.js.map} +0 -0
- /package/dist/{mobimem-BOJFXQ7B.js.map → mobimem-G4UXJTCV.js.map} +0 -0
- /package/dist/{repo-security-plan-3J45VAD6.js.map → repo-security-plan-W35CXK3T.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-UGQHZZJN.js.map → research-helpers-synthesize-GUQORWL4.js.map} +0 -0
- /package/dist/{routing-memory-NO7QEH7T.js.map → routing-memory-VOJBOX3X.js.map} +0 -0
- /package/dist/{session-memory-DOXLEWEU.js.map → session-memory-B6LQMF4N.js.map} +0 -0
- /package/dist/{setup-command-BWUFMZ7U.js.map → setup-command-CTC5YNA4.js.map} +0 -0
- /package/dist/{setup-config-E3JZYSLR.js.map → setup-config-53MHJA7S.js.map} +0 -0
- /package/dist/{setup-custom-api-DHJ5DRH2.js.map → setup-custom-api-VD5W754A.js.map} +0 -0
- /package/dist/{weather-report-FNN4OX3N.js.map → weather-report-APASTJDQ.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-44MVIL3F.js";
|
|
5
5
|
import {
|
|
6
6
|
ALLOWED_COMMANDS,
|
|
7
7
|
ARTIFACT_TYPES,
|
|
@@ -518,7 +518,7 @@ import {
|
|
|
518
518
|
validateWorkflow,
|
|
519
519
|
validateWorkflowDependencies,
|
|
520
520
|
withLogging
|
|
521
|
-
} from "./chunk-
|
|
521
|
+
} from "./chunk-BYKS53GW.js";
|
|
522
522
|
import {
|
|
523
523
|
SharedMemoryStore
|
|
524
524
|
} from "./chunk-ED6VQWNG.js";
|
|
@@ -526,17 +526,17 @@ import {
|
|
|
526
526
|
getTokenEnvVars,
|
|
527
527
|
hasToken,
|
|
528
528
|
resolveToken
|
|
529
|
-
} from "./chunk-
|
|
529
|
+
} from "./chunk-2SVS5WRV.js";
|
|
530
530
|
import "./chunk-X2M7OF27.js";
|
|
531
531
|
import {
|
|
532
532
|
OPENAI_MODELS,
|
|
533
533
|
OPENAI_MODEL_ALIASES,
|
|
534
534
|
OpenAIAdapter,
|
|
535
535
|
createOpenAIAdapter
|
|
536
|
-
} from "./chunk-
|
|
536
|
+
} from "./chunk-4K6L7RKC.js";
|
|
537
537
|
import {
|
|
538
538
|
executeExpert
|
|
539
|
-
} from "./chunk-
|
|
539
|
+
} from "./chunk-UWJKMBPL.js";
|
|
540
540
|
import {
|
|
541
541
|
AgentFindingSchema,
|
|
542
542
|
AgentPerformanceSchema,
|
|
@@ -629,8 +629,10 @@ import {
|
|
|
629
629
|
toolError,
|
|
630
630
|
toolSuccess,
|
|
631
631
|
toolSuccessStructured,
|
|
632
|
-
validateToolInput
|
|
633
|
-
|
|
632
|
+
validateToolInput,
|
|
633
|
+
withModelNotFoundFallback,
|
|
634
|
+
wrapResilientWithFallback
|
|
635
|
+
} from "./chunk-T5VPZZYX.js";
|
|
634
636
|
import {
|
|
635
637
|
AdapterModelError,
|
|
636
638
|
BaseAdapter,
|
|
@@ -654,11 +656,11 @@ import {
|
|
|
654
656
|
transformStream,
|
|
655
657
|
validateApiKeyPresence,
|
|
656
658
|
withTimeout
|
|
657
|
-
} from "./chunk-
|
|
659
|
+
} from "./chunk-NQR7QAZX.js";
|
|
658
660
|
import {
|
|
659
661
|
PROVIDER_ENV_KEYS
|
|
660
|
-
} from "./chunk-
|
|
661
|
-
import "./chunk-
|
|
662
|
+
} from "./chunk-PAFH336F.js";
|
|
663
|
+
import "./chunk-Q7FTNKPO.js";
|
|
662
664
|
import {
|
|
663
665
|
AgentActionSchema,
|
|
664
666
|
GitHubReviewer,
|
|
@@ -691,11 +693,11 @@ import {
|
|
|
691
693
|
sanitizeInput,
|
|
692
694
|
validateAgentAction,
|
|
693
695
|
validateCorroboration
|
|
694
|
-
} from "./chunk-
|
|
696
|
+
} from "./chunk-VJD5LANR.js";
|
|
695
697
|
import {
|
|
696
698
|
GitHubProvider,
|
|
697
699
|
ScmError
|
|
698
|
-
} from "./chunk-
|
|
700
|
+
} from "./chunk-BK54O5J5.js";
|
|
699
701
|
import {
|
|
700
702
|
FALLBACK_SCANNER_DATA,
|
|
701
703
|
buildPlanFromAnalysis,
|
|
@@ -703,7 +705,7 @@ import {
|
|
|
703
705
|
generateSecurityPlan,
|
|
704
706
|
getRegistryManifest,
|
|
705
707
|
resolveScannerData
|
|
706
|
-
} from "./chunk-
|
|
708
|
+
} from "./chunk-CCODJRS6.js";
|
|
707
709
|
import {
|
|
708
710
|
analyzeGitHubRepo,
|
|
709
711
|
analyzeRepo,
|
|
@@ -736,10 +738,15 @@ import {
|
|
|
736
738
|
resolveFallback,
|
|
737
739
|
startStdioServer,
|
|
738
740
|
validateNexusEnv
|
|
739
|
-
} from "./chunk-
|
|
741
|
+
} from "./chunk-WCCTIRSB.js";
|
|
742
|
+
import {
|
|
743
|
+
AvailableModelsCache,
|
|
744
|
+
getDefaultAvailableModelsCache,
|
|
745
|
+
setDefaultAvailableModelsCache
|
|
746
|
+
} from "./chunk-QON7LR7J.js";
|
|
740
747
|
import {
|
|
741
748
|
DEFAULTS
|
|
742
|
-
} from "./chunk-
|
|
749
|
+
} from "./chunk-GS3GW7C7.js";
|
|
743
750
|
import "./chunk-NUBSJGQZ.js";
|
|
744
751
|
import {
|
|
745
752
|
BaseCliAdapter,
|
|
@@ -769,7 +776,7 @@ import {
|
|
|
769
776
|
isCliAvailable,
|
|
770
777
|
isRetryableError,
|
|
771
778
|
sleep
|
|
772
|
-
} from "./chunk-
|
|
779
|
+
} from "./chunk-NC2LECY6.js";
|
|
773
780
|
import {
|
|
774
781
|
BUILT_IN_EXPERTS,
|
|
775
782
|
BuiltInExpertTypeSchema,
|
|
@@ -779,16 +786,16 @@ import {
|
|
|
779
786
|
safeValidateExpertConfig,
|
|
780
787
|
validateExpertConfig
|
|
781
788
|
} from "./chunk-ZM4O442V.js";
|
|
782
|
-
import "./chunk-
|
|
789
|
+
import "./chunk-EQHYXT56.js";
|
|
783
790
|
import {
|
|
784
791
|
MemoryError
|
|
785
|
-
} from "./chunk-
|
|
792
|
+
} from "./chunk-3ESCBV47.js";
|
|
786
793
|
import "./chunk-633WH2ML.js";
|
|
787
794
|
import {
|
|
788
795
|
CliCircuitBreakerIntegration,
|
|
789
796
|
createCliCircuitBreakerIntegration
|
|
790
|
-
} from "./chunk-
|
|
791
|
-
import "./chunk-
|
|
797
|
+
} from "./chunk-3SZBDLFX.js";
|
|
798
|
+
import "./chunk-TBRNRW2Q.js";
|
|
792
799
|
import {
|
|
793
800
|
AgentCapability,
|
|
794
801
|
AgentError,
|
|
@@ -802,12 +809,14 @@ import {
|
|
|
802
809
|
DEFAULT_CLI,
|
|
803
810
|
DEFAULT_COMPOSITE_CONFIG,
|
|
804
811
|
DEFAULT_DISTILLER_CONFIG,
|
|
812
|
+
DEFAULT_ENTRY,
|
|
805
813
|
DEFAULT_PREFERENCE_ROUTER_CONFIG,
|
|
806
814
|
ErrorCode,
|
|
807
815
|
EventBus,
|
|
808
816
|
InMemoryPreferenceStore,
|
|
809
817
|
ModelCapability,
|
|
810
818
|
ModelError,
|
|
819
|
+
ModelRegistry,
|
|
811
820
|
NexusError,
|
|
812
821
|
OrchestratorError,
|
|
813
822
|
OutcomeFailureCategorySchema,
|
|
@@ -833,6 +842,7 @@ import {
|
|
|
833
842
|
createLogger,
|
|
834
843
|
createPreferenceRouter,
|
|
835
844
|
createStrategyDistiller,
|
|
845
|
+
deriveEntry,
|
|
836
846
|
detectFailurePatterns,
|
|
837
847
|
detectLatencyPatterns,
|
|
838
848
|
detectSuccessPatterns,
|
|
@@ -843,6 +853,7 @@ import {
|
|
|
843
853
|
formatZodError,
|
|
844
854
|
generateWeatherReport,
|
|
845
855
|
getCliModelName,
|
|
856
|
+
getDefaultRegistry,
|
|
846
857
|
getErrorMessage,
|
|
847
858
|
getOutcomeStore,
|
|
848
859
|
getRandomProvider,
|
|
@@ -857,11 +868,12 @@ import {
|
|
|
857
868
|
ok,
|
|
858
869
|
registerPersistentDistillerFactory,
|
|
859
870
|
sanitize,
|
|
871
|
+
setDefaultRegistry,
|
|
860
872
|
sigmoidConfidence,
|
|
861
873
|
toError,
|
|
862
874
|
unwrap,
|
|
863
875
|
unwrapOr
|
|
864
|
-
} from "./chunk-
|
|
876
|
+
} from "./chunk-Q3RFPJYK.js";
|
|
865
877
|
import {
|
|
866
878
|
ensureLearningDir,
|
|
867
879
|
getRulesFile
|
|
@@ -2029,7 +2041,47 @@ var GeminiAdapter = class extends BaseAdapter {
|
|
|
2029
2041
|
model: this.resolvedModelId
|
|
2030
2042
|
};
|
|
2031
2043
|
}
|
|
2044
|
+
/**
|
|
2045
|
+
* (#2540) List Gemini models exposed by the configured API key.
|
|
2046
|
+
* Wraps `client.models.list()` (returns a Pager). 5-min cache,
|
|
2047
|
+
* concurrent-caller promise sharing.
|
|
2048
|
+
*/
|
|
2049
|
+
async listModels() {
|
|
2050
|
+
const now = Date.now();
|
|
2051
|
+
if (this.modelsCache !== null && now - this.modelsCache.fetchedAt < GEMINI_LIST_MODELS_TTL_MS) {
|
|
2052
|
+
return this.modelsCache.value;
|
|
2053
|
+
}
|
|
2054
|
+
if (this.modelsInFlight !== null) return this.modelsInFlight;
|
|
2055
|
+
const inFlight = this.fetchModels();
|
|
2056
|
+
this.modelsInFlight = inFlight;
|
|
2057
|
+
try {
|
|
2058
|
+
const value = await inFlight;
|
|
2059
|
+
this.modelsCache = { value, fetchedAt: Date.now() };
|
|
2060
|
+
return value;
|
|
2061
|
+
} finally {
|
|
2062
|
+
this.modelsInFlight = null;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
modelsCache = null;
|
|
2066
|
+
modelsInFlight = null;
|
|
2067
|
+
async fetchModels() {
|
|
2068
|
+
const pager = await this.client.models.list();
|
|
2069
|
+
const out = [];
|
|
2070
|
+
for await (const m of pager) {
|
|
2071
|
+
const rawName = typeof m.name === "string" ? m.name : "";
|
|
2072
|
+
if (rawName === "") continue;
|
|
2073
|
+
const id = rawName.startsWith("models/") ? rawName.slice("models/".length) : rawName;
|
|
2074
|
+
const caps = [];
|
|
2075
|
+
if (Array.isArray(m.supportedActions)) {
|
|
2076
|
+
for (const a of m.supportedActions) if (typeof a === "string") caps.push(a);
|
|
2077
|
+
}
|
|
2078
|
+
const meta = { id, ownedBy: "google" };
|
|
2079
|
+
out.push(caps.length > 0 ? { ...meta, capabilities: caps } : meta);
|
|
2080
|
+
}
|
|
2081
|
+
return out;
|
|
2082
|
+
}
|
|
2032
2083
|
};
|
|
2084
|
+
var GEMINI_LIST_MODELS_TTL_MS = 5 * 60 * 1e3;
|
|
2033
2085
|
function createGeminiAdapter(config) {
|
|
2034
2086
|
return new GeminiAdapter(config);
|
|
2035
2087
|
}
|
|
@@ -5673,54 +5725,6 @@ async function runBenchmark(adapter, config, options = {}) {
|
|
|
5673
5725
|
};
|
|
5674
5726
|
}
|
|
5675
5727
|
|
|
5676
|
-
// src/pipeline/v1-adapters.ts
|
|
5677
|
-
import { randomUUID as randomUUID2 } from "crypto";
|
|
5678
|
-
function analysisToTaskContract(description, analysis) {
|
|
5679
|
-
const now = Date.now();
|
|
5680
|
-
return {
|
|
5681
|
-
id: `task-${randomUUID2().slice(0, 8)}`,
|
|
5682
|
-
description,
|
|
5683
|
-
status: "intake",
|
|
5684
|
-
analysis: {
|
|
5685
|
-
complexity: analysis.complexity,
|
|
5686
|
-
taskType: analysis.taskType,
|
|
5687
|
-
ambiguityScore: analysis.ambiguityScore
|
|
5688
|
-
},
|
|
5689
|
-
constraints: {
|
|
5690
|
-
time: analysis.constraints.time,
|
|
5691
|
-
quality: analysis.constraints.quality,
|
|
5692
|
-
scope: [...analysis.constraints.scope]
|
|
5693
|
-
},
|
|
5694
|
-
requiredCapabilities: {
|
|
5695
|
-
tools: [...analysis.requiredCapabilities.tools],
|
|
5696
|
-
experts: [...analysis.requiredCapabilities.experts]
|
|
5697
|
-
},
|
|
5698
|
-
capabilityGaps: {
|
|
5699
|
-
available: { tools: [], experts: [] },
|
|
5700
|
-
gaps: [],
|
|
5701
|
-
allSatisfied: true
|
|
5702
|
-
},
|
|
5703
|
-
artifacts: [],
|
|
5704
|
-
metadata: {},
|
|
5705
|
-
createdAt: now,
|
|
5706
|
-
updatedAt: now
|
|
5707
|
-
};
|
|
5708
|
-
}
|
|
5709
|
-
function taskContractToToolResponse(contract) {
|
|
5710
|
-
const durationMs = contract.completedAt !== void 0 ? contract.completedAt - contract.createdAt : Date.now() - contract.createdAt;
|
|
5711
|
-
const response = {
|
|
5712
|
-
taskId: contract.id,
|
|
5713
|
-
status: contract.status,
|
|
5714
|
-
description: contract.description,
|
|
5715
|
-
artifacts: contract.artifacts,
|
|
5716
|
-
durationMs
|
|
5717
|
-
};
|
|
5718
|
-
if (contract.error !== void 0) {
|
|
5719
|
-
return { ...response, error: contract.error };
|
|
5720
|
-
}
|
|
5721
|
-
return response;
|
|
5722
|
-
}
|
|
5723
|
-
|
|
5724
5728
|
// src/pipeline/event-types.ts
|
|
5725
5729
|
var PIPELINE_EVENT_TYPES = [
|
|
5726
5730
|
"task.created",
|
|
@@ -6086,7 +6090,7 @@ function buildVotingInput(plan, config) {
|
|
|
6086
6090
|
}
|
|
6087
6091
|
async function executeSingleVote(plan, config, log) {
|
|
6088
6092
|
try {
|
|
6089
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
6093
|
+
const { executeVoting } = await import("./consensus-vote-XY55C7WQ.js");
|
|
6090
6094
|
const input = buildVotingInput(plan, config);
|
|
6091
6095
|
const result = await executeVoting(input, log);
|
|
6092
6096
|
return parseVotingResult(result);
|
|
@@ -6236,6 +6240,7 @@ export {
|
|
|
6236
6240
|
AuditTrail,
|
|
6237
6241
|
AuthorizationMethodSchema,
|
|
6238
6242
|
AvailabilityCache,
|
|
6243
|
+
AvailableModelsCache,
|
|
6239
6244
|
BIAS_CATEGORY,
|
|
6240
6245
|
BUILT_IN_EXPERTS,
|
|
6241
6246
|
BUILT_IN_RULES,
|
|
@@ -6316,6 +6321,7 @@ export {
|
|
|
6316
6321
|
DEFAULT_DASHBOARD_CONFIG,
|
|
6317
6322
|
DEFAULT_DASHBOARD_RENDER_OPTIONS,
|
|
6318
6323
|
DEFAULT_DISTILLER_CONFIG,
|
|
6324
|
+
DEFAULT_ENTRY,
|
|
6319
6325
|
DEFAULT_EXECUTION_TIME_MS,
|
|
6320
6326
|
DEFAULT_FEEDBACK_COLLECTOR_CONFIG,
|
|
6321
6327
|
DEFAULT_FEEDBACK_INTEGRATION_CONFIG,
|
|
@@ -6452,6 +6458,7 @@ export {
|
|
|
6452
6458
|
ModelConfigSchema,
|
|
6453
6459
|
ModelError,
|
|
6454
6460
|
ModelPreferenceSchema,
|
|
6461
|
+
ModelRegistry,
|
|
6455
6462
|
ModelSelectionSchema,
|
|
6456
6463
|
ModelTiersSchema,
|
|
6457
6464
|
NOOP_NOTIFIER,
|
|
@@ -6683,7 +6690,6 @@ export {
|
|
|
6683
6690
|
actorFromContext,
|
|
6684
6691
|
aggregatePrDecisions,
|
|
6685
6692
|
aggregateResults,
|
|
6686
|
-
analysisToTaskContract,
|
|
6687
6693
|
analyzeTask as analyzeDelegateTask,
|
|
6688
6694
|
analyzeFailures,
|
|
6689
6695
|
analyzeGitHubRepo,
|
|
@@ -6856,6 +6862,7 @@ export {
|
|
|
6856
6862
|
defaultConfig,
|
|
6857
6863
|
delegateInputToTaskContract,
|
|
6858
6864
|
denyMutationsWithoutModeRule,
|
|
6865
|
+
deriveEntry,
|
|
6859
6866
|
detectFailurePatterns,
|
|
6860
6867
|
detectLatencyPatterns,
|
|
6861
6868
|
detectSuccessPatterns,
|
|
@@ -6930,6 +6937,8 @@ export {
|
|
|
6930
6937
|
getCliForModelId,
|
|
6931
6938
|
getCompletedSteps,
|
|
6932
6939
|
getCorroborationRules,
|
|
6940
|
+
getDefaultAvailableModelsCache,
|
|
6941
|
+
getDefaultRegistry,
|
|
6933
6942
|
getEventBusStats,
|
|
6934
6943
|
getExecutionDuration,
|
|
6935
6944
|
getExecutionOrder,
|
|
@@ -7083,6 +7092,8 @@ export {
|
|
|
7083
7092
|
scoreByRecency,
|
|
7084
7093
|
selectExperts,
|
|
7085
7094
|
selectModel,
|
|
7095
|
+
setDefaultAvailableModelsCache,
|
|
7096
|
+
setDefaultRegistry,
|
|
7086
7097
|
setSwarmObserver,
|
|
7087
7098
|
setVariable,
|
|
7088
7099
|
sigmoidConfidence,
|
|
@@ -7094,7 +7105,6 @@ export {
|
|
|
7094
7105
|
take,
|
|
7095
7106
|
takeUntil,
|
|
7096
7107
|
tapStream,
|
|
7097
|
-
taskContractToToolResponse,
|
|
7098
7108
|
toSuiteResult,
|
|
7099
7109
|
toolError,
|
|
7100
7110
|
toolSuccess,
|
|
@@ -7123,8 +7133,10 @@ export {
|
|
|
7123
7133
|
validateWorkflow,
|
|
7124
7134
|
validateWorkflowDependencies,
|
|
7125
7135
|
withLogging,
|
|
7136
|
+
withModelNotFoundFallback,
|
|
7126
7137
|
withRetry,
|
|
7127
7138
|
withRetryWrapper,
|
|
7128
|
-
withTimeout
|
|
7139
|
+
withTimeout,
|
|
7140
|
+
wrapResilientWithFallback
|
|
7129
7141
|
};
|
|
7130
7142
|
//# sourceMappingURL=index.js.map
|