pushary 1.9.68 → 1.9.69

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 (104) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/{api-6Q7XIB67.js → api-KUJYE5YZ.js} +7 -7
  3. package/dist/bin/pushary-bell-hook.js +18 -18
  4. package/dist/bin/pushary-bell.js +5 -5
  5. package/dist/bin/pushary-claude.js +19 -19
  6. package/dist/bin/pushary-clean.js +26 -26
  7. package/dist/bin/pushary-codex-bridge.js +14 -14
  8. package/dist/bin/pushary-codex-hook.js +21 -21
  9. package/dist/bin/pushary-codex-session.js +6 -6
  10. package/dist/bin/pushary-codex.js +8 -8
  11. package/dist/bin/pushary-connect.js +19 -19
  12. package/dist/bin/pushary-daemon.js +30 -30
  13. package/dist/bin/pushary-disconnect.js +18 -18
  14. package/dist/bin/pushary-doctor.js +36 -36
  15. package/dist/bin/pushary-elicitation-hook.js +18 -18
  16. package/dist/bin/pushary-gemini-bridge.js +9 -9
  17. package/dist/bin/pushary-gemini-hook.js +19 -19
  18. package/dist/bin/pushary-hook.js +20 -20
  19. package/dist/bin/pushary-login.js +13 -13
  20. package/dist/bin/pushary-logout.js +16 -16
  21. package/dist/bin/pushary-mcp.js +8 -8
  22. package/dist/bin/pushary-mode.js +9 -9
  23. package/dist/bin/pushary-notification-hook.js +17 -17
  24. package/dist/bin/pushary-opencode-hook.js +18 -18
  25. package/dist/bin/pushary-permission-denied-hook.js +20 -20
  26. package/dist/bin/pushary-permission-hook.js +20 -20
  27. package/dist/bin/pushary-post-hook.js +17 -17
  28. package/dist/bin/pushary-prompt-hook.js +17 -17
  29. package/dist/bin/pushary-session-end-hook.js +19 -19
  30. package/dist/bin/pushary-session-start-hook.js +27 -27
  31. package/dist/bin/pushary-setup.js +36 -36
  32. package/dist/bin/pushary-status.js +23 -23
  33. package/dist/bin/pushary-stop-hook.js +17 -17
  34. package/dist/bin/pushary-stopfailure-hook.js +17 -17
  35. package/dist/bin/pushary-suggestions.js +9 -9
  36. package/dist/bin/pushary-transcript-register.js +10 -10
  37. package/dist/bin/pushary-transcripts.js +13 -13
  38. package/dist/bin/pushary-upgrade.js +37 -38
  39. package/dist/bin/pushary-wait.js +9 -9
  40. package/dist/bin/pushary.js +4 -4
  41. package/dist/{chunk-LQAAOXYJ.js → chunk-274CV7IW.js} +12 -6
  42. package/dist/{chunk-ORHVVRVL.js → chunk-2LI3DF7Q.js} +2 -2
  43. package/dist/{chunk-I5FFSOCV.js → chunk-2REVIFLS.js} +2 -2
  44. package/dist/{chunk-RWXDWOQQ.js → chunk-3HWDWR42.js} +8 -8
  45. package/dist/{chunk-7S7NTMDJ.js → chunk-4BXI6WJI.js} +2 -2
  46. package/dist/{chunk-53Q4LRBU.js → chunk-54O76CMR.js} +2 -2
  47. package/dist/{chunk-K4TSXWVX.js → chunk-5LQCADHK.js} +4 -4
  48. package/dist/{chunk-YZHJQG6W.js → chunk-5UIA5GLL.js} +5 -5
  49. package/dist/{chunk-CB4U6WRP.js → chunk-72ILLFCY.js} +4 -4
  50. package/dist/{chunk-7SKGS7QN.js → chunk-7CW63ZK3.js} +2 -2
  51. package/dist/{chunk-E5PEOVUJ.js → chunk-7FWZNWIO.js} +5 -5
  52. package/dist/{chunk-REQO3WWO.js → chunk-7XS44DQX.js} +3 -3
  53. package/dist/{chunk-BSMHSN3Y.js → chunk-AQA63ZWO.js} +1 -1
  54. package/dist/{chunk-O655YCOG.js → chunk-AUYMNTUX.js} +3 -3
  55. package/dist/{chunk-LF2NSOAQ.js → chunk-AVKD5QS4.js} +4 -4
  56. package/dist/{chunk-AJIT4SCL.js → chunk-BRWU4NT4.js} +3 -3
  57. package/dist/{chunk-77QP22FL.js → chunk-CJ3W7XRU.js} +1 -1
  58. package/dist/{chunk-NKPSJOHJ.js → chunk-CPYVVEJP.js} +3 -3
  59. package/dist/{chunk-53RH3ZIK.js → chunk-D5G2HSQ6.js} +1 -1
  60. package/dist/{chunk-TVVJ6OYG.js → chunk-DJPNVVJQ.js} +3 -3
  61. package/dist/{chunk-MUDUWF74.js → chunk-DTENGECG.js} +1 -1
  62. package/dist/{chunk-VRFFMTIG.js → chunk-EAJUFO7Q.js} +3 -3
  63. package/dist/{chunk-QYTOYNV2.js → chunk-FD6KOIT2.js} +3 -3
  64. package/dist/{chunk-NLDEC4Y7.js → chunk-FULXDMAP.js} +3 -3
  65. package/dist/{chunk-2VYQG2HG.js → chunk-FZ2SHXUE.js} +2 -2
  66. package/dist/{chunk-PBEW5CJK.js → chunk-GZHQQP7J.js} +1 -1
  67. package/dist/{chunk-WPOXZPEH.js → chunk-HGXWC4WT.js} +1 -1
  68. package/dist/{chunk-6IFEYELN.js → chunk-HZNZJTGH.js} +5 -5
  69. package/dist/{chunk-XQKB4LEK.js → chunk-JQMERLQS.js} +2 -2
  70. package/dist/{chunk-MCNHNIRC.js → chunk-JWRDCANS.js} +2 -2
  71. package/dist/{chunk-MHC34X5A.js → chunk-KHOWMC57.js} +1 -1
  72. package/dist/{chunk-UETS2WEA.js → chunk-KVXX5M5A.js} +4 -4
  73. package/dist/{chunk-LGCVAE52.js → chunk-LWFSXSRG.js} +1 -1
  74. package/dist/{chunk-ODAAK2RZ.js → chunk-N2FDORN6.js} +1 -1
  75. package/dist/{chunk-Q6JXE3PD.js → chunk-N2WAXSJY.js} +7 -7
  76. package/dist/{chunk-73DHP3JX.js → chunk-NFWZVY25.js} +2 -2
  77. package/dist/{chunk-MMTA7UKA.js → chunk-NSR6IFA6.js} +1 -1
  78. package/dist/{chunk-NAQCWM4U.js → chunk-OXOYS3UG.js} +3 -3
  79. package/dist/{chunk-JPVV27O2.js → chunk-OYFGZARB.js} +2 -2
  80. package/dist/{chunk-EOWHEZHD.js → chunk-PIGBU7D3.js} +4 -4
  81. package/dist/{chunk-PEPRUUGM.js → chunk-PK6WI4HH.js} +4 -4
  82. package/dist/{chunk-P4XZX7CL.js → chunk-QE22XDUK.js} +1 -1
  83. package/dist/{chunk-4TIN3T2A.js → chunk-QZPRCMPV.js} +1 -1
  84. package/dist/{chunk-6VFZVL65.js → chunk-SCKZVTFV.js} +23 -17
  85. package/dist/{chunk-2HMKZYF5.js → chunk-SKTZKAGH.js} +1 -1
  86. package/dist/{chunk-SL7CIZCL.js → chunk-SSJDAX4E.js} +46 -17
  87. package/dist/{chunk-EUU5PDUI.js → chunk-TXRV7AOA.js} +4 -4
  88. package/dist/{chunk-PZZKXX6Q.js → chunk-VIQ5OS5E.js} +2 -2
  89. package/dist/{chunk-PGOPIIOQ.js → chunk-WOJW23ZD.js} +6 -6
  90. package/dist/{chunk-7V63A4AI.js → chunk-XLKO2XEG.js} +1 -1
  91. package/dist/{chunk-MFWHANKG.js → chunk-YAA6MT6O.js} +2 -2
  92. package/dist/{chunk-JAKWPQ2L.js → chunk-YSOZVBFW.js} +1 -1
  93. package/dist/{chunk-D6W7QDQE.js → chunk-Z3FMJ567.js} +2 -2
  94. package/dist/{codex-app-cards-switch-VZ4XIDJO.js → codex-app-cards-switch-GBTS3OQW.js} +7 -7
  95. package/dist/{codex-desktop-launch-CX2IE5BI.js → codex-desktop-launch-S6OULJDZ.js} +1 -1
  96. package/dist/{codex-session-launch-WUIM6ZGA.js → codex-session-launch-K2KE3AD5.js} +12 -12
  97. package/dist/{global-upgrade-XZ5L7LDB.js → global-upgrade-ZMWRPO5G.js} +8 -8
  98. package/dist/{identity-TGQPFIE4.js → identity-OLRKDYFR.js} +3 -3
  99. package/dist/{live-capabilities-JHESROAP.js → live-capabilities-LZECCGFQ.js} +4 -4
  100. package/dist/{paths-EOMNC4QM.js → paths-YUF2TFTA.js} +2 -2
  101. package/dist/{reapply-J5HHUUBE.js → reapply-5SZSMZJJ.js} +21 -21
  102. package/dist/src/index.js +20 -20
  103. package/dist/{upgrade-lock-VQORI6G5.js → upgrade-lock-MSBKXUKM.js} +3 -3
  104. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-LQAAOXYJ.js";
3
+ } from "./chunk-274CV7IW.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -10,7 +10,7 @@ import {
10
10
  describeIdleWindow,
11
11
  idleDeadlinePassed,
12
12
  startProcessOwnership
13
- } from "./chunk-MCNHNIRC.js";
13
+ } from "./chunk-JWRDCANS.js";
14
14
  import {
15
15
  spawnClaude
16
16
  } from "./chunk-XHKBHWLX.js";
@@ -23,11 +23,11 @@ import {
23
23
  isWaitForAnswerResponse,
24
24
  withdrawQuestion,
25
25
  writeDegraded
26
- } from "./chunk-QYTOYNV2.js";
26
+ } from "./chunk-FD6KOIT2.js";
27
27
  import {
28
28
  callMcpTool,
29
29
  isRetryable
30
- } from "./chunk-PZZKXX6Q.js";
30
+ } from "./chunk-VIQ5OS5E.js";
31
31
  import {
32
32
  AGENT_QUESTION_DESCRIPTION_MAX,
33
33
  AGENT_QUESTION_HEADER_MAX,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-PZZKXX6Q.js";
3
+ } from "./chunk-VIQ5OS5E.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
6
  } from "./chunk-X2MTVD4W.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-73DHP3JX.js";
4
+ } from "./chunk-NFWZVY25.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT,
7
7
  compatibleToolLookup
8
- } from "./chunk-6IFEYELN.js";
8
+ } from "./chunk-HZNZJTGH.js";
9
9
  import {
10
10
  CLAUDE_HOOK_EVENTS,
11
11
  PUSHARY_MCP_URL,
@@ -17,7 +17,7 @@ import {
17
17
  isPusharyHook,
18
18
  registerHookEntry,
19
19
  removeClaudeMcpServers
20
- } from "./chunk-LQAAOXYJ.js";
20
+ } from "./chunk-274CV7IW.js";
21
21
  import {
22
22
  HOOK_COMPATIBLE_PROFILES,
23
23
  PHONE_ANSWERED_TOOLS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-PBEW5CJK.js";
3
+ } from "./chunk-GZHQQP7J.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-MFWHANKG.js";
3
+ } from "./chunk-YAA6MT6O.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
- } from "./chunk-JAKWPQ2L.js";
6
+ } from "./chunk-YSOZVBFW.js";
7
7
  import {
8
8
  readGlobalPrefixAsync,
9
9
  resolveGlobalBinary,
@@ -13,7 +13,7 @@ import {
13
13
  resolvePackageVersionFromBinary,
14
14
  resolvePathBinary,
15
15
  resolvePathBinaryAsync
16
- } from "./chunk-NAQCWM4U.js";
16
+ } from "./chunk-OXOYS3UG.js";
17
17
  import {
18
18
  MANAGED_PROVIDERS
19
19
  } from "./chunk-RQOT6QL3.js";
@@ -6,14 +6,14 @@ import {
6
6
  McpToolError,
7
7
  SubscriptionRequiredError,
8
8
  callMcpTool
9
- } from "./chunk-PZZKXX6Q.js";
9
+ } from "./chunk-VIQ5OS5E.js";
10
10
  import {
11
11
  installNetworkDefaults,
12
12
  isNetworkFailure
13
- } from "./chunk-MHC34X5A.js";
13
+ } from "./chunk-KHOWMC57.js";
14
14
  import {
15
15
  clientReportClaims
16
- } from "./chunk-LQAAOXYJ.js";
16
+ } from "./chunk-274CV7IW.js";
17
17
  import {
18
18
  getApiKey,
19
19
  getBaseUrl
@@ -8,20 +8,20 @@ import {
8
8
  everyProgramFileIsThere,
9
9
  installedCodexApp,
10
10
  shellQuoted
11
- } from "./chunk-ORHVVRVL.js";
11
+ } from "./chunk-2LI3DF7Q.js";
12
12
  import {
13
13
  writeHuman
14
14
  } from "./chunk-QCGNGEGE.js";
15
15
  import {
16
16
  xml
17
- } from "./chunk-EUU5PDUI.js";
17
+ } from "./chunk-TXRV7AOA.js";
18
18
  import {
19
19
  CODEX_APP_LAUNCH_AT_LOGIN_VERB,
20
20
  CODEX_APP_LAUNCH_VARIABLE
21
21
  } from "./chunk-E46NE7FB.js";
22
22
  import {
23
23
  writeFileAtomic
24
- } from "./chunk-NAQCWM4U.js";
24
+ } from "./chunk-OXOYS3UG.js";
25
25
 
26
26
  // src/codex-app-cards-switch.ts
27
27
  import { execFileSync as execFileSync2 } from "child_process";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-LQAAOXYJ.js";
3
+ } from "./chunk-274CV7IW.js";
4
4
  import {
5
5
  writeFileAtomic
6
- } from "./chunk-NAQCWM4U.js";
6
+ } from "./chunk-OXOYS3UG.js";
7
7
 
8
8
  // src/identity.ts
9
9
  import { randomUUID } from "crypto";
@@ -6,7 +6,7 @@ import {
6
6
  readJsonSafe,
7
7
  writeFileAtomic,
8
8
  writeJsonAtomic
9
- } from "./chunk-NAQCWM4U.js";
9
+ } from "./chunk-OXOYS3UG.js";
10
10
  import {
11
11
  configFilePath
12
12
  } from "./chunk-32OSSYGZ.js";
@@ -12,7 +12,7 @@ import {
12
12
  reachVerdict,
13
13
  reachesYou,
14
14
  verifyDelivery
15
- } from "./chunk-AJIT4SCL.js";
15
+ } from "./chunk-BRWU4NT4.js";
16
16
  import {
17
17
  humanIsTty,
18
18
  writeHuman
@@ -8,13 +8,13 @@ import {
8
8
  reportClientError,
9
9
  sendNotification,
10
10
  waitForAnswer
11
- } from "./chunk-QYTOYNV2.js";
11
+ } from "./chunk-FD6KOIT2.js";
12
12
  import {
13
13
  withRetry
14
- } from "./chunk-PZZKXX6Q.js";
14
+ } from "./chunk-VIQ5OS5E.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-2VYQG2HG.js";
17
+ } from "./chunk-FZ2SHXUE.js";
18
18
  import {
19
19
  reportedInstallSource
20
20
  } from "./chunk-METUT7V4.js";
@@ -23,10 +23,10 @@ import {
23
23
  NOTIFICATION_PUSH_TYPES,
24
24
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
25
25
  canonicalJson
26
- } from "./chunk-LQAAOXYJ.js";
26
+ } from "./chunk-274CV7IW.js";
27
27
  import {
28
28
  writeFileAtomic
29
- } from "./chunk-NAQCWM4U.js";
29
+ } from "./chunk-OXOYS3UG.js";
30
30
  import {
31
31
  getApiKey,
32
32
  getBaseUrl
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  findNativeClaudeInstall
3
- } from "./chunk-JAKWPQ2L.js";
3
+ } from "./chunk-YSOZVBFW.js";
4
4
  import {
5
5
  isFile
6
- } from "./chunk-NAQCWM4U.js";
6
+ } from "./chunk-OXOYS3UG.js";
7
7
 
8
8
  // src/wrapper/claudeBinary.ts
9
9
  import { homedir } from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-LQAAOXYJ.js";
3
+ } from "./chunk-274CV7IW.js";
4
4
  import {
5
5
  readJsonSafe
6
- } from "./chunk-NAQCWM4U.js";
6
+ } from "./chunk-OXOYS3UG.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-RQOT6QL3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-2VYQG2HG.js";
3
+ } from "./chunk-FZ2SHXUE.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-PPY5N2E6.js";
@@ -2,22 +2,22 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-P4XZX7CL.js";
5
+ } from "./chunk-QE22XDUK.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-7V63A4AI.js";
8
+ } from "./chunk-XLKO2XEG.js";
9
9
  import {
10
10
  createIo
11
11
  } from "./chunk-FO3MDD26.js";
12
12
  import {
13
13
  readKeySource
14
- } from "./chunk-PBEW5CJK.js";
14
+ } from "./chunk-GZHQQP7J.js";
15
15
  import {
16
16
  absoluteUrl,
17
17
  checkApiKey,
18
18
  describeKeyCheck,
19
19
  keyCheckFromResponse
20
- } from "./chunk-BSMHSN3Y.js";
20
+ } from "./chunk-AQA63ZWO.js";
21
21
  import {
22
22
  EXIT
23
23
  } from "./chunk-KZERVKTD.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-PBEW5CJK.js";
3
+ } from "./chunk-GZHQQP7J.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  writeFileAtomic
6
- } from "./chunk-NAQCWM4U.js";
6
+ } from "./chunk-OXOYS3UG.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
9
  } from "./chunk-X2MTVD4W.js";
@@ -3,13 +3,13 @@ import {
3
3
  loadPin,
4
4
  savePin,
5
5
  verifyRecipients
6
- } from "./chunk-4TIN3T2A.js";
6
+ } from "./chunk-QZPRCMPV.js";
7
7
  import {
8
8
  ensureDaemonRunning
9
- } from "./chunk-EUU5PDUI.js";
9
+ } from "./chunk-TXRV7AOA.js";
10
10
  import {
11
11
  hookOwnerOf
12
- } from "./chunk-73DHP3JX.js";
12
+ } from "./chunk-NFWZVY25.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  decodePublicKey,
@@ -22,18 +22,18 @@ import {
22
22
  import {
23
23
  transcriptEnvironmentPreference,
24
24
  transcriptsEnabled
25
- } from "./chunk-MUDUWF74.js";
25
+ } from "./chunk-DTENGECG.js";
26
26
  import {
27
27
  readTranscriptPreference
28
- } from "./chunk-PBEW5CJK.js";
28
+ } from "./chunk-GZHQQP7J.js";
29
29
  import {
30
30
  claudeConfigDir,
31
31
  codexHome,
32
32
  pusharyDir
33
- } from "./chunk-LQAAOXYJ.js";
33
+ } from "./chunk-274CV7IW.js";
34
34
  import {
35
35
  writeJsonAtomic
36
- } from "./chunk-NAQCWM4U.js";
36
+ } from "./chunk-OXOYS3UG.js";
37
37
  import {
38
38
  getApiKey,
39
39
  getBaseUrl
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ZK5WYAMI.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-77QP22FL.js";
6
+ } from "./chunk-CJ3W7XRU.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -12,7 +12,7 @@ import {
12
12
  holdBudgetOf,
13
13
  isProtectedByScope,
14
14
  registerHookEntry
15
- } from "./chunk-LQAAOXYJ.js";
15
+ } from "./chunk-274CV7IW.js";
16
16
  import {
17
17
  CURSOR_GATE_EVENTS,
18
18
  HOOK_BUDGETS,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readJsonSafe,
3
3
  writeJsonAtomic
4
- } from "./chunk-NAQCWM4U.js";
4
+ } from "./chunk-OXOYS3UG.js";
5
5
  import {
6
6
  configFilePath
7
7
  } from "./chunk-32OSSYGZ.js";
