@pushary/agent-hooks 1.9.145 → 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 +17 -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-KWJQMO6G.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 +96 -44
  46. package/dist/bin/pushary-doctor.js +124 -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 +140 -87
  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-4KDRT3OA.js → chunk-2EETRVCZ.js} +1 -1
  75. package/dist/{chunk-LJRPWUST.js → chunk-2G54YLN3.js} +3 -3
  76. package/dist/{chunk-R34RWVN2.js → chunk-2I6A34GJ.js} +14 -5
  77. package/dist/{chunk-WPBWJMBZ.js → chunk-2QY2BD4T.js} +5 -5
  78. package/dist/{chunk-RO6EVL5C.js → chunk-2RAIG6NF.js} +2 -2
  79. package/dist/{chunk-LD4R2P6N.js → chunk-2YNAQ5TX.js} +1 -1
  80. package/dist/{chunk-TRV3ETGY.js → chunk-37ZBJB2Q.js} +5 -5
  81. package/dist/{chunk-BWREST4F.js → chunk-3NMX4725.js} +1 -1
  82. package/dist/{chunk-YRJZF5RG.js → chunk-3TTXOU6G.js} +3 -3
  83. package/dist/{chunk-FCSPMSDC.js → chunk-4P3ML7HP.js} +200 -59
  84. package/dist/{chunk-IRPIMQ7U.js → chunk-526XSNMS.js} +3 -3
  85. package/dist/{chunk-4L5WPDTB.js → chunk-57GVGSOQ.js} +1 -1
  86. package/dist/{chunk-ZORBUQFG.js → chunk-5II3USXS.js} +2 -2
  87. package/dist/{chunk-USFZJAB4.js → chunk-5K65H6OO.js} +1 -1
  88. package/dist/{chunk-5TWW7ZUL.js → chunk-6C5QRJIH.js} +5 -5
  89. package/dist/{chunk-KFALRZIN.js → chunk-6EPTMB7L.js} +4 -4
  90. package/dist/{chunk-LQXUWXQP.js → chunk-6JBX55K4.js} +31 -8
  91. package/dist/{chunk-B4JQIH5M.js → chunk-6YVGY2ZX.js} +7 -7
  92. package/dist/{chunk-7LTP2GHO.js → chunk-72S6PF2I.js} +2 -2
  93. package/dist/{chunk-WMBWKPKJ.js → chunk-7P32YU2M.js} +10 -74
  94. package/dist/{chunk-TJXJGMSP.js → chunk-7TVSWGAV.js} +8 -6
  95. package/dist/{chunk-L4OGTRVW.js → chunk-7WDEJTNX.js} +4 -4
  96. package/dist/{chunk-KGFB2LEB.js → chunk-7XIJD7NL.js} +3 -3
  97. package/dist/{chunk-S3A4PCRR.js → chunk-A5MSVNFS.js} +10 -10
  98. package/dist/{chunk-OONMKLUF.js → chunk-ANLR5G2W.js} +4 -4
  99. package/dist/{chunk-HOQH5CLZ.js → chunk-BEDAQAEN.js} +1 -1
  100. package/dist/{chunk-JKWUF776.js → chunk-BHGSNYG5.js} +3 -3
  101. package/dist/{chunk-VTJ4WZOC.js → chunk-BU2J4P7P.js} +3 -3
  102. package/dist/{chunk-6UK4K5RS.js → chunk-BYVLAPCF.js} +1 -1
  103. package/dist/{chunk-KS3PNTRT.js → chunk-CSNG5NQR.js} +1 -1
  104. package/dist/{chunk-JZT2LPRM.js → chunk-D7ZWJYXB.js} +1 -1
  105. package/dist/{chunk-Y7INHH5G.js → chunk-ELRZO6A7.js} +3 -3
  106. package/dist/{chunk-6IWOMXUF.js → chunk-EV54ZQ5J.js} +4 -4
  107. package/dist/{chunk-33BYPZ52.js → chunk-FHBJJOMF.js} +1 -1
  108. package/dist/{chunk-YU5XE6VC.js → chunk-FKGWP4MF.js} +8 -7
  109. package/dist/{chunk-2ELNRGNX.js → chunk-FMAIUTVU.js} +3 -3
  110. package/dist/{chunk-EPWOARGR.js → chunk-FWCECQTY.js} +2 -2
  111. package/dist/{chunk-BYKRAYGD.js → chunk-GGCUXNZN.js} +1 -1
  112. package/dist/{chunk-WH4ODOCE.js → chunk-GIWI5IHB.js} +6 -6
  113. package/dist/{chunk-72LP4RPC.js → chunk-GJV5RVUU.js} +98 -47
  114. package/dist/chunk-GPAMD5JG.js +157 -0
  115. package/dist/{chunk-FNAH3YJC.js → chunk-I72UU75H.js} +16 -16
  116. package/dist/{chunk-ZSOCJHL7.js → chunk-ISM6XF3V.js} +309 -5
  117. package/dist/{chunk-Q6P7G4NY.js → chunk-ISOP4ENY.js} +17 -5
  118. package/dist/{chunk-6LZ7MXHD.js → chunk-JDIKCM2N.js} +5 -5
  119. package/dist/{chunk-52UXNCZG.js → chunk-KDJIDRJS.js} +3 -3
  120. package/dist/{chunk-LMU6NG2G.js → chunk-KFL7OWLI.js} +1 -1
  121. package/dist/{chunk-PXZTCR4M.js → chunk-KH27X5CW.js} +2 -2
  122. package/dist/{chunk-MOC2DN42.js → chunk-KXMIDDUN.js} +2 -2
  123. package/dist/{chunk-QKTF7WS6.js → chunk-L2M6D2N4.js} +4 -4
  124. package/dist/{chunk-CUR2DCZN.js → chunk-L6BTSIKF.js} +4 -4
  125. package/dist/{chunk-YZA3YBHX.js → chunk-LO52V6WG.js} +2 -2
  126. package/dist/{chunk-GK5X2ZTN.js → chunk-MI7GHNTO.js} +5 -5
  127. package/dist/{chunk-MKHVLDMN.js → chunk-MYJJNLT2.js} +2 -2
  128. package/dist/{chunk-WUT3PO33.js → chunk-NAGF5ZJ2.js} +8 -8
  129. package/dist/{chunk-ZBMVOMFG.js → chunk-NMUEUDTT.js} +1 -1
  130. package/dist/{chunk-MNU5N3CQ.js → chunk-OSYULPJO.js} +23 -12
  131. package/dist/{chunk-SQL5YXUH.js → chunk-OXDKZYBO.js} +1 -1
  132. package/dist/chunk-OYIN77HO.js +72 -0
  133. package/dist/{chunk-KKPT7ROP.js → chunk-P6W2V2AP.js} +2 -2
  134. package/dist/{chunk-G3VSMI7K.js → chunk-Q3JW44JV.js} +2 -2
  135. package/dist/{chunk-K2SKUBYY.js → chunk-Q6POCQOV.js} +12 -12
  136. package/dist/{chunk-IIN26HL7.js → chunk-Q767Y4LY.js} +1 -1
  137. package/dist/{chunk-GURIOZE7.js → chunk-QGKFDSEO.js} +8 -8
  138. package/dist/{chunk-YNCVSKUW.js → chunk-RZGR4G5G.js} +5 -5
  139. package/dist/{chunk-2LGDEPVL.js → chunk-RZJHCHEA.js} +6 -6
  140. package/dist/{chunk-ZJZNT2G5.js → chunk-T274HRSR.js} +4 -4
  141. package/dist/chunk-T2CR5REM.js +176 -0
  142. package/dist/{chunk-A2H256WR.js → chunk-T3TVMMXJ.js} +1 -1
  143. package/dist/{chunk-NTMKJRQ3.js → chunk-TZ7CBPCD.js} +2 -2
  144. package/dist/{chunk-S7HGPKCL.js → chunk-UGPNLU4O.js} +1 -1
  145. package/dist/{chunk-DZIZ3XFL.js → chunk-UR55VBLY.js} +2 -2
  146. package/dist/{chunk-PY6CM4NK.js → chunk-WLKW2TF7.js} +19 -12
  147. package/dist/{chunk-63WX5KZN.js → chunk-WNV3X2VU.js} +3 -3
  148. package/dist/{chunk-WOSO4YFQ.js → chunk-XQOBM3E6.js} +3 -3
  149. package/dist/{chunk-RWLNTZK5.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-IDLOJIIS.js → chunk-ZKAQWXGO.js} +1 -1
  153. package/dist/{codex-app-cards-switch-F7WQ7Y3I.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
  154. package/dist/{codex-card-routing-EVL5L36G.js → codex-card-routing-JTS75442.js} +2 -2
  155. package/dist/{codex-desktop-launch-PL6Z2ELZ.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
  156. package/dist/{codex-session-launch-7NQEAUDU.js → codex-session-launch-QYZZGVSQ.js} +20 -20
  157. package/dist/{config-KFFD4VWH.js → config-5ATI6KPI.js} +3 -3
  158. package/dist/{global-upgrade-L3CY6EFF.js → global-upgrade-K4HWVUMI.js} +9 -9
  159. package/dist/{identity-DPYYIMHL.js → identity-V2GZCPJV.js} +4 -4
  160. package/dist/{live-capabilities-QJEXK6GH.js → live-capabilities-PD62FO4K.js} +4 -4
  161. package/dist/{paths-PEF6C64P.js → paths-WPJEIHUE.js} +7 -3
  162. package/dist/{reapply-7APCQRRK.js → reapply-ZEWMGDXT.js} +30 -29
  163. package/dist/src/index.js +34 -34
  164. package/dist/{upgrade-lock-A7OKXMRW.js → upgrade-lock-7OR6V323.js} +4 -4
  165. package/dist/{usage-HSS33762.js → usage-GWZ3UGZG.js} +3 -3
  166. package/package.json +1 -1
  167. package/dist/chunk-D3UFDCTQ.js +0 -87
@@ -22,7 +22,7 @@ import {
22
22
  runBrowserLogin,
23
23
  switchBackToTheShellKeyLine,
24
24
  wrongAccountHintPlacement
25
- } from "../chunk-ZJZNT2G5.js";
25
+ } from "../chunk-T274HRSR.js";
26
26
  import {
27
27
  INSTALL_NODE_STEP,
28
28
  NPM_FILE_IN_USE_STEP,
@@ -36,25 +36,33 @@ import {
36
36
  renderCommandSurface,
37
37
  teamOfferLines,
38
38
  unverifiedKeyClosingReason
39
- } from "../chunk-TJXJGMSP.js";
39
+ } from "../chunk-7TVSWGAV.js";
40
+ import {
41
+ instructionsChannelFor,
42
+ pairingComputerOf,
43
+ planPhoneCheck
44
+ } from "../chunk-YOVJOHM5.js";
40
45
  import {
41
46
  coworkOutput,
42
47
  coworkSelection
43
- } from "../chunk-JKWUF776.js";
48
+ } from "../chunk-BHGSNYG5.js";
44
49
  import "../chunk-PUZZELE6.js";
