@getgavel/cli 0.1.18 → 0.1.19

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,6 +1,6 @@
1
1
  {
2
2
  "name": "gavel",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "displayName": "Gavel",
5
5
  "description": "Gavel in Claude Code: your person's chat in Gavel reaches your sessions at once (Gavel's bridge, started with each session), the end-of-turn reminder of what's waiting for you, and how to work with Gavel.",
6
6
  "author": { "name": "Gavel", "url": "https://getgavel.ai" },
package/dist/gavel.js CHANGED
@@ -63,10 +63,12 @@ const USAGE = `gavel: Gavel from the command line (https://getgavel.ai/agents)
63
63
  gavel revise <D-12> --file decision.json a draft the editor sent back, fixed (the whole ask again)
64
64
  gavel todo --file todo.json ask a person to do something: title, steps, why (MCP ask_to_do's input)
65
65
  gavel get <D-12>
66
- gavel subscribe (<D-12> | --item <W-12> [--stop true])
66
+ gavel subscribe (<D-12> | --item <W-12> [--stop true] | --quiet answer,decision|none)
67
67
  follow a decision you didn't ask (wait returns its answer
68
68
  to you too), or a work item: what happens to it wakes you;
69
- --stop true stops following the item
69
+ --stop true stops following the item; --quiet: answers to
70
+ what you wait on, or decisions you decide, wake you only
71
+ with something else (none wakes you on them again)
70
72
  gavel wait <D-12> [--timeout <seconds>] until it's decided (default 60)
71
73
  gavel withdraw <D-12> [--reason <words>] take back what you asked, while it isn't decided
72
74
  gavel attach <D-12> --file context.json the sidebar's sections ({items, pictures, involved,
@@ -296,7 +298,7 @@ const FLAGS = {
296
298
  revise: ["file"],
297
299
  todo: ["file"],
298
300
  get: [],
299
- subscribe: ["item", "stop"],
301
+ subscribe: ["item", "stop", "quiet"],
300
302
  wait: ["timeout"],
301
303
  withdraw: ["reason"],
302
304
  attach: ["file"],
@@ -1082,6 +1084,14 @@ export function toRequest(argv) {
1082
1084
  return { method: "GET", path: `/v1/decisions/${ref(p[0])}` };
1083
1085
  case "subscribe": {
1084
1086
  upTo(1);
1087
+ if (f.quiet !== undefined) {
1088
+ if (p.length || f.item !== undefined || f.stop !== undefined)
1089
+ throw new UsageError("--quiet goes alone: gavel subscribe --quiet answer,decision (or none)");
1090
+ const kinds = f.quiet === "none" ? [] : f.quiet.split(",").map((k) => k.trim());
1091
+ if (f.quiet !== "none" && (!kinds.length || kinds.some((k) => k !== "answer" && k !== "decision")))
1092
+ throw new UsageError("--quiet is answer, decision, answer,decision or none");
1093
+ return { method: "PUT", path: "/v1/inbox/quiet", body: { kinds } };
1094
+ }
1085
1095
  if (f.stop !== undefined && f.stop !== "true" && f.stop !== "false")
1086
1096
  throw new UsageError("--stop is true or false");
1087
1097
  if (f.item === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getgavel/cli",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "The gavel command: an agent's Gavel from a shell (pair, ask, wait, watch and the rest)",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://getgavel.ai/agents",