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.
Files changed (2) hide show
  1. package/bin/cli.js +11 -11
  2. 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: Env Var flags (Explicit platform setups)
137
- if (process.env.ANTIGRAVITY === 'true' || process.env.ANTIGRAVITY_VERSION) {
138
- return { key: 'gemini-flash', reason: 'detección de entorno Antigravity 2.0' };
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: 'detección de entorno OpenAI Codex' };
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: 'detección de entorno OpenCode' };
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, '.opencode')) || fs.existsSync(path.join(targetDir, 'opencode.json')) || fs.existsSync(path.join(targetDir, 'opencode.jsonc'))) {
149
- return { key: 'gemini-pro', reason: 'configuración de OpenCode detectada (.opencode)' };
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: 'configuración de Codex detectada (adapters/codex)' };
152
+ return { key: 'gpt-5.5', reason: 'directorio de integración de Codex detectado' };
153
153
  }
154
- if (fs.existsSync(path.join(targetDir, '.gemini')) || fs.existsSync(path.join(targetDir, 'adapters/antigravity'))) {
155
- return { key: 'gemini-flash', reason: 'configuración de Antigravity 2.0 detectada (.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' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "staffos",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "StaffOS: Staff Engineer Operating System for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": "bin/cli.js",