()
| 132 | } |
| 133 | |
| 134 | async function fetchReadme(): Promise<string> { |
| 135 | console.log("Fetching awesome-opencode README...") |
| 136 | const response = await fetch(AWESOME_OPENCODE_RAW_URL) |
| 137 | if (!response.ok) { |
| 138 | throw new Error(`Failed to fetch README: ${response.status}`) |
| 139 | } |
| 140 | return response.text() |
| 141 | } |
| 142 | |
| 143 | async function importToConvex(extensions: ParsedExtension[], dryRun: boolean = true) { |
| 144 | if (dryRun) { |