@@ -67,42 +67,42 @@ export const dumpOutlineResult = async <
6767 await Promise . all (
6868 Array . from ( userMessages . entries ( ) ) . map ( async ( [ idx , message ] ) => {
6969 const messageNum = String ( idx + 1 ) . padStart ( 2 , "0" ) ;
70- const fileName = `${ messageNum } _user_message.md` ;
71- const filePath = path . join ( subfolderPath , fileName ) ;
70+ const contentFileName = `${ messageNum } _user_message.md` ;
71+ const contentFilePath = path . join ( subfolderPath , contentFileName ) ;
7272
7373 let content = `# User Input ${ idx + 1 } \n\n` ;
7474 content += `**ResultId**: ${ result . resultId } \n\n` ;
7575 content += "```\n" ;
7676 content += message . content ;
7777 content += "\n```\n" ;
7878
79- await fs . writeFile ( filePath , content , "utf8" ) ;
79+ await fs . writeFile ( contentFilePath , content , "utf8" ) ;
8080 } )
8181 ) ;
8282 }
8383
8484 {
8585 const messageNum = String ( userMessages . length + 1 ) . padStart ( 2 , "0" ) ;
86- const fullDataFileName = `${ messageNum } _llm_output.md` ;
87- const fullDataFilePath = path . join ( subfolderPath , fullDataFileName ) ;
86+ const contentFileName = `${ messageNum } _llm_output.md` ;
87+ const contentFilePath = path . join ( subfolderPath , contentFileName ) ;
8888
89- let fullDataContent = `# Full Outline Result\n\n` ;
90- fullDataContent += `**ResultId**: ${ result . resultId } \n\n` ;
89+ let content = `# Full Outline Result\n\n` ;
90+ content += `**ResultId**: ${ result . resultId } \n\n` ;
9191
9292 if ( result . param ) {
93- fullDataContent += `## Completion Input Data\n\n` ;
94- fullDataContent += "```json\n" ;
95- fullDataContent += JSON . stringify ( result . param , null , 2 ) ;
96- fullDataContent += "\n```\n\n" ;
93+ content += `## Completion Input Data\n\n` ;
94+ content += "```json\n" ;
95+ content += JSON . stringify ( result . param , null , 2 ) ;
96+ content += "\n```\n\n" ;
9797 }
9898
9999 if ( result . data ) {
100- fullDataContent += `## Completion Output Data\n\n` ;
101- fullDataContent += "```json\n" ;
102- fullDataContent += JSON . stringify ( result . data , null , 2 ) ;
103- fullDataContent += "\n```\n" ;
100+ content += `## Completion Output Data\n\n` ;
101+ content += "```json\n" ;
102+ content += JSON . stringify ( result . data , null , 2 ) ;
103+ content += "\n```\n" ;
104104 }
105105
106- await fs . writeFile ( fullDataFilePath , fullDataContent , "utf8" ) ;
106+ await fs . writeFile ( contentFilePath , content , "utf8" ) ;
107107 }
108108} ;
0 commit comments