agent-shim 9.18.0 → 9.19.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.
@@ -1332,8 +1332,8 @@ declare const HeadroomGlobalConfigSchema: z.ZodObject<{
1332
1332
  targetRatio: z.ZodOptional<z.ZodNumber>;
1333
1333
  ccr: z.ZodOptional<z.ZodEnum<{
1334
1334
  default: "default";
1335
- none: "none";
1336
1335
  lossless: "lossless";
1336
+ none: "none";
1337
1337
  }>>;
1338
1338
  rolloutChannel: z.ZodOptional<z.ZodEnum<{
1339
1339
  beta: "beta";
@@ -1460,8 +1460,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
1460
1460
  targetRatio: z.ZodOptional<z.ZodNumber>;
1461
1461
  ccr: z.ZodOptional<z.ZodEnum<{
1462
1462
  default: "default";
1463
- none: "none";
1464
1463
  lossless: "lossless";
1464
+ none: "none";
1465
1465
  }>>;
1466
1466
  rolloutChannel: z.ZodOptional<z.ZodEnum<{
1467
1467
  beta: "beta";
@@ -2650,6 +2650,243 @@ declare function realConnectCertStore(paths: {
2650
2650
  readonly frontdoorCaKeyFile: string;
2651
2651
  }): ConnectCertStore;
2652
2652
 
2653
+ /**
2654
+ * The agent tree of one session as the reader returns it, and the shape of the meta file it reads. One definition each, so the type, the validator and the published JSON Schema (`schema/AgentTree.schema.json`) cannot drift. The on-disk layout is documented in `docs/agent-transcripts.md`; it belongs to Claude Code and has changed across versions, which is why the meta file is read leniently and the tree this module returns is strict.
2655
+ */
2656
+ /**
2657
+ * One subagent's `.meta.json`. `agentType` is the one field every version writes; the rest appear only for the kinds and versions that write them, and a version this schema has never seen may add more, so unknown keys are kept rather than rejected.
2658
+ */
2659
+ declare const AgentMetaSchema: z.ZodObject<{
2660
+ agentType: z.ZodString;
2661
+ isFork: z.ZodOptional<z.ZodBoolean>;
2662
+ description: z.ZodOptional<z.ZodString>;
2663
+ name: z.ZodOptional<z.ZodString>;
2664
+ toolUseId: z.ZodOptional<z.ZodString>;
2665
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
2666
+ parentAgentId: z.ZodOptional<z.ZodString>;
2667
+ model: z.ZodOptional<z.ZodString>;
2668
+ requestShape: z.ZodOptional<z.ZodString>;
2669
+ requestNonInteractive: z.ZodOptional<z.ZodBoolean>;
2670
+ workflowPhase: z.ZodOptional<z.ZodString>;
2671
+ taskKind: z.ZodOptional<z.ZodString>;
2672
+ teamName: z.ZodOptional<z.ZodString>;
2673
+ worktreePath: z.ZodOptional<z.ZodString>;
2674
+ worktreeBranch: z.ZodOptional<z.ZodString>;
2675
+ stoppedByUser: z.ZodOptional<z.ZodBoolean>;
2676
+ }, z.core.$loose>;
2677
+ /** What kind of agent a node is, derived from its meta file: a fork inherits its parent's context, a workflow agent was spawned by a workflow run, a teammate belongs to a team. */
2678
+ declare const AgentKindSchema: z.ZodEnum<{
2679
+ subagent: "subagent";
2680
+ fork: "fork";
2681
+ "workflow-agent": "workflow-agent";
2682
+ teammate: "teammate";
2683
+ }>;
2684
+ /** One agent in a session's tree. `children` holds the agents it spawned. */
2685
+ interface AgentNode {
2686
+ /** The stem after `agent-` in its file names, which for an unnamed agent is the `task_id` Remote Control reports for it. */
2687
+ readonly id: string;
2688
+ readonly kind: z.infer<typeof AgentKindSchema>;
2689
+ readonly agentType: string;
2690
+ readonly description?: string;
2691
+ readonly name?: string;
2692
+ /** The `tool_use` block in the parent's transcript that spawned this agent. */
2693
+ readonly toolUseId?: string;
2694
+ readonly spawnDepth?: number;
2695
+ /** The model the spawn recorded: an alias or `inherit` as often as a concrete id, and not necessarily the model that served the agent's requests. */
2696
+ readonly model?: string;
2697
+ readonly background?: boolean;
2698
+ /** The workflow run this agent belongs to, when it was spawned by one. */
2699
+ readonly workflowRunId?: string;
2700
+ readonly workflowPhase?: string;
2701
+ readonly teamName?: string;
2702
+ readonly stoppedByUser?: boolean;
2703
+ /** The agent's transcript, relative to the identity's configuration directory. */
2704
+ readonly transcript: string;
2705
+ readonly children: readonly AgentNode[];
2706
+ }
2707
+ /** The node schema, written out so the recursive `children` field has a lazy reference to itself. */
2708
+ declare const AgentNodeSchema: z.ZodType<AgentNode>;
2709
+ /** One entry of a task list: the session's own (`tasks/<session-id>/<n>.json`, or `tasks/session-<first-eight-characters>/<n>.json` in current versions) or a shared one (`tasks/<list-id>/<n>.json`), a team's or one named by `CLAUDE_CODE_TASK_LIST_ID`. `status` is an open string: non-standard values occur. */
2710
+ declare const TaskItemSchema: z.ZodObject<{
2711
+ id: z.ZodString;
2712
+ subject: z.ZodString;
2713
+ description: z.ZodOptional<z.ZodString>;
2714
+ status: z.ZodString;
2715
+ activeForm: z.ZodOptional<z.ZodString>;
2716
+ owner: z.ZodOptional<z.ZodString>;
2717
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2718
+ blocks: z.ZodArray<z.ZodString>;
2719
+ blockedBy: z.ZodArray<z.ZodString>;
2720
+ taskList: z.ZodOptional<z.ZodString>;
2721
+ }, z.core.$strict>;
2722
+ /** One workflow run's record (`workflows/wf_<run-id>.json`), narrowed to what identifies and summarises it. */
2723
+ declare const WorkflowRunSchema: z.ZodObject<{
2724
+ runId: z.ZodString;
2725
+ workflowName: z.ZodOptional<z.ZodString>;
2726
+ status: z.ZodOptional<z.ZodString>;
2727
+ startTime: z.ZodOptional<z.ZodNumber>;
2728
+ phases: z.ZodArray<z.ZodString>;
2729
+ summary: z.ZodOptional<z.ZodString>;
2730
+ }, z.core.$strict>;
2731
+ /** One session in a listing: the cheap facts read from directory listings and one stat, and every identity whose configuration exposes it. */
2732
+ declare const SessionSummarySchema: z.ZodObject<{
2733
+ project: z.ZodString;
2734
+ sessionId: z.ZodString;
2735
+ superseded: z.ZodBoolean;
2736
+ entry: z.ZodString;
2737
+ agentCount: z.ZodNumber;
2738
+ workflowRunCount: z.ZodNumber;
2739
+ updatedAt: z.ZodOptional<z.ZodISODateTime>;
2740
+ identities: z.ZodArray<z.ZodString>;
2741
+ }, z.core.$strict>;
2742
+ /** The whole picture of one session's agents, tasks and workflow runs. */
2743
+ declare const SessionAgentTreeSchema: z.ZodObject<{
2744
+ project: z.ZodString;
2745
+ sessionId: z.ZodString;
2746
+ superseded: z.ZodBoolean;
2747
+ agents: z.ZodArray<z.ZodType<AgentNode, unknown, z.core.$ZodTypeInternals<AgentNode, unknown>>>;
2748
+ tasks: z.ZodArray<z.ZodObject<{
2749
+ id: z.ZodString;
2750
+ subject: z.ZodString;
2751
+ description: z.ZodOptional<z.ZodString>;
2752
+ status: z.ZodString;
2753
+ activeForm: z.ZodOptional<z.ZodString>;
2754
+ owner: z.ZodOptional<z.ZodString>;
2755
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2756
+ blocks: z.ZodArray<z.ZodString>;
2757
+ blockedBy: z.ZodArray<z.ZodString>;
2758
+ taskList: z.ZodOptional<z.ZodString>;
2759
+ }, z.core.$strict>>;
2760
+ workflowRuns: z.ZodArray<z.ZodObject<{
2761
+ runId: z.ZodString;
2762
+ workflowName: z.ZodOptional<z.ZodString>;
2763
+ status: z.ZodOptional<z.ZodString>;
2764
+ startTime: z.ZodOptional<z.ZodNumber>;
2765
+ phases: z.ZodArray<z.ZodString>;
2766
+ summary: z.ZodOptional<z.ZodString>;
2767
+ }, z.core.$strict>>;
2768
+ problems: z.ZodArray<z.ZodObject<{
2769
+ path: z.ZodString;
2770
+ reason: z.ZodString;
2771
+ }, z.core.$strict>>;
2772
+ }, z.core.$strict>;
2773
+ type AgentKind = z.output<typeof AgentKindSchema>;
2774
+ type TaskItem = z.output<typeof TaskItemSchema>;
2775
+ type WorkflowRun = z.output<typeof WorkflowRunSchema>;
2776
+ type SessionAgentTree = z.output<typeof SessionAgentTreeSchema>;
2777
+
2778
+ /**
2779
+ * The live half of the agent tree: what a Remote Control session's read stream says about its background tasks and subagents (`task_started`, `task_progress`, `task_updated`, `task_notification`, `background_tasks_changed`), and the merge of that with the tree read from disk. The event shapes are documented in `docs/rc-agent-events.md`. The stream exists only for sessions the door observes and only while they are live, so it is never the sole source: the disk tree is authoritative for every session and for completed content, and the stream supplies state the transcript has not flushed yet.
2780
+ */
2781
+ /** How many tasks one session's book keeps. Past it the oldest-observed finished task is dropped first, so a long-lived session cannot grow the door's memory without bound; a running task is never dropped for a finished one. */
2782
+ declare const LIVE_TASK_CAP = 512;
2783
+ /** One task or subagent as the stream describes it. `status` is an open string: only `completed` has been observed beyond the running state. */
2784
+ declare const LiveTaskSchema: z.ZodObject<{
2785
+ taskId: z.ZodString;
2786
+ sessionId: z.ZodString;
2787
+ runId: z.ZodOptional<z.ZodString>;
2788
+ toolUseId: z.ZodOptional<z.ZodString>;
2789
+ taskType: z.ZodOptional<z.ZodString>;
2790
+ description: z.ZodOptional<z.ZodString>;
2791
+ subagentType: z.ZodOptional<z.ZodString>;
2792
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
2793
+ parentTaskId: z.ZodOptional<z.ZodString>;
2794
+ backgrounded: z.ZodOptional<z.ZodBoolean>;
2795
+ status: z.ZodString;
2796
+ outputFile: z.ZodOptional<z.ZodString>;
2797
+ summary: z.ZodOptional<z.ZodString>;
2798
+ lastToolName: z.ZodOptional<z.ZodString>;
2799
+ usage: z.ZodOptional<z.ZodObject<{
2800
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2801
+ toolUses: z.ZodOptional<z.ZodNumber>;
2802
+ durationMs: z.ZodOptional<z.ZodNumber>;
2803
+ }, z.core.$strict>>;
2804
+ observedAt: z.ZodNumber;
2805
+ }, z.core.$strict>;
2806
+ type LiveTask = z.output<typeof LiveTaskSchema>;
2807
+ /** A session's live tasks by `task_id`. */
2808
+ type LiveTaskBook = ReadonlyMap<string, LiveTask>;
2809
+ /**
2810
+ * Folds one stream payload into a session's book and returns the next book (the same one when the payload is not a task event). `task_started` births a task, `task_progress` and `task_notification` refine it, `task_updated` applies its patch, and `background_tasks_changed` fills in the tasks it lists without inventing a state for ones it omits: the snapshot says what is live, not that an unlisted task finished.
2811
+ *
2812
+ * A payload that does not match is ignored, never an error: the stream belongs to Claude Code and gains fields and subtypes between versions.
2813
+ */
2814
+ declare function applyAgentTaskEvent(book: LiveTaskBook, sessionId: string, payload: unknown, observedAt: number): LiveTaskBook;
2815
+ /** How a merged node relates to the stream: `disk` was only on disk, `both` was matched by a live task. A task only the stream knows is not a node but a member of `liveOnly`. */
2816
+ declare const MergedProvenanceSchema: z.ZodEnum<{
2817
+ disk: "disk";
2818
+ both: "both";
2819
+ }>;
2820
+ /** An agent node of the merged tree: the disk node as read (it wins for everything the transcript holds), the stream's state beside it when a live task matched. */
2821
+ interface MergedAgentNode extends Omit<AgentNode, "children"> {
2822
+ readonly provenance: z.output<typeof MergedProvenanceSchema>;
2823
+ readonly live?: LiveTask;
2824
+ readonly children: readonly MergedAgentNode[];
2825
+ }
2826
+ /** The merged node schema, recursive through a lazy reference like the disk node's. */
2827
+ declare const MergedAgentNodeSchema: z.ZodType<MergedAgentNode>;
2828
+ /** One session's agent tree with the stream's view merged in. */
2829
+ declare const MergedAgentTreeSchema: z.ZodObject<{
2830
+ agents: z.ZodArray<z.ZodType<MergedAgentNode, unknown, z.core.$ZodTypeInternals<MergedAgentNode, unknown>>>;
2831
+ remoteSessions: z.ZodArray<z.ZodString>;
2832
+ liveOnly: z.ZodArray<z.ZodObject<{
2833
+ taskId: z.ZodString;
2834
+ sessionId: z.ZodString;
2835
+ runId: z.ZodOptional<z.ZodString>;
2836
+ toolUseId: z.ZodOptional<z.ZodString>;
2837
+ taskType: z.ZodOptional<z.ZodString>;
2838
+ description: z.ZodOptional<z.ZodString>;
2839
+ subagentType: z.ZodOptional<z.ZodString>;
2840
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
2841
+ parentTaskId: z.ZodOptional<z.ZodString>;
2842
+ backgrounded: z.ZodOptional<z.ZodBoolean>;
2843
+ status: z.ZodString;
2844
+ outputFile: z.ZodOptional<z.ZodString>;
2845
+ summary: z.ZodOptional<z.ZodString>;
2846
+ lastToolName: z.ZodOptional<z.ZodString>;
2847
+ usage: z.ZodOptional<z.ZodObject<{
2848
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2849
+ toolUses: z.ZodOptional<z.ZodNumber>;
2850
+ durationMs: z.ZodOptional<z.ZodNumber>;
2851
+ }, z.core.$strict>>;
2852
+ observedAt: z.ZodNumber;
2853
+ }, z.core.$strict>>;
2854
+ project: z.ZodString;
2855
+ sessionId: z.ZodString;
2856
+ superseded: z.ZodBoolean;
2857
+ tasks: z.ZodArray<z.ZodObject<{
2858
+ id: z.ZodString;
2859
+ subject: z.ZodString;
2860
+ description: z.ZodOptional<z.ZodString>;
2861
+ status: z.ZodString;
2862
+ activeForm: z.ZodOptional<z.ZodString>;
2863
+ owner: z.ZodOptional<z.ZodString>;
2864
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2865
+ blocks: z.ZodArray<z.ZodString>;
2866
+ blockedBy: z.ZodArray<z.ZodString>;
2867
+ taskList: z.ZodOptional<z.ZodString>;
2868
+ }, z.core.$strict>>;
2869
+ workflowRuns: z.ZodArray<z.ZodObject<{
2870
+ runId: z.ZodString;
2871
+ workflowName: z.ZodOptional<z.ZodString>;
2872
+ status: z.ZodOptional<z.ZodString>;
2873
+ startTime: z.ZodOptional<z.ZodNumber>;
2874
+ phases: z.ZodArray<z.ZodString>;
2875
+ summary: z.ZodOptional<z.ZodString>;
2876
+ }, z.core.$strict>>;
2877
+ problems: z.ZodArray<z.ZodObject<{
2878
+ path: z.ZodString;
2879
+ reason: z.ZodString;
2880
+ }, z.core.$strict>>;
2881
+ }, z.core.$strict>;
2882
+ type MergedAgentTree = z.output<typeof MergedAgentTreeSchema>;
2883
+ /**
2884
+ * Merges the live tasks into one session's disk tree.
2885
+ *
2886
+ * A live task belongs to the session when its `task_id` is a disk agent's id, its `tool_use_id` is a disk agent's `toolUseId`, or its `output_file` sits under the session's local id (the only place the stream states it). Matched agents keep every disk field and gain `live`; matched-by-session tasks that name no agent are `liveOnly`. Nothing is dropped from the disk tree and nothing the stream said overrides it.
2887
+ */
2888
+ declare function mergeLiveTasks(tree: SessionAgentTree, live: readonly LiveTask[]): MergedAgentTree;
2889
+
2653
2890
  /**
2654
2891
  * The persisted half of the tracker's client credential and of its sequence cursor: the OAuth-kind bearer and protocol headers a Remote Control session's client-half calls were last observed with, and the highest sequence number the door's stream attachment had confirmed when its last attachment boundary passed, written per session id so a later door generation can still attach to a session whose create crossed an earlier one and resume its read stream from where the last generation left off.
2655
2892
  *
@@ -2939,6 +3176,8 @@ interface RcSessionTracker {
2939
3176
  * Files one client read stream envelope: advances the session's sequence cursor, and treats the payload exactly as an observed event-batch body's would be treated, which is how an approval reaches the pending list from the stream (the live finding behind the client attachment: the CLI routes `control_request`s only toward attached clients, so the stream, not the worker's own writes, is where a `can_use_tool` the door must answer becomes visible). A `control_request` whose envelope names the worker as its source births a pending entry; a `control_response` retires the request it answers, whoever answered it.
2940
3177
  */
2941
3178
  readonly fileStreamEvent: (sessionId: string, event: RcStreamEnvelope) => void;
3179
+ /** The live background tasks and subagents the observed events described, for one session or every tracked one, each carrying the session that reported it and when it was last observed. */
3180
+ readonly liveTasksOf: (sessionId?: string) => readonly LiveTask[];
2942
3181
  /** Retires one pending control request as answered: what a successful answer write calls, so the request stops being listed the moment it is answered. */
2943
3182
  readonly completePending: (sessionId: string, requestId: string) => void;
2944
3183
  /** Stops the idle sweep timer. The entries themselves are unreachable the moment the door drops them. */
@@ -3911,12 +4150,12 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3911
4150
  identity: z.ZodObject<{
3912
4151
  name: z.ZodNullable<z.ZodString>;
3913
4152
  source: z.ZodEnum<{
4153
+ env: "env";
4154
+ none: "none";
3914
4155
  "config-dir-escape-hatch": "config-dir-escape-hatch";
3915
4156
  argv: "argv";
3916
- env: "env";
3917
4157
  "directory-pin": "directory-pin";
3918
4158
  "active-identity-file": "active-identity-file";
3919
- none: "none";
3920
4159
  }>;
3921
4160
  }, z.core.$strict>;
3922
4161
  pool: z.ZodOptional<z.ZodObject<{
@@ -3994,11 +4233,11 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3994
4233
  "category-default": "category-default";
3995
4234
  }>;
3996
4235
  category: z.ZodNullable<z.ZodEnum<{
3997
- secret: "secret";
3998
4236
  runtime: "runtime";
3999
4237
  history: "history";
4000
4238
  knowledge: "knowledge";
4001
4239
  settings: "settings";
4240
+ secret: "secret";
4002
4241
  }>>;
4003
4242
  rule: z.ZodOptional<z.ZodObject<{
4004
4243
  key: z.ZodString;
@@ -5281,6 +5520,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5281
5520
  kind: zod.ZodLiteral<"profile">;
5282
5521
  name: zod.ZodString;
5283
5522
  value: zod.ZodObject<{
5523
+ description: zod.ZodOptional<zod.ZodString>;
5284
5524
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
5285
5525
  value: zod.ZodBoolean;
5286
5526
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -5356,7 +5596,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5356
5596
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
5357
5597
  }, zod_v4_core.$strip>], "kind">]>;
5358
5598
  }, zod_v4_core.$strict>]>>>;
