feat(web): add workspace-aware session flow

This commit is contained in:
imccyu
2026-07-25 16:04:48 +08:00
parent 755e2a8c51
commit 9eb9c70a8a
170 changed files with 7573 additions and 3006 deletions

View File

@@ -21,6 +21,7 @@ export async function runWeb(argv: string[]): Promise<void> {
host: { type: 'string' },
port: { type: 'string' },
dev: { type: 'boolean', default: false },
'workspace-root': { type: 'string' },
},
allowPositionals: false,
})
@@ -44,6 +45,7 @@ export async function runWeb(argv: string[]): Promise<void> {
dev: values.dev,
...values.host !== undefined ? { host: values.host } : {},
...port !== undefined ? { port } : {},
...values['workspace-root'] !== undefined ? { workspaceRoot: values['workspace-root'] } : {},
})
const { ctx, port: boundPort } = await entry.run()