{
  "name": "soma-ai",
  "version": "2.0.0",
  "description": "Reusable SOMA AI runtime: structured Host functions, knowledge-grounded assistant, and browser chat widget.",
  "type": "module",
  "main": "./src/index.ts",
  "types": "./src/index.ts",
  "exports": {
    ".": "./src/index.ts",
    "./server": "./src/server/index.ts",
    "./server/ai-api": "./src/server/ai-api/index.ts",
    "./server/ai-assistant": "./src/server/ai-assistant/index.ts",
    "./server/ai-page": "./src/server/ai-page/index.ts",
    "./server/ai-shared": "./src/server/ai-shared/index.ts",
    "./server/showcase": "./src/server/showcase/index.ts",
    "./server/services": "./src/server/services/index.ts",
    "./host/services": "./src/host/services/index.ts",
    "./host/showcase": "./src/host/showcase/index.ts",
    "./tailwind.css": "./src/generated/tailwind-page.css",
    "./tailwind-stylesheet": "./src/generated/tailwind-page-css.ts",
    "./http": "./src/api/common/HttpGuards.ts",
    "./testing/ai-upstream-server": "./src/testing/ai-upstream-server.mjs",
    "./client": "./src/client/index.ts",
    "./client/assistant-widget": "./src/domain/ai-assistant/widget/mountAssistantWidget.ts",
    "./client/page-operate": "./src/client/page-operate.ts",
    "./client/chat": "./src/domain/ai-assistant/widget/AiChatController.ts",
    "./ai/AiApiRuntime": "./src/ai/AiApiRuntime.ts",
    "./ai-api/AiApiRuntime": "./src/ai/AiApiRuntime.ts",
    "./package.json": "./package.json"
  },
  "soma": {
    "source": true,
    "hostRoot": "src"
  },
  "files": [
    "src/",
    "README.md",
    "manifest.md"
  ],
  "engines": {
    "node": "24.21.0"
  },
  "scripts": {
    "typecheck": "tsc --noEmit",
    "build:tailwind": "node scripts/build-tailwind.mjs",
    "verify:tailwind": "node scripts/build-tailwind.mjs --check",
    "test": "npm run verify:tailwind && vitest run",
    "test:watch": "vitest",
    "lint": "eslint src",
    "lint:declarations": "node bin/soma-lint.mjs --host tests/fixtures/lint-host"
  },
  "dependencies": {
    "@ai-sdk/openai-compatible": "1.0.46",
    "ai": "5.0.220",
    "dompurify": "3.4.12",
    "jiti": "^1.21.7",
    "js-yaml": "^4.3.2",
    "marked": "15.0.12",
    "server-only": "0.0.1",
    "zod": "4.4.3"
  },
  "peerDependencies": {
    "next": ">=16.3.5 <17",
    "react": ">=18",
    "react-dom": ">=18",
    "soma-core": ">=2.0.0"
  },
  "devDependencies": {
    "@tailwindcss/cli": "4.3.3",
    "@types/dompurify": "^3.0.5",
    "@types/js-yaml": "^4.0.9",
    "@types/node": "^20.0.0",
    "@types/react": "18.3.31",
    "@types/react-dom": "18.3.7",
    "jsdom": "^26.1.0",
    "next": "16.3.5",
    "react": "18.3.1",
    "react-dom": "18.3.1",
    "tailwindcss": "4.3.3",
    "tsx": "^4.19.0",
    "typescript": "^5.5.0",
    "vitest": "3.2.6"
  },
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
  "bin": {
    "soma-lint": "bin/soma-lint.mjs"
  }
}
