@lace-cloud/canvas 0.25.0 → 0.27.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 CHANGED
@@ -144,11 +144,13 @@ const { ports, close } = await openEngineSession(caller, { root: '/path/to/autho
144
144
  `Invocation.cancel()` sends `CancelInvoke`
145
145
  only and leaves `events` running until the command's own exit — a
146
146
  `signal` abort or `close()` detaches the stream instead, without
147
- cancelling the command's remote effects. An `Invoke` stream that ends
148
- before the command's exit rejects `events` with `CommandDetachedError`
149
- when the consumer's `signal` aborted, and with `CommandUnobservedError`
150
- when the consumer was still listening: the command ran in the engine
151
- and its outcome never arrived.
147
+ cancelling the command's remote effects. An `Invoke` stream that stops
148
+ before the command's exit, by an end or an error, rejects `events` with
149
+ `CommandDetachedError` when the consumer's `signal` aborted; otherwise
150
+ with `CommandUnobservedError` once the engine sent `started` (it
151
+ accepted the request and runs the command, so the command ran and its
152
+ outcome never arrived), and with the call's own error before it (the
153
+ command never ran).
152
154
  - `openEngineCommands(caller, { cwd })` is the commands mapping:
153
155
  `Initialize` once, `Invoke` per command, no session and no Subscribe.
154
156
  - Both mappings name the protocol version this package speaks