fix: lots of missing pieces for python macro handling

This commit is contained in:
2026-02-27 08:33:12 +01:00
parent 916d9459ef
commit 00cf30a8f8
31 changed files with 1715 additions and 431 deletions

View File

@@ -772,6 +772,12 @@ export function registerIpcHandlers(): void {
return engine.getAllScripts();
});
safeHandle('scripts:getEnabledMacroSlugs', async () => {
const engine = getScriptEngine();
const scripts = await engine.getEnabledMacroScripts();
return scripts.map((s) => s.slug);
});
safeHandle('scripts:rebuildFromFiles', async () => {
const projectEngine = getProjectEngine();
const project = await projectEngine.getActiveProject();