wip convo ui

This commit is contained in:
2026-06-23 00:59:06 +01:00
parent 25713ef614
commit 57c3275cce
30 changed files with 1649 additions and 251 deletions

View File

@@ -29,7 +29,7 @@ if (!Array.isArray(parsedTargets)) {
}
const targets = parsedTargets.filter(isDebugTarget)
const target = targets.find((t) => t.reactNative?.capabilities?.prefersFuseboxFrontend)
const target = targets.find(prefersFuseboxFrontend) ?? targets[0]
if (!target) {
console.error("No debug target found. Is the app connected?")
@@ -68,6 +68,10 @@ function isDebugTarget(value: unknown): value is DebugTarget {
return prefersFuseboxFrontend === undefined || typeof prefersFuseboxFrontend === "boolean"
}
function prefersFuseboxFrontend(target: DebugTarget) {
return target.reactNative?.capabilities?.prefersFuseboxFrontend === true
}
function getProxyWebSocketPath(webSocketDebuggerUrl: string) {
const url = new URL(webSocketDebuggerUrl)
return `${tsIp}:${PROXY_PORT}${url.pathname}${url.search}`