@@ -217,52 +217,6 @@ async function runGenerateContent() {
217217 return result
218218}
219219
220- // const result = {};
221- // const agentDemoBaseDir = path.join(__dirname, "../agent/demo");
222- //
223- // for (const demoIdWithFramework in config) {
224- // const demoFilesConfig = config[demoIdWithFramework];
225- // const demoDirPath = path.join(agentDemoBaseDir, demoIdWithFramework);
226- //
227- // if (!fs.existsSync(demoDirPath)) {
228- // console.warn(`Directory not found for demo: ${demoIdWithFramework}, skipping.`);
229- // continue;
230- // }
231- //
232- // result[demoIdWithFramework] = { files: [] };
233- //
234- // for (const fileName of demoFilesConfig) {
235- // const filePath = path.join(demoDirPath, fileName);
236- // if (!fs.existsSync(filePath)) {
237- // console.warn(`File not found: ${filePath}, skipping.`);
238- // continue;
239- // }
240- //
241- // try {
242- // const content = fs.readFileSync(filePath, "utf8");
243- // const extension = fileName.split(".").pop();
244- // let language = extension;
245- // if (extension === "py") language = "python";
246- // else if (extension === "css") language = "css";
247- // else if (extension === "md" || extension === "mdx") language = "markdown";
248- // else if (extension === "tsx") language = "typescript";
249- // else if (extension === "js") language = "javascript";
250- // else if (extension === "json") language = "json";
251- // else if (extension === "yaml" || extension === "yml") language = "yaml";
252- // else if (extension === "toml") language = "toml";
253- //
254- // result[demoIdWithFramework].files.push({
255- // name: fileName,
256- // content,
257- // path: path.join(demoIdWithFramework, fileName), // Store relative path within agent/demo
258- // language,
259- // type: 'file'
260- // });
261- // } catch (error) {
262- // console.error(`Error reading file ${filePath}:`, error);
263- // }
264- // }
265- // }
266220(async () => {
267221 const result = await runGenerateContent();
268222 fs.writeFileSync(
0 commit comments