claude-use 11.87.4 → 11.88.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.
@@ -6931,6 +6931,231 @@ interface RcCredentialStore {
6931
6931
  /** Creates the credential store over one directory: one owner-only JSON file per session id. */
6932
6932
  declare function createRcCredentialStore(fs: FarmFs, dir: string): RcCredentialStore;
6933
6933
 
6934
+ /** Why the tracker stopped describing a session: its liveness bound passed with no traffic, an accepted archive ended it by design, or the service closed it with a conflict header. */
6935
+ declare const RC_SESSION_END_REASONS: readonly ["expired", "archived", "conflict"];
6936
+ /** Why a control request stopped awaiting an answer: a `control_response` answered it (whoever sent it), its answer deadline passed, or its session ended with it still outstanding. */
6937
+ declare const RC_PENDING_RETIRE_REASONS: readonly ["answered", "expired", "session-ended"];
6938
+ /** One reason a session ended. */
6939
+ type RcSessionEndReason = (typeof RC_SESSION_END_REASONS)[number];
6940
+ /** One reason a pending request retired. */
6941
+ type RcPendingRetireReason = (typeof RC_PENDING_RETIRE_REASONS)[number];
6942
+ /** One transition as the tracker hands it to the log's sink, before the log stamps it. */
6943
+ declare const RcSessionTransitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6944
+ session: z.ZodString;
6945
+ at: z.ZodNumber;
6946
+ kind: z.ZodLiteral<"session-appeared">;
6947
+ }, z.core.$strict>, z.ZodObject<{
6948
+ session: z.ZodString;
6949
+ at: z.ZodNumber;
6950
+ kind: z.ZodLiteral<"session-ended">;
6951
+ reason: z.ZodEnum<{
6952
+ expired: "expired";
6953
+ archived: "archived";
6954
+ conflict: "conflict";
6955
+ }>;
6956
+ }, z.core.$strict>, z.ZodObject<{
6957
+ session: z.ZodString;
6958
+ at: z.ZodNumber;
6959
+ kind: z.ZodLiteral<"worker-state">;
6960
+ state: z.ZodString;
6961
+ previous: z.ZodOptional<z.ZodString>;
6962
+ }, z.core.$strict>, z.ZodObject<{
6963
+ session: z.ZodString;
6964
+ at: z.ZodNumber;
6965
+ kind: z.ZodLiteral<"pending-born">;
6966
+ requestId: z.ZodString;
6967
+ type: z.ZodString;
6968
+ summary: z.ZodString;
6969
+ }, z.core.$strict>, z.ZodObject<{
6970
+ session: z.ZodString;
6971
+ at: z.ZodNumber;
6972
+ kind: z.ZodLiteral<"pending-retired">;
6973
+ requestId: z.ZodString;
6974
+ reason: z.ZodEnum<{
6975
+ expired: "expired";
6976
+ "session-ended": "session-ended";
6977
+ answered: "answered";
6978
+ }>;
6979
+ }, z.core.$strict>], "kind">;
6980
+ /** One transition as the tracker hands it to the log's sink. */
6981
+ type RcSessionTransition = z.output<typeof RcSessionTransitionSchema>;
6982
+ /**
6983
+ * How many events the log retains before it evicts the oldest: as many of the largest possible events as its memory budget holds, which bounds the log's memory whatever mix of events fills it. The budget is the protocol's own documented cap on one event batch (`CONTROL_BODY_CAP_BYTES`), which the door already buffers in full for one control request: the supervision log is a digest of many such batches, so holding no more than one batch's worth keeps it within a bound the door already accepts.
6984
+ */
6985
+ declare const RC_SESSION_EVENT_LOG_CAPACITY: number;
6986
+ /** One recorded event: a transition with the cursor and sequence the log stamped on it. */
6987
+ declare const RcSessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6988
+ session: z.ZodString;
6989
+ at: z.ZodNumber;
6990
+ kind: z.ZodLiteral<"session-appeared">;
6991
+ cursor: z.ZodString;
6992
+ sequence: z.ZodInt;
6993
+ }, z.core.$strict>, z.ZodObject<{
6994
+ session: z.ZodString;
6995
+ at: z.ZodNumber;
6996
+ kind: z.ZodLiteral<"session-ended">;
6997
+ reason: z.ZodEnum<{
6998
+ expired: "expired";
6999
+ archived: "archived";
7000
+ conflict: "conflict";
7001
+ }>;
7002
+ cursor: z.ZodString;
7003
+ sequence: z.ZodInt;
7004
+ }, z.core.$strict>, z.ZodObject<{
7005
+ session: z.ZodString;
7006
+ at: z.ZodNumber;
7007
+ kind: z.ZodLiteral<"worker-state">;
7008
+ state: z.ZodString;
7009
+ previous: z.ZodOptional<z.ZodString>;
7010
+ cursor: z.ZodString;
7011
+ sequence: z.ZodInt;
7012
+ }, z.core.$strict>, z.ZodObject<{
7013
+ session: z.ZodString;
7014
+ at: z.ZodNumber;
7015
+ kind: z.ZodLiteral<"pending-born">;
7016
+ requestId: z.ZodString;
7017
+ type: z.ZodString;
7018
+ summary: z.ZodString;
7019
+ cursor: z.ZodString;
7020
+ sequence: z.ZodInt;
7021
+ }, z.core.$strict>, z.ZodObject<{
7022
+ session: z.ZodString;
7023
+ at: z.ZodNumber;
7024
+ kind: z.ZodLiteral<"pending-retired">;
7025
+ requestId: z.ZodString;
7026
+ reason: z.ZodEnum<{
7027
+ expired: "expired";
7028
+ "session-ended": "session-ended";
7029
+ answered: "answered";
7030
+ }>;
7031
+ cursor: z.ZodString;
7032
+ sequence: z.ZodInt;
7033
+ }, z.core.$strict>], "kind">;
7034
+ /** One recorded event, as every in-process consumer handles it. */
7035
+ type RcSessionEvent = z.output<typeof RcSessionEventSchema>;
7036
+ /** What one read asks for: the events after `since` (from the oldest retained when omitted), optionally one session's alone, at most `limit` of them. */
7037
+ declare const RcSessionEventsReadInputSchema: z.ZodObject<{
7038
+ since: z.ZodOptional<z.ZodString>;
7039
+ session: z.ZodOptional<z.ZodString>;
7040
+ limit: z.ZodOptional<z.ZodInt>;
7041
+ }, z.core.$strict>;
7042
+ /** What one read asks for. */
7043
+ type RcSessionEventsReadInput = z.output<typeof RcSessionEventsReadInputSchema>;
7044
+ /**
7045
+ * What one page read asks for over the typed API: the log's own read, with the page size defaulted and capped so a caller naming none still receives a bounded answer. A page answer lands whole in its reader's memory (an agent's context, through the MCP tool), so an unbounded default would hand it the whole window.
7046
+ */
7047
+ declare const RcSessionEventsPageInputSchema: z.ZodObject<{
7048
+ since: z.ZodOptional<z.ZodString>;
7049
+ session: z.ZodOptional<z.ZodString>;
7050
+ limit: z.ZodDefault<z.ZodInt>;
7051
+ }, z.core.$strict>;
7052
+ /** The query the event stream takes: where to resume (the SSE `Last-Event-ID` header outranks it on a reconnect) and an optional session filter. */
7053
+ declare const RcSessionEventsStreamInputSchema: z.ZodObject<{
7054
+ session: z.ZodOptional<z.ZodString>;
7055
+ since: z.ZodOptional<z.ZodString>;
7056
+ }, z.core.$strict>;
7057
+ /**
7058
+ * One read's answer. `ok` carries the events in order and the cursor the next read resumes after (the last event returned, or the head when the read reached it, so a filtered read never rescans what it already passed), with `more` saying whether the limit cut the answer short and `head` naming the newest event whatever the filter and limit, the cursor a follower that has just read the status starts after. `expired` says the cursor can no longer be honoured and names the head to resume after once the status read has restated the present.
7059
+ */
7060
+ declare const RcSessionEventsReadOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7061
+ status: z.ZodLiteral<"ok">;
7062
+ events: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7063
+ session: z.ZodString;
7064
+ at: z.ZodNumber;
7065
+ kind: z.ZodLiteral<"session-appeared">;
7066
+ cursor: z.ZodString;
7067
+ sequence: z.ZodInt;
7068
+ }, z.core.$strict>, z.ZodObject<{
7069
+ session: z.ZodString;
7070
+ at: z.ZodNumber;
7071
+ kind: z.ZodLiteral<"session-ended">;
7072
+ reason: z.ZodEnum<{
7073
+ expired: "expired";
7074
+ archived: "archived";
7075
+ conflict: "conflict";
7076
+ }>;
7077
+ cursor: z.ZodString;
7078
+ sequence: z.ZodInt;
7079
+ }, z.core.$strict>, z.ZodObject<{
7080
+ session: z.ZodString;
7081
+ at: z.ZodNumber;
7082
+ kind: z.ZodLiteral<"worker-state">;
7083
+ state: z.ZodString;
7084
+ previous: z.ZodOptional<z.ZodString>;
7085
+ cursor: z.ZodString;
7086
+ sequence: z.ZodInt;
7087
+ }, z.core.$strict>, z.ZodObject<{
7088
+ session: z.ZodString;
7089
+ at: z.ZodNumber;
7090
+ kind: z.ZodLiteral<"pending-born">;
7091
+ requestId: z.ZodString;
7092
+ type: z.ZodString;
7093
+ summary: z.ZodString;
7094
+ cursor: z.ZodString;
7095
+ sequence: z.ZodInt;
7096
+ }, z.core.$strict>, z.ZodObject<{
7097
+ session: z.ZodString;
7098
+ at: z.ZodNumber;
7099
+ kind: z.ZodLiteral<"pending-retired">;
7100
+ requestId: z.ZodString;
7101
+ reason: z.ZodEnum<{
7102
+ expired: "expired";
7103
+ "session-ended": "session-ended";
7104
+ answered: "answered";
7105
+ }>;
7106
+ cursor: z.ZodString;
7107
+ sequence: z.ZodInt;
7108
+ }, z.core.$strict>], "kind">>>;
7109
+ cursor: z.ZodString;
7110
+ more: z.ZodBoolean;
7111
+ head: z.ZodString;
7112
+ }, z.core.$strict>, z.ZodObject<{
7113
+ status: z.ZodLiteral<"expired">;
7114
+ message: z.ZodString;
7115
+ head: z.ZodString;
7116
+ }, z.core.$strict>], "status">;
7117
+ /** One read's answer. */
7118
+ type RcSessionEventsRead = z.output<typeof RcSessionEventsReadOutputSchema>;
7119
+ /** Everything the log needs, injected so its behaviour runs against fixed values in tests. */
7120
+ interface RcSessionEventLogDeps {
7121
+ /** This door generation's identity, minted once per process (a v4 UUID in production): a cursor names it, so a cursor from another generation is refused rather than misread as a position in this one. Must not contain the cursor separator. */
7122
+ readonly generation: string;
7123
+ /** How many events the log retains; production passes `RC_SESSION_EVENT_LOG_CAPACITY`, tests pass small values so an eviction is reached in a few appends. */
7124
+ readonly capacity: number;
7125
+ }
7126
+ /** The door's supervision log. */
7127
+ interface RcSessionEventLog {
7128
+ /** The tracker's sink: records one transition at the next sequence and tells every waiting follower. Synchronous, so the log's order is the order the tracker filed its facts in. */
7129
+ readonly append: (transition: RcSessionTransition) => void;
7130
+ /** The cursor naming the newest recorded event (sequence 0 of this generation while none has been recorded): where a subscriber that has just read the status resumes after. */
7131
+ readonly head: () => string;
7132
+ /** Reads the events after a cursor, or answers that the cursor has expired. */
7133
+ readonly read: (input: Readonly<RcSessionEventsReadInput>) => RcSessionEventsRead;
7134
+ /** Adds a listener told after every append and once on close, which a follower waits on instead of polling. Returns the detach function. */
7135
+ readonly onAppend: (listener: () => void) => () => void;
7136
+ /** Ends every follower: each returns once it has yielded what it already read. The recorded events stay readable, and an append after the close is still recorded; only following ends. Idempotent. */
7137
+ readonly close: () => void;
7138
+ /** Whether `close` has been called, which a follower checks on every wake. */
7139
+ readonly closed: () => boolean;
7140
+ }
7141
+ /** Creates the log. One per door process; everything it holds dies with it. Throws when the generation id is longer than a UUID or contains the cursor separator, since either would make a cursor ambiguous or unbounded. */
7142
+ declare function createRcSessionEventLog(deps: RcSessionEventLogDeps): RcSessionEventLog;
7143
+ /** Thrown by `followRcSessionEvents` when the cursor it resumes from, or one it reached itself because its consumer fell further behind than the log retains, can no longer be honoured. */
7144
+ declare class RcSessionEventCursorExpiredError extends Error {
7145
+ /** The cursor naming the log's newest event at the moment of the refusal: where to resume after once the status read has restated the present. */
7146
+ readonly head: string;
7147
+ constructor(message: string, head: string);
7148
+ }
7149
+ /**
7150
+ * Follows the log as an async iterator: yields every event after `since` (after the head at the moment of this call when omitted, so a fresh follower sees only what happens next), optionally one session's alone, then waits on the log's own append notification for each further event, never polling. The start is fixed when the follower is created, not when it is first pulled, so a consumer that subscribes and pulls later (a stream response whose first pull runs after its request has landed) still sees every event appended in between.
7151
+ *
7152
+ * Throws `RcSessionEventCursorExpiredError` when the cursor cannot be honoured, at the start or later if the consumer falls further behind than the log retains. Rejects with the signal's reason once `signal` aborts, the way an aborted fetch rejects. Returns once the log is closed.
7153
+ */
7154
+ declare function followRcSessionEvents(log: RcSessionEventLog, input: Readonly<{
7155
+ since?: string | undefined;
7156
+ session?: string | undefined;
7157
+ }>, signal?: AbortSignal): AsyncGenerator<RcSessionEvent, void>;
7158
+
6934
7159
  /**
6935
7160
  * The Zod schemas of the Remote Control surfaces: one definition each for the summaries, statuses and pending lists the tracker produces, the stream events the door's client attachment fans out, and every input and output the typed API accepts. The tracker's own TypeScript interfaces in `rcSessions.ts` stay the implementations' types; these schemas are what the oRPC contract validates through, and because the procedures wrap the very operations that produce those interfaces' values, a drift between a schema and its interface fails the API's own output validation (exercised by its tests) rather than shipping silently. This module deliberately imports nothing from oRPC: it is a plain Zod leaf, so the tracker and the stream half can share it without either depending on the API layer.
6936
7161
  */
@@ -7186,6 +7411,10 @@ interface RcSessionTrackerDeps {
7186
7411
  * Where the observed client credential outlives this process. The worker's recurring calls carry the worker JWT, so a door generation that starts after a session's create observes nothing that states the OAuth bearer until some client-half call crosses; the store is what lets that generation still attach (and write). Absent, the credential is in memory only, exactly as it was before the store existed.
7187
7412
  */
7188
7413
  readonly credentialStore?: RcCredentialStore;
7414
+ /** Where each transition a supervisor acts on is handed as the tracker files the fact behind it (a session appearing or ending, its worker state changing, a pending request born or retired): the door's session event log (`rcEventLog.ts`). Absent, the tracker records the same facts and tells no one. */
7415
+ readonly onTransition?: (transition: RcSessionTransition) => void;
7416
+ /** Told when the tracker closes, so whatever its transitions feed stops waiting for more: the door's session event log ends its followers here. */
7417
+ readonly onClose?: () => void;
7189
7418
  }
7190
7419
  /** The live record of observed Remote Control sessions. */
7191
7420
  interface RcSessionTracker {
@@ -7211,7 +7440,7 @@ interface RcSessionTracker {
7211
7440
  readonly liveTasksOf: (sessionId?: string) => readonly LiveTask[];
7212
7441
  /** Retires one pending control request as answered: what a successful answer write calls, so the request stops being listed the moment it is answered. */
7213
7442
  readonly completePending: (sessionId: string, requestId: string) => void;
7214
- /** Stops the idle sweep timer. The entries themselves are unreachable the moment the door drops them. */
7443
+ /** Stops the idle sweep timer and tells the transition sink's owner (`onClose`) that no more transitions follow. The entries themselves are unreachable the moment the door drops them. */
7215
7444
  readonly close: () => void;
7216
7445
  }
7217
7446
  /** Creates the tracker. One per door process; everything it holds dies with it. */
@@ -15482,6 +15711,93 @@ declare function createAgentTreesApiRouter(deps: AgentTreesApiDeps): {
15482
15711
  /** The agent trees router, as the merged mount's and the client's own types are derived from it. */
15483
15712
  type AgentTreesApiRouter = ReturnType<typeof createAgentTreesApiRouter>;
15484
15713
 
15714
+ /**
15715
+ * The typed API's surface over the door's session event log (`rcEventLog.ts`): one subscription across every observed Remote Control session, so a supervisor of many sessions follows their appearances and endings, worker state changes and pending-request births and retirements without polling `rc.status` or holding one subscription per session.
15716
+ *
15717
+ * `rcSessions.events` streams the log as Server-Sent Events, each event's cursor its SSE id, so a consumer's reconnect resumes with the protocol's own `Last-Event-ID` rule (or the `since` query, which the header outranks because it is the fresher statement of what the consumer saw). `rcSessions.eventsPage` reads the same log as cursor-paged JSON, the form a consumer that cannot hold a stream open uses (an MCP tool above all, since the MCP adapter skips streaming operations). Either way a cursor the log can no longer honour fails loudly: the stream refuses with `GONE`, the page answers `status: "expired"`, each naming the head to resume after once `rc.status` has restated the present.
15718
+ *
15719
+ * Mounted by `controlApi.ts` beside the Remote Control router on the one prefix and token every typed door procedure shares, and tagged `remote-control` so the OpenAPI document groups it with the rest of that surface.
15720
+ */
15721
+ /** Everything the session events surface needs: the token every typed door procedure demands, and the log it reads. */
15722
+ interface RcSessionEventsApiDeps {
15723
+ /** This generation's control token: the same value the Remote Control router checks, since one mount serves both. */
15724
+ readonly expectedToken: string;
15725
+ /** The door's session event log, fed by the tracker's transitions. */
15726
+ readonly sessionEvents: RcSessionEventLog;
15727
+ }
15728
+ /** Builds the session events router: one stream and one page read, behind the control-token middleware. */
15729
+ declare function createRcSessionEventsApiRouter(deps: RcSessionEventsApiDeps): {
15730
+ rcSessions: {
15731
+ events: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
15732
+ session: zod.ZodOptional<zod.ZodString>;
15733
+ since: zod.ZodOptional<zod.ZodString>;
15734
+ }, zod_v4_core.$strict>, any, MergedErrorMap<$ErrorMap, TErrorMap>>;
15735
+ eventsPage: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
15736
+ since: zod.ZodOptional<zod.ZodString>;
15737
+ session: zod.ZodOptional<zod.ZodString>;
15738
+ limit: zod.ZodDefault<zod.ZodInt>;
15739
+ }, zod_v4_core.$strict>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
15740
+ status: zod.ZodLiteral<"ok">;
15741
+ events: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
15742
+ session: zod.ZodString;
15743
+ at: zod.ZodNumber;
15744
+ kind: zod.ZodLiteral<"session-appeared">;
15745
+ cursor: zod.ZodString;
15746
+ sequence: zod.ZodInt;
15747
+ }, zod_v4_core.$strict>, zod.ZodObject<{
15748
+ session: zod.ZodString;
15749
+ at: zod.ZodNumber;
15750
+ kind: zod.ZodLiteral<"session-ended">;
15751
+ reason: zod.ZodEnum<{
15752
+ expired: "expired";
15753
+ archived: "archived";
15754
+ conflict: "conflict";
15755
+ }>;
15756
+ cursor: zod.ZodString;
15757
+ sequence: zod.ZodInt;
15758
+ }, zod_v4_core.$strict>, zod.ZodObject<{
15759
+ session: zod.ZodString;
15760
+ at: zod.ZodNumber;
15761
+ kind: zod.ZodLiteral<"worker-state">;
15762
+ state: zod.ZodString;
15763
+ previous: zod.ZodOptional<zod.ZodString>;
15764
+ cursor: zod.ZodString;
15765
+ sequence: zod.ZodInt;
15766
+ }, zod_v4_core.$strict>, zod.ZodObject<{
15767
+ session: zod.ZodString;
15768
+ at: zod.ZodNumber;
15769
+ kind: zod.ZodLiteral<"pending-born">;
15770
+ requestId: zod.ZodString;
15771
+ type: zod.ZodString;
15772
+ summary: zod.ZodString;
15773
+ cursor: zod.ZodString;
15774
+ sequence: zod.ZodInt;
15775
+ }, zod_v4_core.$strict>, zod.ZodObject<{
15776
+ session: zod.ZodString;
15777
+ at: zod.ZodNumber;
15778
+ kind: zod.ZodLiteral<"pending-retired">;
15779
+ requestId: zod.ZodString;
15780
+ reason: zod.ZodEnum<{
15781
+ expired: "expired";
15782
+ "session-ended": "session-ended";
15783
+ answered: "answered";
15784
+ }>;
15785
+ cursor: zod.ZodString;
15786
+ sequence: zod.ZodInt;
15787
+ }, zod_v4_core.$strict>], "kind">>>;
15788
+ cursor: zod.ZodString;
15789
+ more: zod.ZodBoolean;
15790
+ head: zod.ZodString;
15791
+ }, zod_v4_core.$strict>, zod.ZodObject<{
15792
+ status: zod.ZodLiteral<"expired">;
15793
+ message: zod.ZodString;
15794
+ head: zod.ZodString;
15795
+ }, zod_v4_core.$strict>], "status">, MergedErrorMap<$ErrorMap, TErrorMap>>;
15796
+ };
15797
+ };
15798
+ /** The session events router, as the merged mount's and a consumer's own types are derived from it. */
15799
+ type RcSessionEventsApiRouter = ReturnType<typeof createRcSessionEventsApiRouter>;
15800
+
15485
15801
  /**
15486
15802
  * The front door's read-only status: the data `agent-shim frontdoor status` prints and the door's own typed `frontdoor.status` procedure returns, collected without starting or stopping anything. Kept here, beside the state file and session registry it reads, so both the command layer and the typed API's schema layer share one shape and one collector with no dependency on the CLI's command wiring.
15487
15803
  */
@@ -16168,7 +16484,7 @@ type ControlApiRouter = ReturnType<typeof createControlApiRouter>;
16168
16484
  /** The control plane alone as a client sees it: every call presents the control token, over TLS trusting only the CA file the door's own state names. */
16169
16485
  type ControlApiClient = RouterClient<ControlApiRouter>;
16170
16486
  /** Everything the door's whole typed API needs: the Remote Control operations, the control-plane reads, the configuration writes and the door-wide event stream, one deps object because one mount serves them under one token. */
16171
- interface DoorApiDeps extends RcApiDeps, ControlApiDeps, ConfigApiDeps, DoorEventsApiDeps, LifecycleApiDeps, CodexApiDeps, LaunchApiDeps, AgentTreesApiDeps {
16487
+ interface DoorApiDeps extends RcApiDeps, RcSessionEventsApiDeps, ControlApiDeps, ConfigApiDeps, DoorEventsApiDeps, LifecycleApiDeps, CodexApiDeps, LaunchApiDeps, AgentTreesApiDeps {
16172
16488
  }
16173
16489
  /** Builds the door's whole typed API: the Remote Control router, the control-plane routers, the configuration router and the events router beside them, one object for the one handler the provider listener mounts. */
16174
16490
  declare function createDoorApiRouter(deps: DoorApiDeps): {
@@ -21237,6 +21553,73 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
21237
21553
  stickyProblem: zod.ZodOptional<zod.ZodString>;
21238
21554
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
21239
21555
  };
21556
+ rcSessions: {
21557
+ events: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
21558
+ session: zod.ZodOptional<zod.ZodString>;
21559
+ since: zod.ZodOptional<zod.ZodString>;
21560
+ }, zod_v4_core.$strict>, any, MergedErrorMap<$ErrorMap, TErrorMap>>;
21561
+ eventsPage: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
21562
+ since: zod.ZodOptional<zod.ZodString>;
21563
+ session: zod.ZodOptional<zod.ZodString>;
21564
+ limit: zod.ZodDefault<zod.ZodInt>;
21565
+ }, zod_v4_core.$strict>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
21566
+ status: zod.ZodLiteral<"ok">;
21567
+ events: zod.ZodReadonly<zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
21568
+ session: zod.ZodString;
21569
+ at: zod.ZodNumber;
21570
+ kind: zod.ZodLiteral<"session-appeared">;
21571
+ cursor: zod.ZodString;
21572
+ sequence: zod.ZodInt;
21573
+ }, zod_v4_core.$strict>, zod.ZodObject<{
21574
+ session: zod.ZodString;
21575
+ at: zod.ZodNumber;
21576
+ kind: zod.ZodLiteral<"session-ended">;
21577
+ reason: zod.ZodEnum<{
21578
+ expired: "expired";
21579
+ archived: "archived";
21580
+ conflict: "conflict";
21581
+ }>;
21582
+ cursor: zod.ZodString;
21583
+ sequence: zod.ZodInt;
21584
+ }, zod_v4_core.$strict>, zod.ZodObject<{
21585
+ session: zod.ZodString;
21586
+ at: zod.ZodNumber;
21587
+ kind: zod.ZodLiteral<"worker-state">;
21588
+ state: zod.ZodString;
21589
+ previous: zod.ZodOptional<zod.ZodString>;
21590
+ cursor: zod.ZodString;
21591
+ sequence: zod.ZodInt;
21592
+ }, zod_v4_core.$strict>, zod.ZodObject<{
21593
+ session: zod.ZodString;
21594
+ at: zod.ZodNumber;
21595
+ kind: zod.ZodLiteral<"pending-born">;
21596
+ requestId: zod.ZodString;
21597
+ type: zod.ZodString;
21598
+ summary: zod.ZodString;
21599
+ cursor: zod.ZodString;
21600
+ sequence: zod.ZodInt;
21601
+ }, zod_v4_core.$strict>, zod.ZodObject<{
21602
+ session: zod.ZodString;
21603
+ at: zod.ZodNumber;
21604
+ kind: zod.ZodLiteral<"pending-retired">;
21605
+ requestId: zod.ZodString;
21606
+ reason: zod.ZodEnum<{
21607
+ expired: "expired";
21608
+ "session-ended": "session-ended";
21609
+ answered: "answered";
21610
+ }>;
21611
+ cursor: zod.ZodString;
21612
+ sequence: zod.ZodInt;
21613
+ }, zod_v4_core.$strict>], "kind">>>;
21614
+ cursor: zod.ZodString;
21615
+ more: zod.ZodBoolean;
21616
+ head: zod.ZodString;
21617
+ }, zod_v4_core.$strict>, zod.ZodObject<{
21618
+ status: zod.ZodLiteral<"expired">;
21619
+ message: zod.ZodString;
21620
+ head: zod.ZodString;
21621
+ }, zod_v4_core.$strict>], "status">, MergedErrorMap<$ErrorMap, TErrorMap>>;
21622
+ };
21240
21623
  rc: {
21241
21624
  list: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, InitialInputSchema, zod.ZodObject<{
21242
21625
  sessions: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
@@ -26622,7 +27005,7 @@ interface FrontDoorSupervisorPorts {
26622
27005
  */
26623
27006
  readonly startDirectListener: (source: ListenSource) => Promise<FrontDoorListenerHandle>;
26624
27007
  /**
26625
- * Stops the Remote Control stream hub: persists every live attachment's sequence cursor synchronously, then frees the dials. Called exactly once on every exit the supervisor owns, after every listener has stopped accepting. A closing exit has every listener down by then; a drain still has responses settling, which is safe because the hub refuses to attach once it is closed (otherwise the reconcile after an observed exchange would re-attach a stream the close had just ended).
27008
+ * Stops the Remote Control stream hub: persists every live attachment's sequence cursor synchronously, then frees the dials. It also closes the session tracker, which ends every session-events follower: a drain waits for every connection it carries, so a supervisor's open event stream would otherwise keep a retiring door alive for as long as the subscriber stayed connected. Called exactly once on every exit the supervisor owns, after every listener has stopped accepting. A closing exit has every listener down by then; a drain still has responses settling, which is safe because the hub refuses to attach once it is closed (otherwise the reconcile after an observed exchange would re-attach a stream the close had just ended).
26626
27009
  */
26627
27010
  readonly closeRcStreamHub: () => void;
26628
27011
  /**
@@ -27463,5 +27846,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
27463
27846
  */
27464
27847
  declare function agentShimCliPath(distDir?: string | undefined): string;
27465
27848
 
27466
- export { AMBIENT_CREDENTIAL_VARS, AgentKindSchema, AgentMetaSchema, AgentNodeSchema, AgentTreesListInputSchema, AgentTreesListOutputSchema, AgentTreesShowInputSchema, AgentTreesShowOutputSchema, CHECK_CREDENTIAL_APPLIES, CODEX_APP_SERVER_GENERATED_AGAINST, CODEX_APP_SERVER_TIMEOUT_MS, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, CodexAccountReadSchema, CodexAppServerProtocolError, CodexAppServerRequestError, CodexAppServerUnavailableError, CodexLogoutOutputSchema, CodexRateLimitsReadSchema, CodexSignInSchema, CodexStatusOutputSchema, ConfigIdentityAddInputSchema, ConfigIdentityAddOutputSchema, ConfigIdentityRemoveInputSchema, ConfigIdentityRemoveOutputSchema, ConfigIdentitySetInputSchema, ConfigIdentitySetOutputSchema, ConfigIdentityUseOutputSchema, ConfigNameInputSchema, ConfigPoolAddInputSchema, ConfigPoolAddOutputSchema, ConfigPoolRemoveInputSchema, ConfigPoolRemoveOutputSchema, ConfigPoolSetInputSchema, ConfigPoolSetOutputSchema, ConfigPoolUseOutputSchema, ConfigProfileAddInputSchema, ConfigProfileAddOutputSchema, ConfigProfileRemoveInputSchema, ConfigProfileRemoveOutputSchema, ConfigProfileSchema, ConfigProfileSetInputSchema, ConfigProfileSetOutputSchema, ConfigProfileUseOutputSchema, ConfigProviderAddInputSchema, ConfigProviderAddOutputSchema, ConfigProviderRemoveInputSchema, ConfigProviderRemoveOutputSchema, ConfigProviderSetInputSchema, ConfigProviderSetOutputSchema, ConfigRuleAddInputSchema, ConfigRuleAddOutputSchema, ConfigRuleRemoveInputSchema, ConfigRuleRemoveOutputSchema, ConfigRuleSetInputSchema, ConfigRuleSetOutputSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, CredentialSummarySchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DOOR_HEALTH_EVENT_SOURCE, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, DoorHealthEventSchema, DuplicateIdentityNameError, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorControlMaterialError, FrontDoorNotServingError, FrontDoorRestartOutputSchema, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LIVE_TASK_CAP, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, LiveTaskSchema, MergedAgentNodeSchema, MergedAgentTreeSchema, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, 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, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageChangeEventSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, WorkflowRunSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, applyAgentTaskEvent, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, changePool, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createLiveSessionRegistry, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, identityIdOf, identityNameOf, identityRecords, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, launchRequiredUpstreams, listDirectoryRules, listIdentities, listProfiles, listProviders, listSessions, listUsageSnapshots, locateSession, matchBranch, mergeLiveTasks, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readCodexAccount, readCodexRateLimits, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readIdentityById, readIdentityRecords, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readSessionAgentTree, readUsageSnapshot, realCodexAppServerPort, realConnectCertStore, realConnectEffects, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, realSessionFs, reconnectRcSessionMcpServer, recoverFarm, recoveryDiagnostics, refreshLaunchPoolUsage, refreshPoolUsage, refreshStalePoolMembers, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveClaudeLaunch, resolveDecisions, resolveLaunch, resolveLaunchSelection, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runClaudeLaunch, runDoctor, runFrontDoorSupervisor, runLaunchPlan, runLauncher, runSupervisor, sendRcKeepAlive, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, writeDirectoryRules };
27467
- export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchResolution, CodexAccountRead, CodexApiClient, CodexApiDeps, CodexApiRouter, CodexAppServerConnection, CodexAppServerPort, CodexAppServerReadOptions, CodexRateLimitsRead, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigApiDeps, ConfigApiRouter, 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, DoorHealthEvent, DoorHealthPublisher, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorControlMaterial, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, IdentityNameRead, IdentityRecord, IdentityRecordsPort, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveSessionRegistry, LiveSessionRegistryPorts, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolChange, PoolMember, PoolPickReport, PoolPolicy, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResetRow, ResetSchedule, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SessionAgentTree, SessionCommandFs, SessionListFilters, SessionRef, SessionSummary, SessionView, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, TaskItem, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation, WorkflowRun };
27849
+ export { AMBIENT_CREDENTIAL_VARS, AgentKindSchema, AgentMetaSchema, AgentNodeSchema, AgentTreesListInputSchema, AgentTreesListOutputSchema, AgentTreesShowInputSchema, AgentTreesShowOutputSchema, CHECK_CREDENTIAL_APPLIES, CODEX_APP_SERVER_GENERATED_AGAINST, CODEX_APP_SERVER_TIMEOUT_MS, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, CodexAccountReadSchema, CodexAppServerProtocolError, CodexAppServerRequestError, CodexAppServerUnavailableError, CodexLogoutOutputSchema, CodexRateLimitsReadSchema, CodexSignInSchema, CodexStatusOutputSchema, ConfigIdentityAddInputSchema, ConfigIdentityAddOutputSchema, ConfigIdentityRemoveInputSchema, ConfigIdentityRemoveOutputSchema, ConfigIdentitySetInputSchema, ConfigIdentitySetOutputSchema, ConfigIdentityUseOutputSchema, ConfigNameInputSchema, ConfigPoolAddInputSchema, ConfigPoolAddOutputSchema, ConfigPoolRemoveInputSchema, ConfigPoolRemoveOutputSchema, ConfigPoolSetInputSchema, ConfigPoolSetOutputSchema, ConfigPoolUseOutputSchema, ConfigProfileAddInputSchema, ConfigProfileAddOutputSchema, ConfigProfileRemoveInputSchema, ConfigProfileRemoveOutputSchema, ConfigProfileSchema, ConfigProfileSetInputSchema, ConfigProfileSetOutputSchema, ConfigProfileUseOutputSchema, ConfigProviderAddInputSchema, ConfigProviderAddOutputSchema, ConfigProviderRemoveInputSchema, ConfigProviderRemoveOutputSchema, ConfigProviderSetInputSchema, ConfigProviderSetOutputSchema, ConfigRuleAddInputSchema, ConfigRuleAddOutputSchema, ConfigRuleRemoveInputSchema, ConfigRuleRemoveOutputSchema, ConfigRuleSetInputSchema, ConfigRuleSetOutputSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, CredentialSummarySchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DOOR_HEALTH_EVENT_SOURCE, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, DoorHealthEventSchema, DuplicateIdentityNameError, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorControlMaterialError, FrontDoorNotServingError, FrontDoorRestartOutputSchema, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LIVE_TASK_CAP, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, LiveTaskSchema, MergedAgentNodeSchema, MergedAgentTreeSchema, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, RC_CONTEXT_USAGE_DETAILS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PENDING_RETIRE_REASONS, 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_SESSION_END_REASONS, RC_SESSION_EVENT_LOG_CAPACITY, 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, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcSessionEventCursorExpiredError, RcSessionEventSchema, RcSessionEventsPageInputSchema, RcSessionEventsReadInputSchema, RcSessionEventsReadOutputSchema, RcSessionEventsStreamInputSchema, RcSessionTransitionSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageChangeEventSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, WorkflowRunSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, applyAgentTaskEvent, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, changePool, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createLiveSessionRegistry, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionEventLog, createRcSessionEventsApiRouter, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, followRcSessionEvents, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, identityIdOf, identityNameOf, identityRecords, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, launchRequiredUpstreams, listDirectoryRules, listIdentities, listProfiles, listProviders, listSessions, listUsageSnapshots, locateSession, matchBranch, mergeLiveTasks, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readCodexAccount, readCodexRateLimits, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readIdentityById, readIdentityRecords, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readSessionAgentTree, readUsageSnapshot, realCodexAppServerPort, realConnectCertStore, realConnectEffects, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, realSessionFs, reconnectRcSessionMcpServer, recoverFarm, recoveryDiagnostics, refreshLaunchPoolUsage, refreshPoolUsage, refreshStalePoolMembers, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveClaudeLaunch, resolveDecisions, resolveLaunch, resolveLaunchSelection, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runClaudeLaunch, runDoctor, runFrontDoorSupervisor, runLaunchPlan, runLauncher, runSupervisor, sendRcKeepAlive, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, writeDirectoryRules };
27850
+ export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchResolution, CodexAccountRead, CodexApiClient, CodexApiDeps, CodexApiRouter, CodexAppServerConnection, CodexAppServerPort, CodexAppServerReadOptions, CodexRateLimitsRead, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigApiDeps, ConfigApiRouter, 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, DoorHealthEvent, DoorHealthPublisher, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorControlMaterial, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, IdentityNameRead, IdentityRecord, IdentityRecordsPort, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveSessionRegistry, LiveSessionRegistryPorts, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolChange, PoolMember, PoolPickReport, PoolPolicy, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPendingRetireReason, RcPermissionMode, RcPresenceAnswer, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionEndReason, RcSessionEvent, RcSessionEventLog, RcSessionEventLogDeps, RcSessionEventsApiDeps, RcSessionEventsApiRouter, RcSessionEventsRead, RcSessionEventsReadInput, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcSessionTransition, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResetRow, ResetSchedule, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SessionAgentTree, SessionCommandFs, SessionListFilters, SessionRef, SessionSummary, SessionView, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, TaskItem, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation, WorkflowRun };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "11.87.4",
3
+ "version": "11.88.0",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",