{
  "name": "@cortexkit/aft-opencode",
  "version": "0.52.2",
  "type": "module",
  "description": "OpenCode plugin for Agent File Tools (AFT) — tree-sitter and lsp powered code analysis",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/cortexkit/aft.git"
  },
  "files": [
    "dist",
    "src/tui",
    "src/tui-compiled",
    "src/shared",
    "src/logger.ts",
    "README.md"
  ],
  "scripts": {
    "build": "bun build src/index.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/sdk && tsc --emitDeclarationOnly && bun run build:tui",
    "typecheck": "tsc --noEmit && tsc -p tsconfig.scripts.json",
    "pretest": "node -e \"if (process.env.CI !== 'true') { const { spawnSync } = require('node:child_process'); const result = spawnSync('cargo', ['build'], { cwd: '../..', stdio: 'inherit', shell: process.platform === 'win32' }); process.exit(result.status ?? 1); } else { console.log('Skipping cargo build in CI; workflow builds agent-file-tools before tests.'); }\"",
    "test": "bun test",
    "test:e2e": "bun test src/__tests__/e2e/",
    "lint": "biome check src",
    "schema": "bun scripts/build-schema.ts",
    "build:tool-schemas": "bun run scripts/build-tool-schemas.ts",
    "prepublishOnly": "bun run build",
    "test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'",
    "build:tui": "bun scripts/build-tui.ts",
    "smoke:tui": "bun test ./scripts/smoke-tui-pack-install.ts"
  },
  "dependencies": {
    "@clack/prompts": "^1.6.0",
    "@cortexkit/aft-bridge": "0.52.2",
    "@opentui/core": "0.4.3",
    "@opentui/solid": "0.4.3",
    "comment-json": "^4.6.2",
    "solid-js": "1.9.12",
    "undici": "^7.25.0",
    "zod": "^4.4.3"
  },
  "optionalDependencies": {
    "@cortexkit/aft-darwin-arm64": "0.52.2",
    "@cortexkit/aft-darwin-x64": "0.52.2",
    "@cortexkit/aft-linux-arm64": "0.52.2",
    "@cortexkit/aft-linux-x64": "0.52.2",
    "@cortexkit/aft-win32-arm64": "0.52.2",
    "@cortexkit/aft-win32-x64": "0.52.2"
  },
  "devDependencies": {
    "@opencode-ai/plugin": "^1.17.11",
    "@opencode-ai/sdk": "^1.17.11",
    "@types/node": "^22.0.0",
    "typescript": "^5.8.0"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./tui": {
      "types": "./src/tui/index.tsx",
      "import": "./src/tui/entry.mjs"
    }
  },
  "oc-plugin": [
    "server",
    "tui"
  ],
  "peerDependencies": {
    "@opencode-ai/plugin": ">=1.17.0"
  }
}
