pushary 1.9.205 → 1.9.207
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 +8 -0
- package/dist/{api-PO372R5F.js → api-OQGHZCAM.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 +27 -27
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +36 -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 +47 -47
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +3 -2
- package/dist/bin/pushary-doctor.js +54 -51
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +12 -12
- 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 +34 -34
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- 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 +40 -40
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +58 -58
- 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 +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 +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-2WHNR3ER.js → chunk-23KAHWRD.js} +4 -4
- package/dist/{chunk-R7ZVCOXR.js → chunk-2JGMB3SB.js} +2 -2
- package/dist/{chunk-LWWFQHJR.js → chunk-34IIVC72.js} +3 -3
- package/dist/{chunk-ZEXFK5YS.js → chunk-3AJPKS6R.js} +4 -4
- package/dist/{chunk-JWXEPWQ6.js → chunk-3BSM7YIT.js} +7 -7
- package/dist/{chunk-KH3U44ZK.js → chunk-46I2TSIX.js} +2 -2
- package/dist/{chunk-PGGYS32J.js → chunk-4L5NHOG6.js} +1 -1
- package/dist/{chunk-2Y7MJQCN.js → chunk-4LB6OHWL.js} +2 -2
- package/dist/{chunk-KNCMUCKG.js → chunk-6VRVLIAL.js} +1 -1
- package/dist/{chunk-ZERUCHT6.js → chunk-7AIZCVGP.js} +4 -4
- package/dist/{chunk-7SNBOQDD.js → chunk-7DQA3DGV.js} +2 -2
- package/dist/{chunk-CRCC65FU.js → chunk-7E3NC6AB.js} +5 -5
- package/dist/{chunk-OOE354IG.js → chunk-7FURGR5F.js} +56 -49
- package/dist/{chunk-B4J3OPKE.js → chunk-A7UD7XSP.js} +2 -2
- package/dist/{chunk-QZZU4VHH.js → chunk-AARX5V6Y.js} +1 -1
- package/dist/{chunk-HXLCATVW.js → chunk-ALV7S2OU.js} +2 -2
- package/dist/{chunk-PW7WIT6J.js → chunk-ASNNUZUU.js} +5 -5
- package/dist/{chunk-34YI42UX.js → chunk-AWTWNCXH.js} +3 -3
- package/dist/{chunk-JZOXTGTD.js → chunk-B4PMU5A2.js} +3 -3
- package/dist/{chunk-2KNKPMWO.js → chunk-BJKZOWNO.js} +1 -1
- package/dist/{chunk-RG3REA2Y.js → chunk-BKXVAQ6Z.js} +1 -1
- package/dist/{chunk-PTHC2H7E.js → chunk-C3QY6W2L.js} +1 -1
- package/dist/{chunk-SHYBUXSP.js → chunk-CZIWGRCR.js} +7 -7
- package/dist/{chunk-MGAEFOGL.js → chunk-D4JBP7SF.js} +5 -5
- package/dist/{chunk-CFPJRYNK.js → chunk-DL7B4HOL.js} +1 -1
- package/dist/{chunk-RMNOELSS.js → chunk-E7BUSVSF.js} +1 -1
- package/dist/{chunk-W6KQY5RJ.js → chunk-ECFMVEJN.js} +5 -5
- package/dist/{chunk-AISKZTFX.js → chunk-EE2IOAJL.js} +4 -4
- package/dist/{chunk-52OHO3HH.js → chunk-EO7HEPOS.js} +1 -1
- package/dist/{chunk-OXGT7OTC.js → chunk-F6G6MJOE.js} +12 -12
- package/dist/{chunk-E3VDRPOZ.js → chunk-FDLVWVI6.js} +5 -5
- package/dist/{chunk-SCZELAXA.js → chunk-FI6WFUYB.js} +1 -1
- package/dist/{chunk-R6XDTP7G.js → chunk-G5KGNWYN.js} +6 -6
- package/dist/{chunk-P4RSWFWB.js → chunk-GCM5SG22.js} +5 -5
- package/dist/{chunk-7YB4UGGI.js → chunk-GJAC452A.js} +2 -2
- package/dist/{chunk-UQQE37KU.js → chunk-GRCMWCKW.js} +6 -6
- package/dist/{chunk-WFUWF4QY.js → chunk-H4NCGQ6M.js} +18 -18
- package/dist/{chunk-HNSTXU6Y.js → chunk-H7ZEJ7PG.js} +1 -1
- package/dist/{chunk-SXMJ7NAN.js → chunk-HEHJHZFM.js} +1 -1
- package/dist/{chunk-N62TAZJE.js → chunk-HMOMXNDP.js} +3 -3
- package/dist/{chunk-MP3IANXU.js → chunk-INAZLJTQ.js} +8 -6
- package/dist/{chunk-2RJQKHS2.js → chunk-JQ5WAWOE.js} +5 -5
- package/dist/{chunk-XEFPE5MQ.js → chunk-KG43UTQ2.js} +4 -4
- package/dist/{chunk-HTMMJASM.js → chunk-L6B4DLQO.js} +5 -0
- package/dist/{chunk-RBKBFQ3D.js → chunk-L6LU4H7R.js} +4 -4
- package/dist/{chunk-YC3MEGKX.js → chunk-LK4HFUV6.js} +3 -3
- package/dist/{chunk-YUQAIO4Z.js → chunk-LLNMDPR7.js} +1 -1
- package/dist/{chunk-QSVIT62Y.js → chunk-LPHOIJ4S.js} +1 -1
- package/dist/{chunk-DNCH65TL.js → chunk-LUGBS7V4.js} +21 -13
- package/dist/{chunk-3W5OVQ66.js → chunk-LVBQYJRU.js} +2 -2
- package/dist/{chunk-WIN65UQX.js → chunk-MYZHMNEH.js} +13 -13
- package/dist/{chunk-3DGWT6EY.js → chunk-ND7BLHMD.js} +2 -2
- package/dist/{chunk-T5RPPEUL.js → chunk-NK4UHW56.js} +8 -8
- package/dist/{chunk-TTE7QIW5.js → chunk-NMJ6SQFI.js} +2 -2
- package/dist/{chunk-3NGBANTY.js → chunk-NNII26E4.js} +1 -1
- package/dist/{chunk-3WPXWHEM.js → chunk-NTQ7PFJZ.js} +9 -9
- package/dist/{chunk-X2ITLLIV.js → chunk-O22WQ66A.js} +5 -5
- package/dist/{chunk-AORWV5JK.js → chunk-OSUDHXL7.js} +1 -1
- package/dist/{chunk-ZQ4YBCVO.js → chunk-OVON5YBI.js} +2 -2
- package/dist/{chunk-HS4RZZRG.js → chunk-OYZYQQUF.js} +1 -1
- package/dist/{chunk-IKUJZYFH.js → chunk-PD2MPKLL.js} +6 -6
- package/dist/{chunk-RGPYEMW5.js → chunk-RI4OOD7K.js} +5 -5
- package/dist/{chunk-N4QFPPSM.js → chunk-RWNBIHHC.js} +3 -3
- package/dist/{chunk-RYT23NAI.js → chunk-TCU4624H.js} +3 -3
- package/dist/{chunk-D7LVY2XF.js → chunk-UASIAAK5.js} +6 -6
- package/dist/{chunk-VLSSUMFC.js → chunk-V6FFLFHU.js} +2 -2
- package/dist/{chunk-322DR4ZT.js → chunk-VBMTM42J.js} +1 -1
- package/dist/{chunk-6LQEDP2W.js → chunk-VLDTEALG.js} +1 -1
- package/dist/{chunk-DGNQLVYO.js → chunk-VTRBQQEB.js} +2 -2
- package/dist/{chunk-CBBRVY77.js → chunk-W76XEEKZ.js} +1 -1
- package/dist/{chunk-SH2WBJ5M.js → chunk-W77QD3FO.js} +1 -1
- package/dist/{chunk-POVKTTKE.js → chunk-WD6TMDDW.js} +2 -2
- package/dist/{chunk-RDFQOEPF.js → chunk-WUVXIYCU.js} +6 -6
- package/dist/{chunk-ETPJJ6Y6.js → chunk-XHEACCRG.js} +3 -3
- package/dist/{chunk-CQJ7567M.js → chunk-XUZDE4CL.js} +3 -3
- package/dist/{chunk-MX6HK3UN.js → chunk-XYIFGVRS.js} +3 -3
- package/dist/{chunk-BDVSELVT.js → chunk-YAANG34I.js} +4 -4
- package/dist/{chunk-QKCWDUQQ.js → chunk-YSLO2TYJ.js} +5 -5
- package/dist/{chunk-75MSER3U.js → chunk-YYOH2BDS.js} +1 -1
- package/dist/{chunk-5JRBOJYW.js → chunk-Z5FCLO72.js} +1 -1
- package/dist/{chunk-RILOBL2B.js → chunk-ZCAVVFIK.js} +2 -2
- package/dist/{chunk-RJTCIOHI.js → chunk-ZNISK76S.js} +4 -4
- package/dist/{codex-app-cards-switch-MO5LT4NK.js → codex-app-cards-switch-JDDHXIEC.js} +11 -11
- package/dist/{codex-card-routing-7NYNHVLU.js → codex-card-routing-BHT63BYK.js} +2 -2
- package/dist/{codex-desktop-launch-JBQBWPED.js → codex-desktop-launch-W65BJOIH.js} +1 -1
- package/dist/{codex-session-launch-N7PFVCBO.js → codex-session-launch-DKE7RE6G.js} +20 -20
- package/dist/{config-NJ6EGXZF.js → config-F3HTRAHA.js} +3 -3
- package/dist/{global-upgrade-XTTSGSGC.js → global-upgrade-ZVBINYHG.js} +9 -9
- package/dist/{identity-6BMMEYWU.js → identity-FPFWBY3O.js} +4 -4
- package/dist/{live-capabilities-4TXTJ7R2.js → live-capabilities-OEI72HTJ.js} +4 -4
- package/dist/{paths-IIV4U3NA.js → paths-3QC3ZZ7Y.js} +3 -3
- package/dist/reapply-3NGF4HQW.js +75 -0
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-HZ66QJKL.js → upgrade-lock-A64U4P54.js} +4 -4
- package/dist/{usage-NEZ2357Z.js → usage-LQQQQMW3.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-EPHMTGFP.js +0 -75
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ND7BLHMD.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XUZDE4CL.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WD6TMDDW.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ALV7S2OU.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-INAZLJTQ.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FI6WFUYB.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7FURGR5F.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HMOMXNDP.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RWNBIHHC.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BKXVAQ6Z.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-L6B4DLQO.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LK4HFUV6.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L6B4DLQO.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WUVXIYCU.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
isCI,
|
|
30
30
|
terminalColumns,
|
|
31
31
|
useColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-C3QY6W2L.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LK4HFUV6.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-A7UD7XSP.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FI6WFUYB.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-L6B4DLQO.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -2,39 +2,39 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VTRBQQEB.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NMJ6SQFI.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-H7ZEJ7PG.js";
|
|
13
13
|
import {
|
|
14
14
|
askAgentQuestions,
|
|
15
15
|
outcomeOfFailedAsk,
|
|
16
16
|
storedWaitDeadline
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7E3NC6AB.js";
|
|
18
18
|
import {
|
|
19
19
|
reportMachineDenial
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YAANG34I.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DL7B4HOL.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RI4OOD7K.js";
|
|
29
29
|
import {
|
|
30
30
|
isDeferAnswer,
|
|
31
31
|
oncePerSession
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LLNMDPR7.js";
|
|
33
33
|
import {
|
|
34
34
|
activeHookSource,
|
|
35
35
|
activeIdentity,
|
|
36
36
|
namedSource
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-D4JBP7SF.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFAULT_SESSION,
|
|
40
40
|
approvalAwaitingRetry,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
settleQuestionsForToolUse,
|
|
59
59
|
sweepFilesOlderThan,
|
|
60
60
|
userScope
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-F6G6MJOE.js";
|
|
62
62
|
import {
|
|
63
63
|
UNNAMED_ACTION,
|
|
64
64
|
deriveAction,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
patchDeletesFiles,
|
|
70
70
|
permissionDeniedAction,
|
|
71
71
|
scopePathFor
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-OYZYQQUF.js";
|
|
73
73
|
import {
|
|
74
74
|
askUser,
|
|
75
75
|
cancelQuestion,
|
|
@@ -86,29 +86,29 @@ import {
|
|
|
86
86
|
waitForQuestion,
|
|
87
87
|
waitsForThePhone,
|
|
88
88
|
withdrawQuestion
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-PD2MPKLL.js";
|
|
90
90
|
import {
|
|
91
91
|
branchFor,
|
|
92
92
|
projectNameFor,
|
|
93
93
|
repoKeyFor,
|
|
94
94
|
repositoryScopeFor
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-Z5FCLO72.js";
|
|
96
96
|
import {
|
|
97
97
|
getMachineId
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-VLDTEALG.js";
|
|
99
99
|
import {
|
|
100
100
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-ALV7S2OU.js";
|
|
102
102
|
import {
|
|
103
103
|
getApiKey,
|
|
104
104
|
getBaseUrl
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-BKXVAQ6Z.js";
|
|
106
106
|
import {
|
|
107
107
|
writeFileAtomic
|
|
108
108
|
} from "./chunk-PM2NRK6Y.js";
|
|
109
109
|
import {
|
|
110
110
|
NPX_LATEST_COMMAND
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-FI6WFUYB.js";
|
|
112
112
|
import {
|
|
113
113
|
AGENT_QUESTION_STRATEGY,
|
|
114
114
|
AGENT_QUESTION_TOOL,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
timeoutActionWithoutLocalPrompt,
|
|
183
183
|
unansweredRefusalReason,
|
|
184
184
|
unapprovedScopeReason
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-L6B4DLQO.js";
|
|
186
186
|
|
|
187
187
|
// src/terminal-answer-watch.ts
|
|
188
188
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4L5NHOG6.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ALV7S2OU.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-INAZLJTQ.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L6B4DLQO.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-L6B4DLQO.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -463,7 +463,7 @@ var npmExemptsFromReleaseAge = (request, runNpm = execNpm) => {
|
|
|
463
463
|
var npmStoppedAfterStarting = (error) => npmExitedOnItsOwn(error) || npmWasKilledBySignal(error);
|
|
464
464
|
var previewOfFailedDryRun = (request, error, runNpm) => {
|
|
465
465
|
if (npmExitedOnReleaseAge(error)) {
|
|
466
|
-
return npmExemptsFromReleaseAge(request, runNpm) ?
|
|
466
|
+
return npmExemptsFromReleaseAge(request, runNpm) ? { kind: "exempt_from_release_age" } : { kind: "refused_for_release_age", refusal: error };
|
|
467
467
|
}
|
|
468
468
|
return npmStoppedAfterStarting(error) ? { kind: "failed", failure: error } : UNAVAILABLE_PREVIEW;
|
|
469
469
|
};
|
|
@@ -493,8 +493,10 @@ var newestReleaseNpmAllows = (target, installed, published, runNpm = execNpm) =>
|
|
|
493
493
|
return chosenRelease(installed);
|
|
494
494
|
case "failed":
|
|
495
495
|
return { kind: "npm_failed", failure: preview.failure };
|
|
496
|
-
case "
|
|
496
|
+
case "exempt_from_release_age":
|
|
497
497
|
return chosenRelease(published);
|
|
498
|
+
case "unavailable":
|
|
499
|
+
return target.requireVerifiedVersion ? { kind: "npm_failed", failure: new Error("npm returned no verifiable package version") } : chosenRelease(published);
|
|
498
500
|
}
|
|
499
501
|
};
|
|
500
502
|
var describeReleaseNpmHolds = (published) => `${published} is not yet allowed by this machine's npm settings, such as min-release-age`;
|
|
@@ -598,9 +600,9 @@ var installGlobally = (options) => {
|
|
|
598
600
|
}
|
|
599
601
|
const started = (async () => {
|
|
600
602
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
601
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
602
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
603
|
-
const { autoUpdateLock } = await import("./paths-
|
|
603
|
+
const { withUpgradeLock } = await import("./global-upgrade-ZVBINYHG.js");
|
|
604
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-A64U4P54.js");
|
|
605
|
+
const { autoUpdateLock } = await import("./paths-3QC3ZZ7Y.js");
|
|
604
606
|
let result = "skipped";
|
|
605
607
|
const install = async () => {
|
|
606
608
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RWNBIHHC.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-34IIVC72.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TCU4624H.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ALV7S2OU.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-INAZLJTQ.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CZIWGRCR.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TCU4624H.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ALV7S2OU.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L6B4DLQO.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -4070,6 +4070,10 @@ var ANSWER_DRAFT_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
|
4070
4070
|
// ../contracts/src/session-history.ts
|
|
4071
4071
|
var SESSION_HISTORY_BACKFILL_LIMIT_BYTES = 2e7;
|
|
4072
4072
|
|
|
4073
|
+
// ../contracts/src/transcript-projection.ts
|
|
4074
|
+
var HERMES_VISIBLE_TEXT = "hermes-visible-text-v1";
|
|
4075
|
+
var isHermesVisibleContent = (content) => Array.isArray(content) && content.length > 0 && content.every((block) => block?.type === "text" && typeof block.text === "string" && block.visibility === HERMES_VISIBLE_TEXT);
|
|
4076
|
+
|
|
4073
4077
|
// ../contracts/src/decision-lifetime.ts
|
|
4074
4078
|
var DECISION_REMINDER_DELAY_MS = 10 * 60 * 1e3;
|
|
4075
4079
|
var DECISION_CACHE_TTL_SECONDS = 10 * 60;
|
|
@@ -10489,6 +10493,7 @@ export {
|
|
|
10489
10493
|
CALL_REFUSED_EVENT,
|
|
10490
10494
|
callRefusalReasonWhenUnanswered,
|
|
10491
10495
|
SESSION_HISTORY_BACKFILL_LIMIT_BYTES,
|
|
10496
|
+
isHermesVisibleContent,
|
|
10492
10497
|
PERSONAL_QUESTION_CAPABILITY,
|
|
10493
10498
|
isQuestionOwner,
|
|
10494
10499
|
CODEX_SHELL_COMMAND_FLAGS,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OSUDHXL7.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BJKZOWNO.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
isBridgeLocator,
|
|
17
17
|
isProtectedByScope,
|
|
18
18
|
registerHookEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ALV7S2OU.js";
|
|
20
20
|
import {
|
|
21
21
|
CURSOR_GATE_EVENTS,
|
|
22
22
|
HOOK_BUDGETS,
|
|
23
23
|
HOOK_LOCATOR_BINARY,
|
|
24
24
|
hookCommandHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-L6B4DLQO.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XHEACCRG.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BKXVAQ6Z.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L6B4DLQO.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UASIAAK5.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L6LU4H7R.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OYZYQQUF.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XYIFGVRS.js";
|
|
28
28
|
import {
|
|
29
29
|
external_exports,
|
|
30
30
|
ownedOnlyByThisUser,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
transcriptEnvironmentPreference,
|
|
35
35
|
transcriptsEnabled
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6VRVLIAL.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VBMTM42J.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TCU4624H.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ALV7S2OU.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BKXVAQ6Z.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -57,10 +57,11 @@ import {
|
|
|
57
57
|
PENDING_COMMAND_PREFIX,
|
|
58
58
|
SESSION_HISTORY_BACKFILL_LIMIT_BYTES,
|
|
59
59
|
canonicalJsonText,
|
|
60
|
+
isHermesVisibleContent,
|
|
60
61
|
isHookSource,
|
|
61
62
|
isRecord,
|
|
62
63
|
redactSecretsFromContent
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-L6B4DLQO.js";
|
|
64
65
|
|
|
65
66
|
// src/transcript-registration.ts
|
|
66
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -506,7 +507,7 @@ var parseCursorSnapshot = (text) => {
|
|
|
506
507
|
return messages;
|
|
507
508
|
};
|
|
508
509
|
var historyBlock = external_exports.discriminatedUnion("type", [
|
|
509
|
-
external_exports.object({ type: external_exports.literal("text"), text: external_exports.string() }),
|
|
510
|
+
external_exports.object({ type: external_exports.literal("text"), text: external_exports.string(), visibility: external_exports.string().optional() }),
|
|
510
511
|
external_exports.object({ type: external_exports.literal("tool_use"), id: identity, name: external_exports.string(), input: external_exports.record(external_exports.string(), external_exports.unknown()) }),
|
|
511
512
|
external_exports.object({ type: external_exports.literal("tool_result"), tool_use_id: identity, content: external_exports.unknown(), is_error: external_exports.boolean().optional() })
|
|
512
513
|
]);
|
|
@@ -516,7 +517,7 @@ var hermesSnapshot = external_exports.object({
|
|
|
516
517
|
completed: external_exports.boolean().default(false),
|
|
517
518
|
updatedAtMs: external_exports.number().int().positive(),
|
|
518
519
|
error: external_exports.string().optional(),
|
|
519
|
-
messages: external_exports.array(external_exports.object({ id: identity, role: external_exports.enum(["user", "assistant"]), timestamp, content: external_exports.array(historyBlock) })).max(
|
|
520
|
+
messages: external_exports.array(external_exports.object({ id: identity, role: external_exports.enum(["user", "assistant"]), timestamp, content: external_exports.array(historyBlock) })).max(25e3)
|
|
520
521
|
});
|
|
521
522
|
var TranscriptSourceUnavailable = class extends Error {
|
|
522
523
|
};
|
|
@@ -524,6 +525,7 @@ var parseHermesSnapshot = (text, sessionId, nowMs) => {
|
|
|
524
525
|
const snapshot = hermesSnapshot.parse(JSON.parse(text));
|
|
525
526
|
if (snapshot.sessionId !== sessionId) throw new Error("Hermes history identity mismatch");
|
|
526
527
|
if (snapshot.error || !snapshot.completed && nowMs - snapshot.updatedAtMs > 18e4 || snapshot.updatedAtMs > nowMs + 5e3) throw new TranscriptSourceUnavailable("Hermes history exporter is unavailable");
|
|
528
|
+
if (!snapshot.messages.every((message) => isHermesVisibleContent(message.content))) throw new TranscriptSourceUnavailable("Reopen Hermes to refresh its display history");
|
|
527
529
|
return snapshot.messages;
|
|
528
530
|
};
|
|
529
531
|
|
|
@@ -795,6 +797,12 @@ var appendOnlyReader = (path, source, epoch) => ({
|
|
|
795
797
|
var UNCHANGED_SNAPSHOT_REREAD_MS = 6e4;
|
|
796
798
|
var caughtUpReadStillCurrent = (caughtUp, version, nowMs) => caughtUp !== null && caughtUp.version === version && nowMs >= caughtUp.atMs && nowMs - caughtUp.atMs < UNCHANGED_SNAPSHOT_REREAD_MS;
|
|
797
799
|
var UNCHANGED_SNAPSHOT_READ = { lines: [], acknowledge: () => "unchanged" };
|
|
800
|
+
var isVisibleHermesRevision = (line) => {
|
|
801
|
+
const record = JSON.parse(line);
|
|
802
|
+
if (!isRecord(record) || !isRecord(record.historySource)) return false;
|
|
803
|
+
if (record.historySource.removed === true) return !("historyMessage" in record);
|
|
804
|
+
return isRecord(record.historyMessage) && isHermesVisibleContent(record.historyMessage.content);
|
|
805
|
+
};
|
|
798
806
|
var snapshotReader = (options, source) => {
|
|
799
807
|
const { path, epoch } = options;
|
|
800
808
|
const binding = createHash3("sha256").update(JSON.stringify([options.baseUrl, options.apiKey, options.machineId, options.sessionId, source, path])).digest("hex");
|
|
@@ -813,7 +821,7 @@ var snapshotReader = (options, source) => {
|
|
|
813
821
|
if (version !== null && caughtUpReadStillCurrent(caughtUp, version, nowMs)) return UNCHANGED_SNAPSHOT_READ;
|
|
814
822
|
const lines = pending ?? checkpoint.prepare(readTranscriptSnapshot(path, source, options.sessionId), oldestMessage, nowMs);
|
|
815
823
|
return {
|
|
816
|
-
lines,
|
|
824
|
+
lines: source === "hermes" && pending !== null ? lines.filter(isVisibleHermesRevision) : lines,
|
|
817
825
|
acknowledge() {
|
|
818
826
|
checkpoint.settle();
|
|
819
827
|
const progress = version === null || sourceVersion(path) !== version ? "more" : "caught_up";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ALV7S2OU.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-INAZLJTQ.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-CXQWDQCJ.js";
|