kimi-code/packages/minidb/package.json
7Sageer 99c51d1c9f refactor(agent-core-v2): drop the kernel lock, make the pure-JS lock the only cross-process lock
The A/B experiment on this branch concluded in favor of the pure-JS
protocol, keeping the repo free of native dependencies:

- agent-core-v2 binds PureJsLockService unconditionally; the
  KIMI_LOCK_IMPL switch and the kernel-backed CrossProcessLockService
  are removed.
- packages/kernel-file-lock is deleted together with the
  fs-native-extensions native dependency (flake.nix workspace lists,
  CLI native packaging registry, SEA smoke checks and bundle externals
  updated accordingly).
- minidb once again ships its built-in pure-JS writer lock as the
  default tryAcquire; the injection interface is kept for tests and
  hosts, and an explicit null still opts out. Tests that pinned
  kernel-only semantics now pin the pure-JS equivalents (dead-pid
  takeover, tampered-payload fencing), and dual-implementation
  parameterization is removed throughout.
2026-07-28 21:30:18 +08:00

50 lines
1.2 KiB
JSON

{
"name": "@moonshot-ai/minidb",
"version": "0.2.0",
"private": true,
"description": "A pure-Node.js embedded key-value database mixing Redis-style in-memory KV with SQLite-style durable persistence (WAL + snapshot).",
"license": "MIT",
"author": "Moonshot AI",
"homepage": "https://github.com/MoonshotAI/kimi-code/tree/main/packages/minidb#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/MoonshotAI/kimi-code.git",
"directory": "packages/minidb"
},
"bugs": {
"url": "https://github.com/MoonshotAI/kimi-code/issues"
},
"keywords": [
"kimi",
"database",
"key-value",
"embedded",
"wal",
"snapshot"
],
"files": [
"dist"
],
"type": "module",
"imports": {
"#/*": "./src/*.ts"
},
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
},
"./cluster": {
"types": "./src/cluster/index.ts",
"default": "./src/cluster/index.ts"
}
},
"scripts": {
"build": "tsdown",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"bench": "node --import tsx bench/bench.ts",
"bench:cluster": "node --import tsx bench/cluster.ts",
"clean": "rm -rf dist"
}
}