jevgate 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/jevgate.js +3 -0
  2. package/package.json +1 -1
package/jevgate.js CHANGED
@@ -188,6 +188,9 @@ function log(n = 20) {
188
188
  for (const l of lines) { const r = JSON.parse(l); console.log(` ${r.ts.slice(11, 19)} ${(r.decision || r.outcome || "-").padEnd(6)} ${String(r.latency_ms).padStart(5)}ms ${r.harness.padEnd(11)} ${r.cmd}`); }
189
189
  }
190
190
 
191
+ // Piped output (jevgate log | head) must not crash the process.
192
+ process.stdout.on("error", (e) => { if (e.code === "EPIPE") process.exit(0); });
193
+
191
194
  const [cmd, arg] = process.argv.slice(2);
192
195
  ({ decide, init, login: () => login(arg), status, log: () => log(Number(arg) || 20) }[cmd] ||
193
196
  (() => console.log("usage: jevgate <init|login <token>|decide|status|log>")))();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jevgate",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Auto-approve the benign majority of agent tool calls in ~300ms, with a probability and an audit log. Escalates the rest. Never denies.",
5
5
  "keywords": [
6
6
  "codex",