bojansandhaus/jev-lcm-dsh-compaction ↗★ 0

@bojansandhaus/jev-lcm-dsh-compaction

基于SQLite的无损上下文管理与排序 适合需要对大模型上下文进行无损压缩与历史归档的场景。

包名
@bojansandhaus/jev-lcm-dsh-compaction
兼容性
待验证
Harness 依赖范围
0.1.6-alpha.2
Cordis 依赖范围
4.0.2
版本
1.2.0
许可证
MIT
最近更新
2026年10月9日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bojansandhaus/jev-lcm-dsh-compaction

What configuration does the DSH bundle expose?

The bundle schema in src/index.ts currently exposes these DSH-level values:

SettingDefaultMeaning
databasePathjev-lcm.sqliteLocal archive path.
thresholdRatio0.8Host compaction trigger ratio.
retainRatio0.16Host retention ratio.
maxTokens8192Engine context budget.
autotrueEnable automatic engine behavior.
jevhost-supplied valueJev engine configuration passed to the implementation.

The engine defaults in src/settings.ts include jev_provider: api_only with api_provider: auto, TypeSafe base https://api.typesafe.ai/v1, OpenRouter base https://openrouter.ai/api, TypeSafe path /systemone, OpenRouter model ~typesafe/jev-latest, Laya base http://127.0.0.1:8000 with path /v1/systemone, a 0.15 fallback threshold, a 0.40 threshold cap, a 0.10 minimum keep rate, a 500-sample calibration window, a 50-sample calibration minimum, a three-turn batch window, a 300-candidate batch cap, a 25,000-token state cap, and a 30,000-token request cap. jev_provider also accepts the DOGA fork's laya_local and laya_with_jev_fallback as aliases for laya and laya_then_hosted, resolved to the canonical value at configuration time. See docs/reference.md for the complete table and validation rules.

Provider environment variables are:

export TYPESAFE_API_KEY='set-through-your-secret-manager'

# configuration, the token is the credential):
export CLOUDFLARE_ACCOUNT_ID='0123456789abcdef0123456789abcdef'
export CLOUDFLARE_API_TOKEN='set-through-your-secret-manager'