@pushary/agent-hooks 1.9.144 → 1.9.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +5 -4
  3. package/data/SKILL.md +3 -3
  4. package/data/cursor-plugin/scripts/redaction.mjs +2 -1
  5. package/data/cursor-plugin/skills/pushary/SKILL.md +2 -2
  6. package/data/openclaw-plugin/LICENSE +21 -0
  7. package/data/openclaw-plugin/README.md +113 -0
  8. package/data/openclaw-plugin/dist/api-key-shape.js +5 -0
  9. package/data/openclaw-plugin/dist/approval-hook.js +88 -0
  10. package/data/openclaw-plugin/dist/approval-question.js +66 -0
  11. package/data/openclaw-plugin/dist/connection.js +101 -0
  12. package/data/openclaw-plugin/dist/decision-reply.js +6 -0
  13. package/data/openclaw-plugin/dist/gate-result.js +58 -0
  14. package/data/openclaw-plugin/dist/gate.js +173 -0
  15. package/data/openclaw-plugin/dist/hook-budget.js +19 -0
  16. package/data/openclaw-plugin/dist/host-api.js +1 -0
  17. package/data/openclaw-plugin/dist/host-version.js +25 -0
  18. package/data/openclaw-plugin/dist/index.js +32 -0
  19. package/data/openclaw-plugin/dist/openclaw-paths.js +43 -0
  20. package/data/openclaw-plugin/dist/openclaw-write-guard.js +93 -0
  21. package/data/openclaw-plugin/dist/protected-writes.js +217 -0
  22. package/data/openclaw-plugin/dist/pushary-client.js +103 -0
  23. package/data/openclaw-plugin/dist/pushary-hosts.js +3 -0
  24. package/data/openclaw-plugin/dist/redaction.js +53 -0
  25. package/data/openclaw-plugin/dist/replies.js +65 -0
  26. package/data/openclaw-plugin/dist/settings.js +103 -0
  27. package/data/openclaw-plugin/openclaw.plugin.json +32 -0
  28. package/data/openclaw-plugin/package.json +70 -0
  29. package/data/vscode-plugin/scripts/redaction.mjs +2 -1
  30. package/data/vscode-plugin/skills/pushary/SKILL.md +2 -2
  31. package/dist/{api-ZV7TT25P.js → api-2KDVLXHT.js} +11 -11
  32. package/dist/bin/pushary-audit.js +3 -3
  33. package/dist/bin/pushary-bell-hook.js +28 -28
  34. package/dist/bin/pushary-bell.js +11 -11
  35. package/dist/bin/pushary-claude.js +27 -27
  36. package/dist/bin/pushary-clean.js +76 -39
  37. package/dist/bin/pushary-codex-bridge.js +23 -23
  38. package/dist/bin/pushary-codex-hook.js +35 -35
  39. package/dist/bin/pushary-codex-session.js +8 -8
  40. package/dist/bin/pushary-codex.js +16 -16
  41. package/dist/bin/pushary-connect.js +78 -36
  42. package/dist/bin/pushary-cowork.js +5 -5
  43. package/dist/bin/pushary-daemon.js +44 -43
  44. package/dist/bin/pushary-disconnect.js +28 -28
  45. package/dist/bin/pushary-display-hook.js +103 -44
  46. package/dist/bin/pushary-doctor.js +139 -55
  47. package/dist/bin/pushary-elicitation-hook.js +28 -28
  48. package/dist/bin/pushary-gemini-bridge.js +17 -17
  49. package/dist/bin/pushary-gemini-hook.js +32 -32
  50. package/dist/bin/pushary-hook.js +35 -35
  51. package/dist/bin/pushary-login.js +22 -22
  52. package/dist/bin/pushary-logout.js +33 -31
  53. package/dist/bin/pushary-mcp.js +12 -12
  54. package/dist/bin/pushary-mode.js +16 -16
  55. package/dist/bin/pushary-notification-hook.js +27 -27
  56. package/dist/bin/pushary-opencode-hook.js +31 -31
  57. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  58. package/dist/bin/pushary-permission-hook.js +35 -35
  59. package/dist/bin/pushary-post-hook.js +28 -28
  60. package/dist/bin/pushary-prompt-hook.js +27 -27
  61. package/dist/bin/pushary-session-end-hook.js +27 -27
  62. package/dist/bin/pushary-session-start-hook.js +37 -36
  63. package/dist/bin/pushary-setup.js +209 -89
  64. package/dist/bin/pushary-stats.js +5 -5
  65. package/dist/bin/pushary-status.js +38 -36
  66. package/dist/bin/pushary-stop-hook.js +27 -27
  67. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  68. package/dist/bin/pushary-suggestions.js +16 -16
  69. package/dist/bin/pushary-transcript-register.js +17 -17
  70. package/dist/bin/pushary-transcripts.js +25 -25
  71. package/dist/bin/pushary-upgrade.js +42 -41
  72. package/dist/bin/pushary-wait.js +16 -16
  73. package/dist/bin/pushary.js +7 -7
  74. package/dist/{chunk-LUVSHGLH.js → chunk-2EETRVCZ.js} +1 -1
  75. package/dist/{chunk-YESBU4VQ.js → chunk-2G54YLN3.js} +3 -3
  76. package/dist/{chunk-WGOTBZ23.js → chunk-2I6A34GJ.js} +15 -5
  77. package/dist/{chunk-WGT5LCIB.js → chunk-2QY2BD4T.js} +5 -5
  78. package/dist/{chunk-HGIW56MU.js → chunk-2RAIG6NF.js} +2 -2
  79. package/dist/{chunk-QLGLUUOP.js → chunk-2YNAQ5TX.js} +1 -1
  80. package/dist/{chunk-44WPMZGQ.js → chunk-37ZBJB2Q.js} +5 -5
  81. package/dist/{chunk-4EBJ4PTZ.js → chunk-3NMX4725.js} +1 -1
  82. package/dist/{chunk-E32SRYTE.js → chunk-3TTXOU6G.js} +3 -3
  83. package/dist/{chunk-GV3FDGQH.js → chunk-4P3ML7HP.js} +200 -59
  84. package/dist/{chunk-22CXL7YI.js → chunk-526XSNMS.js} +3 -3
  85. package/dist/{chunk-B4VIT5N3.js → chunk-57GVGSOQ.js} +1 -1
  86. package/dist/{chunk-6LALK6GI.js → chunk-5II3USXS.js} +2 -2
  87. package/dist/{chunk-WWCM6UL7.js → chunk-5K65H6OO.js} +1 -1
  88. package/dist/{chunk-56HFENZK.js → chunk-6C5QRJIH.js} +5 -5
  89. package/dist/{chunk-EOKUIOMT.js → chunk-6EPTMB7L.js} +4 -4
  90. package/dist/{chunk-C5LIS3XM.js → chunk-6JBX55K4.js} +38 -8
  91. package/dist/{chunk-23CGCD5L.js → chunk-6YVGY2ZX.js} +7 -7
  92. package/dist/{chunk-WC25Z4XS.js → chunk-72S6PF2I.js} +2 -2
  93. package/dist/{chunk-YY5YVMBA.js → chunk-7P32YU2M.js} +10 -74
  94. package/dist/{chunk-WTBFPSTR.js → chunk-7TVSWGAV.js} +8 -6
  95. package/dist/{chunk-S7WVJ6AR.js → chunk-7WDEJTNX.js} +4 -4
  96. package/dist/{chunk-AJQ4TTPJ.js → chunk-7XIJD7NL.js} +3 -3
  97. package/dist/{chunk-PYT4WXXR.js → chunk-A5MSVNFS.js} +10 -10
  98. package/dist/{chunk-FC2ENROR.js → chunk-ANLR5G2W.js} +4 -4
  99. package/dist/{chunk-7VMVMC4H.js → chunk-BEDAQAEN.js} +1 -1
  100. package/dist/{chunk-4JTZZXB3.js → chunk-BHGSNYG5.js} +3 -3
  101. package/dist/{chunk-5I3UQEAX.js → chunk-BU2J4P7P.js} +3 -3
  102. package/dist/{chunk-EMODTMHE.js → chunk-BYVLAPCF.js} +1 -1
  103. package/dist/{chunk-5BTAIFVV.js → chunk-CSNG5NQR.js} +1 -1
  104. package/dist/{chunk-7QWH257P.js → chunk-D7ZWJYXB.js} +1 -1
  105. package/dist/{chunk-AGUL2JDK.js → chunk-ELRZO6A7.js} +3 -3
  106. package/dist/{chunk-Z2WQD2W6.js → chunk-EV54ZQ5J.js} +4 -4
  107. package/dist/{chunk-5TZYAMGW.js → chunk-FHBJJOMF.js} +1 -1
  108. package/dist/{chunk-74QCFZKV.js → chunk-FKGWP4MF.js} +8 -7
  109. package/dist/{chunk-MCI6KYN7.js → chunk-FMAIUTVU.js} +3 -3
  110. package/dist/{chunk-WTULK73V.js → chunk-FWCECQTY.js} +2 -2
  111. package/dist/{chunk-ZVJIJPQY.js → chunk-GGCUXNZN.js} +1 -1
  112. package/dist/{chunk-VP4T5352.js → chunk-GIWI5IHB.js} +6 -6
  113. package/dist/{chunk-RPXSGCRG.js → chunk-GJV5RVUU.js} +98 -47
  114. package/dist/chunk-GPAMD5JG.js +157 -0
  115. package/dist/{chunk-ZGYGKKXF.js → chunk-I72UU75H.js} +16 -16
  116. package/dist/{chunk-CV4EIXPV.js → chunk-ISM6XF3V.js} +494 -15
  117. package/dist/{chunk-HNFYZPNJ.js → chunk-ISOP4ENY.js} +17 -5
  118. package/dist/{chunk-R7FSMUHG.js → chunk-JDIKCM2N.js} +6 -5
  119. package/dist/{chunk-BHNX7XNO.js → chunk-KDJIDRJS.js} +3 -3
  120. package/dist/{chunk-DDJHPMBJ.js → chunk-KFL7OWLI.js} +1 -1
  121. package/dist/{chunk-5AXDNDUJ.js → chunk-KH27X5CW.js} +2 -2
  122. package/dist/{chunk-BHKODM4L.js → chunk-KXMIDDUN.js} +2 -2
  123. package/dist/{chunk-3KRGT5AZ.js → chunk-L2M6D2N4.js} +67 -4
  124. package/dist/{chunk-KEBI7NYU.js → chunk-L6BTSIKF.js} +4 -4
  125. package/dist/{chunk-YFK3MJGZ.js → chunk-LO52V6WG.js} +2 -2
  126. package/dist/{chunk-LVOHE66T.js → chunk-MI7GHNTO.js} +5 -5
  127. package/dist/{chunk-4524ZR2U.js → chunk-MYJJNLT2.js} +2 -2
  128. package/dist/{chunk-CZOMD2IW.js → chunk-NAGF5ZJ2.js} +8 -8
  129. package/dist/{chunk-53KLGXFL.js → chunk-NMUEUDTT.js} +4 -3
  130. package/dist/{chunk-C6SKS6IU.js → chunk-OSYULPJO.js} +23 -12
  131. package/dist/{chunk-F37YD4YE.js → chunk-OXDKZYBO.js} +1 -1
  132. package/dist/chunk-OYIN77HO.js +72 -0
  133. package/dist/{chunk-XLMJEEW3.js → chunk-P6W2V2AP.js} +2 -2
  134. package/dist/{chunk-ZKKZEVNI.js → chunk-Q3JW44JV.js} +2 -2
  135. package/dist/{chunk-EY5CVFDL.js → chunk-Q6POCQOV.js} +12 -12
  136. package/dist/{chunk-P5QXH5QI.js → chunk-Q767Y4LY.js} +1 -1
  137. package/dist/{chunk-UK5DKLZY.js → chunk-QGKFDSEO.js} +8 -8
  138. package/dist/{chunk-YD376BLV.js → chunk-RZGR4G5G.js} +5 -5
  139. package/dist/{chunk-OZG6CGYW.js → chunk-RZJHCHEA.js} +6 -6
  140. package/dist/{chunk-H33CFJOF.js → chunk-T274HRSR.js} +4 -4
  141. package/dist/chunk-T2CR5REM.js +176 -0
  142. package/dist/{chunk-QESEICW4.js → chunk-T3TVMMXJ.js} +1 -1
  143. package/dist/{chunk-44BLJJPH.js → chunk-TZ7CBPCD.js} +2 -2
  144. package/dist/{chunk-YCU7Y77H.js → chunk-UGPNLU4O.js} +1 -1
  145. package/dist/{chunk-BE5LO5VW.js → chunk-UR55VBLY.js} +2 -2
  146. package/dist/{chunk-EC7VHNHE.js → chunk-WLKW2TF7.js} +19 -12
  147. package/dist/{chunk-CWWO3JTD.js → chunk-WNV3X2VU.js} +3 -3
  148. package/dist/{chunk-HIIXYZYV.js → chunk-XQOBM3E6.js} +3 -3
  149. package/dist/{chunk-JK7DTAQH.js → chunk-YICO6HEW.js} +5 -5
  150. package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
  151. package/dist/chunk-YOVJOHM5.js +36 -0
  152. package/dist/{chunk-LS6BU5RM.js → chunk-ZKAQWXGO.js} +1 -1
  153. package/dist/{codex-app-cards-switch-5PWB62W3.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
  154. package/dist/{codex-card-routing-I6YOJBTT.js → codex-card-routing-JTS75442.js} +2 -2
  155. package/dist/{codex-desktop-launch-BCPUKOCV.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
  156. package/dist/{codex-session-launch-4ZUBROFZ.js → codex-session-launch-QYZZGVSQ.js} +20 -20
  157. package/dist/{config-2CHOLFNB.js → config-5ATI6KPI.js} +3 -3
  158. package/dist/{global-upgrade-4IKWJHLE.js → global-upgrade-K4HWVUMI.js} +9 -9
  159. package/dist/{identity-I2VWLZAQ.js → identity-V2GZCPJV.js} +4 -4
  160. package/dist/{live-capabilities-4CLCROSP.js → live-capabilities-PD62FO4K.js} +4 -4
  161. package/dist/{paths-YMHQKLFX.js → paths-WPJEIHUE.js} +7 -3
  162. package/dist/{reapply-FBQ7VR6L.js → reapply-ZEWMGDXT.js} +30 -29
  163. package/dist/src/index.js +34 -34
  164. package/dist/{upgrade-lock-7ONNXM6V.js → upgrade-lock-7OR6V323.js} +4 -4
  165. package/dist/{usage-GWUTCS5A.js → usage-GWZ3UGZG.js} +3 -3
  166. package/package.json +1 -1
  167. package/dist/chunk-I6HXZIER.js +0 -31
@@ -1,26 +1,31 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ describeOpenClawState,
4
+ openClawRepairStep,
5
+ readHermesShellGate,
3
6
  readSetupFailure
4
- } from "../chunk-I6HXZIER.js";
7
+ } from "../chunk-GPAMD5JG.js";
5
8
  import {
6
9
  CODEX_HOOK_REMEDY,
7
10
  HERMES_RESTART_COMMAND,
8
11
  describeHermesProblems,
12
+ describeHermesShellGate,
9
13
  describeHermesState,
10
14
  hermesRepairStep
11
- } from "../chunk-3KRGT5AZ.js";
15
+ } from "../chunk-L2M6D2N4.js";
12
16
  import {
13
17
  describeWaitLadder
14
18
  } from "../chunk-CVWG2N3Y.js";
15
19
  import {
16
20
  writeJsonError,
17
21
  writeStdoutFully
18
- } from "../chunk-QLGLUUOP.js";
22
+ } from "../chunk-2YNAQ5TX.js";
19
23
  import {
20
24
  fetchChannels
21
- } from "../chunk-GV3FDGQH.js";
25
+ } from "../chunk-4P3ML7HP.js";
22
26
  import "../chunk-3EGEA4KH.js";
23
27
  import {
28
+ GET_THE_APP_STEP,
24
29
  describeAnswerTestPrompt,
25
30
  describeReach,
26
31
  describeRoundTrip,
@@ -28,7 +33,7 @@ import {
28
33
  reachVerdict,
29
34
  roundTripEvidence,
30
35
  verifyRoundTrip
31
- } from "../chunk-EC7VHNHE.js";
36
+ } from "../chunk-WLKW2TF7.js";
32
37
  import {
33
38
  daemonStopsAtLogout,
34
39
  lingerDoctorDetail,
@@ -37,17 +42,17 @@ import {
37
42
  import {
38
43
  readMachineReadiness,
39
44
  readManagedControlEvidence
40
- } from "../chunk-JK7DTAQH.js";
45
+ } from "../chunk-YICO6HEW.js";
41
46
  import {
42
47
  assessCodexHookTrust,
43
48
  readCodexTrustForPusharyHooks
44
- } from "../chunk-6LALK6GI.js";
49
+ } from "../chunk-5II3USXS.js";
45
50
  import {
46
51
  SIGNED_OUT_ON_MAC_MESSAGE,
47
52
  activeKeyVerdictOf,
48
53
  describeSignedOutKey,
49
54
  readSignedOutDiagnosis
50
- } from "../chunk-ZKKZEVNI.js";
55
+ } from "../chunk-Q3JW44JV.js";
51
56
  import {
52
57
  agentProbes,
53
58
  detectAgent,
@@ -56,16 +61,17 @@ import {
56
61
  isPluginRegistered,
57
62
  shortenHome,
58
63
  vscodeSettingsTargets
59
- } from "../chunk-HNFYZPNJ.js";
64
+ } from "../chunk-ISOP4ENY.js";
65
+ import "../chunk-OYIN77HO.js";
60
66
  import {
61
67
  CONNECTED_THROUGH_MAC_APP,
62
68
  keyWrittenByMacApp,
63
69
  readMacAppConnectionWhenKeyless
64
- } from "../chunk-EOKUIOMT.js";
70
+ } from "../chunk-6EPTMB7L.js";
65
71
  import {
66
72
  keyScopeOf,
67
73
  pushWindowChangeStep
68
- } from "../chunk-YFK3MJGZ.js";
74
+ } from "../chunk-LO52V6WG.js";
69
75
  import {
70
76
  findHermesLauncher,
71
77
  hasUpdateFrom,
@@ -73,12 +79,19 @@ import {
73
79
  hermesSetupWasRecorded,
74
80
  hermesWiringOwner,
75
81
  inspectHermesWiring,
82
+ inspectOpenClawWiring,
83
+ openClawFilesNow,
76
84
  routesHermesApprovals,
77
85
  routesHermesQuestions,
78
86
  runsAnOlderPlugin,
79
87
  shippedHermesPlugin
80
- } from "../chunk-CV4EIXPV.js";
88
+ } from "../chunk-ISM6XF3V.js";
81
89
  import "../chunk-QCGNGEGE.js";
