pushary 1.9.280 → 1.9.282
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/CHANGELOG.md +11 -0
- package/README.md +18 -0
- package/data/cursor-plugin/README.md +17 -1
- package/data/openclaw-plugin/README.md +17 -0
- package/data/vscode-plugin/README.md +16 -1
- package/dist/bin/pushary-bell-hook.js +3 -3
- package/dist/bin/pushary-claude.js +2 -2
- package/dist/bin/pushary-clean.js +4 -4
- package/dist/bin/pushary-codex-hook.js +4 -4
- package/dist/bin/pushary-codex-session.js +2 -2
- package/dist/bin/pushary-daemon.js +5 -5
- package/dist/bin/pushary-doctor.js +45 -28
- package/dist/bin/pushary-elicitation-hook.js +3 -3
- package/dist/bin/pushary-gemini-hook.js +3 -3
- package/dist/bin/pushary-hook.js +4 -4
- package/dist/bin/pushary-login.js +3 -3
- package/dist/bin/pushary-notification-hook.js +3 -3
- package/dist/bin/pushary-opencode-hook.js +3 -3
- package/dist/bin/pushary-permission-denied-hook.js +4 -4
- package/dist/bin/pushary-permission-hook.js +4 -4
- package/dist/bin/pushary-post-hook.js +3 -3
- package/dist/bin/pushary-prompt-hook.js +3 -3
- package/dist/bin/pushary-session-end-hook.js +3 -3
- package/dist/bin/pushary-session-start-hook.js +5 -5
- package/dist/bin/pushary-setup.js +11 -9
- package/dist/bin/pushary-status.js +2 -2
- package/dist/bin/pushary-stop-hook.js +3 -3
- package/dist/bin/pushary-stopfailure-hook.js +3 -3
- package/dist/bin/pushary-transcript-register.js +2 -2
- package/dist/bin/pushary-transcripts.js +2 -2
- package/dist/bin/pushary-upgrade.js +5 -5
- package/dist/bin/pushary-wait.js +1 -1
- package/dist/{chunk-HE5SRKH3.js → chunk-2SE3TSWT.js} +1 -1
- package/dist/{chunk-6CQ75CCI.js → chunk-3FCGMTG2.js} +1 -2
- package/dist/chunk-7DZ7UZQE.js +68 -0
- package/dist/{chunk-EMB2EWLG.js → chunk-DWL2XZNZ.js} +1 -1
- package/dist/{chunk-2USACEVR.js → chunk-GOMIXT5C.js} +2 -2
- package/dist/{chunk-EC52MD7O.js → chunk-JUZC524C.js} +1 -1
- package/dist/{chunk-ZOADLPWB.js → chunk-L25W4SZ2.js} +1 -1
- package/dist/{chunk-GYELGSCS.js → chunk-MYXHCXD3.js} +1 -1
- package/dist/{chunk-Z3EV2HKF.js → chunk-OPWXKDXN.js} +1 -1
- package/dist/{chunk-IHF7J7ZN.js → chunk-RECYGQIM.js} +1 -1
- package/dist/{chunk-WF6QID2G.js → chunk-SCR7JFIZ.js} +1 -1
- package/dist/{codex-app-cards-switch-PNZGL4UT.js → codex-app-cards-switch-DGTEKXMX.js} +3 -3
- package/dist/{codex-desktop-launch-CGIHCZL6.js → codex-desktop-launch-HCEBT2IM.js} +1 -1
- package/dist/{reapply-YLNXKKWT.js → reapply-RT4T77RQ.js} +3 -3
- package/dist/src/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-2SMGO6SE.js +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.282
|
|
4
|
+
|
|
5
|
+
- `pushary doctor`'s Wait Ladder now shows what the Claude Code hook will do. It reads your mode the way the hook does and applies it to every line, so under Always (Every time) a risky command reads "wait for your phone up to 590s" instead of "ask your phone for 20s". When a mode override is active it says so once, and that it is your own mode, since one session can still have its own.
|
|
6
|
+
- Instead of the first four rules, the ladder shows the rule a risky command such as `rm -rf build` resolves to, for example `Bash(rm:*)`. `pushary wait status` still lists every rule.
|
|
7
|
+
- When agents are stopped from Pushary, the ladder says only that: every call is refused and nothing waits. When your mode cannot be read, it says so, and warns that the waits shown may be shorter than what the hook does, instead of showing them as if no override were set.
|
|
8
|
+
|
|
9
|
+
## 1.9.281
|
|
10
|
+
|
|
11
|
+
- `pushary clean` now finishes on a computer with no background-service manager, such as a Docker container, CI or Linux without systemd, when no background service was ever installed there. It removes the hooks, the MCP entries and `~/.pushary` as usual, and stops a Pushary daemon that is still running on its own. Before, it printed "could not stop or uninstall: Native background-service manager is unavailable" and removed nothing, so Pushary could not be uninstalled there. When a background service is installed and cannot be removed, clean still stops before changing anything.
|
|
12
|
+
- The sign-in step of setup now names the fingerprint: "Fingerprint: 48 4D A1 F1. The sign-in page and the app show the same; check it matches." Before, it said "The page and the app show 48 4D A1 F1", so an agent told to show you the fingerprint had to guess which text it was.
|
|
13
|
+
|
|
3
14
|
## 1.9.280
|
|
4
15
|
|
|
5
16
|
- When Claude Code stops because you hit your Claude usage limit, the phone now says which limit and when it resets, for example "Claude Code stopped at your 5-hour limit. It resets 3pm (Europe/Berlin)." The reset time is the one Claude Code printed on your computer, in its time zone. Before, the push said only "Rate limited by the API".
|
package/README.md
CHANGED
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/pushary)
|
|
5
5
|
[](./LICENSE)
|
|
6
6
|
|
|
7
|
+
Get your AI agent's approval requests on your phone. Deny from the notification, or approve once your phone is unlocked; a risky step opens in the app. Turn on calls (beta) to have Pushary ring you when you miss one.
|
|
8
|
+
|
|
9
|
+
Works with Claude Code, Codex, Cursor, Gemini CLI, Hermes, OpenCode, VS Code, OpenClaw, Qwen Code, Droid, Devin CLI, OpenHands, Grok Build and any MCP client.
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://pushary.com/press/readme/agent-approval-light.png" alt="Claude Code stops before git push origin main and asks for approval on your phone, with Approve, Deny and Deny with note" width="720" />
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
[Try an approval in your browser, no account needed](https://pushary.com/try?utm_source=npm&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=pushary-cli) · [Quickstart](https://pushary.com/docs/agents/quickstart?utm_source=npm&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=pushary-cli)
|
|
16
|
+
|
|
17
|
+
## Questions this answers
|
|
18
|
+
|
|
19
|
+
- **How do I approve Claude Code from my phone?** Run `npx -y pushary@latest setup`. Claude Code's permission requests then arrive as a push with Approve and Deny. Codex, Cursor, Gemini CLI and OpenCode work the same way.
|
|
20
|
+
- **Can my AI agent call my phone when it needs an approval?** Yes, on any paid plan; calls are in beta. Run `npx -y pushary@latest calls on` to add and confirm your number. If you haven't answered the push after a minute (you can change that), Pushary calls, reads the request and sends your spoken answer back to the agent. Calls work for Claude Code, Codex, Gemini CLI, Hermes and [other agents](https://pushary.com/docs/agents/phone-calls?utm_source=npm&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=pushary-cli), not yet Cursor, VS Code, OpenCode, OpenClaw or OpenHands.
|
|
21
|
+
- **How do I get a notification when Claude Code finishes?** At your desk, `npx -y pushary@latest bell` rings in the terminal for free, with no account. Away from it, a paid plan sends a push to your phone when a task finishes or fails.
|
|
22
|
+
- **Can I stop my agent from running `rm -rf` or a force push without me?** Yes, on agents with hooks. Destructive commands such as `rm -rf` and a force push wait for your answer, and your policy decides what happens if you don't give one. If you run the agent with permissions skipped, pick **Stop me for risky steps** in Settings, Connections to keep being asked.
|
|
23
|
+
- **What happens if I don't answer?** Silence never approves anything, unless you chose auto-approve as a rule's timeout action.
|
|
24
|
+
|
|
7
25
|
You step away while Claude Code runs the tests. It finishes and asks whether to open a pull request. Pushary sends the question to your phone. If you miss the push and have calls enabled, Pushary can ring you and read the question aloud. Say “show me the test results first” and Claude gets your answer in the session you left running.
|
|
8
26
|
|
|
9
27
|
```bash
|
|
@@ -4,10 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
<h1 align="center">Pushary for Cursor</h1>
|
|
6
6
|
|
|
7
|
-
<p align="center">
|
|
7
|
+
<p align="center">Approve the Cursor agent's shell commands, MCP calls and file edits from your phone. Deny from the notification, or approve once your phone is unlocked; a risky step opens in the app. Get a push when the agent finishes or needs an answer.</p>
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
Built for Cursor. The same Pushary account also covers Claude Code, Codex, Gemini CLI, Hermes and OpenCode.
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<img src="https://pushary.com/press/readme/agent-approval-light.png" alt="Claude Code stops before git push origin main and asks for approval on your phone, with Approve, Deny and Deny with note" width="720" />
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
[Try an approval in your browser, no account needed](https://pushary.com/try?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=cursor-plugin) · [Cursor guide](https://pushary.com/docs/agents/guides/cursor?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=cursor-plugin)
|
|
18
|
+
|
|
19
|
+
## Questions this answers
|
|
20
|
+
|
|
21
|
+
- **How do I approve Cursor agent commands from my phone?** Run `npx -y pushary@latest setup`. It installs this plugin and registers the approval gate. Shell commands, MCP calls and file writes, edits and deletes then go through your Pushary policy, and the ones it asks about reach your phone.
|
|
22
|
+
- **How do I get a notification when the Cursor agent finishes?** The agent sends a push when a long task finishes, or when a build, test or deploy fails.
|
|
23
|
+
- **Can Pushary call me when Cursor waits for an approval?** Not yet. Cursor approvals reach you by push. [Calls](https://pushary.com/docs/agents/phone-calls?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=cursor-plugin) work for Claude Code, Codex, Gemini CLI, Hermes and other agents.
|
|
24
|
+
- **What happens if I don't answer?** An unresolved file action is denied. Shell and MCP calls can hand off to Cursor's own prompt.
|
|
25
|
+
- **Is it free?** The plugin is MIT. Phone delivery needs a Pushary plan, from $9.99 a month on the web. New customers start with a 3-day trial, card required.
|
|
26
|
+
|
|
11
27
|
## What it is
|
|
12
28
|
|
|
13
29
|
Pushary connects Cursor to your phone. When the agent finishes a task, needs a decision, or is about to run something risky, it reaches you with a push notification. You answer from the lock screen and the agent keeps going. It works even when you have stepped away from your computer.
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @pushary/openclaw
|
|
2
2
|
|
|
3
|
+
Approve your OpenClaw agent's risky tool calls from your phone. The call runs only after you tap Approve, and anything else blocks it.
|
|
4
|
+
|
|
5
|
+
Built for OpenClaw 2026.11.3 or later, including an always-on OpenClaw on a small VPS. The same Pushary account also covers Claude Code, Codex, Cursor and Hermes.
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<img src="https://pushary.com/press/readme/agent-approval-light.png" alt="Claude Code stops before git push origin main and asks for approval on your phone, with Approve, Deny and Deny with note" width="720" />
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
[Try an approval in your browser, no account needed](https://pushary.com/try?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=pushary-openclaw) · [OpenClaw guide](https://pushary.com/docs/agents/guides/openclaw?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=pushary-openclaw)
|
|
12
|
+
|
|
13
|
+
## Questions this answers
|
|
14
|
+
|
|
15
|
+
- **How do I approve OpenClaw tool calls from my phone?** Run `npx -y pushary@latest setup --agents openclaw` on the machine that runs OpenClaw. Gated calls, such as `exec`, then wait for your answer on your phone.
|
|
16
|
+
- **What happens if I don't answer?** The call is blocked. A no, no answer, a cancelled request or an unreachable server all block it.
|
|
17
|
+
- **Can Pushary call me when OpenClaw waits?** Not yet. OpenClaw approvals reach you by push.
|
|
18
|
+
- **Is it free?** The plugin is MIT. Phone delivery needs a Pushary plan, from $9.99 a month on the web. New customers start with a 3-day trial, card required.
|
|
19
|
+
|
|
3
20
|
Phone approvals for [OpenClaw](https://openclaw.ai). Before your OpenClaw agent runs a gated tool call, Pushary asks you on your phone. The call runs only after you tap Approve. Anything else blocks it.
|
|
4
21
|
|
|
5
22
|
It is built for an OpenClaw that runs for you alone, often always on, on a small VPS. It works on the Agent and Agent Pro plans, with push approvals on your phone. Phone calls are not available for OpenClaw yet.
|
|
@@ -4,10 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
<h1 align="center">Pushary for VS Code</h1>
|
|
6
6
|
|
|
7
|
-
<p align="center">
|
|
7
|
+
<p align="center">Approve the VS Code agent's terminal commands, file edits and MCP calls from your phone. Deny from the notification, or approve once your phone is unlocked; a risky step opens in the app. Get a push when the agent finishes or needs an answer.</p>
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
Built for the agent in VS Code, including GitHub Copilot agent mode. The same Pushary account also covers Claude Code, Codex, Cursor, Gemini CLI and Hermes.
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<img src="https://pushary.com/press/readme/agent-approval-light.png" alt="Claude Code stops before git push origin main and asks for approval on your phone, with Approve, Deny and Deny with note" width="720" />
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
[Try an approval in your browser, no account needed](https://pushary.com/try?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=vscode-plugin) · [Supported agents](https://pushary.com/docs/agents/supported-agents?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=vscode-plugin)
|
|
18
|
+
|
|
19
|
+
## Questions this answers
|
|
20
|
+
|
|
21
|
+
- **How do I approve GitHub Copilot agent commands in VS Code from my phone?** Run `npx -y pushary@latest setup --agents vscode`. Terminal commands, file edits, patches and MCP calls then go through your Pushary policy, and the ones it asks about reach your phone.
|
|
22
|
+
- **How do I get a notification when the VS Code agent finishes?** The agent sends a push when a long task finishes, or when a build, test or deploy fails.
|
|
23
|
+
- **Can Pushary call me when VS Code waits for an approval?** Not yet. VS Code approvals reach you by push. [Calls](https://pushary.com/docs/agents/phone-calls?utm_source=github&utm_medium=readme&utm_campaign=readme_aeo_dec3&utm_content=vscode-plugin) work for Claude Code, Codex, Gemini CLI, Hermes and other agents.
|
|
24
|
+
- **Is it free?** The plugin is MIT. Phone delivery needs a Pushary plan, from $9.99 a month on the web. New customers start with a 3-day trial, card required.
|
|
25
|
+
|
|
11
26
|
## What it is
|
|
12
27
|
|
|
13
28
|
Pushary connects the VS Code agent to your phone. When the agent finishes a task, needs a decision, or is about to run something risky, it reaches you with a push notification. You answer from the lock screen and the agent keeps going. It works even when you have stepped away from your computer.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
6
|
import {
|
|
7
7
|
handleBell
|
|
8
8
|
} from "../chunk-7WCBGOXC.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-2SE3TSWT.js";
|
|
10
10
|
import "../chunk-WHB622LP.js";
|
|
11
11
|
import "../chunk-Q5MYEDCP.js";
|
|
12
12
|
import "../chunk-HJ25OOZL.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-3FCGMTG2.js";
|
|
14
14
|
import "../chunk-YEQF4H76.js";
|
|
15
15
|
import "../chunk-OVUJLLPD.js";
|
|
16
16
|
import "../chunk-2562EGWD.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
registerTranscript,
|
|
13
13
|
registeredTranscriptEnabled,
|
|
14
14
|
startDraftPublisher
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-2SE3TSWT.js";
|
|
16
16
|
import "../chunk-WHB622LP.js";
|
|
17
17
|
import {
|
|
18
18
|
ensureDaemonRunning
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-3FCGMTG2.js";
|
|
20
20
|
import "../chunk-YEQF4H76.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_SESSION,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
storedMacAppState,
|
|
16
16
|
storedPusharyKeychainServices,
|
|
17
17
|
waitForMacAppExit
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-GOMIXT5C.js";
|
|
19
19
|
import {
|
|
20
20
|
PUSHARY_SKILL_NAME,
|
|
21
21
|
PUSHARY_SKILL_SOURCE,
|
|
22
22
|
createGuards
|
|
23
23
|
} from "../chunk-XNF5DVAF.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-OPWXKDXN.js";
|
|
25
25
|
import "../chunk-XCEN33UP.js";
|
|
26
26
|
import {
|
|
27
27
|
describeCliKeyRevocation,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
} from "../chunk-7CIMT2QH.js";
|
|
112
112
|
import {
|
|
113
113
|
disableDaemonService
|
|
114
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-3FCGMTG2.js";
|
|
115
115
|
import {
|
|
116
116
|
hookOwnerOf,
|
|
117
117
|
isHookTakeoverReceipt,
|
|
@@ -669,7 +669,7 @@ var guardedDaemonRemoval = async () => {
|
|
|
669
669
|
wouldNote("stop and uninstall", "Pushary background service");
|
|
670
670
|
return { kind: "ok" };
|
|
671
671
|
}
|
|
672
|
-
return disableDaemonService(
|
|
672
|
+
return disableDaemonService();
|
|
673
673
|
};
|
|
674
674
|
var guardedInstructionBlockRemoval = (path) => {
|
|
675
675
|
if (!dryRun) return removeInstructionBlock(path);
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
} from "../chunk-JXVZO2TC.js";
|
|
24
24
|
import {
|
|
25
25
|
readHookInput
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
27
27
|
import "../chunk-H5BATWAL.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-2SE3TSWT.js";
|
|
29
29
|
import "../chunk-WHB622LP.js";
|
|
30
30
|
import "../chunk-Q5MYEDCP.js";
|
|
31
31
|
import "../chunk-HJ25OOZL.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-3FCGMTG2.js";
|
|
33
33
|
import "../chunk-YEQF4H76.js";
|
|
34
34
|
import {
|
|
35
35
|
CODEX_AGENT,
|
|
@@ -1087,7 +1087,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1087
1087
|
};
|
|
1088
1088
|
var repairCodexHoldsQuietly = async () => {
|
|
1089
1089
|
try {
|
|
1090
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
1090
|
+
const { repairCodexHolds } = await import("../reapply-RT4T77RQ.js");
|
|
1091
1091
|
repairCodexHolds();
|
|
1092
1092
|
} catch {
|
|
1093
1093
|
return;
|
|
@@ -19,7 +19,7 @@ var desktopAccount = async () => {
|
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
var desktopLaunch = await import("../codex-desktop-launch-
|
|
22
|
+
var desktopLaunch = await import("../codex-desktop-launch-HCEBT2IM.js").catch(() => null);
|
|
23
23
|
if (desktopLaunch === null && appBehindTheProxy !== void 0) {
|
|
24
24
|
process.exitCode = await letCodexRunWithoutPushary(appBehindTheProxy, args.slice(3));
|
|
25
25
|
} else {
|
|
@@ -27,7 +27,7 @@ if (desktopLaunch === null && appBehindTheProxy !== void 0) {
|
|
|
27
27
|
const stop = () => abort.abort();
|
|
28
28
|
if (!args[0]?.startsWith("--desktop")) for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) process.on(signal, stop);
|
|
29
29
|
try {
|
|
30
|
-
const { codexDesktopCommand } = desktopLaunch ?? await import("../codex-desktop-launch-
|
|
30
|
+
const { codexDesktopCommand } = desktopLaunch ?? await import("../codex-desktop-launch-HCEBT2IM.js");
|
|
31
31
|
const desktop = await codexDesktopCommand(args, [process.execPath, ...process.execArgv, process.argv[1], "codex"], desktopAccount);
|
|
32
32
|
if (desktop !== null) process.exitCode = desktop;
|
|
33
33
|
else {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import "../chunk-6SJ3YYPS.js";
|
|
7
7
|
import {
|
|
8
8
|
inspectConfiguredManagedProviders
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-SCR7JFIZ.js";
|
|
10
10
|
import "../chunk-TWWOQKXK.js";
|
|
11
11
|
import "../chunk-7OV4MW6B.js";
|
|
12
12
|
import {
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
HEARTBEAT_INTERVAL_MS,
|
|
18
18
|
sendHeartbeat
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-JUZC524C.js";
|
|
20
|
+
import "../chunk-L25W4SZ2.js";
|
|
21
21
|
import {
|
|
22
22
|
readLocalAutoUpdateReport
|
|
23
23
|
} from "../chunk-JXVZO2TC.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "../chunk-PATTVCJS.js";
|
|
28
28
|
import {
|
|
29
29
|
startRegisteredTranscripts
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-2SE3TSWT.js";
|
|
31
31
|
import "../chunk-WHB622LP.js";
|
|
32
32
|
import {
|
|
33
33
|
HERMES_INSTALL_MARKER_FILE,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
requestDaemonHandoff,
|
|
67
67
|
stopDaemonRunning,
|
|
68
68
|
writeDaemonNeedsLogin
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-3FCGMTG2.js";
|
|
70
70
|
import {
|
|
71
71
|
hookOwnerOf
|
|
72
72
|
} from "../chunk-YEQF4H76.js";
|
|
@@ -12,11 +12,17 @@ import {
|
|
|
12
12
|
describeHermesShellGate,
|
|
13
13
|
describeHermesState,
|
|
14
14
|
hermesRepairStep
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-MYXHCXD3.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
CLAUDE_CODE_HOOK_BUDGET,
|
|
18
|
+
RISKY_EXAMPLE_CALL,
|
|
19
|
+
STOPPED_FROM_PUSHARY_LADDER,
|
|
20
|
+
UNREAD_MODE_LADDER,
|
|
21
|
+
describeGateVerdictWait,
|
|
22
|
+
describeHookWaitLadder,
|
|
23
|
+
gateVerdictRuleOf,
|
|
18
24
|
waitRuleLabelOf
|
|
19
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-7DZ7UZQE.js";
|
|
20
26
|
import {
|
|
21
27
|
writeJsonError,
|
|
22
28
|
writeStdoutFully
|
|
@@ -46,11 +52,11 @@ import {
|
|
|
46
52
|
import {
|
|
47
53
|
readMachineReadiness,
|
|
48
54
|
readManagedControlEvidence
|
|
49
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-JUZC524C.js";
|
|
50
56
|
import {
|
|
51
57
|
assessCodexHookTrust,
|
|
52
58
|
readCodexTrustForPusharyHooks
|
|
53
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-L25W4SZ2.js";
|
|
54
60
|
import {
|
|
55
61
|
AUTO_UPDATE_DISABLE_ENV,
|
|
56
62
|
autoUpdateOffReason,
|
|
@@ -159,7 +165,7 @@ import {
|
|
|
159
165
|
readServiceExecPath,
|
|
160
166
|
serviceStartFileChecks,
|
|
161
167
|
versionManagerOf
|
|
162
|
-
} from "../chunk-
|
|
168
|
+
} from "../chunk-3FCGMTG2.js";
|
|
163
169
|
import {
|
|
164
170
|
GEMINI_HOOK_BINARY,
|
|
165
171
|
claudeOtherHolders,
|
|
@@ -180,7 +186,11 @@ import {
|
|
|
180
186
|
missingGeminiHookEvents,
|
|
181
187
|
pusharyHookExecutable
|
|
182
188
|
} from "../chunk-YEQF4H76.js";
|
|
183
|
-
import
|
|
189
|
+
import {
|
|
190
|
+
CLAUDE_CODE_AGENT,
|
|
191
|
+
fetchModeState,
|
|
192
|
+
getPolicy
|
|
193
|
+
} from "../chunk-OVUJLLPD.js";
|
|
184
194
|
import "../chunk-2562EGWD.js";
|
|
185
195
|
import "../chunk-DI7VQ4PL.js";
|
|
186
196
|
import "../chunk-Z25VDYAL.js";
|
|
@@ -313,12 +323,15 @@ import {
|
|
|
313
323
|
MAX_HOOK_ACTIVATION_EVIDENCE_ROWS,
|
|
314
324
|
SUPPORT_DISCORD,
|
|
315
325
|
SUPPORT_EMAIL,
|
|
326
|
+
WILDCARD_TOOL_PATTERN,
|
|
316
327
|
computerOsOfPlatform,
|
|
317
328
|
hookActivationResult,
|
|
318
329
|
hookCompatibleProfile,
|
|
319
330
|
isHookActivationReport,
|
|
320
331
|
isValidApiKey,
|
|
321
|
-
redactSecretsFromContent
|
|
332
|
+
redactSecretsFromContent,
|
|
333
|
+
resolveGate,
|
|
334
|
+
resolvePolicy
|
|
322
335
|
} from "../chunk-LE2GNKVF.js";
|
|
323
336
|
import "../chunk-MLKGABMK.js";
|
|
324
337
|
|
|
@@ -1022,6 +1035,21 @@ var skipped = (label, why) => {
|
|
|
1022
1035
|
var checking = (label) => {
|
|
1023
1036
|
agentsChecked.push(label);
|
|
1024
1037
|
};
|
|
1038
|
+
var printResolvedWaitLadder = (modeState, config) => {
|
|
1039
|
+
const modeOverride = modeState.mode ?? config.modeOverride ?? null;
|
|
1040
|
+
if (modeState.degraded) {
|
|
1041
|
+
console.log(` ${warn} ${UNREAD_MODE_LADDER} ${dim("(pushary mode status)")}`);
|
|
1042
|
+
} else if (modeOverride) {
|
|
1043
|
+
console.log(` ${warn} mode override active: ${cyan(modeOverride)}, applied below ${dim("(your own mode; one session can still differ \xB7 pushary mode status)")}`);
|
|
1044
|
+
}
|
|
1045
|
+
const defaultRule = resolvePolicy(config, WILDCARD_TOOL_PATTERN, modeOverride);
|
|
1046
|
+
const defaultWindow = modeOverride ? "" : `${cyan(`${defaultRule.pushFirstSeconds}s`)} ${dim("\xB7")} `;
|
|
1047
|
+
console.log(` ${dim("\xB7")} default: ${defaultWindow}${describeHookWaitLadder(defaultRule, CLAUDE_CODE_HOOK_BUDGET)}`);
|
|
1048
|
+
const risky = resolveGate({ modeState, config, toolName: RISKY_EXAMPLE_CALL.toolName, toolInputs: [RISKY_EXAMPLE_CALL.toolInput] });
|
|
1049
|
+
const riskyRule = gateVerdictRuleOf(risky);
|
|
1050
|
+
const riskyLabel = riskyRule === null ? RISKY_EXAMPLE_CALL.toolName : waitRuleLabelOf(riskyRule);
|
|
1051
|
+
console.log(` ${dim("\xB7")} ${riskyLabel} ${dim(`(${RISKY_EXAMPLE_CALL.toolInput.command})`)}: ${describeGateVerdictWait(risky, CLAUDE_CODE_HOOK_BUDGET)}`);
|
|
1052
|
+
};
|
|
1025
1053
|
var main = async () => {
|
|
1026
1054
|
console.log();
|
|
1027
1055
|
console.log(` ${bold("Pushary Doctor")}`);
|
|
@@ -1806,27 +1834,16 @@ var main = async () => {
|
|
|
1806
1834
|
}
|
|
1807
1835
|
if (apiKey) {
|
|
1808
1836
|
try {
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
});
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
const wildcard = policy.policies?.find((p) => p.tool === "*");
|
|
1818
|
-
const defaultWindow = policy.defaultPushFirstSeconds ?? 20;
|
|
1819
|
-
const defaultLadder = describeWaitLadder(wildcard ?? { tool: "*", mode: "push_first", pushFirstSeconds: defaultWindow, timeoutSeconds: 0, timeoutAction: "escalate" });
|
|
1820
|
-
console.log(` ${dim("\xB7")} default: ${cyan(`${defaultWindow}s`)} ${dim("\xB7")} ${defaultLadder}`);
|
|
1821
|
-
if (policy.modeOverride) {
|
|
1822
|
-
console.log(` ${warn} mode override active: ${cyan(policy.modeOverride)} ${dim("(pushary mode status)")}`);
|
|
1823
|
-
}
|
|
1824
|
-
const overrides = (policy.policies ?? []).filter((p) => p.tool !== "*").slice(0, 4);
|
|
1825
|
-
for (const p of overrides) {
|
|
1826
|
-
console.log(` ${dim("\xB7")} ${waitRuleLabelOf(p.tool)}: ${describeWaitLadder(p)}`);
|
|
1827
|
-
}
|
|
1828
|
-
console.log(` ${dim("Tune it:")} ${cyan(pushWindowChangeStep(keyScope, getBaseUrl()))} ${dim("\xB7 full ladder:")} ${cyan("pushary wait status")}`);
|
|
1837
|
+
const modeState = await fetchModeState(apiKey);
|
|
1838
|
+
const config = await getPolicy(apiKey, modeState, CLAUDE_CODE_AGENT.type, true);
|
|
1839
|
+
console.log();
|
|
1840
|
+
console.log(` ${dim("Wait Ladder")} ${dim("(what happens when you don't answer)")}`);
|
|
1841
|
+
if (modeState.kill) {
|
|
1842
|
+
console.log(` ${warn} ${STOPPED_FROM_PUSHARY_LADDER} ${dim("(pushary mode status)")}`);
|
|
1843
|
+
} else {
|
|
1844
|
+
printResolvedWaitLadder(modeState, config);
|
|
1829
1845
|
}
|
|
1846
|
+
console.log(` ${dim("Tune it:")} ${cyan(pushWindowChangeStep(keyScope, getBaseUrl()))} ${dim("\xB7 full ladder:")} ${cyan("pushary wait status")}`);
|
|
1830
1847
|
} catch {
|
|
1831
1848
|
}
|
|
1832
1849
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-2SE3TSWT.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import "../chunk-Q5MYEDCP.js";
|
|
9
9
|
import "../chunk-HJ25OOZL.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-3FCGMTG2.js";
|
|
11
11
|
import "../chunk-YEQF4H76.js";
|
|
12
12
|
import {
|
|
13
13
|
announceSubscriptionRequired
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "../chunk-JXVZO2TC.js";
|
|
17
17
|
import {
|
|
18
18
|
readHookInput
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
20
20
|
import "../chunk-H5BATWAL.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-2SE3TSWT.js";
|
|
22
22
|
import "../chunk-WHB622LP.js";
|
|
23
23
|
import "../chunk-Q5MYEDCP.js";
|
|
24
24
|
import "../chunk-HJ25OOZL.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-3FCGMTG2.js";
|
|
26
26
|
import "../chunk-YEQF4H76.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_SESSION,
|
package/dist/bin/pushary-hook.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-VSF3OSWI.js";
|
|
5
5
|
import {
|
|
6
6
|
handlePreToolUse
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-RECYGQIM.js";
|
|
8
8
|
import "../chunk-FYGOACNH.js";
|
|
9
9
|
import "../chunk-IJOGKO3Z.js";
|
|
10
10
|
import "../chunk-I5RNSFXB.js";
|
|
@@ -12,9 +12,9 @@ import "../chunk-6SJ3YYPS.js";
|
|
|
12
12
|
import "../chunk-HPYVOBVO.js";
|
|
13
13
|
import {
|
|
14
14
|
readToolHookCall
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
16
16
|
import "../chunk-H5BATWAL.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-2SE3TSWT.js";
|
|
18
18
|
import "../chunk-WHB622LP.js";
|
|
19
19
|
import {
|
|
20
20
|
activeHookSource,
|
|
@@ -25,7 +25,7 @@ import "../chunk-HJ25OOZL.js";
|
|
|
25
25
|
import {
|
|
26
26
|
exitOnHelpFlag
|
|
27
27
|
} from "../chunk-7CIMT2QH.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-3FCGMTG2.js";
|
|
29
29
|
import "../chunk-YEQF4H76.js";
|
|
30
30
|
import "../chunk-OVUJLLPD.js";
|
|
31
31
|
import "../chunk-2562EGWD.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import "../chunk-PUZZELE6.js";
|
|
14
14
|
import {
|
|
15
15
|
refreshEmbeddedAgentKeys
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-SCR7JFIZ.js";
|
|
17
17
|
import "../chunk-TWWOQKXK.js";
|
|
18
18
|
import {
|
|
19
19
|
writeJsonError,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "../chunk-36CZVHOH.js";
|
|
22
22
|
import "../chunk-3EGEA4KH.js";
|
|
23
23
|
import "../chunk-O6LVUSRY.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-L25W4SZ2.js";
|
|
25
25
|
import "../chunk-WHB622LP.js";
|
|
26
26
|
import "../chunk-67D6KDPJ.js";
|
|
27
27
|
import "../chunk-DGIMLJ7N.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "../chunk-7CIMT2QH.js";
|
|
43
43
|
import {
|
|
44
44
|
recoverDaemonAfterLogin
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-3FCGMTG2.js";
|
|
46
46
|
import "../chunk-YEQF4H76.js";
|
|
47
47
|
import "../chunk-OVUJLLPD.js";
|
|
48
48
|
import "../chunk-2562EGWD.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-2SE3TSWT.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
11
11
|
} from "../chunk-Q5MYEDCP.js";
|
|
12
12
|
import "../chunk-HJ25OOZL.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-3FCGMTG2.js";
|
|
14
14
|
import "../chunk-YEQF4H76.js";
|
|
15
15
|
import {
|
|
16
16
|
handleNotification
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
} from "../chunk-HPYVOBVO.js";
|
|
14
14
|
import {
|
|
15
15
|
readHookInput
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
17
17
|
import "../chunk-H5BATWAL.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-2SE3TSWT.js";
|
|
19
19
|
import "../chunk-WHB622LP.js";
|
|
20
20
|
import "../chunk-QG742PJG.js";
|
|
21
21
|
import {
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "../chunk-U4P4NDVB.js";
|
|
38
38
|
import "../chunk-Q5MYEDCP.js";
|
|
39
39
|
import "../chunk-HJ25OOZL.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-3FCGMTG2.js";
|
|
41
41
|
import "../chunk-YEQF4H76.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_SESSION,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionDenied
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RECYGQIM.js";
|
|
5
5
|
import "../chunk-FYGOACNH.js";
|
|
6
6
|
import {
|
|
7
7
|
takeHookHoldBudget
|
|
@@ -12,13 +12,13 @@ import "../chunk-6SJ3YYPS.js";
|
|
|
12
12
|
import "../chunk-HPYVOBVO.js";
|
|
13
13
|
import {
|
|
14
14
|
readHookInput
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
16
16
|
import "../chunk-H5BATWAL.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-2SE3TSWT.js";
|
|
18
18
|
import "../chunk-WHB622LP.js";
|
|
19
19
|
import "../chunk-Q5MYEDCP.js";
|
|
20
20
|
import "../chunk-HJ25OOZL.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-3FCGMTG2.js";
|
|
22
22
|
import "../chunk-YEQF4H76.js";
|
|
23
23
|
import "../chunk-OVUJLLPD.js";
|
|
24
24
|
import "../chunk-2562EGWD.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-VSF3OSWI.js";
|
|
5
5
|
import {
|
|
6
6
|
handlePermissionRequest
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-RECYGQIM.js";
|
|
8
8
|
import "../chunk-FYGOACNH.js";
|
|
9
9
|
import {
|
|
10
10
|
takeHookHoldBudget
|
|
@@ -15,9 +15,9 @@ import "../chunk-6SJ3YYPS.js";
|
|
|
15
15
|
import "../chunk-HPYVOBVO.js";
|
|
16
16
|
import {
|
|
17
17
|
readToolHookInput
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
19
19
|
import "../chunk-H5BATWAL.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-2SE3TSWT.js";
|
|
21
21
|
import "../chunk-WHB622LP.js";
|
|
22
22
|
import {
|
|
23
23
|
activeHookSource,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
profileFromArgv
|
|
27
27
|
} from "../chunk-Q5MYEDCP.js";
|
|
28
28
|
import "../chunk-HJ25OOZL.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-3FCGMTG2.js";
|
|
30
30
|
import "../chunk-YEQF4H76.js";
|
|
31
31
|
import "../chunk-OVUJLLPD.js";
|
|
32
32
|
import "../chunk-2562EGWD.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
} from "../chunk-FYGOACNH.js";
|
|
6
6
|
import {
|
|
7
7
|
readHookInput
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
9
9
|
import "../chunk-H5BATWAL.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-2SE3TSWT.js";
|
|
11
11
|
import "../chunk-WHB622LP.js";
|
|
12
12
|
import {
|
|
13
13
|
activeHookSource,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
profileFromArgv
|
|
17
17
|
} from "../chunk-Q5MYEDCP.js";
|
|
18
18
|
import "../chunk-HJ25OOZL.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-3FCGMTG2.js";
|
|
20
20
|
import "../chunk-YEQF4H76.js";
|
|
21
21
|
import {
|
|
22
22
|
emitHookOutput,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-2SE3TSWT.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
11
11
|
} from "../chunk-Q5MYEDCP.js";
|
|
12
12
|
import "../chunk-HJ25OOZL.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-3FCGMTG2.js";
|
|
14
14
|
import "../chunk-YEQF4H76.js";
|
|
15
15
|
import {
|
|
16
16
|
emitHookOutput,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
6
|
import {
|
|
7
7
|
WRAPPER_ACTIVE_ENV
|
|
8
8
|
} from "../chunk-A3JTWB74.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-2SE3TSWT.js";
|
|
10
10
|
import "../chunk-WHB622LP.js";
|
|
11
11
|
import {
|
|
12
12
|
activeHookSource,
|
|
13
13
|
activeIdentity
|
|
14
14
|
} from "../chunk-Q5MYEDCP.js";
|
|
15
15
|
import "../chunk-HJ25OOZL.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-3FCGMTG2.js";
|
|
17
17
|
import "../chunk-YEQF4H76.js";
|
|
18
18
|
import {
|
|
19
19
|
handleSessionEnd
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reapplyClaudeForVersion
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SCR7JFIZ.js";
|
|
5
5
|
import "../chunk-TWWOQKXK.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-L25W4SZ2.js";
|
|
7
7
|
import {
|
|
8
8
|
triggerAutoUpdate
|
|
9
9
|
} from "../chunk-JXVZO2TC.js";
|
|
10
10
|
import {
|
|
11
11
|
readHookInput
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
13
13
|
import "../chunk-H5BATWAL.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-2SE3TSWT.js";
|
|
15
15
|
import "../chunk-WHB622LP.js";
|
|
16
16
|
import "../chunk-67D6KDPJ.js";
|
|
17
17
|
import "../chunk-DGIMLJ7N.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
activeIdentity
|
|
27
27
|
} from "../chunk-Q5MYEDCP.js";
|
|
28
28
|
import "../chunk-HJ25OOZL.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-3FCGMTG2.js";
|
|
30
30
|
import "../chunk-YEQF4H76.js";
|
|
31
31
|
import {
|
|
32
32
|
CLAUDE_CODE_AGENT,
|
|
@@ -106,10 +106,10 @@ import {
|
|
|
106
106
|
describeHermesState,
|
|
107
107
|
hermesGateShellCommand,
|
|
108
108
|
needsCodexTrustStep
|
|
109
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-MYXHCXD3.js";
|
|
110
110
|
import {
|
|
111
111
|
describeWaitLadder
|
|
112
|
-
} from "../chunk-
|
|
112
|
+
} from "../chunk-7DZ7UZQE.js";
|
|
113
113
|
import {
|
|
114
114
|
writeJsonError,
|
|
115
115
|
writeStdoutFully
|
|
@@ -163,13 +163,13 @@ import {
|
|
|
163
163
|
import {
|
|
164
164
|
readManagedControlEvidence,
|
|
165
165
|
waitForMachineReadiness
|
|
166
|
-
} from "../chunk-
|
|
166
|
+
} from "../chunk-JUZC524C.js";
|
|
167
167
|
import {
|
|
168
168
|
ensureCodexTrustsPusharyHooks,
|
|
169
169
|
hermesHistoryHelperRecordPath,
|
|
170
170
|
hermesHistoryNeedsTheCliHelper,
|
|
171
171
|
recordInstalledHermesHistoryHelper
|
|
172
|
-
} from "../chunk-
|
|
172
|
+
} from "../chunk-L25W4SZ2.js";
|
|
173
173
|
import {
|
|
174
174
|
describeAutoUpdateAnnouncement,
|
|
175
175
|
takeAutoUpdateAnnouncement
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
} from "../chunk-XNF5DVAF.js";
|
|
187
187
|
import {
|
|
188
188
|
codexEngineBehindLauncher
|
|
189
|
-
} from "../chunk-
|
|
189
|
+
} from "../chunk-OPWXKDXN.js";
|
|
190
190
|
import "../chunk-XCEN33UP.js";
|
|
191
191
|
import {
|
|
192
192
|
CURSOR_PLUGIN_BACKUP_INFIX,
|
|
@@ -347,7 +347,7 @@ import {
|
|
|
347
347
|
stopDaemonService,
|
|
348
348
|
versionManagerOf,
|
|
349
349
|
waitForDaemonRemoteProof
|
|
350
|
-
} from "../chunk-
|
|
350
|
+
} from "../chunk-3FCGMTG2.js";
|
|
351
351
|
import {
|
|
352
352
|
GEMINI_HOOK_BINARY,
|
|
353
353
|
GEMINI_HOOK_EVENTS,
|
|
@@ -1016,10 +1016,12 @@ var describeStartFailure = (started) => {
|
|
|
1016
1016
|
if (started.kind === "unavailable") return started.detail;
|
|
1017
1017
|
return "pairing could not start";
|
|
1018
1018
|
};
|
|
1019
|
-
var
|
|
1020
|
-
|
|
1021
|
-
|
|
1019
|
+
var fingerprintWitnesses = (browser, app) => {
|
|
1020
|
+
if (browser && app) return "The sign-in page and the app show";
|
|
1021
|
+
if (browser) return "The sign-in page shows";
|
|
1022
|
+
return "The app shows";
|
|
1022
1023
|
};
|
|
1024
|
+
var fingerprintLine = (ui, fingerprint, browser, app) => ` ${ui.dim(`Fingerprint: ${fingerprint}. ${fingerprintWitnesses(browser, app)} the same; check it matches.`)}`;
|
|
1023
1025
|
var revokeKeyThatArrivedLate = async (apiKey) => {
|
|
1024
1026
|
await revokeOwnKey(apiKey, getBaseUrl()).catch(() => {
|
|
1025
1027
|
});
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
describeLastSeen,
|
|
16
16
|
listMachines
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-JUZC524C.js";
|
|
18
18
|
import {
|
|
19
19
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
20
20
|
activeKeyVerdictOf,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
exitOnHelpFlag
|
|
42
42
|
} from "../chunk-7CIMT2QH.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-3FCGMTG2.js";
|
|
44
44
|
import "../chunk-YEQF4H76.js";
|
|
45
45
|
import "../chunk-OVUJLLPD.js";
|
|
46
46
|
import "../chunk-2562EGWD.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-2SE3TSWT.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
11
11
|
} from "../chunk-Q5MYEDCP.js";
|
|
12
12
|
import "../chunk-HJ25OOZL.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-3FCGMTG2.js";
|
|
14
14
|
import "../chunk-YEQF4H76.js";
|
|
15
15
|
import {
|
|
16
16
|
emitHookOutput,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWL2XZNZ.js";
|
|
5
5
|
import "../chunk-H5BATWAL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-2SE3TSWT.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
11
11
|
} from "../chunk-Q5MYEDCP.js";
|
|
12
12
|
import "../chunk-HJ25OOZL.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-3FCGMTG2.js";
|
|
14
14
|
import "../chunk-YEQF4H76.js";
|
|
15
15
|
import {
|
|
16
16
|
handleStopFailure
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
registerTranscript,
|
|
8
8
|
workFromTheHomeFolderOnWindows
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-2SE3TSWT.js";
|
|
10
10
|
import "../chunk-WHB622LP.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-3FCGMTG2.js";
|
|
12
12
|
import "../chunk-YEQF4H76.js";
|
|
13
13
|
import "../chunk-2562EGWD.js";
|
|
14
14
|
import "../chunk-DI7VQ4PL.js";
|
|
@@ -10,14 +10,14 @@ import "../chunk-O6LVUSRY.js";
|
|
|
10
10
|
import {
|
|
11
11
|
clearSnapshotRecipientPins,
|
|
12
12
|
snapshotRecipientPinFile
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-2SE3TSWT.js";
|
|
14
14
|
import "../chunk-WHB622LP.js";
|
|
15
15
|
import "../chunk-4EJ6BFQ6.js";
|
|
16
16
|
import "../chunk-7CCJLPFF.js";
|
|
17
17
|
import {
|
|
18
18
|
exitOnHelpFlag
|
|
19
19
|
} from "../chunk-7CIMT2QH.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-3FCGMTG2.js";
|
|
21
21
|
import "../chunk-YEQF4H76.js";
|
|
22
22
|
import "../chunk-2562EGWD.js";
|
|
23
23
|
import "../chunk-DI7VQ4PL.js";
|
|
@@ -29,13 +29,13 @@ import "../chunk-Z7F7SITX.js";
|
|
|
29
29
|
import {
|
|
30
30
|
ensureCodexTrustAfterReapply,
|
|
31
31
|
reapplyAllAgents
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-SCR7JFIZ.js";
|
|
33
33
|
import "../chunk-TWWOQKXK.js";
|
|
34
34
|
import {
|
|
35
35
|
HERMES_RESTART_COMMAND,
|
|
36
36
|
describeCodexTrustConfirmation,
|
|
37
37
|
describeHermesHistoryHelperRecord
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-MYXHCXD3.js";
|
|
39
39
|
import "../chunk-O6LVUSRY.js";
|
|
40
40
|
import {
|
|
41
41
|
keepLinuxDaemonAfterLogout,
|
|
@@ -43,11 +43,11 @@ import {
|
|
|
43
43
|
} from "../chunk-AIZYJJGD.js";
|
|
44
44
|
import {
|
|
45
45
|
waitForMachineReadiness
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-JUZC524C.js";
|
|
47
47
|
import {
|
|
48
48
|
hermesHistoryHelperRecordFailed,
|
|
49
49
|
hermesHistoryHelperRecordPath
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-L25W4SZ2.js";
|
|
51
51
|
import {
|
|
52
52
|
AUTO_UPDATE_DISABLE_ENV,
|
|
53
53
|
AUTO_UPDATE_FLAG,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
replaceDaemonService,
|
|
101
101
|
stopDaemonService,
|
|
102
102
|
waitForDaemonRemoteProof
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-3FCGMTG2.js";
|
|
104
104
|
import "../chunk-YEQF4H76.js";
|
|
105
105
|
import "../chunk-OVUJLLPD.js";
|
|
106
106
|
import "../chunk-2562EGWD.js";
|
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -1045,8 +1045,7 @@ var deactivateDaemonService = async (action, options) => {
|
|
|
1045
1045
|
const platform = options.platform ?? process.platform;
|
|
1046
1046
|
const supported = ["darwin", "linux", "win32"].includes(platform);
|
|
1047
1047
|
const managerAvailable = supported && daemonServiceManagerAvailable(options);
|
|
1048
|
-
const
|
|
1049
|
-
const service = supported && !managerAvailable && absenceMustBeProven ? { kind: "failed", detail: "Native background-service manager is unavailable" } : managerAvailable ? manageDaemonService(action, options) : { kind: "ok" };
|
|
1048
|
+
const service = supported && !managerAvailable && hasDaemonServiceDefinition(options) ? { kind: "failed", detail: "Native background-service manager is unavailable" } : managerAvailable ? manageDaemonService(action, options) : { kind: "ok" };
|
|
1050
1049
|
const stopped = await stopDaemonRunning(options);
|
|
1051
1050
|
const failures = [
|
|
1052
1051
|
service.kind === "ok" ? null : service.detail,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MCP_TOOLS_THAT_SEND_SOMETHING_OUT_LABEL,
|
|
3
|
+
MCP_TOOLS_THAT_SEND_SOMETHING_OUT_PATTERN,
|
|
4
|
+
WILDCARD_TOOL_PATTERN,
|
|
5
|
+
effectiveWaitSeconds,
|
|
6
|
+
hookMaxWaitSeconds
|
|
7
|
+
} from "./chunk-LE2GNKVF.js";
|
|
8
|
+
|
|
9
|
+
// src/wait-ladder.ts
|
|
10
|
+
var WAIT_RULE_LABELS = {
|
|
11
|
+
[WILDCARD_TOOL_PATTERN]: "default (*)",
|
|
12
|
+
[MCP_TOOLS_THAT_SEND_SOMETHING_OUT_PATTERN]: MCP_TOOLS_THAT_SEND_SOMETHING_OUT_LABEL
|
|
13
|
+
};
|
|
14
|
+
var waitRuleLabelOf = (tool) => Object.hasOwn(WAIT_RULE_LABELS, tool) ? WAIT_RULE_LABELS[tool] ?? tool : tool;
|
|
15
|
+
var HAND_BACK = "then hand back to the agent's own prompt";
|
|
16
|
+
var describeWaitLadder = (p) => {
|
|
17
|
+
if (p.mode === "terminal_only") return "no approval alerts, the agent's own prompt decides";
|
|
18
|
+
if (p.mode === "notify_only") return "send an approval alert, then the agent's own prompt decides";
|
|
19
|
+
if (p.mode === "push_only") {
|
|
20
|
+
if (p.timeoutAction === "wait") return `wait for your phone, ${HAND_BACK}`;
|
|
21
|
+
const tail = p.timeoutAction === "approve" ? "then auto-approve" : p.timeoutAction === "deny" ? "then auto-deny" : HAND_BACK;
|
|
22
|
+
return `wait for your phone up to ${p.timeoutSeconds}s, ${tail}`;
|
|
23
|
+
}
|
|
24
|
+
return `when you are away or Pushary cannot tell, ask your phone for ${p.pushFirstSeconds}s, ${HAND_BACK}`;
|
|
25
|
+
};
|
|
26
|
+
var HANDED_BACK_ACTION = "escalate";
|
|
27
|
+
var CLAUDE_CODE_HOOK_BUDGET = "claude";
|
|
28
|
+
var RISKY_EXAMPLE_CALL = { toolName: "Bash", toolInput: { command: "rm -rf build" } };
|
|
29
|
+
var outlastsTheHookBudget = (requestedSeconds, agent) => requestedSeconds > hookMaxWaitSeconds(agent);
|
|
30
|
+
var servedPushOnlyWait = (p, agent) => {
|
|
31
|
+
const requestedSeconds = effectiveWaitSeconds(p.timeoutAction, p.timeoutSeconds, agent);
|
|
32
|
+
const handsBack = p.timeoutAction === "wait" || outlastsTheHookBudget(requestedSeconds, agent);
|
|
33
|
+
return {
|
|
34
|
+
...p,
|
|
35
|
+
timeoutSeconds: Math.min(requestedSeconds, hookMaxWaitSeconds(agent)),
|
|
36
|
+
timeoutAction: handsBack ? HANDED_BACK_ACTION : p.timeoutAction
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
var describeHookWaitLadder = (p, agent) => describeWaitLadder(p.mode === "push_only" ? servedPushOnlyWait(p, agent) : p);
|
|
40
|
+
var STOPPED_FROM_PUSHARY_LADDER = "agents are stopped from Pushary, every call is refused and nothing waits";
|
|
41
|
+
var UNREAD_MODE_LADDER = "your mode could not be read, so the waits below may be shorter than what the hook does";
|
|
42
|
+
var describeGateVerdictWait = (verdict, agent) => {
|
|
43
|
+
switch (verdict.kind) {
|
|
44
|
+
case "kill":
|
|
45
|
+
return STOPPED_FROM_PUSHARY_LADDER;
|
|
46
|
+
case "deny":
|
|
47
|
+
return "refused by a rule, nothing is asked";
|
|
48
|
+
case "allow":
|
|
49
|
+
return "approved by a rule, nothing is asked";
|
|
50
|
+
case "defer":
|
|
51
|
+
return "the agent's own prompt decides";
|
|
52
|
+
case "gate":
|
|
53
|
+
return describeHookWaitLadder(verdict.policy, agent);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var gateVerdictRuleOf = (verdict) => verdict.kind === "kill" ? null : verdict.policy.tool;
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
waitRuleLabelOf,
|
|
60
|
+
describeWaitLadder,
|
|
61
|
+
CLAUDE_CODE_HOOK_BUDGET,
|
|
62
|
+
RISKY_EXAMPLE_CALL,
|
|
63
|
+
describeHookWaitLadder,
|
|
64
|
+
STOPPED_FROM_PUSHARY_LADDER,
|
|
65
|
+
UNREAD_MODE_LADDER,
|
|
66
|
+
describeGateVerdictWait,
|
|
67
|
+
gateVerdictRuleOf
|
|
68
|
+
};
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OPWXKDXN.js";
|
|
13
13
|
import {
|
|
14
14
|
writeHuman
|
|
15
15
|
} from "./chunk-QCGNGEGE.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-HJ25OOZL.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3FCGMTG2.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
29
|
} from "./chunk-KSHM2X7A.js";
|
|
@@ -1101,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1101
1101
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1104
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1104
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-DGTEKXMX.js");
|
|
1105
1105
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
turnCodexAppCardsOff,
|
|
25
25
|
turnCodexAppCardsOn,
|
|
26
26
|
whyLaunchctlFailed
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-GOMIXT5C.js";
|
|
28
|
+
import "./chunk-OPWXKDXN.js";
|
|
29
29
|
import "./chunk-XCEN33UP.js";
|
|
30
30
|
import "./chunk-QCGNGEGE.js";
|
|
31
31
|
import "./chunk-U4P4NDVB.js";
|
|
32
32
|
import "./chunk-HJ25OOZL.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-3FCGMTG2.js";
|
|
34
34
|
import "./chunk-3PSNUHC5.js";
|
|
35
35
|
import "./chunk-I2OOSUJN.js";
|
|
36
36
|
import "./chunk-DPTI6ZTZ.js";
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
refreshCodexEmbeddedKey,
|
|
16
16
|
refreshEmbeddedAgentKeys,
|
|
17
17
|
repairCodexHolds
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SCR7JFIZ.js";
|
|
19
19
|
import "./chunk-TWWOQKXK.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-L25W4SZ2.js";
|
|
21
21
|
import "./chunk-67D6KDPJ.js";
|
|
22
22
|
import "./chunk-DGIMLJ7N.js";
|
|
23
23
|
import "./chunk-3I6Z6YKA.js";
|
|
@@ -28,7 +28,7 @@ import "./chunk-QG742PJG.js";
|
|
|
28
28
|
import "./chunk-ZL46IS5W.js";
|
|
29
29
|
import "./chunk-Q5MYEDCP.js";
|
|
30
30
|
import "./chunk-HJ25OOZL.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-3FCGMTG2.js";
|
|
32
32
|
import "./chunk-YEQF4H76.js";
|
|
33
33
|
import "./chunk-OVUJLLPD.js";
|
|
34
34
|
import "./chunk-2562EGWD.js";
|
package/dist/src/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlePreToolUse
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RECYGQIM.js";
|
|
4
4
|
import "../chunk-FYGOACNH.js";
|
|
5
5
|
import "../chunk-IJOGKO3Z.js";
|
|
6
6
|
import "../chunk-I5RNSFXB.js";
|
|
7
7
|
import "../chunk-6SJ3YYPS.js";
|
|
8
8
|
import "../chunk-HPYVOBVO.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-DWL2XZNZ.js";
|
|
10
10
|
import "../chunk-H5BATWAL.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-2SE3TSWT.js";
|
|
12
12
|
import "../chunk-WHB622LP.js";
|
|
13
13
|
import "../chunk-Q5MYEDCP.js";
|
|
14
14
|
import "../chunk-HJ25OOZL.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-3FCGMTG2.js";
|
|
16
16
|
import "../chunk-YEQF4H76.js";
|
|
17
17
|
import {
|
|
18
18
|
fetchModeOverride,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushary",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.282",
|
|
4
4
|
"description": "Human-in-the-loop (HITL) for AI agents: ask a person for approvals or answers by push notification. One command connects Claude Code, Codex, Cursor, Gemini CLI and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pushary",
|
package/dist/chunk-2SMGO6SE.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MCP_TOOLS_THAT_SEND_SOMETHING_OUT_LABEL,
|
|
3
|
-
MCP_TOOLS_THAT_SEND_SOMETHING_OUT_PATTERN,
|
|
4
|
-
WILDCARD_TOOL_PATTERN
|
|
5
|
-
} from "./chunk-LE2GNKVF.js";
|
|
6
|
-
|
|
7
|
-
// src/wait-ladder.ts
|
|
8
|
-
var WAIT_RULE_LABELS = {
|
|
9
|
-
[WILDCARD_TOOL_PATTERN]: "default (*)",
|
|
10
|
-
[MCP_TOOLS_THAT_SEND_SOMETHING_OUT_PATTERN]: MCP_TOOLS_THAT_SEND_SOMETHING_OUT_LABEL
|
|
11
|
-
};
|
|
12
|
-
var waitRuleLabelOf = (tool) => Object.hasOwn(WAIT_RULE_LABELS, tool) ? WAIT_RULE_LABELS[tool] ?? tool : tool;
|
|
13
|
-
var HAND_BACK = "then hand back to the agent's own prompt";
|
|
14
|
-
var describeWaitLadder = (p) => {
|
|
15
|
-
if (p.mode === "terminal_only") return "no approval alerts, the agent's own prompt decides";
|
|
16
|
-
if (p.mode === "notify_only") return "send an approval alert, then the agent's own prompt decides";
|
|
17
|
-
if (p.mode === "push_only") {
|
|
18
|
-
if (p.timeoutAction === "wait") return `wait for your phone, ${HAND_BACK}`;
|
|
19
|
-
const tail = p.timeoutAction === "approve" ? "then auto-approve" : p.timeoutAction === "deny" ? "then auto-deny" : HAND_BACK;
|
|
20
|
-
return `wait for your phone up to ${p.timeoutSeconds}s, ${tail}`;
|
|
21
|
-
}
|
|
22
|
-
return `when you are away or Pushary cannot tell, ask your phone for ${p.pushFirstSeconds}s, ${HAND_BACK}`;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
waitRuleLabelOf,
|
|
27
|
-
describeWaitLadder
|
|
28
|
-
};
|