{
  "name": "@sofagent/audit",
  "version": "1.4.0",
  "description": "sofagent 提交时审计——扫描 git diff，检查 Agent 是否遵守工作纪律",
  "main": "dist/index.js",
  "types": "dist/public-api.d.ts",
  "exports": {
    ".": {
      "types": "./dist/public-api.d.ts",
      "default": "./dist/public-api.js"
    }
  },
  "bin": {
    "sofagent-audit": "dist/cli-quick.js",
    "sofagent-audit-full": "dist/index.js"
  },
  "scripts": {
    "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
    "build": "npm run clean && tsc && npm run copy-assets",
    "postbuild": "node -e \"const fs=require('fs');for(const b of ['dist/cli-quick.js','dist/index.js']){try{fs.chmodSync(require('path').join(__dirname,b),0o755)}catch(e){}}\"",
    "copy-assets": "cp -r src/rulesets dist/rulesets 2>/dev/null || true",
    "prepublishOnly": "npm run build && find dist -name '*.js.map' -delete && find dist -name '*.d.ts.map' -delete",
    "start": "node dist/index.js",
    "test": "vitest run",
    "check": "tsc --noEmit"
  },
  "keywords": [
    "sofagent",
    "audit",
    "git",
    "agent",
    "discipline",
    "mcp",
    "model-context-protocol"
  ],
  "license": "MIT",
  "author": "KongFangXun",
  "repository": {
    "type": "git",
    "url": "https://github.com/KongFangXun/sofagent"
  },
  "bugs": {
    "url": "https://github.com/KongFangXun/sofagent/issues"
  },
  "homepage": "https://github.com/KongFangXun/sofagent#readme",
  "devDependencies": {
    "@types/js-yaml": "^4.0.9",
    "@types/node": "^20.0.0",
    "@types/archiver": "^8.0.0",
    "typescript": "^7.0.2",
    "vitest": "^4.1.10"
  },
  "engines": {
    "node": ">=18"
  },
  "files": [
    "dist/",
    "!dist/**/*.js.map",
    "!dist/**/*.d.ts.map",
    "!dist/**/*.test.*",
    "hooks/",
    "README.md"
  ],
  "dependencies": {
    "js-yaml": "^5.3.0",
    "@sofagent/ontology": "1.4.0",
    "@sofagent/core": "1.4.0",
    "@sofagent/rules": "1.4.0",
    "archiver": "^8.0.0"
  }
}
