pushary 1.9.259 → 1.9.261

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 (145) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{api-KZ4IO7ON.js → api-LAG3VCHN.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +29 -29
  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 +40 -40
  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 +36 -36
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +47 -47
  16. package/dist/bin/pushary-disconnect.js +31 -31
  17. package/dist/bin/pushary-display-hook.js +123 -2
  18. package/dist/bin/pushary-doctor.js +48 -48
  19. package/dist/bin/pushary-elicitation-hook.js +28 -28
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +32 -32
  22. package/dist/bin/pushary-hook.js +36 -36
  23. package/dist/bin/pushary-login.js +23 -23
  24. package/dist/bin/pushary-logout.js +32 -32
  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 +28 -28
  28. package/dist/bin/pushary-opencode-bridge.js +22 -22
  29. package/dist/bin/pushary-opencode-hook.js +33 -33
  30. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  31. package/dist/bin/pushary-permission-hook.js +36 -36
  32. package/dist/bin/pushary-post-hook.js +31 -31
  33. package/dist/bin/pushary-prompt-hook.js +28 -28
  34. package/dist/bin/pushary-session-end-hook.js +28 -28
  35. package/dist/bin/pushary-session-start-hook.js +40 -40
  36. package/dist/bin/pushary-sessions.js +12 -12
  37. package/dist/bin/pushary-setup.js +59 -59
  38. package/dist/bin/pushary-stats.js +5 -5
  39. package/dist/bin/pushary-status.js +37 -37
  40. package/dist/bin/pushary-stop-hook.js +28 -28
  41. package/dist/bin/pushary-stopfailure-hook.js +28 -28
  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 +26 -26
  45. package/dist/bin/pushary-upgrade.js +48 -48
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-SM4LDZXZ.js → chunk-2VTIVLLK.js} +3 -3
  49. package/dist/{chunk-NBGWQ2ZM.js → chunk-3DW5OCS2.js} +1 -1
  50. package/dist/{chunk-6XLFC43B.js → chunk-3PAM7BQJ.js} +5 -5
  51. package/dist/{chunk-NMVHN3HC.js → chunk-4ARB3SYI.js} +1 -1
  52. package/dist/{chunk-FVELY3OX.js → chunk-4SKEGBFV.js} +3 -3
  53. package/dist/{chunk-ADRV4PAY.js → chunk-53LLER7E.js} +1 -1
  54. package/dist/{chunk-LLFO2T37.js → chunk-5AL5W2HQ.js} +3 -3
  55. package/dist/{chunk-K3I636LG.js → chunk-5G55TWT5.js} +5 -5
  56. package/dist/{chunk-DOCQOW3H.js → chunk-5UHGILNO.js} +1 -1
  57. package/dist/{chunk-ZSBMV36A.js → chunk-65MRCZGE.js} +5 -5
  58. package/dist/{chunk-5ZFKMWGK.js → chunk-6LJVKWV7.js} +5 -5
  59. package/dist/{chunk-A3ECMJW7.js → chunk-6RD6RNJY.js} +4 -4
  60. package/dist/{chunk-S6RAM5NS.js → chunk-AKGNLKZP.js} +2 -2
  61. package/dist/{chunk-OVUXENQ3.js → chunk-ATHP6SIZ.js} +2 -2
  62. package/dist/{chunk-VT2INEAF.js → chunk-B4MK2ZX2.js} +3 -3
  63. package/dist/{chunk-4OVUK56V.js → chunk-BBE7UITT.js} +6 -6
  64. package/dist/{chunk-IZ3WAW32.js → chunk-BLSGQHGW.js} +3 -3
  65. package/dist/{chunk-XOREUXPV.js → chunk-CHKSE6TO.js} +1 -1
  66. package/dist/{chunk-Z3FLO3TN.js → chunk-DN7PXEXE.js} +6 -6
  67. package/dist/{chunk-LRRQRF6V.js → chunk-EYQZC5IV.js} +2 -2
  68. package/dist/{chunk-LGXPSL5B.js → chunk-FJMZDIKP.js} +2 -2
  69. package/dist/{chunk-2GHNWRWN.js → chunk-FUXTIM33.js} +5 -5
  70. package/dist/{chunk-TJXUS7V2.js → chunk-GAKYGHUR.js} +1 -1
  71. package/dist/{chunk-X6RQS3B4.js → chunk-GAO33I7L.js} +4 -4
  72. package/dist/{chunk-RCBJ4GCY.js → chunk-GC75Q5P2.js} +5 -5
  73. package/dist/chunk-GETSAD5F.js +129 -0
  74. package/dist/{chunk-AKSUNBT6.js → chunk-GIK5P25V.js} +5 -5
  75. package/dist/{chunk-CMLH7XKQ.js → chunk-GQHIUZRG.js} +12 -12
  76. package/dist/{chunk-EAIHDQW6.js → chunk-H4O3CV5W.js} +4 -4
  77. package/dist/{chunk-6XROU22D.js → chunk-H6FDFP6W.js} +83 -28
  78. package/dist/{chunk-SI6YS6Q4.js → chunk-HAOO2MNV.js} +10 -10
  79. package/dist/{chunk-4XF3KIK7.js → chunk-HJOXLNYN.js} +3 -3
  80. package/dist/{chunk-XF7FUP3A.js → chunk-I2DSQVSB.js} +1 -1
  81. package/dist/{chunk-UZZPQQI3.js → chunk-IC6ARAAT.js} +5 -5
  82. package/dist/{chunk-CPMJBRKT.js → chunk-IXXH6ZDQ.js} +2 -2
  83. package/dist/{chunk-KVJC5ZWY.js → chunk-JC2E7D2W.js} +1 -1
  84. package/dist/{chunk-O7TXZAXL.js → chunk-JOABO2PX.js} +5 -5
  85. package/dist/{chunk-C5H5V5LW.js → chunk-K4PJXC32.js} +1 -1
  86. package/dist/{chunk-VQFOA64S.js → chunk-KMADAVW6.js} +1 -1
  87. package/dist/{chunk-URCTIW2K.js → chunk-KUVXFNHY.js} +10 -10
  88. package/dist/{chunk-Z3O63BK6.js → chunk-L6IKTYMZ.js} +6 -6
  89. package/dist/{chunk-NZZI77JY.js → chunk-LH7NQSUC.js} +1 -1
  90. package/dist/{chunk-WBV7IRV5.js → chunk-LIZZSMUD.js} +8 -8
  91. package/dist/{chunk-QWF6SPFG.js → chunk-LRF4XS6M.js} +3 -3
  92. package/dist/{chunk-NVRNS263.js → chunk-MGGN37IW.js} +266 -19
  93. package/dist/{chunk-OLOGC5FB.js → chunk-N2IP7IDG.js} +1 -1
  94. package/dist/{chunk-AWKKAGLD.js → chunk-NBEFOUMK.js} +3 -3
  95. package/dist/{chunk-BYMM5NWM.js → chunk-NKSOSZZU.js} +2 -2
  96. package/dist/{chunk-A276HQFV.js → chunk-NLG5BY2M.js} +1 -1
  97. package/dist/{chunk-YVQWGCWS.js → chunk-NTTHRLDQ.js} +1 -1
  98. package/dist/{chunk-2P22GQEF.js → chunk-NVYEQLD5.js} +2 -2
  99. package/dist/{chunk-PAI2T23S.js → chunk-PX2MOPB2.js} +1 -1
  100. package/dist/{chunk-R5NFIWEU.js → chunk-Q3JHO3EJ.js} +1 -1
  101. package/dist/{chunk-3MFQZIFR.js → chunk-QAS67ZJH.js} +1 -1
  102. package/dist/{chunk-RLAZPTYE.js → chunk-QQ4U4NST.js} +7 -7
  103. package/dist/{chunk-MQ7D3BUL.js → chunk-QRPHWWHI.js} +2 -2
  104. package/dist/{chunk-ILJKJHTF.js → chunk-QWIWACGD.js} +1 -1
  105. package/dist/{chunk-HIGRCM4Q.js → chunk-RSV25NAF.js} +1 -1
  106. package/dist/{chunk-7TGORNMH.js → chunk-RXGEWDA2.js} +38 -26
  107. package/dist/{chunk-2DYBA2II.js → chunk-SFZWZHZB.js} +2 -2
  108. package/dist/{chunk-DSRSXB4C.js → chunk-SO5DEUCS.js} +7 -7
  109. package/dist/{chunk-I6NA76CJ.js → chunk-SSW4SERP.js} +1 -1
  110. package/dist/{chunk-EPPG7UYT.js → chunk-T6ZGTBHT.js} +4 -4
  111. package/dist/{chunk-BZS3DN6S.js → chunk-TDYAVCJ3.js} +4 -4
  112. package/dist/{chunk-P462IBX7.js → chunk-TMJRKWWK.js} +5 -5
  113. package/dist/{chunk-7ALRPLO5.js → chunk-TUBI75B7.js} +1 -1
  114. package/dist/{chunk-WOVJVQ7C.js → chunk-TW6BQOPH.js} +6 -6
  115. package/dist/{chunk-EWFY4X2R.js → chunk-TX3IJUL7.js} +6 -6
  116. package/dist/{chunk-SZYC2YXC.js → chunk-VVDJCJ3P.js} +2 -2
  117. package/dist/{chunk-GDIIFHLE.js → chunk-VWJ5KDMM.js} +4 -4
  118. package/dist/{chunk-NBU6LMWC.js → chunk-WCSSU6QW.js} +4 -4
  119. package/dist/{chunk-UGARTFYN.js → chunk-WFE4RAWD.js} +1 -1
  120. package/dist/{chunk-6CU5IOYP.js → chunk-WUZM74HI.js} +4 -4
  121. package/dist/{chunk-LQGWJN7G.js → chunk-X7BHVGGH.js} +1 -1
  122. package/dist/{chunk-QYUKN27D.js → chunk-YBVDF4NV.js} +4 -4
  123. package/dist/{chunk-TBUVYP3M.js → chunk-YHA5L6D3.js} +3 -3
  124. package/dist/{chunk-QAQBKLO3.js → chunk-YHHQICQD.js} +3 -3
  125. package/dist/{chunk-TXOQQ3MV.js → chunk-YINXG75Q.js} +4 -4
  126. package/dist/{chunk-PXBMEKOX.js → chunk-ZGPUVZZ6.js} +2 -2
  127. package/dist/{chunk-PDYGEI4J.js → chunk-ZNDLGXKO.js} +6 -6
  128. package/dist/{chunk-QD5ZJA5S.js → chunk-ZSJDCRBA.js} +1 -1
  129. package/dist/{chunk-7IP5CIP4.js → chunk-ZVIF4O6V.js} +2 -2
  130. package/dist/{codex-app-cards-switch-EVGZNOVW.js → codex-app-cards-switch-325EWQUA.js} +12 -12
  131. package/dist/{codex-card-routing-XMQEWBVZ.js → codex-card-routing-NXI4P7PB.js} +2 -2
  132. package/dist/{codex-desktop-launch-XV5US6DV.js → codex-desktop-launch-3OAHHDWE.js} +3 -3
  133. package/dist/{codex-session-launch-G2YTBANF.js → codex-session-launch-YB4LGTG2.js} +20 -20
  134. package/dist/{config-YM55MYXX.js → config-4FJ7KK75.js} +3 -3
  135. package/dist/{global-upgrade-AKKW3YEJ.js → global-upgrade-E4UKP2KG.js} +9 -9
  136. package/dist/{identity-4NX35LHS.js → identity-VQNJSXZO.js} +4 -4
  137. package/dist/{live-capabilities-5ATYDLAL.js → live-capabilities-YJW4CU7J.js} +4 -4
  138. package/dist/{paths-J4VN4755.js → paths-FOJGTYX4.js} +3 -3
  139. package/dist/reapply-Q2MIQ4A7.js +76 -0
  140. package/dist/src/index.js +34 -34
  141. package/dist/{upgrade-lock-4PXBDTIV.js → upgrade-lock-MGX4PJQZ.js} +4 -4
  142. package/dist/{usage-ZLVHS47G.js → usage-24DU5SWS.js} +3 -3
  143. package/package.json +1 -1
  144. package/dist/chunk-FUGK6M6S.js +0 -69
  145. package/dist/reapply-MI5A4MM3.js +0 -76
@@ -1,34 +1,36 @@
1
1
  import {
2
2
  forgetEveryPhoneApproval,
3
3
  forgetPhoneApproval,
4
- holdsPhoneApproval,
4
+ markStepSettledWithoutAYes,
5
5
  phoneApprovalSourceFor,
6
6
  rememberPhoneApproval,
7
+ restorePhoneApprovals,
8
+ setAsidePhoneApprovalsOfOtherCalls,
7
9
  takePhoneApproval
8
- } from "./chunk-FUGK6M6S.js";
10
+ } from "./chunk-GETSAD5F.js";
9
11
  import {
10
12
  claudeSettingsLocationFor,
11
13
  readClaudePermissionRules
12
- } from "./chunk-BYMM5NWM.js";
14
+ } from "./chunk-NKSOSZZU.js";
13
15
  import {
14
16
  defersToNativeMode
15
- } from "./chunk-DOCQOW3H.js";
17
+ } from "./chunk-5UHGILNO.js";
16
18
  import {
17
19
  reportMachineDenial
18
- } from "./chunk-NBU6LMWC.js";
20
+ } from "./chunk-WCSSU6QW.js";
19
21
  import {
20
22
  isGatingMoment,
21
23
  recordKeylessMoment
22
- } from "./chunk-LQGWJN7G.js";
24
+ } from "./chunk-X7BHVGGH.js";
23
25
  import {
24
26
  isAdmitted,
25
27
  readAdmissionRules
26
- } from "./chunk-P462IBX7.js";
28
+ } from "./chunk-TMJRKWWK.js";
27
29
  import {
28
30
  activeHookSource,
29
31
  activeIdentity,
30
32
  namedSource
31
- } from "./chunk-Z3FLO3TN.js";
33
+ } from "./chunk-DN7PXEXE.js";
32
34
  import {
33
35
  DEFAULT_SESSION,
34
36
  allow,
@@ -70,7 +72,7 @@ import {
70
72
  storedWaitDeadline,
71
73
  sweepFilesOlderThan,
72
74
  userScope
73
- } from "./chunk-6XROU22D.js";
75
+ } from "./chunk-H6FDFP6W.js";
74
76
  import {
75
77
  UNNAMED_ACTION,
76
78
  deriveAction,
@@ -81,7 +83,7 @@ import {
81
83
  patchDeletesFiles,
82
84
  permissionDeniedAction,
83
85
  scopePathFor
84
- } from "./chunk-OLOGC5FB.js";
86
+ } from "./chunk-N2IP7IDG.js";
85
87
  import {
86
88
  askUser,
87
89
  cancelQuestion,
@@ -95,30 +97,30 @@ import {
95
97
  sendNotification,
96
98
  waitForQuestion,
97
99
  withdrawQuestion
98
- } from "./chunk-EWFY4X2R.js";
100
+ } from "./chunk-TX3IJUL7.js";
99
101
  import {
100
102
  branchFor,
101
103
  projectNameFor,
102
104
  repoKeyFor,
103
105
  repositoryScopeFor
104
- } from "./chunk-XF7FUP3A.js";
106
+ } from "./chunk-I2DSQVSB.js";
105
107
  import {
106
108
  getMachineId
107
- } from "./chunk-NZZI77JY.js";
109
+ } from "./chunk-LH7NQSUC.js";
108
110
  import {
109
111
  POSTTOOLUSE_MIRRORED_TOOLS
110
- } from "./chunk-PXBMEKOX.js";
112
+ } from "./chunk-ZGPUVZZ6.js";
111
113
  import {
112
114
  getApiKey,
113
115
  getBaseUrl,
114
116
  isMalformedApiKeyError
115
- } from "./chunk-S6RAM5NS.js";
117
+ } from "./chunk-AKGNLKZP.js";
116
118
  import {
117
119
  writeFileAtomic
118
120
  } from "./chunk-PM2NRK6Y.js";
119
121
  import {
120
122
  NPX_LATEST_COMMAND
121
- } from "./chunk-NBGWQ2ZM.js";
123
+ } from "./chunk-3DW5OCS2.js";
122
124
  import {
123
125
  AGENT_QUESTION_STRATEGY,
124
126
  AGENT_QUESTION_TOOL,
@@ -187,7 +189,7 @@ import {
187
189
  terminalStaysLiveForTheCall,
188
190
  timeoutActionWithoutLocalPrompt,
189
191
  unapprovedScopeReason
190
- } from "./chunk-NVRNS263.js";
192
+ } from "./chunk-MGGN37IW.js";
191
193
 
192
194
  // src/terminal-answer-watch.ts
193
195
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -362,9 +364,12 @@ var ACTIVE_PROFILE = ACTIVE_SOURCE === null ? void 0 : hookCompatibleProfileBySo
362
364
  var PUSHARY_IS_SOLE_GATE = ACTIVE_PROFILE?.soleGate != null;
363
365
  var PROMPT_FOLLOWS_EVERY_PRETOOLUSE_ALLOW = ACTIVE_PROFILE?.promptFollowsPreToolUseAllow === true;
364
366
  var phoneApprovalSourceOf = (input) => phoneApprovalSourceFor(ACTIVE_SOURCE, ACTIVE_PROFILE, input.permission_mode);
365
- var holdsPhoneApprovalFor = (input) => {
367
+ var takeThePhoneYesFor = (input) => {
366
368
  const source = phoneApprovalSourceOf(input);
367
- return source !== null && holdsPhoneApproval(source, input);
369
+ if (source === null) return void 0;
370
+ const approvedCall = takePhoneApproval(source, input);
371
+ if (approvedCall === void 0) markStepSettledWithoutAYes(source, input);
372
+ return approvedCall;
368
373
  };
369
374
  var agentNameIn = (projectName) => `${ACTIVE_AGENT.label} - ${projectName}`;
370
375
  var allowWithInput = (updatedInput) => claudePreToolUseOutput("allow", void 0, updatedInput);
@@ -832,7 +837,6 @@ var standingRefusalOf = async (input, canonical) => {
832
837
  };
833
838
  var decidePreToolUse = async (input, canonical) => {
834
839
  const phoneApprovalSource = phoneApprovalSourceOf(input);
835
- if (phoneApprovalSource) forgetPhoneApproval(phoneApprovalSource, input);
836
840
  if (isPusharyOwnTool(input.tool_name)) return settledAs("mcp_tool", void 0);
837
841
  if (canonical !== null && isNeverAskedToolInThisAgent(input)) return standingRefusalOf(input, canonical);
838
842
  if (isRefusalsOnlyCallInClaudeCode(input) && !mcpCallWaitsForSomeoneElse(input)) {
@@ -901,13 +905,22 @@ var decidePreToolUse = async (input, canonical) => {
901
905
  return settledAs("undecided", undecidedCall(SOLE_GATE_UNDECIDED_REASON));
902
906
  }
903
907
  };
904
- var forgetEveryYesUnlessThePhoneSaidYes = (input, decision) => {
908
+ var forgetOwnYesAndSetAsideOthers = (input) => {
905
909
  const source = phoneApprovalSourceOf(input);
906
- if (source !== null && !decision.phoneSaidYes) forgetEveryPhoneApproval(source, input);
910
+ if (source === null) return null;
911
+ forgetPhoneApproval(source, input);
912
+ return setAsidePhoneApprovalsOfOtherCalls(source, input);
913
+ };
914
+ var restoreOthersIfThePhoneSaidYesElseForgetEvery = (input, decision, setAside) => {
915
+ const source = phoneApprovalSourceOf(input);
916
+ if (source === null) return;
917
+ if (!decision.phoneSaidYes) forgetEveryPhoneApproval(source, input);
918
+ else if (setAside !== null) restorePhoneApprovals(setAside);
907
919
  };
908
920
  var handlePreToolUse = async (input, canonical) => {
921
+ const setAside = forgetOwnYesAndSetAsideOthers(input);
909
922
  const decision = await decidePreToolUse(input, canonical);
910
- forgetEveryYesUnlessThePhoneSaidYes(input, decision);
923
+ restoreOthersIfThePhoneSaidYesElseForgetEvery(input, decision, setAside);
911
924
  rememberGateOutcome(input, decision.outcome);
912
925
  return decision.output;
913
926
  };
@@ -996,7 +1009,8 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
996
1009
  const claudeRules = claudePermissionRulesFor(input);
997
1010
  const callFacts = terminalLiveFactsOf(input);
998
1011
  const questionBesideTheDialog = claudeQuestionAskedInBothPlaces(callFacts);
999
- if (canonical === void 0 && !claudeRulesMayCover(input, claudeRules) && isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) && !terminalStaysLiveForTheCall(callFacts) && !questionBesideTheDialog && !holdsPhoneApprovalFor(input)) return void 0;
1012
+ const approvedCall = takeThePhoneYesFor(input);
1013
+ if (canonical === void 0 && !claudeRulesMayCover(input, claudeRules) && isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) && !terminalStaysLiveForTheCall(callFacts) && !questionBesideTheDialog && approvedCall === void 0) return void 0;
1000
1014
  let apiKey;
1001
1015
  try {
1002
1016
  apiKey = getApiKey();
@@ -1022,8 +1036,6 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
1022
1036
  if (agentQuestionStrategy(ACTIVE_SOURCE, "PermissionRequest", input.tool_name) === AGENT_QUESTION_STRATEGY.native) return void 0;
1023
1037
  if (isApprovedOnlyAtPermissionRequest(ACTIVE_SOURCE, input.tool_name)) return await answerThePlanBesideTheDialog(apiKey, input);
1024
1038
  if (verdict.kind === "gate" && verdict.scopeReason && (canonical?.toolInputs.length ?? 0) > 1) return permReqDeny(SCOPE_BATCH_REASON);
1025
- const phoneApprovalSource = phoneApprovalSourceOf(input);
1026
- const approvedCall = phoneApprovalSource ? takePhoneApproval(phoneApprovalSource, input) : void 0;
1027
1039
  const preToolUseAllowLeftThePrompt = approvedCall !== void 0 || PROMPT_FOLLOWS_EVERY_PRETOOLUSE_ALLOW && verdict.kind === "allow";
1028
1040
  const handedOff = preToolUseHandsOff(input, gateInput, verdict);
1029
1041
  const terminalLive = terminalStaysLiveForTheCall(callFacts);
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-PXBMEKOX.js";
3
+ } from "./chunk-ZGPUVZZ6.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-X6RQS3B4.js";
8
+ } from "./chunk-GAO33I7L.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -3,7 +3,7 @@ import {
3
3
  openCodePluginArgv,
4
4
  openCodePluginModule,
5
5
  renderOpenCodePlugin
6
- } from "./chunk-I6NA76CJ.js";
6
+ } from "./chunk-SSW4SERP.js";
7
7
  import {
8
8
  OPENCODE_FAILED_EVENT,
9
9
  OPENCODE_IDLE_EVENT,
@@ -12,17 +12,17 @@ import {
12
12
  OPENCODE_PLUGIN_SIBLING,
13
13
  OPENCODE_PLUGIN_SIBLING_CONTENTS,
14
14
  OPENCODE_SUBAGENT_IDLE_EVENT
15
- } from "./chunk-XOREUXPV.js";
15
+ } from "./chunk-CHKSE6TO.js";
16
16
  import {
17
17
  compatibleConfigFile
18
- } from "./chunk-Z3FLO3TN.js";
18
+ } from "./chunk-DN7PXEXE.js";
19
19
  import {
20
20
  hookOwnerOf,
21
21
  hookOwnerOfCommands
22
- } from "./chunk-EPPG7UYT.js";
22
+ } from "./chunk-T6ZGTBHT.js";
23
23
  import {
24
24
  AGENT_CHOICES
25
- } from "./chunk-VQFOA64S.js";
25
+ } from "./chunk-KMADAVW6.js";
26
26
  import {
27
27
  OPENCODE_INSTRUCTIONS_LABEL,
28
28
  bridgeStub,
@@ -36,7 +36,7 @@ import {
36
36
  resolveBridgeStub,
37
37
  vscodePluginDir,
38
38
  windowsNodeLauncherFor
39
- } from "./chunk-PXBMEKOX.js";
39
+ } from "./chunk-ZGPUVZZ6.js";
40
40
  import {
41
41
  readJsonSafe
42
42
  } from "./chunk-PM2NRK6Y.js";
@@ -46,7 +46,7 @@ import {
46
46
  OPENCODE_APPROVAL_EVENT,
47
47
  hookCompatibleProfile,
48
48
  isRecord
49
- } from "./chunk-NVRNS263.js";
49
+ } from "./chunk-MGGN37IW.js";
50
50
 
51
51
  // src/opencode-config.ts
52
52
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-XOREUXPV.js";
9
+ } from "./chunk-CHKSE6TO.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-VQFOA64S.js";
3
+ } from "./chunk-KMADAVW6.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-A276HQFV.js";
6
+ } from "./chunk-NLG5BY2M.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-PXBMEKOX.js";
19
+ } from "./chunk-ZGPUVZZ6.js";
20
20
  import {
21
21
  CURSOR_GATE_EVENTS,
22
22
  HOOK_BUDGETS,
23
23
  HOOK_LOCATOR_BINARY,
24
24
  hookCommandHoldBudget
25
- } from "./chunk-NVRNS263.js";
25
+ } from "./chunk-MGGN37IW.js";
26
26
 
27
27
  // src/gemini-config.ts
28
28
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS,
3
3
  HERMES_HISTORY_HELPER_COMMAND
4
- } from "./chunk-TBUVYP3M.js";
4
+ } from "./chunk-YHA5L6D3.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-QYUKN27D.js";
10
+ } from "./chunk-YBVDF4NV.js";
11
11
  import {
12
12
  retryAgentCommand
13
- } from "./chunk-FVELY3OX.js";
13
+ } from "./chunk-4SKEGBFV.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-NBGWQ2ZM.js";
16
+ } from "./chunk-3DW5OCS2.js";
17
17
 
18
18
  // src/setup/codex-trust.ts
19
19
  var CODEX_TRUST_TELEMETRY = {
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-LLFO2T37.js";
4
+ } from "./chunk-5AL5W2HQ.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-URCTIW2K.js";
7
+ } from "./chunk-KUVXFNHY.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-Z3FLO3TN.js";
10
+ } from "./chunk-DN7PXEXE.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-EWFY4X2R.js";
13
+ } from "./chunk-TX3IJUL7.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-NVRNS263.js";
19
+ } from "./chunk-MGGN37IW.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,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-NVRNS263.js";
4
+ } from "./chunk-MGGN37IW.js";
5
5
 
6
6
  // src/setup/phone-check.ts
7
7
  var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-4OVUK56V.js";
17
+ } from "./chunk-BBE7UITT.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-PAI2T23S.js";
32
+ } from "./chunk-PX2MOPB2.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-4XF3KIK7.js";
35
+ } from "./chunk-HJOXLNYN.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-SZYC2YXC.js";
38
+ } from "./chunk-VVDJCJ3P.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-NBGWQ2ZM.js";
41
+ } from "./chunk-3DW5OCS2.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-NVRNS263.js";
45
+ } from "./chunk-MGGN37IW.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-6XLFC43B.js";
11
+ } from "./chunk-3PAM7BQJ.js";
12
12
  import {
13
13
  fetchAsCredential
14
- } from "./chunk-KVJC5ZWY.js";
14
+ } from "./chunk-JC2E7D2W.js";
15
15
  import {
16
16
  installNetworkDefaults,
17
17
  isNetworkFailure
18
- } from "./chunk-QAQBKLO3.js";
18
+ } from "./chunk-YHHQICQD.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-PXBMEKOX.js";
21
+ } from "./chunk-ZGPUVZZ6.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-S6RAM5NS.js";
25
+ } from "./chunk-AKGNLKZP.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -40,7 +40,7 @@ import {
40
40
  isRecord,
41
41
  truncateLine,
42
42
  waitEndAnswered
43
- } from "./chunk-NVRNS263.js";
43
+ } from "./chunk-MGGN37IW.js";
44
44
 
45
45
  // src/api.ts
46
46
  import { randomUUID } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-S6RAM5NS.js";
3
+ } from "./chunk-AKGNLKZP.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-NVRNS263.js";
6
+ } from "./chunk-MGGN37IW.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-DSRSXB4C.js";
3
+ } from "./chunk-SO5DEUCS.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-IZ3WAW32.js";
6
+ } from "./chunk-BLSGQHGW.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-PXBMEKOX.js";
9
+ } from "./chunk-ZGPUVZZ6.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-PM2NRK6Y.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-NVRNS263.js";
16
+ } from "./chunk-MGGN37IW.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;
@@ -4,21 +4,21 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-6XROU22D.js";
7
+ } from "./chunk-H6FDFP6W.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-OLOGC5FB.js";
11
+ } from "./chunk-N2IP7IDG.js";
12
12
  import {
13
13
  projectNameFor
14
- } from "./chunk-XF7FUP3A.js";
14
+ } from "./chunk-I2DSQVSB.js";
15
15
  import {
16
16
  PERMISSION_ALLOWED_EVENT,
17
17
  PERMISSION_DENIED_EVENT,
18
18
  machineApprovalFor,
19
19
  machineDecisionFor,
20
20
  wireVerdictFor
21
- } from "./chunk-NVRNS263.js";
21
+ } from "./chunk-MGGN37IW.js";
22
22
 
23
23
  // src/machine-decision-audit.ts
24
24
  var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isRecord
3
- } from "./chunk-NVRNS263.js";
3
+ } from "./chunk-MGGN37IW.js";
4
4
 
5
5
  // src/config-document.ts
6
6
  import { parse, stringify } from "smol-toml";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-Z3FLO3TN.js";
4
+ } from "./chunk-DN7PXEXE.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-EPPG7UYT.js";
7
+ } from "./chunk-T6ZGTBHT.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-PXBMEKOX.js";
11
+ } from "./chunk-ZGPUVZZ6.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-NVRNS263.js";
14
+ } from "./chunk-MGGN37IW.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-NVRNS263.js";
3
+ } from "./chunk-MGGN37IW.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -16,7 +16,7 @@ import {
16
16
  uninstallOpenClawPlugin,
17
17
  unsetOpenClawEntry,
18
18
  writeOpenClawEntry
19
- } from "./chunk-QWF6SPFG.js";
19
+ } from "./chunk-LRF4XS6M.js";
20
20
  import {
21
21
  needsShell
22
22
  } from "./chunk-3PSNUHC5.js";
@@ -28,10 +28,10 @@ import {
28
28
  openClawDirectoriesToLookIn,
29
29
  openClawPluginFolder,
30
30
  openClawSetupReceiptDirectory
31
- } from "./chunk-PXBMEKOX.js";
31
+ } from "./chunk-ZGPUVZZ6.js";
32
32
  import {
33
33
  resolvePathBinary
34
- } from "./chunk-X6RQS3B4.js";
34
+ } from "./chunk-GAO33I7L.js";
35
35
  import {
36
36
  readJsonSafe,
37
37
  writeJsonAtomic
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-CXQWDQCJ.js";
43
43
  import {
44
44
  isRecord
45
- } from "./chunk-NVRNS263.js";
45
+ } from "./chunk-MGGN37IW.js";
46
46
 
47
47
  // src/hermes/plugin-payload.ts
48
48
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serviceNodeFor
3
- } from "./chunk-PDYGEI4J.js";
3
+ } from "./chunk-ZNDLGXKO.js";
4
4
  import {
5
5
  OWNER_ONLY_FILE_MODE,
6
6
  readOwnerOnlyJson
@@ -14,14 +14,14 @@ import {
14
14
  codexHome,
15
15
  codexHooksJsonIn,
16
16
  isPusharyCodexCommand
17
- } from "./chunk-PXBMEKOX.js";
17
+ } from "./chunk-ZGPUVZZ6.js";
18
18
  import {
19
19
  DEFAULT_WINDOWS_PATHEXT,
20
20
  DIRECTLY_STARTABLE_EXTENSIONS,
21
21
  plannedGlobalPackage,
22
22
  readGlobalPrefix,
23
23
  resolvePathBinary
24
- } from "./chunk-X6RQS3B4.js";
24
+ } from "./chunk-GAO33I7L.js";
25
25
  import {
26
26
  getPackageVersion,
27
27
  globalTranscriptRegisterEntry
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-NZZI77JY.js";
3
+ } from "./chunk-LH7NQSUC.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-S6RAM5NS.js";
6
+ } from "./chunk-AKGNLKZP.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-NVRNS263.js";
16
+ } from "./chunk-MGGN37IW.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-6XLFC43B.js";
3
+ } from "./chunk-3PAM7BQJ.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-KVJC5ZWY.js";
6
+ } from "./chunk-JC2E7D2W.js";
7
7
  import {
8
8
  malformedApiKeyMessage
9
- } from "./chunk-S6RAM5NS.js";
9
+ } from "./chunk-AKGNLKZP.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-NBGWQ2ZM.js";
12
+ } from "./chunk-3DW5OCS2.js";
13
13
 
14
14
  // src/mcp-stdio-bridge.ts
15
15
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  quoteIfNeeded,
7
7
  shellDoubleQuoted
8
- } from "./chunk-X6RQS3B4.js";
8
+ } from "./chunk-GAO33I7L.js";
9
9
  import {
10
10
  writeFileAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -24,7 +24,7 @@ import {
24
24
  PUSHARY_HOSTS,
25
25
  PUSHARY_TOOL_PREFIX,
26
26
  withHookHoldBudget
27
- } from "./chunk-NVRNS263.js";
27
+ } from "./chunk-MGGN37IW.js";
28
28
 
29
29
  // src/setup/paths.ts
30
30
  import { createHash as createHash2 } from "crypto";
@@ -4,20 +4,20 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-NZZI77JY.js";
7
+ } from "./chunk-LH7NQSUC.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-IZ3WAW32.js";
10
+ } from "./chunk-BLSGQHGW.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-PXBMEKOX.js";
13
+ } from "./chunk-ZGPUVZZ6.js";
14
14
  import {
15
15
  resolveGlobalBinary,
16
16
  withoutNpmInstallConsent
17
- } from "./chunk-X6RQS3B4.js";
17
+ } from "./chunk-GAO33I7L.js";
18
18
  import {
19
19
  getApiKey
20
- } from "./chunk-S6RAM5NS.js";
20
+ } from "./chunk-AKGNLKZP.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-NVRNS263.js";
36
+ } from "./chunk-MGGN37IW.js";
37
37
 
38
38
  // src/daemon-entry-guard.ts
39
39
  import { mkdirSync, readFileSync } from "fs";