@2501-ai/cli
Version:
[](https://www.npmjs.com/package/@2501-ai/cli) [](https://www.2501.ai/research/full-humaneval-benchmark) [![Lic
25 lines (24 loc) • 924 B
JavaScript
;
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';
}