@northtalk/ts 0.5.0 → 0.5.1

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 (70) hide show
  1. package/README.md +11 -0
  2. package/base64-CDO-a06R.js +29 -0
  3. package/{binary-value-B3knLdHD.d.ts → binary-value-xvJoGg0C.d.ts} +1 -1
  4. package/{checker-DMI4LiRm.js → checker-CUhn2XaM.js} +4 -4
  5. package/{core-D_9OuTRE.d.ts → core-BuTAYRm-.d.ts} +1 -1
  6. package/{debug-nN5tQ_p4.d.ts → debug-DRhMZAxw.d.ts} +24 -8
  7. package/debug.d.ts +1 -1
  8. package/debug.js +1 -1
  9. package/{driver-Bf-7Roq6.d.ts → driver-CHDcuqUy.d.ts} +1 -1
  10. package/driver.d.ts +1 -1
  11. package/driver.js +1 -1
  12. package/{encoding-C3Q7pIC9.js → encoding-RUuES_e4.js} +2 -2
  13. package/{engine-BpdGfAND.js → engine-CXf5FCwi.js} +6 -6
  14. package/{engine-CQqt4rTB.d.ts → engine-Cc3yofGM.d.ts} +2 -2
  15. package/{errors-BKJES3Zu.js → errors-D11zizZg.js} +1580 -1481
  16. package/{group-Bz2wh72R.js → group-BflSou2n.js} +45 -33
  17. package/http-fetch-DFwVIOQg.js +517 -0
  18. package/http.d.ts +39 -2
  19. package/http.js +189 -6
  20. package/index.d.ts +10 -660
  21. package/index.js +36 -49
  22. package/{inline-grants-Cx0Z9XAt.js → inline-grants-XbX9HL_w.js} +72 -304
  23. package/lean-BebPaTMK.js +47 -0
  24. package/lean-CjWVuOrC.d.ts +741 -0
  25. package/lean.d.ts +8 -0
  26. package/lean.js +15 -0
  27. package/{manifest-Dw-8Unmf.js → manifest-CCfpn0kC.js} +3 -4
  28. package/{manifest-DYAbIyQm.d.ts → manifest-DVrx-pT2.d.ts} +2 -2
  29. package/message-layer.d.ts +2 -2
  30. package/message-layer.js +2 -2
  31. package/notify.d.ts +1 -1
  32. package/notify.js +1 -1
  33. package/{objects-BRcpeXwZ.d.ts → objects-DC6HjzBY.d.ts} +1 -1
  34. package/{objects-BC4fS0vq.js → objects-DmUc0lha.js} +1 -1
  35. package/{base64-Dtqaz_0A.js → operations-DnCcztkZ.js} +1632 -32
  36. package/package.json +36 -2
  37. package/{readers-B5e5bBrY.js → readers-CsvlahLi.js} +2 -2
  38. package/{readers-L90Hoa97.d.ts → readers-MmyZ_d0w.d.ts} +1 -1
  39. package/{request-pump-binary-BjnyqXV5.js → request-pump-binary-oqjWFqZA.js} +5 -4
  40. package/{router-BCHEfs4x.js → router-BZ-aYeXA.js} +4 -4
  41. package/{router-CBuMIl6i.d.ts → router-D56rSkU8.d.ts} +2 -2
  42. package/session.d.ts +2 -2
  43. package/session.js +54 -15
  44. package/setup.d.ts +1 -1
  45. package/setup.js +4 -4
  46. package/sqlite.d.ts +2 -2
  47. package/sqlite.js +5 -5
  48. package/stdlib/bytes.d.ts +6 -0
  49. package/stdlib/bytes.js +11 -0
  50. package/stdlib/date.d.ts +6 -0
  51. package/stdlib/date.js +11 -0
  52. package/stdlib/json.d.ts +6 -0
  53. package/stdlib/json.js +11 -0
  54. package/stdlib/list.d.ts +6 -0
  55. package/stdlib/list.js +10 -0
  56. package/stdlib/map.d.ts +6 -0
  57. package/stdlib/map.js +10 -0
  58. package/stdlib/text.d.ts +6 -0
  59. package/stdlib/text.js +10 -0
  60. package/stdlib/units.d.ts +6 -0
  61. package/stdlib/units.js +10 -0
  62. package/stdlib-registry-BwitI3Ox.d.ts +18 -0
  63. package/{store-DTQa0lyE.js → store-DHlo6fP5.js} +2 -2
  64. package/{store-capability-BxXgiRM7.js → store-capability-BrUUAwVS.js} +3 -4
  65. package/store.d.ts +2 -2
  66. package/store.js +2 -2
  67. package/{user-capability-5-IvCeZI.js → user-capability-BcRQyyEw.js} +4 -5
  68. package/wasm.d.ts +5 -5
  69. package/wasm.js +12 -11
  70. package/capabilities-Bi5Qm6Fr.js +0 -1320
