feat(canonical): validate profile name, apply env-var substitution before render

This commit is contained in:
2026-05-23 11:55:26 +01:00
parent 5e35dc47fe
commit 50059d7517
14 changed files with 423 additions and 23 deletions
+3 -1
View File
@@ -37,7 +37,9 @@ func TestInitApplyDiffCycle(t *testing.T) {
// apply may produce conflicts on a freshly imported tree (because the
// claude-code adapter merges into existing settings.json which differs
// from canonical); accept either clean exit or conflict exit.
out, err = run("apply")
// --allow-incomplete: the placeholder profile has empty URL by design.
// --yes: skip first-run TTY prompt in CI.
out, err = run("apply", "--allow-incomplete", "--yes")
if err != nil {
// Apply with conflicts is acceptable — verify the binary at least ran
assert.Contains(t, string(out), "applied")