@northtalk/ts 0.9.0 → 0.11.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 (51) hide show
  1. package/{binary-value-B93hEK7l.d.ts → binary-value-np-QZCfn.d.ts} +1 -1
  2. package/{checker-D74oYIhs.js → checker-hkWO1UbN.js} +1 -1
  3. package/{core-BBPI6EhG.d.ts → core-kBXyAo-m.d.ts} +1 -1
  4. package/{debug-s6QIovKS.d.ts → debug-fthW6KN8.d.ts} +15 -1
  5. package/debug.d.ts +1 -1
  6. package/{driver-D5yrK3Nu.d.ts → driver-DtOBRKiH.d.ts} +1 -1
  7. package/driver.d.ts +1 -1
  8. package/{encoding-DzVFpg7k.js → encoding-DlMqlP2Y.js} +1 -1
  9. package/{engine-Dy-BCoiw.d.ts → engine-BoafZGEv.d.ts} +2 -2
  10. package/{engine-Bx8B63iQ.js → engine-CxcONfhv.js} +4 -4
  11. package/{group-CY4FKhzT.js → group-dgTtB1Pi.js} +179 -97
  12. package/{http-fetch-DnpfiOWK.js → http-fetch-CLAeEXVi.js} +1 -1
  13. package/http.d.ts +1 -1
  14. package/http.js +2 -2
  15. package/index.d.ts +4 -4
  16. package/index.js +11 -11
  17. package/{lean-Bg_UTRj0.d.ts → lean-BAz1NuyP.d.ts} +2 -2
  18. package/{lean-DTCTJUmR.js → lean-BwszbUJl.js} +8 -8
  19. package/lean.d.ts +4 -4
  20. package/lean.js +11 -11
  21. package/{manifest-DVS1SEmN.js → manifest-CRpUahPt.js} +2 -2
  22. package/message-layer.d.ts +2 -2
  23. package/message-layer.js +1 -1
  24. package/notify.d.ts +1 -1
  25. package/notify.js +1 -1
  26. package/{objects-q0lnCK-4.d.ts → objects-Cpc3eO-f.d.ts} +1 -1
  27. package/{operations-B3XaG7Ve.js → operations-DrsedOvj.js} +3 -3
  28. package/package.json +1 -1
  29. package/{peer-capability-3etyPHs3.js → peer-capability-RMdN4OHj.js} +2 -2
  30. package/peer.d.ts +1 -1
  31. package/peer.js +2 -2
  32. package/{readers-AeB1bJ--.d.ts → readers-DW4pUrD-.d.ts} +1 -1
  33. package/{request-pump-binary-VOPVqRZD.js → request-pump-binary-P8m6kLfB.js} +229 -51
  34. package/{router-Bdm4KiMG.js → router-C_Fjc2as.js} +4 -4
  35. package/{router-DXoJ_2Z4.d.ts → router-D6b7VJ92.d.ts} +2 -2
  36. package/session.d.ts +2 -2
  37. package/session.js +21 -17
  38. package/setup.d.ts +2 -2
  39. package/setup.js +3 -3
  40. package/sha256-C5Lqj5U7.js +197 -0
  41. package/sqlite.d.ts +2 -2
  42. package/sqlite.js +3 -3
  43. package/{store-BTcyKBLg.js → store-_af2DPoK.js} +2 -2
  44. package/{store-capability-CBJ6mUoH.js → store-capability-Db6v_dw9.js} +2 -2
  45. package/store.d.ts +2 -2
  46. package/store.js +2 -2
  47. package/{user-capability-DNY2dyjq.js → user-capability-CzoLN3RK.js} +2 -2
  48. package/wasm.d.ts +15 -4
  49. package/wasm.js +119 -46
  50. package/{zone-rules-DsCJtmlC.js → zone-rules-Cn-f9u_Z.js} +3 -3
  51. package/sha256-9CGf5BS_.js +0 -168
