pushary 1.9.270 → 1.9.272

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 (142) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{api-QRQC65E7.js → api-V6AZCXAR.js} +12 -12
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +11 -11
  6. package/dist/bin/pushary-calls.js +14 -14
  7. package/dist/bin/pushary-claude.js +25 -25
  8. package/dist/bin/pushary-clean.js +39 -39
  9. package/dist/bin/pushary-codex-bridge.js +22 -22
  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-doctor.js +48 -48
  18. package/dist/bin/pushary-elicitation-hook.js +27 -27
  19. package/dist/bin/pushary-gemini-bridge.js +17 -17
  20. package/dist/bin/pushary-gemini-hook.js +31 -31
  21. package/dist/bin/pushary-hook.js +35 -35
  22. package/dist/bin/pushary-login.js +42 -42
  23. package/dist/bin/pushary-logout.js +31 -31
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +15 -15
  26. package/dist/bin/pushary-notification-hook.js +27 -27
  27. package/dist/bin/pushary-opencode-bridge.js +21 -21
  28. package/dist/bin/pushary-opencode-hook.js +32 -32
  29. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  30. package/dist/bin/pushary-permission-hook.js +35 -35
  31. package/dist/bin/pushary-post-hook.js +28 -28
  32. package/dist/bin/pushary-prompt-hook.js +27 -27
  33. package/dist/bin/pushary-session-end-hook.js +27 -27
  34. package/dist/bin/pushary-session-start-hook.js +39 -39
  35. package/dist/bin/pushary-sessions.js +12 -12
  36. package/dist/bin/pushary-setup.js +59 -59
  37. package/dist/bin/pushary-stats.js +5 -5
  38. package/dist/bin/pushary-status.js +36 -36
  39. package/dist/bin/pushary-stop-hook.js +27 -27
  40. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  41. package/dist/bin/pushary-suggestions.js +15 -15
  42. package/dist/bin/pushary-transcript-register.js +16 -16
  43. package/dist/bin/pushary-transcripts.js +25 -25
  44. package/dist/bin/pushary-upgrade.js +47 -47
  45. package/dist/bin/pushary-wait.js +16 -16
  46. package/dist/bin/pushary.js +7 -7
  47. package/dist/{chunk-BY4SOA5N.js → chunk-24AB4I2Q.js} +1 -1
  48. package/dist/{chunk-TTU65I6T.js → chunk-2AYA2Q4T.js} +1 -1
  49. package/dist/{chunk-VMIUZMAD.js → chunk-2OMIVBIJ.js} +3 -3
  50. package/dist/{chunk-7TVCL4PI.js → chunk-2U54SCMF.js} +1 -1
  51. package/dist/{chunk-WS7Z6IJV.js → chunk-2Z6QGE5Z.js} +1 -1
  52. package/dist/{chunk-O63L6PLB.js → chunk-3D2IGVUG.js} +1 -1
  53. package/dist/{chunk-4O2FHBHY.js → chunk-4HBTPKLA.js} +1 -1
  54. package/dist/{chunk-AGK5KU7B.js → chunk-5LTGUGH5.js} +2 -2
  55. package/dist/{chunk-Y4DC5KRB.js → chunk-5M57WNNE.js} +2 -2
  56. package/dist/{chunk-NJB2WPGE.js → chunk-6OKO3JH7.js} +16 -16
  57. package/dist/{chunk-CGTPKZWB.js → chunk-76XJYNHJ.js} +4 -4
  58. package/dist/{chunk-4ZISYOJF.js → chunk-7IG5SDHL.js} +6 -6
  59. package/dist/{chunk-DFN4FVB6.js → chunk-AJ7KQ5ON.js} +4 -4
  60. package/dist/{chunk-2ABJ4VCG.js → chunk-B7KMVCOU.js} +1 -1
  61. package/dist/{chunk-HLJDCM3Z.js → chunk-BXZGIOHQ.js} +1 -1
  62. package/dist/{chunk-PGXWER6L.js → chunk-CTRRLEAO.js} +5 -5
  63. package/dist/{chunk-IJCWAVT7.js → chunk-DGIN5ZTR.js} +2 -2
  64. package/dist/{chunk-VSKX62AG.js → chunk-DJBGRBJ4.js} +1 -1
  65. package/dist/{chunk-IU4M7QPA.js → chunk-E4QOUYGY.js} +3 -3
  66. package/dist/{chunk-ARDNSSLS.js → chunk-E5SWZM5J.js} +8 -8
  67. package/dist/{chunk-J35H5XWH.js → chunk-EK5OOEVT.js} +4 -4
  68. package/dist/{chunk-B25EAOUY.js → chunk-ENCUSQPW.js} +6 -6
  69. package/dist/{chunk-RUWD6OFZ.js → chunk-GJMCFAFR.js} +10 -10
  70. package/dist/{chunk-BIJU6CPZ.js → chunk-GWFD6IHN.js} +1 -1
  71. package/dist/{chunk-67FOJA34.js → chunk-H4ETQI7P.js} +7 -7
  72. package/dist/{chunk-GOSMCOHB.js → chunk-H7YSENS4.js} +112 -1
  73. package/dist/{chunk-RII5XZLB.js → chunk-HKC3ROI4.js} +2 -2
  74. package/dist/{chunk-3IHL4N2G.js → chunk-HQDF4IG6.js} +6 -6
  75. package/dist/{chunk-65AS4TO4.js → chunk-HROZFH47.js} +6 -6
  76. package/dist/{chunk-HHOTW23E.js → chunk-HSS5F3FD.js} +2 -2
  77. package/dist/{chunk-PJDMIJG7.js → chunk-HYQV6ZME.js} +1 -1
  78. package/dist/{chunk-VWXR34GR.js → chunk-ILQ3FXD6.js} +5 -5
  79. package/dist/{chunk-DXPE4F2K.js → chunk-J2HBPBOO.js} +4 -4
  80. package/dist/{chunk-W2SZOATE.js → chunk-JGNVAUIP.js} +4 -4
  81. package/dist/{chunk-7JVJ4ZKU.js → chunk-JOMDT672.js} +2 -2
  82. package/dist/{chunk-EZ5HNO4L.js → chunk-JQTSHK43.js} +1 -1
  83. package/dist/{chunk-JTLHPORS.js → chunk-JXJBCTP4.js} +10 -10
  84. package/dist/{chunk-DTGU4J77.js → chunk-JZ735ED3.js} +5 -5
  85. package/dist/{chunk-DEMI4ZEH.js → chunk-K6G5KKLC.js} +2 -2
  86. package/dist/{chunk-DQA3PMYT.js → chunk-KAULXGZN.js} +3 -3
  87. package/dist/{chunk-LATT2QB4.js → chunk-KBNHBMMV.js} +1 -1
  88. package/dist/{chunk-TVNUXX5O.js → chunk-KMFRQRCJ.js} +144 -19
  89. package/dist/{chunk-CDGZIVNU.js → chunk-LOHBNKX4.js} +1 -1
  90. package/dist/{chunk-R6JRCEIX.js → chunk-MCYHCF6L.js} +1 -1
  91. package/dist/{chunk-O753NJME.js → chunk-MX6KIFKM.js} +1 -1
  92. package/dist/{chunk-ZX2HQ25K.js → chunk-N3IEGLZH.js} +1 -1
  93. package/dist/{chunk-MDD4MCQY.js → chunk-N6TBO6TN.js} +1 -1
  94. package/dist/{chunk-KBT4OBJM.js → chunk-N72TXXA4.js} +3 -3
  95. package/dist/{chunk-COHRE67K.js → chunk-NRG4C6D4.js} +3 -3
  96. package/dist/{chunk-GA7L6ZHW.js → chunk-NYWFBBA2.js} +5 -5
  97. package/dist/{chunk-A2AN2T5O.js → chunk-OBMHV3HF.js} +5 -5
  98. package/dist/{chunk-2C2XPI5Y.js → chunk-OJM5Q454.js} +1 -1
  99. package/dist/{chunk-PWDSHCY4.js → chunk-OO5DBKQ5.js} +5 -5
  100. package/dist/{chunk-DMAN3ZCW.js → chunk-PAJ237T2.js} +4 -4
  101. package/dist/{chunk-HEBBPZDN.js → chunk-PFMANZLN.js} +7 -7
  102. package/dist/{chunk-3ZEKDHAX.js → chunk-QTGQLQKS.js} +4 -4
  103. package/dist/{chunk-PFNWKGAN.js → chunk-RNLXCBPM.js} +4 -4
  104. package/dist/{chunk-V4PD2R6X.js → chunk-ROQTGFKD.js} +12 -12
  105. package/dist/{chunk-5G6VZEDJ.js → chunk-RSZN4ORH.js} +3 -3
  106. package/dist/{chunk-BIY5PLF6.js → chunk-SHZF6YV2.js} +5 -5
  107. package/dist/{chunk-3TN6OKJ2.js → chunk-SUGOXJRK.js} +5 -5
  108. package/dist/{chunk-UCK4UKBV.js → chunk-T6WG5UL3.js} +4 -4
  109. package/dist/{chunk-TZYJNKFN.js → chunk-T7DWOEDI.js} +3 -3
  110. package/dist/{chunk-JRPOC47L.js → chunk-TBQIK4BQ.js} +1 -1
  111. package/dist/{chunk-JF6IHH5E.js → chunk-TSC3VB7A.js} +1 -1
  112. package/dist/{chunk-O4ZFUVDI.js → chunk-UZB4KRJ7.js} +3 -3
  113. package/dist/{chunk-X3DYMWPL.js → chunk-VBF52KHV.js} +2 -2
  114. package/dist/{chunk-4JXYINSC.js → chunk-VHS4BDGF.js} +3 -3
  115. package/dist/{chunk-JL4REHDW.js → chunk-WEOJEBB7.js} +5 -5
  116. package/dist/{chunk-2GKTNETX.js → chunk-WIPLIUO2.js} +5 -5
  117. package/dist/{chunk-3P3GPF6O.js → chunk-WNXDHQBZ.js} +11 -11
  118. package/dist/{chunk-FB25FA3O.js → chunk-WP6L64DT.js} +2 -2
  119. package/dist/{chunk-UMZ2VLLR.js → chunk-WP7MORRX.js} +6 -6
  120. package/dist/{chunk-TR5A6H2P.js → chunk-XEVETME7.js} +3 -3
  121. package/dist/{chunk-OW4AMHJV.js → chunk-XMI6NZRZ.js} +1 -1
  122. package/dist/{chunk-RFCTFMJS.js → chunk-XNHSJ2XH.js} +1 -1
  123. package/dist/{chunk-HBU5P5EC.js → chunk-Y6NFDLZW.js} +1 -1
  124. package/dist/{chunk-PK5JMVGN.js → chunk-YPKQSEMW.js} +1 -1
  125. package/dist/{chunk-ZGVMX36I.js → chunk-YQL5MMQY.js} +2 -2
  126. package/dist/{chunk-ZXPNAYQC.js → chunk-ZGJMZMZV.js} +7 -7
  127. package/dist/{chunk-6Q2D4OON.js → chunk-ZOJGWNO6.js} +2 -2
  128. package/dist/{chunk-WXQA6JZO.js → chunk-ZUL5HDHO.js} +2 -2
  129. package/dist/{codex-app-cards-switch-EULJQSJY.js → codex-app-cards-switch-7ETZFP2V.js} +11 -11
  130. package/dist/{codex-card-routing-RWF7Q5NP.js → codex-card-routing-IUIT2H2X.js} +2 -2
  131. package/dist/{codex-desktop-launch-6FTCM3KC.js → codex-desktop-launch-DFLSOCLI.js} +3 -3
  132. package/dist/{codex-session-launch-7L5PTJTO.js → codex-session-launch-FBUP4JEC.js} +21 -21
  133. package/dist/{config-RUJK4OSC.js → config-IAJ67YJ4.js} +3 -3
  134. package/dist/{global-upgrade-JASHEAL5.js → global-upgrade-D3ZSV2YS.js} +9 -9
  135. package/dist/{identity-FKXV4DDS.js → identity-YQLMNPAI.js} +4 -4
  136. package/dist/{live-capabilities-M5ZFRYQR.js → live-capabilities-FVGPDGYR.js} +4 -4
  137. package/dist/{paths-OWVAAP4Y.js → paths-W7WE357Y.js} +3 -3
  138. package/dist/{reapply-P7KARKEQ.js → reapply-2GAZ55JR.js} +34 -34
  139. package/dist/src/index.js +33 -33
  140. package/dist/{upgrade-lock-6H24K6S3.js → upgrade-lock-FS2IUNHX.js} +4 -4
  141. package/dist/{usage-PENWECBI.js → usage-XXP5VY5Z.js} +3 -3
  142. package/package.json +1 -1
