pushary 1.9.239 → 1.9.241

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 +19 -0
  2. package/dist/{api-TGQFNSNE.js → api-6L636FFI.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 +106 -33
  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-3OTL7RDO.js → chunk-2KJUGUYQ.js} +14 -7
  49. package/dist/{chunk-NIL4UMQO.js → chunk-332UCKZR.js} +4 -4
  50. package/dist/{chunk-KEC6WMMH.js → chunk-3C3U43UY.js} +1 -1
  51. package/dist/{chunk-NYW3IHWT.js → chunk-3DW6IVG5.js} +2 -2
  52. package/dist/{chunk-AS5IBOCJ.js → chunk-4H6DCMIK.js} +1 -1
  53. package/dist/{chunk-FETLPBX4.js → chunk-5LAKBLOK.js} +5 -5
  54. package/dist/{chunk-2NFLU35D.js → chunk-6BWATFAV.js} +2 -2
  55. package/dist/{chunk-YJ6PCUUZ.js → chunk-6EIVM3CN.js} +1 -1
  56. package/dist/{chunk-OKSLHMMV.js → chunk-6KRO6DQC.js} +1 -1
  57. package/dist/{chunk-7JVDYUXV.js → chunk-6TJOEVKA.js} +4 -4
  58. package/dist/{chunk-QCWKDVGM.js → chunk-73I733XY.js} +3 -3
  59. package/dist/{chunk-VFFTSN5A.js → chunk-7T5IXYCJ.js} +4 -4
  60. package/dist/{chunk-PMZLFGA4.js → chunk-7WIYDCUB.js} +1 -1
  61. package/dist/{chunk-HFTEGMJQ.js → chunk-AXBIUN5S.js} +7 -7
  62. package/dist/{chunk-QFCZHHXE.js → chunk-B2UMHA24.js} +5 -5
  63. package/dist/{chunk-7LDSPVKG.js → chunk-B62INGJG.js} +23 -3
  64. package/dist/{chunk-4XOSBQS3.js → chunk-BATXVYBR.js} +1 -1
  65. package/dist/{chunk-M5DTFZNE.js → chunk-BK7EZIAG.js} +2 -2
  66. package/dist/{chunk-XMCHE2KX.js → chunk-BNB7VOJE.js} +2 -2
  67. package/dist/{chunk-BCFJAUVD.js → chunk-CA2BNB66.js} +11 -11
  68. package/dist/{chunk-JUE3F3SH.js → chunk-CDVHWJPI.js} +337 -123
  69. package/dist/{chunk-KXIKVN4W.js → chunk-CFPHF7TJ.js} +5 -5
  70. package/dist/{chunk-LB4TIIP6.js → chunk-CIS77AVL.js} +4 -4
  71. package/dist/{chunk-34WXXHZK.js → chunk-CKCDYRLT.js} +1 -1
  72. package/dist/{chunk-TSQUSQYM.js → chunk-DY45DRQQ.js} +2 -2
  73. package/dist/{chunk-2CNBP34Z.js → chunk-DZS3JN6U.js} +3 -3
  74. package/dist/{chunk-PB2J2OH6.js → chunk-F7MIUZU5.js} +2 -2
  75. package/dist/{chunk-GHK2D2AY.js → chunk-G2QR2OOD.js} +2 -2
  76. package/dist/{chunk-TZ2JD5R2.js → chunk-G57SFOGM.js} +1 -1
  77. package/dist/{chunk-F7UH6EIK.js → chunk-GFNMWJXO.js} +1 -1
  78. package/dist/{chunk-JSRQCQI4.js → chunk-GHZ6CTB3.js} +5 -5
  79. package/dist/{chunk-22KXKP3P.js → chunk-GTSVMILT.js} +2 -2
  80. package/dist/{chunk-HUB2GUFP.js → chunk-GZ2EWBNW.js} +5 -5
  81. package/dist/{chunk-URA3EVIO.js → chunk-H75XNDPU.js} +2 -2
  82. package/dist/{chunk-XULGWSCM.js → chunk-HZSTXGMB.js} +3 -24
  83. package/dist/{chunk-35IKDC3S.js → chunk-IHJ37K7X.js} +5 -5
  84. package/dist/{chunk-WLKHQOWW.js → chunk-INLOMDYZ.js} +8 -8
  85. package/dist/{chunk-2QKCDW7C.js → chunk-IR67OATS.js} +34 -16
  86. package/dist/{chunk-MQ7TQFAM.js → chunk-IU5EUBFI.js} +4 -4
  87. package/dist/{chunk-WO3XKRTP.js → chunk-J2FYEMDA.js} +7 -7
  88. package/dist/{chunk-CYRFUNSV.js → chunk-JAXA5POJ.js} +4 -4
  89. package/dist/{chunk-O2RFCZXX.js → chunk-JEEYHFFF.js} +1 -1
  90. package/dist/{chunk-6YHIIZCD.js → chunk-JK2NYF6W.js} +5 -5
  91. package/dist/{chunk-CM2CXLMV.js → chunk-JOOLRMRT.js} +1 -1
  92. package/dist/{chunk-U6UOY645.js → chunk-JXH56OQJ.js} +1 -1
  93. package/dist/{chunk-WK6FLRWC.js → chunk-KS4N7MUS.js} +6 -6
  94. package/dist/{chunk-F3RLSCGY.js → chunk-KVMPB3X4.js} +5 -5
  95. package/dist/{chunk-ARDB6TVA.js → chunk-LSXM2XQQ.js} +14 -12
  96. package/dist/{chunk-YMVC3ADR.js → chunk-LWAMSBU5.js} +16 -16
  97. package/dist/{chunk-HCUODMK4.js → chunk-M3EGOLWI.js} +2 -2
  98. package/dist/{chunk-ZDI2GOT7.js → chunk-NEKEDV5H.js} +2 -2
  99. package/dist/{chunk-D5IDQEUV.js → chunk-NGABIHSJ.js} +2 -9
  100. package/dist/{chunk-OBCDZUDW.js → chunk-NQU5VPJ2.js} +1 -1
  101. package/dist/{chunk-M45LA6SN.js → chunk-NSRARU4G.js} +4 -4
  102. package/dist/{chunk-P6WHHGDL.js → chunk-O2HFH6CO.js} +1 -1
  103. package/dist/{chunk-B2UVKWAC.js → chunk-PCCNXWVD.js} +3 -3
  104. package/dist/{chunk-TBFF32OX.js → chunk-PEQ3TYLP.js} +3 -3
  105. package/dist/{chunk-PPW3FH2O.js → chunk-PGWUHKNZ.js} +6 -6
  106. package/dist/{chunk-43EGMRVL.js → chunk-PHJS5IAO.js} +10 -10
  107. package/dist/{chunk-EW6MOHU7.js → chunk-QRUVYQM5.js} +1 -1
  108. package/dist/{chunk-ENMJP2QR.js → chunk-QZQHAFSP.js} +7 -5
  109. package/dist/{chunk-XFVILXWT.js → chunk-R5LKQNBS.js} +4 -4
  110. package/dist/{chunk-Y4FDXCBJ.js → chunk-RAK5AKBH.js} +1 -1
  111. package/dist/{chunk-ODQRIHHZ.js → chunk-RBQWVGEX.js} +7 -3
  112. package/dist/{chunk-7DK5D7K5.js → chunk-RHCDB25U.js} +3 -3
  113. package/dist/{chunk-K5QXVI6H.js → chunk-RL6SYK6P.js} +5 -5
  114. package/dist/{chunk-K3KDWSGN.js → chunk-RX4VUNYO.js} +3 -3
  115. package/dist/{chunk-QXPBSQAJ.js → chunk-S2TIA67T.js} +12 -12
  116. package/dist/{chunk-MD35ZRMK.js → chunk-THBEXOTL.js} +1 -1
  117. package/dist/{chunk-PWLZRTPN.js → chunk-UYCL6GGF.js} +5 -5
  118. package/dist/{chunk-OM4WDT5Q.js → chunk-VJGNKY3G.js} +11 -5
  119. package/dist/{chunk-YXNVJ6QV.js → chunk-VNUBOY2Z.js} +1 -1
  120. package/dist/{chunk-CU53UYPR.js → chunk-WAUNJPDC.js} +1 -1
  121. package/dist/{chunk-P3M2TEIB.js → chunk-WMDZB37J.js} +1 -1
  122. package/dist/{chunk-6AT6CW76.js → chunk-XCR3IXKE.js} +1 -1
  123. package/dist/{chunk-UOPOVQ2P.js → chunk-XNF5DVAF.js} +1 -3
  124. package/dist/{chunk-LAZTGJCP.js → chunk-XWL4ZWTC.js} +1 -1
  125. package/dist/{chunk-775CXETC.js → chunk-ZB25WE2K.js} +3 -3
  126. package/dist/{chunk-AXCHFAM2.js → chunk-ZELRSKRA.js} +2 -2
  127. package/dist/{chunk-DBYMWNEA.js → chunk-ZGDTT3LR.js} +9 -9
  128. package/dist/{chunk-CUKCOSSW.js → chunk-ZICVRFNH.js} +1 -1
  129. package/dist/{chunk-O6QSYCV7.js → chunk-ZQYH7EKR.js} +3 -3
  130. package/dist/{codex-app-cards-switch-G66CLZF2.js → codex-app-cards-switch-I6WJCVY4.js} +11 -11
  131. package/dist/{codex-card-routing-L564JCTO.js → codex-card-routing-L4TL5YB4.js} +2 -2
  132. package/dist/{codex-desktop-launch-WKHFUAT7.js → codex-desktop-launch-Y4ODCUFU.js} +3 -3
  133. package/dist/{codex-session-launch-EBEKNB5T.js → codex-session-launch-7CS4XAD3.js} +20 -20
  134. package/dist/{config-F46PJ6G2.js → config-77UADC3N.js} +3 -3
  135. package/dist/{global-upgrade-XK32FCB7.js → global-upgrade-Q2QSVP7H.js} +9 -9
  136. package/dist/{identity-MGMANSPJ.js → identity-5EC2OOW7.js} +4 -4
  137. package/dist/{live-capabilities-WZWQK6TQ.js → live-capabilities-E23EJXRF.js} +4 -4
  138. package/dist/{paths-I3B3AESI.js → paths-TTYM7HYI.js} +3 -3
  139. package/dist/{reapply-FSHLY63O.js → reapply-OAY3SRY5.js} +34 -34
  140. package/dist/src/index.js +33 -33
  141. package/dist/{upgrade-lock-4TOOLEEM.js → upgrade-lock-PH5LW5VB.js} +4 -4
  142. package/dist/{usage-AMBJJOGG.js → usage-QZ2S5AGT.js} +3 -3
  143. package/package.json +1 -1
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-ZDI2GOT7.js";
6
+ } from "./chunk-NEKEDV5H.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-K3KDWSGN.js";
9
+ } from "./chunk-RX4VUNYO.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,12 +18,12 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-PB2J2OH6.js";
21
+ } from "./chunk-F7MIUZU5.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-D5IDQEUV.js";
26
+ } from "./chunk-NGABIHSJ.js";
27
27
  import {
28
28
  describeReleaseNpmHolds,
29
29
  execNpm,
@@ -33,10 +33,10 @@ import {
33
33
  npmExitedOnReleaseAge,
34
34
  readGlobalCliInstallAt,
35
35
  readGlobalPrefix
36
- } from "./chunk-MQ7TQFAM.js";
36
+ } from "./chunk-IU5EUBFI.js";
37
37
  import {
38
38
  NPX_LATEST_COMMAND
39
- } from "./chunk-CM2CXLMV.js";
39
+ } from "./chunk-JOOLRMRT.js";
40
40
  import {
41
41
  EXIT
42
42
  } from "./chunk-BG4HHB7E.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-VFFTSN5A.js";
