agents-relay 2.0.215 → 2.0.216

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.
@@ -101,12 +101,18 @@ export async function runShortcutModelNode(options) {
101
101
  if (item && typeof item === 'object' && !Array.isArray(item)) {
102
102
  const ref = item;
103
103
  const fields = Object.keys(ref);
104
+ // A Worker may naturally produce a path-only file record. Accept
105
+ // EXACTLY {path} (no unrecognized metadata), then let the Graph
106
+ // executor verify realpath confinement and SHA-256 as usual.
107
+ if (fields.length === 1 && fields[0] === 'path'
108
+ && typeof ref.path === 'string' && ref.path.trim())
109
+ return ref.path;
104
110
  if (fields.length === 2 && fields.includes('path')
105
111
  && ((fields.includes('type') && ref.type === 'file') || (fields.includes('kind') && ref.kind === 'file'))
106
112
  && typeof ref.path === 'string' && ref.path.trim())
107
113
  return ref.path;
108
114
  }
109
- throw new Error('Worker node returned unsupported artifact entry; expected a file path, {type:"file",path} or {kind:"file",path}');
115
+ throw new Error('Worker node returned unsupported artifact entry; expected a file path, {path}, {type:"file",path} or {kind:"file",path}');
110
116
  });
111
117
  return { ...record, artifacts: files };
112
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.215",
3
+ "version": "2.0.216",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",