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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude360",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Interactive Claude360 CLI for browser auth, API key setup, balance checks, top-up, Claude Code and Codex launch.",
5
5
  "type": "module",
6
6
  "bin": {
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 && colorEnabled();
116
+ const fancyOutput = writeLine === console.log ? colorLevel() : 0;
117
117
  // 方向键交互:真实 TTY 且交互未被测试替换时启用(优化需求第五节),
118
118
  // 非交互环境降级为编号输入,由 prompts.js 统一处理
119
119
  const interactiveUi = writeLine === console.log && isInteractive();