@workit-dev/codex 2.21.1 → 2.21.3
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/.codex-plugin/plugin.json +1 -1
- package/README.md +6 -8
- package/dist/launch-mcp.js +41 -5
- package/dist/{workit-hook-nfrvjnhd.js → workit-hook-79mhzf42.js} +38 -2
- package/dist/workit-hook.js +1 -1
- package/package.json +3 -3
- package/skills/workit-deslop/SKILL.md +4 -4
- package/skills/workit-fanout/references/brief.md +8 -2
- package/skills/workit-fanout/references/orchestration.md +3 -1
- package/skills/workit-implement/SKILL.md +2 -2
- package/skills/workit-shape/references/knowledge.md +1 -1
- package/skills/workit-test-audit/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -19,12 +19,10 @@ CLI because MCP is read-only for unattested callers. Invoke skills as
|
|
|
19
19
|
`$workit-<name>` or from `/skills`. Codex permissions and sandbox stay
|
|
20
20
|
authoritative.
|
|
21
21
|
|
|
22
|
-
The plugin ships the `workit-
|
|
23
|
-
`workit-
|
|
24
|
-
the MCP server copies
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[before-write gate](https://github.com/BrainerVirus/workit/blob/main/docs/guides/verification.md) is advisory here (the session
|
|
29
|
-
context says so). Delivery limits come from the workspace
|
|
22
|
+
The plugin ships the `workit-implementer`, `workit-verifier`,
|
|
23
|
+
`workit-reviewer`, `workit-decider` and `workit-babysitter` custom agents,
|
|
24
|
+
which the MCP server copies into `~/.codex/agents/`; trust the plugin hooks
|
|
25
|
+
with `/hooks`. Agents, hooks, the before-write gate on `apply_patch` and the
|
|
26
|
+
doctor rows are in
|
|
27
|
+
[the hosts guide](https://github.com/BrainerVirus/workit/blob/main/docs/guides/hosts.md#codex-cli--desktop). Delivery limits come from the workspace
|
|
30
28
|
[grants](https://github.com/BrainerVirus/workit/blob/main/docs/guides/grants.md).
|
package/dist/launch-mcp.js
CHANGED
|
@@ -6979,6 +6979,18 @@ function prefixIssues(path, issues) {
|
|
|
6979
6979
|
function unwrapMessage(message) {
|
|
6980
6980
|
return typeof message === "string" ? message : message?.message;
|
|
6981
6981
|
}
|
|
6982
|
+
function sizeCaps(defChecks) {
|
|
6983
|
+
const caps = [];
|
|
6984
|
+
for (const ch of defChecks ?? []) {
|
|
6985
|
+
const d = ch._zod.def;
|
|
6986
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
6987
|
+
break;
|
|
6988
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
6989
|
+
if (max >= 0)
|
|
6990
|
+
caps.push([max, ch]);
|
|
6991
|
+
}
|
|
6992
|
+
return caps;
|
|
6993
|
+
}
|
|
6982
6994
|
function attachSchema(issues, start, inst) {
|
|
6983
6995
|
var _a;
|
|
6984
6996
|
for (let i = start;i < issues.length; i++) {
|
|
@@ -7978,7 +7990,7 @@ ${content.join(`
|
|
|
7978
7990
|
var version = {
|
|
7979
7991
|
major: 4,
|
|
7980
7992
|
minor: 6,
|
|
7981
|
-
patch:
|
|
7993
|
+
patch: 7
|
|
7982
7994
|
};
|
|
7983
7995
|
|
|
7984
7996
|
// node_modules/zod/v4/core/schemas.js
|
|
@@ -8547,6 +8559,29 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
8547
8559
|
return payload;
|
|
8548
8560
|
};
|
|
8549
8561
|
});
|
|
8562
|
+
function capSize(inst, size) {
|
|
8563
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
8564
|
+
if (!caps.length)
|
|
8565
|
+
return;
|
|
8566
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
8567
|
+
const parse = inst._zod.parse;
|
|
8568
|
+
inst._zod.parse = (payload, ctx) => {
|
|
8569
|
+
const n = size(payload.value);
|
|
8570
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
8571
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
8572
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
8573
|
+
const start = payload.issues.length;
|
|
8574
|
+
ch._zod.check(payload);
|
|
8575
|
+
payload.issues[start].continue = false;
|
|
8576
|
+
attachSchema(payload.issues, start, inst);
|
|
8577
|
+
return payload;
|
|
8578
|
+
}
|
|
8579
|
+
}
|
|
8580
|
+
}
|
|
8581
|
+
return parse(payload, ctx);
|
|
8582
|
+
};
|
|
8583
|
+
}
|
|
8584
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
8550
8585
|
function handleArrayResult(result, final, index) {
|
|
8551
8586
|
if (result.issues.length) {
|
|
8552
8587
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -8590,6 +8625,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
8590
8625
|
}
|
|
8591
8626
|
return payload;
|
|
8592
8627
|
};
|
|
8628
|
+
capSize(inst, arraySize);
|
|
8593
8629
|
});
|
|
8594
8630
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
8595
8631
|
const isPresent = key in input;
|
|
@@ -17709,7 +17745,7 @@ function normalizeMaxBytes(value, options = {}) {
|
|
|
17709
17745
|
if (selected === undefined || selected === Number.POSITIVE_INFINITY)
|
|
17710
17746
|
return selected;
|
|
17711
17747
|
if (!Number.isSafeInteger(selected) || selected < 0) {
|
|
17712
|
-
throw new RangeError(
|
|
17748
|
+
throw new RangeError("maxBytes must be a non-negative safe integer or Infinity");
|
|
17713
17749
|
}
|
|
17714
17750
|
return selected;
|
|
17715
17751
|
}
|
|
@@ -28552,9 +28588,9 @@ var useOwnedWorkitCli = (options = {}) => {
|
|
|
28552
28588
|
|
|
28553
28589
|
// packages/workit-core/src/core/support-matrix.ts
|
|
28554
28590
|
var SUPPORT_MATRIX = {
|
|
28555
|
-
bun: "1.4.
|
|
28556
|
-
node: { minimum: "24", current: "24.
|
|
28557
|
-
opencode: { minimum: "2.0.18", current: "2.
|
|
28591
|
+
bun: "1.4.5",
|
|
28592
|
+
node: { minimum: "24", current: "24.22.3" },
|
|
28593
|
+
opencode: { minimum: "2.0.18", current: "2.3.2" },
|
|
28558
28594
|
codex: { cli: "0.153.4", desktopPackage: "26.901.20858", bundledCodexCli: "0.153.0-alpha.5" },
|
|
28559
28595
|
claudeCode: { cli: "2.1.288" },
|
|
28560
28596
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
@@ -635,6 +635,18 @@ function prefixIssues(path, issues) {
|
|
|
635
635
|
function unwrapMessage(message) {
|
|
636
636
|
return typeof message === "string" ? message : message?.message;
|
|
637
637
|
}
|
|
638
|
+
function sizeCaps(defChecks) {
|
|
639
|
+
const caps = [];
|
|
640
|
+
for (const ch of defChecks ?? []) {
|
|
641
|
+
const d = ch._zod.def;
|
|
642
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
643
|
+
break;
|
|
644
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
645
|
+
if (max >= 0)
|
|
646
|
+
caps.push([max, ch]);
|
|
647
|
+
}
|
|
648
|
+
return caps;
|
|
649
|
+
}
|
|
638
650
|
function attachSchema(issues, start, inst) {
|
|
639
651
|
var _a;
|
|
640
652
|
for (let i = start;i < issues.length; i++) {
|
|
@@ -1632,7 +1644,7 @@ ${content.join(`
|
|
|
1632
1644
|
var version = {
|
|
1633
1645
|
major: 4,
|
|
1634
1646
|
minor: 6,
|
|
1635
|
-
patch:
|
|
1647
|
+
patch: 7
|
|
1636
1648
|
};
|
|
1637
1649
|
|
|
1638
1650
|
// node_modules/zod/v4/core/schemas.js
|
|
@@ -2184,6 +2196,29 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
2184
2196
|
return payload;
|
|
2185
2197
|
};
|
|
2186
2198
|
});
|
|
2199
|
+
function capSize(inst, size) {
|
|
2200
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
2201
|
+
if (!caps.length)
|
|
2202
|
+
return;
|
|
2203
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
2204
|
+
const parse = inst._zod.parse;
|
|
2205
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2206
|
+
const n = size(payload.value);
|
|
2207
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
2208
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
2209
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
2210
|
+
const start = payload.issues.length;
|
|
2211
|
+
ch._zod.check(payload);
|
|
2212
|
+
payload.issues[start].continue = false;
|
|
2213
|
+
attachSchema(payload.issues, start, inst);
|
|
2214
|
+
return payload;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
return parse(payload, ctx);
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
2187
2222
|
function handleArrayResult(result, final, index) {
|
|
2188
2223
|
if (result.issues.length) {
|
|
2189
2224
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -2227,6 +2262,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2227
2262
|
}
|
|
2228
2263
|
return payload;
|
|
2229
2264
|
};
|
|
2265
|
+
capSize(inst, arraySize);
|
|
2230
2266
|
});
|
|
2231
2267
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
2232
2268
|
const isPresent = key in input;
|
|
@@ -10444,7 +10480,7 @@ function normalizeMaxBytes(value, options = {}) {
|
|
|
10444
10480
|
if (selected === undefined || selected === Number.POSITIVE_INFINITY)
|
|
10445
10481
|
return selected;
|
|
10446
10482
|
if (!Number.isSafeInteger(selected) || selected < 0) {
|
|
10447
|
-
throw new RangeError(
|
|
10483
|
+
throw new RangeError("maxBytes must be a non-negative safe integer or Infinity");
|
|
10448
10484
|
}
|
|
10449
10485
|
return selected;
|
|
10450
10486
|
}
|
package/dist/workit-hook.js
CHANGED
|
@@ -101,7 +101,7 @@ if (quiet) {
|
|
|
101
101
|
`);
|
|
102
102
|
} else {
|
|
103
103
|
try {
|
|
104
|
-
const { runCodexHook } = await import("./workit-hook-
|
|
104
|
+
const { runCodexHook } = await import("./workit-hook-79mhzf42.js");
|
|
105
105
|
await runCodexHook([payload]);
|
|
106
106
|
} catch (error) {
|
|
107
107
|
const { answerRuntimeFailure } = await import("./workit-hook-52cm7mqd.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/codex",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, method skills, and verifier/reviewer/implementer agents",
|
|
6
6
|
"keywords": [
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"build": "bun scripts/build.ts"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@workit-dev/core": "^2.21.
|
|
45
|
-
"@workit-dev/mcp": "^2.21.
|
|
44
|
+
"@workit-dev/core": "^2.21.3",
|
|
45
|
+
"@workit-dev/mcp": "^2.21.3"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24"
|
|
@@ -12,16 +12,16 @@ Deslop removes; it never changes behavior. Its depth follows the review lane.
|
|
|
12
12
|
`suppression` (a lint or type disable with no reason), `debug` (stray logs,
|
|
13
13
|
`debugger`, `[DEBUG-` tags) or `allowed`, runs `test-audit` on changed
|
|
14
14
|
tests, and prints the lane and its passes. A marker or a lint/type
|
|
15
|
-
suppression raises `self` to `focused`.
|
|
15
|
+
suppression raises `none` or `self` to `focused`.
|
|
16
16
|
2. **Run the lane's passes** (each lane adds to the one below):
|
|
17
17
|
- `none` (docs only): prose. Cut filler and hedging from the PR body and
|
|
18
18
|
docs; keep real symbol names and before-to-after numbers.
|
|
19
19
|
- `self`: delete every narration, marker and debug finding, plus dead code
|
|
20
20
|
from the repo's tools (`knip`, `ts-prune`, `vulture`, unused-lint rules).
|
|
21
21
|
- `focused`: a fresh-eyes no-comments pass and a test-quality lens. Hand
|
|
22
|
-
the diff, never your verdict, to a fresh reviewer: Claude Code
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
the diff, never your verdict, to a fresh reviewer: Claude Code, the
|
|
23
|
+
`reviewer` agent; Codex, Cursor and OpenCode, `workit-reviewer`; Pi, a
|
|
24
|
+
supervised worker. It deletes every added
|
|
25
25
|
comment off the keep list and triages `workit test-audit --diff`
|
|
26
26
|
(read the `workit-test-audit` skill's SKILL.md and follow it).
|
|
27
27
|
- `full`: also `workit test-audit --mutate --diff` and one architect
|
|
@@ -97,7 +97,8 @@ is the slice's STUCK threshold in `workit fanout status`. `"fanIn":
|
|
|
97
97
|
"goal": "The API guide documents GET /v1/usage",
|
|
98
98
|
"acceptance": ["Given the guide, When a reader looks up usage, Then the response shape is shown"],
|
|
99
99
|
"verify": ["workit check docs"],
|
|
100
|
-
"forbidden": ["no edits outside SCOPE"]
|
|
100
|
+
"forbidden": ["no edits outside SCOPE"],
|
|
101
|
+
"reason": "parallel"
|
|
101
102
|
}
|
|
102
103
|
]
|
|
103
104
|
}
|
|
@@ -130,7 +131,8 @@ deny is two lines ending in that ad-hoc command as `Retry as:`.
|
|
|
130
131
|
and 3 for the worker's host: `--host <host>` (claude_code, codex, opencode,
|
|
131
132
|
cursor, pi), else the lead's (`WORKIT_HOST`, or the host's own session
|
|
132
133
|
variable). With no known host it warns on stderr and names the valid ones.
|
|
133
|
-
RULE 3 carries the host's concrete Co-Authored-By line as a `--trailer
|
|
134
|
+
RULE 3 carries the host's concrete Co-Authored-By line as a `--trailer` on
|
|
135
|
+
Claude Code and Cursor; Codex, OpenCode and Pi get none.
|
|
134
136
|
|
|
135
137
|
| Lead's host | Identity line | RULES 1 and 3 |
|
|
136
138
|
| --- | --- | --- |
|
|
@@ -160,3 +162,7 @@ attempt (`--attempt <n>`) follows its host's row with the branch
|
|
|
160
162
|
3. Commit with `workit git --cwd <worktree> commit -m "<msg>" --trailer "<host's Co-Authored-By>" -- <paths in SCOPE>`;
|
|
161
163
|
push only if the brief says so.
|
|
162
164
|
4. Never record a verdict on your own work.
|
|
165
|
+
5. Run tests, lint, typecheck and builds only through `workit check`; `--heavy`
|
|
166
|
+
only for full suites, never a hand-made `flock`.
|
|
167
|
+
6. A failed review gets one fix round and one recheck, then stop and report.
|
|
168
|
+
7. Wait for or stop every background command before the final report.
|
|
@@ -96,7 +96,9 @@ it (`git branch <branch> <winner>`), have the verifier record the verdict on
|
|
|
96
96
|
Follow the workspace `verification` setting (`workit grant show`); the
|
|
97
97
|
worker never records a verdict on its own work.
|
|
98
98
|
|
|
99
|
-
- `
|
|
99
|
+
- `proportional` (the default): each slice's review lane decides (none: no
|
|
100
|
+
verdict; self: the author's `--self`; focused or full: a verifier).
|
|
101
|
+
- `self`: a verifier that wrote none of the slices records the
|
|
100
102
|
verdicts. A lead that authored none of the slices may record them in its
|
|
101
103
|
own session.
|
|
102
104
|
- `independent`, and any slice at high risk: a separate verifier session
|
|
@@ -39,8 +39,8 @@ description: Build a requested change in small verified steps - follow local pat
|
|
|
39
39
|
status`). Lane none: no verdict. Lane self: after `workit check test` passes,
|
|
40
40
|
record `workit ledger verdict tests-verified --self --how "<what you ran>"`;
|
|
41
41
|
it reads self-reviewed, never verified, and is enough. Focused, full, high
|
|
42
|
-
risk or `verification: self|independent` merges: one fresh verifier per PR after the last push, its own host-derived session (Claude Code: the `verifier` agent with the `model` (and `effort`) of `workit models show --role verifier`; Codex
|
|
43
|
-
the `verifier` agent;
|
|
42
|
+
risk or `verification: self|independent` merges: one fresh verifier per PR after the last push, its own host-derived session (Claude Code: the `verifier` agent with the `model` (and `effort`) of `workit models show --role verifier`; Codex,
|
|
43
|
+
Cursor and OpenCode: the `workit-verifier` agent; Pi: a supervised worker),
|
|
44
44
|
never a hand-minted id. Before saying done, reconcile
|
|
45
45
|
every named deliverable against the target checkout and observe it (for a push:
|
|
46
46
|
`workit verify-delivery push`).
|
|
@@ -7,7 +7,7 @@ user asks for one, say which trigger fired, and let the user decline.
|
|
|
7
7
|
| Record | Trigger | Where |
|
|
8
8
|
| --- | --- | --- |
|
|
9
9
|
| Spec | more than one slice, crosses repos, or an open product choice a future reader must know | `docs/<topic>/spec.md` |
|
|
10
|
-
| Plan | more than one slice with dependencies, or work that will be resumed by someone else | `
|
|
10
|
+
| Plan | more than one slice with dependencies, or work that will be resumed by someone else | `workit dir plans` (per clone, outside the repo tree) |
|
|
11
11
|
| ADR | the choice is hard to reverse **and** surprising **and** a real trade-off (all three) | `docs/adr/NNNN-<slug>.md` |
|
|
12
12
|
| Glossary entry | a project term was ambiguous and you resolved it | `GLOSSARY.md` (create lazily) |
|
|
13
13
|
| Coding standard | a judgment-call rule a reviewer must check, recurring twice, found by workit-retro; a mechanical rule gets a check instead | `CODING_STANDARDS.md` (create lazily) |
|
|
@@ -16,8 +16,8 @@ or weaken a test to make it quiet.
|
|
|
16
16
|
`workit test-audit --diff --json` or `workit test-audit <paths> --json`.
|
|
17
17
|
Each finding has file:line, rule, severity, confidence, why and a fix.
|
|
18
18
|
Prose checks are `info`; add `--min-severity info` to see them.
|
|
19
|
-
`mock-call-order` flags a call
|
|
20
|
-
code's own module; `private-access` flags `_private` reads and test-only
|
|
19
|
+
`mock-call-order` flags a call order asserted on any double, and a call
|
|
20
|
+
count on a double of the code's own module; `private-access` flags `_private` reads and test-only
|
|
21
21
|
imports. Both pin how the code works, not what it does.
|
|
22
22
|
2. Triage every finding with "Name the Break": which wrong production change
|
|
23
23
|
should make this test fail? Then choose one, and say which:
|