pushary 1.9.281 → 1.9.283
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 +14 -0
- package/dist/{api-WBSDPSHN.js → api-OJRU3MYI.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 +34 -34
- 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 +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +2 -3
- package/dist/bin/pushary-doctor.js +81 -71
- 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 +42 -42
- 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 +59 -59
- 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 +47 -47
- package/dist/bin/pushary-wait.js +67 -30
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-7WCBGOXC.js → chunk-26RKJL2X.js} +2 -2
- package/dist/{chunk-4EJ6BFQ6.js → chunk-2JWCBGFX.js} +3 -3
- package/dist/{chunk-SCR7JFIZ.js → chunk-3B3UE65E.js} +12 -12
- package/dist/{chunk-LE2GNKVF.js → chunk-4RPG3SFC.js} +3 -3
- package/dist/{chunk-DI7VQ4PL.js → chunk-4ZWNL3CK.js} +1 -1
- package/dist/{chunk-URYZAUMK.js → chunk-5RSXB22M.js} +4 -4
- package/dist/{chunk-PATTVCJS.js → chunk-5YSFXK2C.js} +2 -2
- package/dist/{chunk-JKMX5HMU.js → chunk-6GCGRTR7.js} +1 -1
- package/dist/{chunk-GBMURSB4.js → chunk-6MUWWEYX.js} +7 -7
- package/dist/{chunk-7FUEG6WT.js → chunk-6RAIYGKT.js} +1 -1
- package/dist/{chunk-GS6XPW45.js → chunk-6VK43QVL.js} +7 -7
- package/dist/{chunk-5WZAL3IG.js → chunk-73SEBA5G.js} +4 -4
- package/dist/{chunk-YQNGHX3P.js → chunk-7OOQJD33.js} +3 -3
- package/dist/chunk-7PRPLYOT.js +93 -0
- package/dist/{chunk-L25W4SZ2.js → chunk-7VL6QZ3C.js} +3 -3
- package/dist/{chunk-GOMIXT5C.js → chunk-7Y3NHQSD.js} +5 -5
- package/dist/{chunk-IJOGKO3Z.js → chunk-AIBGURF2.js} +1 -1
- package/dist/{chunk-67D6KDPJ.js → chunk-AKUQLREQ.js} +4 -4
- package/dist/{chunk-YM3TSHT2.js → chunk-AOLCAXRB.js} +1 -1
- package/dist/{chunk-ZL46IS5W.js → chunk-ATWYNEN4.js} +1 -1
- package/dist/{chunk-ODSUVMII.js → chunk-B7SK3EXB.js} +5 -5
- package/dist/{chunk-6SJ3YYPS.js → chunk-CA7VX4KS.js} +2 -2
- package/dist/{chunk-NQCIACTR.js → chunk-CBA4AVFT.js} +4 -4
- package/dist/{chunk-XV54WWNB.js → chunk-CPNPPYQL.js} +3 -3
- package/dist/{chunk-DGIMLJ7N.js → chunk-CWQU75DS.js} +3 -3
- package/dist/{chunk-DPTI6ZTZ.js → chunk-DTYSJP6K.js} +2 -2
- package/dist/{chunk-M4B3D76U.js → chunk-E4WNMH33.js} +1 -1
- package/dist/{chunk-3I6Z6YKA.js → chunk-EANJH5FQ.js} +5 -5
- package/dist/{chunk-I5RNSFXB.js → chunk-EDVQWYSU.js} +4 -4
- package/dist/{chunk-PUDKDFOZ.js → chunk-EGZUBQL6.js} +1 -1
- package/dist/{chunk-TCQ3SHEC.js → chunk-EUO5U5V7.js} +6 -6
- package/dist/{chunk-XKTBFWO2.js → chunk-FIAXP3LF.js} +1 -1
- package/dist/{chunk-VSF3OSWI.js → chunk-FNENGMPK.js} +1 -1
- package/dist/{chunk-JP545GB4.js → chunk-FQWIGDXG.js} +1 -1
- package/dist/{chunk-AGBCUPRE.js → chunk-GS4D3NTI.js} +5 -5
- package/dist/{chunk-KKPI7MVG.js → chunk-HKXFHEB4.js} +4 -4
- package/dist/{chunk-QGQA4VUR.js → chunk-HX3RPHIH.js} +8 -8
- package/dist/{chunk-VY7Q5MEQ.js → chunk-I67ZGYEY.js} +5 -5
- package/dist/{chunk-LKL7VIWF.js → chunk-IASJJRQV.js} +3 -3
- package/dist/{chunk-Q5MYEDCP.js → chunk-IP6BVZZL.js} +6 -6
- package/dist/{chunk-DWL2XZNZ.js → chunk-IPJRN56U.js} +5 -5
- package/dist/{chunk-YEQF4H76.js → chunk-IX2DKVF2.js} +4 -4
- package/dist/{chunk-O6LVUSRY.js → chunk-J2UDVVCB.js} +6 -6
- package/dist/{chunk-DLRZZHXC.js → chunk-JHYVJYGR.js} +6 -6
- package/dist/{chunk-2562EGWD.js → chunk-JP7RRADP.js} +1 -1
- package/dist/{chunk-I2OOSUJN.js → chunk-JPSCKMYH.js} +1 -1
- package/dist/{chunk-MYXHCXD3.js → chunk-JSYYVEVW.js} +4 -4
- package/dist/{chunk-2SE3TSWT.js → chunk-JWMDRKAO.js} +10 -10
- package/dist/{chunk-JUZC524C.js → chunk-K4YUNJDY.js} +5 -5
- package/dist/{chunk-OVUJLLPD.js → chunk-KMMO3K2C.js} +27 -22
- package/dist/{chunk-NL4NVNSD.js → chunk-L2BJVSVI.js} +2 -2
- package/dist/{chunk-R5P25UN2.js → chunk-M3MD5Y2O.js} +5 -5
- package/dist/{chunk-ENTFHIJ5.js → chunk-M6T24IVX.js} +1 -1
- package/dist/{chunk-KV65OAIF.js → chunk-N6RX3ZWB.js} +1 -1
- package/dist/{chunk-JXVZO2TC.js → chunk-NWFO2WGB.js} +2 -2
- package/dist/{chunk-DEGZHZLH.js → chunk-OOSOLBO2.js} +1 -1
- package/dist/{chunk-OPWXKDXN.js → chunk-OQVYOMNI.js} +4 -4
- package/dist/{chunk-FYGOACNH.js → chunk-OTIXTZA6.js} +2 -2
- package/dist/{chunk-RI6C7WBQ.js → chunk-OYRQZWXW.js} +2 -2
- package/dist/{chunk-Z7F7SITX.js → chunk-PUNIACRA.js} +4 -4
- package/dist/{chunk-QG742PJG.js → chunk-QSPYUDHD.js} +1 -1
- package/dist/{chunk-USRBNJJX.js → chunk-QU2NSBXD.js} +1 -1
- package/dist/{chunk-36CZVHOH.js → chunk-RJ5HUNEE.js} +1 -1
- package/dist/{chunk-7CIMT2QH.js → chunk-SAFK3BQB.js} +1 -1
- package/dist/{chunk-3FCGMTG2.js → chunk-SIP2BFVS.js} +6 -6
- package/dist/{chunk-HJ25OOZL.js → chunk-SL6ZTQA2.js} +1 -1
- package/dist/{chunk-G6EN7DLG.js → chunk-SWGR226D.js} +10 -10
- package/dist/{chunk-6TC6Y5FE.js → chunk-T5D3F6ME.js} +5 -5
- package/dist/{chunk-SIZMK3SF.js → chunk-TBCHTCA2.js} +1 -1
- package/dist/{chunk-RECYGQIM.js → chunk-TVQWBXV2.js} +16 -16
- package/dist/{chunk-7OV4MW6B.js → chunk-UIOTVHQB.js} +2 -2
- package/dist/{chunk-3AKD2IMA.js → chunk-UOABAWQ4.js} +6 -6
- package/dist/{chunk-T2JHF3E4.js → chunk-VO22G4MS.js} +7 -7
- package/dist/{chunk-MZPWMXPX.js → chunk-VYLJWG3B.js} +2 -10
- package/dist/{chunk-HPYVOBVO.js → chunk-XC2O4MA3.js} +1 -1
- package/dist/chunk-XGWKMWKM.js +42 -0
- package/dist/{chunk-KSHM2X7A.js → chunk-XKSIMUZM.js} +2 -2
- package/dist/{chunk-D35MHKUM.js → chunk-XOZZ7LFC.js} +2 -2
- package/dist/{chunk-VYMBV6M5.js → chunk-Y5INUJ2S.js} +3 -3
- package/dist/{chunk-7CCJLPFF.js → chunk-YARDFZND.js} +2 -2
- package/dist/{chunk-H5BATWAL.js → chunk-YG5TIW73.js} +3 -3
- package/dist/{chunk-QXPI7LOZ.js → chunk-YSR7QVMN.js} +3 -3
- package/dist/{chunk-2NNCVW26.js → chunk-ZUHELFIM.js} +3 -3
- package/dist/{codex-app-cards-switch-DGTEKXMX.js → codex-app-cards-switch-2ZVORWWV.js} +11 -11
- package/dist/{codex-card-routing-ESKPXKXS.js → codex-card-routing-PLD74MXM.js} +2 -2
- package/dist/{codex-desktop-launch-HCEBT2IM.js → codex-desktop-launch-BDR7I3AT.js} +3 -3
- package/dist/{codex-session-launch-PXWW7EDP.js → codex-session-launch-HZJWXLWT.js} +21 -21
- package/dist/{config-PFH6OQ6M.js → config-DY2KBMHL.js} +3 -3
- package/dist/{global-upgrade-UU3H3EFW.js → global-upgrade-H4CHC3PX.js} +9 -9
- package/dist/{identity-JHCLWMLI.js → identity-BEGPK37L.js} +4 -4
- package/dist/{live-capabilities-3K6DM4A3.js → live-capabilities-W4YZO6AH.js} +4 -4
- package/dist/{paths-TMTWXB5B.js → paths-J7L3IDOW.js} +3 -3
- package/dist/{reapply-RT4T77RQ.js → reapply-3ECJVIWC.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-NGYIAYBZ.js → upgrade-lock-UPLYK4CW.js} +4 -4
- package/dist/{usage-LGGUWLJM.js → usage-ZDDF7U5L.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-2SMGO6SE.js +0 -28
|
@@ -18,36 +18,36 @@ import {
|
|
|
18
18
|
upgradeInstalledPackage,
|
|
19
19
|
wasRefreshed,
|
|
20
20
|
withUpgradeLock
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-EUO5U5V7.js";
|
|
22
22
|
import {
|
|
23
23
|
installWithUpgradeLock
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-L2BJVSVI.js";
|
|
25
25
|
import {
|
|
26
26
|
phoneStartFellShortLine
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-M3MD5Y2O.js";
|
|
28
|
+
import "../chunk-PUNIACRA.js";
|
|
29
29
|
import {
|
|
30
30
|
ensureCodexTrustAfterReapply,
|
|
31
31
|
reapplyAllAgents
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-3B3UE65E.js";
|
|
33
33
|
import "../chunk-TWWOQKXK.js";
|
|
34
34
|
import {
|
|
35
35
|
HERMES_RESTART_COMMAND,
|
|
36
36
|
describeCodexTrustConfirmation,
|
|
37
37
|
describeHermesHistoryHelperRecord
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import "../chunk-
|
|
38
|
+
} from "../chunk-JSYYVEVW.js";
|
|
39
|
+
import "../chunk-J2UDVVCB.js";
|
|
40
40
|
import {
|
|
41
41
|
keepLinuxDaemonAfterLogout,
|
|
42
42
|
lingerReportOf
|
|
43
43
|
} from "../chunk-AIZYJJGD.js";
|
|
44
44
|
import {
|
|
45
45
|
waitForMachineReadiness
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-K4YUNJDY.js";
|
|
47
47
|
import {
|
|
48
48
|
hermesHistoryHelperRecordFailed,
|
|
49
49
|
hermesHistoryHelperRecordPath
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-7VL6QZ3C.js";
|
|
51
51
|
import {
|
|
52
52
|
AUTO_UPDATE_DISABLE_ENV,
|
|
53
53
|
AUTO_UPDATE_FLAG,
|
|
@@ -57,16 +57,16 @@ import {
|
|
|
57
57
|
isUnfinishedAutoUpdate,
|
|
58
58
|
readAutoUpdateState,
|
|
59
59
|
updateAutoUpdateState
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-NWFO2WGB.js";
|
|
61
61
|
import "../chunk-WHB622LP.js";
|
|
62
62
|
import {
|
|
63
63
|
shortenHome
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-B7SK3EXB.js";
|
|
65
65
|
import {
|
|
66
66
|
readMacAppAgentKey
|
|
67
|
-
} from "../chunk-
|
|
68
|
-
import "../chunk-
|
|
69
|
-
import "../chunk-
|
|
67
|
+
} from "../chunk-73SEBA5G.js";
|
|
68
|
+
import "../chunk-AKUQLREQ.js";
|
|
69
|
+
import "../chunk-CWQU75DS.js";
|
|
70
70
|
import {
|
|
71
71
|
FX_RELOAD_AFTER_BRIDGE,
|
|
72
72
|
fxHttpEntryKeptNote,
|
|
@@ -74,20 +74,20 @@ import {
|
|
|
74
74
|
fxServerHolder,
|
|
75
75
|
inspectFxPusharyHttpWiring,
|
|
76
76
|
macAppFxBridge
|
|
77
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-EANJH5FQ.js";
|
|
78
78
|
import {
|
|
79
79
|
retryAgentCommand
|
|
80
|
-
} from "../chunk-
|
|
81
|
-
import "../chunk-
|
|
82
|
-
import "../chunk-
|
|
83
|
-
import "../chunk-
|
|
84
|
-
import "../chunk-
|
|
85
|
-
import "../chunk-
|
|
86
|
-
import "../chunk-
|
|
87
|
-
import "../chunk-
|
|
80
|
+
} from "../chunk-2JWCBGFX.js";
|
|
81
|
+
import "../chunk-CBA4AVFT.js";
|
|
82
|
+
import "../chunk-6MUWWEYX.js";
|
|
83
|
+
import "../chunk-QSPYUDHD.js";
|
|
84
|
+
import "../chunk-ATWYNEN4.js";
|
|
85
|
+
import "../chunk-IP6BVZZL.js";
|
|
86
|
+
import "../chunk-SL6ZTQA2.js";
|
|
87
|
+
import "../chunk-YARDFZND.js";
|
|
88
88
|
import {
|
|
89
89
|
exitOnHelpFlag
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-SAFK3BQB.js";
|
|
91
91
|
import {
|
|
92
92
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
93
93
|
daemonHasRemoteProof,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
replaceDaemonService,
|
|
101
101
|
stopDaemonService,
|
|
102
102
|
waitForDaemonRemoteProof
|
|
103
|
-
} from "../chunk-
|
|
104
|
-
import "../chunk-
|
|
105
|
-
import "../chunk-
|
|
106
|
-
import "../chunk-
|
|
107
|
-
import "../chunk-
|
|
103
|
+
} from "../chunk-SIP2BFVS.js";
|
|
104
|
+
import "../chunk-IX2DKVF2.js";
|
|
105
|
+
import "../chunk-KMMO3K2C.js";
|
|
106
|
+
import "../chunk-JP7RRADP.js";
|
|
107
|
+
import "../chunk-4ZWNL3CK.js";
|
|
108
108
|
import "../chunk-Z25VDYAL.js";
|
|
109
|
-
import "../chunk-
|
|
109
|
+
import "../chunk-EGZUBQL6.js";
|
|
110
110
|
import "../chunk-BZIBNSQE.js";
|
|
111
111
|
import {
|
|
112
112
|
detectProviderLiveCapabilities,
|
|
@@ -114,25 +114,25 @@ import {
|
|
|
114
114
|
hasSpawnProvider,
|
|
115
115
|
isManagedProvider,
|
|
116
116
|
resolveControlPolicy
|
|
117
|
-
} from "../chunk-
|
|
118
|
-
import "../chunk-
|
|
119
|
-
import "../chunk-
|
|
117
|
+
} from "../chunk-ZUHELFIM.js";
|
|
118
|
+
import "../chunk-6RAIYGKT.js";
|
|
119
|
+
import "../chunk-TBCHTCA2.js";
|
|
120
120
|
import "../chunk-P6DUWKAO.js";
|
|
121
121
|
import "../chunk-TCE3J44Z.js";
|
|
122
122
|
import "../chunk-3PSNUHC5.js";
|
|
123
|
-
import "../chunk-
|
|
124
|
-
import "../chunk-
|
|
123
|
+
import "../chunk-E4WNMH33.js";
|
|
124
|
+
import "../chunk-VO22G4MS.js";
|
|
125
125
|
import "../chunk-POFBE6ZY.js";
|
|
126
|
-
import "../chunk-
|
|
127
|
-
import "../chunk-
|
|
128
|
-
import "../chunk-
|
|
129
|
-
import "../chunk-
|
|
130
|
-
import "../chunk-
|
|
131
|
-
import "../chunk-
|
|
126
|
+
import "../chunk-UOABAWQ4.js";
|
|
127
|
+
import "../chunk-FIAXP3LF.js";
|
|
128
|
+
import "../chunk-AOLCAXRB.js";
|
|
129
|
+
import "../chunk-YSR7QVMN.js";
|
|
130
|
+
import "../chunk-7OOQJD33.js";
|
|
131
|
+
import "../chunk-JPSCKMYH.js";
|
|
132
132
|
import {
|
|
133
133
|
readControlMode,
|
|
134
134
|
recordMacAppKeyPrefix
|
|
135
|
-
} from "../chunk-
|
|
135
|
+
} from "../chunk-DTYSJP6K.js";
|
|
136
136
|
import {
|
|
137
137
|
CODEX_RESTART_AFTER_TRANSPORT_CHANGE,
|
|
138
138
|
autoUpdateState,
|
|
@@ -144,16 +144,16 @@ import {
|
|
|
144
144
|
pusharyDir,
|
|
145
145
|
serviceOwedBackMark,
|
|
146
146
|
vscodePluginDir
|
|
147
|
-
} from "../chunk-
|
|
147
|
+
} from "../chunk-XKSIMUZM.js";
|
|
148
148
|
import "../chunk-6ICPEJY5.js";
|
|
149
149
|
import {
|
|
150
150
|
fetchLatestPublishedVersion,
|
|
151
151
|
newestReleaseNpmAllows,
|
|
152
152
|
plannedGlobalPackage
|
|
153
|
-
} from "../chunk-
|
|
153
|
+
} from "../chunk-HKXFHEB4.js";
|
|
154
154
|
import {
|
|
155
155
|
getApiKey
|
|
156
|
-
} from "../chunk-
|
|
156
|
+
} from "../chunk-XOZZ7LFC.js";
|
|
157
157
|
import {
|
|
158
158
|
UsageError
|
|
159
159
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
} from "../chunk-PM2NRK6Y.js";
|
|
163
163
|
import {
|
|
164
164
|
NPX_LATEST_COMMAND
|
|
165
|
-
} from "../chunk-
|
|
165
|
+
} from "../chunk-QU2NSBXD.js";
|
|
166
166
|
import {
|
|
167
167
|
EXIT
|
|
168
168
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
LEGACY_PACKAGE,
|
|
172
172
|
getPackageVersion
|
|
173
173
|
} from "../chunk-CXQWDQCJ.js";
|
|
174
|
-
import "../chunk-
|
|
174
|
+
import "../chunk-4RPG3SFC.js";
|
|
175
175
|
import "../chunk-MLKGABMK.js";
|
|
176
176
|
|
|
177
177
|
// bin/pushary-upgrade.ts
|
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -1,85 +1,122 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
waitResponse,
|
|
4
3
|
waitWindowResponse
|
|
5
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VYLJWG3B.js";
|
|
6
5
|
import {
|
|
6
|
+
printWaitLadderNotice
|
|
7
|
+
} from "../chunk-XGWKMWKM.js";
|
|
8
|
+
import {
|
|
9
|
+
CLAUDE_CODE_HOOK_BUDGET,
|
|
10
|
+
describeHookWaitLadder,
|
|
7
11
|
describeWaitLadder,
|
|
12
|
+
effectiveModeOverrideOf,
|
|
13
|
+
ruleUnderModeOverride,
|
|
14
|
+
waitLadderNoticeOf,
|
|
8
15
|
waitRuleLabelOf
|
|
9
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-7PRPLYOT.js";
|
|
10
17
|
import {
|
|
11
18
|
exitOnFailedSettingsRequest
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-6VK43QVL.js";
|
|
20
|
+
import "../chunk-5YSFXK2C.js";
|
|
14
21
|
import {
|
|
15
22
|
APPROVAL_RULES_PATH,
|
|
16
23
|
PUSH_WINDOW_COMMAND,
|
|
17
24
|
PUSH_WINDOW_RESET_COMMAND
|
|
18
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-YARDFZND.js";
|
|
19
26
|
import {
|
|
20
27
|
createIo
|
|
21
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-N6RX3ZWB.js";
|
|
22
29
|
import {
|
|
23
30
|
exitOnHelpFlag
|
|
24
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-SAFK3BQB.js";
|
|
32
|
+
import {
|
|
33
|
+
CLAUDE_CODE_AGENT,
|
|
34
|
+
fetchModeState,
|
|
35
|
+
policyHttpRequestOf
|
|
36
|
+
} from "../chunk-KMMO3K2C.js";
|
|
37
|
+
import "../chunk-JP7RRADP.js";
|
|
38
|
+
import "../chunk-Z25VDYAL.js";
|
|
25
39
|
import {
|
|
26
40
|
parseFlags
|
|
27
41
|
} from "../chunk-BZIBNSQE.js";
|
|
42
|
+
import "../chunk-E4WNMH33.js";
|
|
43
|
+
import {
|
|
44
|
+
isPolicyConfig
|
|
45
|
+
} from "../chunk-VO22G4MS.js";
|
|
46
|
+
import "../chunk-POFBE6ZY.js";
|
|
47
|
+
import "../chunk-UOABAWQ4.js";
|
|
48
|
+
import "../chunk-FIAXP3LF.js";
|
|
49
|
+
import "../chunk-AOLCAXRB.js";
|
|
28
50
|
import {
|
|
29
51
|
absoluteUrl
|
|
30
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-YSR7QVMN.js";
|
|
31
53
|
import {
|
|
32
54
|
pusharyFetch
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
55
|
+
} from "../chunk-7OOQJD33.js";
|
|
56
|
+
import "../chunk-JPSCKMYH.js";
|
|
57
|
+
import "../chunk-DTYSJP6K.js";
|
|
58
|
+
import "../chunk-XKSIMUZM.js";
|
|
37
59
|
import "../chunk-6ICPEJY5.js";
|
|
38
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-HKXFHEB4.js";
|
|
39
61
|
import {
|
|
40
62
|
getApiKey,
|
|
41
63
|
getBaseUrl
|
|
42
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-XOZZ7LFC.js";
|
|
43
65
|
import {
|
|
44
66
|
UsageError,
|
|
45
67
|
exitCodeFor
|
|
46
68
|
} from "../chunk-CINBAX5G.js";
|
|
47
69
|
import "../chunk-PM2NRK6Y.js";
|
|
48
|
-
import "../chunk-
|
|
70
|
+
import "../chunk-QU2NSBXD.js";
|
|
49
71
|
import {
|
|
50
72
|
EXIT
|
|
51
73
|
} from "../chunk-BG4HHB7E.js";
|
|
52
74
|
import "../chunk-CXQWDQCJ.js";
|
|
53
|
-
import
|
|
75
|
+
import {
|
|
76
|
+
WILDCARD_TOOL_PATTERN
|
|
77
|
+
} from "../chunk-4RPG3SFC.js";
|
|
54
78
|
import "../chunk-MLKGABMK.js";
|
|
55
79
|
|
|
56
80
|
// bin/pushary-wait.ts
|
|
57
81
|
exitOnHelpFlag("wait");
|
|
58
82
|
var { dim, bold, green, cyan, yellow } = createIo();
|
|
59
83
|
var MAX_WINDOW = 300;
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (data.modeOverride) {
|
|
66
|
-
console.log(` ${yellow("!")} Active mode override: ${cyan(data.modeOverride)} ${dim("(pushary mode status)")}`);
|
|
84
|
+
var wildcardFirst = (a, b) => a.tool === WILDCARD_TOOL_PATTERN ? -1 : b.tool === WILDCARD_TOOL_PATTERN ? 1 : a.tool.localeCompare(b.tool);
|
|
85
|
+
var printRulesAsServed = ({ modeState, config }) => {
|
|
86
|
+
const modeOverride = effectiveModeOverrideOf(modeState, config);
|
|
87
|
+
if (modeOverride === null) {
|
|
88
|
+
console.log(` Default push window: ${cyan(`${config.defaultPushFirstSeconds}s`)} ${dim("(catch-all tools)")}`);
|
|
67
89
|
}
|
|
68
90
|
console.log();
|
|
69
|
-
const rows = [...
|
|
91
|
+
const rows = [...config.policies].sort(wildcardFirst);
|
|
70
92
|
const width = Math.max(...rows.map((p) => waitRuleLabelOf(p.tool).length), 4);
|
|
71
93
|
for (const p of rows) {
|
|
72
94
|
const label = waitRuleLabelOf(p.tool);
|
|
73
|
-
console.log(` ${label.padEnd(width + 2)} ${dim("\xB7")} ${
|
|
95
|
+
console.log(` ${label.padEnd(width + 2)} ${dim("\xB7")} ${describeHookWaitLadder(ruleUnderModeOverride(p, modeOverride), CLAUDE_CODE_HOOK_BUDGET)}`);
|
|
74
96
|
}
|
|
97
|
+
};
|
|
98
|
+
var printLadder = (state, baseUrl) => {
|
|
99
|
+
console.log();
|
|
100
|
+
console.log(` ${bold("Wait ladder")} ${dim("(what happens when you don't answer)")}`);
|
|
101
|
+
console.log();
|
|
102
|
+
const notice = waitLadderNoticeOf(state.modeState, state.config);
|
|
103
|
+
printWaitLadderNotice(notice);
|
|
104
|
+
if (notice.kind !== "stopped") printRulesAsServed(state);
|
|
75
105
|
console.log();
|
|
76
106
|
console.log(` ${dim("Change the window or any rule:")} ${cyan(absoluteUrl(baseUrl, APPROVAL_RULES_PATH))}`);
|
|
77
107
|
console.log(` ${dim("With a full-access key:")} ${cyan(PUSH_WINDOW_COMMAND)} ${dim("\xB7")} ${cyan(PUSH_WINDOW_RESET_COMMAND)}`);
|
|
78
108
|
};
|
|
79
|
-
var
|
|
80
|
-
const
|
|
109
|
+
var fetchFreshClaudeCodePolicy = async (settings) => {
|
|
110
|
+
const { url, headers } = policyHttpRequestOf(settings.apiKey, CLAUDE_CODE_AGENT.type, true);
|
|
111
|
+
const res = await pusharyFetch(url, { headers });
|
|
81
112
|
if (!res.ok) await exitOnFailedSettingsRequest(res, settings);
|
|
82
|
-
|
|
113
|
+
const body = await res.json();
|
|
114
|
+
if (!isPolicyConfig(body)) throw new Error("Invalid policy response");
|
|
115
|
+
return body;
|
|
116
|
+
};
|
|
117
|
+
var readHookWaitState = async (settings) => {
|
|
118
|
+
const config = await fetchFreshClaudeCodePolicy(settings);
|
|
119
|
+
return { modeState: await fetchModeState(settings.apiKey), config };
|
|
83
120
|
};
|
|
84
121
|
var setWindow = async (settings, headers, seconds) => {
|
|
85
122
|
const res = await pusharyFetch(`${settings.baseUrl}/api/mcp/policy`, {
|
|
@@ -107,7 +144,7 @@ var main = async () => {
|
|
|
107
144
|
"Content-Type": "application/json"
|
|
108
145
|
};
|
|
109
146
|
if (!arg || arg === "status") {
|
|
110
|
-
printLadder(await
|
|
147
|
+
printLadder(await readHookWaitState(settings), settings.baseUrl);
|
|
111
148
|
return;
|
|
112
149
|
}
|
|
113
150
|
if (arg === "clear" || arg === "reset") {
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7OOQJD33.js";
|
|
5
|
+
import "../chunk-JPSCKMYH.js";
|
|
6
|
+
import "../chunk-XKSIMUZM.js";
|
|
7
7
|
import "../chunk-6ICPEJY5.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-HKXFHEB4.js";
|
|
9
|
+
import "../chunk-XOZZ7LFC.js";
|
|
10
10
|
import "../chunk-CINBAX5G.js";
|
|
11
11
|
import "../chunk-PM2NRK6Y.js";
|
|
12
12
|
import {
|
|
13
13
|
LISTED_COMMANDS,
|
|
14
14
|
renderHelp,
|
|
15
15
|
resolveCommandName
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-QU2NSBXD.js";
|
|
17
17
|
import {
|
|
18
18
|
EXIT
|
|
19
19
|
} from "../chunk-BG4HHB7E.js";
|
|
20
20
|
import {
|
|
21
21
|
getPackageVersion
|
|
22
22
|
} from "../chunk-CXQWDQCJ.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-4RPG3SFC.js";
|
|
24
24
|
import "../chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/runtime.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AOLCAXRB.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DTYSJP6K.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HKXFHEB4.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
10
|
} from "./chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QU2NSBXD.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4RPG3SFC.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7VL6QZ3C.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AKUQLREQ.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EANJH5FQ.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6MUWWEYX.js";
|
|
40
40
|
import {
|
|
41
41
|
addCompatibleHooks,
|
|
42
42
|
compatibleConfigFile,
|
|
43
43
|
compatibleInstructionsFile,
|
|
44
44
|
hasCompatibleHooks
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-IP6BVZZL.js";
|
|
46
46
|
import {
|
|
47
47
|
GEMINI_HOOK_BINARY,
|
|
48
48
|
addGeminiHooks,
|
|
@@ -54,16 +54,16 @@ import {
|
|
|
54
54
|
geminiWired,
|
|
55
55
|
hasGeminiHooks,
|
|
56
56
|
planHooks
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-IX2DKVF2.js";
|
|
58
58
|
import {
|
|
59
59
|
detectClaudeVersion
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6RAIYGKT.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-TBCHTCA2.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-DTYSJP6K.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
replaceCodexMcpEmbeddedKey,
|
|
114
114
|
supportedClaudeEvents,
|
|
115
115
|
vscodePluginMcp
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-XKSIMUZM.js";
|
|
117
117
|
import {
|
|
118
118
|
formatVersion
|
|
119
119
|
} from "./chunk-6ICPEJY5.js";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
hookCommandsUseBareNames,
|
|
122
122
|
resolveGlobalBinDir,
|
|
123
123
|
resolveGlobalBinary
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-HKXFHEB4.js";
|
|
125
125
|
import {
|
|
126
126
|
readJsonSafe,
|
|
127
127
|
writeFileAtomic,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
HOOK_COMPATIBLE_PROFILES,
|
|
132
132
|
isCompatibleAgentType,
|
|
133
133
|
isRecord
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-4RPG3SFC.js";
|
|
135
135
|
|
|
136
136
|
// src/reapply.ts
|
|
137
137
|
import { dirname, join } from "path";
|
|
@@ -4913,12 +4913,11 @@ var GROK_BOT_CONNECTOR_TEST = `Use Pushary ask_user to ask \u201C${CONNECTOR_SET
|
|
|
4913
4913
|
|
|
4914
4914
|
// ../contracts/src/partner-developer-guide.ts
|
|
4915
4915
|
var PARTNER_API_KEYS_URL = "https://pushary.com/dashboard/agent/settings";
|
|
4916
|
-
var PARTNER_INSTALL_COMMAND = "npm
|
|
4916
|
+
var PARTNER_INSTALL_COMMAND = "npm install @pushary/server";
|
|
4917
4917
|
var PARTNER_DEVELOPER_STEPS = [
|
|
4918
4918
|
`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}.`,
|
|
4919
4919
|
"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.",
|
|
4920
|
-
"Before a risky action, call pushary.decisions.ask({ externalId: customerId, question }) and run the action only if approved is true."
|
|
4921
|
-
"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."
|
|
4920
|
+
"Before a risky action, call pushary.decisions.ask({ externalId: customerId, question }) and run the action only if approved is true."
|
|
4922
4921
|
];
|
|
4923
4922
|
|
|
4924
4923
|
// ../contracts/src/degraded.ts
|
|
@@ -13980,6 +13979,7 @@ export {
|
|
|
13980
13979
|
isWindowsRootedPath,
|
|
13981
13980
|
isSafeReadOnlyCommand,
|
|
13982
13981
|
isAutoApprove,
|
|
13982
|
+
isAutoDeny,
|
|
13983
13983
|
FILE_TARGET_TOOLS,
|
|
13984
13984
|
MCP_TOOL_PREFIX,
|
|
13985
13985
|
parseMcpToolName,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IP6BVZZL.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IX2DKVF2.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XKSIMUZM.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4RPG3SFC.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DTYSJP6K.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QU2NSBXD.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y5INUJ2S.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QSPYUDHD.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ATWYNEN4.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IP6BVZZL.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IX2DKVF2.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4ZWNL3CK.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XKSIMUZM.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-4RPG3SFC.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|