fix(cli): 自动拉起 daemon 走 boot.js(带 BrowserManager),修复 open/list/get 全 not found;daemon 增 visionl-daemon bin + start 指向 boot;docs 同步当前 CLI(无 daemon/page 子命令,Bing 易反爬请用百度等国内源)
This commit is contained in:
1 parent
36780493a5
commit
c3a7f74b1f
4 files changed
+50
-14
No files matched your search
@@ -20,7 +20,10 @@ export async function ensureDaemonRunning(port: number): Promise<VisionLClient>
|
||||
}
|
||||
}
|
||||
|
||||
const daemonEntryPath = path.resolve(__dirname, '../../daemon/dist/server.js');
|
||||
// Spawn the browser-enabled daemon entry (boot.js) so that page/content/
|
||||
// action routes are registered. Spawning server.js directly would start a
|
||||
// browser-less daemon that only serves /health.
|
||||
const daemonEntryPath = path.resolve(__dirname, '../../daemon/dist/boot.js');
|
||||
spawn('node', [daemonEntryPath], {
|
||||
env: { ...process.env, VISIONL_PORT: String(port) },
|
||||
stdio: 'ignore',
|
||||
|
||||
Reference in new issue
Block a user