@pushary/agent-hooks 1.9.137 → 1.9.139

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 (135) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{api-5H25QRNM.js → api-JY6EQT7A.js} +12 -12
  3. package/dist/bin/pushary-audit.js +6 -6
  4. package/dist/bin/pushary-bell-hook.js +30 -30
  5. package/dist/bin/pushary-bell.js +14 -14
  6. package/dist/bin/pushary-claude.js +36 -36
  7. package/dist/bin/pushary-clean.js +38 -38
  8. package/dist/bin/pushary-codex-bridge.js +26 -26
  9. package/dist/bin/pushary-codex-hook.js +43 -43
  10. package/dist/bin/pushary-codex-session.js +8 -8
  11. package/dist/bin/pushary-codex.js +18 -18
  12. package/dist/bin/pushary-connect.js +32 -32
  13. package/dist/bin/pushary-cowork.js +5 -5
  14. package/dist/bin/pushary-daemon-supervisor.js +91 -12
  15. package/dist/bin/pushary-daemon.js +48 -48
  16. package/dist/bin/pushary-disconnect.js +33 -33
  17. package/dist/bin/pushary-display-hook.js +22 -13
  18. package/dist/bin/pushary-doctor.js +52 -52
  19. package/dist/bin/pushary-elicitation-hook.js +31 -31
  20. package/dist/bin/pushary-gemini-bridge.js +17 -17
  21. package/dist/bin/pushary-gemini-hook.js +35 -35
  22. package/dist/bin/pushary-hook.js +37 -37
  23. package/dist/bin/pushary-login.js +26 -26
  24. package/dist/bin/pushary-logout.js +31 -31
  25. package/dist/bin/pushary-mcp.js +14 -14
  26. package/dist/bin/pushary-mode.js +19 -19
  27. package/dist/bin/pushary-notification-hook.js +29 -29
  28. package/dist/bin/pushary-opencode-hook.js +34 -34
  29. package/dist/bin/pushary-permission-denied-hook.js +37 -37
  30. package/dist/bin/pushary-permission-hook.js +37 -37
  31. package/dist/bin/pushary-post-hook.js +30 -30
  32. package/dist/bin/pushary-prompt-hook.js +29 -29
  33. package/dist/bin/pushary-session-end-hook.js +29 -29
  34. package/dist/bin/pushary-session-start-hook.js +38 -38
  35. package/dist/bin/pushary-setup.js +59 -59
  36. package/dist/bin/pushary-stats.js +5 -5
  37. package/dist/bin/pushary-status.js +37 -37
  38. package/dist/bin/pushary-stop-hook.js +29 -29
  39. package/dist/bin/pushary-stopfailure-hook.js +29 -29
  40. package/dist/bin/pushary-suggestions.js +19 -19
  41. package/dist/bin/pushary-transcript-register.js +19 -19
  42. package/dist/bin/pushary-transcripts.js +30 -30
  43. package/dist/bin/pushary-upgrade.js +47 -47
  44. package/dist/bin/pushary-wait.js +19 -19
  45. package/dist/bin/pushary.js +8 -8
  46. package/dist/{chunk-MENTZJHA.js → chunk-2MJMKM6D.js} +1 -1
  47. package/dist/{chunk-ZWIJJYN3.js → chunk-2X2JHX77.js} +4 -4
  48. package/dist/{chunk-D7AAAD6W.js → chunk-2YMVIBFT.js} +15 -15
  49. package/dist/{chunk-K7YJBVR3.js → chunk-3FNBN4JQ.js} +1 -1
  50. package/dist/{chunk-Y47BMZUR.js → chunk-3PQEUSPK.js} +1 -1
  51. package/dist/{chunk-B4UIRMOE.js → chunk-422KDIO5.js} +2 -2
  52. package/dist/{chunk-ZWLSXECG.js → chunk-4NLZUCPG.js} +2 -2
  53. package/dist/{chunk-3QBI5C6P.js → chunk-4RKB6X4S.js} +2 -2
  54. package/dist/{chunk-IRIXOH4U.js → chunk-6A6OSNC2.js} +1 -1
  55. package/dist/{chunk-62GD26OE.js → chunk-6RAHONLG.js} +2 -2
  56. package/dist/{chunk-3HXOR6E5.js → chunk-7MPKMLE3.js} +13 -13
  57. package/dist/{chunk-54TZGPZP.js → chunk-7Q6YKZY2.js} +3 -3
  58. package/dist/{chunk-MD63J3T7.js → chunk-AEC72YC3.js} +81 -27
  59. package/dist/{chunk-7XD56GXA.js → chunk-AOAIYHAP.js} +5 -5
  60. package/dist/{chunk-LAWI6NQK.js → chunk-BRXKVYTV.js} +1 -1
  61. package/dist/{chunk-KLV2NQVT.js → chunk-BURSH6SW.js} +4 -4
  62. package/dist/{chunk-2E46RALI.js → chunk-C4F5RUJL.js} +6 -6
  63. package/dist/{chunk-GS5FH3C2.js → chunk-CQLQFN6B.js} +3 -3
  64. package/dist/{chunk-R7KC57PC.js → chunk-CZH3JDVB.js} +2 -2
  65. package/dist/{chunk-UP5QXEUU.js → chunk-DF2CUKN4.js} +2 -2
  66. package/dist/{chunk-V7ZY7P2X.js → chunk-DTJZK3MN.js} +6 -6
  67. package/dist/{chunk-43DT3QWZ.js → chunk-FIQ7ND7P.js} +5 -5
  68. package/dist/{chunk-VO77WHK4.js → chunk-FMQBG2TD.js} +6 -6
  69. package/dist/{chunk-R7CQF2P3.js → chunk-FSTSLVZJ.js} +1 -1
  70. package/dist/{chunk-7VKW7OA5.js → chunk-GCOOOIBX.js} +3 -3
  71. package/dist/{chunk-NN43KGTN.js → chunk-GGTLV67J.js} +4 -4
  72. package/dist/{chunk-LNF36PTF.js → chunk-GVJWHTN2.js} +2 -2
  73. package/dist/{chunk-2XDVEBHI.js → chunk-H4O4IPWY.js} +5 -5
  74. package/dist/{chunk-VVN3RPV6.js → chunk-IAWFSD4Q.js} +1 -1
  75. package/dist/{chunk-N3VCBXI6.js → chunk-IDXCVT6W.js} +3 -3
  76. package/dist/{chunk-IKBTG3OT.js → chunk-IEHI64ZN.js} +1 -1
  77. package/dist/{chunk-YQQGIDBC.js → chunk-IHUXZGHB.js} +1 -1
  78. package/dist/{chunk-YOV3LHOL.js → chunk-INGRSQVC.js} +3 -3
  79. package/dist/{chunk-5XDFQ6E3.js → chunk-IOWB43KY.js} +1 -1
  80. package/dist/{chunk-KYD3LHFB.js → chunk-ISDMTGZ3.js} +1 -1
  81. package/dist/{chunk-JZJ5CM6X.js → chunk-J5SMCRIT.js} +5 -5
  82. package/dist/{chunk-WNT4JHK3.js → chunk-J6CNQ5UK.js} +1 -1
  83. package/dist/{chunk-R6N6FREL.js → chunk-KDQSPNPH.js} +16 -16
  84. package/dist/{chunk-DL67HX3D.js → chunk-KQVURVAP.js} +118 -24
  85. package/dist/{chunk-6SWFS4GU.js → chunk-KXHGEJVW.js} +2 -2
  86. package/dist/{chunk-PHA6AFOR.js → chunk-KYWH4XUR.js} +5 -5
  87. package/dist/{chunk-7NCI2DGB.js → chunk-LGIB72D7.js} +2 -2
  88. package/dist/{chunk-Q2VV77IY.js → chunk-LHUA6ADC.js} +5 -5
  89. package/dist/{chunk-ICCM3DLT.js → chunk-LHYBHWCK.js} +2 -2
  90. package/dist/{chunk-RRUP72V6.js → chunk-LKSFQTGQ.js} +1 -1
  91. package/dist/{chunk-2MVKT7KH.js → chunk-LSABM2ES.js} +2 -2
  92. package/dist/{chunk-CMAB4KQG.js → chunk-LVL7XAXK.js} +5 -5
  93. package/dist/{chunk-G73ACPR2.js → chunk-LYLADUYE.js} +2 -2
  94. package/dist/{chunk-H2RE3IPK.js → chunk-M4G4VWW6.js} +1 -1
  95. package/dist/{chunk-MQ3I5OIC.js → chunk-M6TJWXST.js} +8 -8
  96. package/dist/{chunk-EJHD44ZN.js → chunk-MAPC5KKZ.js} +2 -2
  97. package/dist/{chunk-VV7WRIQT.js → chunk-MNVBO6UO.js} +4 -4
  98. package/dist/{chunk-TLK5YLIE.js → chunk-OBKHLKKB.js} +4 -4
  99. package/dist/{chunk-HY4ATVCT.js → chunk-OBPBT6RG.js} +3 -3
  100. package/dist/{chunk-DBIPNY7J.js → chunk-OLJTUTD2.js} +3 -3
  101. package/dist/{chunk-L2GADKFL.js → chunk-P3UCAWUP.js} +8 -8
  102. package/dist/{chunk-2R4OVJHS.js → chunk-P6S4CALA.js} +5 -5
  103. package/dist/{chunk-A7R43KOX.js → chunk-Q5H5AFS7.js} +3 -3
  104. package/dist/{chunk-YHX5YF77.js → chunk-QG5MJ6NW.js} +4 -4
  105. package/dist/{chunk-WM7OY63L.js → chunk-QMKI5RGT.js} +1 -1
  106. package/dist/{chunk-A2YJ2FBR.js → chunk-QTR6KQEU.js} +1 -1
  107. package/dist/{chunk-VBWJ756P.js → chunk-RBPAUX6C.js} +5 -5
  108. package/dist/{chunk-IHAKBLW2.js → chunk-S63DCSH4.js} +4 -4
  109. package/dist/{chunk-6WT5OIRM.js → chunk-SKVPWXNK.js} +10 -10
  110. package/dist/{chunk-QXATIKHQ.js → chunk-SVKZKLEP.js} +1 -1
  111. package/dist/{chunk-A4YOXS24.js → chunk-T5FPA2JO.js} +3 -3
  112. package/dist/{chunk-4T72AHIA.js → chunk-U7Z53YWH.js} +4 -4
  113. package/dist/{chunk-NZD6ISCL.js → chunk-UTUR6WEA.js} +3 -3
  114. package/dist/{chunk-WXUEOHYY.js → chunk-UZZRSCFR.js} +7 -7
  115. package/dist/{chunk-KTVMIG32.js → chunk-WES6E62H.js} +4 -4
  116. package/dist/{chunk-PNVTPEO5.js → chunk-XKXOT2ZU.js} +3 -3
  117. package/dist/{chunk-ZWURBNA3.js → chunk-XQYBTRVW.js} +1 -1
  118. package/dist/{chunk-POV2TBFA.js → chunk-ZAZQHOBS.js} +11 -11
  119. package/dist/{chunk-U3OLXV5Z.js → chunk-ZNMLL2WN.js} +2 -2
  120. package/dist/{chunk-MQMVJDII.js → chunk-ZYLZCNOJ.js} +1 -1
  121. package/dist/{codex-app-cards-switch-JU236CG2.js → codex-app-cards-switch-TOHSGS5T.js} +11 -11
  122. package/dist/{codex-card-routing-LQJEJNTS.js → codex-card-routing-BPCOKSBO.js} +2 -2
  123. package/dist/{codex-desktop-launch-LRQ4LU64.js → codex-desktop-launch-6LD5GETH.js} +1 -1
  124. package/dist/{codex-session-launch-DTGH7ZKM.js → codex-session-launch-ZVFPD4ON.js} +22 -22
  125. package/dist/{config-34VUNHK6.js → config-3AFJSGM2.js} +3 -3
  126. package/dist/{global-upgrade-5UAH5DCG.js → global-upgrade-6SWFRW5G.js} +10 -10
  127. package/dist/{identity-UFJEWGEU.js → identity-K2VBL5PB.js} +4 -4
  128. package/dist/{live-capabilities-BL3SHFWX.js → live-capabilities-VQEG7TCE.js} +4 -4
  129. package/dist/{paths-YA5ROXGC.js → paths-ZAVMBGAQ.js} +3 -3
  130. package/dist/{reapply-OPQF4DPQ.js → reapply-BXMMOQXK.js} +31 -31
  131. package/dist/src/index.js +37 -37
  132. package/dist/{upgrade-lock-AZLOOGKV.js → upgrade-lock-UZN332AO.js} +4 -4
  133. package/dist/{usage-ZSV4LFDL.js → usage-EDDIN5YZ.js} +3 -3
  134. package/package.json +1 -1
  135. package/dist/bin/pushary-daemon-supervisor.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-PNVTPEO5.js";
3
+ } from "./chunk-XKXOT2ZU.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-43DT3QWZ.js";
4
+ } from "./chunk-FIQ7ND7P.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-TLK5YLIE.js";
7
+ } from "./chunk-OBKHLKKB.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-R7KC57PC.js";
11
+ } from "./chunk-CZH3JDVB.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-DL67HX3D.js";
14
+ } from "./chunk-KQVURVAP.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -27,11 +27,11 @@ import {
27
27
  toolResultErrorText,
28
28
  transcriptTokensIn,
29
29
  transcriptUsageRequest
30
- } from "./chunk-A2YJ2FBR.js";
30
+ } from "./chunk-QTR6KQEU.js";
31
31
  import {
32
32
  branchFor,
33
33
  repoKeyFor
34
- } from "./chunk-IRIXOH4U.js";
34
+ } from "./chunk-6A6OSNC2.js";
35
35
  import {
36
36
  cancelQuestion,
37
37
  clientErrorKindOf,
@@ -39,39 +39,39 @@ import {
39
39
  reportClientError,
40
40
  sendNotification,
41
41
  waitForAnswer
42
- } from "./chunk-L2GADKFL.js";
42
+ } from "./chunk-P3UCAWUP.js";
43
+ import {
44
+ isRetryable,
45
+ withRetry
46
+ } from "./chunk-UZZRSCFR.js";
43
47
  import {
44
48
  RETRY_ACK,
45
49
  readCommandAck,
46
50
  refusedReceiptMessage
47
- } from "./chunk-Y47BMZUR.js";
48
- import {
49
- isRetryable,
50
- withRetry
51
- } from "./chunk-WXUEOHYY.js";
51
+ } from "./chunk-3PQEUSPK.js";
52
52
  import {
53
53
  fetchAsCredential
54
- } from "./chunk-VVN3RPV6.js";
54
+ } from "./chunk-IAWFSD4Q.js";
55
55
  import {
56
56
  getMachineId
57
- } from "./chunk-WNT4JHK3.js";
57
+ } from "./chunk-J6CNQ5UK.js";
58
58
  import {
59
59
  reportedInstallSource
60
- } from "./chunk-LNF36PTF.js";
60
+ } from "./chunk-GVJWHTN2.js";
61
61
  import {
62
62
  IDLE_PROMPT_NOTIFICATION,
63
63
  NOTIFICATION_PUSH_TYPES,
64
64
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
65
65
  claudeConfigDir
66
- } from "./chunk-R7KC57PC.js";
66
+ } from "./chunk-CZH3JDVB.js";
67
67
  import {
68
68
  compareVersion,
69
69
  parseVersion
70
- } from "./chunk-GS5FH3C2.js";
70
+ } from "./chunk-CQLQFN6B.js";
71
71
  import {
72
72
  getApiKey,
73
73
  getBaseUrl
74
- } from "./chunk-IKBTG3OT.js";
74
+ } from "./chunk-IEHI64ZN.js";
75
75
  import {
76
76
  writeFileAtomic,
77
77
  writeJsonAtomicDurable
@@ -100,7 +100,7 @@ import {
100
100
  resolveAutoResolveOrigin,
101
101
  resolvePolicy,
102
102
  unansweredRefusalReason
103
- } from "./chunk-DL67HX3D.js";
103
+ } from "./chunk-KQVURVAP.js";
104
104
 
105
105
  // src/pending.ts
106
106
  import { join } from "path";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-BG4HHB7E.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-MQMVJDII.js";
6
+ } from "./chunk-ZYLZCNOJ.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-WIIMW5YO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-DL67HX3D.js";
3
+ } from "./chunk-KQVURVAP.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-IKBTG3OT.js";
3
+ } from "./chunk-IEHI64ZN.js";
4
4
  import {
5
5
  readJsonSafe,
6
6
  writeJsonAtomic
7
7
  } from "./chunk-TODDEIYG.js";
8
8
  import {
9
9
  readSetupOutcomeProperties
10
- } from "./chunk-DL67HX3D.js";
10
+ } from "./chunk-KQVURVAP.js";
11
11
 
12
12
  // src/setup/failure-record.ts
13
13
  import { dirname, join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-R7KC57PC.js";
3
+ } from "./chunk-CZH3JDVB.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-DL67HX3D.js";
16
+ } from "./chunk-KQVURVAP.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-Q2VV77IY.js";
3
+ } from "./chunk-LHUA6ADC.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-DL67HX3D.js";
6
+ } from "./chunk-KQVURVAP.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-DL67HX3D.js";
5
+ } from "./chunk-KQVURVAP.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-R7KC57PC.js";
3
+ } from "./chunk-CZH3JDVB.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  npmExitedOnPermissionDenied
8
- } from "./chunk-GS5FH3C2.js";
8
+ } from "./chunk-CQLQFN6B.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-TODDEIYG.js";
@@ -4,37 +4,37 @@ import {
4
4
  postLiveSession,
5
5
  postLiveSessionUntilAccepted,
6
6
  startLiveSessionHeartbeat
7
- } from "./chunk-WM7OY63L.js";
7
+ } from "./chunk-QMKI5RGT.js";
8
8
  import {
9
9
  CommandReceipts,
10
10
  controllerCommandSchema
11
- } from "./chunk-R7CQF2P3.js";
11
+ } from "./chunk-FSTSLVZJ.js";
12
12
  import {
13
13
  SESSION_IDLE_TIMEOUT_MS,
14
14
  describeIdleWindow,
15
15
  idleDeadlinePassed,
16
16
  startProcessOwnership
17
- } from "./chunk-2MVKT7KH.js";
18
- import {
19
- spawnClaude
20
- } from "./chunk-H6CL3T2S.js";
17
+ } from "./chunk-LSABM2ES.js";
21
18
  import {
22
19
  repositoryScopeFor
23
- } from "./chunk-IRIXOH4U.js";
20
+ } from "./chunk-6A6OSNC2.js";
24
21
  import {
25
22
  isAskUserResponse,
26
23
  isDecisionStopped,
27
24
  isWaitForAnswerResponse,
28
25
  withdrawQuestion,
29
26
  writeDegraded
30
- } from "./chunk-L2GADKFL.js";
31
- import {
32
- readCommandAck
33
- } from "./chunk-Y47BMZUR.js";
27
+ } from "./chunk-P3UCAWUP.js";
34
28
  import {
35
29
  callMcpTool,
36
30
  isRetryable
37
- } from "./chunk-WXUEOHYY.js";
31
+ } from "./chunk-UZZRSCFR.js";
32
+ import {
33
+ spawnClaude
34
+ } from "./chunk-H6CL3T2S.js";
35
+ import {
36
+ readCommandAck
37
+ } from "./chunk-3PQEUSPK.js";
38
38
  import {
39
39
  AGENT_QUESTION_DESCRIPTION_MAX,
40
40
  AGENT_QUESTION_HEADER_MAX,
@@ -55,7 +55,7 @@ import {
55
55
  parseCodexQuestions,
56
56
  planElicitationAsk,
57
57
  readElicitationFields
58
- } from "./chunk-DL67HX3D.js";
58
+ } from "./chunk-KQVURVAP.js";
59
59
 
