@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.
- package/data/cursor-plugin/scripts/pushary-gate.mjs +21 -1
- package/dist/bin/pushary-clean.js +3 -2
- package/dist/bin/pushary-codex-hook.js +37 -12
- package/dist/bin/pushary-codex.js +2 -1
- package/dist/bin/pushary-doctor.js +32 -2
- package/dist/bin/pushary-gemini-hook.js +36 -11
- package/dist/bin/pushary-hook.js +3 -2
- package/dist/bin/pushary-mode.js +5 -3
- package/dist/bin/pushary-post-hook.js +8 -2
- package/dist/bin/pushary-prompt-hook.js +8 -2
- package/dist/bin/pushary-setup.js +6 -4
- package/dist/bin/pushary-stop-hook.js +2 -1
- package/dist/bin/pushary-wait.d.ts +1 -0
- package/dist/bin/pushary-wait.js +86 -0
- package/dist/bin/pushary.js +4 -0
- package/dist/chunk-FDR5WYT7.js +208 -0
- package/dist/chunk-IIENZE2J.js +15 -0
- package/dist/{chunk-5MA3CPZB.js → chunk-MVNOP5IZ.js} +5 -1
- package/dist/{chunk-A7DQCA2N.js → chunk-TUILTFLS.js} +74 -184
- package/dist/{chunk-SA4BDS7T.js → chunk-VHD3GMZ3.js} +40 -3
- package/dist/{chunk-SLX4AONG.js → chunk-WXWHRXDK.js} +7 -3
- package/dist/src/index.d.ts +7 -1
- package/dist/src/index.js +3 -2
- package/package.json +4 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -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<
|
|
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-
|
|
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-
|
|
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.
|
|
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",
|