agent-shim 14.21.0 → 14.23.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 +181 -23
- package/dist/index.cjs +114 -4
- package/dist/index.mjs +112 -4
- package/dist/types/index.d.ts +127 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -41086,21 +41086,19 @@ function toolSurfaceOfPath(url2) {
|
|
|
41086
41086
|
}
|
|
41087
41087
|
return SURFACE_PATHS.find(([, prefix]) => path107 === prefix || path107.startsWith(`${prefix}/`))?.[0];
|
|
41088
41088
|
}
|
|
41089
|
+
function lendingBearer(deps, borrowerId, surface) {
|
|
41090
|
+
const identities = deps.identities();
|
|
41091
|
+
const lenderId = identities.find((identity) => identity.id === borrowerId)?.toolLogins?.[surface];
|
|
41092
|
+
const granted = lenderId !== void 0 && identities.find((identity) => identity.id === lenderId)?.grants?.some((grant) => grant.to === borrowerId && grant.features.includes("server-tools")) === true;
|
|
41093
|
+
const login = granted ? readLenderLogin(deps.loginPorts, deps.identitiesDir, lenderId) : void 0;
|
|
41094
|
+
return login !== void 0 && lenderLoginUsable(login, deps.now(), LENDER_LOGIN_GRACE_MS2) ? login.token : void 0;
|
|
41095
|
+
}
|
|
41089
41096
|
function toolSurfaceAuthorizationRewriter(deps) {
|
|
41090
41097
|
return (host, request7, tunnelToken) => {
|
|
41091
41098
|
const surface = host === CONNECT_INTERCEPT_HOST && tunnelToken !== void 0 ? toolSurfaceOfPath(request7.url) : void 0;
|
|
41092
41099
|
const borrowerId = surface === void 0 || tunnelToken === void 0 ? void 0 : deps.identityOfToken(tunnelToken);
|
|
41093
|
-
|
|
41094
|
-
|
|
41095
|
-
}
|
|
41096
|
-
const identities = deps.identities();
|
|
41097
|
-
const lenderId = identities.find((identity) => identity.id === borrowerId)?.toolLogins?.[surface];
|
|
41098
|
-
const granted = lenderId !== void 0 && identities.find((identity) => identity.id === lenderId)?.grants?.some((grant) => grant.to === borrowerId && grant.features.includes("server-tools")) === true;
|
|
41099
|
-
const login = granted ? readLenderLogin(deps.loginPorts, deps.identitiesDir, lenderId) : void 0;
|
|
41100
|
-
if (login === void 0 || !lenderLoginUsable(login, deps.now(), LENDER_LOGIN_GRACE_MS2)) {
|
|
41101
|
-
return void 0;
|
|
41102
|
-
}
|
|
41103
|
-
return { authorization: `Bearer ${login.token}`, url: request7.url };
|
|
41100
|
+
const token = surface === void 0 || borrowerId === void 0 || request7.url === void 0 ? void 0 : lendingBearer(deps, borrowerId, surface);
|
|
41101
|
+
return token === void 0 || request7.url === void 0 ? void 0 : { authorization: `Bearer ${token}`, url: request7.url };
|
|
41104
41102
|
};
|
|
41105
41103
|
}
|
|
41106
41104
|
var LENDER_LOGIN_GRACE_MS2, SURFACE_PATHS;
|
|
@@ -41611,14 +41609,20 @@ function wiredAuthorizationRewriter(paths, identityOfToken, loginPorts) {
|
|
|
41611
41609
|
loginPorts,
|
|
41612
41610
|
now: Date.now
|
|
41613
41611
|
});
|
|
41614
|
-
const tools = toolSurfaceAuthorizationRewriter({
|
|
41615
|
-
|
|
41612
|
+
const tools = toolSurfaceAuthorizationRewriter({ identityOfToken, ...toolSurfaceLendingDeps(paths, loginPorts) });
|
|
41613
|
+
return (host, request7, tunnelToken) => connector(host, request7, tunnelToken) ?? tools(host, request7, tunnelToken);
|
|
41614
|
+
}
|
|
41615
|
+
function toolSurfaceLendingDeps(paths, loginPorts) {
|
|
41616
|
+
return {
|
|
41616
41617
|
identities: () => listIdentities(paths).flatMap((entry) => entry.problem === void 0 ? [{ id: entry.id, name: entry.name, grants: entry.identity.grants, toolLogins: entry.identity.toolLogins }] : []),
|
|
41617
41618
|
identitiesDir: paths.identitiesDir,
|
|
41618
41619
|
loginPorts,
|
|
41619
41620
|
now: Date.now
|
|
41620
|
-
}
|
|
41621
|
-
|
|
41621
|
+
};
|
|
41622
|
+
}
|
|
41623
|
+
function wiredLendWebSearch(paths, loginPorts) {
|
|
41624
|
+
const deps = toolSurfaceLendingDeps(paths, loginPorts);
|
|
41625
|
+
return (identityId) => lendingBearer(deps, identityId, "web-search");
|
|
41622
41626
|
}
|
|
41623
41627
|
function wiredMergeConnectorList2(paths, apiBase, loginPorts) {
|
|
41624
41628
|
return wiredMergeConnectorList({
|
|
@@ -45788,7 +45792,62 @@ async function readRcServerState(deps, sessionId) {
|
|
|
45788
45792
|
}
|
|
45789
45793
|
return { kind: "read", status: record3.data.status, ...record3.data.worker_status === void 0 ? {} : { workerStatus: record3.data.worker_status }, ...record3.data.connection_status === void 0 ? {} : { connectionStatus: record3.data.connection_status } };
|
|
45790
45794
|
}
|
|
45791
|
-
|
|
45795
|
+
function lifecycleBlocker(action, sessionId, before) {
|
|
45796
|
+
if (before.kind === "unknown") {
|
|
45797
|
+
return `the door could not confirm session ${sessionId} has ended, so it was not ${action}d (${before.reason}); pass --force to ${action} it anyway`;
|
|
45798
|
+
}
|
|
45799
|
+
if (action === "unarchive") {
|
|
45800
|
+
return before.status === RC_STATUS_ARCHIVED ? void 0 : `session ${sessionId} is not archived (the host reports it ${before.status}); pass --force to unarchive it anyway`;
|
|
45801
|
+
}
|
|
45802
|
+
if (before.status === RC_STATUS_ARCHIVED) {
|
|
45803
|
+
return `session ${sessionId} is already archived; pass --force to archive it again`;
|
|
45804
|
+
}
|
|
45805
|
+
if (before.connectionStatus === void 0) {
|
|
45806
|
+
return `the host does not report session ${sessionId} as ended (its record names no connection status), so it was not archived; pass --force to archive it anyway`;
|
|
45807
|
+
}
|
|
45808
|
+
if (before.connectionStatus !== RC_CONNECTION_DISCONNECTED) {
|
|
45809
|
+
return `session ${sessionId}'s worker is still connected (connection ${before.connectionStatus}), so it was not archived: end it first with \`frontdoor rc end-session\`, or pass --force to archive it while it runs`;
|
|
45810
|
+
}
|
|
45811
|
+
return void 0;
|
|
45812
|
+
}
|
|
45813
|
+
function lifecycleRefusedMessage(action, sessionId, answer) {
|
|
45814
|
+
const prefix = `the API host refused to ${action} session ${sessionId} (HTTP ${String(answer.status)})`;
|
|
45815
|
+
if (answer.status === HTTP_STATUS.unauthorized || answer.status === HTTP_STATUS.forbidden) {
|
|
45816
|
+
return `${prefix}: the door sends the session's observed bearer, which the host can refuse for a stale bearer or, when the organisation requires trusted devices, for the missing trusted-device token Claude Code adds to its own call (the "untrusted device" refusal); the door holds no trusted-device token. API answer: ${answer.body}`;
|
|
45817
|
+
}
|
|
45818
|
+
return `${prefix}: ${answer.body}`;
|
|
45819
|
+
}
|
|
45820
|
+
async function changeRcSessionLifecycle(deps, action, sessionId, options) {
|
|
45821
|
+
const credential = deps.credentialOf(sessionId);
|
|
45822
|
+
if (credential === void 0) {
|
|
45823
|
+
return { ok: false, message: rcSessionNotObservedMessage(sessionId), refusal: "not-observed" };
|
|
45824
|
+
}
|
|
45825
|
+
if (credential.authorization === void 0) {
|
|
45826
|
+
return { ok: false, message: noOAuthCredentialMessage(sessionId), refusal: "session-state" };
|
|
45827
|
+
}
|
|
45828
|
+
const before = await readRcServerState(deps, sessionId);
|
|
45829
|
+
const blocker = lifecycleBlocker(action, sessionId, before);
|
|
45830
|
+
if (blocker !== void 0 && !options.force) {
|
|
45831
|
+
return { ok: false, message: blocker, refusal: "session-state", before };
|
|
45832
|
+
}
|
|
45833
|
+
let answer;
|
|
45834
|
+
try {
|
|
45835
|
+
answer = await deps.dial.postSessionLifecycle(sessionId, action, rcWriteHeaders(credential));
|
|
45836
|
+
} catch (error63) {
|
|
45837
|
+
return { ok: false, message: `the door could not reach the API host to ${action} session ${sessionId}: ${error63 instanceof Error ? error63.message : String(error63)}`, before };
|
|
45838
|
+
}
|
|
45839
|
+
if (!isSuccessful(answer.status)) {
|
|
45840
|
+
return { ok: false, message: lifecycleRefusedMessage(action, sessionId, answer), before };
|
|
45841
|
+
}
|
|
45842
|
+
return { ok: true, before, after: await readRcServerState(deps, sessionId) };
|
|
45843
|
+
}
|
|
45844
|
+
async function archiveRcSession(deps, sessionId, options) {
|
|
45845
|
+
return await changeRcSessionLifecycle(deps, "archive", sessionId, options);
|
|
45846
|
+
}
|
|
45847
|
+
async function unarchiveRcSession(deps, sessionId, options) {
|
|
45848
|
+
return await changeRcSessionLifecycle(deps, "unarchive", sessionId, options);
|
|
45849
|
+
}
|
|
45850
|
+
var RC_SEND_DELIVERY_NOTE, RC_PERMISSION_MODES, RC_CONTEXT_USAGE_DETAILS, RC_READ_FILE_ENCODINGS, RcSessionRecordSchema, RcSessionAnswerSchema, RC_CONNECTION_DISCONNECTED, RC_STATUS_ARCHIVED;
|
|
45792
45851
|
var init_rcWrites = __esm({
|
|
45793
45852
|
"src/frontdoor/rcWrites.ts"() {
|
|
45794
45853
|
"use strict";
|
|
@@ -45802,6 +45861,8 @@ var init_rcWrites = __esm({
|
|
|
45802
45861
|
RC_READ_FILE_ENCODINGS = ["utf-8", "base64"];
|
|
45803
45862
|
RcSessionRecordSchema = external_exports.looseObject({ status: external_exports.string(), worker_status: external_exports.string().optional(), connection_status: external_exports.string().optional() });
|
|
45804
45863
|
RcSessionAnswerSchema = external_exports.union([external_exports.looseObject({ response_shape: RcSessionRecordSchema }).transform((answer) => answer.response_shape), RcSessionRecordSchema]);
|
|
45864
|
+
RC_CONNECTION_DISCONNECTED = "disconnected";
|
|
45865
|
+
RC_STATUS_ARCHIVED = "archived";
|
|
45805
45866
|
}
|
|
45806
45867
|
});
|
|
45807
45868
|
|
|
@@ -45826,7 +45887,7 @@ var init_machineLoad = __esm({
|
|
|
45826
45887
|
function workerFactSchema(value3) {
|
|
45827
45888
|
return external_exports.strictObject({ value: value3, observedAt: external_exports.number() });
|
|
45828
45889
|
}
|
|
45829
|
-
var RcPermissionModeSchema, RcSessionSummarySchema, RcQuestionOptionSchema, RcPendingQuestionSchema, RcPendingRequestSummarySchema, RcServerStateSchema, RcSessionStatusSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, RcRateLimitWindowSchema, RcRateLimitInfoSchema, RcLiveRateLimitSchema, RcSessionQuerySchema, RcSendInputSchema, RcQuestionSelectionSchema, RcQuestionChoicesSchema, RcAnswerInputSchema, RcInterruptInputSchema, RcSetModelInputSchema, RcSetPermissionModeInputSchema, RcEndSessionInputSchema, RcGetUsageInputSchema, RcGetContextUsageInputSchema, RcReadFileInputSchema, RcFileSuggestionsInputSchema, RcKeepAliveInputSchema, RcMcpStatusInputSchema, RcMcpReconnectInputSchema, RcMcpAuthenticateInputSchema, RcMcpOAuthCallbackUrlInputSchema, RcTeleportInputSchema, RcListOutputSchema, RcSessionCommandRouteSchema, RcVersionGateWarningsSchema, RcSessionRouteSchema, RcStatusOutputSchema, RcPendingOutputSchema, RcWriteOutputSchema, RcControlWriteOutputSchema, RcAnswerOutputSchema;
|
|
45890
|
+
var RcPermissionModeSchema, RcSessionSummarySchema, RcQuestionOptionSchema, RcPendingQuestionSchema, RcPendingRequestSummarySchema, RcServerStateSchema, RcSessionStatusSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, RcRateLimitWindowSchema, RcRateLimitInfoSchema, RcLiveRateLimitSchema, RcSessionQuerySchema, RcSendInputSchema, RcQuestionSelectionSchema, RcQuestionChoicesSchema, RcAnswerInputSchema, RcInterruptInputSchema, RcSetModelInputSchema, RcSetPermissionModeInputSchema, RcEndSessionInputSchema, RcSessionLifecycleInputSchema, RcSessionLifecycleOutputSchema, RcGetUsageInputSchema, RcGetContextUsageInputSchema, RcReadFileInputSchema, RcFileSuggestionsInputSchema, RcKeepAliveInputSchema, RcMcpStatusInputSchema, RcMcpReconnectInputSchema, RcMcpAuthenticateInputSchema, RcMcpOAuthCallbackUrlInputSchema, RcTeleportInputSchema, RcListOutputSchema, RcSessionCommandRouteSchema, RcVersionGateWarningsSchema, RcSessionRouteSchema, RcStatusOutputSchema, RcPendingOutputSchema, RcWriteOutputSchema, RcControlWriteOutputSchema, RcAnswerOutputSchema;
|
|
45830
45891
|
var init_rcSchemas = __esm({
|
|
45831
45892
|
"src/frontdoor/rcSchemas.ts"() {
|
|
45832
45893
|
"use strict";
|
|
@@ -45957,6 +46018,15 @@ var init_rcSchemas = __esm({
|
|
|
45957
46018
|
session: external_exports.string().min(1),
|
|
45958
46019
|
reason: external_exports.string().min(1).optional()
|
|
45959
46020
|
});
|
|
46021
|
+
RcSessionLifecycleInputSchema = external_exports.strictObject({
|
|
46022
|
+
session: external_exports.string().min(1),
|
|
46023
|
+
force: external_exports.boolean().optional()
|
|
46024
|
+
});
|
|
46025
|
+
RcSessionLifecycleOutputSchema = external_exports.strictObject({
|
|
46026
|
+
session: external_exports.string(),
|
|
46027
|
+
before: RcServerStateSchema,
|
|
46028
|
+
after: RcServerStateSchema
|
|
46029
|
+
});
|
|
45960
46030
|
RcGetUsageInputSchema = external_exports.strictObject({
|
|
45961
46031
|
session: external_exports.string().min(1),
|
|
45962
46032
|
skipBehaviors: external_exports.boolean().optional()
|
|
@@ -47102,6 +47172,8 @@ function realRcEventDial(target = { host: CONNECT_INTERCEPT_HOST, port: HTTPS_PO
|
|
|
47102
47172
|
const post = async (path107, headers, body) => await send("POST", path107, headers, body);
|
|
47103
47173
|
return {
|
|
47104
47174
|
readSession: async (sessionId, headers) => await send("GET", `/v1/code/sessions/${encodeURIComponent(sessionId)}`, headers, void 0),
|
|
47175
|
+
// The body is `{}`, as Claude Code's own archive and unarchive helpers post it (`archiveCodeSession` and `unarchiveCodeSession`, verified in the 2.1.309 bundle).
|
|
47176
|
+
postSessionLifecycle: async (sessionId, action, headers) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/${action}`, headers, "{}"),
|
|
47105
47177
|
writeEvents: async (sessionId, headers, body) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/events`, headers, body),
|
|
47106
47178
|
writeTeleportEvents: async (sessionId, headers, body) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/teleport-events`, headers, body)
|
|
47107
47179
|
};
|
|
@@ -47118,7 +47190,8 @@ function lateRcEventDial(resolve3) {
|
|
|
47118
47190
|
return {
|
|
47119
47191
|
writeEvents: async (sessionId, headers, body) => await dialFor().writeEvents(sessionId, headers, body),
|
|
47120
47192
|
writeTeleportEvents: async (sessionId, headers, body) => await dialFor().writeTeleportEvents(sessionId, headers, body),
|
|
47121
|
-
readSession: async (sessionId, headers) => await dialFor().readSession(sessionId, headers)
|
|
47193
|
+
readSession: async (sessionId, headers) => await dialFor().readSession(sessionId, headers),
|
|
47194
|
+
postSessionLifecycle: async (sessionId, action, headers) => await dialFor().postSessionLifecycle(sessionId, action, headers)
|
|
47122
47195
|
};
|
|
47123
47196
|
}
|
|
47124
47197
|
function lateRcStreamDial(resolve3) {
|
|
@@ -76955,7 +77028,7 @@ var init_package = __esm({
|
|
|
76955
77028
|
"package.json"() {
|
|
76956
77029
|
package_default = {
|
|
76957
77030
|
name: "agent-shim",
|
|
76958
|
-
version: "14.
|
|
77031
|
+
version: "14.23.0",
|
|
76959
77032
|
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.",
|
|
76960
77033
|
license: "MIT",
|
|
76961
77034
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -136830,7 +136903,8 @@ function createDoorPipelines(deps) {
|
|
|
136830
136903
|
canonicalProvider: deps.canonicalProvider,
|
|
136831
136904
|
now: deps.now,
|
|
136832
136905
|
log: deps.log,
|
|
136833
|
-
...deps.mergeConnectorList === void 0 ? {} : { mergeConnectorList: deps.mergeConnectorList }
|
|
136906
|
+
...deps.mergeConnectorList === void 0 ? {} : { mergeConnectorList: deps.mergeConnectorList },
|
|
136907
|
+
...deps.lendWebSearch === void 0 ? {} : { lendWebSearch: deps.lendWebSearch }
|
|
136834
136908
|
},
|
|
136835
136909
|
direct: {
|
|
136836
136910
|
resolveRoute: deps.resolveRoute,
|
|
@@ -148161,6 +148235,12 @@ function createRcApiRouter(deps) {
|
|
|
148161
148235
|
}
|
|
148162
148236
|
return { request: result.requestId, sequenceNums: result.sequenceNums };
|
|
148163
148237
|
};
|
|
148238
|
+
const changed = (result) => {
|
|
148239
|
+
if (!result.ok) {
|
|
148240
|
+
throw refusalOf(result);
|
|
148241
|
+
}
|
|
148242
|
+
return { before: result.before, after: result.after };
|
|
148243
|
+
};
|
|
148164
148244
|
const commanded = (sessionId, result) => {
|
|
148165
148245
|
if (!result.ok) {
|
|
148166
148246
|
throw refusalOf(result);
|
|
@@ -148196,6 +148276,8 @@ function createRcApiRouter(deps) {
|
|
|
148196
148276
|
setModel: authed.meta(openapi({ method: "POST", path: "/rest/rc/set-model", summary: "Switch a session's model", tags: [RC_API_TAG] })).input(RcSetModelInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...deliveredControl(input2.session, await deps.setModel(input2.session, input2.model)) })),
|
|
148197
148277
|
setPermissionMode: authed.meta(openapi({ method: "POST", path: "/rest/rc/set-permission-mode", summary: "Switch a session's permission mode", tags: [RC_API_TAG] })).input(RcSetPermissionModeInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...deliveredControl(input2.session, await deps.setPermissionMode(input2.session, input2.mode)) })),
|
|
148198
148278
|
endSession: authed.meta(openapi({ method: "POST", path: "/rest/rc/end-session", summary: "End a session", tags: [RC_API_TAG] })).input(RcEndSessionInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...deliveredControl(input2.session, await deps.endSession(input2.session, input2.reason)) })),
|
|
148279
|
+
archive: authed.meta(openapi({ method: "POST", path: "/rest/rc/archive", summary: "Archive an ended session, reporting the host's state before and after", tags: [RC_API_TAG] })).input(RcSessionLifecycleInputSchema).output(RcSessionLifecycleOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...changed(await deps.archive(input2.session, input2.force === true)) })),
|
|
148280
|
+
unarchive: authed.meta(openapi({ method: "POST", path: "/rest/rc/unarchive", summary: "Unarchive an archived session, reporting the host's state before and after", tags: [RC_API_TAG] })).input(RcSessionLifecycleInputSchema).output(RcSessionLifecycleOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...changed(await deps.unarchive(input2.session, input2.force === true)) })),
|
|
148199
148281
|
getUsage: authed.meta(openapi({ method: "POST", path: "/rest/rc/get-usage", summary: "Ask a session for its usage snapshot", tags: [RC_API_TAG] })).input(RcGetUsageInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...deliveredControl(input2.session, await deps.getUsage(input2.session, input2.skipBehaviors)) })),
|
|
148200
148282
|
getContextUsage: authed.meta(openapi({ method: "POST", path: "/rest/rc/get-context-usage", summary: "Ask a session for its context usage", tags: [RC_API_TAG] })).input(RcGetContextUsageInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...deliveredControl(input2.session, await deps.getContextUsage(input2.session, input2.detail)) })),
|
|
148201
148283
|
readFile: authed.meta(openapi({ method: "POST", path: "/rest/rc/read-file", summary: "Ask a session to read one file", tags: [RC_API_TAG] })).input(RcReadFileInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input: input2 }) => ({ session: input2.session, ...deliveredControl(input2.session, await deps.readFile(input2.session, input2.path, { ...input2.maxBytes === void 0 ? {} : { maxBytes: input2.maxBytes }, ...input2.encoding === void 0 ? {} : { encoding: input2.encoding } })) })),
|
|
@@ -151148,6 +151230,37 @@ function bufferingRoutedResponse(inner, transform2) {
|
|
|
151148
151230
|
};
|
|
151149
151231
|
}
|
|
151150
151232
|
|
|
151233
|
+
// src/webSearchRequest.ts
|
|
151234
|
+
var WEB_SEARCH_BODY_CAP_BYTES = 65536;
|
|
151235
|
+
var WEB_SEARCH_TOOL_PREFIX = "web_search_";
|
|
151236
|
+
function isWebSearchRequestBody(bodyText) {
|
|
151237
|
+
let parsed;
|
|
151238
|
+
try {
|
|
151239
|
+
parsed = JSON.parse(bodyText);
|
|
151240
|
+
} catch {
|
|
151241
|
+
return false;
|
|
151242
|
+
}
|
|
151243
|
+
if (typeof parsed !== "object" || parsed === null) {
|
|
151244
|
+
return false;
|
|
151245
|
+
}
|
|
151246
|
+
const tools = Reflect.get(parsed, "tools");
|
|
151247
|
+
return Array.isArray(tools) && tools.some((tool) => typeof tool === "object" && tool !== null && typeof Reflect.get(tool, "type") === "string" && String(Reflect.get(tool, "type")).startsWith(WEB_SEARCH_TOOL_PREFIX));
|
|
151248
|
+
}
|
|
151249
|
+
|
|
151250
|
+
// src/frontdoor/webSearchLending.ts
|
|
151251
|
+
var MESSAGES_PATH2 = "/v1/messages";
|
|
151252
|
+
async function withLentWebSearch(request7, identityId, lend) {
|
|
151253
|
+
if (lend === void 0 || identityId === void 0 || request7.method !== "POST" || request7.url.split("?", 1)[0] !== MESSAGES_PATH2 || request7.session.provider !== void 0 || !(declaredLength(request7.headers) <= WEB_SEARCH_BODY_CAP_BYTES)) {
|
|
151254
|
+
return request7;
|
|
151255
|
+
}
|
|
151256
|
+
const scanned = await scanRequestHead(request7, true, void 0, WEB_SEARCH_BODY_CAP_BYTES);
|
|
151257
|
+
if (scanned.tooLarge === true) {
|
|
151258
|
+
throw new Error("a request declared a body within the web-search read cap and then sent more");
|
|
151259
|
+
}
|
|
151260
|
+
const bearer = scanned.text !== void 0 && isWebSearchRequestBody(scanned.text) ? lend(identityId) : void 0;
|
|
151261
|
+
return bearer === void 0 ? scanned.replayed : { ...scanned.replayed, headers: { ...scanned.replayed.headers, authorization: `Bearer ${bearer}` } };
|
|
151262
|
+
}
|
|
151263
|
+
|
|
151151
151264
|
// src/frontdoor/pipeline.ts
|
|
151152
151265
|
var MCP_SERVERS_PATH2 = "/v1/mcp_servers";
|
|
151153
151266
|
function errorTypeFor(status) {
|
|
@@ -151301,7 +151414,7 @@ async function serveRouted(incoming, givenDeps) {
|
|
|
151301
151414
|
response2.end();
|
|
151302
151415
|
return;
|
|
151303
151416
|
}
|
|
151304
|
-
const
|
|
151417
|
+
const unlent = {
|
|
151305
151418
|
method: request7.method,
|
|
151306
151419
|
url: request7.url,
|
|
151307
151420
|
headers: admission.headers,
|
|
@@ -151313,6 +151426,7 @@ async function serveRouted(incoming, givenDeps) {
|
|
|
151313
151426
|
...admission.launch === void 0 ? {} : { launch: admission.launch }
|
|
151314
151427
|
}
|
|
151315
151428
|
};
|
|
151429
|
+
const routed = await withLentWebSearch(unlent, admission.identity, deps.lendWebSearch);
|
|
151316
151430
|
const resolution = await deps.resolveRoute(routed);
|
|
151317
151431
|
if (!resolution.ok) {
|
|
151318
151432
|
const response2 = createRoutedResponse(request7.response, { deps, session: identified.session, route: "(unrouted)", request: observed, servedPath: observed.path });
|
|
@@ -154760,6 +154874,15 @@ function formatRcSessionList(sessions) {
|
|
|
154760
154874
|
}
|
|
154761
154875
|
return sessions.map((session) => `${session.id} created ${new Date(session.createdAt).toISOString()} last seen ${new Date(session.lastSeenAt).toISOString()}`);
|
|
154762
154876
|
}
|
|
154877
|
+
function formatRcServerState(state) {
|
|
154878
|
+
if (state.kind === "unknown") {
|
|
154879
|
+
return `unknown (${state.reason})`;
|
|
154880
|
+
}
|
|
154881
|
+
return [state.status, state.workerStatus === void 0 ? void 0 : `worker ${state.workerStatus}`, state.connectionStatus === void 0 ? void 0 : `connection ${state.connectionStatus}`].filter((part) => part !== void 0).join(", ");
|
|
154882
|
+
}
|
|
154883
|
+
function formatRcLifecycleChange(done, change) {
|
|
154884
|
+
return [`${done} ${change.session}`, ` before: ${formatRcServerState(change.before)}`, ` after: ${formatRcServerState(change.after)}`];
|
|
154885
|
+
}
|
|
154763
154886
|
function formatRcSessionStatus(statuses) {
|
|
154764
154887
|
if (statuses.length === 0) {
|
|
154765
154888
|
return ["no Remote Control sessions observed"];
|
|
@@ -154782,7 +154905,7 @@ function formatRcSessionStatus(statuses) {
|
|
|
154782
154905
|
status.workerIdleSeconds === void 0 ? "idle unknown" : `idle ${String(status.workerIdleSeconds.value)} s as of ${new Date(status.workerIdleSeconds.observedAt).toISOString()}`
|
|
154783
154906
|
].join(", ");
|
|
154784
154907
|
lines.push(` worker: ${worker}`);
|
|
154785
|
-
lines.push(
|
|
154908
|
+
lines.push(` server: ${formatRcServerState(status.serverState)}`);
|
|
154786
154909
|
lines.push(status.route.route === null ? ` goal, compaction and turn verbs: refused: ${status.route.refused}` : ` goal, compaction and turn verbs: ${status.route.route} route`);
|
|
154787
154910
|
if (status.route.route !== null) {
|
|
154788
154911
|
lines.push(...(status.route.warnings ?? []).map((warning) => ` warning: ${warning}`));
|
|
@@ -155037,6 +155160,36 @@ function registerRcCommand(frontdoor, paths) {
|
|
|
155037
155160
|
}),
|
|
155038
155161
|
["agent-shim frontdoor rc end-session --session cse_00000000-0000-4000-8000-000000000000 --reason done for today"]
|
|
155039
155162
|
);
|
|
155163
|
+
for (const lifecycle of [
|
|
155164
|
+
{
|
|
155165
|
+
verb: "archive",
|
|
155166
|
+
done: "archived",
|
|
155167
|
+
description: "Archive one observed Remote Control session that has ended, as archiving it in claude.ai does, so it leaves the session list there; Claude Code never archives a Remote Control session itself. Prints the API host's state for the session before and after.",
|
|
155168
|
+
force: "Archive it whatever the host's state says: a worker still connected, a session the host does not report as ended or whose state the door could not read, or one already archived."
|
|
155169
|
+
},
|
|
155170
|
+
{
|
|
155171
|
+
verb: "unarchive",
|
|
155172
|
+
done: "unarchived",
|
|
155173
|
+
description: "Unarchive one observed Remote Control session, so it is listed in claude.ai again. Prints the API host's state for the session before and after.",
|
|
155174
|
+
force: "Unarchive it whatever the host's state says: a session the host does not report as archived, or whose state the door could not read."
|
|
155175
|
+
}
|
|
155176
|
+
]) {
|
|
155177
|
+
withExamples(
|
|
155178
|
+
rc2.command(lifecycle.verb).description(lifecycle.description).requiredOption("--session <id>", "The cse_ session id, as `frontdoor rc list` shows it.").option("--force", lifecycle.force).option("--json", "Print the session and the host's state before and after as JSON.").action(async (options) => {
|
|
155179
|
+
const api = frontDoorRcApiFromState(realFarmFs, paths);
|
|
155180
|
+
const input2 = { session: options.session, ...options.force === true ? { force: true } : {} };
|
|
155181
|
+
const change = lifecycle.verb === "archive" ? await api.rc.archive(input2) : await api.rc.unarchive(input2);
|
|
155182
|
+
if (options.json === true) {
|
|
155183
|
+
printJson(change);
|
|
155184
|
+
return;
|
|
155185
|
+
}
|
|
155186
|
+
for (const line of formatRcLifecycleChange(lifecycle.done, change)) {
|
|
155187
|
+
console.log(line);
|
|
155188
|
+
}
|
|
155189
|
+
}),
|
|
155190
|
+
[`agent-shim frontdoor rc ${lifecycle.verb} --session cse_00000000-0000-4000-8000-000000000000`]
|
|
155191
|
+
);
|
|
155192
|
+
}
|
|
155040
155193
|
withExamples(
|
|
155041
155194
|
rc2.command("get-usage").description("Ask one observed session's worker for its structured usage (session totals plus the plan's rate limits). The worker's answer arrives on `frontdoor rc watch` as the control_response echoing the printed request id.").requiredOption("--session <id>", "The cse_ session id, as `frontdoor rc list` shows it.").option("--skip-behaviors", "Skip the worker's local-transcript scan that fills the answer's behaviours section.").option("--json", "Print the delivery result as JSON.").action(async (options) => {
|
|
155042
155195
|
reportControlWrite("requested usage", options.session, await frontDoorRcControlFromState(realFarmFs, paths).getUsage(options.session, options.skipBehaviors === true ? true : void 0), options.json);
|
|
@@ -158752,7 +158905,8 @@ function realFrontDoorSupervisorPorts(paths, respawnGeneration, lifecycle, track
|
|
|
158752
158905
|
headroomDecision,
|
|
158753
158906
|
custody: createCredentialCustody(() => (0, import_node_crypto35.randomUUID)()),
|
|
158754
158907
|
log,
|
|
158755
|
-
mergeConnectorList: wiredMergeConnectorList2(paths, `https://${CONNECT_INTERCEPT_HOST}`, { fs: realFarmFs, run: realRunPort, platform: process.platform })
|
|
158908
|
+
mergeConnectorList: wiredMergeConnectorList2(paths, `https://${CONNECT_INTERCEPT_HOST}`, { fs: realFarmFs, run: realRunPort, platform: process.platform }),
|
|
158909
|
+
lendWebSearch: wiredLendWebSearch(paths, { fs: realFarmFs, run: realRunPort, platform: process.platform })
|
|
158756
158910
|
});
|
|
158757
158911
|
const onListenerError = (name) => (error63) => {
|
|
158758
158912
|
appendDoorLog(paths, `frontdoor ${String(process.pid)}: ${name} listener failed: ${error63.message}; exiting`);
|
|
@@ -158795,6 +158949,8 @@ function realFrontDoorSupervisorPorts(paths, respawnGeneration, lifecycle, track
|
|
|
158795
158949
|
const rcMcpAuthenticate = async (sessionId, serverName, redirectUri) => await authenticateRcSessionMcpServer(rcControlRequestDeps, sessionId, serverName, redirectUri);
|
|
158796
158950
|
const rcMcpOAuthCallbackUrl = async (sessionId, serverName, callbackUrl) => await submitRcSessionMcpOAuthCallbackUrl(rcControlRequestDeps, sessionId, serverName, callbackUrl);
|
|
158797
158951
|
const rcServerStateOf = async (sessionId) => await readRcServerState(rcControlRequestDeps, sessionId);
|
|
158952
|
+
const rcArchive = async (sessionId, force) => await archiveRcSession(rcControlRequestDeps, sessionId, { force });
|
|
158953
|
+
const rcUnarchive = async (sessionId, force) => await unarchiveRcSession(rcControlRequestDeps, sessionId, { force });
|
|
158798
158954
|
const rcTeleport = async (sessionId, marker) => await teleportRcSession(rcControlRequestDeps, sessionId, marker);
|
|
158799
158955
|
const rcSessionCommands = createDoorRcSessionCommands({
|
|
158800
158956
|
paths,
|
|
@@ -158871,6 +159027,8 @@ function realFrontDoorSupervisorPorts(paths, respawnGeneration, lifecycle, track
|
|
|
158871
159027
|
setModel: rcSetModel,
|
|
158872
159028
|
setPermissionMode: rcSetPermissionMode,
|
|
158873
159029
|
endSession: rcEndSession,
|
|
159030
|
+
archive: rcArchive,
|
|
159031
|
+
unarchive: rcUnarchive,
|
|
158874
159032
|
getUsage: rcGetUsage,
|
|
158875
159033
|
getContextUsage: rcGetContextUsage,
|
|
158876
159034
|
readFile: rcReadFile,
|
package/dist/index.cjs
CHANGED
|
@@ -8032,7 +8032,91 @@ async function teleportRcSession(deps, sessionId, marker) {
|
|
|
8032
8032
|
function buildRcMarkReadBody(eventId) {
|
|
8033
8033
|
return eventId === void 0 ? {} : { event_id: eventId };
|
|
8034
8034
|
}
|
|
8035
|
-
|
|
8035
|
+
async function readRcServerState(deps, sessionId) {
|
|
8036
|
+
const credential = deps.credentialOf(sessionId);
|
|
8037
|
+
if (credential === void 0) {
|
|
8038
|
+
return { kind: "unknown", reason: rcSessionNotObservedMessage(sessionId) };
|
|
8039
|
+
}
|
|
8040
|
+
if (credential.authorization === void 0) {
|
|
8041
|
+
return { kind: "unknown", reason: noOAuthCredentialMessage(sessionId) };
|
|
8042
|
+
}
|
|
8043
|
+
let answer;
|
|
8044
|
+
try {
|
|
8045
|
+
answer = await deps.dial.readSession(sessionId, rcReadHeaders(credential));
|
|
8046
|
+
} catch (error) {
|
|
8047
|
+
return { kind: "unknown", reason: `the door could not reach the API host to read the session: ${error instanceof Error ? error.message : String(error)}` };
|
|
8048
|
+
}
|
|
8049
|
+
if (!isSuccessful(answer.status)) {
|
|
8050
|
+
return { kind: "unknown", reason: `the API host answered ${String(answer.status)} to the session read` };
|
|
8051
|
+
}
|
|
8052
|
+
let parsed;
|
|
8053
|
+
try {
|
|
8054
|
+
parsed = JSON.parse(answer.body);
|
|
8055
|
+
} catch {
|
|
8056
|
+
return { kind: "unknown", reason: "the session read answered no status" };
|
|
8057
|
+
}
|
|
8058
|
+
const record = RcSessionAnswerSchema.safeParse(parsed);
|
|
8059
|
+
if (!record.success) {
|
|
8060
|
+
return { kind: "unknown", reason: "the session read answered no status" };
|
|
8061
|
+
}
|
|
8062
|
+
return { kind: "read", status: record.data.status, ...record.data.worker_status === void 0 ? {} : { workerStatus: record.data.worker_status }, ...record.data.connection_status === void 0 ? {} : { connectionStatus: record.data.connection_status } };
|
|
8063
|
+
}
|
|
8064
|
+
function lifecycleBlocker(action, sessionId, before) {
|
|
8065
|
+
if (before.kind === "unknown") {
|
|
8066
|
+
return `the door could not confirm session ${sessionId} has ended, so it was not ${action}d (${before.reason}); pass --force to ${action} it anyway`;
|
|
8067
|
+
}
|
|
8068
|
+
if (action === "unarchive") {
|
|
8069
|
+
return before.status === RC_STATUS_ARCHIVED ? void 0 : `session ${sessionId} is not archived (the host reports it ${before.status}); pass --force to unarchive it anyway`;
|
|
8070
|
+
}
|
|
8071
|
+
if (before.status === RC_STATUS_ARCHIVED) {
|
|
8072
|
+
return `session ${sessionId} is already archived; pass --force to archive it again`;
|
|
8073
|
+
}
|
|
8074
|
+
if (before.connectionStatus === void 0) {
|
|
8075
|
+
return `the host does not report session ${sessionId} as ended (its record names no connection status), so it was not archived; pass --force to archive it anyway`;
|
|
8076
|
+
}
|
|
8077
|
+
if (before.connectionStatus !== RC_CONNECTION_DISCONNECTED) {
|
|
8078
|
+
return `session ${sessionId}'s worker is still connected (connection ${before.connectionStatus}), so it was not archived: end it first with \`frontdoor rc end-session\`, or pass --force to archive it while it runs`;
|
|
8079
|
+
}
|
|
8080
|
+
return void 0;
|
|
8081
|
+
}
|
|
8082
|
+
function lifecycleRefusedMessage(action, sessionId, answer) {
|
|
8083
|
+
const prefix = `the API host refused to ${action} session ${sessionId} (HTTP ${String(answer.status)})`;
|
|
8084
|
+
if (answer.status === HTTP_STATUS.unauthorized || answer.status === HTTP_STATUS.forbidden) {
|
|
8085
|
+
return `${prefix}: the door sends the session's observed bearer, which the host can refuse for a stale bearer or, when the organisation requires trusted devices, for the missing trusted-device token Claude Code adds to its own call (the "untrusted device" refusal); the door holds no trusted-device token. API answer: ${answer.body}`;
|
|
8086
|
+
}
|
|
8087
|
+
return `${prefix}: ${answer.body}`;
|
|
8088
|
+
}
|
|
8089
|
+
async function changeRcSessionLifecycle(deps, action, sessionId, options) {
|
|
8090
|
+
const credential = deps.credentialOf(sessionId);
|
|
8091
|
+
if (credential === void 0) {
|
|
8092
|
+
return { ok: false, message: rcSessionNotObservedMessage(sessionId), refusal: "not-observed" };
|
|
8093
|
+
}
|
|
8094
|
+
if (credential.authorization === void 0) {
|
|
8095
|
+
return { ok: false, message: noOAuthCredentialMessage(sessionId), refusal: "session-state" };
|
|
8096
|
+
}
|
|
8097
|
+
const before = await readRcServerState(deps, sessionId);
|
|
8098
|
+
const blocker = lifecycleBlocker(action, sessionId, before);
|
|
8099
|
+
if (blocker !== void 0 && !options.force) {
|
|
8100
|
+
return { ok: false, message: blocker, refusal: "session-state", before };
|
|
8101
|
+
}
|
|
8102
|
+
let answer;
|
|
8103
|
+
try {
|
|
8104
|
+
answer = await deps.dial.postSessionLifecycle(sessionId, action, rcWriteHeaders(credential));
|
|
8105
|
+
} catch (error) {
|
|
8106
|
+
return { ok: false, message: `the door could not reach the API host to ${action} session ${sessionId}: ${error instanceof Error ? error.message : String(error)}`, before };
|
|
8107
|
+
}
|
|
8108
|
+
if (!isSuccessful(answer.status)) {
|
|
8109
|
+
return { ok: false, message: lifecycleRefusedMessage(action, sessionId, answer), before };
|
|
8110
|
+
}
|
|
8111
|
+
return { ok: true, before, after: await readRcServerState(deps, sessionId) };
|
|
8112
|
+
}
|
|
8113
|
+
async function archiveRcSession(deps, sessionId, options) {
|
|
8114
|
+
return await changeRcSessionLifecycle(deps, "archive", sessionId, options);
|
|
8115
|
+
}
|
|
8116
|
+
async function unarchiveRcSession(deps, sessionId, options) {
|
|
8117
|
+
return await changeRcSessionLifecycle(deps, "unarchive", sessionId, options);
|
|
8118
|
+
}
|
|
8119
|
+
var import_zod12, RC_SEND_DELIVERY_NOTE, RC_PERMISSION_MODES, RC_CONTEXT_USAGE_DETAILS, RC_READ_FILE_ENCODINGS, RcSessionRecordSchema, RcSessionAnswerSchema, RC_CONNECTION_DISCONNECTED, RC_STATUS_ARCHIVED;
|
|
8036
8120
|
var init_rcWrites = __esm({
|
|
8037
8121
|
"src/frontdoor/rcWrites.ts"() {
|
|
8038
8122
|
"use strict";
|
|
@@ -8046,6 +8130,8 @@ var init_rcWrites = __esm({
|
|
|
8046
8130
|
RC_READ_FILE_ENCODINGS = ["utf-8", "base64"];
|
|
8047
8131
|
RcSessionRecordSchema = import_zod12.z.looseObject({ status: import_zod12.z.string(), worker_status: import_zod12.z.string().optional(), connection_status: import_zod12.z.string().optional() });
|
|
8048
8132
|
RcSessionAnswerSchema = import_zod12.z.union([import_zod12.z.looseObject({ response_shape: RcSessionRecordSchema }).transform((answer) => answer.response_shape), RcSessionRecordSchema]);
|
|
8133
|
+
RC_CONNECTION_DISCONNECTED = "disconnected";
|
|
8134
|
+
RC_STATUS_ARCHIVED = "archived";
|
|
8049
8135
|
}
|
|
8050
8136
|
});
|
|
8051
8137
|
|
|
@@ -8060,7 +8146,7 @@ var init_machineLoad = __esm({
|
|
|
8060
8146
|
function workerFactSchema(value) {
|
|
8061
8147
|
return import_zod13.z.strictObject({ value, observedAt: import_zod13.z.number() });
|
|
8062
8148
|
}
|
|
8063
|
-
var import_zod13, RcPermissionModeSchema, RcSessionSummarySchema, RcQuestionOptionSchema, RcPendingQuestionSchema, RcPendingRequestSummarySchema, RcServerStateSchema, RcSessionStatusSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, RcRateLimitWindowSchema, RcRateLimitInfoSchema, RcLiveRateLimitSchema, RcSessionQuerySchema, RcSendInputSchema, RcQuestionSelectionSchema, RcQuestionChoicesSchema, RcAnswerInputSchema, RcInterruptInputSchema, RcSetModelInputSchema, RcSetPermissionModeInputSchema, RcEndSessionInputSchema, RcGetUsageInputSchema, RcGetContextUsageInputSchema, RcReadFileInputSchema, RcFileSuggestionsInputSchema, RcKeepAliveInputSchema, RcMcpStatusInputSchema, RcMcpReconnectInputSchema, RcMcpAuthenticateInputSchema, RcMcpOAuthCallbackUrlInputSchema, RcTeleportInputSchema, RcListOutputSchema, RcSessionCommandRouteSchema, RcVersionGateWarningsSchema, RcSessionRouteSchema, RcStatusOutputSchema, RcPendingOutputSchema, RcWriteOutputSchema, RcControlWriteOutputSchema, RcAnswerOutputSchema;
|
|
8149
|
+
var import_zod13, RcPermissionModeSchema, RcSessionSummarySchema, RcQuestionOptionSchema, RcPendingQuestionSchema, RcPendingRequestSummarySchema, RcServerStateSchema, RcSessionStatusSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, RcRateLimitWindowSchema, RcRateLimitInfoSchema, RcLiveRateLimitSchema, RcSessionQuerySchema, RcSendInputSchema, RcQuestionSelectionSchema, RcQuestionChoicesSchema, RcAnswerInputSchema, RcInterruptInputSchema, RcSetModelInputSchema, RcSetPermissionModeInputSchema, RcEndSessionInputSchema, RcSessionLifecycleInputSchema, RcSessionLifecycleOutputSchema, RcGetUsageInputSchema, RcGetContextUsageInputSchema, RcReadFileInputSchema, RcFileSuggestionsInputSchema, RcKeepAliveInputSchema, RcMcpStatusInputSchema, RcMcpReconnectInputSchema, RcMcpAuthenticateInputSchema, RcMcpOAuthCallbackUrlInputSchema, RcTeleportInputSchema, RcListOutputSchema, RcSessionCommandRouteSchema, RcVersionGateWarningsSchema, RcSessionRouteSchema, RcStatusOutputSchema, RcPendingOutputSchema, RcWriteOutputSchema, RcControlWriteOutputSchema, RcAnswerOutputSchema;
|
|
8064
8150
|
var init_rcSchemas = __esm({
|
|
8065
8151
|
"src/frontdoor/rcSchemas.ts"() {
|
|
8066
8152
|
"use strict";
|
|
@@ -8191,6 +8277,15 @@ var init_rcSchemas = __esm({
|
|
|
8191
8277
|
session: import_zod13.z.string().min(1),
|
|
8192
8278
|
reason: import_zod13.z.string().min(1).optional()
|
|
8193
8279
|
});
|
|
8280
|
+
RcSessionLifecycleInputSchema = import_zod13.z.strictObject({
|
|
8281
|
+
session: import_zod13.z.string().min(1),
|
|
8282
|
+
force: import_zod13.z.boolean().optional()
|
|
8283
|
+
});
|
|
8284
|
+
RcSessionLifecycleOutputSchema = import_zod13.z.strictObject({
|
|
8285
|
+
session: import_zod13.z.string(),
|
|
8286
|
+
before: RcServerStateSchema,
|
|
8287
|
+
after: RcServerStateSchema
|
|
8288
|
+
});
|
|
8194
8289
|
RcGetUsageInputSchema = import_zod13.z.strictObject({
|
|
8195
8290
|
session: import_zod13.z.string().min(1),
|
|
8196
8291
|
skipBehaviors: import_zod13.z.boolean().optional()
|
|
@@ -9084,6 +9179,8 @@ function realRcEventDial(target = { host: CONNECT_INTERCEPT_HOST, port: HTTPS_PO
|
|
|
9084
9179
|
const post = async (path59, headers, body) => await send("POST", path59, headers, body);
|
|
9085
9180
|
return {
|
|
9086
9181
|
readSession: async (sessionId, headers) => await send("GET", `/v1/code/sessions/${encodeURIComponent(sessionId)}`, headers, void 0),
|
|
9182
|
+
// The body is `{}`, as Claude Code's own archive and unarchive helpers post it (`archiveCodeSession` and `unarchiveCodeSession`, verified in the 2.1.309 bundle).
|
|
9183
|
+
postSessionLifecycle: async (sessionId, action, headers) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/${action}`, headers, "{}"),
|
|
9087
9184
|
writeEvents: async (sessionId, headers, body) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/events`, headers, body),
|
|
9088
9185
|
writeTeleportEvents: async (sessionId, headers, body) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/teleport-events`, headers, body)
|
|
9089
9186
|
};
|
|
@@ -9100,7 +9197,8 @@ function lateRcEventDial(resolve) {
|
|
|
9100
9197
|
return {
|
|
9101
9198
|
writeEvents: async (sessionId, headers, body) => await dialFor().writeEvents(sessionId, headers, body),
|
|
9102
9199
|
writeTeleportEvents: async (sessionId, headers, body) => await dialFor().writeTeleportEvents(sessionId, headers, body),
|
|
9103
|
-
readSession: async (sessionId, headers) => await dialFor().readSession(sessionId, headers)
|
|
9200
|
+
readSession: async (sessionId, headers) => await dialFor().readSession(sessionId, headers),
|
|
9201
|
+
postSessionLifecycle: async (sessionId, action, headers) => await dialFor().postSessionLifecycle(sessionId, action, headers)
|
|
9104
9202
|
};
|
|
9105
9203
|
}
|
|
9106
9204
|
function lateRcStreamDial(resolve) {
|
|
@@ -15420,7 +15518,7 @@ var init_package = __esm({
|
|
|
15420
15518
|
"package.json"() {
|
|
15421
15519
|
package_default = {
|
|
15422
15520
|
name: "agent-shim",
|
|
15423
|
-
version: "14.
|
|
15521
|
+
version: "14.23.0",
|
|
15424
15522
|
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.",
|
|
15425
15523
|
license: "MIT",
|
|
15426
15524
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -20885,6 +20983,7 @@ __export(index_exports, {
|
|
|
20885
20983
|
agentShimCliPath: () => agentShimCliPath,
|
|
20886
20984
|
answerRcControlRequest: () => answerRcControlRequest,
|
|
20887
20985
|
applyAgentTaskEvent: () => applyAgentTaskEvent,
|
|
20986
|
+
archiveRcSession: () => archiveRcSession,
|
|
20888
20987
|
authenticateRcSessionMcpServer: () => authenticateRcSessionMcpServer,
|
|
20889
20988
|
buildEntryFacts: () => buildEntryFacts,
|
|
20890
20989
|
buildLayoutPaths: () => buildLayoutPaths,
|
|
@@ -21100,6 +21199,7 @@ __export(index_exports, {
|
|
|
21100
21199
|
summariseSession: () => summariseSession,
|
|
21101
21200
|
teleportRcSession: () => teleportRcSession,
|
|
21102
21201
|
topLevelNames: () => topLevelNames,
|
|
21202
|
+
unarchiveRcSession: () => unarchiveRcSession,
|
|
21103
21203
|
updateDirectoryRule: () => updateDirectoryRule,
|
|
21104
21204
|
updateProvider: () => updateProvider,
|
|
21105
21205
|
useIdentity: () => useIdentity,
|
|
@@ -21955,6 +22055,12 @@ function createRcApiRouter(deps) {
|
|
|
21955
22055
|
}
|
|
21956
22056
|
return { request: result.requestId, sequenceNums: result.sequenceNums };
|
|
21957
22057
|
};
|
|
22058
|
+
const changed = (result) => {
|
|
22059
|
+
if (!result.ok) {
|
|
22060
|
+
throw refusalOf(result);
|
|
22061
|
+
}
|
|
22062
|
+
return { before: result.before, after: result.after };
|
|
22063
|
+
};
|
|
21958
22064
|
const commanded = (sessionId, result) => {
|
|
21959
22065
|
if (!result.ok) {
|
|
21960
22066
|
throw refusalOf(result);
|
|
@@ -21990,6 +22096,8 @@ function createRcApiRouter(deps) {
|
|
|
21990
22096
|
setModel: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/set-model", summary: "Switch a session's model", tags: [RC_API_TAG] })).input(RcSetModelInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.setModel(input.session, input.model)) })),
|
|
21991
22097
|
setPermissionMode: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/set-permission-mode", summary: "Switch a session's permission mode", tags: [RC_API_TAG] })).input(RcSetPermissionModeInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.setPermissionMode(input.session, input.mode)) })),
|
|
21992
22098
|
endSession: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/end-session", summary: "End a session", tags: [RC_API_TAG] })).input(RcEndSessionInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.endSession(input.session, input.reason)) })),
|
|
22099
|
+
archive: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/archive", summary: "Archive an ended session, reporting the host's state before and after", tags: [RC_API_TAG] })).input(RcSessionLifecycleInputSchema).output(RcSessionLifecycleOutputSchema).handler(async ({ input }) => ({ session: input.session, ...changed(await deps.archive(input.session, input.force === true)) })),
|
|
22100
|
+
unarchive: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/unarchive", summary: "Unarchive an archived session, reporting the host's state before and after", tags: [RC_API_TAG] })).input(RcSessionLifecycleInputSchema).output(RcSessionLifecycleOutputSchema).handler(async ({ input }) => ({ session: input.session, ...changed(await deps.unarchive(input.session, input.force === true)) })),
|
|
21993
22101
|
getUsage: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/get-usage", summary: "Ask a session for its usage snapshot", tags: [RC_API_TAG] })).input(RcGetUsageInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.getUsage(input.session, input.skipBehaviors)) })),
|
|
21994
22102
|
getContextUsage: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/get-context-usage", summary: "Ask a session for its context usage", tags: [RC_API_TAG] })).input(RcGetContextUsageInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.getContextUsage(input.session, input.detail)) })),
|
|
21995
22103
|
readFile: authed.meta((0, import_openapi.openapi)({ method: "POST", path: "/rest/rc/read-file", summary: "Ask a session to read one file", tags: [RC_API_TAG] })).input(RcReadFileInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.readFile(input.session, input.path, { ...input.maxBytes === void 0 ? {} : { maxBytes: input.maxBytes }, ...input.encoding === void 0 ? {} : { encoding: input.encoding } })) })),
|
|
@@ -29701,6 +29809,7 @@ init_ownCli();
|
|
|
29701
29809
|
agentShimCliPath,
|
|
29702
29810
|
answerRcControlRequest,
|
|
29703
29811
|
applyAgentTaskEvent,
|
|
29812
|
+
archiveRcSession,
|
|
29704
29813
|
authenticateRcSessionMcpServer,
|
|
29705
29814
|
buildEntryFacts,
|
|
29706
29815
|
buildLayoutPaths,
|
|
@@ -29916,6 +30025,7 @@ init_ownCli();
|
|
|
29916
30025
|
summariseSession,
|
|
29917
30026
|
teleportRcSession,
|
|
29918
30027
|
topLevelNames,
|
|
30028
|
+
unarchiveRcSession,
|
|
29919
30029
|
updateDirectoryRule,
|
|
29920
30030
|
updateProvider,
|
|
29921
30031
|
useIdentity,
|
package/dist/index.mjs
CHANGED
|
@@ -8007,7 +8007,91 @@ async function teleportRcSession(deps, sessionId, marker) {
|
|
|
8007
8007
|
function buildRcMarkReadBody(eventId) {
|
|
8008
8008
|
return eventId === void 0 ? {} : { event_id: eventId };
|
|
8009
8009
|
}
|
|
8010
|
-
|
|
8010
|
+
async function readRcServerState(deps, sessionId) {
|
|
8011
|
+
const credential = deps.credentialOf(sessionId);
|
|
8012
|
+
if (credential === void 0) {
|
|
8013
|
+
return { kind: "unknown", reason: rcSessionNotObservedMessage(sessionId) };
|
|
8014
|
+
}
|
|
8015
|
+
if (credential.authorization === void 0) {
|
|
8016
|
+
return { kind: "unknown", reason: noOAuthCredentialMessage(sessionId) };
|
|
8017
|
+
}
|
|
8018
|
+
let answer;
|
|
8019
|
+
try {
|
|
8020
|
+
answer = await deps.dial.readSession(sessionId, rcReadHeaders(credential));
|
|
8021
|
+
} catch (error) {
|
|
8022
|
+
return { kind: "unknown", reason: `the door could not reach the API host to read the session: ${error instanceof Error ? error.message : String(error)}` };
|
|
8023
|
+
}
|
|
8024
|
+
if (!isSuccessful(answer.status)) {
|
|
8025
|
+
return { kind: "unknown", reason: `the API host answered ${String(answer.status)} to the session read` };
|
|
8026
|
+
}
|
|
8027
|
+
let parsed;
|
|
8028
|
+
try {
|
|
8029
|
+
parsed = JSON.parse(answer.body);
|
|
8030
|
+
} catch {
|
|
8031
|
+
return { kind: "unknown", reason: "the session read answered no status" };
|
|
8032
|
+
}
|
|
8033
|
+
const record = RcSessionAnswerSchema.safeParse(parsed);
|
|
8034
|
+
if (!record.success) {
|
|
8035
|
+
return { kind: "unknown", reason: "the session read answered no status" };
|
|
8036
|
+
}
|
|
8037
|
+
return { kind: "read", status: record.data.status, ...record.data.worker_status === void 0 ? {} : { workerStatus: record.data.worker_status }, ...record.data.connection_status === void 0 ? {} : { connectionStatus: record.data.connection_status } };
|
|
8038
|
+
}
|
|
8039
|
+
function lifecycleBlocker(action, sessionId, before) {
|
|
8040
|
+
if (before.kind === "unknown") {
|
|
8041
|
+
return `the door could not confirm session ${sessionId} has ended, so it was not ${action}d (${before.reason}); pass --force to ${action} it anyway`;
|
|
8042
|
+
}
|
|
8043
|
+
if (action === "unarchive") {
|
|
8044
|
+
return before.status === RC_STATUS_ARCHIVED ? void 0 : `session ${sessionId} is not archived (the host reports it ${before.status}); pass --force to unarchive it anyway`;
|
|
8045
|
+
}
|
|
8046
|
+
if (before.status === RC_STATUS_ARCHIVED) {
|
|
8047
|
+
return `session ${sessionId} is already archived; pass --force to archive it again`;
|
|
8048
|
+
}
|
|
8049
|
+
if (before.connectionStatus === void 0) {
|
|
8050
|
+
return `the host does not report session ${sessionId} as ended (its record names no connection status), so it was not archived; pass --force to archive it anyway`;
|
|
8051
|
+
}
|
|
8052
|
+
if (before.connectionStatus !== RC_CONNECTION_DISCONNECTED) {
|
|
8053
|
+
return `session ${sessionId}'s worker is still connected (connection ${before.connectionStatus}), so it was not archived: end it first with \`frontdoor rc end-session\`, or pass --force to archive it while it runs`;
|
|
8054
|
+
}
|
|
8055
|
+
return void 0;
|
|
8056
|
+
}
|
|
8057
|
+
function lifecycleRefusedMessage(action, sessionId, answer) {
|
|
8058
|
+
const prefix = `the API host refused to ${action} session ${sessionId} (HTTP ${String(answer.status)})`;
|
|
8059
|
+
if (answer.status === HTTP_STATUS.unauthorized || answer.status === HTTP_STATUS.forbidden) {
|
|
8060
|
+
return `${prefix}: the door sends the session's observed bearer, which the host can refuse for a stale bearer or, when the organisation requires trusted devices, for the missing trusted-device token Claude Code adds to its own call (the "untrusted device" refusal); the door holds no trusted-device token. API answer: ${answer.body}`;
|
|
8061
|
+
}
|
|
8062
|
+
return `${prefix}: ${answer.body}`;
|
|
8063
|
+
}
|
|
8064
|
+
async function changeRcSessionLifecycle(deps, action, sessionId, options) {
|
|
8065
|
+
const credential = deps.credentialOf(sessionId);
|
|
8066
|
+
if (credential === void 0) {
|
|
8067
|
+
return { ok: false, message: rcSessionNotObservedMessage(sessionId), refusal: "not-observed" };
|
|
8068
|
+
}
|
|
8069
|
+
if (credential.authorization === void 0) {
|
|
8070
|
+
return { ok: false, message: noOAuthCredentialMessage(sessionId), refusal: "session-state" };
|
|
8071
|
+
}
|
|
8072
|
+
const before = await readRcServerState(deps, sessionId);
|
|
8073
|
+
const blocker = lifecycleBlocker(action, sessionId, before);
|
|
8074
|
+
if (blocker !== void 0 && !options.force) {
|
|
8075
|
+
return { ok: false, message: blocker, refusal: "session-state", before };
|
|
8076
|
+
}
|
|
8077
|
+
let answer;
|
|
8078
|
+
try {
|
|
8079
|
+
answer = await deps.dial.postSessionLifecycle(sessionId, action, rcWriteHeaders(credential));
|
|
8080
|
+
} catch (error) {
|
|
8081
|
+
return { ok: false, message: `the door could not reach the API host to ${action} session ${sessionId}: ${error instanceof Error ? error.message : String(error)}`, before };
|
|
8082
|
+
}
|
|
8083
|
+
if (!isSuccessful(answer.status)) {
|
|
8084
|
+
return { ok: false, message: lifecycleRefusedMessage(action, sessionId, answer), before };
|
|
8085
|
+
}
|
|
8086
|
+
return { ok: true, before, after: await readRcServerState(deps, sessionId) };
|
|
8087
|
+
}
|
|
8088
|
+
async function archiveRcSession(deps, sessionId, options) {
|
|
8089
|
+
return await changeRcSessionLifecycle(deps, "archive", sessionId, options);
|
|
8090
|
+
}
|
|
8091
|
+
async function unarchiveRcSession(deps, sessionId, options) {
|
|
8092
|
+
return await changeRcSessionLifecycle(deps, "unarchive", sessionId, options);
|
|
8093
|
+
}
|
|
8094
|
+
var RC_SEND_DELIVERY_NOTE, RC_PERMISSION_MODES, RC_CONTEXT_USAGE_DETAILS, RC_READ_FILE_ENCODINGS, RcSessionRecordSchema, RcSessionAnswerSchema, RC_CONNECTION_DISCONNECTED, RC_STATUS_ARCHIVED;
|
|
8011
8095
|
var init_rcWrites = __esm({
|
|
8012
8096
|
"src/frontdoor/rcWrites.ts"() {
|
|
8013
8097
|
"use strict";
|
|
@@ -8020,6 +8104,8 @@ var init_rcWrites = __esm({
|
|
|
8020
8104
|
RC_READ_FILE_ENCODINGS = ["utf-8", "base64"];
|
|
8021
8105
|
RcSessionRecordSchema = z12.looseObject({ status: z12.string(), worker_status: z12.string().optional(), connection_status: z12.string().optional() });
|
|
8022
8106
|
RcSessionAnswerSchema = z12.union([z12.looseObject({ response_shape: RcSessionRecordSchema }).transform((answer) => answer.response_shape), RcSessionRecordSchema]);
|
|
8107
|
+
RC_CONNECTION_DISCONNECTED = "disconnected";
|
|
8108
|
+
RC_STATUS_ARCHIVED = "archived";
|
|
8023
8109
|
}
|
|
8024
8110
|
});
|
|
8025
8111
|
|
|
@@ -8035,7 +8121,7 @@ import { z as z13 } from "zod";
|
|
|
8035
8121
|
function workerFactSchema(value) {
|
|
8036
8122
|
return z13.strictObject({ value, observedAt: z13.number() });
|
|
8037
8123
|
}
|
|
8038
|
-
var RcPermissionModeSchema, RcSessionSummarySchema, RcQuestionOptionSchema, RcPendingQuestionSchema, RcPendingRequestSummarySchema, RcServerStateSchema, RcSessionStatusSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, RcRateLimitWindowSchema, RcRateLimitInfoSchema, RcLiveRateLimitSchema, RcSessionQuerySchema, RcSendInputSchema, RcQuestionSelectionSchema, RcQuestionChoicesSchema, RcAnswerInputSchema, RcInterruptInputSchema, RcSetModelInputSchema, RcSetPermissionModeInputSchema, RcEndSessionInputSchema, RcGetUsageInputSchema, RcGetContextUsageInputSchema, RcReadFileInputSchema, RcFileSuggestionsInputSchema, RcKeepAliveInputSchema, RcMcpStatusInputSchema, RcMcpReconnectInputSchema, RcMcpAuthenticateInputSchema, RcMcpOAuthCallbackUrlInputSchema, RcTeleportInputSchema, RcListOutputSchema, RcSessionCommandRouteSchema, RcVersionGateWarningsSchema, RcSessionRouteSchema, RcStatusOutputSchema, RcPendingOutputSchema, RcWriteOutputSchema, RcControlWriteOutputSchema, RcAnswerOutputSchema;
|
|
8124
|
+
var RcPermissionModeSchema, RcSessionSummarySchema, RcQuestionOptionSchema, RcPendingQuestionSchema, RcPendingRequestSummarySchema, RcServerStateSchema, RcSessionStatusSchema, RcStreamEnvelopeSchema, RcStreamEventSchema, RcRateLimitWindowSchema, RcRateLimitInfoSchema, RcLiveRateLimitSchema, RcSessionQuerySchema, RcSendInputSchema, RcQuestionSelectionSchema, RcQuestionChoicesSchema, RcAnswerInputSchema, RcInterruptInputSchema, RcSetModelInputSchema, RcSetPermissionModeInputSchema, RcEndSessionInputSchema, RcSessionLifecycleInputSchema, RcSessionLifecycleOutputSchema, RcGetUsageInputSchema, RcGetContextUsageInputSchema, RcReadFileInputSchema, RcFileSuggestionsInputSchema, RcKeepAliveInputSchema, RcMcpStatusInputSchema, RcMcpReconnectInputSchema, RcMcpAuthenticateInputSchema, RcMcpOAuthCallbackUrlInputSchema, RcTeleportInputSchema, RcListOutputSchema, RcSessionCommandRouteSchema, RcVersionGateWarningsSchema, RcSessionRouteSchema, RcStatusOutputSchema, RcPendingOutputSchema, RcWriteOutputSchema, RcControlWriteOutputSchema, RcAnswerOutputSchema;
|
|
8039
8125
|
var init_rcSchemas = __esm({
|
|
8040
8126
|
"src/frontdoor/rcSchemas.ts"() {
|
|
8041
8127
|
"use strict";
|
|
@@ -8165,6 +8251,15 @@ var init_rcSchemas = __esm({
|
|
|
8165
8251
|
session: z13.string().min(1),
|
|
8166
8252
|
reason: z13.string().min(1).optional()
|
|
8167
8253
|
});
|
|
8254
|
+
RcSessionLifecycleInputSchema = z13.strictObject({
|
|
8255
|
+
session: z13.string().min(1),
|
|
8256
|
+
force: z13.boolean().optional()
|
|
8257
|
+
});
|
|
8258
|
+
RcSessionLifecycleOutputSchema = z13.strictObject({
|
|
8259
|
+
session: z13.string(),
|
|
8260
|
+
before: RcServerStateSchema,
|
|
8261
|
+
after: RcServerStateSchema
|
|
8262
|
+
});
|
|
8168
8263
|
RcGetUsageInputSchema = z13.strictObject({
|
|
8169
8264
|
session: z13.string().min(1),
|
|
8170
8265
|
skipBehaviors: z13.boolean().optional()
|
|
@@ -9063,6 +9158,8 @@ function realRcEventDial(target = { host: CONNECT_INTERCEPT_HOST, port: HTTPS_PO
|
|
|
9063
9158
|
const post = async (path59, headers, body) => await send("POST", path59, headers, body);
|
|
9064
9159
|
return {
|
|
9065
9160
|
readSession: async (sessionId, headers) => await send("GET", `/v1/code/sessions/${encodeURIComponent(sessionId)}`, headers, void 0),
|
|
9161
|
+
// The body is `{}`, as Claude Code's own archive and unarchive helpers post it (`archiveCodeSession` and `unarchiveCodeSession`, verified in the 2.1.309 bundle).
|
|
9162
|
+
postSessionLifecycle: async (sessionId, action, headers) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/${action}`, headers, "{}"),
|
|
9066
9163
|
writeEvents: async (sessionId, headers, body) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/events`, headers, body),
|
|
9067
9164
|
writeTeleportEvents: async (sessionId, headers, body) => await post(`/v1/code/sessions/${encodeURIComponent(sessionId)}/teleport-events`, headers, body)
|
|
9068
9165
|
};
|
|
@@ -9079,7 +9176,8 @@ function lateRcEventDial(resolve) {
|
|
|
9079
9176
|
return {
|
|
9080
9177
|
writeEvents: async (sessionId, headers, body) => await dialFor().writeEvents(sessionId, headers, body),
|
|
9081
9178
|
writeTeleportEvents: async (sessionId, headers, body) => await dialFor().writeTeleportEvents(sessionId, headers, body),
|
|
9082
|
-
readSession: async (sessionId, headers) => await dialFor().readSession(sessionId, headers)
|
|
9179
|
+
readSession: async (sessionId, headers) => await dialFor().readSession(sessionId, headers),
|
|
9180
|
+
postSessionLifecycle: async (sessionId, action, headers) => await dialFor().postSessionLifecycle(sessionId, action, headers)
|
|
9083
9181
|
};
|
|
9084
9182
|
}
|
|
9085
9183
|
function lateRcStreamDial(resolve) {
|
|
@@ -15391,7 +15489,7 @@ var init_package = __esm({
|
|
|
15391
15489
|
"package.json"() {
|
|
15392
15490
|
package_default = {
|
|
15393
15491
|
name: "agent-shim",
|
|
15394
|
-
version: "14.
|
|
15492
|
+
version: "14.23.0",
|
|
15395
15493
|
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.",
|
|
15396
15494
|
license: "MIT",
|
|
15397
15495
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -21500,6 +21598,12 @@ function createRcApiRouter(deps) {
|
|
|
21500
21598
|
}
|
|
21501
21599
|
return { request: result.requestId, sequenceNums: result.sequenceNums };
|
|
21502
21600
|
};
|
|
21601
|
+
const changed = (result) => {
|
|
21602
|
+
if (!result.ok) {
|
|
21603
|
+
throw refusalOf(result);
|
|
21604
|
+
}
|
|
21605
|
+
return { before: result.before, after: result.after };
|
|
21606
|
+
};
|
|
21503
21607
|
const commanded = (sessionId, result) => {
|
|
21504
21608
|
if (!result.ok) {
|
|
21505
21609
|
throw refusalOf(result);
|
|
@@ -21535,6 +21639,8 @@ function createRcApiRouter(deps) {
|
|
|
21535
21639
|
setModel: authed.meta(openapi({ method: "POST", path: "/rest/rc/set-model", summary: "Switch a session's model", tags: [RC_API_TAG] })).input(RcSetModelInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.setModel(input.session, input.model)) })),
|
|
21536
21640
|
setPermissionMode: authed.meta(openapi({ method: "POST", path: "/rest/rc/set-permission-mode", summary: "Switch a session's permission mode", tags: [RC_API_TAG] })).input(RcSetPermissionModeInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.setPermissionMode(input.session, input.mode)) })),
|
|
21537
21641
|
endSession: authed.meta(openapi({ method: "POST", path: "/rest/rc/end-session", summary: "End a session", tags: [RC_API_TAG] })).input(RcEndSessionInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.endSession(input.session, input.reason)) })),
|
|
21642
|
+
archive: authed.meta(openapi({ method: "POST", path: "/rest/rc/archive", summary: "Archive an ended session, reporting the host's state before and after", tags: [RC_API_TAG] })).input(RcSessionLifecycleInputSchema).output(RcSessionLifecycleOutputSchema).handler(async ({ input }) => ({ session: input.session, ...changed(await deps.archive(input.session, input.force === true)) })),
|
|
21643
|
+
unarchive: authed.meta(openapi({ method: "POST", path: "/rest/rc/unarchive", summary: "Unarchive an archived session, reporting the host's state before and after", tags: [RC_API_TAG] })).input(RcSessionLifecycleInputSchema).output(RcSessionLifecycleOutputSchema).handler(async ({ input }) => ({ session: input.session, ...changed(await deps.unarchive(input.session, input.force === true)) })),
|
|
21538
21644
|
getUsage: authed.meta(openapi({ method: "POST", path: "/rest/rc/get-usage", summary: "Ask a session for its usage snapshot", tags: [RC_API_TAG] })).input(RcGetUsageInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.getUsage(input.session, input.skipBehaviors)) })),
|
|
21539
21645
|
getContextUsage: authed.meta(openapi({ method: "POST", path: "/rest/rc/get-context-usage", summary: "Ask a session for its context usage", tags: [RC_API_TAG] })).input(RcGetContextUsageInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.getContextUsage(input.session, input.detail)) })),
|
|
21540
21646
|
readFile: authed.meta(openapi({ method: "POST", path: "/rest/rc/read-file", summary: "Ask a session to read one file", tags: [RC_API_TAG] })).input(RcReadFileInputSchema).output(RcControlWriteOutputSchema).handler(async ({ input }) => ({ session: input.session, ...deliveredControl(input.session, await deps.readFile(input.session, input.path, { ...input.maxBytes === void 0 ? {} : { maxBytes: input.maxBytes }, ...input.encoding === void 0 ? {} : { encoding: input.encoding } })) })),
|
|
@@ -29245,6 +29351,7 @@ export {
|
|
|
29245
29351
|
agentShimCliPath,
|
|
29246
29352
|
answerRcControlRequest,
|
|
29247
29353
|
applyAgentTaskEvent,
|
|
29354
|
+
archiveRcSession,
|
|
29248
29355
|
authenticateRcSessionMcpServer,
|
|
29249
29356
|
buildEntryFacts,
|
|
29250
29357
|
buildLayoutPaths,
|
|
@@ -29460,6 +29567,7 @@ export {
|
|
|
29460
29567
|
summariseSession,
|
|
29461
29568
|
teleportRcSession,
|
|
29462
29569
|
topLevelNames,
|
|
29570
|
+
unarchiveRcSession,
|
|
29463
29571
|
updateDirectoryRule,
|
|
29464
29572
|
updateProvider,
|
|
29465
29573
|
useIdentity,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7633,7 +7633,11 @@ interface RcEventDial {
|
|
|
7633
7633
|
readonly writeTeleportEvents: (sessionId: string, headers: Readonly<Record<string, string>>, body: string) => Promise<RcDialAnswer>;
|
|
7634
7634
|
/** Reads the session's own record, `GET /v1/code/sessions/{id}`: the one read the client half makes, and the only place the host says whether the user archived the session. */
|
|
7635
7635
|
readonly readSession: (sessionId: string, headers: Readonly<Record<string, string>>) => Promise<RcDialAnswer>;
|
|
7636
|
+
/** Archives or unarchives the session, `POST /v1/code/sessions/{id}/archive` or `/unarchive` with a `{}` JSON body: the lifecycle writes Claude Code's own code-session helpers send (its OAuth headers and an optional trusted-device token, no beta or organisation header on this path), and the only writes on the session record itself. */
|
|
7637
|
+
readonly postSessionLifecycle: (sessionId: string, action: RcSessionLifecycleAction, headers: Readonly<Record<string, string>>) => Promise<RcDialAnswer>;
|
|
7636
7638
|
}
|
|
7639
|
+
/** The two lifecycle writes the session record takes, each named by the path segment it is posted to. */
|
|
7640
|
+
type RcSessionLifecycleAction = "archive" | "unarchive";
|
|
7637
7641
|
/** 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. */
|
|
7638
7642
|
type RcRefusalKind = "invalid-input" | "not-observed" | "session-state";
|
|
7639
7643
|
/**
|
|
@@ -7858,6 +7862,28 @@ declare function teleportRcSession(deps: RcControlRequestDeps, sessionId: string
|
|
|
7858
7862
|
* Builds the read-receipt body the mark_read endpoint takes: `{event_id}` naming one event, or `{}` marking the whole session read, exactly the two shapes the CLI's own `markSessionRead` sender posts (verified in the 2.1.289 bundle: `n ? {event_id: n} : {}`, with no client id in the body at all).
|
|
7859
7863
|
*/
|
|
7860
7864
|
declare function buildRcMarkReadBody(eventId: string | undefined): Record<string, unknown>;
|
|
7865
|
+
/** What the host's state is read for around a lifecycle write: whether the guards let the write go, and what changed. */
|
|
7866
|
+
interface RcLifecycleOptions {
|
|
7867
|
+
/** Sends the write whatever the state read before it says: a still-connected worker, a session the host does not report as ended, or one already in the requested state. */
|
|
7868
|
+
readonly force: boolean;
|
|
7869
|
+
}
|
|
7870
|
+
/** What one archive or unarchive produced: the host's state read just before the write and just after it, or a verbose failure naming the state that refused it when it was read. */
|
|
7871
|
+
type RcSessionLifecycleResult = {
|
|
7872
|
+
readonly ok: true;
|
|
7873
|
+
readonly before: RcServerState;
|
|
7874
|
+
readonly after: RcServerState;
|
|
7875
|
+
} | {
|
|
7876
|
+
readonly ok: false;
|
|
7877
|
+
readonly message: string;
|
|
7878
|
+
readonly refusal?: RcRefusalKind;
|
|
7879
|
+
readonly before?: RcServerState;
|
|
7880
|
+
};
|
|
7881
|
+
/**
|
|
7882
|
+
* Archives one observed Remote Control session, as claude.ai's own archive does: `POST /v1/code/sessions/{id}/archive` with the credential the door observed for it. Claude Code never archives a Remote Control session itself, so an ended one stays listed until this or a person archives it. Unless forced, the write goes only when the host reports the session ended (its connection `disconnected`) and not already archived; the result carries the host's state read before and after.
|
|
7883
|
+
*/
|
|
7884
|
+
declare function archiveRcSession(deps: Pick<RcControlRequestDeps, "credentialOf" | "dial">, sessionId: string, options: RcLifecycleOptions): Promise<RcSessionLifecycleResult>;
|
|
7885
|
+
/** Unarchives one observed Remote Control session, `POST /v1/code/sessions/{id}/unarchive`; unless forced, only one the host reports archived. The result carries the host's state read before and after. */
|
|
7886
|
+
declare function unarchiveRcSession(deps: Pick<RcControlRequestDeps, "credentialOf" | "dial">, sessionId: string, options: RcLifecycleOptions): Promise<RcSessionLifecycleResult>;
|
|
7861
7887
|
|
|
7862
7888
|
/**
|
|
7863
7889
|
* How long a failed attachment backs off before retrying. Not a fresh number: it is the session's own liveness bound (`RC_IDLE_EXPIRY_MS`, the 45 s stream timeout the tracker's idle expiry already derives from), so an attachment that cannot be re-established retries at exactly the cadence the protocol itself gives up on a quiet session at. Production passes that constant; tests pass small values so a backoff is reached in milliseconds.
|
|
@@ -8904,6 +8930,10 @@ interface RcApiDeps {
|
|
|
8904
8930
|
readonly setPermissionMode: (sessionId: string, mode: RcPermissionMode) => Promise<RcEventWriteResult>;
|
|
8905
8931
|
/** The end-session operation, already wired to the tracker and the door's API-host dial. */
|
|
8906
8932
|
readonly endSession: (sessionId: string, reason: string | undefined) => Promise<RcEventWriteResult>;
|
|
8933
|
+
/** The archive operation, already wired to the tracker and the door's API-host dial: refuses a session the host does not report ended unless forced. */
|
|
8934
|
+
readonly archive: (sessionId: string, force: boolean) => Promise<RcSessionLifecycleResult>;
|
|
8935
|
+
/** The unarchive operation, wired the same way: refuses a session the host does not report archived unless forced. */
|
|
8936
|
+
readonly unarchive: (sessionId: string, force: boolean) => Promise<RcSessionLifecycleResult>;
|
|
8907
8937
|
/** The get-usage operation, already wired to the tracker and the door's API-host dial. */
|
|
8908
8938
|
readonly getUsage: (sessionId: string, skipBehaviors: boolean | undefined) => Promise<RcEventWriteResult>;
|
|
8909
8939
|
/** The get-context-usage operation, already wired to the tracker and the door's API-host dial. */
|
|
@@ -9104,6 +9134,54 @@ declare function createRcApiRouter(deps: RcApiDeps): {
|
|
|
9104
9134
|
request: zod.ZodString;
|
|
9105
9135
|
sequenceNums: zod.ZodReadonly<zod.ZodArray<zod.ZodNumber>>;
|
|
9106
9136
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9137
|
+
archive: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
|
|
9138
|
+
session: zod.ZodString;
|
|
9139
|
+
force: zod.ZodOptional<zod.ZodBoolean>;
|
|
9140
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9141
|
+
session: zod.ZodString;
|
|
9142
|
+
before: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
9143
|
+
kind: zod.ZodLiteral<"read">;
|
|
9144
|
+
status: zod.ZodString;
|
|
9145
|
+
workerStatus: zod.ZodOptional<zod.ZodString>;
|
|
9146
|
+
connectionStatus: zod.ZodOptional<zod.ZodString>;
|
|
9147
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9148
|
+
kind: zod.ZodLiteral<"unknown">;
|
|
9149
|
+
reason: zod.ZodString;
|
|
9150
|
+
}, zod_v4_core.$strict>], "kind">;
|
|
9151
|
+
after: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
9152
|
+
kind: zod.ZodLiteral<"read">;
|
|
9153
|
+
status: zod.ZodString;
|
|
9154
|
+
workerStatus: zod.ZodOptional<zod.ZodString>;
|
|
9155
|
+
connectionStatus: zod.ZodOptional<zod.ZodString>;
|
|
9156
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9157
|
+
kind: zod.ZodLiteral<"unknown">;
|
|
9158
|
+
reason: zod.ZodString;
|
|
9159
|
+
}, zod_v4_core.$strict>], "kind">;
|
|
9160
|
+
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9161
|
+
unarchive: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
|
|
9162
|
+
session: zod.ZodString;
|
|
9163
|
+
force: zod.ZodOptional<zod.ZodBoolean>;
|
|
9164
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9165
|
+
session: zod.ZodString;
|
|
9166
|
+
before: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
9167
|
+
kind: zod.ZodLiteral<"read">;
|
|
9168
|
+
status: zod.ZodString;
|
|
9169
|
+
workerStatus: zod.ZodOptional<zod.ZodString>;
|
|
9170
|
+
connectionStatus: zod.ZodOptional<zod.ZodString>;
|
|
9171
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9172
|
+
kind: zod.ZodLiteral<"unknown">;
|
|
9173
|
+
reason: zod.ZodString;
|
|
9174
|
+
}, zod_v4_core.$strict>], "kind">;
|
|
9175
|
+
after: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
9176
|
+
kind: zod.ZodLiteral<"read">;
|
|
9177
|
+
status: zod.ZodString;
|
|
9178
|
+
workerStatus: zod.ZodOptional<zod.ZodString>;
|
|
9179
|
+
connectionStatus: zod.ZodOptional<zod.ZodString>;
|
|
9180
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
9181
|
+
kind: zod.ZodLiteral<"unknown">;
|
|
9182
|
+
reason: zod.ZodString;
|
|
9183
|
+
}, zod_v4_core.$strict>], "kind">;
|
|
9184
|
+
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9107
9185
|
getUsage: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
|
|
9108
9186
|
session: zod.ZodString;
|
|
9109
9187
|
skipBehaviors: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -22415,6 +22493,54 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
22415
22493
|
request: z.ZodString;
|
|
22416
22494
|
sequenceNums: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
|
|
22417
22495
|
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
22496
|
+
archive: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, z.ZodObject<{
|
|
22497
|
+
session: z.ZodString;
|
|
22498
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
22499
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22500
|
+
session: z.ZodString;
|
|
22501
|
+
before: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22502
|
+
kind: z.ZodLiteral<"read">;
|
|
22503
|
+
status: z.ZodString;
|
|
22504
|
+
workerStatus: z.ZodOptional<z.ZodString>;
|
|
22505
|
+
connectionStatus: z.ZodOptional<z.ZodString>;
|
|
22506
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22507
|
+
kind: z.ZodLiteral<"unknown">;
|
|
22508
|
+
reason: z.ZodString;
|
|
22509
|
+
}, z.core.$strict>], "kind">;
|
|
22510
|
+
after: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22511
|
+
kind: z.ZodLiteral<"read">;
|
|
22512
|
+
status: z.ZodString;
|
|
22513
|
+
workerStatus: z.ZodOptional<z.ZodString>;
|
|
22514
|
+
connectionStatus: z.ZodOptional<z.ZodString>;
|
|
22515
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22516
|
+
kind: z.ZodLiteral<"unknown">;
|
|
22517
|
+
reason: z.ZodString;
|
|
22518
|
+
}, z.core.$strict>], "kind">;
|
|
22519
|
+
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
22520
|
+
unarchive: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, z.ZodObject<{
|
|
22521
|
+
session: z.ZodString;
|
|
22522
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
22523
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22524
|
+
session: z.ZodString;
|
|
22525
|
+
before: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22526
|
+
kind: z.ZodLiteral<"read">;
|
|
22527
|
+
status: z.ZodString;
|
|
22528
|
+
workerStatus: z.ZodOptional<z.ZodString>;
|
|
22529
|
+
connectionStatus: z.ZodOptional<z.ZodString>;
|
|
22530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22531
|
+
kind: z.ZodLiteral<"unknown">;
|
|
22532
|
+
reason: z.ZodString;
|
|
22533
|
+
}, z.core.$strict>], "kind">;
|
|
22534
|
+
after: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22535
|
+
kind: z.ZodLiteral<"read">;
|
|
22536
|
+
status: z.ZodString;
|
|
22537
|
+
workerStatus: z.ZodOptional<z.ZodString>;
|
|
22538
|
+
connectionStatus: z.ZodOptional<z.ZodString>;
|
|
22539
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22540
|
+
kind: z.ZodLiteral<"unknown">;
|
|
22541
|
+
reason: z.ZodString;
|
|
22542
|
+
}, z.core.$strict>], "kind">;
|
|
22543
|
+
}, z.core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
22418
22544
|
getUsage: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, z.ZodObject<{
|
|
22419
22545
|
session: z.ZodString;
|
|
22420
22546
|
skipBehaviors: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29330,5 +29456,5 @@ declare const OWN_CLI_FILE_NAME = "cli.cjs";
|
|
|
29330
29456
|
*/
|
|
29331
29457
|
declare function agentShimCliPath(distDir?: string | undefined): string;
|
|
29332
29458
|
|
|
29333
|
-
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, claudeCodeVersionGate, 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, grantIdentityLogin, 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, revokeIdentityLogin, 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 };
|
|
29459
|
+
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, archiveRcSession, 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, claudeCodeVersionGate, 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, grantIdentityLogin, 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, revokeIdentityLogin, 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, unarchiveRcSession, updateDirectoryRule, updateProvider, useIdentity, watchedInstallEntry, withRegisteredSessionFacts, writeDirectoryRules };
|
|
29334
29460
|
export type { AddDirectoryRuleOptions, AddProviderInput, AgentKind, AgentNode, AgentReadFs, AgentTreesApiDeps, AgentTreesApiRouter, AmbientCredentialDetection, AmbientCredentialGuardResult, AmbientCredentialVar, AnthropicUsageRefresher, BuildEntryFactsParams, CaMaterial, Candidate, CarryOverParams, CarryOverResult, CategoryMap, CheckReport, CheckReportJson, ClaudeCodeVersionGate, 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": "agent-shim",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.23.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>",
|