MCPcopy Create free account
hub / github.com/arctic-cli/interface / isParent

Function isParent

packages/arctic/src/session/benchmark.ts:39–43  ·  view source on GitHub ↗
(session: Session.Info | undefined)

Source from the content-addressed store, hash-verified

37 )
38
39 export function isParent(session: Session.Info | undefined): session is Session.Info & {
40 benchmark: BenchmarkSchema.Parent
41 } {
42 return session?.benchmark?.type === "parent"
43 }
44
45 export function isChild(session: Session.Info | undefined): session is Session.Info & {
46 benchmark: BenchmarkSchema.ChildSession

Callers 7

resolveParentFunction · 0.85
resolveChildFunction · 0.85
startFunction · 0.85
stopFunction · 0.85
ensureBaseSnapshotFunction · 0.85
applyFunction · 0.85
undoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected