pushary 1.9.206 → 1.9.208

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 (144) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{api-6QQE4PNY.js → api-ZNUDZZKE.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 +27 -27
  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 +36 -36
  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 +47 -47
  16. package/dist/bin/pushary-disconnect.js +30 -30
  17. package/dist/bin/pushary-display-hook.js +3 -2
  18. package/dist/bin/pushary-doctor.js +47 -47
  19. package/dist/bin/pushary-elicitation-hook.js +28 -28
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +32 -32
  22. package/dist/bin/pushary-hook.js +36 -36
  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 +34 -34
  30. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  31. package/dist/bin/pushary-permission-hook.js +36 -36
  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 +40 -40
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +58 -58
  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 +47 -47
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-XVKT6YXA.js → chunk-2KIAN6EN.js} +5 -5
  49. package/dist/{chunk-OHGH7225.js → chunk-2Q7NC2UY.js} +5 -5
  50. package/dist/{chunk-KVLEIPFD.js → chunk-3DRUEVV5.js} +2 -2
  51. package/dist/{chunk-7SNBOQDD.js → chunk-3TCHFJKZ.js} +2 -2
  52. package/dist/{chunk-6GG6MQMG.js → chunk-5DRF45TA.js} +7 -7
  53. package/dist/{chunk-WW4M6BTR.js → chunk-5FBSXFYN.js} +3 -3
  54. package/dist/{chunk-WCFTTXTD.js → chunk-5HLTFF32.js} +2 -2
  55. package/dist/{chunk-KKEOD7P5.js → chunk-5MHUOT7Z.js} +5 -5
  56. package/dist/{chunk-4YFM5JLG.js → chunk-5YFCQXKL.js} +1 -1
  57. package/dist/{chunk-OWNTJUBD.js → chunk-62GMP6L4.js} +1 -1
  58. package/dist/{chunk-PTHC2H7E.js → chunk-6C7M27NR.js} +1 -1
  59. package/dist/{chunk-374YKOJZ.js → chunk-6EUMLHLJ.js} +7 -7
  60. package/dist/{chunk-XMEOARX4.js → chunk-6I6IQNF3.js} +2 -2
  61. package/dist/{chunk-K3Y4WQJX.js → chunk-6SDP4GSM.js} +13 -13
  62. package/dist/{chunk-EQM4THGD.js → chunk-6SZ3CI5M.js} +5 -5
  63. package/dist/{chunk-322DR4ZT.js → chunk-7EWQNCKU.js} +1 -1
  64. package/dist/{chunk-IAHDERLU.js → chunk-AMELWQJ4.js} +4 -4
  65. package/dist/{chunk-FBFAOF2S.js → chunk-AWZQOCR6.js} +2 -2
  66. package/dist/{chunk-AV5527GL.js → chunk-B5JJ2X7Y.js} +5 -5
  67. package/dist/{chunk-3NGBANTY.js → chunk-BLM5DQ24.js} +1 -1
  68. package/dist/{chunk-ILI3DBQH.js → chunk-BMTOLFWL.js} +4 -4
  69. package/dist/{chunk-VIM2IXHL.js → chunk-CD7XQFDR.js} +4 -4
  70. package/dist/{chunk-OOK2D7YI.js → chunk-COJDALP4.js} +2 -2
  71. package/dist/{chunk-MM3ZPQZV.js → chunk-CSQJRT35.js} +3 -3
  72. package/dist/{chunk-O33SA2U7.js → chunk-CW2PDQGF.js} +9 -9
  73. package/dist/{chunk-75MSER3U.js → chunk-E4P36U57.js} +1 -1
  74. package/dist/{chunk-QD2LGUZ4.js → chunk-ELRGVHIM.js} +2 -2
  75. package/dist/{chunk-SZ2HXE6F.js → chunk-ENJNYH35.js} +3 -3
  76. package/dist/{chunk-CBBRVY77.js → chunk-FNRJJ2GN.js} +1 -1
  77. package/dist/{chunk-YYPGDGXG.js → chunk-GEDCHWRX.js} +2 -2
  78. package/dist/{chunk-AU3PCXV3.js → chunk-GWJ5WHO6.js} +6 -6
  79. package/dist/{chunk-52OHO3HH.js → chunk-GWMCH66R.js} +1 -1
  80. package/dist/{chunk-SCZELAXA.js → chunk-GZWP4LIJ.js} +1 -1
  81. package/dist/{chunk-JEPFKTY6.js → chunk-HHU5VKSD.js} +18 -18
  82. package/dist/{chunk-RMNOELSS.js → chunk-HRT6HCJV.js} +1 -1
  83. package/dist/{chunk-HS4RZZRG.js → chunk-I7OZFD4V.js} +1 -1
  84. package/dist/{chunk-6P5E737B.js → chunk-IACTW6SD.js} +5 -5
  85. package/dist/{chunk-PGGYS32J.js → chunk-ICDROWLR.js} +1 -1
  86. package/dist/{chunk-4FBETQHZ.js → chunk-INO42IRS.js} +1 -1
  87. package/dist/{chunk-X6PSPWE3.js → chunk-JHX4RY7J.js} +4 -4
  88. package/dist/{chunk-6H4WJILH.js → chunk-JQ2NEH5X.js} +2 -2
  89. package/dist/{chunk-2DIEYUSU.js → chunk-JR4MBD37.js} +3 -3
  90. package/dist/{chunk-AZMZ2NJI.js → chunk-KLQKPH33.js} +5 -5
  91. package/dist/{chunk-7VXGU2HE.js → chunk-LEPYZ2V5.js} +2 -2
  92. package/dist/{chunk-RILOBL2B.js → chunk-LTYFMPZC.js} +2 -2
  93. package/dist/{chunk-YYYHTH3C.js → chunk-M4IZVJJI.js} +3 -3
  94. package/dist/{chunk-RAB3PLLF.js → chunk-M4YANMMV.js} +3 -3
  95. package/dist/{chunk-NJI4OAS2.js → chunk-MGU4BYQD.js} +2 -2
  96. package/dist/{chunk-VOE5ZSX4.js → chunk-MGXGT6CI.js} +6 -6
  97. package/dist/{chunk-BTCC3RCQ.js → chunk-MKLU3MU7.js} +21 -13
  98. package/dist/{chunk-EOMDWPLU.js → chunk-MO3OLSMS.js} +5 -5
  99. package/dist/{chunk-RG3REA2Y.js → chunk-N2WDRRZ6.js} +1 -1
  100. package/dist/{chunk-UC56EZPU.js → chunk-OSFGUQ5T.js} +6 -6
  101. package/dist/{chunk-W7OEJNMQ.js → chunk-OW5W6MUS.js} +3 -3
  102. package/dist/{chunk-U4DHOTAK.js → chunk-OYENLHOW.js} +8 -8
  103. package/dist/{chunk-ZVNIVZKH.js → chunk-PIMYERMF.js} +4 -4
  104. package/dist/{chunk-CFPJRYNK.js → chunk-PPMJLQE4.js} +1 -1
  105. package/dist/{chunk-Z2GHBFXB.js → chunk-QBGD7AMY.js} +4 -4
  106. package/dist/{chunk-KNCMUCKG.js → chunk-RCH44MPG.js} +1 -1
  107. package/dist/{chunk-QSVIT62Y.js → chunk-RGF2NLD6.js} +1 -1
  108. package/dist/{chunk-QZZU4VHH.js → chunk-RSD4ELVG.js} +1 -1
  109. package/dist/{chunk-SH2WBJ5M.js → chunk-RZZMRVMQ.js} +1 -1
  110. package/dist/{chunk-SXMJ7NAN.js → chunk-SAVZ5Z4D.js} +1 -1
  111. package/dist/{chunk-HTMMJASM.js → chunk-SKF756UZ.js} +7 -1
  112. package/dist/{chunk-5JRBOJYW.js → chunk-SNLCRVKY.js} +1 -1
  113. package/dist/{chunk-MX6HK3UN.js → chunk-SOKDEHPF.js} +3 -3
  114. package/dist/{chunk-HNSTXU6Y.js → chunk-T2TP654U.js} +1 -1
  115. package/dist/{chunk-DISUP6T3.js → chunk-TD7ORJV6.js} +5 -5
  116. package/dist/{chunk-B4GSS6UW.js → chunk-TKCHBHGG.js} +6 -6
  117. package/dist/{chunk-JZOXTGTD.js → chunk-TV3LGIXZ.js} +3 -3
  118. package/dist/{chunk-RYT23NAI.js → chunk-UYNG4ZA2.js} +3 -3
  119. package/dist/{chunk-X6DBORWU.js → chunk-W2B4DX6C.js} +2 -2
  120. package/dist/{chunk-T3JIFRZW.js → chunk-WHHWEAKZ.js} +5 -5
  121. package/dist/{chunk-7QMNQT64.js → chunk-XR4SSTI3.js} +6 -6
  122. package/dist/{chunk-EAUVJCVF.js → chunk-XYZQSM5D.js} +12 -12
  123. package/dist/{chunk-7BTNS54A.js → chunk-YEGXF22Y.js} +56 -49
  124. package/dist/{chunk-B4J3OPKE.js → chunk-YJM7AYIC.js} +2 -2
  125. package/dist/{chunk-BXABKD25.js → chunk-YMKJCLTM.js} +4 -4
  126. package/dist/{chunk-66JDRFIJ.js → chunk-ZAA7ZLWZ.js} +2 -2
  127. package/dist/{chunk-ZERUCHT6.js → chunk-ZCJNOWRE.js} +4 -4
  128. package/dist/{chunk-AORWV5JK.js → chunk-ZKNYYECF.js} +1 -1
  129. package/dist/{chunk-UFJYOMYO.js → chunk-ZLCPGNER.js} +4 -4
  130. package/dist/{codex-app-cards-switch-DSGF2RO7.js → codex-app-cards-switch-2RZDQQ5C.js} +11 -11
  131. package/dist/{codex-card-routing-7NYNHVLU.js → codex-card-routing-7SP5X7ZS.js} +2 -2
  132. package/dist/{codex-desktop-launch-DWA3ET37.js → codex-desktop-launch-UBG7MJZP.js} +1 -1
  133. package/dist/{codex-session-launch-QXGOMDP5.js → codex-session-launch-CI33RDUH.js} +20 -20
  134. package/dist/{config-NJ6EGXZF.js → config-6UU25ZQI.js} +3 -3
  135. package/dist/{global-upgrade-QTCISU4G.js → global-upgrade-IW5QJMMK.js} +9 -9
  136. package/dist/{identity-CJAHB4I3.js → identity-AR4DUN5E.js} +4 -4
  137. package/dist/{live-capabilities-UMETUHH3.js → live-capabilities-7APA37BP.js} +4 -4
  138. package/dist/{paths-QIQFTXCS.js → paths-DHZJMCMF.js} +3 -3
  139. package/dist/reapply-6QKXO622.js +75 -0
  140. package/dist/src/index.js +35 -35
  141. package/dist/{upgrade-lock-K5J7ZDHT.js → upgrade-lock-ZWF5JATD.js} +4 -4
  142. package/dist/{usage-NEZ2357Z.js → usage-GTYLNJHN.js} +3 -3
  143. package/package.json +1 -1
  144. package/dist/reapply-QYKTRBVN.js +0 -75
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-UC56EZPU.js";
3
+ } from "./chunk-OSFGUQ5T.js";
4
4
  import {
5
5
  matchMacAccountStep,
6
6
  retryAgentCommand
7
- } from "./chunk-SZ2HXE6F.js";
7
+ } from "./chunk-ENJNYH35.js";
8
8
  import {
9
9
  canChangeApprovalSettings
10
- } from "./chunk-6H4WJILH.js";
10
+ } from "./chunk-JQ2NEH5X.js";
11
11
  import {
12
12
  NPX_LATEST_COMMAND,
13
13
  npmExecSetupCommandFor
14
- } from "./chunk-SCZELAXA.js";
14
+ } from "./chunk-GZWP4LIJ.js";
15
15
  import {
16
16
  EXIT
17
17
  } from "./chunk-BG4HHB7E.js";
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  compatibleProfileFor,
23
23
  isCompatibleAgentType
24
- } from "./chunk-HTMMJASM.js";
24
+ } from "./chunk-SKF756UZ.js";
25
25
 
26
26
  // src/setup/closing.ts
27
27
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serviceNodeFor
3
- } from "./chunk-AU3PCXV3.js";
3
+ } from "./chunk-GWJ5WHO6.js";
4
4
  import {
5
5
  OWNER_ONLY_FILE_MODE,
6
6
  readOwnerOnlyJson
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  plannedGlobalPackage,
10
10
  readGlobalPrefix
11
- } from "./chunk-Z2GHBFXB.js";
11
+ } from "./chunk-QBGD7AMY.js";
12
12
  import {
13
13
  globalTranscriptRegisterEntry
14
14
  } from "./chunk-CXQWDQCJ.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  projectNameFor
3
- } from "./chunk-5JRBOJYW.js";
3
+ } from "./chunk-SNLCRVKY.js";
4
4
  import {
5
5
  readConfigFileKey
6
- } from "./chunk-RYT23NAI.js";
6
+ } from "./chunk-UYNG4ZA2.js";
7
7
 
8
8
  // src/bell/fleet.ts
9
9
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-X6DBORWU.js";
3
+ } from "./chunk-W2B4DX6C.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-TCE3J44Z.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-Z2GHBFXB.js";
15
+ } from "./chunk-QBGD7AMY.js";
16
16
  import {
17
17
  AGENTS,
18
18
  CLAUDE_BRIDGE_CAPABILITY,
@@ -25,7 +25,7 @@ import {
25
25
  OPENCODE_BRIDGE_CAPABILITY,
26
26
  SPAWN_CAPABILITY,
27
27
  sessionProvidersAdvertisedBy
28
- } from "./chunk-HTMMJASM.js";
28
+ } from "./chunk-SKF756UZ.js";
29
29
 
