@runblackcat/sdk 0.1.0-alpha.102 → 0.1.0-alpha.104

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/README.md CHANGED
@@ -59,7 +59,8 @@ Tenants are **API-managed rows**, not configuration, so an operator can provisio
59
59
  and use one without restarting the service.
60
60
 
61
61
  No ZooKeeper, etcd, or Consul at any scale. Placement is sticky and sandboxes never move
62
- while running, so the problem partitions without consensus.
62
+ while running (a paused sandbox may be moved and resumed on another node, dropping its
63
+ open connections), so the problem partitions without consensus.
63
64
 
64
65
  ## How it fits together
65
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runblackcat/sdk",
3
- "version": "0.1.0-alpha.102",
3
+ "version": "0.1.0-alpha.104",
4
4
  "description": "TypeScript SDK for the Blackcat sandbox gateway",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "https://github.com/TreebeardHQ/blackcat",
@@ -371,11 +371,14 @@ export type CreateCapacityReservationInput = ({
371
371
  * within `ttl_secs`. Absent: as soon as it can be, at the lowest cost. */
372
372
  needed_by?: number | string;
373
373
  /** `shared` (default): any eligible node, free headroom first.
374
- * `dedicated`: one new exclusive metal host launched for this reservation
375
- * alone, never shared with ordinary work or other reservations, and
376
- * terminated when the reservation ends; a sandbox create naming it waits
377
- * for one of its slots. A fleet with no metal shape whose one host holds the
378
- * whole `count` refuses it with 409 `dedicated_metal_unavailable`
374
+ * `dedicated`: as few new exclusive hosts as hold `count` (full hosts of
375
+ * the largest metal shape, the remainder on the smallest metal or nested
376
+ * shape that holds it), launched for this reservation alone, never shared
377
+ * with ordinary work or other reservations, a failed host replaced alone,
378
+ * and terminated when the reservation ends; a sandbox create naming it
379
+ * waits for one of its slots, filling one host before the next. A fleet
380
+ * with no metal shape a host of which holds one copy refuses it with 409
381
+ * `dedicated_metal_unavailable`
379
382
  * (`dedicated_cpu_unsupported` when no metal shape restores the version's CPU). Warm
380
383
  * reservations are always shared. */
381
384
  placement?: "shared" | "dedicated";
@@ -905,7 +908,7 @@ declare class ReservationsResource {
905
908
  release(id: string): Promise<CapacityReservation>;
906
909
  /** Move an active, unoccupied, reusable dedicated reservation pinned to a
907
910
  * version to a prepared template of the same `vcpus` and `memory_mib`,
908
- * keeping its host and bindings. Retargeting to its current template is a
911
+ * keeping its hosts and bindings. Retargeting to its current template is a
909
912
  * no-op. 409 with a `code` and `hint` when it is shared
910
913
  * (`retarget_requires_dedicated`), follows a template resource
911
914
  * (`retarget_follows_resource`), its slots are occupied