@alienplatform/sdk 3.3.19 → 3.3.21
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/dist.js +12 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/worker-runtime/index.js +2 -2
- package/package.json +4 -4
package/dist/dist.js
CHANGED
|
@@ -6983,12 +6983,14 @@ const AwsS3StorageHeartbeatDataSchema = object({
|
|
|
6983
6983
|
});
|
|
6984
6984
|
object({
|
|
6985
6985
|
"allowEgress": optional(boolean().describe("Whether the declaration asked for open egress.\n\nThe controller builds the binding from this, and an empty connector list cannot be read\nwithout it: a stripped `deny` import would otherwise look exactly like an open sandbox.")),
|
|
6986
|
+
"buildRoleArn": string().describe("Role the controller passes to `CreateMicrovmImage`. Setup owns it because\n`sandbox/provision` grants the controller `iam:PassRole` and no `iam:CreateRole`.").nullish(),
|
|
6987
|
+
"bundleUri": string().describe("Bundle the controller builds the image from. Only a runtime-provisioned sandbox carries it.").nullish(),
|
|
6986
6988
|
"egressConnectorArns": optional(array(string()).describe("Egress network connectors. Deleting one while MicroVMs still reference it breaks their\nnetworking, so teardown needs them named rather than rediscovered.")),
|
|
6987
|
-
"imageArn": string().describe("MicroVM image ARN."),
|
|
6988
|
-
"imageIdentifier": string().describe("MicroVM image identifier."),
|
|
6989
|
-
"imageVersion": string().describe("Image version the sessions are scoped to. Re-imported on every image roll."),
|
|
6989
|
+
"imageArn": string().describe("MicroVM image ARN. Absent until a runtime-provisioned image has been built.").nullish(),
|
|
6990
|
+
"imageIdentifier": string().describe("MicroVM image identifier. Absent until a runtime-provisioned image has been built.").nullish(),
|
|
6991
|
+
"imageVersion": string().describe("Image version the sessions are scoped to. Re-imported on every image roll, and absent\nuntil a runtime-provisioned image has been built.").nullish(),
|
|
6990
6992
|
"previewPorts": optional(array(int().min(0)).describe("Ports a preview capability may be minted for; empty means preview is not offered."))
|
|
6991
|
-
}).describe("AWS Sandbox ImportData.\n\nCarries the
|
|
6993
|
+
}).describe("AWS Sandbox ImportData.\n\nCarries the sandbox's parent from the setup emitter to the runtime controller. The image\n**version** is not decoration: `RunMicrovm` has no `tags`, so image plus version is the only\nsession identity there is, and a controller holding a stale version would enumerate the wrong\nset and orphan every session started on the previous one.\n\nTwo shapes arrive here, and which fields are present says which. A Frozen sandbox is built by\nstack creation and names its image; a Live one is built by the controller after the deployment\nregisters, so it names the build role and bundle instead, leaving the image fields empty.");
|
|
6992
6994
|
object({
|
|
6993
6995
|
"roleArn": string().describe("IAM role ARN."),
|
|
6994
6996
|
"roleName": string().describe("IAM role name."),
|
|
@@ -7611,9 +7613,9 @@ object({
|
|
|
7611
7613
|
}).describe("Azure ServiceAccount ImportData — User-Assigned Managed Identity\n(UAMI) plus optional Federated Identity Credentials trusting Alien's\nOIDC issuer.");
|
|
7612
7614
|
object({
|
|
7613
7615
|
"providerNamespace": string().describe("Resource provider namespace (e.g. `Microsoft.App`)."),
|
|
7614
|
-
"registered": boolean().describe("
|
|
7616
|
+
"registered": boolean().describe("Whether setup established the registration. False from a Terraform package: it registers\nnothing, and the runtime reads the real state on its first refresh."),
|
|
7615
7617
|
"subscriptionId": string().describe("Subscription ID the provider was registered on.")
|
|
7616
|
-
}).describe("Azure ServiceActivation ImportData —
|
|
7618
|
+
}).describe("Azure ServiceActivation ImportData — names an Azure resource provider the\nsubscription must have registered.\n\nAdded by the `AzureServiceActivationMutation` preflight when the\nstack contains resources that depend on a specific Azure RP\n(Microsoft.App, Microsoft.Storage, Microsoft.KeyVault, …).");
|
|
7617
7619
|
/**
|
|
7618
7620
|
* Generated by Kubb (https://kubb.dev/).
|
|
7619
7621
|
* Do not edit manually.
|
|
@@ -9379,6 +9381,7 @@ union([
|
|
|
9379
9381
|
"updatedAt": datetime().describe("Timestamp when the state changed")
|
|
9380
9382
|
})
|
|
9381
9383
|
]).describe("Represents a change to an event");
|
|
9384
|
+
object({ "engineId": string().describe("The engine's resource name, or the bare id it ends with.") }).describe("GCP Agent Platform reasoning-engine ImportData.\n\nEmitted only for a Frozen engine, which the setup stack creates. Vertex assigns the id, so it\nis read off the created resource rather than derived: the controller and the template beneath\nit address the engine by exactly this segment.");
|
|
9382
9385
|
/**
|
|
9383
9386
|
* Generated by Kubb (https://kubb.dev/).
|
|
9384
9387
|
* Do not edit manually.
|
|
@@ -9646,6 +9649,7 @@ object({
|
|
|
9646
9649
|
"serviceAccountEmail": string().describe("Service account email the manager impersonates."),
|
|
9647
9650
|
"serviceAccountUniqueId": string().describe("Stable unique id Google assigns to the service account.")
|
|
9648
9651
|
}).describe("GCP RemoteStackManagement ImportData — cross-project service account\nthe manager impersonates.");
|
|
9652
|
+
object({ "region": string().describe("Region the setup stack applied in; selects the regional Agent Platform endpoint.") }).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 only the region the stack applied in. The engine registers\nits own id, and the template controller reads it from that dependency.");
|
|
9649
9653
|
/**
|
|
9650
9654
|
* Generated by Kubb (https://kubb.dev/).
|
|
9651
9655
|
* Do not edit manually.
|
|
@@ -10942,6 +10946,7 @@ object({
|
|
|
10942
10946
|
"egressDeny": boolean().describe("Whether a declared `deny` is actually enforced, rather than accepted and dropped"),
|
|
10943
10947
|
"enforcedLimits": boolean().describe("The platform enforces the declared cpu, memory and disk ceilings"),
|
|
10944
10948
|
"files": boolean().describe("Files can be moved in and out of a session"),
|
|
10949
|
+
"jobs": boolean().describe("A command can be started, polled and cancelled across separate calls, so it outlives the\none that started it. False where nothing inside the session owns the process in between."),
|
|
10945
10950
|
"preview": boolean().describe("An authenticated, port-scoped capability to reach a service inside the sandbox"),
|
|
10946
10951
|
"processLimit": boolean().describe("The platform can cap how many processes a session runs"),
|
|
10947
10952
|
"reconnect": boolean().describe("A later call can reach a session created by an earlier one"),
|
|
@@ -10954,6 +10959,7 @@ object({
|
|
|
10954
10959
|
_enum([
|
|
10955
10960
|
"files",
|
|
10956
10961
|
"reconnect",
|
|
10962
|
+
"jobs",
|
|
10957
10963
|
"preview",
|
|
10958
10964
|
"suspendResume",
|
|
10959
10965
|
"snapshot",
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*/
|
|
29
29
|
export type { CronEvent, QueueMessage, QueueMessageEvent, ScheduledEvent, StandardSchema, StandardSchemaOutput, StorageEvent, StorageEventType, WorkerCommandContext, } from "./worker-runtime/registry.js";
|
|
30
30
|
export { command, onCronEvent, onQueueMessage, onStorageEvent, waitUntil, } from "./worker-runtime/registry.js";
|
|
31
|
-
export type { CommandFrame, Container, Kv, Postgres, PostgresConnection, PostgresSslMode, Queue, RunCommandOptions, Sandbox, SandboxSession, Storage, Vault, } from "@alienplatform/bindings";
|
|
31
|
+
export type { CommandFrame, Container, JobError, JobExit, JobPoll, Kv, Postgres, PostgresConnection, PostgresSslMode, Queue, RunCommandOptions, Sandbox, SandboxSession, Storage, Vault, } from "@alienplatform/bindings";
|
|
32
32
|
export { container, kv, postgres, queue, sandbox, storage, vault } from "@alienplatform/bindings";
|
|
33
33
|
export type { AiBinding, AiConnection, AiModel, AmbientAiBinding, ChatCompletionCreateParams, ExternalAiBinding, ResponseCreateParams, } from "@alienplatform/ai-gateway";
|
|
34
34
|
export { Ai, ai, getAiConnection, isExternalAiBinding, parseAiBinding, startAiGateway, } from "@alienplatform/ai-gateway";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAOH,YAAY,EACV,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,OAAO,EACP,WAAW,EACX,cAAc,EACd,cAAc,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R,kBAAkB,EAClB,eAAe,EACf,KAAK,EACL,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,OAAO,EACP,KAAK,GACN,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAMjG,YAAY,EACV,SAAS,EACT,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,EAAE,EACF,EAAE,EACF,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -16109,8 +16109,8 @@ var require_descriptor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16109
16109
|
* @param {string} [edition="proto2"] The syntax or edition to use
|
|
16110
16110
|
*/
|
|
16111
16111
|
Type.prototype.toDescriptor = function toDescriptor(edition) {
|
|
16112
|
-
var descriptor = exports.DescriptorProto.create({ name: this.name }), i;
|
|
16113
|
-
for (
|
|
16112
|
+
var descriptor = exports.DescriptorProto.create({ name: this.name }), i = 0;
|
|
16113
|
+
for (; i < this.fieldsArray.length; ++i) {
|
|
16114
16114
|
var fieldDescriptor;
|
|
16115
16115
|
descriptor.field.push(fieldDescriptor = this._fieldsArray[i].toDescriptor(edition));
|
|
16116
16116
|
if (this._fieldsArray[i] instanceof MapField) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.21",
|
|
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.21",
|
|
61
|
+
"@alienplatform/bindings": "^3.3.21",
|
|
62
|
+
"@alienplatform/core": "^3.3.21"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsdown && tsc --emitDeclarationOnly",
|