@alienplatform/sdk 3.3.64 → 3.3.66
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/registry.js +64 -25
- package/dist/worker-runtime/index.js +29 -26
- package/package.json +4 -4
package/dist/registry.js
CHANGED
|
@@ -5824,6 +5824,7 @@ const StackResourceStateSchema = object({
|
|
|
5824
5824
|
get "dependencies"() {
|
|
5825
5825
|
return array(ResourceRefSchema.describe("Reference to a resource by its stable id and resource type.")).describe("Complete list of dependencies for this resource, including infrastructure dependencies.\nThis preserves the full dependency information from the stack definition.").optional();
|
|
5826
5826
|
},
|
|
5827
|
+
"dependencyUpdatePending": optional(boolean().describe("Whether this resource owes an update because a dependency is changing, though its own\nconfig is not. The update waits until the dependency has rolled to the release being\napplied, so the owed update must survive between plans and restarts. Cleared when the\nupdate starts. State written before this field existed reads as not owing one.")),
|
|
5827
5828
|
"description": string().nullish(),
|
|
5828
5829
|
"displayName": string().describe("Presentation metadata from the effective resource entry, outside runtime configuration.").nullish(),
|
|
5829
5830
|
get "error"() {
|
|
@@ -5842,6 +5843,7 @@ const StackResourceStateSchema = object({
|
|
|
5842
5843
|
},
|
|
5843
5844
|
"progress": string().describe("Last reported step explanation for display only; not a machine-readable status.").nullish(),
|
|
5844
5845
|
"remoteBindingParams": optional(any().describe("Binding parameters for remote access.\nOnly populated when the resource has `remote_access: true` in its ResourceEntry.\nThis is the JSON serialization of the binding configuration (e.g., StorageBinding, VaultBinding).\nPopulated by controllers during provisioning using get_binding_params().")),
|
|
5846
|
+
"requestedUpdateRan": string().describe("The rollout in which an update ran because the controller asked for one while the\nconfig was unchanged. While the controller keeps asking in that same rollout, its\ndependents no longer wait for it, so a check that never settles cannot hold them back\nfor good. A later rollout is a new request and is waited for again. Cleared once the\ncontroller stops asking. State written before this field existed (it was a flag then)\nreads as none.").nullish(),
|
|
5845
5847
|
"retryAttempt": optional(int().min(0).describe("Tracks consecutive retry attempts for the current state transition.")),
|
|
5846
5848
|
get "status"() {
|
|
5847
5849
|
return ResourceStatusSchema.describe("Represents the high-level status of a resource during its lifecycle.");
|
|
@@ -6246,7 +6248,8 @@ object({
|
|
|
6246
6248
|
}).describe("Outputs generated by a successfully provisioned ArtifactRegistry.");
|
|
6247
6249
|
object({
|
|
6248
6250
|
"id": string().describe("Identifier for the artifact registry. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]).\nMaximum 64 characters."),
|
|
6249
|
-
"replicationRegions": optional(array(string()).describe("AWS-only: regions to replicate container images to.\nECR private image replication ensures images pushed in the registry's home region\nare automatically available in these additional regions (required when Lambda or\nother compute runs in a different region from the registry)."))
|
|
6251
|
+
"replicationRegions": optional(array(string()).describe("AWS-only: regions to replicate container images to.\nECR private image replication ensures images pushed in the registry's home region\nare automatically available in these additional regions (required when Lambda or\nother compute runs in a different region from the registry).")),
|
|
6252
|
+
"replicationRegionsInput": string().describe("AWS-only: id of a deployer-provided string-list stack input that names the\nregions to replicate to. CloudFormation reads the list at deploy time, so\nthe template reserves a fixed number of region slots. Empty answers write\nno replication configuration, so existing installs render unchanged.").nullish()
|
|
6250
6253
|
}).describe("Represents an artifact registry for storing container images and other build artifacts.\nThis is a high-level wrapper resource that provides a cloud-agnostic interface over\nAWS ECR, GCP Artifact Registry, and Azure Container Registry.\n\n# Platform Mapping\n- **AWS**: Implicitly exists as the AWS account and region\n- **GCP**: Explicitly configured per project and location (Artifact Registry API enabled)\n- **Azure**: Explicitly provisioned Azure Container Registry instance\n\nThe actual repository management and permissions are handled through the bindings API.");
|
|
6251
6254
|
/**
|
|
6252
6255
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -7616,6 +7619,7 @@ object({
|
|
|
7616
7619
|
"version": string().describe("Engine version the server reports.")
|
|
7617
7620
|
}).describe("Azure Postgres (Flexible Server + Private Endpoint) registration data: the handles by\nwhich a setup-created Flexible Server (with its Private Endpoint, private DNS zone, and\nthe Key Vault secret holding the master password) is registered as a Frozen Postgres\nresource. Setup owns the server, Alien refreshes and heartbeats it. The raw password is\nnever carried, only the Key Vault secret URI.");
|
|
7618
7621
|
object({
|
|
7622
|
+
"diskEncryptionSetId": string().describe("Disk Encryption Set created for volumes that use the key; absent when none do.").nullish(),
|
|
7619
7623
|
"keyId": string().describe("Full versioned Key Vault key ID used for new wrapping operations."),
|
|
7620
7624
|
"keyName": string().describe("Key name within the vault."),
|
|
7621
7625
|
"lineageVersionId": string().describe("Version ID that identifies the original key lineage."),
|
|
@@ -7812,7 +7816,7 @@ const AzureManagementConfigSchema = object({
|
|
|
7812
7816
|
* @description Setup-owned subnet coordinates consumed by an internal sandbox gateway load balancer.
|
|
7813
7817
|
*/
|
|
7814
7818
|
const AzureSandboxNetworkSchema = object({
|
|
7815
|
-
"gatewayCidrs": array(string()).describe("Gateway ranges allowed by the sandbox subnet NSGs on
|
|
7819
|
+
"gatewayCidrs": array(string()).describe("Gateway ranges allowed by the sandbox subnet NSGs on TCP 3128. Deployments set up before\nthe admin port was removed from that rule also allow TCP 3129; both are accepted."),
|
|
7816
7820
|
"gatewaySubnetIds": array(string()).describe("Undelegated subnet reserved for the gateway load balancer's frontend."),
|
|
7817
7821
|
"sandboxCidrs": array(string()).describe("Sandbox source ranges allowed on the proxy listener."),
|
|
7818
7822
|
"sandboxCidrsByResource": optional(object({}).catchall(array(string())).describe("Dedicated source ranges keyed by Sandbox resource id for exact linked-resource access.")),
|
|
@@ -9440,7 +9444,7 @@ const VolumeOutputSchema = object({
|
|
|
9440
9444
|
object({
|
|
9441
9445
|
"currentReplicas": int().min(0).describe("Number of current replicas"),
|
|
9442
9446
|
"desiredReplicas": int().min(0).describe("Desired number of replicas"),
|
|
9443
|
-
"internalDns": string().describe("Internal DNS name
|
|
9447
|
+
"internalDns": string().describe("Internal DNS name of the container's Service. On Kubernetes this is\n`<name>.<namespace>.svc.<cluster domain>`; other platforms have no such\nname. To reach another container, use the link binding\n(`ALIEN_<ID>_BINDING`, `internalUrls`), not a name built from the id."),
|
|
9444
9448
|
"internalUrls": optional(object({}).catchall(string()).describe("Internal URLs keyed by port for cluster members and linking resources.")),
|
|
9445
9449
|
"name": string().describe("Container name in the managed container backend"),
|
|
9446
9450
|
"publicEndpoints": optional(object({}).catchall(lazy(() => PublicEndpointOutputSchema).describe("Runtime-resolved public endpoint metadata.")).describe("Public endpoints resolved for this container.")),
|
|
@@ -9497,32 +9501,25 @@ const ContainerResourceChoicesSchema = object({
|
|
|
9497
9501
|
* Do not edit manually.
|
|
9498
9502
|
*/
|
|
9499
9503
|
/**
|
|
9500
|
-
* @description Security profile shared by container runtimes.
|
|
9504
|
+
* @description Security profile shared by container runtimes.\n\nA workload without a `security` setting runs as its image was built. Setting\n`security.profile` to `restricted` applies the Kubernetes Pod Security\n`restricted` profile; `unrestricted` states that no profile is applied. A\n`security` object without a `profile` is a parse error: there is no default\nprofile.
|
|
9501
9505
|
*/
|
|
9502
|
-
const ContainerSecurityProfileSchema = _enum(["restricted"]).describe("Security profile shared by container runtimes.");
|
|
9506
|
+
const ContainerSecurityProfileSchema = _enum(["restricted", "unrestricted"]).describe("Security profile shared by container runtimes.\n\nA workload without a `security` setting runs as its image was built. Setting\n`security.profile` to `restricted` applies the Kubernetes Pod Security\n`restricted` profile; `unrestricted` states that no profile is applied. A\n`security` object without a `profile` is a parse error: there is no default\nprofile.");
|
|
9503
9507
|
/**
|
|
9504
9508
|
* Generated by Kubb (https://kubb.dev/).
|
|
9505
9509
|
* Do not edit manually.
|
|
9506
9510
|
*/
|
|
9507
9511
|
/**
|
|
9508
|
-
* @description Container process identity and filesystem security.
|
|
9512
|
+
* @description Container process identity and filesystem security.\n\nAbsent means no pod security settings are applied: the workload runs as\nits image was built. Setting `profile: restricted` applies the restricted\nprofile (with the image\'s own non-root user unless `runAsUser` is set).\n\nOn the wire every field a previous Operator requires is always written with\na concrete value (`runAsUser`/`runAsGroup` as 65532 and `readOnlyRootFilesystem`\nas the profile\'s default when unset) and `profile` is written as `restricted`\n(the only value a previous release knows), so state and bundles written by\nthis version stay readable after an Operator rollback. The `*Unset` and\n`unrestricted` markers, which previous releases ignore, record what was\nreally set, so reading restores the exact value and never treats a real `0`\nor `false` as unset. A previous Operator applies `restricted` to an opted-out\nworkload, so an image that needs root must not be rolled back to it.
|
|
9509
9513
|
*/
|
|
9510
9514
|
const ContainerSecuritySchema = object({
|
|
9511
9515
|
get "profile"() {
|
|
9512
|
-
return ContainerSecurityProfileSchema.describe("Security profile shared by container runtimes.");
|
|
9516
|
+
return ContainerSecurityProfileSchema.describe("Security profile shared by container runtimes.\n\nA workload without a `security` setting runs as its image was built. Setting\n`security.profile` to `restricted` applies the Kubernetes Pod Security\n`restricted` profile; `unrestricted` states that no profile is applied. A\n`security` object without a `profile` is a parse error: there is no default\nprofile.");
|
|
9513
9517
|
},
|
|
9514
|
-
"readOnlyRootFilesystem": boolean().describe("Mount the root filesystem read-only."),
|
|
9515
|
-
"runAsGroup": int().describe("Numeric GID for the container process."),
|
|
9516
|
-
"runAsUser": int().describe("Numeric UID for the container process.")
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
9520
|
-
* Do not edit manually.
|
|
9521
|
-
*/
|
|
9522
|
-
/**
|
|
9523
|
-
* @description A container port reachable from the control plane through the manager.\n\nRequests to `/v1/deployments/{deployment}/tunnels/{container}/...` on the\nmanager are forwarded to this port over the operator\'s outbound\nconnection, so the control plane can call the service without any inbound\nnetwork path into the deployment.
|
|
9524
|
-
*/
|
|
9525
|
-
const ContainerTunnelSchema = object({ "port": int().min(0).describe("Container port that serves HTTP. Must be one of the container's ports.") }).describe("A container port reachable from the control plane through the manager.\n\nRequests to `/v1/deployments/{deployment}/tunnels/{container}/...` on the\nmanager are forwarded to this port over the operator's outbound\nconnection, so the control plane can call the service without any inbound\nnetwork path into the deployment.");
|
|
9518
|
+
"readOnlyRootFilesystem": boolean().describe("Mount the root filesystem read-only. Defaults to true under `restricted`.").nullish(),
|
|
9519
|
+
"runAsGroup": int().describe("Numeric GID for the container process. Defaults to the image's group.").nullish(),
|
|
9520
|
+
"runAsUser": int().describe("Numeric UID for the container process. Defaults to the image's user,\nwhich must not be root.").nullish(),
|
|
9521
|
+
"writablePaths": optional(array(string()).describe("Absolute paths backed by a writable emptyDir. `/tmp` is always writable."))
|
|
9522
|
+
}).describe("Container process identity and filesystem security.\n\nAbsent means no pod security settings are applied: the workload runs as\nits image was built. Setting `profile: restricted` applies the restricted\nprofile (with the image's own non-root user unless `runAsUser` is set).\n\nOn the wire every field a previous Operator requires is always written with\na concrete value (`runAsUser`/`runAsGroup` as 65532 and `readOnlyRootFilesystem`\nas the profile's default when unset) and `profile` is written as `restricted`\n(the only value a previous release knows), so state and bundles written by\nthis version stay readable after an Operator rollback. The `*Unset` and\n`unrestricted` markers, which previous releases ignore, record what was\nreally set, so reading restores the exact value and never treats a real `0`\nor `false` as unset. A previous Operator applies `restricted` to an opted-out\nworkload, so an image that needs root must not be rolled back to it.");
|
|
9526
9523
|
/**
|
|
9527
9524
|
* Generated by Kubb (https://kubb.dev/).
|
|
9528
9525
|
* Do not edit manually.
|
|
@@ -9535,6 +9532,7 @@ const HealthCheckSchema = object({
|
|
|
9535
9532
|
"method": optional(string().describe("HTTP method to use for health check")),
|
|
9536
9533
|
"path": optional(string().describe("HTTP endpoint path to check (e.g., \"/health\", \"/ready\")")),
|
|
9537
9534
|
"port": int().min(0).describe("Port to check (defaults to container port if not specified)").nullish(),
|
|
9535
|
+
"startupTimeoutSeconds": int().min(0).describe("Daemons only: how long a replica may run without passing its health check before the\nupdate fails, in seconds, counted from when the replica first reports running.\nDefaults to 600 (10 minutes); at most 86400 (24 hours).").nullish(),
|
|
9538
9536
|
"timeoutSeconds": optional(int().min(0).describe("Request timeout in seconds (1-5)"))
|
|
9539
9537
|
}).describe("HTTP health check configuration.");
|
|
9540
9538
|
/**
|
|
@@ -9691,10 +9689,7 @@ object({
|
|
|
9691
9689
|
return union([ContainerSecuritySchema, _null()]).optional();
|
|
9692
9690
|
},
|
|
9693
9691
|
"stateful": optional(boolean().describe("Whether container is stateful (gets stable ordinals, optional persistent volumes)")),
|
|
9694
|
-
"stopGracePeriodSeconds": int().min(1).max(86400).describe("Grace period in seconds for stopping replicas during updates, drains, and deletes.\n\nWhen omitted, the runtime backend applies its default. Valid values are\n1 second through 24 hours.").nullish()
|
|
9695
|
-
get "tunnel"() {
|
|
9696
|
-
return union([ContainerTunnelSchema, _null()]).optional();
|
|
9697
|
-
}
|
|
9692
|
+
"stopGracePeriodSeconds": int().min(1).max(86400).describe("Grace period in seconds for stopping replicas during updates, drains, and deletes.\n\nWhen omitted, the runtime backend applies its default. Valid values are\n1 second through 24 hours.").nullish()
|
|
9698
9693
|
}).describe("Container resource for running long-running container workloads.\n\nA Container defines a deployable unit that runs on a ComputeCluster.\nThe managed container backend handles scheduling replicas across machines,\nautoscaling based on various metrics, and service discovery.\n\n## Example\n\n```rust\nuse alien_core::{Container, ContainerCode, ResourceSpec, ContainerAutoscaling, PublicEndpoint, ExposeProtocol};\n\nlet container = Container::new(\"api\".to_string())\n .cluster(\"compute\".to_string())\n .code(ContainerCode::Image {\n image: \"myapp:latest\".to_string(),\n })\n .cpu(ResourceSpec { min: \"0.5\".to_string(), desired: \"1\".to_string() })\n .memory(ResourceSpec { min: \"512Mi\".to_string(), desired: \"1Gi\".to_string() })\n .port(8080)\n .public_endpoint(PublicEndpoint {\n name: \"api\".to_string(),\n port: 8080,\n protocol: ExposeProtocol::Http,\n host_label: None,\n wildcard_subdomains: false,\n })\n .autoscaling(ContainerAutoscaling {\n min: 2,\n desired: 3,\n max: 10,\n target_cpu_percent: Some(70.0),\n target_memory_percent: None,\n target_http_in_flight_per_replica: Some(100),\n max_http_p95_latency_ms: None,\n })\n .permissions(\"container-execution\".to_string())\n .build();\n```");
|
|
9699
9694
|
object({
|
|
9700
9695
|
"command": string().describe("Command name (e.g., \"generate-report\", \"sync-data\")"),
|
|
@@ -10058,6 +10053,9 @@ object({
|
|
|
10058
10053
|
get "runtime"() {
|
|
10059
10054
|
return union([DaemonRuntimeSchema, _null()]).optional();
|
|
10060
10055
|
},
|
|
10056
|
+
get "security"() {
|
|
10057
|
+
return union([ContainerSecuritySchema, _null()]).optional();
|
|
10058
|
+
},
|
|
10061
10059
|
"stopGracePeriodSeconds": int().min(1).max(86400).describe("Grace period in seconds for stopping daemon instances during updates, drains, and deletes.\n\nWhen omitted, the runtime backend applies its default. Valid values are\n1 second through 24 hours.").nullish()
|
|
10062
10060
|
});
|
|
10063
10061
|
/**
|
|
@@ -11282,7 +11280,10 @@ object({
|
|
|
11282
11280
|
"serviceAccountEmail": string().describe("Service account email the manager impersonates."),
|
|
11283
11281
|
"serviceAccountUniqueId": string().describe("Stable unique id Google assigns to the service account.")
|
|
11284
11282
|
}).describe("Setup-owned GCP management account and customer-owned federation trust.");
|
|
11285
|
-
object({
|
|
11283
|
+
object({
|
|
11284
|
+
"previewServiceAccount": string().describe("Service account setup created to sign the edge credential for preview. Present only when\nthe sandbox declares preview ports; the controller carries it into the binding.").nullish(),
|
|
11285
|
+
"region": string().describe("Region the setup stack applied in; selects the regional Agent Platform endpoint.")
|
|
11286
|
+
}).describe("GCP Agent Platform sandbox ImportData.\n\nThe sandbox is the environment template, which is release-owned under either lifecycle: setup\ncreates no template, so this carries the region the stack applied in and, when preview is declared, the\nsigning identity setup created. The engine registers its own id, and the template controller\nreads it from that dependency.");
|
|
11286
11287
|
/**
|
|
11287
11288
|
* Generated by Kubb (https://kubb.dev/).
|
|
11288
11289
|
* Do not edit manually.
|
|
@@ -11498,6 +11499,7 @@ const KeyHeartbeatDataSchema = union([
|
|
|
11498
11499
|
]);
|
|
11499
11500
|
object({
|
|
11500
11501
|
"available": boolean().describe("Latest key availability observation. Absent on older imported states.\nA false observation suspends dependent reconciliation without replacing resources.").nullish(),
|
|
11502
|
+
"diskEncryptionSetId": string().describe("Azure only: the Disk Encryption Set setup created for volumes that use this key.\nAbsent when no volume references the key, and on states imported before it existed.").nullish(),
|
|
11501
11503
|
get "fingerprint"() {
|
|
11502
11504
|
return KeyFingerprintSchema.describe("Stable identity of a provider key family.\n\nProvider-native version rotation does not change this value. Replacing the\nprovider key does.");
|
|
11503
11505
|
},
|
|
@@ -12456,6 +12458,24 @@ object({
|
|
|
12456
12458
|
"memory": string().describe("Memory available for data (e.g. \"512Mi\", \"4Gi\"). None = the smallest\nproduction tier. The smallest tier that fits is used; a request larger\nthan the biggest single-shard tier on the platform is rejected.").nullish(),
|
|
12457
12459
|
"persistence": optional(boolean().describe("Keep data across a server restart or maintenance. Default false (a\ncache). On AWS, GCP and Azure this needs `high_availability`, because the\nclouds only persist data from a replicated deployment. Local always\npersists with an append-only file when this is on."))
|
|
12458
12460
|
}).describe("A managed, Redis-compatible in-memory store on a private network. The target\nplatform decides the backend (AWS ElastiCache for Valkey, GCP Memorystore for\nValkey, Azure Managed Redis, or the official Valkey image in Docker on Local). It is\nnever publicly reachable, and it is a single endpoint (not cluster mode), so\nplain clients and multi-key scripts work.");
|
|
12461
|
+
/**
|
|
12462
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
12463
|
+
* Do not edit manually.
|
|
12464
|
+
*/
|
|
12465
|
+
/**
|
|
12466
|
+
* @description Whose rules the registry\'s replication configuration holds. The configuration is one\nper account and region, and writing it replaces every rule. The setup that writes ours\nreads the rules when it writes and keeps every rule that is not ours unchanged, so this\nreport is informational: it tells the operator which other rules the account has.
|
|
12467
|
+
*/
|
|
12468
|
+
const RegistryReplicationOwnerSchema = _enum([
|
|
12469
|
+
"none",
|
|
12470
|
+
"ours",
|
|
12471
|
+
"foreign"
|
|
12472
|
+
]).describe("Whose rules the registry's replication configuration holds. The configuration is one\nper account and region, and writing it replaces every rule. The setup that writes ours\nreads the rules when it writes and keeps every rule that is not ours unchanged, so this\nreport is informational: it tells the operator which other rules the account has.");
|
|
12473
|
+
object({
|
|
12474
|
+
"foreignRules": optional(array(string()).describe("One short line per rule that is not ours: destination regions and repository filters.")),
|
|
12475
|
+
get "owner"() {
|
|
12476
|
+
return RegistryReplicationOwnerSchema.describe("Whose rules the registry's replication configuration holds. The configuration is one\nper account and region, and writing it replaces every rule. The setup that writes ours\nreads the rules when it writes and keeps every rule that is not ours unchanged, so this\nreport is informational: it tells the operator which other rules the account has.");
|
|
12477
|
+
}
|
|
12478
|
+
}).describe("The replication rules a registry reported, without anything beyond rule shapes.");
|
|
12459
12479
|
object({ "leaseId": string().describe("Lease identifier to release") }).describe("Request to release a lease");
|
|
12460
12480
|
/**
|
|
12461
12481
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -12753,7 +12773,7 @@ object({
|
|
|
12753
12773
|
"reconnect": boolean().describe("A later call can reach a sandbox created by an earlier one"),
|
|
12754
12774
|
"sandboxLifetime": boolean().describe("The platform terminates a sandbox at a declared wall-clock deadline"),
|
|
12755
12775
|
"snapshot": boolean().describe("A sandbox's full state can be captured and used to create another"),
|
|
12756
|
-
"supervisorIsolation": boolean().describe("The process supervising a command is a different identity from the command.\n\nFalse where a command runs as the agent's own user: it can then read the supervisor's\nenvironment and signal it. Separate from `supervisorPidNamespace`, which is about\nvisibility rather than identity — a backend can have one without the other."),
|
|
12776
|
+
"supervisorIsolation": boolean().describe("The process supervising a command is a different identity from the command.\n\nFalse where a command runs as the agent's own user: it can then read the supervisor's\nenvironment and signal it. On Kubernetes this is the backend's offer: a declaration whose\nimage USER is root gets the split; a non-root image still runs as one user. Separate from `supervisorPidNamespace`, which is about\nvisibility rather than identity — a backend can have one without the other."),
|
|
12757
12777
|
"supervisorPidNamespace": boolean().describe("A command runs in its own PID namespace and cannot see or signal the agent's processes.\n\nOnly where an agent runs as root. Creating the namespace needs `CAP_SYS_ADMIN`, and the\nKubernetes sandbox pod drops every capability — which is also what denies `ptrace` by\nconstruction, so granting it there would remove a lock to add one.")
|
|
12758
12778
|
}).describe("What a platform's sandbox backend can actually do.\n\nPublished so portable code can branch before calling rather than discovering a gap through\nan error. Every field here corresponds to a capability that at least one platform lacks;\ncreate, exec and terminate are the guaranteed floor and are therefore not listed.");
|
|
12759
12779
|
_enum([
|
|
@@ -12886,6 +12906,17 @@ const SetupManagementSchema = _enum(["manual", "automatic"]).describe("Whether s
|
|
|
12886
12906
|
* Do not edit manually.
|
|
12887
12907
|
*/
|
|
12888
12908
|
/**
|
|
12909
|
+
* @description What setup pins for a protected install.\n\nTake the values from the vendor\'s install guide or signed release, not from the\ncontrol plane.
|
|
12910
|
+
*/
|
|
12911
|
+
const StackSigningSchema = object({
|
|
12912
|
+
"channel": string().describe("Release channel the install follows, such as `production`."),
|
|
12913
|
+
"fingerprint": string().describe("`SHA256:<64 hex>` fingerprint of the vendor's signer list version 1.")
|
|
12914
|
+
}).describe("What setup pins for a protected install.\n\nTake the values from the vendor's install guide or signed release, not from the\ncontrol plane.");
|
|
12915
|
+
/**
|
|
12916
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
12917
|
+
* Do not edit manually.
|
|
12918
|
+
*/
|
|
12919
|
+
/**
|
|
12889
12920
|
* @description How telemetry (logs, metrics, traces) is handled.
|
|
12890
12921
|
*/
|
|
12891
12922
|
const TelemetryModeSchema = _enum([
|
|
@@ -12939,6 +12970,9 @@ const StackSettingsSchema = object({
|
|
|
12939
12970
|
get "setupManagement"() {
|
|
12940
12971
|
return SetupManagementSchema.describe("Whether setup remains a separate administrator operation.").optional();
|
|
12941
12972
|
},
|
|
12973
|
+
get "signing"() {
|
|
12974
|
+
return union([StackSigningSchema, _null()]).optional();
|
|
12975
|
+
},
|
|
12942
12976
|
get "telemetry"() {
|
|
12943
12977
|
return TelemetryModeSchema.describe("How telemetry (logs, metrics, traces) is handled.").optional();
|
|
12944
12978
|
},
|
|
@@ -12947,6 +12981,7 @@ const StackSettingsSchema = object({
|
|
|
12947
12981
|
}
|
|
12948
12982
|
}).describe("User-customizable deployment settings specified at deploy time.\n\nThese settings are provided by the customer via CloudFormation parameters,\nTerraform attributes, CLI flags, or Helm values. They customize how the\ndeployment runs and what capabilities are enabled.\n\n**Key distinction**: StackSettings is user-customizable, while ManagementConfig\nis platform-derived (from the Manager's ServiceAccount).");
|
|
12949
12983
|
object({
|
|
12984
|
+
"acceptsShortLivedDeploymentToken": optional(boolean().describe("Set by a client that can use a short-lived deployment token for this run\nonly and will not store it. Without it, the response carries no new\ntoken for an installation whose Operator already holds its own key.")),
|
|
12950
12985
|
get "basePlatform"() {
|
|
12951
12986
|
return union([PlatformSchema, _null()]).optional();
|
|
12952
12987
|
},
|
|
@@ -12980,6 +13015,7 @@ object({
|
|
|
12980
13015
|
object({
|
|
12981
13016
|
"deploymentId": string().describe("Deployment created."),
|
|
12982
13017
|
"deploymentToken": string().describe("Deployment bearer token for the imported deployment, when available.").nullish(),
|
|
13018
|
+
"deploymentTokenExpiresAt": datetime().describe("When `deployment_token` stops working. Set only for a short-lived token,\nwhich a client uses for this run and does not store.").nullish(),
|
|
12983
13019
|
get "stackSettings"() {
|
|
12984
13020
|
return StackSettingsSchema.describe("User-customizable deployment settings specified at deploy time.\n\nThese settings are provided by the customer via CloudFormation parameters,\nTerraform attributes, CLI flags, or Helm values. They customize how the\ndeployment runs and what capabilities are enabled.\n\n**Key distinction**: StackSettings is user-customizable, while ManagementConfig\nis platform-derived (from the Manager's ServiceAccount).");
|
|
12985
13021
|
},
|
|
@@ -13358,6 +13394,9 @@ object({
|
|
|
13358
13394
|
return union([ReadinessProbeSchema, _null()]).optional();
|
|
13359
13395
|
},
|
|
13360
13396
|
"runtimeIdentityExchange": optional(boolean().describe("Set by `alien build` when the Worker image was built on a runtime that\nexchanges its cloud identity for telemetry credentials. Absent means the\nimage may be older and still reads `ALIEN_RUNTIME_SECRETS`, so a deployer\nin identity mode keeps providing them. Build output replaces any value\nwritten in the stack definition.")),
|
|
13397
|
+
get "security"() {
|
|
13398
|
+
return union([ContainerSecuritySchema, _null()]).optional();
|
|
13399
|
+
},
|
|
13361
13400
|
"timeoutSeconds": optional(int().min(1).max(3600).default(180).describe("Maximum execution time for the worker in seconds.\nConstraints: 1‑3600 seconds (platform-specific limits may apply)\nDefault: 180")),
|
|
13362
13401
|
get "triggers"() {
|
|
13363
13402
|
return array(WorkerTriggerSchema.describe("Defines what triggers a worker execution.")).describe("List of triggers that define what events automatically invoke this worker.\nIf empty, the worker is only invokable directly via HTTP calls or platform-specific invocation APIs.\nWhen configured, the worker will be automatically invoked when any of the specified trigger conditions are met.");
|
|
@@ -3241,7 +3241,7 @@ var require_deadline = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3241
3241
|
exports.deadlineToString = deadlineToString;
|
|
3242
3242
|
exports.formatDateDifference = formatDateDifference;
|
|
3243
3243
|
function minDeadline(...deadlineList) {
|
|
3244
|
-
let minValue =
|
|
3244
|
+
let minValue = 1e400;
|
|
3245
3245
|
for (const deadline of deadlineList) {
|
|
3246
3246
|
const deadlineMsecs = deadline instanceof Date ? deadline.getTime() : deadline;
|
|
3247
3247
|
if (deadlineMsecs < minValue) minValue = deadlineMsecs;
|
|
@@ -3283,7 +3283,7 @@ var require_deadline = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3283
3283
|
function getRelativeTimeout(deadline) {
|
|
3284
3284
|
const timeout = (deadline instanceof Date ? deadline.getTime() : deadline) - (/* @__PURE__ */ new Date()).getTime();
|
|
3285
3285
|
if (timeout < 0) return 0;
|
|
3286
|
-
else if (timeout > MAX_TIMEOUT_TIME) return
|
|
3286
|
+
else if (timeout > MAX_TIMEOUT_TIME) return 1e400;
|
|
3287
3287
|
else return timeout;
|
|
3288
3288
|
}
|
|
3289
3289
|
function deadlineToString(deadline) {
|
|
@@ -3396,7 +3396,7 @@ var require_single_subchannel_channel = /* @__PURE__ */ __commonJSMin(((exports)
|
|
|
3396
3396
|
const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.options.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : "localhost";
|
|
3397
3397
|
this.serviceUrl = `https://${hostname}/${serviceName}`;
|
|
3398
3398
|
const timeout = (0, deadline_1.getRelativeTimeout)(options.deadline);
|
|
3399
|
-
if (timeout !==
|
|
3399
|
+
if (timeout !== 1e400) {
|
|
3400
3400
|
if (timeout <= 0) this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, "Deadline exceeded");
|
|
3401
3401
|
else setTimeout(() => {
|
|
3402
3402
|
this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, "Deadline exceeded");
|
|
@@ -4561,7 +4561,7 @@ var require_load_balancing_call = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4561
4561
|
this.doPick();
|
|
4562
4562
|
return;
|
|
4563
4563
|
}
|
|
4564
|
-
if (this.deadline !==
|
|
4564
|
+
if (this.deadline !== 1e400) finalMetadata.set("grpc-timeout", (0, deadline_1.getDeadlineTimeoutString)(this.deadline));
|
|
4565
4565
|
try {
|
|
4566
4566
|
this.child = pickResult.subchannel.getRealSubchannel().createCall(finalMetadata, this.host, this.methodName, {
|
|
4567
4567
|
onReceiveMetadata: (metadata) => {
|
|
@@ -4744,7 +4744,7 @@ var require_resolving_call = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4744
4744
|
this.deadlineStartTime = /* @__PURE__ */ new Date();
|
|
4745
4745
|
if (this.traceEnabled) this.trace("Deadline: " + (0, deadline_1.deadlineToString)(this.deadline));
|
|
4746
4746
|
const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline);
|
|
4747
|
-
if (timeout !==
|
|
4747
|
+
if (timeout !== 1e400) {
|
|
4748
4748
|
if (this.traceEnabled) this.trace("Deadline will be reached in " + timeout + "ms");
|
|
4749
4749
|
const handleDeadline = () => {
|
|
4750
4750
|
if (!this.deadlineStartTime) {
|
|
@@ -5934,10 +5934,10 @@ var require_internal_channel = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5934
5934
|
watchConnectivityState(currentState, deadline, callback) {
|
|
5935
5935
|
if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) throw new Error("Channel has been shut down");
|
|
5936
5936
|
let timer = null;
|
|
5937
|
-
if (deadline !==
|
|
5937
|
+
if (deadline !== 1e400) {
|
|
5938
5938
|
const deadlineDate = deadline instanceof Date ? deadline : new Date(deadline);
|
|
5939
5939
|
const now = /* @__PURE__ */ new Date();
|
|
5940
|
-
if (deadline === -
|
|
5940
|
+
if (deadline === -1e400 || deadlineDate <= now) {
|
|
5941
5941
|
process.nextTick(callback, /* @__PURE__ */ new Error("Deadline passed without connectivity state change"));
|
|
5942
5942
|
return;
|
|
5943
5943
|
}
|
|
@@ -6237,7 +6237,7 @@ var require_client_interceptors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6237
6237
|
exports.InterceptingCall = InterceptingCall;
|
|
6238
6238
|
function getCall(channel, path, options) {
|
|
6239
6239
|
var _a, _b;
|
|
6240
|
-
const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a :
|
|
6240
|
+
const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : 1e400;
|
|
6241
6241
|
const host = options.host;
|
|
6242
6242
|
const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null;
|
|
6243
6243
|
const propagateFlags = options.propagate_flags;
|
|
@@ -7251,7 +7251,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
7251
7251
|
if (typeof value == "string") return value;
|
|
7252
7252
|
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
7253
7253
|
var result = value + "";
|
|
7254
|
-
return result == "0" && 1 / value == -
|
|
7254
|
+
return result == "0" && 1 / value == -1e400 ? "-0" : result;
|
|
7255
7255
|
}
|
|
7256
7256
|
/**
|
|
7257
7257
|
* Casts `array` to a slice if it's needed.
|
|
@@ -7839,7 +7839,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7839
7839
|
exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
7840
7840
|
function readFloat_ieee754(readUint, buf, pos) {
|
|
7841
7841
|
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
7842
|
-
return exponent === 255 ? mantissa ? NaN : sign *
|
|
7842
|
+
return exponent === 255 ? mantissa ? NaN : sign * 1e400 : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
7843
7843
|
}
|
|
7844
7844
|
exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
7845
7845
|
exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
@@ -7932,7 +7932,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7932
7932
|
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
7933
7933
|
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
7934
7934
|
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
7935
|
-
return exponent === 2047 ? mantissa ? NaN : sign *
|
|
7935
|
+
return exponent === 2047 ? mantissa ? NaN : sign * 1e400 : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
7936
7936
|
}
|
|
7937
7937
|
exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
7938
7938
|
exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
@@ -15539,7 +15539,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15539
15539
|
switch (token) {
|
|
15540
15540
|
case "inf":
|
|
15541
15541
|
case "INF":
|
|
15542
|
-
case "Inf": return sign *
|
|
15542
|
+
case "Inf": return sign * 1e400;
|
|
15543
15543
|
case "nan":
|
|
15544
15544
|
case "NAN":
|
|
15545
15545
|
case "Nan":
|
|
@@ -18977,6 +18977,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18977
18977
|
}));
|
|
18978
18978
|
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js
|
|
18979
18979
|
var require_channelz = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18980
|
+
var __dirname = import.meta.dirname;
|
|
18980
18981
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18981
18982
|
exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0;
|
|
18982
18983
|
exports.unregisterChannelzRef = unregisterChannelzRef;
|
|
@@ -21459,6 +21460,7 @@ var require_duration = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21459
21460
|
}));
|
|
21460
21461
|
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js
|
|
21461
21462
|
var require_orca = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
21463
|
+
var __dirname = import.meta.dirname;
|
|
21462
21464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21463
21465
|
exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0;
|
|
21464
21466
|
exports.createOrcaClient = createOrcaClient;
|
|
@@ -21668,7 +21670,7 @@ var require_orca = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21668
21670
|
this.dataWatchers = /* @__PURE__ */ new Set();
|
|
21669
21671
|
this.orcaSupported = true;
|
|
21670
21672
|
this.metricsCall = null;
|
|
21671
|
-
this.currentInterval =
|
|
21673
|
+
this.currentInterval = 1e400;
|
|
21672
21674
|
this.backoffTimer = new backoff_timeout_1.BackoffTimeout(() => this.updateMetricsSubscription());
|
|
21673
21675
|
this.subchannelStateListener = () => this.updateMetricsSubscription();
|
|
21674
21676
|
const channel = subchannel.getChannel();
|
|
@@ -22034,7 +22036,7 @@ var require_server_interceptors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22034
22036
|
this.handler = handler;
|
|
22035
22037
|
this.listener = null;
|
|
22036
22038
|
this.deadlineTimer = null;
|
|
22037
|
-
this.deadline =
|
|
22039
|
+
this.deadline = 1e400;
|
|
22038
22040
|
this.maxSendMessageSize = constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH;
|
|
22039
22041
|
this.maxReceiveMessageSize = constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH;
|
|
22040
22042
|
this.cancelled = false;
|
|
@@ -24224,7 +24226,7 @@ var require_certificate_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24224
24226
|
}
|
|
24225
24227
|
maybeStartWatchingFiles() {
|
|
24226
24228
|
if (!this.refreshTimer) {
|
|
24227
|
-
const timeSinceLastUpdate = this.lastUpdateTime ? (/* @__PURE__ */ new Date()).getTime() - this.lastUpdateTime.getTime() :
|
|
24229
|
+
const timeSinceLastUpdate = this.lastUpdateTime ? (/* @__PURE__ */ new Date()).getTime() - this.lastUpdateTime.getTime() : 1e400;
|
|
24228
24230
|
if (timeSinceLastUpdate > this.config.refreshIntervalMs) this.updateCertificates();
|
|
24229
24231
|
if (timeSinceLastUpdate > this.config.refreshIntervalMs * 2) {
|
|
24230
24232
|
this.latestCaUpdate = void 0;
|
|
@@ -26292,7 +26294,7 @@ var require_retry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26292
26294
|
* made without delay.
|
|
26293
26295
|
*/
|
|
26294
26296
|
async function retry(signal, fn, options = {}) {
|
|
26295
|
-
const { baseMs = 1e3, maxDelayMs = 3e4, onError, maxAttempts =
|
|
26297
|
+
const { baseMs = 1e3, maxDelayMs = 3e4, onError, maxAttempts = 1e400 } = options;
|
|
26296
26298
|
let attempt = 0;
|
|
26297
26299
|
const reset = () => {
|
|
26298
26300
|
attempt = -1;
|
|
@@ -26540,7 +26542,7 @@ var require_proactiveRetry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26540
26542
|
* which case all the other calls will be aborted.
|
|
26541
26543
|
*/
|
|
26542
26544
|
function proactiveRetry(signal, fn, options = {}) {
|
|
26543
|
-
const { baseMs = 1e3, onError, maxAttempts =
|
|
26545
|
+
const { baseMs = 1e3, onError, maxAttempts = 1e400 } = options;
|
|
26544
26546
|
return (0, execute_1.execute)(signal, (resolve, reject) => {
|
|
26545
26547
|
const innerAbortController = new AbortController();
|
|
26546
26548
|
let attemptsExhausted = false;
|
|
@@ -27612,6 +27614,15 @@ var require_Client = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27612
27614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27613
27615
|
}));
|
|
27614
27616
|
// src/worker-runtime/errors.ts
|
|
27617
|
+
/**
|
|
27618
|
+
* Errors internal to the Worker runtime.
|
|
27619
|
+
*
|
|
27620
|
+
* These are the gRPC/transport and environment errors the Worker runtime raises
|
|
27621
|
+
* while connecting to the runtime and dispatching tasks. They are confined to
|
|
27622
|
+
* the `./worker-runtime` subpath — the facade root does not re-export them (the
|
|
27623
|
+
* app-facing error surface is `BindingNotConfiguredError`/`AlienError` from
|
|
27624
|
+
* `@alienplatform/bindings` and `@alienplatform/core`).
|
|
27625
|
+
*/
|
|
27615
27626
|
var import_lib = (/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
27616
27627
|
var __createBinding = this$1 && this$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
27617
27628
|
if (k2 === void 0) k2 = k;
|
|
@@ -27666,15 +27677,6 @@ var import_lib = (/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
|
27666
27677
|
__exportStar(require_Client(), exports);
|
|
27667
27678
|
})))();
|
|
27668
27679
|
/**
|
|
27669
|
-
* Errors internal to the Worker runtime.
|
|
27670
|
-
*
|
|
27671
|
-
* These are the gRPC/transport and environment errors the Worker runtime raises
|
|
27672
|
-
* while connecting to the runtime and dispatching tasks. They are confined to
|
|
27673
|
-
* the `./worker-runtime` subpath — the facade root does not re-export them (the
|
|
27674
|
-
* app-facing error surface is `BindingNotConfiguredError`/`AlienError` from
|
|
27675
|
-
* `@alienplatform/bindings` and `@alienplatform/core`).
|
|
27676
|
-
*/
|
|
27677
|
-
/**
|
|
27678
27680
|
* Error thrown when the gRPC connection to the runtime fails.
|
|
27679
27681
|
*/
|
|
27680
27682
|
const GrpcConnectionError = defineError({
|
|
@@ -28448,6 +28450,7 @@ function getTextEncoding() {
|
|
|
28448
28450
|
},
|
|
28449
28451
|
checkUtf8(text) {
|
|
28450
28452
|
try {
|
|
28453
|
+
encodeURIComponent(text);
|
|
28451
28454
|
return true;
|
|
28452
28455
|
} catch (_) {
|
|
28453
28456
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"nice-grpc": "^2.1.11",
|
|
58
58
|
"nice-grpc-common": "^2.0.2",
|
|
59
59
|
"zod": "^4.5.2",
|
|
60
|
-
"@alienplatform/ai-gateway": "^3.3.
|
|
61
|
-
"@alienplatform/bindings": "^3.3.
|
|
62
|
-
"@alienplatform/core": "^3.3.
|
|
60
|
+
"@alienplatform/ai-gateway": "^3.3.66",
|
|
61
|
+
"@alienplatform/bindings": "^3.3.66",
|
|
62
|
+
"@alienplatform/core": "^3.3.66"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsdown && tsc --emitDeclarationOnly",
|