{
  "name": "pi-ast-guard",
  "version": "1.3.2",
  "description": "基于 AST 的 Pi 代理安全防护扩展 — 解析 Bash 命令，拦截危险操作（继承自 pi-damage-control）",
  "keywords": [
    "pi-package",
    "pi",
    "pi-coding-agent",
    "pi-ast-guard",
    "damage-control",
    "bash",
    "safety"
  ],
  "type": "module",
  "license": "MIT",
  "author": "rainmanhhh",
  "homepage": "https://gitee.com/dsxbygzzl/pi-ast-guard",
  "bugs": {
    "url": "https://gitee.com/dsxbygzzl/pi-ast-guard/issues"
  },
  "repository": {
    "type": "git",
    "url": "https://gitee.com/dsxbygzzl/pi-ast-guard.git"
  },
  "main": "./src/index.ts",
  "exports": {
    ".": "./src/index.ts"
  },
  "files": [
    "src",
    "config",
    "docs",
    "README.md",
    "LICENSE"
  ],
  "sideEffects": false,
  "engines": {
    "node": ">=22"
  },
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org"
  },
  "dependencies": {
    "ast-guard-core": "^0.1.1",
    "yaml": "^2.8.4"
  },
  "devDependencies": {
    "@biomejs/biome": "2.4.14",
    "@earendil-works/pi-agent-core": "^0.83.0",
    "@earendil-works/pi-ai": "^0.83.0",
    "@earendil-works/pi-coding-agent": "^0.83.0",
    "@release-it/conventional-changelog": "^11.0.0",
    "@types/node": "^25.6.2",
    "@vitest/coverage-v8": "^4.1.5",
    "jscpd": "^4.0.9",
    "knip": "^6.12.1",
    "mitata": "^1.0.34",
    "release-it": "^20.0.1",
    "ts-json-schema-generator": "^2.9.0",
    "typebox": "^1.1.38",
    "typescript": "^7.0.2",
    "ultracite": "7.6.4",
    "vitest": "^4.1.5"
  },
  "peerDependencies": {
    "@earendil-works/pi-agent-core": "*",
    "@earendil-works/pi-ai": "*",
    "@earendil-works/pi-coding-agent": "*",
    "typebox": "*"
  },
  "pi": {
    "extensions": [
      "./src/index.ts"
    ]
  },
  "knip": {
    "ignoreDependencies": [
      "@biomejs/biome",
      "@earendil-works/pi-agent-core",
      "@earendil-works/pi-ai",
      "@release-it/conventional-changelog",
      "typebox"
    ]
  },
  "scripts": {
    "typecheck": "tsc --noEmit",
    "test": "vitest run",
    "test:watch": "vitest",
    "check": "tsc --noEmit && ultracite check && bun run knip && bun run jscpd && bun run test",
    "lint": "ultracite check",
    "fix": "ultracite fix",
    "bench": "bun bench/ast-guard.bench.ts",
    "schema": "ts-json-schema-generator --path config/policy-schema.d.ts --type DamageControlPolicyConfig --tsconfig tsconfig.json -o config/ast-guard.schema.json --no-top-ref",
    "pack:dry": "bun pm pack --dry-run",
    "knip": "knip --reporter compact",
    "jscpd": "jscpd src tests config --min-lines 12",
    "release": "release-it"
  }
}