disk 1.1.1 → 1.1.2
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/cli.mjs +2 -2
- package/dist/{common-CgI3t0XZ.mjs → common-DUyyWu2M.mjs} +1 -1
- package/dist/index.cjs +12 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +1 -1
- package/dist/sandbox-cli.mjs +2 -2
- package/dist/{src-DHkfjGLy.mjs → src-DXNLDPID.mjs} +12 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { O as ArchilApiError, a as deleteApiKey, l as listApiKeys, n as createApiKey, r as createDisk, s as getDisk, t as configure, u as listDisks } from "./src-
|
|
3
|
-
import { a as renderTable, i as resolveProgramCredentials, n as addProfileCommands, r as isProfileCommand, t as addGlobalOptions } from "./common-
|
|
2
|
+
import { O as ArchilApiError, a as deleteApiKey, l as listApiKeys, n as createApiKey, r as createDisk, s as getDisk, t as configure, u as listDisks } from "./src-DXNLDPID.mjs";
|
|
3
|
+
import { a as renderTable, i as resolveProgramCredentials, n as addProfileCommands, r as isProfileCommand, t as addGlobalOptions } from "./common-DUyyWu2M.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
//#region bin/cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as REGION_URLS, p as Archil } from "./src-
|
|
1
|
+
import { D as REGION_URLS, p as Archil } from "./src-DXNLDPID.mjs";
|
|
2
2
|
import { Option } from "commander";
|
|
3
3
|
import { isCancel, password, spinner } from "@clack/prompts";
|
|
4
4
|
import { chmod, mkdir, open, readFile, rename, rm, stat } from "node:fs/promises";
|
package/dist/index.cjs
CHANGED
|
@@ -145,7 +145,7 @@ function deriveS3BaseUrl(controlBaseUrl) {
|
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
147
147
|
//#region src/version.ts
|
|
148
|
-
const VERSION = "1.1.
|
|
148
|
+
const VERSION = "1.1.2";
|
|
149
149
|
const USER_AGENT = `archil-js/${VERSION}`;
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/client.ts
|
|
@@ -1264,6 +1264,17 @@ var Disks = class {
|
|
|
1264
1264
|
authorizedUsers
|
|
1265
1265
|
};
|
|
1266
1266
|
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Execute a command on a disk that is already known to exist. Accepts the
|
|
1269
|
+
* disk ID directly so callers that do not need its metadata can execute
|
|
1270
|
+
* without fetching the disk first.
|
|
1271
|
+
*/
|
|
1272
|
+
async exec(id, command) {
|
|
1273
|
+
return unwrap(this._client.POST("/api/disks/{id}/exec", {
|
|
1274
|
+
params: { path: { id } },
|
|
1275
|
+
body: { command }
|
|
1276
|
+
}));
|
|
1277
|
+
}
|
|
1267
1278
|
};
|
|
1268
1279
|
//#endregion
|
|
1269
1280
|
//#region src/sandbox-process.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -57,6 +57,12 @@ declare class Disks {
|
|
|
57
57
|
* Creation-time only.
|
|
58
58
|
*/
|
|
59
59
|
create(req: CreateDiskRequest): Promise<CreateDiskResult>;
|
|
60
|
+
/**
|
|
61
|
+
* Execute a command on a disk that is already known to exist. Accepts the
|
|
62
|
+
* disk ID directly so callers that do not need its metadata can execute
|
|
63
|
+
* without fetching the disk first.
|
|
64
|
+
*/
|
|
65
|
+
exec(id: string, command: string): Promise<ExecResult>;
|
|
60
66
|
}
|
|
61
67
|
//#endregion
|
|
62
68
|
//#region src/sandbox-process.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -57,6 +57,12 @@ declare class Disks {
|
|
|
57
57
|
* Creation-time only.
|
|
58
58
|
*/
|
|
59
59
|
create(req: CreateDiskRequest): Promise<CreateDiskResult>;
|
|
60
|
+
/**
|
|
61
|
+
* Execute a command on a disk that is already known to exist. Accepts the
|
|
62
|
+
* disk ID directly so callers that do not need its metadata can execute
|
|
63
|
+
* without fetching the disk first.
|
|
64
|
+
*/
|
|
65
|
+
exec(id: string, command: string): Promise<ExecResult>;
|
|
60
66
|
}
|
|
61
67
|
//#endregion
|
|
62
68
|
//#region src/sandbox-process.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ArchilS3Error, C as DiskMultipart, E as VERSION, O as ArchilApiError, S as Disk, T as USER_AGENT, _ as Sandbox, a as deleteApiKey, b as SandboxProcesses, c as getSandbox, d as listSandboxes, f as workspace, g as Sandboxes, h as Tokens, i as createSandbox, j as SandboxFileTransferError, k as ArchilError, l as listApiKeys, m as Workspace, n as createApiKey, o as exec, p as Archil, r as createDisk, s as getDisk, t as configure, u as listDisks, v as SandboxFiles, w as effectiveUploadPartSize, x as Disks, y as SandboxProcess } from "./src-
|
|
1
|
+
import { A as ArchilS3Error, C as DiskMultipart, E as VERSION, O as ArchilApiError, S as Disk, T as USER_AGENT, _ as Sandbox, a as deleteApiKey, b as SandboxProcesses, c as getSandbox, d as listSandboxes, f as workspace, g as Sandboxes, h as Tokens, i as createSandbox, j as SandboxFileTransferError, k as ArchilError, l as listApiKeys, m as Workspace, n as createApiKey, o as exec, p as Archil, r as createDisk, s as getDisk, t as configure, u as listDisks, v as SandboxFiles, w as effectiveUploadPartSize, x as Disks, y as SandboxProcess } from "./src-DXNLDPID.mjs";
|
|
2
2
|
export { Archil, ArchilApiError, ArchilError, ArchilS3Error, Disk, DiskMultipart, Disks, Sandbox, SandboxFileTransferError, SandboxFiles, SandboxProcess, SandboxProcesses, Sandboxes, Tokens, USER_AGENT, VERSION, Workspace, configure, createApiKey, createDisk, createSandbox, deleteApiKey, effectiveUploadPartSize, exec, getDisk, getSandbox, listApiKeys, listDisks, listSandboxes, workspace };
|
package/dist/sandbox-cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { O as ArchilApiError, p as Archil } from "./src-
|
|
3
|
-
import { a as renderTable, i as resolveProgramCredentials, n as addProfileCommands, r as isProfileCommand, t as addGlobalOptions } from "./common-
|
|
2
|
+
import { O as ArchilApiError, p as Archil } from "./src-DXNLDPID.mjs";
|
|
3
|
+
import { a as renderTable, i as resolveProgramCredentials, n as addProfileCommands, r as isProfileCommand, t as addGlobalOptions } from "./common-DUyyWu2M.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { spinner } from "@clack/prompts";
|
|
@@ -122,7 +122,7 @@ function deriveS3BaseUrl(controlBaseUrl) {
|
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/version.ts
|
|
125
|
-
const VERSION = "1.1.
|
|
125
|
+
const VERSION = "1.1.2";
|
|
126
126
|
const USER_AGENT = `archil-js/${VERSION}`;
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/client.ts
|
|
@@ -1241,6 +1241,17 @@ var Disks = class {
|
|
|
1241
1241
|
authorizedUsers
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Execute a command on a disk that is already known to exist. Accepts the
|
|
1246
|
+
* disk ID directly so callers that do not need its metadata can execute
|
|
1247
|
+
* without fetching the disk first.
|
|
1248
|
+
*/
|
|
1249
|
+
async exec(id, command) {
|
|
1250
|
+
return unwrap(this._client.POST("/api/disks/{id}/exec", {
|
|
1251
|
+
params: { path: { id } },
|
|
1252
|
+
body: { command }
|
|
1253
|
+
}));
|
|
1254
|
+
}
|
|
1244
1255
|
};
|
|
1245
1256
|
//#endregion
|
|
1246
1257
|
//#region src/sandbox-process.ts
|