tollgate-cli 0.2.0 → 0.2.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.
- package/README.md +1 -0
- package/dist/tollgate.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ Your team approves before your coding agent does something you can't undo.
|
|
|
6
6
|
|
|
7
7
|
- **Approved:** the command continues, through Claude Code's normal permission check (Guard mode, the default).
|
|
8
8
|
- **Denied with a reason:** the agent receives the reason as its next instruction and revises its plan.
|
|
9
|
+
- **A teammate asks a question:** the agent receives it and answers in the description of its next try; the team sees that answer on the new card and decides then.
|
|
9
10
|
- **Nobody answers in time:** the gate is **parked** and approvers who haven't voted get a reminder (and one more an hour later). The agent moves on, and once a teammate approves, the exact same command passes on retry (single use, 24 h).
|
|
10
11
|
|
|
11
12
|
Every other command runs untouched; the hook adds about 50 ms.
|
package/dist/tollgate.mjs
CHANGED
|
@@ -20212,7 +20212,7 @@ var PARK_MARGIN_SEC = 15;
|
|
|
20212
20212
|
function denyMessages(gate) {
|
|
20213
20213
|
const who = gate.decidedBy || "a teammate";
|
|
20214
20214
|
return {
|
|
20215
|
-
denied: `Denied by ${who} in TG-${gate.code}: ${gate.denyReason ?? "no reason given"}. Do not retry this command as is. Change your plan to address the reason, then propose the new command.`,
|
|
20215
|
+
denied: gate.question ? `${who} asked a question in TG-${gate.code} before deciding: "${gate.question}" Answer it specifically and honestly in the description of your next Bash call, then run the same command again so the team can decide. If the answer changes your plan, change the command too.` : `Denied by ${who} in TG-${gate.code}: ${gate.denyReason ?? "no reason given"}. Do not retry this command as is. Change your plan to address the reason, then propose the new command.`,
|
|
20216
20216
|
parked: `Parked as TG-${gate.code}: nobody on the team decided in time. Continue with other work that doesn't need this command. Retry the exact same command later; once the team approves TG-${gate.code} it passes immediately (${gate.url}).`,
|
|
20217
20217
|
expired: `TG-${gate.code} expired without approval. Ask the user whether to raise it again.`
|
|
20218
20218
|
};
|
|
@@ -20388,7 +20388,7 @@ function writeRepoFiles(input2) {
|
|
|
20388
20388
|
}
|
|
20389
20389
|
|
|
20390
20390
|
// src/main.ts
|
|
20391
|
-
var HELP = `tollgate ${"0.2.
|
|
20391
|
+
var HELP = `tollgate ${"0.2.1"}: your team approves risky agent commands before they run
|
|
20392
20392
|
|
|
20393
20393
|
Usage:
|
|
20394
20394
|
npx tollgate-cli init --token <tg_\u2026> [--server <url>] [--repo <owner/name>]
|
|
@@ -20572,7 +20572,7 @@ async function main() {
|
|
|
20572
20572
|
return runUnlink();
|
|
20573
20573
|
case "--version":
|
|
20574
20574
|
case "-v":
|
|
20575
|
-
process.stdout.write(`${"0.2.
|
|
20575
|
+
process.stdout.write(`${"0.2.1"}
|
|
20576
20576
|
`);
|
|
20577
20577
|
return;
|
|
20578
20578
|
default:
|