@northtalk/ts 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{binary-value-M8v567iA.d.ts → binary-value-B93hEK7l.d.ts} +1 -1
- package/{checker-Coml0Tf9.js → checker-Q4w7rLXk.js} +21 -16
- package/{core-D4qYURer.d.ts → core-BBPI6EhG.d.ts} +1 -1
- package/{debug-C_Ob5rkl.d.ts → debug-s6QIovKS.d.ts} +18 -3
- package/debug.d.ts +1 -1
- package/debug.js +1 -1
- package/{driver-CLi_OmyQ.d.ts → driver-D5yrK3Nu.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/driver.js +1 -1
- package/{encoding-BL2ECJmg.js → encoding-B7MCQ4ii.js} +2 -2
- package/{engine-BBNHy4-F.d.ts → engine-Dy-BCoiw.d.ts} +2 -2
- package/{engine-DhBk0lTt.js → engine-OL1BveVZ.js} +6 -6
- package/{errors-P3ga1I-9.js → errors-VuwK669R.js} +34 -3
- package/{group-BqccKTWz.js → group-Ccuqwq12.js} +122 -54
- package/{http-fetch-DA-NbFIM.js → http-fetch--O27xjSW.js} +2 -2
- package/http.d.ts +1 -1
- package/http.js +4 -4
- package/index.d.ts +12 -6
- package/index.js +15 -15
- package/{inline-grants-BT2nnfLA.js → inline-grants-DmOdgSoK.js} +4 -4
- package/{lean-BJmLobmd.js → lean-BjhQvHyr.js} +10 -10
- package/{lean-CFLJ9VrX.d.ts → lean-D6DQfbqH.d.ts} +10 -124
- package/lean.d.ts +6 -5
- package/lean.js +15 -15
- package/{manifest-37x-HSxH.js → manifest-BeViDIoy.js} +3 -3
- package/manifest-l07K7nW-.d.ts +124 -0
- package/message-layer.d.ts +2 -2
- package/message-layer.js +2 -2
- package/notify.d.ts +1 -1
- package/notify.js +1 -1
- package/{objects-DE6kRk0r.js → objects-TarIKBL8.js} +1 -1
- package/{objects-DVlpWsi0.d.ts → objects-q0lnCK-4.d.ts} +2 -1
- package/{operations-CGjDlkGU.js → operations-BAELnqwf.js} +62 -45
- package/package.json +1 -1
- package/{peer-capability-elnbQy-J.js → peer-capability-B8eKbljR.js} +7 -5
- package/peer.d.ts +8 -1
- package/peer.js +29 -12
- package/{readers-ChQ0e92c.d.ts → readers-AeB1bJ--.d.ts} +1 -1
- package/{readers-yMS1eAOp.js → readers-BG8g59qS.js} +1 -1
- package/{request-pump-binary-BS1J8DF2.js → request-pump-binary-87klb6sX.js} +9 -4
- package/{router-Bm7A2kjt.js → router-DXmPA-qi.js} +4 -4
- package/{router-D0rf5SkW.d.ts → router-DXoJ_2Z4.d.ts} +2 -2
- package/session.d.ts +2 -2
- package/session.js +12 -12
- package/setup.d.ts +2 -2
- package/setup.js +6 -5
- package/sqlite.d.ts +2 -2
- package/sqlite.js +5 -5
- package/{store-D80OlpyG.js → store-DzpyWjt2.js} +2 -2
- package/{store-capability-DBLlWaNO.js → store-capability-CxQJ_Huz.js} +3 -3
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-D6hGa3eF.js → user-capability-ClYd8Vln.js} +3 -3
- package/wasm.d.ts +5 -5
- package/wasm.js +15 -13
- package/index-CBuczWK0.d.ts +0 -9
package/wasm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $t as
|
|
3
|
-
import {
|
|
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, $t as shape, At as FireOp, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Ct as ChargeRequest, Dn as Costs, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Et as Cost, Fn as Library, Ft as Metering, G as RunStarted, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, It as Operation, J as Value, Jt as SuspendingOp, K as Decimal, Kt as SegmentLifecycle, Ln as LibrarySource, Lt as Operations, Mt as GrantContext, N as Settlement, Nt as ImmediateOp, On as MusicalClockImpl, Ot as ErrorDecl, Pt as LimitReached, Q as dec, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rt as PlainArg, S as PumpedRequest, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xt as defineCapability, Y as bool, Yt as conforms, Z as civilDate, Zt as explain, _ as LoadOptions, _n as SqlParams, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dt as nowMicros, en as Core, f as Decided, fn as UserImpl, ft as parseInstant, g as Inspection, gt as ObjectKindDef, h as GroupOptions, hn as add, ht as ObjectKind, ir as LoadDiagnostic, it as num, jt as Grant, kn as TimerImpl, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lt as text, m as EffectFailure, mn as StoreImpl, mt as ObjectElements, nn as Script, nr as HostError, nt as map, or as MailboxFull, ot as range, p as Deciding, pt as HostObject, q as Kind, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sr as ScriptError, st as record, tn as Group, tt as list, u as CarryOver, un as HttpServerImpl, ut as formatInstant, v as Message, vn as SqlRows, w as Requested, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yt as GrantDecls, zt as PlainResult } from "./debug-s6QIovKS.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-l07K7nW-.js";
|
|
4
|
+
import { a as decodeValue, n as Json, o as readDisplay } from "./readers-AeB1bJ--.js";
|
|
5
|
+
import { t as BinaryValueOptions } from "./binary-value-B93hEK7l.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;
|
|
@@ -253,4 +253,4 @@ export declare const defaultLimits: Readonly<{
|
|
|
253
253
|
cleanupBudget: number;
|
|
254
254
|
}>;
|
|
255
255
|
//#endregion
|
|
256
|
-
export { type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type ConsoleImpl, type CoordinatedLifecycle, type Core, type CoreOptions, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type DrivenGroup, type EffectFailure, type EffectResult, type ErrorDecl, type FieldShape, type FireOp, type FromValueOptions, 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 Kind, type Library, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type MusicalClockImpl, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operation, type OperationRef, type Operations, type Outcome, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, type RunAccounting, type RunAncestry, type RunDiscarded, type RunStarted, type ScopeDecl, type Script, ScriptError, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SendFailedReason, type Settlement, type Shape, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StoreImpl, type SuspendingOp, type TimerImpl, type ToValueOptions, type UserImpl, Value, type Verdict, type Versions, type WasmSource, add, bool, bytes, civilDate, createGroup, dec, decodeJson, decodeValue, encodeJson, encodeValue, exportManifest, formatInstant, fromValue, handlersOf, inlineGrants, instant, list, map, nothing, nowMicros, num, operationDeclarations, parseInstant, quantity, range, readDisplay, record, shape, talk, text, toValue };
|
|
256
|
+
export { type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type ConsoleImpl, type CoordinatedLifecycle, type Core, type CoreOptions, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type DrivenGroup, type EffectFailure, type EffectResult, type ErrorDecl, type FieldShape, type FireOp, type FromValueOptions, 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 Kind, type Library, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type MusicalClockImpl, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operation, type OperationRef, type Operations, type Outcome, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, type RunAccounting, type RunAncestry, type RunDiscarded, type RunStarted, type ScopeDecl, type Script, ScriptError, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SendFailedReason, type Settlement, type Shape, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StoreImpl, type SuspendingOp, type TimerImpl, type ToValueOptions, type UserImpl, Value, type Verdict, type Versions, type WasmSource, add, bool, bytes, civilDate, conforms, createGroup, dec, decodeJson, decodeValue, encodeJson, encodeValue, explain, exportManifest, formatInstant, fromValue, handlersOf, inlineGrants, instant, list, map, nothing, nowMicros, num, operationDeclarations, parseInstant, quantity, range, readDisplay, record, shape, talk, text, toValue };
|
package/wasm.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
import { G as
|
|
3
|
-
import { a as rebindObject, n as makeObject, t as defineObjectKind } from "./objects-
|
|
4
|
-
import {
|
|
5
|
-
import { c as CallMeter, i as operationData, n as exportManifest, o as shapeData, s as invoke } from "./manifest-
|
|
2
|
+
import { D as instant, G as patternValue, H as num, J as range, K as quantity, L as map, N as list, Qt as parseInstant, U as objectValue, V as nothing, X as requireArgs, Xt as nowMicros, Y as record, Z as requireValue, b as dec, c as Decimal, d as bytes, g as civilDate, i as ScriptError, it as text, l as Value, n as LoadError, o as invalidValue, qt as formatInstant, r as MailboxFull, s as sendFailed, t as HostError, u as bool, w as functionValue } from "./errors-VuwK669R.js";
|
|
3
|
+
import { a as rebindObject, n as makeObject, t as defineObjectKind } from "./objects-TarIKBL8.js";
|
|
4
|
+
import { Dt as shape, Et as operationDeclarations, bt as defineCapability, gt as LimitReached, mt as limitDefaults, vt as conforms, wt as explain } from "./operations-BAELnqwf.js";
|
|
5
|
+
import { c as CallMeter, i as operationData, n as exportManifest, o as shapeData, s as invoke } from "./manifest-BeViDIoy.js";
|
|
6
6
|
import { n as trackOperation } from "./operation-promises-ClA1BTaS.js";
|
|
7
7
|
import { n as toBase64, t as fromBase64 } from "./base64-CDO-a06R.js";
|
|
8
|
-
import { a as fromJson, c as readDisplay, l as readOrderedJSON, n as JsonObject, o as isJsonNumber, r as decodeValue, s as isJsonObject, t as JsonNumber } from "./readers-
|
|
9
|
-
import { a as clockCapability, d as timerCapability, i as calendarCapability, l as isMusicalClock, n as quoteJSON, o as consoleCapability, p as standardChecks, r as MUSICAL_CLOCK, t as encodeValue, u as musicalClockCapability } from "./encoding-
|
|
10
|
-
import { a as peerKind, i as peerCapability } from "./peer-capability-
|
|
11
|
-
import { a as sqliteCapability, c as talk, i as httpCapability, n as createGroup, o as fromValue, r as handlersOf, s as toValue, t as inlineGrants } from "./inline-grants-
|
|
12
|
-
import { o as decodeJson, s as encodeJson } from "./http-fetch
|
|
13
|
-
import { n as localeCapability, t as userCapability } from "./user-capability-
|
|
14
|
-
import { r as storeCapability, t as add } from "./store-capability-
|
|
15
|
-
import { a as encodeResult, c as isRequestPumpBinary, d as valueNode, i as encodeBinaryFrame, l as placeholderValues, n as decodeBinaryFrame, o as heldValue, r as decodeNeed, s as isBinaryNeed, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-
|
|
8
|
+
import { a as fromJson, c as readDisplay, l as readOrderedJSON, n as JsonObject, o as isJsonNumber, r as decodeValue, s as isJsonObject, t as JsonNumber } from "./readers-BG8g59qS.js";
|
|
9
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, l as isMusicalClock, n as quoteJSON, o as consoleCapability, p as standardChecks, r as MUSICAL_CLOCK, t as encodeValue, u as musicalClockCapability } from "./encoding-B7MCQ4ii.js";
|
|
10
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-B8eKbljR.js";
|
|
11
|
+
import { a as sqliteCapability, c as talk, i as httpCapability, n as createGroup, o as fromValue, r as handlersOf, s as toValue, t as inlineGrants } from "./inline-grants-DmOdgSoK.js";
|
|
12
|
+
import { o as decodeJson, s as encodeJson } from "./http-fetch--O27xjSW.js";
|
|
13
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-ClYd8Vln.js";
|
|
14
|
+
import { r as storeCapability, t as add } from "./store-capability-CxQJ_Huz.js";
|
|
15
|
+
import { a as encodeResult, c as isRequestPumpBinary, d as valueNode, i as encodeBinaryFrame, l as placeholderValues, n as decodeBinaryFrame, o as heldValue, r as decodeNeed, s as isBinaryNeed, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-87klb6sX.js";
|
|
16
16
|
//#region src/wasm/wire.ts
|
|
17
17
|
const raw = Symbol("raw JSON");
|
|
18
18
|
const sep = Symbol("separator");
|
|
@@ -1059,6 +1059,7 @@ var WasmGroup = class {
|
|
|
1059
1059
|
source: o.source,
|
|
1060
1060
|
grants: this.#grantHandles(grants),
|
|
1061
1061
|
grantsAsUsed: o.grantsAsUsed,
|
|
1062
|
+
forbidSuspension: o.forbidSuspension || void 0,
|
|
1062
1063
|
owner: o.owner ? this.#objectRef(o.owner) : void 0,
|
|
1063
1064
|
objects: o.objects ? Object.fromEntries(Object.entries(o.objects).map(([n, h]) => [n, this.#objectRef(h)])) : void 0,
|
|
1064
1065
|
limits: {
|
|
@@ -1298,6 +1299,7 @@ var WasmGroup = class {
|
|
|
1298
1299
|
return {
|
|
1299
1300
|
name: textOf(field(s, "name")),
|
|
1300
1301
|
...disabled.length ? { disabledGrants: disabled } : {},
|
|
1302
|
+
...field(s, "forbidSuspension") === true ? { forbidSuspension: true } : {},
|
|
1301
1303
|
vars: listOf(field(s, "vars")).map((pair) => {
|
|
1302
1304
|
const [name, v] = listOf(pair);
|
|
1303
1305
|
return [textOf(name), decode(this.#codec, v)];
|
|
@@ -1793,4 +1795,4 @@ const createCore = async (o = {}) => new WasmCore(await compile(o.wasm ?? new UR
|
|
|
1793
1795
|
/** Chapter 9's default Limits, which the reactor shares. */
|
|
1794
1796
|
const defaultLimits = Object.freeze({ ...limitDefaults });
|
|
1795
1797
|
//#endregion
|
|
1796
|
-
export { Decimal, HostError, InstanceLostError, LimitReached, LoadError, MailboxFull, ScriptError, Value, WasmCore, WasmGroup, WasmScript, add, bool, bytes, civilDate, createCore, createGroup, dec, decodeJson, decodeValue, defaultLimits, encodeJson, encodeValue, exportManifest, formatInstant, fromValue, handlersOf, inlineGrants, instant, list, map, nothing, nowMicros, num, operationDeclarations, parseInstant, quantity, range, readDisplay, record, shape, talk, text, toValue };
|
|
1798
|
+
export { Decimal, HostError, InstanceLostError, LimitReached, LoadError, MailboxFull, ScriptError, Value, WasmCore, WasmGroup, WasmScript, add, bool, bytes, civilDate, conforms, createCore, createGroup, dec, decodeJson, decodeValue, defaultLimits, encodeJson, encodeValue, explain, exportManifest, formatInstant, fromValue, handlersOf, inlineGrants, instant, list, map, nothing, nowMicros, num, operationDeclarations, parseInstant, quantity, range, readDisplay, record, shape, talk, text, toValue };
|
package/index-CBuczWK0.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
3
|
-
//#region src/generated/stdlib.d.ts
|
|
4
|
-
/** Every stdlib Library. */
|
|
5
|
-
declare const allStdlib: readonly StdlibLibrary[];
|
|
6
|
-
/** Every stdlib Library's source, by name. */
|
|
7
|
-
declare const stdlibSources: Record<string, string>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { stdlibSources as n, allStdlib as t };
|