pushary 1.9.281 → 1.9.283

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 (146) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{api-WBSDPSHN.js → api-OJRU3MYI.js} +12 -12
  3. package/dist/bin/pushary-ask.js +14 -14
  4. package/dist/bin/pushary-audit.js +3 -3
  5. package/dist/bin/pushary-bell-hook.js +28 -28
  6. package/dist/bin/pushary-bell.js +11 -11
  7. package/dist/bin/pushary-calls.js +14 -14
  8. package/dist/bin/pushary-claude.js +25 -25
  9. package/dist/bin/pushary-clean.js +39 -39
  10. package/dist/bin/pushary-codex-bridge.js +22 -22
  11. package/dist/bin/pushary-codex-hook.js +34 -34
  12. package/dist/bin/pushary-codex-session.js +8 -8
  13. package/dist/bin/pushary-codex.js +16 -16
  14. package/dist/bin/pushary-connect.js +35 -35
  15. package/dist/bin/pushary-cowork.js +5 -5
  16. package/dist/bin/pushary-daemon.js +46 -46
  17. package/dist/bin/pushary-disconnect.js +30 -30
  18. package/dist/bin/pushary-display-hook.js +2 -3
  19. package/dist/bin/pushary-doctor.js +81 -71
  20. package/dist/bin/pushary-elicitation-hook.js +27 -27
  21. package/dist/bin/pushary-gemini-bridge.js +17 -17
  22. package/dist/bin/pushary-gemini-hook.js +31 -31
  23. package/dist/bin/pushary-hook.js +35 -35
  24. package/dist/bin/pushary-login.js +42 -42
  25. package/dist/bin/pushary-logout.js +31 -31
  26. package/dist/bin/pushary-mcp.js +12 -12
  27. package/dist/bin/pushary-mode.js +15 -15
  28. package/dist/bin/pushary-notification-hook.js +27 -27
  29. package/dist/bin/pushary-opencode-bridge.js +21 -21
  30. package/dist/bin/pushary-opencode-hook.js +32 -32
  31. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  32. package/dist/bin/pushary-permission-hook.js +35 -35
  33. package/dist/bin/pushary-post-hook.js +28 -28
  34. package/dist/bin/pushary-prompt-hook.js +27 -27
  35. package/dist/bin/pushary-session-end-hook.js +27 -27
  36. package/dist/bin/pushary-session-start-hook.js +39 -39
  37. package/dist/bin/pushary-sessions.js +12 -12
  38. package/dist/bin/pushary-setup.js +59 -59
  39. package/dist/bin/pushary-stats.js +5 -5
  40. package/dist/bin/pushary-status.js +36 -36
  41. package/dist/bin/pushary-stop-hook.js +27 -27
  42. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  43. package/dist/bin/pushary-suggestions.js +15 -15
  44. package/dist/bin/pushary-transcript-register.js +16 -16
  45. package/dist/bin/pushary-transcripts.js +25 -25
  46. package/dist/bin/pushary-upgrade.js +47 -47
  47. package/dist/bin/pushary-wait.js +67 -30
  48. package/dist/bin/pushary.js +7 -7
  49. package/dist/{chunk-7WCBGOXC.js → chunk-26RKJL2X.js} +2 -2
  50. package/dist/{chunk-4EJ6BFQ6.js → chunk-2JWCBGFX.js} +3 -3
  51. package/dist/{chunk-SCR7JFIZ.js → chunk-3B3UE65E.js} +12 -12
  52. package/dist/{chunk-LE2GNKVF.js → chunk-4RPG3SFC.js} +3 -3
  53. package/dist/{chunk-DI7VQ4PL.js → chunk-4ZWNL3CK.js} +1 -1
  54. package/dist/{chunk-URYZAUMK.js → chunk-5RSXB22M.js} +4 -4
  55. package/dist/{chunk-PATTVCJS.js → chunk-5YSFXK2C.js} +2 -2
  56. package/dist/{chunk-JKMX5HMU.js → chunk-6GCGRTR7.js} +1 -1
  57. package/dist/{chunk-GBMURSB4.js → chunk-6MUWWEYX.js} +7 -7
  58. package/dist/{chunk-7FUEG6WT.js → chunk-6RAIYGKT.js} +1 -1
  59. package/dist/{chunk-GS6XPW45.js → chunk-6VK43QVL.js} +7 -7
  60. package/dist/{chunk-5WZAL3IG.js → chunk-73SEBA5G.js} +4 -4
  61. package/dist/{chunk-YQNGHX3P.js → chunk-7OOQJD33.js} +3 -3
  62. package/dist/chunk-7PRPLYOT.js +93 -0
  63. package/dist/{chunk-L25W4SZ2.js → chunk-7VL6QZ3C.js} +3 -3
  64. package/dist/{chunk-GOMIXT5C.js → chunk-7Y3NHQSD.js} +5 -5
  65. package/dist/{chunk-IJOGKO3Z.js → chunk-AIBGURF2.js} +1 -1
  66. package/dist/{chunk-67D6KDPJ.js → chunk-AKUQLREQ.js} +4 -4
  67. package/dist/{chunk-YM3TSHT2.js → chunk-AOLCAXRB.js} +1 -1
  68. package/dist/{chunk-ZL46IS5W.js → chunk-ATWYNEN4.js} +1 -1
  69. package/dist/{chunk-ODSUVMII.js → chunk-B7SK3EXB.js} +5 -5
  70. package/dist/{chunk-6SJ3YYPS.js → chunk-CA7VX4KS.js} +2 -2
  71. package/dist/{chunk-NQCIACTR.js → chunk-CBA4AVFT.js} +4 -4
  72. package/dist/{chunk-XV54WWNB.js → chunk-CPNPPYQL.js} +3 -3
  73. package/dist/{chunk-DGIMLJ7N.js → chunk-CWQU75DS.js} +3 -3
  74. package/dist/{chunk-DPTI6ZTZ.js → chunk-DTYSJP6K.js} +2 -2
  75. package/dist/{chunk-M4B3D76U.js → chunk-E4WNMH33.js} +1 -1
  76. package/dist/{chunk-3I6Z6YKA.js → chunk-EANJH5FQ.js} +5 -5
  77. package/dist/{chunk-I5RNSFXB.js → chunk-EDVQWYSU.js} +4 -4
  78. package/dist/{chunk-PUDKDFOZ.js → chunk-EGZUBQL6.js} +1 -1
  79. package/dist/{chunk-TCQ3SHEC.js → chunk-EUO5U5V7.js} +6 -6
  80. package/dist/{chunk-XKTBFWO2.js → chunk-FIAXP3LF.js} +1 -1
  81. package/dist/{chunk-VSF3OSWI.js → chunk-FNENGMPK.js} +1 -1
  82. package/dist/{chunk-JP545GB4.js → chunk-FQWIGDXG.js} +1 -1
  83. package/dist/{chunk-AGBCUPRE.js → chunk-GS4D3NTI.js} +5 -5
  84. package/dist/{chunk-KKPI7MVG.js → chunk-HKXFHEB4.js} +4 -4
  85. package/dist/{chunk-QGQA4VUR.js → chunk-HX3RPHIH.js} +8 -8
  86. package/dist/{chunk-VY7Q5MEQ.js → chunk-I67ZGYEY.js} +5 -5
  87. package/dist/{chunk-LKL7VIWF.js → chunk-IASJJRQV.js} +3 -3
  88. package/dist/{chunk-Q5MYEDCP.js → chunk-IP6BVZZL.js} +6 -6
  89. package/dist/{chunk-DWL2XZNZ.js → chunk-IPJRN56U.js} +5 -5
  90. package/dist/{chunk-YEQF4H76.js → chunk-IX2DKVF2.js} +4 -4
  91. package/dist/{chunk-O6LVUSRY.js → chunk-J2UDVVCB.js} +6 -6
  92. package/dist/{chunk-DLRZZHXC.js → chunk-JHYVJYGR.js} +6 -6
  93. package/dist/{chunk-2562EGWD.js → chunk-JP7RRADP.js} +1 -1
  94. package/dist/{chunk-I2OOSUJN.js → chunk-JPSCKMYH.js} +1 -1
  95. package/dist/{chunk-MYXHCXD3.js → chunk-JSYYVEVW.js} +4 -4
  96. package/dist/{chunk-2SE3TSWT.js → chunk-JWMDRKAO.js} +10 -10
  97. package/dist/{chunk-JUZC524C.js → chunk-K4YUNJDY.js} +5 -5
  98. package/dist/{chunk-OVUJLLPD.js → chunk-KMMO3K2C.js} +27 -22
  99. package/dist/{chunk-NL4NVNSD.js → chunk-L2BJVSVI.js} +2 -2
  100. package/dist/{chunk-R5P25UN2.js → chunk-M3MD5Y2O.js} +5 -5
  101. package/dist/{chunk-ENTFHIJ5.js → chunk-M6T24IVX.js} +1 -1
  102. package/dist/{chunk-KV65OAIF.js → chunk-N6RX3ZWB.js} +1 -1
  103. package/dist/{chunk-JXVZO2TC.js → chunk-NWFO2WGB.js} +2 -2
  104. package/dist/{chunk-DEGZHZLH.js → chunk-OOSOLBO2.js} +1 -1
  105. package/dist/{chunk-OPWXKDXN.js → chunk-OQVYOMNI.js} +4 -4
  106. package/dist/{chunk-FYGOACNH.js → chunk-OTIXTZA6.js} +2 -2
  107. package/dist/{chunk-RI6C7WBQ.js → chunk-OYRQZWXW.js} +2 -2
  108. package/dist/{chunk-Z7F7SITX.js → chunk-PUNIACRA.js} +4 -4
  109. package/dist/{chunk-QG742PJG.js → chunk-QSPYUDHD.js} +1 -1
  110. package/dist/{chunk-USRBNJJX.js → chunk-QU2NSBXD.js} +1 -1
  111. package/dist/{chunk-36CZVHOH.js → chunk-RJ5HUNEE.js} +1 -1
  112. package/dist/{chunk-7CIMT2QH.js → chunk-SAFK3BQB.js} +1 -1
  113. package/dist/{chunk-3FCGMTG2.js → chunk-SIP2BFVS.js} +6 -6
  114. package/dist/{chunk-HJ25OOZL.js → chunk-SL6ZTQA2.js} +1 -1
  115. package/dist/{chunk-G6EN7DLG.js → chunk-SWGR226D.js} +10 -10
  116. package/dist/{chunk-6TC6Y5FE.js → chunk-T5D3F6ME.js} +5 -5
  117. package/dist/{chunk-SIZMK3SF.js → chunk-TBCHTCA2.js} +1 -1
  118. package/dist/{chunk-RECYGQIM.js → chunk-TVQWBXV2.js} +16 -16
  119. package/dist/{chunk-7OV4MW6B.js → chunk-UIOTVHQB.js} +2 -2
  120. package/dist/{chunk-3AKD2IMA.js → chunk-UOABAWQ4.js} +6 -6
  121. package/dist/{chunk-T2JHF3E4.js → chunk-VO22G4MS.js} +7 -7
  122. package/dist/{chunk-MZPWMXPX.js → chunk-VYLJWG3B.js} +2 -10
  123. package/dist/{chunk-HPYVOBVO.js → chunk-XC2O4MA3.js} +1 -1
  124. package/dist/chunk-XGWKMWKM.js +42 -0
  125. package/dist/{chunk-KSHM2X7A.js → chunk-XKSIMUZM.js} +2 -2
  126. package/dist/{chunk-D35MHKUM.js → chunk-XOZZ7LFC.js} +2 -2
  127. package/dist/{chunk-VYMBV6M5.js → chunk-Y5INUJ2S.js} +3 -3
  128. package/dist/{chunk-7CCJLPFF.js → chunk-YARDFZND.js} +2 -2
  129. package/dist/{chunk-H5BATWAL.js → chunk-YG5TIW73.js} +3 -3
  130. package/dist/{chunk-QXPI7LOZ.js → chunk-YSR7QVMN.js} +3 -3
  131. package/dist/{chunk-2NNCVW26.js → chunk-ZUHELFIM.js} +3 -3
  132. package/dist/{codex-app-cards-switch-DGTEKXMX.js → codex-app-cards-switch-2ZVORWWV.js} +11 -11
  133. package/dist/{codex-card-routing-ESKPXKXS.js → codex-card-routing-PLD74MXM.js} +2 -2
  134. package/dist/{codex-desktop-launch-HCEBT2IM.js → codex-desktop-launch-BDR7I3AT.js} +3 -3
  135. package/dist/{codex-session-launch-PXWW7EDP.js → codex-session-launch-HZJWXLWT.js} +21 -21
  136. package/dist/{config-PFH6OQ6M.js → config-DY2KBMHL.js} +3 -3
  137. package/dist/{global-upgrade-UU3H3EFW.js → global-upgrade-H4CHC3PX.js} +9 -9
  138. package/dist/{identity-JHCLWMLI.js → identity-BEGPK37L.js} +4 -4
  139. package/dist/{live-capabilities-3K6DM4A3.js → live-capabilities-W4YZO6AH.js} +4 -4
  140. package/dist/{paths-TMTWXB5B.js → paths-J7L3IDOW.js} +3 -3
  141. package/dist/{reapply-RT4T77RQ.js → reapply-3ECJVIWC.js} +34 -34
  142. package/dist/src/index.js +33 -33
  143. package/dist/{upgrade-lock-NGYIAYBZ.js → upgrade-lock-UPLYK4CW.js} +4 -4
  144. package/dist/{usage-LGGUWLJM.js → usage-ZDDF7U5L.js} +3 -3
  145. package/package.json +1 -1
  146. package/dist/chunk-2SMGO6SE.js +0 -28
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-KSHM2X7A.js";
3
+ } from "./chunk-XKSIMUZM.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-PM2NRK6Y.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-LE2GNKVF.js";
9
+ } from "./chunk-4RPG3SFC.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -4,16 +4,16 @@ import {
4
4
  } from "./chunk-WHB622LP.js";
5
5
  import {
6
6
  keyPrefix
7
- } from "./chunk-DPTI6ZTZ.js";
7
+ } from "./chunk-DTYSJP6K.js";
8
8
  import {
9
9
  keyPrefixToShow
10
- } from "./chunk-D35MHKUM.js";
10
+ } from "./chunk-XOZZ7LFC.js";
11
11
  import {
12
12
  NPX_LATEST_COMMAND
13
- } from "./chunk-USRBNJJX.js";
13
+ } from "./chunk-QU2NSBXD.js";
14
14
  import {
15
15
  isValidApiKey
16
- } from "./chunk-LE2GNKVF.js";
16
+ } from "./chunk-4RPG3SFC.js";
17
17
 
18
18
  // src/setup/key-account.ts
19
19
  var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-ZL46IS5W.js";
9
+ } from "./chunk-ATWYNEN4.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -8,7 +8,7 @@ import {
8
8
  PUSHARY_CLI_LATEST_FOR_POWERSHELL,
9
9
  SETUP_AGENT_CHOICES,
10
10
  isApprovalMode
11
- } from "./chunk-LE2GNKVF.js";
11
+ } from "./chunk-4RPG3SFC.js";
12
12
 
13
13
  // src/cli/mode-request.ts
14
14
  var parseDuration = (value) => {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-BG4HHB7E.js";
8
8
  import {
9
9
  redactSecretsFromContent
10
- } from "./chunk-LE2GNKVF.js";
10
+ } from "./chunk-4RPG3SFC.js";
11
11
 
12
12
  // src/cli/json.ts
13
13
  var buildEnvelope = (command, version, data, errors = []) => ({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderCommandHelp
3
- } from "./chunk-USRBNJJX.js";
3
+ } from "./chunk-QU2NSBXD.js";
4
4
  import {
5
5
  EXIT
6
6
  } from "./chunk-BG4HHB7E.js";
@@ -4,20 +4,20 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-I2OOSUJN.js";
7
+ } from "./chunk-JPSCKMYH.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-DPTI6ZTZ.js";
10
+ } from "./chunk-DTYSJP6K.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-KSHM2X7A.js";
13
+ } from "./chunk-XKSIMUZM.js";
14
14
  import {
15
15
  resolveGlobalBinary,
16
16
  withoutNpmInstallConsent
17
- } from "./chunk-KKPI7MVG.js";
17
+ } from "./chunk-HKXFHEB4.js";
18
18
  import {
19
19
  getApiKey
20
- } from "./chunk-D35MHKUM.js";
20
+ } from "./chunk-XOZZ7LFC.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-LE2GNKVF.js";
36
+ } from "./chunk-4RPG3SFC.js";
37
37
 
38
38
  // src/daemon-entry-guard.ts
39
39
  import { mkdirSync, readFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isRecord
3
- } from "./chunk-LE2GNKVF.js";
3
+ } from "./chunk-4RPG3SFC.js";
4
4
 
5
5
  // src/config-document.ts
6
6
  import { parse, stringify } from "smol-toml";
@@ -1,35 +1,35 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-6SJ3YYPS.js";
3
+ } from "./chunk-CA7VX4KS.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-7OV4MW6B.js";
7
+ } from "./chunk-UIOTVHQB.js";
8
8
  import {
9
9
  liveCursorGateCoverage
10
- } from "./chunk-H5BATWAL.js";
10
+ } from "./chunk-YG5TIW73.js";
11
11
  import {
12
12
  OPENCODE_HOOK_BINARY,
13
13
  openCodeConfigDir,
14
14
  openCodePluginFile
15
- } from "./chunk-GBMURSB4.js";
15
+ } from "./chunk-6MUWWEYX.js";
16
16
  import {
17
17
  openCodePluginArgv
18
- } from "./chunk-QG742PJG.js";
18
+ } from "./chunk-QSPYUDHD.js";
19
19
  import {
20
20
  compatibleConfigFile,
21
21
  compatibleHookEvents,
22
22
  grokHome
23
- } from "./chunk-Q5MYEDCP.js";
23
+ } from "./chunk-IP6BVZZL.js";
24
24
  import {
25
25
  parseConfigDocument
26
- } from "./chunk-HJ25OOZL.js";
26
+ } from "./chunk-SL6ZTQA2.js";
27
27
  import {
28
28
  DEFAULT_HOOKS_KEY_PATH,
29
29
  GEMINI_HOOK_BINARY,
30
30
  GEMINI_HOOK_EVENTS,
31
31
  hooksAt
32
- } from "./chunk-YEQF4H76.js";
32
+ } from "./chunk-IX2DKVF2.js";
33
33
  import {
34
34
  CODEX_EARLIER_APPROVAL_MATCHERS,
35
35
  CODEX_HOOK_BINARY,
@@ -57,7 +57,7 @@ import {
57
57
  parseHookArgv,
58
58
  parseHookCommand,
59
59
  supportedClaudeEvents
60
- } from "./chunk-KSHM2X7A.js";
60
+ } from "./chunk-XKSIMUZM.js";
61
61
  import {
62
62
  readRegularJsonFile,
63
63
  readRegularTextFile
@@ -71,7 +71,7 @@ import {
71
71
  OPENCODE_APPROVAL_EVENT,
72
72
  isRecord,
73
73
  matcherMatchesEveryCall
74
- } from "./chunk-LE2GNKVF.js";
74
+ } from "./chunk-4RPG3SFC.js";
75
75
 
76
76
  // src/hook-wiring.ts
77
77
  import { createHash } from "crypto";
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-5WZAL3IG.js";
8
+ } from "./chunk-73SEBA5G.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-7CCJLPFF.js";
11
+ } from "./chunk-YARDFZND.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-QXPI7LOZ.js";
14
+ } from "./chunk-YSR7QVMN.js";
15
15
  import {
16
16
  findExportedKeyLines,
17
17
  isAdoptedMacAppKey,
@@ -21,10 +21,10 @@ import {
21
21
  readConfigFileKey,
22
22
  readKeySource,
23
23
  readMacAppKeyPrefix
24
- } from "./chunk-DPTI6ZTZ.js";
24
+ } from "./chunk-DTYSJP6K.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-LE2GNKVF.js";
27
+ } from "./chunk-4RPG3SFC.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-DPTI6ZTZ.js";
3
+ } from "./chunk-DTYSJP6K.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -7,30 +7,30 @@ import {
7
7
  restorePhoneApprovals,
8
8
  setAsidePhoneApprovalsOfOtherCalls,
9
9
  takePhoneApproval
10
- } from "./chunk-FYGOACNH.js";
10
+ } from "./chunk-OTIXTZA6.js";
11
11
  import {
12
12
  defersToNativeMode
13
- } from "./chunk-IJOGKO3Z.js";
13
+ } from "./chunk-AIBGURF2.js";
14
14
  import {
15
15
  reportMachineDenial
16
- } from "./chunk-I5RNSFXB.js";
16
+ } from "./chunk-EDVQWYSU.js";
17
17
  import {
18
18
  claudeSettingsLocationFor,
19
19
  readClaudePermissionRules
20
- } from "./chunk-6SJ3YYPS.js";
20
+ } from "./chunk-CA7VX4KS.js";
21
21
  import {
22
22
  isGatingMoment,
23
23
  recordKeylessMoment
24
- } from "./chunk-HPYVOBVO.js";
24
+ } from "./chunk-XC2O4MA3.js";
25
25
  import {
26
26
  isAdmitted,
27
27
  readAdmissionRules
28
- } from "./chunk-DWL2XZNZ.js";
28
+ } from "./chunk-IPJRN56U.js";
29
29
  import {
30
30
  activeHookSource,
31
31
  activeIdentity,
32
32
  namedSource
33
- } from "./chunk-Q5MYEDCP.js";
33
+ } from "./chunk-IP6BVZZL.js";
34
34
  import {
35
35
  DEFAULT_SESSION,
36
36
  allow,
@@ -71,7 +71,7 @@ import {
71
71
  storedWaitDeadline,
72
72
  sweepFilesOlderThan,
73
73
  userScope
74
- } from "./chunk-OVUJLLPD.js";
74
+ } from "./chunk-KMMO3K2C.js";
75
75
  import {
76
76
  UNNAMED_ACTION,
77
77
  deriveAction,
@@ -82,7 +82,7 @@ import {
82
82
  patchDeletesFiles,
83
83
  permissionDeniedAction,
84
84
  scopePathFor
85
- } from "./chunk-2562EGWD.js";
85
+ } from "./chunk-JP7RRADP.js";
86
86
  import {
87
87
  isDeferAnswer
88
88
  } from "./chunk-Z25VDYAL.js";
@@ -99,30 +99,30 @@ import {
99
99
  sendNotification,
100
100
  waitForQuestion,
101
101
  withdrawQuestion
102
- } from "./chunk-T2JHF3E4.js";
102
+ } from "./chunk-VO22G4MS.js";
103
103
  import {
104
104
  branchFor,
105
105
  projectNameFor,
106
106
  repoKeyFor,
107
107
  repositoryScopeFor
108
- } from "./chunk-YM3TSHT2.js";
108
+ } from "./chunk-AOLCAXRB.js";
109
109
  import {
110
110
  getMachineId
111
- } from "./chunk-I2OOSUJN.js";
111
+ } from "./chunk-JPSCKMYH.js";
112
112
  import {
113
113
  POSTTOOLUSE_MIRRORED_TOOLS
114
- } from "./chunk-KSHM2X7A.js";
114
+ } from "./chunk-XKSIMUZM.js";
115
115
  import {
116
116
  getApiKey,
117
117
  getBaseUrl,
118
118
  isMalformedApiKeyError
119
- } from "./chunk-D35MHKUM.js";
119
+ } from "./chunk-XOZZ7LFC.js";
120
120
  import {
121
121
  writeFileAtomic
122
122
  } from "./chunk-PM2NRK6Y.js";
123
123
  import {
124
124
  NPX_LATEST_COMMAND
125
- } from "./chunk-USRBNJJX.js";
125
+ } from "./chunk-QU2NSBXD.js";
126
126
  import {
127
127
  AGENT_QUESTION_STRATEGY,
128
128
  AGENT_QUESTION_TOOL,
@@ -194,7 +194,7 @@ import {
194
194
  terminalStaysLiveForTheCall,
195
195
  timeoutActionWithoutLocalPrompt,
196
196
  unapprovedScopeReason
197
- } from "./chunk-LE2GNKVF.js";
197
+ } from "./chunk-4RPG3SFC.js";
198
198
 
199
199
  // src/terminal-answer-watch.ts
200
200
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-KSHM2X7A.js";
3
+ } from "./chunk-XKSIMUZM.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-LE2GNKVF.js";
16
+ } from "./chunk-4RPG3SFC.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-XKTBFWO2.js";
3
+ } from "./chunk-FIAXP3LF.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-QXPI7LOZ.js";
6
+ } from "./chunk-YSR7QVMN.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-YQNGHX3P.js";
9
+ } from "./chunk-7OOQJD33.js";
10
10
  import {
11
11
  MacAppUnreachableError,
12
12
  macAppReplyError,
13
13
  requestThroughMacApp
14
- } from "./chunk-KSHM2X7A.js";
14
+ } from "./chunk-XKSIMUZM.js";
15
15
  import {
16
16
  getBaseUrl
17
- } from "./chunk-D35MHKUM.js";
17
+ } from "./chunk-XOZZ7LFC.js";
18
18
  import {
19
19
  isRecord,
20
20
  isToolErrorResult,
21
21
  toolFailureCodeOfResult
22
- } from "./chunk-LE2GNKVF.js";
22
+ } from "./chunk-4RPG3SFC.js";
23
23
 
24
24
  // src/retry.ts
25
25
  var isRetryable = (err) => {
@@ -8,26 +8,26 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-3AKD2IMA.js";
11
+ } from "./chunk-UOABAWQ4.js";
12
12
  import {
13
13
  fetchAsCredential
14
- } from "./chunk-XKTBFWO2.js";
14
+ } from "./chunk-FIAXP3LF.js";
15
15
  import {
16
16
  installNetworkDefaults,
17
17
  isNetworkFailure
18
- } from "./chunk-YQNGHX3P.js";
18
+ } from "./chunk-7OOQJD33.js";
19
19
  import {
20
20
  keyPrefix
21
- } from "./chunk-DPTI6ZTZ.js";
21
+ } from "./chunk-DTYSJP6K.js";
22
22
  import {
23
23
  MacAppRefusedError,
24
24
  MacAppUnreachableError,
25
25
  clientReportClaims
26
- } from "./chunk-KSHM2X7A.js";
26
+ } from "./chunk-XKSIMUZM.js";
27
27
  import {
28
28
  getApiKey,
29
29
  getBaseUrl
30
- } from "./chunk-D35MHKUM.js";
30
+ } from "./chunk-XOZZ7LFC.js";
31
31
  import {
32
32
  getPackageVersion
33
33
  } from "./chunk-CXQWDQCJ.js";
@@ -57,7 +57,7 @@ import {
57
57
  responseRejectsCredential,
58
58
  truncateLine,
59
59
  waitEndAnswered
60
- } from "./chunk-LE2GNKVF.js";
60
+ } from "./chunk-4RPG3SFC.js";
61
61
 
62
62
  // src/api.ts
63
63
  import { randomUUID } from "crypto";
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  isApprovalMode,
3
- isRecord,
4
- isTimeoutAction
5
- } from "./chunk-LE2GNKVF.js";
3
+ isRecord
4
+ } from "./chunk-4RPG3SFC.js";
6
5
 
7
6
  // src/cli/settings-response.ts
8
7
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -12,16 +11,10 @@ var modeResponse = (value) => {
12
11
  if (!isRecord(value) || value.override !== null && !isModeOverride(value.override) || value.permanent !== void 0 && typeof value.permanent !== "boolean") throw new Error("Invalid mode response");
13
12
  return { override: value.override, ...typeof value.permanent === "boolean" ? { permanent: value.permanent } : {} };
14
13
  };
15
- var isWaitPolicy = (value) => isRecord(value) && typeof value.tool === "string" && isApprovalMode(value.mode) && isTimeoutAction(value.timeoutAction) && isWaitSeconds(value.timeoutSeconds) && isWaitSeconds(value.pushFirstSeconds);
16
14
  var waitWindowResponse = (value) => {
17
15
  if (!isRecord(value) || !isWaitSeconds(value.defaultPushFirstSeconds)) throw new Error("Invalid wait response");
18
16
  return value.defaultPushFirstSeconds;
19
17
  };
20
- var waitResponse = (value) => {
21
- const defaultPushFirstSeconds = waitWindowResponse(value);
22
- if (!isRecord(value) || !Array.isArray(value.policies) || !value.policies.every(isWaitPolicy) || value.modeOverride !== null && !isApprovalMode(value.modeOverride)) throw new Error("Invalid wait response");
23
- return { policies: value.policies, defaultPushFirstSeconds, modeOverride: value.modeOverride };
24
- };
25
18
  var isSuggestion = (value) => isRecord(value) && typeof value.id === "string" && typeof value.toolPattern === "string" && (value.kind === "auto_approve" || value.kind === "always_deny") && isFiniteNumber(value.evidenceApproved) && isFiniteNumber(value.evidenceDenied) && isFiniteNumber(value.windowDays);
26
19
  var suggestionsResponse = (value) => {
27
20
  if (!isRecord(value) || !Array.isArray(value.suggestions) || !value.suggestions.every(isSuggestion)) throw new Error("Invalid suggestions response");
@@ -31,6 +24,5 @@ var suggestionsResponse = (value) => {
31
24
  export {
32
25
  modeResponse,
33
26
  waitWindowResponse,
34
- waitResponse,
35
27
  suggestionsResponse
36
28
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-LE2GNKVF.js";
3
+ } from "./chunk-4RPG3SFC.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -0,0 +1,42 @@
1
+ import {
2
+ STOPPED_FROM_PUSHARY_LADDER,
3
+ UNREAD_MODE_LADDER
4
+ } from "./chunk-7PRPLYOT.js";
5
+ import {
6
+ createIo
7
+ } from "./chunk-N6RX3ZWB.js";
8
+ import {
9
+ CLAUDE_CODE_AGENT,
10
+ fetchModeState,
11
+ getPolicy
12
+ } from "./chunk-KMMO3K2C.js";
13
+
14
+ // src/cli/hook-wait-ladder.ts
15
+ var readClaudeCodeHookWaitState = async (apiKey) => {
16
+ const modeState = await fetchModeState(apiKey);
17
+ const config = await getPolicy(apiKey, modeState, CLAUDE_CODE_AGENT.type, true);
18
+ return { modeState, config };
19
+ };
20
+ var MODE_STATUS_COMMAND = "pushary mode status";
21
+ var printWaitLadderNotice = (notice) => {
22
+ const { dim, yellow, cyan } = createIo();
23
+ const warn = yellow("!");
24
+ switch (notice.kind) {
25
+ case "stopped":
26
+ console.log(` ${warn} ${STOPPED_FROM_PUSHARY_LADDER} ${dim(`(${MODE_STATUS_COMMAND})`)}`);
27
+ return;
28
+ case "mode_unread":
29
+ console.log(` ${warn} ${UNREAD_MODE_LADDER} ${dim(`(${MODE_STATUS_COMMAND})`)}`);
30
+ return;
31
+ case "override_applied":
32
+ console.log(` ${warn} mode override active: ${cyan(notice.mode)}, applied below ${dim(`(your own mode; one session can still differ \xB7 ${MODE_STATUS_COMMAND})`)}`);
33
+ return;
34
+ case "own_rules":
35
+ return;
36
+ }
37
+ };
38
+
39
+ export {
40
+ readClaudeCodeHookWaitState,
41
+ printWaitLadderNotice
42
+ };
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  quoteIfNeeded,
7
7
  shellDoubleQuoted
8
- } from "./chunk-KKPI7MVG.js";
8
+ } from "./chunk-HKXFHEB4.js";
9
9
  import {
10
10
  writeFileAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -25,7 +25,7 @@ import {
25
25
  PUSHARY_TOOL_PREFIX,
26
26
  isRecord,
27
27
  withHookHoldBudget
28
- } from "./chunk-LE2GNKVF.js";
28
+ } from "./chunk-4RPG3SFC.js";
29
29
 
30
30
  // src/setup/paths.ts
31
31
  import { createHash as createHash2 } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-USRBNJJX.js";
3
+ } from "./chunk-QU2NSBXD.js";
4
4
  import {
5
5
  isValidApiKey
6
- } from "./chunk-LE2GNKVF.js";
6
+ } from "./chunk-4RPG3SFC.js";
7
7
 
8
8
  // src/config.ts
9
9
  import { readFileSync } from "fs";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-XKTBFWO2.js";
7
+ } from "./chunk-FIAXP3LF.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-D35MHKUM.js";
10
+ } from "./chunk-XOZZ7LFC.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-LE2GNKVF.js";
18
+ } from "./chunk-4RPG3SFC.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-QXPI7LOZ.js";
3
+ } from "./chunk-YSR7QVMN.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-LE2GNKVF.js";
6
+ } from "./chunk-4RPG3SFC.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-YEQF4H76.js";
3
+ } from "./chunk-IX2DKVF2.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-KSHM2X7A.js";
10
+ } from "./chunk-XKSIMUZM.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-LE2GNKVF.js";
24
+ } from "./chunk-4RPG3SFC.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
  pusharyFetch
3
- } from "./chunk-YQNGHX3P.js";
3
+ } from "./chunk-7OOQJD33.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-D35MHKUM.js";
6
+ } from "./chunk-XOZZ7LFC.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-LE2GNKVF.js";
16
+ } from "./chunk-4RPG3SFC.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;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-7FUEG6WT.js";
3
+ } from "./chunk-6RAIYGKT.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-TCE3J44Z.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-KKPI7MVG.js";
15
+ } from "./chunk-HKXFHEB4.js";
16
16
  import {
17
17
  AGENTS,
18
18
  CLAUDE_BRIDGE_CAPABILITY,
@@ -25,7 +25,7 @@ import {
25
25
  OPENCODE_BRIDGE_CAPABILITY,
26
26
  SPAWN_CAPABILITY,
27
27
  sessionProvidersAdvertisedBy
28
- } from "./chunk-LE2GNKVF.js";
28
+ } from "./chunk-4RPG3SFC.js";
29
29
 
30
30
  // src/live-capabilities.ts
31
31
  import { execFileSync } from "child_process";