@pushary/agent-hooks 1.9.1 → 1.9.2

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 (105) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
  3. package/data/cursor-plugin/CHANGELOG.md +4 -0
  4. package/data/cursor-plugin/scripts/pushary-gate.mjs +1 -1
  5. package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
  6. package/data/vscode-plugin/CHANGELOG.md +4 -0
  7. package/data/vscode-plugin/scripts/pushary-gate.mjs +1 -1
  8. package/dist/bin/pushary-bell-hook.js +23 -23
  9. package/dist/bin/pushary-bell.js +9 -9
  10. package/dist/bin/pushary-claude.js +26 -26
  11. package/dist/bin/pushary-clean.js +28 -28
  12. package/dist/bin/pushary-codex-bridge.js +18 -18
  13. package/dist/bin/pushary-codex-hook.js +31 -31
  14. package/dist/bin/pushary-codex.js +13 -13
  15. package/dist/bin/pushary-connect.js +13 -13
  16. package/dist/bin/pushary-cowork.js +5 -5
  17. package/dist/bin/pushary-daemon.js +26 -26
  18. package/dist/bin/pushary-disconnect.js +18 -18
  19. package/dist/bin/pushary-doctor.js +99 -48
  20. package/dist/bin/pushary-elicitation-hook.js +25 -25
  21. package/dist/bin/pushary-gemini-bridge.js +13 -13
  22. package/dist/bin/pushary-gemini-hook.js +28 -28
  23. package/dist/bin/pushary-hook.js +32 -32
  24. package/dist/bin/pushary-login.js +26 -23
  25. package/dist/bin/pushary-logout.js +7 -7
  26. package/dist/bin/pushary-mcp.js +9 -9
  27. package/dist/bin/pushary-mode.js +9 -9
  28. package/dist/bin/pushary-notification-hook.js +28 -28
  29. package/dist/bin/pushary-opencode-hook.js +27 -27
  30. package/dist/bin/pushary-permission-denied-hook.js +32 -32
  31. package/dist/bin/pushary-permission-hook.js +31 -31
  32. package/dist/bin/pushary-post-hook.js +28 -28
  33. package/dist/bin/pushary-prompt-hook.js +28 -28
  34. package/dist/bin/pushary-session-end-hook.js +28 -28
  35. package/dist/bin/pushary-session-start-hook.js +31 -31
  36. package/dist/bin/pushary-setup.js +69 -52
  37. package/dist/bin/pushary-stats.js +5 -5
  38. package/dist/bin/pushary-status.js +15 -15
  39. package/dist/bin/pushary-stop-hook.js +28 -28
  40. package/dist/bin/pushary-stopfailure-hook.js +28 -28
  41. package/dist/bin/pushary-suggestions.js +4 -4
  42. package/dist/bin/pushary-transcript-register.js +19 -19
  43. package/dist/bin/pushary-transcripts.js +7 -7
  44. package/dist/bin/pushary-upgrade.js +21 -21
  45. package/dist/bin/pushary-wait.js +9 -9
  46. package/dist/bin/pushary.js +6 -6
  47. package/dist/{chunk-AKCJ5SNO.js → chunk-2E4SRGYD.js} +17 -12
  48. package/dist/{chunk-LXWUYG7D.js → chunk-2XK6D4WL.js} +1 -1
  49. package/dist/{chunk-JCER3Q6P.js → chunk-35N53QLA.js} +10 -9
  50. package/dist/{chunk-J7JXA2LX.js → chunk-3O4EBTR3.js} +1 -1
  51. package/dist/{chunk-XW2B4QV2.js → chunk-4KMTRXNL.js} +2 -2
  52. package/dist/{chunk-QQJCDRD3.js → chunk-6S727YUV.js} +5 -5
  53. package/dist/{chunk-JGQ2ANHQ.js → chunk-73BH4SZY.js} +2 -2
  54. package/dist/{chunk-FVOCQSBG.js → chunk-ABIW72ST.js} +1 -1
  55. package/dist/{chunk-CGRPHFOV.js → chunk-AL4NHBZ6.js} +1 -1
  56. package/dist/{chunk-D3RS57MN.js → chunk-B6BLCHJW.js} +3 -3
  57. package/dist/{chunk-SKEP3M6M.js → chunk-BFVE3WPB.js} +2 -2
  58. package/dist/{chunk-UYHLMBPQ.js → chunk-BK3R5NRE.js} +1 -1
  59. package/dist/{chunk-HU2LWGEE.js → chunk-CEHDCHXK.js} +1 -1
  60. package/dist/{chunk-CE4UH4AP.js → chunk-COVPHB56.js} +7 -5
  61. package/dist/{chunk-7ER66HZH.js → chunk-CTYCABBH.js} +1 -1
  62. package/dist/{chunk-COSADFEH.js → chunk-DKDZXJHZ.js} +1 -1
  63. package/dist/chunk-EO23EUOK.js +14 -0
  64. package/dist/{chunk-NVLXK2I6.js → chunk-ESME4HN2.js} +5 -5
  65. package/dist/{chunk-5K43TBK4.js → chunk-EUNYNLDU.js} +3 -3
  66. package/dist/{chunk-6Q4NM2LW.js → chunk-FHLRRCUZ.js} +3 -3
  67. package/dist/{chunk-VQLWYKX7.js → chunk-FWQM6V7Z.js} +1 -1
  68. package/dist/{chunk-IITCMJ4G.js → chunk-HLNSTJND.js} +2 -2
  69. package/dist/{chunk-ZMKEKWNR.js → chunk-HZ57E6LS.js} +18 -5
  70. package/dist/{chunk-JHZAZAI3.js → chunk-HZYUDXIH.js} +5 -5
  71. package/dist/{chunk-UPTEPARD.js → chunk-IH5NZMN4.js} +2 -2
  72. package/dist/{chunk-LZMH4EGE.js → chunk-IVPVCCFT.js} +1 -1
  73. package/dist/{chunk-QXL27RY6.js → chunk-JXLANQLV.js} +1 -1
  74. package/dist/{chunk-65TOHCXT.js → chunk-KP45FGHD.js} +4 -4
  75. package/dist/{chunk-4SB46XLF.js → chunk-L52OIZXV.js} +1 -1
  76. package/dist/{chunk-P7YDVWLL.js → chunk-MZXXLIF6.js} +1 -1
  77. package/dist/{chunk-GHKNUQYU.js → chunk-N2ATGXI4.js} +2 -2
  78. package/dist/{chunk-WWDPULS3.js → chunk-PN3F7LOB.js} +8 -8
  79. package/dist/{chunk-LKKYRNJT.js → chunk-Q36G3P7I.js} +1 -1
  80. package/dist/{chunk-SWGY5WNX.js → chunk-QDCEEQUS.js} +5 -5
  81. package/dist/{chunk-RNDFGHSQ.js → chunk-RTKPR4UA.js} +1 -1
  82. package/dist/{chunk-LJI7U6PM.js → chunk-SFKU5DXZ.js} +2 -2
  83. package/dist/{chunk-KR5JASA4.js → chunk-SI327OZF.js} +44 -16
  84. package/dist/{chunk-FJPC35OW.js → chunk-U4DLXAGD.js} +1 -1
  85. package/dist/{chunk-6QSDNXGM.js → chunk-UBCTOE5X.js} +2 -2
  86. package/dist/{chunk-RS4ZOFSF.js → chunk-UBNJYMTG.js} +7 -6
  87. package/dist/{chunk-PMS3EBD2.js → chunk-UX2YSFKS.js} +1 -1
  88. package/dist/{chunk-6JTTJIKJ.js → chunk-V3P2VSX7.js} +3 -3
  89. package/dist/{chunk-IJXJW2VH.js → chunk-VMGLXL74.js} +10 -10
  90. package/dist/{chunk-PEGKBNGN.js → chunk-WCHFDVCC.js} +5 -5
  91. package/dist/{chunk-6L7TNZ43.js → chunk-WM2MEFCA.js} +1 -1
  92. package/dist/{chunk-VH6763OR.js → chunk-XOXW4D6P.js} +3 -3
  93. package/dist/{chunk-SPB3QRE7.js → chunk-XXSAGQAV.js} +4 -4
  94. package/dist/{chunk-C6PPDKVI.js → chunk-Y4AUVOR7.js} +3 -3
  95. package/dist/{chunk-DMA3QUOB.js → chunk-Y6DSV2OS.js} +3 -3
  96. package/dist/{chunk-4XT4JXMG.js → chunk-Y73RBCQD.js} +1 -1
  97. package/dist/{chunk-XEIV5QOT.js → chunk-ZFDGCEKO.js} +14 -1
  98. package/dist/{chunk-RJ7ECJSZ.js → chunk-ZNUNWWCN.js} +4 -2
  99. package/dist/{chunk-V4H33GBM.js → chunk-ZSOFZDLY.js} +6 -6
  100. package/dist/{global-upgrade-ML2RHV4W.js → global-upgrade-N24WINE7.js} +6 -6
  101. package/dist/{paths-LG3IEDDM.js → paths-53PCHAOJ.js} +2 -2
  102. package/dist/{reapply-7PFOITE4.js → reapply-2SU2ZHEK.js} +8 -8
  103. package/dist/src/index.js +20 -20
  104. package/dist/{upgrade-lock-2A2YUUEU.js → upgrade-lock-F6SM6IEZ.js} +3 -3
  105. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  activeHookSource,
3
3
  activeIdentity
4
- } from "./chunk-NVLXK2I6.js";
4
+ } from "./chunk-ESME4HN2.js";
5
5
  import {
6
6
  defersToNativeMode,
7
7
  reportMachineDenial
8
- } from "./chunk-GHKNUQYU.js";
8
+ } from "./chunk-N2ATGXI4.js";
9
9
  import {
10
10
  isGatingMoment,
11
11
  recordKeylessMoment
12
- } from "./chunk-P7YDVWLL.js";
12
+ } from "./chunk-MZXXLIF6.js";
13
13
  import {
14
14
  announceSubscriptionRequired,
15
15
  denyReasonFrom,
@@ -39,7 +39,7 @@ import {
39
39
  reportEvent,
40
40
  scopePathFor,
41
41
  settleQuestionsForToolUse
42
- } from "./chunk-JCER3Q6P.js";
42
+ } from "./chunk-35N53QLA.js";
43
43
  import {
44
44
  DEFAULT_SESSION
45
45
  } from "./chunk-N6IOSZOE.js";
@@ -55,20 +55,20 @@ import {
55
55
  requestGate,
56
56
  sendNotification,
57
57
  waitForQuestion
58
- } from "./chunk-JHZAZAI3.js";
58
+ } from "./chunk-HZYUDXIH.js";
59
59
  import {
60
60
  SubscriptionRequiredError
61
- } from "./chunk-VH6763OR.js";
61
+ } from "./chunk-XOXW4D6P.js";
62
62
  import {
63
63
  getMachineId
64
- } from "./chunk-J7JXA2LX.js";
64
+ } from "./chunk-3O4EBTR3.js";
65
65
  import {
66
66
  getApiKey,
67
67
  getBaseUrl
68
- } from "./chunk-4SB46XLF.js";
68
+ } from "./chunk-L52OIZXV.js";
69
69
  import {
70
70
  NPX_LATEST_COMMAND
71
- } from "./chunk-FVOCQSBG.js";
71
+ } from "./chunk-ABIW72ST.js";
72
72
  import {
73
73
  AGENT_QUESTION_STRATEGY,
74
74
  GATE_BLOCK_REASON_MAX_LENGTH,
@@ -96,7 +96,7 @@ import {
96
96
  parseAgentQuestions,
97
97
  resolveGate,
98
98
  stoppedOutput
99
- } from "./chunk-XEIV5QOT.js";
99
+ } from "./chunk-ZFDGCEKO.js";
100
100
 
