headroom-opencode 0.37.0 → 0.39.0
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 +17 -0
- package/dist/{chunk-UD4AB5X6.js → chunk-6I5ODRCW.js} +50 -19
- package/dist/chunk-6I5ODRCW.js.map +1 -0
- package/dist/{entry.opencode-BdYgRYb4.d.ts → entry.opencode-CbfMY5Ox.d.ts} +1 -0
- package/dist/entry.opencode.d.ts +1 -1
- package/dist/entry.opencode.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-UD4AB5X6.js.map +0 -1
package/dist/entry.opencode.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as default } from './entry.opencode-
|
|
1
|
+
export { a as default } from './entry.opencode-CbfMY5Ox.js';
|
|
2
2
|
import '@opencode-ai/plugin';
|
package/dist/entry.opencode.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CompressResult } from 'headroom-ai';
|
|
2
|
-
export { H as HeadroomOpenCodePluginOptions, a as HeadroomPlugin, a as default } from './entry.opencode-
|
|
2
|
+
export { H as HeadroomOpenCodePluginOptions, a as HeadroomPlugin, a as default } from './entry.opencode-CbfMY5Ox.js';
|
|
3
3
|
import '@opencode-ai/plugin';
|
|
4
4
|
|
|
5
5
|
interface HeadroomModelMapping {
|
|
@@ -61,6 +61,7 @@ declare function compressWithHeadroom(messages: unknown[], options?: {
|
|
|
61
61
|
interface InstallOptions {
|
|
62
62
|
proxyUrl: string;
|
|
63
63
|
project?: string;
|
|
64
|
+
excludeHosts?: string[];
|
|
64
65
|
debug?: boolean;
|
|
65
66
|
}
|
|
66
67
|
declare function installHeadroomTransport(options: InstallOptions): () => void;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "headroom-opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Headroom proxy integration plugin for OpenCode - routes LLM traffic through the Headroom proxy for token compression",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@opencode-ai/plugin": "^1.18.2",
|
|
22
|
-
"headroom-ai": "^0.
|
|
22
|
+
"headroom-ai": "^0.39.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@ai-sdk/openai-compatible": "*",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@typescript/native": "npm:typescript@^7.0.2",
|
|
42
41
|
"@types/node": "^26.1.1",
|
|
42
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
43
43
|
"tsup": "^8.0.0",
|
|
44
44
|
"typescript": "^6.0.3",
|
|
45
|
-
"vitest": "^
|
|
45
|
+
"vitest": "^5.0.0"
|
|
46
46
|
},
|
|
47
47
|
"overrides": {
|
|
48
48
|
"esbuild": "^0.28.1"
|