AI
Controls whether the publisher offers an AI diagnosis when a command fails.
ai
- Type:
'prompt' | 'off';
- Default:
'prompt';
When a command fails, the publisher writes a diagnostics file (the error, the
build logs, and pointers to the relevant rules) to
.graphics-kit/diagnostics/latest.md and, when this is set to 'prompt', offers
to hand it off to Claude Code to diagnose:
- Open a Claude Code chat to fix it — opens the Claude Code VSCode extension in a chat next to your code, pre-filled with the diagnostics (you review and press Enter). It can read your project, find the cause, and fix it with you.
- Just tell me what went wrong — runs a one-shot, read-only diagnosis in your terminal.
Set it to 'off' to never show the prompt.
import { defineConfig } from '@reuters-graphics/graphics-kit-publisher';
export default defineConfig({ ai: 'prompt',});