@replayio/app-building 1.26.0 → 1.27.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 +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -215,8 +215,9 @@ when the required task has completed **and** all of its child tasks (tasks with
|
|
|
215
215
|
`parentTaskId`) have also completed. This means a task that depends on a parent will
|
|
216
216
|
automatically wait for all work the parent spawned.
|
|
217
217
|
|
|
218
|
-
By default, `add-task` chains tasks serially — each task depends on the previous one.
|
|
219
|
-
|
|
218
|
+
By default, `add-task` chains tasks serially — each task depends on the previous one. Set
|
|
219
|
+
`"parallel": true` on individual tasks to run them concurrently. Non-parallel tasks act as
|
|
220
|
+
barriers:
|
|
220
221
|
|
|
221
222
|
```bash
|
|
222
223
|
# Serial (default): B waits for A, C waits for B
|
|
@@ -224,9 +225,14 @@ npx tsx /repo/scripts/add-task.ts <<'EOF'
|
|
|
224
225
|
[{ "skill": "...", "subtasks": ["A"] }, { "skill": "...", "subtasks": ["B"] }, { "skill": "...", "subtasks": ["C"] }]
|
|
225
226
|
EOF
|
|
226
227
|
|
|
227
|
-
#
|
|
228
|
-
npx tsx /repo/scripts/add-task.ts
|
|
229
|
-
[
|
|
228
|
+
# Mixed: A runs first, B and C run in parallel, D waits for both B and C
|
|
229
|
+
npx tsx /repo/scripts/add-task.ts <<'EOF'
|
|
230
|
+
[
|
|
231
|
+
{ "skill": "...", "subtasks": ["A"] },
|
|
232
|
+
{ "skill": "...", "parallel": true, "subtasks": ["B"] },
|
|
233
|
+
{ "skill": "...", "parallel": true, "subtasks": ["C"] },
|
|
234
|
+
{ "skill": "...", "subtasks": ["D"] }
|
|
235
|
+
]
|
|
230
236
|
EOF
|
|
231
237
|
```
|
|
232
238
|
|