@workit-dev/codex 1.0.3 → 1.0.4
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
|
@@ -21195,6 +21195,7 @@ var DOC_EXT = /\.(?:md|mdx|markdown|rst|adoc)$/iu;
|
|
|
21195
21195
|
var DOC_NAMES = /^(?:license|licence|notice|authors|changelog|changes|contributors)$/iu;
|
|
21196
21196
|
var INSTRUCTIONS = /(?:^|\/)(?:AGENTS|CLAUDE|GEMINI|SKILL)\.md$|(?:^|\/)(?:skills|agents|commands|rules|prompts)\/[^/]+/iu;
|
|
21197
21197
|
var TEST_PATH = /(?:^|\/)(?:test|tests|__tests__)\/|\.(?:test|spec)\.[^/]+$|_test\.[^/]+$/iu;
|
|
21198
|
+
var plural = (count, noun) => `${count} ${noun}${count === 1 ? "" : "s"}`;
|
|
21198
21199
|
var basename = (file) => file.slice(file.lastIndexOf("/") + 1);
|
|
21199
21200
|
var isDoc = (file) => !INSTRUCTIONS.test(file) && (DOC_EXT.test(file) || DOC_NAMES.test(basename(file)));
|
|
21200
21201
|
function kindOf(file) {
|
|
@@ -21253,6 +21254,8 @@ function computeLane(input) {
|
|
|
21253
21254
|
const behavior = kinds.filter((entry) => entry.kind === "behavior" || entry.kind === "test" || entry.kind === "lockfile");
|
|
21254
21255
|
const lines = behavior.filter((entry) => entry.kind !== "lockfile").reduce((sum, entry) => sum + entry.file.added + entry.file.deleted, 0);
|
|
21255
21256
|
const opaque = behavior.filter((entry) => entry.kind === "lockfile" || entry.file.binary);
|
|
21257
|
+
const diffLines = input.files.reduce((sum, file) => sum + file.added + file.deleted, 0);
|
|
21258
|
+
const counted = diffLines === lines && input.files.length === behavior.length ? "" : ` counted (the whole diff is ${plural(diffLines, "line")} in ${plural(input.files.length, "file")}; docs, comments, formatting, generated copies and lockfile lines are not counted)`;
|
|
21256
21259
|
const result = (lane, reasons) => ({
|
|
21257
21260
|
lane,
|
|
21258
21261
|
reasons,
|
|
@@ -21272,9 +21275,9 @@ function computeLane(input) {
|
|
|
21272
21275
|
input.files.length ? "only docs, comments, formatting or generated copies changed" : "no changes"
|
|
21273
21276
|
]);
|
|
21274
21277
|
if (lines >= fullMinLines)
|
|
21275
|
-
return result("full", [`large diff: ${lines} lines (≥ ${fullMinLines})`]);
|
|
21278
|
+
return result("full", [`large diff: ${lines} lines (≥ ${fullMinLines})${counted}`]);
|
|
21276
21279
|
if (lines > selfMaxLines)
|
|
21277
|
-
return result("focused", [`${lines} lines changed (> ${selfMaxLines})`]);
|
|
21280
|
+
return result("focused", [`${lines} lines changed (> ${selfMaxLines})${counted}`]);
|
|
21278
21281
|
if (behavior.length > selfMaxFiles)
|
|
21279
21282
|
return result("focused", [`${behavior.length} behavior files changed (> ${selfMaxFiles})`]);
|
|
21280
21283
|
if (opaque.length)
|
|
@@ -21282,7 +21285,7 @@ function computeLane(input) {
|
|
|
21282
21285
|
`a lockfile or binary changed: ${opaque.slice(0, 3).map((entry) => entry.file.path).join(", ")}${opaque.length > 3 ? ", …" : ""}`
|
|
21283
21286
|
]);
|
|
21284
21287
|
return result("self", [
|
|
21285
|
-
`small change: ${lines
|
|
21288
|
+
`small change: ${plural(lines, "line")} in ${plural(behavior.length, "file")}${counted}, no risk path`
|
|
21286
21289
|
]);
|
|
21287
21290
|
}
|
|
21288
21291
|
function untrackedStat(cwd, file) {
|
|
@@ -14142,6 +14142,7 @@ var DOC_EXT = /\.(?:md|mdx|markdown|rst|adoc)$/iu;
|
|
|
14142
14142
|
var DOC_NAMES = /^(?:license|licence|notice|authors|changelog|changes|contributors)$/iu;
|
|
14143
14143
|
var INSTRUCTIONS = /(?:^|\/)(?:AGENTS|CLAUDE|GEMINI|SKILL)\.md$|(?:^|\/)(?:skills|agents|commands|rules|prompts)\/[^/]+/iu;
|
|
14144
14144
|
var TEST_PATH = /(?:^|\/)(?:test|tests|__tests__)\/|\.(?:test|spec)\.[^/]+$|_test\.[^/]+$/iu;
|
|
14145
|
+
var plural = (count, noun) => `${count} ${noun}${count === 1 ? "" : "s"}`;
|
|
14145
14146
|
var basename = (file) => file.slice(file.lastIndexOf("/") + 1);
|
|
14146
14147
|
var isDoc = (file) => !INSTRUCTIONS.test(file) && (DOC_EXT.test(file) || DOC_NAMES.test(basename(file)));
|
|
14147
14148
|
function kindOf(file) {
|
|
@@ -14200,6 +14201,8 @@ function computeLane(input) {
|
|
|
14200
14201
|
const behavior = kinds.filter((entry) => entry.kind === "behavior" || entry.kind === "test" || entry.kind === "lockfile");
|
|
14201
14202
|
const lines = behavior.filter((entry) => entry.kind !== "lockfile").reduce((sum, entry) => sum + entry.file.added + entry.file.deleted, 0);
|
|
14202
14203
|
const opaque = behavior.filter((entry) => entry.kind === "lockfile" || entry.file.binary);
|
|
14204
|
+
const diffLines = input.files.reduce((sum, file) => sum + file.added + file.deleted, 0);
|
|
14205
|
+
const counted = diffLines === lines && input.files.length === behavior.length ? "" : ` counted (the whole diff is ${plural(diffLines, "line")} in ${plural(input.files.length, "file")}; docs, comments, formatting, generated copies and lockfile lines are not counted)`;
|
|
14203
14206
|
const result = (lane, reasons) => ({
|
|
14204
14207
|
lane,
|
|
14205
14208
|
reasons,
|
|
@@ -14219,9 +14222,9 @@ function computeLane(input) {
|
|
|
14219
14222
|
input.files.length ? "only docs, comments, formatting or generated copies changed" : "no changes"
|
|
14220
14223
|
]);
|
|
14221
14224
|
if (lines >= fullMinLines)
|
|
14222
|
-
return result("full", [`large diff: ${lines} lines (≥ ${fullMinLines})`]);
|
|
14225
|
+
return result("full", [`large diff: ${lines} lines (≥ ${fullMinLines})${counted}`]);
|
|
14223
14226
|
if (lines > selfMaxLines)
|
|
14224
|
-
return result("focused", [`${lines} lines changed (> ${selfMaxLines})`]);
|
|
14227
|
+
return result("focused", [`${lines} lines changed (> ${selfMaxLines})${counted}`]);
|
|
14225
14228
|
if (behavior.length > selfMaxFiles)
|
|
14226
14229
|
return result("focused", [`${behavior.length} behavior files changed (> ${selfMaxFiles})`]);
|
|
14227
14230
|
if (opaque.length)
|
|
@@ -14229,7 +14232,7 @@ function computeLane(input) {
|
|
|
14229
14232
|
`a lockfile or binary changed: ${opaque.slice(0, 3).map((entry) => entry.file.path).join(", ")}${opaque.length > 3 ? ", …" : ""}`
|
|
14230
14233
|
]);
|
|
14231
14234
|
return result("self", [
|
|
14232
|
-
`small change: ${lines
|
|
14235
|
+
`small change: ${plural(lines, "line")} in ${plural(behavior.length, "file")}${counted}, no risk path`
|
|
14233
14236
|
]);
|
|
14234
14237
|
}
|
|
14235
14238
|
function untrackedStat(cwd, file) {
|
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-f602mw4d.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.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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.0.
|
|
45
|
-
"@workit-dev/mcp": "^1.0.
|
|
44
|
+
"@workit-dev/core": "^1.0.4",
|
|
45
|
+
"@workit-dev/mcp": "^1.0.4"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24"
|