#!/usr/bin/env node // DeepSeek CLI 入口:将解析和命令逻辑委托给模块化实现,便于后续扩展。 const path = require('path'); const { pathToFileURL } = require('url'); async function bootstrap() { const entry = path.join(__dirname, 'ds-lib', 'main.js'); try { const mod = await import(pathToFileURL(entry).href); await mod.main(process.argv.slice(2)); } catch (err) { console.error('程序运行失败:', err?.message || err); process.exit(1); } } bootstrap();