pushary 1.9.283 → 1.9.286
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/README.md +3 -1
- package/dist/{api-OJRU3MYI.js → api-TOVNW7WX.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +11 -11
- package/dist/bin/pushary-calls.js +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +38 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +115 -52
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +16 -1
- package/dist/bin/pushary-doctor.js +60 -54
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +46 -43
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +65 -61
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +54 -50
- package/dist/bin/pushary-wait.js +24 -24
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-K4YUNJDY.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-6VK43QVL.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-JSYYVEVW.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-RJ5HUNEE.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-JHYVJYGR.js → chunk-3LZPJBH7.js} +6 -6
- package/dist/{chunk-TBCHTCA2.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-AKUQLREQ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-5YSFXK2C.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-7OOQJD33.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-SIP2BFVS.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-EGZUBQL6.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-EANJH5FQ.js → chunk-64PJ5AVE.js} +5 -5
- package/dist/{chunk-I67ZGYEY.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-XKSIMUZM.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-EUO5U5V7.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-UIOTVHQB.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-EDVQWYSU.js → chunk-76UDPJET.js} +4 -4
- package/dist/{chunk-CPNPPYQL.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-XGWKMWKM.js → chunk-7GSBA2C2.js} +3 -3
- package/dist/{chunk-26RKJL2X.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-HX3RPHIH.js → chunk-7Y7YEKUY.js} +8 -8
- package/dist/{chunk-XC2O4MA3.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-CBA4AVFT.js → chunk-A4KQYTUZ.js} +4 -4
- package/dist/{chunk-YSR7QVMN.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-AIBGURF2.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-7VL6QZ3C.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-QU2NSBXD.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-UOABAWQ4.js → chunk-CCDQM7RZ.js} +6 -6
- package/dist/{chunk-E4WNMH33.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-N6RX3ZWB.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-JWMDRKAO.js → chunk-DFRYI4YG.js} +10 -10
- package/dist/{chunk-ATWYNEN4.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-JP7RRADP.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-YARDFZND.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-TVQWBXV2.js → chunk-FDCGIK7G.js} +33 -28
- package/dist/{chunk-5RSXB22M.js → chunk-GITZUSEJ.js} +4 -4
- package/dist/{chunk-M3MD5Y2O.js → chunk-H7PRRSXU.js} +5 -5
- package/dist/{chunk-KMMO3K2C.js → chunk-HGWAPTBM.js} +21 -14
- package/dist/{chunk-FIAXP3LF.js → chunk-IBOJQEH3.js} +6 -4
- package/dist/{chunk-L2BJVSVI.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-VYLJWG3B.js → chunk-JBK7WRPB.js} +1 -1
- package/dist/{chunk-XOZZ7LFC.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-GS4D3NTI.js → chunk-KLYYXDR6.js} +5 -5
- package/dist/{chunk-J2UDVVCB.js → chunk-KM4W3CFD.js} +6 -6
- package/dist/{chunk-SWGR226D.js → chunk-KU5MWQNB.js} +10 -10
- package/dist/{chunk-CA7VX4KS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-2JWCBGFX.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-SL6ZTQA2.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-OOSOLBO2.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QSPYUDHD.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-4RPG3SFC.js → chunk-NAD2JOKF.js} +16 -6
- package/dist/{chunk-B7SK3EXB.js → chunk-NYVJXU6Q.js} +5 -5
- package/dist/{chunk-Y5INUJ2S.js → chunk-OPRYDCR4.js} +3 -3
- package/dist/{chunk-OYRQZWXW.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-CWQU75DS.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-FQWIGDXG.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-IPJRN56U.js → chunk-PSYSXBML.js} +5 -5
- package/dist/{chunk-IP6BVZZL.js → chunk-PUNGQGSR.js} +6 -6
- package/dist/{chunk-SAFK3BQB.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7PRPLYOT.js → chunk-QTNBPBYN.js} +1 -1
- package/dist/{chunk-M6T24IVX.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-73SEBA5G.js → chunk-S3IF6XHT.js} +4 -4
- package/dist/{chunk-HKXFHEB4.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-JPSCKMYH.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-VO22G4MS.js → chunk-TQ2KJLRJ.js} +14 -12
- package/dist/{chunk-6MUWWEYX.js → chunk-U3K6SCMH.js} +7 -7
- package/dist/{chunk-T5D3F6ME.js → chunk-UGMQTJKX.js} +5 -5
- package/dist/{chunk-IX2DKVF2.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-FNENGMPK.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-4ZWNL3CK.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DTYSJP6K.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-PUNIACRA.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-IASJJRQV.js → chunk-W3CDMHZZ.js} +3 -3
- package/dist/{chunk-3B3UE65E.js → chunk-WDYTF6K7.js} +12 -12
- package/dist/{chunk-NWFO2WGB.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/{chunk-YG5TIW73.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-ZUHELFIM.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-OQVYOMNI.js → chunk-Y3PDFOIE.js} +4 -4
- package/dist/{chunk-AOLCAXRB.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-6RAIYGKT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{chunk-OTIXTZA6.js → chunk-YXKUZSPA.js} +2 -2
- package/dist/{chunk-7Y3NHQSD.js → chunk-ZAMK4GF4.js} +5 -5
- package/dist/{chunk-6GCGRTR7.js → chunk-ZROT5ZDA.js} +1 -1
- package/dist/{codex-app-cards-switch-2ZVORWWV.js → codex-app-cards-switch-TZHVNF3N.js} +11 -11
- package/dist/{codex-card-routing-PLD74MXM.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-BDR7I3AT.js → codex-desktop-launch-BQ4XMGMF.js} +3 -3
- package/dist/{codex-session-launch-HZJWXLWT.js → codex-session-launch-RGPJ6DBA.js} +21 -21
- package/dist/{config-DY2KBMHL.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-H4CHC3PX.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-BEGPK37L.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-W4YZO6AH.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-J7L3IDOW.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-3ECJVIWC.js → reapply-YJL4U5EY.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UPLYK4CW.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-ZDDF7U5L.js → usage-YDADZALP.js} +3 -3
- package/package.json +1 -1
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
coworkOutput,
|
|
4
4
|
parseCoworkOptions
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-77F7TPQE.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-QQDGYEWB.js";
|
|
13
|
+
import "../chunk-VFPXC2HE.js";
|
|
14
14
|
import "../chunk-BZIBNSQE.js";
|
|
15
15
|
import {
|
|
16
16
|
UsageError
|
|
17
17
|
} from "../chunk-CINBAX5G.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-BETDBGC7.js";
|
|
19
19
|
import {
|
|
20
20
|
EXIT
|
|
21
21
|
} from "../chunk-BG4HHB7E.js";
|
|
22
22
|
import "../chunk-CXQWDQCJ.js";
|
|
23
23
|
import {
|
|
24
24
|
CLAUDE_CONNECTOR_GUIDE
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-NAD2JOKF.js";
|
|
26
26
|
import "../chunk-MLKGABMK.js";
|
|
27
27
|
|
|
28
28
|
// bin/pushary-cowork.ts
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readHookWiring,
|
|
4
4
|
readHookWiringSafely
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-KU5MWQNB.js";
|
|
6
|
+
import "../chunk-L4PIOZIP.js";
|
|
7
7
|
import {
|
|
8
8
|
inspectConfiguredManagedProviders
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-WDYTF6K7.js";
|
|
10
10
|
import "../chunk-TWWOQKXK.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-6ZRSO6PM.js";
|
|
12
12
|
import {
|
|
13
13
|
keepLinuxDaemonAfterLogout,
|
|
14
14
|
lingerReportOf
|
|
@@ -16,69 +16,77 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
HEARTBEAT_INTERVAL_MS,
|
|
18
18
|
sendHeartbeat
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-2HA6AGLM.js";
|
|
20
|
+
import "../chunk-BCYXPGOQ.js";
|
|
21
21
|
import {
|
|
22
22
|
readLocalAutoUpdateReport
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-WUDKVYSQ.js";
|
|
24
|
+
import "../chunk-XCPZ64EV.js";
|
|
25
25
|
import {
|
|
26
26
|
readSignedOutDiagnosis
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-4TOJHGPX.js";
|
|
28
28
|
import {
|
|
29
29
|
startRegisteredTranscripts
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-DFRYI4YG.js";
|
|
31
31
|
import "../chunk-WHB622LP.js";
|
|
32
32
|
import {
|
|
33
33
|
HERMES_INSTALL_MARKER_FILE,
|
|
34
34
|
defaultHermesHome,
|
|
35
35
|
parseHermesInstallMarker
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-4KPUTQPG.js";
|
|
37
37
|
import {
|
|
38
38
|
writeHuman
|
|
39
39
|
} from "../chunk-QCGNGEGE.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-P4FD4WGC.js";
|
|
41
|
+
import "../chunk-64PJ5AVE.js";
|
|
42
|
+
import "../chunk-LF2BFP3F.js";
|
|
43
|
+
import "../chunk-A4KQYTUZ.js";
|
|
44
|
+
import "../chunk-U3K6SCMH.js";
|
|
45
|
+
import "../chunk-MTSTB2GL.js";
|
|
46
|
+
import "../chunk-DYIU6SSG.js";
|
|
47
|
+
import "../chunk-PUNGQGSR.js";
|
|
48
|
+
import "../chunk-LP2VGPHZ.js";
|
|
49
49
|
import {
|
|
50
50
|
exitOnHelpFlag
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-QQDGYEWB.js";
|
|
52
52
|
import {
|
|
53
53
|
DAEMON_LEASE_RENEW_INTERVAL_MS,
|
|
54
|
+
DAEMON_TURNED_OFF_SINCE_VERSION,
|
|
55
|
+
DAEMON_TURN_BACK_ON,
|
|
54
56
|
DAEMON_YIELD_CHECK_INTERVAL_MS,
|
|
55
57
|
acquireDaemonLease,
|
|
56
58
|
clearDaemonNeedsLogin,
|
|
59
|
+
clearDaemonTurnedOffByUser,
|
|
60
|
+
cliVersionIgnoresDaemonTurnedOff,
|
|
57
61
|
daemonServiceManagerAvailable,
|
|
58
62
|
describeDaemonLoginBlock,
|
|
63
|
+
describeDaemonTurnedOffByUser,
|
|
59
64
|
ensureDaemonRunning,
|
|
60
65
|
hasDaemonServiceDefinition,
|
|
61
66
|
manageDaemonService,
|
|
62
67
|
parseDaemonAction,
|
|
63
68
|
readDaemonNeedsLogin,
|
|
64
69
|
readDaemonStatus,
|
|
70
|
+
readDaemonTurnedOffByUser,
|
|
71
|
+
recordDaemonTurnedOffByUser,
|
|
65
72
|
replaceDaemonService,
|
|
66
73
|
requestDaemonHandoff,
|
|
74
|
+
restoreDaemonTurnedOffByUser,
|
|
67
75
|
stopDaemonRunning,
|
|
68
76
|
writeDaemonNeedsLogin
|
|
69
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-5DF6YZPG.js";
|
|
70
78
|
import {
|
|
71
79
|
hookOwnerOf
|
|
72
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-V5LIBKOQ.js";
|
|
73
81
|
import {
|
|
74
82
|
markPendingCommandRefused,
|
|
75
83
|
pendingCommandReceipts,
|
|
76
84
|
removePendingCommand
|
|
77
|
-
} from "../chunk-
|
|
78
|
-
import "../chunk-
|
|
79
|
-
import "../chunk-
|
|
85
|
+
} from "../chunk-HGWAPTBM.js";
|
|
86
|
+
import "../chunk-ESTQIKTS.js";
|
|
87
|
+
import "../chunk-VFPXC2HE.js";
|
|
80
88
|
import "../chunk-Z25VDYAL.js";
|
|
81
|
-
import "../chunk-
|
|
89
|
+
import "../chunk-5FZ2K4UV.js";
|
|
82
90
|
import "../chunk-BZIBNSQE.js";
|
|
83
91
|
import {
|
|
84
92
|
codexBinaryIsBroken,
|
|
@@ -89,8 +97,8 @@ import {
|
|
|
89
97
|
launchableProviders,
|
|
90
98
|
resolveControlPolicy,
|
|
91
99
|
trackProviderInventory
|
|
92
|
-
} from "../chunk-
|
|
93
|
-
import "../chunk-
|
|
100
|
+
} from "../chunk-XNWLSADP.js";
|
|
101
|
+
import "../chunk-YV7BK4UO.js";
|
|
94
102
|
import {
|
|
95
103
|
SESSION_REAP_SILENCE_MS,
|
|
96
104
|
describeIdleWindow,
|
|
@@ -98,9 +106,9 @@ import {
|
|
|
98
106
|
listProcessProofs,
|
|
99
107
|
ownsLiveProcess,
|
|
100
108
|
silentSpawnedProofs
|
|
101
|
-
} from "../chunk-
|
|
102
|
-
import "../chunk-
|
|
103
|
-
import "../chunk-
|
|
109
|
+
} from "../chunk-P47NDCPH.js";
|
|
110
|
+
import "../chunk-OPRYDCR4.js";
|
|
111
|
+
import "../chunk-44RAWLI3.js";
|
|
104
112
|
import "../chunk-P6DUWKAO.js";
|
|
105
113
|
import "../chunk-TCE3J44Z.js";
|
|
106
114
|
import {
|
|
@@ -109,43 +117,48 @@ import {
|
|
|
109
117
|
import {
|
|
110
118
|
readCommandAck,
|
|
111
119
|
refusedReceiptMessage
|
|
112
|
-
} from "../chunk-
|
|
113
|
-
import "../chunk-
|
|
120
|
+
} from "../chunk-CDOFQJ2Z.js";
|
|
121
|
+
import "../chunk-TQ2KJLRJ.js";
|
|
114
122
|
import "../chunk-POFBE6ZY.js";
|
|
115
|
-
import "../chunk-
|
|
116
|
-
import "../chunk-
|
|
123
|
+
import "../chunk-CCDQM7RZ.js";
|
|
124
|
+
import "../chunk-IBOJQEH3.js";
|
|
117
125
|
import {
|
|
118
126
|
projectNameFor
|
|
119
|
-
} from "../chunk-
|
|
120
|
-
import "../chunk-
|
|
121
|
-
import "../chunk-
|
|
127
|
+
} from "../chunk-YQVGPAZV.js";
|
|
128
|
+
import "../chunk-A533F6TF.js";
|
|
129
|
+
import "../chunk-4Y7RNQO5.js";
|
|
122
130
|
import {
|
|
123
131
|
getMachineId
|
|
124
|
-
} from "../chunk-
|
|
132
|
+
} from "../chunk-SRGKENVI.js";
|
|
125
133
|
import {
|
|
126
134
|
readControlMode
|
|
127
|
-
} from "../chunk-
|
|
135
|
+
} from "../chunk-VVXWDBZK.js";
|
|
128
136
|
import {
|
|
129
137
|
claudeConfigDir,
|
|
130
138
|
codexHome
|
|
131
|
-
} from "../chunk-
|
|
139
|
+
} from "../chunk-6YVIWLL2.js";
|
|
132
140
|
import "../chunk-6ICPEJY5.js";
|
|
133
141
|
import {
|
|
134
|
-
resolveBinary
|
|
135
|
-
|
|
142
|
+
resolveBinary,
|
|
143
|
+
resolveGlobalPackageVersion
|
|
144
|
+
} from "../chunk-SNR7BUWT.js";
|
|
136
145
|
import {
|
|
137
146
|
getApiKey,
|
|
138
147
|
getBaseUrl
|
|
139
|
-
} from "../chunk-
|
|
148
|
+
} from "../chunk-JPCVW3BA.js";
|
|
140
149
|
import "../chunk-CINBAX5G.js";
|
|
141
150
|
import {
|
|
142
151
|
writeJsonAtomicDurable
|
|
143
152
|
} from "../chunk-PM2NRK6Y.js";
|
|
144
|
-
import
|
|
153
|
+
import {
|
|
154
|
+
NPX_LATEST_COMMAND
|
|
155
|
+
} from "../chunk-BETDBGC7.js";
|
|
145
156
|
import {
|
|
146
157
|
EXIT
|
|
147
158
|
} from "../chunk-BG4HHB7E.js";
|
|
148
|
-
import
|
|
159
|
+
import {
|
|
160
|
+
CLI_PACKAGE_NAMES
|
|
161
|
+
} from "../chunk-CXQWDQCJ.js";
|
|
149
162
|
import {
|
|
150
163
|
CLAUDE_INBOX,
|
|
151
164
|
CLAUDE_INBOX_MAX_SESSIONS,
|
|
@@ -178,7 +191,7 @@ import {
|
|
|
178
191
|
parseHermesAdmission,
|
|
179
192
|
parseHermesReplayCursor,
|
|
180
193
|
qualifyHermesReceiptMode
|
|
181
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-NAD2JOKF.js";
|
|
182
195
|
import "../chunk-MLKGABMK.js";
|
|
183
196
|
|
|
184
197
|
// src/spawn-claim.ts
|
|
@@ -1812,6 +1825,12 @@ var trackFailureStreak = (name, sinks) => {
|
|
|
1812
1825
|
var rejectedKeyReason = (apiKey) => readSignedOutDiagnosis(apiKey, "rejected").kind === "signed_out_on_mac" ? "mac_signed_out" : "key_rejected";
|
|
1813
1826
|
var missingKeyReason = () => readSignedOutDiagnosis(null, "unchecked").kind === "signed_out_on_mac" ? "mac_signed_out" : "key_missing";
|
|
1814
1827
|
var runSpawnDaemon = async () => {
|
|
1828
|
+
const turnedOff = readDaemonTurnedOffByUser();
|
|
1829
|
+
if (turnedOff) {
|
|
1830
|
+
stderr(`[pushary] daemon not starting: ${describeDaemonTurnedOffByUser(turnedOff)}
|
|
1831
|
+
`);
|
|
1832
|
+
return 0;
|
|
1833
|
+
}
|
|
1815
1834
|
const loginBlock = readDaemonNeedsLogin();
|
|
1816
1835
|
if (loginBlock.kind === "blocked") {
|
|
1817
1836
|
stderr(`[pushary] daemon not starting: ${describeDaemonLoginBlock(loginBlock.record)}
|
|
@@ -2299,6 +2318,37 @@ var describeSessionProofs = (entries, now, residentSet) => {
|
|
|
2299
2318
|
|
|
2300
2319
|
// bin/pushary-daemon.ts
|
|
2301
2320
|
exitOnHelpFlag("daemon");
|
|
2321
|
+
var DAEMON_UNINSTALLED_MESSAGE = `[pushary] daemon service removed. It stays off: with Pushary CLI ${DAEMON_TURNED_OFF_SINCE_VERSION} or later, agent hooks and \`pushary claude\` will not start it again; ${DAEMON_TURN_BACK_ON}.
|
|
2322
|
+
`;
|
|
2323
|
+
var UPDATE_COMMAND = `${NPX_LATEST_COMMAND} upgrade`;
|
|
2324
|
+
var describeOlderGlobalCli = (version) => `[pushary] The pushary installed globally on this computer is ${version}, older than ${DAEMON_TURNED_OFF_SINCE_VERSION}, so its hooks can start the daemon again. Update it: ${UPDATE_COMMAND}
|
|
2325
|
+
`;
|
|
2326
|
+
var olderGlobalCliVersion = () => CLI_PACKAGE_NAMES.map((name) => resolveGlobalPackageVersion(name)).find((version) => version !== void 0 && cliVersionIgnoresDaemonTurnedOff(version)) ?? null;
|
|
2327
|
+
var stopRunningDaemonAndAnyRacingStart = async () => {
|
|
2328
|
+
const stopped = await stopDaemonRunning();
|
|
2329
|
+
if (stopped.kind === "unavailable") return stopped;
|
|
2330
|
+
return readDaemonStatus().kind === "absent" ? stopped : stopDaemonRunning();
|
|
2331
|
+
};
|
|
2332
|
+
var uninstallDaemon = async () => {
|
|
2333
|
+
const recorded = recordDaemonTurnedOffByUser();
|
|
2334
|
+
const failed = applyService("uninstall");
|
|
2335
|
+
const stopped = await stopRunningDaemonAndAnyRacingStart();
|
|
2336
|
+
if (failed || stopped.kind === "unavailable") {
|
|
2337
|
+
const detail = [failed, stopped.kind === "unavailable" ? stopped.detail : null].filter(Boolean).join("; ");
|
|
2338
|
+
process.stderr.write(`[pushary] daemon could not stop: ${detail}
|
|
2339
|
+
`);
|
|
2340
|
+
return EXIT.FAILED;
|
|
2341
|
+
}
|
|
2342
|
+
if (recorded.kind === "failed") {
|
|
2343
|
+
process.stderr.write(`[pushary] daemon service removed, but Pushary could not record that you turned it off (${recorded.detail}), so an agent hook can start it again. Make ~/.pushary writable and run \`pushary daemon uninstall\` again.
|
|
2344
|
+
`);
|
|
2345
|
+
return EXIT.FAILED;
|
|
2346
|
+
}
|
|
2347
|
+
process.stdout.write(DAEMON_UNINSTALLED_MESSAGE);
|
|
2348
|
+
const older = olderGlobalCliVersion();
|
|
2349
|
+
if (older) process.stderr.write(describeOlderGlobalCli(older));
|
|
2350
|
+
return EXIT.OK;
|
|
2351
|
+
};
|
|
2302
2352
|
var serviceFailure = (result) => result.kind === "ok" ? null : result.detail;
|
|
2303
2353
|
var applyService = (action) => serviceFailure(manageDaemonService(action));
|
|
2304
2354
|
var waitForManagedDaemon = async () => {
|
|
@@ -2316,6 +2366,9 @@ var main = async () => {
|
|
|
2316
2366
|
if (action === "status") {
|
|
2317
2367
|
const status = readDaemonStatus();
|
|
2318
2368
|
process.stdout.write(`Pushary daemon: ${status.kind}${status.pid ? ` (pid ${status.pid})` : ""}
|
|
2369
|
+
`);
|
|
2370
|
+
const turnedOff = readDaemonTurnedOffByUser();
|
|
2371
|
+
if (turnedOff) process.stdout.write(`The daemon is ${describeDaemonTurnedOffByUser(turnedOff)}.
|
|
2319
2372
|
`);
|
|
2320
2373
|
if (status.lastError) process.stdout.write(`Last error: ${status.lastError.message} at ${status.lastError.at}
|
|
2321
2374
|
`);
|
|
@@ -2324,18 +2377,26 @@ var main = async () => {
|
|
|
2324
2377
|
`);
|
|
2325
2378
|
return status.kind === "running" ? EXIT.OK : EXIT.UNREACHABLE;
|
|
2326
2379
|
}
|
|
2380
|
+
if (action === "uninstall") return uninstallDaemon();
|
|
2327
2381
|
if (action === "install" || action === "start" || action === "restart") {
|
|
2328
2382
|
if (!getApiKey()) {
|
|
2329
2383
|
process.stderr.write("[pushary] daemon service has no readable API key; re-run setup.\n");
|
|
2330
2384
|
return EXIT.FAILED;
|
|
2331
2385
|
}
|
|
2332
2386
|
const status = readDaemonStatus();
|
|
2387
|
+
const turnedOff = readDaemonTurnedOffByUser();
|
|
2333
2388
|
const controlPolicy = resolveControlPolicy({
|
|
2334
2389
|
mode: readControlMode() ?? (action === "install" ? "on" : null),
|
|
2335
2390
|
providerAvailable: hasSpawnProvider(detectProviderLiveCapabilities(inspectConfiguredManagedProviders())),
|
|
2336
2391
|
managerAvailable: daemonServiceManagerAvailable(),
|
|
2337
|
-
servicePresent: status.kind !== "absent" || hasDaemonServiceDefinition()
|
|
2392
|
+
servicePresent: status.kind !== "absent" || hasDaemonServiceDefinition(),
|
|
2393
|
+
turnedOffByUser: action !== "install" && turnedOff !== null
|
|
2338
2394
|
});
|
|
2395
|
+
if (controlPolicy === "turned-off" && turnedOff) {
|
|
2396
|
+
process.stderr.write(`[pushary] the daemon service is ${describeDaemonTurnedOffByUser(turnedOff)}.
|
|
2397
|
+
`);
|
|
2398
|
+
return EXIT.FAILED;
|
|
2399
|
+
}
|
|
2339
2400
|
if (controlPolicy !== "enabled") {
|
|
2340
2401
|
process.stderr.write(`[pushary] daemon service is ${controlPolicy}; run setup with --control on to configure phone-start safely.
|
|
2341
2402
|
`);
|
|
@@ -2343,8 +2404,11 @@ var main = async () => {
|
|
|
2343
2404
|
}
|
|
2344
2405
|
}
|
|
2345
2406
|
if (action === "install") {
|
|
2407
|
+
const turnedOff = readDaemonTurnedOffByUser();
|
|
2408
|
+
clearDaemonTurnedOffByUser();
|
|
2346
2409
|
const installed = await replaceDaemonService();
|
|
2347
2410
|
if (installed.kind !== "ok") {
|
|
2411
|
+
if (turnedOff) restoreDaemonTurnedOffByUser(turnedOff);
|
|
2348
2412
|
process.stderr.write(`[pushary] daemon service install failed: ${installed.detail}
|
|
2349
2413
|
`);
|
|
2350
2414
|
return EXIT.FAILED;
|
|
@@ -2377,8 +2441,7 @@ var main = async () => {
|
|
|
2377
2441
|
process.stdout.write("[pushary] daemon service online\n");
|
|
2378
2442
|
return EXIT.OK;
|
|
2379
2443
|
}
|
|
2380
|
-
const
|
|
2381
|
-
const failed = applyService(serviceAction);
|
|
2444
|
+
const failed = applyService("stop");
|
|
2382
2445
|
const stopped = await stopDaemonRunning();
|
|
2383
2446
|
if (failed || stopped.kind === "unavailable") {
|
|
2384
2447
|
const detail = [failed, stopped.kind === "unavailable" ? stopped.detail : null].filter(Boolean).join("; ");
|
|
@@ -2402,7 +2465,7 @@ var main = async () => {
|
|
|
2402
2465
|
process.stdout.write("[pushary] daemon service restarted\n");
|
|
2403
2466
|
return EXIT.OK;
|
|
2404
2467
|
}
|
|
2405
|
-
process.stdout.write(
|
|
2468
|
+
process.stdout.write("[pushary] daemon stopped\n");
|
|
2406
2469
|
return EXIT.OK;
|
|
2407
2470
|
};
|
|
2408
2471
|
main().then((code) => process.exit(code)).catch((err) => {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
declinedAgentsFile,
|
|
4
4
|
recordDeclinedAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-6ZRSO6PM.js";
|
|
6
6
|
import {
|
|
7
7
|
isCursorPluginLeftover,
|
|
8
8
|
isPusharyCursorPluginManifest,
|
|
9
9
|
releaseSoleGate
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-GITZUSEJ.js";
|
|
11
11
|
import {
|
|
12
12
|
planFxRemoval,
|
|
13
13
|
removeClineServer
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-64PJ5AVE.js";
|
|
15
|
+
import "../chunk-LF2BFP3F.js";
|
|
16
|
+
import "../chunk-A4KQYTUZ.js";
|
|
17
17
|
import {
|
|
18
18
|
hasForeignPlugins,
|
|
19
19
|
macAppBridgeAvailable,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
openCodePluginDir,
|
|
23
23
|
openCodePluginFile,
|
|
24
24
|
removeOpenCodeMcpServer
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-U3K6SCMH.js";
|
|
26
26
|
import {
|
|
27
27
|
isOpenCodePluginOurs
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-MTSTB2GL.js";
|
|
29
29
|
import {
|
|
30
30
|
OPENCODE_PLUGIN_SIBLING,
|
|
31
31
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-DYIU6SSG.js";
|
|
33
33
|
import {
|
|
34
34
|
compatibleConfigFile,
|
|
35
35
|
compatibleDocuments,
|
|
@@ -39,32 +39,32 @@ import {
|
|
|
39
39
|
isEmptiedPusharyOwnedDocument,
|
|
40
40
|
removeCompatibleHooks,
|
|
41
41
|
removeCompatibleMcpServer
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-PUNGQGSR.js";
|
|
43
|
+
import "../chunk-LP2VGPHZ.js";
|
|
44
44
|
import {
|
|
45
45
|
exitOnHelpFlag
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-QQDGYEWB.js";
|
|
47
47
|
import {
|
|
48
48
|
removeGeminiSettings
|
|
49
|
-
} from "../chunk-
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
49
|
+
} from "../chunk-V5LIBKOQ.js";
|
|
50
|
+
import "../chunk-HGWAPTBM.js";
|
|
51
|
+
import "../chunk-ESTQIKTS.js";
|
|
52
|
+
import "../chunk-VFPXC2HE.js";
|
|
53
53
|
import "../chunk-Z25VDYAL.js";
|
|
54
|
-
import "../chunk-
|
|
54
|
+
import "../chunk-5FZ2K4UV.js";
|
|
55
55
|
import {
|
|
56
56
|
parseFlags
|
|
57
57
|
} from "../chunk-BZIBNSQE.js";
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-CDOFQJ2Z.js";
|
|
59
|
+
import "../chunk-TQ2KJLRJ.js";
|
|
60
60
|
import "../chunk-POFBE6ZY.js";
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-CCDQM7RZ.js";
|
|
62
|
+
import "../chunk-IBOJQEH3.js";
|
|
63
|
+
import "../chunk-YQVGPAZV.js";
|
|
64
|
+
import "../chunk-A533F6TF.js";
|
|
65
|
+
import "../chunk-4Y7RNQO5.js";
|
|
66
|
+
import "../chunk-SRGKENVI.js";
|
|
67
|
+
import "../chunk-VVXWDBZK.js";
|
|
68
68
|
import {
|
|
69
69
|
claudeJson,
|
|
70
70
|
claudeMcpReceipt,
|
|
@@ -95,10 +95,10 @@ import {
|
|
|
95
95
|
removePusharySettings,
|
|
96
96
|
removePusharyToolPermissions,
|
|
97
97
|
restoreClaudeMcpServer
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-6YVIWLL2.js";
|
|
99
99
|
import "../chunk-6ICPEJY5.js";
|
|
100
|
-
import "../chunk-
|
|
101
|
-
import "../chunk-
|
|
100
|
+
import "../chunk-SNR7BUWT.js";
|
|
101
|
+
import "../chunk-JPCVW3BA.js";
|
|
102
102
|
import {
|
|
103
103
|
UsageError
|
|
104
104
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
} from "../chunk-PM2NRK6Y.js";
|
|
108
108
|
import {
|
|
109
109
|
isInvocationOf
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-BETDBGC7.js";
|
|
111
111
|
import {
|
|
112
112
|
EXIT
|
|
113
113
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
DISCONNECT_AGENT_IDS,
|
|
118
118
|
hookCompatibleProfileBySource,
|
|
119
119
|
normalizeAgentId
|
|
120
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-NAD2JOKF.js";
|
|
121
121
|
import "../chunk-MLKGABMK.js";
|
|
122
122
|
|
|
123
123
|
// bin/pushary-disconnect.ts
|
|
@@ -1667,6 +1667,13 @@ var init_delivery_stall = __esm({
|
|
|
1667
1667
|
}
|
|
1668
1668
|
});
|
|
1669
1669
|
|
|
1670
|
+
// ../contracts/src/web-push-endpoint.ts
|
|
1671
|
+
var init_web_push_endpoint = __esm({
|
|
1672
|
+
"../contracts/src/web-push-endpoint.ts"() {
|
|
1673
|
+
"use strict";
|
|
1674
|
+
}
|
|
1675
|
+
});
|
|
1676
|
+
|
|
1670
1677
|
// ../contracts/src/api-key-shape.ts
|
|
1671
1678
|
var API_KEY_PREFIX_SHAPE, API_KEY_PREFIX_PATTERN, API_KEY_PATTERN, isValidApiKey;
|
|
1672
1679
|
var init_api_key_shape = __esm({
|
|
@@ -2432,6 +2439,7 @@ var init_src = __esm({
|
|
|
2432
2439
|
init_cursor();
|
|
2433
2440
|
init_degraded();
|
|
2434
2441
|
init_delivery_stall();
|
|
2442
|
+
init_web_push_endpoint();
|
|
2435
2443
|
init_redaction();
|
|
2436
2444
|
init_decision_reply();
|
|
2437
2445
|
init_approval_risk();
|
|
@@ -4319,7 +4327,7 @@ var init_commands = __esm({
|
|
|
4319
4327
|
["install", "Install and start the native per-user service"],
|
|
4320
4328
|
["start | stop | restart", "Control the installed service"],
|
|
4321
4329
|
["status", "Show local daemon health and PID"],
|
|
4322
|
-
["uninstall", "Stop and remove the native service"],
|
|
4330
|
+
["uninstall", "Stop and remove the native service. It stays off until daemon install or setup"],
|
|
4323
4331
|
["foreground", "Run attached to this terminal for diagnostics"]
|
|
4324
4332
|
]
|
|
4325
4333
|
};
|
|
@@ -4616,9 +4624,11 @@ var init_bridge = __esm({
|
|
|
4616
4624
|
});
|
|
4617
4625
|
|
|
4618
4626
|
// src/agent-version.ts
|
|
4627
|
+
var formatVersion;
|
|
4619
4628
|
var init_agent_version = __esm({
|
|
4620
4629
|
"src/agent-version.ts"() {
|
|
4621
4630
|
"use strict";
|
|
4631
|
+
formatVersion = (version) => version.join(".");
|
|
4622
4632
|
}
|
|
4623
4633
|
});
|
|
4624
4634
|
|
|
@@ -9601,6 +9611,7 @@ var hookOwnerOfCommands = (commands, appAvailable = true) => {
|
|
|
9601
9611
|
|
|
9602
9612
|
// src/daemon-lifecycle.ts
|
|
9603
9613
|
init_src();
|
|
9614
|
+
init_agent_version();
|
|
9604
9615
|
import { dirname as dirname9, join as join22, win32 as win32Path } from "path";
|
|
9605
9616
|
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";
|
|
9606
9617
|
import { createHash as createHash9, randomUUID as randomUUID3 } from "crypto";
|
|
@@ -9653,6 +9664,10 @@ var POWERSHELL_SINGLE_QUOTES = /['\u2018\u2019\u201A\u201B]/g;
|
|
|
9653
9664
|
var powershellLiteral = (value) => `'${value.replace(POWERSHELL_SINGLE_QUOTES, (quote) => quote + quote)}'`;
|
|
9654
9665
|
var WINDOWS_TASK_LOOKUP = `$task = @(Get-ScheduledTask -ErrorAction Stop) | Where-Object { $_.TaskName -eq ${powershellLiteral(WINDOWS_TASK_NAME)} -and $_.TaskPath -eq '\\' } | Select-Object -First 1; if ($null -eq $task) { exit 3 }`;
|
|
9655
9666
|
var powershellCommandLineEndsWithLaunchFlag = `$_.CommandLine.TrimEnd().TrimEnd([char]34).EndsWith(${powershellLiteral(SUPERVISOR_LAUNCH_FLAG)})`;
|
|
9667
|
+
var DAEMON_INSTALL_COMMAND = "pushary daemon install";
|
|
9668
|
+
var DAEMON_TURN_BACK_ON = `run \`${DAEMON_INSTALL_COMMAND}\` or setup to turn it back on`;
|
|
9669
|
+
var TURNED_OFF_FLOOR = [1, 9, 284];
|
|
9670
|
+
var DAEMON_TURNED_OFF_SINCE_VERSION = formatVersion(TURNED_OFF_FLOOR);
|
|
9656
9671
|
var HANDOFF_WAIT_FLOOR_MS = DAEMON_YIELD_CHECK_INTERVAL_MS * 2;
|
|
9657
9672
|
|
|
9658
9673
|
// src/transcript-registration.ts
|