@@ -4,6 +4,7 @@ import { SandboxSession } from "../types";
44import { Emitter , EmitterSubscription , Event } from "../utils/event" ;
55import { Disposable } from "../utils/disposable" ;
66import { Client , createClient , createConfig } from "../api-clients/pint/client" ;
7+ import { PintClientTasks } from "./tasks" ;
78import {
89 IAgentClient ,
910 IAgentClientPorts ,
@@ -46,15 +47,6 @@ import {
4647 ShellDTO ,
4748 ShellProcessStatus ,
4849} from "../pitcher-protocol/messages/shell" ;
49- import {
50- FSReadFileParams ,
51- FSReadFileResult ,
52- FSReadDirParams ,
53- FSReadDirResult ,
54- FSReadDirMessage ,
55- FSWriteFileParams ,
56- FSWRiteFileResult ,
57- } from "../pitcher-protocol/messages/fs" ;
5850
5951function parseStreamEvent < T > ( evt : unknown ) : T {
6052 if ( typeof evt !== "string" ) {
@@ -390,7 +382,7 @@ export class PintShellsClient implements IAgentClientShells {
390382}
391383
392384export class PintFsClient implements IAgentClientFS {
393- constructor ( private apiClient : Client , private sandboxId : string ) { }
385+ constructor ( private apiClient : Client ) { }
394386
395387 async readFile ( path : string ) : Promise < PickRawFsResult < "fs/readFile" > > {
396388 try {
@@ -754,7 +746,8 @@ export class PintClient implements IAgentClient {
754746
755747 this . ports = new PintPortsClient ( apiClient , this . sandboxId ) ;
756748 this . shells = new PintShellsClient ( apiClient , this . sandboxId ) ;
757- this . fs = new PintFsClient ( apiClient , this . sandboxId ) ;
749+ this . fs = new PintFsClient ( apiClient ) ;
750+ this . tasks = new PintClientTasks ( apiClient ) ;
758751 }
759752
760753 ping ( ) : void { }
0 commit comments