tensorlake 0.5.11 → 0.5.13
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.
- package/dist/bin/darwin-arm64/tensorlake +0 -0
- package/dist/bin/darwin-arm64/tl +0 -0
- package/dist/bin/linux-x64/tensorlake +0 -0
- package/dist/bin/linux-x64/tl +0 -0
- package/dist/bin/win32-x64/tensorlake.exe +0 -0
- package/dist/bin/win32-x64/tl.exe +0 -0
- package/dist/index.cjs +41 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +41 -1
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-B8kFWVLi.d.cts → sandbox-image-BepgJl5u.d.cts} +18 -1
- package/dist/{sandbox-image-B8kFWVLi.d.ts → sandbox-image-BepgJl5u.d.ts} +18 -1
- package/dist/sandbox-image.cjs +41 -1
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.d.cts +1 -1
- package/dist/sandbox-image.d.ts +1 -1
- package/dist/sandbox-image.js +41 -1
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
package/dist/bin/darwin-arm64/tl
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/bin/linux-x64/tl
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var SDK_VERSION, API_URL, API_KEY, NAMESPACE, SANDBOX_PROXY_URL, DEFAULT_HTTP_TI
|
|
|
35
35
|
var init_defaults = __esm({
|
|
36
36
|
"src/defaults.ts"() {
|
|
37
37
|
"use strict";
|
|
38
|
-
SDK_VERSION = "0.5.
|
|
38
|
+
SDK_VERSION = "0.5.13";
|
|
39
39
|
API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
|
|
40
40
|
API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
|
|
41
41
|
NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
|
|
@@ -3973,6 +3973,46 @@ var init_client = __esm({
|
|
|
3973
3973
|
);
|
|
3974
3974
|
return Object.assign(sandboxes, { traceId: raw.traceId });
|
|
3975
3975
|
}
|
|
3976
|
+
/**
|
|
3977
|
+
* List archived (terminated) sandboxes in the namespace.
|
|
3978
|
+
*
|
|
3979
|
+
* Archived sandboxes are terminated sandboxes parked in the server's
|
|
3980
|
+
* archived sandboxes store until the server-configured TTL expires.
|
|
3981
|
+
*/
|
|
3982
|
+
async listArchived(options) {
|
|
3983
|
+
const query = [];
|
|
3984
|
+
if (options?.limit != null) {
|
|
3985
|
+
query.push(`limit=${encodeURIComponent(String(options.limit))}`);
|
|
3986
|
+
}
|
|
3987
|
+
if (options?.cursor != null) {
|
|
3988
|
+
query.push(`cursor=${encodeURIComponent(options.cursor)}`);
|
|
3989
|
+
}
|
|
3990
|
+
if (options?.direction != null) {
|
|
3991
|
+
query.push(`direction=${encodeURIComponent(options.direction)}`);
|
|
3992
|
+
}
|
|
3993
|
+
const suffix = query.length ? `?${query.join("&")}` : "";
|
|
3994
|
+
const raw = await this.http.requestJson("GET", this.path(`archived-sandboxes${suffix}`));
|
|
3995
|
+
const sandboxes = (raw.sandboxes ?? []).map(
|
|
3996
|
+
(s) => fromSnakeKeys(s, "sandboxId")
|
|
3997
|
+
);
|
|
3998
|
+
const response = {
|
|
3999
|
+
sandboxes,
|
|
4000
|
+
prevCursor: raw.prev_cursor,
|
|
4001
|
+
nextCursor: raw.next_cursor
|
|
4002
|
+
};
|
|
4003
|
+
return Object.assign(response, { traceId: raw.traceId });
|
|
4004
|
+
}
|
|
4005
|
+
/** Get a single archived sandbox by id. */
|
|
4006
|
+
async getArchived(sandboxId) {
|
|
4007
|
+
const raw = await this.http.requestJson(
|
|
4008
|
+
"GET",
|
|
4009
|
+
this.path(`archived-sandboxes/${encodeURIComponent(sandboxId)}`)
|
|
4010
|
+
);
|
|
4011
|
+
return Object.assign(
|
|
4012
|
+
fromSnakeKeys(raw, "sandboxId"),
|
|
4013
|
+
{ traceId: raw.traceId }
|
|
4014
|
+
);
|
|
4015
|
+
}
|
|
3976
4016
|
/** Update sandbox properties such as name, exposed ports, and proxy auth settings. */
|
|
3977
4017
|
async update(sandboxId, options) {
|
|
3978
4018
|
const body = {};
|