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
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-XVKT6YXA.js";
11
+ } from "./chunk-2KIAN6EN.js";
12
12
  import {
13
13
  fetchAsCredential
14
- } from "./chunk-322DR4ZT.js";
14
+ } from "./chunk-7EWQNCKU.js";
15
15
  import {
16
16
  installNetworkDefaults,
17
17
  isNetworkFailure
18
- } from "./chunk-RAB3PLLF.js";
18
+ } from "./chunk-M4YANMMV.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-FBFAOF2S.js";
21
+ } from "./chunk-AWZQOCR6.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-RG3REA2Y.js";
25
+ } from "./chunk-N2WDRRZ6.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -37,7 +37,7 @@ import {
37
37
  isRecord,
38
38
  truncateLine,
39
39
  waitEndAnswered
40
- } from "./chunk-HTMMJASM.js";
40
+ } from "./chunk-SKF756UZ.js";
41
41
 
42
42
  // src/api.ts
43
43
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-AORWV5JK.js";
3
+ } from "./chunk-ZKNYYECF.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-BZIBNSQE.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-CINBAX5G.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-SCZELAXA.js";
12
+ } from "./chunk-GZWP4LIJ.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-HTMMJASM.js";
20
+ } from "./chunk-SKF756UZ.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-B4J3OPKE.js";
3
+ } from "./chunk-YJM7AYIC.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-RG3REA2Y.js";
6
+ } from "./chunk-N2WDRRZ6.js";
7
7
  import {
8
8
  backupFile,
9
9
  backupFileInto,
@@ -15,7 +15,7 @@ import {
15
15
  API_KEY_PREFIX_PATTERN,
16
16
  isRecord,
17
17
  isValidApiKey
18
- } from "./chunk-HTMMJASM.js";
18
+ } from "./chunk-SKF756UZ.js";
19
19
 
20
20
  // src/shell-alias.ts
21
21
  import { homedir } from "os";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TCE3J44Z.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-Z2GHBFXB.js";
6
+ } from "./chunk-QBGD7AMY.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-HTMMJASM.js";
9
+ } from "./chunk-SKF756UZ.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -3,24 +3,24 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-YYYHTH3C.js";
6
+ } from "./chunk-M4IZVJJI.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-AU3PCXV3.js";
13
+ } from "./chunk-GWJ5WHO6.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-4FBETQHZ.js";
16
+ } from "./chunk-INO42IRS.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeySource
20
- } from "./chunk-RYT23NAI.js";
20
+ } from "./chunk-UYNG4ZA2.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-RG3REA2Y.js";
23
+ } from "./chunk-N2WDRRZ6.js";
24
24
  import {
25
25
  getPackageVersion
26
26
  } from "./chunk-CXQWDQCJ.js";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-UC56EZPU.js";
17
+ } from "./chunk-OSFGUQ5T.js";
18
18
  import {
19
19
  describeRevokeAttempt,
20
20
  keyNoLongerAccepted,
@@ -29,20 +29,20 @@ import {
29
29
  isCI,
30
30
  terminalColumns,
31
31
  useColor
32
- } from "./chunk-PTHC2H7E.js";
32
+ } from "./chunk-6C7M27NR.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-2DIEYUSU.js";
35
+ } from "./chunk-JR4MBD37.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-B4J3OPKE.js";
38
+ } from "./chunk-YJM7AYIC.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-SCZELAXA.js";
41
+ } from "./chunk-GZWP4LIJ.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-HTMMJASM.js";
45
+ } from "./chunk-SKF756UZ.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -27,7 +27,7 @@ import {
27
27
  toolResultErrorText,
28
28
  transcriptTokensIn,
29
29
  transcriptUsageRequest
