agent-shim 8.23.0 → 8.25.0
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 +10 -0
- package/dist/cli.cjs +2494 -1867
- package/dist/index.cjs +792 -207
- package/dist/index.mjs +765 -207
- package/dist/types/index.d.ts +410 -15
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1775,7 +1775,7 @@ interface FrontDoorRoute {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
1777
|
/**
|
|
1778
|
-
* Remote Control session tracking
|
|
1778
|
+
* Remote Control session tracking: the record of the `cse_` sessions whose traffic crosses the door's terminated API-host session, and of the control requests awaiting an answer inside them. The client-half writes themselves (the prompt inject, the `control_response` answer, and every client-originated control request) live in `rcWrites.ts`, built on the observed credential this tracker holds.
|
|
1779
1779
|
*
|
|
1780
1780
|
* The tracker is observational: the door already terminates the API host's TLS, so it sees the CLI's own `POST /v1/code/sessions` (whose answer carries the new session's `cse_` id) and every recurring `/v1/code/sessions/...` call (heartbeat, presence), each carrying the session's Authorization bearer and the protocol headers a client-half replay needs. Per session the tracker retains the latest of each, because those calls recur and the freshest value is the live one. It also reads the request bodies of the exchanges whose payloads matter: the worker's event batches (whose `control_request` payloads, `can_use_tool` above all, are the approvals awaiting an answer), the worker heartbeats (whose bodies carry `idle_seconds`), the worker registration (whose body carries the worker state), and the client-half event writes (whose `control_response` payloads complete a pending request). Everything is held in this process's memory only: nothing here is written to a log, to the capture, or to disk, and the summary the control surface lists never includes the credential. The capture's existing redaction is untouched; a capture and this tracker observe the same exchanges through entirely separate paths.
|
|
1781
1781
|
*
|
|
@@ -1892,6 +1892,16 @@ declare function observingRoutedRoute(route: FrontDoorRoute, tracker: RcSessionT
|
|
|
1892
1892
|
}): FrontDoorRoute;
|
|
1893
1893
|
/** Adapts the tracker's exchange observer to the passthrough forwarding's observer shape, so the connect test world (which forwards rather than routes) observes through the same tracker. */
|
|
1894
1894
|
declare function rcObserverAsPassthrough(observer: RcExchangeObserver): PassthroughObserver;
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* The Remote Control client-half writes: the payload builders, the write engine and one typed operation per control verb the door can send into an observed session, every one an event write to `/v1/code/sessions/{id}/events` over the door's interception-proof dials, authenticated by the observed bearer and protocol headers the tracker (`rcSessions.ts`) holds.
|
|
1898
|
+
*
|
|
1899
|
+
* Every request-shaped write goes through one envelope builder (`buildRcControlRequestPayload`) so the family cannot drift apart in shape, and one delivery engine (`deliverRcClientPayload`, module-local) so the two credential guards, the dial and the sequence-cursor advance exist exactly once. The fields each subtype carries are the SDK's own (`@anthropic-ai/claude-agent-sdk` `sdk.d.ts`) where it declares the subtype, and the CLI bundle's own request builders where it does not (`mcp_authenticate`, `mcp_oauth_callback_url`), each named in its builder's doc comment.
|
|
1900
|
+
*
|
|
1901
|
+
* A write that carried a `control_request` returns the request id it minted, because the worker's `control_response` echoes exactly that id on the stream the door already fans out: a consumer that wants the answer matches it there, and the id is surfaced by the result since only the door ever knew it.
|
|
1902
|
+
*
|
|
1903
|
+
* Two writes stand outside the events path: the teleport marker, whose channel is the session's teleport-events path (the one write the family addresses elsewhere, and the one the CLI only ever reads), and the read receipt, which is not a payload write at all but the mark_read endpoint's own small body, built here so every surface the door serves it from posts the same shape.
|
|
1904
|
+
*/
|
|
1895
1905
|
/**
|
|
1896
1906
|
* Builds the user-message payload event for one injected prompt: the Agent SDK stream-json `user` message shape (`type`, `uuid`, `session_id`, `parent_tool_use_id`, `message` with a `user` role), the same envelope a claude.ai client sends as a turn. The content is the plain string form, which is the shape validated end to end against the real API by the third-party client survey that settled this protocol.
|
|
1897
1907
|
*/
|
|
@@ -1912,11 +1922,18 @@ interface RcDialAnswer {
|
|
|
1912
1922
|
/** The one network effect a client-half write performs, injected so the pure logic runs against fakes: POST the write body to the session's events endpoint. Production dials the real API host over the door's interception-proof agent; tests redirect to a local stand-in. */
|
|
1913
1923
|
interface RcEventDial {
|
|
1914
1924
|
readonly writeEvents: (sessionId: string, headers: Readonly<Record<string, string>>, body: string) => Promise<RcDialAnswer>;
|
|
1925
|
+
/**
|
|
1926
|
+
* Posts one write to the session's teleport-events path instead of its events path: the write half of the channel the CLI only ever reads (`GET /teleport-events`, the teleport-to-local hydration's page source, verified in the 2.1.289 bundle, which contains no POST sender for it at all). The door's own client half is the one sender this surface has, so this method exists for `teleportRcSession` alone.
|
|
1927
|
+
*/
|
|
1928
|
+
readonly writeTeleportEvents: (sessionId: string, headers: Readonly<Record<string, string>>, body: string) => Promise<RcDialAnswer>;
|
|
1915
1929
|
}
|
|
1916
|
-
/**
|
|
1930
|
+
/**
|
|
1931
|
+
* What one client-half write produced: the sequence numbers the real service assigned, or a verbose failure message ready to show a user. A write that carried a `control_request` also names the request id it minted, because the worker's `control_response` echoes exactly that id on the stream: a consumer that wants the answer matches it there, and the id is surfaced here since only the door ever knew it.
|
|
1932
|
+
*/
|
|
1917
1933
|
type RcEventWriteResult = {
|
|
1918
1934
|
readonly ok: true;
|
|
1919
1935
|
readonly sequenceNums: readonly number[];
|
|
1936
|
+
readonly requestId?: string;
|
|
1920
1937
|
} | {
|
|
1921
1938
|
readonly ok: false;
|
|
1922
1939
|
readonly message: string;
|
|
@@ -1959,7 +1976,11 @@ type RcPermissionMode = (typeof RC_PERMISSION_MODES)[number];
|
|
|
1959
1976
|
/** Whether a value is one of the SDK's own permission modes, the narrowing the CLI and the control route apply to untrusted input. */
|
|
1960
1977
|
declare function isRcPermissionMode(value: unknown): value is RcPermissionMode;
|
|
1961
1978
|
/**
|
|
1962
|
-
* Builds the `control_request` payload event
|
|
1979
|
+
* Builds the `control_request` payload event's envelope around one subtype's own request shape: the SDK's own envelope (`SDKControlRequest`: `type`, `request_id`, `request`), with the request id the caller minted, the id the worker's `control_response` echoes. Every client-originated control request below goes through this one envelope so the family cannot drift apart in shape.
|
|
1980
|
+
*/
|
|
1981
|
+
declare function buildRcControlRequestPayload(requestId: string, request: Record<string, unknown>): Record<string, unknown>;
|
|
1982
|
+
/**
|
|
1983
|
+
* Builds the `control_request` payload event for one interrupt: the SDK's request envelope, carrying the `interrupt` subtype's own shape (`subtype` alone; its optional `cancel_queued` is absent, which the SDK reads as false, so queued commands survive the interrupt exactly as a plain stop button's would). The request id is the caller's minted uuid, the id the worker's `control_response` echoes.
|
|
1963
1984
|
*/
|
|
1964
1985
|
declare function buildRcInterruptPayload(requestId: string): Record<string, unknown>;
|
|
1965
1986
|
/**
|
|
@@ -1970,6 +1991,69 @@ declare function buildRcSetModelPayload(requestId: string, model: string): Recor
|
|
|
1970
1991
|
* Builds the `control_request` payload event for one permission-mode change: the SDK's request envelope carrying the `set_permission_mode` subtype's own shape, whose one field is the `mode` from the SDK's own `PermissionMode` enum (`RC_PERMISSION_MODES`).
|
|
1971
1992
|
*/
|
|
1972
1993
|
declare function buildRcSetPermissionModePayload(requestId: string, mode: RcPermissionMode): Record<string, unknown>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Builds the `control_request` payload event for one session end: the SDK's request envelope carrying the `end_session` subtype's own shape, whose one field is the optional `reason` string (the CLI's own sender passes `reason: "session_not_found"` and its receiver logs `reason ?? "unspecified"`, both verified in the 2.1.267 bundle; an omitted reason is the protocol's own unnamed form, so the builder omits the field entirely rather than sending an empty string).
|
|
1996
|
+
*/
|
|
1997
|
+
declare function buildRcEndSessionPayload(requestId: string, reason: string | undefined): Record<string, unknown>;
|
|
1998
|
+
/**
|
|
1999
|
+
* Builds the `control_request` payload event for one usage query: the SDK's request envelope carrying the `get_usage` subtype's own shape, whose one field is the optional `skip_behaviors` boolean (the CLI's own client sends the field only when true, so this builder does the same; the SDK documents the field as skipping the local-transcript scan that fills the response's behaviours section).
|
|
2000
|
+
*/
|
|
2001
|
+
declare function buildRcGetUsagePayload(requestId: string, skipBehaviors: boolean | undefined): Record<string, unknown>;
|
|
2002
|
+
/**
|
|
2003
|
+
* The detail levels the SDK's own `get_context_usage` control request accepts: exactly the strings its `detail` field declares (`'summary' | 'full'`), nothing looser. A runtime list as well as a type, because the CLI and the control route both narrow untrusted strings through it before a write is ever attempted.
|
|
2004
|
+
*/
|
|
2005
|
+
declare const RC_CONTEXT_USAGE_DETAILS: readonly ["summary", "full"];
|
|
2006
|
+
/** One detail level the SDK's `get_context_usage` control request accepts. */
|
|
2007
|
+
type RcContextUsageDetail = (typeof RC_CONTEXT_USAGE_DETAILS)[number];
|
|
2008
|
+
/** Whether a value is one of the SDK's own context-usage detail levels, the narrowing the CLI and the control route apply to untrusted input. */
|
|
2009
|
+
declare function isRcContextUsageDetail(value: unknown): value is RcContextUsageDetail;
|
|
2010
|
+
/**
|
|
2011
|
+
* Builds the `control_request` payload event for one context-usage query: the SDK's request envelope carrying the `get_context_usage` subtype's own shape, whose one field is the optional `detail` level (`'summary'` or `'full'`, defaulting to `'full'` server-side when omitted, so the builder omits the field rather than restating the default).
|
|
2012
|
+
*/
|
|
2013
|
+
declare function buildRcGetContextUsagePayload(requestId: string, detail: RcContextUsageDetail | undefined): Record<string, unknown>;
|
|
2014
|
+
/**
|
|
2015
|
+
* The encodings the SDK's own `read_file` control request accepts: exactly the strings its `encoding` field declares, nothing looser. A runtime list as well as a type, because the CLI and the control route both narrow untrusted strings through it before a write is ever attempted.
|
|
2016
|
+
*/
|
|
2017
|
+
declare const RC_READ_FILE_ENCODINGS: readonly ["utf-8", "base64"];
|
|
2018
|
+
/** One encoding the SDK's `read_file` control request accepts. */
|
|
2019
|
+
type RcReadFileEncoding = (typeof RC_READ_FILE_ENCODINGS)[number];
|
|
2020
|
+
/** Whether a value is one of the SDK's own read-file encodings, the narrowing the CLI and the control route apply to untrusted input. */
|
|
2021
|
+
declare function isRcReadFileEncoding(value: unknown): value is RcReadFileEncoding;
|
|
2022
|
+
/** The optional parts of one read-file request: the byte cap and the encoding the SDK's own fields name. */
|
|
2023
|
+
interface RcReadFileOptions {
|
|
2024
|
+
/** The `max_bytes` cap, a positive number of bytes. */
|
|
2025
|
+
readonly maxBytes?: number;
|
|
2026
|
+
/** The `encoding` the answer's `contents` carry; the SDK's own default is `utf-8`. */
|
|
2027
|
+
readonly encoding?: RcReadFileEncoding;
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Builds the `control_request` payload event for one file read: the SDK's request envelope carrying the `read_file` subtype's own shape, whose fields are the required `path` string and the optional `max_bytes` number and `encoding` level (`'utf-8' | 'base64'`), each sent only when the caller named it (the CLI's own client builds exactly this shape, verified in the 2.1.267 bundle).
|
|
2031
|
+
*/
|
|
2032
|
+
declare function buildRcReadFilePayload(requestId: string, path: string, options: RcReadFileOptions | undefined): Record<string, unknown>;
|
|
2033
|
+
/**
|
|
2034
|
+
* Builds the `control_request` payload event for one file-suggestion query: the SDK's request envelope carrying the `file_suggestions` subtype's own shape, whose one required field is the `query` string (the partial path prefix the TUI's at-mention autocomplete fuzzy-matches; the SDK imposes no minimum, so an empty query is sent as the empty prefix it is).
|
|
2035
|
+
*/
|
|
2036
|
+
declare function buildRcFileSuggestionsPayload(requestId: string, query: string): Record<string, unknown>;
|
|
2037
|
+
/**
|
|
2038
|
+
* Builds the `control_request` payload event for one MCP status query: the SDK's request envelope carrying the `mcp_status` subtype's own shape, which declares no fields of its own (the CLI's own client requests it the same way and reads its answer's `mcpServers`).
|
|
2039
|
+
*/
|
|
2040
|
+
declare function buildRcMcpStatusPayload(requestId: string): Record<string, unknown>;
|
|
2041
|
+
/**
|
|
2042
|
+
* Builds the `control_request` payload event for one MCP server reconnect: the SDK's request envelope carrying the `mcp_reconnect` subtype's own shape, whose one field is the `serverName` string (the casing the SDK and the CLI's own client both use for this family, unlike the snake_case the older subtypes carry).
|
|
2043
|
+
*/
|
|
2044
|
+
declare function buildRcMcpReconnectPayload(requestId: string, serverName: string): Record<string, unknown>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Builds the `control_request` payload event for one MCP OAuth handshake start: the SDK's request envelope carrying the `mcp_authenticate` subtype's own shape, whose fields are the `serverName` and the `redirectUri` the server's OAuth flow redirects back to (the exact object the CLI's own `mcpAuthenticate` builds, verified in the 2.1.267 bundle; this subtype is absent from the published SDK types, so the bundle is the field's only source).
|
|
2047
|
+
*/
|
|
2048
|
+
declare function buildRcMcpAuthenticatePayload(requestId: string, serverName: string, redirectUri: string): Record<string, unknown>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Builds the `control_request` payload event for one MCP OAuth callback hand-in: the SDK's request envelope carrying the `mcp_oauth_callback_url` subtype's own shape, whose fields are the `serverName` and the `callbackUrl` the browser landed on (the exact object the CLI's own `mcpSubmitOAuthCallbackUrl` builds, verified in the 2.1.267 bundle; this subtype is absent from the published SDK types, so the bundle is the field's only source).
|
|
2051
|
+
*/
|
|
2052
|
+
declare function buildRcMcpOAuthCallbackUrlPayload(requestId: string, serverName: string, callbackUrl: string): Record<string, unknown>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Builds the liveness payload event on its own, with no request envelope around it: the SDK's own `SDKKeepAliveMessage` is a top-level stream payload (`type` alone, no `request_id`, no `request`), which either side may send at any time and receivers must ignore, so this is the one client-half write that neither expects nor can receive an answer. The CLI's own transports write exactly this object into their event streams, verified in the 2.1.267 bundle.
|
|
2055
|
+
*/
|
|
2056
|
+
declare function buildRcKeepAlivePayload(): Record<string, unknown>;
|
|
1973
2057
|
/** Everything one answer needs, injected so the decision logic runs against fakes in unit tests. */
|
|
1974
2058
|
interface RcAnswerDeps {
|
|
1975
2059
|
/** Reads the observed credential for a session: the tracker's accessor, in production. */
|
|
@@ -1999,17 +2083,65 @@ interface RcControlRequestDeps {
|
|
|
1999
2083
|
readonly newUuid: () => string;
|
|
2000
2084
|
}
|
|
2001
2085
|
/**
|
|
2002
|
-
* Interrupts one observed session's running turn: the same documented client-half write the inject and answer paths perform, carrying the SDK's `control_request` envelope for the `interrupt` subtype, authenticated by the observed bearer and protocol headers. The result
|
|
2086
|
+
* Interrupts one observed session's running turn: the same documented client-half write the inject and answer paths perform, carrying the SDK's `control_request` envelope for the `interrupt` subtype, authenticated by the observed bearer and protocol headers. The result names the minted request id (the id the worker's `control_response` echoes on the stream) and the sequence numbers the real service assigned, or a verbose failure. A dial that cannot reach the API host is reported rather than thrown, so a caller with no exception handling still shows the user exactly what failed.
|
|
2003
2087
|
*/
|
|
2004
2088
|
declare function interruptRcSession(deps: RcControlRequestDeps, sessionId: string): Promise<RcEventWriteResult>;
|
|
2005
2089
|
/**
|
|
2006
|
-
* Sets the model one observed session's subsequent turns use: the same documented client-half write the inject and answer paths perform, carrying the SDK's `control_request` envelope for the `set_model` subtype with the model id its own field names. The id is validated only as non-empty, because the SDK's field gives the empty-free forms their own meaning (omitted or null resets to the session default) and this operation sends neither. The result
|
|
2090
|
+
* Sets the model one observed session's subsequent turns use: the same documented client-half write the inject and answer paths perform, carrying the SDK's `control_request` envelope for the `set_model` subtype with the model id its own field names. The id is validated only as non-empty, because the SDK's field gives the empty-free forms their own meaning (omitted or null resets to the session default) and this operation sends neither. The result names the minted request id and the sequence numbers the real service assigned, or a verbose failure.
|
|
2007
2091
|
*/
|
|
2008
2092
|
declare function setRcSessionModel(deps: RcControlRequestDeps, sessionId: string, model: string): Promise<RcEventWriteResult>;
|
|
2009
2093
|
/**
|
|
2010
|
-
* Sets one observed session's permission mode: the same documented client-half write the inject and answer paths perform, carrying the SDK's `control_request` envelope for the `set_permission_mode` subtype with a mode from the SDK's own enum (`RC_PERMISSION_MODES`; the type accepts nothing looser, and the CLI and control route narrow untrusted strings through `isRcPermissionMode` before they ever reach this operation). The result
|
|
2094
|
+
* Sets one observed session's permission mode: the same documented client-half write the inject and answer paths perform, carrying the SDK's `control_request` envelope for the `set_permission_mode` subtype with a mode from the SDK's own enum (`RC_PERMISSION_MODES`; the type accepts nothing looser, and the CLI and control route narrow untrusted strings through `isRcPermissionMode` before they ever reach this operation). The result names the minted request id and the sequence numbers the real service assigned, or a verbose failure.
|
|
2011
2095
|
*/
|
|
2012
2096
|
declare function setRcSessionPermissionMode(deps: RcControlRequestDeps, sessionId: string, mode: RcPermissionMode): Promise<RcEventWriteResult>;
|
|
2097
|
+
/**
|
|
2098
|
+
* Ends one observed session: the documented client-half write carrying the SDK's `control_request` envelope for the `end_session` subtype, the request whose receipt makes the worker abort its turn and shut down by its own rules (verified in the CLI's source: its print loop logs `end_session received` and ends the child). The reason is optional and sent only when non-empty, because the receiver reads an absent reason as its own "unspecified" form and an empty string is neither. The result names the minted request id and the sequence numbers the real service assigned, or a verbose failure.
|
|
2099
|
+
*/
|
|
2100
|
+
declare function endRcSession(deps: RcControlRequestDeps, sessionId: string, reason: string | undefined): Promise<RcEventWriteResult>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Asks one observed session's worker for its structured usage: the documented client-half write carrying the SDK's `control_request` envelope for the `get_usage` subtype. The worker's answer (session cost and usage totals plus the plan's rate-limit utilisation) arrives later as the `control_response` echoing the minted request id on the stream the door already fans out, which is why the result names that id; the door invents no usage state of its own.
|
|
2103
|
+
*/
|
|
2104
|
+
declare function getRcSessionUsage(deps: RcControlRequestDeps, sessionId: string, skipBehaviors: boolean | undefined): Promise<RcEventWriteResult>;
|
|
2105
|
+
/**
|
|
2106
|
+
* Asks one observed session's worker for its context-window breakdown: the documented client-half write carrying the SDK's `control_request` envelope for the `get_context_usage` subtype. The worker's answer (the per-category breakdown) arrives later as the `control_response` echoing the minted request id on the stream the door already fans out; the detail level is the SDK's own enum, narrowed by `isRcContextUsageDetail` before this operation is reached.
|
|
2107
|
+
*/
|
|
2108
|
+
declare function getRcSessionContextUsage(deps: RcControlRequestDeps, sessionId: string, detail: RcContextUsageDetail | undefined): Promise<RcEventWriteResult>;
|
|
2109
|
+
/**
|
|
2110
|
+
* Asks one observed session's worker to read one file from the session filesystem: the documented client-half write carrying the SDK's `control_request` envelope for the `read_file` subtype, the request the remote sidebar viewer rides. The path is resolved by the worker against its own cwd and gated by its own read-permission rules; the answer (the contents) arrives later as the `control_response` echoing the minted request id on the stream the door already fans out.
|
|
2111
|
+
*/
|
|
2112
|
+
declare function readRcSessionFile(deps: RcControlRequestDeps, sessionId: string, path: string, options: RcReadFileOptions | undefined): Promise<RcEventWriteResult>;
|
|
2113
|
+
/**
|
|
2114
|
+
* Asks one observed session's worker for its at-mention file suggestions: the documented client-half write carrying the SDK's `control_request` envelope for the `file_suggestions` subtype, the request the TUI's own autocomplete rides, answered with the same fuzzy-matched results. The answer arrives later as the `control_response` echoing the minted request id on the stream the door already fans out; the query may be empty, because the SDK's own field imposes no minimum and an empty prefix is the autocomplete's root listing.
|
|
2115
|
+
*/
|
|
2116
|
+
declare function suggestRcSessionFiles(deps: RcControlRequestDeps, sessionId: string, query: string): Promise<RcEventWriteResult>;
|
|
2117
|
+
/**
|
|
2118
|
+
* Asks one observed session's worker for the status of its MCP server connections: the documented client-half write carrying the SDK's `control_request` envelope for the `mcp_status` subtype, which declares no fields of its own. The answer arrives later as the `control_response` echoing the minted request id on the stream the door already fans out.
|
|
2119
|
+
*/
|
|
2120
|
+
declare function getRcSessionMcpStatus(deps: RcControlRequestDeps, sessionId: string): Promise<RcEventWriteResult>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Asks one observed session's worker to reconnect one MCP server: the documented client-half write carrying the SDK's `control_request` envelope for the `mcp_reconnect` subtype, whose one field is the server name exactly as `mcp_status` reports it. The answer arrives later as the `control_response` echoing the minted request id on the stream the door already fans out.
|
|
2123
|
+
*/
|
|
2124
|
+
declare function reconnectRcSessionMcpServer(deps: RcControlRequestDeps, sessionId: string, serverName: string): Promise<RcEventWriteResult>;
|
|
2125
|
+
/**
|
|
2126
|
+
* Starts one MCP server's OAuth handshake on an observed session: the documented client-half write carrying the `control_request` envelope for the `mcp_authenticate` subtype, whose fields name the server and the redirect URI its OAuth flow redirects back to. The answer arrives later as the `control_response` echoing the minted request id on the stream the door already fans out.
|
|
2127
|
+
*/
|
|
2128
|
+
declare function authenticateRcSessionMcpServer(deps: RcControlRequestDeps, sessionId: string, serverName: string, redirectUri: string): Promise<RcEventWriteResult>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Hands one MCP server's OAuth callback to an observed session's worker: the documented client-half write carrying the `control_request` envelope for the `mcp_oauth_callback_url` subtype, whose fields name the server and the callback URL the browser landed on, completing the handshake `mcp_authenticate` started. The answer arrives later as the `control_response` echoing the minted request id on the stream the door already fans out.
|
|
2131
|
+
*/
|
|
2132
|
+
declare function submitRcSessionMcpOAuthCallbackUrl(deps: RcControlRequestDeps, sessionId: string, serverName: string, callbackUrl: string): Promise<RcEventWriteResult>;
|
|
2133
|
+
/**
|
|
2134
|
+
* Sends one liveness heartbeat into an observed session: the documented client-half write carrying the `keep_alive` payload on its own, with no request envelope, because the SDK declares it a top-level stream message either side may send at any time and receivers must ignore. The minted sequence numbers confirm delivery and nothing else will ever answer, which is the payload's own contract; this write is how a door-driven client keeps its half of the stream warm without saying anything.
|
|
2135
|
+
*/
|
|
2136
|
+
declare function sendRcKeepAlive(deps: RcControlRequestDeps, sessionId: string): Promise<RcEventWriteResult>;
|
|
2137
|
+
/**
|
|
2138
|
+
* Sends one teleport marker into an observed session: the write half of the teleport-events channel, whose read half (`GET /v1/code/sessions/{id}/teleport-events`, paged `{data: [{payload}], next_cursor}` with `x-organization-uuid` and the optional trusted-device header) is the teleport-to-local hydration's page source, verified in the 2.1.289 bundle. The CLI itself never POSTs to the channel (the bundle's only sender is the GET reader); the writer is the cloud UI, whose marker is a user message carrying a sentinel string the local relay anchors on (its own parser demands a line with a uuid and string content), so the payload here is exactly that shape: the SDK user-message envelope carrying the caller's marker text. The result names the sequence numbers the service assigned, or a verbose failure.
|
|
2139
|
+
*/
|
|
2140
|
+
declare function teleportRcSession(deps: RcControlRequestDeps, sessionId: string, marker: string): Promise<RcEventWriteResult>;
|
|
2141
|
+
/**
|
|
2142
|
+
* Builds the read-receipt body the mark_read endpoint takes: `{event_id}` naming one event, or `{}` marking the whole session read, exactly the two shapes the CLI's own `markSessionRead` sender posts (verified in the 2.1.289 bundle: `n ? {event_id: n} : {}`, with no client id in the body at all).
|
|
2143
|
+
*/
|
|
2144
|
+
declare function buildRcMarkReadBody(eventId: string | undefined): Record<string, unknown>;
|
|
2013
2145
|
|
|
2014
2146
|
/**
|
|
2015
2147
|
* How long a failed attachment backs off before retrying. Not a fresh number: it is the session's own liveness bound (`RC_IDLE_EXPIRY_MS`, the 45 s stream timeout the tracker's idle expiry already derives from), so an attachment that cannot be re-established retries at exactly the cadence the protocol itself gives up on a quiet session at. Production passes that constant; tests pass small values so a backoff is reached in milliseconds.
|
|
@@ -2045,10 +2177,13 @@ interface RcStreamAnswer {
|
|
|
2045
2177
|
readonly chunks: AsyncIterable<Uint8Array>;
|
|
2046
2178
|
}
|
|
2047
2179
|
/**
|
|
2048
|
-
* The one network effect the client read stream performs, injected so the attachment logic runs against fakes: announce a client's presence,
|
|
2180
|
+
* The one network effect the client read stream performs, injected so the attachment logic runs against fakes: announce a client's presence (a pulse, or the clear that retires it), open the read stream, and send the read receipts a reading client owes for what it read. Production dials the real API host over the door's interception-proof agent; tests redirect to a local stand-in. `resume` names the documented resume pair's value: present only when the door has seen events for the session already, it sends `from_sequence_num` as a query parameter and `Last-Event-ID` as a header together.
|
|
2049
2181
|
*/
|
|
2050
2182
|
interface RcStreamDial {
|
|
2051
|
-
|
|
2183
|
+
/** Announces the client: a pulse (`clear` false) while it reads, and the clear (`clear` true) that retires it when the attachment ends for good. The CLI's own presence sender posts exactly this body shape (`{client_id, clear}`, verified in the 2.1.289 bundle, whose teardown path posts `clear: true` and whose pulses are the same call without it). */
|
|
2184
|
+
readonly announcePresence: (sessionId: string, headers: Readonly<Record<string, string>>, clientId: string, clear: boolean) => Promise<RcPresenceAnswer>;
|
|
2185
|
+
/** Sends one read receipt: the mark_read endpoint's own body (`{event_id}`, or `{}` for the whole session), the duty the CLI's own remote-client half performs with the same body (`markSessionRead`, verified in the 2.1.289 bundle). */
|
|
2186
|
+
readonly markRead: (sessionId: string, headers: Readonly<Record<string, string>>, eventId: string | undefined) => Promise<RcPresenceAnswer>;
|
|
2052
2187
|
readonly openStream: (sessionId: string, headers: Readonly<Record<string, string>>, resume: {
|
|
2053
2188
|
readonly fromSequenceNum: number;
|
|
2054
2189
|
} | undefined, signal: AbortSignal) => Promise<RcStreamAnswer>;
|
|
@@ -2141,7 +2276,7 @@ declare function realRcStreamDial(target?: RcDialTarget): RcStreamDial;
|
|
|
2141
2276
|
declare function realConnectEffects(ports?: SourcePortRange): ConnectEffects;
|
|
2142
2277
|
|
|
2143
2278
|
/**
|
|
2144
|
-
* The Remote Control control surface: the small HTTP namespace the serving door answers on its provider listener, next to `/healthz`, through which `agent-shim frontdoor rc` lists the observed sessions, reports each one's status and pending control requests, injects a prompt into one, answers one of its pending requests, and sends its own control requests into one (interrupt, set-model, set-permission-mode).
|
|
2279
|
+
* The Remote Control control surface: the small HTTP namespace the serving door answers on its provider listener, next to `/healthz`, through which `agent-shim frontdoor rc` lists the observed sessions, reports each one's status and pending control requests, injects a prompt into one, answers one of its pending requests, and sends its own control requests into one (interrupt, set-model, set-permission-mode, and the wider client-half verb family: end-session, the usage and context queries, read-file, file-suggestions, keep-alive, and the mcp_* family).
|
|
2145
2280
|
*
|
|
2146
2281
|
* This rides the listener `frontdoor status` already knows the door by (its address comes from the same state file, its trust anchor from the same CA path) rather than any second channel. The routes sit under one prefix the routed pipeline never serves, and every request must present the serving generation's control token as a Bearer credential: a fresh random value per door start, written owner-only under the front door's state directory so only this user's CLI can read it, and checked in constant time like every other capability the door accepts. An inject, answer or control request is carried out by the door itself over its interception-proof dials, which is the whole point: the CLI never dials the API host directly, so nothing about the write depends on the caller's own network path.
|
|
2147
2282
|
*/
|
|
@@ -2167,6 +2302,28 @@ interface RcControlHandlerDeps {
|
|
|
2167
2302
|
readonly setModel: (sessionId: string, model: string) => Promise<RcEventWriteResult>;
|
|
2168
2303
|
/** The set-permission-mode operation, already wired to the tracker and the door's API-host dial. */
|
|
2169
2304
|
readonly setPermissionMode: (sessionId: string, mode: RcPermissionMode) => Promise<RcEventWriteResult>;
|
|
2305
|
+
/** The end-session operation, already wired to the tracker and the door's API-host dial. */
|
|
2306
|
+
readonly endSession: (sessionId: string, reason: string | undefined) => Promise<RcEventWriteResult>;
|
|
2307
|
+
/** The get-usage operation, already wired to the tracker and the door's API-host dial. */
|
|
2308
|
+
readonly getUsage: (sessionId: string, skipBehaviors: boolean | undefined) => Promise<RcEventWriteResult>;
|
|
2309
|
+
/** The get-context-usage operation, already wired to the tracker and the door's API-host dial. */
|
|
2310
|
+
readonly getContextUsage: (sessionId: string, detail: RcContextUsageDetail | undefined) => Promise<RcEventWriteResult>;
|
|
2311
|
+
/** The read-file operation, already wired to the tracker and the door's API-host dial. */
|
|
2312
|
+
readonly readFile: (sessionId: string, path: string, options: RcReadFileOptions | undefined) => Promise<RcEventWriteResult>;
|
|
2313
|
+
/** The file-suggestions operation, already wired to the tracker and the door's API-host dial. */
|
|
2314
|
+
readonly fileSuggestions: (sessionId: string, query: string) => Promise<RcEventWriteResult>;
|
|
2315
|
+
/** The keep-alive operation, already wired to the tracker and the door's API-host dial. */
|
|
2316
|
+
readonly keepAlive: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2317
|
+
/** The mcp-status operation, already wired to the tracker and the door's API-host dial. */
|
|
2318
|
+
readonly mcpStatus: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2319
|
+
/** The mcp-reconnect operation, already wired to the tracker and the door's API-host dial. */
|
|
2320
|
+
readonly mcpReconnect: (sessionId: string, serverName: string) => Promise<RcEventWriteResult>;
|
|
2321
|
+
/** The mcp-authenticate operation, already wired to the tracker and the door's API-host dial. */
|
|
2322
|
+
readonly mcpAuthenticate: (sessionId: string, serverName: string, redirectUri: string) => Promise<RcEventWriteResult>;
|
|
2323
|
+
/** The mcp-oauth-callback-url operation, already wired to the tracker and the door's API-host dial. */
|
|
2324
|
+
readonly mcpOAuthCallbackUrl: (sessionId: string, serverName: string, callbackUrl: string) => Promise<RcEventWriteResult>;
|
|
2325
|
+
/** The teleport operation, already wired to the tracker and the door's API-host dial. */
|
|
2326
|
+
readonly teleport: (sessionId: string, marker: string) => Promise<RcEventWriteResult>;
|
|
2170
2327
|
}
|
|
2171
2328
|
/**
|
|
2172
2329
|
* Builds the control handler the provider listener serves under `CONTROL_PATH_PREFIX`. Every route demands the generation's control token first, so nothing about the sessions (their ids, their timing, and most of all the prompts and approvals carried into them) is reachable by a process that did not read the owner-only token file.
|
|
@@ -2188,7 +2345,7 @@ interface RcControlTransport {
|
|
|
2188
2345
|
}
|
|
2189
2346
|
/** The real transport: HTTPS to the door's provider listener on loopback, trusting only the CA file the door's own state names, so a process merely holding the port cannot answer as the door. */
|
|
2190
2347
|
declare function realRcControlTransport(port: number, ca: string): RcControlTransport;
|
|
2191
|
-
/** The door-facing client the `frontdoor rc` verbs use: the session list, the status and pending reads, the inject and answer operations, and the door's own control requests (interrupt, set-model, set-permission-mode), over the injected transport. */
|
|
2348
|
+
/** The door-facing client the `frontdoor rc` verbs use: the session list, the status and pending reads, the inject and answer operations, and the door's own control requests (interrupt, set-model, set-permission-mode, and the wider verb family: end-session, the usage and context queries, read-file, file-suggestions, keep-alive, and the mcp_* family), over the injected transport. */
|
|
2192
2349
|
interface FrontDoorRcControl {
|
|
2193
2350
|
/** The observed sessions, oldest-created first. Throws with the door's verbose reason when the list cannot be had. */
|
|
2194
2351
|
readonly listSessions: () => Promise<readonly RcSessionSummary[]>;
|
|
@@ -2200,12 +2357,34 @@ interface FrontDoorRcControl {
|
|
|
2200
2357
|
readonly sendPrompt: (sessionId: string, text: string) => Promise<RcEventWriteResult>;
|
|
2201
2358
|
/** Answers one pending control request, returning the sequence numbers the real service assigned or the verbose failure. */
|
|
2202
2359
|
readonly answerRequest: (sessionId: string, requestId: string, decision: RcAnswerDecision) => Promise<RcEventWriteResult>;
|
|
2203
|
-
/** Interrupts one session's running turn, returning the sequence numbers the real service assigned or the verbose failure. */
|
|
2360
|
+
/** Interrupts one session's running turn, returning the minted request id and the sequence numbers the real service assigned, or the verbose failure. */
|
|
2204
2361
|
readonly interruptSession: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2205
|
-
/** Sets the model one session's subsequent turns use, returning the sequence numbers the real service assigned or the verbose failure. */
|
|
2362
|
+
/** Sets the model one session's subsequent turns use, returning the minted request id and the sequence numbers the real service assigned, or the verbose failure. */
|
|
2206
2363
|
readonly setModel: (sessionId: string, model: string) => Promise<RcEventWriteResult>;
|
|
2207
|
-
/** Sets one session's permission mode, returning the sequence numbers the real service assigned or the verbose failure. */
|
|
2364
|
+
/** Sets one session's permission mode, returning the minted request id and the sequence numbers the real service assigned, or the verbose failure. */
|
|
2208
2365
|
readonly setPermissionMode: (sessionId: string, mode: RcPermissionMode) => Promise<RcEventWriteResult>;
|
|
2366
|
+
/** Ends one session, returning the minted request id and the sequence numbers the real service assigned, or the verbose failure. */
|
|
2367
|
+
readonly endSession: (sessionId: string, reason: string | undefined) => Promise<RcEventWriteResult>;
|
|
2368
|
+
/** Asks one session's worker for its structured usage, returning the minted request id (the id its `control_response` answer echoes) and the sequence numbers, or the verbose failure. */
|
|
2369
|
+
readonly getUsage: (sessionId: string, skipBehaviors: boolean | undefined) => Promise<RcEventWriteResult>;
|
|
2370
|
+
/** Asks one session's worker for its context-window breakdown, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2371
|
+
readonly getContextUsage: (sessionId: string, detail: RcContextUsageDetail | undefined) => Promise<RcEventWriteResult>;
|
|
2372
|
+
/** Asks one session's worker to read one file, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2373
|
+
readonly readFile: (sessionId: string, path: string, options: RcReadFileOptions | undefined) => Promise<RcEventWriteResult>;
|
|
2374
|
+
/** Asks one session's worker for its at-mention file suggestions, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2375
|
+
readonly fileSuggestions: (sessionId: string, query: string) => Promise<RcEventWriteResult>;
|
|
2376
|
+
/** Sends one liveness heartbeat into a session, returning the sequence numbers the real service assigned or the verbose failure. */
|
|
2377
|
+
readonly keepAlive: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2378
|
+
/** Asks one session's worker for the status of its MCP server connections, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2379
|
+
readonly mcpStatus: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2380
|
+
/** Asks one session's worker to reconnect one MCP server, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2381
|
+
readonly mcpReconnect: (sessionId: string, serverName: string) => Promise<RcEventWriteResult>;
|
|
2382
|
+
/** Starts one MCP server's OAuth handshake on a session, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2383
|
+
readonly mcpAuthenticate: (sessionId: string, serverName: string, redirectUri: string) => Promise<RcEventWriteResult>;
|
|
2384
|
+
/** Hands one MCP server's OAuth callback to a session's worker, returning the minted request id and the sequence numbers, or the verbose failure. */
|
|
2385
|
+
readonly mcpOAuthCallbackUrl: (sessionId: string, serverName: string, callbackUrl: string) => Promise<RcEventWriteResult>;
|
|
2386
|
+
/** Sends one teleport marker into a session over the teleport-events channel, returning the sequence numbers the service assigned, or the verbose failure. */
|
|
2387
|
+
readonly teleport: (sessionId: string, marker: string) => Promise<RcEventWriteResult>;
|
|
2209
2388
|
}
|
|
2210
2389
|
/** Builds the control client: every request presents the control token, and a non-2xx answer becomes the verbose message the door sent with it. */
|
|
2211
2390
|
declare function frontDoorRcControl(transport: RcControlTransport, token: string): FrontDoorRcControl;
|
|
@@ -2280,6 +2459,28 @@ interface RcApiDeps {
|
|
|
2280
2459
|
readonly setModel: (sessionId: string, model: string) => Promise<RcEventWriteResult>;
|
|
2281
2460
|
/** The set-permission-mode operation, already wired to the tracker and the door's API-host dial. */
|
|
2282
2461
|
readonly setPermissionMode: (sessionId: string, mode: RcPermissionMode) => Promise<RcEventWriteResult>;
|
|
2462
|
+
/** The end-session operation, already wired to the tracker and the door's API-host dial. */
|
|
2463
|
+
readonly endSession: (sessionId: string, reason: string | undefined) => Promise<RcEventWriteResult>;
|
|
2464
|
+
/** The get-usage operation, already wired to the tracker and the door's API-host dial. */
|
|
2465
|
+
readonly getUsage: (sessionId: string, skipBehaviors: boolean | undefined) => Promise<RcEventWriteResult>;
|
|
2466
|
+
/** The get-context-usage operation, already wired to the tracker and the door's API-host dial. */
|
|
2467
|
+
readonly getContextUsage: (sessionId: string, detail: RcContextUsageDetail | undefined) => Promise<RcEventWriteResult>;
|
|
2468
|
+
/** The read-file operation, already wired to the tracker and the door's API-host dial. */
|
|
2469
|
+
readonly readFile: (sessionId: string, path: string, options: RcReadFileOptions | undefined) => Promise<RcEventWriteResult>;
|
|
2470
|
+
/** The file-suggestions operation, already wired to the tracker and the door's API-host dial. */
|
|
2471
|
+
readonly fileSuggestions: (sessionId: string, query: string) => Promise<RcEventWriteResult>;
|
|
2472
|
+
/** The keep-alive operation, already wired to the tracker and the door's API-host dial. */
|
|
2473
|
+
readonly keepAlive: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2474
|
+
/** The mcp-status operation, already wired to the tracker and the door's API-host dial. */
|
|
2475
|
+
readonly mcpStatus: (sessionId: string) => Promise<RcEventWriteResult>;
|
|
2476
|
+
/** The mcp-reconnect operation, already wired to the tracker and the door's API-host dial. */
|
|
2477
|
+
readonly mcpReconnect: (sessionId: string, serverName: string) => Promise<RcEventWriteResult>;
|
|
2478
|
+
/** The mcp-authenticate operation, already wired to the tracker and the door's API-host dial. */
|
|
2479
|
+
readonly mcpAuthenticate: (sessionId: string, serverName: string, redirectUri: string) => Promise<RcEventWriteResult>;
|
|
2480
|
+
/** The mcp-oauth-callback-url operation, already wired to the tracker and the door's API-host dial. */
|
|
2481
|
+
readonly mcpOAuthCallbackUrl: (sessionId: string, serverName: string, callbackUrl: string) => Promise<RcEventWriteResult>;
|
|
2482
|
+
/** The teleport operation, already wired to the tracker and the door's API-host dial. */
|
|
2483
|
+
readonly teleport: (sessionId: string, marker: string) => Promise<RcEventWriteResult>;
|
|
2283
2484
|
/** The client attachment's fan-out, whose events the subscription yields. */
|
|
2284
2485
|
readonly fanout: RcEventFanout;
|
|
2285
2486
|
}
|
|
@@ -2355,6 +2556,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
2355
2556
|
session: zod.ZodString;
|
|
2356
2557
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2357
2558
|
session: zod.ZodString;
|
|
2559
|
+
request: zod.ZodString;
|
|
2358
2560
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2359
2561
|
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2360
2562
|
setModel: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
@@ -2362,6 +2564,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
2362
2564
|
model: zod.ZodString;
|
|
2363
2565
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2364
2566
|
session: zod.ZodString;
|
|
2567
|
+
request: zod.ZodString;
|
|
2365
2568
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2366
2569
|
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2367
2570
|
setPermissionMode: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
@@ -2374,6 +2577,101 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
2374
2577
|
dontAsk: "dontAsk";
|
|
2375
2578
|
auto: "auto";
|
|
2376
2579
|
}>;
|
|
2580
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2581
|
+
session: zod.ZodString;
|
|
2582
|
+
request: zod.ZodString;
|
|
2583
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2584
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2585
|
+
endSession: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2586
|
+
session: zod.ZodString;
|
|
2587
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
2588
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2589
|
+
session: zod.ZodString;
|
|
2590
|
+
request: zod.ZodString;
|
|
2591
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2592
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2593
|
+
getUsage: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2594
|
+
session: zod.ZodString;
|
|
2595
|
+
skipBehaviors: zod.ZodOptional<zod.ZodBoolean>;
|
|
2596
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2597
|
+
session: zod.ZodString;
|
|
2598
|
+
request: zod.ZodString;
|
|
2599
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2600
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2601
|
+
getContextUsage: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2602
|
+
session: zod.ZodString;
|
|
2603
|
+
detail: zod.ZodOptional<zod.ZodEnum<{
|
|
2604
|
+
summary: "summary";
|
|
2605
|
+
full: "full";
|
|
2606
|
+
}>>;
|
|
2607
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2608
|
+
session: zod.ZodString;
|
|
2609
|
+
request: zod.ZodString;
|
|
2610
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2611
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2612
|
+
readFile: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2613
|
+
session: zod.ZodString;
|
|
2614
|
+
path: zod.ZodString;
|
|
2615
|
+
maxBytes: zod.ZodOptional<zod.ZodNumber>;
|
|
2616
|
+
encoding: zod.ZodOptional<zod.ZodEnum<{
|
|
2617
|
+
"utf-8": "utf-8";
|
|
2618
|
+
base64: "base64";
|
|
2619
|
+
}>>;
|
|
2620
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2621
|
+
session: zod.ZodString;
|
|
2622
|
+
request: zod.ZodString;
|
|
2623
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2624
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2625
|
+
fileSuggestions: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2626
|
+
session: zod.ZodString;
|
|
2627
|
+
query: zod.ZodString;
|
|
2628
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2629
|
+
session: zod.ZodString;
|
|
2630
|
+
request: zod.ZodString;
|
|
2631
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2632
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2633
|
+
keepAlive: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2634
|
+
session: zod.ZodString;
|
|
2635
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2636
|
+
session: zod.ZodString;
|
|
2637
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2638
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2639
|
+
mcpStatus: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2640
|
+
session: zod.ZodString;
|
|
2641
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2642
|
+
session: zod.ZodString;
|
|
2643
|
+
request: zod.ZodString;
|
|
2644
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2645
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2646
|
+
mcpReconnect: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2647
|
+
session: zod.ZodString;
|
|
2648
|
+
serverName: zod.ZodString;
|
|
2649
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2650
|
+
session: zod.ZodString;
|
|
2651
|
+
request: zod.ZodString;
|
|
2652
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2653
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2654
|
+
mcpAuthenticate: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2655
|
+
session: zod.ZodString;
|
|
2656
|
+
serverName: zod.ZodString;
|
|
2657
|
+
redirectUri: zod.ZodString;
|
|
2658
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2659
|
+
session: zod.ZodString;
|
|
2660
|
+
request: zod.ZodString;
|
|
2661
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2662
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2663
|
+
mcpOAuthCallbackUrl: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2664
|
+
session: zod.ZodString;
|
|
2665
|
+
serverName: zod.ZodString;
|
|
2666
|
+
callbackUrl: zod.ZodString;
|
|
2667
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2668
|
+
session: zod.ZodString;
|
|
2669
|
+
request: zod.ZodString;
|
|
2670
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
2671
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
2672
|
+
teleport: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
2673
|
+
session: zod.ZodString;
|
|
2674
|
+
marker: zod.ZodString;
|
|
2377
2675
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
2378
2676
|
session: zod.ZodString;
|
|
2379
2677
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
@@ -4573,6 +4871,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
4573
4871
|
session: zod.ZodString;
|
|
4574
4872
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4575
4873
|
session: zod.ZodString;
|
|
4874
|
+
request: zod.ZodString;
|
|
4576
4875
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4577
4876
|
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4578
4877
|
setModel: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
@@ -4580,6 +4879,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
4580
4879
|
model: zod.ZodString;
|
|
4581
4880
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4582
4881
|
session: zod.ZodString;
|
|
4882
|
+
request: zod.ZodString;
|
|
4583
4883
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4584
4884
|
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4585
4885
|
setPermissionMode: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
@@ -4592,6 +4892,101 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
4592
4892
|
dontAsk: "dontAsk";
|
|
4593
4893
|
auto: "auto";
|
|
4594
4894
|
}>;
|
|
4895
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4896
|
+
session: zod.ZodString;
|
|
4897
|
+
request: zod.ZodString;
|
|
4898
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4899
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4900
|
+
endSession: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4901
|
+
session: zod.ZodString;
|
|
4902
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
4903
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4904
|
+
session: zod.ZodString;
|
|
4905
|
+
request: zod.ZodString;
|
|
4906
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4907
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4908
|
+
getUsage: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4909
|
+
session: zod.ZodString;
|
|
4910
|
+
skipBehaviors: zod.ZodOptional<zod.ZodBoolean>;
|
|
4911
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4912
|
+
session: zod.ZodString;
|
|
4913
|
+
request: zod.ZodString;
|
|
4914
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4915
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4916
|
+
getContextUsage: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4917
|
+
session: zod.ZodString;
|
|
4918
|
+
detail: zod.ZodOptional<zod.ZodEnum<{
|
|
4919
|
+
summary: "summary";
|
|
4920
|
+
full: "full";
|
|
4921
|
+
}>>;
|
|
4922
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4923
|
+
session: zod.ZodString;
|
|
4924
|
+
request: zod.ZodString;
|
|
4925
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4926
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4927
|
+
readFile: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4928
|
+
session: zod.ZodString;
|
|
4929
|
+
path: zod.ZodString;
|
|
4930
|
+
maxBytes: zod.ZodOptional<zod.ZodNumber>;
|
|
4931
|
+
encoding: zod.ZodOptional<zod.ZodEnum<{
|
|
4932
|
+
"utf-8": "utf-8";
|
|
4933
|
+
base64: "base64";
|
|
4934
|
+
}>>;
|
|
4935
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4936
|
+
session: zod.ZodString;
|
|
4937
|
+
request: zod.ZodString;
|
|
4938
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4939
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4940
|
+
fileSuggestions: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4941
|
+
session: zod.ZodString;
|
|
4942
|
+
query: zod.ZodString;
|
|
4943
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4944
|
+
session: zod.ZodString;
|
|
4945
|
+
request: zod.ZodString;
|
|
4946
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4947
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4948
|
+
keepAlive: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4949
|
+
session: zod.ZodString;
|
|
4950
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4951
|
+
session: zod.ZodString;
|
|
4952
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4953
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4954
|
+
mcpStatus: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4955
|
+
session: zod.ZodString;
|
|
4956
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4957
|
+
session: zod.ZodString;
|
|
4958
|
+
request: zod.ZodString;
|
|
4959
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4960
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4961
|
+
mcpReconnect: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4962
|
+
session: zod.ZodString;
|
|
4963
|
+
serverName: zod.ZodString;
|
|
4964
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4965
|
+
session: zod.ZodString;
|
|
4966
|
+
request: zod.ZodString;
|
|
4967
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4968
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4969
|
+
mcpAuthenticate: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4970
|
+
session: zod.ZodString;
|
|
4971
|
+
serverName: zod.ZodString;
|
|
4972
|
+
redirectUri: zod.ZodString;
|
|
4973
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4974
|
+
session: zod.ZodString;
|
|
4975
|
+
request: zod.ZodString;
|
|
4976
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4977
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4978
|
+
mcpOAuthCallbackUrl: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4979
|
+
session: zod.ZodString;
|
|
4980
|
+
serverName: zod.ZodString;
|
|
4981
|
+
callbackUrl: zod.ZodString;
|
|
4982
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4983
|
+
session: zod.ZodString;
|
|
4984
|
+
request: zod.ZodString;
|
|
4985
|
+
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
4986
|
+
}, zod_v4_core.$strict>, Record<never, never>, Record<never, never>>;
|
|
4987
|
+
teleport: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<DoorApiContext & Record<never, never>, DoorApiContext, DoorApiContext>, any, zod.ZodObject<{
|
|
4988
|
+
session: zod.ZodString;
|
|
4989
|
+
marker: zod.ZodString;
|
|
4595
4990
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
4596
4991
|
session: zod.ZodString;
|
|
4597
4992
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
@@ -5845,5 +6240,5 @@ interface PrepareClaudeLaunchOptions {
|
|
|
5845
6240
|
*/
|
|
5846
6241
|
declare function prepareClaudeLaunch(options: PrepareClaudeLaunchOptions): LaunchPlan;
|
|
5847
6242
|
|
|
5848
|
-
export { AMBIENT_CREDENTIAL_VARS, CHECK_CREDENTIAL_APPLIES, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, ConfigProfileSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LaunchLifecycleEventSchema, LaunchRefusedError, LegacyProviderFileError, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PERMISSION_MODES, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcPermissionModeSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, UsageError, UsageListOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, addDirectoryRule, addIdentity, addPool, addProvider, answerRcControlRequest, buildEntryFacts, buildLayoutPaths, buildRcControlResponsePayload, buildRcEventWriteBody, buildRcInterruptPayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createEventsApiRouter, createLaunchEventPublisher, createLeafCache, createProfile, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, headroomSocketTarget, identityExists, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcPermissionMode, lateRcEventDial, lateRcStreamDial, listDirectoryRules, listIdentities, listProfiles, listProviders, listUsageSnapshots, matchBranch, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcStreamEnvelope, planOf, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcObserverAsPassthrough, rcSelfHostFromEnv, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readDirectoryRules, readFarmManifest, readGlobalConfig, readIdentity, readPools, readProfile, readProvider, readRcSelfHostRecord, readUsageSnapshot, realConnectCertStore, realConnectEffects, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, recoverFarm, recoveryDiagnostics, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveDecisions, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runDoctor, runFrontDoorSupervisor, runLauncher, runSupervisor, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setPool, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, snapshotPath, spawnClaude, startConnectServer, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, writeDirectoryRules };
|
|
5849
|
-
export type { AddDirectoryRuleOptions, AddProviderInput, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigProfile, ConnectCertStore, ConnectEffects, ConnectLimits, ConnectLocalSurface, ConnectServerConfig, ConnectServerHandle, ConnectTarget, ControlApiClient, ControlApiDeps, ControlApiRouter, Credential, CredentialSource, Decision, Diagnostic, DirectoryRule, DirectoryRules, DoctorReport, DoorApiClient, DoorApiContext, DoorApiDeps, DoorApiRouter, DoorEvent, DoorEventHub, DoorEventPublisher, DoorEventStream, DoorEventsApiDeps, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, InjectedCredential, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, Layer, LayerId, LayoutPaths, LeafCert, NestedContribution, PlanClass, Pool, PoolMember, PoolPickReport, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, RecoverFarmParams, RecoveryResult, ResolveDecisionsInput, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation };
|
|
6243
|
+
export { AMBIENT_CREDENTIAL_VARS, CHECK_CREDENTIAL_APPLIES, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, ConfigProfileSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LaunchLifecycleEventSchema, LaunchRefusedError, LegacyProviderFileError, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, RC_CONTEXT_USAGE_DETAILS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PERMISSION_MODES, RC_READ_FILE_ENCODINGS, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcPermissionModeSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, UsageError, UsageListOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, addDirectoryRule, addIdentity, addPool, addProvider, answerRcControlRequest, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createEventsApiRouter, createLaunchEventPublisher, createLeafCache, createProfile, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, listDirectoryRules, listIdentities, listProfiles, listProviders, listUsageSnapshots, matchBranch, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcStreamEnvelope, planOf, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcObserverAsPassthrough, rcSelfHostFromEnv, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readDirectoryRules, readFarmManifest, readGlobalConfig, readIdentity, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readUsageSnapshot, realConnectCertStore, realConnectEffects, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, reconnectRcSessionMcpServer, recoverFarm, recoveryDiagnostics, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveDecisions, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runDoctor, runFrontDoorSupervisor, runLauncher, runSupervisor, sendRcKeepAlive, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setPool, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, writeDirectoryRules };
|
|
6244
|
+
export type { AddDirectoryRuleOptions, AddProviderInput, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigProfile, ConnectCertStore, ConnectEffects, ConnectLimits, ConnectLocalSurface, ConnectServerConfig, ConnectServerHandle, ConnectTarget, ControlApiClient, ControlApiDeps, ControlApiRouter, Credential, CredentialSource, Decision, Diagnostic, DirectoryRule, DirectoryRules, DoctorReport, DoorApiClient, DoorApiContext, DoorApiDeps, DoorApiRouter, DoorEvent, DoorEventHub, DoorEventPublisher, DoorEventStream, DoorEventsApiDeps, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, InjectedCredential, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, Layer, LayerId, LayoutPaths, LeafCert, NestedContribution, PlanClass, Pool, PoolMember, PoolPickReport, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, RecoverFarmParams, RecoveryResult, ResolveDecisionsInput, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation };
|