claude360 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -113,7 +113,7 @@ export async function runCli({
|
|
|
113
113
|
const baseUrl = config.baseUrl || DEFAULT_BASE_URL;
|
|
114
114
|
let api = createApiClient({ baseUrl, cliToken: config.cliToken || "" });
|
|
115
115
|
// 仅在真实终端(writeLine 未被测试替换)启用彩色与动效
|
|
116
|
-
const fancyOutput = writeLine === console.log
|
|
116
|
+
const fancyOutput = writeLine === console.log ? colorLevel() : 0;
|
|
117
117
|
// 方向键交互:真实 TTY 且交互未被测试替换时启用(优化需求第五节),
|
|
118
118
|
// 非交互环境降级为编号输入,由 prompts.js 统一处理
|
|
119
119
|
const interactiveUi = writeLine === console.log && isInteractive();
|