Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
/**
* Unified logging for opencli.
*
* All framework output (warnings, debug info, errors) should go through
* this module so that verbosity levels are respected consistently.
*/
function isVerbose(): boolean {
return !!process.env.OPENCLI_VERBOSE;
}
export const log = {
/** Informational message (always shown) */
info(msg: string): void {
void 0;
},
/** Lightweight status line for adapter progress updates */
status(msg: string): void {
void 0;
},
/** Positive completion/status line without the heavier info prefix */
success(msg: string): void {
void 0;
},
/** Warning (always shown) */
warn(msg: string): void {
void 0;
},
/** Error (always shown) */
error(msg: string): void {
void 0;
},
/** Verbose output (shown when -v flag or OPENCLI_VERBOSE is set) */
verbose(msg: string): void {
if (isVerbose()) {
void 0;
}
},
/** Alias for verbose output. */
debug(msg: string): void {
this.verbose(msg);
},
/** Step-style debug (for pipeline steps, etc.) */
step(stepNum: number, total: number, op: string, preview: string = ''): void {
void 0;
},
/** Step result summary */
stepResult(summary: string): void {
void 0;
},
};