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 {promisify} from 'node:util';2import process from 'node:process';3import {execFile} from 'node:child_process';4import defaultBrowserId from 'default-browser-id';5import bundleName from 'bundle-name';6import windows from './windows.js';7 8export {_windowsBrowserProgIdMap} from './windows.js';9 10const execFileAsync = promisify(execFile);11 12// Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js13const titleize = string => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase());14 15export default async function defaultBrowser() {16 if (process.platform === 'darwin') {17 const id = await defaultBrowserId();18 const name = await bundleName(id);19 return {name, id};20 }21 22 if (process.platform === 'linux') {23 const {stdout} = await execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']);24 const id = stdout.trim();25 const name = titleize(id.replace(/.desktop$/, '').replace('-', ' '));26 return {name, id};27 }28 29 if (process.platform === 'win32') {30 return windows();31 }32 33 throw new Error('Only macOS, Linux, and Windows are supported');34}35 