@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.
- package/README.md +16 -14
- package/{base64-DORMd3Hv.js → base64-Dtqaz_0A.js} +880 -409
- package/{binary-value-CEmh60GC.d.ts → binary-value-Bb6HPDtM.d.ts} +2 -2
- package/{capabilities-CH0FkRMq.js → capabilities-Bi5Qm6Fr.js} +39 -20
- package/{checker-Dc1jl2WH.js → checker-DMI4LiRm.js} +321 -112
- package/core-BzGUgjL6.d.ts +22 -0
- package/{debug-CQBxKnJB.d.ts → debug-C72o2pZy.d.ts} +506 -50
- package/debug.d.ts +3 -3
- package/debug.js +1 -1
- package/driver-ClV_UDEK.d.ts +63 -0
- package/driver.d.ts +2 -40
- package/driver.js +24 -4
- package/{encoding-nlrpj-Pb.js → encoding-C3Q7pIC9.js} +2 -2
- package/{engine-BGaJ9dAk.js → engine-BpdGfAND.js} +6 -6
- package/{engine-vbYInVYF.d.ts → engine-Dtby_FkE.d.ts} +3 -3
- package/{errors-LYJZ_c8h.js → errors-BKJES3Zu.js} +1060 -751
- package/{group-B742gg4T.js → group-vuUL2tq-.js} +6526 -1725
- package/http.d.ts +2 -2
- package/http.js +3 -3
- package/index-ByF5j53i.d.ts +779 -0
- package/index.d.ts +6 -651
- package/index.js +23 -15
- package/{http-capability-CSTkw1Yt.js → inline-grants-Cx0Z9XAt.js} +109 -24
- package/manifest-Dw-8Unmf.js +256 -0
- package/message-layer.d.ts +3 -3
- package/message-layer.js +2 -2
- package/notify.d.ts +2 -2
- package/notify.js +1 -1
- package/{objects-Db7IB5vQ.js → objects-BC4fS0vq.js} +1 -1
- package/{objects-DJ3QtCCs.d.ts → objects-Dnqor7Gn.d.ts} +12 -4
- package/{operation-promises-EgZXG5N_.js → operation-promises-ClA1BTaS.js} +10 -5
- package/package.json +2 -2
- package/{readers-CjJHKHvH.js → readers-B5e5bBrY.js} +2 -2
- package/{readers-BFPuosPk.d.ts → readers-DAFVvvq4.d.ts} +2 -2
- package/{request-pump-binary-DdY3X-yl.js → request-pump-binary-BjnyqXV5.js} +4 -4
- package/{router--71qvxtY.js → router-BCHEfs4x.js} +5 -5
- package/{router-Zhrw5l__.d.ts → router-BspOCPA0.d.ts} +3 -3
- package/session.d.ts +41 -3
- package/session.js +260 -179
- package/setup.d.ts +2 -2
- package/setup.js +4 -4
- package/sha256-9CGf5BS_.js +168 -0
- package/sqlite.d.ts +5 -5
- package/sqlite.js +27 -21
- package/{store-hJrRULMx.js → store-DTQa0lyE.js} +2 -2
- package/{store-capability-OZp4hXmj.js → store-capability-BxXgiRM7.js} +4 -4
- package/store.d.ts +3 -3
- package/store.js +2 -2
- package/{user-capability-BK4Asg7D.js → user-capability-5-IvCeZI.js} +5 -5
- package/wasm.d.ts +12 -8
- package/wasm.js +67 -39
- package/core-DptnvQT9.d.ts +0 -14
- package/manifest-BscyH_rW.d.ts +0 -70
- package/manifest-DjsxDSuB.js +0 -129
- 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
|
|
33
|
-
|
|
|
34
|
-
| `@northtalk/ts`
|
|
35
|
-
| `@northtalk/ts/session`
|
|
36
|
-
| `@northtalk/ts/driver`
|
|
37
|
-
| `@northtalk/ts/store`
|
|
38
|
-
| `@northtalk/ts/notify`
|
|
39
|
-
| `@northtalk/ts/sqlite`
|
|
40
|
-
| `@northtalk/ts/
|
|
41
|
-
| `@northtalk/ts/
|
|
42
|
-
| `@northtalk/ts/
|
|
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
|
|
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.
|