Skip to content

zidane-ui/adapters/server

import { … } from 'zidane-ui/adapters/server'ui/src/adapters/server.ts

Functions#

actionResultFunction#

An action's answer with its failure as the kit's typed error.

createBrowserWindowSettingsFunction#

Creates this browser's window settings over the page's storage.

createServerAppHostFunction#

Builds every area's host on an open client.

createServerApprovalsHostFunction#

Creates an ApprovalsHost on a running zidane-server.

createServerChannelsHostFunction#

The channels of a zidane-server, or undefined when it runs none (neither channels.connections.list nor channels.bindings.list is offered).

createServerClientFunction#

Creates a client for a zidane-server and starts connecting. See the module docs for what it handles; ServerClient for what it offers.

createServerComposerHostFunction#

Creates a ComposerHost over a zidane-server client.

createServerExtensionsHostFunction#

Creates an ExtensionsHost over a zidane-server client.

createServerFilesHostFunction#

Creates a FilesHost on a running zidane-server.

createServerGitHostFunction#

Creates a GitHost over a zidane-server client.

createServerHostFunction#

Creates a ChatHost on a running zidane-server. Pass a shared client, or the url and token (and client options) to create one.

createServerMachinesHostFunction#

Creates a MachinesHost on a running zidane-server.

createServerOnboardingHostFunction#

Creates an OnboardingHost on a running zidane-server.

createServerPaletteHostFunction#

Creates a PaletteHost over a zidane-server client.

createServerSessionDirectoryFunction#

Builds the directory and its live stores on an app's server hosts.

createServerSessionHostFunction#

Creates a SessionHost over a zidane-server client.

createServerSessionProjectsFunction#

The projects of a zidane-server, or undefined when it keeps none (projects.list is not offered).

createServerSettingsHostFunction#

Creates a SettingsHost on a running zidane-server.

createServerSidebarHostFunction#

Creates a SidebarHost over a zidane-server client.

createServerTerminalHostFunction#

Creates a TerminalHost on a running zidane-server.

createServerViewsHostFunction#

Creates a ViewsHost over a zidane-server client. It listens to the client only while something reads it.

createSessionBindingFunction#

A SessionBinding holding the one session on screen.

extensionInvokeRequestFunction#

A callback as the extensions.ui.invoke request it travels as. Its folder (args.cwd, where a callback has one) is the caller's to send beside it.

extensionUiEffectOfFunction#

A routed UI request as the effect the app applies.

installExtensionHostModulesFunction#

Puts modules in the host module map linked bundles read (merged over what is there).

linkExtensionModuleFunction#

Rewrites a bundle's imports of host modules into reads of the host module map, so the code runs as a module with no imports. A bare import the map has no module for fails, every one named. Relative and URL imports are left alone (a self-contained bundle has none).

pairWithServerFunction#

Trades a code for a token.

revokeSelfFunction#

Revokes the app's own token with tokens.revokeSelf.

serverCapabilitiesFunction#

What the token and the server allow, read from client.can (after client.ready).

serverDirectoryPortsFunction#

The session directory's stream store, transcript reads and prewarm policy over a server chat host.

toSidebarListSessionFunction#

Converts a zidane server's session row into a SidebarListSession: the chat session plus its folder and space.

Classes#

ExtensionModuleLinkErrorClass#

A bundle that imports something the app does not provide.

Interfaces#

BrowserWindowSettingsInterface#

This browser's window settings, shared by the server hosts of one page.

BrowserWindowSettingsOptionsInterface#

Options of createBrowserWindowSettings.

LinkedExtensionModuleInterface#

A linked bundle: its code, and the host modules it reads.

PairWithServerOptionsInterface#

Options for pairWithServer.

ServerAppHostOptionsInterface#

Options for createServerAppHost.

ServerAppHostsInterface#

The hosts, their shared connection and what it may do.

ServerApprovalsHostOptionsInterface#

Options for createServerApprovalsHost.

ServerCapabilitiesInterface#

What a connection may do, for an app's own controls (a host leaves out the rest by itself).

ServerChannelsHostInterface#

The server's channels host, and how to stop listening.

ServerChannelsHostOptionsInterface#

Options for createServerChannelsHost.

ServerClientInterface#

A connection to a zidane-server: typed calls, signals and its state.

ServerClientOptionsInterface#

Options for createServerClient.

ServerComposerHostInterface#

ServerComposerHostOptionsInterface#

Options for createServerComposerHost.

ServerExtensionsHostInterface#

ServerExtensionsHostOptionsInterface#

Options for createServerExtensionsHost.

ServerFilesHostOptionsInterface#

Options for createServerFilesHost.

ServerGitHostOptionsInterface#

Options for createServerGitHost.

ServerHostInterface#

The ChatHost createServerHost returns, plus the connection.

ServerMachinesHostInterface#

ServerMachinesHostOptionsInterface#

Options for createServerMachinesHost.

ServerOnboardingHostInterface#

ServerOnboardingHostOptionsInterface#

Options for createServerOnboardingHost.

ServerPaletteHostInterface#

ServerPaletteHostOptionsInterface#

Options for createServerPaletteHost.

ServerProjectsClientInterface#

What createServerSessionProjects needs of a server's connection: a ServerClient is one.

ServerSessionDirectoryInterface#

The directory and the stores its rows read live.

ServerSessionDirectoryOptionsInterface#

Options for createServerSessionDirectory.

ServerSessionHostInterface#

ServerSessionHostOptionsInterface#

Options for createServerSessionHost.

ServerSessionProjectsInterface#

What createServerSessionProjects returns: the host's projects, and how to stop listening.

ServerSettingsHostInterface#

ServerSettingsHostOptionsInterface#

Options for createServerSettingsHost.

ServerSidebarHostOptionsInterface#

Options for createServerSidebarHost.

ServerTerminalHostOptionsInterface#

Options for createServerTerminalHost.

ServerViewsHostOptionsInterface#

Options for createServerViewsHost.

SessionBindingInterface#

The folders the app has a session open on, for the hosts that read a folder through a session.

Types#

ActionResultType#

An action's answer as the kit types it: a failure's reason becomes a failed error.

ExtensionHostModuleType#

A module namespace (import * as React from 'react').

ExtensionHostModulesType#

Host modules by specifier: what the app hands the extensions' components.

ExtensionHostModuleSourcesType#

Host modules by specifier, each a namespace or a loader of one (a function resolving the namespace): a loader runs the first time a bundle imports its specifier, so the app's first load stays small.

ExtensionInvokeWireType#

A callback's request as extensions.ui.invoke carries it, without the folder it runs in.

ExtensionUiClientRequestType#

A UI request an extension routed to this window (ui:client): a panel, navigation, a composer edit, a notification, a chord.

PairErrorType#

Why a pairing failed: the server's own reasons, or the request never got an answer it understands.

PairFetchType#

The part of fetch pairing uses.

PairResultType#

What pairing answered.

ServerActionAnswerType#

What a server action answers: its result, or the server's reason it failed.

ServerClientStateType#

Where a ServerClient's connection is.

ServerDirectoryCreateInputType#

What a new session starts with: its folder (none by default), where it runs (a machine's kind), and the new-session defaults' picks.

ServerDirectoryHostType#

What serverDirectoryPorts reads of the chat host.

ServerDirectoryPortsType#

The directory's ports over a server chat host: spread into createSessionDirectory's options.

ServerDirectorySessionType#

A sidebar row with the session's picks.

ServerHostOptionsType#

Options for createServerHost: a client to share, or what to create one with.

ServerProjectsSignalType#

A signal the projects hear: the server's, or settings:changed without the settings (a bridge keeps them on the server).