// Name: Scriptkit generated scripts explorer// Description: Explore and copy scripts generated by AI for scriptkit// Cache: trueimport "@johnlindquist/kit"const getScripts = async (text: string): Promise<{ title: string, code: string }[]> => {const result = [];const sections = text.split("## ").filter(section => section.trim());sections.forEach(section => {const lines = section.split("\n");const title = lines.shift()?.trim();let codeBlock = '';let inCodeBlock = false;lines.forEach(line => {if (line.trim().startsWith("