@synergenius/flow-weaver 0.13.0 → 0.13.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.
@@ -907,8 +907,12 @@ function generateNodeTypeJSDoc(nodeType) {
907
907
  function replaceWorkflowJSDoc(source, ast, options = {}) {
908
908
  const sourceFile = ts.createSourceFile('temp.ts', source, ts.ScriptTarget.Latest, true);
909
909
  let functionNode;
910
- // Find the workflow function (exported or not)
910
+ // Find the FIRST workflow function with the matching name.
911
+ // ts.forEachChild visits all children — we break on first match to avoid
912
+ // targeting a later duplicate (which corrupts the wrong function's JSDoc).
911
913
  ts.forEachChild(sourceFile, (node) => {
914
+ if (functionNode)
915
+ return; // already found — skip
912
916
  if (ts.isFunctionDeclaration(node) && node.name?.text === ast.functionName) {
913
917
  functionNode = node;
914
918
  }
@@ -9671,7 +9671,7 @@ var VERSION;
9671
9671
  var init_generated_version = __esm({
9672
9672
  "src/generated-version.ts"() {
9673
9673
  "use strict";
9674
- VERSION = "0.13.0";
9674
+ VERSION = "0.13.1";
9675
9675
  }
9676
9676
  });
9677
9677
 
@@ -19539,6 +19539,7 @@ function replaceWorkflowJSDoc(source, ast, options = {}) {
19539
19539
  const sourceFile = ts2.createSourceFile("temp.ts", source, ts2.ScriptTarget.Latest, true);
19540
19540
  let functionNode;
19541
19541
  ts2.forEachChild(sourceFile, (node) => {
19542
+ if (functionNode) return;
19542
19543
  if (ts2.isFunctionDeclaration(node) && node.name?.text === ast.functionName) {
19543
19544
  functionNode = node;
19544
19545
  }
@@ -110074,7 +110075,7 @@ async function mcpSetupCommand(options, deps) {
110074
110075
 
110075
110076
  // src/cli/index.ts
110076
110077
  init_error_utils();
110077
- var version2 = true ? "0.13.0" : "0.0.0-dev";
110078
+ var version2 = true ? "0.13.1" : "0.0.0-dev";
110078
110079
  var program2 = new Command();
110079
110080
  program2.name("flow-weaver").description("Flow Weaver Annotations - Compile and validate workflow files").version(version2, "-v, --version", "Output the current version");
110080
110081
  program2.configureOutput({
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.13.0";
1
+ export declare const VERSION = "0.13.1";
2
2
  //# sourceMappingURL=generated-version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by scripts/generate-version.ts — do not edit manually
2
- export const VERSION = '0.13.0';
2
+ export const VERSION = '0.13.1';
3
3
  //# sourceMappingURL=generated-version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergenius/flow-weaver",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Deterministic workflow compiler for AI agents. Compiles to standalone TypeScript, no runtime dependencies.",
5
5
  "private": false,
6
6
  "type": "module",