@voyant-travel/workflows 0.107.11 → 0.109.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/README.md +7 -8
- package/dist/auth/index.d.ts +8 -56
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +8 -114
- package/dist/config.d.ts +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/driver.d.ts +7 -8
- package/dist/driver.d.ts.map +1 -1
- package/dist/driver.js +2 -2
- package/dist/events/manifest-builder.d.ts +1 -1
- package/dist/events/manifest-builder.d.ts.map +1 -1
- package/dist/events/manifest-builder.js +1 -1
- package/dist/handler/index.d.ts +0 -14
- package/dist/handler/index.d.ts.map +1 -1
- package/dist/handler/index.js +2 -3
- package/dist/http-ingest.js +4 -4
- package/dist/protocol/index.d.ts +3 -3
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/runtime/executor.d.ts +7 -19
- package/dist/runtime/executor.d.ts.map +1 -1
- package/dist/runtime/executor.js +8 -11
- package/dist/runtime/journal.d.ts +2 -4
- package/dist/runtime/journal.d.ts.map +1 -1
- package/dist/types.d.ts +1 -19
- package/dist/types.d.ts.map +1 -1
- package/dist/workflow.d.ts +10 -2
- package/dist/workflow.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/auth/index.ts +8 -125
- package/src/config.ts +2 -3
- package/src/driver.ts +9 -10
- package/src/events/manifest-builder.ts +2 -2
- package/src/handler/index.ts +2 -17
- package/src/http-ingest.ts +4 -4
- package/src/protocol/index.ts +4 -4
- package/src/runtime/executor.ts +17 -30
- package/src/runtime/journal.ts +2 -4
- package/src/types.ts +1 -19
- package/src/workflow.ts +10 -2
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
|
-
|
|
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
|
-
|
|
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 }
|