@pushary/agent-hooks 1.4.2 → 1.5.1

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 (94) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +28 -0
  3. package/data/vscode-plugin/README.md +1 -1
  4. package/data/vscode-plugin/scripts/pushary-gate.mjs +2 -2
  5. package/dist/bin/pushary-bell-hook.js +22 -21
  6. package/dist/bin/pushary-bell.js +10 -10
  7. package/dist/bin/pushary-claude.js +28 -24
  8. package/dist/bin/pushary-clean.js +25 -25
  9. package/dist/bin/pushary-codex-bridge.js +16 -14
  10. package/dist/bin/pushary-codex-hook.js +32 -27
  11. package/dist/bin/pushary-codex.js +15 -10
  12. package/dist/bin/pushary-connect.js +11 -11
  13. package/dist/bin/pushary-cowork.js +6 -6
  14. package/dist/bin/pushary-daemon.js +32 -28
  15. package/dist/bin/pushary-disconnect.js +16 -16
  16. package/dist/bin/pushary-doctor.js +111 -40
  17. package/dist/bin/pushary-elicitation-hook.js +23 -22
  18. package/dist/bin/pushary-gemini-bridge.js +13 -11
  19. package/dist/bin/pushary-gemini-hook.js +29 -24
  20. package/dist/bin/pushary-hook.js +30 -30
  21. package/dist/bin/pushary-login.js +14 -14
  22. package/dist/bin/pushary-logout.js +8 -8
  23. package/dist/bin/pushary-mode.js +7 -7
  24. package/dist/bin/pushary-notification-hook.js +26 -25
  25. package/dist/bin/pushary-opencode-hook.js +25 -24
  26. package/dist/bin/pushary-permission-denied-hook.js +30 -29
  27. package/dist/bin/pushary-permission-hook.js +29 -28
  28. package/dist/bin/pushary-post-hook.js +26 -25
  29. package/dist/bin/pushary-prompt-hook.js +26 -25
  30. package/dist/bin/pushary-session-end-hook.js +26 -25
  31. package/dist/bin/pushary-session-start-hook.js +33 -27
  32. package/dist/bin/pushary-setup.js +94 -88
  33. package/dist/bin/pushary-stats.js +6 -6
  34. package/dist/bin/pushary-status.js +15 -15
  35. package/dist/bin/pushary-stop-hook.js +26 -25
  36. package/dist/bin/pushary-stopfailure-hook.js +26 -25
  37. package/dist/bin/pushary-suggestions.js +4 -4
  38. package/dist/bin/pushary-transcript-register.js +20 -19
  39. package/dist/bin/pushary-transcripts.js +8 -8
  40. package/dist/bin/pushary-upgrade.js +269 -45
  41. package/dist/bin/pushary-wait.js +7 -7
  42. package/dist/bin/pushary.js +8 -8
  43. package/dist/{chunk-LPYCPFBZ.js → chunk-2AUIEZYS.js} +3 -3
  44. package/dist/{chunk-4BROEAKH.js → chunk-2QT3GCU4.js} +1 -1
  45. package/dist/{chunk-55KW4FLG.js → chunk-3ZSGKLSO.js} +2 -2
  46. package/dist/{chunk-NY6XQ6CA.js → chunk-43LJSM4F.js} +2 -2
  47. package/dist/{chunk-LEAAERSQ.js → chunk-43ZDACBO.js} +1 -1
  48. package/dist/{chunk-II7PUMPB.js → chunk-4ERLRNOK.js} +3 -3
  49. package/dist/{chunk-M5CTUFF3.js → chunk-5HYNICS7.js} +1 -1
  50. package/dist/{chunk-MW6ZPC6R.js → chunk-5UQ5ATIE.js} +1 -1
  51. package/dist/{chunk-TYEO6T5J.js → chunk-5ZZG76S2.js} +2 -2
  52. package/dist/{chunk-EQRS3SGM.js → chunk-66H2QQAK.js} +1 -1
  53. package/dist/chunk-6EEANS74.js +300 -0
  54. package/dist/{chunk-TRLFZKVG.js → chunk-6IU45EHE.js} +49 -26
  55. package/dist/{chunk-JVTOML54.js → chunk-6QFEQIPM.js} +2 -2
  56. package/dist/chunk-BY2CRWBO.js +38 -0
  57. package/dist/{chunk-G653QPTR.js → chunk-D573TLP6.js} +7 -7
  58. package/dist/{chunk-25RTLTQD.js → chunk-DTQNDR7C.js} +1 -1
  59. package/dist/{chunk-FAH3D74E.js → chunk-EA3IELHP.js} +6 -0
  60. package/dist/{chunk-EYRGBYZG.js → chunk-HETOKNIL.js} +1 -1
  61. package/dist/{chunk-UM5J3J4V.js → chunk-HU5LSYL2.js} +2 -2
  62. package/dist/{chunk-PC6DU5C4.js → chunk-HUAOMX4U.js} +1 -1
  63. package/dist/{chunk-2V2IKOGJ.js → chunk-HVBF35GT.js} +2 -2
  64. package/dist/{chunk-DINDL2CF.js → chunk-HWJW3CPO.js} +25 -5
  65. package/dist/{chunk-VW66JEGU.js → chunk-IV3RHICU.js} +8 -8
  66. package/dist/{chunk-ACYIZ3KH.js → chunk-JKBDGZFL.js} +12 -6
  67. package/dist/{chunk-ZVY25BMK.js → chunk-K3QVDAZW.js} +1 -1
  68. package/dist/{chunk-MUVTZNJW.js → chunk-KHXVTWYS.js} +3 -3
  69. package/dist/{chunk-T5SZ4PML.js → chunk-KJRALILH.js} +7 -4
  70. package/dist/{chunk-VOMOZ4D5.js → chunk-M2LMXPJZ.js} +1 -1
  71. package/dist/{chunk-SUWRZYQG.js → chunk-MDJJW3LP.js} +3 -3
  72. package/dist/chunk-MU3WU2FO.js +166 -0
  73. package/dist/{chunk-2UMNXADU.js → chunk-OSJEMXSR.js} +5 -1
  74. package/dist/{chunk-TWWLVOPB.js → chunk-P4BNYJ5Q.js} +5 -5
  75. package/dist/{chunk-XDP3UYH5.js → chunk-PJ27EHCD.js} +8 -8
  76. package/dist/{chunk-LGXUGYUH.js → chunk-PYCQXCI5.js} +2 -2
  77. package/dist/{chunk-VIOL2DJS.js → chunk-R5KY3PBN.js} +5 -5
  78. package/dist/{chunk-SOUZBGYJ.js → chunk-T4QY64OR.js} +15 -14
  79. package/dist/{chunk-DY4ILT6L.js → chunk-TFKBFQCE.js} +1 -1
  80. package/dist/{chunk-GZ7E6VOB.js → chunk-TIWURSLS.js} +1 -1
  81. package/dist/{chunk-F4UWL4NY.js → chunk-TUXFIVOH.js} +1 -1
  82. package/dist/{chunk-UJBZIKSY.js → chunk-TZGCUNOX.js} +8 -8
  83. package/dist/{chunk-FU2DFEAZ.js → chunk-USQDVBEV.js} +2 -2
  84. package/dist/{chunk-YXP3WPAI.js → chunk-UYDTFCHW.js} +1 -1
  85. package/dist/{chunk-4ZDKSDVW.js → chunk-WNJSGZY7.js} +4 -4
  86. package/dist/{chunk-NHTAHAIS.js → chunk-WOLPADR6.js} +1 -1
  87. package/dist/{chunk-BZ4GDOJX.js → chunk-X7FESZTD.js} +7 -7
  88. package/dist/{chunk-NOWZUGZW.js → chunk-XWEONSLV.js} +1 -1
  89. package/dist/{chunk-Y3MM6PYN.js → chunk-YAWXKL2X.js} +1 -1
  90. package/dist/{chunk-GKIUEIDX.js → chunk-YQMFGWBD.js} +1 -1
  91. package/dist/{chunk-WPVHRUDT.js → chunk-Z4VGIBJ7.js} +3 -3
  92. package/dist/{reapply-J527BCJG.js → reapply-5CZSTJZI.js} +13 -8
  93. package/dist/src/index.js +18 -16
  94. package/package.json +1 -1
@@ -22,6 +22,7 @@ var COWORK_STANDING_INSTRUCTIONS = `Pushary is connected as a custom connector.
22
22
  - If Pushary tools are missing or disabled, report that once and continue within my authorization. Do not claim a notification or approval was delivered.`;
23
23
 
24
24
  // ../contracts/src/agent-manifest.ts
25
+ var AGENT_HOOKS_SETUP_COMMAND = "npx @pushary/agent-hooks@latest setup";
25
26
  var defaults = {
26
27
  hasStoredIdentity: true,
27
28
  hookSource: null,
@@ -53,7 +54,7 @@ var AGENTS = {
53
54
  managedProvider: true,
54
55
  enforcement: "enforced",
55
56
  connectVia: "Native hooks + MCP",
56
- setupCommand: "npx @pushary/agent-hooks setup",
57
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
57
58
  enforcementDetail: "Shell, writes and edits, subject to Claude Code permission mode and explicit policy."
58
59
  },
59
60
  claude_chat: {
@@ -80,7 +81,7 @@ var AGENTS = {
80
81
  managedProvider: true,
81
82
  enforcement: "enforced",
82
83
  connectVia: "Native hooks + MCP",
83
- setupCommand: "npx @pushary/agent-hooks setup",
84
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
84
85
  enforcementDetail: "Shell and apply_patch edits through native permission hooks; requires a compatible Codex runtime."
85
86
  },
86
87
  chatgpt: {
@@ -100,7 +101,7 @@ var AGENTS = {
100
101
  managedProvider: true,
101
102
  enforcement: "enforced",
102
103
  connectVia: "Native hooks + MCP",
103
- setupCommand: "npx @pushary/agent-hooks setup",
104
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
104
105
  enforcementDetail: "Shell, writes and edits through native BeforeTool hooks."
105
106
  },
106
107
  hermes: {
@@ -109,7 +110,7 @@ var AGENTS = {
109
110
  policyAgent: "hermes",
110
111
  enforcement: "enforced",
111
112
  connectVia: "Native Python plugin + approval transport",
112
- setupCommand: "npx @pushary/agent-hooks setup",
113
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
113
114
  enforcementDetail: "Hermes dangerous-command approvals when the Pushary transport is selected; optional PUSHARY_GATE_TOOLS gates named tools.",
114
115
  capabilityNote: "Uses the Python plugin, not a macOS bridge HookSource. CLI disconnect and managed-provider controls are not implemented for Hermes."
115
116
  },
@@ -122,7 +123,7 @@ var AGENTS = {
122
123
  disconnectable: true,
123
124
  enforcement: "enforced",
124
125
  connectVia: "Editor plugin hooks + MCP",
125
- setupCommand: "npx @pushary/agent-hooks setup",
126
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
126
127
  enforcementDetail: "With installed hooks: shell, MCP execution and Write/Delete/Edit tool calls. Plain MCP remains cooperative."
127
128
  },
128
129
  vscode: {
@@ -133,7 +134,7 @@ var AGENTS = {
133
134
  policyAgent: "vscode",
134
135
  enforcement: "enforced",
135
136
  connectVia: "Agent plugin hooks + MCP",
136
- setupCommand: "npx @pushary/agent-hooks setup",
137
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
137
138
  enforcementDetail: "PreToolUse approval hooks from the installed agent plugin; the host decides which events it exposes.",
138
139
  capabilityNote: "Has both a bridge HookSource and a per-agent policy profile. CLI disconnect and managed-provider controls are not implemented for VS Code."
139
140
  },
@@ -147,7 +148,7 @@ var AGENTS = {
147
148
  disconnectable: true,
148
149
  enforcement: "enforced",
149
150
  connectVia: "Generated plugin + MCP",
150
- setupCommand: "npx @pushary/agent-hooks setup",
151
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
151
152
  enforcementDetail: "Shell, writes, edits and web fetches when OpenCode itself asks for permission."
152
153
  },
153
154
  qwen_code: {
@@ -160,7 +161,7 @@ var AGENTS = {
160
161
  disconnectable: true,
161
162
  enforcement: "enforced",
162
163
  connectVia: "Native hooks + MCP",
163
- setupCommand: "npx @pushary/agent-hooks setup",
164
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
164
165
  enforcementDetail: "Shell, writes and edits through native PreToolUse hooks, matched on Qwen's own tool names and their Claude-shaped aliases."
165
166
  },
166
167
  codebuddy: {
@@ -173,7 +174,7 @@ var AGENTS = {
173
174
  disconnectable: true,
174
175
  enforcement: "enforced",
175
176
  connectVia: "Native hooks + MCP",
176
- setupCommand: "npx @pushary/agent-hooks setup",
177
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
177
178
  enforcementDetail: "Shell, writes and edits through native PreToolUse hooks, plus PermissionRequest. CodeBuddy implements the Claude Code hook specification."
178
179
  },
179
180
  qoder: {
@@ -186,7 +187,7 @@ var AGENTS = {
186
187
  disconnectable: true,
187
188
  enforcement: "enforced",
188
189
  connectVia: "Native hooks + MCP",
189
- setupCommand: "npx @pushary/agent-hooks setup",
190
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
190
191
  enforcementDetail: "Shell, writes and edits through native PreToolUse hooks, plus PermissionRequest, over Qoder's superset of the Claude Code event list.",
191
192
  capabilityNote: "Qoder documents no user-level instructions file, so the proactive-ask block is not installed. Hooks and MCP are unaffected. Like every agent in this family, the CLI wires it; the macOS app does not yet."
192
193
  },
@@ -200,7 +201,7 @@ var AGENTS = {
200
201
  disconnectable: true,
201
202
  enforcement: "enforced",
202
203
  connectVia: "Native hooks",
203
- setupCommand: "npx @pushary/agent-hooks setup",
204
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
204
205
  enforcementDetail: "Execute, Create, Edit and ApplyPatch through native PreToolUse hooks in ~/.factory/hooks.json.",
205
206
  capabilityNote: "Droid registers MCP servers through `droid mcp add` rather than a documented remote-server config shape, so setup writes hooks only. Add Pushary's MCP server yourself to let Droid send notifications and ask questions."
206
207
  },
@@ -214,14 +215,14 @@ var AGENTS = {
214
215
  disconnectable: true,
215
216
  enforcement: "enforced",
216
217
  connectVia: "Native hooks",
217
- setupCommand: "npx @pushary/agent-hooks setup",
218
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
218
219
  enforcementDetail: "exec, write and edit through native PreToolUse hooks, answered in Devin's own approve/block schema.",
219
220
  capabilityNote: "Devin CLI answers PreToolUse with `{decision}` rather than a permission decision. Pushary blocks an unanswered approval because this adapter cannot request a native prompt reliably. Question and plan dialogs remain with Devin; this adapter does not render their answers. It also fires no Notification event."
220
221
  },
221
222
  windsurf: {
222
223
  ...defaults,
223
224
  label: "Windsurf",
224
- setupCommand: "npx @pushary/agent-hooks setup",
225
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
225
226
  setupChoice: "Other"
226
227
  },
227
228
  unknown: {
@@ -238,7 +239,7 @@ var AGENTS = {
238
239
  ...defaults,
239
240
  hasStoredIdentity: false,
240
241
  label: "Any MCP client",
241
- setupCommand: "npx @pushary/agent-hooks setup",
242
+ setupCommand: AGENT_HOOKS_SETUP_COMMAND,
242
243
  setupChoice: "Other"
243
244
  },
244
245
  http: {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  COMPATIBLE_AGENT_TYPES,
9
9
  isValidApiKey
10
- } from "./chunk-SOUZBGYJ.js";
10
+ } from "./chunk-T4QY64OR.js";
11
11
 
12
12
  // src/setup/options.ts
13
13
  var AGENT_CHOICES = ["claude_code", "codex", "gemini_cli", "hermes", "cursor", "vscode", "opencode", ...COMPATIBLE_AGENT_TYPES, "custom"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecrets
3
- } from "./chunk-SOUZBGYJ.js";
3
+ } from "./chunk-T4QY64OR.js";
4
4
 
5
5
  // src/crypto.ts
6
6
  import nacl from "tweetnacl";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_BUDGETS,
3
3
  OPENCODE_APPROVAL_EVENT
4
- } from "./chunk-SOUZBGYJ.js";
4
+ } from "./chunk-T4QY64OR.js";
5
5
 
6
6
  // src/opencode-plugin.ts
7
7
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -6,38 +6,38 @@ import {
6
6
  } from "./chunk-SGZJ5LYH.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-4ZDKSDVW.js";
9
+ } from "./chunk-WNJSGZY7.js";
10
10
  import {
11
11
  ensureDaemonRunning
12
- } from "./chunk-BZ4GDOJX.js";
12
+ } from "./chunk-X7FESZTD.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  decodePublicKey,
16
16
  generateSessionKey,
17
17
  wrapSessionKey
18
- } from "./chunk-GZ7E6VOB.js";
18
+ } from "./chunk-TIWURSLS.js";
19
19
  import {
20
20
  fetchTranscriptRecipients,
21
21
  uploadTranscriptRecords
22
- } from "./chunk-EQRS3SGM.js";
22
+ } from "./chunk-66H2QQAK.js";
23
23
  import {
24
24
  transcriptEnvironmentPreference,
25
25
  transcriptsEnabled
26
- } from "./chunk-4BROEAKH.js";
26
+ } from "./chunk-2QT3GCU4.js";
27
27
  import {
28
28
  codexHome,
29
29
  pusharyDir
30
- } from "./chunk-TRLFZKVG.js";
30
+ } from "./chunk-6IU45EHE.js";
31
31
  import {
32
32
  readTranscriptPreference
33
- } from "./chunk-FU2DFEAZ.js";
33
+ } from "./chunk-USQDVBEV.js";
34
34
  import {
35
35
  writeJsonAtomic
36
36
  } from "./chunk-T7E75EKA.js";
