pushary 1.9.112 → 1.9.113

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 (129) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{api-3AWH6PR6.js → api-PCAXOVGM.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +27 -27
  5. package/dist/bin/pushary-bell.js +10 -10
  6. package/dist/bin/pushary-claude.js +25 -25
  7. package/dist/bin/pushary-clean.js +34 -34
  8. package/dist/bin/pushary-codex-bridge.js +21 -21
  9. package/dist/bin/pushary-codex-hook.js +32 -32
  10. package/dist/bin/pushary-codex-session.js +8 -8
  11. package/dist/bin/pushary-codex.js +15 -15
  12. package/dist/bin/pushary-connect.js +28 -28
  13. package/dist/bin/pushary-cowork.js +5 -5
  14. package/dist/bin/pushary-daemon.js +42 -42
  15. package/dist/bin/pushary-disconnect.js +27 -27
  16. package/dist/bin/pushary-display-hook.js +17 -17
  17. package/dist/bin/pushary-doctor.js +42 -42
  18. package/dist/bin/pushary-elicitation-hook.js +27 -27
  19. package/dist/bin/pushary-gemini-bridge.js +15 -15
  20. package/dist/bin/pushary-gemini-hook.js +29 -29
  21. package/dist/bin/pushary-hook.js +32 -32
  22. package/dist/bin/pushary-login.js +21 -21
  23. package/dist/bin/pushary-logout.js +26 -26
  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 +26 -26
  27. package/dist/bin/pushary-opencode-hook.js +28 -28
  28. package/dist/bin/pushary-permission-denied-hook.js +32 -32
  29. package/dist/bin/pushary-permission-hook.js +32 -32
  30. package/dist/bin/pushary-post-hook.js +26 -26
  31. package/dist/bin/pushary-prompt-hook.js +26 -26
  32. package/dist/bin/pushary-session-end-hook.js +26 -26
  33. package/dist/bin/pushary-session-start-hook.js +35 -35
  34. package/dist/bin/pushary-setup.js +49 -49
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +32 -32
  37. package/dist/bin/pushary-stop-hook.js +26 -26
  38. package/dist/bin/pushary-stopfailure-hook.js +26 -26
  39. package/dist/bin/pushary-suggestions.js +15 -15
  40. package/dist/bin/pushary-transcript-register.js +17 -17
  41. package/dist/bin/pushary-transcripts.js +25 -25
  42. package/dist/bin/pushary-upgrade.js +40 -40
  43. package/dist/bin/pushary-wait.js +15 -15
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-SLMDTNKA.js → chunk-22OATDEL.js} +3 -3
  46. package/dist/{chunk-OL5DDV6T.js → chunk-233KC6DP.js} +1 -1
  47. package/dist/{chunk-UEXWOQWA.js → chunk-24M7PB2Y.js} +5 -5
  48. package/dist/{chunk-M6U4CXYS.js → chunk-3D2J3T2M.js} +1 -1
  49. package/dist/{chunk-5CHFR4SM.js → chunk-3LJWADU2.js} +6 -6
  50. package/dist/{chunk-IAI6ZRVA.js → chunk-3ZU77DJH.js} +6 -6
  51. package/dist/{chunk-IFJ3XS2R.js → chunk-44HW5T6P.js} +2 -2
  52. package/dist/{chunk-MQTXIY32.js → chunk-44O6GG4I.js} +6 -6
  53. package/dist/{chunk-BI7NKEEZ.js → chunk-4EFZANH3.js} +1 -1
  54. package/dist/{chunk-UORHVH4P.js → chunk-4I6FWGZ5.js} +1 -1
  55. package/dist/{chunk-D6KWDBL5.js → chunk-53ROMSOB.js} +3 -3
  56. package/dist/{chunk-EKIA5CSV.js → chunk-5J2OGCUA.js} +1 -1
  57. package/dist/{chunk-D37U7BKX.js → chunk-5SUTYXCT.js} +1 -1
  58. package/dist/{chunk-P27ZXTQ6.js → chunk-6E2D22Y5.js} +2 -2
  59. package/dist/{chunk-RDUOOCAQ.js → chunk-AR3VX4UQ.js} +10 -10
  60. package/dist/{chunk-PDB5DALK.js → chunk-B5NKPU2E.js} +5 -5
  61. package/dist/{chunk-OXME4ZAD.js → chunk-BMZFL3HF.js} +4 -4
  62. package/dist/{chunk-YAULUCRG.js → chunk-BWSXWX6T.js} +2 -2
  63. package/dist/{chunk-LWVOQZ24.js → chunk-BYL7RNOM.js} +3 -3
  64. package/dist/{chunk-TCRITVSK.js → chunk-CG5SK6NF.js} +1 -1
  65. package/dist/{chunk-OW3WQWBA.js → chunk-D3XNQAQO.js} +2 -2
  66. package/dist/{chunk-M52Q62SO.js → chunk-DLCECUKY.js} +7 -7
  67. package/dist/{chunk-SOVLQH6W.js → chunk-DSXBMC2N.js} +5 -5
  68. package/dist/{chunk-VTK353JE.js → chunk-E3A77P52.js} +4 -4
  69. package/dist/{chunk-GJWBVRPF.js → chunk-F5TQ6TCH.js} +1 -1
  70. package/dist/{chunk-TC6TGMST.js → chunk-FLRVTAV4.js} +2 -2
  71. package/dist/{chunk-ZF2GMORS.js → chunk-FQSFN5ZE.js} +1 -1
  72. package/dist/{chunk-JG75WTA6.js → chunk-GBT74TNN.js} +2 -2
  73. package/dist/{chunk-MMHO6RWH.js → chunk-GGBGKQIZ.js} +8 -8
  74. package/dist/{chunk-SZQKXQIX.js → chunk-GI3266RE.js} +2 -2
  75. package/dist/{chunk-KBPUTWVR.js → chunk-GNP6I5XM.js} +2 -2
  76. package/dist/{chunk-KJFCQ5I5.js → chunk-GQFT3QTC.js} +3 -3
  77. package/dist/{chunk-BATGR3LA.js → chunk-GSJUGW3A.js} +1 -1
  78. package/dist/{chunk-JY2QQNS4.js → chunk-HJ566HEV.js} +3 -3
  79. package/dist/{chunk-DO63NPJX.js → chunk-I7HSE5LD.js} +11 -11
  80. package/dist/{chunk-QVGVFLKO.js → chunk-IWUYKDDW.js} +4 -4
  81. package/dist/{chunk-FWFOABQJ.js → chunk-JCHF4VR3.js} +1 -1
  82. package/dist/{chunk-QXRW4G7Q.js → chunk-JRW5HK32.js} +2 -2
  83. package/dist/{chunk-BS3IFLU4.js → chunk-JXN4SH6M.js} +1 -1
  84. package/dist/{chunk-2SCXLYWI.js → chunk-JXNDO7FB.js} +1 -1
  85. package/dist/{chunk-DRXRTLL4.js → chunk-KB2EEK5T.js} +5 -5
  86. package/dist/{chunk-KZ56PDQ2.js → chunk-KDTTCR3E.js} +3 -3
  87. package/dist/{chunk-2Y2HEOT6.js → chunk-KPCVIH52.js} +20 -1
  88. package/dist/{chunk-PFZGAUTM.js → chunk-LUBECFXJ.js} +1 -1
  89. package/dist/{chunk-6DWWTT2K.js → chunk-MDEXA6JD.js} +3 -3
  90. package/dist/{chunk-FF3UYU76.js → chunk-MPG4HYQ6.js} +3 -3
  91. package/dist/{chunk-VQ4C6Y2C.js → chunk-NG2EWF32.js} +2 -2
  92. package/dist/{chunk-66FYIYTH.js → chunk-NK5XT4RS.js} +4 -4
  93. package/dist/{chunk-KSPVTLCC.js → chunk-NPG4WCIM.js} +1 -1
  94. package/dist/{chunk-4D53JUQC.js → chunk-O5VJGP6H.js} +4 -4
  95. package/dist/{chunk-WQ5FG3ED.js → chunk-OJGHJIFQ.js} +5 -5
  96. package/dist/{chunk-5TWYZGZY.js → chunk-OR5SWH44.js} +10 -10
  97. package/dist/{chunk-PKVNCWKH.js → chunk-P4PLDBZK.js} +5 -5
  98. package/dist/{chunk-TFZUWGXG.js → chunk-PU2KHDRD.js} +22 -19
  99. package/dist/{chunk-HNR23BLB.js → chunk-Q4VB3DIL.js} +2 -2
  100. package/dist/{chunk-RXIZTNVQ.js → chunk-RIBCPWOB.js} +3 -3
  101. package/dist/{chunk-WOI2LYGL.js → chunk-RLBTKTOK.js} +2 -2
  102. package/dist/{chunk-3JCT4ABX.js → chunk-SI7EFQEU.js} +4 -4
  103. package/dist/{chunk-7M5QJE24.js → chunk-T2N7MEO3.js} +3 -3
  104. package/dist/{chunk-J3THYTYM.js → chunk-T5GJK54S.js} +4 -4
  105. package/dist/{chunk-FUFJKR53.js → chunk-TAGLGMA6.js} +2 -2
  106. package/dist/{chunk-F7F5PTQE.js → chunk-U35OB2HQ.js} +6 -6
  107. package/dist/{chunk-O465JWZH.js → chunk-UMR6UQZ4.js} +3 -3
  108. package/dist/{chunk-QGZ4BPFE.js → chunk-WGK2BIX6.js} +4 -4
  109. package/dist/{chunk-TTIMLMWS.js → chunk-WUREJCUJ.js} +5 -5
  110. package/dist/{chunk-BNZOA7RL.js → chunk-XL6DDWWT.js} +1 -1
  111. package/dist/{chunk-MZOJR4TO.js → chunk-XQFHB2EK.js} +3 -3
  112. package/dist/{chunk-BJ6INBM6.js → chunk-YM5OM2CI.js} +6 -6
  113. package/dist/{chunk-BSZNW4BV.js → chunk-Z2QWM27R.js} +6 -6
  114. package/dist/{chunk-5HEKYLZD.js → chunk-ZUZ4RXM7.js} +1 -1
  115. package/dist/{codex-app-cards-switch-XJAPXIM4.js → codex-app-cards-switch-UI2LQQ6C.js} +11 -11
  116. package/dist/{codex-card-routing-MT2V4TZW.js → codex-card-routing-IOVURY45.js} +2 -2
  117. package/dist/{codex-desktop-launch-T236LJJF.js → codex-desktop-launch-GAXMK6IM.js} +1 -1
  118. package/dist/{codex-session-launch-AHN34OHP.js → codex-session-launch-FYXRCD3I.js} +18 -18
  119. package/dist/{config-DVOF7LRQ.js → config-WOATWPOD.js} +3 -3
  120. package/dist/{global-upgrade-RMJEXXYL.js → global-upgrade-LDIMKAPF.js} +9 -9
  121. package/dist/{identity-3GG54AII.js → identity-GCRCIP45.js} +4 -4
  122. package/dist/{live-capabilities-AF5VHAIS.js → live-capabilities-DPMIMA3P.js} +4 -4
  123. package/dist/{paths-IAK4623I.js → paths-H5LP5HJB.js} +3 -3
  124. package/dist/{reapply-HTAXDM76.js → reapply-FBNJRZLQ.js} +28 -28
  125. package/dist/src/index.d.ts +2 -1
  126. package/dist/src/index.js +31 -31
  127. package/dist/{upgrade-lock-CNS3ST2M.js → upgrade-lock-76Z2YLIV.js} +4 -4
  128. package/dist/{usage-GPRH7WHQ.js → usage-SIELH6XD.js} +3 -3
  129. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  readMacAppAgentKey
