@incajs/cli 0.0.5 → 0.0.7

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.
@@ -45,7 +45,8 @@ export declare function resolveBuildConfig(cwd: string): Promise<ResolvedBuildCo
45
45
  * @param cwd - the app's root directory
46
46
  * @returns the resolved config
47
47
  * @throws if `package.json` is missing, has neither a `name` nor a
48
- * `productName`, or an `icon` doesn't resolve to a real file
48
+ * `productName`, an `icon` doesn't resolve to a real file, or `outDir`
49
+ * would hold the app's own files
49
50
  */
50
51
  export declare function resolveAppConfig(cwd: string): Promise<ResolvedAppConfig>;
51
52
  /**
@@ -15,10 +15,10 @@ export interface HostClientOptions {
15
15
  * speaks the protocol revision this package was built for.
16
16
  */
17
17
  onReady?: () => void;
18
- /** An app's own event listener threw; the host caught it and kept rendering. */
18
+ /** An app's event listener threw, or the app threw while the host loaded it. */
19
19
  onAppError?: (error: AppErrorParams) => void;
20
20
  /**
21
- * The host exited on its own — its window was closed, or it crashed.
21
+ * The host exited on its own, or was stopped over a protocol mismatch.
22
22
  * Not called for the exit `stop()` asks for.
23
23
  */
24
24
  onExit?: (code: number | null, signal: NodeJS.Signals | null) => void;
@@ -52,6 +52,13 @@ export declare class HostClient {
52
52
  * "every response a client waits for needs a deadline").
53
53
  */
54
54
  call(method: string, params?: unknown, timeoutMs?: number): Promise<unknown>;
55
+ /**
56
+ * Sends a fire-and-forget notification — no `id`, so no reply is ever
57
+ * awaited. Used for traffic a bundler integration owns (e.g. Vite's HMR
58
+ * payloads), which answers itself over the same named channel rather than
59
+ * through this client's request/reply bookkeeping.
60
+ */
61
+ notify(method: string, params?: unknown): void;
55
62
  /**
56
63
  * Asks the host to `shutdown` and waits for the child to actually exit —
57
64
  * that exit is the real acknowledgement, not the response. Kills it once
@@ -21,7 +21,8 @@ export interface RpcResult {
21
21
  }
22
22
  export interface RpcFailure {
23
23
  jsonrpc: typeof JSONRPC;
24
- id: number;
24
+ /** `null` when the host fails before any call could be answered. */
25
+ id: number | null;
25
26
  error: {
26
27
  code: number;
27
28
  message: string;
package/dist/dev.d.mts CHANGED
@@ -9,6 +9,11 @@ export interface DevOptions {
9
9
  entry?: string;
10
10
  /** Overrides the bundler — see {@link defaultBundler} for what's wired in by default. */
11
11
  bundler?: Bundler;
12
+ /**
13
+ * Delivers module-granular updates instead of a full reload on every
14
+ * change, over `bundler.hmr` — see `--experimental-hmr`.
15
+ */
16
+ experimentalHmr?: boolean;
12
17
  /**
13
18
  * Overrides host binary resolution. On macOS this is the binary the
14
19
  * app bundle wraps; elsewhere it is launched directly.