37
37
  import {
38
38
  getApiKey,
39
39
  getBaseUrl
40
- } from "./chunk-2UMNXADU.js";
40
+ } from "./chunk-OSJEMXSR.js";
41
41
 
42
42
  // src/transcript-registration.ts
43
43
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-UM5J3J4V.js";
3
+ } from "./chunk-HU5LSYL2.js";
4
4
  import {
5
5
  backupFile,
6
6
  readJsonSafe,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-T7E75EKA.js";
10
10
  import {
11
11
  configFilePath
12
- } from "./chunk-2UMNXADU.js";
12
+ } from "./chunk-OSJEMXSR.js";
13
13
 
14
14
  // src/shell-alias.ts
15
15
  import { homedir } from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PRETOOLUSE_GATED_TOOLS
3
- } from "./chunk-SOUZBGYJ.js";
3
+ } from "./chunk-T4QY64OR.js";
4
4
 
5
5
  // src/claude-tools.ts
6
6
  var POSTTOOLUSE_MIRROR_ONLY_TOOLS = ["TodoWrite", "Task", "WebFetch", "WebSearch"];
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-DY4ILT6L.js";
3
+ } from "./chunk-TFKBFQCE.js";
4
4
  import {
5
5
  isBridgeLocator
6
- } from "./chunk-ZVY25BMK.js";
6
+ } from "./chunk-K3QVDAZW.js";
7
7
  import {
8
8
  pusharyHookExecutable
9
- } from "./chunk-WPVHRUDT.js";
9
+ } from "./chunk-Z4VGIBJ7.js";
10
10
  import {
11
11
  BELL_HOOK_BINARY
12
- } from "./chunk-MW6ZPC6R.js";
12
+ } from "./chunk-5UQ5ATIE.js";
13
13
 
14
14
  // src/setup/hook-ownership.ts
15
15
  var commandsIn = (value) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-TRLFZKVG.js";
3
+ } from "./chunk-6IU45EHE.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-T7E75EKA.js";
@@ -4,17 +4,14 @@ import {
4
4
  } from "./chunk-XHKBHWLX.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-NHTAHAIS.js";
7
+ } from "./chunk-WOLPADR6.js";
8
8
  import {
9
9
  pusharyDir,
10
10
  resolveGlobalBinary
11
- } from "./chunk-TRLFZKVG.js";
12
- import {
13
- getPackageVersion
14
- } from "./chunk-DINDL2CF.js";
11
+ } from "./chunk-6IU45EHE.js";
15
12
  import {
16
13
  readControlMode
17
- } from "./chunk-FU2DFEAZ.js";
14
+ } from "./chunk-USQDVBEV.js";
18
15
  import {
19
16
  readJsonSafe,
20
17
  writeFileAtomic,
@@ -23,7 +20,10 @@ import {
23
20
  } from "./chunk-T7E75EKA.js";
24
21
  import {
25
22
  getApiKey
26
- } from "./chunk-2UMNXADU.js";
23
+ } from "./chunk-OSJEMXSR.js";
24
+ import {
25
+ getPackageVersion
26
+ } from "./chunk-HWJW3CPO.js";
27
27
 
