pushary 1.9.221 → 1.9.222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{api-JTOIAJHT.js → api-5FMENCWV.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 +45 -38
  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 +21 -1
  18. package/dist/bin/pushary-doctor.js +47 -47
  19. package/dist/bin/pushary-elicitation-hook.js +27 -27
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +31 -31
  22. package/dist/bin/pushary-hook.js +34 -34
  23. package/dist/bin/pushary-login.js +22 -22
  24. package/dist/bin/pushary-logout.js +30 -30
  25. package/dist/bin/pushary-mcp.js +12 -12
  26. package/dist/bin/pushary-mode.js +16 -16
  27. package/dist/bin/pushary-notification-hook.js +27 -27
  28. package/dist/bin/pushary-opencode-bridge.js +22 -22
  29. package/dist/bin/pushary-opencode-hook.js +32 -32
  30. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  31. package/dist/bin/pushary-permission-hook.js +34 -34
  32. package/dist/bin/pushary-post-hook.js +28 -28
  33. package/dist/bin/pushary-prompt-hook.js +27 -27
  34. package/dist/bin/pushary-session-end-hook.js +27 -27
  35. package/dist/bin/pushary-session-start-hook.js +39 -39
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +57 -57
  38. package/dist/bin/pushary-stats.js +5 -5
  39. package/dist/bin/pushary-status.js +36 -36
  40. package/dist/bin/pushary-stop-hook.js +27 -27
  41. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  42. package/dist/bin/pushary-suggestions.js +16 -16
  43. package/dist/bin/pushary-transcript-register.js +17 -17
  44. package/dist/bin/pushary-transcripts.js +25 -25
  45. package/dist/bin/pushary-upgrade.js +46 -46
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-H5MSCUQW.js → chunk-2ODL2KHZ.js} +5 -5
  49. package/dist/{chunk-U6O6UBGW.js → chunk-3SROGHN7.js} +1 -1
  50. package/dist/{chunk-TCZ46QAX.js → chunk-3UNLHFAQ.js} +5 -5
  51. package/dist/{chunk-JGD7KVCM.js → chunk-3ZELWDAG.js} +10 -10
  52. package/dist/{chunk-X3DWEYLO.js → chunk-4L274ET5.js} +3 -3
  53. package/dist/{chunk-CIETRIS6.js → chunk-4PIHRM37.js} +5 -5
  54. package/dist/{chunk-HQJPT5KI.js → chunk-4XY5VHBW.js} +4 -4
  55. package/dist/{chunk-RI3JPM5A.js → chunk-5CHF6KSC.js} +1 -1
  56. package/dist/{chunk-HFS627UG.js → chunk-5PEALQVY.js} +6 -6
  57. package/dist/{chunk-7JNLUN65.js → chunk-5R3PKRBZ.js} +4 -4
  58. package/dist/{chunk-4JBJ47K7.js → chunk-62OI7PJ6.js} +6 -6
  59. package/dist/{chunk-UWY2QJ6D.js → chunk-66M7UB7P.js} +2 -2
  60. package/dist/{chunk-AN2EIWF3.js → chunk-7DQ4NJHO.js} +3 -3
  61. package/dist/{chunk-SY7IDQEJ.js → chunk-AJDNOASW.js} +3 -3
  62. package/dist/{chunk-LV4G3THM.js → chunk-AJXODCEY.js} +3 -3
  63. package/dist/{chunk-LTJI4SBZ.js → chunk-AQQ2EATU.js} +2 -2
  64. package/dist/{chunk-US6SM7WS.js → chunk-B5B2W6RF.js} +1 -1
  65. package/dist/{chunk-BAH3WT7Z.js → chunk-B7BT6S66.js} +2 -2
  66. package/dist/{chunk-A4WF3WDA.js → chunk-BVBKGIAH.js} +5 -5
  67. package/dist/{chunk-KANE733H.js → chunk-CCWBBHOQ.js} +1 -1
  68. package/dist/{chunk-2PYVR6W4.js → chunk-CJOSYTSG.js} +2 -2
  69. package/dist/{chunk-JNNLSAS5.js → chunk-CQMJ5YLX.js} +1 -1
  70. package/dist/{chunk-PVMQE42Q.js → chunk-DZUEOUFB.js} +7 -7
  71. package/dist/{chunk-I6ODTB3M.js → chunk-E3H56JAS.js} +2 -2
  72. package/dist/{chunk-WZ3FGOGX.js → chunk-FERJXII2.js} +2 -2
  73. package/dist/{chunk-JEOQ4VXD.js → chunk-FLI4GFL2.js} +8 -8
  74. package/dist/{chunk-ZWMQR6TE.js → chunk-G7GAOYPA.js} +1 -1
  75. package/dist/{chunk-3YBPITHZ.js → chunk-GHYB66LW.js} +1 -1
  76. package/dist/{chunk-RCRNZ27Z.js → chunk-GNPULK7J.js} +16 -16
  77. package/dist/{chunk-UW5STDS3.js → chunk-H5GFXPBU.js} +1 -1
  78. package/dist/{chunk-VCN5MOSO.js → chunk-HDYOAYWZ.js} +6 -6
  79. package/dist/{chunk-PEVHQDEW.js → chunk-HG76GEOE.js} +1 -1
  80. package/dist/{chunk-NOXGXO2D.js → chunk-HNRN7K22.js} +2 -2
  81. package/dist/{chunk-RX5U2GCR.js → chunk-IDY5NK64.js} +3 -3
  82. package/dist/{chunk-ZHF2HQAH.js → chunk-J7E3CS5N.js} +4 -4
  83. package/dist/{chunk-7DSSWYIS.js → chunk-JDTSLDKU.js} +5 -5
  84. package/dist/{chunk-ZROUIAPA.js → chunk-JEKST75E.js} +12 -12
  85. package/dist/{chunk-YYQHBOQB.js → chunk-JMTFCHR3.js} +5 -5
  86. package/dist/{chunk-MLDI6AF3.js → chunk-JRQCXNT3.js} +1 -1
  87. package/dist/{chunk-ZRYTUECR.js → chunk-JZOOJH63.js} +2 -2
  88. package/dist/{chunk-HWGF3NYS.js → chunk-K2RNGCIH.js} +1 -1
  89. package/dist/{chunk-YEVBZVZH.js → chunk-KESEXC6J.js} +4 -4
  90. package/dist/{chunk-XVH3M2LX.js → chunk-KQUOVCCS.js} +19 -10
  91. package/dist/{chunk-RZYGO6AP.js → chunk-LHSKKRGC.js} +5 -5
  92. package/dist/{chunk-GBQC3S6V.js → chunk-LRZKYIQ6.js} +1 -1
  93. package/dist/{chunk-DVFQ2ILC.js → chunk-MJOKUFFE.js} +3 -3
  94. package/dist/{chunk-UK66PEWW.js → chunk-MNUYTEPY.js} +4 -4
  95. package/dist/{chunk-SHJMSG2V.js → chunk-MXX4JRBI.js} +33 -10
  96. package/dist/{chunk-DKDURRNS.js → chunk-N4GJ7UEG.js} +2 -2
  97. package/dist/{chunk-45RB4A5I.js → chunk-O5YMM4NC.js} +3 -3
  98. package/dist/{chunk-UDKEHYEH.js → chunk-OLBZ2IR4.js} +5 -5
  99. package/dist/{chunk-3JDBILMC.js → chunk-PAPMVRHR.js} +1 -1
  100. package/dist/{chunk-624434K4.js → chunk-QQHOFBU6.js} +12 -12
  101. package/dist/{chunk-IQ2HY4D5.js → chunk-REGGASP3.js} +5 -5
  102. package/dist/{chunk-RETWX7MH.js → chunk-RJCLIWNI.js} +6 -6
  103. package/dist/{chunk-SUNV63JU.js → chunk-SBQX7DNO.js} +3 -3
  104. package/dist/{chunk-UIWTGSZP.js → chunk-STXX44Q2.js} +6 -6
  105. package/dist/{chunk-OLFIEDEY.js → chunk-SYMM37D5.js} +3 -3
  106. package/dist/{chunk-PKDV377M.js → chunk-TMBHLGDG.js} +3 -3
  107. package/dist/{chunk-UXLGIXAW.js → chunk-TY26HQND.js} +3 -3
  108. package/dist/{chunk-6HWIQEPF.js → chunk-TY5UXKIU.js} +5 -5
  109. package/dist/{chunk-7HMNT5DR.js → chunk-U4TBTVKC.js} +7 -7
  110. package/dist/{chunk-VFVLM6OC.js → chunk-U7734QBB.js} +2 -2
  111. package/dist/{chunk-EBRDPALD.js → chunk-UG52X3L4.js} +1 -1
  112. package/dist/{chunk-YSJI3CNQ.js → chunk-UO224FD7.js} +2 -2
  113. package/dist/{chunk-A5MNFZL5.js → chunk-VV7XYIC6.js} +9 -9
  114. package/dist/{chunk-SCJQGYE6.js → chunk-W35HZ5LB.js} +2 -2
  115. package/dist/{chunk-UYW456YU.js → chunk-W5BHO4UE.js} +1 -1
  116. package/dist/{chunk-6ML2JCSW.js → chunk-W75STRF5.js} +4 -4
  117. package/dist/{chunk-GL7RJODG.js → chunk-WM5DVEHF.js} +1 -1
  118. package/dist/{chunk-5MTASFSB.js → chunk-XAFLPVOH.js} +4 -4
  119. package/dist/{chunk-RIXQJT7Y.js → chunk-XKF65PRO.js} +1 -1
  120. package/dist/{chunk-JX4AEMKB.js → chunk-XRANKHLM.js} +1 -1
  121. package/dist/{chunk-RLYMOZFR.js → chunk-YDLNKHUC.js} +1 -1
  122. package/dist/{chunk-DUDBTT3J.js → chunk-YIIGUJP3.js} +4 -4
  123. package/dist/{chunk-IV43BDFN.js → chunk-Z2JCNR7O.js} +1 -1
  124. package/dist/{chunk-TXBAJEMC.js → chunk-ZB5CQM3S.js} +1 -1
  125. package/dist/{chunk-JSEHZPLC.js → chunk-ZIE3LCHE.js} +4 -4
  126. package/dist/{chunk-YW6TMH5Q.js → chunk-ZQYAGL5J.js} +2 -2
  127. package/dist/{codex-app-cards-switch-2EVH7E5F.js → codex-app-cards-switch-WIMAJIB7.js} +11 -11
  128. package/dist/{codex-card-routing-GDVRWK2E.js → codex-card-routing-XCFEMXOH.js} +2 -2
  129. package/dist/{codex-desktop-launch-ODHJNOKB.js → codex-desktop-launch-SIWL62HT.js} +1 -1
  130. package/dist/{codex-session-launch-J2BVVYQN.js → codex-session-launch-LUCQNTVP.js} +20 -20
  131. package/dist/{config-6EROWTFW.js → config-CB7VGWF7.js} +3 -3
  132. package/dist/{global-upgrade-WTIVMPOJ.js → global-upgrade-34UV333H.js} +9 -9
  133. package/dist/{identity-BA4HGNJ5.js → identity-GTVFP3LV.js} +4 -4
  134. package/dist/{live-capabilities-JLRZCD2P.js → live-capabilities-RG7STBKW.js} +4 -4
  135. package/dist/{paths-LLHZWMPM.js → paths-IIFXE7O2.js} +3 -3
  136. package/dist/reapply-ZN6LLFVB.js +74 -0
  137. package/dist/src/index.js +33 -33
  138. package/dist/{upgrade-lock-LVC72XIF.js → upgrade-lock-GFNGLGR3.js} +4 -4
  139. package/dist/{usage-2WSXDV5P.js → usage-AJ2MWOQT.js} +3 -3
  140. package/package.json +1 -1
  141. package/dist/reapply-YAEKWAUL.js +0 -74
