@alienplatform/commands 2.1.5 → 3.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.
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Command sender — invoke commands on remote Alien deployments.
3
3
  *
4
- * Migrated from the former `@alienplatform/sdk/commands` subpath. Pure `fetch`; no gRPC, no
4
+ * Migrated from the former `@alienplatform/sdk/commands` subpath. Pure `fetch`; no
5
5
  * bindings. Handles:
6
6
  * - Base64 encoding/decoding of input and responses
7
7
  * - Large payload download via storage presigned transfers
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,uFAAuF;IACvF,UAAU,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAA;IACpB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,IAAI,CAAA;IACf,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;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,OAAO,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,SAAS,CAAC;IAsCrB;;;;;;;OAOG;IACH;;;;;;;;;OASG;IACH,OAAO,CAAC,eAAe;YAQT,YAAY;IA4C1B;;OAEG;IACH,OAAO,CAAC,aAAa;IAuBrB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;YACW,mBAAmB;IA4DjC;;OAEG;IACH,OAAO,CAAC,KAAK;CAGd;AAED;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADV,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,MAAM;IAGrC;;;OAGG;IACH,MAAM,CAAC,SAAS,GAAG,OAAO,EACxB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,SAAS,CAAC;CAMtB"}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pure `fetch` over the command wire protocol: the command **sender**
5
5
  * ({@link CommandsClient}, with {@link CommandsClient.target}) and the
6
6
  * non-Worker pull **receiver** (`createCommandReceiver`).
7
- * No native code, no gRPC, no bindings.
7
+ * No native code or bindings.
8
8
  *
9
9
  * @example