@@ -443,9 +443,9 @@ var installGlobally = (options) => {
443
443
  }
444
444
  const started = (async () => {
445
445
  if (!npmIsOnPath()) throw new NpmMissingError();
446
- const { withUpgradeLock } = await import("./global-upgrade-XZ5L7LDB.js");
447
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-VQORI6G5.js");
448
- const { autoUpdateLock } = await import("./paths-EOMNC4QM.js");
446
+ const { withUpgradeLock } = await import("./global-upgrade-ZMWRPO5G.js");
447
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-MSBKXUKM.js");
448
+ const { autoUpdateLock } = await import("./paths-YUF2TFTA.js");
449
449
  let result = "skipped";
450
450
  const install = async () => {
451
451
  const platform = process.platform;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-LQAAOXYJ.js";
3
+ } from "./chunk-274CV7IW.js";
4
4
  import {
5
5
  readJsonSafe,
6
6
  writeFileAtomic
7
- } from "./chunk-NAQCWM4U.js";
7
+ } from "./chunk-OXOYS3UG.js";
8
8
  import {
9
9
  DECLINED_AGENTS_FILE,
10
10
  DISCONNECT_AGENT_IDS,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readMacAppAgentKey
3
- } from "./chunk-PEPRUUGM.js";
3
+ } from "./chunk-PK6WI4HH.js";
4
4
  import {
5
5
  API_KEYS_PATH
6
- } from "./chunk-7V63A4AI.js";
6
+ } from "./chunk-XLKO2XEG.js";
7
7
  import {
8
8
  findExportedKeyLines,
9
9
  isAdoptedMacAppKey,
@@ -13,10 +13,10 @@ import {
13
13
  readConfigFileKey,
14
14
  readKeySource,
15
15
  readMacAppKeyPrefix
16
- } from "./chunk-PBEW5CJK.js";
16
+ } from "./chunk-GZHQQP7J.js";
17
17
  import {
18
18
  absoluteUrl
19
- } from "./chunk-BSMHSN3Y.js";
19
+ } from "./chunk-AQA63ZWO.js";
20
20
  import {
21
21
  isValidApiKey
22
22
  } from "./chunk-RQOT6QL3.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-CB4U6WRP.js";
3
+ } from "./chunk-72ILLFCY.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-PBEW5CJK.js";
6
+ } from "./chunk-GZHQQP7J.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-LQAAOXYJ.js";
9
+ } from "./chunk-274CV7IW.js";
10
10
  import {
11
11
  readJsonSafe
12
- } from "./chunk-NAQCWM4U.js";
12
+ } from "./chunk-OXOYS3UG.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
@@ -4,7 +4,7 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-PBEW5CJK.js";
7
+ } from "./chunk-GZHQQP7J.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
10
  } from "./chunk-X2MTVD4W.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeJsonAtomicDurable
3
- } from "./chunk-NAQCWM4U.js";
3
+ } from "./chunk-OXOYS3UG.js";
4
4
 
5
5
  // src/transcript-recipient-pin.ts
6
6
  import { existsSync, mkdirSync, readFileSync, rmSync } from "fs";
@@ -1,23 +1,22 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-53Q4LRBU.js";
3
+ } from "./chunk-54O76CMR.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
7
7
  installHermesPlugin,
8
8
  refreshHermesPluginFiles,
9
9
  shippedHermesPlugin
