@webpieces/ai-hook-rules 0.2.120 → 0.2.121

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 (2) hide show
  1. package/package.json +4 -5
  2. package/bin/postinstall.js +0 -18
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@webpieces/ai-hook-rules",
3
- "version": "0.2.120",
3
+ "version": "0.2.121",
4
4
  "description": "Pluggable write-time validation framework for AI coding agents (@webpieces/ai-hook-rules). Claude Code PreToolUse + openclaw before_tool_call adapters share one rule engine.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
7
- "scripts": {
8
- "postinstall": "node bin/postinstall.js"
7
+ "bin": {
8
+ "wp-setup-ai-hooks": "./src/bin/postinstall.js"
9
9
  },
10
10
  "exports": {
11
11
  ".": "./src/index.js",
@@ -16,7 +16,6 @@
16
16
  },
17
17
  "files": [
18
18
  "src/**/*",
19
- "bin/**/*",
20
19
  "templates/**/*",
21
20
  "openclaw.plugin.json",
22
21
  "README.md"
@@ -29,7 +28,7 @@
29
28
  "directory": "packages/tooling/ai-hook-rules"
30
29
  },
31
30
  "dependencies": {
32
- "@webpieces/rules-config": "0.2.120"
31
+ "@webpieces/rules-config": "0.2.121"
33
32
  },
34
33
  "publishConfig": {
35
34
  "access": "public"
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- // Thin shim that delegates to the compiled TypeScript postinstall.
3
- // This file must be plain JS because it runs during `pnpm install`
4
- // BEFORE any build step (especially in workspaces).
5
- //
6
- // In workspace: the compiled .js doesn't exist yet, so we silently exit.
7
- // In consumer: the compiled .js exists in the npm package, so we run it.
8
- 'use strict';
9
-
10
- const path = require('path');
11
- const fs = require('fs');
12
-
13
- const compiled = path.join(__dirname, '..', 'src', 'bin', 'postinstall.js');
14
- if (fs.existsSync(compiled)) {
15
- require(compiled).main().catch(function (err) {
16
- console.error(' [ai-hook-rules] postinstall warning:', err.message);
17
- });
18
- }