pushary 1.9.224 → 1.9.225
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 +5 -0
- package/dist/{api-ONC3NYEU.js → api-XGUBV6TG.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +33 -32
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +37 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +56 -51
- 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 +42 -13
- package/dist/bin/pushary-doctor.js +59 -51
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +34 -32
- package/dist/bin/pushary-hook.js +34 -34
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +15 -22
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +37 -34
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +34 -34
- 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 +18 -18
- package/dist/bin/pushary-setup.js +57 -57
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +60 -40
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +46 -46
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-NQXJ3HP7.js → chunk-2GQWSBX2.js} +8 -8
- package/dist/{chunk-7RWQULME.js → chunk-2HHQA42H.js} +3 -3
- package/dist/{chunk-35MX2DYY.js → chunk-2MAPVRYT.js} +4 -4
- package/dist/{chunk-TUL6ESJL.js → chunk-2RKHIDZJ.js} +3 -3
- package/dist/{chunk-IRTDVRPP.js → chunk-3BGYVYXJ.js} +5 -5
- package/dist/{chunk-GMIIYOOD.js → chunk-3LNGHZ2A.js} +1 -1
- package/dist/{chunk-BDFS2KC3.js → chunk-3P2VKDFP.js} +2 -2
- package/dist/{chunk-7Z6FW2FX.js → chunk-3ZF74CHU.js} +6 -6
- package/dist/{chunk-F4ZWZ3NF.js → chunk-4DP54WUK.js} +1 -1
- package/dist/chunk-5C55SFEG.js +90 -0
- package/dist/{chunk-WWWJHD5W.js → chunk-5DLPB6VD.js} +1 -1
- package/dist/{chunk-MDOLCJRZ.js → chunk-5HGY2GS7.js} +1 -1
- package/dist/{chunk-TZTPY2QF.js → chunk-5IGIQ6FR.js} +2 -2
- package/dist/{chunk-QGA57PZ2.js → chunk-66JT67XZ.js} +29 -22
- package/dist/{chunk-ZMFR6APZ.js → chunk-67NX2ZEC.js} +5 -5
- package/dist/{chunk-XP6EIQDC.js → chunk-6LNEYLGC.js} +5 -5
- package/dist/{chunk-BHQ2USGM.js → chunk-6W25WVDD.js} +1 -1
- package/dist/{chunk-LTNWYLVK.js → chunk-7D2FYVBW.js} +3 -3
- package/dist/{chunk-V3GMYPTF.js → chunk-ABUIWYET.js} +6 -6
- package/dist/{chunk-QJT5ZEQ7.js → chunk-BBDFTX3K.js} +1 -1
- package/dist/{chunk-37O3TEYR.js → chunk-BMQMT2LQ.js} +12 -12
- package/dist/{chunk-ZVDJNBYV.js → chunk-BTFQLHZ2.js} +4 -4
- package/dist/{chunk-Q7OEKDFK.js → chunk-DKI5QA46.js} +4 -4
- package/dist/{chunk-Z3GKJWBV.js → chunk-DUUE36M5.js} +3 -3
- package/dist/{chunk-SSBYRK22.js → chunk-EPJQPPBU.js} +4 -4
- package/dist/{chunk-SNQODYMM.js → chunk-F4G22HS4.js} +1 -1
- package/dist/{chunk-XANXXZVC.js → chunk-FGEPXL5K.js} +3 -3
- package/dist/{chunk-QVGXCFGJ.js → chunk-FOABNWRY.js} +3 -3
- package/dist/{chunk-NR6K7SFA.js → chunk-GPLEY6JL.js} +5 -5
- package/dist/{chunk-TO5T2D5C.js → chunk-H4QSDEVU.js} +4 -4
- package/dist/{chunk-FMX56I6G.js → chunk-HZH5X3D6.js} +5 -5
- package/dist/{chunk-P4FAWEDR.js → chunk-I3F2RT6H.js} +3 -3
- package/dist/{chunk-FNIGFFVQ.js → chunk-I5K4M6RO.js} +1 -1
- package/dist/{chunk-ENXYENW3.js → chunk-IPGEDXFD.js} +5 -5
- package/dist/{chunk-XLGNI7ZM.js → chunk-IZHCLPRX.js} +6 -6
- package/dist/{chunk-JJECC5TS.js → chunk-JDWRKP73.js} +4 -4
- package/dist/{chunk-SZOG3UW3.js → chunk-JOR5C5EN.js} +5 -5
- package/dist/{chunk-TKWS6E7B.js → chunk-JTWSDHDB.js} +19 -8
- package/dist/{chunk-6AQOULFH.js → chunk-JYNIBOW6.js} +1 -1
- package/dist/{chunk-FND4HRMJ.js → chunk-K6JUQVL6.js} +2 -2
- package/dist/{chunk-OQP2SBVG.js → chunk-KMBUWYIF.js} +27 -13
- package/dist/{chunk-GV42N5QE.js → chunk-L3OZKXAH.js} +1 -1
- package/dist/{chunk-6EGV3GON.js → chunk-LMP5K32O.js} +6 -6
- package/dist/{chunk-QKMBCZYI.js → chunk-LOJ7U6VW.js} +2 -2
- package/dist/{chunk-ZBIDKPCA.js → chunk-LVB2UNTX.js} +5 -5
- package/dist/{chunk-ZJKWVWVW.js → chunk-MSAFTQ5S.js} +7 -7
- package/dist/{chunk-OCGOLDIU.js → chunk-NUPW3G4F.js} +5 -5
- package/dist/{chunk-7FSB46RG.js → chunk-OA4BOYDG.js} +1 -1
- package/dist/{chunk-73QU5HGK.js → chunk-OOHHMEYX.js} +2 -2
- package/dist/{chunk-4SW5ILAY.js → chunk-PCWVQ6PT.js} +9 -9
- package/dist/{chunk-3SQBFADX.js → chunk-PPIPBJR2.js} +1 -1
- package/dist/{chunk-VWHZS7CZ.js → chunk-QCZEPAHW.js} +1 -1
- package/dist/{chunk-S5GJILJ7.js → chunk-QYNBB5OO.js} +2 -2
- package/dist/{chunk-WBM5QRLH.js → chunk-SP5YAAFD.js} +1 -1
- package/dist/{chunk-HSHHV7KX.js → chunk-THE2SPHY.js} +3 -3
- package/dist/{chunk-J4KRS6U6.js → chunk-TKAHYLOH.js} +2 -2
- package/dist/{chunk-J6TV66B5.js → chunk-TUACBIHO.js} +2 -2
- package/dist/{chunk-2CY3RVXV.js → chunk-TYD3HCOZ.js} +1 -1
- package/dist/{chunk-KXWFB5C3.js → chunk-UC3CPRDS.js} +2 -2
- package/dist/{chunk-PJQFIGIH.js → chunk-UC5LKWWC.js} +2 -2
- package/dist/{chunk-YSASHNPA.js → chunk-UNHODOXL.js} +2 -2
- package/dist/{chunk-NSVXD77O.js → chunk-V2BCZ2HN.js} +4 -4
- package/dist/{chunk-PPCDXEKQ.js → chunk-V5JRLAHZ.js} +1 -1
- package/dist/{chunk-HQQLBTLR.js → chunk-VQKDSIJ6.js} +7 -7
- package/dist/{chunk-LTGOBKBE.js → chunk-VYPGDTD5.js} +1 -1
- package/dist/{chunk-3I5OH3BQ.js → chunk-W456LKRF.js} +1 -1
- package/dist/{chunk-H7OAPHT6.js → chunk-W5SKLM2R.js} +12 -4
- package/dist/{chunk-7322XHFA.js → chunk-WA737SQM.js} +4 -4
- package/dist/{chunk-QODLGTAJ.js → chunk-WKTGDK5J.js} +2 -2
- package/dist/{chunk-7YBP6JUZ.js → chunk-WUOJXMOM.js} +4 -4
- package/dist/{chunk-KAE2B7B3.js → chunk-XOMANR2K.js} +1 -1
- package/dist/{chunk-ROJXEYYY.js → chunk-XRF2QECS.js} +1 -1
- package/dist/{chunk-T2X5A6ON.js → chunk-YCDBEW2Q.js} +10 -10
- package/dist/{chunk-YIWQPPNE.js → chunk-YIMMMBLU.js} +3 -3
- package/dist/{chunk-CXYGVLWY.js → chunk-YMMRJK2S.js} +5 -5
- package/dist/{chunk-TRTD7K6F.js → chunk-Z2WM6DAC.js} +2 -2
- package/dist/{chunk-45FJXU6L.js → chunk-ZK3GC5X6.js} +6 -6
- package/dist/{chunk-YWJW3GBN.js → chunk-ZOJCQT65.js} +1 -1
- package/dist/{codex-app-cards-switch-LXPMFON2.js → codex-app-cards-switch-R5F7XIWI.js} +11 -11
- package/dist/{codex-card-routing-D5YIOCO4.js → codex-card-routing-JODZRLQ6.js} +2 -2
- package/dist/{codex-desktop-launch-QPPHABQW.js → codex-desktop-launch-7DSOU5NE.js} +1 -1
- package/dist/{codex-session-launch-BXQPUMWB.js → codex-session-launch-SZ5TQPGZ.js} +20 -20
- package/dist/config-ZH3LNGIR.js +28 -0
- package/dist/{global-upgrade-NTZCGPYN.js → global-upgrade-PE7BP5QH.js} +9 -9
- package/dist/{identity-F6D3HRMJ.js → identity-2EITAH3V.js} +4 -4
- package/dist/{live-capabilities-YSGKGSP4.js → live-capabilities-CMWLJFZO.js} +4 -4
- package/dist/{paths-Q3PUCZZQ.js → paths-YDAYO6TG.js} +3 -3
- package/dist/reapply-MCB2MIQN.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-FH6YYKRD.js → upgrade-lock-46BLXPXN.js} +4 -4
- package/dist/{usage-RUBRRQDK.js → usage-GEWJJOAD.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KK75BMI5.js +0 -53
- package/dist/config-74YKDTUD.js +0 -16
- package/dist/reapply-RSNZA5DQ.js +0 -74
- /package/dist/{chunk-4E3NSM4E.js → chunk-4DKVCK2C.js} +0 -0
|
@@ -18,43 +18,43 @@ import {
|
|
|
18
18
|
upgradeInstalledPackage,
|
|
19
19
|
wasRefreshed,
|
|
20
20
|
withUpgradeLock
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-ZK3GC5X6.js";
|
|
22
22
|
import {
|
|
23
23
|
installWithUpgradeLock
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-5IGIQ6FR.js";
|
|
25
25
|
import {
|
|
26
26
|
phoneStartFellShortLine
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-NUPW3G4F.js";
|
|
28
28
|
import {
|
|
29
29
|
ensureCodexTrustAfterReapply,
|
|
30
30
|
reapplyAllAgents
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-BMQMT2LQ.js";
|
|
32
32
|
import "../chunk-TWWOQKXK.js";
|
|
33
33
|
import {
|
|
34
34
|
HERMES_RESTART_COMMAND,
|
|
35
35
|
describeCodexTrustConfirmation,
|
|
36
36
|
describeHermesHistoryHelperRecord
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-WA737SQM.js";
|
|
38
|
+
import "../chunk-IZHCLPRX.js";
|
|
39
39
|
import {
|
|
40
40
|
keepLinuxDaemonAfterLogout,
|
|
41
41
|
lingerReportOf
|
|
42
42
|
} from "../chunk-AIZYJJGD.js";
|
|
43
43
|
import {
|
|
44
44
|
waitForMachineReadiness
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-HZH5X3D6.js";
|
|
46
46
|
import {
|
|
47
47
|
hermesHistoryHelperRecordFailed,
|
|
48
48
|
hermesHistoryHelperRecordPath
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-7D2FYVBW.js";
|
|
50
50
|
import {
|
|
51
51
|
shortenHome
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-YMMRJK2S.js";
|
|
53
53
|
import {
|
|
54
54
|
readMacAppAgentKey
|
|
55
|
-
} from "../chunk-
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
55
|
+
} from "../chunk-BTFQLHZ2.js";
|
|
56
|
+
import "../chunk-EPJQPPBU.js";
|
|
57
|
+
import "../chunk-THE2SPHY.js";
|
|
58
58
|
import {
|
|
59
59
|
FX_RELOAD_AFTER_BRIDGE,
|
|
60
60
|
fxHttpEntryKeptNote,
|
|
@@ -62,26 +62,26 @@ import {
|
|
|
62
62
|
fxServerHolder,
|
|
63
63
|
inspectFxPusharyHttpWiring,
|
|
64
64
|
macAppFxBridge
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-67NX2ZEC.js";
|
|
66
66
|
import {
|
|
67
67
|
retryAgentCommand
|
|
68
|
-
} from "../chunk-
|
|
69
|
-
import "../chunk-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import "../chunk-
|
|
68
|
+
} from "../chunk-I3F2RT6H.js";
|
|
69
|
+
import "../chunk-W5SKLM2R.js";
|
|
70
|
+
import "../chunk-MSAFTQ5S.js";
|
|
71
|
+
import "../chunk-OA4BOYDG.js";
|
|
72
|
+
import "../chunk-JYNIBOW6.js";
|
|
73
|
+
import "../chunk-LOJ7U6VW.js";
|
|
74
74
|
import {
|
|
75
75
|
exitOnHelpFlag
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-L3OZKXAH.js";
|
|
77
77
|
import {
|
|
78
78
|
detectProviderLiveCapabilities,
|
|
79
79
|
expectedLaunchCapabilities,
|
|
80
80
|
hasSpawnProvider,
|
|
81
81
|
isManagedProvider,
|
|
82
82
|
resolveControlPolicy
|
|
83
|
-
} from "../chunk-
|
|
84
|
-
import "../chunk-
|
|
83
|
+
} from "../chunk-2RKHIDZJ.js";
|
|
84
|
+
import "../chunk-WKTGDK5J.js";
|
|
85
85
|
import "../chunk-TCE3J44Z.js";
|
|
86
86
|
import {
|
|
87
87
|
AUTO_UPDATE_DISABLE_ENV,
|
|
@@ -92,8 +92,8 @@ import {
|
|
|
92
92
|
isUnfinishedAutoUpdate,
|
|
93
93
|
readAutoUpdateState,
|
|
94
94
|
updateAutoUpdateState
|
|
95
|
-
} from "../chunk-
|
|
96
|
-
import "../chunk-
|
|
95
|
+
} from "../chunk-UC5LKWWC.js";
|
|
96
|
+
import "../chunk-LVB2UNTX.js";
|
|
97
97
|
import {
|
|
98
98
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
99
99
|
daemonHasRemoteProof,
|
|
@@ -106,30 +106,30 @@ import {
|
|
|
106
106
|
replaceDaemonService,
|
|
107
107
|
stopDaemonService,
|
|
108
108
|
waitForDaemonRemoteProof
|
|
109
|
-
} from "../chunk-
|
|
110
|
-
import "../chunk-
|
|
111
|
-
import "../chunk-
|
|
112
|
-
import "../chunk-
|
|
113
|
-
import "../chunk-
|
|
114
|
-
import "../chunk-
|
|
109
|
+
} from "../chunk-ABUIWYET.js";
|
|
110
|
+
import "../chunk-DKI5QA46.js";
|
|
111
|
+
import "../chunk-KMBUWYIF.js";
|
|
112
|
+
import "../chunk-XRF2QECS.js";
|
|
113
|
+
import "../chunk-V5JRLAHZ.js";
|
|
114
|
+
import "../chunk-ZOJCQT65.js";
|
|
115
115
|
import "../chunk-BZIBNSQE.js";
|
|
116
|
-
import "../chunk-
|
|
116
|
+
import "../chunk-SP5YAAFD.js";
|
|
117
117
|
import "../chunk-P6DUWKAO.js";
|
|
118
118
|
import "../chunk-3PSNUHC5.js";
|
|
119
|
-
import "../chunk-
|
|
120
|
-
import "../chunk-
|
|
119
|
+
import "../chunk-3ZF74CHU.js";
|
|
120
|
+
import "../chunk-VYPGDTD5.js";
|
|
121
121
|
import "../chunk-POFBE6ZY.js";
|
|
122
|
-
import "../chunk-
|
|
123
|
-
import "../chunk-
|
|
124
|
-
import "../chunk-
|
|
125
|
-
import "../chunk-
|
|
126
|
-
import "../chunk-
|
|
127
|
-
import "../chunk-
|
|
122
|
+
import "../chunk-3BGYVYXJ.js";
|
|
123
|
+
import "../chunk-I5K4M6RO.js";
|
|
124
|
+
import "../chunk-PPIPBJR2.js";
|
|
125
|
+
import "../chunk-FOABNWRY.js";
|
|
126
|
+
import "../chunk-2HHQA42H.js";
|
|
127
|
+
import "../chunk-W456LKRF.js";
|
|
128
128
|
import {
|
|
129
129
|
readControlMode,
|
|
130
130
|
recordMacAppKeyPrefix
|
|
131
|
-
} from "../chunk-
|
|
132
|
-
import "../chunk-
|
|
131
|
+
} from "../chunk-JTWSDHDB.js";
|
|
132
|
+
import "../chunk-UNHODOXL.js";
|
|
133
133
|
import {
|
|
134
134
|
CODEX_RESTART_AFTER_TRANSPORT_CHANGE,
|
|
135
135
|
autoUpdateState,
|
|
@@ -141,15 +141,15 @@ import {
|
|
|
141
141
|
pusharyDir,
|
|
142
142
|
serviceOwedBackMark,
|
|
143
143
|
vscodePluginDir
|
|
144
|
-
} from "../chunk-
|
|
144
|
+
} from "../chunk-UC3CPRDS.js";
|
|
145
145
|
import {
|
|
146
146
|
fetchLatestPublishedVersion,
|
|
147
147
|
newestReleaseNpmAllows,
|
|
148
148
|
plannedGlobalPackage
|
|
149
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-H4QSDEVU.js";
|
|
150
150
|
import {
|
|
151
151
|
getApiKey
|
|
152
|
-
} from "../chunk-
|
|
152
|
+
} from "../chunk-5C55SFEG.js";
|
|
153
153
|
import {
|
|
154
154
|
UsageError
|
|
155
155
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
} from "../chunk-PM2NRK6Y.js";
|
|
159
159
|
import {
|
|
160
160
|
NPX_LATEST_COMMAND
|
|
161
|
-
} from "../chunk-
|
|
161
|
+
} from "../chunk-4DP54WUK.js";
|
|
162
162
|
import {
|
|
163
163
|
EXIT
|
|
164
164
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
LEGACY_PACKAGE,
|
|
168
168
|
getPackageVersion
|
|
169
169
|
} from "../chunk-CXQWDQCJ.js";
|
|
170
|
-
import "../chunk-
|
|
170
|
+
import "../chunk-4DKVCK2C.js";
|
|
171
171
|
import "../chunk-MLKGABMK.js";
|
|
172
172
|
|
|
173
173
|
// bin/pushary-upgrade.ts
|
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -2,54 +2,54 @@
|
|
|
2
2
|
import {
|
|
3
3
|
waitResponse,
|
|
4
4
|
waitWindowResponse
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TYD3HCOZ.js";
|
|
6
6
|
import {
|
|
7
7
|
describeWaitLadder
|
|
8
8
|
} from "../chunk-CVWG2N3Y.js";
|
|
9
9
|
import {
|
|
10
10
|
exitOnFailedSettingsRequest
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-VQKDSIJ6.js";
|
|
12
|
+
import "../chunk-TKAHYLOH.js";
|
|
13
13
|
import {
|
|
14
14
|
APPROVAL_RULES_PATH,
|
|
15
15
|
PUSH_WINDOW_COMMAND,
|
|
16
16
|
PUSH_WINDOW_RESET_COMMAND
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-LOJ7U6VW.js";
|
|
18
18
|
import {
|
|
19
19
|
createIo
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-3LNGHZ2A.js";
|
|
21
21
|
import {
|
|
22
22
|
exitOnHelpFlag
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-L3OZKXAH.js";
|
|
24
24
|
import {
|
|
25
25
|
parseFlags
|
|
26
26
|
} from "../chunk-BZIBNSQE.js";
|
|
27
27
|
import {
|
|
28
28
|
absoluteUrl
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-FOABNWRY.js";
|
|
30
30
|
import {
|
|
31
31
|
pusharyFetch
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-2HHQA42H.js";
|
|
33
|
+
import "../chunk-W456LKRF.js";
|
|
34
|
+
import "../chunk-JTWSDHDB.js";
|
|
35
|
+
import "../chunk-UNHODOXL.js";
|
|
36
|
+
import "../chunk-UC3CPRDS.js";
|
|
37
|
+
import "../chunk-H4QSDEVU.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-5C55SFEG.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
exitCodeFor
|
|
45
45
|
} from "../chunk-CINBAX5G.js";
|
|
46
46
|
import "../chunk-PM2NRK6Y.js";
|
|
47
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-4DP54WUK.js";
|
|
48
48
|
import {
|
|
49
49
|
EXIT
|
|
50
50
|
} from "../chunk-BG4HHB7E.js";
|
|
51
51
|
import "../chunk-CXQWDQCJ.js";
|
|
52
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-4DKVCK2C.js";
|
|
53
53
|
import "../chunk-MLKGABMK.js";
|
|
54
54
|
|
|
55
55
|
// bin/pushary-wait.ts
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-2HHQA42H.js";
|
|
5
|
+
import "../chunk-W456LKRF.js";
|
|
6
|
+
import "../chunk-UC3CPRDS.js";
|
|
7
|
+
import "../chunk-H4QSDEVU.js";
|
|
8
|
+
import "../chunk-5C55SFEG.js";
|
|
9
9
|
import "../chunk-CINBAX5G.js";
|
|
10
10
|
import "../chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
LISTED_COMMANDS,
|
|
13
13
|
renderHelp,
|
|
14
14
|
resolveCommandName
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-4DP54WUK.js";
|
|
16
16
|
import {
|
|
17
17
|
EXIT
|
|
18
18
|
} from "../chunk-BG4HHB7E.js";
|
|
19
19
|
import {
|
|
20
20
|
getPackageVersion
|
|
21
21
|
} from "../chunk-CXQWDQCJ.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-4DKVCK2C.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/runtime.ts
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XOMANR2K.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BBDFTX3K.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OOHHMEYX.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3ZF74CHU.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VYPGDTD5.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3BGYVYXJ.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PPIPBJR2.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-4DKVCK2C.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W456LKRF.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5C55SFEG.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4DKVCK2C.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DKI5QA46.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UC3CPRDS.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H4QSDEVU.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4DKVCK2C.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WKTGDK5J.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H4QSDEVU.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
26
26
|
SPAWN_CAPABILITY,
|
|
27
27
|
sessionProvidersAdvertisedBy
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4DKVCK2C.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I5K4M6RO.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FOABNWRY.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2HHQA42H.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5C55SFEG.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4DKVCK2C.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DUUE36M5.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-QCGNGEGE.js";
|
|
20
20
|
import {
|
|
21
21
|
xml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ABUIWYET.js";
|
|
23
23
|
import {
|
|
24
24
|
writeFileAtomic
|
|
25
25
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3BGYVYXJ.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I5K4M6RO.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2HHQA42H.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UC3CPRDS.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5C55SFEG.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
isRecord,
|
|
39
39
|
truncateLine,
|
|
40
40
|
waitEndAnswered
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4DKVCK2C.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NPX_LATEST_COMMAND
|
|
3
|
+
} from "./chunk-4DP54WUK.js";
|
|
4
|
+
import {
|
|
5
|
+
isValidApiKey
|
|
6
|
+
} from "./chunk-4DKVCK2C.js";
|
|
7
|
+
|
|
8
|
+
// src/config.ts
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
import { join } from "path";
|
|
11
|
+
import { homedir } from "os";
|
|
12
|
+
var configFilePath = () => process.env.PUSHARY_CONFIG_FILE?.trim() || join(homedir(), ".pushary", "config.json");
|
|
13
|
+
var SAVED_KEY_LOCATION = "~/.pushary/config.json";
|
|
14
|
+
var savedKeyLocation = () => process.env.PUSHARY_CONFIG_FILE?.trim() || SAVED_KEY_LOCATION;
|
|
15
|
+
var readKeyFromConfigFile = () => {
|
|
16
|
+
try {
|
|
17
|
+
const parsed = JSON.parse(readFileSync(configFilePath(), "utf-8"));
|
|
18
|
+
const key = typeof parsed.apiKey === "string" ? parsed.apiKey.trim() : "";
|
|
19
|
+
return key || void 0;
|
|
20
|
+
} catch {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var UNRECOGNISED_KEY_CHARACTERS_SHOWN = 4;
|
|
25
|
+
var keyPrefixToShow = (key) => isValidApiKey(key) ? key.split(".")[0] ?? key : `${key.slice(0, UNRECOGNISED_KEY_CHARACTERS_SHOWN)}\u2026`;
|
|
26
|
+
var driftChecked = false;
|
|
27
|
+
var warnOnKeyDrift = (envKey) => {
|
|
28
|
+
if (driftChecked || process.env.PUSHARY_SUPPRESS_KEY_DRIFT_WARNING === "1") return;
|
|
29
|
+
driftChecked = true;
|
|
30
|
+
const fileKey = readKeyFromConfigFile();
|
|
31
|
+
if (!fileKey || fileKey === envKey) return;
|
|
32
|
+
process.stderr.write(
|
|
33
|
+
`[pushary] PUSHARY_API_KEY in your environment (${keyPrefixToShow(envKey)}) differs from ${configFilePath()} (${keyPrefixToShow(fileKey)}). The environment one is being used. Run 'pushary doctor' for details, or set PUSHARY_SUPPRESS_KEY_DRIFT_WARNING=1 if this is deliberate.
|
|
34
|
+
`
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
var resetKeyDriftWarning = () => {
|
|
38
|
+
driftChecked = false;
|
|
39
|
+
};
|
|
40
|
+
var apiKeyInForce = ({ environmentKey, configFileKey, configLocation }) => {
|
|
41
|
+
if (environmentKey && isValidApiKey(environmentKey)) return { kind: "key", key: environmentKey, origin: "environment" };
|
|
42
|
+
if (configFileKey && isValidApiKey(configFileKey)) return { kind: "key", key: configFileKey, origin: "config_file" };
|
|
43
|
+
if (environmentKey) return { kind: "malformed", origin: "environment", configLocation };
|
|
44
|
+
if (configFileKey) return { kind: "malformed", origin: "config_file", configLocation };
|
|
45
|
+
return { kind: "missing" };
|
|
46
|
+
};
|
|
47
|
+
var MISSING_API_KEY_MESSAGE = `PUSHARY_API_KEY is not set and no key was found in ${SAVED_KEY_LOCATION}. Run \`${NPX_LATEST_COMMAND} setup\`, or get your API key at https://pushary.com/sign-up?from=ai-coding`;
|
|
48
|
+
var LOGIN_STEP = `Run \`${NPX_LATEST_COMMAND} login\`.`;
|
|
49
|
+
var MALFORMED_API_KEY_MESSAGES = {
|
|
50
|
+
environment: (configLocation) => `PUSHARY_API_KEY is set, but it is not a Pushary API key, and ${configLocation} has no valid one. ${LOGIN_STEP}`,
|
|
51
|
+
config_file: (configLocation) => `The key saved in ${configLocation} is not a Pushary API key. ${LOGIN_STEP}`
|
|
52
|
+
};
|
|
53
|
+
var malformedApiKeyMessage = (read) => MALFORMED_API_KEY_MESSAGES[read.origin](read.configLocation);
|
|
54
|
+
var MalformedApiKeyError = class extends Error {
|
|
55
|
+
constructor(read) {
|
|
56
|
+
super(malformedApiKeyMessage(read));
|
|
57
|
+
this.name = "MalformedApiKeyError";
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var isMalformedApiKeyError = (error) => error instanceof MalformedApiKeyError;
|
|
61
|
+
var isEnvironmentKeyInForce = (read) => read.kind === "key" && read.origin === "environment";
|
|
62
|
+
var readApiKey = () => {
|
|
63
|
+
const read = apiKeyInForce({
|
|
64
|
+
environmentKey: process.env.PUSHARY_API_KEY?.trim() || void 0,
|
|
65
|
+
configFileKey: readKeyFromConfigFile(),
|
|
66
|
+
configLocation: savedKeyLocation()
|
|
67
|
+
});
|
|
68
|
+
if (isEnvironmentKeyInForce(read)) warnOnKeyDrift(read.key);
|
|
69
|
+
return read;
|
|
70
|
+
};
|
|
71
|
+
var getApiKey = () => {
|
|
72
|
+
const read = readApiKey();
|
|
73
|
+
if (read.kind === "key") return read.key;
|
|
74
|
+
if (read.kind === "malformed") throw new MalformedApiKeyError(read);
|
|
75
|
+
throw new Error(MISSING_API_KEY_MESSAGE);
|
|
76
|
+
};
|
|
77
|
+
var getBaseUrl = () => process.env.PUSHARY_BASE_URL?.trim() || process.env.PUSHARY_API_URL?.trim() || "https://pushary.com";
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
configFilePath,
|
|
81
|
+
keyPrefixToShow,
|
|
82
|
+
resetKeyDriftWarning,
|
|
83
|
+
apiKeyInForce,
|
|
84
|
+
malformedApiKeyMessage,
|
|
85
|
+
MalformedApiKeyError,
|
|
86
|
+
isMalformedApiKeyError,
|
|
87
|
+
readApiKey,
|
|
88
|
+
getApiKey,
|
|
89
|
+
getBaseUrl
|
|
90
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UC3CPRDS.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H4QSDEVU.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|