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 testBackend_exports = {};30__export(testBackend_exports, {31 TestServerBackend: () => TestServerBackend32});33module.exports = __toCommonJS(testBackend_exports);34var mcp = __toESM(require("../sdk/exports"));35var import_testContext = require("./testContext");36var testTools = __toESM(require("./testTools.js"));37var generatorTools = __toESM(require("./generatorTools.js"));38var plannerTools = __toESM(require("./plannerTools.js"));39var import_tools = require("../browser/tools");40var import_configLoader = require("../../common/configLoader");41var import_response = require("../browser/response");42class TestServerBackend {43 constructor(configOption, options) {44 this.name = "Playwright";45 this.version = "0.0.1";46 this._tools = [47 plannerTools.setupPage,48 generatorTools.setupPage,49 generatorTools.generatorReadLog,50 generatorTools.generatorWriteTest,51 testTools.listTests,52 testTools.runTests,53 testTools.debugTest54 ];55 this._context = new import_testContext.TestContext(options);56 this._configOption = configOption;57 }58 async initialize(server, clientInfo) {59 const rootPath = mcp.firstRootPath(clientInfo);60 if (this._configOption) {61 this._context.initialize(rootPath, (0, import_configLoader.resolveConfigLocation)(this._configOption));62 return;63 }64 if (rootPath) {65 this._context.initialize(rootPath, (0, import_configLoader.resolveConfigLocation)(rootPath));66 return;67 }68 this._context.initialize(rootPath, (0, import_configLoader.resolveConfigLocation)(void 0));69 }70 async listTools() {71 return [72 ...this._tools.map((tool) => mcp.toMcpTool(tool.schema)),73 ...import_tools.browserTools.map((tool) => mcp.toMcpTool(tool.schema, { addIntent: true }))74 ];75 }76 async afterCallTool(name, args, result) {77 if (!import_tools.browserTools.find((tool) => tool.schema.name === name))78 return;79 const response = (0, import_response.parseResponse)(result);80 if (response && !response.isError && response.code && typeof args?.["intent"] === "string")81 this._context.generatorJournal?.logStep(args["intent"], response.code);82 }83 async callTool(name, args, progress) {84 const tool = this._tools.find((tool2) => tool2.schema.name === name);85 if (!tool)86 throw new Error(`Tool not found: ${name}. Available tools: ${this._tools.map((tool2) => tool2.schema.name).join(", ")}`);87 const parsedArguments = tool.schema.inputSchema.parse(args || {});88 return await tool.handle(this._context, parsedArguments, progress);89 }90 serverClosed() {91 void this._context.close();92 }93}94// Annotate the CommonJS export names for ESM import in node:950 && (module.exports = {96 TestServerBackend97});98 