3
- } from "./chunk-VTK353JE.js";
3
+ } from "./chunk-E3A77P52.js";
4
4
  import {
5
5
  API_KEYS_PATH
6
- } from "./chunk-VQ4C6Y2C.js";
6
+ } from "./chunk-NG2EWF32.js";
7
7
  import {
8
8
  absoluteUrl
9
- } from "./chunk-JY2QQNS4.js";
9
+ } from "./chunk-HJ566HEV.js";
10
10
  import {
11
11
  findExportedKeyLines,
12
12
  isAdoptedMacAppKey,
@@ -16,10 +16,10 @@ import {
16
16
  readConfigFileKey,
17
17
  readKeySource,
18
18
  readMacAppKeyPrefix
19
- } from "./chunk-SLMDTNKA.js";
19
+ } from "./chunk-22OATDEL.js";
20
20
  import {
21
21
  isValidApiKey
22
- } from "./chunk-2Y2HEOT6.js";
22
+ } from "./chunk-KPCVIH52.js";
23
23
 
24
24
  // src/key-revocation.ts
25
25
  var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  claudeSettingsLocationFor,
3
3
  readClaudePermissionRules
4
- } from "./chunk-P27ZXTQ6.js";
4
+ } from "./chunk-6E2D22Y5.js";
5
5
  import {
6
6
  askAgentQuestions,
7
7
  defersToNativeMode,
8
8
  outcomeOfFailedAsk,
9
9
  reportMachineDenial,
10
10
  storedWaitDeadline
11
- } from "./chunk-M52Q62SO.js";
11
+ } from "./chunk-DLCECUKY.js";
12
12
  import {
13
13
  isGatingMoment,
14
14
  recordKeylessMoment
15
- } from "./chunk-TCRITVSK.js";
15
+ } from "./chunk-CG5SK6NF.js";
16
16
  import {
17
17
  isAdmitted,
18
18
  readAdmissionRules
19
- } from "./chunk-UEXWOQWA.js";
19
+ } from "./chunk-24M7PB2Y.js";
20
20
  import {
21
21
  isDeferAnswer,
22
22
  oncePerSession
23
- } from "./chunk-BNZOA7RL.js";
23
+ } from "./chunk-XL6DDWWT.js";
24
24
  import {
25
25
  activeHookSource,
26
26
  activeIdentity,
27
27
  namedSource
28
- } from "./chunk-WQ5FG3ED.js";
28
+ } from "./chunk-OJGHJIFQ.js";
29
29
  import {
30
30
  DEFAULT_SESSION,
31
31
  approvalAwaitingRetry,
@@ -41,7 +41,7 @@ import {
41
41
  recordBlockedActionHint,
42
42
  reportEvent,
43
43
  settleQuestionsForToolUse
44
- } from "./chunk-DO63NPJX.js";
44
+ } from "./chunk-I7HSE5LD.js";
45
45
  import {
46
46
  UNNAMED_ACTION,
47
47
  deriveAction,
@@ -52,11 +52,11 @@ import {
52
52
  patchDeletesFiles,
53
53
  permissionDeniedAction,
54
54
  scopePathFor
55
- } from "./chunk-ZF2GMORS.js";
55
+ } from "./chunk-FQSFN5ZE.js";
56
56
  import {
57
57
  repoKeyFor,
58
58
  repositoryScopeFor
59
- } from "./chunk-UORHVH4P.js";
59
+ } from "./chunk-4I6FWGZ5.js";
60
60
  import {
61
61
  askUser,
62
62
  cancelQuestion,
@@ -73,17 +73,17 @@ import {
73
73
  waitForQuestion,
74
74
  waitsForThePhone,
75
75
  withdrawQuestion
76
- } from "./chunk-MQTXIY32.js";
76
+ } from "./chunk-44O6GG4I.js";
77
77
  import {
78
78
  getMachineId
79
- } from "./chunk-GJWBVRPF.js";
79
+ } from "./chunk-F5TQ6TCH.js";
80
80
  import {
81
81
  getApiKey,
82
82
  getBaseUrl
83
- } from "./chunk-BATGR3LA.js";
83
+ } from "./chunk-GSJUGW3A.js";
84
84
  import {
85
85
  NPX_LATEST_COMMAND
86
- } from "./chunk-FWFOABQJ.js";
86
+ } from "./chunk-JCHF4VR3.js";
87
87
  import {
88
88
  AGENT_QUESTION_STRATEGY,
89
89
  AGENT_QUESTION_TOOL,
@@ -105,6 +105,7 @@ import {
105
105
  agentQuestionStrategy,
106
106
  agentRulesAllowEveryInput,
107
107
  approvalModeWithoutLocalPrompt,
108
+ approvalRouteOutranksAutoMode,
108
109
  buildDecisionEpisodeFeatures,
109
110
  claudeAllowlistOwnsCall,
110
111
  claudeConsultsItsAllowlist,
@@ -128,6 +129,7 @@ import {
128
129
  isPermissionRequestOwnedByPreToolUse,
129
130
  isPusharyOwnTool,
130
131
  isRecord,
132
+ matchedRouteOf,
131
133
  parseAgentQuestions,
132
134
  permissionsOffAskReason,
133
135
  permissionsOffLineAppliesTo,
@@ -139,7 +141,7 @@ import {
139
141
  terminalStaysLiveForTheCall,
140
142
  timeoutActionWithoutLocalPrompt,
141
143
  unansweredRefusalReason
142
- } from "./chunk-2Y2HEOT6.js";
144
+ } from "./chunk-KPCVIH52.js";
143
145
 
144
146
  // src/terminal-answer-watch.ts
145
147
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -491,7 +493,7 @@ var emitDecisionEpisode = (apiKey, input, toolPolicy, machineId, toolTarget, dec
491
493
  machineId
492
494
  });
493
495
  };
