@pushary/agent-hooks 0.85.1 → 0.86.0
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 +26 -0
- package/dist/bin/pushary-bell-hook.js +4 -4
- package/dist/bin/pushary-bell.js +5 -5
- package/dist/bin/pushary-claude.js +7 -7
- package/dist/bin/pushary-clean.js +9 -8
- package/dist/bin/pushary-codex-bridge.js +5 -5
- package/dist/bin/pushary-codex-hook.js +4 -4
- package/dist/bin/pushary-codex.js +3 -3
- package/dist/bin/pushary-connect.js +6 -6
- package/dist/bin/pushary-daemon.js +4 -4
- package/dist/bin/pushary-disconnect.js +7 -6
- package/dist/bin/pushary-doctor.js +11 -11
- package/dist/bin/pushary-gemini-bridge.js +5 -5
- package/dist/bin/pushary-gemini-hook.js +12 -7
- package/dist/bin/pushary-hook.js +6 -8
- package/dist/bin/pushary-login.js +4 -4
- package/dist/bin/pushary-logout.js +4 -4
- package/dist/bin/pushary-mode.js +3 -3
- package/dist/bin/pushary-notification-hook.js +3 -3
- package/dist/bin/pushary-permission-denied-hook.js +6 -8
- package/dist/bin/pushary-permission-hook.js +6 -8
- package/dist/bin/pushary-post-hook.js +3 -3
- package/dist/bin/pushary-prompt-hook.js +3 -3
- package/dist/bin/pushary-session-end-hook.js +3 -3
- package/dist/bin/pushary-session-start-hook.js +3 -3
- package/dist/bin/pushary-setup.js +20 -19
- package/dist/bin/pushary-stats.js +2 -2
- package/dist/bin/pushary-status.js +5 -5
- package/dist/bin/pushary-stop-hook.js +3 -3
- package/dist/bin/pushary-stopfailure-hook.js +3 -3
- package/dist/bin/pushary-upgrade.js +10 -9
- package/dist/bin/pushary-wait.js +3 -3
- package/dist/{chunk-EZPRY2ZY.js → chunk-2255DZ74.js} +1 -1
- package/dist/{chunk-OZKRF7MS.js → chunk-2C6B6V2U.js} +7 -3
- package/dist/{chunk-QDKJTPAT.js → chunk-2TZCZ7CL.js} +1 -1
- package/dist/{chunk-Y7BALRVB.js → chunk-33T5OOKP.js} +19 -34
- package/dist/{chunk-KTKIZEFT.js → chunk-5EUZYWID.js} +1 -1
- package/dist/{chunk-ES3FAX5X.js → chunk-7C5CJC3H.js} +1 -1
- package/dist/{chunk-CIVG746V.js → chunk-7G5VO76N.js} +1 -1
- package/dist/chunk-ATBKJNWS.js +19 -0
- package/dist/{chunk-G3LXA2ZP.js → chunk-CY4TZK5O.js} +59 -1
- package/dist/{chunk-XIR6N66V.js → chunk-FOY5FISQ.js} +1 -1
- package/dist/{chunk-GM54KC62.js → chunk-GK4CED6Z.js} +12 -18
- package/dist/{chunk-VGADRFG6.js → chunk-MNQI6ZZU.js} +1 -1
- package/dist/{chunk-XLM6COJA.js → chunk-MTKR4YLW.js} +1 -1
- package/dist/{chunk-DNSIVHIA.js → chunk-N52CIK47.js} +1 -1
- package/dist/{chunk-BZKTCOZQ.js → chunk-PZR4XMFU.js} +1 -1
- package/dist/{chunk-VKJUVPTJ.js → chunk-Q7N3XGWM.js} +2 -2
- package/dist/{chunk-IGV4KL7B.js → chunk-QW27ZFA4.js} +2 -2
- package/dist/{chunk-LB6RSCLL.js → chunk-S3UD7O35.js} +59 -45
- package/dist/{chunk-PHXEADSL.js → chunk-VPJAAGD4.js} +7 -3
- package/dist/{chunk-55656H4Q.js → chunk-VZNDR3Z7.js} +1 -1
- package/dist/{chunk-JDQY47OW.js → chunk-XPAGN3SC.js} +1 -1
- package/dist/src/index.d.ts +3 -10
- package/dist/src/index.js +6 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.86.0
|
|
4
|
+
|
|
5
|
+
### Approving a plan from your phone
|
|
6
|
+
|
|
7
|
+
Exiting plan mode blocked the terminal and pushed nothing, so an away user's agent
|
|
8
|
+
sat waiting on the one approval that decides everything after it. `ExitPlanMode` was
|
|
9
|
+
never in the hook's tool matcher, and `plan` is a mode Pushary steps aside for
|
|
10
|
+
entirely, so matching it alone would not have helped either.
|
|
11
|
+
|
|
12
|
+
The plan approval now reaches your phone before Pushary steps aside, and it carries
|
|
13
|
+
the plan itself, redacted and capped like any diff, so you are approving something
|
|
14
|
+
you can read rather than a bare tool name. Two options rather than the terminal's
|
|
15
|
+
three: a hook cannot set the permission mode the session lands in, so offering that
|
|
16
|
+
choice would have quietly dropped half of what you picked.
|
|
17
|
+
|
|
18
|
+
Falls back to the terminal exactly as before whenever the phone cannot answer.
|
|
19
|
+
|
|
20
|
+
## 0.85.2
|
|
21
|
+
|
|
22
|
+
### One agent-protocol renderer for CLI and native approvals
|
|
23
|
+
|
|
24
|
+
Claude Code, Codex and Gemini hook output now comes from the shared contracts
|
|
25
|
+
renderer also used by the native Mac gate. This keeps the CLI wire bytes unchanged
|
|
26
|
+
while preventing the native bridge and published hooks from drifting into different
|
|
27
|
+
allow or deny shapes.
|
|
28
|
+
|
|
3
29
|
## 0.85.1
|
|
4
30
|
|
|
5
31
|
### A rule you wrote is now honoured in auto mode
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleBell
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5EUZYWID.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
7
|
} from "../chunk-6CUUA7HO.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-7G5VO76N.js";
|
|
9
9
|
import "../chunk-BC3VCZ3E.js";
|
|
10
10
|
import "../chunk-6MTNS63X.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-7C5CJC3H.js";
|
|
12
12
|
import "../chunk-2UMNXADU.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-CY4TZK5O.js";
|
|
14
14
|
|
|
15
15
|
// bin/pushary-bell-hook.ts
|
|
16
16
|
var main = async () => {
|
package/dist/bin/pushary-bell.js
CHANGED
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
liveAgentCount,
|
|
6
6
|
ring,
|
|
7
7
|
upgradeThreshold
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-5EUZYWID.js";
|
|
9
9
|
import {
|
|
10
10
|
guardBinary
|
|
11
11
|
} from "../chunk-HSGEEBBL.js";
|
|
12
12
|
import "../chunk-VT4IVERX.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeSettings
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-VPJAAGD4.js";
|
|
16
16
|
import {
|
|
17
17
|
createIo
|
|
18
18
|
} from "../chunk-5RUIFDTP.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-7G5VO76N.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFlags
|
|
22
22
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
readJsonSafe,
|
|
31
31
|
writeJsonAtomic
|
|
32
32
|
} from "../chunk-6MTNS63X.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-7C5CJC3H.js";
|
|
34
34
|
import "../chunk-7QLSKOSU.js";
|
|
35
35
|
import {
|
|
36
36
|
EXIT
|
|
37
37
|
} from "../chunk-KZERVKTD.js";
|
|
38
38
|
import "../chunk-2UMNXADU.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-CY4TZK5O.js";
|
|
40
40
|
|
|
41
41
|
// src/bell/install.ts
|
|
42
42
|
import { join } from "path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ensureDaemonRunning
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MTKR4YLW.js";
|
|
5
5
|
import {
|
|
6
6
|
buildTranscriptRecords,
|
|
7
7
|
decodePublicKey,
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
generateSessionKey,
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
wrapSessionKey
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-XPAGN3SC.js";
|
|
13
13
|
import {
|
|
14
14
|
startProcessOwnership,
|
|
15
15
|
withSpawnProcessOwnership
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-VZNDR3Z7.js";
|
|
17
17
|
import {
|
|
18
18
|
needsShell,
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "../chunk-XHKBHWLX.js";
|
|
21
21
|
import "../chunk-VT4IVERX.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-VPJAAGD4.js";
|
|
23
23
|
import {
|
|
24
24
|
isDeferAnswer
|
|
25
25
|
} from "../chunk-YHG74UFF.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
reportEvent,
|
|
35
35
|
scopePathFor,
|
|
36
36
|
waitForAnswer
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-33T5OOKP.js";
|
|
38
38
|
import {
|
|
39
39
|
getMachineId
|
|
40
40
|
} from "../chunk-RN3NOEJF.js";
|
|
@@ -42,7 +42,7 @@ import "../chunk-DINDL2CF.js";
|
|
|
42
42
|
import "../chunk-6MTNS63X.js";
|
|
43
43
|
import "../chunk-BSZYIAZL.js";
|
|
44
44
|
import "../chunk-SAF6HGAA.js";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-7C5CJC3H.js";
|
|
46
46
|
import "../chunk-7QLSKOSU.js";
|
|
47
47
|
import "../chunk-KZERVKTD.js";
|
|
48
48
|
import {
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
KILL_REASON,
|
|
54
54
|
resolveGate
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-CY4TZK5O.js";
|
|
56
56
|
|
|
57
57
|
// src/wrapper/claudeBinary.ts
|
|
58
58
|
import { statSync } from "fs";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
removeClaudeMcpServers,
|
|
4
|
+
removePusharySettings
|
|
5
|
+
} from "../chunk-GK4CED6Z.js";
|
|
2
6
|
import {
|
|
3
7
|
removeInstructionBlock,
|
|
4
8
|
shortenHome,
|
|
5
9
|
unregisterPluginLocation,
|
|
6
10
|
vscodeSettingsTargets
|
|
7
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-QW27ZFA4.js";
|
|
8
12
|
import {
|
|
9
13
|
removeGeminiSettings
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import
|
|
12
|
-
removeClaudeMcpServers,
|
|
13
|
-
removePusharySettings
|
|
14
|
-
} from "../chunk-GM54KC62.js";
|
|
14
|
+
} from "../chunk-2C6B6V2U.js";
|
|
15
|
+
import "../chunk-ATBKJNWS.js";
|
|
15
16
|
import "../chunk-HSGEEBBL.js";
|
|
16
17
|
import {
|
|
17
18
|
execNpm
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
pusharyDir,
|
|
34
35
|
removeCodexHooks,
|
|
35
36
|
vscodePluginDir
|
|
36
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-VPJAAGD4.js";
|
|
37
38
|
import {
|
|
38
39
|
rejectUnknownFlags
|
|
39
40
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -49,7 +50,7 @@ import "../chunk-7QLSKOSU.js";
|
|
|
49
50
|
import {
|
|
50
51
|
EXIT
|
|
51
52
|
} from "../chunk-KZERVKTD.js";
|
|
52
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-CY4TZK5O.js";
|
|
53
54
|
|
|
54
55
|
// bin/pushary-clean.ts
|
|
55
56
|
import { existsSync, readFileSync, copyFileSync, readdirSync } from "fs";
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-FOY5FISQ.js";
|
|
10
|
+
import "../chunk-XPAGN3SC.js";
|
|
11
11
|
import {
|
|
12
12
|
startProcessOwnership,
|
|
13
13
|
withSpawnProcessOwnership
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-VZNDR3Z7.js";
|
|
15
15
|
import {
|
|
16
16
|
spawnClaude
|
|
17
17
|
} from "../chunk-XHKBHWLX.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveBinary
|
|
20
20
|
} from "../chunk-VT4IVERX.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-VPJAAGD4.js";
|
|
22
22
|
import {
|
|
23
23
|
getMachineId
|
|
24
24
|
} from "../chunk-RN3NOEJF.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getApiKey,
|
|
28
28
|
getBaseUrl
|
|
29
29
|
} from "../chunk-2UMNXADU.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-CY4TZK5O.js";
|
|
31
31
|
|
|
32
32
|
// bin/pushary-codex-bridge.ts
|
|
33
33
|
import { existsSync } from "fs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isGatingMoment,
|
|
4
4
|
recordKeylessMoment
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-MNQI6ZZU.js";
|
|
6
6
|
import {
|
|
7
7
|
readHookInput
|
|
8
8
|
} from "../chunk-6CUUA7HO.js";
|
|
@@ -41,13 +41,13 @@ import {
|
|
|
41
41
|
toPolicyLookup,
|
|
42
42
|
toPolicyLookups,
|
|
43
43
|
waitForAnswer
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-33T5OOKP.js";
|
|
45
45
|
import {
|
|
46
46
|
getMachineId
|
|
47
47
|
} from "../chunk-RN3NOEJF.js";
|
|
48
48
|
import "../chunk-BSZYIAZL.js";
|
|
49
49
|
import "../chunk-SAF6HGAA.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-7C5CJC3H.js";
|
|
51
51
|
import "../chunk-7QLSKOSU.js";
|
|
52
52
|
import "../chunk-KZERVKTD.js";
|
|
53
53
|
import {
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
hookWaitClamped,
|
|
61
61
|
hookWaitDeadline,
|
|
62
62
|
resolveGate
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-CY4TZK5O.js";
|
|
64
64
|
|
|
65
65
|
// bin/pushary-codex-hook.ts
|
|
66
66
|
import { basename, join } from "path";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
askUser,
|
|
4
4
|
reportEvent,
|
|
5
5
|
waitForAnswer
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-33T5OOKP.js";
|
|
7
7
|
import {
|
|
8
8
|
getMachineId
|
|
9
9
|
} from "../chunk-RN3NOEJF.js";
|
|
10
10
|
import "../chunk-BSZYIAZL.js";
|
|
11
11
|
import "../chunk-SAF6HGAA.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-7C5CJC3H.js";
|
|
13
13
|
import "../chunk-7QLSKOSU.js";
|
|
14
14
|
import "../chunk-KZERVKTD.js";
|
|
15
15
|
import {
|
|
16
16
|
getApiKey
|
|
17
17
|
} from "../chunk-2UMNXADU.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-CY4TZK5O.js";
|
|
19
19
|
|
|
20
20
|
// bin/pushary-codex.ts
|
|
21
21
|
import { basename } from "path";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
printKeyCheck
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-N52CIK47.js";
|
|
5
5
|
import {
|
|
6
6
|
confirmAppConnection,
|
|
7
7
|
connectDevice,
|
|
8
8
|
printConnectInstructions
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-PZR4XMFU.js";
|
|
10
10
|
import "../chunk-3EGEA4KH.js";
|
|
11
11
|
import {
|
|
12
12
|
checkApiKey
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-2TZCZ7CL.js";
|
|
14
14
|
import {
|
|
15
15
|
createIo
|
|
16
16
|
} from "../chunk-5RUIFDTP.js";
|
|
17
17
|
import {
|
|
18
18
|
readKeySource
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-7G5VO76N.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFlags
|
|
22
22
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -29,7 +29,7 @@ import "../chunk-DINDL2CF.js";
|
|
|
29
29
|
import "../chunk-6MTNS63X.js";
|
|
30
30
|
import "../chunk-BSZYIAZL.js";
|
|
31
31
|
import "../chunk-SAF6HGAA.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-7C5CJC3H.js";
|
|
33
33
|
import {
|
|
34
34
|
UsageError
|
|
35
35
|
} from "../chunk-7QLSKOSU.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
EXIT
|
|
38
38
|
} from "../chunk-KZERVKTD.js";
|
|
39
39
|
import "../chunk-2UMNXADU.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-CY4TZK5O.js";
|
|
41
41
|
|
|
42
42
|
// bin/pushary-connect.ts
|
|
43
43
|
exitOnHelpFlag("connect");
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
acquireDaemonLease,
|
|
9
9
|
readDaemonStatus,
|
|
10
10
|
requestDaemonHandoff
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-MTKR4YLW.js";
|
|
12
12
|
import {
|
|
13
13
|
CODEX_BRIDGE_CAPABILITY,
|
|
14
14
|
CODEX_RESUME_CAPABILITY,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
findLiveProcessBySpawnId,
|
|
19
19
|
ownsLiveProcess
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-VZNDR3Z7.js";
|
|
21
21
|
import {
|
|
22
22
|
spawnClaude
|
|
23
23
|
} from "../chunk-XHKBHWLX.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveGlobalPackageVersion,
|
|
27
27
|
resolvePackageVersionFromBinary
|
|
28
28
|
} from "../chunk-VT4IVERX.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-VPJAAGD4.js";
|
|
30
30
|
import {
|
|
31
31
|
getMachineId
|
|
32
32
|
} from "../chunk-RN3NOEJF.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
getApiKey,
|
|
44
44
|
getBaseUrl
|
|
45
45
|
} from "../chunk-2UMNXADU.js";
|
|
46
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-CY4TZK5O.js";
|
|
47
47
|
|
|
48
48
|
// src/spawn-daemon.ts
|
|
49
49
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
removeGeminiSettings
|
|
4
|
-
} from "../chunk-OZKRF7MS.js";
|
|
5
2
|
import {
|
|
6
3
|
removeClaudeMcpServers,
|
|
7
4
|
removePusharySettings
|
|
8
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-GK4CED6Z.js";
|
|
6
|
+
import {
|
|
7
|
+
removeGeminiSettings
|
|
8
|
+
} from "../chunk-2C6B6V2U.js";
|
|
9
|
+
import "../chunk-ATBKJNWS.js";
|
|
9
10
|
import "../chunk-HSGEEBBL.js";
|
|
10
11
|
import "../chunk-VT4IVERX.js";
|
|
11
12
|
import {
|
|
@@ -19,14 +20,14 @@ import {
|
|
|
19
20
|
geminiSettings,
|
|
20
21
|
removeCodexHooks,
|
|
21
22
|
removeCodexSettings
|
|
22
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-VPJAAGD4.js";
|
|
23
24
|
import {
|
|
24
25
|
exitOnHelpFlag
|
|
25
26
|
} from "../chunk-SQOFGPNX.js";
|
|
26
27
|
import "../chunk-GOEXZ5QJ.js";
|
|
27
28
|
import "../chunk-DINDL2CF.js";
|
|
28
29
|
import "../chunk-KZERVKTD.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-CY4TZK5O.js";
|
|
30
31
|
|
|
31
32
|
// bin/pushary-disconnect.ts
|
|
32
33
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
claudeWired,
|
|
4
4
|
codexWired,
|
|
5
5
|
geminiWired
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-Q7N3XGWM.js";
|
|
7
7
|
import {
|
|
8
8
|
describeWaitLadder
|
|
9
9
|
} from "../chunk-IIENZE2J.js";
|
|
10
10
|
import {
|
|
11
11
|
readDaemonStatus
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-MTKR4YLW.js";
|
|
13
13
|
import {
|
|
14
14
|
agentProbes,
|
|
15
15
|
detectAgent,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
isDetected,
|
|
19
19
|
isPluginRegistered,
|
|
20
20
|
vscodeSettingsTargets
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-QW27ZFA4.js";
|
|
22
22
|
import {
|
|
23
23
|
GEMINI_HOOK_BINARY,
|
|
24
24
|
hasGeminiHooks,
|
|
25
25
|
missingGeminiHookEvents
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-2C6B6V2U.js";
|
|
27
27
|
import "../chunk-XHKBHWLX.js";
|
|
28
28
|
import {
|
|
29
29
|
execNpm
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
readCodexMcpAuth,
|
|
47
47
|
untrustedCodexHookEvents,
|
|
48
48
|
vscodePluginDir
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-VPJAAGD4.js";
|
|
50
50
|
import {
|
|
51
51
|
readLedgerSummary
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-MNQI6ZZU.js";
|
|
53
53
|
import {
|
|
54
54
|
getMachineId
|
|
55
55
|
} from "../chunk-RN3NOEJF.js";
|
|
@@ -59,19 +59,19 @@ import {
|
|
|
59
59
|
fetchChannels,
|
|
60
60
|
reachVerdict,
|
|
61
61
|
verifyRoundTrip
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-PZR4XMFU.js";
|
|
63
63
|
import "../chunk-3EGEA4KH.js";
|
|
64
64
|
import {
|
|
65
65
|
checkApiKey,
|
|
66
66
|
describeKeyCheck
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-2TZCZ7CL.js";
|
|
68
68
|
import {
|
|
69
69
|
createIo
|
|
70
70
|
} from "../chunk-5RUIFDTP.js";
|
|
71
71
|
import {
|
|
72
72
|
keyPrefix,
|
|
73
73
|
readKeySource
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-7G5VO76N.js";
|
|
75
75
|
import {
|
|
76
76
|
parseFlags
|
|
77
77
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
sendMcpRequest
|
|
90
90
|
} from "../chunk-BSZYIAZL.js";
|
|
91
91
|
import "../chunk-SAF6HGAA.js";
|
|
92
|
-
import "../chunk-
|
|
92
|
+
import "../chunk-7C5CJC3H.js";
|
|
93
93
|
import {
|
|
94
94
|
UsageError
|
|
95
95
|
} from "../chunk-7QLSKOSU.js";
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
import {
|
|
100
100
|
getBaseUrl
|
|
101
101
|
} from "../chunk-2UMNXADU.js";
|
|
102
|
-
import "../chunk-
|
|
102
|
+
import "../chunk-CY4TZK5O.js";
|
|
103
103
|
|
|
104
104
|
// bin/pushary-doctor.ts
|
|
105
105
|
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
postLiveSession,
|
|
6
6
|
postLiveSessionUntilAccepted,
|
|
7
7
|
startLiveSessionHeartbeat
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-FOY5FISQ.js";
|
|
9
|
+
import "../chunk-XPAGN3SC.js";
|
|
10
10
|
import {
|
|
11
11
|
startProcessOwnership,
|
|
12
12
|
withSpawnProcessOwnership
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-VZNDR3Z7.js";
|
|
14
14
|
import {
|
|
15
15
|
spawnClaude
|
|
16
16
|
} from "../chunk-XHKBHWLX.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveBinary
|
|
19
19
|
} from "../chunk-VT4IVERX.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-VPJAAGD4.js";
|
|
21
21
|
import {
|
|
22
22
|
getMachineId
|
|
23
23
|
} from "../chunk-RN3NOEJF.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
getApiKey,
|
|
27
27
|
getBaseUrl
|
|
28
28
|
} from "../chunk-2UMNXADU.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-CY4TZK5O.js";
|
|
30
30
|
|
|
31
31
|
// bin/pushary-gemini-bridge.ts
|
|
32
32
|
import { existsSync } from "fs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isGatingMoment,
|
|
4
4
|
recordKeylessMoment
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-MNQI6ZZU.js";
|
|
6
6
|
import {
|
|
7
7
|
readHookInput
|
|
8
8
|
} from "../chunk-6CUUA7HO.js";
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
scopePathFor,
|
|
33
33
|
sendNotification,
|
|
34
34
|
waitForAnswer
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-33T5OOKP.js";
|
|
36
36
|
import {
|
|
37
37
|
getMachineId
|
|
38
38
|
} from "../chunk-RN3NOEJF.js";
|
|
39
39
|
import "../chunk-BSZYIAZL.js";
|
|
40
40
|
import "../chunk-SAF6HGAA.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-7C5CJC3H.js";
|
|
42
42
|
import "../chunk-7QLSKOSU.js";
|
|
43
43
|
import "../chunk-KZERVKTD.js";
|
|
44
44
|
import {
|
|
@@ -48,10 +48,11 @@ import {
|
|
|
48
48
|
DECISION_LINE_MAX,
|
|
49
49
|
KILL_REASON,
|
|
50
50
|
effectiveWaitSeconds,
|
|
51
|
+
gateOutputFor,
|
|
51
52
|
hookWaitClamped,
|
|
52
53
|
hookWaitDeadline,
|
|
53
54
|
resolveGate
|
|
54
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-CY4TZK5O.js";
|
|
55
56
|
|
|
56
57
|
// bin/pushary-gemini-hook.ts
|
|
57
58
|
import { basename } from "path";
|
|
@@ -85,9 +86,13 @@ var geminiAllow = () => ({ kind: "allow" });
|
|
|
85
86
|
var geminiDeny = (reason) => ({ kind: "deny", reason });
|
|
86
87
|
var geminiPass = () => ({ kind: "pass" });
|
|
87
88
|
var toGeminiWire = (decision) => {
|
|
88
|
-
if (decision.kind === "
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
if (decision.kind === "pass") return null;
|
|
90
|
+
return gateOutputFor(
|
|
91
|
+
"gemini",
|
|
92
|
+
"BeforeTool",
|
|
93
|
+
decision.kind,
|
|
94
|
+
decision.kind === "deny" ? decision.reason : void 0
|
|
95
|
+
) ?? null;
|
|
91
96
|
};
|
|
92
97
|
var geminiTimeoutDecision = (timeoutAction, denyReason = "No response within timeout") => {
|
|
93
98
|
if (timeoutAction === "approve") return geminiAllow();
|
package/dist/bin/pushary-hook.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePreToolUse
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-VT4IVERX.js";
|
|
8
|
-
import "../chunk-VGADRFG6.js";
|
|
4
|
+
} from "../chunk-S3UD7O35.js";
|
|
5
|
+
import "../chunk-ATBKJNWS.js";
|
|
6
|
+
import "../chunk-MNQI6ZZU.js";
|
|
9
7
|
import {
|
|
10
8
|
readHookInput
|
|
11
9
|
} from "../chunk-6CUUA7HO.js";
|
|
12
10
|
import "../chunk-YHG74UFF.js";
|
|
13
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-33T5OOKP.js";
|
|
14
12
|
import "../chunk-RN3NOEJF.js";
|
|
15
13
|
import {
|
|
16
14
|
exitOnHelpFlag
|
|
@@ -19,11 +17,11 @@ import "../chunk-GOEXZ5QJ.js";
|
|
|
19
17
|
import "../chunk-DINDL2CF.js";
|
|
20
18
|
import "../chunk-BSZYIAZL.js";
|
|
21
19
|
import "../chunk-SAF6HGAA.js";
|
|
22
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-7C5CJC3H.js";
|
|
23
21
|
import "../chunk-7QLSKOSU.js";
|
|
24
22
|
import "../chunk-KZERVKTD.js";
|
|
25
23
|
import "../chunk-2UMNXADU.js";
|
|
26
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-CY4TZK5O.js";
|
|
27
25
|
|
|
28
26
|
// bin/pushary-hook.ts
|
|
29
27
|
exitOnHelpFlag("hook");
|
|
@@ -6,14 +6,14 @@ import "../chunk-3EGEA4KH.js";
|
|
|
6
6
|
import {
|
|
7
7
|
checkApiKey,
|
|
8
8
|
describeKeyCheck
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-2TZCZ7CL.js";
|
|
10
10
|
import {
|
|
11
11
|
createIo
|
|
12
12
|
} from "../chunk-5RUIFDTP.js";
|
|
13
13
|
import {
|
|
14
14
|
readKeySource,
|
|
15
15
|
writeKey
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-7G5VO76N.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFlags
|
|
19
19
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "../chunk-DINDL2CF.js";
|
|
28
28
|
import "../chunk-6MTNS63X.js";
|
|
29
29
|
import "../chunk-SAF6HGAA.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-7C5CJC3H.js";
|
|
31
31
|
import {
|
|
32
32
|
UsageError
|
|
33
33
|
} from "../chunk-7QLSKOSU.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import "../chunk-2UMNXADU.js";
|
|
38
38
|
import {
|
|
39
39
|
isValidApiKey
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-CY4TZK5O.js";
|
|
41
41
|
|
|
42
42
|
// bin/pushary-login.ts
|
|
43
43
|
exitOnHelpFlag("login");
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
codexConfigToml,
|
|
5
5
|
cursorUserMcp,
|
|
6
6
|
geminiSettings
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-VPJAAGD4.js";
|
|
8
8
|
import {
|
|
9
9
|
createIo
|
|
10
10
|
} from "../chunk-5RUIFDTP.js";
|
|
11
11
|
import {
|
|
12
12
|
clearKey,
|
|
13
13
|
readKeySource
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-7G5VO76N.js";
|
|
15
15
|
import {
|
|
16
16
|
parseFlags
|
|
17
17
|
} from "../chunk-GMXKITVA.js";
|
|
@@ -22,7 +22,7 @@ import "../chunk-GOEXZ5QJ.js";
|
|
|
22
22
|
import "../chunk-BC3VCZ3E.js";
|
|
23
23
|
import "../chunk-DINDL2CF.js";
|
|
24
24
|
import "../chunk-6MTNS63X.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-7C5CJC3H.js";
|
|
26
26
|
import {
|
|
27
27
|
UsageError
|
|
28
28
|
} from "../chunk-7QLSKOSU.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
getBaseUrl
|
|
34
34
|
} from "../chunk-2UMNXADU.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-CY4TZK5O.js";
|
|
36
36
|
|
|
37
37
|
// bin/pushary-logout.ts
|
|
38
38
|
import { existsSync } from "fs";
|