@pushary/agent-hooks 0.11.0 → 0.11.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.
@@ -372,7 +372,7 @@ var ensurePip = (python) => {
372
372
  }
373
373
  };
374
374
  var enablePusharyPlugin = (python) => {
375
- const snippet = 'from hermes_cli.config import load_config, save_config; c = load_config(); p = c.get("plugins") if isinstance(c.get("plugins"), dict) else {}; e = p.get("enabled") if isinstance(p.get("enabled"), list) else []; p["enabled"] = (e + ["pushary"]) if "pushary" not in e else e; c["plugins"] = p; save_config(c)';
375
+ const snippet = 'from hermes_cli.config import load_config, save_config; c = load_config(); p = c.get("plugins") if isinstance(c.get("plugins"), dict) else {}; e = p.get("enabled") if isinstance(p.get("enabled"), list) else []; p["enabled"] = (e + ["pushary"]) if "pushary" not in e else e; c["plugins"] = p; a = c.get("agent") if isinstance(c.get("agent"), dict) else {}; d = a.get("disabled_toolsets") if isinstance(a.get("disabled_toolsets"), list) else []; a["disabled_toolsets"] = (d + ["clarify"]) if "clarify" not in d else d; c["agent"] = a; save_config(c)';
376
376
  try {
377
377
  execSync(`"${python}" -c '${snippet}'`, { stdio: "pipe", timeout: 15e3 });
378
378
  return;
@@ -399,14 +399,16 @@ var setupHermes = async (_apiKey) => {
399
399
  ensurePip(python);
400
400
  execSync(`"${python}" -m pip install --upgrade hermes-plugin-pushary`, { stdio: "pipe", timeout: 18e4 });
401
401
  });
402
- await spinner("Enabling plugin", async () => {
402
+ await spinner("Enabling plugin + routing questions to push", async () => {
403
403
  enablePusharyPlugin(python);
404
404
  });
405
405
  console.log();
406
406
  console.log(` ${dim2("What this configured:")}`);
407
407
  console.log(` ${dim2("\u2022")} Native tools: pushary_notify, pushary_ask, pushary_wait, pushary_cancel`);
408
+ console.log(` ${dim2("\u2022")} Questions go to your phone: Hermes' terminal ${bold2("clarify")} tool is disabled, so pushary_ask handles every question`);
408
409
  console.log(` ${dim2("\u2022")} Auto-notifications: push alert when tools return errors`);
409
410
  console.log(` ${dim2("\u2022")} Permission gating: set ${bold2("PUSHARY_GATE_TOOLS")} to require lock-screen approval for risky tools`);
411
+ console.log(` ${dim2("To re-enable terminal prompts:")} remove ${bold2("clarify")} from ${dim2("agent.disabled_toolsets")} in ~/.hermes/config.yaml`);
410
412
  };
411
413
  var setupCodex = async (_apiKey) => {
412
414
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushary/agent-hooks",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
5
5
  "author": "Pushary <business@pushary.com>",
6
6
  "homepage": "https://pushary.com",