opencode-agy-bridge 0.2.5 → 0.2.7
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/agy-runner.js +0 -1
- package/dist/conversation-tracker.js +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -0
- package/dist/provider.js +0 -1
- package/package.json +3 -3
- package/plugin.js +1 -2
- package/provider.js +1 -2
package/README.md
CHANGED
package/dist/agy-runner.js
CHANGED
|
@@ -33,7 +33,6 @@ export async function runAgy(input) {
|
|
|
33
33
|
const stderr = Buffer.concat(stderrChunks).toString("utf-8");
|
|
34
34
|
const exitCode = code ?? 1;
|
|
35
35
|
if (stderr.trim()) {
|
|
36
|
-
console.error("[agy-bridge] agy stderr:", stderr.trimEnd());
|
|
37
36
|
}
|
|
38
37
|
if (exitCode !== 0 && !stdout.trim()) {
|
|
39
38
|
const msg = stderr.trim() || `agy exited with status ${exitCode}`;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function unified(input?: any): any;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createAgyProvider } from "./provider.js";
|
|
2
|
+
export default function unified(input) {
|
|
3
|
+
if (input && typeof input === "object" && "client" in input) {
|
|
4
|
+
return {
|
|
5
|
+
config: async () => { },
|
|
6
|
+
"chat.headers": async (incoming, output) => {
|
|
7
|
+
if (incoming?.model?.providerID !== "agy")
|
|
8
|
+
return;
|
|
9
|
+
if (!output?.headers)
|
|
10
|
+
return;
|
|
11
|
+
output.headers["x-agy-session-id"] = incoming.sessionID;
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
return createAgyProvider(input);
|
|
16
|
+
}
|
package/dist/provider.js
CHANGED
|
@@ -42,7 +42,6 @@ export function extractDelta(prevOutput, fullText, conversationBound) {
|
|
|
42
42
|
return normFull.slice(tailIdx + tail.length).replace(/^\s+/, "");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
console.error("[agy-bridge] WARN: agy stdout was not append-only; sending full output and resetting delta baseline");
|
|
46
45
|
return fullText;
|
|
47
46
|
}
|
|
48
47
|
function buildLanguageModel(modelId, opts) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-agy-bridge",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./dist/
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "OpenCode plugin + provider that routes LLM prompts to agy (Google Antigravity CLI)",
|
|
8
8
|
"exports": {
|
|
9
|
-
".": "./dist/
|
|
9
|
+
".": "./dist/index.js",
|
|
10
10
|
"./provider": "./dist/provider.js",
|
|
11
11
|
"./plugin": "./dist/plugin.js"
|
|
12
12
|
},
|
package/plugin.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default } from "./dist/
|
|
2
|
-
export * from "./dist/plugin.js";
|
|
1
|
+
export { default } from "./dist/index.js";
|
package/provider.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default } from "./dist/
|
|
2
|
-
export * from "./dist/provider.js";
|
|
1
|
+
export { default } from "./dist/index.js";
|