101
101
  // src/claude-permission-rules.ts
102
102
  import { readFileSync, statSync } from "fs";
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-XHKBHWLX.js";
5
5
  import {
6
6
  readControlMode
7
- } from "./chunk-RJ7ECJSZ.js";
7
+ } from "./chunk-ZNUNWWCN.js";
8
8
  import {
9
9
  getMachineId
10
- } from "./chunk-J7JXA2LX.js";
10
+ } from "./chunk-3O4EBTR3.js";
11
11
  import {
12
12
  pusharyDir,
13
13
  resolveGlobalBinary
14
- } from "./chunk-ZMKEKWNR.js";
14
+ } from "./chunk-HZ57E6LS.js";
15
15
  import {
16
16
  readJsonSafe,
17
17
  writeFileAtomic,
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-T7E75EKA.js";
21
21
  import {
22
22
  getApiKey
23
- } from "./chunk-4SB46XLF.js";
23
+ } from "./chunk-L52OIZXV.js";
24
24
  import {
25
25
  CLI_PACKAGE_NAMES,
26
26
  cmdShimTarget,
27
27
  getPackageVersion,
28
28
  globalPackageFolder,
29
29
  globalRootFor
30
- } from "./chunk-XEIV5QOT.js";
30
+ } from "./chunk-ZFDGCEKO.js";
31
31
 