4
+ } from "./chunk-7T5IXYCJ.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-BCFJAUVD.js";
7
+ } from "./chunk-CA2BNB66.js";
8
8
  import {
9
9
  compatibleToolLookup
10
- } from "./chunk-AS5IBOCJ.js";
10
+ } from "./chunk-4H6DCMIK.js";
11
11
  import {
12
12
  CLAUDE_HOOK_EVENTS,
13
13
  PUSHARY_MCP_URL,
@@ -19,7 +19,7 @@ import {
19
19
  isPusharyHook,
20
20
  registerHookEntry,
21
21
  removeClaudeMcpServers
22
- } from "./chunk-D5IDQEUV.js";
22
+ } from "./chunk-NGABIHSJ.js";
23
23
  import {
24
24
  AGENT_ENFORCEMENT,
25
25
  HOOK_COMPATIBLE_PROFILES,
@@ -32,7 +32,7 @@ import {
32
32
  pusharyMissingReason,
33
33
  refusalOutput,
34
34
  withHookHoldBudget
35
- } from "./chunk-JUE3F3SH.js";
35
+ } from "./chunk-CDVHWJPI.js";
36
36
 
37
37
  // src/config-document.ts
38
38
  import { parse, stringify } from "smol-toml";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-2QKCDW7C.js";
