@pushary/agent-hooks 1.9.161 → 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 +10 -0
  2. package/dist/{api-WHTSBK74.js → api-3W4XWXCZ.js} +13 -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 +187 -52
  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-KKDKPWGM.js → chunk-2P3E6CXY.js} +1 -1
  46. package/dist/{chunk-J36DDPJV.js → chunk-3HDZQKAK.js} +1 -1
  47. package/dist/{chunk-2ABUBECK.js → chunk-3HUPWSLJ.js} +4 -4
  48. package/dist/{chunk-YEB7YWW7.js → chunk-3J6NPY5E.js} +8 -8
  49. package/dist/{chunk-DWMQZM52.js → chunk-3SGXZHV5.js} +1 -1
  50. package/dist/{chunk-Y553AEQU.js → chunk-3TN7WHEF.js} +3 -3
  51. package/dist/{chunk-WCXVPYSD.js → chunk-3WW4TQT2.js} +1 -1
  52. package/dist/{chunk-AT5ZLKMQ.js → chunk-3ZJLASF2.js} +5 -5
  53. package/dist/{chunk-2PY5DJTC.js → chunk-4ZV734EY.js} +1 -1
  54. package/dist/{chunk-UZTGEACF.js → chunk-5HSPZGN6.js} +5 -5
  55. package/dist/{chunk-AVGYUZVK.js → chunk-5TQERWVE.js} +6 -6
  56. package/dist/{chunk-OOODAKCC.js → chunk-5ZL7QBVM.js} +6 -6
  57. package/dist/{chunk-IHYKSPWH.js → chunk-6XKJVF2A.js} +8 -6
  58. package/dist/{chunk-UJT32RSQ.js → chunk-7DHVYOOP.js} +6 -6
  59. package/dist/{chunk-UH7GJHOO.js → chunk-7FMXDLNO.js} +3 -3
  60. package/dist/{chunk-OSCZ4MNE.js → chunk-7RGPAEEL.js} +5 -5
  61. package/dist/{chunk-R7NAG65X.js → chunk-7U3GZ5ZV.js} +2 -2
  62. package/dist/{chunk-L2ADRR62.js → chunk-7WBIMPZQ.js} +5 -5
  63. package/dist/{chunk-55AHQF63.js → chunk-AYQNGBZC.js} +7 -0
  64. package/dist/{chunk-W6FCSBTM.js → chunk-AZ7X2FBB.js} +2 -2
  65. package/dist/{chunk-4ZNZS6FM.js → chunk-B6SP4ZLB.js} +5 -5
  66. package/dist/{chunk-5UBV26GO.js → chunk-BS5YSLXS.js} +3 -3
  67. package/dist/{chunk-AVRRD6AY.js → chunk-COFH3FQT.js} +1 -1
  68. package/dist/{chunk-I5HXAELM.js → chunk-DJOAYJYR.js} +3 -3
  69. package/dist/{chunk-26GVUJMR.js → chunk-EXVUFDLL.js} +1 -1
  70. package/dist/{chunk-XWCLKWKP.js → chunk-F2EPFT5W.js} +1 -1
  71. package/dist/{chunk-F5NJUDGA.js → chunk-FIQFGSXB.js} +18 -18
  72. package/dist/{chunk-5S66DHJS.js → chunk-FRT6CTUK.js} +3 -3
  73. package/dist/{chunk-WAFJGQSE.js → chunk-FXV6MD35.js} +4 -4
  74. package/dist/{chunk-GJA3KQ3T.js → chunk-G3YVXFRI.js} +5 -5
  75. package/dist/{chunk-HKCJZGAJ.js → chunk-GVPOVNRT.js} +3 -3
  76. package/dist/{chunk-KDHLOPSO.js → chunk-GY3BDYVF.js} +1 -1
  77. package/dist/{chunk-VYNC7EYV.js → chunk-IHZ7MUYB.js} +2 -2
  78. package/dist/{chunk-DLZ6RK2P.js → chunk-ILPCJRLG.js} +3 -3
  79. package/dist/{chunk-LRTRIDOC.js → chunk-IZFVQLKO.js} +1 -1
  80. package/dist/{chunk-DHUWAUVL.js → chunk-JDY2FFC3.js} +1 -1
  81. package/dist/{chunk-MPYQW4IV.js → chunk-JQ2KBN4B.js} +2 -2
  82. package/dist/{chunk-OXZ75E2Y.js → chunk-K2QDEWH3.js} +4 -4
  83. package/dist/{chunk-OQAIMSHQ.js → chunk-KG5UNSTJ.js} +1 -1
  84. package/dist/{chunk-U36COV3Z.js → chunk-KJY4KNSE.js} +11 -11
  85. package/dist/{chunk-7AQTKVA6.js → chunk-KU55VZ2I.js} +4 -4
  86. package/dist/{chunk-EGEZKJHX.js → chunk-KU7DUO5E.js} +5 -5
  87. package/dist/{chunk-HHNC6FWO.js → chunk-LEWUIP5P.js} +1 -1
  88. package/dist/{chunk-TYB2QGJD.js → chunk-LKF2C5SP.js} +5 -5
  89. package/dist/{chunk-6OSE2IRG.js → chunk-LNZQBK3Z.js} +2 -2
  90. package/dist/{chunk-WNIDBPT2.js → chunk-LS6MIVVS.js} +6 -6
  91. package/dist/{chunk-E7K6YCWY.js → chunk-LYPTFNMM.js} +2 -2
  92. package/dist/{chunk-YGHHDDIM.js → chunk-MBAWDULS.js} +4 -4
  93. package/dist/{chunk-OZK75SFS.js → chunk-MLOOPTC7.js} +9 -9
  94. package/dist/{chunk-MGOBIHXH.js → chunk-MUGQUNPY.js} +10 -10
  95. package/dist/{chunk-RZBCXPOV.js → chunk-N7VOAIFG.js} +1 -1
  96. package/dist/{chunk-3F6HE5AK.js → chunk-NE23W6RX.js} +2 -2
  97. package/dist/{chunk-ATI5XO3E.js → chunk-OQSSPA5U.js} +3 -3
  98. package/dist/{chunk-U3FVVMB3.js → chunk-P6D5R2GR.js} +1 -1
  99. package/dist/{chunk-ZIKSHD5M.js → chunk-Q5CWVFV2.js} +2 -2
  100. package/dist/{chunk-GNHXDRO6.js → chunk-QCTLGNMD.js} +1 -1
  101. package/dist/{chunk-DHX5JZSH.js → chunk-QLBY4O7Q.js} +4 -4
  102. package/dist/{chunk-7VXHWU7A.js → chunk-QNHUMOCQ.js} +4 -4
  103. package/dist/{chunk-YD45WNVQ.js → chunk-QOKW2NVQ.js} +1 -1
  104. package/dist/{chunk-N4OKAE65.js → chunk-QRPW7KDH.js} +15 -13
  105. package/dist/{chunk-R7RN3Z2T.js → chunk-RQWKMBDO.js} +2 -2
  106. package/dist/{chunk-ANYLSZN3.js → chunk-RXEBODH6.js} +6 -6
  107. package/dist/{chunk-G44FOBHN.js → chunk-SKUDNFAZ.js} +4 -4
  108. package/dist/{chunk-6NWESDKK.js → chunk-SYAAPPNF.js} +4 -4
  109. package/dist/{chunk-FZCEPG6J.js → chunk-TAD24RFF.js} +2 -2
  110. package/dist/{chunk-7WLKE7QN.js → chunk-TF46WWVU.js} +2 -2
  111. package/dist/{chunk-ONMAG5BF.js → chunk-TG252BD4.js} +2 -2
  112. package/dist/{chunk-BGU56XCS.js → chunk-U2XD5U2Z.js} +1 -1
  113. package/dist/{chunk-Z5DOTAFI.js → chunk-UFTT6RO6.js} +3 -3
  114. package/dist/{chunk-PXLWR4TG.js → chunk-VXSAB3ZE.js} +2 -2
  115. package/dist/{chunk-VIS3EVRH.js → chunk-W2EOPCHG.js} +1 -1
  116. package/dist/{chunk-LVGRSC44.js → chunk-WHRLUSI3.js} +5 -5
  117. package/dist/{chunk-QLEFFGCN.js → chunk-WOAHDWWF.js} +1 -1
  118. package/dist/{chunk-HKI4RMZF.js → chunk-XO62UOR7.js} +7 -7
  119. package/dist/{chunk-7IHVTLHK.js → chunk-XOTBVRIH.js} +1 -1
  120. package/dist/{chunk-IGSSDODQ.js → chunk-YKR52UPQ.js} +1 -1
  121. package/dist/{chunk-Y23YO46U.js → chunk-YLV5J6QF.js} +3 -3
  122. package/dist/{chunk-BTYHDCAP.js → chunk-YQJX2SJ3.js} +3 -3
  123. package/dist/{chunk-WTWBHE2Y.js → chunk-ZLWAN47L.js} +24 -14
  124. package/dist/{chunk-S6ARXVVZ.js → chunk-ZZ44PWXB.js} +1 -1
  125. package/dist/{codex-app-cards-switch-DPCGWQSX.js → codex-app-cards-switch-TXT3ZJIA.js} +11 -11
  126. package/dist/{codex-card-routing-NFIEH66Q.js → codex-card-routing-LHZ4GOC5.js} +2 -2
  127. package/dist/{codex-desktop-launch-MARNBY23.js → codex-desktop-launch-7GSAOUBA.js} +1 -1
  128. package/dist/{codex-session-launch-LSNU7CUV.js → codex-session-launch-NPEFPDVM.js} +20 -20
  129. package/dist/{config-5D34OAYM.js → config-JEWWH3CO.js} +3 -3
  130. package/dist/{global-upgrade-5XBO6FYU.js → global-upgrade-SJVITKA6.js} +9 -9
  131. package/dist/{identity-6QEFK7PW.js → identity-JX2NVJQ3.js} +4 -4
  132. package/dist/{live-capabilities-6KOGY6KM.js → live-capabilities-YYINM2NK.js} +4 -4
  133. package/dist/{paths-7M6V62NO.js → paths-2QDA4DUP.js} +3 -3
  134. package/dist/{reapply-ZECM5JRX.js → reapply-23723QEC.js} +31 -31
  135. package/dist/src/index.js +35 -35
  136. package/dist/{upgrade-lock-DI4JY2CU.js → upgrade-lock-6AHHM2WU.js} +4 -4
  137. package/dist/{usage-X4BIHYR5.js → usage-ESU3WTVK.js} +3 -3
  138. package/package.json +1 -1
@@ -18,18 +18,18 @@ import {
18
18
  settingSnapshot,
19
19
  writeHermesSetting,
20
20
  writeSetupReceipt
21
- } from "./chunk-2ABUBECK.js";
21
+ } from "./chunk-3HUPWSLJ.js";
22
22
  import {
23
23
  OPENCLAW_MIN_VERSION,
24
24
  OPENCLAW_PLUGIN_ID,
25
25
  OPENCLAW_PLUGIN_PACKAGE
26
- } from "./chunk-ATI5XO3E.js";
26
+ } from "./chunk-OQSSPA5U.js";
27
27
  import {
28
28
  retryAgentCommand
29
- } from "./chunk-Y553AEQU.js";
29
+ } from "./chunk-3TN7WHEF.js";
30
30
  import {
31
31
  configFilePath
32
- } from "./chunk-7IHVTLHK.js";
32
+ } from "./chunk-XOTBVRIH.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-55AHQF63.js";
40
+ } from "./chunk-AYQNGBZC.js";
41
41
 
42
42
  // src/hermes/shell-gate.ts
43
43
  var readHermesShellGate = async (launcher) => {
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-OOODAKCC.js";
17
+ } from "./chunk-5ZL7QBVM.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-XWCLKWKP.js";
32
+ } from "./chunk-F2EPFT5W.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-I5HXAELM.js";
35
+ } from "./chunk-DJOAYJYR.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-FZCEPG6J.js";
38
+ } from "./chunk-TAD24RFF.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-RZBCXPOV.js";
41
+ } from "./chunk-N7VOAIFG.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-55AHQF63.js";
45
+ } from "./chunk-AYQNGBZC.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  APPROVAL_RULES_PATH,
3
3
  canChangeApprovalSettings
4
- } from "./chunk-ONMAG5BF.js";
4
+ } from "./chunk-TG252BD4.js";
5
5
  import {
6
6
  callMcpTool
7
- } from "./chunk-OSCZ4MNE.js";
7
+ } from "./chunk-7RGPAEEL.js";
8
8
  import {
9
9
  absoluteUrl
10
- } from "./chunk-I5HXAELM.js";
10
+ } from "./chunk-DJOAYJYR.js";
11
11
  import {
12
12
  getBaseUrl
13
- } from "./chunk-7IHVTLHK.js";
13
+ } from "./chunk-XOTBVRIH.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-RZBCXPOV.js";
16
+ } from "./chunk-N7VOAIFG.js";
17
17
  import {
18
18
  AGENT_STOP_DEFAULT_SECONDS,
19
19
  APPROVAL_MODE_META,
@@ -21,7 +21,7 @@ import {
21
21
  classifyConfirmResponse,
22
22
  isAnswerSource,
23
23
  roundTripAsk
24
- } from "./chunk-55AHQF63.js";
24
+ } from "./chunk-AYQNGBZC.js";
25
25
 
26
26
  // src/reach.ts
27
27
  var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-OSCZ4MNE.js";
11
+ } from "./chunk-7RGPAEEL.js";
12
12
  import {
13
13
  fetchAsCredential
14
- } from "./chunk-DWMQZM52.js";
14
+ } from "./chunk-3SGXZHV5.js";
15
15
  import {
16
16
  installNetworkDefaults,
17
17
  isNetworkFailure
18
- } from "./chunk-HKCJZGAJ.js";
18
+ } from "./chunk-GVPOVNRT.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-7WLKE7QN.js";
21
+ } from "./chunk-TF46WWVU.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-7IHVTLHK.js";
25
+ } from "./chunk-XOTBVRIH.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -32,7 +32,7 @@ import {
32
32
  degradedLine,
33
33
  isDecisionStoppedReply,
34
34
  truncateLine
35
- } from "./chunk-55AHQF63.js";
35
+ } from "./chunk-AYQNGBZC.js";
36
36
 
37
37
  // src/api.ts
38
38
  import { randomUUID } from "crypto";
@@ -309,6 +309,7 @@ var withdrawAfterAFailedPoll = async (apiKey, correlationId) => {
309
309
  return late.answered ? late : STOPPED;
310
310
  };
311
311
  var sleepUnlessAborted = (ms, signal) => new Promise((resolve) => {
312
+ if (signal?.aborted) return resolve();
312
313
  const wake = () => {
313
314
  clearTimeout(timer);
314
315
  signal?.removeEventListener("abort", wake);
@@ -457,6 +458,7 @@ export {
457
458
  ABANDONED_WAIT,
458
459
  isTransientWaitFailure,
459
460
  waitRetryPauseMs,
461
+ sleepUnlessAborted,
460
462
  pollForAnswer,
461
463
  cancelQuestion,
462
464
  withdrawQuestion,
@@ -10,17 +10,17 @@ import {
10
10
  openCodePluginArgv,
11
11
  openCodePluginModule,
12
12
  renderOpenCodePlugin
13
- } from "./chunk-OQAIMSHQ.js";
13
+ } from "./chunk-KG5UNSTJ.js";
14
14
  import {
15
15
  compatibleConfigFile
16
- } from "./chunk-LVGRSC44.js";
16
+ } from "./chunk-WHRLUSI3.js";
17
17
  import {
18
18
  hookOwnerOf,
19
19
  hookOwnerOfCommands
20
- } from "./chunk-YGHHDDIM.js";
20
+ } from "./chunk-MBAWDULS.js";
21
21
  import {
22
22
  AGENT_CHOICES
23
- } from "./chunk-AVRRD6AY.js";
23
+ } from "./chunk-COFH3FQT.js";
24
24
  import {
25
25
  OPENCODE_INSTRUCTIONS_LABEL,
26
26
  bridgeStub,
@@ -34,7 +34,7 @@ import {
34
34
  resolveBridgeStub,
35
35
  vscodePluginDir,
36
36
  windowsNodeLauncherFor
37
- } from "./chunk-7WLKE7QN.js";
37
+ } from "./chunk-TF46WWVU.js";
38
38
  import {
39
39
  readJsonSafe
40
40
  } from "./chunk-TODDEIYG.js";
@@ -44,7 +44,7 @@ import {
44
44
  OPENCODE_APPROVAL_EVENT,
45
45
  hookCompatibleProfile,
46
46
  isRecord
47
- } from "./chunk-55AHQF63.js";
47
+ } from "./chunk-AYQNGBZC.js";
48
48
 
49
49
  // src/opencode-config.ts
50
50
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-W6FCSBTM.js";
3
+ } from "./chunk-AZ7X2FBB.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-CYTPQDQY.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-WAFJGQSE.js";
15
+ } from "./chunk-FXV6MD35.js";
16
16
  import {
17
17
  CLAUDE_BRIDGE_CAPABILITY,
18
18
  CLAUDE_RESUME_CAPABILITY,
@@ -23,7 +23,7 @@ import {
23
23
  MANAGED_PROVIDERS,
24
24
  SPAWN_CAPABILITY,
25
25
  sessionProvidersAdvertisedBy
26
- } from "./chunk-55AHQF63.js";
26
+ } from "./chunk-AYQNGBZC.js";
27
27
 
28
28
  // src/live-capabilities.ts
29
29
  import { accessSync, constants, statSync as statSync2 } from "fs";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-DWMQZM52.js";
3
+ } from "./chunk-3SGXZHV5.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-I5HXAELM.js";
6
+ } from "./chunk-DJOAYJYR.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-HKCJZGAJ.js";
9
+ } from "./chunk-GVPOVNRT.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-7IHVTLHK.js";
12
+ } from "./chunk-XOTBVRIH.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-55AHQF63.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-7WLKE7QN.js";
10
+ } from "./chunk-TF46WWVU.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-WAFJGQSE.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-OXZ75E2Y.js";
8
+ } from "./chunk-K2QDEWH3.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-ONMAG5BF.js";
11
+ } from "./chunk-TG252BD4.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-I5HXAELM.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-Y23YO46U.js";
24
+ } from "./chunk-YLV5J6QF.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-55AHQF63.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 [{
@@ -9299,6 +9302,7 @@ var GATE_ALLOW_SOURCE = {
9299
9302
  allowlist: "allowlist",
9300
9303
  policy: "policy"
9301
9304
  };
9305
+ var isGateRefusal = (verdict) => verdict.kind === "kill" || verdict.kind === "deny";
9302
9306
  var PUSHARY_TOOL_PREFIX = "mcp__pushary__";
9303
9307
  var PUSHARY_CONNECTOR_TOOL_PREFIXES = ["mcp__claude_ai_Pushary__", "mcp__plugin_pushary_pushary__"];
9304
9308
  var SERVER_AND_TOOL_SEPARATOR = "__";
@@ -10269,9 +10273,11 @@ export {
10269
10273
  claudeWakeDecision,
10270
10274
  CLAUDE_WAKE_API,
10271
10275
  claudeWakeWaitingOn,
10276
+ MAX_AGENT_QUESTIONS,
10272
10277
  AGENT_QUESTION_HEADER_MAX,
10273
10278
  AGENT_QUESTION_OPTION_MAX,
10274
10279
  AGENT_QUESTION_DESCRIPTION_MAX,
10280
+ fitsAPlainSelect,
10275
10281
  parseAgentQuestions,
10276
10282
  isTypedAnswerQuestion,
10277
10283
  isAgentQuestionSet,
@@ -10458,6 +10464,7 @@ export {
10458
10464
  resolveAutoResolveOrigin,
10459
10465
  resolvePolicy,
10460
10466
  KILL_REASON,
10467
+ isGateRefusal,
10461
10468
  PUSHARY_TOOL_PREFIX,
10462
10469
  PUSHARY_CONNECTOR_TOOL_PREFIXES,
10463
10470
  isPusharyOwnTool,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-CYTPQDQY.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-WAFJGQSE.js";
6
+ } from "./chunk-FXV6MD35.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-55AHQF63.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-26GVUJMR.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-IHYKSPWH.js";
10
+ } from "./chunk-6XKJVF2A.js";
11
11
  import {
12
12
  getMachineId
13
- } from "./chunk-VIS3EVRH.js";
13
+ } from "./chunk-W2EOPCHG.js";
14
14
  import {
15
15
  hookWaitClamped,
16
16
  hookWaitDeadline,
17
17
  scopeBreachReasonOf
18
- } from "./chunk-55AHQF63.js";
18
+ } from "./chunk-AYQNGBZC.js";
19
19
 
20
20
  // src/pushed-question.ts
21
21
  var scopeQuestionOf = (verdict) => {
@@ -39,7 +39,7 @@ var pushQuestionAndWait = async (apiKey, question, wait) => {
39
39
  const now = Date.now();
40
40
  const deadline = hookWaitDeadline(wait.startMs, wait.waitSeconds, wait.agent, now);
41
41
  const clampCut = hookWaitClamped(wait.startMs, wait.waitSeconds, wait.agent, now);
42
- const answer = await waitForQuestion(apiKey, created, deadline, wait.pollIntervalMs);
42
+ const answer = await waitForQuestion(apiKey, created, deadline, wait.pollIntervalMs, wait.signal);
43
43
  return {
44
44
  answer,
45
45
  localHandoff: !answer.answered && isLocalQuestionHandoff(created),
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-352FIVVH.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-DWMQZM52.js";
7
+ } from "./chunk-3SGXZHV5.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-7IHVTLHK.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-55AHQF63.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-55AHQF63.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-HKCJZGAJ.js";
3
+ } from "./chunk-GVPOVNRT.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-7IHVTLHK.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-55AHQF63.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-55AHQF63.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-55AHQF63.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-VYNC7EYV.js";
5
+ } from "./chunk-IHZ7MUYB.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-PXLWR4TG.js";
9
+ } from "./chunk-VXSAB3ZE.js";
10
10
  import {
11
11
  defersToNativeMode
12
- } from "./chunk-J36DDPJV.js";
12
+ } from "./chunk-3HDZQKAK.js";
13
13
  import {
14
14
  askAgentQuestions,
15
15
  outcomeOfFailedAsk,
16
16
  storedWaitDeadline
17
- } from "./chunk-WTWBHE2Y.js";
17
+ } from "./chunk-ZLWAN47L.js";
18
18
  import {
19
19
  reportMachineDenial
20
- } from "./chunk-5S66DHJS.js";
20
+ } from "./chunk-FRT6CTUK.js";
21
21
  import {
22
22
  isGatingMoment,
23
23
  recordKeylessMoment
24
- } from "./chunk-HHNC6FWO.js";
24
+ } from "./chunk-LEWUIP5P.js";
25
25
  import {
26
26
  isAdmitted,
27
27
  readAdmissionRules
28
- } from "./chunk-EGEZKJHX.js";
28
+ } from "./chunk-KU7DUO5E.js";
29
29
  import {
30
30
  isDeferAnswer,
31
31
  oncePerSession
32
- } from "./chunk-DHUWAUVL.js";
32
+ } from "./chunk-JDY2FFC3.js";
33
33
  import {
34
34
  activeHookSource,
35
35
  activeIdentity,
36
36
  namedSource
37
- } from "./chunk-LVGRSC44.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-N4OKAE65.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-26GVUJMR.js";
71
+ } from "./chunk-EXVUFDLL.js";
72
72
  import {
73
73
  branchFor,
74
74
  repoKeyFor,
75
75
  repositoryScopeFor
76
- } from "./chunk-QLEFFGCN.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-IHYKSPWH.js";
93
+ } from "./chunk-6XKJVF2A.js";
94
94
  import {
95
95
  getMachineId
96
- } from "./chunk-VIS3EVRH.js";
96
+ } from "./chunk-W2EOPCHG.js";
97
97
  import {
98
98
  POSTTOOLUSE_MIRRORED_TOOLS
99
- } from "./chunk-7WLKE7QN.js";
99
+ } from "./chunk-TF46WWVU.js";
100
100
  import {
101
101
  getApiKey,
102
102
  getBaseUrl
103
- } from "./chunk-7IHVTLHK.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-RZBCXPOV.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-55AHQF63.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-N4OKAE65.js";
7
+ } from "./chunk-QRPW7KDH.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-26GVUJMR.js";
11
+ } from "./chunk-EXVUFDLL.js";
12
12
  import {
13
13
  machineDecisionFor,
14
14
  wireVerdictFor
15
- } from "./chunk-55AHQF63.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-55AHQF63.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-5XBO6FYU.js");
459
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-DI4JY2CU.js");
460
- const { autoUpdateLock } = await import("./paths-7M6V62NO.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-Y553AEQU.js";
7
+ } from "./chunk-3TN7WHEF.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-BTYHDCAP.js";
10
+ } from "./chunk-YQJX2SJ3.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-Y23YO46U.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-7WLKE7QN.js";
35
+ } from "./chunk-TF46WWVU.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-WAFJGQSE.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-VIS3EVRH.js";
3
+ } from "./chunk-W2EOPCHG.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-7IHVTLHK.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-55AHQF63.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-55AHQF63.js";
3
+ } from "./chunk-AYQNGBZC.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };