This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/node-llama-cpp/dist/utils/getConsoleLogPrefix.js
T

10 lines
476 B
JavaScript

import chalk from "chalk";
import { getForceShowConsoleLogPrefix, getIsRunningFromCLI } from "../state.js";
export function getConsoleLogPrefix(forcePrefix = false, padEnd = true) {
const isInCLI = getIsRunningFromCLI();
const forceShowLogPrefix = getForceShowConsoleLogPrefix();
if (!isInCLI || forceShowLogPrefix || forcePrefix)
return chalk.gray("[node-llama-cpp]") + (padEnd ? " " : "");
return "";
}
//# sourceMappingURL=getConsoleLogPrefix.js.map