pi-subagents 0.16.0 → 0.16.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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/parallel-utils.ts +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.16.1] - 2026-04-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Parallel subagent startup no longer applies any worker-start stagger in `mapConcurrent()`. `pi-subagents` now relies on Pi core's settings/auth lock retry behavior instead of carrying its own startup-delay workaround.
|
|
9
|
+
|
|
5
10
|
## [0.16.0] - 2026-04-16
|
|
6
11
|
|
|
7
12
|
### Added
|
package/package.json
CHANGED
package/parallel-utils.ts
CHANGED
|
@@ -46,16 +46,12 @@ export async function mapConcurrent<T, R>(
|
|
|
46
46
|
items: T[],
|
|
47
47
|
limit: number,
|
|
48
48
|
fn: (item: T, i: number) => Promise<R>,
|
|
49
|
-
staggerMs = 150,
|
|
50
49
|
): Promise<R[]> {
|
|
51
50
|
const safeLimit = Math.max(1, Math.floor(limit) || 1);
|
|
52
51
|
const results: R[] = new Array(items.length);
|
|
53
52
|
let next = 0;
|
|
54
53
|
|
|
55
|
-
async function worker(
|
|
56
|
-
if (staggerMs > 0 && workerIndex > 0) {
|
|
57
|
-
await new Promise((r) => setTimeout(r, workerIndex * staggerMs));
|
|
58
|
-
}
|
|
54
|
+
async function worker(_workerIndex: number): Promise<void> {
|
|
59
55
|
while (next < items.length) {
|
|
60
56
|
const i = next++;
|
|
61
57
|
results[i] = await fn(items[i], i);
|