pushary 1.9.71 → 1.9.72
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-HEIRLMTZ.js → api-K4UGZNOE.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +202 -67
- package/dist/bin/pushary-clean.js +33 -33
- package/dist/bin/pushary-codex-bridge.js +23 -21
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +13 -13
- package/dist/bin/pushary-connect.js +26 -26
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +38 -38
- package/dist/bin/pushary-disconnect.js +25 -25
- package/dist/bin/pushary-doctor.js +41 -41
- package/dist/bin/pushary-elicitation-hook.js +25 -25
- package/dist/bin/pushary-gemini-bridge.js +45 -48
- package/dist/bin/pushary-gemini-hook.js +27 -27
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +24 -24
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +26 -26
- package/dist/bin/pushary-permission-denied-hook.js +29 -29
- package/dist/bin/pushary-permission-hook.js +29 -29
- package/dist/bin/pushary-post-hook.js +24 -24
- package/dist/bin/pushary-prompt-hook.js +24 -24
- package/dist/bin/pushary-session-end-hook.js +26 -26
- package/dist/bin/pushary-session-start-hook.js +34 -34
- package/dist/bin/pushary-setup.js +47 -46
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +31 -31
- package/dist/bin/pushary-stop-hook.js +24 -24
- package/dist/bin/pushary-stopfailure-hook.js +24 -24
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +20 -19
- package/dist/bin/pushary-upgrade.js +39 -39
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-B3KPRSCM.js → chunk-2BVLEMGX.js} +5 -5
- package/dist/{chunk-VSQDVH43.js → chunk-2KDTIUC7.js} +1 -1
- package/dist/{chunk-AN26S5DC.js → chunk-37OD7FUI.js} +6 -6
- package/dist/{chunk-NHC5YUH6.js → chunk-3S5X7VZJ.js} +5 -5
- package/dist/{chunk-ZZ7VB6QC.js → chunk-4TRA3GDE.js} +3 -3
- package/dist/{chunk-J7BLYQ7Z.js → chunk-4U7F7VMC.js} +4 -4
- package/dist/{chunk-AUOVB62W.js → chunk-4W7CKRWR.js} +3 -3
- package/dist/{chunk-3CN2EFKK.js → chunk-4Y7EI5W5.js} +1 -1
- package/dist/{chunk-2XD4TTUM.js → chunk-5KQN7AIL.js} +10 -10
- package/dist/{chunk-3FY5ZPIZ.js → chunk-5KS3E3T5.js} +1 -1
- package/dist/{chunk-JGEPODEP.js → chunk-5XKJH5GD.js} +36 -0
- package/dist/{chunk-LWAYXE7G.js → chunk-5XYYBB5Z.js} +2 -2
- package/dist/{chunk-EBOGB7JR.js → chunk-6HTAOF6H.js} +1 -1
- package/dist/{chunk-D536PHXF.js → chunk-6YZ72YP3.js} +4 -4
- package/dist/{chunk-AZ56FPRG.js → chunk-7KMLITXH.js} +1 -1
- package/dist/{chunk-X2KK42JA.js → chunk-BMVWGPYB.js} +1 -1
- package/dist/{chunk-LA3MMHLO.js → chunk-CAUNUTYE.js} +2 -2
- package/dist/{chunk-DOMDCMGC.js → chunk-CR3HOHJC.js} +5 -5
- package/dist/{chunk-EZHM6I2V.js → chunk-D6COE26P.js} +4 -4
- package/dist/{chunk-LKKIFFUC.js → chunk-DNCEZWRC.js} +1 -1
- package/dist/{chunk-YG3NFC5N.js → chunk-DU7L7R4A.js} +5 -5
- package/dist/{chunk-GIE7PLZD.js → chunk-E56VJY23.js} +4 -4
- package/dist/{chunk-5NQ3SMVP.js → chunk-EEFFP64A.js} +12 -11
- package/dist/{chunk-7OYWCOVC.js → chunk-EEQG7VF2.js} +4 -4
- package/dist/{chunk-HR6M44CX.js → chunk-EPARIXRC.js} +7 -7
- package/dist/{chunk-YX6VQGLG.js → chunk-EW7CZHYP.js} +2 -2
- package/dist/{chunk-25W6AD3W.js → chunk-GNDPZBG3.js} +6 -6
- package/dist/{chunk-T7FPZN5V.js → chunk-GUJBS6TK.js} +3 -3
- package/dist/{chunk-YMBJU4CT.js → chunk-HIHA3GOR.js} +2 -2
- package/dist/{chunk-XSUWXBHF.js → chunk-IBHZ3JFE.js} +3 -3
- package/dist/{chunk-NPO3ZTR4.js → chunk-ILWEGI4H.js} +1 -1
- package/dist/{chunk-LRS4TJU2.js → chunk-KFGRDWAW.js} +4 -4
- package/dist/{chunk-XJMUEOXT.js → chunk-KYEZFN6K.js} +1 -1
- package/dist/chunk-L2FQBHIR.js +74 -0
- package/dist/{chunk-C3YAMEO2.js → chunk-L3S2ZTQZ.js} +2 -2
- package/dist/{chunk-IPSO7DUB.js → chunk-L6F62LKX.js} +3 -3
- package/dist/{chunk-WOZLV3LN.js → chunk-LCBZLTHW.js} +4 -4
- package/dist/{chunk-BJRLJJS2.js → chunk-LFBQ55OO.js} +1 -1
- package/dist/{chunk-LMP2FAS6.js → chunk-LISVMDVS.js} +3 -3
- package/dist/{chunk-X6CSZSSQ.js → chunk-LKXOSW2L.js} +4 -4
- package/dist/{chunk-BZ7XGS5L.js → chunk-LT2DOCFI.js} +1 -1
- package/dist/{chunk-6W2ASRZO.js → chunk-MWR25RQZ.js} +3 -3
- package/dist/{chunk-SMIU5URV.js → chunk-N4NSX5MB.js} +2 -2
- package/dist/chunk-N5P2FLOJ.js +82 -0
- package/dist/{chunk-MGF7D2ZL.js → chunk-N7A44RIA.js} +36 -35
- package/dist/{chunk-YRWGCYHH.js → chunk-NVM4S37G.js} +1 -1
- package/dist/{chunk-4QPF4BGP.js → chunk-OFTTOPTD.js} +6 -6
- package/dist/{chunk-5WHSFMV2.js → chunk-OGGUOTIK.js} +1 -1
- package/dist/{chunk-FA6INGK7.js → chunk-PIO66HPG.js} +3 -3
- package/dist/{chunk-ONZ3UGNY.js → chunk-PWVQALO2.js} +2 -2
- package/dist/{chunk-KGZH5RTB.js → chunk-PZV27E4J.js} +6 -6
- package/dist/{chunk-G3J5JKEJ.js → chunk-QDISUNK3.js} +6 -6
- package/dist/{chunk-VMQEB56V.js → chunk-QFF3QVIV.js} +2 -2
- package/dist/{chunk-QSZQCKPB.js → chunk-QQ7VXRIN.js} +5 -5
- package/dist/{chunk-QWCOMSDH.js → chunk-R4B5AVFC.js} +3 -3
- package/dist/{chunk-IYMYGKFB.js → chunk-RO5G3OEN.js} +10 -11
- package/dist/{chunk-JMACQEPU.js → chunk-RRW2LVVR.js} +2 -2
- package/dist/{chunk-JEZGDP55.js → chunk-RXR44U2J.js} +5 -5
- package/dist/{chunk-LKAO35SY.js → chunk-S6BD346V.js} +3 -3
- package/dist/{chunk-FTOKESSK.js → chunk-SAXNYDPS.js} +1 -1
- package/dist/{chunk-EVJRITSI.js → chunk-SMVTNLXU.js} +1 -1
- package/dist/{chunk-MZ6GL46A.js → chunk-TM4JH7YR.js} +1 -1
- package/dist/{chunk-ZBPBX656.js → chunk-UTVNXB6U.js} +3 -3
- package/dist/{chunk-OJFOIKRM.js → chunk-VFF7TP5B.js} +3 -3
- package/dist/{chunk-TATE22GH.js → chunk-VZG76CWC.js} +1 -1
- package/dist/{chunk-XZTFYFC7.js → chunk-WHM3OVBA.js} +2 -2
- package/dist/{chunk-SWQTCKLM.js → chunk-XGGAZJWJ.js} +6 -6
- package/dist/{chunk-4XFFGFHN.js → chunk-XHVHGDMB.js} +13 -13
- package/dist/{chunk-KEPESIIR.js → chunk-XMSDA5WA.js} +1 -70
- package/dist/{chunk-ITKAMUHG.js → chunk-YDSOTAZ6.js} +3 -3
- package/dist/{chunk-AERRQEWZ.js → chunk-ZWCKS65X.js} +2 -2
- package/dist/{codex-app-cards-switch-A77HUVKT.js → codex-app-cards-switch-PWLWIWKG.js} +11 -11
- package/dist/{codex-desktop-launch-FSHKRCRL.js → codex-desktop-launch-S3PDGLAY.js} +1 -1
- package/dist/{codex-session-launch-VAXYRXK6.js → codex-session-launch-PY5IMFJU.js} +20 -18
- package/dist/{config-SMJ2QWQF.js → config-SWV4YOP3.js} +3 -3
- package/dist/{global-upgrade-63X4UFFP.js → global-upgrade-DI3LGOQP.js} +10 -10
- package/dist/{identity-3L2YHAZP.js → identity-AY35DGAO.js} +4 -4
- package/dist/{live-capabilities-QBQX7RFM.js → live-capabilities-IH3EGKL3.js} +5 -5
- package/dist/{paths-5VPGINSP.js → paths-I4Q77ULZ.js} +3 -3
- package/dist/{reapply-MSIZJULX.js → reapply-OAV4IAG3.js} +27 -27
- package/dist/src/index.js +28 -28
- package/dist/{upgrade-lock-KKW6XZ7B.js → upgrade-lock-7U5BOK6V.js} +4 -4
- package/dist/{usage-ICF3NG4F.js → usage-NTER4GHT.js} +3 -3
- package/package.json +2 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZWCKS65X.js";
|
|
4
4
|
import {
|
|
5
5
|
backupFile,
|
|
6
6
|
readJsonSafe,
|
|
7
7
|
writeFileAtomic,
|
|
8
8
|
writeJsonAtomic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GUJBS6TK.js";
|
|
10
10
|
import {
|
|
11
11
|
configFilePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BMVWGPYB.js";
|
|
13
13
|
import {
|
|
14
14
|
API_KEY_PREFIX_PATTERN,
|
|
15
15
|
isRecord
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5XKJH5GD.js";
|
|
17
17
|
|
|
18
18
|
// src/shell-alias.ts
|
|
19
19
|
import { homedir } from "os";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBaseUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BMVWGPYB.js";
|
|
4
4
|
import {
|
|
5
5
|
compressTranscriptRecord,
|
|
6
6
|
redactSecretsFromContent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5XKJH5GD.js";
|
|
8
8
|
|
|
9
9
|
// src/transcript-api.ts
|
|
10
10
|
var fetchTranscriptRecipients = async (apiKey, baseUrl = getBaseUrl()) => {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R4B5AVFC.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PWVQALO2.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6YZ72YP3.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-N4NSX5MB.js";
|
|
36
36
|
import {
|
|
37
37
|
readJsonSafe,
|
|
38
38
|
resolveGlobalBinary,
|
|
39
39
|
writeFileAtomic,
|
|
40
40
|
writeJsonAtomic
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GUJBS6TK.js";
|
|
42
42
|
|
|
43
43
|
// src/fx-config.ts
|
|
44
44
|
var FX_SERVER_NAME = "pushary";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XGGAZJWJ.js";
|
|
4
4
|
import {
|
|
5
5
|
canChangeApprovalSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QFF3QVIV.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R4B5AVFC.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-KZERVKTD.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7KMLITXH.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/closing.ts
|
|
19
19
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E56VJY23.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IBHZ3JFE.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N4NSX5MB.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BMVWGPYB.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-5XKJH5GD.js";
|
|
30
30
|
|
|
31
31
|
// src/api.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4TRA3GDE.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IBHZ3JFE.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BMVWGPYB.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord,
|
|
12
12
|
isToolErrorResult,
|
|
13
13
|
toolFailureCodeOfResult
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5XKJH5GD.js";
|
|
15
15
|
|
|
16
16
|
// src/retry.ts
|
|
17
17
|
var isRetryable = (err) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
repoKeyFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ILWEGI4H.js";
|
|
4
4
|
import {
|
|
5
5
|
cancelQuestion,
|
|
6
6
|
clientErrorKindOf,
|
|
@@ -8,29 +8,29 @@ import {
|
|
|
8
8
|
reportClientError,
|
|
9
9
|
sendNotification,
|
|
10
10
|
waitForAnswer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DU7L7R4A.js";
|
|
12
12
|
import {
|
|
13
13
|
withRetry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E56VJY23.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5XYYBB5Z.js";
|
|
18
18
|
import {
|
|
19
19
|
reportedInstallSource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZWCKS65X.js";
|
|
21
21
|
import {
|
|
22
22
|
IDLE_PROMPT_NOTIFICATION,
|
|
23
23
|
NOTIFICATION_PUSH_TYPES,
|
|
24
24
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
25
25
|
canonicalJson
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N4NSX5MB.js";
|
|
27
27
|
import {
|
|
28
28
|
writeFileAtomic
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GUJBS6TK.js";
|
|
30
30
|
import {
|
|
31
31
|
getApiKey,
|
|
32
32
|
getBaseUrl
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BMVWGPYB.js";
|
|
34
34
|
import {
|
|
35
35
|
ACTION_BODY_MAX,
|
|
36
36
|
AGENTS,
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
TASK_STOP_TOOL,
|
|
50
50
|
blockedActionIdentity,
|
|
51
51
|
canonicalToolName,
|
|
52
|
+
conversationText,
|
|
52
53
|
gateOutputFor,
|
|
53
54
|
hookCompatibleProfileBySource,
|
|
54
55
|
isAutoApprove,
|
|
@@ -65,7 +66,7 @@ import {
|
|
|
65
66
|
toToolLookup,
|
|
66
67
|
truncateLine,
|
|
67
68
|
unansweredRefusalReason
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-5XKJH5GD.js";
|
|
69
70
|
|
|
70
71
|
// ../hook-mapping/src/describe.ts
|
|
71
72
|
import { isAbsolute, relative, resolve } from "path";
|
|
@@ -590,7 +591,7 @@ var SESSION_END_ACTIONS = {
|
|
|
590
591
|
var countArray = (value) => Array.isArray(value) ? value.length : 0;
|
|
591
592
|
var summarizeFinalMessage = (message) => {
|
|
592
593
|
if (typeof message !== "string") return "Session ended";
|
|
593
|
-
const collapsed = message.replace(/\s+/g, " ").trim();
|
|
594
|
+
const collapsed = conversationText(message).replace(/\s+/g, " ").trim();
|
|
594
595
|
if (!collapsed) return "Session ended";
|
|
595
596
|
return collapsed.slice(0, STOP_SUMMARY_MAX_LENGTH);
|
|
596
597
|
};
|
|
@@ -621,7 +622,7 @@ var compactionAction = (hookEvent, trigger) => {
|
|
|
621
622
|
};
|
|
622
623
|
var sessionStartAction = (source) => source === "resume" ? "Session resumed" : "Session started";
|
|
623
624
|
var sessionEndAction = (reason) => typeof reason === "string" && SESSION_END_ACTIONS[reason] || "Session ended";
|
|
624
|
-
var taskTitleFrom = (prompt) => typeof prompt === "string" ? prompt.replace(/\s+/g, " ").trim().slice(0, TASK_TITLE_MAX_LENGTH) || void 0 : void 0;
|
|
625
|
+
var taskTitleFrom = (prompt) => typeof prompt === "string" ? conversationText(prompt).replace(/\s+/g, " ").trim().slice(0, TASK_TITLE_MAX_LENGTH) || void 0 : void 0;
|
|
625
626
|
var asString = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
626
627
|
var NOTIFICATION_ACTION_MAX_LENGTH = 200;
|
|
627
628
|
var STOP_FAILURE_REASON_MAX_LENGTH = 300;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S6BD346V.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LFBQ55OO.js";
|
|
7
7
|
import {
|
|
8
8
|
readGlobalPrefixAsync,
|
|
9
9
|
resolveGlobalBinary,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
resolvePackageVersionFromBinary,
|
|
14
14
|
resolvePathBinary,
|
|
15
15
|
resolvePathBinaryAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GUJBS6TK.js";
|
|
17
17
|
import {
|
|
18
18
|
MANAGED_PROVIDERS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5XKJH5GD.js";
|
|
20
20
|
|
|
21
21
|
// src/live-capabilities.ts
|
|
22
22
|
import { homedir } from "os";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranscript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RO5G3OEN.js";
|
|
4
4
|
import {
|
|
5
5
|
namedEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KFGRDWAW.js";
|
|
7
7
|
import {
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe,
|
|
10
10
|
pusharyHookExecutable,
|
|
11
11
|
resolveBridgeStub
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LCBZLTHW.js";
|
|
13
13
|
import {
|
|
14
14
|
writeDegraded
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DU7L7R4A.js";
|
|
16
16
|
import {
|
|
17
17
|
cursorUserHooks
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-N4NSX5MB.js";
|
|
19
19
|
import {
|
|
20
20
|
atLeast,
|
|
21
21
|
parseVersion
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GUJBS6TK.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-5XKJH5GD.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"];
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RRW2LVVR.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QFF3QVIV.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-FO3MDD26.js";
|
|
12
12
|
import {
|
|
13
13
|
readKeySource
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6YZ72YP3.js";
|
|
15
15
|
import {
|
|
16
16
|
absoluteUrl,
|
|
17
17
|
checkApiKey,
|
|
18
18
|
describeKeyCheck,
|
|
19
19
|
keyCheckFromResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4TRA3GDE.js";
|
|
21
21
|
import {
|
|
22
22
|
EXIT
|
|
23
23
|
} from "./chunk-KZERVKTD.js";
|
|
24
24
|
import {
|
|
25
25
|
getBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BMVWGPYB.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5XKJH5GD.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -443,9 +443,9 @@ var installGlobally = (options) => {
|
|
|
443
443
|
}
|
|
444
444
|
const started = (async () => {
|
|
445
445
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
446
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
447
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
448
|
-
const { autoUpdateLock } = await import("./paths-
|
|
446
|
+
const { withUpgradeLock } = await import("./global-upgrade-DI3LGOQP.js");
|
|
447
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-7U5BOK6V.js");
|
|
448
|
+
const { autoUpdateLock } = await import("./paths-I4Q77ULZ.js");
|
|
449
449
|
let result = "skipped";
|
|
450
450
|
const install = async () => {
|
|
451
451
|
const platform = process.platform;
|
|
@@ -294,7 +294,7 @@ var loadedOnce = (load) => {
|
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
// src/codex-desktop-proxy.ts
|
|
297
|
-
var loadThePhone = () => import("./api-
|
|
297
|
+
var loadThePhone = () => import("./api-K4UGZNOE.js");
|
|
298
298
|
var theFirstCardLoadsAgain = () => {
|
|
299
299
|
};
|
|
300
300
|
var APP_SERVER_COMMAND = "app-server";
|
|
@@ -827,7 +827,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
827
827
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
828
828
|
}
|
|
829
829
|
if (args[0] === APP_CARDS_FLAG) {
|
|
830
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
830
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-PWLWIWKG.js");
|
|
831
831
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
832
832
|
}
|
|
833
833
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5XYYBB5Z.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-PPY5N2E6.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BMVWGPYB.js";
|
|
10
10
|
import {
|
|
11
11
|
getPackageVersion
|
|
12
12
|
} from "./chunk-QTOLNRET.js";
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5XKJH5GD.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LCBZLTHW.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT,
|
|
7
7
|
compatibleToolLookup
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EEFFP64A.js";
|
|
9
9
|
import {
|
|
10
10
|
CLAUDE_HOOK_EVENTS,
|
|
11
11
|
PUSHARY_MCP_URL,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isPusharyHook,
|
|
18
18
|
registerHookEntry,
|
|
19
19
|
removeClaudeMcpServers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N4NSX5MB.js";
|
|
21
21
|
import {
|
|
22
22
|
HOOK_COMPATIBLE_PROFILES,
|
|
23
23
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
pusharyMissingReason,
|
|
29
29
|
refusalOutput,
|
|
30
30
|
withHookHoldBudget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5XKJH5GD.js";
|
|
32
32
|
|
|
33
33
|
// src/config-document.ts
|
|
34
34
|
import { parse, stringify } from "smol-toml";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
external_exports
|
|
3
|
+
} from "./chunk-XMSDA5WA.js";
|
|
4
|
+
|
|
5
|
+
// src/native-transcript-account.ts
|
|
6
|
+
import { createHash } from "crypto";
|
|
7
|
+
import { existsSync, lstatSync, readFileSync } from "fs";
|
|
8
|
+
import { homedir } from "os";
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
var MAXIMUM_OWNER_DOCUMENT_BYTES = 16384;
|
|
11
|
+
var MAXIMUM_READ_POSITIONS_BYTES = 4 * 1024 * 1024;
|
|
12
|
+
var OWNER_ONLY_FILE_MODE = 384;
|
|
13
|
+
var OWNER_ONLY_DIRECTORY_MODE = 448;
|
|
14
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
15
|
+
var credentialSchema = external_exports.object({
|
|
16
|
+
key: external_exports.string().min(1).max(1024),
|
|
17
|
+
siteID: external_exports.string().min(1),
|
|
18
|
+
machineID: external_exports.string().min(1),
|
|
19
|
+
baseURL: external_exports.string().url(),
|
|
20
|
+
keyScope: external_exports.literal("agent")
|
|
21
|
+
});
|
|
22
|
+
var consentSchema = credentialSchema.pick({ siteID: true, machineID: true, baseURL: true }).extend({ enabled: external_exports.literal(true), grantedAtMs: external_exports.number().int().positive() });
|
|
23
|
+
var readPositionSchema = external_exports.object({
|
|
24
|
+
identity: external_exports.string().nullable(),
|
|
25
|
+
offset: external_exports.number().int().nonnegative(),
|
|
26
|
+
startedBeforeEpoch: external_exports.boolean()
|
|
27
|
+
});
|
|
28
|
+
var readPositionsSchema = external_exports.object({
|
|
29
|
+
epochStartedAtMs: external_exports.number().int().positive(),
|
|
30
|
+
positions: external_exports.record(external_exports.string(), readPositionSchema)
|
|
31
|
+
});
|
|
32
|
+
var ownerDocument = (path, maximumBytes = MAXIMUM_OWNER_DOCUMENT_BYTES) => {
|
|
33
|
+
const info = lstatSync(path);
|
|
34
|
+
if (!info.isFile() || info.nlink !== 1 || info.uid !== process.getuid?.() || (info.mode & 511) !== OWNER_ONLY_FILE_MODE || info.size > maximumBytes) return null;
|
|
35
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
36
|
+
};
|
|
37
|
+
var acceptsServer = (baseURL) => {
|
|
38
|
+
const url = new URL(baseURL);
|
|
39
|
+
return url.protocol === "https:" || url.protocol === "http:" && LOOPBACK_HOSTS.has(url.hostname);
|
|
40
|
+
};
|
|
41
|
+
var nativeConsentFile = (home) => join(home, ".pushary", "native-transcript-consent.json");
|
|
42
|
+
var nativeBridgeAccount = (home = homedir()) => {
|
|
43
|
+
try {
|
|
44
|
+
const root = join(home, ".pushary");
|
|
45
|
+
const directory = lstatSync(join(root, "bridge-auth"));
|
|
46
|
+
if (!directory.isDirectory() || directory.uid !== process.getuid?.() || (directory.mode & 511) !== OWNER_ONLY_DIRECTORY_MODE) return null;
|
|
47
|
+
const account = credentialSchema.parse(ownerDocument(join(root, "bridge-auth", "agent-key.json")));
|
|
48
|
+
const machineId = readFileSync(join(root, "machine-id"), "utf8").trim();
|
|
49
|
+
if (machineId !== account.machineID || !acceptsServer(account.baseURL)) return null;
|
|
50
|
+
return account;
|
|
51
|
+
} catch {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var nativeTranscriptGrant = (home = homedir()) => {
|
|
56
|
+
try {
|
|
57
|
+
const account = nativeBridgeAccount(home);
|
|
58
|
+
if (!account) return null;
|
|
59
|
+
const consent = consentSchema.parse(ownerDocument(nativeConsentFile(home)));
|
|
60
|
+
if (account.siteID !== consent.siteID || account.machineID !== consent.machineID || account.baseURL !== consent.baseURL) return null;
|
|
61
|
+
return { account, grantedAtMs: consent.grantedAtMs };
|
|
62
|
+
} catch {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var macAppHistoryDecision = (home = homedir()) => {
|
|
67
|
+
if (nativeTranscriptGrant(home)) return "saves";
|
|
68
|
+
return existsSync(nativeConsentFile(home)) ? "does_not_save" : "none";
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
nativeBridgeAccount,
|
|
73
|
+
macAppHistoryDecision
|
|
74
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N4NSX5MB.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
writeJsonAtomic
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GUJBS6TK.js";
|
|
9
9
|
|
|
10
10
|
// src/upgrade-lock.ts
|
|
11
11
|
import { fork } from "child_process";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N4NSX5MB.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GUJBS6TK.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PACKAGE_NAMES,
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-QTOLNRET.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5XKJH5GD.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SMVTNLXU.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TM4JH7YR.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
holdBudgetOf,
|
|
13
13
|
isProtectedByScope,
|
|
14
14
|
registerHookEntry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N4NSX5MB.js";
|
|
16
16
|
import {
|
|
17
17
|
CURSOR_GATE_EVENTS,
|
|
18
18
|
HOOK_BUDGETS,
|
|
19
19
|
HOOK_LOCATOR_BINARY,
|
|
20
20
|
hookCommandHoldBudget
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5XKJH5GD.js";
|
|
22
22
|
|
|
23
23
|
// src/diagnostics/bridge.ts
|
|
24
24
|
import { execFileSync } from "child_process";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readJsonSafe,
|
|
3
3
|
writeJsonAtomic
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GUJBS6TK.js";
|
|
5
5
|
import {
|
|
6
6
|
configFilePath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BMVWGPYB.js";
|
|
8
8
|
import {
|
|
9
9
|
readSetupOutcomeProperties
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5XKJH5GD.js";
|
|
11
11
|
|
|
12
12
|
// src/diagnostics/service-runtime.ts
|
|
13
13
|
var unescapeXml = (value) => value.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|