pushary 1.9.21 → 1.9.23
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 +10 -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 +28 -28
- package/dist/bin/pushary-codex-bridge.js +17 -17
- package/dist/bin/pushary-codex-hook.js +38 -36
- 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 +31 -31
- 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 +28 -28
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +12 -12
- package/dist/bin/pushary-logout.js +12 -12
- 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 +27 -27
- 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 +40 -39
- 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-U6GYFWT4.js → chunk-2AUKCSLQ.js} +4 -4
- package/dist/{chunk-Y2BOLNJV.js → chunk-4GKQDFH6.js} +9 -6
- package/dist/{chunk-4RJQPI36.js → chunk-6GHZAS7S.js} +4 -4
- package/dist/{chunk-NVXC6ZBR.js → chunk-6HT2TUZD.js} +2 -2
- package/dist/{chunk-LUDGBOLV.js → chunk-73HGV4R6.js} +2 -2
- package/dist/{chunk-Z5EYCMJH.js → chunk-7J2AX5T6.js} +2 -2
- package/dist/{chunk-YLLGKY7K.js → chunk-7RGEJOQS.js} +3 -3
- package/dist/{chunk-PYWZYM74.js → chunk-A5U62Q6K.js} +5 -5
- package/dist/{chunk-AXBFNQG6.js → chunk-AFP3HZVK.js} +1 -1
- package/dist/{chunk-FH4O3QGQ.js → chunk-AQ3TSQA2.js} +3 -3
- package/dist/{chunk-TJ4KMPYO.js → chunk-AV5VX7OK.js} +8 -8
- package/dist/{chunk-QHY3UDYC.js → chunk-AXSHPFU3.js} +3 -3
- package/dist/{chunk-PCF7JUTP.js → chunk-BY5EKA6W.js} +3 -3
- package/dist/{chunk-7AFLHL2R.js → chunk-CJTQNUUT.js} +2 -2
- package/dist/{chunk-TVBEHME2.js → chunk-DKBPNHAI.js} +4 -4
- package/dist/{chunk-ZNAGS7O7.js → chunk-E2LGKG75.js} +3 -3
- package/dist/{chunk-NBGJ3EOE.js → chunk-EDN4F6GX.js} +1 -1
- package/dist/{chunk-G4TV5GYU.js → chunk-FBV2KS3Z.js} +2 -2
- package/dist/{chunk-BV5JPACQ.js → chunk-FIYCICHC.js} +2 -2
- package/dist/{chunk-UKCRTTKF.js → chunk-GN6BJXC7.js} +1 -1
- package/dist/{chunk-YCL2V5FD.js → chunk-GYP6DLA4.js} +10 -10
- package/dist/{chunk-RVP6COOQ.js → chunk-HXZG5WHU.js} +2 -2
- package/dist/{chunk-2V55RBUR.js → chunk-I46QTKYI.js} +5 -5
- package/dist/{chunk-FUXCWF4Y.js → chunk-ISAKLEKE.js} +7 -7
- package/dist/{chunk-VRXX2AY2.js → chunk-JCEUDLGW.js} +1 -1
- package/dist/{chunk-TQIPIFL7.js → chunk-JNKHCGHR.js} +1 -1
- package/dist/{chunk-BDL6GJOQ.js → chunk-K2EYK5RL.js} +4 -4
- package/dist/{chunk-JHAPJRAN.js → chunk-KJA6IGOZ.js} +1 -1
- package/dist/{chunk-B6KZME5D.js → chunk-LEQRIJ4H.js} +1 -1
- package/dist/{chunk-6WBIQQHO.js → chunk-M6R3SZZS.js} +1 -1
- package/dist/{chunk-PCVAK67W.js → chunk-M7DCI44L.js} +1 -7
- package/dist/{chunk-6WINXCXY.js → chunk-N4DMADJM.js} +1 -1
- package/dist/{chunk-IEYFFMTU.js → chunk-NHBPW6C4.js} +2 -2
- package/dist/{chunk-XNO3CSVW.js → chunk-NSCETODW.js} +1 -1
- package/dist/{chunk-VBPASZU7.js → chunk-OH647UT3.js} +32 -6
- package/dist/{chunk-II6OFDB3.js → chunk-OH6OGEOY.js} +4 -4
- package/dist/{chunk-4WHNRAOK.js → chunk-OQPEHKH2.js} +1 -1
- package/dist/{chunk-IIQ77WUJ.js → chunk-PFB7P4F3.js} +6 -6
- package/dist/{chunk-IM7EGZVH.js → chunk-QFNY4KUQ.js} +1 -1
- package/dist/{chunk-CEF4UQ3X.js → chunk-QIODXPTP.js} +4 -4
- package/dist/{chunk-247PAUW6.js → chunk-R5C3QCVT.js} +1 -1
- package/dist/{chunk-Y6PZ3B5U.js → chunk-RHIKMNWJ.js} +2 -2
- package/dist/{chunk-VD2AWSER.js → chunk-RN5NRRHX.js} +2 -2
- package/dist/{chunk-SVQOEVAT.js → chunk-S2R2U5W5.js} +4 -4
- package/dist/{chunk-I52ALHOM.js → chunk-SLBO7PHS.js} +2 -2
- package/dist/{chunk-L5NPRGVE.js → chunk-SSWK2WYX.js} +5 -5
- package/dist/{chunk-GMJOSAAP.js → chunk-SWQLZQE3.js} +18 -15
- package/dist/{chunk-5PW6GMQO.js → chunk-USUI4P63.js} +2 -2
- package/dist/{chunk-TBCXMW2C.js → chunk-XBETSM5T.js} +3 -3
- package/dist/{chunk-4BKAZ4JN.js → chunk-YXHVMZPR.js} +4 -4
- package/dist/{chunk-ESHO7OC3.js → chunk-YZPFJCFE.js} +1 -1
- package/dist/{chunk-UZ2YEGIT.js → chunk-Z4UDB7EC.js} +3 -3
- package/dist/{chunk-BERMVODT.js → chunk-ZGYO6OQE.js} +5 -5
- package/dist/{global-upgrade-AHRKGQ7M.js → global-upgrade-SKY7A3SI.js} +6 -6
- package/dist/{paths-AGUCNYQ5.js → paths-XUUEK7OU.js} +2 -2
- package/dist/{reapply-BUCDXIIM.js → reapply-WQDP26EA.js} +20 -20
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-7Z5WBZVH.js → upgrade-lock-AYW3TB7X.js} +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.23
|
|
4
|
+
|
|
5
|
+
- A `printf` whose format has a numeric conversion, such as `%d`, `%x` or `%f`, is no longer approved as a read unless every argument is a plain number. zsh, the default shell on a Mac, evaluates those arguments as arithmetic, and an argument such as `'PWD[$(command)]'` ran the command while Pushary approved it without asking. `printf '%s\n' text`, `printf hello` and `printf '%d\n' 42` are still approved as reads.
|
|
6
|
+
- Codex with its approval policy set to never: answering "Handle on your machine" on your phone now refuses the call. Codex has no prompt of its own there, so the call used to run, a destructive one included. With Codex's own prompts on, the call still goes to that prompt.
|
|
7
|
+
- Antigravity CLI: when your Pushary subscription has ended, a call Pushary would ask about is refused with a message that says so. Pushary is agy's only gate, and the call used to run with nothing asking. Renew, or run `pushary disconnect antigravity` to give approvals back to agy.
|
|
8
|
+
|
|
9
|
+
## 1.9.22
|
|
10
|
+
|
|
11
|
+
- Each approval Claude Code or Codex sends through Pushary now carries the approval mode the agent reported for the session, such as `default` or `bypassPermissions`, so Pushary can tell which mode an approval was asked in. It is recorded with the approval and never used to decide one. A mode that is empty or not text is left out, and a long one is cut to 64 characters.
|
|
12
|
+
|
|
3
13
|
## 1.9.21
|
|
4
14
|
|
|
5
15
|
- `pushary setup` records a key as the one Pushary for Mac is signed in with only when Pushary for Mac holds that same key. It used to record any key it reused from your agent settings that way, including one left behind by an earlier CLI sign-in. `pushary clean` never revokes the Mac app's key, so it skipped that leftover key and left it working. Now it revokes it, and still leaves the Mac app's own key alone.
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleBell
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YZPFJCFE.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-OH6OGEOY.js";
|
|
8
|
+
import "../chunk-AV5VX7OK.js";
|
|
9
9
|
import "../chunk-VTR4VRL2.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-SSWK2WYX.js";
|
|
11
|
+
import "../chunk-N4DMADJM.js";
|
|
12
|
+
import "../chunk-QFNY4KUQ.js";
|
|
13
|
+
import "../chunk-M6R3SZZS.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-K2EYK5RL.js";
|
|
16
|
+
import "../chunk-A5U62Q6K.js";
|
|
17
|
+
import "../chunk-7RGEJOQS.js";
|
|
18
|
+
import "../chunk-R5C3QCVT.js";
|
|
19
|
+
import "../chunk-AFP3HZVK.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-AQ3TSQA2.js";
|
|
23
|
+
import "../chunk-GYP6DLA4.js";
|
|
24
|
+
import "../chunk-KJA6IGOZ.js";
|
|
25
|
+
import "../chunk-4GKQDFH6.js";
|
|
26
26
|
import "../chunk-POFBE6ZY.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-E2LGKG75.js";
|
|
28
|
+
import "../chunk-Z4UDB7EC.js";
|
|
29
|
+
import "../chunk-XBETSM5T.js";
|
|
30
|
+
import "../chunk-EDN4F6GX.js";
|
|
31
31
|
import "../chunk-7QLSKOSU.js";
|
|
32
32
|
import "../chunk-KZERVKTD.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-6HT2TUZD.js";
|
|
34
|
+
import "../chunk-QIODXPTP.js";
|
|
35
35
|
import "../chunk-AQFEP65J.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-OQPEHKH2.js";
|
|
37
|
+
import "../chunk-LEQRIJ4H.js";
|
|
38
|
+
import "../chunk-OH647UT3.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-YZPFJCFE.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-FIYCICHC.js";
|
|
15
15
|
import {
|
|
16
16
|
addBellHooks,
|
|
17
17
|
bellInstalled,
|
|
18
18
|
removeBellHooks
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-AFP3HZVK.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFlags
|
|
22
22
|
} from "../chunk-GMXKITVA.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-AQ3TSQA2.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-6HT2TUZD.js";
|
|
29
29
|
import {
|
|
30
30
|
claudeSettings
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-QIODXPTP.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-OQPEHKH2.js";
|
|
37
|
+
import "../chunk-LEQRIJ4H.js";
|
|
38
38
|
import {
|
|
39
39
|
isRecord
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-OH647UT3.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-CJTQNUUT.js";
|
|
12
12
|
import {
|
|
13
13
|
announceSubscriptionRequired,
|
|
14
14
|
isDeferAnswer
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-M7DCI44L.js";
|
|
16
16
|
import {
|
|
17
17
|
claudeTranscriptPath,
|
|
18
18
|
loadSessionKey,
|
|
19
19
|
registerTranscript,
|
|
20
20
|
registeredTranscriptEnabled
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-AV5VX7OK.js";
|
|
22
22
|
import "../chunk-VTR4VRL2.js";
|
|
23
23
|
import {
|
|
24
24
|
ensureDaemonRunning
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-SSWK2WYX.js";
|
|
26
26
|
import {
|
|
27
27
|
encryptRecord
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-N4DMADJM.js";
|
|
29
|
+
import "../chunk-QFNY4KUQ.js";
|
|
30
30
|
import {
|
|
31
31
|
transcriptsEnabled
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-M6R3SZZS.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-A5U62Q6K.js";
|
|
38
|
+
import "../chunk-7RGEJOQS.js";
|
|
39
|
+
import "../chunk-R5C3QCVT.js";
|
|
40
|
+
import "../chunk-AFP3HZVK.js";
|
|
41
41
|
import "../chunk-GMXKITVA.js";
|
|
42
42
|
import "../chunk-6ICPEJY5.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-AQ3TSQA2.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-GYP6DLA4.js";
|
|
62
|
+
import "../chunk-KJA6IGOZ.js";
|
|
63
63
|
import {
|
|
64
64
|
askUser,
|
|
65
65
|
cancelQuestion,
|
|
@@ -69,35 +69,35 @@ import {
|
|
|
69
69
|
waitForAnswer,
|
|
70
70
|
waitsForThePhone,
|
|
71
71
|
withdrawQuestion
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-4GKQDFH6.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-E2LGKG75.js";
|
|
77
|
+
import "../chunk-Z4UDB7EC.js";
|
|
78
|
+
import "../chunk-XBETSM5T.js";
|
|
79
79
|
import {
|
|
80
80
|
getMachineId
|
|
81
|
-
} from "../chunk-
|
|
81
|
+
} from "../chunk-EDN4F6GX.js";
|
|
82
82
|
import "../chunk-7QLSKOSU.js";
|
|
83
83
|
import "../chunk-KZERVKTD.js";
|
|
84
|
-
import "../chunk-
|
|
85
|
-
import "../chunk-
|
|
84
|
+
import "../chunk-6HT2TUZD.js";
|
|
85
|
+
import "../chunk-QIODXPTP.js";
|
|
86
86
|
import "../chunk-AQFEP65J.js";
|
|
87
87
|
import {
|
|
88
88
|
getApiKey,
|
|
89
89
|
getBaseUrl
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-OQPEHKH2.js";
|
|
91
91
|
import {
|
|
92
92
|
NPX_LATEST_COMMAND
|
|
93
|
-
} from "../chunk-
|
|
93
|
+
} from "../chunk-LEQRIJ4H.js";
|
|
94
94
|
import {
|
|
95
95
|
DECISION_STOP_REASON,
|
|
96
96
|
KILL_REASON,
|
|
97
97
|
UNVERIFIABLE_APPROVAL_REASON,
|
|
98
98
|
redactSecretsFromContent,
|
|
99
99
|
resolveGate
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-OH647UT3.js";
|
|
101
101
|
|
|
102
102
|
// src/wrapper/localPassthrough.ts
|
|
103
103
|
var SIGNAL_NUMBERS = {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isCursorPluginLeftover,
|
|
14
14
|
releaseSoleGate,
|
|
15
15
|
withoutPusharyCursorHooks
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-2AUKCSLQ.js";
|
|
17
17
|
import {
|
|
18
18
|
HERMES_PIP_PACKAGE,
|
|
19
19
|
readHermesStatus,
|
|
@@ -22,27 +22,27 @@ import {
|
|
|
22
22
|
shortenHome,
|
|
23
23
|
unregisterPluginLocation,
|
|
24
24
|
vscodeSettingsTargets
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-AXSHPFU3.js";
|
|
26
26
|
import {
|
|
27
27
|
planFxRemoval,
|
|
28
28
|
removeInstructionBlock
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-YXHVMZPR.js";
|
|
30
|
+
import "../chunk-RN5NRRHX.js";
|
|
31
31
|
import {
|
|
32
32
|
disableDaemonService
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-SSWK2WYX.js";
|
|
34
34
|
import "../chunk-XHKBHWLX.js";
|
|
35
35
|
import {
|
|
36
36
|
APPROVAL_SETTINGS_PATH
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-S2R2U5W5.js";
|
|
38
38
|
import {
|
|
39
39
|
macAppKeepsMcpEntry,
|
|
40
40
|
mcpServerBearer,
|
|
41
41
|
pusharyKey,
|
|
42
42
|
readMacAppAgentKey,
|
|
43
43
|
setupReceiptKey
|
|
44
|
-
} from "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
} from "../chunk-6GHZAS7S.js";
|
|
45
|
+
import "../chunk-SLBO7PHS.js";
|
|
46
46
|
import {
|
|
47
47
|
OPENCODE_PLUGIN_SIBLING,
|
|
48
48
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
@@ -54,14 +54,14 @@ import {
|
|
|
54
54
|
openCodePluginDir,
|
|
55
55
|
openCodePluginFile,
|
|
56
56
|
removeOpenCodeMcpServer
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-ZGYO6OQE.js";
|
|
58
58
|
import {
|
|
59
59
|
ansiPainter,
|
|
60
60
|
useColor
|
|
61
61
|
} from "../chunk-FO3MDD26.js";
|
|
62
62
|
import {
|
|
63
63
|
exitOnHelpFlag
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-FIYCICHC.js";
|
|
65
65
|
import {
|
|
66
66
|
compatibleConfigFile,
|
|
67
67
|
compatibleInstructionsFile,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
removePusharySettings,
|
|
75
75
|
removePusharyToolPermissions,
|
|
76
76
|
restoreClaudeMcpServer
|
|
77
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-K2EYK5RL.js";
|
|
78
78
|
import {
|
|
79
79
|
hookOwnerOf,
|
|
80
80
|
isHookTakeoverReceipt,
|
|
@@ -82,12 +82,12 @@ import {
|
|
|
82
82
|
resolveBridgeStub,
|
|
83
83
|
restoreHookTakeover,
|
|
84
84
|
restoreMcpServer
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-A5U62Q6K.js";
|
|
86
86
|
import {
|
|
87
87
|
removeGeminiSettings
|
|
88
|
-
} from "../chunk-
|
|
89
|
-
import "../chunk-
|
|
90
|
-
import "../chunk-
|
|
88
|
+
} from "../chunk-7RGEJOQS.js";
|
|
89
|
+
import "../chunk-R5C3QCVT.js";
|
|
90
|
+
import "../chunk-AFP3HZVK.js";
|
|
91
91
|
import {
|
|
92
92
|
rejectUnknownFlags
|
|
93
93
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -102,22 +102,22 @@ import {
|
|
|
102
102
|
readKeySource,
|
|
103
103
|
readMacAppKeyPrefix,
|
|
104
104
|
removeClaudeAlias
|
|
105
|
-
} from "../chunk-
|
|
106
|
-
import "../chunk-
|
|
107
|
-
import "../chunk-
|
|
108
|
-
import "../chunk-
|
|
105
|
+
} from "../chunk-AQ3TSQA2.js";
|
|
106
|
+
import "../chunk-GYP6DLA4.js";
|
|
107
|
+
import "../chunk-KJA6IGOZ.js";
|
|
108
|
+
import "../chunk-4GKQDFH6.js";
|
|
109
109
|
import "../chunk-POFBE6ZY.js";
|
|
110
|
-
import "../chunk-
|
|
110
|
+
import "../chunk-E2LGKG75.js";
|
|
111
111
|
import {
|
|
112
112
|
absoluteUrl
|
|
113
|
-
} from "../chunk-
|
|
114
|
-
import "../chunk-
|
|
115
|
-
import "../chunk-
|
|
113
|
+
} from "../chunk-Z4UDB7EC.js";
|
|
114
|
+
import "../chunk-XBETSM5T.js";
|
|
115
|
+
import "../chunk-EDN4F6GX.js";
|
|
116
116
|
import "../chunk-7QLSKOSU.js";
|
|
117
117
|
import {
|
|
118
118
|
EXIT
|
|
119
119
|
} from "../chunk-KZERVKTD.js";
|
|
120
|
-
import "../chunk-
|
|
120
|
+
import "../chunk-6HT2TUZD.js";
|
|
121
121
|
import {
|
|
122
122
|
claudeJson,
|
|
123
123
|
claudeMcpReceipt,
|
|
@@ -154,14 +154,14 @@ import {
|
|
|
154
154
|
restoreCodexHookTrust,
|
|
155
155
|
vscodePluginDir,
|
|
156
156
|
vscodePluginMcp
|
|
157
|
-
} from "../chunk-
|
|
157
|
+
} from "../chunk-QIODXPTP.js";
|
|
158
158
|
import "../chunk-AQFEP65J.js";
|
|
159
159
|
import {
|
|
160
160
|
getBaseUrl
|
|
161
|
-
} from "../chunk-
|
|
161
|
+
} from "../chunk-OQPEHKH2.js";
|
|
162
162
|
import {
|
|
163
163
|
NPX_LATEST_COMMAND
|
|
164
|
-
} from "../chunk-
|
|
164
|
+
} from "../chunk-LEQRIJ4H.js";
|
|
165
165
|
import {
|
|
166
166
|
CLI_PACKAGE_NAMES,
|
|
167
167
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
globalRootFor,
|
|
174
174
|
isValidApiKey,
|
|
175
175
|
redactSecrets
|
|
176
|
-
} from "../chunk-
|
|
176
|
+
} from "../chunk-OH647UT3.js";
|
|
177
177
|
|
|
178
178
|
// bin/pushary-clean.ts
|
|
179
179
|
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-73HGV4R6.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveProviderBinary
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-7J2AX5T6.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-CJTQNUUT.js";
|
|
20
|
+
import "../chunk-N4DMADJM.js";
|
|
21
|
+
import "../chunk-QFNY4KUQ.js";
|
|
22
22
|
import {
|
|
23
23
|
transcriptsEnabled
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-M6R3SZZS.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-AQ3TSQA2.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-4GKQDFH6.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-E2LGKG75.js";
|
|
41
|
+
import "../chunk-Z4UDB7EC.js";
|
|
42
|
+
import "../chunk-XBETSM5T.js";
|
|
43
43
|
import {
|
|
44
44
|
getMachineId
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-EDN4F6GX.js";
|
|
46
46
|
import "../chunk-7QLSKOSU.js";
|
|
47
47
|
import "../chunk-KZERVKTD.js";
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-6HT2TUZD.js";
|
|
49
|
+
import "../chunk-QIODXPTP.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-OQPEHKH2.js";
|
|
55
|
+
import "../chunk-LEQRIJ4H.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-OH647UT3.js";
|
|
63
63
|
|
|
64
64
|
// bin/pushary-codex-bridge.ts
|
|
65
65
|
import { existsSync } from "fs";
|
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
takeHookHoldBudget
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JNKHCGHR.js";
|
|
5
5
|
import {
|
|
6
6
|
defersToNativeMode,
|
|
7
7
|
reportMachineDenial
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-FBV2KS3Z.js";
|
|
9
9
|
import {
|
|
10
10
|
triggerAutoUpdate
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-USUI4P63.js";
|
|
12
12
|
import {
|
|
13
13
|
isGatingMoment,
|
|
14
14
|
recordKeylessMoment
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-GN6BJXC7.js";
|
|
16
16
|
import {
|
|
17
17
|
readHookInput
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-OH6OGEOY.js";
|
|
19
19
|
import {
|
|
20
20
|
announceSubscriptionRequired,
|
|
21
|
-
denyReasonFrom,
|
|
22
21
|
isDeferAnswer
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-M7DCI44L.js";
|
|
23
|
+
import "../chunk-AV5VX7OK.js";
|
|
25
24
|
import "../chunk-VTR4VRL2.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-SSWK2WYX.js";
|
|
26
|
+
import "../chunk-N4DMADJM.js";
|
|
27
|
+
import "../chunk-QFNY4KUQ.js";
|
|
28
|
+
import "../chunk-M6R3SZZS.js";
|
|
30
29
|
import "../chunk-XHKBHWLX.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-K2EYK5RL.js";
|
|
31
|
+
import "../chunk-A5U62Q6K.js";
|
|
32
|
+
import "../chunk-7RGEJOQS.js";
|
|
33
|
+
import "../chunk-R5C3QCVT.js";
|
|
34
|
+
import "../chunk-AFP3HZVK.js";
|
|
36
35
|
import "../chunk-GMXKITVA.js";
|
|
37
36
|
import "../chunk-6ICPEJY5.js";
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-AQ3TSQA2.js";
|
|
39
38
|
import {
|
|
40
39
|
CODEX_AGENT,
|
|
41
40
|
DEFAULT_SESSION,
|
|
@@ -79,8 +78,8 @@ import {
|
|
|
79
78
|
toPolicyLookup,
|
|
80
79
|
toPolicyLookups,
|
|
81
80
|
userScope
|
|
82
|
-
} from "../chunk-
|
|
83
|
-
import "../chunk-
|
|
81
|
+
} from "../chunk-GYP6DLA4.js";
|
|
82
|
+
import "../chunk-KJA6IGOZ.js";
|
|
84
83
|
import {
|
|
85
84
|
askUser,
|
|
86
85
|
cancelQuestion,
|
|
@@ -93,31 +92,31 @@ import {
|
|
|
93
92
|
sendNotification,
|
|
94
93
|
unavailableQuestionUnlessSubscriptionRequired,
|
|
95
94
|
waitForQuestion
|
|
96
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-4GKQDFH6.js";
|
|
97
96
|
import "../chunk-POFBE6ZY.js";
|
|
98
97
|
import {
|
|
99
98
|
SubscriptionRequiredError
|
|
100
|
-
} from "../chunk-
|
|
101
|
-
import "../chunk-
|
|
102
|
-
import "../chunk-
|
|
99
|
+
} from "../chunk-E2LGKG75.js";
|
|
100
|
+
import "../chunk-Z4UDB7EC.js";
|
|
101
|
+
import "../chunk-XBETSM5T.js";
|
|
103
102
|
import {
|
|
104
103
|
getMachineId
|
|
105
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-EDN4F6GX.js";
|
|
106
105
|
import "../chunk-7QLSKOSU.js";
|
|
107
106
|
import {
|
|
108
107
|
EXIT
|
|
109
108
|
} from "../chunk-KZERVKTD.js";
|
|
110
|
-
import "../chunk-
|
|
109
|
+
import "../chunk-6HT2TUZD.js";
|
|
111
110
|
import {
|
|
112
111
|
canonicalJson
|
|
113
|
-
} from "../chunk-
|
|
112
|
+
} from "../chunk-QIODXPTP.js";
|
|
114
113
|
import {
|
|
115
114
|
writeFileAtomic
|
|
116
115
|
} from "../chunk-AQFEP65J.js";
|
|
117
116
|
import {
|
|
118
117
|
getApiKey
|
|
119
|
-
} from "../chunk-
|
|
120
|
-
import "../chunk-
|
|
118
|
+
} from "../chunk-OQPEHKH2.js";
|
|
119
|
+
import "../chunk-LEQRIJ4H.js";
|
|
121
120
|
import {
|
|
122
121
|
CODEX_RESCUE_TOOL_NAME,
|
|
123
122
|
DECISION_STOP_REASON,
|
|
@@ -128,9 +127,11 @@ import {
|
|
|
128
127
|
UNVERIFIABLE_APPROVAL_REASON,
|
|
129
128
|
approvalModeWithoutLocalPrompt,
|
|
130
129
|
codexCallNeedsAPerson,
|
|
131
|
-
|
|
130
|
+
codexDeferredPreToolUse,
|
|
131
|
+
codexHasNoPromptOfItsOwn,
|
|
132
132
|
codexStopRescueOutput,
|
|
133
133
|
codexUnansweredPreToolUse,
|
|
134
|
+
denyReasonFrom,
|
|
134
135
|
editGoesToTheAgentsPrompt,
|
|
135
136
|
effectiveWaitSeconds,
|
|
136
137
|
hookHoldWindowMs,
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
resolveGate,
|
|
140
141
|
scopeBreachReasonOf,
|
|
141
142
|
unapprovedScopeReason
|
|
142
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-OH647UT3.js";
|
|
143
144
|
|
|
144
145
|
// bin/pushary-codex-hook.ts
|
|
145
146
|
import { basename } from "path";
|
|
@@ -580,8 +581,9 @@ var pushQuestion = async (apiKey, input, lookup, waitSeconds, mode, scope) => {
|
|
|
580
581
|
actionBody: deriveActionBody(input.tool_name ?? "", input.tool_input ?? {}),
|
|
581
582
|
repoKey: repoKeyFor(input.cwd),
|
|
582
583
|
scopePath: scope?.path,
|
|
583
|
-
...codexHasNoPromptOfItsOwn(scope, input.permission_mode) ? { localSurfaceAvailable: false } : {},
|
|
584
|
+
...codexHasNoPromptOfItsOwn(scope?.reason, input.permission_mode) ? { localSurfaceAvailable: false } : {},
|
|
584
585
|
sessionToolAware: true,
|
|
586
|
+
permissionMode: input.permission_mode,
|
|
585
587
|
// Codex has always sent this; it is what claimNotify and markApproved already
|
|
586
588
|
// key on locally. Passing it through lets the server collapse a retried create
|
|
587
589
|
// the same way, instead of putting the same approval on the phone twice.
|
|
@@ -687,10 +689,10 @@ var scopeQuestionOf = (verdict) => {
|
|
|
687
689
|
const reason = scopeBreachReasonOf(verdict);
|
|
688
690
|
return reason !== void 0 && verdict.kind === "gate" ? { reason, path: verdict.scopePath } : void 0;
|
|
689
691
|
};
|
|
690
|
-
var codexHasNoPromptOfItsOwn = (scope, permissionMode) => scope !== void 0 || !codexRaisesItsOwnPrompts(permissionMode);
|
|
691
692
|
var codexDeliveryMode = (policyMode, noPromptOfItsOwn) => noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(policyMode) : policyMode;
|
|
692
693
|
var unansweredOutcome = (scope, fallback) => scope ? codexDeny(unapprovedScopeReason(scope.reason)) : fallback;
|
|
693
694
|
var codexDecisionOf = (ending) => ending.kind === "deny" ? codexDeny(ending.reason) : codexPass();
|
|
695
|
+
var deferredPreToolUse = (scope, input) => unansweredOutcome(scope, codexDecisionOf(codexDeferredPreToolUse(!codexHasNoPromptOfItsOwn(scope?.reason, input.permission_mode))));
|
|
694
696
|
var unansweredPreToolUse = (toolPolicy, input, fullWindowServed) => codexDecisionOf(codexUnansweredPreToolUse({
|
|
695
697
|
mode: toolPolicy.mode,
|
|
696
698
|
timeoutAction: toolPolicy.timeoutAction,
|
|
@@ -736,7 +738,7 @@ var decidePreToolUse = async (input) => {
|
|
|
736
738
|
const toolPolicy = verdict.policy;
|
|
737
739
|
const callKey = callKeyFor(input);
|
|
738
740
|
if (scope && gateInput.toolInputs.length > 1) return recordPreToolUse(callKey, codexDeny(SCOPE_BATCH_REASON));
|
|
739
|
-
const deliveryMode = codexDeliveryMode(toolPolicy.mode, codexHasNoPromptOfItsOwn(scope, input.permission_mode));
|
|
741
|
+
const deliveryMode = codexDeliveryMode(toolPolicy.mode, codexHasNoPromptOfItsOwn(scope?.reason, input.permission_mode));
|
|
740
742
|
if (deliveryMode === "push_only") {
|
|
741
743
|
let pushed;
|
|
742
744
|
try {
|
|
@@ -749,7 +751,7 @@ var decidePreToolUse = async (input) => {
|
|
|
749
751
|
if (isDecisionStopped(answer)) return codexDeny(DECISION_STOP_REASON);
|
|
750
752
|
if (localHandoff) return recordPreToolUse(callKey, unansweredOutcome(scope, unansweredPreToolUse(toolPolicy, input, false)));
|
|
751
753
|
if (answer.answered) {
|
|
752
|
-
if (isDeferAnswer(answer.value)) return recordPreToolUse(callKey,
|
|
754
|
+
if (isDeferAnswer(answer.value)) return recordPreToolUse(callKey, deferredPreToolUse(scope, input));
|
|
753
755
|
if (answer.value === "yes") return recordApproval(callKey, input);
|
|
754
756
|
return recordPreToolUse(callKey, codexDeny(denyReasonFrom(answer.value, answer.note)));
|
|
755
757
|
}
|
|
@@ -767,7 +769,7 @@ var decidePreToolUse = async (input) => {
|
|
|
767
769
|
};
|
|
768
770
|
var repairCodexHoldsQuietly = async () => {
|
|
769
771
|
try {
|
|
770
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
772
|
+
const { repairCodexHolds } = await import("../reapply-WQDP26EA.js");
|
|
771
773
|
repairCodexHolds();
|
|
772
774
|
} catch {
|
|
773
775
|
return;
|