@mcowger/opencode-plexus 1.14.1 → 1.14.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 CHANGED
@@ -173,16 +173,16 @@ Pi and OMP store only non-secret Plexus settings in their own `config.json`:
173
173
 
174
174
  Credentials stay in the host credential store (`auth.json` for Pi, `agent.db` for OMP). Model catalogs stay in the host model registry/store. The extension no longer writes a second model cache, ETag file, raw API response, or default-model preference.
175
175
 
176
- With `apiKeyEnv` omitted, Pi resolves configuration as follows:
176
+ With `apiKeyEnv` omitted, Pi and OMP resolve configuration as follows:
177
177
 
178
178
  ```text
179
179
  base URL: PLEXUS_API_URL → PLEXUS_BASE_URL → saved Plexus base URL
180
- API key: host credential store → PLEXUS_API_KEY process fallback
180
+ API key: PLEXUS_API_KEY → host credential store
181
181
  catalog: host model store → live Plexus refresh
182
182
  startup model: host model-picker preference
183
183
  ```
184
184
 
185
- OMP uses the same URL precedence, but its registered `PLEXUS_API_KEY` environment reference is a native config-key override, ahead of saved credentials. If that variable isn't set, OMP uses its host credential resolver. OpenCode uses `PLEXUS_API_KEY` before the saved `/connect` credential and plugin `apiKey` option.
185
+ Pi and OMP share credential selection in `plexus-models`: environment keys override saved credentials for discovery and every inference API, including Messages, Responses, and Chat Completions. OpenCode uses `PLEXUS_API_KEY` before the saved `/connect` credential and plugin `apiKey` option.
186
186
 
187
187
  `PLEXUS_API_URL` and `PLEXUS_BASE_URL` are process-only URL overrides; environment API keys aren't persisted. `/plexus status` reports the effective URL source, whether auth is available, and catalog state without exposing credentials.
188
188
 
@@ -232,7 +232,7 @@ Credential precedence:
232
232
 
233
233
  | Client | `apiKeyEnv` omitted | `apiKeyEnv` explicitly set |
234
234
  | ----------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
235
- | Pi | Saved host credential, then `PLEXUS_API_KEY` fallback | Only the named environment variable, ahead of saved credentials |
235
+ | Pi | `PLEXUS_API_KEY`, then saved host credential | Only the named environment variable, ahead of saved credentials |
236
236
  | OMP | Registered `PLEXUS_API_KEY` env override, then host credentials | Only the named environment variable, ahead of saved credentials |
237
237
  | OpenCode V2 | `PLEXUS_API_KEY`, then saved `/connect` credential, then plugin `apiKey` option | Only the named environment variable, ahead of both saved credentials and `apiKey` |
238
238
 
@@ -240,12 +240,13 @@ An explicit setting is authoritative even when it names `PLEXUS_API_KEY`. If the
240
240
 
241
241
  ### Native login with `apiKeyEnv`
242
242
 
243
- `apiKeyEnv` changes which key authenticates requests, not the native login UI:
243
+ Environment overrides authenticate requests independently of saved login credentials:
244
244
 
245
- - Pi and OMP: `/login plexus` still prompts for the base URL and API key, and saves both through the normal configuration and credential stores.
245
+ - Pi: `/login plexus` still prompts for the base URL and API key and saves both normally.
246
+ - OMP: `/login plexus` is registered only when no environment key override is active. Otherwise OMP would treat the env key as a fallback behind saved credentials. Configure the URL through `config.json` or a URL environment override instead.
246
247
  - OpenCode V2: `/connect` still stores the Plexus base URL and API key normally.
247
248
 
248
- With an explicit `apiKeyEnv`, discovery and model requests use the named environment variable rather than the key entered during login. OMP's immediate post-login refresh also uses the environment key. Login remains useful for configuring the base URL, but entering a different key won't override the environment setting.
249
+ With an explicit `apiKeyEnv`, discovery and model requests use the named environment variable rather than a saved login key. Entering a different key during login won't override the environment setting.
249
250
 
250
251
  If the named variable is missing or empty at startup, the plugin fails to load. Native login cannot repair that setting: set the variable in the launching process environment or remove `apiKeyEnv`, then restart. Removing the setting restores the default precedence above without deleting saved credentials.
251
252
 
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // @bun
2
2
  // src/plugin.ts
3
3
  import { Plugin, Provider } from "@opencode/plugin";
4
-
5
4
  // ../plexus-models/src/convert.ts
6
5
  var REASONING_PARAMS = new Set([
7
6
  "reasoning",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/opencode-plexus",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Plexus AI proxy plugin for OpenCode V2 with dynamic model discovery",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",