agent-valley 4.9.6 → 4.9.8
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.
- package/dist/assets/plugin.json +1 -1
- package/dist/index.js +17 -6
- package/dist/supervisor.js +1 -1
- package/package.json +1 -1
package/dist/assets/plugin.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "4.9.8",
|
|
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
|
@@ -7457,7 +7457,7 @@ var init_mission_state_schema = __esm(() => {
|
|
|
7457
7457
|
taskId: id.optional(),
|
|
7458
7458
|
personaId: id.optional(),
|
|
7459
7459
|
instructions: text.optional(),
|
|
7460
|
-
previousTasks: array(taskStateSchema).max(
|
|
7460
|
+
previousTasks: array(taskStateSchema).max(48).optional(),
|
|
7461
7461
|
evidence: strictObject({ finalReview: reviewSchema.optional(), verification: verificationSchema.optional() }).optional()
|
|
7462
7462
|
}).superRefine((decision, ctx) => {
|
|
7463
7463
|
if (decision.action === "wait" !== (decision.retryAfterSec !== undefined))
|
|
@@ -59892,7 +59892,7 @@ var text8 = string2().trim().min(1).max(32000);
|
|
|
59892
59892
|
var supervisionResponseSchema = discriminatedUnion("action", [
|
|
59893
59893
|
strictObject({ action: literal("repair"), reason: text8, instructions: text8, taskId: id4.optional() }),
|
|
59894
59894
|
strictObject({ action: literal("reassign"), reason: text8, instructions: text8, taskId: id4, personaId: id4 }),
|
|
59895
|
-
strictObject({ action: literal("replan"), reason: text8, tasks: array(actorTaskSchema).min(1).max(
|
|
59895
|
+
strictObject({ action: literal("replan"), reason: text8, tasks: array(actorTaskSchema).min(1).max(48) }),
|
|
59896
59896
|
strictObject({ action: literal("stop"), reason: text8 }),
|
|
59897
59897
|
strictObject({ action: literal("wait"), reason: text8, retryAfterSec: number2().int().min(1).max(86400) })
|
|
59898
59898
|
]);
|
|
@@ -75722,7 +75722,7 @@ var skillDescriptorSchema = strictObject({
|
|
|
75722
75722
|
agents: array(string2().regex(/^[a-z0-9][a-z0-9-]{0,127}$/)).max(100).optional()
|
|
75723
75723
|
});
|
|
75724
75724
|
var planSchema = strictObject({
|
|
75725
|
-
tasks: array(actorTaskSchema).min(1).max(
|
|
75725
|
+
tasks: array(actorTaskSchema).min(1).max(48)
|
|
75726
75726
|
});
|
|
75727
75727
|
var missionSchema = strictObject({
|
|
75728
75728
|
id: id5,
|
|
@@ -75769,7 +75769,7 @@ var missionSchema = strictObject({
|
|
|
75769
75769
|
updatedAt: text9,
|
|
75770
75770
|
oma: boolean2().optional(),
|
|
75771
75771
|
plan: planSchema.optional(),
|
|
75772
|
-
tasks: array(taskStateSchema).max(
|
|
75772
|
+
tasks: array(taskStateSchema).max(48),
|
|
75773
75773
|
gateReviews: array(gateReviewSchema).max(96).optional(),
|
|
75774
75774
|
gateReviewRefreshes: number2().int().min(0).max(11).optional(),
|
|
75775
75775
|
finalReview: reviewSchema.optional(),
|
|
@@ -76256,7 +76256,7 @@ function planPrompt(mission) {
|
|
|
76256
76256
|
"Independent workspace tasks execute concurrently in isolated worktrees, then integrate in plan order before review. Declare dependencies when a task needs another task's delivered changes. Declare effectScope: external for actions that affect external systems (publishing, messages, purchases); these execute sequentially and uncertain effects require reconciliation before repetition. Other tasks use effectScope: workspace.",
|
|
76257
76257
|
taskDecompositionGuidance(mission, "plan"),
|
|
76258
76258
|
"Use recorded organization evidence and explicitly approved standards when relevant; historical outcomes are not approval of current files. Routing quality/cost evidence is measured only where reported, not a claim of universal model superiority. Explicit metric targets require actual recorded measurements and are additional completion gates; advisory ROI text is not measurement.",
|
|
76259
|
-
"Use 1-
|
|
76259
|
+
"Use 1-48 tasks with unique ids, concrete instructions, nonempty acceptance criteria, and acyclic dependencies.",
|
|
76260
76260
|
`Keep the complete JSON response within ${MAX_JSON_RESPONSE_LENGTH} characters; use concise Actors and tasks.`,
|
|
76261
76261
|
"Every Actor must produce or update a material file deliverable, including research reports. Plan intermediate checks.",
|
|
76262
76262
|
...requiresOmaActor(mission) ? [
|
|
@@ -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
|
-
|
|
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/dist/supervisor.js
CHANGED
|
@@ -7449,7 +7449,7 @@ var init_mission_state_schema = __esm(() => {
|
|
|
7449
7449
|
taskId: id.optional(),
|
|
7450
7450
|
personaId: id.optional(),
|
|
7451
7451
|
instructions: text.optional(),
|
|
7452
|
-
previousTasks: array(taskStateSchema).max(
|
|
7452
|
+
previousTasks: array(taskStateSchema).max(48).optional(),
|
|
7453
7453
|
evidence: strictObject({ finalReview: reviewSchema.optional(), verification: verificationSchema.optional() }).optional()
|
|
7454
7454
|
}).superRefine((decision, ctx) => {
|
|
7455
7455
|
if (decision.action === "wait" !== (decision.retryAfterSec !== undefined))
|