agent-valley 4.9.1 → 4.9.3
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 +13 -13
- 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.3",
|
|
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(24).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(24) }),
|
|
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(24)
|
|
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(24),
|
|
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-24 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) ? [
|
|
@@ -139975,7 +139975,7 @@ init_zod();
|
|
|
139975
139975
|
import { createHash as createHash30 } from "node:crypto";
|
|
139976
139976
|
import { constants as constants18 } from "node:fs";
|
|
139977
139977
|
import { lstat as lstat30, open as open19, readdir as readdir18, realpath as realpath38, rename as rename5, rm as rm10 } from "node:fs/promises";
|
|
139978
|
-
import { dirname as dirname14, join as join66, resolve as resolve39 } from "node:path";
|
|
139978
|
+
import { dirname as dirname14, join as join66, resolve as resolve39, sep as sep20 } from "node:path";
|
|
139979
139979
|
var digest7 = (content) => createHash30("sha256").update(content).digest("hex");
|
|
139980
139980
|
var sha2 = string2().regex(/^[a-f0-9]{40,64}$/);
|
|
139981
139981
|
var preparedSchema = strictObject({
|
|
@@ -139988,8 +139988,8 @@ var preparedSchema = strictObject({
|
|
|
139988
139988
|
tree: sha2,
|
|
139989
139989
|
recoveryCommit: sha2,
|
|
139990
139990
|
baselineDigest: string2().regex(/^[a-f0-9]{64}$/),
|
|
139991
|
-
device: number2()
|
|
139992
|
-
inode: number2()
|
|
139991
|
+
device: number2(),
|
|
139992
|
+
inode: number2(),
|
|
139993
139993
|
at: exports_iso.datetime()
|
|
139994
139994
|
});
|
|
139995
139995
|
var completedSchema = strictObject({
|
|
@@ -140087,7 +140087,7 @@ async function inspectClone(path, baseline) {
|
|
|
140087
140087
|
git2(path, ["worktree", "list", "--porcelain"]),
|
|
140088
140088
|
git2(path, ["remote"])
|
|
140089
140089
|
]);
|
|
140090
|
-
if (top.trim() !== path || branch.trim() !== baseline.branch || head.trim() !== baseline.commit)
|
|
140090
|
+
if (resolve39(top.trim()) !== resolve39(path) || branch.trim() !== baseline.branch || head.trim() !== baseline.commit)
|
|
140091
140091
|
throw new Error("Frozen baseline repository identity changed.");
|
|
140092
140092
|
const expectedRefs = [
|
|
140093
140093
|
`refs/heads/${baseline.branch} ${baseline.commit}`,
|
|
@@ -140097,8 +140097,8 @@ async function inspectClone(path, baseline) {
|
|
|
140097
140097
|
`).sort()) !== JSON.stringify(expectedRefs) || remotes.trim())
|
|
140098
140098
|
throw new Error("Frozen baseline has extra Git references or remotes.");
|
|
140099
140099
|
if (worktrees.split(`
|
|
140100
|
-
`).filter((line) => line.startsWith("worktree ")).join(`
|
|
140101
|
-
`) !== `worktree ${path}`)
|
|
140100
|
+
`).filter((line) => line.startsWith("worktree ")).map((line) => `worktree ${resolve39(line.slice("worktree ".length))}`).join(`
|
|
140101
|
+
`) !== `worktree ${resolve39(path)}`)
|
|
140102
140102
|
throw new Error("Frozen baseline has linked worktrees.");
|
|
140103
140103
|
for (const entry of status.split("\x00").filter(Boolean)) {
|
|
140104
140104
|
if (entry === "!! .agent-valley/" && await emptyScratch(join66(path, ".agent-valley")))
|
|
@@ -140146,7 +140146,7 @@ async function protectMissionBaseline(mission, protectedPaths) {
|
|
|
140146
140146
|
protectedPaths.add(mission.workspace.path);
|
|
140147
140147
|
const workspace = mission.workspace.path;
|
|
140148
140148
|
const prefix = join66(mission.repositoryRoot, ".agent-valley", "operations");
|
|
140149
|
-
if (!workspace.startsWith(`${prefix}
|
|
140149
|
+
if (!workspace.startsWith(`${prefix}${sep20}`))
|
|
140150
140150
|
return;
|
|
140151
140151
|
await localDirectory3(dirname14(workspace));
|
|
140152
140152
|
const raw = await readLocal(join66(dirname14(workspace), "workspace.json"));
|
|
@@ -140209,7 +140209,7 @@ async function pruneContinuousBaselines(storageRoot, operationId, options = {})
|
|
|
140209
140209
|
const operation = await store.load(operationId);
|
|
140210
140210
|
const root = operation.repositoryRoot;
|
|
140211
140211
|
await localDirectory3(root);
|
|
140212
|
-
if ((await git2(root, ["rev-parse", "--show-toplevel"])).trim() !== root)
|
|
140212
|
+
if (resolve39((await git2(root, ["rev-parse", "--show-toplevel"])).trim()) !== resolve39(root))
|
|
140213
140213
|
throw new Error("Restore the original Git repository before pruning.");
|
|
140214
140214
|
const artifacts = join66(root, ".agent-valley", "operations", operationId);
|
|
140215
140215
|
const baselines = join66(artifacts, "baselines");
|
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(24).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))
|