45
50
  import {
46
51
  readCodexHooksOnDisk
47
- } from "../chunk-GURIOZE7.js";
48
- import "../chunk-NTMKJRQ3.js";
52
+ } from "../chunk-QGKFDSEO.js";
53
+ import "../chunk-TZ7CBPCD.js";
49
54
  import {
50
55
  clearDeclinedAgent,
51
56
  declinedAgentForSetupChoice
52
- } from "../chunk-KKPT7ROP.js";
57
+ } from "../chunk-P6W2V2AP.js";
53
58
  import {
59
+ OPENCLAW_RESTART_NOTE,
60
+ describeOpenClawInstallFailure,
61
+ describeOpenClawState,
54
62
  gateHermesShell,
55
63
  readHermesShellGate,
56
64
  saveSetupFailure
57
- } from "../chunk-D3UFDCTQ.js";
65
+ } from "../chunk-GPAMD5JG.js";
58
66
  import {
59
67
  CODEX_NEEDS_A_NEWER_VERSION,
60
68
  CODEX_SETTINGS_STOP_A_HOOK,
@@ -68,23 +76,26 @@ import {
68
76
  describeHermesState,
69
77
  hermesGateShellCommand,
70
78
  needsCodexTrustStep
71
- } from "../chunk-QKTF7WS6.js";
79
+ } from "../chunk-L2M6D2N4.js";
72
80
  import {
73
81
  describeWaitLadder
74
82
  } from "../chunk-CVWG2N3Y.js";
