overmux 0.0.8 → 0.0.10

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 (41) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/bin.js +59 -21
  3. package/dist/bin.js.map +1 -1
  4. package/dist/docs/100-introduction/300-why-i-built-overmux.md +1 -1
  5. package/dist/docs/200-getting-started/200-install-overmux-desktop.md +13 -0
  6. package/dist/docs/400-reference/500-server/100-resources.md +25 -0
  7. package/dist/docs/400-reference/500-server/500-api.md +4 -2
  8. package/dist/docs/400-reference/600-client/010-commands.md +0 -29
  9. package/dist/docs/400-reference/600-client/030-native-web-view.md +166 -0
  10. package/dist/docs/400-reference/600-client/300-tech-stack-recommendations.md +1 -0
  11. package/dist/docs/400-reference/700-cli/600-docs.md +1 -1
  12. package/dist/exports/client.d.ts +44 -8
  13. package/dist/exports/client.d.ts.map +1 -1
  14. package/dist/exports/client.js +212 -40
  15. package/dist/exports/client.js.map +1 -1
  16. package/dist/exports/{index-Cz3xkCa4.d.ts → index-Dk11nKIv.d.ts} +2 -2
  17. package/dist/exports/index-Dk11nKIv.d.ts.map +1 -0
  18. package/dist/exports/index.d.ts +1 -1
  19. package/dist/exports/index.js +1 -1
  20. package/dist/exports/index.js.map +1 -1
  21. package/dist/internal/server/coordinator/server-child.js +75 -22
  22. package/dist/internal/server/coordinator/server-child.js.map +1 -1
  23. package/docs/100-introduction/300-why-i-built-overmux.md +1 -1
  24. package/docs/200-getting-started/200-install-overmux-desktop.md +13 -0
  25. package/docs/400-reference/500-server/100-resources.md +25 -0
  26. package/docs/400-reference/500-server/500-api.md +4 -2
  27. package/docs/400-reference/600-client/010-commands.md +0 -29
  28. package/docs/400-reference/600-client/030-native-web-view.md +166 -0
  29. package/docs/400-reference/600-client/300-tech-stack-recommendations.md +1 -0
  30. package/docs/400-reference/700-cli/600-docs.md +1 -1
  31. package/package.json +2 -2
  32. package/src/internal/client/client-definition.ts +9 -13
  33. package/src/internal/client/host/desktop-host.ts +28 -2
  34. package/src/internal/client/native-web-view.tsx +158 -0
  35. package/src/internal/client/overmux-react.ts +121 -27
  36. package/src/internal/client/shortcuts.tsx +17 -31
  37. package/src/internal/server/runtime/runtime-resources.ts +99 -20
  38. package/src/internal/server/websocket-connection.ts +27 -2
  39. package/src/public/client.ts +5 -0
  40. package/src/public/config.ts +1 -1
  41. package/dist/exports/index-Cz3xkCa4.d.ts.map +0 -1
@@ -19,4 +19,4 @@ I lived in a customized tmux setup. But kept noticing that that the terminal, fo
19
19
 
