Hexclave rename PR5: doctor + init prefer hexclave.config.ts (Step 8/G)

doctor config-file check now prefers hexclave.config.{ts,js} with stack.config.*
as fallback; init prompt mentions hexclave.config.ts. typecheck + lint green.
This commit is contained in:
Bilal Godil 2026-06-03 10:54:15 -07:00
parent bb1ba8509b
commit 582415d10c
2 changed files with 3 additions and 3 deletions

View File

@ -427,8 +427,8 @@ function envVarsCheck(specs: EnvVarSpec[]): CheckSpec {
function configFileCheck(): CheckSpec {
const id = "config-file";
const label = "stack.config validity";
const candidates = ["stack.config.ts", "stack.config.js"];
const label = "hexclave.config validity";
const candidates = ["hexclave.config.ts", "hexclave.config.js", "stack.config.ts", "stack.config.js"];
return {
id,
label,

View File

@ -183,7 +183,7 @@ async function handleLink(flags: Record<string, unknown>, opts: InitOptions, out
async function handleLinkFromConfigFile(opts: InitOptions): Promise<{ configPath: string }> {
const filePath = opts.configFile ?? await input({
message: "Path to your existing stack.config.ts:",
message: "Path to your existing hexclave.config.ts (or stack.config.ts):",
validate: (value) => {
const resolved = path.resolve(value);
if (!fs.existsSync(resolved)) {