Consolidate engine docs and naming
This commit is contained in:
+4
-4
@@ -5,8 +5,8 @@
|
||||
import * as path from 'path';
|
||||
import * as dotenv from 'dotenv';
|
||||
import { GameRunner } from './cli/game-runner';
|
||||
// Import the server module and the startServer function for the web interface
|
||||
import { startServer } from './server';
|
||||
// YAML CLI entry point. The web default is selected by scripts/run-engine.js.
|
||||
import { startServer } from './server-yaml';
|
||||
import { loadGameConfig, projectPath } from './config/game-config';
|
||||
|
||||
// Load environment variables
|
||||
@@ -35,8 +35,8 @@ async function main(): Promise<void> {
|
||||
);
|
||||
const worldFile = projectPath(process.env.DEFAULT_WORLD_FILE || engineConfig.paths.mainGameFile);
|
||||
console.log(`Using world file: ${worldFile}`);
|
||||
console.log(`OpenRouter API Key: ${process.env.OPENROUTER_API_KEY ? '✓ Found' : '✗ Missing'}`);
|
||||
console.log(`OpenRouter Model: ${process.env.OPENROUTER_MODEL || '✗ Not specified'}`);
|
||||
console.log(`OpenRouter API Key: ${process.env.OPENROUTER_API_KEY ? 'Found' : 'Missing'}`);
|
||||
console.log(`OpenRouter Model: ${process.env.OPENROUTER_MODEL || 'Not specified'}`);
|
||||
|
||||
// Check if we should run in CLI mode
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
Reference in New Issue
Block a user