@tagma/sdk 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagma/sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "plugins/*"
package/src/schema.ts CHANGED
@@ -291,7 +291,7 @@ export function deresolvePipeline(config: PipelineConfig, workDir: string): RawP
291
291
  ...(task.middlewares !== undefined ? { middlewares: task.middlewares } : {}),
292
292
  ...(task.completion ? { completion: task.completion } : {}),
293
293
  ...(task.agent_profile ? { agent_profile: task.agent_profile } : {}),
294
- ...(task.permissions && JSON.stringify(task.permissions) !== JSON.stringify(DEFAULT_PERMISSIONS)
294
+ ...(task.permissions && JSON.stringify(task.permissions) !== JSON.stringify(track.permissions)
295
295
  ? { permissions: task.permissions }
296
296
  : {}),
297
297
  };
@@ -166,6 +166,10 @@ function detectCycles(
166
166
  const resolved = resolveDepRef(dep, track.id, allQualified, bareToQualified);
167
167
  if (resolved) deps.push(resolved);
168
168
  }
169
+ if (task.continue_from) {
170
+ const resolved = resolveDepRef(task.continue_from, track.id, allQualified, bareToQualified);
171
+ if (resolved && !deps.includes(resolved)) deps.push(resolved);
172
+ }
169
173
  adj.set(qid, deps);
170
174
  }
171
175
  }