nexus-agents 2.103.1 → 2.103.2

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 (24) hide show
  1. package/dist/{chunk-TZ2YMIQV.js → chunk-3I5UBNXA.js} +3 -3
  2. package/dist/{chunk-G2FTEZDY.js → chunk-AGQU7XWB.js} +34 -7
  3. package/dist/{chunk-G2FTEZDY.js.map → chunk-AGQU7XWB.js.map} +1 -1
  4. package/dist/{chunk-OMFKL3FZ.js → chunk-DOINBQCP.js} +4 -4
  5. package/dist/{chunk-ULKXWKNZ.js → chunk-NNJLOPGX.js} +3 -3
  6. package/dist/{chunk-CB66XOZQ.js → chunk-O74KAIGB.js} +13 -13
  7. package/dist/{chunk-RDNEALPS.js → chunk-Z35RTR2B.js} +2 -2
  8. package/dist/cli.js +7 -7
  9. package/dist/{consensus-vote-2ODNLCSS.js → consensus-vote-WBO7Y24Y.js} +4 -3
  10. package/dist/{expert-bridge-GNHXRQEZ.js → expert-bridge-TF6C6XPV.js} +2 -2
  11. package/dist/{factory-6PU24HFM.js → factory-3CNPIFWT.js} +3 -2
  12. package/dist/index.d.ts +12 -1
  13. package/dist/index.js +15 -15
  14. package/dist/{setup-command-KMGJM4V4.js → setup-command-ZQPW7LPQ.js} +5 -5
  15. package/package.json +1 -1
  16. /package/dist/{chunk-TZ2YMIQV.js.map → chunk-3I5UBNXA.js.map} +0 -0
  17. /package/dist/{chunk-OMFKL3FZ.js.map → chunk-DOINBQCP.js.map} +0 -0
  18. /package/dist/{chunk-ULKXWKNZ.js.map → chunk-NNJLOPGX.js.map} +0 -0
  19. /package/dist/{chunk-CB66XOZQ.js.map → chunk-O74KAIGB.js.map} +0 -0
  20. /package/dist/{chunk-RDNEALPS.js.map → chunk-Z35RTR2B.js.map} +0 -0
  21. /package/dist/{consensus-vote-2ODNLCSS.js.map → consensus-vote-WBO7Y24Y.js.map} +0 -0
  22. /package/dist/{expert-bridge-GNHXRQEZ.js.map → expert-bridge-TF6C6XPV.js.map} +0 -0
  23. /package/dist/{factory-6PU24HFM.js.map → factory-3CNPIFWT.js.map} +0 -0
  24. /package/dist/{setup-command-KMGJM4V4.js.map → setup-command-ZQPW7LPQ.js.map} +0 -0
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  createAllAdapters,
12
12
  probeCli
