/** * `cleo goal status` — the project's drafted goals, the CLEO tasks they serve, * and the live run (T13821). * * The live run comes only from `cleo-goal status --json` (versioned; an * unknown schema version is refused), never from the runtime's internal files. * The drafted goals come from their `goal.yaml`, the contract CLEO writes. * Read-only. * * @epic T13791 * @task T13821 */ import type { EngineResult, GoalDraftEntry, GoalStatusReport } from '@cleocode/contracts'; /** * The drafted goals of a project, from each `.opencode/goals//goal.yaml`. * * @param projectRoot - Project root. * @returns One entry per goal directory holding a `goal.yaml`, by slug. */ export declare function draftedGoals(projectRoot: string): GoalDraftEntry[]; /** * The drafted goals and the live run. A missing CLEO Goal bin is a report * (`runtime: 'not-installed'` with the install commands), not a failure; an * unknown status schema or a failing bin is a failure. * * @param opts - Project root, a task to filter by, and the environment. * @returns The report, or the runtime's refusal. * @example * ```ts * const r = goalStatus({ taskId: 'T123' }); * if (r.success) r.data.live?.status; // the live run, when there is one * ``` */ export declare function goalStatus(opts?: { projectRoot?: string; taskId?: string; env?: Readonly>; }): EngineResult; //# sourceMappingURL=status.d.ts.map