@oisin-ee/pi-guardrails 0.3.0 → 0.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.
@@ -177,7 +177,9 @@ export const IMPERATIVE_MSG = {
177
177
  };
178
178
  export const WAIT_MSG = "wait-gate: blocked a command that waits instead of working (sleep, watch, a follow flag, a --watch or --wait " +
179
179
  "flag, or a wait subcommand). Never hold a tool call to wait, and never re-read a log to check progress. " +
180
- "Start long work so the host reports its exit: in pi, the `bg_task` tool; in Claude Code, `run_in_background` " +
180
+ "For long work in pi, use Wrangle `run` (mcp__wrangle__run) and continue other work. " +
181
+ "Use `read` (mcp__wrangle__read) for output and `stop` (mcp__wrangle__stop) to cancel the job. " +
182
+ "Start long work so the host reports its exit: in Claude Code, `run_in_background` " +
181
183
  "or Monitor (the exit arrives as a message); in Codex, exec_command, then empty write_stdin calls, which " +
182
184
  "return when the process exits. " +
183
185
  "For CI, use ci_find and ci_watch.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/pi-guardrails",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Agent guardrails for pi, Claude Code, and Codex: Git safety, no waiting, no typing into other agents, GitOps-only clusters.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -41,7 +41,8 @@ export function codeWaitViolation(
41
41
  }
42
42
  return CODE_WAITS.some((pattern) => pattern.test(code))
43
43
  ? "wait-gate: blocked a sleep or timer wait in sandbox code. Never hold a tool call to wait. Start long work with " +
44
- "the `bg_task` tool and continue other work; its exit arrives as a message."
44
+ "Wrangle `run` (mcp__wrangle__run) and continue other work. Use `read` (mcp__wrangle__read) for output " +
45
+ "and `stop` (mcp__wrangle__stop) to cancel the job."
45
46
  : null;
46
47
  }
47
48
 
@@ -61,7 +62,8 @@ function limitMessage(
61
62
  return (
62
63
  `timeout-gate: blocked ${toolName} ${field}=${value}. The ${field} unit is ${unit === "s" ? "seconds" : "milliseconds"} ` +
63
64
  `and the limit is ${max} (${MAX_TIMEOUT_SECONDS / 60} minutes).${unitHint} ` +
64
- "For a longer job, start it with the `bg_task` tool and continue other work; its exit arrives as a message. " +
65
+ "For a longer job, start it with Wrangle `run` (mcp__wrangle__run) and continue other work. " +
66
+ "Use `read` (mcp__wrangle__read) for output and `stop` (mcp__wrangle__stop) to cancel the job. " +
65
67
  "For CI, use the ci_find and ci_watch tools."
66
68
  );
67
69
  }
@@ -229,7 +229,9 @@ export const IMPERATIVE_MSG = {
229
229
  export const WAIT_MSG =
230
230
  "wait-gate: blocked a command that waits instead of working (sleep, watch, a follow flag, a --watch or --wait " +
231
231
  "flag, or a wait subcommand). Never hold a tool call to wait, and never re-read a log to check progress. " +
232
- "Start long work so the host reports its exit: in pi, the `bg_task` tool; in Claude Code, `run_in_background` " +
232
+ "For long work in pi, use Wrangle `run` (mcp__wrangle__run) and continue other work. " +
233
+ "Use `read` (mcp__wrangle__read) for output and `stop` (mcp__wrangle__stop) to cancel the job. " +
234
+ "Start long work so the host reports its exit: in Claude Code, `run_in_background` " +
233
235
  "or Monitor (the exit arrives as a message); in Codex, exec_command, then empty write_stdin calls, which " +
234
236
  "return when the process exits. " +
235
237
  "For CI, use ci_find and ci_watch.";