@ornncompute/cli 1.0.283 → 1.0.285
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
package/src/vm-commands.mjs
CHANGED
|
@@ -3714,7 +3714,9 @@ async function listMachines(input, context, interaction) {
|
|
|
3714
3714
|
presentation: {
|
|
3715
3715
|
lines: projected.length ? projected.flatMap(machineLines) : ["No direct machines found."],
|
|
3716
3716
|
...(selected.page.next_cursor
|
|
3717
|
-
? {
|
|
3717
|
+
? {
|
|
3718
|
+
next: `ornn machines list --limit ${selected.page.limit} --cursor ${selected.page.next_cursor}`,
|
|
3719
|
+
}
|
|
3718
3720
|
: {}),
|
|
3719
3721
|
},
|
|
3720
3722
|
});
|
|
@@ -4623,7 +4625,14 @@ export async function executeSshKeyCommand(command, input, context, interaction)
|
|
|
4623
4625
|
return interaction.result({
|
|
4624
4626
|
data: { ssh_keys: page.items.map(projectKey) },
|
|
4625
4627
|
page: page.page,
|
|
4626
|
-
presentation: {
|
|
4628
|
+
presentation: {
|
|
4629
|
+
lines: keyLines(page.items, "Organization SSH keys"),
|
|
4630
|
+
...(page.page.next_cursor
|
|
4631
|
+
? {
|
|
4632
|
+
next: `ornn ssh-keys list --limit ${limit} --cursor ${page.page.next_cursor}`,
|
|
4633
|
+
}
|
|
4634
|
+
: {}),
|
|
4635
|
+
},
|
|
4627
4636
|
});
|
|
4628
4637
|
}
|
|
4629
4638
|
|
|
@@ -135,6 +135,12 @@ function listEnrollmentIssues(request, id, signal) {
|
|
|
135
135
|
signal
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
+
function updateEnrollmentIssue(request, id, code, body) {
|
|
139
|
+
return request(`${root}/hosts/${encodeURIComponent(id)}/issues/${encodeURIComponent(code)}`, {
|
|
140
|
+
method: "PATCH",
|
|
141
|
+
body
|
|
142
|
+
});
|
|
143
|
+
}
|
|
138
144
|
function getEnrollmentSteps(request, id) {
|
|
139
145
|
return request(`${root}/hosts/${encodeURIComponent(id)}/steps`, { method: "GET" });
|
|
140
146
|
}
|
|
@@ -1270,6 +1276,7 @@ export {
|
|
|
1270
1276
|
transferNode,
|
|
1271
1277
|
updateDisk,
|
|
1272
1278
|
updateDrive,
|
|
1279
|
+
updateEnrollmentIssue,
|
|
1273
1280
|
updateEnrollmentProfile,
|
|
1274
1281
|
updateNetwork,
|
|
1275
1282
|
updateNode,
|