billion-context 0.1.134-pr.1084.966 → 0.1.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1001,20 +1001,6 @@ protection → Manage settings → Exclusions → Add an exclusion → Folder) a
1001
1001
  make sure no sync tool (OneDrive / Dropbox / …) is syncing that path. Full
1002
1002
  steps in [CONFIGURATION.md](CONFIGURATION.md#windows-exclude-the-sessions-dir-from-antivirus-362).
1003
1003
 
1004
- ### Session file cleanup (#1082)
1005
-
1006
- Short-lived sessions leave small state files behind that are never resumed.
1007
- With persistence enabled, bili sweeps the sessions dir at boot and hourly:
1008
- files older than `BILI_SESSION_GC_MAX_AGE_DAYS` (default 7 days) whose newest
1009
- request body was ≤ `BILI_SESSION_GC_MAX_TOKENS` tokens (default 1M) are
1010
- deleted — resuming the conversation rebuilds the context from the client's
1011
- own history, so the cost is one cold rebuild. Older files without a recorded
1012
- size need no active compression blocks and `contextTokens` under the same
1013
- ceiling. Live sessions, unreadable files, and encrypted files are handled
1014
- conservatively (decoded via `BILI_ENCRYPTION_KEY` before judging). Set
1015
- `BILI_SESSION_GC=0` to disable. Details in
1016
- [CONFIGURATION.md](CONFIGURATION.md#environment-variables).
1017
-
1018
1004
  ## Status
1019
1005
 
1020
1006
  Early. Protocol handling and compression work against mock tests (500+ passing). Real-model integration testing is the next milestone. Expect rough edges.
package/README.zh-CN.md CHANGED
@@ -495,10 +495,6 @@ Windows 下会自动发现常见 Clash/Mihomo 静态系统代理;Web UI 会显
495
495
 
496
496
  当同一会话连续 N 次写失败(默认 `5`)时,代理会打一条一次性、可操作的告警,明确指出要排除的目录。要从根上修复:把 `%USERPROFILE%\.local\share\billion-context\` 加入杀软**排除项**(Windows Defender:设置 → 病毒和威胁防护 → 管理设置 → 排除项 → 添加排除 → 文件夹),并确认没有同步工具(OneDrive / Dropbox / …)在同步该路径。完整步骤见 [CONFIGURATION.zh-CN.md](CONFIGURATION.zh-CN.md) 的「Windows:把会话目录加入杀软排除项」章节。
497
497
 
498
- ### 会话文件清理(#1082)
499
-
500
- 短命会话会留下永远不会再被恢复的小状态文件。持久化开启时,bili 在启动时和每小时扫描一次会话目录:年龄超过 `BILI_SESSION_GC_MAX_AGE_DAYS`(默认 7 天)且最近一次请求体 token 数 ≤ `BILI_SESSION_GC_MAX_TOKENS`(默认 1M)的文件会被删除 —— 继续对话会用客户端自己的历史重建上下文,代价只是一次冷重建。没有记录大小的旧文件则要求**没有活跃压缩块**且 `contextTokens` 不超过同一上限。活会话、不可读文件和加密文件(判断前先用 `BILI_ENCRYPTION_KEY` 解码)都按保守策略处理。设 `BILI_SESSION_GC=0` 可关闭。详见 [CONFIGURATION.zh-CN.md](CONFIGURATION.zh-CN.md)。
501
-
502
498
  ## 状态
503
499
 
504
500
  早期。协议处理和压缩已通过 mock 测试(500+ 项通过)。真实模型集成测试是下一里程碑。预期会有粗糙的地方。