- All gsdDir/gsdRoot/gsdHome → sfDir/sfRootDir/sfHome - GSDWorkspace* → SFWorkspace* interfaces - bootstrapGsdProject → bootstrapProject - runGSDDoctor → runSFDoctor - GsdClient → SfClient, gsd-client.ts → sf-client.ts - .gsd/ → .sf/ in all tests, docs, docker, native, vscode - Auto-migration: headless detects .gsd/ → renames to .sf/ - Deleted gsd-phase-state.ts backward-compat re-export - Renamed bin/gsd-from-source → bin/sf-from-source - Updated mintlify docs, github workflows, docker configs
16 lines
423 B
TypeScript
16 lines
423 B
TypeScript
import { execFileSync } from "child_process";
|
|
|
|
const binary = process.env.SF_SMOKE_BINARY || "npx";
|
|
const args = process.env.SF_SMOKE_BINARY
|
|
? ["--version"]
|
|
: ["sf-run", "--version"];
|
|
|
|
const output = execFileSync(binary, args, {
|
|
encoding: "utf8",
|
|
timeout: 30_000,
|
|
}).trim();
|
|
|
|
if (!/^\d+\.\d+\.\d+/.test(output)) {
|
|
console.error(`Version output does not match expected pattern: "${output}"`);
|
|
process.exit(1);
|
|
}
|