Skip to content

Commit 53857c2

Browse files
committed
lint
1 parent 95b6080 commit 53857c2

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/api/posthogClient.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,27 +185,29 @@ export class PostHogAPIClient {
185185
try {
186186
const task = (await this.getTask(taskId)) as unknown as Task;
187187
const logUrl = task?.latest_run?.log_url;
188-
188+
189189
if (!logUrl) {
190190
return [];
191191
}
192192

193193
const response = await fetch(logUrl);
194-
194+
195195
if (!response.ok) {
196-
console.warn(`Failed to fetch logs: ${response.status} ${response.statusText}`);
196+
console.warn(
197+
`Failed to fetch logs: ${response.status} ${response.statusText}`,
198+
);
197199
return [];
198200
}
199201

200202
const content = await response.text();
201-
203+
202204
if (!content.trim()) {
203205
return [];
204206
}
205207
return content
206208
.trim()
207-
.split('\n')
208-
.map(line => JSON.parse(line) as LogEntry);
209+
.split("\n")
210+
.map((line) => JSON.parse(line) as LogEntry);
209211
} catch (err) {
210212
console.warn("Failed to fetch task logs from latest run", err);
211213
return [];

vite.main.config.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function copyClaudeExecutable(): Plugin {
7373
// IMPORTANT: Copy to claude-cli/ subdirectory to isolate the package.json
7474
// If we put package.json in .vite/build/, it breaks Vite's CommonJS output
7575
const destDir = join(__dirname, ".vite/build/claude-cli");
76-
76+
7777
if (!existsSync(destDir)) {
7878
mkdirSync(destDir, { recursive: true });
7979
}
@@ -83,15 +83,15 @@ function copyClaudeExecutable(): Plugin {
8383
for (const file of files) {
8484
const src = join(sdkDir, file);
8585
const dest = join(destDir, file);
86-
86+
8787
if (!existsSync(src)) {
8888
console.warn(
8989
`[copy-claude-executable] ${file} not found. ` +
90-
`Run 'pnpm build' in the agent directory first.`
90+
`Run 'pnpm build' in the agent directory first.`,
9191
);
9292
continue;
9393
}
94-
94+
9595
copyFileSync(src, dest);
9696
}
9797

0 commit comments

Comments
 (0)