agent-valley 4.9.5 → 4.9.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.
@@ -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.9.5",
4
+ "version": "4.9.7",
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
@@ -59854,7 +59854,7 @@ var actorTaskInputSchema = strictObject({
59854
59854
  actorId: id3.optional(),
59855
59855
  personaId: id3.optional(),
59856
59856
  instructions: text7,
59857
- acceptance: array(text7).min(1).max(20),
59857
+ acceptance: array(text7).min(1).max(40),
59858
59858
  dependencies: array(id3).max(11),
59859
59859
  effectScope: _enum(["workspace", "external"]).optional()
59860
59860
  });
@@ -83492,6 +83492,16 @@ function runOrderWorker(args, root, signal, options = {}) {
83492
83492
  }
83493
83493
 
83494
83494
  // src/chief-worker-deadline.ts
83495
+ var MAX_DURATION_SEC = 604800;
83496
+ function requestedDurationSec(args) {
83497
+ const index = args.indexOf("--duration");
83498
+ if (index === -1)
83499
+ return;
83500
+ const value = Number(args[index + 1]);
83501
+ if (!Number.isInteger(value) || value <= 0)
83502
+ return;
83503
+ return Math.min(value, MAX_DURATION_SEC);
83504
+ }
83495
83505
  function createDeadlineWorkerRunner(store, id, parentSignal) {
83496
83506
  let deadline;
83497
83507
  return async (worker, args, root) => {
@@ -83519,7 +83529,8 @@ function createDeadlineWorkerRunner(store, id, parentSignal) {
83519
83529
  if (mission?.status === "completed" && !pendingCodeDelivery(mission))
83520
83530
  return;
83521
83531
  if (mission?.executionPolicy && mission.execution) {
83522
- deadline = Date.parse(mission.execution.startedAt) + mission.executionPolicy.maxDurationSec * 1000;
83532
+ const durationSec = Math.max(mission.executionPolicy.maxDurationSec, requestedDurationSec(args) ?? 0);
83533
+ deadline = Date.parse(mission.execution.startedAt) + durationSec * 1000;
83523
83534
  if (!Number.isFinite(deadline))
83524
83535
  throw new MissionPause("Restore the original saved Mission execution deadline before resuming.", "integrity");
83525
83536
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "4.9.5",
3
+ "version": "4.9.7",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",