chore(format): apply oxfmt to 3 server files

This commit is contained in:
Mohamed Boudra
2026-04-24 05:10:08 +07:00
parent 92261f4b56
commit d1dffd4435
3 changed files with 5 additions and 6 deletions

View File

@@ -1194,9 +1194,7 @@ export class ClaudeAgentClient implements AgentClient {
const limit = options?.limit ?? 20;
const candidates = await collectRecentClaudeSessions(projectsRoot, limit * 3);
const parsed = await Promise.all(
candidates.map((candidate) =>
parseClaudeSessionDescriptor(candidate.path, candidate.mtime),
),
candidates.map((candidate) => parseClaudeSessionDescriptor(candidate.path, candidate.mtime)),
);
return parsed
.filter((descriptor): descriptor is PersistedAgentDescriptor => descriptor !== null)

View File

@@ -37,8 +37,7 @@ async function findRolloutFile(threadId: string, root: string): Promise<string |
if (entry.isFile()) {
const matchesThread = entry.name.includes(threadId);
const matchesPrefix = entry.name.startsWith("rollout-");
const matchesExtension =
entry.name.endsWith(".json") || entry.name.endsWith(".jsonl");
const matchesExtension = entry.name.endsWith(".json") || entry.name.endsWith(".jsonl");
if (matchesThread && matchesPrefix && matchesExtension && match === null) {
match = entryPath;
}

View File

@@ -74,7 +74,9 @@ export async function findLargestDebugWavFixture(): Promise<string> {
let currentLevel: string[] = [base];
while (currentLevel.length > 0) {
const levelResults = await Promise.all(
currentLevel.map((dir) => fs.readdir(dir, { withFileTypes: true }).then((entries) => ({ dir, entries }))),
currentLevel.map((dir) =>
fs.readdir(dir, { withFileTypes: true }).then((entries) => ({ dir, entries })),
),
);
const wavPaths: string[] = [];
const nextLevel: string[] = [];