package/index.js CHANGED
@@ -7,19 +7,19 @@ import { list as list$1 } from "./stdlib/list.js";
7
7
  import { map as map$1 } from "./stdlib/map.js";
8
8
  import { units as units$1 } from "./stdlib/units.js";
9
9
  import { 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-CNc-xY_9.js";
10
- import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group-CY4FKhzT.js";
10
+ import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group-dgTtB1Pi.js";
11
11
  import { t as defineObjectKind } from "./objects-OKVLH190.js";
12
- 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-B3XaG7Ve.js";
13
- import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-D74oYIhs.js";
14
- import { n as exportManifest } from "./manifest-DVS1SEmN.js";
12
+ 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-DrsedOvj.js";
13
+ import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-hkWO1UbN.js";
14
+ import { n as exportManifest } from "./manifest-CRpUahPt.js";
15
15
  import { c as readDisplay, r as decodeValue } from "./readers-G1lHqrPl.js";
16
- import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-DzVFpg7k.js";
17
- import { a as peerKind, i as peerCapability } from "./peer-capability-3etyPHs3.js";
18
- import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-DsCJtmlC.js";
19
- import { o as decodeJson, s as encodeJson } from "./http-fetch-DnpfiOWK.js";
20
- import { n as createCore, r as coreVersions, t as createGroup } from "./lean-DTCTJUmR.js";
21
- import { n as localeCapability, t as userCapability } from "./user-capability-DNY2dyjq.js";
22
- import { r as storeCapability, t as add } from "./store-capability-CBJ6mUoH.js";
16
+ import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-DlMqlP2Y.js";
17
+ import { a as peerKind, i as peerCapability } from "./peer-capability-RMdN4OHj.js";
18
+ import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-Cn-f9u_Z.js";
19
+ import { o as decodeJson, s as encodeJson } from "./http-fetch-CLAeEXVi.js";
20
+ import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BwszbUJl.js";
21
+ import { n as localeCapability, t as userCapability } from "./user-capability-CzoLN3RK.js";
22
+ import { r as storeCapability, t as add } from "./store-capability-Db6v_dw9.js";
23
23
  //#region src/generated/stdlib.ts
24
24
  /** Every stdlib Library. */
25
25
  const allStdlib = [
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { Ar as SourceSpan, Er as SemanticNode, Fn as Library, Ir as SyntaxErrorCode, J as Value, K as Decimal, Lr as SyntaxNode, Pr as Token, Sr as LibraryExport, _ as LoadOptions, dr as CodeUnit, en as Core, ht as ObjectKind, jt as Grant, kr as SemanticTree, nn as Script, qt as Shape, tn as Group, vr as Binding, yt as GrantDecls } from "./debug-s6QIovKS.js";
3
- import { n as Drive, r as DrivenGroupOptions } from "./driver-D5yrK3Nu.js";
2
+ import { Ar as SourceSpan, Er as SemanticNode, Fn as Library, Ir as SyntaxErrorCode, J as Value, K as Decimal, Lr as SyntaxNode, Pr as Token, Sr as LibraryExport, _ as LoadOptions, dr as CodeUnit, en as Core, ht as ObjectKind, jt as Grant, kr as SemanticTree, nn as Script, qt as Shape, tn as Group, vr as Binding, yt as GrantDecls } from "./debug-fthW6KN8.js";
3
+ import { n as Drive, r as DrivenGroupOptions } from "./driver-DtOBRKiH.js";
4
4
  //#region src/generated/syntax.d.ts
5
5
  declare const grammar: {
6
6
  reserved: string[];
@@ -1,19 +1,19 @@
1
1
 
2
2
  import { fn as unicodeVersion } from "./errors-CNc-xY_9.js";
3
- import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group-CY4FKhzT.js";
3
+ import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group-dgTtB1Pi.js";
4
4
  import { t as defineObjectKind } from "./objects-OKVLH190.js";
5
- import { bt as defineCapability, dt as costModel, pt as languageVersion } from "./operations-B3XaG7Ve.js";
6
- import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, u as musicalClockCapability } from "./encoding-DzVFpg7k.js";
7
- import { a as peerKind, i as peerCapability } from "./peer-capability-3etyPHs3.js";
8
- import { a as httpCapability, o as sqliteCapability, r as createGroup$1 } from "./zone-rules-DsCJtmlC.js";
9
- import { n as localeCapability, t as userCapability } from "./user-capability-DNY2dyjq.js";
10
- import { r as storeCapability } from "./store-capability-CBJ6mUoH.js";
5
+ import { bt as defineCapability, dt as costModel, pt as languageVersion } from "./operations-DrsedOvj.js";
6
+ import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, u as musicalClockCapability } from "./encoding-DlMqlP2Y.js";
7
+ import { a as peerKind, i as peerCapability } from "./peer-capability-RMdN4OHj.js";
8
+ import { a as httpCapability, o as sqliteCapability, r as createGroup$1 } from "./zone-rules-Cn-f9u_Z.js";
9
+ import { n as localeCapability, t as userCapability } from "./user-capability-CzoLN3RK.js";
10
+ import { r as storeCapability } from "./store-capability-Db6v_dw9.js";
11
11
  //#region src/versions.ts
12
12
  const coreVersions = Object.freeze({
13
13
  language: languageVersion,
14
14
  costModel: String(costModel.version),
15
15
  unicode: unicodeVersion,
16
- core: "ts/0.9.0",
16
+ core: "ts/0.11.0",
17
17
  saveFormat: String(1)
18
18
  });
19
19
  //#endregion
package/lean.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.disposable" />
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";
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-fthW6KN8.js";
3
3
  import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
4
- import { $ as grammar, A as FromValueOptions, B as SemanticResult, C as handlersOf, D as shapeData, E as ShapeData, F as talk, G as ParseError, H as checkSyntax, I as CheckOptions, J as RecoveryDiagnostic, K as ParseResult, L as CheckResult, M as ToValueOptions, N as fromValue, O as kindNames, P as toValue, Q as builtins, R as Diagnostic, S as ScriptWithHandlers, T as encodeJson, U as EntryKind, V as checkSource, W as EntryResult, X as parseSource, Y as parseEntry, Z as parseSourceRecovering, _ as createGroup, a as LoweringError, c as lowerTree, d as exportManifest, et as units, f as zoneRules, g as CreateGroupOptions, h as inlineGrants, i as CompileResult, j as PlainValue, k as encodeValue, l as ManifestSpec, m as InlineOperation, n as declarationStart, o as compileSource, p as InlineFunction, q as RecoveringParseResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, w as decodeJson, x as Handlers, y as DrivenGroup, z as DiagnosticCode } from "./lean-Bg_UTRj0.js";
5
- import { n as createCore, t as TsCore } from "./core-BBPI6EhG.js";
6
- import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-AeB1bJ--.js";
4
+ import { $ as grammar, A as FromValueOptions, B as SemanticResult, C as handlersOf, D as shapeData, E as ShapeData, F as talk, G as ParseError, H as checkSyntax, I as CheckOptions, J as RecoveryDiagnostic, K as ParseResult, L as CheckResult, M as ToValueOptions, N as fromValue, O as kindNames, P as toValue, Q as builtins, R as Diagnostic, S as ScriptWithHandlers, T as encodeJson, U as EntryKind, V as checkSource, W as EntryResult, X as parseSource, Y as parseEntry, Z as parseSourceRecovering, _ as createGroup, a as LoweringError, c as lowerTree, d as exportManifest, et as units, f as zoneRules, g as CreateGroupOptions, h as inlineGrants, i as CompileResult, j as PlainValue, k as encodeValue, l as ManifestSpec, m as InlineOperation, n as declarationStart, o as compileSource, p as InlineFunction, q as RecoveringParseResult, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as MessageDecl, w as decodeJson, x as Handlers, y as DrivenGroup, z as DiagnosticCode } from "./lean-BAz1NuyP.js";
5
+ import { n as createCore, t as TsCore } from "./core-kBXyAo-m.js";
6
+ import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-DW4pUrD-.js";
7
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, 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, zoneRules };
package/lean.js CHANGED
@@ -1,16 +1,16 @@
1
1
 
2
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-CNc-xY_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-CY4FKhzT.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-dgTtB1Pi.js";
4
4
  import { t as defineObjectKind } from "./objects-OKVLH190.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-B3XaG7Ve.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-D74oYIhs.js";
7
- import { n as exportManifest } from "./manifest-DVS1SEmN.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-DrsedOvj.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-hkWO1UbN.js";
7
+ import { n as exportManifest } from "./manifest-CRpUahPt.js";
8
8
  import { c as readDisplay, r as decodeValue } from "./readers-G1lHqrPl.js";
9
- import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-DzVFpg7k.js";
10
- import { a as peerKind, i as peerCapability } from "./peer-capability-3etyPHs3.js";
11
- import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-DsCJtmlC.js";
12
- import { o as decodeJson, s as encodeJson } from "./http-fetch-DnpfiOWK.js";
13
- import { n as createCore, r as coreVersions, t as createGroup } from "./lean-DTCTJUmR.js";
14
- import { n as localeCapability, t as userCapability } from "./user-capability-DNY2dyjq.js";
15
- import { r as storeCapability, t as add } from "./store-capability-CBJ6mUoH.js";
9
+ import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-DlMqlP2Y.js";
10
+ import { a as peerKind, i as peerCapability } from "./peer-capability-RMdN4OHj.js";
11
+ import { a as httpCapability, c as toValue, i as handlersOf, l as talk, n as inlineGrants, o as sqliteCapability, s as fromValue, t as zoneRules } from "./zone-rules-Cn-f9u_Z.js";
12
+ import { o as decodeJson, s as encodeJson } from "./http-fetch-CLAeEXVi.js";
13
+ import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BwszbUJl.js";
14
+ import { n as localeCapability, t as userCapability } from "./user-capability-CzoLN3RK.js";
15
+ import { r as storeCapability, t as add } from "./store-capability-Db6v_dw9.js";
16
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, zoneRules };
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { X as requireArgs, t as HostError } from "./errors-CNc-xY_9.js";
3
- import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-B3XaG7Ve.js";
4
- import { n as quoteJSON } from "./encoding-DzVFpg7k.js";
3
+ import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-DrsedOvj.js";
4
+ import { n as quoteJSON } from "./encoding-DlMqlP2Y.js";
5
5
  //#region src/call-meter.ts
6
6
  var CallMeter = class {
7
7
  take;
@@ -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-AeB1bJ--.js";
3
- import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-B93hEK7l.js";
2
+ import { i as JsonObject, n as Json, r as JsonNumber, s as readOrderedJSON } from "./readers-DW4pUrD-.js";
3
+ import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-np-QZCfn.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
2
  import { l as readOrderedJSON, n as JsonObject, t as JsonNumber } from "./readers-G1lHqrPl.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-VOPVqRZD.js";
3
+ import { c as isRequestPumpBinary, g as encodeBinaryValue, h as decodeBinaryValue, i as encodeBinaryFrame, n as decodeBinaryFrame, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-P8m6kLfB.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-DXoJ_2Z4.js";
2
+ import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-D6b7VJ92.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-Bdm4KiMG.js";
2
+ export { t as changed, n as createRouter } from "./router-C_Fjc2as.js";
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.disposable" />
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";
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-fthW6KN8.js";
3
3
  //#region src/setup.d.ts
4
4
  type ShapeSpec = string | {
5
5
  quantity: string;
@@ -182,8 +182,8 @@ var Lexer = class {
182
182
  const parts = [];
183
183
  let start = begin;
184
184
  let i = begin;
185
- const error = (code, at, incomplete = false) => ({
186
- ...this.tok("error", code, at, Math.min(s.length, at + 1), space, mode, code),
185
+ const error = (code, at, incomplete = false, width = 1) => ({
186
+ ...this.tok("error", code, at, Math.min(s.length, at + width), space, mode, code),
187
187
  incomplete,
188
188
  parts: incomplete ? [] : parts.filter((p) => p.hole && p.hole.end < at)
189
189
  });
@@ -213,7 +213,7 @@ var Lexer = class {
213
213
  ...t,
214
214
  parts: t.incomplete ? [] : [...parts.filter((p) => p.hole), ...t.parts ?? []]
215
215
  };
216
- if (t.t === "eof") return error("unterminated interpolation", at, true);
216
+ if (t.t === "eof") return error("unterminated interpolation", at, true, 2);
217
217
  if (t.t === "op" && t.v === "}" && depth === 0) {
218
218
  parts.push({
219
219
  start,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northtalk/ts",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "NorthTalk, a readable scripting language for embedding: the TS Core, its Session Host and Standard Capabilities.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,8 +1,8 @@
1
1
 
2
2
  import { P as listValues, V as nothing, b as dec, it as text, t as HostError } from "./errors-CNc-xY_9.js";
3
3
  import { t as defineObjectKind } from "./objects-OKVLH190.js";
4
- import { Dt as shape, kt as validComputedMessageName, n as ScriptError, xt as defineValueCapability } from "./operations-B3XaG7Ve.js";
5
- import { c as fixed, f as registerStandardChecks, s as costOf } from "./encoding-DzVFpg7k.js";
4
+ import { Dt as shape, kt as validComputedMessageName, n as ScriptError, xt as defineValueCapability } from "./operations-DrsedOvj.js";
5
+ import { c as fixed, f as registerStandardChecks, s as costOf } from "./encoding-DlMqlP2Y.js";
6
6
  //#region src/peer-capability.ts
7
7
  /** The Core-fixed Object Kind of a Peer: no properties, no collection. */
8
8
  const PEER_KIND = "peer";
package/peer.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { J as Value, P as TsGroup, an as PeerImpl } from "./debug-s6QIovKS.js";
2
+ import { J as Value, P as TsGroup, an as PeerImpl } from "./debug-fthW6KN8.js";
3
3
  //#region src/peer-message-port.d.ts
4
4
  /** What the link needs of a `MessagePort`, a `Worker` or a worker's `self`. */
5
5
  type PortEndpoint = {
package/peer.js CHANGED
@@ -2,8 +2,8 @@
2
2
  import { H as num, L as map, N as list, V as nothing, i as ScriptError, it as text } from "./errors-CNc-xY_9.js";
3
3
  import { n as toBase64, t as fromBase64 } from "./base64-CDO-a06R.js";
4
4
  import { r as decodeValue } from "./readers-G1lHqrPl.js";
5
- import { t as encodeValue } from "./encoding-DzVFpg7k.js";
6
- import { a as peerKind } from "./peer-capability-3etyPHs3.js";
5
+ import { t as encodeValue } from "./encoding-DlMqlP2Y.js";
6
+ import { a as peerKind } from "./peer-capability-RMdN4OHj.js";
7
7
  //#region src/peer-message-port.ts
8
8
  /** The largest frame a link sends or reads, in UTF-8 bytes. */
9
9
  const MAX_FRAME$1 = 16777216;
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.disposable" />
2
- import { J as Value } from "./debug-s6QIovKS.js";
2
+ import { J as Value } from "./debug-fthW6KN8.js";
3
3
  //#region src/readers.d.ts
4
4
  /** Finds the Host Object a reader names by its kind and id, or none. */
5
5
  type ObjectResolver = (kind: string, id: string) => {