Skip to content

@usine/config/loop

A Loop parsed from loops/<name>.md; the filename defines its identity.

  • Schema.Class

new LoopFile(…args): LoopFile

Parameter Type
…args [props: object, options?: MakeOptions]

LoopFile

readonly agent: string & Brand<"AgentName">

readonly approval: "required" | "none"

readonly body: string & Brand<"PromptTemplate">

readonly maxCycles: number & Brand<"CycleLimit">

readonly name: string & Brand<"LoopName">

readonly selector: Option<Selector>

readonly step: string & Brand<"StepName">

readonly trigger: IssueTrigger | PullRequestTrigger | ScheduleTrigger


A Loop excluded from execution because its file could not be loaded or its references resolved.

  • Schema.Class

new QuarantinedLoop(…args): QuarantinedLoop

Parameter Type
…args [props: object, options?: MakeOptions]

QuarantinedLoop

readonly error: ConfigFileError

readonly file: string & Brand<"InstancePath">

PromptTemplate = typeof PromptTemplate.Type

The Loop’s Markdown task template, with CEL expressions inside {{ ... }}.

const loopPath: (name) => InstancePath

The file a loop name refers to.

Parameter Type
name LoopName

InstancePath


const PromptTemplate: Schema.brand<Schema.String, "PromptTemplate">

The Loop’s Markdown task template, with CEL expressions inside {{ ... }}.