{
  "name": "@hasna/hooks",
  "version": "0.3.7",
  "description": "Open source hooks library for AI coding agents - Install safety, quality, and automation hooks with a single command",
  "type": "module",
  "bin": {
    "hooks": "bin/index.js"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./storage": {
      "types": "./dist/storage.d.ts",
      "import": "./dist/storage.js"
    }
  },
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "scripts": {
    "build": "rm -rf dist && bun build ./src/cli/index.tsx --outdir ./bin --target bun --external pg --external ink --external react --external chalk --external conf --external @modelcontextprotocol/sdk --external zod && bun build ./src/index.ts ./src/storage.ts --outdir ./dist --target bun --external pg && bun run build:types",
    "build:types": "tsc -p tsconfig.build.json",
    "dev": "bun run ./src/cli/index.tsx",
    "test": "bun test",
    "typecheck": "tsc --noEmit",
    "validate:package": "bun run build && bun scripts/validate-package.ts",
    "prepublishOnly": "bun run validate:package",
    "dashboard:dev": "cd dashboard && bun run dev",
    "dashboard:build": "cd dashboard && bun run build",
    "dashboard:preview": "cd dashboard && bun run preview",
    "postinstall": "mkdir -p $HOME/.hasna/hooks/profiles 2>/dev/null || true"
  },
  "keywords": [
    "claude-code",
    "hooks",
    "cli",
    "typescript",
    "bun",
    "git-safety",
    "code-quality",
    "security"
  ],
  "author": "Hasna",
  "license": "Apache-2.0",
  "devDependencies": {
    "@types/bun": "latest",
    "@types/pg": "^8.15.6",
    "@types/react": "^18.2.0",
    "typescript": "^5"
  },
  "dependencies": {
    "@hasna/events": "^0.1.6",
    "@modelcontextprotocol/sdk": "^1.26.0",
    "chalk": "^5.3.0",
    "commander": "^12.1.0",
    "conf": "^13.0.1",
    "ink": "^5.0.1",
    "ink-select-input": "^6.0.0",
    "ink-spinner": "^5.0.0",
    "ink-text-input": "^6.0.0",
    "pg": "^8.16.3",
    "react": "^18.2.0"
  },
  "engines": {
    "bun": ">=1.0.0"
  },
  "publishConfig": {
    "registry": "https://registry.npmjs.org",
    "access": "public"
  },
  "files": [
    "bin/",
    "dist/",
    "hooks/",
    "!hooks/*/dist/",
    "README.md",
    "LICENSE"
  ],
  "homepage": "https://github.com/hasna/hooks#readme",
  "bugs": {
    "url": "https://github.com/hasna/hooks/issues"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/hasna/hooks.git"
  }
}
