Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ antigravity-oauth-token
*.p12
*.cer
*.crt

# generated by prepack for the release tarball
/index.js
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [2.8.3] - 2026-11-09

### Fixed

- **The release tarball could not load.** OpenCode resolves a configured plugin directory by the conventional name at its root (`index.js`), not by `main`, and the packed plugin had neither that file nor its dependencies — an unpacked install left a directory OpenCode could not import, so the provider never registered and every request fell through to "API key not valid". The pack now builds one self-contained `dist/standalone.js` and a root `index.js` that re-exports it: no `node_modules`, no build step, 725 KB instead of 12 MB. Verified by unpacking the tarball, pointing `plugins` at it, restarting the service and running a prompt — the answer comes back.
- **`install.sh` says to restart the service.** A server already running keeps the old module in memory, so a path change only takes effect after `opencode service restart`; without it the install looks broken.

## [2.8.2] - 2026-11-09

### Changed
Expand Down
22 changes: 22 additions & 0 deletions docs/TROUBLESHOOTING.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,28 @@ Con `git log` entre esa etiqueta y `main` ves qué cambió. El instalador siempr

---

## El plugin se instala pero nada responde ("API key not valid")

Ese mensaje significa que el proveedor nunca se registró: OpenCode cayó al proveedor de
Google a secas y leyó una API key del entorno. El plugin no cargó.

1. Reinicia el servidor para que vuelva a leer el módulo:

```bash
opencode service restart
```

2. Si sigue, mira el motivo en el log:

```bash
grep "failed to load plugin" ~/.local/share/opencode/log/opencode.log | tail -1
```

`Cannot find package ...` significa que al directorio le faltan archivos — reinstala
desde una release (`install.sh`), que trae un solo archivo empaquetado y ninguna
dependencia. `Plugin entrypoint not found` significa que el directorio no tiene
`index.js` en su raíz.

## "git dep preparation failed"

El plugin no se puede instalar con el spec `github:`:
Expand Down
21 changes: 21 additions & 0 deletions docs/TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,27 @@ Then restart OpenCode.

---

## The plugin installs but nothing answers ("API key not valid")

That message means the provider was never registered: OpenCode fell back to the plain
Google provider and read an API key from the environment. The plugin did not load.

1. Restart the server so the module is read again:

```bash
opencode service restart
```

2. If it persists, look at the reason in the log:

```bash
grep "failed to load plugin" ~/.local/share/opencode/log/opencode.log | tail -1
```

`Cannot find package ...` means the directory is missing files — reinstall from a
release (`install.sh`), which ships one bundled file and no dependencies.
`Plugin entrypoint not found` means the directory has no `index.js` at its root.

### "git dep preparation failed"

The plugin cannot be installed with the `github:` spec:
Expand Down
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,7 @@ say "Done. Next:"
say " 1. opencode auth login # choose Antigravity, finish the browser flow"
say " 2. opencode models # the antigravity models should now be listed"
say ""
say "If a server is already running with the previous path, restart it so the plugin"
say "is loaded again: opencode service restart"
say ""
say "Re-run this script to upgrade; it replaces $DEST."
Loading
Loading