billion-context 0.1.115-pr.827.669 → 0.1.115
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 +1 -1
- package/dist/index.js +2 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -203,7 +203,7 @@ bili pi # launch pi through the proxy — file-fre
|
|
|
203
203
|
bili codex # launch codex through the proxy
|
|
204
204
|
bili claude # launch claude through the proxy
|
|
205
205
|
bili omp # pi-style, file-free (#535): env + extension registerProvider + compaction cancel, real ~/.omp untouched
|
|
206
|
-
bili opencode # MITM for HTTPS + temp opencode.json (/bili/ for HTTP) + thin /acp plugin; OpenCode 2.0+: built-in V2 plugin with native bili tools, native compaction auto-disabled. Reads the user's opencode.jsonc / opencode.json / config.json (JSONC comments accepted, merged the same way opencode itself merges them)
|
|
206
|
+
bili opencode # MITM for HTTPS + temp opencode.json (/bili/ for HTTP) + thin /acp plugin; OpenCode 2.0+: built-in V2 plugin with native bili tools, native compaction auto-disabled. Reads the user's opencode.jsonc / opencode.json / config.json (JSONC comments accepted, merged the same way opencode itself merges them)
|
|
207
207
|
bili hermes # file-free (#535): hermes proxy env (HTTPS_PROXY + HERMES_CA_BUNDLE) — https via CONNECT MITM, http via absolute-form forward proxy; real ~/.hermes untouched
|
|
208
208
|
bili dsh # deepseek-harness: non-loopback upstreams ride proxy envs (https MITM, http absolute-form), loopback keeps the overlay DSH_HOME (~/.dsh-bili) rewrite (#535), built-in deepseek route via DEEPSEEK_BASE_URL, native /acp command injected via --patch
|
|
209
209
|
bili codebuddy # Tencent CodeBuddy Code CLI: CODEBUDDY_BASE_URL /bili/ rewrite (OpenAI chat completions wire), budget aligned via CODEBUDDY_AUTO_COMPACT_WINDOW; real ~/.codebuddy untouched
|
package/dist/index.js
CHANGED
|
@@ -60890,15 +60890,6 @@ function readOpencodeConfigRoot(env) {
|
|
|
60890
60890
|
}
|
|
60891
60891
|
return root;
|
|
60892
60892
|
}
|
|
60893
|
-
function opencodePluginBaseDir(env, key) {
|
|
60894
|
-
const oc = env.OPENCODE_CONFIG;
|
|
60895
|
-
if (nonEmpty2(oc)) {
|
|
60896
|
-
const parsed = readConfigFileRoot(oc);
|
|
60897
|
-
if (parsed !== void 0 && key in parsed) return path13.dirname(oc);
|
|
60898
|
-
}
|
|
60899
|
-
const xdg2 = nonEmpty2(env.XDG_CONFIG_HOME) ? env.XDG_CONFIG_HOME : path13.join(os.homedir(), ".config");
|
|
60900
|
-
return path13.join(xdg2, "opencode");
|
|
60901
|
-
}
|
|
60902
60893
|
function parseOpencodeProviders(parsed) {
|
|
60903
60894
|
const providers = {};
|
|
60904
60895
|
if (parsed !== void 0) {
|
|
@@ -69809,7 +69800,7 @@ function opencodeMajorVersion(command) {
|
|
|
69809
69800
|
ocMajorCache.set(command, major);
|
|
69810
69801
|
return major;
|
|
69811
69802
|
}
|
|
69812
|
-
function prepareOpencodeHttpRewrite(userRoot, origin, httpRewrites, httpsRewrites, pluginPath, pluginDirMode
|
|
69803
|
+
function prepareOpencodeHttpRewrite(userRoot, origin, httpRewrites, httpsRewrites, pluginPath, pluginDirMode) {
|
|
69813
69804
|
if (httpRewrites.length === 0 && httpsRewrites.length === 0 && !pluginPath) return void 0;
|
|
69814
69805
|
const root = structuredClone(userRoot ?? {});
|
|
69815
69806
|
const provRoot = root.provider;
|
|
@@ -69838,7 +69829,7 @@ function prepareOpencodeHttpRewrite(userRoot, origin, httpRewrites, httpsRewrite
|
|
|
69838
69829
|
pluginEntry = wrapDir;
|
|
69839
69830
|
}
|
|
69840
69831
|
if (pluginEntry) {
|
|
69841
|
-
const plugins = Array.isArray(root.plugin) ?
|
|
69832
|
+
const plugins = Array.isArray(root.plugin) ? root.plugin.filter((p2) => typeof p2 === "string") : [];
|
|
69842
69833
|
if (!plugins.includes(pluginEntry)) plugins.push(pluginEntry);
|
|
69843
69834
|
root.plugin = plugins;
|
|
69844
69835
|
}
|
|
@@ -69847,33 +69838,10 @@ function prepareOpencodeHttpRewrite(userRoot, origin, httpRewrites, httpsRewrite
|
|
|
69847
69838
|
...existingCompaction && typeof existingCompaction === "object" && !Array.isArray(existingCompaction) ? existingCompaction : {},
|
|
69848
69839
|
auto: false
|
|
69849
69840
|
};
|
|
69850
|
-
for (const key of ["plugin", "plugins"]) {
|
|
69851
|
-
if (Array.isArray(root[key])) {
|
|
69852
|
-
const baseDir = opencodePluginBaseDir(env, key);
|
|
69853
|
-
root[key] = root[key].map((entry) => absolutizePluginEntry(baseDir, entry));
|
|
69854
|
-
}
|
|
69855
|
-
}
|
|
69856
69841
|
const tmpFile = path18.join(tmp, "opencode.json");
|
|
69857
69842
|
fs13.writeFileSync(tmpFile, JSON.stringify(root));
|
|
69858
69843
|
return tmpFile;
|
|
69859
69844
|
}
|
|
69860
|
-
function isRelativeLocalPluginSpec(spec) {
|
|
69861
|
-
return typeof spec === "string" && spec.startsWith(".") && !path18.isAbsolute(spec);
|
|
69862
|
-
}
|
|
69863
|
-
function absolutizePluginEntry(baseDir, entry) {
|
|
69864
|
-
if (typeof entry === "string") {
|
|
69865
|
-
return isRelativeLocalPluginSpec(entry) ? path18.resolve(baseDir, entry) : entry;
|
|
69866
|
-
}
|
|
69867
|
-
if (Array.isArray(entry) && entry.length > 0 && typeof entry[0] === "string") {
|
|
69868
|
-
if (!isRelativeLocalPluginSpec(entry[0])) return entry;
|
|
69869
|
-
return [path18.resolve(baseDir, entry[0]), ...entry.slice(1)];
|
|
69870
|
-
}
|
|
69871
|
-
if (entry !== null && typeof entry === "object" && !Array.isArray(entry) && "package" in entry) {
|
|
69872
|
-
const obj = entry;
|
|
69873
|
-
if (isRelativeLocalPluginSpec(obj.package)) return { ...obj, package: path18.resolve(baseDir, obj.package) };
|
|
69874
|
-
}
|
|
69875
|
-
return entry;
|
|
69876
|
-
}
|
|
69877
69845
|
function dedupeInOrder(list) {
|
|
69878
69846
|
const seen = /* @__PURE__ */ new Set();
|
|
69879
69847
|
const out = [];
|