@brainervirus/workit-codex 8.4.0 → 8.5.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/workit-hook.js
CHANGED
|
@@ -6,6 +6,7 @@ var payload = "";
|
|
|
6
6
|
for await (const chunk of process.stdin)
|
|
7
7
|
payload += String(chunk);
|
|
8
8
|
var SHELL_TOOLS = new Set(["bash", "unified-exec"]);
|
|
9
|
+
var WRITE_TOOLS = new Set(["applypatch", "edit", "write"]);
|
|
9
10
|
var quietEvent = () => {
|
|
10
11
|
try {
|
|
11
12
|
const value = JSON.parse(payload);
|
|
@@ -14,7 +15,10 @@ var quietEvent = () => {
|
|
|
14
15
|
return null;
|
|
15
16
|
if (typeof value.cwd !== "string" || typeof value.tool_name !== "string")
|
|
16
17
|
return null;
|
|
17
|
-
const
|
|
18
|
+
const tool = value.tool_name.toLowerCase();
|
|
19
|
+
if (event === "PreToolUse" && WRITE_TOOLS.has(tool.replace(/[_-]/g, "")))
|
|
20
|
+
return null;
|
|
21
|
+
const shell = SHELL_TOOLS.has(tool);
|
|
18
22
|
const command = value.tool_input?.command;
|
|
19
23
|
const text = Array.isArray(command) ? command.join(" ") : String(command ?? "");
|
|
20
24
|
if (!shell)
|
|
@@ -33,6 +37,6 @@ if (quiet)
|
|
|
33
37
|
process.stdout.write(`${JSON.stringify({ hookSpecificOutput: { hookEventName: quiet } })}
|
|
34
38
|
`);
|
|
35
39
|
else {
|
|
36
|
-
const { runCodexHook } = await import("./workit-hook-
|
|
40
|
+
const { runCodexHook } = await import("./workit-hook-4g395jn3.js");
|
|
37
41
|
await runCodexHook([payload]);
|
|
38
42
|
}
|
package/hooks/hooks.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"hooks": [{ "type": "command", "command": "node ${PLUGIN_ROOT}/dist/workit-hook.js" }]
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
|
+
"UserPromptSubmit": [
|
|
10
|
+
{
|
|
11
|
+
"hooks": [{ "type": "command", "command": "node ${PLUGIN_ROOT}/dist/workit-hook.js" }]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
9
14
|
"PreToolUse": [
|
|
10
15
|
{
|
|
11
16
|
"matcher": "*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-codex",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, and sixteen method skills",
|
|
6
6
|
"keywords": [
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"build": "bun scripts/build.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@brainervirus/workit-core": "^8.
|
|
42
|
-
"@brainervirus/workit-mcp": "^8.
|
|
41
|
+
"@brainervirus/workit-core": "^8.5.0",
|
|
42
|
+
"@brainervirus/workit-mcp": "^8.5.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=24"
|
|
@@ -15,8 +15,8 @@ proposes and stops. Nothing changes until the user approves.
|
|
|
15
15
|
`retro:` row in `workit ledger list --type decision`), else the last ~10
|
|
16
16
|
sessions. State the window in one line.
|
|
17
17
|
2. **Read through workit, cheapest first.** Every finding cites these:
|
|
18
|
-
- `workit ledger list --last 200`: rulings
|
|
19
|
-
|
|
18
|
+
- `workit ledger list --last 200`: rulings, failed/self verdicts, handoffs,
|
|
19
|
+
check runs, CI reruns, `skill.loaded` rows (skipped skills: routing).
|
|
20
20
|
- `workit pr status --pr <n>` for each recent PR: threads, failing checks.
|
|
21
21
|
- `git log --oneline -50`, plus reverts and fixups after review.
|
|
22
22
|
- `workit knowledge lint`: today's AGENTS.md and need-based files.
|