Refresh Codex protocol bindings and adapter mappings (#2590)

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-05-07 19:47:20 -07:00
1 parent 31b52acc8d
commit dd32f52655
9 files changed
+4123 -2492

No files matched your search

@@ -452,6 +452,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
turnId: asTurnId("turn-1"),
itemId: asItemId("msg_1"),
payload: {
completedAtMs: 1_778_000_000_000,
threadId: "thread-1",
turnId: "turn-1",
item: {
@@ -494,6 +495,7 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
turnId: asTurnId("turn-1"),
itemId: asItemId("plan_1"),
payload: {
completedAtMs: 1_778_000_000_000,
threadId: "thread-1",
turnId: "turn-1",
item: {
@@ -660,6 +662,40 @@ lifecycleLayer("CodexAdapterLive lifecycle", (it) => {
}),
);
it.effect("maps realtime started notifications with upstream realtime session ids", () =>
Effect.gen(function* () {
const { adapter, runtime } = yield* startLifecycleRuntime();
const firstEventFiber = yield* Stream.runHead(adapter.streamEvents).pipe(Effect.forkChild);
yield* runtime.emit({
id: asEventId("evt-realtime-started"),
kind: "notification",
provider: ProviderDriverKind.make("codex"),
threadId: asThreadId("thread-1"),
createdAt: new Date().toISOString(),
method: "thread/realtime/started",
payload: {
threadId: "thread-1",
realtimeSessionId: "realtime-session-1",
version: "v2",
},
} satisfies ProviderEvent);
const firstEvent = yield* Fiber.join(firstEventFiber);
assert.equal(firstEvent._tag, "Some");
if (firstEvent._tag !== "Some") {
return;
}
assert.equal(firstEvent.value.type, "thread.realtime.started");
if (firstEvent.value.type !== "thread.realtime.started") {
return;
}
assert.equal(firstEvent.value.threadId, "thread-1");
assert.equal(firstEvent.value.payload.realtimeSessionId, "realtime-session-1");
}),
);
it.effect("maps fatal websocket stderr notifications to runtime.error", () =>
Effect.gen(function* () {
const { adapter, runtime } = yield* startLifecycleRuntime();
@@ -1151,7 +1151,7 @@ function mapToRuntimeEvents(
type: "thread.realtime.started",
...runtimeEventBase(event, canonicalThreadId),
payload: {
realtimeSessionId: payload.sessionId ?? undefined,
realtimeSessionId: payload.realtimeSessionId ?? undefined,
},
},
];
@@ -45,6 +45,8 @@ const REASONING_EFFORT_LABELS: Record<CodexSchema.V2ModelListResponse__Reasoning
function codexAccountAuthLabel(account: CodexSchema.V2GetAccountResponse["account"]) {
if (!account) return undefined;
if (account.type === "apiKey") return "OpenAI API Key";
if (account.type === "amazonBedrock") return "Amazon Bedrock";
if (account.type !== "chatgpt") return undefined;
switch (account.planType) {
case "free":
@@ -70,6 +70,7 @@ export type CodexTurnStartParamsWithCollaborationMode =
const formatSchemaIssue = SchemaIssue.makeFormatterDefault();
export type CodexResumeCursor = typeof CodexResumeCursorSchema.Type;
type CodexServiceTier = NonNullable<EffectCodexSchema.V2ThreadStartParams["serviceTier"]>;
type CodexThreadItem =
| EffectCodexSchema.V2ThreadReadResponse["thread"]["turns"][number]["items"][number]
| EffectCodexSchema.V2ThreadRollbackResponse["thread"]["turns"][number]["items"][number];
@@ -83,7 +84,7 @@ export interface CodexSessionRuntimeOptions {
readonly cwd: string;
readonly runtimeMode: RuntimeMode;
readonly model?: string;
readonly serviceTier?: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
readonly serviceTier?: CodexServiceTier | undefined;
readonly resumeCursor?: CodexResumeCursor;
}
@@ -94,7 +95,7 @@ export interface CodexSessionRuntimeSendTurnInput {
readonly url: string;
}>;
readonly model?: string;
readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier | undefined;
readonly serviceTier?: CodexServiceTier | undefined;
readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort | undefined;
readonly interactionMode?: ProviderInteractionMode;
}
@@ -268,7 +269,7 @@ function buildThreadStartParams(input: {
readonly cwd: string;
readonly runtimeMode: RuntimeMode;
readonly model: string | undefined;
readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
readonly serviceTier: CodexServiceTier | undefined;
}): EffectCodexSchema.V2ThreadStartParams {
const config = runtimeModeToThreadConfig(input.runtimeMode);
return {
@@ -331,7 +332,7 @@ export function buildTurnStartParams(input: {
readonly url: string;
}>;
readonly model?: string;
readonly serviceTier?: EffectCodexSchema.V2TurnStartParams__ServiceTier;
readonly serviceTier?: CodexServiceTier;
readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;
readonly interactionMode?: ProviderInteractionMode;
}): Effect.Effect<
@@ -417,7 +418,7 @@ export const openCodexThread = (input: {
readonly runtimeMode: RuntimeMode;
readonly cwd: string;
readonly requestedModel: string | undefined;
readonly serviceTier: EffectCodexSchema.V2ThreadStartParams__ServiceTier | undefined;
readonly serviceTier: CodexServiceTier | undefined;
readonly resumeThreadId: string | undefined;
}): Effect.Effect<CodexThreadOpenResponse, CodexErrors.CodexAppServerError> => {
const resumeThreadId = input.resumeThreadId;
@@ -368,6 +368,26 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
}),
);
it.effect("returns an Amazon Bedrock label for codex Bedrock auth", () =>
Effect.gen(function* () {
const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
Effect.succeed(
makeCodexProbeSnapshot({
account: {
account: { type: "amazonBedrock" },
requiresOpenaiAuth: false,
},
}),
),
);
assert.strictEqual(status.status, "ready");
assert.strictEqual(status.auth.status, "authenticated");
assert.strictEqual(status.auth.type, "amazonBedrock");
assert.strictEqual(status.auth.label, "Amazon Bedrock");
}),
);
it.effect("returns unavailable when codex is missing", () =>
Effect.gen(function* () {
const status = yield* checkCodexProviderStatus(defaultCodexSettings, () =>
@@ -12,7 +12,7 @@ import {
} from "effect/unstable/http";
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
const UPSTREAM_REF = "be75785504ff152fa6333e380a2d50642f42fba0";
const UPSTREAM_REF = "07b695190f30a450e4921f71f77473e564395c59";
const USER_AGENT = "effect-codex-app-server-generator";
const GITHUB_API_BASE =
"https://api.github.com/repos/openai/codex/contents/codex-rs/app-server-protocol";
@@ -1,5 +1,5 @@
// This file is generated by the effect-codex-app-server package. Do not edit manually.
// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
import * as CodexSchema from "./schema.gen.ts";
@@ -15,21 +15,25 @@ export const CLIENT_REQUEST_METHODS = {
"thread/unarchive": "thread/unarchive",
"thread/compact/start": "thread/compact/start",
"thread/shellCommand": "thread/shellCommand",
"thread/approveGuardianDeniedAction": "thread/approveGuardianDeniedAction",
"thread/rollback": "thread/rollback",
"thread/list": "thread/list",
"thread/loaded/list": "thread/loaded/list",
"thread/read": "thread/read",
"thread/turns/list": "thread/turns/list",
"thread/inject_items": "thread/inject_items",
"skills/list": "skills/list",
"hooks/list": "hooks/list",
"marketplace/add": "marketplace/add",
"marketplace/remove": "marketplace/remove",
"marketplace/upgrade": "marketplace/upgrade",
"plugin/list": "plugin/list",
"plugin/read": "plugin/read",
"plugin/skill/read": "plugin/skill/read",
"plugin/share/save": "plugin/share/save",
"plugin/share/updateTargets": "plugin/share/updateTargets",
"plugin/share/list": "plugin/share/list",
"plugin/share/delete": "plugin/share/delete",
"app/list": "app/list",
"device/key/create": "device/key/create",
"device/key/public": "device/key/public",
"device/key/sign": "device/key/sign",
"fs/readFile": "fs/readFile",
"fs/writeFile": "fs/writeFile",
"fs/createDirectory": "fs/createDirectory",
@@ -47,6 +51,7 @@ export const CLIENT_REQUEST_METHODS = {
"turn/interrupt": "turn/interrupt",
"review/start": "review/start",
"model/list": "model/list",
"modelProvider/capabilities/read": "modelProvider/capabilities/read",
"experimentalFeature/list": "experimentalFeature/list",
"experimentalFeature/enablement/set": "experimentalFeature/enablement/set",
"mcpServer/oauth/login": "mcpServer/oauth/login",
@@ -55,6 +60,7 @@ export const CLIENT_REQUEST_METHODS = {
"mcpServer/resource/read": "mcpServer/resource/read",
"mcpServer/tool/call": "mcpServer/tool/call",
"windowsSandbox/setupStart": "windowsSandbox/setupStart",
"windowsSandbox/readiness": "windowsSandbox/readiness",
"account/login/start": "account/login/start",
"account/login/cancel": "account/login/cancel",
"account/logout": "account/logout",
@@ -103,6 +109,8 @@ export const SERVER_NOTIFICATION_METHODS = {
"thread/closed": "thread/closed",
"skills/changed": "skills/changed",
"thread/name/updated": "thread/name/updated",
"thread/goal/updated": "thread/goal/updated",
"thread/goal/cleared": "thread/goal/cleared",
"thread/tokenUsage/updated": "thread/tokenUsage/updated",
"turn/started": "turn/started",
"hook/started": "hook/started",
@@ -118,6 +126,8 @@ export const SERVER_NOTIFICATION_METHODS = {
"item/agentMessage/delta": "item/agentMessage/delta",
"item/plan/delta": "item/plan/delta",
"command/exec/outputDelta": "command/exec/outputDelta",
"process/outputDelta": "process/outputDelta",
"process/exited": "process/exited",
"item/commandExecution/outputDelta": "item/commandExecution/outputDelta",
"item/commandExecution/terminalInteraction": "item/commandExecution/terminalInteraction",
"item/fileChange/outputDelta": "item/fileChange/outputDelta",
@@ -129,6 +139,7 @@ export const SERVER_NOTIFICATION_METHODS = {
"account/updated": "account/updated",
"account/rateLimits/updated": "account/rateLimits/updated",
"app/list/updated": "app/list/updated",
"remoteControl/status/changed": "remoteControl/status/changed",
"externalAgentConfig/import/completed": "externalAgentConfig/import/completed",
"fs/changed": "fs/changed",
"item/reasoning/summaryTextDelta": "item/reasoning/summaryTextDelta",
@@ -136,7 +147,9 @@ export const SERVER_NOTIFICATION_METHODS = {
"item/reasoning/textDelta": "item/reasoning/textDelta",
"thread/compacted": "thread/compacted",
"model/rerouted": "model/rerouted",
"model/verification": "model/verification",
warning: "warning",
guardianWarning: "guardianWarning",
deprecationNotice: "deprecationNotice",
configWarning: "configWarning",
"fuzzyFileSearch/sessionUpdated": "fuzzyFileSearch/sessionUpdated",
@@ -171,21 +184,25 @@ export interface ClientRequestParamsByMethod {
readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveParams.Type;
readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartParams.Type;
readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandParams.Type;
readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionParams.Type;
readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackParams.Type;
readonly "thread/list": typeof CodexSchema.V2ThreadListParams.Type;
readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListParams.Type;
readonly "thread/read": typeof CodexSchema.V2ThreadReadParams.Type;
readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListParams.Type;
readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsParams.Type;
readonly "skills/list": typeof CodexSchema.V2SkillsListParams.Type;
readonly "hooks/list": typeof CodexSchema.V2HooksListParams.Type;
readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddParams.Type;
readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveParams.Type;
readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeParams.Type;
readonly "plugin/list": typeof CodexSchema.V2PluginListParams.Type;
readonly "plugin/read": typeof CodexSchema.V2PluginReadParams.Type;
readonly "plugin/skill/read": typeof CodexSchema.V2PluginSkillReadParams.Type;
readonly "plugin/share/save": typeof CodexSchema.V2PluginShareSaveParams.Type;
readonly "plugin/share/updateTargets": typeof CodexSchema.V2PluginShareUpdateTargetsParams.Type;
readonly "plugin/share/list": typeof CodexSchema.V2PluginShareListParams.Type;
readonly "plugin/share/delete": typeof CodexSchema.V2PluginShareDeleteParams.Type;
readonly "app/list": typeof CodexSchema.V2AppsListParams.Type;
readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateParams.Type;
readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicParams.Type;
readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignParams.Type;
readonly "fs/readFile": typeof CodexSchema.V2FsReadFileParams.Type;
readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileParams.Type;
readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryParams.Type;
@@ -203,6 +220,7 @@ export interface ClientRequestParamsByMethod {
readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptParams.Type;
readonly "review/start": typeof CodexSchema.V2ReviewStartParams.Type;
readonly "model/list": typeof CodexSchema.V2ModelListParams.Type;
readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadParams.Type;
readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListParams.Type;
readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetParams.Type;
readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginParams.Type;
@@ -211,6 +229,7 @@ export interface ClientRequestParamsByMethod {
readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadParams.Type;
readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallParams.Type;
readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartParams.Type;
readonly "windowsSandbox/readiness": undefined;
readonly "account/login/start": typeof CodexSchema.V2LoginAccountParams.Type;
readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountParams.Type;
readonly "account/logout": undefined;
@@ -246,21 +265,25 @@ export interface ClientRequestResponsesByMethod {
readonly "thread/unarchive": typeof CodexSchema.V2ThreadUnarchiveResponse.Type;
readonly "thread/compact/start": typeof CodexSchema.V2ThreadCompactStartResponse.Type;
readonly "thread/shellCommand": typeof CodexSchema.V2ThreadShellCommandResponse.Type;
readonly "thread/approveGuardianDeniedAction": typeof CodexSchema.V2ThreadApproveGuardianDeniedActionResponse.Type;
readonly "thread/rollback": typeof CodexSchema.V2ThreadRollbackResponse.Type;
readonly "thread/list": typeof CodexSchema.V2ThreadListResponse.Type;
readonly "thread/loaded/list": typeof CodexSchema.V2ThreadLoadedListResponse.Type;
readonly "thread/read": typeof CodexSchema.V2ThreadReadResponse.Type;
readonly "thread/turns/list": typeof CodexSchema.V2ThreadTurnsListResponse.Type;
readonly "thread/inject_items": typeof CodexSchema.V2ThreadInjectItemsResponse.Type;
readonly "skills/list": typeof CodexSchema.V2SkillsListResponse.Type;
readonly "hooks/list": typeof CodexSchema.V2HooksListResponse.Type;
readonly "marketplace/add": typeof CodexSchema.V2MarketplaceAddResponse.Type;
readonly "marketplace/remove": typeof CodexSchema.V2MarketplaceRemoveResponse.Type;
readonly "marketplace/upgrade": typeof CodexSchema.V2MarketplaceUpgradeResponse.Type;
readonly "plugin/list": typeof CodexSchema.V2PluginListResponse.Type;
readonly "plugin/read": typeof CodexSchema.V2PluginReadResponse.Type;
readonly "plugin/skill/read": typeof CodexSchema.V2PluginSkillReadResponse.Type;
readonly "plugin/share/save": typeof CodexSchema.V2PluginShareSaveResponse.Type;
readonly "plugin/share/updateTargets": typeof CodexSchema.V2PluginShareUpdateTargetsResponse.Type;
readonly "plugin/share/list": typeof CodexSchema.V2PluginShareListResponse.Type;
readonly "plugin/share/delete": typeof CodexSchema.V2PluginShareDeleteResponse.Type;
readonly "app/list": typeof CodexSchema.V2AppsListResponse.Type;
readonly "device/key/create": typeof CodexSchema.V2DeviceKeyCreateResponse.Type;
readonly "device/key/public": typeof CodexSchema.V2DeviceKeyPublicResponse.Type;
readonly "device/key/sign": typeof CodexSchema.V2DeviceKeySignResponse.Type;
readonly "fs/readFile": typeof CodexSchema.V2FsReadFileResponse.Type;
readonly "fs/writeFile": typeof CodexSchema.V2FsWriteFileResponse.Type;
readonly "fs/createDirectory": typeof CodexSchema.V2FsCreateDirectoryResponse.Type;
@@ -278,6 +301,7 @@ export interface ClientRequestResponsesByMethod {
readonly "turn/interrupt": typeof CodexSchema.V2TurnInterruptResponse.Type;
readonly "review/start": typeof CodexSchema.V2ReviewStartResponse.Type;
readonly "model/list": typeof CodexSchema.V2ModelListResponse.Type;
readonly "modelProvider/capabilities/read": typeof CodexSchema.V2ModelProviderCapabilitiesReadResponse.Type;
readonly "experimentalFeature/list": typeof CodexSchema.V2ExperimentalFeatureListResponse.Type;
readonly "experimentalFeature/enablement/set": typeof CodexSchema.V2ExperimentalFeatureEnablementSetResponse.Type;
readonly "mcpServer/oauth/login": typeof CodexSchema.V2McpServerOauthLoginResponse.Type;
@@ -286,6 +310,7 @@ export interface ClientRequestResponsesByMethod {
readonly "mcpServer/resource/read": typeof CodexSchema.V2McpResourceReadResponse.Type;
readonly "mcpServer/tool/call": typeof CodexSchema.V2McpServerToolCallResponse.Type;
readonly "windowsSandbox/setupStart": typeof CodexSchema.V2WindowsSandboxSetupStartResponse.Type;
readonly "windowsSandbox/readiness": typeof CodexSchema.V2WindowsSandboxReadinessResponse.Type;
readonly "account/login/start": typeof CodexSchema.V2LoginAccountResponse.Type;
readonly "account/login/cancel": typeof CodexSchema.V2CancelLoginAccountResponse.Type;
readonly "account/logout": typeof CodexSchema.V2LogoutAccountResponse.Type;
@@ -346,6 +371,8 @@ export interface ServerNotificationParamsByMethod {
readonly "thread/closed": typeof CodexSchema.V2ThreadClosedNotification.Type;
readonly "skills/changed": typeof CodexSchema.V2SkillsChangedNotification.Type;
readonly "thread/name/updated": typeof CodexSchema.V2ThreadNameUpdatedNotification.Type;
readonly "thread/goal/updated": typeof CodexSchema.V2ThreadGoalUpdatedNotification.Type;
readonly "thread/goal/cleared": typeof CodexSchema.V2ThreadGoalClearedNotification.Type;
readonly "thread/tokenUsage/updated": typeof CodexSchema.V2ThreadTokenUsageUpdatedNotification.Type;
readonly "turn/started": typeof CodexSchema.V2TurnStartedNotification.Type;
readonly "hook/started": typeof CodexSchema.V2HookStartedNotification.Type;
@@ -361,6 +388,8 @@ export interface ServerNotificationParamsByMethod {
readonly "item/agentMessage/delta": typeof CodexSchema.V2AgentMessageDeltaNotification.Type;
readonly "item/plan/delta": typeof CodexSchema.V2PlanDeltaNotification.Type;
readonly "command/exec/outputDelta": typeof CodexSchema.V2CommandExecOutputDeltaNotification.Type;
readonly "process/outputDelta": typeof CodexSchema.V2ProcessOutputDeltaNotification.Type;
readonly "process/exited": typeof CodexSchema.V2ProcessExitedNotification.Type;
readonly "item/commandExecution/outputDelta": typeof CodexSchema.V2CommandExecutionOutputDeltaNotification.Type;
readonly "item/commandExecution/terminalInteraction": typeof CodexSchema.V2TerminalInteractionNotification.Type;
readonly "item/fileChange/outputDelta": typeof CodexSchema.V2FileChangeOutputDeltaNotification.Type;
@@ -372,6 +401,7 @@ export interface ServerNotificationParamsByMethod {
readonly "account/updated": typeof CodexSchema.V2AccountUpdatedNotification.Type;
readonly "account/rateLimits/updated": typeof CodexSchema.V2AccountRateLimitsUpdatedNotification.Type;
readonly "app/list/updated": typeof CodexSchema.V2AppListUpdatedNotification.Type;
readonly "remoteControl/status/changed": typeof CodexSchema.V2RemoteControlStatusChangedNotification.Type;
readonly "externalAgentConfig/import/completed": typeof CodexSchema.V2ExternalAgentConfigImportCompletedNotification.Type;
readonly "fs/changed": typeof CodexSchema.V2FsChangedNotification.Type;
readonly "item/reasoning/summaryTextDelta": typeof CodexSchema.V2ReasoningSummaryTextDeltaNotification.Type;
@@ -379,7 +409,9 @@ export interface ServerNotificationParamsByMethod {
readonly "item/reasoning/textDelta": typeof CodexSchema.V2ReasoningTextDeltaNotification.Type;
readonly "thread/compacted": typeof CodexSchema.V2ContextCompactedNotification.Type;
readonly "model/rerouted": typeof CodexSchema.V2ModelReroutedNotification.Type;
readonly "model/verification": typeof CodexSchema.V2ModelVerificationNotification.Type;
readonly warning: typeof CodexSchema.V2WarningNotification.Type;
readonly guardianWarning: typeof CodexSchema.V2GuardianWarningNotification.Type;
readonly deprecationNotice: typeof CodexSchema.V2DeprecationNoticeNotification.Type;
readonly configWarning: typeof CodexSchema.V2ConfigWarningNotification.Type;
readonly "fuzzyFileSearch/sessionUpdated": typeof CodexSchema.FuzzyFileSearchSessionUpdatedNotification.Type;
@@ -409,21 +441,25 @@ export const CLIENT_REQUEST_PARAMS = {
"thread/unarchive": CodexSchema.V2ThreadUnarchiveParams,
"thread/compact/start": CodexSchema.V2ThreadCompactStartParams,
"thread/shellCommand": CodexSchema.V2ThreadShellCommandParams,
"thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
"thread/rollback": CodexSchema.V2ThreadRollbackParams,
"thread/list": CodexSchema.V2ThreadListParams,
"thread/loaded/list": CodexSchema.V2ThreadLoadedListParams,
"thread/read": CodexSchema.V2ThreadReadParams,
"thread/turns/list": CodexSchema.V2ThreadTurnsListParams,
"thread/inject_items": CodexSchema.V2ThreadInjectItemsParams,
"skills/list": CodexSchema.V2SkillsListParams,
"hooks/list": CodexSchema.V2HooksListParams,
"marketplace/add": CodexSchema.V2MarketplaceAddParams,
"marketplace/remove": CodexSchema.V2MarketplaceRemoveParams,
"marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeParams,
"plugin/list": CodexSchema.V2PluginListParams,
"plugin/read": CodexSchema.V2PluginReadParams,
"plugin/skill/read": CodexSchema.V2PluginSkillReadParams,
"plugin/share/save": CodexSchema.V2PluginShareSaveParams,
"plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsParams,
"plugin/share/list": CodexSchema.V2PluginShareListParams,
"plugin/share/delete": CodexSchema.V2PluginShareDeleteParams,
"app/list": CodexSchema.V2AppsListParams,
"device/key/create": CodexSchema.V2DeviceKeyCreateParams,
"device/key/public": CodexSchema.V2DeviceKeyPublicParams,
"device/key/sign": CodexSchema.V2DeviceKeySignParams,
"fs/readFile": CodexSchema.V2FsReadFileParams,
"fs/writeFile": CodexSchema.V2FsWriteFileParams,
"fs/createDirectory": CodexSchema.V2FsCreateDirectoryParams,
@@ -441,6 +477,7 @@ export const CLIENT_REQUEST_PARAMS = {
"turn/interrupt": CodexSchema.V2TurnInterruptParams,
"review/start": CodexSchema.V2ReviewStartParams,
"model/list": CodexSchema.V2ModelListParams,
"modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadParams,
"experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListParams,
"experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetParams,
"mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginParams,
@@ -449,6 +486,7 @@ export const CLIENT_REQUEST_PARAMS = {
"mcpServer/resource/read": CodexSchema.V2McpResourceReadParams,
"mcpServer/tool/call": CodexSchema.V2McpServerToolCallParams,
"windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartParams,
"windowsSandbox/readiness": undefined,
"account/login/start": CodexSchema.V2LoginAccountParams,
"account/login/cancel": CodexSchema.V2CancelLoginAccountParams,
"account/logout": undefined,
@@ -484,21 +522,25 @@ export const CLIENT_REQUEST_RESPONSES = {
"thread/unarchive": CodexSchema.V2ThreadUnarchiveResponse,
"thread/compact/start": CodexSchema.V2ThreadCompactStartResponse,
"thread/shellCommand": CodexSchema.V2ThreadShellCommandResponse,
"thread/approveGuardianDeniedAction": CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
"thread/rollback": CodexSchema.V2ThreadRollbackResponse,
"thread/list": CodexSchema.V2ThreadListResponse,
"thread/loaded/list": CodexSchema.V2ThreadLoadedListResponse,
"thread/read": CodexSchema.V2ThreadReadResponse,
"thread/turns/list": CodexSchema.V2ThreadTurnsListResponse,
"thread/inject_items": CodexSchema.V2ThreadInjectItemsResponse,
"skills/list": CodexSchema.V2SkillsListResponse,
"hooks/list": CodexSchema.V2HooksListResponse,
"marketplace/add": CodexSchema.V2MarketplaceAddResponse,
"marketplace/remove": CodexSchema.V2MarketplaceRemoveResponse,
"marketplace/upgrade": CodexSchema.V2MarketplaceUpgradeResponse,
"plugin/list": CodexSchema.V2PluginListResponse,
"plugin/read": CodexSchema.V2PluginReadResponse,
"plugin/skill/read": CodexSchema.V2PluginSkillReadResponse,
"plugin/share/save": CodexSchema.V2PluginShareSaveResponse,
"plugin/share/updateTargets": CodexSchema.V2PluginShareUpdateTargetsResponse,
"plugin/share/list": CodexSchema.V2PluginShareListResponse,
"plugin/share/delete": CodexSchema.V2PluginShareDeleteResponse,
"app/list": CodexSchema.V2AppsListResponse,
"device/key/create": CodexSchema.V2DeviceKeyCreateResponse,
"device/key/public": CodexSchema.V2DeviceKeyPublicResponse,
"device/key/sign": CodexSchema.V2DeviceKeySignResponse,
"fs/readFile": CodexSchema.V2FsReadFileResponse,
"fs/writeFile": CodexSchema.V2FsWriteFileResponse,
"fs/createDirectory": CodexSchema.V2FsCreateDirectoryResponse,
@@ -516,6 +558,7 @@ export const CLIENT_REQUEST_RESPONSES = {
"turn/interrupt": CodexSchema.V2TurnInterruptResponse,
"review/start": CodexSchema.V2ReviewStartResponse,
"model/list": CodexSchema.V2ModelListResponse,
"modelProvider/capabilities/read": CodexSchema.V2ModelProviderCapabilitiesReadResponse,
"experimentalFeature/list": CodexSchema.V2ExperimentalFeatureListResponse,
"experimentalFeature/enablement/set": CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
"mcpServer/oauth/login": CodexSchema.V2McpServerOauthLoginResponse,
@@ -524,6 +567,7 @@ export const CLIENT_REQUEST_RESPONSES = {
"mcpServer/resource/read": CodexSchema.V2McpResourceReadResponse,
"mcpServer/tool/call": CodexSchema.V2McpServerToolCallResponse,
"windowsSandbox/setupStart": CodexSchema.V2WindowsSandboxSetupStartResponse,
"windowsSandbox/readiness": CodexSchema.V2WindowsSandboxReadinessResponse,
"account/login/start": CodexSchema.V2LoginAccountResponse,
"account/login/cancel": CodexSchema.V2CancelLoginAccountResponse,
"account/logout": CodexSchema.V2LogoutAccountResponse,
@@ -584,6 +628,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
"thread/closed": CodexSchema.V2ThreadClosedNotification,
"skills/changed": CodexSchema.V2SkillsChangedNotification,
"thread/name/updated": CodexSchema.V2ThreadNameUpdatedNotification,
"thread/goal/updated": CodexSchema.V2ThreadGoalUpdatedNotification,
"thread/goal/cleared": CodexSchema.V2ThreadGoalClearedNotification,
"thread/tokenUsage/updated": CodexSchema.V2ThreadTokenUsageUpdatedNotification,
"turn/started": CodexSchema.V2TurnStartedNotification,
"hook/started": CodexSchema.V2HookStartedNotification,
@@ -600,6 +646,8 @@ export const SERVER_NOTIFICATION_PARAMS = {
"item/agentMessage/delta": CodexSchema.V2AgentMessageDeltaNotification,
"item/plan/delta": CodexSchema.V2PlanDeltaNotification,
"command/exec/outputDelta": CodexSchema.V2CommandExecOutputDeltaNotification,
"process/outputDelta": CodexSchema.V2ProcessOutputDeltaNotification,
"process/exited": CodexSchema.V2ProcessExitedNotification,
"item/commandExecution/outputDelta": CodexSchema.V2CommandExecutionOutputDeltaNotification,
"item/commandExecution/terminalInteraction": CodexSchema.V2TerminalInteractionNotification,
"item/fileChange/outputDelta": CodexSchema.V2FileChangeOutputDeltaNotification,
@@ -611,6 +659,7 @@ export const SERVER_NOTIFICATION_PARAMS = {
"account/updated": CodexSchema.V2AccountUpdatedNotification,
"account/rateLimits/updated": CodexSchema.V2AccountRateLimitsUpdatedNotification,
"app/list/updated": CodexSchema.V2AppListUpdatedNotification,
"remoteControl/status/changed": CodexSchema.V2RemoteControlStatusChangedNotification,
"externalAgentConfig/import/completed":
CodexSchema.V2ExternalAgentConfigImportCompletedNotification,
"fs/changed": CodexSchema.V2FsChangedNotification,
@@ -619,7 +668,9 @@ export const SERVER_NOTIFICATION_PARAMS = {
"item/reasoning/textDelta": CodexSchema.V2ReasoningTextDeltaNotification,
"thread/compacted": CodexSchema.V2ContextCompactedNotification,
"model/rerouted": CodexSchema.V2ModelReroutedNotification,
"model/verification": CodexSchema.V2ModelVerificationNotification,
warning: CodexSchema.V2WarningNotification,
guardianWarning: CodexSchema.V2GuardianWarningNotification,
deprecationNotice: CodexSchema.V2DeprecationNoticeNotification,
configWarning: CodexSchema.V2ConfigWarningNotification,
"fuzzyFileSearch/sessionUpdated": CodexSchema.FuzzyFileSearchSessionUpdatedNotification,
@@ -1,5 +1,5 @@
// This file is generated by the effect-codex-app-server package. Do not edit manually.
// Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0
// Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59
import * as CodexSchema from "./schema.gen.ts";
@@ -37,12 +37,6 @@ export const v2 = {
ConfigWriteResponse: CodexSchema.V2ConfigWriteResponse,
ContextCompactedNotification: CodexSchema.V2ContextCompactedNotification,
DeprecationNoticeNotification: CodexSchema.V2DeprecationNoticeNotification,
DeviceKeyCreateParams: CodexSchema.V2DeviceKeyCreateParams,
DeviceKeyCreateResponse: CodexSchema.V2DeviceKeyCreateResponse,
DeviceKeyPublicParams: CodexSchema.V2DeviceKeyPublicParams,
DeviceKeyPublicResponse: CodexSchema.V2DeviceKeyPublicResponse,
DeviceKeySignParams: CodexSchema.V2DeviceKeySignParams,
DeviceKeySignResponse: CodexSchema.V2DeviceKeySignResponse,
ErrorNotification: CodexSchema.V2ErrorNotification,
ExperimentalFeatureEnablementSetParams: CodexSchema.V2ExperimentalFeatureEnablementSetParams,
ExperimentalFeatureEnablementSetResponse: CodexSchema.V2ExperimentalFeatureEnablementSetResponse,
@@ -80,7 +74,10 @@ export const v2 = {
GetAccountParams: CodexSchema.V2GetAccountParams,
GetAccountRateLimitsResponse: CodexSchema.V2GetAccountRateLimitsResponse,
GetAccountResponse: CodexSchema.V2GetAccountResponse,
GuardianWarningNotification: CodexSchema.V2GuardianWarningNotification,
HookCompletedNotification: CodexSchema.V2HookCompletedNotification,
HooksListParams: CodexSchema.V2HooksListParams,
HooksListResponse: CodexSchema.V2HooksListResponse,
HookStartedNotification: CodexSchema.V2HookStartedNotification,
ItemCompletedNotification: CodexSchema.V2ItemCompletedNotification,
ItemGuardianApprovalReviewCompletedNotification:
@@ -97,6 +94,8 @@ export const v2 = {
MarketplaceAddResponse: CodexSchema.V2MarketplaceAddResponse,
MarketplaceRemoveParams: CodexSchema.V2MarketplaceRemoveParams,
MarketplaceRemoveResponse: CodexSchema.V2MarketplaceRemoveResponse,
MarketplaceUpgradeParams: CodexSchema.V2MarketplaceUpgradeParams,
MarketplaceUpgradeResponse: CodexSchema.V2MarketplaceUpgradeResponse,
McpResourceReadParams: CodexSchema.V2McpResourceReadParams,
McpResourceReadResponse: CodexSchema.V2McpResourceReadResponse,
McpServerOauthLoginCompletedNotification: CodexSchema.V2McpServerOauthLoginCompletedNotification,
@@ -109,7 +108,10 @@ export const v2 = {
McpToolCallProgressNotification: CodexSchema.V2McpToolCallProgressNotification,
ModelListParams: CodexSchema.V2ModelListParams,
ModelListResponse: CodexSchema.V2ModelListResponse,
ModelProviderCapabilitiesReadParams: CodexSchema.V2ModelProviderCapabilitiesReadParams,
ModelProviderCapabilitiesReadResponse: CodexSchema.V2ModelProviderCapabilitiesReadResponse,
ModelReroutedNotification: CodexSchema.V2ModelReroutedNotification,
ModelVerificationNotification: CodexSchema.V2ModelVerificationNotification,
PlanDeltaNotification: CodexSchema.V2PlanDeltaNotification,
PluginInstallParams: CodexSchema.V2PluginInstallParams,
PluginInstallResponse: CodexSchema.V2PluginInstallResponse,
@@ -117,12 +119,25 @@ export const v2 = {
PluginListResponse: CodexSchema.V2PluginListResponse,
PluginReadParams: CodexSchema.V2PluginReadParams,
PluginReadResponse: CodexSchema.V2PluginReadResponse,
PluginShareDeleteParams: CodexSchema.V2PluginShareDeleteParams,
PluginShareDeleteResponse: CodexSchema.V2PluginShareDeleteResponse,
PluginShareListParams: CodexSchema.V2PluginShareListParams,
PluginShareListResponse: CodexSchema.V2PluginShareListResponse,
PluginShareSaveParams: CodexSchema.V2PluginShareSaveParams,
PluginShareSaveResponse: CodexSchema.V2PluginShareSaveResponse,
PluginShareUpdateTargetsParams: CodexSchema.V2PluginShareUpdateTargetsParams,
PluginShareUpdateTargetsResponse: CodexSchema.V2PluginShareUpdateTargetsResponse,
PluginSkillReadParams: CodexSchema.V2PluginSkillReadParams,
PluginSkillReadResponse: CodexSchema.V2PluginSkillReadResponse,
PluginUninstallParams: CodexSchema.V2PluginUninstallParams,
PluginUninstallResponse: CodexSchema.V2PluginUninstallResponse,
ProcessExitedNotification: CodexSchema.V2ProcessExitedNotification,
ProcessOutputDeltaNotification: CodexSchema.V2ProcessOutputDeltaNotification,
RawResponseItemCompletedNotification: CodexSchema.V2RawResponseItemCompletedNotification,
ReasoningSummaryPartAddedNotification: CodexSchema.V2ReasoningSummaryPartAddedNotification,
ReasoningSummaryTextDeltaNotification: CodexSchema.V2ReasoningSummaryTextDeltaNotification,
ReasoningTextDeltaNotification: CodexSchema.V2ReasoningTextDeltaNotification,
RemoteControlStatusChangedNotification: CodexSchema.V2RemoteControlStatusChangedNotification,
ReviewStartParams: CodexSchema.V2ReviewStartParams,
ReviewStartResponse: CodexSchema.V2ReviewStartResponse,
SendAddCreditsNudgeEmailParams: CodexSchema.V2SendAddCreditsNudgeEmailParams,
@@ -134,6 +149,9 @@ export const v2 = {
SkillsListParams: CodexSchema.V2SkillsListParams,
SkillsListResponse: CodexSchema.V2SkillsListResponse,
TerminalInteractionNotification: CodexSchema.V2TerminalInteractionNotification,
ThreadApproveGuardianDeniedActionParams: CodexSchema.V2ThreadApproveGuardianDeniedActionParams,
ThreadApproveGuardianDeniedActionResponse:
CodexSchema.V2ThreadApproveGuardianDeniedActionResponse,
ThreadArchivedNotification: CodexSchema.V2ThreadArchivedNotification,
ThreadArchiveParams: CodexSchema.V2ThreadArchiveParams,
ThreadArchiveResponse: CodexSchema.V2ThreadArchiveResponse,
@@ -142,6 +160,8 @@ export const v2 = {
ThreadCompactStartResponse: CodexSchema.V2ThreadCompactStartResponse,
ThreadForkParams: CodexSchema.V2ThreadForkParams,
ThreadForkResponse: CodexSchema.V2ThreadForkResponse,
ThreadGoalClearedNotification: CodexSchema.V2ThreadGoalClearedNotification,
ThreadGoalUpdatedNotification: CodexSchema.V2ThreadGoalUpdatedNotification,
ThreadInjectItemsParams: CodexSchema.V2ThreadInjectItemsParams,
ThreadInjectItemsResponse: CodexSchema.V2ThreadInjectItemsResponse,
ThreadListParams: CodexSchema.V2ThreadListParams,
@@ -176,8 +196,6 @@ export const v2 = {
ThreadStartResponse: CodexSchema.V2ThreadStartResponse,
ThreadStatusChangedNotification: CodexSchema.V2ThreadStatusChangedNotification,
ThreadTokenUsageUpdatedNotification: CodexSchema.V2ThreadTokenUsageUpdatedNotification,
ThreadTurnsListParams: CodexSchema.V2ThreadTurnsListParams,
ThreadTurnsListResponse: CodexSchema.V2ThreadTurnsListResponse,
ThreadUnarchivedNotification: CodexSchema.V2ThreadUnarchivedNotification,
ThreadUnarchiveParams: CodexSchema.V2ThreadUnarchiveParams,
ThreadUnarchiveResponse: CodexSchema.V2ThreadUnarchiveResponse,
@@ -194,6 +212,7 @@ export const v2 = {
TurnSteerParams: CodexSchema.V2TurnSteerParams,
TurnSteerResponse: CodexSchema.V2TurnSteerResponse,
WarningNotification: CodexSchema.V2WarningNotification,
WindowsSandboxReadinessResponse: CodexSchema.V2WindowsSandboxReadinessResponse,
WindowsSandboxSetupCompletedNotification: CodexSchema.V2WindowsSandboxSetupCompletedNotification,
WindowsSandboxSetupStartParams: CodexSchema.V2WindowsSandboxSetupStartParams,
WindowsSandboxSetupStartResponse: CodexSchema.V2WindowsSandboxSetupStartResponse,
File diff suppressed because it is too large. Load diff