pushary 1.9.210 → 1.9.213

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 (145) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{api-GBK5CCGM.js → api-XXA3DBK5.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 +36 -35
  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 +38 -42
  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 +1 -0
  18. package/dist/bin/pushary-doctor.js +48 -47
  19. package/dist/bin/pushary-elicitation-hook.js +28 -29
  20. package/dist/bin/pushary-gemini-bridge.js +19 -19
  21. package/dist/bin/pushary-gemini-hook.js +33 -35
  22. package/dist/bin/pushary-hook.js +34 -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 +24 -24
  29. package/dist/bin/pushary-opencode-hook.js +35 -39
  30. package/dist/bin/pushary-permission-denied-hook.js +34 -36
  31. package/dist/bin/pushary-permission-hook.js +34 -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 +39 -40
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +63 -65
  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-ULDH35EQ.js → chunk-2BKMZ2CZ.js} +5 -5
  49. package/dist/{chunk-HFDMGCBY.js → chunk-2DNM6F7C.js} +5 -5
  50. package/dist/{chunk-FZDIXPVK.js → chunk-2OREQ7MI.js} +2 -2
  51. package/dist/{chunk-DVCYIK56.js → chunk-2WCI5BY6.js} +2 -2
  52. package/dist/{chunk-M2PWMMXD.js → chunk-3T7KADQO.js} +422 -71
  53. package/dist/{chunk-73TR7RU4.js → chunk-3USB6JEH.js} +3 -3
  54. package/dist/{chunk-JJB34JRR.js → chunk-47G72ONB.js} +3 -3
  55. package/dist/{chunk-52MSHZYI.js → chunk-4DXHNWUY.js} +6 -6
  56. package/dist/{chunk-672F6V2L.js → chunk-4NJBLOER.js} +2 -2
  57. package/dist/{chunk-JMKJHN6U.js → chunk-53PLSLF5.js} +45 -167
  58. package/dist/{chunk-GS4RR3LH.js → chunk-5B5PPHJH.js} +1 -1
  59. package/dist/{chunk-37HOIRPC.js → chunk-5ML6PZ4U.js} +15 -17
  60. package/dist/{chunk-7AYZRIII.js → chunk-5XBZABC5.js} +2 -2
  61. package/dist/{chunk-6EPBLKBZ.js → chunk-6D54GFZC.js} +5 -5
  62. package/dist/{chunk-XE47DXLF.js → chunk-6FLCKWIH.js} +5 -5
  63. package/dist/{chunk-JWPOZFT6.js → chunk-6FN7NPOE.js} +2 -2
  64. package/dist/{chunk-TGYDKCOB.js → chunk-6N73T3G2.js} +2 -2
  65. package/dist/{chunk-LSUB2RBM.js → chunk-7H6BFJU5.js} +1 -1
  66. package/dist/{chunk-2L6RQHDJ.js → chunk-7MPVFAYZ.js} +1 -1
  67. package/dist/{chunk-JFSAQQO2.js → chunk-ARTOOCLW.js} +1 -1
  68. package/dist/{chunk-5AY2STJB.js → chunk-BKTWGQLC.js} +30 -10
  69. package/dist/{chunk-FGYQI6YP.js → chunk-CJRHVIUJ.js} +1 -1
  70. package/dist/{chunk-GAJ5BULC.js → chunk-CR5X46JQ.js} +1 -1
  71. package/dist/{chunk-SWUBCXOZ.js → chunk-CXLHBAN4.js} +3 -3
  72. package/dist/{chunk-NQAET7YS.js → chunk-FBDVDCMC.js} +9 -6
  73. package/dist/{chunk-SK65JVE3.js → chunk-FCIJEVDH.js} +1 -1
  74. package/dist/{chunk-NQQDBWMM.js → chunk-FJJRXIZC.js} +7 -7
  75. package/dist/{chunk-AYITBDTL.js → chunk-FUZSKAEQ.js} +3 -3
  76. package/dist/{chunk-X6KWCU54.js → chunk-FYAEQIYF.js} +4 -4
  77. package/dist/{chunk-QMXE2YQO.js → chunk-G4UCXWJX.js} +6 -6
  78. package/dist/{chunk-5SGCCWNR.js → chunk-GJ5XTWNZ.js} +1 -1
  79. package/dist/{chunk-ERVRBZNI.js → chunk-GKMSHV5D.js} +2 -2
  80. package/dist/{chunk-XRURBIKQ.js → chunk-GKTQXPUM.js} +1 -1
  81. package/dist/{chunk-TC6DWKY5.js → chunk-HFDNWC2K.js} +1 -1
  82. package/dist/{chunk-RYK2DXDF.js → chunk-HT4WO7V6.js} +7 -7
  83. package/dist/{chunk-TFCNGH7V.js → chunk-ID7W4YBQ.js} +1 -1
  84. package/dist/{chunk-BV74A4Q3.js → chunk-IHG2TFXZ.js} +3 -3
  85. package/dist/{chunk-VM6WBORP.js → chunk-JKM7YRYV.js} +141 -7
  86. package/dist/{chunk-Q2NOGE3Y.js → chunk-JYDVDSBM.js} +8 -13
  87. package/dist/{chunk-CJAHB4QY.js → chunk-K3HFMX5R.js} +6 -6
  88. package/dist/{chunk-7WVGOW6O.js → chunk-K5IPDN4D.js} +5 -5
  89. package/dist/{chunk-VUUC2V3L.js → chunk-KJA5JZXV.js} +2 -2
  90. package/dist/{chunk-VIKKRYII.js → chunk-KQRWWJLF.js} +1 -1
  91. package/dist/{chunk-BPEYHTXU.js → chunk-LBPGPPHU.js} +2 -2
  92. package/dist/{chunk-TSUPVKMX.js → chunk-NTNEBBYW.js} +10 -10
  93. package/dist/{chunk-52CYFOP4.js → chunk-O372NWUI.js} +5 -5
  94. package/dist/{chunk-SA634ZQS.js → chunk-ODF2RMXP.js} +4 -4
  95. package/dist/{chunk-ADNPGA5K.js → chunk-OLD2IPCZ.js} +6 -6
  96. package/dist/{chunk-5QEFRYVG.js → chunk-OV7W5JYC.js} +9 -9
  97. package/dist/{chunk-YOM5NVDW.js → chunk-PKDU2BY4.js} +3 -3
  98. package/dist/{chunk-JF3IB3QX.js → chunk-POXHWH73.js} +14 -3
  99. package/dist/{chunk-JSTAZSTC.js → chunk-PSKPKVM6.js} +1 -1
  100. package/dist/{chunk-HUDP6NKM.js → chunk-QEMU3P55.js} +3 -3
  101. package/dist/{chunk-7V4ZAQNO.js → chunk-QLKIY3FD.js} +1 -1
  102. package/dist/{chunk-XELCQFDJ.js → chunk-QQEJDPYK.js} +1 -1
  103. package/dist/{chunk-3MO2JND5.js → chunk-RDWNFNDW.js} +4 -4
  104. package/dist/{chunk-NPYCMOFC.js → chunk-RE5KA47K.js} +3 -3
  105. package/dist/{chunk-E2WCYHXF.js → chunk-RN2PB5JJ.js} +5 -5
  106. package/dist/{chunk-TAKPXBNF.js → chunk-RZISUO3M.js} +23 -13
  107. package/dist/{chunk-VXXWVOKF.js → chunk-SGOP6D4K.js} +1 -1
  108. package/dist/{chunk-EH6ATZZU.js → chunk-SK6242SK.js} +2 -2
  109. package/dist/{chunk-GTNSTDUB.js → chunk-SR3FOAJE.js} +2 -2
  110. package/dist/{chunk-LEOHGIZ5.js → chunk-T63XZCBU.js} +5 -5
  111. package/dist/{chunk-GTHM6XOG.js → chunk-TBCV2U6Y.js} +1 -1
  112. package/dist/{chunk-GXGJYRAN.js → chunk-UPZHYN4N.js} +4 -4
  113. package/dist/{chunk-V3PYEJRY.js → chunk-UQQN6ST3.js} +1 -1
  114. package/dist/{chunk-IYGEE7XO.js → chunk-VKGJ4XY5.js} +1 -1
  115. package/dist/{chunk-JA6DFYFJ.js → chunk-VUCXVBDQ.js} +3 -3
  116. package/dist/{chunk-AJV7HEGB.js → chunk-VZD4SLJE.js} +15 -13
  117. package/dist/{chunk-XMZEG5QB.js → chunk-W6PL3FPJ.js} +4 -4
  118. package/dist/{chunk-W7EUKTEI.js → chunk-W7Z4GJZI.js} +3 -3
  119. package/dist/{chunk-GC64OIDA.js → chunk-WIWFIQL4.js} +2 -2
  120. package/dist/{chunk-VQLAGEHH.js → chunk-WXWWCODY.js} +1 -1
  121. package/dist/{chunk-SOMSKUI6.js → chunk-Y3OHWGZV.js} +2 -2
  122. package/dist/{chunk-E4AOJK33.js → chunk-YN4Q3ZXZ.js} +6 -4
  123. package/dist/{chunk-SW33W47V.js → chunk-Z6QGSQEN.js} +4 -4
  124. package/dist/{chunk-7Y4AMZG3.js → chunk-ZJYSZDFR.js} +1 -1
  125. package/dist/{chunk-GILLSUOE.js → chunk-ZRDDV7QK.js} +5 -5
  126. package/dist/{chunk-RMASRYS4.js → chunk-ZYXC6ZEQ.js} +1 -1
  127. package/dist/{codex-app-cards-switch-VSNLHN5H.js → codex-app-cards-switch-3A5N6T77.js} +11 -11
  128. package/dist/{codex-card-routing-EBLLT4JN.js → codex-card-routing-SYP6VQTQ.js} +2 -2
  129. package/dist/{codex-desktop-launch-XGXKINN5.js → codex-desktop-launch-XFYCWMO6.js} +1 -1
  130. package/dist/{codex-session-launch-YQNK4MEM.js → codex-session-launch-O4ZB2CTG.js} +20 -20
  131. package/dist/{config-QTON6UUP.js → config-KVGNGI6J.js} +3 -3
  132. package/dist/{global-upgrade-AOZNS5TM.js → global-upgrade-MRY3EP7V.js} +9 -9
  133. package/dist/{identity-TILIXUYO.js → identity-PSFVJNH5.js} +4 -4
  134. package/dist/{live-capabilities-BE7NSCFI.js → live-capabilities-VBKANCXF.js} +4 -4
  135. package/dist/{paths-MIWMKITN.js → paths-JPEMX4YI.js} +3 -3
  136. package/dist/reapply-TBGC63MP.js +74 -0
  137. package/dist/src/index.d.ts +2 -21
  138. package/dist/src/index.js +33 -35
  139. package/dist/{upgrade-lock-N75TGVFZ.js → upgrade-lock-RW44O57U.js} +4 -4
  140. package/dist/{usage-IH2QUEKB.js → usage-NCJLUCAW.js} +3 -3
  141. package/package.json +1 -1
  142. package/dist/chunk-BXFI56J5.js +0 -78
  143. package/dist/chunk-ELY55B2S.js +0 -162
  144. package/dist/chunk-SHK2PLZC.js +0 -39
  145. package/dist/reapply-NBOQ7UO2.js +0 -75
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  projectNameFor
3
- } from "./chunk-7V4ZAQNO.js";
3
+ } from "./chunk-QLKIY3FD.js";
4
4
  import {
5
5
  readConfigFileKey
6
- } from "./chunk-YOM5NVDW.js";
6
+ } from "./chunk-PKDU2BY4.js";
7
7
 
8
8
  // src/bell/fleet.ts
9
9
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-GTNSTDUB.js";
3
+ } from "./chunk-SR3FOAJE.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-PM2NRK6Y.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-JF3IB3QX.js";
9
+ } from "./chunk-POXHWH73.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-BG4HHB7E.js";
8
8
  import {
9
9
  redactSecretsFromContent
10
- } from "./chunk-JF3IB3QX.js";
10
+ } from "./chunk-POXHWH73.js";
11
11
 
12
12
  // src/cli/json.ts
13
13
  var buildEnvelope = (command, version, data, errors = []) => ({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-JF3IB3QX.js";
3
+ } from "./chunk-POXHWH73.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-JF3IB3QX.js";
4
+ } from "./chunk-POXHWH73.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-BV74A4Q3.js";
16
+ } from "./chunk-IHG2TFXZ.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-GTNSTDUB.js";
28
+ } from "./chunk-SR3FOAJE.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-E4AOJK33.js";
31
+ } from "./chunk-YN4Q3ZXZ.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-JF3IB3QX.js";
42
+ } from "./chunk-POXHWH73.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,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-GTNSTDUB.js";
3
+ } from "./chunk-SR3FOAJE.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-JF3IB3QX.js";
4
+ } from "./chunk-POXHWH73.js";
5
5
 
