Skip to content

Commit

Permalink
clean coding
Browse files Browse the repository at this point in the history
  • Loading branch information
Xm0onh committed Jan 18, 2025
1 parent 93f7a82 commit d407eb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cli/utils/characterLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ interface CharacterInfo {
export const listAvailableCharacters = async (): Promise<CharacterInfo[]> => {
const charactersPath = join(process.cwd(), 'config', 'characters');
const files = await readdir(charactersPath);
const characterFiles = files
.filter(file => file.endsWith('.yaml'))
const characterFiles = files.filter(file => file.endsWith('.yaml'));

const characters = await Promise.all(
characterFiles.map(async file => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const startWorkflowPolling = async () => {
try {
const character = await onboarding();
const _result = await runWorkflow(character.character);
logger.info('Workflow execution completed successfully');
logger.info('Workflow execution completed successfully for character:', character.character);
} catch (error) {
if (error && typeof error === 'object' && 'name' in error && error.name === 'ExitPromptError') {
logger.info('Process terminated by user');
Expand Down

0 comments on commit d407eb2

Please sign in to comment.