@alienplatform/sdk 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.
Files changed (3) hide show
  1. package/LICENSE.md +105 -0
  2. package/dist/dist.js +9 -45
  3. package/package.json +15 -16
package/LICENSE.md ADDED
@@ -0,0 +1,105 @@
1
+ # Functional Source License, Version 1.1, Apache 2.0 Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-Apache-2.0
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 Alien Software, Inc.
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.
package/dist/dist.js CHANGED
@@ -5119,17 +5119,6 @@ const AwsDynamoDbKvHeartbeatDataSchema = object({
5119
5119
  * Generated by Kubb (https://kubb.dev/).
5120
5120
  * Do not edit manually.
5121
5121
  */
5122
- /**
5123
- * @description AWS subnets grouped by their real availability zone.
5124
- */
5125
- const AwsFailureDomainSubnetsSchema = object({
5126
- "privateSubnetIds": optional(array(string()).describe("Private subnet IDs in this availability zone.")),
5127
- "publicSubnetIds": optional(array(string()).describe("Public subnet IDs in this availability zone."))
5128
- }).describe("AWS subnets grouped by their real availability zone.");
5129
- /**
5130
- * Generated by Kubb (https://kubb.dev/).
5131
- * Do not edit manually.
5132
- */
5133
5122
  const ServiceAccountHeartbeatStatusSchema = object({
5134
5123
  get "collectionIssues"() {
5135
5124
  return array(HeartbeatCollectionIssueSchema);
@@ -5224,7 +5213,6 @@ object({
5224
5213
  "publicRouteTableId": string().describe("Public route table ID.").nullish(),
5225
5214
  "publicSubnetIds": array(string()).describe("Public subnet IDs."),
5226
5215
  "securityGroupId": string().describe("Security group ID for private workloads.").nullish(),
5227
- "subnetsByFailureDomain": optional(object({}).catchall(lazy(() => AwsFailureDomainSubnetsSchema).describe("AWS subnets grouped by their real availability zone.")).describe("Exact subnet membership keyed by real availability zone.")),
5228
5216
  "vpcId": string().describe("VPC ID. Absent when default-VPC mode defers lookup to AWS at runtime.").nullish()
5229
5217
  }).describe("AWS Network ImportData.");
5230
5218
  /**
@@ -5613,7 +5601,6 @@ const AzureComputeClusterHeartbeatDataSchema = object({
5613
5601
  object({
5614
5602
  "clusterId": string().describe("Cluster identifier used by the controller."),
5615
5603
  "clusterIdentityPrincipalId": string().describe("AKS cluster identity principal id (system-assigned identity)."),
5616
- "identityId": string().describe("Resource ID of the user-assigned identity attached to cluster VMs."),
5617
5604
  "kubeletIdentityClientId": string().describe("kubelet UAMI client id used by node pools.")
5618
5605
  }).describe("Azure ComputeCluster ImportData — AKS node pool identity / network.");
5619
5606
  /**
@@ -6713,39 +6700,20 @@ object({
6713
6700
  return 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.");
6714
6701
  },
6715
6702
  "containerCidr": 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(),
6716
- "failureDomainSpread": optional(object({}).catchall(int().min(0)).describe("Requested failure-domain spread keyed by capacity group.\nEmpty preserves the existing aggregate layout.")),
6717
- "id": string().describe("Unique identifier for the container cluster.\nMust contain only alphanumeric characters, hyphens, and underscores."),
6718
- "selectedFailureDomains": optional(object({}).catchall(array(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."))
6703
+ "id": string().describe("Unique identifier for the container cluster.\nMust contain only alphanumeric characters, hyphens, and underscores.")
6719
6704
  }).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```");
6720
6705
  /**
6721
6706
  * Generated by Kubb (https://kubb.dev/).
6722
6707
  * Do not edit manually.
6723
6708
  */
6724
6709
  /**
6725
- * @description Failure-domain policy selected for a compute pool.
6726
- */
6727
- const FailureDomainSelectionSchema = object({
6728
- "selectedFailureDomains": optional(array(string()).describe("Concrete provider domains selected during setup.\nEmpty delegates deterministic selection to the provider setup implementation.")),
6729
- "spread": int().min(0).describe("Number of distinct failure domains across which new stateful replicas may be spread.")
6730
- }).describe("Failure-domain policy selected for a compute pool.");
6731
- /**
6732
- * Generated by Kubb (https://kubb.dev/).
6733
- * Do not edit manually.
6734
- */
6735
- /**
6736
6710
  * @description User-selected deployment settings for one compute pool.
6737
6711
  */
6738
6712
  const ComputePoolSelectionSchema = union([object({
6739
- get "failure_domains"() {
6740
- return union([FailureDomainSelectionSchema, _null()]).optional();
6741
- },
6742
6713
  "machine": string().describe("Provider machine type selected for this deployment.").nullish(),
6743
6714
  "machines": int().min(0).describe("Number of machines to run."),
6744
6715
  "mode": _enum(["fixed"])
6745
6716
  }), object({
6746
- get "failure_domains"() {
6747
- return union([FailureDomainSelectionSchema, _null()]).optional();
6748
- },
6749
6717
  "machine": string().describe("Provider machine type selected for this deployment.").nullish(),
6750
6718
  "max": int().min(0).describe("Maximum machine count."),
6751
6719
  "min": int().min(0).describe("Minimum machine count."),
@@ -7098,14 +7066,6 @@ const ContainerStatusSchema = _enum([
7098
7066
  * Do not edit manually.
7099
7067
  */
7100
7068
  /**
7101
- * @description Protocol for public workload endpoints.
7102
- */
7103
- const ExposeProtocolSchema = _enum(["http", "tcp"]).describe("Protocol for public workload endpoints.");
7104
- /**
7105
- * Generated by Kubb (https://kubb.dev/).
7106
- * Do not edit manually.
7107
- */
7108
- /**
7109
7069
  * @description Load balancer endpoint information for DNS management.\nThis is optional metadata used by the DNS controller to create domain mappings.
7110
7070
  */
7111
7071
  const LoadBalancerEndpointSchema = object({
@@ -7124,10 +7084,6 @@ const PublicEndpointOutputSchema = object({
7124
7084
  get "loadBalancerEndpoint"() {
7125
7085
  return union([LoadBalancerEndpointSchema, _null()]).optional();
7126
7086
  },
7127
- "port": int().min(1).max(65535).describe("Public connection port."),
7128
- get "protocol"() {
7129
- return ExposeProtocolSchema.describe("Protocol for public workload endpoints.");
7130
- },
7131
7087
  "url": string().describe("Base URL for this endpoint."),
7132
7088
  "wildcardHost": string().describe("Wildcard hostname routed to this endpoint, when configured.").nullish()
7133
7089
  }).describe("Runtime-resolved public endpoint metadata.");
@@ -7196,6 +7152,14 @@ const PersistentStorageSchema = object({
7196
7152
  * Do not edit manually.
7197
7153
  */
7198
7154
  /**
7155
+ * @description Protocol for public workload endpoints.
7156
+ */
7157
+ const ExposeProtocolSchema = _enum(["http", "tcp"]).describe("Protocol for public workload endpoints.");
7158
+ /**
7159
+ * Generated by Kubb (https://kubb.dev/).
7160
+ * Do not edit manually.
7161
+ */
7162
+ /**
7199
7163
  * @description Public endpoint configuration for port-backed workload resources.
7200
7164
  */
7201
7165
  const PublicEndpointSchema = object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "1.14.1-dev.e74fae6cd01b61e77a285276f264b5480977f41a",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -19,15 +19,6 @@
19
19
  "import": "./dist/native.js"
20
20
  }
21
21
  },
22
- "scripts": {
23
- "build": "tsdown && tsc --emitDeclarationOnly",
24
- "prepare": "npm run build",
25
- "test": "vitest run --passWithNoTests",
26
- "test:ts": "tsc --noEmit",
27
- "generate": "./scripts/generate-proto.sh",
28
- "format-and-lint": "biome check .",
29
- "format-and-lint:fix": "biome check . --write"
30
- },
31
22
  "sideEffects": false,
32
23
  "keywords": [
33
24
  "alien",
@@ -48,21 +39,29 @@
48
39
  "access": "public"
49
40
  },
50
41
  "devDependencies": {
51
- "@alienplatform/typescript-config": "workspace:^",
52
42
  "@biomejs/biome": "^1.9.4",
53
43
  "@types/node": "^24.0.15",
54
44
  "ts-proto": "^2.7.0",
55
45
  "tsdown": "^0.13.0",
56
46
  "typescript": "^5.8.3",
57
- "vitest": "^3.1.4"
47
+ "vitest": "^3.1.4",
48
+ "@alienplatform/typescript-config": "^1.0.0"
58
49
  },
59
50
  "dependencies": {
60
- "@alienplatform/bindings": "1.14.1-dev.e74fae6cd01b61e77a285276f264b5480977f41a",
61
- "@alienplatform/core": "1.14.1-dev.e74fae6cd01b61e77a285276f264b5480977f41a",
62
51
  "@bufbuild/protobuf": "^2.5.3",
63
52
  "@grpc/grpc-js": "^1.14.4",
64
53
  "nice-grpc": "^2.1.11",
65
54
  "nice-grpc-common": "^2.0.2",
66
- "zod": "4.3.2"
55
+ "zod": "4.3.2",
56
+ "@alienplatform/bindings": "^2.0.0",
57
+ "@alienplatform/core": "^2.0.0"
58
+ },
59
+ "scripts": {
60
+ "build": "tsdown && tsc --emitDeclarationOnly",
61
+ "test": "vitest run --passWithNoTests",
62
+ "test:ts": "tsc --noEmit",
63
+ "generate": "./scripts/generate-proto.sh",
64
+ "format-and-lint": "biome check .",
65
+ "format-and-lint:fix": "biome check . --write"
67
66
  }
68
- }
67
+ }