Function: getBranchBehavior()
Makaio Framework / contracts/session / getBranchBehavior
Function: getBranchBehavior()
Section titled “Function: getBranchBehavior()”getBranchBehavior(
kind):BranchBehavior
Defined in: ../../../packages/contracts/src/session/utils/branch-kind.ts:157
Returns the full BranchBehavior descriptor for the given branch kind.
This is the preferred API when more than one behavioural dimension is needed, as it avoids querying multiple individual predicates.
null and undefined represent legacy sessions without a branch kind and
are intentionally excluded from this API — use the individual predicates
(isInViewBranch, isNavigatingBranch, isMergeable)
directly when the kind may be absent.
Parameters
Section titled “Parameters”"fork" | "branch" | "aside" | "subagent" | "compress" | "rewrite" | "coordinator"
The branch kind to describe
Returns
Section titled “Returns”A BranchBehavior descriptor with all behavioural flags set