{
  "name": "@theaiplatform/miniapp-sdk",
  "version": "0.16.0",
  "description": "TypeScript SDK for building, testing, and shipping portable miniapps on The AI Platform.",
  "tapMiniappTestAdapterProtocol": 1,
  "tapMiniappTestAdapterFeatures": [
    "fixture-channel-access-v1",
    "fixture-http-transport-error-v1",
    "native-services-v1"
  ],
  "type": "module",
  "bin": {
    "tap-miniapp": "./dist/bin/tap-miniapp.js",
    "tap-miniapp-test": "./dist/bin/tap-miniapp-test.js"
  },
  "engines": {
    "node": ">=20"
  },
  "keywords": [
    "miniapp",
    "playwright",
    "react",
    "rstest",
    "tap",
    "typescript",
    "module-federation",
    "rspack",
    "the-ai-platform"
  ],
  "homepage": "https://docs.theaiplatform.app/miniapps/",
  "license": "SEE LICENSE IN LICENSE.md",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./sdk": {
      "types": "./dist/sdk.d.ts",
      "import": "./dist/sdk.js"
    },
    "./mcp": {
      "types": "./dist/mcp.d.ts",
      "import": "./dist/mcp.js"
    },
    "./web": {
      "types": "./dist/web.d.ts",
      "import": "./dist/web.js"
    },
    "./ui": {
      "types": "./dist/ui.d.ts",
      "import": "./dist/ui.js"
    },
    "./ui/markdown": {
      "types": "./dist/ui/markdown.d.ts",
      "import": "./dist/ui/markdown.js"
    },
    "./ui/wasm": {
      "types": "./dist/ui/wasm.d.ts",
      "import": "./dist/ui/wasm.js"
    },
    "./ui/styles.css": {
      "types": "./dist/ui/styles.css.d.ts",
      "default": "./dist/ui/styles.css"
    },
    "./ui/tailwind.css": {
      "types": "./dist/ui/tailwind.css.d.ts",
      "default": "./dist/ui/tailwind.css"
    },
    "./ui-components.json": "./ui-components.json",
    "./surface": {
      "types": "./dist/surface.d.ts",
      "import": "./dist/surface.js"
    },
    "./inline-renderer": {
      "types": "./dist/inline-renderer.d.ts",
      "import": "./dist/inline-renderer.js"
    },
    "./link-unfurl": {
      "types": "./dist/link-unfurl.d.ts",
      "import": "./dist/link-unfurl.js"
    },
    "./chat-renderer": {
      "types": "./dist/chat-renderer.d.ts",
      "import": "./dist/chat-renderer.js"
    },
    "./vscode-webview": {
      "types": "./dist/vscode-webview.d.ts",
      "import": "./dist/vscode-webview.js"
    },
    "./config": {
      "types": "./dist/config.d.ts",
      "import": "./dist/config.js"
    },
    "./authoring": {
      "types": "./dist/authoring.d.ts",
      "import": "./dist/authoring.js"
    },
    "./lifecycle": {
      "types": "./dist/lifecycle.d.ts",
      "import": "./dist/lifecycle.js"
    },
    "./source-manifest": {
      "types": "./dist/source-manifest.d.ts",
      "import": "./dist/source-manifest.js"
    },
    "./source-manifest.schema.json": "./source-manifest.schema.json",
    "./react": {
      "types": "./dist/react.d.ts",
      "import": "./dist/react.js"
    },
    "./rspack": {
      "types": "./dist/rspack/index.d.ts",
      "import": "./dist/rspack/index.js"
    },
    "./config-schema.json": "./config-schema.json",
    "./testing/rstest": {
      "types": "./dist/testing/rstest.d.ts",
      "import": "./dist/testing/rstest.js"
    },
    "./testing/rstest-config": {
      "types": "./dist/testing/rstest-config.d.ts",
      "import": "./dist/testing/rstest-config.js"
    },
    "./testing/tooling": {
      "types": "./dist/testing/tooling.d.ts",
      "import": "./dist/testing/tooling.js"
    },
    "./testing/tap.test.schema.json": "./dist/testing/tap.test.schema.json"
  },
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "examples",
    "config-schema.json",
    "source-manifest.schema.json",
    "ui-components.json",
    "README.md",
    "LICENSE.md",
    "THIRD_PARTY_NOTICES.md"
  ],
  "scripts": {
    "prepack": "pnpm run build",
    "build": "node ../../../../scripts/clean-dist.mjs && rslib build && rslib build -c rslib.testing-tooling.config.ts && node scripts/write-cli-declarations.mjs && node scripts/copy-tap-test-schema.mjs && node scripts/copy-rspack-loaders.mjs && node scripts/build-ui-styles.mjs",
    "test:unit": "rstest run",
    "typecheck": "tsc --noEmit"
  },
  "publishConfig": {
    "registry": "https://registry.npmjs.org",
    "access": "public",
    "main": "./dist/index.js",
    "module": "./dist/index.js",
    "types": "./dist/index.d.ts",
    "exports": {
      ".": {
        "types": "./dist/index.d.ts",
        "import": "./dist/index.js"
      },
      "./sdk": {
        "types": "./dist/sdk.d.ts",
        "import": "./dist/sdk.js"
      },
      "./mcp": {
        "types": "./dist/mcp.d.ts",
        "import": "./dist/mcp.js"
      },
      "./web": {
        "types": "./dist/web.d.ts",
        "import": "./dist/web.js"
      },
      "./ui": {
        "types": "./dist/ui.d.ts",
        "import": "./dist/ui.js"
      },
      "./ui/markdown": {
        "types": "./dist/ui/markdown.d.ts",
        "import": "./dist/ui/markdown.js"
      },
      "./ui/wasm": {
        "types": "./dist/ui/wasm.d.ts",
        "import": "./dist/ui/wasm.js"
      },
      "./ui/styles.css": {
        "types": "./dist/ui/styles.css.d.ts",
        "default": "./dist/ui/styles.css"
      },
      "./ui/tailwind.css": {
        "types": "./dist/ui/tailwind.css.d.ts",
        "default": "./dist/ui/tailwind.css"
      },
      "./ui-components.json": "./ui-components.json",
      "./surface": {
        "types": "./dist/surface.d.ts",
        "import": "./dist/surface.js"
      },
      "./inline-renderer": {
        "types": "./dist/inline-renderer.d.ts",
        "import": "./dist/inline-renderer.js"
      },
      "./link-unfurl": {
        "types": "./dist/link-unfurl.d.ts",
        "import": "./dist/link-unfurl.js"
      },
      "./chat-renderer": {
        "types": "./dist/chat-renderer.d.ts",
        "import": "./dist/chat-renderer.js"
      },
      "./vscode-webview": {
        "types": "./dist/vscode-webview.d.ts",
        "import": "./dist/vscode-webview.js"
      },
      "./config": {
        "types": "./dist/config.d.ts",
        "import": "./dist/config.js"
      },
      "./authoring": {
        "types": "./dist/authoring.d.ts",
        "import": "./dist/authoring.js"
      },
      "./lifecycle": {
        "types": "./dist/lifecycle.d.ts",
        "import": "./dist/lifecycle.js"
      },
      "./source-manifest": {
        "types": "./dist/source-manifest.d.ts",
        "import": "./dist/source-manifest.js"
      },
      "./source-manifest.schema.json": "./source-manifest.schema.json",
      "./react": {
        "types": "./dist/react.d.ts",
        "import": "./dist/react.js"
      },
      "./rspack": {
        "types": "./dist/rspack/index.d.ts",
        "import": "./dist/rspack/index.js"
      },
      "./config-schema.json": "./config-schema.json",
      "./testing/rstest": {
        "types": "./dist/testing/rstest.d.ts",
        "import": "./dist/testing/rstest.js"
      },
      "./testing/rstest-config": {
        "types": "./dist/testing/rstest-config.d.ts",
        "import": "./dist/testing/rstest-config.js"
      },
      "./testing/tooling": {
        "types": "./dist/testing/tooling.d.ts",
        "import": "./dist/testing/tooling.js"
      },
      "./testing/tap.test.schema.json": "./dist/testing/tap.test.schema.json"
    }
  },
  "peerDependencies": {
    "@module-federation/rsbuild-plugin": "2.8.1",
    "@module-federation/runtime-tools": "2.8.1",
    "@rsbuild/core": ">=2 <3",
    "@rslib/core": ">=0.21 <1",
    "@rstest/core": "0.11.5",
    "@rstest/playwright": "0.11.5",
    "@tanstack/react-query": ">=5 <6",
    "@tanstack/react-router": ">=1 <2",
    "playwright": ">=1.61 <2",
    "react": ">=19 <20",
    "react-dom": ">=19 <20"
  },
  "peerDependenciesMeta": {
    "@module-federation/rsbuild-plugin": {
      "optional": true
    },
    "@module-federation/runtime-tools": {
      "optional": true
    },
    "@rsbuild/core": {
      "optional": true
    },
    "@rslib/core": {
      "optional": true
    },
    "@rstest/core": {
      "optional": true
    },
    "@rstest/playwright": {
      "optional": true
    },
    "@tanstack/react-query": {
      "optional": true
    },
    "@tanstack/react-router": {
      "optional": true
    },
    "react": {
      "optional": true
    },
    "react-dom": {
      "optional": true
    },
    "playwright": {
      "optional": true
    }
  },
  "devDependencies": {
    "@emoji-mart/data": "^1.2.1",
    "@module-federation/rsbuild-plugin": "2.8.1",
    "@module-federation/runtime-tools": "2.8.1",
    "@rsbuild/core": "catalog:rsbuild",
    "@rslib/core": "catalog:rslib",
    "@rstest/core": "catalog:rstest",
    "@rstest/playwright": "catalog:rstest",
    "@tailwindcss/postcss": "^4.3.3",
    "@types/jsdom": "^28.0.3",
    "@types/node": "catalog:node",
    "@types/react": "catalog:react",
    "@types/react-dom": "catalog:react",
    "jsdom": "^29.1.1",
    "playwright": "^1.61.0",
    "postcss": "^8.5.25",
    "react": "catalog:react",
    "react-dom": "catalog:react",
    "tailwindcss": "^4.3.3",
    "tw-animate-css": "^1.4.0",
    "typescript": "catalog:typescript"
  },
  "dependencies": {
    "@radix-ui/react-alert-dialog": "^1.1.23",
    "@radix-ui/react-avatar": "1.2.6",
    "@radix-ui/react-checkbox": "^1.3.11",
    "@radix-ui/react-collapsible": "^1.1.20",
    "@radix-ui/react-dialog": "^1.1.23",
    "@radix-ui/react-label": "^2.1.15",
    "@radix-ui/react-progress": "^1.1.16",
    "@radix-ui/react-radio-group": "^1.4.7",
    "@radix-ui/react-scroll-area": "^1.2.18",
    "@radix-ui/react-select": "^2.3.7",
    "@radix-ui/react-separator": "^1.1.15",
    "@radix-ui/react-slider": "^1.4.7",
    "@radix-ui/react-tabs": "^1.1.21",
    "@radix-ui/react-toggle": "^1.1.18",
    "@radix-ui/react-toggle-group": "^1.1.19",
    "@radix-ui/react-tooltip": "^1.2.16",
    "ajv": "^8.20.0",
    "ajv-draft-04": "^1.0.0",
    "chokidar": "4.0.3",
    "class-variance-authority": "^0.7.1",
    "clsx": "^2.1.1",
    "jiti": "2.7.0",
    "jsonc-parser": "^3.3.1",
    "lucide-react": "^1.25.0",
    "react-resizable-panels": "^4.12.2",
    "remark-gemoji": "^8.0.0",
    "saxes": "^6.0.0",
    "streamdown": "^2.5.0",
    "use-stick-to-bottom": "^1.1.6",
    "zod": "^4.5.1"
  }
}
