Turn the subagent extension into the pi-subagent Pi package
Move the extension from ~/.pi/agent/extensions/subagent into this repo and package it for pi install: - Sources under src/, entry exposed via the pi manifest in package.json - Host packages (@earendil-works/*, typebox) stay peer dependencies - Tests, TLA+ spec, and research notes move along unchanged in behavior - Gates (.pi/verify.json): typecheck, tests, tlc, smoke — all green - Install: pi install git:git.rwiesner.com/alex/pi-subagent or local path
This commit is contained in:
1 parent
496e6334c9
commit
4deccb95ef
33 files changed
+7180
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { readMaxWorkers } from "../src/config.ts";
|
||||
|
||||
test("worker configuration accepts only integers from 1 through 32", () => {
|
||||
assert.deepEqual(readMaxWorkers(undefined), { value: 4 });
|
||||
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.match(result.warning ?? "", /PI_SUBAGENT_MAX_WORKERS/);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user