@ornncompute/cli 1.0.195 → 1.0.196
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
|
@@ -4798,7 +4798,7 @@ var listNodesCapability = defineCapability({
|
|
|
4798
4798
|
domain: "fleet",
|
|
4799
4799
|
roles: ["user", "admin"],
|
|
4800
4800
|
mcp: { roles: ["admin"] },
|
|
4801
|
-
description: "List nodes. Users
|
|
4801
|
+
description: "List nodes. Users pass reservation_id for one of their own reservations and see its machines. Admins see enrolled and ghost nodes. Call with no filters for the whole fleet. Optional reservation_id lists the nodes on one reservation (find a customer's reservations with reservation.list customerId). Optional organization_id (supplier), facility_id, and status (ghost, bare-metal) narrow the same list. Paginate large fleets with cursor + max: pass the response's next_cursor back as cursor to fetch the next page; next_cursor is omitted once the page is not full. Never invent nodes. Never print private keys.",
|
|
4802
4802
|
mutation: "read",
|
|
4803
4803
|
cli: {
|
|
4804
4804
|
command: ["admin", "nodes", "list"],
|
|
@@ -4851,7 +4851,10 @@ var listNodesCapability = defineCapability({
|
|
|
4851
4851
|
limit: parsed.max != null || parsed.limit != null ? String(parsed.max ?? parsed.limit) : void 0
|
|
4852
4852
|
};
|
|
4853
4853
|
if (ctx.role === "user") {
|
|
4854
|
-
return listNodes(ctx.fetch,
|
|
4854
|
+
return listNodes(ctx.fetch, {
|
|
4855
|
+
reservation_id: parsed.reservation_id,
|
|
4856
|
+
...pagination
|
|
4857
|
+
});
|
|
4855
4858
|
}
|
|
4856
4859
|
return listStaffNodes(ctx.fetch, {
|
|
4857
4860
|
organization_id: parsed.organization_id,
|