@cmdless/ui-sdk 0.0.0 → 0.0.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 cmdless
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,45 +1,24 @@
1
1
  # @cmdless/ui-sdk
2
2
 
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
4
-
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
6
-
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
-
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@cmdless/ui-sdk`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**
3
+ Shared types and helpers for building on cmdless UI, split by where they run.
4
+
5
+ ## Exports
6
+
7
+ - **`@cmdless/ui-sdk`** — platform-agnostic.
8
+ - `types` — `ShowTypes`, `MessageBoxTypes`, and the card and form shapes (`AdaptiveCard`, `CardEvent`, `CardView`, `FormView`).
9
+ - The agent prompts as cards: `elicitationCard`/`elicitationResult` (MCP's and ACP's elicitation, form mode) and `permissionCard`/`permissionResult` (ACP's permission request) — a request in, a card to show; what the card ended with in, the protocol's answer out. Closing the card is cancelling.
10
+ - `Cmdless`, what a window's page gets as `window.cmdless`: `resolve(value)` ends the window, and `connect()` (use `connect` from `/browser`) reaches its backend.
11
+ - The host's own channels to a window's preload (`cmdlessIPC`, `cmdlessViewIPC`, `createElectronIPC`, `createElectronViewIPC`) — main ↔ preload only.
12
+
13
+ - **`@cmdless/ui-sdk/node`** — Node only.
14
+ - `UIHost` — a connection to a host (one Electron process per app name, run by [`@cmdless/ui-runtime`](../../apps/ui-runtime)).
15
+ - `UIHost.create({ app?, cmdlessRoot?, timeoutMs? })` starts the host for `app`, or joins it if it's already running. Without `app`, the host is a throwaway one of this caller's own.
16
+ - `openWindow(params, backend?)`, `openDialog(params)`, `openCard(params)` and `openForm(params)` open a window, a message box, an [Adaptive Card](https://adaptivecards.io) or a JSON Schema form; `createTray(params)` creates a tray icon and `showNotification(params)` an OS notification. Each resolves to a remote handle once the host has. A handle's `closed` settles with the value it ends with — a window's resolve or the redirect it caught, the dialog's chosen button, a card's `Action.Submit` (`{ action, inputs }`), a form's data — or nothing if it was closed by hand; `close(value?)` ends it. Anything can be opened from another handle (`handle.openWindow(...)`, ...) to open in front of it. A tray reports clicks, and a card each `Action.Execute`, through `onEvent`; `update(...)` changes either.
17
+ - How a window, card or form looks goes in `window: { width?, height?, title? }`. Cards and forms fit their window's height to what they show unless a height is given.
18
+ - A window's **backend** is an accept function — `protocol.accept(configure)` from [`@cmdless/rpc-sdk`](../rpc-sdk), or a host's own `accept` to share one (and its store) across windows. Its page calls `connect(protocol, configure?)` from `/browser`, and talks to this process directly: the host only introduces them, with a token for one connection that stays in the window's preload. Each page load is a new connection.
19
+ - `UIHost.showWindow`, `showDialog`, `showCard`, `showForm`, `showElicitation` and `showPermission` are the one-shot forms: start or join a host, show one thing, and hand back what it ended with.
20
+ - `dispose()` leaves the host; for its owner (the one whose creator started it), that ends it.
21
+ - `getCmdlessApp`/`setCmdlessApp`, `setCmdlessUrl`/`acquireCmdlessUrl` — accessors for cmdless's environment, so callers never read `process.env` themselves. Each setter writes to this process's env, or to an env object passed in for a child about to be spawned. A dev-mode Vite plugin (see `apps/hangar-ui`'s `vite.config.ts`) can publish its dev server's URL with `setCmdlessUrl(url, env)` before spawning a consumer's bin, for the bin to show instead of its built renderer.
22
+ - The ephemeral-app helpers (`getEphemeralPrefix`, `isEphemeralCmdlessApp`, `isEphemeralUserData`), and the few [`@cmdless/core`](../core) helpers the host and `@cmdless/ui` use.
23
+
24
+ - **`@cmdless/ui-sdk/browser`** — renderer only: the `window.cmdless` type, and `connect(protocol, configure?)`, which connects a window's page to the backend it was opened with. `configure` sets handlers up before it listens, so nothing the backend sends at once is missed.
@@ -0,0 +1,10 @@
1
+ import type { ClientOf, ClientProtocol } from '@cmdless/rpc-sdk';
2
+ import type { Cmdless, CmdlessSocket } from '../index.js';
3
+ export type { Cmdless, CmdlessSocket };
4
+ declare global {
5
+ interface Window {
6
+ cmdless: Cmdless;
7
+ }
8
+ }
9
+ export declare function connect<P extends ClientProtocol>(protocol: P, configure?: (backend: ClientOf<P>) => void): Promise<ClientOf<P>>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE1D,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;AAMvC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,EAAE,OAAO,CAAC;KAClB;CACF;AAOD,wBAAsB,OAAO,CAAC,CAAC,SAAS,cAAc,EACpD,QAAQ,EAAE,CAAC,EACX,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,GACzC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAatB"}
@@ -0,0 +1,22 @@
1
+ import { createSocketConnection } from '@cmdless/rpc-sdk/ws';
2
+ // connects this window to the backend it was opened with - the node side
3
+ // that opened it, straight to it once the host has introduced them. configure
4
+ // sets up handlers before the connection listens, so nothing the backend
5
+ // sends right away is missed. A protocol with a name and version can be held
6
+ // to them with checkVersion() once connected.
7
+ export async function connect(protocol, configure) {
8
+ if (!window.cmdless)
9
+ throw new Error('not in a cmdless window');
10
+ const socket = await window.cmdless.connect();
11
+ const backend = protocol.createClient(createSocketConnection({
12
+ send: message => socket.send(message),
13
+ onMessage: listener => socket.onMessage(listener),
14
+ onError: () => { },
15
+ onClose: listener => socket.onClose(listener),
16
+ dispose: () => socket.close(),
17
+ }));
18
+ configure?.(backend);
19
+ backend.listen();
20
+ return backend;
21
+ }
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAgB7D,yEAAyE;AACzE,8EAA8E;AAC9E,yEAAyE;AACzE,6EAA6E;AAC7E,8CAA8C;AAC9C,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAAW,EACX,SAA0C;IAE1C,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IAC9C,MAAM,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,sBAAsB,CAAC;QAC3D,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;QACrC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;QACjD,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC;QAClB,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC7C,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;KAC9B,CAAC,CAAgB,CAAC;IACnB,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC;IACrB,OAAO,CAAC,MAAM,EAAE,CAAC;IACjB,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { AdaptiveCard, CardEvent, CardView, FormView } from './types.js';
2
+ export * as types from './types.js';
3
+ export * from './prompts.js';
4
+ type ResolveParams<T = unknown> = {
5
+ value: T;
6
+ exitCode?: number;
7
+ };
8
+ export type BackendCredentials = {
9
+ url: string;
10
+ token: string;
11
+ };
12
+ export declare const cmdlessIPC: import("@cmdless/rpc-sdk").Protocol<{
13
+ readonly clientToServer: import("@cmdless/rpc-sdk").RpcSide<NoInfer<{
14
+ connect: import("@cmdless/rpc-sdk").RpcRequest<void, BackendCredentials>;
15
+ }>, NoInfer<{
16
+ resolve: import("@cmdless/rpc-sdk").RpcNotification<ResolveParams<unknown>>;
17
+ }>>;
18
+ }>;
19
+ export declare const createElectronIPC: (source: import("@cmdless/rpc-sdk").ElectronIPCLike) => import("@cmdless/rpc-sdk").MessageConnection;
20
+ export type ViewProps = ({
21
+ view: 'card';
22
+ } & CardView) | ({
23
+ view: 'form';
24
+ } & FormView);
25
+ export declare const cmdlessViewIPC: import("@cmdless/rpc-sdk").Protocol<{
26
+ readonly clientToServer: import("@cmdless/rpc-sdk").RpcSide<NoInfer<{
27
+ props: import("@cmdless/rpc-sdk").RpcRequest<void, ViewProps>;
28
+ }>, NoInfer<{
29
+ event: import("@cmdless/rpc-sdk").RpcNotification<CardEvent>;
30
+ close: import("@cmdless/rpc-sdk").RpcNotification<{
31
+ value?: unknown;
32
+ }>;
33
+ resize: import("@cmdless/rpc-sdk").RpcNotification<{
34
+ height: number;
35
+ }>;
36
+ }>>;
37
+ readonly serverToClient: import("@cmdless/rpc-sdk").RpcSide<{}, NoInfer<{
38
+ update: import("@cmdless/rpc-sdk").RpcNotification<{
39
+ card: AdaptiveCard;
40
+ }>;
41
+ }>>;
42
+ }>;
43
+ export declare const createElectronViewIPC: (source: import("@cmdless/rpc-sdk").ElectronIPCLike) => import("@cmdless/rpc-sdk").MessageConnection;
44
+ export type CmdlessSocket = {
45
+ send(message: string): void;
46
+ onMessage(listener: (message: string) => void): void;
47
+ onClose(listener: (code: number, reason: string) => void): void;
48
+ close(): void;
49
+ };
50
+ export type Cmdless = {
51
+ resolve(value: unknown, exitCode?: number): void;
52
+ connect(): Promise<CmdlessSocket>;
53
+ view: ReturnType<typeof cmdlessViewIPC.createClient>;
54
+ };
55
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE9E,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,cAAc,cAAc,CAAC;AAE7B,KAAK,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IAChC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF,MAAM,MAAM,kBAAkB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAIhE,eAAO,MAAM,UAAU;;;;;;EASpB,CAAC;AAEJ,eAAO,MAAM,iBAAiB,sGAAgC,CAAC;AAG/D,MAAM,MAAM,SAAS,GAAG,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAAC,GAAG,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAAC,CAAC;AAKtF,eAAO,MAAM,cAAc;;;;;;oBAOS,OAAO;;;oBACN,MAAM;;;;;kBAKR,YAAY;;;EAG5C,CAAC;AAEJ,eAAO,MAAM,qBAAqB,sGAAiC,CAAC;AAIpE,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IACrD,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAChE,KAAK,IAAI,IAAI,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG;IAEpB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjD,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IAClC,IAAI,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;CACtD,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,38 @@
1
+ import { defineProtocol, forElectronIPC } from '@cmdless/rpc-sdk';
2
+ export * as types from './types.js';
3
+ export * from './prompts.js';
4
+ // what a window's preload can say to the host: resolve the window with a
5
+ // value, and ask for its backend
6
+ export const cmdlessIPC = defineProtocol(({ side, request, notification }) => ({
7
+ clientToServer: side({
8
+ requests: {
9
+ connect: request('connect'),
10
+ },
11
+ notifications: {
12
+ resolve: notification('resolve'),
13
+ },
14
+ }),
15
+ }));
16
+ export const createElectronIPC = forElectronIPC('cmdless:rpc');
17
+ // how one of the host's own views talks to it: it asks what to show, says
18
+ // how tall its content is (for its window to fit it), reports a card's
19
+ // actions, and ends with a value; the host sends it a card to show instead
20
+ export const cmdlessViewIPC = defineProtocol(({ side, request, notification }) => ({
21
+ clientToServer: side({
22
+ requests: {
23
+ props: request('view/props'),
24
+ },
25
+ notifications: {
26
+ event: notification('view/event'),
27
+ close: notification('view/close'),
28
+ resize: notification('view/resize'),
29
+ },
30
+ }),
31
+ serverToClient: side({
32
+ notifications: {
33
+ update: notification('view/update'),
34
+ },
35
+ }),
36
+ }));
37
+ export const createElectronViewIPC = forElectronIPC('cmdless:view');
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+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}
@@ -0,0 +1,246 @@
1
+ import type { RpcProtocol } from '@cmdless/rpc-sdk';
2
+ import type { ElicitationRequest, PermissionRequest } from '../prompts.js';
3
+ import type { CardEvent, CardView, FormView, MessageBoxType, ShowType } from '../types.js';
4
+ export type HostService = {
5
+ address: string;
6
+ };
7
+ export type InitializeParams = {
8
+ sdkVersion: string;
9
+ };
10
+ export type InitializeResult = {
11
+ appName: string;
12
+ userData: string;
13
+ ephemeral: boolean;
14
+ sdkVersion: string;
15
+ hasSingleInstanceLock: boolean;
16
+ };
17
+ export type WindowOptions = {
18
+ width?: number;
19
+ height?: number;
20
+ title?: string;
21
+ };
22
+ export type WindowParams = {
23
+ type: ShowType;
24
+ source: string;
25
+ redirect?: string;
26
+ external?: boolean;
27
+ window?: WindowOptions;
28
+ parent?: string;
29
+ };
30
+ export type DialogParams = {
31
+ type: MessageBoxType;
32
+ message: string;
33
+ detail?: string;
34
+ buttons?: string[];
35
+ defaultId?: number;
36
+ cancelId?: number;
37
+ parent?: string;
38
+ };
39
+ export type DialogResult = {
40
+ response: number;
41
+ checkboxChecked: boolean;
42
+ };
43
+ export type TrayMenuItem = {
44
+ type?: 'normal' | 'checkbox' | 'radio';
45
+ id: string;
46
+ label: string;
47
+ checked?: boolean;
48
+ enabled?: boolean;
49
+ } | {
50
+ type: 'submenu';
51
+ label: string;
52
+ enabled?: boolean;
53
+ submenu: TrayMenuItem[];
54
+ } | {
55
+ type: 'separator';
56
+ };
57
+ export type TrayParams = {
58
+ icon: string;
59
+ tooltip?: string;
60
+ title?: string;
61
+ menu?: TrayMenuItem[];
62
+ };
63
+ export type ViewWindowParams = {
64
+ window?: WindowOptions;
65
+ parent?: string;
66
+ };
67
+ export type CardParams = ViewWindowParams & CardView;
68
+ export type CardUpdateParams = HandleParams & Pick<CardView, 'card'>;
69
+ export type FormParams = ViewWindowParams & FormView;
70
+ export type NotificationParams = {
71
+ title: string;
72
+ body?: string;
73
+ };
74
+ export type TrayUpdateParams = HandleParams & Partial<TrayParams>;
75
+ export type TrayEvent = {
76
+ event: 'click';
77
+ } | {
78
+ event: 'menu-item';
79
+ item: string;
80
+ };
81
+ export type OpenExternalParams = {
82
+ url: string;
83
+ };
84
+ export type ClipboardWriteParams = {
85
+ text: string;
86
+ };
87
+ export type HandleParams = {
88
+ id: string;
89
+ };
90
+ export type WindowConnectParams = HandleParams;
91
+ export type WindowConnectResult = {
92
+ url: string;
93
+ token: string;
94
+ };
95
+ export type HandleCloseParams = HandleParams & {
96
+ value?: unknown;
97
+ };
98
+ export type HandleClosedParams = HandleParams & {
99
+ value?: unknown;
100
+ error?: string;
101
+ };
102
+ declare const uiHostProtocol: import("@cmdless/rpc-sdk").Protocol<{
103
+ readonly clientToServer: import("@cmdless/rpc-sdk").RpcSide<NoInfer<{
104
+ init: import("@cmdless/rpc-sdk").RpcRequest<InitializeParams, InitializeResult>;
105
+ windowOpen: import("@cmdless/rpc-sdk").RpcRequest<WindowParams, HandleParams>;
106
+ dialogOpen: import("@cmdless/rpc-sdk").RpcRequest<DialogParams, HandleParams>;
107
+ trayCreate: import("@cmdless/rpc-sdk").RpcRequest<TrayParams, HandleParams>;
108
+ trayUpdate: import("@cmdless/rpc-sdk").RpcRequest<TrayUpdateParams, void>;
109
+ handleClose: import("@cmdless/rpc-sdk").RpcRequest<HandleCloseParams, void>;
110
+ shellOpenExternal: import("@cmdless/rpc-sdk").RpcRequest<OpenExternalParams, void>;
111
+ clipboardWriteText: import("@cmdless/rpc-sdk").RpcRequest<ClipboardWriteParams, void>;
112
+ notificationShow: import("@cmdless/rpc-sdk").RpcRequest<NotificationParams, HandleParams>;
113
+ cardOpen: import("@cmdless/rpc-sdk").RpcRequest<CardParams, HandleParams>;
114
+ cardUpdate: import("@cmdless/rpc-sdk").RpcRequest<CardUpdateParams, void>;
115
+ formOpen: import("@cmdless/rpc-sdk").RpcRequest<FormParams, HandleParams>;
116
+ }>, {}>;
117
+ readonly serverToClient: import("@cmdless/rpc-sdk").RpcSide<NoInfer<{
118
+ windowConnect: import("@cmdless/rpc-sdk").RpcRequest<HandleParams, WindowConnectResult>;
119
+ }>, NoInfer<{
120
+ handleClosed: import("@cmdless/rpc-sdk").RpcNotification<HandleClosedParams>;
121
+ trayEvent: import("@cmdless/rpc-sdk").RpcNotification<HandleParams & TrayEvent>;
122
+ cardEvent: import("@cmdless/rpc-sdk").RpcNotification<HandleParams & CardEvent>;
123
+ }>>;
124
+ }>;
125
+ export type UIServer = ReturnType<typeof UIHost.protocol.createServer>;
126
+ export type UIClient = ReturnType<typeof uiHostProtocol.createClient>;
127
+ export type CreateHostOptions = {
128
+ app?: string;
129
+ cmdlessRoot?: string;
130
+ timeoutMs?: number;
131
+ };
132
+ export type WindowBackend = (connection: Parameters<RpcProtocol['createServer']>[0]) => {
133
+ listen(): void;
134
+ };
135
+ declare const end: unique symbol;
136
+ export declare abstract class RemoteHandle<T = unknown> {
137
+ readonly host: UIHost;
138
+ readonly id: string;
139
+ readonly closed: Promise<T>;
140
+ private settle;
141
+ constructor(host: UIHost, id: string);
142
+ close(value?: T): Promise<void>;
143
+ openWindow<W = unknown>(params: Omit<WindowParams, 'parent'>, backend?: WindowBackend): Promise<RemoteWindow<W>>;
144
+ openDialog(params: Omit<DialogParams, 'parent'>): Promise<RemoteDialog>;
145
+ openCard(params: Omit<CardParams, 'parent'>): Promise<RemoteCard>;
146
+ openForm<F = unknown>(params: Omit<FormParams, 'parent'>): Promise<RemoteForm<F>>;
147
+ [end]({ value, error }: Omit<HandleClosedParams, 'id'>): void;
148
+ }
149
+ export declare class RemoteWindow<T = unknown> extends RemoteHandle<T> {
150
+ }
151
+ export declare class RemoteDialog extends RemoteHandle<DialogResult> {
152
+ }
153
+ export declare class RemoteNotification extends RemoteHandle<'click' | undefined> {
154
+ }
155
+ declare const emit: unique symbol;
156
+ export declare class RemoteTray extends RemoteHandle<void> {
157
+ private readonly listeners;
158
+ update(params: Partial<TrayParams>): Promise<void>;
159
+ onEvent(listener: (event: TrayEvent) => void): {
160
+ dispose: () => void;
161
+ };
162
+ [emit](event: TrayEvent): void;
163
+ }
164
+ export declare class RemoteCard extends RemoteHandle<CardEvent | undefined> {
165
+ private readonly listeners;
166
+ update(card: CardUpdateParams['card']): Promise<void>;
167
+ onEvent(listener: (event: CardEvent) => void): {
168
+ dispose: () => void;
169
+ };
170
+ [emit](event: CardEvent): void;
171
+ }
172
+ export declare class RemoteForm<F = unknown> extends RemoteHandle<F | undefined> {
173
+ }
174
+ export declare class UIShellHandler {
175
+ private readonly host;
176
+ constructor(host: UIHost);
177
+ openExternal(url: string): Promise<void>;
178
+ }
179
+ export declare class UIClipboardHandler {
180
+ private readonly host;
181
+ constructor(host: UIHost);
182
+ writeText(text: string): Promise<void>;
183
+ }
184
+ export declare class UIHost {
185
+ readonly client: UIClient;
186
+ readonly params: InitializeResult;
187
+ static readonly protocol: import("@cmdless/rpc-sdk").Protocol<{
188
+ readonly clientToServer: import("@cmdless/rpc-sdk").RpcSide<NoInfer<{
189
+ init: import("@cmdless/rpc-sdk").RpcRequest<InitializeParams, InitializeResult>;
190
+ windowOpen: import("@cmdless/rpc-sdk").RpcRequest<WindowParams, HandleParams>;
191
+ dialogOpen: import("@cmdless/rpc-sdk").RpcRequest<DialogParams, HandleParams>;
192
+ trayCreate: import("@cmdless/rpc-sdk").RpcRequest<TrayParams, HandleParams>;
193
+ trayUpdate: import("@cmdless/rpc-sdk").RpcRequest<TrayUpdateParams, void>;
194
+ handleClose: import("@cmdless/rpc-sdk").RpcRequest<HandleCloseParams, void>;
195
+ shellOpenExternal: import("@cmdless/rpc-sdk").RpcRequest<OpenExternalParams, void>;
196
+ clipboardWriteText: import("@cmdless/rpc-sdk").RpcRequest<ClipboardWriteParams, void>;
197
+ notificationShow: import("@cmdless/rpc-sdk").RpcRequest<NotificationParams, HandleParams>;
198
+ cardOpen: import("@cmdless/rpc-sdk").RpcRequest<CardParams, HandleParams>;
199
+ cardUpdate: import("@cmdless/rpc-sdk").RpcRequest<CardUpdateParams, void>;
200
+ formOpen: import("@cmdless/rpc-sdk").RpcRequest<FormParams, HandleParams>;
201
+ }>, {}>;
202
+ readonly serverToClient: import("@cmdless/rpc-sdk").RpcSide<NoInfer<{
203
+ windowConnect: import("@cmdless/rpc-sdk").RpcRequest<HandleParams, WindowConnectResult>;
204
+ }>, NoInfer<{
205
+ handleClosed: import("@cmdless/rpc-sdk").RpcNotification<HandleClosedParams>;
206
+ trayEvent: import("@cmdless/rpc-sdk").RpcNotification<HandleParams & TrayEvent>;
207
+ cardEvent: import("@cmdless/rpc-sdk").RpcNotification<HandleParams & CardEvent>;
208
+ }>>;
209
+ }>;
210
+ readonly shell: UIShellHandler;
211
+ readonly clipboard: UIClipboardHandler;
212
+ private readonly remotes;
213
+ private readonly unclaimed;
214
+ private readonly backends;
215
+ private readonly opening;
216
+ private readonly tokens;
217
+ private backendServer?;
218
+ private constructor();
219
+ private connectWindow;
220
+ private startBackendServer;
221
+ private closeBackendServer;
222
+ private forgetBackend;
223
+ static create({ app, cmdlessRoot, timeoutMs }?: CreateHostOptions): Promise<UIHost>;
224
+ static showWindow<T = unknown>(options: CreateHostOptions, params: WindowParams, backend?: WindowBackend): Promise<T>;
225
+ static showDialog(options: CreateHostOptions, params: DialogParams): Promise<DialogResult>;
226
+ static showCard(options: CreateHostOptions, params: CardParams): Promise<CardEvent | undefined>;
227
+ static showElicitation(options: CreateHostOptions, request: ElicitationRequest & {
228
+ window?: WindowOptions;
229
+ }): Promise<import("../prompts.js").ElicitationResult>;
230
+ static showPermission(options: CreateHostOptions, request: PermissionRequest & {
231
+ window?: WindowOptions;
232
+ }): Promise<import("../prompts.js").PermissionOutcome>;
233
+ static showForm<F = unknown>(options: CreateHostOptions, params: FormParams): Promise<F | undefined>;
234
+ private static once;
235
+ openWindow<T = unknown>(params: WindowParams, backend?: WindowBackend): Promise<RemoteWindow<T>>;
236
+ openDialog(params: DialogParams): Promise<RemoteDialog>;
237
+ showNotification(params: NotificationParams): Promise<RemoteNotification>;
238
+ createTray(params: TrayParams): Promise<RemoteTray>;
239
+ openCard(params: CardParams): Promise<RemoteCard>;
240
+ openForm<F = unknown>(params: FormParams): Promise<RemoteForm<F>>;
241
+ private track;
242
+ onClose(listener: () => void): import("@cmdless/rpc-sdk").Disposable;
243
+ dispose(): void;
244
+ }
245
+ export {};
246
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/node/host.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAOpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK3F,MAAM,MAAM,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IAGnB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAIF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAIF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAC;IAEf,MAAM,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,aA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