@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
@@ -1,6 +1,7 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { $t as Group, Dr as SemanticTree, Fr as SyntaxNode, J as Value, K as Decimal, Mr as Token, Nn as Library, Or as SourceSpan, Pr as SyntaxErrorCode, Qt as Core, _ as LoadOptions, br as LibraryExport, en as Script, gr as Binding, ht as ObjectKind, jt as Grant, lr as CodeUnit, qt as Shape, wr as SemanticNode, yt as GrantDecls } from "./debug-C_Ob5rkl.js";
3
- import { n as Drive, r as DrivenGroupOptions } from "./driver-CLi_OmyQ.js";
2
+ import { Ar as SourceSpan, Er as SemanticNode, Ir as SyntaxErrorCode, Lr as SyntaxNode, Pr as Token, Sr as LibraryExport, dr as CodeUnit, en as Core, kr as SemanticTree, vr as Binding, yt as GrantDecls } from "./debug-s6QIovKS.js";
3
+ import { r as DrivenGroupOptions } from "./driver-D5yrK3Nu.js";
4
+ import { c as DrivenGroup } from "./manifest-l07K7nW-.js";
4
5
  //#region src/generated/syntax.d.ts
5
6
  declare const grammar: {
6
7
  reserved: string[];
@@ -647,6 +648,8 @@ type ExistingName = Pick<Binding, 'kind' | 'contract' | 'importedFrom' | 'shape'
647
648
  type CheckOptions = {
648
649
  /** Names in older code units when checking a Script extension. */
649
650
  existing?: Readonly<Record<string, ExistingName>>;
651
+ /** Refuse every possible Suspension Point, for a Script loaded with `forbidSuspension` (ADR 0178). */
652
+ forbidSuspension?: boolean;
650
653
  /** A Script's Grants, to check its Capability calls against; none checks none. */
651
654
  grants?: GrantDecls;
652
655
  /** Exports supplied by the Library loader; kind-only entries defer call-count checks. */
@@ -682,49 +685,6 @@ type CheckResult = (SemanticResult & {
682
685
  declare const checkSyntax: (syntax: SyntaxNode, options?: CheckOptions) => SemanticResult;
683
686
  declare const checkSource: (source: string, options?: CheckOptions) => CheckResult;
684
687
  //#endregion
685
- //#region src/talk.d.ts
686
- /**
687
- * Dedents NorthTalk source; rejects JS interpolation.
688
- *
689
- * Write NorthTalk's own interpolation as `\${…}` and its backticks as `` \` ``.
690
- * Pass values as Request arguments instead of splicing them into source. The
691
- * longest whitespace prefix shared by every non-blank line is removed, compared
692
- * exactly, so tabs and spaces never match each other.
693
- */
694
- declare const talk: (strings: TemplateStringsArray, ...values: unknown[]) => string;
695
- //#endregion
696
- //#region src/plain.d.ts
697
- /** Plain JS data, as `fromValue` writes it (ADR 0119). */
698
- type PlainValue = null | boolean | string | Decimal | Uint8Array | Value | PlainValue[] | {
699
- [key: string]: PlainValue;
700
- } | Map<string, PlainValue>;
701
- type ToValueOptions = {
702
- /**
703
- * `integer` reads safe integers through `num`; `decimal` uses `num` for
704
- * any JS number. The default refuses JS numbers.
705
- */
706
- numbers?: 'refuse' | 'integer' | 'decimal';
707
- };
708
- type FromValueOptions = {
709
- maps?: 'object' | 'map';
710
- numbers?: 'decimal' | 'string';
711
- };
712
- /**
713
- * Plain JS data to a Value by the named constructors (ADR 0119). Anything
714
- * the table doesn't name, and cyclic data, throws `invalid value`.
715
- */
716
- declare const toValue: (plain: unknown, options?: ToValueOptions) => Value;
717
- /** A Value as plain JS data (ADR 0119); kinds with no JS form stay Values. */
718
- declare const fromValue: (v: Value, options?: FromValueOptions) => PlainValue;
719
- //#endregion
720
- //#region src/encoding.d.ts
721
- /**
722
- * A Message Layer adapter's own spelling of a Function Value or a Text
723
- * Pattern, which the Value Encoding doesn't hold.
724
- */
725
- type AdapterEncoder = (v: Value) => string;
726
- declare const encodeValue: (value: Value, adapter?: AdapterEncoder) => string;
727
- //#endregion
728
688
  //#region src/constructs.d.ts
729
689
  /** Chapter 3's kind names. */
730
690
  declare const kindNames: ReadonlySet<string>;
@@ -759,40 +719,6 @@ type ShapeData = string | {
759
719
  /** Each loadable Shape declaration's data, by its Declaration node. */
760
720
  declare const shapeData: WeakMap<SemanticNode, ShapeData>;
761
721
  //#endregion
762
- //#region src/json.d.ts
763
- /** Read exact decimal digits, NFC strings and insertion-ordered maps. */
764
- declare const decodeJson: (source: string) => Value;
765
- /** Compact JSON, with canonical numbers and chapter 7's string escapes. */
766
- declare const encodeJson: (value: Value) => string;
767
- //#endregion
768
- //#region src/handlers.d.ts
769
- /** Untyped Handler calls accept safe-integer JS numbers and plain data. */
770
- type Handlers = {
771
- [name: string]: (...args: (PlainValue | number | bigint)[]) => Promise<PlainValue>;
772
- };
773
- /** The Host supplies T without runtime checking of its arguments or results. */
774
- type ScriptWithHandlers<T = Handlers> = Script & {
775
- readonly handlers: T;
776
- };
777
- /**
778
- * Calls invoke with integer-mode toValue arguments and default fromValue answers.
779
- * The Script's existing driver or Host Pump loop still runs the Requests.
780
- * Promise hooks, symbols and non-message properties read as undefined.
781
- */
782
- declare const handlersOf: <T = Handlers>(script: Script) => T;
783
- //#endregion
784
- //#region src/group-helper.d.ts
785
- /** A Group whose driver closes explicitly or at the end of an `await using` scope. */
786
- type DrivenGroup = Omit<Group, 'load'> & Pick<Drive, 'close' | typeof Symbol.asyncDispose> & {
787
- load<T = Handlers>(o: LoadOptions): ScriptWithHandlers<T>;
788
- };
789
- /** The Zig Host Adapter requires its asynchronously created Core. */
790
- type CreateGroupOptions$1 = DrivenGroupOptions & {
791
- core: Core;
792
- };
793
- /** Creates a driven Group on the supplied Core; close has the driver's shutdown semantics. */
794
- declare const createGroup$1: (o: CreateGroupOptions$1) => DrivenGroup;
795
- //#endregion
796
722
  //#region src/create-group.d.ts
797
723
  /** Omitting core uses the process-wide TS Core. */
798
724
  type CreateGroupOptions = DrivenGroupOptions & {
@@ -801,49 +727,6 @@ type CreateGroupOptions = DrivenGroupOptions & {
801
727
  /** Creates a driven Group that supports `await using` and explicit close(reason). */
802
728
  declare const createGroup: (o: CreateGroupOptions) => DrivenGroup;
803
729
  //#endregion
804
- //#region src/inline-grants.d.ts
805
- /** Argument and result types are supplied by the Host, without runtime checking. */
806
- type InlineFunction = (...args: never[]) => unknown;
807
- type InlineOperation = InlineFunction | {
808
- arity?: number;
809
- fn: InlineFunction;
810
- } | {
811
- arity?: number;
812
- async: InlineFunction;
813
- maxPendingMs?: number;
814
- };
815
- /**
816
- * Defines one Capability per key and grants all its Operations. Arguments use
817
- * default fromValue; results use integer-mode toValue. Arity is fn.length unless
818
- * overridden, including for async functions, which also receive a final signal.
819
- */
820
- declare const inlineGrants: (capabilities: Readonly<Record<string, Readonly<Record<string, InlineOperation>>>>) => Record<string, Grant<void>>;
821
- //#endregion
822
- //#region src/manifest.d.ts
823
- type MessageDecl = {
824
- args?: readonly Shape[];
825
- description?: string;
826
- /** NorthTalk source, each sending this message. */
827
- examples?: readonly string[];
828
- name: string;
829
- receivers?: readonly ObjectKind[];
830
- };
831
- type ManifestSpec = {
832
- grants: Readonly<Record<string, Grant<any>>>;
833
- kind: string;
834
- libraries?: readonly Library[];
835
- messages?: readonly MessageDecl[];
836
- /** Whether the Host supplies a musical clock (chapter 9, The musical clock). */
837
- musicalTime?: boolean;
838
- objectKinds?: readonly ObjectKind[];
839
- objects?: Readonly<Record<string, ObjectKind>>;
840
- /** The Owner Kind: one of objectKinds, the kind of `me` for tooling. */
841
- ownerKind?: ObjectKind;
842
- version: string;
843
- };
844
- /** Chapter 9's deterministic JSON file, ending in LF; never calls the Host. */
845
- declare const exportManifest: (m: ManifestSpec) => string;
846
- //#endregion
847
730
  //#region src/lowering.d.ts
848
731
  /** A construct whose lowering the Spec leaves unsettled; not a load diagnostic. */
849
732
  declare class LoweringError extends Error {
@@ -864,7 +747,10 @@ type CompileResult = {
864
747
  error: ParseError | null;
865
748
  unit: null;
866
749
  };
867
- /** A checked Library's exports, for the Scripts and Libraries that import it. */
750
+ /**
751
+ * A checked Library's exports, for the Scripts and Libraries that import it.
752
+ * It reads only declaration headers, so it never converts a body.
753
+ */
868
754
  declare const exportsOf: (tree: SemanticTree) => Record<string, Exclude<LibraryExport, string>>;
869
755
  /** Lower a checked semantic tree into its code unit. */
870
756
  declare const lowerTree: (tree: SemanticTree, options: Pick<CompileOptions, "name" | "unit"> & {
@@ -887,4 +773,4 @@ declare const declarationStart: (root: SyntaxNode, declaration: SyntaxNode) => n
887
773
  //#region src/selectors.d.ts
888
774
  declare const validMessageSelector: (message: string, arity: number) => boolean;
889
775
  //#endregion
890
- export { units as $, PlainValue as A, checkSource as B, decodeJson as C, kindNames as D, shapeData as E, CheckOptions as F, ParseResult as G, EntryKind as H, CheckResult as I, parseEntry as J, RecoveringParseResult as K, Diagnostic as L, fromValue as M, toValue as N, encodeValue as O, talk as P, grammar as Q, DiagnosticCode as R, handlersOf as S, ShapeData as T, EntryResult as U, checkSyntax as V, ParseError as W, parseSourceRecovering as X, parseSource as Y, builtins as Z, CreateGroupOptions$1 as _, LoweringError as a, Handlers as b, lowerTree as c, exportManifest as d, InlineFunction as f, createGroup as g, CreateGroupOptions as h, CompileResult as i, ToValueOptions as j, FromValueOptions as k, ManifestSpec as l, inlineGrants as m, declarationStart as n, compileSource as o, InlineOperation as p, RecoveryDiagnostic as q, CompileOptions as r, exportsOf as s, validMessageSelector as t, MessageDecl as u, DrivenGroup as v, encodeJson as w, ScriptWithHandlers as x, createGroup$1 as y, SemanticResult as z };
776
+ export { builtins as A, ParseError as C, parseEntry as D, RecoveryDiagnostic as E, units as M, parseSource as O, EntryResult as S, RecoveringParseResult as T, DiagnosticCode as _, LoweringError as a, checkSyntax as b, lowerTree as c, ShapeData as d, shapeData as f, Diagnostic as g, CheckResult as h, CompileResult as i, grammar as j, parseSourceRecovering as k, CreateGroupOptions as l, CheckOptions as m, declarationStart as n, compileSource as o, kindNames as p, CompileOptions as r, exportsOf as s, validMessageSelector as t, createGroup as u, SemanticResult as v, ParseResult as w, EntryKind as x, checkSource as y };
package/lean.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { $ as instant, $n as waitUs, $t as Group, A as ScriptSources, An as consoleCapability, Ar as Mode, At as FireOp, B as restore, Bn as LimitName, Bt as ReleaseHook, C as Report, Cn as CalendarImpl, Cr as SemanticName, Ct as ChargeRequest, Dn as TimerImpl, Dr as SemanticTree, Dt as EffectResult, E as RestoreResult, En as MusicalClockImpl, Er as SemanticToken, Et as Cost, Fn as LibrarySource, Fr as SyntaxNode, Ft as Metering, G as RunStarted, Gn as Script, Gt as SegmentGrant, H as RunAccounting, Hn as Outcome, Ht as ScopeDecl, In as OperationRef, Ir as SyntaxRule, It as Operation, J as Value, Jn as defaultLimits, Jt as SuspendingOp, K as Decimal, Kn as UnitLoadError, Kt as SegmentLifecycle, L as TsScript, Ln as codeIdentity, Lr as Trivia, Lt as Operations, Mn as timerCapability, Mr as Token, Mt as GrantContext, N as Settlement, Nn as Library, Nr as SyntaxElement, Nt as ImmediateOp, O as SaveOptions, On as calendarCapability, Or as SourceSpan, Ot as ErrorDecl, P as TsGroup, Pn as LibraryOptions, Pr as SyntaxErrorCode, Pt as LimitReached, Q as dec, Qn as canConvert, Qt as Core, R as Verdict, Rn as compileLibrary, Rr as syntaxSelector, Rt as PlainArg, S as PumpedRequest, Sn as localeCapability, Sr as SemanticElement, St as CapabilityDefiner, T as RestoreOptions, Tn as Costs, Tr as SemanticScope, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Run, Ut as SegmentContext, V as CausalWork, Vn as Limits, Vt as ReleaseReason, W as RunDiscarded, Wn as RunRecord, Wt as SegmentCoordinator, X as bytes, Xn as loadScript, Xt as operationDeclarations, Y as bool, Yn as deliver, Yt as defineCapability, Z as civilDate, Zn as NotImplementedError, Zt as shape, _ as LoadOptions, _n as SqlValue, _r as BindingKind, _t as PropDef, an as peerKind, ar as ScriptError, at as quantity, b as PumpOptions, bn as sqliteCapability, br as LibraryExport, bt as Call, cn as HttpServerImpl, cr as BodyKind, d as Counters, dn as userCapability, dr as EventEntry, dt as nowMicros, en as Script$1, er as HostError, f as Decided, fn as StoreImpl, fr as Instruction, ft as parseInstant, g as Inspection, gn as SqlRows, gr as Binding, gt as ObjectKindDef, h as GroupOptions, hn as SqlParams, hr as disassemble, ht as ObjectKind, in as peerCapability, ir as MailboxFull, it as num, jn as musicalClockCapability, jr as TokType, jt as Grant, k as ScriptCodeRequest, kn as clockCapability, kr as Lexer, kt as FieldShape, l as CancellationOptions, ln as httpCapability, lr as CodeUnit, lt as text, m as EffectFailure, mn as storeCapability, mr as UnwindEntry, mt as ObjectElements, nn as coreVersions, nr as LoadDiagnostic, nt as map, on as HttpClientImpl, or as SendFailedReason, ot as range, p as Deciding, pn as add, pr as Operand, pt as HostObject, q as Kind, qn as callFunction, qt as Shape, rn as PeerImpl, rr as LoadError, rt as nothing, sn as HttpImpl, sr as Body, st as record, tn as Versions, tr as HostErrorCode, tt as list, u as CarryOver, un as UserImpl, ur as EventBranch, ut as formatInstant, v as Message, vn as SqliteBinding, vr as ExportKind, vt as defineObjectKind, w as Requested, wn as ConsoleImpl, wr as SemanticNode, wt as ChargeResult, x as PumpResult, xn as LocaleImpl, xr as NameRole, xt as CapabilityDef, y as PendingCall, yn as SqliteImpl, yr as FunctionContract, yt as GrantDecls, z as newGroup, zr as syntaxText, zt as PlainResult } from "./debug-C_Ob5rkl.js";
2
+ import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-s6QIovKS.js";
3
3
  import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
4
- import { $ as units, A as PlainValue, B as checkSource, C as decodeJson, D as kindNames, E as shapeData, F as CheckOptions, G as ParseResult, H as EntryKind, I as CheckResult, J as parseEntry, K as RecoveringParseResult, L as Diagnostic, M as fromValue, N as toValue, O as encodeValue, P as talk, Q as grammar, R as DiagnosticCode, S as handlersOf, T as ShapeData, U as EntryResult, V as checkSyntax, W as ParseError, X as parseSourceRecovering, Y as parseSource, Z as builtins, a as LoweringError, b as Handlers, c as lowerTree, d as exportManifest, f as InlineFunction, g as createGroup, h as CreateGroupOptions, i as CompileResult, j as ToValueOptions, k as FromValueOptions, l as ManifestSpec, m as inlineGrants, n as declarationStart, o as compileSource, p as InlineOperation, q as RecoveryDiagnostic, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, v as DrivenGroup, w as encodeJson, x as ScriptWithHandlers, z as SemanticResult } from "./lean-CFLJ9VrX.js";
5
- import { n as createCore, t as TsCore } from "./core-D4qYURer.js";
6
- import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-ChQ0e92c.js";
7
- export { type Binding, type BindingKind, type Body, type BodyKind, type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type CheckOptions, type CheckResult, type CodeUnit, type CompileOptions, type CompileResult, Script as CompiledScript, type ConsoleImpl, type CoordinatedLifecycle, type Core, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type Diagnostic, type DiagnosticCode, type DrivenGroup, type EffectFailure, type EffectResult, type EntryKind, type EntryResult, type ErrorDecl, type EventBranch, type EventEntry, type ExportKind, type FieldShape, type FireOp, type FromValueOptions, type FunctionContract, type FunctionResolver, type Grant, type GrantContext, type GrantDecls, type Group, type GroupOptions, type Handlers, HostError, type HostErrorCode, type HostObject, type HttpClientImpl, type HttpImpl, type HttpServerImpl, type ImmediateOp, type InlineFunction, type InlineOperation, type Inspection, type Instruction, type Kind, Lexer, type Library, type LibraryExport, type LibraryOptions, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, LoweringError, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type Mode, type MusicalClockImpl, type NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type RecoveringParseResult, type RecoveryDiagnostic, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, Run, type RunAccounting, type RunAncestry, type RunDiscarded, type RunRecord, type RunStarted, type SaveOptions, type ScopeDecl, type Script$1 as Script, type ScriptCodeRequest, ScriptError, type ScriptSources, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SemanticElement, type SemanticName, type SemanticNode, type SemanticResult, type SemanticScope, type SemanticToken, type SemanticTree, type SendFailedReason, type Settlement, type Shape, type ShapeData, type SourceSpan, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StdlibLibrary, type StoreImpl, type SuspendingOp, type SyntaxElement, type SyntaxErrorCode, type SyntaxNode, type SyntaxRule, type TimerImpl, type ToValueOptions, type TokType, type Token, type Trivia, type TsCore, TsGroup, TsScript, UnitLoadError, type UnwindEntry, type UserImpl, Value, type Verdict, type Versions, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, 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, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
4
+ import { A as builtins, C as ParseError, D as parseEntry, E as RecoveryDiagnostic, M as units, O as parseSource, S as EntryResult, T as RecoveringParseResult, _ as DiagnosticCode, a as LoweringError, b as checkSyntax, c as lowerTree, d as ShapeData, f as shapeData, g as Diagnostic, h as CheckResult, i as CompileResult, j as grammar, k as parseSourceRecovering, l as CreateGroupOptions, m as CheckOptions, n as declarationStart, o as compileSource, p as kindNames, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as SemanticResult, w as ParseResult, x as EntryKind, y as checkSource } from "./lean-D6DQfbqH.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-l07K7nW-.js";
6
+ import { n as createCore, t as TsCore } from "./core-BBPI6EhG.js";
7
+ import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-AeB1bJ--.js";
8
+ export { type Binding, type BindingKind, type Body, type BodyKind, type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type CheckOptions, type CheckResult, type CodeUnit, type CompileOptions, type CompileResult, Script as CompiledScript, type ConsoleImpl, type CoordinatedLifecycle, type Core, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type Diagnostic, type DiagnosticCode, type DrivenGroup, type EffectFailure, type EffectResult, type EntryKind, type EntryResult, type ErrorDecl, type EventBranch, type EventEntry, type ExportKind, type FieldShape, type FireOp, type FromValueOptions, type FunctionContract, type FunctionResolver, type Grant, type GrantContext, type GrantDecls, type Group, type GroupOptions, type Handlers, HostError, type HostErrorCode, type HostObject, type HttpClientImpl, type HttpImpl, type HttpServerImpl, type ImmediateOp, type InlineFunction, type InlineOperation, type Inspection, type Instruction, type Kind, Lexer, type Library, type LibraryExport, type LibraryOptions, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, LoweringError, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type Mode, type MusicalClockImpl, type NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type RecoveringParseResult, type RecoveryDiagnostic, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, Run, type RunAccounting, type RunAncestry, type RunDiscarded, type RunRecord, type RunStarted, type SaveOptions, type ScopeDecl, type Script$1 as Script, type ScriptCodeRequest, ScriptError, type ScriptSources, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SemanticElement, type SemanticName, type SemanticNode, type SemanticResult, type SemanticScope, type SemanticToken, type SemanticTree, type SendFailedReason, type Settlement, type Shape, type ShapeData, type SourceSpan, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StdlibLibrary, type StoreImpl, type SuspendingOp, type SyntaxElement, type SyntaxErrorCode, type SyntaxNode, type SyntaxRule, type TimerImpl, type ToValueOptions, type TokType, type Token, type Trivia, type TsCore, TsGroup, TsScript, UnitLoadError, type UnwindEntry, type UserImpl, Value, type Verdict, type Versions, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
package/lean.js CHANGED
@@ -1,16 +1,16 @@
1
1
 
2
- import { G as record, H as quantity, Jt as parseInstant, Kt as nowMicros, L as nothing, N as map, R as num, T as instant, Ut as formatInstant, W as range, c as Decimal, cn as builtins, d as bytes, et as text, i as ScriptError, k as list, l as Value, m as civilDate, n as LoadError, pn as units, r as MailboxFull, t as HostError, u as bool, un as grammar, v as dec } from "./errors-P3ga1I-9.js";
3
- import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group-BqccKTWz.js";
4
- import { t as defineObjectKind } from "./objects-DE6kRk0r.js";
5
- import { At as Lexer, Ot as validMessageSelector, Tt as shape, U as waitUs, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, wt as operationDeclarations, yt as defineCapability } from "./operations-CGjDlkGU.js";
6
- import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-Coml0Tf9.js";
7
- import { n as exportManifest } from "./manifest-37x-HSxH.js";
8
- import { c as readDisplay, r as decodeValue } from "./readers-yMS1eAOp.js";
9
- import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, 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, 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 createCore, r as coreVersions, t as createGroup } from "./lean-BJmLobmd.js";
14
- import { n as localeCapability, t as userCapability } from "./user-capability-D6hGa3eF.js";
15
- import { r as storeCapability, t as add } from "./store-capability-DBLlWaNO.js";
16
- export { Script as CompiledScript, Decimal, HostError, Lexer, LimitReached, LoadError, LoweringError, MailboxFull, NotImplementedError, ParseError, Run, ScriptError, TsGroup, TsScript, UnitLoadError, Value, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, 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, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
2
+ import { D as instant, H as num, J as range, K as quantity, L as map, N as list, Qt as parseInstant, V as nothing, Xt as nowMicros, Y as record, b as dec, c as Decimal, d as bytes, g as civilDate, hn as grammar, i as ScriptError, it as text, l as Value, n as LoadError, pn as builtins, qt as formatInstant, r as MailboxFull, t as HostError, u as bool, vn as units } from "./errors-VuwK669R.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-Ccuqwq12.js";
4
+ import { t as defineObjectKind } from "./objects-TarIKBL8.js";
5
+ import { At as validMessageSelector, Dt as shape, Et as operationDeclarations, Mt as Lexer, U as waitUs, bt as defineCapability, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, vt as conforms, wt as explain } from "./operations-BAELnqwf.js";
6
+ import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-Q4w7rLXk.js";
7
+ import { n as exportManifest } from "./manifest-BeViDIoy.js";
8
+ import { c as readDisplay, r as decodeValue } from "./readers-BG8g59qS.js";
9
+ import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, 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, 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 createCore, r as coreVersions, t as createGroup } from "./lean-BjhQvHyr.js";
14
+ import { n as localeCapability, t as userCapability } from "./user-capability-ClYd8Vln.js";
15
+ import { r as storeCapability, t as add } from "./store-capability-CxQJ_Huz.js";
16
+ export { Script as CompiledScript, Decimal, HostError, Lexer, LimitReached, LoadError, LoweringError, MailboxFull, NotImplementedError, ParseError, Run, ScriptError, TsGroup, TsScript, UnitLoadError, Value, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
@@ -1,7 +1,7 @@
1
1
 
2
- import { K as requireArgs, t as HostError } from "./errors-P3ga1I-9.js";
3
- import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-CGjDlkGU.js";
4
- import { n as quoteJSON } from "./encoding-BL2ECJmg.js";
2
+ import { X as requireArgs, t as HostError } from "./errors-VuwK669R.js";
3
+ import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-BAELnqwf.js";
4
+ import { n as quoteJSON } from "./encoding-B7MCQ4ii.js";
5
5
  //#region src/call-meter.ts
6
6
  var CallMeter = class {
7
7
  take;
@@ -0,0 +1,124 @@
1
+ /// <reference lib="esnext.disposable" />
2
+ import { Fn as Library, J as Value, K as Decimal, _ as LoadOptions, en as Core, ht as ObjectKind, jt as Grant, nn as Script, qt as Shape, tn as Group } from "./debug-s6QIovKS.js";
3
+ import { n as Drive, r as DrivenGroupOptions } from "./driver-D5yrK3Nu.js";
4
+ //#region src/talk.d.ts
5
+ /**
6
+ * Dedents NorthTalk source; rejects JS interpolation.
7
+ *
8
+ * Write NorthTalk's own interpolation as `\${…}` and its backticks as `` \` ``.
9
+ * Pass values as Request arguments instead of splicing them into source. The
10
+ * longest whitespace prefix shared by every non-blank line is removed, compared
11
+ * exactly, so tabs and spaces never match each other.
12
+ */
13
+ declare const talk: (strings: TemplateStringsArray, ...values: unknown[]) => string;
14
+ //#endregion
15
+ //#region src/plain.d.ts
16
+ /** Plain JS data, as `fromValue` writes it (ADR 0119). */
17
+ type PlainValue = null | boolean | string | Decimal | Uint8Array | Value | PlainValue[] | {
18
+ [key: string]: PlainValue;
19
+ } | Map<string, PlainValue>;
20
+ type ToValueOptions = {
21
+ /**
22
+ * `integer` reads safe integers through `num`; `decimal` uses `num` for
23
+ * any JS number. The default refuses JS numbers.
24
+ */
25
+ numbers?: 'refuse' | 'integer' | 'decimal';
26
+ };
27
+ type FromValueOptions = {
28
+ maps?: 'object' | 'map';
29
+ numbers?: 'decimal' | 'string';
30
+ };
31
+ /**
32
+ * Plain JS data to a Value by the named constructors (ADR 0119). Anything
33
+ * the table doesn't name, and cyclic data, throws `invalid value`.
34
+ */
35
+ declare const toValue: (plain: unknown, options?: ToValueOptions) => Value;
36
+ /** A Value as plain JS data (ADR 0119); kinds with no JS form stay Values. */
37
+ declare const fromValue: (v: Value, options?: FromValueOptions) => PlainValue;
38
+ //#endregion
39
+ //#region src/encoding.d.ts
40
+ /**
41
+ * A Message Layer adapter's own spelling of a Function Value or a Text
42
+ * Pattern, which the Value Encoding doesn't hold.
43
+ */
44
+ type AdapterEncoder = (v: Value) => string;
45
+ declare const encodeValue: (value: Value, adapter?: AdapterEncoder) => string;
46
+ //#endregion
47
+ //#region src/json.d.ts
48
+ /** Read exact decimal digits, NFC strings and insertion-ordered maps. */
49
+ declare const decodeJson: (source: string) => Value;
50
+ /** Compact JSON, with canonical numbers and chapter 7's string escapes. */
51
+ declare const encodeJson: (value: Value) => string;
52
+ //#endregion
53
+ //#region src/handlers.d.ts
54
+ /** Untyped Handler calls accept safe-integer JS numbers and plain data. */
55
+ type Handlers = {
56
+ [name: string]: (...args: (PlainValue | number | bigint)[]) => Promise<PlainValue>;
57
+ };
58
+ /** The Host supplies T without runtime checking of its arguments or results. */
59
+ type ScriptWithHandlers<T = Handlers> = Script & {
60
+ readonly handlers: T;
61
+ };
62
+ /**
63
+ * Calls invoke with integer-mode toValue arguments and default fromValue answers.
64
+ * The Script's existing driver or Host Pump loop still runs the Requests.
65
+ * Promise hooks, symbols and non-message properties read as undefined.
66
+ */
67
+ declare const handlersOf: <T = Handlers>(script: Script) => T;
68
+ //#endregion
69
+ //#region src/group-helper.d.ts
70
+ /** A Group whose driver closes explicitly or at the end of an `await using` scope. */
71
+ type DrivenGroup = Omit<Group, 'load'> & Pick<Drive, 'close' | typeof Symbol.asyncDispose> & {
72
+ load<T = Handlers>(o: LoadOptions): ScriptWithHandlers<T>;
73
+ };
74
+ /** The Zig Host Adapter requires its asynchronously created Core. */
75
+ type CreateGroupOptions = DrivenGroupOptions & {
76
+ core: Core;
77
+ };
78
+ /** Creates a driven Group on the supplied Core; close has the driver's shutdown semantics. */
79
+ declare const createGroup: (o: CreateGroupOptions) => DrivenGroup;
80
+ //#endregion
81
+ //#region src/inline-grants.d.ts
82
+ /** Argument and result types are supplied by the Host, without runtime checking. */
83
+ type InlineFunction = (...args: never[]) => unknown;
84
+ type InlineOperation = InlineFunction | {
85
+ arity?: number;
86
+ fn: InlineFunction;
87
+ } | {
88
+ arity?: number;
89
+ async: InlineFunction;
90
+ maxPendingMs?: number;
91
+ };
92
+ /**
93
+ * Defines one Capability per key and grants all its Operations. Arguments use
94
+ * default fromValue; results use integer-mode toValue. Arity is fn.length unless
95
+ * overridden, including for async functions, which also receive a final signal.
96
+ */
97
+ declare const inlineGrants: (capabilities: Readonly<Record<string, Readonly<Record<string, InlineOperation>>>>) => Record<string, Grant<void>>;
98
+ //#endregion
99
+ //#region src/manifest.d.ts
100
+ type MessageDecl = {
101
+ args?: readonly Shape[];
102
+ description?: string;
103
+ /** NorthTalk source, each sending this message. */
104
+ examples?: readonly string[];
105
+ name: string;
106
+ receivers?: readonly ObjectKind[];
107
+ };
108
+ type ManifestSpec = {
109
+ grants: Readonly<Record<string, Grant<any>>>;
110
+ kind: string;
111
+ libraries?: readonly Library[];
112
+ messages?: readonly MessageDecl[];
113
+ /** Whether the Host supplies a musical clock (chapter 9, The musical clock). */
114
+ musicalTime?: boolean;
115
+ objectKinds?: readonly ObjectKind[];
116
+ objects?: Readonly<Record<string, ObjectKind>>;
117
+ /** The Owner Kind: one of objectKinds, the kind of `me` for tooling. */
118
+ ownerKind?: ObjectKind;
119
+ version: string;
120
+ };
121
+ /** Chapter 9's deterministic JSON file, ending in LF; never calls the Host. */
122
+ declare const exportManifest: (m: ManifestSpec) => string;
123
+ //#endregion
124
+ export { PlainValue as _, InlineOperation as a, toValue as b, DrivenGroup as c, ScriptWithHandlers as d, handlersOf as f, FromValueOptions as g, encodeValue as h, InlineFunction as i, createGroup as l, encodeJson as m, MessageDecl as n, inlineGrants as o, decodeJson as p, exportManifest as r, CreateGroupOptions as s, ManifestSpec as t, Handlers as u, ToValueOptions as v, talk as x, fromValue as y };
@@ -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-ChQ0e92c.js";
3
- import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-M8v567iA.js";
2
+ import { i as JsonObject, n as Json, r as JsonNumber, s as readOrderedJSON } from "./readers-AeB1bJ--.js";
3
+ import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-B93hEK7l.js";
4
4
  //#region src/request-pump-binary.d.ts
5
5
  export declare const requestPumpFeature: "request-pump-fields-v1";
6
6
  export declare const callbacksFeature: "callbacks-fields-v1";
package/message-layer.js CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
- import { l as readOrderedJSON, n as JsonObject, t as JsonNumber } from "./readers-yMS1eAOp.js";
3
- import { c as isRequestPumpBinary, f as decodeBinaryValue, i as encodeBinaryFrame, n as decodeBinaryFrame, p as encodeBinaryValue, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-BS1J8DF2.js";
2
+ import { l as readOrderedJSON, n as JsonObject, t as JsonNumber } from "./readers-BG8g59qS.js";
3
+ import { c as isRequestPumpBinary, f as decodeBinaryValue, i as encodeBinaryFrame, n as decodeBinaryFrame, p as encodeBinaryValue, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-87klb6sX.js";
4
4
  export { JsonNumber, JsonObject, callbacksFeature, decodeBinaryFrame, decodeBinaryValue, encodeBinaryFrame, encodeBinaryValue, isRequestPumpBinary, readOrderedJSON, requestPumpFeature };
package/notify.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-D0rf5SkW.js";
2
+ import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-DXoJ_2Z4.js";
3
3
  export { type NotificationRouter, type RouterOptions, type RoutingResult, type WatchLimits, changed, createRouter };
package/notify.js CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { t as changed, n as createRouter } from "./router-Bm7A2kjt.js";
2
+ export { t as changed, n as createRouter } from "./router-DXmPA-qi.js";
@@ -1,5 +1,5 @@
1
1
 
2
- import { t as HostError, z as objectValue } from "./errors-P3ga1I-9.js";
2
+ import { U as objectValue, t as HostError } from "./errors-VuwK669R.js";
3
3
  //#region src/objects.ts
4
4
  const elementCost = (cost, name) => {
5
5
  const c = cost;
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { C as Report, Cn as CalendarImpl, D as RunEvent, E as RestoreResult, F as TsGroupOptions, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, Nn as Library, P as TsGroup, Rn as compileLibrary, Vn as Limits, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, pt as HostObject, qt as Shape, rr as LoadError, t as DebugController, vn as SqliteBinding, xn as LocaleImpl, xt as CapabilityDef, yt as GrantDecls, zn as replacementLibraries } from "./debug-C_Ob5rkl.js";
2
+ import { Bn as compileLibrary, C as Report, Cn as LocaleImpl, D as RunEvent, E as RestoreResult, F as TsGroupOptions, Fn as Library, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, P as TsGroup, Tn as CalendarImpl, Un as Limits, Vn as replacementLibraries, ar as LoadError, bn as SqliteBinding, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, pt as HostObject, qt as Shape, t as DebugController, xt as CapabilityDef, yt as GrantDecls } from "./debug-s6QIovKS.js";
3
3
  //#region src/setup.d.ts
4
4
  type ShapeSpec = string | {
5
5
  quantity: string;
@@ -109,6 +109,7 @@ type Setup = {
109
109
  }[];
110
110
  operations?: OperationSpec[];
111
111
  scripts?: {
112
+ forbidSuspension?: boolean;
112
113
  grants?: Record<string, {
113
114
  binding?: string | SqliteBinding;
114
115
  capability?: string;