17
+ } from "./chunk-IR67OATS.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-NQU5VPJ2.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-ODQRIHHZ.js";
35
+ } from "./chunk-RBQWVGEX.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-2NFLU35D.js";
38
+ } from "./chunk-6BWATFAV.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-CM2CXLMV.js";
41
+ } from "./chunk-JOOLRMRT.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-JUE3F3SH.js";
45
+ } from "./chunk-CDVHWJPI.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);
@@ -4,30 +4,30 @@ import {
4
4
  phoneApprovalSourceFor,
5
5
  rememberPhoneApproval,
6
6
  takePhoneApproval
7
- } from "./chunk-O6QSYCV7.js";
7
+ } from "./chunk-ZQYH7EKR.js";
8
8
  import {
9
9
  claudeSettingsLocationFor,
10
10
  readClaudePermissionRules
11
- } from "./chunk-NYW3IHWT.js";
11
+ } from "./chunk-3DW6IVG5.js";
12
12
  import {
13
13
  defersToNativeMode
14
- } from "./chunk-EW6MOHU7.js";
14
+ } from "./chunk-QRUVYQM5.js";
15
15
  import {
16
16
  reportMachineDenial
17
- } from "./chunk-CYRFUNSV.js";
17
+ } from "./chunk-JAXA5POJ.js";
18
18
  import {
19
19
  isGatingMoment,
20
20
  recordKeylessMoment
21
- } from "./chunk-KEC6WMMH.js";
21
+ } from "./chunk-3C3U43UY.js";
22
22
  import {
23
23
  isAdmitted,
24
24
  readAdmissionRules
25
- } from "./chunk-QFCZHHXE.js";
25
+ } from "./chunk-B2UMHA24.js";
26
26
  import {
27
27
  activeHookSource,
28
28
  activeIdentity,
29
29
  namedSource
30
- } from "./chunk-F3RLSCGY.js";
30
+ } from "./chunk-KVMPB3X4.js";
31
31
  import {
32
32
  DEFAULT_SESSION,
33
33
  allow,
@@ -68,7 +68,7 @@ import {
68
68
  storedWaitDeadline,
69
69
  sweepFilesOlderThan,
70
70
  userScope
71
- } from "./chunk-BCFJAUVD.js";
71
+ } from "./chunk-CA2BNB66.js";
72
72
  import {
73
73
  UNNAMED_ACTION,
74
74
  deriveAction,
@@ -79,7 +79,7 @@ import {
79
79
  patchDeletesFiles,
80
80
  permissionDeniedAction,
81
81
  scopePathFor
82
- } from "./chunk-AS5IBOCJ.js";
82
+ } from "./chunk-4H6DCMIK.js";
83
83
  import {
84
84
  askUser,
85
85
  cancelQuestion,
@@ -93,30 +93,30 @@ import {
93
93
  sendNotification,
94
94
  waitForQuestion,
95
95
  withdrawQuestion
96
- } from "./chunk-PPW3FH2O.js";
96
+ } from "./chunk-PGWUHKNZ.js";
97
97
  import {
98
98
  branchFor,
99
99
  projectNameFor,
100
100
  repoKeyFor,
101
101
  repositoryScopeFor
102
- } from "./chunk-34WXXHZK.js";
102
+ } from "./chunk-CKCDYRLT.js";
103
103
  import {
104
104
  getMachineId
105
- } from "./chunk-O2RFCZXX.js";
105
+ } from "./chunk-JEEYHFFF.js";
106
106
  import {
107
107
  POSTTOOLUSE_MIRRORED_TOOLS
108
- } from "./chunk-D5IDQEUV.js";
108
+ } from "./chunk-NGABIHSJ.js";
109
109
  import {
110
110
  getApiKey,
111
111
  getBaseUrl,
112
112
  isMalformedApiKeyError
113
- } from "./chunk-M5DTFZNE.js";
113
+ } from "./chunk-BK7EZIAG.js";
114
114
  import {
115
115
  writeFileAtomic
116
116
  } from "./chunk-PM2NRK6Y.js";
117
117
  import {
118
118
  NPX_LATEST_COMMAND
119
- } from "./chunk-CM2CXLMV.js";
119
+ } from "./chunk-JOOLRMRT.js";
120
120
  import {
121
121
  AGENT_QUESTION_STRATEGY,
122
122
  AGENT_QUESTION_TOOL,
@@ -185,7 +185,7 @@ import {
185
185
  terminalStaysLiveForTheCall,
186
186
  timeoutActionWithoutLocalPrompt,
187
187
  unapprovedScopeReason
188
- } from "./chunk-JUE3F3SH.js";
188
+ } from "./chunk-CDVHWJPI.js";
189
189
 
190
190
  // src/terminal-answer-watch.ts
191
191
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-D5IDQEUV.js";
3
+ } from "./chunk-NGABIHSJ.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-PM2NRK6Y.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-JUE3F3SH.js";
9
+ } from "./chunk-CDVHWJPI.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-D5IDQEUV.js";
3
+ } from "./chunk-NGABIHSJ.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-MQ7TQFAM.js";
8
+ } from "./chunk-IU5EUBFI.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  quoteIfNeeded,
7
7
  shellDoubleQuoted
8
- } from "./chunk-MQ7TQFAM.js";
8
+ } from "./chunk-IU5EUBFI.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-CDVHWJPI.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,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-JUE3F3SH.js";
3
+ } from "./chunk-CDVHWJPI.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS,
3
3
  HERMES_HISTORY_HELPER_COMMAND
4
- } from "./chunk-2CNBP34Z.js";
4
+ } from "./chunk-DZS3JN6U.js";
5
5
  import {
6
6
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
7
7
  HERMES_COMMAND_ALLOWLIST_KEY,
8
8
  HERMES_GATE_TOOLS_KEY,
9
9
  HERMES_SHELL_TOOL
10
- } from "./chunk-OM4WDT5Q.js";
10
+ } from "./chunk-VJGNKY3G.js";
11
11
  import {
12
12
  retryAgentCommand
13
- } from "./chunk-775CXETC.js";
13
+ } from "./chunk-ZB25WE2K.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-CM2CXLMV.js";
16
+ } from "./chunk-JOOLRMRT.js";
17
17
 
18
18
  // src/setup/codex-trust.ts
19
19
  var CODEX_TRUST_TELEMETRY = {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-6ICPEJY5.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-JUE3F3SH.js";
9
+ } from "./chunk-CDVHWJPI.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-VFFTSN5A.js";
3
+ } from "./chunk-7T5IXYCJ.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-NGABIHSJ.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-CDVHWJPI.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-O2RFCZXX.js";
3
+ } from "./chunk-JEEYHFFF.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-M5DTFZNE.js";
6
+ } from "./chunk-BK7EZIAG.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-JUE3F3SH.js";
16
+ } from "./chunk-CDVHWJPI.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-35IKDC3S.js";
11
+ } from "./chunk-IHJ37K7X.js";
12
12
  import {
13
13
  fetchAsCredential
14
- } from "./chunk-PMZLFGA4.js";
14
+ } from "./chunk-7WIYDCUB.js";
15
15
  import {
16
16
  installNetworkDefaults,
17
17
  isNetworkFailure
18
- } from "./chunk-TBFF32OX.js";
18
+ } from "./chunk-PEQ3TYLP.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-D5IDQEUV.js";
21
+ } from "./chunk-NGABIHSJ.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-M5DTFZNE.js";
25
+ } from "./chunk-BK7EZIAG.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -40,7 +40,7 @@ import {
40
40
  isRecord,
41
41
  truncateLine,
42
42
  waitEndAnswered
43
- } from "./chunk-JUE3F3SH.js";
43
+ } from "./chunk-CDVHWJPI.js";
44
44
 
45
45
  // src/api.ts
46
46
  import { randomUUID } from "crypto";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-3OTL7RDO.js";
6
+ } from "./chunk-2KJUGUYQ.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-VFFTSN5A.js";
9
+ } from "./chunk-7T5IXYCJ.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-AS5IBOCJ.js";
12
+ } from "./chunk-4H6DCMIK.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  changedRecipientsMessage,
@@ -24,11 +24,11 @@ import {
24
24
  uploadTranscriptRecords,
25
25
  verifyAnchoredRecipients,
26
26
  wrapSessionKey
27
- } from "./chunk-7DK5D7K5.js";
27
+ } from "./chunk-RHCDB25U.js";
28
28
  import {
29
29
  transcriptEnvironmentPreference,
30
30
  transcriptsEnabled
31
- } from "./chunk-YJ6PCUUZ.js";
31
+ } from "./chunk-6EIVM3CN.js";
32
32
  import {
33
33
  external_exports,
34
34
  ownedOnlyByThisUser,
@@ -36,19 +36,19 @@ import {
36
36
  } from "./chunk-P6DUWKAO.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-PMZLFGA4.js";
39
+ } from "./chunk-7WIYDCUB.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-XULGWSCM.js";
42
+ } from "./chunk-HZSTXGMB.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-D5IDQEUV.js";
47
+ } from "./chunk-NGABIHSJ.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-M5DTFZNE.js";
51
+ } from "./chunk-BK7EZIAG.js";
52
52
  import {
53
53
  writeJsonAtomic,
54
54
  writeJsonAtomicDurable
@@ -61,7 +61,7 @@ import {
61
61
  isHookSource,
62
62
  isRecord,
63
63
  redactSecretsFromContent
64
- } from "./chunk-JUE3F3SH.js";
64
+ } from "./chunk-CDVHWJPI.js";
65
65
 
66
66
  // src/transcript-registration.ts
67
67
  import { createHash as createHash4 } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-JUE3F3SH.js";
3
+ } from "./chunk-CDVHWJPI.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -18,18 +18,18 @@ import {
18
18
  settingSnapshot,
19
19
  writeHermesSetting,
20
20
  writeSetupReceipt
21
- } from "./chunk-OM4WDT5Q.js";
21
+ } from "./chunk-VJGNKY3G.js";
22
22
  import {
23
23
  OPENCLAW_MIN_VERSION,
24
24
  OPENCLAW_PLUGIN_ID,
25
25
  OPENCLAW_PLUGIN_PACKAGE
26
- } from "./chunk-7LDSPVKG.js";
26
+ } from "./chunk-B62INGJG.js";
27
27
  import {
28
28
  retryAgentCommand
29
- } from "./chunk-775CXETC.js";
29
+ } from "./chunk-ZB25WE2K.js";
30
30
  import {
31
31
  configFilePath
32
- } from "./chunk-M5DTFZNE.js";
32
+ } from "./chunk-BK7EZIAG.js";
33
33
  import {
34
34
  readJsonSafe,
35
35
  writeJsonAtomic
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  readSetupOutcomeProperties,
39
39
  redactSecretsFromContent
40
- } from "./chunk-JUE3F3SH.js";
40
+ } from "./chunk-CDVHWJPI.js";
41
41
 
42
42
  // src/hermes/shell-gate.ts
43
43
  var readHermesShellGate = async (launcher) => {
@@ -86,6 +86,8 @@ var describeOpenClawInstallFailure = (reason, detail) => {
86
86
  return `Another OpenClaw plugin already uses the id "${OPENCLAW_PLUGIN_ID}"${safeDetail ? ` (${safeDetail})` : ""}, so Pushary left it alone. Remove it, then run ${SETUP_AGAIN_COMMAND}.`;
87
87
  case "bundle_missing":
88
88
  return `This copy of the Pushary CLI does not carry the OpenClaw plugin. Run ${SETUP_AGAIN_COMMAND} to fetch the current CLI.`;
89
+ case "openclaw_too_old":
90
+ return `OpenClaw ${safeDetail} is too old for Pushary, which needs ${OPENCLAW_MIN_VERSION} or later. To connect it, run ${OPENCLAW_UPDATE_COMMAND}, then ${SETUP_AGAIN_COMMAND}.`;
89
91
  case "inspect_unreadable":
90
92
  return `OpenClaw would not report its plugins through openclaw plugins inspect, so Pushary changed nothing. Run ${OPENCLAW_UPDATE_COMMAND}, then ${SETUP_AGAIN_COMMAND}.`;
91
93
  case "receipt_invalid":
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-U4P4NDVB.js";
17
17
  import {
18
18
  withoutNpmInstallConsent
19
- } from "./chunk-MQ7TQFAM.js";
19
+ } from "./chunk-IU5EUBFI.js";
20
20
 
21
21
  // src/codex-desktop-launch.ts
22
22
  import { spawn as spawn2, execFileSync as execFileSync2 } from "child_process";
@@ -539,8 +539,8 @@ var loadedOnce = (load) => {
539
539
  };
540
540
 
541
541
  // src/codex-desktop-proxy.ts
542
- var loadThePhone = () => import("./api-TGQFNSNE.js");
543
- var loadTheCardRouting = () => import("./codex-card-routing-L564JCTO.js");
542
+ var loadThePhone = () => import("./api-6L636FFI.js");
543
+ var loadTheCardRouting = () => import("./codex-card-routing-L4TL5YB4.js");
544
544
  var theFirstCardLoadsAgain = () => {
545
545
  };
546
546
  var ASKS_WITHOUT_ROUTING = {};
@@ -1101,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1101
1101
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1102
1102
  }
1103
1103
  if (args[0] === APP_CARDS_FLAG) {
1104
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-G66CLZF2.js");
1104
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-I6WJCVY4.js");
1105
1105
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1106
1106
  }
1107
1107
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-JUE3F3SH.js";
4
+ } from "./chunk-CDVHWJPI.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-TBFF32OX.js";
3
+ } from "./chunk-PEQ3TYLP.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-M5DTFZNE.js";
6
+ } from "./chunk-BK7EZIAG.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-CDVHWJPI.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)
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-PMZLFGA4.js";
7
+ } from "./chunk-7WIYDCUB.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-M5DTFZNE.js";
10
+ } from "./chunk-BK7EZIAG.js";
11
11
  import {
12
12
  writeJsonAtomicDurable
13
13
  } from "./chunk-PM2NRK6Y.js";
@@ -15,7 +15,7 @@ import {
15
15
  compressTranscriptRecord,
16
16
  redactSecretsFromContent,
17
17
  transcriptRecordPlaintext
18
- } from "./chunk-JUE3F3SH.js";
18
+ } from "./chunk-CDVHWJPI.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";