6
6
  // src/setup/phone-check.ts
7
7
  var planPhoneCheck = (context) => {
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-E4AOJK33.js";
6
+ } from "./chunk-YN4Q3ZXZ.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-VIKKRYII.js";
12
+ } from "./chunk-KQRWWJLF.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-JF3IB3QX.js";
15
+ } from "./chunk-POXHWH73.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -1,18 +1,19 @@
1
1
  import {
2
- CODEX_HOOK_STATUS
3
- } from "./chunk-VM6WBORP.js";
2
+ CODEX_HOOK_STATUS,
3
+ HERMES_HISTORY_HELPER_COMMAND
4
+ } from "./chunk-JKM7YRYV.js";
4
5
  import {
5
6
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
6
7
  HERMES_COMMAND_ALLOWLIST_KEY,
7
8
  HERMES_GATE_TOOLS_KEY,
8
9
  HERMES_SHELL_TOOL
9
- } from "./chunk-5AY2STJB.js";
10
+ } from "./chunk-BKTWGQLC.js";
10
11
  import {
11
12
  retryAgentCommand
12
- } from "./chunk-SWUBCXOZ.js";
13
+ } from "./chunk-CXLHBAN4.js";
13
14
  import {
14
15
  NPX_LATEST_COMMAND
15
- } from "./chunk-VIKKRYII.js";
16
+ } from "./chunk-KQRWWJLF.js";
16
17
 
17
18
  // src/setup/codex-trust.ts
18
19
  var CODEX_TRUST_TELEMETRY = {
@@ -92,7 +93,9 @@ var describeHermesHistoryInstallFailure = (detail, nextStep) => `Hermes session
92
93
  var describeHermesHistoryHelperRecord = (outcome, packageName, version, shownPath) => {
93
94
  switch (outcome.kind) {
94
95
  case "on_path":
95
- return "Hermes on Windows finds pushary-transcript-register on PATH. Make the global npm bin directory available to the Hermes process.";
96
+ return `Hermes session history runs ${HERMES_HISTORY_HELPER_COMMAND} from ${outcome.directory}, which is on PATH`;
97
+ case "not_on_path":
98
+ return `Hermes on Windows runs the first ${HERMES_HISTORY_HELPER_COMMAND} on PATH, and PATH does not lead to the one npm installed in ${outcome.directory}. Add that folder to your user PATH ahead of any older copy, open a new terminal, then run \`${HERMES_RESTART_COMMAND}\`.`;
96
99
  case "written":
97
100
  return `Hermes session history helper recorded in ${shownPath}`;
98
101
  case "unchanged":
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-TFCNGH7V.js";
7
+ } from "./chunk-ID7W4YBQ.js";
8
8
 
9
9
  // src/command-receipts.ts
10
10
  import { randomUUID } from "crypto";
@@ -3,7 +3,7 @@ import {
3
3
  openCodePluginArgv,
4
4
  openCodePluginModule,
5
5
  renderOpenCodePlugin
6
- } from "./chunk-XELCQFDJ.js";
6
+ } from "./chunk-QQEJDPYK.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-JSTAZSTC.js";
15
+ } from "./chunk-PSKPKVM6.js";
16
16
  import {
17
17
  compatibleConfigFile
18
- } from "./chunk-E2WCYHXF.js";
18
+ } from "./chunk-RN2PB5JJ.js";
19
19
  import {
20
20
  hookOwnerOf,
21
21
  hookOwnerOfCommands
22
- } from "./chunk-SW33W47V.js";
22
+ } from "./chunk-Z6QGSQEN.js";
23
23
  import {
24
24
  AGENT_CHOICES
25
- } from "./chunk-IYGEE7XO.js";
25
+ } from "./chunk-VKGJ4XY5.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-GTNSTDUB.js";
39
+ } from "./chunk-SR3FOAJE.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-JF3IB3QX.js";
49
+ } from "./chunk-POXHWH73.js";
50
50
 
51
51
  // src/opencode-config.ts
52
52
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-IYGEE7XO.js";
3
+ } from "./chunk-VKGJ4XY5.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-VIKKRYII.js";
12
+ } from "./chunk-KQRWWJLF.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-JF3IB3QX.js";
20
+ } from "./chunk-POXHWH73.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-YOM5NVDW.js";
16
+ } from "./chunk-PKDU2BY4.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-7Y4AMZG3.js";
19
+ } from "./chunk-ZJYSZDFR.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-VIKKRYII.js";
22
+ } from "./chunk-KQRWWJLF.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-JF3IB3QX.js";
25
+ } from "./chunk-POXHWH73.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-ADNPGA5K.js";
17
+ } from "./chunk-OLD2IPCZ.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-RMASRYS4.js";
32
+ } from "./chunk-ZYXC6ZEQ.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-JJB34JRR.js";
35
+ } from "./chunk-47G72ONB.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-SOMSKUI6.js";
38
+ } from "./chunk-Y3OHWGZV.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-VIKKRYII.js";
41
+ } from "./chunk-KQRWWJLF.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-JF3IB3QX.js";
45
+ } from "./chunk-POXHWH73.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-YOM5NVDW.js";
3
+ } from "./chunk-PKDU2BY4.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TCE3J44Z.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-E4AOJK33.js";
6
+ } from "./chunk-YN4Q3ZXZ.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-JF3IB3QX.js";
9
+ } from "./chunk-POXHWH73.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-JF3IB3QX.js";
3
+ } from "./chunk-POXHWH73.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-JF3IB3QX.js";
8
+ } from "./chunk-POXHWH73.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -2,31 +2,31 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-672F6V2L.js";
5
+ } from "./chunk-4NJBLOER.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-VUUC2V3L.js";
8
+ } from "./chunk-KJA5JZXV.js";
9
9
  import {
10
10
  createIo
11
- } from "./chunk-RMASRYS4.js";
11
+ } from "./chunk-ZYXC6ZEQ.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-JJB34JRR.js";
17
+ } from "./chunk-47G72ONB.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-YOM5NVDW.js";
20
+ } from "./chunk-PKDU2BY4.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-7Y4AMZG3.js";
23
+ } from "./chunk-ZJYSZDFR.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-JF3IB3QX.js";
29
+ } from "./chunk-POXHWH73.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-JF3IB3QX.js";
3
+ } from "./chunk-POXHWH73.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -5,13 +5,13 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-GTNSTDUB.js";
8
+ } from "./chunk-SR3FOAJE.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-E4AOJK33.js";
11
+ } from "./chunk-YN4Q3ZXZ.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-JF3IB3QX.js";
14
+ } from "./chunk-POXHWH73.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";