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 '../utils/dataTransfer/Clipboard.js';2import { wait } from '../utils/misc/wait.js';3import { parseKeyDef } from './parseKeyDef.js';4 5async function keyboard(text) {6 const actions = parseKeyDef(this.config.keyboardMap, text);7 for(let i = 0; i < actions.length; i++){8 await wait(this.config);9 await keyboardAction(this, actions[i]);10 }11}12async function keyboardAction(instance, { keyDef, releasePrevious, releaseSelf, repeat }) {13 const { system } = instance;14 // Release the key automatically if it was pressed before.15 if (system.keyboard.isKeyPressed(keyDef)) {16 await system.keyboard.keyup(instance, keyDef);17 }18 if (!releasePrevious) {19 for(let i = 1; i <= repeat; i++){20 await system.keyboard.keydown(instance, keyDef);21 if (i < repeat) {22 await wait(instance.config);23 }24 }25 // Release the key only on the last iteration on `state.repeatKey`.26 if (releaseSelf) {27 await system.keyboard.keyup(instance, keyDef);28 }29 }30}31async function releaseAllKeys(instance) {32 for (const k of instance.system.keyboard.getPressedKeys()){33 await instance.system.keyboard.keyup(instance, k);34 }35}36 37export { keyboard, releaseAllKeys };38 