pushary 1.9.261 → 1.9.262

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 +9 -0
  2. package/README.md +6 -0
  3. package/dist/{api-LAG3VCHN.js → api-TGVE6ZKD.js} +11 -11
  4. package/dist/bin/pushary-audit.js +3 -3
  5. package/dist/bin/pushary-bell-hook.js +29 -29
  6. package/dist/bin/pushary-bell.js +12 -12
  7. package/dist/bin/pushary-calls.js +15 -15
  8. package/dist/bin/pushary-claude.js +26 -26
  9. package/dist/bin/pushary-clean.js +40 -40
  10. package/dist/bin/pushary-codex-bridge.js +23 -23
  11. package/dist/bin/pushary-codex-hook.js +35 -35
  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 +36 -36
  15. package/dist/bin/pushary-cowork.js +5 -5
  16. package/dist/bin/pushary-daemon.js +47 -47
  17. package/dist/bin/pushary-disconnect.js +31 -31
  18. package/dist/bin/pushary-display-hook.js +60 -2
  19. package/dist/bin/pushary-doctor.js +143 -48
  20. package/dist/bin/pushary-elicitation-hook.js +28 -28
  21. package/dist/bin/pushary-gemini-bridge.js +18 -18
  22. package/dist/bin/pushary-gemini-hook.js +32 -32
  23. package/dist/bin/pushary-hook.js +36 -36
  24. package/dist/bin/pushary-login.js +41 -23
  25. package/dist/bin/pushary-logout.js +32 -32
  26. package/dist/bin/pushary-mcp.js +12 -12
  27. package/dist/bin/pushary-mode.js +16 -16
  28. package/dist/bin/pushary-notification-hook.js +28 -28
  29. package/dist/bin/pushary-opencode-bridge.js +22 -22
  30. package/dist/bin/pushary-opencode-hook.js +33 -33
  31. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  32. package/dist/bin/pushary-permission-hook.js +36 -36
  33. package/dist/bin/pushary-post-hook.js +29 -29
  34. package/dist/bin/pushary-prompt-hook.js +28 -28
  35. package/dist/bin/pushary-session-end-hook.js +28 -28
  36. package/dist/bin/pushary-session-start-hook.js +40 -40
  37. package/dist/bin/pushary-sessions.js +12 -12
  38. package/dist/bin/pushary-setup.js +174 -82
  39. package/dist/bin/pushary-stats.js +5 -5
  40. package/dist/bin/pushary-status.js +37 -37
  41. package/dist/bin/pushary-stop-hook.js +28 -28
  42. package/dist/bin/pushary-stopfailure-hook.js +28 -28
  43. package/dist/bin/pushary-suggestions.js +16 -16
  44. package/dist/bin/pushary-transcript-register.js +17 -17
  45. package/dist/bin/pushary-transcripts.js +26 -26
  46. package/dist/bin/pushary-upgrade.js +48 -48
  47. package/dist/bin/pushary-wait.js +16 -16
  48. package/dist/bin/pushary.js +7 -7
  49. package/dist/{chunk-NKSOSZZU.js → chunk-23ELMB2F.js} +2 -2
  50. package/dist/{chunk-YHA5L6D3.js → chunk-2DYJTOOU.js} +3 -3
  51. package/dist/{chunk-QQ4U4NST.js → chunk-2Q3ZTT57.js} +7 -7
  52. package/dist/{chunk-NLG5BY2M.js → chunk-43DXK6WE.js} +1 -1
  53. package/dist/{chunk-T6ZGTBHT.js → chunk-5K5MT22J.js} +4 -4
  54. package/dist/{chunk-53LLER7E.js → chunk-5SVZXCAJ.js} +1 -1
  55. package/dist/{chunk-TUBI75B7.js → chunk-67UJTXRZ.js} +1 -1
  56. package/dist/{chunk-L6IKTYMZ.js → chunk-73ROMTIN.js} +6 -6
  57. package/dist/{chunk-3DW5OCS2.js → chunk-APTFA4KF.js} +1 -1
  58. package/dist/{chunk-ZGPUVZZ6.js → chunk-AURPPDRZ.js} +2 -2
  59. package/dist/{chunk-NTTHRLDQ.js → chunk-BTSJ2W7I.js} +1 -1
  60. package/dist/{chunk-GIK5P25V.js → chunk-BZ2V2ES3.js} +5 -5
  61. package/dist/{chunk-3PAM7BQJ.js → chunk-C4D6R27P.js} +5 -5
  62. package/dist/{chunk-YBVDF4NV.js → chunk-CAOMKUSR.js} +4 -4
  63. package/dist/{chunk-TW6BQOPH.js → chunk-CC6BYFNM.js} +6 -6
  64. package/dist/{chunk-VVDJCJ3P.js → chunk-CTTIW2A3.js} +2 -2
  65. package/dist/{chunk-KUVXFNHY.js → chunk-CXGRUUUM.js} +10 -10
  66. package/dist/{chunk-BBE7UITT.js → chunk-D2666AVW.js} +6 -6
  67. package/dist/{chunk-H6FDFP6W.js → chunk-DIHUVYT2.js} +81 -29
  68. package/dist/{chunk-ZVIF4O6V.js → chunk-DOMSM62I.js} +2 -2
  69. package/dist/{chunk-SFZWZHZB.js → chunk-DS3C4SRR.js} +2 -2
  70. package/dist/{chunk-ZSJDCRBA.js → chunk-DU2YTOTA.js} +1 -1
  71. package/dist/{chunk-X7BHVGGH.js → chunk-DU5MLJQL.js} +1 -1
  72. package/dist/{chunk-WUZM74HI.js → chunk-EHH4PQG7.js} +4 -4
  73. package/dist/{chunk-6LJVKWV7.js → chunk-EPT6MZBG.js} +5 -5
  74. package/dist/{chunk-I2DSQVSB.js → chunk-EVJ5DPRU.js} +1 -1
  75. package/dist/{chunk-GAKYGHUR.js → chunk-F6LNIS2Y.js} +1 -1
  76. package/dist/{chunk-HAOO2MNV.js → chunk-FKYZEIH7.js} +10 -10
  77. package/dist/{chunk-6RD6RNJY.js → chunk-FNDKQEJP.js} +4 -4
  78. package/dist/{chunk-IXXH6ZDQ.js → chunk-FURJQUDT.js} +2 -2
  79. package/dist/{chunk-LIZZSMUD.js → chunk-H4DPB3LK.js} +8 -8
  80. package/dist/{chunk-EYQZC5IV.js → chunk-H4XEEC4I.js} +2 -2
  81. package/dist/{chunk-RSV25NAF.js → chunk-HB3S3KDX.js} +1 -1
  82. package/dist/{chunk-WCSSU6QW.js → chunk-HMN4XEJE.js} +4 -4
  83. package/dist/{chunk-LH7NQSUC.js → chunk-HSVVH7K2.js} +1 -1
  84. package/dist/{chunk-N2IP7IDG.js → chunk-HVY3YUJU.js} +1 -1
  85. package/dist/{chunk-DN7PXEXE.js → chunk-HZ76NLD2.js} +6 -6
  86. package/dist/{chunk-FUXTIM33.js → chunk-I4D4XEIJ.js} +5 -5
  87. package/dist/{chunk-4SKEGBFV.js → chunk-IHH3HGQQ.js} +3 -3
  88. package/dist/{chunk-YHHQICQD.js → chunk-IK4MIPI2.js} +3 -3
  89. package/dist/{chunk-SSW4SERP.js → chunk-IMSFJFN6.js} +1 -1
  90. package/dist/{chunk-LRF4XS6M.js → chunk-IS5WMKN2.js} +3 -3
  91. package/dist/{chunk-ZNDLGXKO.js → chunk-J7V5ZFZC.js} +6 -6
  92. package/dist/{chunk-TDYAVCJ3.js → chunk-JG4JGAI2.js} +4 -4
  93. package/dist/{chunk-GQHIUZRG.js → chunk-JOQAW5BM.js} +12 -12
  94. package/dist/{chunk-5G55TWT5.js → chunk-JUCN4TV4.js} +5 -5
  95. package/dist/{chunk-GC75Q5P2.js → chunk-JVZCCUN4.js} +5 -5
  96. package/dist/{chunk-BLSGQHGW.js → chunk-K5ZEJCJO.js} +3 -3
  97. package/dist/{chunk-PX2MOPB2.js → chunk-KEC73KH6.js} +1 -1
  98. package/dist/{chunk-JC2E7D2W.js → chunk-LE6VFEJU.js} +1 -1
  99. package/dist/{chunk-FJMZDIKP.js → chunk-LZRXFGEP.js} +49 -3
  100. package/dist/{chunk-GETSAD5F.js → chunk-MJW6P7A6.js} +2 -2
  101. package/dist/{chunk-KMADAVW6.js → chunk-NHLCREFU.js} +1 -1
  102. package/dist/{chunk-IC6ARAAT.js → chunk-NLW2YDL5.js} +5 -5
  103. package/dist/{chunk-QAS67ZJH.js → chunk-OAE54AV7.js} +1 -1
  104. package/dist/{chunk-65MRCZGE.js → chunk-Q54QQO5E.js} +5 -5
  105. package/dist/{chunk-4ARB3SYI.js → chunk-QGYVOSDC.js} +1 -1
  106. package/dist/{chunk-CHKSE6TO.js → chunk-QIOPWRBQ.js} +1 -1
  107. package/dist/{chunk-5AL5W2HQ.js → chunk-QWSXLYTX.js} +3 -3
  108. package/dist/{chunk-TMJRKWWK.js → chunk-R33I7ZNR.js} +5 -5
  109. package/dist/{chunk-WFE4RAWD.js → chunk-RA4RSVVJ.js} +1 -1
  110. package/dist/{chunk-TX3IJUL7.js → chunk-RX75OG6S.js} +6 -6
  111. package/dist/{chunk-NBEFOUMK.js → chunk-SCXUTDQM.js} +3 -3
  112. package/dist/{chunk-Q3JHO3EJ.js → chunk-SG4IFPJP.js} +1 -1
  113. package/dist/{chunk-GAO33I7L.js → chunk-SLD22IUB.js} +4 -4
  114. package/dist/{chunk-QWIWACGD.js → chunk-SOJPAKCB.js} +1 -1
  115. package/dist/{chunk-JOABO2PX.js → chunk-T4EVAVKF.js} +5 -5
  116. package/dist/{chunk-SO5DEUCS.js → chunk-V6MQUYE2.js} +7 -7
  117. package/dist/{chunk-NVYEQLD5.js → chunk-VDPUBIL2.js} +2 -2
  118. package/dist/{chunk-VWJ5KDMM.js → chunk-VL4AJPCE.js} +4 -4
  119. package/dist/{chunk-B4MK2ZX2.js → chunk-VSW5ZMPX.js} +3 -3
  120. package/dist/{chunk-MGGN37IW.js → chunk-VZVKJP3Q.js} +72 -1
  121. package/dist/{chunk-YINXG75Q.js → chunk-W7QW3XFQ.js} +4 -4
  122. package/dist/{chunk-5UHGILNO.js → chunk-WCOI5PQU.js} +1 -1
  123. package/dist/{chunk-H4O3CV5W.js → chunk-WFUVBCKK.js} +4 -4
  124. package/dist/{chunk-2VTIVLLK.js → chunk-WOEMRT24.js} +3 -3
  125. package/dist/{chunk-RXGEWDA2.js → chunk-WTFR2OK4.js} +16 -16
  126. package/dist/{chunk-AKGNLKZP.js → chunk-WV7OME3F.js} +2 -2
  127. package/dist/{chunk-QRPHWWHI.js → chunk-WYYHSHBO.js} +2 -2
  128. package/dist/{chunk-HJOXLNYN.js → chunk-YEIHJAE6.js} +3 -3
  129. package/dist/{chunk-ATHP6SIZ.js → chunk-YQTU6V4X.js} +2 -2
  130. package/dist/{chunk-K4PJXC32.js → chunk-ZPM6H6GM.js} +1 -1
  131. package/dist/{codex-app-cards-switch-325EWQUA.js → codex-app-cards-switch-CQZL4XI6.js} +12 -12
  132. package/dist/{codex-card-routing-NXI4P7PB.js → codex-card-routing-VV2HQAGX.js} +2 -2
  133. package/dist/{codex-desktop-launch-3OAHHDWE.js → codex-desktop-launch-FYXOQGBR.js} +3 -3
  134. package/dist/{codex-session-launch-YB4LGTG2.js → codex-session-launch-A4LDZ4GU.js} +20 -20
  135. package/dist/{config-4FJ7KK75.js → config-EHAN6BUF.js} +3 -3
  136. package/dist/{global-upgrade-E4UKP2KG.js → global-upgrade-EJZ2EX7R.js} +9 -9
  137. package/dist/{identity-VQNJSXZO.js → identity-L7SFKUOG.js} +4 -4
  138. package/dist/{live-capabilities-YJW4CU7J.js → live-capabilities-QAVKVTKD.js} +4 -4
  139. package/dist/{paths-FOJGTYX4.js → paths-BD7XIUNJ.js} +3 -3
  140. package/dist/reapply-QFSUMRID.js +76 -0
  141. package/dist/src/index.d.ts +1 -0
  142. package/dist/src/index.js +34 -34
  143. package/dist/{upgrade-lock-MGX4PJQZ.js → upgrade-lock-Y35PJNJT.js} +4 -4
  144. package/dist/{usage-24DU5SWS.js → usage-E5Z3XUTZ.js} +3 -3
  145. package/package.json +1 -1
  146. package/dist/reapply-Q2MIQ4A7.js +0 -76
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-ZGPUVZZ6.js";
3
+ } from "./chunk-AURPPDRZ.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";
@@ -29,7 +29,7 @@ import {
29
29
  reportableSessionId,
30
30
  toToolLookup,
31
31
  truncateLine
32
- } from "./chunk-MGGN37IW.js";
32
+ } from "./chunk-VZVKJP3Q.js";
33
33
 
34
34
  // ../hook-mapping/src/commit-receipt.ts
35
35
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  parseConfigDocument
3
- } from "./chunk-WFE4RAWD.js";
3
+ } from "./chunk-RA4RSVVJ.js";
4
4
  import {
5
5
  addGeminiMcpServer,
6
6
  removeGeminiMcpServer
7
- } from "./chunk-T6ZGTBHT.js";
7
+ } from "./chunk-5K5MT22J.js";
8
8
  import {
9
9
  CLAUDE_CODE_AGENT
10
- } from "./chunk-H6FDFP6W.js";
10
+ } from "./chunk-DIHUVYT2.js";
11
11
  import {
12
12
  compatibleToolLookup
13
- } from "./chunk-N2IP7IDG.js";
13
+ } from "./chunk-HVY3YUJU.js";
14
14
  import {
15
15
  CLAUDE_HOOK_EVENTS,
16
16
  PUSHARY_MCP_URL,
@@ -22,7 +22,7 @@ import {
22
22
  isPusharyHook,
23
23
  registerHookEntry,
24
24
  removeClaudeMcpServers
25
- } from "./chunk-ZGPUVZZ6.js";
25
+ } from "./chunk-AURPPDRZ.js";
26
26
  import {
27
27
  AGENT_ENFORCEMENT,
28
28
  HOOK_COMPATIBLE_PROFILES,
@@ -36,7 +36,7 @@ import {
36
36
  pusharyMissingReason,
37
37
  refusalOutput,
38
38
  withHookHoldBudget
39
- } from "./chunk-MGGN37IW.js";
39
+ } from "./chunk-VZVKJP3Q.js";
40
40
 
41
41
  // src/compatible-config.ts
42
42
  import { homedir } from "os";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-4SKEGBFV.js";
7
+ } from "./chunk-IHH3HGQQ.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-YINXG75Q.js";
10
+ } from "./chunk-W7QW3XFQ.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-BLSGQHGW.js";
13
+ } from "./chunk-K5ZEJCJO.js";
14
14
  import {
15
15
  CLINE_SERVER_NAME_TAKEN,
16
16
  CLINE_SETTINGS_REFUSALS,
@@ -32,10 +32,10 @@ import {
32
32
  withClinePusharyServer,
33
33
  withRefreshedClineKey,
34
34
  withoutClinePusharyServer
35
- } from "./chunk-ZGPUVZZ6.js";
35
+ } from "./chunk-AURPPDRZ.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-GAO33I7L.js";
38
+ } from "./chunk-SLD22IUB.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -4,16 +4,16 @@ import {
4
4
  NpmMissingError,
5
5
  NpmPermissionError,
6
6
  NpmReleaseAgeError
7
- } from "./chunk-GAO33I7L.js";
7
+ } from "./chunk-SLD22IUB.js";
8
8
  import {
9
9
  writeFileAtomic
10
10
  } from "./chunk-PM2NRK6Y.js";
11
11
  import {
12
12
  NPX_LATEST_COMMAND
13
- } from "./chunk-3DW5OCS2.js";
13
+ } from "./chunk-APTFA4KF.js";
14
14
  import {
15
15
  readSetupAgentFailures
16
- } from "./chunk-MGGN37IW.js";
16
+ } from "./chunk-VZVKJP3Q.js";
17
17
 
18
18
  // src/setup/config-write.ts
19
19
  var AgentConfigWriteError = class extends Error {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-LH7NQSUC.js";
3
+ } from "./chunk-HSVVH7K2.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-AKGNLKZP.js";
6
+ } from "./chunk-WV7OME3F.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-MGGN37IW.js";
16
+ } from "./chunk-VZVKJP3Q.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-CHKSE6TO.js";
9
+ } from "./chunk-QIOPWRBQ.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -5,13 +5,13 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-ZGPUVZZ6.js";
8
+ } from "./chunk-AURPPDRZ.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-GAO33I7L.js";
11
+ } from "./chunk-SLD22IUB.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-MGGN37IW.js";
14
+ } from "./chunk-VZVKJP3Q.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";
@@ -4,20 +4,20 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-LH7NQSUC.js";
7
+ } from "./chunk-HSVVH7K2.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-BLSGQHGW.js";
10
+ } from "./chunk-K5ZEJCJO.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-ZGPUVZZ6.js";
13
+ } from "./chunk-AURPPDRZ.js";
14
14
  import {
15
15
  resolveGlobalBinary,
16
16
  withoutNpmInstallConsent
17
- } from "./chunk-GAO33I7L.js";
17
+ } from "./chunk-SLD22IUB.js";
18
18
  import {
19
19
  getApiKey
20
- } from "./chunk-AKGNLKZP.js";
20
+ } from "./chunk-WV7OME3F.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-MGGN37IW.js";
36
+ } from "./chunk-VZVKJP3Q.js";
37
37
 
38
38
  // src/daemon-entry-guard.ts
39
39
  import { mkdirSync, readFileSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS,
3
3
  HERMES_HISTORY_HELPER_COMMAND
4
- } from "./chunk-YHA5L6D3.js";
4
+ } from "./chunk-2DYJTOOU.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-YBVDF4NV.js";
10
+ } from "./chunk-CAOMKUSR.js";
11
11
  import {
12
12
  retryAgentCommand
13
- } from "./chunk-4SKEGBFV.js";
13
+ } from "./chunk-IHH3HGQQ.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-3DW5OCS2.js";
16
+ } from "./chunk-APTFA4KF.js";
17
17
 
18
18
  // src/setup/codex-trust.ts
19
19
  var CODEX_TRUST_TELEMETRY = {
@@ -5,7 +5,7 @@ import {
5
5
  ensureCodexTrustsPusharyHooks,
6
6
  hermesHistoryNeedsTheCliHelper,
7
7
  recordInstalledHermesHistoryHelper
8
- } from "./chunk-YHA5L6D3.js";
8
+ } from "./chunk-2DYJTOOU.js";
9
9
  import {
10
10
  hermesReceiptPaths,
11
11
  hermesSetupPredatesThePluginFolder,
@@ -14,7 +14,7 @@ import {
14
14
  refreshHermesPluginFiles,
15
15
  refreshOpenClawPlugin,
16
16
  shippedHermesPlugin
17
- } from "./chunk-YBVDF4NV.js";
17
+ } from "./chunk-CAOMKUSR.js";
18
18
  import {
19
19
  fxIgnoresInstructionsFile,
20
20
  fxInstructionsBody,
@@ -23,7 +23,7 @@ import {
23
23
  macAppFxBridge,
24
24
  refreshClineKey,
25
25
  switchFxHttpEntryToBridge
26
- } from "./chunk-FUXTIM33.js";
26
+ } from "./chunk-I4D4XEIJ.js";
27
27
  import {
28
28
  OPENCODE_HOOK_BINARY,
29
29
  agentHookOwner,
@@ -36,16 +36,16 @@ import {
36
36
  openCodePluginDir,
37
37
  openCodeWired,
38
38
  withOpenCodeAskRules
39
- } from "./chunk-SO5DEUCS.js";
39
+ } from "./chunk-V6MQUYE2.js";
40
40
  import {
41
41
  detectClaudeVersion
42
- } from "./chunk-K4PJXC32.js";
42
+ } from "./chunk-ZPM6H6GM.js";
43
43
  import {
44
44
  addCompatibleHooks,
45
45
  compatibleConfigFile,
46
46
  compatibleInstructionsFile,
47
47
  hasCompatibleHooks
48
- } from "./chunk-DN7PXEXE.js";
48
+ } from "./chunk-HZ76NLD2.js";
49
49
  import {
50
50
  GEMINI_HOOK_BINARY,
51
51
  addGeminiHooks,
@@ -57,13 +57,13 @@ import {
57
57
  geminiWired,
58
58
  hasGeminiHooks,
59
59
  planHooks
60
- } from "./chunk-T6ZGTBHT.js";
60
+ } from "./chunk-5K5MT22J.js";
61
61
  import {
62
62
  transcriptsEnabled
63
- } from "./chunk-ZSJDCRBA.js";
63
+ } from "./chunk-DU2YTOTA.js";
64
64
  import {
65
65
  KEY_FILE_MODE
66
- } from "./chunk-BLSGQHGW.js";
66
+ } from "./chunk-K5ZEJCJO.js";
67
67
  import {
68
68
  CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
69
69
  CLAUDE_HOOK_BINARY,
@@ -110,7 +110,7 @@ import {
110
110
  renderAgentInstructions,
111
111
  supportedClaudeEvents,
112
112
  vscodePluginMcp
113
- } from "./chunk-ZGPUVZZ6.js";
113
+ } from "./chunk-AURPPDRZ.js";
114
114
  import {
115
115
  formatVersion
116
116
  } from "./chunk-6ICPEJY5.js";
@@ -118,7 +118,7 @@ import {
118
118
  hookCommandsUseBareNames,
119
119
  resolveGlobalBinDir,
120
120
  resolveGlobalBinary
121
- } from "./chunk-GAO33I7L.js";
121
+ } from "./chunk-SLD22IUB.js";
122
122
  import {
123
123
  readJsonSafe,
124
124
  writeFileAtomic,
@@ -128,7 +128,7 @@ import {
128
128
  HOOK_COMPATIBLE_PROFILES,
129
129
  isCompatibleAgentType,
130
130
  isRecord
131
- } from "./chunk-MGGN37IW.js";
131
+ } from "./chunk-VZVKJP3Q.js";
132
132
 
133
133
  // src/reapply.ts
134
134
  import { dirname, join } from "path";
@@ -3,24 +3,24 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-B4MK2ZX2.js";
6
+ } from "./chunk-VSW5ZMPX.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-ZNDLGXKO.js";
13
+ } from "./chunk-J7V5ZFZC.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-LH7NQSUC.js";
16
+ } from "./chunk-HSVVH7K2.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeyInForce
20
- } from "./chunk-BLSGQHGW.js";
20
+ } from "./chunk-K5ZEJCJO.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-AKGNLKZP.js";
23
+ } from "./chunk-WV7OME3F.js";
24
24
  import {
25
25
  getPackageVersion
26
26
  } from "./chunk-CXQWDQCJ.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  UNSET_IGNORED_SHELL_VALUE_STEP
3
- } from "./chunk-6RD6RNJY.js";
3
+ } from "./chunk-FNDKQEJP.js";
4
4
  import {
5
5
  notificationAnswerStep
6
- } from "./chunk-BBE7UITT.js";
6
+ } from "./chunk-D2666AVW.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-4SKEGBFV.js";
10
+ } from "./chunk-IHH3HGQQ.js";
11
11
  import {
12
12
  NPX_LATEST_COMMAND,
13
13
  npmExecSetupCommandFor
14
- } from "./chunk-3DW5OCS2.js";
14
+ } from "./chunk-APTFA4KF.js";
15
15
  import {
16
16
  EXIT
17
17
  } from "./chunk-BG4HHB7E.js";
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  compatibleProfileFor,
23
23
  isCompatibleAgentType
24
- } from "./chunk-MGGN37IW.js";
24
+ } from "./chunk-VZVKJP3Q.js";
25
25
 
26
26
  // src/setup/closing.ts
27
27
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-VVDJCJ3P.js";
3
+ } from "./chunk-CTTIW2A3.js";
4
4
  import {
5
5
  apiKeyInForce,
6
6
  configFilePath,
7
7
  keyPrefixToShow
8
- } from "./chunk-AKGNLKZP.js";
8
+ } from "./chunk-WV7OME3F.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-MGGN37IW.js";
20
+ } from "./chunk-VZVKJP3Q.js";
21
21
 
22
22
  // src/shell-alias.ts
23
23
  import { homedir } from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-MGGN37IW.js";
3
+ } from "./chunk-VZVKJP3Q.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-MGGN37IW.js";
8
+ } from "./chunk-VZVKJP3Q.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-AKGNLKZP.js";
12
+ } from "./chunk-WV7OME3F.js";
13
13
  import {
14
14
  CLI_LOCAL_BIND_PATH,
15
15
  LOCAL_CONFIRM_HOST,
@@ -20,7 +20,7 @@ import {
20
20
  isLocalConfirmToken,
21
21
  isPhonePass,
22
22
  localTerminalEntryUrl
23
- } from "./chunk-MGGN37IW.js";
23
+ } from "./chunk-VZVKJP3Q.js";
24
24
 
25
25
  // src/cli/login-ui.ts
26
26
  import { hostname } from "os";
@@ -366,6 +366,51 @@ var runBrowserLogin = async (ui, options, deps = {}) => {
366
366
  }
367
367
  };
368
368
 
369
+ // src/setup/run-exit-guard.ts
370
+ var RUN_EXIT_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP"];
371
+ var RUN_EXIT_SIGNAL_CODES = { SIGINT: 130, SIGTERM: 143, SIGHUP: 129 };
372
+ var RUN_CRASH_EVENTS = ["uncaughtException", "unhandledRejection"];
373
+ var settledWithin = async (work, ceilingMs) => {
374
+ let timer;
375
+ const ceiling = new Promise((resolve) => {
376
+ timer = setTimeout(resolve, ceilingMs);
377
+ });
378
+ try {
379
+ await Promise.race([work.catch(() => void 0), ceiling]);
380
+ } finally {
381
+ clearTimeout(timer);
382
+ }
383
+ };
384
+ var anotherHandlerOwns = (target, signal) => target.listenerCount(signal) > 1;
385
+ var installRunExitGuard = (target, options) => {
386
+ let stopping = false;
387
+ const finish = (stop) => {
388
+ stopping = true;
389
+ void settledWithin(Promise.resolve().then(() => options.stop(stop)), options.ceilingMs).finally(() => options.exit(stop.exitCode));
390
+ };
391
+ const signalListeners = RUN_EXIT_SIGNALS.map((signal) => {
392
+ const exitCode = RUN_EXIT_SIGNAL_CODES[signal];
393
+ const listener = () => {
394
+ if (stopping) {
395
+ options.exit(exitCode);
396
+ return;
397
+ }
398
+ if (anotherHandlerOwns(target, signal)) return;
399
+ finish({ kind: "signal", signal, exitCode });
400
+ };
401
+ return { event: signal, listener };
402
+ });
403
+ const onCrash = (error) => {
404
+ if (stopping) return;
405
+ finish({ kind: "crash", error, exitCode: options.crashExitCode });
406
+ };
407
+ const listeners = [...signalListeners, ...RUN_CRASH_EVENTS.map((event) => ({ event, listener: onCrash }))];
408
+ for (const { event, listener } of listeners) target.on(event, listener);
409
+ return () => {
410
+ for (const { event, listener } of listeners) target.off(event, listener);
411
+ };
412
+ };
413
+
369
414
  export {
370
415
  newLocalConfirmState,
371
416
  localConfirmStateHash,
@@ -376,5 +421,6 @@ export {
376
421
  printLoginNotice,
377
422
  browserEntryUrl,
378
423
  listenForThisTerminal,
379
- runBrowserLogin
424
+ runBrowserLogin,
425
+ installRunExitGuard
380
426
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore
3
- } from "./chunk-H6FDFP6W.js";
3
+ } from "./chunk-DIHUVYT2.js";
4
4
  import {
5
5
  claudePromptMayFollowPreToolUseAllow,
6
6
  promptedCallIdentityText
7
- } from "./chunk-N2IP7IDG.js";
7
+ } from "./chunk-HVY3YUJU.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash as createHash2 } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-MGGN37IW.js";
12
+ } from "./chunk-VZVKJP3Q.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-H6FDFP6W.js";
3
+ } from "./chunk-DIHUVYT2.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-N2IP7IDG.js";
6
+ } from "./chunk-HVY3YUJU.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-TX3IJUL7.js";
14
+ } from "./chunk-RX75OG6S.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-LH7NQSUC.js";
17
+ } from "./chunk-HSVVH7K2.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-MGGN37IW.js";
27
+ } from "./chunk-VZVKJP3Q.js";
28
28
 
29
29
  // src/pushed-question.ts
30
30
  var scopeQuestionOf = (verdict) => {
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-MGGN37IW.js";
5
+ } from "./chunk-VZVKJP3Q.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-VWJ5KDMM.js";
8
+ } from "./chunk-VL4AJPCE.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-ZVIF4O6V.js";
11
+ } from "./chunk-DOMSM62I.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-HJOXLNYN.js";
14
+ } from "./chunk-YEIHJAE6.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-BLSGQHGW.js";
24
+ } from "./chunk-K5ZEJCJO.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-MGGN37IW.js";
27
+ } from "./chunk-VZVKJP3Q.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-BG4HHB7E.js";
8
8
  import {
9
9
  redactSecretsFromContent
10
- } from "./chunk-MGGN37IW.js";
10
+ } from "./chunk-VZVKJP3Q.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
  HOOK_BUDGETS
3
- } from "./chunk-MGGN37IW.js";
3
+ } from "./chunk-VZVKJP3Q.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-T6ZGTBHT.js";
3
+ } from "./chunk-5K5MT22J.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-ZGPUVZZ6.js";
10
+ } from "./chunk-AURPPDRZ.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-MGGN37IW.js";
24
+ } from "./chunk-VZVKJP3Q.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-5AL5W2HQ.js";
4
+ } from "./chunk-QWSXLYTX.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-KUVXFNHY.js";
7
+ } from "./chunk-CXGRUUUM.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-DN7PXEXE.js";
10
+ } from "./chunk-HZ76NLD2.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-TX3IJUL7.js";
13
+ } from "./chunk-RX75OG6S.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-MGGN37IW.js";
19
+ } from "./chunk-VZVKJP3Q.js";
20
20
 
21
21
  // src/tool-hook-input.ts
22
22
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isRecord
3
- } from "./chunk-MGGN37IW.js";
3
+ } from "./chunk-VZVKJP3Q.js";
4
4
 
5
5
  // src/config-document.ts
6
6
  import { parse, stringify } from "smol-toml";