Function: resolveExecutionTarget()
Makaio Framework / services-core / resolveExecutionTarget
Function: resolveExecutionTarget()
Section titled “Function: 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).
Parameters
Section titled “Parameters”Makaio bus instance
params
Section titled “params”Resolution parameters from session context
executionTargetId?
Section titled “executionTargetId?”string
projectId?
Section titled “projectId?”string
workstreamId?
Section titled “workstreamId?”string
Returns
Section titled “Returns”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