/** * Is there an AI for this domain, and what is missing — asked before anything is tried. * * The twin had a button that asked the assistant, and whether to show it was decided by whether a * now-dead mutation had failed once. When the dock moved to the neutral door nothing called that * mutation any more, so the answer was "configured" forever: the button appeared on deployments * with no provider at all and failed when pressed (standard A7-a). * * A capability is read, not discovered by failing (ADR-0042 decision ②). It lives here because the * agents do, and the answer has three states — the third is the one a screen must not fold away: * **not asked yet** is not "configured". Since agents are set per domain (design/ai/agent-settings.md), * so is the answer. */ import type { Domain } from '@things-factory/shell'; import { type AiAgentDirectory } from './agent/agent-directory.js'; export type AiCapabilityState = 'configured' | 'not-configured'; export interface AiCapability { state: AiCapabilityState; /** The provider of the agent a request without a choice gets. */ provider?: string; /** That agent's model. */ model?: string; /** Why it is not configured, as a code: no-agent · no-agent-key · no-usable-agent. */ reason?: string; } /** What this domain can do, as of now. It never throws: a domain with no AI is a normal domain. */ export declare function aiCapability(domain: Domain): Promise; export declare function capabilityOf(directory: Pick): AiCapability;