Update main.js

Fixed unnecessary spaces and comments
This commit is contained in:
Sweaterdog 2025-03-14 12:23:19 -07:00 committed by GitHub
parent 360b937237
commit 09f36dd94b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
main.js
View file

@ -39,24 +39,16 @@ async function main() {
const args = parseArguments();
const profiles = getProfiles(args);
console.log(profiles);
const { load_memory, init_message } = settings;
// Start each agent in turn
for (let i = 0; i < profiles.length; i++) {
const agent_process = new AgentProcess();
const profile = readFileSync(profiles[i], 'utf8');
const agent_json = JSON.parse(profile);
mainProxy.registerAgent(agent_json.name, agent_process);
agent_process.start(profiles[i], load_memory, init_message, i, args.task_path, args.task_id);
// A small delay so we don't start them all at once
await new Promise(resolve => setTimeout(resolve, 1000));
}
// NEW: Finally, kick off TTS (will only run if tts_transcription is true in settings)
initTTS();
}
@ -65,4 +57,4 @@ try {
} catch (error) {
console.error('An error occurred:', error);
process.exit(1);
}
}