/** * Agent-facing Content capabilities. Four tools, deliberately mirroring the * Trading vertical's shape: * * ContentCreate — start a new piece with type/title/budgetUsd * ContentAddAsset — record a generated asset (image/audio/etc.) with its * cost; rejected (as normal text, not an error) if it * would breach the per-piece budget * ContentShow — dump a single piece's state as actionable markdown * ContentList — summary of every piece, newest first * * This is the surface generic coding agents can't cover: durable content * state with autonomous spending gating. An agent can spin up "Franklin * launch thread" with a $3 budget, hit DALL-E twice for hero images, blow * the budget, read the refusal, pick a cheaper model, and continue — all * without human intervention and with the project surviving to the next * session. */ import type { CapabilityHandler } from '../agent/types.js'; import type { ContentLibrary } from '../content/library.js'; export interface ContentCapabilitiesDeps { library: ContentLibrary; /** Invoked after mutating calls so callers can persist to disk. */ onStateChange?: () => void | Promise; } export declare function createContentCapabilities(deps: ContentCapabilitiesDeps): CapabilityHandler[];