import "@johnlindquist/kit";
import { Choice } from "@johnlindquist/kit";
import { readFile } from 'node:fs/promises';
const modesDir = home('Documents', 'superwhisper', 'modes');
try {
const files = await readdir(modesDir);
const choices: Choice[] = [];
for (const file of files) {
if (file.endsWith('.json')) {
const filePath = path.join(modesDir, file);
try {
const content = await readFile(filePath, 'utf8');