Skip to content

Commit 01b544d

Browse files
committed
add tasks pint inntegration
1 parent d9160b9 commit 01b544d

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/PintClient/index.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { SandboxSession } from "../types";
44
import { Emitter, EmitterSubscription, Event } from "../utils/event";
55
import { Disposable } from "../utils/disposable";
66
import { Client, createClient, createConfig } from "../api-clients/pint/client";
7+
import { PintClientTasks } from "./tasks";
78
import {
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

5951
function parseStreamEvent<T>(evt: unknown): T {
6052
if (typeof evt !== "string") {
@@ -390,7 +382,7 @@ export class PintShellsClient implements IAgentClientShells {
390382
}
391383

392384
export 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

Comments
 (0)