{
  "name": "@zhin.js/agent",
  "version": "1.7.0",
  "description": "Zhin AI Agent — session, ZhinAgent, init; composes @zhin.js/core providers and tools",
  "type": "module",
  "main": "./lib/index.js",
  "types": "./lib/index.d.ts",
  "exports": {
    ".": {
      "types": "./lib/index.d.ts",
      "import": "./lib/index.js"
    },
    "./config": {
      "types": "./lib/config/index.d.ts",
      "import": "./lib/config/index.js"
    },
    "./task-executor": {
      "types": "./lib/task-executor.d.ts",
      "import": "./lib/task-executor.js"
    },
    "./core": {
      "types": "./lib/core/index.d.ts",
      "import": "./lib/core/index.js"
    },
    "./tool": {
      "types": "./lib/tool/index.d.ts",
      "import": "./lib/tool/index.js"
    },
    "./session": {
      "types": "./lib/session/index.d.ts",
      "import": "./lib/session/index.js"
    },
    "./event": {
      "types": "./lib/event/index.d.ts",
      "import": "./lib/event/index.js"
    },
    "./skill": {
      "types": "./lib/skill/index.d.ts",
      "import": "./lib/skill/index.js"
    },
    "./memory": {
      "types": "./lib/memory/index.d.ts",
      "import": "./lib/memory/index.js"
    },
    "./context": {
      "types": "./lib/context/index.d.ts",
      "import": "./lib/context/index.js"
    },
    "./prompt": {
      "types": "./lib/prompt/index.d.ts",
      "import": "./lib/prompt/index.js"
    },
    "./turn": {
      "types": "./lib/turn/index.d.ts",
      "import": "./lib/turn/index.js"
    },
    "./skills": {
      "types": "./lib/authoring/entries/skills.d.ts",
      "import": "./lib/authoring/entries/skills.js"
    },
    "./hooks": {
      "types": "./lib/authoring/entries/hooks.d.ts",
      "import": "./lib/authoring/entries/hooks.js"
    },
    "./evals": {
      "types": "./lib/authoring/entries/evals.d.ts",
      "import": "./lib/authoring/entries/evals.js"
    },
    "./trace": {
      "types": "./lib/trace/index.d.ts",
      "import": "./lib/trace/index.js"
    },
    "./security": {
      "types": "./lib/security/index.d.ts",
      "import": "./lib/security/index.js"
    },
    "./runtime": {
      "types": "./lib/plugin-runtime/index.d.ts",
      "import": "./lib/plugin-runtime/index.js"
    },
    "./personal-session": {
      "types": "./lib/personal-session/index.d.ts",
      "import": "./lib/personal-session/index.js"
    },
    "./model-runtime": {
      "types": "./lib/model-runtime/index.d.ts",
      "import": "./lib/model-runtime/index.js"
    },
    "./migration": {
      "types": "./lib/migration/index.d.ts",
      "import": "./lib/migration/index.js"
    }
  },
  "files": [
    "lib"
  ],
  "dependencies": {
    "@zhin.js/agent-media": "^0.2.0",
    "ajv": "^8.18.0",
    "chalk": "^5.6.2",
    "he": "^1.2.0",
    "js-yaml": "^5.4.1",
    "@zhin.js/adapter": "1.3.3",
    "@zhin.js/agent-feature": "1.1.20",
    "@zhin.js/ai": "1.7.2",
    "@zhin.js/core": "1.11.0",
    "@zhin.js/database": "1.2.2",
    "@zhin.js/feature-kit": "1.1.19",
    "@zhin.js/harness": "1.1.0",
    "@zhin.js/im-contract": "1.3.0",
    "@zhin.js/logger": "1.3.0",
    "@zhin.js/kernel": "1.3.0",
    "@zhin.js/mcp-feature": "1.1.20",
    "@zhin.js/permission": "1.2.3",
    "@zhin.js/plugin-runtime": "1.4.0",
    "@zhin.js/prompt-section": "1.1.19",
    "@zhin.js/skill": "1.1.20",
    "@zhin.js/tool": "1.1.23"
  },
  "peerDependencies": {
    "@modelcontextprotocol/sdk": "^1.29.0",
    "zod": "^4.0.0"
  },
  "peerDependenciesMeta": {
    "@modelcontextprotocol/sdk": {
      "optional": true
    }
  },
  "devDependencies": {
    "@modelcontextprotocol/sdk": "^1.32.0",
    "@types/he": "^1.2.3",
    "@types/js-yaml": "^4.0.9",
    "@types/node": "^26.1.2",
    "rimraf": "^6.1.4",
    "typescript": "^6.0.3",
    "vitest": "^4.1.10",
    "zod": "^4.4.3"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/zhinjs/zhin.git",
    "directory": "packages/im/agent"
  },
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org"
  },
  "license": "MIT",
  "author": {
    "name": "lc-cn",
    "email": "admin@liucl.cn",
    "url": "https://github.com/lc-cn"
  },
  "engines": {
    "node": ">=22.19.0"
  },
  "scripts": {
    "build": "tsc",
    "test": "vitest run --root ../../.. packages/im/agent/tests",
    "eval": "vitest run --config evals/vitest.config.ts",
    "eval:nightly": "vitest run --config evals/nightly/vitest.config.ts",
    "clean": "rimraf lib && find src -type f \\( -name '*.js' -o -name '*.d.ts' -o -name '*.js.map' -o -name '*.d.ts.map' \\) -delete 2>/dev/null || true"
  }
}