Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

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.md
new file mode 100644
index 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 callers
diff --git a/packages/js-sdk/src/index.ts b/packages/js-sdk/src/index.ts
index 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.ts
index 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'