Skip to content

Function: getBranchBehavior()

Makaio Framework


Makaio Framework / contracts/session / 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.

"fork" | "branch" | "aside" | "subagent" | "compress" | "rewrite" | "coordinator"

The branch kind to describe

BranchBehavior

A BranchBehavior descriptor with all behavioural flags set