@alienplatform/core 3.3.17 → 3.3.19
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.d.ts +409 -315
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4927,6 +4927,22 @@ const EventChangeSchema = z$2.union([
|
|
|
4927
4927
|
})
|
|
4928
4928
|
]).describe("Represents a change to an event");
|
|
4929
4929
|
//#endregion
|
|
4930
|
+
//#region src/generated/zod/gcp-agent-platform-sandbox-heartbeat-data-schema.ts
|
|
4931
|
+
/**
|
|
4932
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4933
|
+
* Do not edit manually.
|
|
4934
|
+
*/
|
|
4935
|
+
/**
|
|
4936
|
+
* @description GCP: the Agent Platform template sessions are cut from, and the engine it hangs under.\n\nNo session count: that needs `aiplatform.sandboxEnvironments.list`, which only the management\npermission set holds. No template state either — emission is gated on reading it `ACTIVE`,\nwhich is what `status` already says.
|
|
4937
|
+
*/
|
|
4938
|
+
const GcpAgentPlatformSandboxHeartbeatDataSchema = z$2.object({
|
|
4939
|
+
"engine": z$2.string().describe("Reasoning engine the template hangs under, without which the template id names nothing."),
|
|
4940
|
+
get "status"() {
|
|
4941
|
+
return SandboxHeartbeatStatusSchema;
|
|
4942
|
+
},
|
|
4943
|
+
"templateId": z$2.string().describe("The template sessions are currently cut from.")
|
|
4944
|
+
}).describe("GCP: the Agent Platform template sessions are cut from, and the engine it hangs under.\n\nNo session count: that needs `aiplatform.sandboxEnvironments.list`, which only the management\npermission set holds. No template state either — emission is gated on reading it `ACTIVE`,\nwhich is what `status` already says.");
|
|
4945
|
+
//#endregion
|
|
4930
4946
|
//#region src/generated/zod/gcp-artifact-registry-import-data-schema.ts
|
|
4931
4947
|
/**
|
|
4932
4948
|
* Generated by Kubb (https://kubb.dev/).
|
|
@@ -5260,10 +5276,6 @@ const GcpRemoteStackManagementImportDataSchema = z$2.object({
|
|
|
5260
5276
|
"serviceAccountEmail": z$2.string().describe("Service account email the manager impersonates."),
|
|
5261
5277
|
"serviceAccountUniqueId": z$2.string().describe("Stable unique id Google assigns to the service account.")
|
|
5262
5278
|
}).describe("GCP RemoteStackManagement ImportData — cross-project service account\nthe manager impersonates.");
|
|
5263
|
-
z$2.object({
|
|
5264
|
-
"allowEgress": z$2.boolean().describe("Whether sessions may reach the network. Taken from the declaration rather than left to the\napplication: the launcher decides egress per sandbox at create time."),
|
|
5265
|
-
"launcherPath": z$2.string().describe("Path to the sandbox CLI Cloud Run injects when the container sets `sandboxLauncher`.")
|
|
5266
|
-
}).describe("GCP Sandbox ImportData.\n\nA Cloud Run sandbox has no durable parent: it is a nested gVisor sandbox started by a launcher\nbinary Cloud Run injects into the container, so there is no group, image or endpoint for setup\nto hand over. What the runtime needs is the launcher's path, and it is carried here rather than\nhardcoded in the provider so a change to where Cloud Run mounts it is a data change.");
|
|
5267
5279
|
//#endregion
|
|
5268
5280
|
//#region src/generated/zod/gcp-secret-manager-vault-heartbeat-data-schema.ts
|
|
5269
5281
|
/**
|
|
@@ -6621,6 +6633,7 @@ const ResourceEntrySchema = z$2.object({
|
|
|
6621
6633
|
const SandboxHeartbeatDataSchema = z$2.union([
|
|
6622
6634
|
z$2.lazy(() => AwsMicrovmSandboxHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["awsMicrovm"]) })).describe("AWS: the image a sandbox runs from, and the lifecycle state AWS reports for it."),
|
|
6623
6635
|
z$2.lazy(() => AzureSandboxGroupHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["azureSandboxGroup"]) })).describe("Azure: the sandbox group's ARM state. The data plane has no list operation, so a session count\nis not available here."),
|
|
6636
|
+
z$2.lazy(() => GcpAgentPlatformSandboxHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["gcpAgentPlatform"]) })).describe("GCP: the Agent Platform template sessions are cut from, and the engine it hangs under.\n\nNo session count: that needs `aiplatform.sandboxEnvironments.list`, which only the management\npermission set holds. No template state either — emission is gated on reading it `ACTIVE`,\nwhich is what `status` already says."),
|
|
6624
6637
|
z$2.lazy(() => KubernetesSandboxHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["kubernetesPods"]) })).describe("Kubernetes: pods carrying the sandbox label, in the deployment's namespace."),
|
|
6625
6638
|
z$2.lazy(() => LocalSandboxHeartbeatDataSchema).and(z$2.object({ "backend": z$2.enum(["local"]) })).describe("Local: containers Docker still holds for this sandbox.")
|
|
6626
6639
|
]).describe("Content-free telemetry about a sandbox's sessions.\n\nNever anything from inside a session. A controller reaches only the cloud's management APIs,\nand the whole point of the resource is that the control plane cannot see what runs in it.");
|
|
@@ -6857,12 +6870,13 @@ z$2.object({
|
|
|
6857
6870
|
"domainEgressRules": z$2.boolean().describe("Egress can be restricted to a hostname allowlist"),
|
|
6858
6871
|
"egressDeny": z$2.boolean().describe("Whether a declared `deny` is actually enforced, rather than accepted and dropped"),
|
|
6859
6872
|
"enforcedLimits": z$2.boolean().describe("The platform enforces the declared cpu, memory and disk ceilings"),
|
|
6860
|
-
"files": z$2.boolean().describe("Files can be moved in and out of a session
|
|
6873
|
+
"files": z$2.boolean().describe("Files can be moved in and out of a session"),
|
|
6861
6874
|
"preview": z$2.boolean().describe("An authenticated, port-scoped capability to reach a service inside the sandbox"),
|
|
6862
6875
|
"processLimit": z$2.boolean().describe("The platform can cap how many processes a session runs"),
|
|
6863
6876
|
"reconnect": z$2.boolean().describe("A later call can reach a session created by an earlier one"),
|
|
6864
6877
|
"sessionLifetime": z$2.boolean().describe("The platform terminates a session at a declared wall-clock deadline"),
|
|
6865
6878
|
"snapshot": z$2.boolean().describe("A session's full state can be captured and used to create another"),
|
|
6879
|
+
"supervisorIsolation": z$2.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."),
|
|
6866
6880
|
"supervisorPidNamespace": z$2.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."),
|
|
6867
6881
|
"suspendResume": z$2.boolean().describe("Session state can be suspended and resumed")
|
|
6868
6882
|
}).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.");
|
|
@@ -6877,7 +6891,8 @@ z$2.enum([
|
|
|
6877
6891
|
"enforcedLimits",
|
|
6878
6892
|
"processLimit",
|
|
6879
6893
|
"sessionLifetime",
|
|
6880
|
-
"supervisorPidNamespace"
|
|
6894
|
+
"supervisorPidNamespace",
|
|
6895
|
+
"supervisorIsolation"
|
|
6881
6896
|
]).describe("Names a single sandbox capability, so an unsupported call can report which one it needed.");
|
|
6882
6897
|
//#endregion
|
|
6883
6898
|
//#region src/generated/zod/sandbox-code-schema.ts
|
|
@@ -6889,7 +6904,7 @@ z$2.enum([
|
|
|
6889
6904
|
* @description Specifies where the sandbox\'s root filesystem comes from.
|
|
6890
6905
|
*/
|
|
6891
6906
|
const SandboxCodeSchema = z$2.union([z$2.object({
|
|
6892
|
-
"image": z$2.string().describe("Image reference (e.g. `ubuntu:24.04`, `ghcr.io/myorg/sandbox:latest`)"),
|
|
6907
|
+
"image": z$2.string().describe("Image reference (e.g. `ubuntu:24.04`, `ghcr.io/myorg/sandbox:latest`).\n\nTwo backends narrow it in opposite directions: AWS wants an `s3://` bundle, Azure a\nbare catalog name such as `ubuntu`. Each refuses the other's shape while planning."),
|
|
6893
6908
|
"type": z$2.enum(["image"])
|
|
6894
6909
|
}), z$2.object({
|
|
6895
6910
|
"src": z$2.string().describe("The source directory to build from"),
|
|
@@ -6968,7 +6983,7 @@ const SandboxSchema = z$2.object({
|
|
|
6968
6983
|
get "limits"() {
|
|
6969
6984
|
return z$2.union([SandboxLimitsSchema, z$2.null()]).optional();
|
|
6970
6985
|
},
|
|
6971
|
-
"previewPorts": z$2.optional(z$2.array(z$2.int().min(0)).describe("Ports eligible for a preview capability.
|
|
6986
|
+
"previewPorts": z$2.optional(z$2.array(z$2.int().min(0)).describe("Ports eligible for a preview capability. An application reaches its sandbox through the\nprovider, so it cannot widen its own ingress at runtime; a holder of a remote binding's\ncredentials is bounded by no port condition, which is why a remote sandbox declares none.")),
|
|
6972
6987
|
get "session"() {
|
|
6973
6988
|
return SandboxSessionPolicySchema.describe("How long a session may live and when it is suspended.");
|
|
6974
6989
|
}
|
|
@@ -7531,7 +7546,6 @@ const WorkerSchema = z$2.object({
|
|
|
7531
7546
|
get "readinessProbe"() {
|
|
7532
7547
|
return z$2.union([ReadinessProbeSchema, z$2.null()]).optional();
|
|
7533
7548
|
},
|
|
7534
|
-
"sandboxLauncher": z$2.optional(z$2.boolean().describe("Whether this worker hosts sandbox sessions.\n\nSet by preflight, not by an application: on GCP a sandbox is a subprocess of the Cloud Run\ninstance running the app, and the instance can only launch one if its container declares\nit. Declaring it by hand would be a permission the workload does not need.")),
|
|
7535
7549
|
"timeoutSeconds": z$2.optional(z$2.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")),
|
|
7536
7550
|
get "triggers"() {
|
|
7537
7551
|
return z$2.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.");
|
|
@@ -9572,8 +9586,11 @@ var Queue = class extends ResourceBuilder {
|
|
|
9572
9586
|
*
|
|
9573
9587
|
* Capabilities are not uniform. Call `capabilities()` on the binding and branch, or handle the
|
|
9574
9588
|
* typed error — an unsupported capability never silently succeeds. Notably GCP cannot
|
|
9575
|
-
* reconnect to a session (its session id is scoped to one Cloud Run instance),
|
|
9576
|
-
*
|
|
9589
|
+
* reconnect to a session (its session id is scoped to one Cloud Run instance), only Azure
|
|
9590
|
+
* restricts egress to a hostname allowlist, no platform can snapshot a session, and only AWS
|
|
9591
|
+
* and Local run a command under a different identity than the process supervising it. Elsewhere the
|
|
9592
|
+
* command shares the supervisor's user, so it can read the supervisor's environment and
|
|
9593
|
+
* signal it, and the container is the isolation boundary.
|
|
9577
9594
|
*
|
|
9578
9595
|
* Limits are enforced ceilings, not scheduling hints, and are validated when the stack is
|
|
9579
9596
|
* planned. A platform that cannot enforce them rejects the sandbox rather than ignoring them.
|