@lov3kaizen/agentsea-crews 1.1.0 → 1.2.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 +30 -0
- package/dist/Crew-BnvVjN7A.d.mts +1060 -0
- package/dist/Crew-BnvVjN7A.d.ts +1060 -0
- package/dist/DebugMode-CbYgA7Yw.d.mts +190 -0
- package/dist/DebugMode-o5e9gmQ7.d.ts +190 -0
- package/dist/{chunk-6JLVFEU6.mjs → chunk-3NMVWRVW.mjs} +1 -1
- package/dist/{chunk-V6VK6BOL.mjs → chunk-J5KQSOGT.mjs} +142 -30
- package/dist/index.d.mts +975 -0
- package/dist/index.d.ts +975 -0
- package/dist/index.js +155 -53
- package/dist/index.mjs +16 -20
- package/dist/nestjs/index.d.mts +98 -0
- package/dist/nestjs/index.d.ts +98 -0
- package/dist/nestjs/index.js +142 -35
- package/dist/nestjs/index.mjs +1 -1
- package/dist/templates/index.d.mts +78 -0
- package/dist/templates/index.d.ts +78 -0
- package/dist/templates/index.js +142 -35
- package/dist/templates/index.mjs +2 -2
- package/package.json +6 -6
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:
|