@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.
Files changed (56) hide show
  1. package/{binary-value-M8v567iA.d.ts → binary-value-B93hEK7l.d.ts} +1 -1
  2. package/{checker-Coml0Tf9.js → checker-Q4w7rLXk.js} +21 -16
  3. package/{core-D4qYURer.d.ts → core-BBPI6EhG.d.ts} +1 -1
  4. package/{debug-C_Ob5rkl.d.ts → debug-s6QIovKS.d.ts} +18 -3
  5. package/debug.d.ts +1 -1
  6. package/debug.js +1 -1
  7. package/{driver-CLi_OmyQ.d.ts → driver-D5yrK3Nu.d.ts} +1 -1
  8. package/driver.d.ts +1 -1
  9. package/driver.js +1 -1
  10. package/{encoding-BL2ECJmg.js → encoding-B7MCQ4ii.js} +2 -2
  11. package/{engine-BBNHy4-F.d.ts → engine-Dy-BCoiw.d.ts} +2 -2
  12. package/{engine-DhBk0lTt.js → engine-OL1BveVZ.js} +6 -6
  13. package/{errors-P3ga1I-9.js → errors-VuwK669R.js} +34 -3
  14. package/{group-BqccKTWz.js → group-Ccuqwq12.js} +122 -54
  15. package/{http-fetch-DA-NbFIM.js → http-fetch--O27xjSW.js} +2 -2
  16. package/http.d.ts +1 -1
  17. package/http.js +4 -4
  18. package/index.d.ts +12 -6
  19. package/index.js +15 -15
  20. package/{inline-grants-BT2nnfLA.js → inline-grants-DmOdgSoK.js} +4 -4
  21. package/{lean-BJmLobmd.js → lean-BjhQvHyr.js} +10 -10
  22. package/{lean-CFLJ9VrX.d.ts → lean-D6DQfbqH.d.ts} +10 -124
  23. package/lean.d.ts +6 -5
  24. package/lean.js +15 -15
  25. package/{manifest-37x-HSxH.js → manifest-BeViDIoy.js} +3 -3
  26. package/manifest-l07K7nW-.d.ts +124 -0
  27. package/message-layer.d.ts +2 -2
  28. package/message-layer.js +2 -2
  29. package/notify.d.ts +1 -1
  30. package/notify.js +1 -1
  31. package/{objects-DE6kRk0r.js → objects-TarIKBL8.js} +1 -1
  32. package/{objects-DVlpWsi0.d.ts → objects-q0lnCK-4.d.ts} +2 -1
  33. package/{operations-CGjDlkGU.js → operations-BAELnqwf.js} +62 -45
  34. package/package.json +1 -1
  35. package/{peer-capability-elnbQy-J.js → peer-capability-B8eKbljR.js} +7 -5
  36. package/peer.d.ts +8 -1
  37. package/peer.js +29 -12
  38. package/{readers-ChQ0e92c.d.ts → readers-AeB1bJ--.d.ts} +1 -1
  39. package/{readers-yMS1eAOp.js → readers-BG8g59qS.js} +1 -1
  40. package/{request-pump-binary-BS1J8DF2.js → request-pump-binary-87klb6sX.js} +9 -4
  41. package/{router-Bm7A2kjt.js → router-DXmPA-qi.js} +4 -4
  42. package/{router-D0rf5SkW.d.ts → router-DXoJ_2Z4.d.ts} +2 -2
  43. package/session.d.ts +2 -2
  44. package/session.js +12 -12
  45. package/setup.d.ts +2 -2
  46. package/setup.js +6 -5
  47. package/sqlite.d.ts +2 -2
  48. package/sqlite.js +5 -5
  49. package/{store-D80OlpyG.js → store-DzpyWjt2.js} +2 -2
  50. package/{store-capability-DBLlWaNO.js → store-capability-CxQJ_Huz.js} +3 -3
  51. package/store.d.ts +2 -2
  52. package/store.js +2 -2
  53. package/{user-capability-D6hGa3eF.js → user-capability-ClYd8Vln.js} +3 -3
  54. package/wasm.d.ts +5 -5
  55. package/wasm.js +15 -13
  56. 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 Group, At as FireOp, Bn as LimitName, Bt as ReleaseHook, C as Report, Cn as CalendarImpl, Ct as ChargeRequest, Dn as TimerImpl, Dt as EffectResult, E as RestoreResult, En as MusicalClockImpl, Et as Cost, Fn as LibrarySource, Ft as Metering, G as RunStarted, Gt as SegmentGrant, H as RunAccounting, Hn as Outcome, Ht as ScopeDecl, In as OperationRef, It as Operation, J as Value, Jt as SuspendingOp, K as Decimal, Kt as SegmentLifecycle, Lt as Operations, Mt as GrantContext, N as Settlement, Nn as Library, Nt as ImmediateOp, Ot as ErrorDecl, Pt as LimitReached, Q as dec, Qt as Core, R as Verdict, Rt as PlainArg, S as PumpedRequest, St as CapabilityDefiner, T as RestoreOptions, Tn as Costs, Tt as CoordinatedLifecycle, U as RunAncestry, Ut as SegmentContext, V as CausalWork, Vn as Limits, Vt as ReleaseReason, W as RunDiscarded, Wt as SegmentCoordinator, X as bytes, Xt as operationDeclarations, Y as bool, Yt as defineCapability, Z as civilDate, Zt as shape, _ as LoadOptions, _n as SqlValue, _t as PropDef, ar as ScriptError, at as quantity, b as PumpOptions, bt as Call, cn as HttpServerImpl, d as Counters, dt as nowMicros, en as Script, er as HostError, f as Decided, fn as StoreImpl, ft as parseInstant, g as Inspection, gn as SqlRows, gt as ObjectKindDef, h as GroupOptions, hn as SqlParams, ht as ObjectKind, ir as MailboxFull, it as num, jt as Grant, kt as FieldShape, l as CancellationOptions, lt as text, m as EffectFailure, mt as ObjectElements, nr as LoadDiagnostic, nt as map, on as HttpClientImpl, or as SendFailedReason, ot as range, p as Deciding, pn as add, pt as HostObject, q as Kind, qt as Shape, rn as PeerImpl, rr as LoadError, rt as nothing, sn as HttpImpl, st as record, tn as Versions, tr as HostErrorCode, tt as list, u as CarryOver, un as UserImpl, ut as formatInstant, v as Message, vn as SqliteBinding, w as Requested, wn as ConsoleImpl, wt as ChargeResult, x as PumpResult, xn as LocaleImpl, xt as CapabilityDef, y as PendingCall, yn as SqliteImpl, yt as GrantDecls, zt as PlainResult } from "./debug-C_Ob5rkl.js";
3
- import { A as PlainValue, C as decodeJson, M as fromValue, N as toValue, O as encodeValue, P as talk, S as handlersOf, _ as CreateGroupOptions, b as Handlers, d as exportManifest, f as InlineFunction, j as ToValueOptions, k as FromValueOptions, l as ManifestSpec, m as inlineGrants, p as InlineOperation, u as MessageDecl, v as DrivenGroup, w as encodeJson, x as ScriptWithHandlers, y as createGroup } from "./lean-CFLJ9VrX.js";
4
- import { a as decodeValue, n as Json, o as readDisplay } from "./readers-ChQ0e92c.js";
5
- import { t as BinaryValueOptions } from "./binary-value-M8v567iA.js";
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 record, H as quantity, Jt as parseInstant, K as requireArgs, Kt as nowMicros, L as nothing, N as map, R as num, S as functionValue, T as instant, Ut as formatInstant, V as patternValue, W as range, c as Decimal, d as bytes, et as text, i as ScriptError, k as list, l as Value, m as civilDate, n as LoadError, o as invalidValue, q as requireValue, r as MailboxFull, s as sendFailed, t as HostError, u as bool, v as dec, z as objectValue } from "./errors-P3ga1I-9.js";
3
- import { a as rebindObject, n as makeObject, t as defineObjectKind } from "./objects-DE6kRk0r.js";
4
- import { Tt as shape, gt as LimitReached, mt as limitDefaults, wt as operationDeclarations, yt as defineCapability } from "./operations-CGjDlkGU.js";
5
- import { c as CallMeter, i as operationData, n as exportManifest, o as shapeData, s as invoke } from "./manifest-37x-HSxH.js";
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-yMS1eAOp.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-BL2ECJmg.js";
10
- import { a as peerKind, i as peerCapability } from "./peer-capability-elnbQy-J.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-BT2nnfLA.js";
12
- import { o as decodeJson, s as encodeJson } from "./http-fetch-DA-NbFIM.js";
13
- import { n as localeCapability, t as userCapability } from "./user-capability-D6hGa3eF.js";
14
- import { r as storeCapability, t as add } from "./store-capability-DBLlWaNO.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-BS1J8DF2.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-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 };
@@ -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 };