{
  "name": "tinfoil",
  "version": "1.1.4",
  "description": "Tinfoil secure OpenAI client wrapper",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "sideEffects": false,
  "browser": {
    "./dist/index.js": "./dist/index.browser.js",
    "./dist/pinned-tls-fetch.js": "./dist/pinned-tls-fetch.browser.js",
    "./dist/unsafe.js": "./dist/unsafe.browser.js"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/index.browser.js",
      "import": "./dist/index.js",
      "default": "./dist/index.js"
    },
    "./unsafe": {
      "types": "./dist/unsafe.d.ts",
      "browser": "./dist/unsafe.browser.js",
      "import": "./dist/unsafe.js",
      "default": "./dist/unsafe.js"
    }
  },
  "scripts": {
    "build": "tsc",
    "test": "vitest run",
    "test:integration": "RUN_TINFOIL_INTEGRATION=true npm test",
    "test:bun": "bun test ./test/bun-compat.bun.ts",
    "test:bun:integration": "RUN_TINFOIL_INTEGRATION=true bun test ./test/integration.bun.ts",
    "test:browser": "vitest run --config vite.config.browser.ts",
    "test:browser:integration": "vitest run --config vite.config.browser-test.ts",
    "lint": "eslint src/**/*.ts",
    "check:es2020": "acorn --ecma2020 --module --silent dist/*.js",
    "clean": "rm -rf dist",
    "prepublishOnly": "npm run build"
  },
  "files": [
    "dist",
    "README.md",
    "LICENSE"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/tinfoilsh/tinfoil-js.git"
  },
  "keywords": [
    "openai",
    "security",
    "AI",
    "tinfoil"
  ],
  "author": "Tinfoil",
  "license": "AGPL-3.0-or-later",
  "engines": {
    "node": ">=20"
  },
  "dependencies": {
    "@ai-sdk/openai-compatible": "^2.0.26",
    "@freedomofpress/sigstore-browser": "^0.1.11",
    "@tinfoilsh/verifier": "1.1.4",
    "ehbp": "^0.2.0",
    "openai": "^6.17.0"
  },
  "peerDependencies": {
    "ai": "^6.0.69"
  },
  "peerDependenciesMeta": {
    "ai": {
      "optional": true
    }
  },
  "devDependencies": {
    "@eslint/js": "^9.39.2",
    "@types/node": "^25.2.0",
    "@typescript-eslint/eslint-plugin": "^8.54.0",
    "@typescript-eslint/parser": "^8.54.0",
    "@vitest/browser": "^4.0.18",
    "@vitest/browser-playwright": "^4.0.18",
    "ai": "^6.0.69",
    "dotenv": "^17.2.1",
    "eslint": "^9.39.2",
    "jsdom": "^28.0.0",
    "playwright": "^1.58.1",
    "ts-node": "^10.9.2",
    "typescript-eslint": "^8.54.0",
    "vite": "^7.3.1",
    "vitest": "^4.0.18"
  }
}
