11import { Sandbox as VercelSandboxSDK } from "@vercel/sandbox" ;
2- import type { Dirent } from "fs" ;
2+ import type { Dirent } from "node: fs" ;
33import type { Sandbox , SandboxStats , ExecResult } from "./interface" ;
44
55const MAX_OUTPUT_LENGTH = 50_000 ;
@@ -156,7 +156,7 @@ export class VercelSandbox implements Sandbox {
156156 return new VercelSandbox ( sdk , workingDirectory , env , currentBranch ) ;
157157 }
158158
159- async readFile ( path : string , encoding : "utf-8" ) : Promise < string > {
159+ async readFile ( path : string , _encoding : "utf-8" ) : Promise < string > {
160160 const result = await this . sdk . runCommand ( {
161161 cmd : "cat" ,
162162 args : [ path ] ,
@@ -173,7 +173,7 @@ export class VercelSandbox implements Sandbox {
173173 async writeFile (
174174 path : string ,
175175 content : string ,
176- encoding : "utf-8" ,
176+ _encoding : "utf-8" ,
177177 ) : Promise < void > {
178178 // Ensure parent directory exists
179179 const parentDir = path . substring ( 0 , path . lastIndexOf ( "/" ) ) ;
@@ -251,7 +251,7 @@ export class VercelSandbox implements Sandbox {
251251
252252 async readdir (
253253 path : string ,
254- options : { withFileTypes : true } ,
254+ _options : { withFileTypes : true } ,
255255 ) : Promise < Dirent [ ] > {
256256 // List files with type info using find
257257 const result = await this . sdk . runCommand ( {
@@ -297,7 +297,7 @@ export class VercelSandbox implements Sandbox {
297297 async exec (
298298 command : string ,
299299 cwd : string ,
300- timeoutMs : number ,
300+ _timeoutMs : number ,
301301 ) : Promise < ExecResult > {
302302 try {
303303 const result = await this . sdk . runCommand ( {
0 commit comments