@xyne/workflow-sdk 2.8.0 → 3.0.0

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 (55) hide show
  1. package/dist/agents/agent-step.d.ts +6 -6
  2. package/dist/client/workflow-client.d.ts.map +1 -1
  3. package/dist/client/workflow-client.js +2 -6
  4. package/dist/client/workflow-client.js.map +1 -1
  5. package/dist/common/attachment.d.ts +25 -0
  6. package/dist/common/attachment.d.ts.map +1 -1
  7. package/dist/common/attachment.js +50 -0
  8. package/dist/common/attachment.js.map +1 -1
  9. package/dist/common/index.d.ts +3 -1
  10. package/dist/common/index.d.ts.map +1 -1
  11. package/dist/common/index.js +2 -1
  12. package/dist/common/index.js.map +1 -1
  13. package/dist/common/validate-payload.d.ts +25 -0
  14. package/dist/common/validate-payload.d.ts.map +1 -0
  15. package/dist/common/validate-payload.js +74 -0
  16. package/dist/common/validate-payload.js.map +1 -0
  17. package/dist/engine/available-context.d.ts +1 -1
  18. package/dist/engine/available-context.d.ts.map +1 -1
  19. package/dist/engine/available-context.js +36 -3
  20. package/dist/engine/available-context.js.map +1 -1
  21. package/dist/engine/config-validator.js +1 -1
  22. package/dist/engine/config-validator.js.map +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/router/workflow-router.d.ts.map +1 -1
  27. package/dist/router/workflow-router.js +2 -20
  28. package/dist/router/workflow-router.js.map +1 -1
  29. package/dist/runtime/workflow-runtime.d.ts +7 -5
  30. package/dist/runtime/workflow-runtime.d.ts.map +1 -1
  31. package/dist/runtime/workflow-runtime.js +12 -47
  32. package/dist/runtime/workflow-runtime.js.map +1 -1
  33. package/dist/steps/base-step.d.ts +10 -0
  34. package/dist/steps/base-step.d.ts.map +1 -1
  35. package/dist/steps/base-step.js +16 -0
  36. package/dist/steps/base-step.js.map +1 -1
  37. package/dist/steps/builtin/conditional.step.d.ts +38 -0
  38. package/dist/steps/builtin/conditional.step.d.ts.map +1 -1
  39. package/dist/steps/builtin/conditional.step.js +17 -6
  40. package/dist/steps/builtin/conditional.step.js.map +1 -1
  41. package/dist/steps/builtin/http-request.step.d.ts +2 -2
  42. package/dist/steps/builtin/parallel.step.d.ts +88 -34
  43. package/dist/steps/builtin/parallel.step.d.ts.map +1 -1
  44. package/dist/steps/builtin/parallel.step.js +23 -28
  45. package/dist/steps/builtin/parallel.step.js.map +1 -1
  46. package/dist/steps/builtin/switch.step.d.ts +37 -0
  47. package/dist/steps/builtin/switch.step.d.ts.map +1 -1
  48. package/dist/steps/builtin/switch.step.js +15 -6
  49. package/dist/steps/builtin/switch.step.js.map +1 -1
  50. package/dist/steps/builtin/wait.step.d.ts +12 -12
  51. package/dist/triggers/builtin/default-manual-trigger.d.ts +12 -86
  52. package/dist/triggers/builtin/default-manual-trigger.d.ts.map +1 -1
  53. package/dist/triggers/builtin/default-manual-trigger.js +14 -40
  54. package/dist/triggers/builtin/default-manual-trigger.js.map +1 -1
  55. package/package.json +1 -1
@@ -16,7 +16,7 @@
16
16
  * paused execution's PausePath survives label edits.
17
17
  */
18
18
  import { z } from 'zod';
19
- import { BaseControlFlowStep } from '../base-step.js';
19
+ import { BaseControlFlowStep, collectBranchSteps } from '../base-step.js';
20
20
  import { BuiltinStepType } from '../../types/known-types.js';
21
21
  import { ConditionSchema } from '../../types/workflow-config.js';
22
22
  import { ConditionEvaluator } from '../../engine/condition-evaluator.js';
@@ -37,6 +37,7 @@ const SwitchStepOutputSchema = z.object({
37
37
  branch: z.string(),
38
38
  caseIndex: z.number().int().nullable(),
39
39
  label: z.string().nullable(),
40
+ branches: z.record(z.object({ steps: z.record(z.object({ output: z.record(z.unknown()) })) })),
40
41
  });
41
42
  // ─── Step ───
42
43
  const DEFAULT_BRANCH_KEY = 'default';
@@ -73,20 +74,28 @@ export class SwitchStep extends BaseControlFlowStep {
73
74
  const entry = config.cases[i];
74
75
  if (evaluator.evaluate(entry.condition, ctx.workflow)) {
75
76
  const branchKey = caseBranchKey(i);
76
- if (entry.steps.length > 0) {
77
- await ctx.walkBranch(entry.steps, ctx.workflow, branchKey);
77
+ const branchSteps = entry.steps;
78
+ if (branchSteps.length > 0) {
79
+ await ctx.walkBranch(branchSteps, ctx.workflow, branchKey);
78
80
  }
79
81
  return {
80
82
  branch: branchKey,
81
83
  caseIndex: i,
82
84
  label: entry.label ?? null,
85
+ branches: { [branchKey]: { steps: collectBranchSteps(branchSteps, ctx.workflow) } },
83
86
  };
84
87
  }
85
88
  }
86
- if (config.default.length > 0) {
87
- await ctx.walkBranch(config.default, ctx.workflow, DEFAULT_BRANCH_KEY);
89
+ const defaultSteps = config.default;
90
+ if (defaultSteps.length > 0) {
91
+ await ctx.walkBranch(defaultSteps, ctx.workflow, DEFAULT_BRANCH_KEY);
88
92
  }
89
- return { branch: DEFAULT_BRANCH_KEY, caseIndex: null, label: null };
93
+ return {
94
+ branch: DEFAULT_BRANCH_KEY,
95
+ caseIndex: null,
96
+ label: null,
97
+ branches: { [DEFAULT_BRANCH_KEY]: { steps: collectBranchSteps(defaultSteps, ctx.workflow) } },
98
+ };
90
99
  }
91
100
  }
92
101
  //# sourceMappingURL=switch.step.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.step.js","sourceRoot":"","sources":["../../../src/steps/builtin/switch.step.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,iBAAiB;AAEjB,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,eAAe;SACvB,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AAC,kBAAkB,CAAC,EAAE,EAAE,KAAK,EAAE,kBAAkB,CAAC,YAAY,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE;SAC9F,CAAC;IACJ,CAAC;CACF"}
@@ -123,9 +123,9 @@ export declare const WaitStepConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
123
123
  type: "number";
124
124
  name: string;
125
125
  label: string;
126
- required?: boolean | undefined;
127
126
  min?: number | undefined;
128
127
  max?: number | undefined;
128
+ required?: boolean | undefined;
129
129
  description?: string | undefined;
130
130
  placeholder?: string | undefined;
131
131
  defaultValue?: number | undefined;
@@ -133,9 +133,9 @@ export declare const WaitStepConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
133
133
  type: "number";
134
134
  name: string;
135
135
  label: string;
136
- required?: boolean | undefined;
137
136
  min?: number | undefined;
138
137
  max?: number | undefined;
138
+ required?: boolean | undefined;
139
139
  description?: string | undefined;
140
140
  placeholder?: string | undefined;
141
141
  defaultValue?: number | undefined;
@@ -229,9 +229,9 @@ export declare const WaitStepConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
229
229
  type: "number";
230
230
  name: string;
231
231
  label: string;
232
- required?: boolean | undefined;
233
232
  min?: number | undefined;
234
233
  max?: number | undefined;
234
+ required?: boolean | undefined;
235
235
  description?: string | undefined;
236
236
  placeholder?: string | undefined;
237
237
  defaultValue?: number | undefined;
@@ -279,9 +279,9 @@ export declare const WaitStepConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
279
279
  type: "number";
280
280
  name: string;
281
281
  label: string;
282
- required?: boolean | undefined;
283
282
  min?: number | undefined;
284
283
  max?: number | undefined;
284
+ required?: boolean | undefined;
285
285
  description?: string | undefined;
286
286
  placeholder?: string | undefined;
287
287
  defaultValue?: number | undefined;
@@ -358,9 +358,9 @@ export declare const WaitStepConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
358
358
  type: "number";
359
359
  name: string;
360
360
  label: string;
361
- required?: boolean | undefined;
362
361
  min?: number | undefined;
