pushary 1.9.212 → 1.9.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{api-SNFXRUBO.js → api-XXA3DBK5.js} +7 -7
- package/dist/bin/pushary-bell-hook.js +16 -16
- package/dist/bin/pushary-bell.js +3 -3
- package/dist/bin/pushary-calls.js +7 -7
- package/dist/bin/pushary-claude.js +16 -16
- package/dist/bin/pushary-clean.js +25 -25
- package/dist/bin/pushary-codex-bridge.js +12 -12
- package/dist/bin/pushary-codex-hook.js +20 -20
- package/dist/bin/pushary-codex-session.js +6 -6
- package/dist/bin/pushary-codex.js +8 -8
- package/dist/bin/pushary-connect.js +19 -19
- package/dist/bin/pushary-daemon.js +31 -32
- package/dist/bin/pushary-disconnect.js +17 -17
- package/dist/bin/pushary-doctor.js +31 -30
- package/dist/bin/pushary-elicitation-hook.js +16 -16
- package/dist/bin/pushary-gemini-bridge.js +7 -7
- package/dist/bin/pushary-gemini-hook.js +19 -19
- package/dist/bin/pushary-hook.js +20 -20
- package/dist/bin/pushary-login.js +11 -11
- package/dist/bin/pushary-logout.js +15 -15
- package/dist/bin/pushary-mcp.js +8 -8
- package/dist/bin/pushary-mode.js +7 -7
- package/dist/bin/pushary-notification-hook.js +16 -16
- package/dist/bin/pushary-opencode-bridge.js +12 -12
- package/dist/bin/pushary-opencode-hook.js +18 -18
- package/dist/bin/pushary-permission-denied-hook.js +20 -20
- package/dist/bin/pushary-permission-hook.js +20 -20
- package/dist/bin/pushary-post-hook.js +17 -17
- package/dist/bin/pushary-prompt-hook.js +16 -16
- package/dist/bin/pushary-session-end-hook.js +16 -16
- package/dist/bin/pushary-session-start-hook.js +26 -27
- package/dist/bin/pushary-sessions.js +6 -6
- package/dist/bin/pushary-setup.js +44 -46
- package/dist/bin/pushary-status.js +20 -20
- package/dist/bin/pushary-stop-hook.js +16 -16
- package/dist/bin/pushary-stopfailure-hook.js +16 -16
- package/dist/bin/pushary-suggestions.js +7 -7
- package/dist/bin/pushary-transcript-register.js +13 -11
- package/dist/bin/pushary-transcripts.js +15 -15
- package/dist/bin/pushary-upgrade.js +36 -37
- package/dist/bin/pushary-wait.js +7 -7
- package/dist/bin/pushary.js +4 -4
- package/dist/{chunk-3KADQBEQ.js → chunk-2BKMZ2CZ.js} +3 -3
- package/dist/{chunk-Q73RI245.js → chunk-2DNM6F7C.js} +2 -2
- package/dist/{chunk-HCILDIRX.js → chunk-2OREQ7MI.js} +1 -1
- package/dist/{chunk-NDYH6TS3.js → chunk-2WCI5BY6.js} +2 -2
- package/dist/{chunk-ZNF5ATIQ.js → chunk-3T7KADQO.js} +5 -5
- package/dist/{chunk-LLCNGORA.js → chunk-3USB6JEH.js} +1 -1
- package/dist/{chunk-7TROI3WY.js → chunk-47G72ONB.js} +1 -1
- package/dist/{chunk-UXQI33VO.js → chunk-4DXHNWUY.js} +3 -3
- package/dist/{chunk-74RTPZ2B.js → chunk-53PLSLF5.js} +9 -9
- package/dist/{chunk-VLV34V6X.js → chunk-5ML6PZ4U.js} +12 -14
- package/dist/{chunk-NETM5KD2.js → chunk-5XBZABC5.js} +2 -2
- package/dist/{chunk-NMG6GB3W.js → chunk-6D54GFZC.js} +3 -3
- package/dist/{chunk-NYJXBV6G.js → chunk-6FLCKWIH.js} +4 -4
- package/dist/{chunk-V2R6Y4ES.js → chunk-6N73T3G2.js} +1 -1
- package/dist/{chunk-D347AAH7.js → chunk-BKTWGQLC.js} +29 -9
- package/dist/{chunk-BLQ2JF2F.js → chunk-CJRHVIUJ.js} +1 -1
- package/dist/{chunk-LWFFQJ3Y.js → chunk-CXLHBAN4.js} +1 -1
- package/dist/{chunk-ZWT4WF2W.js → chunk-FBDVDCMC.js} +8 -5
- package/dist/{chunk-E5BZJAJ7.js → chunk-FJJRXIZC.js} +3 -3
- package/dist/{chunk-AUDKOK2X.js → chunk-G4UCXWJX.js} +2 -2
- package/dist/{chunk-GWDAFH4B.js → chunk-GKMSHV5D.js} +1 -1
- package/dist/{chunk-HCBPEZXH.js → chunk-HT4WO7V6.js} +2 -2
- package/dist/{chunk-A4I6XOX3.js → chunk-IHG2TFXZ.js} +2 -2
- package/dist/{chunk-DOPDHW6I.js → chunk-JKM7YRYV.js} +141 -7
- package/dist/{chunk-HVBMU7HP.js → chunk-JYDVDSBM.js} +3 -3
- package/dist/{chunk-I2ZILRS4.js → chunk-K3HFMX5R.js} +5 -5
- package/dist/{chunk-RS6WYORY.js → chunk-K5IPDN4D.js} +3 -3
- package/dist/{chunk-N4D5YYO2.js → chunk-KJA5JZXV.js} +1 -1
- package/dist/{chunk-RIGWC5YP.js → chunk-LBPGPPHU.js} +1 -1
- package/dist/{chunk-ZXQNUTK3.js → chunk-NTNEBBYW.js} +3 -3
- package/dist/{chunk-KSAE6TKK.js → chunk-O372NWUI.js} +4 -4
- package/dist/{chunk-AINVDTY2.js → chunk-ODF2RMXP.js} +3 -3
- package/dist/{chunk-PIXOAUE6.js → chunk-OLD2IPCZ.js} +3 -3
- package/dist/{chunk-5E7QI7VP.js → chunk-OV7W5JYC.js} +7 -7
- package/dist/{chunk-I7KUHNSA.js → chunk-QEMU3P55.js} +2 -2
- package/dist/{chunk-3NEKVCP2.js → chunk-RDWNFNDW.js} +2 -2
- package/dist/{chunk-W2LDJTM6.js → chunk-RN2PB5JJ.js} +3 -3
- package/dist/{chunk-Z5OUGH4K.js → chunk-RZISUO3M.js} +17 -7
- package/dist/{chunk-65QMCTQ3.js → chunk-SK6242SK.js} +2 -2
- package/dist/{chunk-O3375GQ5.js → chunk-SR3FOAJE.js} +1 -1
- package/dist/{chunk-2FFSF562.js → chunk-T63XZCBU.js} +3 -3
- package/dist/{chunk-HTLG7JIU.js → chunk-TBCV2U6Y.js} +1 -1
- package/dist/{chunk-CVZMRD73.js → chunk-UPZHYN4N.js} +1 -1
- package/dist/{chunk-7KTLZJGF.js → chunk-VUCXVBDQ.js} +2 -2
- package/dist/{chunk-R4BUYRSV.js → chunk-VZD4SLJE.js} +3 -3
- package/dist/{chunk-V3QWU2WK.js → chunk-W6PL3FPJ.js} +3 -3
- package/dist/{chunk-PRRJZZAF.js → chunk-W7Z4GJZI.js} +1 -1
- package/dist/{chunk-VY7UHIPW.js → chunk-WIWFIQL4.js} +1 -1
- package/dist/{chunk-GDWAKBBT.js → chunk-YN4Q3ZXZ.js} +5 -3
- package/dist/{chunk-NCPBMIR5.js → chunk-Z6QGSQEN.js} +2 -2
- package/dist/{chunk-LMQDIQI4.js → chunk-ZRDDV7QK.js} +4 -4
- package/dist/{codex-app-cards-switch-3TCXMVNB.js → codex-app-cards-switch-3A5N6T77.js} +6 -6
- package/dist/{codex-desktop-launch-4JX7HA66.js → codex-desktop-launch-XFYCWMO6.js} +1 -1
- package/dist/{codex-session-launch-ITEGM77S.js → codex-session-launch-O4ZB2CTG.js} +11 -11
- package/dist/{global-upgrade-SSWKV5NF.js → global-upgrade-MRY3EP7V.js} +7 -7
- package/dist/{identity-BMEZY3ST.js → identity-PSFVJNH5.js} +3 -3
- package/dist/{live-capabilities-AXVWZKBK.js → live-capabilities-VBKANCXF.js} +3 -3
- package/dist/{paths-EFJCRBNQ.js → paths-JPEMX4YI.js} +2 -2
- package/dist/{reapply-S26S7GHW.js → reapply-TBGC63MP.js} +22 -23
- package/dist/src/index.js +20 -20
- package/dist/{upgrade-lock-FCKMP6W2.js → upgrade-lock-RW44O57U.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-UP2JWLPI.js +0 -78
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CJRHVIUJ.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
10
|
} from "./chunk-PKDU2BY4.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SR3FOAJE.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
19
|
} from "./chunk-ZJYSZDFR.js";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SK6242SK.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2OREQ7MI.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
12
|
} from "./chunk-7MPVFAYZ.js";
|
|
13
13
|
import {
|
|
14
14
|
reportMachineDenial
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UPZHYN4N.js";
|
|
16
16
|
import {
|
|
17
17
|
isGatingMoment,
|
|
18
18
|
recordKeylessMoment
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
isAdmitted,
|
|
22
22
|
readAdmissionRules
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-O372NWUI.js";
|
|
24
24
|
import {
|
|
25
25
|
activeHookSource,
|
|
26
26
|
activeIdentity,
|
|
27
27
|
namedSource
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_SESSION,
|
|
31
31
|
allow,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
storedWaitDeadline,
|
|
66
66
|
sweepFilesOlderThan,
|
|
67
67
|
userScope
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-3T7KADQO.js";
|
|
69
69
|
import {
|
|
70
70
|
UNNAMED_ACTION,
|
|
71
71
|
deriveAction,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
sendNotification,
|
|
92
92
|
waitForQuestion,
|
|
93
93
|
withdrawQuestion
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-JYDVDSBM.js";
|
|
95
95
|
import {
|
|
96
96
|
branchFor,
|
|
97
97
|
projectNameFor,
|
|
@@ -100,10 +100,10 @@ import {
|
|
|
100
100
|
} from "./chunk-QLKIY3FD.js";
|
|
101
101
|
import {
|
|
102
102
|
getMachineId
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-CJRHVIUJ.js";
|
|
104
104
|
import {
|
|
105
105
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-SR3FOAJE.js";
|
|
107
107
|
import {
|
|
108
108
|
getApiKey,
|
|
109
109
|
getBaseUrl
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
hermesHistoryNeedsTheCliHelper,
|
|
3
|
-
recordInstalledHermesHistoryHelper
|
|
4
|
-
} from "./chunk-UP2JWLPI.js";
|
|
5
1
|
import {
|
|
6
2
|
macAppHistoryDecision
|
|
7
3
|
} from "./chunk-TWWOQKXK.js";
|
|
8
4
|
import {
|
|
9
|
-
ensureCodexTrustsPusharyHooks
|
|
10
|
-
|
|
5
|
+
ensureCodexTrustsPusharyHooks,
|
|
6
|
+
hermesHistoryNeedsTheCliHelper,
|
|
7
|
+
recordInstalledHermesHistoryHelper
|
|
8
|
+
} from "./chunk-JKM7YRYV.js";
|
|
11
9
|
import {
|
|
12
10
|
hermesReceiptPaths,
|
|
13
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -16,7 +14,7 @@ import {
|
|
|
16
14
|
refreshHermesPluginFiles,
|
|
17
15
|
refreshOpenClawPlugin,
|
|
18
16
|
shippedHermesPlugin
|
|
19
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BKTWGQLC.js";
|
|
20
18
|
import {
|
|
21
19
|
fxIgnoresInstructionsFile,
|
|
22
20
|
fxInstructionsBody,
|
|
@@ -25,7 +23,7 @@ import {
|
|
|
25
23
|
macAppFxBridge,
|
|
26
24
|
refreshClineKey,
|
|
27
25
|
switchFxHttpEntryToBridge
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZRDDV7QK.js";
|
|
29
27
|
import {
|
|
30
28
|
OPENCODE_HOOK_BINARY,
|
|
31
29
|
agentHookOwner,
|
|
@@ -38,16 +36,16 @@ import {
|
|
|
38
36
|
openCodePluginDir,
|
|
39
37
|
openCodeWired,
|
|
40
38
|
withOpenCodeAskRules
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FJJRXIZC.js";
|
|
42
40
|
import {
|
|
43
41
|
detectClaudeVersion
|
|
44
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GKMSHV5D.js";
|
|
45
43
|
import {
|
|
46
44
|
addCompatibleHooks,
|
|
47
45
|
compatibleConfigFile,
|
|
48
46
|
compatibleInstructionsFile,
|
|
49
47
|
hasCompatibleHooks
|
|
50
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
51
49
|
import {
|
|
52
50
|
GEMINI_HOOK_BINARY,
|
|
53
51
|
addGeminiHooks,
|
|
@@ -59,7 +57,7 @@ import {
|
|
|
59
57
|
geminiWired,
|
|
60
58
|
hasGeminiHooks,
|
|
61
59
|
planHooks
|
|
62
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
63
61
|
import {
|
|
64
62
|
transcriptsEnabled
|
|
65
63
|
} from "./chunk-GJ5XTWNZ.js";
|
|
@@ -112,13 +110,13 @@ import {
|
|
|
112
110
|
renderAgentInstructions,
|
|
113
111
|
supportedClaudeEvents,
|
|
114
112
|
vscodePluginMcp
|
|
115
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-SR3FOAJE.js";
|
|
116
114
|
import {
|
|
117
115
|
formatVersion,
|
|
118
116
|
hookCommandsUseBareNames,
|
|
119
117
|
resolveGlobalBinDir,
|
|
120
118
|
resolveGlobalBinary
|
|
121
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
122
120
|
import {
|
|
123
121
|
readJsonSafe,
|
|
124
122
|
writeFileAtomic,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SR3FOAJE.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VUCXVBDQ.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4DXHNWUY.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CJRHVIUJ.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IHG2TFXZ.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FJJRXIZC.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-TCE3J44Z.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SR3FOAJE.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
22
|
} from "./chunk-POXHWH73.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
uninstallOpenClawPlugin,
|
|
14
14
|
unsetOpenClawEntry,
|
|
15
15
|
writeOpenClawEntry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IHG2TFXZ.js";
|
|
17
17
|
import {
|
|
18
18
|
needsShell
|
|
19
19
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
openClawDirectoriesToLookIn,
|
|
26
26
|
openClawPluginFolder,
|
|
27
27
|
openClawSetupReceiptDirectory
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SR3FOAJE.js";
|
|
29
29
|
import {
|
|
30
30
|
resolvePathBinary
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
@@ -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.8",\n "tab": { "hidden": true },\n "entry": "web.js",\n "api": "plugin_api.py"\n}\n' },
|
|
1345
1345
|
{ path: "dashboard/plugin_api.py", contents: `import importlib
|
|
1346
1346
|
import sys
|
|
1347
1347
|
import time
|
|
@@ -1596,6 +1596,7 @@ import contextvars
|
|
|
1596
1596
|
import json
|
|
1597
1597
|
import logging
|
|
1598
1598
|
import math
|
|
1599
|
+
import ntpath
|
|
1599
1600
|
import os
|
|
1600
1601
|
import re
|
|
1601
1602
|
import shutil
|
|
@@ -1633,6 +1634,8 @@ PUSHARY_APP_NAME = "Pushary.app"
|
|
|
1633
1634
|
PUSHARY_APP_HELPER = Path("Contents") / "Helpers" / NATIVE_HELPER_NAME
|
|
1634
1635
|
SYSTEM_APPLICATIONS = Path("/Applications")
|
|
1635
1636
|
CLI_HELPER_NAME = "pushary-transcript-register"
|
|
1637
|
+
NPM_PATH_MARKER = ("@npmcli", "run-script", "lib", "node-gyp-bin")
|
|
1638
|
+
ONE_COMMAND_BIN_FOLDER = ("node_modules", ".bin")
|
|
1636
1639
|
CLI_HELPER_RECORD = "hermes-history-helper.json"
|
|
1637
1640
|
CLI_HELPER_RECORD_VERSION = 1
|
|
1638
1641
|
CLI_HELPER_RECORD_MAX_BYTES = 8192
|
|
@@ -1773,6 +1776,10 @@ def _helper_environment() -> dict[str, str]:
|
|
|
1773
1776
|
return {name: value for name, value in os.environ.items() if name in HELPER_ENVIRONMENT_NAMES}
|
|
1774
1777
|
|
|
1775
1778
|
|
|
1779
|
+
def _helper_folder(command: list[str]) -> str | None:
|
|
1780
|
+
return os.path.dirname(command[0]) if os.name == "nt" else None
|
|
1781
|
+
|
|
1782
|
+
|
|
1776
1783
|
def _registration_environment(key: str) -> dict[str, str]:
|
|
1777
1784
|
return {**_helper_environment(), "PUSHARY_API_KEY": key, "PUSHARY_BASE_URL": api.BASE_URL}
|
|
1778
1785
|
|
|
@@ -1838,12 +1845,23 @@ def _recorded_cli_helper(root: Path) -> list[str] | None:
|
|
|
1838
1845
|
return _runnable_recorded_command(value["command"]) if _is_recorded_command(value) else None
|
|
1839
1846
|
|
|
1840
1847
|
|
|
1848
|
+
def _ends_with_segments(entry: str, tail: tuple[str, ...]) -> bool:
|
|
1849
|
+
segments = tuple(segment.lower() for segment in ntpath.normpath(entry).split("\\\\") if segment)
|
|
1850
|
+
return segments[-len(tail):] == tail
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
def _path_before_npm_changed_it(entries: list[str]) -> list[str]:
|
|
1854
|
+
markers = [index for index, entry in enumerate(entries) if _ends_with_segments(entry, NPM_PATH_MARKER)]
|
|
1855
|
+
return entries[markers[-1] + 1:] if markers else entries
|
|
1856
|
+
|
|
1857
|
+
|
|
1841
1858
|
def _helper_on_path() -> str | None:
|
|
1842
1859
|
if os.name != "nt":
|
|
1843
1860
|
return shutil.which(CLI_HELPER_NAME)
|
|
1844
1861
|
extensions = os.environ.get("PATHEXT", ".COM;.EXE;.BAT;.CMD").split(";")
|
|
1845
|
-
for
|
|
1846
|
-
|
|
1862
|
+
for entry in _path_before_npm_changed_it(os.get_exec_path()):
|
|
1863
|
+
directory = PureWindowsPath(entry)
|
|
1864
|
+
if not directory.is_absolute() or _ends_with_segments(entry, ONE_COMMAND_BIN_FOLDER):
|
|
1847
1865
|
continue
|
|
1848
1866
|
for extension in extensions:
|
|
1849
1867
|
if extension.upper() not in {".EXE", ".COM", ".CMD", ".BAT"}:
|
|
@@ -1878,7 +1896,8 @@ def _registration_command(key: str) -> list[str] | None:
|
|
|
1878
1896
|
command = [*helper, "hermes"]
|
|
1879
1897
|
result = subprocess.run([*helper, "authorize-export"],
|
|
1880
1898
|
input=json.dumps({"apiKey": key, "baseUrl": api.BASE_URL}), text=True,
|
|
1881
|
-
env=_helper_environment(), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
|
|
1899
|
+
env=_helper_environment(), cwd=_helper_folder(helper), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
|
|
1900
|
+
timeout=5, check=False)
|
|
1882
1901
|
if result.returncode != 0:
|
|
1883
1902
|
return None
|
|
1884
1903
|
authorization = json.loads(result.stdout)
|
|
@@ -2033,7 +2052,8 @@ def _export_loop(database_path: Path, session_id: str, key: str, command: list[s
|
|
|
2033
2052
|
payload = {"session_id": session_id, "cwd": str(database_path.parent), "transcript_path": str(path),
|
|
2034
2053
|
"hook_event_name": "SessionEnd" if ending else "SessionStart"}
|
|
2035
2054
|
result = subprocess.run(command, input=json.dumps(payload), text=True, env=_registration_environment(key),
|
|
2036
|
-
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
|
|
2055
|
+
cwd=_helper_folder(command), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
|
|
2056
|
+
timeout=5, check=False)
|
|
2037
2057
|
if result.returncode != 0:
|
|
2038
2058
|
logger.warning("[pushary] Hermes history reader could not register")
|
|
2039
2059
|
next_registration = time.monotonic() + 60
|
|
@@ -2233,7 +2253,7 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
|
|
|
2233
2253
|
logger.debug("[pushary] could not record the plugin load: %s", exc)
|
|
2234
2254
|
return None
|
|
2235
2255
|
` },
|
|
2236
|
-
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.
|
|
2256
|
+
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.8\ndescription: Push notifications and human-in-the-loop for Hermes Agent via Pushary\nauthor: RalphNex OU\nrequires_env:\n - name: PUSHARY_API_KEY\n description: Your Pushary API key\n url: https://pushary.com/sign-up?from=hermes\n secret: true\nconfig_schema:\n api_key:\n type: secret\n env: PUSHARY_API_KEY\n label: Pushary API key\n description: "Get one at pushary.com/sign-up?from=hermes"\n required: true\nprovides_tools:\n - pushary_remind\n - pushary_notify\n - pushary_ask\n - pushary_wait\n - pushary_cancel\n - pushary_propose_scope\n - pushary_enroll\n - pushary_ask_end_user\nprovides_hooks:\n - pre_llm_call\n - pre_tool_call\n - post_tool_call\n - on_session_start\n - on_session_end\n - on_session_finalize\n - post_approval_response\nprovides_approval_transports:\n - pushary\n' },
|
|
2237
2257
|
{ path: "README.md", contents: "# Pushary for Hermes\n\nAsk a question in Hermes and answer it on your phone. Try it with your own device before routing command approvals there.\n\n## Connect your phone\n\n1. [Set up your Pushary Agent account](https://pushary.com/sign-up?from=ai-coding&utm_source=hermes-plugin&utm_medium=quickstart&utm_campaign=first-question). Pair your phone with that account and get its API key from Agent settings.\n2. In your terminal, install the catalog plugin:\n\n ```sh\n hermes plugins install pushary\n ```\n\n3. Enter `PUSHARY_API_KEY` when Hermes prompts for it. If you missed the prompt, save the key in the plugin\u2019s settings in Hermes Desktop. Keep it out of chat. Start a new Hermes session (for a running gateway, use `hermes gateway restart`).\n\n## Try one question\n\nTell Hermes: **Use `pushary_ask` to ask me \u201CDid this test reach your phone?\u201D Report my answer and do nothing else.** Open the question on your paired phone and tap **Yes** or **No**. Hermes should report the answer you tapped.\n\nIf nothing arrives, check the account and notification permissions on your phone. A pending question is still live: wait for the same question rather than sending another. If Pushary hands it back to Hermes, answer the local prompt instead. No answer is not approval.\n\nCommand approvals are separate from this test. To route them to your phone, set `security.approval.transport` to `pushary`. Set `security.approval.transport_fallback` to `builtin` if you want Hermes\u2019s local prompt after a safe handoff; an unconfirmed withdrawal does not authorize the command. See the [plugin guide](https://github.com/Pushary/hermes-plugin-pushary#readme) for approval routing and what the plugin reads and sends.\n" },
|
|
2238
2258
|
{ path: "schemas.py", contents: `PUSHARY_REMIND = {
|
|
2239
2259
|
"name": "pushary_remind",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CODEX_HOOK_STATUS
|
|
3
|
-
|
|
2
|
+
CODEX_HOOK_STATUS,
|
|
3
|
+
HERMES_HISTORY_HELPER_COMMAND
|
|
4
|
+
} from "./chunk-JKM7YRYV.js";
|
|
4
5
|
import {
|
|
5
6
|
HERMES_ALWAYS_ALLOWED_SHELL_RULE,
|
|
6
7
|
HERMES_COMMAND_ALLOWLIST_KEY,
|
|
7
8
|
HERMES_GATE_TOOLS_KEY,
|
|
8
9
|
HERMES_SHELL_TOOL
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BKTWGQLC.js";
|
|
10
11
|
import {
|
|
11
12
|
retryAgentCommand
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CXLHBAN4.js";
|
|
13
14
|
import {
|
|
14
15
|
NPX_LATEST_COMMAND
|
|
15
16
|
} from "./chunk-KQRWWJLF.js";
|
|
@@ -92,7 +93,9 @@ var describeHermesHistoryInstallFailure = (detail, nextStep) => `Hermes session
|
|
|
92
93
|
var describeHermesHistoryHelperRecord = (outcome, packageName, version, shownPath) => {
|
|
93
94
|
switch (outcome.kind) {
|
|
94
95
|
case "on_path":
|
|
95
|
-
return
|
|
96
|
+
return `Hermes session history runs ${HERMES_HISTORY_HELPER_COMMAND} from ${outcome.directory}, which is on PATH`;
|
|
97
|
+
case "not_on_path":
|
|
98
|
+
return `Hermes on Windows runs the first ${HERMES_HISTORY_HELPER_COMMAND} on PATH, and PATH does not lead to the one npm installed in ${outcome.directory}. Add that folder to your user PATH ahead of any older copy, open a new terminal, then run \`${HERMES_RESTART_COMMAND}\`.`;
|
|
96
99
|
case "written":
|
|
97
100
|
return `Hermes session history helper recorded in ${shownPath}`;
|
|
98
101
|
case "unchanged":
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-PSKPKVM6.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
25
|
} from "./chunk-VKGJ4XY5.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SR3FOAJE.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OLD2IPCZ.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-ZYXC6ZEQ.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-47G72ONB.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
38
|
} from "./chunk-Y3OHWGZV.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-4NJBLOER.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KJA5JZXV.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-ZYXC6ZEQ.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-47G72ONB.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
20
|
} from "./chunk-PKDU2BY4.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SR3FOAJE.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-POXHWH73.js";
|