@pushary/agent-hooks 1.9.57 → 1.9.59
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 +19 -0
- package/dist/{api-RQAY3A5V.js → api-UVJGNZIF.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +27 -27
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +49 -46
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +32 -32
- package/dist/bin/pushary-codex-session.js +10 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -26
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +37 -37
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-doctor.js +41 -39
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +29 -29
- package/dist/bin/pushary-hook.js +31 -31
- package/dist/bin/pushary-login.js +13 -13
- package/dist/bin/pushary-logout.js +26 -26
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +13 -13
- package/dist/bin/pushary-notification-hook.js +26 -26
- package/dist/bin/pushary-opencode-hook.js +28 -28
- package/dist/bin/pushary-permission-denied-hook.js +31 -31
- package/dist/bin/pushary-permission-hook.js +30 -30
- package/dist/bin/pushary-post-hook.js +26 -26
- package/dist/bin/pushary-prompt-hook.js +26 -26
- package/dist/bin/pushary-session-end-hook.js +26 -26
- package/dist/bin/pushary-session-start-hook.js +33 -33
- package/dist/bin/pushary-setup.js +65 -268
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -30
- package/dist/bin/pushary-stop-hook.js +26 -26
- package/dist/bin/pushary-stopfailure-hook.js +26 -26
- package/dist/bin/pushary-suggestions.js +13 -13
- package/dist/bin/pushary-transcript-register.js +18 -18
- package/dist/bin/pushary-transcripts.js +7 -7
- package/dist/bin/pushary-upgrade.js +107 -58
- package/dist/bin/pushary-wait.js +13 -13
- package/dist/bin/pushary.js +7 -7
- package/dist/chunk-2FVP7WRP.js +378 -0
- package/dist/{chunk-W6363YYZ.js → chunk-2WMZDKPM.js} +8 -8
- package/dist/{chunk-N3NSWWNU.js → chunk-3N2ZTHZZ.js} +1 -1
- package/dist/{chunk-JCMSISCC.js → chunk-3NROUNIS.js} +2 -2
- package/dist/{chunk-7RZO6VWD.js → chunk-3RKIJM26.js} +2 -2
- package/dist/{chunk-Z7Q36I4K.js → chunk-4QF2YLYK.js} +11 -7
- package/dist/{chunk-LVDC3RUE.js → chunk-4XXZUFWN.js} +1 -1
- package/dist/{chunk-BAJ3A3BU.js → chunk-5BNXJTOZ.js} +5 -2
- package/dist/{chunk-A54W5A74.js → chunk-5EFNBL6V.js} +3 -3
- package/dist/{chunk-4YTFYILS.js → chunk-5JWCWALO.js} +9 -9
- package/dist/{chunk-3IBUZQKM.js → chunk-5O6D4J2K.js} +2 -2
- package/dist/{chunk-DDQRYX2L.js → chunk-5PP4455M.js} +3 -3
- package/dist/{chunk-NQDEMRAS.js → chunk-6ONSTCDJ.js} +5 -5
- package/dist/{chunk-ECJJKDP7.js → chunk-75UYYIFJ.js} +1 -1
- package/dist/{chunk-GZL3KEPC.js → chunk-762CDAJJ.js} +140 -136
- package/dist/{chunk-YKYVDHIY.js → chunk-AS4Z6KS4.js} +1 -1
- package/dist/{chunk-4YNNAF53.js → chunk-AY32RSUC.js} +2 -2
- package/dist/{chunk-I43PY5G3.js → chunk-BKVX53QR.js} +1 -1
- package/dist/{chunk-5SFM6XB4.js → chunk-BMPZ5HVJ.js} +2 -2
- package/dist/{chunk-7OQ4AJC7.js → chunk-BRUHVTFB.js} +2 -7
- package/dist/{chunk-OZSP4RIQ.js → chunk-CPRA7IEK.js} +174 -41
- package/dist/{chunk-C3IWX6KU.js → chunk-D6CXQIXO.js} +1 -1
- package/dist/{chunk-T45PAPOG.js → chunk-DK35M4TH.js} +5 -5
- package/dist/{chunk-K45CFSYV.js → chunk-DS7X36Z3.js} +4 -4
- package/dist/{chunk-IBSRULIY.js → chunk-EBQTWH5O.js} +10 -10
- package/dist/{chunk-OLNBYAPI.js → chunk-EHCIQA5D.js} +4 -4
- package/dist/{chunk-2NIRYGTK.js → chunk-IBXHVYN2.js} +2 -2
- package/dist/{chunk-HCIB4YNB.js → chunk-JAKBCKEB.js} +3 -3
- package/dist/{chunk-PZDMZ7LM.js → chunk-JBCMXSBO.js} +5 -5
- package/dist/{chunk-IRZ5FVWG.js → chunk-KAJDKYUM.js} +3 -3
- package/dist/{chunk-AN6TVB2H.js → chunk-KHDD74MK.js} +5 -5
- package/dist/{chunk-ZZB4J6CX.js → chunk-KQHY6L3X.js} +4 -4
- package/dist/{chunk-UPFFO4F6.js → chunk-KQWN7C5C.js} +4 -4
- package/dist/{chunk-D2EETYAL.js → chunk-KW3DED2A.js} +14 -369
- package/dist/{chunk-TWLWDIFB.js → chunk-KZCYHWDF.js} +4 -2
- package/dist/{chunk-RFAF3TOX.js → chunk-L3NVHPBU.js} +94 -15
- package/dist/{chunk-LVZYIUSR.js → chunk-LAEW5QQD.js} +1 -1
- package/dist/{chunk-SQ5G6A6K.js → chunk-M46WDK64.js} +1 -1
- package/dist/{chunk-LVWXRXT7.js → chunk-M6MOQBR5.js} +1 -1
- package/dist/{chunk-FBKVCODG.js → chunk-MA37WNVS.js} +3 -3
- package/dist/{chunk-XTZHUIGJ.js → chunk-MMLIQDTG.js} +1 -1
- package/dist/{chunk-CB565EVO.js → chunk-MSU3VKGJ.js} +2 -2
- package/dist/{chunk-ZU6L34DQ.js → chunk-MYU5D5VH.js} +4 -4
- package/dist/{chunk-WXZN5CS3.js → chunk-OZIXBN3O.js} +2 -2
- package/dist/{chunk-JSQOHMNJ.js → chunk-PVANKDWM.js} +1 -1
- package/dist/{chunk-JYXIARGW.js → chunk-RAMQBSVZ.js} +1 -1
- package/dist/{chunk-S5LX25XE.js → chunk-RQDP2SJY.js} +1 -1
- package/dist/{chunk-DS6OR5OS.js → chunk-SIU6OWA6.js} +6 -6
- package/dist/{chunk-QLDTBZBP.js → chunk-T65RIQK2.js} +6 -6
- package/dist/{chunk-2PJENKRJ.js → chunk-TCH5UCPR.js} +77 -30
- package/dist/{chunk-QQYUWTYS.js → chunk-TDOKDCFH.js} +3 -3
- package/dist/chunk-UFJS4RR7.js +266 -0
- package/dist/{chunk-AEXACKDR.js → chunk-US3IT6ZC.js} +3 -3
- package/dist/{chunk-4QD7VE4E.js → chunk-UTJ5465F.js} +2 -2
- package/dist/{chunk-M7NX25ZA.js → chunk-UVZK5LIK.js} +1 -1
- package/dist/{chunk-IUOUNRLH.js → chunk-V3PDUDPB.js} +2 -2
- package/dist/{chunk-K5SDLOFS.js → chunk-VAJHDTJX.js} +11 -11
- package/dist/{chunk-QTCFEKLJ.js → chunk-W47WL6JY.js} +1 -1
- package/dist/{chunk-6QM54CSJ.js → chunk-WW24SG27.js} +5 -5
- package/dist/{chunk-3TJLPABQ.js → chunk-WWAVHLGS.js} +3 -3
- package/dist/{chunk-CUEUANIU.js → chunk-X4ES7QBT.js} +5 -5
- package/dist/{chunk-XXNT4FGA.js → chunk-XGP5VSQG.js} +1 -1
- package/dist/{chunk-LW7IWGSV.js → chunk-YQVKG5MC.js} +5 -5
- package/dist/{codex-app-cards-switch-SVGTZ2UN.js → codex-app-cards-switch-N77RWKCO.js} +21 -19
- package/dist/{codex-desktop-launch-SH7OUEEC.js → codex-desktop-launch-KIX7OMTL.js} +3 -1
- package/dist/{codex-session-launch-IQ57OL3N.js → codex-session-launch-XV7SIIWP.js} +18 -18
- package/dist/{config-SYLUYZQE.js → config-HH4DYYNX.js} +3 -3
- package/dist/global-upgrade-YWIVJIUR.js +34 -0
- package/dist/{identity-6KRUO2YO.js → identity-4J7Y2MW3.js} +4 -4
- package/dist/{live-capabilities-RKUHAWT6.js → live-capabilities-LHZBCI5U.js} +4 -4
- package/dist/{paths-MUPQZNLG.js → paths-ES3V7BWQ.js} +5 -3
- package/dist/{reapply-YZXZCWCI.js → reapply-KA5SIYWX.js} +26 -26
- package/dist/src/index.js +21 -21
- package/dist/{upgrade-lock-JXP27UKI.js → upgrade-lock-TJPKU5HL.js} +4 -6
- package/dist/{usage-OUV76AIY.js → usage-7ALXBJVJ.js} +3 -3
- package/package.json +1 -1
- package/dist/global-upgrade-SRCWQE7N.js +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.59
|
|
4
|
+
|
|
5
|
+
- Codex app cards now also carry three questions from Codex's browser: access to a site, a download and an upload. They used to show only in Codex, because the browser raises them itself and no hook sees them. With the switch on, each reaches Pushary as a yes or no question that names the site, and the first answer wins. A download or upload question carries the address up to the end of its path. Nothing after a `?` or `#` is in that question, and the address ends in … when something was left out; the path itself is sent.
|
|
6
|
+
- For a download or an upload, Yes allows that one transfer. For a site, Yes allows the site for the rest of the conversation, or for the turn if Codex is set to ask each turn, and No blocks it for the conversation, because that is what Codex does with the answer its own Allow button sends. The question's details say which. Pushary never sends "always", "for this site" or "for all sites"; those stay in Codex.
|
|
7
|
+
- `pushary codex --app-cards on`, `pushary codex --desktop` and the command's help now say that the browser's questions are carried too.
|
|
8
|
+
- Other Browser use questions stay in Codex for now: Developer Tools access, browsing history, verification codes and sign-in.
|
|
9
|
+
|
|
10
|
+
## 1.9.58
|
|
11
|
+
|
|
12
|
+
- `pushary clean` no longer removes the Codex app cards launcher when it could not turn the switch off. It keeps the folder and prints the reason. Before, a failed turn-off could leave the Codex app starting through a launcher that was gone, and Codex would not start its engine until the next logout. The same now holds when the setting that starts the Codex app cannot be read while a launcher or login item is on disk: clean and `pushary codex --app-cards off` change nothing and say so, where they used to read it as not set.
|
|
13
|
+
- `pushary clean` leaves the launcher folder to the step that turns the switch off. Its last sweep of `~/.pushary` used to remove the folder a second time, which could delete a launcher the running Mac app had just written back.
|
|
14
|
+
- With the switch turned on from the command, cards keep reaching Pushary after the CLI updates itself while Codex is open. The pass-through loaded part of its code at the first card, and an update replaces those files, so the first card after an update stayed in Codex. It now loads that code when it starts.
|
|
15
|
+
- `pushary codex --app-cards status --json` also reports where the launcher is, whether the launcher and login item are what this version writes, and whether a switch that is off left a launch setting behind. The Pushary Mac app uses these to rewrite files an older version wrote and to repair a launcher that was deleted.
|
|
16
|
+
- Setup no longer says phone-start is "not running" when its background service is running and only the check fell short. That covers a service that started but was not verified in time, and an older service that could not be replaced and still runs. Setup now says the service is running but this run could not verify it, and points to `pushary doctor`. When the service could not be stopped or removed, setup says that, makes no claim about whether it runs, and no longer offers `pushary daemon install` for it.
|
|
17
|
+
- `pushary upgrade` and the daily automatic update no longer fail when a phone-start service that Pushary started on its own is running but not verified in time, or does not come up on a computer that had no service before. `pushary upgrade` prints the line setup prints; the daily update writes it to its log. Since 1.9.50 setup treated this as a note while the update still exited 1 and kept retrying. A service that was running before the update and did not come back still fails the update, and the update tries again to bring it back: the daily update after 5 minutes, an hour, then daily, where automatic updates run, and `pushary upgrade` each time you run it. It stops trying when the service runs again, when phone-start is turned off, or when this computer can no longer run phone-start. Where setup never recorded a phone-start choice, because the key came from `pushary login` or the Mac app, it also stops when the service is no longer installed. One case is not tried again: an upgrade started with `pushary upgrade` by an installed version older than this one, which keeps no record to try again from. `npx pushary@latest upgrade` and the daily update always keep one. Phone-start you asked for with `--control on` is retried the same way.
|
|
18
|
+
- `pushary upgrade` now remembers an upgrade whose last step, refreshing the agent configuration, did not finish. Running `pushary upgrade` again finishes it. This holds when the upgrade is started by this version or a later one, which `npx pushary@latest upgrade` always is. Before, the first run said to run it again and the second run answered "Already on the latest version" and did nothing. A last step that needs a change only you can make is recorded as waiting on you, so the daily update leaves it alone. `pushary doctor` shows these under "Last update check" (it said "Last automatic update check", which a manual upgrade is not), and a later upgrade that finishes replaces the record.
|
|
19
|
+
- When phone-start you asked for with `--control on` started but could not be verified in time, `pushary upgrade` says so and points to `pushary doctor`. It used to say the service did not start. With `--control on` on a computer that cannot run phone-start, it no longer says to run `pushary daemon install`, which could not work there.
|
|
20
|
+
- When an instruction file is left alone during an update, the message no longer says to run `pushary upgrade` again. That did nothing while the installed version was current. It now says the next update refreshes the file once it is fixed.
|
|
21
|
+
|
|
3
22
|
## 1.9.57
|
|
4
23
|
|
|
5
24
|
- Codex questions you answer by typing now reach Pushary. When Codex asks something with no suggested answers, the hook used to leave it in Codex, so it never showed in the notch or on your phone. It now arrives as a question with a text field, and what you type goes back to Codex in place of its card, word for word. One exception: an answer that is only the word "defer" hands the question back, as it does everywhere else, and Codex shows its own card.
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
waitForQuestion,
|
|
16
16
|
waitsForThePhone,
|
|
17
17
|
withdrawQuestion
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WW24SG27.js";
|
|
19
|
+
import "./chunk-5EFNBL6V.js";
|
|
20
20
|
import "./chunk-POFBE6ZY.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-MA37WNVS.js";
|
|
22
|
+
import "./chunk-JAKBCKEB.js";
|
|
23
|
+
import "./chunk-M46WDK64.js";
|
|
24
24
|
import "./chunk-7QLSKOSU.js";
|
|
25
25
|
import "./chunk-KZERVKTD.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-KZCYHWDF.js";
|
|
27
|
+
import "./chunk-US3IT6ZC.js";
|
|
28
28
|
import "./chunk-QENTGE75.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-4XXZUFWN.js";
|
|
30
|
+
import "./chunk-BMPZ5HVJ.js";
|
|
31
31
|
import "./chunk-QTOLNRET.js";
|
|
32
32
|
import {
|
|
33
33
|
DECISION_STOP_REASON,
|
|
34
34
|
UNVERIFIABLE_APPROVAL_REASON
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-762CDAJJ.js";
|
|
36
36
|
export {
|
|
37
37
|
DECISION_STOP_REASON,
|
|
38
38
|
UNVERIFIABLE_APPROVAL_REASON,
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleBell
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MMLIQDTG.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-KQHY6L3X.js";
|
|
8
|
+
import "../chunk-2WMZDKPM.js";
|
|
9
9
|
import "../chunk-QW3FRUFB.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-KQWN7C5C.js";
|
|
11
|
+
import "../chunk-4QF2YLYK.js";
|
|
12
|
+
import "../chunk-X4ES7QBT.js";
|
|
13
|
+
import "../chunk-TDOKDCFH.js";
|
|
14
|
+
import "../chunk-75UYYIFJ.js";
|
|
15
|
+
import "../chunk-AS4Z6KS4.js";
|
|
16
16
|
import "../chunk-GMXKITVA.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-PVANKDWM.js";
|
|
18
|
+
import "../chunk-3N2ZTHZZ.js";
|
|
19
|
+
import "../chunk-D6CXQIXO.js";
|
|
20
20
|
import "../chunk-XHKBHWLX.js";
|
|
21
21
|
import "../chunk-6ICPEJY5.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-KAJDKYUM.js";
|
|
23
|
+
import "../chunk-5JWCWALO.js";
|
|
24
|
+
import "../chunk-W47WL6JY.js";
|
|
25
|
+
import "../chunk-XGP5VSQG.js";
|
|
26
|
+
import "../chunk-WW24SG27.js";
|
|
27
|
+
import "../chunk-5EFNBL6V.js";
|
|
28
28
|
import "../chunk-POFBE6ZY.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-MA37WNVS.js";
|
|
30
|
+
import "../chunk-JAKBCKEB.js";
|
|
31
|
+
import "../chunk-M46WDK64.js";
|
|
32
32
|
import "../chunk-7QLSKOSU.js";
|
|
33
33
|
import "../chunk-KZERVKTD.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-3RKIJM26.js";
|
|
35
|
+
import "../chunk-KZCYHWDF.js";
|
|
36
|
+
import "../chunk-US3IT6ZC.js";
|
|
37
37
|
import "../chunk-QENTGE75.js";
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-4XXZUFWN.js";
|
|
39
|
+
import "../chunk-BMPZ5HVJ.js";
|
|
40
40
|
import "../chunk-QTOLNRET.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-762CDAJJ.js";
|
|
42
42
|
|
|
43
43
|
// bin/pushary-bell-hook.ts
|
|
44
44
|
var main = async () => {
|
package/dist/bin/pushary-bell.js
CHANGED
|
@@ -5,41 +5,41 @@ import {
|
|
|
5
5
|
liveAgentCount,
|
|
6
6
|
ring,
|
|
7
7
|
upgradeThreshold
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-MMLIQDTG.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "../chunk-FO3MDD26.js";
|
|
12
12
|
import {
|
|
13
13
|
exitOnHelpFlag
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-UVZK5LIK.js";
|
|
15
15
|
import {
|
|
16
16
|
addBellHooks,
|
|
17
17
|
bellInstalled,
|
|
18
18
|
removeBellHooks
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-AS4Z6KS4.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFlags
|
|
22
22
|
} from "../chunk-GMXKITVA.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-KAJDKYUM.js";
|
|
24
24
|
import "../chunk-7QLSKOSU.js";
|
|
25
25
|
import {
|
|
26
26
|
EXIT
|
|
27
27
|
} from "../chunk-KZERVKTD.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-3RKIJM26.js";
|
|
29
29
|
import {
|
|
30
30
|
claudeSettings
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-KZCYHWDF.js";
|
|
32
|
+
import "../chunk-US3IT6ZC.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
36
36
|
} from "../chunk-QENTGE75.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-4XXZUFWN.js";
|
|
38
|
+
import "../chunk-BMPZ5HVJ.js";
|
|
39
39
|
import "../chunk-QTOLNRET.js";
|
|
40
40
|
import {
|
|
41
41
|
isRecord
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-762CDAJJ.js";
|
|
43
43
|
|
|
44
44
|
// bin/pushary-bell.ts
|
|
45
45
|
exitOnHelpFlag("bell");
|
|
@@ -8,40 +8,40 @@ import {
|
|
|
8
8
|
describeIdleWindow,
|
|
9
9
|
startProcessOwnership,
|
|
10
10
|
withSpawnProcessOwnership
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-MSU3VKGJ.js";
|
|
12
12
|
import "../chunk-VUFHYMSP.js";
|
|
13
13
|
import {
|
|
14
14
|
announceSubscriptionRequired,
|
|
15
15
|
isDeferAnswer
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-LAEW5QQD.js";
|
|
17
17
|
import {
|
|
18
18
|
claudeTranscriptPath,
|
|
19
19
|
loadSessionKey,
|
|
20
20
|
registerTranscript,
|
|
21
21
|
registeredTranscriptEnabled
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-2WMZDKPM.js";
|
|
23
23
|
import "../chunk-QW3FRUFB.js";
|
|
24
24
|
import {
|
|
25
25
|
ensureDaemonRunning
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-4QF2YLYK.js";
|
|
27
|
+
import "../chunk-X4ES7QBT.js";
|
|
28
|
+
import "../chunk-TDOKDCFH.js";
|
|
29
|
+
import "../chunk-75UYYIFJ.js";
|
|
30
|
+
import "../chunk-AS4Z6KS4.js";
|
|
31
31
|
import "../chunk-GMXKITVA.js";
|
|
32
32
|
import {
|
|
33
33
|
encryptRecord
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-PVANKDWM.js";
|
|
35
|
+
import "../chunk-3N2ZTHZZ.js";
|
|
36
36
|
import {
|
|
37
37
|
transcriptsEnabled
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-D6CXQIXO.js";
|
|
39
39
|
import {
|
|
40
40
|
needsShell,
|
|
41
41
|
spawnClaude
|
|
42
42
|
} from "../chunk-XHKBHWLX.js";
|
|
43
43
|
import "../chunk-6ICPEJY5.js";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-KAJDKYUM.js";
|
|
45
45
|
import {
|
|
46
46
|
DEFAULT_SESSION,
|
|
47
47
|
UNNAMED_ACTION,
|
|
@@ -58,11 +58,11 @@ import {
|
|
|
58
58
|
reportEvent,
|
|
59
59
|
savePendingCommand,
|
|
60
60
|
scopePathFor
|
|
61
|
-
} from "../chunk-
|
|
62
|
-
import "../chunk-
|
|
61
|
+
} from "../chunk-5JWCWALO.js";
|
|
62
|
+
import "../chunk-W47WL6JY.js";
|
|
63
63
|
import {
|
|
64
64
|
repoKeyFor
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-XGP5VSQG.js";
|
|
66
66
|
import {
|
|
67
67
|
askUser,
|
|
68
68
|
cancelQuestion,
|
|
@@ -73,29 +73,29 @@ import {
|
|
|
73
73
|
waitForAnswer,
|
|
74
74
|
waitsForThePhone,
|
|
75
75
|
withdrawQuestion
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-WW24SG27.js";
|
|
77
77
|
import {
|
|
78
78
|
SubscriptionRequiredError
|
|
79
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-5EFNBL6V.js";
|
|
80
80
|
import "../chunk-POFBE6ZY.js";
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-MA37WNVS.js";
|
|
82
|
+
import "../chunk-JAKBCKEB.js";
|
|
83
83
|
import {
|
|
84
84
|
getMachineId
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-M46WDK64.js";
|
|
86
86
|
import "../chunk-7QLSKOSU.js";
|
|
87
87
|
import "../chunk-KZERVKTD.js";
|
|
88
|
-
import "../chunk-
|
|
89
|
-
import "../chunk-
|
|
90
|
-
import "../chunk-
|
|
88
|
+
import "../chunk-3RKIJM26.js";
|
|
89
|
+
import "../chunk-KZCYHWDF.js";
|
|
90
|
+
import "../chunk-US3IT6ZC.js";
|
|
91
91
|
import "../chunk-QENTGE75.js";
|
|
92
92
|
import {
|
|
93
93
|
getApiKey,
|
|
94
94
|
getBaseUrl
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-4XXZUFWN.js";
|
|
96
96
|
import {
|
|
97
97
|
NPX_LATEST_COMMAND
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-BMPZ5HVJ.js";
|
|
99
99
|
import "../chunk-QTOLNRET.js";
|
|
100
100
|
import {
|
|
101
101
|
DECISION_STOP_REASON,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
redactSecretsFromContent,
|
|
107
107
|
resolveGate,
|
|
108
108
|
timeoutActionWithoutLocalPrompt
|
|
109
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-762CDAJJ.js";
|
|
110
110
|
|
|
111
111
|
// src/wrapper/localPassthrough.ts
|
|
112
112
|
var SIGNAL_NUMBERS = {
|
|
@@ -5,36 +5,36 @@ import {
|
|
|
5
5
|
MAC_APP_BUNDLE_ID,
|
|
6
6
|
MAC_DEFAULTS_DOMAINS,
|
|
7
7
|
MAC_KEYCHAIN_ACCOUNTS,
|
|
8
|
-
|
|
8
|
+
cleanUpCodexAppCardsOnThisMac,
|
|
9
|
+
codexAppCardsFolderInTheLastSweep,
|
|
9
10
|
developerDefaults,
|
|
10
11
|
installedPusharyBundles,
|
|
11
12
|
liveMacStatePresence,
|
|
12
13
|
registeredPusharyBundles,
|
|
13
|
-
removeCodexAppCardsFromThisMac,
|
|
14
14
|
runningMacAppPIDs,
|
|
15
15
|
storedMacAppState,
|
|
16
16
|
storedPusharyKeychainServices,
|
|
17
17
|
waitForMacAppExit
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-TCH5UCPR.js";
|
|
19
19
|
import {
|
|
20
20
|
PUSHARY_SKILL_NAME,
|
|
21
21
|
PUSHARY_SKILL_SOURCE,
|
|
22
22
|
createGuards
|
|
23
23
|
} from "../chunk-EUW7JL2K.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-CPRA7IEK.js";
|
|
25
25
|
import "../chunk-XCEN33UP.js";
|
|
26
26
|
import {
|
|
27
27
|
describeCliKeyRevocation,
|
|
28
28
|
planCliKeyRevocations,
|
|
29
29
|
readCliHeldKeys,
|
|
30
30
|
revokeCliKeys
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-DK35M4TH.js";
|
|
32
|
+
import "../chunk-DS7X36Z3.js";
|
|
33
33
|
import {
|
|
34
34
|
isCursorPluginLeftover,
|
|
35
35
|
releaseSoleGate,
|
|
36
36
|
withoutPusharyCursorHooks
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-MYU5D5VH.js";
|
|
38
38
|
import {
|
|
39
39
|
HERMES_PIP_PACKAGE,
|
|
40
40
|
readHermesStatus,
|
|
@@ -43,21 +43,21 @@ import {
|
|
|
43
43
|
shortenHome,
|
|
44
44
|
unregisterPluginLocation,
|
|
45
45
|
vscodeSettingsTargets
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-YQVKG5MC.js";
|
|
47
47
|
import {
|
|
48
48
|
macAppKeepsMcpEntry,
|
|
49
49
|
mcpServerBearer,
|
|
50
50
|
pusharyKey,
|
|
51
51
|
readMacAppAgentKey,
|
|
52
52
|
setupReceiptKey
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-EHCIQA5D.js";
|
|
54
54
|
import "../chunk-QCGNGEGE.js";
|
|
55
|
-
import "../chunk-
|
|
55
|
+
import "../chunk-AY32RSUC.js";
|
|
56
56
|
import {
|
|
57
57
|
planFxRemoval,
|
|
58
58
|
removeInstructionBlock
|
|
59
|
-
} from "../chunk-
|
|
60
|
-
import "../chunk-
|
|
59
|
+
} from "../chunk-6ONSTCDJ.js";
|
|
60
|
+
import "../chunk-3NROUNIS.js";
|
|
61
61
|
import {
|
|
62
62
|
OPENCODE_PLUGIN_SIBLING,
|
|
63
63
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
@@ -69,14 +69,14 @@ import {
|
|
|
69
69
|
openCodePluginDir,
|
|
70
70
|
openCodePluginFile,
|
|
71
71
|
removeOpenCodeMcpServer
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-JBCMXSBO.js";
|
|
73
73
|
import {
|
|
74
74
|
ansiPainter,
|
|
75
75
|
useColor
|
|
76
76
|
} from "../chunk-FO3MDD26.js";
|
|
77
77
|
import {
|
|
78
78
|
exitOnHelpFlag
|
|
79
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-UVZK5LIK.js";
|
|
80
80
|
import "../chunk-VUFHYMSP.js";
|
|
81
81
|
import {
|
|
82
82
|
compatibleConfigFile,
|
|
@@ -94,10 +94,10 @@ import {
|
|
|
94
94
|
removePusharyToolPermissions,
|
|
95
95
|
restoreClaudeMcpServer,
|
|
96
96
|
serializeConfigDocument
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-KQWN7C5C.js";
|
|
98
98
|
import {
|
|
99
99
|
disableDaemonService
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-4QF2YLYK.js";
|
|
101
101
|
import {
|
|
102
102
|
hookOwnerOf,
|
|
103
103
|
isHookTakeoverReceipt,
|
|
@@ -105,12 +105,12 @@ import {
|
|
|
105
105
|
resolveBridgeStub,
|
|
106
106
|
restoreHookTakeover,
|
|
107
107
|
restoreMcpServer
|
|
108
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-X4ES7QBT.js";
|
|
109
109
|
import {
|
|
110
110
|
removeGeminiSettings
|
|
111
|
-
} from "../chunk-
|
|
112
|
-
import "../chunk-
|
|
113
|
-
import "../chunk-
|
|
111
|
+
} from "../chunk-TDOKDCFH.js";
|
|
112
|
+
import "../chunk-75UYYIFJ.js";
|
|
113
|
+
import "../chunk-AS4Z6KS4.js";
|
|
114
114
|
import {
|
|
115
115
|
rejectUnknownFlags
|
|
116
116
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -121,22 +121,22 @@ import {
|
|
|
121
121
|
isDisabledExport,
|
|
122
122
|
removeClaudeAlias,
|
|
123
123
|
shellProfileCandidates
|
|
124
|
-
} from "../chunk-
|
|
124
|
+
} from "../chunk-KAJDKYUM.js";
|
|
125
125
|
import "../chunk-E46NE7FB.js";
|
|
126
|
-
import "../chunk-
|
|
127
|
-
import "../chunk-
|
|
128
|
-
import "../chunk-
|
|
129
|
-
import "../chunk-
|
|
130
|
-
import "../chunk-
|
|
126
|
+
import "../chunk-5JWCWALO.js";
|
|
127
|
+
import "../chunk-W47WL6JY.js";
|
|
128
|
+
import "../chunk-XGP5VSQG.js";
|
|
129
|
+
import "../chunk-WW24SG27.js";
|
|
130
|
+
import "../chunk-5EFNBL6V.js";
|
|
131
131
|
import "../chunk-POFBE6ZY.js";
|
|
132
|
-
import "../chunk-
|
|
133
|
-
import "../chunk-
|
|
134
|
-
import "../chunk-
|
|
132
|
+
import "../chunk-MA37WNVS.js";
|
|
133
|
+
import "../chunk-JAKBCKEB.js";
|
|
134
|
+
import "../chunk-M46WDK64.js";
|
|
135
135
|
import "../chunk-7QLSKOSU.js";
|
|
136
136
|
import {
|
|
137
137
|
EXIT
|
|
138
138
|
} from "../chunk-KZERVKTD.js";
|
|
139
|
-
import "../chunk-
|
|
139
|
+
import "../chunk-3RKIJM26.js";
|
|
140
140
|
import {
|
|
141
141
|
claudeJson,
|
|
142
142
|
claudeMcpReceipt,
|
|
@@ -168,21 +168,21 @@ import {
|
|
|
168
168
|
restoreCodexHookTrust,
|
|
169
169
|
vscodePluginDir,
|
|
170
170
|
vscodePluginMcp
|
|
171
|
-
} from "../chunk-
|
|
171
|
+
} from "../chunk-KZCYHWDF.js";
|
|
172
172
|
import {
|
|
173
173
|
cleanNpmEnv,
|
|
174
174
|
globalPackageState,
|
|
175
175
|
npmIsOnPath,
|
|
176
176
|
readGlobalFolder,
|
|
177
177
|
readGlobalPrefix
|
|
178
|
-
} from "../chunk-
|
|
178
|
+
} from "../chunk-US3IT6ZC.js";
|
|
179
179
|
import "../chunk-QENTGE75.js";
|
|
180
180
|
import {
|
|
181
181
|
getBaseUrl
|
|
182
|
-
} from "../chunk-
|
|
182
|
+
} from "../chunk-4XXZUFWN.js";
|
|
183
183
|
import {
|
|
184
184
|
NPX_LATEST_COMMAND
|
|
185
|
-
} from "../chunk-
|
|
185
|
+
} from "../chunk-BMPZ5HVJ.js";
|
|
186
186
|
import {
|
|
187
187
|
CLI_PACKAGE_NAMES,
|
|
188
188
|
globalPackageFolder,
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
SUPPORT_EMAIL,
|
|
197
197
|
isValidApiKey,
|
|
198
198
|
redactSecrets
|
|
199
|
-
} from "../chunk-
|
|
199
|
+
} from "../chunk-762CDAJJ.js";
|
|
200
200
|
|
|
201
201
|
// bin/pushary-clean.ts
|
|
202
202
|
import { existsSync as existsSync5, readFileSync as readFileSync4, copyFileSync, readdirSync as readdirSync4 } from "fs";
|
|
@@ -828,17 +828,18 @@ var main = async () => {
|
|
|
828
828
|
}
|
|
829
829
|
console.log(` ${check} Background service ${dim(did("uninstalled"))}`);
|
|
830
830
|
const uid = process.platform === "darwin" ? process.getuid?.() : void 0;
|
|
831
|
-
|
|
832
|
-
if (
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
831
|
+
const appCardsCleanUp = uid === void 0 ? null : cleanUpCodexAppCardsOnThisMac({ homeDir: homedir4(), uid, keepWhatTheMacAppTurnedOn: keepShared, dryRun });
|
|
832
|
+
if (appCardsCleanUp !== null) {
|
|
833
|
+
const appCards = appCardsCleanUp;
|
|
834
|
+
if (appCards.outcome === "removed") console.log(` ${check} Codex app cards ${dim(did("removed"))} ${dim("(quit Codex and open it again)")}`);
|
|
835
|
+
if (appCards.outcome === "kept_for_the_mac_app") console.log(` ${skip} Codex app cards ${dim("(turned on by the Mac app; left on)")}`);
|
|
836
|
+
if (appCards.outcome === "could_not_turn_off") {
|
|
837
|
+
incompleteClean = true;
|
|
838
|
+
console.log(` ${cross} Codex app cards ${dim(`(could not turn off, so their launcher was kept: ${appCards.reason})`)}`);
|
|
839
|
+
}
|
|
840
|
+
if (appCards.outcome === "off_but_not_tidied") {
|
|
840
841
|
incompleteClean = true;
|
|
841
|
-
console.log(` ${cross} Codex app cards ${dim(
|
|
842
|
+
console.log(` ${cross} Codex app cards ${dim(`(off, but tidying their folder did not finish: ${appCards.reason})`)}`);
|
|
842
843
|
}
|
|
843
844
|
}
|
|
844
845
|
if (everything) await revokeKeysThisCliCreated();
|
|
@@ -1195,7 +1196,9 @@ var main = async () => {
|
|
|
1195
1196
|
let removed = 0;
|
|
1196
1197
|
const kept = [];
|
|
1197
1198
|
for (const entry of readdirSync4(PUSHARY_DIR)) {
|
|
1198
|
-
|
|
1199
|
+
const appCardsFolder = entry === CODEX_APP_CARDS_DIRECTORY ? codexAppCardsFolderInTheLastSweep(appCardsCleanUp) : "swept_with_the_rest";
|
|
1200
|
+
if (appCardsFolder === "left_to_the_switch") continue;
|
|
1201
|
+
if (keepShared && isAppOwned(entry) || entry === "setup" && (keepShared || incompleteClean) || appCardsFolder === "kept") {
|
|
1199
1202
|
kept.push(entry);
|
|
1200
1203
|
continue;
|
|
1201
1204
|
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runCodexBridge
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-SIU6OWA6.js";
|
|
5
|
+
import "../chunk-V3PDUDPB.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveProviderBinary
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-5PP4455M.js";
|
|
9
|
+
import "../chunk-M6MOQBR5.js";
|
|
10
10
|
import {
|
|
11
11
|
withSpawnProcessOwnership
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-MSU3VKGJ.js";
|
|
13
13
|
import "../chunk-VUFHYMSP.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-PVANKDWM.js";
|
|
15
|
+
import "../chunk-3N2ZTHZZ.js";
|
|
16
16
|
import {
|
|
17
17
|
transcriptsEnabled
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-D6CXQIXO.js";
|
|
19
19
|
import "../chunk-XHKBHWLX.js";
|
|
20
20
|
import "../chunk-6ICPEJY5.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-KAJDKYUM.js";
|
|
22
|
+
import "../chunk-XGP5VSQG.js";
|
|
23
|
+
import "../chunk-WW24SG27.js";
|
|
24
|
+
import "../chunk-5EFNBL6V.js";
|
|
25
25
|
import "../chunk-POFBE6ZY.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-MA37WNVS.js";
|
|
27
|
+
import "../chunk-JAKBCKEB.js";
|
|
28
28
|
import {
|
|
29
29
|
getMachineId
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-M46WDK64.js";
|
|
31
31
|
import "../chunk-7QLSKOSU.js";
|
|
32
32
|
import "../chunk-KZERVKTD.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-3RKIJM26.js";
|
|
34
|
+
import "../chunk-KZCYHWDF.js";
|
|
35
|
+
import "../chunk-US3IT6ZC.js";
|
|
36
36
|
import "../chunk-QENTGE75.js";
|
|
37
37
|
import {
|
|
38
38
|
getApiKey,
|
|
39
39
|
getBaseUrl
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-4XXZUFWN.js";
|
|
41
|
+
import "../chunk-BMPZ5HVJ.js";
|
|
42
42
|
import "../chunk-QTOLNRET.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-762CDAJJ.js";
|
|
44
44
|
|
|
45
45
|
// bin/pushary-codex-bridge.ts
|
|
46
46
|
import { existsSync } from "fs";
|