(
session: SessionState | undefined,
name: string,
options: RuntimeSessionRecordOptions = {},
)
| 8 | }; |
| 9 | |
| 10 | function toRuntimeSessionRecord( |
| 11 | session: SessionState | undefined, |
| 12 | name: string, |
| 13 | options: RuntimeSessionRecordOptions = {}, |
| 14 | ): CommandSessionRecord | undefined { |
| 15 | if (!session) return undefined; |
| 16 | return { |
| 17 | name, |
| 18 | appBundleId: session.appBundleId, |
| 19 | appName: session.appName, |
| 20 | ...(options.includeSnapshot === true ? { snapshot: session.snapshot } : {}), |
| 21 | metadata: { |
| 22 | surface: session.surface, |
| 23 | ...(options.metadata ?? {}), |
| 24 | }, |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | export function createDaemonRuntimeSessionStore(params: { |
| 29 | sessionName: string; |
no outgoing calls
no test coverage detected