@substrat-run/kernel 0.206.0 → 0.207.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/dump-sample.d.ts +113 -0
- package/dist/dump-sample.d.ts.map +1 -0
- package/dist/dump-sample.js +258 -0
- package/dist/dump-sample.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/platform-sweep.d.ts +62 -1
- package/dist/platform-sweep.d.ts.map +1 -1
- package/dist/platform-sweep.js +292 -150
- package/dist/platform-sweep.js.map +1 -1
- package/dist/sweep-budget.d.ts +32 -0
- package/dist/sweep-budget.d.ts.map +1 -0
- package/dist/sweep-budget.js +177 -0
- package/dist/sweep-budget.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The most response bytes one connection's sweep may read in one pass: 32 MiB. A buffered read can
|
|
3
|
+
* hold up to twice its body at once (the bytes, then the string `text()` decodes from them), so a
|
|
4
|
+
* connection that spends its whole share in one response peaks near half the 128 MB a Worker
|
|
5
|
+
* isolate holds, leaving the pass room to finish. Far above what a healthy incremental poll reads
|
|
6
|
+
* (a page of JSON is kilobytes). A per-connection share cannot bound the isolate as a whole when
|
|
7
|
+
* several connections read at once; what keeps a pass that still dies from repeating is the
|
|
8
|
+
* attempt each sweep notes before its work (`runConnectorSweep`).
|
|
9
|
+
*/
|
|
10
|
+
export const CONNECTOR_SWEEP_MAX_BYTES = 32 * 1024 * 1024;
|
|
11
|
+
/**
|
|
12
|
+
* The most wall time one connection's sweep may take in one pass: 10 minutes. Above the longest
|
|
13
|
+
* healthy sweep seen in production (about 9 minutes, a store walking its catalogue), and inside
|
|
14
|
+
* the 15 minutes a scheduled invocation lives.
|
|
15
|
+
*/
|
|
16
|
+
export const CONNECTOR_SWEEP_MAX_MS = 10 * 60_000;
|
|
17
|
+
/** A connection's sweep reached the end of its share of the pass. */
|
|
18
|
+
export class SweepBudgetSpent extends Error {
|
|
19
|
+
name = 'SweepBudgetSpent';
|
|
20
|
+
}
|
|
21
|
+
const MIB = 1024 * 1024;
|
|
22
|
+
const mib = (bytes) => (bytes < MIB ? `${bytes} bytes` : `${Math.round((bytes / MIB) * 10) / 10} MiB`);
|
|
23
|
+
/** `fetch` held to `budget`: see the file header. One wrapper per connection per pass. */
|
|
24
|
+
export function budgetedFetch(fetch, budget) {
|
|
25
|
+
const deadline = budget.clock() + budget.maxMs;
|
|
26
|
+
let used = 0;
|
|
27
|
+
const bytesSpent = () => new SweepBudgetSpent(`this connection's sweep read more than its ${mib(budget.maxBytes)} of response bodies for one pass`);
|
|
28
|
+
const timeSpent = () => new SweepBudgetSpent(`this connection's sweep ran past its ${Math.round(budget.maxMs / 60_000)} minutes for one pass`);
|
|
29
|
+
const check = () => {
|
|
30
|
+
if (used > budget.maxBytes)
|
|
31
|
+
throw bytesSpent();
|
|
32
|
+
if (budget.clock() >= deadline)
|
|
33
|
+
throw timeSpent();
|
|
34
|
+
};
|
|
35
|
+
const charge = (n) => {
|
|
36
|
+
used += n;
|
|
37
|
+
check();
|
|
38
|
+
};
|
|
39
|
+
return async (input, init) => {
|
|
40
|
+
check();
|
|
41
|
+
const res = await fetch(input, init);
|
|
42
|
+
const declared = declaredLength(res);
|
|
43
|
+
if (declared !== null && used + declared > budget.maxBytes) {
|
|
44
|
+
await res.body?.getReader().cancel(bytesSpent()).catch(() => { });
|
|
45
|
+
throw bytesSpent();
|
|
46
|
+
}
|
|
47
|
+
return counted(res, charge);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** The body's length as sent, when the response says it: only when nothing decodes it on the way (gzip, br). */
|
|
51
|
+
function declaredLength(res) {
|
|
52
|
+
if (res.headers?.get('content-encoding'))
|
|
53
|
+
return null;
|
|
54
|
+
const n = Number(res.headers?.get('content-length') ?? Number.NaN);
|
|
55
|
+
return Number.isSafeInteger(n) && n >= 0 ? n : null;
|
|
56
|
+
}
|
|
57
|
+
/** `res`, its body read once through `charge`, however the connector reads it. */
|
|
58
|
+
function counted(res, charge) {
|
|
59
|
+
const body = res.body;
|
|
60
|
+
if (!body) {
|
|
61
|
+
// A hand-built stand-in with no stream (every runtime response has one): its own read, charged
|
|
62
|
+
// once it returns. It may implement only the reads its connector makes, so each is its own.
|
|
63
|
+
const utf8 = (text) => new TextEncoder().encode(text).byteLength;
|
|
64
|
+
return {
|
|
65
|
+
ok: res.ok,
|
|
66
|
+
status: res.status,
|
|
67
|
+
...(res.headers ? { headers: res.headers } : {}),
|
|
68
|
+
body,
|
|
69
|
+
text: async () => {
|
|
70
|
+
const t = await res.text();
|
|
71
|
+
charge(utf8(t));
|
|
72
|
+
return t;
|
|
73
|
+
},
|
|
74
|
+
json: async () => {
|
|
75
|
+
const v = await res.json();
|
|
76
|
+
charge(utf8(JSON.stringify(v) ?? ''));
|
|
77
|
+
return v;
|
|
78
|
+
},
|
|
79
|
+
arrayBuffer: async () => {
|
|
80
|
+
const b = await res.arrayBuffer();
|
|
81
|
+
charge(b.byteLength);
|
|
82
|
+
return b;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
let stream;
|
|
87
|
+
// A buffered read holds the body once: written into one buffer of the declared length as it
|
|
88
|
+
// arrives, or, with no length to size it by, its chunks joined at the end (once there are two).
|
|
89
|
+
const bytes = async () => {
|
|
90
|
+
const reader = body.getReader();
|
|
91
|
+
const declared = declaredLength(res);
|
|
92
|
+
const sized = declared === null ? null : new Uint8Array(declared);
|
|
93
|
+
const chunks = [];
|
|
94
|
+
let total = 0;
|
|
95
|
+
try {
|
|
96
|
+
for (;;) {
|
|
97
|
+
const { done, value } = await reader.read();
|
|
98
|
+
if (done)
|
|
99
|
+
break;
|
|
100
|
+
if (!value)
|
|
101
|
+
continue;
|
|
102
|
+
charge(value.byteLength);
|
|
103
|
+
if (sized) {
|
|
104
|
+
if (total + value.byteLength > sized.byteLength)
|
|
105
|
+
throw new Error('the response body is longer than its declared length');
|
|
106
|
+
sized.set(value, total);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
chunks.push(value);
|
|
110
|
+
}
|
|
111
|
+
total += value.byteLength;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
catch (err) {
|
|
115
|
+
await reader.cancel(err).catch(() => { });
|
|
116
|
+
throw err;
|
|
117
|
+
}
|
|
118
|
+
if (sized)
|
|
119
|
+
return total === sized.byteLength ? sized : sized.subarray(0, total);
|
|
120
|
+
if (chunks.length === 1)
|
|
121
|
+
return chunks[0];
|
|
122
|
+
const out = new Uint8Array(total);
|
|
123
|
+
let at = 0;
|
|
124
|
+
for (const c of chunks.splice(0)) {
|
|
125
|
+
out.set(c, at);
|
|
126
|
+
at += c.byteLength;
|
|
127
|
+
}
|
|
128
|
+
return out;
|
|
129
|
+
};
|
|
130
|
+
const text = async () => new TextDecoder().decode(await bytes());
|
|
131
|
+
return {
|
|
132
|
+
ok: res.ok,
|
|
133
|
+
status: res.status,
|
|
134
|
+
...(res.headers ? { headers: res.headers } : {}),
|
|
135
|
+
text,
|
|
136
|
+
json: async () => JSON.parse(await text()),
|
|
137
|
+
arrayBuffer: async () => {
|
|
138
|
+
const b = await bytes();
|
|
139
|
+
// The buffer itself when the bytes fill it, as they do once read: no second copy.
|
|
140
|
+
return (b.byteOffset === 0 && b.byteLength === b.buffer.byteLength ? b.buffer : b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength));
|
|
141
|
+
},
|
|
142
|
+
get body() {
|
|
143
|
+
stream ??= countedStream(body, charge);
|
|
144
|
+
return stream;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/** `body`, passed through chunk by chunk with each chunk charged before it is handed on. */
|
|
149
|
+
function countedStream(body, charge) {
|
|
150
|
+
let reader;
|
|
151
|
+
return new ReadableStream({
|
|
152
|
+
async pull(controller) {
|
|
153
|
+
reader ??= body.getReader();
|
|
154
|
+
try {
|
|
155
|
+
const { done, value } = await reader.read();
|
|
156
|
+
if (done) {
|
|
157
|
+
controller.close();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (!value)
|
|
161
|
+
return;
|
|
162
|
+
charge(value.byteLength);
|
|
163
|
+
controller.enqueue(value);
|
|
164
|
+
}
|
|
165
|
+
catch (err) {
|
|
166
|
+
await reader.cancel(err).catch(() => { });
|
|
167
|
+
controller.error(err);
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
// Before the first read too: a body taken and cancelled unread still lets go of the provider's.
|
|
171
|
+
cancel: async (reason) => {
|
|
172
|
+
reader ??= body.getReader();
|
|
173
|
+
await reader.cancel(reason).catch(() => { });
|
|
174
|
+
},
|
|
175
|
+
}, { highWaterMark: 0 });
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=sweep-budget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-budget.js","sourceRoot":"","sources":["../src/sweep-budget.ts"],"names":[],"mappings":"AAwBA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,GAAG,MAAM,CAAC;AAElD,qEAAqE;AACrE,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACvB,IAAI,GAAG,kBAAkB,CAAC;CAC7C;AAqBD,MAAM,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AAE/G,0FAA0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,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;gBACzC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QACD,gGAAgG;QAChG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACvB,MAAM,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;YAC5B,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC9C,CAAC;KACF,EACD,EAAE,aAAa,EAAE,CAAC,EAAE,CACrB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.207.0",
|
|
4
4
|
"description": "Substrat kernel contracts and services — pure TypeScript, no platform imports (D-14)",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@substrat-run/contracts": "^0.
|
|
37
|
+
"@substrat-run/contracts": "^0.207.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.20.5",
|