@@ -12500,8 +12500,119 @@ var gateVerdictNoWeakerThanItsSteps = (input, depth, budget) => {
12500
12500
  const judgedAsAWhole = steps.kind === "the_whole_call" || isSpent(budget) ? [gateVerdictOfTheCall({ ...input, config: withoutAsksThatMayApproveWithoutAnAnswer(input.config) })] : [];
12501
12501
  return [...verdictsOfTheSteps, ...judgedAsAWhole].reduce(strictestGateVerdictOf, verdict);
12502
12502
  };
12503
+ var ANY_PROGRAM = { kind: "any_program" };
12504
+ var PATTERN_WORD_SEPARATOR = /[\s:]/;
12505
+ var ONE_PROGRAM_NAME = /^[\w.\/+@-]+$/;
12506
+ var firstWordOfTheArgumentOf = (pattern) => pattern.slice(argumentOpenIndex(pattern) + 1, -1).split(PATTERN_WORD_SEPARATOR)[0] ?? "";
12507
+ var namesNoOneProgram = (word) => !ONE_PROGRAM_NAME.test(word);
12508
+ var asTheProgramItNames = (word) => basenameOf(word).toLowerCase();
12509
+ var programsTheRulesName = (rules, toolName) => {
12510
+ if (shellDialectOf(toolName) === "powershell") return ANY_PROGRAM;
12511
+ const words = rules.map((rule) => firstWordOfTheArgumentOf(rule.tool));
12512
+ return words.some(namesNoOneProgram) ? ANY_PROGRAM : { kind: "named", programs: words.map(asTheProgramItNames) };
12513
+ };
12514
+ var LINE_CONTINUATION = /\\\r?\n/g;
12515
+ var QUOTE_OR_BACKSLASH = /['"\\]/g;
12516
+ var QUOTE = /['"]/g;
12517
+ var EVERY_BACKSLASH = /\\/g;
12518
+ var SPELLING_THE_GATE_DECODES = /\$['"]|[{}]/;
12519
+ var WHAT_MAY_COME_BEFORE_A_PROGRAM = /* @__PURE__ */ new Set([" ", " ", "\n", "\r", ";", "|", "&", "(", ")", "/", "`", "=", "<", ">"]);
12520
+ var startsAWordAt = (text3, index) => index === 0 || WHAT_MAY_COME_BEFORE_A_PROGRAM.has(text3.charAt(index - 1));
12521
+ var startsAWordIn = (text3) => (program) => {
12522
+ for (let index = text3.indexOf(program); index !== -1; index = text3.indexOf(program, index + 1)) {
12523
+ if (startsAWordAt(text3, index)) return true;
12524
+ }
12525
+ return false;
12526
+ };
12527
+ var readingsARuleMatches = (text3) => {
12528
+ const joined = text3.replace(LINE_CONTINUATION, "").toLowerCase();
12529
+ return [
12530
+ joined.replace(QUOTE_OR_BACKSLASH, ""),
12531
+ joined.replace(QUOTE, " ").replace(EVERY_BACKSLASH, ""),
12532
+ joined.replace(QUOTE, "").replace(EVERY_BACKSLASH, "/")
12533
+ ];
12534
+ };
12535
+ var mayRunAProgramOf = (programs) => (text3) => {
12536
+ if (programs.kind === "any_program" || SPELLING_THE_GATE_DECODES.test(text3)) return true;
12537
+ return readingsARuleMatches(text3).some((reading) => programs.programs.some(startsAWordIn(reading)));
12538
+ };
12539
+ var isAChosenRuleNamingAnArgumentOf = (toolName) => (policy) => !isDefaultRule(policy) && namesAnArgumentOf(policy.tool, toolName);
12540
+ var asksWithoutApprovingOnSilence = (policy) => restricts(policy) && !approvesWithoutAnAnswer(policy);
12541
+ var mayBindTheWholeCall = (verdict) => (policy) => isAutoDeny(policy) || gateMayApproveWithoutAnAnswer(verdict) && asksWithoutApprovingOnSilence(policy);
12542
+ var chosenRulesAStepMayMeet = (input, verdict) => input.config.policies.filter(isAChosenRuleNamingAnArgumentOf(input.toolName)).filter(mayBindTheWholeCall(verdict)).filter((rule) => appliesToThisCall(rule, repoKeyTheGateResolvesUnder(input), input.sessionId));
12543
+ var formsAChosenRuleReads = (input, command) => [
12544
+ ...policyArgForms(input.toolName, { command }, input.cwd),
12545
+ ...commandSpellings(command, SPELLS_COMMAND_RUNNERS_TOO).forms.filter(isSpelledOut)
12546
+ ];
12547
+ var namesOneOfTheForms = (input, forms) => (rule) => matchToolPatternAny(rule.tool, input.toolName, forms, policyIntent(rule)) !== "none";
12548
+ var aChosenAskNamesTheStep = (input, rules, command) => rules.filter(asksWithoutApprovingOnSilence).some(namesOneOfTheForms(input, formsAChosenRuleReads(input, command)));
12549
+ var verdictOf = (step) => step.verdict;
12550
+ var refusesTheCall = (step) => isARefusal(step.verdict);
12551
+ var isHeldByAChosenAsk = (input, rules) => (step) => step.verdict.kind === "gate" && !gateMayApproveWithoutAnAnswer(step.verdict) && aChosenAskNamesTheStep(input, rules, step.command);
12552
+ var STEPS_NOT_READ_IN_FULL = { kind: "not_read_in_full" };
12553
+ var showsWhatItRunsOnItsOwn = (toolName) => (step) => !hidesWhatItRunsFrom(toolName, commandSpellings(step, SPELLS_COMMAND_RUNNERS_TOO));
12554
+ var REDIRECTION_BETWEEN_DESCRIPTORS = /(?<!\d)\d*[<>]&(?:\d+-?|-)/g;
12555
+ var AMPERSAND_OF_AN_OUTPUT_REDIRECTION = /&(>{1,2})|>&/g;
12556
+ var withRedirectionsThatHoldNoSeparator = (text3) => text3.replace(REDIRECTION_BETWEEN_DESCRIPTORS, "").replace(AMPERSAND_OF_AN_OUTPUT_REDIRECTION, ">");
12557
+ var stepsWithTheirRedirections = (command) => shellCommandSegments(command) ?? roughPiecesOf(withRedirectionsThatHoldNoSeparator(withHeredocBodiesSetAside(command).text)).map((piece) => trimShellWhitespace(piece.text));
12558
+ var stepsARuleMayName = (input, mayRunANamedProgram, depth, budget) => {
12559
+ const calls = [];
12560
+ try {
12561
+ for (const toolInput of withExtraReadings(input).toolInputs) {
12562
+ const command = extractPolicyArg(input.toolName, toolInput);
12563
+ if (command === void 0 || !mayRunANamedProgram(command)) continue;
12564
+ if (!readsWithin(budget, command.length)) return STEPS_NOT_READ_IN_FULL;
12565
+ const spellings = commandSpellings(command, SPELLS_COMMAND_RUNNERS_TOO);
12566
+ if (!spellingsAreComplete(spellings) || !readsWithin(budget, totalLengthOf(spellings.forms))) return STEPS_NOT_READ_IN_FULL;
12567
+ const read = stepsOf(command, spellings);
12568
+ if (read.kind === "too_many_functions" || !readsWithin(budget, totalLengthOf(read.steps))) return STEPS_NOT_READ_IN_FULL;
12569
+ const pieces = stepsWithTheirRedirections(command);
12570
+ const steps = [.../* @__PURE__ */ new Set([...read.steps, ...pieces.length >= SEVERAL_COMMANDS ? pieces : []])].filter(isAnotherCommandThan(command)).filter(mayRunANamedProgram).filter(showsWhatItRunsOnItsOwn(input.toolName));
12571
+ calls.push(...steps.map(callOfAStep(input, toolInput)));
12572
+ }
12573
+ } catch {
12574
+ return STEPS_NOT_READ_IN_FULL;
12575
+ }
12576
+ return depth >= MAX_SPELLING_DEPTH && calls.length > 0 ? STEPS_NOT_READ_IN_FULL : { kind: "read", steps: calls };
12577
+ };
12578
+ var withOnlyItsStandingDenies = (config) => ({
12579
+ ...config,
12580
+ policies: config.policies.filter(isAutoDeny)
12581
+ });
12582
+ var isARefusal = (verdict) => verdict.kind === "deny";
12583
+ var refusalsByTheStandingDeniesOfTheWholeCall = (input) => [gateVerdictOfTheCall({ ...input, config: withOnlyItsStandingDenies(input.config) })].filter(isARefusal);
12584
+ var verdictsHeldToTheirOwnSteps = (steps, depth, budget) => {
12585
+ const verdicts = [];
12586
+ for (const { command, call } of steps) {
12587
+ const known = budget.verdicts.get(command);
12588
+ if (known === void 0 && !judgesWithin(budget)) return verdicts;
12589
+ const verdict = known ?? gateVerdictHeldToTheRulesOfItsSteps(call, depth + 1, budget);
12590
+ budget.verdicts.set(command, verdict);
12591
+ verdicts.push({ command, verdict });
12592
+ if (isARefusal(verdict)) return verdicts;
12593
+ }
12594
+ return verdicts;
12595
+ };
12596
+ var verdictWithoutTheAsksThatMayApprove = (input) => gateVerdictOfTheCall({ ...input, config: withoutAsksThatMayApproveWithoutAnAnswer(input.config) });
12597
+ var theWholeVerdictThatDoesNotApprove = (withoutTheAsks, verdict) => withoutTheAsks.kind === "gate" && !gateMayApproveWithoutAnAnswer(withoutTheAsks) ? withoutTheAsks : strictestGateVerdictOf(verdict, withoutTheAsks);
12598
+ var gateVerdictHeldToTheRulesOfItsSteps = (input, depth, budget) => {
12599
+ const verdict = gateVerdictNoWeakerThanItsSteps(input, 0, stepBudgetFor(input));
12600
+ if (verdict.kind !== "gate" || !SHELL_DIALECT_BY_TOOL.has(input.toolName)) return verdict;
12601
+ const rules = chosenRulesAStepMayMeet(input, verdict);
12602
+ if (rules.length === 0) return verdict;
12603
+ const steps = stepsARuleMayName(input, mayRunAProgramOf(programsTheRulesName(rules, input.toolName)), depth, budget);
12604
+ const judged = steps.kind === "read" ? verdictsHeldToTheirOwnSteps(steps.steps, depth, budget) : [];
12605
+ const unread = steps.kind === "not_read_in_full" || isSpent(budget);
12606
+ const refusals = [
12607
+ ...judged.filter(refusesTheCall).map(verdictOf),
12608
+ ...unread ? refusalsByTheStandingDeniesOfTheWholeCall(input) : []
12609
+ ];
12610
+ const isHeldWithoutTheAsks = gateMayApproveWithoutAnAnswer(verdict) && (unread || judged.some(isHeldByAChosenAsk(input, rules)));
12611
+ const held = isHeldWithoutTheAsks ? theWholeVerdictThatDoesNotApprove(verdictWithoutTheAsksThatMayApprove(input), verdict) : verdict;
12612
+ return refusals.reduce(strictestGateVerdictOf, held);
12613
+ };
12503
12614
  var resolveGate = (rawInput) => {
12504
- const verdict = gateVerdictNoWeakerThanItsSteps(rawInput, 0, stepBudgetFor(rawInput));
12615
+ const verdict = gateVerdictHeldToTheRulesOfItsSteps(rawInput, 0, stepBudgetFor(rawInput));
12505
12616
  return verdict.kind === "gate" ? { ...verdict, policy: withApprovalRouteWait(rawInput, verdict.policy) } : verdict;
12506
12617
  };
12507
12618
  var resolvedToolInputsOf = (input) => input.toolInputs.map((toolInput) => ({
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-ZGVMX36I.js";
3
+ } from "./chunk-YQL5MMQY.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-J35H5XWH.js";
8
+ } from "./chunk-EK5OOEVT.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  parseConfigDocument
3
- } from "./chunk-2ABJ4VCG.js";
3
+ } from "./chunk-B7KMVCOU.js";
4
4
  import {
5
5
  addGeminiMcpServer,
6
6
  removeGeminiMcpServer
7
- } from "./chunk-W2SZOATE.js";
7
+ } from "./chunk-JGNVAUIP.js";
8
8
  import {
9
9
  CLAUDE_CODE_AGENT
10
- } from "./chunk-3P3GPF6O.js";
10
+ } from "./chunk-WNXDHQBZ.js";
11
11
  import {
12
12
  compatibleToolLookup
13
- } from "./chunk-TTU65I6T.js";
13
+ } from "./chunk-2AYA2Q4T.js";
14
14
  import {
15
15
  CLAUDE_HOOK_EVENTS,
16
16
  PUSHARY_MCP_URL,
@@ -22,7 +22,7 @@ import {
22
22
  isPusharyHook,
23
23
  registerHookEntry,
24
24
  removeClaudeMcpServers
25
- } from "./chunk-ZGVMX36I.js";
25
+ } from "./chunk-YQL5MMQY.js";
26
26
  import {
27
27
  AGENT_ENFORCEMENT,
28
28
  HOOK_COMPATIBLE_PROFILES,
@@ -36,7 +36,7 @@ import {
36
36
  pusharyMissingReason,
37
37
  refusalOutput,
38
38
  withHookHoldBudget
39
- } from "./chunk-GOSMCOHB.js";
39
+ } from "./chunk-H7YSENS4.js";
40
40
 
41
41
  // src/compatible-config.ts
42
42
  import { homedir } from "os";
@@ -4,20 +4,20 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-R6JRCEIX.js";
7
+ } from "./chunk-MCYHCF6L.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-7JVJ4ZKU.js";
10
+ } from "./chunk-JOMDT672.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-ZGVMX36I.js";
13
+ } from "./chunk-YQL5MMQY.js";
14
14
  import {
15
15
  resolveGlobalBinary,
16
16
  withoutNpmInstallConsent
17
- } from "./chunk-J35H5XWH.js";
17
+ } from "./chunk-EK5OOEVT.js";
18
18
  import {
19
19
  getApiKey
20
- } from "./chunk-DEMI4ZEH.js";
20
+ } from "./chunk-K6G5KKLC.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-GOSMCOHB.js";
36
+ } from "./chunk-H7YSENS4.js";
37
37
 
38
38
  // src/daemon-entry-guard.ts
39
39
  import { mkdirSync, readFileSync } from "fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore
3
- } from "./chunk-3P3GPF6O.js";
3
+ } from "./chunk-WNXDHQBZ.js";
4
4
  import {
5
5
  claudePromptMayFollowPreToolUseAllow,
6
6
  promptedCallIdentityText
7
- } from "./chunk-TTU65I6T.js";
7
+ } from "./chunk-2AYA2Q4T.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash as createHash2 } from "crypto";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-GOSMCOHB.js";
4
+ } from "./chunk-H7YSENS4.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.";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-IU4M7QPA.js";
3
+ } from "./chunk-E4QOUYGY.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-67FOJA34.js";
6
+ } from "./chunk-H4ETQI7P.js";
7
7
  import {
8
8
  nativeClaudeInstallPath
9
9
  } from "./chunk-TCE3J44Z.js";
10
10
  import {
11
11
  grokHome
12
- } from "./chunk-3IHL4N2G.js";
12
+ } from "./chunk-HQDF4IG6.js";
13
13
  import {
14
14
  claudeConfigDir,
15
15
  clineDataDirectory,
16
16
  codexHomeFrom,
17
17
  openClawEnvironmentOf,
18
18
  openClawPathsFrom
19
- } from "./chunk-ZGVMX36I.js";
19
+ } from "./chunk-YQL5MMQY.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
- } from "./chunk-GOSMCOHB.js";
22
+ } from "./chunk-H7YSENS4.js";
23
23
 
24
24
  // src/vscode-config.ts
25
25
  import { homedir } from "os";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-67FOJA34.js";
3
+ } from "./chunk-H4ETQI7P.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-7JVJ4ZKU.js";
6
+ } from "./chunk-JOMDT672.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-ZGVMX36I.js";
9
+ } from "./chunk-YQL5MMQY.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-GOSMCOHB.js";
16
+ } from "./chunk-H7YSENS4.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,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-PK5JMVGN.js";
3
+ } from "./chunk-YPKQSEMW.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-JRPOC47L.js";
6
+ } from "./chunk-TBQIK4BQ.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-ZGVMX36I.js";
19
+ } from "./chunk-YQL5MMQY.js";
20
20
  import {
21
21
  CURSOR_GATE_EVENTS,
22
22
  HOOK_BUDGETS,
23
23
  HOOK_LOCATOR_BINARY,
24
24
  hookCommandHoldBudget
25
- } from "./chunk-GOSMCOHB.js";
25
+ } from "./chunk-H7YSENS4.js";
26
26
 
27
27
  // src/gemini-config.ts
28
28
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -2,7 +2,7 @@ import {
2
2
  apiKeyInForce,
3
3
  configFilePath,
4
4
  keyPrefixToShow
5
- } from "./chunk-DEMI4ZEH.js";
5
+ } from "./chunk-K6G5KKLC.js";
6
6
  import {
7
7
  backupFile,
8
8
  backupFileInto,
@@ -15,7 +15,7 @@ import {
15
15
  isRecord,
16
16
  isValidApiKey,
17
17
  normalizeInstallSource
18
- } from "./chunk-GOSMCOHB.js";
18
+ } from "./chunk-H7YSENS4.js";
19
19
 
20
20
  // src/install-source.ts
21
21
  import { readFileSync } from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  MCP_TOOLS_THAT_SEND_SOMETHING_OUT_LABEL,
3
3
  MCP_TOOLS_THAT_SEND_SOMETHING_OUT_PATTERN,
4
4
  WILDCARD_TOOL_PATTERN
5
- } from "./chunk-GOSMCOHB.js";
5
+ } from "./chunk-H7YSENS4.js";
6
6
 
7
7
  // src/wait-ladder.ts
8
8
  var WAIT_RULE_LABELS = {
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-65AS4TO4.js";
6
+ } from "./chunk-HROZFH47.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-W2SZOATE.js";
9
+ } from "./chunk-JGNVAUIP.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-TTU65I6T.js";
12
+ } from "./chunk-2AYA2Q4T.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  changedRecipientsMessage,
@@ -24,11 +24,11 @@ import {
24
24
  uploadTranscriptRecords,
25
25
  verifyAnchoredRecipients,
26
26
  wrapSessionKey
27
- } from "./chunk-VMIUZMAD.js";
27
+ } from "./chunk-2OMIVBIJ.js";
28
28
  import {
29
29
  transcriptEnvironmentPreference,
30
30
  transcriptsEnabled
31
- } from "./chunk-ZX2HQ25K.js";
31
+ } from "./chunk-N3IEGLZH.js";
32
32
  import {
33
33
  external_exports,
34
34
  ownedOnlyByThisUser,
@@ -36,19 +36,19 @@ import {
36
36
  } from "./chunk-P6DUWKAO.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-LATT2QB4.js";
39
+ } from "./chunk-KBNHBMMV.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-7JVJ4ZKU.js";
42
+ } from "./chunk-JOMDT672.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-ZGVMX36I.js";
47
+ } from "./chunk-YQL5MMQY.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-DEMI4ZEH.js";
51
+ } from "./chunk-K6G5KKLC.js";
52
52
  import {
53
53
  writeJsonAtomic,
54
54
  writeJsonAtomicDurable
@@ -61,7 +61,7 @@ import {
61
61
  isHookSource,
62
62
  isRecord,
63
63
  redactSecretsFromContent
64
- } from "./chunk-GOSMCOHB.js";
64
+ } from "./chunk-H7YSENS4.js";
65
65
 
