@jetpack-desktop/client 0.1.2-rc.2 → 0.1.3-rc.3

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
@@ -19,13 +19,32 @@ import initWasm, { JetPackWasmClient, WasmClientIdentity } from '@jetpack-deskto
19
19
  ## Usage
20
20
 
21
21
  ```ts
22
- import { JetPackAppClient } from '@jetpack-desktop/client';
22
+ import {
23
+ createI18n,
24
+ JetPackAppClient,
25
+ resolveLanguage,
26
+ } from '@jetpack-desktop/client';
23
27
 
24
28
  const client = new JetPackAppClient();
25
29
 
30
+ const i18n = createI18n({
31
+ catalogs: {
32
+ en: { ready: 'Worker ready' },
33
+ uk: { ready: 'Воркер готовий' },
34
+ },
35
+ initialLocale: resolveLanguage({ supportedLocales: ['en', 'uk'] }),
36
+ });
37
+
38
+ client.onLanguageChanged((lang) => {
39
+ i18n.setLocale(lang);
40
+ });
41
+
26
42
  await client.connectAndEnsureApp({
27
- appId: 'io.jetpack.media-converter',
28
- daemonPort: 9470,
43
+ env: 'auto',
44
+ environments: {
45
+ dev: { appId: 'com.dev.media-converter', daemonPort: 9470 },
46
+ prod: { appId: 'io.jetpack.media-converter', daemonPort: 9470 },
47
+ },
29
48
  posterUrl: 'https://example.com/app-poster.webp',
30
49
  onDaemonReconnect: (reconnected) => {
31
50
  console.log('JetPack daemon started and connected:', reconnected.getAppId());
@@ -37,7 +56,7 @@ await client.connectAndEnsureApp({
37
56
  onBeforeStop: async () => true,
38
57
  },
39
58
  onProgress: (prog) => {
40
- console.log(`[${prog.stage}] ${prog.percent}% - ${prog.message}`);
59
+ console.log(`[${prog.stage}] ${prog.percent ?? 0}% - ${prog.message}`);
41
60
  },
42
61
  });
43
62
 
@@ -53,8 +72,9 @@ const reply = await client.request(
53
72
 
54
73
  console.log('Reply opcode:', reply.opcode, 'bytes:', reply.payload.byteLength);
55
74
 
56
- // Optionally stop the worker explicitly (also wired to the Control Bar "Stop" button)
75
+ // Optionally stop or re-launch the worker explicitly (also wired to the Control Bar Launch/Stop button)
57
76
  // await client.stopApp();
77
+ // await client.ensureWorkerRunning();
58
78
 
59
79
  unsub();
60
80
  client.destroy(); // Closes WebSocket and unmounts JetPackControlBar
@@ -63,8 +83,10 @@ client.destroy(); // Closes WebSocket and unmounts JetPackControlBar
63
83
  ## Features
64
84
 
65
85
  - **Zero-Config Bundled WASM**: Ships compiled `jetpack-wasm` (`X25519`, `Ed25519`, `ChaCha20-Poly1305`, MsgPack framing) inside the package (`@jetpack-desktop/client/wasm`), while still allowing `wasmModule`, `wasmModulePath`, and `wasmBinaryOrUrl` overrides.
66
- - **`JetPackAppClient<TOpcodes>`**: Automatic `jetpack://pair` onboarding, `SignedAppCatalog` provisioning, worker launch/attachment, correlated `request()`, and wildcard `onStream()`. Pass `JetPackOpcodeMap` generated by `jetpack codegen` for strict compile-time checking while preserving 100% backwards compatibility for untyped `new JetPackAppClient()` usage.
67
- - **`JetPackControlBar` & Blocking Install-Gate Overlay**: Isolated inside an open `ShadowRoot`, auto-mounted at the top of the page during `connectAndEnsureApp()` (pass `controlBar: false` to opt out) with per-document singleton enforcement so reconnects or repeated client instances never render duplicate bars. When `DAEMON_NOT_RUNNING` occurs (and `installBanner !== false`), displays a full-viewport blurred overlay excluding the top bar and bottom Dev Mode log terminal, showing the app poster (`posterUrl` or `og:image` fallback), install message, and a curved dashed SVG arrow pointing to `"Download JetPack"`, while polling `/health` (`daemonPollIntervalMs`, default `2000ms`) to auto-reconnect and dismiss once JetPack starts.
86
+ - **DevEnv & ProdEnv Isolation**: Configure `env: 'auto' | 'dev' | 'prod'` and `environments: { dev, prod }` (or rely on `deriveDevAppId()` to map `com.acme.app` -> `com.dev.app`) so local development never triggers `APP_SPOOFING_DETECTED`.
87
+ - **`JetPackAppClient<TOpcodes>`**: Automatic `jetpack://pair` onboarding, `SignedAppCatalog` provisioning (with `getRawClient()?.estimate_catalog_sizes()` host-aware initial install vs. lazy `[models.<name>]` weight estimates), worker launch/attachment, correlated `request()`, and wildcard `onStream()`. Pass `JetPackOpcodeMap` generated by `jetpack codegen` for strict compile-time checking while preserving 100% backwards compatibility for untyped `new JetPackAppClient()` usage.
88
+ - **Built-In i18n (`createI18n`, `resolveLanguage`)**: Deterministic language resolution (`controlBar.language` -> `?lang=` -> `DaemonSettings.language` -> `'en'`), `client.getLanguage()`, `client.onLanguageChanged(...)`, and automatic `'en'` fallback.
89
+ - **`JetPackControlBar` & Blocking Install-Gate Overlay**: Isolated inside an open `ShadowRoot`, auto-mounted at the top of the page during `connectAndEnsureApp()` (pass `controlBar: false` to opt out) with a **`DEV`** badge in DevEnv, a unified context-aware **`Launch` / `Stop`** button (`onLaunch` / `onStop`), and per-document singleton enforcement so reconnects or repeated client instances never render duplicate bars. When `DAEMON_NOT_RUNNING` occurs (and `installBanner !== false`), displays a full-viewport blurred overlay excluding the top bar and bottom Dev Mode log terminal, showing the app poster (`posterUrl` or `og:image` fallback), install message, and a curved dashed SVG arrow pointing to `"Download JetPack"`, while polling `/health` (`daemonPollIntervalMs`, default `2000ms`) to auto-reconnect and dismiss once JetPack starts.
68
90
  - **`JetPackLogTerminal`**: Auto-mounted bottom drawer when Developer Mode is active on the daemon, streaming sanitized `logs.entry` frames.
69
91
 
70
92
  ## Typed Opcode Contracts (`jetpack codegen`)
@@ -76,11 +98,17 @@ import { JetPackAppClient } from '@jetpack-desktop/client';
76
98
  import type { JetPackOpcodeMap } from './jetpack-env';
77
99
 
78
100
  const typedClient = new JetPackAppClient<JetPackOpcodeMap>();
79
- await typedClient.connectAndEnsureApp({ appId: 'com.dev.my-worker', daemonPort: 9470 });
101
+ await typedClient.connectAndEnsureApp({
102
+ env: 'auto',
103
+ environments: {
104
+ dev: { appId: 'com.dev.my-worker', daemonPort: 9470 },
105
+ prod: { appId: 'com.acme.my-worker', daemonPort: 9470 },
106
+ },
107
+ });
80
108
 
81
109
  // Compile-time verified by tsc: opcode name, meta fields, and binary Uint8Array requirements
82
110
  const reply = await typedClient.request('audio.transcribe', { language: 'en' }, audioBytes);
83
111
  ```
84
112
 
85
- See the [JetPack Documentation](https://jetpack-desktop.github.io/sdk/frontend/quickstart) and [AI Agents & MCP Integration](https://jetpack-desktop.github.io/guide/ai-agents) guides for `llms-full.txt`, `jetpack init`, and `jetpack mcp` setup.
113
+ See the [JetPack Documentation](https://jetpack-desktop.github.io/sdk/frontend/quickstart), [Translations Guide](https://jetpack-desktop.github.io/guide/translations), and [AI Agents & MCP Integration](https://jetpack-desktop.github.io/guide/ai-agents) guides for `llms-full.txt`, `jetpack init`, and `jetpack mcp` setup.
86
114
 
package/dist/client.d.ts CHANGED
@@ -1,7 +1,25 @@
1
1
  import { JetPackControlBar } from './control-bar.js';
2
+ import { DEFAULT_JETPACK_DOWNLOAD_URL } from './download-url.js';
2
3
  import { JetPackLogTerminal } from './log-terminal.js';
3
- import { type AppWorkerStoppedEvent, type ConnectAndEnsureAppOptions, type DefaultOpcodeMap, type LogEntry, type LogsSubscribeOkResponse, type OpcodeConstraint, type OpcodeRequestArgs, type OpcodeResponseFor, type OpcodeStreamPayloadFor, type StreamCallback, type WasmClientLike, type WasmIdentityLike, type WorkerResponse, type WorkerStopReason } from './types.js';
4
- export declare const DEFAULT_JETPACK_DOWNLOAD_URL = "https://github.com/jetpack-desktop/releases/releases/latest";
4
+ import { type AppWorkerStoppedEvent, type ConnectAndEnsureAppOptions, type DefaultOpcodeMap, type JetPackEnvironmentName, type LogEntry, type LogsSubscribeOkResponse, type OpcodeConstraint, type OpcodeRequestArgs, type OpcodeResponseFor, type OpcodeStreamPayloadFor, type ResolvedEnvironmentOptions, type StreamCallback, type WasmClientLike, type WasmIdentityLike, type WorkerResponse, type WorkerStopReason } from './types.js';
5
+ export { DEFAULT_JETPACK_DOWNLOAD_URL };
6
+ /**
7
+ * Derives a safe local development `appId` in the `com.dev.<slug>` namespace
8
+ * from a production reverse-DNS identifier.
9
+ *
10
+ * Identifiers already starting with `com.dev.` (and containing valid characters)
11
+ * are preserved unchanged.
12
+ */
13
+ export declare function deriveDevAppId(prodAppId: string): string;
14
+ /**
15
+ * Resolves `ConnectAndEnsureAppOptions` for either `'dev'` or `'prod'`, merging
16
+ * `environments[resolvedEnv]` overrides and automatically deriving `com.dev.<slug>`
17
+ * when `env` is `'dev'` and `environments.dev.appId` is omitted.
18
+ *
19
+ * When neither `env` nor `environments` is passed, preserves 100% backwards-compatible
20
+ * single-`appId` behavior verbatim (with `env: 'prod'`).
21
+ */
22
+ export declare function resolveEnvironmentOptions(options: ConnectAndEnsureAppOptions): ResolvedEnvironmentOptions;
5
23
  /**
6
24
  * High-level SDK client wrapping `jetpack-wasm` (`WasmClientIdentity` + `JetPackWasmClient`)
7
25
  * to provide automatic `jetpack://pair` onboarding, catalog/install/launch orchestration,
