Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
+4 -10
View File
@@ -7,7 +7,7 @@ import {
} from "@/utils/host-routes";
export function parseAgentKey(
key: string | null | undefined
key: string | null | undefined,
): { serverId: string; agentId: string } | null {
if (!key) {
return null;
@@ -36,10 +36,7 @@ export function resolveSelectedAgentForNewAgent(input: {
return { serverId: workspaceRoute.serverId, agentId };
}
}
return (
parseHostAgentRouteFromPathname(input.pathname) ??
parseAgentKey(input.selectedAgentId)
);
return parseHostAgentRouteFromPathname(input.pathname) ?? parseAgentKey(input.selectedAgentId);
}
function inferMainRepoRootFromPaseoWorktreePath(cwd: string): string | null {
@@ -60,7 +57,7 @@ function inferMainRepoRootFromPaseoWorktreePath(cwd: string): string | null {
export function resolveNewAgentWorkingDir(
cwd: string,
checkout: CheckoutStatusPayload | null
checkout: CheckoutStatusPayload | null,
): string {
const explicitMainRepoRoot = checkout?.isPaseoOwnedWorktree
? checkout.mainRepoRoot?.trim() || null
@@ -72,10 +69,7 @@ export function resolveNewAgentWorkingDir(
return inferMainRepoRootFromPaseoWorktreePath(cwd) ?? cwd;
}
export function buildNewAgentRoute(
serverId: string,
workingDir?: string | null
): string {
export function buildNewAgentRoute(serverId: string, workingDir?: string | null): string {
const trimmedWorkingDir = workingDir?.trim();
return buildHostWorkspaceRoute(serverId, trimmedWorkingDir || ".");
}