@pushary/agent-hooks 1.9.170 → 1.9.174
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 +20 -0
- package/dist/{api-3KBPIGV4.js → api-MNYX7TLY.js} +12 -12
- package/dist/bin/pushary-audit.js +4 -4
- package/dist/bin/pushary-bell-hook.js +31 -31
- package/dist/bin/pushary-bell.js +13 -12
- package/dist/bin/pushary-calls.js +16 -16
- package/dist/bin/pushary-claude.js +37 -39
- package/dist/bin/pushary-clean.js +49 -47
- package/dist/bin/pushary-codex-bridge.js +27 -27
- package/dist/bin/pushary-codex-hook.js +47 -49
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +20 -19
- package/dist/bin/pushary-connect.js +37 -37
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +57 -56
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +26 -26
- package/dist/bin/pushary-doctor.js +54 -53
- package/dist/bin/pushary-elicitation-hook.js +34 -33
- package/dist/bin/pushary-gemini-bridge.js +25 -23
- package/dist/bin/pushary-gemini-hook.js +41 -43
- package/dist/bin/pushary-hook.js +39 -39
- package/dist/bin/pushary-login.js +32 -26
- package/dist/bin/pushary-logout.js +41 -33
- package/dist/bin/pushary-mcp.js +13 -13
- package/dist/bin/pushary-mode.js +17 -17
- package/dist/bin/pushary-notification-hook.js +30 -30
- package/dist/bin/pushary-opencode-hook.js +47 -56
- package/dist/bin/pushary-permission-denied-hook.js +39 -39
- package/dist/bin/pushary-permission-hook.js +39 -39
- package/dist/bin/pushary-post-hook.js +31 -31
- package/dist/bin/pushary-prompt-hook.js +30 -30
- package/dist/bin/pushary-session-end-hook.js +32 -32
- package/dist/bin/pushary-session-start-hook.js +42 -42
- package/dist/bin/pushary-sessions.js +15 -15
- package/dist/bin/pushary-setup.js +79 -68
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +38 -38
- package/dist/bin/pushary-stop-hook.js +30 -30
- package/dist/bin/pushary-stopfailure-hook.js +30 -30
- package/dist/bin/pushary-suggestions.js +17 -17
- package/dist/bin/pushary-transcript-register.js +21 -21
- package/dist/bin/pushary-transcripts.js +29 -29
- package/dist/bin/pushary-upgrade.js +46 -46
- package/dist/bin/pushary-wait.js +17 -17
- package/dist/bin/pushary.js +8 -8
- package/dist/{chunk-MPJAXUN2.js → chunk-2EHDZOJA.js} +14 -14
- package/dist/{chunk-BZILLAPJ.js → chunk-2IEU6RX5.js} +1 -1
- package/dist/{chunk-LEXVQXZU.js → chunk-3FOW4K2L.js} +4 -4
- package/dist/{chunk-UCND4JHN.js → chunk-3L5DXDPK.js} +1 -1
- package/dist/{chunk-3ZO7WCMV.js → chunk-4IOCYW6O.js} +3 -3
- package/dist/{chunk-NJSBHEEW.js → chunk-4NXEOPXZ.js} +1 -1
- package/dist/{chunk-352FIVVH.js → chunk-55L4JSPA.js} +1 -1
- package/dist/{chunk-EBHIVYSD.js → chunk-57C45LJT.js} +2 -2
- package/dist/{chunk-5OI4EW6G.js → chunk-5JCKVJC6.js} +5 -5
- package/dist/{chunk-GVIKF73A.js → chunk-5LIGHRBH.js} +1 -1
- package/dist/{chunk-TIRZZCS4.js → chunk-6355EUTT.js} +4 -4
- package/dist/{chunk-DXHRKDP7.js → chunk-6BZCNKCY.js} +5 -5
- package/dist/{chunk-7RNLPI6H.js → chunk-6HYQSAMW.js} +3 -3
- package/dist/{chunk-3UNQJ6AO.js → chunk-76T3UMRC.js} +32 -33
- package/dist/{chunk-65U6TH6P.js → chunk-7VG4JO77.js} +4 -4
- package/dist/{chunk-JNUZYDUC.js → chunk-7XALAS43.js} +3 -3
- package/dist/{chunk-W4NCWOVL.js → chunk-7YVSQ342.js} +1 -1
- package/dist/{chunk-TGYM6UQJ.js → chunk-A3JTWB74.js} +2 -2
- package/dist/{chunk-CNPTWWKJ.js → chunk-A3YA4EIY.js} +3 -3
- package/dist/{chunk-L6UCFQKZ.js → chunk-BHBHY35A.js} +4 -4
- package/dist/{chunk-IWKEIVDF.js → chunk-C7SKKHMD.js} +7 -5
- package/dist/{chunk-QJNI6MPV.js → chunk-CDUTYRXO.js} +4 -4
- package/dist/{chunk-DXUPOVJP.js → chunk-CPV25VW5.js} +1 -1
- package/dist/{chunk-2OMWK322.js → chunk-CTLI2HJE.js} +5 -5
- package/dist/{chunk-BX45H3DU.js → chunk-DJS7W4SC.js} +6 -6
- package/dist/{chunk-2TRYSF64.js → chunk-DNJKQHK2.js} +20 -1
- package/dist/{chunk-FTE5ECGI.js → chunk-DPHYIJNF.js} +4 -4
- package/dist/{chunk-57MF5I5V.js → chunk-E2WABTIY.js} +7 -7
- package/dist/{chunk-OKM76UDB.js → chunk-ET2BWLQX.js} +3 -3
- package/dist/{chunk-OJUW7QW2.js → chunk-FAMKGTCF.js} +1 -1
- package/dist/{chunk-HP5RU3OU.js → chunk-FPF7ZSH5.js} +3 -3
- package/dist/{chunk-SKDSU735.js → chunk-FS7WOHFO.js} +5 -5
- package/dist/{chunk-LILP3T24.js → chunk-GGNKMBCN.js} +4 -4
- package/dist/{chunk-NYDJHJIJ.js → chunk-GPHESUOZ.js} +6 -6
- package/dist/{chunk-TBH5WLIA.js → chunk-GTCNACQ2.js} +5 -5
- package/dist/{chunk-K5HACZJ3.js → chunk-H3MY3EQP.js} +4 -4
- package/dist/{chunk-DVBRMNFM.js → chunk-HGVGOGVD.js} +3 -3
- package/dist/{chunk-NWKXT7LC.js → chunk-HLK3ZELO.js} +2 -2
- package/dist/{chunk-CLT4J5N5.js → chunk-HUJWZIQ2.js} +2 -2
- package/dist/{chunk-HXVCULWA.js → chunk-HZGSGLK4.js} +6 -6
- package/dist/{chunk-7AENNOGX.js → chunk-IP4NJN6G.js} +1 -1
- package/dist/{chunk-MVWWEQQG.js → chunk-IQNM745W.js} +3 -3
- package/dist/{chunk-GZZ7XGL5.js → chunk-JG2ZVO5L.js} +1 -1
- package/dist/{chunk-RSVW634O.js → chunk-JXOVA3JW.js} +6 -6
- package/dist/{chunk-HZANYISD.js → chunk-K5NBHOE6.js} +2 -2
- package/dist/{chunk-3I3RUJRD.js → chunk-LH5JTAAH.js} +2 -2
- package/dist/{chunk-IHNII3GT.js → chunk-LIVVVKIZ.js} +3 -3
- package/dist/{chunk-AVN4A4A6.js → chunk-M4KQPSMS.js} +1 -1
- package/dist/{chunk-SDLL4YPS.js → chunk-MF6FSDM4.js} +3 -3
- package/dist/{chunk-SSKNRWWS.js → chunk-N73CKAC6.js} +1 -1
- package/dist/{chunk-YEZL4T4K.js → chunk-O4AAXXXP.js} +4 -4
- package/dist/{chunk-OHVQ75S7.js → chunk-OBNVYNPQ.js} +3 -3
- package/dist/{chunk-CFZUESTS.js → chunk-OFKKNHYJ.js} +1 -1
- package/dist/{chunk-EGPOBJZG.js → chunk-OLKAGHOO.js} +1 -1
- package/dist/{chunk-LML7I4FY.js → chunk-PAYK5BD7.js} +2 -2
- package/dist/{chunk-WI2WYKSE.js → chunk-PDIN6FE5.js} +1 -1
- package/dist/{chunk-TODDEIYG.js → chunk-PM2NRK6Y.js} +12 -2
- package/dist/{chunk-SADLXUUA.js → chunk-PWJ76P2L.js} +7 -7
- package/dist/{chunk-T33PQ3TE.js → chunk-PZNVSYIY.js} +6 -6
- package/dist/{chunk-UDPXX6YR.js → chunk-QCZMBOMF.js} +1 -1
- package/dist/{chunk-CXKAP6DR.js → chunk-R3EIRYON.js} +5 -5
- package/dist/{chunk-ZA7N6SUH.js → chunk-R4RL4UDT.js} +5 -5
- package/dist/{chunk-W4TTC7MU.js → chunk-RIHIXQAL.js} +12 -12
- package/dist/{chunk-XI7MSL4R.js → chunk-RT6FAMIF.js} +27 -26
- package/dist/{chunk-IV7WDCKS.js → chunk-S3X6WLW5.js} +1 -1
- package/dist/{chunk-6KL27ETS.js → chunk-SHLAHE46.js} +10 -10
- package/dist/{chunk-5TNFIUN3.js → chunk-SNY4ABHS.js} +4 -4
- package/dist/{chunk-CYTPQDQY.js → chunk-TCE3J44Z.js} +1 -1
- package/dist/{chunk-VX6ZYAOA.js → chunk-TRXYUOWW.js} +8 -8
- package/dist/{chunk-A2DVMIX4.js → chunk-TU5DTA2V.js} +1 -1
- package/dist/{chunk-TNYOSIAY.js → chunk-UJ6ZJNHK.js} +3 -3
- package/dist/{chunk-XR27HPYC.js → chunk-UOPOVQ2P.js} +2 -1
- package/dist/{chunk-L77OIGRB.js → chunk-US4LUIFU.js} +20 -0
- package/dist/{chunk-KE5ED475.js → chunk-VCWHZDP3.js} +3 -3
- package/dist/{chunk-FD7JHIET.js → chunk-VH2DDTBE.js} +12 -12
- package/dist/{chunk-2SMEEXDR.js → chunk-VLEKL3PF.js} +1 -1
- package/dist/{chunk-Y6ILCLKE.js → chunk-VRNGMRJA.js} +1 -1
- package/dist/{chunk-RGE64J2V.js → chunk-WAZIEUIG.js} +7 -5
- package/dist/{chunk-LT3B5432.js → chunk-WWVVLMPJ.js} +5 -3
- package/dist/{chunk-TTTMOX73.js → chunk-X5LTD4VA.js} +2 -2
- package/dist/{chunk-MPCJB6I7.js → chunk-XZOYXQ6J.js} +6 -6
- package/dist/{chunk-JTFD3KQ6.js → chunk-YDYKKSFU.js} +224 -75
- package/dist/{chunk-BFZHRQJU.js → chunk-YE7WPP7M.js} +1 -1
- package/dist/{chunk-IGKHWARK.js → chunk-YFOR2JQQ.js} +2 -2
- package/dist/{chunk-7E4OSMST.js → chunk-YXLWKFKC.js} +6 -6
- package/dist/{chunk-GFWQNXX7.js → chunk-Z6YRFNN3.js} +5 -5
- package/dist/{chunk-EPBS4KJR.js → chunk-ZLXN26UD.js} +6 -6
- package/dist/{codex-app-cards-switch-AKCQRBUP.js → codex-app-cards-switch-MJA47AZY.js} +13 -13
- package/dist/{codex-card-routing-QGOX4RNI.js → codex-card-routing-2MDDCMAO.js} +2 -2
- package/dist/{codex-desktop-launch-SCQW4KAV.js → codex-desktop-launch-7IVPOMSK.js} +1 -1
- package/dist/{codex-session-launch-4EVYIYEQ.js → codex-session-launch-U6JUH6X6.js} +24 -24
- package/dist/{config-QIHLQCEV.js → config-S2OVEI6F.js} +3 -3
- package/dist/{global-upgrade-WHSNOE3E.js → global-upgrade-XGDWDFQN.js} +11 -11
- package/dist/{identity-NEXDWMLO.js → identity-7LLNHIP3.js} +5 -5
- package/dist/{live-capabilities-CC7L4VDX.js → live-capabilities-CI46M4XO.js} +6 -6
- package/dist/{paths-J3MVJDQI.js → paths-FVQYVHLH.js} +4 -4
- package/dist/reapply-M4DKHUZX.js +69 -0
- package/dist/src/index.js +38 -38
- package/dist/{upgrade-lock-7PPYIRBP.js → upgrade-lock-DTWLFPH2.js} +5 -5
- package/dist/{usage-GDUDYZSV.js → usage-IHNVIPGZ.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-6FNUVXCL.js +0 -69
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
pairingComputerOf,
|
|
4
4
|
planPairCommand
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-IP4NJN6G.js";
|
|
6
6
|
import {
|
|
7
7
|
canShowPairingQr,
|
|
8
8
|
checkPhoneWithoutPairing,
|
|
@@ -12,76 +12,76 @@ import {
|
|
|
12
12
|
pairAppWithThisComputer,
|
|
13
13
|
pairingAgainHelps,
|
|
14
14
|
printConnectInstructions
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-DJS7W4SC.js";
|
|
16
16
|
import "../chunk-3EGEA4KH.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-HZGSGLK4.js";
|
|
18
18
|
import {
|
|
19
19
|
printKeyCheck
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-E2WABTIY.js";
|
|
21
|
+
import "../chunk-HLK3ZELO.js";
|
|
22
22
|
import {
|
|
23
23
|
detectedAgentChoices
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-XZOYXQ6J.js";
|
|
25
25
|
import "../chunk-OYIN77HO.js";
|
|
26
26
|
import {
|
|
27
27
|
CONNECTED_THROUGH_MAC_APP,
|
|
28
28
|
PAIR_FROM_MAC_APP,
|
|
29
29
|
readMacAppConnection
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-Z6YRFNN3.js";
|
|
31
31
|
import "../chunk-QCGNGEGE.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-O4AAXXXP.js";
|
|
33
|
+
import "../chunk-PWJ76P2L.js";
|
|
34
|
+
import "../chunk-3L5DXDPK.js";
|
|
35
|
+
import "../chunk-PAYK5BD7.js";
|
|
36
36
|
import {
|
|
37
37
|
ciMarker,
|
|
38
38
|
createIo,
|
|
39
39
|
describeCiReason
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-CPV25VW5.js";
|
|
41
41
|
import {
|
|
42
42
|
exitOnHelpFlag
|
|
43
|
-
} from "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-M4KQPSMS.js";
|
|
44
|
+
import "../chunk-TCE3J44Z.js";
|
|
45
|
+
import "../chunk-R3EIRYON.js";
|
|
46
|
+
import "../chunk-7VG4JO77.js";
|
|
47
|
+
import "../chunk-RT6FAMIF.js";
|
|
48
|
+
import "../chunk-OFKKNHYJ.js";
|
|
49
|
+
import "../chunk-HUJWZIQ2.js";
|
|
50
|
+
import "../chunk-2IEU6RX5.js";
|
|
51
51
|
import {
|
|
52
52
|
parseFlags
|
|
53
53
|
} from "../chunk-BZIBNSQE.js";
|
|
54
|
-
import "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-GVIKF73A.js";
|
|
54
|
+
import "../chunk-VRNGMRJA.js";
|
|
55
|
+
import "../chunk-YXLWKFKC.js";
|
|
56
|
+
import "../chunk-5LIGHRBH.js";
|
|
58
57
|
import "../chunk-POFBE6ZY.js";
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-5JCKVJC6.js";
|
|
59
|
+
import "../chunk-N73CKAC6.js";
|
|
60
|
+
import "../chunk-DNJKQHK2.js";
|
|
61
61
|
import {
|
|
62
62
|
checkApiKey
|
|
63
|
-
} from "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
63
|
+
} from "../chunk-OBNVYNPQ.js";
|
|
64
|
+
import "../chunk-ET2BWLQX.js";
|
|
65
|
+
import "../chunk-YFOR2JQQ.js";
|
|
66
66
|
import {
|
|
67
67
|
readKeySource
|
|
68
|
-
} from "../chunk-
|
|
69
|
-
import "../chunk-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
72
|
-
import "../chunk-
|
|
68
|
+
} from "../chunk-YDYKKSFU.js";
|
|
69
|
+
import "../chunk-LH5JTAAH.js";
|
|
70
|
+
import "../chunk-MF6FSDM4.js";
|
|
71
|
+
import "../chunk-GGNKMBCN.js";
|
|
72
|
+
import "../chunk-TU5DTA2V.js";
|
|
73
73
|
import {
|
|
74
74
|
UsageError
|
|
75
75
|
} from "../chunk-CINBAX5G.js";
|
|
76
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-PM2NRK6Y.js";
|
|
77
77
|
import {
|
|
78
78
|
EXIT
|
|
79
79
|
} from "../chunk-BG4HHB7E.js";
|
|
80
80
|
import {
|
|
81
81
|
isInvocationOf
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-S3X6WLW5.js";
|
|
83
83
|
import "../chunk-UQTQ6HPO.js";
|
|
84
|
-
import "../chunk-
|
|
84
|
+
import "../chunk-US4LUIFU.js";
|
|
85
85
|
import "../chunk-MLKGABMK.js";
|
|
86
86
|
|
|
87
87
|
// bin/pushary-connect.ts
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
coworkOutput,
|
|
4
4
|
parseCoworkOptions
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LIVVVKIZ.js";
|
|
6
6
|
import {
|
|
7
7
|
canOpenBrowser,
|
|
8
8
|
openInBrowser
|
|
9
9
|
} from "../chunk-PUZZELE6.js";
|
|
10
10
|
import {
|
|
11
11
|
exitOnHelpFlag
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-M4KQPSMS.js";
|
|
13
|
+
import "../chunk-HUJWZIQ2.js";
|
|
14
14
|
import "../chunk-BZIBNSQE.js";
|
|
15
15
|
import {
|
|
16
16
|
UsageError
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
EXIT
|
|
20
20
|
} from "../chunk-BG4HHB7E.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-S3X6WLW5.js";
|
|
22
22
|
import "../chunk-UQTQ6HPO.js";
|
|
23
23
|
import {
|
|
24
24
|
CLAUDE_CONNECTOR_GUIDE
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-US4LUIFU.js";
|
|
26
26
|
import "../chunk-MLKGABMK.js";
|
|
27
27
|
|
|
28
28
|
// bin/pushary-cowork.ts
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readHookWiring,
|
|
4
4
|
readHookWiringSafely
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-SHLAHE46.js";
|
|
6
6
|
import {
|
|
7
7
|
inspectConfiguredManagedProviders
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-RIHIXQAL.js";
|
|
9
|
+
import "../chunk-K5NBHOE6.js";
|
|
10
|
+
import "../chunk-IQNM745W.js";
|
|
11
11
|
import {
|
|
12
12
|
keepLinuxDaemonAfterLogout,
|
|
13
13
|
lingerReportOf
|
|
@@ -15,28 +15,28 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
HEARTBEAT_INTERVAL_MS,
|
|
17
17
|
sendHeartbeat
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-FS7WOHFO.js";
|
|
19
|
+
import "../chunk-A3YA4EIY.js";
|
|
20
20
|
import {
|
|
21
21
|
readSignedOutDiagnosis
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-HLK3ZELO.js";
|
|
23
23
|
import {
|
|
24
24
|
HERMES_INSTALL_MARKER_FILE,
|
|
25
25
|
defaultHermesHome,
|
|
26
26
|
parseHermesInstallMarker
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-GPHESUOZ.js";
|
|
28
28
|
import {
|
|
29
29
|
writeHuman
|
|
30
30
|
} from "../chunk-QCGNGEGE.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-O4AAXXXP.js";
|
|
32
|
+
import "../chunk-PZNVSYIY.js";
|
|
33
|
+
import "../chunk-6355EUTT.js";
|
|
34
|
+
import "../chunk-4IOCYW6O.js";
|
|
35
|
+
import "../chunk-PWJ76P2L.js";
|
|
36
|
+
import "../chunk-3L5DXDPK.js";
|
|
37
37
|
import {
|
|
38
38
|
exitOnHelpFlag
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-M4KQPSMS.js";
|
|
40
40
|
import {
|
|
41
41
|
codexBinaryIsBroken,
|
|
42
42
|
detectProviderLiveCapabilities,
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
launchableProviders,
|
|
46
46
|
resolveControlPolicy,
|
|
47
47
|
trackProviderInventory
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
48
|
+
} from "../chunk-DPHYIJNF.js";
|
|
49
|
+
import "../chunk-FPF7ZSH5.js";
|
|
50
50
|
import {
|
|
51
51
|
SESSION_REAP_SILENCE_MS,
|
|
52
52
|
describeIdleWindow,
|
|
@@ -54,17 +54,17 @@ import {
|
|
|
54
54
|
listProcessProofs,
|
|
55
55
|
ownsLiveProcess,
|
|
56
56
|
silentSpawnedProofs
|
|
57
|
-
} from "../chunk-
|
|
58
|
-
import "../chunk-
|
|
57
|
+
} from "../chunk-6HYQSAMW.js";
|
|
58
|
+
import "../chunk-TCE3J44Z.js";
|
|
59
59
|
import {
|
|
60
60
|
readLocalAutoUpdateReport
|
|
61
|
-
} from "../chunk-
|
|
62
|
-
import "../chunk-
|
|
61
|
+
} from "../chunk-UJ6ZJNHK.js";
|
|
62
|
+
import "../chunk-H3MY3EQP.js";
|
|
63
63
|
import {
|
|
64
64
|
startRegisteredTranscripts
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-VH2DDTBE.js";
|
|
66
66
|
import "../chunk-WHB622LP.js";
|
|
67
|
-
import "../chunk-
|
|
67
|
+
import "../chunk-R3EIRYON.js";
|
|
68
68
|
import {
|
|
69
69
|
DAEMON_LEASE_RENEW_INTERVAL_MS,
|
|
70
70
|
DAEMON_YIELD_CHECK_INTERVAL_MS,
|
|
@@ -82,62 +82,64 @@ import {
|
|
|
82
82
|
requestDaemonHandoff,
|
|
83
83
|
stopDaemonRunning,
|
|
84
84
|
writeDaemonNeedsLogin
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-TRXYUOWW.js";
|
|
86
86
|
import {
|
|
87
87
|
hookOwnerOf
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-7VG4JO77.js";
|
|
89
89
|
import {
|
|
90
90
|
markPendingCommandRefused,
|
|
91
91
|
pendingCommandReceipts,
|
|
92
92
|
removePendingCommand
|
|
93
|
-
} from "../chunk-
|
|
94
|
-
import "../chunk-
|
|
95
|
-
import "../chunk-
|
|
96
|
-
import "../chunk-
|
|
93
|
+
} from "../chunk-RT6FAMIF.js";
|
|
94
|
+
import "../chunk-OFKKNHYJ.js";
|
|
95
|
+
import "../chunk-HUJWZIQ2.js";
|
|
96
|
+
import "../chunk-2IEU6RX5.js";
|
|
97
97
|
import "../chunk-BZIBNSQE.js";
|
|
98
|
-
import "../chunk-
|
|
99
|
-
import "../chunk-
|
|
100
|
-
import "../chunk-
|
|
98
|
+
import "../chunk-6BZCNKCY.js";
|
|
99
|
+
import "../chunk-55L4JSPA.js";
|
|
100
|
+
import "../chunk-YE7WPP7M.js";
|
|
101
101
|
import {
|
|
102
102
|
spawnClaude
|
|
103
|
-
} from "../chunk-
|
|
104
|
-
import "../chunk-
|
|
105
|
-
import "../chunk-7E4OSMST.js";
|
|
103
|
+
} from "../chunk-VRNGMRJA.js";
|
|
104
|
+
import "../chunk-YXLWKFKC.js";
|
|
106
105
|
import {
|
|
107
106
|
readCommandAck,
|
|
108
107
|
refusedReceiptMessage
|
|
109
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-5LIGHRBH.js";
|
|
110
109
|
import "../chunk-POFBE6ZY.js";
|
|
111
|
-
import "../chunk-
|
|
112
|
-
import "../chunk-
|
|
113
|
-
import
|
|
114
|
-
|
|
110
|
+
import "../chunk-5JCKVJC6.js";
|
|
111
|
+
import "../chunk-N73CKAC6.js";
|
|
112
|
+
import {
|
|
113
|
+
projectNameFor
|
|
114
|
+
} from "../chunk-DNJKQHK2.js";
|
|
115
|
+
import "../chunk-OBNVYNPQ.js";
|
|
116
|
+
import "../chunk-ET2BWLQX.js";
|
|
115
117
|
import {
|
|
116
118
|
getMachineId
|
|
117
|
-
} from "../chunk-
|
|
119
|
+
} from "../chunk-YFOR2JQQ.js";
|
|
118
120
|
import {
|
|
119
121
|
readControlMode
|
|
120
|
-
} from "../chunk-
|
|
121
|
-
import "../chunk-
|
|
122
|
+
} from "../chunk-YDYKKSFU.js";
|
|
123
|
+
import "../chunk-LH5JTAAH.js";
|
|
122
124
|
import {
|
|
123
125
|
claudeConfigDir,
|
|
124
126
|
codexHome
|
|
125
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-MF6FSDM4.js";
|
|
126
128
|
import {
|
|
127
129
|
resolveBinary
|
|
128
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-GGNKMBCN.js";
|
|
129
131
|
import {
|
|
130
132
|
getApiKey,
|
|
131
133
|
getBaseUrl
|
|
132
|
-
} from "../chunk-
|
|
134
|
+
} from "../chunk-TU5DTA2V.js";
|
|
133
135
|
import "../chunk-CINBAX5G.js";
|
|
134
136
|
import {
|
|
135
137
|
writeJsonAtomicDurable
|
|
136
|
-
} from "../chunk-
|
|
138
|
+
} from "../chunk-PM2NRK6Y.js";
|
|
137
139
|
import {
|
|
138
140
|
EXIT
|
|
139
141
|
} from "../chunk-BG4HHB7E.js";
|
|
140
|
-
import "../chunk-
|
|
142
|
+
import "../chunk-S3X6WLW5.js";
|
|
141
143
|
import "../chunk-UQTQ6HPO.js";
|
|
142
144
|
import {
|
|
143
145
|
CLAUDE_INBOX,
|
|
@@ -170,7 +172,7 @@ import {
|
|
|
170
172
|
parseHermesAdmission,
|
|
171
173
|
parseHermesReplayCursor,
|
|
172
174
|
qualifyHermesReceiptMode
|
|
173
|
-
} from "../chunk-
|
|
175
|
+
} from "../chunk-US4LUIFU.js";
|
|
174
176
|
import "../chunk-MLKGABMK.js";
|
|
175
177
|
|
|
176
178
|
// src/spawn-claim.ts
|
|
@@ -858,8 +860,7 @@ var readHookOwner = (file) => {
|
|
|
858
860
|
};
|
|
859
861
|
|
|
860
862
|
// src/native-input-receiver.ts
|
|
861
|
-
|
|
862
|
-
var heartbeatAgentName = (agentName, cwd) => cwd === null ? agentName : `${agentName} - ${basename(cwd)}`;
|
|
863
|
+
var heartbeatAgentName = (agentName, cwd) => cwd === null ? agentName : `${agentName} - ${projectNameFor(cwd)}`;
|
|
863
864
|
var startNativeInputReceiver = (apiKey, machineId, options) => {
|
|
864
865
|
const client = options.client;
|
|
865
866
|
const baseUrl = options.baseUrl ?? getBaseUrl();
|
|
@@ -1090,7 +1091,7 @@ var reconcileCommandReceipts = async (apiKey, machineId, agentType, baseUrl, sig
|
|
|
1090
1091
|
};
|
|
1091
1092
|
|
|
1092
1093
|
// src/claude-inbox-receiver.ts
|
|
1093
|
-
import { join as join4
|
|
1094
|
+
import { join as join4 } from "path";
|
|
1094
1095
|
import { homedir as homedir2 } from "os";
|
|
1095
1096
|
|
|
1096
1097
|
// src/claude-inbox.ts
|
|
@@ -1501,7 +1502,7 @@ var startClaudeInboxReceiver = (apiKey, machineId, options = {}) => {
|
|
|
1501
1502
|
{
|
|
1502
1503
|
event: "heartbeat",
|
|
1503
1504
|
agentType: "claude_code",
|
|
1504
|
-
agentName: `Claude Code - ${
|
|
1505
|
+
agentName: `Claude Code - ${projectNameFor(session.cwd)}`,
|
|
1505
1506
|
sessionId: session.sessionId,
|
|
1506
1507
|
machineId,
|
|
1507
1508
|
cwd: session.cwd,
|
|
@@ -1569,7 +1570,7 @@ var startClaudeInboxReceiver = (apiKey, machineId, options = {}) => {
|
|
|
1569
1570
|
import { execFileSync as execFileSync2, spawn } from "child_process";
|
|
1570
1571
|
import { existsSync, statSync as statSync2 } from "fs";
|
|
1571
1572
|
import { homedir as homedir3 } from "os";
|
|
1572
|
-
import { basename
|
|
1573
|
+
import { basename, dirname as dirname3, join as join5 } from "path";
|
|
1573
1574
|
|
|
1574
1575
|
// src/stop-requests.ts
|
|
1575
1576
|
var STOP_CAPABILITY = "stop";
|
|
@@ -1928,7 +1929,7 @@ var runSpawnDaemon = async () => {
|
|
|
1928
1929
|
});
|
|
1929
1930
|
}
|
|
1930
1931
|
child.unref();
|
|
1931
|
-
log(`spawn ${req.id}: launched a phone-requested ${plan.agent} session in ${
|
|
1932
|
+
log(`spawn ${req.id}: launched a phone-requested ${plan.agent} session in ${basename(cwd)} (pid ${child.pid ?? "unknown"})`);
|
|
1932
1933
|
resolve3(typeof child.pid === "number" ? child.pid : null);
|
|
1933
1934
|
});
|
|
1934
1935
|
} catch (err) {
|
|
@@ -2179,7 +2180,7 @@ var runSpawnDaemon = async () => {
|
|
|
2179
2180
|
}
|
|
2180
2181
|
const result = await sendHeartbeat(apiKey, {
|
|
2181
2182
|
machineId,
|
|
2182
|
-
repoKey:
|
|
2183
|
+
repoKey: basename(process.cwd()),
|
|
2183
2184
|
capabilities: [
|
|
2184
2185
|
...launchAdvertisement(inventory.current.capabilities),
|
|
2185
2186
|
STOP_CAPABILITY,
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
declinedAgentsFile,
|
|
4
4
|
recordDeclinedAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-IQNM745W.js";
|
|
6
6
|
import {
|
|
7
7
|
isCursorPluginLeftover,
|
|
8
8
|
isPusharyCursorPluginManifest,
|
|
9
9
|
releaseSoleGate
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-3FOW4K2L.js";
|
|
11
11
|
import {
|
|
12
12
|
planFxRemoval,
|
|
13
13
|
removeClineServer
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-PZNVSYIY.js";
|
|
15
|
+
import "../chunk-6355EUTT.js";
|
|
16
|
+
import "../chunk-4IOCYW6O.js";
|
|
17
17
|
import {
|
|
18
18
|
hasForeignPlugins,
|
|
19
19
|
macAppBridgeAvailable,
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
openCodePluginDir,
|
|
23
23
|
openCodePluginFile,
|
|
24
24
|
removeOpenCodeMcpServer
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-PWJ76P2L.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_PLUGIN_SIBLING,
|
|
28
28
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
29
29
|
isOpenCodePluginOurs
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-3L5DXDPK.js";
|
|
31
31
|
import {
|
|
32
32
|
exitOnHelpFlag
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-M4KQPSMS.js";
|
|
34
34
|
import {
|
|
35
35
|
compatibleConfigFile,
|
|
36
36
|
compatibleDocuments,
|
|
@@ -40,28 +40,28 @@ import {
|
|
|
40
40
|
isEmptiedPusharyOwnedDocument,
|
|
41
41
|
removeCompatibleHooks,
|
|
42
42
|
removeCompatibleMcpServer
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-R3EIRYON.js";
|
|
44
44
|
import {
|
|
45
45
|
removeGeminiSettings
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-7VG4JO77.js";
|
|
47
|
+
import "../chunk-RT6FAMIF.js";
|
|
48
|
+
import "../chunk-OFKKNHYJ.js";
|
|
49
|
+
import "../chunk-HUJWZIQ2.js";
|
|
50
|
+
import "../chunk-2IEU6RX5.js";
|
|
51
51
|
import {
|
|
52
52
|
parseFlags
|
|
53
53
|
} from "../chunk-BZIBNSQE.js";
|
|
54
|
-
import "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-GVIKF73A.js";
|
|
54
|
+
import "../chunk-YXLWKFKC.js";
|
|
55
|
+
import "../chunk-5LIGHRBH.js";
|
|
57
56
|
import "../chunk-POFBE6ZY.js";
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-5JCKVJC6.js";
|
|
58
|
+
import "../chunk-N73CKAC6.js";
|
|
59
|
+
import "../chunk-DNJKQHK2.js";
|
|
60
|
+
import "../chunk-OBNVYNPQ.js";
|
|
61
|
+
import "../chunk-ET2BWLQX.js";
|
|
62
|
+
import "../chunk-YFOR2JQQ.js";
|
|
63
|
+
import "../chunk-YDYKKSFU.js";
|
|
64
|
+
import "../chunk-LH5JTAAH.js";
|
|
65
65
|
import {
|
|
66
66
|
claudeJson,
|
|
67
67
|
claudeMcpReceipt,
|
|
@@ -91,28 +91,28 @@ import {
|
|
|
91
91
|
removePusharySettings,
|
|
92
92
|
removePusharyToolPermissions,
|
|
93
93
|
restoreClaudeMcpServer
|
|
94
|
-
} from "../chunk-
|
|
95
|
-
import "../chunk-
|
|
96
|
-
import "../chunk-
|
|
94
|
+
} from "../chunk-MF6FSDM4.js";
|
|
95
|
+
import "../chunk-GGNKMBCN.js";
|
|
96
|
+
import "../chunk-TU5DTA2V.js";
|
|
97
97
|
import {
|
|
98
98
|
UsageError
|
|
99
99
|
} from "../chunk-CINBAX5G.js";
|
|
100
100
|
import {
|
|
101
101
|
readFileOrMissing
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-PM2NRK6Y.js";
|
|
103
103
|
import {
|
|
104
104
|
EXIT
|
|
105
105
|
} from "../chunk-BG4HHB7E.js";
|
|
106
106
|
import {
|
|
107
107
|
isInvocationOf
|
|
108
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-S3X6WLW5.js";
|
|
109
109
|
import "../chunk-UQTQ6HPO.js";
|
|
110
110
|
import {
|
|
111
111
|
DISCONNECTABLE_AGENTS,
|
|
112
112
|
DISCONNECT_AGENT_IDS,
|
|
113
113
|
hookCompatibleProfileBySource,
|
|
114
114
|
normalizeAgentId
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-US4LUIFU.js";
|
|
116
116
|
import "../chunk-MLKGABMK.js";
|
|
117
117
|
|
|
118
118
|
// bin/pushary-disconnect.ts
|
|
@@ -2649,8 +2649,8 @@ var init_claude_config_paths = __esm({
|
|
|
2649
2649
|
});
|
|
2650
2650
|
|
|
2651
2651
|
// src/cli/fsx.ts
|
|
2652
|
-
import { constants as fsConstants, copyFileSync, fstatSync, lstatSync, realpathSync, existsSync, fchmodSync, fsyncSync, mkdirSync, openSync, closeSync, readFileSync as readFileSync4, renameSync as renameSync2, statSync, unlinkSync as unlinkSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
2653
|
-
import { dirname as dirname2, join as join5 } from "path";
|
|
2652
|
+
import { constants as fsConstants, chmodSync, copyFileSync, fstatSync, lstatSync, realpathSync, existsSync, fchmodSync, fsyncSync, mkdirSync, openSync, closeSync, readFileSync as readFileSync4, renameSync as renameSync2, statSync, unlinkSync as unlinkSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
2653
|
+
import { basename, dirname as dirname2, join as join5 } from "path";
|
|
2654
2654
|
var readJsonSafe, READ_WITHOUT_WAITING, stamp, replaceThroughTempFile, jsonFileContents, writeJsonAtomicWithoutFsync;
|
|
2655
2655
|
var init_fsx = __esm({
|
|
2656
2656
|
"src/cli/fsx.ts"() {
|
|
@@ -3128,8 +3128,8 @@ import { join as join4 } from "path";
|
|
|
3128
3128
|
init_fsx();
|
|
3129
3129
|
init_paths();
|
|
3130
3130
|
import { createHash as createHash10 } from "crypto";
|
|
3131
|
-
import { lstatSync as
|
|
3132
|
-
import { basename as
|
|
3131
|
+
import { lstatSync as lstatSync6, readFileSync as readFileSync19, readdirSync as readdirSync3, realpathSync as realpathSync4, statSync as statSync6, unlinkSync as unlinkSync5 } from "fs";
|
|
3132
|
+
import { basename as basename5, dirname as dirname10, isAbsolute as isAbsolute2, join as join22, relative as relative2, resolve as resolve4, sep } from "path";
|
|
3133
3133
|
|
|
3134
3134
|
// src/transcript-phone-trust.ts
|
|
3135
3135
|
import { createHash as createHash5 } from "crypto";
|
|
@@ -7406,9 +7406,9 @@ init_claude_config_paths();
|
|
|
7406
7406
|
// src/keystore.ts
|
|
7407
7407
|
init_src();
|
|
7408
7408
|
init_fsx();
|
|
7409
|
-
import { chmodSync, existsSync as existsSync5, readFileSync as readFileSync11, realpathSync as realpathSync2, writeFileSync as writeFileSync3 } from "fs";
|
|
7409
|
+
import { chmodSync as chmodSync2, constants as fsConstants2, copyFileSync as copyFileSync2, existsSync as existsSync5, lstatSync as lstatSync4, mkdirSync as mkdirSync4, readdirSync as readdirSync2, readFileSync as readFileSync11, realpathSync as realpathSync2, rmSync as rmSync2, statSync as statSync3, writeFileSync as writeFileSync3 } from "fs";
|
|
7410
7410
|
import { homedir as homedir7 } from "os";
|
|
7411
|
-
import { join as join14 } from "path";
|
|
7411
|
+
import { basename as basename2, dirname as dirname5, isAbsolute, join as join14, relative } from "path";
|
|
7412
7412
|
|
|
7413
7413
|
// src/install-source.ts
|
|
7414
7414
|
init_src();
|
|
@@ -7427,7 +7427,7 @@ var readTranscriptPreference = () => {
|
|
|
7427
7427
|
// src/transcript-reader.ts
|
|
7428
7428
|
import { createHash as createHash8 } from "crypto";
|
|
7429
7429
|
import { join as join15 } from "path";
|
|
7430
|
-
import { closeSync as closeSync4, fstatSync as fstatSync4, openSync as openSync4, readFileSync as readFileSync14, readSync as readSync2, statSync as
|
|
7430
|
+
import { closeSync as closeSync4, fstatSync as fstatSync4, openSync as openSync4, readFileSync as readFileSync14, readSync as readSync2, statSync as statSync4 } from "fs";
|
|
7431
7431
|
|
|
7432
7432
|
// src/transcript-source.ts
|
|
7433
7433
|
init_src();
|
|
@@ -7474,8 +7474,8 @@ var hermesSnapshot = external_exports.object({
|
|
|
7474
7474
|
|
|
7475
7475
|
// src/transcript-snapshot-journal.ts
|
|
7476
7476
|
init_src();
|
|
7477
|
-
import { lstatSync as
|
|
7478
|
-
import { dirname as
|
|
7477
|
+
import { lstatSync as lstatSync5, mkdirSync as mkdirSync5, readFileSync as readFileSync13 } from "fs";
|
|
7478
|
+
import { dirname as dirname6 } from "path";
|
|
7479
7479
|
init_fsx();
|
|
7480
7480
|
|
|
7481
7481
|
// src/transcript-projection.ts
|
|
@@ -7840,8 +7840,8 @@ var hookOwnerOfCommands = (commands, appAvailable = true) => {
|
|
|
7840
7840
|
|
|
7841
7841
|
// src/daemon-lifecycle.ts
|
|
7842
7842
|
init_src();
|
|
7843
|
-
import { dirname as
|
|
7844
|
-
import { existsSync as existsSync6, mkdirSync as
|
|
7843
|
+
import { dirname as dirname9, join as join21, win32 as win32Path } from "path";
|
|
7844
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync8, readFileSync as readFileSync18, realpathSync as realpathSync3, renameSync as renameSync3, statSync as statSync5, unlinkSync as unlinkSync4, writeFileSync as writeFileSync5 } from "fs";
|
|
7845
7845
|
import { createHash as createHash9, randomUUID as randomUUID3 } from "crypto";
|
|
7846
7846
|
import { homedir as homedir8, uptime, userInfo } from "os";
|
|
7847
7847
|
|
|
@@ -7849,8 +7849,8 @@ import { homedir as homedir8, uptime, userInfo } from "os";
|
|
|
7849
7849
|
init_fsx();
|
|
7850
7850
|
init_paths();
|
|
7851
7851
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
7852
|
-
import { linkSync, mkdirSync as
|
|
7853
|
-
import { dirname as
|
|
7852
|
+
import { linkSync, mkdirSync as mkdirSync6, readFileSync as readFileSync15, rmSync as rmSync3, writeFileSync as writeFileSync4 } from "fs";
|
|
7853
|
+
import { dirname as dirname7, join as join18 } from "path";
|
|
7854
7854
|
|
|
7855
7855
|
// src/daemon-lifecycle.ts
|
|
7856
7856
|
init_version();
|
|
@@ -7870,8 +7870,8 @@ import { execFileSync as execFileSync3 } from "child_process";
|
|
|
7870
7870
|
|
|
7871
7871
|
// src/daemon-entry-guard.ts
|
|
7872
7872
|
init_fsx();
|
|
7873
|
-
import { mkdirSync as
|
|
7874
|
-
import { basename, dirname as
|
|
7873
|
+
import { mkdirSync as mkdirSync7, readFileSync as readFileSync17 } from "fs";
|
|
7874
|
+
import { basename as basename3, dirname as dirname8, join as join19 } from "path";
|
|
7875
7875
|
var DAEMON_ENTRY_GUARD_SOURCE = [
|
|
7876
7876
|
"const { existsSync } = require('node:fs')",
|
|
7877
7877
|
"if (process.argv[1] && !existsSync(process.argv[1])) process.exit(0)",
|
|
@@ -7939,7 +7939,7 @@ var firstString = (...values) => values.find((v) => typeof v === "string" && v.l
|
|
|
7939
7939
|
// ../hook-mapping/src/map.ts
|
|
7940
7940
|
init_src();
|
|
7941
7941
|
init_src();
|
|
7942
|
-
import { basename as
|
|
7942
|
+
import { basename as basename4 } from "path";
|
|
7943
7943
|
var AGENT_IDENTITIES = {
|
|
7944
7944
|
claude: { type: "claude_code", label: AGENT_LABELS_BY_TYPE.claude_code },
|
|
7945
7945
|
codex: { type: "codex", label: AGENT_LABELS_BY_TYPE.codex },
|
|
@@ -8069,7 +8069,7 @@ var cliRegistry = (apiKey = getApiKey()) => ({ apiKey, baseUrl: getBaseUrl(), di
|
|
|
8069
8069
|
var accountFor = (registry) => createHash10("sha256").update(`${registry.baseUrl}\0${registry.apiKey}`).digest("hex");
|
|
8070
8070
|
var TTL = 48 * 60 * 60 * 1e3;
|
|
8071
8071
|
var read = (path) => {
|
|
8072
|
-
if (
|
|
8072
|
+
if (statSync6(path).size > 16384) throw new Error("History registration exceeds its size limit");
|
|
8073
8073
|
return storedRegistrationSchema.parse(JSON.parse(readFileSync19(path, "utf8")));
|
|
8074
8074
|
};
|
|
8075
8075
|
var consent = (record) => record.consentOverride ?? readTranscriptPreference() ?? true;
|
|
@@ -8105,15 +8105,15 @@ var transcriptRoots = (source) => {
|
|
|
8105
8105
|
const configured = process.env.CLAUDE_CONFIG_DIR;
|
|
8106
8106
|
return [join22(configured || join22(home, ".claude"), TRANSCRIPT_ROOT_NAME.claude), join22(home, ".claude", TRANSCRIPT_ROOT_NAME.claude)];
|
|
8107
8107
|
};
|
|
8108
|
-
var isAgentTranscriptRoot = (root, source) =>
|
|
8108
|
+
var isAgentTranscriptRoot = (root, source) => isAbsolute2(root) && resolve4(root) === root && basename5(root) === TRANSCRIPT_ROOT_NAME[source];
|
|
8109
8109
|
var acceptedTranscriptRoots = (source, registeredRoot) => typeof registeredRoot === "string" && isAgentTranscriptRoot(registeredRoot, source) ? [...transcriptRoots(source), registeredRoot] : transcriptRoots(source);
|
|
8110
8110
|
var resolvedSourcePath = (path) => {
|
|
8111
8111
|
const absolute = resolve4(path);
|
|
8112
8112
|
try {
|
|
8113
8113
|
return realpathSync4(absolute);
|
|
8114
8114
|
} catch {
|
|
8115
|
-
const parent =
|
|
8116
|
-
return parent === absolute ? absolute : join22(resolvedSourcePath(parent),
|
|
8115
|
+
const parent = dirname10(absolute);
|
|
8116
|
+
return parent === absolute ? absolute : join22(resolvedSourcePath(parent), basename5(absolute));
|
|
8117
8117
|
}
|
|
8118
8118
|
};
|
|
8119
8119
|
var transcriptRootContaining = (candidate, roots) => {
|
|
@@ -8125,15 +8125,15 @@ var captureRegistration = (source, value, registeredRoot) => {
|
|
|
8125
8125
|
if (source !== "claude" && source !== "codex" && source !== "gemini" && source !== "cursor" && source !== "hermes") return null;
|
|
8126
8126
|
const sessionId = input.session_id ?? input.conversation_id;
|
|
8127
8127
|
if (input.agent_id || typeof sessionId !== "string" || !/^[\w-]{1,128}$/.test(sessionId)) return null;
|
|
8128
|
-
if (typeof input.cwd !== "string" || !
|
|
8128
|
+
if (typeof input.cwd !== "string" || !isAbsolute2(input.cwd)) return null;
|
|
8129
8129
|
const path = input.transcript_path ?? input.agent_transcript_path ?? (source === "claude" ? claudeTranscriptPath(input.cwd, sessionId) : null);
|
|
8130
|
-
if (typeof path !== "string" || !
|
|
8130
|
+
if (typeof path !== "string" || !isAbsolute2(path) || !(path.endsWith(".jsonl") || (source === "gemini" || source === "hermes") && path.endsWith(".json"))) return null;
|
|
8131
8131
|
const root = transcriptRootContaining(path, acceptedTranscriptRoots(source, registeredRoot));
|
|
8132
8132
|
if (root === null) return null;
|
|
8133
|
-
const segments =
|
|
8134
|
-
if (source === "hermes" && (segments.length !== 2 || !/^[a-f0-9]{64}$/.test(segments[0] ?? "") ||
|
|
8135
|
-
if (source === "gemini" && (segments.length !== 3 || segments[1] !== "chats" || !
|
|
8136
|
-
if (source === "cursor" && (segments[1] !== "agent-transcripts" ||
|
|
8133
|
+
const segments = relative2(root, path).split(sep);
|
|
8134
|
+
if (source === "hermes" && (segments.length !== 2 || !/^[a-f0-9]{64}$/.test(segments[0] ?? "") || basename5(path) !== `${sessionId}.json`)) return null;
|
|
8135
|
+
if (source === "gemini" && (segments.length !== 3 || segments[1] !== "chats" || !basename5(path).startsWith("session-"))) return null;
|
|
8136
|
+
if (source === "cursor" && (segments[1] !== "agent-transcripts" || basename5(path) !== `${sessionId}.jsonl` || !(segments.length === 3 || segments.length === 4 && basename5(dirname10(path)) === sessionId))) return null;
|
|
8137
8137
|
return { sessionId, cwd: input.cwd, path, source, root };
|
|
8138
8138
|
};
|
|
8139
8139
|
|