@pushary/agent-hooks 1.9.35 → 1.9.36
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 +7 -0
- package/README.md +1 -1
- 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 +52 -45
- package/dist/bin/pushary-codex-bridge.js +17 -17
- package/dist/bin/pushary-codex-hook.js +30 -30
- 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 +31 -28
- package/dist/bin/pushary-doctor.js +35 -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 +34 -30
- 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 +65 -56
- 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-4TFD3WAA.js → chunk-26AEFJSK.js} +2 -2
- package/dist/{chunk-7FQL5NWJ.js → chunk-2DZBIELP.js} +135 -23
- package/dist/{chunk-DCBSD22V.js → chunk-42FTY5II.js} +3 -3
- package/dist/{chunk-PEEJP4HN.js → chunk-4E4PZQFE.js} +4 -4
- package/dist/{chunk-6OGDGQTT.js → chunk-4NMDFPK7.js} +5 -5
- package/dist/{chunk-43H2FUNN.js → chunk-556JCOMK.js} +4 -4
- package/dist/{chunk-FQQSW7MD.js → chunk-55XIK7YS.js} +1 -1
- package/dist/{chunk-36ZCFJUI.js → chunk-5ML6E3L7.js} +1 -1
- package/dist/{chunk-NMQLY4PE.js → chunk-5S2P2CK6.js} +2 -2
- package/dist/{chunk-SMRMWDFE.js → chunk-6LKIK7V2.js} +43 -17
- package/dist/{chunk-U7CN5HG2.js → chunk-7GQILLZD.js} +5 -5
- package/dist/{chunk-B5RLJ6QD.js → chunk-7MOFAAZ3.js} +9 -5
- package/dist/{chunk-H52HBSOD.js → chunk-BS64ZHTB.js} +3 -3
- package/dist/{chunk-A455TSHF.js → chunk-CHNSFTD5.js} +2 -2
- package/dist/{chunk-WFPXKCN4.js → chunk-CHWJ7ZXI.js} +5 -5
- package/dist/{chunk-22YSHBTI.js → chunk-CRZ4CP7C.js} +3 -3
- package/dist/{chunk-WMB3OCI4.js → chunk-CRZKFEEO.js} +2 -2
- package/dist/{chunk-NKAMF2YJ.js → chunk-DC6KHRVH.js} +1 -1
- package/dist/{chunk-ULJFIF5N.js → chunk-EGTVN6YV.js} +1 -1
- package/dist/{chunk-A5FFSXZE.js → chunk-EH635XAR.js} +2 -2
- package/dist/{chunk-57FFQR46.js → chunk-EQXMVKKD.js} +1 -1
- package/dist/{chunk-EJWSE7S7.js → chunk-ETGGQWBR.js} +4 -4
- package/dist/{chunk-WPSI4246.js → chunk-F5W7B7YT.js} +1 -1
- package/dist/{chunk-OZMGO4WF.js → chunk-FBKGGIFB.js} +5 -5
- package/dist/{chunk-7IVV4LLF.js → chunk-GNESC5EF.js} +3 -3
- package/dist/{chunk-YABMIGR3.js → chunk-GTEF64CJ.js} +1 -1
- package/dist/{chunk-CK3W7Q5S.js → chunk-H3MOTS2C.js} +1 -1
- package/dist/{chunk-7UGGCTTW.js → chunk-HCKBZYBW.js} +2 -2
- package/dist/{chunk-HJNCVY5F.js → chunk-IPYCRJGM.js} +7 -7
- package/dist/{chunk-VTAC5FBZ.js → chunk-J36W6ARB.js} +1 -1
- package/dist/{chunk-GC3SUMYD.js → chunk-JAA7YJJZ.js} +4 -4
- package/dist/{chunk-FDNMQEU6.js → chunk-JWURAYXK.js} +2 -2
- package/dist/{chunk-UPRNSD2T.js → chunk-K5X25GUV.js} +4 -4
- package/dist/{chunk-UDECNZYI.js → chunk-KCUTE3EB.js} +2 -2
- package/dist/{chunk-CPYOJRDN.js → chunk-L25KSDIB.js} +8 -8
- package/dist/{chunk-45OXG3VR.js → chunk-LL256PHP.js} +1 -1
- package/dist/{chunk-Z6HDYK2A.js → chunk-MBBPLF5T.js} +2 -2
- package/dist/{chunk-XLXG6MA5.js → chunk-ML42WKI7.js} +3 -3
- package/dist/{chunk-FYQG2UTK.js → chunk-MNXHKEXB.js} +2 -2
- package/dist/{chunk-IRU7DKJW.js → chunk-NE5OPCD5.js} +7 -3
- package/dist/{chunk-3LS3GFJW.js → chunk-PRKH662J.js} +1 -1
- package/dist/{chunk-E2OZZZKP.js → chunk-QHL3Y6D2.js} +2 -2
- package/dist/{chunk-SMSX4TCC.js → chunk-QPUTCMAK.js} +1 -1
- package/dist/{chunk-HVUBWLER.js → chunk-RNRCOOQZ.js} +11 -11
- package/dist/{chunk-LOYSI2CZ.js → chunk-RYXSY3RH.js} +5 -5
- package/dist/{chunk-7S7H7V5V.js → chunk-SHLLDMPM.js} +97 -40
- package/dist/{chunk-V4ZIG66K.js → chunk-TRNSODJ6.js} +1 -1
- package/dist/{chunk-DQKEGNTI.js → chunk-U2PUHT4W.js} +1 -1
- package/dist/{chunk-HQKYWUBF.js → chunk-UDHT3W7I.js} +2 -2
- package/dist/{chunk-QJ3ENGBT.js → chunk-ULDOQF4Q.js} +3 -3
- package/dist/{chunk-EGTRIM74.js → chunk-VRALPR4B.js} +4 -4
- package/dist/{chunk-4PIAOJAW.js → chunk-X4BPD5RD.js} +1 -1
- package/dist/{chunk-FPYBX36E.js → chunk-Y5FCB66K.js} +5 -5
- package/dist/{chunk-YRDNKY77.js → chunk-YRAPCLOB.js} +6 -6
- package/dist/{global-upgrade-IZCB4WIE.js → global-upgrade-EF6RZBPU.js} +6 -6
- package/dist/{paths-4WAA57P5.js → paths-F645XTFZ.js} +2 -2
- package/dist/{reapply-GJ73ZHDD.js → reapply-HJOTWJAN.js} +20 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-J5PIKSYV.js → upgrade-lock-APUN7YKQ.js} +3 -3
- package/package.json +1 -1
|
@@ -4,43 +4,43 @@ import {
|
|
|
4
4
|
} from "../chunk-PQ4K74WL.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-7MOFAAZ3.js";
|
|
8
|
+
import "../chunk-L25KSDIB.js";
|
|
9
9
|
import "../chunk-DWQYCOPI.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-Y5FCB66K.js";
|
|
11
|
+
import "../chunk-H3MOTS2C.js";
|
|
12
|
+
import "../chunk-X4BPD5RD.js";
|
|
13
|
+
import "../chunk-QPUTCMAK.js";
|
|
14
14
|
import "../chunk-XHKBHWLX.js";
|
|
15
15
|
import {
|
|
16
16
|
activeHookSource,
|
|
17
17
|
activeIdentity
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-SHLLDMPM.js";
|
|
19
|
+
import "../chunk-4NMDFPK7.js";
|
|
20
|
+
import "../chunk-ULDOQF4Q.js";
|
|
21
|
+
import "../chunk-EQXMVKKD.js";
|
|
22
|
+
import "../chunk-5ML6E3L7.js";
|
|
23
23
|
import "../chunk-GMXKITVA.js";
|
|
24
24
|
import "../chunk-6ICPEJY5.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-42FTY5II.js";
|
|
26
26
|
import {
|
|
27
27
|
handleSessionEnd
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-6LKIK7V2.js";
|
|
29
|
+
import "../chunk-U2PUHT4W.js";
|
|
30
|
+
import "../chunk-FBKGGIFB.js";
|
|
31
31
|
import "../chunk-POFBE6ZY.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-BS64ZHTB.js";
|
|
33
|
+
import "../chunk-GNESC5EF.js";
|
|
34
|
+
import "../chunk-CRZ4CP7C.js";
|
|
35
|
+
import "../chunk-EGTVN6YV.js";
|
|
36
36
|
import "../chunk-7QLSKOSU.js";
|
|
37
37
|
import "../chunk-KZERVKTD.js";
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-5S2P2CK6.js";
|
|
39
|
+
import "../chunk-K5X25GUV.js";
|
|
40
40
|
import "../chunk-AQFEP65J.js";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-PRKH662J.js";
|
|
42
|
+
import "../chunk-LL256PHP.js";
|
|
43
|
+
import "../chunk-2DZBIELP.js";
|
|
44
44
|
|
|
45
45
|
// bin/pushary-session-end-hook.ts
|
|
46
46
|
var AGENT = activeIdentity(process.argv);
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reapplyClaudeForVersion
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-IPYCRJGM.js";
|
|
5
|
+
import "../chunk-CHNSFTD5.js";
|
|
6
6
|
import "../chunk-RIVNNBEK.js";
|
|
7
7
|
import {
|
|
8
8
|
triggerAutoUpdate
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-HCKBZYBW.js";
|
|
10
10
|
import {
|
|
11
11
|
readHookInput
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-7MOFAAZ3.js";
|
|
13
|
+
import "../chunk-L25KSDIB.js";
|
|
14
14
|
import "../chunk-DWQYCOPI.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-Y5FCB66K.js";
|
|
16
|
+
import "../chunk-H3MOTS2C.js";
|
|
17
|
+
import "../chunk-X4BPD5RD.js";
|
|
18
|
+
import "../chunk-QPUTCMAK.js";
|
|
19
19
|
import "../chunk-XHKBHWLX.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-CHWJ7ZXI.js";
|
|
21
21
|
import {
|
|
22
22
|
activeHookSource,
|
|
23
23
|
activeIdentity
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-SHLLDMPM.js";
|
|
25
|
+
import "../chunk-4NMDFPK7.js";
|
|
26
|
+
import "../chunk-ULDOQF4Q.js";
|
|
27
|
+
import "../chunk-EQXMVKKD.js";
|
|
28
|
+
import "../chunk-5ML6E3L7.js";
|
|
29
29
|
import "../chunk-GMXKITVA.js";
|
|
30
30
|
import "../chunk-6ICPEJY5.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-42FTY5II.js";
|
|
32
32
|
import {
|
|
33
33
|
CLAUDE_CODE_AGENT,
|
|
34
34
|
handleSessionStart
|
|
35
|
-
} from "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
35
|
+
} from "../chunk-6LKIK7V2.js";
|
|
36
|
+
import "../chunk-U2PUHT4W.js";
|
|
37
|
+
import "../chunk-FBKGGIFB.js";
|
|
38
38
|
import "../chunk-POFBE6ZY.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-BS64ZHTB.js";
|
|
40
|
+
import "../chunk-GNESC5EF.js";
|
|
41
|
+
import "../chunk-CRZ4CP7C.js";
|
|
42
|
+
import "../chunk-EGTVN6YV.js";
|
|
43
43
|
import "../chunk-7QLSKOSU.js";
|
|
44
44
|
import "../chunk-KZERVKTD.js";
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-5S2P2CK6.js";
|
|
46
|
+
import "../chunk-K5X25GUV.js";
|
|
47
47
|
import "../chunk-AQFEP65J.js";
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-PRKH662J.js";
|
|
49
|
+
import "../chunk-LL256PHP.js";
|
|
50
|
+
import "../chunk-2DZBIELP.js";
|
|
51
51
|
|
|
52
52
|
// bin/pushary-session-start-hook.ts
|
|
53
53
|
var AGENT = activeIdentity(process.argv);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runBrowserLogin
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TRNSODJ6.js";
|
|
5
5
|
import {
|
|
6
6
|
coworkOutput,
|
|
7
7
|
coworkSelection
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ML42WKI7.js";
|
|
9
9
|
import "../chunk-PUZZELE6.js";
|
|
10
10
|
import {
|
|
11
11
|
clearDeclinedAgent,
|
|
12
12
|
declinedAgentForSetupChoice
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-CRZKFEEO.js";
|
|
14
14
|
import {
|
|
15
15
|
CURSOR_GATE_SCRIPT,
|
|
16
16
|
describeVersionManagerPin,
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
codexTrustOutcome,
|
|
21
21
|
describeCodexTrustConfirmation,
|
|
22
22
|
needsCodexTrustStep
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-MBBPLF5T.js";
|
|
24
24
|
import {
|
|
25
25
|
writeStdoutFully
|
|
26
26
|
} from "../chunk-EO23EUOK.js";
|
|
27
27
|
import {
|
|
28
28
|
ensureCodexTrustsPusharyHooks
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-CHNSFTD5.js";
|
|
30
30
|
import {
|
|
31
31
|
readManagedControlEvidence,
|
|
32
32
|
waitForMachineReadiness
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-YRAPCLOB.js";
|
|
34
34
|
import {
|
|
35
35
|
describeSetupSideEffects,
|
|
36
36
|
installAgentSkill,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
soleGateFile,
|
|
45
45
|
soleGateReceipt,
|
|
46
46
|
soleGateReceiptFile
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-JAA7YJJZ.js";
|
|
48
48
|
import {
|
|
49
49
|
HERMES_PIP_PACKAGE,
|
|
50
50
|
describeDetection,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
runHermesConfigScript,
|
|
58
58
|
shortenHome,
|
|
59
59
|
vscodeSettingsTargets
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-NE5OPCD5.js";
|
|
61
61
|
import {
|
|
62
62
|
AgentConfigError,
|
|
63
63
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -83,10 +83,10 @@ import {
|
|
|
83
83
|
withFxPusharyServer,
|
|
84
84
|
writeFxProfile,
|
|
85
85
|
writeInstructionBlock
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-ETGGQWBR.js";
|
|
87
87
|
import {
|
|
88
88
|
MCP_BRIDGE_BINARY
|
|
89
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-KCUTE3EB.js";
|
|
90
90
|
import {
|
|
91
91
|
checkCodexInstall,
|
|
92
92
|
detectProviderLiveCapabilities,
|
|
@@ -94,14 +94,14 @@ import {
|
|
|
94
94
|
hasSpawnProvider,
|
|
95
95
|
nodeCodexInstallProbe,
|
|
96
96
|
resolveControlPolicy
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-26AEFJSK.js";
|
|
98
98
|
import {
|
|
99
99
|
detectClaudeVersion
|
|
100
100
|
} from "../chunk-RIVNNBEK.js";
|
|
101
101
|
import {
|
|
102
102
|
describeAutoUpdateAnnouncement,
|
|
103
103
|
takeAutoUpdateAnnouncement
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-HCKBZYBW.js";
|
|
105
105
|
import {
|
|
106
106
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
107
107
|
clearDaemonNeedsLogin,
|
|
@@ -115,10 +115,10 @@ import {
|
|
|
115
115
|
replaceDaemonService,
|
|
116
116
|
stopDaemonService,
|
|
117
117
|
waitForDaemonRemoteProof
|
|
118
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-Y5FCB66K.js";
|
|
119
119
|
import {
|
|
120
120
|
transcriptPreferenceForSetup
|
|
121
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-QPUTCMAK.js";
|
|
122
122
|
import "../chunk-XHKBHWLX.js";
|
|
123
123
|
import {
|
|
124
124
|
BROWSER_CONNECT_COMMAND,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
roundTripEvidence,
|
|
132
132
|
verifyRoundTrip,
|
|
133
133
|
waitForYourPhone
|
|
134
|
-
} from "../chunk-
|
|
134
|
+
} from "../chunk-556JCOMK.js";
|
|
135
135
|
import "../chunk-3EGEA4KH.js";
|
|
136
136
|
import {
|
|
137
137
|
setHumanStream
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
import {
|
|
140
140
|
mcpServerBearer,
|
|
141
141
|
readMacAppAgentKey
|
|
142
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-VRALPR4B.js";
|
|
143
143
|
import {
|
|
144
144
|
OPENCODE_HOOK_BINARY,
|
|
145
145
|
addOpenCodeMcpServer,
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
openCodePluginDir,
|
|
156
156
|
openCodePluginFile,
|
|
157
157
|
openCodeWired
|
|
158
|
-
} from "../chunk-
|
|
158
|
+
} from "../chunk-CHWJ7ZXI.js";
|
|
159
159
|
import {
|
|
160
160
|
ansiPainter,
|
|
161
161
|
createIo,
|
|
@@ -170,14 +170,16 @@ import {
|
|
|
170
170
|
addPusharyToolPermissions,
|
|
171
171
|
captureClaudeMcpServer,
|
|
172
172
|
compatibleConfigFile,
|
|
173
|
+
compatibleFilePath,
|
|
173
174
|
compatibleHookEvents,
|
|
174
175
|
compatibleInstructionsFile,
|
|
175
176
|
compatibleMcpFile,
|
|
176
177
|
compatiblePermissionRuleFile,
|
|
178
|
+
compatibleTargetPaths,
|
|
177
179
|
hasCompatibleHooks,
|
|
178
180
|
isClaudeMcpSnapshot,
|
|
179
181
|
updateClaudeMcpSnapshot
|
|
180
|
-
} from "../chunk-
|
|
182
|
+
} from "../chunk-SHLLDMPM.js";
|
|
181
183
|
import {
|
|
182
184
|
KEEP_HINT,
|
|
183
185
|
captureHookTakeover,
|
|
@@ -189,20 +191,20 @@ import {
|
|
|
189
191
|
geminiWired,
|
|
190
192
|
planHooks,
|
|
191
193
|
pusharyHookExecutable
|
|
192
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-4NMDFPK7.js";
|
|
193
195
|
import {
|
|
194
196
|
GEMINI_HOOK_BINARY,
|
|
195
197
|
GEMINI_HOOK_EVENTS,
|
|
196
198
|
addGeminiHooks,
|
|
197
199
|
addGeminiMcpServer
|
|
198
|
-
} from "../chunk-
|
|
200
|
+
} from "../chunk-ULDOQF4Q.js";
|
|
199
201
|
import {
|
|
200
202
|
AGENT_CHOICES,
|
|
201
203
|
effectiveControlMode,
|
|
202
204
|
effectiveVerify,
|
|
203
205
|
parseSetupOptions
|
|
204
|
-
} from "../chunk-
|
|
205
|
-
import "../chunk-
|
|
206
|
+
} from "../chunk-EQXMVKKD.js";
|
|
207
|
+
import "../chunk-5ML6E3L7.js";
|
|
206
208
|
import "../chunk-GMXKITVA.js";
|
|
207
209
|
import {
|
|
208
210
|
compareVersion,
|
|
@@ -220,28 +222,28 @@ import {
|
|
|
220
222
|
recordMacAppKeyPrefix,
|
|
221
223
|
resolveShellRc,
|
|
222
224
|
writeKey
|
|
223
|
-
} from "../chunk-
|
|
225
|
+
} from "../chunk-42FTY5II.js";
|
|
224
226
|
import {
|
|
225
227
|
reportEvent
|
|
226
|
-
} from "../chunk-
|
|
227
|
-
import "../chunk-
|
|
228
|
-
import "../chunk-
|
|
228
|
+
} from "../chunk-6LKIK7V2.js";
|
|
229
|
+
import "../chunk-U2PUHT4W.js";
|
|
230
|
+
import "../chunk-FBKGGIFB.js";
|
|
229
231
|
import "../chunk-POFBE6ZY.js";
|
|
230
|
-
import "../chunk-
|
|
232
|
+
import "../chunk-BS64ZHTB.js";
|
|
231
233
|
import {
|
|
232
234
|
checkApiKey,
|
|
233
235
|
describeKeyCheck,
|
|
234
236
|
samePusharyAccount
|
|
235
|
-
} from "../chunk-
|
|
236
|
-
import "../chunk-
|
|
237
|
-
import "../chunk-
|
|
237
|
+
} from "../chunk-GNESC5EF.js";
|
|
238
|
+
import "../chunk-CRZ4CP7C.js";
|
|
239
|
+
import "../chunk-EGTVN6YV.js";
|
|
238
240
|
import {
|
|
239
241
|
UsageError
|
|
240
242
|
} from "../chunk-7QLSKOSU.js";
|
|
241
243
|
import {
|
|
242
244
|
EXIT
|
|
243
245
|
} from "../chunk-KZERVKTD.js";
|
|
244
|
-
import "../chunk-
|
|
246
|
+
import "../chunk-5S2P2CK6.js";
|
|
245
247
|
import {
|
|
246
248
|
NpmMissingError,
|
|
247
249
|
addCodexHookTrust,
|
|
@@ -286,23 +288,22 @@ import {
|
|
|
286
288
|
resolveGlobalBinary,
|
|
287
289
|
vscodePluginDir,
|
|
288
290
|
vscodePluginMcp
|
|
289
|
-
} from "../chunk-
|
|
291
|
+
} from "../chunk-K5X25GUV.js";
|
|
290
292
|
import {
|
|
291
293
|
backupFile,
|
|
292
294
|
readJsonSafe,
|
|
293
295
|
writeFileAtomic,
|
|
294
296
|
writeJsonAtomic
|
|
295
297
|
} from "../chunk-AQFEP65J.js";
|
|
296
|
-
import "../chunk-
|
|
298
|
+
import "../chunk-PRKH662J.js";
|
|
297
299
|
import {
|
|
298
300
|
NPX_LATEST_COMMAND,
|
|
299
301
|
renderCommandHelp
|
|
300
|
-
} from "../chunk-
|
|
302
|
+
} from "../chunk-LL256PHP.js";
|
|
301
303
|
import {
|
|
302
304
|
HOOK_COMPATIBLE_PROFILES,
|
|
303
305
|
PRETOOLUSE_GATED_TOOLS,
|
|
304
306
|
SUPPORT_EMAIL,
|
|
305
|
-
compatibleTargetFiles,
|
|
306
307
|
computerOsOfPlatform,
|
|
307
308
|
getPackageVersion,
|
|
308
309
|
hookCompatibleProfile,
|
|
@@ -312,7 +313,7 @@ import {
|
|
|
312
313
|
isValidApiKey,
|
|
313
314
|
launchedPackage,
|
|
314
315
|
ownPackageName
|
|
315
|
-
} from "../chunk-
|
|
316
|
+
} from "../chunk-2DZBIELP.js";
|
|
316
317
|
|
|
317
318
|
// bin/pushary-setup.ts
|
|
318
319
|
import { existsSync, readFileSync, writeFileSync, mkdirSync, cpSync, rmSync, renameSync, realpathSync, statSync, openSync, readSync, closeSync } from "fs";
|
|
@@ -1977,15 +1978,16 @@ var clearSetupChoiceDecline = (agent) => {
|
|
|
1977
1978
|
if (declined) clearDeclinedAgent(declined);
|
|
1978
1979
|
};
|
|
1979
1980
|
var compatibleAppMcpEntries = () => Object.fromEntries(HOOK_COMPATIBLE_PROFILES.flatMap((profile) => {
|
|
1980
|
-
|
|
1981
|
-
|
|
1981
|
+
if (!profile.mcp) return [];
|
|
1982
|
+
const file = compatibleFilePath(profile.mcp.file);
|
|
1983
|
+
return [[profile.agentType, { file: () => file, container: profile.mcp.container, format: profile.mcp.file.format }]];
|
|
1982
1984
|
}));
|
|
1983
1985
|
var APP_MCP_ENTRIES = {
|
|
1984
|
-
claude_code: { file: () => CLAUDE_JSON, container: "mcpServers" },
|
|
1985
|
-
gemini_cli: { file: () => GEMINI_SETTINGS, container: "mcpServers" },
|
|
1986
|
-
cursor: { file: cursorUserMcp, container: "mcpServers" },
|
|
1987
|
-
vscode: { file: () => VSCODE_PLUGIN_MCP, container: "mcpServers" },
|
|
1988
|
-
opencode: { file: openCodeConfigFile, container: "mcp" },
|
|
1986
|
+
claude_code: { file: () => CLAUDE_JSON, container: "mcpServers", format: "json" },
|
|
1987
|
+
gemini_cli: { file: () => GEMINI_SETTINGS, container: "mcpServers", format: "json" },
|
|
1988
|
+
cursor: { file: cursorUserMcp, container: "mcpServers", format: "json" },
|
|
1989
|
+
vscode: { file: () => VSCODE_PLUGIN_MCP, container: "mcpServers", format: "json" },
|
|
1990
|
+
opencode: { file: openCodeConfigFile, container: "mcp", format: "json" },
|
|
1989
1991
|
...compatibleAppMcpEntries()
|
|
1990
1992
|
};
|
|
1991
1993
|
var MAC_APP_DEVICE_KEY_AGENTS = new Set(
|
|
@@ -1997,7 +1999,10 @@ var appMcpKeyFor = (agent) => {
|
|
|
1997
1999
|
return auth?.method === "embedded" ? auth.key : null;
|
|
1998
2000
|
}
|
|
1999
2001
|
const entry = APP_MCP_ENTRIES[agent];
|
|
2000
|
-
|
|
2002
|
+
if (!entry) return null;
|
|
2003
|
+
const file = entry.file();
|
|
2004
|
+
const config = entry.format === "toml" ? readAgentToml(file) : readAgentJson(file);
|
|
2005
|
+
return mcpServerBearer(config[entry.container]);
|
|
2001
2006
|
};
|
|
2002
2007
|
var appWiringAccountKeyFor = (agent) => MAC_APP_DEVICE_KEY_AGENTS.has(agent) ? readMacAppAgentKey() : appMcpKeyFor(agent);
|
|
2003
2008
|
var appMcpKeyIfReadable = (agent) => {
|
|
@@ -2107,12 +2112,13 @@ var setupCompatibleAgent = (profile) => async (apiKey) => {
|
|
|
2107
2112
|
}
|
|
2108
2113
|
await installGlobally2();
|
|
2109
2114
|
const documents = /* @__PURE__ */ new Map();
|
|
2110
|
-
const open = (
|
|
2115
|
+
const open = (file) => {
|
|
2116
|
+
const path = compatibleFilePath(file);
|
|
2111
2117
|
const existing = documents.get(path);
|
|
2112
|
-
if (existing) return existing;
|
|
2113
|
-
const
|
|
2114
|
-
documents.set(path,
|
|
2115
|
-
return
|
|
2118
|
+
if (existing) return existing.value;
|
|
2119
|
+
const value = file.format === "toml" ? readAgentToml(path) : readAgentJson(path);
|
|
2120
|
+
documents.set(path, { format: file.format, value });
|
|
2121
|
+
return value;
|
|
2116
2122
|
};
|
|
2117
2123
|
const declined = [];
|
|
2118
2124
|
const record = (path, write) => {
|
|
@@ -2120,16 +2126,18 @@ var setupCompatibleAgent = (profile) => async (apiKey) => {
|
|
|
2120
2126
|
};
|
|
2121
2127
|
const events = compatibleHookEvents(profile).map((hook) => hook.event);
|
|
2122
2128
|
await spinner(`Adding hooks (${events.slice(0, 4).join(", ")}${events.length > 4 ? `, +${events.length - 4} more` : ""})`, async () => {
|
|
2123
|
-
record(configFile, addCompatibleHooks(open(configFile), profile, resolveGlobalBinDir("pushary-hook")));
|
|
2129
|
+
record(configFile, addCompatibleHooks(open(profile.configFile), profile, resolveGlobalBinDir("pushary-hook")));
|
|
2124
2130
|
});
|
|
2125
|
-
if (mcpFile) {
|
|
2131
|
+
if (mcpFile && profile.mcp) {
|
|
2132
|
+
const mcpConfig = open(profile.mcp.file);
|
|
2126
2133
|
await spinner(`Adding MCP server (${shortenHome(mcpFile)})`, async () => {
|
|
2127
|
-
addCompatibleMcpServer(
|
|
2134
|
+
addCompatibleMcpServer(mcpConfig, profile, apiKey);
|
|
2128
2135
|
});
|
|
2129
2136
|
}
|
|
2130
|
-
if (permissionFile) {
|
|
2137
|
+
if (permissionFile && profile.permissionRuleFile) {
|
|
2138
|
+
const permissions = open(profile.permissionRuleFile);
|
|
2131
2139
|
await spinner("Auto-allowing Pushary MCP tools", async () => {
|
|
2132
|
-
record(permissionFile, addCompatibleToolPermissions(
|
|
2140
|
+
record(permissionFile, addCompatibleToolPermissions(permissions));
|
|
2133
2141
|
});
|
|
2134
2142
|
}
|
|
2135
2143
|
if (declined.length > 0) {
|
|
@@ -2141,7 +2149,8 @@ var setupCompatibleAgent = (profile) => async (apiKey) => {
|
|
|
2141
2149
|
}
|
|
2142
2150
|
for (const [path, document] of documents) {
|
|
2143
2151
|
await spinner(`Writing ${shortenHome(path)}`, async () => {
|
|
2144
|
-
|
|
2152
|
+
if (document.format === "toml") writeFileAtomic(path, stringifyTOML(document.value), KEY_FILE_MODE);
|
|
2153
|
+
else writeJsonAtomic(path, document.value, KEY_FILE_MODE);
|
|
2145
2154
|
});
|
|
2146
2155
|
}
|
|
2147
2156
|
if (instructionsFile && profile.instructions) {
|
|
@@ -2408,7 +2417,7 @@ var AGENT_TARGETS = {
|
|
|
2408
2417
|
OPENCODE_INSTRUCTIONS()
|
|
2409
2418
|
],
|
|
2410
2419
|
fx: [fxMcpProfile(), fxSettings(), fxAgentsMd()],
|
|
2411
|
-
...compatibleRecord((profile) =>
|
|
2420
|
+
...compatibleRecord((profile) => compatibleTargetPaths(profile)),
|
|
2412
2421
|
custom: ["nothing (prints connection details only)"]
|
|
2413
2422
|
};
|
|
2414
2423
|
var reportDryRun = (apiKey, agents, keyCheck, controlMode) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readLedgerSummary
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-J36W6ARB.js";
|
|
5
5
|
import {
|
|
6
6
|
exitOnHelpFlag
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-EH635XAR.js";
|
|
8
8
|
import "../chunk-KZERVKTD.js";
|
|
9
9
|
import {
|
|
10
10
|
getApiKey
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-PRKH662J.js";
|
|
12
|
+
import "../chunk-LL256PHP.js";
|
|
13
|
+
import "../chunk-2DZBIELP.js";
|
|
14
14
|
|
|
15
15
|
// bin/pushary-stats.ts
|
|
16
16
|
exitOnHelpFlag("stats");
|
|
@@ -2,70 +2,70 @@
|
|
|
2
2
|
import {
|
|
3
3
|
describeLastSeen,
|
|
4
4
|
listMachines
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-YRAPCLOB.js";
|
|
6
|
+
import "../chunk-26AEFJSK.js";
|
|
7
7
|
import "../chunk-RIVNNBEK.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-Y5FCB66K.js";
|
|
9
9
|
import "../chunk-XHKBHWLX.js";
|
|
10
10
|
import {
|
|
11
11
|
describeReach,
|
|
12
12
|
fetchChannels,
|
|
13
13
|
reachVerdict
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-556JCOMK.js";
|
|
15
15
|
import "../chunk-3EGEA4KH.js";
|
|
16
16
|
import "../chunk-QCGNGEGE.js";
|
|
17
17
|
import {
|
|
18
18
|
CONNECTED_THROUGH_MAC_APP,
|
|
19
19
|
readMacAppConnectionWhenKeyless
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-VRALPR4B.js";
|
|
21
21
|
import {
|
|
22
22
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
23
23
|
activeKeyVerdictOf,
|
|
24
24
|
describeSignedOutKey,
|
|
25
25
|
readSignedOutDiagnosis
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-JWURAYXK.js";
|
|
27
|
+
import "../chunk-CHWJ7ZXI.js";
|
|
28
28
|
import {
|
|
29
29
|
createIo
|
|
30
30
|
} from "../chunk-FO3MDD26.js";
|
|
31
31
|
import {
|
|
32
32
|
exitOnHelpFlag
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
33
|
+
} from "../chunk-EH635XAR.js";
|
|
34
|
+
import "../chunk-SHLLDMPM.js";
|
|
35
|
+
import "../chunk-4NMDFPK7.js";
|
|
36
|
+
import "../chunk-ULDOQF4Q.js";
|
|
37
|
+
import "../chunk-EQXMVKKD.js";
|
|
38
|
+
import "../chunk-5ML6E3L7.js";
|
|
39
39
|
import {
|
|
40
40
|
rejectUnknownFlags
|
|
41
41
|
} from "../chunk-GMXKITVA.js";
|
|
42
42
|
import "../chunk-6ICPEJY5.js";
|
|
43
43
|
import {
|
|
44
44
|
readKeySource
|
|
45
|
-
} from "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
45
|
+
} from "../chunk-42FTY5II.js";
|
|
46
|
+
import "../chunk-6LKIK7V2.js";
|
|
47
|
+
import "../chunk-U2PUHT4W.js";
|
|
48
|
+
import "../chunk-FBKGGIFB.js";
|
|
49
49
|
import "../chunk-POFBE6ZY.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-BS64ZHTB.js";
|
|
51
51
|
import {
|
|
52
52
|
checkApiKey,
|
|
53
53
|
describeKeyCheck
|
|
54
|
-
} from "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
54
|
+
} from "../chunk-GNESC5EF.js";
|
|
55
|
+
import "../chunk-CRZ4CP7C.js";
|
|
56
|
+
import "../chunk-EGTVN6YV.js";
|
|
57
57
|
import {
|
|
58
58
|
UsageError
|
|
59
59
|
} from "../chunk-7QLSKOSU.js";
|
|
60
60
|
import {
|
|
61
61
|
EXIT
|
|
62
62
|
} from "../chunk-KZERVKTD.js";
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-5S2P2CK6.js";
|
|
64
|
+
import "../chunk-K5X25GUV.js";
|
|
65
65
|
import "../chunk-AQFEP65J.js";
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
68
|
-
import "../chunk-
|
|
66
|
+
import "../chunk-PRKH662J.js";
|
|
67
|
+
import "../chunk-LL256PHP.js";
|
|
68
|
+
import "../chunk-2DZBIELP.js";
|
|
69
69
|
|
|
70
70
|
// src/status.ts
|
|
71
71
|
var SIGNED_OUT_LINE = { label: "Server", value: "key signed out on this Mac", ok: false };
|