@northtalk/ts 0.5.1 → 0.6.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-xvJoGg0C.d.ts → binary-value-C4ZiXVjv.d.ts} +1 -1
- package/{core-BuTAYRm-.d.ts → core-egHbNmve.d.ts} +1 -1
- package/{debug-DRhMZAxw.d.ts → debug--Of4MSLw.d.ts} +11 -3
- package/debug.d.ts +1 -1
- package/{driver-CHDcuqUy.d.ts → driver-BIm1mL77.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/{engine-Cc3yofGM.d.ts → engine-DbDcopGM.d.ts} +2 -2
- package/{group-BflSou2n.js → group-BpzTo0k4.js} +39 -7
- package/http.d.ts +1 -1
- package/http.js +1 -1
- package/index.d.ts +5 -5
- package/index.js +2 -2
- package/{lean-CjWVuOrC.d.ts → lean-DiS9rUcn.d.ts} +3 -3
- package/{lean-BebPaTMK.js → lean-aCvN6y52.js} +2 -2
- package/lean.d.ts +5 -5
- package/lean.js +2 -2
- package/{manifest-DVrx-pT2.d.ts → manifest-mpivREn-.d.ts} +2 -2
- package/message-layer.d.ts +2 -2
- package/notify.d.ts +1 -1
- package/{objects-DC6HjzBY.d.ts → objects-DYq_YvaQ.d.ts} +5 -1
- package/package.json +1 -1
- package/{readers-MmyZ_d0w.d.ts → readers-8WCimMop.d.ts} +1 -1
- package/{router-D56rSkU8.d.ts → router-BQsO8aPV.d.ts} +2 -2
- package/session.d.ts +2 -2
- package/session.js +2 -2
- package/setup.d.ts +1 -1
- package/setup.js +1 -1
- package/sqlite.d.ts +2 -2
- package/store.d.ts +2 -2
- package/wasm.d.ts +7 -5
- package/wasm.js +7 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { B as restore, Mn as compileLibrary, Zt as Core, vt as defineObjectKind, z as newGroup } from "./debug
|
|
2
|
+
import { B as restore, Mn as compileLibrary, Zt as Core, vt as defineObjectKind, z as newGroup } from "./debug--Of4MSLw.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
|
|
@@ -1160,6 +1160,8 @@ type RunRecord = {
|
|
|
1160
1160
|
kind: 'unhandled';
|
|
1161
1161
|
message: string;
|
|
1162
1162
|
target: Value | null;
|
|
1163
|
+
/** A Command Call's climb, whose target is the Script's owner. */
|
|
1164
|
+
up?: true;
|
|
1163
1165
|
} | {
|
|
1164
1166
|
error?: Value;
|
|
1165
1167
|
kind: 'prop';
|
|
@@ -2162,7 +2164,9 @@ type Group = {
|
|
|
2162
2164
|
inspect(): Inspection;
|
|
2163
2165
|
load(o: LoadOptions): Script;
|
|
2164
2166
|
readonly name: string;
|
|
2165
|
-
object<N>(kind: ObjectKind<N>, id: string, native: N
|
|
2167
|
+
object<N>(kind: ObjectKind<N>, id: string, native: N, o?: {
|
|
2168
|
+
parent?: HostObject;
|
|
2169
|
+
}): HostObject<N>;
|
|
2166
2170
|
objectById(kind: string, id: string): HostObject | undefined;
|
|
2167
2171
|
pump(now: bigint, o?: PumpOptions): PumpResult;
|
|
2168
2172
|
replaceLibrary(l: Library, carry: CarryOver): Report[];
|
|
@@ -3016,7 +3020,8 @@ type Report = AccountingReport | ChargeResult | {
|
|
|
3016
3020
|
run?: string;
|
|
3017
3021
|
script: string;
|
|
3018
3022
|
} | {
|
|
3019
|
-
|
|
3023
|
+
/** The Host Delivery's id; absent for a message a Script sent. */
|
|
3024
|
+
delivery?: string;
|
|
3020
3025
|
kind: 'unhandled';
|
|
3021
3026
|
message: Message;
|
|
3022
3027
|
/** The object it was delivered to; absent when addressed to a Script. */
|
|
@@ -3365,7 +3370,9 @@ declare class TsGroup implements Group {
|
|
|
3365
3370
|
limits?: LimitOverride;
|
|
3366
3371
|
}): Requested;
|
|
3367
3372
|
/** Makes a handle for a Host-owned thing, the first time it crosses in. */
|
|
3368
|
-
object<N>(kind: ObjectKind<N>, id: string, native: N
|
|
3373
|
+
object<N>(kind: ObjectKind<N>, id: string, native: N, o?: {
|
|
3374
|
+
parent?: HostObject;
|
|
3375
|
+
}): HostObject<N>;
|
|
3369
3376
|
/** The handle with this Object Kind name and id, disposed or not, such as one Restore made. */
|
|
3370
3377
|
objectById(kind: string, id: string): HostObject | undefined;
|
|
3371
3378
|
/** Whether an object value is one of this Group's handles. */
|
|
@@ -3377,6 +3384,7 @@ declare class TsGroup implements Group {
|
|
|
3377
3384
|
/** Queued. Disposes an object: it stays a value, and sends to it raise `object gone`. */
|
|
3378
3385
|
dispose(o: HostObject): void;
|
|
3379
3386
|
private route;
|
|
3387
|
+
private unhandledSend;
|
|
3380
3388
|
private unhandled;
|
|
3381
3389
|
private answer;
|
|
3382
3390
|
private deliveryLine;
|
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--Of4MSLw.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 { Qt as Group, b as PumpOptions, h as GroupOptions, x as PumpResult } from "./debug
|
|
2
|
+
import { Qt as Group, b as PumpOptions, h as GroupOptions, x as PumpResult } from "./debug--Of4MSLw.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-BIm1mL77.js";
|
|
3
3
|
export { AutoDriveOptions, Drive, DrivenGroupOptions, type PendingOperation, asyncDispose, autoDrive, newDrivenGroup };
|
|
@@ -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, cn 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, cn as StoreImpl } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-BQsO8aPV.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 = {
|
|
@@ -6511,7 +6511,8 @@ var Run = class Run {
|
|
|
6511
6511
|
kind: "unhandled",
|
|
6512
6512
|
message,
|
|
6513
6513
|
args,
|
|
6514
|
-
target: object ? object.handle.value : null
|
|
6514
|
+
target: object ? object.handle.value : null,
|
|
6515
|
+
...up ? { up: true } : {}
|
|
6515
6516
|
});
|
|
6516
6517
|
if (waits) throw new ScriptError$1("send failed", [["reason", text("unhandled")]], true);
|
|
6517
6518
|
return next(frame);
|
|
@@ -10768,6 +10769,7 @@ const inputRecord = (action, delivery, ref) => {
|
|
|
10768
10769
|
delivery: deliveryNumber(action.id)
|
|
10769
10770
|
};
|
|
10770
10771
|
case "refusal": throw new Error("A save never holds a queued refusal");
|
|
10772
|
+
case "record": throw new Error("A save never holds a queued record");
|
|
10771
10773
|
}
|
|
10772
10774
|
};
|
|
10773
10775
|
const markOf = (r) => r.veto ? {
|
|
@@ -12566,6 +12568,7 @@ var TsGroup = class TsGroup {
|
|
|
12566
12568
|
}
|
|
12567
12569
|
applyInput(action) {
|
|
12568
12570
|
switch (action.k) {
|
|
12571
|
+
case "record": break;
|
|
12569
12572
|
case "refusal":
|
|
12570
12573
|
this.trace?.(recordLine("refused", [], [["code", JSON.stringify(action.code)]]));
|
|
12571
12574
|
break;
|
|
@@ -13361,7 +13364,10 @@ var TsGroup = class TsGroup {
|
|
|
13361
13364
|
at: named.owner
|
|
13362
13365
|
};
|
|
13363
13366
|
})() : this.route(to);
|
|
13364
|
-
if (!r)
|
|
13367
|
+
if (!r) {
|
|
13368
|
+
this.unhandledSend(message, args, to);
|
|
13369
|
+
return null;
|
|
13370
|
+
}
|
|
13365
13371
|
this.enqueue(r.s, to, {
|
|
13366
13372
|
id: null,
|
|
13367
13373
|
from: reply ?? run.id,
|
|
@@ -13381,7 +13387,10 @@ var TsGroup = class TsGroup {
|
|
|
13381
13387
|
},
|
|
13382
13388
|
sendUp: (message, args, reply) => {
|
|
13383
13389
|
const r = this.route(s.owner?.parent ?? null);
|
|
13384
|
-
if (!r)
|
|
13390
|
+
if (!r) {
|
|
13391
|
+
this.unhandledSend(message, args, s.owner);
|
|
13392
|
+
return null;
|
|
13393
|
+
}
|
|
13385
13394
|
this.enqueue(r.s, r.s.name, {
|
|
13386
13395
|
id: null,
|
|
13387
13396
|
from: reply ?? run.id,
|
|
@@ -13941,11 +13950,23 @@ var TsGroup = class TsGroup {
|
|
|
13941
13950
|
};
|
|
13942
13951
|
}
|
|
13943
13952
|
/** Makes a handle for a Host-owned thing, the first time it crosses in. */
|
|
13944
|
-
object(kind, id, native) {
|
|
13953
|
+
object(kind, id, native, o) {
|
|
13945
13954
|
const key = `${kind.name}\u0000${id}`;
|
|
13946
13955
|
if (this.objects.has(key)) throw new HostError("duplicate object id", `The Group already has a ${kind.name} ${id}`);
|
|
13956
|
+
const up = o?.parent ? this.held(o.parent) : null;
|
|
13957
|
+
if (up?.disposed) throw new HostError("invalid value", `${up.handle.value} is disposed`);
|
|
13947
13958
|
const state = makeObject(kind, id, native);
|
|
13959
|
+
state.parent = up;
|
|
13948
13960
|
this.objects.set(key, state);
|
|
13961
|
+
if (up && this.trace) {
|
|
13962
|
+
const line = recordLine("object", [], [["object", traceValue(state.handle.value)], ["parent", traceValue(up.handle.value)]]);
|
|
13963
|
+
if (this.pumping) this.inputs.push({
|
|
13964
|
+
line,
|
|
13965
|
+
urgent: true,
|
|
13966
|
+
action: { k: "record" }
|
|
13967
|
+
});
|
|
13968
|
+
else this.trace(line);
|
|
13969
|
+
}
|
|
13949
13970
|
return state.handle;
|
|
13950
13971
|
}
|
|
13951
13972
|
/** The handle with this Object Kind name and id, disposed or not, such as one Restore made. */
|
|
@@ -14006,6 +14027,16 @@ var TsGroup = class TsGroup {
|
|
|
14006
14027
|
}
|
|
14007
14028
|
return null;
|
|
14008
14029
|
}
|
|
14030
|
+
unhandledSend(message, args, target) {
|
|
14031
|
+
this.drainReports.push({
|
|
14032
|
+
kind: "unhandled",
|
|
14033
|
+
message: {
|
|
14034
|
+
name: message,
|
|
14035
|
+
args
|
|
14036
|
+
},
|
|
14037
|
+
...target ? { target: target.handle } : {}
|
|
14038
|
+
});
|
|
14039
|
+
}
|
|
14009
14040
|
unhandled(delivery, reports, run) {
|
|
14010
14041
|
this.trace?.(recordLine("unhandled", [delivery.id], [
|
|
14011
14042
|
["message", delivery.message],
|
|
@@ -14018,9 +14049,9 @@ var TsGroup = class TsGroup {
|
|
|
14018
14049
|
message: delivery.message,
|
|
14019
14050
|
args: delivery.args
|
|
14020
14051
|
});
|
|
14021
|
-
|
|
14052
|
+
reports.push({
|
|
14022
14053
|
kind: "unhandled",
|
|
14023
|
-
delivery: delivery.id,
|
|
14054
|
+
...delivery.id ? { delivery: delivery.id } : {},
|
|
14024
14055
|
message: {
|
|
14025
14056
|
name: delivery.message,
|
|
14026
14057
|
args: delivery.args
|
|
@@ -14533,10 +14564,11 @@ var TsGroup = class TsGroup {
|
|
|
14533
14564
|
continue;
|
|
14534
14565
|
}
|
|
14535
14566
|
if (rec.kind === "unhandled") {
|
|
14567
|
+
const target = rec.up ? this.scripts.find((s) => s.name === run.script.name)?.owner?.handle.value ?? null : rec.target;
|
|
14536
14568
|
this.trace?.(recordLine("unhandled", [], [
|
|
14537
14569
|
["message", rec.message ?? null],
|
|
14538
14570
|
["args", rec.args.length ? traceValue(listValues(rec.args)) : null],
|
|
14539
|
-
["target",
|
|
14571
|
+
["target", target ? traceValue(target) : null]
|
|
14540
14572
|
]));
|
|
14541
14573
|
this.session?.runs({
|
|
14542
14574
|
k: "unhandled",
|
package/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value, Qt as Group, gt as ObjectKindDef, ht as ObjectKind, nn as HttpClientImpl, rn as HttpImpl, x as PumpResult } from "./debug
|
|
2
|
+
import { J as Value, Qt as Group, gt as ObjectKindDef, ht as ObjectKind, nn as HttpClientImpl, rn as HttpImpl, x as PumpResult } from "./debug--Of4MSLw.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
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as ScriptError, $t as Script$1, A as ScriptSources, An as OperationRef, Ar as SyntaxRule, At as FireOp, B as restore, Bn as UnitLoadError, Bt as ReleaseHook, C as Report, Cn as calendarCapability, Cr as Lexer, Ct as ChargeRequest, Dn as Library, Dr as SyntaxElement, Dt as EffectResult, E as RestoreResult, En as timerCapability, Er as Token, Et as Cost, Fn as Limits, Ft as Metering, G as RunStarted, Gn as NotImplementedError, Gt as SegmentGrant, H as RunAccounting, Hn as defaultLimits, Ht as ScopeDecl, In as Outcome, It as Operation, J as Value, Jn as HostError, Jt as SuspendingOp, K as Decimal, Kn as canConvert, Kt as SegmentLifecycle, L as TsScript, Ln as Run, Lt as Operations, Mn as compileLibrary, Mr as syntaxSelector, Mt as GrantContext, N as Settlement, Nr as syntaxText, Nt as ImmediateOp, O as SaveOptions, On as LibraryOptions, Or as SyntaxErrorCode, Ot as ErrorDecl, P as TsGroup, Pn as LimitName, Pt as LimitReached, Q as dec, Qn as MailboxFull, Qt as Group, R as Verdict, Rn as RunRecord, Rt as PlainArg, S as PumpedRequest, Sn as TimerImpl, Sr as SourceSpan, St as CapabilityDefiner, T as RestoreOptions, Tn as consoleCapability, Tr as TokType, Tt as CoordinatedLifecycle, U as RunAncestry, Un as deliver, Ut as SegmentContext, V as CausalWork, Vn as callFunction, Vt as ReleaseReason, W as RunDiscarded, Wn as loadScript, Wt as SegmentCoordinator, X as bytes, Xn as LoadDiagnostic, Xt as shape, Y as bool, Yn as HostErrorCode, Yt as defineCapability, Z as civilDate, Zn as LoadError, Zt as Core, _ as LoadOptions, _n as LocaleImpl, _r as SemanticName, _t as PropDef, an as httpCapability, ar as EventEntry, at as quantity, b as PumpOptions, bn as ConsoleImpl, br as SemanticToken, bt as Call, cn as StoreImpl, cr as UnwindEntry, d as Counters, dn as SqlParams, dr as BindingKind, dt as nowMicros, en as Versions, er as SendFailedReason, f as Decided, fn as SqlRows, fr as ExportKind, ft as parseInstant, g as Inspection, gn as sqliteCapability, gr as SemanticElement, gt as ObjectKindDef, h as GroupOptions, hn as SqliteImpl, hr as NameRole, ht as ObjectKind, in as HttpServerImpl, ir as EventBranch, it as num, jn as codeIdentity, jr as Trivia, jt as Grant, k as ScriptCodeRequest, kn as LibrarySource, kr as SyntaxNode, kt as FieldShape, l as CancellationOptions, ln as add, lr as disassemble, lt as text, m as EffectFailure, mn as SqliteBinding, mr as LibraryExport, mt as ObjectElements, nn as HttpClientImpl, nr as BodyKind, nt as map, on as UserImpl, or as Instruction, ot as range, p as Deciding, pn as SqlValue, pr as FunctionContract, pt as HostObject, q as Kind, qn as waitUs, qt as Shape, rn as HttpImpl, rr as CodeUnit, rt as nothing, sn as userCapability, sr as Operand, st as record, tn as coreVersions, tr as Body, tt as list, u as CarryOver, un as storeCapability, ur as Binding, ut as formatInstant, v as Message, vn as localeCapability, vr as SemanticNode, vt as defineObjectKind, w as Requested, wn as clockCapability, wr as Mode, wt as ChargeResult, x as PumpResult, xn as Costs, xr as SemanticTree, xt as CapabilityDef, y as PendingCall, yn as CalendarImpl, yr as SemanticScope, yt as GrantDecls, z as newGroup, zn as Script, zt as PlainResult } from "./debug
|
|
2
|
+
import { $ as instant, $n as ScriptError, $t as Script$1, A as ScriptSources, An as OperationRef, Ar as SyntaxRule, At as FireOp, B as restore, Bn as UnitLoadError, Bt as ReleaseHook, C as Report, Cn as calendarCapability, Cr as Lexer, Ct as ChargeRequest, Dn as Library, Dr as SyntaxElement, Dt as EffectResult, E as RestoreResult, En as timerCapability, Er as Token, Et as Cost, Fn as Limits, Ft as Metering, G as RunStarted, Gn as NotImplementedError, Gt as SegmentGrant, H as RunAccounting, Hn as defaultLimits, Ht as ScopeDecl, In as Outcome, It as Operation, J as Value, Jn as HostError, Jt as SuspendingOp, K as Decimal, Kn as canConvert, Kt as SegmentLifecycle, L as TsScript, Ln as Run, Lt as Operations, Mn as compileLibrary, Mr as syntaxSelector, Mt as GrantContext, N as Settlement, Nr as syntaxText, Nt as ImmediateOp, O as SaveOptions, On as LibraryOptions, Or as SyntaxErrorCode, Ot as ErrorDecl, P as TsGroup, Pn as LimitName, Pt as LimitReached, Q as dec, Qn as MailboxFull, Qt as Group, R as Verdict, Rn as RunRecord, Rt as PlainArg, S as PumpedRequest, Sn as TimerImpl, Sr as SourceSpan, St as CapabilityDefiner, T as RestoreOptions, Tn as consoleCapability, Tr as TokType, Tt as CoordinatedLifecycle, U as RunAncestry, Un as deliver, Ut as SegmentContext, V as CausalWork, Vn as callFunction, Vt as ReleaseReason, W as RunDiscarded, Wn as loadScript, Wt as SegmentCoordinator, X as bytes, Xn as LoadDiagnostic, Xt as shape, Y as bool, Yn as HostErrorCode, Yt as defineCapability, Z as civilDate, Zn as LoadError, Zt as Core, _ as LoadOptions, _n as LocaleImpl, _r as SemanticName, _t as PropDef, an as httpCapability, ar as EventEntry, at as quantity, b as PumpOptions, bn as ConsoleImpl, br as SemanticToken, bt as Call, cn as StoreImpl, cr as UnwindEntry, d as Counters, dn as SqlParams, dr as BindingKind, dt as nowMicros, en as Versions, er as SendFailedReason, f as Decided, fn as SqlRows, fr as ExportKind, ft as parseInstant, g as Inspection, gn as sqliteCapability, gr as SemanticElement, gt as ObjectKindDef, h as GroupOptions, hn as SqliteImpl, hr as NameRole, ht as ObjectKind, in as HttpServerImpl, ir as EventBranch, it as num, jn as codeIdentity, jr as Trivia, jt as Grant, k as ScriptCodeRequest, kn as LibrarySource, kr as SyntaxNode, kt as FieldShape, l as CancellationOptions, ln as add, lr as disassemble, lt as text, m as EffectFailure, mn as SqliteBinding, mr as LibraryExport, mt as ObjectElements, nn as HttpClientImpl, nr as BodyKind, nt as map, on as UserImpl, or as Instruction, ot as range, p as Deciding, pn as SqlValue, pr as FunctionContract, pt as HostObject, q as Kind, qn as waitUs, qt as Shape, rn as HttpImpl, rr as CodeUnit, rt as nothing, sn as userCapability, sr as Operand, st as record, tn as coreVersions, tr as Body, tt as list, u as CarryOver, un as storeCapability, ur as Binding, ut as formatInstant, v as Message, vn as localeCapability, vr as SemanticNode, vt as defineObjectKind, w as Requested, wn as clockCapability, wr as Mode, wt as ChargeResult, x as PumpResult, xn as Costs, xr as SemanticTree, xt as CapabilityDef, y as PendingCall, yn as CalendarImpl, yr as SemanticScope, yt as GrantDecls, z as newGroup, zn as Script, zt as PlainResult } from "./debug--Of4MSLw.js";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import { A as units, C as RecoveringParseResult, D as parseSourceRecovering, E as parseSource, O as builtins, S as ParseResult, T as parseEntry, _ as checkSource, a as LoweringError, b as EntryResult, c as lowerTree, d as kindNames, f as CheckOptions, g as SemanticResult, h as DiagnosticCode, i as CompileResult, k as grammar, l as CreateGroupOptions, m as Diagnostic, n as declarationStart, o as compileSource, p as CheckResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as checkSyntax, w as RecoveryDiagnostic, x as ParseError, y as EntryKind } from "./lean-
|
|
5
|
-
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-
|
|
6
|
-
import { n as createCore, t as TsCore } from "./core-
|
|
7
|
-
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-
|
|
4
|
+
import { A as units, C as RecoveringParseResult, D as parseSourceRecovering, E as parseSource, O as builtins, S as ParseResult, T as parseEntry, _ as checkSource, a as LoweringError, b as EntryResult, c as lowerTree, d as kindNames, f as CheckOptions, g as SemanticResult, h as DiagnosticCode, i as CompileResult, k as grammar, l as CreateGroupOptions, m as Diagnostic, n as declarationStart, o as compileSource, p as CheckResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as checkSyntax, w as RecoveryDiagnostic, x as ParseError, y as EntryKind } from "./lean-DiS9rUcn.js";
|
|
5
|
+
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-mpivREn-.js";
|
|
6
|
+
import { n as createCore, t as TsCore } from "./core-egHbNmve.js";
|
|
7
|
+
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-8WCimMop.js";
|
|
8
8
|
//#region src/generated/stdlib.d.ts
|
|
9
9
|
/** Every stdlib Library. */
|
|
10
10
|
export declare const allStdlib: readonly StdlibLibrary[];
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ 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 { Bt as formatInstant, G as record, Gt as parseInstant, H as quantity, L as nothing, N as map, Q as text, R as num, T as instant, Ut as nowMicros, W as range, an as builtins, c as Decimal, d as bytes, i as ScriptError, k as list, l as Value, m as civilDate, n as LoadError, r as MailboxFull, sn as grammar, t as HostError, u as bool, un as units, v as dec } from "./errors-D11zizZg.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-BpzTo0k4.js";
|
|
11
11
|
import { t as defineObjectKind } from "./objects-DmUc0lha.js";
|
|
12
12
|
import { $ as disassemble, Ct as validMessageSelector, H as waitUs, Tt as Lexer, _t as defineCapability, c as canConvert, ht as LimitReached, t as NotImplementedError, xt as shape } from "./operations-DnCcztkZ.js";
|
|
13
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 kindNames } from "./checker-CUhn2XaM.js";
|
|
@@ -16,7 +16,7 @@ import { c as readDisplay, r as decodeValue } from "./readers-CsvlahLi.js";
|
|
|
16
16
|
import { t as encodeValue } from "./encoding-RUuES_e4.js";
|
|
17
17
|
import { a as sqliteCapability, c as talk, i as httpCapability, o as fromValue, r as handlersOf, s as toValue, t as inlineGrants } from "./inline-grants-XbX9HL_w.js";
|
|
18
18
|
import { o as decodeJson, s as encodeJson } from "./http-fetch-DFwVIOQg.js";
|
|
19
|
-
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-
|
|
19
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-aCvN6y52.js";
|
|
20
20
|
import { n as localeCapability, t as userCapability } from "./user-capability-BcRQyyEw.js";
|
|
21
21
|
import { a as clockCapability, i as calendarCapability, l as timerCapability, o as consoleCapability, r as storeCapability, t as add } from "./store-capability-BrUUAwVS.js";
|
|
22
22
|
//#region src/generated/stdlib.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Er as Token, Or as SyntaxErrorCode, Sr as SourceSpan, Zt as Core, kr as SyntaxNode, mr as LibraryExport, rr as CodeUnit, ur as Binding, xr as SemanticTree, yt as GrantDecls } from "./debug
|
|
3
|
-
import { r as DrivenGroupOptions } from "./driver-
|
|
4
|
-
import { c as DrivenGroup } from "./manifest-
|
|
2
|
+
import { Er as Token, Or as SyntaxErrorCode, Sr as SourceSpan, Zt as Core, kr as SyntaxNode, mr as LibraryExport, rr as CodeUnit, ur as Binding, xr as SemanticTree, yt as GrantDecls } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { r as DrivenGroupOptions } from "./driver-BIm1mL77.js";
|
|
4
|
+
import { c as DrivenGroup } from "./manifest-mpivREn-.js";
|
|
5
5
|
//#region src/generated/syntax.d.ts
|
|
6
6
|
declare const grammar: {
|
|
7
7
|
reserved: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { in as unicodeVersion } from "./errors-D11zizZg.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-BpzTo0k4.js";
|
|
4
4
|
import { t as defineObjectKind } from "./objects-DmUc0lha.js";
|
|
5
5
|
import { _t as defineCapability, ft as languageVersion, ut as costModel } from "./operations-DnCcztkZ.js";
|
|
6
6
|
import { a as sqliteCapability, i as httpCapability, n as createGroup$1 } from "./inline-grants-XbX9HL_w.js";
|
|
@@ -11,7 +11,7 @@ const coreVersions = Object.freeze({
|
|
|
11
11
|
language: languageVersion,
|
|
12
12
|
costModel: String(costModel.version),
|
|
13
13
|
unicode: unicodeVersion,
|
|
14
|
-
core: "ts/0.
|
|
14
|
+
core: "ts/0.6.0",
|
|
15
15
|
saveFormat: String(1)
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
package/lean.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as ScriptError, $t as Script$1, A as ScriptSources, An as OperationRef, Ar as SyntaxRule, At as FireOp, B as restore, Bn as UnitLoadError, Bt as ReleaseHook, C as Report, Cn as calendarCapability, Cr as Lexer, Ct as ChargeRequest, Dn as Library, Dr as SyntaxElement, Dt as EffectResult, E as RestoreResult, En as timerCapability, Er as Token, Et as Cost, Fn as Limits, Ft as Metering, G as RunStarted, Gn as NotImplementedError, Gt as SegmentGrant, H as RunAccounting, Hn as defaultLimits, Ht as ScopeDecl, In as Outcome, It as Operation, J as Value, Jn as HostError, Jt as SuspendingOp, K as Decimal, Kn as canConvert, Kt as SegmentLifecycle, L as TsScript, Ln as Run, Lt as Operations, Mn as compileLibrary, Mr as syntaxSelector, Mt as GrantContext, N as Settlement, Nr as syntaxText, Nt as ImmediateOp, O as SaveOptions, On as LibraryOptions, Or as SyntaxErrorCode, Ot as ErrorDecl, P as TsGroup, Pn as LimitName, Pt as LimitReached, Q as dec, Qn as MailboxFull, Qt as Group, R as Verdict, Rn as RunRecord, Rt as PlainArg, S as PumpedRequest, Sn as TimerImpl, Sr as SourceSpan, St as CapabilityDefiner, T as RestoreOptions, Tn as consoleCapability, Tr as TokType, Tt as CoordinatedLifecycle, U as RunAncestry, Un as deliver, Ut as SegmentContext, V as CausalWork, Vn as callFunction, Vt as ReleaseReason, W as RunDiscarded, Wn as loadScript, Wt as SegmentCoordinator, X as bytes, Xn as LoadDiagnostic, Xt as shape, Y as bool, Yn as HostErrorCode, Yt as defineCapability, Z as civilDate, Zn as LoadError, Zt as Core, _ as LoadOptions, _n as LocaleImpl, _r as SemanticName, _t as PropDef, an as httpCapability, ar as EventEntry, at as quantity, b as PumpOptions, bn as ConsoleImpl, br as SemanticToken, bt as Call, cn as StoreImpl, cr as UnwindEntry, d as Counters, dn as SqlParams, dr as BindingKind, dt as nowMicros, en as Versions, er as SendFailedReason, f as Decided, fn as SqlRows, fr as ExportKind, ft as parseInstant, g as Inspection, gn as sqliteCapability, gr as SemanticElement, gt as ObjectKindDef, h as GroupOptions, hn as SqliteImpl, hr as NameRole, ht as ObjectKind, in as HttpServerImpl, ir as EventBranch, it as num, jn as codeIdentity, jr as Trivia, jt as Grant, k as ScriptCodeRequest, kn as LibrarySource, kr as SyntaxNode, kt as FieldShape, l as CancellationOptions, ln as add, lr as disassemble, lt as text, m as EffectFailure, mn as SqliteBinding, mr as LibraryExport, mt as ObjectElements, nn as HttpClientImpl, nr as BodyKind, nt as map, on as UserImpl, or as Instruction, ot as range, p as Deciding, pn as SqlValue, pr as FunctionContract, pt as HostObject, q as Kind, qn as waitUs, qt as Shape, rn as HttpImpl, rr as CodeUnit, rt as nothing, sn as userCapability, sr as Operand, st as record, tn as coreVersions, tr as Body, tt as list, u as CarryOver, un as storeCapability, ur as Binding, ut as formatInstant, v as Message, vn as localeCapability, vr as SemanticNode, vt as defineObjectKind, w as Requested, wn as clockCapability, wr as Mode, wt as ChargeResult, x as PumpResult, xn as Costs, xr as SemanticTree, xt as CapabilityDef, y as PendingCall, yn as CalendarImpl, yr as SemanticScope, yt as GrantDecls, z as newGroup, zn as Script, zt as PlainResult } from "./debug
|
|
2
|
+
import { $ as instant, $n as ScriptError, $t as Script$1, A as ScriptSources, An as OperationRef, Ar as SyntaxRule, At as FireOp, B as restore, Bn as UnitLoadError, Bt as ReleaseHook, C as Report, Cn as calendarCapability, Cr as Lexer, Ct as ChargeRequest, Dn as Library, Dr as SyntaxElement, Dt as EffectResult, E as RestoreResult, En as timerCapability, Er as Token, Et as Cost, Fn as Limits, Ft as Metering, G as RunStarted, Gn as NotImplementedError, Gt as SegmentGrant, H as RunAccounting, Hn as defaultLimits, Ht as ScopeDecl, In as Outcome, It as Operation, J as Value, Jn as HostError, Jt as SuspendingOp, K as Decimal, Kn as canConvert, Kt as SegmentLifecycle, L as TsScript, Ln as Run, Lt as Operations, Mn as compileLibrary, Mr as syntaxSelector, Mt as GrantContext, N as Settlement, Nr as syntaxText, Nt as ImmediateOp, O as SaveOptions, On as LibraryOptions, Or as SyntaxErrorCode, Ot as ErrorDecl, P as TsGroup, Pn as LimitName, Pt as LimitReached, Q as dec, Qn as MailboxFull, Qt as Group, R as Verdict, Rn as RunRecord, Rt as PlainArg, S as PumpedRequest, Sn as TimerImpl, Sr as SourceSpan, St as CapabilityDefiner, T as RestoreOptions, Tn as consoleCapability, Tr as TokType, Tt as CoordinatedLifecycle, U as RunAncestry, Un as deliver, Ut as SegmentContext, V as CausalWork, Vn as callFunction, Vt as ReleaseReason, W as RunDiscarded, Wn as loadScript, Wt as SegmentCoordinator, X as bytes, Xn as LoadDiagnostic, Xt as shape, Y as bool, Yn as HostErrorCode, Yt as defineCapability, Z as civilDate, Zn as LoadError, Zt as Core, _ as LoadOptions, _n as LocaleImpl, _r as SemanticName, _t as PropDef, an as httpCapability, ar as EventEntry, at as quantity, b as PumpOptions, bn as ConsoleImpl, br as SemanticToken, bt as Call, cn as StoreImpl, cr as UnwindEntry, d as Counters, dn as SqlParams, dr as BindingKind, dt as nowMicros, en as Versions, er as SendFailedReason, f as Decided, fn as SqlRows, fr as ExportKind, ft as parseInstant, g as Inspection, gn as sqliteCapability, gr as SemanticElement, gt as ObjectKindDef, h as GroupOptions, hn as SqliteImpl, hr as NameRole, ht as ObjectKind, in as HttpServerImpl, ir as EventBranch, it as num, jn as codeIdentity, jr as Trivia, jt as Grant, k as ScriptCodeRequest, kn as LibrarySource, kr as SyntaxNode, kt as FieldShape, l as CancellationOptions, ln as add, lr as disassemble, lt as text, m as EffectFailure, mn as SqliteBinding, mr as LibraryExport, mt as ObjectElements, nn as HttpClientImpl, nr as BodyKind, nt as map, on as UserImpl, or as Instruction, ot as range, p as Deciding, pn as SqlValue, pr as FunctionContract, pt as HostObject, q as Kind, qn as waitUs, qt as Shape, rn as HttpImpl, rr as CodeUnit, rt as nothing, sn as userCapability, sr as Operand, st as record, tn as coreVersions, tr as Body, tt as list, u as CarryOver, un as storeCapability, ur as Binding, ut as formatInstant, v as Message, vn as localeCapability, vr as SemanticNode, vt as defineObjectKind, w as Requested, wn as clockCapability, wr as Mode, wt as ChargeResult, x as PumpResult, xn as Costs, xr as SemanticTree, xt as CapabilityDef, y as PendingCall, yn as CalendarImpl, yr as SemanticScope, yt as GrantDecls, z as newGroup, zn as Script, zt as PlainResult } from "./debug--Of4MSLw.js";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import { A as units, C as RecoveringParseResult, D as parseSourceRecovering, E as parseSource, O as builtins, S as ParseResult, T as parseEntry, _ as checkSource, a as LoweringError, b as EntryResult, c as lowerTree, d as kindNames, f as CheckOptions, g as SemanticResult, h as DiagnosticCode, i as CompileResult, k as grammar, l as CreateGroupOptions, m as Diagnostic, n as declarationStart, o as compileSource, p as CheckResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as checkSyntax, w as RecoveryDiagnostic, x as ParseError, y as EntryKind } from "./lean-
|
|
5
|
-
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-
|
|
6
|
-
import { n as createCore, t as TsCore } from "./core-
|
|
7
|
-
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-
|
|
4
|
+
import { A as units, C as RecoveringParseResult, D as parseSourceRecovering, E as parseSource, O as builtins, S as ParseResult, T as parseEntry, _ as checkSource, a as LoweringError, b as EntryResult, c as lowerTree, d as kindNames, f as CheckOptions, g as SemanticResult, h as DiagnosticCode, i as CompileResult, k as grammar, l as CreateGroupOptions, m as Diagnostic, n as declarationStart, o as compileSource, p as CheckResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as checkSyntax, w as RecoveryDiagnostic, x as ParseError, y as EntryKind } from "./lean-DiS9rUcn.js";
|
|
5
|
+
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-mpivREn-.js";
|
|
6
|
+
import { n as createCore, t as TsCore } from "./core-egHbNmve.js";
|
|
7
|
+
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-8WCimMop.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 NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, 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 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, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, newGroup, nothing, nowMicros, num, parseEntry, parseInstant, parseSource, parseSourceRecovering, quantity, range, readDisplay, record, registerStdlib, restore, shape, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
package/lean.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { Bt as formatInstant, G as record, Gt as parseInstant, H as quantity, L as nothing, N as map, Q as text, R as num, T as instant, Ut as nowMicros, W as range, an as builtins, c as Decimal, d as bytes, i as ScriptError, k as list, l as Value, m as civilDate, n as LoadError, r as MailboxFull, sn as grammar, t as HostError, u as bool, un as units, v as dec } from "./errors-D11zizZg.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-BpzTo0k4.js";
|
|
4
4
|
import { t as defineObjectKind } from "./objects-DmUc0lha.js";
|
|
5
5
|
import { $ as disassemble, Ct as validMessageSelector, H as waitUs, Tt as Lexer, _t as defineCapability, c as canConvert, ht as LimitReached, t as NotImplementedError, xt as shape } from "./operations-DnCcztkZ.js";
|
|
6
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 kindNames } from "./checker-CUhn2XaM.js";
|
|
@@ -9,7 +9,7 @@ import { c as readDisplay, r as decodeValue } from "./readers-CsvlahLi.js";
|
|
|
9
9
|
import { t as encodeValue } from "./encoding-RUuES_e4.js";
|
|
10
10
|
import { a as sqliteCapability, c as talk, i as httpCapability, o as fromValue, r as handlersOf, s as toValue, t as inlineGrants } from "./inline-grants-XbX9HL_w.js";
|
|
11
11
|
import { o as decodeJson, s as encodeJson } from "./http-fetch-DFwVIOQg.js";
|
|
12
|
-
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-
|
|
12
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-aCvN6y52.js";
|
|
13
13
|
import { n as localeCapability, t as userCapability } from "./user-capability-BcRQyyEw.js";
|
|
14
14
|
import { a as clockCapability, i as calendarCapability, l as timerCapability, o as consoleCapability, r as storeCapability, t as add } from "./store-capability-BrUUAwVS.js";
|
|
15
15
|
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, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, newGroup, nothing, nowMicros, num, parseEntry, parseInstant, parseSource, parseSourceRecovering, quantity, range, readDisplay, record, registerStdlib, restore, shape, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $t as Script, Dn as Library, J as Value, K as Decimal, Qt as Group, Zt as Core, _ as LoadOptions, ht as ObjectKind, jt as Grant, qt as Shape } from "./debug
|
|
3
|
-
import { n as Drive, r as DrivenGroupOptions } from "./driver-
|
|
2
|
+
import { $t as Script, Dn as Library, J as Value, K as Decimal, Qt as Group, Zt as Core, _ as LoadOptions, ht as ObjectKind, jt as Grant, qt as Shape } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { n as Drive, r as DrivenGroupOptions } from "./driver-BIm1mL77.js";
|
|
4
4
|
//#region src/talk.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Dedents NorthTalk source; rejects JS interpolation.
|
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-8WCimMop.js";
|
|
3
|
+
import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-C4ZiXVjv.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/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-BQsO8aPV.js";
|
|
3
3
|
export { type NotificationRouter, type RouterOptions, type RoutingResult, type WatchLimits, changed, createRouter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { C as Report, D as RunEvent, Dn as Library, E as RestoreResult, F as TsGroupOptions, Fn as Limits, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, Mn as compileLibrary, Nn as replacementLibraries, P as TsGroup, Zn as LoadError, _n as LocaleImpl, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, mn as SqliteBinding, pt as HostObject, qt as Shape, t as DebugController, xt as CapabilityDef, yn as CalendarImpl, yt as GrantDecls } from "./debug
|
|
2
|
+
import { C as Report, D as RunEvent, Dn as Library, E as RestoreResult, F as TsGroupOptions, Fn as Limits, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, Mn as compileLibrary, Nn as replacementLibraries, P as TsGroup, Zn as LoadError, _n as LocaleImpl, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, mn as SqliteBinding, pt as HostObject, qt as Shape, t as DebugController, xt as CapabilityDef, yn as CalendarImpl, yt as GrantDecls } from "./debug--Of4MSLw.js";
|
|
3
3
|
//#region src/setup.d.ts
|
|
4
4
|
type ShapeSpec = string | {
|
|
5
5
|
quantity: string;
|
|
@@ -101,6 +101,10 @@ type Setup = {
|
|
|
101
101
|
}[];
|
|
102
102
|
id: string;
|
|
103
103
|
kind: string;
|
|
104
|
+
/** The Operation, `<capability>.<operation>`, whose first call makes it. */
|
|
105
|
+
madeBy?: string;
|
|
106
|
+
/** The object it is made with as its parent, in the display form; only with madeBy. */
|
|
107
|
+
parent?: string;
|
|
104
108
|
props?: Record<string, string>;
|
|
105
109
|
}[];
|
|
106
110
|
operations?: OperationSpec[];
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value } from "./debug
|
|
2
|
+
import { J as Value } from "./debug--Of4MSLw.js";
|
|
3
3
|
//#region src/readers.d.ts
|
|
4
4
|
/** Finds the Host Object a reader names by its kind and id, or none. */
|
|
5
5
|
type ObjectResolver = (kind: string, id: string) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { E as RestoreResult, I as TsRestoreOptions, J as Value, Mt as GrantContext, O as SaveOptions, P as TsGroup, Qt as Group, bt as Call } from "./debug
|
|
3
|
-
import { t as TsCore } from "./core-
|
|
2
|
+
import { E as RestoreResult, I as TsRestoreOptions, J as Value, Mt as GrantContext, O as SaveOptions, P as TsGroup, Qt as Group, bt as Call } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { t as TsCore } from "./core-egHbNmve.js";
|
|
4
4
|
//#region src/notify/router.d.ts
|
|
5
5
|
/** A Store's four limits on its watches (Store Notifications, Limits). */
|
|
6
6
|
type WatchLimits = {
|
package/session.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value } from "./debug
|
|
3
|
-
import { C as Setup, _ as UserPrompt, a as ReplayOptions, c as parseTranscript, d as DebugAction, f as MOCK_ARGUMENTS, g as SourcePlacement, h as SessionHost, i as parseEnvelope, l as replayTranscript, m as SessionEnvironment, n as ObjectReference, o as Replayed, p as Mock, r as SessionObjects, s as TranscriptItem, t as Envelope, u as writeTranscript, v as Waiting } from "./objects-
|
|
2
|
+
import { J as Value } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { C as Setup, _ as UserPrompt, a as ReplayOptions, c as parseTranscript, d as DebugAction, f as MOCK_ARGUMENTS, g as SourcePlacement, h as SessionHost, i as parseEnvelope, l as replayTranscript, m as SessionEnvironment, n as ObjectReference, o as Replayed, p as Mock, r as SessionObjects, s as TranscriptItem, t as Envelope, u as writeTranscript, v as Waiting } from "./objects-DYq_YvaQ.js";
|
|
4
4
|
//#region src/session/describe.d.ts
|
|
5
5
|
/** One declaration of the session source, as `:describe` reads it. */
|
|
6
6
|
type DeclaredName = {
|
package/session.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { $t as lower, A as listValues, Bt as formatInstant, Gt as parseInstant, L as nothing, N as map, Q as text, R as num, W as range, Yt as characterBoundaries, an as builtins, i as ScriptError, l as Value, n as LoadError, t as HostError, u as bool } from "./errors-D11zizZg.js";
|
|
3
|
-
import { C as registeredStdlib, T as stdlibSource, a as recordLine, h as defaultLimits, i as restore, l as compileLibrary, o as traceValue } from "./group-
|
|
3
|
+
import { C as registeredStdlib, T as stdlibSource, a as recordLine, h as defaultLimits, i as restore, l as compileLibrary, o as traceValue } from "./group-BpzTo0k4.js";
|
|
4
4
|
import { o as stateOf, t as defineObjectKind } from "./objects-DmUc0lha.js";
|
|
5
5
|
import { H as waitUs, V as textForm$1, et as functionHead, lt as compareText, vt as defineValueCapability, wt as validStaticMessageName, x as integerValue, xt as shape } from "./operations-DnCcztkZ.js";
|
|
6
6
|
import { _ as viewSource, c as parseSource, f as declarationDocs, h as leadingDoc, m as functionDoc, s as parseEntry, t as checkSource } from "./checker-CUhn2XaM.js";
|
|
@@ -1770,7 +1770,7 @@ var Stubs = class Stubs {
|
|
|
1770
1770
|
if (!stub.error.entries().length) throw new Error(`The Stub for ${operation} fails`);
|
|
1771
1771
|
throw hostFailure(stub.error);
|
|
1772
1772
|
}
|
|
1773
|
-
return stub.value ?? nothing;
|
|
1773
|
+
return stub.value ?? stub.later?.() ?? nothing;
|
|
1774
1774
|
}
|
|
1775
1775
|
/** A suspending call takes a Stub for its charge, and for an error that fails it at once. */
|
|
1776
1776
|
start(operation, call, recorded) {
|
package/setup.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { A as shapeOf, C as Setup, D as capabilityOperations, E as buildSetupGroup, M as tsCore, O as immutableSetup, S as OperationSpec, T as ShapeSpec, b as MissingCapabilityError, j as shapeSpec, k as operationDeclarations, w as SetupGroup, x as ObjectRefSpec, y as CaseCore } from "./objects-
|
|
2
|
+
import { A as shapeOf, C as Setup, D as capabilityOperations, E as buildSetupGroup, M as tsCore, O as immutableSetup, S as OperationSpec, T as ShapeSpec, b as MissingCapabilityError, j as shapeSpec, k as operationDeclarations, w as SetupGroup, x as ObjectRefSpec, y as CaseCore } from "./objects-DYq_YvaQ.js";
|
|
3
3
|
export { CaseCore, MissingCapabilityError, ObjectRefSpec, OperationSpec, Setup, SetupGroup, ShapeSpec, buildSetupGroup, capabilityOperations, immutableSetup, operationDeclarations, shapeOf, shapeSpec, tsCore };
|
package/setup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { n as LoadError } from "./errors-D11zizZg.js";
|
|
3
|
-
import { i as restore, l as compileLibrary, r as newGroup, u as replacementLibraries } from "./group-
|
|
3
|
+
import { i as restore, l as compileLibrary, r as newGroup, u as replacementLibraries } from "./group-BpzTo0k4.js";
|
|
4
4
|
import { t as defineObjectKind } from "./objects-DmUc0lha.js";
|
|
5
5
|
import { xt as shape } from "./operations-DnCcztkZ.js";
|
|
6
6
|
//#region src/setup.ts
|
package/sqlite.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Wt as SegmentCoordinator, bt as Call, cn as StoreImpl, dn as SqlParams, fn as SqlRows, hn as SqliteImpl, mn as SqliteBinding } from "./debug
|
|
3
|
-
import { a as Stores, r as StoreQuotas } from "./engine-
|
|
2
|
+
import { Wt as SegmentCoordinator, bt as Call, cn as StoreImpl, dn as SqlParams, fn as SqlRows, hn as SqliteImpl, mn as SqliteBinding } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { a as Stores, r as StoreQuotas } from "./engine-DbDcopGM.js";
|
|
4
4
|
//#region src/sqlite/database.d.ts
|
|
5
5
|
/** The table that keeps a database's Stores, which no `sqlite` Grant may use. */
|
|
6
6
|
export declare const STORE_TABLE = "store";
|
package/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { n as RouterOptions } from "./router-
|
|
3
|
-
import { a as Stores, c as sessionQuotas, i as StoreStateUnknownError, l as sessionWatchLimits, n as StoreContentsError, o as decodeContents, r as StoreQuotas, s as encodeContents, t as StoreBackend } from "./engine-
|
|
2
|
+
import { n as RouterOptions } from "./router-BQsO8aPV.js";
|
|
3
|
+
import { a as Stores, c as sessionQuotas, i as StoreStateUnknownError, l as sessionWatchLimits, n as StoreContentsError, o as decodeContents, r as StoreQuotas, s as encodeContents, t as StoreBackend } from "./engine-DbDcopGM.js";
|
|
4
4
|
//#region src/store/memory.d.ts
|
|
5
5
|
/** A backend that keeps nothing outside the engine's own copy. */
|
|
6
6
|
export declare const memoryBackend: () => StoreBackend;
|
package/wasm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as ScriptError, $t as Script, An as OperationRef, At as FireOp, Bt as ReleaseHook, C as Report, Ct as ChargeRequest, Dn as Library, Dt as EffectResult, E as RestoreResult, Et as Cost, Fn as Limits, Ft as Metering, G as RunStarted, Gt as SegmentGrant, H as RunAccounting, Ht as ScopeDecl, In as Outcome, It as Operation, J as Value, Jn as HostError, Jt as SuspendingOp, K as Decimal, Kt as SegmentLifecycle, Lt as Operations, Mt as GrantContext, N as Settlement, Nt as ImmediateOp, Ot as ErrorDecl, Pn as LimitName, Pt as LimitReached, Q as dec, Qn as MailboxFull, Qt as Group, R as Verdict, Rt as PlainArg, S as PumpedRequest, Sn as TimerImpl, St as CapabilityDefiner, T as RestoreOptions, Tt as CoordinatedLifecycle, U as RunAncestry, Ut as SegmentContext, V as CausalWork, Vt as ReleaseReason, W as RunDiscarded, Wt as SegmentCoordinator, X as bytes, Xn as LoadDiagnostic, Xt as shape, Y as bool, Yn as HostErrorCode, Yt as defineCapability, Z as civilDate, Zn as LoadError, Zt as Core, _ as LoadOptions, _n as LocaleImpl, _t as PropDef, at as quantity, b as PumpOptions, bn as ConsoleImpl, bt as Call, cn as StoreImpl, d as Counters, dn as SqlParams, dt as nowMicros, en as Versions, er as SendFailedReason, f as Decided, fn as SqlRows, ft as parseInstant, g as Inspection, gt as ObjectKindDef, h as GroupOptions, hn as SqliteImpl, ht as ObjectKind, in as HttpServerImpl, it as num, jt as Grant, kn as LibrarySource, kt as FieldShape, l as CancellationOptions, ln as add, lt as text, m as EffectFailure, mn as SqliteBinding, mt as ObjectElements, nn as HttpClientImpl, nt as map, on as UserImpl, ot as range, p as Deciding, pn as SqlValue, pt as HostObject, q as Kind, qt as Shape, rn as HttpImpl, rt as nothing, st as record, tt as list, u as CarryOver, ut as formatInstant, v as Message, w as Requested, wt as ChargeResult, x as PumpResult, xn as Costs, xt as CapabilityDef, y as PendingCall, yn as CalendarImpl, yt as GrantDecls, zt as PlainResult } from "./debug
|
|
3
|
-
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, l as createGroup, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, s as CreateGroupOptions, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-
|
|
4
|
-
import { a as decodeValue, n as Json, o as readDisplay } from "./readers-
|
|
5
|
-
import { t as BinaryValueOptions } from "./binary-value-
|
|
2
|
+
import { $ as instant, $n as ScriptError, $t as Script, An as OperationRef, At as FireOp, Bt as ReleaseHook, C as Report, Ct as ChargeRequest, Dn as Library, Dt as EffectResult, E as RestoreResult, Et as Cost, Fn as Limits, Ft as Metering, G as RunStarted, Gt as SegmentGrant, H as RunAccounting, Ht as ScopeDecl, In as Outcome, It as Operation, J as Value, Jn as HostError, Jt as SuspendingOp, K as Decimal, Kt as SegmentLifecycle, Lt as Operations, Mt as GrantContext, N as Settlement, Nt as ImmediateOp, Ot as ErrorDecl, Pn as LimitName, Pt as LimitReached, Q as dec, Qn as MailboxFull, Qt as Group, R as Verdict, Rt as PlainArg, S as PumpedRequest, Sn as TimerImpl, St as CapabilityDefiner, T as RestoreOptions, Tt as CoordinatedLifecycle, U as RunAncestry, Ut as SegmentContext, V as CausalWork, Vt as ReleaseReason, W as RunDiscarded, Wt as SegmentCoordinator, X as bytes, Xn as LoadDiagnostic, Xt as shape, Y as bool, Yn as HostErrorCode, Yt as defineCapability, Z as civilDate, Zn as LoadError, Zt as Core, _ as LoadOptions, _n as LocaleImpl, _t as PropDef, at as quantity, b as PumpOptions, bn as ConsoleImpl, bt as Call, cn as StoreImpl, d as Counters, dn as SqlParams, dt as nowMicros, en as Versions, er as SendFailedReason, f as Decided, fn as SqlRows, ft as parseInstant, g as Inspection, gt as ObjectKindDef, h as GroupOptions, hn as SqliteImpl, ht as ObjectKind, in as HttpServerImpl, it as num, jt as Grant, kn as LibrarySource, kt as FieldShape, l as CancellationOptions, ln as add, lt as text, m as EffectFailure, mn as SqliteBinding, mt as ObjectElements, nn as HttpClientImpl, nt as map, on as UserImpl, ot as range, p as Deciding, pn as SqlValue, pt as HostObject, q as Kind, qt as Shape, rn as HttpImpl, rt as nothing, st as record, tt as list, u as CarryOver, ut as formatInstant, v as Message, w as Requested, wt as ChargeResult, x as PumpResult, xn as Costs, xt as CapabilityDef, y as PendingCall, yn as CalendarImpl, yt as GrantDecls, zt as PlainResult } from "./debug--Of4MSLw.js";
|
|
3
|
+
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, l as createGroup, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, s as CreateGroupOptions, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-mpivREn-.js";
|
|
4
|
+
import { a as decodeValue, n as Json, o as readDisplay } from "./readers-8WCimMop.js";
|
|
5
|
+
import { t as BinaryValueOptions } from "./binary-value-C4ZiXVjv.js";
|
|
6
6
|
//#region src/wasm/reactor.d.ts
|
|
7
7
|
/** Text the reactor writes to stdout or stderr, such as a fatal error. */
|
|
8
8
|
type Diagnostics = (line: string) => void;
|
|
@@ -152,7 +152,9 @@ export declare class WasmGroup implements Group {
|
|
|
152
152
|
replaceLibrary(l: Library, carry: CarryOver): Report[];
|
|
153
153
|
/** @internal Reload and Library replacement end Runs and settle their futures. */
|
|
154
154
|
lifecycle(m: string, fields: Record<string, Frame | undefined>): Report[];
|
|
155
|
-
object<N>(kind: ObjectKind<N>, id: string, native: N
|
|
155
|
+
object<N>(kind: ObjectKind<N>, id: string, native: N, o?: {
|
|
156
|
+
parent?: HostObject;
|
|
157
|
+
}): HostObject<N>;
|
|
156
158
|
objectById(kind: string, id: string): HostObject | undefined;
|
|
157
159
|
setParent(o: HostObject, parent: HostObject | undefined): void;
|
|
158
160
|
dispose(o: HostObject): void;
|
package/wasm.js
CHANGED
|
@@ -850,6 +850,7 @@ var WasmGroup = class {
|
|
|
850
850
|
break;
|
|
851
851
|
}
|
|
852
852
|
case "unhandled": {
|
|
853
|
+
if (!r.delivery) delete r.delivery;
|
|
853
854
|
const message = field(j, "message");
|
|
854
855
|
r.message = {
|
|
855
856
|
name: textOf(field(message, "name")),
|
|
@@ -885,7 +886,7 @@ var WasmGroup = class {
|
|
|
885
886
|
#reports(ok) {
|
|
886
887
|
const rows = listOf(field(ok, "reports")).map((j) => this.#report(j));
|
|
887
888
|
for (const id of textsOf(field(ok, "gone"))) this.#settle(id, void 0, sendFailed("function gone"));
|
|
888
|
-
const unhandled = new Set(rows.flatMap((r) => r.kind === "unhandled" ? [r.delivery] : []));
|
|
889
|
+
const unhandled = new Set(rows.flatMap((r) => r.kind === "unhandled" && r.delivery ? [r.delivery] : []));
|
|
889
890
|
for (const r of rows) {
|
|
890
891
|
switch (r.kind) {
|
|
891
892
|
case "charge result":
|
|
@@ -910,7 +911,7 @@ var WasmGroup = class {
|
|
|
910
911
|
this.#runs.delete(r.run);
|
|
911
912
|
break;
|
|
912
913
|
case "unhandled":
|
|
913
|
-
this.#settle(r.delivery, void 0, sendFailed("unhandled"));
|
|
914
|
+
if (r.delivery) this.#settle(r.delivery, void 0, sendFailed("unhandled"));
|
|
914
915
|
break;
|
|
915
916
|
case "stop":
|
|
916
917
|
for (const id of r.droppedMessages) this.#settle(id, void 0, sendFailed("stopped"));
|
|
@@ -1071,12 +1072,14 @@ var WasmGroup = class {
|
|
|
1071
1072
|
this.#ready();
|
|
1072
1073
|
return reports;
|
|
1073
1074
|
}
|
|
1074
|
-
object(kind, id, native) {
|
|
1075
|
+
object(kind, id, native, o) {
|
|
1075
1076
|
if (this.#objects.has(key(kind.name, id))) throw new HostError("duplicate object id", `${kind.name} ${id}`);
|
|
1077
|
+
const parent = o?.parent ? this.#held(o.parent) : void 0;
|
|
1076
1078
|
this.#session.syncKinds();
|
|
1077
1079
|
this.send("object", {
|
|
1078
1080
|
kind: kind.name,
|
|
1079
|
-
id
|
|
1081
|
+
id,
|
|
1082
|
+
...parent ? { parent } : {}
|
|
1080
1083
|
});
|
|
1081
1084
|
const state = makeObject(kind, id, native);
|
|
1082
1085
|
this.#objects.set(key(kind.name, id), state);
|