Skip to content

adapter:codex-app-server

FieldValue
Prefixadapter:codex-app-server
Namespace constantCodexAppServerNamespace
Subjects constantCodexAppServerSubjects
Kindadapter
Schema recordcodexAppServerSchemas
Tierframework
Package@makaio/adapter-codex-app-server
Defined inadapters/implementations/codex-app-server/src/namespaces/index.ts
KeyWireTypeSchema
agent_messageadapter:codex-app-server.agent_messageeventagent-message.ts
agent_message_deltaadapter:codex-app-server.agent_message_deltaeventagent-message.ts
dynamic_tool_call_approval_requestadapter:codex-app-server.dynamic_tool_call_approval_requestrpcdynamic-tool-call.ts
dynamic_tool_call_beginadapter:codex-app-server.dynamic_tool_call_begineventdynamic-tool-call.ts
dynamic_tool_call_endadapter:codex-app-server.dynamic_tool_call_endeventdynamic-tool-call.ts
exec_approval_requestadapter:codex-app-server.exec_approval_requestrpccommand-execution.ts
exec_command_beginadapter:codex-app-server.exec_command_begineventcommand-execution.ts
exec_command_endadapter:codex-app-server.exec_command_endeventcommand-execution.ts
exec_command_output_deltaadapter:codex-app-server.exec_command_output_deltaeventcommand-execution.ts
file_change_approval_requestadapter:codex-app-server.file_change_approval_requestrpcfile-change.ts
file_change_output_deltaadapter:codex-app-server.file_change_output_deltaeventfile-change.ts
item_completedadapter:codex-app-server.item_completedeventitem-lifecycle.ts
item_startedadapter:codex-app-server.item_startedeventitem-lifecycle.ts
reasoningadapter:codex-app-server.reasoningeventreasoning.ts
reasoning_deltaadapter:codex-app-server.reasoning_deltaeventreasoning.ts
thread_completedadapter:codex-app-server.thread_completedeventthread-lifecycle.ts
thread_startedadapter:codex-app-server.thread_startedeventthread-lifecycle.ts
token_usageadapter:codex-app-server.token_usageeventtoken-usage.ts
turn_completedadapter:codex-app-server.turn_completedeventturn-lifecycle.ts
turn_startedadapter:codex-app-server.turn_startedeventturn-lifecycle.ts
turn_state_changedadapter:codex-app-server.turn_state_changedeventturn-lifecycle.ts
turn_step_finishedadapter:codex-app-server.turn_step_finishedeventturn-lifecycle.ts
turn_step_startedadapter:codex-app-server.turn_step_startedeventturn-lifecycle.ts

adapter:codex-app-server.agent_message (event)

Section titled “adapter:codex-app-server.agent_message (event)”

Schema for agent_message event Emitted when a complete agent message is ready

Subject: adapter:codex-app-server.agent_message Type: Event

FieldTypeRequired
messagestringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.agent_message_delta (event)

Section titled “adapter:codex-app-server.agent_message_delta (event)”

Schema for agent_message.delta event Emitted for incremental text updates from the agent

Subject: adapter:codex-app-server.agent_message_delta Type: Event

FieldTypeRequired
deltastringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.dynamic_tool_call_approval_request (rpc)

Section titled “adapter:codex-app-server.dynamic_tool_call_approval_request (rpc)”

Schema for dynamic_tool_call_approval_request RPC.

Request/response pair for dynamic tool call approval routing via scoped bus. Connector calls requestToolApproval → approval handler routes to global bus → returns response.

Note: Enrichment fields (agentId, adapterId, etc.) are auto-injected by requestToolApproval.

Subject: adapter:codex-app-server.dynamic_tool_call_approval_request Type: Request (RPC)

Request:

FieldTypeRequired
adapterIdstring | undefinedno
adapterNamestring | undefinedno
adapterSessionIdstring | undefinedno
agentIdstring | undefinedno
argsRecord<string, unknown>yes
itemIdstringyes
namestringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

Response:

FieldTypeRequired
decision"accept" | "decline"yes
messagestring | undefinedno

adapter:codex-app-server.dynamic_tool_call_begin (event)

Section titled “adapter:codex-app-server.dynamic_tool_call_begin (event)”

Schema for dynamic_tool_call_begin event.

Emitted when an item/started notification arrives for a dynamicToolCall item. The name and args fields are populated from the cached item/tool/call server request that was handled before (or concurrent with) the item/started notification.

Subject: adapter:codex-app-server.dynamic_tool_call_begin Type: Event

FieldTypeRequired
argsRecord<string, unknown>yes
itemIdstringyes
namestringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.dynamic_tool_call_end (event)

Section titled “adapter:codex-app-server.dynamic_tool_call_end (event)”

Schema for dynamic_tool_call_end event.

Emitted when an item/completed notification arrives for a dynamicToolCall item. The output and success fields are populated from the cached tool execution result.

Subject: adapter:codex-app-server.dynamic_tool_call_end Type: Event

FieldTypeRequired
itemIdstringyes
namestringyes
outputstringyes
successbooleanyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.exec_approval_request (rpc)

Section titled “adapter:codex-app-server.exec_approval_request (rpc)”

Schema for exec_approval_request RPC Request/response pair for command approval routing via scoped bus. Connector calls requestToolApproval → registerToolApprovalHandler routes to global bus → returns response.

Note: Enrichment fields (agentId, adapterId, etc.) are auto-injected by requestToolApproval.

Subject: adapter:codex-app-server.exec_approval_request Type: Request (RPC)

Request:

FieldTypeRequired
adapterIdstring | undefinedno
adapterNamestring | undefinedno
adapterSessionIdstring | undefinedno
agentIdstring | undefinedno
callIdstringyes
commandstring[]yes
cwdstringyes
reasonstring | nullyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

Response:

FieldTypeRequired
decision"accept" | "decline"yes
messagestring | undefinedno

adapter:codex-app-server.exec_command_begin (event)

Section titled “adapter:codex-app-server.exec_command_begin (event)”

Schema for exec_command.begin event Emitted when a command execution starts

Subject: adapter:codex-app-server.exec_command_begin Type: Event

FieldTypeRequired
callIdstringyes
commandstring[]yes
cwdstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.exec_command_end (event)

Section titled “adapter:codex-app-server.exec_command_end (event)”

Schema for exec_command.end event Emitted when a command execution completes

Subject: adapter:codex-app-server.exec_command_end Type: Event

FieldTypeRequired
callIdstringyes
exitCodenumberyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.exec_command_output_delta (event)

Section titled “adapter:codex-app-server.exec_command_output_delta (event)”

Schema for exec_command.output.delta event Emitted for incremental output from a running command

Subject: adapter:codex-app-server.exec_command_output_delta Type: Event

FieldTypeRequired
callIdstringyes
chunkstringyes
stream"stdout" | "stderr"yes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.file_change_approval_request (rpc)

Section titled “adapter:codex-app-server.file_change_approval_request (rpc)”

Schema for file_change_approval_request RPC Request/response pair for file change approval routing via scoped bus. Connector calls requestToolApproval → registerToolApprovalHandler routes to global bus → returns response.

Note: Enrichment fields (agentId, adapterId, etc.) are auto-injected by requestToolApproval.

Subject: adapter:codex-app-server.file_change_approval_request Type: Request (RPC)

Request:

FieldTypeRequired
adapterIdstring | undefinedno
adapterNamestring | undefinedno
adapterSessionIdstring | undefinedno
agentIdstring | undefinedno
grantRootstring | nullyes
itemIdstringyes
reasonstring | nullyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

Response:

FieldTypeRequired
decision"accept" | "decline"yes
messagestring | undefinedno

adapter:codex-app-server.file_change_output_delta (event)

Section titled “adapter:codex-app-server.file_change_output_delta (event)”

Schema for file_change.output.delta event Emitted for incremental file change updates

Subject: adapter:codex-app-server.file_change_output_delta Type: Event

FieldTypeRequired
deltastringyes
itemIdstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.item_completed (event)

Section titled “adapter:codex-app-server.item_completed (event)”

Schema for item.completed event Emitted when an item completes

Subject: adapter:codex-app-server.item_completed Type: Event

FieldTypeRequired
itemIdstringyes
itemTypestringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.item_started (event)

Section titled “adapter:codex-app-server.item_started (event)”

