@synergenius/flow-weaver 0.22.0 → 0.22.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.
- package/dist/cli/flow-weaver.mjs +2 -2
- package/dist/doc-metadata/extractors/cli-commands.js +1 -1
- package/dist/doc-metadata/extractors/core-metadata.d.ts +100 -0
- package/dist/doc-metadata/extractors/core-metadata.js +61 -0
- package/dist/doc-metadata/index.d.ts +2 -0
- package/dist/doc-metadata/index.js +2 -0
- package/dist/generated-version.d.ts +1 -1
- package/dist/generated-version.js +1 -1
- package/package.json +1 -1
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.22.
|
|
9674
|
+
VERSION = "0.22.1";
|
|
9675
9675
|
}
|
|
9676
9676
|
});
|
|
9677
9677
|
|
|
@@ -93175,7 +93175,7 @@ function displayInstalledPackage(pkg) {
|
|
|
93175
93175
|
// src/cli/index.ts
|
|
93176
93176
|
init_logger();
|
|
93177
93177
|
init_error_utils();
|
|
93178
|
-
var version2 = true ? "0.22.
|
|
93178
|
+
var version2 = true ? "0.22.1" : "0.0.0-dev";
|
|
93179
93179
|
var program2 = new Command();
|
|
93180
93180
|
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", () => {
|
|
93181
93181
|
logger.banner(version2);
|
|
@@ -179,7 +179,7 @@ export const CLI_COMMANDS = [
|
|
|
179
179
|
description: 'Create a new flow-weaver project with templates and config',
|
|
180
180
|
options: [
|
|
181
181
|
{ flags: '-n, --name', arg: '<name>', description: 'Project name (defaults to directory name)' },
|
|
182
|
-
{ flags: '-t, --template', arg: workflowTemplates.map(t => t.id).join('|'), description: 'Workflow template', defaultValue: '
|
|
182
|
+
{ flags: '-t, --template', arg: workflowTemplates.map(t => t.id).join('|'), description: 'Workflow template', defaultValue: 'sequential' },
|
|
183
183
|
{ flags: '-f, --format', arg: 'esm|cjs', description: 'Module format', defaultValue: 'esm' },
|
|
184
184
|
{ flags: '-y, --yes', description: 'Skip prompts, use defaults' },
|
|
185
185
|
{ flags: '--install / --no-install', description: 'Run npm install after scaffolding' },
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core metadata extractor.
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime-accessible arrays and objects for data types, strategies,
|
|
5
|
+
* reserved names, templates, and package exports — derived from the actual
|
|
6
|
+
* source constants so documentation stays in sync automatically.
|
|
7
|
+
*/
|
|
8
|
+
import { RESERVED_NODE_NAMES, RESERVED_PORT_NAMES, SCOPED_PORT_NAMES, EXECUTION_STRATEGIES, BRANCHING_STRATEGIES, VALID_NODE_COLORS } from '../../constants.js';
|
|
9
|
+
import { type WorkflowTemplate, type NodeTemplate } from '../../cli/templates/index.js';
|
|
10
|
+
/** All supported port data types (runtime array, mirrors TDataType union). */
|
|
11
|
+
export declare const DATA_TYPES: readonly ["STRING", "NUMBER", "BOOLEAN", "OBJECT", "ARRAY", "FUNCTION", "STEP", "ANY"];
|
|
12
|
+
/** All supported merge strategies (runtime array, mirrors TMergeStrategy union). */
|
|
13
|
+
export declare const MERGE_STRATEGIES: readonly ["FIRST", "LAST", "COLLECT", "MERGE", "CONCAT"];
|
|
14
|
+
/** All supported branching strategies (runtime array, mirrors TBranchingStrategy union). */
|
|
15
|
+
export declare const BRANCHING_STRATEGY_VALUES: readonly ["value-based", "exception-based", "none"];
|
|
16
|
+
/** All supported execution strategies (runtime array, mirrors TExecuteWhen union). */
|
|
17
|
+
export declare const EXECUTION_STRATEGY_VALUES: readonly ["CONJUNCTION", "DISJUNCTION", "CUSTOM"];
|
|
18
|
+
export { RESERVED_NODE_NAMES, RESERVED_PORT_NAMES, SCOPED_PORT_NAMES };
|
|
19
|
+
export { EXECUTION_STRATEGIES, BRANCHING_STRATEGIES, VALID_NODE_COLORS };
|
|
20
|
+
/** Summary of a workflow template (without the generate function). */
|
|
21
|
+
export interface TemplateSummary {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
category: string;
|
|
26
|
+
}
|
|
27
|
+
/** All registered workflow templates (id, name, description, category). */
|
|
28
|
+
export declare const WORKFLOW_TEMPLATES: TemplateSummary[];
|
|
29
|
+
/** All registered node templates (id, name, description, category). */
|
|
30
|
+
export declare const NODE_TEMPLATES: TemplateSummary[];
|
|
31
|
+
export type { WorkflowTemplate, NodeTemplate };
|
|
32
|
+
/** All named export subpaths from @synergenius/flow-weaver/package.json. */
|
|
33
|
+
export declare const PACKAGE_EXPORTS: readonly [{
|
|
34
|
+
readonly subpath: ".";
|
|
35
|
+
readonly description: "Core library (parser, validator, compiler)";
|
|
36
|
+
}, {
|
|
37
|
+
readonly subpath: "./runtime";
|
|
38
|
+
readonly description: "Workflow runtime executor";
|
|
39
|
+
}, {
|
|
40
|
+
readonly subpath: "./built-in-nodes";
|
|
41
|
+
readonly description: "Standard node type library";
|
|
42
|
+
}, {
|
|
43
|
+
readonly subpath: "./diagram";
|
|
44
|
+
readonly description: "Diagram rendering (SVG/Mermaid)";
|
|
45
|
+
}, {
|
|
46
|
+
readonly subpath: "./describe";
|
|
47
|
+
readonly description: "Workflow description formatter";
|
|
48
|
+
}, {
|
|
49
|
+
readonly subpath: "./doc-metadata";
|
|
50
|
+
readonly description: "Documentation metadata extractors";
|
|
51
|
+
}, {
|
|
52
|
+
readonly subpath: "./docs";
|
|
53
|
+
readonly description: "Documentation generation utilities";
|
|
54
|
+
}, {
|
|
55
|
+
readonly subpath: "./ast";
|
|
56
|
+
readonly description: "AST type definitions and builders";
|
|
57
|
+
}, {
|
|
58
|
+
readonly subpath: "./api";
|
|
59
|
+
readonly description: "Public API (parseWorkflow, validateWorkflow, etc.)";
|
|
60
|
+
}, {
|
|
61
|
+
readonly subpath: "./diff";
|
|
62
|
+
readonly description: "Workflow semantic diff engine";
|
|
63
|
+
}, {
|
|
64
|
+
readonly subpath: "./editor";
|
|
65
|
+
readonly description: "Editor completions and diagnostics";
|
|
66
|
+
}, {
|
|
67
|
+
readonly subpath: "./browser";
|
|
68
|
+
readonly description: "Browser-compatible JSDoc port sync";
|
|
69
|
+
}, {
|
|
70
|
+
readonly subpath: "./generated-branding";
|
|
71
|
+
readonly description: "Generated branding configuration";
|
|
72
|
+
}, {
|
|
73
|
+
readonly subpath: "./npm-packages";
|
|
74
|
+
readonly description: "NPM package metadata";
|
|
75
|
+
}, {
|
|
76
|
+
readonly subpath: "./deployment";
|
|
77
|
+
readonly description: "Deployment target configurations";
|
|
78
|
+
}, {
|
|
79
|
+
readonly subpath: "./marketplace";
|
|
80
|
+
readonly description: "Extension/pack marketplace APIs";
|
|
81
|
+
}, {
|
|
82
|
+
readonly subpath: "./testing";
|
|
83
|
+
readonly description: "Testing utilities";
|
|
84
|
+
}, {
|
|
85
|
+
readonly subpath: "./generator";
|
|
86
|
+
readonly description: "Code generation";
|
|
87
|
+
}, {
|
|
88
|
+
readonly subpath: "./constants";
|
|
89
|
+
readonly description: "Constants and reserved names";
|
|
90
|
+
}, {
|
|
91
|
+
readonly subpath: "./cli";
|
|
92
|
+
readonly description: "CLI command definitions";
|
|
93
|
+
}, {
|
|
94
|
+
readonly subpath: "./executor";
|
|
95
|
+
readonly description: "MCP workflow executor";
|
|
96
|
+
}, {
|
|
97
|
+
readonly subpath: "./context";
|
|
98
|
+
readonly description: "LLM context generation";
|
|
99
|
+
}];
|
|
100
|
+
//# sourceMappingURL=core-metadata.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core metadata extractor.
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime-accessible arrays and objects for data types, strategies,
|
|
5
|
+
* reserved names, templates, and package exports — derived from the actual
|
|
6
|
+
* source constants so documentation stays in sync automatically.
|
|
7
|
+
*/
|
|
8
|
+
import { RESERVED_NODE_NAMES, RESERVED_PORT_NAMES, SCOPED_PORT_NAMES, EXECUTION_STRATEGIES, BRANCHING_STRATEGIES, VALID_NODE_COLORS, } from '../../constants.js';
|
|
9
|
+
import { workflowTemplates, nodeTemplates, } from '../../cli/templates/index.js';
|
|
10
|
+
// ── Data Types ──────────────────────────────────────────────────────────
|
|
11
|
+
/** All supported port data types (runtime array, mirrors TDataType union). */
|
|
12
|
+
export const DATA_TYPES = [
|
|
13
|
+
'STRING',
|
|
14
|
+
'NUMBER',
|
|
15
|
+
'BOOLEAN',
|
|
16
|
+
'OBJECT',
|
|
17
|
+
'ARRAY',
|
|
18
|
+
'FUNCTION',
|
|
19
|
+
'STEP',
|
|
20
|
+
'ANY',
|
|
21
|
+
];
|
|
22
|
+
/** All supported merge strategies (runtime array, mirrors TMergeStrategy union). */
|
|
23
|
+
export const MERGE_STRATEGIES = ['FIRST', 'LAST', 'COLLECT', 'MERGE', 'CONCAT'];
|
|
24
|
+
/** All supported branching strategies (runtime array, mirrors TBranchingStrategy union). */
|
|
25
|
+
export const BRANCHING_STRATEGY_VALUES = ['value-based', 'exception-based', 'none'];
|
|
26
|
+
/** All supported execution strategies (runtime array, mirrors TExecuteWhen union). */
|
|
27
|
+
export const EXECUTION_STRATEGY_VALUES = ['CONJUNCTION', 'DISJUNCTION', 'CUSTOM'];
|
|
28
|
+
// ── Reserved Names ──────────────────────────────────────────────────────
|
|
29
|
+
export { RESERVED_NODE_NAMES, RESERVED_PORT_NAMES, SCOPED_PORT_NAMES };
|
|
30
|
+
export { EXECUTION_STRATEGIES, BRANCHING_STRATEGIES, VALID_NODE_COLORS };
|
|
31
|
+
/** All registered workflow templates (id, name, description, category). */
|
|
32
|
+
export const WORKFLOW_TEMPLATES = workflowTemplates.map(({ id, name, description, category }) => ({ id, name, description, category }));
|
|
33
|
+
/** All registered node templates (id, name, description, category). */
|
|
34
|
+
export const NODE_TEMPLATES = nodeTemplates.map(({ id, name, description, category }) => ({ id, name, description, category }));
|
|
35
|
+
// ── Package Exports ─────────────────────────────────────────────────────
|
|
36
|
+
/** All named export subpaths from @synergenius/flow-weaver/package.json. */
|
|
37
|
+
export const PACKAGE_EXPORTS = [
|
|
38
|
+
{ subpath: '.', description: 'Core library (parser, validator, compiler)' },
|
|
39
|
+
{ subpath: './runtime', description: 'Workflow runtime executor' },
|
|
40
|
+
{ subpath: './built-in-nodes', description: 'Standard node type library' },
|
|
41
|
+
{ subpath: './diagram', description: 'Diagram rendering (SVG/Mermaid)' },
|
|
42
|
+
{ subpath: './describe', description: 'Workflow description formatter' },
|
|
43
|
+
{ subpath: './doc-metadata', description: 'Documentation metadata extractors' },
|
|
44
|
+
{ subpath: './docs', description: 'Documentation generation utilities' },
|
|
45
|
+
{ subpath: './ast', description: 'AST type definitions and builders' },
|
|
46
|
+
{ subpath: './api', description: 'Public API (parseWorkflow, validateWorkflow, etc.)' },
|
|
47
|
+
{ subpath: './diff', description: 'Workflow semantic diff engine' },
|
|
48
|
+
{ subpath: './editor', description: 'Editor completions and diagnostics' },
|
|
49
|
+
{ subpath: './browser', description: 'Browser-compatible JSDoc port sync' },
|
|
50
|
+
{ subpath: './generated-branding', description: 'Generated branding configuration' },
|
|
51
|
+
{ subpath: './npm-packages', description: 'NPM package metadata' },
|
|
52
|
+
{ subpath: './deployment', description: 'Deployment target configurations' },
|
|
53
|
+
{ subpath: './marketplace', description: 'Extension/pack marketplace APIs' },
|
|
54
|
+
{ subpath: './testing', description: 'Testing utilities' },
|
|
55
|
+
{ subpath: './generator', description: 'Code generation' },
|
|
56
|
+
{ subpath: './constants', description: 'Constants and reserved names' },
|
|
57
|
+
{ subpath: './cli', description: 'CLI command definitions' },
|
|
58
|
+
{ subpath: './executor', description: 'MCP workflow executor' },
|
|
59
|
+
{ subpath: './context', description: 'LLM context generation' },
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=core-metadata.js.map
|
|
@@ -7,4 +7,6 @@ export type { TValidationCodeDoc } from './extractors/error-codes.js';
|
|
|
7
7
|
export { extractGrammarEBNF, extractTerminals } from './extractors/grammar-rules.js';
|
|
8
8
|
export type { TGrammarGroupDoc, TTerminalDoc } from './extractors/grammar-rules.js';
|
|
9
9
|
export type { TMcpToolDoc, TMcpToolParam, TPluginApiFieldDoc, TCliCommandDoc, TCliOptionDoc } from './types.js';
|
|
10
|
+
export { DATA_TYPES, MERGE_STRATEGIES, BRANCHING_STRATEGY_VALUES, EXECUTION_STRATEGY_VALUES, RESERVED_NODE_NAMES, RESERVED_PORT_NAMES, SCOPED_PORT_NAMES, EXECUTION_STRATEGIES, BRANCHING_STRATEGIES, VALID_NODE_COLORS, WORKFLOW_TEMPLATES, NODE_TEMPLATES, PACKAGE_EXPORTS, } from './extractors/core-metadata.js';
|
|
11
|
+
export type { TemplateSummary } from './extractors/core-metadata.js';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,4 +4,6 @@ export { PLUGIN_DEFINITION_FIELDS, PLUGIN_CAPABILITIES, PLUGIN_COMPONENT_CONFIG_
|
|
|
4
4
|
export { ALL_ANNOTATIONS, PORT_MODIFIERS, NODE_MODIFIERS, } from './extractors/annotations.js';
|
|
5
5
|
export { VALIDATION_CODES } from './extractors/error-codes.js';
|
|
6
6
|
export { extractGrammarEBNF, extractTerminals } from './extractors/grammar-rules.js';
|
|
7
|
+
// Core metadata — data types, strategies, reserved names, templates, package exports
|
|
8
|
+
export { DATA_TYPES, MERGE_STRATEGIES, BRANCHING_STRATEGY_VALUES, EXECUTION_STRATEGY_VALUES, RESERVED_NODE_NAMES, RESERVED_PORT_NAMES, SCOPED_PORT_NAMES, EXECUTION_STRATEGIES, BRANCHING_STRATEGIES, VALID_NODE_COLORS, WORKFLOW_TEMPLATES, NODE_TEMPLATES, PACKAGE_EXPORTS, } from './extractors/core-metadata.js';
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.22.
|
|
1
|
+
export declare const VERSION = "0.22.1";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
package/package.json
CHANGED