nexus-agents 8.97.1 → 8.98.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 (30) hide show
  1. package/dist/{chunk-YLZPEK2H.js → chunk-3EIK7A4M.js} +2 -2
  2. package/dist/{chunk-NPXNHUIL.js → chunk-FJS4ASFA.js} +26 -9
  3. package/dist/chunk-FJS4ASFA.js.map +1 -0
  4. package/dist/{chunk-PE6RRU2B.js → chunk-JGL3IKNA.js} +2 -2
  5. package/dist/{chunk-SDIMXZZD.js → chunk-JORUH2K3.js} +4 -4
  6. package/dist/{chunk-IX42AGSA.js → chunk-L3YQNS32.js} +2 -2
  7. package/dist/{chunk-G6RDJRAV.js → chunk-PHN4KDGD.js} +210 -8
  8. package/dist/chunk-PHN4KDGD.js.map +1 -0
  9. package/dist/{chunk-WXE4XKDF.js → chunk-Y2ESO2BO.js} +71 -7
  10. package/dist/chunk-Y2ESO2BO.js.map +1 -0
  11. package/dist/cli.js +59 -19
  12. package/dist/cli.js.map +1 -1
  13. package/dist/{consensus-vote-NYXZBC5R.js → consensus-vote-PJ5LS36B.js} +5 -5
  14. package/dist/{improvement-review-KXTJMAY6.js → improvement-review-6F3E26ER.js} +4 -4
  15. package/dist/index.d.ts +11 -0
  16. package/dist/index.js +7 -7
  17. package/dist/{init-opencode-4QFPIFJM.js → init-opencode-BKEKVAAW.js} +2 -2
  18. package/dist/{setup-data-dir-K3SGRXGO.js → setup-data-dir-VWXVP5IJ.js} +4 -4
  19. package/package.json +2 -2
  20. package/dist/chunk-G6RDJRAV.js.map +0 -1
  21. package/dist/chunk-NPXNHUIL.js.map +0 -1
  22. package/dist/chunk-WXE4XKDF.js.map +0 -1
  23. /package/dist/{chunk-YLZPEK2H.js.map → chunk-3EIK7A4M.js.map} +0 -0
  24. /package/dist/{chunk-PE6RRU2B.js.map → chunk-JGL3IKNA.js.map} +0 -0
  25. /package/dist/{chunk-SDIMXZZD.js.map → chunk-JORUH2K3.js.map} +0 -0
  26. /package/dist/{chunk-IX42AGSA.js.map → chunk-L3YQNS32.js.map} +0 -0
  27. /package/dist/{consensus-vote-NYXZBC5R.js.map → consensus-vote-PJ5LS36B.js.map} +0 -0
  28. /package/dist/{improvement-review-KXTJMAY6.js.map → improvement-review-6F3E26ER.js.map} +0 -0
  29. /package/dist/{init-opencode-4QFPIFJM.js.map → init-opencode-BKEKVAAW.js.map} +0 -0
  30. /package/dist/{setup-data-dir-K3SGRXGO.js.map → setup-data-dir-VWXVP5IJ.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-PE6RRU2B.js";
10
+ } from "./chunk-JGL3IKNA.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2284,4 +2284,4 @@ export {
2284
2284
  runImprovementReview,
2285
2285
  registerImprovementReviewTool
2286
2286
  };
2287
- //# sourceMappingURL=chunk-YLZPEK2H.js.map
2287
+ //# sourceMappingURL=chunk-3EIK7A4M.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-SDIMXZZD.js";
24
+ } from "./chunk-JORUH2K3.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-EAB77S7U.js";
@@ -46,6 +46,7 @@ import {
46
46
  defaultReplayEnvelope,
47
47
  deprecatedModeWarning,
48
48
  dispatchFieldDefaultSync,
49
+ ensureGatewayDiscovered,
49
50
  heartbeatJob,
50
51
  initTaskState,
51
52
  isAbandonedJob,
@@ -73,7 +74,10 @@ import {
73
74
  withFileLock,
74
75
  withWarnings,
75
76
  writeJobCancelled
76
- } from "./chunk-WXE4XKDF.js";
77
+ } from "./chunk-Y2ESO2BO.js";
78
+ import {
79
+ parseGatewayExtraHeaders
80
+ } from "./chunk-PHN4KDGD.js";
77
81
  import {
78
82
  allOf,
79
83
  anyOf
@@ -96,7 +100,7 @@ import {
96
100
  } from "./chunk-V66T427F.js";
97
101
  import {
98
102
  withPrerequisite
99
- } from "./chunk-YLZPEK2H.js";
103
+ } from "./chunk-3EIK7A4M.js";
100
104
  import {
101
105
  NOOP_NOTIFIER,
102
106
  RateLimiter,
@@ -124,10 +128,10 @@ import {
124
128
  toolSuccessStructured,
125
129
  withProgressHeartbeat,
126
130
  wrapToolWithTimeout
127
- } from "./chunk-PE6RRU2B.js";
131
+ } from "./chunk-JGL3IKNA.js";
128
132
  import {
129
133
  VERSION
130
- } from "./chunk-IX42AGSA.js";
134
+ } from "./chunk-L3YQNS32.js";
131
135
  import {
132
136
  EventTopics,
133
137
  UNRESOLVED_MODEL_ID,
@@ -1058,6 +1062,17 @@ var NexusEnvSchema = z10.object({
1058
1062
  if (!parsed.ok) ctx.addIssue({ code: "custom", message: parsed.error.message });
1059
1063
  }).optional(),
1060
1064
  NEXUS_MODEL_REGISTRY_OVERLAY: z10.string().optional(),
1065
+ // #6608: the header carrying the gateway key instead of `Authorization:
1066
+ // Bearer` (OPENAI_COMPAT_AUTH_HEADER_ENV), e.g. `api-key`. The runtime
1067
+ // reader warns on an illegal header name and keeps the bearer default.
1068
+ NEXUS_OPENAI_COMPAT_AUTH_HEADER: z10.string().optional(),
1069
+ // #6608: extra static gateway headers, `Name=value,Name2=value2`
1070
+ // (OPENAI_COMPAT_EXTRA_HEADERS_ENV). Validated by the runtime parser; a
1071
+ // value can be a credential, so an invalid one is logged redacted.
1072
+ NEXUS_OPENAI_COMPAT_EXTRA_HEADERS: z10.string().superRefine((v, ctx) => {
1073
+ const parsed = parseGatewayExtraHeaders(v);
1074
+ if (!parsed.ok) ctx.addIssue({ code: "custom", message: parsed.reason });
1075
+ }).optional(),
1061
1076
  // #4392 increment 2 step 2: the `<endpoint>` of the `api:<endpoint>` arm the
1062
1077
  // voter gateway registers as (OPENAI_COMPAT_ENDPOINT_ENV; spelled out for
1063
1078
  // the coverage script). Same shape rule as a scoped NEXUS_GATEWAY_COST key,
@@ -1144,7 +1159,8 @@ var NexusEnvSchema = z10.object({
1144
1159
  var KNOWN_NAMES = Object.keys(NexusEnvSchema.shape);
1145
1160
  var REDACTED_VALUE_VARS = /* @__PURE__ */ new Set([
1146
1161
  "NEXUS_GATEWAY_COST",
1147
- "NEXUS_OPENAI_COMPAT_ENDPOINT"
1162
+ "NEXUS_OPENAI_COMPAT_ENDPOINT",
1163
+ "NEXUS_OPENAI_COMPAT_EXTRA_HEADERS"
1148
1164
  ]);
1149
1165
  var REDACTED_VALUE = "<redacted>";
1150
1166
  var DYNAMIC_FAMILIES = [
@@ -46772,7 +46788,7 @@ function buildVotingInput(plan, config) {
46772
46788
  }
46773
46789
  async function executeSingleVote(plan, config, log) {
46774
46790
  try {
46775
- const { executeVoting } = await import("./consensus-vote-NYXZBC5R.js");
46791
+ const { executeVoting } = await import("./consensus-vote-PJ5LS36B.js");
46776
46792
  const input = buildVotingInput(plan, config);
46777
46793
  const result = await executeVoting(input, log);
46778
46794
  return parseVotingResult(result);
@@ -47738,7 +47754,7 @@ function createVoteStage({ config, startStage }) {
47738
47754
  const strategy = config.votingStrategy ?? "higher_order";
47739
47755
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47740
47756
  try {
47741
- const { executeVoting } = await import("./consensus-vote-NYXZBC5R.js");
47757
+ const { executeVoting } = await import("./consensus-vote-PJ5LS36B.js");
47742
47758
  const votingResult = await executeVoting(
47743
47759
  {
47744
47760
  proposal: buildVoteProposal(plan, research),
@@ -49847,6 +49863,7 @@ function resolvePanelReadBudget(seats, bindingCapBytes, registry = getDefaultReg
49847
49863
  };
49848
49864
  }
49849
49865
  async function resolvePanelSeats(roles, gatewayAdapters, logger60) {
49866
+ await ensureGatewayDiscovered();
49850
49867
  const fallback = resolveAdapter({ gatewayAdapters });
49851
49868
  if ("error" in fallback) return { ok: false, reason: `no adapter: ${fallback.error}` };
49852
49869
  try {
@@ -56971,4 +56988,4 @@ export {
56971
56988
  startPipelineEventBridge,
56972
56989
  shutdownPipelineEventBridge
56973
56990
  };
56974
- //# sourceMappingURL=chunk-NPXNHUIL.js.map
56991
+ //# sourceMappingURL=chunk-FJS4ASFA.js.map