{
  "name": "@cortexkit/aft-opencode",
  "version": "0.42.0",
  "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/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 && bun build src/tui/index.tsx --outfile dist/tui.js --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opencode-ai/sdk --external @opentui/solid --external solid-js && tsc --emitDeclarationOnly",
    "typecheck": "tsc --noEmit",
    "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/**'"
  },
  "dependencies": {
    "@clack/prompts": "^1.6.0",
    "@cortexkit/aft-bridge": "0.42.0",
    "@opentui/core": "^0.4.2",
    "@opentui/solid": "^0.4.2",
    "@xterm/headless": "^5.5.0",
    "comment-json": "^4.6.2",
    "solid-js": "1.9.12",
    "undici": "^7.25.0",
    "zod": "^4.4.3"
  },
  "optionalDependencies": {
    "@cortexkit/aft-darwin-arm64": "0.42.0",
    "@cortexkit/aft-darwin-x64": "0.42.0",
    "@cortexkit/aft-linux-arm64": "0.42.0",
    "@cortexkit/aft-linux-x64": "0.42.0",
    "@cortexkit/aft-win32-arm64": "0.42.0",
    "@cortexkit/aft-win32-x64": "0.42.0"
  },
  "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/index.tsx"
    }
  },
  "oc-plugin": [
    "server",
    "tui"
  ],
  "peerDependencies": {
    "@opencode-ai/plugin": ">=1.17.0"
  }
}
