@alienplatform/sdk 3.0.0 → 3.1.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/dist.js +17 -2
- package/dist/worker-runtime/console.d.ts +11 -0
- package/dist/worker-runtime/console.d.ts.map +1 -0
- package/dist/worker-runtime/event-loop.d.ts +2 -0
- package/dist/worker-runtime/event-loop.d.ts.map +1 -1
- package/dist/worker-runtime/index.d.ts.map +1 -1
- package/dist/worker-runtime/index.js +56 -8
- package/dist/worker-runtime/registry.d.ts.map +1 -1
- package/dist/worker-runtime/system-log.d.ts +3 -0
- package/dist/worker-runtime/system-log.d.ts.map +1 -0
- package/dist/worker-runtime/wait-until-manager.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/dist.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
//#region src/worker-runtime/system-log.ts
|
|
2
|
+
/**
|
|
3
|
+
* Private wire marker understood by alien-worker-runtime.
|
|
4
|
+
*
|
|
5
|
+
* The runtime removes this marker before forwarding the message and, when the
|
|
6
|
+
* log path supports structured metadata, records `alien.system=true`.
|
|
7
|
+
*/
|
|
8
|
+
const SYSTEM_LOG_PREFIX = "ALIEN_SYSTEM";
|
|
9
|
+
function logSystemError(message, ...args) {
|
|
10
|
+
console.error(`${SYSTEM_LOG_PREFIX}${message}`, ...args);
|
|
11
|
+
}
|
|
12
|
+
function logSystemWarn(message, ...args) {
|
|
13
|
+
console.warn(`${SYSTEM_LOG_PREFIX}${message}`, ...args);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
1
16
|
//#region src/worker-runtime/registry.ts
|
|
2
17
|
const REGISTRY_KEY = Symbol.for("@alienplatform/sdk#worker-runtime-registry");
|
|
3
18
|
function registry$1() {
|
|
@@ -147,7 +162,7 @@ function waitUntil(promise) {
|
|
|
147
162
|
try {
|
|
148
163
|
state.onTaskRegistered?.(tracker);
|
|
149
164
|
} catch (error) {
|
|
150
|
-
|
|
165
|
+
logSystemError("[alien:wait-until] onTaskRegistered hook failed:", error);
|
|
151
166
|
}
|
|
152
167
|
}
|
|
153
168
|
/** Install the runtime's task-registered hook. @internal */
|
|
@@ -10168,4 +10183,4 @@ defineError({
|
|
|
10168
10183
|
httpStatusCode: 400
|
|
10169
10184
|
});
|
|
10170
10185
|
//#endregion
|
|
10171
|
-
export { command as a, onCronEvent as c, runCommand as d, setOnTaskRegistered as f, string as i, onQueueMessage as l, defineError as n, getCommands as o, waitUntil as p, object as r, getEventHandlers as s, AlienError as t, onStorageEvent as u };
|
|
10186
|
+
export { command as a, onCronEvent as c, runCommand as d, setOnTaskRegistered as f, logSystemWarn as h, string as i, onQueueMessage as l, logSystemError as m, defineError as n, getCommands as o, waitUntil as p, object as r, getEventHandlers as s, AlienError as t, onStorageEvent as u };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @internal exported for tests */
|
|
2
|
+
export declare function formatWorkerConsoleLine(args: unknown[]): string;
|
|
3
|
+
/**
|
|
4
|
+
* Keep every console call within one stdout/stderr record.
|
|
5
|
+
*
|
|
6
|
+
* The generated Worker bootstrap imports this runtime before it dynamically
|
|
7
|
+
* imports the application, so the console contract covers application module
|
|
8
|
+
* initialization as well as task handling.
|
|
9
|
+
*/
|
|
10
|
+
export declare function installWorkerConsole(): void;
|
|
11
|
+
//# sourceMappingURL=console.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/console.ts"],"names":[],"mappings":"AAUA,mCAAmC;AACnC,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAM/D;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAa3C"}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type Channel } from "nice-grpc";
|
|
7
7
|
import type { getControlServiceDefinition } from "./service-definitions.js";
|
|
8
|
+
/** @internal exported for tests */
|
|
9
|
+
export declare function formatEventLoopError(error: unknown): string;
|
|
8
10
|
/**
|
|
9
11
|
* Handlers register by the resource's logical name (the name given in the
|
|
10
12
|
* stack program), but cloud transports deliver events keyed by the provider's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-loop.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/event-loop.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,WAAW,CAAA;AAkBtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"event-loop.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/event-loop.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,WAAW,CAAA;AAkBtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAK3E,mCAAmC;AACnC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAU3D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAe5D;AAED,mCAAmC;AACnC,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpE;AAED;;;;GAIG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,OAAO,CAAC,UAAU,CAA6B;IAC/C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAQ;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgD;IACxE,OAAO,CAAC,OAAO,CAAQ;gBAGrB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC;IAQzD;;;;OAIG;YACW,aAAa;IAQ3B;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IA4BvC;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAcd,YAAY;YAaZ,UAAU;YAkEV,aAAa;YAyBb,cAAc;IAqB5B,OAAO,CAAC,qBAAqB;IA4B7B,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,qBAAqB;CA4B9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAiDH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC5D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { d as runCommand, f as setOnTaskRegistered, i as string, n as defineError, o as getCommands, r as object, s as getEventHandlers, t as AlienError } from "../dist.js";
|
|
1
|
+
import { d as runCommand, f as setOnTaskRegistered, h as logSystemWarn, i as string, m as logSystemError, n as defineError, o as getCommands, r as object, s as getEventHandlers, t as AlienError } from "../dist.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
+
import { formatWithOptions } from "node:util";
|
|
3
4
|
//#region \0rolldown/runtime.js
|
|
4
5
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
5
6
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
@@ -27494,6 +27495,41 @@ async function getOrCreateChannel(address) {
|
|
|
27494
27495
|
return channel;
|
|
27495
27496
|
}
|
|
27496
27497
|
//#endregion
|
|
27498
|
+
//#region src/worker-runtime/console.ts
|
|
27499
|
+
const FORMAT_OPTIONS = {
|
|
27500
|
+
breakLength: Number.POSITIVE_INFINITY,
|
|
27501
|
+
colors: false,
|
|
27502
|
+
compact: true
|
|
27503
|
+
};
|
|
27504
|
+
let installed = false;
|
|
27505
|
+
/** @internal exported for tests */
|
|
27506
|
+
function formatWorkerConsoleLine(args) {
|
|
27507
|
+
try {
|
|
27508
|
+
return formatWithOptions(FORMAT_OPTIONS, ...args).replace(/\s*\r?\n\s*/g, " ");
|
|
27509
|
+
} catch {
|
|
27510
|
+
return "[alien:console] Log arguments could not be formatted";
|
|
27511
|
+
}
|
|
27512
|
+
}
|
|
27513
|
+
/**
|
|
27514
|
+
* Keep every console call within one stdout/stderr record.
|
|
27515
|
+
*
|
|
27516
|
+
* The generated Worker bootstrap imports this runtime before it dynamically
|
|
27517
|
+
* imports the application, so the console contract covers application module
|
|
27518
|
+
* initialization as well as task handling.
|
|
27519
|
+
*/
|
|
27520
|
+
function installWorkerConsole() {
|
|
27521
|
+
if (installed) return;
|
|
27522
|
+
installed = true;
|
|
27523
|
+
const log = console.log.bind(console);
|
|
27524
|
+
const info = console.info.bind(console);
|
|
27525
|
+
const warn = console.warn.bind(console);
|
|
27526
|
+
const error = console.error.bind(console);
|
|
27527
|
+
console.log = (...args) => log(formatWorkerConsoleLine(args));
|
|
27528
|
+
console.info = (...args) => info(formatWorkerConsoleLine(args));
|
|
27529
|
+
console.warn = (...args) => warn(formatWorkerConsoleLine(args));
|
|
27530
|
+
console.error = (...args) => error(formatWorkerConsoleLine(args));
|
|
27531
|
+
}
|
|
27532
|
+
//#endregion
|
|
27497
27533
|
//#region src/worker-runtime/grpc-utils.ts
|
|
27498
27534
|
/**
|
|
27499
27535
|
* gRPC utility functions for the Worker runtime's control-plane calls.
|
|
@@ -27538,6 +27574,16 @@ async function wrapGrpcCall(service, method, call) {
|
|
|
27538
27574
|
}
|
|
27539
27575
|
//#endregion
|
|
27540
27576
|
//#region src/worker-runtime/event-loop.ts
|
|
27577
|
+
const MAX_LOG_ERROR_LENGTH = 1e3;
|
|
27578
|
+
/** @internal exported for tests */
|
|
27579
|
+
function formatEventLoopError(error) {
|
|
27580
|
+
try {
|
|
27581
|
+
const singleLine = (error instanceof Error ? `${error.name}: ${error.message}` : String(error)).replace(/\s+/g, " ").trim();
|
|
27582
|
+
return singleLine.length > MAX_LOG_ERROR_LENGTH ? `${singleLine.slice(0, MAX_LOG_ERROR_LENGTH)}…` : singleLine;
|
|
27583
|
+
} catch {
|
|
27584
|
+
return "Unformattable thrown value";
|
|
27585
|
+
}
|
|
27586
|
+
}
|
|
27541
27587
|
/**
|
|
27542
27588
|
* Handlers register by the resource's logical name (the name given in the
|
|
27543
27589
|
* stack program), but cloud transports deliver events keyed by the provider's
|
|
@@ -27621,7 +27667,7 @@ var EventLoop = class {
|
|
|
27621
27667
|
while (this.running) try {
|
|
27622
27668
|
await this.processTasks();
|
|
27623
27669
|
} catch (error) {
|
|
27624
|
-
|
|
27670
|
+
logSystemError(`[alien:event-loop] processTasks threw: error=${formatEventLoopError(error)}`);
|
|
27625
27671
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
27626
27672
|
}
|
|
27627
27673
|
}
|
|
@@ -27630,7 +27676,7 @@ var EventLoop = class {
|
|
|
27630
27676
|
for await (const task of stream) try {
|
|
27631
27677
|
await this.handleTask(task);
|
|
27632
27678
|
} catch (error) {
|
|
27633
|
-
|
|
27679
|
+
logSystemError(`[alien:event-loop] handleTask threw (task will not break stream): id=${task.taskId} error=${formatEventLoopError(error)}`);
|
|
27634
27680
|
}
|
|
27635
27681
|
}
|
|
27636
27682
|
async handleTask(task) {
|
|
@@ -27664,7 +27710,7 @@ var EventLoop = class {
|
|
|
27664
27710
|
}
|
|
27665
27711
|
}
|
|
27666
27712
|
if (!matchedEntry) {
|
|
27667
|
-
|
|
27713
|
+
logSystemWarn(`No handler found for task: ${task.taskId}`);
|
|
27668
27714
|
await this.sendTaskResult(task.taskId, {
|
|
27669
27715
|
success: false,
|
|
27670
27716
|
error: `No handler registered for task ${task.taskId}`
|
|
@@ -27676,14 +27722,15 @@ var EventLoop = class {
|
|
|
27676
27722
|
else if (task.queueMessage) await matchedEntry.handler(this.fromProtoQueueMessage(task.queueMessage));
|
|
27677
27723
|
await this.sendTaskResult(task.taskId, { success: true });
|
|
27678
27724
|
} catch (error) {
|
|
27679
|
-
|
|
27725
|
+
const formattedError = formatEventLoopError(error);
|
|
27726
|
+
logSystemError(`[alien:event-loop] Task error: id=${task.taskId} error=${formattedError}`);
|
|
27680
27727
|
try {
|
|
27681
27728
|
await this.sendTaskResult(task.taskId, {
|
|
27682
27729
|
success: false,
|
|
27683
|
-
error:
|
|
27730
|
+
error: formattedError
|
|
27684
27731
|
});
|
|
27685
27732
|
} catch (sendError) {
|
|
27686
|
-
|
|
27733
|
+
logSystemError(`[alien:event-loop] Failed to send error result: id=${task.taskId} sendError=${formatEventLoopError(sendError)}`);
|
|
27687
27734
|
}
|
|
27688
27735
|
}
|
|
27689
27736
|
}
|
|
@@ -30367,7 +30414,7 @@ var WaitUntilManager = class {
|
|
|
30367
30414
|
install() {
|
|
30368
30415
|
setOnTaskRegistered(() => {
|
|
30369
30416
|
this.notifyTaskRegistered().catch((error) => {
|
|
30370
|
-
|
|
30417
|
+
logSystemError("[alien:wait-until] notifyTaskRegistered failed:", error);
|
|
30371
30418
|
});
|
|
30372
30419
|
});
|
|
30373
30420
|
}
|
|
@@ -30399,6 +30446,7 @@ var WaitUntilManager = class {
|
|
|
30399
30446
|
* tasks to them. Each `waitUntil` background task is reported to the runtime as
|
|
30400
30447
|
* it is registered (graceful drain-on-shutdown is a planned future feature).
|
|
30401
30448
|
*/
|
|
30449
|
+
installWorkerConsole();
|
|
30402
30450
|
/** Instance ID for this worker process. */
|
|
30403
30451
|
function generateInstanceId() {
|
|
30404
30452
|
return `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;AAI5B,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,CAAA;AAE5E;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAA;IACrB,sBAAsB;IACtB,OAAO,EAAE,CAAC,CAAA;IACV,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAA;IACpB,wBAAwB;IACxB,SAAS,EAAE,IAAI,CAAA;IACf,2CAA2C;IAC3C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAA;IACf,wDAAwD;IACxD,QAAQ,CAAC,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/worker-runtime/system-log.ts"],"names":[],"mappings":"AAQA,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAExE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAEvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-until-manager.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/wait-until-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,WAAW,CAAA;AAItD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"wait-until-manager.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/wait-until-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,WAAW,CAAA;AAItD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;AAG7E;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAQ;gBAGpC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC;IAM3D;;;OAGG;IACH,OAAO,IAAI,IAAI;IAQf;;OAEG;IACG,oBAAoB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"nice-grpc": "^2.1.11",
|
|
54
54
|
"nice-grpc-common": "^2.0.2",
|
|
55
55
|
"zod": "4.3.2",
|
|
56
|
-
"@alienplatform/bindings": "^3.
|
|
57
|
-
"@alienplatform/core": "^3.
|
|
56
|
+
"@alienplatform/bindings": "^3.1.0",
|
|
57
|
+
"@alienplatform/core": "^3.1.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsdown && tsc --emitDeclarationOnly",
|