@ornncompute/cli 1.0.299 → 1.0.301
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/package.json
CHANGED
|
@@ -1044,10 +1044,12 @@ async function listStaffVirtualMachines(request, input, signal) {
|
|
|
1044
1044
|
let cursor = input.cursor;
|
|
1045
1045
|
const seen = new Set(cursor ? [cursor] : []);
|
|
1046
1046
|
for (; ; ) {
|
|
1047
|
-
const query = new URLSearchParams(
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1047
|
+
const query = new URLSearchParams();
|
|
1048
|
+
if (input.node_ids)
|
|
1049
|
+
query.set("node_ids", input.node_ids.join(","));
|
|
1050
|
+
else
|
|
1051
|
+
query.set("reservation_id", input.reservation_id);
|
|
1052
|
+
query.set("limit", String(input.limit ?? 500));
|
|
1051
1053
|
if (cursor)
|
|
1052
1054
|
query.set("cursor", cursor);
|
|
1053
1055
|
const page = await request(`/v1/staff/virtual-machines?${query}`, {
|
|
@@ -2444,6 +2444,8 @@ function microUsdLabel(value) {
|
|
|
2444
2444
|
|
|
2445
2445
|
// ../../packages/capabilities/dist/capabilities/native-listing.js
|
|
2446
2446
|
var nativeTermFields = {
|
|
2447
|
+
frontendNetwork: z10.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional(),
|
|
2448
|
+
backendNetwork: z10.string().trim().min(1).refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional(),
|
|
2447
2449
|
network: z10.string().refine((value) => new TextEncoder().encode(value).length <= 1024, "Network must be at most 1024 UTF-8 bytes.").nullable().optional().describe("Reserved network and interconnect for this choice. Immutable per term ID; create a new term for a different network."),
|
|
2448
2450
|
type: z10.enum(["reserved", "spot", "on-demand"]).nullable().optional(),
|
|
2449
2451
|
minDurationHours: z10.coerce.number().nonnegative(),
|
|
@@ -2490,6 +2492,10 @@ var nativeListingCreateInput = z10.object({
|
|
|
2490
2492
|
daysToRfs: z10.coerce.number().int().nonnegative().optional().describe("Days until ready for service; 0 when ready now. Required unless both dates are set."),
|
|
2491
2493
|
cpu: z10.string().optional(),
|
|
2492
2494
|
ram: z10.string().optional(),
|
|
2495
|
+
dataStorage: z10.string().optional().describe("Data storage per node."),
|
|
2496
|
+
bootStorage: z10.string().optional().describe("Boot storage per node."),
|
|
2497
|
+
frontendNetwork: z10.string().optional().describe("Front-end network per node."),
|
|
2498
|
+
backendNetwork: z10.string().optional().describe("Back-end network per node."),
|
|
2493
2499
|
storage: z10.string().optional(),
|
|
2494
2500
|
fabricType: z10.string().optional(),
|
|
2495
2501
|
internet: z10.string().optional(),
|
|
@@ -2544,6 +2550,10 @@ var nativeListingUpdateFields = {
|
|
|
2544
2550
|
daysToRfs: z10.coerce.number().int().nonnegative().optional(),
|
|
2545
2551
|
cpu: z10.string().optional(),
|
|
2546
2552
|
ram: z10.string().optional(),
|
|
2553
|
+
dataStorage: z10.string().optional(),
|
|
2554
|
+
bootStorage: z10.string().optional(),
|
|
2555
|
+
frontendNetwork: z10.string().optional(),
|
|
2556
|
+
backendNetwork: z10.string().optional(),
|
|
2547
2557
|
storage: z10.string().optional(),
|
|
2548
2558
|
fabricType: z10.string().optional(),
|
|
2549
2559
|
internet: z10.string().optional()
|
|
@@ -7367,6 +7377,10 @@ var listingCreateInput = z33.object({
|
|
|
7367
7377
|
site_nickname: z33.string().optional().describe("Where the capacity is, exactly as the user said it: a state, city, address, or catalog region such as us-west-3. Ornn places it in a catalog region."),
|
|
7368
7378
|
site_supplier: z33.string().optional(),
|
|
7369
7379
|
ram: z33.string().optional(),
|
|
7380
|
+
data_storage: z33.string().optional(),
|
|
7381
|
+
boot_storage: z33.string().optional(),
|
|
7382
|
+
frontend_network: z33.string().optional(),
|
|
7383
|
+
backend_network: z33.string().optional(),
|
|
7370
7384
|
storage: z33.string().optional(),
|
|
7371
7385
|
internet: z33.string().optional(),
|
|
7372
7386
|
network_hardware: z33.string().optional(),
|
|
@@ -7621,6 +7635,10 @@ var createListingCapability = defineCapability({
|
|
|
7621
7635
|
...typeof draft.ram === "string" ? { ram: draft.ram } : {},
|
|
7622
7636
|
...typeof draft.storage === "string" ? { storage: draft.storage } : {},
|
|
7623
7637
|
...typeof draft.fabric_type === "string" ? { fabricType: draft.fabric_type } : {},
|
|
7638
|
+
...typeof draft.data_storage === "string" ? { dataStorage: draft.data_storage } : {},
|
|
7639
|
+
...typeof draft.boot_storage === "string" ? { bootStorage: draft.boot_storage } : {},
|
|
7640
|
+
...typeof draft.frontend_network === "string" ? { frontendNetwork: draft.frontend_network } : {},
|
|
7641
|
+
...typeof draft.backend_network === "string" ? { backendNetwork: draft.backend_network } : {},
|
|
7624
7642
|
...typeof draft.internet === "string" ? { internet: draft.internet } : {},
|
|
7625
7643
|
capacityNodeCount: nodeCount,
|
|
7626
7644
|
state: parsed.state ?? "available"
|