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
1"use strict";2var __create = Object.create;3var __defProp = Object.defineProperty;4var __getOwnPropDesc = Object.getOwnPropertyDescriptor;5var __getOwnPropNames = Object.getOwnPropertyNames;6var __getProtoOf = Object.getPrototypeOf;7var __hasOwnProp = Object.prototype.hasOwnProperty;8var __export = (target, all) => {9 for (var name in all)10 __defProp(target, name, { get: all[name], enumerable: true });11};12var __copyProps = (to, from, except, desc) => {13 if (from && typeof from === "object" || typeof from === "function") {14 for (let key of __getOwnPropNames(from))15 if (!__hasOwnProp.call(to, key) && key !== except)16 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });17 }18 return to;19};20var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(21 // If the importer is in node compatibility mode or this is not an ESM22 // file that has been converted to a CommonJS file using a Babel-23 // compatible transform (i.e. "__esModule" has not been set), then set24 // "default" to the CommonJS "module.exports" for node compatibility.25 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,26 mod27));28var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);29var browserBackend_exports = {};30__export(browserBackend_exports, {31 runBrowserBackendAtEnd: () => runBrowserBackendAtEnd32});33module.exports = __toCommonJS(browserBackend_exports);34var mcp = __toESM(require("../sdk/exports"));35var import_globals = require("../../common/globals");36var import_util = require("../../util");37var import_config = require("../browser/config");38var import_browserServerBackend = require("../browser/browserServerBackend");39var import_tab = require("../browser/tab");40async function runBrowserBackendAtEnd(context, errorMessage) {41 const testInfo = (0, import_globals.currentTestInfo)();42 if (!testInfo)43 return;44 const shouldPause = errorMessage ? testInfo?._pauseOnError() : testInfo?._pauseAtEnd();45 if (!shouldPause)46 return;47 const lines = [];48 if (errorMessage)49 lines.push(`### Paused on error:`, (0, import_util.stripAnsiEscapes)(errorMessage));50 else51 lines.push(`### Paused at end of test. ready for interaction`);52 for (let i = 0; i < context.pages().length; i++) {53 const page = context.pages()[i];54 const stateSuffix = context.pages().length > 1 ? i + 1 + " of " + context.pages().length : "state";55 lines.push(56 "",57 `### Page ${stateSuffix}`,58 `- Page URL: ${page.url()}`,59 `- Page Title: ${await page.title()}`.trim()60 );61 let console = errorMessage ? await import_tab.Tab.collectConsoleMessages(page) : [];62 console = console.filter((msg) => !msg.type || msg.type === "error");63 if (console.length) {64 lines.push("- Console Messages:");65 for (const message of console)66 lines.push(` - ${message.toString()}`);67 }68 lines.push(69 `- Page Snapshot:`,70 "```yaml",71 await page._snapshotForAI(),72 "```"73 );74 }75 lines.push("");76 if (errorMessage)77 lines.push(`### Task`, `Try recovering from the error prior to continuing`);78 const config = {79 ...import_config.defaultConfig,80 capabilities: ["testing"]81 };82 await mcp.runOnPauseBackendLoop(new import_browserServerBackend.BrowserServerBackend(config, identityFactory(context)), lines.join("\n"));83}84function identityFactory(browserContext) {85 return {86 createContext: async (clientInfo, abortSignal, toolName) => {87 return {88 browserContext,89 close: async () => {90 }91 };92 }93 };94}95// Annotate the CommonJS export names for ESM import in node:960 && (module.exports = {97 runBrowserBackendAtEnd98});99 