pushary 1.9.130 → 1.9.132
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 +6 -0
- package/dist/{api-MMU454AE.js → api-7CZR7B53.js} +7 -7
- package/dist/bin/pushary-bell-hook.js +16 -16
- package/dist/bin/pushary-bell.js +3 -3
- package/dist/bin/pushary-claude.js +16 -16
- package/dist/bin/pushary-clean.js +24 -24
- package/dist/bin/pushary-codex-bridge.js +11 -11
- package/dist/bin/pushary-codex-hook.js +22 -22
- package/dist/bin/pushary-codex-session.js +6 -6
- package/dist/bin/pushary-codex.js +8 -8
- package/dist/bin/pushary-connect.js +17 -17
- package/dist/bin/pushary-daemon.js +31 -31
- package/dist/bin/pushary-disconnect.js +17 -17
- package/dist/bin/pushary-display-hook.js +4 -2
- package/dist/bin/pushary-doctor.js +28 -28
- package/dist/bin/pushary-elicitation-hook.js +17 -17
- package/dist/bin/pushary-gemini-bridge.js +6 -6
- package/dist/bin/pushary-gemini-hook.js +20 -20
- package/dist/bin/pushary-hook.js +21 -21
- package/dist/bin/pushary-login.js +11 -11
- package/dist/bin/pushary-logout.js +15 -15
- package/dist/bin/pushary-mcp.js +8 -8
- package/dist/bin/pushary-mode.js +7 -7
- package/dist/bin/pushary-notification-hook.js +16 -16
- 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 +16 -16
- package/dist/bin/pushary-prompt-hook.js +16 -16
- package/dist/bin/pushary-session-end-hook.js +16 -16
- package/dist/bin/pushary-session-start-hook.js +25 -25
- package/dist/bin/pushary-setup.js +37 -37
- package/dist/bin/pushary-status.js +20 -20
- package/dist/bin/pushary-stop-hook.js +16 -16
- package/dist/bin/pushary-stopfailure-hook.js +16 -16
- package/dist/bin/pushary-suggestions.js +7 -7
- package/dist/bin/pushary-transcript-register.js +9 -9
- package/dist/bin/pushary-transcripts.js +16 -16
- package/dist/bin/pushary-upgrade.js +30 -30
- package/dist/bin/pushary-wait.js +7 -7
- package/dist/bin/pushary.js +4 -4
- package/dist/{chunk-ZABDTVGQ.js → chunk-237FYIVC.js} +2 -2
- package/dist/{chunk-QQEU4LN2.js → chunk-2KN53MPE.js} +2 -2
- package/dist/{chunk-IVBRL2TT.js → chunk-3PGANQ4K.js} +5 -5
- package/dist/{chunk-2VNYP35D.js → chunk-3TKTZOKG.js} +1 -1
- package/dist/{chunk-ND35WKWA.js → chunk-4EGRD5RS.js} +9 -9
- package/dist/{chunk-4VVYZJLG.js → chunk-6JY44IZI.js} +7 -7
- package/dist/{chunk-CPSGGBEN.js → chunk-7MIT5C7B.js} +2 -2
- package/dist/{chunk-HMHZ4QF3.js → chunk-A44MRVWG.js} +27 -11
- package/dist/{chunk-3SDMCBT7.js → chunk-BTDEBPPR.js} +4 -4
- package/dist/{chunk-KBAVAEMC.js → chunk-C4UH6YPD.js} +2 -2
- package/dist/{chunk-6NG7NVTL.js → chunk-D2KJKAYM.js} +3 -3
- package/dist/{chunk-ZCMVIRD3.js → chunk-DS7XMYUB.js} +1 -1
- package/dist/{chunk-NUOZ46B2.js → chunk-EA5EASYT.js} +1 -1
- package/dist/{chunk-HFIIF32E.js → chunk-EPPH5RMJ.js} +3 -3
- package/dist/{chunk-NFK2RHD3.js → chunk-FP4WRSWE.js} +2 -2
- package/dist/{chunk-AAMWERYZ.js → chunk-FT5MTCKU.js} +1 -1
- package/dist/{chunk-XQHXVBC2.js → chunk-FTH4TSJ2.js} +2 -2
- package/dist/{chunk-7COOVVQJ.js → chunk-GKZMBU6T.js} +1 -1
- package/dist/{chunk-DIUFYQ7F.js → chunk-HOPJEPL4.js} +3 -3
- package/dist/{chunk-W3WJUR4P.js → chunk-HW63OEVM.js} +1 -1
- package/dist/{chunk-QBWCBTDH.js → chunk-IZJDVOJV.js} +4 -4
- package/dist/{chunk-66HILP6Q.js → chunk-J4UNR655.js} +3 -3
- package/dist/{chunk-BZOTJ2CO.js → chunk-J6WO5ZR5.js} +2 -2
- package/dist/{chunk-G3IEREIQ.js → chunk-KBOANW7J.js} +3 -3
- package/dist/{chunk-PBXXI75U.js → chunk-KIWFCW7M.js} +7 -5
- package/dist/{chunk-B3X4SME2.js → chunk-L5RSLIBQ.js} +3 -3
- package/dist/{chunk-PEYTSAGK.js → chunk-LBMCQWRX.js} +1 -1
- package/dist/{chunk-QIHYQHCC.js → chunk-LR3PIGRS.js} +1 -1
- package/dist/{chunk-C2TRPHGA.js → chunk-MF5ZQX7C.js} +3 -3
- package/dist/{chunk-SZSIZCAU.js → chunk-MJVDFNP2.js} +1 -1
- package/dist/{chunk-TJ2R3V5A.js → chunk-MRHGK3Q3.js} +5 -5
- package/dist/{chunk-JGUKBFGP.js → chunk-NJH6EGZN.js} +3 -3
- package/dist/{chunk-56DO6XGT.js → chunk-NSBWFX7H.js} +3 -3
- package/dist/{chunk-RQMUNSKU.js → chunk-PFHRW3LR.js} +1 -1
- package/dist/{chunk-CRVPT3HO.js → chunk-PG23ENSN.js} +1 -1
- package/dist/{chunk-47IBUIDJ.js → chunk-PPUIIP3O.js} +9 -9
- package/dist/{chunk-YC6R5CXH.js → chunk-RLQDVWZ4.js} +2 -2
- package/dist/{chunk-7A745YEM.js → chunk-RVGYXUOC.js} +2 -2
- package/dist/{chunk-3R2GILXH.js → chunk-RZBV5KTF.js} +3 -3
- package/dist/{chunk-OUN5T5VX.js → chunk-S4HS6VTI.js} +1 -1
- package/dist/{chunk-BBYFAY3S.js → chunk-U5AZKJ5O.js} +6 -5
- package/dist/{chunk-QEEXR6CD.js → chunk-UJZ5YHSR.js} +1 -1
- package/dist/{chunk-Q4WPTLEX.js → chunk-UZUDMZES.js} +2 -2
- package/dist/{chunk-5AVCVA3Z.js → chunk-V2T5ZDMP.js} +1 -1
- package/dist/{chunk-GVSIVBVT.js → chunk-VAE5JBR5.js} +1 -0
- package/dist/{chunk-ANPQ6AW6.js → chunk-VO55SJSD.js} +4 -4
- package/dist/{chunk-SWWM3LRZ.js → chunk-W4FJR57E.js} +1 -1
- package/dist/{chunk-WDA26JR4.js → chunk-X23GSBOH.js} +2 -2
- package/dist/{chunk-FZWWCDYA.js → chunk-XWUPOTJV.js} +4 -4
- package/dist/{chunk-XGLXVYOH.js → chunk-YNV5GURD.js} +3 -3
- package/dist/{chunk-HE32H3U7.js → chunk-ZJPBTJED.js} +2 -2
- package/dist/{chunk-DALJA6SH.js → chunk-ZXJTTV7I.js} +1 -1
- package/dist/{codex-app-cards-switch-MZXLPTEJ.js → codex-app-cards-switch-WDQBUF7K.js} +6 -6
- package/dist/{codex-desktop-launch-Z7XUBFPH.js → codex-desktop-launch-EQ4VH6QV.js} +1 -1
- package/dist/{codex-session-launch-L3KAQCLT.js → codex-session-launch-YGH5UUAH.js} +11 -11
- package/dist/{global-upgrade-WGWQLBOM.js → global-upgrade-U4V7KWH6.js} +7 -7
- package/dist/{identity-O6BBNMHO.js → identity-DCRNA3J3.js} +3 -3
- package/dist/{live-capabilities-HQC6V3BG.js → live-capabilities-H7J5ANZ3.js} +3 -3
- package/dist/{paths-ABTFHZQF.js → paths-3DUQGU4V.js} +2 -2
- package/dist/{reapply-GHISAECD.js → reapply-LNVBPUWL.js} +19 -19
- package/dist/src/index.js +21 -21
- package/dist/{upgrade-lock-LUZJZC4C.js → upgrade-lock-3T7JLBHT.js} +3 -3
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-237FYIVC.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W4FJR57E.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A44MRVWG.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|
|
@@ -531,7 +531,7 @@ var loadedOnce = (load) => {
|
|
|
531
531
|
};
|
|
532
532
|
|
|
533
533
|
// src/codex-desktop-proxy.ts
|
|
534
|
-
var loadThePhone = () => import("./api-
|
|
534
|
+
var loadThePhone = () => import("./api-7CZR7B53.js");
|
|
535
535
|
var loadTheCardRouting = () => import("./codex-card-routing-X2HUY2AV.js");
|
|
536
536
|
var theFirstCardLoadsAgain = () => {
|
|
537
537
|
};
|
|
@@ -1085,7 +1085,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1085
1085
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1086
1086
|
}
|
|
1087
1087
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1088
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1088
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-WDQBUF7K.js");
|
|
1089
1089
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1090
1090
|
}
|
|
1091
1091
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NSBWFX7H.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
6
|
} from "./chunk-CVBSETPW.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W4FJR57E.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5RSLIBQ.js";
|
|
4
4
|
import {
|
|
5
5
|
canChangeApprovalSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GKZMBU6T.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3TKTZOKG.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3TKTZOKG.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PFHRW3LR.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
13
|
} from "./chunk-CVBSETPW.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-W4FJR57E.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-A44MRVWG.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2KN53MPE.js";
|
|
10
10
|
import {
|
|
11
11
|
fetchAsCredential
|
|
12
12
|
} from "./chunk-42PVKPHM.js";
|
|
13
13
|
import {
|
|
14
14
|
installNetworkDefaults,
|
|
15
15
|
isNetworkFailure
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V2T5ZDMP.js";
|
|
17
17
|
import {
|
|
18
18
|
clientReportClaims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W4FJR57E.js";
|
|
20
20
|
import {
|
|
21
21
|
getApiKey,
|
|
22
22
|
getBaseUrl
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FP4WRSWE.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-KBOANW7J.js";
|
|
19
19
|
import {
|
|
20
20
|
writeFileAtomic
|
|
21
21
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-H6CL3T2S.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DS7XMYUB.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
10
|
} from "./chunk-CVBSETPW.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W4FJR57E.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A44MRVWG.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
19
|
} from "./chunk-T6HX6OTY.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W4FJR57E.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
npmExitedOnPermissionDenied
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A44MRVWG.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -140,11 +140,13 @@ var forkFinishWithUpgradeLock = (request) => new Promise((resolve, reject) => {
|
|
|
140
140
|
const path = canonicalLockPath(request.lockPath ?? autoUpdateLock());
|
|
141
141
|
const server = heldLocks.get(path);
|
|
142
142
|
if (!server) return reject(new Error("Cannot finish an upgrade without its lock"));
|
|
143
|
-
const
|
|
143
|
+
const options = {
|
|
144
144
|
execArgv: [],
|
|
145
145
|
stdio: request.stdio ?? ["inherit", "inherit", "inherit", "ipc"],
|
|
146
|
-
env: { ...process.env, ...request.env, [INHERITED_LOCK_ENV]: path }
|
|
147
|
-
|
|
146
|
+
env: { ...process.env, ...request.env, [INHERITED_LOCK_ENV]: path },
|
|
147
|
+
windowsHide: true
|
|
148
|
+
};
|
|
149
|
+
const child = fork(request.entry, [...request.args], options);
|
|
148
150
|
const timer = setTimeout(() => child.kill("SIGKILL"), FINISH_TIMEOUT_MS);
|
|
149
151
|
child.on("message", (message) => {
|
|
150
152
|
if (message === LOCK_READY) child.send(LOCK_HANDLE, server, (error) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GKZMBU6T.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2KN53MPE.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LR3PIGRS.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
13
|
} from "./chunk-T6HX6OTY.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NSBWFX7H.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeClaudeInstallPath
|
|
6
6
|
} from "./chunk-CYTPQDQY.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RZBV5KTF.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeConfigDir,
|
|
12
12
|
clineDataDirectory,
|
|
13
13
|
codexHomeFrom
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W4FJR57E.js";
|
|
15
15
|
import {
|
|
16
16
|
HOOK_COMPATIBLE_PROFILES
|
|
17
17
|
} from "./chunk-M65LPNIO.js";
|
|
@@ -39,17 +39,17 @@ import {
|
|
|
39
39
|
reportClientError,
|
|
40
40
|
sendNotification,
|
|
41
41
|
waitForAnswer
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-J4UNR655.js";
|
|
43
43
|
import {
|
|
44
44
|
isRetryable,
|
|
45
45
|
withRetry
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2KN53MPE.js";
|
|
47
47
|
import {
|
|
48
48
|
fetchAsCredential
|
|
49
49
|
} from "./chunk-42PVKPHM.js";
|
|
50
50
|
import {
|
|
51
51
|
getMachineId
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-DS7XMYUB.js";
|
|
53
53
|
import {
|
|
54
54
|
reportedInstallSource
|
|
55
55
|
} from "./chunk-BKH4LQJC.js";
|
|
@@ -59,11 +59,11 @@ import {
|
|
|
59
59
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
60
60
|
canonicalJson,
|
|
61
61
|
claudeConfigDir
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-W4FJR57E.js";
|
|
63
63
|
import {
|
|
64
64
|
compareVersion,
|
|
65
65
|
parseVersion
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-A44MRVWG.js";
|
|
67
67
|
import {
|
|
68
68
|
getApiKey,
|
|
69
69
|
getBaseUrl
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X23GSBOH.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KBOANW7J.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DS7XMYUB.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RZBV5KTF.js";
|
|
4
4
|
import {
|
|
5
5
|
hookOwnerOf,
|
|
6
6
|
hookOwnerOfCommands
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-237FYIVC.js";
|
|
8
8
|
import {
|
|
9
9
|
AGENT_CHOICES
|
|
10
10
|
} from "./chunk-XHC3UNOK.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resolveBridgeStub,
|
|
20
20
|
vscodePluginDir,
|
|
21
21
|
windowsNodeLauncherFor
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W4FJR57E.js";
|
|
23
23
|
import {
|
|
24
24
|
readJsonSafe
|
|
25
25
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RLQDVWZ4.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-7MIT5C7B.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-IZJDVOJV.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-NSBWFX7H.js";
|
|
32
32
|
import {
|
|
33
33
|
detectClaudeVersion
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UJZ5YHSR.js";
|
|
35
35
|
import {
|
|
36
36
|
addCompatibleHooks,
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleInstructionsFile,
|
|
39
39
|
hasCompatibleHooks
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RZBV5KTF.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-237FYIVC.js";
|
|
53
53
|
import {
|
|
54
54
|
KEY_FILE_MODE
|
|
55
55
|
} from "./chunk-CVBSETPW.js";
|
|
@@ -99,13 +99,13 @@ import {
|
|
|
99
99
|
renderAgentInstructions,
|
|
100
100
|
supportedClaudeEvents,
|
|
101
101
|
vscodePluginMcp
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-W4FJR57E.js";
|
|
103
103
|
import {
|
|
104
104
|
formatVersion,
|
|
105
105
|
hookCommandsUseBareNames,
|
|
106
106
|
resolveGlobalBinDir,
|
|
107
107
|
resolveGlobalBinary
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-A44MRVWG.js";
|
|
109
109
|
import {
|
|
110
110
|
readJsonSafe,
|
|
111
111
|
writeFileAtomic,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W4FJR57E.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A44MRVWG.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-WIIMW5YO.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-237FYIVC.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MRHGK3Q3.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
10
|
} from "./chunk-JYCAAQUW.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W4FJR57E.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ownedOnlyByThisUser,
|
|
2
3
|
readOwnerOnlyJson,
|
|
3
4
|
savedTranscriptReadPositions
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VAE5JBR5.js";
|
|
5
6
|
import {
|
|
6
7
|
SESSION_HISTORY_RETENTION_DAYS
|
|
7
8
|
} from "./chunk-G66WIAST.js";
|
|
8
9
|
import {
|
|
9
10
|
ensureDaemonRunning
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KBOANW7J.js";
|
|
11
12
|
import {
|
|
12
13
|
hookOwnerOf
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-237FYIVC.js";
|
|
14
15
|
import {
|
|
15
16
|
hookMeaning
|
|
16
17
|
} from "./chunk-JYCAAQUW.js";
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
claudeConfigDir,
|
|
43
44
|
codexHome,
|
|
44
45
|
pusharyDir
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-W4FJR57E.js";
|
|
46
47
|
import {
|
|
47
48
|
getApiKey,
|
|
48
49
|
getBaseUrl
|
|
@@ -238,7 +239,7 @@ var readState = (sessionId, runtime) => {
|
|
|
238
239
|
try {
|
|
239
240
|
const path = fileFor(sessionId, runtime.directory);
|
|
240
241
|
const info = lstatSync(path);
|
|
241
|
-
if (!info.isFile() || info.nlink !== 1 || info.size > MAX_TAIL || (info
|
|
242
|
+
if (!info.isFile() || info.nlink !== 1 || info.size > MAX_TAIL || !ownedOnlyByThisUser(info)) return null;
|
|
242
243
|
const envelope = external_exports.object({ content: external_exports.string() }).parse(JSON.parse(readFileSync(path, "utf8")));
|
|
243
244
|
const plain = decryptRecord(envelope.content, runtime.sessionKey);
|
|
244
245
|
if (!plain) return null;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W4FJR57E.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -172,7 +172,7 @@ var updateAutoUpdateState = (statePath, patch) => {
|
|
|
172
172
|
};
|
|
173
173
|
var ignoreSpawnFailure = () => void 0;
|
|
174
174
|
var spawnDetached = (command, args, cwd) => {
|
|
175
|
-
const child = spawn(command, [...args], { cwd, detached: true, stdio: "ignore" });
|
|
175
|
+
const child = spawn(command, [...args], { cwd, detached: true, stdio: "ignore", windowsHide: true });
|
|
176
176
|
child.on("error", ignoreSpawnFailure);
|
|
177
177
|
child.unref();
|
|
178
178
|
};
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZXJTTV7I.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-H6CL3T2S.js";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
isWaitForAnswerResponse,
|
|
28
28
|
withdrawQuestion,
|
|
29
29
|
writeDegraded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-J4UNR655.js";
|
|
31
31
|
import {
|
|
32
32
|
callMcpTool,
|
|
33
33
|
isRetryable
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2KN53MPE.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
37
37
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -347,7 +347,7 @@ var JsonRpcClient = class {
|
|
|
347
347
|
this.bridgeOptions = bridgeOptions;
|
|
348
348
|
this.approvals = new CodexNativeApprovals({ ...bridgeOptions, shared: false, reply: (id, result) => this.write({ id, result }) });
|
|
349
349
|
this.threadId = bridgeOptions.resumeThreadId ?? null;
|
|
350
|
-
const options = { cwd, env: { ...process.env, PUSHARY_CODEX_BRIDGE: "1" }, stdio: ["pipe", "pipe", "pipe"] };
|
|
350
|
+
const options = { cwd, env: { ...process.env, PUSHARY_CODEX_BRIDGE: "1" }, stdio: ["pipe", "pipe", "pipe"], windowsHide: true };
|
|
351
351
|
this.child = process.platform === "win32" ? spawnClaude(command.command, command.args ?? [], options) : spawn(command.command, command.args ?? [], options);
|
|
352
352
|
this.child.stdout?.setEncoding("utf8");
|
|
353
353
|
this.child.stdout?.on("data", (chunk) => this.read(String(chunk)));
|