@yayaluoya-claude-plugins/auto-allow-bash-plugin 0.1.6 → 0.1.8
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/hooks/hooks.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yayaluoya-claude-plugins/auto-allow-bash-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "自动放行只读 Bash 命令 — 本地正则 + LLM 双重判定",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -8,14 +8,8 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/yayaluoya/yayaluoya-claude-plugins.git"
|
|
10
10
|
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@yayaluoya-claude-plugins/shared": "^0.1.6"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"esbuild": "^0.28.0"
|
|
16
|
-
},
|
|
17
11
|
"scripts": {
|
|
18
|
-
"build": "esbuild src/bin/auto-allow-bash.js --bundle --platform=node --format=esm --outfile=dist/auto-allow-bash.
|
|
12
|
+
"build": "esbuild src/bin/auto-allow-bash.js --bundle --platform=node --format=esm --outfile=dist/auto-allow-bash.mjs",
|
|
19
13
|
"test": "node --test test/auto-allow-bash.test.js",
|
|
20
14
|
"typecheck": "tsc -p tsconfig.json"
|
|
21
15
|
}
|
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
|
|
7
7
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
const DIST = path.resolve(__dirname, '../dist/auto-allow-bash.
|
|
8
|
+
const DIST = path.resolve(__dirname, '../dist/auto-allow-bash.mjs');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 模拟 Claude Code 调用 hook:把 JSON 写入 stdin,收集 stdout 输出。
|
|
File without changes
|