30
30
  // src/live-capabilities.ts
31
31
  import { execFileSync } from "child_process";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-4FBETQHZ.js";
3
+ } from "./chunk-INO42IRS.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-RG3REA2Y.js";
6
+ } from "./chunk-N2WDRRZ6.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-HTMMJASM.js";
16
+ } from "./chunk-SKF756UZ.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-FBFAOF2S.js";
3
+ } from "./chunk-AWZQOCR6.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-PM2NRK6Y.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-HTMMJASM.js";
9
+ } from "./chunk-SKF756UZ.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-XMEOARX4.js";
6
+ } from "./chunk-6I6IQNF3.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-YYYHTH3C.js";
9
+ } from "./chunk-M4IZVJJI.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,12 +18,12 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-YYPGDGXG.js";
21
+ } from "./chunk-GEDCHWRX.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-FBFAOF2S.js";
26
+ } from "./chunk-AWZQOCR6.js";
27
27
  import {
28
28
  describeReleaseNpmHolds,
29
29
  execNpm,
@@ -33,10 +33,10 @@ import {
33
33
  npmExitedOnReleaseAge,
34
34
  readGlobalCliInstallAt,
35
35
  readGlobalPrefix
36
- } from "./chunk-Z2GHBFXB.js";
36
+ } from "./chunk-QBGD7AMY.js";
37
37
  import {
38
38
  NPX_LATEST_COMMAND
39
- } from "./chunk-SCZELAXA.js";
39
+ } from "./chunk-GZWP4LIJ.js";
40
40
  import {
41
41
  EXIT
42
42
  } from "./chunk-BG4HHB7E.js";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-AU3PCXV3.js";
