(options: InternalRequestOptions)
| 369 | } |
| 370 | |
| 371 | export function buildMeta(options: InternalRequestOptions): DaemonRequest['meta'] { |
| 372 | const leaseScope = leaseScopeFromOptions(options); |
| 373 | return stripUndefined({ |
| 374 | requestId: options.requestId, |
| 375 | cwd: options.cwd, |
| 376 | sessionExplicit: options.session !== undefined, |
| 377 | debug: options.debug, |
| 378 | includeCost: options.cost, |
| 379 | responseLevel: options.responseLevel, |
| 380 | lockPolicy: options.lockPolicy, |
| 381 | lockPlatform: options.lockPlatform, |
| 382 | ...leaseScopeToRequestMeta(leaseScope), |
| 383 | sessionIsolation: options.sessionIsolation, |
| 384 | installSource: options.installSource, |
| 385 | retainMaterializedPaths: options.retainMaterializedPaths, |
| 386 | materializedPathRetentionMs: options.materializedPathRetentionMs, |
| 387 | materializationId: options.materializationId, |
| 388 | }); |
| 389 | } |
| 390 | |
| 391 | export function resolveSessionName(session: string | undefined): string { |
| 392 | return session ?? DEFAULT_SESSION_NAME; |
no test coverage detected