@northtalk/ts 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +16 -14
  2. package/{base64-DORMd3Hv.js → base64-Dtqaz_0A.js} +880 -409
  3. package/{binary-value-CEmh60GC.d.ts → binary-value-Bb6HPDtM.d.ts} +2 -2
  4. package/{capabilities-CH0FkRMq.js → capabilities-Bi5Qm6Fr.js} +39 -20
  5. package/{checker-Dc1jl2WH.js → checker-DMI4LiRm.js} +321 -112
  6. package/core-BzGUgjL6.d.ts +22 -0
  7. package/{debug-CQBxKnJB.d.ts → debug-C72o2pZy.d.ts} +506 -50
  8. package/debug.d.ts +3 -3
  9. package/debug.js +1 -1
  10. package/driver-ClV_UDEK.d.ts +63 -0
  11. package/driver.d.ts +2 -40
  12. package/driver.js +24 -4
  13. package/{encoding-nlrpj-Pb.js → encoding-C3Q7pIC9.js} +2 -2
  14. package/{engine-BGaJ9dAk.js → engine-BpdGfAND.js} +6 -6
  15. package/{engine-vbYInVYF.d.ts → engine-Dtby_FkE.d.ts} +3 -3
  16. package/{errors-LYJZ_c8h.js → errors-BKJES3Zu.js} +1060 -751
  17. package/{group-B742gg4T.js → group-vuUL2tq-.js} +6526 -1725
  18. package/http.d.ts +2 -2
  19. package/http.js +3 -3
  20. package/index-ByF5j53i.d.ts +779 -0
  21. package/index.d.ts +6 -651
  22. package/index.js +23 -15
  23. package/{http-capability-CSTkw1Yt.js → inline-grants-Cx0Z9XAt.js} +109 -24
  24. package/manifest-Dw-8Unmf.js +256 -0
  25. package/message-layer.d.ts +3 -3
  26. package/message-layer.js +2 -2
  27. package/notify.d.ts +2 -2
  28. package/notify.js +1 -1
  29. package/{objects-Db7IB5vQ.js → objects-BC4fS0vq.js} +1 -1
  30. package/{objects-DJ3QtCCs.d.ts → objects-Dnqor7Gn.d.ts} +12 -4
  31. package/{operation-promises-EgZXG5N_.js → operation-promises-ClA1BTaS.js} +10 -5
  32. package/package.json +2 -2
  33. package/{readers-CjJHKHvH.js → readers-B5e5bBrY.js} +2 -2
  34. package/{readers-BFPuosPk.d.ts → readers-DAFVvvq4.d.ts} +2 -2
  35. package/{request-pump-binary-DdY3X-yl.js → request-pump-binary-BjnyqXV5.js} +4 -4
  36. package/{router--71qvxtY.js → router-BCHEfs4x.js} +5 -5
  37. package/{router-Zhrw5l__.d.ts → router-BspOCPA0.d.ts} +3 -3
  38. package/session.d.ts +41 -3
  39. package/session.js +260 -179
  40. package/setup.d.ts +2 -2
  41. package/setup.js +4 -4
  42. package/sha256-9CGf5BS_.js +168 -0
  43. package/sqlite.d.ts +5 -5
  44. package/sqlite.js +27 -21
  45. package/{store-hJrRULMx.js → store-DTQa0lyE.js} +2 -2
  46. package/{store-capability-OZp4hXmj.js → store-capability-BxXgiRM7.js} +4 -4
  47. package/store.d.ts +3 -3
  48. package/store.js +2 -2
  49. package/{user-capability-BK4Asg7D.js → user-capability-5-IvCeZI.js} +5 -5
  50. package/wasm.d.ts +12 -8
  51. package/wasm.js +67 -39
  52. package/core-DptnvQT9.d.ts +0 -14
  53. package/manifest-BscyH_rW.d.ts +0 -70
  54. package/manifest-DjsxDSuB.js +0 -129
  55. package/sha256-B_kyYw3Z.js +0 -124
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northtalk/ts",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "NorthTalk, a readable scripting language for embedding: the TS Core, its Session Host and Standard Capabilities.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "embedding"
20
20
  ],
21
21
  "engines": {
22
- "node": ">=22"
22
+ "node": ">=24.10"
23
23
  },
24
24
  "sideEffects": false,
25
25
  "exports": {
@@ -1,6 +1,6 @@
1
1
 
2
- import { B as range, C as hiddenCodePoint, K as text, M as map, P as nothing, Qt as parseInstant, R as quantity, _ as dec, f as bytesOf, k as listValues, l as Value, m as civilDate, o as invalidValue, u as bool, ut as assertScalarText, w as instant } from "./errors-LYJZ_c8h.js";
3
- import { t as fromBase64 } from "./base64-DORMd3Hv.js";
2
+ import { A as listValues, H as quantity, L as nothing, N as map, Q as text, T as instant, W as range, Zt as parseInstant, en as assertScalarText, f as bytesOf, l as Value, m as civilDate, o as invalidValue, u as bool, v as dec, w as hiddenCodePoint } from "./errors-BKJES3Zu.js";
3
+ import { t as fromBase64 } from "./base64-Dtqaz_0A.js";
4
4
  //#region src/readers.ts
5
5
  var Reader = class {
6
6
  source;
@@ -1,5 +1,5 @@
1
-
2
- import { q as Value } from "./debug-CQBxKnJB.js";
1
+ /// <reference lib="esnext.disposable" />
2
+ import { J as Value } from "./debug-C72o2pZy.js";
3
3
  //#region src/readers.d.ts
4
4
  /** Finds the Host Object a reader names by its kind and id, or none. */
5
5
  type ObjectResolver = (kind: string, id: string) => {
@@ -1,8 +1,8 @@
1
1
 
2
- import { B as range, F as num, I as objectValue, K as text, L as patternValue, M as map, P as nothing, Qt as parseInstant, R as quantity, _ as dec, d as bytes, ht as normalizeNFC, k as listValues, l as Value, m as civilDate, o as invalidValue, qt as formatInstant, u as bool, w as instant, x as functionValue } from "./errors-LYJZ_c8h.js";
3
- import { _ as viewSource, t as checkSource } from "./checker-Dc1jl2WH.js";
4
- import { n as toBase64, rt as patternSource, v as decodeUtf8 } from "./base64-DORMd3Hv.js";
5
- import { a as fromJson, n as JsonObject, o as isJsonNumber, s as isJsonObject, t as JsonNumber } from "./readers-CjJHKHvH.js";
2
+ import { A as listValues, H as quantity, Kt as formatInstant, L as nothing, N as map, Q as text, R as num, S as functionValue, T as instant, V as patternValue, W as range, Zt as parseInstant, d as bytes, l as Value, m as civilDate, o as invalidValue, on as normalizeNFC, u as bool, v as dec, z as objectValue } from "./errors-BKJES3Zu.js";
3
+ import { _ as viewSource, t as checkSource } from "./checker-DMI4LiRm.js";
4
+ import { n as toBase64, st as patternSource, v as decodeUtf8 } from "./base64-Dtqaz_0A.js";
5
+ import { a as fromJson, n as JsonObject, o as isJsonNumber, s as isJsonObject, t as JsonNumber } from "./readers-B5e5bBrY.js";
6
6
  //#region src/binary-value.ts
7
7
  const coreErrors = /* @__PURE__ */ new WeakSet();
8
8
  const max = 2n ** 64n;
@@ -1,9 +1,9 @@
1
1
 
2
- import { K as text, M as map, i as ScriptError, k as listValues, t as HostError, u as bool } from "./errors-LYJZ_c8h.js";
3
- import { Y as sizeOf, st as compareText } from "./base64-DORMd3Hv.js";
4
- import { t as encodeValue } from "./encoding-nlrpj-Pb.js";
5
- import { t as sha256 } from "./sha256-B_kyYw3Z.js";
6
- import { n as hostScriptError } from "./store-capability-OZp4hXmj.js";
2
+ import { A as listValues, N as map, Q as text, i as ScriptError, t as HostError, u as bool } from "./errors-BKJES3Zu.js";
3
+ import { $ as sizeOf, dt as compareText } from "./base64-Dtqaz_0A.js";
4
+ import { t as encodeValue } from "./encoding-C3Q7pIC9.js";
5
+ import { n as sha256 } from "./sha256-9CGf5BS_.js";
6
+ import { n as hostScriptError } from "./store-capability-BxXgiRM7.js";
7
7
  //#region src/notify/router.ts
8
8
  /**
9
9
  * Whether a commit changed a key's value: compared by the bytes of the Value
@@ -1,6 +1,6 @@
1
-
2
- import { D as SaveOptions, F as TsRestoreOptions, Jt as Group, N as TsGroup, T as RestoreResult, kt as GrantContext, q as Value, yt as Call } from "./debug-CQBxKnJB.js";
3
- import { t as TsCore } from "./core-DptnvQT9.js";
1
+ /// <reference lib="esnext.disposable" />
2
+ import { E as RestoreResult, I as TsRestoreOptions, J as Value, Mt as GrantContext, O as SaveOptions, P as TsGroup, Qt as Group, bt as Call } from "./debug-C72o2pZy.js";
3
+ import { t as TsCore } from "./core-BzGUgjL6.js";
4
4
  //#region src/notify/router.d.ts
5
5
  /** A Store's four limits on its watches (Store Notifications, Limits). */
6
6
  type WatchLimits = {
package/session.d.ts CHANGED
@@ -1,9 +1,47 @@
1
-
2
- import { C as Setup, _ as UserPrompt, a as ReplayOptions, c as parseTranscript, d as DebugAction, f as MOCK_ARGUMENTS, g as SourcePlacement, h as SessionHost, i as parseEnvelope, l as replayTranscript, m as SessionEnvironment, n as ObjectReference, o as Replayed, p as Mock, r as SessionObjects, s as TranscriptItem, t as Envelope, u as writeTranscript, v as Waiting } from "./objects-DJ3QtCCs.js";
1
+ /// <reference lib="esnext.disposable" />
2
+ import { J as Value } from "./debug-C72o2pZy.js";
3
+ import { C as Setup, _ as UserPrompt, a as ReplayOptions, c as parseTranscript, d as DebugAction, f as MOCK_ARGUMENTS, g as SourcePlacement, h as SessionHost, i as parseEnvelope, l as replayTranscript, m as SessionEnvironment, n as ObjectReference, o as Replayed, p as Mock, r as SessionObjects, s as TranscriptItem, t as Envelope, u as writeTranscript, v as Waiting } from "./objects-Dnqor7Gn.js";
4
+ //#region src/session/describe.d.ts
5
+ /** One declaration of the session source, as `:describe` reads it. */
6
+ type DeclaredName = {
7
+ kind: 'use' | 'handler' | 'function' | 'constant' | 'variable';
8
+ library?: string;
9
+ names: string[];
10
+ source: string;
11
+ uses?: {
12
+ local: string;
13
+ name: string;
14
+ }[];
15
+ };
16
+ /** What the Session Host holds for name lookup. */
17
+ type Names = {
18
+ readonly declarations: readonly DeclaredName[];
19
+ /** Whether a current binding has the name, which shadows a Built-in. */
20
+ has(name: string): boolean;
21
+ /** User Libraries, in the order added, with their current sources. */
22
+ readonly libraries: ReadonlyMap<string, string>;
23
+ /** Refuses the command with `! <reason>`. */
24
+ refuse(reason: string): never;
25
+ /** Retained Declaration Documentation, by unit identity and function name. */
26
+ readonly unitDocs?: ReadonlyMap<string, ReadonlyMap<string, string>>;
27
+ /** A current Script Variable's value, from one explicit snapshot. */
28
+ variable(name: string): Value | undefined;
29
+ };
30
+ /** `:describe <target>`'s rows. */
31
+ export declare const describe: (names: Names, rest: string) => string[];
32
+ /** `:apropos [query]`'s rows. */
33
+ export declare const apropos: (names: Names, rest: string) => string[];
34
+ /**
35
+ * The Names of one whole Script, for a host without a Session Host: each
36
+ * declaration of `source` in order, with the comments before it, and the
37
+ * given User Libraries. No Script Variable has a value to show.
38
+ */
39
+ export declare const scriptNames: (source: string, libraries: ReadonlyMap<string, string>, refuse: (reason: string) => never) => Names;
40
+ //#endregion
3
41
  //#region src/generated/builtin-docs.d.ts
4
42
  export declare const builtinDocs: Readonly<Record<string, {
5
43
  call: string;
6
44
  gives: string;
7
45
  }>>;
8
46
  //#endregion
9
- export { type DebugAction, type Envelope, MOCK_ARGUMENTS, type Mock, type ObjectReference, type ReplayOptions, type Replayed, type SessionEnvironment, SessionHost, SessionObjects, type Setup, type SourcePlacement, type TranscriptItem, type UserPrompt, type Waiting, parseEnvelope, parseTranscript, replayTranscript, writeTranscript };
47
+ export { type DebugAction, type Envelope, MOCK_ARGUMENTS, type Mock, type Names, type ObjectReference, type ReplayOptions, type Replayed, type SessionEnvironment, SessionHost, SessionObjects, type Setup, type SourcePlacement, type TranscriptItem, type UserPrompt, type Waiting, parseEnvelope, parseTranscript, replayTranscript, writeTranscript };