From 1f74d485763e57782f779b3fc9616fbffec050ae Mon Sep 17 00:00:00 2001 From: Tasnim Kabir Sadik Date: Sat, 16 May 2026 16:11:05 +0600 Subject: [PATCH] feat: complete public entry point exports --- .gitignore | 2 +- src/index.ts | 125 ++++++++++++++++++++++++++------------------------- 2 files changed, 65 insertions(+), 62 deletions(-) diff --git a/.gitignore b/.gitignore index 253680b..4917770 100644 --- a/.gitignore +++ b/.gitignore @@ -137,6 +137,6 @@ dist .pnp.* # AI agents -.opencode +.opencode* # Added by code-review-graph .code-review-graph/ diff --git a/src/index.ts b/src/index.ts index 1794ca3..f0bca78 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,87 +1,90 @@ -export type { HttpClientConfig, RequestOptions } from "./_shared/http.js"; -export { HttpClient } from "./_shared/http.js"; -export type { WsConnectionOpts } from "./_shared/websocket.js"; -export { WsConnection } from "./_shared/websocket.js"; export type { - CapsuleCreateOptions, - CapsuleInfo, - CapsuleMetrics, - CapsuleMetricsOptions, - CapsuleResumeOptions, - WaitForReadyOptions, + CapsuleCreateOptions, + CapsuleInfo, + CapsuleMetrics, + CapsuleMetricsOptions, + CapsuleResumeOptions, + WaitForReadyOptions, } from "./capsule.js"; export { Capsule, Sandbox } from "./capsule.js"; export type { - FileUploadInput, - OperationJsonBody, - OperationJsonResponse, - OperationQueryParams, - OperationRequestOptions, + FileUploadInput, + OperationJsonBody, + OperationJsonResponse, + OperationQueryParams, + OperationRequestOptions, } from "./client.js"; export { - AccountResource, - APIKeysResource, - AuthResource, - CapsulesResource, - ChannelsResource, - FilesResource, - HostsResource, - SnapshotsResource, - TeamsResource, - UsersResource, - WrennClient, + AccountResource, + APIKeysResource, + AuthResource, + CapsulesResource, + ChannelsResource, + FilesResource, + HostsResource, + SnapshotsResource, + TeamsResource, + UsersResource, + WrennClient, } from "./client.js"; export type { - ExecCellOptions, - ExecCellResult, + ExecCellOptions, + ExecCellResult, } from "./code-interpreter/index.js"; export { CodeInterpreter, Notebook } from "./code-interpreter/index.js"; export type { - BackgroundCommandOptions, - BackgroundProcess, - CommandOptions, - CommandResult, - CommandStreamEvent, - CommandStreamOptions, - ProcessList, + BackgroundCommandOptions, + BackgroundProcess, + CommandOptions, + CommandResult, + CommandStreamEvent, + CommandStreamOptions, + ProcessList, } from "./commands.js"; export { CommandManager } from "./commands.js"; export type { ClientConfig, ResolvedClientConfig } from "./config.js"; export { - DEFAULT_BASE_URL, - ENV_API_KEY, - ENV_BASE_URL, - ENV_HOST_TOKEN, - ENV_TOKEN, - resolveConfig, + DEFAULT_BASE_URL, + ENV_API_KEY, + ENV_BASE_URL, + ENV_HOST_TOKEN, + ENV_TOKEN, + resolveConfig, } from "./config.js"; export { - AuthenticationError, - BadRequestError, - ConflictError, - ForbiddenError, - HostHasCapsulesError, - NotFoundError, - PayloadTooLargeError, - ServerError, - TimeoutError, - throwErrorFromResponse, - WrennError, + AuthenticationError, + BadRequestError, + ConflictError, + ForbiddenError, + HostHasCapsulesError, + NotFoundError, + PayloadTooLargeError, + ServerError, + TimeoutError, + throwErrorFromResponse, + WrennError, } from "./exceptions.js"; export type { - FileContent, - FileList, - ListFilesOptions, - MakeDirectoryResult, + FileContent, + FileList, + ListFilesOptions, + MakeDirectoryResult, } from "./files.js"; export { FileManager } from "./files.js"; export type { - GitCheckoutOptions, - GitCloneOptions, - GitLogOptions, - GitOptions, - GitRemoteBranchOptions, + GitCheckoutOptions, + GitCloneOptions, + GitLogOptions, + GitOptions, + GitRemoteBranchOptions, } from "./git/index.js"; export { Git } from "./git/index.js"; +export type { + $defs, + components, + operations, + paths, + webhooks, +} from "./models/generated.js"; export type { PtyEvent, PtyStartOptions } from "./pty.js"; export { PtyManager, PtySession } from "./pty.js";