pushary 1.9.195 → 1.9.197
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 +8 -0
- package/dist/bin/pushary-clean.js +1 -1
- package/dist/bin/pushary-codex-hook.js +1 -1
- package/dist/bin/pushary-daemon.js +2 -2
- package/dist/bin/pushary-doctor.js +3 -3
- package/dist/bin/pushary-session-start-hook.js +2 -2
- package/dist/bin/pushary-setup.js +3 -3
- package/dist/bin/pushary-upgrade.js +3 -3
- package/dist/{chunk-RL5LF7JZ.js → chunk-GD6CBQ63.js} +1 -1
- package/dist/{chunk-23NHXO6T.js → chunk-LM26Y7DH.js} +1 -1
- package/dist/{chunk-SS5PB32H.js → chunk-VOCHDDKR.js} +1 -1
- package/dist/{chunk-HNHRPMND.js → chunk-ZSGTT4ME.js} +35 -5
- package/dist/{reapply-3BXOHGEE.js → reapply-JZGPI6JU.js} +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.197
|
|
4
|
+
|
|
5
|
+
- Hermes conversations can now reach your phone on a Mac where the Pushary app has Session history on and Hermes uses the app's Pushary key. Hermes plugin 1.0.3 and earlier looked for the app's history helper in `~/.pushary/bin`, where the app never puts it, so Hermes history was never saved there. The bundled plugin (1.0.4) finds the helper inside Pushary.app. A copy the Mac app installed updates with the next Mac release. A Hermes without its Pushary key no longer logs that the history reader could not start.
|
|
6
|
+
|
|
7
|
+
## 1.9.196
|
|
8
|
+
|
|
9
|
+
- The bundled Hermes plugin (1.0.3) includes the marketplace quickstart: connect your phone, ask one test question and check the answer. Approval behavior is unchanged.
|
|
10
|
+
|
|
3
11
|
## 1.9.195
|
|
4
12
|
|
|
5
13
|
- Session history now reaches your phone for a session Pushary had no record of, for example one whose start never reached the server. The server used to refuse every upload for such a session, and history kept retrying once a minute for up to two days without saving anything. After the first refusal, the next upload names the agent and the project folder, and the server records the session then. A session the server already knows is unchanged.
|
|
@@ -1080,7 +1080,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
var repairCodexHoldsQuietly = async () => {
|
|
1082
1082
|
try {
|
|
1083
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
1083
|
+
const { repairCodexHolds } = await import("../reapply-JZGPI6JU.js");
|
|
1084
1084
|
repairCodexHolds();
|
|
1085
1085
|
} catch {
|
|
1086
1086
|
return;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "../chunk-ENEMHGBE.js";
|
|
6
6
|
import {
|
|
7
7
|
inspectConfiguredManagedProviders
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-VOCHDDKR.js";
|
|
9
9
|
import "../chunk-T776F2FQ.js";
|
|
10
10
|
import "../chunk-ERVXMMGO.js";
|
|
11
11
|
import {
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
HERMES_INSTALL_MARKER_FILE,
|
|
25
25
|
defaultHermesHome,
|
|
26
26
|
parseHermesInstallMarker
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-ZSGTT4ME.js";
|
|
28
28
|
import {
|
|
29
29
|
writeHuman
|
|
30
30
|
} from "../chunk-QCGNGEGE.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
openClawRepairStep,
|
|
5
5
|
readHermesShellGate,
|
|
6
6
|
readSetupFailure
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-LM26Y7DH.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-
|
|
15
|
+
} from "../chunk-GD6CBQ63.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-
|
|
84
|
+
} from "../chunk-ZSGTT4ME.js";
|
|
85
85
|
import "../chunk-QCGNGEGE.js";
|
|
86
86
|
import {
|
|
87
87
|
findOpenClawLauncher,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reapplyClaudeForVersion
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VOCHDDKR.js";
|
|
5
5
|
import "../chunk-V3PMKMAO.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZSGTT4ME.js";
|
|
7
7
|
import "../chunk-ZDROZABP.js";
|
|
8
8
|
import "../chunk-DFTVEK72.js";
|
|
9
9
|
import "../chunk-ZGS5TMMV.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
gateHermesShell,
|
|
68
68
|
readHermesShellGate,
|
|
69
69
|
saveSetupFailure
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-LM26Y7DH.js";
|
|
71
71
|
import {
|
|
72
72
|
CODEX_NEEDS_A_NEWER_VERSION,
|
|
73
73
|
CODEX_SETTINGS_STOP_A_HOOK,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
describeHermesState,
|
|
82
82
|
hermesGateShellCommand,
|
|
83
83
|
needsCodexTrustStep
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-GD6CBQ63.js";
|
|
85
85
|
import {
|
|
86
86
|
describeWaitLadder
|
|
87
87
|
} from "../chunk-CVWG2N3Y.js";
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
routesHermesQuestions,
|
|
179
179
|
runsAnOlderPlugin,
|
|
180
180
|
shippedHermesPlugin
|
|
181
|
-
} from "../chunk-
|
|
181
|
+
} from "../chunk-ZSGTT4ME.js";
|
|
182
182
|
import {
|
|
183
183
|
setHumanStream
|
|
184
184
|
} from "../chunk-QCGNGEGE.js";
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
ensureCodexTrustAfterReapply,
|
|
30
30
|
reapplyAllAgents
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-VOCHDDKR.js";
|
|
32
32
|
import {
|
|
33
33
|
HERMES_RESTART_COMMAND,
|
|
34
34
|
describeCodexTrustConfirmation
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-GD6CBQ63.js";
|
|
36
36
|
import "../chunk-44SARVA4.js";
|
|
37
37
|
import {
|
|
38
38
|
keepLinuxDaemonAfterLogout,
|
|
@@ -45,7 +45,7 @@ import "../chunk-V3PMKMAO.js";
|
|
|
45
45
|
import {
|
|
46
46
|
readMacAppAgentKey
|
|
47
47
|
} from "../chunk-GHMCSDAN.js";
|
|
48
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-ZSGTT4ME.js";
|
|
49
49
|
import "../chunk-ZDROZABP.js";
|
|
50
50
|
import {
|
|
51
51
|
FX_RELOAD_AFTER_BRIDGE,
|
|
@@ -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.
|
|
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.4",\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
|
|
@@ -1625,6 +1625,10 @@ HELPER_ENVIRONMENT_NAMES = frozenset({
|
|
|
1625
1625
|
"SYSTEMROOT", "PATHEXT", "COMSPEC", "USERPROFILE", "APPDATA", "LOCALAPPDATA", "TEMP", "TMP",
|
|
1626
1626
|
"PUSHARY_BASE_URL", "PUSHARY_API_URL", "PUSHARY_CONFIG_FILE", "PUSHARY_TRANSCRIPTS", "PUSHARY_TRANSCRIPT_REGISTRY_DIR",
|
|
1627
1627
|
})
|
|
1628
|
+
NATIVE_HELPER_NAME = "pushary-native-transcripts"
|
|
1629
|
+
PUSHARY_APP_NAME = "Pushary.app"
|
|
1630
|
+
PUSHARY_APP_HELPER = Path("Contents") / "Helpers" / NATIVE_HELPER_NAME
|
|
1631
|
+
SYSTEM_APPLICATIONS = Path("/Applications")
|
|
1628
1632
|
|
|
1629
1633
|
|
|
1630
1634
|
class _Authorization(NamedTuple):
|
|
@@ -1760,12 +1764,34 @@ def _registration_environment(key: str) -> dict[str, str]:
|
|
|
1760
1764
|
return {**_helper_environment(), "PUSHARY_API_KEY": key, "PUSHARY_BASE_URL": api.BASE_URL}
|
|
1761
1765
|
|
|
1762
1766
|
|
|
1767
|
+
def _cached_pushary_app(root: Path) -> Path | None:
|
|
1768
|
+
try:
|
|
1769
|
+
lines = (root / "bin" / ".bridge-cache").read_text(encoding="utf-8").splitlines()
|
|
1770
|
+
except (OSError, ValueError):
|
|
1771
|
+
return None
|
|
1772
|
+
cached = Path(lines[0].strip()) if lines and lines[0].strip() else None
|
|
1773
|
+
return cached if cached is not None and cached.is_absolute() else None
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
def _is_executable_file(path: Path) -> bool:
|
|
1777
|
+
return path.is_file() and os.access(path, os.X_OK)
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
def _native_helper(root: Path) -> Path | None:
|
|
1781
|
+
bridge = (root / "bin" / "pushary-bridge").resolve(strict=True)
|
|
1782
|
+
apps = (SYSTEM_APPLICATIONS / PUSHARY_APP_NAME, Path.home() / "Applications" / PUSHARY_APP_NAME, _cached_pushary_app(root))
|
|
1783
|
+
candidates = (bridge.parent / NATIVE_HELPER_NAME, *(app / PUSHARY_APP_HELPER for app in apps if app is not None))
|
|
1784
|
+
return next((helper for helper in candidates if _is_executable_file(helper)), None)
|
|
1785
|
+
|
|
1786
|
+
|
|
1763
1787
|
def _registration_command(key: str) -> list[str] | None:
|
|
1764
1788
|
root = Path.home() / ".pushary"
|
|
1765
1789
|
try:
|
|
1766
1790
|
if (root / "native-transcript-consent.json").exists():
|
|
1767
|
-
|
|
1768
|
-
|
|
1791
|
+
native_helper = _native_helper(root)
|
|
1792
|
+
if native_helper is None:
|
|
1793
|
+
return None
|
|
1794
|
+
helper = str(native_helper)
|
|
1769
1795
|
command = [helper, "register", "hermes"]
|
|
1770
1796
|
else:
|
|
1771
1797
|
helper = shutil.which("pushary-transcript-register")
|
|
@@ -1957,7 +1983,10 @@ def start_history(session_id: object, parent_session_id: object = None) -> None:
|
|
|
1957
1983
|
with _lock:
|
|
1958
1984
|
if identity in _workers or len(_workers) >= 32:
|
|
1959
1985
|
return
|
|
1960
|
-
|
|
1986
|
+
try:
|
|
1987
|
+
key = api._get_api_key()
|
|
1988
|
+
except ValueError:
|
|
1989
|
+
return
|
|
1961
1990
|
command = _authorized_command(key)
|
|
1962
1991
|
if command is None:
|
|
1963
1992
|
_report_history_not_allowed_once()
|
|
@@ -2126,7 +2155,8 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
|
|
|
2126
2155
|
logger.debug("[pushary] could not record the plugin load: %s", exc)
|
|
2127
2156
|
return None
|
|
2128
2157
|
` },
|
|
2129
|
-
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.
|
|
2158
|
+
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.4\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' },
|
|
2159
|
+
{ 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" },
|
|
2130
2160
|
{ path: "schemas.py", contents: `PUSHARY_REMIND = {
|
|
2131
2161
|
"name": "pushary_remind",
|
|
2132
2162
|
"description": "Schedule a one-time personal reminder on Pushary, even after Hermes exits. Use body plus in_minutes or at (ISO timestamp with explicit UTC offset, within 30 days). Never guess the user's timezone. Confirm the returned time. No arguments lists pending reminders; cancel_reminder_id cancels a scheduled one. Use Hermes cron for agent work; use this for reminding the operator.",
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
reapplyOpenCodePlugin,
|
|
13
13
|
reapplyVsCodePlugin,
|
|
14
14
|
repairCodexHolds
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VOCHDDKR.js";
|
|
16
16
|
import "./chunk-V3PMKMAO.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-ZSGTT4ME.js";
|
|
18
18
|
import "./chunk-ZDROZABP.js";
|
|
19
19
|
import "./chunk-DFTVEK72.js";
|
|
20
20
|
import "./chunk-ZGS5TMMV.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushary",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.197",
|
|
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",
|