Add live subagent dashboard and default to 16 workers
This commit is contained in:
1 parent
7b3686f55d
commit
b8e5c7eab5
17 files changed
+1079
-104
No files matched your search
+3
-3
@@ -2,13 +2,13 @@ import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { readMaxWorkflowItems, readMaxWorkers } from "../src/config.ts";
|
||||
|
||||
test("worker configuration accepts only integers from 1 through 32", () => {
|
||||
assert.deepEqual(readMaxWorkers(undefined), { value: 4 });
|
||||
test("worker configuration defaults to 16 and accepts only integers from 1 through 32", () => {
|
||||
assert.deepEqual(readMaxWorkers(undefined), { value: 16 });
|
||||
assert.deepEqual(readMaxWorkers("1"), { value: 1 });
|
||||
assert.deepEqual(readMaxWorkers("32"), { value: 32 });
|
||||
for (const invalid of ["0", "33", "-1", "1.5", "four", " 4"]) {
|
||||
const result = readMaxWorkers(invalid);
|
||||
assert.equal(result.value, 4);
|
||||
assert.equal(result.value, 16);
|
||||
assert.match(result.warning ?? "", /PI_SUBAGENT_MAX_WORKERS/);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user