@feigi/fleet-ctl 3.39.4 → 3.39.6
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/package.json +1 -1
- package/scripts/arg.mjs +1 -1
- package/scripts/board-common.mjs +3 -3
- package/scripts/board-gather.mjs +997 -0
- package/scripts/board-server.mjs +611 -0
- package/scripts/board.mjs +28 -1598
- package/scripts/ci-state.mjs +2 -2
- package/scripts/ledger-grammar.mjs +5 -0
- package/scripts/ledger.mjs +15 -11
- package/skills/run-team/SKILL.md +7 -6
package/package.json
CHANGED
package/scripts/arg.mjs
CHANGED
|
@@ -297,7 +297,7 @@ export function makeHas(die) {
|
|
|
297
297
|
// reaches `gh` as a ref that is not the PR the caller meant. It forfeits the
|
|
298
298
|
// branch and URL spellings `gh pr view` itself takes — the same trade the
|
|
299
299
|
// `--`-prefixed value rule above makes — and nothing in this repo passes one:
|
|
300
|
-
// board.mjs's runCiState() sends `String(pr)` off a numeric record, and every
|
|
300
|
+
// board-gather.mjs's runCiState() sends `String(pr)` off a numeric record, and every
|
|
301
301
|
// documented invocation is `--pr <N>`.
|
|
302
302
|
//
|
|
303
303
|
// RegExp.test coerces, which is load-bearing in both directions. It is what
|
package/scripts/board-common.mjs
CHANGED
|
@@ -38,12 +38,12 @@ export function warnOnce(channel, key, msg) {
|
|
|
38
38
|
// Infinity: a runaway child should still be stopped rather than allowed to
|
|
39
39
|
// exhaust the box. Same headroom staleness.mjs takes, for the same reason.
|
|
40
40
|
//
|
|
41
|
-
// Both child reads in board.mjs take it. `tryRun` is NOT the single funnel —
|
|
41
|
+
// Both child reads in board-gather.mjs take it. `tryRun` is NOT the single funnel —
|
|
42
42
|
// runCiState() spawns its own, because it needs the exit code that a plain
|
|
43
43
|
// tryRun discards — so a fix applied only there would leave that one uncapped.
|
|
44
44
|
export const READ_OPTS = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
|
|
45
45
|
|
|
46
|
-
// Every child read in board.mjs is ASYNCHRONOUS, and that is
|
|
46
|
+
// Every child read in board-gather.mjs is ASYNCHRONOUS, and that is
|
|
47
47
|
// load-bearing rather than stylistic. serve() ticks on a timer inside the same
|
|
48
48
|
// process that answers HTTP, so a SYNCHRONOUS read holds the event loop for as
|
|
49
49
|
// long as the child runs — measured at 4.72–4.91s for one board — and during
|
|
@@ -65,7 +65,7 @@ export const READ_OPTS = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
|
|
|
65
65
|
// `code` for a libuv/node fault. That translation is the whole reason this is
|
|
66
66
|
// not a bare `promisify(execFile)`: the async error carries the EXIT CODE in
|
|
67
67
|
// `err.code` (measured: `3`, a number), where the sync one carried `ENOENT` /
|
|
68
|
-
// `ENOBUFS` there and the exit code in `status`, and board.mjs's runCiState()
|
|
68
|
+
// `ENOBUFS` there and the exit code in `status`, and board-gather.mjs's runCiState()
|
|
69
69
|
// reads all three to tell those causes apart.
|
|
70
70
|
export function execRead(cmd, args) {
|
|
71
71
|
return new Promise((resolve) => {
|