Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix(desktop): typecheck the skill folder reader's limits option as numbers

Samrat Talukdarfa1753110864
diff --git a/apps/desktop/electron/skill-folder.mjs b/apps/desktop/electron/skill-folder.mjs
index 6140fcc6..15b48c4f 100644
--- a/apps/desktop/electron/skill-folder.mjs
+++ b/apps/desktop/electron/skill-folder.mjs
@@ -45,7 +45,7 @@ async function readCapped(file, size) {
/**
* @param {string} root absolute folder path
- * @param {{ limits?: typeof SKILL_FOLDER_LIMITS }} [options]
+ * @param {{ limits?: { [K in keyof typeof SKILL_FOLDER_LIMITS]: number } }} [options]
* @returns {Promise<{ root: string; name: string; files: Array<{ path: string; contentBase64: string; executable: boolean }>; skipped: string[] }>}
*/
export async function readSkillFolder(root, options = {}) {