refactor: simplify configure wizard prompt values

This commit is contained in:
Peter Steinberger
2026-04-11 00:33:17 +01:00
parent ead1ee42cb
commit a403e611c7

View File

@@ -465,7 +465,7 @@ export async function runConfigureWizard(
runtime,
);
workspaceDir = resolveUserPath(
normalizeOptionalString(String(workspaceInput ?? "")) || DEFAULT_WORKSPACE,
normalizeOptionalString(workspaceInput ?? "") || DEFAULT_WORKSPACE,
);
if (!snapshot.exists) {
const indicators = ["MEMORY.md", "memory", ".git"].map((name) =>
@@ -530,7 +530,7 @@ export async function runConfigureWizard(
}),
runtime,
);
gatewayPort = Number.parseInt(String(portInput), 10);
gatewayPort = Number.parseInt(portInput, 10);
};
if (opts.sections) {