@substrat-run/kernel 0.210.0 → 0.212.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/directory-lake.d.ts +307 -0
- package/dist/directory-lake.d.ts.map +1 -0
- package/dist/directory-lake.js +329 -0
- package/dist/directory-lake.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/invocation-line.d.ts +20 -0
- package/dist/invocation-line.d.ts.map +1 -1
- package/dist/invocation-line.js +15 -0
- package/dist/invocation-line.js.map +1 -1
- package/dist/module-erasure.d.ts +2 -0
- package/dist/module-erasure.d.ts.map +1 -1
- package/dist/module-erasure.js +4 -0
- package/dist/module-erasure.js.map +1 -1
- package/dist/platform-request-cap.d.ts +18 -0
- package/dist/platform-request-cap.d.ts.map +1 -1
- package/dist/platform-request-cap.js +18 -0
- package/dist/platform-request-cap.js.map +1 -1
- package/dist/platform-sweep.d.ts +47 -2
- package/dist/platform-sweep.d.ts.map +1 -1
- package/dist/platform-sweep.js +81 -0
- package/dist/platform-sweep.js.map +1 -1
- package/dist/scope-host.d.ts +67 -1
- package/dist/scope-host.d.ts.map +1 -1
- package/dist/scope-host.js.map +1 -1
- package/dist/stale-scopes.d.ts +135 -0
- package/dist/stale-scopes.d.ts.map +1 -0
- package/dist/stale-scopes.js +308 -0
- package/dist/stale-scopes.js.map +1 -0
- package/dist/subject-access.d.ts +6 -3
- package/dist/subject-access.d.ts.map +1 -1
- package/dist/subject-access.js +92 -18
- package/dist/subject-access.js.map +1 -1
- package/package.json +2 -2
package/dist/subject-access.js
CHANGED
|
@@ -17,27 +17,68 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Paging: each source is walked in turn, events first and then each declared entity in
|
|
19
19
|
* registration order, until the page's budget of events plus rows is spent. The cursor names the
|
|
20
|
-
* source and where in it to resume.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* source and where in it to resume. The pages of one request are separate reads (a separate RPC on
|
|
21
|
+
* a Durable Object), so the scope can change between them, and both sources resume by key: events
|
|
22
|
+
* after the last outbox id, an entity's rows after the last primary key in key order (#3303). A row
|
|
23
|
+
* written or deleted between two pages then repeats or skips no other row. A manifest derived
|
|
24
|
+
* before the erasure declaration carried the key has none to seek on; its rows are paged by offset
|
|
25
|
+
* in scan order, and each listing says which (`paging`), so the package can state it.
|
|
23
26
|
*/
|
|
24
27
|
import { SUBJECT_READ_PAGE_DEFAULT, SUBJECT_READ_PAGE_MAX, substratError, } from '@substrat-run/contracts';
|
|
25
|
-
import {
|
|
28
|
+
import { base64UrlToBytes, bytesToBase64Url } from '@substrat-run/contracts/scope-store-envelope';
|
|
29
|
+
import { erasureColumnOf, erasureTableOf, subjectMatchOf } from './module-erasure.js';
|
|
26
30
|
import { readSubjectEvents } from './timeline.js';
|
|
27
31
|
const EVENTS_CURSOR = /^e:(.+)$/;
|
|
28
|
-
const
|
|
32
|
+
const OFFSET_CURSOR = /^r:(\d{1,6}):(\d{1,9})$/;
|
|
33
|
+
const KEY_CURSOR = /^r:(\d{1,6}):k:([A-Za-z0-9_-]{1,4096})$/;
|
|
34
|
+
const notACursor = () => substratError('validation_failed', 'readSubject: not a cursor this read issued', { reason: 'subject_cursor' });
|
|
35
|
+
function parseKey(encoded) {
|
|
36
|
+
const bytes = base64UrlToBytes(encoded);
|
|
37
|
+
let key;
|
|
38
|
+
try {
|
|
39
|
+
key = bytes && JSON.parse(new TextDecoder().decode(bytes));
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
throw notACursor();
|
|
43
|
+
}
|
|
44
|
+
if (!Array.isArray(key) || key.length === 0 || !key.every((v) => typeof v === 'string' || Number.isFinite(v))) {
|
|
45
|
+
throw notACursor();
|
|
46
|
+
}
|
|
47
|
+
return key;
|
|
48
|
+
}
|
|
29
49
|
function parseCursor(cursor) {
|
|
30
50
|
if (cursor === undefined)
|
|
31
51
|
return { source: 'events' };
|
|
32
52
|
const events = EVENTS_CURSOR.exec(cursor);
|
|
33
53
|
if (events)
|
|
34
54
|
return { source: 'events', after: events[1] };
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
55
|
+
const offset = OFFSET_CURSOR.exec(cursor);
|
|
56
|
+
if (offset) {
|
|
57
|
+
// Offset 0 is the entity's start, whichever way the entity is then paged.
|
|
58
|
+
const n = Number(offset[2]);
|
|
59
|
+
return { source: 'records', entity: Number(offset[1]), ...(n > 0 ? { at: { offset: n } } : {}) };
|
|
60
|
+
}
|
|
61
|
+
const keyed = KEY_CURSOR.exec(cursor);
|
|
62
|
+
if (keyed)
|
|
63
|
+
return { source: 'records', entity: Number(keyed[1]), at: { key: parseKey(keyed[2]) } };
|
|
64
|
+
throw notACursor();
|
|
65
|
+
}
|
|
66
|
+
const recordsCursor = (entity, at) => 'offset' in at
|
|
67
|
+
? `r:${entity}:${at.offset}`
|
|
68
|
+
: `r:${entity}:k:${bytesToBase64Url(new TextEncoder().encode(JSON.stringify(at.key)))}`;
|
|
69
|
+
/**
|
|
70
|
+
* The key a cursor carries: the last row's primary key values. Only text and finite numbers round
|
|
71
|
+
* trip through the cursor's JSON exactly; any other key value (a blob, a NULL) is refused here rather
|
|
72
|
+
* than resumed from a different place.
|
|
73
|
+
*/
|
|
74
|
+
function keyOf(entityType, row, primaryKey) {
|
|
75
|
+
return primaryKey.map((column) => {
|
|
76
|
+
const v = row[column];
|
|
77
|
+
if (typeof v === 'string' || (typeof v === 'number' && Number.isFinite(v)))
|
|
78
|
+
return v;
|
|
79
|
+
throw substratError('internal', `readSubject: ${entityType}.${column} holds a primary key value a cursor cannot carry`);
|
|
80
|
+
});
|
|
39
81
|
}
|
|
40
|
-
const recordsCursor = (entity, offset) => `r:${entity}:${offset}`;
|
|
41
82
|
/** The declared entities access reads, in the order a cursor numbers them. */
|
|
42
83
|
function readableEntities(plans) {
|
|
43
84
|
return plans.flatMap((plan) => plan.declaration.entities
|
|
@@ -81,25 +122,55 @@ export function readSubjectPage(input) {
|
|
|
81
122
|
}
|
|
82
123
|
else {
|
|
83
124
|
budget -= read.length;
|
|
84
|
-
cursor = { source: 'records', entity: 0
|
|
125
|
+
cursor = { source: 'records', entity: 0 };
|
|
85
126
|
}
|
|
86
127
|
}
|
|
87
128
|
if (cursor.source === 'records' && nextCursor === null) {
|
|
88
|
-
let
|
|
129
|
+
let index = cursor.entity;
|
|
130
|
+
let at = cursor.at;
|
|
89
131
|
while (index < entities.length) {
|
|
90
132
|
if (budget === 0) {
|
|
91
|
-
nextCursor = recordsCursor(index, offset);
|
|
133
|
+
nextCursor = recordsCursor(index, at ?? { offset: 0 });
|
|
92
134
|
break;
|
|
93
135
|
}
|
|
94
136
|
const { moduleId, entity } = entities[index];
|
|
137
|
+
const primaryKey = entity.primaryKey;
|
|
138
|
+
// An offset cursor stays an offset walk to the entity's end, even where the key is now
|
|
139
|
+
// declared: it counts rows in scan order, which a key seek cannot resume.
|
|
140
|
+
const byKey = primaryKey !== undefined && !(at && 'offset' in at);
|
|
95
141
|
const { where, params } = subjectMatchOf(entity, subjectId);
|
|
96
|
-
const rows = sql.query(
|
|
97
142
|
// `main.`: a TEMP object named like the declared table would otherwise answer in its place.
|
|
98
|
-
`SELECT * FROM main.${erasureTableOf(entity)} WHERE ${where}
|
|
143
|
+
const from = `SELECT * FROM main.${erasureTableOf(entity)} WHERE ${where}`;
|
|
144
|
+
let rows;
|
|
145
|
+
if (byKey) {
|
|
146
|
+
const columns = primaryKey.map(erasureColumnOf);
|
|
147
|
+
const after = at && 'key' in at ? at.key : undefined;
|
|
148
|
+
if (after && after.length !== columns.length)
|
|
149
|
+
throw notACursor();
|
|
150
|
+
// A row value compares column by column in key order, each under its column's collation,
|
|
151
|
+
// which is the order ORDER BY walks: SQLite 3.15+, which both adapters run.
|
|
152
|
+
const seek = !after
|
|
153
|
+
? ''
|
|
154
|
+
: columns.length === 1
|
|
155
|
+
? ` AND ${columns[0]} > ?`
|
|
156
|
+
: ` AND (${columns.join(', ')}) > (${columns.map(() => '?').join(', ')})`;
|
|
157
|
+
rows = sql.query(`${from}${seek} ORDER BY ${columns.join(', ')} LIMIT ?`, [
|
|
158
|
+
...params,
|
|
159
|
+
...(after ?? []),
|
|
160
|
+
budget + 1,
|
|
161
|
+
]);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
// A key cursor for an entity with no key to seek on resumes nowhere it means.
|
|
165
|
+
if (at && 'key' in at)
|
|
166
|
+
throw notACursor();
|
|
167
|
+
const offset = at && 'offset' in at ? at.offset : 0;
|
|
168
|
+
rows = sql.query(`${from} LIMIT ? OFFSET ?`, [...params, budget + 1, offset]);
|
|
169
|
+
}
|
|
99
170
|
const taken = rows.slice(0, budget);
|
|
100
171
|
// An entity is listed on the page that reads its first rows, a zero included, so a reader
|
|
101
172
|
// can tell "looked at and held nothing" from "not looked at". Later pages add only rows.
|
|
102
|
-
if (
|
|
173
|
+
if (at === undefined || taken.length > 0) {
|
|
103
174
|
records.push({
|
|
104
175
|
module: moduleId,
|
|
105
176
|
entityType: entity.entityType,
|
|
@@ -107,15 +178,18 @@ export function readSubjectPage(input) {
|
|
|
107
178
|
subjects: [...(entity.subjects ?? [])],
|
|
108
179
|
erasable: entity.fields.map((f) => f.name),
|
|
109
180
|
rows: taken,
|
|
181
|
+
paging: byKey ? 'key' : 'offset',
|
|
110
182
|
});
|
|
111
183
|
}
|
|
112
184
|
budget -= taken.length;
|
|
113
185
|
if (rows.length > taken.length) {
|
|
114
|
-
nextCursor = recordsCursor(index,
|
|
186
|
+
nextCursor = recordsCursor(index, byKey
|
|
187
|
+
? { key: keyOf(entity.entityType, taken[taken.length - 1], primaryKey) }
|
|
188
|
+
: { offset: (at && 'offset' in at ? at.offset : 0) + taken.length });
|
|
115
189
|
break;
|
|
116
190
|
}
|
|
117
191
|
index += 1;
|
|
118
|
-
|
|
192
|
+
at = undefined;
|
|
119
193
|
}
|
|
120
194
|
}
|
|
121
195
|
return { events, records, ...unreachedOf(plans), nextCursor };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-access.js","sourceRoot":"","sources":["../src/subject-access.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"subject-access.js","sourceRoot":"","sources":["../src/subject-access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,aAAa,GAMd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAA0B,MAAM,qBAAqB,CAAC;AAE9G,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAalD,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,aAAa,GAAG,yBAAyB,CAAC;AAChD,MAAM,UAAU,GAAG,yCAAyC,CAAC;AAE7D,MAAM,UAAU,GAAG,GAAG,EAAE,CACtB,aAAa,CAAC,mBAAmB,EAAE,4CAA4C,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEjH,SAAS,QAAQ,CAAC,OAAe;IAC/B,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC,IAAI,GAAY,CAAC;IACjB,IAAI,CAAC;QACH,GAAG,GAAG,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7D,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,UAAU,EAAE,CAAC;IACrB,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EA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C,CAAE,EAAE,UAAU,CAAC,EAAE;oBACzE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CACtE,CAAC;gBACF,MAAM;YACR,CAAC;YACD,KAAK,IAAI,CAAC,CAAC;YACX,EAAE,GAAG,SAAS,CAAC;QACjB,CAAC;IACH,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.212.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.212.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.20.5",
|