build(packages): prepare both packages for standalone npm publishing

- unify dependency strategy: @gotgenes/pi-permission-system moves from
  dependencies+bundledDependencies (inner-cmd) to peerDependencies in both
  packages, so git/npm consumption share a single service instance
- add description/license/author/repository(directory)/publishConfig/files
- copy GPL-3.0 LICENSE into both packages, add inner-cmd README
- ai-judge: ship models-catalog.json; exclude test/tools/reports from tarball
- README install sections now show npm source (prereq aligned to >=32)
This commit is contained in:
2026-09-17 15:47:14 +08:00
parent 7e94452fe4
commit ff947425eb
7 changed files with 1430 additions and 12 deletions
@@ -1,11 +1,28 @@
{
"name": "@sikongjueluo/pi-permission-ai-judge",
"version": "0.0.1",
"description": "pi extension: AI judge for pending Bash permission prompts — allow / deny / defer verdicts in shadow or enforce mode",
"type": "module",
"license": "GPL-3.0-only",
"author": "SikongJueluo",
"repository": {
"type": "git",
"url": "git+https://github.com/SikongJueluo/pi-extensions.git",
"directory": "packages/pi-permission-ai-judge"
},
"keywords": [
"pi-package",
"pi-extension"
],
"files": [
"src",
"models-catalog.json",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"pi": {
"extensions": [
"./src/index.ts"