@synergenius/flow-weaver 0.17.7 → 0.17.8

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.
Files changed (52) hide show
  1. package/dist/api/parse.d.ts +5 -0
  2. package/dist/api/parse.js +4 -0
  3. package/dist/ast/types.d.ts +2 -0
  4. package/dist/cli/commands/compile.js +2 -1
  5. package/dist/cli/commands/init.js +15 -9
  6. package/dist/cli/commands/validate.js +1 -1
  7. package/dist/cli/exports.d.ts +17 -0
  8. package/dist/cli/exports.js +23 -0
  9. package/dist/cli/flow-weaver.mjs +59021 -62127
  10. package/dist/cli/templates/index.js +8 -1
  11. package/dist/extensions/index.d.ts +10 -6
  12. package/dist/extensions/index.js +11 -6
  13. package/dist/generated-version.d.ts +1 -1
  14. package/dist/generated-version.js +1 -1
  15. package/dist/generator/index.d.ts +11 -0
  16. package/dist/generator/index.js +11 -0
  17. package/dist/parser.d.ts +7 -0
  18. package/dist/parser.js +29 -0
  19. package/package.json +11 -7
  20. package/dist/extensions/cicd/base-target.d.ts +0 -110
  21. package/dist/extensions/cicd/base-target.js +0 -397
  22. package/dist/extensions/cicd/detection.d.ts +0 -33
  23. package/dist/extensions/cicd/detection.js +0 -88
  24. package/dist/extensions/cicd/docs/cicd.md +0 -395
  25. package/dist/extensions/cicd/index.d.ts +0 -15
  26. package/dist/extensions/cicd/index.js +0 -15
  27. package/dist/extensions/cicd/register.d.ts +0 -11
  28. package/dist/extensions/cicd/register.js +0 -62
  29. package/dist/extensions/cicd/rules.d.ts +0 -30
  30. package/dist/extensions/cicd/rules.js +0 -288
  31. package/dist/extensions/cicd/tag-handler.d.ts +0 -14
  32. package/dist/extensions/cicd/tag-handler.js +0 -504
  33. package/dist/extensions/cicd/templates/cicd-docker.d.ts +0 -9
  34. package/dist/extensions/cicd/templates/cicd-docker.js +0 -110
  35. package/dist/extensions/cicd/templates/cicd-matrix.d.ts +0 -9
  36. package/dist/extensions/cicd/templates/cicd-matrix.js +0 -112
  37. package/dist/extensions/cicd/templates/cicd-multi-env.d.ts +0 -9
  38. package/dist/extensions/cicd/templates/cicd-multi-env.js +0 -126
  39. package/dist/extensions/cicd/templates/cicd-test-deploy.d.ts +0 -11
  40. package/dist/extensions/cicd/templates/cicd-test-deploy.js +0 -156
  41. package/dist/extensions/inngest/dev-mode.d.ts +0 -9
  42. package/dist/extensions/inngest/dev-mode.js +0 -213
  43. package/dist/extensions/inngest/generator.d.ts +0 -53
  44. package/dist/extensions/inngest/generator.js +0 -1176
  45. package/dist/extensions/inngest/index.d.ts +0 -2
  46. package/dist/extensions/inngest/index.js +0 -2
  47. package/dist/extensions/inngest/register.d.ts +0 -6
  48. package/dist/extensions/inngest/register.js +0 -23
  49. package/dist/extensions/inngest/templates/ai-agent-durable.d.ts +0 -8
  50. package/dist/extensions/inngest/templates/ai-agent-durable.js +0 -334
  51. package/dist/extensions/inngest/templates/ai-pipeline-durable.d.ts +0 -8
  52. package/dist/extensions/inngest/templates/ai-pipeline-durable.js +0 -326
@@ -1,53 +0,0 @@
1
- /**
2
- * Inngest Deep Code Generator
3
- *
4
- * Generates Inngest function code with per-node `step.run()` wrapping,
5
- * giving each node individual durability, retries, and checkpointing.
6
- *
7
- * This is a standalone generator alongside unified.ts — it shares the
8
- * control-flow analysis layer but produces fundamentally different output:
9
- * - Local `const` variables instead of `ctx.setVariable()/getVariable()`
10
- * - `step.run()` per non-expression node for durability
11
- * - `Promise.all()` for parallel independent nodes
12
- * - Indexed `step.run()` for forEach/scoped iteration
13
- * - Branching chain flattening for multi-way routing
14
- *
15
- * @module generator/inngest
16
- */
17
- import type { TNodeTypeAST, TWorkflowAST } from '../../ast/types.js';
18
- export interface InngestGenerationOptions {
19
- /** Omit debug instrumentation for smaller output */
20
- production?: boolean;
21
- /** Inngest client ID (default: derived from workflow name) */
22
- serviceName?: string;
23
- /** Custom trigger event name (default: 'fw/<kebab-workflow>.execute') */
24
- triggerEvent?: string;
25
- /** Number of retries per function (default: 3) */
26
- retries?: number;
27
- /** Extra function config merged into createFunction() first arg */
28
- functionConfig?: Record<string, unknown>;
29
- /** When true, emit Zod schema from @param annotations */
30
- typedEvents?: boolean;
31
- /** Framework adapter for serve handler */
32
- framework?: 'next' | 'express' | 'hono' | 'fastify' | 'remix';
33
- /** When true, append serve() handler export */
34
- serveHandler?: boolean;
35
- }
36
- /**
37
- * Generate an Inngest function from a workflow AST.
38
- *
39
- * Produces a complete TypeScript module with:
40
- * - Import statements (Inngest SDK + node type functions)
41
- * - `inngest.createFunction()` with per-node `step.run()` calls
42
- * - Parallel execution via `Promise.all` where safe
43
- * - Branching via if/else for onSuccess/onFailure
44
- * - Chain flattening for sequential branching (3-way routing)
45
- * - Indexed `step.run()` for forEach iteration
46
- *
47
- * @param workflow - The workflow AST to generate from
48
- * @param nodeTypes - All available node type definitions
49
- * @param options - Generation options (service name, trigger, retries, etc.)
50
- * @returns Complete TypeScript source code string
51
- */
52
- export declare function generateInngestFunction(workflow: TWorkflowAST, nodeTypes: TNodeTypeAST[], options?: InngestGenerationOptions): string;
53
- //# sourceMappingURL=generator.d.ts.map