28
28
  // src/daemon-lifecycle.ts
29
29
  import { dirname, join, win32 as win32Path } from "path";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  describeKeyCheck,
3
3
  keyCheckFromResponse
4
- } from "./chunk-NY6XQ6CA.js";
4
+ } from "./chunk-43LJSM4F.js";
5
5
  import {
6
6
  createIo
7
7
  } from "./chunk-5RUIFDTP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePathBinary
3
- } from "./chunk-TRLFZKVG.js";
3
+ } from "./chunk-6IU45EHE.js";
4
4
 
5
5
  // src/hermes-config.ts
6
6
  import { execFileSync } from "child_process";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-2UMNXADU.js";
12
+ } from "./chunk-OSJEMXSR.js";
13
13
 
14
14
  // src/cli/login-ui.ts
15
15
  import { hostname } from "os";
@@ -2,17 +2,17 @@ import {
2
2
  CLAUDE_HOOK_EVENTS,
3
3
  GEMINI_HOOK_EVENTS,
4
4
  hasGeminiHooks
5
- } from "./chunk-LPYCPFBZ.js";
5
+ } from "./chunk-2AUIEZYS.js";
6
6
  import {
7
7
  CODEX_HOOK_EVENTS,
8
8
  hasCodexHooks,
9
9
  holdBudgetOf
10
- } from "./chunk-TRLFZKVG.js";
10
+ } from "./chunk-6IU45EHE.js";
11
11
  import {
12
12
  CURSOR_GATE_EVENTS,
13
13
  HOOK_LOCATOR_BINARY,
14
14
  hookCommandHoldBudget
15
- } from "./chunk-SOUZBGYJ.js";
15
+ } from "./chunk-T4QY64OR.js";
16
16
 
