File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff 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 [ ] ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments