{
  "name": "@schema-weaver/pg-connector",
  "version": "2.0.5",
  "description": "Bridge between the Schema Weaver browser IDE and your PostgreSQL, MySQL, and MongoDB databases. Runs near the DB, never exposes credentials, executes queries and migrations on demand.",
  "license": "MIT",
  "author": "Schema Weaver <vivek@schemaweaver.dev>",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Schema-Weaver/sw-connector.git"
  },
  "homepage": "https://schemaweaver.dev",
  "bugs": {
    "url": "https://github.com/Schema-Weaver/sw-connector/issues"
  },
  "keywords": [
    "postgresql",
    "postgres",
    "database",
    "schema",
    "migration",
    "agent",
    "bridge",
    "tunnel",
    "ide",
    "ddl",
    "schema-weaver",
    "devtools"
  ],
  "main": "./dist/cjs/index.js",
  "module": "./dist/esm/index.js",
  "types": "./dist/types/index.d.ts",
  "sideEffects": false,
  "bin": {
    "sw-connector": "./dist/cjs/cli/index.js",
    "schemaweaver": "./dist/cjs/cli/index.js",
    "sw-agent": "./dist/cjs/cli/index.js",
    "pg-connector": "./dist/cjs/cli/index.js",
    "db-connector": "./dist/cjs/cli/index.js"
  },
  "publishConfig": {
    "access": "public"
  },
  "exports": {
    ".": {
      "types": "./dist/types/index.d.ts",
      "import": "./dist/esm/index.js",
      "require": "./dist/cjs/index.js"
    },
    "./package.json": "./package.json"
  },
  "files": [
    "dist/",
    "scripts/generate-systemd-service.mjs",
    "README.md",
    "LICENSE",
    "CHANGELOG.md"
  ],
  "engines": {
    "node": ">=18.0.0"
  },
  "scripts": {
    "build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types && npm run postbuild",
    "build:clean": "rimraf dist",
    "build:cjs": "tsc -p tsconfig.cjs.json",
    "build:esm": "tsc -p tsconfig.esm.json",
    "build:types": "tsc -p tsconfig.types.json",
    "build:dev": "tsc -p tsconfig.dev.json",
    "dev": "tsx watch src/cli/index.ts",
    "lint": "eslint \"src/**/*.ts\"",
    "lint:fix": "eslint \"src/**/*.ts\" --fix",
    "format": "prettier --write 'src/**/*.ts'",
    "typecheck": "tsc --noEmit",
    "test:guard": "node -e \"const{readdirSync}=require(\\\"node:fs\\\");const{join}=require(\\\"node:path\\\");const roots=process.argv.slice(1);let n=0;const walk=d=>{let es;try{es=readdirSync(d,{withFileTypes:true})}catch{return}for(const e of es){const f=join(d,e.name);if(e.isDirectory())walk(f);else if(/\\.(spec|test)\\.ts$/.test(e.name))n++}};for(const r of roots)walk(r);if(n>0){console.log(\\\"guard: \\\"+n+\\\" test file(s) under \\\"+roots.join(\\\", \\\"));process.exit(0)};if(process.env.SW_AGENT_ALLOW_EMPTY_SUITE===\\\"1\\\"){console.log(\\\"guard: 0 test files under \\\"+roots.join(\\\", \\\")+\\\" — allowed by SW_AGENT_ALLOW_EMPTY_SUITE=1\\\");process.exit(0)};console.error(\\\"guard: FAILED — 0 test files under \\\"+roots.join(\\\", \\\")+\\\". A zero-test run reports success while proving nothing. Fix the glob or set SW_AGENT_ALLOW_EMPTY_SUITE=1 to allow an intentionally empty suite.\\\");process.exit(1)\"",
    "pretest": "node -e \"const{readdirSync}=require(\\\"node:fs\\\");const{join}=require(\\\"node:path\\\");const roots=process.argv.slice(1);let n=0;const walk=d=>{let es;try{es=readdirSync(d,{withFileTypes:true})}catch{return}for(const e of es){const f=join(d,e.name);if(e.isDirectory())walk(f);else if(/\\.(spec|test)\\.ts$/.test(e.name))n++}};for(const r of roots)walk(r);if(n>0){console.log(\\\"guard: \\\"+n+\\\" test file(s) under \\\"+roots.join(\\\", \\\"));process.exit(0)};if(process.env.SW_AGENT_ALLOW_EMPTY_SUITE===\\\"1\\\"){console.log(\\\"guard: 0 test files under \\\"+roots.join(\\\", \\\")+\\\" — allowed by SW_AGENT_ALLOW_EMPTY_SUITE=1\\\");process.exit(0)};console.error(\\\"guard: FAILED — 0 test files under \\\"+roots.join(\\\", \\\")+\\\". A zero-test run reports success while proving nothing. Fix the glob or set SW_AGENT_ALLOW_EMPTY_SUITE=1 to allow an intentionally empty suite.\\\");process.exit(1)\" src/tests",
    "test": "node --test --test-concurrency=3 --import tsx \"src/tests/**/*.test.ts\" \"src/tests/**/*.spec.ts\"",
    "test:all": "npm test && npm run test:e2e",
    "postbuild": "node scripts/postbuild.mjs",
    "prepack": "npm run build",
    "pretest:protocol": "npm run test:guard -- src/tests/protocol",
    "test:protocol": "node --test --test-concurrency=3 --import tsx \"src/tests/protocol/**/*.test.ts\" \"src/tests/protocol/**/*.spec.ts\"",
    "pretest:channels": "npm run test:guard -- src/tests/channels",
    "test:channels": "node --test --test-concurrency=3 --import tsx \"src/tests/channels/**/*.test.ts\" \"src/tests/channels/**/*.spec.ts\"",
    "pretest:execution": "npm run test:guard -- src/tests/execution",
    "test:execution": "node --test --test-concurrency=3 --import tsx \"src/tests/execution/**/*.test.ts\" \"src/tests/execution/**/*.spec.ts\"",
    "pretest:permissions": "npm run test:guard -- src/tests/permissions",
    "test:permissions": "node --test --test-concurrency=3 --import tsx \"src/tests/permissions/**/*.test.ts\" \"src/tests/permissions/**/*.spec.ts\"",
    "pretest:audit": "npm run test:guard -- src/tests/audit",
    "test:audit": "node --test --test-concurrency=3 --import tsx \"src/tests/audit/**/*.test.ts\" \"src/tests/audit/**/*.spec.ts\"",
    "pretest:cli": "npm run test:guard -- src/tests/cli",
    "test:cli": "node --test --test-concurrency=3 --import tsx \"src/tests/cli/**/*.test.ts\" \"src/tests/cli/**/*.spec.ts\"",
    "pretest:config": "npm run test:guard -- src/tests/config",
    "test:config": "node --test --test-concurrency=3 --import tsx \"src/tests/config/**/*.test.ts\" \"src/tests/config/**/*.spec.ts\"",
    "pretest:daemon": "npm run test:guard -- src/tests/daemon",
    "test:daemon": "node --test --test-concurrency=3 --import tsx \"src/tests/daemon/**/*.test.ts\" \"src/tests/daemon/**/*.spec.ts\"",
    "pretest:doctor": "npm run test:guard -- src/tests/doctor",
    "test:doctor": "node --test --test-concurrency=3 --import tsx \"src/tests/doctor/**/*.test.ts\" \"src/tests/doctor/**/*.spec.ts\"",
    "pretest:e2e": "npm run test:guard -- src/tests/e2e",
    "test:e2e": "node --test --test-concurrency=1 --import tsx \"src/tests/e2e/**/*.test.ts\" \"src/tests/e2e/**/*.spec.ts\""
  },
  "dependencies": {
    "mongodb": "6.21.0",
    "mysql2": "3.24.6",
    "node-sql-parser": "5.4.0",
    "pg": "^8.21.0",
    "pgsql-parser": "^18.2.8",
    "ws": "^8.21.0"
  },
  "devDependencies": {
    "@types/node": "^25.9.3",
    "@types/pg": "^8.20.0",
    "@types/ws": "^8.18.1",
    "@typescript-eslint/eslint-plugin": "^8.61.1",
    "@typescript-eslint/parser": "^8.61.1",
    "eslint": "^8.57.1",
    "prettier": "^3.8.4",
    "rimraf": "^6.1.3",
    "tsx": "^4.22.4",
    "typescript": "^6.0.3"
  }
}