13
- } from "./chunk-G2FTEZDY.js";
13
+ } from "./chunk-AGQU7XWB.js";
14
14
  import {
15
15
  CliNameSchema,
16
16
  DEFAULT_CAPABILITIES,
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-CH7QIDHQ.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.103.1" : "dev";
43
+ var VERSION = true ? "2.103.2" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
2096
2096
  writeLine2("\u2500".repeat(40));
2097
2097
  let fixCount = 0;
2098
2098
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2099
- const { runSetup } = await import("./setup-command-KMGJM4V4.js");
2099
+ const { runSetup } = await import("./setup-command-ZQPW7LPQ.js");
2100
2100
  const setupResult = runSetup({
2101
2101
  skipMcp: true,
2102
2102
  skipRules: true,
@@ -2208,4 +2208,4 @@ export {
2208
2208
  startStdioServer,
2209
2209
  closeServer
2210
2210
  };
2211
- //# sourceMappingURL=chunk-OMFKL3FZ.js.map
2211
+ //# sourceMappingURL=chunk-DOINBQCP.js.map
@@ -8,10 +8,10 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-OMFKL3FZ.js";
11
+ } from "./chunk-DOINBQCP.js";
12
12
  import {
13
13
  probeAllClis
14
- } from "./chunk-G2FTEZDY.js";
14
+ } from "./chunk-AGQU7XWB.js";
15
15
  import {
16
16
  BUILT_IN_EXPERTS
17
17
  } from "./chunk-ZM4O442V.js";
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-ULKXWKNZ.js.map
1990
+ //# sourceMappingURL=chunk-NNJLOPGX.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7P3FALEV.js";
10
10
  import {
11
11
  executeExpert
12
- } from "./chunk-RDNEALPS.js";
12
+ } from "./chunk-Z35RTR2B.js";
13
13
  import {
14
14
  EventTopics,
15
15
  JobStatusSchema,
@@ -30,7 +30,7 @@ import {
30
30
  writeJobComplete,
31
31
  writeJobFailed,
32
32
  writeJobPending
33
- } from "./chunk-TZ2YMIQV.js";
33
+ } from "./chunk-3I5UBNXA.js";
34
34
  import {
35
35
  REGISTRY_PATH,
36
36
  getProjectRoot,
@@ -93,12 +93,7 @@ import {
93
93
  DEFAULT_TASK_TTL_MS,
94
94
  DEFAULT_TOOL_RATE_LIMITS,
95
95
  clampTaskTtl
96
- } from "./chunk-OMFKL3FZ.js";
97
- import {
98
- getAvailabilityCache,
99
- getCliForModelId,
100
- resolveFallback
101
- } from "./chunk-3GUCNISD.js";
96
+ } from "./chunk-DOINBQCP.js";
102
97
  import {
103
98
  DEFAULTS
104
99
  } from "./chunk-MMZ5IKQ3.js";
@@ -117,7 +112,12 @@ import {
117
112
  getAvailableClis,
118
113
  sleep,
119
114
  withTimeout
120
- } from "./chunk-G2FTEZDY.js";
115
+ } from "./chunk-AGQU7XWB.js";
116
+ import {
117
+ getAvailabilityCache,
118
+ getCliForModelId,
119
+ resolveFallback
120
+ } from "./chunk-3GUCNISD.js";
121
121
  import {
122
122
  generateHyphenId,
123
123
  generateUUID
@@ -42842,7 +42842,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
42842
42842
  ]);
42843
42843
  async function classifyWithLLM(task) {
42844
42844
  try {
42845
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-GNHXRQEZ.js");
42845
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-TF6C6XPV.js");
42846
42846
  const prompt = [
42847
42847
  "Classify this task into exactly one pipeline template.",
42848
42848
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43966,7 +43966,7 @@ ${contextBlock}`;
43966
43966
  const strategy = config.votingStrategy ?? "higher_order";
43967
43967
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43968
43968
  try {
43969
- const { executeVoting } = await import("./consensus-vote-2ODNLCSS.js");
43969
+ const { executeVoting } = await import("./consensus-vote-WBO7Y24Y.js");
43970
43970
  const votingResult = await executeVoting(
43971
43971
  {
43972
43972
  proposal: buildVoteProposal(plan, research),
@@ -46558,7 +46558,7 @@ async function probeSource(source, includeModelIds) {
46558
46558
  }
46559
46559
  }
46560
46560
  async function defaultSources(includeOpenRouter) {
46561
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-6PU24HFM.js");
46561
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-3CNPIFWT.js");
46562
46562
  const adapters = createAllAdapters2();
46563
46563
  return buildDefaultModelSources(adapters, { includeOpenRouter });
46564
46564
  }
@@ -50883,4 +50883,4 @@ export {
50883
50883
  detectBackend,
50884
50884
  createTaskTracker
50885
50885
  };
50886
- //# sourceMappingURL=chunk-CB66XOZQ.js.map
50886
+ //# sourceMappingURL=chunk-O74KAIGB.js.map
@@ -82,7 +82,7 @@ var routerInitPromise = null;
82
82
  async function getRouter() {
83
83
  if (cachedRouter !== null) return cachedRouter;
84
84
  routerInitPromise ??= (async () => {
85
- const { createAllAdapters } = await import("./factory-6PU24HFM.js");
85
+ const { createAllAdapters } = await import("./factory-3CNPIFWT.js");
86
86
  const { createCompositeRouter } = await import("./composite-router-CYGVTMW6.js");
87
87
  const adapters = createAllAdapters();
88
88
  if (adapters.size === 0) {
@@ -198,4 +198,4 @@ export {
198
198
  totalTokensFromUsage,
199
199
  executeExpert
200
200
  };
201
- //# sourceMappingURL=chunk-RDNEALPS.js.map
201
+ //# sourceMappingURL=chunk-Z35RTR2B.js.map
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  setupCommandAsync,
26
26
  verifyCommand
27
- } from "./chunk-ULKXWKNZ.js";
27
+ } from "./chunk-NNJLOPGX.js";
28
28
  import "./chunk-MHVGM6NQ.js";
29
29
  import {
30
30
  AuthHandler,
@@ -166,7 +166,7 @@ import {
166
166
  validateCommand,
167
167
  validateWorkflow,
168
168
  wrapInMarkdownFence
169
- } from "./chunk-CB66XOZQ.js";
169
+ } from "./chunk-O74KAIGB.js";
170
170
  import "./chunk-3ACDP4E6.js";
171
171
  import {
172
172
  resolveToken
@@ -179,7 +179,7 @@ import "./chunk-Y5D6P5JV.js";
179
179
  import "./chunk-3UOFGQ2K.js";
180
180
  import {
181
181
  shutdownExpertBridge
182
- } from "./chunk-RDNEALPS.js";
182
+ } from "./chunk-Z35RTR2B.js";
183
183
  import {
184
184
  DEFAULT_VOTE_TIMEOUT_MS,
185
185
  ErrorPolicySchema,
@@ -189,7 +189,7 @@ import {
189
189
  executeVoting,
190
190
  registerConsensusVoteTool,
191
191
  warnIfSimulatedOutsideTests
192
- } from "./chunk-TZ2YMIQV.js";
192
+ } from "./chunk-3I5UBNXA.js";
193
193
  import "./chunk-U3GOPZIA.js";
194
194
  import "./chunk-FXPDPPYR.js";
195
195
  import {
@@ -251,8 +251,7 @@ import {
251
251
  loadConfig,
252
252
  runDoctor,
253
253
  validateNexusEnv
254
- } from "./chunk-OMFKL3FZ.js";
255
- import "./chunk-3GUCNISD.js";
254
+ } from "./chunk-DOINBQCP.js";
256
255
  import {
257
256
  DEFAULTS
258
257
  } from "./chunk-MMZ5IKQ3.js";
@@ -267,8 +266,9 @@ import {
267
266
  getAvailableClis,
268
267
  isRecord,
269
268
  probeAllClis
270
- } from "./chunk-G2FTEZDY.js";
269
+ } from "./chunk-AGQU7XWB.js";
271
270
  import "./chunk-4PWBF3NC.js";
271
+ import "./chunk-3GUCNISD.js";
272
272
  import "./chunk-KSMYBMM6.js";
273
273
  import "./chunk-ZM4O442V.js";
274
274
  import "./chunk-PQHVC4BD.js";
@@ -6,15 +6,16 @@ import {
6
6
  executeVoting,
7
7
  registerConsensusVoteTool,
8
8
  resetCorrelationTracker
9
- } from "./chunk-TZ2YMIQV.js";
9
+ } from "./chunk-3I5UBNXA.js";
10
10
  import "./chunk-U3GOPZIA.js";
11
11
  import "./chunk-FXPDPPYR.js";
12
12
  import "./chunk-RWSRBLSA.js";
13
13
  import "./chunk-DAOUGMA5.js";
14
14
  import "./chunk-MMZ5IKQ3.js";
15
15
  import "./chunk-6T3EPABN.js";
16
- import "./chunk-G2FTEZDY.js";
16
+ import "./chunk-AGQU7XWB.js";
17
17
  import "./chunk-4PWBF3NC.js";
18
+ import "./chunk-3GUCNISD.js";
18
19
  import "./chunk-KSMYBMM6.js";
19
20
  import "./chunk-PQHVC4BD.js";
20
21
  import "./chunk-QQNM4YAL.js";
@@ -30,4 +31,4 @@ export {
30
31
  registerConsensusVoteTool,
31
32
  resetCorrelationTracker
32
33
  };
33
- //# sourceMappingURL=consensus-vote-2ODNLCSS.js.map
34
+ //# sourceMappingURL=consensus-vote-WBO7Y24Y.js.map
@@ -2,7 +2,7 @@ import {
2
2
  executeExpert,
3
3
  shutdownExpertBridge,
4
4
  totalTokensFromUsage
5
- } from "./chunk-RDNEALPS.js";
5
+ } from "./chunk-Z35RTR2B.js";
6
6
  import "./chunk-3GUCNISD.js";
7
7
  import "./chunk-GA2ZZERU.js";
8
8
  import "./chunk-CH7QIDHQ.js";
@@ -12,4 +12,4 @@ export {
12
12
  shutdownExpertBridge,
13
13
  totalTokensFromUsage
14
14
  };
15
- //# sourceMappingURL=expert-bridge-GNHXRQEZ.js.map
15
+ //# sourceMappingURL=expert-bridge-TF6C6XPV.js.map
@@ -3,8 +3,9 @@ import {
3
3
  createCliAdapter,
4
4
  getAvailableClis,
5
5
  isCliAvailable
6
- } from "./chunk-G2FTEZDY.js";
6
+ } from "./chunk-AGQU7XWB.js";
7
7
  import "./chunk-4PWBF3NC.js";
8
+ import "./chunk-3GUCNISD.js";
8
9
  import "./chunk-KSMYBMM6.js";
9
10
  import "./chunk-GA2ZZERU.js";
10
11
  import "./chunk-CH7QIDHQ.js";
@@ -15,4 +16,4 @@ export {
15
16
  getAvailableClis,
16
17
  isCliAvailable
17
18
  };
18
- //# sourceMappingURL=factory-6PU24HFM.js.map
19
+ //# sourceMappingURL=factory-3CNPIFWT.js.map
package/dist/index.d.ts CHANGED
@@ -26247,8 +26247,19 @@ declare class OpenCodeCliAdapter extends SubprocessCliAdapter {
26247
26247
  initialize(): Promise<void>;
26248
26248
  /** Returns true if the model is available in the OpenCode installation. */
26249
26249
  private isModelAvailable;
26250
- /** Appends --model if the resolved model is available (#1402, #3407). */
26250
+ /** #3408: true if the model is in rate-limit cooldown (recent 429). Opt-in. */
26251
+ private isCooled;
26252
+ /** Usable = offered by the OpenCode install AND not in rate-limit cooldown. */
26253
+ private isModelUsable;
26254
+ /** Appends --model if the resolved model is usable (#1402, #3407, #3408). */
26251
26255
  private appendModelArg;
26256
+ /**
26257
+ * #3408: mark a model in rate-limit cooldown when a call returns RATE_LIMITED,
26258
+ * so subsequent selections skip it until the AvailabilityCache TTL recovers.
26259
+ * Wraps the base executeTask; opt-in + fail-open (no-op when discovery is off).
26260
+ * Advisory: a cooled model is still usable via an explicit, available --model.
26261
+ */
26262
+ executeTask(task: CliTask, options: ResolvedExecutionOptions): Promise<Result<CliResponse, CliError>>;
26252
26263
  /** Appends optional task flags (workDir, variant, thinking). */
26253
26264
  private appendTaskFlags;
26254
26265
  /**
package/dist/index.js CHANGED
@@ -517,7 +517,7 @@ import {
517
517
  validateWorkflow,
518
518
  validateWorkflowDependencies,
519
519
  withLogging
520
- } from "./chunk-CB66XOZQ.js";
520
+ } from "./chunk-O74KAIGB.js";
521
521
  import "./chunk-3ACDP4E6.js";
522
522
  import {
523
523
  getTokenEnvVars,
@@ -537,7 +537,7 @@ import {
537
537
  } from "./chunk-3UOFGQ2K.js";
538
538
  import {
539
539
  executeExpert
540
- } from "./chunk-RDNEALPS.js";
540
+ } from "./chunk-Z35RTR2B.js";
541
541
  import {
542
542
  AgentFindingSchema,
543
543
  AgentPerformanceSchema,
@@ -613,7 +613,7 @@ import {
613
613
  resetGlobalRegistry,
614
614
  withModelNotFoundFallback,
615
615
  wrapResilientWithFallback
616
- } from "./chunk-TZ2YMIQV.js";
616
+ } from "./chunk-3I5UBNXA.js";
617
617
  import {
618
618
  AdapterModelError,
619
619
  BaseAdapter,
@@ -759,16 +759,7 @@ import {
759
759
  getKnownNexusVarNames,
760
760
  startStdioServer,
761
761
  validateNexusEnv
762
- } from "./chunk-OMFKL3FZ.js";
763
- import {
764
- AvailabilityCache,
765
- filterAvailableModels,
766
- getAvailabilityCache,
767
- getCliForModelId,
768
- getFallbackChain,
769
- resetAvailabilityCache,
770
- resolveFallback
771
- } from "./chunk-3GUCNISD.js";
762
+ } from "./chunk-DOINBQCP.js";
772
763
  import {
773
764
  DEFAULTS
774
765
  } from "./chunk-MMZ5IKQ3.js";
@@ -802,8 +793,17 @@ import {
802
793
  isCliAvailable,
803
794
  isRetryableError,
804
795
  sleep
805
- } from "./chunk-G2FTEZDY.js";
796
+ } from "./chunk-AGQU7XWB.js";
806
797
  import "./chunk-4PWBF3NC.js";
798
+ import {
799
+ AvailabilityCache,
800
+ filterAvailableModels,
801
+ getAvailabilityCache,
802
+ getCliForModelId,
803
+ getFallbackChain,
804
+ resetAvailabilityCache,
805
+ resolveFallback
806
+ } from "./chunk-3GUCNISD.js";
807
807
  import "./chunk-KSMYBMM6.js";
808
808
  import {
809
809
  BUILT_IN_EXPERTS,
@@ -6085,7 +6085,7 @@ function buildVotingInput(plan, config) {
6085
6085
  }
6086
6086
  async function executeSingleVote(plan, config, log) {
6087
6087
  try {
6088
- const { executeVoting } = await import("./consensus-vote-2ODNLCSS.js");
6088
+ const { executeVoting } = await import("./consensus-vote-WBO7Y24Y.js");
6089
6089
  const input = buildVotingInput(plan, config);
6090
6090
  const result = await executeVoting(input, log);
6091
6091
  return parseVotingResult(result);
@@ -8,15 +8,15 @@ import {
8
8
  runWizard,
9
9
  setupCommand,
10
10
  setupCommandAsync
11
- } from "./chunk-ULKXWKNZ.js";
11
+ } from "./chunk-NNJLOPGX.js";
12
12
  import "./chunk-MHVGM6NQ.js";
13
- import "./chunk-OMFKL3FZ.js";
14
- import "./chunk-3GUCNISD.js";
13
+ import "./chunk-DOINBQCP.js";
15
14
  import "./chunk-MMZ5IKQ3.js";
16
15
  import "./chunk-NUBSJGQZ.js";
17
16
  import "./chunk-6T3EPABN.js";
18
- import "./chunk-G2FTEZDY.js";
17
+ import "./chunk-AGQU7XWB.js";
19
18
  import "./chunk-4PWBF3NC.js";
19
+ import "./chunk-3GUCNISD.js";
20
20
  import "./chunk-KSMYBMM6.js";
21
21
  import "./chunk-ZM4O442V.js";
22
22
  import "./chunk-GA2ZZERU.js";
@@ -33,4 +33,4 @@ export {
33
33
  setupCommand,
34
34
  setupCommandAsync
35
35
  };
36
- //# sourceMappingURL=setup-command-KMGJM4V4.js.map
36
+ //# sourceMappingURL=setup-command-ZQPW7LPQ.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "2.103.1",
3
+ "version": "2.103.2",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, immutable audit, and closed-loop outcome routing for Claude, Codex, Gemini, and OpenCode",
5
5
  "mcpName": "io.github.nexus-substrate/nexus-agents",
6
6
  "license": "MIT",