@pushary/agent-hooks 1.9.45 → 1.9.47
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/dist/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +9 -9
- package/dist/bin/pushary-claude.js +24 -24
- package/dist/bin/pushary-clean.js +142 -76
- package/dist/bin/pushary-codex-bridge.js +18 -18
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex-session.js +22 -18
- package/dist/bin/pushary-codex.js +12 -12
- package/dist/bin/pushary-connect.js +24 -24
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +32 -32
- package/dist/bin/pushary-disconnect.js +37 -30
- package/dist/bin/pushary-doctor.js +34 -34
- package/dist/bin/pushary-elicitation-hook.js +25 -25
- package/dist/bin/pushary-gemini-bridge.js +13 -13
- package/dist/bin/pushary-gemini-hook.js +27 -27
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +12 -12
- package/dist/bin/pushary-logout.js +24 -24
- package/dist/bin/pushary-mcp.js +9 -9
- package/dist/bin/pushary-mode.js +12 -12
- package/dist/bin/pushary-notification-hook.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +26 -26
- package/dist/bin/pushary-permission-denied-hook.js +29 -29
- package/dist/bin/pushary-permission-hook.js +28 -28
- package/dist/bin/pushary-post-hook.js +24 -24
- package/dist/bin/pushary-prompt-hook.js +24 -24
- package/dist/bin/pushary-session-end-hook.js +24 -24
- package/dist/bin/pushary-session-start-hook.js +28 -28
- package/dist/bin/pushary-setup.js +36 -36
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +26 -26
- package/dist/bin/pushary-stop-hook.js +24 -24
- package/dist/bin/pushary-stopfailure-hook.js +24 -24
- package/dist/bin/pushary-suggestions.js +12 -12
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +7 -7
- package/dist/bin/pushary-upgrade.js +30 -30
- package/dist/bin/pushary-wait.js +12 -12
- package/dist/bin/pushary.js +6 -6
- package/dist/{chunk-YXGWG5PO.js → chunk-3F3JHJPS.js} +5 -5
- package/dist/{chunk-OHFC3GJY.js → chunk-3KSN65VJ.js} +1 -1
- package/dist/{chunk-R7ZQHAVL.js → chunk-3RAWTKWW.js} +2 -2
- package/dist/{chunk-7SGYCU5C.js → chunk-4MJ46JA7.js} +1 -1
- package/dist/{chunk-SFQSOBLM.js → chunk-6VFP72GX.js} +3 -3
- package/dist/{chunk-HHX6IRSH.js → chunk-6W64IVG3.js} +1 -1
- package/dist/{chunk-YWIFK2UB.js → chunk-6WFJCUWO.js} +2 -2
- package/dist/{chunk-ZSY6BWUD.js → chunk-7JUISFZ7.js} +2 -2
- package/dist/{chunk-335ZDJ7R.js → chunk-7VLY6RHG.js} +1 -1
- package/dist/{chunk-CFMCV6Z7.js → chunk-ADKWE35P.js} +2 -2
- package/dist/{chunk-WM76AN4X.js → chunk-AIDH46DC.js} +10 -10
- package/dist/{chunk-S6EGJBI5.js → chunk-BS457P5Z.js} +1 -1
- package/dist/{chunk-3PM62C2R.js → chunk-CVCOZWSB.js} +8 -8
- package/dist/{chunk-U45OINYS.js → chunk-DDS472RO.js} +1 -1
- package/dist/{chunk-DSGB5JLG.js → chunk-DPF6WDCX.js} +4 -4
- package/dist/{chunk-SIN7NJD7.js → chunk-DRQVZHWE.js} +1 -1
- package/dist/{chunk-K7EGWMDU.js → chunk-DY5PQSQB.js} +116 -31
- package/dist/{chunk-ASK2MSD2.js → chunk-FDDZEYGM.js} +5 -5
- package/dist/{chunk-FOUK4CBO.js → chunk-FWQ2O5BI.js} +4 -4
- package/dist/{chunk-6TYKZ4DN.js → chunk-FY6ZTTDQ.js} +3 -3
- package/dist/{chunk-CDERSTBO.js → chunk-GLVPA4EK.js} +5 -5
- package/dist/{chunk-KS7NA5CK.js → chunk-GOTCSFLS.js} +7 -7
- package/dist/{chunk-2FUHSKXH.js → chunk-J3CYUXGX.js} +4 -4
- package/dist/{chunk-N2K3BSCA.js → chunk-K2KGB7TK.js} +5 -5
- package/dist/{chunk-WDIX4XZH.js → chunk-K2YVKKYV.js} +2 -2
- package/dist/{chunk-PWUIPQ2I.js → chunk-KQDHOQRG.js} +3 -3
- package/dist/{chunk-46F4BRUQ.js → chunk-LFMC5AE2.js} +1 -1
- package/dist/{chunk-QQXP3CQA.js → chunk-LQRPQXAG.js} +1 -1
- package/dist/{chunk-WPPKXVV3.js → chunk-M47U54AO.js} +2 -2
- package/dist/{chunk-IOVJVGIT.js → chunk-MCL5IS6A.js} +4 -4
- package/dist/{chunk-7URSJMAB.js → chunk-MM472M4O.js} +1 -1
- package/dist/{chunk-EH5ZDG6V.js → chunk-MZQ5M6F6.js} +4 -4
- package/dist/{chunk-XFHISCJM.js → chunk-N6JNKOKJ.js} +5 -5
- package/dist/{chunk-VO6XI6AX.js → chunk-OL7QCMQK.js} +3 -3
- package/dist/{chunk-H4ODQD3Y.js → chunk-P4RKBBHE.js} +2 -2
- package/dist/{chunk-5DCZL3BC.js → chunk-PHKISQPB.js} +3 -3
- package/dist/{chunk-EWC4P4ZL.js → chunk-PRQMACC7.js} +1 -1
- package/dist/{chunk-ECFEYB6Z.js → chunk-R7AMICLS.js} +1 -1
- package/dist/{chunk-AUOSFZJ3.js → chunk-RDVDW3WK.js} +5 -5
- package/dist/{chunk-GQ5KCVGK.js → chunk-ROQSYB3T.js} +6 -6
- package/dist/{chunk-YK7FGPYS.js → chunk-S3657KK2.js} +3 -3
- package/dist/{chunk-RFQWB5ZV.js → chunk-T3QKLW3M.js} +1 -1
- package/dist/{chunk-RBJWPUI6.js → chunk-TP5SLM2I.js} +8 -4
- package/dist/{chunk-U6Z56IQS.js → chunk-TSI25WVW.js} +2 -2
- package/dist/{chunk-BT57FUMT.js → chunk-UFTPB3LZ.js} +2 -2
- package/dist/{chunk-EKGQEDQ4.js → chunk-UIPZSSBC.js} +2 -2
- package/dist/{chunk-57M4ERJK.js → chunk-VE4LQ23C.js} +1 -1
- package/dist/{chunk-4A6VUVXV.js → chunk-VQZ4FP6Z.js} +1 -1
- package/dist/{chunk-2DORVRDB.js → chunk-VVJUH4SV.js} +2 -2
- package/dist/{chunk-6JPDAUFP.js → chunk-WHHNQA4C.js} +19 -10
- package/dist/{chunk-NJN5NRHZ.js → chunk-WOE46HSM.js} +4 -4
- package/dist/{chunk-P2F3JUFX.js → chunk-X6ILS4XE.js} +4 -4
- package/dist/{chunk-IKYI63RF.js → chunk-YCKGZOKV.js} +6 -6
- package/dist/{chunk-IFT3GU7Y.js → chunk-YENJWLN4.js} +2 -2
- package/dist/{chunk-2SXXH6JY.js → chunk-ZHZTFA76.js} +5 -5
- package/dist/{chunk-GZSSAY6N.js → chunk-ZR2EPWW4.js} +9 -9
- package/dist/{global-upgrade-U6NWZA5W.js → global-upgrade-KHP36X27.js} +6 -6
- package/dist/{paths-IQTB3ZZI.js → paths-63XAPFWJ.js} +2 -2
- package/dist/{reapply-LILGWJO3.js → reapply-Y2EXWAWE.js} +20 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-2BVFIDU4.js → upgrade-lock-RF3LR2HC.js} +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.47
|
|
4
|
+
|
|
5
|
+
- `pushary codex`: when Codex asks to approve a call Pushary already allows (your rules, a preset, or a read-only command), it is approved for you once, as the Codex hook already does. A file change is never approved this way, and neither is a request Codex flags as needing a person. The kill switch and deny rules are unchanged. This needs the matching server.
|
|
6
|
+
- `pushary codex`: a command Codex runs through a login shell (`/bin/zsh -lc 'git push origin main'`) is asked about and matched against your rules as the command itself, so a rule such as `Bash(git push*)` applies to it. This needs the matching server.
|
|
7
|
+
- `pushary codex`: an approval Pushary hands back to Codex's own prompt is no longer reported as a failure in the Codex screen.
|
|
8
|
+
- `pushary codex --desktop` no longer throws while stopping when the Codex engine's processes have exited but are not yet reaped, which macOS reports as a permission error.
|
|
9
|
+
|
|
10
|
+
## 1.9.46
|
|
11
|
+
|
|
12
|
+
- A command that feeds text to a database client or a shell through a pipe, a heredoc or a here-string is judged together with that text again. Under the Autonomous preset or a rule that allows everything, `echo "DROP TABLE users;" | psql app` asks a person, as it did before 1.9.39. A pipeline that only reads, such as `npm test | grep release`, still runs unasked.
|
|
13
|
+
|
|
3
14
|
## 1.9.45
|
|
4
15
|
|
|
5
16
|
- Add an opt-in experimental Codex Desktop launch with `pushary codex --desktop`. Quit Desktop first; the bridge uses its supported bundled engine and forwards supported native permissions through Pushary.
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleBell
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7VLY6RHG.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-MZQ5M6F6.js";
|
|
8
|
+
import "../chunk-CVCOZWSB.js";
|
|
9
9
|
import "../chunk-DWQYCOPI.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-TP5SLM2I.js";
|
|
11
|
+
import "../chunk-RDVDW3WK.js";
|
|
12
|
+
import "../chunk-FDDZEYGM.js";
|
|
13
|
+
import "../chunk-PHKISQPB.js";
|
|
14
|
+
import "../chunk-3KSN65VJ.js";
|
|
15
|
+
import "../chunk-DDS472RO.js";
|
|
16
16
|
import "../chunk-GMXKITVA.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-4MJ46JA7.js";
|
|
18
|
+
import "../chunk-S3657KK2.js";
|
|
19
|
+
import "../chunk-DRQVZHWE.js";
|
|
20
|
+
import "../chunk-T3QKLW3M.js";
|
|
21
21
|
import "../chunk-XHKBHWLX.js";
|
|
22
22
|
import "../chunk-6ICPEJY5.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZR2EPWW4.js";
|
|
24
|
+
import "../chunk-6W64IVG3.js";
|
|
25
|
+
import "../chunk-ADKWE35P.js";
|
|
26
|
+
import "../chunk-GLVPA4EK.js";
|
|
27
27
|
import "../chunk-POFBE6ZY.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-6VFP72GX.js";
|
|
29
|
+
import "../chunk-KQDHOQRG.js";
|
|
30
|
+
import "../chunk-FY6ZTTDQ.js";
|
|
31
|
+
import "../chunk-VQZ4FP6Z.js";
|
|
32
32
|
import "../chunk-7QLSKOSU.js";
|
|
33
33
|
import "../chunk-KZERVKTD.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-MCL5IS6A.js";
|
|
35
35
|
import "../chunk-AQFEP65J.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-PRQMACC7.js";
|
|
37
|
+
import "../chunk-VE4LQ23C.js";
|
|
38
|
+
import "../chunk-DY5PQSQB.js";
|
|
39
39
|
|
|
40
40
|
// bin/pushary-bell-hook.ts
|
|
41
41
|
var main = async () => {
|
package/dist/bin/pushary-bell.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
liveAgentCount,
|
|
6
6
|
ring,
|
|
7
7
|
upgradeThreshold
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-7VLY6RHG.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "../chunk-FO3MDD26.js";
|
|
@@ -13,31 +13,31 @@ import {
|
|
|
13
13
|
addBellHooks,
|
|
14
14
|
bellInstalled,
|
|
15
15
|
removeBellHooks
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-DDS472RO.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFlags
|
|
19
19
|
} from "../chunk-GMXKITVA.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-S3657KK2.js";
|
|
21
21
|
import {
|
|
22
22
|
exitOnHelpFlag
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-7JUISFZ7.js";
|
|
24
|
+
import "../chunk-ADKWE35P.js";
|
|
25
25
|
import "../chunk-7QLSKOSU.js";
|
|
26
26
|
import {
|
|
27
27
|
EXIT
|
|
28
28
|
} from "../chunk-KZERVKTD.js";
|
|
29
29
|
import {
|
|
30
30
|
claudeSettings
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-MCL5IS6A.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
35
35
|
} from "../chunk-AQFEP65J.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-PRQMACC7.js";
|
|
37
|
+
import "../chunk-VE4LQ23C.js";
|
|
38
38
|
import {
|
|
39
39
|
isRecord
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-DY5PQSQB.js";
|
|
41
41
|
|
|
42
42
|
// bin/pushary-bell.ts
|
|
43
43
|
exitOnHelpFlag("bell");
|
|
@@ -6,36 +6,36 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
announceSubscriptionRequired,
|
|
8
8
|
isDeferAnswer
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-R7AMICLS.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeTranscriptPath,
|
|
12
12
|
loadSessionKey,
|
|
13
13
|
registerTranscript,
|
|
14
14
|
registeredTranscriptEnabled
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-CVCOZWSB.js";
|
|
16
16
|
import "../chunk-DWQYCOPI.js";
|
|
17
17
|
import {
|
|
18
18
|
ensureDaemonRunning
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-RDVDW3WK.js";
|
|
20
|
+
import "../chunk-FDDZEYGM.js";
|
|
21
|
+
import "../chunk-PHKISQPB.js";
|
|
22
|
+
import "../chunk-3KSN65VJ.js";
|
|
23
|
+
import "../chunk-DDS472RO.js";
|
|
24
24
|
import "../chunk-GMXKITVA.js";
|
|
25
25
|
import {
|
|
26
26
|
transcriptsEnabled
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-4MJ46JA7.js";
|
|
28
|
+
import "../chunk-S3657KK2.js";
|
|
29
29
|
import {
|
|
30
30
|
SESSION_IDLE_TIMEOUT_MS,
|
|
31
31
|
describeIdleWindow,
|
|
32
32
|
startProcessOwnership,
|
|
33
33
|
withSpawnProcessOwnership
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-P4RKBBHE.js";
|
|
35
35
|
import {
|
|
36
36
|
encryptRecord
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-DRQVZHWE.js";
|
|
38
|
+
import "../chunk-T3QKLW3M.js";
|
|
39
39
|
import {
|
|
40
40
|
needsShell,
|
|
41
41
|
spawnClaude
|
|
@@ -57,9 +57,9 @@ import {
|
|
|
57
57
|
reportEvent,
|
|
58
58
|
savePendingCommand,
|
|
59
59
|
scopePathFor
|
|
60
|
-
} from "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
60
|
+
} from "../chunk-ZR2EPWW4.js";
|
|
61
|
+
import "../chunk-6W64IVG3.js";
|
|
62
|
+
import "../chunk-ADKWE35P.js";
|
|
63
63
|
import {
|
|
64
64
|
askUser,
|
|
65
65
|
cancelQuestion,
|
|
@@ -71,27 +71,27 @@ import {
|
|
|
71
71
|
waitForAnswer,
|
|
72
72
|
waitsForThePhone,
|
|
73
73
|
withdrawQuestion
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-GLVPA4EK.js";
|
|
75
75
|
import "../chunk-POFBE6ZY.js";
|
|
76
76
|
import {
|
|
77
77
|
SubscriptionRequiredError
|
|
78
|
-
} from "../chunk-
|
|
79
|
-
import "../chunk-
|
|
80
|
-
import "../chunk-
|
|
78
|
+
} from "../chunk-6VFP72GX.js";
|
|
79
|
+
import "../chunk-KQDHOQRG.js";
|
|
80
|
+
import "../chunk-FY6ZTTDQ.js";
|
|
81
81
|
import {
|
|
82
82
|
getMachineId
|
|
83
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-VQZ4FP6Z.js";
|
|
84
84
|
import "../chunk-7QLSKOSU.js";
|
|
85
85
|
import "../chunk-KZERVKTD.js";
|
|
86
|
-
import "../chunk-
|
|
86
|
+
import "../chunk-MCL5IS6A.js";
|
|
87
87
|
import "../chunk-AQFEP65J.js";
|
|
88
88
|
import {
|
|
89
89
|
getApiKey,
|
|
90
90
|
getBaseUrl
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-PRQMACC7.js";
|
|
92
92
|
import {
|
|
93
93
|
NPX_LATEST_COMMAND
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-VE4LQ23C.js";
|
|
95
95
|
import {
|
|
96
96
|
DECISION_STOP_REASON,
|
|
97
97
|
HAND_BACK_WITHOUT_A_PROMPT,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
redactSecretsFromContent,
|
|
102
102
|
resolveGate,
|
|
103
103
|
timeoutActionWithoutLocalPrompt
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-DY5PQSQB.js";
|
|
105
105
|
|
|
106
106
|
// src/wrapper/localPassthrough.ts
|
|
107
107
|
var SIGNAL_NUMBERS = {
|