agent-valley 4.8.5 → 4.8.7

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.
@@ -7078,6 +7078,7 @@ var init_contracts = __esm(() => {
7078
7078
  "authentication",
7079
7079
  "rate-limit",
7080
7080
  "provider",
7081
+ "actor-cooldown",
7081
7082
  "environment",
7082
7083
  "implementation",
7083
7084
  "unknown-effect",
@@ -7459,7 +7460,7 @@ var init_review_gates = __esm(() => {
7459
7460
  });
7460
7461
 
7461
7462
  // ../../packages/core/src/chief/operations.ts
7462
- var actorType, text3, amount, routingCandidateSchema, chiefOperatingPolicySchema, operatingRunSchema, routeEvidenceSchema, reviewDecisionSchema, chiefOperationsSchema;
7463
+ var actorType, text3, amount, routingCandidateSchema, chiefOperatingPolicySchema, operatingRunSchema, providerHealthSchema, providerHealthEvidenceSchema, routeEvidenceSchema, reviewDecisionSchema, chiefOperationsSchema;
7463
7464
  var init_operations = __esm(() => {
7464
7465
  init_zod();
7465
7466
  init_skill_matrix_schema();
@@ -7518,6 +7519,7 @@ var init_operations = __esm(() => {
7518
7519
  costUsd: amount.nullable(),
7519
7520
  outcome: _enum(["pending", "passed", "rejected", "failed"]),
7520
7521
  executionState: _enum(["running", "settled", "unknown"]).optional(),
7522
+ nativeOutcome: _enum(["passed", "failed", "cancelled"]).optional(),
7521
7523
  executionRecovery: _enum(["local-process", "reconcile"]).optional(),
7522
7524
  routingExclusion: strictObject({
7523
7525
  reason: literal("coordinator-cancelled"),
@@ -7528,13 +7530,24 @@ var init_operations = __esm(() => {
7528
7530
  evidence: text3.optional(),
7529
7531
  fingerprint: text3.optional()
7530
7532
  });
7533
+ providerHealthSchema = strictObject({
7534
+ consecutiveFailures: number2().int().nonnegative(),
7535
+ lastOutcomeAt: exports_iso.datetime(),
7536
+ cooldownUntil: exports_iso.datetime().optional()
7537
+ });
7538
+ providerHealthEvidenceSchema = strictObject({
7539
+ actorType,
7540
+ model: text3.optional(),
7541
+ providerHealth: providerHealthSchema
7542
+ });
7531
7543
  routeEvidenceSchema = strictObject({
7532
7544
  actorType,
7533
7545
  model: text3.optional(),
7534
7546
  samples: number2().int().nonnegative(),
7535
7547
  successes: number2().int().nonnegative(),
7536
7548
  totalCostUsd: amount.nullable(),
7537
- successfulDeliverableCostUsd: amount.nullable()
7549
+ successfulDeliverableCostUsd: amount.nullable(),
7550
+ providerHealth: providerHealthSchema.optional()
7538
7551
  }).refine((entry) => entry.successes <= entry.samples, "Route successes cannot exceed actual samples.");
7539
7552
  reviewDecisionSchema = strictObject({
7540
7553
  taskId: text3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "4.8.5",
3
+ "version": "4.8.7",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",