@northtalk/ts 0.6.0 → 0.8.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/{binary-value-C4ZiXVjv.d.ts → binary-value-B93hEK7l.d.ts} +1 -1
- package/{checker-CUhn2XaM.js → checker-Q4w7rLXk.js} +600 -85
- package/{core-egHbNmve.d.ts → core-BBPI6EhG.d.ts} +1 -1
- package/{debug--Of4MSLw.d.ts → debug-s6QIovKS.d.ts} +142 -10
- package/debug.d.ts +1 -1
- package/debug.js +1 -1
- package/{driver-BIm1mL77.d.ts → driver-D5yrK3Nu.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/driver.js +1 -1
- package/encoding-B7MCQ4ii.js +338 -0
- package/{engine-DbDcopGM.d.ts → engine-Dy-BCoiw.d.ts} +2 -2
- package/{engine-CXf5FCwi.js → engine-OL1BveVZ.js} +6 -6
- package/{errors-D11zizZg.js → errors-VuwK669R.js} +157 -23
- package/{group-BpzTo0k4.js → group-Ccuqwq12.js} +477 -110
- package/{http-fetch-DFwVIOQg.js → http-fetch--O27xjSW.js} +2 -2
- package/http.d.ts +1 -1
- package/http.js +4 -4
- package/index.d.ts +6 -6
- package/index.js +15 -14
- package/{inline-grants-XbX9HL_w.js → inline-grants-DmOdgSoK.js} +4 -5
- package/{lean-aCvN6y52.js → lean-BjhQvHyr.js} +13 -8
- package/{lean-DiS9rUcn.d.ts → lean-D6DQfbqH.d.ts} +42 -7
- package/lean.d.ts +6 -6
- package/lean.js +15 -14
- package/{manifest-CCfpn0kC.js → manifest-BeViDIoy.js} +4 -3
- package/{manifest-mpivREn-.d.ts → manifest-l07K7nW-.d.ts} +4 -2
- package/message-layer.d.ts +2 -2
- package/message-layer.js +2 -2
- package/notify.d.ts +1 -1
- package/notify.js +1 -1
- package/{objects-DmUc0lha.js → objects-TarIKBL8.js} +1 -1
- package/{objects-DYq_YvaQ.d.ts → objects-q0lnCK-4.d.ts} +8 -3
- package/{operations-DnCcztkZ.js → operations-BAELnqwf.js} +133 -58
- package/package.json +5 -1
- package/peer-capability-B8eKbljR.js +151 -0
- package/peer.d.ts +180 -0
- package/peer.js +559 -0
- package/{readers-8WCimMop.d.ts → readers-AeB1bJ--.d.ts} +1 -1
- package/{readers-CsvlahLi.js → readers-BG8g59qS.js} +1 -1
- package/{request-pump-binary-oqjWFqZA.js → request-pump-binary-87klb6sX.js} +9 -4
- package/{router-BZ-aYeXA.js → router-DXmPA-qi.js} +4 -4
- package/{router-BQsO8aPV.d.ts → router-DXoJ_2Z4.d.ts} +2 -2
- package/session.d.ts +2 -2
- package/session.js +64 -16
- package/setup.d.ts +3 -2
- package/setup.js +14 -16
- package/sqlite.d.ts +2 -2
- package/sqlite.js +5 -5
- package/{store-DHlo6fP5.js → store-DzpyWjt2.js} +2 -2
- package/store-capability-CxQJ_Huz.js +187 -0
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-BcRQyyEw.js → user-capability-ClYd8Vln.js} +3 -4
- package/wasm.d.ts +13 -6
- package/wasm.js +47 -19
- package/encoding-RUuES_e4.js +0 -99
- package/store-capability-BrUUAwVS.js +0 -389
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
|
|
2
|
+
import { D as instant, Z as requireValue, it as text, o as invalidValue, t as HostError } from "./errors-VuwK669R.js";
|
|
3
|
+
import { n as ScriptError, xt as defineValueCapability } from "./operations-BAELnqwf.js";
|
|
4
|
+
import { n as toBase64 } from "./base64-CDO-a06R.js";
|
|
5
|
+
//#region src/standard-capability-checks.ts
|
|
6
|
+
const checks = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
const registerStandardChecks = (op, rules) => {
|
|
8
|
+
checks.set(op, rules);
|
|
9
|
+
};
|
|
10
|
+
const standardChecks = (op) => checks.get(op);
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/standard-capabilities.ts
|
|
13
|
+
/** The reserved Grant name every Script holds a Group's musical clock under. */
|
|
14
|
+
const MUSICAL_CLOCK = "musical-clock";
|
|
15
|
+
const costOf = (costs, name) => {
|
|
16
|
+
const cost = costs && Object.hasOwn(costs, name) ? costs[name] : void 0;
|
|
17
|
+
if (!cost || !Number.isSafeInteger(cost.fuel) || cost.fuel < 0 || cost.alloc !== void 0 && (!Number.isSafeInteger(cost.alloc) || cost.alloc < 0)) throw new HostError("invalid value", `Invalid or missing cost for ${name}`);
|
|
18
|
+
return Object.freeze({
|
|
19
|
+
fuel: cost.fuel,
|
|
20
|
+
...cost.alloc === void 0 ? {} : { alloc: cost.alloc }
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const fixed = (capability) => {
|
|
24
|
+
for (const op of capability.operations.values()) {
|
|
25
|
+
Object.freeze(op.args);
|
|
26
|
+
Object.freeze(op.errors);
|
|
27
|
+
Object.freeze(op);
|
|
28
|
+
}
|
|
29
|
+
return capability;
|
|
30
|
+
};
|
|
31
|
+
const instantShape = Object.freeze({
|
|
32
|
+
k: "kind",
|
|
33
|
+
kind: "instant"
|
|
34
|
+
});
|
|
35
|
+
const textShape = Object.freeze({
|
|
36
|
+
k: "kind",
|
|
37
|
+
kind: "text"
|
|
38
|
+
});
|
|
39
|
+
const valueShape = Object.freeze({ k: "value" });
|
|
40
|
+
const dataListShape = Object.freeze({
|
|
41
|
+
k: "list",
|
|
42
|
+
of: Object.freeze({ k: "any" })
|
|
43
|
+
});
|
|
44
|
+
/** The Pump's Clock reading; there is no Host clock implementation. */
|
|
45
|
+
const clockCapability = (costs) => fixed(defineValueCapability("clock", { now: {
|
|
46
|
+
mode: "immediate",
|
|
47
|
+
args: [],
|
|
48
|
+
result: instantShape,
|
|
49
|
+
errors: [],
|
|
50
|
+
cost: costOf(costs, "now"),
|
|
51
|
+
do: (call) => instant(call.now)
|
|
52
|
+
} }));
|
|
53
|
+
/** The Host owns durable timers, scoped by Script and name. */
|
|
54
|
+
const timerCapability = (impl, costs) => {
|
|
55
|
+
if (!impl || typeof impl.schedule !== "function" || typeof impl.cancel !== "function") throw new HostError("invalid value", "Timer needs Schedule and Cancel");
|
|
56
|
+
return fixed(defineValueCapability("timer", {
|
|
57
|
+
schedule: {
|
|
58
|
+
mode: "fire-and-forget",
|
|
59
|
+
args: [
|
|
60
|
+
textShape,
|
|
61
|
+
instantShape,
|
|
62
|
+
textShape,
|
|
63
|
+
dataListShape
|
|
64
|
+
],
|
|
65
|
+
errors: [],
|
|
66
|
+
cost: costOf(costs, "schedule"),
|
|
67
|
+
fire: (call, name, at, message, args) => impl.schedule(call, name.asText(), at, message.asText(), args)
|
|
68
|
+
},
|
|
69
|
+
cancel: {
|
|
70
|
+
mode: "fire-and-forget",
|
|
71
|
+
args: [textShape],
|
|
72
|
+
errors: [],
|
|
73
|
+
cost: costOf(costs, "cancel"),
|
|
74
|
+
fire: (call, name) => impl.cancel(call, name.asText())
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
const musicalShape = Object.freeze({
|
|
79
|
+
k: "oneOf",
|
|
80
|
+
of: Object.freeze([Object.freeze({
|
|
81
|
+
k: "unitKind",
|
|
82
|
+
kind: "bar"
|
|
83
|
+
}), Object.freeze({
|
|
84
|
+
k: "unitKind",
|
|
85
|
+
kind: "beat"
|
|
86
|
+
})])
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* The musical clock a Group's `musicalClock` option takes (chapter 9): one
|
|
90
|
+
* suspending `wait`, with no `maxPending`, that Scripts call through a plain
|
|
91
|
+
* `wait` in a Musical Unit. Only the Core makes it, since `wait` can't name
|
|
92
|
+
* a Host's Operation.
|
|
93
|
+
*/
|
|
94
|
+
const musicalClockCapability = (impl, costs, release) => {
|
|
95
|
+
if (!impl || typeof impl.wait !== "function") throw new HostError("invalid value", "A musical clock needs Wait");
|
|
96
|
+
return fixed(defineValueCapability(MUSICAL_CLOCK, { wait: {
|
|
97
|
+
mode: "suspending",
|
|
98
|
+
args: [musicalShape],
|
|
99
|
+
result: Object.freeze({
|
|
100
|
+
k: "kind",
|
|
101
|
+
kind: "nothing"
|
|
102
|
+
}),
|
|
103
|
+
cost: costOf(costs, "wait"),
|
|
104
|
+
start: (call, count) => impl.wait(call, count)
|
|
105
|
+
} }, void 0, release, MUSICAL_CLOCK));
|
|
106
|
+
};
|
|
107
|
+
/** Whether a Capability is one `musicalClockCapability` made. */
|
|
108
|
+
const isMusicalClock = (c) => {
|
|
109
|
+
const op = c.operations.get("wait");
|
|
110
|
+
return c.name === "musical-clock" && c.operations.size === 1 && op?.mode === "suspending" && op.maxPendingMs === void 0;
|
|
111
|
+
};
|
|
112
|
+
/** The Host shows Values in text form and answers read with a line of text. */
|
|
113
|
+
const consoleCapability = (impl, costs) => {
|
|
114
|
+
if (!impl || typeof impl.write !== "function" || typeof impl.read !== "function") throw new HostError("invalid value", "Console needs Write and Read");
|
|
115
|
+
return fixed(defineValueCapability("console", {
|
|
116
|
+
write: {
|
|
117
|
+
mode: "fire-and-forget",
|
|
118
|
+
args: [valueShape],
|
|
119
|
+
errors: [],
|
|
120
|
+
cost: costOf(costs, "write"),
|
|
121
|
+
fire: (call, value) => impl.write(call, value)
|
|
122
|
+
},
|
|
123
|
+
read: {
|
|
124
|
+
mode: "suspending",
|
|
125
|
+
args: [],
|
|
126
|
+
result: textShape,
|
|
127
|
+
errors: [],
|
|
128
|
+
maxPendingMs: 2147483647,
|
|
129
|
+
cost: costOf(costs, "read"),
|
|
130
|
+
start: (call) => impl.read(call)
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
134
|
+
const civilShape = Object.freeze({
|
|
135
|
+
k: "kind",
|
|
136
|
+
kind: "civil date"
|
|
137
|
+
});
|
|
138
|
+
const optionalTextShape = Object.freeze({
|
|
139
|
+
k: "optional",
|
|
140
|
+
of: textShape
|
|
141
|
+
});
|
|
142
|
+
const secondsShape = Object.freeze({
|
|
143
|
+
k: "quantity",
|
|
144
|
+
unit: "s"
|
|
145
|
+
});
|
|
146
|
+
const disambiguations = /* @__PURE__ */ new Set([
|
|
147
|
+
"compatible",
|
|
148
|
+
"earlier",
|
|
149
|
+
"later",
|
|
150
|
+
"reject"
|
|
151
|
+
]);
|
|
152
|
+
const zoneText = (value) => value?.asText();
|
|
153
|
+
const calendarError = (code, data) => data.get("zone").kind === "text" && (code === "unknown zone" || code === "ambiguous time" && data.get("civil").kind === "civil date");
|
|
154
|
+
const checkToInstant = (args) => {
|
|
155
|
+
const civil = args[0];
|
|
156
|
+
const disambiguation = zoneText(args[1]);
|
|
157
|
+
const bad = !("hour" in civil.asCivilDate()) ? civil : args.length === 3 && disambiguation !== void 0 && !disambiguations.has(disambiguation) ? args[1] : void 0;
|
|
158
|
+
if (bad) throw new ScriptError("out of domain", [["function", text("toInstant")], ["value", bad]], true);
|
|
159
|
+
};
|
|
160
|
+
/** The Host owns zone data; the Grant binding supplies its default zone. */
|
|
161
|
+
const calendarCapability = (impl, costs) => {
|
|
162
|
+
for (const name of [
|
|
163
|
+
"today",
|
|
164
|
+
"now",
|
|
165
|
+
"toCivil",
|
|
166
|
+
"toInstant",
|
|
167
|
+
"offset",
|
|
168
|
+
"zone"
|
|
169
|
+
]) if (!impl || typeof impl[name] !== "function") throw new HostError("invalid value", `Calendar needs ${name}`);
|
|
170
|
+
const unknownZone = [{
|
|
171
|
+
code: "unknown zone",
|
|
172
|
+
fields: { zone: textShape }
|
|
173
|
+
}];
|
|
174
|
+
const operations = {
|
|
175
|
+
today: {
|
|
176
|
+
mode: "immediate",
|
|
177
|
+
args: [optionalTextShape],
|
|
178
|
+
result: civilShape,
|
|
179
|
+
errors: unknownZone,
|
|
180
|
+
cost: costOf(costs, "today"),
|
|
181
|
+
do: (call, zone) => impl.today(call, zoneText(zone))
|
|
182
|
+
},
|
|
183
|
+
now: {
|
|
184
|
+
mode: "immediate",
|
|
185
|
+
args: [optionalTextShape],
|
|
186
|
+
result: civilShape,
|
|
187
|
+
errors: unknownZone,
|
|
188
|
+
cost: costOf(costs, "now"),
|
|
189
|
+
do: (call, zone) => impl.now(call, zoneText(zone))
|
|
190
|
+
},
|
|
191
|
+
toCivil: {
|
|
192
|
+
mode: "immediate",
|
|
193
|
+
args: [instantShape, optionalTextShape],
|
|
194
|
+
result: civilShape,
|
|
195
|
+
errors: unknownZone,
|
|
196
|
+
cost: costOf(costs, "toCivil"),
|
|
197
|
+
do: (call, value, zone) => impl.toCivil(call, value, zoneText(zone))
|
|
198
|
+
},
|
|
199
|
+
toInstant: {
|
|
200
|
+
mode: "immediate",
|
|
201
|
+
args: [
|
|
202
|
+
civilShape,
|
|
203
|
+
optionalTextShape,
|
|
204
|
+
optionalTextShape
|
|
205
|
+
],
|
|
206
|
+
result: instantShape,
|
|
207
|
+
errors: [...unknownZone, {
|
|
208
|
+
code: "ambiguous time",
|
|
209
|
+
fields: {
|
|
210
|
+
civil: civilShape,
|
|
211
|
+
zone: textShape
|
|
212
|
+
}
|
|
213
|
+
}],
|
|
214
|
+
cost: costOf(costs, "toInstant"),
|
|
215
|
+
do: (call, ...args) => {
|
|
216
|
+
const second = zoneText(args[1]);
|
|
217
|
+
const isZone = args.length === 2 && second !== void 0 && !disambiguations.has(second);
|
|
218
|
+
return impl.toInstant(call, args[0], isZone ? "compatible" : second ?? "compatible", isZone ? second : zoneText(args[2]));
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
offset: {
|
|
222
|
+
mode: "immediate",
|
|
223
|
+
args: [instantShape, optionalTextShape],
|
|
224
|
+
result: secondsShape,
|
|
225
|
+
errors: unknownZone,
|
|
226
|
+
cost: costOf(costs, "offset"),
|
|
227
|
+
do: (call, value, zone) => impl.offset(call, value, zoneText(zone))
|
|
228
|
+
},
|
|
229
|
+
zone: {
|
|
230
|
+
mode: "immediate",
|
|
231
|
+
args: [optionalTextShape],
|
|
232
|
+
result: textShape,
|
|
233
|
+
errors: unknownZone,
|
|
234
|
+
cost: costOf(costs, "zone"),
|
|
235
|
+
do: (call, zone) => impl.zone(call, zoneText(zone))
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
for (const [name, op] of Object.entries(operations)) registerStandardChecks(op, {
|
|
239
|
+
error: calendarError,
|
|
240
|
+
...name === "toInstant" ? { arguments: checkToInstant } : {},
|
|
241
|
+
...[
|
|
242
|
+
"today",
|
|
243
|
+
"now",
|
|
244
|
+
"toCivil"
|
|
245
|
+
].includes(name) ? { result: (value) => !("hour" in value.asCivilDate()) === (name === "today") } : {}
|
|
246
|
+
});
|
|
247
|
+
return fixed(defineValueCapability("calendar", operations));
|
|
248
|
+
};
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/encoding.ts
|
|
251
|
+
/** The spec's JSON string form: every U+0000..U+001F uses lowercase \u00xx. */
|
|
252
|
+
const quoteJSON = (s) => "\"" + s.replaceAll(/[\u0000-\u001f"\\]/g, (ch) => ch === "\"" ? String.raw`\"` : ch === "\\" ? "\\\\" : String.raw`\u${ch.charCodeAt(0).toString(16).padStart(4, "0")}`) + "\"";
|
|
253
|
+
const encodeValue = (value, adapter) => {
|
|
254
|
+
requireValue(value);
|
|
255
|
+
const pending = [value];
|
|
256
|
+
const output = [];
|
|
257
|
+
while (pending.length) {
|
|
258
|
+
const next = pending.pop();
|
|
259
|
+
if (typeof next === "string") {
|
|
260
|
+
output.push(next);
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
switch (next.kind) {
|
|
264
|
+
case "nothing":
|
|
265
|
+
output.push("null");
|
|
266
|
+
break;
|
|
267
|
+
case "boolean":
|
|
268
|
+
output.push(next.asBool() ? "true" : "false");
|
|
269
|
+
break;
|
|
270
|
+
case "text":
|
|
271
|
+
output.push(quoteJSON(next.asText()));
|
|
272
|
+
break;
|
|
273
|
+
case "number": {
|
|
274
|
+
const canonical = next.asDecimal().toString();
|
|
275
|
+
output.push(!canonical.includes(".") && BigInt(canonical) > -(2n ** 53n) && BigInt(canonical) < 2n ** 53n ? canonical : `{"$dec":${quoteJSON(canonical)}}`);
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case "instant":
|
|
279
|
+
output.push(`{"$instant":${quoteJSON(next.toString())}}`);
|
|
280
|
+
break;
|
|
281
|
+
case "civil date":
|
|
282
|
+
output.push(`{"$date":${quoteJSON(next.toString())}}`);
|
|
283
|
+
break;
|
|
284
|
+
case "object": {
|
|
285
|
+
const o = next.asObjectRef();
|
|
286
|
+
output.push(`{"$object":[${quoteJSON(o.kind)},${quoteJSON(o.id)}]}`);
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
case "bytes":
|
|
290
|
+
output.push(`{"$bytes":${quoteJSON(toBase64(next.bytesView()))}}`);
|
|
291
|
+
break;
|
|
292
|
+
case "quantity": {
|
|
293
|
+
const q = next.asQuantity();
|
|
294
|
+
output.push(`{"$quantity":[${quoteJSON(q.number.toString())},${quoteJSON(q.unit)}]}`);
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
case "range": {
|
|
298
|
+
const { from, to } = next.asRange();
|
|
299
|
+
output.push("{\"$range\":[");
|
|
300
|
+
pending.push("]}", to, ",", from);
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
case "list":
|
|
304
|
+
output.push("[");
|
|
305
|
+
pending.push("]");
|
|
306
|
+
for (let i = next.length; i >= 1; i--) {
|
|
307
|
+
if (i < next.length) pending.push(",");
|
|
308
|
+
pending.push(next.index(i));
|
|
309
|
+
}
|
|
310
|
+
break;
|
|
311
|
+
case "map": {
|
|
312
|
+
const entries = next.entries();
|
|
313
|
+
const tagged = entries.some(([k]) => k.startsWith("$"));
|
|
314
|
+
output.push(tagged ? "{\"$map\":[" : "{");
|
|
315
|
+
pending.push(tagged ? "]}" : "}");
|
|
316
|
+
for (let i = entries.length - 1; i >= 0; i--) {
|
|
317
|
+
const [k, v] = entries[i];
|
|
318
|
+
if (i < entries.length - 1) pending.push(",");
|
|
319
|
+
if (tagged) pending.push("]", v, `[${quoteJSON(k)},`);
|
|
320
|
+
else pending.push(v, `${quoteJSON(k)}:`);
|
|
321
|
+
}
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
case "function":
|
|
325
|
+
case "pattern":
|
|
326
|
+
if (adapter) {
|
|
327
|
+
output.push(adapter(next));
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
invalidValue(`The Value Encoding of a ${next.kind} isn't implemented yet`);
|
|
331
|
+
break;
|
|
332
|
+
default: invalidValue(`The Value Encoding of a ${next.kind} isn't implemented yet`);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return output.join("");
|
|
336
|
+
};
|
|
337
|
+
//#endregion
|
|
338
|
+
export { clockCapability as a, fixed as c, timerCapability as d, registerStandardChecks as f, calendarCapability as i, isMusicalClock as l, quoteJSON as n, consoleCapability as o, standardChecks as p, MUSICAL_CLOCK as r, costOf as s, encodeValue as t, musicalClockCapability as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Dt as EffectResult, J as Value, Mt as GrantContext, Ut as SegmentContext, bt as Call,
|
|
3
|
-
import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-
|
|
2
|
+
import { Dt as EffectResult, J as Value, Mt as GrantContext, Ut as SegmentContext, bt as Call, mn as StoreImpl } from "./debug-s6QIovKS.js";
|
|
3
|
+
import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-DXoJ_2Z4.js";
|
|
4
4
|
//#region src/store/engine.d.ts
|
|
5
5
|
/** A Store's limits, each counted by logical size (chapter 8). */
|
|
6
6
|
type StoreQuotas = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as decodeValueMembers } from "./readers-
|
|
5
|
-
import { n as quoteJSON, t as encodeValue } from "./encoding-
|
|
6
|
-
import { n as hostScriptError, t as add } from "./store-capability-
|
|
7
|
-
import { n as createRouter, t as changed } from "./router-
|
|
2
|
+
import { P as listValues, V as nothing, b as dec, it as text, o as invalidValue } from "./errors-VuwK669R.js";
|
|
3
|
+
import { Q as sizeOf, ut as compareText } from "./operations-BAELnqwf.js";
|
|
4
|
+
import { i as decodeValueMembers } from "./readers-BG8g59qS.js";
|
|
5
|
+
import { n as quoteJSON, t as encodeValue } from "./encoding-B7MCQ4ii.js";
|
|
6
|
+
import { n as hostScriptError, t as add } from "./store-capability-CxQJ_Huz.js";
|
|
7
|
+
import { n as createRouter, t as changed } from "./router-DXmPA-qi.js";
|
|
8
8
|
//#region src/store/engine.ts
|
|
9
9
|
/** The Session Store's quotas (chapter 12, The Session Store). */
|
|
10
10
|
const sessionQuotas = Object.freeze({
|