@synergenius/flow-weaver 0.12.2 → 0.12.3
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.
|
@@ -3,6 +3,7 @@ export type TOutputFormat = 'typescript' | 'javascript';
|
|
|
3
3
|
* Strip TypeScript type syntax from code using esbuild.
|
|
4
4
|
* Removes type declarations, interfaces, declare statements, and type annotations
|
|
5
5
|
* while preserving runtime JavaScript code.
|
|
6
|
+
* Uses a lazy import so esbuild is only loaded when actually needed.
|
|
6
7
|
*/
|
|
7
8
|
export declare function stripTypeScript(code: string): string;
|
|
8
9
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { getGeneratedBranding } from '../generated-branding.js';
|
|
2
|
-
import { transformSync } from 'esbuild';
|
|
3
2
|
/**
|
|
4
3
|
* Strip TypeScript type syntax from code using esbuild.
|
|
5
4
|
* Removes type declarations, interfaces, declare statements, and type annotations
|
|
6
5
|
* while preserving runtime JavaScript code.
|
|
6
|
+
* Uses a lazy import so esbuild is only loaded when actually needed.
|
|
7
7
|
*/
|
|
8
8
|
export function stripTypeScript(code) {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
10
|
+
const { transformSync } = require('esbuild');
|
|
9
11
|
const result = transformSync(code, {
|
|
10
12
|
loader: 'ts',
|
|
11
13
|
target: 'es2020',
|
package/dist/cli/flow-weaver.mjs
CHANGED
|
@@ -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.12.
|
|
9674
|
+
VERSION = "0.12.3";
|
|
9675
9675
|
}
|
|
9676
9676
|
});
|
|
9677
9677
|
|
|
@@ -14710,7 +14710,7 @@ var require_main = __commonJS({
|
|
|
14710
14710
|
initialize: () => initialize,
|
|
14711
14711
|
stop: () => stop,
|
|
14712
14712
|
transform: () => transform2,
|
|
14713
|
-
transformSync: () =>
|
|
14713
|
+
transformSync: () => transformSync,
|
|
14714
14714
|
version: () => version3
|
|
14715
14715
|
});
|
|
14716
14716
|
module2.exports = __toCommonJS(node_exports);
|
|
@@ -16558,7 +16558,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
16558
16558
|
}));
|
|
16559
16559
|
return result;
|
|
16560
16560
|
};
|
|
16561
|
-
var
|
|
16561
|
+
var transformSync = (input, options) => {
|
|
16562
16562
|
if (worker_threads && !isInternalWorkerThread) {
|
|
16563
16563
|
if (!workerThreadService) workerThreadService = startWorkerThreadService(worker_threads);
|
|
16564
16564
|
return workerThreadService.transformSync(input, options);
|
|
@@ -16891,7 +16891,8 @@ error: ${text}`);
|
|
|
16891
16891
|
|
|
16892
16892
|
// src/api/inline-runtime.ts
|
|
16893
16893
|
function stripTypeScript(code) {
|
|
16894
|
-
const
|
|
16894
|
+
const { transformSync } = require_main();
|
|
16895
|
+
const result = transformSync(code, {
|
|
16895
16896
|
loader: "ts",
|
|
16896
16897
|
target: "es2020",
|
|
16897
16898
|
// Keep the code readable (no minification)
|
|
@@ -17463,12 +17464,10 @@ function generateStandaloneRuntimeModule(production, moduleFormat = "esm") {
|
|
|
17463
17464
|
lines.push("");
|
|
17464
17465
|
return lines.join("\n");
|
|
17465
17466
|
}
|
|
17466
|
-
var import_esbuild;
|
|
17467
17467
|
var init_inline_runtime = __esm({
|
|
17468
17468
|
"src/api/inline-runtime.ts"() {
|
|
17469
17469
|
"use strict";
|
|
17470
17470
|
init_generated_branding();
|
|
17471
|
-
import_esbuild = __toESM(require_main(), 1);
|
|
17472
17471
|
}
|
|
17473
17472
|
});
|
|
17474
17473
|
|
|
@@ -110036,7 +110035,7 @@ async function mcpSetupCommand(options, deps) {
|
|
|
110036
110035
|
|
|
110037
110036
|
// src/cli/index.ts
|
|
110038
110037
|
init_error_utils();
|
|
110039
|
-
var version2 = true ? "0.12.
|
|
110038
|
+
var version2 = true ? "0.12.3" : "0.0.0-dev";
|
|
110040
110039
|
var program2 = new Command();
|
|
110041
110040
|
program2.name("flow-weaver").description("Flow Weaver Annotations - Compile and validate workflow files").version(version2, "-v, --version", "Output the current version");
|
|
110042
110041
|
program2.configureOutput({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.12.
|
|
1
|
+
export declare const VERSION = "0.12.3";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synergenius/flow-weaver",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Deterministic workflow compiler for AI agents. Compiles to standalone TypeScript, no runtime dependencies.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -141,7 +141,8 @@
|
|
|
141
141
|
"source-map": "^0.7.6",
|
|
142
142
|
"ts-morph": "^21.0.1",
|
|
143
143
|
"ws": "^8.19.0",
|
|
144
|
-
"zod": "^3.22.4"
|
|
144
|
+
"zod": "^3.22.4",
|
|
145
|
+
"esbuild": "^0.27.2"
|
|
145
146
|
},
|
|
146
147
|
"devDependencies": {
|
|
147
148
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -149,7 +150,6 @@
|
|
|
149
150
|
"@types/react": "^19.0.0",
|
|
150
151
|
"@types/ws": "^8.18.1",
|
|
151
152
|
"@vitest/coverage-v8": "^4.0.18",
|
|
152
|
-
"esbuild": "^0.27.2",
|
|
153
153
|
"prettier": "^3.1.1",
|
|
154
154
|
"rimraf": "6.1.2",
|
|
155
155
|
"ts-node": "^10.9.2",
|