@openagents-org/agent-launcher 0.2.182 → 0.2.183

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.182",
3
+ "version": "0.2.183",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1105,6 +1105,14 @@ class OpenCodeAdapter extends BaseAdapter {
1105
1105
  ];
1106
1106
  if (stores.some(fileNonEmpty)) return 'present';
1107
1107
 
1108
+ // A model on a provider OpenCode sets up for itself is not ours to judge:
1109
+ // OpenCode Zen's `opencode/…` free models need no sign-in at all, and any
1110
+ // provider id other than openai/anthropic comes from OpenCode's own config.
1111
+ // Blocking those would refuse a run the CLI can make.
1112
+ const model = val('OPENCODE_MODEL') || val('LLM_MODEL');
1113
+ const provider = model.includes('/') ? model.split('/')[0].toLowerCase() : '';
1114
+ if (provider && provider !== 'openai' && provider !== 'anthropic') return 'unknown';
1115
+
1108
1116
  if (val('OPENAI_BASE_URL') || val('LLM_BASE_URL')) return 'unknown';
1109
1117
  if (Object.keys(env).some((k) => /(_API_KEY|_API_TOKEN|_TOKEN)$/.test(k) && val(k))) return 'unknown';
1110
1118
  return 'missing';