Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
feat(browser): fix routing
mogery57bd9c319b1d
diff --git a/apps/api/src/controllers/v2/browser.ts b/apps/api/src/controllers/v2/browser.tsindex 87a1b4d8a..16f531d57 100644--- a/apps/api/src/controllers/v2/browser.ts+++ b/apps/api/src/controllers/v2/browser.ts@@ -86,6 +86,7 @@ interface BrowserListResponse {status: string;cdpUrl: string;liveViewUrl: string;+ interactiveLiveViewUrl: string;streamWebView: boolean;createdAt: string;lastActivity: string;@@ -290,7 +291,8 @@ export async function browserCreateController(workspace_id: "",context_id: "",cdp_url: svcResponse.cdpUrl,- cdp_path: svcResponse.interactiveIframeUrl, // repurposed: stores view URL+ cdp_path: svcResponse.iframeUrl, // repurposed: stores view URL+ cdp_interactive_path: svcResponse.interactiveIframeUrl, // repurposed: stores interactive view URLstream_web_view: streamWebView,status: "active",ttl_total: ttl,@@ -572,6 +574,7 @@ export async function browserListController(status: r.status,cdpUrl: r.cdp_url,liveViewUrl: r.cdp_path, // cdp_path stores the view URL+ interactiveLiveViewUrl: r.cdp_interactive_path, // cdp_interactive_path stores the interactive view URLstreamWebView: r.stream_web_view,createdAt: r.created_at,lastActivity: r.updated_at,diff --git a/apps/api/src/lib/browser-sessions.ts b/apps/api/src/lib/browser-sessions.tsindex 7e35f6d6e..2b7b9da36 100644--- a/apps/api/src/lib/browser-sessions.ts+++ b/apps/api/src/lib/browser-sessions.ts@@ -21,6 +21,7 @@ interface BrowserSessionRow {context_id: string; // unused (legacy), stored as ""cdp_url: string; // full CDP WebSocket URL from browser servicecdp_path: string; // repurposed: stores the view WebSocket URL+ cdp_interactive_path: string; // repurposed: stores the interactive view WebSocket URLstream_web_view: boolean;status: BrowserSessionStatus;ttl_total: number;