10
10
  * ```typescript
@@ -29,7 +29,7 @@
29
29
  export { CommandsClient, TargetedCommands } from "./client.js";
30
30
  export type { CommandsClientConfig, InvokeOptions } from "./client.js";
31
31
  export { createCommandReceiver } from "./receiver.js";
32
- export type { CommandContext, CommandHandler, CommandReceiver, CommandReceiverOptions, } from "./receiver.js";
32
+ export type { CommandContext, CommandHandler, CommandReceiver, CommandReceiverOptions, RawCommandHandler, StandardSchema, StandardSchemaOutput, } from "./receiver.js";
33
33
  export { CommandCreationFailedError, CommandExpiredError, CommandReceiverConfigInvalidError, CommandStatusFailedError, CommandTimeoutError, DeploymentCommandError, InvalidEnvelopeError, ManagerHttpError, MalformedResponseError, ResponseDecodingFailedError, StorageOperationFailedError, } from "./errors.js";
34
34
  export type { BodySpec, CommandResponse, CommandState, CommandStatusResponse, CommandTarget, CommandTargetType, CreateCommandRequest, CreateCommandResponse, Envelope, ErrorResponse, LeaseInfo, LeaseRequest, LeaseResponse, PresignedRequest, ReleaseRequest, ResponseHandling, StorageUpload, SubmitResponseRequest, UploadCompleteRequest, UploadCompleteResponse, } from "./protocol.js";
35
35
  export { AlienError, defineError } from "@alienplatform/core";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9D,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACrD,YAAY,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,sBAAsB,GACvB,MAAM,eAAe,CAAA;AAGtB,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,iCAAiC,EACjC,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,aAAa,CAAA;AAGpB,YAAY,EACV,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9D,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACrD,YAAY,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,GACrB,MAAM,eAAe,CAAA;AAGtB,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,iCAAiC,EACjC,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,aAAa,CAAA;AAGpB,YAAY,EACV,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
package/dist/index.js CHANGED
@@ -4008,7 +4008,7 @@ function parseWireResponse(schema, value, method, url) {
4008
4008
  /**
4009
4009
  * Command sender — invoke commands on remote Alien deployments.
4010
4010
  *
4011
- * Migrated from the former `@alienplatform/sdk/commands` subpath. Pure `fetch`; no gRPC, no
4011
+ * Migrated from the former `@alienplatform/sdk/commands` subpath. Pure `fetch`; no
4012
4012
  * bindings. Handles:
4013
4013
  * - Base64 encoding/decoding of input and responses
4014
4014
  * - Large payload download via storage presigned transfers
@@ -4021,14 +4021,15 @@ function parseWireResponse(schema, value, method, url) {
4021
4021
  * `options.targetResourceId` the caller also passes.
4022
4022
  */
4023
4023
  /**
4024
- * Serialize `data` (JSON-stringifying anything that isn't already a string) and
4024
+ * Serialize `data` as JSON and
4025
4025
  * base64-encode it. This is the one place the send-side serialize decision
4026
4026
  * lives. `@alienplatform/commands` is a Node-only package — the receiver decodes
4027
4027
  * with `Buffer` too — so this uses `Buffer` directly rather than branching on a
4028
4028
  * browser `btoa`.
4029
4029
  */
4030
4030
  function base64Encode(data) {
4031
- const json = typeof data === "string" ? data : JSON.stringify(data);
4031
+ const json = JSON.stringify(data);
4032
+ if (json === void 0) throw new TypeError("Command input must be JSON-serializable");
4032
4033
  return Buffer.from(json, "utf-8").toString("base64");
4033
4034
  }
4034
4035
  /**
@@ -4302,11 +4303,11 @@ var TargetedCommands = class {
4302
4303
  *
4303
4304
  * Behavior-identical twin of the Rust `alien_commands::Receiver`. It leases
4304
4305
  * commands addressed to its own target resource from the command server over
4305
- * outbound HTTPS (no inbound connections, no gRPC), dispatches them to
4306
+ * outbound HTTPS (no inbound connections), dispatches them to
4306
4307
  * in-process handlers, and submits responses through the envelope's
4307
4308
  * response-handling flow (inline or presigned storage upload).
4308
4309
  *
4309
- * Pure `fetch`; no bindings, no gRPC. The receiver implements these public
4310
+ * Pure `fetch`; no bindings. The receiver implements these public
4310
4311
  * command-delivery semantics:
4311
4312
  * - required identity plus token-or-token-file env, with fail-fast validation
4312
4313
  * - execution budget = `min(envelope.deadline, leaseExpiresAt − safety margin)`;
@@ -4326,8 +4327,7 @@ var TargetedCommands = class {
4326
4327
  * import { createCommandReceiver } from "@alienplatform/commands"
4327
4328
  *
4328
4329
  * const receiver = createCommandReceiver()
4329
- * receiver.handle("generate-report", async ctx => {
4330
- * const params = JSON.parse(new TextDecoder().decode(ctx.input))
4330
+ * receiver.command("generate-report", async params => {
4331
4331
  * return { report: params }
4332
4332
  * })
4333
4333
  * await receiver.run() // call receiver.stop() to drain and return
@@ -4527,7 +4527,28 @@ var PullCommandReceiver = class {
4527
4527
  this.drainTimeoutMs = config.drainTimeoutMs;
4528
4528
  this.tokenSource = new TokenSource(config.token, config.tokenFile);
4529
4529
  }
4530
- handle(name, handler) {
4530
+ command(name, schemaOrHandler, validatedHandler) {
4531
+ const schema = validatedHandler === void 0 ? void 0 : schemaOrHandler;
4532
+ const handler = validatedHandler ?? schemaOrHandler;
4533
+ return this.handleRaw(name, async (context) => {
4534
+ let input;
4535
+ try {
4536
+ input = JSON.parse(new TextDecoder().decode(context.input));
4537
+ } catch {
4538
+ throw new Error("Command input is not valid JSON");
4539
+ }
4540
+ if (schema !== void 0) {
4541
+ const result = await schema["~standard"].validate(input);
4542
+ if (result.issues !== void 0) {
4543
+ const details = result.issues.map((issue) => issue.message).join("; ");
4544
+ throw new Error(`Command input failed validation${details ? `: ${details}` : ""}`);
4545
+ }
4546
+ input = result.value;
4547
+ }
4548
+ return await handler(input, context);
4549
+ });
4550
+ }
4551
+ handleRaw(name, handler) {
4531
4552
  this.handlers.set(name, handler);
4532
4553
  return this;
4533
4554
  }
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * Behavior-identical twin of the Rust `alien_commands::Receiver`. It leases
5
5
  * commands addressed to its own target resource from the command server over
6
- * outbound HTTPS (no inbound connections, no gRPC), dispatches them to
6
+ * outbound HTTPS (no inbound connections), dispatches them to
7
7
  * in-process handlers, and submits responses through the envelope's
8
8
  * response-handling flow (inline or presigned storage upload).
9
9
  *
10
- * Pure `fetch`; no bindings, no gRPC. The receiver implements these public
10
+ * Pure `fetch`; no bindings. The receiver implements these public
11
11
  * command-delivery semantics:
12
12
  * - required identity plus token-or-token-file env, with fail-fast validation
13
13
  * - execution budget = `min(envelope.deadline, leaseExpiresAt − safety margin)`;
@@ -27,8 +27,7 @@
27
27
  * import { createCommandReceiver } from "@alienplatform/commands"
28
28
  *
29
29
  * const receiver = createCommandReceiver()
30
- * receiver.handle("generate-report", async ctx => {
31
- * const params = JSON.parse(new TextDecoder().decode(ctx.input))
30
+ * receiver.command("generate-report", async params => {
32
31
  * return { report: params }
33
32
  * })
34
33
  * await receiver.run() // call receiver.stop() to drain and return
@@ -87,15 +86,49 @@ export interface CommandContext {
87
86
  * (`JSON.stringify`-encoded). Throwing/rejecting submits the error's non-empty
88
87
  * string `code` when present, otherwise `HANDLER_ERROR`.
89
88
  */
90
- export type CommandHandler = (ctx: CommandContext) => unknown | Promise<unknown>;
89
+ export type RawCommandHandler = (ctx: CommandContext) => unknown | Promise<unknown>;
90
+ /** The part of Standard Schema v1 used to validate command inputs. */
91
+ export interface StandardSchema<Input = unknown, Output = Input> {
92
+ readonly "~standard": {
93
+ readonly version: 1;
94
+ readonly vendor: string;
95
+ readonly validate: (value: unknown) => {
96
+ readonly value: Output;
97
+ readonly issues?: undefined;
98
+ } | {
99
+ readonly issues: ReadonlyArray<{
100
+ readonly message: string;
101
+ }>;
102
+ } | Promise<{
103
+ readonly value: Output;
104
+ readonly issues?: undefined;
105
+ } | {
106
+ readonly issues: ReadonlyArray<{
107
+ readonly message: string;
108
+ }>;
109
+ }>;
110
+ readonly types?: {
111
+ readonly input: Input;
112
+ readonly output: Output;
113
+ };
114
+ };
115
+ }
116
+ /** Infer the validated output type of a Standard Schema. */
117
+ export type StandardSchemaOutput<Schema extends StandardSchema> = NonNullable<Schema["~standard"]["types"]>["output"];
118
+ /** A JSON command handler. */
119
+ export type CommandHandler<Input = unknown> = (input: Input, context: CommandContext) => unknown | Promise<unknown>;
91
120
  /**
92
- * The pull receiver handle. Register handlers with {@link CommandReceiver.handle},
121
+ * The pull receiver handle. Register handlers with {@link CommandReceiver.command},
93
122
  * drive the lease loop with {@link CommandReceiver.run}, and stop it with
94
123
  * {@link CommandReceiver.stop}.
95
124
  */
96
125
  export interface CommandReceiver {
97
- /** Register a handler for a command name. Registering a name twice replaces it. */
98
- handle(name: string, handler: CommandHandler): CommandReceiver;
126
+ /** Register a schema-less JSON command. Its input is deliberately `unknown`. */
127
+ command(name: string, handler: CommandHandler<unknown>): CommandReceiver;
128
+ /** Register a JSON command validated by a Standard Schema v1 validator. */
129
+ command<Schema extends StandardSchema>(name: string, schema: Schema, handler: CommandHandler<StandardSchemaOutput<Schema>>): CommandReceiver;
130
+ /** Register an advanced handler that receives the encoded input bytes. */
131
+ handleRaw(name: string, handler: RawCommandHandler): CommandReceiver;
99
132
  /**
100
133
  * Drive the lease loop until {@link CommandReceiver.stop} is called. No new
101
134
  * lease poll *starts* once draining begins; a poll already in flight
@@ -1 +1 @@
1
- {"version":3,"file":"receiver.d.ts","sourceRoot":"","sources":["../src/receiver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAWH,OAAO,KAAK,EAGV,iBAAiB,EACjB,QAAQ,EAIR,YAAY,EACb,MAAM,eAAe,CAAA;AAWtB,4EAA4E;AAC5E,eAAO,MAAM,0BAA0B,oBAAoB,CAAA;AAC3D,wEAAwE;AACxE,eAAO,MAAM,0BAA0B,oBAAoB,CAAA;AAC3D,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,kBAAkB,CAAA;AA8CvD;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,KAAK,EAAE,UAAU,CAAA;IACjB;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,IAAI,CAAA;IACd,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,gDAAgD;IAChD,MAAM,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,OAAO,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAA;KACnD,CAAA;IACD,uEAAuE;IACvE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;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M,GAAG,SAAS,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CASxF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA8B1D;AAED,sFAAsF;AACtF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAM7E;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAoCnF;AA4GD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,KAAK,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,UAAU,CAAC,CAqBrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/commands",
3
- "version": "2.1.5",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "types": "./dist/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "@alienplatform/typescript-config": "^1.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@alienplatform/core": "^2.1.5"
50
+ "@alienplatform/core": "^3.0.0"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly",