{
  "name": "pi-okf-memory",
  "version": "0.1.1",
  "description": "会话记忆 → OKF 知识沉淀的 pi 扩展。把会话中高价值内容按 OKF v0.1 规范自动沉淀为长期记忆，跨会话自动唤起，并基于权重持续学习。Session-to-OKF long-term memory for pi with predictive recall, uncertainty-driven capture and reinforcement feedback.",
  "type": "module",
  "packageManager": "pnpm@12.4.1",
  "engines": {
    "node": ">=20"
  },
  "main": "lib/index.js",
  "exports": {
    ".": "./lib/index.js",
    "./client": "./lib/client.js",
    "./cordis.patch.yml": "./cordis.patch.yml",
    "./package.json": "./package.json"
  },
  "files": [
    "lib",
    "src",
    "cordis.patch.yml",
    "README.md",
    "README.en.md",
    "docs/graph-demo.png"
  ],
  "keywords": [
    "pi-package",
    "pi-extension",
    "pi",
    "memory",
    "okf",
    "long-term-memory",
    "knowledge",
    "agent"
  ],
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ZHI-QI/pi-okf-memory.git"
  },
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "build": "tsdown --config tsdown.config.ts",
    "prepublishOnly": "npm run build",
    "typecheck": "tsc -p tsconfig.typecheck.json",
    "test": "pnpm typecheck && pnpm build && node scripts/smoke.js && node scripts/integration.js && node scripts/schema-check.js && node scripts/concurrency.js && node scripts/regression.js && node scripts/pi-integration.js && node scripts/pi-rpc-commands.js",
    "test:core": "pnpm typecheck && node scripts/smoke.js && node scripts/concurrency.js && node scripts/regression.js",
    "test:dsh": "pnpm build && node scripts/integration.js && node scripts/schema-check.js",
    "test:pi": "pnpm typecheck && node scripts/pi-integration.js && node scripts/pi-rpc-commands.js",
    "test:e2e": "pnpm build && node scripts/pi-e2e-model.js"
  },
  "dsh": {
    "bundle": {
      "patch": "./cordis.patch.yml"
    },
    "client": {
      "platform": "web",
      "inject": [
        "@deepseek-ai/dsh-client-ui-slots",
        "@deepseek-ai/dsh-client-locale",
        "@deepseek-ai/dsh-client-web-react",
        "@deepseek-ai/dsh-client-ui-conversation"
      ]
    }
  },
  "pi": {
    "extensions": [
      "./src/pi/index.ts"
    ]
  },
  "peerDependencies": {
    "@deepseek-ai/cordis": ">=4.0.0"
  },
  "peerDependenciesMeta": {
    "@deepseek-ai/cordis": {
      "optional": true
    }
  },
  "devDependencies": {
    "@earendil-works/pi-coding-agent": "^0.85.1",
    "@types/react": "^19.2.18",
    "jiti": "^2.7.0",
    "react": "^19.2.8",
    "tsdown": "^0.22.14",
    "typebox": "^1.3.30",
    "typescript": "^7.0.2"
  }
}
