@daytonaio/sdk 0.193.0-alpha.1 → 0.194.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/LICENSE +1 -1
  2. package/cjs/CodeInterpreter.js +1 -1
  3. package/cjs/CodeInterpreter.js.map +1 -1
  4. package/cjs/ComputerUse.js.map +1 -1
  5. package/cjs/Daytona.d.ts +5 -11
  6. package/cjs/Daytona.js +16 -48
  7. package/cjs/Daytona.js.map +1 -1
  8. package/cjs/FileSystem.d.ts +11 -1
  9. package/cjs/FileSystem.js +14 -3
  10. package/cjs/FileSystem.js.map +1 -1
  11. package/cjs/Git.d.ts +157 -4
  12. package/cjs/Git.js +252 -4
  13. package/cjs/Git.js.map +1 -1
  14. package/cjs/Image.js +1 -1
  15. package/cjs/Image.js.map +1 -1
  16. package/cjs/LspServer.js +1 -1
  17. package/cjs/LspServer.js.map +1 -1
  18. package/cjs/ObjectStorage.js +1 -1
  19. package/cjs/ObjectStorage.js.map +1 -1
  20. package/cjs/Process.js +1 -1
  21. package/cjs/Process.js.map +1 -1
  22. package/cjs/PtyHandle.js +1 -1
  23. package/cjs/PtyHandle.js.map +1 -1
  24. package/cjs/Sandbox.d.ts +1 -5
  25. package/cjs/Sandbox.js +3 -7
  26. package/cjs/Sandbox.js.map +1 -1
  27. package/cjs/Secret.d.ts +172 -0
  28. package/cjs/Secret.js +153 -0
  29. package/cjs/Secret.js.map +1 -0
  30. package/cjs/Snapshot.js +1 -1
  31. package/cjs/Snapshot.js.map +1 -1
  32. package/cjs/Volume.js +1 -1
  33. package/cjs/Volume.js.map +1 -1
  34. package/cjs/errors/DaytonaError.d.ts +2 -4
  35. package/cjs/errors/DaytonaError.js +7 -11
  36. package/cjs/errors/DaytonaError.js.map +1 -1
  37. package/cjs/index.d.ts +2 -3
  38. package/cjs/index.js +4 -6
  39. package/cjs/index.js.map +1 -1
  40. package/cjs/types/Charts.js +1 -1
  41. package/cjs/types/Charts.js.map +1 -1
  42. package/cjs/types/CodeInterpreter.js +1 -1
  43. package/cjs/types/CodeInterpreter.js.map +1 -1
  44. package/cjs/types/ExecuteResponse.js +1 -1
  45. package/cjs/types/ExecuteResponse.js.map +1 -1
  46. package/cjs/types/Pty.js +1 -1
  47. package/cjs/types/Pty.js.map +1 -1
  48. package/cjs/utils/Binary.js +1 -1
  49. package/cjs/utils/Binary.js.map +1 -1
  50. package/cjs/utils/FileTransfer.js +1 -1
  51. package/cjs/utils/FileTransfer.js.map +1 -1
  52. package/cjs/utils/Import.js +1 -1
  53. package/cjs/utils/Import.js.map +1 -1
  54. package/cjs/utils/Multipart.js +1 -1
  55. package/cjs/utils/Multipart.js.map +1 -1
  56. package/cjs/utils/Runtime.js +1 -1
  57. package/cjs/utils/Runtime.js.map +1 -1
  58. package/cjs/utils/Stream.js.map +1 -1
  59. package/cjs/utils/WebSocket.js +1 -1
  60. package/cjs/utils/WebSocket.js.map +1 -1
  61. package/cjs/utils/otel.decorator.js +1 -1
  62. package/cjs/utils/otel.decorator.js.map +1 -1
  63. package/esm/CodeInterpreter.js +1 -1
  64. package/esm/CodeInterpreter.js.map +1 -1
  65. package/esm/ComputerUse.js.map +1 -1
  66. package/esm/Daytona.d.ts +5 -11
  67. package/esm/Daytona.js +17 -49
  68. package/esm/Daytona.js.map +1 -1
  69. package/esm/FileSystem.d.ts +11 -1
  70. package/esm/FileSystem.js +14 -3
  71. package/esm/FileSystem.js.map +1 -1
  72. package/esm/Git.d.ts +157 -4
  73. package/esm/Git.js +252 -4
  74. package/esm/Git.js.map +1 -1
  75. package/esm/Image.js +1 -1
  76. package/esm/Image.js.map +1 -1
  77. package/esm/LspServer.js +1 -1
  78. package/esm/LspServer.js.map +1 -1
  79. package/esm/ObjectStorage.js +1 -1
  80. package/esm/ObjectStorage.js.map +1 -1
  81. package/esm/Process.js +1 -1
  82. package/esm/Process.js.map +1 -1
  83. package/esm/PtyHandle.js +1 -1
  84. package/esm/PtyHandle.js.map +1 -1
  85. package/esm/Sandbox.d.ts +1 -5
  86. package/esm/Sandbox.js +3 -7
  87. package/esm/Sandbox.js.map +1 -1
  88. package/esm/Secret.d.ts +172 -0
  89. package/esm/Secret.js +150 -0
  90. package/esm/Secret.js.map +1 -0
  91. package/esm/Snapshot.js +1 -1
  92. package/esm/Snapshot.js.map +1 -1
  93. package/esm/Volume.js +1 -1
  94. package/esm/Volume.js.map +1 -1
  95. package/esm/errors/DaytonaError.d.ts +2 -4
  96. package/esm/errors/DaytonaError.js +7 -11
  97. package/esm/errors/DaytonaError.js.map +1 -1
  98. package/esm/index.d.ts +2 -3
  99. package/esm/index.js +2 -3
  100. package/esm/index.js.map +1 -1
  101. package/esm/types/Charts.js +1 -1
  102. package/esm/types/Charts.js.map +1 -1
  103. package/esm/types/CodeInterpreter.js +1 -1
  104. package/esm/types/CodeInterpreter.js.map +1 -1
  105. package/esm/types/ExecuteResponse.js +1 -1
  106. package/esm/types/ExecuteResponse.js.map +1 -1
  107. package/esm/types/Pty.js +1 -1
  108. package/esm/types/Pty.js.map +1 -1
  109. package/esm/utils/Binary.js +1 -1
  110. package/esm/utils/Binary.js.map +1 -1
  111. package/esm/utils/FileTransfer.js +1 -1
  112. package/esm/utils/FileTransfer.js.map +1 -1
  113. package/esm/utils/Import.js +2 -2
  114. package/esm/utils/Import.js.map +1 -1
  115. package/esm/utils/Multipart.js +1 -1
  116. package/esm/utils/Multipart.js.map +1 -1
  117. package/esm/utils/Runtime.js +1 -1
  118. package/esm/utils/Runtime.js.map +1 -1
  119. package/esm/utils/Stream.js.map +1 -1
  120. package/esm/utils/WebSocket.js +1 -1
  121. package/esm/utils/WebSocket.js.map +1 -1
  122. package/esm/utils/otel.decorator.js +1 -1
  123. package/esm/utils/otel.decorator.js.map +1 -1
  124. package/package.json +6 -7
  125. package/cjs/Session.d.ts +0 -152
  126. package/cjs/Session.js +0 -523
  127. package/cjs/Session.js.map +0 -1
  128. package/esm/Session.d.ts +0 -152
  129. package/esm/Session.js +0 -516
  130. package/esm/Session.js.map +0 -1
