UNPKG

@2501-ai/cli

Version:

[![npm version](https://img.shields.io/npm/v/@2501-ai/cli.svg)](https://www.npmjs.com/package/@2501-ai/cli) [![HumanEval Score](https://img.shields.io/badge/HumanEval-96.95%25-brightgreen.svg)](https://www.2501.ai/research/full-humaneval-benchmark) [![Lic

25 lines (24 loc) 924 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTempPath2501 = getTempPath2501; exports.getLogDir = getLogDir; exports.isWindows = isWindows; exports.getExampleWorkspacePath = getExampleWorkspacePath; const os_1 = __importDefault(require("os")); const path_1 = __importDefault(require("path")); function getTempPath2501(subPath) { const basePath = path_1.default.join(os_1.default.tmpdir(), '2501'); return subPath ? path_1.default.join(basePath, subPath) : basePath; } function getLogDir() { return getTempPath2501('logs'); } function isWindows() { return process.platform === 'win32'; } function getExampleWorkspacePath() { return isWindows() ? path_1.default.join(os_1.default.tmpdir(), 'workspace') : '/tmp/workspace'; }