import { normalizeAcpRegistryCommands } from "/home/user/wt/issue-33757/packages/provider-acp-registry/src/server/probe.ts";
const skill = (n: string) => ({ name: n, description: `skill ${n}` });
// 1. Reporter's shape: 140 alphabetical unprefixed skills, target sorts after #128
const names = Array.from({ length: 139 }, (_, i) => `a-skill-${String(i).padStart(3, "0")}`).concat(["poteto-mode"]);
const r1 = normalizeAcpRegistryCommands(names.map(skill));
console.log("v1 unprefixed 140:", r1.slashCommands.length, "poteto-mode present:", r1.slashCommands.some((c) => c.name === "poteto-mode"), "last:", r1.slashCommands.at(-1)?.name);
// 2. $-prefixed skills share the same cap
const r2 = normalizeAcpRegistryCommands([...Array.from({ length: 128 }, (_, i) => skill(`cmd-${i}`)), skill("$late-skill")]);
console.log("v2 128 slash + 1 $skill:", r2.slashCommands.length, "skills:", r2.skills.length);
// 3. 129 commands: control at the boundary
const r3 = normalizeAcpRegistryCommands(Array.from({ length: 129 }, (_, i) => skill(`c${i}`)));
console.log("v3 129 commands ->", r3.slashCommands.length);
