From 80306b3a3ad59e3a06a7e694c69be3ada976ff03 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 12:15:23 +0100 Subject: feat(assistant): catalog IPC for deck-it, presets sent as written Co-Authored-By: Claude Opus 5.5 --- desktop/assistant/Files.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop/assistant/Files.js') diff --git a/desktop/assistant/Files.js b/desktop/assistant/Files.js index a75e693..bcbd9bc 100644 --- a/desktop/assistant/Files.js +++ b/desktop/assistant/Files.js @@ -48,6 +48,11 @@ function kind(path) { function chats(k) { return CHAT.includes(k); } +// kind -> suffixes, for a file dialog's filter (deck-it's picker). +function exts() { + return { text: TEXT, code: CODE, image: IMAGE, video: VIDEO, archive: ARCHIVE, pdf: [".pdf"] }; +} + // For a file the name says nothing about (a script with no suffix), from // the mime type `file -b --mime-type` reports. Prose and data are text; // any other text type, scripts and source among them, is code. -- cgit v1.2.3