@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/README.md CHANGED
@@ -25,21 +25,23 @@ console.log((await reply.result).toString()); // 5
25
25
  await drive.close();
26
26
  ```
27
27
 
28
- A Host can create a Group ready to pump from the event loop with `newDrivenGroup`, or use `newGroup` and drive it with its own `pump` loop. Before releasing application resources, `await drive.close()` stops Scripts and awaits Promise-backed Operation cleanup. The driver also supports async disposal with `await using`.
28
+ A Host can create a Group ready to pump from the event loop with `newDrivenGroup`, or use `newGroup` and drive it with its own `pump` loop. Before releasing application resources, `await drive.close()` stops Scripts and awaits Promise-backed Operation cleanup. A suspending Operation's `run` must honour `call.signal` and settle once it aborts; a Promise that never settles keeps close pending unless the driver's `closeTimeoutMs` bounds the wait. The driver also supports async disposal with `await using`.
29
29
 
30
30
  ## Subpaths
31
31
 
32
- | Import | Holds |
33
- | ----------------------- | ------------------------------------------------------------------------------------------------------------ |
34
- | `@northtalk/ts` | Values, Groups, Scripts, Libraries, Capabilities, Object Kinds, save and restore, and the parser and checker |
35
- | `@northtalk/ts/session` | The Session Host, for a REPL or playground, and Session Transcripts |
36
- | `@northtalk/ts/driver` | `newDrivenGroup` and `autoDrive`, which pump a Group from the event loop |
37
- | `@northtalk/ts/store` | The Store Standard Capability |
38
- | `@northtalk/ts/notify` | The Store notification router |
39
- | `@northtalk/ts/sqlite` | A `sqlite` implementation on `node:sqlite`, for server Hosts |
40
- | `@northtalk/ts/wasm` | The same embedding API over the Zig Core's WebAssembly reactor |
41
- | `@northtalk/ts/setup` | Group setup shared by Sessions and Trace replay. Tooling surface |
42
- | `@northtalk/ts/debug` | Debugger hooks. Tooling surface |
32
+ | Import | Holds |
33
+ | ----------------------------- | ------------------------------------------------------------------------------------------------------------ |
34
+ | `@northtalk/ts` | Values, Groups, Scripts, Libraries, Capabilities, Object Kinds, save and restore, and the parser and checker |
35
+ | `@northtalk/ts/session` | The Session Host, for a REPL, and Session Transcripts |
36
+ | `@northtalk/ts/driver` | `newDrivenGroup` and `autoDrive`, which pump a Group from the event loop |
37
+ | `@northtalk/ts/store` | The Store Standard Capability |
38
+ | `@northtalk/ts/notify` | The Store notification router |
39
+ | `@northtalk/ts/sqlite` | A `sqlite` implementation on `node:sqlite`, for server Hosts |
40
+ | `@northtalk/ts/http` | The HTTP router on `node:http`, for server Hosts |
41
+ | `@northtalk/ts/message-layer` | Binary Value and frame codecs for the Message Layer |
42
+ | `@northtalk/ts/wasm` | The same embedding API over the Zig Core's WebAssembly reactor |
43
+ | `@northtalk/ts/setup` | Group setup shared by Sessions and Trace replay. Tooling surface |
44
+ | `@northtalk/ts/debug` | Debugger hooks. Tooling surface |
43
45
 
44
46
  The tooling surfaces serve editors, debuggers and REPLs. They aren't part of the Spec's embedding API, and may change in any minor release while the package is `0.x`.
45
47
 
@@ -49,8 +51,8 @@ The tooling surfaces serve editors, debuggers and REPLs. They aren't part of the
49
51
 
50
52
  The package is ESM only, with no dependencies.
51
53
 
52
- - **Browsers:** every subpath except `./sqlite`. The modules load unbundled through an import map, as well as through a bundler.
53
- - **Node 22 or later, and Bun.** `./sqlite` needs Node 24.10 or later, or Bun.
54
+ - **Browsers:** every subpath except `./sqlite` and `./http`, including `./notify`. The modules load unbundled through an import map, as well as through a bundler.
55
+ - **Node 24.10 or later, and Bun.** The Node minimum applies to every entry point, including applications using only the Core.
54
56
  - **TypeScript 5.9 or later**, for the declarations.
55
57
 
56
58
  `coreVersions` reports the language, Cost Model, Unicode and save-format versions this release implements. The package version follows semver for its embedding API.