mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
chore(format): apply oxfmt to 3 server files
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user