@pushary/agent-hooks 1.9.163 → 1.9.164
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 +6 -0
- package/dist/{api-3W4XWXCZ.js → api-D4SZ2E5J.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 +11 -11
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +38 -38
- 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 +34 -34
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +45 -45
- package/dist/bin/pushary-disconnect.js +29 -29
- package/dist/bin/pushary-display-hook.js +6 -1
- package/dist/bin/pushary-doctor.js +46 -46
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- 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 +29 -29
- 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-hook.js +33 -33
- 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 +38 -38
- package/dist/bin/pushary-setup.js +54 -54
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +35 -35
- 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 +43 -43
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-NE23W6RX.js → chunk-2FLJZICI.js} +2 -2
- package/dist/{chunk-TG252BD4.js → chunk-2J3IIFS3.js} +2 -2
- package/dist/{chunk-BS5YSLXS.js → chunk-2KZZZ4JK.js} +3 -3
- package/dist/{chunk-KU7DUO5E.js → chunk-3CLLJJJ2.js} +5 -5
- package/dist/{chunk-FIQFGSXB.js → chunk-3GWMSKFY.js} +18 -18
- package/dist/{chunk-KG5UNSTJ.js → chunk-3I5IFXHF.js} +1 -1
- package/dist/{chunk-7DHVYOOP.js → chunk-5I34FSSW.js} +6 -6
- package/dist/{chunk-DJOAYJYR.js → chunk-635I27L4.js} +3 -3
- package/dist/{chunk-LYPTFNMM.js → chunk-67CGCPI4.js} +2 -2
- package/dist/{chunk-3TN7WHEF.js → chunk-6OBGKICP.js} +3 -3
- package/dist/{chunk-JQ2KBN4B.js → chunk-6QLOTNO2.js} +2 -2
- package/dist/{chunk-LKF2C5SP.js → chunk-6ZGXNEBA.js} +5 -5
- package/dist/{chunk-F2EPFT5W.js → chunk-7HXO72HS.js} +1 -1
- package/dist/{chunk-LNZQBK3Z.js → chunk-7JO3NNIQ.js} +2 -2
- package/dist/{chunk-YQJX2SJ3.js → chunk-7PMCRTPW.js} +3 -3
- package/dist/{chunk-P6D5R2GR.js → chunk-7TQXWAOZ.js} +1 -1
- package/dist/{chunk-4ZV734EY.js → chunk-7WHUMPWM.js} +1 -1
- package/dist/{chunk-KJY4KNSE.js → chunk-7X7ZTLIN.js} +11 -11
- package/dist/{chunk-2P3E6CXY.js → chunk-7YUKURRZ.js} +1 -1
- package/dist/{chunk-B6SP4ZLB.js → chunk-A4IK6JTC.js} +4 -4
- package/dist/{chunk-OQSSPA5U.js → chunk-ANMVHKNK.js} +3 -3
- package/dist/{chunk-7FMXDLNO.js → chunk-BFMILGSX.js} +3 -3
- package/dist/{chunk-N7VOAIFG.js → chunk-BOJWXETW.js} +1 -1
- package/dist/{chunk-WOAHDWWF.js → chunk-C2PGBMTH.js} +1 -1
- package/dist/{chunk-MBAWDULS.js → chunk-D3KD7K3N.js} +4 -4
- package/dist/{chunk-QLBY4O7Q.js → chunk-DFGHHYS5.js} +4 -4
- package/dist/{chunk-U2XD5U2Z.js → chunk-EANTIGY7.js} +1 -1
- package/dist/{chunk-VXSAB3ZE.js → chunk-GNCFKXQS.js} +2 -2
- package/dist/{chunk-7U3GZ5ZV.js → chunk-I2FH4E6H.js} +2 -2
- package/dist/{chunk-3HUPWSLJ.js → chunk-I4BIOADS.js} +4 -4
- package/dist/{chunk-JDY2FFC3.js → chunk-IEENAYGT.js} +1 -1
- package/dist/{chunk-W2EOPCHG.js → chunk-IGBKHRCZ.js} +1 -1
- package/dist/{chunk-7RGPAEEL.js → chunk-ILBNQX44.js} +5 -5
- package/dist/{chunk-Q5CWVFV2.js → chunk-ILGAR7DW.js} +134 -8
- package/dist/{chunk-5ZL7QBVM.js → chunk-ITGM5QW4.js} +6 -6
- package/dist/{chunk-3ZJLASF2.js → chunk-JAE5ULC6.js} +5 -5
- package/dist/{chunk-RQWKMBDO.js → chunk-JARCCL3M.js} +2 -2
- package/dist/{chunk-IHZ7MUYB.js → chunk-JLGZGITL.js} +2 -2
- package/dist/{chunk-YLV5J6QF.js → chunk-KYBVLSMT.js} +3 -3
- package/dist/{chunk-LEWUIP5P.js → chunk-L2NGVERQ.js} +1 -1
- package/dist/{chunk-ZZ44PWXB.js → chunk-L4HJSUP7.js} +1 -1
- package/dist/{chunk-ZLWAN47L.js → chunk-L54D5IIR.js} +5 -5
- package/dist/{chunk-MUGQUNPY.js → chunk-LDEZYH7Y.js} +10 -10
- package/dist/{chunk-SYAAPPNF.js → chunk-LFS3PX7S.js} +4 -4
- package/dist/{chunk-7WBIMPZQ.js → chunk-LJSRMA5C.js} +5 -5
- package/dist/{chunk-TF46WWVU.js → chunk-MN2FFBYE.js} +2 -2
- package/dist/{chunk-TAD24RFF.js → chunk-MTB52RSH.js} +2 -2
- package/dist/{chunk-ILPCJRLG.js → chunk-MYN6FNBS.js} +3 -3
- package/dist/{chunk-MLOOPTC7.js → chunk-NCZ7MLNW.js} +9 -9
- package/dist/{chunk-AZ7X2FBB.js → chunk-NEGPZ3DO.js} +2 -2
- package/dist/{chunk-GVPOVNRT.js → chunk-NN2RZ2UB.js} +3 -3
- package/dist/{chunk-COFH3FQT.js → chunk-NUHIGW7H.js} +1 -1
- package/dist/{chunk-3J6NPY5E.js → chunk-NXTAXFQS.js} +8 -8
- package/dist/{chunk-QOKW2NVQ.js → chunk-NYCN3CCK.js} +1 -1
- package/dist/{chunk-XO62UOR7.js → chunk-OJRX6UVD.js} +7 -7
- package/dist/{chunk-QCTLGNMD.js → chunk-OPN6FWMG.js} +1 -1
- package/dist/{chunk-QRPW7KDH.js → chunk-QV5HMBT4.js} +12 -12
- package/dist/{chunk-5TQERWVE.js → chunk-R23ZNBJU.js} +6 -6
- package/dist/{chunk-FRT6CTUK.js → chunk-RN4Z5BQJ.js} +3 -3
- package/dist/{chunk-6XKJVF2A.js → chunk-RZRBXDGN.js} +6 -6
- package/dist/{chunk-SKUDNFAZ.js → chunk-SIZBYHXW.js} +4 -4
- package/dist/{chunk-UFTT6RO6.js → chunk-TBDSTEO3.js} +3 -3
- package/dist/{chunk-3HDZQKAK.js → chunk-TVXGBUOL.js} +1 -1
- package/dist/{chunk-5HSPZGN6.js → chunk-U6NNLBWJ.js} +5 -5
- package/dist/{chunk-GY3BDYVF.js → chunk-UM4RAZPH.js} +1 -1
- package/dist/{chunk-G3YVXFRI.js → chunk-VDNKX5OF.js} +5 -5
- package/dist/{chunk-KU55VZ2I.js → chunk-WIVLMIJ6.js} +4 -4
- package/dist/{chunk-RXEBODH6.js → chunk-WTUQEQ54.js} +27 -13
- package/dist/{chunk-3WW4TQT2.js → chunk-X4YQCI5T.js} +1 -1
- package/dist/{chunk-EXVUFDLL.js → chunk-X6YYQZW7.js} +1 -1
- package/dist/{chunk-YKR52UPQ.js → chunk-X7IIWYAG.js} +1 -1
- package/dist/{chunk-WHRLUSI3.js → chunk-XRAUQWLP.js} +5 -5
- package/dist/{chunk-XOTBVRIH.js → chunk-Y3QV3VYX.js} +1 -1
- package/dist/{chunk-3SGXZHV5.js → chunk-YENSTBQI.js} +1 -1
- package/dist/{chunk-LS6MIVVS.js → chunk-YLR6QHCH.js} +6 -6
- package/dist/{chunk-K2QDEWH3.js → chunk-YORHQJ5M.js} +4 -4
- package/dist/{chunk-QNHUMOCQ.js → chunk-YQ67XWMM.js} +4 -4
- package/dist/{chunk-IZFVQLKO.js → chunk-ZB5O3LKY.js} +1 -1
- package/dist/{chunk-AYQNGBZC.js → chunk-ZEPOIQ4H.js} +4 -0
- package/dist/{chunk-FXV6MD35.js → chunk-ZPFENH7C.js} +39 -9
- package/dist/{codex-app-cards-switch-TXT3ZJIA.js → codex-app-cards-switch-BOIE5IZL.js} +11 -11
- package/dist/{codex-card-routing-LHZ4GOC5.js → codex-card-routing-B2ZI4WRI.js} +2 -2
- package/dist/{codex-desktop-launch-7GSAOUBA.js → codex-desktop-launch-LBL2LPS7.js} +1 -1
- package/dist/{codex-session-launch-NPEFPDVM.js → codex-session-launch-7WVCWASC.js} +20 -20
- package/dist/{config-JEWWH3CO.js → config-S53I5YNR.js} +3 -3
- package/dist/{global-upgrade-SJVITKA6.js → global-upgrade-ND726NHJ.js} +9 -9
- package/dist/{identity-JX2NVJQ3.js → identity-3G66JTAR.js} +4 -4
- package/dist/{live-capabilities-YYINM2NK.js → live-capabilities-76C2DKTY.js} +4 -4
- package/dist/{paths-2QDA4DUP.js → paths-O3CZR2BV.js} +3 -3
- package/dist/{reapply-23723QEC.js → reapply-TEATBGFG.js} +31 -31
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-6AHHM2WU.js → upgrade-lock-PDCUHFRW.js} +6 -4
- package/dist/{usage-ESU3WTVK.js → usage-DFCL7TQU.js} +3 -3
- package/package.json +1 -1
|
@@ -4,37 +4,37 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L4HJSUP7.js";
|
|
8
8
|
import {
|
|
9
9
|
CommandReceipts,
|
|
10
10
|
controllerCommandSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7TQXWAOZ.js";
|
|
12
12
|
import {
|
|
13
13
|
SESSION_IDLE_TIMEOUT_MS,
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6QLOTNO2.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-Y6ILCLKE.js";
|
|
21
21
|
import {
|
|
22
22
|
repositoryScopeFor
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-C2PGBMTH.js";
|
|
24
24
|
import {
|
|
25
25
|
isAskUserResponse,
|
|
26
26
|
isDecisionStopped,
|
|
27
27
|
isWaitForAnswerResponse,
|
|
28
28
|
withdrawQuestion,
|
|
29
29
|
writeDegraded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RZRBXDGN.js";
|
|
31
31
|
import {
|
|
32
32
|
readCommandAck
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UM4RAZPH.js";
|
|
34
34
|
import {
|
|
35
35
|
callMcpTool,
|
|
36
36
|
isRetryable
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ILBNQX44.js";
|
|
38
38
|
import {
|
|
39
39
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
40
40
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseCodexQuestions,
|
|
56
56
|
planElicitationAsk,
|
|
57
57
|
readElicitationFields
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
59
59
|
|
|
60
60
|
// src/codex-question-owner.ts
|
|
61
61
|
import { createHash } from "crypto";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7JO3NNIQ.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2J3IIFS3.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7HXO72HS.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-635I27L4.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KYBVLSMT.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y3QV3VYX.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
toolResultErrorText,
|
|
28
28
|
transcriptTokensIn,
|
|
29
29
|
transcriptUsageRequest
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-X6YYQZW7.js";
|
|
31
31
|
import {
|
|
32
32
|
branchFor,
|
|
33
33
|
repoKeyFor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-C2PGBMTH.js";
|
|
35
35
|
import {
|
|
36
36
|
cancelQuestion,
|
|
37
37
|
clientErrorKindOf,
|
|
@@ -39,39 +39,39 @@ import {
|
|
|
39
39
|
reportClientError,
|
|
40
40
|
sendNotification,
|
|
41
41
|
waitForAnswer
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RZRBXDGN.js";
|
|
43
43
|
import {
|
|
44
44
|
RETRY_ACK,
|
|
45
45
|
readCommandAck,
|
|
46
46
|
refusedReceiptMessage
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UM4RAZPH.js";
|
|
48
48
|
import {
|
|
49
49
|
isRetryable,
|
|
50
50
|
withRetry
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ILBNQX44.js";
|
|
52
52
|
import {
|
|
53
53
|
fetchAsCredential
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-YENSTBQI.js";
|
|
55
55
|
import {
|
|
56
56
|
getMachineId
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-IGBKHRCZ.js";
|
|
58
58
|
import {
|
|
59
59
|
reportedInstallSource
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MTB52RSH.js";
|
|
61
61
|
import {
|
|
62
62
|
IDLE_PROMPT_NOTIFICATION,
|
|
63
63
|
NOTIFICATION_PUSH_TYPES,
|
|
64
64
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
65
65
|
claudeConfigDir
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-MN2FFBYE.js";
|
|
67
67
|
import {
|
|
68
68
|
compareVersion,
|
|
69
69
|
parseVersion
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-ZPFENH7C.js";
|
|
71
71
|
import {
|
|
72
72
|
getApiKey,
|
|
73
73
|
getBaseUrl
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-Y3QV3VYX.js";
|
|
75
75
|
import {
|
|
76
76
|
writeFileAtomic,
|
|
77
77
|
writeJsonAtomicDurable
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
resolveAutoResolveOrigin,
|
|
103
103
|
resolvePolicy,
|
|
104
104
|
unansweredRefusalReason
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
106
106
|
|
|
107
107
|
// src/pending.ts
|
|
108
108
|
import { join } from "path";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ITGM5QW4.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-7HXO72HS.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-635I27L4.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MTB52RSH.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BOJWXETW.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QV5HMBT4.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X6YYQZW7.js";
|
|
12
12
|
import {
|
|
13
13
|
machineDecisionFor,
|
|
14
14
|
wireVerdictFor
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
16
16
|
|
|
17
17
|
// src/machine-decision-audit.ts
|
|
18
18
|
import { basename } from "path";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ILBNQX44.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YENSTBQI.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NN2RZ2UB.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MN2FFBYE.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Y3QV3VYX.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
degradedLine,
|
|
33
33
|
isDecisionStoppedReply,
|
|
34
34
|
truncateLine
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
36
36
|
|
|
37
37
|
// src/api.ts
|
|
38
38
|
import { randomUUID } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XRAUQWLP.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3KD7K3N.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MN2FFBYE.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
540
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
539
|
+
var loadThePhone = () => import("./api-D4SZ2E5J.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-B2ZI4WRI.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
543
543
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1097
1097
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1098
1098
|
}
|
|
1099
1099
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1100
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1100
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-BOIE5IZL.js");
|
|
1101
1101
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-I4BIOADS.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-ANMVHKNK.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6OBGKICP.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Y3QV3VYX.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-ZEPOIQ4H.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6OBGKICP.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7PMCRTPW.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KYBVLSMT.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-MN2FFBYE.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZPFENH7C.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ITGM5QW4.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6OBGKICP.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2J3IIFS3.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND,
|
|
16
16
|
npmExecSetupCommandFor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BOJWXETW.js";
|
|
18
18
|
import {
|
|
19
19
|
LATEST_DIST_TAG
|
|
20
20
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ILGAR7DW.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BFMILGSX.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,26 +18,27 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2FLJZICI.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MN2FFBYE.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
30
30
|
npmErrorMessage,
|
|
31
|
+
npmExemptsFromReleaseAge,
|
|
31
32
|
previewGlobalInstall,
|
|
32
33
|
readGlobalCliInstallAt,
|
|
33
34
|
readGlobalPrefix
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZPFENH7C.js";
|
|
35
36
|
import {
|
|
36
37
|
EXIT
|
|
37
38
|
} from "./chunk-BG4HHB7E.js";
|
|
38
39
|
import {
|
|
39
40
|
NPX_LATEST_COMMAND
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BOJWXETW.js";
|
|
41
42
|
import {
|
|
42
43
|
LATEST_DIST_TAG,
|
|
43
44
|
commandsPackage,
|
|
@@ -187,16 +188,27 @@ var finishInstalledUpgrade = async (context, from, to, finishAttempts) => {
|
|
|
187
188
|
};
|
|
188
189
|
var settledFinishCheck = (state) => ({ result: "finish_blocked", from: state.from, to: state.to, detail: state.detail });
|
|
189
190
|
var isInstallableRelease = (latest, installed) => latest !== void 0 && isNewerVersion(latest, installed) && isSameMajorVersion(latest, installed);
|
|
191
|
+
var releaseNpmInstalls = (request, resolved, published, runNpm) => isNewerVersion(published, resolved) && npmExemptsFromReleaseAge(request, runNpm) ? published : resolved;
|
|
192
|
+
var chosenRelease = (version) => ({ kind: "chosen", version });
|
|
190
193
|
var releaseNpmAllows = (context, installed, published) => {
|
|
191
|
-
if (!isInstallableRelease(published, installed)) return published;
|
|
192
|
-
const
|
|
194
|
+
if (published === void 0 || !isInstallableRelease(published, installed)) return chosenRelease(published);
|
|
195
|
+
const request = {
|
|
193
196
|
packageName: context.location.packageName,
|
|
194
197
|
version: LATEST_DIST_TAG,
|
|
195
198
|
prefix: context.location.prefix,
|
|
196
199
|
timeoutMs: INSTALL_TIMEOUT_MS
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
};
|
|
201
|
+
const preview = previewGlobalInstall(request, context.runNpm);
|
|
202
|
+
switch (preview.kind) {
|
|
203
|
+
case "resolved":
|
|
204
|
+
return chosenRelease(releaseNpmInstalls(request, preview.version, published, context.runNpm));
|
|
205
|
+
case "refused_for_release_age":
|
|
206
|
+
return chosenRelease(installed);
|
|
207
|
+
case "failed":
|
|
208
|
+
return { kind: "npm_failed", failure: preview.failure };
|
|
209
|
+
case "unavailable":
|
|
210
|
+
return chosenRelease(published);
|
|
211
|
+
}
|
|
200
212
|
};
|
|
201
213
|
var npmPolicyHoldDetail = (published, allowed) => published !== void 0 && published !== allowed && isNewerVersion(published, allowed) ? `${published} is not yet allowed by this machine's npm settings, such as min-release-age` : void 0;
|
|
202
214
|
var checkAndInstall = async (context) => {
|
|
@@ -207,7 +219,9 @@ var checkAndInstall = async (context) => {
|
|
|
207
219
|
const previous = readAutoUpdateState(context.statePath);
|
|
208
220
|
const pendingFinish = hasRetryableUpgradeFinish(previous, installed);
|
|
209
221
|
const published = await fetchLatestPublishedVersion({ packageName: context.location.packageName, fetchImpl: context.fetchImpl });
|
|
210
|
-
const
|
|
222
|
+
const choice = releaseNpmAllows(context, installed, published);
|
|
223
|
+
if (choice.kind === "npm_failed") return { result: "failed", from: installed, to: published, detail: npmErrorMessage(choice.failure) };
|
|
224
|
+
const latest = choice.version;
|
|
211
225
|
if (pendingFinish && !isInstallableRelease(latest, installed)) return finishInstalledUpgrade(context, previous.from, installed, nextFinishAttempt(previous, installed));
|
|
212
226
|
if (hasSettledUpgradeFinish(previous, installed) && !isInstallableRelease(latest, installed)) return settledFinishCheck(previous);
|
|
213
227
|
if (latest === void 0) return { result: "failed", from: installed, detail: UNREACHABLE_REGISTRY };
|
|
@@ -246,7 +260,7 @@ var runAutoUpdate = async (run = {}) => {
|
|
|
246
260
|
const now = run.now ?? Date.now;
|
|
247
261
|
const lockPath = run.lockPath ?? autoUpdateLock();
|
|
248
262
|
const logPath = run.logPath ?? autoUpdateLog();
|
|
249
|
-
const claim = await claimUpgradeLock({ lockPath });
|
|
263
|
+
const claim = await claimUpgradeLock({ lockPath, now, isAlive: run.isAlive, platform: run.platform, readProcessTable: run.readProcessTable });
|
|
250
264
|
if (claim.kind === "unavailable") {
|
|
251
265
|
const at = new Date(now()).toISOString();
|
|
252
266
|
const state = recordAutoUpdateCheck(run.statePath ?? autoUpdateState(), { result: "failed", detail: claim.reason }, at);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D3KD7K3N.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QV5HMBT4.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X6YYQZW7.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MN2FFBYE.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-Y6ILCLKE.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IGBKHRCZ.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KYBVLSMT.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MN2FFBYE.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZPFENH7C.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Y3QV3VYX.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-UQTQ6HPO.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZEPOIQ4H.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-entry-guard.ts
|
|
38
38
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5I34FSSW.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KYBVLSMT.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MN2FFBYE.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-TODDEIYG.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZEPOIQ4H.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;
|