@pushary/agent-hooks 0.26.0 → 0.27.0

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.
@@ -80,7 +80,7 @@ declare const handlePostToolUse: (input: {
80
80
  cwd?: string;
81
81
  session_id?: string;
82
82
  transcript_path?: string;
83
- }, agent?: AgentIdentity) => Promise<void>;
83
+ }, agent?: AgentIdentity) => Promise<string | undefined>;
84
84
  interface StopHookOutput {
85
85
  readonly decision: 'block';
86
86
  readonly reason: string;
@@ -117,6 +117,12 @@ interface AskUserParams {
117
117
  interface AskUserResponse {
118
118
  correlationId: string;
119
119
  status: string;
120
+ delivery?: {
121
+ web: number;
122
+ mobile: number;
123
+ };
124
+ suppressed?: boolean;
125
+ noDevices?: boolean;
120
126
  }
121
127
  interface WaitForAnswerResponse {
122
128
  answered: boolean;
package/dist/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  handlePreToolUse
3
- } from "../chunk-SA4BDS7T.js";
3
+ } from "../chunk-VHD3GMZ3.js";
4
4
  import "../chunk-KQYIHZ5E.js";
5
5
  import {
6
6
  askUser,
@@ -14,8 +14,9 @@ import {
14
14
  reportEvent,
15
15
  resolvePolicy,
16
16
  waitForAnswer
17
- } from "../chunk-A7DQCA2N.js";
17
+ } from "../chunk-TUILTFLS.js";
18
18
  import "../chunk-DWED7BS3.js";
19
+ import "../chunk-FDR5WYT7.js";
19
20
  import {
20
21
  getApiKey,
21
22
  getBaseUrl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushary/agent-hooks",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
5
5
  "author": "Pushary <business@pushary.com>",
6
6
  "homepage": "https://pushary.com",
@@ -29,7 +29,8 @@
29
29
  "pushary-setup": "./dist/bin/pushary-setup.js",
30
30
  "pushary-clean": "./dist/bin/pushary-clean.js",
31
31
  "pushary-doctor": "./dist/bin/pushary-doctor.js",
32
- "pushary-mode": "./dist/bin/pushary-mode.js"
32
+ "pushary-mode": "./dist/bin/pushary-mode.js",
33
+ "pushary-wait": "./dist/bin/pushary-wait.js"
33
34
  },
34
35
  "files": [
35
36
  "dist",
@@ -38,7 +39,7 @@
38
39
  "scripts": {
39
40
  "build": "node scripts/bundle-plugin.mjs && tsup",
40
41
  "dev": "tsup --watch",
41
- "test": "bun test src/api.test.ts && bun test src/claude-config.test.ts && bun test src/config.test.ts && bun test src/mcp-http.test.ts && bun test src/retry.test.ts && bun test src/usage.test.ts && bun test src/validate.test.ts && bun test src/policy.test.ts && bun test src/npm.test.ts && bun test src/identity.test.ts && bun test src/pending.test.ts && bun test src/events.test.ts && bun test src/describe.test.ts && bun test src/suggestions.test.ts && bun test src/safe-commands.test.ts && bun test src/hook.test.ts && bun test src/codex-adapter.test.ts && bun test src/codex-config.test.ts && bun test src/gemini-adapter.test.ts && bun test src/gemini-config.test.ts && bun test src/instruction-file.test.ts && bun test src/pairing.test.ts"
42
+ "test": "bun test src/api.test.ts && bun test src/claude-config.test.ts && bun test src/config.test.ts && bun test src/mcp-http.test.ts && bun test src/retry.test.ts && bun test src/usage.test.ts && bun test src/validate.test.ts && bun test src/policy.test.ts && bun test src/npm.test.ts && bun test src/identity.test.ts && bun test src/pending.test.ts && bun test src/events.test.ts && bun test src/describe.test.ts && bun test src/suggestions.test.ts && bun test src/safe-commands.test.ts && bun test src/hook.test.ts && bun test src/codex-adapter.test.ts && bun test src/codex-config.test.ts && bun test src/gemini-adapter.test.ts && bun test src/gemini-config.test.ts && bun test src/instruction-file.test.ts && bun test src/pairing.test.ts && bun test src/wait-ladder.test.ts"
42
43
  },
43
44
  "dependencies": {
44
45
  "@inquirer/prompts": "^8.4.2",