agent-valley 4.8.7 → 4.8.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.
@@ -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.8.7",
4
+ "version": "4.8.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
@@ -55509,8 +55509,9 @@ function detectCycles(nodes) {
55509
55509
  }
55510
55510
 
55511
55511
  // ../../packages/core/src/chief/plan-validation.ts
55512
+ var MAX_JSON_RESPONSE_LENGTH = 128000;
55512
55513
  function parseJson(source, stage) {
55513
- if (source.length > 128000)
55514
+ if (source.length > MAX_JSON_RESPONSE_LENGTH)
55514
55515
  throw new Error(`${stage} response exceeds 128 KB. Return only the requested JSON.`);
55515
55516
  const content = source.trim().replace(/^```(?:json)?\s*\n([\s\S]*?)\n```$/, "$1");
55516
55517
  try {
@@ -71057,8 +71058,6 @@ function parsePlanningResponse(source, mission) {
71057
71058
  validateOmaAssignments(plan, mission.personas, mission);
71058
71059
  return { personas: mission.personas, plan };
71059
71060
  }
71060
- if (source.length > 8000)
71061
- throw new Error("Planning response exceeds 8,000 characters. Return a concise roster and plan within the transport limit.");
71062
71061
  const roster = mission.availableAgents ? array(actorSchema).min(Math.max(2, 1 + [mission.technicalLeadId, mission.designLeadId, mission.marketingLeadId].filter(Boolean).length)).max(8).optional() : never().optional();
71063
71062
  const response = strictObject({
71064
71063
  actors: roster,
@@ -71459,7 +71458,7 @@ function planPrompt(mission) {
71459
71458
  taskDecompositionGuidance(mission, "plan"),
71460
71459
  "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.",
71461
71460
  "Use 1-12 tasks with unique ids, concrete instructions, nonempty acceptance criteria, and acyclic dependencies.",
71462
- "Keep the complete JSON response under 8,000 characters; use concise tasks so it fits the Actor transport.",
71461
+ `Keep the complete JSON response within ${MAX_JSON_RESPONSE_LENGTH} characters; use concise Actors and tasks.`,
71463
71462
  "Every Actor must produce or update a material file deliverable, including research reports. Plan intermediate checks.",
71464
71463
  ...requiresOmaActor(mission) ? [
71465
71464
  "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."
@@ -71487,7 +71486,7 @@ function planPrompt(mission) {
71487
71486
  "Mission input identity fields are metadata, not response fields. Do not copy chiefId, technicalLeadId, designLeadId or marketingLeadId into the response root, or copy other Mission metadata. When generating a roster, retain nominated companions only as entries in actors with their supplied ids. With a fixed roster, use configured Actor ids without returning actors.",
71488
71487
  ...mission.availableAgents ? [
71489
71488
  `The operator's Chief Director CLI is fixed: ${JSON.stringify({ id: mission.chiefId, actorType: chief?.agentType })}. Do not replace it with another vendor. Omit model from every response Actor; the scheduler retains the selected Chief Director model and Actors use their CLI defaults.`,
71490
- mission.availableSkills?.length ? "Select relevant skills only from the verified installed catalog. Assign tasks to generated Actor ids. Return actors, tasks and the requested goalBrief together in one JSON object within the 8,000-character limit." : "Set skills: [] on each Actor because no installed skill capabilities were supplied; describe expertise in role. Assign tasks to generated Actor ids. Return actors, tasks and any requested goalBrief together in one JSON object within the 8,000-character limit.",
71489
+ mission.availableSkills?.length ? `Select relevant skills only from the verified installed catalog. Assign tasks to generated Actor ids. Return actors, tasks and the requested goalBrief together in one JSON object within the ${MAX_JSON_RESPONSE_LENGTH}-character limit.` : `Set skills: [] on each Actor because no installed skill capabilities were supplied; describe expertise in role. Assign tasks to generated Actor ids. Return actors, tasks and any requested goalBrief together in one JSON object within the ${MAX_JSON_RESPONSE_LENGTH}-character limit.`,
71491
71490
  'Return ONLY JSON: {"actors":[{"id":"...","name":"...","role":"...","actorType":"...","skills":[]}],"tasks":[{"id":"task-1","title":"...","actorId":"...","instructions":"...","acceptance":["..."],"dependencies":[]}]}'
71492
71491
  ] : [
71493
71492
  'Return ONLY JSON: {"tasks":[{"id":"task-1","title":"...","actorId":"...","instructions":"...","acceptance":["..."],"dependencies":[]}]}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "4.8.7",
3
+ "version": "4.8.8",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",