90
+ import {
91
+ findOpenClawLauncher,
92
+ isOpenClawWired,
93
+ openClawPathsNow
94
+ } from "../chunk-T2CR5REM.js";
82
95
  import {
83
96
  FX_PROFILE_REFUSALS,
84
97
  FX_PUSHARY_TOOLS_RULE,
@@ -88,11 +101,11 @@ import {
88
101
  inspectClineInstallation,
89
102
  inspectFxInstallation,
90
103
  inspectFxPusharyHttpWiring
91
- } from "../chunk-YD376BLV.js";
104
+ } from "../chunk-RZGR4G5G.js";
92
105
  import {
93
106
  retryAgentCommand
94
- } from "../chunk-MCI6KYN7.js";
95
- import "../chunk-BHNX7XNO.js";
107
+ } from "../chunk-FMAIUTVU.js";
108
+ import "../chunk-KDJIDRJS.js";
96
109
  import {
97
110
  OPENCODE_PLUGIN_PLACEHOLDER,
98
111
  cliOwnsAnyAgentHooks,
@@ -102,25 +115,25 @@ import {
102
115
  openCodePluginDir,
103
116
  openCodePluginFile,
104
117
  openCodeWired
105
- } from "../chunk-LVOHE66T.js";
118
+ } from "../chunk-MI7GHNTO.js";
106
119
  import {
107
120
  createIo
108
- } from "../chunk-FO3MDD26.js";
121
+ } from "../chunk-YM2T76UM.js";
109
122
  import {
110
123
  exitOnHelpFlag
111
- } from "../chunk-QESEICW4.js";
124
+ } from "../chunk-T3TVMMXJ.js";
112
125
  import {
113
126
  describeMissingControlPrerequisite,
114
127
  detectProviderLiveCapabilities,
115
128
  expectedLaunchCapabilities,
116
129
  hasSpawnProvider,
117
130
  resolveControlPolicy
118
- } from "../chunk-AGUL2JDK.js";
119
- import "../chunk-BE5LO5VW.js";
131
+ } from "../chunk-ELRZO6A7.js";
132
+ import "../chunk-UR55VBLY.js";
120
133
  import "../chunk-CYTPQDQY.js";
121
134
  import {
122
135
  readLedgerSummary
123
- } from "../chunk-5TZYAMGW.js";
136
+ } from "../chunk-FHBJJOMF.js";
124
137
  import {
125
138
  AUTO_UPDATE_DISABLE_ENV,
126
139
  autoUpdateOffReason,
@@ -128,7 +141,7 @@ import {
128
141
  describeAutoUpdateCheck,
129
142
  readAutoUpdateState,
130
143
  takeAutoUpdateAnnouncement
131
- } from "../chunk-4524ZR2U.js";
144
+ } from "../chunk-MYJJNLT2.js";
132
145
  import {
133
146
  compatibleConfigFile,
134
147
  compatibleInstructionsFile,
@@ -136,7 +149,7 @@ import {
136
149
  hasCompatibleHooks,
137
150
  hasCompatibleMcpServer,
138
151
  missingCompatibleHookEvents
139
- } from "../chunk-WGOTBZ23.js";
152
+ } from "../chunk-2I6A34GJ.js";
140
153
  import {
141
154
  daemonHasRemoteProof,
142
155
  daemonServiceManagerAvailable,
@@ -149,7 +162,7 @@ import {
149
162
  readServiceExecPath,
150
163
  serviceStartFileChecks,
151
164
  versionManagerOf
152
- } from "../chunk-VP4T5352.js";
165
+ } from "../chunk-GIWI5IHB.js";
153
166
  import {
154
167
  GEMINI_HOOK_BINARY,
155
168
  claudeOtherHolders,
@@ -169,41 +182,42 @@ import {
169
182
  holdsLong,
170
183
  missingGeminiHookEvents,
171
184
  pusharyHookExecutable
172
- } from "../chunk-KEBI7NYU.js";
173
- import "../chunk-EY5CVFDL.js";
174
- import "../chunk-7QWH257P.js";
175
- import "../chunk-53KLGXFL.js";
176
- import "../chunk-F37YD4YE.js";
185
+ } from "../chunk-L6BTSIKF.js";
186
+ import "../chunk-Q6POCQOV.js";
187
+ import "../chunk-D7ZWJYXB.js";
188
+ import "../chunk-NMUEUDTT.js";
189
+ import "../chunk-OXDKZYBO.js";
177
190
  import {
178
191
  parseFlags
179
192
  } from "../chunk-YPY4YCIZ.js";
180
- import "../chunk-EMODTMHE.js";
181
- import "../chunk-74QCFZKV.js";
193
+ import "../chunk-BYVLAPCF.js";
194
+ import "../chunk-FKGWP4MF.js";
182
195
  import "../chunk-POFBE6ZY.js";
183
196
  import {
184
197
  callMcpTool,
185
198
  sendMcpRequest
186
- } from "../chunk-WGT5LCIB.js";
199
+ } from "../chunk-2QY2BD4T.js";
187
200
  import {
188
201
  checkApiKey,
189
202
  describeKeyCheck
190
- } from "../chunk-E32SRYTE.js";
191
- import "../chunk-YESBU4VQ.js";
203
+ } from "../chunk-3TTXOU6G.js";
204
+ import "../chunk-2G54YLN3.js";
192
205
  import "../chunk-H6CL3T2S.js";
193
- import "../chunk-ZVJIJPQY.js";
194
- import "../chunk-YCU7Y77H.js";
206
+ import "../chunk-GGCUXNZN.js";
207
+ import "../chunk-UGPNLU4O.js";
195
208
  import {
196
209
  getMachineId
197
- } from "../chunk-5BTAIFVV.js";
210
+ } from "../chunk-CSNG5NQR.js";
198
211
  import {
199
212
  UsageError
200
213
  } from "../chunk-YU2EUD7O.js";
201
214
  import {
202
215
  keyPrefix,
216
+ readConfigFileKey,
203
217
  readControlMode,
204
218
  readKeySource
205
- } from "../chunk-HIIXYZYV.js";
206
- import "../chunk-BHKODM4L.js";
219
+ } from "../chunk-XQOBM3E6.js";
220
+ import "../chunk-KXMIDDUN.js";
207
221
  import {
208
222
  CLINE_AUTO_APPROVE_STEP,
209
223
  CLINE_LABEL,
@@ -241,15 +255,15 @@ import {
241
255
  readCodexMcpAuth,
242
256
  resolveBridgeStub,
243
257
  vscodePluginDir
244
- } from "../chunk-RPXSGCRG.js";
258
+ } from "../chunk-GJV5RVUU.js";
245
259
  import {
246
260
  fetchLatestPublishedVersion,
247
261
  readGlobalCliInstall,
248
262
  resolvePathBinary
249
- } from "../chunk-5I3UQEAX.js";
263
+ } from "../chunk-BU2J4P7P.js";
250
264
  import {
251
265
  getBaseUrl
252
- } from "../chunk-4EBJ4PTZ.js";
266
+ } from "../chunk-3NMX4725.js";
253
267
  import {
254
268
  EXIT
255
269
  } from "../chunk-BG4HHB7E.js";
@@ -258,7 +272,7 @@ import {
258
272
  } from "../chunk-TODDEIYG.js";
259
273
  import {
260
274
  NPX_LATEST_COMMAND
261
- } from "../chunk-R7FSMUHG.js";
275
+ } from "../chunk-JDIKCM2N.js";
262
276
  import {
263
277
  commandsPackage,
264
278
  getPackageVersion,
@@ -278,12 +292,13 @@ import {
278
292
  hookActivationResult,
279
293
  hookCompatibleProfile,
280
294
  isHookActivationReport,
295
+ isValidApiKey,
281
296
  redactSecretsFromContent
282
- } from "../chunk-C5LIS3XM.js";
297
+ } from "../chunk-6JBX55K4.js";
283
298
  import "../chunk-MLKGABMK.js";
284
299
 
285
300
  // bin/pushary-doctor.ts
286
- import { existsSync, readFileSync, writeFileSync } from "fs";
301
+ import { existsSync, readFileSync as readFileSync2, writeFileSync } from "fs";
287
302
  import { join as join2 } from "path";
288
303
  import { homedir as homedir2 } from "os";
289
304
  import { execFileSync } from "child_process";
@@ -355,6 +370,27 @@ var describeAutoUpdateStatus = (input) => {
355
370
  ];
356
371
  };
357
372
 
