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 +2 -0
- package/bin/runbook/opencode/run.sh +2 -1
- package/package.json +1 -1
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":{"
|
|
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
|
|