Files
Karthik Kalyan c58cae6612 [Docs] Cookbook update for child workflows pattern (#2100)
* docs(cookbook): replace child workflow polling with hook resume pattern

Recommend startAndWait() with withChildCompletionHook() for v4 and v5 child
workflow orchestration instead of getRun().status polling loops.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix child-workflows cookbook review feedback

Tighten resumeParentCompletion to a discriminated union so hook.resume
typechecks, add zod to the vitest workbench, remove unused resumeHook
import, and add an empty changeset per AGENTS.md.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs(cookbook): trim child-workflows hook resume guide

Remove redundant polling comparison copy, the getRun() alternative section, and v5-only start() tips to keep the cookbook focused on the hook pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 16:02:19 -07:00

19 lines
372 B
JSON

{
"name": "@workflow/vitest-workbench",
"private": true,
"type": "module",
"version": "0.0.1",
"license": "Apache-2.0",
"scripts": {
"test": "vitest run"
},
"devDependencies": {
"@types/node": "catalog:",
"@workflow/vitest": "workspace:*",
"ms": "2.1.3",
"vitest": "catalog:",
"workflow": "workspace:*",
"zod": "catalog:"
}
}