@krovacloud/sdk 0.3.7 → 0.3.8

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -52,6 +52,7 @@ console.log(` ${cube.resources.vcpu} vCPU / ${cube.resources.ramGb} GB RAM, ima
52
52
  // Sleep it, then wake it
53
53
  await krova.cubes.powerOff("space_123", cube.id);
54
54
  await krova.cubes.wake("space_123", cube.id);
55
+ await krova.cubes.restart("space_123", cube.id); // cold restart
55
56
  ```
56
57
 
57
58
  ## Authentication
@@ -135,6 +136,11 @@ await krova.cubes.update("space_123", cube.id, { cubePort: 2222 });
135
136
  // lifecycle — sleep, wake, delete are asynchronous (enqueued)
136
137
  await krova.cubes.powerOff("space_123", cube.id);
137
138
  await krova.cubes.wake("space_123", cube.id);
139
+ // Cold restart: reboots against the host's current kernel, preserving the disk.
140
+ // The only way to pick up a refreshed guest kernel — a `reboot` run INSIDE the
141
+ // Cube cannot, because the kernel is supplied by the host, and it reports no
142
+ // error. Requires the Cube to be `running`; a concurrent restart 409s.
143
+ await krova.cubes.restart("space_123", cube.id);
138
144
  await krova.cubes.delete("space_123", cube.id);
139
145
  ```
140
146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krovacloud/sdk",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Official TypeScript SDK for Krova Cloud — a typed client for provisioning and managing Cubes (Firecracker microVMs) with dedicated resources.",
5
5
  "license": "MIT",
6
6
  "type": "module",