Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import process from 'node:process';2import {promisify} from 'node:util';3import {execFile, execFileSync} from 'node:child_process';4 5const execFileAsync = promisify(execFile);6 7export async function runAppleScript(script, {humanReadableOutput = true, signal} = {}) {8 if (process.platform !== 'darwin') {9 throw new Error('macOS only');10 }11 12 const outputArguments = humanReadableOutput ? [] : ['-ss'];13 14 const execOptions = {};15 if (signal) {16 execOptions.signal = signal;17 }18 19 const {stdout} = await execFileAsync('osascript', ['-e', script, outputArguments], execOptions);20 return stdout.trim();21}22 23export function runAppleScriptSync(script, {humanReadableOutput = true} = {}) {24 if (process.platform !== 'darwin') {25 throw new Error('macOS only');26 }27 28 const outputArguments = humanReadableOutput ? [] : ['-ss'];29 30 const stdout = execFileSync('osascript', ['-e', script, ...outputArguments], {31 encoding: 'utf8',32 stdio: ['ignore', 'pipe', 'ignore'],33 timeout: 500,34 });35 36 return stdout.trim();37}38 