staffos 0.1.7 → 0.1.8
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/bin/cli.js +11 -11
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -133,26 +133,26 @@ const modelsPricing = {
|
|
|
133
133
|
|
|
134
134
|
// Auto-detect the active AI environment
|
|
135
135
|
function detectActiveAI() {
|
|
136
|
-
// Heuristic 1:
|
|
137
|
-
if (process.env.
|
|
138
|
-
return { key: 'gemini-flash', reason: '
|
|
136
|
+
// Heuristic 1: Active Runtime Environment Variables (HIGHEST PRIORITY)
|
|
137
|
+
if (process.env.ANTIGRAVITY_AGENT === '1' || process.env.ANTIGRAVITY_PROJECT_ID) {
|
|
138
|
+
return { key: 'gemini-flash', reason: 'ejecutando en entorno Antigravity 2.0' };
|
|
139
139
|
}
|
|
140
140
|
if (process.env.CODEX === 'true' || process.env.CODEX_AGENT) {
|
|
141
|
-
return { key: 'gpt-5.5', reason: '
|
|
141
|
+
return { key: 'gpt-5.5', reason: 'ejecutando en entorno OpenAI Codex' };
|
|
142
142
|
}
|
|
143
143
|
if (process.env.OPENCODE === 'true') {
|
|
144
|
-
return { key: 'gemini-pro', reason: '
|
|
144
|
+
return { key: 'gemini-pro', reason: 'ejecutando en entorno OpenCode' };
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
// Heuristic 2: Directory structures
|
|
148
|
-
if (fs.existsSync(path.join(targetDir, '.
|
|
149
|
-
return { key: 'gemini-
|
|
147
|
+
// Heuristic 2: Directory structures (Fallback if no env var is present)
|
|
148
|
+
if (fs.existsSync(path.join(targetDir, '.gemini')) || fs.existsSync(path.join(targetDir, 'adapters/antigravity'))) {
|
|
149
|
+
return { key: 'gemini-flash', reason: 'directorio de integración de Antigravity 2.0 detectado' };
|
|
150
150
|
}
|
|
151
151
|
if (fs.existsSync(path.join(targetDir, 'adapters/codex')) || fs.existsSync(path.join(targetDir, 'codex.json'))) {
|
|
152
|
-
return { key: 'gpt-5.5', reason: '
|
|
152
|
+
return { key: 'gpt-5.5', reason: 'directorio de integración de Codex detectado' };
|
|
153
153
|
}
|
|
154
|
-
if (fs.existsSync(path.join(targetDir, '.
|
|
155
|
-
return { key: 'gemini-
|
|
154
|
+
if (fs.existsSync(path.join(targetDir, '.opencode')) || fs.existsSync(path.join(targetDir, 'opencode.json')) || fs.existsSync(path.join(targetDir, 'opencode.jsonc'))) {
|
|
155
|
+
return { key: 'gemini-pro', reason: 'directorio de integración de OpenCode detectado' };
|
|
156
156
|
}
|
|
157
157
|
if (fs.existsSync(path.join(targetDir, '.claudecode'))) {
|
|
158
158
|
return { key: 'claude-sonnet', reason: 'directorio .claudecode detectado' };
|