Intelligence
Artifacts
Browse the repository, read documents, and manage the governance folders. Source, runtime, and infrastructure are read-only.
Repository
repositories/aaf-holdings/hq01/lib/sessions/presets.ts
1.2 KB
import { REPO_ROOT } from "@/lib/content/config";
import type { StartSessionInput } from "./types";
/**
* Quick-start presets surfaced on the Sessions dashboard. A preset is just a
* partially-filled {@link StartSessionInput} so the CEO can launch a known
* executive (e.g. Agent Z) with one tap, while the form still allows fully
* custom sessions.
*
* Presets are additive: new executives extend this list without changing any
* existing behaviour.
*/
export interface SessionPreset extends Partial<StartSessionInput> {
/** Stable key for the preset. */
key: string;
/** Display label, e.g. "Agent Z". */
label: string;
/** One-line description shown under the label. */
blurb: string;
name: string;
working_directory: string;
}
export const SESSION_PRESETS: SessionPreset[] = [
{
key: "agent-z",
label: "Agent Z",
blurb: "Engineering executive — runs in the aaf-holdings repository.",
name: "Agent Z",
executive: "agent-z",
working_directory: REPO_ROOT,
branch: "mission/MS-0001",
mission_id: "MS-0001",
},
];
export function getPreset(key: string): SessionPreset | undefined {
return SESSION_PRESETS.find((p) => p.key === key);
}
root · /srv/aaf