pushary 1.9.204 → 1.9.205

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.205
4
+
5
+ - On Windows, Hermes 1.0.6 finds its history helper through the Hermes process PATH. Setup keeps the global helper installation and skips the saved command record there.
6
+
3
7
  ## 1.9.204
4
8
 
5
9
  - Windows setup forwards each argument separately when starting a release selected by npm policy.
@@ -57,7 +57,7 @@ import {
57
57
  openClawRemovalLeavesThePluginInstalled,
58
58
  removeHermesWiring,
59
59
  removeOpenClawPlugin
60
- } from "../chunk-NE6LKCGR.js";
60
+ } from "../chunk-OOE354IG.js";
61
61
  import "../chunk-QCGNGEGE.js";
62
62
  import {
63
63
  OPENCLAW_PLUGIN_PACKAGE
@@ -1079,7 +1079,7 @@ var decidePreToolUse = async (input) => {
1079
1079
  };
1080
1080
  var repairCodexHoldsQuietly = async () => {
1081
1081
  try {
1082
- const { repairCodexHolds } = await import("../reapply-RGEME3JA.js");
1082
+ const { repairCodexHolds } = await import("../reapply-EPHMTGFP.js");
1083
1083
  repairCodexHolds();
1084
1084
  } catch {
1085
1085
  return;
@@ -5,8 +5,8 @@ import {
5
5
  } from "../chunk-3WPXWHEM.js";
6
6
  import {
7
7
  inspectConfiguredManagedProviders
8
- } from "../chunk-CQP7P52T.js";
9
- import "../chunk-XCULMPQO.js";
8
+ } from "../chunk-WIN65UQX.js";
9
+ import "../chunk-KH3U44ZK.js";
10
10
  import "../chunk-TWWOQKXK.js";
11
11
  import "../chunk-TTE7QIW5.js";
12
12
  import "../chunk-2Y7MJQCN.js";
@@ -26,7 +26,7 @@ import {
26
26
  HERMES_INSTALL_MARKER_FILE,
27
27
  defaultHermesHome,
28
28
  parseHermesInstallMarker
29
- } from "../chunk-NE6LKCGR.js";
29
+ } from "../chunk-OOE354IG.js";
30
30
  import {
31
31
  writeHuman
32
32
  } from "../chunk-QCGNGEGE.js";
@@ -4,7 +4,7 @@ import {
4
4
  openClawRepairStep,
5
5
  readHermesShellGate,
6
6
  readSetupFailure
7
- } from "../chunk-33GWNNFN.js";
7
+ } from "../chunk-P4RSWFWB.js";
8
8
  import {
9
9
  CODEX_HOOK_REMEDY,
10
10
  HERMES_RESTART_COMMAND,
@@ -12,7 +12,7 @@ import {
12
12
  describeHermesShellGate,
13
13
  describeHermesState,
14
14
  hermesRepairStep
15
- } from "../chunk-QKKNYXIU.js";
15
+ } from "../chunk-2WHNR3ER.js";
16
16
  import {
17
17
  describeWaitLadder
18
18
  } from "../chunk-CVWG2N3Y.js";
@@ -81,7 +81,7 @@ import {
81
81
  routesHermesQuestions,
82
82
  runsAnOlderPlugin,
83
83
  shippedHermesPlugin
84
- } from "../chunk-NE6LKCGR.js";
84
+ } from "../chunk-OOE354IG.js";
85
85
  import "../chunk-QCGNGEGE.js";
86
86
  import {
87
87
  findOpenClawLauncher,
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  reapplyClaudeForVersion
4
- } from "../chunk-CQP7P52T.js";
5
- import "../chunk-XCULMPQO.js";
4
+ } from "../chunk-WIN65UQX.js";
5
+ import "../chunk-KH3U44ZK.js";
6
6
  import "../chunk-TWWOQKXK.js";
7
7
  import "../chunk-3W5OVQ66.js";
8
- import "../chunk-NE6LKCGR.js";
8
+ import "../chunk-OOE354IG.js";
9
9
  import "../chunk-N62TAZJE.js";
10
10
  import "../chunk-2RJQKHS2.js";
11
11
  import "../chunk-N4QFPPSM.js";
@@ -56,7 +56,7 @@ import {
56
56
  hermesHistoryHelperRecordPath,
57
57
  hermesHistoryNeedsTheCliHelper,
58
58
  recordInstalledHermesHistoryHelper
59
- } from "../chunk-XCULMPQO.js";
59
+ } from "../chunk-KH3U44ZK.js";
60
60
  import {
61
61
  macAppHistoryDecision,
62
62
  nativeBridgeAccount
@@ -73,7 +73,7 @@ import {
73
73
  gateHermesShell,
74
74
  readHermesShellGate,
75
75
  saveSetupFailure
76
- } from "../chunk-33GWNNFN.js";
76
+ } from "../chunk-P4RSWFWB.js";
77
77
  import {
78
78
  CODEX_NEEDS_A_NEWER_VERSION,
79
79
  CODEX_SETTINGS_STOP_A_HOOK,
@@ -89,7 +89,7 @@ import {
89
89
  describeHermesState,
90
90
  hermesGateShellCommand,
91
91
  needsCodexTrustStep
92
- } from "../chunk-QKKNYXIU.js";
92
+ } from "../chunk-2WHNR3ER.js";
93
93
  import {
94
94
  describeWaitLadder
95
95
  } from "../chunk-CVWG2N3Y.js";
@@ -189,7 +189,7 @@ import {
189
189
  routesHermesQuestions,
190
190
  runsAnOlderPlugin,
191
191
  shippedHermesPlugin
192
- } from "../chunk-NE6LKCGR.js";
192
+ } from "../chunk-OOE354IG.js";
193
193
  import {
194
194
  setHumanStream
195
195
  } from "../chunk-QCGNGEGE.js";
@@ -1341,7 +1341,7 @@ var connectHermesHistoryHelper = async (context) => {
1341
1341
  const shownPath = shortenHome(hermesHistoryHelperRecordPath(pusharyDir()));
1342
1342
  const message = describeHermesHistoryHelperRecord(outcome, plannedGlobalPackage(), getPackageVersion(), shownPath);
1343
1343
  if (message === null) return;
1344
- if (outcome.kind === "written") console.log(` ${check} ${message}`);
1344
+ if (outcome.kind === "written" || outcome.kind === "on_path") console.log(` ${check} ${message}`);
1345
1345
  else reportHermesHistoryProblem(message);
1346
1346
  };
1347
1347
  var setupHermes = async (_apiKey, context) => {
@@ -28,17 +28,17 @@ import {
28
28
  import {
29
29
  ensureCodexTrustAfterReapply,
30
30
  reapplyAllAgents
31
- } from "../chunk-CQP7P52T.js";
31
+ } from "../chunk-WIN65UQX.js";
32
32
  import {
33
33
  hermesHistoryHelperRecordFailed,
34
34
  hermesHistoryHelperRecordPath
35
- } from "../chunk-XCULMPQO.js";
35
+ } from "../chunk-KH3U44ZK.js";
36
36
  import "../chunk-TWWOQKXK.js";
37
37
  import {
38
38
  HERMES_RESTART_COMMAND,
39
39
  describeCodexTrustConfirmation,
40
40
  describeHermesHistoryHelperRecord
41
- } from "../chunk-QKKNYXIU.js";
41
+ } from "../chunk-2WHNR3ER.js";
42
42
  import "../chunk-RDFQOEPF.js";
43
43
  import {
44
44
  keepLinuxDaemonAfterLogout,
@@ -54,7 +54,7 @@ import {
54
54
  import {
55
55
  readMacAppAgentKey
56
56
  } from "../chunk-XEFPE5MQ.js";
57
- import "../chunk-NE6LKCGR.js";
57
+ import "../chunk-OOE354IG.js";
58
58
  import "../chunk-N62TAZJE.js";
59
59
  import {
60
60
  FX_RELOAD_AFTER_BRIDGE,
@@ -6,7 +6,7 @@ import {
6
6
  HERMES_COMMAND_ALLOWLIST_KEY,
7
7
  HERMES_GATE_TOOLS_KEY,
8
8
  HERMES_SHELL_TOOL
9
- } from "./chunk-NE6LKCGR.js";
9
+ } from "./chunk-OOE354IG.js";
10
10
  import {
11
11
  retryAgentCommand
12
12
  } from "./chunk-N4QFPPSM.js";
@@ -91,6 +91,8 @@ var withoutClosingPeriod = (sentence) => sentence.trim().replace(/\.$/, "");
91
91
  var describeHermesHistoryInstallFailure = (detail, nextStep) => `Hermes session history needs the Pushary CLI installed globally, and that install failed: ${withoutClosingPeriod(detail)}. ${nextStep}`;
92
92
  var describeHermesHistoryHelperRecord = (outcome, packageName, version, shownPath) => {
93
93
  switch (outcome.kind) {
94
+ 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.";
94
96
  case "written":
95
97
  return `Hermes session history helper recorded in ${shownPath}`;
96
98
  case "unchanged":
@@ -64,7 +64,11 @@ var installedHermesHistoryHelper = (execPath) => {
64
64
  const entry = globalTranscriptRegisterEntry(prefix, plannedGlobalPackage(), process.platform);
65
65
  return hermesHistoryHelperRecordFor(serviceNodeFor(execPath, existsSync), entry);
66
66
  };
67
- var recordInstalledHermesHistoryHelper = (pusharyDirectory, execPath = process.execPath) => writeHermesHistoryHelperRecord(installedHermesHistoryHelper(execPath), hermesHistoryHelperRecordPath(pusharyDirectory));
67
+ var recordInstalledHermesHistoryHelper = (pusharyDirectory, execPath = process.execPath, platform = process.platform) => {
68
+ const record = installedHermesHistoryHelper(execPath);
69
+ if (platform === "win32") return record?.command.every((part) => existsSync(part)) ? { kind: "on_path" } : { kind: "helper_not_installed" };
70
+ return writeHermesHistoryHelperRecord(record, hermesHistoryHelperRecordPath(pusharyDirectory));
71
+ };
68
72
 
69
73
  export {
70
74
  hermesHistoryNeedsTheCliHelper,
@@ -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.5",\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.6",\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
@@ -1605,7 +1605,7 @@ import tempfile
1605
1605
  import threading
1606
1606
  import time
1607
1607
  from datetime import datetime, timezone
1608
- from pathlib import Path
1608
+ from pathlib import Path, PureWindowsPath
1609
1609
  from typing import NamedTuple
1610
1610
 
1611
1611
  from . import api
@@ -1793,7 +1793,7 @@ def _native_helper(root: Path) -> Path | None:
1793
1793
  def _is_owner_only_file(info: os.stat_result) -> bool:
1794
1794
  if not stat.S_ISREG(info.st_mode):
1795
1795
  return False
1796
- return os.name == "nt" or (info.st_mode & 0o077 == 0 and info.st_uid == os.getuid())
1796
+ return info.st_mode & 0o077 == 0 and info.st_uid == os.getuid()
1797
1797
 
1798
1798
 
1799
1799
  def _owner_only_record_text(path: Path) -> str | None:
@@ -1821,6 +1821,8 @@ def _runnable_recorded_command(command: list[str]) -> list[str] | None:
1821
1821
 
1822
1822
 
1823
1823
  def _recorded_cli_helper(root: Path) -> list[str] | None:
1824
+ if os.name == "nt":
1825
+ return None
1824
1826
  try:
1825
1827
  text = _owner_only_record_text(root / CLI_HELPER_RECORD)
1826
1828
  value = None if text is None else json.loads(text)
@@ -1829,11 +1831,27 @@ def _recorded_cli_helper(root: Path) -> list[str] | None:
1829
1831
  return _runnable_recorded_command(value["command"]) if _is_recorded_command(value) else None
1830
1832
 
1831
1833
 
1834
+ def _helper_on_path() -> str | None:
1835
+ if os.name != "nt":
1836
+ return shutil.which(CLI_HELPER_NAME)
1837
+ extensions = os.environ.get("PATHEXT", ".COM;.EXE;.BAT;.CMD").split(";")
1838
+ for directory in map(PureWindowsPath, os.get_exec_path()):
1839
+ if not directory.is_absolute():
1840
+ continue
1841
+ for extension in extensions:
1842
+ if extension.upper() not in {".EXE", ".COM", ".CMD", ".BAT"}:
1843
+ continue
1844
+ candidate = str(directory / (CLI_HELPER_NAME + extension))
1845
+ if os.path.isfile(candidate):
1846
+ return candidate
1847
+ return None
1848
+
1849
+
1832
1850
  def _cli_helper(root: Path) -> list[str] | None:
1833
1851
  recorded = _recorded_cli_helper(root)
1834
1852
  if recorded is not None:
1835
1853
  return recorded
1836
- on_path = shutil.which(CLI_HELPER_NAME)
1854
+ on_path = _helper_on_path()
1837
1855
  return [on_path] if on_path else None
1838
1856
 
1839
1857
 
@@ -1876,10 +1894,10 @@ def _file_state(path: Path | None) -> tuple[int, ...] | None:
1876
1894
 
1877
1895
  def _authorization_inputs(key: str) -> tuple[object, ...]:
1878
1896
  root = Path.home() / ".pushary"
1879
- helper = shutil.which(CLI_HELPER_NAME)
1897
+ helper = _helper_on_path()
1880
1898
  sources = (root / "native-transcript-consent.json", root / "bridge-auth", root / "bridge-auth" / "agent-key.json",
1881
1899
  root / "machine-id", root / "bin" / "pushary-bridge", api.pushary_config_path(),
1882
- Path(helper) if helper else None, root / CLI_HELPER_RECORD)
1900
+ Path(helper) if helper else None, root / CLI_HELPER_RECORD if os.name != "nt" else None)
1883
1901
  return (key, api.BASE_URL, os.environ.get("PUSHARY_TRANSCRIPTS"), helper, *(_file_state(source) for source in sources))
1884
1902
 
1885
1903
 
@@ -2208,7 +2226,7 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
2208
2226
  logger.debug("[pushary] could not record the plugin load: %s", exc)
2209
2227
  return None
2210
2228
  ` },
2211
- { path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.5\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' },
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' },
2212
2230
  { 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" },
2213
2231
  { path: "schemas.py", contents: `PUSHARY_REMIND = {
2214
2232
  "name": "pushary_remind",
@@ -18,7 +18,7 @@ import {
18
18
  settingSnapshot,
19
19
  writeHermesSetting,
20
20
  writeSetupReceipt
21
- } from "./chunk-NE6LKCGR.js";
21
+ } from "./chunk-OOE354IG.js";
22
22
  import {
23
23
  OPENCLAW_MIN_VERSION,
24
24
  OPENCLAW_PLUGIN_ID,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  hermesHistoryNeedsTheCliHelper,
3
3
  recordInstalledHermesHistoryHelper
4
- } from "./chunk-XCULMPQO.js";
4
+ } from "./chunk-KH3U44ZK.js";
5
5
  import {
6
6
  macAppHistoryDecision
7
7
  } from "./chunk-TWWOQKXK.js";
@@ -16,7 +16,7 @@ import {
16
16
  refreshHermesPluginFiles,
17
17
  refreshOpenClawPlugin,
18
18
  shippedHermesPlugin
19
- } from "./chunk-NE6LKCGR.js";
19
+ } from "./chunk-OOE354IG.js";
20
20
  import {
21
21
  fxIgnoresInstructionsFile,
22
22
  fxInstructionsBody,
@@ -12,11 +12,11 @@ import {
12
12
  reapplyOpenCodePlugin,
13
13
  reapplyVsCodePlugin,
14
14
  repairCodexHolds
15
- } from "./chunk-CQP7P52T.js";
16
- import "./chunk-XCULMPQO.js";
15
+ } from "./chunk-WIN65UQX.js";
16
+ import "./chunk-KH3U44ZK.js";
17
17
  import "./chunk-TWWOQKXK.js";
18
18
  import "./chunk-3W5OVQ66.js";
19
- import "./chunk-NE6LKCGR.js";
19
+ import "./chunk-OOE354IG.js";
20
20
  import "./chunk-N62TAZJE.js";
21
21
  import "./chunk-2RJQKHS2.js";
22
22
  import "./chunk-N4QFPPSM.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushary",
3
- "version": "1.9.204",
3
+ "version": "1.9.205",
4
4
  "description": "Human-in-the-loop (HITL) for AI agents: ask a person for approvals or answers by push notification. One command connects Claude Code, Codex, Cursor, Gemini CLI and more.",
5
5
  "keywords": [
6
6
  "pushary",