20
20
  [Herdr](https://github.com/herdrdev/herdr) (a TUI) and [Orca](https://github.com/stablyai/orca) (web based) offer a decent default experience. But they lack the customizability I love with the terminal and neovim. They use their own muxer implementations and dictate workflows.
21
21
 
22
- This future filled me with existential dread, so I built Overmux to embed my terminal in a Desktop webapp and build my own experience with a mix of tmux terminals + custom web uis.
22
+ This future didn't _spark joy_ for me, so I built Overmux to embed my terminal in a Desktop webapp and build my own experience with a mix of tmux terminals + custom web uis.
@@ -22,6 +22,19 @@ Download the ZIP for your Mac from the [Overmux releases](https://github.com/ric
22
22
 
23
23
  Overmux is not currently signed or notarized. Follow [Apple's instructions for opening an app from an unidentified developer](https://support.apple.com/en-us/102445) to allow it to run.
24
24
 
25
+ <details>
26
+ <summary>macOS says Overmux is damaged or the developer cannot be verified</summary>
27
+
28
+ For quarantine-related blocking, run this **only for a trusted download from [official Overmux releases](https://github.com/richardgill/overmux/releases)**:
29
+
30
+ ```bash
31
+ xattr -dr com.apple.quarantine "$HOME/Applications/Overmux.app"
32
+ ```
33
+
34
+ Use `/Applications/Overmux.app` instead if you installed it there. Then reopen Overmux in Finder.
35
+
36
+ </details>
37
+
25
38
  ## Linux
26
39
 
27
40
  Download the AppImage or Debian package from the [Overmux releases](https://github.com/richardgill/overmux/releases).
@@ -73,6 +73,31 @@ When the subscription ends, Overmux calls the cleanup function returned by `subs
73
73
 
74
74
  The React code stays the same: `useResource({ id: "ls" })`.
75
75
 
76
+ ### Asynchronous setup
77
+
78
+ `subscribe` can be synchronous or asynchronous. Both forms return a cleanup function. For example, replace the `ls` resource's `subscribe` handler to resolve the directory's canonical path before watching it:
79
+
80
+ ```ts
81
+ import { watch } from "node:fs";
82
+ import { realpath } from "node:fs/promises";
83
+
84
+ // Inside the resource definition:
85
+ subscribe: async (_input, invalidate, context) => {
86
+ const directory = await realpath("/");
87
+ // The subscription may have ended while resolving the path.
88
+ context.signal.throwIfAborted();
89
+
90
+ const watcher = watch(directory, { signal: context.signal }, () => {
91
+ invalidate();
92
+ });
93
+ return () => watcher.close();
94
+ },
95
+ ```
96
+
97
+ `context.signal` is an `AbortSignal` that Overmux aborts when the client unsubscribes, disconnects, or the server shuts down. Cancellation does not automatically stop an async function: pass the signal to APIs that support it and check it after awaiting setup. Here, `realpath` does not accept a signal, so `throwIfAborted()` prevents starting a watcher if cancellation happened during that work.
98
+
99
+ Overmux calls the returned cleanup function once, even if setup finishes after cancellation. Cleanup may also be asynchronous. In this example, the signal can close the watcher before Overmux calls cleanup; `watcher.close()` is safe to call again. If setup throws before returning cleanup, your handler must release any resources it already acquired.
100
+
76
101
  ## Derived
77
102
 
78
103
  Derived resources compute a value from other resources.
@@ -47,7 +47,7 @@ A resource definition has a `contract` created with `defineResourceContract({ in
47
47
  | Kind | Required handler API |
48
48
  | --- | --- |
49
49
  | `query` | `read(input, context) => output \| Promise<output>` |
50
- | `subscription` | `read(input, context)` and `subscribe(input, invalidate, context) => disposer` |
50
+ | `subscription` | `read(input, context)` and `subscribe(input, invalidate, context) => (() => void \| Promise<void>) \| Promise<() => void \| Promise<void>>` |
51
51
  | `derived` | `dependencies` and `combine(dependencies) => output` |
52
52
 
53
53
  ```ts
@@ -69,7 +69,9 @@ const resources = {
69
69
  };
70
70
  ```
71
71
 
72
- `subscribe` must synchronously return a cleanup function. Overmux calls it when that client subscription, or the server runtime, closes. A derived resource reads the resources named by `dependencies`; invalidating a dependency also invalidates its dependants. See [Resources](./100-resources.md) for contracts, derived dependencies, and invalidation.
72
+ `subscribe` returns a cleanup function, directly or asynchronously. Overmux aborts `context.signal` when the subscription ends, including during setup, on client disconnect, or on server shutdown. Overmux calls the returned cleanup function once, even if setup returns it after cancellation. The cleanup function itself may also be asynchronous. If setup throws before returning cleanup, the handler must release any resources it already acquired. See [Asynchronous setup](./100-resources.md#asynchronous-setup) for an example.
73
+
74
+ A derived resource reads the resources named by `dependencies`; invalidating a dependency also invalidates its dependants. See [Resources](./100-resources.md) for contracts, derived dependencies, and invalidation.
73
75
 
74
76
  ## Stream handlers
75
77
 
@@ -158,32 +158,3 @@ const CommandMenu = () => {
158
158
  Each entry exposes `id`, `title`, `bindings`, `enabled`, and `execute()`. The list includes disabled commands but excludes commands without a registration.
159
159
 
160
160
  Each command appears once, even if multiple components register it. `execute()` selects the handler using the current focus and runs it only if enabled.
161
-
162
- ## Using commands from packages
163
-
164
- Packages can export commands to include alongside your own:
165
-
166
- ```tsx
167
- import { sourceControlCommands } from "@overmux/git/react";
168
-
169
- export const client = defineOvermuxClient({
170
- commands: {
171
- ...commands,
172
- ...sourceControlCommands,
173
- },
174
- component: App,
175
- });
176
- ```
177
-
178
- Adding commands to the registry does not register their handlers. For this package, pass the commands to `SourceControlView`:
179
-
180
- ```tsx
181
- <SourceControlView
182
- {...sourceControlProps}
183
- commandHandles={sourceControlCommands}
184
- />
185
- ```
186
-
187
- The view registers handlers for navigating changed files and scrolling diffs. They then appear in `useCommands()` alongside your own registered commands.
188
-
189
- Keep command IDs unique when combining registries, and pass the same command objects to the client and the component.
@@ -0,0 +1,166 @@
1
+ ---
2
+ title: Native web views
3
+ ---
4
+
5
+ `NativeWebView` embeds a website in Overmux Desktop using a chrome native webview.
6
+
7
+ ```tsx
8
+ import { NativeWebView } from "overmux/client";
9
+
10
+ export const Website = () => (
11
+ <NativeWebView
12
+ url="https://example.com"
13
+ style={{ width: "100%", height: 600 }}
14
+ fallback={
15
+ <a href="https://example.com" target="_blank" rel="noopener noreferrer">
16
+ Open website in browser
17
+ </a>
18
+ }
19
+ />
20
+ );
21
+ ```
22
+
23
+ ## Props
24
+
25
+ `NativeWebViewProps` and `NativeWebViewLoadError` are exported from `overmux/client`.
26
+
27
+ ### `url`
28
+
29
+ **Required.** Type: `string`. The initial website URL.
30
+
31
+ ```tsx
32
+ import { NativeWebView } from "overmux/client";
33
+
34
+ <NativeWebView url="https://example.com" style={{ height: 600 }} />;
35
+ ```
36
+
37
+ Changing this string navigates; rerendering the same URL preserves in-page navigation. A remount starts again at `url`, retaining cookies and site storage.
38
+
39
+ A blocked `url` prop clears the native page, including when an HTTP allowance is revoked. Blocked in-page links leave the current page in place. See [`allowedHttpOrigins`](#allowedhttporigins) for permitted destinations.
40
+
41
+ New-window links open in the system browser, not another embedded surface. The system browser has its own login state. Popup-based authentication flows may therefore not complete inside the embedded view; use in-page sign-in where supported.
42
+
43
+ ### `className`
44
+
45
+ **Optional.** Type: `string`. No default. Applies a CSS class to the desktop placeholder `div`, not the embedded website.
46
+
47
+ ```tsx
48
+ import { NativeWebView } from "overmux/client";
49
+
50
+ <NativeWebView
51
+ url="https://example.com"
52
+ className="website-pane"
53
+ style={{ height: 600 }}
54
+ />;
55
+ ```
56
+
57
+ Define the class in your application's stylesheet. See [Theming and CSS](./theming) for loading styles.
58
+
59
+ ### `style`
60
+
61
+ **Optional.** Type: `React.CSSProperties`. No default. Applies inline styles to the desktop placeholder `div`.
62
+
63
+ ```tsx
64
+ import { NativeWebView } from "overmux/client";
65
+
66
+ <NativeWebView
67
+ url="https://example.com"
68
+ style={{ width: "100%", height: 600 }}
69
+ />;
70
+ ```
71
+
72
+ Give the placeholder a **nonzero width and height**. The component has no default height. Desktop follows its rectangular position and size as the layout moves, scrolls or resizes. Hidden and zero-size placeholders hide the native surface without clearing its site data. See [Layout limitations](#layout-limitations) before using overlapping panes or CSS effects.
73
+
74
+ ### `fallback`
75
+
76
+ **Optional.** Type: `React.ReactNode`. Content shown in browsers, PWAs and desktop versions without native web view support.
77
+
78
+ ```tsx
79
+ import { NativeWebView } from "overmux/client";
80
+
81
+ <NativeWebView
82
+ url="https://example.com"
83
+ style={{ height: 600 }}
84
+ fallback={
85
+ <a href="https://example.com" target="_blank" rel="noopener noreferrer">
86
+ Open website in browser
87
+ </a>
88
+ }
89
+ />;
90
+ ```
91
+
92
+
93
+ ### `onLoadError`
94
+
95
+ **Optional.** Type: `(error: NativeWebViewLoadError) => void`. No default handler. Receives `{ url, code, message }` for main-page load failures, blocked destinations, invalid configuration or bridge errors.
96
+
97
+ ```tsx
98
+ import { NativeWebView, type NativeWebViewLoadError } from "overmux/client";
99
+
100
+ const reportLoadError = (error: NativeWebViewLoadError) => console.error(error);
101
+
102
+ <NativeWebView
103
+ url="https://example.com"
104
+ style={{ height: 600 }}
105
+ onLoadError={reportLoadError}
106
+ />;
107
+ ```
108
+
109
+ Main-page failures exclude subresource failures and aborted navigation superseded by a newer request.
110
+
111
+ | Code | Meaning |
112
+ | --- | --- |
113
+ | Numeric string, such as `"-105"` | Chromium load error |
114
+ | `ERR_URL_BLOCKED` | Destination rejected by navigation policy |
115
+ | `ERR_DESKTOP_BRIDGE` | Bridge or configuration failure |
116
+ | `ERR_OPEN_EXTERNAL` | Failed to open the system browser |
117
+ | `ERR_RENDER_PROCESS_GONE` | Native renderer crashed; the surface is destroyed |
118
+
119
+ Remount to retry after a native renderer crash.
120
+
121
+ ### `allowedHttpOrigins`
122
+
123
+ **Optional.** Type: `string[]`. Defaults to `[]`. Additional plain-HTTP origins to permit. An origin is the scheme, hostname and port, without a path.
124
+
125
+ ```tsx
126
+ import { NativeWebView } from "overmux/client";
127
+
128
+ <NativeWebView
129
+ url="http://devbox.local:3000"
130
+ style={{ height: 600 }}
131
+ allowedHttpOrigins={["http://devbox.local:3000"]}
132
+ />;
133
+ ```
134
+
135
+ HTTPS is allowed. HTTP is allowed for `localhost`, `127.0.0.1` and `[::1]`, plus exact origins in this list. Entries must be HTTP origins, optionally with a trailing slash. Wildcards, credentials, paths, queries and fragments are rejected. Matching includes the port. Other schemes are denied. Policy is enforced in Electron main for requested URLs, page navigation, redirects and new-window links.
136
+
137
+ ### `passthroughBindings`
138
+
139
+ **Optional.** Type: `readonly ShortcutBinding[]`. Defaults to `[]`. Keyboard bindings to forward to the owning Overmux UI while the embedded page has focus. `ShortcutBinding` is exported from `overmux/client`.
140
+
141
+ ```tsx
142
+ import { NativeWebView } from "overmux/client";
143
+
144
+ <NativeWebView
145
+ url="https://example.com"
146
+ style={{ height: 600 }}
147
+ passthroughBindings={["Escape", "Control+Shift+X", ["F12", "P", "R"]]}
148
+ />;
149
+ ```
150
+
151
+ Uses the same binding and chord syntax as [command shortcuts](./shortcuts), but does not require a matching command registration. A chord is a sequence of key presses, such as F12, then P, then R.
152
+
153
+ Overmux desktop intercepts a completed configured binding before the embedded page receives it and forwards its keyboard input, including modifiers and releases, to the owning Overmux UI. That UI then handles it through its ordinary DOM listeners - for example, a dialog's Escape handler, a local `onKeyDown`, or the normal shortcut host. The embedded page remains sandboxed and receives no Overmux bridge or command capability.
154
+
155
+
156
+ ## Security and shared sessions
157
+
158
+ Embedded pages have no Overmux bridge, preload script or Node access. Sandbox, context isolation and web security stay enabled. Permissions and downloads are denied.
159
+
160
+ All native views across connected Overmux instances share **one persistent desktop browser session**, `persist:overmux-native-web`. Cookies and login state survive unmounting, switching instances and restarting Desktop. This session is separate from Overmux authentication and from the system browser. Unmounting destroys the surface, not site data. Clearing an Overmux instance does not clear native website logins. There is no per-view profile or partition option.
161
+
162
+ ## Layout limitations
163
+
164
+ Native surfaces paint **above the DOM**, including React modals, menus and dropdowns. Use ordinary, non-overlapping rectangular panes. DOM stacking order, rounded corners, CSS transforms, ancestor clipping and arbitrary CSS effects are not faithfully reproduced. Bounds are clipped to the host window, not arbitrary DOM containers. Avoid layouts that depend on those effects; unmount the view when its native surface must not cover other content.
165
+
166
+ There is no `visible` prop, toolbar, zoom or history API, overlap coordination, or pane/session restoration. Host document reloads, crashes, instance changes and window destruction also destroy its native surfaces.
@@ -8,5 +8,6 @@ We recommend:
8
8
  - [TanStack Router](https://tanstack.com/router) for routing.
9
9
  - [shadcn/ui](https://ui.shadcn.com/) for UI components.
10
10
  - [Zod](https://zod.dev/) for schemas and runtime validation.
11
+ - [@pierre/diffs](https://diffs.com/) for building custom Git diff views.
11
12
 
12
13
  If your app already uses a different stack, follow its existing conventions.
@@ -122,7 +122,7 @@ Inspect these files so guidance matches the versions used by the application.
122
122
  #### `tech-stack-recommendations`
123
123
 
124
124
  ```text
125
- Prefer pnpm as the package manager, TanStack Router for routing, shadcn/ui for UI components, and Zod for schemas and runtime validation. Follow the application's established stack when it already differs.
125
+ Prefer pnpm as the package manager, TanStack Router for routing, shadcn/ui for UI components, and Zod for schemas and runtime validation. For custom Git diff views, prefer @pierre/diffs (https://diffs.com/). Follow the application's established stack when it already differs.
126
126
  ```
127
127
 
128
128
  [//]: # (END GENERATED AI CONTEXT)
@@ -1,13 +1,52 @@
1
- import { B as InstanceIdentity, w as ContractInputArguments } from "./index-Cz3xkCa4.js";
1
+ import { B as InstanceIdentity, w as ContractInputArguments } from "./index-Dk11nKIv.js";
2
2
  import { z } from "zod";
3
3
  import { UseMutationResult } from "@tanstack/react-query";
4
4
  import { CSSProperties, ComponentType, ReactNode, RefObject } from "react";
5
- import { KeyBinding, KeyBinding as KeyBinding$1 } from "@overmux/keybindings";
5
+ import { KeyBinding, KeyBinding as KeyBinding$1, KeySequence, ShortcutBinding, ShortcutBinding as ShortcutBinding$1, formatShortcutBinding } from "@overmux/keybindings";
6
6
  declare const enableBackgroundNotifications: () => Promise<boolean>;
7
7
  declare const disableBackgroundNotifications: () => Promise<void>;
8
+ type NativeWebViewLoadError = {
9
+ url: string;
10
+ code: string;
11
+ message: string;
12
+ };
13
+ type NativeWebViewProps = {
14
+ url: string;
15
+ className?: string;
16
+ style?: CSSProperties;
17
+ fallback?: ReactNode;
18
+ onLoadError?: (error: NativeWebViewLoadError) => void;
19
+ allowedHttpOrigins?: string[];
20
+ passthroughBindings?: readonly ShortcutBinding$1[];
21
+ };
22
+ declare const NativeWebView: ({ url, className, style, fallback, onLoadError, allowedHttpOrigins, passthroughBindings }: NativeWebViewProps) => import("react").JSX.Element;
23
+ type NativeWebViewBridge = {
24
+ version: 1;
25
+ command: (input: {
26
+ type: "create" | "destroy";
27
+ id: string;
28
+ } | {
29
+ type: "configure";
30
+ id: string;
31
+ url: string;
32
+ allowedHttpOrigins: string[];
33
+ passthroughBindings: readonly ShortcutBinding$1[];
34
+ }) => Promise<void>;
35
+ setBounds: (id: string, bounds: {
36
+ x: number;
37
+ y: number;
38
+ width: number;
39
+ height: number;
40
+ }) => void;
41
+ onLoadError: (callback: (input: {
42
+ id: string;
43
+ error: NativeWebViewLoadError;
44
+ }) => void) => () => void;
45
+ };
8
46
  type DesktopHost = {
9
47
  version: 1;
10
48
  platform: string;
49
+ nativeWebView?: NativeWebViewBridge;
11
50
  instance?: {
12
51
  report: (identity: {
13
52
  instanceId: string;
@@ -72,20 +111,17 @@ type OvermuxThemeScopeProps = {
72
111
  };
73
112
  declare const OvermuxPortal: ({ children, external }: OvermuxPortalProps) => import("react").ReactPortal | null;
74
113
  declare const OvermuxThemeScope: ({ children, className, contrast, scheme, style }: OvermuxThemeScopeProps) => import("react").JSX.Element;
75
- type KeySequence = readonly [KeyBinding$1, KeyBinding$1, ...KeyBinding$1[]];
76
- type ShortcutBinding = KeyBinding$1 | KeySequence;
77
114
  type ConditionalShortcutBinding = {
78
- binding: ShortcutBinding;
115
+ binding: ShortcutBinding$1;
79
116
  when: {
80
117
  media: string;
81
118
  };
82
119
  };
83
- type CommandBinding = ShortcutBinding | ConditionalShortcutBinding;
120
+ type CommandBinding = ShortcutBinding$1 | ConditionalShortcutBinding;
84
121
  type ChordPrefix = {
85
122
  binding: KeyBinding$1;
86
123
  unmatched: "replay-to-focused-input";
87
124
  };
88
- declare const formatShortcutBinding: (binding: ShortcutBinding) => string;
89
125
  type CommandRunResult$1 = Promise<unknown> | unknown;
90
126
  type CommandRun<TServerConfig, TParams> = (input: {
91
127
  overmuxServerApi: OvermuxServerApi<TServerConfig>;
@@ -254,5 +290,5 @@ type ShortcutInputTarget = {
254
290
  input: RefObject<HTMLElement | null>;
255
291
  };
256
292
  declare const useShortcutInputTarget: (target: ShortcutInputTarget) => void;
257
- export { type ChordPrefix, type CommandBinding, type CommandEntry, type CommandHandle, type ConditionalShortcutBinding, type InstanceIdentity, type KeyBinding, type KeySequence, type OvermuxClientAppearance, type OvermuxContrast, type OvermuxExternalPortalContainer, OvermuxHost, OvermuxPortal, type OvermuxPortalProps, type OvermuxScheme, type OvermuxServerApi, type OvermuxStyle, OvermuxThemeScope, type OvermuxThemeScopeProps, type OvermuxThemeToken, type ResourceResult, type ShortcutBinding, type ShortcutInputTarget, type SkipToken, type StreamResult, createOvermuxHooks, defineCommandRegistry, defineOvermuxClient, disableBackgroundNotifications, enableBackgroundNotifications, formatShortcutBinding, readClipboardText, skipToken, useCommand, useCommands, useShortcutInputTarget, writeClipboardText };
293
+ export { type ChordPrefix, type CommandBinding, type CommandEntry, type CommandHandle, type ConditionalShortcutBinding, type InstanceIdentity, type KeyBinding, type KeySequence, NativeWebView, type NativeWebViewLoadError, type NativeWebViewProps, type OvermuxClientAppearance, type OvermuxContrast, type OvermuxExternalPortalContainer, OvermuxHost, OvermuxPortal, type OvermuxPortalProps, type OvermuxScheme, type OvermuxServerApi, type OvermuxStyle, OvermuxThemeScope, type OvermuxThemeScopeProps, type OvermuxThemeToken, type ResourceResult, type ShortcutBinding, type ShortcutInputTarget, type SkipToken, type StreamResult, createOvermuxHooks, defineCommandRegistry, defineOvermuxClient, disableBackgroundNotifications, enableBackgroundNotifications, formatShortcutBinding, readClipboardText, skipToken, useCommand, useCommands, useShortcutInputTarget, writeClipboardText };
258
294
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/internal/client/background-notifications.ts","../../src/internal/client/host/desktop-host.ts","../../src/internal/client/clipboard.ts","../../src/internal/client/browser-api.ts","../../src/internal/client/theme-scope.tsx","../../src/internal/client/client-definition.ts","../../src/internal/client/commands.tsx","../../src/internal/client/overmux-react.ts","../../src/internal/client/host/overmux-host.tsx","../../src/internal/client/shortcuts.tsx"],"mappings":";;;;;;cAyJa,qCAA6B;cAkB7B,sCAA8B;;;KC3KtC;EACH;EACA;EACA;IAAa,SAAS;MAAY;;IAA+B;;EACjE;IAAc,YAAY;IAAuB;;EACjD;IAAkB,OAAO;IAAgC;;;QAGnD;YACI;IACR,cAAc;;;;;cCPL,yBAA8B;cAQ9B,qBAA4B,iBAAe;;;KCFnD,aAAW,WAAW;EAAkB,mBAAmB;IAC5D,YAAY;KAEX,UAAQ,KAAK;EAAY,aAAa,eAAe,EAAE;IACxD;KAEC,WAAS,KAAK;EAAY,cAAc,gBAAgB,EAAE;IAC3D,EAAE,OAAO;KAER,YAAY,WAAW,cAAc,aAAW;KAChD,eAAe,SAAS,YAAY,YAAY,YAAY,UAC/D,aAAW,SAAS;KAEjB,gBAAgB,SAAS,YAAY,YAAY,YAAY,WAChE,aAAW,SAAS;KAEjB,mBAAmB,eAAe,EAAE,eACpC,uBAAuB,SAC1B,SAAS;KAGN;EACH;EACA;;KAGU,iBAAiB,iBAAiB;EAC5C,mBAAmB,YAAY,YAAY,gBACzC,IAAI,QACD,MAAM,mBAAmB,eAAe,eAAe,UACvD,QAAQ,gBAAgB,eAAe;;;;KC3BlC;KACA;cAEC;KAoBD,4BAA4B;KAE5B,eAAe,gBACzB,QAAQ,OAAO;KAEL;EACV,WAAW;EACX;;KAGU;EACV,UAAU;EACV,WAAW;;KAGD;EACV,UAAU;EACV;EACA,WAAW;EACX,SAAS;EACT,QAAQ;;cAoBG,kBAAiB,UAAA,YAAwB,uCAAkB;cAK3D,sBAAqB,UAAA,WAAA,UAAA,QAAA,SAM/B,2CAAsB,IAAA;;;KCzEb,wBAAwB,cAAY,iBAAe;KACnD,kBAAkB,eAAa;KAC/B;EACV,SAA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EAErB;EACA;EACA;EACA;;EAGA,OAAO;EACP,OAAO;EACP;EACA;;EAGA,MAAM;EACN;EACA;EACA;;KAGM,aAAa,gBAAgB;EAIvC;EACA;EACA,QAAQ;EACR,OAAO,SAAS;EAChB;EACA,YAAY,WAAW,SAAS;;KAG7B,gBAAgB,qBAAqB,EAAE,SAAS,WAAW,KAC9D,kBAAkB,SAAS,OAAO,EAAE,MAAM;EAG1C,YAAY,MAAM,uBAAuB;EACzC,iBACK,MAAM,uBAAuB,kBAC7B,QAAQ;;cA6LF,qBAAsB;EATX,mBAAA;EAWP,eAAA,YAAY,cAAc,WAAW,2BAAuB,IAAA;IAIzE,IAAI;IACJ,SAAS;QACV,gBAAA,QAAA,WAAA,eAAA,OAAA,SAAA,WAAA,eAAA;EAUO,aAAA,YAAY;EACR,YAAA,YAAY,cAAc,QAAQ,2BAAuB,IAAA,SAGlE,iBAAiB,KAAK,QAAQ,WAAW,QAAQ,eAAe,YAAO,aAAA,gBAAA,QAAA,eAAA,OAAA,gBAAA,QAAA,eAAA;;;;cChI/D,gBAAe;EAG1B,YAAY;sBACb,IAAA;;;KCvEW;EACV,WAAW,UAAU;EACrB,OAAO,UAAU;;cAQN,yBAA0B,QAAQ"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/internal/client/background-notifications.ts","../../src/internal/client/native-web-view.tsx","../../src/internal/client/host/desktop-host.ts","../../src/internal/client/clipboard.ts","../../src/internal/client/browser-api.ts","../../src/internal/client/theme-scope.tsx","../../src/internal/client/client-definition.ts","../../src/internal/client/commands.tsx","../../src/internal/client/overmux-react.ts","../../src/internal/client/host/overmux-host.tsx","../../src/internal/client/shortcuts.tsx"],"mappings":";;;;;;cAyJa,qCAA6B;cAkB7B,sCAA8B;;;KCrK/B;EACV;EACA;EACA;;KAEU;EACV;EACA;EACA,QAAQ;EACR,WAAW;EACX,eAAe,OAAO;EACtB;EACA,+BAA+B;;cA2DpB,kBAAiB,KAAA,WAAA,OAAA,UAAA,aAAA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