pushary 1.9.239 → 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.
Files changed (143) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{api-TGQFNSNE.js → api-S3HQL4CV.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +12 -12
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +26 -26
  8. package/dist/bin/pushary-clean.js +40 -40
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +34 -34
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +16 -16
  13. package/dist/bin/pushary-connect.js +35 -35
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +46 -46
  16. package/dist/bin/pushary-disconnect.js +30 -30
  17. package/dist/bin/pushary-display-hook.js +10 -9
  18. package/dist/bin/pushary-doctor.js +48 -48
  19. package/dist/bin/pushary-elicitation-hook.js +27 -27
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +31 -31
  22. package/dist/bin/pushary-hook.js +35 -35
  23. package/dist/bin/pushary-login.js +23 -23
  24. package/dist/bin/pushary-logout.js +31 -31
  25. package/dist/bin/pushary-mcp.js +12 -12
  26. package/dist/bin/pushary-mode.js +16 -16
  27. package/dist/bin/pushary-notification-hook.js +27 -27
  28. package/dist/bin/pushary-opencode-bridge.js +22 -22
  29. package/dist/bin/pushary-opencode-hook.js +32 -32
  30. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  31. package/dist/bin/pushary-permission-hook.js +35 -35
  32. package/dist/bin/pushary-post-hook.js +28 -28
  33. package/dist/bin/pushary-prompt-hook.js +27 -27
  34. package/dist/bin/pushary-session-end-hook.js +27 -27
  35. package/dist/bin/pushary-session-start-hook.js +39 -39
  36. package/dist/bin/pushary-sessions.js +12 -12
  37. package/dist/bin/pushary-setup.js +140 -173
  38. package/dist/bin/pushary-stats.js +5 -5
  39. package/dist/bin/pushary-status.js +41 -37
  40. package/dist/bin/pushary-stop-hook.js +27 -27
  41. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  42. package/dist/bin/pushary-suggestions.js +16 -16
  43. package/dist/bin/pushary-transcript-register.js +17 -17
  44. package/dist/bin/pushary-transcripts.js +26 -26
  45. package/dist/bin/pushary-upgrade.js +47 -47
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-M5DTFZNE.js → chunk-2FKAQDIY.js} +2 -2
  49. package/dist/{chunk-M45LA6SN.js → chunk-3KR7IXGP.js} +4 -4
  50. package/dist/{chunk-F3RLSCGY.js → chunk-3RHUT4CT.js} +5 -5
  51. package/dist/{chunk-LB4TIIP6.js → chunk-3VGW6MMH.js} +4 -4
  52. package/dist/{chunk-O6QSYCV7.js → chunk-47PF7UUS.js} +3 -3
  53. package/dist/{chunk-2QKCDW7C.js → chunk-4ALCCCOW.js} +34 -16
  54. package/dist/{chunk-AXCHFAM2.js → chunk-4KA5FPCU.js} +2 -2
  55. package/dist/{chunk-WLKHQOWW.js → chunk-4SERWSEJ.js} +8 -8
  56. package/dist/{chunk-F7UH6EIK.js → chunk-54FAMVFU.js} +1 -1
  57. package/dist/{chunk-P6WHHGDL.js → chunk-5JEWS5WP.js} +1 -1
  58. package/dist/{chunk-WK6FLRWC.js → chunk-5MTDC25A.js} +6 -6
  59. package/dist/{chunk-TZ2JD5R2.js → chunk-5ONH6JSZ.js} +1 -1
  60. package/dist/{chunk-7LDSPVKG.js → chunk-6HCARNSZ.js} +23 -3
  61. package/dist/{chunk-QXPBSQAJ.js → chunk-6MK3OFFQ.js} +12 -12
  62. package/dist/{chunk-YXNVJ6QV.js → chunk-6O4LOD7E.js} +1 -1
  63. package/dist/{chunk-CUKCOSSW.js → chunk-6T3JNLXH.js} +1 -1
  64. package/dist/{chunk-AS5IBOCJ.js → chunk-7HX3GQ3J.js} +1 -1
  65. package/dist/{chunk-TSQUSQYM.js → chunk-AZ7I6F6U.js} +2 -2
  66. package/dist/{chunk-7DK5D7K5.js → chunk-B4U25UYA.js} +3 -3
  67. package/dist/{chunk-22KXKP3P.js → chunk-B7LTTHPP.js} +2 -2
  68. package/dist/{chunk-WO3XKRTP.js → chunk-B7TUAYY4.js} +7 -7
  69. package/dist/{chunk-OM4WDT5Q.js → chunk-BFFE3XUB.js} +11 -5
  70. package/dist/{chunk-YJ6PCUUZ.js → chunk-BWJ5XWOY.js} +1 -1
  71. package/dist/{chunk-U6UOY645.js → chunk-BXIW4PYY.js} +1 -1
  72. package/dist/{chunk-JSRQCQI4.js → chunk-C2G6EI42.js} +5 -5
  73. package/dist/{chunk-YMVC3ADR.js → chunk-CBNSLSTN.js} +16 -16
  74. package/dist/{chunk-6AT6CW76.js → chunk-CDP47IC4.js} +1 -1
  75. package/dist/{chunk-JUE3F3SH.js → chunk-CGNHFWTM.js} +10 -6
  76. package/dist/{chunk-CYRFUNSV.js → chunk-CP7FDXDR.js} +4 -4
  77. package/dist/{chunk-CM2CXLMV.js → chunk-DGF63IWR.js} +1 -1
  78. package/dist/{chunk-PPW3FH2O.js → chunk-EJIVYRYV.js} +6 -6
  79. package/dist/{chunk-2NFLU35D.js → chunk-EOIWK4T3.js} +2 -2
  80. package/dist/{chunk-PB2J2OH6.js → chunk-FIW3N3OO.js} +2 -2
  81. package/dist/{chunk-LAZTGJCP.js → chunk-FN6K5DJE.js} +1 -1
  82. package/dist/{chunk-VFFTSN5A.js → chunk-G7N3AMF2.js} +4 -4
  83. package/dist/{chunk-EW6MOHU7.js → chunk-GRDGIN5F.js} +1 -1
  84. package/dist/{chunk-D5IDQEUV.js → chunk-GUZHMUPZ.js} +2 -9
  85. package/dist/{chunk-KXIKVN4W.js → chunk-HYCSVBZU.js} +5 -5
  86. package/dist/{chunk-3OTL7RDO.js → chunk-I2PDVTLE.js} +14 -7
  87. package/dist/{chunk-MQ7TQFAM.js → chunk-IIHJRQUH.js} +4 -4
  88. package/dist/{chunk-ODQRIHHZ.js → chunk-IUGLAPOI.js} +7 -3
  89. package/dist/{chunk-7JVDYUXV.js → chunk-IVVAUS4X.js} +4 -4
  90. package/dist/{chunk-GHK2D2AY.js → chunk-JNGQTIM4.js} +2 -2
  91. package/dist/{chunk-MD35ZRMK.js → chunk-JVVVKMHW.js} +1 -1
  92. package/dist/{chunk-4XOSBQS3.js → chunk-KIY2LDOS.js} +1 -1
  93. package/dist/{chunk-PMZLFGA4.js → chunk-KNR4GPWC.js} +1 -1
  94. package/dist/{chunk-PWLZRTPN.js → chunk-MGGUU2HK.js} +5 -5
  95. package/dist/{chunk-XMCHE2KX.js → chunk-MN52HESI.js} +2 -2
  96. package/dist/{chunk-B2UVKWAC.js → chunk-MRRFHM5W.js} +3 -3
  97. package/dist/{chunk-QCWKDVGM.js → chunk-MUJQEBEI.js} +3 -3
  98. package/dist/{chunk-XULGWSCM.js → chunk-N27CCH7E.js} +3 -24
  99. package/dist/{chunk-OKSLHMMV.js → chunk-NSTSKANY.js} +1 -1
  100. package/dist/{chunk-ARDB6TVA.js → chunk-OCX3VPL7.js} +14 -12
  101. package/dist/{chunk-2CNBP34Z.js → chunk-OKAFHEJQ.js} +3 -3
  102. package/dist/{chunk-BCFJAUVD.js → chunk-ON7GUC77.js} +11 -11
  103. package/dist/{chunk-KEC6WMMH.js → chunk-OQMYK75R.js} +1 -1
  104. package/dist/{chunk-K3KDWSGN.js → chunk-OSQPNWK2.js} +3 -3
  105. package/dist/{chunk-775CXETC.js → chunk-PBAX5ZTC.js} +3 -3
  106. package/dist/{chunk-XFVILXWT.js → chunk-PIF4FJBM.js} +4 -4
  107. package/dist/{chunk-NIL4UMQO.js → chunk-QHZUGUXM.js} +4 -4
  108. package/dist/{chunk-FETLPBX4.js → chunk-R3KWJHV5.js} +5 -5
  109. package/dist/{chunk-P3M2TEIB.js → chunk-RRDNCZ5B.js} +1 -1
  110. package/dist/{chunk-K5QXVI6H.js → chunk-S5NZYFIW.js} +5 -5
  111. package/dist/{chunk-34WXXHZK.js → chunk-SFE3KYTV.js} +1 -1
  112. package/dist/{chunk-HFTEGMJQ.js → chunk-SHJTV4M2.js} +7 -7
  113. package/dist/{chunk-6YHIIZCD.js → chunk-SR3IJPFT.js} +5 -5
  114. package/dist/{chunk-HCUODMK4.js → chunk-T7BENAXJ.js} +2 -2
  115. package/dist/{chunk-HUB2GUFP.js → chunk-UPLB3UAG.js} +5 -5
  116. package/dist/{chunk-TBFF32OX.js → chunk-UZDOP52C.js} +3 -3
  117. package/dist/{chunk-OBCDZUDW.js → chunk-VBXEKGOD.js} +1 -1
  118. package/dist/{chunk-Y4FDXCBJ.js → chunk-VGPLLTWD.js} +1 -1
  119. package/dist/{chunk-DBYMWNEA.js → chunk-VWYNFCZZ.js} +9 -9
  120. package/dist/{chunk-43EGMRVL.js → chunk-W5RHKVDB.js} +10 -10
  121. package/dist/{chunk-NYW3IHWT.js → chunk-WSVJH327.js} +2 -2
  122. package/dist/{chunk-CU53UYPR.js → chunk-WVKLSWNF.js} +1 -1
  123. package/dist/{chunk-UOPOVQ2P.js → chunk-XNF5DVAF.js} +1 -3
  124. package/dist/{chunk-QFCZHHXE.js → chunk-YBEZ373R.js} +5 -5
  125. package/dist/{chunk-ZDI2GOT7.js → chunk-YMNUS2OX.js} +2 -2
  126. package/dist/{chunk-ENMJP2QR.js → chunk-Z3GHXUCO.js} +7 -5
  127. package/dist/{chunk-35IKDC3S.js → chunk-Z443YMGX.js} +5 -5
  128. package/dist/{chunk-URA3EVIO.js → chunk-ZOCOTPP5.js} +2 -2
  129. package/dist/{chunk-O2RFCZXX.js → chunk-ZVMQ5WJM.js} +1 -1
  130. package/dist/{codex-app-cards-switch-G66CLZF2.js → codex-app-cards-switch-JY256N6Q.js} +11 -11
  131. package/dist/{codex-card-routing-L564JCTO.js → codex-card-routing-GJFKRHFN.js} +2 -2
  132. package/dist/{codex-desktop-launch-WKHFUAT7.js → codex-desktop-launch-KADUT764.js} +3 -3
  133. package/dist/{codex-session-launch-EBEKNB5T.js → codex-session-launch-5UQLTCD6.js} +20 -20
  134. package/dist/{config-F46PJ6G2.js → config-BCLQDBDL.js} +3 -3
  135. package/dist/{global-upgrade-XK32FCB7.js → global-upgrade-GF52LKRB.js} +9 -9
  136. package/dist/{identity-MGMANSPJ.js → identity-KJUPRF7O.js} +4 -4
  137. package/dist/{live-capabilities-WZWQK6TQ.js → live-capabilities-3WYHLMMU.js} +4 -4
  138. package/dist/{paths-I3B3AESI.js → paths-M2JGTCLR.js} +3 -3
  139. package/dist/{reapply-FSHLY63O.js → reapply-UEQZ26JC.js} +34 -34
  140. package/dist/src/index.js +33 -33
  141. package/dist/{upgrade-lock-4TOOLEEM.js → upgrade-lock-EGMKQLIM.js} +4 -4
  142. package/dist/{usage-AMBJJOGG.js → usage-DN7WLHLX.js} +3 -3
  143. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-LAZTGJCP.js";
