Files
orca/src/shared/electron-remote-runtime-client-capabilities.ts
T
Neil 920a83889c refactor: move browser contracts and publication to defining owners (#40209)
* refactor: move atomic publication to its filesystem owner

* refactor: group shared browser definitions by feature

* refactor: bind proxy process and session contracts to defining owners

* refactor: consolidate direct session contract type imports

* refactor: retain atomic publication test timing under moved owner

* fix(benchmark): resolve historical tunnel framing source before loading
2026-11-09 00:45:45 -08:00

46 lines
2.5 KiB
TypeScript

import { GIT_REVERT_CONFLICT_CLIENT_CAPABILITY } from './git/commands/git-commit-action'
import { GIT_GRAPH_TAB_CAPABILITY } from './source-control/runtime/git-graph-capabilities'
import { STRUCTURED_AGENT_SESSION_RENDERER_CLIENT_CAPABILITIES } from './agent-session/structured-agent-session-renderer-client-capabilities'
import { TERMINAL_IMAGE_VIEWER_CAPABILITY } from './terminal/images/terminal-image-viewer-capability'
import { BROWSER_CLIENT_HOST_REQUEST_CAPABILITY } from './browser/client-hosting/browser-client-host-request-protocol'
import {
STRUCTURED_CHAT_START_TELEMETRY_CLIENT_CAPABILITY,
STRUCTURED_CHAT_PROMPT_TELEMETRY_CLIENT_CAPABILITY
} from './structured-chat-dispatch-telemetry'
import {
AGENT_STATUS_RESTORED_UNCONFIRMED_RUNTIME_CAPABILITY,
NATIVE_REMOTE_RUNTIME_CLIENT_CAPABILITIES,
SESSION_TABS_RETIREMENT_PROOF_DELTA_RUNTIME_CAPABILITY,
SESSION_TABS_TAB_DELTA_RUNTIME_CAPABILITY,
WORKTREE_BACKGROUND_REMOVAL_RUNTIME_CAPABILITY
} from './protocol-version'
import {
BROWSER_CLIENT_HOST_RUNTIME_CAPABILITY,
BROWSER_CLIENT_PAGE_METADATA_RUNTIME_CAPABILITY
} from './browser/runtime/browser-runtime-capabilities'
// Electron clients can decode client-hosted page placement; becoming a page
// host still requires the separate authenticated browser-client lease.
export const ELECTRON_REMOTE_RUNTIME_CLIENT_CAPABILITIES = [
GIT_GRAPH_TAB_CAPABILITY,
GIT_REVERT_CONFLICT_CLIENT_CAPABILITY,
STRUCTURED_CHAT_START_TELEMETRY_CLIENT_CAPABILITY,
STRUCTURED_CHAT_PROMPT_TELEMETRY_CLIENT_CAPABILITY,
...NATIVE_REMOTE_RUNTIME_CLIENT_CAPABILITIES,
TERMINAL_IMAGE_VIEWER_CAPABILITY,
// The renderer that reads a paired host's structured chats is the one that reads its own.
...STRUCTURED_AGENT_SESSION_RENDERER_CLIENT_CAPABILITIES,
BROWSER_CLIENT_HOST_RUNTIME_CAPABILITY,
BROWSER_CLIENT_PAGE_METADATA_RUNTIME_CAPABILITY,
// The renderer starts hosting when a server's page needs a desktop and none holds a lease.
BROWSER_CLIENT_HOST_REQUEST_CAPABILITY,
// Why: only the renderer runs the retirement-proof ledger; CLI and mobile must keep full lists.
SESSION_TABS_RETIREMENT_PROOF_DELTA_RUNTIME_CAPABILITY,
// Main restores every tab-delta frame before the window or any other reader sees it.
SESSION_TABS_TAB_DELTA_RUNTIME_CAPABILITY,
// Only the renderer shows Deleting for a `removing` row; CLI and mobile get those rows omitted.
WORKTREE_BACKGROUND_REMOVAL_RUNTIME_CAPABILITY,
// The renderer shows a restored, unconfirmed agent row as identity only.
AGENT_STATUS_RESTORED_UNCONFIRMED_RUNTIME_CAPABILITY
] as const