6
+ } from "./chunk-GWJ5WHO6.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-X6PSPWE3.js";
9
+ } from "./chunk-JHX4RY7J.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-HS4RZZRG.js";
12
+ } from "./chunk-I7OZFD4V.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  changedRecipientsMessage,
@@ -24,7 +24,7 @@ import {
24
24
  uploadTranscriptRecords,
25
25
  verifyAnchoredRecipients,
26
26
  wrapSessionKey
27
- } from "./chunk-MX6HK3UN.js";
27
+ } from "./chunk-SOKDEHPF.js";
28
28
  import {
29
29
  external_exports,
30
30
  ownedOnlyByThisUser,
@@ -33,22 +33,22 @@ import {
33
33
  import {
34
34
  transcriptEnvironmentPreference,
35
35
  transcriptsEnabled
36
- } from "./chunk-KNCMUCKG.js";
36
+ } from "./chunk-RCH44MPG.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-322DR4ZT.js";
39
+ } from "./chunk-7EWQNCKU.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-RYT23NAI.js";
42
+ } from "./chunk-UYNG4ZA2.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-FBFAOF2S.js";
47
+ } from "./chunk-AWZQOCR6.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-RG3REA2Y.js";
51
+ } from "./chunk-N2WDRRZ6.js";
52
52
  import {
53
53
  writeJsonAtomic,
54
54
  writeJsonAtomicDurable
@@ -57,10 +57,11 @@ import {
57
57
  PENDING_COMMAND_PREFIX,
58
58
  SESSION_HISTORY_BACKFILL_LIMIT_BYTES,
59
59
  canonicalJsonText,
60
+ isHermesVisibleContent,
60
61
  isHookSource,
61
62
  isRecord,
62
63
  redactSecretsFromContent
63
- } from "./chunk-HTMMJASM.js";
64
+ } from "./chunk-SKF756UZ.js";
64
65
 
