Skip to content

Function: resolveExecutionTarget()

Makaio Framework


Makaio Framework / services-core / resolveExecutionTarget

resolveExecutionTarget(bus, params): Promise<{ createdAt: number; description?: string; enabled: boolean; id: string; name: string; scope: string; type: "local"; updatedAt: number; } | { busUrl?: string; createdAt: number; description?: string; enabled: boolean; env?: Record<string, string>; id: string; image?: string; name: string; scope: string; type: "container-local"; updatedAt: number; } | { busMode: "relay" | "host"; createdAt: number; description?: string; enabled: boolean; env?: Record<string, string>; gitCredentialMode: "token" | "ssh-agent"; id: string; image?: string; name: string; relayUrl?: string; repoUrl?: string; scope: string; type: "container-isolated"; updatedAt: number; }>

Defined in: ../../../packages/services/core/src/session/utils/resolution.ts:65

Resolves the effective execution target for a session. Priority: explicit executionTargetId → workstream default → system default (local).

IMakaioBus

Makaio bus instance

Resolution parameters from session context

string

string

string

Promise<{ createdAt: number; description?: string; enabled: boolean; id: string; name: string; scope: string; type: "local"; updatedAt: number; } | { busUrl?: string; createdAt: number; description?: string; enabled: boolean; env?: Record<string, string>; id: string; image?: string; name: string; scope: string; type: "container-local"; updatedAt: number; } | { busMode: "relay" | "host"; createdAt: number; description?: string; enabled: boolean; env?: Record<string, string>; gitCredentialMode: "token" | "ssh-agent"; id: string; image?: string; name: string; relayUrl?: string; repoUrl?: string; scope: string; type: "container-isolated"; updatedAt: number; }>

Resolved execution target