@qaick/executor 0.3.0 → 0.3.1

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.
@@ -48,8 +48,14 @@ export class ExecutionPlan {
48
48
  };
49
49
  const root = document.selection.root.kind === 'occurrence' ? document.selection.root.key : document.context.root;
50
50
  const selected = this.context.get(root);
51
- const visit = (key) => { this.inScope.add(key); for (const child of this.context.get(key).children)
52
- visit(child); };
51
+ const visit = (key) => {
52
+ this.inScope.add(key);
53
+ // Branch Controls retain their shadowed direct body as context, not executable scope.
54
+ const branches = this.nodes.get(key)?.control?.branches;
55
+ const children = branches ? branches.map(branch => branch.occurrence) : this.context.get(key).children;
56
+ for (const child of children)
57
+ visit(child);
58
+ };
53
59
  visit(root);
54
60
  const entryPayload = selected.kind === 'flow' ? document.flows.find(f => f.occurrence === root) : document.nodes.find(n => n.occurrence === root);
55
61
  this.inputDeclarations = entryPayload?.inputDeclarations ?? document.selection.inputDeclarations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaick/executor",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Host-neutral QAick action execution primitives.",
5
5
  "files": [
6
6
  "dist",
@@ -34,7 +34,7 @@
34
34
  "prepublishOnly": "npm run typecheck && npm test && npm run build"
35
35
  },
36
36
  "dependencies": {
37
- "@qaick/contract": "0.6.1"
37
+ "@qaick/contract": "0.6.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^24.13.3",