@telorun/kernel 0.69.0 → 0.72.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/bigint-json.d.ts +45 -0
- package/dist/bigint-json.d.ts.map +1 -0
- package/dist/bigint-json.js +65 -0
- package/dist/bigint-json.js.map +1 -0
- package/dist/bigint-schema-view.d.ts +34 -0
- package/dist/bigint-schema-view.d.ts.map +1 -0
- package/dist/bigint-schema-view.js +85 -0
- package/dist/bigint-schema-view.js.map +1 -0
- package/dist/cel-handlers.d.ts.map +1 -1
- package/dist/cel-handlers.js +6 -8
- package/dist/cel-handlers.js.map +1 -1
- package/dist/controllers/module/import-controller.d.ts.map +1 -1
- package/dist/controllers/module/import-controller.js +15 -1
- package/dist/controllers/module/import-controller.js.map +1 -1
- package/dist/evaluation-context.d.ts.map +1 -1
- package/dist/evaluation-context.js +8 -1
- package/dist/evaluation-context.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/invocation-contract-binding.d.ts +0 -6
- package/dist/invocation-contract-binding.d.ts.map +1 -1
- package/dist/invocation-contract-binding.js +9 -64
- package/dist/invocation-contract-binding.js.map +1 -1
- package/dist/kernel.d.ts +4 -0
- package/dist/kernel.d.ts.map +1 -1
- package/dist/kernel.js +22 -3
- package/dist/kernel.js.map +1 -1
- package/dist/logging/encode-json.d.ts.map +1 -1
- package/dist/logging/encode-json.js +13 -9
- package/dist/logging/encode-json.js.map +1 -1
- package/dist/logging/encode-pretty.d.ts.map +1 -1
- package/dist/logging/encode-pretty.js +13 -4
- package/dist/logging/encode-pretty.js.map +1 -1
- package/dist/module-file-resolution.d.ts +22 -0
- package/dist/module-file-resolution.d.ts.map +1 -0
- package/dist/module-file-resolution.js +51 -0
- package/dist/module-file-resolution.js.map +1 -0
- package/dist/resolve-include-sentinels.d.ts +37 -0
- package/dist/resolve-include-sentinels.d.ts.map +1 -0
- package/dist/resolve-include-sentinels.js +175 -0
- package/dist/resolve-include-sentinels.js.map +1 -0
- package/dist/resource-context.d.ts +10 -1
- package/dist/resource-context.d.ts.map +1 -1
- package/dist/resource-context.js +42 -45
- package/dist/resource-context.js.map +1 -1
- package/dist/runtime-seam.d.ts.map +1 -1
- package/dist/runtime-seam.js +10 -1
- package/dist/runtime-seam.js.map +1 -1
- package/dist/schema-validator.d.ts.map +1 -1
- package/dist/schema-validator.js +23 -12
- package/dist/schema-validator.js.map +1 -1
- package/package.json +4 -4
- package/src/bigint-json.ts +69 -0
- package/src/bigint-schema-view.ts +76 -0
- package/src/cel-handlers.ts +6 -9
- package/src/controllers/module/import-controller.ts +14 -1
- package/src/evaluation-context.ts +8 -1
- package/src/index.ts +1 -0
- package/src/invocation-contract-binding.ts +9 -55
- package/src/kernel.ts +29 -0
- package/src/logging/encode-json.ts +14 -9
- package/src/logging/encode-pretty.ts +12 -3
- package/src/module-file-resolution.ts +64 -0
- package/src/resolve-include-sentinels.ts +219 -0
- package/src/resource-context.ts +46 -45
- package/src/runtime-seam.ts +11 -0
- package/src/schema-validator.ts +23 -12
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes a CEL integer JSON-serializable everywhere, once, for the whole process.
|
|
3
|
+
*
|
|
4
|
+
* CEL models `int` as int64, which this runtime evaluates to a JS BigInt — so
|
|
5
|
+
* `size(group)`, `sum(...)` and integer arithmetic all produce one. `JSON.stringify`
|
|
6
|
+
* THROWS on a BigInt, and there is a JSON boundary at the end of nearly every
|
|
7
|
+
* manifest: an HTTP response body, an NDJSON or SSE frame, a persisted value, an
|
|
8
|
+
* assertion message. Each of those used to answer the question for itself, and the
|
|
9
|
+
* one an author actually meets — an `application/json` response — answered it by
|
|
10
|
+
* throwing, which pushed the answer into the manifest as `double(...)`: a cast that
|
|
11
|
+
* says "make this a float" about a value that is an integer, and that silently loses
|
|
12
|
+
* precision past 2^53.
|
|
13
|
+
*
|
|
14
|
+
* `BigInt.prototype.toJSON` is the sanctioned extension point, and until
|
|
15
|
+
* `JSON.rawJSON` existed it could not be used honestly: `toJSON` must return a JSON
|
|
16
|
+
* *value*, so the only options were a lossy `Number` or a type-changing string.
|
|
17
|
+
* `JSON.rawJSON` emits verbatim text, so a BigInt serializes as its exact decimal
|
|
18
|
+
* digits — legal JSON (the format puts no precision limit on numbers), and already
|
|
19
|
+
* what `fast-json-stringify` emits for a schema-typed `integer`. Installing it is
|
|
20
|
+
* therefore not a new policy; it is what makes the runtime's two JSON serializers
|
|
21
|
+
* agree at every magnitude instead of only below 2^53. Normative statement:
|
|
22
|
+
* `kernel/specs/invocation-contract.md` §4.4.
|
|
23
|
+
*
|
|
24
|
+
* A process-global prototype patch, in the same spirit as the `process.env`
|
|
25
|
+
* guardrail (`host-env.ts`): installed at `boot()`, idempotent across in-process
|
|
26
|
+
* kernels, and non-enumerable so nothing walking `BigInt.prototype` sees it. Every
|
|
27
|
+
* JSON boundary in the process gets it — the kernel's, the standard library's, a
|
|
28
|
+
* third-party module's, and one not yet written.
|
|
29
|
+
*
|
|
30
|
+
* It lives in the kernel rather than the SDK because installing a global is a
|
|
31
|
+
* composition-root action: a controller has no business calling it, and the SDK is
|
|
32
|
+
* the module-author surface. What a module author needs is the consequence —
|
|
33
|
+
* `bigIntAt`, in `@telorun/sdk`, for a sink or codec that must encode a wide
|
|
34
|
+
* integer differently.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Install `BigInt.prototype.toJSON`. Idempotent and process-global.
|
|
38
|
+
*
|
|
39
|
+
* Throws rather than degrading when `JSON.rawJSON` is missing. A quiet no-op would
|
|
40
|
+
* leave every JSON boundary throwing `Do not know how to serialize a BigInt` at
|
|
41
|
+
* some unrelated point later — each site that used to carry its own BigInt handling
|
|
42
|
+
* now relies on this — and nothing in that failure names the runtime as the cause.
|
|
43
|
+
*/
|
|
44
|
+
export declare function enableBigIntJson(): void;
|
|
45
|
+
//# sourceMappingURL=bigint-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigint-json.d.ts","sourceRoot":"","sources":["../src/bigint-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAQH;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAkBvC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes a CEL integer JSON-serializable everywhere, once, for the whole process.
|
|
3
|
+
*
|
|
4
|
+
* CEL models `int` as int64, which this runtime evaluates to a JS BigInt — so
|
|
5
|
+
* `size(group)`, `sum(...)` and integer arithmetic all produce one. `JSON.stringify`
|
|
6
|
+
* THROWS on a BigInt, and there is a JSON boundary at the end of nearly every
|
|
7
|
+
* manifest: an HTTP response body, an NDJSON or SSE frame, a persisted value, an
|
|
8
|
+
* assertion message. Each of those used to answer the question for itself, and the
|
|
9
|
+
* one an author actually meets — an `application/json` response — answered it by
|
|
10
|
+
* throwing, which pushed the answer into the manifest as `double(...)`: a cast that
|
|
11
|
+
* says "make this a float" about a value that is an integer, and that silently loses
|
|
12
|
+
* precision past 2^53.
|
|
13
|
+
*
|
|
14
|
+
* `BigInt.prototype.toJSON` is the sanctioned extension point, and until
|
|
15
|
+
* `JSON.rawJSON` existed it could not be used honestly: `toJSON` must return a JSON
|
|
16
|
+
* *value*, so the only options were a lossy `Number` or a type-changing string.
|
|
17
|
+
* `JSON.rawJSON` emits verbatim text, so a BigInt serializes as its exact decimal
|
|
18
|
+
* digits — legal JSON (the format puts no precision limit on numbers), and already
|
|
19
|
+
* what `fast-json-stringify` emits for a schema-typed `integer`. Installing it is
|
|
20
|
+
* therefore not a new policy; it is what makes the runtime's two JSON serializers
|
|
21
|
+
* agree at every magnitude instead of only below 2^53. Normative statement:
|
|
22
|
+
* `kernel/specs/invocation-contract.md` §4.4.
|
|
23
|
+
*
|
|
24
|
+
* A process-global prototype patch, in the same spirit as the `process.env`
|
|
25
|
+
* guardrail (`host-env.ts`): installed at `boot()`, idempotent across in-process
|
|
26
|
+
* kernels, and non-enumerable so nothing walking `BigInt.prototype` sees it. Every
|
|
27
|
+
* JSON boundary in the process gets it — the kernel's, the standard library's, a
|
|
28
|
+
* third-party module's, and one not yet written.
|
|
29
|
+
*
|
|
30
|
+
* It lives in the kernel rather than the SDK because installing a global is a
|
|
31
|
+
* composition-root action: a controller has no business calling it, and the SDK is
|
|
32
|
+
* the module-author surface. What a module author needs is the consequence —
|
|
33
|
+
* `bigIntAt`, in `@telorun/sdk`, for a sink or codec that must encode a wide
|
|
34
|
+
* integer differently.
|
|
35
|
+
*/
|
|
36
|
+
import { BIGINT_JSON_INSTALLED_KEY, isBigIntJsonEnabled } from "@telorun/sdk";
|
|
37
|
+
/** `JSON.rawJSON` (ES2025). Absent only on a runtime older than this kernel
|
|
38
|
+
* supports — `engines` pins Node >= 24, and Bun 1.3 has it. */
|
|
39
|
+
const rawJSON = JSON.rawJSON;
|
|
40
|
+
/**
|
|
41
|
+
* Install `BigInt.prototype.toJSON`. Idempotent and process-global.
|
|
42
|
+
*
|
|
43
|
+
* Throws rather than degrading when `JSON.rawJSON` is missing. A quiet no-op would
|
|
44
|
+
* leave every JSON boundary throwing `Do not know how to serialize a BigInt` at
|
|
45
|
+
* some unrelated point later — each site that used to carry its own BigInt handling
|
|
46
|
+
* now relies on this — and nothing in that failure names the runtime as the cause.
|
|
47
|
+
*/
|
|
48
|
+
export function enableBigIntJson() {
|
|
49
|
+
if (isBigIntJsonEnabled())
|
|
50
|
+
return;
|
|
51
|
+
if (typeof rawJSON !== "function") {
|
|
52
|
+
throw new Error("JSON.rawJSON is unavailable, so a CEL integer (int64) cannot be serialized " +
|
|
53
|
+
"exactly. Telo requires Node.js >= 24 or Bun >= 1.3.");
|
|
54
|
+
}
|
|
55
|
+
globalThis[BIGINT_JSON_INSTALLED_KEY] = true;
|
|
56
|
+
Object.defineProperty(BigInt.prototype, "toJSON", {
|
|
57
|
+
value: function toJSON() {
|
|
58
|
+
return rawJSON(this.toString());
|
|
59
|
+
},
|
|
60
|
+
writable: true,
|
|
61
|
+
enumerable: false,
|
|
62
|
+
configurable: true,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=bigint-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigint-json.js","sourceRoot":"","sources":["../src/bigint-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE9E;gEACgE;AAChE,MAAM,OAAO,GAAI,IAAgD,CAAC,OAAO,CAAC;AAE1E;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB;IAC9B,IAAI,mBAAmB,EAAE;QAAE,OAAO;IAClC,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,6EAA6E;YAC3E,qDAAqD,CACxD,CAAC;IACJ,CAAC;IACA,UAAsC,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;IAE1E,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE;QAChD,KAAK,EAAE,SAAS,MAAM;YACpB,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClC,CAAC;QACD,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The BigInt-normalized VIEW a JSON Schema validator can check, and merging its
|
|
3
|
+
* default-fills back onto the real value.
|
|
4
|
+
*
|
|
5
|
+
* CEL evaluates an integer to a BigInt, which AJV does not recognise as `integer`
|
|
6
|
+
* or `number` — `typeof data == "number"` is the whole of its type check. So a
|
|
7
|
+
* computed integer reaching a declared integer slot is rejected for a reason the
|
|
8
|
+
* author cannot act on, and cannot fix without casting the value to a float. The
|
|
9
|
+
* value is not wrong; the validator cannot see it.
|
|
10
|
+
*
|
|
11
|
+
* Validating a normalized view rather than coercing in place is what keeps that a
|
|
12
|
+
* validator concern: the dispatched value keeps its BigInts, since a controller may
|
|
13
|
+
* need the full 64-bit range, and serialization emits them exactly (see
|
|
14
|
+
* `enableBigIntJson` in `@telorun/sdk`). A value beyond the safe-integer range loses
|
|
15
|
+
* precision in the VIEW, which can only affect a bound check at the extremes.
|
|
16
|
+
*/
|
|
17
|
+
/** A structural copy of `value` with every BigInt rendered as a Number. Returns
|
|
18
|
+
* the SAME reference when there was nothing to change, which is what lets a
|
|
19
|
+
* caller skip the merge-back entirely on the common path. Non-plain objects (a
|
|
20
|
+
* live `Stream`, a resource instance) pass through by reference — they are not
|
|
21
|
+
* data to be walked. */
|
|
22
|
+
export declare function withBigIntsAsNumbers(value: unknown): unknown;
|
|
23
|
+
/** Copy keys an AJV `useDefaults` fill added to `view` back onto `target`.
|
|
24
|
+
* Only ADDITIONS are taken: a key already present came from the caller and its
|
|
25
|
+
* original (possibly BigInt) value is the one to keep.
|
|
26
|
+
*
|
|
27
|
+
* Arrays are walked index-wise, not treated as leaves: AJV writes a default at
|
|
28
|
+
* every level it finds one, including inside `items`, and `Collection.Sort`'s
|
|
29
|
+
* `orderBy[].descending` is exactly that shape. Bailing at the array boundary
|
|
30
|
+
* would drop those fills silently — a worse failure than the throw it replaced,
|
|
31
|
+
* because the call then succeeds with the default missing. This mirrors the
|
|
32
|
+
* copy side, where `copyForDefaults` already fans out through an `[]` segment. */
|
|
33
|
+
export declare function mergeFilledDefaults(target: unknown, view: unknown): unknown;
|
|
34
|
+
//# sourceMappingURL=bigint-schema-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigint-schema-view.d.ts","sourceRoot":"","sources":["../src/bigint-schema-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;yBAIyB;AACzB,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAqB5D;AAED;;;;;;;;;mFASmF;AACnF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAoB3E"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The BigInt-normalized VIEW a JSON Schema validator can check, and merging its
|
|
3
|
+
* default-fills back onto the real value.
|
|
4
|
+
*
|
|
5
|
+
* CEL evaluates an integer to a BigInt, which AJV does not recognise as `integer`
|
|
6
|
+
* or `number` — `typeof data == "number"` is the whole of its type check. So a
|
|
7
|
+
* computed integer reaching a declared integer slot is rejected for a reason the
|
|
8
|
+
* author cannot act on, and cannot fix without casting the value to a float. The
|
|
9
|
+
* value is not wrong; the validator cannot see it.
|
|
10
|
+
*
|
|
11
|
+
* Validating a normalized view rather than coercing in place is what keeps that a
|
|
12
|
+
* validator concern: the dispatched value keeps its BigInts, since a controller may
|
|
13
|
+
* need the full 64-bit range, and serialization emits them exactly (see
|
|
14
|
+
* `enableBigIntJson` in `@telorun/sdk`). A value beyond the safe-integer range loses
|
|
15
|
+
* precision in the VIEW, which can only affect a bound check at the extremes.
|
|
16
|
+
*/
|
|
17
|
+
/** A structural copy of `value` with every BigInt rendered as a Number. Returns
|
|
18
|
+
* the SAME reference when there was nothing to change, which is what lets a
|
|
19
|
+
* caller skip the merge-back entirely on the common path. Non-plain objects (a
|
|
20
|
+
* live `Stream`, a resource instance) pass through by reference — they are not
|
|
21
|
+
* data to be walked. */
|
|
22
|
+
export function withBigIntsAsNumbers(value) {
|
|
23
|
+
if (typeof value === "bigint")
|
|
24
|
+
return Number(value);
|
|
25
|
+
if (Array.isArray(value)) {
|
|
26
|
+
let changed = false;
|
|
27
|
+
const items = value.map((item) => {
|
|
28
|
+
const next = withBigIntsAsNumbers(item);
|
|
29
|
+
if (next !== item)
|
|
30
|
+
changed = true;
|
|
31
|
+
return next;
|
|
32
|
+
});
|
|
33
|
+
return changed ? items : value;
|
|
34
|
+
}
|
|
35
|
+
if (!value || typeof value !== "object")
|
|
36
|
+
return value;
|
|
37
|
+
if (Object.getPrototypeOf(value) !== Object.prototype)
|
|
38
|
+
return value;
|
|
39
|
+
let changed = false;
|
|
40
|
+
const out = {};
|
|
41
|
+
for (const [key, item] of Object.entries(value)) {
|
|
42
|
+
const next = withBigIntsAsNumbers(item);
|
|
43
|
+
if (next !== item)
|
|
44
|
+
changed = true;
|
|
45
|
+
out[key] = next;
|
|
46
|
+
}
|
|
47
|
+
return changed ? out : value;
|
|
48
|
+
}
|
|
49
|
+
/** Copy keys an AJV `useDefaults` fill added to `view` back onto `target`.
|
|
50
|
+
* Only ADDITIONS are taken: a key already present came from the caller and its
|
|
51
|
+
* original (possibly BigInt) value is the one to keep.
|
|
52
|
+
*
|
|
53
|
+
* Arrays are walked index-wise, not treated as leaves: AJV writes a default at
|
|
54
|
+
* every level it finds one, including inside `items`, and `Collection.Sort`'s
|
|
55
|
+
* `orderBy[].descending` is exactly that shape. Bailing at the array boundary
|
|
56
|
+
* would drop those fills silently — a worse failure than the throw it replaced,
|
|
57
|
+
* because the call then succeeds with the default missing. This mirrors the
|
|
58
|
+
* copy side, where `copyForDefaults` already fans out through an `[]` segment. */
|
|
59
|
+
export function mergeFilledDefaults(target, view) {
|
|
60
|
+
if (target === view)
|
|
61
|
+
return target;
|
|
62
|
+
if (!target || typeof target !== "object")
|
|
63
|
+
return target;
|
|
64
|
+
if (!view || typeof view !== "object")
|
|
65
|
+
return target;
|
|
66
|
+
if (Array.isArray(target)) {
|
|
67
|
+
if (!Array.isArray(view))
|
|
68
|
+
return target;
|
|
69
|
+
for (let i = 0; i < target.length && i < view.length; i++) {
|
|
70
|
+
target[i] = mergeFilledDefaults(target[i], view[i]);
|
|
71
|
+
}
|
|
72
|
+
return target;
|
|
73
|
+
}
|
|
74
|
+
if (Array.isArray(view))
|
|
75
|
+
return target;
|
|
76
|
+
const out = target;
|
|
77
|
+
for (const [key, filled] of Object.entries(view)) {
|
|
78
|
+
if (!(key in out))
|
|
79
|
+
out[key] = filled;
|
|
80
|
+
else
|
|
81
|
+
out[key] = mergeFilledDefaults(out[key], filled);
|
|
82
|
+
}
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=bigint-schema-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigint-schema-view.js","sourceRoot":"","sources":["../src/bigint-schema-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;yBAIyB;AACzB,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACpD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC/B,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;YACxC,IAAI,IAAI,KAAK,IAAI;gBAAE,OAAO,GAAG,IAAI,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;IACjC,CAAC;IACD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,MAAM,GA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,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAA+B,CAAC,EAAE,CAAC;QAC5E,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC;YAAE,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;;YAChC,GAAG,CAAC,GAAG,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cel-handlers.d.ts","sourceRoot":"","sources":["../src/cel-handlers.ts"],"names":[],"mappings":"AAEA;;uDAEuD;AACvD,eAAO,MAAM,eAAe;gBACd,MAAM;aACT,MAAM;cACL,MAAM;gBACJ,MAAM;sBACA,MAAM,OAAO,MAAM,WAAW,MAAM;sBAEpC,MAAM;sBACN,MAAM;
|
|
1
|
+
{"version":3,"file":"cel-handlers.d.ts","sourceRoot":"","sources":["../src/cel-handlers.ts"],"names":[],"mappings":"AAEA;;uDAEuD;AACvD,eAAO,MAAM,eAAe;gBACd,MAAM;aACT,MAAM;cACL,MAAM;gBACJ,MAAM;sBACA,MAAM,OAAO,MAAM,WAAW,MAAM;sBAEpC,MAAM;sBACN,MAAM;kBAMV,OAAO;CACtB,CAAC"}
|
package/dist/cel-handlers.js
CHANGED
|
@@ -10,13 +10,11 @@ export const nodeCelHandlers = {
|
|
|
10
10
|
hmac: (algorithm, key, message) => createHmac(algorithm, key).update(message).digest("hex"),
|
|
11
11
|
base64Encode: (s) => Buffer.from(s, "utf8").toString("base64"),
|
|
12
12
|
base64Decode: (s) => Buffer.from(s, "base64").toString("utf8"),
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
// than break the contract. (CEL `null` already serializes to "null".)
|
|
20
|
-
json: (value) => JSON.stringify(value, (_k, v) => (typeof v === "bigint" ? Number(v) : v)) ?? "null",
|
|
13
|
+
// An int / uint is a BigInt here and serializes as its exact digits — see
|
|
14
|
+
// `enableBigIntJson` in `@telorun/sdk`, installed at boot. JSON.stringify
|
|
15
|
+
// returns undefined for top-level undefined / function / symbol — the CEL
|
|
16
|
+
// signature is `json(dyn): string`, so coerce that to "null" rather than break
|
|
17
|
+
// the contract. (CEL `null` already serializes to "null".)
|
|
18
|
+
json: (value) => JSON.stringify(value) ?? "null",
|
|
21
19
|
};
|
|
22
20
|
//# sourceMappingURL=cel-handlers.js.map
|
package/dist/cel-handlers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cel-handlers.js","sourceRoot":"","sources":["../src/cel-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD;;uDAEuD;AACvD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IACnE,GAAG,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IAC/D,MAAM,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IACnE,IAAI,EAAE,CAAC,SAAiB,EAAE,GAAW,EAAE,OAAe,EAAE,EAAE,CACxD,UAAU,C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M,CAAC,KAAK,CAAC;IAC1D,YAAY,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;IACtE,YAAY,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;IACtE,0EAA0E;IAC1E,0EAA0E;IAC1E,0EAA0E;IAC1E,+EAA+E;IAC/E,2DAA2D;IAC3D,IAAI,EAAE,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM;CAC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/module/import-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAK1E,wBAAsB,MAAM,CAC1B,QAAQ,EAAE,GAAG,EACb,GAAG,EAAE,wBAAwB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"import-controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/module/import-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAK1E,wBAAsB,MAAM,CAC1B,QAAQ,EAAE,GAAG,EACb,GAAG,EAAE,wBAAwB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAgV3B"}
|
|
@@ -112,7 +112,21 @@ export async function create(resource, ctx) {
|
|
|
112
112
|
// (defaulted) contract.
|
|
113
113
|
const importVariables = applyDefaults(ctx.expandValue(resource.variables, {}) ?? {}, moduleManifest.variables ?? {});
|
|
114
114
|
const importSecrets = applyDefaults(ctx.expandValue(resource.secrets, {}) ?? {}, moduleManifest.secrets ?? {});
|
|
115
|
-
const childCtx = new ModuleContext(
|
|
115
|
+
const childCtx = new ModuleContext(
|
|
116
|
+
// The LIBRARY's own manifest URL, not the importer's. `source` is what every
|
|
117
|
+
// module-relative file reference is measured from — `ctx.resolveModuleFile`
|
|
118
|
+
// for a controller, an `!include-*` embed for a manifest value — so carrying
|
|
119
|
+
// the parent's here made a library read the CONSUMER's directory. That is
|
|
120
|
+
// worse than a hard error: a consumer who happens to have a file at the same
|
|
121
|
+
// relative path gets theirs silently. It also contradicted packaging, which
|
|
122
|
+
// is per-module and had already put the library's file in the library's own
|
|
123
|
+
// artifact.
|
|
124
|
+
//
|
|
125
|
+
// The MANIFEST URL, stamped by the loader — not `resolvedUrl`, which is the
|
|
126
|
+
// import source as written (`./lib`, a directory). Resolving `assets/x` against
|
|
127
|
+
// a directory URL with no trailing slash drops its last segment, which is how
|
|
128
|
+
// the consumer's directory got read in the first place.
|
|
129
|
+
(moduleManifest.metadata?.source ?? resolvedUrl), importVariables, importSecrets, {}, [], ctx.moduleContext.createInstance, ctx.moduleContext.emit);
|
|
116
130
|
const child = ctx.moduleContext.spawnChild(childCtx);
|
|
117
131
|
// A library references its own kinds via `Self.<Kind>` (e.g. when it declares an
|
|
118
132
|
// instance to export). Register `Self` → the library's own module in the child context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-controller.js","sourceRoot":"","sources":["../../../src/controllers/module/import-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE1H,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,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N objects are rebuilt. Anything else — a `Uint8Array` embedded by
|
|
275
|
+
// `!include-bytes`, a class instance — is opaque and passes through by
|
|
276
|
+
// reference, the same rule `precompileDoc` follows. Rebuilding from
|
|
277
|
+
// `Object.entries` would turn a byte buffer into `{"0":137,…}` silently, with
|
|
278
|
+
// no error anywhere: the bytes would simply arrive at the controller as the
|
|
279
|
+
// wrong shape.
|
|
280
|
+
const proto = value !== null && typeof value === "object" ? Object.getPrototypeOf(value) : false;
|
|
281
|
+
if (proto === Object.prototype || proto === null) {
|
|
275
282
|
const entries = Object.entries(value).map(([k, v]) => [k, compileWalker(v)]);
|
|
276
283
|
const n = entries.length;
|
|
277
284
|
return (ctx) => {
|