flow/sources

Source: 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

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

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.