75
83
  import {
76
84
  writeJsonError,
77
85
  writeStdoutFully
78
- } from "../chunk-LD4R2P6N.js";
86
+ } from "../chunk-2YNAQ5TX.js";
79
87
  import {
88
+ canShowPairingQr,
80
89
  confirmAppConnection,
81
90
  connectDevice,
82
91
  connectViaAppPairing,
92
+ describeCancelledPairing,
83
93
  describePairingEscape,
84
94
  pairingEscapeApplies,
95
+ phoneAwaitsNotificationPermission,
85
96
  printConnectInstructions,
86
97
  waitForYourPhone
87
- } from "../chunk-FCSPMSDC.js";
98
+ } from "../chunk-4P3ML7HP.js";
88
99
  import "../chunk-3EGEA4KH.js";
89
100
  import {
90
101
  SETUP_AGENT_NAME,
@@ -93,7 +104,7 @@ import {
93
104
  roundTripEvidence,
94
105
  roundTripWasAnswered,
95
106
  verifyRoundTrip
96
- } from "../chunk-PY6CM4NK.js";
107
+ } from "../chunk-WLKW2TF7.js";
97
108
  import {
98
109
  keepLinuxDaemonAfterLogout,
99
110
  lingerReportOf
@@ -101,10 +112,10 @@ import {
101
112
  import {
102
113
  readManagedControlEvidence,
103
114
  waitForMachineReadiness
104
- } from "../chunk-RWLNTZK5.js";
115
+ } from "../chunk-YICO6HEW.js";
105
116
  import {
106
117
  ensureCodexTrustsPusharyHooks
107
- } from "../chunk-ZORBUQFG.js";
118
+ } from "../chunk-5II3USXS.js";
108
119
  import {
109
120
  describeSetupSideEffects,
110
121
  installAgentSkill,
@@ -112,7 +123,7 @@ import {
112
123
  } from "../chunk-XR27HPYC.js";
113
124
  import {
114
125
  codexEngineBehindLauncher
115
- } from "../chunk-KGFB2LEB.js";
126
+ } from "../chunk-7XIJD7NL.js";
116
127
  import "../chunk-XCEN33UP.js";
