agent-valley 4.11.0 → 4.12.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "av",
4
- "version": "4.11.0",
4
+ "version": "4.12.0",
5
5
  "description": "Delegate repository goals to Agent Valley and inspect mission progress and verification evidence.",
6
6
  "author": {
7
7
  "name": "Agent Valley"
package/dist/index.js CHANGED
@@ -7144,6 +7144,8 @@ function isUnavailableAgentModel(reason) {
7144
7144
  return /\bmodel not (?:found|available)\b|(?:^|:\s*)(?:the )?model (?:is )?unavailable(?:[.!:]|$)/i.test(normalized);
7145
7145
  }
7146
7146
  function classifyFailure(reason) {
7147
+ if (TRANSIENT_TRANSPORT.test(reason))
7148
+ return "provider";
7147
7149
  if (/unauthori[sz]ed|authentication|login required|log in|expired token|invalid.*(?:token|api.key)|\b401\b|\b403\b/i.test(reason))
7148
7150
  return "authentication";
7149
7151
  if (/rate.?limit|too many requests|\b429\b/i.test(reason))
@@ -7313,7 +7315,7 @@ function resolveExternalEffect(mission, taskId, result) {
7313
7315
  message: `Operator reconciled external effect: ${result}.`
7314
7316
  });
7315
7317
  }
7316
- var MissionPause;
7318
+ var MissionPause, TRANSIENT_TRANSPORT;
7317
7319
  var init_execution = __esm(() => {
7318
7320
  init_contracts();
7319
7321
  MissionPause = class MissionPause extends Error {
@@ -7325,6 +7327,7 @@ var init_execution = __esm(() => {
7325
7327
  this.nextRunAt = nextRunAt;
7326
7328
  }
7327
7329
  };
7330
+ TRANSIENT_TRANSPORT = /\bRPC timeout for\b|\bworkspace routing discovery failed\b/i;
7328
7331
  });
7329
7332
 
7330
7333
  // ../../packages/core/src/chief/parallel-contract.ts
@@ -83068,7 +83071,13 @@ async function consultDirectors(mission, ports, hooks) {
83068
83071
 
83069
83072
  // src/chief-continuous-council.ts
83070
83073
  init_execution();
83074
+ var DECISION_ADVICE_ENV = "AV_DECISION_ADVICE";
83075
+ function decisionAdviceEnabled(source = process.env) {
83076
+ return source[DECISION_ADVICE_ENV]?.trim().toLowerCase() !== "off";
83077
+ }
83071
83078
  async function consultContinuousDirectors(mission, ports, run) {
83079
+ if (!decisionAdviceEnabled())
83080
+ return;
83072
83081
  const key = async (actor, stage) => JSON.stringify({
83073
83082
  actorId: actor.id,
83074
83083
  stage,
@@ -7136,6 +7136,8 @@ function isUnavailableAgentModel(reason) {
7136
7136
  return /\bmodel not (?:found|available)\b|(?:^|:\s*)(?:the )?model (?:is )?unavailable(?:[.!:]|$)/i.test(normalized);
7137
7137
  }
7138
7138
  function classifyFailure(reason) {
7139
+ if (TRANSIENT_TRANSPORT.test(reason))
7140
+ return "provider";
7139
7141
  if (/unauthori[sz]ed|authentication|login required|log in|expired token|invalid.*(?:token|api.key)|\b401\b|\b403\b/i.test(reason))
7140
7142
  return "authentication";
7141
7143
  if (/rate.?limit|too many requests|\b429\b/i.test(reason))
@@ -7305,7 +7307,7 @@ function resolveExternalEffect(mission, taskId, result) {
7305
7307
  message: `Operator reconciled external effect: ${result}.`
7306
7308
  });
7307
7309
  }
7308
- var MissionPause;
7310
+ var MissionPause, TRANSIENT_TRANSPORT;
7309
7311
  var init_execution = __esm(() => {
7310
7312
  init_contracts();
7311
7313
  MissionPause = class MissionPause extends Error {
@@ -7317,6 +7319,7 @@ var init_execution = __esm(() => {
7317
7319
  this.nextRunAt = nextRunAt;
7318
7320
  }
7319
7321
  };
7322
+ TRANSIENT_TRANSPORT = /\bRPC timeout for\b|\bworkspace routing discovery failed\b/i;
7320
7323
  });
7321
7324
 
7322
7325
  // ../../packages/core/src/chief/parallel-contract.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",