3
+ } from "./chunk-FN6K5DJE.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-OKSLHMMV.js";
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-D5IDQEUV.js";
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-JUE3F3SH.js";
25
+ } from "./chunk-CGNHFWTM.js";
26
26
 
27
27
  // src/gemini-config.ts
28
28
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-JUE3F3SH.js";
3
+ } from "./chunk-CGNHFWTM.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  quoteIfNeeded,
7
7
  shellDoubleQuoted
8
- } from "./chunk-MQ7TQFAM.js";
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-JUE3F3SH.js";
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,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-BCFJAUVD.js";
3
+ } from "./chunk-ON7GUC77.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-AS5IBOCJ.js";
6
+ } from "./chunk-7HX3GQ3J.js";
7
7
  import {
8
8
  ASK_USER_TIMEOUT_MS,
9
9
  WAIT_END_TIMEOUT_MS,
@@ -11,10 +11,10 @@ import {
11
11
  askUser,
12
12
  unavailableQuestionUnlessRefused,
13
13
  waitForQuestion
14
- } from "./chunk-PPW3FH2O.js";
14
+ } from "./chunk-EJIVYRYV.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-O2RFCZXX.js";
17
+ } from "./chunk-ZVMQ5WJM.js";
18
18
  import {
19
19
  hookMaxWaitSeconds,
20
20
  hookWaitClamped,
@@ -24,7 +24,7 @@ import {
24
24
  refusesWhenUnanswered,
25
25
  ruleApprovesAfterItsFullWindow,
26
26
  scopeBreachReasonOf
27
- } from "./chunk-JUE3F3SH.js";
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-O2RFCZXX.js";
7
+ } from "./chunk-ZVMQ5WJM.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-XULGWSCM.js";
10
+ } from "./chunk-N27CCH7E.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-D5IDQEUV.js";
13
+ } from "./chunk-GUZHMUPZ.js";
14
14
  import {
15
15
  resolveGlobalBinary,
16
16
  withoutNpmInstallConsent
17
- } from "./chunk-MQ7TQFAM.js";
17
+ } from "./chunk-IIHJRQUH.js";
18
18
  import {
19
19
  getApiKey
20
- } from "./chunk-M5DTFZNE.js";
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-JUE3F3SH.js";
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 describeVersionManagerPin = (execPath, manager) => `The background service is pinned to ${execPath}, which ${manager} manages. Switching or upgrading Node strands it; run pushary daemon install afterwards.`;
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-JUE3F3SH.js";
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-XK32FCB7.js");
603
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-4TOOLEEM.js");
604
- const { autoUpdateLock } = await import("./paths-I3B3AESI.js");
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-TBFF32OX.js";
3
+ } from "./chunk-UZDOP52C.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-M5DTFZNE.js";
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-JUE3F3SH.js";
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-HFTEGMJQ.js";
3
+ } from "./chunk-SHJTV4M2.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-XULGWSCM.js";
6
+ } from "./chunk-N27CCH7E.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-D5IDQEUV.js";
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-JUE3F3SH.js";
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-D5IDQEUV.js";
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-JUE3F3SH.js";
16
+ } from "./chunk-CGNHFWTM.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOOK_BUDGETS
3
- } from "./chunk-JUE3F3SH.js";
3
+ } from "./chunk-CGNHFWTM.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-MD35ZRMK.js";
9
+ } from "./chunk-JVVVKMHW.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-JUE3F3SH.js";
8
+ } from "./chunk-CGNHFWTM.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-7LDSPVKG.js";
3
+ } from "./chunk-6HCARNSZ.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-HFTEGMJQ.js";
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-F3RLSCGY.js";
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-D5IDQEUV.js";
19
+ } from "./chunk-GUZHMUPZ.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
- } from "./chunk-JUE3F3SH.js";
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-XFVILXWT.js";
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-3OTL7RDO.js";
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-VFFTSN5A.js";
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-D5IDQEUV.js";
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-JUE3F3SH.js";
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-LAZTGJCP.js";
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-CM2CXLMV.js";
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-JUE3F3SH.js";
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-2NFLU35D.js";
3
+ } from "./chunk-EOIWK4T3.js";
4
4
  import {
5
5
  apiKeyInForce,
6
6
  configFilePath,
7
7
  keyPrefixToShow
8
- } from "./chunk-M5DTFZNE.js";
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-JUE3F3SH.js";
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,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-D5IDQEUV.js";
3
+ } from "./chunk-GUZHMUPZ.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-2QKCDW7C.js";
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-OBCDZUDW.js";
32
+ } from "./chunk-VBXEKGOD.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-ODQRIHHZ.js";
35
+ } from "./chunk-IUGLAPOI.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-2NFLU35D.js";
38
+ } from "./chunk-EOIWK4T3.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-CM2CXLMV.js";
41
+ } from "./chunk-DGF63IWR.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-JUE3F3SH.js";
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 = `Press S to skip. You can connect a phone later with ${NPX_LATEST_COMMAND} setup.`;
751
- var describePhoneWait = (skipOffered) => [
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
- "Open the Pushary app on your phone and allow notifications.",
754
- dim("Sign in with the same account you use here. No app yet? Get it at pushary.com/download"),
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);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serviceNodeFor
3
- } from "./chunk-3OTL7RDO.js";
3
+ } from "./chunk-I2PDVTLE.js";
4
4
  import {
5
5
  OWNER_ONLY_FILE_MODE,
6
6
  readOwnerOnlyJson
@@ -14,14 +14,14 @@ import {
14
14
  codexHome,
15
15
  codexHooksJsonIn,
16
16
  isPusharyCodexCommand
17
- } from "./chunk-D5IDQEUV.js";
17
+ } from "./chunk-GUZHMUPZ.js";
18
18
  import {
19
19
  DEFAULT_WINDOWS_PATHEXT,
20
20
  DIRECTLY_STARTABLE_EXTENSIONS,
21
21
  plannedGlobalPackage,
22
22
  readGlobalPrefix,
23
23
  resolvePathBinary
24
- } from "./chunk-MQ7TQFAM.js";
24
+ } from "./chunk-IIHJRQUH.js";
25
25
  import {
26
26
  getPackageVersion,
27
27
  globalTranscriptRegisterEntry
@@ -29,7 +29,7 @@ import {
29
29
  toolResultErrorText,
30
30
  transcriptTokensIn,
31
31
  transcriptUsageRequest
32
- } from "./chunk-AS5IBOCJ.js";
32
+ } from "./chunk-7HX3GQ3J.js";
33
33
  import {
34
34
  askUser,
35
35
  cancelQuestion,
@@ -45,37 +45,37 @@ import {
45
45
  waitForOpenQuestion,
46
46
  waitForQuestion,
47
47
  writeDegraded
48
- } from "./chunk-PPW3FH2O.js";
48
+ } from "./chunk-EJIVYRYV.js";
49
49
  import {
50
50
  RETRY_ACK,
51
51
  readCommandAck,
52
52
  refusedReceiptMessage
53
- } from "./chunk-CUKCOSSW.js";
53
+ } from "./chunk-6T3JNLXH.js";
54
54
  import {
55
55
  SubscriptionRequiredError,
56
56
  isRetryable,
57
57
  withRetry
58
- } from "./chunk-35IKDC3S.js";
58
+ } from "./chunk-Z443YMGX.js";
59
59
  import {
60
60
  fetchAsCredential
61
- } from "./chunk-PMZLFGA4.js";
61
+ } from "./chunk-KNR4GPWC.js";
62
62
  import {
63
63
  branchFor,
64
64
  projectNameFor,
65
65
  repoKeyFor
66
- } from "./chunk-34WXXHZK.js";
66
+ } from "./chunk-SFE3KYTV.js";
67
67
  import {
68
68
  getMachineId
69
- } from "./chunk-O2RFCZXX.js";
69
+ } from "./chunk-ZVMQ5WJM.js";
70
70
  import {
71
71
  reportedInstallSource
72
- } from "./chunk-2NFLU35D.js";
72
+ } from "./chunk-EOIWK4T3.js";
73
73
  import {
74
74
  IDLE_PROMPT_NOTIFICATION,
75
75
  NOTIFICATION_PUSH_TYPES,
76
76
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
77
77
  claudeConfigDir
78
- } from "./chunk-D5IDQEUV.js";
78
+ } from "./chunk-GUZHMUPZ.js";
79
79
  import {
80
80
  compareVersion,
81
81
  parseVersion
@@ -84,7 +84,7 @@ import {
84
84
  getApiKey,
85
85
  getBaseUrl,
86
86
  isMalformedApiKeyError
87
- } from "./chunk-M5DTFZNE.js";
87
+ } from "./chunk-2FKAQDIY.js";
88
88
  import {
89
89
  writeFileAtomic,
90
90
  writeJsonAtomicDurable
@@ -151,7 +151,7 @@ import {
151
151
  resolvePolicy,
152
152
  unansweredRefusalReason,
153
153
  waitsForThePhone
154
- } from "./chunk-JUE3F3SH.js";
154
+ } from "./chunk-CGNHFWTM.js";
155
155
 
156
156
  // src/pending.ts
157
157
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-JUE3F3SH.js";
3
+ } from "./chunk-CGNHFWTM.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";