Variable: createMockAgent
Makaio Framework / services-core/session/testing/orchestrator-shared / createMockAgent
Variable: createMockAgent
Section titled “Variable: createMockAgent”
constcreateMockAgent: (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.
Parameters
Section titled “Parameters”agentId
Section titled “agentId”string
The agent identifier
overrides?
Section titled “overrides?”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
Returns
Section titled “Returns”A MakaioSessionAgent for testing
adapterId
Section titled “adapterId”adapterId:
string
Adapter instance that owns this agent
adapterName
Section titled “adapterName”adapterName:
string
Adapter type name (e.g., ‘claude-code’, ‘copilot’)
adapterSessionId?
Section titled “adapterSessionId?”
optionaladapterSessionId?:string
Provider’s session ID for native resume support
agentId
Section titled “agentId”agentId:
string
Unique agent execution unit ID (stable across connector swaps and restarts)
clientId?
Section titled “clientId?”
optionalclientId?:string
Client identifier for the client application this agent runs under (e.g., ‘claude-code’, ‘codex’). Omit for API-only adapters.
compressionMode?
Section titled “compressionMode?”
optionalcompressionMode?:"manual"|"auto"|"off"
Compression mode for session context management.
createdAt
Section titled “createdAt”createdAt:
number
Timestamp when agent was created (= when added to session)
optionalcwd?:string
Current working directory
harnessId?
Section titled “harnessId?”
optionalharnessId?:string
Resolved harness ID for this agent.
lastActivityAt
Section titled “lastActivityAt”lastActivityAt:
number
Timestamp of last activity (message sent/received)
model?
Section titled “model?”
optionalmodel?:string
Current model identifier
personaId?
Section titled “personaId?”
optionalpersonaId?:string
Persona used to configure this agent (if any).
profileId?
Section titled “profileId?”
optionalprofileId?:string
Profile used to configure this agent (if any).
providerConfigId?
Section titled “providerConfigId?”
optionalproviderConfigId?:string
Provider config UUID for credential/endpoint resolution
role:
"lead"|"member"=AgentRoleSchema
Agent’s role in the session
sessionId
Section titled “sessionId”sessionId:
string
Makaio session this agent belongs to
status
Section titled “status”status:
"active"|"idle"|"dead"|"disposed"=AgentStatusSchema
Agent lifecycle status