5359
- description: zod.ZodOptional<zod.ZodString>;
5360
5599
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
5361
5600
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
5362
5601
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -5400,6 +5639,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5400
5639
  kind: zod.ZodLiteral<"profile">;
5401
5640
  name: zod.ZodString;
5402
5641
  value: zod.ZodObject<{
5642
+ description: zod.ZodOptional<zod.ZodString>;
5403
5643
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
5404
5644
  value: zod.ZodBoolean;
5405
5645
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -5475,7 +5715,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5475
5715
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
5476
5716
  }, zod_v4_core.$strip>], "kind">]>;
5477
5717
  }, zod_v4_core.$strict>]>>>;
5478
- description: zod.ZodOptional<zod.ZodString>;
5479
5718
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
5480
5719
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
5481
5720
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -6567,9 +6806,9 @@ declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
6567
6806
  current: zod.ZodString;
6568
6807
  latest: zod.ZodString;
6569
6808
  action: zod.ZodEnum<{
6809
+ updated: "updated";
6570
6810
  current: "current";
6571
6811
  available: "available";
6572
- updated: "updated";
6573
6812
  }>;
6574
6813
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
6575
6814
  };
@@ -6816,12 +7055,12 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
6816
7055
  decision: zod.ZodObject<{
6817
7056
  identity: zod.ZodOptional<zod.ZodString>;
6818
7057
  identitySource: zod.ZodEnum<{
7058
+ env: "env";
7059
+ none: "none";
6819
7060
  "config-dir-escape-hatch": "config-dir-escape-hatch";
6820
7061
  argv: "argv";
6821
- env: "env";
6822
7062
  "directory-pin": "directory-pin";
6823
7063
  "active-identity-file": "active-identity-file";
6824
- none: "none";
6825
7064
  }>;
6826
7065
  pool: zod.ZodOptional<zod.ZodObject<{
6827
7066
  name: zod.ZodString;
@@ -6912,131 +7151,6 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
6912
7151
  /** The launch router, as the merged mount's and the client's own types are derived from it. */
6913
7152
  type LaunchApiRouter = ReturnType<typeof createLaunchApiRouter>;
6914
7153
 
6915
- /**
6916
- * The agent tree of one session as the reader returns it, and the shape of the meta file it reads. One definition each, so the type, the validator and the published JSON Schema (`schema/AgentTree.schema.json`) cannot drift. The on-disk layout is documented in `docs/agent-transcripts.md`; it belongs to Claude Code and has changed across versions, which is why the meta file is read leniently and the tree this module returns is strict.
6917
- */
6918
- /**
6919
- * One subagent's `.meta.json`. `agentType` is the one field every version writes; the rest appear only for the kinds and versions that write them, and a version this schema has never seen may add more, so unknown keys are kept rather than rejected.
6920
- */
6921
- declare const AgentMetaSchema: z.ZodObject<{
6922
- agentType: z.ZodString;
6923
- isFork: z.ZodOptional<z.ZodBoolean>;
6924
- description: z.ZodOptional<z.ZodString>;
6925
- name: z.ZodOptional<z.ZodString>;
6926
- toolUseId: z.ZodOptional<z.ZodString>;
6927
- spawnDepth: z.ZodOptional<z.ZodNumber>;
6928
- parentAgentId: z.ZodOptional<z.ZodString>;
6929
- model: z.ZodOptional<z.ZodString>;
6930
- requestShape: z.ZodOptional<z.ZodString>;
6931
- requestNonInteractive: z.ZodOptional<z.ZodBoolean>;
6932
- workflowPhase: z.ZodOptional<z.ZodString>;
6933
- taskKind: z.ZodOptional<z.ZodString>;
6934
- teamName: z.ZodOptional<z.ZodString>;
6935
- worktreePath: z.ZodOptional<z.ZodString>;
6936
- worktreeBranch: z.ZodOptional<z.ZodString>;
6937
- stoppedByUser: z.ZodOptional<z.ZodBoolean>;
6938
- }, z.core.$loose>;
6939
- /** What kind of agent a node is, derived from its meta file: a fork inherits its parent's context, a workflow agent was spawned by a workflow run, a teammate belongs to a team. */
6940
- declare const AgentKindSchema: z.ZodEnum<{
6941
- subagent: "subagent";
6942
- fork: "fork";
6943
- "workflow-agent": "workflow-agent";
6944
- teammate: "teammate";
6945
- }>;
6946
- /** One agent in a session's tree. `children` holds the agents it spawned. */
6947
- interface AgentNode {
6948
- /** The stem after `agent-` in its file names, which for an unnamed agent is the `task_id` Remote Control reports for it. */
6949
- readonly id: string;
6950
- readonly kind: z.infer<typeof AgentKindSchema>;
6951
- readonly agentType: string;
6952
- readonly description?: string;
6953
- readonly name?: string;
6954
- /** The `tool_use` block in the parent's transcript that spawned this agent. */
6955
- readonly toolUseId?: string;
6956
- readonly spawnDepth?: number;
6957
- /** The model the spawn recorded: an alias or `inherit` as often as a concrete id, and not necessarily the model that served the agent's requests. */
6958
- readonly model?: string;
6959
- readonly background?: boolean;
6960
- /** The workflow run this agent belongs to, when it was spawned by one. */
6961
- readonly workflowRunId?: string;
6962
- readonly workflowPhase?: string;
6963
- readonly teamName?: string;
6964
- readonly stoppedByUser?: boolean;
6965
- /** The agent's transcript, relative to the identity's configuration directory. */
6966
- readonly transcript: string;
6967
- readonly children: readonly AgentNode[];
6968
- }
6969
- /** The node schema, written out so the recursive `children` field has a lazy reference to itself. */
6970
- declare const AgentNodeSchema: z.ZodType<AgentNode>;
6971
- /** One entry of a task list: the session's own (`tasks/<session-id>/<n>.json`, or `tasks/session-<first-eight-characters>/<n>.json` in current versions) or a shared one (`tasks/<list-id>/<n>.json`), a team's or one named by `CLAUDE_CODE_TASK_LIST_ID`. `status` is an open string: non-standard values occur. */
6972
- declare const TaskItemSchema: z.ZodObject<{
6973
- id: z.ZodString;
6974
- subject: z.ZodString;
6975
- description: z.ZodOptional<z.ZodString>;
6976
- status: z.ZodString;
6977
- activeForm: z.ZodOptional<z.ZodString>;
6978
- owner: z.ZodOptional<z.ZodString>;
6979
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6980
- blocks: z.ZodArray<z.ZodString>;
6981
- blockedBy: z.ZodArray<z.ZodString>;
6982
- taskList: z.ZodOptional<z.ZodString>;
6983
- }, z.core.$strict>;
6984
- /** One workflow run's record (`workflows/wf_<run-id>.json`), narrowed to what identifies and summarises it. */
6985
- declare const WorkflowRunSchema: z.ZodObject<{
6986
- runId: z.ZodString;
6987
- workflowName: z.ZodOptional<z.ZodString>;
6988
- status: z.ZodOptional<z.ZodString>;
6989
- startTime: z.ZodOptional<z.ZodNumber>;
6990
- phases: z.ZodArray<z.ZodString>;
6991
- summary: z.ZodOptional<z.ZodString>;
6992
- }, z.core.$strict>;
6993
- /** One session in a listing: the cheap facts read from directory listings and one stat, and every identity whose configuration exposes it. */
6994
- declare const SessionSummarySchema: z.ZodObject<{
6995
- project: z.ZodString;
6996
- sessionId: z.ZodString;
6997
- superseded: z.ZodBoolean;
6998
- entry: z.ZodString;
6999
- agentCount: z.ZodNumber;
7000
- workflowRunCount: z.ZodNumber;
7001
- updatedAt: z.ZodOptional<z.ZodISODateTime>;
7002
- identities: z.ZodArray<z.ZodString>;
7003
- }, z.core.$strict>;
7004
- /** The whole picture of one session's agents, tasks and workflow runs. */
7005
- declare const SessionAgentTreeSchema: z.ZodObject<{
7006
- project: z.ZodString;
7007
- sessionId: z.ZodString;
7008
- superseded: z.ZodBoolean;
7009
- agents: z.ZodArray<z.ZodType<AgentNode, unknown, z.core.$ZodTypeInternals<AgentNode, unknown>>>;
7010
- tasks: z.ZodArray<z.ZodObject<{
7011
- id: z.ZodString;
7012
- subject: z.ZodString;
7013
- description: z.ZodOptional<z.ZodString>;
7014
- status: z.ZodString;
7015
- activeForm: z.ZodOptional<z.ZodString>;
7016
- owner: z.ZodOptional<z.ZodString>;
7017
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7018
- blocks: z.ZodArray<z.ZodString>;
7019
- blockedBy: z.ZodArray<z.ZodString>;
7020
- taskList: z.ZodOptional<z.ZodString>;
7021
- }, z.core.$strict>>;
7022
- workflowRuns: z.ZodArray<z.ZodObject<{
7023
- runId: z.ZodString;
7024
- workflowName: z.ZodOptional<z.ZodString>;
7025
- status: z.ZodOptional<z.ZodString>;
7026
- startTime: z.ZodOptional<z.ZodNumber>;
7027
- phases: z.ZodArray<z.ZodString>;
7028
- summary: z.ZodOptional<z.ZodString>;
7029
- }, z.core.$strict>>;
7030
- problems: z.ZodArray<z.ZodObject<{
7031
- path: z.ZodString;
7032
- reason: z.ZodString;
7033
- }, z.core.$strict>>;
7034
- }, z.core.$strict>;
7035
- type AgentKind = z.output<typeof AgentKindSchema>;
7036
- type TaskItem = z.output<typeof TaskItemSchema>;
7037
- type WorkflowRun = z.output<typeof WorkflowRunSchema>;
7038
- type SessionAgentTree = z.output<typeof SessionAgentTreeSchema>;
7039
-
7040
7154
  /**
7041
7155
  * 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`.
7042
7156
  */
@@ -7097,12 +7211,35 @@ declare const AgentTreesShowInputSchema: z.ZodObject<{
7097
7211
  session: z.ZodString;
7098
7212
  identity: z.ZodOptional<z.ZodString>;
7099
7213
  }, z.core.$strict>;
7100
- /** What `agentTrees.show` answers: the tree beside the identities that expose it. */
7214
+ /** What `agentTrees.show` answers: the tree read from disk with the live Remote Control tasks merged in, beside the identities that expose it. */
7101
7215
  declare const AgentTreesShowOutputSchema: z.ZodObject<{
7216
+ agents: z.ZodArray<z.ZodType<MergedAgentNode, unknown, z.core.$ZodTypeInternals<MergedAgentNode, unknown>>>;
7217
+ remoteSessions: z.ZodArray<z.ZodString>;
7218
+ liveOnly: z.ZodArray<z.ZodObject<{
7219
+ taskId: z.ZodString;
7220
+ sessionId: z.ZodString;
7221
+ runId: z.ZodOptional<z.ZodString>;
7222
+ toolUseId: z.ZodOptional<z.ZodString>;
7223
+ taskType: z.ZodOptional<z.ZodString>;
7224
+ description: z.ZodOptional<z.ZodString>;
7225
+ subagentType: z.ZodOptional<z.ZodString>;
7226
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
7227
+ parentTaskId: z.ZodOptional<z.ZodString>;
7228
+ backgrounded: z.ZodOptional<z.ZodBoolean>;
7229
+ status: z.ZodString;
7230
+ outputFile: z.ZodOptional<z.ZodString>;
7231
+ summary: z.ZodOptional<z.ZodString>;
7232
+ lastToolName: z.ZodOptional<z.ZodString>;
7233
+ usage: z.ZodOptional<z.ZodObject<{
7234
+ totalTokens: z.ZodOptional<z.ZodNumber>;
7235
+ toolUses: z.ZodOptional<z.ZodNumber>;
7236
+ durationMs: z.ZodOptional<z.ZodNumber>;
7237
+ }, z.core.$strict>>;
7238
+ observedAt: z.ZodNumber;
7239
+ }, z.core.$strict>>;
7102
7240
  project: z.ZodString;
7103
7241
  sessionId: z.ZodString;
7104
7242
  superseded: z.ZodBoolean;
7105
- agents: z.ZodArray<z.ZodType<AgentNode, unknown, z.core.$ZodTypeInternals<AgentNode, unknown>>>;
7106
7243
  tasks: z.ZodArray<z.ZodObject<{
7107
7244
  id: z.ZodString;
7108
7245
  subject: z.ZodString;
@@ -7142,6 +7279,8 @@ interface AgentTreesApiDeps {
7142
7279
  readonly identities: readonly string[];
7143
7280
  readonly tree: z.infer<typeof SessionAgentTreeSchema>;
7144
7281
  };
7282
+ /** The live tasks the door has observed on its Remote Control sessions, which the disk tree is merged with. Empty when no session is live. */
7283
+ readonly liveTasks: () => readonly LiveTask[];
7145
7284
  }
7146
7285
  /** Builds the agent trees router: two reads, behind the control-token middleware. */
7147
7286
  declare function createAgentTreesApiRouter(deps: AgentTreesApiDeps): {
@@ -7163,10 +7302,33 @@ declare function createAgentTreesApiRouter(deps: AgentTreesApiDeps): {
7163
7302
  session: z.ZodString;
7164
7303
  identity: z.ZodOptional<z.ZodString>;
7165
7304
  }, z.core.$strict>, z.ZodObject<{
7305
+ agents: z.ZodArray<z.ZodType<MergedAgentNode, unknown, z.core.$ZodTypeInternals<MergedAgentNode, unknown>>>;
7306
+ remoteSessions: z.ZodArray<z.ZodString>;
7307
+ liveOnly: z.ZodArray<z.ZodObject<{
7308
+ taskId: z.ZodString;
7309
+ sessionId: z.ZodString;
7310
+ runId: z.ZodOptional<z.ZodString>;
7311
+ toolUseId: z.ZodOptional<z.ZodString>;
7312
+ taskType: z.ZodOptional<z.ZodString>;
7313
+ description: z.ZodOptional<z.ZodString>;
7314
+ subagentType: z.ZodOptional<z.ZodString>;
7315
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
7316
+ parentTaskId: z.ZodOptional<z.ZodString>;
7317
+ backgrounded: z.ZodOptional<z.ZodBoolean>;
7318
+ status: z.ZodString;
7319
+ outputFile: z.ZodOptional<z.ZodString>;
7320
+ summary: z.ZodOptional<z.ZodString>;
7321
+ lastToolName: z.ZodOptional<z.ZodString>;
7322
+ usage: z.ZodOptional<z.ZodObject<{
7323
+ totalTokens: z.ZodOptional<z.ZodNumber>;
7324
+ toolUses: z.ZodOptional<z.ZodNumber>;
7325
+ durationMs: z.ZodOptional<z.ZodNumber>;
7326
+ }, z.core.$strict>>;
7327
+ observedAt: z.ZodNumber;
7328
+ }, z.core.$strict>>;
7166
7329
  project: z.ZodString;
7167
7330
  sessionId: z.ZodString;
7168
7331
  superseded: z.ZodBoolean;
7169
- agents: z.ZodArray<z.ZodType<AgentNode, unknown, z.core.$ZodTypeInternals<AgentNode, unknown>>>;
7170
7332
  tasks: z.ZodArray<z.ZodObject<{
7171
7333
  id: z.ZodString;
7172
7334
  subject: z.ZodString;
@@ -7493,12 +7655,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7493
7655
  identity: zod.ZodObject<{
7494
7656
  name: zod.ZodNullable<zod.ZodString>;
7495
7657
  source: zod.ZodEnum<{
7658
+ env: "env";
7659
+ none: "none";
7496
7660
  "config-dir-escape-hatch": "config-dir-escape-hatch";
7497
7661
  argv: "argv";
7498
- env: "env";
7499
7662
  "directory-pin": "directory-pin";
7500
7663
  "active-identity-file": "active-identity-file";
7501
- none: "none";
7502
7664
  }>;
7503
7665
  }, zod_v4_core.$strict>;
7504
7666
  pool: zod.ZodOptional<zod.ZodObject<{
@@ -7576,11 +7738,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7576
7738
  "category-default": "category-default";
7577
7739
  }>;
7578
7740
  category: zod.ZodNullable<zod.ZodEnum<{
7579
- secret: "secret";
7580
7741
  runtime: "runtime";
7581
7742
  history: "history";
7582
7743
  knowledge: "knowledge";
7583
7744
  settings: "settings";
7745
+ secret: "secret";
7584
7746
  }>>;
7585
7747
  rule: zod.ZodOptional<zod.ZodObject<{
7586
7748
  key: zod.ZodString;
@@ -7799,10 +7961,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7799
7961
  "global-config": "global-config";
7800
7962
  "config-profile": "config-profile";
7801
7963
  identity: "identity";
7964
+ keychain: "keychain";
7802
7965
  provider: "provider";
7966
+ headroom: "headroom";
7803
7967
  frontdoor: "frontdoor";
7804
7968
  pool: "pool";
7805
- keychain: "keychain";
7806
7969
  "ambient-credential": "ambient-credential";
7807
7970
  "binary-discovery": "binary-discovery";
7808
7971
  "claude-shim": "claude-shim";
@@ -7812,7 +7975,6 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7812
7975
  "directory-rules": "directory-rules";
7813
7976
  "categories-local": "categories-local";
7814
7977
  "active-identity": "active-identity";
7815
- headroom: "headroom";
7816
7978
  }>;
7817
7979
  subject: zod.ZodOptional<zod.ZodString>;
7818
7980
  severity: zod.ZodEnum<{
@@ -7942,10 +8104,33 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7942
8104
  session: zod.ZodString;
7943
8105
  identity: zod.ZodOptional<zod.ZodString>;
7944
8106
  }, zod_v4_core.$strict>, zod.ZodObject<{
8107
+ agents: zod.ZodArray<zod.ZodType<MergedAgentNode, unknown, zod_v4_core.$ZodTypeInternals<MergedAgentNode, unknown>>>;
8108
+ remoteSessions: zod.ZodArray<zod.ZodString>;
8109
+ liveOnly: zod.ZodArray<zod.ZodObject<{
8110
+ taskId: zod.ZodString;
8111
+ sessionId: zod.ZodString;
8112
+ runId: zod.ZodOptional<zod.ZodString>;
8113
+ toolUseId: zod.ZodOptional<zod.ZodString>;
8114
+ taskType: zod.ZodOptional<zod.ZodString>;
8115
+ description: zod.ZodOptional<zod.ZodString>;
8116
+ subagentType: zod.ZodOptional<zod.ZodString>;
8117
+ spawnDepth: zod.ZodOptional<zod.ZodNumber>;
8118
+ parentTaskId: zod.ZodOptional<zod.ZodString>;
8119
+ backgrounded: zod.ZodOptional<zod.ZodBoolean>;
8120
+ status: zod.ZodString;
8121
+ outputFile: zod.ZodOptional<zod.ZodString>;
8122
+ summary: zod.ZodOptional<zod.ZodString>;
8123
+ lastToolName: zod.ZodOptional<zod.ZodString>;
8124
+ usage: zod.ZodOptional<zod.ZodObject<{
8125
+ totalTokens: zod.ZodOptional<zod.ZodNumber>;
8126
+ toolUses: zod.ZodOptional<zod.ZodNumber>;
8127
+ durationMs: zod.ZodOptional<zod.ZodNumber>;
8128
+ }, zod_v4_core.$strict>>;
8129
+ observedAt: zod.ZodNumber;
8130
+ }, zod_v4_core.$strict>>;
7945
8131
  project: zod.ZodString;
7946
8132
  sessionId: zod.ZodString;
7947
8133
  superseded: zod.ZodBoolean;
7948
- agents: zod.ZodArray<zod.ZodType<AgentNode, unknown, zod_v4_core.$ZodTypeInternals<AgentNode, unknown>>>;
7949
8134
  tasks: zod.ZodArray<zod.ZodObject<{
7950
8135
  id: zod.ZodString;
7951
8136
  subject: zod.ZodString;
@@ -7982,12 +8167,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7982
8167
  decision: zod.ZodObject<{
7983
8168
  identity: zod.ZodOptional<zod.ZodString>;
7984
8169
  identitySource: zod.ZodEnum<{
8170
+ env: "env";
8171
+ none: "none";
7985
8172
  "config-dir-escape-hatch": "config-dir-escape-hatch";
7986
8173
  argv: "argv";
7987
- env: "env";
7988
8174
  "directory-pin": "directory-pin";
7989
8175
  "active-identity-file": "active-identity-file";
7990
- none: "none";
7991
8176
  }>;
7992
8177
  pool: zod.ZodOptional<zod.ZodObject<{
7993
8178
  name: zod.ZodString;
@@ -8285,6 +8470,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8285
8470
  kind: zod.ZodLiteral<"profile">;
8286
8471
  name: zod.ZodString;
8287
8472
  value: zod.ZodObject<{
8473
+ description: zod.ZodOptional<zod.ZodString>;
8288
8474
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
8289
8475
  value: zod.ZodBoolean;
8290
8476
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -8360,7 +8546,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8360
8546
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
8361
8547
  }, zod_v4_core.$strip>], "kind">]>;
8362
8548
  }, zod_v4_core.$strict>]>>>;
8363
- description: zod.ZodOptional<zod.ZodString>;
8364
8549
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
8365
8550
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
8366
8551
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -8404,6 +8589,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8404
8589
  kind: zod.ZodLiteral<"profile">;
8405
8590
  name: zod.ZodString;
8406
8591
  value: zod.ZodObject<{
8592
+ description: zod.ZodOptional<zod.ZodString>;
8407
8593
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
8408
8594
  value: zod.ZodBoolean;
8409
8595
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -8479,7 +8665,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8479
8665
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
8480
8666
  }, zod_v4_core.$strip>], "kind">]>;
8481
8667
  }, zod_v4_core.$strict>]>>>;
8482
- description: zod.ZodOptional<zod.ZodString>;
8483
8668
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
8484
8669
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
8485
8670
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -9363,9 +9548,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9363
9548
  current: zod.ZodString;
9364
9549
  latest: zod.ZodString;
9365
9550
  action: zod.ZodEnum<{
9551
+ updated: "updated";
9366
9552
  current: "current";
9367
9553
  available: "available";
9368
- updated: "updated";
9369
9554
  }>;
9370
9555
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
9371
9556
  };
@@ -9564,12 +9749,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9564
9749
  identity: zod.ZodObject<{
9565
9750
  name: zod.ZodNullable<zod.ZodString>;
9566
9751
  source: zod.ZodEnum<{
9752
+ env: "env";
9753
+ none: "none";
9567
9754
  "config-dir-escape-hatch": "config-dir-escape-hatch";
9568
9755
  argv: "argv";
9569
- env: "env";
9570
9756
  "directory-pin": "directory-pin";
9571
9757
  "active-identity-file": "active-identity-file";
9572
- none: "none";
9573
9758
  }>;
9574
9759
  }, zod_v4_core.$strict>;
9575
9760
  pool: zod.ZodOptional<zod.ZodObject<{
@@ -9647,11 +9832,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9647
9832
  "category-default": "category-default";
9648
9833
  }>;
9649
9834
  category: zod.ZodNullable<zod.ZodEnum<{
9650
- secret: "secret";
9651
9835
  runtime: "runtime";
9652
9836
  history: "history";
9653
9837
  knowledge: "knowledge";
9654
9838
  settings: "settings";
9839
+ secret: "secret";
9655
9840
  }>>;
9656
9841
  rule: zod.ZodOptional<zod.ZodObject<{
9657
9842
  key: zod.ZodString;
@@ -9870,10 +10055,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9870
10055
  "global-config": "global-config";
9871
10056
  "config-profile": "config-profile";
9872
10057
  identity: "identity";
10058
+ keychain: "keychain";
9873
10059
  provider: "provider";
10060
+ headroom: "headroom";
9874
10061
  frontdoor: "frontdoor";
9875
10062
  pool: "pool";
9876
- keychain: "keychain";
9877
10063
  "ambient-credential": "ambient-credential";
9878
10064
  "binary-discovery": "binary-discovery";
9879
10065
  "claude-shim": "claude-shim";
@@ -9883,7 +10069,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9883
10069
  "directory-rules": "directory-rules";
9884
10070
  "categories-local": "categories-local";
9885
10071
  "active-identity": "active-identity";
9886
- headroom: "headroom";
9887
10072
  }>;
9888
10073
  subject: zod.ZodOptional<zod.ZodString>;
9889
10074
  severity: zod.ZodEnum<{
@@ -10393,6 +10578,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
10393
10578
  kind: z.ZodLiteral<"profile">;
10394
10579
  name: z.ZodString;
10395
10580
  value: z.ZodObject<{
10581
+ description: z.ZodOptional<z.ZodString>;
10396
10582
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
10397
10583
  value: z.ZodBoolean;
10398
10584
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -10468,7 +10654,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
10468
10654
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
10469
10655
  }, z.core.$strip>], "kind">]>;
