@brainervirus/workit-claude-code 8.19.0 → 8.19.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workit",
3
3
  "displayName": "Workit",
4
- "version": "8.19.0",
4
+ "version": "8.19.2",
5
5
  "description": "Workflow rails for agentic coding: task context on every session, branch policy on shell commands, and the workit method skills",
6
6
  "author": {
7
7
  "name": "BrainerVirus"
@@ -149,6 +149,12 @@ const hasTaskStore = (cwd) => {
149
149
  }
150
150
  };
151
151
 
152
+ /** Text that may name the issued-session registries (the guard in write-gate.ts judges it). */
153
+ const mentionsIssued = (text) => {
154
+ const flat = (value) => value.replaceAll("\\", "/").toLowerCase();
155
+ return /issued/i.test(text) || flat(text).includes(flat(stateDir()));
156
+ };
157
+
152
158
  const fastAllow = (() => {
153
159
  try {
154
160
  const value = JSON.parse(payload);
@@ -156,6 +162,7 @@ const fastAllow = (() => {
156
162
  if (value?.hook_event_name === "PostToolUse")
157
163
  return typeof command === "string" && !/\bcommit\b/.test(command);
158
164
  if (value?.hook_event_name !== "PreToolUse") return false;
165
+ if (mentionsIssued(JSON.stringify(value.tool_input ?? {}))) return false;
159
166
  if (SHELLS.has(value.tool_name) && typeof command === "string") {
160
167
  if (WORKIT_DELIVERY.test(command)) return false;
161
168
  if (maybeHeavy(command, String(value.cwd ?? "."))) return false;