pushary 1.9.229 → 1.9.231

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 (143) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/{api-FZWBPBK5.js → api-2UFTCL6P.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 +8 -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 +35 -35
  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 +35 -35
  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 +12 -12
  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-INUTZSZ2.js → chunk-245CIXWT.js} +1 -1
  49. package/dist/{chunk-T55SUYTK.js → chunk-2A7GUQS7.js} +6 -6
  50. package/dist/{chunk-OTLSLAYC.js → chunk-2C32F25J.js} +3 -3
  51. package/dist/{chunk-EBNEIECN.js → chunk-3G4EAIJN.js} +16 -5
  52. package/dist/{chunk-WLI5AK4W.js → chunk-3HZ2QTCI.js} +12 -12
  53. package/dist/{chunk-YL7IS222.js → chunk-3WHGI7GM.js} +5 -5
  54. package/dist/{chunk-XE7J3P65.js → chunk-47OCEL5C.js} +1 -1
  55. package/dist/{chunk-FXGW5PYE.js → chunk-4WEDINFL.js} +4 -4
  56. package/dist/{chunk-35QDWJYF.js → chunk-54VO6N4L.js} +5 -5
  57. package/dist/{chunk-RPQVCRXM.js → chunk-5JWYKKWH.js} +2 -2
  58. package/dist/{chunk-VGGJ6JUL.js → chunk-5UCQBBW3.js} +1 -1
  59. package/dist/{chunk-2XFZE4WB.js → chunk-63TBM5P6.js} +2 -2
  60. package/dist/{chunk-E3VBNFAY.js → chunk-63YSBJU4.js} +3 -3
  61. package/dist/{chunk-MHOW2X3O.js → chunk-67FGXG4K.js} +4 -4
  62. package/dist/{chunk-XX3LFLRL.js → chunk-6CW2SRVG.js} +1 -1
  63. package/dist/{chunk-NISPP3L6.js → chunk-6H4WS6V7.js} +5 -5
  64. package/dist/{chunk-VB6MYKK4.js → chunk-6HRHS6D5.js} +5 -3
  65. package/dist/{chunk-GR4MDWJB.js → chunk-6QB5NCSL.js} +1 -1
  66. package/dist/{chunk-OPFQNM7J.js → chunk-6UOZSRJ5.js} +2 -2
  67. package/dist/{chunk-TBICLJ75.js → chunk-7Z6AELYO.js} +4 -4
  68. package/dist/{chunk-2YPE2YZ4.js → chunk-AH7LBQFN.js} +8 -8
  69. package/dist/{chunk-SQ444NOU.js → chunk-CO2NX3IQ.js} +2 -2
  70. package/dist/{chunk-U56K5R3V.js → chunk-CZ5LJ5NL.js} +2 -2
  71. package/dist/{chunk-YUZMQIFF.js → chunk-D5VPAPIZ.js} +5 -5
  72. package/dist/{chunk-ZENZUSTC.js → chunk-DWFD4VZ4.js} +2 -2
  73. package/dist/{chunk-WQYECJM7.js → chunk-EC4KHBXK.js} +1 -1
  74. package/dist/{chunk-A3MVG5ZA.js → chunk-EO3BUYCB.js} +4 -4
  75. package/dist/{chunk-K3ECNIYM.js → chunk-F6GGIJV6.js} +2 -2
  76. package/dist/{chunk-PAMJH6NO.js → chunk-FCQDZMVQ.js} +5 -5
  77. package/dist/{chunk-M45A5FKV.js → chunk-FY3KTLDH.js} +22 -17
  78. package/dist/{chunk-PRJ4WFAX.js → chunk-GF7YF2SX.js} +4 -4
  79. package/dist/{chunk-X7WSH6LC.js → chunk-GJLTSGUX.js} +4 -4
  80. package/dist/{chunk-VVXZCLXU.js → chunk-H7H3ILT4.js} +12 -12
  81. package/dist/{chunk-B2SCB7HA.js → chunk-HZ5IKJGX.js} +5 -5
  82. package/dist/{chunk-MDUXVICE.js → chunk-I2GMUJYL.js} +3 -3
  83. package/dist/{chunk-PPRXZTIA.js → chunk-IYNGFZZE.js} +2 -2
  84. package/dist/{chunk-XEWJSAYJ.js → chunk-JCPCIMUP.js} +2 -2
  85. package/dist/{chunk-LLEMAWUQ.js → chunk-JHTPI4C7.js} +10 -10
  86. package/dist/{chunk-DVCI3LT4.js → chunk-JKQ6GWER.js} +2 -2
  87. package/dist/{chunk-QBEM25H5.js → chunk-JOM4VKY5.js} +4 -4
  88. package/dist/{chunk-WQCL3W7S.js → chunk-LB6YKK77.js} +6 -6
  89. package/dist/{chunk-DZABHISP.js → chunk-LF6LPDXK.js} +1 -1
  90. package/dist/{chunk-6U6W5PUV.js → chunk-LTKMKNDZ.js} +1 -1
  91. package/dist/{chunk-7XPV5DIV.js → chunk-LU5ZPLCZ.js} +6 -6
  92. package/dist/{chunk-W2N32PPX.js → chunk-MOHDLFKO.js} +7 -7
  93. package/dist/{chunk-JTQRYOUL.js → chunk-NO42TVP5.js} +7 -7
  94. package/dist/{chunk-R236FVD5.js → chunk-O5NCCAVS.js} +6 -6
  95. package/dist/{chunk-23EZWERU.js → chunk-OGWL3JOP.js} +5 -5
  96. package/dist/{chunk-G6TSLDXX.js → chunk-OIZBOQSL.js} +5 -5
  97. package/dist/{chunk-4VCP3ZXO.js → chunk-PGT6ULAQ.js} +1 -1
  98. package/dist/{chunk-MFWRUMYT.js → chunk-PNYSKM76.js} +1 -1
  99. package/dist/{chunk-3GUYVDK3.js → chunk-PQXRQY5A.js} +9 -9
  100. package/dist/{chunk-3SAJYDXV.js → chunk-PSODQKO5.js} +3 -3
  101. package/dist/{chunk-2RUMZE2W.js → chunk-QEWNCL7T.js} +1 -1
  102. package/dist/{chunk-NEISAZSJ.js → chunk-QFKKKYLM.js} +1 -1
  103. package/dist/{chunk-G2AHI6T3.js → chunk-QSIDVKFU.js} +1 -1
  104. package/dist/{chunk-YCQNGQBN.js → chunk-QXH2NKLR.js} +2 -2
  105. package/dist/{chunk-3BDANUD4.js → chunk-R4IXIES3.js} +2 -2
  106. package/dist/{chunk-OMXJBAVS.js → chunk-RSX65KJ6.js} +4 -4
  107. package/dist/{chunk-ZPMJTP6N.js → chunk-S2EWZXZX.js} +3 -3
  108. package/dist/{chunk-JGZCD72E.js → chunk-SB5PIQAS.js} +6 -6
  109. package/dist/{chunk-232N6YYN.js → chunk-SLFXYW4B.js} +25 -17
  110. package/dist/{chunk-YYNHXTUR.js → chunk-U4KJ4HAQ.js} +1 -1
  111. package/dist/{chunk-FOLN4OC6.js → chunk-UBWQFHJL.js} +2 -2
  112. package/dist/{chunk-MTDXMQY7.js → chunk-VBVSKK3Q.js} +3 -3
  113. package/dist/{chunk-KNBYA7ZN.js → chunk-VHBRDG4D.js} +1 -1
  114. package/dist/{chunk-JM5BGRF7.js → chunk-VHQD3T7C.js} +4 -4
  115. package/dist/{chunk-EP3XTWKM.js → chunk-VNEMQ3HN.js} +1 -1
  116. package/dist/{chunk-GUBKBGRX.js → chunk-W2UNJC4T.js} +3 -3
  117. package/dist/{chunk-N3IUIVOF.js → chunk-WJ65VWBA.js} +3 -3
  118. package/dist/{chunk-436G6M2Q.js → chunk-WNQSPLAA.js} +2 -2
  119. package/dist/{chunk-7ZFBZ66X.js → chunk-XDO2OTVP.js} +4 -4
  120. package/dist/{chunk-LJKYHIEL.js → chunk-XGJTO7YL.js} +5 -5
  121. package/dist/{chunk-OVGASYW6.js → chunk-XHCG3RRW.js} +5 -5
  122. package/dist/{chunk-2ITBFEMY.js → chunk-XHHYNYXF.js} +1 -1
  123. package/dist/{chunk-SOCH2HJN.js → chunk-Y2XF6SNN.js} +1 -1
  124. package/dist/{chunk-2EXFFIJ4.js → chunk-YGAS3ZWI.js} +3 -3
  125. package/dist/{chunk-6UBW5WKJ.js → chunk-YQ36OSAY.js} +1 -1
  126. package/dist/{chunk-4JHJRVPH.js → chunk-ZD47H3RP.js} +3 -3
  127. package/dist/{chunk-EO6IGXP2.js → chunk-ZULGLIP6.js} +1 -1
  128. package/dist/{codex-app-cards-switch-46ZWEF7W.js → codex-app-cards-switch-NOJL57SS.js} +11 -11
  129. package/dist/{codex-card-routing-DIWEEIHR.js → codex-card-routing-CWXAIMEW.js} +2 -2
  130. package/dist/{codex-desktop-launch-ZPKZE3U6.js → codex-desktop-launch-RSE4YIYP.js} +1 -1
  131. package/dist/{codex-session-launch-VL2UKF3X.js → codex-session-launch-DQNTGRK2.js} +20 -20
  132. package/dist/{config-2NLURVCE.js → config-4R6GAALL.js} +3 -3
  133. package/dist/{global-upgrade-FZWODA3N.js → global-upgrade-MKKYZN3R.js} +9 -9
  134. package/dist/{identity-6YAS6M3P.js → identity-FIPASCZP.js} +4 -4
  135. package/dist/{live-capabilities-ELR2PZ6B.js → live-capabilities-N55D4PBN.js} +4 -4
  136. package/dist/{paths-GIPZJ7LI.js → paths-BQZAA7LU.js} +3 -3
  137. package/dist/reapply-GD7WCWPS.js +74 -0
  138. package/dist/src/index.d.ts +9 -10
  139. package/dist/src/index.js +33 -33
  140. package/dist/{upgrade-lock-N7T2FTOI.js → upgrade-lock-U3TDYSFM.js} +4 -4
  141. package/dist/{usage-3QWXHYRT.js → usage-5SUYZN77.js} +3 -3
  142. package/package.json +1 -1
  143. package/dist/reapply-56OSKAMH.js +0 -74
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-JGZCD72E.js";
17
+ } from "./chunk-SB5PIQAS.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-NEISAZSJ.js";
32
+ } from "./chunk-QFKKKYLM.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-N3IUIVOF.js";
35
+ } from "./chunk-WJ65VWBA.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-SQ444NOU.js";
38
+ } from "./chunk-CO2NX3IQ.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-INUTZSZ2.js";
41
+ } from "./chunk-245CIXWT.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-EBNEIECN.js";
45
+ } from "./chunk-3G4EAIJN.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -5,13 +5,13 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-2XFZE4WB.js";
8
+ } from "./chunk-63TBM5P6.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-TBICLJ75.js";
11
+ } from "./chunk-7Z6AELYO.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-EBNEIECN.js";
14
+ } from "./chunk-3G4EAIJN.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";
@@ -4718,9 +4718,11 @@ var withoutDeclinedAgent = (agents, agent) => agents.filter((candidate) => candi
4718
4718
  var FIRST_AUTO_UPDATING_RELEASE = [1, 5, 0];
4719
4719
  var MIN_SAFE_RELEASE = [1, 9, 26];
4720
4720
  var FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES = [1, 9, 223];
4721
+ var FIRST_RELEASE_GROK_ALWAYS_APPROVE_FOLLOWS_BYPASS_STOPS = [1, 9, 228];
4721
4722
  var FIRST_AUTO_UPDATING_CLI_VERSION = formatReleaseVersion(FIRST_AUTO_UPDATING_RELEASE);
4722
4723
  var MIN_SAFE_CLI_VERSION = formatReleaseVersion(MIN_SAFE_RELEASE);
4723
4724
  var FIRST_CLI_VERSION_DENYING_AUTO_APPROVED_MISSES = formatReleaseVersion(FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES);
4725
+ var FIRST_CLI_VERSION_GROK_ALWAYS_APPROVE_FOLLOWS_BYPASS_STOPS = formatReleaseVersion(FIRST_RELEASE_GROK_ALWAYS_APPROVE_FOLLOWS_BYPASS_STOPS);
4724
4726
 
4725
4727
  // ../contracts/src/auto-update-report.ts
4726
4728
  var AUTO_UPDATE_RESULTS = ["updated", "current", "needs_manual", "failed", "finish_pending", "finish_blocked"];
@@ -9487,6 +9489,7 @@ var LINE_RUN = { ordinary: String.raw`[^\ng]`, alsoContinuing: "" };
9487
9489
  var COMMAND_RUN = { ordinary: String.raw`[^\n;&|g]`, alsoContinuing: `|${AMPERSAND_OR_BAR_OF_A_REDIRECT}` };
9488
9490
  var textBeforeTheNextCall = (run, callAfterItsG) => String.raw`${run.ordinary}*(?:(?:\Bg|\bg(?!${callAfterItsG})${run.alsoContinuing})${run.ordinary}*)*`;
9489
9491
  var gitLongOptionOrAnAbbreviation = (name, lettersThatMakeItUnique) => String.raw`--${name.slice(0, lettersThatMakeItUnique)}${[...name.slice(lettersThatMakeItUnique)].reduceRight((rest, letter) => `(?:${letter}${rest})?`, "")}\b`;
9492
+ var DEPLOYS_OR_RELEASES_KEYWORD = /\b(deploy|publish|release)\b/i;
9490
9493
  var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
9491
9494
  { pattern: /\brm\s+-[a-z]*r/i, reason: RISK_REASON.deletesFiles },
9492
9495
  { pattern: new RegExp(String.raw`${RM_AS_A_PROGRAM}${RM_COMMAND_BEFORE_ANOTHER_RM}\s(?:-[a-z]*r[a-z]*|--recursive)\b`, "i"), reason: RISK_REASON.deletesFiles },
@@ -9509,7 +9512,7 @@ var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
9509
9512
  { pattern: /\bdrop\s+(table|database|schema)\b/i, reason: RISK_REASON.dropsATableOrDatabase },
9510
9513
  { pattern: /\bdelete\s+from\b/i, reason: RISK_REASON.deletesRows },
9511
9514
  { pattern: /\btruncate\b/i, reason: RISK_REASON.truncates },
9512
- { pattern: /\b(deploy|publish|release)\b/i, reason: RISK_REASON.deploysOrReleases },
9515
+ { pattern: DEPLOYS_OR_RELEASES_KEYWORD, reason: RISK_REASON.deploysOrReleases },
9513
9516
  { pattern: /\bnpm\s+publish\b/i, reason: RISK_REASON.publishesAPackage },
9514
9517
  { pattern: /\bsudo\b/i, reason: RISK_REASON.runsAsRoot },
9515
9518
  { pattern: /chmod\s+-?R?\s*777/i, reason: RISK_REASON.opensFilePermissions },
@@ -10588,11 +10591,17 @@ var editsAFileThatNeedsAPerson = ({ toolName, toolInputs }) => toolInputs.some((
10588
10591
  const path = extractPolicyArg(toolName, toolInput);
10589
10592
  return path !== void 0 && fileEditNeedsAPerson(toolName, path);
10590
10593
  });
10591
- var runsADestructiveCommandUnderOneArrowReading = ({ toolName, toolInputs }) => SHELL_DIALECT_BY_TOOL.has(toolName) && toolInputs.some((toolInput) => {
10594
+ var runsACommandUnderOneArrowReading = ({ toolName, toolInputs }, judge) => SHELL_DIALECT_BY_TOOL.has(toolName) && toolInputs.some((toolInput) => {
10592
10595
  const command = extractPolicyArg(toolName, toolInput);
10593
- return command !== void 0 && commandIsDestructive(toolName, command);
10596
+ return command !== void 0 && judge(toolName, command);
10594
10597
  });
10595
- var runsADestructiveCommand = (input) => underEitherArrowReading(() => runsADestructiveCommandUnderOneArrowReading(input));
10598
+ var runsADestructiveCommand = (input) => underEitherArrowReading(() => runsACommandUnderOneArrowReading(input, commandIsDestructive));
10599
+ var PUBLISH_RIGHT_AFTER_NPM = String.raw`(?<=\bnpm\s+)publish\b`;
10600
+ var RELEASE_WORDS = new RegExp(`(?!${PUBLISH_RIGHT_AFTER_NPM})${DEPLOYS_OR_RELEASES_KEYWORD.source}`, "gi");
10601
+ var WORD_IN_PLACE_OF_A_RELEASE_WORD = "named";
10602
+ var withoutReleaseWords = (command) => command.replace(RELEASE_WORDS, WORD_IN_PLACE_OF_A_RELEASE_WORD);
10603
+ var commandIsDestructiveBeyondItsReleaseWords = (toolName, command) => commandIsDestructive(toolName, withoutReleaseWords(command));
10604
+ var runsACommandThatIsDestructiveBeyondItsReleaseWords = (input) => underEitherArrowReading(() => runsACommandUnderOneArrowReading(input, commandIsDestructiveBeyondItsReleaseWords));
10596
10605
  var codexCallIsDestructive = (input, call) => call.deletesFiles || runsADestructiveCommand(input);
10597
10606
  var connectorCallOnlyReads = ({ toolName, toolInputs }) => isCodexConnectorTool(toolName) && mcpToolOnlyReads(toolName) && !mcpToolAppNamesADatabase(toolName) && toolInputs.length > 0 && toolInputs.every((toolInput) => mcpToolInputOnlyReads(toolName, toolInput));
10598
10607
  var fullAccessRunsThisConnectorReadUnasked = (input, verdict, call) => !codexRaisesItsOwnPrompts(call.permissionMode) && scopeBreachReasonOf(verdict) === void 0 && noModeOverrideIsActive(input) && connectorCallOnlyReads(input);
@@ -10607,6 +10616,8 @@ var protectedFileEditRefusedAlert = (description) => ({
10607
10616
  var MODE_THAT_ALERTS_WITHOUT_ASKING = "notify_only";
10608
10617
  var CODEX_PRE_TOOL_USE_PASSES = { kind: "pass" };
10609
10618
  var codexOwnPromptCannotTakeTheCall = (input, call) => codexCallIsDestructive(input, call) || theProtectedFileFloorHoldsAnAllow(input);
10619
+ var workspaceKeepsRiskyStepsAtTheKeyboard = (config) => config.riskyStepsNeedKeyboard === true;
10620
+ var codexDestructiveCallIsDecidedOnThePhone = (input, mode, call) => mode === "push_first" && !workspaceKeepsRiskyStepsAtTheKeyboard(input.config) && (call.deletesFiles || runsACommandThatIsDestructiveBeyondItsReleaseWords(input));
10610
10621
  var nobodyIsAskedAboutAFloorHeldEdit = (floorHoldsAnAllow, verdict, mode) => floorHoldsAnAllow && scopeBreachReasonOf(verdict) === void 0 && approvalWaitsAtTheAgentsPrompt(mode);
10611
10622
  var refusalOfAFloorHeldEditNobodyIsAskedAbout = (policy) => ({
10612
10623
  kind: "refuse",
@@ -10617,7 +10628,7 @@ var refusalOfAFloorHeldEditNobodyIsAskedAbout = (policy) => ({
10617
10628
  var codexPreToolUseDelivery = (input, verdict, call) => {
10618
10629
  if (verdict.kind !== "gate" || !codexCallNeedsAPerson(input, verdict, call)) return CODEX_PRE_TOOL_USE_PASSES;
10619
10630
  const floorHoldsAnAllow = theProtectedFileFloorHoldsAnAllow(input);
10620
- const noPromptOfItsOwn = floorHoldsAnAllow || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
10631
+ const noPromptOfItsOwn = floorHoldsAnAllow || codexDestructiveCallIsDecidedOnThePhone(input, verdict.policy.mode, call) || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
10621
10632
  const mode = noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(verdict.policy.mode) : verdict.policy.mode;
10622
10633
  if (mode === "push_first" && !codexOwnPromptCannotTakeTheCall(input, call)) return CODEX_PRE_TOOL_USE_PASSES;
10623
10634
  const policy = { ...verdict.policy, mode };
@@ -5,7 +5,7 @@ import {
5
5
  ensureCodexTrustsPusharyHooks,
6
6
  hermesHistoryNeedsTheCliHelper,
7
7
  recordInstalledHermesHistoryHelper
8
- } from "./chunk-ZPMJTP6N.js";
8
+ } from "./chunk-S2EWZXZX.js";
9
9
  import {
10
10
  hermesReceiptPaths,
11
11
  hermesSetupPredatesThePluginFolder,
@@ -14,7 +14,7 @@ import {
14
14
  refreshHermesPluginFiles,
15
15
  refreshOpenClawPlugin,
16
16
  shippedHermesPlugin
17
- } from "./chunk-FXGW5PYE.js";
17
+ } from "./chunk-4WEDINFL.js";
18
18
  import {
19
19
  fxIgnoresInstructionsFile,
20
20
  fxInstructionsBody,
@@ -23,7 +23,7 @@ import {
23
23
  macAppFxBridge,
24
24
  refreshClineKey,
25
25
  switchFxHttpEntryToBridge
26
- } from "./chunk-35QDWJYF.js";
26
+ } from "./chunk-54VO6N4L.js";
27
27
  import {
28
28
  OPENCODE_HOOK_BINARY,
29
29
  agentHookOwner,
@@ -36,16 +36,16 @@ import {
36
36
  openCodePluginDir,
37
37
  openCodeWired,
38
38
  withOpenCodeAskRules
39
- } from "./chunk-JTQRYOUL.js";
39
+ } from "./chunk-NO42TVP5.js";
40
40
  import {
41
41
  detectClaudeVersion
42
- } from "./chunk-RPQVCRXM.js";
42
+ } from "./chunk-5JWYKKWH.js";
43
43
  import {
44
44
  addCompatibleHooks,
45
45
  compatibleConfigFile,
46
46
  compatibleInstructionsFile,
47
47
  hasCompatibleHooks
48
- } from "./chunk-YL7IS222.js";
48
+ } from "./chunk-3WHGI7GM.js";
49
49
  import {
50
50
  GEMINI_HOOK_BINARY,
51
51
  addGeminiHooks,
@@ -57,13 +57,13 @@ import {
57
57
  geminiWired,
58
58
  hasGeminiHooks,
59
59
  planHooks
60
- } from "./chunk-X7WSH6LC.js";
60
+ } from "./chunk-GJLTSGUX.js";
61
61
  import {
62
62
  transcriptsEnabled
63
- } from "./chunk-GR4MDWJB.js";
63
+ } from "./chunk-6QB5NCSL.js";
64
64
  import {
65
65
  KEY_FILE_MODE
66
- } from "./chunk-2EXFFIJ4.js";
66
+ } from "./chunk-YGAS3ZWI.js";
67
67
  import {
68
68
  CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
69
69
  CLAUDE_HOOK_BINARY,
@@ -110,13 +110,13 @@ import {
110
110
  renderAgentInstructions,
111
111
  supportedClaudeEvents,
112
112
  vscodePluginMcp
113
- } from "./chunk-2XFZE4WB.js";
113
+ } from "./chunk-63TBM5P6.js";
114
114
  import {
115
115
  formatVersion,
116
116
  hookCommandsUseBareNames,
117
117
  resolveGlobalBinDir,
118
118
  resolveGlobalBinary
119
- } from "./chunk-TBICLJ75.js";
119
+ } from "./chunk-7Z6AELYO.js";
120
120
  import {
121
121
  readJsonSafe,
122
122
  writeFileAtomic,
@@ -126,7 +126,7 @@ import {
126
126
  HOOK_COMPATIBLE_PROFILES,
127
127
  isCompatibleAgentType,
128
128
  isRecord
129
- } from "./chunk-EBNEIECN.js";
129
+ } from "./chunk-3G4EAIJN.js";
130
130
 
131
131
  // src/reapply.ts
132
132
  import { dirname, join } from "path";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-X7WSH6LC.js";
4
+ } from "./chunk-GJLTSGUX.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-VVXZCLXU.js";
7
+ } from "./chunk-H7H3ILT4.js";
8
8
  import {
9
9
  compatibleToolLookup
10
- } from "./chunk-232N6YYN.js";
10
+ } from "./chunk-SLFXYW4B.js";
11
11
  import {
12
12
  CLAUDE_HOOK_EVENTS,
13
13
  PUSHARY_MCP_URL,
@@ -19,7 +19,7 @@ import {
19
19
  isPusharyHook,
20
20
  registerHookEntry,
21
21
  removeClaudeMcpServers
22
- } from "./chunk-2XFZE4WB.js";
22
+ } from "./chunk-63TBM5P6.js";
23
23
  import {
24
24
  AGENT_ENFORCEMENT,
25
25
  HOOK_COMPATIBLE_PROFILES,
@@ -32,7 +32,7 @@ import {
32
32
  pusharyMissingReason,
33
33
  refusalOutput,
34
34
  withHookHoldBudget
35
- } from "./chunk-EBNEIECN.js";
35
+ } from "./chunk-3G4EAIJN.js";
36
36
 
37
37
  // src/config-document.ts
38
38
  import { parse, stringify } from "smol-toml";
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-EBNEIECN.js";
5
+ } from "./chunk-3G4EAIJN.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-OTLSLAYC.js";
16
+ } from "./chunk-2C32F25J.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-2XFZE4WB.js";
28
+ } from "./chunk-63TBM5P6.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-TBICLJ75.js";
31
+ } from "./chunk-7Z6AELYO.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-EBNEIECN.js";
42
+ } from "./chunk-3G4EAIJN.js";
43
43
 
44
44
  // src/hermes/plugin-payload.ts
45
45
  import { createHash } from "crypto";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-4JHJRVPH.js";
7
+ } from "./chunk-ZD47H3RP.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-A3MVG5ZA.js";
10
+ } from "./chunk-EO3BUYCB.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-2EXFFIJ4.js";
13
+ } from "./chunk-YGAS3ZWI.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-2XFZE4WB.js";
35
+ } from "./chunk-63TBM5P6.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-TBICLJ75.js";
38
+ } from "./chunk-7Z6AELYO.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TCE3J44Z.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-TBICLJ75.js";
6
+ } from "./chunk-7Z6AELYO.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-EBNEIECN.js";
9
+ } from "./chunk-3G4EAIJN.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-EBNEIECN.js";
5
+ } from "./chunk-3G4EAIJN.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-TBICLJ75.js";
6
+ } from "./chunk-7Z6AELYO.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
@@ -22,7 +22,7 @@ import {
22
22
  PUSHARY_HOSTS,
23
23
  PUSHARY_TOOL_PREFIX,
24
24
  withHookHoldBudget
25
- } from "./chunk-EBNEIECN.js";
25
+ } from "./chunk-3G4EAIJN.js";
26
26
 
27
27
  // src/setup/paths.ts
28
28
  import { createHash as createHash2 } from "crypto";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-DZABHISP.js";
7
+ } from "./chunk-LF6LPDXK.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-ZENZUSTC.js";
10
+ } from "./chunk-DWFD4VZ4.js";
11
11
  import {
12
12
  writeJsonAtomicDurable
13
13
  } from "./chunk-PM2NRK6Y.js";
@@ -15,7 +15,7 @@ import {
15
15
  compressTranscriptRecord,
16
16
  redactSecretsFromContent,
17
17
  transcriptRecordPlaintext
18
- } from "./chunk-EBNEIECN.js";
18
+ } from "./chunk-3G4EAIJN.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-JTQRYOUL.js";
3
+ } from "./chunk-NO42TVP5.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-2EXFFIJ4.js";
6
+ } from "./chunk-YGAS3ZWI.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-2XFZE4WB.js";
9
+ } from "./chunk-63TBM5P6.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-EBNEIECN.js";
16
+ } from "./chunk-3G4EAIJN.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;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOOK_BUDGETS
3
- } from "./chunk-EBNEIECN.js";
3
+ } from "./chunk-3G4EAIJN.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-QBEM25H5.js";
4
+ } from "./chunk-JOM4VKY5.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-LLEMAWUQ.js";
7
+ } from "./chunk-JHTPI4C7.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-YL7IS222.js";
10
+ } from "./chunk-3WHGI7GM.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-R236FVD5.js";
13
+ } from "./chunk-O5NCCAVS.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-EBNEIECN.js";
19
+ } from "./chunk-3G4EAIJN.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,12 +1,14 @@
1
1
  import {
2
2
  canonicalGateInputs,
3
3
  patchDeletesFiles
4
- } from "./chunk-232N6YYN.js";
4
+ } from "./chunk-SLFXYW4B.js";
5
5
 