@@ -2,30 +2,30 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-I6ODTB3M.js";
5
+ } from "./chunk-E3H56JAS.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-SCJQGYE6.js";
9
+ } from "./chunk-W35HZ5LB.js";
10
10
  import {
11
11
  defersToNativeMode
12
- } from "./chunk-ZWMQR6TE.js";
12
+ } from "./chunk-G7GAOYPA.js";
13
13
  import {
14
14
  reportMachineDenial
15
- } from "./chunk-YEVBZVZH.js";
15
+ } from "./chunk-KESEXC6J.js";
16
16
  import {
17
17
  isGatingMoment,
18
18
  recordKeylessMoment
19
- } from "./chunk-GL7RJODG.js";
19
+ } from "./chunk-WM5DVEHF.js";
20
20
  import {
21
21
  isAdmitted,
22
22
  readAdmissionRules
23
- } from "./chunk-IQ2HY4D5.js";
23
+ } from "./chunk-REGGASP3.js";
24
24
  import {
25
25
  activeHookSource,
26
26
  activeIdentity,
27
27
  namedSource
28
- } from "./chunk-TCZ46QAX.js";
28
+ } from "./chunk-3UNLHFAQ.js";
29
29
  import {
30
30
  DEFAULT_SESSION,
31
31
  allow,
@@ -65,7 +65,7 @@ import {
65
65
  storedWaitDeadline,
66
66
  sweepFilesOlderThan,
67
67
  userScope
68
- } from "./chunk-624434K4.js";
68
+ } from "./chunk-QQHOFBU6.js";
69
69
  import {
70
70
  UNNAMED_ACTION,
71
71
  deriveAction,
@@ -76,7 +76,7 @@ import {
76
76
  patchDeletesFiles,
77
77
  permissionDeniedAction,
78
78
  scopePathFor
79
- } from "./chunk-XVH3M2LX.js";
79
+ } from "./chunk-KQUOVCCS.js";
80
80
  import {
81
81
  askUser,
82
82
  cancelQuestion,
@@ -91,29 +91,29 @@ import {
91
91
  sendNotification,
92
92
  waitForQuestion,
93
93
  withdrawQuestion
94
- } from "./chunk-UIWTGSZP.js";
94
+ } from "./chunk-STXX44Q2.js";
95
95
  import {
96
96
  branchFor,
97
97
  projectNameFor,
98
98
  repoKeyFor,
99
99
  repositoryScopeFor
100
- } from "./chunk-U6O6UBGW.js";
100
+ } from "./chunk-3SROGHN7.js";
101
101
  import {
102
102
  getMachineId
103
- } from "./chunk-US6SM7WS.js";
103
+ } from "./chunk-B5B2W6RF.js";
104
104
  import {
105
105
  POSTTOOLUSE_MIRRORED_TOOLS
106
- } from "./chunk-YSJI3CNQ.js";
106
+ } from "./chunk-UO224FD7.js";
107
107
  import {
108
108
  getApiKey,
109
109
  getBaseUrl
110
- } from "./chunk-KANE733H.js";
110
+ } from "./chunk-CCWBBHOQ.js";
111
111
  import {
112
112
  writeFileAtomic
113
113
  } from "./chunk-PM2NRK6Y.js";
114
114
  import {
115
115
  NPX_LATEST_COMMAND
116
- } from "./chunk-JX4AEMKB.js";
116
+ } from "./chunk-XRANKHLM.js";
117
117
  import {
118
118
  AGENT_QUESTION_STRATEGY,
119
119
  AGENT_QUESTION_TOOL,
@@ -180,7 +180,7 @@ import {
180
180
  terminalStaysLiveForTheCall,
181
181
  timeoutActionWithoutLocalPrompt,
182
182
  unapprovedScopeReason
183
- } from "./chunk-SHJMSG2V.js";
183
+ } from "./chunk-MXX4JRBI.js";
184
184
 
185
185
  // src/terminal-answer-watch.ts
186
186
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOOK_BUDGETS
3
- } from "./chunk-SHJMSG2V.js";
3
+ } from "./chunk-MXX4JRBI.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-4JBJ47K7.js";
17
+ } from "./chunk-62OI7PJ6.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-RI3JPM5A.js";
32
+ } from "./chunk-5CHF6KSC.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-X3DWEYLO.js";
35
+ } from "./chunk-4L274ET5.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-YW6TMH5Q.js";
38
+ } from "./chunk-ZQYAGL5J.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-JX4AEMKB.js";
41
+ } from "./chunk-XRANKHLM.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-SHJMSG2V.js";
45
+ } from "./chunk-MXX4JRBI.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-SHJMSG2V.js";
3
+ } from "./chunk-MXX4JRBI.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-YSJI3CNQ.js";
6
+ } from "./chunk-UO224FD7.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-CXQWDQCJ.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-SHJMSG2V.js";
20
+ } from "./chunk-MXX4JRBI.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-HWGF3NYS.js";
7
+ } from "./chunk-K2RNGCIH.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-KANE733H.js";
10
+ } from "./chunk-CCWBBHOQ.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-SHJMSG2V.js";
18
+ } from "./chunk-MXX4JRBI.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-OLFIEDEY.js";
16
+ } from "./chunk-SYMM37D5.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-KANE733H.js";
19
+ } from "./chunk-CCWBBHOQ.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-JX4AEMKB.js";
22
+ } from "./chunk-XRANKHLM.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-SHJMSG2V.js";
25
+ } from "./chunk-MXX4JRBI.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-624434K4.js";
3
+ } from "./chunk-QQHOFBU6.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-XVH3M2LX.js";
6
+ } from "./chunk-KQUOVCCS.js";
7
7
  import {
8
8
  ASK_USER_TIMEOUT_MS,
9
9
  WAIT_END_TIMEOUT_MS,
@@ -12,10 +12,10 @@ import {
12
12
  isLocalQuestionHandoff,
13
13
  unavailableQuestionUnlessRefused,
14
14
  waitForQuestion
15
- } from "./chunk-UIWTGSZP.js";
15
+ } from "./chunk-STXX44Q2.js";
16
16
  import {
17
17
  getMachineId
18
- } from "./chunk-US6SM7WS.js";
18
+ } from "./chunk-B5B2W6RF.js";
19
19
  import {
20
20
  hookMaxWaitSeconds,
21
21
  hookWaitClamped,
@@ -24,7 +24,7 @@ import {
24
24
  refusesWhenUnanswered,
25
25
  ruleApprovesAfterItsFullWindow,
26
26
  scopeBreachReasonOf
27
- } from "./chunk-SHJMSG2V.js";
27
+ } from "./chunk-MXX4JRBI.js";
28
28
 
