@pushary/agent-hooks 0.2.0 → 0.2.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.
- package/dist/bin/pushary.d.ts +1 -0
- package/dist/bin/pushary.js +21 -0
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// bin/pushary.ts
|
|
4
|
+
var command = process.argv[2];
|
|
5
|
+
if (command === "setup") {
|
|
6
|
+
await import("./pushary-setup.js");
|
|
7
|
+
} else if (command === "hook") {
|
|
8
|
+
await import("./pushary-hook.js");
|
|
9
|
+
} else {
|
|
10
|
+
console.log(`
|
|
11
|
+
Pushary Agent Hooks
|
|
12
|
+
|
|
13
|
+
Commands:
|
|
14
|
+
setup Configure Claude Code or Cursor with Pushary
|
|
15
|
+
hook Run as a PreToolUse hook (reads stdin, writes stdout)
|
|
16
|
+
|
|
17
|
+
Usage:
|
|
18
|
+
npx pushary setup
|
|
19
|
+
npx pushary hook
|
|
20
|
+
`);
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushary/agent-hooks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"main": "./dist/src/index.js",
|
|
15
15
|
"types": "./dist/src/index.d.ts",
|
|
16
16
|
"bin": {
|
|
17
|
+
"agent-hooks": "./dist/bin/pushary.js",
|
|
18
|
+
"pushary": "./dist/bin/pushary.js",
|
|
17
19
|
"pushary-hook": "./dist/bin/pushary-hook.js",
|
|
18
20
|
"pushary-setup": "./dist/bin/pushary-setup.js"
|
|
19
21
|
},
|
|
@@ -21,8 +23,8 @@
|
|
|
21
23
|
"dist"
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
|
-
"build": "tsup src/index.ts bin/pushary-hook.ts bin/pushary-setup.ts --format esm --dts --outDir dist",
|
|
25
|
-
"dev": "tsup src/index.ts bin/pushary-hook.ts bin/pushary-setup.ts --format esm --watch"
|
|
26
|
+
"build": "tsup src/index.ts bin/pushary.ts bin/pushary-hook.ts bin/pushary-setup.ts --format esm --dts --outDir dist",
|
|
27
|
+
"dev": "tsup src/index.ts bin/pushary.ts bin/pushary-hook.ts bin/pushary-setup.ts --format esm --watch"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"tsup": "^8.0.0",
|