claude-use 14.6.0 → 14.7.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 +89 -52
- package/dist/index.cjs +53 -40
- package/dist/index.mjs +53 -40
- package/dist/types/index.d.ts +16 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5475,7 +5475,7 @@ function pruneDeadFrontDoorDirectRecords(fs17, recordsDir, records, liveness) {
|
|
|
5475
5475
|
}
|
|
5476
5476
|
}
|
|
5477
5477
|
function recordOf(details) {
|
|
5478
|
-
return details === void 0 ? {} : { sessionId: details.sessionId, ...details.identity === void 0 ? {} : { identity: details.identity }, ...details.models === void 0 ? {} : { models: details.models }, ...details.configDir === void 0 ? {} : { configDir: details.configDir } };
|
|
5478
|
+
return details === void 0 ? {} : { sessionId: details.sessionId, ...details.identity === void 0 ? {} : { identity: details.identity }, ...details.models === void 0 ? {} : { models: details.models }, ...details.configDir === void 0 ? {} : { configDir: details.configDir }, ...details.claudeVersion === void 0 ? {} : { claudeVersion: details.claudeVersion } };
|
|
5479
5479
|
}
|
|
5480
5480
|
function writeFrontDoorSession(fs17, sessionsDir, session) {
|
|
5481
5481
|
fs17.mkdirPrivate(sessionsDir);
|
|
@@ -5549,9 +5549,9 @@ var init_state = __esm({
|
|
|
5549
5549
|
"use strict";
|
|
5550
5550
|
init_schema();
|
|
5551
5551
|
init_baseUrlDial();
|
|
5552
|
-
FRONT_DOOR_PROTOCOL =
|
|
5552
|
+
FRONT_DOOR_PROTOCOL = 11;
|
|
5553
5553
|
FRONT_DOOR_HANDOVER_PROTOCOL = 6;
|
|
5554
|
-
FrontDoorSessionSchema = z9.strictObject({ pid: z9.number().int().positive(), startedAt: z9.number(), token: z9.string().min(1), supervisorPid: z9.number().int().positive().optional(), sessionId: z9.string().min(1).optional(), identity: z9.string().min(1).optional(), models: ModelsConfigSchema.optional(), configDir: z9.string().min(1).optional() });
|
|
5554
|
+
FrontDoorSessionSchema = z9.strictObject({ pid: z9.number().int().positive(), startedAt: z9.number(), token: z9.string().min(1), supervisorPid: z9.number().int().positive().optional(), sessionId: z9.string().min(1).optional(), identity: z9.string().min(1).optional(), models: ModelsConfigSchema.optional(), configDir: z9.string().min(1).optional(), claudeVersion: z9.string().min(1).optional() });
|
|
5555
5555
|
MAX_CONTEXT_TEXT_LENGTH = 256;
|
|
5556
5556
|
ContextText = z9.string().min(1).max(MAX_CONTEXT_TEXT_LENGTH);
|
|
5557
5557
|
LaunchRouteSchema = z9.union([z9.strictObject({ kind: z9.literal("anthropic") }), z9.strictObject({ kind: z9.literal("provider"), provider: z9.string().min(1) })]);
|
|
@@ -7507,7 +7507,7 @@ function rcEventWriteResultFromAnswer(answer) {
|
|
|
7507
7507
|
return { ok: true, sequenceNums };
|
|
7508
7508
|
}
|
|
7509
7509
|
function noOAuthCredentialResult(sessionId) {
|
|
7510
|
-
return { ok: false, message: `no claude.ai OAuth bearer has been observed for session ${sessionId}: only worker calls crossed this door, and the worker JWT they carry is answered 401 on the client half. Reconnect Remote Control through this door and the create's own bearer will be observed
|
|
7510
|
+
return { ok: false, message: `no claude.ai OAuth bearer has been observed for session ${sessionId}: only worker calls crossed this door, and the worker JWT they carry is answered 401 on the client half. Reconnect Remote Control through this door and the create's own bearer will be observed`, refusal: "session-state" };
|
|
7511
7511
|
}
|
|
7512
7512
|
function rcSessionNotObservedMessage(sessionId) {
|
|
7513
7513
|
return `the front door has not observed Remote Control session ${sessionId}: it may never have passed through this door, or it ended or expired (an entry lives only a bounded idle period past its last observed traffic)`;
|
|
@@ -7528,7 +7528,7 @@ function rcWriteHeaders(credential) {
|
|
|
7528
7528
|
async function injectRcUserMessage(deps, sessionId, text) {
|
|
7529
7529
|
const credential = deps.credentialOf(sessionId);
|
|
7530
7530
|
if (credential === void 0) {
|
|
7531
|
-
return { ok: false, message: rcSessionNotObservedMessage(sessionId) };
|
|
7531
|
+
return { ok: false, message: rcSessionNotObservedMessage(sessionId), refusal: "not-observed" };
|
|
7532
7532
|
}
|
|
7533
7533
|
if (credential.authorization === void 0) {
|
|
7534
7534
|
return noOAuthCredentialResult(sessionId);
|
|
@@ -7625,22 +7625,22 @@ function questionAnswerInput(deps, sessionId, pending, decision) {
|
|
|
7625
7625
|
async function answerRcControlRequest(deps, sessionId, requestId, decision) {
|
|
7626
7626
|
const credential = deps.credentialOf(sessionId);
|
|
7627
7627
|
if (credential === void 0) {
|
|
7628
|
-
return { ok: false, message: rcSessionNotObservedMessage(sessionId) };
|
|
7628
|
+
return { ok: false, message: rcSessionNotObservedMessage(sessionId), refusal: "not-observed" };
|
|
7629
7629
|
}
|
|
7630
7630
|
if (credential.authorization === void 0) {
|
|
7631
7631
|
return noOAuthCredentialResult(sessionId);
|
|
7632
7632
|
}
|
|
7633
7633
|
const pending = deps.pendingOf(sessionId).find((candidate) => candidate.requestId === requestId);
|
|
7634
7634
|
if (pending === void 0) {
|
|
7635
|
-
return { ok: false, message: `the front door has not observed control request ${requestId} pending on session ${sessionId}: it was answered already (by this door, by an attached client or in the session's own terminal), the worker withdrew it, or it never passed through this door
|
|
7635
|
+
return { ok: false, message: `the front door has not observed control request ${requestId} pending on session ${sessionId}: it was answered already (by this door, by an attached client or in the session's own terminal), the worker withdrew it, or it never passed through this door`, refusal: "not-observed" };
|
|
7636
7636
|
}
|
|
7637
7637
|
const updatedInput = questionAnswerInput(deps, sessionId, pending, decision);
|
|
7638
7638
|
if (updatedInput !== void 0 && "error" in updatedInput) {
|
|
7639
|
-
return { ok: false, message: updatedInput.error };
|
|
7639
|
+
return { ok: false, message: updatedInput.error, refusal: "invalid-input" };
|
|
7640
7640
|
}
|
|
7641
7641
|
const release = deps.claimPending(sessionId, requestId);
|
|
7642
7642
|
if (release === void 0) {
|
|
7643
|
-
return { ok: false, message: `another answer to control request ${requestId} on session ${sessionId} is being written right now; the worker takes only one, so this one was not sent
|
|
7643
|
+
return { ok: false, message: `another answer to control request ${requestId} on session ${sessionId} is being written right now; the worker takes only one, so this one was not sent`, refusal: "session-state" };
|
|
7644
7644
|
}
|
|
7645
7645
|
const body = JSON.stringify(buildRcEventWriteBody(buildRcControlResponsePayload(requestId, decision, updatedInput?.input)));
|
|
7646
7646
|
let answer;
|
|
@@ -7661,7 +7661,7 @@ async function answerRcControlRequest(deps, sessionId, requestId, decision) {
|
|
|
7661
7661
|
async function deliverRcClientPayload(deps, sessionId, payload, action, to = "events") {
|
|
7662
7662
|
const credential = deps.credentialOf(sessionId);
|
|
7663
7663
|
if (credential === void 0) {
|
|
7664
|
-
return { ok: false, message: rcSessionNotObservedMessage(sessionId) };
|
|
7664
|
+
return { ok: false, message: rcSessionNotObservedMessage(sessionId), refusal: "not-observed" };
|
|
7665
7665
|
}
|
|
7666
7666
|
if (credential.authorization === void 0) {
|
|
7667
7667
|
return noOAuthCredentialResult(sessionId);
|
|
@@ -7686,7 +7686,7 @@ async function interruptRcSession(deps, sessionId) {
|
|
|
7686
7686
|
}
|
|
7687
7687
|
async function setRcSessionModel(deps, sessionId, model) {
|
|
7688
7688
|
if (model === "") {
|
|
7689
|
-
return { ok: false, message: "a set-model write needs a non-empty model id: the SDK's own field treats an omitted or null value as a reset to the session default, which this operation never sends, and an empty string is neither" };
|
|
7689
|
+
return { ok: false, message: "a set-model write needs a non-empty model id: the SDK's own field treats an omitted or null value as a reset to the session default, which this operation never sends, and an empty string is neither", refusal: "invalid-input" };
|
|
7690
7690
|
}
|
|
7691
7691
|
const requestId = deps.newUuid();
|
|
7692
7692
|
const result = await deliverRcClientPayload(deps, sessionId, buildRcSetModelPayload(requestId, model), `set the model on session ${sessionId}`);
|
|
@@ -7699,7 +7699,7 @@ async function setRcSessionPermissionMode(deps, sessionId, mode) {
|
|
|
7699
7699
|
}
|
|
7700
7700
|
async function endRcSession(deps, sessionId, reason) {
|
|
7701
7701
|
if (reason === "") {
|
|
7702
|
-
return { ok: false, message: "an end-session write needs either no reason or a non-empty one: the worker reads an absent reason as its own unspecified form, and an empty string is neither" };
|
|
7702
|
+
return { ok: false, message: "an end-session write needs either no reason or a non-empty one: the worker reads an absent reason as its own unspecified form, and an empty string is neither", refusal: "invalid-input" };
|
|
7703
7703
|
}
|
|
7704
7704
|
const requestId = deps.newUuid();
|
|
7705
7705
|
const result = await deliverRcClientPayload(deps, sessionId, buildRcEndSessionPayload(requestId, reason), `end session ${sessionId}`);
|
|
@@ -7717,10 +7717,10 @@ async function getRcSessionContextUsage(deps, sessionId, detail) {
|
|
|
7717
7717
|
}
|
|
7718
7718
|
async function readRcSessionFile(deps, sessionId, path59, options) {
|
|
7719
7719
|
if (path59 === "") {
|
|
7720
|
-
return { ok: false, message: "a read-file write needs a non-empty path: the SDK's own field names the file the worker resolves against the session's cwd, and an empty string names none" };
|
|
7720
|
+
return { ok: false, message: "a read-file write needs a non-empty path: the SDK's own field names the file the worker resolves against the session's cwd, and an empty string names none", refusal: "invalid-input" };
|
|
7721
7721
|
}
|
|
7722
7722
|
if (options?.maxBytes !== void 0 && (!Number.isInteger(options.maxBytes) || options.maxBytes <= 0)) {
|
|
7723
|
-
return { ok: false, message: "a read-file write's max-bytes is a positive whole number of bytes: the SDK's own field caps the read, and a zero or negative cap reads nothing" };
|
|
7723
|
+
return { ok: false, message: "a read-file write's max-bytes is a positive whole number of bytes: the SDK's own field caps the read, and a zero or negative cap reads nothing", refusal: "invalid-input" };
|
|
7724
7724
|
}
|
|
7725
7725
|
const requestId = deps.newUuid();
|
|
7726
7726
|
const result = await deliverRcClientPayload(deps, sessionId, buildRcReadFilePayload(requestId, path59, options), `read ${path59} from session ${sessionId}`);
|
|
@@ -7738,7 +7738,7 @@ async function getRcSessionMcpStatus(deps, sessionId) {
|
|
|
7738
7738
|
}
|
|
7739
7739
|
async function reconnectRcSessionMcpServer(deps, sessionId, serverName) {
|
|
7740
7740
|
if (serverName === "") {
|
|
7741
|
-
return { ok: false, message: "an mcp-reconnect write needs a non-empty server name: the SDK's own field names the server as mcp_status reports it, and an empty string names none" };
|
|
7741
|
+
return { ok: false, message: "an mcp-reconnect write needs a non-empty server name: the SDK's own field names the server as mcp_status reports it, and an empty string names none", refusal: "invalid-input" };
|
|
7742
7742
|
}
|
|
7743
7743
|
const requestId = deps.newUuid();
|
|
7744
7744
|
const result = await deliverRcClientPayload(deps, sessionId, buildRcMcpReconnectPayload(requestId, serverName), `reconnect MCP server ${serverName} on session ${sessionId}`);
|
|
@@ -7746,7 +7746,7 @@ async function reconnectRcSessionMcpServer(deps, sessionId, serverName) {
|
|
|
7746
7746
|
}
|
|
7747
7747
|
async function authenticateRcSessionMcpServer(deps, sessionId, serverName, redirectUri) {
|
|
7748
7748
|
if (serverName === "" || redirectUri === "") {
|
|
7749
|
-
return { ok: false, message: "an mcp-authenticate write needs a non-empty server name and redirect URI: the CLI's own request names the server and where its OAuth flow redirects back to, and an empty string names neither" };
|
|
7749
|
+
return { ok: false, message: "an mcp-authenticate write needs a non-empty server name and redirect URI: the CLI's own request names the server and where its OAuth flow redirects back to, and an empty string names neither", refusal: "invalid-input" };
|
|
7750
7750
|
}
|
|
7751
7751
|
const requestId = deps.newUuid();
|
|
7752
7752
|
const result = await deliverRcClientPayload(deps, sessionId, buildRcMcpAuthenticatePayload(requestId, serverName, redirectUri), `authenticate MCP server ${serverName} on session ${sessionId}`);
|
|
@@ -7754,7 +7754,7 @@ async function authenticateRcSessionMcpServer(deps, sessionId, serverName, redir
|
|
|
7754
7754
|
}
|
|
7755
7755
|
async function submitRcSessionMcpOAuthCallbackUrl(deps, sessionId, serverName, callbackUrl) {
|
|
7756
7756
|
if (serverName === "" || callbackUrl === "") {
|
|
7757
|
-
return { ok: false, message: "an mcp-oauth-callback-url write needs a non-empty server name and callback URL: the CLI's own request names the server and the URL its OAuth flow landed on, and an empty string names neither" };
|
|
7757
|
+
return { ok: false, message: "an mcp-oauth-callback-url write needs a non-empty server name and callback URL: the CLI's own request names the server and the URL its OAuth flow landed on, and an empty string names neither", refusal: "invalid-input" };
|
|
7758
7758
|
}
|
|
7759
7759
|
const requestId = deps.newUuid();
|
|
7760
7760
|
const result = await deliverRcClientPayload(deps, sessionId, buildRcMcpOAuthCallbackUrlPayload(requestId, serverName, callbackUrl), `hand MCP server ${serverName}'s OAuth callback to session ${sessionId}`);
|
|
@@ -7765,7 +7765,7 @@ async function sendRcKeepAlive(deps, sessionId) {
|
|
|
7765
7765
|
}
|
|
7766
7766
|
async function teleportRcSession(deps, sessionId, marker) {
|
|
7767
7767
|
if (marker === "") {
|
|
7768
|
-
return { ok: false, message: "a teleport write needs a non-empty marker: the teleport relay anchors on a marker line's uuid and string content, and an empty string carries neither" };
|
|
7768
|
+
return { ok: false, message: "a teleport write needs a non-empty marker: the teleport relay anchors on a marker line's uuid and string content, and an empty string carries neither", refusal: "invalid-input" };
|
|
7769
7769
|
}
|
|
7770
7770
|
return await deliverRcClientPayload(deps, sessionId, buildRcUserMessagePayload(deps.newUuid(), sessionId, marker), `teleport a marker into session ${sessionId}`, "teleport-events");
|
|
7771
7771
|
}
|
|
@@ -14277,7 +14277,7 @@ var init_package = __esm({
|
|
|
14277
14277
|
"package.json"() {
|
|
14278
14278
|
package_default = {
|
|
14279
14279
|
name: "claude-use",
|
|
14280
|
-
version: "14.
|
|
14280
|
+
version: "14.7.0",
|
|
14281
14281
|
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.",
|
|
14282
14282
|
license: "MIT",
|
|
14283
14283
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -18746,7 +18746,7 @@ function prepareRegisteredLaunch(params, onRecorded) {
|
|
|
18746
18746
|
const sessionId = params.supervised?.sessionId ?? randomUUID7();
|
|
18747
18747
|
const resolvedModels = decided.models ?? (decided.globalModels === void 0 ? void 0 : {});
|
|
18748
18748
|
const sessionModels = isDeepStrictEqual(resolvedModels, decided.globalModels) ? void 0 : resolvedModels;
|
|
18749
|
-
const session = { sessionId, ...decided.farmIdentity === void 0 ? {} : { identity: decided.farmIdentity }, ...sessionModels === void 0 ? {} : { models: sessionModels }, configDir: decision.configDir ?? path55.join(os10.homedir(), ".claude") };
|
|
18749
|
+
const session = { sessionId, ...decided.farmIdentity === void 0 ? {} : { identity: decided.farmIdentity }, ...sessionModels === void 0 ? {} : { models: sessionModels }, configDir: decision.configDir ?? path55.join(os10.homedir(), ".claude"), ...decided.binVersion === void 0 ? {} : { claudeVersion: decided.binVersion } };
|
|
18750
18750
|
let frontDoor = frontDoorEngaged && frontDoorPort !== void 0 ? frontDoorPort.ensure(env.NODE_EXTRA_CA_CERTS, session) : void 0;
|
|
18751
18751
|
if (frontDoor !== void 0 && frontDoorPort !== void 0) {
|
|
18752
18752
|
let beforePid = frontDoor.supervisorPid;
|
|
@@ -20174,10 +20174,10 @@ function createRcSessionCommands(deps) {
|
|
|
20174
20174
|
return void 0;
|
|
20175
20175
|
}
|
|
20176
20176
|
if ("refused" in target) {
|
|
20177
|
-
return { kind: "refused", message: target.refused };
|
|
20177
|
+
return { kind: "refused", message: target.refused, refusal: "session-state" };
|
|
20178
20178
|
}
|
|
20179
20179
|
if (target.version === void 0 || !RC_SESSION_COMMAND_VERIFIED_VERSIONS.includes(target.version)) {
|
|
20180
|
-
return { kind: "refused", message: unverifiedVersionMessage(sessionId, target.version, route === "supervised" ? "its supervisor's control plugin has not loaded" : "its launch's control plugin has not loaded") };
|
|
20180
|
+
return { kind: "refused", message: unverifiedVersionMessage(sessionId, target.version, route === "supervised" ? "its supervisor's control plugin has not loaded" : "its launch's control plugin has not loaded"), refusal: "session-state" };
|
|
20181
20181
|
}
|
|
20182
20182
|
return { kind: route, target };
|
|
20183
20183
|
};
|
|
@@ -20191,18 +20191,18 @@ function createRcSessionCommands(deps) {
|
|
|
20191
20191
|
return launched;
|
|
20192
20192
|
}
|
|
20193
20193
|
if (!deps.isObserved(sessionId)) {
|
|
20194
|
-
return { kind: "refused", message: `the front door has not observed Remote Control session ${sessionId}
|
|
20194
|
+
return { kind: "refused", message: `the front door has not observed Remote Control session ${sessionId}`, refusal: "not-observed" };
|
|
20195
20195
|
}
|
|
20196
20196
|
if (deps.selfHost === void 0) {
|
|
20197
|
-
return { kind: "refused", message: unsupportedMessage(sessionId) };
|
|
20197
|
+
return { kind: "refused", message: unsupportedMessage(sessionId), refusal: "session-state" };
|
|
20198
20198
|
}
|
|
20199
20199
|
const unavailable = deps.selfHost.unavailable();
|
|
20200
20200
|
if (unavailable !== void 0) {
|
|
20201
|
-
return { kind: "refused", message: `${noPluginReason(sessionId)}, and the door's self-hosted surface cannot take a command: ${unavailable}
|
|
20201
|
+
return { kind: "refused", message: `${noPluginReason(sessionId)}, and the door's self-hosted surface cannot take a command: ${unavailable}`, refusal: "session-state" };
|
|
20202
20202
|
}
|
|
20203
20203
|
const version = deps.selfHost.versionOf(sessionId);
|
|
20204
20204
|
if (version === void 0 || !RC_SESSION_COMMAND_VERIFIED_VERSIONS.includes(version)) {
|
|
20205
|
-
return { kind: "refused", message: unverifiedVersionMessage(sessionId, version, "no system/init from its worker has been observed on its stream; send it a prompt so it reports one") };
|
|
20205
|
+
return { kind: "refused", message: unverifiedVersionMessage(sessionId, version, "its launch recorded none and no system/init from its worker has been observed on its stream; send it a prompt so it reports one"), refusal: "session-state" };
|
|
20206
20206
|
}
|
|
20207
20207
|
return { kind: "self-hosted", selfHost: deps.selfHost };
|
|
20208
20208
|
};
|
|
@@ -20213,7 +20213,7 @@ function createRcSessionCommands(deps) {
|
|
|
20213
20213
|
}
|
|
20214
20214
|
const resolved = await resolveRoute(sessionId);
|
|
20215
20215
|
if (resolved.kind === "refused") {
|
|
20216
|
-
return { ok: false, message: resolved.message };
|
|
20216
|
+
return { ok: false, message: resolved.message, refusal: resolved.refusal };
|
|
20217
20217
|
}
|
|
20218
20218
|
if (resolved.kind !== "self-hosted") {
|
|
20219
20219
|
const waitMs2 = options.waitMs ?? COMPACT_TIMEOUT_MS;
|
|
@@ -20239,7 +20239,7 @@ function createRcSessionCommands(deps) {
|
|
|
20239
20239
|
const transcriptGoal = async (sessionId, target) => {
|
|
20240
20240
|
const goal = target.transcriptPath === void 0 ? void 0 : await deps.goalOf(target.transcriptPath);
|
|
20241
20241
|
if (goal === void 0) {
|
|
20242
|
-
return { ok: false, message: `session ${sessionId}'s transcript has not been recorded yet, which is where its goal is read from; retry once it has finished a turn
|
|
20242
|
+
return { ok: false, message: `session ${sessionId}'s transcript has not been recorded yet, which is where its goal is read from; retry once it has finished a turn`, refusal: "session-state" };
|
|
20243
20243
|
}
|
|
20244
20244
|
return { ok: true, report: goal };
|
|
20245
20245
|
};
|
|
@@ -20255,7 +20255,7 @@ function createRcSessionCommands(deps) {
|
|
|
20255
20255
|
const waitOf = (options) => options.waitMs;
|
|
20256
20256
|
const transcriptPluginTurns = async (sessionId, target) => {
|
|
20257
20257
|
const turns = target.transcriptPath === void 0 ? void 0 : await deps.pluginTurnsOf(target.transcriptPath);
|
|
20258
|
-
return turns === void 0 ? { ok: false, message: `session ${sessionId}'s transcript has not been recorded yet, which is where a turn is confirmed from; retry once it has finished a turn
|
|
20258
|
+
return turns === void 0 ? { ok: false, message: `session ${sessionId}'s transcript has not been recorded yet, which is where a turn is confirmed from; retry once it has finished a turn`, refusal: "session-state" } : { ok: true, report: turns };
|
|
20259
20259
|
};
|
|
20260
20260
|
return {
|
|
20261
20261
|
/** 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. */
|
|
@@ -20268,13 +20268,13 @@ function createRcSessionCommands(deps) {
|
|
|
20268
20268
|
*/
|
|
20269
20269
|
turn: async (sessionId, text, options = {}) => {
|
|
20270
20270
|
if (text.trim() === "") {
|
|
20271
|
-
return { ok: false, message: "a turn needs non-empty text" };
|
|
20271
|
+
return { ok: false, message: "a turn needs non-empty text", refusal: "invalid-input" };
|
|
20272
20272
|
}
|
|
20273
20273
|
if (text.trimStart().startsWith("/")) {
|
|
20274
|
-
return { ok: false, message: "a turn's text starts with /, which the session would read as a slash command rather than a message, and the turn could not be confirmed as one; use the goal or compaction verbs for those commands, or start the text with something else" };
|
|
20274
|
+
return { ok: false, message: "a turn's text starts with /, which the session would read as a slash command rather than a message, and the turn could not be confirmed as one; use the goal or compaction verbs for those commands, or start the text with something else", refusal: "invalid-input" };
|
|
20275
20275
|
}
|
|
20276
20276
|
if (text.length > RC_TURN_TEXT_MAX_CHARS) {
|
|
20277
|
-
return { ok: false, message: `a turn's text is limited to ${String(RC_TURN_TEXT_MAX_CHARS)} characters, and this one has ${String(text.length)}
|
|
20277
|
+
return { ok: false, message: `a turn's text is limited to ${String(RC_TURN_TEXT_MAX_CHARS)} characters, and this one has ${String(text.length)}`, refusal: "invalid-input" };
|
|
20278
20278
|
}
|
|
20279
20279
|
return await onRoute(sessionId, options, {
|
|
20280
20280
|
plugin: async (target, route, signal, waitMs) => {
|
|
@@ -20323,16 +20323,16 @@ function createRcSessionCommands(deps) {
|
|
|
20323
20323
|
goalSet: async (sessionId, condition, options = {}) => {
|
|
20324
20324
|
const trimmed = condition.trim();
|
|
20325
20325
|
if (trimmed === "") {
|
|
20326
|
-
return { ok: false, message: "a goal set needs a non-empty condition" };
|
|
20326
|
+
return { ok: false, message: "a goal set needs a non-empty condition", refusal: "invalid-input" };
|
|
20327
20327
|
}
|
|
20328
20328
|
if (RC_GOAL_CLEAR_WORDS.includes(trimmed.toLowerCase())) {
|
|
20329
|
-
return { ok: false, message: `"${trimmed}" cannot be set as a goal condition: /goal reads ${RC_GOAL_CLEAR_WORDS.join(", ")} as a request to clear the goal, so use the clear verb for that
|
|
20329
|
+
return { ok: false, message: `"${trimmed}" cannot be set as a goal condition: /goal reads ${RC_GOAL_CLEAR_WORDS.join(", ")} as a request to clear the goal, so use the clear verb for that`, refusal: "invalid-input" };
|
|
20330
20330
|
}
|
|
20331
20331
|
if (/[\r\n]/u.test(trimmed)) {
|
|
20332
|
-
return { ok: false, message: "a goal condition is one line: /goal reads its condition from the line it is typed on, and both routes confirm the goal by the exact condition, so a condition spanning lines is refused rather than set as something else" };
|
|
20332
|
+
return { ok: false, message: "a goal condition is one line: /goal reads its condition from the line it is typed on, and both routes confirm the goal by the exact condition, so a condition spanning lines is refused rather than set as something else", refusal: "invalid-input" };
|
|
20333
20333
|
}
|
|
20334
20334
|
if (trimmed.length > RC_GOAL_CONDITION_MAX_CHARS) {
|
|
20335
|
-
return { ok: false, message: `a goal condition is limited to ${String(RC_GOAL_CONDITION_MAX_CHARS)} characters, and this one has ${String(trimmed.length)}
|
|
20335
|
+
return { ok: false, message: `a goal condition is limited to ${String(RC_GOAL_CONDITION_MAX_CHARS)} characters, and this one has ${String(trimmed.length)}`, refusal: "invalid-input" };
|
|
20336
20336
|
}
|
|
20337
20337
|
return await onRoute(sessionId, options, {
|
|
20338
20338
|
plugin: async (target, route, signal, waitMs) => {
|
|
@@ -20475,17 +20475,25 @@ function doorApiAuth(expectedToken) {
|
|
|
20475
20475
|
}
|
|
20476
20476
|
var RC_API_TAG = "remote-control";
|
|
20477
20477
|
var RC_DIRECTIVE_TAG = "remote-control-directives";
|
|
20478
|
+
var RC_REFUSAL_CODES = {
|
|
20479
|
+
"invalid-input": "BAD_REQUEST",
|
|
20480
|
+
"not-observed": "NOT_FOUND",
|
|
20481
|
+
"session-state": "CONFLICT"
|
|
20482
|
+
};
|
|
20483
|
+
function refusalOf(failure) {
|
|
20484
|
+
return new ORPCError(failure.refusal === void 0 ? "BAD_GATEWAY" : RC_REFUSAL_CODES[failure.refusal], { message: failure.message });
|
|
20485
|
+
}
|
|
20478
20486
|
function createRcApiRouter(deps) {
|
|
20479
20487
|
const authed = doorApiAuth(deps.expectedToken);
|
|
20480
20488
|
const delivered = (sessionId, result) => {
|
|
20481
20489
|
if (!result.ok) {
|
|
20482
|
-
throw
|
|
20490
|
+
throw refusalOf(result);
|
|
20483
20491
|
}
|
|
20484
20492
|
return result.sequenceNums;
|
|
20485
20493
|
};
|
|
20486
20494
|
const deliveredControl = (sessionId, result) => {
|
|
20487
20495
|
if (!result.ok) {
|
|
20488
|
-
throw
|
|
20496
|
+
throw refusalOf(result);
|
|
20489
20497
|
}
|
|
20490
20498
|
if (result.requestId === void 0) {
|
|
20491
20499
|
throw new ORPCError("INTERNAL_SERVER_ERROR", { message: "the control request was delivered but the door cannot name the request id it minted, so the worker's answer cannot be matched" });
|
|
@@ -20494,7 +20502,7 @@ function createRcApiRouter(deps) {
|
|
|
20494
20502
|
};
|
|
20495
20503
|
const commanded = (sessionId, result) => {
|
|
20496
20504
|
if (!result.ok) {
|
|
20497
|
-
throw
|
|
20505
|
+
throw refusalOf(result);
|
|
20498
20506
|
}
|
|
20499
20507
|
return { session: sessionId, ...result.report };
|
|
20500
20508
|
};
|
|
@@ -26461,7 +26469,8 @@ data: ${JSON.stringify(envelope)}
|
|
|
26461
26469
|
clients: /* @__PURE__ */ new Map(),
|
|
26462
26470
|
workerStatus: void 0,
|
|
26463
26471
|
externalMetadata: void 0,
|
|
26464
|
-
lastTrafficAt: deps.now()
|
|
26472
|
+
lastTrafficAt: deps.now(),
|
|
26473
|
+
launchVersion: request4.session.launch === void 0 ? void 0 : deps.launchVersionOf(request4.session.launch)
|
|
26465
26474
|
};
|
|
26466
26475
|
conversation.sessionIds.add(session.id);
|
|
26467
26476
|
sessions.set(session.id, session);
|
|
@@ -26496,6 +26505,7 @@ data: ${JSON.stringify(envelope)}
|
|
|
26496
26505
|
return {
|
|
26497
26506
|
route,
|
|
26498
26507
|
local,
|
|
26508
|
+
launchVersionOf: (sessionId) => sessions.get(sessionId)?.launchVersion,
|
|
26499
26509
|
close: () => {
|
|
26500
26510
|
clearInterval(timer);
|
|
26501
26511
|
clearInterval(keepalive);
|
|
@@ -26528,12 +26538,14 @@ function createLiveSessionRegistry(ports) {
|
|
|
26528
26538
|
let bySessionId = /* @__PURE__ */ new Map();
|
|
26529
26539
|
let launches = /* @__PURE__ */ new Set();
|
|
26530
26540
|
const recordNames = () => fs17.readdir(sessionsDir).filter(isSessionRecordName);
|
|
26541
|
+
let byLaunch = /* @__PURE__ */ new Map();
|
|
26531
26542
|
const rebuildIndexes = () => {
|
|
26532
26543
|
const records = [...known.values()].flatMap(({ record }) => record === void 0 ? [] : [record]);
|
|
26533
26544
|
tokens = new Set(records.map((record) => record.token));
|
|
26534
26545
|
byToken = new Map(records.map((record) => [record.token, record]));
|
|
26535
26546
|
bySessionId = new Map(records.flatMap((record) => record.sessionId === void 0 ? [] : [[record.sessionId, record]]));
|
|
26536
26547
|
launches = new Set(records.map(launchKeyOf));
|
|
26548
|
+
byLaunch = new Map(records.map((record) => [launchKeyOf(record), record]));
|
|
26537
26549
|
};
|
|
26538
26550
|
const load = (name, stat) => {
|
|
26539
26551
|
known.set(name, { stat: { mtimeMs: stat.mtimeMs, sizeBytes: stat.sizeBytes }, record: readFrontDoorSessionRecord(fs17, sessionsDir, name) });
|
|
@@ -26580,6 +26592,7 @@ function createLiveSessionRegistry(ports) {
|
|
|
26580
26592
|
return held?.sessionId === void 0 ? void 0 : { pid: held.pid, startedAt: held.startedAt };
|
|
26581
26593
|
},
|
|
26582
26594
|
holdsLaunch: (launch) => launches.has(launchKeyOf(launch)) || reconcile() && launches.has(launchKeyOf(launch)),
|
|
26595
|
+
claudeVersionOf: (launch) => (byLaunch.get(launchKeyOf(launch)) ?? (reconcile() ? byLaunch.get(launchKeyOf(launch)) : void 0))?.claudeVersion,
|
|
26583
26596
|
rescan: () => {
|
|
26584
26597
|
known.clear();
|
|
26585
26598
|
for (const name of recordNames()) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6024,6 +6024,7 @@ declare const FrontDoorSessionSchema: z.ZodObject<{
|
|
|
6024
6024
|
}, z.core.$strict>>>;
|
|
6025
6025
|
}, z.core.$strict>>;
|
|
6026
6026
|
configDir: z.ZodOptional<z.ZodString>;
|
|
6027
|
+
claudeVersion: z.ZodOptional<z.ZodString>;
|
|
6027
6028
|
}, z.core.$strict>;
|
|
6028
6029
|
type FrontDoorSession = z.infer<typeof FrontDoorSessionSchema>;
|
|
6029
6030
|
/** What names one launch: its launcher's pid and the time it registered. A launcher that registers again under its own pid (a relaunch after an account move, a `--resume`) writes a new start time, so per-launch state the door keeps never passes from one launch to the next, even when both carry the same session id. */
|
|
@@ -6058,6 +6059,8 @@ interface FrontDoorSessionDetails {
|
|
|
6058
6059
|
readonly models?: ModelsConfig;
|
|
6059
6060
|
/** The configuration directory the launch's child runs with, whichever way it was chosen (the identity's own, one the caller named, or Claude Code's default): what tells the door which login the launch holding this record's capability runs as, renames and the escape hatch included. Every launcher that knows the field names it, so a record without it was written by an older launcher. */
|
|
6060
6061
|
readonly configDir?: string;
|
|
6062
|
+
/** The version of the Claude Code binary the launcher started, when it knows one (a binary found in the versions directory; one found only on `PATH` has none): what the self-hosted Remote Control route gates a session on until its worker reports its own version. */
|
|
6063
|
+
readonly claudeVersion?: string;
|
|
6061
6064
|
}
|
|
6062
6065
|
/** A registered launch as status and the idle decision see it: the pid and start time, never the token, so nothing that prints or serialises a session can leak the capability. */
|
|
6063
6066
|
type FrontDoorSessionSummary = Pick<FrontDoorSession, "pid" | "startedAt" | "supervisorPid">;
|
|
@@ -7587,6 +7590,8 @@ interface RcEventDial {
|
|
|
7587
7590
|
*/
|
|
7588
7591
|
readonly writeTeleportEvents: (sessionId: string, headers: Readonly<Record<string, string>>, body: string) => Promise<RcDialAnswer>;
|
|
7589
7592
|
}
|
|
7593
|
+
/** Why the door refused an operation itself, before the session, the API host or the worker could fail it: `invalid-input` is a request that can never succeed as written, `not-observed` names a session (or, for an answer, a control request) the door does not observe, and `session-state` is a session the door observes but whose state does not let the operation run now (no route reaches it, its version is unverified, two launches claim it, only worker calls crossed the door, another answer is being written, its transcript is not recorded yet). A failure without one was attempted and not delivered: the API host, the plugin or the worker did not deliver it. */
|
|
7594
|
+
type RcRefusalKind = "invalid-input" | "not-observed" | "session-state";
|
|
7590
7595
|
/**
|
|
7591
7596
|
* What one client-half write produced: the sequence numbers the real service assigned, or a verbose failure message ready to show a user. A write that carried a `control_request` also names the request id it minted, because the worker's `control_response` echoes exactly that id on the stream: a consumer that wants the answer matches it there, and the id is surfaced here since only the door ever knew it.
|
|
7592
7597
|
*/
|
|
@@ -7597,6 +7602,7 @@ type RcEventWriteResult = {
|
|
|
7597
7602
|
} | {
|
|
7598
7603
|
readonly ok: false;
|
|
7599
7604
|
readonly message: string;
|
|
7605
|
+
readonly refusal?: RcRefusalKind;
|
|
7600
7606
|
};
|
|
7601
7607
|
/** Maps one dial answer to the write result: an accepted write yields its sequence numbers; anything else yields a verbose message, with the 401 case naming the stale observed bearer as the cause. */
|
|
7602
7608
|
declare function rcEventWriteResultFromAnswer(answer: RcDialAnswer): RcEventWriteResult;
|
|
@@ -8424,7 +8430,7 @@ interface RcSelfHostCommandDeps {
|
|
|
8424
8430
|
readonly unavailable: () => string | undefined;
|
|
8425
8431
|
/** The client attachment's fan-out, on which the worker's answer arrives. */
|
|
8426
8432
|
readonly fanout: RcEventFanout;
|
|
8427
|
-
/** The Claude Code version the session's
|
|
8433
|
+
/** The Claude Code version the session runs (`createSelfHostedSessionVersions`: the worker's own report, else the version its launch recorded), or undefined when neither is known. */
|
|
8428
8434
|
readonly versionOf: (sessionId: string) => string | undefined;
|
|
8429
8435
|
/** Arms one timer, returning the function that cancels it: `setTimeout` in production, a controllable clock in tests. */
|
|
8430
8436
|
readonly setTimer: (action: () => void, ms: number) => () => void;
|
|
@@ -8548,13 +8554,14 @@ type RcSessionRoute = {
|
|
|
8548
8554
|
readonly route: null;
|
|
8549
8555
|
readonly refused: string;
|
|
8550
8556
|
};
|
|
8551
|
-
/** One verb's outcome: the report, or a verbose failure ready to show a user. */
|
|
8557
|
+
/** One verb's outcome: the report, or a verbose failure ready to show a user. A failure carries a `refusal` when the door refused the verb itself; without one the verb was attempted and the session, its plugin or its worker did not deliver it (no answer in time, an answer that says it failed). */
|
|
8552
8558
|
type RcSessionCommandResult<T> = {
|
|
8553
8559
|
readonly ok: true;
|
|
8554
8560
|
readonly report: T;
|
|
8555
8561
|
} | {
|
|
8556
8562
|
readonly ok: false;
|
|
8557
8563
|
readonly message: string;
|
|
8564
|
+
readonly refusal?: RcRefusalKind;
|
|
8558
8565
|
};
|
|
8559
8566
|
/** The options every verb takes. */
|
|
8560
8567
|
interface RcSessionCommandOptions {
|
|
@@ -26886,6 +26893,8 @@ interface RcSelfHostDeps {
|
|
|
26886
26893
|
readonly ownsLaunch: (capability: string) => boolean;
|
|
26887
26894
|
/** The same discriminator for a redirected connection, which carries no capability: whether the process holding its client end (on local port `port`) descends from a self-hosted launch, failing closed when it cannot be read. */
|
|
26888
26895
|
readonly ownsPeer: (port: number) => Promise<boolean>;
|
|
26896
|
+
/** The Claude Code version the launch recorded for the binary it started (`FrontDoorSessionDetails.claudeVersion`, read from the door's session registry), or undefined when it recorded none: asked once per session, for the launch whose capability created it. */
|
|
26897
|
+
readonly launchVersionOf: (launch: Readonly<FrontDoorLaunch>) => string | undefined;
|
|
26889
26898
|
readonly log?: (line: string) => void;
|
|
26890
26899
|
}
|
|
26891
26900
|
/** The self-hosted Remote Control service: the session-family route for the pipeline, and the local answers the connect surface consults before routing or piping. */
|
|
@@ -26894,6 +26903,8 @@ interface RcSelfHostSurface {
|
|
|
26894
26903
|
readonly route: FrontDoorRoute;
|
|
26895
26904
|
/** The connect surface's local answers: which hosts it takes over as HTTP, and the requests it answers itself. */
|
|
26896
26905
|
readonly local: RcSelfHostLocal;
|
|
26906
|
+
/** The Claude Code version the launch that created a session recorded for its binary (`RcSelfHostDeps.launchVersionOf`), or undefined for a session this surface does not hold or whose launch recorded none. */
|
|
26907
|
+
readonly launchVersionOf: (sessionId: string) => string | undefined;
|
|
26897
26908
|
/** Stops the service's timers and retires every open stream. The sessions themselves are unreachable the moment the door drops them. */
|
|
26898
26909
|
readonly close: () => void;
|
|
26899
26910
|
}
|
|
@@ -27029,6 +27040,8 @@ interface LiveSessionRegistry {
|
|
|
27029
27040
|
readonly launchOfToken: (token: string) => FrontDoorLaunch | undefined;
|
|
27030
27041
|
/** Whether `launch` is still registered, looked up as `modelsOf` looks one up: what bounds per-launch state the door keeps, which must live exactly as long as the launch it describes. */
|
|
27031
27042
|
readonly holdsLaunch: (launch: Readonly<FrontDoorLaunch>) => boolean;
|
|
27043
|
+
/** The Claude Code version the live launch `launch` recorded for the binary it started, or undefined when the view holds no such launch or its record names none (an older launcher's, or a binary found only on `PATH`); looked up as `holdsLaunch` looks one up. */
|
|
27044
|
+
readonly claudeVersionOf: (launch: Readonly<FrontDoorLaunch>) => string | undefined;
|
|
27032
27045
|
/** Drops the launches `pids` from the view, for the records the caller has just removed (the tick's prune), so their capabilities are refused at once rather than at the next `rescan`. */
|
|
27033
27046
|
readonly forget: (pids: readonly number[]) => void;
|
|
27034
27047
|
}
|
|
@@ -28783,4 +28796,4 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
|
|
|
28783
28796
|
declare function agentShimCliPath(distDir?: string | undefined): string;
|
|
28784
28797
|
|
|
28785
28798
|
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 };
|
|
28786
|
-
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 };
|
|
28799
|
+
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, RcRefusalKind, 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": "claude-use",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.7.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>",
|