Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"plugins": [
{
"name": "billion-context",
"version": "0.1.207",
"version": "0.1.209",
"source": {
"source": "local",
"path": "./plugins/codex"
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "billion-context",
"source": "./",
"description": "Context-compression plugin for Claude Code · month-long single sessions (billions of tokens) · high compression quality even in small context windows (100K is enough) · 5× fewer tokens",
"version": "0.1.207",
"version": "0.1.209",
"author": {
"name": "ranxianglei"
},
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "billion-context",
"version": "0.1.207",
"version": "0.1.209",
"description": "Context-compression plugin for Claude Code · month-long single sessions (billions of tokens) · high compression quality even in small context windows (100K is enough) · 5× fewer tokens",
"author": {
"name": "ranxianglei"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "billion-context",
"version": "0.1.207",
"version": "0.1.209",
"description": "A context-compression plugin \u2014 small context windows (a 100K context is enough), 5x fewer tokens, month-long single sessions (billions of tokens), and compression quality \u2014 for all agents: pi, OpenCode, Codex, Claude Code, and more. billion-context is all you need.",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion plugins/codex/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "billion-context",
"version": "0.1.207",
"version": "0.1.209",
"description": "Context-compression plugin for Codex — small context windows (100K is enough), 5x fewer tokens, month-long single sessions (billions of tokens), and high compression quality.",
"author": {
"name": "ranxianglei"
Expand Down
14 changes: 13 additions & 1 deletion release-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@
},
"billionContextReleaseNotes": {
"schema": 1,
"updated": "2026-10-21",
"updated": "2026-10-26",
"releases": [
{
"version": "0.1.208",
"date": "2026-10-25",
"tier": "critical",
"summary": "修复 0.1.207 升级后大存储打不开的问题:0.1.207 的 v8 存储迁移一次性把整个库读进内存,大库(数 GB)首次打开内存耗尽,且每次启动都重新失败,表现为卡死或反复崩溃(#4677)。本版改为逐会话迁移、崩溃自动续跑,并打印进度日志。EN: large unified stores bricked by the 0.1.207 v8 migration (whole-store load = OOM on every launch) now migrate one session per transaction, resume after a crash, and log progress. 大存储用户请立即升级;已卡住的用户升级后重启即自动续跑,不要手改 user_version。"
},
{
"version": "0.1.207",
"date": "2026-10-24",
"tier": "recommended",
"summary": "存储可靠性修复(0.1.203–0.1.204 用户请直接升到本版):折叠上下文不再因模型/窗口切换悄悄膨胀直至会话超窗;修复图片会话媒体引用泄漏与存储校验误报(#4390/#4506/#4444)。EN: storage reliability fixes — folded context no longer silently regrows after model/window switches; media-ref leak and false digest drift fixed. v0.1.203–204 users upgrade immediately."
},
{
"version": "0.1.203",
"date": "2026-10-21",
Expand Down
14 changes: 13 additions & 1 deletion tests/issue3472-mcp-structured-text.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
// structuredContent self-contained: it carries the full report itself
// (structured.text = out.text, byte-identical to content[0].text) alongside
// the machine fields. Pinned here through the REAL shim over stdio JSON-RPC:
// 1. success envelopes (acp_status / acp_cache / search_context / decompress):
// 1. success envelopes (acp_status / acp_cache / search_context / decompress
// / acp_retrieve — #4836 added retrieve; its export pointer was the last
// unlisted carrier of the same bare-{outcome} loss):
// structuredContent.text === content[0].text byte-for-byte, outcome kept;
// 2. compress applied/partial: the #2752 machine fields are unchanged, the
// text is present and byte-stable (partial incl. the marker line);
Expand All @@ -33,6 +35,7 @@ const STATUS_REPORT = [
const CACHE_REPORT = "GRAND LEDGER:\ntotal input 1,000,000 · cached 960,000 (96.0%)\nFOLD ECONOMICS:\nb1 net saved 12,000 — paid back";
const SEARCH_REPORT = 'Found 2 block(s) for "auth":\n\n[b2] "Auth System Exploration" — m00010–m00050';
const DECOMPRESSED_BODY = "[decompress b1 m00001–m00010: restored 10 item(s) — full content follows]\n<original bytes>";
const RETRIEVE_RECEIPT = "[acp-retrieved #m00013 · tool_result · 7,093 tok · 120 lines]\nOriginal exported to /state/billion-context/retrieve/m00013.txt — read it with your file tool.";
const APPLIED_TEXT = "[Compressed m00001–m00100 → 2 block(s), ~5000 tokens saved.]";
const PARTIAL_TEXT = "[Compressed m00001–m00200 → 1 block(s), ~4000 tokens saved. Errors: m00101–m00200: unknown ref]";
const REFUSED_TEXT = "[Compression FAILED: requested range(s) resolved to no messages]";
Expand Down Expand Up @@ -138,6 +141,7 @@ describe("#3472: structuredContent carries the full report for structured-prefer
proxy.canned.set("acp_cache", { ok: true, result: CACHE_REPORT, outcome: "success" });
proxy.canned.set("search_context", { ok: true, result: SEARCH_REPORT, outcome: "success" });
proxy.canned.set("decompress", { ok: true, result: DECOMPRESSED_BODY, outcome: "success" });
proxy.canned.set("acp_retrieve", { ok: true, result: RETRIEVE_RECEIPT, outcome: "success" });
proxy.canned.set("compress", { ok: true, result: APPLIED_TEXT, outcome: "applied", blocksCreated: 2 });
client = new WireShimClient({ ...process.env, BILI_MCP_PROXY: proxy.origin, BILI_CONVERSATION_ID: "conv-wire-3472" });
await client.init();
Expand Down Expand Up @@ -179,6 +183,14 @@ describe("#3472: structuredContent carries the full report for structured-prefer
}
});

it("acp_retrieve success (#4836): the export pointer rides structuredContent too", async () => {
const r = await call("acp_retrieve", { ref: "m00013" });
assert.notEqual(r.isError, true);
assert.equal(r.content?.[0]?.text, RETRIEVE_RECEIPT);
assert.deepEqual(r.structuredContent, { text: RETRIEVE_RECEIPT, outcome: "success" },
"a host that renders only structuredContent must still see the retrieval pointer");
});

it("compress applied: the #2752 machine fields stay intact, text rides alongside", async () => {
const r = await call("compress", { content: [] });
assert.notEqual(r.isError, true);
Expand Down
Loading