@northtalk/ts 0.9.0 → 0.10.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-B93hEK7l.d.ts → binary-value-B8W4W_e1.d.ts} +1 -1
- package/{checker-D74oYIhs.js → checker-hkWO1UbN.js} +1 -1
- package/{core-BBPI6EhG.d.ts → core-Dwec7SRy.d.ts} +1 -1
- package/{debug-s6QIovKS.d.ts → debug-2yfUZYzF.d.ts} +7 -0
- package/debug.d.ts +1 -1
- package/{driver-D5yrK3Nu.d.ts → driver-CT-ksM-N.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/{encoding-DzVFpg7k.js → encoding-DlMqlP2Y.js} +1 -1
- package/{engine-Bx8B63iQ.js → engine-CxcONfhv.js} +4 -4
- package/{engine-Dy-BCoiw.d.ts → engine-DP_lqWfI.d.ts} +2 -2
- package/{group-CY4FKhzT.js → group--dcl0em8.js} +80 -21
- package/{http-fetch-DnpfiOWK.js → http-fetch-CLAeEXVi.js} +1 -1
- package/http.d.ts +1 -1
- package/http.js +2 -2
- package/index.d.ts +4 -4
- package/index.js +11 -11
- package/{lean-DTCTJUmR.js → lean-BtbKWkXA.js} +8 -8
- package/{lean-Bg_UTRj0.d.ts → lean-DU_muGpT.d.ts} +2 -2
- package/lean.d.ts +4 -4
- package/lean.js +11 -11
- package/{manifest-DVS1SEmN.js → manifest-CRpUahPt.js} +2 -2
- package/message-layer.d.ts +2 -2
- package/message-layer.js +1 -1
- package/notify.d.ts +1 -1
- package/notify.js +1 -1
- package/{objects-q0lnCK-4.d.ts → objects-DoyEohtr.d.ts} +1 -1
- package/{operations-B3XaG7Ve.js → operations-DrsedOvj.js} +3 -3
- package/package.json +1 -1
- package/{peer-capability-3etyPHs3.js → peer-capability-RMdN4OHj.js} +2 -2
- package/peer.d.ts +1 -1
- package/peer.js +2 -2
- package/{readers-AeB1bJ--.d.ts → readers-IhVpgXkj.d.ts} +1 -1
- package/{request-pump-binary-VOPVqRZD.js → request-pump-binary-P8m6kLfB.js} +229 -51
- package/{router-DXoJ_2Z4.d.ts → router-2vjYbqx3.d.ts} +2 -2
- package/{router-Bdm4KiMG.js → router-C_Fjc2as.js} +4 -4
- package/session.d.ts +2 -2
- package/session.js +17 -16
- package/setup.d.ts +2 -2
- package/setup.js +3 -3
- package/sha256-C5Lqj5U7.js +197 -0
- package/sqlite.d.ts +2 -2
- package/sqlite.js +3 -3
- package/{store-BTcyKBLg.js → store-_af2DPoK.js} +2 -2
- package/{store-capability-CBJ6mUoH.js → store-capability-Db6v_dw9.js} +2 -2
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-DNY2dyjq.js → user-capability-CzoLN3RK.js} +2 -2
- package/wasm.d.ts +4 -4
- package/wasm.js +84 -44
- package/{zone-rules-DsCJtmlC.js → zone-rules-Cn-f9u_Z.js} +3 -3
- package/sha256-9CGf5BS_.js +0 -168
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { I as literalDigits, _n as unitKinds, _t as unitText, ft as parseUnit, gn as libraryExports, gt as unitEntry, hn as grammar, mn as diagnosticCodes, pn as builtins, sn as normalizeNFC, st as UnitError, vn as units } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { Mt as Lexer, Nt as RESERVED, Pt as runTask, _t as acceptsArgumentCount } from "./operations-
|
|
3
|
+
import { Mt as Lexer, Nt as RESERVED, Pt as runTask, _t as acceptsArgumentCount } from "./operations-DrsedOvj.js";
|
|
4
4
|
//#region src/constructs.ts
|
|
5
5
|
/** Chapter 3's kind names. */
|
|
6
6
|
const kindNames = /* @__PURE__ */ new Set([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { B as restore, Bn as compileLibrary, en as Core, vt as defineObjectKind, z as newGroup } from "./debug-
|
|
2
|
+
import { B as restore, Bn as compileLibrary, en as Core, vt as defineObjectKind, z as newGroup } from "./debug-2yfUZYzF.js";
|
|
3
3
|
//#region src/save-format.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A save's State Fingerprint (ADR 0142), read from its header and frames
|
|
@@ -801,6 +801,13 @@ declare class HostError extends Error {
|
|
|
801
801
|
type LoadDiagnostic = {
|
|
802
802
|
code: string;
|
|
803
803
|
col: number;
|
|
804
|
+
/**
|
|
805
|
+
* The end of its range, exclusive, in the same unit and units as `line` and
|
|
806
|
+
* `col`: the end of the token there, or `line`/`col` for an empty range
|
|
807
|
+
* (chapter 2, Syntax errors).
|
|
808
|
+
*/
|
|
809
|
+
endCol: number;
|
|
810
|
+
endLine: number;
|
|
804
811
|
line: number;
|
|
805
812
|
message: string;
|
|
806
813
|
unit: string;
|
package/debug.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { a as DebugPause, c as RepeatedEffect, ct as sourceForm, et as isReadable, i as DebugInstruction, n as DebugEvaluation, o as DebugSnapshot, r as DebugFrame, s as DebugSource, t as DebugController } from "./debug-
|
|
2
|
+
import { a as DebugPause, c as RepeatedEffect, ct as sourceForm, et as isReadable, i as DebugInstruction, n as DebugEvaluation, o as DebugSnapshot, r as DebugFrame, s as DebugSource, t as DebugController } from "./debug-2yfUZYzF.js";
|
|
3
3
|
export { type DebugController, type DebugEvaluation, type DebugFrame, type DebugInstruction, type DebugPause, type DebugSnapshot, type DebugSource, type RepeatedEffect, isReadable, sourceForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { b as PumpOptions, h as GroupOptions, tn as Group, x as PumpResult } from "./debug-
|
|
2
|
+
import { b as PumpOptions, h as GroupOptions, tn as Group, x as PumpResult } from "./debug-2yfUZYzF.js";
|
|
3
3
|
//#region src/operation-promises.d.ts
|
|
4
4
|
/** A suspending call whose Host `run` Promise has not settled. */
|
|
5
5
|
type PendingOperation = {
|
package/driver.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { a as autoDrive, i as asyncDispose, n as Drive, o as newDrivenGroup, r as DrivenGroupOptions, s as PendingOperation, t as AutoDriveOptions } from "./driver-
|
|
2
|
+
import { a as autoDrive, i as asyncDispose, n as Drive, o as newDrivenGroup, r as DrivenGroupOptions, s as PendingOperation, t as AutoDriveOptions } from "./driver-CT-ksM-N.js";
|
|
3
3
|
export { AutoDriveOptions, Drive, DrivenGroupOptions, type PendingOperation, asyncDispose, autoDrive, newDrivenGroup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { D as instant, Z as requireValue, it as text, o as invalidValue, t as HostError } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { n as ScriptError, xt as defineValueCapability } from "./operations-
|
|
3
|
+
import { n as ScriptError, xt as defineValueCapability } from "./operations-DrsedOvj.js";
|
|
4
4
|
import { n as toBase64 } from "./base64-CDO-a06R.js";
|
|
5
5
|
//#region src/standard-capability-checks.ts
|
|
6
6
|
const checks = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import { P as listValues, V as nothing, b as dec, it as text, o as invalidValue } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { Q as sizeOf, ut as compareText } from "./operations-
|
|
3
|
+
import { Q as sizeOf, ut as compareText } from "./operations-DrsedOvj.js";
|
|
4
4
|
import { i as decodeValueMembers } from "./readers-G1lHqrPl.js";
|
|
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-
|
|
5
|
+
import { n as quoteJSON, t as encodeValue } from "./encoding-DlMqlP2Y.js";
|
|
6
|
+
import { n as hostScriptError, t as add } from "./store-capability-Db6v_dw9.js";
|
|
7
|
+
import { n as createRouter, t as changed } from "./router-C_Fjc2as.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({
|
|
@@ -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, mn as StoreImpl } from "./debug-
|
|
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-2yfUZYzF.js";
|
|
3
|
+
import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-2vjYbqx3.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,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
import { $ as smallCoefficient, Dt as integerOf, H as num, Ht as civilFromFields, J as range, Jt as isInstant, K as quantity, L as map, O as instantOf$1, Ot as isInteger, P as listValues, R as mapLayout, S as displayText, T as functionsBelongTo, V as nothing, X as requireArgs, Z as requireValue, _ as civilOf, a as hostDetail, b as dec, d as bytes, f as bytesOf, ft as parseUnit, gn as libraryExports, h as canonicalNumber, hn as grammar, i as ScriptError, it as text, l as Value, mn as diagnosticCodes, n as LoadError, pn as builtins, q as quantityOf, qt as formatInstant, r as MailboxFull, s as sendFailed, t as HostError, tt as smallExponent, u as bool, w as functionValue, x as decimalParts, z as mapOfLayout } from "./errors-CNc-xY_9.js";
|
|
3
3
|
import { a as rebindObject, i as propertyChecks, n as makeObject, o as stateOf$1, r as objectKind } from "./objects-OKVLH190.js";
|
|
4
|
-
import { $ as arityOf, A as musicalCount, At as validMessageSelector, B as splice, C as isKind, D as matchCaptures, E as makeRange, F as randomBound, G as cacheBuild, H as textForm, I as search, J as keysContents, K as charge, L as setKey, M as outOfRange, N as prepareConversion, O as matchesOf, Ot as shapeDiagnostics, P as property, Pt as runTask, Q as sizeOf, R as smallArithmetic, S as isEmpty, St as diagnosticRecord, T as makePatternValue, Tt as mismatch, U as waitUs, V as subjectText, W as wrongKind, X as rateOf, Y as partSize, Z as resetMeasured, _ as deleteKey, _t as acceptsArgumentCount, a as builtin, at as numberText, b as hasKey, c as canConvert, ct as splicesOf, d as chunkSet, dt as costModel, f as chunkThere, ft as errorMessages, g as decodeUtf8, h as convert, ht as reservedErrorKeys, i as arithmetic, it as capturesOf, j as negated, k as member, kt as validComputedMessageName, l as chunkDelete, lt as textDisplay, m as concat, mt as limitDefaults, n as ScriptError$1, nt as instructionSpec, o as builtinDefaults, ot as patternSource, p as comparison, pt as languageVersion, q as fixedRates, r as appendTo, rt as opcodes, s as byteOf, st as quantityText, t as NotImplementedError, tt as functionHead, u as chunkGet, ut as compareText, v as equals, w as keyText, x as integerValue, y as getKey, yt as decodeShape, z as smallCoefficientOf } from "./operations-
|
|
5
|
-
import { _ as viewSource, d as operationUses, g as checkDecisionCalls, n as checkSourceForLoad, t as checkSource, u as checkEffectCall } from "./checker-
|
|
6
|
-
import { a as operationsOf, c as CallMeter, r as grantData, s as invoke, t as canonicalJSON } from "./manifest-
|
|
4
|
+
import { $ as arityOf, A as musicalCount, At as validMessageSelector, B as splice, C as isKind, D as matchCaptures, E as makeRange, F as randomBound, G as cacheBuild, H as textForm, I as search, J as keysContents, K as charge, L as setKey, M as outOfRange, Mt as Lexer, N as prepareConversion, O as matchesOf, Ot as shapeDiagnostics, P as property, Pt as runTask, Q as sizeOf, R as smallArithmetic, S as isEmpty, St as diagnosticRecord, T as makePatternValue, Tt as mismatch, U as waitUs, V as subjectText, W as wrongKind, X as rateOf, Y as partSize, Z as resetMeasured, _ as deleteKey, _t as acceptsArgumentCount, a as builtin, at as numberText, b as hasKey, c as canConvert, ct as splicesOf, d as chunkSet, dt as costModel, f as chunkThere, ft as errorMessages, g as decodeUtf8, h as convert, ht as reservedErrorKeys, i as arithmetic, it as capturesOf, j as negated, k as member, kt as validComputedMessageName, l as chunkDelete, lt as textDisplay, m as concat, mt as limitDefaults, n as ScriptError$1, nt as instructionSpec, o as builtinDefaults, ot as patternSource, p as comparison, pt as languageVersion, q as fixedRates, r as appendTo, rt as opcodes, s as byteOf, st as quantityText, t as NotImplementedError, tt as functionHead, u as chunkGet, ut as compareText, v as equals, w as keyText, x as integerValue, y as getKey, yt as decodeShape, z as smallCoefficientOf } from "./operations-DrsedOvj.js";
|
|
5
|
+
import { _ as viewSource, d as operationUses, g as checkDecisionCalls, n as checkSourceForLoad, t as checkSource, u as checkEffectCall } from "./checker-hkWO1UbN.js";
|
|
6
|
+
import { a as operationsOf, c as CallMeter, r as grantData, s as invoke, t as canonicalJSON } from "./manifest-CRpUahPt.js";
|
|
7
7
|
import { n as trackOperation } from "./operation-promises-ClA1BTaS.js";
|
|
8
8
|
import { c as readDisplay } from "./readers-G1lHqrPl.js";
|
|
9
|
-
import { l as isMusicalClock, p as standardChecks, r as MUSICAL_CLOCK } from "./encoding-
|
|
10
|
-
import { r as PEER_POST, t as PEER_CALL } from "./peer-capability-
|
|
11
|
-
import { n as sha256, r as sha256Bytes, t as Sha256 } from "./sha256-
|
|
9
|
+
import { l as isMusicalClock, p as standardChecks, r as MUSICAL_CLOCK } from "./encoding-DlMqlP2Y.js";
|
|
10
|
+
import { r as PEER_POST, t as PEER_CALL } from "./peer-capability-RMdN4OHj.js";
|
|
11
|
+
import { n as sha256, r as sha256Bytes, t as Sha256 } from "./sha256-C5Lqj5U7.js";
|
|
12
12
|
//#region src/stdlib-registry.ts
|
|
13
13
|
/** The seven stdlib Library names, which a Host may not register. */
|
|
14
14
|
const stdlibNames = new Set(libraryExports.map((entry) => entry.library));
|
|
@@ -7170,7 +7170,46 @@ const identityOf = (l) => compiled.get(l).hex;
|
|
|
7170
7170
|
const codeOf = (l) => compiled.get(l).code;
|
|
7171
7171
|
/** The code of the Libraries a unit imports, by name, to link it to. */
|
|
7172
7172
|
const linksOf = (imports) => new Map(imports.map((l) => [l.name, codeOf(l)]));
|
|
7173
|
-
|
|
7173
|
+
/**
|
|
7174
|
+
* Where a unit's diagnostic ranges end (chapter 2, Syntax errors): at the end
|
|
7175
|
+
* of the token a diagnostic is reported at, in lines and scalar columns. A
|
|
7176
|
+
* line end and the end of the source give an empty range, and so does a
|
|
7177
|
+
* position no token of `tree` starts at.
|
|
7178
|
+
*/
|
|
7179
|
+
const rangesOf = (source, tree = null) => {
|
|
7180
|
+
let lexer;
|
|
7181
|
+
let starts;
|
|
7182
|
+
const of = (span) => {
|
|
7183
|
+
if (span.end <= span.start || /^[\n\r]+$/u.test(source.slice(span.start, span.end))) return {
|
|
7184
|
+
endLine: span.line,
|
|
7185
|
+
endCol: span.col
|
|
7186
|
+
};
|
|
7187
|
+
lexer ??= new Lexer(source);
|
|
7188
|
+
const end = lexer.where(span.end);
|
|
7189
|
+
return {
|
|
7190
|
+
endLine: end.line,
|
|
7191
|
+
endCol: end.col
|
|
7192
|
+
};
|
|
7193
|
+
};
|
|
7194
|
+
const at = (line, col) => {
|
|
7195
|
+
if (!starts) {
|
|
7196
|
+
starts = /* @__PURE__ */ new Map();
|
|
7197
|
+
const work = tree ? [tree.root] : [];
|
|
7198
|
+
while (work.length) for (const child of work.pop().children) if (child.kind === "node") work.push(child);
|
|
7199
|
+
else if (child.span.end > child.span.start) starts.set(`${child.span.line}:${child.span.col}`, child.span);
|
|
7200
|
+
}
|
|
7201
|
+
const span = starts.get(`${line}:${col}`);
|
|
7202
|
+
return span ? of(span) : {
|
|
7203
|
+
endLine: line,
|
|
7204
|
+
endCol: col
|
|
7205
|
+
};
|
|
7206
|
+
};
|
|
7207
|
+
return {
|
|
7208
|
+
at,
|
|
7209
|
+
of
|
|
7210
|
+
};
|
|
7211
|
+
};
|
|
7212
|
+
const diagnosticsOf = (checked, unit, ranges) => {
|
|
7174
7213
|
if (checked.error) {
|
|
7175
7214
|
const { code, tok, message } = checked.error;
|
|
7176
7215
|
return [{
|
|
@@ -7178,7 +7217,13 @@ const diagnosticsOf = (checked, unit) => {
|
|
|
7178
7217
|
message,
|
|
7179
7218
|
unit,
|
|
7180
7219
|
line: tok.line,
|
|
7181
|
-
col: tok.col
|
|
7220
|
+
col: tok.col,
|
|
7221
|
+
...ranges.of({
|
|
7222
|
+
start: tok.pos,
|
|
7223
|
+
end: tok.end,
|
|
7224
|
+
line: tok.line,
|
|
7225
|
+
col: tok.col
|
|
7226
|
+
})
|
|
7182
7227
|
}];
|
|
7183
7228
|
}
|
|
7184
7229
|
if (!checked.ok) return checked.diagnostics.map((d) => ({
|
|
@@ -7186,12 +7231,13 @@ const diagnosticsOf = (checked, unit) => {
|
|
|
7186
7231
|
message: d.message,
|
|
7187
7232
|
unit,
|
|
7188
7233
|
line: d.span.line,
|
|
7189
|
-
col: d.span.col
|
|
7234
|
+
col: d.span.col,
|
|
7235
|
+
...ranges.of(d.span)
|
|
7190
7236
|
}));
|
|
7191
7237
|
return null;
|
|
7192
7238
|
};
|
|
7193
7239
|
/** Check a Library's original call sites in the importing Script's context. */
|
|
7194
|
-
const checkLibraryNeeds = (name, root, available, grants) => {
|
|
7240
|
+
const checkLibraryNeeds = (name, root, available, grants, ranges) => {
|
|
7195
7241
|
const diagnostics = [];
|
|
7196
7242
|
const uses = new Map(viewSource(root, (declaration) => declaration.rule === "Use").flatMap((d) => d.k === "use" ? [[d.imports[0].local.span.line, d.library]] : []));
|
|
7197
7243
|
const work = [root];
|
|
@@ -7205,6 +7251,7 @@ const checkLibraryNeeds = (name, root, available, grants) => {
|
|
|
7205
7251
|
const library = available.get(uses.get(use.span.line) ?? "");
|
|
7206
7252
|
if (!library) continue;
|
|
7207
7253
|
const missing = /* @__PURE__ */ new Set();
|
|
7254
|
+
const end = ranges.at(use.span.line, use.span.col);
|
|
7208
7255
|
for (const site of compiled.get(library).sites) {
|
|
7209
7256
|
const reference = `${site.capability}.${site.operation}`;
|
|
7210
7257
|
const report = (code) => diagnostics.push({
|
|
@@ -7212,6 +7259,7 @@ const checkLibraryNeeds = (name, root, available, grants) => {
|
|
|
7212
7259
|
unit: name,
|
|
7213
7260
|
line: use.span.line,
|
|
7214
7261
|
col: use.span.col,
|
|
7262
|
+
...end,
|
|
7215
7263
|
message: `${code}: ${reference} at ${site.unit}:${site.node.span.line}:${site.node.span.col}`
|
|
7216
7264
|
});
|
|
7217
7265
|
const operations = Object.hasOwn(grants, site.capability) ? grants[site.capability] : void 0;
|
|
@@ -7240,18 +7288,20 @@ const prepare = (unit, name, source, available, objects, grants, existing, prope
|
|
|
7240
7288
|
libraries: Object.fromEntries([...available.values()].map((l) => [l.name, compiled.get(l).exports])),
|
|
7241
7289
|
stdlib: registeredStdlib
|
|
7242
7290
|
});
|
|
7243
|
-
const
|
|
7244
|
-
|
|
7291
|
+
const ranges = rangesOf(source, checked.tree);
|
|
7292
|
+
const diagnostics = diagnosticsOf(checked, name, ranges) ?? [];
|
|
7293
|
+
if (unit === "script" && grants && checked.tree) diagnostics.push(...checkLibraryNeeds(name, checked.tree.root, available, grants, ranges));
|
|
7245
7294
|
const imports = (checked.tree ? importsOf(checked.tree) : []).flatMap((n) => available.get(n) ?? (registeredStdlib.has(n) ? [stdlibLibrary(n)] : []));
|
|
7246
7295
|
return {
|
|
7247
7296
|
checked,
|
|
7248
7297
|
diagnostics: diagnostics.length ? diagnostics.sort((a, b) => a.line - b.line || a.col - b.col || diagnosticCodes.indexOf(a.code) - diagnosticCodes.indexOf(b.code)) : null,
|
|
7249
7298
|
imports,
|
|
7250
|
-
identity: codeIdentity(unit, name, source, imports.map(identityOf))
|
|
7299
|
+
identity: codeIdentity(unit, name, source, imports.map(identityOf)),
|
|
7300
|
+
ranges
|
|
7251
7301
|
};
|
|
7252
7302
|
};
|
|
7253
7303
|
/** Lower a checked unit, turning a failure to load into its diagnostic. */
|
|
7254
|
-
const loadOrReject = (name, load) => {
|
|
7304
|
+
const loadOrReject = (name, ranges, load) => {
|
|
7255
7305
|
try {
|
|
7256
7306
|
return load();
|
|
7257
7307
|
} catch (error) {
|
|
@@ -7260,7 +7310,8 @@ const loadOrReject = (name, load) => {
|
|
|
7260
7310
|
message: error.message,
|
|
7261
7311
|
unit: name,
|
|
7262
7312
|
line: error.line,
|
|
7263
|
-
col: error.col
|
|
7313
|
+
col: error.col,
|
|
7314
|
+
...ranges.at(error.line, error.col)
|
|
7264
7315
|
}]);
|
|
7265
7316
|
throw error;
|
|
7266
7317
|
}
|
|
@@ -7300,7 +7351,7 @@ const build = (src, imports, isStdlib, declarations = {}, atCaller = false) => {
|
|
|
7300
7351
|
const tree = p.checked.tree;
|
|
7301
7352
|
entry = {
|
|
7302
7353
|
exports: exportsOf(tree),
|
|
7303
|
-
code: loadOrReject(src.name, () => loadLibrary(isStdlib ? lowerStdlibIntrinsics(lowerTree(tree, {
|
|
7354
|
+
code: loadOrReject(src.name, p.ranges, () => loadLibrary(isStdlib ? lowerStdlibIntrinsics(lowerTree(tree, {
|
|
7304
7355
|
name: src.name,
|
|
7305
7356
|
unit: "library"
|
|
7306
7357
|
})) : lowerTree(tree, {
|
|
@@ -7366,6 +7417,7 @@ const replacementLibraries = (available, replacement) => {
|
|
|
7366
7417
|
unit: replacement.name,
|
|
7367
7418
|
line,
|
|
7368
7419
|
col: 1,
|
|
7420
|
+
...p.ranges.at(line, 1),
|
|
7369
7421
|
message: "import cycle"
|
|
7370
7422
|
}]);
|
|
7371
7423
|
}
|
|
@@ -13297,21 +13349,25 @@ var TsGroup = class TsGroup {
|
|
|
13297
13349
|
const identity = compileKey(existing?.identity ?? p.identity, p.checked.tree);
|
|
13298
13350
|
let unit = compiledScripts.get(identity);
|
|
13299
13351
|
if (!unit) {
|
|
13300
|
-
unit = loadOrReject(name, () => lowerTree(p.checked.tree, {
|
|
13352
|
+
unit = loadOrReject(name, p.ranges, () => lowerTree(p.checked.tree, {
|
|
13301
13353
|
name,
|
|
13302
13354
|
unit: "script",
|
|
13303
13355
|
existingVariables: existing?.home.variableNames
|
|
13304
13356
|
}));
|
|
13305
13357
|
compiledScripts.set(identity, unit);
|
|
13306
13358
|
}
|
|
13307
|
-
return loadOrReject(name, () => loadScript(unit, limits, new Map([...existing?.links ?? [], ...linksOf(p.imports)]), existing?.home.variables, existing?.home, p.identity, this.functionGroup));
|
|
13359
|
+
return loadOrReject(name, p.ranges, () => loadScript(unit, limits, new Map([...existing?.links ?? [], ...linksOf(p.imports)]), existing?.home.variables, existing?.home, p.identity, this.functionGroup));
|
|
13308
13360
|
} catch (error) {
|
|
13309
13361
|
if (traced) this.writeDiagnostics(error);
|
|
13310
13362
|
throw error;
|
|
13311
13363
|
}
|
|
13312
13364
|
}
|
|
13313
13365
|
writeDiagnostics(error) {
|
|
13314
|
-
if (error instanceof LoadError) for (const d of error.diagnostics) this.trace?.(recordLine("diag", [d.unit], [
|
|
13366
|
+
if (error instanceof LoadError) for (const d of error.diagnostics) this.trace?.(recordLine("diag", [d.unit], [
|
|
13367
|
+
["code", JSON.stringify(d.code)],
|
|
13368
|
+
["pos", `${d.line}:${d.col}`],
|
|
13369
|
+
["end", `${d.endLine}:${d.endCol}`]
|
|
13370
|
+
]));
|
|
13315
13371
|
}
|
|
13316
13372
|
replacement(s, source, carry, libraries = this.libraries, extensions = [], keepMailbox = false) {
|
|
13317
13373
|
const grants = availableGrants(s);
|
|
@@ -13414,10 +13470,12 @@ var TsGroup = class TsGroup {
|
|
|
13414
13470
|
if (p.checked.tree) {
|
|
13415
13471
|
const units = [...s.units.map((unit, i) => ({
|
|
13416
13472
|
root: unit.tree.root,
|
|
13417
|
-
name: s.loaded.units[i].name
|
|
13473
|
+
name: s.loaded.units[i].name,
|
|
13474
|
+
ranges: () => rangesOf(unit.source, unit.tree)
|
|
13418
13475
|
})), {
|
|
13419
13476
|
root: p.checked.tree.root,
|
|
13420
|
-
name
|
|
13477
|
+
name,
|
|
13478
|
+
ranges: () => p.ranges
|
|
13421
13479
|
}];
|
|
13422
13480
|
checkDecisionCalls(units.map((unit) => ({
|
|
13423
13481
|
root: unit.root,
|
|
@@ -13427,6 +13485,7 @@ var TsGroup = class TsGroup {
|
|
|
13427
13485
|
unit: unit.name,
|
|
13428
13486
|
line: leaf.span.line,
|
|
13429
13487
|
col: leaf.span.col,
|
|
13488
|
+
...unit.ranges().of(leaf.span),
|
|
13430
13489
|
message: code
|
|
13431
13490
|
});
|
|
13432
13491
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { H as num, L as map, P as listValues, V as nothing, Z as requireValue, b as dec, i as ScriptError, it as text, nn as characterBoundaries, o as invalidValue, sn as normalizeNFC, u as bool } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { ft as errorMessages, n as ScriptError$1 } from "./operations-
|
|
3
|
+
import { ft as errorMessages, n as ScriptError$1 } from "./operations-DrsedOvj.js";
|
|
4
4
|
//#region src/json.ts
|
|
5
5
|
var JsonReader = class {
|
|
6
6
|
source;
|
package/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value, cn as HttpClientImpl, gt as ObjectKindDef, ht as ObjectKind, ln as HttpImpl, tn as Group, x as PumpResult } from "./debug-
|
|
2
|
+
import { J as Value, cn as HttpClientImpl, gt as ObjectKindDef, ht as ObjectKind, ln as HttpImpl, tn as Group, x as PumpResult } from "./debug-2yfUZYzF.js";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
//#region src/http/fetch.d.ts
|
|
5
5
|
/** The largest response body `fetch` reads by default: 8 MiB. */
|
package/http.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { H as num, L as map, P as listValues, d as bytes, i as ScriptError, it as text, t as HostError, u as bool } from "./errors-CNc-xY_9.js";
|
|
3
3
|
import { t as defineObjectKind } from "./objects-OKVLH190.js";
|
|
4
|
-
import { Dt as shape } from "./operations-
|
|
5
|
-
import { a as parseFetchUrl, i as fetchOrigin } from "./http-fetch-
|
|
4
|
+
import { Dt as shape } from "./operations-DrsedOvj.js";
|
|
5
|
+
import { a as parseFetchUrl, i as fetchOrigin } from "./http-fetch-CLAeEXVi.js";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
7
|
import { createServer, request } from "node:http";
|
|
8
8
|
import { request as request$1 } from "node:https";
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-
|
|
2
|
+
import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-2yfUZYzF.js";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import { $ as grammar, A as FromValueOptions, B as SemanticResult, C as handlersOf, D as shapeData, E as ShapeData, F as talk, G as ParseError, H as checkSyntax, I as CheckOptions, J as RecoveryDiagnostic, K as ParseResult, L as CheckResult, M as ToValueOptions, N as fromValue, O as kindNames, P as toValue, Q as builtins, R as Diagnostic, S as ScriptWithHandlers, T as encodeJson, U as EntryKind, V as checkSource, W as EntryResult, X as parseSource, Y as parseEntry, Z as parseSourceRecovering, _ as createGroup, a as LoweringError, c as lowerTree, d as exportManifest, et as units, f as zoneRules, g as CreateGroupOptions, h as inlineGrants, i as CompileResult, j as PlainValue, k as encodeValue, l as ManifestSpec, m as InlineOperation, n as declarationStart, o as compileSource, p as InlineFunction, q as RecoveringParseResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, w as decodeJson, x as Handlers, y as DrivenGroup, z as DiagnosticCode } from "./lean-
|
|
5
|
-
import { n as createCore, t as TsCore } from "./core-
|
|
6
|
-
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-
|
|
4
|
+
import { $ as grammar, A as FromValueOptions, B as SemanticResult, C as handlersOf, D as shapeData, E as ShapeData, F as talk, G as ParseError, H as checkSyntax, I as CheckOptions, J as RecoveryDiagnostic, K as ParseResult, L as CheckResult, M as ToValueOptions, N as fromValue, O as kindNames, P as toValue, Q as builtins, R as Diagnostic, S as ScriptWithHandlers, T as encodeJson, U as EntryKind, V as checkSource, W as EntryResult, X as parseSource, Y as parseEntry, Z as parseSourceRecovering, _ as createGroup, a as LoweringError, c as lowerTree, d as exportManifest, et as units, f as zoneRules, g as CreateGroupOptions, h as inlineGrants, i as CompileResult, j as PlainValue, k as encodeValue, l as ManifestSpec, m as InlineOperation, n as declarationStart, o as compileSource, p as InlineFunction, q as RecoveringParseResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, w as decodeJson, x as Handlers, y as DrivenGroup, z as DiagnosticCode } from "./lean-DU_muGpT.js";
|
|
5
|
+
import { n as createCore, t as TsCore } from "./core-Dwec7SRy.js";
|
|
6
|
+
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-IhVpgXkj.js";
|
|
7
7
|
import { n as stdlibSources, t as allStdlib } from "./index-CBuczWK0.js";
|
|
8
8
|
export { type Binding, type BindingKind, type Body, type BodyKind, type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type CheckOptions, type CheckResult, type CodeUnit, type CompileOptions, type CompileResult, Script as CompiledScript, type ConsoleImpl, type CoordinatedLifecycle, type Core, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type Diagnostic, type DiagnosticCode, type DrivenGroup, type EffectFailure, type EffectResult, type EntryKind, type EntryResult, type ErrorDecl, type EventBranch, type EventEntry, type ExportKind, type FieldShape, type FireOp, type FromValueOptions, type FunctionContract, type FunctionResolver, type Grant, type GrantContext, type GrantDecls, type Group, type GroupOptions, type Handlers, HostError, type HostErrorCode, type HostObject, type HttpClientImpl, type HttpImpl, type HttpServerImpl, type ImmediateOp, type InlineFunction, type InlineOperation, type Inspection, type Instruction, type Kind, Lexer, type Library, type LibraryExport, type LibraryOptions, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, LoweringError, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type Mode, type MusicalClockImpl, type NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type RecoveringParseResult, type RecoveryDiagnostic, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, Run, type RunAccounting, type RunAncestry, type RunDiscarded, type RunRecord, type RunStarted, type SaveOptions, type ScopeDecl, type Script$1 as Script, type ScriptCodeRequest, ScriptError, type ScriptSources, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SemanticElement, type SemanticName, type SemanticNode, type SemanticResult, type SemanticScope, type SemanticToken, type SemanticTree, type SendFailedReason, type Settlement, type Shape, type ShapeData, type SourceSpan, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StdlibLibrary, type StoreImpl, type SuspendingOp, type SyntaxElement, type SyntaxErrorCode, type SyntaxNode, type SyntaxRule, type TimerImpl, type ToValueOptions, type TokType, type Token, type Trivia, type TsCore, TsGroup, TsScript, UnitLoadError, type UnwindEntry, type UserImpl, Value, type Verdict, type Versions, add, allStdlib, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, stdlibSources, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs, zoneRules };
|
package/index.js
CHANGED
|
@@ -7,19 +7,19 @@ import { list as list$1 } from "./stdlib/list.js";
|
|
|
7
7
|
import { map as map$1 } from "./stdlib/map.js";
|
|
8
8
|
import { units as units$1 } from "./stdlib/units.js";
|
|
9
9
|
import { D as instant, H as num, J as range, K as quantity, L as map, N as list, Qt as parseInstant, V as nothing, Xt as nowMicros, Y as record, b as dec, c as Decimal, d as bytes, g as civilDate, hn as grammar, i as ScriptError, it as text, l as Value, n as LoadError, pn as builtins, qt as formatInstant, r as MailboxFull, t as HostError, u as bool, vn as units } from "./errors-CNc-xY_9.js";
|
|
10
|
-
import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group
|
|
10
|
+
import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group--dcl0em8.js";
|
|
11
11
|
import { t as defineObjectKind } from "./objects-OKVLH190.js";
|
|
12
|
-
import { At as validMessageSelector, Dt as shape, Et as operationDeclarations, Mt as Lexer, U as waitUs, bt as defineCapability, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, vt as conforms, wt as explain } from "./operations-
|
|
13
|
-
import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-
|
|
14
|
-
import { n as exportManifest } from "./manifest-
|
|
12
|
+
import { At as validMessageSelector, Dt as shape, Et as operationDeclarations, Mt as Lexer, U as waitUs, bt as defineCapability, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, vt as conforms, wt as explain } from "./operations-DrsedOvj.js";
|
|
13
|
+
import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-hkWO1UbN.js";
|
|
14
|
+
import { n as exportManifest } from "./manifest-CRpUahPt.js";
|
|
15
15
|
import { c as readDisplay, r as decodeValue } from "./readers-G1lHqrPl.js";
|
|
16
|
-
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-
|
|
17
|
-
import { a as peerKind, i as peerCapability } from "./peer-capability-
|
|
18
|
-
import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-
|
|
19
|
-
import { o as decodeJson, s as encodeJson } from "./http-fetch-
|
|
20
|
-
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-
|
|
21
|
-
import { n as localeCapability, t as userCapability } from "./user-capability-
|
|
22
|
-
import { r as storeCapability, t as add } from "./store-capability-
|
|
16
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-DlMqlP2Y.js";
|
|
17
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-RMdN4OHj.js";
|
|
18
|
+
import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-Cn-f9u_Z.js";
|
|
19
|
+
import { o as decodeJson, s as encodeJson } from "./http-fetch-CLAeEXVi.js";
|
|
20
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BtbKWkXA.js";
|
|
21
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-CzoLN3RK.js";
|
|
22
|
+
import { r as storeCapability, t as add } from "./store-capability-Db6v_dw9.js";
|
|
23
23
|
//#region src/generated/stdlib.ts
|
|
24
24
|
/** Every stdlib Library. */
|
|
25
25
|
const allStdlib = [
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
import { fn as unicodeVersion } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group
|
|
3
|
+
import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group--dcl0em8.js";
|
|
4
4
|
import { t as defineObjectKind } from "./objects-OKVLH190.js";
|
|
5
|
-
import { bt as defineCapability, dt as costModel, pt as languageVersion } from "./operations-
|
|
6
|
-
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, u as musicalClockCapability } from "./encoding-
|
|
7
|
-
import { a as peerKind, i as peerCapability } from "./peer-capability-
|
|
8
|
-
import { a as httpCapability, o as sqliteCapability, r as createGroup$1 } from "./zone-rules-
|
|
9
|
-
import { n as localeCapability, t as userCapability } from "./user-capability-
|
|
10
|
-
import { r as storeCapability } from "./store-capability-
|
|
5
|
+
import { bt as defineCapability, dt as costModel, pt as languageVersion } from "./operations-DrsedOvj.js";
|
|
6
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, u as musicalClockCapability } from "./encoding-DlMqlP2Y.js";
|
|
7
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-RMdN4OHj.js";
|
|
8
|
+
import { a as httpCapability, o as sqliteCapability, r as createGroup$1 } from "./zone-rules-Cn-f9u_Z.js";
|
|
9
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-CzoLN3RK.js";
|
|
10
|
+
import { r as storeCapability } from "./store-capability-Db6v_dw9.js";
|
|
11
11
|
//#region src/versions.ts
|
|
12
12
|
const coreVersions = Object.freeze({
|
|
13
13
|
language: languageVersion,
|
|
14
14
|
costModel: String(costModel.version),
|
|
15
15
|
unicode: unicodeVersion,
|
|
16
|
-
core: "ts/0.
|
|
16
|
+
core: "ts/0.10.0",
|
|
17
17
|
saveFormat: String(1)
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Ar as SourceSpan, Er as SemanticNode, Fn as Library, Ir as SyntaxErrorCode, J as Value, K as Decimal, Lr as SyntaxNode, Pr as Token, Sr as LibraryExport, _ as LoadOptions, dr as CodeUnit, en as Core, ht as ObjectKind, jt as Grant, kr as SemanticTree, nn as Script, qt as Shape, tn as Group, vr as Binding, yt as GrantDecls } from "./debug-
|
|
3
|
-
import { n as Drive, r as DrivenGroupOptions } from "./driver-
|
|
2
|
+
import { Ar as SourceSpan, Er as SemanticNode, Fn as Library, Ir as SyntaxErrorCode, J as Value, K as Decimal, Lr as SyntaxNode, Pr as Token, Sr as LibraryExport, _ as LoadOptions, dr as CodeUnit, en as Core, ht as ObjectKind, jt as Grant, kr as SemanticTree, nn as Script, qt as Shape, tn as Group, vr as Binding, yt as GrantDecls } from "./debug-2yfUZYzF.js";
|
|
3
|
+
import { n as Drive, r as DrivenGroupOptions } from "./driver-CT-ksM-N.js";
|
|
4
4
|
//#region src/generated/syntax.d.ts
|
|
5
5
|
declare const grammar: {
|
|
6
6
|
reserved: string[];
|
package/lean.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-
|
|
2
|
+
import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-2yfUZYzF.js";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import { $ as grammar, A as FromValueOptions, B as SemanticResult, C as handlersOf, D as shapeData, E as ShapeData, F as talk, G as ParseError, H as checkSyntax, I as CheckOptions, J as RecoveryDiagnostic, K as ParseResult, L as CheckResult, M as ToValueOptions, N as fromValue, O as kindNames, P as toValue, Q as builtins, R as Diagnostic, S as ScriptWithHandlers, T as encodeJson, U as EntryKind, V as checkSource, W as EntryResult, X as parseSource, Y as parseEntry, Z as parseSourceRecovering, _ as createGroup, a as LoweringError, c as lowerTree, d as exportManifest, et as units, f as zoneRules, g as CreateGroupOptions, h as inlineGrants, i as CompileResult, j as PlainValue, k as encodeValue, l as ManifestSpec, m as InlineOperation, n as declarationStart, o as compileSource, p as InlineFunction, q as RecoveringParseResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, w as decodeJson, x as Handlers, y as DrivenGroup, z as DiagnosticCode } from "./lean-
|
|
5
|
-
import { n as createCore, t as TsCore } from "./core-
|
|
6
|
-
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-
|
|
4
|
+
import { $ as grammar, A as FromValueOptions, B as SemanticResult, C as handlersOf, D as shapeData, E as ShapeData, F as talk, G as ParseError, H as checkSyntax, I as CheckOptions, J as RecoveryDiagnostic, K as ParseResult, L as CheckResult, M as ToValueOptions, N as fromValue, O as kindNames, P as toValue, Q as builtins, R as Diagnostic, S as ScriptWithHandlers, T as encodeJson, U as EntryKind, V as checkSource, W as EntryResult, X as parseSource, Y as parseEntry, Z as parseSourceRecovering, _ as createGroup, a as LoweringError, c as lowerTree, d as exportManifest, et as units, f as zoneRules, g as CreateGroupOptions, h as inlineGrants, i as CompileResult, j as PlainValue, k as encodeValue, l as ManifestSpec, m as InlineOperation, n as declarationStart, o as compileSource, p as InlineFunction, q as RecoveringParseResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, w as decodeJson, x as Handlers, y as DrivenGroup, z as DiagnosticCode } from "./lean-DU_muGpT.js";
|
|
5
|
+
import { n as createCore, t as TsCore } from "./core-Dwec7SRy.js";
|
|
6
|
+
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-IhVpgXkj.js";
|
|
7
7
|
export { type Binding, type BindingKind, type Body, type BodyKind, type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type CheckOptions, type CheckResult, type CodeUnit, type CompileOptions, type CompileResult, Script as CompiledScript, type ConsoleImpl, type CoordinatedLifecycle, type Core, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type Diagnostic, type DiagnosticCode, type DrivenGroup, type EffectFailure, type EffectResult, type EntryKind, type EntryResult, type ErrorDecl, type EventBranch, type EventEntry, type ExportKind, type FieldShape, type FireOp, type FromValueOptions, type FunctionContract, type FunctionResolver, type Grant, type GrantContext, type GrantDecls, type Group, type GroupOptions, type Handlers, HostError, type HostErrorCode, type HostObject, type HttpClientImpl, type HttpImpl, type HttpServerImpl, type ImmediateOp, type InlineFunction, type InlineOperation, type Inspection, type Instruction, type Kind, Lexer, type Library, type LibraryExport, type LibraryOptions, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, LoweringError, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type Mode, type MusicalClockImpl, type NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type RecoveringParseResult, type RecoveryDiagnostic, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, Run, type RunAccounting, type RunAncestry, type RunDiscarded, type RunRecord, type RunStarted, type SaveOptions, type ScopeDecl, type Script$1 as Script, type ScriptCodeRequest, ScriptError, type ScriptSources, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SemanticElement, type SemanticName, type SemanticNode, type SemanticResult, type SemanticScope, type SemanticToken, type SemanticTree, type SendFailedReason, type Settlement, type Shape, type ShapeData, type SourceSpan, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StdlibLibrary, type StoreImpl, type SuspendingOp, type SyntaxElement, type SyntaxErrorCode, type SyntaxNode, type SyntaxRule, type TimerImpl, type ToValueOptions, type TokType, type Token, type Trivia, type TsCore, TsGroup, TsScript, UnitLoadError, type UnwindEntry, type UserImpl, Value, type Verdict, type Versions, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs, zoneRules };
|
package/lean.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { D as instant, H as num, J as range, K as quantity, L as map, N as list, Qt as parseInstant, V as nothing, Xt as nowMicros, Y as record, b as dec, c as Decimal, d as bytes, g as civilDate, hn as grammar, i as ScriptError, it as text, l as Value, n as LoadError, pn as builtins, qt as formatInstant, r as MailboxFull, t as HostError, u as bool, vn as units } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group
|
|
3
|
+
import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group--dcl0em8.js";
|
|
4
4
|
import { t as defineObjectKind } from "./objects-OKVLH190.js";
|
|
5
|
-
import { At as validMessageSelector, Dt as shape, Et as operationDeclarations, Mt as Lexer, U as waitUs, bt as defineCapability, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, vt as conforms, wt as explain } from "./operations-
|
|
6
|
-
import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-
|
|
7
|
-
import { n as exportManifest } from "./manifest-
|
|
5
|
+
import { At as validMessageSelector, Dt as shape, Et as operationDeclarations, Mt as Lexer, U as waitUs, bt as defineCapability, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, vt as conforms, wt as explain } from "./operations-DrsedOvj.js";
|
|
6
|
+
import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-hkWO1UbN.js";
|
|
7
|
+
import { n as exportManifest } from "./manifest-CRpUahPt.js";
|
|
8
8
|
import { c as readDisplay, r as decodeValue } from "./readers-G1lHqrPl.js";
|
|
9
|
-
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-
|
|
10
|
-
import { a as peerKind, i as peerCapability } from "./peer-capability-
|
|
11
|
-
import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-
|
|
12
|
-
import { o as decodeJson, s as encodeJson } from "./http-fetch-
|
|
13
|
-
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-
|
|
14
|
-
import { n as localeCapability, t as userCapability } from "./user-capability-
|
|
15
|
-
import { r as storeCapability, t as add } from "./store-capability-
|
|
9
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-DlMqlP2Y.js";
|
|
10
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-RMdN4OHj.js";
|
|
11
|
+
import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-Cn-f9u_Z.js";
|
|
12
|
+
import { o as decodeJson, s as encodeJson } from "./http-fetch-CLAeEXVi.js";
|
|
13
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BtbKWkXA.js";
|
|
14
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-CzoLN3RK.js";
|
|
15
|
+
import { r as storeCapability, t as add } from "./store-capability-Db6v_dw9.js";
|
|
16
16
|
export { Script as CompiledScript, Decimal, HostError, Lexer, LimitReached, LoadError, LoweringError, MailboxFull, NotImplementedError, ParseError, Run, ScriptError, TsGroup, TsScript, UnitLoadError, Value, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs, zoneRules };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { X as requireArgs, t as HostError } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-
|
|
4
|
-
import { n as quoteJSON } from "./encoding-
|
|
3
|
+
import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-DrsedOvj.js";
|
|
4
|
+
import { n as quoteJSON } from "./encoding-DlMqlP2Y.js";
|
|
5
5
|
//#region src/call-meter.ts
|
|
6
6
|
var CallMeter = class {
|
|
7
7
|
take;
|
package/message-layer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { i as JsonObject, n as Json, r as JsonNumber, s as readOrderedJSON } from "./readers-
|
|
3
|
-
import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-
|
|
2
|
+
import { i as JsonObject, n as Json, r as JsonNumber, s as readOrderedJSON } from "./readers-IhVpgXkj.js";
|
|
3
|
+
import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-B8W4W_e1.js";
|
|
4
4
|
//#region src/request-pump-binary.d.ts
|
|
5
5
|
export declare const requestPumpFeature: "request-pump-fields-v1";
|
|
6
6
|
export declare const callbacksFeature: "callbacks-fields-v1";
|
package/message-layer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
import { l as readOrderedJSON, n as JsonObject, t as JsonNumber } from "./readers-G1lHqrPl.js";
|
|
3
|
-
import { c as isRequestPumpBinary,
|
|
3
|
+
import { c as isRequestPumpBinary, g as encodeBinaryValue, h as decodeBinaryValue, i as encodeBinaryFrame, n as decodeBinaryFrame, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-P8m6kLfB.js";
|
|
4
4
|
export { JsonNumber, JsonObject, callbacksFeature, decodeBinaryFrame, decodeBinaryValue, encodeBinaryFrame, encodeBinaryValue, isRequestPumpBinary, readOrderedJSON, requestPumpFeature };
|
package/notify.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-
|
|
2
|
+
import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-2vjYbqx3.js";
|
|
3
3
|
export { type NotificationRouter, type RouterOptions, type RoutingResult, type WatchLimits, changed, createRouter };
|
package/notify.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export { t as changed, n as createRouter } from "./router-
|
|
2
|
+
export { t as changed, n as createRouter } from "./router-C_Fjc2as.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Bn as compileLibrary, C as Report, Cn as LocaleImpl, D as RunEvent, E as RestoreResult, F as TsGroupOptions, Fn as Library, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, P as TsGroup, Tn as CalendarImpl, Un as Limits, Vn as replacementLibraries, ar as LoadError, bn as SqliteBinding, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, pt as HostObject, qt as Shape, t as DebugController, xt as CapabilityDef, yt as GrantDecls } from "./debug-
|
|
2
|
+
import { Bn as compileLibrary, C as Report, Cn as LocaleImpl, D as RunEvent, E as RestoreResult, F as TsGroupOptions, Fn as Library, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, P as TsGroup, Tn as CalendarImpl, Un as Limits, Vn as replacementLibraries, ar as LoadError, bn as SqliteBinding, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, pt as HostObject, qt as Shape, t as DebugController, xt as CapabilityDef, yt as GrantDecls } from "./debug-2yfUZYzF.js";
|
|
3
3
|
//#region src/setup.d.ts
|
|
4
4
|
type ShapeSpec = string | {
|
|
5
5
|
quantity: string;
|