@tokamaq/sdk 0.1.0-dev.1 → 0.1.0-dev.2

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 (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -261,8 +261,8 @@ The workspace server chooses the destination. A direct client authenticated
261
261
  as a person on an embedded Runner's machine uses that Runner, including for
262
262
  nested actions. A [Runner connected to a shared server](../runner/README.md#connect-a-headless-runner-to-a-shared-server)
263
263
  receives `"caller"` actions for the exact device in the original call note,
264
- including nested actions from that device. The macOS and Linux desktop app
265
- automatically connects its Runner using the window's device key on the active
264
+ including nested actions from that device. The desktop app automatically
265
+ connects its Runner using the window's device key on the active
266
266
  joined server. Caller actions wait briefly for the Runner to register before
267
267
  asking the user to retry, while server actions can proceed. A desktop without
268
268
  automatic attachment can still forward work to its local Runner through the
@@ -332,15 +332,16 @@ still running for that invocation. Use `node:fs/promises` for local files.
332
332
  **Await the programs you need finished before returning.** Any
333
333
  call (including a routed contract method) can return while its unawaited
334
334
  programs are still being reaped. These programs still count toward the host's
335
- 256-program limit. Normal cleanup sends TERM and gives a live process group
336
- up to two seconds before sending KILL.
335
+ 256-program limit. On macOS and Linux, normal cleanup sends TERM and gives a
336
+ live process group up to two seconds before sending KILL. On Windows, cleanup
337
+ closes the program's job and stops its process tree immediately.
337
338
 
338
339
  Use `ctx.withPrograms(async (forceStop, scoped) => { … })` to group programs
339
340
  started through `scoped.proc` and providers selected with `scoped`. Calling
340
- `forceStop()` ends those process groups without cancelling the invocation
341
+ `forceStop()` ends those process trees without cancelling the invocation
341
342
  or its other programs. `withPrograms` can return while the scope
342
- is still being reaped. Force stop sends KILL immediately, including to groups
343
- already in their TERM grace. Use `contract.list(ctx)` or `contract.get(id, ctx)` in
343
+ is still being reaped. On macOS and Linux, force stop sends KILL immediately,
344
+ including to groups already in their TERM grace. Use `contract.list(ctx)` or `contract.get(id, ctx)` in
344
345
  actions so the lookup follows the caller across awaits.
345
346
  Queries and mutations still use `contract.list()` and `contract.get(id)`.
346
347
 
@@ -662,10 +663,9 @@ SurrealDB integration remains for the host issues and their tests.
662
663
 
663
664
  ## Plugin process and action process
664
665
 
665
- On macOS and Linux, a plugin process runs caller actions.
666
+ On macOS, Linux and Windows, a plugin process runs caller actions.
666
667
  The action process runs server actions in `tokamaq-plugin-host`. Queries and mutations run
667
- in the server's engine. On Windows, caller actions and server actions report
668
- “Plugin code is not supported on Windows yet.”
668
+ in the server's engine.
669
669
 
670
670
  A caller action can import `node:path`, `node:os`, `node:crypto`,
671
671
  `node:url`, and `node:fs/promises`; an action sent to the server returns `noMachine` if it
@@ -676,7 +676,7 @@ such as `process.getBuiltinModule`, `import.meta.require`, `process.binding`,
676
676
  or `globalThis.Bun`, fail at runtime in QuickJS. Use `ctx.proc` in a caller
677
677
  action to run a separate program when needed.
678
678
 
679
- Caller actions get `process.platform` (`darwin` or `linux`), an
679
+ Caller actions get `process.platform` (`darwin`, `linux` or `win32`), an
680
680
  empty `process.versions`, and a snapshot in `process.env`. Writing to that
681
681
  object does not change the environment of later programs. Pass `env` to
682
682
  `ctx.proc` instead. The local host supplies global timers and fetch. It caps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokamaq/sdk",
3
- "version": "0.1.0-dev.1",
3
+ "version": "0.1.0-dev.2",
4
4
  "description": "Tokamaq server and window plugin SDK.",
5
5
  "license": "MIT",
6
6
  "repository": {