30
- } from "./chunk-HS4RZZRG.js";
30
+ } from "./chunk-I7OZFD4V.js";
31
31
  import {
32
32
  cancelQuestion,
33
33
  clientErrorKindOf,
@@ -36,44 +36,44 @@ import {
36
36
  sendNotification,
37
37
  waitForAnswer,
38
38
  writeDegraded
39
- } from "./chunk-B4GSS6UW.js";
39
+ } from "./chunk-TKCHBHGG.js";
40
40
  import {
41
41
  RETRY_ACK,
42
42
  readCommandAck,
43
43
  refusedReceiptMessage
44
- } from "./chunk-QSVIT62Y.js";
44
+ } from "./chunk-RGF2NLD6.js";
45
45
  import {
46
46
  isRetryable,
47
47
  withRetry
48
- } from "./chunk-XVKT6YXA.js";
48
+ } from "./chunk-2KIAN6EN.js";
49
49
  import {
50
50
  fetchAsCredential
51
- } from "./chunk-322DR4ZT.js";
51
+ } from "./chunk-7EWQNCKU.js";
52
52
  import {
53
53
  branchFor,
54
54
  projectNameFor,
55
55
  repoKeyFor
56
- } from "./chunk-5JRBOJYW.js";
56
+ } from "./chunk-SNLCRVKY.js";
57
57
  import {
58
58
  getMachineId
59
- } from "./chunk-4FBETQHZ.js";
59
+ } from "./chunk-INO42IRS.js";
60
60
  import {
61
61
  reportedInstallSource
62
- } from "./chunk-B4J3OPKE.js";
62
+ } from "./chunk-YJM7AYIC.js";
63
63
  import {
64
64
  IDLE_PROMPT_NOTIFICATION,
65
65
  NOTIFICATION_PUSH_TYPES,
66
66
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
67
67
  claudeConfigDir
68
- } from "./chunk-FBFAOF2S.js";
68
+ } from "./chunk-AWZQOCR6.js";
69
69
  import {
70
70
  compareVersion,
71
71
  parseVersion
72
- } from "./chunk-Z2GHBFXB.js";
72
+ } from "./chunk-QBGD7AMY.js";
73
73
  import {
74
74
  getApiKey,
75
75
  getBaseUrl
76
- } from "./chunk-RG3REA2Y.js";
76
+ } from "./chunk-N2WDRRZ6.js";
77
77
  import {
78
78
  writeFileAtomic,
79
79
  writeJsonAtomicDurable
@@ -108,7 +108,7 @@ import {
108
108
  resolveAutoResolveOrigin,
109
109
  resolvePolicy,
110
110
  unansweredRefusalReason
111
- } from "./chunk-HTMMJASM.js";
111
+ } from "./chunk-SKF756UZ.js";
112
112
 
113
113
  // src/pending.ts
114
114
  import { join } from "path";
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-MM3ZPQZV.js";
16
+ } from "./chunk-CSQJRT35.js";
17
17
  import {
18
18
  needsShell
19
19
  } from "./chunk-3PSNUHC5.js";
@@ -25,10 +25,10 @@ import {
25
25
  openClawDirectoriesToLookIn,
26
26
  openClawPluginFolder,
27
27
  openClawSetupReceiptDirectory
28
- } from "./chunk-FBFAOF2S.js";
28
+ } from "./chunk-AWZQOCR6.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-Z2GHBFXB.js";
31
+ } from "./chunk-QBGD7AMY.js";
32
32
  import {
33
33
  readJsonSafe,
34
34
  writeJsonAtomic
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-CXQWDQCJ.js";
40
40
  import {
41
41
  isRecord
42
- } from "./chunk-HTMMJASM.js";
42
+ } from "./chunk-SKF756UZ.js";
43
43
 
44
44
  // src/hermes/plugin-payload.ts
45
45
  import { createHash } from "crypto";
@@ -1341,7 +1341,7 @@ def _await_decision(request, created, correlation_id: str, offered, uses_select:
1341
1341
  return _decided(request, correlation_id, "deny", None)
1342
1342
  ` },
1343
1343
  { path: "cancellation.py", contents: 'from __future__ import annotations\n\nfrom typing import Literal, Mapping, Tuple\n\nCancellation = Literal[\n "withdrawn_by_this_call",\n "cancelled_unproven",\n "already_cancelled",\n "not_pending",\n "unreachable",\n]\n\nWITHDRAWN_BY_THIS_CALL: Cancellation = "withdrawn_by_this_call"\nCANCELLED_UNPROVEN: Cancellation = "cancelled_unproven"\nALREADY_CANCELLED: Cancellation = "already_cancelled"\nNOT_PENDING: Cancellation = "not_pending"\nUNREACHABLE: Cancellation = "unreachable"\nCANCELLATIONS: Tuple[Cancellation, ...] = (\n WITHDRAWN_BY_THIS_CALL,\n CANCELLED_UNPROVEN,\n ALREADY_CANCELLED,\n NOT_PENDING,\n UNREACHABLE,\n)\n\nUNAVAILABLE_STATUS = "unavailable"\nSTOP_HANDOFF = "stop"\n\n\ndef classify_cancellation(response: object) -> Cancellation:\n if not isinstance(response, Mapping):\n return UNREACHABLE\n fields: Mapping[object, object] = response\n cancelled = fields.get("cancelled")\n by_this_call = fields.get("cancelledByThisCall")\n if (\n not isinstance(cancelled, bool)\n or fields.get("status") == UNAVAILABLE_STATUS\n or fields.get("handoffAction") == STOP_HANDOFF\n or (by_this_call is not None and not isinstance(by_this_call, bool))\n or (by_this_call is True and not cancelled)\n ):\n return UNREACHABLE\n if not cancelled:\n return NOT_PENDING\n if by_this_call is None:\n return CANCELLED_UNPROVEN\n return WITHDRAWN_BY_THIS_CALL if by_this_call else ALREADY_CANCELLED\n' },
1344
- { path: "dashboard/manifest.json", contents: '{\n "name": "pushary",\n "label": "Pushary",\n "description": "Approvals Pushary is carrying to your phone, answerable from Hermes Desktop",\n "version": "1.0.6",\n "tab": { "hidden": true },\n "entry": "web.js",\n "api": "plugin_api.py"\n}\n' },
1344
+ { path: "dashboard/manifest.json", contents: '{\n "name": "pushary",\n "label": "Pushary",\n "description": "Approvals Pushary is carrying to your phone, answerable from Hermes Desktop",\n "version": "1.0.7",\n "tab": { "hidden": true },\n "entry": "web.js",\n "api": "plugin_api.py"\n}\n' },
1345
1345
  { path: "dashboard/plugin_api.py", contents: `import importlib
1346
1346
  import sys
1347
1347
  import time
@@ -1604,6 +1604,7 @@ import subprocess
1604
1604
  import tempfile
1605
1605
  import threading
1606
1606
  import time
1607
+ from collections.abc import Sequence
1607
1608
  from datetime import datetime, timezone
1608
1609
  from pathlib import Path, PureWindowsPath
1609
1610
  from typing import NamedTuple
@@ -1611,8 +1612,9 @@ from typing import NamedTuple
1611
1612
  from . import api
1612
1613
 
1613
1614
  logger = logging.getLogger(__name__)
1614
- MAX_MESSAGES = 5000
1615
- MAX_SOURCE_BYTES = 20_000_000
1615
+ MAX_DATABASE_ROWS = 25_000
1616
+ MAX_DATABASE_BYTES = 64_000_000
1617
+ MAX_SOURCE_BYTES = 64_000_000
1616
1618
  POLL_SECONDS = 5
1617
1619
  SNAPSHOT_REFRESH_SECONDS = 60
1618
1620
  AUTHORIZATION_LIFETIME_SECONDS = 60
@@ -1650,44 +1652,38 @@ _next_prune_at = 0.0
1650
1652
  _history_not_allowed_reported = False
1651
1653
 
1652
1654
 
1653
- def _text_blocks(content: object) -> list[dict[str, object]]:
1655
+ def _visible_text(content: object, role: str) -> list[dict[str, str]]:
1656
+ from agent.agent_runtime_helpers import strip_think_blocks
1657
+ from agent.memory_context import fence_recalled_context
1658
+ from agent.redact import redact_for_egress
1659
+
1654
1660
  if isinstance(content, str):
1655
- return [{"type": "text", "text": content}]
1656
- if not isinstance(content, list):
1661
+ parts = [content]
1662
+ elif isinstance(content, list):
1663
+ parts = [block["text"] for block in content if isinstance(block, dict)
1664
+ and block.get("type") in ("text", "input_text", "output_text")
1665
+ and not block.get("thought") and isinstance(block.get("text"), str)]
1666
+ else:
1657
1667
  return []
1658
- return [{"type": "text", "text": block["text"]} for block in content
1659
- if isinstance(block, dict) and block.get("type") in ("text", "input_text", "output_text")
1660
- and isinstance(block.get("text"), str)]
1661
-
1662
-
1663
- def _tool_blocks(calls: object) -> list[dict[str, object]]:
1664
- blocks = []
1665
- if not isinstance(calls, list):
1666
- return blocks
1667
- for call in calls:
1668
- if not isinstance(call, dict) or not isinstance(call.get("id"), str):
1669
- continue
1670
- function = call.get("function")
1671
- if not isinstance(function, dict) or not isinstance(function.get("name"), str):
1672
- continue
1673
- arguments = function.get("arguments", {})
1674
- if isinstance(arguments, str):
1675
- arguments = json.loads(arguments)
1676
- if not isinstance(arguments, dict):
1677
- raise ValueError("Invalid Hermes tool arguments")
1678
- blocks.append({"type": "tool_use", "id": call["id"], "name": function["name"], "input": arguments})
1679
- return blocks
1668
+ text = "\\n".join(parts)
1669
+ if role == "assistant":
1670
+ text = fence_recalled_context(strip_think_blocks(None, text))
1671
+ if not text.strip() or text.lstrip().startswith("[System:"):
1672
+ return []
1673
+ return [{"type": "text", "text": redact_for_egress(text, urls=True), "visibility": "hermes-visible-text-v1"}]
1680
1674
 
1681
1675
 
1682
- def normalize_messages(rows: list[object]) -> list[dict[str, object]]:
1676
+ def normalize_messages(rows: Sequence[object]) -> list[dict[str, object]]:
1683
1677
  messages = []
1684
1678
  for row in rows:
1685
1679
  if not isinstance(row, dict):
1686
1680
  raise ValueError("Invalid Hermes message")
1687
- if not (row.get("active") or row.get("compacted")) or row.get("display_kind") in ("hidden", "model_only"):
1681
+ if not (row.get("active") or row.get("compacted")):
1688
1682
  continue
1689
- role = row.get("role")
1690
- if role not in ("user", "assistant", "tool") or row.get("_compressed_summary"):
1683
+ if row.get("role") not in ("user", "assistant"):
1684
+ continue
1685
+ metadata = row.get("display_metadata")
1686
+ if metadata and (not isinstance(metadata, dict) or metadata.get("model_only")):
1691
1687
  continue
1692
1688
  identity = row.get("id")
1693
1689
  stamp = row.get("timestamp")
@@ -1695,16 +1691,24 @@ def normalize_messages(rows: list[object]) -> list[dict[str, object]]:
1695
1691
  raise ValueError("Invalid Hermes message identity")
1696
1692
  if not isinstance(stamp, (int, float)) or not math.isfinite(stamp) or stamp <= 0:
1697
1693
  raise ValueError("Invalid Hermes message timestamp")
1698
- content = _text_blocks(row.get("content"))
1699
- if role == "assistant":
1700
- content.extend(_tool_blocks(row.get("tool_calls")))
1701
- elif role == "tool":
1702
- call_id = row.get("tool_call_id")
1703
- if not isinstance(call_id, str) or not call_id:
1704
- continue
1705
- content = [{"type": "tool_result", "tool_use_id": call_id, "content": content}]
1694
+ from agent.compaction_display import project_compaction_message_for_display
1695
+ projected = project_compaction_message_for_display(row)
1696
+ if not projected or projected.get("_compressed_summary"):
1697
+ continue
1698
+ role = projected.get("role")
1699
+ if role not in ("user", "assistant"):
1700
+ continue
1701
+ value = projected.get("content")
1702
+ if role == "user" and projected.get("display_kind") == "steer":
1703
+ from agent.conversation_compression import _extract_steer_text_from_message
1704
+ value = _extract_steer_text_from_message(projected) or value
1705
+ elif projected.get("display_kind"):
1706
+ continue
1707
+ content = _visible_text(value, role)
1708
+ if not content:
1709
+ continue
1706
1710
  messages.append({
1707
- "id": f"hermes:{identity}", "role": "user" if role == "tool" else role,
1711
+ "id": f"hermes:{identity}", "role": role,
1708
1712
  "timestamp": datetime.fromtimestamp(stamp, timezone.utc).isoformat().replace("+00:00", "Z"),
1709
1713
  "content": content,
1710
1714
  })
@@ -1725,6 +1729,9 @@ def read_display_history(database_path: Path, session_id: str) -> list[dict[str,
1725
1729
  lineage = database._resume_lineage_ids(session_id)
1726
1730
  if not lineage or len(lineage) > 100:
1727
1731
  raise ValueError("Unsupported Hermes compression lineage")
1732
+ root = database.get_session(lineage[0])
1733
+ if not root or root.get("parent_session_id") or root.get("source") in ("subagent", "tool"):
1734
+ raise ValueError("Child history is not a primary conversation")
1728
1735
  columns = [row[1] for row in connection.execute("PRAGMA table_info(messages)")]
1729
1736
  required = {"id", "session_id", "role", "content", "timestamp", "active", "compacted", "display_kind", "message_uid"}
1730
1737
  if not required.issubset(columns):
@@ -1735,9 +1742,9 @@ def read_display_history(database_path: Path, session_id: str) -> list[dict[str,
1735
1742
  count, size = connection.execute(
1736
1743
  f"SELECT COUNT(*), SUM({row_bytes}) FROM messages WHERE session_id IN ({placeholders})", lineage
1737
1744
  ).fetchone()
1738
- if count > MAX_MESSAGES or (size or 0) > MAX_SOURCE_BYTES:
1745
+ if count > MAX_DATABASE_ROWS or (size or 0) > MAX_DATABASE_BYTES:
1739
1746
  raise ValueError("Hermes history exceeds the bounded reader limit")
1740
- rows = database.get_messages(session_id, include_compacted=True, include_ancestors=True, limit=MAX_MESSAGES)
1747
+ rows = database.get_messages(session_id, include_compacted=True, include_ancestors=True, limit=MAX_DATABASE_ROWS)
1741
1748
  return normalize_messages(rows)
1742
1749
  finally:
1743
1750
  database.close()
@@ -1747,7 +1754,7 @@ def write_snapshot(path: Path, session_id: str, messages: list[dict[str, object]
1747
1754
  value = {"version": 1, "sessionId": session_id, "updatedAtMs": int(time.time() * 1000), "messages": messages, "completed": completed}
1748
1755
  if error:
1749
1756
  value["error"] = error
1750
- encoded = json.dumps(value, ensure_ascii=True, allow_nan=False).encode("utf-8")
1757
+ encoded = json.dumps(value, ensure_ascii=False, allow_nan=False).encode("utf-8")
1751
1758
  if len(encoded) > MAX_SOURCE_BYTES:
1752
1759
  raise ValueError("Hermes history export exceeds its size limit")
1753
1760
  path.parent.mkdir(mode=0o700, parents=True, exist_ok=True)
@@ -2226,7 +2233,7 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
2226
2233
  logger.debug("[pushary] could not record the plugin load: %s", exc)
2227
2234
  return None
2228
2235
  ` },
2229
- { path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.6\ndescription: Push notifications and human-in-the-loop for Hermes Agent via Pushary\nauthor: RalphNex OU\nrequires_env:\n - name: PUSHARY_API_KEY\n description: Your Pushary API key\n url: https://pushary.com/sign-up?from=hermes\n secret: true\nconfig_schema:\n api_key:\n type: secret\n env: PUSHARY_API_KEY\n label: Pushary API key\n description: "Get one at pushary.com/sign-up?from=hermes"\n required: true\nprovides_tools:\n - pushary_remind\n - pushary_notify\n - pushary_ask\n - pushary_wait\n - pushary_cancel\n - pushary_propose_scope\n - pushary_enroll\n - pushary_ask_end_user\nprovides_hooks:\n - pre_llm_call\n - pre_tool_call\n - post_tool_call\n - on_session_start\n - on_session_end\n - on_session_finalize\n - post_approval_response\nprovides_approval_transports:\n - pushary\n' },
2236
+ { path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.7\ndescription: Push notifications and human-in-the-loop for Hermes Agent via Pushary\nauthor: RalphNex OU\nrequires_env:\n - name: PUSHARY_API_KEY\n description: Your Pushary API key\n url: https://pushary.com/sign-up?from=hermes\n secret: true\nconfig_schema:\n api_key:\n type: secret\n env: PUSHARY_API_KEY\n label: Pushary API key\n description: "Get one at pushary.com/sign-up?from=hermes"\n required: true\nprovides_tools:\n - pushary_remind\n - pushary_notify\n - pushary_ask\n - pushary_wait\n - pushary_cancel\n - pushary_propose_scope\n - pushary_enroll\n - pushary_ask_end_user\nprovides_hooks:\n - pre_llm_call\n - pre_tool_call\n - post_tool_call\n - on_session_start\n - on_session_end\n - on_session_finalize\n - post_approval_response\nprovides_approval_transports:\n - pushary\n' },
2230
2237
  { path: "README.md", contents: "# Pushary for Hermes\n\nAsk a question in Hermes and answer it on your phone. Try it with your own device before routing command approvals there.\n\n## Connect your phone\n\n1. [Set up your Pushary Agent account](https://pushary.com/sign-up?from=ai-coding&utm_source=hermes-plugin&utm_medium=quickstart&utm_campaign=first-question). Pair your phone with that account and get its API key from Agent settings.\n2. In your terminal, install the catalog plugin:\n\n ```sh\n hermes plugins install pushary\n ```\n\n3. Enter `PUSHARY_API_KEY` when Hermes prompts for it. If you missed the prompt, save the key in the plugin\u2019s settings in Hermes Desktop. Keep it out of chat. Start a new Hermes session (for a running gateway, use `hermes gateway restart`).\n\n## Try one question\n\nTell Hermes: **Use `pushary_ask` to ask me \u201CDid this test reach your phone?\u201D Report my answer and do nothing else.** Open the question on your paired phone and tap **Yes** or **No**. Hermes should report the answer you tapped.\n\nIf nothing arrives, check the account and notification permissions on your phone. A pending question is still live: wait for the same question rather than sending another. If Pushary hands it back to Hermes, answer the local prompt instead. No answer is not approval.\n\nCommand approvals are separate from this test. To route them to your phone, set `security.approval.transport` to `pushary`. Set `security.approval.transport_fallback` to `builtin` if you want Hermes\u2019s local prompt after a safe handoff; an unconfirmed withdrawal does not authorize the command. See the [plugin guide](https://github.com/Pushary/hermes-plugin-pushary#readme) for approval routing and what the plugin reads and sends.\n" },
2231
2238
  { path: "schemas.py", contents: `PUSHARY_REMIND = {
2232
2239
  "name": "pushary_remind",
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-RG3REA2Y.js";
3
+ } from "./chunk-N2WDRRZ6.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-HTMMJASM.js";
6
+ } from "./chunk-SKF756UZ.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  UNNAMED_ACTION
3
- } from "./chunk-HS4RZZRG.js";
3
+ } from "./chunk-I7OZFD4V.js";
4
4
  import {
5
5
  ASK_USER_TIMEOUT_MS,
6
6
  WAIT_END_TIMEOUT_MS,
@@ -11,10 +11,10 @@ import {
11
11
  isStoredPastThePushCap,
12
12
  unavailableQuestionUnlessRefused,
13
13
  waitForQuestion
14
- } from "./chunk-B4GSS6UW.js";
14
+ } from "./chunk-TKCHBHGG.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-4FBETQHZ.js";
17
+ } from "./chunk-INO42IRS.js";
18
18
  import {
19
19
  hookMaxWaitSeconds,
20
20
  hookWaitClamped,
@@ -22,7 +22,7 @@ import {
22
22
  refusesWhenUnanswered,
23
23
  ruleApprovesAfterItsFullWindow,
24
24
  scopeBreachReasonOf
25
- } from "./chunk-HTMMJASM.js";
25
+ } from "./chunk-SKF756UZ.js";
26
26
 
27
27
  // src/pushed-question.ts
28
28
  var scopeQuestionOf = (verdict) => {
@@ -9,7 +9,7 @@ import {
9
9
  installedCodexApp,
10
10
  readCodexAppRuntime,
11
11
  shellQuoted
12
- } from "./chunk-W7OEJNMQ.js";
12
+ } from "./chunk-OW5W6MUS.js";
13
13
  import {
14
14
  CODEX_APP_LAUNCH_AT_LOGIN_VERB,
15
15
  CODEX_APP_LAUNCH_VARIABLE
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-QCGNGEGE.js";
20
20
  import {
21
21
  xml
22
- } from "./chunk-AU3PCXV3.js";
22
+ } from "./chunk-GWJ5WHO6.js";
23
23
  import {
24
24
  writeFileAtomic
25
25
  } from "./chunk-PM2NRK6Y.js";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-RYT23NAI.js";
16
+ } from "./chunk-UYNG4ZA2.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-RG3REA2Y.js";
19
+ } from "./chunk-N2WDRRZ6.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-SCZELAXA.js";
22
+ } from "./chunk-GZWP4LIJ.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-HTMMJASM.js";
25
+ } from "./chunk-SKF756UZ.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-HTMMJASM.js";
12
+ } from "./chunk-SKF756UZ.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-6GG6MQMG.js";
3
+ } from "./chunk-5DRF45TA.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-RYT23NAI.js";
6
+ } from "./chunk-UYNG4ZA2.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-FBFAOF2S.js";
9
+ } from "./chunk-AWZQOCR6.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-PM2NRK6Y.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-HTMMJASM.js";
16
+ } from "./chunk-SKF756UZ.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;
@@ -22,24 +22,24 @@ import {
22
22
  turnCodexAppCardsOff,
23
23
  turnCodexAppCardsOn,
24
24
  whyLaunchctlFailed
25
- } from "./chunk-66JDRFIJ.js";
26
- import "./chunk-W7OEJNMQ.js";
25
+ } from "./chunk-ZAA7ZLWZ.js";
26
+ import "./chunk-OW5W6MUS.js";
27
27
  import "./chunk-XCEN33UP.js";
28
28
  import "./chunk-U4P4NDVB.js";
29
29
  import "./chunk-QCGNGEGE.js";
30
- import "./chunk-AU3PCXV3.js";
30
+ import "./chunk-GWJ5WHO6.js";
31
31
  import "./chunk-3PSNUHC5.js";
32
- import "./chunk-4FBETQHZ.js";
33
- import "./chunk-RYT23NAI.js";
34
- import "./chunk-B4J3OPKE.js";
35
- import "./chunk-FBFAOF2S.js";
36
- import "./chunk-Z2GHBFXB.js";
37
- import "./chunk-RG3REA2Y.js";
32
+ import "./chunk-INO42IRS.js";
33
+ import "./chunk-UYNG4ZA2.js";
34
+ import "./chunk-YJM7AYIC.js";
35
+ import "./chunk-AWZQOCR6.js";
36
+ import "./chunk-QBGD7AMY.js";
37
+ import "./chunk-N2WDRRZ6.js";
38
38
  import "./chunk-PM2NRK6Y.js";
39
- import "./chunk-SCZELAXA.js";
39
+ import "./chunk-GZWP4LIJ.js";
40
40
  import "./chunk-BG4HHB7E.js";
41
41
  import "./chunk-CXQWDQCJ.js";
42
- import "./chunk-HTMMJASM.js";
42
+ import "./chunk-SKF756UZ.js";
43
43
  import "./chunk-MLKGABMK.js";
44
44
  export {
45
45
  CODEX_APP_CARDS_DIRECTORY,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  deriveToolTarget
3
- } from "./chunk-HS4RZZRG.js";
3
+ } from "./chunk-I7OZFD4V.js";
4
4
  import {
5
5
  TOOL_NAME_MAX_LENGTH,
6
6
  codexElicitationToolName
7
- } from "./chunk-HTMMJASM.js";
7
+ } from "./chunk-SKF756UZ.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // src/codex-card-routing.ts
@@ -11,7 +11,7 @@ import {
11
11
  installedCodexApp,
12
12
  shellQuoted,
13
13
  writeDesktopProxy
14
- } from "./chunk-W7OEJNMQ.js";
14
+ } from "./chunk-OW5W6MUS.js";
15
15
  import "./chunk-XCEN33UP.js";
16
16
  import {
17
17
  CODEX_APP_LAUNCH_VARIABLE