package/README.md CHANGED
@@ -32,6 +32,8 @@ A Host can create a Group ready to pump from the event loop with `newDrivenGroup
32
32
  | Import | Holds |
33
33
  | ----------------------------- | ------------------------------------------------------------------------------------------------------------ |
34
34
  | `@northtalk/ts` | Values, Groups, Scripts, Libraries, Capabilities, Object Kinds, save and restore, and the parser and checker |
35
+ | `@northtalk/ts/lean` | The same API with no stdlib Library registered; see below |
36
+ | `@northtalk/ts/stdlib/<name>` | One stdlib Library, such as `json`, for `registerStdlib` |
35
37
  | `@northtalk/ts/session` | The Session Host, for a REPL, and Session Transcripts |
36
38
  | `@northtalk/ts/driver` | `newDrivenGroup` and `autoDrive`, which pump a Group from the event loop |
37
39
  | `@northtalk/ts/store` | The Store Standard Capability |
@@ -45,6 +47,15 @@ A Host can create a Group ready to pump from the event loop with `newDrivenGroup
45
47
 
46
48
  The tooling surfaces serve editors, debuggers and REPLs. They aren't part of the Spec's embedding API, and may change in any minor release while the package is `0.x`.
47
49
 
50
+ A browser Host whose Scripts `use` only some of the stdlib Libraries can import `@northtalk/ts/lean` instead of `@northtalk/ts` and register just those, so a bundler drops the rest ([ADR 0150](https://github.com/odogono/odgn-talk/blob/main/docs/adr/0150-the-ts-package-has-a-lean-entry-without-the-stdlib-libraries.md)). Registering a Library also registers the ones it uses, so `json` brings `text`. A Script that `use`s a Library that isn't registered fails to load with `unknown import`.
51
+
52
+ ```ts
53
+ import { createCore, registerStdlib } from '@northtalk/ts/lean';
54
+ import { json } from '@northtalk/ts/stdlib/json';
55
+
56
+ registerStdlib(json);
57
+ ```
58
+
48
59
  `@northtalk/ts/wasm` doesn't include `talk.wasm`. Build it with `zig build -Dtarget=wasm32-wasi` in the repository's `impl/zig`, or take a `reactor-v*` release, and pass it as `createCore({ wasm })` or serve it beside `wasm.js`.
49
60
 
50
61
  ## Runtimes
@@ -0,0 +1,29 @@
1
+
2
+ //#region src/base64.ts
3
+ const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
4
+ const index = new Map(Array.from(alphabet, (ch, i) => [ch, i]));
5
+ const toBase64 = (b) => {
6
+ let out = "";
7
+ for (let i = 0; i < b.length; i += 3) {
8
+ const n = b[i] << 16 | (b[i + 1] ?? 0) << 8 | (b[i + 2] ?? 0);
9
+ out += alphabet[n >> 18 & 63] + alphabet[n >> 12 & 63] + (i + 1 < b.length ? alphabet[n >> 6 & 63] : "=") + (i + 2 < b.length ? alphabet[n & 63] : "=");
10
+ }
11
+ return out;
12
+ };
13
+ /** The bytes a canonical padded Base64 text spells, or undefined. */
14
+ const fromBase64 = (s) => {
15
+ if (s.length % 4 || !/^[\d+/A-Za-z]*={0,2}$/.test(s)) return;
16
+ const pad = s.endsWith("==") ? 2 : s.endsWith("=") ? 1 : 0;
17
+ const out = new Uint8Array(s.length / 4 * 3 - pad);
18
+ for (let i = 0, o = 0; i < s.length; i += 4) {
19
+ const n = index.get(s[i]) << 18 | index.get(s[i + 1]) << 12 | (index.get(s[i + 2]) ?? 0) << 6 | (index.get(s[i + 3]) ?? 0);
20
+ for (const shift of [
21
+ 16,
22
+ 8,
23
+ 0
24
+ ]) if (o < out.length) out[o++] = n >> shift & 255;
25
+ }
26
+ return toBase64(out) === s ? out : void 0;
27
+ };
28
+ //#endregion
29
+ export { toBase64 as n, fromBase64 as t };
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { J as Value } from "./debug-nN5tQ_p4.js";
2
+ import { J as Value } from "./debug-DRhMZAxw.js";
3
3
  //#region src/binary-value.d.ts
4
4
  type BinaryValueOptions = {
5
5
  coreErrors?: boolean;
@@ -1,6 +1,6 @@
1
1
 
2
- import { M as literalDigits, at as parseUnit, dt as builtins, ft as diagnosticCodes, gt as units, lt as unitEntry, mt as libraryExports, on as normalizeNFC, pt as grammar, tt as UnitError, ut as unitText } from "./errors-BKJES3Zu.js";
3
- import { _ as runTask, g as RESERVED, h as Lexer, n as acceptsArgumentCount } from "./capabilities-Bi5Qm6Fr.js";
2
+ import { M as literalDigits, an as builtins, at as parseUnit, cn as libraryExports, en as normalizeNFC, lt as unitEntry, on as diagnosticCodes, sn as grammar, tt as UnitError, un as units, ut as unitText } from "./errors-D11zizZg.js";
3
+ import { Dt as runTask, Et as RESERVED, Tt as Lexer, gt as acceptsArgumentCount } from "./operations-DnCcztkZ.js";
4
4
  //#region src/constructs.ts
5
5
  /** Chapter 3's kind names. */
6
6
  const kindNames = /* @__PURE__ */ new Set([
@@ -6419,7 +6419,7 @@ const checkParsed = (syntax, options) => {
6419
6419
  const entry = Object.hasOwn(supplied, name) ? supplied[name] : void 0;
6420
6420
  return typeof entry === "string" ? { kind: entry } : entry;
6421
6421
  }
6422
- return libraryExports.find((entry) => entry.library === library && entry.name === name);
6422
+ return libraryExports.find((entry) => entry.library === library && entry.name === name && (options.stdlib?.has(library) ?? true));
6423
6423
  };
6424
6424
  for (const { element } of ordered) {
6425
6425
  if (element.kind !== "node" || !siteRules.has(element.rule)) continue;
@@ -6470,7 +6470,7 @@ const checkParsed = (syntax, options) => {
6470
6470
  }, info.contract);
6471
6471
  else {
6472
6472
  mark(rename ?? name, "import");
6473
- report("unknown import", options.libraries && Object.hasOwn(options.libraries, library.v) || libraryExports.some((entry) => entry.library === library.v) ? name : library);
6473
+ report("unknown import", options.libraries && Object.hasOwn(options.libraries, library.v) || libraryExports.some((entry) => entry.library === library.v) && (options.stdlib?.has(library.v) ?? true) ? name : library);
6474
6474
  }
6475
6475
  }
6476
6476
  break;
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { An as compileLibrary, B as restore, Zt as Core, vt as defineObjectKind, z as newGroup } from "./debug-nN5tQ_p4.js";
2
+ import { B as restore, Mn as compileLibrary, Zt as Core, vt as defineObjectKind, z as newGroup } from "./debug-DRhMZAxw.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
@@ -2071,19 +2071,35 @@ type UserImpl = {
2071
2071
  declare const userCapability: (impl: UserImpl, costs: Costs) => CapabilityDef<unknown>;
2072
2072
  //#endregion
2073
2073
  //#region src/http-capability.d.ts
2074
+ /** The server Operations, supplied together. */
2075
+ type HttpServerImpl = {
2076
+ respond(call: Call<unknown>, exchange: HostObject, response: Value): void;
2077
+ serve(call: Call<unknown>, name: string, prefix: string, message: string, options: Value): void;
2078
+ unserve(call: Call<unknown>, name: string): void;
2079
+ };
2080
+ /**
2081
+ * The client Operation. `fetch` hears the normalized URL, with `query`
2082
+ * added, and the request map without `query`: `method` always, `headers`
2083
+ * and `body` as given, and `json` as its compact JSON text. It answers
2084
+ * `{status, headers, body}` or fails with `bad address`, `network error` or
2085
+ * `response too large`, and aborts the request when `call.signal` does.
2086
+ */
2087
+ type HttpClientImpl = {
2088
+ fetch(call: Call<unknown>, url: string, request: Value): void;
2089
+ };
2074
2090
  /**
2075
- * `serve` hears its effective message, `httpRequest` when omitted or
2091
+ * The server Operations, the client Operation, or both; only those supplied
2092
+ * are declared. `serve` hears its effective message, `httpRequest` when omitted or
2076
2093
  * Nothing, and its options as a map, empty when omitted or Nothing, and
2077
2094
  * answers through the Call with `{host, port}`. `respond` hears the response
2078
2095
  * map as the Script gave it, except that a `json` value is replaced by its
2079
2096
  * compact JSON text, written by the `json` Library's rules.
2080
2097
  */
2081
- type HttpImpl = {
2082
- respond(call: Call<unknown>, exchange: HostObject, response: Value): void;
2083
- serve(call: Call<unknown>, name: string, prefix: string, message: string, options: Value): void;
2084
- unserve(call: Call<unknown>, name: string): void;
2085
- };
2086
- /** Optional for Hosts. The binding is the Host's own description of the addresses a Grant may listen on. */
2098
+ type HttpImpl = HttpServerImpl | HttpClientImpl | (HttpServerImpl & HttpClientImpl);
2099
+ /**
2100
+ * Optional for Hosts. The binding is the Host's own description of the
2101
+ * addresses a Grant may listen on and the origins it may fetch from.
2102
+ */
2087
2103
  declare const httpCapability: (impl: HttpImpl, costs: Costs) => CapabilityDef<unknown>;
2088
2104
  //#endregion
2089
2105
  //#region src/versions.d.ts
@@ -3522,4 +3538,4 @@ declare class DebugController {
3522
3538
  enter(pause: DebugPause): void;
3523
3539
  }
3524
3540
  //#endregion
3525
- export { instant as $, Body as $n, Script as $t, ScriptSources as A, compileLibrary as An, syntaxSelector as Ar, FireOp as At, restore as B, defaultLimits as Bn, ReleaseHook as Bt, Report as C, consoleCapability as Cn, TokType as Cr, ChargeRequest as Ct, RunEvent as D, LibrarySource as Dn, SyntaxNode as Dr, EffectResult as Dt, RestoreResult as E, LibraryOptions as En, SyntaxErrorCode as Er, Cost as Et, TsGroupOptions as F, Run as Fn, Metering as Ft, RunStarted as G, waitUs as Gn, SegmentGrant as Gt, RunAccounting as H, loadScript as Hn, ScopeDecl as Ht, TsRestoreOptions as I, RunRecord as In, Operation as It, Value as J, LoadDiagnostic as Jn, SuspendingOp as Jt, Decimal as K, HostError as Kn, SegmentLifecycle as Kt, TsScript as L, Script$1 as Ln, Operations as Lt, SessionPort as M, LimitName as Mn, GrantContext as Mt, Settlement as N, Limits as Nn, ImmediateOp as Nt, SaveOptions as O, OperationRef as On, SyntaxRule as Or, ErrorDecl as Ot, TsGroup as P, Outcome as Pn, LimitReached as Pt, dec as Q, SendFailedReason as Qn, Group as Qt, Verdict as R, UnitLoadError as Rn, PlainArg as Rt, PumpedRequest as S, clockCapability as Sn, Mode as Sr, CapabilityDefiner as St, RestoreOptions as T, Library as Tn, SyntaxElement as Tr, CoordinatedLifecycle as Tt, RunAncestry as U, NotImplementedError as Un, SegmentContext as Ut, CausalWork as V, deliver as Vn, ReleaseReason as Vt, RunDiscarded as W, canConvert as Wn, SegmentCoordinator as Wt, bytes as X, MailboxFull as Xn, shape as Xt, bool as Y, LoadError as Yn, defineCapability as Yt, civilDate as Z, ScriptError as Zn, Core as Zt, LoadOptions as _, CalendarImpl as _n, SemanticScope as _r, PropDef as _t, DebugPause as a, userCapability as an, Operand as ar, quantity as at, PumpOptions as b, TimerImpl as bn, SourceSpan as br, Call as bt, RepeatedEffect as c, storeCapability as cn, Binding as cr, sourceForm as ct, Counters as d, SqlValue as dn, FunctionContract as dr, nowMicros as dt, Versions as en, BodyKind as er, isReadable as et, Decided as f, SqliteBinding as fn, LibraryExport as fr, parseInstant as ft, Inspection as g, localeCapability as gn, SemanticNode as gr, ObjectKindDef as gt, GroupOptions as h, LocaleImpl as hn, SemanticName as hr, ObjectKind as ht, DebugInstruction as i, UserImpl as in, Instruction as ir, num as it, SessionControls as j, replacementLibraries as jn, syntaxText as jr, Grant as jt, ScriptCodeRequest as k, codeIdentity as kn, Trivia as kr, FieldShape as kt, CancellationOptions as l, SqlParams as ln, BindingKind as lr, text as lt, EffectFailure as m, sqliteCapability as mn, SemanticElement as mr, ObjectElements as mt, DebugEvaluation as n, HttpImpl as nn, EventBranch as nr, map as nt, DebugSnapshot as o, StoreImpl as on, UnwindEntry as or, range as ot, Deciding as p, SqliteImpl as pn, NameRole as pr, HostObject as pt, Kind as q, HostErrorCode as qn, Shape as qt, DebugFrame as r, httpCapability as rn, EventEntry as rr, nothing as rt, DebugSource as s, add as sn, disassemble as sr, record as st, DebugController as t, coreVersions as tn, CodeUnit as tr, list as tt, CarryOver as u, SqlRows as un, ExportKind as ur, formatInstant as ut, Message as v, ConsoleImpl as vn, SemanticToken as vr, defineObjectKind as vt, Requested as w, timerCapability as wn, Token as wr, ChargeResult as wt, PumpResult as x, calendarCapability as xn, Lexer as xr, CapabilityDef as xt, PendingCall as y, Costs as yn, SemanticTree as yr, GrantDecls as yt, newGroup as z, callFunction as zn, PlainResult as zt };
3541
+ export { instant as $, ScriptError as $n, Script as $t, ScriptSources as A, OperationRef as An, SyntaxRule as Ar, FireOp as At, restore as B, UnitLoadError as Bn, ReleaseHook as Bt, Report as C, calendarCapability as Cn, Lexer as Cr, ChargeRequest as Ct, RunEvent as D, Library as Dn, SyntaxElement as Dr, EffectResult as Dt, RestoreResult as E, timerCapability as En, Token as Er, Cost as Et, TsGroupOptions as F, Limits as Fn, Metering as Ft, RunStarted as G, NotImplementedError as Gn, SegmentGrant as Gt, RunAccounting as H, defaultLimits as Hn, ScopeDecl as Ht, TsRestoreOptions as I, Outcome as In, Operation as It, Value as J, HostError as Jn, SuspendingOp as Jt, Decimal as K, canConvert as Kn, SegmentLifecycle as Kt, TsScript as L, Run as Ln, Operations as Lt, SessionPort as M, compileLibrary as Mn, syntaxSelector as Mr, GrantContext as Mt, Settlement as N, replacementLibraries as Nn, syntaxText as Nr, ImmediateOp as Nt, SaveOptions as O, LibraryOptions as On, SyntaxErrorCode as Or, ErrorDecl as Ot, TsGroup as P, LimitName as Pn, LimitReached as Pt, dec as Q, MailboxFull as Qn, Group as Qt, Verdict as R, RunRecord as Rn, PlainArg as Rt, PumpedRequest as S, TimerImpl as Sn, SourceSpan as Sr, CapabilityDefiner as St, RestoreOptions as T, consoleCapability as Tn, TokType as Tr, CoordinatedLifecycle as Tt, RunAncestry as U, deliver as Un, SegmentContext as Ut, CausalWork as V, callFunction as Vn, ReleaseReason as Vt, RunDiscarded as W, loadScript as Wn, SegmentCoordinator as Wt, bytes as X, LoadDiagnostic as Xn, shape as Xt, bool as Y, HostErrorCode as Yn, defineCapability as Yt, civilDate as Z, LoadError as Zn, Core as Zt, LoadOptions as _, LocaleImpl as _n, SemanticName as _r, PropDef as _t, DebugPause as a, httpCapability as an, EventEntry as ar, quantity as at, PumpOptions as b, ConsoleImpl as bn, SemanticToken as br, Call as bt, RepeatedEffect as c, StoreImpl as cn, UnwindEntry as cr, sourceForm as ct, Counters as d, SqlParams as dn, BindingKind as dr, nowMicros as dt, Versions as en, SendFailedReason as er, isReadable as et, Decided as f, SqlRows as fn, ExportKind as fr, parseInstant as ft, Inspection as g, sqliteCapability as gn, SemanticElement as gr, ObjectKindDef as gt, GroupOptions as h, SqliteImpl as hn, NameRole as hr, ObjectKind as ht, DebugInstruction as i, HttpServerImpl as in, EventBranch as ir, num as it, SessionControls as j, codeIdentity as jn, Trivia as jr, Grant as jt, ScriptCodeRequest as k, LibrarySource as kn, SyntaxNode as kr, FieldShape as kt, CancellationOptions as l, add as ln, disassemble as lr, text as lt, EffectFailure as m, SqliteBinding as mn, LibraryExport as mr, ObjectElements as mt, DebugEvaluation as n, HttpClientImpl as nn, BodyKind as nr, map as nt, DebugSnapshot as o, UserImpl as on, Instruction as or, range as ot, Deciding as p, SqlValue as pn, FunctionContract as pr, HostObject as pt, Kind as q, waitUs as qn, Shape as qt, DebugFrame as r, HttpImpl as rn, CodeUnit as rr, nothing as rt, DebugSource as s, userCapability as sn, Operand as sr, record as st, DebugController as t, coreVersions as tn, Body as tr, list as tt, CarryOver as u, storeCapability as un, Binding as ur, formatInstant as ut, Message as v, localeCapability as vn, SemanticNode as vr, defineObjectKind as vt, Requested as w, clockCapability as wn, Mode as wr, ChargeResult as wt, PumpResult as x, Costs as xn, SemanticTree as xr, CapabilityDef as xt, PendingCall as y, CalendarImpl as yn, SemanticScope as yr, GrantDecls as yt, newGroup as z, Script$1 as zn, PlainResult as zt };
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-nN5tQ_p4.js";
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-DRhMZAxw.js";
3
3
  export { type DebugController, type DebugEvaluation, type DebugFrame, type DebugInstruction, type DebugPause, type DebugSnapshot, type DebugSource, type RepeatedEffect, isReadable, sourceForm };
package/debug.js CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { O as isReadable, Z as sourceForm } from "./errors-BKJES3Zu.js";
2
+ export { O as isReadable, Z as sourceForm } from "./errors-D11zizZg.js";
@@ -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-nN5tQ_p4.js";
2
+ import { Qt as Group, b as PumpOptions, h as GroupOptions, x as PumpResult } from "./debug-DRhMZAxw.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-Bf-7Roq6.js";
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-CHDcuqUy.js";
3
3
  export { AutoDriveOptions, Drive, DrivenGroupOptions, type PendingOperation, asyncDispose, autoDrive, newDrivenGroup };
package/driver.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { Yt as nowMicros } from "./errors-BKJES3Zu.js";
2
+ import { Ut as nowMicros } from "./errors-D11zizZg.js";
3
3
  import { r as waitForOperations, t as pendingOperations } from "./operation-promises-ClA1BTaS.js";
4
4
  //#region src/driver.ts
5
5
  /** Creates a Group on `core` ready to drive queued Inputs from the Host's event loop. */
@@ -1,6 +1,6 @@
1
1
 
2
- import { o as invalidValue, q as requireValue } from "./errors-BKJES3Zu.js";
3
- import { n as toBase64 } from "./base64-Dtqaz_0A.js";
2
+ import { o as invalidValue, q as requireValue } from "./errors-D11zizZg.js";
3
+ import { n as toBase64 } from "./base64-CDO-a06R.js";
4
4
  //#region src/standard-capability-checks.ts
5
5
  const checks = /* @__PURE__ */ new WeakMap();
6
6
  const registerStandardChecks = (op, rules) => {
@@ -1,10 +1,10 @@
1
1
 
2
- import { A as listValues, L as nothing, Q as text, o as invalidValue, v as dec } from "./errors-BKJES3Zu.js";
3
- import { $ as sizeOf, dt as compareText } from "./base64-Dtqaz_0A.js";
4
- import { i as decodeValueMembers } from "./readers-B5e5bBrY.js";
5
- import { n as quoteJSON, t as encodeValue } from "./encoding-C3Q7pIC9.js";
6
- import { n as hostScriptError, t as add } from "./store-capability-BxXgiRM7.js";
7
- import { n as createRouter, t as changed } from "./router-BCHEfs4x.js";
2
+ import { A as listValues, L as nothing, Q as text, o as invalidValue, v as dec } from "./errors-D11zizZg.js";
3
+ import { Z as sizeOf, lt as compareText } from "./operations-DnCcztkZ.js";
4
+ import { i as decodeValueMembers } from "./readers-CsvlahLi.js";
5
+ import { n as quoteJSON, t as encodeValue } from "./encoding-RUuES_e4.js";
6
+ import { n as hostScriptError, t as add } from "./store-capability-BrUUAwVS.js";
7
+ import { n as createRouter, t as changed } from "./router-BZ-aYeXA.js";
8
8
  //#region src/store/engine.ts
9
9
  /** The Session Store's quotas (chapter 12, The Session Store). */
10
10
  const sessionQuotas = Object.freeze({
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { Dt as EffectResult, J as Value, Mt as GrantContext, Ut as SegmentContext, bt as Call, on as StoreImpl } from "./debug-nN5tQ_p4.js";
3
- import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-CBuMIl6i.js";
2
+ import { Dt as EffectResult, J as Value, Mt as GrantContext, Ut as SegmentContext, bt as Call, cn as StoreImpl } from "./debug-DRhMZAxw.js";
3
+ import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-D56rSkU8.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 = {