Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
testTools.js116 linesDownload Raw Back to test
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 testTools_exports = {};30__export(testTools_exports, {31  debugTest: () => debugTest,32  listTests: () => listTests,33  runTests: () => runTests34});35module.exports = __toCommonJS(testTools_exports);36var import_bundle = require("../sdk/bundle");37var import_list = __toESM(require("../../reporters/list"));38var import_listModeReporter = __toESM(require("../../reporters/listModeReporter"));39var import_testTool = require("./testTool");40const listTests = (0, import_testTool.defineTestTool)({41  schema: {42    name: "test_list",43    title: "List tests",44    description: "List tests",45    inputSchema: import_bundle.z.object({}),46    type: "readOnly"47  },48  handle: async (context, _, progress) => {49    const { screen } = context.createScreen(progress);50    const reporter = new import_listModeReporter.default({ screen, includeTestId: true });51    const testRunner = await context.createTestRunner();52    await testRunner.listTests(reporter, {});53    return { content: [] };54  }55});56const runTests = (0, import_testTool.defineTestTool)({57  schema: {58    name: "test_run",59    title: "Run tests",60    description: "Run tests",61    inputSchema: import_bundle.z.object({62      locations: import_bundle.z.array(import_bundle.z.string()).optional().describe('Folder, file or location to run: "test/e2e" or "test/e2e/file.spec.ts" or "test/e2e/file.spec.ts:20"'),63      projects: import_bundle.z.array(import_bundle.z.string()).optional().describe('Projects to run, projects from playwright.config.ts, by default runs all projects. Running with "chromium" is a good start')64    }),65    type: "readOnly"66  },67  handle: async (context, params, progress) => {68    const { screen } = context.createScreen(progress);69    const configDir = context.configLocation.configDir;70    const reporter = new import_list.default({ configDir, screen, includeTestId: true, prefixStdio: "out" });71    const testRunner = await context.createTestRunner();72    await testRunner.runTests(reporter, {73      locations: params.locations,74      projects: params.projects,75      disableConfigReporters: true76    });77    return { content: [] };78  }79});80const debugTest = (0, import_testTool.defineTestTool)({81  schema: {82    name: "test_debug",83    title: "Debug single test",84    description: "Debug single test",85    inputSchema: import_bundle.z.object({86      test: import_bundle.z.object({87        id: import_bundle.z.string().describe("Test ID to debug."),88        title: import_bundle.z.string().describe("Human readable test title for granting permission to debug the test.")89      })90    }),91    type: "readOnly"92  },93  handle: async (context, params, progress) => {94    const { screen } = context.createScreen(progress);95    const configDir = context.configLocation.configDir;96    const reporter = new import_list.default({ configDir, screen, includeTestId: true, prefixStdio: "out" });97    const testRunner = await context.createTestRunner();98    await testRunner.runTests(reporter, {99      headed: !context.options?.headless,100      testIds: [params.test.id],101      // For automatic recovery102      timeout: 0,103      workers: 1,104      pauseOnError: true,105      disableConfigReporters: true106    });107    return { content: [] };108  }109});110// Annotate the CommonJS export names for ESM import in node:1110 && (module.exports = {112  debugTest,113  listTests,114  runTests115});116 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai