@northtalk/ts 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{binary-value-xvJoGg0C.d.ts → binary-value-M8v567iA.d.ts} +1 -1
- package/{checker-CUhn2XaM.js → checker-Coml0Tf9.js} +581 -71
- package/{core-BuTAYRm-.d.ts → core-D4qYURer.d.ts} +1 -1
- package/{debug-DRhMZAxw.d.ts → debug-C_Ob5rkl.d.ts} +137 -12
- package/debug.d.ts +1 -1
- package/debug.js +1 -1
- package/{driver-CHDcuqUy.d.ts → driver-CLi_OmyQ.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/driver.js +1 -1
- package/encoding-BL2ECJmg.js +338 -0
- package/{engine-Cc3yofGM.d.ts → engine-BBNHy4-F.d.ts} +2 -2
- package/{engine-CXf5FCwi.js → engine-DhBk0lTt.js} +6 -6
- package/{errors-D11zizZg.js → errors-P3ga1I-9.js} +124 -21
- package/{group-BflSou2n.js → group-BqccKTWz.js} +406 -75
- package/{http-fetch-DFwVIOQg.js → http-fetch-DA-NbFIM.js} +2 -2
- package/http.d.ts +1 -1
- package/http.js +5 -5
- package/index-CBuczWK0.d.ts +9 -0
- package/index.d.ts +6 -12
- package/index.js +15 -14
- package/{inline-grants-XbX9HL_w.js → inline-grants-BT2nnfLA.js} +4 -5
- package/{lean-BebPaTMK.js → lean-BJmLobmd.js} +13 -8
- package/{lean-CjWVuOrC.d.ts → lean-CFLJ9VrX.d.ts} +155 -6
- package/lean.d.ts +5 -6
- package/lean.js +15 -14
- package/{manifest-CCfpn0kC.js → manifest-37x-HSxH.js} +4 -3
- package/message-layer.d.ts +2 -2
- package/message-layer.js +2 -2
- package/notify.d.ts +1 -1
- package/notify.js +1 -1
- package/{objects-DmUc0lha.js → objects-DE6kRk0r.js} +1 -1
- package/{objects-DC6HjzBY.d.ts → objects-DVlpWsi0.d.ts} +11 -3
- package/{operations-DnCcztkZ.js → operations-CGjDlkGU.js} +73 -15
- package/package.json +5 -1
- package/peer-capability-elnbQy-J.js +149 -0
- package/peer.d.ts +173 -0
- package/peer.js +542 -0
- package/{readers-MmyZ_d0w.d.ts → readers-ChQ0e92c.d.ts} +1 -1
- package/{readers-CsvlahLi.js → readers-yMS1eAOp.js} +1 -1
- package/{request-pump-binary-oqjWFqZA.js → request-pump-binary-BS1J8DF2.js} +4 -4
- package/{router-BZ-aYeXA.js → router-Bm7A2kjt.js} +4 -4
- package/{router-D56rSkU8.d.ts → router-D0rf5SkW.d.ts} +2 -2
- package/session.d.ts +2 -2
- package/session.js +65 -17
- package/setup.d.ts +3 -2
- package/setup.js +13 -16
- package/sqlite.d.ts +2 -2
- package/sqlite.js +5 -5
- package/{store-DHlo6fP5.js → store-D80OlpyG.js} +2 -2
- package/store-capability-DBLlWaNO.js +187 -0
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-BcRQyyEw.js → user-capability-D6hGa3eF.js} +3 -4
- package/wasm.d.ts +16 -7
- package/wasm.js +52 -23
- package/encoding-RUuES_e4.js +0 -99
- package/manifest-DVrx-pT2.d.ts +0 -122
- package/store-capability-BrUUAwVS.js +0 -389
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as listValues, L as nothing, N as map,
|
|
3
|
-
import {
|
|
2
|
+
import { A as listValues, L as nothing, N as map, Qt as characterBoundaries, R as num, et as text, i as ScriptError, o as invalidValue, q as requireValue, rn as normalizeNFC, u as bool, v as dec } from "./errors-P3ga1I-9.js";
|
|
3
|
+
import { ft as errorMessages, n as ScriptError$1 } from "./operations-CGjDlkGU.js";
|
|
4
4
|
//#region src/json.ts
|
|
5
5
|
var JsonReader = class {
|
|
6
6
|
source;
|
package/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import {
|
|
2
|
+
import { $t as Group, J as Value, gt as ObjectKindDef, ht as ObjectKind, on as HttpClientImpl, sn as HttpImpl, x as PumpResult } from "./debug-C_Ob5rkl.js";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
//#region src/http/fetch.d.ts
|
|
5
5
|
/** The largest response body `fetch` reads by default: 8 MiB. */
|
package/http.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as listValues, N as map,
|
|
3
|
-
import { t as defineObjectKind } from "./objects-
|
|
4
|
-
import {
|
|
5
|
-
import { a as parseFetchUrl, i as fetchOrigin } from "./http-fetch-
|
|
2
|
+
import { A as listValues, N as map, R as num, d as bytes, et as text, i as ScriptError, t as HostError, u as bool } from "./errors-P3ga1I-9.js";
|
|
3
|
+
import { t as defineObjectKind } from "./objects-DE6kRk0r.js";
|
|
4
|
+
import { Tt as shape } from "./operations-CGjDlkGU.js";
|
|
5
|
+
import { a as parseFetchUrl, i as fetchOrigin } from "./http-fetch-DA-NbFIM.js";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
7
|
import { createServer, request } from "node:http";
|
|
8
8
|
import { request as request$1 } from "node:https";
|
|
@@ -561,7 +561,7 @@ const createHttpHost = (o = {}) => {
|
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
563
|
case "unhandled": {
|
|
564
|
-
const x = byDelivery?.get(report.delivery);
|
|
564
|
+
const x = report.delivery && byDelivery?.get(report.delivery);
|
|
565
565
|
if (x) settle(x, 404);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference lib="esnext.disposable" />
|
|
2
|
+
import { t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
3
|
+
//#region src/generated/stdlib.d.ts
|
|
4
|
+
/** Every stdlib Library. */
|
|
5
|
+
declare const allStdlib: readonly StdlibLibrary[];
|
|
6
|
+
/** Every stdlib Library's source, by name. */
|
|
7
|
+
declare const stdlibSources: Record<string, string>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { stdlibSources as n, allStdlib as t };
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as
|
|
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";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
/** Every stdlib Library. */
|
|
10
|
-
export declare const allStdlib: readonly StdlibLibrary[];
|
|
11
|
-
/** Every stdlib Library's source, by name. */
|
|
12
|
-
export declare const stdlibSources: Record<string, string>;
|
|
13
|
-
//#endregion
|
|
14
|
-
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 NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, 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 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, newGroup, nothing, nowMicros, num, parseEntry, parseInstant, parseSource, parseSourceRecovering, quantity, range, readDisplay, record, registerStdlib, restore, shape, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
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
|
+
import { n as stdlibSources, t as allStdlib } from "./index-CBuczWK0.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, allStdlib, 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, stdlibSources, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
package/index.js
CHANGED
|
@@ -6,19 +6,20 @@ import { json } from "./stdlib/json.js";
|
|
|
6
6
|
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
|
-
import {
|
|
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-
|
|
11
|
-
import { t as defineObjectKind } from "./objects-
|
|
12
|
-
import {
|
|
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 kindNames } from "./checker-
|
|
14
|
-
import { n as exportManifest } from "./manifest-
|
|
15
|
-
import { c as readDisplay, r as decodeValue } from "./readers-
|
|
16
|
-
import { t as encodeValue } from "./encoding-
|
|
17
|
-
import { a as
|
|
18
|
-
import { o as
|
|
19
|
-
import {
|
|
20
|
-
import { n as
|
|
21
|
-
import {
|
|
9
|
+
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";
|
|
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-BqccKTWz.js";
|
|
11
|
+
import { t as defineObjectKind } from "./objects-DE6kRk0r.js";
|
|
12
|
+
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";
|
|
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-Coml0Tf9.js";
|
|
14
|
+
import { n as exportManifest } from "./manifest-37x-HSxH.js";
|
|
15
|
+
import { c as readDisplay, r as decodeValue } from "./readers-yMS1eAOp.js";
|
|
16
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-BL2ECJmg.js";
|
|
17
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-elnbQy-J.js";
|
|
18
|
+
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";
|
|
19
|
+
import { o as decodeJson, s as encodeJson } from "./http-fetch-DA-NbFIM.js";
|
|
20
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BJmLobmd.js";
|
|
21
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-D6hGa3eF.js";
|
|
22
|
+
import { r as storeCapability, t as add } from "./store-capability-DBLlWaNO.js";
|
|
22
23
|
//#region src/generated/stdlib.ts
|
|
23
24
|
/** Every stdlib Library. */
|
|
24
25
|
const allStdlib = [
|
|
@@ -36,4 +37,4 @@ const stdlibSources = Object.fromEntries(allStdlib.map((l) => [l.name, l.source]
|
|
|
36
37
|
//#region src/index.ts
|
|
37
38
|
registerStdlib(...allStdlib);
|
|
38
39
|
//#endregion
|
|
39
|
-
export { Script as CompiledScript, Decimal, HostError, Lexer, LimitReached, LoadError, LoweringError, MailboxFull, NotImplementedError, ParseError, Run, ScriptError, TsGroup, TsScript, UnitLoadError, Value, add, allStdlib, 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, newGroup, nothing, nowMicros, num, parseEntry, parseInstant, parseSource, parseSourceRecovering, quantity, range, readDisplay, record, registerStdlib, restore, shape, sqliteCapability, stdlibNames, stdlibSources, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
40
|
+
export { Script as CompiledScript, Decimal, HostError, Lexer, LimitReached, LoadError, LoweringError, MailboxFull, NotImplementedError, ParseError, Run, ScriptError, TsGroup, TsScript, UnitLoadError, Value, add, allStdlib, 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, stdlibSources, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as listValues, D as isDecimal, G as record, L as nothing, N as map,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as duplicateHeaderNames, r as fetchAnswerOk, s as encodeJson, t as checkFetch } from "./http-fetch-
|
|
6
|
-
import { c as fixed, s as costOf } from "./store-capability-BrUUAwVS.js";
|
|
2
|
+
import { A as listValues, Ct as integerOf, D as isDecimal, G as record, L as nothing, N as map, R as num, d as bytes, et as text, i as ScriptError, l as Value, o as invalidValue, q as requireValue, t as HostError, u as bool, v as dec, wt as isInteger, y as decimalParts } from "./errors-P3ga1I-9.js";
|
|
3
|
+
import { Dt as validComputedMessageName, St as expectedOf, Tt as shape, bt as defineValueCapability, kt as validStaticMessageName, n as ScriptError$1, yt as defineCapability } from "./operations-CGjDlkGU.js";
|
|
4
|
+
import { c as fixed, f as registerStandardChecks, s as costOf } from "./encoding-BL2ECJmg.js";
|
|
5
|
+
import { n as duplicateHeaderNames, r as fetchAnswerOk, s as encodeJson, t as checkFetch } from "./http-fetch-DA-NbFIM.js";
|
|
7
6
|
import { asyncDispose, newDrivenGroup } from "./driver.js";
|
|
8
7
|
//#region src/talk.ts
|
|
9
8
|
const blank = /^[\t ]*$/;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group-
|
|
4
|
-
import { t as defineObjectKind } from "./objects-
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import { a as
|
|
2
|
+
import { sn as unicodeVersion } from "./errors-P3ga1I-9.js";
|
|
3
|
+
import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group-BqccKTWz.js";
|
|
4
|
+
import { t as defineObjectKind } from "./objects-DE6kRk0r.js";
|
|
5
|
+
import { dt as costModel, pt as languageVersion, yt as defineCapability } from "./operations-CGjDlkGU.js";
|
|
6
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, u as musicalClockCapability } from "./encoding-BL2ECJmg.js";
|
|
7
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-elnbQy-J.js";
|
|
8
|
+
import { a as sqliteCapability, i as httpCapability, n as createGroup$1 } from "./inline-grants-BT2nnfLA.js";
|
|
9
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-D6hGa3eF.js";
|
|
10
|
+
import { r as storeCapability } from "./store-capability-DBLlWaNO.js";
|
|
9
11
|
//#region src/versions.ts
|
|
10
12
|
const coreVersions = Object.freeze({
|
|
11
13
|
language: languageVersion,
|
|
12
14
|
costModel: String(costModel.version),
|
|
13
15
|
unicode: unicodeVersion,
|
|
14
|
-
core: "ts/0.
|
|
16
|
+
core: "ts/0.7.0",
|
|
15
17
|
saveFormat: String(1)
|
|
16
18
|
});
|
|
17
19
|
//#endregion
|
|
@@ -28,6 +30,9 @@ const core = Object.freeze({
|
|
|
28
30
|
sqliteCapability,
|
|
29
31
|
userCapability,
|
|
30
32
|
httpCapability,
|
|
33
|
+
peerCapability,
|
|
34
|
+
peerKind,
|
|
35
|
+
musicalClockCapability,
|
|
31
36
|
compileLibrary,
|
|
32
37
|
newGroup,
|
|
33
38
|
restore,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import {
|
|
3
|
-
import { r as DrivenGroupOptions } from "./driver-
|
|
4
|
-
import { c as DrivenGroup } from "./manifest-DVrx-pT2.js";
|
|
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";
|
|
5
4
|
//#region src/generated/syntax.d.ts
|
|
6
5
|
declare const grammar: {
|
|
7
6
|
reserved: string[];
|
|
@@ -42,7 +41,7 @@ declare const units: ({
|
|
|
42
41
|
calendar: boolean;
|
|
43
42
|
factor: string[];
|
|
44
43
|
})[];
|
|
45
|
-
declare const diagnosticCodes: readonly ["unknown name", "not a value", "name clash", "duplicate name", "duplicate offer", "not in recovery", "leaves recovery catch", "duplicate key", "unknown kind", "no conversion", "bad number", "pattern too large", "wrong argument count", "wrong argument", "wrong labels", "unknown operation", "wrong mode", "missing and wait", "needless and wait", "can't suspend here", "unknown import", "import cycle", "missing grant", "not in a library", "not in a script", "not in a lambda", "not in a guard", "not in a whose", "not in a join", "empty join", "not in a timeout", "empty timeout", "leaves finally", "outside a loop", "veto outside a decision", "after a suspension", "wrong message", "bad suffixes", "can't write", "not a property", "not constant", "default order", "initialiser failed", "nothing to fold", "no item chunk", "capture in repetition", "rest not last", "bits not whole bytes"];
|
|
44
|
+
declare const diagnosticCodes: readonly ["unknown name", "not a value", "name clash", "duplicate name", "duplicate offer", "not in recovery", "leaves recovery catch", "duplicate key", "unknown kind", "bad shape", "no conversion", "bad number", "pattern too large", "wrong argument count", "wrong argument", "wrong labels", "unknown operation", "wrong mode", "missing and wait", "needless and wait", "can't suspend here", "unknown import", "import cycle", "missing grant", "not in a library", "not in a script", "not in a lambda", "not in a guard", "not in a whose", "not in a join", "empty join", "not in a timeout", "empty timeout", "leaves finally", "outside a loop", "veto outside a decision", "after a suspension", "wrong message", "negated shape", "bad suffixes", "can't write", "not a property", "not constant", "default order", "initialiser failed", "nothing to fold", "no item chunk", "capture in repetition", "rest not last", "bits not whole bytes"];
|
|
46
45
|
declare const builtins: readonly [{
|
|
47
46
|
readonly name: "min";
|
|
48
47
|
readonly kind: "function";
|
|
@@ -641,7 +640,7 @@ type Diagnostic = {
|
|
|
641
640
|
message: string;
|
|
642
641
|
span: SourceSpan;
|
|
643
642
|
};
|
|
644
|
-
type ExistingName = Pick<Binding, 'kind' | 'contract' | 'importedFrom'> & {
|
|
643
|
+
type ExistingName = Pick<Binding, 'kind' | 'contract' | 'importedFrom' | 'shape'> & {
|
|
645
644
|
handler?: ExistingName;
|
|
646
645
|
maySuspend?: boolean;
|
|
647
646
|
};
|
|
@@ -683,10 +682,117 @@ type CheckResult = (SemanticResult & {
|
|
|
683
682
|
declare const checkSyntax: (syntax: SyntaxNode, options?: CheckOptions) => SemanticResult;
|
|
684
683
|
declare const checkSource: (source: string, options?: CheckOptions) => CheckResult;
|
|
685
684
|
//#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
|
|
686
728
|
//#region src/constructs.d.ts
|
|
687
729
|
/** Chapter 3's kind names. */
|
|
688
730
|
declare const kindNames: ReadonlySet<string>;
|
|
689
731
|
//#endregion
|
|
732
|
+
//#region src/shapes.d.ts
|
|
733
|
+
/**
|
|
734
|
+
* Shape data before it becomes a value: `ref` is a named Shape from another
|
|
735
|
+
* unit, read from its Constant at load; a local one is inlined.
|
|
736
|
+
*/
|
|
737
|
+
type ShapeData = string | {
|
|
738
|
+
quantity: string;
|
|
739
|
+
} | {
|
|
740
|
+
unitKind: string;
|
|
741
|
+
} | {
|
|
742
|
+
object: string;
|
|
743
|
+
} | {
|
|
744
|
+
list: ShapeData;
|
|
745
|
+
} | {
|
|
746
|
+
optional: ShapeData;
|
|
747
|
+
} | {
|
|
748
|
+
oneOf: ShapeData[];
|
|
749
|
+
} | {
|
|
750
|
+
map: {
|
|
751
|
+
key: string;
|
|
752
|
+
optional: boolean;
|
|
753
|
+
shape: ShapeData;
|
|
754
|
+
}[];
|
|
755
|
+
open: boolean;
|
|
756
|
+
} | {
|
|
757
|
+
ref: Binding;
|
|
758
|
+
};
|
|
759
|
+
/** Each loadable Shape declaration's data, by its Declaration node. */
|
|
760
|
+
declare const shapeData: WeakMap<SemanticNode, ShapeData>;
|
|
761
|
+
//#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
|
|
690
796
|
//#region src/create-group.d.ts
|
|
691
797
|
/** Omitting core uses the process-wide TS Core. */
|
|
692
798
|
type CreateGroupOptions = DrivenGroupOptions & {
|
|
@@ -695,6 +801,49 @@ type CreateGroupOptions = DrivenGroupOptions & {
|
|
|
695
801
|
/** Creates a driven Group that supports `await using` and explicit close(reason). */
|
|
696
802
|
declare const createGroup: (o: CreateGroupOptions) => DrivenGroup;
|
|
697
803
|
//#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
|
|
698
847
|
//#region src/lowering.d.ts
|
|
699
848
|
/** A construct whose lowering the Spec leaves unsettled; not a load diagnostic. */
|
|
700
849
|
declare class LoweringError extends Error {
|
|
@@ -738,4 +887,4 @@ declare const declarationStart: (root: SyntaxNode, declaration: SyntaxNode) => n
|
|
|
738
887
|
//#region src/selectors.d.ts
|
|
739
888
|
declare const validMessageSelector: (message: string, arity: number) => boolean;
|
|
740
889
|
//#endregion
|
|
741
|
-
export { units as A,
|
|
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 };
|
package/lean.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as
|
|
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";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
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 NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, 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 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, newGroup, nothing, nowMicros, num, parseEntry, parseInstant, parseSource, parseSourceRecovering, quantity, range, readDisplay, record, registerStdlib, restore, shape, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
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 };
|
package/lean.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
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-
|
|
4
|
-
import { t as defineObjectKind } from "./objects-
|
|
5
|
-
import {
|
|
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 kindNames } from "./checker-
|
|
7
|
-
import { n as exportManifest } from "./manifest-
|
|
8
|
-
import { c as readDisplay, r as decodeValue } from "./readers-
|
|
9
|
-
import { t as encodeValue } from "./encoding-
|
|
10
|
-
import { a as
|
|
11
|
-
import { o as
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
|
|
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { K as requireArgs, t as HostError } from "./errors-
|
|
3
|
-
import {
|
|
4
|
-
import { n as quoteJSON } from "./encoding-
|
|
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";
|
|
5
5
|
//#region src/call-meter.ts
|
|
6
6
|
var CallMeter = class {
|
|
7
7
|
take;
|
|
@@ -162,6 +162,7 @@ const exportManifest = (m) => {
|
|
|
162
162
|
name,
|
|
163
163
|
kind: kind.name
|
|
164
164
|
})),
|
|
165
|
+
...m.musicalTime ? { musicalTime: true } : {},
|
|
165
166
|
...m.ownerKind ? { ownerKind: m.ownerKind.name } : {}
|
|
166
167
|
})}\n`;
|
|
167
168
|
};
|
package/message-layer.d.ts
CHANGED
|
@@ -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-
|
|
3
|
-
import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-
|
|
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";
|
|
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-
|
|
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-
|
|
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";
|
|
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-
|
|
2
|
+
import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-D0rf5SkW.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-
|
|
2
|
+
export { t as changed, n as createRouter } from "./router-Bm7A2kjt.js";
|