494
- var dispatchModeHandler = async (apiKey, input, toolPolicy, machineId, trainingConsent = false, scopeReason, scopePath, terminalLive, askReason) => {
496
+ var dispatchModeHandler = async (apiKey, input, toolPolicy, machineId, trainingConsent = false, scopeReason, scopePath, terminalLive, askReason, matchedRoute) => {
495
497
  const description = describeToolCall(input.tool_name, input.tool_input, "hook");
496
498
  const projectName = basename(input.cwd ?? process.cwd());
497
499
  const sessionId = input.session_id;
@@ -501,6 +503,7 @@ var dispatchModeHandler = async (apiKey, input, toolPolicy, machineId, trainingC
501
503
  const intent = readLastPrompt(sessionId ?? DEFAULT_SESSION) ?? (input.transcript_path ? readLastUserPrompt(input.transcript_path) : void 0);
502
504
  const decision = {
503
505
  toolPath: hookWritePath(input.tool_name, input.tool_input),
506
+ ...matchedRoute ? { matchedRoute } : {},
504
507
  intent,
505
508
  action: deriveAction(input.tool_name, input.tool_input),
506
509
  blocker: scopeReason ?? deriveBlocker(toolPolicy.mode, askReason),
@@ -774,7 +777,7 @@ var handlePreToolUse = async (input, canonical) => {
774
777
  }
775
778
  if (await claimedBlockedActionRetry(apiKey, input)) return allow(BLOCKED_ACTION_ALLOW_REASON);
776
779
  if (remindedOfApprovedRetry(input)) return deny(BLOCKED_ACTION_CHANGED_RETRY_REASON);
777
- if (!(verdict.kind === "gate" && verdict.scopeReason) && shouldDeferToNativeMode(input.permission_mode, input.tool_name)) {
780
+ if (!(verdict.kind === "gate" && verdict.scopeReason) && !approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode) && shouldDeferToNativeMode(input.permission_mode, input.tool_name)) {
778
781
  return void 0;
779
782
  }
780
783
  if (claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudePermissionRulesFor(input))) return void 0;
@@ -791,7 +794,7 @@ var handlePreToolUse = async (input, canonical) => {
791
794
  return undecidedCall(SOLE_GATE_UNDECIDED_REASON);
792
795
  default:
793
796
  if (preToolUseHandsOff(input, gateInput, verdict)) return ask(TERMINAL_AND_PHONE_REASON);
794
- return await dispatchModeHandler(apiKey, input, verdict.policy, getMachineId(), modeState.trainingConsent, verdict.scopeReason, verdict.scopePath, void 0, permissionsOffAskReason(gateInput, verdict));
797
+ return await dispatchModeHandler(apiKey, input, verdict.policy, getMachineId(), modeState.trainingConsent, verdict.scopeReason, verdict.scopePath, void 0, permissionsOffAskReason(gateInput, verdict), matchedRouteOf(gateInput));
795
798
  }
796
799
  } catch (error) {
797
800
  await reportHookFailure("pre_tool_use_failed", error);
@@ -839,7 +842,7 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
839
842
  const scopeQuestion = verdict.kind === "gate" && Boolean(verdict.scopeReason);
840
843
  const preToolUseRanForTheCall = PRETOOLUSE_HANDLED_TOOLS.has(input.tool_name) && isAdmitted(readAdmissionRules(), "claude", "PreToolUse");
841
844
  const preToolUseAskedTheScopeQuestion = scopeQuestion && terminalLive && preToolUseRanForTheCall;
842
- const preToolUseOwnsTheCall = !scopeQuestion && !claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudeRules) && isPermissionRequestOwnedByPreToolUse(input.tool_name, input.permission_mode, shouldDeferToNativeMode);
845
+ const preToolUseOwnsTheCall = !scopeQuestion && !claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudeRules) && (isPermissionRequestOwnedByPreToolUse(input.tool_name, input.permission_mode, shouldDeferToNativeMode) || preToolUseRanForTheCall && approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode));
843
846
  if (!handedOff && (preToolUseAskedTheScopeQuestion || preToolUseOwnsTheCall)) return void 0;
844
847
  const terminalLiveDispatch = handedOff ? { holdBudgetSeconds } : void 0;
845
848
  switch (verdict.kind) {
@@ -850,7 +853,7 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
850
853
  return void 0;
851
854
  default:
852
855
  return toPermissionRequestOutput(
853
- await dispatchModeHandler(apiKey, input, verdict.policy, getMachineId(), modeState.trainingConsent, verdict.scopeReason, verdict.scopePath, terminalLiveDispatch, permissionsOffAskReason(gateInput, verdict))
856
+ await dispatchModeHandler(apiKey, input, verdict.policy, getMachineId(), modeState.trainingConsent, verdict.scopeReason, verdict.scopePath, terminalLiveDispatch, permissionsOffAskReason(gateInput, verdict), matchedRouteOf(gateInput))
854
857
  );
855
858
  }
856
859
  } catch (error) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-WOI2LYGL.js";
3
+ } from "./chunk-RLBTKTOK.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  npmExitedOnPermissionDenied
8
- } from "./chunk-RXIZTNVQ.js";
8
+ } from "./chunk-RIBCPWOB.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-T5I4PKOQ.js";
@@ -399,9 +399,9 @@ var installGlobally = (options) => {
399
399
  }
400
400
  const started = (async () => {
401
401
  if (!npmIsOnPath()) throw new NpmMissingError();
402
- const { withUpgradeLock } = await import("./global-upgrade-RMJEXXYL.js");
403
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-CNS3ST2M.js");
404
- const { autoUpdateLock } = await import("./paths-IAK4623I.js");
402
+ const { withUpgradeLock } = await import("./global-upgrade-LDIMKAPF.js");
403
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-76Z2YLIV.js");
404
+ const { autoUpdateLock } = await import("./paths-H5LP5HJB.js");
405
405
  let result = "skipped";
406
406
  const install = async () => {
407
407
  const platform = process.platform;
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-RXIZTNVQ.js";
6
+ } from "./chunk-RIBCPWOB.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-T5I4PKOQ.js";
@@ -17,7 +17,7 @@ import {
17
17
  HOOK_LOCATOR_BINARY,
18
18
  PRETOOLUSE_GATED_TOOLS,
19
19
  withHookHoldBudget
20
- } from "./chunk-2Y2HEOT6.js";
20
+ } from "./chunk-KPCVIH52.js";
21
21
 
22
22
  // src/setup/paths.ts
23
23
  import { createHash as createHash2 } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-F7F5PTQE.js";
3
+ } from "./chunk-U35OB2HQ.js";
4
4
  import {
5
5
  canChangeApprovalSettings
6
- } from "./chunk-VQ4C6Y2C.js";
6
+ } from "./chunk-NG2EWF32.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-FF3UYU76.js";
10
+ } from "./chunk-MPG4HYQ6.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-FWFOABQJ.js";
16
+ } from "./chunk-JCHF4VR3.js";
17
17
 
18
18
  // src/setup/closing.ts
19
19
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-TC6TGMST.js";
3
+ } from "./chunk-FLRVTAV4.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-ROVLRXBI.js";
@@ -13,10 +13,10 @@ import {
13
13
  resolvePackageVersionFromBinary,
14
14
  resolvePathBinary,
15
15
  resolvePathBinaryAsync
16
- } from "./chunk-RXIZTNVQ.js";
16
+ } from "./chunk-RIBCPWOB.js";
17
17
  import {
18
18
  MANAGED_PROVIDERS
19
- } from "./chunk-2Y2HEOT6.js";
19
+ } from "./chunk-KPCVIH52.js";
20
20
 
21
21
  // src/live-capabilities.ts
22
22
  import { homedir } from "os";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-G66WIAST.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-SLMDTNKA.js";
16
+ } from "./chunk-22OATDEL.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-BATGR3LA.js";
19
+ } from "./chunk-GSJUGW3A.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-FWFOABQJ.js";
22
+ } from "./chunk-JCHF4VR3.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-2Y2HEOT6.js";
25
+ } from "./chunk-KPCVIH52.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-WOI2LYGL.js";
3
+ } from "./chunk-RLBTKTOK.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-T5I4PKOQ.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-2Y2HEOT6.js";
9
+ } from "./chunk-KPCVIH52.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  APPROVAL_RULES_PATH,
3
3
  canChangeApprovalSettings
