agent-shim 11.88.0 → 11.89.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.
@@ -297,9 +297,9 @@ declare const LaunchSchema: z.ZodObject<{
297
297
  }>>;
298
298
  layout: z.ZodOptional<z.ZodObject<{
299
299
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
300
+ identity: "identity";
300
301
  model: "model";
301
302
  account: "account";
302
- identity: "identity";
303
303
  provider: "provider";
304
304
  version: "version";
305
305
  headroom: "headroom";
@@ -1527,9 +1527,9 @@ declare const ConfigProfileSchema: z.ZodObject<{
1527
1527
  }>>;
1528
1528
  layout: z.ZodOptional<z.ZodObject<{
1529
1529
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1530
+ identity: "identity";
1530
1531
  model: "model";
1531
1532
  account: "account";
1532
- identity: "identity";
1533
1533
  provider: "provider";
1534
1534
  version: "version";
1535
1535
  headroom: "headroom";
@@ -2377,9 +2377,9 @@ declare const DirectoryRuleSchema: z.ZodObject<{
2377
2377
  }>>;
2378
2378
  layout: z.ZodOptional<z.ZodObject<{
2379
2379
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2380
+ identity: "identity";
2380
2381
  model: "model";
2381
2382
  account: "account";
2382
- identity: "identity";
2383
2383
  provider: "provider";
2384
2384
  version: "version";
2385
2385
  headroom: "headroom";
@@ -3153,9 +3153,9 @@ declare const DirectoryRulesSchema: z.ZodObject<{
3153
3153
  }>>;
3154
3154
  layout: z.ZodOptional<z.ZodObject<{
3155
3155
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3156
+ identity: "identity";
3156
3157
  model: "model";
3157
3158
  account: "account";
3158
- identity: "identity";
3159
3159
  provider: "provider";
3160
3160
  version: "version";
3161
3161
  headroom: "headroom";
@@ -3929,9 +3929,9 @@ declare const PortableConfigSchema: z.ZodObject<{
3929
3929
  }>>;
3930
3930
  layout: z.ZodOptional<z.ZodObject<{
3931
3931
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3932
+ identity: "identity";
3932
3933
  model: "model";
3933
3934
  account: "account";
3934
- identity: "identity";
3935
3935
  provider: "provider";
3936
3936
  version: "version";
3937
3937
  headroom: "headroom";
@@ -4685,9 +4685,9 @@ declare const GlobalConfigSchema: z.ZodObject<{
4685
4685
  }>>;
4686
4686
  layout: z.ZodOptional<z.ZodObject<{
4687
4687
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4688
+ identity: "identity";
4688
4689
  model: "model";
4689
4690
  account: "account";
4690
- identity: "identity";
4691
4691
  provider: "provider";
4692
4692
  version: "version";
4693
4693
  headroom: "headroom";
@@ -5961,6 +5961,7 @@ declare const FrontDoorSessionSchema: z.ZodObject<{
5961
5961
  token: z.ZodString;
5962
5962
  supervisorPid: z.ZodOptional<z.ZodNumber>;
5963
5963
  sessionId: z.ZodOptional<z.ZodString>;
5964
+ identity: z.ZodOptional<z.ZodString>;
5964
5965
  models: z.ZodOptional<z.ZodObject<{
5965
5966
  pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
5966
5967
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -6035,6 +6036,8 @@ interface FrontDoorLiveness {
6035
6036
  /** What a launch records about itself in its registry entry beyond the token: the id its requests carry and, when it resolved one that differs from the global block, its models block. */
6036
6037
  interface FrontDoorSessionDetails {
6037
6038
  readonly sessionId: string;
6039
+ /** The id of the identity the launch runs as: what the door attributes the launch's requests to even when a request carries no identity header of its own (Remote Control's calls ride the capability the tunnel supplies). */
6040
+ readonly identity?: string;
6038
6041
  readonly models?: ModelsConfig;
6039
6042
  }
6040
6043
  /** A registered launch as status and the idle decision see it: the pid and start time, never the token, so nothing that prints or serialises a session can leak the capability. */
@@ -6052,6 +6055,8 @@ interface FsPort {
6052
6055
  readonly readConfigFile: ConfigFileReader;
6053
6056
  /** Lists one directory's immediate child names, or an empty list when it does not exist. Used to name the known providers in an unknown-provider refusal. */
6054
6057
  readonly readdir: (dir: string) => readonly string[];
6058
+ /** Whether two paths are one directory on disk, by device and inode: true for a spelling that differs by a trailing separator, a case difference on a filesystem that ignores case, or a symlink; false when either does not exist or cannot be reached. Relative paths are read against the process's working directory. */
6059
+ readonly sameDirectory: (first: string, second: string) => boolean;
6055
6060
  }
6056
6061
  /** What one node of a tree is, as reported by an `lstat` that never follows symlinks. */
6057
6062
  type FarmNodeKind = "dir" | "file" | "symlink";
@@ -7377,6 +7382,16 @@ interface RcSessionStatus extends RcSessionSummary {
7377
7382
  readonly workerIdleSeconds: RcWorkerFact<number> | undefined;
7378
7383
  /** The session's control requests awaiting an answer, oldest-observed first. */
7379
7384
  readonly pending: readonly RcPendingRequestSummary[];
7385
+ /** The identity (login) the session runs as, when the door saw it on the session's own requests or the session's own registry named it. Absent when neither knows. */
7386
+ readonly identity?: string;
7387
+ /** The model the session last stated, when the door saw one. */
7388
+ readonly model?: string;
7389
+ /** The session's name as the Claude Code session registry holds it (see `rcSessionRegistry.ts`); the tracker never sets it. */
7390
+ readonly name?: string;
7391
+ /** The session process's id from the registry; the tracker never sets it. */
7392
+ readonly pid?: number;
7393
+ /** The session's working directory, from its init event or else the registry. */
7394
+ readonly cwd?: string;
7380
7395
  }
7381
7396
  /** One observed session as the control surface lists it: the identification and timing only, never the credential. */
7382
7397
  interface RcSessionSummary {
@@ -7391,6 +7406,8 @@ interface RcObservedRequest {
7391
7406
  readonly method?: string;
7392
7407
  readonly url?: string;
7393
7408
  readonly headers: Readonly<IncomingHttpHeaders>;
7409
+ /** The identity the launcher injected on this request, when the door's identity step read one; the headers above no longer carry it. */
7410
+ readonly identity?: string;
7394
7411
  }
7395
7412
  /** What one observed exchange drives, in arrival order: the request body chunks and their end (present only for the exchanges whose request payloads the tracker reads), then the response's head, each body chunk, and the end exactly once. */
7396
7413
  interface RcExchangeObserver {
@@ -7838,6 +7855,97 @@ declare function realRcStreamDial(target?: RcDialTarget): RcStreamDial;
7838
7855
  /** The real effects, dialling upstream from `ports` (the door's own range unless a test injects a private one). */
7839
7856
  declare function realConnectEffects(ports?: SourcePortRange): ConnectEffects;
7840
7857
 
7858
+ /**
7859
+ * The agent tree reader: pure over an injected filesystem, so the CLI, the library surface and tests read the same way, and nothing here writes. The layout it reads is documented in `docs/agent-transcripts.md`.
7860
+ */
7861
+ /** The filesystem reads the agent tree reader needs. */
7862
+ type AgentReadFs = Pick<FarmFs, "readFileUtf8" | "readdir" | "lstat">;
7863
+ /** One session found under a project: its directory name split into the session id and whether the entry is an archived copy (superseded by a resume, or orphaned) rather than the live session. */
7864
+ interface SessionRef {
7865
+ readonly project: string;
7866
+ readonly sessionId: string;
7867
+ readonly superseded: boolean;
7868
+ /** The directory (and transcript stem) name exactly as on disk, which differs from `sessionId` for an archived copy. */
7869
+ readonly entry: string;
7870
+ }
7871
+ /** Lists every session under every project: a transcript file, or a directory holding agents or workflow runs. Sorted by project then entry so output is stable. */
7872
+ declare function listSessions(fs: AgentReadFs, configDir: string): readonly SessionRef[];
7873
+ /** One session in a listing: the cheap facts read from directory listings and one stat, without parsing any agent. */
7874
+ interface SessionSummary extends SessionRef {
7875
+ /** How many agent meta files the session has, across its top-level agents and every workflow run. */
7876
+ readonly agentCount: number;
7877
+ /** How many workflow run records the session has. */
7878
+ readonly workflowRunCount: number;
7879
+ /** When the session's transcript was last written, as an ISO instant; absent when there is no transcript file. */
7880
+ readonly updatedAt?: string;
7881
+ }
7882
+ /** What a caller knows about a session that the disk does not record. */
7883
+ interface ReadSessionOptions {
7884
+ /** Task lists the session was pointed at with `CLAUDE_CODE_TASK_LIST_ID`, which is a property of the process environment and is written nowhere in the session's files. Each is read from `tasks/<id>` and its tasks carry the id as `taskList`. */
7885
+ readonly taskListIds?: readonly string[];
7886
+ }
7887
+ /** Summarises one session without reading any agent file: listings and one stat only, so it is cheap over every session an identity has. */
7888
+ declare function summariseSession(fs: AgentReadFs, configDir: string, ref: Readonly<SessionRef>): SessionSummary;
7889
+ /**
7890
+ * Reads one session's agents, task list and workflow runs. Every file that cannot be used is listed in `problems` with the reason; a missing directory is simply an empty section, because a session that never spawned an agent has none.
7891
+ */
7892
+ declare function readSessionAgentTree(fs: AgentReadFs, configDir: string, ref: SessionRef, options?: Readonly<ReadSessionOptions>): SessionAgentTree;
7893
+
7894
+ /** The reads the session commands and procedures make: the reader's own, plus resolving a path to the real location it points at, which is how identities sharing one history store are told from identities with their own. */
7895
+ interface SessionCommandFs extends AgentReadFs {
7896
+ /** The real path `candidate` resolves to, or undefined when nothing is there. */
7897
+ readonly realpath: (candidate: string) => string | undefined;
7898
+ }
7899
+ /** The real filesystem, for the commands and the door's sessions procedures. */
7900
+ declare const realSessionFs: SessionCommandFs;
7901
+
7902
+ /**
7903
+ * The reads the registry reader makes: directory listing, file reads, a stat that does not follow links (so only a regular file small enough to be an entry is ever read, and a FIFO or a link to an endless device named like an entry cannot block the read), and resolving the registry directory to the real location it points at, which is how identities that share one registry are told from identities with their own.
7904
+ */
7905
+ interface RcSessionRegistryFs extends Pick<SessionCommandFs, "readdir" | "readFileUtf8" | "realpath"> {
7906
+ /** What a path is, by a stat that does not follow links: whether it is a plain file (a FIFO, a socket, a device or a link is not) and its size in bytes; undefined when nothing is there. */
7907
+ readonly statEntry: (entryPath: string) => {
7908
+ readonly regular: boolean;
7909
+ readonly sizeBytes: number;
7910
+ } | undefined;
7911
+ }
7912
+ /** One identity whose registry is searched: its name and the configuration directory it launches sessions with. */
7913
+ interface RcRegistryIdentity {
7914
+ readonly name: string;
7915
+ readonly configDir: string;
7916
+ }
7917
+ /** What the registry says about one session, with every field the entry did not carry absent rather than blank. */
7918
+ interface RcRegisteredSession {
7919
+ /** The session process's id. */
7920
+ readonly pid: number;
7921
+ /** The Claude Code session's own id, the stem of its transcript and the join to everything on disk. */
7922
+ readonly localSessionId: string;
7923
+ /** The directory the session was started in. */
7924
+ readonly cwd?: string;
7925
+ /** The session's name, as the CLI shows it. */
7926
+ readonly name?: string;
7927
+ /** The identity whose own registry holds the entry. Absent when several identities share the registry (the default, since sessions are history and shared), because the entry then says nothing about which of them launched the session. */
7928
+ readonly identity?: string;
7929
+ }
7930
+ /** Everything the registry reader needs, injected so it runs against fakes. */
7931
+ interface RcSessionRegistryDeps {
7932
+ readonly fs: RcSessionRegistryFs;
7933
+ /** The identities to search, read on every call so one added after the door started is searched the moment it exists. */
7934
+ readonly identities: () => readonly RcRegistryIdentity[];
7935
+ /** Whether a process is alive: an entry whose process has exited is a file a crash left behind, and describes no session. */
7936
+ readonly isRunning: (pid: number) => boolean;
7937
+ }
7938
+ /**
7939
+ * Builds the registry reader: each call reads every identity's registry (a shared one once) and returns the live sessions it holds keyed by the door's `cse_` id. When a session has several live entries, as a resumed one can while its earlier file lingers, the most recently updated wins.
7940
+ */
7941
+ declare function createRcSessionRegistryReader(deps: RcSessionRegistryDeps): () => ReadonlyMap<string, RcRegisteredSession>;
7942
+ /**
7943
+ * Adds what the registry says to the statuses the door built from its own observations: the name and process id always, and the working directory and identity only where the door observed none (what the session itself stated, and the launching identity the door saw on its own requests, outrank a registry that is only a file on disk). A status whose session the registry does not hold is returned as it is.
7944
+ */
7945
+ declare function withRegisteredSessionFacts(statuses: readonly RcSessionStatus[], registry: ReadonlyMap<string, RcRegisteredSession>): readonly RcSessionStatus[];
7946
+ /** Wraps the tracker's status read so every answer carries the registry's facts; the registry is read only when there is a status to describe. */
7947
+ declare function rcStatusWithRegistry(statusOf: (sessionId?: string) => readonly RcSessionStatus[], readRegistry: () => ReadonlyMap<string, RcRegisteredSession>, identityNameOf: (id: string) => string | undefined): (sessionId?: string) => readonly RcSessionStatus[];
7948
+
7841
7949
  /**
7842
7950
  * 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).
7843
7951
  *
@@ -8090,6 +8198,11 @@ declare function createRcApiRouter(deps: RcApiDeps): {
8090
8198
  summary: zod.ZodString;
8091
8199
  observedAt: zod.ZodNumber;
8092
8200
  }, zod_v4_core.$strict>>>;
8201
+ identity: zod.ZodOptional<zod.ZodString>;
8202
+ model: zod.ZodOptional<zod.ZodString>;
8203
+ name: zod.ZodOptional<zod.ZodString>;
8204
+ pid: zod.ZodOptional<zod.ZodNumber>;
8205
+ cwd: zod.ZodOptional<zod.ZodString>;
8093
8206
  id: zod.ZodString;
8094
8207
  createdAt: zod.ZodNumber;
8095
8208
  lastSeenAt: zod.ZodNumber;
@@ -8918,8 +9031,10 @@ interface IdentityDecision {
8918
9031
  /** The pool selected by a `pool:<name>` selector, when the launch named a pool instead of an identity. */
8919
9032
  readonly pool?: string;
8920
9033
  readonly source: IdentityDecisionSource;
8921
- /** True when `CLAUDE_CONFIG_DIR` was already set and every step below was skipped as a result. */
9034
+ /** True when `CLAUDE_CONFIG_DIR` was already set, nothing on the command line named an identity, and every step below was skipped as a result. */
8922
9035
  readonly configDirEscapeHatch: boolean;
9036
+ /** The inherited `CLAUDE_CONFIG_DIR` an identity named on the command line outranked. Present only for a decision whose `source` is `argv` taken while the variable was set; the launch gives the child the identity's own directory in its place and says so, unless that already is the directory. */
9037
+ readonly supersededConfigDir?: string;
8923
9038
  }
8924
9039
  /** Which precedence rule produced a configuration-profile decision. */
8925
9040
  declare const CONFIG_PROFILE_DECISION_SOURCES: readonly ["cli-flag", "env", "directory-rule", "identity-default", "global-default", "none"];
@@ -9045,6 +9160,8 @@ interface RunCheckParams {
9045
9160
  readonly home: string;
9046
9161
  readonly claudeHome: string;
9047
9162
  readonly env: Readonly<Record<string, string | undefined>>;
9163
+ /** Whether a launch here would take the `CLAUDE_CONFIG_DIR` escape hatch (the selection says so). It decides whether the ambient-credential guard is judged over `env` as it is or without what a parent launcher injected, as the launch itself does. */
9164
+ readonly configDirEscapeHatch: boolean;
9048
9165
  readonly branch?: string;
9049
9166
  readonly branchDetached?: boolean;
9050
9167
  readonly nowMs: number;
@@ -10363,9 +10480,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10363
10480
  }>>;
10364
10481
  layout: zod.ZodOptional<zod.ZodObject<{
10365
10482
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
10483
+ identity: "identity";
10366
10484
  model: "model";
10367
10485
  account: "account";
10368
- identity: "identity";
10369
10486
  provider: "provider";
10370
10487
  version: "version";
10371
10488
  headroom: "headroom";
@@ -11087,9 +11204,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
11087
11204
  }>>;
11088
11205
  layout: zod.ZodOptional<zod.ZodObject<{
11089
11206
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
11207
+ identity: "identity";
11090
11208
  model: "model";
11091
11209
  account: "account";
11092
- identity: "identity";
11093
11210
  provider: "provider";
11094
11211
  version: "version";
11095
11212
  headroom: "headroom";
@@ -12287,9 +12404,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
12287
12404
  }>>;
12288
12405
  layout: zod.ZodOptional<zod.ZodObject<{
12289
12406
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
12407
+ identity: "identity";
12290
12408
  model: "model";
12291
12409
  account: "account";
12292
- identity: "identity";
12293
12410
  provider: "provider";
12294
12411
  version: "version";
12295
12412
  headroom: "headroom";
@@ -13068,9 +13185,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
13068
13185
  }>>;
13069
13186
  layout: zod.ZodOptional<zod.ZodObject<{
13070
13187
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
13188
+ identity: "identity";
13071
13189
  model: "model";
13072
13190
  account: "account";
13073
- identity: "identity";
13074
13191
  provider: "provider";
13075
13192
  version: "version";
13076
13193
  headroom: "headroom";
@@ -14041,9 +14158,9 @@ declare const StatuslineSchema: z.ZodObject<{
14041
14158
  }>>;
14042
14159
  layout: z.ZodOptional<z.ZodObject<{
14043
14160
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
14161
+ identity: "identity";
14044
14162
  model: "model";
14045
14163
  account: "account";
14046
- identity: "identity";
14047
14164
  provider: "provider";
14048
14165
  version: "version";
14049
14166
  headroom: "headroom";
@@ -14745,7 +14862,7 @@ interface LaunchDecision {
14745
14862
  readonly identitySource: IdentityDecisionSource;
14746
14863
  /** The pool pick behind `identity`, when the launch selected a pool. */
14747
14864
  readonly pool?: LaunchPoolDecision;
14748
- /** True when `CLAUDE_CONFIG_DIR` was already set, so no identity was resolved and no farm was managed. */
14865
+ /** True when `CLAUDE_CONFIG_DIR` was already set and nothing on the command line named an identity, so no identity was resolved and no farm was managed. An identity named on the command line outranks the variable and leaves this false. */
14749
14866
  readonly configDirEscapeHatch: boolean;
14750
14867
  /** The configuration directory the child runs with: the identity's own, or the one the caller named. Absent when none is set. */
14751
14868
  readonly configDir?: string;
@@ -14909,9 +15026,9 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
14909
15026
  }>>;
14910
15027
  layout: zod.ZodOptional<zod.ZodObject<{
14911
15028
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
15029
+ identity: "identity";
14912
15030
  model: "model";
14913
15031
  account: "account";
14914
- identity: "identity";
14915
15032
  provider: "provider";
14916
15033
  version: "version";
14917
15034
  headroom: "headroom";
@@ -15502,42 +15619,6 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
15502
15619
  /** The launch router, as the merged mount's and the client's own types are derived from it. */
15503
15620
  type LaunchApiRouter = ReturnType<typeof createLaunchApiRouter>;
15504
15621
 
15505
- /**
15506
- * The agent tree reader: pure over an injected filesystem, so the CLI, the library surface and tests read the same way, and nothing here writes. The layout it reads is documented in `docs/agent-transcripts.md`.
15507
- */
15508
- /** The filesystem reads the agent tree reader needs. */
15509
- type AgentReadFs = Pick<FarmFs, "readFileUtf8" | "readdir" | "lstat">;
15510
- /** One session found under a project: its directory name split into the session id and whether the entry is an archived copy (superseded by a resume, or orphaned) rather than the live session. */
15511
- interface SessionRef {
15512
- readonly project: string;
15513
- readonly sessionId: string;
15514
- readonly superseded: boolean;
15515
- /** The directory (and transcript stem) name exactly as on disk, which differs from `sessionId` for an archived copy. */
15516
- readonly entry: string;
15517
- }
15518
- /** Lists every session under every project: a transcript file, or a directory holding agents or workflow runs. Sorted by project then entry so output is stable. */
15519
- declare function listSessions(fs: AgentReadFs, configDir: string): readonly SessionRef[];
15520
- /** One session in a listing: the cheap facts read from directory listings and one stat, without parsing any agent. */
15521
- interface SessionSummary extends SessionRef {
15522
- /** How many agent meta files the session has, across its top-level agents and every workflow run. */
15523
- readonly agentCount: number;
15524
- /** How many workflow run records the session has. */
15525
- readonly workflowRunCount: number;
15526
- /** When the session's transcript was last written, as an ISO instant; absent when there is no transcript file. */
15527
- readonly updatedAt?: string;
15528
- }
15529
- /** What a caller knows about a session that the disk does not record. */
15530
- interface ReadSessionOptions {
15531
- /** Task lists the session was pointed at with `CLAUDE_CODE_TASK_LIST_ID`, which is a property of the process environment and is written nowhere in the session's files. Each is read from `tasks/<id>` and its tasks carry the id as `taskList`. */
15532
- readonly taskListIds?: readonly string[];
15533
- }
15534
- /** Summarises one session without reading any agent file: listings and one stat only, so it is cheap over every session an identity has. */
15535
- declare function summariseSession(fs: AgentReadFs, configDir: string, ref: Readonly<SessionRef>): SessionSummary;
15536
- /**
15537
- * Reads one session's agents, task list and workflow runs. Every file that cannot be used is listed in `problems` with the reason; a missing directory is simply an empty section, because a session that never spawned an agent has none.
15538
- */
15539
- declare function readSessionAgentTree(fs: AgentReadFs, configDir: string, ref: SessionRef, options?: Readonly<ReadSessionOptions>): SessionAgentTree;
15540
-
15541
15622
  /**
15542
15623
  * A session's agents as a typed oRPC API: the sessions that spawned agents or ran workflows, and one session's agent tree, task list and workflow runs, read from the transcripts on disk. The same data `agent-shim session list` and `session show` print, so a consumer that is not the CLI (an MCP client, the library) asks the door for it.
15543
15624
  */
@@ -16671,9 +16752,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
16671
16752
  }>>;
16672
16753
  layout: zod.ZodOptional<zod.ZodObject<{
16673
16754
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
16755
+ identity: "identity";
16674
16756
  model: "model";
16675
16757
  account: "account";
16676
- identity: "identity";
16677
16758
  provider: "provider";
16678
16759
  version: "version";
16679
16760
  headroom: "headroom";
@@ -17642,9 +17723,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17642
17723
  }>>;
17643
17724
  layout: zod.ZodOptional<zod.ZodObject<{
17644
17725
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
17726
+ identity: "identity";
17645
17727
  model: "model";
17646
17728
  account: "account";
17647
- identity: "identity";
17648
17729
  provider: "provider";
17649
17730
  version: "version";
17650
17731
  headroom: "headroom";
@@ -18366,9 +18447,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
18366
18447
  }>>;
18367
18448
  layout: zod.ZodOptional<zod.ZodObject<{
18368
18449
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
18450
+ identity: "identity";
18369
18451
  model: "model";
18370
18452
  account: "account";
18371
- identity: "identity";
18372
18453
  provider: "provider";
18373
18454
  version: "version";
18374
18455
  headroom: "headroom";
@@ -19566,9 +19647,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
19566
19647
  }>>;
19567
19648
  layout: zod.ZodOptional<zod.ZodObject<{
19568
19649
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
19650
+ identity: "identity";
19569
19651
  model: "model";
19570
19652
  account: "account";
19571
- identity: "identity";
19572
19653
  provider: "provider";
19573
19654
  version: "version";
19574
19655
  headroom: "headroom";
@@ -20347,9 +20428,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
20347
20428
  }>>;
20348
20429
  layout: zod.ZodOptional<zod.ZodObject<{
20349
20430
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
20431
+ identity: "identity";
20350
20432
  model: "model";
20351
20433
  account: "account";
20352
- identity: "identity";
20353
20434
  provider: "provider";
20354
20435
  version: "version";
20355
20436
  headroom: "headroom";
@@ -21647,6 +21728,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
21647
21728
  summary: zod.ZodString;
21648
21729
  observedAt: zod.ZodNumber;
21649
21730
  }, zod_v4_core.$strict>>>;
21731
+ identity: zod.ZodOptional<zod.ZodString>;
21732
+ model: zod.ZodOptional<zod.ZodString>;
21733
+ name: zod.ZodOptional<zod.ZodString>;
21734
+ pid: zod.ZodOptional<zod.ZodNumber>;
21735
+ cwd: zod.ZodOptional<zod.ZodString>;
21650
21736
  id: zod.ZodString;
21651
21737
  createdAt: zod.ZodNumber;
21652
21738
  lastSeenAt: zod.ZodNumber;
@@ -22247,9 +22333,9 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
22247
22333
  }>>;
22248
22334
  layout: z.ZodOptional<z.ZodObject<{
22249
22335
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22336
+ identity: "identity";
22250
22337
  model: "model";
22251
22338
  account: "account";
22252
- identity: "identity";
22253
22339
  provider: "provider";
22254
22340
  version: "version";
22255
22341
  headroom: "headroom";
@@ -22973,9 +23059,9 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
22973
23059
  }>>;
22974
23060
  layout: z.ZodOptional<z.ZodObject<{
22975
23061
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23062
+ identity: "identity";
22976
23063
  model: "model";
22977
23064
  account: "account";
22978
- identity: "identity";
22979
23065
  provider: "provider";
22980
23066
  version: "version";
22981
23067
  headroom: "headroom";
@@ -24175,9 +24261,9 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
24175
24261
  }>>;
24176
24262
  layout: z.ZodOptional<z.ZodObject<{
24177
24263
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
24264
+ identity: "identity";
24178
24265
  model: "model";
24179
24266
  account: "account";
24180
- identity: "identity";
24181
24267
  provider: "provider";
24182
24268
  version: "version";
24183
24269
  headroom: "headroom";
@@ -24958,9 +25044,9 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
24958
25044
  }>>;
24959
25045
  layout: z.ZodOptional<z.ZodObject<{
24960
25046
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
25047
+ identity: "identity";
24961
25048
  model: "model";
24962
25049
  account: "account";
24963
- identity: "identity";
24964
25050
  provider: "provider";
24965
25051
  version: "version";
24966
25052
  headroom: "headroom";
@@ -25998,9 +26084,9 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
25998
26084
  }>>;
25999
26085
  layout: z.ZodOptional<z.ZodObject<{
26000
26086
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
26087
+ identity: "identity";
26001
26088
  model: "model";
26002
26089
  account: "account";
26003
- identity: "identity";
26004
26090
  provider: "provider";
26005
26091
  version: "version";
26006
26092
  headroom: "headroom";
@@ -26920,6 +27006,10 @@ interface LiveSessionRegistry {
26920
27006
  * A record removed by someone else is therefore noticed by a presented token the view does not hold, or by the next `rescan`, not by a request for a token it holds: a removed record's capability stays admissible until the next `rescan`. A rewrite that leaves a record's modification time and size unchanged is likewise first seen at the next `rescan`.
26921
27007
  */
26922
27008
  readonly admits: (token: string) => boolean;
27009
+ /**
27010
+ * The id of the identity the launch holding `token` runs as, or undefined when no live launch holds the token or the launch recorded none (a launch from before records carried it). For a token `admits` has already accepted, so the lookup is not itself a capability check; an unknown token triggers one reconcile, as in `admits`.
27011
+ */
27012
+ readonly identityOf: (token: string) => string | undefined;
26923
27013
  /**
26924
27014
  * Re-reads every record in the directory, replacing what the view holds, and returns the listing it saw (sorted by pid, malformed files skipped, no token in it). The supervisor's tick calls this as its listing, so the registry is read once per tick for both the idle decision and the capabilities.
26925
27015
  */
@@ -27272,14 +27362,6 @@ declare function collectPoolPick(params: Readonly<{
27272
27362
  nowMs: number;
27273
27363
  }>): PoolPickReport;
27274
27364
 
27275
- /** The reads the session commands and procedures make: the reader's own, plus resolving a path to the real location it points at, which is how identities sharing one history store are told from identities with their own. */
27276
- interface SessionCommandFs extends AgentReadFs {
27277
- /** The real path `candidate` resolves to, or undefined when nothing is there. */
27278
- readonly realpath: (candidate: string) => string | undefined;
27279
- }
27280
- /** The real filesystem, for the commands and the door's sessions procedures. */
27281
- declare const realSessionFs: SessionCommandFs;
27282
-
27283
27365
  /**
27284
27366
  * Finding and reading sessions across identities, pure over an injected filesystem: the logic the \`session\` commands and the door's \`sessions\` procedures share, free of command-line dependencies so the library surface can export it.
27285
27367
  */
@@ -27846,5 +27928,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
27846
27928
  */
27847
27929
  declare function agentShimCliPath(distDir?: string | undefined): string;
27848
27930
 
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 };
27931
+ 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, createRcSessionRegistryReader, 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, rcStatusWithRegistry, 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, withRegisteredSessionFacts, writeDirectoryRules };
27932
+ 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, RcRegisteredSession, RcRegistryIdentity, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionEndReason, RcSessionEvent, RcSessionEventLog, RcSessionEventLogDeps, RcSessionEventsApiDeps, RcSessionEventsApiRouter, RcSessionEventsRead, RcSessionEventsReadInput, RcSessionRegistryDeps, RcSessionRegistryFs, 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": "agent-shim",
3
- "version": "11.88.0",
3
+ "version": "11.89.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>",