@synergenius/flow-weaver 0.22.3 → 0.22.4

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.
@@ -9886,7 +9886,7 @@ var VERSION;
9886
9886
  var init_generated_version = __esm({
9887
9887
  "src/generated-version.ts"() {
9888
9888
  "use strict";
9889
- VERSION = "0.22.3";
9889
+ VERSION = "0.22.4";
9890
9890
  }
9891
9891
  });
9892
9892
 
@@ -10108,6 +10108,9 @@ function mapToTypeScript(portType, tsType) {
10108
10108
  return "unknown";
10109
10109
  }
10110
10110
  if (tsType && (portType === "OBJECT" || portType === "ANY" || portType === "ARRAY" || portType === "FUNCTION")) {
10111
+ if (tsType.includes("import(")) {
10112
+ return mapping.typescript;
10113
+ }
10111
10114
  return tsType;
10112
10115
  }
10113
10116
  return mapping.typescript;
@@ -94905,7 +94908,7 @@ var {
94905
94908
  // src/cli/index.ts
94906
94909
  init_logger();
94907
94910
  init_error_utils();
94908
- var version2 = true ? "0.22.3" : "0.0.0-dev";
94911
+ var version2 = true ? "0.22.4" : "0.0.0-dev";
94909
94912
  var program2 = new Command();
94910
94913
  program2.name("fw").description("Flow Weaver Annotations - Compile and validate workflow files").option("-v, --version", "Output the current version").option("--no-color", "Disable colors").option("--color", "Force colors").on("option:version", () => {
94911
94914
  logger.banner(version2);
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.3";
1
+ export declare const VERSION = "0.22.4";
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.22.3';
2
+ export const VERSION = '0.22.4';
3
3
  //# sourceMappingURL=generated-version.js.map
@@ -38,9 +38,15 @@ export function mapToTypeScript(portType, tsType) {
38
38
  console.warn(`Unknown port type: ${portType}, defaulting to 'unknown'`);
39
39
  return 'unknown';
40
40
  }
41
- // For non-primitive types, use tsType if provided
41
+ // For non-primitive types, use tsType if provided — BUT strip types
42
+ // that contain absolute paths (import("/absolute/path").Type) which
43
+ // break when the file is compiled on a different machine or moved.
42
44
  if (tsType &&
43
45
  (portType === 'OBJECT' || portType === 'ANY' || portType === 'ARRAY' || portType === 'FUNCTION')) {
46
+ // Strip types with absolute import paths — they break on other machines
47
+ if (tsType.includes('import(')) {
48
+ return mapping.typescript;
49
+ }
44
50
  return tsType;
45
51
  }
46
52
  return mapping.typescript;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergenius/flow-weaver",
3
- "version": "0.22.3",
3
+ "version": "0.22.4",
4
4
  "description": "Deterministic workflow compiler for AI agents. Compiles to standalone TypeScript, no runtime dependencies.",
5
5
  "private": false,
6
6
  "type": "module",