4
- } from "./chunk-VQ4C6Y2C.js";
4
+ } from "./chunk-NG2EWF32.js";
5
5
  import {
6
6
  callMcpTool
7
- } from "./chunk-TTIMLMWS.js";
7
+ } from "./chunk-WUREJCUJ.js";
8
8
  import {
9
9
  absoluteUrl
10
- } from "./chunk-JY2QQNS4.js";
10
+ } from "./chunk-HJ566HEV.js";
11
11
  import {
12
12
  getBaseUrl
13
- } from "./chunk-BATGR3LA.js";
13
+ } from "./chunk-GSJUGW3A.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-FWFOABQJ.js";
16
+ } from "./chunk-JCHF4VR3.js";
17
17
  import {
18
18
  AGENT_STOP_DEFAULT_SECONDS,
19
19
  APPROVAL_MODE_META,
@@ -21,7 +21,7 @@ import {
21
21
  classifyConfirmResponse,
22
22
  isAnswerSource,
23
23
  roundTripAsk
24
- } from "./chunk-2Y2HEOT6.js";
24
+ } from "./chunk-KPCVIH52.js";
25
25
 
26
26
  // src/reach.ts
27
27
  var reachVerdict = (channels) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-D37U7BKX.js";
3
+ } from "./chunk-5SUTYXCT.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-YPY4YCIZ.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YU2EUD7O.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-FWFOABQJ.js";
12
+ } from "./chunk-JCHF4VR3.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-2Y2HEOT6.js";
20
+ } from "./chunk-KPCVIH52.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -12,7 +12,7 @@ import {
12
12
  reachVerdict,