117
128
  import {
118
129
  CURSOR_PLUGIN_BACKUP_INFIX,
@@ -122,23 +133,25 @@ import {
122
133
  soleGateFile,
123
134
  soleGateReceipt,
124
135
  soleGateReceiptFile
125
- } from "../chunk-6IWOMXUF.js";
136
+ } from "../chunk-EV54ZQ5J.js";
126
137
  import {
127
138
  describeDetection,
128
139
  detectAllAgents,
140
+ detectedAgentChoices,
129
141
  isDetected,
130
142
  pluginLocationSnippet,
131
143
  registerPluginLocation,
132
144
  shortenHome,
133
145
  vscodeSettingsTargets
134
- } from "../chunk-Q6P7G4NY.js";
146
+ } from "../chunk-ISOP4ENY.js";
147
+ import "../chunk-OYIN77HO.js";
135
148
  import {
136
149
  mcpServerBearer,
137
150
  readMacAppAgentKey
138
- } from "../chunk-KFALRZIN.js";
151
+ } from "../chunk-6EPTMB7L.js";
139
152
  import {
140
153
  keyScopeOf
141
- } from "../chunk-YZA3YBHX.js";
154
+ } from "../chunk-LO52V6WG.js";
142
155
  import {
143
156
  HERMES_CONFIG_FILE,
144
157
  HERMES_GATE_TOOLS_KEY,
@@ -149,15 +162,23 @@ import {
149
162
  hermesReceiptPaths,
150
163
  hermesShellGateChoice,
151
164
  inspectHermesWiring,
165
+ inspectOpenClawWiring,
152
166
  installHermesPlugin,
167
+ installOpenClawPlugin,
153
168
  isHermesWired,
169
+ openClawFilesNow,
154
170
  routesHermesQuestions,
155
171
  runsAnOlderPlugin,
156
172
  shippedHermesPlugin
157
- } from "../chunk-ZSOCJHL7.js";
173
+ } from "../chunk-ISM6XF3V.js";
158
174
  import {
159
175
  setHumanStream
160
176
  } from "../chunk-QCGNGEGE.js";
177
+ import {
178
+ findOpenClawLauncher,
179
+ isOpenClawWired,
180
+ openClawPathsNow
181
+ } from "../chunk-T2CR5REM.js";
161
182
  import {
162
183
  FX_PICKS_UP_CONFIGURATION,
163
184
  FX_PUSHARY_TOOLS_RULE,
@@ -174,7 +195,7 @@ import {
174
195
  readFxProfileForSetup,
175
196
  withFxPusharyServer,
176
197
  writeFxProfile
177
- } from "../chunk-YNCVSKUW.js";
198
+ } from "../chunk-RZGR4G5G.js";
178
199
  import {
179
200
  AgentConfigError,
180
201
  afterAgentFailureNote,
@@ -187,10 +208,10 @@ import {
187
208
  retryAgentCommand,
188
209
  writeSetupConfigFile,
189
210
  writeSetupConfigJson
190
- } from "../chunk-2ELNRGNX.js";
211
+ } from "../chunk-FMAIUTVU.js";
191
212
  import {
192
213
  MCP_BRIDGE_BINARY
193
- } from "../chunk-52UXNCZG.js";
214
+ } from "../chunk-KDJIDRJS.js";
194
215
  import {
195
216
  OPENCODE_HOOK_BINARY,
196
217
  addOpenCodeMcpServer,
@@ -208,12 +229,15 @@ import {
208
229
  openCodePluginFile,
209
230
  openCodeWired,
210
231
  withOpenCodeAskRules
211
- } from "../chunk-GK5X2ZTN.js";
232
+ } from "../chunk-MI7GHNTO.js";
212
233
  import {
213
234
  ansiPainter,
235
+ ciMarker,
214
236
  createIo,
237
+ describeCiReason,
238
+ isCI,
215
239
  useColor
216
- } from "../chunk-FO3MDD26.js";
240
+ } from "../chunk-YM2T76UM.js";
217
241
  import {
218
242
  checkCodexInstall,
219
243
  describeMissingControlPrerequisite,
@@ -224,16 +248,16 @@ import {
224
248
  nodeCodexInstallProbe,
225
249
  phoneStartIsRequired,
226
250
  resolveControlPolicy
227
- } from "../chunk-Y7INHH5G.js";
251
+ } from "../chunk-ELRZO6A7.js";
228
252
  import {
229
253
  detectClaudeVersion
230
- } from "../chunk-DZIZ3XFL.js";
254
+ } from "../chunk-UR55VBLY.js";
231
255
  import "../chunk-CYTPQDQY.js";
232
256
  import {
233
257
  describeAutoUpdateAnnouncement,
234
258
  takeAutoUpdateAnnouncement
235
- } from "../chunk-MKHVLDMN.js";
236
- import "../chunk-L4OGTRVW.js";
259
+ } from "../chunk-MYJJNLT2.js";
260
+ import "../chunk-7WDEJTNX.js";
237
261
  import "../chunk-VAE5JBR5.js";
238
262
  import "../chunk-G66WIAST.js";
