nexus-agents 2.56.0 → 2.57.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-SUNFPY2W.js → adaptive-memory-TSZEJUJC.js} +3 -3
- package/dist/{chunk-4FVISCDB.js → chunk-6QU4DJYW.js} +2 -2
- package/dist/{chunk-NYNBDP7M.js → chunk-7Y36JLES.js} +2 -2
- package/dist/{chunk-FWSTXEG2.js → chunk-AFSIP6JH.js} +99 -23
- package/dist/chunk-AFSIP6JH.js.map +1 -0
- package/dist/{chunk-BPMQRYGU.js → chunk-BOZ26RIB.js} +283 -79
- package/dist/chunk-BOZ26RIB.js.map +1 -0
- package/dist/{chunk-VKZKC4SM.js → chunk-EDGG3RQE.js} +2 -2
- package/dist/{chunk-2SPRLBOS.js → chunk-EZXOJZYE.js} +2 -2
- package/dist/{chunk-W5AJRK4U.js → chunk-GMOGKX4E.js} +2 -2
- package/dist/chunk-H43PABG4.js +402 -0
- package/dist/chunk-H43PABG4.js.map +1 -0
- package/dist/{chunk-IOU7F5PH.js → chunk-K7EA5OV4.js} +2 -2
- package/dist/{chunk-KRIFBGWZ.js → chunk-PTGBJFSD.js} +3 -3
- package/dist/{chunk-EKYT4NMD.js → chunk-QGZBCD2A.js} +24 -9
- package/dist/chunk-QGZBCD2A.js.map +1 -0
- package/dist/{chunk-KGMC6F5D.js → chunk-QNYNQ257.js} +67 -61
- package/dist/chunk-QNYNQ257.js.map +1 -0
- package/dist/{chunk-UOUJZIKH.js → chunk-R2Y57PM3.js} +38 -15
- package/dist/chunk-R2Y57PM3.js.map +1 -0
- package/dist/{chunk-RSUCXOQM.js → chunk-SXWZS2V4.js} +26 -53
- package/dist/chunk-SXWZS2V4.js.map +1 -0
- package/dist/{chunk-PCMWLXT4.js → chunk-TC46TRLR.js} +2 -2
- package/dist/{chunk-3IDJSFWT.js → chunk-TFEFN37P.js} +2 -2
- package/dist/{chunk-Q5TKQWOI.js → chunk-V5CGWMYL.js} +2 -2
- package/dist/{chunk-TCQNNY4J.js → chunk-XEMRMZUN.js} +4 -4
- package/dist/{chunk-C3FGEDD7.js → chunk-Y7CD6AZW.js} +22 -406
- package/dist/chunk-Y7CD6AZW.js.map +1 -0
- package/dist/{chunk-R66AWJJ7.js → chunk-YU4NABXM.js} +2 -2
- package/dist/{chunk-EJLWDYK7.js → chunk-ZL3IBCH6.js} +658 -321
- package/dist/chunk-ZL3IBCH6.js.map +1 -0
- package/dist/{chunk-VLVHPC72.js → chunk-ZUWOFHNC.js} +6 -6
- package/dist/{cli-circuit-breaker-7MCMHSDY.js → cli-circuit-breaker-SL73NWX2.js} +4 -4
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +425 -341
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-LXFOSMSE.js → composite-router-A7URDW4X.js} +2 -2
- package/dist/{consensus-vote-G6H532ME.js → consensus-vote-CQ2JP6DC.js} +9 -8
- package/dist/{doctor-deep-RKMOZSIS.js → doctor-deep-VN6KMUCG.js} +3 -3
- package/dist/{expert-bridge-KHHE42JP.js → expert-bridge-LT7PKUPS.js} +3 -3
- package/dist/{factory-KRNR7XHD.js → factory-FA7WDPZW.js} +5 -5
- package/dist/{factory-JVN47MFN.js → factory-FZ2KSVYC.js} +4 -4
- package/dist/index.d.ts +324 -16
- package/dist/index.js +58 -43
- package/dist/index.js.map +1 -1
- package/dist/{issue-triage-O3C7P66H.js → issue-triage-YYTE6KTC.js} +4 -4
- package/dist/{mcp-config-QRERKGR4.js → mcp-config-34XMRM64.js} +3 -3
- package/dist/{mobimem-FAOAXV3B.js → mobimem-QDBP37H7.js} +2 -2
- package/dist/model-registry.generated.json +17033 -0
- package/dist/registry-command-S46JJ2SX.js +580 -0
- package/dist/registry-command-S46JJ2SX.js.map +1 -0
- package/dist/{repo-security-plan-AZ5HMGFC.js → repo-security-plan-C3LLE3Z7.js} +3 -3
- package/dist/{research-helpers-synthesize-E6WQLQKP.js → research-helpers-synthesize-NVQIWLQL.js} +3 -3
- package/dist/{routing-memory-MXF45FXT.js → routing-memory-W3YWMLJM.js} +2 -2
- package/dist/{session-memory-HL5XDBIL.js → session-memory-DWF5Z2LC.js} +3 -3
- package/dist/{setup-command-AV4MODEL.js → setup-command-6EJONTOU.js} +8 -7
- package/dist/{setup-config-PWK6WHMG.js → setup-config-JA5IX53Q.js} +3 -3
- package/dist/{setup-custom-api-XAWKRDWV.js → setup-custom-api-CSB26HWD.js} +7 -5
- package/dist/setup-custom-api-CSB26HWD.js.map +1 -0
- package/dist/{weather-report-XZ5CENHE.js → weather-report-YQSLX4MS.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-BPMQRYGU.js.map +0 -1
- package/dist/chunk-C3FGEDD7.js.map +0 -1
- package/dist/chunk-EJLWDYK7.js.map +0 -1
- package/dist/chunk-EKYT4NMD.js.map +0 -1
- package/dist/chunk-FWSTXEG2.js.map +0 -1
- package/dist/chunk-KGMC6F5D.js.map +0 -1
- package/dist/chunk-RSUCXOQM.js.map +0 -1
- package/dist/chunk-UOUJZIKH.js.map +0 -1
- package/dist/setup-custom-api-XAWKRDWV.js.map +0 -1
- /package/dist/{adaptive-memory-SUNFPY2W.js.map → adaptive-memory-TSZEJUJC.js.map} +0 -0
- /package/dist/{chunk-4FVISCDB.js.map → chunk-6QU4DJYW.js.map} +0 -0
- /package/dist/{chunk-NYNBDP7M.js.map → chunk-7Y36JLES.js.map} +0 -0
- /package/dist/{chunk-VKZKC4SM.js.map → chunk-EDGG3RQE.js.map} +0 -0
- /package/dist/{chunk-2SPRLBOS.js.map → chunk-EZXOJZYE.js.map} +0 -0
- /package/dist/{chunk-W5AJRK4U.js.map → chunk-GMOGKX4E.js.map} +0 -0
- /package/dist/{chunk-IOU7F5PH.js.map → chunk-K7EA5OV4.js.map} +0 -0
- /package/dist/{chunk-KRIFBGWZ.js.map → chunk-PTGBJFSD.js.map} +0 -0
- /package/dist/{chunk-PCMWLXT4.js.map → chunk-TC46TRLR.js.map} +0 -0
- /package/dist/{chunk-3IDJSFWT.js.map → chunk-TFEFN37P.js.map} +0 -0
- /package/dist/{chunk-Q5TKQWOI.js.map → chunk-V5CGWMYL.js.map} +0 -0
- /package/dist/{chunk-TCQNNY4J.js.map → chunk-XEMRMZUN.js.map} +0 -0
- /package/dist/{chunk-R66AWJJ7.js.map → chunk-YU4NABXM.js.map} +0 -0
- /package/dist/{chunk-VLVHPC72.js.map → chunk-ZUWOFHNC.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-7MCMHSDY.js.map → cli-circuit-breaker-SL73NWX2.js.map} +0 -0
- /package/dist/{composite-router-LXFOSMSE.js.map → composite-router-A7URDW4X.js.map} +0 -0
- /package/dist/{consensus-vote-G6H532ME.js.map → consensus-vote-CQ2JP6DC.js.map} +0 -0
- /package/dist/{doctor-deep-RKMOZSIS.js.map → doctor-deep-VN6KMUCG.js.map} +0 -0
- /package/dist/{expert-bridge-KHHE42JP.js.map → expert-bridge-LT7PKUPS.js.map} +0 -0
- /package/dist/{factory-JVN47MFN.js.map → factory-FA7WDPZW.js.map} +0 -0
- /package/dist/{factory-KRNR7XHD.js.map → factory-FZ2KSVYC.js.map} +0 -0
- /package/dist/{issue-triage-O3C7P66H.js.map → issue-triage-YYTE6KTC.js.map} +0 -0
- /package/dist/{mcp-config-QRERKGR4.js.map → mcp-config-34XMRM64.js.map} +0 -0
- /package/dist/{mobimem-FAOAXV3B.js.map → mobimem-QDBP37H7.js.map} +0 -0
- /package/dist/{repo-security-plan-AZ5HMGFC.js.map → repo-security-plan-C3LLE3Z7.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-E6WQLQKP.js.map → research-helpers-synthesize-NVQIWLQL.js.map} +0 -0
- /package/dist/{routing-memory-MXF45FXT.js.map → routing-memory-W3YWMLJM.js.map} +0 -0
- /package/dist/{session-memory-HL5XDBIL.js.map → session-memory-DWF5Z2LC.js.map} +0 -0
- /package/dist/{setup-command-AV4MODEL.js.map → setup-command-6EJONTOU.js.map} +0 -0
- /package/dist/{setup-config-PWK6WHMG.js.map → setup-config-JA5IX53Q.js.map} +0 -0
- /package/dist/{weather-report-XZ5CENHE.js.map → weather-report-YQSLX4MS.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-XEMRMZUN.js";
|
|
5
5
|
import {
|
|
6
6
|
ALLOWED_COMMANDS,
|
|
7
7
|
ARTIFACT_TYPES,
|
|
@@ -152,7 +152,9 @@ import {
|
|
|
152
152
|
ListWorkflowsInputSchema,
|
|
153
153
|
LoadedSkillSetSchema,
|
|
154
154
|
LockedWriter,
|
|
155
|
+
MAX_DIFF_LENGTH,
|
|
155
156
|
MAX_EXECUTION_TIME_MS,
|
|
157
|
+
MAX_STRIPPED_ELEMENTS_PER_EVENT,
|
|
156
158
|
MIN_EXPERTS_FOR_PATTERN,
|
|
157
159
|
MODEL_CAPABILITIES,
|
|
158
160
|
MemoryQueryInputSchema,
|
|
@@ -173,6 +175,7 @@ import {
|
|
|
173
175
|
PIPELINE_TEMPLATES,
|
|
174
176
|
PLUGIN_TRUST_LEVELS,
|
|
175
177
|
PROMPT_DEFINITIONS,
|
|
178
|
+
PR_REVIEW_ROLES,
|
|
176
179
|
ParallelProtocol,
|
|
177
180
|
PatchApplicator,
|
|
178
181
|
PatchApplicatorError,
|
|
@@ -184,6 +187,7 @@ import {
|
|
|
184
187
|
PluginRegistry,
|
|
185
188
|
PolicyEngine,
|
|
186
189
|
PolicyGateSpecSchema,
|
|
190
|
+
PrReviewInputSchema,
|
|
187
191
|
PredictionWriteError,
|
|
188
192
|
PredictionWriter,
|
|
189
193
|
ProtocolFactory,
|
|
@@ -304,6 +308,7 @@ import {
|
|
|
304
308
|
WorkflowOrchestratorAdapter,
|
|
305
309
|
WorkflowStepSchema,
|
|
306
310
|
WorkflowStepSchema2,
|
|
311
|
+
aggregatePrDecisions,
|
|
307
312
|
aggregateResults,
|
|
308
313
|
analyzeFailures,
|
|
309
314
|
analyzeTask,
|
|
@@ -317,6 +322,7 @@ import {
|
|
|
317
322
|
buildEnrichedPrompt,
|
|
318
323
|
buildHarnessArgs,
|
|
319
324
|
buildHarnessCommand,
|
|
325
|
+
buildPrReviewProposal,
|
|
320
326
|
calculateDistributionStats,
|
|
321
327
|
calculateEstimatedRemaining,
|
|
322
328
|
calculateMetrics,
|
|
@@ -529,6 +535,7 @@ import {
|
|
|
529
535
|
mapResolutionStatus,
|
|
530
536
|
mapStateToPhase,
|
|
531
537
|
mapTestStatus,
|
|
538
|
+
mapVoteDecisionToPrDecision,
|
|
532
539
|
meanConfidenceInterval,
|
|
533
540
|
orchestrateInputToTaskContract,
|
|
534
541
|
overwrite,
|
|
@@ -562,6 +569,7 @@ import {
|
|
|
562
569
|
registerMemoryWriteTool,
|
|
563
570
|
registerModelsResource,
|
|
564
571
|
registerOrchestrateTool,
|
|
572
|
+
registerPrReviewTool,
|
|
565
573
|
registerPrompts,
|
|
566
574
|
registerQueryTraceTool,
|
|
567
575
|
registerRegistryImportTool,
|
|
@@ -638,12 +646,12 @@ import {
|
|
|
638
646
|
validateWorkflowDependencies,
|
|
639
647
|
withLogging,
|
|
640
648
|
writePredictions
|
|
641
|
-
} from "./chunk-
|
|
649
|
+
} from "./chunk-ZL3IBCH6.js";
|
|
642
650
|
import {
|
|
643
651
|
getTokenEnvVars,
|
|
644
652
|
hasToken,
|
|
645
653
|
resolveToken
|
|
646
|
-
} from "./chunk-
|
|
654
|
+
} from "./chunk-EZXOJZYE.js";
|
|
647
655
|
import "./chunk-X2M7OF27.js";
|
|
648
656
|
import {
|
|
649
657
|
AdapterModelError,
|
|
@@ -760,11 +768,11 @@ import {
|
|
|
760
768
|
validateApiKeyPresence,
|
|
761
769
|
validateToolInput,
|
|
762
770
|
withTimeout
|
|
763
|
-
} from "./chunk-
|
|
771
|
+
} from "./chunk-BOZ26RIB.js";
|
|
764
772
|
import {
|
|
765
773
|
PROVIDER_ENV_KEYS
|
|
766
|
-
} from "./chunk-
|
|
767
|
-
import "./chunk-
|
|
774
|
+
} from "./chunk-YU4NABXM.js";
|
|
775
|
+
import "./chunk-TC46TRLR.js";
|
|
768
776
|
import {
|
|
769
777
|
AgentActionSchema,
|
|
770
778
|
GitHubReviewer,
|
|
@@ -797,11 +805,11 @@ import {
|
|
|
797
805
|
sanitizeInput,
|
|
798
806
|
validateAgentAction,
|
|
799
807
|
validateCorroboration
|
|
800
|
-
} from "./chunk-
|
|
808
|
+
} from "./chunk-AFSIP6JH.js";
|
|
801
809
|
import {
|
|
802
810
|
GitHubProvider,
|
|
803
811
|
ScmError
|
|
804
|
-
} from "./chunk-
|
|
812
|
+
} from "./chunk-K7EA5OV4.js";
|
|
805
813
|
import {
|
|
806
814
|
FALLBACK_SCANNER_DATA,
|
|
807
815
|
buildPlanFromAnalysis,
|
|
@@ -809,7 +817,7 @@ import {
|
|
|
809
817
|
generateSecurityPlan,
|
|
810
818
|
getRegistryManifest,
|
|
811
819
|
resolveScannerData
|
|
812
|
-
} from "./chunk-
|
|
820
|
+
} from "./chunk-V5CGWMYL.js";
|
|
813
821
|
import {
|
|
814
822
|
analyzeGitHubRepo,
|
|
815
823
|
analyzeRepo,
|
|
@@ -823,7 +831,6 @@ import {
|
|
|
823
831
|
import {
|
|
824
832
|
AppConfigSchema,
|
|
825
833
|
AvailabilityCache,
|
|
826
|
-
DEFAULTS,
|
|
827
834
|
ExpertConfigSchema,
|
|
828
835
|
ExpertDefinitionSchema,
|
|
829
836
|
LoggingConfigSchema,
|
|
@@ -846,7 +853,10 @@ import {
|
|
|
846
853
|
resolveFallback,
|
|
847
854
|
startStdioServer,
|
|
848
855
|
validateNexusEnv
|
|
849
|
-
} from "./chunk-
|
|
856
|
+
} from "./chunk-Y7CD6AZW.js";
|
|
857
|
+
import {
|
|
858
|
+
DEFAULTS
|
|
859
|
+
} from "./chunk-H43PABG4.js";
|
|
850
860
|
import "./chunk-NUBSJGQZ.js";
|
|
851
861
|
import {
|
|
852
862
|
BUILT_IN_EXPERTS,
|
|
@@ -857,22 +867,22 @@ import {
|
|
|
857
867
|
safeValidateExpertConfig,
|
|
858
868
|
validateExpertConfig
|
|
859
869
|
} from "./chunk-GJVHRJO2.js";
|
|
860
|
-
import "./chunk-
|
|
870
|
+
import "./chunk-7Y36JLES.js";
|
|
861
871
|
import {
|
|
862
872
|
MemoryError
|
|
863
|
-
} from "./chunk-
|
|
873
|
+
} from "./chunk-TFEFN37P.js";
|
|
864
874
|
import "./chunk-633WH2ML.js";
|
|
865
875
|
import {
|
|
866
876
|
generateMcpConfig,
|
|
867
877
|
getDefaultAllowedTools
|
|
868
|
-
} from "./chunk-
|
|
878
|
+
} from "./chunk-EDGG3RQE.js";
|
|
869
879
|
import {
|
|
870
880
|
CliCircuitBreakerIntegration,
|
|
871
881
|
createCliCircuitBreakerIntegration
|
|
872
|
-
} from "./chunk-
|
|
882
|
+
} from "./chunk-PTGBJFSD.js";
|
|
873
883
|
import {
|
|
874
884
|
executeExpert
|
|
875
|
-
} from "./chunk-
|
|
885
|
+
} from "./chunk-ZUWOFHNC.js";
|
|
876
886
|
import {
|
|
877
887
|
BaseCliAdapter,
|
|
878
888
|
CLI_TIMEOUT_PROFILES,
|
|
@@ -901,8 +911,8 @@ import {
|
|
|
901
911
|
isCliAvailable,
|
|
902
912
|
isRetryableError,
|
|
903
913
|
sleep
|
|
904
|
-
} from "./chunk-
|
|
905
|
-
import "./chunk-
|
|
914
|
+
} from "./chunk-SXWZS2V4.js";
|
|
915
|
+
import "./chunk-GMOGKX4E.js";
|
|
906
916
|
import {
|
|
907
917
|
AgentCapability,
|
|
908
918
|
AgentError,
|
|
@@ -953,8 +963,10 @@ import {
|
|
|
953
963
|
detectTrend,
|
|
954
964
|
err,
|
|
955
965
|
extractNonErrorMessage,
|
|
966
|
+
findCanonicalModel,
|
|
956
967
|
formatZodError,
|
|
957
968
|
generateWeatherReport,
|
|
969
|
+
getCliModelName,
|
|
958
970
|
getErrorMessage,
|
|
959
971
|
getOutcomeStore,
|
|
960
972
|
getRandomProvider,
|
|
@@ -973,7 +985,7 @@ import {
|
|
|
973
985
|
toError,
|
|
974
986
|
unwrap,
|
|
975
987
|
unwrapOr
|
|
976
|
-
} from "./chunk-
|
|
988
|
+
} from "./chunk-R2Y57PM3.js";
|
|
977
989
|
import {
|
|
978
990
|
RULES_FILE,
|
|
979
991
|
ensureLearningDir
|
|
@@ -1594,20 +1606,14 @@ var OPENAI_MODELS = {
|
|
|
1594
1606
|
GPT_5_2: "gpt-5.2",
|
|
1595
1607
|
GPT_5_2_INSTANT: "gpt-5.2-chat-latest",
|
|
1596
1608
|
GPT_5_2_PRO: "gpt-5.2-pro",
|
|
1597
|
-
GPT_5_2_CODEX: "
|
|
1609
|
+
GPT_5_2_CODEX: getCliModelName("codex-5.2"),
|
|
1598
1610
|
GPT_4O: "gpt-4o-2024-11-20",
|
|
1599
1611
|
GPT_4O_MINI: "gpt-4o-mini-2024-07-18",
|
|
1600
1612
|
GPT_4_TURBO: "gpt-4-turbo-2024-04-09",
|
|
1601
1613
|
GPT_35_TURBO: "gpt-3.5-turbo-0125"
|
|
1602
1614
|
};
|
|
1603
1615
|
var OPENAI_MODEL_ALIASES = {
|
|
1604
|
-
// GPT-5.2 aliases
|
|
1605
|
-
"gpt-5.2": OPENAI_MODELS.GPT_5_2,
|
|
1606
1616
|
"gpt-5.2-instant": OPENAI_MODELS.GPT_5_2_INSTANT,
|
|
1607
|
-
"gpt-5.2-chat-latest": OPENAI_MODELS.GPT_5_2_INSTANT,
|
|
1608
|
-
"gpt-5.2-pro": OPENAI_MODELS.GPT_5_2_PRO,
|
|
1609
|
-
"gpt-5.2-codex": OPENAI_MODELS.GPT_5_2_CODEX,
|
|
1610
|
-
// GPT-4o aliases
|
|
1611
1617
|
"gpt-4o": OPENAI_MODELS.GPT_4O,
|
|
1612
1618
|
"gpt-4o-mini": OPENAI_MODELS.GPT_4O_MINI,
|
|
1613
1619
|
"gpt-4-turbo": OPENAI_MODELS.GPT_4_TURBO,
|
|
@@ -2315,24 +2321,17 @@ import { GoogleGenAI } from "@google/genai";
|
|
|
2315
2321
|
|
|
2316
2322
|
// src/adapters/gemini-types.ts
|
|
2317
2323
|
var GEMINI_MODELS = {
|
|
2318
|
-
PRO_2_5: "gemini-
|
|
2319
|
-
FLASH_2_5: "gemini-
|
|
2324
|
+
PRO_2_5: getCliModelName("gemini-pro"),
|
|
2325
|
+
FLASH_2_5: getCliModelName("gemini-flash"),
|
|
2326
|
+
// Legacy — not in canonical registry. Kept for backward compat.
|
|
2320
2327
|
FLASH_2_0: "gemini-2.0-flash",
|
|
2321
2328
|
PRO_1_5: "gemini-1.5-pro",
|
|
2322
2329
|
FLASH_1_5: "gemini-1.5-flash"
|
|
2323
2330
|
};
|
|
2324
2331
|
var GEMINI_MODEL_ALIASES = {
|
|
2325
|
-
// Gemini 2.5 aliases (current latest)
|
|
2326
|
-
"gemini-2.5-pro": GEMINI_MODELS.PRO_2_5,
|
|
2327
|
-
"gemini-2.5-flash": GEMINI_MODELS.FLASH_2_5,
|
|
2328
|
-
// Gemini 2.0 aliases
|
|
2329
2332
|
"gemini-2.0-flash": GEMINI_MODELS.FLASH_2_0,
|
|
2330
|
-
// Gemini 1.5 aliases
|
|
2331
2333
|
"gemini-1.5-pro": GEMINI_MODELS.PRO_1_5,
|
|
2332
|
-
"gemini-1.5-flash": GEMINI_MODELS.FLASH_1_5
|
|
2333
|
-
// Short aliases (point to latest versions — Gemini 2.5)
|
|
2334
|
-
"gemini-flash": GEMINI_MODELS.FLASH_2_5,
|
|
2335
|
-
"gemini-pro": GEMINI_MODELS.PRO_2_5
|
|
2334
|
+
"gemini-1.5-flash": GEMINI_MODELS.FLASH_1_5
|
|
2336
2335
|
};
|
|
2337
2336
|
var DEFAULT_MAX_TOKENS3 = 8192;
|
|
2338
2337
|
function mapStopReason3(finishReason) {
|
|
@@ -2400,6 +2399,8 @@ function mapToolToFunctionDeclaration(tool) {
|
|
|
2400
2399
|
};
|
|
2401
2400
|
}
|
|
2402
2401
|
function resolveModelId2(modelId) {
|
|
2402
|
+
const canonical = findCanonicalModel("gemini", modelId);
|
|
2403
|
+
if (canonical?.cliModelName !== void 0) return canonical.cliModelName;
|
|
2403
2404
|
return GEMINI_MODEL_ALIASES[modelId] ?? modelId;
|
|
2404
2405
|
}
|
|
2405
2406
|
function getModelCapabilities3(modelId) {
|
|
@@ -4861,7 +4862,7 @@ var HostileInputFirewall = class {
|
|
|
4861
4862
|
}
|
|
4862
4863
|
const result = sanitizeInput(
|
|
4863
4864
|
meta.content,
|
|
4864
|
-
meta.authorAssociation,
|
|
4865
|
+
mapAuthorAssociation(meta.authorAssociation),
|
|
4865
4866
|
meta.username,
|
|
4866
4867
|
{
|
|
4867
4868
|
allowlistedMaintainers: [...this.allowlisted],
|
|
@@ -4873,7 +4874,8 @@ var HostileInputFirewall = class {
|
|
|
4873
4874
|
source: meta.sourceType,
|
|
4874
4875
|
wasModified: result.wasModified,
|
|
4875
4876
|
strippedCount: result.strippedElements.length,
|
|
4876
|
-
injectionFlagCount: result.injectionFlags.length
|
|
4877
|
+
injectionFlagCount: result.injectionFlags.length,
|
|
4878
|
+
strippedElements: result.strippedElements.slice(0, MAX_STRIPPED_ELEMENTS_PER_EVENT).map((e) => ({ tag: e.tag, reason: e.reason }))
|
|
4877
4879
|
});
|
|
4878
4880
|
}
|
|
4879
4881
|
return result;
|
|
@@ -4941,7 +4943,7 @@ function createPassthroughSanitized(meta) {
|
|
|
4941
4943
|
content: meta.content,
|
|
4942
4944
|
originalLength: meta.content.length,
|
|
4943
4945
|
trustTier: "3",
|
|
4944
|
-
userRole: meta.authorAssociation,
|
|
4946
|
+
userRole: mapAuthorAssociation(meta.authorAssociation),
|
|
4945
4947
|
injectionFlags: [],
|
|
4946
4948
|
strippedElements: [],
|
|
4947
4949
|
wasModified: false,
|
|
@@ -4951,7 +4953,7 @@ function createPassthroughSanitized(meta) {
|
|
|
4951
4953
|
function createPassthroughClassification(meta) {
|
|
4952
4954
|
return {
|
|
4953
4955
|
trustTier: "3",
|
|
4954
|
-
userRole: meta.authorAssociation,
|
|
4956
|
+
userRole: mapAuthorAssociation(meta.authorAssociation),
|
|
4955
4957
|
isAllowlisted: false,
|
|
4956
4958
|
wasDowngraded: false,
|
|
4957
4959
|
reason: "Trust classification disabled \u2014 default Tier 3"
|
|
@@ -6375,7 +6377,13 @@ var ArtifactStore = class {
|
|
|
6375
6377
|
}
|
|
6376
6378
|
put(artifact) {
|
|
6377
6379
|
this.validateContentSize(artifact);
|
|
6378
|
-
this.
|
|
6380
|
+
const isReplace = this.artifacts.has(artifact.id);
|
|
6381
|
+
if (isReplace) {
|
|
6382
|
+
const idx = this.insertOrder.indexOf(artifact.id);
|
|
6383
|
+
if (idx !== -1) this.insertOrder.splice(idx, 1);
|
|
6384
|
+
} else {
|
|
6385
|
+
this.evictIfNeeded();
|
|
6386
|
+
}
|
|
6379
6387
|
this.artifacts.set(artifact.id, artifact);
|
|
6380
6388
|
this.insertOrder.push(artifact.id);
|
|
6381
6389
|
return { id: artifact.id, type: artifact.type };
|
|
@@ -6692,7 +6700,7 @@ function buildVotingInput(plan, config) {
|
|
|
6692
6700
|
}
|
|
6693
6701
|
async function executeSingleVote(plan, config, log) {
|
|
6694
6702
|
try {
|
|
6695
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
6703
|
+
const { executeVoting } = await import("./consensus-vote-CQ2JP6DC.js");
|
|
6696
6704
|
const input = buildVotingInput(plan, config);
|
|
6697
6705
|
const result = await executeVoting(input, log);
|
|
6698
6706
|
return parseVotingResult(result);
|
|
@@ -7058,6 +7066,7 @@ export {
|
|
|
7058
7066
|
LockedWriter,
|
|
7059
7067
|
LoggingConfigSchema,
|
|
7060
7068
|
MANIPULATION_CATEGORY,
|
|
7069
|
+
MAX_DIFF_LENGTH,
|
|
7061
7070
|
MAX_DYNAMIC_EXPERTS,
|
|
7062
7071
|
MAX_EXECUTION_TIME_MS,
|
|
7063
7072
|
MEM0_TARGETS,
|
|
@@ -7107,6 +7116,7 @@ export {
|
|
|
7107
7116
|
PLUGIN_TRUST_LEVELS,
|
|
7108
7117
|
PRIVACY_CATEGORY,
|
|
7109
7118
|
PROMPT_DEFINITIONS,
|
|
7119
|
+
PR_REVIEW_ROLES,
|
|
7110
7120
|
PairwiseVotingHistorySchema,
|
|
7111
7121
|
ParallelProtocol,
|
|
7112
7122
|
ParseError,
|
|
@@ -7126,6 +7136,7 @@ export {
|
|
|
7126
7136
|
PolicyError,
|
|
7127
7137
|
PolicyFirewall,
|
|
7128
7138
|
PolicyGateSpecSchema,
|
|
7139
|
+
PrReviewInputSchema,
|
|
7129
7140
|
PredictionWriteError,
|
|
7130
7141
|
PredictionWriter,
|
|
7131
7142
|
PreferenceRouter,
|
|
@@ -7317,6 +7328,7 @@ export {
|
|
|
7317
7328
|
WorkflowOrchestratorAdapter,
|
|
7318
7329
|
WorkflowStepSchema2 as WorkflowStepSchema,
|
|
7319
7330
|
actorFromContext,
|
|
7331
|
+
aggregatePrDecisions,
|
|
7320
7332
|
aggregateResults,
|
|
7321
7333
|
analysisToTaskContract,
|
|
7322
7334
|
analyzeTask2 as analyzeDelegateTask,
|
|
@@ -7337,6 +7349,7 @@ export {
|
|
|
7337
7349
|
buildHarnessCommand,
|
|
7338
7350
|
buildPendingResult,
|
|
7339
7351
|
buildPlanFromAnalysis,
|
|
7352
|
+
buildPrReviewProposal,
|
|
7340
7353
|
buildDependencyGraph as buildSkillDependencyGraph,
|
|
7341
7354
|
buildTimeoutResult,
|
|
7342
7355
|
calculateDelay,
|
|
@@ -7694,6 +7707,7 @@ export {
|
|
|
7694
7707
|
mapResolutionStatus,
|
|
7695
7708
|
mapStateToPhase,
|
|
7696
7709
|
mapTestStatus,
|
|
7710
|
+
mapVoteDecisionToPrDecision,
|
|
7697
7711
|
meanConfidenceInterval,
|
|
7698
7712
|
mergeStreams,
|
|
7699
7713
|
normalizeRepoId,
|
|
@@ -7734,6 +7748,7 @@ export {
|
|
|
7734
7748
|
registerMemoryWriteTool,
|
|
7735
7749
|
registerModelsResource,
|
|
7736
7750
|
registerOrchestrateTool,
|
|
7751
|
+
registerPrReviewTool,
|
|
7737
7752
|
registerPrompts,
|
|
7738
7753
|
registerQueryTraceTool,
|
|
7739
7754
|
registerRegistryImportTool,
|