@northtalk/ts 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{binary-value-C4ZiXVjv.d.ts → binary-value-B93hEK7l.d.ts} +1 -1
- package/{checker-CUhn2XaM.js → checker-Q4w7rLXk.js} +600 -85
- package/{core-egHbNmve.d.ts → core-BBPI6EhG.d.ts} +1 -1
- package/{debug--Of4MSLw.d.ts → debug-s6QIovKS.d.ts} +142 -10
- package/debug.d.ts +1 -1
- package/debug.js +1 -1
- package/{driver-BIm1mL77.d.ts → driver-D5yrK3Nu.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/driver.js +1 -1
- package/encoding-B7MCQ4ii.js +338 -0
- package/{engine-DbDcopGM.d.ts → engine-Dy-BCoiw.d.ts} +2 -2
- package/{engine-CXf5FCwi.js → engine-OL1BveVZ.js} +6 -6
- package/{errors-D11zizZg.js → errors-VuwK669R.js} +157 -23
- package/{group-BpzTo0k4.js → group-Ccuqwq12.js} +477 -110
- package/{http-fetch-DFwVIOQg.js → http-fetch--O27xjSW.js} +2 -2
- package/http.d.ts +1 -1
- package/http.js +4 -4
- package/index.d.ts +6 -6
- package/index.js +15 -14
- package/{inline-grants-XbX9HL_w.js → inline-grants-DmOdgSoK.js} +4 -5
- package/{lean-aCvN6y52.js → lean-BjhQvHyr.js} +13 -8
- package/{lean-DiS9rUcn.d.ts → lean-D6DQfbqH.d.ts} +42 -7
- package/lean.d.ts +6 -6
- package/lean.js +15 -14
- package/{manifest-CCfpn0kC.js → manifest-BeViDIoy.js} +4 -3
- package/{manifest-mpivREn-.d.ts → manifest-l07K7nW-.d.ts} +4 -2
- 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-TarIKBL8.js} +1 -1
- package/{objects-DYq_YvaQ.d.ts → objects-q0lnCK-4.d.ts} +8 -3
- package/{operations-DnCcztkZ.js → operations-BAELnqwf.js} +133 -58
- package/package.json +5 -1
- package/peer-capability-B8eKbljR.js +151 -0
- package/peer.d.ts +180 -0
- package/peer.js +559 -0
- package/{readers-8WCimMop.d.ts → readers-AeB1bJ--.d.ts} +1 -1
- package/{readers-CsvlahLi.js → readers-BG8g59qS.js} +1 -1
- package/{request-pump-binary-oqjWFqZA.js → request-pump-binary-87klb6sX.js} +9 -4
- package/{router-BZ-aYeXA.js → router-DXmPA-qi.js} +4 -4
- package/{router-BQsO8aPV.d.ts → router-DXoJ_2Z4.d.ts} +2 -2
- package/session.d.ts +2 -2
- package/session.js +64 -16
- package/setup.d.ts +3 -2
- package/setup.js +14 -16
- package/sqlite.d.ts +2 -2
- package/sqlite.js +5 -5
- package/{store-DHlo6fP5.js → store-DzpyWjt2.js} +2 -2
- package/store-capability-CxQJ_Huz.js +187 -0
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-BcRQyyEw.js → user-capability-ClYd8Vln.js} +3 -4
- package/wasm.d.ts +13 -6
- package/wasm.js +47 -19
- package/encoding-RUuES_e4.js +0 -99
- package/store-capability-BrUUAwVS.js +0 -389
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { H as num, L as map, P as listValues, V as nothing, Z as requireValue, b as dec, i as ScriptError, it as text, nn as characterBoundaries, o as invalidValue, sn as normalizeNFC, u as bool } from "./errors-VuwK669R.js";
|
|
3
|
+
import { ft as errorMessages, n as ScriptError$1 } from "./operations-BAELnqwf.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 { J as Value,
|
|
2
|
+
import { J as Value, cn as HttpClientImpl, gt as ObjectKindDef, ht as ObjectKind, ln as HttpImpl, tn as Group, x as PumpResult } from "./debug-s6QIovKS.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 {
|
|
3
|
-
import { t as defineObjectKind } from "./objects-
|
|
4
|
-
import {
|
|
5
|
-
import { a as parseFetchUrl, i as fetchOrigin } from "./http-fetch
|
|
2
|
+
import { H as num, L as map, P as listValues, d as bytes, i as ScriptError, it as text, t as HostError, u as bool } from "./errors-VuwK669R.js";
|
|
3
|
+
import { t as defineObjectKind } from "./objects-TarIKBL8.js";
|
|
4
|
+
import { Dt as shape } from "./operations-BAELnqwf.js";
|
|
5
|
+
import { a as parseFetchUrl, i as fetchOrigin } from "./http-fetch--O27xjSW.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";
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as
|
|
2
|
+
import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-s6QIovKS.js";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import { A as
|
|
5
|
-
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-
|
|
6
|
-
import { n as createCore, t as TsCore } from "./core-
|
|
7
|
-
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-
|
|
4
|
+
import { A as builtins, C as ParseError, D as parseEntry, E as RecoveryDiagnostic, M as units, O as parseSource, S as EntryResult, T as RecoveringParseResult, _ as DiagnosticCode, a as LoweringError, b as checkSyntax, c as lowerTree, d as ShapeData, f as shapeData, g as Diagnostic, h as CheckResult, i as CompileResult, j as grammar, k as parseSourceRecovering, l as CreateGroupOptions, m as CheckOptions, n as declarationStart, o as compileSource, p as kindNames, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as SemanticResult, w as ParseResult, x as EntryKind, y as checkSource } from "./lean-D6DQfbqH.js";
|
|
5
|
+
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-l07K7nW-.js";
|
|
6
|
+
import { n as createCore, t as TsCore } from "./core-BBPI6EhG.js";
|
|
7
|
+
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-AeB1bJ--.js";
|
|
8
8
|
//#region src/generated/stdlib.d.ts
|
|
9
9
|
/** Every stdlib Library. */
|
|
10
10
|
export declare const allStdlib: readonly StdlibLibrary[];
|
|
11
11
|
/** Every stdlib Library's source, by name. */
|
|
12
12
|
export declare const stdlibSources: Record<string, string>;
|
|
13
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 };
|
|
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 MusicalClockImpl, type NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type RecoveringParseResult, type RecoveryDiagnostic, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, Run, type RunAccounting, type RunAncestry, type RunDiscarded, type RunRecord, type RunStarted, type SaveOptions, type ScopeDecl, type Script$1 as Script, type ScriptCodeRequest, ScriptError, type ScriptSources, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SemanticElement, type SemanticName, type SemanticNode, type SemanticResult, type SemanticScope, type SemanticToken, type SemanticTree, type SendFailedReason, type Settlement, type Shape, type ShapeData, type SourceSpan, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StdlibLibrary, type StoreImpl, type SuspendingOp, type SyntaxElement, type SyntaxErrorCode, type SyntaxNode, type SyntaxRule, type TimerImpl, type ToValueOptions, type TokType, type Token, type Trivia, type TsCore, TsGroup, TsScript, UnitLoadError, type UnwindEntry, type UserImpl, Value, type Verdict, type Versions, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
package/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 { D as instant, H as num, J as range, K as quantity, L as map, N as list, Qt as parseInstant, V as nothing, Xt as nowMicros, Y as record, b as dec, c as Decimal, d as bytes, g as civilDate, hn as grammar, i as ScriptError, it as text, l as Value, n as LoadError, pn as builtins, qt as formatInstant, r as MailboxFull, t as HostError, u as bool, vn as units } from "./errors-VuwK669R.js";
|
|
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-Ccuqwq12.js";
|
|
11
|
+
import { t as defineObjectKind } from "./objects-TarIKBL8.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-BAELnqwf.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-Q4w7rLXk.js";
|
|
14
|
+
import { n as exportManifest } from "./manifest-BeViDIoy.js";
|
|
15
|
+
import { c as readDisplay, r as decodeValue } from "./readers-BG8g59qS.js";
|
|
16
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-B7MCQ4ii.js";
|
|
17
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-B8eKbljR.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-DmOdgSoK.js";
|
|
19
|
+
import { o as decodeJson, s as encodeJson } from "./http-fetch--O27xjSW.js";
|
|
20
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BjhQvHyr.js";
|
|
21
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-ClYd8Vln.js";
|
|
22
|
+
import { r as storeCapability, t as add } from "./store-capability-CxQJ_Huz.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, 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, stdlibSources, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
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 { Dt as integerOf, H as num, L as map, Ot as isInteger, P as listValues, V as nothing, Y as record, Z as requireValue, b as dec, d as bytes, i as ScriptError, it as text, k as isDecimal, l as Value, o as invalidValue, t as HostError, u as bool, x as decimalParts } from "./errors-VuwK669R.js";
|
|
3
|
+
import { Ct as expectedOf, Dt as shape, bt as defineCapability, jt as validStaticMessageName, kt as validComputedMessageName, n as ScriptError$1, xt as defineValueCapability } from "./operations-BAELnqwf.js";
|
|
4
|
+
import { c as fixed, f as registerStandardChecks, s as costOf } from "./encoding-B7MCQ4ii.js";
|
|
5
|
+
import { n as duplicateHeaderNames, r as fetchAnswerOk, s as encodeJson, t as checkFetch } from "./http-fetch--O27xjSW.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 { fn as unicodeVersion } from "./errors-VuwK669R.js";
|
|
3
|
+
import { i as restore, l as compileLibrary, r as newGroup, s as stateFingerprint } from "./group-Ccuqwq12.js";
|
|
4
|
+
import { t as defineObjectKind } from "./objects-TarIKBL8.js";
|
|
5
|
+
import { bt as defineCapability, dt as costModel, pt as languageVersion } from "./operations-BAELnqwf.js";
|
|
6
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, u as musicalClockCapability } from "./encoding-B7MCQ4ii.js";
|
|
7
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-B8eKbljR.js";
|
|
8
|
+
import { a as sqliteCapability, i as httpCapability, n as createGroup$1 } from "./inline-grants-DmOdgSoK.js";
|
|
9
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-ClYd8Vln.js";
|
|
10
|
+
import { r as storeCapability } from "./store-capability-CxQJ_Huz.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.8.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,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import {
|
|
3
|
-
import { r as DrivenGroupOptions } from "./driver-
|
|
4
|
-
import { c as DrivenGroup } from "./manifest-
|
|
2
|
+
import { Ar as SourceSpan, Er as SemanticNode, Ir as SyntaxErrorCode, Lr as SyntaxNode, Pr as Token, Sr as LibraryExport, dr as CodeUnit, en as Core, kr as SemanticTree, vr as Binding, yt as GrantDecls } from "./debug-s6QIovKS.js";
|
|
3
|
+
import { r as DrivenGroupOptions } from "./driver-D5yrK3Nu.js";
|
|
4
|
+
import { c as DrivenGroup } from "./manifest-l07K7nW-.js";
|
|
5
5
|
//#region src/generated/syntax.d.ts
|
|
6
6
|
declare const grammar: {
|
|
7
7
|
reserved: string[];
|
|
@@ -42,7 +42,7 @@ declare const units: ({
|
|
|
42
42
|
calendar: boolean;
|
|
43
43
|
factor: string[];
|
|
44
44
|
})[];
|
|
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"];
|
|
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", "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
46
|
declare const builtins: readonly [{
|
|
47
47
|
readonly name: "min";
|
|
48
48
|
readonly kind: "function";
|
|
@@ -641,13 +641,15 @@ type Diagnostic = {
|
|
|
641
641
|
message: string;
|
|
642
642
|
span: SourceSpan;
|
|
643
643
|
};
|
|
644
|
-
type ExistingName = Pick<Binding, 'kind' | 'contract' | 'importedFrom'> & {
|
|
644
|
+
type ExistingName = Pick<Binding, 'kind' | 'contract' | 'importedFrom' | 'shape'> & {
|
|
645
645
|
handler?: ExistingName;
|
|
646
646
|
maySuspend?: boolean;
|
|
647
647
|
};
|
|
648
648
|
type CheckOptions = {
|
|
649
649
|
/** Names in older code units when checking a Script extension. */
|
|
650
650
|
existing?: Readonly<Record<string, ExistingName>>;
|
|
651
|
+
/** Refuse every possible Suspension Point, for a Script loaded with `forbidSuspension` (ADR 0178). */
|
|
652
|
+
forbidSuspension?: boolean;
|
|
651
653
|
/** A Script's Grants, to check its Capability calls against; none checks none. */
|
|
652
654
|
grants?: GrantDecls;
|
|
653
655
|
/** Exports supplied by the Library loader; kind-only entries defer call-count checks. */
|
|
@@ -687,6 +689,36 @@ declare const checkSource: (source: string, options?: CheckOptions) => CheckResu
|
|
|
687
689
|
/** Chapter 3's kind names. */
|
|
688
690
|
declare const kindNames: ReadonlySet<string>;
|
|
689
691
|
//#endregion
|
|
692
|
+
//#region src/shapes.d.ts
|
|
693
|
+
/**
|
|
694
|
+
* Shape data before it becomes a value: `ref` is a named Shape from another
|
|
695
|
+
* unit, read from its Constant at load; a local one is inlined.
|
|
696
|
+
*/
|
|
697
|
+
type ShapeData = string | {
|
|
698
|
+
quantity: string;
|
|
699
|
+
} | {
|
|
700
|
+
unitKind: string;
|
|
701
|
+
} | {
|
|
702
|
+
object: string;
|
|
703
|
+
} | {
|
|
704
|
+
list: ShapeData;
|
|
705
|
+
} | {
|
|
706
|
+
optional: ShapeData;
|
|
707
|
+
} | {
|
|
708
|
+
oneOf: ShapeData[];
|
|
709
|
+
} | {
|
|
710
|
+
map: {
|
|
711
|
+
key: string;
|
|
712
|
+
optional: boolean;
|
|
713
|
+
shape: ShapeData;
|
|
714
|
+
}[];
|
|
715
|
+
open: boolean;
|
|
716
|
+
} | {
|
|
717
|
+
ref: Binding;
|
|
718
|
+
};
|
|
719
|
+
/** Each loadable Shape declaration's data, by its Declaration node. */
|
|
720
|
+
declare const shapeData: WeakMap<SemanticNode, ShapeData>;
|
|
721
|
+
//#endregion
|
|
690
722
|
//#region src/create-group.d.ts
|
|
691
723
|
/** Omitting core uses the process-wide TS Core. */
|
|
692
724
|
type CreateGroupOptions = DrivenGroupOptions & {
|
|
@@ -715,7 +747,10 @@ type CompileResult = {
|
|
|
715
747
|
error: ParseError | null;
|
|
716
748
|
unit: null;
|
|
717
749
|
};
|
|
718
|
-
/**
|
|
750
|
+
/**
|
|
751
|
+
* A checked Library's exports, for the Scripts and Libraries that import it.
|
|
752
|
+
* It reads only declaration headers, so it never converts a body.
|
|
753
|
+
*/
|
|
719
754
|
declare const exportsOf: (tree: SemanticTree) => Record<string, Exclude<LibraryExport, string>>;
|
|
720
755
|
/** Lower a checked semantic tree into its code unit. */
|
|
721
756
|
declare const lowerTree: (tree: SemanticTree, options: Pick<CompileOptions, "name" | "unit"> & {
|
|
@@ -738,4 +773,4 @@ declare const declarationStart: (root: SyntaxNode, declaration: SyntaxNode) => n
|
|
|
738
773
|
//#region src/selectors.d.ts
|
|
739
774
|
declare const validMessageSelector: (message: string, arity: number) => boolean;
|
|
740
775
|
//#endregion
|
|
741
|
-
export {
|
|
776
|
+
export { builtins as A, ParseError as C, parseEntry as D, RecoveryDiagnostic as E, units as M, parseSource as O, EntryResult as S, RecoveringParseResult as T, DiagnosticCode as _, LoweringError as a, checkSyntax as b, lowerTree as c, ShapeData as d, shapeData as f, Diagnostic as g, CheckResult as h, CompileResult as i, grammar as j, parseSourceRecovering as k, CreateGroupOptions as l, CheckOptions as m, declarationStart as n, compileSource as o, kindNames as p, CompileOptions as r, exportsOf as s, validMessageSelector as t, createGroup as u, SemanticResult as v, ParseResult as w, EntryKind as x, checkSource as y };
|
package/lean.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { $ as instant, $n as
|
|
2
|
+
import { $ as instant, $n as NotImplementedError, $t as shape, A as ScriptSources, An as calendarCapability, Ar as SourceSpan, At as FireOp, B as restore, Bn as compileLibrary, Br as syntaxSelector, Bt as ReleaseHook, C as Report, Cn as LocaleImpl, Cr as NameRole, Ct as ChargeRequest, Dn as Costs, Dr as SemanticScope, Dt as EffectResult, E as RestoreResult, En as ConsoleImpl, Er as SemanticNode, Et as Cost, Fn as Library, Fr as SyntaxElement, Ft as Metering, G as RunStarted, Gn as Run, Gt as SegmentGrant, H as RunAccounting, Hn as LimitName, Ht as ScopeDecl, In as LibraryOptions, Ir as SyntaxErrorCode, It as Operation, J as Value, Jn as UnitLoadError, Jt as SuspendingOp, K as Decimal, Kn as RunRecord, Kt as SegmentLifecycle, L as TsScript, Ln as LibrarySource, Lr as SyntaxNode, Lt as Operations, Mn as consoleCapability, Mr as Mode, Mt as GrantContext, N as Settlement, Nn as musicalClockCapability, Nr as TokType, Nt as ImmediateOp, O as SaveOptions, On as MusicalClockImpl, Or as SemanticToken, Ot as ErrorDecl, P as TsGroup, Pn as timerCapability, Pr as Token, Pt as LimitReached, Q as dec, Qn as loadScript, Qt as operationDeclarations, R as Verdict, Rn as OperationRef, Rr as SyntaxRule, Rt as PlainArg, S as PumpedRequest, Sn as sqliteCapability, Sr as LibraryExport, St as CapabilityDefiner, T as RestoreOptions, Tn as CalendarImpl, Tr as SemanticName, Tt as CoordinatedLifecycle, U as RunAncestry, Un as Limits, Ut as SegmentContext, V as CausalWork, Vr as syntaxText, Vt as ReleaseReason, W as RunDiscarded, Wn as Outcome, Wt as SegmentCoordinator, X as bytes, Xn as defaultLimits, Xt as defineCapability, Y as bool, Yn as callFunction, Yt as conforms, Z as civilDate, Zn as deliver, Zt as explain, _ as LoadOptions, _n as SqlParams, _r as disassemble, _t as PropDef, an as PeerImpl, ar as LoadError, at as quantity, b as PumpOptions, bn as SqliteBinding, br as ExportKind, bt as Call, cn as HttpClientImpl, cr as SendFailedReason, d as Counters, dn as httpCapability, dr as CodeUnit, dt as nowMicros, en as Core, er as canConvert, f as Decided, fn as UserImpl, fr as EventBranch, ft as parseInstant, g as Inspection, gn as storeCapability, gr as UnwindEntry, gt as ObjectKindDef, h as GroupOptions, hn as add, hr as Operand, ht as ObjectKind, in as coreVersions, ir as LoadDiagnostic, it as num, jn as clockCapability, jr as Lexer, jt as Grant, k as ScriptCodeRequest, kn as TimerImpl, kr as SemanticTree, kt as FieldShape, l as CancellationOptions, ln as HttpImpl, lr as Body, lt as text, m as EffectFailure, mn as StoreImpl, mr as Instruction, mt as ObjectElements, nn as Script$1, nr as HostError, nt as map, on as peerCapability, or as MailboxFull, ot as range, p as Deciding, pn as userCapability, pr as EventEntry, pt as HostObject, q as Kind, qn as Script, qt as Shape, rn as Versions, rr as HostErrorCode, rt as nothing, sn as peerKind, sr as ScriptError, st as record, tn as Group, tr as waitUs, tt as list, u as CarryOver, un as HttpServerImpl, ur as BodyKind, ut as formatInstant, v as Message, vn as SqlRows, vr as Binding, vt as defineObjectKind, w as Requested, wn as localeCapability, wr as SemanticElement, wt as ChargeResult, x as PumpResult, xn as SqliteImpl, xr as FunctionContract, xt as CapabilityDef, y as PendingCall, yn as SqlValue, yr as BindingKind, yt as GrantDecls, z as newGroup, zn as codeIdentity, zr as Trivia, zt as PlainResult } from "./debug-s6QIovKS.js";
|
|
3
3
|
import { n as registerStdlib, r as stdlibNames, t as StdlibLibrary } from "./stdlib-registry-BwitI3Ox.js";
|
|
4
|
-
import { A as
|
|
5
|
-
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-
|
|
6
|
-
import { n as createCore, t as TsCore } from "./core-
|
|
7
|
-
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-
|
|
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 { A as builtins, C as ParseError, D as parseEntry, E as RecoveryDiagnostic, M as units, O as parseSource, S as EntryResult, T as RecoveringParseResult, _ as DiagnosticCode, a as LoweringError, b as checkSyntax, c as lowerTree, d as ShapeData, f as shapeData, g as Diagnostic, h as CheckResult, i as CompileResult, j as grammar, k as parseSourceRecovering, l as CreateGroupOptions, m as CheckOptions, n as declarationStart, o as compileSource, p as kindNames, r as CompileOptions, s as exportsOf, t as validMessageSelector, u as createGroup, v as SemanticResult, w as ParseResult, x as EntryKind, y as checkSource } from "./lean-D6DQfbqH.js";
|
|
5
|
+
import { _ as PlainValue, a as InlineOperation, b as toValue, c as DrivenGroup, d as ScriptWithHandlers, f as handlersOf, g as FromValueOptions, h as encodeValue, i as InlineFunction, m as encodeJson, n as MessageDecl, o as inlineGrants, p as decodeJson, r as exportManifest, t as ManifestSpec, u as Handlers, v as ToValueOptions, x as talk, y as fromValue } from "./manifest-l07K7nW-.js";
|
|
6
|
+
import { n as createCore, t as TsCore } from "./core-BBPI6EhG.js";
|
|
7
|
+
import { a as decodeValue, o as readDisplay, t as FunctionResolver } from "./readers-AeB1bJ--.js";
|
|
8
|
+
export { type Binding, type BindingKind, type Body, type BodyKind, type CalendarImpl, type Call, type CancellationOptions, type CapabilityDef, type CapabilityDefiner, type CarryOver, type CausalWork, type ChargeRequest, type ChargeResult, type CheckOptions, type CheckResult, type CodeUnit, type CompileOptions, type CompileResult, Script as CompiledScript, type ConsoleImpl, type CoordinatedLifecycle, type Core, type Cost, type Costs, type Counters, type CreateGroupOptions, type Decided, type Deciding, Decimal, type Diagnostic, type DiagnosticCode, type DrivenGroup, type EffectFailure, type EffectResult, type EntryKind, type EntryResult, type ErrorDecl, type EventBranch, type EventEntry, type ExportKind, type FieldShape, type FireOp, type FromValueOptions, type FunctionContract, type FunctionResolver, type Grant, type GrantContext, type GrantDecls, type Group, type GroupOptions, type Handlers, HostError, type HostErrorCode, type HostObject, type HttpClientImpl, type HttpImpl, type HttpServerImpl, type ImmediateOp, type InlineFunction, type InlineOperation, type Inspection, type Instruction, type Kind, Lexer, type Library, type LibraryExport, type LibraryOptions, type LibrarySource, type LimitName, LimitReached, type Limits, type LoadDiagnostic, LoadError, type LoadOptions, type LocaleImpl, LoweringError, MailboxFull, type ManifestSpec, type Message, type MessageDecl, type Metering, type Mode, type MusicalClockImpl, type NameRole, NotImplementedError, type ObjectElements, type ObjectKind, type ObjectKindDef, type Operand, type Operation, type OperationRef, type Operations, type Outcome, ParseError, type ParseResult, type PeerImpl, type PendingCall, type PlainArg, type PlainResult, type PlainValue, type PropDef, type PumpOptions, type PumpResult, type PumpedRequest, type RecoveringParseResult, type RecoveryDiagnostic, type ReleaseHook, type ReleaseReason, type Report, type Requested, type RestoreOptions, type RestoreResult, Run, type RunAccounting, type RunAncestry, type RunDiscarded, type RunRecord, type RunStarted, type SaveOptions, type ScopeDecl, type Script$1 as Script, type ScriptCodeRequest, ScriptError, type ScriptSources, type ScriptWithHandlers, type SegmentContext, type SegmentCoordinator, type SegmentGrant, type SegmentLifecycle, type SemanticElement, type SemanticName, type SemanticNode, type SemanticResult, type SemanticScope, type SemanticToken, type SemanticTree, type SendFailedReason, type Settlement, type Shape, type ShapeData, type SourceSpan, type SqlParams, type SqlRows, type SqlValue, type SqliteBinding, type SqliteImpl, type StdlibLibrary, type StoreImpl, type SuspendingOp, type SyntaxElement, type SyntaxErrorCode, type SyntaxNode, type SyntaxRule, type TimerImpl, type ToValueOptions, type TokType, type Token, type Trivia, type TsCore, TsGroup, TsScript, UnitLoadError, type UnwindEntry, type UserImpl, Value, type Verdict, type Versions, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
package/lean.js
CHANGED
|
@@ -1,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 { D as instant, H as num, J as range, K as quantity, L as map, N as list, Qt as parseInstant, V as nothing, Xt as nowMicros, Y as record, b as dec, c as Decimal, d as bytes, g as civilDate, hn as grammar, i as ScriptError, it as text, l as Value, n as LoadError, pn as builtins, qt as formatInstant, r as MailboxFull, t as HostError, u as bool, vn as units } from "./errors-VuwK669R.js";
|
|
3
|
+
import { S as registerStdlib, _ as loadScript, b as exportsOf, c as codeIdentity, d as Run, f as Script, g as deliver, h as defaultLimits, i as restore, l as compileLibrary, m as callFunction, n as TsScript, p as UnitLoadError, r as newGroup, t as TsGroup, v as LoweringError, w as stdlibNames, x as lowerTree, y as compileSource } from "./group-Ccuqwq12.js";
|
|
4
|
+
import { t as defineObjectKind } from "./objects-TarIKBL8.js";
|
|
5
|
+
import { At as validMessageSelector, Dt as shape, Et as operationDeclarations, Mt as Lexer, U as waitUs, bt as defineCapability, c as canConvert, et as disassemble, gt as LimitReached, t as NotImplementedError, vt as conforms, wt as explain } from "./operations-BAELnqwf.js";
|
|
6
|
+
import { a as syntaxText, c as parseSource, i as syntaxSelector, l as parseSourceRecovering, o as ParseError, p as declarationStart, r as checkSyntax, s as parseEntry, t as checkSource, v as shapeData, y as kindNames } from "./checker-Q4w7rLXk.js";
|
|
7
|
+
import { n as exportManifest } from "./manifest-BeViDIoy.js";
|
|
8
|
+
import { c as readDisplay, r as decodeValue } from "./readers-BG8g59qS.js";
|
|
9
|
+
import { a as clockCapability, d as timerCapability, i as calendarCapability, o as consoleCapability, t as encodeValue, u as musicalClockCapability } from "./encoding-B7MCQ4ii.js";
|
|
10
|
+
import { a as peerKind, i as peerCapability } from "./peer-capability-B8eKbljR.js";
|
|
11
|
+
import { a as sqliteCapability, c as talk, i as httpCapability, o as fromValue, r as handlersOf, s as toValue, t as inlineGrants } from "./inline-grants-DmOdgSoK.js";
|
|
12
|
+
import { o as decodeJson, s as encodeJson } from "./http-fetch--O27xjSW.js";
|
|
13
|
+
import { n as createCore, r as coreVersions, t as createGroup } from "./lean-BjhQvHyr.js";
|
|
14
|
+
import { n as localeCapability, t as userCapability } from "./user-capability-ClYd8Vln.js";
|
|
15
|
+
import { r as storeCapability, t as add } from "./store-capability-CxQJ_Huz.js";
|
|
16
|
+
export { Script as CompiledScript, Decimal, HostError, Lexer, LimitReached, LoadError, LoweringError, MailboxFull, NotImplementedError, ParseError, Run, ScriptError, TsGroup, TsScript, UnitLoadError, Value, add, bool, builtins, bytes, calendarCapability, callFunction, canConvert, checkSource, checkSyntax, civilDate, clockCapability, codeIdentity, compileLibrary, compileSource, conforms, consoleCapability, coreVersions, createCore, createGroup, dec, declarationStart, decodeJson, decodeValue, defaultLimits, defineCapability, defineObjectKind, deliver, disassemble, encodeJson, encodeValue, explain, exportManifest, exportsOf, formatInstant, fromValue, grammar, handlersOf, httpCapability, inlineGrants, instant, kindNames, list, loadScript, localeCapability, lowerTree, map, musicalClockCapability, newGroup, nothing, nowMicros, num, operationDeclarations, parseEntry, parseInstant, parseSource, parseSourceRecovering, peerCapability, peerKind, quantity, range, readDisplay, record, registerStdlib, restore, shape, shapeData, sqliteCapability, stdlibNames, storeCapability, syntaxSelector, syntaxText, talk, text, timerCapability, toValue, units, userCapability, validMessageSelector, waitUs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as quoteJSON } from "./encoding-
|
|
2
|
+
import { X as requireArgs, t as HostError } from "./errors-VuwK669R.js";
|
|
3
|
+
import { gt as LimitReached, pt as languageVersion, ut as compareText } from "./operations-BAELnqwf.js";
|
|
4
|
+
import { n as quoteJSON } from "./encoding-B7MCQ4ii.js";
|
|
5
5
|
//#region src/call-meter.ts
|
|
6
6
|
var CallMeter = class {
|
|
7
7
|
take;
|
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import {
|
|
3
|
-
import { n as Drive, r as DrivenGroupOptions } from "./driver-
|
|
2
|
+
import { Fn as Library, J as Value, K as Decimal, _ as LoadOptions, en as Core, ht as ObjectKind, jt as Grant, nn as Script, qt as Shape, tn as Group } from "./debug-s6QIovKS.js";
|
|
3
|
+
import { n as Drive, r as DrivenGroupOptions } from "./driver-D5yrK3Nu.js";
|
|
4
4
|
//#region src/talk.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Dedents NorthTalk source; rejects JS interpolation.
|
|
@@ -110,6 +110,8 @@ type ManifestSpec = {
|
|
|
110
110
|
kind: string;
|
|
111
111
|
libraries?: readonly Library[];
|
|
112
112
|
messages?: readonly MessageDecl[];
|
|
113
|
+
/** Whether the Host supplies a musical clock (chapter 9, The musical clock). */
|
|
114
|
+
musicalTime?: boolean;
|
|
113
115
|
objectKinds?: readonly ObjectKind[];
|
|
114
116
|
objects?: Readonly<Record<string, ObjectKind>>;
|
|
115
117
|
/** The Owner Kind: one of objectKinds, the kind of `me` for tooling. */
|
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-AeB1bJ--.js";
|
|
3
|
+
import { n as decodeBinaryValue, r as encodeBinaryValue, t as BinaryValueOptions } from "./binary-value-B93hEK7l.js";
|
|
4
4
|
//#region src/request-pump-binary.d.ts
|
|
5
5
|
export declare const requestPumpFeature: "request-pump-fields-v1";
|
|
6
6
|
export declare const callbacksFeature: "callbacks-fields-v1";
|
package/message-layer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { l as readOrderedJSON, n as JsonObject, t as JsonNumber } from "./readers-
|
|
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-BG8g59qS.js";
|
|
3
|
+
import { c as isRequestPumpBinary, f as decodeBinaryValue, i as encodeBinaryFrame, n as decodeBinaryFrame, p as encodeBinaryValue, t as callbacksFeature, u as requestPumpFeature } from "./request-pump-binary-87klb6sX.js";
|
|
4
4
|
export { JsonNumber, JsonObject, callbacksFeature, decodeBinaryFrame, decodeBinaryValue, encodeBinaryFrame, encodeBinaryValue, isRequestPumpBinary, readOrderedJSON, requestPumpFeature };
|
package/notify.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-
|
|
2
|
+
import { a as changed, i as WatchLimits, n as RouterOptions, o as createRouter, r as RoutingResult, t as NotificationRouter } from "./router-DXoJ_2Z4.js";
|
|
3
3
|
export { type NotificationRouter, type RouterOptions, type RoutingResult, type WatchLimits, changed, createRouter };
|
package/notify.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export { t as changed, n as createRouter } from "./router-
|
|
2
|
+
export { t as changed, n as createRouter } from "./router-DXmPA-qi.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { C as Report,
|
|
2
|
+
import { Bn as compileLibrary, C as Report, Cn as LocaleImpl, D as RunEvent, E as RestoreResult, F as TsGroupOptions, Fn as Library, Ht as ScopeDecl, I as TsRestoreOptions, J as Value, L as TsScript, M as SessionPort, P as TsGroup, Tn as CalendarImpl, Un as Limits, Vn as replacementLibraries, ar as LoadError, bn as SqliteBinding, g as Inspection, gt as ObjectKindDef, ht as ObjectKind, j as SessionControls, jt as Grant, pt as HostObject, qt as Shape, t as DebugController, xt as CapabilityDef, yt as GrantDecls } from "./debug-s6QIovKS.js";
|
|
3
3
|
//#region src/setup.d.ts
|
|
4
4
|
type ShapeSpec = string | {
|
|
5
5
|
quantity: string;
|
|
@@ -109,6 +109,7 @@ type Setup = {
|
|
|
109
109
|
}[];
|
|
110
110
|
operations?: OperationSpec[];
|
|
111
111
|
scripts?: {
|
|
112
|
+
forbidSuspension?: boolean;
|
|
112
113
|
grants?: Record<string, {
|
|
113
114
|
binding?: string | SqliteBinding;
|
|
114
115
|
capability?: string;
|
|
@@ -136,7 +137,6 @@ type Setup = {
|
|
|
136
137
|
perStep?: number;
|
|
137
138
|
}[];
|
|
138
139
|
};
|
|
139
|
-
declare const operationDeclarations: (capabilities: ReadonlyMap<string, CapabilityDef<unknown>>) => GrantDecls;
|
|
140
140
|
/**
|
|
141
141
|
* The Core a case runs on: the TS Core's free functions by default, or
|
|
142
142
|
* another Core behind the same embedding interface, such as the Zig reactor's
|
|
@@ -166,6 +166,10 @@ type SetupGroup = {
|
|
|
166
166
|
load(group: TsGroup, name: string, objects?: Record<string, HostObject>): TsScript;
|
|
167
167
|
};
|
|
168
168
|
/** Make a Group whose Scripts are loaded only when the Host requests them. */
|
|
169
|
+
/** A case's `musical-clock` Standard Capability, as the Group option. */
|
|
170
|
+
declare const musicalClockOf: (capabilities: ReadonlyMap<string, CapabilityDef<unknown>>) => {
|
|
171
|
+
musicalClock?: CapabilityDef<unknown>;
|
|
172
|
+
};
|
|
169
173
|
declare const buildSetupGroup: (setup: Setup, capabilities: ReadonlyMap<string, CapabilityDef<unknown>>, options: {
|
|
170
174
|
core?: CaseCore;
|
|
171
175
|
name: string;
|
|
@@ -469,6 +473,7 @@ declare class SessionHost {
|
|
|
469
473
|
private save;
|
|
470
474
|
private restore;
|
|
471
475
|
private library;
|
|
476
|
+
private addScript;
|
|
472
477
|
private store;
|
|
473
478
|
private export;
|
|
474
479
|
private inspected;
|
|
@@ -649,4 +654,4 @@ declare class SessionObjects {
|
|
|
649
654
|
private perform;
|
|
650
655
|
}
|
|
651
656
|
//#endregion
|
|
652
|
-
export { shapeOf as A, Setup as C, capabilityOperations as D, buildSetupGroup as E, tsCore as M, immutableSetup as O, OperationSpec as S, ShapeSpec as T, UserPrompt as _, ReplayOptions as a, MissingCapabilityError as b, parseTranscript as c, DebugAction as d, MOCK_ARGUMENTS as f, SourcePlacement as g, SessionHost as h, parseEnvelope as i, shapeSpec as j,
|
|
657
|
+
export { shapeOf as A, Setup as C, capabilityOperations as D, buildSetupGroup as E, tsCore as M, immutableSetup as O, OperationSpec as S, ShapeSpec as T, UserPrompt as _, ReplayOptions as a, MissingCapabilityError as b, parseTranscript as c, DebugAction as d, MOCK_ARGUMENTS as f, SourcePlacement as g, SessionHost as h, parseEnvelope as i, shapeSpec as j, musicalClockOf as k, replayTranscript as l, SessionEnvironment as m, ObjectReference as n, Replayed as o, Mock as p, SessionObjects as r, TranscriptItem as s, Envelope as t, writeTranscript as u, Waiting as v, SetupGroup as w, ObjectRefSpec as x, CaseCore as y };
|