agents-relay 2.0.206 → 2.0.207

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.
@@ -117,6 +117,11 @@ async function discoverShortcut(agent, projectPath, neoRoot) {
117
117
  return actual;
118
118
  }
119
119
  function inside(root, path) { const rel = relative(root, path); return rel === '' || (rel !== '..' && !rel.startsWith(`..${sep}`) && !isAbsolute(rel)); }
120
+ // Only Vlog's Visioner evidence follows the source-manifest/index artifact schema.
121
+ // Distribution Visioner has a separate domain contract and cannot reuse it.
122
+ function requiresVlogVisionerEvidence(agent) {
123
+ return agent === 'visioner' || agent === 'vlog-visioner';
124
+ }
120
125
  async function validateVisionerResult(result, projectRoot) {
121
126
  const artifacts = result.artifacts, output = result.output;
122
127
  if (!artifacts || Array.isArray(artifacts) || typeof artifacts !== 'object' || !['vision-evidence.json', 'vision-segment-index.json', 'metadata.json'].every(name => Object.prototype.hasOwnProperty.call(artifacts, name) && typeof output[name] === 'string'))
@@ -278,7 +283,7 @@ export async function runAgentShortcut(options) {
278
283
  artifactHashes[relative(projectReal, actual)] = digestBytes(await readFile(actual));
279
284
  }
280
285
  const nodeAgent = graph.nodes.find(node => node.id === nodeId)?.agent;
281
- if (nodeAgent?.toLowerCase() === 'visioner')
286
+ if (requiresVlogVisionerEvidence(nodeAgent?.toLowerCase()))
282
287
  await validateVisionerResult(output, projectReal);
283
288
  state.nodes[nodeId] = structuredClone(output);
284
289
  state.artifactHashes[nodeId] = artifactHashes;
@@ -360,7 +365,7 @@ export async function runAgentShortcut(options) {
360
365
  return result.output[name];
361
366
  });
362
367
  const projectReal = await realpath(projectPath);
363
- if (node.agent.toLowerCase() === 'visioner')
368
+ if (requiresVlogVisionerEvidence(node.agent.toLowerCase()))
364
369
  await validateVisionerResult(result, projectReal);
365
370
  const artifactHashes = {};
366
371
  for (const artifact of artifactPaths) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.206",
3
+ "version": "2.0.207",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",