import type { LifecycleDTO, ModeDTO } from './common.js'; /** `PATCH /v1/nodes/{id}/config` body. All fields optional; a set field is * applied, an absent field is untouched. */ export interface NodeConfigPatch { /** Model tier or exact selection override. */ model?: string; /** Ambient situational-context text override. */ situational_context?: string; /** Persona kind respecialization — rebuilds the launch spec server-side. */ kind?: string; /** Persona mode; setting `orchestrator` seeds a roadmap scaffold if absent. */ mode?: ModeDTO; /** Lifecycle flip (terminal↔resident), rebuilding the launch spec. */ lifecycle?: LifecycleDTO; /** Rename the node (and, when it has a live viewer window, that window). */ name?: string; /** Repair-only replacement launch directory; exclusive of every other field. */ cwd?: string; /** Per-run allow-list. A patch may only remove scopes; it applies to a live broker on its next revive. */ scopes?: string[]; }