Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(cli): tell contributors how to resolve a flag-registry conflict (#4138)

Masa181fc8c1a203
diff --git a/scripts/generate-flag-registry.ts b/scripts/generate-flag-registry.ts
index 4b22efd11b..6ee4b066b9 100644
--- a/scripts/generate-flag-registry.ts
+++ b/scripts/generate-flag-registry.ts
@@ -156,6 +156,12 @@ export function renderRegistryModule(registry: Record<string, string[]>): string
// Regenerate: bun run build:flag-registry
// Freshness + drift pinned by test/cli-flag-validation.test.ts (#2185).
//
+// Merge conflict here? Do not hand-merge it. This file is regenerated on most
+// upstream waves, so a branch that also regenerates it conflicts on the whole
+// body. Take the base branch's copy wholesale, then re-run the command above —
+// the freshness test named above fails loudly if that regeneration was done
+// against the wrong base.
+//
// Per-command legal flags for CLI_ONLY commands, derived from each command's
// source (case block + imported modules + one level of relative imports +
// scripts/generate-flag-registry.ts EXTRA_FLAGS). Deliberately over-inclusive
diff --git a/src/core/cli-flag-registry.generated.ts b/src/core/cli-flag-registry.generated.ts
index 5ad9615876..eeaccf0b0f 100644
--- a/src/core/cli-flag-registry.generated.ts
+++ b/src/core/cli-flag-registry.generated.ts
@@ -2,6 +2,12 @@
// Regenerate: bun run build:flag-registry
// Freshness + drift pinned by test/cli-flag-validation.test.ts (#2185).
//
+// Merge conflict here? Do not hand-merge it. This file is regenerated on most
+// upstream waves, so a branch that also regenerates it conflicts on the whole
+// body. Take the base branch's copy wholesale, then re-run the command above —
+// the freshness test named above fails loudly if that regeneration was done
+// against the wrong base.
+//
// Per-command legal flags for CLI_ONLY commands, derived from each command's
// source (case block + imported modules + one level of relative imports +
// scripts/generate-flag-registry.ts EXTRA_FLAGS). Deliberately over-inclusive