@pushary/agent-hooks 0.93.1 → 0.94.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.94.0
4
+
5
+ - Align Node compatibility with setup dependencies; unsupported runtimes receive an upgrade message before a command loads.
6
+
3
7
  ## 0.93.1
4
8
 
5
9
  - Attach stable usage report IDs and preserve the report timestamp across retries so the server counts a replay once.
@@ -15,6 +15,12 @@ import {
15
15
  EXIT
16
16
  } from "../chunk-KZERVKTD.js";
17
17
 
18
+ // src/cli/runtime.ts
19
+ var supportsRuntime = (version) => {
20
+ const [major, minor] = version.split(".").map(Number);
21
+ return major >= 24 || major === 23 && minor >= 5 || major === 22 && minor >= 13 || major === 20 && minor >= 17;
22
+ };
23
+
18
24
  // bin/pushary.ts
19
25
  var LOADERS = {
20
26
  setup: () => import("./pushary-setup.js"),
@@ -36,6 +42,10 @@ var LOADERS = {
36
42
  hook: () => import("./pushary-hook.js"),
37
43
  transcripts: () => import("./pushary-transcripts.js")
38
44
  };
45
+ if (!supportsRuntime(process.versions.node)) {
46
+ process.stderr.write("Pushary requires Node 20.17+, 22.13+, or 23.5+. Upgrade to a current Node LTS and retry.\n");
47
+ process.exit(EXIT.USAGE);
48
+ }
39
49
  installProxyDispatcher();
40
50
  var argv = process.argv.slice(2);
41
51
  var command = argv[0] ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushary/agent-hooks",
3
- "version": "0.93.1",
3
+ "version": "0.94.0",
4
4
  "description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
5
5
  "keywords": [
6
6
  "pushary",
@@ -31,7 +31,7 @@
31
31
  "license": "MIT",
32
32
  "type": "module",
33
33
  "engines": {
34
- "node": ">=20.3.0"
34
+ "node": "^20.17.0 || ^22.13.0 || >=23.5.0"
35
35
  },
36
36
  "main": "./dist/src/index.js",
37
37
  "types": "./dist/src/index.d.ts",