workflow 5.0.0-beta.21 → 5.0.0-beta.23
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/docs/ai/index.mdx +1 -0
- package/docs/changelog/turbo-mode.md +1 -1
- package/docs/deploying/index.mdx +1 -0
- package/docs/errors/index.mdx +1 -44
- package/docs/foundations/index.mdx +1 -26
- package/docs/meta.json +0 -1
- package/docs/observability/index.mdx +1 -8
- package/package.json +10 -10
package/docs/ai/index.mdx
CHANGED
|
@@ -3,6 +3,7 @@ title: Building Durable AI Agents
|
|
|
3
3
|
description: Build AI agents that survive crashes, scale across requests, and maintain state with durable LLM tool-call loops.
|
|
4
4
|
type: overview
|
|
5
5
|
summary: Convert a basic AI chat app into a durable, resumable agent using Workflow SDK.
|
|
6
|
+
manualCards: true
|
|
6
7
|
related:
|
|
7
8
|
- /docs/foundations/workflows-and-steps
|
|
8
9
|
- /docs/foundations/streaming
|
|
@@ -19,7 +19,7 @@ Turbo mode removes all three costs **for the first delivery of the first invocat
|
|
|
19
19
|
|
|
20
20
|
When the handler detects the first delivery of the first invocation, it:
|
|
21
21
|
|
|
22
|
-
1. **Backgrounds `run_started`.** The event is written without awaiting; the run entity is synthesized locally from the queued run input (status `running`, `startedAt` now) so replay can begin immediately. The `run_started` round-trip overlaps replay instead of blocking it. This reuses the [resilient start](./resilient-start) contract — `run_started` carrying the run input creates the run on the fly (synthetic `run_created`) if it doesn't exist yet.
|
|
22
|
+
1. **Backgrounds `run_started`.** The event is written without awaiting; the run entity is synthesized locally from the queued run input (status `running`, `startedAt` now) so replay can begin immediately. The `run_started` round-trip overlaps replay instead of blocking it. This reuses the [resilient start](./resilient-start) contract — `run_started` carrying the run input creates the run on the fly (synthetic `run_created`) if it doesn't exist yet. Because turbo uses this `run_started` purely as a write barrier and never reads its response, it also asks the World to **skip the `run_started` event-log preload** (the list+resolve the World normally returns so a run can skip its first `events.list`). That preload would be wasted work here — and, since the first `step_started` is chained on the `run_started` barrier, trimming the `run_started` request directly shortens the wait before the first durable `step_started` (and therefore time-to-second-step). A World that ignores the hint stays correct; the runtime simply falls back to `events.list` if it ever needs the log.
|
|
23
23
|
2. **Skips the initial event-log load.** Nothing has been written, so the first replay runs against an empty log. The second loop iteration does a normal incremental load once the first step's events exist.
|
|
24
24
|
3. **Forces optimistic inline start** for that invocation, independent of `WORKFLOW_OPTIMISTIC_INLINE_START`. The step body runs immediately against locally-synthesized state; only the `step_started` network write waits for the backgrounded `run_started`.
|
|
25
25
|
|
package/docs/deploying/index.mdx
CHANGED
|
@@ -4,6 +4,7 @@ icon: Rocket
|
|
|
4
4
|
description: Deploy workflows locally, on Vercel, or anywhere using pluggable World adapters.
|
|
5
5
|
type: overview
|
|
6
6
|
summary: Learn how to deploy workflows to different environments using World adapters.
|
|
7
|
+
manualCards: true
|
|
7
8
|
related:
|
|
8
9
|
- /docs/deploying/world/local-world
|
|
9
10
|
- /docs/deploying/world/postgres-world
|
package/docs/errors/index.mdx
CHANGED
|
@@ -9,50 +9,7 @@ related:
|
|
|
9
9
|
|
|
10
10
|
Fix common mistakes when creating and executing workflows in the **Workflow SDK**.
|
|
11
11
|
|
|
12
|
-
<
|
|
13
|
-
<Card href="/docs/errors/fetch-in-workflow" title="fetch-in-workflow">
|
|
14
|
-
Learn how to use fetch in workflow functions.
|
|
15
|
-
</Card>
|
|
16
|
-
<Card href="/docs/errors/hook-conflict" title="hook-conflict">
|
|
17
|
-
Learn how to handle hook token conflicts between workflows.
|
|
18
|
-
</Card>
|
|
19
|
-
<Card href="/docs/errors/node-js-module-in-workflow" title="node-js-module-in-workflow">
|
|
20
|
-
Learn how to use Node.js modules in workflows.
|
|
21
|
-
</Card>
|
|
22
|
-
<Card href="/docs/errors/serialization-failed" title="serialization-failed">
|
|
23
|
-
Learn how to handle serialization failures in workflows.
|
|
24
|
-
</Card>
|
|
25
|
-
<Card href="/docs/errors/start-invalid-workflow-function" title="start-invalid-workflow-function">
|
|
26
|
-
Learn how to start an invalid workflow function.
|
|
27
|
-
</Card>
|
|
28
|
-
<Card href="/docs/errors/timeout-in-workflow" title="timeout-in-workflow">
|
|
29
|
-
Learn how to handle timing delays in workflow functions.
|
|
30
|
-
</Card>
|
|
31
|
-
<Card href="/docs/errors/webhook-invalid-respond-with-value" title="webhook-invalid-respond-with-value">
|
|
32
|
-
Learn how to use the correct `respondWith` values for webhooks.
|
|
33
|
-
</Card>
|
|
34
|
-
<Card href="/docs/errors/webhook-response-not-sent" title="webhook-response-not-sent">
|
|
35
|
-
Learn how to send responses when using manual webhook response mode.
|
|
36
|
-
</Card>
|
|
37
|
-
<Card href="/docs/errors/corrupted-event-log" title="corrupted-event-log">
|
|
38
|
-
Learn how to handle corrupted or invalid event logs.
|
|
39
|
-
</Card>
|
|
40
|
-
<Card href="/docs/errors/replay-divergence" title="replay-divergence">
|
|
41
|
-
Learn how workflow replay divergence is recovered automatically.
|
|
42
|
-
</Card>
|
|
43
|
-
<Card href="/docs/errors/step-not-registered" title="step-not-registered">
|
|
44
|
-
Resolve step not registered errors caused by deployment mismatches.
|
|
45
|
-
</Card>
|
|
46
|
-
<Card href="/docs/errors/step-executed-multiple-times" title="Step executed multiple times">
|
|
47
|
-
Diagnose duplicate step_started events from function crashes, timeouts, or OOMs.
|
|
48
|
-
</Card>
|
|
49
|
-
<Card href="/docs/errors/workflow-not-registered" title="workflow-not-registered">
|
|
50
|
-
Resolve workflow not registered errors caused by deployment mismatches.
|
|
51
|
-
</Card>
|
|
52
|
-
<Card href="/docs/errors/runtime-decryption-failed" title="runtime-decryption-failed">
|
|
53
|
-
Resolve runtime decryption failures from the SDK's encryption layer.
|
|
54
|
-
</Card>
|
|
55
|
-
</Cards>
|
|
12
|
+
<AutoCards />
|
|
56
13
|
|
|
57
14
|
## Learn More
|
|
58
15
|
|
|
@@ -10,29 +10,4 @@ related:
|
|
|
10
10
|
|
|
11
11
|
Workflow programming can be a slight shift from how you traditionally write real-world applications. Learning the foundations now will go a long way toward helping you use workflows effectively.
|
|
12
12
|
|
|
13
|
-
<
|
|
14
|
-
<Card href="/docs/foundations/workflows-and-steps" title="Workflows and Steps">
|
|
15
|
-
Learn about the building blocks of durability
|
|
16
|
-
</Card>
|
|
17
|
-
<Card href="/docs/foundations/starting-workflows" title="Starting Workflows">
|
|
18
|
-
Trigger workflows and track their execution using the `start()` function.
|
|
19
|
-
</Card>
|
|
20
|
-
<Card href="/docs/foundations/errors-and-retries" title="Errors & Retrying">
|
|
21
|
-
Types of errors and how retrying work in workflows.
|
|
22
|
-
</Card>
|
|
23
|
-
<Card href="/docs/foundations/hooks" title="Webhooks (and hooks)">
|
|
24
|
-
Respond to external events in your workflow using hooks and webhooks.
|
|
25
|
-
</Card>
|
|
26
|
-
<Card href="/docs/foundations/streaming" title="Streaming">
|
|
27
|
-
Stream data in real-time to clients without waiting for the workflow to complete.
|
|
28
|
-
</Card>
|
|
29
|
-
<Card href="/docs/foundations/serialization" title="Serialization">
|
|
30
|
-
Understand which types can be passed between workflow and step functions.
|
|
31
|
-
</Card>
|
|
32
|
-
<Card href="/docs/foundations/idempotency" title="Idempotency">
|
|
33
|
-
Prevent duplicate side effects when retrying operations.
|
|
34
|
-
</Card>
|
|
35
|
-
<Card href="/docs/foundations/versioning" title="Versioning">
|
|
36
|
-
Understand how runs stay pinned to deployments and when to opt in to newer code.
|
|
37
|
-
</Card>
|
|
38
|
-
</Cards>
|
|
13
|
+
<AutoCards />
|
package/docs/meta.json
CHANGED
|
@@ -79,11 +79,4 @@ When deployed to Vercel, workflow data is [encrypted end-to-end](/docs/how-it-wo
|
|
|
79
79
|
|
|
80
80
|
## More Observability Features
|
|
81
81
|
|
|
82
|
-
<
|
|
83
|
-
<Card href="/docs/observability/tracing" title="Tracing">
|
|
84
|
-
Distributed tracing with OpenTelemetry for workflow runs, steps, and queue deliveries.
|
|
85
|
-
</Card>
|
|
86
|
-
<Card href="/docs/observability/attributes" title="Attributes">
|
|
87
|
-
Attach experimental metadata to workflow runs for observability.
|
|
88
|
-
</Card>
|
|
89
|
-
</Cards>
|
|
82
|
+
<AutoCards />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.23",
|
|
4
4
|
"description": "Workflow SDK - Build durable, resilient, and observable workflows",
|
|
5
5
|
"main": "dist/typescript-plugin.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"ms": "2.1.3",
|
|
60
|
-
"@workflow/astro": "5.0.0-beta.
|
|
61
|
-
"@workflow/cli": "5.0.0-beta.
|
|
60
|
+
"@workflow/astro": "5.0.0-beta.23",
|
|
61
|
+
"@workflow/cli": "5.0.0-beta.23",
|
|
62
|
+
"@workflow/core": "5.0.0-beta.23",
|
|
62
63
|
"@workflow/errors": "5.0.0-beta.8",
|
|
63
64
|
"@workflow/typescript-plugin": "5.0.0-beta.4",
|
|
64
65
|
"@workflow/utils": "5.0.0-beta.4",
|
|
65
|
-
"@workflow/
|
|
66
|
-
"@workflow/
|
|
67
|
-
"@workflow/
|
|
68
|
-
"@workflow/
|
|
69
|
-
"@workflow/
|
|
70
|
-
"@workflow/
|
|
71
|
-
"@workflow/rollup": "5.0.0-beta.21"
|
|
66
|
+
"@workflow/next": "5.0.0-beta.23",
|
|
67
|
+
"@workflow/nest": "5.0.0-beta.23",
|
|
68
|
+
"@workflow/nitro": "5.0.0-beta.23",
|
|
69
|
+
"@workflow/nuxt": "5.0.0-beta.23",
|
|
70
|
+
"@workflow/sveltekit": "5.0.0-beta.23",
|
|
71
|
+
"@workflow/rollup": "5.0.0-beta.23"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/ms": "2.1.0",
|