@alienplatform/core 3.3.16 → 3.3.18

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
@@ -5260,10 +5260,6 @@ const GcpRemoteStackManagementImportDataSchema = z$2.object({
5260
5260
  "serviceAccountEmail": z$2.string().describe("Service account email the manager impersonates."),
5261
5261
  "serviceAccountUniqueId": z$2.string().describe("Stable unique id Google assigns to the service account.")
5262
5262
  }).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
5263
  //#endregion
5268
5264
  //#region src/generated/zod/gcp-secret-manager-vault-heartbeat-data-schema.ts
5269
5265
  /**
@@ -6857,12 +6853,13 @@ z$2.object({
6857
6853
  "domainEgressRules": z$2.boolean().describe("Egress can be restricted to a hostname allowlist"),
6858
6854
  "egressDeny": z$2.boolean().describe("Whether a declared `deny` is actually enforced, rather than accepted and dropped"),
6859
6855
  "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\n\nEvery backend but Azure, whose data plane exposes exec and lifecycle and no transfer."),
6856
+ "files": z$2.boolean().describe("Files can be moved in and out of a session"),
6861
6857
  "preview": z$2.boolean().describe("An authenticated, port-scoped capability to reach a service inside the sandbox"),
6862
6858
  "processLimit": z$2.boolean().describe("The platform can cap how many processes a session runs"),
6863
6859
  "reconnect": z$2.boolean().describe("A later call can reach a session created by an earlier one"),
6864
6860
  "sessionLifetime": z$2.boolean().describe("The platform terminates a session at a declared wall-clock deadline"),
6865
6861
  "snapshot": z$2.boolean().describe("A session's full state can be captured and used to create another"),
6862
+ "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
6863
  "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
6864
  "suspendResume": z$2.boolean().describe("Session state can be suspended and resumed")
6868
6865
  }).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 +6874,8 @@ z$2.enum([
6877
6874
  "enforcedLimits",
6878
6875
  "processLimit",
6879
6876
  "sessionLifetime",
6880
- "supervisorPidNamespace"
6877
+ "supervisorPidNamespace",
6878
+ "supervisorIsolation"
6881
6879
  ]).describe("Names a single sandbox capability, so an unsupported call can report which one it needed.");
6882
6880
  //#endregion
6883
6881
  //#region src/generated/zod/sandbox-code-schema.ts
@@ -6889,7 +6887,7 @@ z$2.enum([
6889
6887
  * @description Specifies where the sandbox\'s root filesystem comes from.
6890
6888
  */
6891
6889
  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`)"),
6890
+ "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
6891
  "type": z$2.enum(["image"])
6894
6892
  }), z$2.object({
6895
6893
  "src": z$2.string().describe("The source directory to build from"),
@@ -7531,7 +7529,6 @@ const WorkerSchema = z$2.object({
7531
7529
  get "readinessProbe"() {
7532
7530
  return z$2.union([ReadinessProbeSchema, z$2.null()]).optional();
7533
7531
  },
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
7532
  "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
7533
  get "triggers"() {
7537
7534
  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 +9569,11 @@ var Queue = class extends ResourceBuilder {
9572
9569
  *
9573
9570
  * Capabilities are not uniform. Call `capabilities()` on the binding and branch, or handle the
9574
9571
  * 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), Azure has no
9576
- * file transfer, and no platform supports a hostname egress allowlist.
9572
+ * reconnect to a session (its session id is scoped to one Cloud Run instance), only Azure
9573
+ * restricts egress to a hostname allowlist, no platform can snapshot a session, and only AWS
9574
+ * and Local run a command under a different identity than the process supervising it. Elsewhere the
9575
+ * command shares the supervisor's user, so it can read the supervisor's environment and
9576
+ * signal it, and the container is the isolation boundary.
9577
9577
  *
9578
9578
  * Limits are enforced ceilings, not scheduling hints, and are validated when the stack is
9579
9579
  * planned. A platform that cannot enforce them rejects the sandbox rather than ignoring them.