pushary 1.9.232 → 1.9.234
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 +12 -0
- package/README.md +29 -3
- package/data/cursor-plugin/README.md +30 -3
- package/data/openclaw-plugin/README.md +26 -0
- package/data/openclaw-plugin/package.json +1 -1
- package/data/vscode-plugin/README.md +30 -3
- package/dist/{api-OGSNXX5I.js → api-M67GCEPF.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +7 -5
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +26 -24
- package/dist/bin/pushary-logout.js +45 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +79 -73
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -25
- package/dist/bin/pushary-upgrade.js +48 -46
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-KHL6NLZN.js → chunk-256X3DP6.js} +2 -2
- package/dist/{chunk-2SHF7DI5.js → chunk-2BSSRM5U.js} +1 -1
- package/dist/{chunk-W6N2MU2G.js → chunk-2JM3H72Y.js} +1 -1
- package/dist/{chunk-HU5IFHHG.js → chunk-2X7O2QE3.js} +3 -3
- package/dist/{chunk-ETIAYTAI.js → chunk-3ABPJTSC.js} +1 -1
- package/dist/{chunk-CIT3XX7B.js → chunk-3FW2QYX2.js} +11 -11
- package/dist/{chunk-DOC3PQTD.js → chunk-3JIMXIO5.js} +1 -1
- package/dist/{chunk-GKWFLK7K.js → chunk-4JJDUPF5.js} +7 -7
- package/dist/{chunk-MHGXV2UI.js → chunk-5ZTBYRTQ.js} +1 -1
- package/dist/{chunk-MBYHALGD.js → chunk-6MKKNXW6.js} +1 -1
- package/dist/{chunk-546OR2Y5.js → chunk-6RMGY4KP.js} +4 -4
- package/dist/{chunk-WHMZT7EG.js → chunk-6XKHPCFW.js} +2 -2
- package/dist/{chunk-KABI55PA.js → chunk-746XV434.js} +3 -3
- package/dist/{chunk-E6XGP76X.js → chunk-7KIEBY2I.js} +1 -1
- package/dist/{chunk-HCKJEXJJ.js → chunk-7O766ACL.js} +1 -1
- package/dist/{chunk-UKBHJNN4.js → chunk-A3V2JCN3.js} +5 -5
- package/dist/{chunk-TJYY2ZNV.js → chunk-A4QB2DOJ.js} +2 -2
- package/dist/{chunk-RXLKOYN3.js → chunk-ADMVVNW2.js} +1 -1
- package/dist/{chunk-2R5HU7EL.js → chunk-AJCFOXEE.js} +9 -9
- package/dist/{chunk-JGEIHCPR.js → chunk-AS326WXH.js} +6 -6
- package/dist/{chunk-Q473YQNT.js → chunk-BBPSHOSK.js} +4 -4
- package/dist/{chunk-4PWUPWPY.js → chunk-BEEJ3QJP.js} +2 -2
- package/dist/{chunk-PKENJCUM.js → chunk-BM4WXLS6.js} +2 -2
- package/dist/{chunk-QHR2T5EW.js → chunk-BWGJWF7M.js} +10 -10
- package/dist/{chunk-OC5SCORI.js → chunk-DECR2ASU.js} +5 -5
- package/dist/{chunk-WNSBSSTB.js → chunk-DXB3WZQH.js} +1 -1
- package/dist/{chunk-JZZ62IV5.js → chunk-DXLNLE7C.js} +4 -4
- package/dist/{chunk-JGVXURHK.js → chunk-E43Q5IZQ.js} +12 -12
- package/dist/{chunk-KAO2GIZQ.js → chunk-E4XS75YY.js} +1 -1
- package/dist/{chunk-C4PGW3PU.js → chunk-E7QTBSY2.js} +2 -2
- package/dist/{chunk-WNZR4KFV.js → chunk-EA6DCQMW.js} +6 -6
- package/dist/{chunk-X275KIXO.js → chunk-EKCCDM3D.js} +5 -5
- package/dist/{chunk-G6ZSGVZL.js → chunk-FHMZFJJI.js} +3 -3
- package/dist/chunk-FQNL4HE7.js +122 -0
- package/dist/{chunk-HWQFHEHX.js → chunk-G6Y63AZ2.js} +2 -2
- package/dist/{chunk-2UUCN62T.js → chunk-GRWWQNKA.js} +3 -3
- package/dist/{chunk-TM5LRIUB.js → chunk-HEOH4JH3.js} +5 -5
- package/dist/{chunk-LYO34MJ4.js → chunk-HXYZSB4U.js} +3 -3
- package/dist/{chunk-KVLYD2EE.js → chunk-IAUCVHGV.js} +1 -1
- package/dist/{chunk-SOIG3VQU.js → chunk-IPVZPZBT.js} +5 -5
- package/dist/{chunk-URMAZGQN.js → chunk-IX2DIIR5.js} +2 -2
- package/dist/{chunk-32ZIGQNS.js → chunk-J3LMHXHV.js} +1 -1
- package/dist/{chunk-KJMIFUE2.js → chunk-J6CSPMZF.js} +4 -4
- package/dist/{chunk-GIF3SFYU.js → chunk-JCRH5R45.js} +4 -4
- package/dist/{chunk-R24OYTI5.js → chunk-JD67C7KL.js} +3 -111
- package/dist/{chunk-TAW3Z5NA.js → chunk-JMHS55ZS.js} +3 -3
- package/dist/{chunk-5JB4JJF5.js → chunk-JO7YECNL.js} +1 -1
- package/dist/{chunk-UDPXFSUQ.js → chunk-KAHKKD4R.js} +2 -2
- package/dist/{chunk-X5M3LLDZ.js → chunk-KKVTBTX5.js} +5 -5
- package/dist/{chunk-XT7RG6WO.js → chunk-KNM3GFV5.js} +7 -7
- package/dist/{chunk-4UKOA6F5.js → chunk-LT2X6GMR.js} +3 -3
- package/dist/{chunk-W7HK5KMH.js → chunk-MCJGCJUQ.js} +1 -1
- package/dist/{chunk-5F2FKQQ6.js → chunk-MNVPOPER.js} +2 -2
- package/dist/{chunk-RXXHQXMO.js → chunk-N5FLIE3B.js} +1 -1
- package/dist/{chunk-ML6AWSKK.js → chunk-NDPIHRLT.js} +5 -5
- package/dist/{chunk-J4X5T5DO.js → chunk-NHKJDBKZ.js} +1 -1
- package/dist/{chunk-X6GHL4KM.js → chunk-OI5PIRYC.js} +16 -16
- package/dist/{chunk-AAP2HENZ.js → chunk-OVM54QWV.js} +1 -1
- package/dist/{chunk-KBZJUOJJ.js → chunk-PIEQTKMS.js} +6 -6
- package/dist/{chunk-V6YWRP4V.js → chunk-PIEQVLWA.js} +6 -6
- package/dist/{chunk-A54UFNGF.js → chunk-Q3LFQVDS.js} +1 -1
- package/dist/{chunk-J2GQIBMK.js → chunk-QU6OSEUV.js} +4 -2
- package/dist/{chunk-FG2EF7PP.js → chunk-R3VB6IWK.js} +4 -4
- package/dist/{chunk-GA4IZMXT.js → chunk-RGJ6YCGT.js} +3 -3
- package/dist/{chunk-LFJOCVHG.js → chunk-T6KURDWS.js} +2 -2
- package/dist/{chunk-22N3UUS4.js → chunk-TZDZ3QGG.js} +3 -3
- package/dist/{chunk-XO64RMVL.js → chunk-U6HLDWKF.js} +4 -4
- package/dist/{chunk-KGMSC4Y4.js → chunk-V7DKNNN3.js} +5 -5
- package/dist/{chunk-3ZDGQGBL.js → chunk-VNEKDZRS.js} +8 -8
- package/dist/{chunk-FFMM7VZH.js → chunk-VTCM3LRD.js} +3 -3
- package/dist/{chunk-AX6S5V22.js → chunk-VWELQENE.js} +1 -1
- package/dist/{chunk-EVGZE3TK.js → chunk-WC4WLJ6L.js} +1 -1
- package/dist/{chunk-ARBMPOYR.js → chunk-WMELBTKZ.js} +3 -3
- package/dist/{chunk-3DME4GIN.js → chunk-WOH6BCX7.js} +7 -7
- package/dist/{chunk-FZMLD3MF.js → chunk-WXSWR2FG.js} +4 -4
- package/dist/{chunk-LW4AG6EP.js → chunk-XW7UUCSM.js} +6 -6
- package/dist/{chunk-O2MMXX6P.js → chunk-YUBMSPWE.js} +21 -5
- package/dist/{chunk-X2BMTMY2.js → chunk-Z6VYPLVI.js} +5 -5
- package/dist/{chunk-WNWN4U2V.js → chunk-ZATM23SV.js} +1 -1
- package/dist/{chunk-SHAZ6DT6.js → chunk-ZGQCZKNY.js} +2 -2
- package/dist/{chunk-C4SPXQAE.js → chunk-ZHPK2JGH.js} +2 -2
- package/dist/{codex-app-cards-switch-MBJFUQBT.js → codex-app-cards-switch-FCF22YK6.js} +11 -11
- package/dist/{codex-card-routing-LAM2ADY2.js → codex-card-routing-33FTWY2U.js} +2 -2
- package/dist/{codex-desktop-launch-LB4RWOSI.js → codex-desktop-launch-CMMBCQDF.js} +3 -3
- package/dist/{codex-session-launch-PRWQGIGE.js → codex-session-launch-VW4737L5.js} +20 -20
- package/dist/{config-BBTWVECF.js → config-GPO476YL.js} +3 -3
- package/dist/{global-upgrade-C6HNF5OW.js → global-upgrade-6DOQCXZJ.js} +9 -9
- package/dist/{identity-7PUBPQNU.js → identity-4OD6GQPB.js} +4 -4
- package/dist/{live-capabilities-ZAQZQQR4.js → live-capabilities-X6O5HJCK.js} +4 -4
- package/dist/{paths-ZALQKETP.js → paths-LYVFVRQM.js} +3 -3
- package/dist/{reapply-JWQ5H3RL.js → reapply-GKXG74LO.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UWYE4CPX.js → upgrade-lock-LZIWY4Q6.js} +4 -4
- package/dist/{usage-BR4DQNAS.js → usage-RN5ED6TT.js} +3 -3
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
uninstallOpenClawPlugin,
|
|
14
14
|
unsetOpenClawEntry,
|
|
15
15
|
writeOpenClawEntry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RGJ6YCGT.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-
|
|
28
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
29
29
|
import {
|
|
30
30
|
resolvePathBinary
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-R3VB6IWK.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-
|
|
42
|
+
} from "./chunk-QU6OSEUV.js";
|
|
43
43
|
|
|
44
44
|
// src/hermes/plugin-payload.ts
|
|
45
45
|
import { createHash } from "crypto";
|
|
@@ -1388,7 +1388,7 @@ def _await_decision(request, created, correlation_id: str, offered, uses_select:
|
|
|
1388
1388
|
return _decided(request, correlation_id, "deny", None)
|
|
1389
1389
|
` },
|
|
1390
1390
|
{ 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' },
|
|
1391
|
-
{ 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.
|
|
1391
|
+
{ 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.12",\n "tab": { "hidden": true },\n "entry": "web.js",\n "api": "plugin_api.py"\n}\n' },
|
|
1392
1392
|
{ path: "dashboard/plugin_api.py", contents: `import importlib
|
|
1393
1393
|
import sys
|
|
1394
1394
|
import time
|
|
@@ -2300,7 +2300,7 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
|
|
|
2300
2300
|
logger.debug("[pushary] could not record the plugin load: %s", exc)
|
|
2301
2301
|
return None
|
|
2302
2302
|
` },
|
|
2303
|
-
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.
|
|
2303
|
+
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.12\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' },
|
|
2304
2304
|
{ 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" },
|
|
2305
2305
|
{ path: "schemas.py", contents: `PUSHARY_REMIND = {
|
|
2306
2306
|
"name": "pushary_remind",
|
|
@@ -2656,7 +2656,7 @@ PUSHARY_ASK_END_USER = {
|
|
|
2656
2656
|
},
|
|
2657
2657
|
}
|
|
2658
2658
|
` },
|
|
2659
|
-
{ path: "skills/pushary/SKILL.md", contents: '---\nname: pushary-hermes\nversion: 0.9.2\ndescription: Push notifications and human-in-the-loop for Hermes Agent. Use this whenever a running agent needs a human and no chat session is active, such as before an irreversible or destructive action, before spending money, deploying, force-pushing or deleting, when blocked on a decision outside your authority, when running unattended and you hit a genuine ambiguity, when another skill\'s workflow says to confirm with the user, and when a long task finishes or fails with nobody watching. Send alerts when tasks finish, ask questions (yes/no, multiple choice, or free text) via web push, and get answers from their connected devices. Use these tools proactively when the user is not actively in a chat session. Works alongside Hermes\'s built-in messaging platforms (Telegram, Discord, etc.) as a universal fallback channel.\nmetadata:\n hermes:\n tags: [notifications, push, human-in-the-loop, alerts, permissions]\n category: productivity\n requires_toolsets: []\n config:\n - key: PUSHARY_API_KEY\n description: "Your Pushary API key for push notifications"\n default: ""\n tags: notifications, push, mcp, human-in-the-loop, hermes, alerts, permissions\n---\n\n# Pushary - Push Notifications for Hermes Agent\n\nPushary adds mobile, Mac and browser delivery for Hermes. Use it when the user is not actively monitoring a chat platform, or when you need to reach them on their phone\'s lock screen for a time-sensitive decision.\n\n## Ask in as Few Interruptions as Possible\n\nHonor authorization already granted in this session. Ask only for a missing decision or an action outside that authorization, or when an enforced host policy requires it. A multi-step task alone does not require plan approval. Never ask again merely because the next authorized step deletes, deploys or publishes something. These skills guide the agent; supported hooks and runtime approval gates enforce policy. Do not bypass an enforced gate.\n\nEvery question costs the user their attention wherever they are. Before a run of more than a step or two, work out where you will need a human and fold those points together: one `select` carrying the real options beats three `confirm`s in a row, ask once at a boundary rather than once per instance, and never ask what you can determine yourself from the task or from a tool call you can make.\n\n## When to Use Pushary vs Hermes Platforms\n\n**Use Pushary when:**\n- The user has no active chat session (Telegram, Discord, etc.)\n- You need to reach the user\'s phone lock screen for a quick decision\n- A background task finishes and the user may have walked away\n- Permission escalation - a dangerous command needs approval\n- Another skill\'s workflow says to confirm with the user, and no chat session is active to confirm in\n- The user explicitly asked for push notifications\n\n**Use the active Hermes platform when:**\n- The user is currently in a Telegram/Discord/Slack conversation with you\n- The question is part of an ongoing dialog\n- The user prefers responses in their current platform\n\nUse an extra push only when the user requested it or a meaningful unattended result needs attention. Do not assume you can detect whether a Telegram or Discord message was read.\n\n## Setup\n\nOn a Mac, the Pushary app connects Hermes: it puts this plugin in `~/.hermes/plugins/pushary` and selects Pushary as the approval transport. On any computer, `npx -y pushary@latest setup --agents hermes` does the same. The plugin can also come from the Hermes catalog with `hermes plugins install pushary`. Never install a second copy over one that is already there. No MCP server configuration is needed. Keep credentials out of chat and verify the paired account and device.\n\nIf the `pushary_*` tools are missing from a Hermes session, the plugin did not load. Do not pip-install it into Hermes\'s Python: current Hermes does not load packages added that way. Ask the user to open the Pushary app and repair Hermes, or to run `npx -y pushary@latest setup --agents hermes`. Then they restart Hermes with `hermes gateway restart`.\n\n## Approvals Go to the Phone\n\nThe plugin registers `pushary` as a Hermes **approval transport**, so the dangerous-command approvals Hermes already asks for open in the app with the same four choices the terminal offers: allow once, allow for this session, always allow, deny. Hermes owns the timeout (300 seconds by default) and remembers session and always decisions exactly as it would have.\n\n```yaml\nsecurity:\n approval:\n transport: pushary\n transport_fallback: builtin\n```\n\nHermes denies by default when Pushary is unreachable. Only an operator who sets `transport_fallback: builtin` enables its built-in prompt after a safe local handoff; cancellation or an unverifiable withdrawal still stops the action. You do not call this yourself; it fires when Hermes decides a command needs a human.\n\n## Answer surfaces and account boundaries\n\n| Surface | What the user can do |\n| --- | --- |\n| Mobile app | Answer confirm, select and input questions. Supported confirm notifications offer approve/deny actions on the lock screen; arbitrary choices and text open the app. |\n| Mac notch | Answer confirm, select, input and question-set questions, including keyboard controls. Presence and delivery policy determine when the phone is also reached. |\n| Slack | Answer through buttons, menus or text modals when the integration and intended recipient are configured. |\n| Browser | Open the decision page as a fallback; browser notification delivery requires permission. |\n\nPersonal setup connects the operator\'s devices. For a Mac, the operator installs from https://pushary.com/download, signs in to the same personal account and connects their agents in the app. Request one harmless test question and verify it reaches the intended surface. Test phone fallback while away from the Mac; do not infer delivery from a successful API call alone.\n\nPartner customers use scoped enrollment links issued by their application. Do not enroll them into the operator\'s account or send their decisions through personal tools. They answer on their enrolled phone, and in the Mac notch once they connect the Mac from the phone app. See https://pushary.com/docs/agents/embed for Partner setup.\n\n## Tools\n\nTool names below are the native plugin names. An MCP client without the plugin sees the same capabilities as `send_notification`, `schedule_reminder`, `ask_user`, `wait_for_answer`, `cancel_question`, and `propose_scope`.\n\n### pushary_remind\n\nFor personal reminders later, use `pushary_remind` with `body` and `in_minutes`, or `at` with an explicit UTC offset. Never guess the timezone; confirm the returned time. Pushary saves it and delivers after Hermes exits. Use Hermes cron for future agent work. No arguments lists pending reminders; `cancel_reminder_id` cancels a scheduled one. One-time only, up to 30 days ahead, and delivery can be about a minute late. It goes to the phone and the Pushary Mac app; with no phone connected, only to the Mac app if they have one. Tell the user any `warning`. Do not use `pushary_ask` for reminders.\n\n### pushary_notify\n\n\nSend a one-way push notification. Optionally include structured context for a rich detail page.\n\n**Parameters:**\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| title | string | Yes | Notification title (max 100 chars, aim for under 60) |\n| body | string | Yes | Notification body (max 500 chars; the phone shows the first 180) |\n| agent_name | string | No | Identifies this Hermes instance (e.g., "Hermes - daily-briefing") |\n| context_type | "task_complete" / "error" / "info" | Yes for task updates | Marks the notification for task-update routing. |\n| summary | string | No | Short summary of the result. |\n| details / files_changed | string[] | No | Result details or changed paths. |\n| error_message / next_steps | string | No | Error or suggested follow-up. |\n\n**Example - cron task completed:**\n\n```json\n{\n "title": "Daily briefing ready",\n "body": "Compiled 12 news items and 3 calendar events",\n "agent_name": "Hermes - daily-briefing",\n "context_type": "task_complete",\n "summary": "Morning briefing compiled from RSS feeds and Google Calendar",\n "details": ["12 tech news items", "3 meetings today", "2 PRs awaiting review"],\n "next_steps": "Say \'read briefing\' in Telegram to hear the full summary"\n}\n```\n\n### pushary_ask\n\nAsk a question via push notification and **wait for the answer** (blocks by default). Three question types: confirm (yes/no), select (multiple choice), input (free text).\n\n**Parameters:**\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| question | string | Yes | The complete question (max 8000 chars; notifications show a short preview) |\n| type | "confirm" / "select" / "input" | No | Question type (default: confirm) |\n| options | string[] | No | Choices for select type (2-6 options) |\n| placeholder | string | No | Placeholder text for input type |\n| context | string | No | What you\'re working on, shown above the question |\n| agent_name | string | No | Identifies this Hermes instance |\n| wait | boolean | No | Wait for answer before returning (default: true) |\n| timeout_ms | integer | No | Max wait in ms (max 55000). Defaults to 30000 per poll attempt; server policy may hand off earlier. |\n\n**Returns:**\n- `{ "answered": true, "value": "yes" }` - user responded\n- `{ "answered": false, "timedOut": true }` - no response within timeout\n\n**Example - dangerous command approval:**\n\n```json\n{\n "question": "Allow: rm -rf /tmp/build-artifacts/*",\n "type": "confirm",\n "context": "Cleaning up 2.3GB of stale build artifacts from last week",\n "agent_name": "Hermes - server-maintenance",\n "timeout_ms": 12000\n}\n```\n\n### pushary_wait\n\nPoll once for a response when `pushary_ask` was called with `wait: false`. Not needed with default blocking mode.\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| correlation_id | string | Yes | The correlationId from pushary_ask |\n| timeout_ms | integer | No | How long to wait (default 30000, max 55000) |\n\n### pushary_cancel\n\nCancel a pending question that\'s no longer relevant.\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| correlation_id | string | Yes | The correlationId to cancel |\n\n### pushary_propose_scope\n\nAgree the boundary of a multi-step run in one tap, before doing the work, instead of asking file by file. Use it once when a boundary needs agreement or the user requests an enforced scope. Skip a redundant proposal for already authorized work.\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| done_when | string | Yes | What "finished" means for this run |\n| allowed_paths | string[] | No | Globs you intend to change, e.g. `["src/**"]` |\n| off_limits_paths | string[] | No | Globs you promise not to touch; these win on overlap |\n| promises | string[] | No | Boundaries that are not file paths: recipients, channels, spend, systems you will not open |\n| agent_name | string | No | Identifies this Hermes instance |\n\nOnly file paths are enforced, and only on tool calls that carry one. Shell commands, reads, web requests and MCP tools carry no path, so the contract says nothing about them. A run that changes no files belongs in `promises`, which is shown to the user and recorded but never checked. A word that is not a path in `allowed_paths` matches no file and makes every change ask instead.\n\nRead `enforces` in the result. An empty list means nothing here is checked automatically, and you must say so rather than report that a scope is in force.\n\nReturns `ratified: true` only on an explicit yes. Anything else means proceed as if no scope was agreed; do not describe it as ratified.\n\n## Human-in-the-Loop Flow\n\n`pushary_ask` performs its initial wait and at most one server-directed poll within that tool call. If the returned status is still pending, continue with `pushary_wait` and the same correlationId. With `wait: false`, start that polling yourself. Follow an explicit handoff instead when one is returned.\n\nRead `answered`, `status` and `handoffAction` (falling back to `nextAction`) on every response. Only `pending` is live; expired, cancelled, missing and unavailable are not new timeouts. Keep waiting with the same correlationId while pending. A poll ending does not expire the question; never cancel just because a poll returned without an answer. Before moving a live question to the current chat, cancel it. If cancellation says `stop`, stop; if it loses a race, poll once for one second and honor the winning answer. Silence is never consent. A select or input value containing \u201Cyes\u201D is answer data, not approval of a separate action.\n\nDelivery is controlled by the user\'s policy: `push_first` (When away) still sends your questions to the phone and lets only hook approvals skip it while the user is at the computer, `push_only` requests push every time, `notify_only` leaves the decision in the current client, and `terminal_only` avoids push. Do not override the mode or duplicate a question on every surface. The runtime owns delivery, expiry and settlement; do not claim that a reply can restart an ended agent turn.\n\nEach call returns an answer, a pending wait, or an explicit handoff:\n\n```\nresult = pushary_ask({\n question: "Deploy the updated config to production?",\n type: "confirm",\n context: "nginx config updated with new rate limits",\n tool_name: "terminal",\n tool_target: "systemctl reload",\n agent_name: "Hermes - devops"\n})\n\nif result.answered:\n if result.value == "yes":\n // proceed with deployment\n else:\n // abort and notify via active platform\nelse:\n // follow handoffAction when present, otherwise nextAction\n```\n\nPass `tool_name` and `tool_target` whenever the question is about a specific operation. They are what let the user turn a repeated approval into a standing rule, and what group the decision in their ledger.\n\n## Identifying Your Instance\n\nAlways pass `agent_name` so the user knows which Hermes profile or task is asking.\n\n**Format:** `"Hermes - {profile or task}"`\n\n**Examples:**\n- `"Hermes - daily-briefing"`\n- `"Hermes - server-maintenance"`\n- `"Hermes - code-review"`\n- `"Hermes - personal-assistant"`\n\n## Notification Etiquette\n\n- **Titles under 60 characters.** Phone lock screens truncate aggressively.\n- **Bodies under 180 characters,** where the phone cuts them. Use the flat `summary`, `details` and `next_steps` fields.\n- **Max 3 push notifications per task.** If the user is in an active chat, prefer that channel.\n- **Don\'t duplicate.** If you already sent the message via Telegram/Discord, send another push only if requested or needed for an unattended result.\n' },
|
|
2659
|
+
{ path: "skills/pushary/SKILL.md", contents: '---\nname: pushary-hermes\nversion: 0.9.3\ndescription: Push notifications and human-in-the-loop for Hermes Agent. Use this whenever a running agent needs a human and no chat session is active, such as before an irreversible or destructive action, before spending money, deploying, force-pushing or deleting, when blocked on a decision outside your authority, when running unattended and you hit a genuine ambiguity, when another skill\'s workflow says to confirm with the user, and when a long task finishes or fails with nobody watching. Send alerts when tasks finish, ask questions (yes/no, multiple choice, or free text) as push notifications, and get answers from their connected devices. Use these tools proactively when the user is not actively in a chat session. Works alongside Hermes\'s built-in messaging platforms (Telegram, Discord, etc.) as a universal fallback channel.\nmetadata:\n hermes:\n tags: [notifications, push, human-in-the-loop, alerts, permissions]\n category: productivity\n requires_toolsets: []\n config:\n - key: PUSHARY_API_KEY\n description: "Your Pushary API key for push notifications"\n default: ""\n tags: notifications, push, mcp, human-in-the-loop, hermes, alerts, permissions\n---\n\n# Pushary - Push Notifications for Hermes Agent\n\nPushary adds mobile, Mac and browser delivery for Hermes. Use it when the user is not actively monitoring a chat platform, or when you need to reach them on their phone\'s lock screen for a time-sensitive decision.\n\n## Ask in as Few Interruptions as Possible\n\nHonor authorization already granted in this session. Ask only for a missing decision or an action outside that authorization, or when an enforced host policy requires it. A multi-step task alone does not require plan approval. Never ask again merely because the next authorized step deletes, deploys or publishes something. These skills guide the agent; supported hooks and runtime approval gates enforce policy. Do not bypass an enforced gate.\n\nEvery question costs the user their attention wherever they are. Before a run of more than a step or two, work out where you will need a human and fold those points together: one `select` carrying the real options beats three `confirm`s in a row, ask once at a boundary rather than once per instance, and never ask what you can determine yourself from the task or from a tool call you can make.\n\n## When to Use Pushary vs Hermes Platforms\n\n**Use Pushary when:**\n- The user has no active chat session (Telegram, Discord, etc.)\n- You need to reach the user\'s phone lock screen for a quick decision\n- A background task finishes and the user may have walked away\n- Permission escalation - a dangerous command needs approval\n- Another skill\'s workflow says to confirm with the user, and no chat session is active to confirm in\n- The user explicitly asked for push notifications\n\n**Use the active Hermes platform when:**\n- The user is currently in a Telegram/Discord/Slack conversation with you\n- The question is part of an ongoing dialog\n- The user prefers responses in their current platform\n\nUse an extra push only when the user requested it or a meaningful unattended result needs attention. Do not assume you can detect whether a Telegram or Discord message was read.\n\n## Setup\n\nOn a Mac, the Pushary app connects Hermes: it puts this plugin in `~/.hermes/plugins/pushary` and selects Pushary as the approval transport. On any computer, `npx -y pushary@latest setup --agents hermes` does the same. The plugin can also come from the Hermes catalog with `hermes plugins install pushary`. Never install a second copy over one that is already there. No MCP server configuration is needed. Keep credentials out of chat and verify the paired account and device.\n\nIf the `pushary_*` tools are missing from a Hermes session, the plugin did not load. Do not pip-install it into Hermes\'s Python: current Hermes does not load packages added that way. Ask the user to open the Pushary app and repair Hermes, or to run `npx -y pushary@latest setup --agents hermes`. Then they restart Hermes with `hermes gateway restart`.\n\n## Approvals Go to the Phone\n\nThe plugin registers `pushary` as a Hermes **approval transport**, so the dangerous-command approvals Hermes already asks for open in the app with the same four choices the terminal offers: allow once, allow for this session, always allow, deny. Hermes owns the timeout (300 seconds by default) and remembers session and always decisions exactly as it would have.\n\n```yaml\nsecurity:\n approval:\n transport: pushary\n transport_fallback: builtin\n```\n\nHermes denies by default when Pushary is unreachable. Only an operator who sets `transport_fallback: builtin` enables its built-in prompt after a safe local handoff; cancellation or an unverifiable withdrawal still stops the action. You do not call this yourself; it fires when Hermes decides a command needs a human.\n\n## Answer surfaces and account boundaries\n\n| Surface | What the user can do |\n| --- | --- |\n| Mobile app | Answer confirm, select and input questions. Supported confirm notifications offer approve/deny actions on the lock screen; arbitrary choices and text open the app. |\n| Mac notch | Answer confirm, select, input and question-set questions, including keyboard controls. Presence and delivery policy determine when the phone is also reached. |\n| Slack | Answer through buttons, menus or text modals when the integration and intended recipient are configured. |\n| Browser | Open the decision page as a fallback; browser notification delivery requires permission. |\n\nPersonal setup connects the operator\'s devices. For a Mac, the operator installs from https://pushary.com/download, signs in to the same personal account and connects their agents in the app. Request one harmless test question and verify it reaches the intended surface. Test phone fallback while away from the Mac; do not infer delivery from a successful API call alone.\n\nPartner customers use scoped enrollment links issued by their application. Do not enroll them into the operator\'s account or send their decisions through personal tools. They answer on their enrolled phone, and in the Mac notch once they connect the Mac from the phone app. See https://pushary.com/docs/agents/embed for Partner setup.\n\n## Tools\n\nTool names below are the native plugin names. An MCP client without the plugin sees the same capabilities as `send_notification`, `schedule_reminder`, `ask_user`, `wait_for_answer`, `cancel_question`, and `propose_scope`.\n\n### pushary_remind\n\nFor personal reminders later, use `pushary_remind` with `body` and `in_minutes`, or `at` with an explicit UTC offset. Never guess the timezone; confirm the returned time. Pushary saves it and delivers after Hermes exits. Use Hermes cron for future agent work. No arguments lists pending reminders; `cancel_reminder_id` cancels a scheduled one. One-time only, up to 30 days ahead, and delivery can be about a minute late. It goes to the phone and the Pushary Mac app; with no phone connected, only to the Mac app if they have one. Tell the user any `warning`. Do not use `pushary_ask` for reminders.\n\n### pushary_notify\n\n\nSend a one-way push notification. Optionally include structured context for a rich detail page.\n\n**Parameters:**\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| title | string | Yes | Notification title (max 100 chars, aim for under 60) |\n| body | string | Yes | Notification body (max 500 chars; the phone shows the first 180) |\n| agent_name | string | No | Identifies this Hermes instance (e.g., "Hermes - daily-briefing") |\n| context_type | "task_complete" / "error" / "info" | Yes for task updates | Marks the notification for task-update routing. |\n| summary | string | No | Short summary of the result. |\n| details / files_changed | string[] | No | Result details or changed paths. |\n| error_message / next_steps | string | No | Error or suggested follow-up. |\n\n**Example - cron task completed:**\n\n```json\n{\n "title": "Daily briefing ready",\n "body": "Compiled 12 news items and 3 calendar events",\n "agent_name": "Hermes - daily-briefing",\n "context_type": "task_complete",\n "summary": "Morning briefing compiled from RSS feeds and Google Calendar",\n "details": ["12 tech news items", "3 meetings today", "2 PRs awaiting review"],\n "next_steps": "Say \'read briefing\' in Telegram to hear the full summary"\n}\n```\n\n### pushary_ask\n\nAsk a question via push notification and **wait for the answer** (blocks by default). Three question types: confirm (yes/no), select (multiple choice), input (free text).\n\n**Parameters:**\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| question | string | Yes | The complete question (max 8000 chars; notifications show a short preview) |\n| type | "confirm" / "select" / "input" | No | Question type (default: confirm) |\n| options | string[] | No | Choices for select type (2-6 options) |\n| placeholder | string | No | Placeholder text for input type |\n| context | string | No | What you\'re working on, shown above the question |\n| agent_name | string | No | Identifies this Hermes instance |\n| wait | boolean | No | Wait for answer before returning (default: true) |\n| timeout_ms | integer | No | Max wait in ms (max 55000). Defaults to 30000 per poll attempt; server policy may hand off earlier. |\n\n**Returns:**\n- `{ "answered": true, "value": "yes" }` - user responded\n- `{ "answered": false, "timedOut": true }` - no response within timeout\n\n**Example - dangerous command approval:**\n\n```json\n{\n "question": "Allow: rm -rf /tmp/build-artifacts/*",\n "type": "confirm",\n "context": "Cleaning up 2.3GB of stale build artifacts from last week",\n "agent_name": "Hermes - server-maintenance",\n "timeout_ms": 12000\n}\n```\n\n### pushary_wait\n\nPoll once for a response when `pushary_ask` was called with `wait: false`. Not needed with default blocking mode.\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| correlation_id | string | Yes | The correlationId from pushary_ask |\n| timeout_ms | integer | No | How long to wait (default 30000, max 55000) |\n\n### pushary_cancel\n\nCancel a pending question that\'s no longer relevant.\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| correlation_id | string | Yes | The correlationId to cancel |\n\n### pushary_propose_scope\n\nAgree the boundary of a multi-step run in one tap, before doing the work, instead of asking file by file. Use it once when a boundary needs agreement or the user requests an enforced scope. Skip a redundant proposal for already authorized work.\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| done_when | string | Yes | What "finished" means for this run |\n| allowed_paths | string[] | No | Globs you intend to change, e.g. `["src/**"]` |\n| off_limits_paths | string[] | No | Globs you promise not to touch; these win on overlap |\n| promises | string[] | No | Boundaries that are not file paths: recipients, channels, spend, systems you will not open |\n| agent_name | string | No | Identifies this Hermes instance |\n\nOnly file paths are enforced, and only on tool calls that carry one. Shell commands, reads, web requests and MCP tools carry no path, so the contract says nothing about them. A run that changes no files belongs in `promises`, which is shown to the user and recorded but never checked. A word that is not a path in `allowed_paths` matches no file and makes every change ask instead.\n\nRead `enforces` in the result. An empty list means nothing here is checked automatically, and you must say so rather than report that a scope is in force.\n\nReturns `ratified: true` only on an explicit yes. Anything else means proceed as if no scope was agreed; do not describe it as ratified.\n\n## Human-in-the-Loop Flow\n\n`pushary_ask` performs its initial wait and at most one server-directed poll within that tool call. If the returned status is still pending, continue with `pushary_wait` and the same correlationId. With `wait: false`, start that polling yourself. Follow an explicit handoff instead when one is returned.\n\nRead `answered`, `status` and `handoffAction` (falling back to `nextAction`) on every response. Only `pending` is live; expired, cancelled, missing and unavailable are not new timeouts. Keep waiting with the same correlationId while pending. A poll ending does not expire the question; never cancel just because a poll returned without an answer. Before moving a live question to the current chat, cancel it. If cancellation says `stop`, stop; if it loses a race, poll once for one second and honor the winning answer. Silence is never consent. A select or input value containing \u201Cyes\u201D is answer data, not approval of a separate action.\n\nDelivery is controlled by the user\'s policy: `push_first` (When away) still sends your questions to the phone and lets only hook approvals skip it while the user is at the computer, `push_only` requests push every time, `notify_only` leaves the decision in the current client, and `terminal_only` avoids push. Do not override the mode or duplicate a question on every surface. The runtime owns delivery, expiry and settlement; do not claim that a reply can restart an ended agent turn.\n\nEach call returns an answer, a pending wait, or an explicit handoff:\n\n```\nresult = pushary_ask({\n question: "Deploy the updated config to production?",\n type: "confirm",\n context: "nginx config updated with new rate limits",\n tool_name: "terminal",\n tool_target: "systemctl reload",\n agent_name: "Hermes - devops"\n})\n\nif result.answered:\n if result.value == "yes":\n // proceed with deployment\n else:\n // abort and notify via active platform\nelse:\n // follow handoffAction when present, otherwise nextAction\n```\n\nPass `tool_name` and `tool_target` whenever the question is about a specific operation. They are what let the user turn a repeated approval into a standing rule, and what group the decision in their ledger.\n\n## Identifying Your Instance\n\nAlways pass `agent_name` so the user knows which Hermes profile or task is asking.\n\n**Format:** `"Hermes - {profile or task}"`\n\n**Examples:**\n- `"Hermes - daily-briefing"`\n- `"Hermes - server-maintenance"`\n- `"Hermes - code-review"`\n- `"Hermes - personal-assistant"`\n\n## Notification Etiquette\n\n- **Titles under 60 characters.** Phone lock screens truncate aggressively.\n- **Bodies under 180 characters,** where the phone cuts them. Use the flat `summary`, `details` and `next_steps` fields.\n- **Max 3 push notifications per task.** If the user is in an active chat, prefer that channel.\n- **Don\'t duplicate.** If you already sent the message via Telegram/Discord, send another push only if requested or needed for an unattended result.\n' },
|
|
2660
2660
|
{ path: "tools.py", contents: `import json
|
|
2661
2661
|
import time
|
|
2662
2662
|
import uuid
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-U4P4NDVB.js";
|
|
17
17
|
import {
|
|
18
18
|
withoutNpmInstallConsent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-R3VB6IWK.js";
|
|
20
20
|
|
|
21
21
|
// src/codex-desktop-launch.ts
|
|
22
22
|
import { spawn as spawn2, execFileSync as execFileSync2 } from "child_process";
|
|
@@ -539,8 +539,8 @@ var loadedOnce = (load) => {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
// src/codex-desktop-proxy.ts
|
|
542
|
-
var loadThePhone = () => import("./api-
|
|
543
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
542
|
+
var loadThePhone = () => import("./api-M67GCEPF.js");
|
|
543
|
+
var loadTheCardRouting = () => import("./codex-card-routing-33FTWY2U.js");
|
|
544
544
|
var theFirstCardLoadsAgain = () => {
|
|
545
545
|
};
|
|
546
546
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1101,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1101
1101
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1104
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1104
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-FCF22YK6.js");
|
|
1105
1105
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E7QTBSY2.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KKVTBTX5.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LT2X6GMR.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HXYZSB4U.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENT_STOP_DEFAULT_SECONDS,
|
|
19
19
|
APPROVAL_MODE_META,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
classifyConfirmResponse,
|
|
22
22
|
isAnswerSource,
|
|
23
23
|
roundTripAsk
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QU6OSEUV.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
+
} from "./chunk-FQNL4HE7.js";
|
|
1
4
|
import {
|
|
2
5
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XW7UUCSM.js";
|
|
4
7
|
import {
|
|
5
8
|
matchMacAccountStep,
|
|
6
9
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GRWWQNKA.js";
|
|
8
11
|
import {
|
|
9
12
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E7QTBSY2.js";
|
|
11
14
|
import {
|
|
12
15
|
NPX_LATEST_COMMAND,
|
|
13
16
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HXYZSB4U.js";
|
|
15
18
|
import {
|
|
16
19
|
EXIT
|
|
17
20
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,10 +24,11 @@ import {
|
|
|
21
24
|
import {
|
|
22
25
|
compatibleProfileFor,
|
|
23
26
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QU6OSEUV.js";
|
|
25
28
|
|
|
26
29
|
// src/setup/closing.ts
|
|
27
30
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
31
|
+
var IGNORED_ENVIRONMENT_KEY_HEADLINE = "Agents configured, but PUSHARY_API_KEY in this terminal is not a Pushary key.";
|
|
28
32
|
var CHECK_THE_NOTIFICATION_OPENED = "Check the notification opened something you could tap, then:";
|
|
29
33
|
var SEND_ANOTHER_TEST = "pushary doctor --roundtrip send another one";
|
|
30
34
|
var sendAnotherTestLines = (appPlatforms) => {
|
|
@@ -161,6 +165,9 @@ var nextSteps = (facts, reachable) => {
|
|
|
161
165
|
if (facts.staleEnvironmentKey) {
|
|
162
166
|
lines.push("Open a new terminal or unset PUSHARY_API_KEY, then run pushary doctor before starting an agent.");
|
|
163
167
|
}
|
|
168
|
+
if (facts.ignoredEnvironmentKey) {
|
|
169
|
+
lines.push(UNSET_IGNORED_SHELL_VALUE_STEP);
|
|
170
|
+
}
|
|
164
171
|
if (facts.transcriptSync === false) {
|
|
165
172
|
lines.push("Transcripts: disabled on this machine.");
|
|
166
173
|
lines.push("pushary setup --transcripts on enable encrypted transcript sync");
|
|
@@ -215,6 +222,15 @@ var describeClosing = (facts) => {
|
|
|
215
222
|
reason: "stale-environment-key"
|
|
216
223
|
};
|
|
217
224
|
}
|
|
225
|
+
if (facts.ignoredEnvironmentKey) {
|
|
226
|
+
return {
|
|
227
|
+
ok: false,
|
|
228
|
+
headline: IGNORED_ENVIRONMENT_KEY_HEADLINE,
|
|
229
|
+
next: nextSteps(facts, reachable),
|
|
230
|
+
exitCode: EXIT.PROBLEMS_FOUND,
|
|
231
|
+
reason: "stale-environment-key"
|
|
232
|
+
};
|
|
233
|
+
}
|
|
218
234
|
if (phoneStartFailedTheRun(facts)) {
|
|
219
235
|
return {
|
|
220
236
|
ok: false,
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WOH6BCX7.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RGJ6YCGT.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GRWWQNKA.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-QU6OSEUV.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R3VB6IWK.js";
|
|
9
9
|
import {
|
|
10
10
|
writeFileAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PUSHARY_HOSTS,
|
|
25
25
|
PUSHARY_TOOL_PREFIX,
|
|
26
26
|
withHookHoldBudget
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QU6OSEUV.js";
|
|
28
28
|
|
|
29
29
|
// src/setup/paths.ts
|
|
30
30
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -22,25 +22,25 @@ import {
|
|
|
22
22
|
turnCodexAppCardsOff,
|
|
23
23
|
turnCodexAppCardsOn,
|
|
24
24
|
whyLaunchctlFailed
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-T6KURDWS.js";
|
|
26
|
+
import "./chunk-WXSWR2FG.js";
|
|
27
27
|
import "./chunk-XCEN33UP.js";
|
|
28
28
|
import "./chunk-U4P4NDVB.js";
|
|
29
29
|
import "./chunk-QCGNGEGE.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-PIEQVLWA.js";
|
|
31
31
|
import "./chunk-3PSNUHC5.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-J3LMHXHV.js";
|
|
33
|
+
import "./chunk-2X7O2QE3.js";
|
|
34
|
+
import "./chunk-ZHPK2JGH.js";
|
|
35
|
+
import "./chunk-ZGQCZKNY.js";
|
|
36
36
|
import "./chunk-6ICPEJY5.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-R3VB6IWK.js";
|
|
38
|
+
import "./chunk-A4QB2DOJ.js";
|
|
39
39
|
import "./chunk-PM2NRK6Y.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-HXYZSB4U.js";
|
|
41
41
|
import "./chunk-BG4HHB7E.js";
|
|
42
42
|
import "./chunk-CXQWDQCJ.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-QU6OSEUV.js";
|
|
44
44
|
import "./chunk-MLKGABMK.js";
|
|
45
45
|
export {
|
|
46
46
|
CODEX_APP_CARDS_DIRECTORY,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveToolTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NHKJDBKZ.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAME_MAX_LENGTH,
|
|
6
6
|
codexElicitationToolName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QU6OSEUV.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
|
|
10
10
|
// src/codex-card-routing.ts
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
installedCodexApp,
|
|
13
13
|
shellQuoted,
|
|
14
14
|
writeDesktopProxy
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WXSWR2FG.js";
|
|
16
16
|
import "./chunk-XCEN33UP.js";
|
|
17
17
|
import {
|
|
18
18
|
CODEX_APP_LAUNCH_VARIABLE
|
|
19
19
|
} from "./chunk-U4P4NDVB.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-R3VB6IWK.js";
|
|
21
21
|
import "./chunk-BG4HHB7E.js";
|
|
22
22
|
import "./chunk-CXQWDQCJ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QU6OSEUV.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
export {
|
|
26
26
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -11,39 +11,39 @@ import {
|
|
|
11
11
|
isCodexQuestionLeftWithTheLocalClient,
|
|
12
12
|
planCodexElicitation,
|
|
13
13
|
reportOwnedQuestion
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-VNEKDZRS.js";
|
|
15
|
+
import "./chunk-JO7YECNL.js";
|
|
16
|
+
import "./chunk-FHMZFJJI.js";
|
|
17
|
+
import "./chunk-WC4WLJ6L.js";
|
|
18
|
+
import "./chunk-ADMVVNW2.js";
|
|
19
|
+
import "./chunk-IX2DIIR5.js";
|
|
20
20
|
import "./chunk-TCE3J44Z.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VTCM3LRD.js";
|
|
22
22
|
import "./chunk-P6DUWKAO.js";
|
|
23
23
|
import "./chunk-3PSNUHC5.js";
|
|
24
24
|
import {
|
|
25
25
|
writeDegraded
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-EA6DCQMW.js";
|
|
27
|
+
import "./chunk-3ABPJTSC.js";
|
|
28
28
|
import "./chunk-POFBE6ZY.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-KKVTBTX5.js";
|
|
30
|
+
import "./chunk-Q3LFQVDS.js";
|
|
31
|
+
import "./chunk-IAUCVHGV.js";
|
|
32
|
+
import "./chunk-LT2X6GMR.js";
|
|
33
|
+
import "./chunk-746XV434.js";
|
|
34
|
+
import "./chunk-J3LMHXHV.js";
|
|
35
|
+
import "./chunk-ZGQCZKNY.js";
|
|
36
36
|
import "./chunk-6ICPEJY5.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-R3VB6IWK.js";
|
|
38
|
+
import "./chunk-A4QB2DOJ.js";
|
|
39
39
|
import "./chunk-CINBAX5G.js";
|
|
40
40
|
import "./chunk-PM2NRK6Y.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-HXYZSB4U.js";
|
|
42
42
|
import "./chunk-BG4HHB7E.js";
|
|
43
43
|
import "./chunk-CXQWDQCJ.js";
|
|
44
44
|
import {
|
|
45
45
|
canonicalJsonText
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QU6OSEUV.js";
|
|
47
47
|
import "./chunk-MLKGABMK.js";
|
|
48
48
|
|
|
49
49
|
// src/codex-session-launch.ts
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
malformedApiKeyMessage,
|
|
10
10
|
readApiKey,
|
|
11
11
|
resetKeyDriftWarning
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
13
|
+
import "./chunk-HXYZSB4U.js";
|
|
14
14
|
import "./chunk-CXQWDQCJ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-QU6OSEUV.js";
|
|
16
16
|
import "./chunk-MLKGABMK.js";
|
|
17
17
|
export {
|
|
18
18
|
MalformedApiKeyError,
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
recordUnfinishedUpgrade,
|
|
8
8
|
upgradeInstalledPackage,
|
|
9
9
|
withUpgradeLock
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-PIEQTKMS.js";
|
|
11
|
+
import "./chunk-BM4WXLS6.js";
|
|
12
|
+
import "./chunk-FHMZFJJI.js";
|
|
13
|
+
import "./chunk-WC4WLJ6L.js";
|
|
14
14
|
import "./chunk-TCE3J44Z.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-KAHKKD4R.js";
|
|
16
16
|
import "./chunk-POFBE6ZY.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-ZGQCZKNY.js";
|
|
18
18
|
import "./chunk-6ICPEJY5.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-R3VB6IWK.js";
|
|
20
20
|
import "./chunk-PM2NRK6Y.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-HXYZSB4U.js";
|
|
22
22
|
import "./chunk-BG4HHB7E.js";
|
|
23
23
|
import "./chunk-CXQWDQCJ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-QU6OSEUV.js";
|
|
25
25
|
import "./chunk-MLKGABMK.js";
|
|
26
26
|
export {
|
|
27
27
|
finishGlobalUpgrade,
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
getMachineId,
|
|
3
3
|
getOrCreateMachineId,
|
|
4
4
|
readExistingMachineId
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-J3LMHXHV.js";
|
|
6
|
+
import "./chunk-ZGQCZKNY.js";
|
|
7
7
|
import "./chunk-6ICPEJY5.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-R3VB6IWK.js";
|
|
9
9
|
import "./chunk-PM2NRK6Y.js";
|
|
10
10
|
import "./chunk-BG4HHB7E.js";
|
|
11
11
|
import "./chunk-CXQWDQCJ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QU6OSEUV.js";
|
|
13
13
|
import "./chunk-MLKGABMK.js";
|
|
14
14
|
export {
|
|
15
15
|
getMachineId,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
resolveControlPolicy,
|
|
28
28
|
resolveProviderBinary,
|
|
29
29
|
trackProviderInventory
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-FHMZFJJI.js";
|
|
31
|
+
import "./chunk-WC4WLJ6L.js";
|
|
32
32
|
import "./chunk-TCE3J44Z.js";
|
|
33
33
|
import "./chunk-6ICPEJY5.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-R3VB6IWK.js";
|
|
35
35
|
import "./chunk-PM2NRK6Y.js";
|
|
36
36
|
import "./chunk-BG4HHB7E.js";
|
|
37
37
|
import "./chunk-CXQWDQCJ.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
GEMINI_RESUME_CAPABILITY,
|
|
45
45
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
46
46
|
SPAWN_CAPABILITY
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QU6OSEUV.js";
|
|
48
48
|
import "./chunk-MLKGABMK.js";
|
|
49
49
|
export {
|
|
50
50
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -41,13 +41,13 @@ import {
|
|
|
41
41
|
serviceOwedBackMark,
|
|
42
42
|
vscodePluginDir,
|
|
43
43
|
vscodePluginMcp
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
45
45
|
import "./chunk-6ICPEJY5.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-R3VB6IWK.js";
|
|
47
47
|
import "./chunk-PM2NRK6Y.js";
|
|
48
48
|
import "./chunk-BG4HHB7E.js";
|
|
49
49
|
import "./chunk-CXQWDQCJ.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-QU6OSEUV.js";
|
|
51
51
|
import "./chunk-MLKGABMK.js";
|
|
52
52
|
export {
|
|
53
53
|
autoUpdateLock,
|