pushary 1.9.282 → 1.9.285
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 +23 -0
- package/README.md +3 -1
- package/dist/{api-WBSDPSHN.js → api-4MGFAW5H.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 +18 -4
- package/dist/bin/pushary-doctor.js +72 -73
- 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 +67 -30
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-JUZC524C.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-GS6XPW45.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-MYXHCXD3.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-36CZVHOH.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-SIZMK3SF.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-67D6KDPJ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-PATTVCJS.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-YQNGHX3P.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-O6LVUSRY.js → chunk-52XX2DYG.js} +6 -6
- package/dist/{chunk-3FCGMTG2.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-PUDKDFOZ.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-T2JHF3E4.js → chunk-5IJ252DT.js} +7 -7
- package/dist/{chunk-3AKD2IMA.js → chunk-6T367UEE.js} +6 -6
- package/dist/{chunk-VY7Q5MEQ.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-KSHM2X7A.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-TCQ3SHEC.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-7OV4MW6B.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-R5P25UN2.js → chunk-745DB5AH.js} +5 -5
- package/dist/{chunk-XV54WWNB.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-2SE3TSWT.js → chunk-7GHHQFHH.js} +10 -10
- package/dist/{chunk-7WCBGOXC.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-3I6Z6YKA.js → chunk-7U43GCFH.js} +5 -5
- package/dist/{chunk-HPYVOBVO.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-QXPI7LOZ.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-IJOGKO3Z.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-L25W4SZ2.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-USRBNJJX.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-M4B3D76U.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-SCR7JFIZ.js → chunk-CE4D3FCO.js} +12 -12
- package/dist/{chunk-QGQA4VUR.js → chunk-CITB5W5V.js} +8 -8
- package/dist/{chunk-LKL7VIWF.js → chunk-CP65XDI7.js} +3 -3
- package/dist/{chunk-KV65OAIF.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-ZL46IS5W.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-2562EGWD.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-7CCJLPFF.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-AGBCUPRE.js → chunk-FLUKEERY.js} +5 -5
- package/dist/{chunk-ODSUVMII.js → chunk-FQC76AYR.js} +5 -5
- package/dist/{chunk-DLRZZHXC.js → chunk-HHGZZIKD.js} +6 -6
- package/dist/{chunk-RECYGQIM.js → chunk-HOAWHKM3.js} +20 -18
- package/dist/{chunk-G6EN7DLG.js → chunk-HWIDUN2Q.js} +10 -10
- package/dist/{chunk-NL4NVNSD.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-URYZAUMK.js → chunk-IVIG4LUZ.js} +4 -4
- package/dist/{chunk-MZPWMXPX.js → chunk-JBK7WRPB.js} +2 -10
- package/dist/{chunk-VYMBV6M5.js → chunk-JMPGFGCM.js} +3 -3
- package/dist/{chunk-D35MHKUM.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-Q5MYEDCP.js → chunk-KI6IY52L.js} +6 -6
- package/dist/{chunk-6SJ3YYPS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-5WZAL3IG.js → chunk-LAPJNDQG.js} +4 -4
- package/dist/{chunk-4EJ6BFQ6.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-HJ25OOZL.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-DEGZHZLH.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QG742PJG.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-LE2GNKVF.js → chunk-NAD2JOKF.js} +19 -9
- package/dist/{chunk-JKMX5HMU.js → chunk-O2BQDYHI.js} +1 -1
- package/dist/{chunk-RI6C7WBQ.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-DGIMLJ7N.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-JP545GB4.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-XKTBFWO2.js → chunk-PCKCLSGP.js} +1 -1
- package/dist/{chunk-6TC6Y5FE.js → chunk-PGCMTR5N.js} +5 -5
- package/dist/{chunk-NQCIACTR.js → chunk-PMHOO355.js} +4 -4
- package/dist/{chunk-GOMIXT5C.js → chunk-PU5MHVE2.js} +5 -5
- package/dist/{chunk-7CIMT2QH.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7DZ7UZQE.js → chunk-QTNBPBYN.js} +31 -6
- package/dist/{chunk-GBMURSB4.js → chunk-QWBPCCFQ.js} +7 -7
- package/dist/{chunk-FYGOACNH.js → chunk-RRDQYSNT.js} +2 -2
- package/dist/{chunk-ENTFHIJ5.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-KKPI7MVG.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-I2OOSUJN.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-YEQF4H76.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-VSF3OSWI.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-DI7VQ4PL.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DPTI6ZTZ.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-Z7F7SITX.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-OPWXKDXN.js → chunk-WKXO22AI.js} +4 -4
- package/dist/{chunk-JXVZO2TC.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/chunk-WY2HGMNV.js +42 -0
- package/dist/{chunk-H5BATWAL.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-2NNCVW26.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-DWL2XZNZ.js → chunk-XV7ZL2JN.js} +5 -5
- package/dist/{chunk-OVUJLLPD.js → chunk-YJ6OARPK.js} +36 -24
- package/dist/{chunk-I5RNSFXB.js → chunk-YPDWI6KV.js} +4 -4
- package/dist/{chunk-YM3TSHT2.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-7FUEG6WT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{codex-app-cards-switch-DGTEKXMX.js → codex-app-cards-switch-JPDKYQ5R.js} +11 -11
- package/dist/{codex-card-routing-ESKPXKXS.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-HCEBT2IM.js → codex-desktop-launch-WELLPX34.js} +3 -3
- package/dist/{codex-session-launch-PXWW7EDP.js → codex-session-launch-BAVV7JK7.js} +21 -21
- package/dist/{config-PFH6OQ6M.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-UU3H3EFW.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-JHCLWMLI.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-3K6DM4A3.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-TMTWXB5B.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-RT4T77RQ.js → reapply-DWXARPLQ.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-NGYIAYBZ.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-LGGUWLJM.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-HWIDUN2Q.js";
|
|
6
|
+
import "../chunk-L4PIOZIP.js";
|
|
7
7
|
import {
|
|
8
8
|
inspectConfiguredManagedProviders
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-CE4D3FCO.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-7GHHQFHH.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-7U43GCFH.js";
|
|
42
|
+
import "../chunk-LF2BFP3F.js";
|
|
43
|
+
import "../chunk-PMHOO355.js";
|
|
44
|
+
import "../chunk-QWBPCCFQ.js";
|
|
45
|
+
import "../chunk-MTSTB2GL.js";
|
|
46
|
+
import "../chunk-DYIU6SSG.js";
|
|
47
|
+
import "../chunk-KI6IY52L.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-YJ6OARPK.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-JMPGFGCM.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-5IJ252DT.js";
|
|
114
122
|
import "../chunk-POFBE6ZY.js";
|
|
115
|
-
import "../chunk-
|
|
116
|
-
import "../chunk-
|
|
123
|
+
import "../chunk-6T367UEE.js";
|
|
124
|
+
import "../chunk-PCKCLSGP.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-IVIG4LUZ.js";
|
|
11
11
|
import {
|
|
12
12
|
planFxRemoval,
|
|
13
13
|
removeClineServer
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-7U43GCFH.js";
|
|
15
|
+
import "../chunk-LF2BFP3F.js";
|
|
16
|
+
import "../chunk-PMHOO355.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-QWBPCCFQ.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-KI6IY52L.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-YJ6OARPK.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-5IJ252DT.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-6T367UEE.js";
|
|
62
|
+
import "../chunk-PCKCLSGP.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
|
|
@@ -1641,12 +1641,11 @@ var init_partner_developer_guide = __esm({
|
|
|
1641
1641
|
"../contracts/src/partner-developer-guide.ts"() {
|
|
1642
1642
|
"use strict";
|
|
1643
1643
|
PARTNER_API_KEYS_URL = "https://pushary.com/dashboard/agent/settings";
|
|
1644
|
-
PARTNER_INSTALL_COMMAND = "npm
|
|
1644
|
+
PARTNER_INSTALL_COMMAND = "npm install @pushary/server";
|
|
1645
1645
|
PARTNER_DEVELOPER_STEPS = [
|
|
1646
1646
|
`Install on our server: ${PARTNER_INSTALL_COMMAND}. Create the client with our Partner API key, shown once in onboarding, and keep it on the server. Lost it? Create a new one at ${PARTNER_API_KEYS_URL}.`,
|
|
1647
1647
|
"For each customer, call pushary.enroll(customerId) and show the universalLink it returns as a button or QR code in our app. They open it in the free Pushary app and allow notifications. Installing the app does not carry the link over, so keep it available until they finish.",
|
|
1648
|
-
"Before a risky action, call pushary.decisions.ask({ externalId: customerId, question }) and run the action only if approved is true."
|
|
1649
|
-
"If the answer can come later than the request, create a decision with pushary.decisions.create, save its id, and resume from pushary.decisions.get or the webhook."
|
|
1648
|
+
"Before a risky action, call pushary.decisions.ask({ externalId: customerId, question }) and run the action only if approved is true."
|
|
1650
1649
|
];
|
|
1651
1650
|
}
|
|
1652
1651
|
});
|
|
@@ -1668,6 +1667,13 @@ var init_delivery_stall = __esm({
|
|
|
1668
1667
|
}
|
|
1669
1668
|
});
|
|
1670
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
|
+
|
|
1671
1677
|
// ../contracts/src/api-key-shape.ts
|
|
1672
1678
|
var API_KEY_PREFIX_SHAPE, API_KEY_PREFIX_PATTERN, API_KEY_PATTERN, isValidApiKey;
|
|
1673
1679
|
var init_api_key_shape = __esm({
|
|
@@ -2433,6 +2439,7 @@ var init_src = __esm({
|
|
|
2433
2439
|
init_cursor();
|
|
2434
2440
|
init_degraded();
|
|
2435
2441
|
init_delivery_stall();
|
|
2442
|
+
init_web_push_endpoint();
|
|
2436
2443
|
init_redaction();
|
|
2437
2444
|
init_decision_reply();
|
|
2438
2445
|
init_approval_risk();
|
|
@@ -4320,7 +4327,7 @@ var init_commands = __esm({
|
|
|
4320
4327
|
["install", "Install and start the native per-user service"],
|
|
4321
4328
|
["start | stop | restart", "Control the installed service"],
|
|
4322
4329
|
["status", "Show local daemon health and PID"],
|
|
4323
|
-
["uninstall", "Stop and remove the native service"],
|
|
4330
|
+
["uninstall", "Stop and remove the native service. It stays off until daemon install or setup"],
|
|
4324
4331
|
["foreground", "Run attached to this terminal for diagnostics"]
|
|
4325
4332
|
]
|
|
4326
4333
|
};
|
|
@@ -4617,9 +4624,11 @@ var init_bridge = __esm({
|
|
|
4617
4624
|
});
|
|
4618
4625
|
|
|
4619
4626
|
// src/agent-version.ts
|
|
4627
|
+
var formatVersion;
|
|
4620
4628
|
var init_agent_version = __esm({
|
|
4621
4629
|
"src/agent-version.ts"() {
|
|
4622
4630
|
"use strict";
|
|
4631
|
+
formatVersion = (version) => version.join(".");
|
|
4623
4632
|
}
|
|
4624
4633
|
});
|
|
4625
4634
|
|
|
@@ -9602,6 +9611,7 @@ var hookOwnerOfCommands = (commands, appAvailable = true) => {
|
|
|
9602
9611
|
|
|
9603
9612
|
// src/daemon-lifecycle.ts
|
|
9604
9613
|
init_src();
|
|
9614
|
+
init_agent_version();
|
|
9605
9615
|
import { dirname as dirname9, join as join22, win32 as win32Path } from "path";
|
|
9606
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";
|
|
9607
9617
|
import { createHash as createHash9, randomUUID as randomUUID3 } from "crypto";
|
|
@@ -9654,6 +9664,10 @@ var POWERSHELL_SINGLE_QUOTES = /['\u2018\u2019\u201A\u201B]/g;
|
|
|
9654
9664
|
var powershellLiteral = (value) => `'${value.replace(POWERSHELL_SINGLE_QUOTES, (quote) => quote + quote)}'`;
|
|
9655
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 }`;
|
|
9656
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);
|
|
9657
9671
|
var HANDOFF_WAIT_FLOOR_MS = DAEMON_YIELD_CHECK_INTERVAL_MS * 2;
|
|
9658
9672
|
|
|
9659
9673
|
// src/transcript-registration.ts
|