239
263
  import {
@@ -249,7 +273,7 @@ import {
249
273
  compatibleRecord,
250
274
  compatibleTargetPaths,
251
275
  hasCompatibleHooks
252
- } from "../chunk-R34RWVN2.js";
276
+ } from "../chunk-2I6A34GJ.js";
253
277
  import {
254
278
  DAEMON_COLD_START_TIMEOUT_MS,
255
279
  clearDaemonNeedsLogin,
@@ -268,7 +292,7 @@ import {
268
292
  stopDaemonService,
269
293
  versionManagerOf,
270
294
  waitForDaemonRemoteProof
271
- } from "../chunk-WH4ODOCE.js";
295
+ } from "../chunk-GIWI5IHB.js";
272
296
  import {
273
297
  GEMINI_HOOK_BINARY,
274
298
  GEMINI_HOOK_EVENTS,
@@ -284,38 +308,38 @@ import {
284
308
  geminiWired,
285
309
  planHooks,
286
310
  pusharyHookExecutable
287
- } from "../chunk-CUR2DCZN.js";
311
+ } from "../chunk-L6BTSIKF.js";
288
312
  import {
289
313
  reportEvent
290
- } from "../chunk-K2SKUBYY.js";
291
- import "../chunk-JZT2LPRM.js";
314
+ } from "../chunk-Q6POCQOV.js";
315
+ import "../chunk-D7ZWJYXB.js";
292
316
  import {
293
317
  AGENT_CHOICES,
294
318
  effectiveAgentSelection,
295
319
  effectiveControlMode,
296
320
  effectiveVerify,
297
321
  parseSetupOptions
298
- } from "../chunk-ZBMVOMFG.js";
299
- import "../chunk-SQL5YXUH.js";
322
+ } from "../chunk-NMUEUDTT.js";
323
+ import "../chunk-OXDKZYBO.js";
300
324
  import "../chunk-YPY4YCIZ.js";
301
325
  import "../chunk-XMSDA5WA.js";
302
326
  import {
303
327
  transcriptPreferenceForSetup
304
- } from "../chunk-HOQH5CLZ.js";
305
- import "../chunk-6UK4K5RS.js";
306
- import "../chunk-YU5XE6VC.js";
328
+ } from "../chunk-BEDAQAEN.js";
329
+ import "../chunk-BYVLAPCF.js";
330
+ import "../chunk-FKGWP4MF.js";
307
331
  import "../chunk-POFBE6ZY.js";
308
- import "../chunk-WPBWJMBZ.js";
332
+ import "../chunk-2QY2BD4T.js";
309
333
  import {
310
334
  checkApiKey,
311
335
  describeKeyCheck,
312
336
  samePusharyAccount
313
- } from "../chunk-YRJZF5RG.js";
314
- import "../chunk-LJRPWUST.js";
337
+ } from "../chunk-3TTXOU6G.js";
338
+ import "../chunk-2G54YLN3.js";
315
339
  import "../chunk-H6CL3T2S.js";
316
- import "../chunk-BYKRAYGD.js";
317
- import "../chunk-S7HGPKCL.js";
318
- import "../chunk-KS3PNTRT.js";
340
+ import "../chunk-GGCUXNZN.js";
341
+ import "../chunk-UGPNLU4O.js";
342
+ import "../chunk-CSNG5NQR.js";
319
343
  import {
320
344
  UsageError
321
345
  } from "../chunk-YU2EUD7O.js";
@@ -335,8 +359,8 @@ import {
335
359
  resolveShellRc,
336
360
  shellKeyWasReplaced,
337
361
  writeKey
338
- } from "../chunk-WOSO4YFQ.js";
339
- import "../chunk-MOC2DN42.js";
362
+ } from "../chunk-XQOBM3E6.js";
363
+ import "../chunk-KXMIDDUN.js";
340
364
  import {
341
365
  CLINE_AUTO_APPROVE_STEP,
342
366
  CLINE_RELOAD_STEP,
@@ -387,6 +411,7 @@ import {
387
411
  guardNodeScript,
388
412
  hookTakeoverReceipt,
389
413
  isClaudeMcpSnapshot,
414
+ openClawPluginFolder,
390
415
  pusharyConfigFile,
391
416
  readCodexMcpAuth,
392
417
  renderAgentInstructions,
@@ -395,7 +420,7 @@ import {
395
420
  vscodePluginDir,
396
421
  vscodePluginMcp,
397
422
  writeInstructionBlock
398
- } from "../chunk-72LP4RPC.js";
423
+ } from "../chunk-GJV5RVUU.js";
399
424
  import {
400
425
  NpmMissingError,
401
426
  compareVersion,
@@ -406,10 +431,10 @@ import {
406
431
  plannedGlobalPackage,
407
432
  resolveGlobalBinDir,
408
433
  resolveGlobalBinary
409
- } from "../chunk-VTJ4WZOC.js";
434
+ } from "../chunk-BU2J4P7P.js";
410
435
  import {
411
436
  getBaseUrl
412
- } from "../chunk-BWREST4F.js";
437
+ } from "../chunk-3NMX4725.js";
413
438
  import {
414
439
  EXIT
415
440
  } from "../chunk-BG4HHB7E.js";