package/cjs/Git.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { GitApi } from '@daytona/toolbox-api-client';
2
- import type { ListBranchResponse, GitStatus } from '@daytona/toolbox-api-client';
2
+ import type { ListBranchResponse, ListRemotesResponse, GitStatus } from '@daytona/toolbox-api-client';
3
3
  /**
4
4
  * Response from the git commit.
5
5
  *
@@ -90,6 +90,7 @@ export declare class Git {
90
90
  * @param {string} [username] - Git username for authentication
91
91
  * @param {string} [password] - Git password or token for authentication
92
92
  * @param {boolean} [insecureSkipTls] - Skip TLS certificate verification (insecure). Use only for trusted internal Git servers with self-signed or private-CA certs.
93
+ * @param {number} [depth] - Create a shallow clone truncated to the given number of commits.
93
94
  * @returns {Promise<void>}
94
95
  *
95
96
  * @example
@@ -117,7 +118,7 @@ export declare class Git {
117
118
  * commitId='abc123'
118
119
  * );
119
120
  */
120
- clone(url: string, path: string, branch?: string, commitId?: string, username?: string, password?: string, insecureSkipTls?: boolean): Promise<void>;
121
+ clone(url: string, path: string, branch?: string, commitId?: string, username?: string, password?: string, insecureSkipTls?: boolean, depth?: number): Promise<void>;
121
122
  /**
122
123
  * Commits staged changes.
123
124
  *
@@ -147,6 +148,9 @@ export declare class Git {
147
148
  * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
148
149
  * @param {string} [username] - Git username for authentication
149
150
  * @param {string} [password] - Git password or token for authentication
151
+ * @param {string} [branch] - Branch to push. Defaults to the current branch
152
+ * @param {string} [remote] - Remote to push to. Defaults to "origin"
153
+ * @param {boolean} [setUpstream] - Record the pushed branch as the upstream tracking branch
150
154
  * @returns {Promise<void>}
151
155
  *
152
156
  * @example
@@ -160,14 +164,20 @@ export declare class Git {
160
164
  * 'user',
161
165
  * 'token'
162
166
  * );
167
+ *
168
+ * @example
169
+ * // Push a new branch and set its upstream
170
+ * await git.push('workspace/repo', undefined, undefined, 'feature', undefined, true);
163
171
  */
