agent-valley 4.9.8 → 4.9.9

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.8",
4
+ "version": "4.9.9",
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
@@ -57384,7 +57384,7 @@ var goalVerificationCheckSchema = discriminatedUnion("kind", [
57384
57384
  kind: literal("file"),
57385
57385
  path: path4,
57386
57386
  minBytes: number2().int().min(1).max(4194304).default(1),
57387
- contains: array(text6).min(1).max(10).optional(),
57387
+ contains: array(text6).min(1).max(20).optional(),
57388
57388
  sha256: sha256.optional()
57389
57389
  }),
57390
57390
  strictObject({
@@ -57393,26 +57393,32 @@ var goalVerificationCheckSchema = discriminatedUnion("kind", [
57393
57393
  pointer: string2().max(1024).refine((value) => value === "" || /^(?:\/(?:[^~]|~[01])*)+$/.test(value), {
57394
57394
  message: "Use an RFC 6901 JSON pointer such as /engines/node."
57395
57395
  }),
57396
- equals: union([string2().max(4000), number2().finite(), boolean2(), _null3()])
57396
+ equals: union([
57397
+ string2().max(4000),
57398
+ number2().finite(),
57399
+ boolean2(),
57400
+ _null3(),
57401
+ array(union([string2().max(4000), number2().finite(), boolean2(), _null3()])).max(50)
57402
+ ])
57397
57403
  }),
57398
57404
  strictObject({
57399
57405
  kind: literal("command"),
57400
57406
  program: _enum(["git", "node", "bun", "cargo"]),
57401
57407
  args: array(string2().min(1).max(1024)).min(1).max(30),
57402
57408
  timeoutMs: number2().int().min(100).max(3600000).default(120000),
57403
- stdoutIncludes: array(text6).min(1).max(10).optional()
57409
+ stdoutIncludes: array(text6).min(1).max(20).optional()
57404
57410
  }).refine((check) => safeVerificationCommand(check.program, check.args), {
57405
57411
  message: "Use explicit node/bun/Vitest tests, read-only Git, or exactly cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace. Other Cargo commands or flags, shells, scripts, installs and publishing are forbidden."
57406
57412
  })
57407
57413
  ]);
57408
57414
  var goalVerificationContractSchema = strictObject({
57409
57415
  version: literal(1),
57410
- criteria: array(strictObject({ criterion: text6, checks: array(goalVerificationCheckSchema).min(1).max(10) })).min(1).max(20)
57416
+ criteria: array(strictObject({ criterion: text6, checks: array(goalVerificationCheckSchema).min(1).max(20) })).min(1).max(20)
57411
57417
  }).superRefine((contract, ctx) => {
57412
57418
  if (new Set(contract.criteria.map((entry) => entry.criterion)).size !== contract.criteria.length)
57413
57419
  ctx.addIssue({ code: "custom", message: "Assess each success criterion exactly once." });
57414
- if (contract.criteria.reduce((sum, entry) => sum + entry.checks.length, 0) > 40)
57415
- ctx.addIssue({ code: "custom", message: "Keep the verification contract within 40 executable checks." });
57420
+ if (contract.criteria.reduce((sum, entry) => sum + entry.checks.length, 0) > 80)
57421
+ ctx.addIssue({ code: "custom", message: "Keep the verification contract within 80 executable checks." });
57416
57422
  });
57417
57423
  function validateGoalVerificationContract(input, successCriteria) {
57418
57424
  const contract = goalVerificationContractSchema.parse(input);
@@ -57885,11 +57891,12 @@ async function inspectCheck(check, root, options, budget) {
57885
57891
  } catch {
57886
57892
  return { ...common, passed: false, summary: checkSummary(false, "Observed file is not valid UTF-8 JSON.") };
57887
57893
  }
57888
- const passed = Object.is(jsonPointerValue(json, check.pointer), check.equals);
57894
+ const observed = jsonPointerValue(json, check.pointer);
57895
+ const passed = Array.isArray(check.equals) ? Array.isArray(observed) && observed.length === check.equals.length && check.equals.every((expected, index) => Object.is(observed[index], expected)) : Object.is(observed, check.equals);
57889
57896
  return {
57890
57897
  ...common,
57891
57898
  passed,
57892
- summary: checkSummary(passed, passed ? "Observed JSON pointer equals its required scalar." : "Observed JSON pointer is missing or has a different value.")
57899
+ summary: checkSummary(passed, passed ? "Observed JSON pointer equals its required value." : "Observed JSON pointer is missing or has a different value.")
57893
57900
  };
57894
57901
  }
57895
57902
  async function executeGoalVerification(input, workspaceRoot, options) {
@@ -76263,7 +76270,7 @@ function planPrompt(mission) {
76263
76270
  "OMA is required: every task's Actor must have at least one relevant installed OMA skill. The runtime applies a matching installed OMA agent definition and all its declared skills before native execution. Empty skill assignments or missing agent definitions block dispatch; select a suitable skilled Actor rather than bypassing OMA. Additional native subagent delegation remains available when the assignment needs it."
76264
76271
  ] : [],
76265
76272
  mission.verificationMode === "chief" ? [
76266
- 'Design verificationContract: {"version":1,"criteria":[{"criterion":"exact goalBrief success criterion","checks":[{"kind":"file","path":"report.md","minBytes":200,"contains":["required finding"]}]}]}. Cover every success criterion exactly once. File checks inspect actual relative regular files; JSON checks use {"kind":"json","path":"package.json","pointer":"/engines/node","equals":">=26"}. Behavioral goals need relevant executable tests: {"kind":"command","program":"node","args":["node_modules/vitest/vitest.mjs","run","tests/login.test.ts"]}, or node --test / bun test with explicit test paths.',
76273
+ 'Design verificationContract: {"version":1,"criteria":[{"criterion":"exact goalBrief success criterion","checks":[{"kind":"file","path":"report.md","minBytes":200,"contains":["required finding"]}]}]}. Cover every success criterion exactly once. File checks inspect actual relative regular files; JSON checks use {"kind":"json","path":"package.json","pointer":"/engines/node","equals":">=26"}; equals is a string, number, boolean, null or a flat array of those. Each criterion takes at most 20 checks and the contract at most 80. Behavioral goals need relevant executable tests: {"kind":"command","program":"node","args":["node_modules/vitest/vitest.mjs","run","tests/login.test.ts"]}, or node --test / bun test with explicit test paths.',
76267
76274
  'For an authorized Rust workspace build/test goal, native Cargo checks are supported exactly as {"kind":"command","program":"cargo","args":["fmt","--all","--","--check"]}, {"kind":"command","program":"cargo","args":["clippy","--workspace","--all-targets","--","-D","warnings"]}, and {"kind":"command","program":"cargo","args":["test","--workspace"]}. Use one or more of these checks for the corresponding Rust criteria; do not replace required Cargo gates with JavaScript wrappers or report claims. Workers prepare the Rust toolchain, dependencies and lockfile during implementation. Cargo verification runs offline and binds workspace manifests, Rust sources and local tool configuration to the evidence.',
76268
76275
  "These are the complete command shapes. The supplied schema is sufficient; no harness validator-source discovery is needed. No shell, package scripts, other build/install/publish commands, absolute paths, globs or extra flags. A report claiming success is insufficient for a behavioral criterion. Keep checks immutable during recovery; assign workers the needed test/report deliverables."
76269
76276
  ].join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "4.9.8",
3
+ "version": "4.9.9",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",