10
- } from "./chunk-D6W7QDQE.js";
10
+ } from "./chunk-Z3FMJ567.js";
11
11
  import {
12
12
  fxIgnoresInstructionsFile,
13
13
  fxInstructionsBody,
14
14
  fxServerHolder,
15
- inspectFxPusharyHttpWiring,
16
15
  installedCliFxBridgeEntry,
17
16
  macAppFxBridge,
18
17
  refreshClineKey,
19
18
  switchFxHttpEntryToBridge
20
- } from "./chunk-SL7CIZCL.js";
19
+ } from "./chunk-SSJDAX4E.js";
21
20
  import {
22
21
  OPENCODE_HOOK_BINARY,
23
22
  agentHookOwner,
@@ -29,16 +28,16 @@ import {
29
28
  openCodePluginDir,
30
29
  openCodeWired,
31
30
  withOpenCodeAskRules
32
- } from "./chunk-CB4U6WRP.js";
31
+ } from "./chunk-72ILLFCY.js";
33
32
  import {
34
33
  detectClaudeVersion
35
- } from "./chunk-MFWHANKG.js";
34
+ } from "./chunk-YAA6MT6O.js";
36
35
  import {
37
36
  addCompatibleHooks,
38
37
  compatibleConfigFile,
39
38
  compatibleInstructionsFile,
40
39
  hasCompatibleHooks
41
- } from "./chunk-TVVJ6OYG.js";
40
+ } from "./chunk-DJPNVVJQ.js";
42
41
  import {
43
42
  GEMINI_HOOK_BINARY,
44
43
  addGeminiHooks,
@@ -50,7 +49,7 @@ import {
50
49
  geminiWired,
51
50
  hasGeminiHooks,
52
51
  planHooks
53
- } from "./chunk-73DHP3JX.js";
52
+ } from "./chunk-NFWZVY25.js";
54
53
  import {
55
54
  CLAUDE_HOOK_BINARY,
56
55
  CLAUDE_HOOK_EVENTS,
@@ -95,7 +94,7 @@ import {
95
94
  renderAgentInstructions,
96
95
  supportedClaudeEvents,
97
96
  vscodePluginMcp
98
- } from "./chunk-LQAAOXYJ.js";
97
+ } from "./chunk-274CV7IW.js";
99
98
  import {
100
99
  formatVersion,
101
100
  readJsonSafe,
@@ -103,7 +102,7 @@ import {
103
102
  resolveGlobalBinary,
104
103
  writeFileAtomic,
105
104
  writeJsonAtomic
106
- } from "./chunk-NAQCWM4U.js";
105
+ } from "./chunk-OXOYS3UG.js";
107
106
  import {
108
107
  HOOK_COMPATIBLE_PROFILES,
109
108
  isCompatibleAgentType,
@@ -406,16 +405,23 @@ var reapplyCompatibleHooks = (profile, paths = {}) => {
406
405
  var CONFIGURED_AND_UNCHANGED = { configured: true, reapplied: false, hooks: false, mcp: false };
407
406
  var fxHolder = () => fxServerHolder(fxMcpProfile(), macAppFxBridge(pusharyDir()));
408
407
  var FX_SWITCHED_TO_BRIDGE = { configured: true, reapplied: true, hooks: false, mcp: false, fxBridge: true };
409
- var FX_SWITCH_RESULTS = {
410
- switched: FX_SWITCHED_TO_BRIDGE,
411
- "not-http": NOT_CONFIGURED,
412
- failed: CONFIGURED_BUT_FAILED
408
+ var fxSwitchResultOf = (outcome) => {
409
+ switch (outcome.kind) {
410
+ case "switched":
411
+ return FX_SWITCHED_TO_BRIDGE;
412
+ case "not-http":
413
+ return NOT_CONFIGURED;
414
+ case "kept":
415
+ return { ...CONFIGURED_AND_UNCHANGED, fxHttpKept: outcome.reason };
416
+ }
413
417
  };
414
418
  var reapplyFxWiring = (apiKey) => {
415
419
  if (fxHolder() === "cli") return CONFIGURED_AND_UNCHANGED;
416
- if (!apiKey || !inspectFxPusharyHttpWiring(fxMcpProfile()).pusharyOverHttp) return NOT_CONFIGURED;
417
- const bridgeEntry = installedCliFxBridgeEntry();
418
- return bridgeEntry ? FX_SWITCH_RESULTS[switchFxHttpEntryToBridge(fxMcpProfile(), bridgeEntry)] : NOT_CONFIGURED;
420
+ return fxSwitchResultOf(switchFxHttpEntryToBridge(fxMcpProfile(), {
421
+ machineKey: apiKey || void 0,
422
+ env: process.env,
423
+ findBridgeEntry: installedCliFxBridgeEntry
424
+ }));
419
425
  };
420
426
  var REFRESHED_MCP = { configured: true, reapplied: true, hooks: false, mcp: true };
421
427
  var CLINE_REAPPLY_RESULTS = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-6IFEYELN.js";
3
+ } from "./chunk-HZNZJTGH.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";