claude-use 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.
@@ -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. */
@@ -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;
@@ -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;
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "9.18.0",
3
+ "version": "9.19.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>",