Skip to content

Variable: createMockAgent

Makaio Framework


Makaio Framework / services-core/session/testing/orchestrator-shared / createMockAgent

const createMockAgent: (agentId, overrides?) => object = createTestAgent

Defined in: ../../../packages/services/core/src/session/testing/orchestrator-shared.ts:19

Alias for createTestAgent - kept for orchestrator test naming consistency.

Creates a test agent with sensible defaults.

string

The agent identifier

Partial<{ adapterId: string; adapterName: string; adapterSessionId?: string; agentId: string; clientId?: string; compressionMode?: "manual" | "auto" | "off"; createdAt: number; cwd?: string; harnessId?: string; lastActivityAt: number; model?: string; personaId?: string; profileId?: string; providerConfigId?: string; role: "lead" | "member"; sessionId: string; status: "active" | "idle" | "dead" | "disposed"; }>

Optional overrides for agent properties

A MakaioSessionAgent for testing

adapterId: string

Adapter instance that owns this agent

adapterName: string

Adapter type name (e.g., ‘claude-code’, ‘copilot’)

optional adapterSessionId?: string

Provider’s session ID for native resume support

agentId: string

Unique agent execution unit ID (stable across connector swaps and restarts)

optional clientId?: string

Client identifier for the client application this agent runs under (e.g., ‘claude-code’, ‘codex’). Omit for API-only adapters.

optional compressionMode?: "manual" | "auto" | "off"

Compression mode for session context management.

createdAt: number

Timestamp when agent was created (= when added to session)

optional cwd?: string

Current working directory

optional harnessId?: string

Resolved harness ID for this agent.

lastActivityAt: number

Timestamp of last activity (message sent/received)

optional model?: string

Current model identifier

optional personaId?: string

Persona used to configure this agent (if any).

optional profileId?: string

Profile used to configure this agent (if any).

optional providerConfigId?: string

Provider config UUID for credential/endpoint resolution

role: "lead" | "member" = AgentRoleSchema

Agent’s role in the session

sessionId: string

Makaio session this agent belongs to

status: "active" | "idle" | "dead" | "disposed" = AgentStatusSchema

Agent lifecycle status