pushary 1.9.212 → 1.9.214

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 (142) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{api-SNFXRUBO.js → api-4PUPB24W.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 +28 -28
  8. package/dist/bin/pushary-clean.js +39 -39
  9. package/dist/bin/pushary-codex-bridge.js +24 -24
  10. package/dist/bin/pushary-codex-hook.js +34 -34
  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 +46 -47
  16. package/dist/bin/pushary-disconnect.js +30 -30
  17. package/dist/bin/pushary-display-hook.js +84 -2
  18. package/dist/bin/pushary-doctor.js +48 -47
  19. package/dist/bin/pushary-elicitation-hook.js +27 -27
  20. package/dist/bin/pushary-gemini-bridge.js +19 -19
  21. package/dist/bin/pushary-gemini-hook.js +31 -31
  22. package/dist/bin/pushary-hook.js +34 -34
  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 +24 -24
  29. package/dist/bin/pushary-opencode-hook.js +32 -32
  30. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  31. package/dist/bin/pushary-permission-hook.js +34 -34
  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 +39 -40
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +62 -64
  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 +22 -20
  44. package/dist/bin/pushary-transcripts.js +26 -26
  45. package/dist/bin/pushary-upgrade.js +49 -50
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-NCPBMIR5.js → chunk-27AOD6AJ.js} +4 -4
  49. package/dist/{chunk-KQRWWJLF.js → chunk-2WKMK3MA.js} +1 -1
  50. package/dist/{chunk-WXWWCODY.js → chunk-3NS3MQID.js} +1 -1
  51. package/dist/{chunk-A4I6XOX3.js → chunk-3RMKNFAK.js} +3 -3
  52. package/dist/{chunk-ID7W4YBQ.js → chunk-3ZJWAE7Y.js} +1 -1
  53. package/dist/{chunk-ARTOOCLW.js → chunk-4IASS2L5.js} +1 -1
  54. package/dist/{chunk-GDWAKBBT.js → chunk-4TTCW5NU.js} +6 -4
  55. package/dist/{chunk-RE5KA47K.js → chunk-67DK2CIW.js} +3 -3
  56. package/dist/{chunk-UXQI33VO.js → chunk-6CD5QFP6.js} +6 -6
  57. package/dist/{chunk-PRRJZZAF.js → chunk-6PMNHW55.js} +3 -3
  58. package/dist/{chunk-5E7QI7VP.js → chunk-6UG6HV4Y.js} +9 -9
  59. package/dist/{chunk-6FN7NPOE.js → chunk-7JG5HH7Z.js} +2 -2
  60. package/dist/{chunk-7H6BFJU5.js → chunk-7OBWD2XH.js} +1 -1
  61. package/dist/{chunk-ZXQNUTK3.js → chunk-A3PPXX6R.js} +8 -8
  62. package/dist/{chunk-5B5PPHJH.js → chunk-ACYVHNR2.js} +1 -1
  63. package/dist/{chunk-Y3OHWGZV.js → chunk-AWDT7VQI.js} +2 -2
  64. package/dist/{chunk-LWFFQJ3Y.js → chunk-B7W3VGWO.js} +3 -3
  65. package/dist/{chunk-FYAEQIYF.js → chunk-BOAESLW5.js} +4 -4
  66. package/dist/{chunk-W2LDJTM6.js → chunk-BQTO3K5X.js} +5 -5
  67. package/dist/{chunk-D347AAH7.js → chunk-BW74KYAH.js} +30 -10
  68. package/dist/{chunk-NYJXBV6G.js → chunk-CSY3KGUK.js} +5 -5
  69. package/dist/{chunk-NDYH6TS3.js → chunk-D7IVASAJ.js} +2 -2
  70. package/dist/{chunk-7TROI3WY.js → chunk-DA2VDGD4.js} +3 -3
  71. package/dist/{chunk-65QMCTQ3.js → chunk-DXGH7C47.js} +2 -2
  72. package/dist/{chunk-KSAE6TKK.js → chunk-E3XVIY5H.js} +5 -5
  73. package/dist/{chunk-PSKPKVM6.js → chunk-FB5CFFNH.js} +1 -1
  74. package/dist/{chunk-V3QWU2WK.js → chunk-FFJKZYQA.js} +4 -4
  75. package/dist/{chunk-O3375GQ5.js → chunk-FKREGRCQ.js} +2 -2
  76. package/dist/{chunk-NMG6GB3W.js → chunk-FWCMADJS.js} +5 -5
  77. package/dist/{chunk-LLCNGORA.js → chunk-GE6BQL5V.js} +3 -3
  78. package/dist/{chunk-ZYXC6ZEQ.js → chunk-GHMNWVIT.js} +1 -1
  79. package/dist/{chunk-GJ5XTWNZ.js → chunk-GX7NST6J.js} +1 -1
  80. package/dist/{chunk-BLQ2JF2F.js → chunk-HIYWW2EL.js} +1 -1
  81. package/dist/{chunk-E5BZJAJ7.js → chunk-HY2DPLMM.js} +7 -7
  82. package/dist/{chunk-DOPDHW6I.js → chunk-IAAARTZD.js} +141 -7
  83. package/dist/{chunk-V2R6Y4ES.js → chunk-IALNFQJX.js} +2 -2
  84. package/dist/{chunk-HCILDIRX.js → chunk-JBP6KADX.js} +2 -2
  85. package/dist/{chunk-VLV34V6X.js → chunk-JZOKFZ27.js} +15 -17
  86. package/dist/{chunk-CVZMRD73.js → chunk-KG6AOJOA.js} +4 -4
  87. package/dist/{chunk-SGOP6D4K.js → chunk-KMT24TVI.js} +1 -1
  88. package/dist/{chunk-UQQN6ST3.js → chunk-L5EZLYKM.js} +7 -4
  89. package/dist/{chunk-AINVDTY2.js → chunk-LBN3RGJS.js} +4 -4
  90. package/dist/{chunk-3KADQBEQ.js → chunk-LD7QJLE6.js} +5 -5
  91. package/dist/{chunk-4NJBLOER.js → chunk-LUR57S72.js} +2 -2
  92. package/dist/{chunk-7MPVFAYZ.js → chunk-M6I2EQ7J.js} +1 -1
  93. package/dist/{chunk-VKGJ4XY5.js → chunk-MEONDMJP.js} +1 -1
  94. package/dist/{chunk-Q73RI245.js → chunk-MPP7EEJJ.js} +5 -5
  95. package/dist/{chunk-RIGWC5YP.js → chunk-MWMN5LUH.js} +2 -2
  96. package/dist/{chunk-AUDKOK2X.js → chunk-O5CC4CF6.js} +6 -6
  97. package/dist/{chunk-FUZSKAEQ.js → chunk-OF6AUDV5.js} +3 -3
  98. package/dist/{chunk-RS6WYORY.js → chunk-OIGBUSHM.js} +5 -5
  99. package/dist/{chunk-QLKIY3FD.js → chunk-OXTKCSQH.js} +1 -1
  100. package/dist/{chunk-NETM5KD2.js → chunk-P2HYWAEX.js} +2 -2
  101. package/dist/{chunk-ZNF5ATIQ.js → chunk-P6BE3IE6.js} +12 -12
  102. package/dist/{chunk-I2ZILRS4.js → chunk-PIZ2VDOF.js} +6 -6
  103. package/dist/{chunk-HVBMU7HP.js → chunk-PUNSO7UP.js} +6 -6
  104. package/dist/{chunk-74RTPZ2B.js → chunk-Q2F7H5AO.js} +16 -16
  105. package/dist/{chunk-POXHWH73.js → chunk-Q4CX35CK.js} +138 -43
  106. package/dist/{chunk-Z5OUGH4K.js → chunk-QDW4H4BE.js} +23 -13
  107. package/dist/{chunk-N4D5YYO2.js → chunk-R2ZVMZRM.js} +2 -2
  108. package/dist/{chunk-FCIJEVDH.js → chunk-S33W45N6.js} +1 -1
  109. package/dist/{chunk-CR5X46JQ.js → chunk-SQRYZMBT.js} +1 -1
  110. package/dist/{chunk-HTLG7JIU.js → chunk-SW3YNO4E.js} +1 -1
  111. package/dist/{chunk-2FFSF562.js → chunk-T56AUJS3.js} +5 -5
  112. package/dist/{chunk-PIXOAUE6.js → chunk-TFN65TCT.js} +6 -6
  113. package/dist/{chunk-PKDU2BY4.js → chunk-UCEHVBFY.js} +3 -3
  114. package/dist/{chunk-3NEKVCP2.js → chunk-US2O2BCI.js} +4 -4
  115. package/dist/{chunk-LMQDIQI4.js → chunk-UXQADKBJ.js} +5 -5
  116. package/dist/{chunk-GWDAFH4B.js → chunk-V7BM5U5N.js} +2 -2
  117. package/dist/{chunk-I7KUHNSA.js → chunk-VCZQZJIX.js} +3 -3
  118. package/dist/{chunk-R4BUYRSV.js → chunk-WAXSCVF3.js} +5 -5
  119. package/dist/{chunk-7KTLZJGF.js → chunk-XATTYXWT.js} +3 -3
  120. package/dist/{chunk-GKTQXPUM.js → chunk-XTHQV6DP.js} +1 -1
  121. package/dist/{chunk-HCBPEZXH.js → chunk-YOOH4XZM.js} +7 -7
  122. package/dist/{chunk-HFDNWC2K.js → chunk-ZKTFWYT4.js} +1 -1
  123. package/dist/{chunk-ZJYSZDFR.js → chunk-ZMEZWQ7O.js} +1 -1
  124. package/dist/{chunk-VY7UHIPW.js → chunk-ZOT4PHSL.js} +2 -2
  125. package/dist/{chunk-ZWT4WF2W.js → chunk-ZPUSBUTT.js} +9 -6
  126. package/dist/{chunk-QQEJDPYK.js → chunk-ZSIVPFCH.js} +1 -1
  127. package/dist/{codex-app-cards-switch-3TCXMVNB.js → codex-app-cards-switch-T7UULQ5T.js} +11 -11
  128. package/dist/{codex-card-routing-SYP6VQTQ.js → codex-card-routing-TTRI27CG.js} +2 -2
  129. package/dist/{codex-desktop-launch-4JX7HA66.js → codex-desktop-launch-W34FG52F.js} +1 -1
  130. package/dist/{codex-session-launch-ITEGM77S.js → codex-session-launch-ZMWMRTP5.js} +20 -20
  131. package/dist/{config-KVGNGI6J.js → config-5EIPFQTD.js} +3 -3
  132. package/dist/{global-upgrade-SSWKV5NF.js → global-upgrade-BW22HRDL.js} +9 -9
  133. package/dist/{identity-BMEZY3ST.js → identity-URZS4PNH.js} +4 -4
  134. package/dist/{live-capabilities-AXVWZKBK.js → live-capabilities-IPUVJWHV.js} +4 -4
  135. package/dist/{paths-EFJCRBNQ.js → paths-M7UGQE4K.js} +3 -3
  136. package/dist/reapply-423JE23N.js +74 -0
  137. package/dist/src/index.js +33 -33
  138. package/dist/{upgrade-lock-FCKMP6W2.js → upgrade-lock-GMEQWSHI.js} +4 -4
  139. package/dist/{usage-NCJLUCAW.js → usage-SHIUXLVP.js} +3 -3
  140. package/package.json +1 -1
  141. package/dist/chunk-UP2JWLPI.js +0 -78
  142. package/dist/reapply-S26S7GHW.js +0 -75
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-PKDU2BY4.js";
16
+ } from "./chunk-UCEHVBFY.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-ZJYSZDFR.js";
19
+ } from "./chunk-ZMEZWQ7O.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-KQRWWJLF.js";
22
+ } from "./chunk-2WKMK3MA.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-POXHWH73.js";
25
+ } from "./chunk-Q4CX35CK.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-NCPBMIR5.js";
4
+ } from "./chunk-27AOD6AJ.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-ZNF5ATIQ.js";
7
+ } from "./chunk-P6BE3IE6.js";
8
8
  import {
9
9
  compatibleToolLookup
10
- } from "./chunk-UQQN6ST3.js";
10
+ } from "./chunk-L5EZLYKM.js";
11
11
  import {
12
12
  CLAUDE_HOOK_EVENTS,
13
13
  PUSHARY_MCP_URL,
@@ -19,7 +19,7 @@ import {
19
19
  isPusharyHook,
20
20
  registerHookEntry,
21
21
  removeClaudeMcpServers
22
- } from "./chunk-O3375GQ5.js";
22
+ } from "./chunk-FKREGRCQ.js";
23
23
  import {
24
24
  HOOK_COMPATIBLE_PROFILES,
25
25
  PHONE_ANSWERED_TOOLS,
@@ -30,7 +30,7 @@ import {
30
30
  pusharyMissingReason,
31
31
  refusalOutput,
32
32
  withHookHoldBudget
33
- } from "./chunk-POXHWH73.js";
33
+ } from "./chunk-Q4CX35CK.js";
34
34
 