60
60
  // src/codex-question-owner.ts
61
61
  import { createHash } from "crypto";
@@ -2,16 +2,16 @@ import {
2
2
  NpmInstallError,
3
3
  NpmMissingError,
4
4
  NpmPermissionError
5
- } from "./chunk-GS5FH3C2.js";
5
+ } from "./chunk-CQLQFN6B.js";
6
6
  import {
7
7
  writeFileAtomic
8
8
  } from "./chunk-TODDEIYG.js";
9
9
  import {
10
10
  NPX_LATEST_COMMAND
11
- } from "./chunk-MQMVJDII.js";
11
+ } from "./chunk-ZYLZCNOJ.js";
12
12
  import {
13
13
  readSetupAgentFailures
14
- } from "./chunk-DL67HX3D.js";
14
+ } from "./chunk-KQVURVAP.js";
15
15
 
16
16
  // src/setup/config-write.ts
17
17
  var AgentConfigWriteError = class extends Error {
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-H6CL3T2S.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-WNT4JHK3.js";
7
+ } from "./chunk-J6CNQ5UK.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-PNVTPEO5.js";
10
+ } from "./chunk-XKXOT2ZU.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-R7KC57PC.js";
13
+ } from "./chunk-CZH3JDVB.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-GS5FH3C2.js";
16
+ } from "./chunk-CQLQFN6B.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-IKBTG3OT.js";
19
+ } from "./chunk-IEHI64ZN.js";
20
20
  import {
21
21
  readJsonSafe,
22
22
  writeFileAtomic,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-WIIMW5YO.js";
33
33
  import {
34
34
  isRecord
35
- } from "./chunk-DL67HX3D.js";
35
+ } from "./chunk-KQVURVAP.js";
36
36
 
37
37
  // src/daemon-entry-guard.ts
38
38
  import { mkdirSync, readFileSync } from "fs";
@@ -75,6 +75,20 @@ var writeDaemonEntryGuard = (input) => {
75
75
  return UNGUARDED;
76
76
  };
77
77
 
78
+ // src/daemon-supervisor.ts
79
+ import { join as join2 } from "path";
80
+ var DAEMON_SUPERVISOR_SCRIPT = "pushary-daemon-supervisor.js";
81
+ var SUPERVISOR_LAUNCH_FLAG = "--launch";
82
+ var DAEMON_LOG_FILE = "daemon.log";
83
+ var DAEMON_ERROR_LOG_FILE = "daemon-error.log";
84
+ var supervisorTaskArguments = (daemonEntry, stateDir) => [daemonEntry, stateDir, SUPERVISOR_LAUNCH_FLAG];
85
+ var parseSupervisorInvocation = (args) => {
86
+ const launching = args.length > 1 && args[args.length - 1] === SUPERVISOR_LAUNCH_FLAG;
87
+ const [daemonEntry, stateDir] = launching ? args.slice(0, -1) : args;
88
+ if (!daemonEntry || daemonEntry === SUPERVISOR_LAUNCH_FLAG) return { kind: "missing-entry" };
89
+ return { kind: launching ? "launch" : "supervise", daemonEntry, stateDir: stateDir || null };
90
+ };
91
+
78
92
  // src/diagnostics/service-runtime.ts
79
93
  var unescapeXml = (value) => value.replaceAll("&quot;", '"').replaceAll("&apos;", "'").replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&");
