{
  "name": "@furongjun1999/dsh-memory",
  "version": "0.9.22",
  "description": "灵枢（Lingshu·líng shū）DeepSeek Harness 插件：完整大脑——长期记忆/知识飞轮/自我认知/递归反思接入 DSH，对话自动沉淀进 md_cg 认知图（md 文档）",
  "type": "module",
  "main": "lib/index.js",
  "types": "lib/index.d.ts",
  "bin": {
    "lingshu": "./lib/cli.js",
    "lingshu-init": "./lib/init.js",
    "dsh-memory": "./lib/cli.js"
  },
  "exports": {
    ".": {
      "types": "./lib/index.d.ts",
      "import": "./lib/index.js"
    },
    "./client": "./lib/client.js"
  },
  "files": [
    "lib",
    "src",
    "md_cg",
    "utf8_boot.py",
    "data/policy.json",
    "hive/id_charset_blocks.txt",
    "skills",
    "CHANGELOG.md",
    "README.md",
    "dsh",
    "codebuddy",
    "zcode",
    "docs/规范/AI编程通用规范.md",
    "docs/规范/AI编程通用规范_灵枢适配.md",
    "docs/规范/AI编程通用规范_自检清单.md",
    "docs/discipline",
    "docs/工作纪律_认知图条目_v1.1.json",
    "scripts/workspace_index.py",
    "ui",
    "web",
    "docs/mdcg/写入别名aliases规范_v0.6.md",
    "docs/mdcg/CCG六要素编译.md",
    "docs/mdcg/guardrail-charter.md",
    "docs/mdcg/MCP工具名口径_v1.0.md",
    "docs/mdcg/recall_metadata.md",
    "docs/mdcg/世界模型功能端_使用与运维_v1.0.md",
    "docs/mdcg/cogmap_ops.md"
  ],
  "keywords": [
    "deepseek",
    "dsh",
    "dsh-plugin",
    "cordis",
    "memory",
    "agent",
    "aeis",
    "lingshu",
    "multi-agent",
    "spatiotemporal",
    "knowledge-graph"
  ],
  "license": "MIT",
  "peerDependenciesMeta": {
    "@deepseek-ai/cordis": {
      "optional": true
    },
    "@deepseek-ai/dsh-llm": {
      "optional": true
    },
    "@deepseek-ai/dsh-session": {
      "optional": true
    },
    "@deepseek-ai/dsh-system-prompt": {
      "optional": true
    },
    "@deepseek-ai/dsh-tools": {
      "optional": true
    }
  },
  "peerDependencies": {
    "@deepseek-ai/cordis": ">=4.0.1",
    "@deepseek-ai/dsh-llm": ">=0.1.0-rc.6",
    "@deepseek-ai/dsh-session": ">=0.1.0-rc.6",
    "@deepseek-ai/dsh-system-prompt": ">=0.1.0-rc.6",
    "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6"
  },
  "dependencies": {
    "@deepseek-ai/schemastery": "^3.18.1"
  },
  "devDependencies": {
    "@deepseek-ai/cordis": "^4.0.1",
    "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
    "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
    "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
    "@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
    "@deepseek-ai/schemastery": "^3.0.0",
    "@types/node": "^26.6.5",
    "tsx": "^4.19.0",
    "typescript": "^7.0.2"
  },
  "scripts": {
    "build": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.json && python scripts/build_ui.py",
    "test": "npm run build && node --import tsx --test \"test/*.test.ts\"",
    "prepare": "node -e \"const fs=require('fs');const tsc='node_modules/typescript/bin/tsc';if(fs.existsSync(tsc)){fs.rmSync('lib',{recursive:true,force:true});require('child_process').execFileSync(process.execPath,[tsc,'-p','tsconfig.json'],{stdio:'inherit'})}else if(fs.existsSync('lib/index.js')){console.log('[prepare] 跳过构建：typescript 未安装（NODE_ENV=production 或 --omit=dev 会省略 devDependencies）——需要构建请用 npm install --include=dev')}else{console.error('[prepare] 本安装会得到一个不可用的包（issue #161）：包入口 main 指向 lib/index.js，但 lib/ 被 .gitignore 忽略、git 归档里没有它，此处 typescript 又未安装（NODE_ENV=production 或 --omit=dev 会省略 devDependencies）⇒ prepare 无法构建，lib/index.js 不存在。修法：用 npm install --include=dev 安装（带上 devDependencies，让 prepare 能构建），或改用已带构建产物的发布包。');process.exitCode=1}\" && python scripts/build_ui.py",
    "gate": "python scripts/check_unreachable.py && python scripts/check_publish_artifact.py && python scripts/check_publish_smoke.py && python scripts/cogmap_sync.py check && python scripts/link_check.py && python scripts/check_line_anchors.py && python scripts/workspace_index.py --check && python scripts/discipline_nodes.py --init --write --cg-root .tmp/discipline-cg && python scripts/verify_discipline.py --allow-missing --cg-root .tmp/discipline-cg && python scripts/gate_output.py && python scripts/gate_rust_crate_test.py && python scripts/gate_rust_parity.py && python scripts/check_local_paths.py && python scripts/body_e2e_smoke.py",
    "prepublishOnly": "python scripts/build_ui.py",
    "build:ui": "python scripts/build_ui.py"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/FuRongJun-1999/dsh-memory.git"
  },
  "engines": {
    "node": ">=22.19"
  },
  "dsh": {
    "bundle": {
      "patch": "./dsh/cordis.patch.yml"
    },
    "client": {
      "platform": "web",
      "immediately": true,
      "inject": [
        "@deepseek-ai/dsh-client-ui-renderer",
        "@deepseek-ai/dsh-client-ui-layout",
        "@deepseek-ai/dsh-client-ui-sidebar"
      ]
    }
  },
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  }
}