32
32
  // src/daemon-lifecycle.ts
33
33
  import { dirname, join, win32 as win32Path } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-ZMKEKWNR.js";
3
+ } from "./chunk-HZ57E6LS.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-T7E75EKA.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  keyCheckFromResponse
3
- } from "./chunk-DMA3QUOB.js";
3
+ } from "./chunk-Y6DSV2OS.js";
4
4
  import {
5
5
  installNetworkDefaults
6
- } from "./chunk-6JTTJIKJ.js";
6
+ } from "./chunk-V3P2VSX7.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-4SB46XLF.js";
9
+ } from "./chunk-L52OIZXV.js";
10
10
 
11
11
  // src/retry.ts
12
12
  var isRetryable = (err) => {
@@ -4,18 +4,18 @@ import {
4
4
  } from "./chunk-POFBE6ZY.js";
5
5
  import {
6
6
  isNetworkFailure
7
- } from "./chunk-6JTTJIKJ.js";
7
+ } from "./chunk-V3P2VSX7.js";
8
8
  import {
9
9
  clientReportClaims
10
- } from "./chunk-ZMKEKWNR.js";
10
+ } from "./chunk-HZ57E6LS.js";
11
11
  import {
12
12
  getApiKey,
13
13
  getBaseUrl
14
- } from "./chunk-4SB46XLF.js";
14
+ } from "./chunk-L52OIZXV.js";
15
15
  import {
16
16
  CLIENT_REPORT_PATH,
17
17
  degradedLine
18
- } from "./chunk-XEIV5QOT.js";
18
+ } from "./chunk-ZFDGCEKO.js";
19
19
 
20
20
  // src/client-report-claim.ts
21
21
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-HU2LWGEE.js";
3
+ } from "./chunk-CEHDCHXK.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-GMXKITVA.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7QLSKOSU.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-FVOCQSBG.js";
12
+ } from "./chunk-ABIW72ST.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-XEIV5QOT.js";
20
+ } from "./chunk-ZFDGCEKO.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-6JTTJIKJ.js";
3
+ } from "./chunk-V3P2VSX7.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-7QLSKOSU.js";
@@ -9,11 +9,11 @@ import {
9
9
  } from "./chunk-KZERVKTD.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-4SB46XLF.js";
12
+ } from "./chunk-L52OIZXV.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-XEIV5QOT.js";
16
+ } from "./chunk-ZFDGCEKO.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-RJ7ECJSZ.js";
3
+ } from "./chunk-ZNUNWWCN.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1822,6 +1822,16 @@ var SETTLED_OUTCOME = {
1822
1822
  deny: "deny"
1823
1823
  };
1824
1824
  var isSettledOutcome = (value) => typeof value === "string" && SETTLED_OUTCOMES.includes(value);
