MCPcopy Create free account
hub / github.com/METR/vivaria / assertIsNotTrunk

Function assertIsNotTrunk

shared/src/types.ts:668–670  ·  view source on GitHub ↗
(branch: AgentBranch)

Source from the content-addressed store, hash-verified

666export type AgentBranchNotTrunk = I<typeof AgentBranchNotTrunk>
667
668export function assertIsNotTrunk(branch: AgentBranch): asserts branch is AgentBranchNotTrunk {
669 if (branch.agentBranchNumber === TRUNK) throw new Error('expected not trunk')
670}
671
672export const SetupState = z.enum([
673 'NOT_STARTED',

Callers 1

serverstate.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected