@runuai/host 0.9.80 → 0.9.81

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.
@@ -399,7 +399,20 @@ export function createAwsMachineProvider(
399
399
  }`,
400
400
  );
401
401
  }
402
- const info = await describe(machineId);
402
+ // DescribeInstances TAG FILTERS are eventually consistent: the query
403
+ // can miss an instance RunInstances just created (live 2026-08-28 —
404
+ // the machine was running the whole time while launch reported
405
+ // "absent"). Absence immediately after a successful launch is
406
+ // therefore not evidence yet; give the filter a bounded window.
407
+ let info = await describe(machineId);
408
+ for (
409
+ let attempt = 0;
410
+ (info.state === "absent" || info.state === "unknown") && attempt < 5;
411
+ attempt += 1
412
+ ) {
413
+ await new Promise<void>((resolve) => setTimeout(resolve, 3_000));
414
+ info = await describe(machineId);
415
+ }
403
416
  if (info.state === "absent" || info.state === "unknown") {
404
417
  throw new Error(
405
418
  `machine ${machineId} launched but could not be described (${info.state}${
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.9.80",
3
+ "version": "0.9.81",
4
4
  "description": "Uai host — runs ephemeral AI tasks in containers on a machine you control.",
5
5
  "license": "MIT",
6
6
  "author": "Uai Tech <team@runuai.com>",