373
+ // src/openclaw/env-file.ts
374
+ import { readFileSync } from "fs";
375
+ var PUSHARY_API_KEY_VARIABLE = "PUSHARY_API_KEY";
376
+ var ASSIGNMENT = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*?)\s*$/;
377
+ var QUOTED = /^(["'])(.*)\1$/;
378
+ var unquoted = (value) => QUOTED.exec(value)?.[2] ?? value;
379
+ var keyFromEnvironmentFileText = (text) => {
380
+ const assigned = text.split(/\r?\n/).flatMap((line) => {
381
+ const match = ASSIGNMENT.exec(line);
382
+ return match !== null && match[1] === PUSHARY_API_KEY_VARIABLE ? [unquoted(match[2] ?? "")] : [];
383
+ }).at(-1);
384
+ return assigned !== void 0 && isValidApiKey(assigned) ? assigned : null;
385
+ };
386
+ var environmentFileHoldsAKey = (path) => {
387
+ try {
388
+ return keyFromEnvironmentFileText(readFileSync(path, "utf-8")) !== null;
389
+ } catch {
390
+ return false;
391
+ }
392
+ };
393
+
358
394
  // src/diagnostics/bundle.ts
359
395
  import { homedir, hostname } from "os";
360
396
  var installedGlobalPackages = (install) => {
@@ -597,7 +633,7 @@ var pass = green("\u2713");
597
633
  var fail = red("\u2717");
598
634
  var warn = yellow("!");
599
635
  var CLAUDE_SETTINGS = claudeSettings();
600
- var registeredConfigs = () => [CLAUDE_SETTINGS, codexHooksJson(), ...HOOK_COMPATIBLE_PROFILES.map((profile) => compatibleConfigFile(profile))].filter(existsSync).map((file) => ({ file, contents: readFileSync(file, "utf-8") }));
636
+ var registeredConfigs = () => [CLAUDE_SETTINGS, codexHooksJson(), ...HOOK_COMPATIBLE_PROFILES.map((profile) => compatibleConfigFile(profile))].filter(existsSync).map((file) => ({ file, contents: readFileSync2(file, "utf-8") }));
601
637
  var SKILL_PATH = join2(claudeSkillDir(), "SKILL.md");
602
638
  var SHELL_FILES = [".zshrc", ".zprofile", ".bashrc", ".bash_profile"].map((f) => join2(homedir2(), f));
603
639
  var reportFxQuestionRouting = (routing) => {
@@ -645,6 +681,18 @@ var reportHermesWiring = (inspection) => {
645
681
  console.log(` ${dim("\u2013")} Hermes: ${describeHermesState(state)}`);
646
682
  }
647
683
  };
684
+ var reportHermesShellGate = (report) => {
685
+ switch (report.tone) {
686
+ case "pass":
687
+ check(true, report.label, report.detail);
688
+ return;
689
+ case "warn":
690
+ console.log(` ${warn} ${report.label} ${dim(`(${report.detail}. To fix it, ${report.fix})`)}`);
691
+ return;
692
+ case "note":
693
+ skipped(report.label, report.detail);
694
+ }
695
+ };
648
696
  var reportClineKey = (cline, apiKey) => {
649
697
  if (cline.runsCommand) {
650
698
  console.log(` ${warn} Cline: the pushary server runs through a local command ${dim(`(${retryAgentCommand("cline")} replaces it with a direct connection that carries your key)`)}`);
@@ -689,7 +737,7 @@ var FX_QUESTION_ROUTING_WARNINGS = {
689
737
  var fxBridgeFound = (target) => target.includes("/") ? existsSync(target) : resolvePathBinary(target) !== void 0;
690
738
  var readJson = (path) => {
691
739
  try {
692
- return JSON.parse(readFileSync(path, "utf-8"));
740
+ return JSON.parse(readFileSync2(path, "utf-8"));
693
741
  } catch {
694
742
  return null;
695
743
  }
@@ -803,6 +851,34 @@ var describeStoredCodexTrust = (untrusted, disabled, missing, asynchronous) => {
803
851
  if (untrusted.length > 0) return `untrusted (${untrusted.join(", ")}) \u2014 ${CODEX_HOOK_REMEDY.untrusted}`;
804
852
  return "all events trusted";
805
853
  };
854
+ var OPENCLAW_KEY_FROM_CONFIG = "the plugin reads it from the Pushary config file";
855
+ var OPENCLAW_KEY_FROM_ENV_FILE = "the gateway reads PUSHARY_API_KEY from its .env file";
856
+ var OPENCLAW_KEY_ONLY_IN_SHELL = "only this shell has PUSHARY_API_KEY; put it in ~/.openclaw/.env so the gateway has it too";
857
+ var OPENCLAW_NO_KEY = "no key for the plugin; every gated call is blocked until you run setup or add PUSHARY_API_KEY to ~/.openclaw/.env";
858
+ var reportOpenClawKey = () => {
859
+ if (environmentFileHoldsAKey(openClawPathsNow().environmentFile)) {
860
+ check(true, "OpenClaw: plugin can read an API key", OPENCLAW_KEY_FROM_ENV_FILE);
861
+ return;
862
+ }
863
+ if (readConfigFileKey() !== null) {
864
+ check(true, "OpenClaw: plugin can read an API key", OPENCLAW_KEY_FROM_CONFIG);
865
+ return;
866
+ }
867
+ if (readKeySource().kind === "env") {
868
+ console.log(` ${warn} OpenClaw: ${OPENCLAW_KEY_ONLY_IN_SHELL}`);
869
+ return;
870
+ }
871
+ check(false, "OpenClaw: plugin can read an API key", OPENCLAW_NO_KEY);
872
+ };
873
+ var reportOpenClawWiring = (inspection) => {
874
+ const { state } = inspection;
875
+ const wired = isOpenClawWired(state);
876
+ check(wired, "OpenClaw: Pushary plugin enabled", wired ? describeOpenClawState(state) : `${describeOpenClawState(state)}; run ${openClawRepairStep(state)}`);
877
+ if (state.kind === "wired" && !state.gateVerified) {
878
+ console.log(` ${warn} OpenClaw: could not confirm the before_tool_call gate ${dim(`(openclaw plugins inspect pushary --runtime --json)`)}`);
879
+ }
880
+ if (wired) reportOpenClawKey();
881
+ };
806
882
  var skipped = (label, why) => {
807
883
  console.log(` ${dim("\u2013")} ${label} ${dim(`(${why})`)}`);
808
884
  };
@@ -820,7 +896,7 @@ var main = async () => {
820
896
  if (!apiKey) {
821
897
  for (const f of SHELL_FILES) {
822
898
  try {
823
- const content = readFileSync(f, "utf-8");
899
+ const content = readFileSync2(f, "utf-8");
824
900
  const match = content.match(/export\s+PUSHARY_API_KEY=['"](pk_[a-f0-9]+\.[a-f0-9]+)['"]/);
825
901
  if (match) {
826
902
  apiKey = match[1];
@@ -963,7 +1039,7 @@ var main = async () => {
963
1039
  const codexConfigPath = codexConfigToml();
964
1040
  const codexHooksPath = codexHooksJson();
965
1041
  const codexHooksConfig = readJson(codexHooksPath);
966
- const codexConfig = existsSync(codexConfigPath) ? readFileSync(codexConfigPath, "utf-8") : "";
1042
+ const codexConfig = existsSync(codexConfigPath) ? readFileSync2(codexConfigPath, "utf-8") : "";
967
1043
  let codexParsed = {};
968
1044
  try {
969
1045
  codexParsed = parseTOML(codexConfig);
@@ -994,7 +1070,7 @@ var main = async () => {
994
1070
  const envValue = process.env[codexAuth.envVar]?.trim();
995
1071
  const exportedInProfile = SHELL_FILES.some((f) => {
996
1072
  try {
997
- return readFileSync(f, "utf-8").includes(`export ${codexAuth.envVar}=`);
1073
+ return readFileSync2(f, "utf-8").includes(`export ${codexAuth.envVar}=`);
998
1074
  } catch {
999
1075
  return false;
1000
1076
  }
@@ -1140,7 +1216,7 @@ var main = async () => {
1140
1216
  );
1141
1217
  const mcpPath = compatibleMcpFile(profile);
1142
1218
  if (mcpPath) {
1143
- const hasServer = hasCompatibleMcpServer(profile, existsSync(mcpPath) ? readFileSync(mcpPath, "utf-8") : "");
1219
+ const hasServer = hasCompatibleMcpServer(profile, existsSync(mcpPath) ? readFileSync2(mcpPath, "utf-8") : "");
1144
1220
  check(hasServer, `${profile.label}: MCP server`, hasServer ? shortenHome(mcpPath) : "missing \u2014 re-run setup");
1145
1221
  }
1146
1222
  const instructionsPath = compatibleInstructionsFile(profile);
@@ -1276,7 +1352,7 @@ var main = async () => {
1276
1352
  if (existsSync(vscodePluginDir2)) {
1277
1353
  checking("VS Code");
1278
1354
  const registeredIn = vscodeSettingsTargets(existsSync).filter(
1279
- (settingsPath) => existsSync(settingsPath) && isPluginRegistered(readFileSync(settingsPath, "utf-8"), vscodePluginDir2)
1355
+ (settingsPath) => existsSync(settingsPath) && isPluginRegistered(readFileSync2(settingsPath, "utf-8"), vscodePluginDir2)
1280
1356
  );
1281
1357
  check(
1282
1358
  registeredIn.length > 0,
@@ -1317,7 +1393,7 @@ var main = async () => {
1317
1393
  const plugin = openCodePluginFile();
1318
1394
  const contents = (() => {
1319
1395
  try {
1320
- return readFileSync(plugin, "utf-8");
1396
+ return readFileSync2(plugin, "utf-8");
1321
1397
  } catch {
1322
1398
  return "";
1323
1399
  }
@@ -1395,11 +1471,19 @@ var main = async () => {
1395
1471
  if (hermes.kind === "inspected" && (hermes.state.kind !== "not_wired" || hermesSetupRecorded)) {
1396
1472
  checking("Hermes");
1397
1473
  reportHermesWiring(hermes);
1474
+ reportHermesShellGate(describeHermesShellGate(await readHermesShellGate(hermes.launcher)));
1398
1475
  } else if (hermes.kind === "unreadable" && hermesSetupRecorded) {
1399
1476
  check(false, "Hermes: settings readable", `Hermes would not report its settings through hermes config get \u2014 run hermes update, then ${hermesRepairStep(existsSync(hermesAppWiringRecord()) ? "mac_app" : "cli")}`);
1400
1477
  } else {
1401
1478
  skipped("Hermes", findHermesLauncher() ? "installed, but Pushary is not set up for it" : "not installed");
1402
1479
  }
1480
+ const openClaw = await inspectOpenClawWiring(openClawFilesNow());
1481
+ if (openClaw.kind === "inspected" && openClaw.state.kind !== "not_installed") {
1482
+ checking("OpenClaw");
1483
+ reportOpenClawWiring(openClaw);
1484
+ } else {
1485
+ skipped("OpenClaw", findOpenClawLauncher() ? "installed, but Pushary is not set up for it" : "not installed");
1486
+ }
1403
1487
  if (bridgeStub) {
1404
1488
  const resolution = resolveBridgeStub(bridgeStub, liveBridgeProbe());
1405
1489
  check(resolution.kind === "bundle", "Mac app behind pushary-bridge", describeBridgeResolution(resolution));
@@ -1435,7 +1519,7 @@ var main = async () => {
1435
1519
  console.log(` ${dim("Remote control")}`);
1436
1520
  const aliasRc = SHELL_FILES.find((f) => {
1437
1521
  try {
1438
- return /alias\s+claude=['"]?pushary claude/.test(readFileSync(f, "utf-8"));
1522
+ return /alias\s+claude=['"]?pushary claude/.test(readFileSync2(f, "utf-8"));
1439
1523
  } catch {
1440
1524
  return false;
1441
1525
  }
@@ -1537,7 +1621,7 @@ var main = async () => {
1537
1621
  check(
1538
1622
  verdict.kind === "yours",
1539
1623
  "Phone reachable",
1540
- verdict.kind === "yours" ? describeReach(channels) : verdict.kind === "nobody" ? "no phone paired, run pushary pair or get the app at https://pushary.com/download" : `${describeReach(channels)}; run pushary pair to pair your own`,
1624
+ verdict.kind === "yours" ? describeReach(channels) : verdict.kind === "nobody" ? `no phone connected. ${GET_THE_APP_STEP}` : `${describeReach(channels)}. ${GET_THE_APP_STEP}`,
1541
1625
  "reachability"
1542
1626
  );
1543
1627
  }
@@ -1,56 +1,56 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readHookInput
4
- } from "../chunk-56HFENZK.js";
5
- import "../chunk-S7WVJ6AR.js";
4
+ } from "../chunk-6C5QRJIH.js";
5
+ import "../chunk-7WDEJTNX.js";
6
6
  import {
7
7
  announceSubscriptionRequired,
8
8
  isDeferAnswer
9
- } from "../chunk-WWCM6UL7.js";
10
- import "../chunk-PYT4WXXR.js";
9
+ } from "../chunk-5K65H6OO.js";
10
+ import "../chunk-A5MSVNFS.js";
11
11
  import "../chunk-VAE5JBR5.js";
12
12
  import "../chunk-G66WIAST.js";
13
- import "../chunk-WGOTBZ23.js";
14
- import "../chunk-VP4T5352.js";
15
- import "../chunk-KEBI7NYU.js";
16
- import "../chunk-EY5CVFDL.js";
17
- import "../chunk-7QWH257P.js";
18
- import "../chunk-53KLGXFL.js";
19
- import "../chunk-F37YD4YE.js";
13
+ import "../chunk-2I6A34GJ.js";
14
+ import "../chunk-GIWI5IHB.js";
15
+ import "../chunk-L6BTSIKF.js";
16
+ import "../chunk-Q6POCQOV.js";
17
+ import "../chunk-D7ZWJYXB.js";
18
+ import "../chunk-NMUEUDTT.js";
19
+ import "../chunk-OXDKZYBO.js";
20
20
  import "../chunk-YPY4YCIZ.js";
21
- import "../chunk-22CXL7YI.js";
21
+ import "../chunk-526XSNMS.js";
22
22
  import "../chunk-XMSDA5WA.js";
23
- import "../chunk-7VMVMC4H.js";
24
- import "../chunk-EMODTMHE.js";
23
+ import "../chunk-BEDAQAEN.js";
24
+ import "../chunk-BYVLAPCF.js";
25
25
  import {
26
26
  askUser,
27
27
  isDecisionStopped,
28
28
  isQuestionLimitRefusal,
29
29
  waitForQuestion
30
- } from "../chunk-74QCFZKV.js";
30
+ } from "../chunk-FKGWP4MF.js";
31
31
  import "../chunk-POFBE6ZY.js";
32
32
  import {
33
33
  SubscriptionRequiredError
34
- } from "../chunk-WGT5LCIB.js";
35
- import "../chunk-E32SRYTE.js";
36
- import "../chunk-YESBU4VQ.js";
34
+ } from "../chunk-2QY2BD4T.js";
35
+ import "../chunk-3TTXOU6G.js";
36
+ import "../chunk-2G54YLN3.js";
37
37
  import "../chunk-H6CL3T2S.js";
38
- import "../chunk-ZVJIJPQY.js";
39
- import "../chunk-YCU7Y77H.js";
38
+ import "../chunk-GGCUXNZN.js";
39
+ import "../chunk-UGPNLU4O.js";
40
40
  import {
41
41
  getMachineId
42
- } from "../chunk-5BTAIFVV.js";
42
+ } from "../chunk-CSNG5NQR.js";
43
43
  import "../chunk-YU2EUD7O.js";
44
- import "../chunk-HIIXYZYV.js";
45
- import "../chunk-BHKODM4L.js";
46
- import "../chunk-RPXSGCRG.js";
47
- import "../chunk-5I3UQEAX.js";
44
+ import "../chunk-XQOBM3E6.js";
45
+ import "../chunk-KXMIDDUN.js";
46
+ import "../chunk-GJV5RVUU.js";
47
+ import "../chunk-BU2J4P7P.js";
48
48
  import {
49
49
  getApiKey
50
- } from "../chunk-4EBJ4PTZ.js";
50
+ } from "../chunk-3NMX4725.js";
51
51
  import "../chunk-BG4HHB7E.js";
52
52
  import "../chunk-TODDEIYG.js";
53
- import "../chunk-R7FSMUHG.js";
53
+ import "../chunk-JDIKCM2N.js";
54
54
  import "../chunk-WIIMW5YO.js";
55
55
  import {
56
56
  ELICITATION_ANSWERABLE_MODE,
@@ -62,7 +62,7 @@ import {
62
62
  planElicitationAsk,
63
63
  readElicitationFields,
64
64
  renderElicitationOutput
65
- } from "../chunk-C5LIS3XM.js";
65
+ } from "../chunk-6JBX55K4.js";
66
66
  import "../chunk-MLKGABMK.js";
67
67
 
68
68
  // bin/pushary-elicitation-hook.ts
@@ -5,50 +5,50 @@ import {
5
5
  postLiveSession,
6
6
  postLiveSessionUntilAccepted,
7
7
  startLiveSessionHeartbeat
8
- } from "../chunk-B4VIT5N3.js";
8
+ } from "../chunk-57GVGSOQ.js";
9
9
  import {
10
10
  resolveProviderBinary
11
- } from "../chunk-AGUL2JDK.js";
12
- import "../chunk-BE5LO5VW.js";
11
+ } from "../chunk-ELRZO6A7.js";
12
+ import "../chunk-UR55VBLY.js";
13
13
  import {
14
14
  CommandReceipts,
15
15
  controllerCommandSchema
16
- } from "../chunk-DDJHPMBJ.js";
16
+ } from "../chunk-KFL7OWLI.js";
17
17
  import {
18
18
  SESSION_IDLE_TIMEOUT_MS,
19
19
  describeIdleWindow,
20
20
  idleDeadlinePassed,
21
21
  startProcessOwnership,
22
22
  withSpawnProcessOwnership
23
- } from "../chunk-5AXDNDUJ.js";
23
+ } from "../chunk-KH27X5CW.js";
24
24
  import "../chunk-CYTPQDQY.js";
25
- import "../chunk-22CXL7YI.js";
25
+ import "../chunk-526XSNMS.js";
26
26
  import "../chunk-XMSDA5WA.js";
27
27
  import {
28
28
  transcriptsEnabled
29
- } from "../chunk-7VMVMC4H.js";
29
+ } from "../chunk-BEDAQAEN.js";
30
30
  import {
31
31
  spawnClaude
32
32
  } from "../chunk-H6CL3T2S.js";
33
33
  import {
34
34
  readCommandAck
35
- } from "../chunk-ZVJIJPQY.js";
36
- import "../chunk-YCU7Y77H.js";
35
+ } from "../chunk-GGCUXNZN.js";
36
+ import "../chunk-UGPNLU4O.js";
37
37
  import {
38
38
  getMachineId
39
- } from "../chunk-5BTAIFVV.js";
40
- import "../chunk-HIIXYZYV.js";
41
- import "../chunk-BHKODM4L.js";
42
- import "../chunk-RPXSGCRG.js";
43
- import "../chunk-5I3UQEAX.js";
39
+ } from "../chunk-CSNG5NQR.js";
40
+ import "../chunk-XQOBM3E6.js";
41
+ import "../chunk-KXMIDDUN.js";
42
+ import "../chunk-GJV5RVUU.js";
43
+ import "../chunk-BU2J4P7P.js";
44
44
  import {
45
45
  getApiKey,
46
46
  getBaseUrl
47
- } from "../chunk-4EBJ4PTZ.js";
47
+ } from "../chunk-3NMX4725.js";
48
48
  import "../chunk-TODDEIYG.js";
49
- import "../chunk-R7FSMUHG.js";
49
+ import "../chunk-JDIKCM2N.js";
50
50
  import "../chunk-WIIMW5YO.js";
51
- import "../chunk-C5LIS3XM.js";
51
+ import "../chunk-6JBX55K4.js";
52
52
  import "../chunk-MLKGABMK.js";
53
53
 
54
54
  // bin/pushary-gemini-bridge.ts