35
35
  // src/config-document.ts
36
36
  import { parse, stringify } from "smol-toml";
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-A4I6XOX3.js";
16
+ } from "./chunk-3RMKNFAK.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-O3375GQ5.js";
28
+ } from "./chunk-FKREGRCQ.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-GDWAKBBT.js";
31
+ } from "./chunk-4TTCW5NU.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-POXHWH73.js";
42
+ } from "./chunk-Q4CX35CK.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.7",\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.8",\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
@@ -1596,6 +1596,7 @@ import contextvars
1596
1596
  import json
1597
1597
  import logging
1598
1598
  import math
1599
+ import ntpath
1599
1600
  import os
1600
1601
  import re
1601
1602
  import shutil
@@ -1633,6 +1634,8 @@ PUSHARY_APP_NAME = "Pushary.app"
1633
1634
  PUSHARY_APP_HELPER = Path("Contents") / "Helpers" / NATIVE_HELPER_NAME
1634
1635
  SYSTEM_APPLICATIONS = Path("/Applications")
1635
1636
  CLI_HELPER_NAME = "pushary-transcript-register"
1637
+ NPM_PATH_MARKER = ("@npmcli", "run-script", "lib", "node-gyp-bin")
1638
+ ONE_COMMAND_BIN_FOLDER = ("node_modules", ".bin")
1636
1639
  CLI_HELPER_RECORD = "hermes-history-helper.json"
1637
1640
  CLI_HELPER_RECORD_VERSION = 1
1638
1641
  CLI_HELPER_RECORD_MAX_BYTES = 8192
@@ -1773,6 +1776,10 @@ def _helper_environment() -> dict[str, str]:
1773
1776
  return {name: value for name, value in os.environ.items() if name in HELPER_ENVIRONMENT_NAMES}
1774
1777
 
1775
1778
 
1779
+ def _helper_folder(command: list[str]) -> str | None:
1780
+ return os.path.dirname(command[0]) if os.name == "nt" else None
1781
+
1782
+
1776
1783
  def _registration_environment(key: str) -> dict[str, str]:
1777
1784
  return {**_helper_environment(), "PUSHARY_API_KEY": key, "PUSHARY_BASE_URL": api.BASE_URL}
1778
1785
 
@@ -1838,12 +1845,23 @@ def _recorded_cli_helper(root: Path) -> list[str] | None:
1838
1845
  return _runnable_recorded_command(value["command"]) if _is_recorded_command(value) else None
1839
1846
 
1840
1847
 
1848
+ def _ends_with_segments(entry: str, tail: tuple[str, ...]) -> bool:
1849
+ segments = tuple(segment.lower() for segment in ntpath.normpath(entry).split("\\\\") if segment)
1850
+ return segments[-len(tail):] == tail
1851
+
1852
+
1853
+ def _path_before_npm_changed_it(entries: list[str]) -> list[str]:
1854
+ markers = [index for index, entry in enumerate(entries) if _ends_with_segments(entry, NPM_PATH_MARKER)]
1855
+ return entries[markers[-1] + 1:] if markers else entries
1856
+
1857
+
1841
1858
  def _helper_on_path() -> str | None:
1842
1859
  if os.name != "nt":
1843
1860
  return shutil.which(CLI_HELPER_NAME)
1844
1861
  extensions = os.environ.get("PATHEXT", ".COM;.EXE;.BAT;.CMD").split(";")
1845
- for directory in map(PureWindowsPath, os.get_exec_path()):
1846
- if not directory.is_absolute():
1862
+ for entry in _path_before_npm_changed_it(os.get_exec_path()):
1863
+ directory = PureWindowsPath(entry)
1864
+ if not directory.is_absolute() or _ends_with_segments(entry, ONE_COMMAND_BIN_FOLDER):
1847
1865
  continue
1848
1866
  for extension in extensions:
1849
1867
  if extension.upper() not in {".EXE", ".COM", ".CMD", ".BAT"}:
@@ -1878,7 +1896,8 @@ def _registration_command(key: str) -> list[str] | None:
1878
1896
  command = [*helper, "hermes"]
1879
1897
  result = subprocess.run([*helper, "authorize-export"],
1880
1898
  input=json.dumps({"apiKey": key, "baseUrl": api.BASE_URL}), text=True,
1881
- env=_helper_environment(), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, timeout=5, check=False)
1899
+ env=_helper_environment(), cwd=_helper_folder(helper), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
1900
+ timeout=5, check=False)
1882
1901
  if result.returncode != 0:
1883
1902
  return None
1884
1903
  authorization = json.loads(result.stdout)
@@ -2033,7 +2052,8 @@ def _export_loop(database_path: Path, session_id: str, key: str, command: list[s
2033
2052
  payload = {"session_id": session_id, "cwd": str(database_path.parent), "transcript_path": str(path),
2034
2053
  "hook_event_name": "SessionEnd" if ending else "SessionStart"}
2035
2054
  result = subprocess.run(command, input=json.dumps(payload), text=True, env=_registration_environment(key),
2036
- stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=5, check=False)
2055
+ cwd=_helper_folder(command), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
2056
+ timeout=5, check=False)
2037
2057
  if result.returncode != 0:
2038
2058
  logger.warning("[pushary] Hermes history reader could not register")
2039
2059
  next_registration = time.monotonic() + 60
@@ -2233,7 +2253,7 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
2233
2253
  logger.debug("[pushary] could not record the plugin load: %s", exc)
2234
2254
  return None
2235
2255
  ` },
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' },
2256
+ { path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.8\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' },
2237
2257
  { 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" },
2238
2258
  { path: "schemas.py", contents: `PUSHARY_REMIND = {
2239
2259
  "name": "pushary_remind",
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-A4I6XOX3.js";
3
+ } from "./chunk-3RMKNFAK.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-E5BZJAJ7.js";
6
+ } from "./chunk-HY2DPLMM.js";
7
7
  import {
8
8
  nativeClaudeInstallPath
9
9
  } from "./chunk-TCE3J44Z.js";
10
10
  import {
11
11
  grokHome
12
- } from "./chunk-W2LDJTM6.js";
12
+ } from "./chunk-BQTO3K5X.js";
13
13
  import {
14
14
  claudeConfigDir,
15
15
  clineDataDirectory,
16
16
  codexHomeFrom,
17
17
  openClawEnvironmentOf,
18
18
  openClawPathsFrom
19
- } from "./chunk-O3375GQ5.js";
19
+ } from "./chunk-FKREGRCQ.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
- } from "./chunk-POXHWH73.js";
22
+ } from "./chunk-Q4CX35CK.js";
23
23
 
24
24
  // src/vscode-config.ts
25
25
  import { homedir } from "os";
@@ -9,7 +9,7 @@ import {
9
9
  installedCodexApp,
10
10
  readCodexAppRuntime,
11
11
  shellQuoted
12
- } from "./chunk-I7KUHNSA.js";
12
+ } from "./chunk-VCZQZJIX.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-UXQI33VO.js";
22
+ } from "./chunk-6CD5QFP6.js";
23
23
  import {
24
24
  writeFileAtomic
25
25
  } from "./chunk-PM2NRK6Y.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-LLCNGORA.js";
3
+ } from "./chunk-GE6BQL5V.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-ZJYSZDFR.js";
6
+ } from "./chunk-ZMEZWQ7O.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-POXHWH73.js";
16
+ } from "./chunk-Q4CX35CK.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,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-ZNF5ATIQ.js";
4
+ } from "./chunk-P6BE3IE6.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-O3375GQ5.js";
7
+ } from "./chunk-FKREGRCQ.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-V3QWU2WK.js";
4
+ } from "./chunk-FFJKZYQA.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-Z5OUGH4K.js";
7
+ } from "./chunk-QDW4H4BE.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-W2LDJTM6.js";
10
+ } from "./chunk-BQTO3K5X.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-HVBMU7HP.js";
13
+ } from "./chunk-PUNSO7UP.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-POXHWH73.js";
19
+ } from "./chunk-Q4CX35CK.js";
20
20
 
21
21
  // src/tool-hook-input.ts
22
22
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOOK_BUDGETS
3
- } from "./chunk-POXHWH73.js";
3
+ } from "./chunk-Q4CX35CK.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-NCPBMIR5.js";
3
+ } from "./chunk-27AOD6AJ.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-O3375GQ5.js";
10
+ } from "./chunk-FKREGRCQ.js";
11
11
  import {
12
12
  atLeast,
13
13
  parseVersion
14
- } from "./chunk-GDWAKBBT.js";
14
+ } from "./chunk-4TTCW5NU.js";
15
15
  import {
16
16
  CURSOR_GATE_COVERAGE,
17
17
  CURSOR_GATE_SCRIPT,
@@ -21,7 +21,7 @@ import {
21
21
  isCursorHookPayload,
22
22
  isRecord,
23
23
  toolsCoveredByGateEntry
24
- } from "./chunk-POXHWH73.js";
24
+ } from "./chunk-Q4CX35CK.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-GDWAKBBT.js";
6
+ } from "./chunk-4TTCW5NU.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
@@ -22,7 +22,7 @@ import {
22
22
  PUSHARY_HOSTS,
23
23
  PUSHARY_TOOL_PREFIX,
24
24
  withHookHoldBudget
25
- } from "./chunk-POXHWH73.js";
25
+ } from "./chunk-Q4CX35CK.js";
26
26
 
27
27
  // src/setup/paths.ts
28
28
  import { createHash as createHash2 } from "crypto";
@@ -3,24 +3,24 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-7KTLZJGF.js";
6
+ } from "./chunk-XATTYXWT.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-UXQI33VO.js";
13
+ } from "./chunk-6CD5QFP6.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-BLQ2JF2F.js";
16
+ } from "./chunk-HIYWW2EL.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeySource
20
- } from "./chunk-PKDU2BY4.js";
20
+ } from "./chunk-UCEHVBFY.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-ZJYSZDFR.js";
23
+ } from "./chunk-ZMEZWQ7O.js";
24
24
  import {
25
25
  getPackageVersion
26
26
  } from "./chunk-CXQWDQCJ.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-BLQ2JF2F.js";
3
+ } from "./chunk-HIYWW2EL.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-ZJYSZDFR.js";
6
+ } from "./chunk-ZMEZWQ7O.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-POXHWH73.js";
16
+ } from "./chunk-Q4CX35CK.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-POXHWH73.js";
3
+ } from "./chunk-Q4CX35CK.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-PKDU2BY4.js";
3
+ } from "./chunk-UCEHVBFY.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-O3375GQ5.js";
3
+ } from "./chunk-FKREGRCQ.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";
@@ -3,7 +3,7 @@ import {
3
3
  openCodePluginArgv,
4
4
  openCodePluginModule,
5
5
  renderOpenCodePlugin
6
- } from "./chunk-QQEJDPYK.js";
6
+ } from "./chunk-ZSIVPFCH.js";
7
7
  import {
8
8
  OPENCODE_FAILED_EVENT,
9
9
  OPENCODE_IDLE_EVENT,
@@ -12,17 +12,17 @@ import {
12
12
  OPENCODE_PLUGIN_SIBLING,
13
13
  OPENCODE_PLUGIN_SIBLING_CONTENTS,
14
14
  OPENCODE_SUBAGENT_IDLE_EVENT
15
- } from "./chunk-PSKPKVM6.js";
15
+ } from "./chunk-FB5CFFNH.js";
16
16
  import {
17
17
  compatibleConfigFile
18
- } from "./chunk-W2LDJTM6.js";
18
+ } from "./chunk-BQTO3K5X.js";
19
19
  import {
20
20
  hookOwnerOf,
21
21
  hookOwnerOfCommands
22
- } from "./chunk-NCPBMIR5.js";
22
+ } from "./chunk-27AOD6AJ.js";
23
23
  import {
24
24
  AGENT_CHOICES
25
- } from "./chunk-VKGJ4XY5.js";
25
+ } from "./chunk-MEONDMJP.js";
26
26
  import {
27
27
  OPENCODE_INSTRUCTIONS_LABEL,
28
28
  bridgeStub,
@@ -36,7 +36,7 @@ import {
36
36
  resolveBridgeStub,
37
37
  vscodePluginDir,
38
38
  windowsNodeLauncherFor
39
- } from "./chunk-O3375GQ5.js";
39
+ } from "./chunk-FKREGRCQ.js";
40
40
  import {
41
41
  readJsonSafe
42
42
  } from "./chunk-PM2NRK6Y.js";
@@ -46,7 +46,7 @@ import {
46
46
  OPENCODE_APPROVAL_EVENT,
47
47
  hookCompatibleProfile,
48
48
  isRecord
49
- } from "./chunk-POXHWH73.js";
49
+ } from "./chunk-Q4CX35CK.js";
50
50
 
51
51
  // src/opencode-config.ts
52
52
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";