{
  "name": "@hasna/telephony",
  "version": "0.2.7",
  "description": "Telephony platform for AI agents — SMS, WhatsApp, voice calls, TTS/STT, real-time streaming",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "bin": {
    "telephony": "dist/cli/index.js",
    "telephony-mcp": "dist/mcp/index.js",
    "telephony-serve": "dist/server/cloud-entry.js"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    }
  },
  "files": [
    "dist",
    "src",
    "scripts",
    "dashboard/dist",
    "hasna.contract.json",
    "LICENSE",
    "README.md"
  ],
  "scripts": {
    "generate:sdk": "bun scripts/generate-sdk.mjs",
    "build": "bun run generate:sdk && rm -rf dist && bun build src/cli/index.ts --outdir dist/cli --target bun --external @modelcontextprotocol/sdk --external twilio --external pg --external @hasna/contracts && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk --external twilio --external pg --external @hasna/contracts && bun build src/server/cloud-entry.ts --outdir dist/server --target bun --external twilio --external pg --external @hasna/contracts && bun build src/server/index.ts --outdir dist/server --target bun --external twilio --external pg --external @hasna/contracts && bun build src/index.ts --outdir dist --target bun --external twilio --external pg --external @hasna/contracts && tsc --emitDeclarationOnly --outDir dist",
    "build:dashboard": "cd dashboard && bun run build",
    "typecheck": "tsc --noEmit",
    "test": "bun test",
    "dev:cli": "bun run src/cli/index.ts",
    "dev:mcp": "bun run src/mcp/index.ts",
    "dev:serve": "bun run src/server/cloud-entry.ts",
    "dev:serve:local": "bun run src/server/index.ts",
    "migrate:cloud": "bun scripts/apply-cloud-migrations.mjs",
    "serve": "bun src/server/cloud-entry.ts",
    "prepublishOnly": "bun run typecheck && bun test && bun run build",
    "postinstall": "mkdir -p $HOME/.hasna/telephony $HOME/.hasna/telephony/audio 2>/dev/null || true"
  },
  "keywords": [
    "telephony",
    "sms",
    "whatsapp",
    "voice",
    "tts",
    "stt",
    "mcp",
    "ai",
    "coding-agent",
    "twilio",
    "elevenlabs",
    "openai-realtime",
    "cli",
    "dashboard"
  ],
  "publishConfig": {
    "registry": "https://registry.npmjs.org",
    "access": "public"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/hasna/telephony.git"
  },
  "homepage": "https://github.com/hasna/telephony",
  "bugs": {
    "url": "https://github.com/hasna/telephony/issues"
  },
  "engines": {
    "bun": ">=1.0.0"
  },
  "author": "Andrei Hasna <andrei@hasna.com>",
  "license": "Apache-2.0",
  "dependencies": {
    "@hasna/contracts": "^0.4.2",
    "@hasna/events": "^0.1.6",
    "@modelcontextprotocol/sdk": "^1.12.1",
    "commander": "^13.1.0",
    "pg": "^8.13.1",
    "twilio": "^5.5.0",
    "zod": "^3.24.2"
  },
  "devDependencies": {
    "@types/bun": "^1.2.4",
    "@types/pg": "^8.11.10",
    "typescript": "^5.7.3"
  }
}