Schema for item.started event Emitted when an item begins execution

Subject: adapter:codex-app-server.item_started Type: Event

FieldTypeRequired
itemIdstringyes
itemTypestringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.reasoning (event)

Section titled “adapter:codex-app-server.reasoning (event)”

Schema for reasoning event Emitted when complete reasoning is available

Subject: adapter:codex-app-server.reasoning Type: Event

FieldTypeRequired
reasoningstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.reasoning_delta (event)

Section titled “adapter:codex-app-server.reasoning_delta (event)”

Schema for reasoning.delta event Emitted for incremental reasoning content

Subject: adapter:codex-app-server.reasoning_delta Type: Event

FieldTypeRequired
deltastringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.thread_completed (event)

Section titled “adapter:codex-app-server.thread_completed (event)”

Schema for thread.completed event Emitted when a thread is archived or completed.

Note: agentId is required for bus filtering to work correctly.

Subject: adapter:codex-app-server.thread_completed Type: Event

FieldTypeRequired
agentIdstringyes
threadIdstringyes
timestampnumberyes

adapter:codex-app-server.thread_started (event)

Section titled “adapter:codex-app-server.thread_started (event)”

Schema for thread.started event Emitted when a new thread is successfully started.

Note: agentId is required for bus filtering to work correctly. The filteredBus.on() filters events by agentId.

Subject: adapter:codex-app-server.thread_started Type: Event

FieldTypeRequired
agentIdstringyes
threadIdstringyes
timestampnumberyes

adapter:codex-app-server.token_usage (event)

Section titled “adapter:codex-app-server.token_usage (event)”

Schema for token_usage event Emitted when token usage is updated.

Note: agentId is required for bus filtering to work correctly.

Subject: adapter:codex-app-server.token_usage Type: Event

FieldTypeRequired
agentIdstringyes
completionTokensnumberyes
inputCachedTokensnumberyes
modelContextWindownumber | undefinedno
promptTokensnumberyes
reasoningTokensnumberyes
threadIdstringyes
timestampnumberyes
totalTokensnumberyes
turnIdstring | undefinedno

adapter:codex-app-server.turn_completed (event)

Section titled “adapter:codex-app-server.turn_completed (event)”

Schema for turn.completed event Emitted when a turn completes (turn_finished state).

Note: agentId is required for bus filtering to work correctly.

Subject: adapter:codex-app-server.turn_completed Type: Event

FieldTypeRequired
agentIdstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.turn_started (event)

Section titled “adapter:codex-app-server.turn_started (event)”

Schema for turn.started event Emitted when a turn begins processing (turn_started state).

Note: agentId is required for bus filtering to work correctly.

Subject: adapter:codex-app-server.turn_started Type: Event

FieldTypeRequired
agentIdstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.turn_state_changed (event)

Section titled “adapter:codex-app-server.turn_state_changed (event)”

Turn state change event Emitted whenever turn state transitions

Subject: adapter:codex-app-server.turn_state_changed Type: Event

FieldTypeRequired
adapterIdstringyes
agentIdstringyes
newState"active" | "idle" | "turn_started" | "step_started" | "step_finished" | "turn_finished" | "processing_started" | "interrupted"yes
oldState"active" | "idle" | "turn_started" | "step_started" | "step_finished" | "turn_finished" | "processing_started" | "interrupted"yes
timestampnumberyes

adapter:codex-app-server.turn_step_finished (event)

Section titled “adapter:codex-app-server.turn_step_finished (event)”

Schema for turn.step_finished event Emitted when a step/item completes.

Note: agentId is required for bus filtering to work correctly.

Subject: adapter:codex-app-server.turn_step_finished Type: Event

FieldTypeRequired
agentIdstringyes
itemIdstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

adapter:codex-app-server.turn_step_started (event)

Section titled “adapter:codex-app-server.turn_step_started (event)”

Schema for turn.step_started event Emitted when a step/item begins execution.

Note: agentId is required for bus filtering to work correctly.

Subject: adapter:codex-app-server.turn_step_started Type: Event

FieldTypeRequired
agentIdstringyes
itemIdstringyes
threadIdstringyes
timestampnumberyes
turnIdstringyes

Auto-generated by yarn docs:bus. Do not edit manually.