@pushary/agent-hooks 1.9.73 → 1.9.75

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 (125) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{api-JVWXPKEW.js → api-L3BIISGS.js} +10 -10
  3. package/dist/bin/pushary-bell-hook.js +26 -25
  4. package/dist/bin/pushary-bell.js +14 -14
  5. package/dist/bin/pushary-claude.js +54 -82
  6. package/dist/bin/pushary-clean.js +37 -37
  7. package/dist/bin/pushary-codex-bridge.js +24 -24
  8. package/dist/bin/pushary-codex-hook.js +35 -34
  9. package/dist/bin/pushary-codex-session.js +8 -8
  10. package/dist/bin/pushary-codex.js +15 -15
  11. package/dist/bin/pushary-connect.js +26 -26
  12. package/dist/bin/pushary-cowork.js +5 -5
  13. package/dist/bin/pushary-daemon.js +1292 -63
  14. package/dist/bin/pushary-disconnect.js +31 -31
  15. package/dist/bin/pushary-display-hook.d.ts +1 -0
  16. package/dist/bin/pushary-display-hook.js +57 -0
  17. package/dist/bin/pushary-doctor.js +50 -50
  18. package/dist/bin/pushary-elicitation-hook.js +28 -27
  19. package/dist/bin/pushary-gemini-bridge.js +16 -16
  20. package/dist/bin/pushary-gemini-hook.js +30 -29
  21. package/dist/bin/pushary-hook.js +30 -29
  22. package/dist/bin/pushary-login.js +20 -20
  23. package/dist/bin/pushary-logout.js +30 -30
  24. package/dist/bin/pushary-mcp.js +14 -14
  25. package/dist/bin/pushary-mode.js +18 -18
  26. package/dist/bin/pushary-notification-hook.js +25 -24
  27. package/dist/bin/pushary-opencode-hook.js +29 -28
  28. package/dist/bin/pushary-permission-denied-hook.js +30 -29
  29. package/dist/bin/pushary-permission-hook.js +30 -29
  30. package/dist/bin/pushary-post-hook.js +31 -29
  31. package/dist/bin/pushary-prompt-hook.js +31 -29
  32. package/dist/bin/pushary-session-end-hook.js +27 -26
  33. package/dist/bin/pushary-session-start-hook.js +35 -34
  34. package/dist/bin/pushary-setup.js +61 -60
  35. package/dist/bin/pushary-stats.js +6 -6
  36. package/dist/bin/pushary-status.js +31 -31
  37. package/dist/bin/pushary-stop-hook.js +31 -26
  38. package/dist/bin/pushary-stopfailure-hook.js +25 -24
  39. package/dist/bin/pushary-suggestions.js +18 -18
  40. package/dist/bin/pushary-transcript-register.js +17 -16
  41. package/dist/bin/pushary-transcripts.js +19 -19
  42. package/dist/bin/pushary-upgrade.js +45 -45
  43. package/dist/bin/pushary-wait.js +18 -18
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-TQ2L3ECX.js → chunk-2DB7TBA7.js} +2 -2
  46. package/dist/{chunk-7S46LCKD.js → chunk-2J4IVUEA.js} +3 -2
  47. package/dist/{chunk-7M4AA7QF.js → chunk-32JJ5KV3.js} +4 -4
  48. package/dist/{chunk-PM2MHBMF.js → chunk-3PPL64AG.js} +3 -3
  49. package/dist/{chunk-UIF7HWHX.js → chunk-3SAF4QXU.js} +4 -4
  50. package/dist/{chunk-BLX6KRK5.js → chunk-4DH54LS7.js} +1 -1
  51. package/dist/{chunk-N4VRSFRZ.js → chunk-4GWKKUQ5.js} +5 -5
  52. package/dist/{chunk-4LAD5A2Q.js → chunk-4T25BBBO.js} +4 -4
  53. package/dist/{chunk-R5PZPROX.js → chunk-53D6FFVE.js} +1 -1
  54. package/dist/{chunk-U3EBM73X.js → chunk-5EQOUZYE.js} +2 -2
  55. package/dist/{chunk-WXV7J3DG.js → chunk-6BFLDHPM.js} +3 -3
  56. package/dist/{chunk-NJSW2REO.js → chunk-7FNSQMQ2.js} +4 -4
  57. package/dist/{chunk-EUEGCEA7.js → chunk-7O54GE5C.js} +3 -3
  58. package/dist/{chunk-RZVWEDIS.js → chunk-AUDYAVNM.js} +3 -3
  59. package/dist/{chunk-UUCRWEEU.js → chunk-BGEUAJYL.js} +2 -2
  60. package/dist/{chunk-4UIR25GA.js → chunk-BRG4XS2H.js} +1 -1
  61. package/dist/{chunk-F3WI32HG.js → chunk-CI6MDBQB.js} +7 -7
  62. package/dist/{chunk-SQ5XCMPB.js → chunk-CLHRSK5L.js} +4 -4
  63. package/dist/{chunk-JNTYPMVU.js → chunk-D4X4BQVQ.js} +10 -10
  64. package/dist/{chunk-7FROPPIH.js → chunk-DARPCQPY.js} +2 -2
  65. package/dist/{chunk-WJJVCDEU.js → chunk-DCHZ5JOI.js} +6 -6
  66. package/dist/{chunk-KDQLKND5.js → chunk-DOG3BQFO.js} +6 -6
  67. package/dist/{chunk-QMPM3CAN.js → chunk-DUOBFECC.js} +1 -1
  68. package/dist/{chunk-3QBKMSOZ.js → chunk-DX65IDBI.js} +1 -1
  69. package/dist/{chunk-3RAWW5DH.js → chunk-E5XYFIYL.js} +6 -6
  70. package/dist/{chunk-Z7AIYWZ2.js → chunk-EH5OLIP2.js} +2 -2
  71. package/dist/{chunk-IN3MPEFA.js → chunk-EM2RSWDA.js} +5 -5
  72. package/dist/{chunk-CMYFV3VC.js → chunk-EOGVWCLF.js} +5 -5
  73. package/dist/{chunk-CGWUVEOB.js → chunk-EVBG5YUO.js} +3 -3
  74. package/dist/{chunk-PNXNWZ5P.js → chunk-FEC3JUIH.js} +3 -3
  75. package/dist/{chunk-3JJI5O5N.js → chunk-GAAN3Y7V.js} +1 -1
  76. package/dist/{chunk-VBSPP4QY.js → chunk-HRRGIVIL.js} +3 -3
  77. package/dist/{chunk-2QB7HJVJ.js → chunk-HXV2SY2V.js} +2 -2
  78. package/dist/{chunk-JWBZUTYF.js → chunk-I6TIZMM3.js} +5 -5
  79. package/dist/{chunk-AXZ67XVN.js → chunk-I73UQU7K.js} +1 -1
  80. package/dist/{chunk-ZBZBYUNZ.js → chunk-JCZWWBBA.js} +5 -5
  81. package/dist/{chunk-AJWGZJFS.js → chunk-JFVLMWKY.js} +131 -28
  82. package/dist/{chunk-GBR6E7AY.js → chunk-JOMG6J64.js} +1 -1
  83. package/dist/{chunk-EITOMPFB.js → chunk-KDUWFGY2.js} +4 -4
  84. package/dist/{chunk-NGNBX3YH.js → chunk-LIDUPDEY.js} +4 -4
  85. package/dist/{chunk-YZ6DMGZZ.js → chunk-LRYZXY4V.js} +1 -1
  86. package/dist/{chunk-TTGBS5JB.js → chunk-M7BXAWUC.js} +3 -3
  87. package/dist/{chunk-KSLBS3II.js → chunk-MD4UJICD.js} +6 -5
  88. package/dist/{chunk-2HFC4W6J.js → chunk-NCTABQMC.js} +4 -3
  89. package/dist/{chunk-PGJMSREY.js → chunk-P4TWTQ6V.js} +8 -8
  90. package/dist/{chunk-XKQ7CQGG.js → chunk-PGLNE556.js} +1 -1
  91. package/dist/{chunk-2NG3ANMT.js → chunk-PV5XEBFI.js} +9 -9
  92. package/dist/{chunk-JYOR57ZW.js → chunk-QDUDXJAF.js} +3 -3
  93. package/dist/{chunk-AVHL2ZTS.js → chunk-QRS7FQHE.js} +455 -172
  94. package/dist/{chunk-TFDMJHAB.js → chunk-R7V6BPEV.js} +1 -1
  95. package/dist/{chunk-S63VIM7E.js → chunk-RPKFXNOJ.js} +1 -1
  96. package/dist/{chunk-56GK65Z6.js → chunk-SFJOGZQV.js} +3 -3
  97. package/dist/{chunk-VJUDBZGC.js → chunk-SHW6KK2K.js} +2 -2
  98. package/dist/{chunk-S7VMHSJW.js → chunk-SIJHPGUW.js} +5 -5
  99. package/dist/{chunk-7RX5TOU3.js → chunk-SNUHX5GQ.js} +6 -6
  100. package/dist/{chunk-O4EAMVSC.js → chunk-SOHJ37NA.js} +5 -5
  101. package/dist/{chunk-JC7XUZST.js → chunk-SONZCJY5.js} +22 -3
  102. package/dist/{chunk-FB262EOM.js → chunk-T6RWREWU.js} +1 -1
  103. package/dist/{chunk-QAWWTRDD.js → chunk-TPYZFYQ5.js} +4 -4
  104. package/dist/{chunk-FK3JSDH5.js → chunk-UBANQ4EZ.js} +13 -13
  105. package/dist/{chunk-EUHTC7K5.js → chunk-UEJTWQVF.js} +1 -1
  106. package/dist/{chunk-PPKIL4EL.js → chunk-UIS332AZ.js} +1 -1
  107. package/dist/{chunk-W47XZJSH.js → chunk-UU3CDLIX.js} +2 -2
  108. package/dist/{chunk-FAKEKFCI.js → chunk-VGHWK5Z2.js} +5 -3
  109. package/dist/{chunk-2JFEMKDG.js → chunk-WL3V2UV4.js} +6 -6
  110. package/dist/{chunk-OJ3ZD5VX.js → chunk-XO7LP3JC.js} +1 -1
  111. package/dist/{chunk-DT6VCMXS.js → chunk-Z7ORL6SC.js} +2 -2
  112. package/dist/{chunk-AC5TVOAH.js → chunk-ZX3KEXO3.js} +343 -84
  113. package/dist/{codex-app-cards-switch-M7VH7AZH.js → codex-app-cards-switch-CN3G7GZW.js} +11 -11
  114. package/dist/{codex-desktop-launch-6DASTBBA.js → codex-desktop-launch-GFZXCDSL.js} +1 -1
  115. package/dist/{codex-session-launch-2XSMFA4K.js → codex-session-launch-4F2UGQYE.js} +18 -18
  116. package/dist/{config-7QQOIFTW.js → config-BLHDUDCS.js} +3 -3
  117. package/dist/{global-upgrade-XAKX26AN.js → global-upgrade-IZEC22BQ.js} +10 -10
  118. package/dist/{identity-7AS5MBNM.js → identity-3HGTEP5Q.js} +4 -4
  119. package/dist/{live-capabilities-DV4F7MIB.js → live-capabilities-AZK664T7.js} +5 -5
  120. package/dist/{paths-GSMXYKT5.js → paths-ROMZUSEX.js} +3 -3
  121. package/dist/{reapply-MR7UWBXR.js → reapply-IJYRR4YK.js} +27 -27
  122. package/dist/src/index.js +31 -30
  123. package/dist/{upgrade-lock-6OTHLCBZ.js → upgrade-lock-FGEZPX56.js} +4 -4
  124. package/dist/{usage-H53PO3VQ.js → usage-HCURE44F.js} +3 -3
  125. package/package.json +4 -2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFile
3
- } from "./chunk-RZVWEDIS.js";
3
+ } from "./chunk-AUDYAVNM.js";
4
4
 
5
5
  // src/claude-native-install.ts
6
6
  import { accessSync, constants } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-NGNBX3YH.js";
3
+ } from "./chunk-LIDUPDEY.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-7S46LCKD.js";
3
+ } from "./chunk-2J4IVUEA.js";
4
4
  import {
5
5
  readJsonSafe,
6
6
  writeFileAtomic
7
- } from "./chunk-RZVWEDIS.js";
7
+ } from "./chunk-AUDYAVNM.js";
8
8
  import {
9
9
  DECLINED_AGENTS_FILE,
10
10
  DISCONNECT_AGENT_IDS,
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-AVHL2ZTS.js";
16
+ } from "./chunk-QRS7FQHE.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -7,10 +7,10 @@ import {
7
7
  codexHome,
8
8
  codexHooksJsonIn,
9
9
  isPusharyCodexCommand
10
- } from "./chunk-7S46LCKD.js";
10
+ } from "./chunk-2J4IVUEA.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-RZVWEDIS.js";
13
+ } from "./chunk-AUDYAVNM.js";
14
14
  import {
15
15
  getPackageVersion
16
16
  } from "./chunk-QTOLNRET.js";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-O4EAMVSC.js";
3
+ } from "./chunk-SOHJ37NA.js";
4
+ import {
5
+ getBaseUrl
6
+ } from "./chunk-53D6FFVE.js";
4
7
  import {
5
8
  NetworkError
6
9
  } from "./chunk-PPY5N2E6.js";
7
10
  import {
8
11
  EXIT
9
12
  } from "./chunk-KZERVKTD.js";
10
- import {
11
- getBaseUrl
12
- } from "./chunk-R5PZPROX.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-AVHL2ZTS.js";
16
+ } from "./chunk-QRS7FQHE.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  APPROVAL_RULES_PATH,
3
3
  canChangeApprovalSettings
4
- } from "./chunk-TQ2L3ECX.js";
4
+ } from "./chunk-2DB7TBA7.js";
5
5
  import {
6
6
  callMcpTool
7
- } from "./chunk-7M4AA7QF.js";
7
+ } from "./chunk-32JJ5KV3.js";
8
8
  import {
9
9
  absoluteUrl
10
- } from "./chunk-S7VMHSJW.js";
10
+ } from "./chunk-SIJHPGUW.js";
11
11
  import {
12
12
  getBaseUrl
13
- } from "./chunk-R5PZPROX.js";
13
+ } from "./chunk-53D6FFVE.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-PPKIL4EL.js";
16
+ } from "./chunk-UIS332AZ.js";
17
17
  import {
18
18
  APPROVAL_MODE_META,
19
19
  classifyConfirmResponse,
20
20
  isAnswerSource
21
- } from "./chunk-AVHL2ZTS.js";
21
+ } from "./chunk-QRS7FQHE.js";
22
22
 
23
23
  // src/reach.ts
24
24
  var reachVerdict = (channels) => {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-UUCRWEEU.js";
3
+ } from "./chunk-BGEUAJYL.js";
4
+ import {
5
+ getBaseUrl
6
+ } from "./chunk-53D6FFVE.js";
4
7
  import {
5
8
  NetworkError
6
9
  } from "./chunk-PPY5N2E6.js";
7
- import {
8
- getBaseUrl
9
- } from "./chunk-R5PZPROX.js";
10
10
  import {
11
11
  getPackageVersion
12
12
  } from "./chunk-QTOLNRET.js";
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-AVHL2ZTS.js";
16
+ } from "./chunk-QRS7FQHE.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  getBaseUrl
3
- } from "./chunk-R5PZPROX.js";
3
+ } from "./chunk-53D6FFVE.js";
4
4
  import {
5
5
  compressTranscriptRecord,
6
- redactSecretsFromContent
7
- } from "./chunk-AVHL2ZTS.js";
6
+ redactSecretsFromContent,
7
+ transcriptRecordPlaintext
8
+ } from "./chunk-QRS7FQHE.js";
8
9
 
9
10
  // src/transcript-api.ts
10
11
  var fetchTranscriptRecipients = async (apiKey, baseUrl = getBaseUrl()) => {
@@ -65,6 +66,13 @@ import nacl from "tweetnacl";
65
66
  // ../contracts/src/transcript-record-node.ts
66
67
  import { deflateRawSync, inflateRawSync } from "zlib";
67
68
  var deflateRaw = (raw) => new Uint8Array(deflateRawSync(raw));
69
+ var inflateRawWithin = (deflated, maxBytes) => {
70
+ try {
71
+ return new Uint8Array(inflateRawSync(deflated, { maxOutputLength: maxBytes }));
72
+ } catch {
73
+ return null;
74
+ }
75
+ };
68
76
 
69
77
  // src/crypto.ts
70
78
  var EPH_PUB_LEN = nacl.box.publicKeyLength;
@@ -74,6 +82,7 @@ var SESSION_KEY_LEN = nacl.secretbox.keyLength;
74
82
  var toBase64 = (bytes) => Buffer.from(bytes).toString("base64");
75
83
  var fromBase64 = (value) => new Uint8Array(Buffer.from(value, "base64"));
76
84
  var utf8Encode = (text) => new Uint8Array(Buffer.from(text, "utf-8"));
85
+ var utf8Decode = (bytes) => Buffer.from(bytes).toString("utf-8");
77
86
  var decodePublicKey = (value) => fromBase64(value);
78
87
  var generateSessionKey = () => nacl.randomBytes(SESSION_KEY_LEN);
79
88
  var wrapSessionKey = (sessionKey, accountPublicKey) => {
@@ -97,6 +106,15 @@ var sealRecordBytes = (plaintext, sessionKey) => {
97
106
  var encryptRecord = (plaintext, sessionKey) => sealRecordBytes(utf8Encode(plaintext), sessionKey);
98
107
  var encryptCompressedRecord = (plaintext, sessionKey) => sealRecordBytes(compressTranscriptRecord(utf8Encode(plaintext), deflateRaw), sessionKey);
99
108
  var recordSealerFor = (compressRecords) => compressRecords ? encryptCompressedRecord : encryptRecord;
109
+ var decryptRecord = (ciphertext, sessionKey) => {
110
+ const bundle = fromBase64(ciphertext);
111
+ if (bundle.length < SECRETBOX_NONCE_LEN) return null;
112
+ const nonce = bundle.slice(0, SECRETBOX_NONCE_LEN);
113
+ const box = bundle.slice(SECRETBOX_NONCE_LEN);
114
+ const opened = nacl.secretbox.open(box, nonce, sessionKey);
115
+ const plaintext = opened ? transcriptRecordPlaintext(opened, inflateRawWithin) : null;
116
+ return plaintext ? utf8Decode(plaintext) : null;
117
+ };
100
118
 
101
119
  // src/transcript-capture.ts
102
120
  import { createHmac } from "crypto";
@@ -223,6 +241,7 @@ export {
223
241
  wrapSessionKey,
224
242
  encryptRecord,
225
243
  recordSealerFor,
244
+ decryptRecord,
226
245
  buildTranscriptRecords,
227
246
  fetchTranscriptRecipients,
228
247
  fetchAccountPublicKey,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeJsonAtomicDurable
3
- } from "./chunk-RZVWEDIS.js";
3
+ } from "./chunk-AUDYAVNM.js";
4
4
 
5
5
  // src/transcript-recipient-pin.ts
6
6
  import { existsSync, mkdirSync, readFileSync, rmSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-2HFC4W6J.js";
3
+ } from "./chunk-NCTABQMC.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-BLX6KRK5.js";
6
+ } from "./chunk-4DH54LS7.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -12,13 +12,13 @@ import {
12
12
  holdBudgetOf,
13
13
  isProtectedByScope,
14
14
  registerHookEntry
15
- } from "./chunk-7S46LCKD.js";
15
+ } from "./chunk-2J4IVUEA.js";
16
16
  import {
17
17
  CURSOR_GATE_EVENTS,
18
18
  HOOK_BUDGETS,
19
19
  HOOK_LOCATOR_BINARY,
20
20
  hookCommandHoldBudget
21
- } from "./chunk-AVHL2ZTS.js";
21
+ } from "./chunk-QRS7FQHE.js";
22
22
 
