@workit-dev/codex 1.7.0 → 1.7.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.
|
@@ -25,10 +25,9 @@ account. Follow the workit-review skill (`$workit-review`).
|
|
|
25
25
|
Before your final report, wait for or stop every background command you started
|
|
26
26
|
(the host shows you running while one lives); never report with one still running.
|
|
27
27
|
|
|
28
|
-
Never commit, push, merge or edit. Write only in the
|
|
29
|
-
`.workit-scratch/`:
|
|
30
|
-
|
|
31
|
-
author, report that instead of a verdict.
|
|
28
|
+
Never commit, push, merge or edit. Write only in the candidate
|
|
29
|
+
worktree's `.workit-scratch/`: test cases go into files there via a quoted heredoc
|
|
30
|
+
(`<<'EOF'`), never run by the shell. If the ledger refuses you as an author, report that instead of a verdict.
|
|
32
31
|
|
|
33
32
|
Codex runs you in a read-only sandbox. `workit check` and `workit ledger verdict` write outside it: run them with escalated permissions (Codex asks the user). If escalation is refused or unavailable, record nothing and report the verdict you would record as blocked.
|
|
34
33
|
'''
|
|
@@ -29,8 +29,8 @@ the goal is unmet until you observe it.
|
|
|
29
29
|
Before your final report, wait for or stop every background command you started
|
|
30
30
|
(the host shows you running while one lives); never report with one still running.
|
|
31
31
|
|
|
32
|
-
Write only in the
|
|
33
|
-
|
|
32
|
+
Write only in the candidate worktree's `.workit-scratch/`: a test case goes in a
|
|
33
|
+
file there via a quoted heredoc (`<<'EOF'`), never run by the shell.
|
|
34
34
|
|
|
35
35
|
Report: candidate SHA, each check with its exit code, each acceptance line,
|
|
36
36
|
the verdict row you recorded. Fix nothing: a failing check is a verdict.
|
|
@@ -18970,9 +18970,15 @@ var messageOf = (segment, index) => {
|
|
|
18970
18970
|
return null;
|
|
18971
18971
|
return match[3].replace(/\n+$/u, "");
|
|
18972
18972
|
};
|
|
18973
|
+
var sameGitDir = (a, b, platform = process.platform) => {
|
|
18974
|
+
if (platform !== "win32")
|
|
18975
|
+
return path23.posix.resolve(a) === path23.posix.resolve(b);
|
|
18976
|
+
const fold = (value) => path23.win32.resolve(value).toLowerCase();
|
|
18977
|
+
return fold(a) === fold(b);
|
|
18978
|
+
};
|
|
18973
18979
|
var cdCommitCall = (input, command, target, repo) => {
|
|
18974
18980
|
const { top, git, dir: store } = repo.location;
|
|
18975
|
-
if (!top || !git || git.gitDir
|
|
18981
|
+
if (!top || !git || sameGitDir(git.gitDir, path23.dirname(store)) || repoAt(input.cwd)?.location.top === top)
|
|
18976
18982
|
return null;
|
|
18977
18983
|
const bare = command.replaceAll(/'[^']*'|"(?:[^"\\]|\\.)*"/gu, "").replaceAll("&&", "");
|
|
18978
18984
|
if (/[;|&<>`$()\n\\]/u.test(bare))
|
|
@@ -23251,10 +23257,12 @@ var substitutingHeredoc = (command) => {
|
|
|
23251
23257
|
}
|
|
23252
23258
|
return false;
|
|
23253
23259
|
};
|
|
23254
|
-
var judgeDeny = (input, what) => {
|
|
23260
|
+
var judgeDeny = (input, what, target) => {
|
|
23255
23261
|
const role = input.session.agentType?.endsWith("reviewer") ? "reviewer" : "verifier";
|
|
23256
23262
|
const root = checkoutOf2(input.cwd)?.root;
|
|
23257
|
-
const
|
|
23263
|
+
const candidate = target ? checkoutOf2(target)?.root : undefined;
|
|
23264
|
+
const also = root && candidate && candidate !== root && commonDir(candidate) === commonDir(root) ? ` or ${path31.join(candidate, SCRATCH)}` : "";
|
|
23265
|
+
const scratch = root ? `${path31.join(root, SCRATCH)}${also}` : `${SCRATCH}/ at the root of the checkout you judge`;
|
|
23258
23266
|
const unblock = `Write only under ${scratch} (mkdir -p it): put a generated case in a file there with a quoted heredoc (<<'EOF') and never run it in the shell. Reads, \`workit check\` and \`workit ledger verdict|finding\` stay allowed; a change the candidate needs is a finding, not an edit.`;
|
|
23259
23267
|
return {
|
|
23260
23268
|
kind: "deny",
|
|
@@ -23275,7 +23283,7 @@ function confineJudge(input, targets) {
|
|
|
23275
23283
|
if (inScratch(canonical4(target), repo))
|
|
23276
23284
|
continue;
|
|
23277
23285
|
const runner = runnerAt(target);
|
|
23278
|
-
return judgeDeny(input, runner === null ? `${shown(target)} is outside it` : `\`${runner}\` runs in ${shown(target)}, outside it
|
|
23286
|
+
return judgeDeny(input, runner === null ? `${shown(target)} is outside it` : `\`${runner}\` runs in ${shown(target)}, outside it`, target);
|
|
23279
23287
|
}
|
|
23280
23288
|
return NONE5;
|
|
23281
23289
|
} catch {
|
package/dist/workit-hook.js
CHANGED
|
@@ -84,7 +84,7 @@ if (quiet) {
|
|
|
84
84
|
`);
|
|
85
85
|
} else {
|
|
86
86
|
try {
|
|
87
|
-
const { runCodexHook } = await import("./workit-hook-
|
|
87
|
+
const { runCodexHook } = await import("./workit-hook-f4re7k5j.js");
|
|
88
88
|
await runCodexHook([payload]);
|
|
89
89
|
} catch (error) {
|
|
90
90
|
const { answerRuntimeFailure } = await import("./workit-hook-ehy7rps6.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/codex",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
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": "^1.7.
|
|
45
|
-
"@workit-dev/mcp": "^1.7.
|
|
44
|
+
"@workit-dev/core": "^1.7.1",
|
|
45
|
+
"@workit-dev/mcp": "^1.7.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24"
|