Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix(js-sdk): export the Git argument and status types (#1642)
Mish Ushakov86f7b8e2f8c9
diff --git a/.changeset/tricky-hoops-repeat.md b/.changeset/tricky-hoops-repeat.mdnew file mode 100644index 000000000..a21ef5f76--- /dev/null+++ b/.changeset/tricky-hoops-repeat.md@@ -0,0 +1,5 @@+---+'e2b': patch+---++Export `GitResetMode`, `GitResetOpts`, `GitRestoreOpts` and `GitStatusLabel` from the JS SDK entry point, so the argument and status types of the public `git.reset()`, `git.restore()` and `git.status()` methods can be named by callersdiff --git a/packages/js-sdk/src/index.ts b/packages/js-sdk/src/index.tsindex 074aa3fc9..a3b6b5892 100644--- a/packages/js-sdk/src/index.ts+++ b/packages/js-sdk/src/index.ts@@ -101,6 +101,9 @@ export type {GitRemoteAddOpts,GitCommitOpts,GitAddOpts,+ GitResetMode,+ GitResetOpts,+ GitRestoreOpts,GitDeleteBranchOpts,GitPushOpts,GitPullOpts,@@ -110,6 +113,7 @@ export type {GitBranches,GitFileStatus,GitStatus,+ GitStatusLabel,} from './sandbox/git'export { Volume, VolumeFileType } from './volume'diff --git a/packages/js-sdk/src/sandbox/git/index.ts b/packages/js-sdk/src/sandbox/git/index.tsindex f50a864c9..2715c7494 100644--- a/packages/js-sdk/src/sandbox/git/index.ts+++ b/packages/js-sdk/src/sandbox/git/index.ts@@ -1051,4 +1051,5 @@ export type {GitConfigScope,GitFileStatus,GitStatus,+ GitStatusLabel,} from './utils'