opencode-acp 1.14.24 → 1.14.25-pr.338.58

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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Billion-context (`bili`) proxy detection in opencode provider config.
3
+ *
4
+ * Manual proxy mode (`bili start` + a provider whose baseURL is pointed at
5
+ * the proxy) does NOT set `BILLION_CONTEXT_PROXY` — that env var is only set
6
+ * by the `bili <client>` launcher. The `/bili/` path prefix in a provider
7
+ * baseURL is the documented zero-config self-detection signal (billion-context
8
+ * CONFIGURATION.md): `http://<proxy-host>:<port>/bili/<upstream-url>`.
9
+ *
10
+ * When a provider routes through the proxy, the proxy handles context
11
+ * compression itself, so ACP must disable itself (same behavior as the
12
+ * `BILLION_CONTEXT_PROXY` env-var guard in index.ts).
13
+ */
14
+ export declare const BILI_PROXY_MARKER = "/bili/";
15
+ export interface BiliProxyMatch {
16
+ provider: string;
17
+ baseURL: string;
18
+ }
19
+ /**
20
+ * Scan opencode's provider config for every provider whose baseURL routes
21
+ * through the bili proxy (contains the `/bili/` path prefix).
22
+ *
23
+ * Pure function — safe to unit test. Returns `[]` for null/undefined/non-object
24
+ * input and for providers without a string baseURL.
25
+ */
26
+ export declare function findBiliProxyProviders(provider: unknown): BiliProxyMatch[];
27
+ //# sourceMappingURL=bili-proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bili-proxy.d.ts","sourceRoot":"","sources":["../../lib/bili-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,iBAAiB,WAAW,CAAA;AAEzC,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAClB;AAqBD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,cAAc,EAAE,CAU1E"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-acp",
4
- "version": "1.14.24",
4
+ "version": "1.14.25-pr.338.58",
5
5
  "type": "module",
6
6
  "description": "Active Context Pruning — model-driven context management for OpenCode (hardened fork of DCP with 35 bug fixes)",
7
7
  "main": "./dist/index.js",