agent-shim 14.4.0 → 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/dist/cli.cjs +1536 -1173
- package/dist/index.cjs +1275 -898
- package/dist/index.mjs +1234 -857
- package/dist/types/index.d.ts +152 -34
- 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. */
|
|
@@ -8349,6 +8351,12 @@ type CompactionResult = {
|
|
|
8349
8351
|
readonly reason: string;
|
|
8350
8352
|
};
|
|
8351
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
|
+
|
|
8352
8360
|
/**
|
|
8353
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.
|
|
8354
8362
|
*
|
|
@@ -8361,6 +8369,20 @@ interface TranscriptGoal {
|
|
|
8361
8369
|
readonly lastCheck?: string;
|
|
8362
8370
|
}
|
|
8363
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
|
+
|
|
8364
8386
|
/** The brand only `rcSelfHostEventDial` puts on a dial: not exported, so no other code can make a value of the type. */
|
|
8365
8387
|
declare const SELF_HOST_DIAL: unique symbol;
|
|
8366
8388
|
/**
|
|
@@ -8445,21 +8467,20 @@ interface RcClaudeCodeVersions {
|
|
|
8445
8467
|
/** Drops the sessions `isTracked` no longer holds, so an ended session's version is not kept. */
|
|
8446
8468
|
readonly sweep: (isTracked: (sessionId: string) => boolean) => void;
|
|
8447
8469
|
}
|
|
8448
|
-
/** 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. */
|
|
8449
8471
|
declare function createRcClaudeCodeVersions(fanout: RcEventFanout): RcClaudeCodeVersions;
|
|
8450
8472
|
|
|
8451
8473
|
/**
|
|
8452
|
-
* 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:
|
|
8453
8475
|
*
|
|
8454
|
-
* - **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
|
|
8455
|
-
* - **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`).
|
|
8456
8479
|
*
|
|
8457
|
-
* 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.
|
|
8458
8481
|
*
|
|
8459
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.
|
|
8460
8483
|
*/
|
|
8461
|
-
/** The Claude Code versions both routes were verified on end to end; a session reporting any other version is refused. */
|
|
8462
|
-
declare const RC_SESSION_COMMAND_VERIFIED_VERSIONS: readonly string[];
|
|
8463
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. */
|
|
8464
8485
|
declare const RC_GOAL_CLEAR_WORDS: readonly string[];
|
|
8465
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. */
|
|
@@ -8468,8 +8489,8 @@ declare const RC_GOAL_CONDITION_MAX_CHARS = 4000;
|
|
|
8468
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.
|
|
8469
8490
|
*/
|
|
8470
8491
|
declare const RC_SESSION_COMMAND_MAX_WAIT_MS = 2147483647;
|
|
8471
|
-
/** Who answered: the session
|
|
8472
|
-
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";
|
|
8473
8494
|
/** One goal as the session reports it. */
|
|
8474
8495
|
type RcGoal = TranscriptGoal;
|
|
8475
8496
|
/** What a goal read found: the active goal, or `null` when the session has none. */
|
|
@@ -8495,6 +8516,18 @@ interface RcCompactReport {
|
|
|
8495
8516
|
readonly preTokens?: number;
|
|
8496
8517
|
readonly postTokens?: number;
|
|
8497
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
|
+
};
|
|
8498
8531
|
/** One verb's outcome: the report, or a verbose failure ready to show a user. */
|
|
8499
8532
|
type RcSessionCommandResult<T> = {
|
|
8500
8533
|
readonly ok: true;
|
|
@@ -8515,11 +8548,11 @@ interface RcCompactOptions extends RcSessionCommandOptions {
|
|
|
8515
8548
|
/** Custom summarisation instructions. A directive to the session's model, which is why the typed API serves it under its own grant. */
|
|
8516
8549
|
readonly instructions?: string;
|
|
8517
8550
|
}
|
|
8518
|
-
/** 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. */
|
|
8519
8552
|
interface RcSupervisedTarget {
|
|
8520
8553
|
/** The conversation the plugin acts on: the session's current one, which differs from its launch id after `/clear`. */
|
|
8521
8554
|
readonly conversationId: string;
|
|
8522
|
-
/** 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. */
|
|
8523
8556
|
readonly transcriptPath: string | undefined;
|
|
8524
8557
|
/** The Claude Code version the plugin reported when it loaded; undefined when it has not loaded. */
|
|
8525
8558
|
readonly version: string | undefined;
|
|
@@ -8527,6 +8560,8 @@ interface RcSupervisedTarget {
|
|
|
8527
8560
|
readonly compact: (signal: AbortSignal, instructions: string | undefined, waitMs: number) => Promise<CompactionResult>;
|
|
8528
8561
|
/** Runs `/goal <args>` through the plugin, runnable for `waitMs` and no longer. */
|
|
8529
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>;
|
|
8530
8565
|
}
|
|
8531
8566
|
/** Everything the verbs need, injected so they run against fakes in unit tests. */
|
|
8532
8567
|
interface RcSessionCommandDeps {
|
|
@@ -8534,8 +8569,14 @@ interface RcSessionCommandDeps {
|
|
|
8534
8569
|
readonly supervisedOf: (sessionId: string) => Promise<RcSupervisedTarget | {
|
|
8535
8570
|
readonly refused: string;
|
|
8536
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>;
|
|
8537
8576
|
/** The goal a transcript leaves active, read incrementally without blocking (`transcriptFollower.ts`); undefined when the file does not exist. */
|
|
8538
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>;
|
|
8539
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. */
|
|
8540
8581
|
readonly selfHost: RcSelfHostCommandDeps | undefined;
|
|
8541
8582
|
/** Whether the door observes the session at all, so a mistyped id is refused as unknown rather than as unsupported. */
|
|
@@ -8543,6 +8584,12 @@ interface RcSessionCommandDeps {
|
|
|
8543
8584
|
}
|
|
8544
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. */
|
|
8545
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>>;
|
|
8546
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. */
|
|
8547
8594
|
goalGet: (sessionId: string, options?: RcSessionCommandOptions) => Promise<RcSessionCommandResult<RcGoalReport>>;
|
|
8548
8595
|
/**
|
|
@@ -8813,6 +8860,10 @@ interface RcApiDeps {
|
|
|
8813
8860
|
readonly goalClear: (sessionId: string, options: RcSessionCommandOptions) => Promise<RcSessionCommandResult<RcGoalClearReport>>;
|
|
8814
8861
|
/** The compaction, routed the same way. */
|
|
8815
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>;
|
|
8816
8867
|
/** The client attachment's fan-out, whose events the subscription yields. */
|
|
8817
8868
|
readonly fanout: RcEventFanout;
|
|
8818
8869
|
}
|
|
@@ -8838,6 +8889,16 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
8838
8889
|
session: zod.ZodOptional<zod.ZodString>;
|
|
8839
8890
|
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
8840
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>]>;
|
|
8841
8902
|
workerState: zod.ZodOptional<zod.ZodObject<{
|
|
8842
8903
|
value: zod.ZodString;
|
|
8843
8904
|
observedAt: zod.ZodNumber;
|
|
@@ -9057,6 +9118,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9057
9118
|
session: zod.ZodString;
|
|
9058
9119
|
route: zod.ZodEnum<{
|
|
9059
9120
|
supervised: "supervised";
|
|
9121
|
+
launched: "launched";
|
|
9060
9122
|
"self-hosted": "self-hosted";
|
|
9061
9123
|
}>;
|
|
9062
9124
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9070,6 +9132,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9070
9132
|
session: zod.ZodString;
|
|
9071
9133
|
route: zod.ZodEnum<{
|
|
9072
9134
|
supervised: "supervised";
|
|
9135
|
+
launched: "launched";
|
|
9073
9136
|
"self-hosted": "self-hosted";
|
|
9074
9137
|
}>;
|
|
9075
9138
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9081,6 +9144,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9081
9144
|
session: zod.ZodString;
|
|
9082
9145
|
route: zod.ZodEnum<{
|
|
9083
9146
|
supervised: "supervised";
|
|
9147
|
+
launched: "launched";
|
|
9084
9148
|
"self-hosted": "self-hosted";
|
|
9085
9149
|
}>;
|
|
9086
9150
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9094,6 +9158,7 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9094
9158
|
session: zod.ZodString;
|
|
9095
9159
|
route: zod.ZodEnum<{
|
|
9096
9160
|
supervised: "supervised";
|
|
9161
|
+
launched: "launched";
|
|
9097
9162
|
"self-hosted": "self-hosted";
|
|
9098
9163
|
}>;
|
|
9099
9164
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -9108,6 +9173,20 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9108
9173
|
session: zod.ZodString;
|
|
9109
9174
|
route: zod.ZodEnum<{
|
|
9110
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";
|
|
9111
9190
|
"self-hosted": "self-hosted";
|
|
9112
9191
|
}>;
|
|
9113
9192
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -10966,8 +11045,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10966
11045
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
10967
11046
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
10968
11047
|
full: "full";
|
|
10969
|
-
2: "2";
|
|
10970
11048
|
1: "1";
|
|
11049
|
+
2: "2";
|
|
10971
11050
|
3: "3";
|
|
10972
11051
|
}>>;
|
|
10973
11052
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -11690,8 +11769,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11690
11769
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
11691
11770
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
11692
11771
|
full: "full";
|
|
11693
|
-
2: "2";
|
|
11694
11772
|
1: "1";
|
|
11773
|
+
2: "2";
|
|
11695
11774
|
3: "3";
|
|
11696
11775
|
}>>;
|
|
11697
11776
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -12890,8 +12969,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
12890
12969
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
12891
12970
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
12892
12971
|
full: "full";
|
|
12893
|
-
2: "2";
|
|
12894
12972
|
1: "1";
|
|
12973
|
+
2: "2";
|
|
12895
12974
|
3: "3";
|
|
12896
12975
|
}>>;
|
|
12897
12976
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -13671,8 +13750,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13671
13750
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
13672
13751
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
13673
13752
|
full: "full";
|
|
13674
|
-
2: "2";
|
|
13675
13753
|
1: "1";
|
|
13754
|
+
2: "2";
|
|
13676
13755
|
3: "3";
|
|
13677
13756
|
}>>;
|
|
13678
13757
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -14688,8 +14767,8 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14688
14767
|
project: z.ZodOptional<z.ZodObject<{
|
|
14689
14768
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
14690
14769
|
full: "full";
|
|
14691
|
-
2: "2";
|
|
14692
14770
|
1: "1";
|
|
14771
|
+
2: "2";
|
|
14693
14772
|
3: "3";
|
|
14694
14773
|
}>>;
|
|
14695
14774
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -14757,6 +14836,12 @@ interface SupervisedLaunch {
|
|
|
14757
14836
|
readonly settingsFile?: string;
|
|
14758
14837
|
}
|
|
14759
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
|
+
|
|
14760
14845
|
/** The outcome of authenticating the listener a front-door state file names. */
|
|
14761
14846
|
type ListenerVerdict = {
|
|
14762
14847
|
readonly ok: true;
|
|
@@ -14886,6 +14971,8 @@ interface PrepareLaunchParams {
|
|
|
14886
14971
|
readonly hasStoredLogin?: (identity: string) => boolean;
|
|
14887
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. */
|
|
14888
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;
|
|
14889
14976
|
}
|
|
14890
14977
|
/** Inputs to `runLauncher`: a launch's inputs plus the port that spawns the child. */
|
|
14891
14978
|
interface RunLauncherParams extends PrepareLaunchParams {
|
|
@@ -15585,8 +15672,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15585
15672
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
15586
15673
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
15587
15674
|
full: "full";
|
|
15588
|
-
2: "2";
|
|
15589
15675
|
1: "1";
|
|
15676
|
+
2: "2";
|
|
15590
15677
|
3: "3";
|
|
15591
15678
|
}>>;
|
|
15592
15679
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -17332,8 +17419,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17332
17419
|
project: z.ZodOptional<z.ZodObject<{
|
|
17333
17420
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
17334
17421
|
full: "full";
|
|
17335
|
-
2: "2";
|
|
17336
17422
|
1: "1";
|
|
17423
|
+
2: "2";
|
|
17337
17424
|
3: "3";
|
|
17338
17425
|
}>>;
|
|
17339
17426
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -18311,8 +18398,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18311
18398
|
project: z.ZodOptional<z.ZodObject<{
|
|
18312
18399
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
18313
18400
|
full: "full";
|
|
18314
|
-
2: "2";
|
|
18315
18401
|
1: "1";
|
|
18402
|
+
2: "2";
|
|
18316
18403
|
3: "3";
|
|
18317
18404
|
}>>;
|
|
18318
18405
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19035,8 +19122,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
19035
19122
|
project: z.ZodOptional<z.ZodObject<{
|
|
19036
19123
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
19037
19124
|
full: "full";
|
|
19038
|
-
2: "2";
|
|
19039
19125
|
1: "1";
|
|
19126
|
+
2: "2";
|
|
19040
19127
|
3: "3";
|
|
19041
19128
|
}>>;
|
|
19042
19129
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20235,8 +20322,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20235
20322
|
project: z.ZodOptional<z.ZodObject<{
|
|
20236
20323
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
20237
20324
|
full: "full";
|
|
20238
|
-
2: "2";
|
|
20239
20325
|
1: "1";
|
|
20326
|
+
2: "2";
|
|
20240
20327
|
3: "3";
|
|
20241
20328
|
}>>;
|
|
20242
20329
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -21016,8 +21103,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21016
21103
|
project: z.ZodOptional<z.ZodObject<{
|
|
21017
21104
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
21018
21105
|
full: "full";
|
|
21019
|
-
2: "2";
|
|
21020
21106
|
1: "1";
|
|
21107
|
+
2: "2";
|
|
21021
21108
|
3: "3";
|
|
21022
21109
|
}>>;
|
|
21023
21110
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -21813,6 +21900,16 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
21813
21900
|
session: z.ZodOptional<z.ZodString>;
|
|
21814
21901
|
}, z.core.$strict>, z.ZodObject<{
|
|
21815
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>]>;
|
|
21816
21913
|
workerState: z.ZodOptional<z.ZodObject<{
|
|
21817
21914
|
value: z.ZodString;
|
|
21818
21915
|
observedAt: z.ZodNumber;
|
|
@@ -22032,6 +22129,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22032
22129
|
session: z.ZodString;
|
|
22033
22130
|
route: z.ZodEnum<{
|
|
22034
22131
|
supervised: "supervised";
|
|
22132
|
+
launched: "launched";
|
|
22035
22133
|
"self-hosted": "self-hosted";
|
|
22036
22134
|
}>;
|
|
22037
22135
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22045,6 +22143,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22045
22143
|
session: z.ZodString;
|
|
22046
22144
|
route: z.ZodEnum<{
|
|
22047
22145
|
supervised: "supervised";
|
|
22146
|
+
launched: "launched";
|
|
22048
22147
|
"self-hosted": "self-hosted";
|
|
22049
22148
|
}>;
|
|
22050
22149
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22056,6 +22155,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22056
22155
|
session: z.ZodString;
|
|
22057
22156
|
route: z.ZodEnum<{
|
|
22058
22157
|
supervised: "supervised";
|
|
22158
|
+
launched: "launched";
|
|
22059
22159
|
"self-hosted": "self-hosted";
|
|
22060
22160
|
}>;
|
|
22061
22161
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22069,6 +22169,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22069
22169
|
session: z.ZodString;
|
|
22070
22170
|
route: z.ZodEnum<{
|
|
22071
22171
|
supervised: "supervised";
|
|
22172
|
+
launched: "launched";
|
|
22072
22173
|
"self-hosted": "self-hosted";
|
|
22073
22174
|
}>;
|
|
22074
22175
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -22083,6 +22184,20 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22083
22184
|
session: z.ZodString;
|
|
22084
22185
|
route: z.ZodEnum<{
|
|
22085
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";
|
|
22086
22201
|
"self-hosted": "self-hosted";
|
|
22087
22202
|
}>;
|
|
22088
22203
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
@@ -23040,8 +23155,8 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
23040
23155
|
project: z.ZodOptional<z.ZodObject<{
|
|
23041
23156
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23042
23157
|
full: "full";
|
|
23043
|
-
2: "2";
|
|
23044
23158
|
1: "1";
|
|
23159
|
+
2: "2";
|
|
23045
23160
|
3: "3";
|
|
23046
23161
|
}>>;
|
|
23047
23162
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -23766,8 +23881,8 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23766
23881
|
project: z.ZodOptional<z.ZodObject<{
|
|
23767
23882
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23768
23883
|
full: "full";
|
|
23769
|
-
2: "2";
|
|
23770
23884
|
1: "1";
|
|
23885
|
+
2: "2";
|
|
23771
23886
|
3: "3";
|
|
23772
23887
|
}>>;
|
|
23773
23888
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -24968,8 +25083,8 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
24968
25083
|
project: z.ZodOptional<z.ZodObject<{
|
|
24969
25084
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
24970
25085
|
full: "full";
|
|
24971
|
-
2: "2";
|
|
24972
25086
|
1: "1";
|
|
25087
|
+
2: "2";
|
|
24973
25088
|
3: "3";
|
|
24974
25089
|
}>>;
|
|
24975
25090
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -25751,8 +25866,8 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
25751
25866
|
project: z.ZodOptional<z.ZodObject<{
|
|
25752
25867
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
25753
25868
|
full: "full";
|
|
25754
|
-
2: "2";
|
|
25755
25869
|
1: "1";
|
|
25870
|
+
2: "2";
|
|
25756
25871
|
3: "3";
|
|
25757
25872
|
}>>;
|
|
25758
25873
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26438,8 +26553,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26438
26553
|
project: z.ZodOptional<z.ZodObject<{
|
|
26439
26554
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
26440
26555
|
full: "full";
|
|
26441
|
-
2: "2";
|
|
26442
26556
|
1: "1";
|
|
26557
|
+
2: "2";
|
|
26443
26558
|
3: "3";
|
|
26444
26559
|
}>>;
|
|
26445
26560
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26576,6 +26691,9 @@ declare function createQuotaExpiringPublisher(hub: DoorEventHub, deps: {
|
|
|
26576
26691
|
readonly nameOf: (id: string) => string | undefined;
|
|
26577
26692
|
}): QuotaExpiringPublisher;
|
|
26578
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
|
+
|
|
26579
26697
|
/**
|
|
26580
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.
|
|
26581
26699
|
*/
|
|
@@ -28625,4 +28743,4 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
|
|
|
28625
28743
|
declare function agentShimCliPath(distDir?: string | undefined): string;
|
|
28626
28744
|
|
|
28627
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 };
|
|
28628
|
-
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.0",
|
|
4
4
|
"description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|