lightpanda (#646)

* lightpanda

* lightpanda benchmarks

* improvements

* fixes

* improvements
This commit is contained in:
Chris Tate
2026-03-06 11:16:37 -06:00
committed by GitHub
parent 36c2e06f89
commit 0da54c7038
25 changed files with 2190 additions and 74 deletions
+3
View File
@@ -605,6 +605,9 @@ async function handleLaunch(
command: Command & { action: 'launch' },
browser: BrowserManager
): Promise<Response> {
if (command.engine === 'lightpanda') {
return errorResponse(command.id, 'Lightpanda engine requires --native mode');
}
await browser.launch(command);
return successResponse(command.id, { launched: true });
}
+1
View File
@@ -56,6 +56,7 @@ const launchSchema = baseCommandSchema.extend({
allowedDomains: z.array(z.string()).optional(),
actionPolicy: z.string().optional(),
confirmActions: z.array(z.string()).optional(),
engine: z.enum(['chrome', 'lightpanda']).optional(),
});
const navigateSchema = baseCommandSchema.extend({
+1
View File
@@ -36,6 +36,7 @@ export interface LaunchCommand extends BaseCommand {
allowedDomains?: string[];
actionPolicy?: string;
confirmActions?: string[];
engine?: 'chrome' | 'lightpanda';
// Auto-load state file for session persistence
autoStateFilePath?: string;
}