1825
+ var APPROVE_RESPONSES = /* @__PURE__ */ new Set(["yes", "approve", "approved"]);
1826
+ var DENY_RESPONSES = /* @__PURE__ */ new Set(["no", "deny", "denied", "reject", "rejected"]);
1827
+ var DEFER_RESPONSES = /* @__PURE__ */ new Set(["defer"]);
1828
+ var classifyConfirmResponse = (response) => {
1829
+ const normalized = (response ?? "").trim().toLowerCase();
1830
+ if (APPROVE_RESPONSES.has(normalized)) return "approve";
1831
+ if (DENY_RESPONSES.has(normalized)) return "deny";
1832
+ if (DEFER_RESPONSES.has(normalized)) return "defer";
1833
+ return null;
1834
+ };
1825
1835
  var commandTextThatCanAct = (command) => {
1826
1836
  const visible = shellVisibleText(command);
1827
1837
  return visible === null ? command : segmentsSplitWhereVisible(command, visible, PIPELINE_CHAIN_SEPARATOR).filter((pipeline) => !isSafeReadOnlyCommand(pipeline)).join("\n");
@@ -2607,10 +2617,11 @@ var elicitationContentFromAnswers = (ask, answers) => {
2607
2617
  // ../contracts/src/hook-activation.ts
2608
2618
  var hookWritePath = (toolName, input) => toolName === "Write" && typeof input.file_path === "string" && input.file_path.startsWith("/") && input.file_path.length <= 4096 ? input.file_path : void 0;
2609
2619
  var HOOK_ACTIVATION_RESULTS = ["unverified", "approved_executed", "denied_observed", "unexpected_execution", "tool_failed"];
2620
+ var MAX_HOOK_ACTIVATION_EVIDENCE_ROWS = 20;
2610
2621
  var isHookActivationReport = (value) => {
2611
2622
  if (!value || typeof value !== "object") return false;
2612
2623
  const report = value;
2613
- return typeof report.agentType === "string" && typeof report.machineId === "string" && typeof report.target === "string" && report.target.length > 0 && report.target.length <= 4096 && typeof report.truncated === "boolean" && Array.isArray(report.evidence) && report.evidence.length <= 20 && (!report.truncated || report.evidence.length === 0) && report.evidence.every((item) => {
2624
+ return typeof report.agentType === "string" && typeof report.machineId === "string" && typeof report.target === "string" && report.target.length > 0 && report.target.length <= 4096 && typeof report.truncated === "boolean" && Array.isArray(report.evidence) && report.evidence.length <= MAX_HOOK_ACTIVATION_EVIDENCE_ROWS && (!report.truncated || report.evidence.length === 0) && report.evidence.every((item) => {
2614
2625
  if (!item || typeof item !== "object") return false;
2615
2626
  const row = item;
2616
2627
  return ["correlationId", "sessionId", "toolUseId", "toolName", "createdAt"].every((key) => typeof row[key] === "string" && row[key].length > 0 && row[key].length <= 256) && (row.answerSource === null || isAnswerSource(row.answerSource)) && HOOK_ACTIVATION_RESULTS.includes(row.result) && Number.isFinite(Date.parse(row.createdAt)) && (row.occurredAt === null || typeof row.occurredAt === "string" && Number.isFinite(Date.parse(row.occurredAt))) && (row.observedAt === null || typeof row.observedAt === "string" && Number.isFinite(Date.parse(row.observedAt))) && (row.result === "unverified" || row.occurredAt !== null && row.observedAt !== null && row.producer !== null && isAnswerSource(row.answerSource) && row.answerSource !== "sandbox") && (row.producer === null || row.producer === "hook" || row.producer === "uplink");
@@ -2790,6 +2801,7 @@ export {
2790
2801
  redactSecretsDeep,
2791
2802
  degradedLine,
2792
2803
  hookWritePath,
2804
+ MAX_HOOK_ACTIVATION_EVIDENCE_ROWS,
2793
2805
  isHookActivationReport,
2794
2806
  hookActivationResult,
2795
2807
  PAIR_TTL_SECONDS,
@@ -2832,6 +2844,7 @@ export {
2832
2844
  ASK_AGENT_NAME_MAX,
2833
2845
  truncateLine,
2834
2846
  isAnswerSource,
2847
+ classifyConfirmResponse,
2835
2848
  buildDecisionEpisodeFeatures,
2836
2849
  resolveAutoResolveOrigin,
2837
2850
  resolvePolicy,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-6QSDNXGM.js";
3
+ } from "./chunk-UBCTOE5X.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-4SB46XLF.js";
12
+ } from "./chunk-L52OIZXV.js";
13
13
 
14
14
  // src/shell-alias.ts
15
15
  import { homedir } from "os";
@@ -110,6 +110,7 @@ var isDisabledExport = (line) => {
110
110
  return OUR_EXPORT.test(trimmed.slice(1, -LOGOUT_MARK.length).trim());
111
111
  };
112
112
  var keyPrefix = (key) => key.split(".")[0] ?? key;
113
+ var manualKeyStepFor = (kind, platform) => kind === "no-rc" || platform === "win32" ? "config-only" : "paste-export";
113
114
  var rcResult = (kind, over = {}) => ({
114
115
  kind,
115
116
  path: null,
@@ -298,6 +299,7 @@ export {
298
299
  exportLine,
299
300
  isDisabledExport,
300
301
  keyPrefix,
302
+ manualKeyStepFor,
301
303
  writeKey,
302
304
  clearKey,
303
305
  readConfigFileKey,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  MCP_BRIDGE_BINARY
3
- } from "./chunk-LJI7U6PM.js";
3
+ } from "./chunk-SFKU5DXZ.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-CGRPHFOV.js";
6
+ } from "./chunk-AL4NHBZ6.js";
7
7
  import {
8
8
  KEY_FILE_MODE
9
- } from "./chunk-RJ7ECJSZ.js";
9
+ } from "./chunk-ZNUNWWCN.js";
10
10
  import {
11
11
  NpmMissingError,
12
12
  codexHomeFrom,
13
13
  resolvePathBinary
14
- } from "./chunk-ZMKEKWNR.js";
14
+ } from "./chunk-HZ57E6LS.js";
15
15
  import {
16
16
  readJsonSafe,
17
17
  writeFileAtomic,
@@ -19,10 +19,10 @@ import {
19
19
  } from "./chunk-T7E75EKA.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-FVOCQSBG.js";
22
+ } from "./chunk-ABIW72ST.js";
23
23
  import {
24
24
  HOOK_COMPATIBLE_PROFILES
25
- } from "./chunk-XEIV5QOT.js";
25
+ } from "./chunk-ZFDGCEKO.js";
26
26
 
27
27
  // src/hermes-config.ts
28
28
  import { execFileSync } from "child_process";
@@ -5,15 +5,15 @@ import {
5
5
  readGlobalUpgradeSubject,
6
6
  upgradeInstalledPackage,
7
7
  withUpgradeLock
8
- } from "./chunk-QQJCDRD3.js";
9
- import "./chunk-QXL27RY6.js";
10
- import "./chunk-CE4UH4AP.js";
8
+ } from "./chunk-6S727YUV.js";
9
+ import "./chunk-JXLANQLV.js";
10
+ import "./chunk-COVPHB56.js";
11
11
  import "./chunk-POFBE6ZY.js";
12
12
  import "./chunk-KZERVKTD.js";
13
- import "./chunk-ZMKEKWNR.js";
13
+ import "./chunk-HZ57E6LS.js";
14
14
  import "./chunk-T7E75EKA.js";
15
- import "./chunk-FVOCQSBG.js";
16
- import "./chunk-XEIV5QOT.js";
15
+ import "./chunk-ABIW72ST.js";
16
+ import "./chunk-ZFDGCEKO.js";
17
17
  export {
18
18
  finishGlobalUpgrade,
19
19
  finishUpgradeWithLock,
@@ -32,8 +32,8 @@ import {
32
32
  pusharyDir,
33
33
  vscodePluginDir,
34
34
  vscodePluginMcp
35
- } from "./chunk-ZMKEKWNR.js";
36
- import "./chunk-XEIV5QOT.js";
35
+ } from "./chunk-HZ57E6LS.js";
36
+ import "./chunk-ZFDGCEKO.js";
37
37
  export {
38
38
  autoUpdateLock,
39
39
  autoUpdateLog,
@@ -9,18 +9,18 @@ import {
9
9
  reapplyGeminiSettings,
10
10
  reapplyVsCodePlugin,
11
11
  repairCodexHolds
12
- } from "./chunk-SWGY5WNX.js";
13
- import "./chunk-KR5JASA4.js";
14
- import "./chunk-6Q4NM2LW.js";
12
+ } from "./chunk-QDCEEQUS.js";
13
+ import "./chunk-SI327OZF.js";
14
+ import "./chunk-FHLRRCUZ.js";
15
15
  import "./chunk-RIVNNBEK.js";
16
- import "./chunk-5K43TBK4.js";
17
- import "./chunk-D3RS57MN.js";
16
+ import "./chunk-EUNYNLDU.js";
17
+ import "./chunk-B6BLCHJW.js";
18
18
  import "./chunk-XHKBHWLX.js";
19
19
  import "./chunk-6ICPEJY5.js";
20
- import "./chunk-RNDFGHSQ.js";
21
- import "./chunk-ZMKEKWNR.js";
20
+ import "./chunk-RTKPR4UA.js";
21
+ import "./chunk-HZ57E6LS.js";
22
22
  import "./chunk-T7E75EKA.js";
23
- import "./chunk-XEIV5QOT.js";
23
+ import "./chunk-ZFDGCEKO.js";
24
24
  export {
25
25
  ensureCodexTrustAfterReapply,
26
26
  inspectConfiguredManagedProviders,
package/dist/src/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  handlePreToolUse
3
- } from "../chunk-IJXJW2VH.js";
4
- import "../chunk-NVLXK2I6.js";
5
- import "../chunk-6Q4NM2LW.js";
6
- import "../chunk-GHKNUQYU.js";
7
- import "../chunk-P7YDVWLL.js";
3
+ } from "../chunk-VMGLXL74.js";
4
+ import "../chunk-ESME4HN2.js";
5
+ import "../chunk-FHLRRCUZ.js";
6
+ import "../chunk-N2ATGXI4.js";
7
+ import "../chunk-MZXXLIF6.js";
8
8
  import "../chunk-5OP5MQI7.js";
9
- import "../chunk-D3RS57MN.js";
9
+ import "../chunk-B6BLCHJW.js";
10
10
  import {
11
11
  fetchAccountPublicKey
12
- } from "../chunk-PMS3EBD2.js";
12
+ } from "../chunk-UX2YSFKS.js";
13
13
  import "../chunk-6ICPEJY5.js";
14
14
  import {
15
15
  fetchModeOverride,
@@ -19,33 +19,33 @@ import {
19
19
  handlePostToolUse,
20
20
  handleStop,
21
21
  reportEvent
22
- } from "../chunk-JCER3Q6P.js";
22
+ } from "../chunk-35N53QLA.js";
23
23
  import "../chunk-N6IOSZOE.js";
24
- import "../chunk-RNDFGHSQ.js";
24
+ import "../chunk-RTKPR4UA.js";
25
25
  import {
26
26
  askUser,
27
27
  cancelQuestion,
28
28
  waitForAnswer
29
- } from "../chunk-JHZAZAI3.js";
30
- import "../chunk-SPB3QRE7.js";
29
+ } from "../chunk-HZYUDXIH.js";
30
+ import "../chunk-XXSAGQAV.js";
31
31
  import "../chunk-POFBE6ZY.js";
32
- import "../chunk-VH6763OR.js";
33
- import "../chunk-DMA3QUOB.js";
34
- import "../chunk-6JTTJIKJ.js";
35
- import "../chunk-J7JXA2LX.js";
32
+ import "../chunk-XOXW4D6P.js";
33
+ import "../chunk-Y6DSV2OS.js";
34
+ import "../chunk-V3P2VSX7.js";
35
+ import "../chunk-3O4EBTR3.js";
36
36
  import "../chunk-7QLSKOSU.js";
37
37
  import "../chunk-KZERVKTD.js";
38
- import "../chunk-6QSDNXGM.js";
39
- import "../chunk-ZMKEKWNR.js";
38
+ import "../chunk-UBCTOE5X.js";
39
+ import "../chunk-HZ57E6LS.js";
40
40
  import "../chunk-T7E75EKA.js";
41
41
  import {
42
42
  getApiKey,
43
43
  getBaseUrl
44
- } from "../chunk-4SB46XLF.js";
45
- import "../chunk-FVOCQSBG.js";
44
+ } from "../chunk-L52OIZXV.js";
45
+ import "../chunk-ABIW72ST.js";
46
46
  import {
47
47
  resolvePolicy
48
- } from "../chunk-XEIV5QOT.js";
48
+ } from "../chunk-ZFDGCEKO.js";
49
49
  export {
50
50
  askUser,
51
51
  cancelQuestion,
@@ -4,10 +4,10 @@ import {
4
4
  installWithUpgradeLock,
5
5
  ownsUpgradeLock,
6
6
  releaseAutoUpdateLock
7
- } from "./chunk-QXL27RY6.js";
8
- import "./chunk-ZMKEKWNR.js";
7
+ } from "./chunk-JXLANQLV.js";
8
+ import "./chunk-HZ57E6LS.js";
9
9
  import "./chunk-T7E75EKA.js";
10
- import "./chunk-XEIV5QOT.js";
10
+ import "./chunk-ZFDGCEKO.js";
11
11
  export {
12
12
  claimUpgradeLock,
13
13
  finishWithUpgradeLock,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushary/agent-hooks",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
5
5
  "keywords": [
6
6
  "pushary",