pushary 1.9.89 → 1.9.91
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 +9 -0
- package/dist/{api-RMTM2T46.js → api-SXS2T6QU.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +26 -26
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +31 -31
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -27
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +39 -39
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +17 -17
- package/dist/bin/pushary-doctor.js +45 -48
- package/dist/bin/pushary-elicitation-hook.js +26 -26
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +28 -28
- package/dist/bin/pushary-hook.js +30 -30
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +25 -25
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +25 -25
- package/dist/bin/pushary-opencode-hook.js +27 -27
- package/dist/bin/pushary-permission-denied-hook.js +30 -30
- package/dist/bin/pushary-permission-hook.js +30 -30
- package/dist/bin/pushary-post-hook.js +25 -25
- package/dist/bin/pushary-prompt-hook.js +25 -25
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +35 -35
- package/dist/bin/pushary-setup.js +50 -49
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -32
- package/dist/bin/pushary-stop-hook.js +25 -25
- package/dist/bin/pushary-stopfailure-hook.js +25 -25
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +18 -18
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +40 -40
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-UYKOZLKX.js → chunk-24JXCTST.js} +5 -5
- package/dist/{chunk-VHO3HV7P.js → chunk-27232B7Y.js} +2 -2
- package/dist/{chunk-LC4OFGTU.js → chunk-2GSRRZ6B.js} +1 -1
- package/dist/{chunk-N574OILO.js → chunk-2GYHJE4R.js} +3 -3
- package/dist/{chunk-SOBEBLLW.js → chunk-2YFTIQM5.js} +5 -5
- package/dist/{chunk-TBKO5EOS.js → chunk-36LCF2YG.js} +4 -4
- package/dist/{chunk-IBYD6P5T.js → chunk-3R2FRFVO.js} +20 -13
- package/dist/{chunk-VHQCMNIO.js → chunk-46MZBPY3.js} +2 -2
- package/dist/{chunk-XGVKU7PM.js → chunk-4QQDACWU.js} +6 -6
- package/dist/{chunk-DBWFWMHB.js → chunk-5UTJHR7L.js} +6 -6
- package/dist/{chunk-R5F2A2IT.js → chunk-62KQLGEP.js} +1 -1
- package/dist/{chunk-RC65MCPA.js → chunk-7ECQUETY.js} +1 -1
- package/dist/{chunk-MV34QALO.js → chunk-7JF57OPF.js} +1 -1
- package/dist/{chunk-G3GSI7E6.js → chunk-7M2XBZ5B.js} +2 -2
- package/dist/{chunk-5TLDFPW6.js → chunk-ABAIOLV5.js} +18 -0
- package/dist/{chunk-YKA6HMYO.js → chunk-B3IAV5CZ.js} +2 -2
- package/dist/{chunk-53CFDLGE.js → chunk-B3K3752V.js} +3 -3
- package/dist/{chunk-3YN7TPIQ.js → chunk-BANK74ZZ.js} +7 -7
- package/dist/{chunk-F7FED2QT.js → chunk-BFXTO23L.js} +5 -5
- package/dist/{chunk-SXELNIYK.js → chunk-BGJ3SXTZ.js} +5 -5
- package/dist/{chunk-Y7FF5WKE.js → chunk-CEFWJUMO.js} +4 -4
- package/dist/{chunk-OUIUIJV4.js → chunk-CEUWBQF2.js} +1 -1
- package/dist/{chunk-4D6PR2MK.js → chunk-CIS6AR32.js} +5 -5
- package/dist/{chunk-D7ZJ3AUK.js → chunk-CPEITTYS.js} +1 -1
- package/dist/{chunk-UEWTZZY4.js → chunk-D4A277IY.js} +3 -3
- package/dist/{chunk-M7MVHBKI.js → chunk-DCILU6SS.js} +3 -3
- package/dist/{chunk-JVWD6UWG.js → chunk-EJEAHC7H.js} +1 -1
- package/dist/{chunk-FMOIAZXN.js → chunk-ESUZQNA4.js} +35 -12
- package/dist/{chunk-ZQMR6OMT.js → chunk-EX76IRRF.js} +4 -4
- package/dist/{chunk-2UQDRCEI.js → chunk-FVLMKRSH.js} +7 -7
- package/dist/{chunk-SDRHH6LW.js → chunk-GSV75E67.js} +2 -2
- package/dist/{chunk-55K5ST53.js → chunk-GVEIAGZ5.js} +3 -3
- package/dist/{chunk-SUEB56Y4.js → chunk-HEFRK3YI.js} +2 -2
- package/dist/{chunk-YFNUFWSK.js → chunk-HF5PQTRW.js} +1 -1
- package/dist/{chunk-ZUIAABLS.js → chunk-I5M2KWB3.js} +1 -1
- package/dist/{chunk-YQYCQ2KY.js → chunk-IAMH6L23.js} +14 -14
- package/dist/{chunk-R3LNXXPV.js → chunk-IL67TUP3.js} +2 -2
- package/dist/{chunk-U4DG4RC4.js → chunk-INHSF76N.js} +3 -3
- package/dist/{chunk-X5MW6LB5.js → chunk-JQ37ZJJQ.js} +6 -6
- package/dist/{chunk-TXJ65MIV.js → chunk-KDN7AMAQ.js} +1 -1
- package/dist/{chunk-ZOKA75MZ.js → chunk-KFJAVZQ4.js} +2 -2
- package/dist/{chunk-TXDXHR2G.js → chunk-KRNY5Z6I.js} +1 -1
- package/dist/{chunk-L4FQ3I7N.js → chunk-KU2FFKWS.js} +1 -1
- package/dist/{chunk-YH2ZWZSG.js → chunk-L2ZV2R56.js} +3 -3
- package/dist/{chunk-JBR2FQKG.js → chunk-LLVX57ZC.js} +2 -2
- package/dist/{chunk-RKX2ZOIG.js → chunk-NRK3RNWF.js} +1 -1
- package/dist/{chunk-PF2COPAW.js → chunk-OAWIPPYH.js} +3 -3
- package/dist/{chunk-XZYUFVUW.js → chunk-OBRDREJD.js} +6 -6
- package/dist/{chunk-ILBVL464.js → chunk-OGRGVEWA.js} +1 -1
- package/dist/{chunk-P6EUHG5X.js → chunk-PETLGHDR.js} +4 -4
- package/dist/{chunk-F6WJEBBK.js → chunk-PKM6S4XN.js} +5 -5
- package/dist/{chunk-UYVCRG3J.js → chunk-PRH7XNAT.js} +1 -1
- package/dist/{chunk-IJKSZTFR.js → chunk-PX56WF4C.js} +3 -3
- package/dist/{chunk-CV3ALIG7.js → chunk-Q2PKD73S.js} +10 -10
- package/dist/{chunk-RJXWGSXY.js → chunk-Q37ESQSL.js} +1 -1
- package/dist/{chunk-YCPUVARV.js → chunk-QAKTIVCT.js} +3 -3
- package/dist/{chunk-33RQ7I3K.js → chunk-QAXQ33SA.js} +1 -1
- package/dist/{chunk-TEFWZEL2.js → chunk-QFTLJDUE.js} +10 -10
- package/dist/{chunk-WNW2HFNT.js → chunk-R6XUBZXX.js} +4 -4
- package/dist/{chunk-2WRQQTOZ.js → chunk-RD2WTV72.js} +2 -2
- package/dist/{chunk-H4CKXYWR.js → chunk-RR2T2R2Z.js} +3 -3
- package/dist/{chunk-54RUDSDE.js → chunk-SF3FHCJJ.js} +4 -4
- package/dist/{chunk-XLR4QO4R.js → chunk-SVE32G6W.js} +4 -4
- package/dist/{chunk-OMS5V4ER.js → chunk-TJMSJDRS.js} +3 -3
- package/dist/{chunk-LVOBBWSN.js → chunk-UOBUESLS.js} +1 -1
- package/dist/{chunk-OCRNH4YT.js → chunk-XMKJ3UEC.js} +6 -6
- package/dist/{chunk-RQGGP52F.js → chunk-XNX6P2J5.js} +5 -5
- package/dist/{chunk-PPJSAS57.js → chunk-YHOMFTLQ.js} +2 -2
- package/dist/{chunk-KXGKUV2F.js → chunk-ZAXB2CFU.js} +1 -1
- package/dist/{chunk-662O4JBY.js → chunk-ZH7GIWNY.js} +3 -3
- package/dist/{codex-app-cards-switch-BSMP3FMX.js → codex-app-cards-switch-CCPJNIO3.js} +11 -11
- package/dist/{codex-desktop-launch-LZL2LBBZ.js → codex-desktop-launch-K435NZMM.js} +1 -1
- package/dist/{codex-session-launch-LDY5BQCQ.js → codex-session-launch-TFFGMVQQ.js} +18 -18
- package/dist/{config-RTZAI4JI.js → config-T354BRNE.js} +3 -3
- package/dist/{global-upgrade-Y6AEYIJ5.js → global-upgrade-PUHR6IUT.js} +10 -10
- package/dist/{identity-HKL7Z55E.js → identity-SKMA72SN.js} +4 -4
- package/dist/{live-capabilities-BUP4EEKC.js → live-capabilities-OBNZ57FR.js} +5 -5
- package/dist/{paths-P5K3AYLX.js → paths-HXV4TRDG.js} +3 -3
- package/dist/{reapply-DN4VZ54U.js → reapply-2HEDTSBK.js} +28 -28
- package/dist/src/index.js +29 -29
- package/dist/{upgrade-lock-FW74BNQL.js → upgrade-lock-DMC66XTA.js} +4 -4
- package/dist/{usage-J2D7WYM4.js → usage-MBT3U2VX.js} +3 -3
- package/package.json +2 -2
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
import {
|
|
3
3
|
waitResponse,
|
|
4
4
|
waitWindowResponse
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-I5M2KWB3.js";
|
|
6
6
|
import {
|
|
7
7
|
exitOnFailedSettingsRequest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JQ37ZJJQ.js";
|
|
9
9
|
import {
|
|
10
10
|
describeWaitLadder
|
|
11
11
|
} from "../chunk-CVWG2N3Y.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-46MZBPY3.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-GSV75E67.js";
|
|
18
18
|
import {
|
|
19
19
|
createIo
|
|
20
20
|
} from "../chunk-FO3MDD26.js";
|
|
21
21
|
import {
|
|
22
22
|
exitOnHelpFlag
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-62KQLGEP.js";
|
|
24
24
|
import {
|
|
25
25
|
parseFlags
|
|
26
26
|
} from "../chunk-NMUI3ZWG.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-PETLGHDR.js";
|
|
28
28
|
import {
|
|
29
29
|
absoluteUrl
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-GVEIAGZ5.js";
|
|
31
31
|
import {
|
|
32
32
|
pusharyFetch
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
33
|
+
} from "../chunk-OAWIPPYH.js";
|
|
34
|
+
import "../chunk-RD2WTV72.js";
|
|
35
|
+
import "../chunk-HEFRK3YI.js";
|
|
36
|
+
import "../chunk-LLVX57ZC.js";
|
|
37
|
+
import "../chunk-D4A277IY.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-KU2FFKWS.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
exitCodeFor
|
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
EXIT
|
|
48
48
|
} from "../chunk-KZERVKTD.js";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-7ECQUETY.js";
|
|
50
50
|
import "../chunk-ZVU6WMMU.js";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-ABAIOLV5.js";
|
|
52
52
|
import "../chunk-MLKGABMK.js";
|
|
53
53
|
|
|
54
54
|
// bin/pushary-wait.ts
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-OAWIPPYH.js";
|
|
5
|
+
import "../chunk-RD2WTV72.js";
|
|
6
|
+
import "../chunk-LLVX57ZC.js";
|
|
7
|
+
import "../chunk-D4A277IY.js";
|
|
8
|
+
import "../chunk-KU2FFKWS.js";
|
|
9
9
|
import "../chunk-PPY5N2E6.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
LISTED_COMMANDS,
|
|
15
15
|
renderHelp,
|
|
16
16
|
resolveCommandName
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-7ECQUETY.js";
|
|
18
18
|
import {
|
|
19
19
|
getPackageVersion
|
|
20
20
|
} from "../chunk-ZVU6WMMU.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-ABAIOLV5.js";
|
|
22
22
|
import "../chunk-MLKGABMK.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/runtime.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XMKJ3UEC.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PETLGHDR.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LLVX57ZC.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D4A277IY.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ABAIOLV5.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;
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-XMSDA5WA.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KU2FFKWS.js";
|
|
7
7
|
import {
|
|
8
8
|
compressTranscriptRecord,
|
|
9
9
|
redactSecretsFromContent,
|
|
10
10
|
transcriptRecordPlaintext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ABAIOLV5.js";
|
|
12
12
|
|
|
13
13
|
// src/transcript-api.ts
|
|
14
14
|
var providerRecipientSchema = external_exports.object({
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LLVX57ZC.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D4A277IY.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PACKAGE_NAMES,
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ZVU6WMMU.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ABAIOLV5.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EX76IRRF.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OAWIPPYH.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LLVX57ZC.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KU2FFKWS.js";
|
|
21
21
|
import {
|
|
22
22
|
ASK_AGENT_NAME_MAX,
|
|
23
23
|
CLIENT_REPORT_PATH,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TOOL_FAILURE_CODES,
|
|
27
27
|
degradedLine,
|
|
28
28
|
truncateLine
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ABAIOLV5.js";
|
|
30
30
|
|
|
31
31
|
// src/api.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BGJ3SXTZ.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SF3FHCJJ.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LLVX57ZC.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ABAIOLV5.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
SESSION_HISTORY_RETENTION_DAYS,
|
|
3
3
|
readOwnerOnlyJson,
|
|
4
4
|
savedTranscriptReadPositions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PRH7XNAT.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureDaemonRunning
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OBRDREJD.js";
|
|
9
9
|
import {
|
|
10
10
|
hookOwnerOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SF3FHCJJ.js";
|
|
12
12
|
import {
|
|
13
13
|
buildTranscriptRecords,
|
|
14
14
|
decodePublicKey,
|
|
@@ -19,33 +19,33 @@ import {
|
|
|
19
19
|
recordSealerFor,
|
|
20
20
|
uploadTranscriptRecords,
|
|
21
21
|
wrapSessionKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-27232B7Y.js";
|
|
23
23
|
import {
|
|
24
24
|
external_exports
|
|
25
25
|
} from "./chunk-XMSDA5WA.js";
|
|
26
26
|
import {
|
|
27
27
|
transcriptEnvironmentPreference,
|
|
28
28
|
transcriptsEnabled
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OGRGVEWA.js";
|
|
30
30
|
import {
|
|
31
31
|
readTranscriptPreference
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PETLGHDR.js";
|
|
33
33
|
import {
|
|
34
34
|
hookMeaning
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KDN7AMAQ.js";
|
|
36
36
|
import {
|
|
37
37
|
claudeConfigDir,
|
|
38
38
|
codexHome,
|
|
39
39
|
pusharyDir
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LLVX57ZC.js";
|
|
41
41
|
import {
|
|
42
42
|
writeJsonAtomic,
|
|
43
43
|
writeJsonAtomicDurable
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-D4A277IY.js";
|
|
45
45
|
import {
|
|
46
46
|
getApiKey,
|
|
47
47
|
getBaseUrl
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KU2FFKWS.js";
|
|
49
49
|
import {
|
|
50
50
|
PENDING_COMMAND_PREFIX,
|
|
51
51
|
SESSION_HISTORY_BACKFILL_LIMIT_BYTES,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
isHookSource,
|
|
54
54
|
isRecord,
|
|
55
55
|
redactSecretsFromContent
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ABAIOLV5.js";
|
|
57
57
|
|
|
58
58
|
// src/transcript-recipient-pin.ts
|
|
59
59
|
import { createHash } from "crypto";
|
|
@@ -142,6 +142,12 @@ var verifyTrustedRecipients = (offer, path = recipientPinFile()) => {
|
|
|
142
142
|
if (verdict.kind !== "changed" || !pin || !sameRecoveryRecipient(offer, pin)) return verdict;
|
|
143
143
|
return phoneWasApproved(offer, pin, path) ? { kind: "match" } : verdict;
|
|
144
144
|
};
|
|
145
|
+
var verifyAnchoredRecipients = (offer, path = recipientPinFile(), anchorPath) => {
|
|
146
|
+
const verdict = verifyTrustedRecipients(offer, path);
|
|
147
|
+
if (verdict.kind !== "first-use" || anchorPath === void 0 || loadPin(anchorPath) === null) return verdict;
|
|
148
|
+
const anchored = verifyTrustedRecipients(offer, anchorPath);
|
|
149
|
+
return anchored.kind === "match" ? verdict : anchored;
|
|
150
|
+
};
|
|
145
151
|
var assertVerifiedPhone = (offer, pin, expectedFingerprint) => {
|
|
146
152
|
if (!canonicalPublicKey(offer.phonePublicKey) || fingerprint(offer.phonePublicKey) !== expectedFingerprint.trim().toLowerCase()) {
|
|
147
153
|
throw new Error("The fingerprint does not match this phone. Nothing was changed.");
|
|
@@ -1147,7 +1153,7 @@ var startTranscriptSync = (opts) => {
|
|
|
1147
1153
|
recipientFailure = reason;
|
|
1148
1154
|
});
|
|
1149
1155
|
if (!offer) return null;
|
|
1150
|
-
const verdict =
|
|
1156
|
+
const verdict = verifyAnchoredRecipients(offer, opts.storage?.recipientPinFile, opts.storage?.firstUseAnchorPinFile);
|
|
1151
1157
|
if (verdict.kind === "first-use" && !savePin(verdict.pin, opts.storage?.recipientPinFile)) return null;
|
|
1152
1158
|
if (verdict.kind === "changed") {
|
|
1153
1159
|
recipientFailure = "phone_key_changed";
|
|
@@ -1516,7 +1522,8 @@ var startRegisteredTranscripts = (apiKey, machineId, options = {}) => {
|
|
|
1516
1522
|
const current = () => read(registration.registrationPath);
|
|
1517
1523
|
const keyStorage = storage ?? (registration.source === "claude" || registration.source === "codex" ? void 0 : {
|
|
1518
1524
|
sessionKeyDirectory: snapshotKeyDirectory(registry),
|
|
1519
|
-
recipientPinFile: snapshotRecipientPinFile(registry)
|
|
1525
|
+
recipientPinFile: snapshotRecipientPinFile(registry),
|
|
1526
|
+
firstUseAnchorPinFile: recipientPinFile()
|
|
1520
1527
|
});
|
|
1521
1528
|
active.set(id, { path: registration.path, stop: startTranscriptSync({
|
|
1522
1529
|
apiKey,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PETLGHDR.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7ECQUETY.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UOBUESLS.js";
|
|
8
8
|
import {
|
|
9
9
|
CommandReceipts,
|
|
10
10
|
controllerCommandSchema
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L2ZV2R56.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-XHKBHWLX.js";
|
|
21
21
|
import {
|
|
22
22
|
repoKeyFor
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CEUWBQF2.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-2YFTIQM5.js";
|
|
31
31
|
import {
|
|
32
32
|
callMcpTool,
|
|
33
33
|
isRetryable
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EX76IRRF.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
37
37
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
parseCodexQuestions,
|
|
53
53
|
planElicitationAsk,
|
|
54
54
|
readElicitationFields
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ABAIOLV5.js";
|
|
56
56
|
|
|
57
57
|
// src/codex-question-owner.ts
|
|
58
58
|
import { createHash } from "crypto";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IL67TUP3.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SVE32G6W.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,25 +18,25 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2GYHJE4R.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LLVX57ZC.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
30
30
|
npmErrorMessage,
|
|
31
31
|
readGlobalCliInstallAt,
|
|
32
32
|
readGlobalPrefix
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-D4A277IY.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-KZERVKTD.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7ECQUETY.js";
|
|
40
40
|
import {
|
|
41
41
|
commandsPackage,
|
|
42
42
|
globalUpgradeEntry,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LLVX57ZC.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D4A277IY.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-ZVU6WMMU.js";
|
|
@@ -3473,6 +3473,21 @@ var approvalModeWithoutLocalPrompt = (mode) => {
|
|
|
3473
3473
|
};
|
|
3474
3474
|
var TIMEOUT_ACTION_THAT_REFUSES = "deny";
|
|
3475
3475
|
var timeoutActionWithoutLocalPrompt = ({ mode, timeoutAction }) => mode !== "push_only" && timeoutAction === "approve" ? TIMEOUT_ACTION_THAT_REFUSES : timeoutAction;
|
|
3476
|
+
var SETUP_VERIFICATION_SENDER = {
|
|
3477
|
+
agentName: "Pushary setup",
|
|
3478
|
+
title: "Pushary is connected",
|
|
3479
|
+
body: "This setup notification reached you. Agent hooks still need a real-agent check."
|
|
3480
|
+
};
|
|
3481
|
+
var DOCTOR_VERIFICATION_SENDER = {
|
|
3482
|
+
agentName: "Pushary Doctor",
|
|
3483
|
+
title: "Pushary Doctor",
|
|
3484
|
+
body: "If you see this, push notifications are working."
|
|
3485
|
+
};
|
|
3486
|
+
var SETUP_VERIFICATION_SENDER_THROUGH_0_95_5 = {
|
|
3487
|
+
...SETUP_VERIFICATION_SENDER,
|
|
3488
|
+
body: "Your AI agent can now reach you right here."
|
|
3489
|
+
};
|
|
3490
|
+
var AGENT_STOP_DEFAULT_SECONDS = 3600;
|
|
3476
3491
|
var TIMEOUT_ACTIONS = ["approve", "deny", "escalate", "wait"];
|
|
3477
3492
|
var isTimeoutAction = (value) => typeof value === "string" && TIMEOUT_ACTIONS.includes(value);
|
|
3478
3493
|
var typedTextAsAnswers = (questions, text3) => {
|
|
@@ -7244,6 +7259,9 @@ export {
|
|
|
7244
7259
|
APPROVAL_MODE_META,
|
|
7245
7260
|
approvalModeWithoutLocalPrompt,
|
|
7246
7261
|
timeoutActionWithoutLocalPrompt,
|
|
7262
|
+
SETUP_VERIFICATION_SENDER,
|
|
7263
|
+
DOCTOR_VERIFICATION_SENDER,
|
|
7264
|
+
AGENT_STOP_DEFAULT_SECONDS,
|
|
7247
7265
|
isTimeoutAction,
|
|
7248
7266
|
plainAskOf,
|
|
7249
7267
|
questionsShownAsASet,
|
|
@@ -521,7 +521,7 @@ var loadedOnce = (load) => {
|
|
|
521
521
|
};
|
|
522
522
|
|
|
523
523
|
// src/codex-desktop-proxy.ts
|
|
524
|
-
var loadThePhone = () => import("./api-
|
|
524
|
+
var loadThePhone = () => import("./api-SXS2T6QU.js");
|
|
525
525
|
var theFirstCardLoadsAgain = () => {
|
|
526
526
|
};
|
|
527
527
|
var APP_SERVER_COMMAND = "app-server";
|
|
@@ -1062,7 +1062,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1062
1062
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1063
1063
|
}
|
|
1064
1064
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1065
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1065
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-CCPJNIO3.js");
|
|
1066
1066
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1067
1067
|
}
|
|
1068
1068
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findNativeClaudeInstall
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KRNY5Z6I.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D4A277IY.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ABAIOLV5.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranscript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3R2FRFVO.js";
|
|
4
4
|
import {
|
|
5
5
|
namedEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BGJ3SXTZ.js";
|
|
7
7
|
import {
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe,
|
|
10
10
|
pusharyHookExecutable,
|
|
11
11
|
resolveBridgeStub
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SF3FHCJJ.js";
|
|
13
13
|
import {
|
|
14
14
|
writeDegraded
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2YFTIQM5.js";
|
|
16
16
|
import {
|
|
17
17
|
cursorUserHooks
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LLVX57ZC.js";
|
|
19
19
|
import {
|
|
20
20
|
atLeast,
|
|
21
21
|
parseVersion
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-D4A277IY.js";
|
|
23
23
|
import {
|
|
24
24
|
CURSOR_GATE_COVERAGE,
|
|
25
25
|
CURSOR_GATE_SCRIPT,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isGrokSessionEndStop,
|
|
34
34
|
isRecord,
|
|
35
35
|
toolsCoveredByGateEntry
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ABAIOLV5.js";
|
|
37
37
|
|
|
38
38
|
// src/tool-hook-input.ts
|
|
39
39
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-INHSF76N.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YHOMFTLQ.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PETLGHDR.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LLVX57ZC.js";
|
|
36
36
|
import {
|
|
37
37
|
readJsonSafe,
|
|
38
38
|
resolveGlobalBinary,
|
|
39
39
|
writeFileAtomic,
|
|
40
40
|
writeJsonAtomic
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-D4A277IY.js";
|
|
42
42
|
|
|
43
43
|
// src/fx-config.ts
|
|
44
44
|
var FX_SERVER_NAME = "pushary";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SF3FHCJJ.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q2PKD73S.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KDN7AMAQ.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-LLVX57ZC.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-ABAIOLV5.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|