@workit-dev/codex 1.2.2 → 1.4.0
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/dist/launch-mcp.js
CHANGED
|
@@ -21530,6 +21530,7 @@ var PR_ROW_TYPES = new Set([
|
|
|
21530
21530
|
"pr.merged",
|
|
21531
21531
|
"pr.linked"
|
|
21532
21532
|
]);
|
|
21533
|
+
var HOLD_ROW_TYPES = new Set(["branch.hold", "branch.hold.cleared"]);
|
|
21533
21534
|
var err = (code, error, unblock) => ({
|
|
21534
21535
|
ok: false,
|
|
21535
21536
|
code,
|
|
@@ -22572,6 +22573,7 @@ var OBSERVED_ONLY = new Set([
|
|
|
22572
22573
|
"merge.unverified",
|
|
22573
22574
|
"policy.judged",
|
|
22574
22575
|
"verdict.voided",
|
|
22576
|
+
...HOLD_ROW_TYPES,
|
|
22575
22577
|
...PR_ROW_TYPES
|
|
22576
22578
|
]);
|
|
22577
22579
|
|
|
@@ -14435,6 +14435,19 @@ var PR_ROW_TYPES = new Set([
|
|
|
14435
14435
|
"pr.merged",
|
|
14436
14436
|
"pr.linked"
|
|
14437
14437
|
]);
|
|
14438
|
+
var HOLD_ROW_TYPES = new Set(["branch.hold", "branch.hold.cleared"]);
|
|
14439
|
+
function branchHold(rows, branch) {
|
|
14440
|
+
let hold = null;
|
|
14441
|
+
for (const row of rows) {
|
|
14442
|
+
if (row.branch !== branch || row.observer !== "workit_cli")
|
|
14443
|
+
continue;
|
|
14444
|
+
if (row.type === "branch.hold")
|
|
14445
|
+
hold = row;
|
|
14446
|
+
else if (row.type === "branch.hold.cleared" || row.type === "push.verified")
|
|
14447
|
+
hold = null;
|
|
14448
|
+
}
|
|
14449
|
+
return hold;
|
|
14450
|
+
}
|
|
14438
14451
|
var err = (code, error, unblock) => ({
|
|
14439
14452
|
ok: false,
|
|
14440
14453
|
code,
|
|
@@ -15495,6 +15508,7 @@ var OBSERVED_ONLY = new Set([
|
|
|
15495
15508
|
"merge.unverified",
|
|
15496
15509
|
"policy.judged",
|
|
15497
15510
|
"verdict.voided",
|
|
15511
|
+
...HOLD_ROW_TYPES,
|
|
15498
15512
|
...PR_ROW_TYPES
|
|
15499
15513
|
]);
|
|
15500
15514
|
|
|
@@ -21547,7 +21561,7 @@ var unpushed = (cwd, branch, endpoint, mine, merged) => {
|
|
|
21547
21561
|
return null;
|
|
21548
21562
|
return {
|
|
21549
21563
|
kind: "unpushed",
|
|
21550
|
-
reason: `${branch} has ${count} commit(s) of this session not on ${remote}, and this workspace's endpoint is \`${endpoint}\` (\`workit grant show\`): push them with \`workit git push\`${endpoint === "pr" ? ", then open or update the PR (`workit pr create --fill`)" : ""}.`
|
|
21564
|
+
reason: `${branch} has ${count} commit(s) of this session not on ${remote}, and this workspace's endpoint is \`${endpoint}\` (\`workit grant show\`): push them with \`workit git push\`${endpoint === "pr" ? ", then open or update the PR (`workit pr create --fill`)" : ""}. If the user said not yet, record it once with \`workit git hold --why "<their words>"\` and stop.`
|
|
21551
21565
|
};
|
|
21552
21566
|
};
|
|
21553
21567
|
var redChecks = (cwd, rows, pr, head, endpoint) => {
|
|
@@ -21626,7 +21640,7 @@ function stopObligation(input, descriptor) {
|
|
|
21626
21640
|
return null;
|
|
21627
21641
|
const autonomy = resolveAutonomy(input.cwd);
|
|
21628
21642
|
const endpoint = autonomy.effectiveEndpoint;
|
|
21629
|
-
if (endpoint !== "commit") {
|
|
21643
|
+
if (endpoint !== "commit" && !branchHold(rows, branch)) {
|
|
21630
21644
|
const left = unpushed(input.cwd, branch, endpoint, commits, mergedHeads(rows));
|
|
21631
21645
|
if (left)
|
|
21632
21646
|
return { ...left, head };
|
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-sc4ng8c7.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.
|
|
3
|
+
"version": "1.4.0",
|
|
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.
|
|
45
|
-
"@workit-dev/mcp": "^1.
|
|
44
|
+
"@workit-dev/core": "^1.4.0",
|
|
45
|
+
"@workit-dev/mcp": "^1.4.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24"
|