From 1effa2876b5de49ae9df20c1d7ed81e54f18d86f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 20:19:48 +0000 Subject: [PATCH 1/2] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 55ad565..8a79b39 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-e052ac01c788e7e3e46c96bf3c42be7ae57f9dd046129add8012d0eeb388e884.yml -openapi_spec_hash: fd805921c0162d63405f5feb7e8c7082 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5556e348a70b8472aa8e319b6618891b4eb6ab7b7e063ecc2d63f9eaf7d4f059.yml +openapi_spec_hash: 62fd2bec46b7a8747363a37ea35ce6db config_hash: 14135b7c88169a15762c8defb0bdfd16 From 3992761e3ad8ebb0cc22fb7408199b068e9d8013 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 21:00:40 +0000 Subject: [PATCH 2/2] feat: add boot time optimizations for faster VM startup --- .stats.yml | 4 ++-- instance.go | 9 +++++++++ instance_test.go | 8 +++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8a79b39..7320373 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 36 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5556e348a70b8472aa8e319b6618891b4eb6ab7b7e063ecc2d63f9eaf7d4f059.yml -openapi_spec_hash: 62fd2bec46b7a8747363a37ea35ce6db +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-4f6187089a62f5df123ef4ee17660dd737c2b486377af2b5c5a922d454067b41.yml +openapi_spec_hash: 53e42659f7453f1abfda3236c3f7cb31 config_hash: 14135b7c88169a15762c8defb0bdfd16 diff --git a/instance.go b/instance.go index 7872d14..dbd6cca 100644 --- a/instance.go +++ b/instance.go @@ -453,6 +453,15 @@ type InstanceNewParams struct { OverlaySize param.Opt[string] `json:"overlay_size,omitzero"` // Base memory size (human-readable format like "1GB", "512MB", "2G") Size param.Opt[string] `json:"size,omitzero"` + // Skip guest-agent installation during boot. When true, the exec and stat APIs + // will not work for this instance. The instance will still run, but remote command + // execution will be unavailable. + SkipGuestAgent param.Opt[bool] `json:"skip_guest_agent,omitzero"` + // Skip kernel headers installation during boot for faster startup. When true, DKMS + // (Dynamic Kernel Module Support) will not work, preventing compilation of + // out-of-tree kernel modules (e.g., NVIDIA vGPU drivers). Recommended for + // workloads that don't need kernel module compilation. + SkipKernelHeaders param.Opt[bool] `json:"skip_kernel_headers,omitzero"` // Number of virtual CPUs Vcpus param.Opt[int64] `json:"vcpus,omitzero"` // Device IDs or names to attach for GPU/PCI passthrough diff --git a/instance_test.go b/instance_test.go index e5a73b9..f839230 100644 --- a/instance_test.go +++ b/instance_test.go @@ -45,9 +45,11 @@ func TestInstanceNewWithOptionalParams(t *testing.T) { BandwidthUpload: hypeman.String("1Gbps"), Enabled: hypeman.Bool(true), }, - OverlaySize: hypeman.String("20GB"), - Size: hypeman.String("2GB"), - Vcpus: hypeman.Int(2), + OverlaySize: hypeman.String("20GB"), + Size: hypeman.String("2GB"), + SkipGuestAgent: hypeman.Bool(false), + SkipKernelHeaders: hypeman.Bool(true), + Vcpus: hypeman.Int(2), Volumes: []hypeman.VolumeMountParam{{ MountPath: "/mnt/data", VolumeID: "vol-abc123",