@pushary/agent-hooks 1.9.162 → 1.9.163

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 (138) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{api-7NPCSUGY.js → api-3W4XWXCZ.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 +11 -11
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +27 -27
  8. package/dist/bin/pushary-clean.js +38 -38
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +36 -36
  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 +34 -34
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +45 -45
  16. package/dist/bin/pushary-disconnect.js +29 -29
  17. package/dist/bin/pushary-doctor.js +46 -46
  18. package/dist/bin/pushary-elicitation-hook.js +28 -28
  19. package/dist/bin/pushary-gemini-bridge.js +17 -17
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +36 -36
  22. package/dist/bin/pushary-login.js +22 -22
  23. package/dist/bin/pushary-logout.js +29 -29
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +16 -16
  26. package/dist/bin/pushary-notification-hook.js +27 -27
  27. package/dist/bin/pushary-opencode-hook.js +124 -75
  28. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  29. package/dist/bin/pushary-permission-hook.js +36 -36
  30. package/dist/bin/pushary-post-hook.js +28 -28
  31. package/dist/bin/pushary-prompt-hook.js +27 -27
  32. package/dist/bin/pushary-session-end-hook.js +27 -27
  33. package/dist/bin/pushary-session-start-hook.js +38 -38
  34. package/dist/bin/pushary-setup.js +54 -54
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +35 -35
  37. package/dist/bin/pushary-stop-hook.js +27 -27
  38. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  39. package/dist/bin/pushary-suggestions.js +16 -16
  40. package/dist/bin/pushary-transcript-register.js +17 -17
  41. package/dist/bin/pushary-transcripts.js +25 -25
  42. package/dist/bin/pushary-upgrade.js +43 -43
  43. package/dist/bin/pushary-wait.js +16 -16
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-72SYV43F.js → chunk-2P3E6CXY.js} +1 -1
  46. package/dist/{chunk-SRSXZINE.js → chunk-3HDZQKAK.js} +1 -1
  47. package/dist/{chunk-I35XT5YY.js → chunk-3HUPWSLJ.js} +4 -4
  48. package/dist/{chunk-AQKMKVAD.js → chunk-3J6NPY5E.js} +8 -8
  49. package/dist/{chunk-WIFMTEQI.js → chunk-3SGXZHV5.js} +1 -1
  50. package/dist/{chunk-YPG3RXWO.js → chunk-3TN7WHEF.js} +3 -3
  51. package/dist/{chunk-L6NG6EZS.js → chunk-3WW4TQT2.js} +1 -1
  52. package/dist/{chunk-ZC42UG7B.js → chunk-3ZJLASF2.js} +5 -5
  53. package/dist/{chunk-V3TWYF32.js → chunk-4ZV734EY.js} +1 -1
  54. package/dist/{chunk-A5DXHJVS.js → chunk-5HSPZGN6.js} +5 -5
  55. package/dist/{chunk-SVVZFXDX.js → chunk-5TQERWVE.js} +6 -6
  56. package/dist/{chunk-BMOGTNLK.js → chunk-5ZL7QBVM.js} +6 -6
  57. package/dist/{chunk-YH6EHCKQ.js → chunk-6XKJVF2A.js} +6 -6
  58. package/dist/{chunk-NX3Y36VY.js → chunk-7DHVYOOP.js} +6 -6
  59. package/dist/{chunk-L3LFCZ5D.js → chunk-7FMXDLNO.js} +3 -3
  60. package/dist/{chunk-6QQUGYH6.js → chunk-7RGPAEEL.js} +5 -5
  61. package/dist/{chunk-Z23SHFIC.js → chunk-7U3GZ5ZV.js} +2 -2
  62. package/dist/{chunk-JCTS7COD.js → chunk-7WBIMPZQ.js} +5 -5
  63. package/dist/{chunk-M2ZGNZRS.js → chunk-AYQNGBZC.js} +5 -0
  64. package/dist/{chunk-EPQTCF6A.js → chunk-AZ7X2FBB.js} +2 -2
  65. package/dist/{chunk-YUF3AYAP.js → chunk-B6SP4ZLB.js} +4 -4
  66. package/dist/{chunk-PIIKLAFY.js → chunk-BS5YSLXS.js} +3 -3
  67. package/dist/{chunk-J6KDUXJF.js → chunk-COFH3FQT.js} +1 -1
  68. package/dist/{chunk-L6BMVCQQ.js → chunk-DJOAYJYR.js} +3 -3
  69. package/dist/{chunk-G6M6YJK4.js → chunk-EXVUFDLL.js} +1 -1
  70. package/dist/{chunk-WCWWO5QL.js → chunk-F2EPFT5W.js} +1 -1
  71. package/dist/{chunk-UBY7NJCU.js → chunk-FIQFGSXB.js} +18 -18
  72. package/dist/{chunk-ZT55PJSW.js → chunk-FRT6CTUK.js} +3 -3
  73. package/dist/{chunk-HAOYL5JP.js → chunk-FXV6MD35.js} +4 -4
  74. package/dist/{chunk-I5HCOOAA.js → chunk-G3YVXFRI.js} +5 -5
  75. package/dist/{chunk-VUGF2OC7.js → chunk-GVPOVNRT.js} +3 -3
  76. package/dist/{chunk-OH2WAG47.js → chunk-GY3BDYVF.js} +1 -1
  77. package/dist/{chunk-644AKJMN.js → chunk-IHZ7MUYB.js} +2 -2
  78. package/dist/{chunk-5TU26542.js → chunk-ILPCJRLG.js} +3 -3
  79. package/dist/{chunk-2H7SDIM7.js → chunk-IZFVQLKO.js} +1 -1
  80. package/dist/{chunk-CWH4LBUW.js → chunk-JDY2FFC3.js} +1 -1
  81. package/dist/{chunk-LGR7WXI5.js → chunk-JQ2KBN4B.js} +2 -2
  82. package/dist/{chunk-SQ4RPZ6O.js → chunk-K2QDEWH3.js} +4 -4
  83. package/dist/{chunk-4IBUBMMP.js → chunk-KG5UNSTJ.js} +1 -1
  84. package/dist/{chunk-LVRFOGQY.js → chunk-KJY4KNSE.js} +11 -11
  85. package/dist/{chunk-53IBMDX2.js → chunk-KU55VZ2I.js} +4 -4
  86. package/dist/{chunk-L44II2WD.js → chunk-KU7DUO5E.js} +5 -5
  87. package/dist/{chunk-WWSR5LMP.js → chunk-LEWUIP5P.js} +1 -1
  88. package/dist/{chunk-RUAGEPUJ.js → chunk-LKF2C5SP.js} +5 -5
  89. package/dist/{chunk-44DRCGP2.js → chunk-LNZQBK3Z.js} +2 -2
  90. package/dist/{chunk-EFKJCBWA.js → chunk-LS6MIVVS.js} +6 -6
  91. package/dist/{chunk-VGLIGBAJ.js → chunk-LYPTFNMM.js} +2 -2
  92. package/dist/{chunk-H7OY4AAT.js → chunk-MBAWDULS.js} +4 -4
  93. package/dist/{chunk-SKA3U7QI.js → chunk-MLOOPTC7.js} +9 -9
  94. package/dist/{chunk-XOSSXRIR.js → chunk-MUGQUNPY.js} +10 -10
  95. package/dist/{chunk-I5ANEYUK.js → chunk-N7VOAIFG.js} +1 -1
  96. package/dist/{chunk-QKNHNDOY.js → chunk-NE23W6RX.js} +2 -2
  97. package/dist/{chunk-X5QSIMXA.js → chunk-OQSSPA5U.js} +3 -3
  98. package/dist/{chunk-ZWNFP4HZ.js → chunk-P6D5R2GR.js} +1 -1
  99. package/dist/{chunk-LQDIOUVU.js → chunk-Q5CWVFV2.js} +2 -2
  100. package/dist/{chunk-U4LHE5DH.js → chunk-QCTLGNMD.js} +1 -1
  101. package/dist/{chunk-SFYX32FX.js → chunk-QLBY4O7Q.js} +4 -4
  102. package/dist/{chunk-P4KAYIMX.js → chunk-QNHUMOCQ.js} +4 -4
  103. package/dist/{chunk-W3FE7GTH.js → chunk-QOKW2NVQ.js} +1 -1
  104. package/dist/{chunk-Y3ELKLNH.js → chunk-QRPW7KDH.js} +12 -12
  105. package/dist/{chunk-5ZS73ZLX.js → chunk-RQWKMBDO.js} +2 -2
  106. package/dist/{chunk-SVWCMYR7.js → chunk-RXEBODH6.js} +6 -6
  107. package/dist/{chunk-BHT76IIB.js → chunk-SKUDNFAZ.js} +4 -4
  108. package/dist/{chunk-RKURAOFK.js → chunk-SYAAPPNF.js} +4 -4
  109. package/dist/{chunk-YEVRMDG7.js → chunk-TAD24RFF.js} +2 -2
  110. package/dist/{chunk-TUXX7TKR.js → chunk-TF46WWVU.js} +2 -2
  111. package/dist/{chunk-GJOHGES6.js → chunk-TG252BD4.js} +2 -2
  112. package/dist/{chunk-UPCIKGWA.js → chunk-U2XD5U2Z.js} +1 -1
  113. package/dist/{chunk-G5IL6C6S.js → chunk-UFTT6RO6.js} +3 -3
  114. package/dist/{chunk-4U3GYVIW.js → chunk-VXSAB3ZE.js} +2 -2
  115. package/dist/{chunk-DSWUG4NV.js → chunk-W2EOPCHG.js} +1 -1
  116. package/dist/{chunk-TMDCIVZ2.js → chunk-WHRLUSI3.js} +5 -5
  117. package/dist/{chunk-FIR2MGSB.js → chunk-WOAHDWWF.js} +1 -1
  118. package/dist/{chunk-IUXXEM4Q.js → chunk-XO62UOR7.js} +7 -7
  119. package/dist/{chunk-DAMTDSAE.js → chunk-XOTBVRIH.js} +1 -1
  120. package/dist/{chunk-XIICM4TX.js → chunk-YKR52UPQ.js} +1 -1
  121. package/dist/{chunk-M74WT5NA.js → chunk-YLV5J6QF.js} +3 -3
  122. package/dist/{chunk-AP26EU5H.js → chunk-YQJX2SJ3.js} +3 -3
  123. package/dist/{chunk-EKELMI3A.js → chunk-ZLWAN47L.js} +24 -14
  124. package/dist/{chunk-CSDB5VTI.js → chunk-ZZ44PWXB.js} +1 -1
  125. package/dist/{codex-app-cards-switch-PJEY3EU5.js → codex-app-cards-switch-TXT3ZJIA.js} +11 -11
  126. package/dist/{codex-card-routing-MNAMCRPO.js → codex-card-routing-LHZ4GOC5.js} +2 -2
  127. package/dist/{codex-desktop-launch-AUNDRYOL.js → codex-desktop-launch-7GSAOUBA.js} +1 -1
  128. package/dist/{codex-session-launch-IZNSTT7N.js → codex-session-launch-NPEFPDVM.js} +20 -20
  129. package/dist/{config-LG2RJO37.js → config-JEWWH3CO.js} +3 -3
  130. package/dist/{global-upgrade-QE5Q3BYW.js → global-upgrade-SJVITKA6.js} +9 -9
  131. package/dist/{identity-3BT6LWOP.js → identity-JX2NVJQ3.js} +4 -4
  132. package/dist/{live-capabilities-IKTQBLVH.js → live-capabilities-YYINM2NK.js} +4 -4
  133. package/dist/{paths-VEUTZJOY.js → paths-2QDA4DUP.js} +3 -3
  134. package/dist/{reapply-BC2AF55M.js → reapply-23723QEC.js} +31 -31
  135. package/dist/src/index.js +35 -35
  136. package/dist/{upgrade-lock-NUGEPR75.js → upgrade-lock-6AHHM2WU.js} +4 -4
  137. package/dist/{usage-TEB5CX2Y.js → usage-ESU3WTVK.js} +3 -3
  138. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-WIFMTEQI.js";
3
+ } from "./chunk-3SGXZHV5.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-L6BMVCQQ.js";
6
+ } from "./chunk-DJOAYJYR.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-VUGF2OC7.js";
9
+ } from "./chunk-GVPOVNRT.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-DAMTDSAE.js";
12
+ } from "./chunk-XOTBVRIH.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-M2ZGNZRS.js";
17
+ } from "./chunk-AYQNGBZC.js";
18
18
 
19
19
  // src/retry.ts
20
20
  var isRetryable = (err) => {
@@ -7,10 +7,10 @@ import {
7
7
  codexHome,
8
8
  codexHooksJsonIn,
9
9
  isPusharyCodexCommand
10
- } from "./chunk-TUXX7TKR.js";
10
+ } from "./chunk-TF46WWVU.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-HAOYL5JP.js";
13
+ } from "./chunk-FXV6MD35.js";
14
14
  import {
15
15
  getPackageVersion
16
16
  } from "./chunk-UQTQ6HPO.js";
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-SQ4RPZ6O.js";
8
+ } from "./chunk-K2QDEWH3.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-GJOHGES6.js";
11
+ } from "./chunk-TG252BD4.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-L6BMVCQQ.js";
14
+ } from "./chunk-DJOAYJYR.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-M74WT5NA.js";
24
+ } from "./chunk-YLV5J6QF.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-M2ZGNZRS.js";
27
+ } from "./chunk-AYQNGBZC.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {
@@ -77,6 +77,9 @@ var MAX_AGENT_QUESTION_OPTIONS = 4;
77
77
  var AGENT_QUESTION_HEADER_MAX = 40;
78
78
  var AGENT_QUESTION_OPTION_MAX = 100;
79
79
  var AGENT_QUESTION_DESCRIPTION_MAX = 500;
80
+ var MIN_ASK_SELECT_OPTIONS = 2;
81
+ var MAX_ASK_SELECT_OPTIONS = 6;
82
+ var fitsAPlainSelect = (question) => !question.multiSelect && question.options.length >= MIN_ASK_SELECT_OPTIONS && question.options.length <= MAX_ASK_SELECT_OPTIONS;
80
83
  var agentQuestionOptionIn = (raw) => {
81
84
  if (!isRecord(raw) || typeof raw.label !== "string" || raw.label.length === 0) return [];
82
85
  return [{
@@ -10270,9 +10273,11 @@ export {
10270
10273
  claudeWakeDecision,
10271
10274
  CLAUDE_WAKE_API,
10272
10275
  claudeWakeWaitingOn,
10276
+ MAX_AGENT_QUESTIONS,
10273
10277
  AGENT_QUESTION_HEADER_MAX,
10274
10278
  AGENT_QUESTION_OPTION_MAX,
10275
10279
  AGENT_QUESTION_DESCRIPTION_MAX,
10280
+ fitsAPlainSelect,
10276
10281
  parseAgentQuestions,
10277
10282
  isTypedAnswerQuestion,
10278
10283
  isAgentQuestionSet,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-CYTPQDQY.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-HAOYL5JP.js";
6
+ } from "./chunk-FXV6MD35.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-M2ZGNZRS.js";
9
+ } from "./chunk-AYQNGBZC.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  UNNAMED_ACTION
3
- } from "./chunk-G6M6YJK4.js";
3
+ } from "./chunk-EXVUFDLL.js";
4
4
  import {
5
5
  askUser,
6
6
  isAwayPaused,
7
7
  isLocalQuestionHandoff,
8
8
  unavailableQuestionUnlessRefused,
9
9
  waitForQuestion
10
- } from "./chunk-YH6EHCKQ.js";
10
+ } from "./chunk-6XKJVF2A.js";
11
11
  import {
12
12
  getMachineId
13
- } from "./chunk-DSWUG4NV.js";
13
+ } from "./chunk-W2EOPCHG.js";
14
14
  import {
15
15
  hookWaitClamped,
16
16
  hookWaitDeadline,
17
17
  scopeBreachReasonOf
18
- } from "./chunk-M2ZGNZRS.js";
18
+ } from "./chunk-AYQNGBZC.js";
19
19
 
20
20
  // src/pushed-question.ts
21
21
  var scopeQuestionOf = (verdict) => {
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-352FIVVH.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-WIFMTEQI.js";
7
+ } from "./chunk-3SGXZHV5.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-DAMTDSAE.js";
10
+ } from "./chunk-XOTBVRIH.js";
11
11
  import {
12
12
  writeJsonAtomicDurable
13
13
  } from "./chunk-TODDEIYG.js";
@@ -15,7 +15,7 @@ import {
15
15
  compressTranscriptRecord,
16
16
  redactSecretsFromContent,
17
17
  transcriptRecordPlaintext
18
- } from "./chunk-M2ZGNZRS.js";
18
+ } from "./chunk-AYQNGBZC.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-M2ZGNZRS.js";
12
+ } from "./chunk-AYQNGBZC.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
  pusharyFetch
3
- } from "./chunk-VUGF2OC7.js";
3
+ } from "./chunk-GVPOVNRT.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-DAMTDSAE.js";
6
+ } from "./chunk-XOTBVRIH.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-YU2EUD7O.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-M2ZGNZRS.js";
16
+ } from "./chunk-AYQNGBZC.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;
@@ -25,7 +25,7 @@ import {
25
25
  reportableSessionId,
26
26
  toToolLookup,
27
27
  truncateLine
28
- } from "./chunk-M2ZGNZRS.js";
28
+ } from "./chunk-AYQNGBZC.js";
29
29
 
30
30
  // ../hook-mapping/src/commit-receipt.ts
31
31
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-M2ZGNZRS.js";
3
+ } from "./chunk-AYQNGBZC.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -2,39 +2,39 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-644AKJMN.js";
5
+ } from "./chunk-IHZ7MUYB.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-4U3GYVIW.js";
9
+ } from "./chunk-VXSAB3ZE.js";
10
10
  import {
11
11
  defersToNativeMode
12
- } from "./chunk-SRSXZINE.js";
12
+ } from "./chunk-3HDZQKAK.js";
13
13
  import {
14
14
  askAgentQuestions,
15
15
  outcomeOfFailedAsk,
16
16
  storedWaitDeadline
17
- } from "./chunk-EKELMI3A.js";
17
+ } from "./chunk-ZLWAN47L.js";
18
18
  import {
19
19
  reportMachineDenial
20
- } from "./chunk-ZT55PJSW.js";
20
+ } from "./chunk-FRT6CTUK.js";
21
21
  import {
22
22
  isGatingMoment,
23
23
  recordKeylessMoment
24
- } from "./chunk-WWSR5LMP.js";
24
+ } from "./chunk-LEWUIP5P.js";
25
25
  import {
26
26
  isAdmitted,
27
27
  readAdmissionRules
28
- } from "./chunk-L44II2WD.js";
28
+ } from "./chunk-KU7DUO5E.js";
29
29
  import {
30
30
  isDeferAnswer,
31
31
  oncePerSession
32
- } from "./chunk-CWH4LBUW.js";
32
+ } from "./chunk-JDY2FFC3.js";
33
33
  import {
34
34
  activeHookSource,
35
35
  activeIdentity,
36
36
  namedSource
37
- } from "./chunk-TMDCIVZ2.js";
37
+ } from "./chunk-WHRLUSI3.js";
38
38
  import {
39
39
  DEFAULT_SESSION,
40
40
  approvalAwaitingRetry,
@@ -57,7 +57,7 @@ import {
57
57
  settleQuestionsForToolUse,
58
58
  sweepFilesOlderThan,
59
59
  userScope
60
- } from "./chunk-Y3ELKLNH.js";
60
+ } from "./chunk-QRPW7KDH.js";
61
61
  import {
62
62
  UNNAMED_ACTION,
63
63
  deriveAction,
@@ -68,12 +68,12 @@ import {
68
68
  patchDeletesFiles,
69
69
  permissionDeniedAction,
70
70
  scopePathFor
71
- } from "./chunk-G6M6YJK4.js";
71
+ } from "./chunk-EXVUFDLL.js";
72
72
  import {
73
73
  branchFor,
74
74
  repoKeyFor,
75
75
  repositoryScopeFor
76
- } from "./chunk-FIR2MGSB.js";
76
+ } from "./chunk-WOAHDWWF.js";
77
77
  import {
78
78
  askUser,
79
79
  cancelQuestion,
@@ -90,23 +90,23 @@ import {
90
90
  waitForQuestion,
91
91
  waitsForThePhone,
92
92
  withdrawQuestion
93
- } from "./chunk-YH6EHCKQ.js";
93
+ } from "./chunk-6XKJVF2A.js";
94
94
  import {
95
95
  getMachineId
96
- } from "./chunk-DSWUG4NV.js";
96
+ } from "./chunk-W2EOPCHG.js";
97
97
  import {
98
98
  POSTTOOLUSE_MIRRORED_TOOLS
99
- } from "./chunk-TUXX7TKR.js";
99
+ } from "./chunk-TF46WWVU.js";
100
100
  import {
101
101
  getApiKey,
102
102
  getBaseUrl
103
- } from "./chunk-DAMTDSAE.js";
103
+ } from "./chunk-XOTBVRIH.js";
104
104
  import {
105
105
  writeFileAtomic
106
106
  } from "./chunk-TODDEIYG.js";
107
107
  import {
108
108
  NPX_LATEST_COMMAND
109
- } from "./chunk-I5ANEYUK.js";
109
+ } from "./chunk-N7VOAIFG.js";
110
110
  import {
111
111
  AGENT_QUESTION_STRATEGY,
112
112
  AGENT_QUESTION_TOOL,
@@ -176,7 +176,7 @@ import {
176
176
  timeoutActionWithoutLocalPrompt,
177
177
  unansweredRefusalReason,
178
178
  unapprovedScopeReason
179
- } from "./chunk-M2ZGNZRS.js";
179
+ } from "./chunk-AYQNGBZC.js";
180
180
 
181
181
  // src/terminal-answer-watch.ts
182
182
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -4,15 +4,15 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-Y3ELKLNH.js";
7
+ } from "./chunk-QRPW7KDH.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-G6M6YJK4.js";
11
+ } from "./chunk-EXVUFDLL.js";
12
12
  import {
13
13
  machineDecisionFor,
14
14
  wireVerdictFor
15
- } from "./chunk-M2ZGNZRS.js";
15
+ } from "./chunk-AYQNGBZC.js";
16
16
 
17
17
  // src/machine-decision-audit.ts
18
18
  import { basename } from "path";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-UQTQ6HPO.js";
15
15
  import {
16
16
  redactSecretsFromContent
17
- } from "./chunk-M2ZGNZRS.js";
17
+ } from "./chunk-AYQNGBZC.js";
18
18
 
19
19
  // src/shell-quote.ts
20
20
  var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
@@ -455,9 +455,9 @@ var installGlobally = (options) => {
455
455
  }
456
456
  const started = (async () => {
457
457
  if (!npmIsOnPath()) throw new NpmMissingError();
458
- const { withUpgradeLock } = await import("./global-upgrade-QE5Q3BYW.js");
459
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-NUGEPR75.js");
460
- const { autoUpdateLock } = await import("./paths-VEUTZJOY.js");
458
+ const { withUpgradeLock } = await import("./global-upgrade-SJVITKA6.js");
459
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-6AHHM2WU.js");
460
+ const { autoUpdateLock } = await import("./paths-2QDA4DUP.js");
461
461
  let result = "skipped";
462
462
  const install = async () => {
463
463
  const platform = process.platform;
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-YPG3RXWO.js";
7
+ } from "./chunk-3TN7WHEF.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-AP26EU5H.js";
10
+ } from "./chunk-YQJX2SJ3.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-M74WT5NA.js";
13
+ } from "./chunk-YLV5J6QF.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-TUXX7TKR.js";
35
+ } from "./chunk-TF46WWVU.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-HAOYL5JP.js";
38
+ } from "./chunk-FXV6MD35.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-DSWUG4NV.js";
3
+ } from "./chunk-W2EOPCHG.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-DAMTDSAE.js";
6
+ } from "./chunk-XOTBVRIH.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-YU2EUD7O.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-M2ZGNZRS.js";
16
+ } from "./chunk-AYQNGBZC.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-M2ZGNZRS.js";
3
+ } from "./chunk-AYQNGBZC.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-Y3ELKLNH.js";
4
+ } from "./chunk-QRPW7KDH.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-TUXX7TKR.js";
7
+ } from "./chunk-TF46WWVU.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-J6KDUXJF.js";
3
+ } from "./chunk-COFH3FQT.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-YPY4YCIZ.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YU2EUD7O.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-I5ANEYUK.js";
12
+ } from "./chunk-N7VOAIFG.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-M2ZGNZRS.js";
20
+ } from "./chunk-AYQNGBZC.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-M2ZGNZRS.js";
5
+ } from "./chunk-AYQNGBZC.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-Y3ELKLNH.js";
3
+ } from "./chunk-QRPW7KDH.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-TUXX7TKR.js";
3
+ } from "./chunk-TF46WWVU.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-M2ZGNZRS.js";
9
+ } from "./chunk-AYQNGBZC.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-NX3Y36VY.js";
3
+ } from "./chunk-7DHVYOOP.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-M74WT5NA.js";
6
+ } from "./chunk-YLV5J6QF.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-TUXX7TKR.js";
9
+ } from "./chunk-TF46WWVU.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-TODDEIYG.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-M2ZGNZRS.js";
16
+ } from "./chunk-AYQNGBZC.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;
@@ -3,7 +3,7 @@ import {
3
3
  HOOK_BUDGETS,
4
4
  KILL_REASON,
5
5
  OPENCODE_APPROVAL_EVENT
6
- } from "./chunk-M2ZGNZRS.js";
6
+ } from "./chunk-AYQNGBZC.js";
7
7
 
8
8
  // src/opencode-plugin.ts
9
9
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-Z23SHFIC.js";
3
+ } from "./chunk-7U3GZ5ZV.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
@@ -9,7 +9,7 @@ import {
9
9
  refreshHermesPluginFiles,
10
10
  refreshOpenClawPlugin,
11
11
  shippedHermesPlugin
12
- } from "./chunk-I35XT5YY.js";
12
+ } from "./chunk-3HUPWSLJ.js";
13
13
  import {
14
14
  fxIgnoresInstructionsFile,
15
15
  fxInstructionsBody,
@@ -18,7 +18,7 @@ import {
18
18
  macAppFxBridge,
19
19
  refreshClineKey,
20
20
  switchFxHttpEntryToBridge
21
- } from "./chunk-I5HCOOAA.js";
21
+ } from "./chunk-G3YVXFRI.js";
22
22
  import {
23
23
  OPENCODE_HOOK_BINARY,
24
24
  agentHookOwner,
@@ -31,16 +31,16 @@ import {
31
31
  openCodePluginDir,
32
32
  openCodeWired,
33
33
  withOpenCodeAskRules
34
- } from "./chunk-NX3Y36VY.js";
34
+ } from "./chunk-7DHVYOOP.js";
35
35
  import {
36
36
  detectClaudeVersion
37
- } from "./chunk-EPQTCF6A.js";
37
+ } from "./chunk-AZ7X2FBB.js";
38
38
  import {
39
39
  addCompatibleHooks,
40
40
  compatibleConfigFile,
41
41
  compatibleInstructionsFile,
42
42
  hasCompatibleHooks
43
- } from "./chunk-TMDCIVZ2.js";
43
+ } from "./chunk-WHRLUSI3.js";
44
44
  import {
45
45
  GEMINI_HOOK_BINARY,
46
46
  addGeminiHooks,
@@ -52,10 +52,10 @@ import {
52
52
  geminiWired,
53
53
  hasGeminiHooks,
54
54
  planHooks
55
- } from "./chunk-H7OY4AAT.js";
55
+ } from "./chunk-MBAWDULS.js";
56
56
  import {
57
57
  KEY_FILE_MODE
58
- } from "./chunk-M74WT5NA.js";
58
+ } from "./chunk-YLV5J6QF.js";
59
59
  import {
60
60
  CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
61
61
  CLAUDE_HOOK_BINARY,
@@ -102,13 +102,13 @@ import {
102
102
  renderAgentInstructions,
103
103
  supportedClaudeEvents,
104
104
  vscodePluginMcp
105
- } from "./chunk-TUXX7TKR.js";
105
+ } from "./chunk-TF46WWVU.js";
106
106
  import {
107
107
  formatVersion,
108
108
  hookCommandsUseBareNames,
109
109
  resolveGlobalBinDir,
110
110
  resolveGlobalBinary
111
- } from "./chunk-HAOYL5JP.js";
111
+ } from "./chunk-FXV6MD35.js";
112
112
  import {
113
113
  readJsonSafe,
114
114
  writeFileAtomic,
@@ -118,7 +118,7 @@ import {
118
118
  HOOK_COMPATIBLE_PROFILES,
119
119
  isCompatibleAgentType,
120
120
  isRecord
121
- } from "./chunk-M2ZGNZRS.js";
121
+ } from "./chunk-AYQNGBZC.js";
122
122
 
123
123
  // src/reapply.ts
124
124
  import { dirname, join } from "path";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-BMOGTNLK.js";
3
+ } from "./chunk-5ZL7QBVM.js";
4
4
  import {
5
5
  matchMacAccountStep,
6
6
  retryAgentCommand
7
- } from "./chunk-YPG3RXWO.js";
7
+ } from "./chunk-3TN7WHEF.js";
8
8
  import {
9
9
  canChangeApprovalSettings
10
- } from "./chunk-GJOHGES6.js";
10
+ } from "./chunk-TG252BD4.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND,
16
16
  npmExecSetupCommandFor
17
- } from "./chunk-I5ANEYUK.js";
17
+ } from "./chunk-N7VOAIFG.js";
18
18
  import {
19
19
  LATEST_DIST_TAG
20
20
  } from "./chunk-UQTQ6HPO.js";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-P4KAYIMX.js";
4
+ } from "./chunk-QNHUMOCQ.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-XOSSXRIR.js";
7
+ } from "./chunk-MUGQUNPY.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-TMDCIVZ2.js";
10
+ } from "./chunk-WHRLUSI3.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-YH6EHCKQ.js";
13
+ } from "./chunk-6XKJVF2A.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-M2ZGNZRS.js";
19
+ } from "./chunk-AYQNGBZC.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"];