import { existsSync } from "node:fs"; import { join } from "node:path"; import type { Command } from "commander"; import { findSeedsDir, projectRootFromSeedsDir } from "../config.ts"; import { hasMarkerSection, replaceMarkerSection, wrapInMarkers } from "../markers.ts"; import { outputJson, printError, printSuccess } from "../output.ts"; import { VERSION } from "../version.ts"; // Schema version drives outdated-snippet detection. Bump when the snippet body changes // in a way agents should re-render. Independent of the package version so patch releases // don't mark every existing snippet as outdated. const ONBOARD_SCHEMA = 7; const SCHEMA_MARKER = ``; const VERSION_MARKER = ``; const LEGACY_VERSION_MARKER_PREFIX = "