pushary 1.9.81 → 1.9.82
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/dist/{api-VFUZ5HBR.js → api-TZO5ACOS.js} +8 -8
- package/dist/bin/pushary-bell-hook.js +19 -19
- package/dist/bin/pushary-bell.js +7 -7
- package/dist/bin/pushary-claude.js +20 -20
- package/dist/bin/pushary-clean.js +28 -28
- package/dist/bin/pushary-codex-bridge.js +15 -15
- package/dist/bin/pushary-codex-hook.js +22 -22
- package/dist/bin/pushary-codex-session.js +7 -7
- package/dist/bin/pushary-codex.js +9 -9
- package/dist/bin/pushary-connect.js +21 -21
- package/dist/bin/pushary-cowork.js +2 -2
- package/dist/bin/pushary-daemon.js +32 -32
- package/dist/bin/pushary-disconnect.js +20 -20
- package/dist/bin/pushary-display-hook.js +11 -11
- package/dist/bin/pushary-doctor.js +40 -36
- package/dist/bin/pushary-elicitation-hook.js +19 -19
- package/dist/bin/pushary-gemini-bridge.js +10 -10
- package/dist/bin/pushary-gemini-hook.js +20 -20
- package/dist/bin/pushary-hook.js +22 -22
- package/dist/bin/pushary-login.js +15 -15
- package/dist/bin/pushary-logout.js +18 -18
- package/dist/bin/pushary-mcp.js +9 -9
- package/dist/bin/pushary-mode.js +11 -11
- package/dist/bin/pushary-notification-hook.js +18 -18
- package/dist/bin/pushary-opencode-hook.js +19 -19
- package/dist/bin/pushary-permission-denied-hook.js +21 -21
- package/dist/bin/pushary-permission-hook.js +21 -21
- package/dist/bin/pushary-post-hook.js +18 -18
- package/dist/bin/pushary-prompt-hook.js +18 -18
- package/dist/bin/pushary-session-end-hook.js +20 -20
- package/dist/bin/pushary-session-start-hook.js +28 -28
- package/dist/bin/pushary-setup.js +43 -40
- package/dist/bin/pushary-stats.js +2 -2
- package/dist/bin/pushary-status.js +25 -25
- package/dist/bin/pushary-stop-hook.js +18 -18
- package/dist/bin/pushary-stopfailure-hook.js +18 -18
- package/dist/bin/pushary-suggestions.js +11 -11
- package/dist/bin/pushary-transcript-register.js +11 -11
- package/dist/bin/pushary-transcripts.js +15 -15
- package/dist/bin/pushary-upgrade.js +34 -34
- package/dist/bin/pushary-wait.js +11 -11
- package/dist/bin/pushary.js +5 -5
- package/dist/{chunk-IS5YVKUX.js → chunk-2BJZFA7X.js} +7 -5
- package/dist/{chunk-QZ666HLH.js → chunk-2TEX3APZ.js} +5 -5
- package/dist/{chunk-BYFFELB3.js → chunk-3UBYG4G7.js} +5 -5
- package/dist/{chunk-IA53GEP5.js → chunk-3V6G2GBJ.js} +5 -5
- package/dist/{chunk-VK2CHU3L.js → chunk-4S5XVFDV.js} +1 -1
- package/dist/{chunk-GOYYPBBJ.js → chunk-5LLZSX7I.js} +3 -3
- package/dist/{chunk-UUASO2FU.js → chunk-5TMGEQAC.js} +3 -3
- package/dist/{chunk-YIKIQ6YN.js → chunk-6224ENW3.js} +2 -2
- package/dist/{chunk-VII55DVC.js → chunk-6355HHSR.js} +2 -2
- package/dist/{chunk-TJZIUFWK.js → chunk-6L2U3TP3.js} +18 -17
- package/dist/{chunk-K5QN6V5K.js → chunk-72CIQCBA.js} +7 -4
- package/dist/{chunk-ZIJKTWNO.js → chunk-AM3H6HWG.js} +1 -1
- package/dist/{chunk-NVEDZZ3V.js → chunk-APSYBSMG.js} +13 -11
- package/dist/{chunk-74QJBFMG.js → chunk-AXE2ZOKS.js} +1 -1
- package/dist/{chunk-JTO6UPTJ.js → chunk-C6FQ4YST.js} +1 -1
- package/dist/{chunk-ALTTZKDU.js → chunk-CV56MBIZ.js} +7 -6
- package/dist/{chunk-3YOXBN7V.js → chunk-CXZAKS7S.js} +1 -1
- package/dist/{chunk-CRKODLLY.js → chunk-D3QGBMO3.js} +1 -1
- package/dist/{chunk-7JU6DPO7.js → chunk-DJILSCSU.js} +2 -2
- package/dist/{chunk-HG5EUDF3.js → chunk-DS5BR4K6.js} +1 -1
- package/dist/{chunk-ZBST77LF.js → chunk-DX45XQ36.js} +2 -2
- package/dist/{chunk-ZBYZCM6Y.js → chunk-ESRKYHWE.js} +2 -2
- package/dist/{chunk-KXSZ43Z6.js → chunk-FHPSVTS5.js} +5 -5
- package/dist/{chunk-VYRJAPZ6.js → chunk-FJZSJZCT.js} +1 -1
- package/dist/{chunk-LJ4TUZJV.js → chunk-G5BYSS6C.js} +4 -4
- package/dist/{chunk-35S7VB26.js → chunk-GUI2NYCX.js} +4 -4
- package/dist/{chunk-LFEJVQWI.js → chunk-GUM3WG4B.js} +3 -3
- package/dist/{chunk-IO3OLTED.js → chunk-I4RNLK5G.js} +3 -3
- package/dist/{chunk-X772USE7.js → chunk-IEAABGST.js} +5 -4
- package/dist/{chunk-47RUEZZA.js → chunk-J4TQYGHU.js} +4 -4
- package/dist/{chunk-ID46TTYS.js → chunk-JNCD2ZG3.js} +2 -2
- package/dist/{chunk-KERGWHCK.js → chunk-L77YWBMK.js} +6 -6
- package/dist/{chunk-YNWEE2WC.js → chunk-LGWTITVK.js} +1 -1
- package/dist/{chunk-HNUK557P.js → chunk-LNSCANYY.js} +1 -1
- package/dist/{chunk-LJFB5ZJ4.js → chunk-N3C3D4AV.js} +3 -3
- package/dist/{chunk-7WCB2BC4.js → chunk-NEWGYFKC.js} +6 -6
- package/dist/{chunk-DPP3ZCEE.js → chunk-O6T3CLWT.js} +3 -3
- package/dist/{chunk-IQQQ2LGB.js → chunk-OIW3JAWH.js} +3 -3
- package/dist/{chunk-AZV3DQQU.js → chunk-OXKVR2FP.js} +1 -1
- package/dist/{chunk-RVC7OSC7.js → chunk-OXTRF7CP.js} +1 -1
- package/dist/{chunk-ESS7CW3I.js → chunk-QJJJENT2.js} +4 -4
- package/dist/{chunk-5WC7TXSS.js → chunk-RL2KE6HG.js} +8 -8
- package/dist/{chunk-YAAJ3VZA.js → chunk-RRMRP62I.js} +3 -3
- package/dist/{chunk-5WIVX2NN.js → chunk-S2DLTWFG.js} +3 -3
- package/dist/{chunk-DLBUDQEE.js → chunk-TKFDPYXS.js} +3 -3
- package/dist/{chunk-QNEWV4JV.js → chunk-TO77OYLM.js} +1 -1
- package/dist/{chunk-DF7A5AWF.js → chunk-UB7VUSSX.js} +2 -2
- package/dist/{chunk-B2HMISVL.js → chunk-UOUUTDWF.js} +84 -44
- package/dist/{chunk-NK3I2QQA.js → chunk-UYTPCZ4M.js} +3 -3
- package/dist/{chunk-SFUJLUBM.js → chunk-VHLRXIMC.js} +1 -1
- package/dist/{chunk-FIMSM5SW.js → chunk-WLOVGZ7R.js} +2 -2
- package/dist/{chunk-BB4W35D6.js → chunk-WUS2LFTM.js} +7 -7
- package/dist/{chunk-WPGSQRMW.js → chunk-YAMNJXCD.js} +2 -2
- package/dist/{chunk-SEVGKJ7K.js → chunk-Z5HLACZT.js} +2 -2
- package/dist/{chunk-QTOLNRET.js → chunk-ZVU6WMMU.js} +10 -0
- package/dist/{codex-app-cards-switch-ZL6OHUXQ.js → codex-app-cards-switch-3FAIEEB2.js} +8 -8
- package/dist/{codex-desktop-launch-LQF5CPKU.js → codex-desktop-launch-LHMHRVGF.js} +1 -1
- package/dist/{codex-session-launch-5WBL5YHX.js → codex-session-launch-MXUBSTL2.js} +13 -13
- package/dist/{global-upgrade-HDDPHNGX.js → global-upgrade-ZDENZA42.js} +9 -9
- package/dist/{identity-RNZLFMKW.js → identity-YZRDJOGY.js} +4 -4
- package/dist/{live-capabilities-Y2Q5QBVK.js → live-capabilities-KSQDWVT6.js} +5 -5
- package/dist/{paths-WILX6YI3.js → paths-DYZZBVYI.js} +3 -3
- package/dist/{reapply-KF7ZZSA2.js → reapply-L3AI5KJH.js} +22 -22
- package/dist/src/index.js +21 -21
- package/dist/{upgrade-lock-7Q4VWMDA.js → upgrade-lock-X7F2OFYB.js} +4 -4
- package/dist/{usage-MSILPJVQ.js → usage-TKZALYXF.js} +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6T3CLWT.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-I4RNLK5G.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-2TEX3APZ.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-CV56MBIZ.js";
|
|
32
32
|
import {
|
|
33
33
|
detectClaudeVersion
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UB7VUSSX.js";
|
|
35
35
|
import {
|
|
36
36
|
addCompatibleHooks,
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleInstructionsFile,
|
|
39
39
|
hasCompatibleHooks
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5TMGEQAC.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-IEAABGST.js";
|
|
53
53
|
import {
|
|
54
54
|
CLAUDE_HOOK_BINARY,
|
|
55
55
|
CLAUDE_HOOK_EVENTS,
|
|
@@ -72,6 +72,7 @@ import {
|
|
|
72
72
|
clineRules,
|
|
73
73
|
codexAgentsMd,
|
|
74
74
|
codexConfigToml,
|
|
75
|
+
codexHookCommand,
|
|
75
76
|
codexHookPositions,
|
|
76
77
|
codexHooksJson,
|
|
77
78
|
codexMcpStartsCommand,
|
|
@@ -94,15 +95,16 @@ import {
|
|
|
94
95
|
renderAgentInstructions,
|
|
95
96
|
supportedClaudeEvents,
|
|
96
97
|
vscodePluginMcp
|
|
97
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-UOUUTDWF.js";
|
|
98
99
|
import {
|
|
99
100
|
formatVersion,
|
|
101
|
+
hookCommandsUseBareNames,
|
|
100
102
|
readJsonSafe,
|
|
101
103
|
resolveGlobalBinDir,
|
|
102
104
|
resolveGlobalBinary,
|
|
103
105
|
writeFileAtomic,
|
|
104
106
|
writeJsonAtomic
|
|
105
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-2BJZFA7X.js";
|
|
106
108
|
import {
|
|
107
109
|
HOOK_COMPATIBLE_PROFILES,
|
|
108
110
|
isCompatibleAgentType,
|
|
@@ -184,7 +186,7 @@ var reapplyClaudeSettings = (apiKey, paths = {}) => {
|
|
|
184
186
|
if (!settingsWritable) throw new Error("settings.json could not be parsed");
|
|
185
187
|
const s = settings;
|
|
186
188
|
addPusharyToolPermissions(s);
|
|
187
|
-
const binary = (paths.resolveBinary ?? resolveGlobalBinary)(CLAUDE_HOOK_BINARY);
|
|
189
|
+
const binary = hookCommandsUseBareNames(paths.platform ?? process.platform) ? void 0 : (paths.resolveBinary ?? resolveGlobalBinary)(CLAUDE_HOOK_BINARY);
|
|
188
190
|
addPusharyHooks(s, binary ? dirname(binary) : void 0, (paths.detectVersion ?? detectClaudeVersion)());
|
|
189
191
|
writeJson(settingsPath, s);
|
|
190
192
|
hooks = true;
|
|
@@ -278,7 +280,7 @@ var reapplyCodexSettings = (apiKey, paths = {}, nativeOwnership = "preserve") =>
|
|
|
278
280
|
return { configured: true, reapplied: false, hooks: false, mcp: false, failed: true };
|
|
279
281
|
}
|
|
280
282
|
}
|
|
281
|
-
const command =
|
|
283
|
+
const command = codexHookCommand((paths.resolveBinary ?? resolveGlobalBinary)(CODEX_HOOK_BINARY));
|
|
282
284
|
let hooks = false;
|
|
283
285
|
let mcp = false;
|
|
284
286
|
let failed = hooksConfig === null || config === null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5TMGEQAC.js";
|
|
4
4
|
import {
|
|
5
5
|
hookOwnerOf,
|
|
6
6
|
hookOwnerOfCommands,
|
|
7
7
|
liveBridgeProbe,
|
|
8
8
|
resolveBridgeStub
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IEAABGST.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_CHOICES
|
|
12
12
|
} from "./chunk-JXE4UQFJ.js";
|
|
@@ -17,11 +17,12 @@ import {
|
|
|
17
17
|
geminiSettings,
|
|
18
18
|
guardedArgv,
|
|
19
19
|
pusharyDir,
|
|
20
|
-
vscodePluginDir
|
|
21
|
-
|
|
20
|
+
vscodePluginDir,
|
|
21
|
+
windowsNodeLauncherFor
|
|
22
|
+
} from "./chunk-UOUUTDWF.js";
|
|
22
23
|
import {
|
|
23
24
|
readJsonSafe
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2BJZFA7X.js";
|
|
25
26
|
import {
|
|
26
27
|
HOOK_BUDGETS,
|
|
27
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -411,7 +412,7 @@ import { homedir } from "os";
|
|
|
411
412
|
import { join } from "path";
|
|
412
413
|
var OPENCODE_HOOK_BINARY = "pushary-opencode-hook";
|
|
413
414
|
var OPENCODE_HOOK_ARGS = ["--source", "opencode"];
|
|
414
|
-
var openCodeHookArgv = (resolvedBinary) => guardedArgv({ kind: "binary", path: resolvedBinary ?? OPENCODE_HOOK_BINARY, runtime: "node" }, OPENCODE_HOOK_ARGS);
|
|
415
|
+
var openCodeHookArgv = (resolvedBinary, platform = process.platform) => guardedArgv({ kind: "binary", path: resolvedBinary ?? OPENCODE_HOOK_BINARY, runtime: "node" }, OPENCODE_HOOK_ARGS, platform, windowsNodeLauncherFor(platform));
|
|
415
416
|
var openCodeConfigDirFrom = (home, env = process.env) => env.OPENCODE_CONFIG_DIR?.trim() || join(env.XDG_CONFIG_HOME?.trim() || join(home, ".config"), "opencode");
|
|
416
417
|
var openCodeConfigDir = () => openCodeConfigDirFrom(homedir());
|
|
417
418
|
var OPENCODE_PLUGIN_PATH = `${OPENCODE_PLUGIN_DIR}/${OPENCODE_PLUGIN_FILE}`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UOUUTDWF.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
writeJsonAtomic
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2BJZFA7X.js";
|
|
9
9
|
|
|
10
10
|
// src/upgrade-lock.ts
|
|
11
11
|
import { fork } from "child_process";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
reportClientError,
|
|
9
9
|
sendNotification,
|
|
10
10
|
waitForAnswer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OIW3JAWH.js";
|
|
12
12
|
import {
|
|
13
13
|
withRetry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Z5HLACZT.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAMNJXCD.js";
|
|
18
18
|
import {
|
|
19
19
|
reportedInstallSource
|
|
20
20
|
} from "./chunk-NPBPH7KI.js";
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
25
25
|
canonicalJson,
|
|
26
26
|
claudeConfigDir
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UOUUTDWF.js";
|
|
28
28
|
import {
|
|
29
29
|
compareVersion,
|
|
30
30
|
parseVersion,
|
|
31
31
|
writeFileAtomic,
|
|
32
32
|
writeJsonAtomicDurable
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2BJZFA7X.js";
|
|
34
34
|
import {
|
|
35
35
|
getApiKey,
|
|
36
36
|
getBaseUrl
|
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AXE2ZOKS.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C6FQ4YST.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-FO3MDD26.js";
|
|
12
12
|
import {
|
|
13
13
|
readKeySource
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CXZAKS7S.js";
|
|
15
15
|
import {
|
|
16
16
|
absoluteUrl,
|
|
17
17
|
checkApiKey,
|
|
18
18
|
describeKeyCheck,
|
|
19
19
|
keyCheckFromResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LNSCANYY.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
23
|
} from "./chunk-ONUAAXAW.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMacAppAgentKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J4TQYGHU.js";
|
|
4
4
|
import {
|
|
5
5
|
API_KEYS_PATH
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C6FQ4YST.js";
|
|
7
7
|
import {
|
|
8
8
|
findExportedKeyLines,
|
|
9
9
|
isAdoptedMacAppKey,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
readConfigFileKey,
|
|
14
14
|
readKeySource,
|
|
15
15
|
readMacAppKeyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CXZAKS7S.js";
|
|
17
17
|
import {
|
|
18
18
|
absoluteUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LNSCANYY.js";
|
|
20
20
|
import {
|
|
21
21
|
isValidApiKey
|
|
22
22
|
} from "./chunk-WG67W43Y.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DJILSCSU.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-XHKBHWLX.js";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
isWaitForAnswerResponse,
|
|
28
28
|
withdrawQuestion,
|
|
29
29
|
writeDegraded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OIW3JAWH.js";
|
|
31
31
|
import {
|
|
32
32
|
callMcpTool,
|
|
33
33
|
isRetryable
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Z5HLACZT.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
37
37
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
hermesAppWiringRecord,
|
|
6
6
|
hermesConfigReceipt,
|
|
7
7
|
hermesSetupReceipt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UOUUTDWF.js";
|
|
9
9
|
import {
|
|
10
10
|
readJsonSafe,
|
|
11
11
|
resolvePathBinary,
|
|
12
12
|
writeJsonAtomic
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2BJZFA7X.js";
|
|
14
14
|
import {
|
|
15
15
|
isNewerVersion,
|
|
16
16
|
isReleaseVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZVU6WMMU.js";
|
|
18
18
|
import {
|
|
19
19
|
isRecord
|
|
20
20
|
} from "./chunk-WG67W43Y.js";
|
|
@@ -3,16 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-JXE4UQFJ.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4S5XVFDV.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
10
10
|
HOOK_SHELL,
|
|
11
11
|
hasCodexHooks,
|
|
12
12
|
holdBudgetOf,
|
|
13
|
+
hookBinaryNameOf,
|
|
13
14
|
isProtectedByScope,
|
|
14
15
|
registerHookEntry
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UOUUTDWF.js";
|
|
16
17
|
import {
|
|
17
18
|
CURSOR_GATE_EVENTS,
|
|
18
19
|
HOOK_BUDGETS,
|
|
@@ -204,7 +205,7 @@ var pusharyHookExecutable = (command) => {
|
|
|
204
205
|
for (const raw of tokens.reverse()) {
|
|
205
206
|
const unquoted = raw[0] === '"' && raw.at(-1) === '"' || raw[0] === "'" && raw.at(-1) === "'" ? raw.slice(1, -1) : raw;
|
|
206
207
|
const token = command.startsWith(`${HOOK_SHELL} `) && raw[0] === '"' ? unquoted.replace(/\\(["\\$`])/g, "$1") : unquoted;
|
|
207
|
-
const name = token.split(/[/\\]/).pop()
|
|
208
|
+
const name = hookBinaryNameOf(token.split(/[/\\]/).pop() ?? "");
|
|
208
209
|
if (name === HOOK_LOCATOR_BINARY || EXACT_HOOK_BINARY.test(name)) return token;
|
|
209
210
|
}
|
|
210
211
|
return null;
|
|
@@ -321,7 +322,7 @@ var commandsIn = (value) => {
|
|
|
321
322
|
var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
322
323
|
var hasPaidPusharyCommand = (value) => commandsIn(value).some((command) => {
|
|
323
324
|
const executable = pusharyHookExecutable(command);
|
|
324
|
-
const name = executable
|
|
325
|
+
const name = executable === null ? void 0 : hookBinaryNameOf(executable.split(/[/\\]/).pop() ?? "");
|
|
325
326
|
return executable !== null && !isBridgeLocator(executable) && name !== BELL_HOOK_BINARY;
|
|
326
327
|
});
|
|
327
328
|
var hasAppCommand = (value) => commandsIn(value).some((command) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CV56MBIZ.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CXZAKS7S.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UOUUTDWF.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2BJZFA7X.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YAMNJXCD.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
6
|
} from "./chunk-ONUAAXAW.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-PPY5N2E6.js";
|
|
10
10
|
import {
|
|
11
11
|
getPackageVersion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZVU6WMMU.js";
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ESRKYHWE.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UYTPCZ4M.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,19 +18,19 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S2DLTWFG.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UOUUTDWF.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-2BJZFA7X.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-KZERVKTD.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
isSameMajorVersion,
|
|
46
46
|
ownPackageRoot,
|
|
47
47
|
packageVersionAt
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ZVU6WMMU.js";
|
|
49
49
|
|
|
50
50
|
// src/global-upgrade.ts
|
|
51
51
|
import { existsSync } from "fs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5TMGEQAC.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IEAABGST.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UOUUTDWF.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-WG67W43Y.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranscript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WUS2LFTM.js";
|
|
4
4
|
import {
|
|
5
5
|
namedEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5TMGEQAC.js";
|
|
7
7
|
import {
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe,
|
|
10
10
|
pusharyHookExecutable,
|
|
11
11
|
resolveBridgeStub
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IEAABGST.js";
|
|
13
13
|
import {
|
|
14
14
|
writeDegraded
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OIW3JAWH.js";
|
|
16
16
|
import {
|
|
17
17
|
cursorUserHooks
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UOUUTDWF.js";
|
|
19
19
|
import {
|
|
20
20
|
atLeast,
|
|
21
21
|
parseVersion
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2BJZFA7X.js";
|
|
23
23
|
import {
|
|
24
24
|
CURSOR_GATE_COVERAGE,
|
|
25
25
|
CURSOR_GATE_SCRIPT,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UOUUTDWF.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2BJZFA7X.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZVU6WMMU.js";
|
|
17
17
|
|
|
18
18
|
// src/codex-app-server.ts
|
|
19
19
|
import { existsSync, realpathSync } from "fs";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z5HLACZT.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JNCD2ZG3.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UOUUTDWF.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CV56MBIZ.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeClaudeInstallPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TO77OYLM.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5TMGEQAC.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeConfigDir,
|
|
12
12
|
clineDataDirectory,
|
|
13
13
|
codexHomeFrom
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UOUUTDWF.js";
|
|
15
15
|
import {
|
|
16
16
|
HOOK_COMPATIBLE_PROFILES
|
|
17
17
|
} from "./chunk-WG67W43Y.js";
|