{
  "name": "@pedrofariasx/toolstream",
  "version": "0.3.0",
  "description": "Incremental streaming parser for LLM tool calls — framework-agnostic, event-driven, multi-provider",
  "keywords": [
    "llm",
    "tool-calls",
    "function-calling",
    "streaming",
    "parser",
    "openai",
    "anthropic",
    "gemini",
    "deepseek",
    "incremental",
    "json-stream",
    "partial-json"
  ],
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/pedrofariasx/toolstream.git"
  },
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs"
    },
    "./adapters": {
      "types": "./dist/adapters/index.d.ts",
      "import": "./dist/adapters/index.mjs",
      "require": "./dist/adapters/index.cjs"
    },
    "./internal/*": {
      "types": "./dist/internal/*.d.ts",
      "import": "./dist/internal/*.mjs",
      "require": "./dist/internal/*.cjs"
    },
    "./ai": {
      "types": "./dist/ai.d.ts",
      "import": "./dist/ai.mjs",
      "require": "./dist/ai.cjs"
    }
  },
  "ai": {
    "name": "ToolStream",
    "description": "Incremental streaming parser for LLM tool calls — framework-agnostic, event-driven, multi-provider",
    "entryPoint": "ToolStream",
    "importPath": "@pedrofariasx/toolstream",
    "quickStart": "import { ToolStream } from '@pedrofariasx/toolstream'; const parser = new ToolStream({ provider: 'openai' }); parser.on('tool-call:complete', (call) => {}); parser.push(chunk); parser.finalize();",
    "manifest": "./ai/manifest.json",
    "guide": "./ai/CLAUDE.md"
  },
  "files": [
    "dist",
    "README.md",
    "LICENSE",
    "ai",
    "scripts"
  ],
  "sideEffects": false,
  "engines": {
    "node": ">=18.0.0"
  },
  "scripts": {
    "build": "tsup",
    "dev": "tsup --watch",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:coverage": "vitest run --coverage",
    "lint": "biome check src/",
    "lint:fix": "biome check --write src/",
    "format": "biome format --write src/",
    "typecheck": "tsc --noEmit",
    "bench": "npx tsx benchmark/suite.ts",
    "prepublishOnly": "npm run build",
    "postinstall": "node scripts/postinstall.mjs"
  },
  "devDependencies": {
    "@biomejs/biome": "^2.5.5",
    "tsup": "^8.5.0",
    "typescript": "^5.5.0",
    "vitest": "^2.0.0"
  }
}
