MCPcopy Index your code
hub / github.com/callstack/agent-device / buildMeta

Function buildMeta

src/client/client-normalizers.ts:371–389  ·  view source on GitHub ↗
(options: InternalRequestOptions)

Source from the content-addressed store, hash-verified

369}
370
371export 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
391export function resolveSessionName(session: string | undefined): string {
392 return session ?? DEFAULT_SESSION_NAME;

Callers 1

executeFunction · 0.90

Calls 3

leaseScopeFromOptionsFunction · 0.90
stripUndefinedFunction · 0.90
leaseScopeToRequestMetaFunction · 0.90

Tested by

no test coverage detected