@voyant-travel/workflows 0.107.10 → 0.108.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.
package/src/types.ts CHANGED
@@ -3,25 +3,7 @@
3
3
 
4
4
  export type Duration = number | `${number}${"ms" | "s" | "m" | "h" | "d" | "w"}`
5
5
 
6
- /**
7
- * Cloudflare Container instance types — the set Voyant Cloud honors
8
- * for `runtime: "node"` steps. Match the sizes published at
9
- * https://developers.cloudflare.com/containers/ (as of
10
- * compat-date 2026-04-01).
11
- *
12
- * | name | vCPU | memory | disk |
13
- * | ----------- | ----- | ------- | ----- |
14
- * | lite | 1/16 | 256 MiB | 2 GB |
15
- * | basic | 1/4 | 1 GiB | 4 GB |
16
- * | standard-1 | 1/2 | 4 GiB | 8 GB |
17
- * | standard-2 | 1 | 6 GiB | 12 GB |
18
- * | standard-3 | 2 | 8 GiB | 16 GB |
19
- * | standard-4 | 4 | 12 GiB | 20 GB |
20
- *
21
- * The open `(string & {})` escape hatch accepts CF custom instance
22
- * types (up to 4 vCPU / 12 GiB / 20 GB, min 3 GiB RAM per vCPU) —
23
- * rendered as `"custom-<vcpu>-<ramGiB>"` by convention.
24
- */
6
+ /** Hosted/self-hosted Node runner profile. */
25
7
  export type MachineType =
26
8
  | "lite"
27
9
  | "basic"
package/src/workflow.ts CHANGED
@@ -31,7 +31,11 @@ export interface WorkflowConfig<TInput, TOutput> {
31
31
  concurrency?: ConcurrencyPolicy<TInput>
32
32
  retry?: RetryPolicy
33
33
  timeout?: Duration
34
- defaultRuntime?: "edge" | "node"
34
+ /**
35
+ * Workflows execute on the Node runtime. Kept as an optional field so
36
+ * existing manifests/configs can annotate the runtime explicitly.
37
+ */
38
+ defaultRuntime?: "node"
35
39
  tags?: string[]
36
40
  run: (input: TInput, ctx: WorkflowContext<TInput>) => Promise<TOutput>
37
41
  }
@@ -202,7 +206,11 @@ export interface StepContext {
202
206
  }
203
207
 
204
208
  export interface StepOptions<T = unknown> {
205
- runtime?: "edge" | "node"
209
+ /**
210
+ * Steps execute on the Node runtime. Kept as an optional no-op annotation
211
+ * for callers that already specify `runtime: "node"`.
212
+ */
213
+ runtime?: "node"
206
214
  machine?: MachineType
207
215
  timeout?: Duration
208
216
  retry?: RetryPolicy | { max: 0 }