29
29
  // src/pushed-question.ts
30
30
  var scopeQuestionOf = (verdict) => {
@@ -5,7 +5,7 @@ import {
5
5
  ensureCodexTrustsPusharyHooks,
6
6
  hermesHistoryNeedsTheCliHelper,
7
7
  recordInstalledHermesHistoryHelper
8
- } from "./chunk-AN2EIWF3.js";
8
+ } from "./chunk-7DQ4NJHO.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-6ML2JCSW.js";
17
+ } from "./chunk-W75STRF5.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-A4WF3WDA.js";
26
+ } from "./chunk-BVBKGIAH.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-PVMQE42Q.js";
39
+ } from "./chunk-DZUEOUFB.js";
40
40
  import {
41
41
  detectClaudeVersion
42
- } from "./chunk-DKDURRNS.js";
42
+ } from "./chunk-N4GJ7UEG.js";
43
43
  import {
44
44
  addCompatibleHooks,
45
45
  compatibleConfigFile,
46
46
  compatibleInstructionsFile,
47
47
  hasCompatibleHooks
48
- } from "./chunk-TCZ46QAX.js";
48
+ } from "./chunk-3UNLHFAQ.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-HQJPT5KI.js";
60
+ } from "./chunk-4XY5VHBW.js";
61
61
  import {
62
62
  transcriptsEnabled
63
- } from "./chunk-EBRDPALD.js";
63
+ } from "./chunk-UG52X3L4.js";
64
64
  import {
65
65
  KEY_FILE_MODE
66
- } from "./chunk-OLFIEDEY.js";
66
+ } from "./chunk-SYMM37D5.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-YSJI3CNQ.js";
113
+ } from "./chunk-UO224FD7.js";
114
114
  import {
115
115
  formatVersion,
116
116
  hookCommandsUseBareNames,
117
117
  resolveGlobalBinDir,
118
118
  resolveGlobalBinary
119
- } from "./chunk-UK66PEWW.js";
119
+ } from "./chunk-MNUYTEPY.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-SHJMSG2V.js";
129
+ } from "./chunk-MXX4JRBI.js";
130
130
 
131
131
  // src/reapply.ts
132
132
  import { dirname, join } from "path";
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-5MTASFSB.js";
8
+ } from "./chunk-XAFLPVOH.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-2PYVR6W4.js";
11
+ } from "./chunk-CJOSYTSG.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-X3DWEYLO.js";
14
+ } from "./chunk-4L274ET5.js";
15
15
  import {
16
16
  findExportedKeyLines,
17
17
  isAdoptedMacAppKey,
@@ -21,10 +21,10 @@ import {
21
21
  readConfigFileKey,
22
22
  readKeySource,
23
23
  readMacAppKeyPrefix
24
- } from "./chunk-OLFIEDEY.js";
24
+ } from "./chunk-SYMM37D5.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-SHJMSG2V.js";
27
+ } from "./chunk-MXX4JRBI.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {
@@ -10,7 +10,7 @@ import {
10
10
  uploadTranscriptRecords,
11
11
  verifyAnchoredRecipients,
12
12
  wrapSessionKey
13
- } from "./chunk-RX5U2GCR.js";
13
+ } from "./chunk-IDY5NK64.js";
14
14
 
15
15
  // src/live-session.ts
16
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-YSJI3CNQ.js";
3
+ } from "./chunk-UO224FD7.js";
4
4
  import {
5
5
  readRegularJsonFile,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-SHJMSG2V.js";
16
+ } from "./chunk-MXX4JRBI.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-SHJMSG2V.js";
8
+ } from "./chunk-MXX4JRBI.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -4,21 +4,21 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-624434K4.js";
7
+ } from "./chunk-QQHOFBU6.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-XVH3M2LX.js";
11
+ } from "./chunk-KQUOVCCS.js";
12
12
  import {
13
13
  projectNameFor
14
- } from "./chunk-U6O6UBGW.js";
14
+ } from "./chunk-3SROGHN7.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-SHJMSG2V.js";
21
+ } from "./chunk-MXX4JRBI.js";
22
22
 
23
23
  // src/machine-decision-audit.ts
24
24
  var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
@@ -18,6 +18,7 @@ import {
18
18
  isClaudeWakePrompt,
19
19
  isRecord,
20
20
  isTokenCount,
21
+ isWindowsRootedPath,
21
22
  namesAFilePath,
22
23
  parseCommitId,
23
24
  parseMcpToolName,
@@ -26,7 +27,7 @@ import {
26
27
  reportableSessionId,
27
28
  toToolLookup,
28
29
  truncateLine
29
- } from "./chunk-SHJMSG2V.js";
30
+ } from "./chunk-MXX4JRBI.js";
30
31
 
31
32
  // ../hook-mapping/src/commit-receipt.ts
32
33
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -52,7 +53,7 @@ function commitIdFromResult(result) {
52
53
  }
53
54
 
54
55
  // ../hook-mapping/src/describe.ts
55
- import { isAbsolute, relative, resolve } from "path";
56
+ import { isAbsolute, relative, resolve, win32 } from "path";
56
57
  var hookPrefixes = {
57
58
  Bash: (input) => `bash: ${input.command ?? "(no command)"}`,
58
59
  PowerShell: (input) => `powershell: ${input.command ?? "(no command)"}`,
@@ -229,6 +230,13 @@ var OPENCODE_TOOL_NAMES = {
229
230
  subagent: "Task"
230
231
  };
231
232
  var PATCH_ARG_KEYS = ["command", "patch", "input"];
233
+ var HOST_PATH_RULES = { isAbsolute, relative, resolve };
234
+ var pathRulesForCwd = (cwd) => isWindowsRootedPath(cwd) ? win32 : HOST_PATH_RULES;
235
+ var absolutePathOf = (path, cwd) => {
236
+ if (!cwd) return path;
237
+ const rules = pathRulesForCwd(cwd);
238
+ return rules.isAbsolute(path) ? path : rules.resolve(cwd, path);
239
+ };
232
240
  var patchedFilesIn = (input) => [...new Set(PATCH_ARG_KEYS.flatMap((key) => parseApplyPatchFiles(input[key])))];
233
241
  var lookupsForInput = (profile, toolName, input, absolute) => {
234
242
  const gateInput = profile.source === "grok" && toolName === "apply_patch" ? { patch: input.patch, diff: input.patch } : input;
@@ -239,7 +247,7 @@ var lookupsForInput = (profile, toolName, input, absolute) => {
239
247
  return files.slice(0, GATE_MAX_TOOL_INPUTS + 1).map((file) => toToolLookup(profile, toolName, { ...gateInput, file_path: absolute(file) }, absolute));
240
248
  };
241
249
  var compatibleToolLookup = (profile, toolName, input, cwd) => {
242
- const absolute = (path) => cwd && !isAbsolute(path) ? resolve(cwd, path) : path;
250
+ const absolute = (path) => absolutePathOf(path, cwd);
243
251
  const lookups = lookupsForInput(profile, toolName, input, absolute);
244
252
  const first = lookups[0];
245
253
  if (!first) return { tool: canonicalToolName(profile, toolName), input, unreadable: true };
@@ -252,7 +260,7 @@ var compatibleToolLookup = (profile, toolName, input, cwd) => {
252
260
  };
253
261
  };
254
262
  var compatibleGateInputs = (profile, toolName, toolInputs, cwd) => {
255
- const absolute = (path) => cwd && !isAbsolute(path) ? resolve(cwd, path) : path;
263
+ const absolute = (path) => absolutePathOf(path, cwd);
256
264
  const lookups = toolInputs.flatMap((input) => lookupsForInput(profile, toolName, input, absolute));
257
265
  if (lookups.length > GATE_MAX_TOOL_INPUTS) return null;
258
266
  if (lookups.some((lookup) => lookup.unreadable)) return null;
@@ -267,7 +275,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
267
275
  if (paths.length > GATE_MAX_TOOL_INPUTS) return null;
268
276
  return {
269
277
  toolName: "Edit",
270
- toolInputs: paths.length === 0 ? toolInputs.map((input) => ({ file_path: input.command })) : paths.map((path) => ({ file_path: cwd && !isAbsolute(path) ? resolve(cwd, path) : path }))
278
+ toolInputs: paths.length === 0 ? toolInputs.map((input) => ({ file_path: input.command })) : paths.map((path) => ({ file_path: absolutePathOf(path, cwd) }))
271
279
  };
272
280
  }
273
281
  if (source === "opencode") {
@@ -276,7 +284,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
276
284
  toolName: canonical2,
277
285
  toolInputs: toolInputs.map((input) => {
278
286
  const path = input.file_path;
279
- return typeof path === "string" && path.length > 0 && cwd && !isAbsolute(path) ? { ...input, file_path: resolve(cwd, path) } : input;
287
+ return typeof path === "string" && path.length > 0 ? { ...input, file_path: absolutePathOf(path, cwd) } : input;
280
288
  })
281
289
  };
282
290
  }
@@ -328,7 +336,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
328
336
  return { toolName: canonical2, toolInputs: inputs.map((input) => {
329
337
  if (canonical2 === "Bash") return { ...input, command: [input.command, input.commandLine, input.command_line, input.cmd, input.script, input.input, input.text].find((value) => typeof value === "string") };
330
338
  const path = input.file_path ?? input.filePath ?? input.path;
331
- return typeof path === "string" ? { ...input, file_path: cwd && !isAbsolute(path) ? resolve(cwd, path) : path } : input;
339
+ return typeof path === "string" ? { ...input, file_path: absolutePathOf(path, cwd) } : input;
332
340
  }) };
333
341
  }
334
342
  const profile = hookCompatibleProfileBySource(source);
@@ -343,7 +351,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
343
351
  toolName: canonical,
344
352
  toolInputs: toolInputs.map((input) => {
345
353
  const path = [input.file_path, input.absolute_path, input.path].find((value) => typeof value === "string" && value.length > 0);
346
- return path ? { file_path: cwd && !isAbsolute(path) ? resolve(cwd, path) : path } : {};
354
+ return path ? { file_path: absolutePathOf(path, cwd) } : {};
347
355
  })
348
356
  };
349
357
  };
@@ -377,8 +385,9 @@ var toolResultErrorText = (toolResult) => {
377
385
  }
378
386
  };
379
387
  var relativizeReceiptPath = (filePath, cwd) => {
380
- if (!cwd || !isAbsolute(filePath)) return filePath;
381
- return relative(cwd, filePath);
388
+ if (!cwd) return filePath;
389
+ const rules = pathRulesForCwd(cwd);
390
+ return rules.isAbsolute(filePath) ? rules.relative(cwd, filePath) : filePath;
382
391
  };
383
392
  function receiptHasFailedExit(result) {
384
393
  if (!result || typeof result !== "object" || Array.isArray(result)) return false;
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-HWGF3NYS.js";
3
+ } from "./chunk-K2RNGCIH.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-X3DWEYLO.js";
6
+ } from "./chunk-4L274ET5.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-45RB4A5I.js";
9
+ } from "./chunk-O5YMM4NC.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-KANE733H.js";
12
+ } from "./chunk-CCWBBHOQ.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-SHJMSG2V.js";
17
+ } from "./chunk-MXX4JRBI.js";
18
18
 
19
19
  // src/retry.ts
20
20
  var isRetryable = (err) => {
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-SHJMSG2V.js";
12
+ } from "./chunk-MXX4JRBI.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-UK66PEWW.js";
6
+ } from "./chunk-MNUYTEPY.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-JX4AEMKB.js";
12
+ } from "./chunk-XRANKHLM.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-SHJMSG2V.js";
15
+ } from "./chunk-MXX4JRBI.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-CXQWDQCJ.js";
20
20
  import {
21
21
  redactSecretsFromContent
22
- } from "./chunk-SHJMSG2V.js";
22
+ } from "./chunk-MXX4JRBI.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-WTIVMPOJ.js");
604
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-LVC72XIF.js");
605
- const { autoUpdateLock } = await import("./paths-LLHZWMPM.js");
603
+ const { withUpgradeLock } = await import("./global-upgrade-34UV333H.js");
604
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-GFNGLGR3.js");
605
+ const { autoUpdateLock } = await import("./paths-IIFXE7O2.js");
606
606
  let result = "skipped";
607
607
  const install = async () => {
608
608
  const planned = readPlannedSetupInstall(process.platform);