80
94
  var unquoteSystemdExecutable = (value) => value.replace(/\\(["\\])|%(%)/g, (_match, escaped, percent) => escaped ?? percent ?? "");
@@ -112,7 +126,15 @@ var serviceArguments = (contents, platform) => {
112
126
  if (platform === "win32") return windowsTaskArguments(contents);
113
127
  return [];
114
128
  };
115
- var readServiceDaemonEntry = (contents, platform) => serviceArguments(contents, platform).at(-1) ?? null;
129
+ var namesTheSupervisor = (path) => path.split(/[\\/]/).at(-1) === DAEMON_SUPERVISOR_SCRIPT;
130
+ var windowsTaskDaemonEntry = (contents) => {
131
+ const [program, ...supervisorArguments] = windowsTaskArguments(contents);
132
+ if (program === void 0) return null;
133
+ if (!namesTheSupervisor(program)) return program;
134
+ const invocation = parseSupervisorInvocation(supervisorArguments);
135
+ return invocation.kind === "missing-entry" ? null : invocation.daemonEntry;
136
+ };
137
+ var readServiceDaemonEntry = (contents, platform) => platform === "win32" ? windowsTaskDaemonEntry(contents) : serviceArguments(contents, platform).at(-1) ?? null;
116
138
  var readServiceEntryGuard = (contents, platform) => {
117
139
  if (platform !== "darwin") return null;
118
140
  const [, flag, guard] = readLaunchdProgramArguments(contents);
@@ -162,7 +184,7 @@ var describeVersionManagerPin = (execPath, manager) => `The background service i
162
184
  var describeServiceNodeRisk = (manager) => manager === "homebrew" ? "a Homebrew version folder; brew upgrade strands the service, and `pushary daemon install` repins it to the stable link" : `managed by ${manager}; a version switch strands the service`;
163
185
 
164
186
  // src/daemon-lifecycle.ts
165
- import { dirname as dirname2, join as join2, win32 as win32Path } from "path";
187
+ import { dirname as dirname2, join as join3, win32 as win32Path } from "path";
166
188
  import { existsSync, mkdirSync as mkdirSync2, readFileSync as readFileSync2, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "fs";
167
189
  import { createHash, randomUUID } from "crypto";
168
190
  import { homedir, uptime, userInfo } from "os";
@@ -232,9 +254,9 @@ var daemonServiceManagerAvailable = (options = {}) => {
232
254
  }
233
255
  };
234
256
  var DAEMON_STATE_FILE = "daemon-state.json";
235
- var statePath = (dir) => join2(dir, DAEMON_STATE_FILE);
236
- var lockPath = (dir) => join2(dir, "daemon.lock");
237
- var targetPath = (dir) => join2(dir, "daemon-target.json");
257
+ var statePath = (dir) => join3(dir, DAEMON_STATE_FILE);
258
+ var lockPath = (dir) => join3(dir, "daemon.lock");
259
+ var targetPath = (dir) => join3(dir, "daemon-target.json");
238
260
  var DAEMON_LEASE_RENEW_INTERVAL_MS = 3e4;
239
261
  var LOCAL_LEASE_TIMEOUT_MS = DAEMON_LEASE_RENEW_INTERVAL_MS * 3;
240
262
  var DAEMON_YIELD_CHECK_INTERVAL_MS = 2e3;
@@ -244,6 +266,24 @@ var buildDaemonLaunch = (input) => input.siblingEntry ? { command: input.execPat
244
266
  shell: needsShell(input.daemonBinary, input.platform ?? process.platform)
245
267
  };
246
268
  var xml = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&apos;");
269
+ var WINDOWS_TASK_NAME = "Pushary Daemon";
270
+ var POWERSHELL_SINGLE_QUOTES = /['\u2018\u2019\u201A\u201B]/g;
271
+ var powershellLiteral = (value) => `'${value.replace(POWERSHELL_SINGLE_QUOTES, (quote) => quote + quote)}'`;
272
+ var WQL_LIKE_SPECIALS = /[[%_]/g;
273
+ var wqlLikeLiteral = (value) => value.replace(WQL_LIKE_SPECIALS, (special) => `[${special}]`);
274
+ var WINDOWS_TASK_LOOKUP = `$task = @(Get-ScheduledTask -ErrorAction Stop) | Where-Object { $_.TaskName -eq ${powershellLiteral(WINDOWS_TASK_NAME)} -and $_.TaskPath -eq '\\' } | Select-Object -First 1; if ($null -eq $task) { exit 3 }`;
275
+ var POWERSHELL_HOSTS = ["powershell.exe", "pwsh.exe"];
276
+ var withoutTrailingSeparators = (path) => path.replace(/[\\/]+$/, "");
277
+ var POWERSHELL_STOP_ON_ERROR = "$ErrorActionPreference = 'Stop'";
278
+ var powershellCommandLineContains = (text) => `$_.CommandLine.ToUpperInvariant().Contains(${powershellLiteral(text)}.ToUpperInvariant())`;
279
+ var powershellCommandLineEndsWithLaunchFlag = `$_.CommandLine.TrimEnd().TrimEnd([char]34).EndsWith(${powershellLiteral(SUPERVISOR_LAUNCH_FLAG)})`;
280
+ var windowsSupervisorProcesses = (stateDir) => [
281
+ `@(Get-CimInstance -ClassName Win32_Process -Filter ${powershellLiteral(`CommandLine LIKE '%${wqlLikeLiteral(DAEMON_SUPERVISOR_SCRIPT)}%'`)}`,
282
+ `| Where-Object { $_.ProcessId -ne $PID -and ${POWERSHELL_HOSTS.map((host) => `$_.Name -ne ${powershellLiteral(host)}`).join(" -and ")}`,
283
+ `-and $null -ne $_.CommandLine -and ${powershellCommandLineContains(withoutTrailingSeparators(stateDir))} })`
284
+ ].join(" ");
285
+ var windowsRunningSupervisors = (stateDir) => `@(${windowsSupervisorProcesses(stateDir)} | Where-Object { -not (${powershellCommandLineEndsWithLaunchFlag}) })`;
286
+ var taskArgument = (value) => `&quot;${xml(value)}&quot;`;
247
287
  var systemdQuotedEnvironment = (value) => `"${value.replaceAll("%", "%%").replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
248
288
  var escapeSystemdSpecifiers = (value) => value.replaceAll("%", "%%");
249
289
  var systemdQuotedWord = (escaped) => `"${escaped.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
@@ -261,7 +301,7 @@ var buildDaemonService = (input) => {
261
301
  const label = "com.pushary.daemon";
262
302
  const domain = `gui/${input.uid}`;
263
303
  const target = `${domain}/${label}`;
264
- const definitionPath = join2(input.homeDir, "Library", "LaunchAgents", `${label}.plist`);
304
+ const definitionPath = join3(input.homeDir, "Library", "LaunchAgents", `${label}.plist`);
265
305
  const contents = `<?xml version="1.0" encoding="UTF-8"?>
266
306
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
267
307
  <plist version="1.0">
@@ -274,8 +314,8 @@ var buildDaemonService = (input) => {
274
314
  <key>RunAtLoad</key><true/>
275
315
  <key>KeepAlive</key><dict><key>SuccessfulExit</key><false/></dict>
276
316
  <key>ThrottleInterval</key><integer>10</integer>
277
- <key>StandardOutPath</key><string>${xml(join2(input.stateDir, "daemon.log"))}</string>
278
- <key>StandardErrorPath</key><string>${xml(join2(input.stateDir, "daemon-error.log"))}</string>
317
+ <key>StandardOutPath</key><string>${xml(join3(input.stateDir, DAEMON_LOG_FILE))}</string>
318
+ <key>StandardErrorPath</key><string>${xml(join3(input.stateDir, DAEMON_ERROR_LOG_FILE))}</string>
279
319
  </dict>
280
320
  </plist>
281
321
  `;
@@ -316,7 +356,7 @@ var buildDaemonService = (input) => {
316
356
  }
317
357
  if (input.platform === "linux") {
318
358
  const unit = "pushary-daemon.service";
319
- const definitionPath = join2(input.homeDir, ".config", "systemd", "user", unit);
359
+ const definitionPath = join3(input.homeDir, ".config", "systemd", "user", unit);
320
360
  const contents = `[Unit]
321
361
  Description=Pushary phone-to-agent daemon
322
362
  After=network-online.target
@@ -363,14 +403,14 @@ WantedBy=default.target
363
403
  };
364
404
  }
365
405
  if (input.platform === "win32") {
366
- const taskName = "Pushary Daemon";
406
+ const taskName = WINDOWS_TASK_NAME;
367
407
  const username = process.env.USERNAME?.trim() || userInfo().username;
368
408
  const domain = process.env.USERDOMAIN?.trim();
369
409
  const userId = input.userId?.trim() || (domain ? `${domain}\\${username}` : username);
370
410
  const definitionPath = win32Path.join(input.stateDir, "pushary-daemon-task.xml");
371
- const supervisorPath = win32Path.join(win32Path.dirname(input.daemonEntry), "pushary-daemon-supervisor.js");
411
+ const supervisorPath = win32Path.join(win32Path.dirname(input.daemonEntry), DAEMON_SUPERVISOR_SCRIPT);
372
412
  const supervised = (input.entryExists ?? existsSync)(supervisorPath);
373
- const args = supervised ? `&quot;${xml(supervisorPath)}&quot; &quot;${xml(input.daemonEntry)}&quot;` : `&quot;${xml(input.daemonEntry)}&quot;`;
413
+ const args = supervised ? [supervisorPath, ...supervisorTaskArguments(input.daemonEntry, withoutTrailingSeparators(input.stateDir))].map(taskArgument).join(" ") : taskArgument(input.daemonEntry);
374
414
  const contents = `\uFEFF<?xml version="1.0" encoding="UTF-16"?>
375
415
  <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
376
416
  <RegistrationInfo><Description>Pushary phone-to-agent daemon</Description></RegistrationInfo>
@@ -393,16 +433,30 @@ WantedBy=default.target
393
433
  </Actions>
394
434
  </Task>
395
435
  `;
436
+ const stopTaskAndSupervisors = [
437
+ { command: "schtasks.exe", args: ["/End", "/TN", taskName], ignoreFailure: true },
438
+ {
439
+ command: "powershell.exe",
440
+ args: [
441
+ "-NoProfile",
442
+ "-NonInteractive",
443
+ "-Command",
444
+ `${POWERSHELL_STOP_ON_ERROR}; ${windowsSupervisorProcesses(input.stateDir)} | ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }`
445
+ ],
446
+ ignoreFailure: true
447
+ }
448
+ ];
396
449
  return {
397
450
  definitionPath,
398
451
  contents,
399
452
  encoding: "utf16le",
400
453
  install: [
454
+ ...stopTaskAndSupervisors,
401
455
  { command: "schtasks.exe", args: ["/Create", "/TN", taskName, "/XML", definitionPath, "/F"] },
402
456
  { command: "schtasks.exe", args: ["/Run", "/TN", taskName] }
403
457
  ],
404
458
  start: [{ command: "schtasks.exe", args: ["/Run", "/TN", taskName] }],
405
- stop: [{ command: "schtasks.exe", args: ["/End", "/TN", taskName], ignoreFailure: true }],
459
+ stop: stopTaskAndSupervisors,
406
460
  disable: [{ command: "schtasks.exe", args: ["/Change", "/TN", taskName, "/Disable"] }],
407
461
  uninstall: [{ command: "schtasks.exe", args: ["/Delete", "/TN", taskName, "/F"], ignoreFailure: true }],
408
462
  platform: input.platform,
@@ -413,7 +467,7 @@ WantedBy=default.target
413
467
  "-NoProfile",
414
468
  "-NonInteractive",
415
469
  "-Command",
416
- "$task = @(Get-ScheduledTask -ErrorAction Stop) | Where-Object { $_.TaskName -eq 'Pushary Daemon' -and $_.TaskPath -eq '\\' } | Select-Object -First 1; if ($null -eq $task) { exit 3 }"
470
+ WINDOWS_TASK_LOOKUP
417
471
  ],
418
472
  negativeExitCodes: [3]
419
473
  },
@@ -423,7 +477,7 @@ WantedBy=default.target
423
477
  "-NoProfile",
424
478
  "-NonInteractive",
425
479
  "-Command",
426
- "$task = @(Get-ScheduledTask -ErrorAction Stop) | Where-Object { $_.TaskName -eq 'Pushary Daemon' -and $_.TaskPath -eq '\\' } | Select-Object -First 1; if ($null -eq $task) { exit 3 }; if ($null -eq $task.Settings -or $null -eq $task.Settings.Enabled) { exit 5 }; if (-not $task.Settings.Enabled) { exit 4 }"
480
+ `${WINDOWS_TASK_LOOKUP}; if ($null -eq $task.Settings -or $null -eq $task.Settings.Enabled) { exit 5 }; if (-not $task.Settings.Enabled) { exit 4 }`
427
481
  ],
428
482
  negativeExitCodes: [3, 4]
429
483
  },
@@ -433,7 +487,7 @@ WantedBy=default.target
433
487
  "-NoProfile",
434
488
  "-NonInteractive",
435
489
  "-Command",
436
- "$task = @(Get-ScheduledTask -ErrorAction Stop) | Where-Object { $_.TaskName -eq 'Pushary Daemon' -and $_.TaskPath -eq '\\' } | Select-Object -First 1; if ($null -eq $task) { exit 3 }; if ($task.State -ne 'Running') { exit 4 }"
490
+ `${POWERSHELL_STOP_ON_ERROR}; if (${windowsRunningSupervisors(input.stateDir)}.Count -gt 0) { exit 0 }; ${WINDOWS_TASK_LOOKUP}; if ($task.State -ne 'Running') { exit 4 }`
437
491
  ],
438
492
  negativeExitCodes: [3, 4]
439
493
  }
@@ -779,7 +833,7 @@ var acquireDaemonLease = (options = {}) => {
779
833
  if (owner && ownerIsFromThisBoot && (options.isProcessAlive ?? processIsAlive)(owner.pid)) {
780
834
  return { kind: "unavailable", detail: "daemon owner is still running or starting" };
781
835
  }
782
- const stale = join2(dir, `daemon.lock.${instanceId}.stale`);
836
+ const stale = join3(dir, `daemon.lock.${instanceId}.stale`);
783
837
  let ownsReplacement = false;
784
838
  try {
785
839
  renameSync(lockPath(dir), stale);
@@ -932,7 +986,7 @@ var writeEntryGuardForService = (input, options) => writeDaemonEntryGuard({
932
986
  })
933
987
  });
934
988
  var DAEMON_LOGIN_REASONS = ["key_rejected", "plan_inactive", "key_missing", "mac_signed_out"];
935
- var needsLoginPath = (dir) => join2(dir, "daemon-needs-login.json");
989
+ var needsLoginPath = (dir) => join3(dir, "daemon-needs-login.json");
936
990
  var isLoginReason = (value) => DAEMON_LOGIN_REASONS.includes(value);
937
991
  var parseDaemonNeedsLogin = (value) => {
938
992
  if (typeof value !== "object" || value === null) return null;
@@ -972,7 +1026,7 @@ var DAEMON_LOGIN_BLOCK_DESCRIPTIONS = {
972
1026
  var describeDaemonLoginBlock = (record) => DAEMON_LOGIN_BLOCK_DESCRIPTIONS[record.reason](record.at);
973
1027
  var recoverDaemonAfterLogin = (options = {}) => {
974
1028
  const cleared = clearDaemonNeedsLogin(options);
975
- if (!cleared || readControlMode(join2(options.dir ?? pusharyDir(), "config.json")) === "off" || !hasDaemonServiceDefinition(options)) {
1029
+ if (!cleared || readControlMode(join3(options.dir ?? pusharyDir(), "config.json")) === "off" || !hasDaemonServiceDefinition(options)) {
976
1030
  return { cleared, restarted: false, detail: null };
977
1031
  }
978
1032
  const started = manageDaemonService("start", options);
@@ -1162,7 +1216,7 @@ var replaceDaemonService = async (options = {}) => {
1162
1216
  };
1163
1217
  }
1164
1218
  const run = options.run ?? runDaemonServiceCommand;
1165
- const transactionPath = join2(options.stateDir ?? options.dir ?? pusharyDir(), "daemon-service-transaction.json");
1219
+ const transactionPath = join3(options.stateDir ?? options.dir ?? pusharyDir(), "daemon-service-transaction.json");
1166
1220
  const recovered = recoverDaemonServiceTransaction(unguarded, transactionPath, run);
1167
1221
  if (recovered.kind !== "ok") {
1168
1222
  return { kind: "failed", detail: `Could not recover interrupted service replacement: ${recovered.detail}` };
@@ -1273,7 +1327,7 @@ var replaceDaemonService = async (options = {}) => {
1273
1327
  var launchInstalledDaemon = (options) => {
1274
1328
  const entryExists = options.entryExists ?? existsSync;
1275
1329
  const argvEntry = process.argv[1];
1276
- const candidate = options.daemonEntry !== void 0 ? options.daemonEntry : argvEntry ? join2(dirname2(argvEntry), "pushary-daemon.js") : null;
1330
+ const candidate = options.daemonEntry !== void 0 ? options.daemonEntry : argvEntry ? join3(dirname2(argvEntry), "pushary-daemon.js") : null;
1277
1331
  const siblingEntry = candidate && entryExists(candidate) ? candidate : null;
1278
1332
  const platform = options.platform ?? process.platform;
1279
1333
  const daemonBinary = options.daemonBinary ?? resolveGlobalBinary("pushary-daemon") ?? (platform === "win32" ? "pushary-daemon.cmd" : "pushary-daemon");
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-NN43KGTN.js";
4
+ } from "./chunk-GGTLV67J.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-6WT5OIRM.js";
7
+ } from "./chunk-SKVPWXNK.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-43DT3QWZ.js";
10
+ } from "./chunk-FIQ7ND7P.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-L2GADKFL.js";
13
+ } from "./chunk-P3UCAWUP.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-DL67HX3D.js";
19
+ } from "./chunk-KQVURVAP.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,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-R7KC57PC.js";
3
+ } from "./chunk-CZH3JDVB.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-VBWJ756P.js";
3
+ } from "./chunk-RBPAUX6C.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-PNVTPEO5.js";
6
+ } from "./chunk-XKXOT2ZU.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-R7KC57PC.js";
9
+ } from "./chunk-CZH3JDVB.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-TODDEIYG.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-DL67HX3D.js";
16
+ } from "./chunk-KQVURVAP.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;
@@ -2,10 +2,10 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-U3OLXV5Z.js";
5
+ } from "./chunk-ZNMLL2WN.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-3QBI5C6P.js";
8
+ } from "./chunk-4RKB6X4S.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-Q2VV77IY.js";
17
+ } from "./chunk-LHUA6ADC.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-PNVTPEO5.js";
20
+ } from "./chunk-XKXOT2ZU.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-IKBTG3OT.js";
23
+ } from "./chunk-IEHI64ZN.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-DL67HX3D.js";
29
+ } from "./chunk-KQVURVAP.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -415,9 +415,9 @@ var installGlobally = (options) => {
415
415
  }
416
416
  const started = (async () => {
417
417
  if (!npmIsOnPath()) throw new NpmMissingError();
418
- const { withUpgradeLock } = await import("./global-upgrade-5UAH5DCG.js");
419
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-AZLOOGKV.js");
420
- const { autoUpdateLock } = await import("./paths-YA5ROXGC.js");
418
+ const { withUpgradeLock } = await import("./global-upgrade-6SWFRW5G.js");
419
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-UZN332AO.js");
420
+ const { autoUpdateLock } = await import("./paths-ZAVMBGAQ.js");
421
421
  let result = "skipped";
422
422
  const install = async () => {
423
423
  const platform = process.platform;