@brainervirus/workit-codex 2.5.0 → 2.6.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/.codex-plugin/plugin.json +1 -1
- package/dist/launch-mcp.js +1 -0
- package/dist/workit-hook.js +3 -4
- package/package.json +3 -3
package/dist/launch-mcp.js
CHANGED
|
@@ -22540,6 +22540,7 @@ var SUPPORT_MATRIX = {
|
|
|
22540
22540
|
node: { minimum: "24", current: "24.20.0" },
|
|
22541
22541
|
opencode: { minimum: "1.18.30", current: "1.18.34" },
|
|
22542
22542
|
codex: { cli: "0.153.4", desktopPackage: "26.901.20858", bundledCodexCli: "0.153.0-alpha.5" },
|
|
22543
|
+
claudeCode: { cli: "2.1.288" },
|
|
22543
22544
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
22544
22545
|
};
|
|
22545
22546
|
|
package/dist/workit-hook.js
CHANGED
|
@@ -15423,6 +15423,8 @@ var shellPolicy = (cwd, command) => {
|
|
|
15423
15423
|
var usable2 = (value) => value === "native" || value === "partial";
|
|
15424
15424
|
var NONE2 = { kind: "none" };
|
|
15425
15425
|
var offered = new Set;
|
|
15426
|
+
var CLAUDE_WORKTREE_IMPLEMENTER = "workit:implementer";
|
|
15427
|
+
var subagentStartText = (host, descriptor, event) => host === "claude_code" && event.agentType === CLAUDE_WORKTREE_IMPLEMENTER ? `Workit observed ${descriptor.label} subagent ${event.agentId} (${event.agentType}) working in its own git worktree: it may edit and commit there, within its brief's scope. Before the first commit, switch to a policy-compliant branch (\`git switch -c <type>/<slug>\`, e.g. feature/<slug>); branch policy hooks still deny protected or non-compliant branches. Never push, open a PR, or merge unless the brief asks for it.` : `Workit observed ${descriptor.label} subagent ${event.agentId} (${event.agentType}) as read-only/agent-guided; writer delegation is unavailable.`;
|
|
15426
15428
|
function handleHook(input, deps) {
|
|
15427
15429
|
const { descriptor } = deps;
|
|
15428
15430
|
const event = input.event;
|
|
@@ -15448,10 +15450,7 @@ function handleHook(input, deps) {
|
|
|
15448
15450
|
case "shell.pre":
|
|
15449
15451
|
return usable2(descriptor.shellPolicy.deny) ? shellPolicy(input.cwd, event.command) : NONE2;
|
|
15450
15452
|
case "subagent.start":
|
|
15451
|
-
return {
|
|
15452
|
-
kind: "context",
|
|
15453
|
-
text: `Workit observed ${descriptor.label} subagent ${event.agentId} (${event.agentType}) as read-only/agent-guided; writer delegation is unavailable.`
|
|
15454
|
-
};
|
|
15453
|
+
return { kind: "context", text: subagentStartText(input.host, descriptor, event) };
|
|
15455
15454
|
case "compact.pre":
|
|
15456
15455
|
return {
|
|
15457
15456
|
kind: "notice",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-codex",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Codex CLI/desktop plugin — shared MCP transport, hooks, and fourteen 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": "^2.
|
|
42
|
-
"@brainervirus/workit-mcp": "^2.
|
|
41
|
+
"@brainervirus/workit-core": "^2.6.0",
|
|
42
|
+
"@brainervirus/workit-mcp": "^2.6.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=24"
|