{
  "name": "@cursor/sdk",
  "version": "1.0.32",
  "description": "TypeScript SDK for Cursor agents.",
  "license": "SEE LICENSE IN LICENSE.md",
  "repository": {
    "type": "git",
    "url": "https://github.com/cursor/cursor"
  },
  "homepage": "https://cursor.com",
  "engines": {
    "node": ">=22.13"
  },
  "type": "module",
  "main": "./dist/cjs/index.js",
  "module": "./dist/esm/index.js",
  "types": "./dist/esm/index.d.ts",
  "files": [
    "dist/**/*",
    "LICENSE.md",
    "package.json",
    "README.md"
  ],
  "exports": {
    ".": {
      "bun": "./dist/bundled/index.js",
      "anysphere-source": "./src/index.ts",
      "require": "./dist/cjs/index.js",
      "import": "./dist/esm/index.js",
      "default": "./dist/esm/index.js"
    },
    "./agent": {
      "bun": "./dist/bundled/index.js",
      "anysphere-source": "./src/index.ts",
      "require": "./dist/cjs/index.js",
      "import": "./dist/esm/index.js",
      "default": "./dist/esm/index.js"
    },
    "./sqlite": {
      "bun": "./dist/bundled/sqlite.js",
      "anysphere-source": "./src/sqlite.ts",
      "require": "./dist/cjs/sqlite.js",
      "import": "./dist/esm/sqlite.js",
      "default": "./dist/esm/sqlite.js"
    },
    "./bundled": {
      "anysphere-source": "./src/bundled.ts",
      "bun": "./dist/bundled/index.js",
      "default": "./dist/bundled/index.js"
    },
    "./bundled/sqlite": {
      "anysphere-source": "./src/bundled/sqlite.ts",
      "bun": "./dist/bundled/sqlite.js",
      "default": "./dist/bundled/sqlite.js"
    }
  },
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "typecheck": "tsgo -p tsconfig.json --noEmit",
    "build": "echo noop",
    "build:internal": "node --import tsx scripts/build-agent.ts --mode dev",
    "build:bundled": "bun scripts/build-flat-bundle.ts",
    "prepare:rg": "node scripts/download-rg.js",
    "fetch:sandbox-helper-artifacts": "node scripts/fetch-sandbox-helper-artifacts.cjs",
    "stage:sandbox-helper": "node scripts/stage-sandbox-helper.cjs",
    "stage:tree-sitter": "node scripts/stage-tree-sitter-runtime.cjs",
    "generate-platform-packages": "node --import tsx scripts/generate-platform-packages.ts",
    "build:prod": "pnpm prepare:rg && node --import tsx scripts/build-agent.ts --mode prod && pnpm build:bundled && pnpm stage:sandbox-helper && pnpm stage:tree-sitter && pnpm generate-platform-packages",
    "build:local": "scripts/build-local.sh",
    "build:publish": "scripts/build.sh",
    "smoke:publish-artifact": "node publish-checks/smoke-publish-artifact.cjs",
    "publish:built": "scripts/publish.sh",
    "prepublishOnly": "SDK_REQUIRE_OPTIONAL_DEPENDENCIES=1 vitest run --config vitest.publish-checks.config.ts",
    "check": "oxlint src && tsgo -p tsconfig.json --noEmit",
    "fix": "oxlint --fix src && oxfmt --write --no-error-on-unmatched-pattern",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:ui": "vitest --ui",
    "prettier:changed": "git diff -z --name-only --diff-filter=ACMRTUXB --relative HEAD -- . | xargs -0 npx prettier --ignore-unknown --write",
    "prettier:branch": "UPSTREAM=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null || echo origin/main); BASE=$(git merge-base HEAD \"$UPSTREAM\"); git diff -z --name-only --diff-filter=ACMRTUXB --relative \"$BASE\" -- . | xargs -0 -n1 -I{} npx prettier --ignore-unknown --write \"{}\"",
    "build-schemas": "tsgo -b tsconfig.schemas.json --force",
    "type-check": "tsgo -p tsconfig.json --noEmit",
    "build-types": "tsgo -b tsconfig.dts.schemas.json --force && tsgo -p tsconfig.dts.json",
    "publish-checks": "vitest run --config vitest.publish-checks.config.ts"
  },
  "dependencies": {
    "@bufbuild/protobuf": "1.10.0",
    "@connectrpc/connect": "^1.6.1",
    "@connectrpc/connect-node": "^1.6.1",
    "@connectrpc/connect-web": "^1.6.1",
    "@statsig/js-client": "3.31.0",
    "zod": "^3.25.0"
  },
  "devDependencies": {
    "@anysphere/agent-client": "workspace:*",
    "@anysphere/agent-core": "workspace:*",
    "@anysphere/agent-exec": "workspace:*",
    "@anysphere/agent-kv": "workspace:*",
    "@anysphere/agent-pr-attribution": "workspace:*",
    "@anysphere/analytics-client": "workspace:*",
    "@anysphere/analytics-types": "workspace:*",
    "@anysphere/bidi-connect": "workspace:*",
    "@anysphere/context": "workspace:*",
    "@anysphere/cursor-sdk-local-runtime": "workspace:*",
    "@anysphere/cursor-sdk-shared": "workspace:*",
    "@anysphere/context-rpc": "workspace:*",
    "@anysphere/cursor-plugins": "workspace:*",
    "@anysphere/dune-atomic-write": "workspace:*",
    "@anysphere/git-core": "workspace:*",
    "@anysphere/hooks": "workspace:*",
    "@anysphere/local-exec": "workspace:*",
    "@anysphere/mcp-agent-exec": "workspace:*",
    "@anysphere/proto": "workspace:*",
    "@anysphere/shell-exec": "workspace:*",
    "@anysphere/utils": "workspace:*",
    "@bufbuild/protobuf": "1.10.0",
    "@connectrpc/connect": "^1.6.1",
    "@connectrpc/connect-node": "^1.6.1",
    "@connectrpc/connect-web": "^1.6.1",
    "@types/node": "^22.5.5",
    "ts-loader": "9.5.7",
    "tsx": "^4.20.6",
    "@typescript/native-preview": "7.0.0-dev.20260701.1",
    "typescript": "6.0.3",
    "vite": "^6.0.0",
    "vitest": "^4.0.18",
    "webpack": "^5.98.0",
    "zod": "^3.25.0"
  },
  "optionalDependencies": {
    "@cursor/sdk-darwin-arm64": "1.0.32",
    "@cursor/sdk-darwin-x64": "1.0.32",
    "@cursor/sdk-linux-arm64": "1.0.32",
    "@cursor/sdk-linux-x64": "1.0.32",
    "@cursor/sdk-win32-x64": "1.0.32"
  }
}
