@incajs/cli 0.0.12 → 0.0.14

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.
@@ -13,11 +13,13 @@ export interface HostClientOptions {
13
13
  */
14
14
  onStderr?: (line: string) => void;
15
15
  /**
16
- * The window is up and the first bundle has been evaluated, and the host
17
- * speaks the protocol revision this package was built for.
16
+ * The window is open and the first bundle's evaluation has ended: its
17
+ * top-level `await` settled, or 2 seconds passed with it pending. A failed
18
+ * load the app reported keeps the window closed. The host speaks the
19
+ * protocol revision this package was built for.
18
20
  */
19
21
  onReady?: () => void;
20
- /** An app's event listener threw, or the app threw while the host loaded it. */
22
+ /** An app's event listener threw, or the app threw or rejected while the host loaded it. */
21
23
  onAppError?: (error: AppErrorParams) => void;
22
24
  /**
23
25
  * The host exited on its own, or was stopped over a protocol mismatch.
@@ -51,8 +53,7 @@ export declare class HostClient {
51
53
  * Sends a request and resolves with its result once the host answers.
52
54
  * With `timeoutMs`, rejects once that much time passes with no answer —
53
55
  * the host answers on the same thread that runs the app's JS, so a
54
- * wedged app leaves a call pending forever otherwise (PROTOCOL.md:
55
- * "every response a client waits for needs a deadline").
56
+ * wedged app leaves a call pending forever otherwise.
56
57
  */
57
58
  call(method: string, params?: unknown, timeoutMs?: number): Promise<unknown>;
58
59
  /**
package/dist/dev.d.mts CHANGED
@@ -27,9 +27,9 @@ export interface DevOptions {
27
27
  signal: AbortSignal;
28
28
  }
29
29
  /**
30
- * Builds the app, starts `inca-host` once the first build lands, and
31
- * reloads it on every rebuild — until `options.signal` aborts or the host
32
- * exits on its own.
30
+ * Builds the app, starts the host once the first build lands (at once under
31
+ * `experimentalHmr`), and reloads it on every rebuild until `options.signal`
32
+ * aborts or the host exits on its own.
33
33
  *
34
34
  * A config or entry that can't be used before the first build is printed as
35
35
  * `build failed`. `dev` then retries after the next edit to the config or the