runcloud 0.2.176 → 0.2.177

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.
@@ -169,14 +169,14 @@ export async function inspectFleet(client, options = {}, now) {
169
169
  const fleet = await readSource(client, ROOT);
170
170
  if (fleet.state === 'unavailable' || !Array.isArray(fleet.data.hosts))
171
171
  throw new Error(`Fleet read unavailable (${fleet.reason ?? 'invalid_response'}); use an admin identity with read permission`);
172
- const [inventory, shared, diagnostics, events, history, jenkins] = await Promise.all([
173
- readSource(client, '/run-cloud/admin/fleet-inventory'),
172
+ const [shared, diagnostics, events, history, jenkins] = await Promise.all([
174
173
  readSource(client, `${ROOT}/operator-inventory`),
175
174
  readSource(client, `${ROOT}/diagnostics?${query}`),
176
175
  readFleetEvents(client, options),
177
176
  options.hostId ? readSource(client, `${ROOT}/history?${new URLSearchParams({ range: options.range ?? '24h', hostId: options.hostId })}`) : Promise.resolve(null),
178
177
  readSource(client, '/run-cloud/admin/jenkins'),
179
178
  ]);
179
+ const inventory = await readSource(client, '/run-cloud/admin/fleet-inventory');
180
180
  for (const [source, key] of [[inventory, 'hosts'], [shared, 'snapshots'], [diagnostics, 'diagnoses'], [jenkins, 'nodes']]) {
181
181
  if (source.state === 'available' && !Array.isArray(source.data[key])) {
182
182
  source.state = 'unavailable';
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.176';
1
+ export const CLI_VERSION = '0.2.177';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.176",
3
+ "version": "0.2.177",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
Binary file
Binary file