363
362
  max?: number | undefined;
363
+ required?: boolean | undefined;
364
364
  description?: string | undefined;
365
365
  placeholder?: string | undefined;
366
366
  defaultValue?: number | undefined;
@@ -425,9 +425,9 @@ export declare const WaitStepConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
425
425
  type: "number";
426
426
  name: string;
427
427
  label: string;
428
- required?: boolean | undefined;
429
428
  min?: number | undefined;
430
429
  max?: number | undefined;
430
+ required?: boolean | undefined;
431
431
  description?: string | undefined;
432
432
  placeholder?: string | undefined;
433
433
  defaultValue?: number | undefined;
@@ -571,9 +571,9 @@ export declare class WaitStep extends BaseActionStep<typeof WaitStepConfigSchema
571
571
  type: "number";
572
572
  name: string;
573
573
  label: string;
574
- required?: boolean | undefined;
575
574
  min?: number | undefined;
576
575
  max?: number | undefined;
576
+ required?: boolean | undefined;
577
577
  description?: string | undefined;
578
578
  placeholder?: string | undefined;
579
579
  defaultValue?: number | undefined;
@@ -581,9 +581,9 @@ export declare class WaitStep extends BaseActionStep<typeof WaitStepConfigSchema
581
581
  type: "number";
582
582
  name: string;
583
583
  label: string;
584
- required?: boolean | undefined;
585
584
  min?: number | undefined;
586
585
  max?: number | undefined;
586
+ required?: boolean | undefined;
587
587
  description?: string | undefined;
588
588
  placeholder?: string | undefined;
589
589
  defaultValue?: number | undefined;
@@ -677,9 +677,9 @@ export declare class WaitStep extends BaseActionStep<typeof WaitStepConfigSchema
677
677
  type: "number";
678
678
  name: string;
679
679
  label: string;
680
- required?: boolean | undefined;
681
680
  min?: number | undefined;
682
681
  max?: number | undefined;
682
+ required?: boolean | undefined;
683
683
  description?: string | undefined;
684
684
  placeholder?: string | undefined;
685
685
  defaultValue?: number | undefined;
@@ -727,9 +727,9 @@ export declare class WaitStep extends BaseActionStep<typeof WaitStepConfigSchema
727
727
  type: "number";
728
728
  name: string;
729
729
  label: string;
730
- required?: boolean | undefined;
731
730
  min?: number | undefined;
732
731
  max?: number | undefined;
732
+ required?: boolean | undefined;
733
733
  description?: string | undefined;
734
734
  placeholder?: string | undefined;
735
735
  defaultValue?: number | undefined;
@@ -806,9 +806,9 @@ export declare class WaitStep extends BaseActionStep<typeof WaitStepConfigSchema
806
806
  type: "number";
807
807
  name: string;
808
808
  label: string;
809
- required?: boolean | undefined;
810
809
  min?: number | undefined;
811
810
  max?: number | undefined;
811
+ required?: boolean | undefined;
812
812
  description?: string | undefined;
813
813
  placeholder?: string | undefined;
814
814
  defaultValue?: number | undefined;
@@ -873,9 +873,9 @@ export declare class WaitStep extends BaseActionStep<typeof WaitStepConfigSchema
873
873
  type: "number";
874
874
  name: string;
875
875
  label: string;
876
- required?: boolean | undefined;
877
876
  min?: number | undefined;
878
877
  max?: number | undefined;
878
+ required?: boolean | undefined;
879
879
  description?: string | undefined;
880
880
  placeholder?: string | undefined;
881
881
  defaultValue?: number | undefined;
@@ -3,67 +3,21 @@ import { ManualTrigger } from '../manual-trigger.js';
3
3
  import { BuiltinTriggerType } from '../../types/known-types.js';
4
4
  import { TriggerCategory } from '../../types/categories.js';
5
5
  /**
6
- * Attachments slot — declares that the manual trigger accepts file uploads
7
- * alongside the JSON-schema-typed fields. When present, the UI renders an
8
- * upload zone above the schema form; the files land in
9
- * `context.trigger.attachments` as {@link Attachment} references.
6
+ * Default manual trigger fires via `runtime.triggerManual()`.
7
+ *
8
+ * The author-supplied `inputSchema` fully describes the payload, including any
9
+ * file inputs: a document is just a typed field carrying `format: 'attachment'`
10
+ * (single) or an array of those (multiple). There is no separate attachments
11
+ * slot — uploaded files become ordinary named fields, so they're referenced by
12
+ * name (`{{trigger.pan}}`) and validated by the schema like any other input.
10
13
  */
11
- export declare const ManualTriggerAttachmentsSchema: z.ZodObject<{
12
- accept: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
- maxSize: z.ZodOptional<z.ZodNumber>;
14
- maxCount: z.ZodOptional<z.ZodNumber>;
15
- required: z.ZodDefault<z.ZodBoolean>;
16
- }, "strip", z.ZodTypeAny, {
17
- required: boolean;
18
- accept?: string[] | undefined;
19
- maxSize?: number | undefined;
20
- maxCount?: number | undefined;
21
- }, {
22
- accept?: string[] | undefined;
23
- maxSize?: number | undefined;
24
- maxCount?: number | undefined;
25
- required?: boolean | undefined;
26
- }>;
27
- export type ManualTriggerAttachmentsConfig = z.infer<typeof ManualTriggerAttachmentsSchema>;
28
14
  export declare const DefaultManualTriggerConfigSchema: z.ZodObject<{
29
15
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
- attachments: z.ZodOptional<z.ZodObject<{
31
- accept: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
- maxSize: z.ZodOptional<z.ZodNumber>;
33
- maxCount: z.ZodOptional<z.ZodNumber>;
34
- required: z.ZodDefault<z.ZodBoolean>;
35
- }, "strip", z.ZodTypeAny, {
36
- required: boolean;
37
- accept?: string[] | undefined;
38
- maxSize?: number | undefined;
39
- maxCount?: number | undefined;
40
- }, {
41
- accept?: string[] | undefined;
42
- maxSize?: number | undefined;
43
- maxCount?: number | undefined;
44
- required?: boolean | undefined;
45
- }>>;
46
16
  }, "strip", z.ZodTypeAny, {
47
17
  inputSchema?: Record<string, unknown> | undefined;
48
- attachments?: {
49
- required: boolean;
50
- accept?: string[] | undefined;
51
- maxSize?: number | undefined;
52
- maxCount?: number | undefined;
53
- } | undefined;
54
18
  }, {
55
19
  inputSchema?: Record<string, unknown> | undefined;
56
- attachments?: {
57
- accept?: string[] | undefined;
58
- maxSize?: number | undefined;
59
- maxCount?: number | undefined;
60
- required?: boolean | undefined;
61
- } | undefined;
62
20
  }>;
63
- /**
64
- * Default manual trigger — fires via `runtime.triggerManual()`.
65
- * Accepts any JSON payload as input plus optional file attachments.
66
- */
67
21
  export declare class DefaultManualTrigger extends ManualTrigger<typeof DefaultManualTriggerConfigSchema> {
68
22
  readonly type = BuiltinTriggerType.MANUAL;
69
23
  readonly name = "Manual Trigger";
@@ -72,47 +26,19 @@ export declare class DefaultManualTrigger extends ManualTrigger<typeof DefaultMa
72
26
  readonly icon = "cursor";
73
27
  readonly configSchema: z.ZodObject<{
74
28
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
- attachments: z.ZodOptional<z.ZodObject<{
76
- accept: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
- maxSize: z.ZodOptional<z.ZodNumber>;
78
- maxCount: z.ZodOptional<z.ZodNumber>;
79
- required: z.ZodDefault<z.ZodBoolean>;
80
- }, "strip", z.ZodTypeAny, {
81
- required: boolean;
82
- accept?: string[] | undefined;
83
- maxSize?: number | undefined;
84
- maxCount?: number | undefined;
85
- }, {
86
- accept?: string[] | undefined;
87
- maxSize?: number | undefined;
88
- maxCount?: number | undefined;
89
- required?: boolean | undefined;
90
- }>>;
91
29
  }, "strip", z.ZodTypeAny, {
92
30
  inputSchema?: Record<string, unknown> | undefined;
93
- attachments?: {
94
- required: boolean;
95
- accept?: string[] | undefined;
96
- maxSize?: number | undefined;
97
- maxCount?: number | undefined;
98
- } | undefined;
99
31
  }, {
100
32
  inputSchema?: Record<string, unknown> | undefined;
101
- attachments?: {
102
- accept?: string[] | undefined;
103
- maxSize?: number | undefined;
104
- maxCount?: number | undefined;
105
- required?: boolean | undefined;
106
- } | undefined;
107
33
  }>;
108
34
  readonly outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
109
35
  decorateConfigSchema(jsonSchema: Record<string, unknown>): Record<string, unknown>;
110
36
  /**
111
- * The author-supplied `inputSchema` describes the manual trigger payload
112
- * exactly. Whatever they send via `triggerManual(workflowId, payload)`
113
- * is merged into `context.trigger`, so the variable picker should see
114
- * those typed fields directly. Falls back to a permissive object when
115
- * the author hasn't declared a schema.
37
+ * The `inputSchema` *is* the shape of `context.trigger` — whatever the author
38
+ * declared (typed fields and attachment fields alike) is what the variable
39
+ * picker sees. Attachment fields already carry `format: 'attachment'`, so the
40
+ * picker types them as `attachment` / `attachment[]` with no special-casing
41
+ * here. Falls back to a permissive object when no schema was declared.
116
42
  */
117
43
  resolveOutputJsonSchema(config: Record<string, unknown>): Record<string, unknown>;
118
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"default-manual-trigger.d.ts","sourceRoot":"","sources":["../../../src/triggers/builtin/default-manual-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EASzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE5F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3C,CAAC;AAEH;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,OAAO,gCAAgC,CAAC;IAC9F,SAAkB,IAAI,6BAA6B;IACnD,SAAkB,IAAI,oBAAoB;IAC1C,SAAkB,WAAW,uDAAuD;IACpF,SAAkB,QAAQ,0BAA0B;IACpD,SAAkB,IAAI,YAAY;IAClC,SAAkB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoC;IAClE,SAAkB,YAAY,yCAAyB;IAE9C,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQ3F;;;;;;OAMG;IACM,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CA0B3F"}
1
+ {"version":3,"file":"default-manual-trigger.d.ts","sourceRoot":"","sources":["../../../src/triggers/builtin/default-manual-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC;;;;;;EAG3C,CAAC;AAEH,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,OAAO,gCAAgC,CAAC;IAC9F,SAAkB,IAAI,6BAA6B;IACnD,SAAkB,IAAI,oBAAoB;IAC1C,SAAkB,WAAW,uDAAuD;IACpF,SAAkB,QAAQ,0BAA0B;IACpD,SAAkB,IAAI,YAAY;IAClC,SAAkB,YAAY;;;;;;OAAoC;IAClE,SAAkB,YAAY,yCAAyB;IAE9C,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQ3F;;;;;;OAMG;IACM,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAY3F"}
@@ -2,33 +2,19 @@ import { z } from 'zod';
2
2
  import { ManualTrigger } from '../manual-trigger.js';
3
3
  import { BuiltinTriggerType } from '../../types/known-types.js';
4
4
  import { TriggerCategory } from '../../types/categories.js';
5
- import { ATTACHMENT_ARRAY_JSON_SCHEMA } from '../../common/attachment.js';
6
5
  /**
7
- * Attachments slot — declares that the manual trigger accepts file uploads
8
- * alongside the JSON-schema-typed fields. When present, the UI renders an
9
- * upload zone above the schema form; the files land in
10
- * `context.trigger.attachments` as {@link Attachment} references.
6
+ * Default manual trigger fires via `runtime.triggerManual()`.
7
+ *
8
+ * The author-supplied `inputSchema` fully describes the payload, including any
9
+ * file inputs: a document is just a typed field carrying `format: 'attachment'`
10
+ * (single) or an array of those (multiple). There is no separate attachments
11
+ * slot — uploaded files become ordinary named fields, so they're referenced by
12
+ * name (`{{trigger.pan}}`) and validated by the schema like any other input.
11
13
  */
12
- export const ManualTriggerAttachmentsSchema = z.object({
13
- accept: z.array(z.string()).optional()
14
- .describe('Allowed MIME types or wildcards, e.g. ["application/pdf", "image/*"]'),
15
- maxSize: z.number().int().positive().optional()
16
- .describe('Max bytes per file'),
17
- maxCount: z.number().int().positive().optional()
18
- .describe('Max number of files'),
19
- required: z.boolean().default(false)
20
- .describe('Whether at least one attachment is required to trigger the workflow'),
21
- });
22
14
  export const DefaultManualTriggerConfigSchema = z.object({
23
15
  inputSchema: z.record(z.unknown()).optional()
24
- .describe('JSON Schema describing the expected manual input. The UI renders a form from this when triggering'),
25
- attachments: ManualTriggerAttachmentsSchema.optional()
26
- .describe('When set, the trigger UI shows a file upload area; uploaded files land in context.trigger.attachments'),
16
+ .describe('JSON Schema describing the expected manual input (incl. attachment fields). The UI renders a form from this when triggering'),
27
17
  });
28
- /**
29
- * Default manual trigger — fires via `runtime.triggerManual()`.
30
- * Accepts any JSON payload as input plus optional file attachments.
31
- */
32
18
  export class DefaultManualTrigger extends ManualTrigger {
33
19
  type = BuiltinTriggerType.MANUAL;
34
20
  name = 'Manual Trigger';
@@ -45,11 +31,11 @@ export class DefaultManualTrigger extends ManualTrigger {
45
31
  return jsonSchema;
46
32
  }
47
33
  /**
48
- * The author-supplied `inputSchema` describes the manual trigger payload
49
- * exactly. Whatever they send via `triggerManual(workflowId, payload)`
50
- * is merged into `context.trigger`, so the variable picker should see
51
- * those typed fields directly. Falls back to a permissive object when
52
- * the author hasn't declared a schema.
34
+ * The `inputSchema` *is* the shape of `context.trigger` — whatever the author
35
+ * declared (typed fields and attachment fields alike) is what the variable
36
+ * picker sees. Attachment fields already carry `format: 'attachment'`, so the
37
+ * picker types them as `attachment` / `attachment[]` with no special-casing
38
+ * here. Falls back to a permissive object when no schema was declared.
53
39
  */
54
40
  resolveOutputJsonSchema(config) {
55
41
  const inputSchema = config['inputSchema'];
@@ -57,21 +43,9 @@ export class DefaultManualTrigger extends ManualTrigger {
57
43
  typeof inputSchema === 'object' &&
58
44
  !Array.isArray(inputSchema) &&
59
45
  Object.keys(inputSchema).length > 0;
60
- const base = hasInputSchema
46
+ return hasInputSchema
61
47
  ? { ...inputSchema }
62
48
  : { type: 'object', additionalProperties: true };
63
- // When the trigger declares an attachments slot, uploaded files land in
64
- // `context.trigger.attachments` at runtime — so expose them in the output
65
- // schema as an attachment[] (typed so the variable picker offers
66
- // `{{trigger.attachments}}` to attachment-typed inputs).
67
- if (config['attachments']) {
68
- const props = {
69
- ...(base['properties'] ?? {}),
70
- attachments: ATTACHMENT_ARRAY_JSON_SCHEMA,
71
- };
72
- return { ...base, type: 'object', properties: props };
73
- }
74
- return base;
75
49
  }
76
50
  }
77
51
  //# sourceMappingURL=default-manual-trigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-manual-trigger.js","sourceRoot":"","sources":["../../../src/triggers/builtin/default-manual-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACnC,QAAQ,CAAC,sEAAsE,CAAC;IACnF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,C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QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACM,uBAAuB,CAAC,MAA+B;QAC9D,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QAC1C,MAAM,cAAc,GAClB,WAAW;YACX,OAAO,WAAW,KAAK,QAAQ;YAC/B,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;YAC3B,MAAM,CAAC,IAAI,CAAC,WAAsC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QAEjE,MAAM,IAAI,GAA4B,cAAc;YAClD,CAAC,CAAC,EAAE,GAAI,WAAuC,EAAE;YACjD,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;QAEnD,wEAAwE;QACxE,0EAA0E;QAC1E,iEAAiE;QACjE,yDAAyD;QACzD,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAG;gBACZ,GAAG,CAAE,IAAI,CAAC,YAAY,CAAyC,IAAI,EAAE,CAAC;gBACtE,WAAW,EAAE,4BAA4B;aAC1C,CAAC;YACF,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;QACxD,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
1
+ {"version":3,"file":"default-manual-trigger.js","sourceRoot":"","sources":["../../../src/triggers/builtin/default-manual-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyne/workflow-sdk",
3
- "version": "2.8.0",
3
+ "version": "3.0.0",
4
4
  "description": "Workflow engine SDK — steps, triggers, executor, agents, and a framework-agnostic HTTP router.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {