pushary 1.9.222 → 1.9.224

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 (141) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{api-5FMENCWV.js → api-ONC3NYEU.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +12 -12
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +26 -26
  8. package/dist/bin/pushary-clean.js +39 -39
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +34 -34
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +16 -16
  13. package/dist/bin/pushary-connect.js +35 -35
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +46 -46
  16. package/dist/bin/pushary-disconnect.js +30 -30
  17. package/dist/bin/pushary-display-hook.js +201 -3
  18. package/dist/bin/pushary-doctor.js +47 -47
  19. package/dist/bin/pushary-elicitation-hook.js +27 -27
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +31 -31
  22. package/dist/bin/pushary-hook.js +34 -34
  23. package/dist/bin/pushary-login.js +22 -22
  24. package/dist/bin/pushary-logout.js +30 -30
  25. package/dist/bin/pushary-mcp.js +12 -12
  26. package/dist/bin/pushary-mode.js +16 -16
  27. package/dist/bin/pushary-notification-hook.js +27 -27
  28. package/dist/bin/pushary-opencode-bridge.js +22 -22
  29. package/dist/bin/pushary-opencode-hook.js +32 -32
  30. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  31. package/dist/bin/pushary-permission-hook.js +34 -34
  32. package/dist/bin/pushary-post-hook.js +28 -28
  33. package/dist/bin/pushary-prompt-hook.js +27 -27
  34. package/dist/bin/pushary-session-end-hook.js +27 -27
  35. package/dist/bin/pushary-session-start-hook.js +39 -39
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +57 -57
  38. package/dist/bin/pushary-stats.js +5 -5
  39. package/dist/bin/pushary-status.js +36 -36
  40. package/dist/bin/pushary-stop-hook.js +27 -27
  41. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  42. package/dist/bin/pushary-suggestions.js +16 -16
  43. package/dist/bin/pushary-transcript-register.js +17 -17
  44. package/dist/bin/pushary-transcripts.js +25 -25
  45. package/dist/bin/pushary-upgrade.js +46 -46
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-CQMJ5YLX.js → chunk-2CY3RVXV.js} +1 -1
  49. package/dist/{chunk-ZIE3LCHE.js → chunk-35MX2DYY.js} +4 -4
  50. package/dist/{chunk-JEKST75E.js → chunk-37O3TEYR.js} +12 -12
  51. package/dist/{chunk-B5B2W6RF.js → chunk-3I5OH3BQ.js} +1 -1
  52. package/dist/{chunk-3SROGHN7.js → chunk-3SQBFADX.js} +1 -1
  53. package/dist/{chunk-5PEALQVY.js → chunk-45FJXU6L.js} +6 -6
  54. package/dist/{chunk-MXX4JRBI.js → chunk-4E3NSM4E.js} +455 -35
  55. package/dist/{chunk-VV7XYIC6.js → chunk-4SW5ILAY.js} +9 -9
  56. package/dist/{chunk-H5GFXPBU.js → chunk-6AQOULFH.js} +1 -1
  57. package/dist/{chunk-HDYOAYWZ.js → chunk-6EGV3GON.js} +6 -6
  58. package/dist/{chunk-5R3PKRBZ.js → chunk-7322XHFA.js} +4 -4
  59. package/dist/{chunk-FERJXII2.js → chunk-73QU5HGK.js} +2 -2
  60. package/dist/{chunk-Z2JCNR7O.js → chunk-7FSB46RG.js} +1 -1
  61. package/dist/{chunk-O5YMM4NC.js → chunk-7RWQULME.js} +3 -3
  62. package/dist/{chunk-YIIGUJP3.js → chunk-7YBP6JUZ.js} +4 -4
  63. package/dist/{chunk-STXX44Q2.js → chunk-7Z6FW2FX.js} +6 -6
  64. package/dist/{chunk-AQQ2EATU.js → chunk-BDFS2KC3.js} +2 -2
  65. package/dist/{chunk-G7GAOYPA.js → chunk-BHQ2USGM.js} +1 -1
  66. package/dist/{chunk-4PIHRM37.js → chunk-CXYGVLWY.js} +5 -5
  67. package/dist/{chunk-REGGASP3.js → chunk-ENXYENW3.js} +5 -5
  68. package/dist/{chunk-XRANKHLM.js → chunk-F4ZWZ3NF.js} +1 -1
  69. package/dist/{chunk-OLBZ2IR4.js → chunk-FMX56I6G.js} +5 -5
  70. package/dist/{chunk-W35HZ5LB.js → chunk-FND4HRMJ.js} +2 -2
  71. package/dist/{chunk-K2RNGCIH.js → chunk-FNIGFFVQ.js} +1 -1
  72. package/dist/{chunk-5CHF6KSC.js → chunk-GMIIYOOD.js} +1 -1
  73. package/dist/{chunk-ZB5CQM3S.js → chunk-GV42N5QE.js} +1 -1
  74. package/dist/{chunk-TY26HQND.js → chunk-H7OAPHT6.js} +3 -3
  75. package/dist/{chunk-U4TBTVKC.js → chunk-HQQLBTLR.js} +7 -7
  76. package/dist/{chunk-AJDNOASW.js → chunk-HSHHV7KX.js} +3 -3
  77. package/dist/{chunk-LHSKKRGC.js → chunk-IRTDVRPP.js} +5 -5
  78. package/dist/{chunk-B7BT6S66.js → chunk-J4KRS6U6.js} +2 -2
  79. package/dist/{chunk-JZOOJH63.js → chunk-J6TV66B5.js} +2 -2
  80. package/dist/{chunk-KESEXC6J.js → chunk-JJECC5TS.js} +4 -4
  81. package/dist/{chunk-JRQCXNT3.js → chunk-KAE2B7B3.js} +1 -1
  82. package/dist/{chunk-CCWBBHOQ.js → chunk-KK75BMI5.js} +1 -1
  83. package/dist/{chunk-UO224FD7.js → chunk-KXWFB5C3.js} +2 -2
  84. package/dist/{chunk-HG76GEOE.js → chunk-LTGOBKBE.js} +1 -1
  85. package/dist/{chunk-7DQ4NJHO.js → chunk-LTNWYLVK.js} +3 -3
  86. package/dist/{chunk-GHYB66LW.js → chunk-MDOLCJRZ.js} +1 -1
  87. package/dist/{chunk-FLI4GFL2.js → chunk-NQXJ3HP7.js} +8 -8
  88. package/dist/{chunk-JDTSLDKU.js → chunk-NR6K7SFA.js} +5 -5
  89. package/dist/{chunk-J7E3CS5N.js → chunk-NSVXD77O.js} +4 -4
  90. package/dist/{chunk-TY5UXKIU.js → chunk-OCGOLDIU.js} +5 -5
  91. package/dist/{chunk-QQHOFBU6.js → chunk-OQP2SBVG.js} +31 -22
  92. package/dist/{chunk-MJOKUFFE.js → chunk-P4FAWEDR.js} +3 -3
  93. package/dist/{chunk-HNRN7K22.js → chunk-PJQFIGIH.js} +2 -2
  94. package/dist/{chunk-LRZKYIQ6.js → chunk-PPCDXEKQ.js} +1 -1
  95. package/dist/{chunk-4XY5VHBW.js → chunk-Q7OEKDFK.js} +4 -4
  96. package/dist/{chunk-GNPULK7J.js → chunk-QGA57PZ2.js} +25 -21
  97. package/dist/{chunk-PAPMVRHR.js → chunk-QJT5ZEQ7.js} +1 -1
  98. package/dist/{chunk-CJOSYTSG.js → chunk-QKMBCZYI.js} +2 -2
  99. package/dist/{chunk-N4GJ7UEG.js → chunk-QODLGTAJ.js} +2 -2
  100. package/dist/{chunk-4L274ET5.js → chunk-QVGXCFGJ.js} +3 -3
  101. package/dist/{chunk-KQUOVCCS.js → chunk-ROJXEYYY.js} +1 -1
  102. package/dist/{chunk-E3H56JAS.js → chunk-S5GJILJ7.js} +2 -2
  103. package/dist/{chunk-W5BHO4UE.js → chunk-SNQODYMM.js} +1 -1
  104. package/dist/{chunk-W75STRF5.js → chunk-SSBYRK22.js} +4 -4
  105. package/dist/{chunk-JMTFCHR3.js → chunk-SZOG3UW3.js} +5 -5
  106. package/dist/{chunk-3ZELWDAG.js → chunk-T2X5A6ON.js} +10 -10
  107. package/dist/{chunk-SYMM37D5.js → chunk-TKWS6E7B.js} +3 -3
  108. package/dist/{chunk-MNUYTEPY.js → chunk-TO5T2D5C.js} +4 -4
  109. package/dist/{chunk-U7734QBB.js → chunk-TRTD7K6F.js} +2 -2
  110. package/dist/{chunk-AJXODCEY.js → chunk-TUL6ESJL.js} +3 -3
  111. package/dist/{chunk-66M7UB7P.js → chunk-TZTPY2QF.js} +2 -2
  112. package/dist/{chunk-RJCLIWNI.js → chunk-V3GMYPTF.js} +6 -6
  113. package/dist/{chunk-WM5DVEHF.js → chunk-VWHZS7CZ.js} +1 -1
  114. package/dist/{chunk-UG52X3L4.js → chunk-WBM5QRLH.js} +1 -1
  115. package/dist/{chunk-XKF65PRO.js → chunk-WWWJHD5W.js} +1 -1
  116. package/dist/{chunk-SBQX7DNO.js → chunk-XANXXZVC.js} +3 -3
  117. package/dist/{chunk-62OI7PJ6.js → chunk-XLGNI7ZM.js} +6 -6
  118. package/dist/{chunk-2ODL2KHZ.js → chunk-XP6EIQDC.js} +5 -5
  119. package/dist/{chunk-IDY5NK64.js → chunk-YIWQPPNE.js} +3 -3
  120. package/dist/{chunk-ZQYAGL5J.js → chunk-YSASHNPA.js} +2 -2
  121. package/dist/{chunk-YDLNKHUC.js → chunk-YWJW3GBN.js} +1 -1
  122. package/dist/{chunk-TMBHLGDG.js → chunk-Z3GKJWBV.js} +3 -3
  123. package/dist/{chunk-3UNLHFAQ.js → chunk-ZBIDKPCA.js} +7 -159
  124. package/dist/{chunk-DZUEOUFB.js → chunk-ZJKWVWVW.js} +7 -7
  125. package/dist/{chunk-BVBKGIAH.js → chunk-ZMFR6APZ.js} +5 -5
  126. package/dist/{chunk-XAFLPVOH.js → chunk-ZVDJNBYV.js} +4 -4
  127. package/dist/{codex-app-cards-switch-WIMAJIB7.js → codex-app-cards-switch-LXPMFON2.js} +11 -11
  128. package/dist/{codex-card-routing-XCFEMXOH.js → codex-card-routing-D5YIOCO4.js} +2 -2
  129. package/dist/{codex-desktop-launch-SIWL62HT.js → codex-desktop-launch-QPPHABQW.js} +1 -1
  130. package/dist/{codex-session-launch-LUCQNTVP.js → codex-session-launch-BXQPUMWB.js} +20 -20
  131. package/dist/{config-CB7VGWF7.js → config-74YKDTUD.js} +3 -3
  132. package/dist/{global-upgrade-34UV333H.js → global-upgrade-NTZCGPYN.js} +9 -9
  133. package/dist/{identity-GTVFP3LV.js → identity-F6D3HRMJ.js} +4 -4
  134. package/dist/{live-capabilities-RG7STBKW.js → live-capabilities-YSGKGSP4.js} +4 -4
  135. package/dist/{paths-IIFXE7O2.js → paths-Q3PUCZZQ.js} +3 -3
  136. package/dist/reapply-RSNZA5DQ.js +74 -0
  137. package/dist/src/index.js +33 -33
  138. package/dist/{upgrade-lock-GFNGLGR3.js → upgrade-lock-FH6YYKRD.js} +4 -4
  139. package/dist/{usage-AJ2MWOQT.js → usage-RUBRRQDK.js} +3 -3
  140. package/package.json +1 -1
  141. package/dist/reapply-ZN6LLFVB.js +0 -74
@@ -6,17 +6,17 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-JRQCXNT3.js";
9
+ } from "./chunk-KAE2B7B3.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-PAPMVRHR.js";
13
+ } from "./chunk-QJT5ZEQ7.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-FERJXII2.js";
19
+ } from "./chunk-73QU5HGK.js";
20
20
  import {
21
21
  spawnClaude
22
22
  } from "./chunk-3PSNUHC5.js";
@@ -25,18 +25,18 @@ import {
25
25
  isWaitForAnswerResponse,
26
26
  withdrawQuestion,
27
27
  writeDegraded
28
- } from "./chunk-STXX44Q2.js";
28
+ } from "./chunk-7Z6FW2FX.js";
29
29
  import {
30
30
  readCommandAck
31
- } from "./chunk-HG76GEOE.js";
31
+ } from "./chunk-LTGOBKBE.js";
32
32
  import {
33
33
  callMcpTool,
34
34
  isRetryable
35
- } from "./chunk-LHSKKRGC.js";
35
+ } from "./chunk-IRTDVRPP.js";
36
36
  import {
37
37
  projectNameFor,
38
38
  repositoryScopeFor
39
- } from "./chunk-3SROGHN7.js";
39
+ } from "./chunk-3SQBFADX.js";
40
40
  import {
41
41
  AGENT_QUESTION_DESCRIPTION_MAX,
42
42
  AGENT_QUESTION_HEADER_MAX,
@@ -58,7 +58,7 @@ import {
58
58
  parseCodexQuestions,
59
59
  planElicitationAsk,
60
60
  readElicitationFields
61
- } from "./chunk-MXX4JRBI.js";
61
+ } from "./chunk-4E3NSM4E.js";
62
62
 
63
63
  // src/codex-question-owner.ts
64
64
  import { createHash } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-QQHOFBU6.js";
3
+ } from "./chunk-OQP2SBVG.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-KQUOVCCS.js";
6
+ } from "./chunk-ROJXEYYY.js";
7
7
  import {
8
8
  ASK_USER_TIMEOUT_MS,
9
9
  WAIT_END_TIMEOUT_MS,
@@ -12,10 +12,10 @@ import {
12
12
  isLocalQuestionHandoff,
13
13
  unavailableQuestionUnlessRefused,
14
14
  waitForQuestion
15
- } from "./chunk-STXX44Q2.js";
15
+ } from "./chunk-7Z6FW2FX.js";
16
16
  import {
17
17
  getMachineId
18
- } from "./chunk-B5B2W6RF.js";
18
+ } from "./chunk-3I5OH3BQ.js";
19
19
  import {
20
20
  hookMaxWaitSeconds,
21
21
  hookWaitClamped,
@@ -24,7 +24,7 @@ import {
24
24
  refusesWhenUnanswered,
25
25
  ruleApprovesAfterItsFullWindow,
26
26
  scopeBreachReasonOf
27
- } from "./chunk-MXX4JRBI.js";
27
+ } from "./chunk-4E3NSM4E.js";
28
28
 
29
29
  // src/pushed-question.ts
30
30
  var scopeQuestionOf = (verdict) => {
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-SYMM37D5.js";
16
+ } from "./chunk-TKWS6E7B.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-CCWBBHOQ.js";
19
+ } from "./chunk-KK75BMI5.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-XRANKHLM.js";
22
+ } from "./chunk-F4ZWZ3NF.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-MXX4JRBI.js";
25
+ } from "./chunk-4E3NSM4E.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-62OI7PJ6.js";
3
+ } from "./chunk-XLGNI7ZM.js";
4
4
  import {
5
5
  matchMacAccountStep,
6
6
  retryAgentCommand
7
- } from "./chunk-MJOKUFFE.js";
7
+ } from "./chunk-P4FAWEDR.js";
8
8
  import {
9
9
  canChangeApprovalSettings
10
- } from "./chunk-CJOSYTSG.js";
10
+ } from "./chunk-QKMBCZYI.js";
11
11
  import {
12
12
  NPX_LATEST_COMMAND,
13
13
  npmExecSetupCommandFor
14
- } from "./chunk-XRANKHLM.js";
14
+ } from "./chunk-F4ZWZ3NF.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-MXX4JRBI.js";
24
+ } from "./chunk-4E3NSM4E.js";
25
25
 
26
26
  // src/setup/closing.ts
27
27
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -29,7 +29,7 @@ import {
29
29
  toolResultErrorText,
30
30
  transcriptTokensIn,
31
31
  transcriptUsageRequest
32
- } from "./chunk-KQUOVCCS.js";
32
+ } from "./chunk-ROJXEYYY.js";
33
33
  import {
34
34
  askUser,
35
35
  cancelQuestion,
@@ -48,45 +48,45 @@ import {
48
48
  waitForQuestion,
49
49
  waitsForThePhone,
50
50
  writeDegraded
51
- } from "./chunk-STXX44Q2.js";
51
+ } from "./chunk-7Z6FW2FX.js";
52
52
  import {
53
53
  RETRY_ACK,
54
54
  readCommandAck,
55
55
  refusedReceiptMessage
56
- } from "./chunk-HG76GEOE.js";
56
+ } from "./chunk-LTGOBKBE.js";
57
57
  import {
58
58
  SubscriptionRequiredError,
59
59
  isRetryable,
60
60
  withRetry
61
- } from "./chunk-LHSKKRGC.js";
61
+ } from "./chunk-IRTDVRPP.js";
62
62
  import {
63
63
  fetchAsCredential
64
- } from "./chunk-K2RNGCIH.js";
64
+ } from "./chunk-FNIGFFVQ.js";
65
65
  import {
66
66
  branchFor,
67
67
  projectNameFor,
68
68
  repoKeyFor
69
- } from "./chunk-3SROGHN7.js";
69
+ } from "./chunk-3SQBFADX.js";
70
70
  import {
71
71
  getMachineId
72
- } from "./chunk-B5B2W6RF.js";
72
+ } from "./chunk-3I5OH3BQ.js";
73
73
  import {
74
74
  reportedInstallSource
75
- } from "./chunk-ZQYAGL5J.js";
75
+ } from "./chunk-YSASHNPA.js";
76
76
  import {
77
77
  IDLE_PROMPT_NOTIFICATION,
78
78
  NOTIFICATION_PUSH_TYPES,
79
79
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
80
80
  claudeConfigDir
81
- } from "./chunk-UO224FD7.js";
81
+ } from "./chunk-KXWFB5C3.js";
82
82
  import {
83
83
  compareVersion,
84
84
  parseVersion
85
- } from "./chunk-MNUYTEPY.js";
85
+ } from "./chunk-TO5T2D5C.js";
86
86
  import {
87
87
  getApiKey,
88
88
  getBaseUrl
89
- } from "./chunk-CCWBBHOQ.js";
89
+ } from "./chunk-KK75BMI5.js";
90
90
  import {
91
91
  writeFileAtomic,
92
92
  writeJsonAtomicDurable
@@ -144,7 +144,7 @@ import {
144
144
  resolveAutoResolveOrigin,
145
145
  resolvePolicy,
146
146
  unansweredRefusalReason
147
- } from "./chunk-MXX4JRBI.js";
147
+ } from "./chunk-4E3NSM4E.js";
148
148
 
149
149
  // src/pending.ts
150
150
  import { join } from "path";
@@ -1018,7 +1018,10 @@ var ask = (reason) => claudePreToolUseOutput("ask", reason);
1018
1018
  var halted = (reason) => claudeStoppedPreToolUseOutput(reason);
1019
1019
 
1020
1020
  // src/permission-ask-outcome.ts
1021
+ var RULE_APPROVES_UNANSWERED = { kind: "rule_approves" };
1022
+ var pushOnlyUnansweredEnding = (timeoutAction, window, missedAnswer) => timeoutAction === "approve" && questionServedItsWholeWindow(window) ? RULE_APPROVES_UNANSWERED : missedAnswer;
1021
1023
  var NO_ASKED_FILE_PATH = {};
1024
+ var NO_PUSH_RESPONSE_REASON = "No push response, asking in terminal";
1022
1025
  var NO_SENDABLE_CWD = {};
1023
1026
  var sendableCwd = (cwd) => cwd !== void 0 && isAskableHookCwd(cwd) ? { cwd } : NO_SENDABLE_CWD;
1024
1027
  var askedFilePathOf = (toolName, toolInput, cwd) => {
@@ -1033,6 +1036,12 @@ var questionWindowOf = (question, { cutShort }) => ({
1033
1036
  var refusingTimeoutOutput = (window) => deny(unansweredRefusalReason(window.paused));
1034
1037
  var unservedApprovalOutput = (window, event) => isNativeAskEvent(event) ? ask(WITHDRAWN_APPROVAL_REASON) : refusingTimeoutOutput(window);
1035
1038
  var approvingTimeoutOutput = (window, event) => questionServedItsWholeWindow(window) ? allow() : unservedApprovalOutput(window, event);
1039
+ var missedAnswerOutput = (missedAnswer, reply, handBackReason) => {
1040
+ if (missedAnswer.kind === "refuse" && isAwayPaused(reply)) return deny(unansweredRefusalReason(true));
1041
+ if (missedAnswer.kind === "refuse" && waitsForThePhone(reply)) return deny(missedAnswer.reason);
1042
+ return ask(handBackReason);
1043
+ };
1044
+ var promptFollowsAHandBack = (call) => call.agentPromptFollows && call.missedAnswer.kind !== "refuse";
1036
1045
  var questionLimitOutput = (handBack) => handBack.kind === "refuse" ? deny(handBack.reason) : ask(QUESTION_LIMIT_PROMPT_REASON);
1037
1046
  var outcomeOfFailedPermissionAsk = (error, sessionId, questionLimitFacts, subscriptionRequiredOutput) => {
1038
1047
  if (isQuestionLimitRefusal(error)) return questionLimitOutput(questionLimitHandBack(questionLimitFacts));
@@ -1048,7 +1057,6 @@ var handlePushOnly = async (apiKey, call, timeoutSeconds, timeoutAction, signals
1048
1057
  toolName,
1049
1058
  toolTarget,
1050
1059
  decision,
1051
- agentPromptFollows,
1052
1060
  startMs,
1053
1061
  subscriptionRequiredOutput,
1054
1062
  announceWait
@@ -1075,12 +1083,15 @@ var handlePushOnly = async (apiKey, call, timeoutSeconds, timeoutAction, signals
1075
1083
  signals.askFailed = true;
1076
1084
  return outcomeOfFailedPermissionAsk(error, sessionId, {
1077
1085
  refusesUnanswered: refusesWhenUnanswered({ mode: "push_only", timeoutAction }),
1078
- agentPromptFollows
1086
+ agentPromptFollows: promptFollowsAHandBack(call)
1079
1087
  }, subscriptionRequiredOutput);
1080
1088
  }
1081
1089
  if (isDecisionStopped(result)) return halted(DECISION_STOP_REASON);
1082
1090
  const deadline = storedWaitDeadline(result, requestedDeadline);
1083
- if (waitsForThePhone(result)) announceWait(effectiveWait, result.answerUrl, sessionId);
1091
+ const window = questionWindowOf(result, { cutShort: clampCut || deadline < requestedDeadline });
1092
+ if (waitsForThePhone(result)) {
1093
+ announceWait(effectiveWait, pushOnlyUnansweredEnding(timeoutAction, window, call.missedAnswer), result.answerUrl, sessionId);
1094
+ }
1084
1095
  const answer = await waitForQuestion(apiKey, result, deadline);
1085
1096
  if (isDecisionStopped(answer)) return halted(DECISION_STOP_REASON);
1086
1097
  if (!answer.answered && isLocalQuestionHandoff(result)) return ask("Approve in the current client.");
@@ -1089,9 +1100,8 @@ var handlePushOnly = async (apiKey, call, timeoutSeconds, timeoutAction, signals
1089
1100
  signals.humanDecision = true;
1090
1101
  return answer.value === "yes" ? allow() : deny(denyReasonFrom(answer.value, answer.note));
1091
1102
  }
1092
- const window = questionWindowOf(result, { cutShort: clampCut || deadline < requestedDeadline });
1093
1103
  if (timeoutAction === "wait" || window.clampCut) {
1094
- return ask(WITHDRAWN_APPROVAL_REASON);
1104
+ return missedAnswerOutput(call.missedAnswer, result, WITHDRAWN_APPROVAL_REASON);
1095
1105
  }
1096
1106
  switch (timeoutAction) {
1097
1107
  case "approve":
@@ -1099,7 +1109,7 @@ var handlePushOnly = async (apiKey, call, timeoutSeconds, timeoutAction, signals
1099
1109
  case "deny":
1100
1110
  return refusingTimeoutOutput(window);
1101
1111
  default:
1102
- return ask("No push response, asking in terminal");
1112
+ return missedAnswerOutput(call.missedAnswer, result, NO_PUSH_RESPONSE_REASON);
1103
1113
  }
1104
1114
  };
1105
1115
  var handlePushFirst = async (apiKey, call, pushFirstSeconds, signals) => {
@@ -1112,7 +1122,6 @@ var handlePushFirst = async (apiKey, call, pushFirstSeconds, signals) => {
1112
1122
  toolName,
1113
1123
  toolTarget,
1114
1124
  decision,
1115
- agentPromptFollows,
1116
1125
  startMs,
1117
1126
  subscriptionRequiredOutput,
1118
1127
  announceWait
@@ -1134,10 +1143,10 @@ var handlePushFirst = async (apiKey, call, pushFirstSeconds, signals) => {
1134
1143
  });
1135
1144
  } catch (error) {
1136
1145
  signals.askFailed = true;
1137
- return outcomeOfFailedPermissionAsk(error, sessionId, { refusesUnanswered: false, agentPromptFollows }, subscriptionRequiredOutput);
1146
+ return outcomeOfFailedPermissionAsk(error, sessionId, { refusesUnanswered: false, agentPromptFollows: promptFollowsAHandBack(call) }, subscriptionRequiredOutput);
1138
1147
  }
1139
1148
  if (isDecisionStopped(result)) return halted(DECISION_STOP_REASON);
1140
- if (waitsForThePhone(result)) announceWait(pushFirstSeconds, result.answerUrl, sessionId);
1149
+ if (waitsForThePhone(result)) announceWait(pushFirstSeconds, call.missedAnswer, result.answerUrl, sessionId);
1141
1150
  const deadline = storedWaitDeadline(result, requestedDeadline);
1142
1151
  const answer = await waitForQuestion(apiKey, result, deadline, 1500);
1143
1152
  if (isDecisionStopped(answer)) return halted(DECISION_STOP_REASON);
@@ -1146,7 +1155,7 @@ var handlePushFirst = async (apiKey, call, pushFirstSeconds, signals) => {
1146
1155
  signals.humanDecision = true;
1147
1156
  return answer.value === "yes" ? allow() : deny(denyReasonFrom(answer.value, answer.note));
1148
1157
  }
1149
- return ask(WITHDRAWN_APPROVAL_REASON);
1158
+ return missedAnswerOutput(call.missedAnswer, result, WITHDRAWN_APPROVAL_REASON);
1150
1159
  };
1151
1160
 
1152
1161
  // src/codex-adapter.ts
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-MNUYTEPY.js";
6
+ } from "./chunk-TO5T2D5C.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-XRANKHLM.js";
12
+ } from "./chunk-F4ZWZ3NF.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-MXX4JRBI.js";
15
+ } from "./chunk-4E3NSM4E.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-UO224FD7.js";
6
+ } from "./chunk-KXWFB5C3.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-CXQWDQCJ.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-MXX4JRBI.js";
20
+ } from "./chunk-4E3NSM4E.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-MXX4JRBI.js";
12
+ } from "./chunk-4E3NSM4E.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
  AGENT_CHOICES
3
- } from "./chunk-LRZKYIQ6.js";
3
+ } from "./chunk-PPCDXEKQ.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-YDLNKHUC.js";
6
+ } from "./chunk-YWJW3GBN.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -16,13 +16,13 @@ import {
16
16
  isBridgeLocator,
17
17
  isProtectedByScope,
18
18
  registerHookEntry
19
- } from "./chunk-UO224FD7.js";
19
+ } from "./chunk-KXWFB5C3.js";
20
20
  import {
21
21
  CURSOR_GATE_EVENTS,
22
22
  HOOK_BUDGETS,
23
23
  HOOK_LOCATOR_BINARY,
24
24
  hookCommandHoldBudget
25
- } from "./chunk-MXX4JRBI.js";
25
+ } from "./chunk-4E3NSM4E.js";
26
26
 
27
27
  // src/gemini-config.ts
28
28
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -2,30 +2,30 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-E3H56JAS.js";
5
+ } from "./chunk-S5GJILJ7.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-W35HZ5LB.js";
9
+ } from "./chunk-FND4HRMJ.js";
10
10
  import {
11
11
  defersToNativeMode
12
- } from "./chunk-G7GAOYPA.js";
12
+ } from "./chunk-BHQ2USGM.js";
13
13
  import {
14
14
  reportMachineDenial
15
- } from "./chunk-KESEXC6J.js";
15
+ } from "./chunk-JJECC5TS.js";
16
16
  import {
17
17
  isGatingMoment,
18
18
  recordKeylessMoment
19
- } from "./chunk-WM5DVEHF.js";
19
+ } from "./chunk-VWHZS7CZ.js";
20
20
  import {
21
21
  isAdmitted,
22
22
  readAdmissionRules
23
- } from "./chunk-REGGASP3.js";
23
+ } from "./chunk-ENXYENW3.js";
24
24
  import {
25
25
  activeHookSource,
26
26
  activeIdentity,
27
27
  namedSource
28
- } from "./chunk-3UNLHFAQ.js";
28
+ } from "./chunk-ZBIDKPCA.js";
29
29
  import {
30
30
  DEFAULT_SESSION,
31
31
  allow,
@@ -65,7 +65,7 @@ import {
65
65
  storedWaitDeadline,
66
66
  sweepFilesOlderThan,
67
67
  userScope
68
- } from "./chunk-QQHOFBU6.js";
68
+ } from "./chunk-OQP2SBVG.js";
69
69
  import {
70
70
  UNNAMED_ACTION,
71
71
  deriveAction,
@@ -76,7 +76,7 @@ import {
76
76
  patchDeletesFiles,
77
77
  permissionDeniedAction,
78
78
  scopePathFor
79
- } from "./chunk-KQUOVCCS.js";
79
+ } from "./chunk-ROJXEYYY.js";
80
80
  import {
81
81
  askUser,
82
82
  cancelQuestion,
@@ -91,29 +91,29 @@ import {
91
91
  sendNotification,
92
92
  waitForQuestion,
93
93
  withdrawQuestion
94
- } from "./chunk-STXX44Q2.js";
94
+ } from "./chunk-7Z6FW2FX.js";
95
95
  import {
96
96
  branchFor,
97
97
  projectNameFor,
98
98
  repoKeyFor,
99
99
  repositoryScopeFor
100
- } from "./chunk-3SROGHN7.js";
100
+ } from "./chunk-3SQBFADX.js";
101
101
  import {
102
102
  getMachineId
103
- } from "./chunk-B5B2W6RF.js";
103
+ } from "./chunk-3I5OH3BQ.js";
104
104
  import {
105
105
  POSTTOOLUSE_MIRRORED_TOOLS
106
- } from "./chunk-UO224FD7.js";
106
+ } from "./chunk-KXWFB5C3.js";
107
107
  import {
108
108
  getApiKey,
109
109
  getBaseUrl
110
- } from "./chunk-CCWBBHOQ.js";
110
+ } from "./chunk-KK75BMI5.js";
111
111
  import {
112
112
  writeFileAtomic
113
113
  } from "./chunk-PM2NRK6Y.js";
114
114
  import {
115
115
  NPX_LATEST_COMMAND
116
- } from "./chunk-XRANKHLM.js";
116
+ } from "./chunk-F4ZWZ3NF.js";
117
117
  import {
118
118
  AGENT_QUESTION_STRATEGY,
119
119
  AGENT_QUESTION_TOOL,
@@ -168,6 +168,7 @@ import {
168
168
  isRecord,
169
169
  matchedRouteOf,
170
170
  mcpCallCouldBeHeldForSomeoneElse,
171
+ missedAnswerHandBack,
171
172
  namedRouteWaitsForSomeoneElse,
172
173
  parseAgentQuestions,
173
174
  permissionsOffAskReason,
@@ -180,7 +181,7 @@ import {
180
181
  terminalStaysLiveForTheCall,
181
182
  timeoutActionWithoutLocalPrompt,
182
183
  unapprovedScopeReason
183
- } from "./chunk-MXX4JRBI.js";
184
+ } from "./chunk-4E3NSM4E.js";
184
185
 
185
186
  // src/terminal-answer-watch.ts
186
187
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -495,6 +496,7 @@ var dispatchModeDecision = async (apiKey, input, event, toolPolicy, machineId, t
495
496
  permissionMode: input.permission_mode
496
497
  };
497
498
  const signals = {};
499
+ const missedAnswer = missedAnswerHandBack({ agentType: ACTIVE_AGENT.type, agentLabel: ACTIVE_AGENT.label, permissionMode: input.permission_mode });
498
500
  const permissionAsk = {
499
501
  event,
500
502
  description,
@@ -508,7 +510,8 @@ var dispatchModeDecision = async (apiKey, input, event, toolPolicy, machineId, t
508
510
  agentPromptFollows,
509
511
  startMs: START_MS,
510
512
  subscriptionRequiredOutput: undecidedCall(SOLE_GATE_SUBSCRIPTION_REASON),
511
- announceWait
513
+ missedAnswer,
514
+ announceWait: announcePhoneWait
512
515
  };
513
516
  const mode = deliveredWithoutAPrompt ? approvalModeWithoutLocalPrompt(toolPolicy.mode) : toolPolicy.mode;
514
517
  const runHandler = () => {
@@ -540,13 +543,14 @@ var isPhoneApproval = (decided) => decided.humanDecision && decided.result?.hook
540
543
  var CURSOR_SCOPE_TIMEOUT_ACTION = "escalate";
541
544
  var cursorScopeWaitSeconds = ({ timeoutSeconds, timeoutAction }) => Math.min(effectiveWaitSeconds(timeoutAction, timeoutSeconds, "cursor"), hookMaxWaitSeconds("cursor"));
542
545
  var hasItsOwnApprovalPrompt = (source) => source === null || hasNativeApprovalPrompt(source, "PreToolUse");
543
- var phoneWaitHandoff = (source, waitSeconds) => {
546
+ var phoneWaitHandoff = (source, waitSeconds, ending) => {
544
547
  if (waitSeconds <= 0) return "Waiting for your answer.";
545
- return hasItsOwnApprovalPrompt(source) ? `Waiting ${waitSeconds}s, then this terminal takes over.` : `Waiting ${waitSeconds}s. If nobody answers, it does not run.`;
548
+ if (ending.kind === "rule_approves") return `Waiting ${waitSeconds}s. If nobody answers, your rule approves it.`;
549
+ return hasItsOwnApprovalPrompt(source) && ending.kind === "agent_prompt" ? `Waiting ${waitSeconds}s, then this terminal takes over.` : `Waiting ${waitSeconds}s. If nobody answers, it does not run.`;
546
550
  };
547
- var announceWait = (waitSeconds, answerUrl, sessionId) => {
551
+ var announcePhoneWait = (waitSeconds, ending, answerUrl, sessionId) => {
548
552
  try {
549
- process.stderr.write(`[pushary] Sent to your phone. ${phoneWaitHandoff(ACTIVE_SOURCE, waitSeconds)}
553
+ process.stderr.write(`[pushary] Sent to your phone. ${phoneWaitHandoff(ACTIVE_SOURCE, waitSeconds, ending)}
550
554
  `);
551
555
  if (answerUrl && oncePerSession("answerurl", sessionId)) {
552
556
  process.stderr.write(` Answer here instead: ${answerUrl}
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-HG76GEOE.js";
7
+ } from "./chunk-LTGOBKBE.js";
8
8
 
9
9
  // src/command-receipts.ts
10
10
  import { randomUUID } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-4L274ET5.js";
3
+ } from "./chunk-QVGXCFGJ.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-MXX4JRBI.js";
6
+ } from "./chunk-4E3NSM4E.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TCE3J44Z.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-MNUYTEPY.js";
6
+ } from "./chunk-TO5T2D5C.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-MXX4JRBI.js";
9
+ } from "./chunk-4E3NSM4E.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-O5YMM4NC.js";
3
+ } from "./chunk-7RWQULME.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-CCWBBHOQ.js";
6
+ } from "./chunk-KK75BMI5.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-MXX4JRBI.js";
16
+ } from "./chunk-4E3NSM4E.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;
@@ -27,7 +27,7 @@ import {
27
27
  reportableSessionId,
28
28
  toToolLookup,
29
29
  truncateLine
30
- } from "./chunk-MXX4JRBI.js";
30
+ } from "./chunk-4E3NSM4E.js";
31
31
 
32
32
  // ../hook-mapping/src/commit-receipt.ts
33
33
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-QQHOFBU6.js";
4
+ } from "./chunk-OQP2SBVG.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-UO224FD7.js";
7
+ } from "./chunk-KXWFB5C3.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-MXX4JRBI.js";
4
+ } from "./chunk-4E3NSM4E.js";
5
5
 
6
6
  // src/setup/phone-check.ts
7
7
  var planPhoneCheck = (context) => {
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-AJDNOASW.js";
16
+ } from "./chunk-HSHHV7KX.js";
17
17
  import {
18
18
  needsShell
19
19
  } from "./chunk-3PSNUHC5.js";
@@ -25,10 +25,10 @@ import {
25
25
  openClawDirectoriesToLookIn,
26
26
  openClawPluginFolder,
27
27
  openClawSetupReceiptDirectory
28
- } from "./chunk-UO224FD7.js";
28
+ } from "./chunk-KXWFB5C3.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-MNUYTEPY.js";
31
+ } from "./chunk-TO5T2D5C.js";
32
32
  import {
33
33
  readJsonSafe,
34
34
  writeJsonAtomic
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-CXQWDQCJ.js";
40
40
  import {
41
41
  isRecord
42
- } from "./chunk-MXX4JRBI.js";
42
+ } from "./chunk-4E3NSM4E.js";
43
43
 
44
44
  // src/hermes/plugin-payload.ts
45
45
  import { createHash } from "crypto";