{
  "name": "pi-ast-sgrep",
  "version": "2.5.4",
  "description": "Native Code Mode, structural, graph, and semantic code search for Pi",
  "type": "module",
  "license": "MIT",
  "author": "AdityaVG13",
  "keywords": [
    "pi-package",
    "ast",
    "code-mode",
    "code-search",
    "developer-tools",
    "structural-search",
    "semantic-search"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/AdityaVG13/ast-sgrep.git",
    "directory": "packages/pi/extension"
  },
  "homepage": "https://github.com/AdityaVG13/ast-sgrep/tree/main/packages/pi/extension#readme",
  "bugs": {
    "url": "https://github.com/AdityaVG13/ast-sgrep/issues"
  },
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "native",
    "assets",
    "LICENSE"
  ],
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./runtime": {
      "types": "./dist/runtime/runtime.d.ts",
      "import": "./dist/runtime/runtime.js"
    },
    "./code-mode": {
      "types": "./dist/code-mode.d.ts",
      "import": "./dist/code-mode.js"
    }
  },
  "pi": {
    "extensions": [
      "./dist/index.js"
    ],
    "image": "./assets/preview.png"
  },
  "scripts": {
    "build": "tsc -p tsconfig.json && node scripts/copy-guest-worker.mjs",
    "build:native": "cargo build -p ast-sgrep-codemode-napi --release && node ./scripts/copy-native.mjs",
    "test": "ASGREP_CODEMODE_BACKEND=cli node --import tsx --test ../../../tests/pi/extension/code-mode.test.ts ../../../tests/pi/extension/codemode.test.ts ../../../tests/pi/extension/codemode-fallback.test.ts ../../../tests/pi/extension/commands.test.ts ../../../tests/pi/extension/present.test.ts ../../../tests/pi/extension/runtime.test.ts ../../../tests/pi/extension/security.test.ts ../../../tests/pi/extension/session-pool.test.ts ../../../tests/pi/extension/skill-workflow.test.ts ../../../tests/pi/extension/sqlite.test.ts ../../../tests/pi/extension/../../../tests/pi/extension/token-budget.test.ts ../../../tests/pi/extension/tools.test.ts",
    "test:native": "node --import tsx --test ../../../tests/pi/extension/native-inprocess.test.ts",
    "test:all": "npm test && npm run test:native",
    "prepack": "npm run build",
    "bench:p100": "node scripts/p100-bench.mjs"
  },
  "engines": {
    "node": ">=22.19.0"
  },
  "dependencies": {
    "ast-sgrep": ">=2.5.4 <3",
    "typebox": "^1.0.0"
  },
  "peerDependencies": {
    "@earendil-works/pi-coding-agent": ">=0.80.6 <1"
  },
  "peerDependenciesMeta": {
    "@earendil-works/pi-coding-agent": {
      "optional": true
    }
  },
  "devDependencies": {
    "@earendil-works/pi-coding-agent": "^0.84.1",
    "@types/node": "^22.15.0",
    "tsx": "^4.20.0",
    "typescript": "^5.8.0"
  }
}