23
23
  // src/diagnostics/bridge.ts
24
24
  import { execFileSync } from "child_process";
@@ -4,24 +4,24 @@ import {
4
4
  outcomeOfFailedAsk,
5
5
  reportMachineDenial,
6
6
  storedWaitDeadline
7
- } from "./chunk-2JFEMKDG.js";
7
+ } from "./chunk-WL3V2UV4.js";
8
8
  import {
9
9
  isGatingMoment,
10
10
  recordKeylessMoment
11
- } from "./chunk-3JJI5O5N.js";
11
+ } from "./chunk-GAAN3Y7V.js";
12
12
  import {
13
13
  isAdmitted,
14
14
  readAdmissionRules
15
- } from "./chunk-F3WI32HG.js";
15
+ } from "./chunk-CI6MDBQB.js";
16
16
  import {
17
17
  isDeferAnswer,
18
18
  oncePerSession
19
- } from "./chunk-AXZ67XVN.js";
19
+ } from "./chunk-I73UQU7K.js";
20
20
  import {
21
21
  activeHookSource,
22
22
  activeIdentity,
23
23
  namedSource
24
- } from "./chunk-UIF7HWHX.js";
24
+ } from "./chunk-3SAF4QXU.js";
25
25
  import {
26
26
  DEFAULT_SESSION,
27
27
  UNNAMED_ACTION,
@@ -45,10 +45,10 @@ import {
45
45
  reportEvent,
46
46
  scopePathFor,
47
47
  settleQuestionsForToolUse
48
- } from "./chunk-AJWGZJFS.js";
48
+ } from "./chunk-JFVLMWKY.js";
49
49
  import {
50
50
  repoKeyFor
51
- } from "./chunk-QMPM3CAN.js";
51
+ } from "./chunk-DUOBFECC.js";
52
52
  import {
53
53
  askUser,
54
54
  cancelQuestion,
@@ -65,20 +65,20 @@ import {
65
65
  waitForQuestion,
66
66
  waitsForThePhone,
67
67
  withdrawQuestion
68
- } from "./chunk-CMYFV3VC.js";
68
+ } from "./chunk-EOGVWCLF.js";
69
69
  import {
70
70
  getMachineId
71
- } from "./chunk-UUCRWEEU.js";
71
+ } from "./chunk-BGEUAJYL.js";
72
72
  import {
73
73
  claudeConfigDir
74
- } from "./chunk-7S46LCKD.js";
74
+ } from "./chunk-2J4IVUEA.js";
75
75
  import {
76
76
  getApiKey,
77
77
  getBaseUrl
78
- } from "./chunk-R5PZPROX.js";
78
+ } from "./chunk-53D6FFVE.js";
79
79
  import {
80
80
  NPX_LATEST_COMMAND
81
- } from "./chunk-PPKIL4EL.js";
81
+ } from "./chunk-UIS332AZ.js";
82
82
  import {
83
83
  AGENT_QUESTION_STRATEGY,
84
84
  AGENT_QUESTION_TOOL,
@@ -133,7 +133,7 @@ import {
133
133
  terminalStaysLiveForTheCall,
134
134
  timeoutActionWithoutLocalPrompt,
135
135
  unansweredRefusalReason
136
- } from "./chunk-AVHL2ZTS.js";
136
+ } from "./chunk-QRS7FQHE.js";
137
137
 
138
138
  // src/terminal-answer-watch.ts
139
139
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-AVHL2ZTS.js";
5
+ } from "./chunk-QRS7FQHE.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -2,7 +2,7 @@ import {
2
2
  DISCONNECT_AGENT_IDS,
3
3
  SETUP_AGENT_CHOICES,
4
4
  isApprovalMode
5
- } from "./chunk-AVHL2ZTS.js";
5
+ } from "./chunk-QRS7FQHE.js";
6
6
 
7
7
  // src/cli/mode-request.ts
8
8
  var parseDuration = (value) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-7M4AA7QF.js";
3
+ } from "./chunk-32JJ5KV3.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
- } from "./chunk-PPKIL4EL.js";
6
+ } from "./chunk-UIS332AZ.js";
7
7
 
8
8
  // src/mcp-stdio-bridge.ts
9
9
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -5,19 +5,19 @@ import {
5
5
  hermesAppWiringRecord,
6
6
  hermesConfigReceipt,
7
7
  hermesSetupReceipt
8
- } from "./chunk-7S46LCKD.js";
8
+ } from "./chunk-2J4IVUEA.js";
9
9
  import {
10
10
  readJsonSafe,
11
11
  resolvePathBinary,
12
12
  writeJsonAtomic
13
- } from "./chunk-RZVWEDIS.js";
13
+ } from "./chunk-AUDYAVNM.js";
14
14
  import {
15
15
  isNewerVersion,
16
16
  isReleaseVersion
17
17
  } from "./chunk-QTOLNRET.js";
18
18
  import {
19
19
  isRecord
20
- } from "./chunk-AVHL2ZTS.js";
20
+ } from "./chunk-QRS7FQHE.js";
21
21
 
22
22
  // src/hermes/plugin-payload.ts
23
23
  import { createHash } from "crypto";
@@ -2267,11 +2267,13 @@ var removeHermesWiring = (request) => {
2267
2267
  };
2268
2268
 
2269
2269
  export {
2270
+ HERMES_INSTALL_MARKER_FILE,
2270
2271
  shippedHermesPlugin,
2271
2272
  findHermesLauncher,
2272
2273
  hermesPluginDirectory,
2273
2274
  HERMES_CONFIG_FILE,
2274
2275
  defaultHermesHome,
2276
+ parseHermesInstallMarker,
2275
2277
  hermesWiringOwner,
2276
2278
  routesHermesApprovals,
2277
2279
  routesHermesQuestions,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  announceSubscriptionRequired,
3
3
  isDeferAnswer
4
- } from "./chunk-AXZ67XVN.js";
4
+ } from "./chunk-I73UQU7K.js";
5
5
  import {
6
6
  AUTO_DECISION_WINDOW_MS,
7
7
  DEFAULT_SESSION,
@@ -10,19 +10,19 @@ import {
10
10
  permissionDeniedAction,
11
11
  releaseThrottle,
12
12
  reportEvent
13
- } from "./chunk-AJWGZJFS.js";
13
+ } from "./chunk-JFVLMWKY.js";
14
14
  import {
15
15
  askUser,
16
16
  isDecisionStopped,
17
17
  isQuestionLimitRefusal,
18
18
  waitForQuestion
19
- } from "./chunk-CMYFV3VC.js";
19
+ } from "./chunk-EOGVWCLF.js";
20
20
  import {
21
21
  SubscriptionRequiredError
22
- } from "./chunk-7M4AA7QF.js";
22
+ } from "./chunk-32JJ5KV3.js";
23
23
  import {
24
24
  getMachineId
25
- } from "./chunk-UUCRWEEU.js";
25
+ } from "./chunk-BGEUAJYL.js";
26
26
  import {
27
27
  ASK_CONTEXT_MAX,
28
28
  agentQuestionContext,
@@ -34,7 +34,7 @@ import {
34
34
  questionsShownAsASet,
35
35
  shouldDeferToNativeMode,
36
36
  wireVerdictFor
37
- } from "./chunk-AVHL2ZTS.js";
37
+ } from "./chunk-QRS7FQHE.js";
38
38
 
39
39
  // src/machine-decision-audit.ts
40
40
  import { basename } from "path";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KZERVKTD.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-PPKIL4EL.js";
6
+ } from "./chunk-UIS332AZ.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-QTOLNRET.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-7S46LCKD.js";
3
+ } from "./chunk-2J4IVUEA.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  writeJsonAtomic
8
- } from "./chunk-RZVWEDIS.js";
8
+ } from "./chunk-AUDYAVNM.js";
9
9
 
10
10
  // src/upgrade-lock.ts
11
11
  import { fork } from "child_process";