@@ -420,7 +445,7 @@ import {
420
445
  import {
421
446
  NPX_LATEST_COMMAND,
422
447
  renderCommandHelp
423
- } from "../chunk-6LZ7MXHD.js";
448
+ } from "../chunk-JDIKCM2N.js";
424
449
  import {
425
450
  getPackageVersion,
426
451
  isNewerVersion,
@@ -435,11 +460,10 @@ import {
435
460
  computerOsOfPlatform,
436
461
  hookCompatibleProfile,
437
462
  isApprovalMode,
438
- isComputerAgent,
439
463
  isRecord,
440
464
  isTimeoutAction,
441
465
  isValidApiKey
442
- } from "../chunk-LQXUWXQP.js";
466
+ } from "../chunk-6JBX55K4.js";
443
467
  import {
444
468
  CODEX_ENGINE_DIRECTORY,
445
469
  CODEX_ENGINE_ENTRYPOINT,
@@ -467,6 +491,7 @@ var agentSetupTargets = (exists) => ({
467
491
  codex: [join(codexHome(), "config.toml"), codexHooksJson(), join(codexSkillDir(), "SKILL.md"), codexAgentsMd()],
468
492
  gemini_cli: [geminiSettings(), geminiMd()],
469
493
  hermes: [hermesPluginDirectory(defaultHermesHome()), join(defaultHermesHome(), HERMES_CONFIG_FILE)],
494
+ openclaw: [openClawPluginFolder(), openClawPathsNow().configFile],
470
495
  cursor: [join(cursorPluginDir(), "mcp.json"), cursorUserHooks()],
471
496
  vscode: [vscodePluginMcp(), ...vscodeSettingsTargets(exists)],
472
497
  opencode: [
@@ -499,17 +524,6 @@ var enterKeyListener = (input2 = process.stdin) => {
499
524
  var PHONE_START_OPT_OUT = "Turn it off with --control off.";
500
525
  var describeServiceInstall = (servicePresent) => servicePresent ? `Updating the background service that lets your phone start agents. ${PHONE_START_OPT_OUT}` : `Installing a background service so your phone can start agents. ${PHONE_START_OPT_OUT}`;
501
526
 
502
- // src/setup/phone-check.ts
503
- var planPhoneCheck = (context) => {
504
- if (context.locked) return "locked";
505
- if (context.skipPhone) return "skip-phone";
506
- if (context.verify === "none") return "verify-none";
507
- if (!context.stdoutIsTty) return "instructions";
508
- if (context.paired) return "confirm-pairing";
509
- if (context.connectMode === "app") return context.interactive && !context.macAppInstalled ? "wait-for-app" : "reuse-app";
510
- return "connect";
511
- };
512
-
513
527
  // src/setup/wait-guidance.ts
514
528
  var UNAVAILABLE = "Approval settings unavailable. Run pushary wait before stepping away.";
515
529
  var isPolicyRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
@@ -756,15 +770,6 @@ var guardVsCodeGateHooks = (document, gateScript) => {
756
770
  return { kind: "guarded", document: { ...document, hooks: guarded } };
757
771
  };
758
772
 
759
- // src/setup/pairing-computer.ts
760
- var LOCAL_NETWORK_SUFFIX = /\.local$/i;
761
- var computerNameOfHost = (host) => host.replace(LOCAL_NETWORK_SUFFIX, "").trim() || null;
762
- var pairingComputerOf = (host, platform, detectedAgents) => ({
763
- computerName: computerNameOfHost(host),
764
- os: computerOsOfPlatform(platform),
765
- agents: detectedAgents.filter(isComputerAgent)
766
- });
767
-
768
773
  // bin/pushary-setup.ts
769
774
  var CLAUDE_SETTINGS = claudeSettings();
770
775
  var CLAUDE_JSON = claudeJson();
@@ -1107,6 +1112,47 @@ var setupHermes = async (_apiKey, context) => {
1107
1112
  await offerHermesShellGate(context.hermesShellGate, receipts);
1108
1113
  return hermesInspectionIsWired(outcome.inspection) ? "verified" : "configured";
1109
1114
  };
1115
+ var openClawInspectionIsWired = (inspection) => inspection.kind === "inspected" && isOpenClawWired(inspection.state);
1116
+ var reportOpenClawInstall = (outcome) => {
1117
+ const { state } = outcome.inspection;
1118
+ console.log(` ${isOpenClawWired(state) ? check : yellow("!")} ${describeOpenClawState(state)}`);
1119
+ console.log();
1120
+ console.log(` ${dim("What this configured:")}`);
1121
+ console.log(` ${dim("\u2022")} Plugin ${outcome.version} from this CLI, installed from ${shortenHome(openClawPluginFolder())}`);
1122
+ console.log(` ${dim("\u2022")} Approvals: every exec call, and process input to a running session, waits for your yes in Pushary for up to about five minutes`);
1123
+ console.log(` ${dim("\u2022")} A no, no answer, a cancelled call or an unreachable server blocks the call`);
1124
+ console.log(` ${dim("\u2022")} More tools: add them to plugins.entries.pushary.config.gatedTools`);
1125
+ console.log(` ${dim(OPENCLAW_RESTART_NOTE)}`);
1126
+ if (!isOpenClawWired(state)) noteManual(`OpenClaw: ${describeOpenClawState(state)}`);
1127
+ };
1128
+ var setupOpenClaw = async (_apiKey) => {
1129
+ console.log(`
1130
+ ${bold("Setting up OpenClaw")}
1131
+ `);
1132
+ if (!findOpenClawLauncher()) {
1133
+ console.log(` ${yellow("!")} OpenClaw CLI not found. Skipping.`);
1134
+ console.log(` ${dim("Install OpenClaw and re-run setup to configure.")}`);
1135
+ return "skipped";
1136
+ }
1137
+ const outcomes = [];
1138
+ await spinner("Installing the Pushary plugin into OpenClaw", async () => {
1139
+ outcomes.push(await installOpenClawPlugin({ files: openClawFilesNow() }));
1140
+ });
1141
+ const outcome = outcomes[0] ?? { kind: "no_launcher" };
1142
+ if (outcome.kind === "no_launcher") {
1143
+ console.log(` ${yellow("!")} OpenClaw CLI not found. Skipping.`);
1144
+ return "skipped";
1145
+ }
1146
+ if (outcome.kind === "failed") {
1147
+ const message = describeOpenClawInstallFailure(outcome.reason, outcome.detail);
1148
+ console.log(` ${yellow("!")} ${message}`);
1149
+ noteManual(message);
1150
+ return "skipped";
1151
+ }
1152
+ reportOpenClawInstall(outcome);
1153
+ const { state } = outcome.inspection;
1154
+ return state.kind === "wired" && state.gateVerified ? "verified" : "configured";
1155
+ };
1110
1156
  var CODEX_HOOKS_JSON = join4(CODEX_HOME, "hooks.json");
1111
1157
  var CODEX_HOOKS_MIN_VERSION = [0, 122, 0];
1112
1158
  var codexOnPath = () => {
@@ -1969,6 +2015,8 @@ var agentIsWired = async (agent) => {
1969
2015
  return clineWired();
1970
2016
  case "hermes":
1971
2017
  return hermesInspectionIsWired(await inspectHermesWiring());
2018
+ case "openclaw":
2019
+ return openClawInspectionIsWired(await inspectOpenClawWiring(openClawFilesNow()));
1972
2020
  default: {
1973
2021
  const profile = hookCompatibleProfile(agent);
1974
2022
  if (!profile) return true;
@@ -2095,6 +2143,7 @@ var AGENT_SETUP = {
2095
2143
  codex: setupCodex,
2096
2144
  gemini_cli: setupGemini,
2097
2145
  hermes: setupHermes,
2146
+ openclaw: setupOpenClaw,
2098
2147
  cursor: setupCursor,
2099
2148
  vscode: setupVsCode,
2100
2149
  opencode: setupOpenCode,
@@ -2173,9 +2222,9 @@ var verifyKeyOrExit = async (apiKey, options, precomputed) => {
2173
2222
  }
2174
2223
  return result;
2175
2224
  };
2176
- var printPairingEscape = () => {
2225
+ var printPairingEscape = (lines) => {
2177
2226
  console.log();
2178
- for (const line of describePairingEscape()) console.log(line === "" ? "" : ` ${line}`);
2227
+ for (const line of lines) console.log(line === "" ? "" : ` ${line}`);
2179
2228
  console.log();
2180
2229
  };
2181
2230
  var usableStoredKey = async (apiKey) => {
@@ -2201,6 +2250,7 @@ var AGENT_NAMES = {
2201
2250
  codex: "Codex",
2202
2251
  gemini_cli: "Gemini CLI",
2203
2252
  hermes: "Hermes",
2253
+ openclaw: "OpenClaw",
2204
2254
  cursor: "Cursor",
2205
2255
  vscode: "VS Code",
2206
2256
  opencode: "OpenCode",
@@ -2214,6 +2264,7 @@ var AGENT_CAPABILITIES = {
2214
2264
  codex: "MCP + native hooks + auto-allowed tools",
2215
2265
  gemini_cli: "MCP + native hooks + auto-allowed tools",
2216
2266
  hermes: "native plugin + auto-error notifications",
2267
+ openclaw: "native plugin + exec approval gate",
2217
2268
  cursor: "plugin + permission gate",
2218
2269
  vscode: "agent plugin + permission gate",
2219
2270
  opencode: "generated plugin + permission gate",
@@ -2264,9 +2315,7 @@ var detectAgents = () => {
2264
2315
  }
2265
2316
  return map;
2266
2317
  };
2267
- var detectedAgentChoices = () => detectAllAgents().filter((entry) => isDetected(entry.result)).map((entry) => entry.agent);
2268
- var canRunBrowserLogin = () => process.stdout.isTTY === true && !process.env.CI;
2269
- var canShowPairingQr = () => !process.env.CI;
2318
+ var canRunBrowserLogin = () => process.stdout.isTTY === true && !isCI();
2270
2319
  var resolveAgents = async (options, context = { paired: false }) => {
2271
2320
  if (options.agents.kind === "none") return [];
2272
2321
  if (options.agents.kind === "explicit") {
@@ -2464,14 +2513,15 @@ var main = async () => {
2464
2513
  const computer = pairingComputerOf(hostname(), process.platform, detectedAgentChoices());
2465
2514
  const paired = await connectViaAppPairing({
2466
2515
  computer,
2516
+ command: "setup",
2467
2517
  onCancelled: async (exitCode2) => {
2468
- printPairingEscape();
2518
+ printPairingEscape(describeCancelledPairing(exitCode2, describePairingEscape()));
2469
2519
  await reportSetupAbort("pairing-cancelled", exitCode2);
2470
2520
  }
2471
2521
  });
2472
2522
  if (paired.kind === "failed") {
2473
- if (pairingEscapeApplies(paired)) printPairingEscape();
2474
- process.exit(await abortWith(paired.reason === "cancelled" ? "pairing-cancelled" : "pairing-failed", EXIT.NOT_CONFIGURED));
2523
+ if (pairingEscapeApplies(paired)) printPairingEscape(describePairingEscape());
2524
+ process.exit(await abortWith("pairing-failed", EXIT.NOT_CONFIGURED));
2475
2525
  }
2476
2526
  trimmedKey = paired.apiKey;
2477
2527
  keyOrigin = "created_by_this_cli";
@@ -2486,11 +2536,12 @@ var main = async () => {
2486
2536
  }
2487
2537
  console.log();
2488
2538
  } else if (!canRunBrowserLogin()) {
2539
+ const ciCause = ciMarker();
2489
2540
  if (pairingRequested) {
2490
- console.log(` ${yellow("!")} ${cyan("--connect app")} will not draw a pairing QR in CI.`);
2541
+ console.log(` ${yellow("!")} ${cyan("--connect app")} will not draw a pairing QR in CI${describeCiReason(ciCause)}.`);
2491
2542
  console.log(` ${dim("Pass --key <pk_xxx.xxx> or --key-stdin here. Outside CI, setup pairs with no terminal needed.")}`);
2492
- } else if (process.env.CI) {
2493
- console.log(` ${yellow("!")} No API key, and setup does not pair in CI.`);
2543
+ } else if (ciCause !== null) {
2544
+ console.log(` ${yellow("!")} No API key, and setup does not pair in CI${describeCiReason(ciCause)}.`);
2494
2545
  console.log(` ${dim("Pass --key <pk_xxx.xxx>, or --key-stdin, or export PUSHARY_API_KEY.")}`);
2495
2546
  } else {
2496
2547
  console.log(` ${yellow("!")} No API key, and nothing here can acquire one.`);
@@ -2709,6 +2760,7 @@ var main = async () => {
2709
2760
  interactive: !options.nonInteractive,
2710
2761
  macAppInstalled: appBridgeAvailable
2711
2762
  });
2763
+ const connectInstructions = { showQr: canShowPairingQr(), channel: instructionsChannelFor(connectMode) };
2712
2764
  switch (phoneCheck) {
2713
2765
  case "unverified":
2714
2766
  console.log();
@@ -2727,17 +2779,17 @@ var main = async () => {
2727
2779
  console.log(` ${dim("Skipping the delivery check (--verify none). Nothing here proves an approval reaches you.")}`);
2728
2780
  break;
2729
2781
  case "instructions":
2730
- phone = await printConnectInstructions(trimmedKey);
2782
+ phone = await printConnectInstructions(trimmedKey, connectInstructions);
2731
2783
  break;
2732
2784
  case "confirm-pairing":
2733
2785
  phone = await confirmAppConnection(trimmedKey);
2734
2786
  break;
2735
2787
  case "reuse-app":
2736
- phone = await printConnectInstructions(trimmedKey);
2788
+ phone = await printConnectInstructions(trimmedKey, connectInstructions);
2737
2789
  break;
2738
2790
  case "wait-for-app": {
2739
2791
  const skip = enterKeyListener();
2740
- phone = skip === null ? await printConnectInstructions(trimmedKey) : await waitForYourPhone(trimmedKey, { skip });
2792
+ phone = skip === null ? await printConnectInstructions(trimmedKey, connectInstructions) : await waitForYourPhone(trimmedKey, { skip });
2741
2793
  break;
2742
2794
  }
2743
2795
  case "connect":
@@ -2953,7 +3005,8 @@ var main = async () => {
2953
3005
  roundTripAnswered: roundTripWasAnswered(roundTrip),
2954
3006
  roundTripAnswer: roundTripAnswerOf(roundTrip),
2955
3007
  appPlatforms: phone?.appPlatforms,
2956
- codexApprovals
3008
+ codexApprovals,
3009
+ phoneAwaitsNotifications: phone !== null && phoneAwaitsNotificationPermission(phone)
2957
3010
  });
2958
3011
  console.log(` ${closing.ok ? green(bold(closing.headline)) : yellow(bold(closing.headline))}`);
2959
3012
  if (failures.length > 0) {
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exitOnHelpFlag
4
- } from "../chunk-A2H256WR.js";
4
+ } from "../chunk-T3TVMMXJ.js";
5
5
  import {
6
6
  readLedgerSummary
7
- } from "../chunk-33BYPZ52.js";
7
+ } from "../chunk-FHBJJOMF.js";
8
8
  import {
9
9
  getApiKey
10
- } from "../chunk-BWREST4F.js";
10
+ } from "../chunk-3NMX4725.js";
11
11
  import "../chunk-BG4HHB7E.js";
12
- import "../chunk-6LZ7MXHD.js";
12
+ import "../chunk-JDIKCM2N.js";
13
13
  import "../chunk-WIIMW5YO.js";
14
- import "../chunk-LQXUWXQP.js";
14
+ import "../chunk-6JBX55K4.js";
15
15
  import "../chunk-MLKGABMK.js";
16
16
 
17
17
  // bin/pushary-stats.ts