@pushary/agent-hooks 1.9.145 → 1.9.148

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 +25 -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-H7H75ARS.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 +144 -106
  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-6IWOMXUF.js → chunk-2VPRLAKF.js} +4 -4
  75. package/dist/{chunk-GK5X2ZTN.js → chunk-3AAQJ75F.js} +5 -5
  76. package/dist/{chunk-YNCVSKUW.js → chunk-3OPXQK4D.js} +5 -5
  77. package/dist/{chunk-ZORBUQFG.js → chunk-3T7RA7WJ.js} +2 -2
  78. package/dist/{chunk-PXZTCR4M.js → chunk-3WD3BEPB.js} +2 -2
  79. package/dist/{chunk-VTJ4WZOC.js → chunk-43NHQUCY.js} +24 -3
  80. package/dist/{chunk-S7HGPKCL.js → chunk-4L2IYNLC.js} +1 -1
  81. package/dist/{chunk-KFALRZIN.js → chunk-5IG3VPHT.js} +4 -4
  82. package/dist/{chunk-S3A4PCRR.js → chunk-5ZIYTFPW.js} +10 -10
  83. package/dist/{chunk-A2H256WR.js → chunk-6HO36P3A.js} +1 -1
  84. package/dist/{chunk-FCSPMSDC.js → chunk-6RYJ3XCD.js} +200 -59
  85. package/dist/{chunk-PY6CM4NK.js → chunk-6YX3VB5P.js} +19 -12
  86. package/dist/{chunk-BYKRAYGD.js → chunk-A3URJPYH.js} +1 -1
  87. package/dist/{chunk-KS3PNTRT.js → chunk-ABTQG6XU.js} +1 -1
  88. package/dist/{chunk-72LP4RPC.js → chunk-AQ7L2E2U.js} +98 -47
  89. package/dist/{chunk-FNAH3YJC.js → chunk-B6RTPP3X.js} +16 -16
  90. package/dist/{chunk-K2SKUBYY.js → chunk-BP5HLKR6.js} +12 -12
  91. package/dist/{chunk-4L5WPDTB.js → chunk-BPKB7BI4.js} +1 -1
  92. package/dist/{chunk-YRJZF5RG.js → chunk-CABBLJD5.js} +3 -3
  93. package/dist/{chunk-ZBMVOMFG.js → chunk-CAHULQIO.js} +1 -1
  94. package/dist/chunk-CBIS7IYQ.js +157 -0
  95. package/dist/{chunk-LJRPWUST.js → chunk-CDQOARIF.js} +3 -3
  96. package/dist/{chunk-ZSOCJHL7.js → chunk-CIRTRWHM.js} +309 -5
  97. package/dist/{chunk-NTMKJRQ3.js → chunk-CMTDMZPV.js} +2 -2
  98. package/dist/{chunk-WOSO4YFQ.js → chunk-CU5SYUMK.js} +3 -6
  99. package/dist/{chunk-L4OGTRVW.js → chunk-D3QT4S7U.js} +4 -4
  100. package/dist/{chunk-YU5XE6VC.js → chunk-DHCJDYBT.js} +8 -7
  101. package/dist/{chunk-2LGDEPVL.js → chunk-DLPI45DF.js} +6 -6
  102. package/dist/{chunk-ZJZNT2G5.js → chunk-ENRL4WFD.js} +4 -4
  103. package/dist/{chunk-6UK4K5RS.js → chunk-FQLS37AX.js} +1 -1
  104. package/dist/{chunk-B4JQIH5M.js → chunk-H6FFNTSR.js} +7 -7
  105. package/dist/{chunk-JKWUF776.js → chunk-HEOBF5H6.js} +3 -3
  106. package/dist/{chunk-MNU5N3CQ.js → chunk-JSZ6LKX5.js} +23 -12
  107. package/dist/{chunk-RO6EVL5C.js → chunk-JUEQUYAT.js} +2 -2
  108. package/dist/{chunk-GURIOZE7.js → chunk-KP6ERYOA.js} +8 -8
  109. package/dist/{chunk-QKTF7WS6.js → chunk-KWJJYZ3T.js} +4 -4
  110. package/dist/{chunk-EPWOARGR.js → chunk-KXNAB76Z.js} +16 -5
  111. package/dist/chunk-LC53HRZ6.js +36 -0
  112. package/dist/{chunk-52UXNCZG.js → chunk-M7HJZ7HO.js} +3 -3
  113. package/dist/{chunk-WMBWKPKJ.js → chunk-MT4GBXLM.js} +10 -74
  114. package/dist/{chunk-WPBWJMBZ.js → chunk-MUSINFEU.js} +5 -5
  115. package/dist/{chunk-LD4R2P6N.js → chunk-NHZV2H63.js} +1 -1
  116. package/dist/{chunk-USFZJAB4.js → chunk-NLED3JGR.js} +1 -1
  117. package/dist/{chunk-DZIZ3XFL.js → chunk-NRPQUU3D.js} +2 -2
  118. package/dist/{chunk-LQXUWXQP.js → chunk-O5ARO3JM.js} +33 -10
  119. package/dist/chunk-OYIN77HO.js +72 -0
  120. package/dist/{chunk-TJXJGMSP.js → chunk-PH3MVQCQ.js} +21 -11
  121. package/dist/{chunk-2ELNRGNX.js → chunk-PUTX5BBE.js} +7 -4
  122. package/dist/{chunk-R34RWVN2.js → chunk-PVBDITRS.js} +14 -5
  123. package/dist/{chunk-33BYPZ52.js → chunk-Q7GZKNMH.js} +1 -1
  124. package/dist/{chunk-7LTP2GHO.js → chunk-QSZYHL7Z.js} +2 -2
  125. package/dist/{chunk-CUR2DCZN.js → chunk-QTQRQZIU.js} +4 -4
  126. package/dist/{chunk-SQL5YXUH.js → chunk-R2JRRCZK.js} +1 -1
  127. package/dist/{chunk-4KDRT3OA.js → chunk-RMBY7JGO.js} +1 -1
  128. package/dist/{chunk-KKPT7ROP.js → chunk-RWTH5RYA.js} +2 -2
  129. package/dist/chunk-RYDDLS62.js +176 -0
  130. package/dist/{chunk-Q6P7G4NY.js → chunk-S3MEI2D2.js} +17 -5
  131. package/dist/{chunk-HOQH5CLZ.js → chunk-T3CMGGNW.js} +1 -1
  132. package/dist/{chunk-IIN26HL7.js → chunk-T4PX3DRF.js} +1 -1
  133. package/dist/{chunk-6LZ7MXHD.js → chunk-TXXAQRX4.js} +7 -5
  134. package/dist/{chunk-YZA3YBHX.js → chunk-UAHBSOO4.js} +2 -2
  135. package/dist/{chunk-LMU6NG2G.js → chunk-UFGFO7QB.js} +1 -1
  136. package/dist/{chunk-TRV3ETGY.js → chunk-UJUGFLVF.js} +5 -5
  137. package/dist/{chunk-IRPIMQ7U.js → chunk-UL2NNDKD.js} +3 -3
  138. package/dist/{chunk-BWREST4F.js → chunk-VPADWVYD.js} +1 -1
  139. package/dist/{chunk-5TWW7ZUL.js → chunk-VPMSV35B.js} +5 -5
  140. package/dist/{chunk-G3VSMI7K.js → chunk-WQEJCDMR.js} +2 -2
  141. package/dist/{chunk-JZT2LPRM.js → chunk-WQJ5NJ35.js} +1 -1
  142. package/dist/{chunk-63WX5KZN.js → chunk-X4OEGFOG.js} +3 -3
  143. package/dist/{chunk-RWLNTZK5.js → chunk-X4OQ5UMH.js} +5 -5
  144. package/dist/{chunk-MOC2DN42.js → chunk-XSBW6TUH.js} +2 -2
  145. package/dist/{chunk-WH4ODOCE.js → chunk-XZGQZDFP.js} +6 -6
  146. package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
  147. package/dist/{chunk-WUT3PO33.js → chunk-YOP7LFHW.js} +8 -8
  148. package/dist/{chunk-KGFB2LEB.js → chunk-YTD7RV6F.js} +3 -3
  149. package/dist/{chunk-IDLOJIIS.js → chunk-YWSIN7IH.js} +1 -1
  150. package/dist/{chunk-MKHVLDMN.js → chunk-ZCB5SCYM.js} +2 -2
  151. package/dist/{chunk-OONMKLUF.js → chunk-ZOATPL53.js} +4 -4
  152. package/dist/{chunk-Y7INHH5G.js → chunk-ZX2O66NS.js} +3 -3
  153. package/dist/{codex-app-cards-switch-F7WQ7Y3I.js → codex-app-cards-switch-BCM547E6.js} +11 -11
  154. package/dist/{codex-card-routing-EVL5L36G.js → codex-card-routing-222EKZJR.js} +2 -2
  155. package/dist/{codex-desktop-launch-PL6Z2ELZ.js → codex-desktop-launch-6AFOLMZ7.js} +1 -1
  156. package/dist/{codex-session-launch-7NQEAUDU.js → codex-session-launch-4YJR4ZGN.js} +20 -20
  157. package/dist/{config-KFFD4VWH.js → config-GWNPGS47.js} +3 -3
  158. package/dist/{global-upgrade-L3CY6EFF.js → global-upgrade-VRF6OSSU.js} +9 -9
  159. package/dist/{identity-DPYYIMHL.js → identity-PQIM7R2N.js} +4 -4
  160. package/dist/{live-capabilities-QJEXK6GH.js → live-capabilities-G3LMKZUB.js} +4 -4
  161. package/dist/{paths-PEF6C64P.js → paths-TFGIP5PU.js} +7 -3
  162. package/dist/{reapply-7APCQRRK.js → reapply-3IRAI6JF.js} +30 -29
  163. package/dist/src/index.js +34 -34
  164. package/dist/{upgrade-lock-A7OKXMRW.js → upgrade-lock-2G7ANYYO.js} +6 -4
  165. package/dist/{usage-HSS33762.js → usage-K3EGYCSU.js} +3 -3
  166. package/package.json +1 -1
  167. package/dist/chunk-D3UFDCTQ.js +0 -87
@@ -0,0 +1,103 @@
1
+ export const MCP_PATH = '/api/mcp/mcp';
2
+ export const ASK_USER_TOOL = 'ask_user';
3
+ export const WAIT_FOR_ANSWER_TOOL = 'wait_for_answer';
4
+ export const CANCEL_QUESTION_TOOL = 'cancel_question';
5
+ export const ASK_REQUEST_TIMEOUT_MS = 10_000;
6
+ export const CANCEL_REQUEST_TIMEOUT_MS = 4_000;
7
+ export const POLL_TIMEOUT_MIN_MS = 1_000;
8
+ export const POLL_TIMEOUT_MAX_MS = 30_000;
9
+ export const POLL_RESPONSE_GRACE_MS = 2_000;
10
+ const JSON_RPC_VERSION = '2.0';
11
+ const TOOLS_CALL_METHOD = 'tools/call';
12
+ const EVENT_STREAM_TYPE = 'text/event-stream';
13
+ const EVENT_DATA_PREFIX = 'data:';
14
+ const UNAUTHORIZED_STATUSES = new Set([401, 403]);
15
+ const TOO_MANY_REQUESTS_STATUS = 429;
16
+ const SERVER_ERROR_STATUS_FLOOR = 500;
17
+ const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
18
+ const parsedJson = (text) => {
19
+ try {
20
+ return { ok: true, value: JSON.parse(text) };
21
+ }
22
+ catch {
23
+ return { ok: false };
24
+ }
25
+ };
26
+ const lastEventData = (stream) => {
27
+ const events = stream.split(/\r?\n\r?\n/).map(event => event.split(/\r?\n/).filter(line => line.startsWith(EVENT_DATA_PREFIX)).map(line => line.slice(EVENT_DATA_PREFIX.length).trimStart()).join('\n').trim());
28
+ return events.filter(data => data.length > 0).at(-1) ?? null;
29
+ };
30
+ const envelopeOf = (body, contentType) => {
31
+ const text = contentType.includes(EVENT_STREAM_TYPE) ? lastEventData(body) : body;
32
+ if (text === null || text.trim().length === 0)
33
+ return null;
34
+ const parsed = parsedJson(text);
35
+ return parsed.ok ? parsed.value : null;
36
+ };
37
+ const firstTextContent = (content) => {
38
+ if (!Array.isArray(content))
39
+ return null;
40
+ const first = content[0];
41
+ return isRecord(first) && typeof first.text === 'string' ? first.text : null;
42
+ };
43
+ const toolReplyOf = (envelope) => {
44
+ if (!isRecord(envelope))
45
+ return { kind: 'failed', failure: 'unreadable' };
46
+ if (envelope.error !== undefined)
47
+ return { kind: 'failed', failure: 'tool_error' };
48
+ const result = envelope.result;
49
+ if (!isRecord(result))
50
+ return { kind: 'failed', failure: 'unreadable' };
51
+ if (result.isError === true)
52
+ return { kind: 'failed', failure: 'tool_error' };
53
+ if (isRecord(result.structuredContent))
54
+ return { kind: 'reply', value: result.structuredContent };
55
+ const text = firstTextContent(result.content);
56
+ const parsed = text === null ? null : parsedJson(text);
57
+ return parsed?.ok ? { kind: 'reply', value: parsed.value } : { kind: 'failed', failure: 'unreadable' };
58
+ };
59
+ const requestSignal = (signal, timeoutMs) => {
60
+ const timeout = AbortSignal.timeout(timeoutMs);
61
+ return signal ? AbortSignal.any([signal, timeout]) : timeout;
62
+ };
63
+ const httpFailureOf = (status) => {
64
+ if (UNAUTHORIZED_STATUSES.has(status))
65
+ return 'unauthorized';
66
+ return status === TOO_MANY_REQUESTS_STATUS || status >= SERVER_ERROR_STATUS_FLOOR ? 'server_error' : 'refused';
67
+ };
68
+ export const clampedPollMs = (timeoutMs) => Math.min(Math.max(Math.floor(timeoutMs), POLL_TIMEOUT_MIN_MS), POLL_TIMEOUT_MAX_MS);
69
+ export const createPusharyQuestions = (connection, fetcher = fetch) => {
70
+ const endpoint = `${connection.baseUrl}${MCP_PATH}`;
71
+ const callTool = async (name, args, timeoutMs, signal) => {
72
+ const combined = requestSignal(signal, timeoutMs);
73
+ try {
74
+ const response = await fetcher(endpoint, {
75
+ method: 'POST',
76
+ headers: {
77
+ 'Content-Type': 'application/json',
78
+ Accept: `application/json, ${EVENT_STREAM_TYPE}`,
79
+ Authorization: `Bearer ${connection.apiKey}`,
80
+ },
81
+ body: JSON.stringify({ jsonrpc: JSON_RPC_VERSION, id: 1, method: TOOLS_CALL_METHOD, params: { name, arguments: args } }),
82
+ signal: combined,
83
+ });
84
+ if (!response.ok)
85
+ return { kind: 'failed', failure: httpFailureOf(response.status) };
86
+ const body = await response.text();
87
+ return toolReplyOf(envelopeOf(body, response.headers.get('content-type') ?? ''));
88
+ }
89
+ catch {
90
+ if (signal?.aborted)
91
+ return { kind: 'failed', failure: 'aborted' };
92
+ return { kind: 'failed', failure: combined.aborted ? 'timed_out' : 'network' };
93
+ }
94
+ };
95
+ return {
96
+ ask: args => callTool(ASK_USER_TOOL, { ...args }, ASK_REQUEST_TIMEOUT_MS, undefined),
97
+ waitForAnswer: (correlationId, timeoutMs, signal) => {
98
+ const pollMs = clampedPollMs(timeoutMs);
99
+ return callTool(WAIT_FOR_ANSWER_TOOL, { correlationId, timeoutMs: pollMs }, pollMs + POLL_RESPONSE_GRACE_MS, signal);
100
+ },
101
+ cancel: correlationId => callTool(CANCEL_QUESTION_TOOL, { correlationId }, CANCEL_REQUEST_TIMEOUT_MS, undefined),
102
+ };
103
+ };
@@ -0,0 +1,3 @@
1
+ // Generated by scripts/generate-editor-redaction.mjs.
2
+ export const PUSHARY_HOSTS = ['pushary.com', 'www.pushary.com'];
3
+ export const isPusharyHost = (hostname) => PUSHARY_HOSTS.includes(hostname);
@@ -0,0 +1,53 @@
1
+ const CREDENTIAL_NAME = String.raw `(?:authorization|secret|token|password|passwd|api[_-]?key|access[_-]?key|client[_-]?secret|private[_-]?key)["']?`;
2
+ const CREDENTIAL_KEY = String.raw `${CREDENTIAL_NAME}\s*[=:]\s*`;
3
+ const DISPLAYED_CREDENTIAL_KEY = String.raw `${CREDENTIAL_NAME}(?:[ \t]*:[ \t]*|[ \t]+=[ \t]*|=)`;
4
+ const SHELL_INERT_UNIT = String.raw `(?:[A-Za-z0-9_\-./+=:@%^!#]|\\[^\s'"])`;
5
+ const SHELL_INERT_SINGLE_QUOTED_UNIT = String.raw `[A-Za-z0-9_\-./+=:@%^!#\\]`;
6
+ const SHELL_INERT_URL_PASSWORD_UNIT = String.raw `(?:[A-Za-z0-9_\-.+=:%^!#]|\\[^\s'"@/])`;
7
+ const AUTHORIZATION_SCHEME = String.raw `(?:basic|digest|token|negotiate|ntlm)`;
8
+ const PEM_LINE_BREAK = String.raw `(?:\r?\n|(?:\\r)?\\n)`;
9
+ const credentialAssignmentRule = (key, doubleQuoted, singleQuoted, bare) => ({
10
+ pattern: new RegExp(String.raw `(${key})(?:(")${doubleQuoted}|(')${singleQuoted}|(["']?)${bare})`, 'gi'),
11
+ replacement: '$1$2$3$4[redacted]$2$3',
12
+ });
13
+ const DISPLAYED_SECRET_SHAPES = {
14
+ separator: String.raw `[ \t]`,
15
+ privateKeyBody: String.raw `${PEM_LINE_BREAK}?(?:(?:Proc-Type|DEK-Info): [A-Za-z0-9,-]+${PEM_LINE_BREAK})*(?:[A-Za-z0-9+/=\r\n]|\\[rn])*?`,
16
+ urlPassword: `${SHELL_INERT_URL_PASSWORD_UNIT}+`,
17
+ authorizationValue: `${SHELL_INERT_UNIT}+`,
18
+ credentialAssignment: credentialAssignmentRule(DISPLAYED_CREDENTIAL_KEY, `${SHELL_INERT_UNIT}*"`, `${SHELL_INERT_SINGLE_QUOTED_UNIT}*'`, `${SHELL_INERT_UNIT}+`),
19
+ };
20
+ const CUT_OFF_SECRET_SHAPES = {
21
+ separator: String.raw `\s`,
22
+ privateKeyBody: String.raw `[\s\S]*?`,
23
+ urlPassword: String.raw `[^\s@/]+`,
24
+ authorizationValue: String.raw `\S+`,
25
+ credentialAssignment: credentialAssignmentRule(CREDENTIAL_KEY, String.raw `(?:\\[\s\S]|[^"\\])*(?:"|\\?$)`, "[^']*(?:'|$)", String.raw `\S+`),
26
+ };
27
+ const secretRedactionRules = (shapes) => [
28
+ { pattern: /\bpk_[A-Za-z0-9_]+\.[A-Za-z0-9_]+/g, replacement: '[redacted]' },
29
+ { pattern: new RegExp(String.raw `-----BEGIN[A-Z0-9 ]*PRIVATE KEY-----${shapes.privateKeyBody}-----END[A-Z0-9 ]*PRIVATE KEY-----`, 'g'), replacement: '[redacted key]' },
30
+ { pattern: /\bsk-[A-Za-z0-9_-]{16,}\b/g, replacement: '[redacted]' },
31
+ { pattern: /\b[spr]k_(?:live|test)_[A-Za-z0-9]{8,}\b/g, replacement: '[redacted]' },
32
+ { pattern: /\bwhsec_[A-Za-z0-9]{16,}\b/g, replacement: '[redacted]' },
33
+ { pattern: /\b(?:ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9]{36,}\b/g, replacement: '[redacted]' },
34
+ { pattern: /\bgithub_pat_[A-Za-z0-9_]{22,}\b/g, replacement: '[redacted]' },
35
+ { pattern: /\bglpat-[A-Za-z0-9_-]{20,}\b/g, replacement: '[redacted]' },
36
+ { pattern: /\bxox[baprs]-[A-Za-z0-9-]{10,}\b/g, replacement: '[redacted]' },
37
+ { pattern: /\bAIza[A-Za-z0-9_-]{35}\b/g, replacement: '[redacted]' },
38
+ { pattern: /\bAKIA[0-9A-Z]{16}\b/g, replacement: '[redacted]' },
39
+ { pattern: /\bnpm_[A-Za-z0-9]{36}\b/g, replacement: '[redacted]' },
40
+ { pattern: /\bxai-[A-Za-z0-9]{16,}\b/g, replacement: '[redacted]' },
41
+ { pattern: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/g, replacement: '[redacted]' },
42
+ { pattern: new RegExp(String.raw `\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, 'gi'), replacement: '$1[redacted]@' },
43
+ { pattern: new RegExp(String.raw `\bbearer${shapes.separator}+[A-Za-z0-9._~+/=-]+`, 'gi'), replacement: 'bearer [redacted]' },
44
+ { pattern: new RegExp(String.raw `\bauthorization:${shapes.separator}*(?:${AUTHORIZATION_SCHEME}${shapes.separator}+)?${shapes.authorizationValue}`, 'gi'), replacement: 'authorization: [redacted]' },
45
+ shapes.credentialAssignment,
46
+ ];
47
+ export const SECRET_REDACTION_RULES = secretRedactionRules(DISPLAYED_SECRET_SHAPES);
48
+ const CUT_OFF_TEXT_REDACTION_RULES = secretRedactionRules(CUT_OFF_SECRET_SHAPES);
49
+ const HIGH_ENTROPY_RULE = { pattern: /[A-Za-z0-9+/]{40,}={0,2}/g, replacement: '[redacted]' };
50
+ const applyRedactionRules = (rules, text) => rules.reduce((acc, rule) => acc.replace(rule.pattern, rule.replacement), text);
51
+ export const redactSecrets = (text) => applyRedactionRules(SECRET_REDACTION_RULES, text);
52
+ export const redactSecretsFromContent = (text) => applyRedactionRules(CUT_OFF_TEXT_REDACTION_RULES, text);
53
+ export const redactSecretsDeep = (text) => redactSecrets(text).replace(HIGH_ENTROPY_RULE.pattern, HIGH_ENTROPY_RULE.replacement);
@@ -0,0 +1,65 @@
1
+ import { isApprovingAnswer, isDecisionStoppedReply, STOP_HANDOFF_ACTION } from './decision-reply.js';
2
+ export const CANCEL_THEN_ASK_IN_CURRENT_CLIENT = 'cancel_then_ask_in_current_client';
3
+ export const PUSH_FIRST_DELIVERY = 'push_first';
4
+ const PENDING_STATUS = 'pending';
5
+ const UNAVAILABLE_STATUS = 'unavailable';
6
+ const ENDED_STATUSES = new Set(['expired']);
7
+ const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
8
+ const answeredValueOf = (reply) => reply.answered === true && typeof reply.value === 'string' ? reply.value : null;
9
+ const statusOf = (reply) => (typeof reply.status === 'string' ? reply.status : null);
10
+ const hasEnded = (reply) => {
11
+ const status = statusOf(reply);
12
+ return status !== null && ENDED_STATUSES.has(status);
13
+ };
14
+ const handBackReasonOf = (reply) => reply.noDevices === true ? 'no_devices' : 'current_client';
15
+ export const questionStateOf = (reply) => {
16
+ if (!isRecord(reply))
17
+ return { kind: 'unreadable' };
18
+ if (isDecisionStoppedReply(reply))
19
+ return { kind: 'stopped' };
20
+ const answered = answeredValueOf(reply);
21
+ if (answered !== null)
22
+ return { kind: 'answered', value: answered };
23
+ if (reply.answered === true)
24
+ return { kind: 'unreadable' };
25
+ if (hasEnded(reply))
26
+ return { kind: 'ended' };
27
+ if (reply.handoffAction === CANCEL_THEN_ASK_IN_CURRENT_CLIENT)
28
+ return { kind: 'hand_back', reason: handBackReasonOf(reply) };
29
+ if (statusOf(reply) === PENDING_STATUS)
30
+ return { kind: 'pending' };
31
+ return { kind: 'unreadable' };
32
+ };
33
+ const correlationIdOf = (reply) => typeof reply.correlationId === 'string' && reply.correlationId.trim().length > 0 ? reply.correlationId : null;
34
+ const handBackAfterMsOf = (reply) => {
35
+ if (reply.requesterMayAnswer === false || reply.deliveryMode !== PUSH_FIRST_DELIVERY)
36
+ return null;
37
+ const window = reply.policyTimeoutMs;
38
+ return typeof window === 'number' && Number.isFinite(window) && window >= 0 ? window : null;
39
+ };
40
+ export const askReplyOf = (reply) => {
41
+ if (!isRecord(reply))
42
+ return { kind: 'unreadable' };
43
+ const state = questionStateOf(reply);
44
+ if (state.kind === 'stopped')
45
+ return { kind: 'stopped' };
46
+ const correlationId = correlationIdOf(reply);
47
+ if (correlationId === null)
48
+ return { kind: 'unreadable' };
49
+ return { kind: 'question', correlationId, state, handBackAfterMs: handBackAfterMsOf(reply) };
50
+ };
51
+ export const withdrawalOf = (reply) => {
52
+ if (!isRecord(reply))
53
+ return 'unreachable';
54
+ if (statusOf(reply) === UNAVAILABLE_STATUS || reply.handoffAction === STOP_HANDOFF_ACTION)
55
+ return 'stop';
56
+ if (typeof reply.cancelled !== 'boolean')
57
+ return 'unreachable';
58
+ const byThisCall = reply.cancelledByThisCall;
59
+ if (byThisCall !== undefined && typeof byThisCall !== 'boolean')
60
+ return 'unreachable';
61
+ if (byThisCall === true && !reply.cancelled)
62
+ return 'unreachable';
63
+ return reply.cancelled ? 'withdrawn' : 'not_pending';
64
+ };
65
+ export const isExplicitApproval = (answer) => isApprovingAnswer(answer);
@@ -0,0 +1,103 @@
1
+ import { FILE_WRITING_TOOLS, SESSIONS_SPAWN_TOOL } from './protected-writes.js';
2
+ export const PLUGIN_ID = 'pushary';
3
+ export const PLUGIN_NAME = 'Pushary';
4
+ export const PLUGIN_DESCRIPTION = 'Asks you on your phone before OpenClaw runs a gated tool call, and blocks the call unless you approve it.';
5
+ export const AGENT_LABEL = 'OpenClaw';
6
+ export const DEFAULT_OPENCLAW_AGENT_ID = 'main';
7
+ export const EXEC_TOOL = 'exec';
8
+ export const PROCESS_TOOL = 'process';
9
+ export const PLUGINS_TOOL = 'plugins';
10
+ export const GATEWAY_TOOL = 'gateway';
11
+ export const OPENCLAW_SYSTEM_TOOL = 'openclaw';
12
+ export const AUTOMATIONS_TOOL = 'automations';
13
+ export const TERMINAL_TOOL = 'terminal';
14
+ export const TOOL_ACTION_PARAMETER = 'action';
15
+ const TOOL_ID_PATTERN = /^[a-z0-9][a-z0-9_.:-]{0,99}$/;
16
+ const AGENT_NAME_SEPARATOR = ' - ';
17
+ const AGENT_ID_MAX_LENGTH = 40;
18
+ const HOST_TOOL_ALIASES = new Map([
19
+ ['bash', EXEC_TOOL],
20
+ ['exec_command', EXEC_TOOL],
21
+ ['shell', EXEC_TOOL],
22
+ ['shell_command', EXEC_TOOL],
23
+ ['apply-patch', 'apply_patch'],
24
+ ['tool_call', 'dispatch_action'],
25
+ ['cron', AUTOMATIONS_TOOL],
26
+ ['agent', 'spawn_agent'],
27
+ ]);
28
+ const HOST_SPELLINGS_OF_EXEC = [EXEC_TOOL, 'shell', 'shell_command'];
29
+ const PROCESS_ACTIONS_WITHOUT_APPROVAL = new Set(['list', 'poll', 'log', 'kill', 'clear', 'remove']);
30
+ const PLUGINS_ACTIONS_WITHOUT_APPROVAL = new Set(['list', 'inspect', 'search']);
31
+ const GATEWAY_ACTIONS_WITHOUT_APPROVAL = new Set(['config.get', 'config.schema.lookup']);
32
+ const OPENCLAW_SYSTEM_ACTIONS_WITHOUT_APPROVAL = new Set([
33
+ 'status', 'models', 'agents', 'channels', 'channel_info', 'audit', 'validate_config', 'doctor',
34
+ 'config_get', 'config_schema', 'gateway_status', 'plugin_list', 'plugin_search', 'open_agent', 'open_setup',
35
+ ]);
36
+ const AUTOMATIONS_ACTIONS_WITHOUT_APPROVAL = new Set(['status', 'list', 'get', 'runs', 'next_check']);
37
+ const TERMINAL_ACTIONS_WITHOUT_APPROVAL = new Set(['read', 'list']);
38
+ const ACTIONS_WITHOUT_APPROVAL_BY_TOOL = new Map([
39
+ [PROCESS_TOOL, PROCESS_ACTIONS_WITHOUT_APPROVAL],
40
+ [PLUGINS_TOOL, PLUGINS_ACTIONS_WITHOUT_APPROVAL],
41
+ [GATEWAY_TOOL, GATEWAY_ACTIONS_WITHOUT_APPROVAL],
42
+ [OPENCLAW_SYSTEM_TOOL, OPENCLAW_SYSTEM_ACTIONS_WITHOUT_APPROVAL],
43
+ [AUTOMATIONS_TOOL, AUTOMATIONS_ACTIONS_WITHOUT_APPROVAL],
44
+ [TERMINAL_TOOL, TERMINAL_ACTIONS_WITHOUT_APPROVAL],
45
+ ]);
46
+ export const DEFAULT_GATED_TOOLS = [EXEC_TOOL, PROCESS_TOOL, PLUGINS_TOOL, GATEWAY_TOOL, OPENCLAW_SYSTEM_TOOL, AUTOMATIONS_TOOL, TERMINAL_TOOL];
47
+ const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
48
+ export const hostToolId = (name) => {
49
+ const lowered = name.trim().toLowerCase();
50
+ return HOST_TOOL_ALIASES.get(lowered) ?? lowered;
51
+ };
52
+ const configuredToolId = (value) => {
53
+ if (typeof value !== 'string')
54
+ return null;
55
+ const id = hostToolId(value);
56
+ return TOOL_ID_PATTERN.test(id) ? id : null;
57
+ };
58
+ const withDefaults = (extra) => [...new Set([...DEFAULT_GATED_TOOLS, ...extra])];
59
+ const DEFAULT_SETTINGS = { gatedTools: DEFAULT_GATED_TOOLS };
60
+ const rejectedEntry = (value) => (typeof value === 'string' ? value : JSON.stringify(value) ?? String(value));
61
+ export const readGateSettings = (pluginConfig) => {
62
+ if (pluginConfig === undefined)
63
+ return { kind: 'defaulted', settings: DEFAULT_SETTINGS };
64
+ if (!isRecord(pluginConfig))
65
+ return { kind: 'invalid', settings: DEFAULT_SETTINGS };
66
+ const configured = pluginConfig.gatedTools;
67
+ if (configured === undefined)
68
+ return { kind: 'defaulted', settings: DEFAULT_SETTINGS };
69
+ if (!Array.isArray(configured))
70
+ return { kind: 'invalid', settings: DEFAULT_SETTINGS };
71
+ const accepted = configured.flatMap(entry => {
72
+ const id = configuredToolId(entry);
73
+ return id === null ? [] : [id];
74
+ });
75
+ const rejected = configured.filter(entry => configuredToolId(entry) === null).map(rejectedEntry);
76
+ return { kind: 'configured', settings: { gatedTools: withDefaults(accepted) }, rejected };
77
+ };
78
+ const hostSpellingsOf = (toolId) => (toolId === EXEC_TOOL ? HOST_SPELLINGS_OF_EXEC : [toolId]);
79
+ export const hookMatcherFor = (settings) => {
80
+ const [first, ...rest] = [...new Set([...settings.gatedTools.flatMap(hostSpellingsOf), ...FILE_WRITING_TOOLS, SESSIONS_SPAWN_TOOL])];
81
+ return [first ?? EXEC_TOOL, ...rest];
82
+ };
83
+ const toolActionOf = (event) => {
84
+ const action = event.params[TOOL_ACTION_PARAMETER];
85
+ return typeof action === 'string' ? action.trim() : null;
86
+ };
87
+ const actionNeedsApproval = (actionsWithoutApproval, event) => {
88
+ const action = toolActionOf(event);
89
+ return action === null || !actionsWithoutApproval.has(action);
90
+ };
91
+ export const needsApproval = (settings, event) => {
92
+ const toolId = hostToolId(event.toolName);
93
+ if (!settings.gatedTools.includes(toolId))
94
+ return false;
95
+ const actionsWithoutApproval = ACTIONS_WITHOUT_APPROVAL_BY_TOOL.get(toolId);
96
+ return actionsWithoutApproval === undefined || actionNeedsApproval(actionsWithoutApproval, event);
97
+ };
98
+ export const askingAgentName = (openClawAgentId) => {
99
+ const agentId = openClawAgentId?.trim().slice(0, AGENT_ID_MAX_LENGTH);
100
+ return agentId && agentId !== DEFAULT_OPENCLAW_AGENT_ID
101
+ ? `${AGENT_LABEL}${AGENT_NAME_SEPARATOR}${agentId}`
102
+ : AGENT_LABEL;
103
+ };
@@ -0,0 +1,32 @@
1
+ {
2
+ "id": "pushary",
3
+ "name": "Pushary",
4
+ "description": "Asks you on your phone before OpenClaw runs a gated tool call, and blocks the call unless you approve it.",
5
+ "categories": [
6
+ "security"
7
+ ],
8
+ "activation": {
9
+ "onStartup": true
10
+ },
11
+ "uiHints": {
12
+ "gatedTools": {
13
+ "label": "More tools that need your approval",
14
+ "help": "OpenClaw tool ids to gate on top of the defaults (exec, process input, and the plugins, gateway and openclaw actions that change OpenClaw), for example message or browser."
15
+ }
16
+ },
17
+ "configSchema": {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "properties": {
21
+ "gatedTools": {
22
+ "type": "array",
23
+ "minItems": 1,
24
+ "uniqueItems": true,
25
+ "items": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,99}$"
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@pushary/openclaw",
3
+ "version": "0.1.0",
4
+ "description": "Phone approvals for OpenClaw. Pushary asks you before your AI agent runs a gated tool call, and blocks the call unless you approve it.",
5
+ "author": "Pushary <business@pushary.com>",
6
+ "homepage": "https://pushary.com/human-in-the-loop-openclaw",
7
+ "bugs": {
8
+ "url": "https://pushary.com/support"
9
+ },
10
+ "license": "MIT",
11
+ "type": "module",
12
+ "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js"
18
+ },
19
+ "./openclaw.plugin.json": "./openclaw.plugin.json"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "openclaw.plugin.json",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "sideEffects": false,
28
+ "engines": {
29
+ "node": ">=24.16.0"
30
+ },
31
+ "scripts": {
32
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
33
+ "typecheck": "tsc --noEmit",
34
+ "test": "node ../../scripts/ci/run-tests.mjs src",
35
+ "clean": "rm -rf dist",
36
+ "prepublishOnly": "npm run build && npm run typecheck"
37
+ },
38
+ "openclaw": {
39
+ "extensions": [
40
+ "./dist/index.js"
41
+ ],
42
+ "compat": {
43
+ "pluginApi": ">=2026.11.3"
44
+ },
45
+ "build": {
46
+ "openclawVersion": "2026.11.3"
47
+ },
48
+ "install": {
49
+ "npmSpec": "@pushary/openclaw",
50
+ "minHostVersion": ">=2026.11.3"
51
+ }
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^24.0.0",
55
+ "typescript": "^5"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ },
60
+ "keywords": [
61
+ "pushary",
62
+ "openclaw",
63
+ "openclaw-plugin",
64
+ "human-in-the-loop",
65
+ "approval",
66
+ "tool-approval",
67
+ "push-notifications",
68
+ "ai-agents"
69
+ ]
70
+ }
@@ -5,6 +5,7 @@ const DISPLAYED_CREDENTIAL_KEY = String.raw `${CREDENTIAL_NAME}(?:[ \t]*:[ \t]*|
5
5
  const SHELL_INERT_UNIT = String.raw `(?:[A-Za-z0-9_\-./+=:@%^!#]|\\[^\s'"])`;
6
6
  const SHELL_INERT_SINGLE_QUOTED_UNIT = String.raw `[A-Za-z0-9_\-./+=:@%^!#\\]`;
7
7
  const SHELL_INERT_URL_PASSWORD_UNIT = String.raw `(?:[A-Za-z0-9_\-.+=:%^!#]|\\[^\s'"@/])`;
8
+ const AUTHORIZATION_SCHEME = String.raw `(?:basic|digest|token|negotiate|ntlm)`;
8
9
  const PEM_LINE_BREAK = String.raw `(?:\r?\n|(?:\\r)?\\n)`;
9
10
  const credentialAssignmentRule = (key, doubleQuoted, singleQuoted, bare) => ({
10
11
  pattern: new RegExp(String.raw `(${key})(?:(")${doubleQuoted}|(')${singleQuoted}|(["']?)${bare})`, 'gi'),
@@ -41,7 +42,7 @@ const secretRedactionRules = (shapes) => [
41
42
  { pattern: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/g, replacement: '[redacted]' },
42
43
  { pattern: new RegExp(String.raw `\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, 'gi'), replacement: '$1[redacted]@' },
43
44
  { pattern: new RegExp(String.raw `\bbearer${shapes.separator}+[A-Za-z0-9._~+/=-]+`, 'gi'), replacement: 'bearer [redacted]' },
44
- { pattern: new RegExp(String.raw `\bauthorization:${shapes.separator}*${shapes.authorizationValue}`, 'gi'), replacement: 'authorization: [redacted]' },
45
+ { pattern: new RegExp(String.raw `\bauthorization:${shapes.separator}*(?:${AUTHORIZATION_SCHEME}${shapes.separator}+)?${shapes.authorizationValue}`, 'gi'), replacement: 'authorization: [redacted]' },
45
46
  shapes.credentialAssignment,
46
47
  ];
47
48
  export const SECRET_REDACTION_RULES = secretRedactionRules(DISPLAYED_SECRET_SHAPES);
@@ -140,7 +140,7 @@ For any code but 0 or 8, run `npx pushary@latest status` without `--json` and fo
140
140
  - **`mac-app` printed and the code is 3:** have the user sign in to the Pushary Mac app, then check again.
141
141
  - **Status says the key was signed out on this Mac:** have the user sign in again to the Pushary Mac app, open Settings > Agents and press Repair on every agent that offers it (if none does yet, have them close Settings, wait a minute and open it again), then run setup as in "Running setup yourself". It reuses the key the app wrote into the agents' settings; if the first one it finds does not work, it pairs instead. If status then shows the old key `from $PUSHARY_API_KEY`, have the user restart this agent from a new terminal.
142
142
  - **The Key line says `from $PUSHARY_API_KEY`, the code is 2 or 4, and status does not say signed out on this Mac:** this shell exports a bad key, and it wins over any key setup saves. Run setup at most once. If status still fails or shows `Key drift`, have the user delete every `export PUSHARY_API_KEY` line that still sets the old key from their shell startup files, such as ~/.zshrc, ~/.zprofile, ~/.bashrc and ~/.bash_profile, including any setup said it could not update, then restart this agent from a new terminal.
143
- - **Code 6, instead of the steps status prints:** have them install the Pushary app from https://pushary.com/download, sign in to the account this machine uses and allow notifications, then check again. A user who does not use a phone always gets 6: say so and stop. If it still says 6, offer to pair the phone: in the Pushary Mac app under Settings > Phone > Pair when `mac-app` printed, otherwise with setup `--connect app` as in "Running setup yourself", which creates a new key.
143
+ - **Code 6, instead of the steps status prints:** have them install the Pushary app from https://pushary.com/download, sign in to the account this machine uses and allow notifications, then check again. A user who does not use a phone always gets 6: say so and stop. If it still says 6, offer to pair the phone: in the Pushary Mac app under Settings > Phone > Pair when `mac-app` printed, otherwise with `npx pushary@latest pair`, which keeps this machine's key. Run it like setup: in the background with its output going to a log, kept running until it exits, showing the user the link, the QR and the fingerprint as they print. It waits up to 15 minutes for the phone, and a foreground command that times out cancels the pairing code.
144
144
 
145
145
  For `mac-app` without Node or npm, or with a Node version the CLI refuses, open the Pushary Mac app. Check the account, the plan and the Agents connection there, and connect or repair agents in the app. Do not install Node to inspect a native setup, and do not claim an exit code when no CLI ran.
146
146
 
@@ -208,7 +208,7 @@ Asks a question and waits. Use `confirm` for yes or no, `select` for 2 to 6 know
208
208
 
209
209
  **Answers.** `value` is "yes" or "no" for confirm, the chosen option for select, and the typed text for input. Read `note` too: a denial with a note carries the reason or a condition. A select or input value containing "yes" is answer data, not approval of a separate action.
210
210
 
211
- **Phone calls.** When the user says "call me", "phone me" or "ring me if you get stuck", ask with `ask_user`; there is no separate call tool. Pushary may phone only when the reply includes `phoneCall`; without it no call is planned, so do not promise one. With it, Pushary phones the person who can answer if the question is still unanswered, and records what they say as the answer: an approval, a choice or free text. For a call to the user, `ringsAt` says when it rings, and `waiting_for_calling_hours` means it rings when their calling hours start. While the reply is pending and has no `handoffAction`, keep waiting with `wait_for_answer` and the same `correlationId`: the spoken answer arrives there like any other. Do not cancel the question, ask it again or give up because a call is coming.
211
+ **Phone calls.** When the user says "call me", "phone me" or "ring me if you get stuck", ask with `ask_user`; there is no separate call tool. Pushary may phone only when the reply includes `phoneCall`; without it no call is planned, so do not promise one. With it, Pushary phones the person who can answer if the question is still unanswered, and records what they say as the answer: an approval, a choice or free text. For a call to the user, `ringsAtLocal` says when it rings in their own time (tell them that, not the UTC `ringsAt`), and `waiting_for_calling_hours` means it rings when their calling hours start. While the reply is pending and has no `handoffAction`, keep waiting with `wait_for_answer` and the same `correlationId`: the spoken answer arrives there like any other. Do not cancel the question, ask it again or give up because a call is coming.
212
212
 
213
213
  ```json
214
214
  { "question": "Delete the 3 unused migration files in db/migrate/?", "type": "confirm", "context": "Cleaning up old migrations before the schema change", "toolName": "Bash", "toolTarget": "rm", "actionBody": "rm db/migrate/0003_*.sql", "agentName": "Claude Code - myproject" }
@@ -19,25 +19,25 @@ import {
19
19
  waitRetryPauseMs,
20
20
  waitsForThePhone,
21
21
  withdrawQuestion
22
- } from "./chunk-YU5XE6VC.js";
22
+ } from "./chunk-DHCJDYBT.js";
23
23
  import "./chunk-POFBE6ZY.js";
24
- import "./chunk-WPBWJMBZ.js";
25
- import "./chunk-YRJZF5RG.js";
26
- import "./chunk-LJRPWUST.js";
27
- import "./chunk-S7HGPKCL.js";
28
- import "./chunk-KS3PNTRT.js";
24
+ import "./chunk-MUSINFEU.js";
25
+ import "./chunk-CABBLJD5.js";
26
+ import "./chunk-CDQOARIF.js";
27
+ import "./chunk-4L2IYNLC.js";
28
+ import "./chunk-ABTQG6XU.js";
29
29
  import "./chunk-YU2EUD7O.js";
30
- import "./chunk-72LP4RPC.js";
31
- import "./chunk-VTJ4WZOC.js";
32
- import "./chunk-BWREST4F.js";
30
+ import "./chunk-AQ7L2E2U.js";
31
+ import "./chunk-43NHQUCY.js";
32
+ import "./chunk-VPADWVYD.js";
33
33
  import "./chunk-BG4HHB7E.js";
34
34
  import "./chunk-TODDEIYG.js";
35
- import "./chunk-6LZ7MXHD.js";
35
+ import "./chunk-TXXAQRX4.js";
36
36
  import "./chunk-WIIMW5YO.js";
37
37
  import {
38
38
  DECISION_STOP_REASON,
39
39
  UNVERIFIABLE_APPROVAL_REASON
40
- } from "./chunk-LQXUWXQP.js";
40
+ } from "./chunk-O5ARO3JM.js";
41
41
  import "./chunk-MLKGABMK.js";
42
42
  export {
43
43
  ABANDONED_WAIT,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exitOnHelpFlag
4
- } from "../chunk-A2H256WR.js";
4
+ } from "../chunk-6HO36P3A.js";
5
5
  import {
6
6
  EXIT
7
7
  } from "../chunk-BG4HHB7E.js";
@@ -9,7 +9,7 @@ import {
9
9
  readJsonSafe,
10
10
  writeJsonAtomic
11
11
  } from "../chunk-TODDEIYG.js";
12
- import "../chunk-6LZ7MXHD.js";
12
+ import "../chunk-TXXAQRX4.js";
13
13
  import "../chunk-WIIMW5YO.js";
14
14
  import {
15
15
  AUDIT_CHAIN_FINDING_SEVERITY,
@@ -22,7 +22,7 @@ import {
22
22
  parseAuditChainExport,
23
23
  parseAuditKnownHead,
24
24
  verifyAuditChainSite
25
- } from "../chunk-LQXUWXQP.js";
25
+ } from "../chunk-O5ARO3JM.js";
26
26
  import "../chunk-MLKGABMK.js";
27
27
 
28
28
  // src/audit-verify.ts
@@ -1,46 +1,46 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  handleBell
4
- } from "../chunk-IIN26HL7.js";
4
+ } from "../chunk-T4PX3DRF.js";
5
5
  import {
6
6
  readHookInput
7
- } from "../chunk-5TWW7ZUL.js";
8
- import "../chunk-L4OGTRVW.js";
9
- import "../chunk-S3A4PCRR.js";
7
+ } from "../chunk-VPMSV35B.js";
8
+ import "../chunk-D3QT4S7U.js";
9
+ import "../chunk-5ZIYTFPW.js";
10
10
  import "../chunk-VAE5JBR5.js";
11
11
  import "../chunk-G66WIAST.js";
12
- import "../chunk-R34RWVN2.js";
13
- import "../chunk-WH4ODOCE.js";
14
- import "../chunk-CUR2DCZN.js";
15
- import "../chunk-K2SKUBYY.js";
16
- import "../chunk-JZT2LPRM.js";
17
- import "../chunk-ZBMVOMFG.js";
18
- import "../chunk-SQL5YXUH.js";
12
+ import "../chunk-PVBDITRS.js";
13
+ import "../chunk-XZGQZDFP.js";
14
+ import "../chunk-QTQRQZIU.js";
15
+ import "../chunk-BP5HLKR6.js";
16
+ import "../chunk-WQJ5NJ35.js";
17
+ import "../chunk-CAHULQIO.js";
18
+ import "../chunk-R2JRRCZK.js";
19
19
  import "../chunk-YPY4YCIZ.js";
20
- import "../chunk-IRPIMQ7U.js";
20
+ import "../chunk-UL2NNDKD.js";
21
21
  import "../chunk-XMSDA5WA.js";
22
- import "../chunk-HOQH5CLZ.js";
23
- import "../chunk-6UK4K5RS.js";
24
- import "../chunk-YU5XE6VC.js";
22
+ import "../chunk-T3CMGGNW.js";
23
+ import "../chunk-FQLS37AX.js";
24
+ import "../chunk-DHCJDYBT.js";
25
25
  import "../chunk-POFBE6ZY.js";
26
- import "../chunk-WPBWJMBZ.js";
27
- import "../chunk-YRJZF5RG.js";
28
- import "../chunk-LJRPWUST.js";
26
+ import "../chunk-MUSINFEU.js";
27
+ import "../chunk-CABBLJD5.js";
28
+ import "../chunk-CDQOARIF.js";
29
29
  import "../chunk-H6CL3T2S.js";
30
- import "../chunk-BYKRAYGD.js";
31
- import "../chunk-S7HGPKCL.js";
32
- import "../chunk-KS3PNTRT.js";
30
+ import "../chunk-A3URJPYH.js";
31
+ import "../chunk-4L2IYNLC.js";
32
+ import "../chunk-ABTQG6XU.js";
33
33
  import "../chunk-YU2EUD7O.js";
34
- import "../chunk-WOSO4YFQ.js";
35
- import "../chunk-MOC2DN42.js";
36
- import "../chunk-72LP4RPC.js";
37
- import "../chunk-VTJ4WZOC.js";
38
- import "../chunk-BWREST4F.js";
34
+ import "../chunk-CU5SYUMK.js";
35
+ import "../chunk-XSBW6TUH.js";
36
+ import "../chunk-AQ7L2E2U.js";
37
+ import "../chunk-43NHQUCY.js";
38
+ import "../chunk-VPADWVYD.js";
39
39
  import "../chunk-BG4HHB7E.js";
40
40
  import "../chunk-TODDEIYG.js";
41
- import "../chunk-6LZ7MXHD.js";
41
+ import "../chunk-TXXAQRX4.js";
42
42
  import "../chunk-WIIMW5YO.js";
43
- import "../chunk-LQXUWXQP.js";
43
+ import "../chunk-O5ARO3JM.js";
44
44
  import "../chunk-MLKGABMK.js";
45
45
 
46
46
  // bin/pushary-bell-hook.ts