65
66
  // src/transcript-registration.ts
66
67
  import { createHash as createHash4 } from "crypto";
@@ -506,7 +507,7 @@ var parseCursorSnapshot = (text) => {
506
507
  return messages;
507
508
  };
508
509
  var historyBlock = external_exports.discriminatedUnion("type", [
509
- external_exports.object({ type: external_exports.literal("text"), text: external_exports.string() }),
510
+ external_exports.object({ type: external_exports.literal("text"), text: external_exports.string(), visibility: external_exports.string().optional() }),
510
511
  external_exports.object({ type: external_exports.literal("tool_use"), id: identity, name: external_exports.string(), input: external_exports.record(external_exports.string(), external_exports.unknown()) }),
511
512
  external_exports.object({ type: external_exports.literal("tool_result"), tool_use_id: identity, content: external_exports.unknown(), is_error: external_exports.boolean().optional() })
512
513
  ]);
@@ -516,7 +517,7 @@ var hermesSnapshot = external_exports.object({
516
517
  completed: external_exports.boolean().default(false),
517
518
  updatedAtMs: external_exports.number().int().positive(),
518
519
  error: external_exports.string().optional(),
519
- messages: external_exports.array(external_exports.object({ id: identity, role: external_exports.enum(["user", "assistant"]), timestamp, content: external_exports.array(historyBlock) })).max(5e3)
520
+ messages: external_exports.array(external_exports.object({ id: identity, role: external_exports.enum(["user", "assistant"]), timestamp, content: external_exports.array(historyBlock) })).max(25e3)
520
521
  });
521
522
  var TranscriptSourceUnavailable = class extends Error {
522
523
  };
@@ -524,6 +525,7 @@ var parseHermesSnapshot = (text, sessionId, nowMs) => {
524
525
  const snapshot = hermesSnapshot.parse(JSON.parse(text));
525
526
  if (snapshot.sessionId !== sessionId) throw new Error("Hermes history identity mismatch");
526
527
  if (snapshot.error || !snapshot.completed && nowMs - snapshot.updatedAtMs > 18e4 || snapshot.updatedAtMs > nowMs + 5e3) throw new TranscriptSourceUnavailable("Hermes history exporter is unavailable");
528
+ if (!snapshot.messages.every((message) => isHermesVisibleContent(message.content))) throw new TranscriptSourceUnavailable("Reopen Hermes to refresh its display history");
527
529
  return snapshot.messages;
528
530
  };
529
531
 
@@ -795,6 +797,12 @@ var appendOnlyReader = (path, source, epoch) => ({
795
797
  var UNCHANGED_SNAPSHOT_REREAD_MS = 6e4;
796
798
  var caughtUpReadStillCurrent = (caughtUp, version, nowMs) => caughtUp !== null && caughtUp.version === version && nowMs >= caughtUp.atMs && nowMs - caughtUp.atMs < UNCHANGED_SNAPSHOT_REREAD_MS;
797
799
  var UNCHANGED_SNAPSHOT_READ = { lines: [], acknowledge: () => "unchanged" };
800
+ var isVisibleHermesRevision = (line) => {
801
+ const record = JSON.parse(line);
802
+ if (!isRecord(record) || !isRecord(record.historySource)) return false;
803
+ if (record.historySource.removed === true) return !("historyMessage" in record);
804
+ return isRecord(record.historyMessage) && isHermesVisibleContent(record.historyMessage.content);
805
+ };
798
806
  var snapshotReader = (options, source) => {
799
807
  const { path, epoch } = options;
800
808
  const binding = createHash3("sha256").update(JSON.stringify([options.baseUrl, options.apiKey, options.machineId, options.sessionId, source, path])).digest("hex");
@@ -813,7 +821,7 @@ var snapshotReader = (options, source) => {
813
821
  if (version !== null && caughtUpReadStillCurrent(caughtUp, version, nowMs)) return UNCHANGED_SNAPSHOT_READ;
814
822
  const lines = pending ?? checkpoint.prepare(readTranscriptSnapshot(path, source, options.sessionId), oldestMessage, nowMs);
815
823
  return {
816
- lines,
824
+ lines: source === "hermes" && pending !== null ? lines.filter(isVisibleHermesRevision) : lines,
817
825
  acknowledge() {
818
826
  checkpoint.settle();
819
827
  const progress = version === null || sourceVersion(path) !== version ? "more" : "caught_up";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-SZ2HXE6F.js";
7
+ } from "./chunk-ENJNYH35.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-WW4M6BTR.js";
10
+ } from "./chunk-5FBSXFYN.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-RYT23NAI.js";
13
+ } from "./chunk-UYNG4ZA2.js";
14
14
  import {
15
15
  CLINE_SERVER_NAME_TAKEN,
16
16
  CLINE_SETTINGS_REFUSALS,
@@ -32,10 +32,10 @@ import {
32
32
  withClinePusharyServer,
33
33
  withRefreshedClineKey,
34
34
  withoutClinePusharyServer
35
- } from "./chunk-FBFAOF2S.js";
35
+ } from "./chunk-AWZQOCR6.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-Z2GHBFXB.js";
38
+ } from "./chunk-QBGD7AMY.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-SCZELAXA.js";
3
+ } from "./chunk-GZWP4LIJ.js";
4
4
 
5
5
  // src/config.ts
6
6
  import { readFileSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  APPROVAL_RULES_PATH,
3
3
  canChangeApprovalSettings
4
- } from "./chunk-6H4WJILH.js";
4
+ } from "./chunk-JQ2NEH5X.js";
5
5
  import {
6
6
  callMcpTool
7
- } from "./chunk-XVKT6YXA.js";
7
+ } from "./chunk-2KIAN6EN.js";
8
8
  import {
9
9
  absoluteUrl
10
- } from "./chunk-2DIEYUSU.js";
10
+ } from "./chunk-JR4MBD37.js";
11
11
  import {
12
12
  getBaseUrl
13
- } from "./chunk-RG3REA2Y.js";
13
+ } from "./chunk-N2WDRRZ6.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-SCZELAXA.js";
16
+ } from "./chunk-GZWP4LIJ.js";
17
17
  import {
18
18
  AGENT_STOP_DEFAULT_SECONDS,
19
19
  APPROVAL_MODE_META,
@@ -21,7 +21,7 @@ import {
21
21
  classifyConfirmResponse,
22
22
  isAnswerSource,
23
23
  roundTripAsk
24
- } from "./chunk-HTMMJASM.js";
24
+ } from "./chunk-SKF756UZ.js";
25
25
 
26
26
  // src/reach.ts
27
27
  var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
536
536
  };
537
537
 
538
538
  // src/codex-desktop-proxy.ts
539
- var loadThePhone = () => import("./api-6QQE4PNY.js");
540
- var loadTheCardRouting = () => import("./codex-card-routing-7NYNHVLU.js");
539
+ var loadThePhone = () => import("./api-ZNUDZZKE.js");
540
+ var loadTheCardRouting = () => import("./codex-card-routing-7SP5X7ZS.js");
541
541
  var theFirstCardLoadsAgain = () => {
542
542
  };
543
543
  var ASKS_WITHOUT_ROUTING = {};
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1097
1097
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1098
1098
  }
1099
1099
  if (args[0] === APP_CARDS_FLAG) {
1100
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-DSGF2RO7.js");
1100
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-2RZDQQ5C.js");
1101
1101
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1102
1102
  }
1103
1103
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -6,17 +6,17 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-QZZU4VHH.js";
9
+ } from "./chunk-RSD4ELVG.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-RMNOELSS.js";
13
+ } from "./chunk-HRT6HCJV.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-NJI4OAS2.js";
19
+ } from "./chunk-MGU4BYQD.js";
20
20
  import {
21
21
  spawnClaude
22
22
  } from "./chunk-3PSNUHC5.js";
@@ -26,18 +26,18 @@ import {
26
26
  isWaitForAnswerResponse,
27
27
  withdrawQuestion,
28
28
  writeDegraded
29
- } from "./chunk-B4GSS6UW.js";
29
+ } from "./chunk-TKCHBHGG.js";
30
30
  import {
31
31
  readCommandAck
32
- } from "./chunk-QSVIT62Y.js";
32
+ } from "./chunk-RGF2NLD6.js";
33
33
  import {
34
34
  callMcpTool,
35
35
  isRetryable
36
- } from "./chunk-XVKT6YXA.js";
36
+ } from "./chunk-2KIAN6EN.js";
37
37
  import {
38
38
  projectNameFor,
39
39
  repositoryScopeFor
40
- } from "./chunk-5JRBOJYW.js";
40
+ } from "./chunk-SNLCRVKY.js";
41
41
  import {
42
42
  AGENT_QUESTION_DESCRIPTION_MAX,
43
43
  AGENT_QUESTION_HEADER_MAX,
@@ -58,7 +58,7 @@ import {
58
58
  parseCodexQuestions,
59
59
  planElicitationAsk,
60
60
  readElicitationFields
61
- } from "./chunk-HTMMJASM.js";
61
+ } from "./chunk-SKF756UZ.js";
62
62
 
63
63
  // src/codex-question-owner.ts
64
64
  import { createHash } from "crypto";
@@ -4,21 +4,21 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-EAUVJCVF.js";
7
+ } from "./chunk-XYZQSM5D.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-HS4RZZRG.js";
11
+ } from "./chunk-I7OZFD4V.js";
12
12
  import {
13
13
  projectNameFor
14
- } from "./chunk-5JRBOJYW.js";
14
+ } from "./chunk-SNLCRVKY.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-HTMMJASM.js";
21
+ } from "./chunk-SKF756UZ.js";
22
22
 
23
23
  // src/machine-decision-audit.ts
24
24
  var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-HTMMJASM.js";
3
+ } from "./chunk-SKF756UZ.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-CXQWDQCJ.js";
20
20
  import {
21
21
  redactSecretsFromContent
22
- } from "./chunk-HTMMJASM.js";
22
+ } from "./chunk-SKF756UZ.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-QTCISU4G.js");
604
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-K5J7ZDHT.js");
605
- const { autoUpdateLock } = await import("./paths-QIQFTXCS.js");
603
+ const { withUpgradeLock } = await import("./global-upgrade-IW5QJMMK.js");
604
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-ZWF5JATD.js");
605
+ const { autoUpdateLock } = await import("./paths-DHZJMCMF.js");
606
606
  let result = "skipped";
607
607
  const install = async () => {
608
608
  const planned = readPlannedSetupInstall(process.platform);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-RYT23NAI.js";
3
+ } from "./chunk-UYNG4ZA2.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-HTMMJASM.js";
3
+ } from "./chunk-SKF756UZ.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -10,7 +10,7 @@ import {
10
10
  uploadTranscriptRecords,
11
11
  verifyAnchoredRecipients,
12
12
  wrapSessionKey
13
- } from "./chunk-MX6HK3UN.js";
13
+ } from "./chunk-SOKDEHPF.js";
14
14
 
15
15
  // src/live-session.ts
16
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-HTMMJASM.js";
5
+ } from "./chunk-SKF756UZ.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-PGGYS32J.js";
9
+ } from "./chunk-ICDROWLR.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -4070,6 +4070,10 @@ var ANSWER_DRAFT_TTL_MS = 24 * 60 * 60 * 1e3;
4070
4070
  // ../contracts/src/session-history.ts
4071
4071
  var SESSION_HISTORY_BACKFILL_LIMIT_BYTES = 2e7;
4072
4072
 
4073
+ // ../contracts/src/transcript-projection.ts
4074
+ var HERMES_VISIBLE_TEXT = "hermes-visible-text-v1";
4075
+ var isHermesVisibleContent = (content) => Array.isArray(content) && content.length > 0 && content.every((block) => block?.type === "text" && typeof block.text === "string" && block.visibility === HERMES_VISIBLE_TEXT);
4076
+
4073
4077
  // ../contracts/src/decision-lifetime.ts
4074
4078
  var DECISION_REMINDER_DELAY_MS = 10 * 60 * 1e3;
4075
4079
  var DECISION_CACHE_TTL_SECONDS = 10 * 60;
@@ -9398,7 +9402,8 @@ var FILE_EDIT_TOOLS = /* @__PURE__ */ new Set([
9398
9402
  "NotebookEdit"
9399
9403
  ]);
9400
9404
  var TOOL_PATH_MAX_LENGTH = 4096;
9401
- var isAskableToolPath = (path) => path.startsWith("/") && path.length <= TOOL_PATH_MAX_LENGTH;
9405
+ var ABSOLUTE_TOOL_PATH_PREFIX = /^(?:\/|[A-Za-z]:[\\/])/;
9406
+ var isAskableToolPath = (path) => ABSOLUTE_TOOL_PATH_PREFIX.test(path) && path.length <= TOOL_PATH_MAX_LENGTH;
9402
9407
  var askableToolPathOf = (toolName, toolInput) => {
9403
9408
  if (!FILE_EDIT_TOOLS.has(toolName)) return void 0;
9404
9409
  const path = extractPolicyArg(toolName, toolInput);
@@ -10489,6 +10494,7 @@ export {
10489
10494
  CALL_REFUSED_EVENT,
10490
10495
  callRefusalReasonWhenUnanswered,
10491
10496
  SESSION_HISTORY_BACKFILL_LIMIT_BYTES,
10497
+ isHermesVisibleContent,
10492
10498
  PERSONAL_QUESTION_CAPABILITY,
10493
10499
  isQuestionOwner,
10494
10500
  CODEX_SHELL_COMMAND_FLAGS,
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-HTMMJASM.js";
5
+ } from "./chunk-SKF756UZ.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-322DR4ZT.js";
7
+ } from "./chunk-7EWQNCKU.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-RG3REA2Y.js";
10
+ } from "./chunk-N2WDRRZ6.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-HTMMJASM.js";
18
+ } from "./chunk-SKF756UZ.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-HTMMJASM.js";
3
+ } from "./chunk-SKF756UZ.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-UFJYOMYO.js";
8
+ } from "./chunk-ZLCPGNER.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-6H4WJILH.js";
11
+ } from "./chunk-JQ2NEH5X.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-2DIEYUSU.js";
14
+ } from "./chunk-JR4MBD37.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-RYT23NAI.js";
24
+ } from "./chunk-UYNG4ZA2.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-HTMMJASM.js";
27
+ } from "./chunk-SKF756UZ.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {