pushary 1.9.228 → 1.9.230
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 +17 -1
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +6 -3
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/pushary-gate.mjs +6 -4
- package/dist/{api-CI3RZJRF.js → api-VFQNIMMQ.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +30 -30
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +35 -35
- package/dist/bin/pushary-clean.js +46 -46
- package/dist/bin/pushary-codex-bridge.js +24 -24
- package/dist/bin/pushary-codex-hook.js +36 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +70 -70
- package/dist/bin/pushary-disconnect.js +32 -32
- package/dist/bin/pushary-display-hook.js +25 -21
- package/dist/bin/pushary-doctor.js +82 -80
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +19 -19
- package/dist/bin/pushary-gemini-hook.js +33 -33
- package/dist/bin/pushary-hook.js +37 -37
- package/dist/bin/pushary-login.js +25 -25
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +14 -14
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +26 -26
- package/dist/bin/pushary-opencode-hook.js +44 -44
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +37 -37
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +30 -30
- package/dist/bin/pushary-session-start-hook.js +40 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +98 -97
- package/dist/bin/pushary-stats.js +7 -7
- package/dist/bin/pushary-status.js +37 -37
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +27 -27
- package/dist/bin/pushary-upgrade.js +64 -64
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-5KC4ZGHK.js → chunk-2ZLMVIB5.js} +1 -1
- package/dist/{chunk-FHSOKCMN.js → chunk-33HUKRXZ.js} +2 -2
- package/dist/{chunk-XGUSU5GL.js → chunk-363PPP66.js} +1 -1
- package/dist/{chunk-X7WRZROR.js → chunk-3CM4LQEB.js} +1 -1
- package/dist/{chunk-CUQAM7HU.js → chunk-3MRMHSJM.js} +4 -4
- package/dist/{chunk-M2TI7TV6.js → chunk-45YY6DBO.js} +4 -4
- package/dist/{chunk-SFMQIKFF.js → chunk-5GEKKXQK.js} +1 -1
- package/dist/{chunk-SWU2UCDO.js → chunk-5IFPQWQS.js} +5 -5
- package/dist/{chunk-FLZRTRGK.js → chunk-5PPXE3SI.js} +1 -1
- package/dist/{chunk-L623EGQO.js → chunk-5QKFTPXC.js} +1 -1
- package/dist/{chunk-QH4WPKA5.js → chunk-5W5R5XEI.js} +7 -7
- package/dist/{chunk-FFMSGUPQ.js → chunk-77UIFRGZ.js} +2 -2
- package/dist/{chunk-2AV2LA55.js → chunk-7LP4B5KW.js} +14 -5
- package/dist/{chunk-GYFGOYPB.js → chunk-7W6GRR6B.js} +1 -1
- package/dist/{chunk-QH5FF5DP.js → chunk-AHFVMYLC.js} +3 -3
- package/dist/{chunk-S6UTG4LJ.js → chunk-ASAT72UO.js} +1 -1
- package/dist/{chunk-Q7ITXOF7.js → chunk-AT65NHK5.js} +1 -1
- package/dist/{chunk-DO3WFMZ5.js → chunk-B2TX7FE7.js} +1 -1
- package/dist/{chunk-2EF5VROI.js → chunk-B7NX5VK4.js} +2 -2
- package/dist/{chunk-GCQRNUJG.js → chunk-BHOENP7P.js} +5 -5
- package/dist/{chunk-INYM2TBI.js → chunk-BQAAS4P4.js} +3 -3
- package/dist/{chunk-EE6QGPTQ.js → chunk-BVLYIGHM.js} +1 -1
- package/dist/{chunk-YZT2IGDX.js → chunk-CA6V2O4P.js} +1 -1
- package/dist/{chunk-2ZT3FA3X.js → chunk-COODHOGD.js} +5 -5
- package/dist/{chunk-2NOWUHPW.js → chunk-CW6LDFLM.js} +10 -10
- package/dist/{chunk-SZGUAYRD.js → chunk-DKH755WW.js} +1 -1
- package/dist/{chunk-25ZOOZYY.js → chunk-E3YL3XXV.js} +1 -1
- package/dist/{chunk-FQ26RX6T.js → chunk-E4HPZ6G5.js} +4 -4
- package/dist/{chunk-MRXPEYYD.js → chunk-E5T75JWL.js} +1 -1
- package/dist/{chunk-U2R4XC5I.js → chunk-EL4TJTOU.js} +2 -2
- package/dist/{chunk-KDUUD7L3.js → chunk-ENOOKJOY.js} +12 -12
- package/dist/{chunk-TYOGYI5C.js → chunk-FR5PATBB.js} +2 -2
- package/dist/{chunk-EWTOUUY7.js → chunk-HKOJCK27.js} +5 -5
- package/dist/{chunk-MIP6DW7K.js → chunk-I3MD3R2D.js} +3 -3
- package/dist/{chunk-NFLYCV6G.js → chunk-J3GMEUVP.js} +1 -1
- package/dist/{chunk-VMCP2DWC.js → chunk-JIQIHE3T.js} +3 -3
- package/dist/{chunk-DMV7RSRK.js → chunk-JTLRN6MU.js} +4 -4
- package/dist/{chunk-XCDBVL2S.js → chunk-KMGLYAGI.js} +5 -5
- package/dist/{chunk-OLUZBOGE.js → chunk-LSBIDOLC.js} +5 -5
- package/dist/{chunk-6Z4VE672.js → chunk-M7QDLSPI.js} +1 -1
- package/dist/{chunk-4Z2LUSMO.js → chunk-MJIMTNKY.js} +2 -2
- package/dist/{chunk-OF7NXNDT.js → chunk-MMDZKAM2.js} +2 -2
- package/dist/{chunk-BSQNAQXM.js → chunk-MVIQ4BNA.js} +2 -2
- package/dist/{chunk-CVQS6KSD.js → chunk-NNBCKQC6.js} +2 -2
- package/dist/{chunk-KGZT6ZFF.js → chunk-NNLYSNO2.js} +7 -7
- package/dist/{chunk-LIH5EZS6.js → chunk-NPCYWBY5.js} +1 -1
- package/dist/{chunk-PQR4ZJMT.js → chunk-NTMFDJKD.js} +7 -7
- package/dist/{chunk-PW2AYZ4D.js → chunk-NTXYJQMD.js} +1 -1
- package/dist/{chunk-D34XZC5S.js → chunk-OUTUSZGR.js} +4 -4
- package/dist/{chunk-4RBIRPO5.js → chunk-P4P6M45X.js} +2 -2
- package/dist/{chunk-UWXUBQ24.js → chunk-PL2EJ55K.js} +3 -3
- package/dist/{chunk-4OUPIVQG.js → chunk-Q7L4H2A3.js} +5 -5
- package/dist/{chunk-6KSKCZXW.js → chunk-QTJWBUA4.js} +12 -12
- package/dist/{chunk-S72I76AB.js → chunk-RPPSP7JL.js} +5 -5
- package/dist/{chunk-ITMFCY34.js → chunk-SLY7LXA7.js} +19 -19
- package/dist/{chunk-ORB3C6LN.js → chunk-SYBYJBIC.js} +13 -13
- package/dist/{chunk-NG3W65KF.js → chunk-TCYIDR7T.js} +3 -3
- package/dist/{chunk-ZVKFIDIT.js → chunk-TJYUSDL5.js} +4 -4
- package/dist/{chunk-6GJA3TDQ.js → chunk-TTJA2HH2.js} +6 -6
- package/dist/{chunk-4OVKTMJA.js → chunk-TYOPOA3Q.js} +6 -6
- package/dist/{chunk-NYMZTQHQ.js → chunk-UCWQPCIX.js} +1 -1
- package/dist/{chunk-GYOLG6TU.js → chunk-UP6UNLLL.js} +1 -1
- package/dist/{chunk-EHAJQRLM.js → chunk-URDLHUQI.js} +8 -8
- package/dist/{chunk-2X54FCKV.js → chunk-VKYZ4YUV.js} +14 -14
- package/dist/{chunk-TPFQ4SNE.js → chunk-VLPIMIYD.js} +3 -3
- package/dist/{chunk-246YIFPY.js → chunk-W2J5RMI4.js} +9 -5
- package/dist/{chunk-RWQOKYNS.js → chunk-WD7Q3TT5.js} +2 -2
- package/dist/{chunk-ZA6QOP6P.js → chunk-WKSI54F2.js} +3 -3
- package/dist/{chunk-YLGMWVOB.js → chunk-WTOOX47X.js} +10 -10
- package/dist/{chunk-6CJ2NQUW.js → chunk-X7YGD2Y6.js} +3 -3
- package/dist/{chunk-Y5LBT3AX.js → chunk-XDYSADIA.js} +4 -4
- package/dist/{chunk-ZE7BDMYO.js → chunk-XFFPBUYX.js} +6 -6
- package/dist/{chunk-AH4R4OJ7.js → chunk-XFWZ3WAD.js} +4 -4
- package/dist/{chunk-YYLAKQRA.js → chunk-XUT7PHS4.js} +2 -2
- package/dist/{chunk-L35F2KUM.js → chunk-YEBUFSBO.js} +2 -2
- package/dist/{chunk-PF3OBLRW.js → chunk-YQMZ4VE7.js} +2 -2
- package/dist/{chunk-QC6HQIRM.js → chunk-YRV2GA2V.js} +4 -4
- package/dist/{chunk-CIYNZYI7.js → chunk-YY2EAK3H.js} +1 -1
- package/dist/{chunk-SXFRDFQ3.js → chunk-ZPHONVJD.js} +8 -8
- package/dist/{chunk-MTYRQQQG.js → chunk-ZVTROPFZ.js} +4 -4
- package/dist/{codex-app-cards-switch-GN4PDGX4.js → codex-app-cards-switch-T7BFX3RY.js} +11 -11
- package/dist/{codex-card-routing-MZ2XHMFF.js → codex-card-routing-IU2IEJIJ.js} +2 -2
- package/dist/{codex-desktop-launch-XFAJ25J6.js → codex-desktop-launch-HHMQ66PO.js} +1 -1
- package/dist/{codex-session-launch-G36F2QI3.js → codex-session-launch-6552APX5.js} +21 -21
- package/dist/{config-PBVFSMCY.js → config-SXJJPTEN.js} +3 -3
- package/dist/{global-upgrade-CNKZNBYY.js → global-upgrade-YTCJ6ASA.js} +9 -9
- package/dist/{identity-HUN6H255.js → identity-7SBDT3ZC.js} +4 -4
- package/dist/{live-capabilities-KIHK7KNZ.js → live-capabilities-7CVCKDTW.js} +4 -4
- package/dist/{paths-D2RONEDB.js → paths-EHAWEAVV.js} +3 -3
- package/dist/reapply-VF3F42SI.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UP2QFLR5.js → upgrade-lock-GKQRE565.js} +4 -4
- package/dist/{usage-MJ2O6D7E.js → usage-5NEPL3OS.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-Z3GCLIUY.js +0 -74
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.230
|
|
4
|
+
|
|
5
|
+
- Codex no longer runs a destructive step with nobody asked while you are at the keyboard under When I am out: `rm -rf`, `git reset --hard`, `git clean -fdx`, a force push, `npm publish` or a patch that deletes a file now asks your phone, and with no device to answer the call is refused. Phone 1.0.66 and later approve it behind Face ID or the passcode.
|
|
6
|
+
- A deploy or release command (`vercel deploy --prod`, `npm run deploy`, `gh release create`), and a command that only names one (`gh release list`, `git checkout release/1.2`, `bun test src/release.test.ts`), keeps today's flow: your phone when you are away, Codex's own prompt at the keyboard.
|
|
7
|
+
- A workspace with Risky steps need the keyboard on keeps today's flow for these steps, because the phone cannot approve them there.
|
|
8
|
+
|
|
9
|
+
## 1.9.229
|
|
10
|
+
|
|
11
|
+
- `pushary login` no longer signs you in again and makes a second key when `PUSHARY_API_KEY` holds a value that is not a Pushary key and `~/.pushary/config.json` holds a valid one. It checks the saved key and, if it works, says "Already signed in", as it does with no `PUSHARY_API_KEY`. `login --force` and `login --with-token` are unchanged.
|
|
12
|
+
- After `setup` pairs your phone, the warning about the key this machine used before names the saved key the hooks used, by its `pk_` prefix. It used to name the `PUSHARY_API_KEY` value even when that was not a Pushary key, and printed the whole value when it had no dot, so a secret for another service could end up in the terminal. With no valid previous key there is no warning.
|
|
13
|
+
- When `PUSHARY_API_KEY` is not a Pushary key, `login` and `setup` now note the saved key that a new key replaced, as they already did with no `PUSHARY_API_KEY`. A later `setup` in another terminal that still exports the replaced key then keeps the new key, instead of saving the old one back.
|
|
14
|
+
- `pushary doctor` no longer reports phone-start and steering as unverified just because `PUSHARY_API_KEY` is not a Pushary key. It counts the saved key the hooks use as the current key (`managedControl.keyCurrent` in `--json`), as it does with no `PUSHARY_API_KEY`, instead of comparing it with the ignored value.
|
|
15
|
+
- The support bundle `pushary doctor --bundle` writes names the key the hooks use. With a `PUSHARY_API_KEY` that is not a Pushary key and a valid saved key, `keySource` is `config` and `keyPrefix` is the saved key's prefix. The bundle's doctor checks still say the environment value is ignored.
|
|
16
|
+
- `pushary doctor` fails "OpenClaw: plugin can read an API key" when the only key it finds is a `PUSHARY_API_KEY` or a saved key that is not a Pushary key, because the OpenClaw plugin ignores both. It used to pass such a saved key, and to suggest putting such a `PUSHARY_API_KEY` in `~/.openclaw/.env`.
|
|
17
|
+
- The Cursor and VS Code gates that ship with this CLI (Cursor plugin 0.2.16, VS Code plugin 0.2.11) no longer send a `PUSHARY_API_KEY` that is not a Pushary key. They ignore it as if it were not set: Cursor uses the key `setup` wrote into the plugin's `mcp.json`, VS Code the plugin's `.mcp.json` and then `~/.pushary/config.json`, and with none they answer as they do when Pushary is not configured and make no request. The VS Code gate also ignores a key in `~/.pushary/config.json` that is not a Pushary key. A valid `PUSHARY_API_KEY` still wins. `npx pushary@latest setup --agents cursor` or `--agents vscode` installs the new gate. A Cursor plugin installed from the Cursor Marketplace gets it only when the public plugin repository is updated.
|
|
18
|
+
|
|
3
19
|
## 1.9.228
|
|
4
20
|
|
|
5
21
|
- Skipping permissions now means Pushary asks nothing, unless you chose otherwise. In Claude Code run with `--dangerously-skip-permissions`, every step runs without a question, a merge, a force push, a deploy or `rm -rf` included, unless a rule you wrote in Pushary for that tool or command asks about it. Your workspace's rule for every tool (`*`) does not count. This is "Never stop me" under "When your agent skips permissions" in Settings, Connections, and it is now the default for everyone who never picked a setting there. If you picked "Stop me for risky steps", nothing changes for you: risky steps still wait for your phone, and the card still offers "Never stop me while permissions are off". The server sends the setting with your policy, so Claude Code on CLI 1.9.97 or later and the Pushary Mac app follow the new default once Pushary's servers update and the cached policy refreshes, without this release. CLI 1.9.96, the one earlier release with this setting, keeps "Stop me for risky steps" until you upgrade, because it applies the setting to Codex too. Earlier CLIs never had the setting and are unchanged.
|
|
@@ -16,7 +32,7 @@
|
|
|
16
32
|
|
|
17
33
|
## 1.9.226
|
|
18
34
|
|
|
19
|
-
- `npx pushary setup --agents hermes` and `pushary upgrade` now install the Pushary Hermes plugin 1.0.9. When Hermes asks to run a dangerous command longer than 4,000 characters, the plugin cuts it so that it ends with `… [truncated]`, the way this CLI cuts a long command, and Pushary stores that approval as risky with "Pushary could not check this step", because a step after the cut was never read. When Pushary is not Hermes's approval transport, a `terminal` call gated with `PUSHARY_GATE_TOOLS` sends its command the same way. With Pushary as the approval transport, which setup selects, a gated call reaches Pushary as Hermes's own four-choice approval, carrying a label instead of the command and a 500-character summary, as in 1.0.8. On Pushary app 1.0.66 or later a yes or no approval, such as that gated `terminal` call or a Hermes approval that offers only Allow once and Deny, gets the risky card, whose Approve asks for Face ID, Touch ID or the passcode, and a notification that offers Deny only. Hermes's usual four-choice approval shows the `… [truncated]` mark and keeps its ordinary choices. Other gated tools send the same short summary as before.
|
|
35
|
+
- `npx -y pushary@latest setup --agents hermes` and `pushary upgrade` now install the Pushary Hermes plugin 1.0.9. When Hermes asks to run a dangerous command longer than 4,000 characters, the plugin cuts it so that it ends with `… [truncated]`, the way this CLI cuts a long command, and Pushary stores that approval as risky with "Pushary could not check this step", because a step after the cut was never read. When Pushary is not Hermes's approval transport, a `terminal` call gated with `PUSHARY_GATE_TOOLS` sends its command the same way. With Pushary as the approval transport, which setup selects, a gated call reaches Pushary as Hermes's own four-choice approval, carrying a label instead of the command and a 500-character summary, as in 1.0.8. On Pushary app 1.0.66 or later a yes or no approval, such as that gated `terminal` call or a Hermes approval that offers only Allow once and Deny, gets the risky card, whose Approve asks for Face ID, Touch ID or the passcode, and a notification that offers Deny only. Hermes's usual four-choice approval shows the `… [truncated]` mark and keeps its ordinary choices. Other gated tools send the same short summary as before.
|
|
20
36
|
|
|
21
37
|
## 1.9.225
|
|
22
38
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "pushary",
|
|
3
3
|
"displayName": "Pushary — Control Panel for AI Agents",
|
|
4
4
|
"description": "Push notifications, human-in-the-loop questions, and permission gating for your AI coding agent. Get a push when a task finishes, answer the agent from your phone, and approve risky commands before they run.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.16",
|
|
6
6
|
"minClientVersions": {
|
|
7
7
|
"grokbot": "never",
|
|
8
8
|
"sand": "never"
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.16
|
|
4
|
+
|
|
5
|
+
- The gate no longer sends a `PUSHARY_API_KEY` that is not a Pushary key. A Pushary key is `pk_`, letters and digits, a dot, and more letters and digits. Any other value is ignored, as if `PUSHARY_API_KEY` were not set: the gate uses the key `pushary setup` wrote into the plugin's `mcp.json`, and with no key there it answers as it does when Pushary is not configured ("Pushary is not configured: ...") and makes no request, for approvals and for the session events it reports. A valid `PUSHARY_API_KEY` still wins over the key in `mcp.json`.
|
|
6
|
+
|
|
3
7
|
## 0.2.15
|
|
4
8
|
|
|
5
9
|
- `pushary` skill 0.13.6, from 0.13.5: a risky step, such as a recursive delete, a force-push or a deploy, is no longer described as deny-only on the phone. The Pushary app approves one from 1.0.66 after Face ID or the phone's passcode. The lock screen, an older app and a workspace that requires the keyboard for risky steps still offer only deny and `defer` ("Handle on your machine"). What an agent passes and how it reads `defer` are unchanged.
|
|
@@ -200,16 +200,19 @@ const repositoryScopeFor = (cwd) => {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
|
|
203
|
+
const KEY_SHAPE = /^pk_[a-z0-9]+\.[a-z0-9]+$/i
|
|
204
|
+
const isPusharyKeyShaped = (value) => typeof value === 'string' && KEY_SHAPE.test(value)
|
|
205
|
+
|
|
203
206
|
// Env first. CLI installs inject the key into the sibling mcp.json, so fall back to
|
|
204
207
|
// that. This lets the gate work even when Cursor's GUI does not pass the shell env.
|
|
205
208
|
const resolveApiKey = () => {
|
|
206
|
-
const fromEnv = process.env.PUSHARY_API_KEY
|
|
207
|
-
if (fromEnv) return fromEnv
|
|
209
|
+
const fromEnv = process.env.PUSHARY_API_KEY?.trim()
|
|
210
|
+
if (isPusharyKeyShaped(fromEnv)) return fromEnv
|
|
208
211
|
try {
|
|
209
212
|
const mcpPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'mcp.json')
|
|
210
213
|
const auth = JSON.parse(readFileSync(mcpPath, 'utf-8'))?.mcpServers?.pushary?.headers?.Authorization ?? ''
|
|
211
214
|
const key = auth.replace(/^Bearer\s+/i, '').trim()
|
|
212
|
-
if (
|
|
215
|
+
if (isPusharyKeyShaped(key)) return key
|
|
213
216
|
} catch {}
|
|
214
217
|
return undefined
|
|
215
218
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushary",
|
|
3
3
|
"description": "Push notifications, human-in-the-loop questions, and permission gating for your AI agent. Get a push when a task finishes, answer the agent from your phone, and approve risky commands before they run.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.11",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Pushary",
|
|
7
7
|
"email": "business@pushary.com",
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.11
|
|
4
|
+
|
|
5
|
+
- The gate no longer sends a `PUSHARY_API_KEY`, or a key in `~/.pushary/config.json`, that is not a Pushary key. A Pushary key is `pk_`, letters and digits, a dot, and more letters and digits. Any other value is ignored, as if it were not there: the gate reads the next place it looks for a key, the plugin's `.mcp.json` and then `~/.pushary/config.json`. With no Pushary key in any of them it treats Pushary as not configured, as before: reads still run, other gated tools go to VS Code's own confirmation, and it makes no request. A valid `PUSHARY_API_KEY` still wins.
|
|
6
|
+
|
|
3
7
|
## 0.2.10
|
|
4
8
|
|
|
5
9
|
- `pushary` skill 0.13.6, from 0.13.5: a risky step, such as a recursive delete, a force-push or a deploy, is no longer described as deny-only on the phone. The Pushary app approves one from 1.0.66 after Face ID or the phone's passcode. The lock screen, an older app and a workspace that requires the keyboard for risky steps still offer only deny and `defer` ("Handle on your machine"). What an agent passes and how it reads `defer` are unchanged.
|
|
@@ -137,22 +137,24 @@ export const getMachineId = () => readSharedMachineId() ?? createHash('sha256').
|
|
|
137
137
|
// silently stop finding the key the day the key alphabet widens, and the symptom
|
|
138
138
|
// would be "approvals stopped working" with no error. Matches the Cursor gate.
|
|
139
139
|
const KEY_SHAPE = /^pk_[a-z0-9]+\.[a-z0-9]+$/i
|
|
140
|
+
const isPusharyKeyShaped = (value) => typeof value === 'string' && KEY_SHAPE.test(value)
|
|
140
141
|
|
|
141
142
|
const resolveApiKey = () => {
|
|
142
143
|
const fromEnv = process.env.PUSHARY_API_KEY?.trim()
|
|
143
|
-
if (fromEnv) return fromEnv
|
|
144
|
+
if (isPusharyKeyShaped(fromEnv)) return fromEnv
|
|
144
145
|
|
|
145
146
|
try {
|
|
146
147
|
const mcpPath = join(dirname(fileURLToPath(import.meta.url)), '..', '.mcp.json')
|
|
147
148
|
const auth = JSON.parse(readFileSync(mcpPath, 'utf-8'))?.mcpServers?.pushary?.headers?.Authorization ?? ''
|
|
148
149
|
const key = auth.replace(/^Bearer\s+/i, '').trim()
|
|
149
|
-
if (
|
|
150
|
+
if (isPusharyKeyShaped(key)) return key
|
|
150
151
|
} catch {}
|
|
151
152
|
|
|
152
153
|
try {
|
|
153
154
|
const configPath = process.env.PUSHARY_CONFIG_FILE?.trim() || join(homedir(), '.pushary', 'config.json')
|
|
154
|
-
const
|
|
155
|
-
|
|
155
|
+
const saved = JSON.parse(readFileSync(configPath, 'utf-8'))?.apiKey
|
|
156
|
+
const key = typeof saved === 'string' ? saved.trim() : undefined
|
|
157
|
+
if (isPusharyKeyShaped(key)) return key
|
|
156
158
|
} catch {}
|
|
157
159
|
|
|
158
160
|
return undefined
|
|
@@ -30,25 +30,25 @@ import {
|
|
|
30
30
|
waitRetryPauseMs,
|
|
31
31
|
waitsForThePhone,
|
|
32
32
|
withdrawQuestion
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CW6LDFLM.js";
|
|
34
34
|
import "./chunk-POFBE6ZY.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-5IFPQWQS.js";
|
|
36
|
+
import "./chunk-2ZLMVIB5.js";
|
|
37
|
+
import "./chunk-PL2EJ55K.js";
|
|
38
|
+
import "./chunk-JIQIHE3T.js";
|
|
39
|
+
import "./chunk-BVLYIGHM.js";
|
|
40
|
+
import "./chunk-33HUKRXZ.js";
|
|
41
|
+
import "./chunk-E4HPZ6G5.js";
|
|
42
|
+
import "./chunk-77UIFRGZ.js";
|
|
43
43
|
import "./chunk-CINBAX5G.js";
|
|
44
44
|
import "./chunk-PM2NRK6Y.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-5QKFTPXC.js";
|
|
46
46
|
import "./chunk-BG4HHB7E.js";
|
|
47
47
|
import "./chunk-CXQWDQCJ.js";
|
|
48
48
|
import {
|
|
49
49
|
DECISION_STOP_REASON,
|
|
50
50
|
UNVERIFIABLE_APPROVAL_REASON
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7LP4B5KW.js";
|
|
52
52
|
import "./chunk-MLKGABMK.js";
|
|
53
53
|
export {
|
|
54
54
|
ABANDONED_WAIT,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exitOnHelpFlag
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-M7QDLSPI.js";
|
|
5
5
|
import {
|
|
6
6
|
readJsonSafe,
|
|
7
7
|
writeJsonAtomic
|
|
8
8
|
} from "../chunk-PM2NRK6Y.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-5QKFTPXC.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT
|
|
12
12
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
parseAuditChainExport,
|
|
23
23
|
parseAuditKnownHead,
|
|
24
24
|
verifyAuditChainSite
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-7LP4B5KW.js";
|
|
26
26
|
import "../chunk-MLKGABMK.js";
|
|
27
27
|
|
|
28
28
|
// src/audit-verify.ts
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
handleBell
|
|
4
|
-
} from "../chunk-OF7NXNDT.js";
|
|
5
2
|
import {
|
|
6
3
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import
|
|
4
|
+
} from "../chunk-LSBIDOLC.js";
|
|
5
|
+
import "../chunk-XDYSADIA.js";
|
|
6
|
+
import {
|
|
7
|
+
handleBell
|
|
8
|
+
} from "../chunk-MMDZKAM2.js";
|
|
9
|
+
import "../chunk-WTOOX47X.js";
|
|
10
10
|
import "../chunk-WHB622LP.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-BHOENP7P.js";
|
|
12
|
+
import "../chunk-XFFPBUYX.js";
|
|
13
|
+
import "../chunk-OUTUSZGR.js";
|
|
14
|
+
import "../chunk-QTJWBUA4.js";
|
|
15
|
+
import "../chunk-UCWQPCIX.js";
|
|
16
|
+
import "../chunk-NPCYWBY5.js";
|
|
17
|
+
import "../chunk-5GEKKXQK.js";
|
|
18
18
|
import "../chunk-BZIBNSQE.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-WKSI54F2.js";
|
|
20
|
+
import "../chunk-UP6UNLLL.js";
|
|
21
21
|
import "../chunk-P6DUWKAO.js";
|
|
22
22
|
import "../chunk-3PSNUHC5.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-CW6LDFLM.js";
|
|
24
|
+
import "../chunk-B2TX7FE7.js";
|
|
25
25
|
import "../chunk-POFBE6ZY.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-5IFPQWQS.js";
|
|
27
|
+
import "../chunk-2ZLMVIB5.js";
|
|
28
|
+
import "../chunk-E5T75JWL.js";
|
|
29
|
+
import "../chunk-PL2EJ55K.js";
|
|
30
|
+
import "../chunk-JIQIHE3T.js";
|
|
31
|
+
import "../chunk-BVLYIGHM.js";
|
|
32
|
+
import "../chunk-XFWZ3WAD.js";
|
|
33
|
+
import "../chunk-YEBUFSBO.js";
|
|
34
|
+
import "../chunk-33HUKRXZ.js";
|
|
35
|
+
import "../chunk-E4HPZ6G5.js";
|
|
36
|
+
import "../chunk-77UIFRGZ.js";
|
|
37
37
|
import "../chunk-CINBAX5G.js";
|
|
38
38
|
import "../chunk-PM2NRK6Y.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-5QKFTPXC.js";
|
|
40
40
|
import "../chunk-BG4HHB7E.js";
|
|
41
41
|
import "../chunk-CXQWDQCJ.js";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-7LP4B5KW.js";
|
|
43
43
|
import "../chunk-MLKGABMK.js";
|
|
44
44
|
|
|
45
45
|
// bin/pushary-bell-hook.ts
|
package/dist/bin/pushary-bell.js
CHANGED
|
@@ -5,42 +5,42 @@ import {
|
|
|
5
5
|
liveAgentCount,
|
|
6
6
|
ring,
|
|
7
7
|
upgradeThreshold
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-MMDZKAM2.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-7W6GRR6B.js";
|
|
12
12
|
import {
|
|
13
13
|
exitOnHelpFlag
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-M7QDLSPI.js";
|
|
15
15
|
import {
|
|
16
16
|
addBellHooks,
|
|
17
17
|
bellInstalled,
|
|
18
18
|
removeBellHooks
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-5GEKKXQK.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFlags
|
|
22
22
|
} from "../chunk-BZIBNSQE.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-E5T75JWL.js";
|
|
24
|
+
import "../chunk-XFWZ3WAD.js";
|
|
25
|
+
import "../chunk-YEBUFSBO.js";
|
|
26
26
|
import {
|
|
27
27
|
claudeSettings
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-33HUKRXZ.js";
|
|
29
|
+
import "../chunk-E4HPZ6G5.js";
|
|
30
|
+
import "../chunk-77UIFRGZ.js";
|
|
31
31
|
import "../chunk-CINBAX5G.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
35
35
|
} from "../chunk-PM2NRK6Y.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-5QKFTPXC.js";
|
|
37
37
|
import {
|
|
38
38
|
EXIT
|
|
39
39
|
} from "../chunk-BG4HHB7E.js";
|
|
40
40
|
import "../chunk-CXQWDQCJ.js";
|
|
41
41
|
import {
|
|
42
42
|
isRecord
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-7LP4B5KW.js";
|
|
44
44
|
import "../chunk-MLKGABMK.js";
|
|
45
45
|
|
|
46
46
|
// bin/pushary-bell.ts
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exitOnFailedResponse
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-NTMFDJKD.js";
|
|
5
|
+
import "../chunk-XUT7PHS4.js";
|
|
6
|
+
import "../chunk-MJIMTNKY.js";
|
|
7
7
|
import {
|
|
8
8
|
createIo
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-7W6GRR6B.js";
|
|
10
10
|
import {
|
|
11
11
|
exitOnHelpFlag
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-M7QDLSPI.js";
|
|
13
13
|
import {
|
|
14
14
|
parseFlags
|
|
15
15
|
} from "../chunk-BZIBNSQE.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-PL2EJ55K.js";
|
|
17
17
|
import {
|
|
18
18
|
pusharyFetch
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-JIQIHE3T.js";
|
|
20
|
+
import "../chunk-BVLYIGHM.js";
|
|
21
|
+
import "../chunk-XFWZ3WAD.js";
|
|
22
|
+
import "../chunk-YEBUFSBO.js";
|
|
23
|
+
import "../chunk-33HUKRXZ.js";
|
|
24
|
+
import "../chunk-E4HPZ6G5.js";
|
|
25
25
|
import {
|
|
26
26
|
getApiKey,
|
|
27
27
|
getBaseUrl
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-77UIFRGZ.js";
|
|
29
29
|
import {
|
|
30
30
|
UsageError,
|
|
31
31
|
exitCodeFor
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import "../chunk-PM2NRK6Y.js";
|
|
34
34
|
import {
|
|
35
35
|
isInvocationOf
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-5QKFTPXC.js";
|
|
37
37
|
import {
|
|
38
38
|
EXIT
|
|
39
39
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
PHONE_CALL_SETUP_TEST_CALL_PARAM,
|
|
44
44
|
parsePhoneCallSetupReply,
|
|
45
45
|
parseTestCallReply
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-7LP4B5KW.js";
|
|
47
47
|
import "../chunk-MLKGABMK.js";
|
|
48
48
|
|
|
49
49
|
// bin/pushary-calls.ts
|
|
@@ -6,29 +6,18 @@ import {
|
|
|
6
6
|
WRAPPER_ACTIVE_ENV,
|
|
7
7
|
findClaudeBinary
|
|
8
8
|
} from "../chunk-A3JTWB74.js";
|
|
9
|
-
import {
|
|
10
|
-
CommandReceipts,
|
|
11
|
-
controllerCommandSchema
|
|
12
|
-
} from "../chunk-SZGUAYRD.js";
|
|
13
|
-
import {
|
|
14
|
-
SESSION_IDLE_TIMEOUT_MS,
|
|
15
|
-
describeIdleWindow,
|
|
16
|
-
startProcessOwnership,
|
|
17
|
-
withSpawnProcessOwnership
|
|
18
|
-
} from "../chunk-4RBIRPO5.js";
|
|
19
|
-
import "../chunk-TCE3J44Z.js";
|
|
20
9
|
import {
|
|
21
10
|
claudeTranscriptPath,
|
|
22
11
|
redactDraft,
|
|
23
12
|
registerTranscript,
|
|
24
13
|
registeredTranscriptEnabled,
|
|
25
14
|
startDraftPublisher
|
|
26
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-WTOOX47X.js";
|
|
27
16
|
import "../chunk-WHB622LP.js";
|
|
28
17
|
import {
|
|
29
18
|
ensureDaemonRunning
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-XFFPBUYX.js";
|
|
20
|
+
import "../chunk-OUTUSZGR.js";
|
|
32
21
|
import {
|
|
33
22
|
DEFAULT_SESSION,
|
|
34
23
|
PHONE_DRIVER,
|
|
@@ -47,24 +36,35 @@ import {
|
|
|
47
36
|
removePendingCommand,
|
|
48
37
|
reportEvent,
|
|
49
38
|
savePendingCommand
|
|
50
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-QTJWBUA4.js";
|
|
51
40
|
import {
|
|
52
41
|
UNNAMED_ACTION,
|
|
53
42
|
deriveToolTarget,
|
|
54
43
|
describeStopFailure,
|
|
55
44
|
describeToolCall,
|
|
56
45
|
scopePathFor
|
|
57
|
-
} from "../chunk-
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-UCWQPCIX.js";
|
|
47
|
+
import "../chunk-NPCYWBY5.js";
|
|
48
|
+
import "../chunk-5GEKKXQK.js";
|
|
60
49
|
import "../chunk-BZIBNSQE.js";
|
|
61
|
-
import
|
|
50
|
+
import {
|
|
51
|
+
CommandReceipts,
|
|
52
|
+
controllerCommandSchema
|
|
53
|
+
} from "../chunk-DKH755WW.js";
|
|
54
|
+
import {
|
|
55
|
+
SESSION_IDLE_TIMEOUT_MS,
|
|
56
|
+
describeIdleWindow,
|
|
57
|
+
startProcessOwnership,
|
|
58
|
+
withSpawnProcessOwnership
|
|
59
|
+
} from "../chunk-P4P6M45X.js";
|
|
60
|
+
import "../chunk-WKSI54F2.js";
|
|
62
61
|
import {
|
|
63
62
|
transcriptsEnabled
|
|
64
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-UP6UNLLL.js";
|
|
65
64
|
import {
|
|
66
65
|
external_exports
|
|
67
66
|
} from "../chunk-P6DUWKAO.js";
|
|
67
|
+
import "../chunk-TCE3J44Z.js";
|
|
68
68
|
import {
|
|
69
69
|
needsShell,
|
|
70
70
|
spawnClaude
|
|
@@ -81,44 +81,44 @@ import {
|
|
|
81
81
|
waitRetryPauseMs,
|
|
82
82
|
waitsForThePhone,
|
|
83
83
|
withdrawQuestion
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-CW6LDFLM.js";
|
|
85
85
|
import {
|
|
86
86
|
RETRY_ACK,
|
|
87
87
|
commandAckIsFinal,
|
|
88
88
|
readCommandAck,
|
|
89
89
|
refusedReceiptMessage
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-B2TX7FE7.js";
|
|
91
91
|
import "../chunk-POFBE6ZY.js";
|
|
92
92
|
import {
|
|
93
93
|
SubscriptionRequiredError
|
|
94
|
-
} from "../chunk-
|
|
95
|
-
import "../chunk-
|
|
94
|
+
} from "../chunk-5IFPQWQS.js";
|
|
95
|
+
import "../chunk-2ZLMVIB5.js";
|
|
96
96
|
import {
|
|
97
97
|
projectNameFor,
|
|
98
98
|
repoKeyFor,
|
|
99
99
|
repositoryScopeFor
|
|
100
|
-
} from "../chunk-
|
|
101
|
-
import "../chunk-
|
|
102
|
-
import "../chunk-
|
|
100
|
+
} from "../chunk-E5T75JWL.js";
|
|
101
|
+
import "../chunk-PL2EJ55K.js";
|
|
102
|
+
import "../chunk-JIQIHE3T.js";
|
|
103
103
|
import {
|
|
104
104
|
getMachineId
|
|
105
|
-
} from "../chunk-
|
|
106
|
-
import "../chunk-
|
|
107
|
-
import "../chunk-
|
|
105
|
+
} from "../chunk-BVLYIGHM.js";
|
|
106
|
+
import "../chunk-XFWZ3WAD.js";
|
|
107
|
+
import "../chunk-YEBUFSBO.js";
|
|
108
108
|
import {
|
|
109
109
|
claudeConfigDir
|
|
110
|
-
} from "../chunk-
|
|
111
|
-
import "../chunk-
|
|
110
|
+
} from "../chunk-33HUKRXZ.js";
|
|
111
|
+
import "../chunk-E4HPZ6G5.js";
|
|
112
112
|
import {
|
|
113
113
|
getApiKey,
|
|
114
114
|
getBaseUrl,
|
|
115
115
|
isMalformedApiKeyError
|
|
116
|
-
} from "../chunk-
|
|
116
|
+
} from "../chunk-77UIFRGZ.js";
|
|
117
117
|
import "../chunk-CINBAX5G.js";
|
|
118
118
|
import "../chunk-PM2NRK6Y.js";
|
|
119
119
|
import {
|
|
120
120
|
NPX_LATEST_COMMAND
|
|
121
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-5QKFTPXC.js";
|
|
122
122
|
import "../chunk-BG4HHB7E.js";
|
|
123
123
|
import "../chunk-CXQWDQCJ.js";
|
|
124
124
|
import {
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
refusesWhenUnanswered,
|
|
135
135
|
resolveGate,
|
|
136
136
|
timeoutActionWithoutLocalPrompt
|
|
137
|
-
} from "../chunk-
|
|
137
|
+
} from "../chunk-7LP4B5KW.js";
|
|
138
138
|
import "../chunk-MLKGABMK.js";
|
|
139
139
|
|
|
140
140
|
// src/wrapper/localPassthrough.ts
|