6
6
  // src/gate-call-reading.ts
7
7
  var gateCallReadingOf = (profile, raw) => {
8
- const canonical = canonicalGateInputs(profile.source, raw.tool_name, [raw.tool_input ?? {}], raw.cwd);
9
- return canonical && { ...canonical, deletesFiles: patchDeletesFiles(raw.tool_name, raw.tool_input ?? {}) };
8
+ if (typeof raw.tool_name !== "string" || raw.tool_name.length === 0) return null;
9
+ const toolInput = raw.tool_input ?? {};
10
+ const canonical = canonicalGateInputs(profile.source, raw.tool_name, [toolInput], raw.cwd);
11
+ return canonical && { ...canonical, deletesFiles: patchDeletesFiles(raw.tool_name, toolInput) };
10
12
  };
11
13
 
12
14
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-2EXFFIJ4.js";
3
+ } from "./chunk-YGAS3ZWI.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-VVXZCLXU.js";
4
+ } from "./chunk-H7H3ILT4.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-2XFZE4WB.js";
7
+ } from "./chunk-63TBM5P6.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-CXQWDQCJ.js";
20
20
  import {
21
21
  redactSecretsFromContent
22
- } from "./chunk-EBNEIECN.js";
22
+ } from "./chunk-3G4EAIJN.js";
23
23
 
24
24
  // src/shell-quote.ts
25
25
  var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
@@ -600,9 +600,9 @@ var installGlobally = (options) => {
600
600
  }
601
601
  const started = (async () => {
602
602
  if (!npmIsOnPath()) throw new NpmMissingError();
603
- const { withUpgradeLock } = await import("./global-upgrade-FZWODA3N.js");
604
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-N7T2FTOI.js");
605
- const { autoUpdateLock } = await import("./paths-GIPZJ7LI.js");
603
+ const { withUpgradeLock } = await import("./global-upgrade-MKKYZN3R.js");
604
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-U3TDYSFM.js");
605
+ const { autoUpdateLock } = await import("./paths-BQZAA7LU.js");
606
606
  let result = "skipped";
607
607
  const install = async () => {
608
608
  const planned = readPlannedSetupInstall(process.platform);
@@ -6,17 +6,17 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-4VCP3ZXO.js";
9
+ } from "./chunk-PGT6ULAQ.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-KNBYA7ZN.js";
13
+ } from "./chunk-VHBRDG4D.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-K3ECNIYM.js";
19
+ } from "./chunk-F6GGIJV6.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-R236FVD5.js";
28
+ } from "./chunk-O5NCCAVS.js";
29
29
  import {
30
30
  readCommandAck
31
- } from "./chunk-SOCH2HJN.js";
31
+ } from "./chunk-Y2XF6SNN.js";
32
32
  import {
33
33
  callMcpTool,
34
34
  isRetryable
35
- } from "./chunk-B2SCB7HA.js";
35
+ } from "./chunk-HZ5IKJGX.js";
36
36
  import {
37
37
  projectNameFor,
38
38
  repositoryScopeFor
39
- } from "./chunk-VGGJ6JUL.js";
39
+ } from "./chunk-5UCQBBW3.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-EBNEIECN.js";
61
+ } from "./chunk-3G4EAIJN.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
  configFilePath
3
- } from "./chunk-ZENZUSTC.js";
3
+ } from "./chunk-DWFD4VZ4.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-EBNEIECN.js";
6
+ } from "./chunk-3G4EAIJN.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  projectNameFor
3
- } from "./chunk-VGGJ6JUL.js";
3
+ } from "./chunk-5UCQBBW3.js";
4
4
  import {
5
5
  readConfigFileKey
6
- } from "./chunk-2EXFFIJ4.js";
6
+ } from "./chunk-YGAS3ZWI.js";
7
7
 
8
8
  // src/bell/fleet.ts
9
9
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-OTLSLAYC.js";
3
+ } from "./chunk-2C32F25J.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-JTQRYOUL.js";
6
+ } from "./chunk-NO42TVP5.js";
7
7
  import {
8
8
  nativeClaudeInstallPath
9
9
  } from "./chunk-TCE3J44Z.js";
10
10
  import {
11
11
  grokHome
12
- } from "./chunk-YL7IS222.js";
12
+ } from "./chunk-3WHGI7GM.js";
13
13
  import {
14
14
  claudeConfigDir,
15
15
  clineDataDirectory,
16
16
  codexHomeFrom,
17
17
  openClawEnvironmentOf,
18
18
  openClawPathsFrom
19
- } from "./chunk-2XFZE4WB.js";
19
+ } from "./chunk-63TBM5P6.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
- } from "./chunk-EBNEIECN.js";
22
+ } from "./chunk-3G4EAIJN.js";
23
23
 
24
24
  // src/vscode-config.ts
25
25
  import { homedir } from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-INUTZSZ2.js";
3
+ } from "./chunk-245CIXWT.js";
4
4
  import {
5
5
  isValidApiKey
6
- } from "./chunk-EBNEIECN.js";
6
+ } from "./chunk-3G4EAIJN.js";
7
7
 
8
8
  // src/config.ts
9
9
  import { readFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-2XFZE4WB.js";
3
+ } from "./chunk-63TBM5P6.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";