13
13
  reachesYou,
14
14
  verifyDelivery
15
- } from "./chunk-F7F5PTQE.js";
15
+ } from "./chunk-U35OB2HQ.js";
16
16
  import {
17
17
  humanIsTty,
18
18
  writeHuman
@@ -24,14 +24,14 @@ import {
24
24
  } from "./chunk-FO3MDD26.js";
25
25
  import {
26
26
  reportedInstallSource
27
- } from "./chunk-QXRW4G7Q.js";
27
+ } from "./chunk-JRW5HK32.js";
28
28
  import {
29
29
  NPX_LATEST_COMMAND
30
- } from "./chunk-FWFOABQJ.js";
30
+ } from "./chunk-JCHF4VR3.js";
31
31
  import {
32
32
  NO_PAIRING_COMPUTER,
33
33
  PAIR_TTL_SECONDS
34
- } from "./chunk-2Y2HEOT6.js";
34
+ } from "./chunk-KPCVIH52.js";
35
35
 
36
36
  // src/onboarding.ts
37
37
  import qrcodeTerminal from "qrcode-terminal";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  keyCheckFromResponse
3
- } from "./chunk-JY2QQNS4.js";
3
+ } from "./chunk-HJ566HEV.js";
4
4
  import {
5
5
  installNetworkDefaults
6
- } from "./chunk-MZOJR4TO.js";
6
+ } from "./chunk-XQFHB2EK.js";
7
7
  import {
8
8
  fetchAsCredential
9
- } from "./chunk-KSPVTLCC.js";
9
+ } from "./chunk-NPG4WCIM.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-BATGR3LA.js";
12
+ } from "./chunk-GSJUGW3A.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-2Y2HEOT6.js";
17
+ } from "./chunk-KPCVIH52.js";
18
18
 
19
19
  // src/retry.ts
20
20
  var isRetryable = (err) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-DO63NPJX.js";
3
+ } from "./chunk-I7HSE5LD.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-GJWBVRPF.js";
3
+ } from "./chunk-F5TQ6TCH.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-BATGR3LA.js";
6
+ } from "./chunk-GSJUGW3A.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-YU2EUD7O.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-2Y2HEOT6.js";
16
+ } from "./chunk-KPCVIH52.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-HNR23BLB.js";
6
+ } from "./chunk-Q4VB3DIL.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-7M5QJE24.js";
9
+ } from "./chunk-T2N7MEO3.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,25 +18,25 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-OW3WQWBA.js";
21
+ } from "./chunk-D3XNQAQO.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-WOI2LYGL.js";
26
+ } from "./chunk-RLBTKTOK.js";
27
27
  import {
28
28
  execNpm,
29
29
  fetchLatestPublishedVersion,
30
30
  npmErrorMessage,
31
31
  readGlobalCliInstallAt,
32
32
  readGlobalPrefix
33
- } from "./chunk-RXIZTNVQ.js";
33
+ } from "./chunk-RIBCPWOB.js";
34
34
  import {
35
35
  EXIT
36
36
  } from "./chunk-BG4HHB7E.js";
37
37
  import {
38
38
  NPX_LATEST_COMMAND
39
- } from "./chunk-FWFOABQJ.js";
39
+ } from "./chunk-JCHF4VR3.js";
40
40
  import {
41
41
  commandsPackage,
42
42
  globalUpgradeEntry,
@@ -2,10 +2,10 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-SZQKXQIX.js";
5
+ } from "./chunk-GI3266RE.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-VQ4C6Y2C.js";
8
+ } from "./chunk-NG2EWF32.js";
9
9
  import {
10
10
  createIo
11
11
  } from "./chunk-FO3MDD26.js";
@@ -14,19 +14,19 @@ import {
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-JY2QQNS4.js";
17
+ } from "./chunk-HJ566HEV.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-SLMDTNKA.js";
20
+ } from "./chunk-22OATDEL.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-BATGR3LA.js";
23
+ } from "./chunk-GSJUGW3A.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-2Y2HEOT6.js";
29
+ } from "./chunk-KPCVIH52.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-SLMDTNKA.js";
3
+ } from "./chunk-22OATDEL.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -22,22 +22,22 @@ import {
22
22
  turnCodexAppCardsOff,
23
23
  turnCodexAppCardsOn,
24
24
  whyLaunchctlFailed
25
- } from "./chunk-KBPUTWVR.js";
26
- import "./chunk-LWVOQZ24.js";
25
+ } from "./chunk-GNP6I5XM.js";
26
+ import "./chunk-BYL7RNOM.js";
27
27
  import "./chunk-XCEN33UP.js";
28
28
  import "./chunk-QCGNGEGE.js";
29
- import "./chunk-IAI6ZRVA.js";
29
+ import "./chunk-3ZU77DJH.js";
30
30
  import "./chunk-XHKBHWLX.js";
31
- import "./chunk-GJWBVRPF.js";
32
- import "./chunk-SLMDTNKA.js";
33
- import "./chunk-QXRW4G7Q.js";
34
- import "./chunk-WOI2LYGL.js";
35
- import "./chunk-RXIZTNVQ.js";
36
- import "./chunk-BATGR3LA.js";
31
+ import "./chunk-F5TQ6TCH.js";
32
+ import "./chunk-22OATDEL.js";
33
+ import "./chunk-JRW5HK32.js";
34
+ import "./chunk-RLBTKTOK.js";
35
+ import "./chunk-RIBCPWOB.js";
36
+ import "./chunk-GSJUGW3A.js";
37
37
  import "./chunk-T5I4PKOQ.js";
38
- import "./chunk-FWFOABQJ.js";
38
+ import "./chunk-JCHF4VR3.js";
39
39
  import "./chunk-ZVU6WMMU.js";
40
- import "./chunk-2Y2HEOT6.js";
40
+ import "./chunk-KPCVIH52.js";
41
41
  import "./chunk-E46NE7FB.js";
42
42
  import "./chunk-MLKGABMK.js";
43
43
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  deriveToolTarget
3
- } from "./chunk-ZF2GMORS.js";
3
+ } from "./chunk-FQSFN5ZE.js";
4
4
  import {
5
5
  TOOL_NAME_MAX_LENGTH,
6
6
  codexElicitationToolName
7
- } from "./chunk-2Y2HEOT6.js";
7
+ } from "./chunk-KPCVIH52.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // src/codex-card-routing.ts
@@ -11,7 +11,7 @@ import {
11
11
  installedCodexApp,
12
12
  shellQuoted,
13
13
  writeDesktopProxy
14
- } from "./chunk-LWVOQZ24.js";
14
+ } from "./chunk-BYL7RNOM.js";
15
15
  import "./chunk-XCEN33UP.js";
16
16
  import {
17
17
  CODEX_APP_LAUNCH_VARIABLE