@pushary/agent-hooks 1.9.27 → 1.9.29
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 +26 -25
- package/dist/bin/pushary-clean.js +29 -29
- package/dist/bin/pushary-codex-bridge.js +17 -17
- package/dist/bin/pushary-codex-hook.js +32 -32
- 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 +24 -24
- package/dist/bin/pushary-doctor.js +33 -33
- 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 +40 -32
- 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 +35 -35
- 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-QMMOVPUP.js → chunk-2FOAQ64R.js} +8 -8
- package/dist/{chunk-BZYYTJ65.js → chunk-2XM4TGIM.js} +4 -4
- package/dist/{chunk-W4LNR7LP.js → chunk-35CMXPES.js} +3 -3
- package/dist/{chunk-GORB726L.js → chunk-4DTKE3AS.js} +2 -2
- package/dist/{chunk-UQTQVH5X.js → chunk-5L7H32JK.js} +1 -1
- package/dist/{chunk-WGTD4NZV.js → chunk-62LJB5U3.js} +2 -2
- package/dist/{chunk-O2SMA3JN.js → chunk-7MYGOFVX.js} +4 -4
- package/dist/{chunk-VWTCGKMU.js → chunk-AVQ6ETA7.js} +1 -1
- package/dist/{chunk-LOVDPKUU.js → chunk-AZMHKUUU.js} +1 -1
- package/dist/{chunk-OPSLFAKF.js → chunk-BAVNBGH4.js} +39 -10
- package/dist/{chunk-TQE5VIDJ.js → chunk-BJMVQ6D5.js} +10 -9
- package/dist/{chunk-IOTR2VQN.js → chunk-BKOWTW5P.js} +4 -4
- package/dist/{chunk-5SKHXKIF.js → chunk-BP3WMLXJ.js} +5 -5
- package/dist/{chunk-MTODICDT.js → chunk-BUOLA2AM.js} +1 -1
- package/dist/{chunk-PQAA37YV.js → chunk-C2ZIVQ6W.js} +6 -6
- package/dist/{chunk-YTTPPJZW.js → chunk-CBOHZ6NY.js} +4 -4
- package/dist/{chunk-6CBKIF3S.js → chunk-CCI2UBYR.js} +3 -3
- package/dist/{chunk-TYPQUHIS.js → chunk-CJQEJWLU.js} +5 -5
- package/dist/{chunk-LUJAURFP.js → chunk-CPZZTS4I.js} +1 -1
- package/dist/{chunk-XESMYZLU.js → chunk-DQGM57ZW.js} +1 -1
- package/dist/{chunk-H2ZHGK4F.js → chunk-DUVHHQEL.js} +2 -2
- package/dist/{chunk-V6HQFOBS.js → chunk-EO2GYHWH.js} +3 -3
- package/dist/{chunk-HFGTWPAD.js → chunk-ETLVZHRG.js} +2 -2
- package/dist/{chunk-DY6AKR4W.js → chunk-G4X3Z3YS.js} +4 -4
- package/dist/{chunk-4LIOV4YP.js → chunk-GMVZYB3W.js} +3 -3
- package/dist/{chunk-ZWDXBLEZ.js → chunk-GVIPEBEL.js} +3 -3
- package/dist/{chunk-ZQZRBPTP.js → chunk-H7QTZTIE.js} +68 -10
- package/dist/{chunk-RZNJGCPR.js → chunk-IM73P6JT.js} +5 -5
- package/dist/{chunk-2NQHGDK5.js → chunk-IWPEAA2J.js} +1 -1
- package/dist/{chunk-YZ7D3P3M.js → chunk-JGDBHB6L.js} +2 -2
- package/dist/{chunk-CSXWXXFJ.js → chunk-KMTSU366.js} +1 -1
- package/dist/{chunk-4LO6OQZ4.js → chunk-L7PGUSAU.js} +1 -1
- package/dist/{chunk-5LLH2TBR.js → chunk-LRLF6PZ2.js} +1 -1
- package/dist/{chunk-5ZR7XFTB.js → chunk-LSB66XQC.js} +21 -13
- package/dist/{chunk-NK2URK5A.js → chunk-M2L4EHYW.js} +2 -2
- package/dist/{chunk-JK42X2VL.js → chunk-NRV5PIPA.js} +2 -2
- package/dist/{chunk-VGVMBY4V.js → chunk-OSVDGVLL.js} +18 -9
- package/dist/{chunk-LY3KHTHS.js → chunk-OUWDJIJF.js} +1 -1
- package/dist/{chunk-M463H5LN.js → chunk-PRVG3COH.js} +2 -2
- package/dist/{chunk-OXOT3CGW.js → chunk-PX4RRHEB.js} +4 -4
- package/dist/{chunk-Z5AAPX3O.js → chunk-QOMUEL44.js} +1 -1
- package/dist/{chunk-UWEDDQHU.js → chunk-S3DP6DCZ.js} +2 -2
- package/dist/{chunk-MDAJO2MP.js → chunk-SLKVEJLM.js} +5 -5
- package/dist/{chunk-MSKJRRHY.js → chunk-TILXDMUR.js} +3 -3
- package/dist/{chunk-TWCWRHNK.js → chunk-TJXCBTL4.js} +5 -5
- package/dist/{chunk-XTTMUQ4Z.js → chunk-TXKAPRIA.js} +1 -1
- package/dist/{chunk-KN5ULH4O.js → chunk-UM2HNUJA.js} +3 -3
- package/dist/{chunk-W4DFSUZG.js → chunk-UW37WHVP.js} +2 -2
- package/dist/{chunk-MRMIGVUI.js → chunk-WJUYWTNT.js} +1 -1
- package/dist/{chunk-E4NITECV.js → chunk-WLDFMVRY.js} +2 -2
- package/dist/{chunk-JXOCD4MG.js → chunk-XH7NMH3Q.js} +2 -2
- package/dist/{chunk-AT4URLSU.js → chunk-Y3OZ3CT6.js} +5 -5
- package/dist/{chunk-U4Q3AKLU.js → chunk-YFEHKEGQ.js} +1 -1
- package/dist/{chunk-SLW45RGY.js → chunk-Z2WS466S.js} +17 -16
- package/dist/{global-upgrade-FKQPJL5P.js → global-upgrade-ZPULZXOY.js} +6 -6
- package/dist/{paths-TU47TCRS.js → paths-Y7ZWWCFK.js} +2 -2
- package/dist/{reapply-CTJZBUJY.js → reapply-I4YMQP7F.js} +22 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-2SQCRMDL.js → upgrade-lock-IDAAFSH2.js} +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.29
|
|
4
|
+
|
|
5
|
+
- Codex: answering "Handle on your machine" now always refuses the call, and tells you to ask Codex to run it again while you are at your computer, or to run it yourself. In Codex's default modes the call used to pass back to Codex, and a call Codex does not ask about itself, such as a remote API write or a file deletion, could run without anyone approving it.
|
|
6
|
+
- In a session started from your phone, "Handle on your machine" now refuses the call with the same reason every agent without an approval prompt of its own gives.
|
|
7
|
+
|
|
8
|
+
## 1.9.28
|
|
9
|
+
|
|
10
|
+
- Antigravity CLI: text agy sends to a command it left running (`manage_task` with `send_input`) now goes through Pushary and is judged as the shell command it types, so your `Bash` rules and safe read-only commands apply to it. It used to run with nobody asked, because connecting agy turns off its own prompt. Sending blank input, such as pressing Enter, asks your phone. Listing, checking and stopping agy's own background tasks run without a question.
|
|
11
|
+
- Antigravity CLI: a call the hook cannot read (empty or malformed input, or a tool call with no name) is refused with a reason instead of running. So is every agy call while an admission rule, a wildcard included, has switched agy's approval hook off. Pushary's own tools still run.
|
|
12
|
+
- `pushary upgrade` and automatic updates now also refresh the hooks of Antigravity CLI, Qwen Code, CodeBuddy, Qoder, Droid and Devin when this CLI set them up, so a connection made on an older version picks up the current hook set without running setup again. Other entries in those files are left as they are.
|
|
13
|
+
|
|
3
14
|
## 1.9.27
|
|
4
15
|
|
|
5
16
|
- A `Bash(...)` deny or ask rule you write in Pushary now catches the command it names however it is spelled. With a `Bash(git push:*)` deny and a rule that otherwise allows Bash, these used to run and are now refused: `git -C . push`, `git -c x=y push`, `git --no-pager push`, `git --git-dir=.git push`, `GIT_DIR=.git git push`, `FOO=1 git push`, a push behind `env`, `nohup`, `time`, `nice`, `timeout 60`, `exec`, `command`, `builtin`, `xargs`, `sudo` or `arch -arm64`, `"git" push`, `\git push`, `/usr/bin/git push`, `git push` with two spaces, `(git push)`, `{ git push; }`, `bash -c "git push"`, `sh -c 'git push'`, `eval git push`, a heredoc fed to `bash`, `find . -exec git push \;`, a push inside `if ...; then ...; fi`, and a push chained after a command Pushary could not split before, such as `x=$(git rev-parse HEAD) && git push`, `echo hi > out.txt && git push`, `npm test && git push $(git remote)`, or Claude Code's heredoc commit followed by `&& git push 2>&1 | tail -5`. An ask rule now asks for every one of these. The same holds for any rule, such as `Bash(npm publish:*)` or `Bash(rm:*)`.
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleBell
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5L7H32JK.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-LSB66XQC.js";
|
|
8
|
+
import "../chunk-2FOAQ64R.js";
|
|
9
9
|
import "../chunk-VTR4VRL2.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CJQEJWLU.js";
|
|
11
|
+
import "../chunk-OUWDJIJF.js";
|
|
12
|
+
import "../chunk-LRLF6PZ2.js";
|
|
13
|
+
import "../chunk-AVQ6ETA7.js";
|
|
14
14
|
import "../chunk-XHKBHWLX.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-BJMVQ6D5.js";
|
|
16
|
+
import "../chunk-TJXCBTL4.js";
|
|
17
|
+
import "../chunk-UM2HNUJA.js";
|
|
18
|
+
import "../chunk-WJUYWTNT.js";
|
|
19
|
+
import "../chunk-BUOLA2AM.js";
|
|
20
20
|
import "../chunk-GMXKITVA.js";
|
|
21
21
|
import "../chunk-6ICPEJY5.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-GMVZYB3W.js";
|
|
23
|
+
import "../chunk-OSVDGVLL.js";
|
|
24
|
+
import "../chunk-KMTSU366.js";
|
|
25
|
+
import "../chunk-Y3OZ3CT6.js";
|
|
26
26
|
import "../chunk-POFBE6ZY.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-GVIPEBEL.js";
|
|
28
|
+
import "../chunk-TILXDMUR.js";
|
|
29
|
+
import "../chunk-35CMXPES.js";
|
|
30
|
+
import "../chunk-YFEHKEGQ.js";
|
|
31
31
|
import "../chunk-7QLSKOSU.js";
|
|
32
32
|
import "../chunk-KZERVKTD.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-S3DP6DCZ.js";
|
|
34
|
+
import "../chunk-CBOHZ6NY.js";
|
|
35
35
|
import "../chunk-AQFEP65J.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-TXKAPRIA.js";
|
|
37
|
+
import "../chunk-QOMUEL44.js";
|
|
38
|
+
import "../chunk-H7QTZTIE.js";
|
|
39
39
|
|
|
40
40
|
// bin/pushary-bell-hook.ts
|
|
41
41
|
var main = async () => {
|
package/dist/bin/pushary-bell.js
CHANGED
|
@@ -5,39 +5,39 @@ import {
|
|
|
5
5
|
liveAgentCount,
|
|
6
6
|
ring,
|
|
7
7
|
upgradeThreshold
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-5L7H32JK.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-XH7NMH3Q.js";
|
|
15
15
|
import {
|
|
16
16
|
addBellHooks,
|
|
17
17
|
bellInstalled,
|
|
18
18
|
removeBellHooks
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-BUOLA2AM.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFlags
|
|
22
22
|
} from "../chunk-GMXKITVA.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-GMVZYB3W.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-S3DP6DCZ.js";
|
|
29
29
|
import {
|
|
30
30
|
claudeSettings
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-CBOHZ6NY.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-TXKAPRIA.js";
|
|
37
|
+
import "../chunk-QOMUEL44.js";
|
|
38
38
|
import {
|
|
39
39
|
isRecord
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-H7QTZTIE.js";
|
|
41
41
|
|
|
42
42
|
// bin/pushary-bell.ts
|
|
43
43
|
exitOnHelpFlag("bell");
|
|
@@ -8,39 +8,39 @@ import {
|
|
|
8
8
|
describeIdleWindow,
|
|
9
9
|
startProcessOwnership,
|
|
10
10
|
withSpawnProcessOwnership
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-PRVG3COH.js";
|
|
12
12
|
import {
|
|
13
13
|
announceSubscriptionRequired,
|
|
14
14
|
isDeferAnswer
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-AZMHKUUU.js";
|
|
16
16
|
import {
|
|
17
17
|
claudeTranscriptPath,
|
|
18
18
|
loadSessionKey,
|
|
19
19
|
registerTranscript,
|
|
20
20
|
registeredTranscriptEnabled
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-2FOAQ64R.js";
|
|
22
22
|
import "../chunk-VTR4VRL2.js";
|
|
23
23
|
import {
|
|
24
24
|
ensureDaemonRunning
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-CJQEJWLU.js";
|
|
26
26
|
import {
|
|
27
27
|
encryptRecord
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-OUWDJIJF.js";
|
|
29
|
+
import "../chunk-LRLF6PZ2.js";
|
|
30
30
|
import {
|
|
31
31
|
transcriptsEnabled
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-AVQ6ETA7.js";
|
|
33
33
|
import {
|
|
34
34
|
needsShell,
|
|
35
35
|
spawnClaude
|
|
36
36
|
} from "../chunk-XHKBHWLX.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-TJXCBTL4.js";
|
|
38
|
+
import "../chunk-UM2HNUJA.js";
|
|
39
|
+
import "../chunk-WJUYWTNT.js";
|
|
40
|
+
import "../chunk-BUOLA2AM.js";
|
|
41
41
|
import "../chunk-GMXKITVA.js";
|
|
42
42
|
import "../chunk-6ICPEJY5.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-GMVZYB3W.js";
|
|
44
44
|
import {
|
|
45
45
|
DEFAULT_SESSION,
|
|
46
46
|
UNNAMED_ACTION,
|
|
@@ -58,8 +58,8 @@ import {
|
|
|
58
58
|
reportEvent,
|
|
59
59
|
savePendingCommand,
|
|
60
60
|
scopePathFor
|
|
61
|
-
} from "../chunk-
|
|
62
|
-
import "../chunk-
|
|
61
|
+
} from "../chunk-OSVDGVLL.js";
|
|
62
|
+
import "../chunk-KMTSU366.js";
|
|
63
63
|
import {
|
|
64
64
|
askUser,
|
|
65
65
|
cancelQuestion,
|
|
@@ -69,36 +69,37 @@ import {
|
|
|
69
69
|
waitForAnswer,
|
|
70
70
|
waitsForThePhone,
|
|
71
71
|
withdrawQuestion
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-Y3OZ3CT6.js";
|
|
73
73
|
import "../chunk-POFBE6ZY.js";
|
|
74
74
|
import {
|
|
75
75
|
SubscriptionRequiredError
|
|
76
|
-
} from "../chunk-
|
|
77
|
-
import "../chunk-
|
|
78
|
-
import "../chunk-
|
|
76
|
+
} from "../chunk-GVIPEBEL.js";
|
|
77
|
+
import "../chunk-TILXDMUR.js";
|
|
78
|
+
import "../chunk-35CMXPES.js";
|
|
79
79
|
import {
|
|
80
80
|
getMachineId
|
|
81
|
-
} from "../chunk-
|
|
81
|
+
} from "../chunk-YFEHKEGQ.js";
|
|
82
82
|
import "../chunk-7QLSKOSU.js";
|
|
83
83
|
import "../chunk-KZERVKTD.js";
|
|
84
|
-
import "../chunk-
|
|
85
|
-
import "../chunk-
|
|
84
|
+
import "../chunk-S3DP6DCZ.js";
|
|
85
|
+
import "../chunk-CBOHZ6NY.js";
|
|
86
86
|
import "../chunk-AQFEP65J.js";
|
|
87
87
|
import {
|
|
88
88
|
getApiKey,
|
|
89
89
|
getBaseUrl
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-TXKAPRIA.js";
|
|
91
91
|
import {
|
|
92
92
|
NPX_LATEST_COMMAND
|
|
93
|
-
} from "../chunk-
|
|
93
|
+
} from "../chunk-QOMUEL44.js";
|
|
94
94
|
import {
|
|
95
95
|
DECISION_STOP_REASON,
|
|
96
|
+
HAND_BACK_WITHOUT_A_PROMPT,
|
|
96
97
|
KILL_REASON,
|
|
97
98
|
UNVERIFIABLE_APPROVAL_REASON,
|
|
98
99
|
redactSecretsFromContent,
|
|
99
100
|
resolveGate,
|
|
100
101
|
timeoutActionWithoutLocalPrompt
|
|
101
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-H7QTZTIE.js";
|
|
102
103
|
|
|
103
104
|
// src/wrapper/localPassthrough.ts
|
|
104
105
|
var SIGNAL_NUMBERS = {
|
|
@@ -553,7 +554,7 @@ var createRemoteApprover = (deps) => {
|
|
|
553
554
|
}
|
|
554
555
|
answered = answer.answered;
|
|
555
556
|
if (answer.answered) {
|
|
556
|
-
if (isDeferAnswer(answer.value)) return deny(
|
|
557
|
+
if (isDeferAnswer(answer.value)) return deny(HAND_BACK_WITHOUT_A_PROMPT.reason);
|
|
557
558
|
return answer.value === "yes" ? allow(input) : deny("Denied from your phone");
|
|
558
559
|
}
|
|
559
560
|
if (localHandoff) return deny(NO_LOCAL_APPROVAL_UI);
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
planCliKeyRevocations,
|
|
10
10
|
readCliHeldKeys,
|
|
11
11
|
revokeCliKeys
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-IM73P6JT.js";
|
|
13
13
|
import {
|
|
14
14
|
isCursorPluginLeftover,
|
|
15
15
|
releaseSoleGate,
|
|
16
16
|
withoutPusharyCursorHooks
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-PX4RRHEB.js";
|
|
18
18
|
import {
|
|
19
19
|
HERMES_PIP_PACKAGE,
|
|
20
20
|
readHermesStatus,
|
|
@@ -23,25 +23,25 @@ import {
|
|
|
23
23
|
shortenHome,
|
|
24
24
|
unregisterPluginLocation,
|
|
25
25
|
vscodeSettingsTargets
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-CCI2UBYR.js";
|
|
27
27
|
import {
|
|
28
28
|
planFxRemoval,
|
|
29
29
|
removeInstructionBlock
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-2XM4TGIM.js";
|
|
31
|
+
import "../chunk-NRV5PIPA.js";
|
|
32
32
|
import {
|
|
33
33
|
disableDaemonService
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-CJQEJWLU.js";
|
|
35
35
|
import "../chunk-XHKBHWLX.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-7MYGOFVX.js";
|
|
37
37
|
import {
|
|
38
38
|
macAppKeepsMcpEntry,
|
|
39
39
|
mcpServerBearer,
|
|
40
40
|
pusharyKey,
|
|
41
41
|
readMacAppAgentKey,
|
|
42
42
|
setupReceiptKey
|
|
43
|
-
} from "../chunk-
|
|
44
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-BKOWTW5P.js";
|
|
44
|
+
import "../chunk-ETLVZHRG.js";
|
|
45
45
|
import {
|
|
46
46
|
OPENCODE_PLUGIN_SIBLING,
|
|
47
47
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
@@ -53,14 +53,14 @@ import {
|
|
|
53
53
|
openCodePluginDir,
|
|
54
54
|
openCodePluginFile,
|
|
55
55
|
removeOpenCodeMcpServer
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-BP3WMLXJ.js";
|
|
57
57
|
import {
|
|
58
58
|
ansiPainter,
|
|
59
59
|
useColor
|
|
60
60
|
} from "../chunk-FO3MDD26.js";
|
|
61
61
|
import {
|
|
62
62
|
exitOnHelpFlag
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-XH7NMH3Q.js";
|
|
64
64
|
import {
|
|
65
65
|
compatibleConfigFile,
|
|
66
66
|
compatibleInstructionsFile,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
removePusharySettings,
|
|
74
74
|
removePusharyToolPermissions,
|
|
75
75
|
restoreClaudeMcpServer
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-BJMVQ6D5.js";
|
|
77
77
|
import {
|
|
78
78
|
hookOwnerOf,
|
|
79
79
|
isHookTakeoverReceipt,
|
|
@@ -81,12 +81,12 @@ import {
|
|
|
81
81
|
resolveBridgeStub,
|
|
82
82
|
restoreHookTakeover,
|
|
83
83
|
restoreMcpServer
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-TJXCBTL4.js";
|
|
85
85
|
import {
|
|
86
86
|
removeGeminiSettings
|
|
87
|
-
} from "../chunk-
|
|
88
|
-
import "../chunk-
|
|
89
|
-
import "../chunk-
|
|
87
|
+
} from "../chunk-UM2HNUJA.js";
|
|
88
|
+
import "../chunk-WJUYWTNT.js";
|
|
89
|
+
import "../chunk-BUOLA2AM.js";
|
|
90
90
|
import {
|
|
91
91
|
rejectUnknownFlags
|
|
92
92
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -96,20 +96,20 @@ import {
|
|
|
96
96
|
isDisabledExport,
|
|
97
97
|
removeClaudeAlias,
|
|
98
98
|
shellProfileCandidates
|
|
99
|
-
} from "../chunk-
|
|
100
|
-
import "../chunk-
|
|
101
|
-
import "../chunk-
|
|
102
|
-
import "../chunk-
|
|
99
|
+
} from "../chunk-GMVZYB3W.js";
|
|
100
|
+
import "../chunk-OSVDGVLL.js";
|
|
101
|
+
import "../chunk-KMTSU366.js";
|
|
102
|
+
import "../chunk-Y3OZ3CT6.js";
|
|
103
103
|
import "../chunk-POFBE6ZY.js";
|
|
104
|
-
import "../chunk-
|
|
105
|
-
import "../chunk-
|
|
106
|
-
import "../chunk-
|
|
107
|
-
import "../chunk-
|
|
104
|
+
import "../chunk-GVIPEBEL.js";
|
|
105
|
+
import "../chunk-TILXDMUR.js";
|
|
106
|
+
import "../chunk-35CMXPES.js";
|
|
107
|
+
import "../chunk-YFEHKEGQ.js";
|
|
108
108
|
import "../chunk-7QLSKOSU.js";
|
|
109
109
|
import {
|
|
110
110
|
EXIT
|
|
111
111
|
} from "../chunk-KZERVKTD.js";
|
|
112
|
-
import "../chunk-
|
|
112
|
+
import "../chunk-S3DP6DCZ.js";
|
|
113
113
|
import {
|
|
114
114
|
claudeJson,
|
|
115
115
|
claudeMcpReceipt,
|
|
@@ -146,14 +146,14 @@ import {
|
|
|
146
146
|
restoreCodexHookTrust,
|
|
147
147
|
vscodePluginDir,
|
|
148
148
|
vscodePluginMcp
|
|
149
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-CBOHZ6NY.js";
|
|
150
150
|
import "../chunk-AQFEP65J.js";
|
|
151
151
|
import {
|
|
152
152
|
getBaseUrl
|
|
153
|
-
} from "../chunk-
|
|
153
|
+
} from "../chunk-TXKAPRIA.js";
|
|
154
154
|
import {
|
|
155
155
|
NPX_LATEST_COMMAND
|
|
156
|
-
} from "../chunk-
|
|
156
|
+
} from "../chunk-QOMUEL44.js";
|
|
157
157
|
import {
|
|
158
158
|
CLI_PACKAGE_NAMES,
|
|
159
159
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
globalRootFor,
|
|
166
166
|
isValidApiKey,
|
|
167
167
|
redactSecrets
|
|
168
|
-
} from "../chunk-
|
|
168
|
+
} from "../chunk-H7QTZTIE.js";
|
|
169
169
|
|
|
170
170
|
// bin/pushary-clean.ts
|
|
171
171
|
import { existsSync as existsSync6, readFileSync as readFileSync4, copyFileSync, readdirSync as readdirSync4 } from "fs";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
postLiveSession,
|
|
6
6
|
postLiveSessionUntilAccepted,
|
|
7
7
|
startLiveSessionHeartbeat
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-UW37WHVP.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveProviderBinary
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-M2L4EHYW.js";
|
|
12
12
|
import "../chunk-RIVNNBEK.js";
|
|
13
13
|
import {
|
|
14
14
|
SESSION_IDLE_TIMEOUT_MS,
|
|
@@ -16,50 +16,50 @@ import {
|
|
|
16
16
|
idleDeadlinePassed,
|
|
17
17
|
startProcessOwnership,
|
|
18
18
|
withSpawnProcessOwnership
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-PRVG3COH.js";
|
|
20
|
+
import "../chunk-OUWDJIJF.js";
|
|
21
|
+
import "../chunk-LRLF6PZ2.js";
|
|
22
22
|
import {
|
|
23
23
|
transcriptsEnabled
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-AVQ6ETA7.js";
|
|
25
25
|
import {
|
|
26
26
|
spawnClaude
|
|
27
27
|
} from "../chunk-XHKBHWLX.js";
|
|
28
28
|
import "../chunk-6ICPEJY5.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-GMVZYB3W.js";
|
|
30
30
|
import {
|
|
31
31
|
isAskUserResponse,
|
|
32
32
|
isDecisionStopped,
|
|
33
33
|
isWaitForAnswerResponse,
|
|
34
34
|
withdrawQuestion,
|
|
35
35
|
writeDegraded
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-Y3OZ3CT6.js";
|
|
37
37
|
import "../chunk-POFBE6ZY.js";
|
|
38
38
|
import {
|
|
39
39
|
callMcpTool
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-GVIPEBEL.js";
|
|
41
|
+
import "../chunk-TILXDMUR.js";
|
|
42
|
+
import "../chunk-35CMXPES.js";
|
|
43
43
|
import {
|
|
44
44
|
getMachineId
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-YFEHKEGQ.js";
|
|
46
46
|
import "../chunk-7QLSKOSU.js";
|
|
47
47
|
import "../chunk-KZERVKTD.js";
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-S3DP6DCZ.js";
|
|
49
|
+
import "../chunk-CBOHZ6NY.js";
|
|
50
50
|
import "../chunk-AQFEP65J.js";
|
|
51
51
|
import {
|
|
52
52
|
getApiKey,
|
|
53
53
|
getBaseUrl
|
|
54
|
-
} from "../chunk-
|
|
55
|
-
import "../chunk-
|
|
54
|
+
} from "../chunk-TXKAPRIA.js";
|
|
55
|
+
import "../chunk-QOMUEL44.js";
|
|
56
56
|
import {
|
|
57
57
|
elicitationContent,
|
|
58
58
|
parseAgentQuestion,
|
|
59
59
|
parseAgentQuestionAnswers,
|
|
60
60
|
planElicitationAsk,
|
|
61
61
|
readElicitationFields
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-H7QTZTIE.js";
|
|
63
63
|
|
|
64
64
|
// bin/pushary-codex-bridge.ts
|
|
65
65
|
import { existsSync } from "fs";
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
takeHookHoldBudget
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-L7PGUSAU.js";
|
|
5
5
|
import {
|
|
6
6
|
defersToNativeMode,
|
|
7
7
|
reportMachineDenial
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-WLDFMVRY.js";
|
|
9
9
|
import {
|
|
10
10
|
isGatingMoment,
|
|
11
11
|
recordKeylessMoment
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-CPZZTS4I.js";
|
|
13
13
|
import {
|
|
14
14
|
triggerAutoUpdate
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-62LJB5U3.js";
|
|
16
16
|
import {
|
|
17
17
|
readHookInput
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-LSB66XQC.js";
|
|
19
19
|
import {
|
|
20
20
|
announceSubscriptionRequired,
|
|
21
21
|
isDeferAnswer
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-AZMHKUUU.js";
|
|
23
|
+
import "../chunk-2FOAQ64R.js";
|
|
24
24
|
import "../chunk-VTR4VRL2.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-CJQEJWLU.js";
|
|
26
|
+
import "../chunk-OUWDJIJF.js";
|
|
27
|
+
import "../chunk-LRLF6PZ2.js";
|
|
28
|
+
import "../chunk-AVQ6ETA7.js";
|
|
29
29
|
import "../chunk-XHKBHWLX.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-BJMVQ6D5.js";
|
|
31
|
+
import "../chunk-TJXCBTL4.js";
|
|
32
|
+
import "../chunk-UM2HNUJA.js";
|
|
33
|
+
import "../chunk-WJUYWTNT.js";
|
|
34
|
+
import "../chunk-BUOLA2AM.js";
|
|
35
35
|
import "../chunk-GMXKITVA.js";
|
|
36
36
|
import "../chunk-6ICPEJY5.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-GMVZYB3W.js";
|
|
38
38
|
import {
|
|
39
39
|
CODEX_AGENT,
|
|
40
40
|
DEFAULT_SESSION,
|
|
@@ -78,8 +78,8 @@ import {
|
|
|
78
78
|
toPolicyLookup,
|
|
79
79
|
toPolicyLookups,
|
|
80
80
|
userScope
|
|
81
|
-
} from "../chunk-
|
|
82
|
-
import "../chunk-
|
|
81
|
+
} from "../chunk-OSVDGVLL.js";
|
|
82
|
+
import "../chunk-KMTSU366.js";
|
|
83
83
|
import {
|
|
84
84
|
askUser,
|
|
85
85
|
cancelQuestion,
|
|
@@ -92,31 +92,31 @@ import {
|
|
|
92
92
|
sendNotification,
|
|
93
93
|
unavailableQuestionUnlessSubscriptionRequired,
|
|
94
94
|
waitForQuestion
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-Y3OZ3CT6.js";
|
|
96
96
|
import "../chunk-POFBE6ZY.js";
|
|
97
97
|
import {
|
|
98
98
|
SubscriptionRequiredError
|
|
99
|
-
} from "../chunk-
|
|
100
|
-
import "../chunk-
|
|
101
|
-
import "../chunk-
|
|
99
|
+
} from "../chunk-GVIPEBEL.js";
|
|
100
|
+
import "../chunk-TILXDMUR.js";
|
|
101
|
+
import "../chunk-35CMXPES.js";
|
|
102
102
|
import {
|
|
103
103
|
getMachineId
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-YFEHKEGQ.js";
|
|
105
105
|
import "../chunk-7QLSKOSU.js";
|
|
106
106
|
import {
|
|
107
107
|
EXIT
|
|
108
108
|
} from "../chunk-KZERVKTD.js";
|
|
109
|
-
import "../chunk-
|
|
109
|
+
import "../chunk-S3DP6DCZ.js";
|
|
110
110
|
import {
|
|
111
111
|
canonicalJson
|
|
112
|
-
} from "../chunk-
|
|
112
|
+
} from "../chunk-CBOHZ6NY.js";
|
|
113
113
|
import {
|
|
114
114
|
writeFileAtomic
|
|
115
115
|
} from "../chunk-AQFEP65J.js";
|
|
116
116
|
import {
|
|
117
117
|
getApiKey
|
|
118
|
-
} from "../chunk-
|
|
119
|
-
import "../chunk-
|
|
118
|
+
} from "../chunk-TXKAPRIA.js";
|
|
119
|
+
import "../chunk-QOMUEL44.js";
|
|
120
120
|
import {
|
|
121
121
|
CODEX_RESCUE_TOOL_NAME,
|
|
122
122
|
DECISION_STOP_REASON,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
resolveGate,
|
|
141
141
|
scopeBreachReasonOf,
|
|
142
142
|
unapprovedScopeReason
|
|
143
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-H7QTZTIE.js";
|
|
144
144
|
|
|
145
145
|
// bin/pushary-codex-hook.ts
|
|
146
146
|
import { basename } from "path";
|
|
@@ -692,7 +692,7 @@ var scopeQuestionOf = (verdict) => {
|
|
|
692
692
|
var codexDeliveryMode = (policyMode, noPromptOfItsOwn) => noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(policyMode) : policyMode;
|
|
693
693
|
var unansweredOutcome = (scope, fallback) => scope ? codexDeny(unapprovedScopeReason(scope.reason)) : fallback;
|
|
694
694
|
var codexDecisionOf = (ending) => ending.kind === "deny" ? codexDeny(ending.reason) : codexPass();
|
|
695
|
-
var deferredPreToolUse = (scope
|
|
695
|
+
var deferredPreToolUse = (scope) => unansweredOutcome(scope, codexDecisionOf(codexDeferredPreToolUse()));
|
|
696
696
|
var unansweredPreToolUse = (toolPolicy, input, fullWindowServed) => codexDecisionOf(codexUnansweredPreToolUse({
|
|
697
697
|
mode: toolPolicy.mode,
|
|
698
698
|
timeoutAction: toolPolicy.timeoutAction,
|
|
@@ -751,7 +751,7 @@ var decidePreToolUse = async (input) => {
|
|
|
751
751
|
if (isDecisionStopped(answer)) return codexDeny(DECISION_STOP_REASON);
|
|
752
752
|
if (localHandoff) return recordPreToolUse(callKey, unansweredOutcome(scope, unansweredPreToolUse(toolPolicy, input, false)));
|
|
753
753
|
if (answer.answered) {
|
|
754
|
-
if (isDeferAnswer(answer.value)) return recordPreToolUse(callKey, deferredPreToolUse(scope
|
|
754
|
+
if (isDeferAnswer(answer.value)) return recordPreToolUse(callKey, deferredPreToolUse(scope));
|
|
755
755
|
if (answer.value === "yes") return recordApproval(callKey, input);
|
|
756
756
|
return recordPreToolUse(callKey, codexDeny(denyReasonFrom(answer.value, answer.note)));
|
|
757
757
|
}
|
|
@@ -769,7 +769,7 @@ var decidePreToolUse = async (input) => {
|
|
|
769
769
|
};
|
|
770
770
|
var repairCodexHoldsQuietly = async () => {
|
|
771
771
|
try {
|
|
772
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
772
|
+
const { repairCodexHolds } = await import("../reapply-I4YMQP7F.js");
|
|
773
773
|
repairCodexHolds();
|
|
774
774
|
} catch {
|
|
775
775
|
return;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reportEvent
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OSVDGVLL.js";
|
|
5
|
+
import "../chunk-KMTSU366.js";
|
|
6
6
|
import {
|
|
7
7
|
askUser,
|
|
8
8
|
isDecisionStopped,
|
|
9
9
|
waitForAnswer
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-Y3OZ3CT6.js";
|
|
11
11
|
import "../chunk-POFBE6ZY.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-GVIPEBEL.js";
|
|
13
|
+
import "../chunk-TILXDMUR.js";
|
|
14
|
+
import "../chunk-35CMXPES.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-YFEHKEGQ.js";
|
|
18
18
|
import "../chunk-7QLSKOSU.js";
|
|
19
19
|
import "../chunk-KZERVKTD.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-S3DP6DCZ.js";
|
|
21
|
+
import "../chunk-CBOHZ6NY.js";
|
|
22
22
|
import "../chunk-AQFEP65J.js";
|
|
23
23
|
import {
|
|
24
24
|
getApiKey
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-TXKAPRIA.js";
|
|
26
26
|
import {
|
|
27
27
|
NPX_LATEST_COMMAND
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-QOMUEL44.js";
|
|
29
|
+
import "../chunk-H7QTZTIE.js";
|
|
30
30
|
|
|
31
31
|
// bin/pushary-codex.ts
|
|
32
32
|
import { basename } from "path";
|