expxagents 0.29.1 → 0.29.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.
@@ -1,8 +1,7 @@
1
1
  import readline from 'node:readline';
2
+ import path from 'node:path';
2
3
  import dotenv from 'dotenv';
3
4
  import { AgentRunner, SessionManager, SUPPORTED_MODELS, DEFAULT_MODEL } from '@expxagents/agent';
4
- // Load .env from current working directory
5
- dotenv.config();
6
5
  const COLORS = {
7
6
  reset: '\x1b[0m',
8
7
  dim: '\x1b[2m',
@@ -31,6 +30,8 @@ ${COLORS.bold}Commands:${COLORS.reset}
31
30
  `);
32
31
  }
33
32
  export async function cliChatCommand(options) {
33
+ // Load .env from the user's current working directory (explicit path for npx compatibility)
34
+ dotenv.config({ path: path.resolve(process.cwd(), '.env') });
34
35
  const apiKey = process.env.OPENROUTER_API_KEY;
35
36
  if (!apiKey) {
36
37
  console.error('OPENROUTER_API_KEY is not set. Get one at https://openrouter.ai/keys');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expxagents",
3
- "version": "0.29.1",
3
+ "version": "0.29.2",
4
4
  "description": "Multi-agent orchestration platform for AI squads",
5
5
  "author": "ExpxAgents",
6
6
  "license": "MIT",