subconscious-cli 4.0.1 → 4.0.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
@@ -188,6 +188,8 @@ export SUBCONSCIOUS_MODEL=subconscious/glm-5.2
188
188
  Every launch and install fetches the same live catalog without caching. Codex,
189
189
  OpenCode, Pi, Copilot, and Cursor receive the complete model list. The selected
190
190
  profile model is listed first only while the gateway still advertises it.
191
+ OpenCode rebuilds its isolated runtime provider on every `subc opencode` launch,
192
+ so models left in older OpenCode configuration files do not leak into the list.
191
193
  If a saved profile default has been removed, launches use the first live model;
192
194
  an explicit `--model` or `SUBCONSCIOUS_MODEL` override is always preserved.
193
195
  Claude Code exposes four native Opus/Sonnet/Haiku/Fable picker slots plus one
@@ -89,12 +89,13 @@ if [[ "${BASH_SOURCE[0]:-$0}" == "${0}" ]]; then
89
89
  fi
90
90
 
91
91
  BASE_URL="${GATEWAY_URL%/}/v1"
92
+ RUNTIME_PROVIDER_ID="subconscious-cli"
92
93
 
93
94
  export SUBCONSCIOUS_API_KEY="$API_KEY"
94
95
  # Compaction reporting needs the plugin on disk; this launch path writes nothing.
95
96
  export SUBCONSCIOUS_GATEWAY_URL="${GATEWAY_URL%/}"
96
97
  export OPENCODE_CONFIG_CONTENT=$(cat <<EOF
97
- {"\$schema":"https://opencode.ai/config.json","provider":{"subconscious":{"npm":"@ai-sdk/openai-compatible","name":"Subconscious Gateway","options":{"baseURL":"${BASE_URL}","apiKey":"{env:SUBCONSCIOUS_API_KEY}","headers":{"x-subconscious-client":"opencode"}},"models":{${MODELS_JSON}}}},"model":"subconscious/${MODEL}"}
98
+ {"\$schema":"https://opencode.ai/config.json","disabled_providers":["subconscious"],"provider":{"${RUNTIME_PROVIDER_ID}":{"npm":"@ai-sdk/openai-compatible","name":"Subconscious Gateway","options":{"baseURL":"${BASE_URL}","apiKey":"{env:SUBCONSCIOUS_API_KEY}","headers":{"x-subconscious-client":"opencode"}},"models":{${MODELS_JSON}}}},"model":"${RUNTIME_PROVIDER_ID}/${MODEL}"}
98
99
  EOF
99
100
  )
100
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subconscious-cli",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "CLI for Subconscious — run Claude Code, Codex, OpenCode, Cursor, Copilot, and Pi",
5
5
  "bin": {
6
6
  "subc": "bin/cli.js"