{
  "name": "pi-sliding-context-window",
  "version": "0.1.3",
  "type": "module",
  "description": "A sliding context window for Pi coding agents. When a chat gets long, old messages are saved to a small local database instead of being dropped — so your agent can search them and pull the exact one back whenever it needs it.",
  "license": "Apache-2.0",
  "author": "Minh-Ng (https://github.com/Minh-Ng)",
  "homepage": "https://github.com/Minh-Ng/pi-sliding-context-window#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Minh-Ng/pi-sliding-context-window.git"
  },
  "bugs": {
    "url": "https://github.com/Minh-Ng/pi-sliding-context-window/issues"
  },
  "keywords": [
    "pi-package",
    "pi",
    "coding-agent",
    "context-window",
    "mcp",
    "rocksdb",
    "bm25",
    "retrieval",
    "semantic-search",
    "conversation-history",
    "llm"
  ],
  "files": [
    "bin",
    "docs/rocksdb-archive",
    "extensions",
    "src",
    "README.md",
    "!eval/**",
    "!test/**"
  ],
  "engines": {
    "node": "^22.19.0 || >=24.0.0"
  },
  "bin": {
    "context-window-mcp": "./bin/context-window-mcp.js",
    "context-windowd": "./bin/context-windowd.js",
    "context-window-index-maintenance": "./bin/context-window-index-maintenance.js",
    "context-window-semantic": "./bin/context-window-semantic.js",
    "context-window-migrate": "./bin/context-window-migrate.js"
  },
  "pi": {
    "extensions": [
      "./extensions/pi.ts"
    ]
  },
  "scripts": {
    "bench:archive": "node bench/archive/cli.js",
    "bench:posting-storage": "node bench/archive/posting-storage-cli.js",
    "bench:archive:release": "node bench/archive/release-cli.js",
    "bench:archive:system": "node bench/archive/system-cli.js",
    "test": "node --test",
    "test:benchmark-fit": "node --test test/agent-memory-compatibility.test.js test/memoryarena-http.test.js test/pi-longmemeval-harness.test.js",
    "test:daemon": "node --test test/store-contract.test.js test/daemon.test.js test/daemon-operations.test.js test/daemon-archive.test.js test/daemon-maintenance.test.js test/direct-document-recall.test.js",
    "test:migration": "node --test test/migration.test.js",
    "test:rocksdb": "node --test test/rocksdb-binding.test.js test/rocksdb-store.test.js test/rocksdb-chunks.test.js test/rocksdb-indexer.test.js test/rocksdb-exact.test.js test/rocksdb-bm25.test.js test/rocksdb-structural.test.js test/rocksdb-retention.test.js test/retrieval-locator-leases.test.js test/retrieval-search.test.js test/retrieval-traverse.test.js test/retrieval-recall.test.js test/retrieval-hints.test.js",
    "eval:migration-rehearsal": "node eval/release/migration-rehearsal.js",
    "eval:release": "node eval/release/cli.js",
    "eval:release-verifiers": "node eval/release/verifiers.js",
    "eval:retrieval": "node eval/retrieval/release-gate.js",
    "eval:hints": "node eval/retrieval/cli.js --backend eval/retrieval/rocksdb-backend.js --suite hints --output artifacts/retrieval/rocksdb-hints.json --require-all",
    "eval:sqlite-baseline": "node eval/retrieval/cli.js --backend sqlite --suite lexical --output artifacts/retrieval/sqlite-baseline.json --require-all",
    "check": "tsc --noEmit && node --check bin/context-window-mcp.js && node --check bin/context-windowd.js && node --check bin/context-window-migrate.js && node --check bin/context-window-index-maintenance.js && node --check bench/archive/posting-storage-cli.js && node --test"
  },
  "dependencies": {
    "@harperfast/rocksdb-js": "2.7.1",
    "@huggingface/transformers": "3.8.1",
    "typebox": "1.1.38",
    "usearch": "2.26.0"
  },
  "peerDependencies": {
    "@earendil-works/pi-coding-agent": ">=0.80.6",
    "@earendil-works/pi-tui": ">=0.80.6"
  },
  "peerDependenciesMeta": {
    "@earendil-works/pi-coding-agent": {
      "optional": true
    },
    "@earendil-works/pi-tui": {
      "optional": true
    }
  },
  "devDependencies": {
    "@earendil-works/pi-coding-agent": "0.82.0",
    "@earendil-works/pi-tui": "0.82.0",
    "@types/node": "24.13.3",
    "typescript": "5.9.3"
  }
}
