The session runtime's view the services read and adopt through — the server's SessionManager
satisfies this structurally. adopt puts a just-created Session's runtime into the active
table; the reads back the list DTO's live fields (status, pending counts, the model handoff
target) and noticeModelConfigEdit tells the runtime the Project's model config moved under
a runtime it is about to build.
API
@Interface()
export abstract class SessionRuntimes {
abstract adopt(row: SessionRow, session: RuntimeSession): void;
abstract statusOf(sessionId: string): SessionStatus;
abstract pendingApprovalCount(sessionId: string): number;
abstract pendingFollowUpCount(sessionId: string): number;
abstract backgroundTasksOf(sessionId: string): SessionBackgroundTasks | undefined;
abstract pendingModel(sessionId: string): ModelRefDto | undefined;
abstract noticeModelConfigEdit(projectId: string): Promise<void>;
}Members (7)
adopt
adopt(row: SessionRow, session: RuntimeSession): void@paramrow
SessionRow@paramsession
RuntimeSession@returns
voidstatusOf
statusOf(sessionId: string): SessionStatus@paramsessionId
string@returns
SessionStatuspendingApprovalCount
pendingApprovalCount(sessionId: string): number@paramsessionId
string@returns
numberpendingFollowUpCount
pendingFollowUpCount(sessionId: string): number@paramsessionId
string@returns
numberbackgroundTasksOf
backgroundTasksOf(sessionId: string): SessionBackgroundTasks | undefined@paramsessionId
string@returns
SessionBackgroundTasks | undefinedpendingModel
pendingModel(sessionId: string): ModelRefDto | undefined@paramsessionId
string@returns
ModelRefDto | undefinednoticeModelConfigEdit
noticeModelConfigEdit(projectId: string): Promise<void>@paramprojectId
string@returns
Promise<void>