@synergenius/flow-weaver 0.30.3 → 0.30.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.
@@ -1118,6 +1118,45 @@ function generateWorkflowJSDoc(ast, options = {}) {
1118
1118
  line += ` period="${t.period}"`;
1119
1119
  lines.push(line);
1120
1120
  }
1121
+ // CI/CD annotations round-trip (from pack-contributed tag handlers)
1122
+ if (ast.options?.cicd) {
1123
+ const cicd = ast.options.cicd;
1124
+ if (cicd.triggers && Array.isArray(cicd.triggers)) {
1125
+ for (const trigger of cicd.triggers) {
1126
+ const parts = [String(trigger.type || '')];
1127
+ if (trigger.branches)
1128
+ parts.push(`branches="${trigger.branches}"`);
1129
+ if (trigger.types)
1130
+ parts.push(`types="${trigger.types}"`);
1131
+ if (trigger.pattern)
1132
+ parts.push(`pattern="${trigger.pattern}"`);
1133
+ if (trigger.cron)
1134
+ parts.push(`cron="${trigger.cron}"`);
1135
+ lines.push(` * @trigger ${parts.join(' ')}`);
1136
+ }
1137
+ }
1138
+ if (cicd.secrets && Array.isArray(cicd.secrets)) {
1139
+ for (const secret of cicd.secrets) {
1140
+ let line = ` * @secret ${secret.name}`;
1141
+ if (secret.description)
1142
+ line += ` - ${secret.description}`;
1143
+ lines.push(line);
1144
+ }
1145
+ }
1146
+ if (cicd.runner) {
1147
+ lines.push(` * @runner ${cicd.runner}`);
1148
+ }
1149
+ if (cicd.caches && Array.isArray(cicd.caches)) {
1150
+ for (const cache of cicd.caches) {
1151
+ let line = ` * @cache ${cache.strategy || 'npm'}`;
1152
+ if (cache.key)
1153
+ line += ` key="${cache.key}"`;
1154
+ if (cache.path)
1155
+ line += ` path="${cache.path}"`;
1156
+ lines.push(line);
1157
+ }
1158
+ }
1159
+ }
1121
1160
  // Add name if different from function name
1122
1161
  if (ast.name && ast.name !== ast.functionName) {
1123
1162
  lines.push(` * @name ${ast.name}`);
@@ -5987,7 +5987,7 @@ var VERSION;
5987
5987
  var init_generated_version = __esm({
5988
5988
  "src/generated-version.ts"() {
5989
5989
  "use strict";
5990
- VERSION = "0.30.3";
5990
+ VERSION = "0.30.4";
5991
5991
  }
5992
5992
  });
5993
5993
 
@@ -16166,6 +16166,37 @@ function generateWorkflowJSDoc(ast, options = {}) {
16166
16166
  if (t.period) line += ` period="${t.period}"`;
16167
16167
  lines.push(line);
16168
16168
  }
16169
+ if (ast.options?.cicd) {
16170
+ const cicd = ast.options.cicd;
16171
+ if (cicd.triggers && Array.isArray(cicd.triggers)) {
16172
+ for (const trigger of cicd.triggers) {
16173
+ const parts = [String(trigger.type || "")];
16174
+ if (trigger.branches) parts.push(`branches="${trigger.branches}"`);
16175
+ if (trigger.types) parts.push(`types="${trigger.types}"`);
16176
+ if (trigger.pattern) parts.push(`pattern="${trigger.pattern}"`);
16177
+ if (trigger.cron) parts.push(`cron="${trigger.cron}"`);
16178
+ lines.push(` * @trigger ${parts.join(" ")}`);
16179
+ }
16180
+ }
16181
+ if (cicd.secrets && Array.isArray(cicd.secrets)) {
16182
+ for (const secret of cicd.secrets) {
16183
+ let line = ` * @secret ${secret.name}`;
16184
+ if (secret.description) line += ` - ${secret.description}`;
16185
+ lines.push(line);
16186
+ }
16187
+ }
16188
+ if (cicd.runner) {
16189
+ lines.push(` * @runner ${cicd.runner}`);
16190
+ }
16191
+ if (cicd.caches && Array.isArray(cicd.caches)) {
16192
+ for (const cache of cicd.caches) {
16193
+ let line = ` * @cache ${cache.strategy || "npm"}`;
16194
+ if (cache.key) line += ` key="${cache.key}"`;
16195
+ if (cache.path) line += ` path="${cache.path}"`;
16196
+ lines.push(line);
16197
+ }
16198
+ }
16199
+ }
16169
16200
  if (ast.name && ast.name !== ast.functionName) {
16170
16201
  lines.push(` * @name ${ast.name}`);
16171
16202
  }
@@ -88893,7 +88924,7 @@ function parseIntStrict(value) {
88893
88924
  // src/cli/index.ts
88894
88925
  init_logger();
88895
88926
  init_error_utils();
88896
- var version2 = true ? "0.30.3" : "0.0.0-dev";
88927
+ var version2 = true ? "0.30.4" : "0.0.0-dev";
88897
88928
  var program2 = new Command();
88898
88929
  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", () => {
88899
88930
  logger.banner(version2);
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.30.3";
1
+ export declare const VERSION = "0.30.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.30.3';
2
+ export const VERSION = '0.30.4';
3
3
  //# sourceMappingURL=generated-version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergenius/flow-weaver",
3
- "version": "0.30.3",
3
+ "version": "0.30.4",
4
4
  "description": "Flow Weaver: deterministic TypeScript workflow compiler. Define workflows with JSDoc annotations, compile to standalone functions with zero runtime dependencies.",
5
5
  "private": false,
6
6
  "type": "module",