claude-use 14.3.1 → 14.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.cjs +2672 -2097
- package/dist/index.cjs +1437 -974
- package/dist/index.mjs +1396 -933
- package/dist/types/index.d.ts +190 -38
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -800,8 +800,8 @@ declare const LaunchSchema: z.ZodObject<{
|
|
|
800
800
|
project: z.ZodOptional<z.ZodObject<{
|
|
801
801
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
802
802
|
full: "full";
|
|
803
|
-
2: "2";
|
|
804
803
|
1: "1";
|
|
804
|
+
2: "2";
|
|
805
805
|
3: "3";
|
|
806
806
|
}>>;
|
|
807
807
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2038,8 +2038,8 @@ declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
2038
2038
|
project: z.ZodOptional<z.ZodObject<{
|
|
2039
2039
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
2040
2040
|
full: "full";
|
|
2041
|
-
2: "2";
|
|
2042
2041
|
1: "1";
|
|
2042
|
+
2: "2";
|
|
2043
2043
|
3: "3";
|
|
2044
2044
|
}>>;
|
|
2045
2045
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2888,8 +2888,8 @@ declare const DirectoryRuleSchema: z.ZodObject<{
|
|
|
2888
2888
|
project: z.ZodOptional<z.ZodObject<{
|
|
2889
2889
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
2890
2890
|
full: "full";
|
|
2891
|
-
2: "2";
|
|
2892
2891
|
1: "1";
|
|
2892
|
+
2: "2";
|
|
2893
2893
|
3: "3";
|
|
2894
2894
|
}>>;
|
|
2895
2895
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3664,8 +3664,8 @@ declare const DirectoryRulesSchema: z.ZodObject<{
|
|
|
3664
3664
|
project: z.ZodOptional<z.ZodObject<{
|
|
3665
3665
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
3666
3666
|
full: "full";
|
|
3667
|
-
2: "2";
|
|
3668
3667
|
1: "1";
|
|
3668
|
+
2: "2";
|
|
3669
3669
|
3: "3";
|
|
3670
3670
|
}>>;
|
|
3671
3671
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4440,8 +4440,8 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
4440
4440
|
project: z.ZodOptional<z.ZodObject<{
|
|
4441
4441
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
4442
4442
|
full: "full";
|
|
4443
|
-
2: "2";
|
|
4444
4443
|
1: "1";
|
|
4444
|
+
2: "2";
|
|
4445
4445
|
3: "3";
|
|
4446
4446
|
}>>;
|
|
4447
4447
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5196,8 +5196,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
5196
5196
|
project: z.ZodOptional<z.ZodObject<{
|
|
5197
5197
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
5198
5198
|
full: "full";
|
|
5199
|
-
2: "2";
|
|
5200
5199
|
1: "1";
|
|
5200
|
+
2: "2";
|
|
5201
5201
|
3: "3";
|
|
5202
5202
|
}>>;
|
|
5203
5203
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5613,6 +5613,8 @@ interface LayoutPaths {
|
|
|
5613
5613
|
readonly identityNameRenamesDir: string;
|
|
5614
5614
|
/** Directory holding one `<launcher-pid>.<id>.json` record per launch in progress, named by the id of the identity it launches, written before the identity's farm is resynced and removed once the child has exited. Runtime state, never configuration: it is what lets `identity rename --move` see a launch that has resynced but not yet started its child. */
|
|
5615
5615
|
readonly launchesDir: string;
|
|
5616
|
+
/** Directory holding one `<launcher-pid>.<id>.json` record per unsupervised launch that loaded the in-process control plugin, naming the plugin's directory, written before the child starts and removed once it has exited: what the front door reads to reach such a session. Runtime state, never configuration. */
|
|
5617
|
+
readonly launchControlDir: string;
|
|
5616
5618
|
/** Directory of the supervised sessions' shared state, one subdirectory per pool: the live sessions each launcher registers, so sessions on one account see each other, and the lock that serialises their moves. Runtime state, never configuration. */
|
|
5617
5619
|
readonly superviseDir: string;
|
|
5618
5620
|
/** Directory of the model-move requests the front door writes for supervised sessions that picked a model served under another identity: one `<sessionId>.json` per pending request, claimed and removed by the session's supervisor. Runtime state, never configuration. */
|
|
@@ -5684,6 +5686,8 @@ interface EntryFact {
|
|
|
5684
5686
|
readonly isDirectory: boolean;
|
|
5685
5687
|
/** True when the entry is itself a symlink (including the relative, tree-escaping symlinks that already exist inside a real `~/.claude`). */
|
|
5686
5688
|
readonly isSymlink: boolean;
|
|
5689
|
+
/** True when the entry is a symlink that reaches nothing once followed to its end, so what it would be is unknown; false for every other entry. */
|
|
5690
|
+
readonly isDanglingSymlink: boolean;
|
|
5687
5691
|
/** The entry's own mtime. */
|
|
5688
5692
|
readonly mtimeMs: number;
|
|
5689
5693
|
/** The most recent mtime anywhere in this entry's subtree — its own mtime for a plain file. A directory-scoped `newerThan` must read this, never the directory's own inode mtime, which does not change when a file three levels down is rewritten. */
|
|
@@ -5754,7 +5758,7 @@ interface EliminatedRule {
|
|
|
5754
5758
|
readonly failed: readonly string[];
|
|
5755
5759
|
}
|
|
5756
5760
|
/** Every diagnostic the resolver can raise. Codes are stable strings so `agent-shim check` and tests can assert on them. */
|
|
5757
|
-
declare const DIAGNOSTIC_CODES: readonly ["EXTENDS_CYCLE", "MISSING_PROFILE", "SECRET_ENTRY_KEY", "SECRET_PATH_NEUTRALISED", "CATEGORY_PREFIX_MISMATCH", "MALFORMED_ENTRY_KEY", "EXACT_ENTRY_OVERRIDDEN_BY_LATER_GLOB", "AMBIGUOUS_PROJECT_ENCODING", "UNROOTED_PROJECT_PATH", "UNCLASSIFIED_ENTRY", "EMPTY_WHEN", "FARM_MANIFEST_MISSING", "RECONCILE_CONFLICT", "RECONCILE_SECRET_BLOCKED", "FARM_SWAP_RECOVERED", "FARM_PREVIOUS_RETAINED"];
|
|
5761
|
+
declare const DIAGNOSTIC_CODES: readonly ["EXTENDS_CYCLE", "MISSING_PROFILE", "SECRET_ENTRY_KEY", "SECRET_PATH_NEUTRALISED", "CATEGORY_PREFIX_MISMATCH", "MALFORMED_ENTRY_KEY", "EXACT_ENTRY_OVERRIDDEN_BY_LATER_GLOB", "AMBIGUOUS_PROJECT_ENCODING", "UNROOTED_PROJECT_PATH", "UNCLASSIFIED_ENTRY", "EMPTY_WHEN", "FARM_MANIFEST_MISSING", "RECONCILE_CONFLICT", "RECONCILE_SECRET_BLOCKED", "FARM_SWAP_RECOVERED", "FARM_PREVIOUS_RETAINED", "SHARED_ENTRY_DANGLING"];
|
|
5758
5762
|
type DiagnosticCode = (typeof DIAGNOSTIC_CODES)[number];
|
|
5759
5763
|
/** Severity of a diagnostic. An `error` means a configuration layer asked for something the tool refused to do. */
|
|
5760
5764
|
declare const DIAGNOSTIC_SEVERITIES: readonly ["error", "warning", "info"];
|
|
@@ -5823,6 +5827,8 @@ interface FarmPlan {
|
|
|
5823
5827
|
readonly rel: string;
|
|
5824
5828
|
readonly target: string;
|
|
5825
5829
|
}[];
|
|
5830
|
+
/** Shared entries left out of the farm because their `~/.claude` path is a symlink that reaches nothing, in plan order. */
|
|
5831
|
+
readonly dangling: readonly string[];
|
|
5826
5832
|
}
|
|
5827
5833
|
|
|
5828
5834
|
/**
|
|
@@ -6089,6 +6095,8 @@ interface PrivateWriteOptions {
|
|
|
6089
6095
|
interface FarmFs {
|
|
6090
6096
|
/** Stats one path without following symlinks, or returns undefined when nothing is there. */
|
|
6091
6097
|
readonly lstat: (path: string) => FarmStat | undefined;
|
|
6098
|
+
/** Whether `path` reaches something once every symlink along it is followed to its end: false when nothing is there, or when a symlink on the way points at nothing. Used to tell a symlink that leads somewhere from one that dangles, which `lstat` alone cannot. */
|
|
6099
|
+
readonly resolves: (path: string) => boolean;
|
|
6092
6100
|
/** Lists one directory's immediate child names, or an empty list when it does not exist. */
|
|
6093
6101
|
readonly readdir: (path: string) => readonly string[];
|
|
6094
6102
|
/** Creates a directory and any missing parents, succeeding silently when it already exists. */
|
|
@@ -6229,6 +6237,13 @@ interface FrontDoorUp {
|
|
|
6229
6237
|
declare const FARM_MANIFEST_FILENAME = ".agent-shim-farm.json";
|
|
6230
6238
|
/** Reads and validates the manifest at a farm root, or undefined when it is missing, unparseable, or does not validate. */
|
|
6231
6239
|
declare function readFarmManifest(fs: FarmFs, farmRoot: string): FarmManifest | undefined;
|
|
6240
|
+
/** A link in an identity's farm that leads nowhere. */
|
|
6241
|
+
interface DanglingFarmLink {
|
|
6242
|
+
/** The link's path relative to the farm root. */
|
|
6243
|
+
readonly rel: string;
|
|
6244
|
+
/** Where the farm's manifest records the link pointing; undefined for a link the manifest does not record. */
|
|
6245
|
+
readonly target?: string;
|
|
6246
|
+
}
|
|
6232
6247
|
/** Everything `buildEntryFacts` needs. Everything except the tree itself is injected, so the fact manifest is reproducible from a fake filesystem, a fake clock, and a fake branch. */
|
|
6233
6248
|
interface BuildEntryFactsParams {
|
|
6234
6249
|
readonly fs: FarmFs;
|
|
@@ -6365,6 +6380,8 @@ interface ResyncFarmResult {
|
|
|
6365
6380
|
readonly noOp: boolean;
|
|
6366
6381
|
/** The manifest the farm now carries — the newly written one, or the existing one on a no-op. */
|
|
6367
6382
|
readonly manifest: FarmManifest;
|
|
6383
|
+
/** The manifest the farm carried before this resync, read under the lock; undefined when the farm had none this release can read. Comparing its links with `manifest`'s says which links this resync removed. */
|
|
6384
|
+
readonly previousManifest?: FarmManifest;
|
|
6368
6385
|
/** The fully resolved state, including the flattened cascade's launch flags, which the launcher goes on to use. */
|
|
6369
6386
|
readonly resolved: ResolvedState;
|
|
6370
6387
|
readonly adopted: readonly string[];
|
|
@@ -8334,6 +8351,12 @@ type CompactionResult = {
|
|
|
8334
8351
|
readonly reason: string;
|
|
8335
8352
|
};
|
|
8336
8353
|
|
|
8354
|
+
/** What the plugin API answered for a submitted turn: the text that entered the session, and whether the origin the engine stamped on it is the control plugin's own submission as the person's words. */
|
|
8355
|
+
interface SubmittedTurn {
|
|
8356
|
+
readonly text: string;
|
|
8357
|
+
readonly asUser: boolean;
|
|
8358
|
+
}
|
|
8359
|
+
|
|
8337
8360
|
/**
|
|
8338
8361
|
* A session's `/goal` as its transcript records it, read with no effect on the session: Claude Code keeps no goal state anywhere a process outside it can ask, so the transcript is the one source a reader has.
|
|
8339
8362
|
*
|
|
@@ -8346,6 +8369,20 @@ interface TranscriptGoal {
|
|
|
8346
8369
|
readonly lastCheck?: string;
|
|
8347
8370
|
}
|
|
8348
8371
|
|
|
8372
|
+
/**
|
|
8373
|
+
* The turns the control plugin submitted as the person's words, as a supervised session's transcript records them: the one place a process outside the session can confirm that such a turn entered the conversation, and how.
|
|
8374
|
+
*
|
|
8375
|
+
* The 2.1.319 CLI writes a prompt a plugin submitted with `$.prompt.submit({ text, asUser: true })` as a user row (`{"type":"user","origin":{"kind":"plugin","name":<plugin>,"asUser":true},"message":{"role":"user","content":<text>},...}`), the text bare, as the model reads it. A row with any other origin (the person's own Enter, a peer session, another plugin, a framed plugin prompt) is not one of these.
|
|
8376
|
+
*/
|
|
8377
|
+
/** The latest turn the control plugin submitted, and how many the transcript records in all. */
|
|
8378
|
+
interface PluginTurns {
|
|
8379
|
+
readonly count: number;
|
|
8380
|
+
readonly last: {
|
|
8381
|
+
readonly uuid: string;
|
|
8382
|
+
readonly text: string;
|
|
8383
|
+
} | undefined;
|
|
8384
|
+
}
|
|
8385
|
+
|
|
8349
8386
|
/** The brand only `rcSelfHostEventDial` puts on a dial: not exported, so no other code can make a value of the type. */
|
|
8350
8387
|
declare const SELF_HOST_DIAL: unique symbol;
|
|
8351
8388
|
/**
|
|
@@ -8430,21 +8467,20 @@ interface RcClaudeCodeVersions {
|
|
|
8430
8467
|
/** Drops the sessions `isTracked` no longer holds, so an ended session's version is not kept. */
|
|
8431
8468
|
readonly sweep: (isTracked: (sessionId: string) => boolean) => void;
|
|
8432
8469
|
}
|
|
8433
|
-
/** Subscribes to every session's stream and files the `claude_code_version` each worker-sourced `system/init` names, the worker's own statement of the version it runs
|
|
8470
|
+
/** Subscribes to every session's stream and files the `claude_code_version` each worker-sourced `system/init` names, the worker's own statement of the version it runs. A 2.1.319 or 2.1.325 worker emits one once it has taken a turn and again after each later turn, not when its stream opens, so a session that has run no turn has no version filed yet and the self-hosted route refuses it until it has. An event a client wrote is never taken for the worker's. In memory: on the self-hosted surface a session lives exactly as long as the door that serves it. */
|
|
8434
8471
|
declare function createRcClaudeCodeVersions(fanout: RcEventFanout): RcClaudeCodeVersions;
|
|
8435
8472
|
|
|
8436
8473
|
/**
|
|
8437
|
-
* Goal and
|
|
8474
|
+
* Goal, compaction and turn control over a Remote Control session: read, set and clear its `/goal`, compact its conversation, and put a person's typed turn into it, each returning the outcome the session itself reports. One verb surface over the two routes Claude Code 2.1.319 leaves open, chosen per session:
|
|
8438
8475
|
*
|
|
8439
|
-
* - **A supervised session** (one an agent-shim supervisor launched, whatever its account or provider): the door finds the launch through the registry, by the `bridge-session` row Claude Code writes into the session's own transcript, and asks the session's in-process control plugin (`supervise/sessionControlPlugin.ts`), which runs `$.session.compact
|
|
8440
|
-
* - **A session
|
|
8476
|
+
* - **A supervised session** (one an agent-shim supervisor launched, whatever its account or provider): the door finds the launch through the registry, by the `bridge-session` row Claude Code writes into the session's own transcript, and asks the session's in-process control plugin (`supervise/sessionControlPlugin.ts`), which runs `$.session.compact`, `/goal <condition>` and `/goal clear` through the plugin API, or submits a person's turn with `$.prompt.submit` as the person's words. The goal is read from the transcript's `goal_status` rows, with no effect on the session.
|
|
8477
|
+
* - **A launched session** (one the launcher started with no supervisor, which loads the same control plugin, `supervise/launchControl.ts`): the same plugin, found through the launch's control record by the same `bridge-session` row, in the transcript the plugin itself recorded. Everything the plugin does is the same; what needs the supervisor (resuming on a spent quota, moving to another member) is not there.
|
|
8478
|
+
* - **A session on the door's self-hosted surface** that no supervisor owns and no control plugin reaches: the door is the Remote Control service there, so it writes the slash command or the turn into its own conversation as a person's app would and reads the worker's answer off the stream (`rcSelfHostCommands.ts`).
|
|
8441
8479
|
*
|
|
8442
|
-
* Any other session is refused with the reason: the door has no in-process channel into it, and on the real service the worker runs a slash command only when a person's app wrote it (it treats every other writer, the door's own `send` among them, as a peer whose message the model reads as text), which the door will not claim to be.
|
|
8480
|
+
* Any other session is refused with the reason (one started outside the launcher, with `--native` or `--bare`, or on a version the plugin was not verified on): the door has no in-process channel into it, and on the real service the worker runs a slash command only when a person's app wrote it (it treats every other writer, the door's own `send` among them, as a peer whose message the model reads as text), which the door will not claim to be.
|
|
8443
8481
|
*
|
|
8444
8482
|
* Both routes are verified for exactly the Claude Code versions `RC_SESSION_COMMAND_VERIFIED_VERSIONS` names, read from the running binary itself (the plugin's `$.session.version()`, or the worker's own `system/init`), and every verb refuses a session on any other version, or one whose version is not known.
|
|
8445
8483
|
*/
|
|
8446
|
-
/** The Claude Code versions both routes were verified on end to end; a session reporting any other version is refused. */
|
|
8447
|
-
declare const RC_SESSION_COMMAND_VERIFIED_VERSIONS: readonly string[];
|
|
8448
8484
|
/** The arguments the 2.1.319 `/goal` command reads as a request to clear the goal rather than set one, compared case-insensitively; a condition that is one of these words cannot be set through `/goal`, so the set verb refuses it rather than clear the goal by accident. */
|
|
8449
8485
|
declare const RC_GOAL_CLEAR_WORDS: readonly string[];
|
|
8450
8486
|
/** The longest goal condition the 2.1.319 `/goal` command accepts, in characters; it refuses a longer one with its own message, so the set verb refuses it first, unsent. */
|
|
@@ -8453,8 +8489,8 @@ declare const RC_GOAL_CONDITION_MAX_CHARS = 4000;
|
|
|
8453
8489
|
* The longest any verb waits for the session's answer: the largest delay Node's timers accept (a signed 32-bit millisecond count), since a larger one fires after one millisecond instead. Every wait the verbs take is bounded by it, in the schema, the CLI's parser and the timer itself.
|
|
8454
8490
|
*/
|
|
8455
8491
|
declare const RC_SESSION_COMMAND_MAX_WAIT_MS = 2147483647;
|
|
8456
|
-
/** Who answered: the session
|
|
8457
|
-
type RcSessionCommandRoute = "supervised" | "self-hosted";
|
|
8492
|
+
/** Who answered: the in-process control plugin of a session an agent-shim supervisor runs (`supervised`) or of one the launcher started with no supervisor (`launched`), or the door's own self-hosted surface. */
|
|
8493
|
+
type RcSessionCommandRoute = "supervised" | "launched" | "self-hosted";
|
|
8458
8494
|
/** One goal as the session reports it. */
|
|
8459
8495
|
type RcGoal = TranscriptGoal;
|
|
8460
8496
|
/** What a goal read found: the active goal, or `null` when the session has none. */
|
|
@@ -8480,6 +8516,18 @@ interface RcCompactReport {
|
|
|
8480
8516
|
readonly preTokens?: number;
|
|
8481
8517
|
readonly postTokens?: number;
|
|
8482
8518
|
}
|
|
8519
|
+
/** What a delivered turn reports: the uuid of the user entry the session recorded for it (the transcript row on the supervised route, the worker's mirrored entry on the self-hosted one). */
|
|
8520
|
+
interface RcTurnReport {
|
|
8521
|
+
readonly route: RcSessionCommandRoute;
|
|
8522
|
+
readonly uuid: string;
|
|
8523
|
+
}
|
|
8524
|
+
/** Which route the verbs would take for a session now, or why none would: the read a caller makes before offering a person a reply box. */
|
|
8525
|
+
type RcSessionRoute = {
|
|
8526
|
+
readonly route: RcSessionCommandRoute;
|
|
8527
|
+
} | {
|
|
8528
|
+
readonly route: null;
|
|
8529
|
+
readonly refused: string;
|
|
8530
|
+
};
|
|
8483
8531
|
/** One verb's outcome: the report, or a verbose failure ready to show a user. */
|
|
8484
8532
|
type RcSessionCommandResult<T> = {
|
|
8485
8533
|
readonly ok: true;
|
|
@@ -8500,11 +8548,11 @@ interface RcCompactOptions extends RcSessionCommandOptions {
|
|
|
8500
8548
|
/** Custom summarisation instructions. A directive to the session's model, which is why the typed API serves it under its own grant. */
|
|
8501
8549
|
readonly instructions?: string;
|
|
8502
8550
|
}
|
|
8503
|
-
/** The
|
|
8551
|
+
/** The launch a Remote Control session belongs to, as the door reaches it through the launch's in-process control plugin: a supervised launch, or one the launcher started with no supervisor. */
|
|
8504
8552
|
interface RcSupervisedTarget {
|
|
8505
8553
|
/** The conversation the plugin acts on: the session's current one, which differs from its launch id after `/clear`. */
|
|
8506
8554
|
readonly conversationId: string;
|
|
8507
|
-
/** The session's current transcript, the goal's record; undefined until the session's hooks have named it. */
|
|
8555
|
+
/** The session's current transcript, the goal's record; undefined until the session's hooks (a supervisor's) or its control plugin (a launch's) have named it. */
|
|
8508
8556
|
readonly transcriptPath: string | undefined;
|
|
8509
8557
|
/** The Claude Code version the plugin reported when it loaded; undefined when it has not loaded. */
|
|
8510
8558
|
readonly version: string | undefined;
|
|
@@ -8512,6 +8560,8 @@ interface RcSupervisedTarget {
|
|
|
8512
8560
|
readonly compact: (signal: AbortSignal, instructions: string | undefined, waitMs: number) => Promise<CompactionResult>;
|
|
8513
8561
|
/** Runs `/goal <args>` through the plugin, runnable for `waitMs` and no longer. */
|
|
8514
8562
|
readonly runGoal: (args: string, signal: AbortSignal, waitMs: number) => Promise<unknown>;
|
|
8563
|
+
/** Submits `text` as the person's words through the plugin, runnable for `waitMs` and no longer. */
|
|
8564
|
+
readonly submitTurn: (text: string, signal: AbortSignal, waitMs: number) => Promise<SubmittedTurn>;
|
|
8515
8565
|
}
|
|
8516
8566
|
/** Everything the verbs need, injected so they run against fakes in unit tests. */
|
|
8517
8567
|
interface RcSessionCommandDeps {
|
|
@@ -8519,8 +8569,14 @@ interface RcSessionCommandDeps {
|
|
|
8519
8569
|
readonly supervisedOf: (sessionId: string) => Promise<RcSupervisedTarget | {
|
|
8520
8570
|
readonly refused: string;
|
|
8521
8571
|
} | undefined>;
|
|
8572
|
+
/** The unsupervised launch a `cse_` session belongs to, asked only when no supervisor owns it: undefined when no live launch's control plugin records it, a refusal when two do. Absent when the host starts no sessions with the control plugin, and then no session takes the `launched` route. */
|
|
8573
|
+
readonly launchedOf?: (sessionId: string) => Promise<RcSupervisedTarget | {
|
|
8574
|
+
readonly refused: string;
|
|
8575
|
+
} | undefined>;
|
|
8522
8576
|
/** The goal a transcript leaves active, read incrementally without blocking (`transcriptFollower.ts`); undefined when the file does not exist. */
|
|
8523
8577
|
readonly goalOf: (path: string) => Promise<RcGoal | null | undefined>;
|
|
8578
|
+
/** The turns the control plugin submitted as the person's words, as a transcript records them (`sessionPluginTurns.ts`), read the same way; undefined when the file does not exist. */
|
|
8579
|
+
readonly pluginTurnsOf: (path: string) => Promise<PluginTurns | undefined>;
|
|
8524
8580
|
/** The door's own surface, present only when the door serves Remote Control itself: the one place it writes a command as a person's app. */
|
|
8525
8581
|
readonly selfHost: RcSelfHostCommandDeps | undefined;
|
|
8526
8582
|
/** Whether the door observes the session at all, so a mistyped id is refused as unknown rather than as unsupported. */
|
|
@@ -8528,6 +8584,12 @@ interface RcSessionCommandDeps {
|
|
|
8528
8584
|
}
|
|
8529
8585
|
/** Creates the verbs over their dependencies. Verbs on one session run one at a time, in the order they were asked, so two commands never interleave on one session and one never reads the other's answer. */
|
|
8530
8586
|
declare function createRcSessionCommands(deps: RcSessionCommandDeps): {
|
|
8587
|
+
/** Which route the verbs would take for the session now, or the refusal naming why none would; reads only, outside the session's queue, so a verb waiting on the session never delays it. */
|
|
8588
|
+
routeOf: (sessionId: string) => Promise<RcSessionRoute>;
|
|
8589
|
+
/**
|
|
8590
|
+
* Puts `text` into the session as a person's typed turn, and resolves once the session recorded it as a user entry from the person, never as a peer's message: on the supervised route a transcript row the control plugin submitted as the person's words (`origin: { kind: "plugin", asUser: true }`), on the self-hosted route the worker's mirrored entry with a person's origin (`{ kind: "human" }`). The text reaches the session's model as its user's words (`docs/rc-slash-commands.md`, the trust boundary). Refused unsent: text that is empty, starts with `/` (a slash command, which the goal and compaction verbs run), or is longer than one request carries. Resolves when the turn entered the session, not when the model has answered it.
|
|
8591
|
+
*/
|
|
8592
|
+
turn: (sessionId: string, text: string, options?: RcSessionCommandOptions) => Promise<RcSessionCommandResult<RcTurnReport>>;
|
|
8531
8593
|
/** Reads the session's goal: from the transcript for a supervised session, with no effect on it; by running `/goal` on the self-hosted surface otherwise. */
|
|
8532
8594
|
goalGet: (sessionId: string, options?: RcSessionCommandOptions) => Promise<RcSessionCommandResult<RcGoalReport>>;
|
|
8533
8595
|
/**
|
|
@@ -8798,6 +8860,10 @@ interface RcApiDeps {
|
|
|
8798
8860
|
readonly goalClear: (sessionId: string, options: RcSessionCommandOptions) => Promise<RcSessionCommandResult<RcGoalClearReport>>;
|
|
8799
8861
|
/** The compaction, routed the same way. */
|
|
8800
8862
|
readonly compact: (sessionId: string, options: RcCompactOptions) => Promise<RcSessionCommandResult<RcCompactReport>>;
|
|
8863
|
+
/** A person's typed turn, routed the same way. */
|
|
8864
|
+
readonly turn: (sessionId: string, text: string, options: RcSessionCommandOptions) => Promise<RcSessionCommandResult<RcTurnReport>>;
|
|
8865
|
+
/** Which route those verbs would take for a session now, or why none would; read for every session the status read reports. */
|
|
8866
|
+
readonly routeOf: (sessionId: string) => Promise<RcSessionRoute>;
|
|
8801
8867
|
/** The client attachment's fan-out, whose events the subscription yields. */
|
|
8802
8868
|
readonly fanout: RcEventFanout;
|
|
8803
8869
|
}
|
|
@@ -8823,6 +8889,16 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
8823
8889
|
session: zod.ZodOptional<zod.ZodString>;
|
|
8824
8890
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
8825
8891
|
statuses: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
|
|
8892
|
+
route: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
8893
|
+
route: zod.ZodEnum<{
|
|
8894
|
+
supervised: "supervised";
|
|
8895
|
+
launched: "launched";
|
|
8896
|
+
"self-hosted": "self-hosted";
|
|
8897
|
+
}>;
|
|
8898
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
8899
|
+
route: zod.ZodNull;
|
|
8900
|
+
refused: zod.ZodString;
|
|
8901
|
+
}, zod_v4_core.$strict>]>;
|
|
8826
8902
|
workerState: zod.ZodOptional<zod.ZodObject<{
|
|
8827
8903
|
value: zod.ZodString;
|
|
8828
8904
|
observedAt: zod.ZodNumber;
|
|
@@ -9042,6 +9118,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9042
9118
|
session: zod.ZodString;
|
|
9043
9119
|
route: zod.ZodEnum<{
|
|
9044
9120
|
supervised: "supervised";
|
|
9121
|
+
launched: "launched";
|
|
9045
9122
|
"self-hosted": "self-hosted";
|
|
9046
9123
|
}>;
|
|
9047
9124
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9055,6 +9132,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9055
9132
|
session: zod.ZodString;
|
|
9056
9133
|
route: zod.ZodEnum<{
|
|
9057
9134
|
supervised: "supervised";
|
|
9135
|
+
launched: "launched";
|
|
9058
9136
|
"self-hosted": "self-hosted";
|
|
9059
9137
|
}>;
|
|
9060
9138
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9066,6 +9144,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9066
9144
|
session: zod.ZodString;
|
|
9067
9145
|
route: zod.ZodEnum<{
|
|
9068
9146
|
supervised: "supervised";
|
|
9147
|
+
launched: "launched";
|
|
9069
9148
|
"self-hosted": "self-hosted";
|
|
9070
9149
|
}>;
|
|
9071
9150
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9079,6 +9158,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9079
9158
|
session: zod.ZodString;
|
|
9080
9159
|
route: zod.ZodEnum<{
|
|
9081
9160
|
supervised: "supervised";
|
|
9161
|
+
launched: "launched";
|
|
9082
9162
|
"self-hosted": "self-hosted";
|
|
9083
9163
|
}>;
|
|
9084
9164
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9093,6 +9173,20 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9093
9173
|
session: zod.ZodString;
|
|
9094
9174
|
route: zod.ZodEnum<{
|
|
9095
9175
|
supervised: "supervised";
|
|
9176
|
+
launched: "launched";
|
|
9177
|
+
"self-hosted": "self-hosted";
|
|
9178
|
+
}>;
|
|
9179
|
+
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9180
|
+
turn: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
|
|
9181
|
+
session: zod.ZodString;
|
|
9182
|
+
text: zod.ZodString;
|
|
9183
|
+
waitMs: zod.ZodOptional<zod.ZodInt>;
|
|
9184
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9185
|
+
uuid: zod.ZodString;
|
|
9186
|
+
session: zod.ZodString;
|
|
9187
|
+
route: zod.ZodEnum<{
|
|
9188
|
+
supervised: "supervised";
|
|
9189
|
+
launched: "launched";
|
|
9096
9190
|
"self-hosted": "self-hosted";
|
|
9097
9191
|
}>;
|
|
9098
9192
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9389,6 +9483,7 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
9389
9483
|
RECONCILE_SECRET_BLOCKED: "RECONCILE_SECRET_BLOCKED";
|
|
9390
9484
|
FARM_SWAP_RECOVERED: "FARM_SWAP_RECOVERED";
|
|
9391
9485
|
FARM_PREVIOUS_RETAINED: "FARM_PREVIOUS_RETAINED";
|
|
9486
|
+
SHARED_ENTRY_DANGLING: "SHARED_ENTRY_DANGLING";
|
|
9392
9487
|
}>;
|
|
9393
9488
|
severity: z.ZodEnum<{
|
|
9394
9489
|
error: "error";
|
|
@@ -9877,6 +9972,7 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
9877
9972
|
"path-resolution": "path-resolution";
|
|
9878
9973
|
"legacy-name": "legacy-name";
|
|
9879
9974
|
"sign-in": "sign-in";
|
|
9975
|
+
"farm-links": "farm-links";
|
|
9880
9976
|
"directory-rules": "directory-rules";
|
|
9881
9977
|
"categories-local": "categories-local";
|
|
9882
9978
|
"active-identity": "active-identity";
|
|
@@ -9909,6 +10005,7 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
9909
10005
|
"path-resolution": "path-resolution";
|
|
9910
10006
|
"legacy-name": "legacy-name";
|
|
9911
10007
|
"sign-in": "sign-in";
|
|
10008
|
+
"farm-links": "farm-links";
|
|
9912
10009
|
"directory-rules": "directory-rules";
|
|
9913
10010
|
"categories-local": "categories-local";
|
|
9914
10011
|
"active-identity": "active-identity";
|
|
@@ -10948,8 +11045,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10948
11045
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
10949
11046
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
10950
11047
|
full: "full";
|
|
10951
|
-
2: "2";
|
|
10952
11048
|
1: "1";
|
|
11049
|
+
2: "2";
|
|
10953
11050
|
3: "3";
|
|
10954
11051
|
}>>;
|
|
10955
11052
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -11672,8 +11769,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11672
11769
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
11673
11770
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
11674
11771
|
full: "full";
|
|
11675
|
-
2: "2";
|
|
11676
11772
|
1: "1";
|
|
11773
|
+
2: "2";
|
|
11677
11774
|
3: "3";
|
|
11678
11775
|
}>>;
|
|
11679
11776
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -12872,8 +12969,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
12872
12969
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
12873
12970
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
12874
12971
|
full: "full";
|
|
12875
|
-
2: "2";
|
|
12876
12972
|
1: "1";
|
|
12973
|
+
2: "2";
|
|
12877
12974
|
3: "3";
|
|
12878
12975
|
}>>;
|
|
12879
12976
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -13653,8 +13750,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13653
13750
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
13654
13751
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
13655
13752
|
full: "full";
|
|
13656
|
-
2: "2";
|
|
13657
13753
|
1: "1";
|
|
13754
|
+
2: "2";
|
|
13658
13755
|
3: "3";
|
|
13659
13756
|
}>>;
|
|
13660
13757
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -14670,8 +14767,8 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14670
14767
|
project: z.ZodOptional<z.ZodObject<{
|
|
14671
14768
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
14672
14769
|
full: "full";
|
|
14673
|
-
2: "2";
|
|
14674
14770
|
1: "1";
|
|
14771
|
+
2: "2";
|
|
14675
14772
|
3: "3";
|
|
14676
14773
|
}>>;
|
|
14677
14774
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -14739,6 +14836,12 @@ interface SupervisedLaunch {
|
|
|
14739
14836
|
readonly settingsFile?: string;
|
|
14740
14837
|
}
|
|
14741
14838
|
|
|
14839
|
+
/** One staged control plugin as a launch uses it: the arguments that load it, and what removes it and its record. */
|
|
14840
|
+
interface StagedLaunchControl {
|
|
14841
|
+
readonly args: (args: readonly string[]) => readonly string[];
|
|
14842
|
+
readonly release: () => void;
|
|
14843
|
+
}
|
|
14844
|
+
|
|
14742
14845
|
/** The outcome of authenticating the listener a front-door state file names. */
|
|
14743
14846
|
type ListenerVerdict = {
|
|
14744
14847
|
readonly ok: true;
|
|
@@ -14868,6 +14971,8 @@ interface PrepareLaunchParams {
|
|
|
14868
14971
|
readonly hasStoredLogin?: (identity: string) => boolean;
|
|
14869
14972
|
/** Whether Claude Code can authenticate with the login an identity has stored, asked only for an identity that has one (`claudeBin` is the binary the launch would run). Undefined when it cannot be determined, and then the stored login is assumed good. Absent when the caller cannot ask. */
|
|
14870
14973
|
readonly hasUsableLogin?: (identity: string, claudeBin: string) => boolean | undefined;
|
|
14974
|
+
/** Stages the in-process control plugin for an unsupervised launch that loads one (`launchLoadsControlPlugin`) and records where it listens for the front door (`supervise/launchControl.ts`). Absent when the caller cannot stage it, and then no launch loads it. */
|
|
14975
|
+
readonly stageControlPlugin?: () => StagedLaunchControl;
|
|
14871
14976
|
}
|
|
14872
14977
|
/** Inputs to `runLauncher`: a launch's inputs plus the port that spawns the child. */
|
|
14873
14978
|
interface RunLauncherParams extends PrepareLaunchParams {
|
|
@@ -15567,8 +15672,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15567
15672
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
15568
15673
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
15569
15674
|
full: "full";
|
|
15570
|
-
2: "2";
|
|
15571
15675
|
1: "1";
|
|
15676
|
+
2: "2";
|
|
15572
15677
|
3: "3";
|
|
15573
15678
|
}>>;
|
|
15574
15679
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -16351,6 +16456,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
16351
16456
|
RECONCILE_SECRET_BLOCKED: "RECONCILE_SECRET_BLOCKED";
|
|
16352
16457
|
FARM_SWAP_RECOVERED: "FARM_SWAP_RECOVERED";
|
|
16353
16458
|
FARM_PREVIOUS_RETAINED: "FARM_PREVIOUS_RETAINED";
|
|
16459
|
+
SHARED_ENTRY_DANGLING: "SHARED_ENTRY_DANGLING";
|
|
16354
16460
|
}>;
|
|
16355
16461
|
severity: z.ZodEnum<{
|
|
16356
16462
|
error: "error";
|
|
@@ -16552,6 +16658,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
16552
16658
|
"path-resolution": "path-resolution";
|
|
16553
16659
|
"legacy-name": "legacy-name";
|
|
16554
16660
|
"sign-in": "sign-in";
|
|
16661
|
+
"farm-links": "farm-links";
|
|
16555
16662
|
"directory-rules": "directory-rules";
|
|
16556
16663
|
"categories-local": "categories-local";
|
|
16557
16664
|
"active-identity": "active-identity";
|
|
@@ -17312,8 +17419,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17312
17419
|
project: z.ZodOptional<z.ZodObject<{
|
|
17313
17420
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
17314
17421
|
full: "full";
|
|
17315
|
-
2: "2";
|
|
17316
17422
|
1: "1";
|
|
17423
|
+
2: "2";
|
|
17317
17424
|
3: "3";
|
|
17318
17425
|
}>>;
|
|
17319
17426
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -18291,8 +18398,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18291
18398
|
project: z.ZodOptional<z.ZodObject<{
|
|
18292
18399
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
18293
18400
|
full: "full";
|
|
18294
|
-
2: "2";
|
|
18295
18401
|
1: "1";
|
|
18402
|
+
2: "2";
|
|
18296
18403
|
3: "3";
|
|
18297
18404
|
}>>;
|
|
18298
18405
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19015,8 +19122,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
19015
19122
|
project: z.ZodOptional<z.ZodObject<{
|
|
19016
19123
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
19017
19124
|
full: "full";
|
|
19018
|
-
2: "2";
|
|
19019
19125
|
1: "1";
|
|
19126
|
+
2: "2";
|
|
19020
19127
|
3: "3";
|
|
19021
19128
|
}>>;
|
|
19022
19129
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20215,8 +20322,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20215
20322
|
project: z.ZodOptional<z.ZodObject<{
|
|
20216
20323
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
20217
20324
|
full: "full";
|
|
20218
|
-
2: "2";
|
|
20219
20325
|
1: "1";
|
|
20326
|
+
2: "2";
|
|
20220
20327
|
3: "3";
|
|
20221
20328
|
}>>;
|
|
20222
20329
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20996,8 +21103,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20996
21103
|
project: z.ZodOptional<z.ZodObject<{
|
|
20997
21104
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
20998
21105
|
full: "full";
|
|
20999
|
-
2: "2";
|
|
21000
21106
|
1: "1";
|
|
21107
|
+
2: "2";
|
|
21001
21108
|
3: "3";
|
|
21002
21109
|
}>>;
|
|
21003
21110
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -21447,6 +21554,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21447
21554
|
RECONCILE_SECRET_BLOCKED: "RECONCILE_SECRET_BLOCKED";
|
|
21448
21555
|
FARM_SWAP_RECOVERED: "FARM_SWAP_RECOVERED";
|
|
21449
21556
|
FARM_PREVIOUS_RETAINED: "FARM_PREVIOUS_RETAINED";
|
|
21557
|
+
SHARED_ENTRY_DANGLING: "SHARED_ENTRY_DANGLING";
|
|
21450
21558
|
}>;
|
|
21451
21559
|
severity: z.ZodEnum<{
|
|
21452
21560
|
error: "error";
|
|
@@ -21648,6 +21756,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21648
21756
|
"path-resolution": "path-resolution";
|
|
21649
21757
|
"legacy-name": "legacy-name";
|
|
21650
21758
|
"sign-in": "sign-in";
|
|
21759
|
+
"farm-links": "farm-links";
|
|
21651
21760
|
"directory-rules": "directory-rules";
|
|
21652
21761
|
"categories-local": "categories-local";
|
|
21653
21762
|
"active-identity": "active-identity";
|
|
@@ -21791,6 +21900,16 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21791
21900
|
session: z.ZodOptional<z.ZodString>;
|
|
21792
21901
|
}, z.core.$strict>, z.ZodObject<{
|
|
21793
21902
|
statuses: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
21903
|
+
route: z.ZodUnion<readonly [z.ZodObject<{
|
|
21904
|
+
route: z.ZodEnum<{
|
|
21905
|
+
supervised: "supervised";
|
|
21906
|
+
launched: "launched";
|
|
21907
|
+
"self-hosted": "self-hosted";
|
|
21908
|
+
}>;
|
|
21909
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21910
|
+
route: z.ZodNull;
|
|
21911
|
+
refused: z.ZodString;
|
|
21912
|
+
}, z.core.$strict>]>;
|
|
21794
21913
|
workerState: z.ZodOptional<z.ZodObject<{
|
|
21795
21914
|
value: z.ZodString;
|
|
21796
21915
|
observedAt: z.ZodNumber;
|
|
@@ -22010,6 +22129,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22010
22129
|
session: z.ZodString;
|
|
22011
22130
|
route: z.ZodEnum<{
|
|
22012
22131
|
supervised: "supervised";
|
|
22132
|
+
launched: "launched";
|
|
22013
22133
|
"self-hosted": "self-hosted";
|
|
22014
22134
|
}>;
|
|
22015
22135
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22023,6 +22143,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22023
22143
|
session: z.ZodString;
|
|
22024
22144
|
route: z.ZodEnum<{
|
|
22025
22145
|
supervised: "supervised";
|
|
22146
|
+
launched: "launched";
|
|
22026
22147
|
"self-hosted": "self-hosted";
|
|
22027
22148
|
}>;
|
|
22028
22149
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22034,6 +22155,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22034
22155
|
session: z.ZodString;
|
|
22035
22156
|
route: z.ZodEnum<{
|
|
22036
22157
|
supervised: "supervised";
|
|
22158
|
+
launched: "launched";
|
|
22037
22159
|
"self-hosted": "self-hosted";
|
|
22038
22160
|
}>;
|
|
22039
22161
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22047,6 +22169,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22047
22169
|
session: z.ZodString;
|
|
22048
22170
|
route: z.ZodEnum<{
|
|
22049
22171
|
supervised: "supervised";
|
|
22172
|
+
launched: "launched";
|
|
22050
22173
|
"self-hosted": "self-hosted";
|
|
22051
22174
|
}>;
|
|
22052
22175
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22061,6 +22184,20 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22061
22184
|
session: z.ZodString;
|
|
22062
22185
|
route: z.ZodEnum<{
|
|
22063
22186
|
supervised: "supervised";
|
|
22187
|
+
launched: "launched";
|
|
22188
|
+
"self-hosted": "self-hosted";
|
|
22189
|
+
}>;
|
|
22190
|
+
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
22191
|
+
turn: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, z.ZodObject<{
|
|
22192
|
+
session: z.ZodString;
|
|
22193
|
+
text: z.ZodString;
|
|
22194
|
+
waitMs: z.ZodOptional<z.ZodInt>;
|
|
22195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22196
|
+
uuid: z.ZodString;
|
|
22197
|
+
session: z.ZodString;
|
|
22198
|
+
route: z.ZodEnum<{
|
|
22199
|
+
supervised: "supervised";
|
|
22200
|
+
launched: "launched";
|
|
22064
22201
|
"self-hosted": "self-hosted";
|
|
22065
22202
|
}>;
|
|
22066
22203
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -23018,8 +23155,8 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
23018
23155
|
project: z.ZodOptional<z.ZodObject<{
|
|
23019
23156
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23020
23157
|
full: "full";
|
|
23021
|
-
2: "2";
|
|
23022
23158
|
1: "1";
|
|
23159
|
+
2: "2";
|
|
23023
23160
|
3: "3";
|
|
23024
23161
|
}>>;
|
|
23025
23162
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -23744,8 +23881,8 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23744
23881
|
project: z.ZodOptional<z.ZodObject<{
|
|
23745
23882
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23746
23883
|
full: "full";
|
|
23747
|
-
2: "2";
|
|
23748
23884
|
1: "1";
|
|
23885
|
+
2: "2";
|
|
23749
23886
|
3: "3";
|
|
23750
23887
|
}>>;
|
|
23751
23888
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -24946,8 +25083,8 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
24946
25083
|
project: z.ZodOptional<z.ZodObject<{
|
|
24947
25084
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
24948
25085
|
full: "full";
|
|
24949
|
-
2: "2";
|
|
24950
25086
|
1: "1";
|
|
25087
|
+
2: "2";
|
|
24951
25088
|
3: "3";
|
|
24952
25089
|
}>>;
|
|
24953
25090
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -25729,8 +25866,8 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
25729
25866
|
project: z.ZodOptional<z.ZodObject<{
|
|
25730
25867
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
25731
25868
|
full: "full";
|
|
25732
|
-
2: "2";
|
|
25733
25869
|
1: "1";
|
|
25870
|
+
2: "2";
|
|
25734
25871
|
3: "3";
|
|
25735
25872
|
}>>;
|
|
25736
25873
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26416,8 +26553,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26416
26553
|
project: z.ZodOptional<z.ZodObject<{
|
|
26417
26554
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
26418
26555
|
full: "full";
|
|
26419
|
-
2: "2";
|
|
26420
26556
|
1: "1";
|
|
26557
|
+
2: "2";
|
|
26421
26558
|
3: "3";
|
|
26422
26559
|
}>>;
|
|
26423
26560
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26554,6 +26691,9 @@ declare function createQuotaExpiringPublisher(hub: DoorEventHub, deps: {
|
|
|
26554
26691
|
readonly nameOf: (id: string) => string | undefined;
|
|
26555
26692
|
}): QuotaExpiringPublisher;
|
|
26556
26693
|
|
|
26694
|
+
/** The Claude Code versions the control plugin and the door's goal, compaction and turn routes were verified on end to end (`docs/rc-slash-commands.md`): an unsupervised launch of any other version loads no control plugin, and the door refuses a session reporting any other version. */
|
|
26695
|
+
declare const RC_SESSION_COMMAND_VERIFIED_VERSIONS: readonly string[];
|
|
26696
|
+
|
|
26557
26697
|
/**
|
|
26558
26698
|
* The rate-limit facts one client read stream event carries, or undefined when the event is not a `rate_limit_event` this module can read: a payload of another type, a payload without the family's own one required field, or one whose `rate_limit_info` does not parse. An envelope the door cannot read is one it knows nothing about, never a failure, exactly as the stream's own parser treats an envelope it cannot read. Exported because the renderers (`frontdoor rc watch`, the web client's twin) narrow the same payload through the same one definition.
|
|
26559
26699
|
*/
|
|
@@ -28189,6 +28329,15 @@ interface DisplacedIdentityRecord extends IdentityRecord {
|
|
|
28189
28329
|
readonly directoryPresent: boolean;
|
|
28190
28330
|
}
|
|
28191
28331
|
|
|
28332
|
+
/** One identity's farm as the farm-links section reads it: the links in it that lead nowhere (`danglingFarmLinks`). */
|
|
28333
|
+
interface DoctorFarmLinksInput {
|
|
28334
|
+
/** The identity's name, which the finding is filed under and the remedy names. */
|
|
28335
|
+
readonly name: string;
|
|
28336
|
+
/** Its id, the directory under `identities/` the farm is. */
|
|
28337
|
+
readonly id: string;
|
|
28338
|
+
readonly dangling: readonly DanglingFarmLink[];
|
|
28339
|
+
}
|
|
28340
|
+
|
|
28192
28341
|
/**
|
|
28193
28342
|
* How the allowlist the headroom daemon serves lags the allowlist computed now. The daemon re-reads its allowlist file on every request that follows a change to it, and its supervisor rewrites the file and records the hash in the same tick, so a lag that lasts beyond one tick means the supervisor is not running or cannot write the file. A daemon started by an earlier release reads no file, and is reported as such instead.
|
|
28194
28343
|
*/
|
|
@@ -28273,7 +28422,7 @@ type ProviderAliases = z.infer<typeof ProviderAliasesSchema>;
|
|
|
28273
28422
|
|
|
28274
28423
|
declare const DOCTOR_SEVERITIES: readonly ["pass", "warn", "fail"];
|
|
28275
28424
|
type DoctorSeverity = (typeof DOCTOR_SEVERITIES)[number];
|
|
28276
|
-
declare const DOCTOR_SECTIONS: readonly ["ambient-credential", "binary-discovery", "claude-shim", "path-resolution", "legacy-name", "config-profile", "identity", "sign-in", "pool", "provider", "keychain", "directory-rules", "global-config", "categories-local", "active-identity", "headroom", "frontdoor", "models"];
|
|
28425
|
+
declare const DOCTOR_SECTIONS: readonly ["ambient-credential", "binary-discovery", "claude-shim", "path-resolution", "legacy-name", "config-profile", "identity", "sign-in", "farm-links", "pool", "provider", "keychain", "directory-rules", "global-config", "categories-local", "active-identity", "headroom", "frontdoor", "models"];
|
|
28277
28426
|
type DoctorSection = (typeof DOCTOR_SECTIONS)[number];
|
|
28278
28427
|
/** One line of `agent-shim doctor`'s report. `subject` names the identity/profile/rule the finding is about, when the section has more than one of those. */
|
|
28279
28428
|
interface DoctorFinding {
|
|
@@ -28350,6 +28499,8 @@ interface RunDoctorParams {
|
|
|
28350
28499
|
readonly raw: string | undefined;
|
|
28351
28500
|
};
|
|
28352
28501
|
readonly identities: readonly DoctorIdentityInput[];
|
|
28502
|
+
/** The links in each identity's farm that lead nowhere (`danglingFarmLinks`). Omit to leave the farm-links section out; with it, each such link warns, naming the identity, the entry and what brings the farm up to date. */
|
|
28503
|
+
readonly farmLinks?: readonly DoctorFarmLinksInput[];
|
|
28353
28504
|
/** Each identity's last recorded usage snapshot, by identity name. Omit to skip checking that pools and jobs read only windows their identities receive; an identity missing from it has no readable snapshot, so what it receives is unknown and nothing is reported for it. */
|
|
28354
28505
|
readonly usageSnapshots?: Readonly<Record<string, UsageSnapshot>>;
|
|
28355
28506
|
readonly configProfiles: readonly DoctorConfigProfileInput[];
|
|
@@ -28423,8 +28574,6 @@ interface RunDoctorParams {
|
|
|
28423
28574
|
* Every check aggregates rather than throws: a malformed file becomes one `fail` finding for that file, not an aborted report. This is the one place in the codebase that deliberately breaks the "throw a validation error and let it propagate" convention every other command relies on — `doctor`'s whole purpose is to survive a broken file and keep auditing everything else.
|
|
28424
28575
|
*/
|
|
28425
28576
|
declare function runDoctor(params: RunDoctorParams): DoctorReport;
|
|
28426
|
-
/** Renders a full `DoctorReport` as plain text lines, one section header at a time, in the order `agent-shim doctor` prints them. */
|
|
28427
|
-
declare function formatDoctorReport(report: DoctorReport): string[];
|
|
28428
28577
|
/** What `collectDoctorReport` needs from its caller. */
|
|
28429
28578
|
interface CollectDoctorReportParams {
|
|
28430
28579
|
readonly paths: LayoutPaths;
|
|
@@ -28435,6 +28584,9 @@ interface CollectDoctorReportParams {
|
|
|
28435
28584
|
*/
|
|
28436
28585
|
declare function collectDoctorReport(params: CollectDoctorReportParams): DoctorReport;
|
|
28437
28586
|
|
|
28587
|
+
/** Renders a full `DoctorReport` as plain text lines, one section header at a time, in the order `agent-shim doctor` prints them. */
|
|
28588
|
+
declare function formatDoctorReport(report: DoctorReport): string[];
|
|
28589
|
+
|
|
28438
28590
|
/** Inputs to `spawnClaude`. */
|
|
28439
28591
|
interface SpawnClaudeParams {
|
|
28440
28592
|
/** Full path to the real `claude` binary to run, as discovered by `src/versionDiscovery.ts`. */
|
|
@@ -28591,4 +28743,4 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
|
|
|
28591
28743
|
declare function agentShimCliPath(distDir?: string | undefined): string;
|
|
28592
28744
|
|
|
28593
28745
|
export { AMBIENT_CREDENTIAL_VARS, AgentKindSchema, AgentMetaSchema, AgentNodeSchema, AgentTreesListInputSchema, AgentTreesListOutputSchema, AgentTreesShowInputSchema, AgentTreesShowOutputSchema, CHECK_CREDENTIAL_APPLIES, CODEX_APP_SERVER_GENERATED_AGAINST, CODEX_APP_SERVER_TIMEOUT_MS, CONNECT_INTERCEPT_HOST, CONNECT_INTERCEPT_HOSTS, CONNECT_LIMITS, CONTROL_PATH_PREFIX, CategoryClassificationOverlaySchema, CategoryClassificationSchema, CategoryMapSchema, CheckReportJsonSchema, CheckRunInputSchema, CliError, CodexAccountReadSchema, CodexAppServerProtocolError, CodexAppServerRequestError, CodexAppServerUnavailableError, CodexLogoutOutputSchema, CodexRateLimitsReadSchema, CodexSignInSchema, CodexStatusOutputSchema, ConfigIdentityAddInputSchema, ConfigIdentityAddOutputSchema, ConfigIdentityRemoveInputSchema, ConfigIdentityRemoveOutputSchema, ConfigIdentitySetInputSchema, ConfigIdentitySetOutputSchema, ConfigIdentityUseOutputSchema, ConfigNameInputSchema, ConfigPoolAddInputSchema, ConfigPoolAddOutputSchema, ConfigPoolRemoveInputSchema, ConfigPoolRemoveOutputSchema, ConfigPoolSetInputSchema, ConfigPoolSetOutputSchema, ConfigPoolUseOutputSchema, ConfigProfileAddInputSchema, ConfigProfileAddOutputSchema, ConfigProfileRemoveInputSchema, ConfigProfileRemoveOutputSchema, ConfigProfileSchema, ConfigProfileSetInputSchema, ConfigProfileSetOutputSchema, ConfigProfileUseOutputSchema, ConfigProviderAddInputSchema, ConfigProviderAddOutputSchema, ConfigProviderRemoveInputSchema, ConfigProviderRemoveOutputSchema, ConfigProviderSetInputSchema, ConfigProviderSetOutputSchema, ConfigRuleAddInputSchema, ConfigRuleAddOutputSchema, ConfigRuleRemoveInputSchema, ConfigRuleRemoveOutputSchema, ConfigRuleSetInputSchema, ConfigRuleSetOutputSchema, CredentialCacheSchema, CredentialSchema, CredentialSourceSchema, CredentialSummarySchema, DOOR_EVENT_BUFFER_EVENTS, DOOR_EVENT_SOURCE_RC, DOOR_HEALTH_EVENT_SOURCE, DirectoryRuleAlreadyExistsError, DirectoryRuleMissingTargetError, DirectoryRuleNotFoundError, DirectoryRuleSchema, DirectoryRulesSchema, DoctorFindingSchema, DoctorRunOutputSchema, DoorEventSchema, DoorEventSourceQuerySchema, DoorHealthEventSchema, DuplicateIdentityNameError, EXIT_FAILURE, EXIT_USAGE, EffectiveWindowSchema, EntryValueSchema, FARM_MANIFEST_FILENAME, FrontDoorControlMaterialError, FrontDoorNotServingError, FrontDoorRestartOutputSchema, FrontDoorSessionStatusSchema, FrontDoorSessionsOutputSchema, FrontDoorStartError, FrontDoorStateSchema, FrontDoorStatusOutputSchema, GlobalConfigSchema, HeadroomSocketTargetSchema, HeadroomStartError, IdentityAlreadyExistsError, IdentityNotFoundError, IdentitySchema, InvalidCategoryNameError, InvalidIdentityNameError, InvalidProviderNameError, LAUNCH_EVENT_SOURCE, LIVE_TASK_CAP, LaunchLifecycleEventSchema, LaunchRefusedError, LaunchResolveInputSchema, LaunchResolveOutputSchema, LegacyProviderFileError, LiveTaskSchema, MergedAgentNodeSchema, MergedAgentTreeSchema, OWN_CLI_FILE_NAME, PROMPT_CACHE_TTL_MS, PlanClassSchema, PoolGraphError, PoolNameSchema, PoolNotFoundError, PoolPickReportSchema, PoolSchema, PortableConfigSchema, ProfileAlreadyExistsError, ProfileNotFoundError, ProviderAlreadyExistsError, ProviderKindMismatchError, ProviderNotFoundError, ProviderSchema, QUOTA_EXPIRING_EVENT_SOURCE, QuotaExpiringEventSchema, RC_CONTEXT_USAGE_DETAILS, RC_GOAL_CLEAR_WORDS, RC_GOAL_CONDITION_MAX_CHARS, RC_IDLE_EXPIRY_MS, RC_ORPC_PATH_PREFIX, RC_PENDING_RETIRE_REASONS, RC_PERMISSION_MODES, RC_READ_FILE_ENCODINGS, RC_REQUEST_PARSE_CAP_BYTES, RC_SELF_HOST_ENV, RC_SELF_HOST_KEEPALIVE_MS, RC_SELF_HOST_RECORD_DIR, RC_SELF_HOST_RECORD_FILE, RC_SELF_HOST_RETENTION_MS, RC_SELF_HOST_SCOPE_LIST, RC_SELF_HOST_WORKER_JWT_TTL_SECONDS, RC_SESSIONS_PATH_PREFIX, RC_SESSION_COMMAND_MAX_WAIT_MS, RC_SESSION_COMMAND_VERIFIED_VERSIONS, RC_SESSION_END_REASONS, RC_SESSION_EVENT_LOG_CAPACITY, RC_STREAM_BACKOFF_MS, RC_WEB_FETCH_ALLOW_PRIVATE_ENV, RC_WEB_FETCH_DEADLINE_MS, RC_WEB_FETCH_MAX_BYTES, RC_WEB_FETCH_MAX_REDIRECTS, ROUTED_PATH_PREFIX, RcLiveRateLimitSchema, RcPermissionModeSchema, RcRateLimitInfoSchema, RcRateLimitWindowSchema, RcSessionEventCursorExpiredError, RcSessionEventSchema, RcSessionEventsPageInputSchema, RcSessionEventsReadInputSchema, RcSessionEventsReadOutputSchema, RcSessionEventsStreamInputSchema, RcSessionTransitionSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, ResetRowSchema, ResetScheduleSchema, SessionAgentTreeSchema, SessionLookupError, SessionSummarySchema, TaskItemSchema, USAGE_EVENT_SOURCE, UpdateCheckOutputSchema, UsageChangeEventSchema, UsageError, UsageListOutputSchema, UsageLiveOutputSchema, UsageSnapshotError, UsageSnapshotSchema, UsageWindowsInputSchema, UsageWindowsOutputSchema, WhenSchema, WorkflowRunSchema, addDirectoryRule, addIdentity, addPool, addProvider, agentShimCliPath, answerRcControlRequest, applyAgentTaskEvent, authenticateRcSessionMcpServer, buildEntryFacts, buildLayoutPaths, buildRcControlRequestPayload, buildRcControlResponsePayload, buildRcEndSessionPayload, buildRcEventWriteBody, buildRcFileSuggestionsPayload, buildRcGetContextUsagePayload, buildRcGetUsagePayload, buildRcInterruptPayload, buildRcKeepAlivePayload, buildRcMarkReadBody, buildRcMcpAuthenticatePayload, buildRcMcpOAuthCallbackUrlPayload, buildRcMcpReconnectPayload, buildRcMcpStatusPayload, buildRcReadFilePayload, buildRcSetModelPayload, buildRcSetPermissionModePayload, buildRcUserMessagePayload, carryOver, changePool, checkReportHasWarnings, checkReportToJson, collectCheckReport, collectDoctorReport, collectFrontDoorStatus, collectPoolPick, collectResets, collectSessionList, createAgentTreesApiRouter, createCodexApiRouter, createConfigApiRouter, createControlApiRouter, createDoorApiNodeHandler, createDoorApiRouter, createDoorEventHub, createDoorHealthPublisher, createEventsApiRouter, createLaunchApiRouter, createLaunchEventPublisher, createLeafCache, createLifecycleApiRouter, createLiveSessionRegistry, createProfile, createQuotaExpiringPublisher, createRcApiNodeHandler, createRcApiRouter, createRcClaudeCodeVersions, createRcControlHandler, createRcCredentialStore, createRcEventFanout, createRcLiveUsage, createRcSelfHostSurface, createRcSessionCommands, createRcSessionEventLog, createRcSessionEventsApiRouter, createRcSessionRegistryReader, createRcSessionTracker, createRcStreamHub, createSseParser, describeProviderEndpoint, detectAmbientCredential, doorApiAuth, doorApiNodeHandlerOf, effectiveWindow, endRcSession, ensureCa, ensureFrontDoor, ensureHeadroom, evaluateAmbientCredentialGuard, evaluateWhen, fetchThroughWebProxy, followRcSessionEvents, formatAmbientCredentialGuardMessage, formatCheckReport, formatDoctorReport, formatFrontDoorStatus, forwardableHeaders, frontDoorApiClient, frontDoorApiFromState, frontDoorApiLink, frontDoorRcApiClient, frontDoorRcControl, generateCa, getRcSessionContextUsage, getRcSessionMcpStatus, getRcSessionUsage, headroomSocketTarget, identityExists, identityIdOf, identityNameOf, identityRecords, injectRcUserMessage, interruptRcSession, isIdentityDirectoryName, isInterceptedHost, isPrivateAddress, isRcContextUsageDetail, isRcPermissionMode, isRcReadFileEncoding, lateRcEventDial, lateRcStreamDial, launchRequiredUpstreams, listDirectoryRules, listIdentities, listProfiles, listProviders, listSessions, listUsageSnapshots, locateSession, matchBranch, mergeLiveTasks, mintLeaf, mintRcSelfHostCredential, observingRoutedRoute, parseConnectTarget, parseRcGoalOutput, parseRcStreamEnvelope, planOf, poolIdentities, poolSelectedByLaunch, prepareClaudeLaunch, prepareLaunch, profileExists, providerExists, rankPool, rcEventWriteResultFromAnswer, rcFanoutOnDoorHub, rcLocalCommandAnswerOf, rcManualCompactBoundaryOf, rcObserverAsPassthrough, rcRateLimitInfoOf, rcSelfHostFromEnv, rcStatusWithRegistry, rcWebFetchAllowsPrivateFromEnv, readActiveIdentity, readCodexAccount, readCodexRateLimits, readDirectoryRules, readFarmManifest, readFrontDoorControlMaterial, readGlobalConfig, readIdentity, readIdentityById, readIdentityRecords, readPools, readProfile, readProvider, readRcSelfHostRecord, readRcSessionFile, readSessionAgentTree, readUsageSnapshot, realCodexAppServerPort, realConnectCertStore, realConnectEffects, realMemberProviderResolver, realRcControlTransport, realRcEventDial, realRcStreamDial, realRcWebFetch, realSessionFs, reconnectRcSessionMcpServer, recoverFarm, recoveryDiagnostics, refreshLaunchPoolUsage, refreshPoolUsage, refreshStalePoolMembers, removeDirectoryRule, removeIdentity, removePool, removeProfile, removeProvider, requirePool, resolveAgentShimHome, resolveClaudeHome, resolveClaudeLaunch, resolveDecisions, resolveLaunch, resolveLaunchSelection, resolveLayoutPaths, resolveSupervisorConfig, resyncFarm, runCheck, runClaudeLaunch, runDoctor, runFrontDoorSupervisor, runLaunchPlan, runLauncher, runSupervisor, sendRcKeepAlive, servedByPipeline, setAllowAmbientCredential, setDefaultConfigProfile, setGlobalDefaultProfile, setIdentityCredential, setProfileCategories, setProfileEntries, setProfileLaunchFlags, setProfileMetadata, setRcSessionModel, setRcSessionPermissionMode, showSession, snapshotPath, spawnClaude, startConnectServer, submitRcSessionMcpOAuthCallbackUrl, suggestRcSessionFiles, summariseSession, teleportRcSession, topLevelNames, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, withRegisteredSessionFacts, writeDirectoryRules };
|
|
28594
|
-
export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchPlan, ClaudeLaunchResolution, CodexAccountRead, CodexApiClient, CodexApiDeps, CodexApiRouter, CodexAppServerConnection, CodexAppServerPort, CodexAppServerReadOptions, CodexRateLimitsRead, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigApiDeps, ConfigApiRouter, ConfigProfile, ConnectCertStore, ConnectEffects, ConnectLimits, ConnectLocalSurface, ConnectServerConfig, ConnectServerHandle, ConnectTarget, ControlApiClient, ControlApiDeps, ControlApiRouter, Credential, CredentialSource, Decision, Diagnostic, DirectoryRule, DirectoryRules, DoctorReport, DoorApiClient, DoorApiContext, DoorApiDeps, DoorApiRouter, DoorEvent, DoorEventHub, DoorEventPublisher, DoorEventStream, DoorEventsApiDeps, DoorHealthEvent, DoorHealthPublisher, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorControlMaterial, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, IdentityNameRead, IdentityRecord, IdentityRecordsPort, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveSessionRegistry, LiveSessionRegistryPorts, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolChange, PoolMember, PoolPickReport, PoolPolicy, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, ProviderOf, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcClaudeCodeVersions, RcCompactOptions, RcCompactReport, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcGoal, RcGoalClearReport, RcGoalReport, RcGoalSetReport, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingQuestion, RcPendingRequestSummary, RcPendingRetireReason, RcPermissionMode, RcPresenceAnswer, RcQuestionOption, RcQuestionSelection, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcRegisteredSession, RcRegistryIdentity, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionCommandDeps, RcSessionCommandOptions, RcSessionCommandResult, RcSessionCommandRoute, RcSessionCommands, RcSessionEndReason, RcSessionEvent, RcSessionEventLog, RcSessionEventLogDeps, RcSessionEventsApiDeps, RcSessionEventsApiRouter, RcSessionEventsRead, RcSessionEventsReadInput, RcSessionRegistryDeps, RcSessionRegistryFs, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcSessionTransition, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcSupervisedTarget, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RealMemberProviderParams, 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 };
|
|
28746
|
+
export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeLaunchPlan, ClaudeLaunchResolution, CodexAccountRead, CodexApiClient, CodexApiDeps, CodexApiRouter, CodexAppServerConnection, CodexAppServerPort, CodexAppServerReadOptions, CodexRateLimitsRead, CollectCheckReportParams, CollectDoctorReportParams, CompiledRule, ConditionContext, ConfigApiDeps, ConfigApiRouter, ConfigProfile, ConnectCertStore, ConnectEffects, ConnectLimits, ConnectLocalSurface, ConnectServerConfig, ConnectServerHandle, ConnectTarget, ControlApiClient, ControlApiDeps, ControlApiRouter, Credential, CredentialSource, Decision, Diagnostic, DirectoryRule, DirectoryRules, DoctorReport, DoorApiClient, DoorApiContext, DoorApiDeps, DoorApiRouter, DoorEvent, DoorEventHub, DoorEventPublisher, DoorEventStream, DoorEventsApiDeps, DoorHealthEvent, DoorHealthPublisher, EffectiveWindow, EliminatedRule, EnsureFrontDoorPorts, EnsureHeadroomPorts, EntryFact, EntryFacts, EntryValue, EvaluateAmbientCredentialGuardParams, FlattenedCascade, FrontDoorControlMaterial, FrontDoorRcControl, FrontDoorSessionStatus, FrontDoorStatus, FrontDoorSupervisorPorts, GlobalConfig, HeadroomSupervisorConfig, Identity, IdentityCredentialChange, IdentityListEntry, IdentityListing, IdentityNameRead, IdentityRecord, IdentityRecordsPort, IdentitySession, InjectedCredential, LaunchApiDeps, LaunchApiRouter, LaunchDecision, LaunchEventPublisher, LaunchLifecycleEvent, LaunchPlan, LaunchPoolDecision, LaunchResolution, LaunchSelection, Layer, LayerId, LayoutPaths, LeafCert, LifecycleApiClient, LifecycleApiDeps, LifecycleApiRouter, LiveSessionRegistry, LiveSessionRegistryPorts, LiveTask, LiveTaskBook, LocatedSession, MergedAgentNode, MergedAgentTree, NestedContribution, OwnExecutableStat, PlanClass, Pool, PoolChange, PoolMember, PoolPickReport, PoolPolicy, PoolRanking, PortableConfig, PrepareClaudeLaunchOptions, PrepareLaunchParams, ProfileListEntry, Provider, ProviderListEntry, ProviderOf, QuotaExpiringEvent, QuotaExpiringPublisher, RankPoolInput, RcAnswerDecision, RcAnswerDeps, RcApiClient, RcApiDeps, RcApiRouter, RcClaudeCodeVersions, RcCompactOptions, RcCompactReport, RcContextUsageDetail, RcControlAnswer, RcControlHandlerDeps, RcControlRequestDeps, RcControlTransport, RcCredentialStore, RcDialAnswer, RcDialTarget, RcEventDial, RcEventFanout, RcEventWriteResult, RcExchangeObserver, RcGoal, RcGoalClearReport, RcGoalReport, RcGoalSetReport, RcInjectDeps, RcLiveRateLimit, RcLiveUsage, RcLiveUsageDeps, RcObservedCredential, RcObservedRequest, RcPendingQuestion, RcPendingRequestSummary, RcPendingRetireReason, RcPermissionMode, RcPresenceAnswer, RcQuestionOption, RcQuestionSelection, RcRateLimitInfo, RcRateLimitWindow, RcReadFileEncoding, RcReadFileOptions, RcRegisteredSession, RcRegistryIdentity, RcSelfHostCredentialRecord, RcSelfHostDeps, RcSelfHostMintResult, RcSelfHostSurface, RcSessionCommandDeps, RcSessionCommandOptions, RcSessionCommandResult, RcSessionCommandRoute, RcSessionCommands, RcSessionEndReason, RcSessionEvent, RcSessionEventLog, RcSessionEventLogDeps, RcSessionEventsApiDeps, RcSessionEventsApiRouter, RcSessionEventsRead, RcSessionEventsReadInput, RcSessionRegistryDeps, RcSessionRegistryFs, RcSessionRoute, RcSessionStatus, RcSessionSummary, RcSessionTracker, RcSessionTrackerDeps, RcSessionTransition, RcStreamAnswer, RcStreamDial, RcStreamEnvelope, RcStreamEvent, RcStreamHub, RcStreamHubDeps, RcSupervisedTarget, RcTurnReport, RcWebFetchDeps, RcWebFetchHop, RcWebFetchOutcome, RcWebFetcher, RcWorkerFact, RcWriteHeaders, ReadSessionOptions, RealMemberProviderParams, 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 };
|