@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 +8 -7
- package/dist/index.js +0 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
-
|
|
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 |
|
|
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
|
-
|
|
243
|
+
Environment overrides authenticate requests independently of saved login credentials:
|
|
244
244
|
|
|
245
|
-
- Pi
|
|
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
|
|
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