66
66
  // src/transcript-registration.ts
67
67
  import { createHash as createHash4 } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-3P3GPF6O.js";
3
+ } from "./chunk-WNXDHQBZ.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-TTU65I6T.js";
6
+ } from "./chunk-2AYA2Q4T.js";
7
7
  import {
8
8
  ASK_USER_TIMEOUT_MS,
9
9
  WAIT_END_TIMEOUT_MS,
@@ -11,10 +11,10 @@ import {
11
11
  askUser,
12
12
  unavailableQuestionUnlessRefused,
13
13
  waitForQuestion
14
- } from "./chunk-ZXPNAYQC.js";
14
+ } from "./chunk-ZGJMZMZV.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-R6JRCEIX.js";
17
+ } from "./chunk-MCYHCF6L.js";
18
18
  import {
19
19
  hookMaxWaitSeconds,
20
20
  hookWaitClamped,
@@ -24,7 +24,7 @@ import {
24
24
  refusesWhenUnanswered,
25
25
  ruleApprovesAfterItsFullWindow,
26
26
  scopeBreachReasonOf
27
- } from "./chunk-GOSMCOHB.js";
27
+ } from "./chunk-H7YSENS4.js";
28
28
 
29
29
  // src/pushed-question.ts
30
30
  var scopeQuestionOf = (verdict) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-O753NJME.js";
3
+ } from "./chunk-MX6KIFKM.js";
4
4
  import {
5
5
  isValidApiKey
6
- } from "./chunk-GOSMCOHB.js";
6
+ } from "./chunk-H7YSENS4.js";
7
7
 
8
8
  // src/config.ts
9
9
  import { readFileSync } from "fs";
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  testTrafficHeaders
12
- } from "./chunk-ZXPNAYQC.js";
12
+ } from "./chunk-ZGJMZMZV.js";
13
13
  import {
14
14
  getBaseUrl
15
- } from "./chunk-DEMI4ZEH.js";
15
+ } from "./chunk-K6G5KKLC.js";
16
16
  import {
17
17
  CLI_LOCAL_BIND_PATH,
18
18
  LOCAL_CONFIRM_HOST,
@@ -23,7 +23,7 @@ import {
23
23
  isLocalConfirmToken,
24
24
  isPhonePass,
25
25
  localTerminalEntryUrl
26
- } from "./chunk-GOSMCOHB.js";
26
+ } from "./chunk-H7YSENS4.js";
27
27
 
28
28
  // src/cli/login-ui.ts
29
29
  import { hostname } from "os";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-GOSMCOHB.js";
8
+ } from "./chunk-H7YSENS4.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";