@alienplatform/core 1.14.1-dev.e74fae6cd01b61e77a285276f264b5480977f41a → 2.0.0

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/dist/index.js CHANGED
@@ -1219,19 +1219,6 @@ const AwsDynamoDbKvHeartbeatDataSchema = z$2.object({
1219
1219
  "ttlStatus": z$2.string().nullish()
1220
1220
  });
1221
1221
  //#endregion
1222
- //#region src/generated/zod/aws-failure-domain-subnets-schema.ts
1223
- /**
1224
- * Generated by Kubb (https://kubb.dev/).
1225
- * Do not edit manually.
1226
- */
1227
- /**
1228
- * @description AWS subnets grouped by their real availability zone.
1229
- */
1230
- const AwsFailureDomainSubnetsSchema = z$2.object({
1231
- "privateSubnetIds": z$2.optional(z$2.array(z$2.string()).describe("Private subnet IDs in this availability zone.")),
1232
- "publicSubnetIds": z$2.optional(z$2.array(z$2.string()).describe("Public subnet IDs in this availability zone."))
1233
- }).describe("AWS subnets grouped by their real availability zone.");
1234
- //#endregion
1235
1222
  //#region src/generated/zod/service-account-heartbeat-status-schema.ts
1236
1223
  /**
1237
1224
  * Generated by Kubb (https://kubb.dev/).
@@ -1355,7 +1342,6 @@ const AwsNetworkImportDataSchema = z$2.object({
1355
1342
  "publicRouteTableId": z$2.string().describe("Public route table ID.").nullish(),
1356
1343
  "publicSubnetIds": z$2.array(z$2.string()).describe("Public subnet IDs."),
1357
1344
  "securityGroupId": z$2.string().describe("Security group ID for private workloads.").nullish(),
1358
- "subnetsByFailureDomain": z$2.optional(z$2.object({}).catchall(z$2.lazy(() => AwsFailureDomainSubnetsSchema).describe("AWS subnets grouped by their real availability zone.")).describe("Exact subnet membership keyed by real availability zone.")),
1359
1345
  "vpcId": z$2.string().describe("VPC ID. Absent when default-VPC mode defers lookup to AWS at runtime.").nullish()
1360
1346
  }).describe("AWS Network ImportData.");
1361
1347
  //#endregion
@@ -1857,7 +1843,6 @@ const AzureComputeClusterHeartbeatDataSchema = z$2.object({
1857
1843
  const AzureComputeClusterImportDataSchema = z$2.object({
1858
1844
  "clusterId": z$2.string().describe("Cluster identifier used by the controller."),
1859
1845
  "clusterIdentityPrincipalId": z$2.string().describe("AKS cluster identity principal id (system-assigned identity)."),
1860
- "identityId": z$2.string().describe("Resource ID of the user-assigned identity attached to cluster VMs."),
1861
1846
  "kubeletIdentityClientId": z$2.string().describe("kubelet UAMI client id used by node pools.")
1862
1847
  }).describe("Azure ComputeCluster ImportData — AKS node pool identity / network.");
1863
1848
  //#endregion
@@ -3243,24 +3228,9 @@ const ComputeClusterSchema = z$2.object({
3243
3228
  return z$2.array(CapacityGroupSchema.describe("Capacity group definition.\n\nA capacity group represents machines with identical hardware profiles.\nEach group becomes a separate Auto Scaling Group (AWS), Managed Instance Group (GCP),\nor VM Scale Set (Azure).")).describe("Capacity groups defining the machine pools for this cluster.\nEach group becomes a separate ASG/MIG/VMSS.");
3244
3229
  },
3245
3230
  "containerCidr": z$2.string().describe("Container CIDR block for internal container networking.\nAuto-generated as \"10.244.0.0/16\" if not specified.\nEach machine gets a /24 subnet from this range.").nullish(),
3246
- "failureDomainSpread": z$2.optional(z$2.object({}).catchall(z$2.int().min(0)).describe("Requested failure-domain spread keyed by capacity group.\nEmpty preserves the existing aggregate layout.")),
3247
- "id": z$2.string().describe("Unique identifier for the container cluster.\nMust contain only alphanumeric characters, hyphens, and underscores."),
3248
- "selectedFailureDomains": z$2.optional(z$2.object({}).catchall(z$2.array(z$2.string())).describe("Concrete provider failure domains selected during setup, keyed by capacity group.\nEmpty preserves the existing aggregate layout when no spread policy is configured."))
3231
+ "id": z$2.string().describe("Unique identifier for the container cluster.\nMust contain only alphanumeric characters, hyphens, and underscores.")
3249
3232
  }).describe("ComputeCluster resource for running long-running container workloads.\n\nA ComputeCluster provides the setup-owned machine boundary for containers.\nAlien may manage the worker fleet inside that boundary when setup grants\n`compute-cluster/management`.\n\n## Architecture\n\n- **Setup** creates cloud resources: ASGs/MIGs/VMSSs, IAM roles, security groups\n- **Alien** manages allowed fleet operations: machine count and runtime\n machine image rollout\n- A node agent runs on each machine from the selected runtime image channel\n\n## Example\n\n```rust\nuse alien_core::{CapacityGroup, ComputeCluster, MachineProfile};\n\nlet cluster = ComputeCluster::new(\"compute\".to_string())\n .capacity_group(CapacityGroup {\n group_id: \"general\".to_string(),\n instance_type: None,\n profile: Some(MachineProfile {\n cpu: \"4.0\".to_string(),\n memory_bytes: 16 * 1024 * 1024 * 1024,\n ephemeral_storage_bytes: 20 * 1024 * 1024 * 1024,\n architecture: None,\n gpu: None,\n }),\n min_size: 1,\n max_size: 5,\n scale_policy: None,\n nested_virtualization: None,\n })\n .build();\n```");
3250
3233
  //#endregion
3251
- //#region src/generated/zod/failure-domain-selection-schema.ts
3252
- /**
3253
- * Generated by Kubb (https://kubb.dev/).
3254
- * Do not edit manually.
3255
- */
3256
- /**
3257
- * @description Failure-domain policy selected for a compute pool.
3258
- */
3259
- const FailureDomainSelectionSchema = z$2.object({
3260
- "selectedFailureDomains": z$2.optional(z$2.array(z$2.string()).describe("Concrete provider domains selected during setup.\nEmpty delegates deterministic selection to the provider setup implementation.")),
3261
- "spread": z$2.int().min(0).describe("Number of distinct failure domains across which new stateful replicas may be spread.")
3262
- }).describe("Failure-domain policy selected for a compute pool.");
3263
- //#endregion
3264
3234
  //#region src/generated/zod/compute-pool-selection-schema.ts
3265
3235
  /**
3266
3236
  * Generated by Kubb (https://kubb.dev/).
@@ -3270,16 +3240,10 @@ const FailureDomainSelectionSchema = z$2.object({
3270
3240
  * @description User-selected deployment settings for one compute pool.
3271
3241
  */
3272
3242
  const ComputePoolSelectionSchema = z$2.union([z$2.object({
3273
- get "failure_domains"() {
3274
- return z$2.union([FailureDomainSelectionSchema, z$2.null()]).optional();
3275
- },
3276
3243
  "machine": z$2.string().describe("Provider machine type selected for this deployment.").nullish(),
3277
3244
  "machines": z$2.int().min(0).describe("Number of machines to run."),
3278
3245
  "mode": z$2.enum(["fixed"])
3279
3246
  }), z$2.object({
3280
- get "failure_domains"() {
3281
- return z$2.union([FailureDomainSelectionSchema, z$2.null()]).optional();
3282
- },
3283
3247
  "machine": z$2.string().describe("Provider machine type selected for this deployment.").nullish(),
3284
3248
  "max": z$2.int().min(0).describe("Maximum machine count."),
3285
3249
  "min": z$2.int().min(0).describe("Minimum machine count."),
@@ -3670,16 +3634,6 @@ const ContainerStatusSchema = z$2.enum([
3670
3634
  "failing"
3671
3635
  ]).describe("Container status in the managed container backend.");
3672
3636
  //#endregion
3673
- //#region src/generated/zod/expose-protocol-schema.ts
3674
- /**
3675
- * Generated by Kubb (https://kubb.dev/).
3676
- * Do not edit manually.
3677
- */
3678
- /**
3679
- * @description Protocol for public workload endpoints.
3680
- */
3681
- const ExposeProtocolSchema = z$2.enum(["http", "tcp"]).describe("Protocol for public workload endpoints.");
3682
- //#endregion
3683
3637
  //#region src/generated/zod/load-balancer-endpoint-schema.ts
3684
3638
  /**
3685
3639
  * Generated by Kubb (https://kubb.dev/).
@@ -3706,10 +3660,6 @@ const PublicEndpointOutputSchema = z$2.object({
3706
3660
  get "loadBalancerEndpoint"() {
3707
3661
  return z$2.union([LoadBalancerEndpointSchema, z$2.null()]).optional();
3708
3662
  },
3709
- "port": z$2.int().min(1).max(65535).describe("Public connection port."),
3710
- get "protocol"() {
3711
- return ExposeProtocolSchema.describe("Protocol for public workload endpoints.");
3712
- },
3713
3663
  "url": z$2.string().describe("Base URL for this endpoint."),
3714
3664
  "wildcardHost": z$2.string().describe("Wildcard hostname routed to this endpoint, when configured.").nullish()
3715
3665
  }).describe("Runtime-resolved public endpoint metadata.");
@@ -3791,6 +3741,16 @@ const PersistentStorageSchema = z$2.object({
3791
3741
  "size": z$2.string().describe("Storage size (e.g., \"100Gi\", \"500Gi\")")
3792
3742
  }).describe("Persistent storage configuration for stateful containers.");
3793
3743
  //#endregion
3744
+ //#region src/generated/zod/expose-protocol-schema.ts
3745
+ /**
3746
+ * Generated by Kubb (https://kubb.dev/).
3747
+ * Do not edit manually.
3748
+ */
3749
+ /**
3750
+ * @description Protocol for public workload endpoints.
3751
+ */
3752
+ const ExposeProtocolSchema = z$2.enum(["http", "tcp"]).describe("Protocol for public workload endpoints.");
3753
+ //#endregion
3794
3754
  //#region src/generated/zod/public-endpoint-schema.ts
3795
3755
  /**
3796
3756
  * Generated by Kubb (https://kubb.dev/).