bingocode 1.0.35 → 1.0.36
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
CHANGED
package/src/entrypoints/cli.tsx
CHANGED
|
@@ -30,13 +30,15 @@ if (feature('ABLATION_BASELINE') && process.env.CLAUDE_CODE_ABLATION_BASELINE) {
|
|
|
30
30
|
* All imports are dynamic to minimize module evaluation for fast paths.
|
|
31
31
|
* Fast-path for --version has zero imports beyond this file.
|
|
32
32
|
*/
|
|
33
|
-
import { CliMenuManager } from '../manager/CliMenuManager';
|
|
34
|
-
import { render } from 'ink';
|
|
35
33
|
|
|
36
34
|
async function main(): Promise<void> {
|
|
37
35
|
const args = process.argv.slice(2);
|
|
38
36
|
// 兼容demo参数:只渲染CLI新主菜单管理器,不影响原有逻辑
|
|
37
|
+
// CliMenuManager 和 ink 改为动态 import,避免顶层 import 导致模块副作用
|
|
38
|
+
// 抢占 stdin,使新电脑首次启动时 TrustDialog 卡死
|
|
39
39
|
if (args.includes('--cli-menu-demo')) {
|
|
40
|
+
const { CliMenuManager } = await import('../manager/CliMenuManager');
|
|
41
|
+
const { render } = await import('ink');
|
|
40
42
|
render(<CliMenuManager />);
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
const DEFAULT_HOST = '127.0.0.1';
|
|
21
21
|
const DEFAULT_PORT = Number(process.env.SERVER_PORT || 3456);
|
|
22
|
-
const HEALTH_TIMEOUT_MS =
|
|
22
|
+
const HEALTH_TIMEOUT_MS = Number(process.env.HEALTH_TIMEOUT_MS || 20000);
|
|
23
23
|
const HEALTH_RETRY_MS = 300;
|
|
24
24
|
|
|
25
25
|
function mkdirp(p: string) { fs.mkdirSync(p, { recursive: true }); }
|