pushary 1.9.44 → 1.9.46
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/README.md +1 -1
- package/dist/bin/pushary-bell-hook.js +25 -26
- package/dist/bin/pushary-bell.js +9 -9
- package/dist/bin/pushary-claude.js +32 -34
- package/dist/bin/pushary-clean.js +30 -31
- package/dist/bin/pushary-codex-bridge.js +22 -690
- package/dist/bin/pushary-codex-hook.js +32 -34
- package/dist/bin/pushary-codex-session.js +439 -42
- package/dist/bin/pushary-codex.js +12 -13
- package/dist/bin/pushary-connect.js +24 -25
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +42 -43
- package/dist/bin/pushary-disconnect.js +24 -25
- package/dist/bin/pushary-doctor.js +35 -36
- package/dist/bin/pushary-elicitation-hook.js +25 -26
- package/dist/bin/pushary-gemini-bridge.js +22 -22
- package/dist/bin/pushary-gemini-hook.js +29 -31
- package/dist/bin/pushary-hook.js +30 -31
- package/dist/bin/pushary-login.js +13 -13
- package/dist/bin/pushary-logout.js +24 -25
- package/dist/bin/pushary-mcp.js +9 -9
- package/dist/bin/pushary-mode.js +12 -12
- package/dist/bin/pushary-notification-hook.js +24 -25
- package/dist/bin/pushary-opencode-hook.js +28 -30
- package/dist/bin/pushary-permission-denied-hook.js +29 -30
- package/dist/bin/pushary-permission-hook.js +28 -29
- package/dist/bin/pushary-post-hook.js +24 -25
- package/dist/bin/pushary-prompt-hook.js +24 -25
- package/dist/bin/pushary-session-end-hook.js +24 -25
- package/dist/bin/pushary-session-start-hook.js +29 -30
- package/dist/bin/pushary-setup.js +37 -38
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +27 -28
- package/dist/bin/pushary-stop-hook.js +24 -25
- package/dist/bin/pushary-stopfailure-hook.js +24 -25
- 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 +31 -32
- package/dist/bin/pushary-wait.js +12 -12
- package/dist/bin/pushary.js +6 -6
- package/dist/{chunk-KYLY6UMN.js → chunk-2IFTZZ5K.js} +1 -1
- package/dist/{chunk-L2ZM7LXN.js → chunk-2PTJHEX4.js} +2 -2
- package/dist/{chunk-3IRC3XFG.js → chunk-2UABJ75E.js} +2 -2
- package/dist/{chunk-MRQJCIFO.js → chunk-2VNHP2OE.js} +1 -1
- package/dist/{chunk-TKTS3SIM.js → chunk-2X3PPRNC.js} +3 -3
- package/dist/{chunk-E76QCZIA.js → chunk-2ZD53EQW.js} +2 -2
- package/dist/{chunk-SI2NC6UU.js → chunk-35TUEZ5E.js} +3 -3
- package/dist/{chunk-7UM4NCUI.js → chunk-5NXD6ZHQ.js} +2 -2
- package/dist/{chunk-42CVAOC5.js → chunk-5O6GB64K.js} +2 -2
- package/dist/{chunk-OWQOMGBF.js → chunk-7XSIUY5F.js} +1 -1
- package/dist/{chunk-4WBAHVBK.js → chunk-BKJP2MQN.js} +6 -6
- package/dist/{chunk-W2TA4EVZ.js → chunk-CA6F44OF.js} +7 -7
- package/dist/{chunk-DD6IBKEJ.js → chunk-CJKEU4EZ.js} +4 -4
- package/dist/{chunk-JNU3LV47.js → chunk-EDSXF7NV.js} +25 -4
- package/dist/{chunk-75M7NFFC.js → chunk-EKDSF3IX.js} +1 -1
- package/dist/{chunk-PQAFH4DF.js → chunk-ELLN4XAF.js} +2 -2
- package/dist/{chunk-T4CKP47U.js → chunk-EP4MD6TH.js} +5 -5
- package/dist/{chunk-4JHEZ2PV.js → chunk-EW52AGOV.js} +4 -4
- package/dist/chunk-FMDGUCER.js +866 -0
- package/dist/{chunk-53UZN7JW.js → chunk-FQW7AV6U.js} +3 -3
- package/dist/{chunk-XPQDBTW4.js → chunk-FQWI6XQG.js} +1 -1
- package/dist/{chunk-MIBCRQWK.js → chunk-G227SH2O.js} +2 -2
- package/dist/{chunk-OR6KJOHE.js → chunk-GG6C4CHH.js} +2 -2
- package/dist/{chunk-2NVXFWQY.js → chunk-GQZF6DPL.js} +1 -1
- package/dist/{chunk-FI2F5KZJ.js → chunk-HTQPDODV.js} +4 -4
- package/dist/{chunk-SWDPCDLT.js → chunk-HX34VBPE.js} +4 -4
- package/dist/{chunk-OZ7MLVDM.js → chunk-I5EQ5NJD.js} +8 -8
- package/dist/{chunk-IWHDNMM3.js → chunk-JPGY5LSF.js} +5 -5
- package/dist/{chunk-S2ALW446.js → chunk-KJNWVAS6.js} +3 -3
- package/dist/{chunk-TJZUQRMH.js → chunk-LA4S2KIM.js} +3 -3
- package/dist/{chunk-RGBTKOCC.js → chunk-LEMQA4HM.js} +5 -5
- package/dist/{chunk-UC4PNLMK.js → chunk-LNO25UX4.js} +6 -6
- package/dist/{chunk-CESLE4UN.js → chunk-MBB4XJIN.js} +7 -7
- package/dist/{chunk-UJXLVH66.js → chunk-MOUUDZOZ.js} +1 -1
- package/dist/{chunk-6EV3B5CD.js → chunk-NO3ADUD4.js} +1 -1
- package/dist/{chunk-KILK6SWZ.js → chunk-NULG2ZUG.js} +4 -4
- package/dist/{chunk-CAJCCQ7N.js → chunk-NWZZTHWF.js} +1 -1
- package/dist/{chunk-FKDZU6YX.js → chunk-OI6YNNI5.js} +4 -4
- package/dist/{chunk-CEZTYTBN.js → chunk-ON2WCBIN.js} +11 -13
- package/dist/{chunk-ALY7ZBNB.js → chunk-P2FHZ65U.js} +1 -1
- package/dist/{chunk-UY5E2UUW.js → chunk-PGULTXDJ.js} +5 -5
- package/dist/{chunk-GRAPJKDK.js → chunk-PZPYL65I.js} +1 -1
- package/dist/{chunk-FYNMFSIZ.js → chunk-SEKQAYVP.js} +2 -2
- package/dist/{chunk-GBCR2FH2.js → chunk-T623UG5T.js} +3 -3
- package/dist/{chunk-OSMNLNPF.js → chunk-UCRG5QGN.js} +1 -1
- package/dist/{chunk-GOEIW2VH.js → chunk-UGXRDY3O.js} +182 -39
- package/dist/{chunk-PGHN5D4N.js → chunk-UI3WDOV3.js} +2 -2
- package/dist/{chunk-WMO2XVG4.js → chunk-ULEX43F7.js} +1 -1
- package/dist/{chunk-LEHBWBCG.js → chunk-UP2RNIHL.js} +4 -4
- package/dist/{chunk-UZVF6MP2.js → chunk-VTF7LKDB.js} +5 -5
- package/dist/{chunk-M2L7625S.js → chunk-W7MXYDGP.js} +2 -2
- package/dist/{chunk-T3KMJI4W.js → chunk-WN3MDHAM.js} +2 -2
- package/dist/{chunk-BKK3JCTD.js → chunk-WYD4PYTL.js} +12 -14
- package/dist/{chunk-TWATOPHK.js → chunk-XAMFOUXA.js} +2 -2
- package/dist/{chunk-WBD7HZEZ.js → chunk-ZGGSQTCO.js} +1 -1
- package/dist/{chunk-HV4TEKNP.js → chunk-ZYS4UHEC.js} +4 -4
- package/dist/{global-upgrade-QSSDYZCZ.js → global-upgrade-A7EADTOL.js} +6 -6
- package/dist/{paths-55DDFLY4.js → paths-UIPHTZH4.js} +2 -2
- package/dist/{reapply-MEU66ALO.js → reapply-JAT4DS6G.js} +21 -22
- package/dist/src/index.js +19 -20
- package/dist/{upgrade-lock-YLXAU4AD.js → upgrade-lock-YUSXU5I5.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5ZSBQHCM.js +0 -161
- package/dist/chunk-SVCT5D7K.js +0 -196
|
@@ -9,25 +9,25 @@ import {
|
|
|
9
9
|
upgradeFinishOutcome,
|
|
10
10
|
upgradeInstalledPackage,
|
|
11
11
|
withUpgradeLock
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-PGULTXDJ.js";
|
|
13
13
|
import {
|
|
14
14
|
installWithUpgradeLock
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-FQWI6XQG.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureCodexTrustAfterReapply,
|
|
18
18
|
reapplyAllAgents
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-MBB4XJIN.js";
|
|
20
20
|
import {
|
|
21
21
|
describeCodexTrustConfirmation
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-G227SH2O.js";
|
|
23
23
|
import {
|
|
24
24
|
waitForMachineReadiness
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-BKJP2MQN.js";
|
|
26
|
+
import "../chunk-2ZD53EQW.js";
|
|
27
27
|
import {
|
|
28
28
|
readMacAppAgentKey
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-UP2RNIHL.js";
|
|
30
|
+
import "../chunk-VTF7LKDB.js";
|
|
31
31
|
import {
|
|
32
32
|
AUTO_UPDATE_DISABLE_ENV,
|
|
33
33
|
describeAutoUpdateCheck,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
parseAutoUpdateFlag,
|
|
38
38
|
readAutoUpdateState,
|
|
39
39
|
updateAutoUpdateState
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-2UABJ75E.js";
|
|
41
|
+
import "../chunk-OI6YNNI5.js";
|
|
42
42
|
import {
|
|
43
43
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
44
44
|
daemonHasRemoteProof,
|
|
@@ -50,38 +50,37 @@ import {
|
|
|
50
50
|
replaceDaemonService,
|
|
51
51
|
stopDaemonService,
|
|
52
52
|
waitForDaemonRemoteProof
|
|
53
|
-
} from "../chunk-
|
|
54
|
-
import "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
53
|
+
} from "../chunk-CA6F44OF.js";
|
|
54
|
+
import "../chunk-EP4MD6TH.js";
|
|
55
|
+
import "../chunk-35TUEZ5E.js";
|
|
56
|
+
import "../chunk-NO3ADUD4.js";
|
|
57
|
+
import "../chunk-UCRG5QGN.js";
|
|
58
58
|
import "../chunk-GMXKITVA.js";
|
|
59
|
-
import "../chunk-XHKBHWLX.js";
|
|
60
59
|
import {
|
|
61
60
|
readControlMode,
|
|
62
61
|
recordMacAppKeyPrefix
|
|
63
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-LA4S2KIM.js";
|
|
64
63
|
import {
|
|
65
64
|
exitOnHelpFlag
|
|
66
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-GG6C4CHH.js";
|
|
67
66
|
import {
|
|
68
67
|
detectProviderLiveCapabilities,
|
|
69
68
|
expectedLaunchCapabilities,
|
|
70
69
|
hasSpawnProvider,
|
|
71
70
|
resolveControlPolicy
|
|
72
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-2PTJHEX4.js";
|
|
73
72
|
import "../chunk-RIVNNBEK.js";
|
|
73
|
+
import "../chunk-XHKBHWLX.js";
|
|
74
74
|
import "../chunk-6ICPEJY5.js";
|
|
75
|
-
import "../chunk-
|
|
76
|
-
import "../chunk-
|
|
77
|
-
import "../chunk-
|
|
78
|
-
import "../chunk-
|
|
79
|
-
import "../chunk-GOEIW2VH.js";
|
|
75
|
+
import "../chunk-WYD4PYTL.js";
|
|
76
|
+
import "../chunk-NWZZTHWF.js";
|
|
77
|
+
import "../chunk-W7MXYDGP.js";
|
|
78
|
+
import "../chunk-UGXRDY3O.js";
|
|
80
79
|
import "../chunk-POFBE6ZY.js";
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
83
|
-
import "../chunk-
|
|
84
|
-
import "../chunk-
|
|
80
|
+
import "../chunk-FQW7AV6U.js";
|
|
81
|
+
import "../chunk-2X3PPRNC.js";
|
|
82
|
+
import "../chunk-KJNWVAS6.js";
|
|
83
|
+
import "../chunk-ULEX43F7.js";
|
|
85
84
|
import "../chunk-7QLSKOSU.js";
|
|
86
85
|
import {
|
|
87
86
|
EXIT
|
|
@@ -95,19 +94,19 @@ import {
|
|
|
95
94
|
fetchLatestPublishedVersion,
|
|
96
95
|
geminiSettings,
|
|
97
96
|
vscodePluginDir
|
|
98
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-EW52AGOV.js";
|
|
99
98
|
import "../chunk-AQFEP65J.js";
|
|
100
99
|
import {
|
|
101
100
|
getApiKey
|
|
102
|
-
} from "../chunk-
|
|
101
|
+
} from "../chunk-7XSIUY5F.js";
|
|
103
102
|
import {
|
|
104
103
|
NPX_LATEST_COMMAND
|
|
105
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-WN3MDHAM.js";
|
|
106
105
|
import {
|
|
107
106
|
CANONICAL_PACKAGE,
|
|
108
107
|
LEGACY_PACKAGE,
|
|
109
108
|
getPackageVersion
|
|
110
|
-
} from "../chunk-
|
|
109
|
+
} from "../chunk-EDSXF7NV.js";
|
|
111
110
|
|
|
112
111
|
// bin/pushary-upgrade.ts
|
|
113
112
|
import { existsSync } from "fs";
|
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -4,36 +4,36 @@ import {
|
|
|
4
4
|
} from "../chunk-CVWG2N3Y.js";
|
|
5
5
|
import {
|
|
6
6
|
exitOnFailedSettingsRequest
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-HX34VBPE.js";
|
|
8
|
+
import "../chunk-5O6GB64K.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "../chunk-FO3MDD26.js";
|
|
12
12
|
import {
|
|
13
13
|
rejectUnknownFlags
|
|
14
14
|
} from "../chunk-GMXKITVA.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-LA4S2KIM.js";
|
|
16
16
|
import {
|
|
17
17
|
exitOnHelpFlag
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-GG6C4CHH.js";
|
|
19
|
+
import "../chunk-W7MXYDGP.js";
|
|
20
|
+
import "../chunk-2X3PPRNC.js";
|
|
21
|
+
import "../chunk-KJNWVAS6.js";
|
|
22
|
+
import "../chunk-ULEX43F7.js";
|
|
23
23
|
import {
|
|
24
24
|
UsageError
|
|
25
25
|
} from "../chunk-7QLSKOSU.js";
|
|
26
26
|
import {
|
|
27
27
|
EXIT
|
|
28
28
|
} from "../chunk-KZERVKTD.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-EW52AGOV.js";
|
|
30
30
|
import "../chunk-AQFEP65J.js";
|
|
31
31
|
import {
|
|
32
32
|
getApiKey,
|
|
33
33
|
getBaseUrl
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-7XSIUY5F.js";
|
|
35
|
+
import "../chunk-WN3MDHAM.js";
|
|
36
|
+
import "../chunk-EDSXF7NV.js";
|
|
37
37
|
|
|
38
38
|
// bin/pushary-wait.ts
|
|
39
39
|
exitOnHelpFlag("wait");
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KJNWVAS6.js";
|
|
5
|
+
import "../chunk-ULEX43F7.js";
|
|
6
6
|
import "../chunk-7QLSKOSU.js";
|
|
7
7
|
import {
|
|
8
8
|
EXIT
|
|
9
9
|
} from "../chunk-KZERVKTD.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-EW52AGOV.js";
|
|
11
11
|
import "../chunk-AQFEP65J.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-7XSIUY5F.js";
|
|
13
13
|
import {
|
|
14
14
|
COMMANDS,
|
|
15
15
|
renderHelp,
|
|
16
16
|
resolveCommandName
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-WN3MDHAM.js";
|
|
18
18
|
import {
|
|
19
19
|
getPackageVersion
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-EDSXF7NV.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/runtime.ts
|
|
23
23
|
var supportsRuntime = (version) => {
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
resolvePackageVersionFromBinary,
|
|
11
11
|
resolvePathBinary,
|
|
12
12
|
resolvePathBinaryAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EW52AGOV.js";
|
|
14
14
|
import {
|
|
15
15
|
MANAGED_PROVIDERS
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EDSXF7NV.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/codex-install.ts
|
|
19
19
|
var NATIVE_BINARY_MIN_BYTES = 20 * 1024 * 1024;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EW52AGOV.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
globalUpgradeEntry,
|
|
16
16
|
isAutoUpdateResult,
|
|
17
17
|
ownPackageRoot
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EDSXF7NV.js";
|
|
19
19
|
|
|
20
20
|
// src/auto-update.ts
|
|
21
21
|
import { spawn } from "child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KJNWVAS6.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-7QLSKOSU.js";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-KZERVKTD.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7XSIUY5F.js";
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EDSXF7NV.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand,
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EW52AGOV.js";
|
|
12
12
|
import {
|
|
13
13
|
getPackageVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EDSXF7NV.js";
|
|
15
15
|
|
|
16
16
|
// src/codex-app-server.ts
|
|
17
17
|
import { existsSync, realpathSync } from "fs";
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
NOTIFICATION_MATCHED_TYPES,
|
|
7
7
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NWZZTHWF.js";
|
|
9
9
|
import {
|
|
10
10
|
isProtectedByScope,
|
|
11
11
|
registerHookEntry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EW52AGOV.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_PRETOOLUSE_MATCHER,
|
|
15
15
|
HOOK_BUDGETS,
|
|
16
16
|
HOOK_LOCATOR_BINARY
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EDSXF7NV.js";
|
|
18
18
|
|
|
19
19
|
// src/gemini-config.ts
|
|
20
20
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EW52AGOV.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EDSXF7NV.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LA4S2KIM.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WN3MDHAM.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
hasDaemonServiceDefinition,
|
|
5
5
|
readDaemonNeedsLogin,
|
|
6
6
|
readDaemonStatus
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CA6F44OF.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode,
|
|
10
10
|
readKeySource
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LA4S2KIM.js";
|
|
12
12
|
import {
|
|
13
13
|
detectProviderLiveCapabilities,
|
|
14
14
|
expectedLaunchCapabilities,
|
|
15
15
|
hasSpawnProvider,
|
|
16
16
|
resolveControlPolicy
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2PTJHEX4.js";
|
|
18
18
|
import {
|
|
19
19
|
getMachineId
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ULEX43F7.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7XSIUY5F.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EDSXF7NV.js";
|
|
27
27
|
|
|
28
28
|
// src/machines.ts
|
|
29
29
|
import { hostname } from "os";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readControlMode
|
|
3
|
+
} from "./chunk-LA4S2KIM.js";
|
|
1
4
|
import {
|
|
2
5
|
needsShell,
|
|
3
6
|
spawnClaude
|
|
4
7
|
} from "./chunk-XHKBHWLX.js";
|
|
5
|
-
import {
|
|
6
|
-
readControlMode
|
|
7
|
-
} from "./chunk-TJZUQRMH.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ULEX43F7.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir,
|
|
13
13
|
resolveGlobalBinary
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EW52AGOV.js";
|
|
15
15
|
import {
|
|
16
16
|
readJsonSafe,
|
|
17
17
|
writeFileAtomic,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-AQFEP65J.js";
|
|
21
21
|
import {
|
|
22
22
|
getApiKey
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7XSIUY5F.js";
|
|
24
24
|
import {
|
|
25
25
|
CLI_PACKAGE_NAMES,
|
|
26
26
|
cmdShimTarget,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
globalPackageFolder,
|
|
29
29
|
globalRootFor,
|
|
30
30
|
isRecord
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EDSXF7NV.js";
|
|
32
32
|
|
|
33
33
|
// src/daemon-lifecycle.ts
|
|
34
34
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranscript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I5EQ5NJD.js";
|
|
4
4
|
import {
|
|
5
5
|
namedEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OI6YNNI5.js";
|
|
7
7
|
import {
|
|
8
8
|
writeDegraded
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UGXRDY3O.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeShapedHookInput,
|
|
12
12
|
hookCompatibleProfileBySource,
|
|
13
13
|
isGrokHookPayload,
|
|
14
14
|
isGrokSessionEndStop
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EDSXF7NV.js";
|
|
16
16
|
|
|
17
17
|
// src/tool-hook-input.ts
|
|
18
18
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode"];
|
|
@@ -2662,6 +2662,8 @@ var boundedJson = (value) => {
|
|
|
2662
2662
|
};
|
|
2663
2663
|
var BASE_KEYS = ["threadId", "turnId", "itemId", "startedAtMs", "reason"];
|
|
2664
2664
|
var MCP_META_KEYS = ["codex_approval_kind", "codex_requires_user_input", "codex_request_type", "codex_strict_auto_review", "codex_sensitive_action", "approvals_reviewer", "persist", "source", "connector_id", "connector_name", "connector_description", "tool_name", "tool_title", "tool_description", "tool_params", "tool_params_display"];
|
|
2665
|
+
var COMPUTER_USE_META_KEYS = [...MCP_META_KEYS, "riskLevel", "subtitle", "tool_call_id"];
|
|
2666
|
+
var computerUseDisplay = (value) => Array.isArray(value) && value.length <= 16 && value.every((item) => record2(item) && keys(item, ["name", "display_name", "value"]) && text(item.name) && text(item.display_name) && text(item.value));
|
|
2665
2667
|
var isExecpolicyAmendment = (value) => Array.isArray(value) && value.length > 0 && value.length <= 128 && value.every((token) => typeof token === "string" && token.length <= 16384);
|
|
2666
2668
|
var isCommandDecision = (value) => {
|
|
2667
2669
|
if (typeof value === "string") return ["accept", "acceptForSession", "decline", "cancel"].includes(value);
|
|
@@ -2682,15 +2684,28 @@ var parseCodexNativeApproval = (value) => {
|
|
|
2682
2684
|
negativeDecision: "decline"
|
|
2683
2685
|
};
|
|
2684
2686
|
if (value.method === "mcpServer/elicitation/request") {
|
|
2685
|
-
if (value.changes !== void 0 || !keys(p, ["threadId", "turnId", "serverName", "mode", "message", "requestedSchema", "_meta"]) || p.mode !== "form" || !identifier2(p.serverName) || !text(p.message) || p.message.length > 500 || !record2(p.requestedSchema) || !keys(p.requestedSchema, ["type", "properties", "required", "$schema"]) || p.requestedSchema.type !== "object" || !record2(p.requestedSchema.properties) || Object.keys(p.requestedSchema.properties).length !== 0 || p.requestedSchema.required != null && (!Array.isArray(p.requestedSchema.required) || p.requestedSchema.required.length !== 0)) return null;
|
|
2686
2687
|
const meta = p._meta;
|
|
2687
|
-
|
|
2688
|
+
const computerUse = record2(meta) && meta.connector_id === "computer-use";
|
|
2689
|
+
if (value.changes !== void 0 || !keys(p, ["threadId", "turnId", "serverName", "mode", "message", "requestedSchema", "_meta"]) || !(p.mode === "form" || computerUse && (p.mode === "openai/form" || p.mode === "openaiForm")) || !identifier2(p.serverName) || !text(p.message) || p.message.length > 500 || !record2(p.requestedSchema) || !keys(p.requestedSchema, ["type", "properties", "required", "$schema"]) || p.requestedSchema.type !== "object" || !record2(p.requestedSchema.properties) || Object.keys(p.requestedSchema.properties).length !== 0 || p.requestedSchema.required != null && (!Array.isArray(p.requestedSchema.required) || p.requestedSchema.required.length !== 0)) return null;
|
|
2690
|
+
if (!record2(meta) || !keys(meta, computerUse ? COMPUTER_USE_META_KEYS : MCP_META_KEYS) || meta.codex_approval_kind !== "mcp_tool_call" || !identifier2(meta.tool_name) || !record2(meta.tool_params) || meta.tool_params_display != null && !(computerUse ? computerUseDisplay(meta.tool_params_display) : record2(meta.tool_params_display))) return null;
|
|
2691
|
+
if (computerUse && (meta.riskLevel !== "low" && meta.riskLevel !== "high" || meta.subtitle != null && !text(meta.subtitle) || !optionalIdentifier(meta.tool_call_id))) return null;
|
|
2688
2692
|
if (["codex_requires_user_input", "codex_strict_auto_review", "codex_sensitive_action"].some((key) => meta[key] != null && typeof meta[key] !== "boolean")) return null;
|
|
2689
2693
|
if (meta.approvals_reviewer != null && meta.approvals_reviewer !== "user") return null;
|
|
2690
2694
|
if (meta.codex_request_type != null && meta.codex_request_type !== "approval_request") return null;
|
|
2691
2695
|
if (["source", "connector_id", "connector_name", "connector_description", "tool_title", "tool_description"].some((key) => meta[key] != null && !text(meta[key]))) return null;
|
|
2692
2696
|
const persistence = meta.persist == null ? [] : typeof meta.persist === "string" ? [meta.persist] : meta.persist;
|
|
2693
2697
|
if (!Array.isArray(persistence) || persistence.some((v) => v !== "session" && v !== "always")) return null;
|
|
2698
|
+
if (computerUse) {
|
|
2699
|
+
if (!persistence.includes("session")) return null;
|
|
2700
|
+
return {
|
|
2701
|
+
...base,
|
|
2702
|
+
toolName: `mcp__${p.serverName}__${meta.tool_name}`,
|
|
2703
|
+
toolInputs: [meta.tool_params],
|
|
2704
|
+
question: p.message,
|
|
2705
|
+
detail: [`Risk: ${meta.riskLevel}`, meta.subtitle, JSON.stringify(meta.tool_params)].filter(Boolean).join("\n"),
|
|
2706
|
+
options: [CODEX_NATIVE_APPROVAL_CHOICES.session, CODEX_NATIVE_APPROVAL_CHOICES.deny]
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2694
2709
|
return {
|
|
2695
2710
|
...base,
|
|
2696
2711
|
toolName: `mcp__${p.serverName}__${meta.tool_name}`,
|
|
@@ -2725,7 +2740,7 @@ ${change.diff}`);
|
|
|
2725
2740
|
}
|
|
2726
2741
|
return {
|
|
2727
2742
|
...base,
|
|
2728
|
-
toolName: "
|
|
2743
|
+
toolName: "Edit",
|
|
2729
2744
|
toolInputs: paths.map((file_path) => ({ file_path })),
|
|
2730
2745
|
scopePaths: paths,
|
|
2731
2746
|
question: `Allow these ${paths.length} file changes once?`,
|
|
@@ -4645,7 +4660,7 @@ var posixShellJudgeFor = (toolName) => ({
|
|
|
4645
4660
|
runsScripts,
|
|
4646
4661
|
namesASecretFile: (fileName) => SECRET_FILE_NAME.test(fileName)
|
|
4647
4662
|
});
|
|
4648
|
-
var commandIsDestructive = (toolName, command) => shellDialectOf(toolName) === "powershell" ? powerShellCommandIsDestructive(command, posixShellJudgeFor(toolName)) :
|
|
4663
|
+
var commandIsDestructive = (toolName, command) => shellDialectOf(toolName) === "powershell" ? powerShellCommandIsDestructive(command, posixShellJudgeFor(toolName)) : readingsThatCanAct(command).some((reading) => classifyDecisionRisk(toolNameForAPosixReading(toolName), reading) === "destructive");
|
|
4649
4664
|
var commandHasAVisibleConsequence = (toolName, command) => shellDialectOf(toolName) === "powershell" ? powerShellCommandHasAVisibleConsequence(command, posixShellJudgeFor(toolName)) : commandHasAVisibleConsequenceAt(toolNameForAPosixReading(toolName), command, 0);
|
|
4650
4665
|
var MAX_SPELLING_DEPTH = 3;
|
|
4651
4666
|
var GIT_GLOBAL_OPTIONS_WITH_A_VALUE = /* @__PURE__ */ new Set([
|
|
@@ -4771,6 +4786,12 @@ var commandSpellingsAt = (command, depth) => {
|
|
|
4771
4786
|
return { forms, hidesWhatItRuns };
|
|
4772
4787
|
};
|
|
4773
4788
|
var commandSpellings = (command) => commandSpellingsAt(command, 0);
|
|
4789
|
+
var passesItsInputToSomethingThatCanAct = (segment) => segment.readsInput && !isSafeReadOnlyCommand(verbatimInvocationText(segment.invocation));
|
|
4790
|
+
var feedsTextToSomethingThatCanAct = (command) => roughSegmentsOf(command).some(passesItsInputToSomethingThatCanAct);
|
|
4791
|
+
var readingsThatCanAct = (command) => {
|
|
4792
|
+
const spellings = commandSpellings(command).forms;
|
|
4793
|
+
return feedsTextToSomethingThatCanAct(command) ? [command, ...spellings] : spellings;
|
|
4794
|
+
};
|
|
4774
4795
|
var withoutSessionToolGrants = (config) => ({
|
|
4775
4796
|
...config,
|
|
4776
4797
|
policies: config.policies.filter((policy) => !isSessionToolGrant(policy))
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
decodePublicKey,
|
|
4
4
|
generateSessionKey,
|
|
5
5
|
wrapSessionKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EKDSF3IX.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchTranscriptRecipients,
|
|
9
9
|
uploadTranscriptRecords
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2VNHP2OE.js";
|
|
11
11
|
|
|
12
12
|
// src/live-session.ts
|
|
13
13
|
var MAX_TRANSCRIPT_QUEUE = 100;
|
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
CLAUDE_HOOK_EVENTS,
|
|
3
3
|
GEMINI_HOOK_EVENTS,
|
|
4
4
|
hasGeminiHooks
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-35TUEZ5E.js";
|
|
6
6
|
import {
|
|
7
7
|
AGENT_CHOICES
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NO3ADUD4.js";
|
|
9
9
|
import {
|
|
10
10
|
BELL_HOOK_BINARY
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UCRG5QGN.js";
|
|
12
12
|
import {
|
|
13
13
|
CODEX_HOOK_EVENTS,
|
|
14
14
|
hasCodexHooks,
|
|
15
15
|
holdBudgetOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EW52AGOV.js";
|
|
17
17
|
import {
|
|
18
18
|
CURSOR_GATE_EVENTS,
|
|
19
19
|
HOOK_LOCATOR_BINARY,
|
|
20
20
|
hookCommandHoldBudget
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EDSXF7NV.js";
|
|
22
22
|
|
|
23
23
|
// src/diagnostics/bridge.ts
|
|
24
24
|
import { execFileSync } from "child_process";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isReleaseVersion,
|
|
15
15
|
ownPackageName,
|
|
16
16
|
withHookHoldBudget
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EDSXF7NV.js";
|
|
18
18
|
|
|
19
19
|
// src/setup/paths.ts
|
|
20
20
|
import { homedir as homedir2 } from "os";
|
|
@@ -402,9 +402,9 @@ var installGlobally = (options) => {
|
|
|
402
402
|
}
|
|
403
403
|
const started = (async () => {
|
|
404
404
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
405
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
406
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
407
|
-
const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-
|
|
405
|
+
const { withUpgradeLock } = await import("./global-upgrade-A7EADTOL.js");
|
|
406
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-YUSXU5I5.js");
|
|
407
|
+
const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-UIPHTZH4.js");
|
|
408
408
|
let result = "skipped";
|
|
409
409
|
const install = async () => {
|
|
410
410
|
const platform = process.platform;
|