@@ -16,6 +34,7 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
16
34
  private wasmClient;
17
35
  private identity;
18
36
  private appId;
37
+ private env;
19
38
  private lastPairingUri;
20
39
  private closed;
21
40
  private workerRunning;
@@ -27,6 +46,10 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
27
46
  private streamListeners;
28
47
  private workerStoppedListeners;
29
48
  private workerStartedListeners;
49
+ private languageListeners;
50
+ private currentLanguage;
51
+ private hasCustomControlCenterUrl;
52
+ private activeDaemonPort;
30
53
  private inFlightRequests;
31
54
  private controlBar;
32
55
  private logTerminal;
@@ -41,6 +64,10 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
41
64
  getLastStopReason(): WorkerStopReason | null;
42
65
  /** Returns the currently ensured `appId`, or `null` if disconnected. */
43
66
  getAppId(): string | null;
67
+ /** Returns the resolved environment (`'dev'` or `'prod'`) while connected, or `null` before connect / after `close()`. */
68
+ getEnvironment(): JetPackEnvironmentName | null;
69
+ /** Returns the resolved UI language tag (BCP-47 lowercase primary subtag, defaulting to `'en'`). */
70
+ getLanguage(): string;
44
71
  /** Returns the active `WasmClientIdentity` instance, if initialized. */
45
72
  getIdentity(): WasmIdentityLike | null;
46
73
  /** Returns the last generated `jetpack://pair?...` URI if pairing was triggered. */
@@ -51,6 +78,11 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
51
78
  getControlBar(): JetPackControlBar | null;
52
79
  /** Returns the Developer Mode `JetPackLogTerminal` instance, or `null` when disabled or unmounted. */
53
80
  getLogTerminal(): JetPackLogTerminal | null;
81
+ /**
82
+ * Registers a callback invoked when the resolved language updates during `connectAndEnsureApp()`
83
+ * (e.g., from `?lang=` or `DaemonSettings.language`). Returns an unsubscribe closure.
84
+ */
85
+ onLanguageChanged(callback: (language: string) => void): () => void;
54
86
  /**
55
87
  * Registers a callback invoked when the daemon reports `"app.worker.stopped"` for this app
56
88
  * (e.g. idle timeout, manual Stop, or unexpected process exit). Returns an unsubscribe closure.
@@ -58,12 +90,18 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
58
90
  onWorkerStopped(callback: (event: AppWorkerStoppedEvent) => void): () => void;
59
91
  /**
60
92
  * Registers a callback invoked when `ensureWorkerRunning()` successfully launches or wakes
61
- * the worker for this app (including via the `JetPackControlBar` `"Relaunch"` button or
93
+ * the worker for this app (including via the `JetPackControlBar` `"Launch"` button or
62
94
  * transparent `request()` auto-wake). Returns an unsubscribe closure.
63
95
  */
64
96
  onWorkerStarted(callback: (event: {
65
97
  app_id: string;
66
98
  }) => void): () => void;
99
+ /**
100
+ * Handles clicks on the unified `JetPackControlBar` `"Launch"` button in `'Stopped'` state:
101
+ * wakes the worker over the active session if connected, or transparently reconnects via
102
+ * `connectAndEnsureApp(lastConnectOptions)` when disconnected or closed via `close()`.
103
+ */
104
+ private launchOrReconnectFromControlBar;
67
105
  /**
68
106
  * Ensures the sandboxed worker for the connected app is running, relaunching it via
69
107
  * `launch_app` if it was stopped due to idle timeout or user termination. Concurrent calls
@@ -76,7 +114,7 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
76
114
  * ensures the worker process is running inside its sandbox, and mounts `JetPackControlBar`
77
115
  * in browser DOM environments unless `controlBar: false`.
78
116
  */
79
- connectAndEnsureApp(options: ConnectAndEnsureAppOptions): Promise<this>;
117
+ connectAndEnsureApp(rawOptions: ConnectAndEnsureAppOptions): Promise<this>;
80
118
  /**
81
119
  * Stops the active sandboxed worker process via `terminate_app(appId)` while keeping
82
120
  * any mounted `JetPackControlBar` visible with `'Stopped'` status.
@@ -115,6 +153,7 @@ export declare class JetPackAppClient<TOpcodes extends OpcodeConstraint<TOpcodes
115
153
  * and `JetPackLogTerminal`.
116
154
  */
117
155
  destroy(): void;
156
+ private updateActiveLanguage;
118
157
  private cancelBackgroundReconnect;
119
158
  private startBackgroundDaemonPoll;
120
159
  private syncLogTerminalForSession;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAGL,KAAK,qBAAqB,EAE1B,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EAIrB,KAAK,QAAQ,EACb,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EAErB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAE3B,KAAK,cAAc,EAEnB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AAOpB,eAAO,MAAM,4BAA4B,gEACsB,CAAC;AAyJhE;;;;;;;;;GASG;AACH,qBAAa,gBAAgB,CAC3B,QAAQ,SAAS,gBAAgB,CAAC,QAAQ,CAAC,GAAG,gBAAgB;IAE9D,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,QAAQ,CAAiC;IACjD,OAAO,CAAC,KA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