10470
10656
  }, z.core.$strict>]>>>;
10471
- description: z.ZodOptional<z.ZodString>;
10472
10657
  extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
10473
10658
  categories: z.ZodOptional<z.ZodPipe<z.ZodObject<{
10474
10659
  all: z.ZodOptional<z.ZodBoolean>;
@@ -10514,6 +10699,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
10514
10699
  kind: z.ZodLiteral<"profile">;
10515
10700
  name: z.ZodString;
10516
10701
  value: z.ZodObject<{
10702
+ description: z.ZodOptional<z.ZodString>;
10517
10703
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
10518
10704
  value: z.ZodBoolean;
10519
10705
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -10589,7 +10775,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
10589
10775
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
10590
10776
  }, z.core.$strip>], "kind">]>;
10591
10777
  }, z.core.$strict>]>>>;
10592
- description: z.ZodOptional<z.ZodString>;
10593
10778
  extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
10594
10779
  categories: z.ZodOptional<z.ZodPipe<z.ZodObject<{
10595
10780
  all: z.ZodOptional<z.ZodBoolean>;
@@ -11716,10 +11901,11 @@ declare const DoctorFindingSchema: z.ZodObject<{
11716
11901
  "global-config": "global-config";
11717
11902
  "config-profile": "config-profile";
11718
11903
  identity: "identity";
11904
+ keychain: "keychain";
11719
11905
  provider: "provider";
11906
+ headroom: "headroom";
11720
11907
  frontdoor: "frontdoor";
11721
11908
  pool: "pool";
11722
- keychain: "keychain";
11723
11909
  "ambient-credential": "ambient-credential";
11724
11910
  "binary-discovery": "binary-discovery";
11725
11911
  "claude-shim": "claude-shim";
@@ -11729,7 +11915,6 @@ declare const DoctorFindingSchema: z.ZodObject<{
11729
11915
  "directory-rules": "directory-rules";
11730
11916
  "categories-local": "categories-local";
11731
11917
  "active-identity": "active-identity";
11732
- headroom: "headroom";
11733
11918
  }>;
11734
11919
  subject: z.ZodOptional<z.ZodString>;
11735
11920
  severity: z.ZodEnum<{
@@ -11747,10 +11932,11 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
11747
11932
  "global-config": "global-config";
11748
11933
  "config-profile": "config-profile";
11749
11934
  identity: "identity";
11935
+ keychain: "keychain";
11750
11936
  provider: "provider";
11937
+ headroom: "headroom";
11751
11938
  frontdoor: "frontdoor";
11752
11939
  pool: "pool";
11753
- keychain: "keychain";
11754
11940
  "ambient-credential": "ambient-credential";
11755
11941
  "binary-discovery": "binary-discovery";
11756
11942
  "claude-shim": "claude-shim";
@@ -11760,7 +11946,6 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
11760
11946
  "directory-rules": "directory-rules";
11761
11947
  "categories-local": "categories-local";
11762
11948
  "active-identity": "active-identity";
11763
- headroom: "headroom";
11764
11949
  }>;
11765
11950
  subject: z.ZodOptional<z.ZodString>;
11766
11951
  severity: z.ZodEnum<{
@@ -11781,9 +11966,9 @@ declare const UpdateCheckOutputSchema: z.ZodObject<{
11781
11966
  current: z.ZodString;
11782
11967
  latest: z.ZodString;
11783
11968
  action: z.ZodEnum<{
11969
+ updated: "updated";
11784
11970
  current: "current";
11785
11971
  available: "available";
11786
- updated: "updated";
11787
11972
  }>;
11788
11973
  }, z.core.$strict>;
11789
11974
  /** The Sign in with ChatGPT login's state as `codex status` reports it: no sign-in yet, signed in (with who, whether the plan scope was granted, and when the access token lapses), or a file that cannot be read. */
@@ -11833,12 +12018,12 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
11833
12018
  decision: z.ZodObject<{
11834
12019
  identity: z.ZodOptional<z.ZodString>;
11835
12020
  identitySource: z.ZodEnum<{
12021
+ env: "env";
12022
+ none: "none";
11836
12023
  "config-dir-escape-hatch": "config-dir-escape-hatch";
11837
12024
  argv: "argv";
11838
- env: "env";
11839
12025
  "directory-pin": "directory-pin";
11840
12026
  "active-identity-file": "active-identity-file";
11841
- none: "none";
11842
12027
  }>;
11843
12028
  pool: z.ZodOptional<z.ZodObject<{
11844
12029
  name: z.ZodString;
@@ -13210,5 +13395,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
13210
13395
  */
13211
13396
  declare function agentShimCliPath(distDir?: string | undefined): string;
13212
13397
 
13213
- 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, 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, 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, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, RC_CONTEXT_USAGE_DETAILS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PERMISSION_MODES, RC_READ_FILE_ENCODINGS, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, WorkflowRunSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, listDirectoryRules, listIdentities, listProfiles, listProviders, listSessions, listUsageSnapshots, locateSession, matchBranch, 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, 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, setPool, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, writeDirectoryRules };
13214
- 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, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LocatedSession, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolMember, PoolPickReport, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResetRow, ResetSchedule, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SessionAgentTree, SessionCommandFs, SessionListFilters, SessionRef, SessionSummary, SessionView, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, TaskItem, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation, WorkflowRun };
13398
+ 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, 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, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorControlMaterialError, FrontDoorNotServingError, FrontDoorRestartOutputSchema, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LIVE_TASK_CAP, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, LiveTaskSchema, MergedAgentNodeSchema, MergedAgentTreeSchema, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, RC_CONTEXT_USAGE_DETAILS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_DEADLINE_MS, RC_PERMISSION_MODES, RC_READ_FILE_ENCODINGS, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, 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, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, 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, 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, setPool, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, writeDirectoryRules };
13399
+ 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, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolMember, PoolPickReport, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingRequestSummary, RcPermissionMode, RcPresenceAnswer, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RecoverFarmParams, RecoveryResult, RefreshLaunchPoolUsageOptions, RefreshPoolUsageParams, RefreshStalePoolMembersParams, ResetRow, ResetSchedule, ResolveClaudeLaunchOptions, ResolveDecisionsInput, ResolveLaunchSelectionParams, ResolvedState, ResyncFarmParams, ResyncFarmResult, RunCheckParams, RunClaudeLaunchOptions, RunDoctorParams, RunFrontDoorSupervisorOptions, RunLauncherParams, RunSupervisorOptions, SessionAgentTree, SessionCommandFs, SessionListFilters, SessionRef, SessionSummary, SessionView, SpawnClaudeParams, SseParsedEvent, StickyPick, SupervisorPorts, TaskItem, UnreadableIdentityListEntry, UpdateDirectoryRuleOptions, UpdateProviderInput, UsageChangeEvent, UsageReadFs, UsageSnapshot, WhenCondition, WhenEvaluation, WorkflowRun };