fix(skills): the launcher's floor is 0.9.65, the oldest release Desktop ships (#8159)

* fix(skills): the launcher's floor is 0.9.65, the oldest release Desktop ships

The skill launcher now refuses any HyperFrames release older than 0.9.65, the oldest release
the HyperFrames Desktop app ships. This applies to --cli-version, to
HYPERFRAMES_STANDALONE_CLI_VERSION, to a helper started with --script and to a plugin manifest
pin. A standalone install's default npx range starts at 0.9.65. Every plugin manifest in this
repo already pins 0.9.65.

The skills guide and the plugin installation reference name the current floor, and a test
keeps them in step with the launcher. Desktop's release checks read the floor from the
published launcher, so a comment asks that it stay a string literal.

* test(skills): a helper started with --script forwards a release at the launcher's floor

The accept loop now also starts a --script helper, so all four paths are shown accepting 0.9.65.
This commit is contained in:
Michael Wang
2026-11-18 09:26:49 +00:00
committed by GitHub
parent 81d73d2278
commit 140b701403
6 changed files with 35 additions and 16 deletions
+16
View File
@@ -137,6 +137,22 @@ test("the project upgrade flow stops on a failed check instead of running the pr
assert.match(lifecycle, /unless the person asks for that release/);
});
// fails without the fix: the docs said only "its floor", so a reader could not tell which releases
// the launcher refuses.
test("the launcher docs name the launcher's current floor", () => {
const read = (path) => readFileSync(new URL(`../${path}`, import.meta.url), "utf8");
const floor = /^const CLI_FLOOR = "([^"]+)";$/m.exec(
read("skills/hyperframes/scripts/plugin-cli.mjs"),
)?.[1];
assert.ok(floor);
for (const path of [
"docs/guides/skills.mdx",
"skills/hyperframes/references/plugin-installation.md",
]) {
assert.ok(read(path).replace(/\s+/g, " ").includes(`floor (currently ${floor})`), path);
}
});
test("reads the registered commands, quoted or not", () => {
const source = `const commandLoaders = {\n init: () => x,\n "catch-up": () => y,\n};`;
assert.deepEqual([...registeredCommands(source)], ["init", "catch-up"]);