@lov3kaizen/agentsea-crews 1.1.0 → 1.1.1

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 CHANGED
@@ -180,6 +180,36 @@ const crew = createCrew({
180
180
  });
181
181
  ```
182
182
 
183
+ ### Concurrency
184
+
185
+ By default a crew runs ready tasks **sequentially**, which keeps event ordering
186
+ deterministic. For independent tasks you can opt into a bounded worker pool so
187
+ they execute in parallel — set it on the crew config or per `kickoff()` call:
188
+
189
+ ```typescript
190
+ // Crew-wide default
191
+ const crew = new Crew({
192
+ name: 'Research Crew',
193
+ agents: [...],
194
+ delegationStrategy: 'best-match',
195
+ maxConcurrentTasks: 4, // up to 4 ready tasks run at once
196
+ });
197
+
198
+ // Or override per run (takes precedence over the config value)
199
+ const result = await crew.kickoff({ maxConcurrentTasks: 4 });
200
+ ```
201
+
202
+ Notes:
203
+
204
+ - The default is `1` (fully sequential) — behavior is unchanged unless you opt in.
205
+ - Only tasks that are _ready_ in the same scheduling iteration run together, so
206
+ dependency ordering is still respected.
207
+ - With concurrency `> 1`, `task:assigned` / `task:completed` events from
208
+ different tasks interleave as workers settle (each task still emits its own
209
+ events in order). If a task fails after exhausting retries, no further tasks
210
+ are launched, in-flight tasks are allowed to settle, and the crew ends with the
211
+ same fatal `crew:error` as the sequential path.
212
+
183
213
  ### Memory Systems
184
214
 
185
215
  Share state and knowledge across agents: