agent-shim 11.88.1 → 11.89.1

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. */
@@ -7379,6 +7382,16 @@ interface RcSessionStatus extends RcSessionSummary {
7379
7382
  readonly workerIdleSeconds: RcWorkerFact<number> | undefined;
7380
7383
  /** The session's control requests awaiting an answer, oldest-observed first. */
7381
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;
7382
7395
  }
7383
7396
  /** One observed session as the control surface lists it: the identification and timing only, never the credential. */
7384
7397
  interface RcSessionSummary {
@@ -7393,6 +7406,8 @@ interface RcObservedRequest {
7393
7406
  readonly method?: string;
7394
7407
  readonly url?: string;
7395
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;
7396
7411
  }
7397
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. */
7398
7413
  interface RcExchangeObserver {
@@ -7840,6 +7855,97 @@ declare function realRcStreamDial(target?: RcDialTarget): RcStreamDial;
7840
7855
  /** The real effects, dialling upstream from `ports` (the door's own range unless a test injects a private one). */
7841
7856
  declare function realConnectEffects(ports?: SourcePortRange): ConnectEffects;
7842
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
+
7843
7949
  /**
7844
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).
7845
7951
  *
@@ -8092,6 +8198,11 @@ declare function createRcApiRouter(deps: RcApiDeps): {
8092
8198
  summary: zod.ZodString;
8093
8199
  observedAt: zod.ZodNumber;
8094
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>;
8095
8206
  id: zod.ZodString;
8096
8207
  createdAt: zod.ZodNumber;
8097
8208
  lastSeenAt: zod.ZodNumber;
@@ -10369,9 +10480,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10369
10480
  }>>;
10370
10481
  layout: zod.ZodOptional<zod.ZodObject<{
10371
10482
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
10483
+ identity: "identity";
10372
10484
  model: "model";
10373
10485
  account: "account";
10374
- identity: "identity";
10375
10486
  provider: "provider";
10376
10487
  version: "version";
10377
10488
  headroom: "headroom";
@@ -11093,9 +11204,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
11093
11204
  }>>;
11094
11205
  layout: zod.ZodOptional<zod.ZodObject<{
11095
11206
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
11207
+ identity: "identity";
11096
11208
  model: "model";
11097
11209
  account: "account";
11098
- identity: "identity";
11099
11210
  provider: "provider";
11100
11211
  version: "version";
11101
11212
  headroom: "headroom";
@@ -12293,9 +12404,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
12293
12404
  }>>;
12294
12405
  layout: zod.ZodOptional<zod.ZodObject<{
12295
12406
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
12407
+ identity: "identity";
12296
12408
  model: "model";
12297
12409
  account: "account";
12298
- identity: "identity";
12299
12410
  provider: "provider";
12300
12411
  version: "version";
12301
12412
  headroom: "headroom";
@@ -13074,9 +13185,9 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
13074
13185
  }>>;
13075
13186
  layout: zod.ZodOptional<zod.ZodObject<{
13076
13187
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
13188
+ identity: "identity";
13077
13189
  model: "model";
13078
13190
  account: "account";
13079
- identity: "identity";
13080
13191
  provider: "provider";
13081
13192
  version: "version";
13082
13193
  headroom: "headroom";
@@ -14047,9 +14158,9 @@ declare const StatuslineSchema: z.ZodObject<{
14047
14158
  }>>;
14048
14159
  layout: z.ZodOptional<z.ZodObject<{
14049
14160
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
14161
+ identity: "identity";
14050
14162
  model: "model";
14051
14163
  account: "account";
14052
- identity: "identity";
14053
14164
  provider: "provider";
14054
14165
  version: "version";
14055
14166
  headroom: "headroom";
@@ -14915,9 +15026,9 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
14915
15026
  }>>;
14916
15027
  layout: zod.ZodOptional<zod.ZodObject<{
14917
15028
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
15029
+ identity: "identity";
14918
15030
  model: "model";
14919
15031
  account: "account";
14920
- identity: "identity";
14921
15032
  provider: "provider";
14922
15033
  version: "version";
14923
15034
  headroom: "headroom";
@@ -15508,42 +15619,6 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
15508
15619
  /** The launch router, as the merged mount's and the client's own types are derived from it. */
15509
15620
  type LaunchApiRouter = ReturnType<typeof createLaunchApiRouter>;
15510
15621
 
15511
- /**
15512
- * 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`.
15513
- */
15514
- /** The filesystem reads the agent tree reader needs. */
15515
- type AgentReadFs = Pick<FarmFs, "readFileUtf8" | "readdir" | "lstat">;
15516
- /** 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. */
15517
- interface SessionRef {
15518
- readonly project: string;
15519
- readonly sessionId: string;
15520
- readonly superseded: boolean;
15521
- /** The directory (and transcript stem) name exactly as on disk, which differs from `sessionId` for an archived copy. */
15522
- readonly entry: string;
15523
- }
15524
- /** 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. */
15525
- declare function listSessions(fs: AgentReadFs, configDir: string): readonly SessionRef[];
15526
- /** One session in a listing: the cheap facts read from directory listings and one stat, without parsing any agent. */
15527
- interface SessionSummary extends SessionRef {
15528
- /** How many agent meta files the session has, across its top-level agents and every workflow run. */
15529
- readonly agentCount: number;
15530
- /** How many workflow run records the session has. */
15531
- readonly workflowRunCount: number;
15532
- /** When the session's transcript was last written, as an ISO instant; absent when there is no transcript file. */
15533
- readonly updatedAt?: string;
15534
- }
15535
- /** What a caller knows about a session that the disk does not record. */
15536
- interface ReadSessionOptions {
15537
- /** 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`. */
15538
- readonly taskListIds?: readonly string[];
15539
- }
15540
- /** Summarises one session without reading any agent file: listings and one stat only, so it is cheap over every session an identity has. */
15541
- declare function summariseSession(fs: AgentReadFs, configDir: string, ref: Readonly<SessionRef>): SessionSummary;
15542
- /**
15543
- * 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.
15544
- */
15545
- declare function readSessionAgentTree(fs: AgentReadFs, configDir: string, ref: SessionRef, options?: Readonly<ReadSessionOptions>): SessionAgentTree;
15546
-
15547
15622
  /**
15548
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.
15549
15624
  */
@@ -16677,9 +16752,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
16677
16752
  }>>;
16678
16753
  layout: zod.ZodOptional<zod.ZodObject<{
16679
16754
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
16755
+ identity: "identity";
16680
16756
  model: "model";
16681
16757
  account: "account";
16682
- identity: "identity";
16683
16758
  provider: "provider";
16684
16759
  version: "version";
16685
16760
  headroom: "headroom";
@@ -17648,9 +17723,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17648
17723
  }>>;
17649
17724
  layout: zod.ZodOptional<zod.ZodObject<{
17650
17725
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
17726
+ identity: "identity";
17651
17727
  model: "model";
17652
17728
  account: "account";
17653
- identity: "identity";
17654
17729
  provider: "provider";
17655
17730
  version: "version";
17656
17731
  headroom: "headroom";
@@ -18372,9 +18447,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
18372
18447
  }>>;
18373
18448
  layout: zod.ZodOptional<zod.ZodObject<{
18374
18449
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
18450
+ identity: "identity";
18375
18451
  model: "model";
18376
18452
  account: "account";
18377
- identity: "identity";
18378
18453
  provider: "provider";
18379
18454
  version: "version";
18380
18455
  headroom: "headroom";
@@ -19572,9 +19647,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
19572
19647
  }>>;
19573
19648
  layout: zod.ZodOptional<zod.ZodObject<{
19574
19649
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
19650
+ identity: "identity";
19575
19651
  model: "model";
19576
19652
  account: "account";
19577
- identity: "identity";
19578
19653
  provider: "provider";
19579
19654
  version: "version";
19580
19655
  headroom: "headroom";
@@ -20353,9 +20428,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
20353
20428
  }>>;
20354
20429
  layout: zod.ZodOptional<zod.ZodObject<{
20355
20430
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
20431
+ identity: "identity";
20356
20432
  model: "model";
20357
20433
  account: "account";
20358
- identity: "identity";
20359
20434
  provider: "provider";
20360
20435
  version: "version";
20361
20436
  headroom: "headroom";
@@ -21653,6 +21728,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
21653
21728
  summary: zod.ZodString;
21654
21729
  observedAt: zod.ZodNumber;
21655
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>;
21656
21736
  id: zod.ZodString;
21657
21737
  createdAt: zod.ZodNumber;
21658
21738
  lastSeenAt: zod.ZodNumber;
@@ -22253,9 +22333,9 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
22253
22333
  }>>;
22254
22334
  layout: z.ZodOptional<z.ZodObject<{
22255
22335
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22336
+ identity: "identity";
22256
22337
  model: "model";
22257
22338
  account: "account";
22258
- identity: "identity";
22259
22339
  provider: "provider";
22260
22340
  version: "version";
22261
22341
  headroom: "headroom";
@@ -22979,9 +23059,9 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
22979
23059
  }>>;
22980
23060
  layout: z.ZodOptional<z.ZodObject<{
22981
23061
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23062
+ identity: "identity";
22982
23063
  model: "model";
22983
23064
  account: "account";
22984
- identity: "identity";
22985
23065
  provider: "provider";
22986
23066
  version: "version";
22987
23067
  headroom: "headroom";
@@ -24181,9 +24261,9 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
24181
24261
  }>>;
24182
24262
  layout: z.ZodOptional<z.ZodObject<{
24183
24263
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
24264
+ identity: "identity";
24184
24265
  model: "model";
24185
24266
  account: "account";
24186
- identity: "identity";
24187
24267
  provider: "provider";
24188
24268
  version: "version";
24189
24269
  headroom: "headroom";
@@ -24964,9 +25044,9 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
24964
25044
  }>>;
24965
25045
  layout: z.ZodOptional<z.ZodObject<{
24966
25046
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
25047
+ identity: "identity";
24967
25048
  model: "model";
24968
25049
  account: "account";
24969
- identity: "identity";
24970
25050
  provider: "provider";
24971
25051
  version: "version";
24972
25052
  headroom: "headroom";
@@ -26004,9 +26084,9 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
26004
26084
  }>>;
26005
26085
  layout: z.ZodOptional<z.ZodObject<{
26006
26086
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
26087
+ identity: "identity";
26007
26088
  model: "model";
26008
26089
  account: "account";
26009
- identity: "identity";
26010
26090
  provider: "provider";
26011
26091
  version: "version";
26012
26092
  headroom: "headroom";
@@ -26926,6 +27006,10 @@ interface LiveSessionRegistry {
26926
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`.
26927
27007
  */
26928
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;
26929
27013
  /**
26930
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.
26931
27015
  */
@@ -27191,7 +27275,7 @@ interface RankPoolInput {
27191
27275
  /** How members are ordered: "score" (the default when absent) by the use-it-or-lose-it ranking, "listed" strictly in `members` order. */
27192
27276
  readonly preference?: "score" | "listed";
27193
27277
  }
27194
- /** In pick order. `scored` has usable quota data; `unknown` has none (never recorded, or unreadable); `pay-per-use` bills by use instead of drawing on a plan; `ineligible` is refused right now. */
27278
+ /** In pick order. `scored` has usable quota data; `unknown` has none and no plan known to bill by use (never recorded, or unreadable); `pay-per-use` bills by use instead of drawing on a plan, whether or not any usage is recorded; `ineligible` is refused right now. */
27195
27279
  type CandidateClass = "scored" | "unknown" | "pay-per-use" | "ineligible";
27196
27280
  interface Candidate {
27197
27281
  readonly identity: string;
@@ -27206,6 +27290,8 @@ interface Candidate {
27206
27290
  readonly runsDryAtMs?: number;
27207
27291
  /** The fraction of the extra-usage allowance still unspent, for a `pay-per-use` member whose only budget is that allowance (an Enterprise account). A member reporting none ranks as having all of it: no cap is known to bind. */
27208
27292
  readonly headroom?: number;
27293
+ /** True for a `pay-per-use` member with no usage recorded: its account metadata says it bills by use, but its extra-usage meter has never been read, so its spend is invisible to `agent-shim usage` and its headroom is unknown rather than full. It ranks behind every `pay-per-use` member whose allowance is on record. */
27294
+ readonly usageUnrecorded?: boolean;
27209
27295
  /** When an `ineligible` candidate can be used again. */
27210
27296
  readonly blockedUntilMs?: number;
27211
27297
  /** When the exhausted plan window of a `pay-per-use` candidate that is only on extra usage because its plan ran out resets, so a launch can hold for it rather than spend. Absent for a candidate that bills by use with no plan allowance. */
@@ -27245,9 +27331,9 @@ interface PoolRanking {
27245
27331
  /**
27246
27332
  * Ranks `members` for a launch.
27247
27333
  *
27248
- * A member is `ineligible` while a window of its plan, or a refusal it last hit, still binds; it is `unknown` without recorded quota, `pay-per-use` when its usage bills by use, and otherwise `scored`. Scored members order by how much plan-size-weighted quota would expire unused per hour of runway, with any whose five-hour window would run dry at the observed pace (their own, or the person's pace on another member rescaled by plan size) or whose seven-day window would run dry at its own observed pace placed behind those that would not. The member last picked for this directory then moves to the front if it still serves on plan quota and is not projected to run dry, and either the launch resumes a conversation or its prompt cache is still warm; a resumed conversation that cannot keep its member re-ranks and continues on the pick, with the move named in `movedOff`.
27334
+ * A member is `ineligible` while a window of its plan, or a refusal it last hit, still binds; it is `pay-per-use` when its usage bills by use (including an account whose metadata says so and that has no usage recorded yet), `unknown` without recorded quota and no such plan, and otherwise `scored`. Scored members order by how much plan-size-weighted quota would expire unused per hour of runway, with any whose five-hour window would run dry at the observed pace (their own, or the person's pace on another member rescaled by plan size) or whose seven-day window would run dry at its own observed pace placed behind those that would not. The member last picked for this directory then moves to the front if it still serves on plan quota and is not projected to run dry, and either the launch resumes a conversation or its prompt cache is still warm; a resumed conversation that cannot keep its member re-ranks and continues on the pick, with the move named in `movedOff`.
27249
27335
  *
27250
- * How members are ordered depends on `preference`. The default, "score", is the order above: class first, then feasibility, then score, with ties by name. "listed" keeps the order of `members`, which callers build in pool member order, so member order, not class, decides: an `unknown` (no usage recorded) or `pay-per-use` member can be picked before a later `scored` one, which is the list owner's stated preference, and a `scored` member that is not feasible keeps its place and its reason line rather than being demoted. In both modes the pick is the first non-`ineligible` candidate, `earliestReturn` still reports the soonest returning refused member, and the sticky-pick promotion applies unchanged.
27336
+ * How members are ordered depends on `preference`. The default, "score", is the order above: class first, then feasibility, then (among members that bill by use) those whose usage is recorded before those whose is not, then headroom, then score, with ties by name. "listed" keeps the order of `members`, which callers build in pool member order, so member order, not class, decides: an `unknown` (no usage recorded) or `pay-per-use` member can be picked before a later `scored` one, which is the list owner's stated preference, and a `scored` member that is not feasible keeps its place and its reason line rather than being demoted. In both modes the pick is the first non-`ineligible` candidate, `earliestReturn` still reports the soonest returning refused member, and the sticky-pick promotion applies unchanged.
27251
27337
  */
27252
27338
  declare function rankPool(input: RankPoolInput): PoolRanking;
27253
27339
 
@@ -27278,14 +27364,6 @@ declare function collectPoolPick(params: Readonly<{
27278
27364
  nowMs: number;
27279
27365
  }>): PoolPickReport;
27280
27366
 
27281
- /** 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. */
27282
- interface SessionCommandFs extends AgentReadFs {
27283
- /** The real path `candidate` resolves to, or undefined when nothing is there. */
27284
- readonly realpath: (candidate: string) => string | undefined;
27285
- }
27286
- /** The real filesystem, for the commands and the door's sessions procedures. */
27287
- declare const realSessionFs: SessionCommandFs;
27288
-
27289
27367
  /**
27290
27368
  * 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.
27291
27369
  */
@@ -27852,5 +27930,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
27852
27930
  */
27853
27931
  declare function agentShimCliPath(distDir?: string | undefined): string;
27854
27932
 
27855
- 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 };
27856
- 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 };
27933
+ 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 };
27934
+ 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.1",
3
+ "version": "11.89.1",
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>",