17
17
  // src/diagnostics/wiring.ts
18
18
  var record = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : null;
@@ -1,4 +1,5 @@
1
1
  import {
2
+ ensureCodexTrustAfterReapply,
2
3
  inspectConfiguredManagedProviders,
3
4
  reapplyAllAgents,
4
5
  reapplyClaudeForVersion,
@@ -8,16 +9,20 @@ import {
8
9
  reapplyGeminiSettings,
9
10
  reapplyVsCodePlugin,
10
11
  repairCodexHolds
11
- } from "./chunk-ACYIZ3KH.js";
12
- import "./chunk-PC6DU5C4.js";
13
- import "./chunk-II7PUMPB.js";
14
- import "./chunk-WPVHRUDT.js";
15
- import "./chunk-LPYCPFBZ.js";
16
- import "./chunk-YXP3WPAI.js";
17
- import "./chunk-TRLFZKVG.js";
12
+ } from "./chunk-JKBDGZFL.js";
13
+ import "./chunk-HUAOMX4U.js";
14
+ import "./chunk-6EEANS74.js";
15
+ import "./chunk-4ERLRNOK.js";
16
+ import "./chunk-Z4VGIBJ7.js";
17
+ import "./chunk-2AUIEZYS.js";
18
+ import "./chunk-XHKBHWLX.js";
19
+ import "./chunk-UYDTFCHW.js";
20
+ import "./chunk-6IU45EHE.js";
18
21
  import "./chunk-T7E75EKA.js";
19
- import "./chunk-SOUZBGYJ.js";
22
+ import "./chunk-T4QY64OR.js";
23
+ import "./chunk-HWJW3CPO.js";
20
24
  export {
25
+ ensureCodexTrustAfterReapply,
21
26
  inspectConfiguredManagedProviders,
22
27
  reapplyAllAgents,
23
28
  reapplyClaudeForVersion,
package/dist/src/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  handlePreToolUse
3
- } from "../chunk-XDP3UYH5.js";
4
- import "../chunk-VIOL2DJS.js";
5
- import "../chunk-II7PUMPB.js";
6
- import "../chunk-SUWRZYQG.js";
7
- import "../chunk-LEAAERSQ.js";
3
+ } from "../chunk-PJ27EHCD.js";
4
+ import "../chunk-R5KY3PBN.js";
5
+ import "../chunk-4ERLRNOK.js";
6
+ import "../chunk-MDJJW3LP.js";
7
+ import "../chunk-43ZDACBO.js";
8
8
  import "../chunk-YHG74UFF.js";
9
- import "../chunk-LPYCPFBZ.js";
9
+ import "../chunk-2AUIEZYS.js";
10
10
  import {
11
11
  fetchAccountPublicKey
12
- } from "../chunk-EQRS3SGM.js";
12
+ } from "../chunk-66H2QQAK.js";
13
13
  import {
14
14
  fetchModeOverride,
15
15
  fetchModeState,
@@ -18,28 +18,30 @@ import {
18
18
  handlePostToolUse,
19
19
  handleStop,
20
20
  reportEvent
21
- } from "../chunk-G653QPTR.js";
22
- import "../chunk-YXP3WPAI.js";
21
+ } from "../chunk-D573TLP6.js";
22
+ import "../chunk-UYDTFCHW.js";
23
23
  import {
24
24
  askUser,
25
25
  cancelQuestion,
26
26
  waitForAnswer
27
- } from "../chunk-LGXUGYUH.js";
28
- import "../chunk-NHTAHAIS.js";
29
- import "../chunk-TRLFZKVG.js";
30
- import "../chunk-EYRGBYZG.js";
27
+ } from "../chunk-PYCQXCI5.js";
28
+ import "../chunk-WOLPADR6.js";
29
+ import "../chunk-6IU45EHE.js";
30
+ import "../chunk-HETOKNIL.js";
31
31
  import "../chunk-SAF6HGAA.js";
32
32
  import "../chunk-7QLSKOSU.js";
33
33
  import "../chunk-KZERVKTD.js";
34
- import "../chunk-UM5J3J4V.js";
34
+ import "../chunk-HU5LSYL2.js";
35
35
  import "../chunk-T7E75EKA.js";
36
36
  import {
37
37
  getApiKey,
38
38
  getBaseUrl
39
- } from "../chunk-2UMNXADU.js";
39
+ } from "../chunk-OSJEMXSR.js";
40
40
  import {
41
41
  resolvePolicy
42
- } from "../chunk-SOUZBGYJ.js";
42
+ } from "../chunk-T4QY64OR.js";
43
+ import "../chunk-EA3IELHP.js";
44
+ import "../chunk-HWJW3CPO.js";
43
45
  export {
44
46
  askUser,
45
47
  cancelQuestion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushary/agent-hooks",
3
- "version": "1.4.2",
3
+ "version": "1.5.1",
4
4
  "description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
5
5
  "keywords": [
6
6
  "pushary",