@synergenius/flow-weaver 0.17.11 → 0.17.13
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.17.
|
|
9674
|
+
VERSION = "0.17.13";
|
|
9675
9675
|
}
|
|
9676
9676
|
});
|
|
9677
9677
|
|
|
@@ -101301,8 +101301,17 @@ async function generateManifest(options) {
|
|
|
101301
101301
|
errors2.push(`Failed to parse ${file}: ${err instanceof Error ? err.message : String(err)}`);
|
|
101302
101302
|
}
|
|
101303
101303
|
}
|
|
101304
|
+
const existing = readManifest(directory);
|
|
101305
|
+
const v2Fields = {};
|
|
101306
|
+
if (existing) {
|
|
101307
|
+
if (existing.tagHandlers) v2Fields.tagHandlers = existing.tagHandlers;
|
|
101308
|
+
if (existing.validationRuleSets) v2Fields.validationRuleSets = existing.validationRuleSets;
|
|
101309
|
+
if (existing.exportTargets) v2Fields.exportTargets = existing.exportTargets;
|
|
101310
|
+
if (existing.docs) v2Fields.docs = existing.docs;
|
|
101311
|
+
if (existing.initContributions) v2Fields.initContributions = existing.initContributions;
|
|
101312
|
+
}
|
|
101304
101313
|
const manifest = {
|
|
101305
|
-
manifestVersion:
|
|
101314
|
+
manifestVersion: 2,
|
|
101306
101315
|
name: pkg.name ?? "unknown",
|
|
101307
101316
|
version: pkg.version ?? "0.0.0",
|
|
101308
101317
|
...pkg.description && { description: pkg.description },
|
|
@@ -101311,6 +101320,7 @@ async function generateManifest(options) {
|
|
|
101311
101320
|
nodeTypes: allNodeTypes,
|
|
101312
101321
|
workflows: allWorkflows,
|
|
101313
101322
|
patterns: allPatterns,
|
|
101323
|
+
...v2Fields,
|
|
101314
101324
|
...Object.keys(pkg.dependencies ?? {}).length > 0 && {
|
|
101315
101325
|
dependencies: {
|
|
101316
101326
|
npm: pkg.dependencies
|
|
@@ -101331,7 +101341,7 @@ function readManifest(directory) {
|
|
|
101331
101341
|
}
|
|
101332
101342
|
function emptyManifest(name, version3) {
|
|
101333
101343
|
return {
|
|
101334
|
-
manifestVersion:
|
|
101344
|
+
manifestVersion: 2,
|
|
101335
101345
|
name,
|
|
101336
101346
|
version: version3,
|
|
101337
101347
|
nodeTypes: [],
|
|
@@ -104450,6 +104460,8 @@ async function exportSingleWorkflowViaRegistry(target, inputPath, outputDir, isD
|
|
|
104450
104460
|
throw new Error(`Input file not found: ${inputPath}`);
|
|
104451
104461
|
}
|
|
104452
104462
|
const parser3 = new AnnotationParser();
|
|
104463
|
+
const projectDir = path46.dirname(inputPath);
|
|
104464
|
+
await parser3.loadPackHandlers(projectDir);
|
|
104453
104465
|
const parseResult = parser3.parse(inputPath);
|
|
104454
104466
|
if (parseResult.workflows.length === 0) {
|
|
104455
104467
|
throw new Error(`No workflows found in ${inputPath}`);
|
|
@@ -104525,6 +104537,8 @@ async function exportMultiWorkflowViaRegistry(target, inputPath, outputDir, isDr
|
|
|
104525
104537
|
throw new Error(`Input file not found: ${inputPath}`);
|
|
104526
104538
|
}
|
|
104527
104539
|
const parser3 = new AnnotationParser();
|
|
104540
|
+
const projectDir = path46.dirname(inputPath);
|
|
104541
|
+
await parser3.loadPackHandlers(projectDir);
|
|
104528
104542
|
const parseResult = parser3.parse(inputPath);
|
|
104529
104543
|
if (parseResult.workflows.length === 0) {
|
|
104530
104544
|
throw new Error(`No workflows found in ${inputPath}`);
|
|
@@ -105877,7 +105891,7 @@ function displayInstalledPackage(pkg) {
|
|
|
105877
105891
|
// src/cli/index.ts
|
|
105878
105892
|
init_logger();
|
|
105879
105893
|
init_error_utils();
|
|
105880
|
-
var version2 = true ? "0.17.
|
|
105894
|
+
var version2 = true ? "0.17.13" : "0.0.0-dev";
|
|
105881
105895
|
var program2 = new Command();
|
|
105882
105896
|
program2.name("flow-weaver").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", () => {
|
|
105883
105897
|
logger.banner(version2);
|
package/dist/export/index.js
CHANGED
|
@@ -42,8 +42,10 @@ async function exportSingleWorkflowViaRegistry(target, inputPath, outputDir, isD
|
|
|
42
42
|
if (!fs.existsSync(inputPath)) {
|
|
43
43
|
throw new Error(`Input file not found: ${inputPath}`);
|
|
44
44
|
}
|
|
45
|
-
// Parse to find workflows
|
|
45
|
+
// Parse to find workflows (load pack tag handlers so CI/CD annotations resolve)
|
|
46
46
|
const parser = new AnnotationParser();
|
|
47
|
+
const projectDir = path.dirname(inputPath);
|
|
48
|
+
await parser.loadPackHandlers(projectDir);
|
|
47
49
|
const parseResult = parser.parse(inputPath);
|
|
48
50
|
if (parseResult.workflows.length === 0) {
|
|
49
51
|
throw new Error(`No workflows found in ${inputPath}`);
|
|
@@ -123,8 +125,10 @@ async function exportMultiWorkflowViaRegistry(target, inputPath, outputDir, isDr
|
|
|
123
125
|
if (!fs.existsSync(inputPath)) {
|
|
124
126
|
throw new Error(`Input file not found: ${inputPath}`);
|
|
125
127
|
}
|
|
126
|
-
// Parse to find workflows
|
|
128
|
+
// Parse to find workflows (load pack tag handlers so CI/CD annotations resolve)
|
|
127
129
|
const parser = new AnnotationParser();
|
|
130
|
+
const projectDir = path.dirname(inputPath);
|
|
131
|
+
await parser.loadPackHandlers(projectDir);
|
|
128
132
|
const parseResult = parser.parse(inputPath);
|
|
129
133
|
if (parseResult.workflows.length === 0) {
|
|
130
134
|
throw new Error(`No workflows found in ${inputPath}`);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.17.
|
|
1
|
+
export declare const VERSION = "0.17.13";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
|
@@ -132,8 +132,25 @@ export async function generateManifest(options) {
|
|
|
132
132
|
errors.push(`Failed to parse ${file}: ${err instanceof Error ? err.message : String(err)}`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
+
// Preserve v2 extension fields from the existing manifest so that
|
|
136
|
+
// re-running pack:manifest doesn't wipe manually declared tagHandlers,
|
|
137
|
+
// validationRuleSets, docs, exportTargets, initContributions, etc.
|
|
138
|
+
const existing = readManifest(directory);
|
|
139
|
+
const v2Fields = {};
|
|
140
|
+
if (existing) {
|
|
141
|
+
if (existing.tagHandlers)
|
|
142
|
+
v2Fields.tagHandlers = existing.tagHandlers;
|
|
143
|
+
if (existing.validationRuleSets)
|
|
144
|
+
v2Fields.validationRuleSets = existing.validationRuleSets;
|
|
145
|
+
if (existing.exportTargets)
|
|
146
|
+
v2Fields.exportTargets = existing.exportTargets;
|
|
147
|
+
if (existing.docs)
|
|
148
|
+
v2Fields.docs = existing.docs;
|
|
149
|
+
if (existing.initContributions)
|
|
150
|
+
v2Fields.initContributions = existing.initContributions;
|
|
151
|
+
}
|
|
135
152
|
const manifest = {
|
|
136
|
-
manifestVersion:
|
|
153
|
+
manifestVersion: 2,
|
|
137
154
|
name: pkg.name ?? 'unknown',
|
|
138
155
|
version: pkg.version ?? '0.0.0',
|
|
139
156
|
...(pkg.description && { description: pkg.description }),
|
|
@@ -142,6 +159,7 @@ export async function generateManifest(options) {
|
|
|
142
159
|
nodeTypes: allNodeTypes,
|
|
143
160
|
workflows: allWorkflows,
|
|
144
161
|
patterns: allPatterns,
|
|
162
|
+
...v2Fields,
|
|
145
163
|
...(Object.keys(pkg.dependencies ?? {}).length > 0 && {
|
|
146
164
|
dependencies: {
|
|
147
165
|
npm: pkg.dependencies,
|
|
@@ -165,7 +183,7 @@ export function readManifest(directory) {
|
|
|
165
183
|
}
|
|
166
184
|
function emptyManifest(name, version) {
|
|
167
185
|
return {
|
|
168
|
-
manifestVersion:
|
|
186
|
+
manifestVersion: 2,
|
|
169
187
|
name,
|
|
170
188
|
version,
|
|
171
189
|
nodeTypes: [],
|
|
@@ -9,7 +9,7 @@ import type { TDataType } from '../ast/types.js';
|
|
|
9
9
|
/** Auto-generated manifest describing a marketplace package's contents. */
|
|
10
10
|
export type TMarketplaceManifest = {
|
|
11
11
|
/** Manifest schema version */
|
|
12
|
-
manifestVersion:
|
|
12
|
+
manifestVersion: 2;
|
|
13
13
|
/** npm package name */
|
|
14
14
|
name: string;
|
|
15
15
|
/** Semver version */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synergenius/flow-weaver",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.13",
|
|
4
4
|
"description": "Deterministic workflow compiler for AI agents. Compiles to standalone TypeScript, no runtime dependencies.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -82,6 +82,10 @@
|
|
|
82
82
|
"./cli": {
|
|
83
83
|
"types": "./dist/cli/exports.d.ts",
|
|
84
84
|
"default": "./dist/cli/exports.js"
|
|
85
|
+
},
|
|
86
|
+
"./executor": {
|
|
87
|
+
"types": "./dist/mcp/workflow-executor.d.ts",
|
|
88
|
+
"default": "./dist/mcp/workflow-executor.js"
|
|
85
89
|
}
|
|
86
90
|
},
|
|
87
91
|
"bin": {
|