refactor(core): land plugin auth and startup cleanup

This commit is contained in:
Peter Steinberger
2026-03-15 20:02:24 -07:00
parent f71f44576a
commit 8ab01c5c93
75 changed files with 736 additions and 383 deletions

View File

@@ -123,7 +123,7 @@ function resolveRepoRootForDev(): string {
const parts = normalized.split(path.sep);
const srcIndex = parts.lastIndexOf("src");
if (srcIndex === -1) {
throw new Error("Dev mode requires running from repo (src/index.ts)");
throw new Error("Dev mode requires running from repo (src/entry.ts)");
}
return parts.slice(0, srcIndex).join(path.sep);
}
@@ -180,7 +180,7 @@ async function resolveCliProgramArguments(params: {
if (runtime === "bun") {
if (params.dev) {
const repoRoot = resolveRepoRootForDev();
const devCliPath = path.join(repoRoot, "src", "index.ts");
const devCliPath = path.join(repoRoot, "src", "entry.ts");
await fs.access(devCliPath);
const bunPath = isBunRuntime(execPath) ? execPath : await resolveBunPath();
return {
@@ -213,7 +213,7 @@ async function resolveCliProgramArguments(params: {
// Dev mode: use bun to run TypeScript directly
const repoRoot = resolveRepoRootForDev();
const devCliPath = path.join(repoRoot, "src", "index.ts");
const devCliPath = path.join(repoRoot, "src", "entry.ts");
await fs.access(devCliPath);
// If already running under bun, use current execPath