164
- push(path: string, username?: string, password?: string): Promise<void>;
172
+ push(path: string, username?: string, password?: string, branch?: string, remote?: string, setUpstream?: boolean): Promise<void>;
165
173
  /**
166
174
  * Pulls changes from the remote repository.
167
175
  *
168
176
  * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
169
177
  * @param {string} [username] - Git username for authentication
170
178
  * @param {string} [password] - Git password or token for authentication
179
+ * @param {string} [branch] - Branch to pull. Defaults to the current branch's upstream
180
+ * @param {string} [remote] - Remote to pull from. Defaults to "origin"
171
181
  * @returns {Promise<void>}
172
182
  *
173
183
  * @example
@@ -181,8 +191,12 @@ export declare class Git {
181
191
  * 'user',
182
192
  * 'token'
183
193
  * );
194
+ *
195
+ * @example
196
+ * // Pull a specific branch from a specific remote
197
+ * await git.pull('workspace/repo', undefined, undefined, 'main', 'upstream');
184
198
  */
185
- pull(path: string, username?: string, password?: string): Promise<void>;
199
+ pull(path: string, username?: string, password?: string, branch?: string, remote?: string): Promise<void>;
186
200
  /**
187
201
  * Gets the current status of the Git repository.
188
202
  *
@@ -201,5 +215,144 @@ export declare class Git {
201
215
  * console.log(`Commits behind: ${status.behind}`);
202
216
  */
203
217
  status(path: string): Promise<GitStatus>;
218
+ /**
219
+ * Initializes a new Git repository at the specified path.
220
+ *
221
+ * @param {string} path - Path where the repository should be initialized. Relative paths are resolved based on the sandbox working directory.
222
+ * @param {boolean} [bare] - Create a bare repository without a working tree
223
+ * @param {string} [initialBranch] - Name of the initial branch. If not specified, uses the Git default
224
+ * @returns {Promise<void>}
225
+ *
226
+ * @example
227
+ * await git.init('workspace/repo', false, 'main');
228
+ */
229
+ init(path: string, bare?: boolean, initialBranch?: string): Promise<void>;
230
+ /**
231
+ * Resets the current HEAD to the specified state.
232
+ *
233
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
234
+ * @param {string} [mode] - Reset mode, one of "soft", "mixed" (default), "hard", "merge" or "keep"
235
+ * @param {string} [target] - Revision to reset to. Defaults to HEAD
236
+ * @param {string[]} [files] - Constrain the reset to the given paths
237
+ * @returns {Promise<void>}
238
+ *
239
+ * @example
240
+ * // Unstage all changes (mixed reset to HEAD)
241
+ * await git.reset('workspace/repo');
242
+ *
243
+ * @example
244
+ * // Hard reset to a previous commit
245
+ * await git.reset('workspace/repo', 'hard', 'HEAD~1');
246
+ */
247
+ reset(path: string, mode?: string, target?: string, files?: string[]): Promise<void>;
248
+ /**
249
+ * Restores working tree files or unstages changes.
250
+ *
251
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
252
+ * @param {string[]} files - File paths to restore
253
+ * @param {boolean} [staged] - Restore the staging index for the given files
254
+ * @param {boolean} [worktree] - Restore the working tree for the given files. Defaults to true when neither staged nor worktree is provided
255
+ * @param {string} [source] - Restore file contents from the given revision instead of the index
256
+ * @returns {Promise<void>}
257
+ *
258
+ * @example
259
+ * // Discard working tree changes
260
+ * await git.restore('workspace/repo', ['file.txt']);
261
+ *
262
+ * @example
263
+ * // Unstage changes
264
+ * await git.restore('workspace/repo', ['file.txt'], true);
265
+ */
266
+ restore(path: string, files: string[], staged?: boolean, worktree?: boolean, source?: string): Promise<void>;
267
+ /**
268
+ * Adds (or overwrites) a remote in the repository.
269
+ *
270
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
271
+ * @param {string} name - Name of the remote
272
+ * @param {string} url - URL of the remote
273
+ * @param {boolean} [fetch] - Fetch from the remote immediately after adding it
274
+ * @param {boolean} [overwrite] - Replace an existing remote with the same name
275
+ * @returns {Promise<void>}
276
+ *
277
+ * @example
278
+ * await git.remoteAdd('workspace/repo', 'origin', 'https://github.com/user/repo.git');
279
+ */
280
+ remoteAdd(path: string, name: string, url: string, fetch?: boolean, overwrite?: boolean): Promise<void>;
281
+ /**
282
+ * Lists the remotes configured in the repository.
283
+ *
284
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
285
+ * @returns {Promise<ListRemotesResponse>} The configured remotes (name + URL)
286
+ *
287
+ * @example
288
+ * const response = await git.remotes('workspace/repo');
289
+ * response.remotes.forEach((r) => console.log(`${r.name}: ${r.url}`));
290
+ */
291
+ remotes(path: string): Promise<ListRemotesResponse>;
292
+ /**
293
+ * Gets the URL of a remote, or undefined when it does not exist.
294
+ *
295
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
296
+ * @param {string} name - Name of the remote
297
+ * @returns {Promise<string | undefined>} The remote URL, or undefined when the remote does not exist
298
+ *
299
+ * @example
300
+ * const url = await git.remoteGet('workspace/repo', 'origin');
301
+ */
302
+ remoteGet(path: string, name: string): Promise<string | undefined>;
303
+ /**
304
+ * Sets a Git config value at the given scope.
305
+ *
306
+ * @param {string} key - Config key in dotted form (e.g. "user.name")
307
+ * @param {string} value - Config value
308
+ * @param {string} [scope] - Config scope, one of "global" (default), "local" or "system"
309
+ * @param {string} [path] - Repository path, required when scope is "local"
310
+ * @returns {Promise<void>}
311
+ *
312
+ * @example
313
+ * await git.setConfig('user.name', 'John Doe');
314
+ */
315
+ setConfig(key: string, value: string, scope?: string, path?: string): Promise<void>;
316
+ /**
317
+ * Gets a Git config value at the given scope, or undefined when unset.
318
+ *
319
+ * @param {string} key - Config key in dotted form (e.g. "user.name")
320
+ * @param {string} [scope] - Config scope, one of "global" (default), "local" or "system"
321
+ * @param {string} [path] - Repository path, required when scope is "local"
322
+ * @returns {Promise<string | undefined>} The config value, or undefined when the key is not set
323
+ *
324
+ * @example
325
+ * const name = await git.getConfig('user.name');
326
+ */
327
+ getConfig(key: string, scope?: string, path?: string): Promise<string | undefined>;
328
+ /**
329
+ * Configures the Git user name and email at the given scope.
330
+ *
331
+ * @param {string} name - User name (user.name)
332
+ * @param {string} email - User email (user.email)
333
+ * @param {string} [scope] - Config scope, one of "global" (default), "local" or "system"
334
+ * @param {string} [path] - Repository path, required when scope is "local"
335
+ * @returns {Promise<void>}
336
+ *
337
+ * @example
338
+ * await git.configureUser('John Doe', 'john@example.com');
339
+ */
340
+ configureUser(name: string, email: string, scope?: string, path?: string): Promise<void>;
341
+ /**
342
+ * Persists Git credentials globally so that subsequent operations against the
343
+ * given host authenticate automatically.
344
+ *
345
+ * @remarks This stores the password in plaintext on disk via the Git credential store.
346
+ *
347
+ * @param {string} username - Git username
348
+ * @param {string} password - Git password or token
349
+ * @param {string} [host] - Host to authenticate against. Defaults to "github.com"
350
+ * @param {string} [protocol] - Protocol to authenticate against. Defaults to "https"
351
+ * @returns {Promise<void>}
352
+ *
353
+ * @example
354
+ * await git.dangerouslyAuthenticate('user', 'github_token');
355
+ */
356
+ dangerouslyAuthenticate(username: string, password: string, host?: string, protocol?: string): Promise<void>;
204
357
  }
205
358
  //# sourceMappingURL=Git.d.ts.map
package/cjs/Git.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025 Daytona Platforms Inc.
3
+ * Copyright Daytona Platforms Inc.
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,6 +24,16 @@ let Git = (() => {
24
24
  let _push_decorators;
25
25
  let _pull_decorators;
26
26
  let _status_decorators;
27
+ let _init_decorators;
28
+ let _reset_decorators;
29
+ let _restore_decorators;
30
+ let _remoteAdd_decorators;
31
+ let _remotes_decorators;
32
+ let _remoteGet_decorators;
33
+ let _setConfig_decorators;
34
+ let _getConfig_decorators;
35
+ let _configureUser_decorators;
36
+ let _dangerouslyAuthenticate_decorators;
27
37
  return class Git {
28
38
  static {
29
39
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
@@ -37,6 +47,16 @@ let Git = (() => {
37
47
  _push_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
38
48
  _pull_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
39
49
  _status_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
50
+ _init_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
51
+ _reset_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
52
+ _restore_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
53
+ _remoteAdd_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
54
+ _remotes_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
55
+ _remoteGet_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
56
+ _setConfig_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
57
+ _getConfig_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
58
+ _configureUser_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
59
+ _dangerouslyAuthenticate_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
40
60
  tslib_1.__esDecorate(this, null, _add_decorators, { kind: "method", name: "add", static: false, private: false, access: { has: obj => "add" in obj, get: obj => obj.add }, metadata: _metadata }, null, _instanceExtraInitializers);
41
61
  tslib_1.__esDecorate(this, null, _branches_decorators, { kind: "method", name: "branches", static: false, private: false, access: { has: obj => "branches" in obj, get: obj => obj.branches }, metadata: _metadata }, null, _instanceExtraInitializers);
42
62
  tslib_1.__esDecorate(this, null, _createBranch_decorators, { kind: "method", name: "createBranch", static: false, private: false, access: { has: obj => "createBranch" in obj, get: obj => obj.createBranch }, metadata: _metadata }, null, _instanceExtraInitializers);
@@ -47,6 +67,16 @@ let Git = (() => {
47
67
  tslib_1.__esDecorate(this, null, _push_decorators, { kind: "method", name: "push", static: false, private: false, access: { has: obj => "push" in obj, get: obj => obj.push }, metadata: _metadata }, null, _instanceExtraInitializers);
48
68
  tslib_1.__esDecorate(this, null, _pull_decorators, { kind: "method", name: "pull", static: false, private: false, access: { has: obj => "pull" in obj, get: obj => obj.pull }, metadata: _metadata }, null, _instanceExtraInitializers);
49
69
  tslib_1.__esDecorate(this, null, _status_decorators, { kind: "method", name: "status", static: false, private: false, access: { has: obj => "status" in obj, get: obj => obj.status }, metadata: _metadata }, null, _instanceExtraInitializers);
70
+ tslib_1.__esDecorate(this, null, _init_decorators, { kind: "method", name: "init", static: false, private: false, access: { has: obj => "init" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);
71
+ tslib_1.__esDecorate(this, null, _reset_decorators, { kind: "method", name: "reset", static: false, private: false, access: { has: obj => "reset" in obj, get: obj => obj.reset }, metadata: _metadata }, null, _instanceExtraInitializers);
72
+ tslib_1.__esDecorate(this, null, _restore_decorators, { kind: "method", name: "restore", static: false, private: false, access: { has: obj => "restore" in obj, get: obj => obj.restore }, metadata: _metadata }, null, _instanceExtraInitializers);
73
+ tslib_1.__esDecorate(this, null, _remoteAdd_decorators, { kind: "method", name: "remoteAdd", static: false, private: false, access: { has: obj => "remoteAdd" in obj, get: obj => obj.remoteAdd }, metadata: _metadata }, null, _instanceExtraInitializers);
74
+ tslib_1.__esDecorate(this, null, _remotes_decorators, { kind: "method", name: "remotes", static: false, private: false, access: { has: obj => "remotes" in obj, get: obj => obj.remotes }, metadata: _metadata }, null, _instanceExtraInitializers);
75
+ tslib_1.__esDecorate(this, null, _remoteGet_decorators, { kind: "method", name: "remoteGet", static: false, private: false, access: { has: obj => "remoteGet" in obj, get: obj => obj.remoteGet }, metadata: _metadata }, null, _instanceExtraInitializers);
76
+ tslib_1.__esDecorate(this, null, _setConfig_decorators, { kind: "method", name: "setConfig", static: false, private: false, access: { has: obj => "setConfig" in obj, get: obj => obj.setConfig }, metadata: _metadata }, null, _instanceExtraInitializers);
77
+ tslib_1.__esDecorate(this, null, _getConfig_decorators, { kind: "method", name: "getConfig", static: false, private: false, access: { has: obj => "getConfig" in obj, get: obj => obj.getConfig }, metadata: _metadata }, null, _instanceExtraInitializers);
78
+ tslib_1.__esDecorate(this, null, _configureUser_decorators, { kind: "method", name: "configureUser", static: false, private: false, access: { has: obj => "configureUser" in obj, get: obj => obj.configureUser }, metadata: _metadata }, null, _instanceExtraInitializers);
79
+ tslib_1.__esDecorate(this, null, _dangerouslyAuthenticate_decorators, { kind: "method", name: "dangerouslyAuthenticate", static: false, private: false, access: { has: obj => "dangerouslyAuthenticate" in obj, get: obj => obj.dangerouslyAuthenticate }, metadata: _metadata }, null, _instanceExtraInitializers);
50
80
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
51
81
  }
52
82
  apiClient = tslib_1.__runInitializers(this, _instanceExtraInitializers);
@@ -152,6 +182,7 @@ let Git = (() => {
152
182
  * @param {string} [username] - Git username for authentication
153
183
  * @param {string} [password] - Git password or token for authentication
154
184
  * @param {boolean} [insecureSkipTls] - Skip TLS certificate verification (insecure). Use only for trusted internal Git servers with self-signed or private-CA certs.
185
+ * @param {number} [depth] - Create a shallow clone truncated to the given number of commits.
155
186
  * @returns {Promise<void>}
156
187
  *
157
188
  * @example
@@ -179,7 +210,7 @@ let Git = (() => {
179
210
  * commitId='abc123'
180
211
  * );
181
212
  */
182
- async clone(url, path, branch, commitId, username, password, insecureSkipTls) {
213
+ async clone(url, path, branch, commitId, username, password, insecureSkipTls, depth) {
183
214
  await this.apiClient.cloneRepository({
184
215
  url: url,
185
216
  branch: branch,
@@ -188,6 +219,7 @@ let Git = (() => {
188
219
  password,
189
220
  commit_id: commitId,
190
221
  insecure_skip_tls: insecureSkipTls,
222
+ depth,
191
223
  });
192
224
  }
193
225
  /**
@@ -230,6 +262,9 @@ let Git = (() => {
230
262
  * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
231
263
  * @param {string} [username] - Git username for authentication
232
264
  * @param {string} [password] - Git password or token for authentication
265
+ * @param {string} [branch] - Branch to push. Defaults to the current branch
266
+ * @param {string} [remote] - Remote to push to. Defaults to "origin"
267
+ * @param {boolean} [setUpstream] - Record the pushed branch as the upstream tracking branch
233
268
  * @returns {Promise<void>}
234
269
  *
235
270
  * @example
@@ -243,12 +278,19 @@ let Git = (() => {
243
278
  * 'user',
244
279
  * 'token'
245
280
  * );
281
+ *
282
+ * @example
283
+ * // Push a new branch and set its upstream
284
+ * await git.push('workspace/repo', undefined, undefined, 'feature', undefined, true);
246
285
  */
247
- async push(path, username, password) {
286
+ async push(path, username, password, branch, remote, setUpstream) {
248
287
  await this.apiClient.pushChanges({
249
288
  path,
250
289
  username,
251
290
  password,
291
+ branch,
292
+ remote,
293
+ set_upstream: setUpstream,
252
294
  });
253
295
  }
254
296
  /**
@@ -257,6 +299,8 @@ let Git = (() => {
257
299
  * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
258
300
  * @param {string} [username] - Git username for authentication
259
301
  * @param {string} [password] - Git password or token for authentication
302
+ * @param {string} [branch] - Branch to pull. Defaults to the current branch's upstream
303
+ * @param {string} [remote] - Remote to pull from. Defaults to "origin"
260
304
  * @returns {Promise<void>}
261
305
  *
262
306
  * @example
@@ -270,12 +314,18 @@ let Git = (() => {
270
314
  * 'user',
271
315
  * 'token'
272
316
  * );
317
+ *
318
+ * @example
319
+ * // Pull a specific branch from a specific remote
320
+ * await git.pull('workspace/repo', undefined, undefined, 'main', 'upstream');
273
321
  */
274
- async pull(path, username, password) {
322
+ async pull(path, username, password, branch, remote) {
275
323
  await this.apiClient.pullChanges({
276
324
  path,
277
325
  username,
278
326
  password,
327
+ branch,
328
+ remote,
279
329
  });
280
330
  }
281
331
  /**
@@ -299,6 +349,204 @@ let Git = (() => {
299
349
  const response = await this.apiClient.getStatus(path);
300
350
  return response.data;
301
351
  }
352
+ /**
353
+ * Initializes a new Git repository at the specified path.
354
+ *
355
+ * @param {string} path - Path where the repository should be initialized. Relative paths are resolved based on the sandbox working directory.
356
+ * @param {boolean} [bare] - Create a bare repository without a working tree
357
+ * @param {string} [initialBranch] - Name of the initial branch. If not specified, uses the Git default
358
+ * @returns {Promise<void>}
359
+ *
360
+ * @example
361
+ * await git.init('workspace/repo', false, 'main');
362
+ */
363
+ async init(path, bare, initialBranch) {
364
+ await this.apiClient.initRepository({
365
+ path,
366
+ bare,
367
+ initial_branch: initialBranch,
368
+ });
369
+ }
370
+ /**
371
+ * Resets the current HEAD to the specified state.
372
+ *
373
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
374
+ * @param {string} [mode] - Reset mode, one of "soft", "mixed" (default), "hard", "merge" or "keep"
375
+ * @param {string} [target] - Revision to reset to. Defaults to HEAD
376
+ * @param {string[]} [files] - Constrain the reset to the given paths
377
+ * @returns {Promise<void>}
378
+ *
379
+ * @example
380
+ * // Unstage all changes (mixed reset to HEAD)
381
+ * await git.reset('workspace/repo');
382
+ *
383
+ * @example
384
+ * // Hard reset to a previous commit
385
+ * await git.reset('workspace/repo', 'hard', 'HEAD~1');
386
+ */
387
+ async reset(path, mode, target, files) {
388
+ await this.apiClient.resetChanges({
389
+ path,
390
+ mode,
391
+ target,
392
+ files,
393
+ });
394
+ }
395
+ /**
396
+ * Restores working tree files or unstages changes.
397
+ *
398
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
399
+ * @param {string[]} files - File paths to restore
400
+ * @param {boolean} [staged] - Restore the staging index for the given files
401
+ * @param {boolean} [worktree] - Restore the working tree for the given files. Defaults to true when neither staged nor worktree is provided
402
+ * @param {string} [source] - Restore file contents from the given revision instead of the index
403
+ * @returns {Promise<void>}
404
+ *
405
+ * @example
406
+ * // Discard working tree changes
407
+ * await git.restore('workspace/repo', ['file.txt']);
408
+ *
409
+ * @example
410
+ * // Unstage changes
411
+ * await git.restore('workspace/repo', ['file.txt'], true);
412
+ */
413
+ async restore(path, files, staged, worktree, source) {
414
+ await this.apiClient.restoreFiles({
415
+ path,
416
+ files,
417
+ staged,
418
+ worktree,
419
+ source,
420
+ });
421
+ }
422
+ /**
423
+ * Adds (or overwrites) a remote in the repository.
424
+ *
425
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
426
+ * @param {string} name - Name of the remote
427
+ * @param {string} url - URL of the remote
428
+ * @param {boolean} [fetch] - Fetch from the remote immediately after adding it
429
+ * @param {boolean} [overwrite] - Replace an existing remote with the same name
430
+ * @returns {Promise<void>}
431
+ *
432
+ * @example
433
+ * await git.remoteAdd('workspace/repo', 'origin', 'https://github.com/user/repo.git');
434
+ */
435
+ async remoteAdd(path, name, url, fetch, overwrite) {
436
+ await this.apiClient.addRemote({
437
+ path,
438
+ name,
439
+ url,
440
+ fetch,
441
+ overwrite,
442
+ });
443
+ }
444
+ /**
445
+ * Lists the remotes configured in the repository.
446
+ *
447
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
448
+ * @returns {Promise<ListRemotesResponse>} The configured remotes (name + URL)
449
+ *
450
+ * @example
451
+ * const response = await git.remotes('workspace/repo');
452
+ * response.remotes.forEach((r) => console.log(`${r.name}: ${r.url}`));
453
+ */
454
+ async remotes(path) {
455
+ const response = await this.apiClient.listRemotes(path);
456
+ return response.data;
457
+ }
458
+ /**
459
+ * Gets the URL of a remote, or undefined when it does not exist.
460
+ *
461
+ * @param {string} path - Path to the Git repository root. Relative paths are resolved based on the sandbox working directory.
462
+ * @param {string} name - Name of the remote
463
+ * @returns {Promise<string | undefined>} The remote URL, or undefined when the remote does not exist
464
+ *
465
+ * @example
466
+ * const url = await git.remoteGet('workspace/repo', 'origin');
467
+ */
468
+ async remoteGet(path, name) {
469
+ const response = await this.apiClient.listRemotes(path);
470
+ return response.data.remotes.find((r) => r.name === name)?.url;
471
+ }
472
+ /**
473
+ * Sets a Git config value at the given scope.
474
+ *
475
+ * @param {string} key - Config key in dotted form (e.g. "user.name")
476
+ * @param {string} value - Config value
477
+ * @param {string} [scope] - Config scope, one of "global" (default), "local" or "system"
478
+ * @param {string} [path] - Repository path, required when scope is "local"
479
+ * @returns {Promise<void>}
480
+ *
481
+ * @example
482
+ * await git.setConfig('user.name', 'John Doe');
483
+ */
484
+ async setConfig(key, value, scope = 'global', path) {
485
+ await this.apiClient.setGitConfig({
486
+ key,
487
+ value,
488
+ scope,
489
+ path,
490
+ });
491
+ }
492
+ /**
493
+ * Gets a Git config value at the given scope, or undefined when unset.
494
+ *
495
+ * @param {string} key - Config key in dotted form (e.g. "user.name")
496
+ * @param {string} [scope] - Config scope, one of "global" (default), "local" or "system"
497
+ * @param {string} [path] - Repository path, required when scope is "local"
498
+ * @returns {Promise<string | undefined>} The config value, or undefined when the key is not set
499
+ *
500
+ * @example
501
+ * const name = await git.getConfig('user.name');
502
+ */
503
+ async getConfig(key, scope = 'global', path) {
504
+ const response = await this.apiClient.getGitConfig(key, path, scope);
505
+ return response.data.value;
506
+ }
507
+ /**
508
+ * Configures the Git user name and email at the given scope.
509
+ *
510
+ * @param {string} name - User name (user.name)
511
+ * @param {string} email - User email (user.email)
512
+ * @param {string} [scope] - Config scope, one of "global" (default), "local" or "system"
513
+ * @param {string} [path] - Repository path, required when scope is "local"
514
+ * @returns {Promise<void>}
515
+ *
516
+ * @example
517
+ * await git.configureUser('John Doe', 'john@example.com');
518
+ */
519
+ async configureUser(name, email, scope = 'global', path) {
520
+ await this.apiClient.configureUser({
521
+ name,
522
+ email,
523
+ scope,
524
+ path,
525
+ });
526
+ }
527
+ /**
528
+ * Persists Git credentials globally so that subsequent operations against the
529
+ * given host authenticate automatically.
530
+ *
531
+ * @remarks This stores the password in plaintext on disk via the Git credential store.
532
+ *
533
+ * @param {string} username - Git username
534
+ * @param {string} password - Git password or token
535
+ * @param {string} [host] - Host to authenticate against. Defaults to "github.com"
536
+ * @param {string} [protocol] - Protocol to authenticate against. Defaults to "https"
537
+ * @returns {Promise<void>}
538
+ *
539
+ * @example
540
+ * await git.dangerouslyAuthenticate('user', 'github_token');
541
+ */
542
+ async dangerouslyAuthenticate(username, password, host, protocol) {
543
+ await this.apiClient.authenticate({
544
+ username,
545
+ password,
546
+ host,
547
+ protocol,
548
+ });
549
+ }
302
550
  };
303
551
  })();
304
552
  exports.Git = Git;
package/cjs/Git.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Git.js","sourceRoot":"","sources":["../../../../../libs/sdk-typescript/src/Git.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;AAIH,2DAA4D;AAY5D;;;;GAIG;IACU,GAAG;;;;;;;;;;;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AAC;QAED;;;;;;;;;;WAUG;QAEI,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAa;YACjE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;YACpE,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAA;QAC5B,CAAC;QAED;;;;;;;;;;;WAWG;QAEI,KAAK,CAAC,aAAa,CAAC,IAAY,EAAE,KAAa,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAa;YACrF,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;gBACjC,IAAI;gBACJ,KAAK;gBACL,KAAK;gBACL,IAAI;aACL,CAAC,CAAA;QACJ,CAAC;QAED;;;;;;;;;;;;;;WAcG;QAEI,KAAK,CAAC,uBAAuB,CAClC,QAAgB,EAChB,QAAgB,EAChB,IAAa,EACb,QAAiB;YAEjB,MAAM,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;gBAChC,QAAQ;gBACR,QAAQ;gBACR,IAAI;gBACJ,QAAQ;aACT,CAAC,CAAA;QACJ,CAAC;;;AAhiBU,kBAAG"}
package/cjs/Image.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025 Daytona Platforms Inc.
3
+ * Copyright Daytona Platforms Inc.
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });