{
  "name": "@iflytekopensource/memflywheel",
  "version": "0.1.1",
  "description": "File-native long-term memory for Pi, Hermes, OpenCode, and OpenClaw.",
  "license": "Apache-2.0",
  "type": "module",
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "bin": {
    "memflywheel-hermes-install": "bin/install.mjs"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./server": {
      "import": "./opencode-plugin/index.js"
    }
  },
  "files": [
    "NOTICE",
    "THIRD_PARTY_LICENSES",
    "bin/**/*.mjs",
    "bridge/**/*.mjs",
    "guard/**/*.py",
    "guard/plugin.yaml",
    "provider/**/*.py",
    "plugin.yaml",
    "pi-extension/**/*.mjs",
    "!pi-extension/**/*.test.mjs",
    "opencode-plugin/**/*.js",
    "opencode-plugin/**/*.mjs",
    "openclaw-extension/**/*.mjs",
    "openclaw.plugin.json",
    "dist/index.js",
    "dist/index.d.ts"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/iflytek/memflywheel.git",
    "directory": "packages/memflywheel"
  },
  "bugs": {
    "url": "https://github.com/iflytek/memflywheel/issues"
  },
  "homepage": "https://github.com/iflytek/memflywheel#readme",
  "keywords": [
    "agent-memory",
    "adapters",
    "hermes",
    "llm",
    "memory",
    "openclaw",
    "opencode",
    "pi",
    "pi-package",
    "typescript"
  ],
  "pi": {
    "extensions": [
      "./pi-extension/index.mjs"
    ]
  },
  "openclaw": {
    "extensions": [
      "./openclaw-extension/index.mjs"
    ],
    "compat": {
      "pluginApi": ">=2026.6.10"
    }
  },
  "publishConfig": {
    "access": "public"
  },
  "engines": {
    "node": ">=22.19"
  },
  "dependencies": {
    "@earendil-works/pi-agent-core": "^0.82.1",
    "@earendil-works/pi-ai": "^0.82.1",
    "proper-lockfile": "^4.1.2"
  },
  "devDependencies": {
    "@types/node": "^22.20.1",
    "tsup": "^8.5.1",
    "typescript": "^5.5.4"
  },
  "peerDependencies": {
    "openclaw": "*"
  },
  "peerDependenciesMeta": {
    "openclaw": {
      "optional": true
    }
  },
  "scripts": {
    "build": "rm -rf dist tsconfig.tsbuildinfo && tsc -b && tsup src/index.ts --format esm --target node22 --dts --dts-resolve --out-dir dist --no-splitting --clean false --tsconfig tsconfig.bundle.json --external @earendil-works/pi-ai --external @earendil-works/pi-agent-core --external proper-lockfile --external openclaw --external 'openclaw/*' && node --check bridge/worker.mjs && node --check bin/install.mjs && python3 - <<'PY'\nfrom pathlib import Path\nfor file in ('provider/__init__.py', 'guard/__init__.py'):\n    compile(Path(file).read_text(), file, 'exec')\nPY",
    "install:hermes": "node bin/install.mjs",
    "install:local": "node bin/install.mjs",
    "test": "pnpm run build && node --test \"dist/**/*.test.js\" \"pi-extension/**/*.test.mjs\" && PYTHONDONTWRITEBYTECODE=1 python3 tests/provider_contract_test.py",
    "clean": "rm -rf dist tsconfig.tsbuildinfo"
  }
}