<!-- Generated by scripts/gen-docs.ts from the TSDoc in src/. Do not edit by hand. -->

# `flow/sources`

Source: [`src/flow/sources.ts`](https://github.com/AI-for-dev/combo/blob/main/src/flow/sources.ts)

What the flow stage read to check a flow: its file and the file of every
flow it reaches, and each agent it names with the skills that agent's
`skills:` resolved to.

A checked flow carries it so that a run can keep a copy of exactly that:
what it runs is what validation read, whatever the disk says later.

## `NamedAgent`

*type*

```typescript
export type NamedAgent = {
	/** The agent, as it was parsed. */
	readonly agent: Agent;
	/** What its `skills:` resolved to. */
	readonly skills: readonly Skill[];
};
```

An agent a flow names, and the skills its `skills:` resolved to, in the order it names them.

## `Sources`

*type*

```typescript
export type Sources = {
	/** The flow's own file, then each file a call reaches. */
	readonly flows: readonly FoundFlow[];
	/** Each agent named, once. */
	readonly agents: readonly NamedAgent[];
};
```

Everything a flow's check read, each file and each agent once.
