(path: string)
| 7 | }; |
| 8 | |
| 9 | function encodePromptPath(path: string): string { |
| 10 | return path |
| 11 | .split("/") |
| 12 | .map((segment) => encodeURIComponent(segment)) |
| 13 | .join("/"); |
| 14 | } |
| 15 | |
| 16 | export async function fetchPrompts(): Promise<PromptFileMeta[]> { |
| 17 | const payload = await httpRequest<unknown>("/api/prompts"); |
no outgoing calls
no test coverage detected