pushary 1.9.238 → 1.9.240
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 +13 -0
- package/dist/{api-6COZTYZM.js → api-S3HQL4CV.js} +15 -15
- 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 +30 -30
- package/dist/bin/pushary-clean.js +40 -40
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -35
- 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 +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +11 -0
- package/dist/bin/pushary-doctor.js +48 -48
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +31 -31
- 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 +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +140 -173
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +41 -37
- 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 +26 -26
- 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-NW62NODJ.js → chunk-2FKAQDIY.js} +2 -2
- package/dist/{chunk-5YBE5264.js → chunk-3KR7IXGP.js} +4 -4
- package/dist/{chunk-66EXK6N2.js → chunk-3RHUT4CT.js} +5 -5
- package/dist/{chunk-6NGQKZRR.js → chunk-3VGW6MMH.js} +4 -4
- package/dist/{chunk-RUNGEQEF.js → chunk-47PF7UUS.js} +3 -3
- package/dist/{chunk-WI6LLJX6.js → chunk-4ALCCCOW.js} +34 -16
- package/dist/{chunk-BG2KNRIP.js → chunk-4KA5FPCU.js} +2 -2
- package/dist/{chunk-IWZL36GG.js → chunk-4SERWSEJ.js} +8 -8
- package/dist/{chunk-KMYEVS64.js → chunk-54FAMVFU.js} +1 -1
- package/dist/{chunk-QMMZ3MAM.js → chunk-5JEWS5WP.js} +1 -1
- package/dist/{chunk-LHEPU5IM.js → chunk-5MTDC25A.js} +6 -6
- package/dist/{chunk-WX3Q3PGJ.js → chunk-5ONH6JSZ.js} +1 -1
- package/dist/{chunk-NB4LZJQA.js → chunk-6HCARNSZ.js} +23 -3
- package/dist/{chunk-QKHQ5LXZ.js → chunk-6MK3OFFQ.js} +12 -12
- package/dist/{chunk-QM73W2QU.js → chunk-6O4LOD7E.js} +1 -1
- package/dist/{chunk-5TYCY5OA.js → chunk-6T3JNLXH.js} +1 -1
- package/dist/{chunk-BSHMTL23.js → chunk-7HX3GQ3J.js} +1 -1
- package/dist/{chunk-FNKI57UP.js → chunk-AZ7I6F6U.js} +2 -2
- package/dist/{chunk-B7GWLPB4.js → chunk-B4U25UYA.js} +3 -3
- package/dist/{chunk-HKJR64XL.js → chunk-B7LTTHPP.js} +2 -2
- package/dist/{chunk-V5RKFW5U.js → chunk-B7TUAYY4.js} +7 -7
- package/dist/{chunk-MEKVWNU5.js → chunk-BFFE3XUB.js} +11 -5
- package/dist/{chunk-CPO4FB4I.js → chunk-BWJ5XWOY.js} +1 -1
- package/dist/{chunk-RKRF6LAH.js → chunk-BXIW4PYY.js} +1 -1
- package/dist/{chunk-5EKG2O3X.js → chunk-C2G6EI42.js} +5 -5
- package/dist/{chunk-AH6WIF2B.js → chunk-CBNSLSTN.js} +20 -20
- package/dist/{chunk-EWR5FW3E.js → chunk-CDP47IC4.js} +1 -1
- package/dist/{chunk-DICSJJEX.js → chunk-CGNHFWTM.js} +24 -3
- package/dist/{chunk-EPREWBWT.js → chunk-CP7FDXDR.js} +4 -4
- package/dist/{chunk-X3G23U6W.js → chunk-DGF63IWR.js} +1 -1
- package/dist/{chunk-JH5YPNWT.js → chunk-EJIVYRYV.js} +8 -12
- package/dist/{chunk-C2OEIBC5.js → chunk-EOIWK4T3.js} +2 -2
- package/dist/{chunk-6BDJHPF4.js → chunk-FIW3N3OO.js} +2 -2
- package/dist/{chunk-N6HSV5WS.js → chunk-FN6K5DJE.js} +1 -1
- package/dist/{chunk-3PGYWPK3.js → chunk-G7N3AMF2.js} +4 -4
- package/dist/{chunk-6PATJ424.js → chunk-GRDGIN5F.js} +1 -1
- package/dist/{chunk-BBCNN2AH.js → chunk-GUZHMUPZ.js} +2 -9
- package/dist/{chunk-XCRSQHF6.js → chunk-HYCSVBZU.js} +6 -6
- package/dist/{chunk-MR3FB53W.js → chunk-I2PDVTLE.js} +14 -7
- package/dist/{chunk-OUW4OC62.js → chunk-IIHJRQUH.js} +4 -4
- package/dist/{chunk-RTH2HEDI.js → chunk-IUGLAPOI.js} +7 -3
- package/dist/{chunk-JPAS42V6.js → chunk-IVVAUS4X.js} +4 -4
- package/dist/{chunk-LSOUQM34.js → chunk-JNGQTIM4.js} +2 -2
- package/dist/{chunk-PN5DELQ2.js → chunk-JVVVKMHW.js} +1 -1
- package/dist/{chunk-4X7ABZ7Y.js → chunk-KIY2LDOS.js} +1 -1
- package/dist/{chunk-OVBOPN5A.js → chunk-KNR4GPWC.js} +1 -1
- package/dist/{chunk-C7KDVFUC.js → chunk-MGGUU2HK.js} +5 -5
- package/dist/{chunk-2J72WZUR.js → chunk-MN52HESI.js} +2 -2
- package/dist/{chunk-2CTSBFHV.js → chunk-MRRFHM5W.js} +3 -3
- package/dist/{chunk-27CJNWPD.js → chunk-MUJQEBEI.js} +3 -3
- package/dist/{chunk-W3R6V5QK.js → chunk-N27CCH7E.js} +3 -24
- package/dist/{chunk-K4XKLJ5T.js → chunk-NSTSKANY.js} +1 -1
- package/dist/{chunk-QKTNDYQB.js → chunk-OCX3VPL7.js} +14 -12
- package/dist/{chunk-4QAP6GHR.js → chunk-OKAFHEJQ.js} +3 -3
- package/dist/{chunk-P7JSTMBS.js → chunk-ON7GUC77.js} +84 -36
- package/dist/{chunk-VBLHVZFM.js → chunk-OQMYK75R.js} +1 -1
- package/dist/{chunk-MTH4ZICV.js → chunk-OSQPNWK2.js} +3 -3
- package/dist/{chunk-JBG4QVAU.js → chunk-PBAX5ZTC.js} +3 -3
- package/dist/{chunk-HWTQWEWD.js → chunk-PIF4FJBM.js} +4 -4
- package/dist/{chunk-45ZHB7MW.js → chunk-QHZUGUXM.js} +4 -4
- package/dist/{chunk-52IFCHA7.js → chunk-R3KWJHV5.js} +5 -5
- package/dist/{chunk-T6QHUFXH.js → chunk-RRDNCZ5B.js} +1 -1
- package/dist/{chunk-AIQFWVE2.js → chunk-S5NZYFIW.js} +5 -5
- package/dist/{chunk-TBR5X5OH.js → chunk-SFE3KYTV.js} +1 -1
- package/dist/{chunk-CL6MOOT5.js → chunk-SHJTV4M2.js} +7 -7
- package/dist/{chunk-ZFBLE2TM.js → chunk-SR3IJPFT.js} +5 -5
- package/dist/{chunk-6II2RZ2P.js → chunk-T7BENAXJ.js} +2 -2
- package/dist/{chunk-HQ6U3IHW.js → chunk-UPLB3UAG.js} +5 -5
- package/dist/{chunk-O5X3Y2PU.js → chunk-UZDOP52C.js} +3 -3
- package/dist/{chunk-H6KDC2P5.js → chunk-VBXEKGOD.js} +1 -1
- package/dist/{chunk-2G62SVZ3.js → chunk-VGPLLTWD.js} +1 -1
- package/dist/{chunk-GQDPJZYM.js → chunk-VWYNFCZZ.js} +9 -9
- package/dist/{chunk-B7SBG62C.js → chunk-W5RHKVDB.js} +10 -10
- package/dist/{chunk-P6ZDJNZ6.js → chunk-WSVJH327.js} +2 -2
- package/dist/{chunk-LHGVDWHK.js → chunk-WVKLSWNF.js} +1 -1
- package/dist/{chunk-UOPOVQ2P.js → chunk-XNF5DVAF.js} +1 -3
- package/dist/{chunk-CGIJEEBF.js → chunk-YBEZ373R.js} +5 -5
- package/dist/{chunk-X3SZK7H3.js → chunk-YMNUS2OX.js} +2 -2
- package/dist/{chunk-S3GVSOSL.js → chunk-Z3GHXUCO.js} +7 -5
- package/dist/{chunk-4BH6DSMA.js → chunk-Z443YMGX.js} +5 -5
- package/dist/{chunk-N5NRJWDX.js → chunk-ZOCOTPP5.js} +2 -2
- package/dist/{chunk-YFSXI43Z.js → chunk-ZVMQ5WJM.js} +1 -1
- package/dist/{codex-app-cards-switch-REJOYOIR.js → codex-app-cards-switch-JY256N6Q.js} +11 -11
- package/dist/{codex-card-routing-H5DR6WTQ.js → codex-card-routing-GJFKRHFN.js} +2 -2
- package/dist/{codex-desktop-launch-WSSRYBTK.js → codex-desktop-launch-KADUT764.js} +3 -3
- package/dist/{codex-session-launch-TSXHQDHH.js → codex-session-launch-5UQLTCD6.js} +20 -20
- package/dist/{config-WVVYAJNO.js → config-BCLQDBDL.js} +3 -3
- package/dist/{global-upgrade-QDGZOY54.js → global-upgrade-GF52LKRB.js} +9 -9
- package/dist/{identity-GE54TGUB.js → identity-KJUPRF7O.js} +4 -4
- package/dist/{live-capabilities-VXTEH2AJ.js → live-capabilities-3WYHLMMU.js} +4 -4
- package/dist/{paths-LGMQB66Z.js → paths-M2JGTCLR.js} +3 -3
- package/dist/{reapply-54P5YVT7.js → reapply-UEQZ26JC.js} +34 -34
- package/dist/src/index.d.ts +8 -3
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-BGNM2EIC.js → upgrade-lock-EGMKQLIM.js} +4 -4
- package/dist/{usage-KORQN3ZK.js → usage-DN7WLHLX.js} +3 -3
- package/package.json +1 -1
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z443YMGX.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KNR4GPWC.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UZDOP52C.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GUZHMUPZ.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2FKAQDIY.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -34,11 +34,13 @@ import {
|
|
|
34
34
|
WAIT_END_PATH,
|
|
35
35
|
degradedLine,
|
|
36
36
|
isAskUserReply,
|
|
37
|
+
isAwayPaused,
|
|
37
38
|
isDecisionStoppedReply,
|
|
39
|
+
isLocalQuestionHandoff,
|
|
38
40
|
isRecord,
|
|
39
41
|
truncateLine,
|
|
40
42
|
waitEndAnswered
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-CGNHFWTM.js";
|
|
42
44
|
|
|
43
45
|
// src/api.ts
|
|
44
46
|
import { randomUUID } from "crypto";
|
|
@@ -242,10 +244,7 @@ var writeDegraded = (subsystem, report, message) => {
|
|
|
242
244
|
// src/api.ts
|
|
243
245
|
installNetworkDefaults();
|
|
244
246
|
var isDecisionStopped = (result) => isDecisionStoppedReply(result);
|
|
245
|
-
var isAwayPaused = (result) => result.paused === true;
|
|
246
247
|
var isStoredPastThePushCap = (result) => result.overflow === true;
|
|
247
|
-
var isLocalQuestionHandoff = (result) => !isAwayPaused(result) && (result.suppressed === true || result.noDevices === true || result.status === "terminal" || result.status === "notified");
|
|
248
|
-
var waitsForThePhone = (result) => result.answered !== true && !isAwayPaused(result) && !isLocalQuestionHandoff(result);
|
|
249
248
|
var STOPPED = { answered: false, handoffAction: "stop" };
|
|
250
249
|
var isQuestionLimitRefusal = (error) => error instanceof McpToolError && error.failure === TOOL_FAILURE_CODES.questionLimit;
|
|
251
250
|
var isRefusedAsk = (error) => error instanceof SubscriptionRequiredError || isQuestionLimitRefusal(error);
|
|
@@ -508,10 +507,7 @@ export {
|
|
|
508
507
|
isThePersonsStop,
|
|
509
508
|
askingProcessWaits,
|
|
510
509
|
isDecisionStopped,
|
|
511
|
-
isAwayPaused,
|
|
512
510
|
isStoredPastThePushCap,
|
|
513
|
-
isLocalQuestionHandoff,
|
|
514
|
-
waitsForThePhone,
|
|
515
511
|
isQuestionLimitRefusal,
|
|
516
512
|
unavailableQuestionUnlessRefused,
|
|
517
513
|
ASK_USER_TIMEOUT_MS,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GUZHMUPZ.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CGNHFWTM.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-FN6K5DJE.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NSTSKANY.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-GUZHMUPZ.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-CGNHFWTM.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IIHJRQUH.js";
|
|
9
9
|
import {
|
|
10
10
|
writeFileAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PUSHARY_HOSTS,
|
|
25
25
|
PUSHARY_TOOL_PREFIX,
|
|
26
26
|
withHookHoldBudget
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CGNHFWTM.js";
|
|
28
28
|
|
|
29
29
|
// src/setup/paths.ts
|
|
30
30
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -970,15 +970,10 @@ You have Pushary MCP tools that reach the user on their phone. Use them proactiv
|
|
|
970
970
|
- Respect the user's Pushary delivery mode: it decides where an approval is surfaced (phone, terminal, or awareness only), not whether it is required. In Terminal mode do not expect a phone answer; the approval waits in the terminal. If the Pushary hook already gated an action, a single approval is enough, do not ask again.
|
|
971
971
|
|
|
972
972
|
Pass \`agentName\` as "${label} - <project folder name>" so the user knows which session is asking. If a question times out, follow \`handoffAction\` when present, otherwise \`nextAction\`: keep waiting with the same correlationId while pending. A poll ending is not question expiry. Cancel only for an explicit handoff or when the answer is no longer needed. If cancellation returns \`handoffAction: "stop"\`, stop. Otherwise, if cancellation returns false, poll once for 1 second and honor the answer that won the race.`;
|
|
973
|
-
var SHARED_AGENTS_MD_LABEL = "<your agent's name, such as Codex or Hermes>";
|
|
974
973
|
var CODEX_INSTRUCTIONS_LABEL = "Codex";
|
|
975
974
|
var GEMINI_INSTRUCTIONS_LABEL = "Gemini";
|
|
976
975
|
var OPENCODE_INSTRUCTIONS_LABEL = "OpenCode";
|
|
977
976
|
var renderAgentInstructions = (label) => instructionBody(label);
|
|
978
|
-
var KEYLESS_FALLBACK_LINE = "This repo uses Pushary phone approvals. Your teammates get agent questions on their lock screens; you do not have a key yet, so questions will fall back to the terminal. Get your own key (3-day trial): https://pushary.com/sign-up?utm_source=agents-md&utm_medium=teammate";
|
|
979
|
-
var renderProjectAgentInstructions = (label) => `${instructionBody(label)}
|
|
980
|
-
|
|
981
|
-
If this environment has no Pushary API key (no PUSHARY_API_KEY and no key in ~/.pushary/config.json), the tools above are unavailable in this session. In that case, treat the following as a statement of fact about this session and continue in the terminal: ${KEYLESS_FALLBACK_LINE}`;
|
|
982
977
|
var wrap = (body) => `${PUSHARY_BEGIN}
|
|
983
978
|
${body}
|
|
984
979
|
${PUSHARY_END}`;
|
|
@@ -1412,12 +1407,10 @@ export {
|
|
|
1412
1407
|
addPusharyToolPermissions,
|
|
1413
1408
|
addPusharyHooks,
|
|
1414
1409
|
removePusharySettings,
|
|
1415
|
-
SHARED_AGENTS_MD_LABEL,
|
|
1416
1410
|
CODEX_INSTRUCTIONS_LABEL,
|
|
1417
1411
|
GEMINI_INSTRUCTIONS_LABEL,
|
|
1418
1412
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
1419
1413
|
renderAgentInstructions,
|
|
1420
|
-
renderProjectAgentInstructions,
|
|
1421
1414
|
writeInstructionBlock,
|
|
1422
1415
|
refreshInstructionBlock,
|
|
1423
1416
|
removeInstructionBlock,
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ON7GUC77.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7HX3GQ3J.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
10
10
|
WITHDRAW_AT_THE_DEADLINE,
|
|
11
11
|
askUser,
|
|
12
|
-
isLocalQuestionHandoff,
|
|
13
12
|
unavailableQuestionUnlessRefused,
|
|
14
13
|
waitForQuestion
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EJIVYRYV.js";
|
|
16
15
|
import {
|
|
17
16
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZVMQ5WJM.js";
|
|
19
18
|
import {
|
|
20
19
|
hookMaxWaitSeconds,
|
|
21
20
|
hookWaitClamped,
|
|
22
21
|
hookWaitDeadline,
|
|
22
|
+
isLocalQuestionHandoff,
|
|
23
23
|
questionServedItsWholeWindow,
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CGNHFWTM.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZVMQ5WJM.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N27CCH7E.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GUZHMUPZ.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary,
|
|
16
16
|
withoutNpmInstallConsent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IIHJRQUH.js";
|
|
18
18
|
import {
|
|
19
19
|
getApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2FKAQDIY.js";
|
|
21
21
|
import {
|
|
22
22
|
readJsonSafe,
|
|
23
23
|
writeFileAtomic,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-CXQWDQCJ.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CGNHFWTM.js";
|
|
37
37
|
|
|
38
38
|
// src/daemon-entry-guard.ts
|
|
39
39
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -181,7 +181,14 @@ var versionManagerOf = (execPath) => {
|
|
|
181
181
|
}
|
|
182
182
|
return null;
|
|
183
183
|
};
|
|
184
|
-
var
|
|
184
|
+
var VERSION_MANAGER_NAMES = {
|
|
185
|
+
nvm: "nvm",
|
|
186
|
+
fnm: "fnm",
|
|
187
|
+
volta: "Volta",
|
|
188
|
+
asdf: "asdf",
|
|
189
|
+
homebrew: "Homebrew"
|
|
190
|
+
};
|
|
191
|
+
var describeVersionManagerPin = (manager) => `If you change Node versions with ${VERSION_MANAGER_NAMES[manager]}, run pushary daemon install, so your phone can still start agents.`;
|
|
185
192
|
var describeServiceNodeRisk = (manager) => manager === "homebrew" ? "a Homebrew version folder; brew upgrade strands the service, and `pushary daemon install` repins it to the stable link" : `managed by ${manager}; a version switch strands the service`;
|
|
186
193
|
|
|
187
194
|
// src/daemon-lifecycle.ts
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CGNHFWTM.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -599,9 +599,9 @@ var installGlobally = (options) => {
|
|
|
599
599
|
}
|
|
600
600
|
const started = (async () => {
|
|
601
601
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
602
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
603
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
604
|
-
const { autoUpdateLock } = await import("./paths-
|
|
602
|
+
const { withUpgradeLock } = await import("./global-upgrade-GF52LKRB.js");
|
|
603
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-EGMKQLIM.js");
|
|
604
|
+
const { autoUpdateLock } = await import("./paths-M2JGTCLR.js");
|
|
605
605
|
let result = "skipped";
|
|
606
606
|
const install = async () => {
|
|
607
607
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UZDOP52C.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2FKAQDIY.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-CGNHFWTM.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;
|
|
@@ -37,6 +37,9 @@ var absoluteUrl = (baseUrl, pathOrUrl) => {
|
|
|
37
37
|
if (/^https?:\/\//i.test(pathOrUrl)) return pathOrUrl;
|
|
38
38
|
return `${baseUrl.replace(/\/+$/, "")}${pathOrUrl.startsWith("/") ? "" : "/"}${pathOrUrl}`;
|
|
39
39
|
};
|
|
40
|
+
var ACCOUNT_EMAIL_MAX_LENGTH = 254;
|
|
41
|
+
var PRINTABLE_EMAIL = /^[^\s@\p{Cc}\p{Cf}]+@[^\s@\p{Cc}\p{Cf}]+$/u;
|
|
42
|
+
var accountEmailOf = (value) => typeof value === "string" && value.length <= ACCOUNT_EMAIL_MAX_LENGTH && PRINTABLE_EMAIL.test(value) ? value : null;
|
|
40
43
|
var toIdentity = (body) => {
|
|
41
44
|
if (typeof body !== "object" || body === null) return null;
|
|
42
45
|
const raw = body;
|
|
@@ -59,6 +62,7 @@ var toIdentity = (body) => {
|
|
|
59
62
|
locked: raw.locked === true,
|
|
60
63
|
machineId: asString(raw.machineId),
|
|
61
64
|
authorizedUserId: asString(raw.authorizedUserId),
|
|
65
|
+
accountEmail: accountEmailOf(raw.accountEmail),
|
|
62
66
|
workspaceMembers: asCount(raw.workspaceMembers),
|
|
63
67
|
createdAt: asString(raw.createdAt),
|
|
64
68
|
lastUsedAt: asString(raw.lastUsedAt)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SHJTV4M2.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N27CCH7E.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GUZHMUPZ.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-CGNHFWTM.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GUZHMUPZ.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CGNHFWTM.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -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-JVVVKMHW.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6HCARNSZ.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SHJTV4M2.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-TCE3J44Z.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3RHUT4CT.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GUZHMUPZ.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CGNHFWTM.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PIF4FJBM.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-QCGNGEGE.js";
|
|
20
20
|
import {
|
|
21
21
|
xml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I2PDVTLE.js";
|
|
23
23
|
import {
|
|
24
24
|
writeFileAtomic
|
|
25
25
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G7N3AMF2.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GUZHMUPZ.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CGNHFWTM.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FN6K5DJE.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DGF63IWR.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CGNHFWTM.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EOIWK4T3.js";
|
|
4
4
|
import {
|
|
5
5
|
apiKeyInForce,
|
|
6
6
|
configFilePath,
|
|
7
7
|
keyPrefixToShow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2FKAQDIY.js";
|
|
9
9
|
import {
|
|
10
10
|
backupFile,
|
|
11
11
|
backupFileInto,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
API_KEY_PREFIX_PATTERN,
|
|
18
18
|
isRecord,
|
|
19
19
|
isValidApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CGNHFWTM.js";
|
|
21
21
|
|
|
22
22
|
// src/shell-alias.ts
|
|
23
23
|
import { homedir } from "os";
|
|
@@ -26,13 +26,6 @@ import { join } from "path";
|
|
|
26
26
|
var MARKER_START = "# >>> pushary >>>";
|
|
27
27
|
var MARKER_END = "# <<< pushary <<<";
|
|
28
28
|
var CANDIDATE_RCS = [".zshrc", ".zprofile", ".bashrc", ".bash_profile"];
|
|
29
|
-
var aliasBlock = () => `${MARKER_START}
|
|
30
|
-
# Make \`claude\` reachable from your phone when idle (runs it through Pushary).
|
|
31
|
-
# Remove this block, or run \`pushary clean\`, to undo.
|
|
32
|
-
alias claude='pushary claude'
|
|
33
|
-
${MARKER_END}
|
|
34
|
-
`;
|
|
35
|
-
var hasClaudeAlias = (content) => content.includes(MARKER_START) || /alias\s+claude=['"]?pushary claude/.test(content);
|
|
36
29
|
var stripPusharyBlock = (content) => {
|
|
37
30
|
const lines = content.split("\n");
|
|
38
31
|
const out = [];
|
|
@@ -64,19 +57,6 @@ var resolveShellRc = () => {
|
|
|
64
57
|
}
|
|
65
58
|
return null;
|
|
66
59
|
};
|
|
67
|
-
var installClaudeAlias = () => {
|
|
68
|
-
const rc = resolveShellRc();
|
|
69
|
-
if (!rc) return { installed: false, reason: "unsupported-shell" };
|
|
70
|
-
let content = "";
|
|
71
|
-
try {
|
|
72
|
-
content = readFileSync(rc.path, "utf-8");
|
|
73
|
-
} catch {
|
|
74
|
-
}
|
|
75
|
-
if (hasClaudeAlias(content)) return { installed: false, path: rc.path, reason: "exists" };
|
|
76
|
-
const gap = content.length > 0 && !content.endsWith("\n") ? "\n\n" : content.length > 0 ? "\n" : "";
|
|
77
|
-
appendFileSync(rc.path, `${gap}${aliasBlock()}`, "utf-8");
|
|
78
|
-
return { installed: true, path: rc.path };
|
|
79
|
-
};
|
|
80
60
|
var removeClaudeAlias = () => {
|
|
81
61
|
const removed = [];
|
|
82
62
|
for (const name of CANDIDATE_RCS) {
|
|
@@ -559,7 +539,6 @@ var findExportedKeyLine = (profiles = exportedKeyFiles()) => findExportedKeyLine
|
|
|
559
539
|
export {
|
|
560
540
|
CANDIDATE_RCS,
|
|
561
541
|
resolveShellRc,
|
|
562
|
-
installClaudeAlias,
|
|
563
542
|
removeClaudeAlias,
|
|
564
543
|
KEY_FILE_MODE,
|
|
565
544
|
isDisabledExport,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4ALCCCOW.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-VBXEKGOD.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IUGLAPOI.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-EOIWK4T3.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DGF63IWR.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CGNHFWTM.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -747,11 +747,13 @@ var connectViaAppPairing = async (options) => {
|
|
|
747
747
|
};
|
|
748
748
|
var PHONE_WAIT_TIMEOUT_MS = 10 * 6e4;
|
|
749
749
|
var PHONE_WAIT_SKIP_KEY = "s";
|
|
750
|
-
var PHONE_WAIT_SKIP_LINE =
|
|
751
|
-
var
|
|
750
|
+
var PHONE_WAIT_SKIP_LINE = "Press S to skip and connect a phone later.";
|
|
751
|
+
var OPEN_THE_APP_STEP = "1. Open the Pushary app on your phone. No app yet? Get it at pushary.com/download";
|
|
752
|
+
var signInOnThePhoneStep = (accountEmail) => `2. Sign in ${accountEmail ? `as ${accountEmail}` : "with the account you used here"}, then allow notifications.`;
|
|
753
|
+
var describePhoneWait = (skipOffered, accountEmail = null) => [
|
|
752
754
|
bold("Connect your phone"),
|
|
753
|
-
|
|
754
|
-
|
|
755
|
+
OPEN_THE_APP_STEP,
|
|
756
|
+
signInOnThePhoneStep(accountEmail),
|
|
755
757
|
...skipOffered ? [dim(PHONE_WAIT_SKIP_LINE)] : []
|
|
756
758
|
];
|
|
757
759
|
var watchSkip = (listener) => {
|
|
@@ -816,9 +818,9 @@ var waitForYourPhone = async (apiKey, options = {}) => {
|
|
|
816
818
|
console.log(` ${check} ${describeExistingConnection(probe.status)}`);
|
|
817
819
|
return sendAndConfirm(apiKey, probe.status);
|
|
818
820
|
}
|
|
819
|
-
console.log();
|
|
821
|
+
if (options.followsABlankLine !== true) console.log();
|
|
820
822
|
if (options.intro) await options.intro();
|
|
821
|
-
else for (const line of describePhoneWait(options.skip !== void 0)) console.log(` ${line}`);
|
|
823
|
+
else for (const line of describePhoneWait(options.skip !== void 0, options.accountEmail ?? null)) console.log(` ${line}`);
|
|
822
824
|
console.log();
|
|
823
825
|
const waited = await pollForYourPhone(apiKey, probe.status, options);
|
|
824
826
|
if (waited.kind === "connected") return sendAndConfirm(apiKey, waited.channels);
|