@synergenius/flow-weaver 0.21.11 → 0.21.12
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/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.21.
|
|
9674
|
+
VERSION = "0.21.12";
|
|
9675
9675
|
}
|
|
9676
9676
|
});
|
|
9677
9677
|
|
|
@@ -35559,12 +35559,12 @@ var init_parser2 = __esm({
|
|
|
35559
35559
|
if (this.loadedPackDirs.has(projectDir)) return;
|
|
35560
35560
|
this.loadedPackDirs.add(projectDir);
|
|
35561
35561
|
const { discoverTagHandlers: discoverTagHandlers2, discoverValidationRuleSets: discoverValidationRuleSets2 } = await Promise.resolve().then(() => (init_registry(), registry_exports));
|
|
35562
|
-
const { pathToFileURL:
|
|
35562
|
+
const { pathToFileURL: pathToFileURL5 } = await import("node:url");
|
|
35563
35563
|
const handlers = await discoverTagHandlers2(projectDir);
|
|
35564
35564
|
for (const discovered of handlers) {
|
|
35565
35565
|
if (discovered.tags.every((t) => this.tagRegistry.has(t))) continue;
|
|
35566
35566
|
try {
|
|
35567
|
-
const mod = await import(
|
|
35567
|
+
const mod = await import(pathToFileURL5(discovered.absoluteFile).href);
|
|
35568
35568
|
const handlerFn = discovered.exportName ? mod[discovered.exportName] : mod.default;
|
|
35569
35569
|
if (typeof handlerFn === "function") {
|
|
35570
35570
|
this.tagRegistry.register(
|
|
@@ -35581,7 +35581,7 @@ var init_parser2 = __esm({
|
|
|
35581
35581
|
const ruleSets = await discoverValidationRuleSets2(projectDir);
|
|
35582
35582
|
for (const ruleSet of ruleSets) {
|
|
35583
35583
|
try {
|
|
35584
|
-
const mod = await import(
|
|
35584
|
+
const mod = await import(pathToFileURL5(ruleSet.absoluteFile).href);
|
|
35585
35585
|
const detectFn = mod[ruleSet.detectExport ?? "detect"];
|
|
35586
35586
|
const getRulesFn = mod[ruleSet.rulesExport ?? "getRules"];
|
|
35587
35587
|
if (typeof detectFn === "function" && typeof getRulesFn === "function") {
|
|
@@ -61288,7 +61288,8 @@ async function executeWorkflowFromFile(filePath, params, options) {
|
|
|
61288
61288
|
);
|
|
61289
61289
|
if (fs20.existsSync(distEquivalent)) {
|
|
61290
61290
|
const relative9 = path21.relative(srcDir, distEquivalent);
|
|
61291
|
-
const
|
|
61291
|
+
const posixRelative = relative9.replace(/\\/g, "/");
|
|
61292
|
+
const normalized = posixRelative.startsWith(".") ? posixRelative : `./${posixRelative}`;
|
|
61292
61293
|
return `from '${normalized}'`;
|
|
61293
61294
|
}
|
|
61294
61295
|
}
|
|
@@ -70360,6 +70361,7 @@ __export(pack_commands_exports, {
|
|
|
70360
70361
|
registerPackCommands: () => registerPackCommands
|
|
70361
70362
|
});
|
|
70362
70363
|
import * as path49 from "path";
|
|
70364
|
+
import { pathToFileURL as pathToFileURL4 } from "node:url";
|
|
70363
70365
|
function compareVersions2(a, b) {
|
|
70364
70366
|
const pa = a.split(".").map(Number);
|
|
70365
70367
|
const pb = b.split(".").map(Number);
|
|
@@ -70419,7 +70421,7 @@ async function registerPackCommands(program3) {
|
|
|
70419
70421
|
sub.allowUnknownOption(true);
|
|
70420
70422
|
sub.action(async (...actionArgs) => {
|
|
70421
70423
|
try {
|
|
70422
|
-
const bridge = await import(entrypointPath);
|
|
70424
|
+
const bridge = await import(pathToFileURL4(entrypointPath).href);
|
|
70423
70425
|
const rawArgs = sub.args ?? [];
|
|
70424
70426
|
await bridge.handleCommand(cmd.name, rawArgs);
|
|
70425
70427
|
} catch (err) {
|
|
@@ -93115,7 +93117,7 @@ function displayInstalledPackage(pkg) {
|
|
|
93115
93117
|
// src/cli/index.ts
|
|
93116
93118
|
init_logger();
|
|
93117
93119
|
init_error_utils();
|
|
93118
|
-
var version2 = true ? "0.21.
|
|
93120
|
+
var version2 = true ? "0.21.12" : "0.0.0-dev";
|
|
93119
93121
|
var program2 = new Command();
|
|
93120
93122
|
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", () => {
|
|
93121
93123
|
logger.banner(version2);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* when the user actually invokes a pack command.
|
|
10
10
|
*/
|
|
11
11
|
import * as path from 'path';
|
|
12
|
+
import { pathToFileURL } from 'node:url';
|
|
12
13
|
import { listInstalledPackages } from '../marketplace/registry.js';
|
|
13
14
|
import { VERSION } from '../generated-version.js';
|
|
14
15
|
function compareVersions(a, b) {
|
|
@@ -81,7 +82,7 @@ export async function registerPackCommands(program) {
|
|
|
81
82
|
sub.allowUnknownOption(true);
|
|
82
83
|
sub.action(async (...actionArgs) => {
|
|
83
84
|
try {
|
|
84
|
-
const bridge = await import(entrypointPath);
|
|
85
|
+
const bridge = await import(pathToFileURL(entrypointPath).href);
|
|
85
86
|
// Collect raw args from the sub command
|
|
86
87
|
const rawArgs = sub.args ?? [];
|
|
87
88
|
await bridge.handleCommand(cmd.name, rawArgs);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.21.
|
|
1
|
+
export declare const VERSION = "0.21.12";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
|
@@ -86,7 +86,8 @@ export async function executeWorkflowFromFile(filePath, params, options) {
|
|
|
86
86
|
const distEquivalent = resolvedSrc.replace(`${path.sep}src${path.sep}`, `${path.sep}dist${path.sep}`);
|
|
87
87
|
if (fs.existsSync(distEquivalent)) {
|
|
88
88
|
const relative = path.relative(srcDir, distEquivalent);
|
|
89
|
-
const
|
|
89
|
+
const posixRelative = relative.replace(/\\/g, '/');
|
|
90
|
+
const normalized = posixRelative.startsWith('.') ? posixRelative : `./${posixRelative}`;
|
|
90
91
|
return `from '${normalized}'`;
|
|
91
92
|
}
|
|
92
93
|
}
|
package/package.json
CHANGED