opencode-agy-bridge 0.2.0 → 0.2.2
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 +3 -3
- package/dist/provider.js +4 -4
- package/package.json +5 -2
- package/plugin.js +2 -0
- package/provider.js +2 -0
package/README.md
CHANGED
|
@@ -77,12 +77,12 @@ Just add the package directly with the desired version tag. OpenCode will downlo
|
|
|
77
77
|
{
|
|
78
78
|
"plugin": [
|
|
79
79
|
// ...your existing plugins...
|
|
80
|
-
"opencode-agy-bridge@0.2.
|
|
80
|
+
"opencode-agy-bridge@0.2.2"
|
|
81
81
|
],
|
|
82
82
|
"provider": {
|
|
83
83
|
// ...your existing providers...
|
|
84
84
|
"agy": {
|
|
85
|
-
"npm": "opencode-agy-bridge
|
|
85
|
+
"npm": "opencode-agy-bridge/provider",
|
|
86
86
|
"name": "Google Antigravity (via agy CLI)",
|
|
87
87
|
"options": {
|
|
88
88
|
"binary": "agy",
|
|
@@ -206,7 +206,7 @@ npm test
|
|
|
206
206
|
The project includes two GitHub Actions workflows:
|
|
207
207
|
|
|
208
208
|
- **CI (`ci.yml`):** Runs on push and pull requests to `main` or `master` to compile the project and execute all unit tests using Bun.
|
|
209
|
-
- **Release (`release.yml`):** Runs automatically when a new version tag matching `v*` (e.g., `v0.2.
|
|
209
|
+
- **Release (`release.yml`):** Runs automatically when a new version tag matching `v*` (e.g., `v0.2.2`) is pushed to the repository. It automatically installs dependencies, builds, tests, and publishes the package to the public npm registry.
|
|
210
210
|
|
|
211
211
|
Note that both `npm` and `pnpm` share the same public registry (`registry.npmjs.org`), so a single publish step makes the package installable by both package managers.
|
|
212
212
|
|
package/dist/provider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { runAgy } from "./agy-runner";
|
|
2
|
-
import { snapshot, findNewConversation, defaultConversationsDir } from "./conversation-tracker";
|
|
3
|
-
import { SessionStore } from "./session-store";
|
|
4
|
-
import { flattenPrompt } from "./prompt-mapper";
|
|
1
|
+
import { runAgy } from "./agy-runner.js";
|
|
2
|
+
import { snapshot, findNewConversation, defaultConversationsDir } from "./conversation-tracker.js";
|
|
3
|
+
import { SessionStore } from "./session-store.js";
|
|
4
|
+
import { flattenPrompt } from "./prompt-mapper.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
const prevOutputs = new Map();
|
|
7
7
|
export function extractDelta(prevOutput, fullText, conversationBound) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-agy-bridge",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"main": "./plugin.js",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"description": "OpenCode plugin + provider that routes LLM prompts to agy (Google Antigravity CLI)",
|
|
7
8
|
"exports": {
|
|
@@ -9,7 +10,9 @@
|
|
|
9
10
|
"./provider": "./dist/provider.js"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"plugin.js",
|
|
15
|
+
"provider.js"
|
|
13
16
|
],
|
|
14
17
|
"scripts": {
|
|
15
18
|
"build": "tsc",
|
package/plugin.js
ADDED
package/provider.js
ADDED