pushary 1.9.107 → 1.9.109
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 +8 -0
- package/data/cursor-plugin/README.md +9 -0
- package/dist/{api-RL5CPDTH.js → api-YCDTPFT7.js} +10 -10
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +26 -26
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +24 -24
- package/dist/bin/pushary-clean.js +33 -33
- package/dist/bin/pushary-codex-bridge.js +20 -20
- package/dist/bin/pushary-codex-hook.js +31 -31
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -27
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +40 -40
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +16 -16
- package/dist/bin/pushary-doctor.js +41 -41
- package/dist/bin/pushary-elicitation-hook.js +26 -26
- package/dist/bin/pushary-gemini-bridge.js +14 -14
- package/dist/bin/pushary-gemini-hook.js +28 -28
- package/dist/bin/pushary-hook.js +31 -31
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +25 -25
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +25 -25
- package/dist/bin/pushary-opencode-hook.js +27 -27
- package/dist/bin/pushary-permission-denied-hook.js +31 -31
- package/dist/bin/pushary-permission-hook.js +31 -31
- package/dist/bin/pushary-post-hook.js +25 -25
- package/dist/bin/pushary-prompt-hook.js +25 -25
- package/dist/bin/pushary-session-end-hook.js +25 -25
- package/dist/bin/pushary-session-start-hook.js +34 -34
- package/dist/bin/pushary-setup.js +49 -45
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +31 -31
- package/dist/bin/pushary-stop-hook.js +25 -25
- package/dist/bin/pushary-stopfailure-hook.js +25 -25
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +24 -24
- package/dist/bin/pushary-upgrade.js +39 -39
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-X3QG5RT5.js → chunk-3OPHZY7L.js} +1 -1
- package/dist/{chunk-VCWLGM77.js → chunk-3SFUJREU.js} +2 -2
- package/dist/{chunk-UUJQK7DJ.js → chunk-3X3FNKAE.js} +1 -1
- package/dist/{chunk-MFJHLVIZ.js → chunk-3YY6CUU7.js} +4 -4
- package/dist/{chunk-FUTFQSRA.js → chunk-4472LNSQ.js} +1 -1
- package/dist/{chunk-UXIUCMFO.js → chunk-4BDOUP4B.js} +5 -5
- package/dist/{chunk-B7O4CXFX.js → chunk-4SUNBCR6.js} +3 -3
- package/dist/{chunk-4EMPELDR.js → chunk-6OSRPTDX.js} +4 -4
- package/dist/{chunk-LK3WA6MK.js → chunk-7KBKJ2KH.js} +3 -3
- package/dist/{chunk-CJTJ55DR.js → chunk-7S262556.js} +1 -1
- package/dist/{chunk-2HC5ISDW.js → chunk-7VIJBCMF.js} +2 -2
- package/dist/{chunk-ASCQXNCL.js → chunk-ANKVTTB3.js} +1 -1
- package/dist/{chunk-4XE3DVF7.js → chunk-BDAT6H7J.js} +2 -2
- package/dist/{chunk-VKTW5WVB.js → chunk-BFXJUZUH.js} +2 -2
- package/dist/{chunk-DS672F57.js → chunk-BUBLUKJM.js} +9 -9
- package/dist/{chunk-2BILLNZ4.js → chunk-DYA7VIL6.js} +14 -14
- package/dist/{chunk-ATVZAEM5.js → chunk-EMEF7ALE.js} +5 -5
- package/dist/{chunk-S2TTGX6F.js → chunk-F3O5VDQL.js} +4 -4
- package/dist/{chunk-5IAW6G3K.js → chunk-F7BLCVHZ.js} +2 -2
- package/dist/{chunk-NM44KCO6.js → chunk-FIFSPMQZ.js} +3 -3
- package/dist/{chunk-PFZCLG55.js → chunk-FR25IWL7.js} +4 -4
- package/dist/{chunk-IAASPG5B.js → chunk-FYK7JV2R.js} +5 -5
- package/dist/{chunk-LL7SW4RL.js → chunk-G6PHMB3F.js} +3 -3
- package/dist/{chunk-GUIS6ASL.js → chunk-GNOSBEUB.js} +1 -1
- package/dist/{chunk-P3H6I656.js → chunk-GU7AN46G.js} +10 -10
- package/dist/{chunk-CKWV3T7O.js → chunk-H3FRQS4V.js} +6 -6
- package/dist/{chunk-TXMYET7E.js → chunk-HLZIHAUY.js} +3 -3
- package/dist/{chunk-Z5FV7LTD.js → chunk-I4THVOUC.js} +2 -2
- package/dist/{chunk-HONSMBF2.js → chunk-II6M23WI.js} +6 -6
- package/dist/{chunk-I3IUS4SR.js → chunk-J5EAU44S.js} +1 -1
- package/dist/{chunk-G5HGV6D4.js → chunk-JOF3TPDT.js} +2 -2
- package/dist/{chunk-DH22FQAS.js → chunk-K6E24TJ6.js} +1 -1
- package/dist/{chunk-6DKMZBRK.js → chunk-KCDWWT42.js} +1 -1
- package/dist/{chunk-A37RKFI3.js → chunk-KCKLLGMW.js} +4 -4
- package/dist/{chunk-JCSJEMTA.js → chunk-KK5YNO2M.js} +2 -2
- package/dist/{chunk-GESW4OSZ.js → chunk-M6SP3FZF.js} +3 -3
- package/dist/{chunk-ZCBTCW3T.js → chunk-MAWFWQLR.js} +3 -3
- package/dist/{chunk-S75UO75C.js → chunk-MMHBNMHK.js} +29 -6
- package/dist/{chunk-YDQ6OJMF.js → chunk-MYDTSPIZ.js} +1 -1
- package/dist/{chunk-FJYUB3ZK.js → chunk-P7LHBBM5.js} +3 -3
- package/dist/{chunk-KHZCJP7P.js → chunk-PEWTRW6S.js} +10 -10
- package/dist/{chunk-OBZQPBUI.js → chunk-PZ3X6NFM.js} +4 -4
- package/dist/{chunk-RKQVMFHN.js → chunk-QMUSLBVA.js} +5 -5
- package/dist/{chunk-EMSRB2KH.js → chunk-QNUGTQKZ.js} +3 -3
- package/dist/{chunk-FE5JENEJ.js → chunk-QPNYMNB7.js} +2 -2
- package/dist/{chunk-43PNDDB3.js → chunk-R7D2YAXW.js} +6 -6
- package/dist/{chunk-GKCDMAUM.js → chunk-RXRKX646.js} +1 -1
- package/dist/{chunk-JLJJRBTD.js → chunk-S2NBNU4K.js} +5 -5
- package/dist/{chunk-XN527J4W.js → chunk-S442423U.js} +1 -1
- package/dist/{chunk-ZB2WNJXZ.js → chunk-S7LMAMMY.js} +4 -4
- package/dist/{chunk-O5TB2LMQ.js → chunk-SALM3IYQ.js} +8 -3
- package/dist/{chunk-HH5NNPB5.js → chunk-SCQRKKGL.js} +1 -1
- package/dist/{chunk-OINGJICB.js → chunk-SDZBQQEK.js} +4 -4
- package/dist/{chunk-HLYZEZOI.js → chunk-T3B2L64E.js} +2 -2
- package/dist/{chunk-772NHSQB.js → chunk-TIU3TP36.js} +2 -2
- package/dist/{chunk-GBHP3LML.js → chunk-TKJJWIR4.js} +2 -2
- package/dist/{chunk-J2HIFUAT.js → chunk-U6LVSHBR.js} +7 -7
- package/dist/{chunk-76JOLPST.js → chunk-UC2NBQS3.js} +1 -1
- package/dist/{chunk-LMDXQIYT.js → chunk-UK4Z3X75.js} +1 -1
- package/dist/{chunk-DIVVLBZZ.js → chunk-ULTBTBMV.js} +6 -6
- package/dist/{chunk-IGO5NDQY.js → chunk-V25XPPEY.js} +2 -2
- package/dist/{chunk-IHQRLJEP.js → chunk-VKGSGULO.js} +5 -5
- package/dist/{chunk-LIPMEFRA.js → chunk-VZVEZILS.js} +2 -2
- package/dist/{chunk-VK4PPVWB.js → chunk-WU3TP2TP.js} +6 -6
- package/dist/{chunk-J5PUKKCT.js → chunk-X5VHTPAD.js} +5 -5
- package/dist/{chunk-4OUPD4KA.js → chunk-XUKBMRT2.js} +9 -4
- package/dist/{chunk-B5Q44HKN.js → chunk-YB2S73VZ.js} +1 -1
- package/dist/{chunk-DA57ZI62.js → chunk-ZMZG32RS.js} +2 -2
- package/dist/{codex-app-cards-switch-FD2ZWLYL.js → codex-app-cards-switch-CQIIZDPU.js} +11 -11
- package/dist/codex-card-routing-KIFZHIHM.js +20 -0
- package/dist/{codex-desktop-launch-BN5OABPN.js → codex-desktop-launch-YPISWZJX.js} +1 -1
- package/dist/{codex-session-launch-O3PHQWTS.js → codex-session-launch-ZL5WZXD7.js} +17 -17
- package/dist/{config-KWP7UXYG.js → config-3V3AT3AR.js} +3 -3
- package/dist/{global-upgrade-NBSY5436.js → global-upgrade-DI4JAPW6.js} +9 -9
- package/dist/{identity-RP5I7KTV.js → identity-XP7JUJJR.js} +4 -4
- package/dist/{live-capabilities-XC6C47ZH.js → live-capabilities-TFDE3XNS.js} +4 -4
- package/dist/{paths-OE5APZ4Q.js → paths-ZC5TUIHB.js} +3 -3
- package/dist/{reapply-DRZ32BIB.js → reapply-T2BYF7XY.js} +27 -27
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +30 -30
- package/dist/{upgrade-lock-LWTVHYAJ.js → upgrade-lock-IWVHMUXK.js} +4 -4
- package/dist/{usage-5YESCANM.js → usage-Z6WWH3ED.js} +3 -3
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BFXJUZUH.js";
|
|
4
4
|
import {
|
|
5
5
|
hermesReceiptPaths,
|
|
6
6
|
hermesSetupPredatesThePluginFolder,
|
|
7
7
|
installHermesPlugin,
|
|
8
8
|
refreshHermesPluginFiles,
|
|
9
9
|
shippedHermesPlugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FIFSPMQZ.js";
|
|
11
11
|
import {
|
|
12
12
|
fxIgnoresInstructionsFile,
|
|
13
13
|
fxInstructionsBody,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
macAppFxBridge,
|
|
17
17
|
refreshClineKey,
|
|
18
18
|
switchFxHttpEntryToBridge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4BDOUP4B.js";
|
|
20
20
|
import {
|
|
21
21
|
OPENCODE_HOOK_BINARY,
|
|
22
22
|
agentHookOwner,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
openCodePluginDir,
|
|
29
29
|
openCodeWired,
|
|
30
30
|
withOpenCodeAskRules
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VKGSGULO.js";
|
|
32
32
|
import {
|
|
33
33
|
detectClaudeVersion
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-V25XPPEY.js";
|
|
35
35
|
import {
|
|
36
36
|
addCompatibleHooks,
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleInstructionsFile,
|
|
39
39
|
hasCompatibleHooks
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-S2NBNU4K.js";
|
|
41
41
|
import {
|
|
42
42
|
GEMINI_HOOK_BINARY,
|
|
43
43
|
addGeminiHooks,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
geminiWired,
|
|
50
50
|
hasGeminiHooks,
|
|
51
51
|
planHooks
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-3YY6CUU7.js";
|
|
53
53
|
import {
|
|
54
54
|
CLAUDE_HOOK_BINARY,
|
|
55
55
|
CLAUDE_HOOK_EVENTS,
|
|
@@ -95,13 +95,13 @@ import {
|
|
|
95
95
|
renderAgentInstructions,
|
|
96
96
|
supportedClaudeEvents,
|
|
97
97
|
vscodePluginMcp
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-KK5YNO2M.js";
|
|
99
99
|
import {
|
|
100
100
|
formatVersion,
|
|
101
101
|
hookCommandsUseBareNames,
|
|
102
102
|
resolveGlobalBinDir,
|
|
103
103
|
resolveGlobalBinary
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-MAWFWQLR.js";
|
|
105
105
|
import {
|
|
106
106
|
readJsonSafe,
|
|
107
107
|
writeFileAtomic,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
HOOK_COMPATIBLE_PROFILES,
|
|
112
112
|
isCompatibleAgentType,
|
|
113
113
|
isRecord
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-SALM3IYQ.js";
|
|
115
115
|
|
|
116
116
|
// src/reapply.ts
|
|
117
117
|
import { dirname, join } from "path";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3SFUJREU.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M6SP3FZF.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,25 +18,25 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-F7BLCVHZ.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KK5YNO2M.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
30
30
|
npmErrorMessage,
|
|
31
31
|
readGlobalCliInstallAt,
|
|
32
32
|
readGlobalPrefix
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MAWFWQLR.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-BG4HHB7E.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MYDTSPIZ.js";
|
|
40
40
|
import {
|
|
41
41
|
commandsPackage,
|
|
42
42
|
globalUpgradeEntry,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BFXJUZUH.js";
|
|
4
4
|
import {
|
|
5
5
|
retryAgentCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P7LHBBM5.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MYDTSPIZ.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/codex-trust.ts
|
|
12
12
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J5EAU44S.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4SUNBCR6.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KK5YNO2M.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MAWFWQLR.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RXRKX646.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-ZVU6WMMU.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SALM3IYQ.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-lifecycle.ts
|
|
38
38
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MMHBNMHK.js";
|
|
13
13
|
import {
|
|
14
14
|
writeHuman
|
|
15
15
|
} from "./chunk-QCGNGEGE.js";
|
|
16
16
|
import {
|
|
17
17
|
xml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-II6M23WI.js";
|
|
19
19
|
import {
|
|
20
20
|
writeFileAtomic
|
|
21
21
|
} from "./chunk-T5I4PKOQ.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S2NBNU4K.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YY6CUU7.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KK5YNO2M.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SALM3IYQ.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MAWFWQLR.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-T5I4PKOQ.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
HOOK_LOCATOR_BINARY,
|
|
18
18
|
PRETOOLUSE_GATED_TOOLS,
|
|
19
19
|
withHookHoldBudget
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SALM3IYQ.js";
|
|
21
21
|
|
|
22
22
|
// src/setup/paths.ts
|
|
23
23
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V25XPPEY.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-ROVLRXBI.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
resolvePackageVersionFromBinary,
|
|
14
14
|
resolvePathBinary,
|
|
15
15
|
resolvePathBinaryAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MAWFWQLR.js";
|
|
17
17
|
import {
|
|
18
18
|
MANAGED_PROVIDERS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SALM3IYQ.js";
|
|
20
20
|
|
|
21
21
|
// src/live-capabilities.ts
|
|
22
22
|
import { homedir } from "os";
|
|
@@ -399,9 +399,9 @@ var installGlobally = (options) => {
|
|
|
399
399
|
}
|
|
400
400
|
const started = (async () => {
|
|
401
401
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
402
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
403
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
404
|
-
const { autoUpdateLock } = await import("./paths-
|
|
402
|
+
const { withUpgradeLock } = await import("./global-upgrade-DI4JAPW6.js");
|
|
403
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-IWVHMUXK.js");
|
|
404
|
+
const { autoUpdateLock } = await import("./paths-ZC5TUIHB.js");
|
|
405
405
|
let result = "skipped";
|
|
406
406
|
const install = async () => {
|
|
407
407
|
const platform = process.platform;
|
|
@@ -53,6 +53,16 @@ var codexPermissionFormOf = (message) => {
|
|
|
53
53
|
if (!isRecord(meta) || meta.codex_approval_kind !== TOOL_CALL_APPROVAL) return null;
|
|
54
54
|
return { requestId: message.id, threadId: params.threadId, serverName: params.serverName, mode: params.mode, sentence: params.message, meta };
|
|
55
55
|
};
|
|
56
|
+
var NO_TOOL_PARAMS = {};
|
|
57
|
+
var codexFormToolCallOf = (message) => {
|
|
58
|
+
const form = codexPermissionFormOf(message);
|
|
59
|
+
if (form === null || !isIdentifier(form.meta.tool_name)) return null;
|
|
60
|
+
return {
|
|
61
|
+
serverName: form.serverName,
|
|
62
|
+
toolName: form.meta.tool_name,
|
|
63
|
+
toolParams: isRecord(form.meta.tool_params) ? form.meta.tool_params : NO_TOOL_PARAMS
|
|
64
|
+
};
|
|
65
|
+
};
|
|
56
66
|
var codexFormCameFrom = (message, servers) => isRecord(message) && message.method === CODEX_APP_CARD_METHOD && isRecord(message.params) && typeof message.params.serverName === "string" && servers.includes(message.params.serverName);
|
|
57
67
|
|
|
58
68
|
// src/codex-app-runtime.ts
|
|
@@ -521,9 +531,11 @@ var loadedOnce = (load) => {
|
|
|
521
531
|
};
|
|
522
532
|
|
|
523
533
|
// src/codex-desktop-proxy.ts
|
|
524
|
-
var loadThePhone = () => import("./api-
|
|
534
|
+
var loadThePhone = () => import("./api-YCDTPFT7.js");
|
|
535
|
+
var loadTheCardRouting = () => import("./codex-card-routing-KIFZHIHM.js");
|
|
525
536
|
var theFirstCardLoadsAgain = () => {
|
|
526
537
|
};
|
|
538
|
+
var ASKS_WITHOUT_ROUTING = {};
|
|
527
539
|
var APP_SERVER_COMMAND = "app-server";
|
|
528
540
|
var CONFIG_FLAGS = ["-c", "--config"];
|
|
529
541
|
var CONFIG_FLAG_PREFIXES = ["-c=", "--config="];
|
|
@@ -692,11 +704,14 @@ var CodexAppCards = class {
|
|
|
692
704
|
this.options = options;
|
|
693
705
|
this.timing = options.timing ?? USUAL_TIMING;
|
|
694
706
|
this.thePhone = loadedOnce(options.loadPhone ?? loadThePhone);
|
|
707
|
+
this.theCardRouting = loadedOnce(options.loadCardRouting ?? loadTheCardRouting);
|
|
695
708
|
void this.thePhone().catch(theFirstCardLoadsAgain);
|
|
709
|
+
void this.theCardRouting().catch(theFirstCardLoadsAgain);
|
|
696
710
|
}
|
|
697
711
|
ledger = new CodexAppCardLedger();
|
|
698
712
|
questions = /* @__PURE__ */ new Map();
|
|
699
713
|
thePhone;
|
|
714
|
+
theCardRouting;
|
|
700
715
|
stoodDown = false;
|
|
701
716
|
saidAQuestionWasUnknown = false;
|
|
702
717
|
timing;
|
|
@@ -740,7 +755,7 @@ var CodexAppCards = class {
|
|
|
740
755
|
questionShown(message) {
|
|
741
756
|
const card = codexCardOf(message);
|
|
742
757
|
if (card) {
|
|
743
|
-
if (this.ledger.open(card.requestId)) void this.askThePhone(card);
|
|
758
|
+
if (this.ledger.open(card.requestId)) void this.askThePhone(card, codexFormToolCallOf(message));
|
|
744
759
|
return;
|
|
745
760
|
}
|
|
746
761
|
if (this.saidAQuestionWasUnknown || !comesFromCodexOwnTools(message)) return;
|
|
@@ -750,7 +765,14 @@ var CodexAppCards = class {
|
|
|
750
765
|
requestResolved(requestId) {
|
|
751
766
|
if (requestId !== null && this.ledger.engineResolved(requestId) === "phone_question_is_moot") this.withdraw(requestId);
|
|
752
767
|
}
|
|
753
|
-
async
|
|
768
|
+
async cardRoutingFor(toolCall) {
|
|
769
|
+
try {
|
|
770
|
+
return (await this.theCardRouting()).codexCardRoutingOf(toolCall);
|
|
771
|
+
} catch {
|
|
772
|
+
return ASKS_WITHOUT_ROUTING;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
async askThePhone(card, toolCall) {
|
|
754
776
|
try {
|
|
755
777
|
if (codexAppMayAnswerItself(card)) await pauseUnlessStopped(this.timing.letCodexAnswerFirstMs, this.options.signal);
|
|
756
778
|
if (this.options.signal.aborted || !this.ledger.isWaiting(card.requestId)) return;
|
|
@@ -759,7 +781,7 @@ var CodexAppCards = class {
|
|
|
759
781
|
this.ledger.leaveWithTheApp(card.requestId);
|
|
760
782
|
return;
|
|
761
783
|
}
|
|
762
|
-
const phone = await this.thePhone();
|
|
784
|
+
const [phone, routing] = await Promise.all([this.thePhone(), this.cardRoutingFor(toolCall)]);
|
|
763
785
|
if (!this.ledger.isWaiting(card.requestId)) return;
|
|
764
786
|
const answerableUntil = Date.now() + this.timing.answerWindowMs;
|
|
765
787
|
const asked = await phone.askUser(account.apiKey, {
|
|
@@ -769,7 +791,8 @@ var CodexAppCards = class {
|
|
|
769
791
|
agentName: CODEX_APP_AGENT_NAME,
|
|
770
792
|
sessionId: card.threadId,
|
|
771
793
|
machineId: account.machineId,
|
|
772
|
-
waitEndsAt: new Date(answerableUntil).toISOString()
|
|
794
|
+
waitEndsAt: new Date(answerableUntil).toISOString(),
|
|
795
|
+
...routing
|
|
773
796
|
}, ASK_TIMEOUT_MS, account.baseUrl);
|
|
774
797
|
const question = { account, correlationId: asked.correlationId, waiting: new AbortController(), answerableUntil };
|
|
775
798
|
if (!this.ledger.isWaiting(card.requestId)) {
|
|
@@ -1062,7 +1085,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1062
1085
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1063
1086
|
}
|
|
1064
1087
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1065
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1088
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-CQIIZDPU.js");
|
|
1066
1089
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1067
1090
|
}
|
|
1068
1091
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
NpmInstallError,
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MAWFWQLR.js";
|
|
6
6
|
import {
|
|
7
7
|
writeFileAtomic
|
|
8
8
|
} from "./chunk-T5I4PKOQ.js";
|
|
9
9
|
import {
|
|
10
10
|
NPX_LATEST_COMMAND
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MYDTSPIZ.js";
|
|
12
12
|
import {
|
|
13
13
|
readSetupAgentFailures
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SALM3IYQ.js";
|
|
15
15
|
|
|
16
16
|
// src/setup/config-write.ts
|
|
17
17
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
toolResultErrorText,
|
|
28
28
|
transcriptTokensIn,
|
|
29
29
|
transcriptUsageRequest
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UC2NBQS3.js";
|
|
31
31
|
import {
|
|
32
32
|
branchFor,
|
|
33
33
|
repoKeyFor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UK4Z3X75.js";
|
|
35
35
|
import {
|
|
36
36
|
cancelQuestion,
|
|
37
37
|
clientErrorKindOf,
|
|
@@ -39,31 +39,31 @@ import {
|
|
|
39
39
|
reportClientError,
|
|
40
40
|
sendNotification,
|
|
41
41
|
waitForAnswer
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FYK7JV2R.js";
|
|
43
43
|
import {
|
|
44
44
|
withRetry
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FR25IWL7.js";
|
|
46
46
|
import {
|
|
47
47
|
getMachineId
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-J5EAU44S.js";
|
|
49
49
|
import {
|
|
50
50
|
reportedInstallSource
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-I4THVOUC.js";
|
|
52
52
|
import {
|
|
53
53
|
IDLE_PROMPT_NOTIFICATION,
|
|
54
54
|
NOTIFICATION_PUSH_TYPES,
|
|
55
55
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
56
56
|
canonicalJson,
|
|
57
57
|
claudeConfigDir
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KK5YNO2M.js";
|
|
59
59
|
import {
|
|
60
60
|
compareVersion,
|
|
61
61
|
parseVersion
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-MAWFWQLR.js";
|
|
63
63
|
import {
|
|
64
64
|
getApiKey,
|
|
65
65
|
getBaseUrl
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-RXRKX646.js";
|
|
67
67
|
import {
|
|
68
68
|
writeFileAtomic,
|
|
69
69
|
writeJsonAtomicDurable
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
resolveAutoResolveOrigin,
|
|
89
89
|
resolvePolicy,
|
|
90
90
|
unansweredRefusalReason
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-SALM3IYQ.js";
|
|
92
92
|
|
|
93
93
|
// src/pending.ts
|
|
94
94
|
import { join } from "path";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VKGSGULO.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeClaudeInstallPath
|
|
6
6
|
} from "./chunk-ROVLRXBI.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S2NBNU4K.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeConfigDir,
|
|
12
12
|
clineDataDirectory,
|
|
13
13
|
codexHomeFrom
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KK5YNO2M.js";
|
|
15
15
|
import {
|
|
16
16
|
HOOK_COMPATIBLE_PROFILES
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SALM3IYQ.js";
|
|
18
18
|
|
|
19
19
|
// src/vscode-config.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SDZBQQEK.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BUBLUKJM.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S2NBNU4K.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FYK7JV2R.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SALM3IYQ.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G6PHMB3F.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RXRKX646.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-YU2EUD7O.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SALM3IYQ.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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KK5YNO2M.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-T5I4PKOQ.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SALM3IYQ.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TIU3TP36.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7VIJBCMF.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-FO3MDD26.js";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QNUGTQKZ.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4SUNBCR6.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RXRKX646.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SALM3IYQ.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLAUDE_CODE_AGENT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PEWTRW6S.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YY6CUU7.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UC2NBQS3.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KK5YNO2M.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SALM3IYQ.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|