pushary 1.9.130 → 1.9.133
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 +11 -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 +8 -6
- 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-G3IEREIQ.js → chunk-3DCCMO23.js} +41 -9
- package/dist/{chunk-IVBRL2TT.js → chunk-3PGANQ4K.js} +5 -5
- package/dist/{chunk-2VNYP35D.js → chunk-3TKTZOKG.js} +1 -1
- 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-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-JGUKBFGP.js → chunk-FJST6ZXC.js} +3 -3
- 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-BBYFAY3S.js → chunk-I6MI4NWX.js} +6 -5
- package/dist/{chunk-QBWCBTDH.js → chunk-IZJDVOJV.js} +4 -4
- package/dist/{chunk-66HILP6Q.js → chunk-J4UNR655.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-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-BZOTJ2CO.js → chunk-PHKCTMAV.js} +2 -2
- package/dist/{chunk-47IBUIDJ.js → chunk-PPUIIP3O.js} +9 -9
- package/dist/{chunk-ND35WKWA.js → chunk-QVIDOVT6.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-3SDMCBT7.js → chunk-UDAXXR43.js} +4 -4
- 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-NFK2RHD3.js → chunk-VME5NXCM.js} +2 -2
- 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-D2SODMQN.js} +6 -6
- package/dist/{codex-desktop-launch-Z7XUBFPH.js → codex-desktop-launch-CFKIJZVB.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,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
inspectConfiguredManagedProviders
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PPUIIP3O.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookWiring,
|
|
7
7
|
readHookWiringSafely
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-6JY44IZI.js";
|
|
9
|
+
import "../chunk-FT5MTCKU.js";
|
|
10
|
+
import "../chunk-PG23ENSN.js";
|
|
11
11
|
import {
|
|
12
12
|
HEARTBEAT_INTERVAL_MS,
|
|
13
13
|
sendHeartbeat
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-FJST6ZXC.js";
|
|
15
|
+
import "../chunk-RLQDVWZ4.js";
|
|
16
16
|
import {
|
|
17
17
|
readSignedOutDiagnosis
|
|
18
18
|
} from "../chunk-2YS7YEUW.js";
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
HERMES_INSTALL_MARKER_FILE,
|
|
21
21
|
defaultHermesHome,
|
|
22
22
|
parseHermesInstallMarker
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-7MIT5C7B.js";
|
|
24
24
|
import {
|
|
25
25
|
writeHuman
|
|
26
26
|
} from "../chunk-QCGNGEGE.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-IZJDVOJV.js";
|
|
28
|
+
import "../chunk-3TKTZOKG.js";
|
|
29
|
+
import "../chunk-PFHRW3LR.js";
|
|
30
|
+
import "../chunk-NSBWFX7H.js";
|
|
31
31
|
import {
|
|
32
32
|
exitOnHelpFlag
|
|
33
33
|
} from "../chunk-4EQOCSJW.js";
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
launchableProviders,
|
|
40
40
|
resolveControlPolicy,
|
|
41
41
|
trackProviderInventory
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-X23GSBOH.js";
|
|
43
|
+
import "../chunk-UJZ5YHSR.js";
|
|
44
44
|
import {
|
|
45
45
|
SESSION_REAP_SILENCE_MS,
|
|
46
46
|
describeIdleWindow,
|
|
@@ -48,18 +48,18 @@ import {
|
|
|
48
48
|
listProcessProofs,
|
|
49
49
|
ownsLiveProcess,
|
|
50
50
|
silentSpawnedProofs
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-ZXJTTV7I.js";
|
|
52
52
|
import "../chunk-CYTPQDQY.js";
|
|
53
53
|
import {
|
|
54
54
|
readLocalAutoUpdateReport
|
|
55
|
-
} from "../chunk-
|
|
56
|
-
import "../chunk-
|
|
55
|
+
} from "../chunk-UZUDMZES.js";
|
|
56
|
+
import "../chunk-EPPH5RMJ.js";
|
|
57
57
|
import {
|
|
58
58
|
startRegisteredTranscripts
|
|
59
|
-
} from "../chunk-
|
|
60
|
-
import "../chunk-
|
|
59
|
+
} from "../chunk-I6MI4NWX.js";
|
|
60
|
+
import "../chunk-VAE5JBR5.js";
|
|
61
61
|
import "../chunk-G66WIAST.js";
|
|
62
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-RZBV5KTF.js";
|
|
63
63
|
import {
|
|
64
64
|
DAEMON_LEASE_RENEW_INTERVAL_MS,
|
|
65
65
|
DAEMON_YIELD_CHECK_INTERVAL_MS,
|
|
@@ -77,17 +77,17 @@ import {
|
|
|
77
77
|
requestDaemonHandoff,
|
|
78
78
|
stopDaemonRunning,
|
|
79
79
|
writeDaemonNeedsLogin
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-3DCCMO23.js";
|
|
81
81
|
import {
|
|
82
82
|
hookOwnerOf
|
|
83
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-237FYIVC.js";
|
|
84
84
|
import {
|
|
85
85
|
pendingCommandReceipts,
|
|
86
86
|
removePendingCommand
|
|
87
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-MRHGK3Q3.js";
|
|
88
88
|
import "../chunk-JYCAAQUW.js";
|
|
89
89
|
import "../chunk-XHC3UNOK.js";
|
|
90
|
-
import "../chunk-
|
|
90
|
+
import "../chunk-MJVDFNP2.js";
|
|
91
91
|
import "../chunk-YPY4YCIZ.js";
|
|
92
92
|
import "../chunk-KWICQAP7.js";
|
|
93
93
|
import "../chunk-XMSDA5WA.js";
|
|
@@ -96,15 +96,15 @@ import {
|
|
|
96
96
|
spawnClaude
|
|
97
97
|
} from "../chunk-H6CL3T2S.js";
|
|
98
98
|
import "../chunk-RGVQOOGD.js";
|
|
99
|
-
import "../chunk-
|
|
99
|
+
import "../chunk-J4UNR655.js";
|
|
100
100
|
import "../chunk-POFBE6ZY.js";
|
|
101
|
-
import "../chunk-
|
|
101
|
+
import "../chunk-2KN53MPE.js";
|
|
102
102
|
import "../chunk-42PVKPHM.js";
|
|
103
|
-
import "../chunk-
|
|
104
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-LR3PIGRS.js";
|
|
104
|
+
import "../chunk-V2T5ZDMP.js";
|
|
105
105
|
import {
|
|
106
106
|
getMachineId
|
|
107
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-DS7XMYUB.js";
|
|
108
108
|
import {
|
|
109
109
|
readControlMode
|
|
110
110
|
} from "../chunk-CVBSETPW.js";
|
|
@@ -112,10 +112,10 @@ import "../chunk-BKH4LQJC.js";
|
|
|
112
112
|
import {
|
|
113
113
|
claudeConfigDir,
|
|
114
114
|
codexHome
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-W4FJR57E.js";
|
|
116
116
|
import {
|
|
117
117
|
resolveBinary
|
|
118
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-A44MRVWG.js";
|
|
119
119
|
import {
|
|
120
120
|
getApiKey,
|
|
121
121
|
getBaseUrl
|
|
@@ -1915,7 +1915,7 @@ var runSpawnDaemon = async () => {
|
|
|
1915
1915
|
});
|
|
1916
1916
|
};
|
|
1917
1917
|
const kill = process.platform === "win32" ? (pid) => {
|
|
1918
|
-
execFileSync2("taskkill", windowsTaskkillArgs(pid), { stdio: "ignore" });
|
|
1918
|
+
execFileSync2("taskkill", windowsTaskkillArgs(pid), { stdio: "ignore", windowsHide: true });
|
|
1919
1919
|
} : process.kill.bind(process);
|
|
1920
1920
|
const stopDeps = {
|
|
1921
1921
|
kill: (pid, signal) => {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
declinedAgentsFile,
|
|
4
4
|
recordDeclinedAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-PG23ENSN.js";
|
|
6
6
|
import {
|
|
7
7
|
isCursorPluginLeftover,
|
|
8
8
|
isPusharyCursorPluginManifest,
|
|
9
9
|
releaseSoleGate
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-D2KJKAYM.js";
|
|
11
11
|
import {
|
|
12
12
|
planFxRemoval,
|
|
13
13
|
removeClineServer
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-IZJDVOJV.js";
|
|
15
|
+
import "../chunk-3TKTZOKG.js";
|
|
16
|
+
import "../chunk-PFHRW3LR.js";
|
|
17
17
|
import {
|
|
18
18
|
OPENCODE_PLUGIN_SIBLING,
|
|
19
19
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
openCodePluginDir,
|
|
26
26
|
openCodePluginFile,
|
|
27
27
|
removeOpenCodeMcpServer
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-NSBWFX7H.js";
|
|
29
29
|
import {
|
|
30
30
|
exitOnHelpFlag
|
|
31
31
|
} from "../chunk-4EQOCSJW.js";
|
|
@@ -38,25 +38,25 @@ import {
|
|
|
38
38
|
isEmptiedPusharyOwnedDocument,
|
|
39
39
|
removeCompatibleHooks,
|
|
40
40
|
removeCompatibleMcpServer
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-RZBV5KTF.js";
|
|
42
42
|
import {
|
|
43
43
|
removeGeminiSettings
|
|
44
|
-
} from "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
} from "../chunk-237FYIVC.js";
|
|
45
|
+
import "../chunk-MRHGK3Q3.js";
|
|
46
46
|
import "../chunk-JYCAAQUW.js";
|
|
47
47
|
import "../chunk-XHC3UNOK.js";
|
|
48
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-MJVDFNP2.js";
|
|
49
49
|
import {
|
|
50
50
|
parseFlags
|
|
51
51
|
} from "../chunk-YPY4YCIZ.js";
|
|
52
52
|
import "../chunk-RGVQOOGD.js";
|
|
53
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-J4UNR655.js";
|
|
54
54
|
import "../chunk-POFBE6ZY.js";
|
|
55
|
-
import "../chunk-
|
|
55
|
+
import "../chunk-2KN53MPE.js";
|
|
56
56
|
import "../chunk-42PVKPHM.js";
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-LR3PIGRS.js";
|
|
58
|
+
import "../chunk-V2T5ZDMP.js";
|
|
59
|
+
import "../chunk-DS7XMYUB.js";
|
|
60
60
|
import "../chunk-CVBSETPW.js";
|
|
61
61
|
import "../chunk-BKH4LQJC.js";
|
|
62
62
|
import {
|
|
@@ -88,8 +88,8 @@ import {
|
|
|
88
88
|
removePusharySettings,
|
|
89
89
|
removePusharyToolPermissions,
|
|
90
90
|
restoreClaudeMcpServer
|
|
91
|
-
} from "../chunk-
|
|
92
|
-
import "../chunk-
|
|
91
|
+
} from "../chunk-W4FJR57E.js";
|
|
92
|
+
import "../chunk-A44MRVWG.js";
|
|
93
93
|
import "../chunk-T6HX6OTY.js";
|
|
94
94
|
import {
|
|
95
95
|
UsageError
|
|
@@ -2884,7 +2884,7 @@ import { join as join3 } from "path";
|
|
|
2884
2884
|
init_fsx();
|
|
2885
2885
|
init_paths();
|
|
2886
2886
|
import { createHash as createHash10 } from "crypto";
|
|
2887
|
-
import { lstatSync as lstatSync5, readFileSync as readFileSync18, readdirSync as readdirSync2, realpathSync as realpathSync4, statSync as
|
|
2887
|
+
import { lstatSync as lstatSync5, readFileSync as readFileSync18, readdirSync as readdirSync2, realpathSync as realpathSync4, statSync as statSync5, unlinkSync as unlinkSync5 } from "fs";
|
|
2888
2888
|
import { basename as basename2, dirname as dirname8, isAbsolute, join as join19, relative, resolve as resolve3, sep } from "path";
|
|
2889
2889
|
|
|
2890
2890
|
// src/transcript-phone-trust.ts
|
|
@@ -6939,6 +6939,7 @@ import { createHash as createHash4 } from "crypto";
|
|
|
6939
6939
|
// src/transcript-read-positions.ts
|
|
6940
6940
|
import { lstatSync as lstatSync2, readFileSync as readFileSync7 } from "fs";
|
|
6941
6941
|
init_fsx();
|
|
6942
|
+
var OWNER_ONLY_FILE_MODE = 384;
|
|
6942
6943
|
var MAXIMUM_READ_POSITIONS_BYTES = 4 * 1024 * 1024;
|
|
6943
6944
|
var transcriptReadPositionSchema = external_exports.object({
|
|
6944
6945
|
identity: external_exports.string().nullable(),
|
|
@@ -6946,6 +6947,7 @@ var transcriptReadPositionSchema = external_exports.object({
|
|
|
6946
6947
|
startedBeforeEpoch: external_exports.boolean()
|
|
6947
6948
|
});
|
|
6948
6949
|
var savedReadPositionsSchema = external_exports.object({ positions: external_exports.record(external_exports.string(), transcriptReadPositionSchema) });
|
|
6950
|
+
var ownedOnlyByThisUser = (info) => !process.getuid || info.uid === process.getuid() && (info.mode & 511) === OWNER_ONLY_FILE_MODE;
|
|
6949
6951
|
|
|
6950
6952
|
// src/transcript-recipient-pin.ts
|
|
6951
6953
|
init_fsx();
|
|
@@ -7054,7 +7056,7 @@ var readState = (sessionId, runtime) => {
|
|
|
7054
7056
|
try {
|
|
7055
7057
|
const path = fileFor(sessionId, runtime.directory);
|
|
7056
7058
|
const info = lstatSync3(path);
|
|
7057
|
-
if (!info.isFile() || info.nlink !== 1 || info.size > MAX_TAIL || (info
|
|
7059
|
+
if (!info.isFile() || info.nlink !== 1 || info.size > MAX_TAIL || !ownedOnlyByThisUser(info)) return null;
|
|
7058
7060
|
const envelope = external_exports.object({ content: external_exports.string() }).parse(JSON.parse(readFileSync8(path, "utf8")));
|
|
7059
7061
|
const plain = decryptRecord(envelope.content, runtime.sessionKey);
|
|
7060
7062
|
if (!plain) return null;
|
|
@@ -7120,7 +7122,7 @@ var captureDisplayDraft = (input, runtime) => {
|
|
|
7120
7122
|
};
|
|
7121
7123
|
const target = fileFor(event.session_id, runtime.directory);
|
|
7122
7124
|
const existing = lstatSync3(target, { throwIfNoEntry: false });
|
|
7123
|
-
if (existing && (!existing.isFile() || existing.nlink !== 1 || (existing
|
|
7125
|
+
if (existing && (!existing.isFile() || existing.nlink !== 1 || !ownedOnlyByThisUser(existing))) return false;
|
|
7124
7126
|
writeJsonAtomicWithoutFsync(target, { content: encryptRecord(JSON.stringify(state), runtime.sessionKey) }, 384);
|
|
7125
7127
|
return true;
|
|
7126
7128
|
};
|
|
@@ -7595,9 +7597,9 @@ var hookOwnerOfCommands = (commands, appAvailable = true) => {
|
|
|
7595
7597
|
// src/daemon-lifecycle.ts
|
|
7596
7598
|
init_src();
|
|
7597
7599
|
import { dirname as dirname7, join as join18, win32 as win32Path } from "path";
|
|
7598
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync6, readFileSync as readFileSync17, realpathSync as realpathSync3, renameSync as renameSync3, unlinkSync as unlinkSync4, writeFileSync as writeFileSync5 } from "fs";
|
|
7600
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync6, readFileSync as readFileSync17, realpathSync as realpathSync3, renameSync as renameSync3, statSync as statSync4, unlinkSync as unlinkSync4, writeFileSync as writeFileSync5 } from "fs";
|
|
7599
7601
|
import { createHash as createHash9, randomUUID as randomUUID3 } from "crypto";
|
|
7600
|
-
import { homedir as homedir8, userInfo } from "os";
|
|
7602
|
+
import { homedir as homedir8, uptime, userInfo } from "os";
|
|
7601
7603
|
|
|
7602
7604
|
// src/identity.ts
|
|
7603
7605
|
init_fsx();
|
|
@@ -7800,7 +7802,7 @@ var cliRegistry = (apiKey = getApiKey()) => ({ apiKey, baseUrl: getBaseUrl(), di
|
|
|
7800
7802
|
var accountFor = (registry) => createHash10("sha256").update(`${registry.baseUrl}\0${registry.apiKey}`).digest("hex");
|
|
7801
7803
|
var TTL = 48 * 60 * 60 * 1e3;
|
|
7802
7804
|
var read = (path) => {
|
|
7803
|
-
if (
|
|
7805
|
+
if (statSync5(path).size > 16384) throw new Error("History registration exceeds its size limit");
|
|
7804
7806
|
return storedRegistrationSchema.parse(JSON.parse(readFileSync18(path, "utf8")));
|
|
7805
7807
|
};
|
|
7806
7808
|
var consent = (record) => record.consentOverride ?? readTranscriptPreference() ?? true;
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
describeHermesProblems,
|
|
15
15
|
describeHermesState,
|
|
16
16
|
hermesRepairStep
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-RVGYXUOC.js";
|
|
18
18
|
import {
|
|
19
19
|
writeJsonError,
|
|
20
20
|
writeStdoutFully
|
|
21
21
|
} from "../chunk-VRUEKURE.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchChannels
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-LBMCQWRX.js";
|
|
25
25
|
import "../chunk-3EGEA4KH.js";
|
|
26
26
|
import {
|
|
27
27
|
describeAnswerTestPrompt,
|
|
@@ -31,15 +31,15 @@ import {
|
|
|
31
31
|
reachVerdict,
|
|
32
32
|
roundTripEvidence,
|
|
33
33
|
verifyRoundTrip
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-L5RSLIBQ.js";
|
|
35
35
|
import {
|
|
36
36
|
readMachineReadiness,
|
|
37
37
|
readManagedControlEvidence
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-FJST6ZXC.js";
|
|
39
39
|
import {
|
|
40
40
|
assessCodexHookTrust,
|
|
41
41
|
readCodexTrustForPusharyHooks
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-RLQDVWZ4.js";
|
|
43
43
|
import {
|
|
44
44
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
45
45
|
activeKeyVerdictOf,
|
|
@@ -54,16 +54,16 @@ import {
|
|
|
54
54
|
isPluginRegistered,
|
|
55
55
|
shortenHome,
|
|
56
56
|
vscodeSettingsTargets
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-MF5ZQX7C.js";
|
|
58
58
|
import {
|
|
59
59
|
CONNECTED_THROUGH_MAC_APP,
|
|
60
60
|
keyWrittenByMacApp,
|
|
61
61
|
readMacAppConnectionWhenKeyless
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-FTH4TSJ2.js";
|
|
63
63
|
import {
|
|
64
64
|
keyScopeOf,
|
|
65
65
|
pushWindowChangeStep
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-GKZMBU6T.js";
|
|
67
67
|
import {
|
|
68
68
|
findHermesLauncher,
|
|
69
69
|
hasUpdateFrom,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
routesHermesQuestions,
|
|
76
76
|
runsAnOlderPlugin,
|
|
77
77
|
shippedHermesPlugin
|
|
78
|
-
} from "../chunk-
|
|
78
|
+
} from "../chunk-7MIT5C7B.js";
|
|
79
79
|
import "../chunk-QCGNGEGE.js";
|
|
80
80
|
import {
|
|
81
81
|
FX_PROFILE_REFUSALS,
|
|
@@ -86,11 +86,11 @@ import {
|
|
|
86
86
|
inspectClineInstallation,
|
|
87
87
|
inspectFxInstallation,
|
|
88
88
|
inspectFxPusharyHttpWiring
|
|
89
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-IZJDVOJV.js";
|
|
90
90
|
import {
|
|
91
91
|
retryAgentCommand
|
|
92
|
-
} from "../chunk-
|
|
93
|
-
import "../chunk-
|
|
92
|
+
} from "../chunk-3TKTZOKG.js";
|
|
93
|
+
import "../chunk-PFHRW3LR.js";
|
|
94
94
|
import {
|
|
95
95
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
96
96
|
cliOwnsAnyAgentHooks,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
openCodePluginDir,
|
|
101
101
|
openCodePluginFile,
|
|
102
102
|
openCodeWired
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-NSBWFX7H.js";
|
|
104
104
|
import {
|
|
105
105
|
createIo
|
|
106
106
|
} from "../chunk-FO3MDD26.js";
|
|
@@ -113,8 +113,8 @@ import {
|
|
|
113
113
|
expectedLaunchCapabilities,
|
|
114
114
|
hasSpawnProvider,
|
|
115
115
|
resolveControlPolicy
|
|
116
|
-
} from "../chunk-
|
|
117
|
-
import "../chunk-
|
|
116
|
+
} from "../chunk-X23GSBOH.js";
|
|
117
|
+
import "../chunk-UJZ5YHSR.js";
|
|
118
118
|
import "../chunk-CYTPQDQY.js";
|
|
119
119
|
import {
|
|
120
120
|
readLedgerSummary
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
describeAutoUpdateCheck,
|
|
127
127
|
readAutoUpdateState,
|
|
128
128
|
takeAutoUpdateAnnouncement
|
|
129
|
-
} from "../chunk-
|
|
129
|
+
} from "../chunk-UZUDMZES.js";
|
|
130
130
|
import {
|
|
131
131
|
compatibleConfigFile,
|
|
132
132
|
compatibleInstructionsFile,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
hasCompatibleHooks,
|
|
135
135
|
hasCompatibleMcpServer,
|
|
136
136
|
missingCompatibleHookEvents
|
|
137
|
-
} from "../chunk-
|
|
137
|
+
} from "../chunk-RZBV5KTF.js";
|
|
138
138
|
import {
|
|
139
139
|
daemonHasRemoteProof,
|
|
140
140
|
daemonServiceManagerAvailable,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
readDaemonNeedsLogin,
|
|
144
144
|
readDaemonStatus,
|
|
145
145
|
readInstalledDaemonService
|
|
146
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-3DCCMO23.js";
|
|
147
147
|
import {
|
|
148
148
|
GEMINI_HOOK_BINARY,
|
|
149
149
|
claudeOtherHolders,
|
|
@@ -163,31 +163,31 @@ import {
|
|
|
163
163
|
holdsLong,
|
|
164
164
|
missingGeminiHookEvents,
|
|
165
165
|
pusharyHookExecutable
|
|
166
|
-
} from "../chunk-
|
|
167
|
-
import "../chunk-
|
|
166
|
+
} from "../chunk-237FYIVC.js";
|
|
167
|
+
import "../chunk-MRHGK3Q3.js";
|
|
168
168
|
import "../chunk-JYCAAQUW.js";
|
|
169
169
|
import "../chunk-XHC3UNOK.js";
|
|
170
|
-
import "../chunk-
|
|
170
|
+
import "../chunk-MJVDFNP2.js";
|
|
171
171
|
import {
|
|
172
172
|
parseFlags
|
|
173
173
|
} from "../chunk-YPY4YCIZ.js";
|
|
174
174
|
import "../chunk-H6CL3T2S.js";
|
|
175
175
|
import "../chunk-RGVQOOGD.js";
|
|
176
|
-
import "../chunk-
|
|
176
|
+
import "../chunk-J4UNR655.js";
|
|
177
177
|
import "../chunk-POFBE6ZY.js";
|
|
178
178
|
import {
|
|
179
179
|
callMcpTool,
|
|
180
180
|
sendMcpRequest
|
|
181
|
-
} from "../chunk-
|
|
181
|
+
} from "../chunk-2KN53MPE.js";
|
|
182
182
|
import "../chunk-42PVKPHM.js";
|
|
183
183
|
import {
|
|
184
184
|
checkApiKey,
|
|
185
185
|
describeKeyCheck
|
|
186
|
-
} from "../chunk-
|
|
187
|
-
import "../chunk-
|
|
186
|
+
} from "../chunk-LR3PIGRS.js";
|
|
187
|
+
import "../chunk-V2T5ZDMP.js";
|
|
188
188
|
import {
|
|
189
189
|
getMachineId
|
|
190
|
-
} from "../chunk-
|
|
190
|
+
} from "../chunk-DS7XMYUB.js";
|
|
191
191
|
import {
|
|
192
192
|
keyPrefix,
|
|
193
193
|
readControlMode,
|
|
@@ -231,12 +231,12 @@ import {
|
|
|
231
231
|
readCodexMcpAuth,
|
|
232
232
|
resolveBridgeStub,
|
|
233
233
|
vscodePluginDir
|
|
234
|
-
} from "../chunk-
|
|
234
|
+
} from "../chunk-W4FJR57E.js";
|
|
235
235
|
import {
|
|
236
236
|
fetchLatestPublishedVersion,
|
|
237
237
|
readGlobalCliInstall,
|
|
238
238
|
resolvePathBinary
|
|
239
|
-
} from "../chunk-
|
|
239
|
+
} from "../chunk-A44MRVWG.js";
|
|
240
240
|
import {
|
|
241
241
|
getBaseUrl
|
|
242
242
|
} from "../chunk-T6HX6OTY.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-UDAXXR43.js";
|
|
5
|
+
import "../chunk-EPPH5RMJ.js";
|
|
6
6
|
import {
|
|
7
7
|
announceSubscriptionRequired,
|
|
8
8
|
isDeferAnswer
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-EA5EASYT.js";
|
|
10
|
+
import "../chunk-I6MI4NWX.js";
|
|
11
|
+
import "../chunk-VAE5JBR5.js";
|
|
12
12
|
import "../chunk-G66WIAST.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-RZBV5KTF.js";
|
|
14
|
+
import "../chunk-3DCCMO23.js";
|
|
15
|
+
import "../chunk-237FYIVC.js";
|
|
16
|
+
import "../chunk-MRHGK3Q3.js";
|
|
17
17
|
import "../chunk-JYCAAQUW.js";
|
|
18
18
|
import "../chunk-XHC3UNOK.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-MJVDFNP2.js";
|
|
20
20
|
import "../chunk-YPY4YCIZ.js";
|
|
21
21
|
import "../chunk-KWICQAP7.js";
|
|
22
22
|
import "../chunk-XMSDA5WA.js";
|
|
@@ -28,21 +28,21 @@ import {
|
|
|
28
28
|
isDecisionStopped,
|
|
29
29
|
isQuestionLimitRefusal,
|
|
30
30
|
waitForQuestion
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-J4UNR655.js";
|
|
32
32
|
import "../chunk-POFBE6ZY.js";
|
|
33
33
|
import {
|
|
34
34
|
SubscriptionRequiredError
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-2KN53MPE.js";
|
|
36
36
|
import "../chunk-42PVKPHM.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-LR3PIGRS.js";
|
|
38
|
+
import "../chunk-V2T5ZDMP.js";
|
|
39
39
|
import {
|
|
40
40
|
getMachineId
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-DS7XMYUB.js";
|
|
42
42
|
import "../chunk-CVBSETPW.js";
|
|
43
43
|
import "../chunk-BKH4LQJC.js";
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-W4FJR57E.js";
|
|
45
|
+
import "../chunk-A44MRVWG.js";
|
|
46
46
|
import {
|
|
47
47
|
getApiKey
|
|
48
48
|
} from "../chunk-T6HX6OTY.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
} from "../chunk-XMZVQF2J.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveProviderBinary
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-X23GSBOH.js";
|
|
12
|
+
import "../chunk-UJZ5YHSR.js";
|
|
13
13
|
import {
|
|
14
14
|
CommandReceipts,
|
|
15
15
|
controllerCommandSchema
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
idleDeadlinePassed,
|
|
21
21
|
startProcessOwnership,
|
|
22
22
|
withSpawnProcessOwnership
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-ZXJTTV7I.js";
|
|
24
24
|
import "../chunk-CYTPQDQY.js";
|
|
25
25
|
import "../chunk-KWICQAP7.js";
|
|
26
26
|
import "../chunk-XMSDA5WA.js";
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
import "../chunk-42PVKPHM.js";
|
|
34
34
|
import {
|
|
35
35
|
getMachineId
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-DS7XMYUB.js";
|
|
37
37
|
import "../chunk-CVBSETPW.js";
|
|
38
38
|
import "../chunk-BKH4LQJC.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-W4FJR57E.js";
|
|
40
|
+
import "../chunk-A44MRVWG.js";
|
|
41
41
|
import {
|
|
42
42
|
getApiKey,
|
|
43
43
|
getBaseUrl
|
|
@@ -3,31 +3,31 @@ import {
|
|
|
3
3
|
parseGeminiHookInput,
|
|
4
4
|
pushQuestionAndWait,
|
|
5
5
|
scopeQuestionOf
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-C4UH6YPD.js";
|
|
7
7
|
import {
|
|
8
8
|
reportMachineDenial
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-HW63OEVM.js";
|
|
10
10
|
import {
|
|
11
11
|
isGatingMoment,
|
|
12
12
|
recordKeylessMoment
|
|
13
13
|
} from "../chunk-2U4MCUVZ.js";
|
|
14
14
|
import {
|
|
15
15
|
triggerAutoUpdate
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-UZUDMZES.js";
|
|
17
17
|
import {
|
|
18
18
|
readHookInput
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-UDAXXR43.js";
|
|
20
|
+
import "../chunk-EPPH5RMJ.js";
|
|
21
21
|
import {
|
|
22
22
|
announceSubscriptionRequired,
|
|
23
23
|
isDeferAnswer
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-EA5EASYT.js";
|
|
25
|
+
import "../chunk-I6MI4NWX.js";
|
|
26
|
+
import "../chunk-VAE5JBR5.js";
|
|
27
27
|
import "../chunk-G66WIAST.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-RZBV5KTF.js";
|
|
29
|
+
import "../chunk-3DCCMO23.js";
|
|
30
|
+
import "../chunk-237FYIVC.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_SESSION,
|
|
33
33
|
fetchModeState,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
readLastPrompt,
|
|
41
41
|
readLastUserPrompt,
|
|
42
42
|
reportEvent
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-MRHGK3Q3.js";
|
|
44
44
|
import {
|
|
45
45
|
deriveActionBody,
|
|
46
46
|
deriveBlocker,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
scopePathFor
|
|
50
50
|
} from "../chunk-JYCAAQUW.js";
|
|
51
51
|
import "../chunk-XHC3UNOK.js";
|
|
52
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-MJVDFNP2.js";
|
|
53
53
|
import "../chunk-YPY4YCIZ.js";
|
|
54
54
|
import "../chunk-KWICQAP7.js";
|
|
55
55
|
import "../chunk-XMSDA5WA.js";
|
|
@@ -63,21 +63,21 @@ import {
|
|
|
63
63
|
isDecisionStopped,
|
|
64
64
|
isQuestionLimitRefusal,
|
|
65
65
|
sendNotification
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-J4UNR655.js";
|
|
67
67
|
import "../chunk-POFBE6ZY.js";
|
|
68
68
|
import {
|
|
69
69
|
SubscriptionRequiredError
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-2KN53MPE.js";
|
|
71
71
|
import "../chunk-42PVKPHM.js";
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import "../chunk-
|
|
72
|
+
import "../chunk-LR3PIGRS.js";
|
|
73
|
+
import "../chunk-V2T5ZDMP.js";
|
|
74
74
|
import {
|
|
75
75
|
getMachineId
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-DS7XMYUB.js";
|
|
77
77
|
import "../chunk-CVBSETPW.js";
|
|
78
78
|
import "../chunk-BKH4LQJC.js";
|
|
79
|
-
import "../chunk-
|
|
80
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-W4FJR57E.js";
|
|
80
|
+
import "../chunk-A44MRVWG.js";
|
|
81
81
|
import {
|
|
82
82
|
getApiKey
|
|
83
83
|
} from "../chunk-T6HX6OTY.js";
|