cli: add quickstart onboarding flow and config-scoped jwt env handling

This commit is contained in:
Dotta
2026-03-03 10:24:34 -06:00
parent 5c07bdafc5
commit 3248974435
9 changed files with 277 additions and 115 deletions

View File

@@ -110,8 +110,8 @@ export async function envCommand(opts: { config?: string }): Promise<void> {
}
function collectDeploymentEnvRows(config: PaperclipConfig | null, configPath: string): EnvVarRow[] {
const agentJwtEnvFile = resolveAgentJwtEnvFile();
const jwtEnv = readAgentJwtSecretFromEnv();
const agentJwtEnvFile = resolveAgentJwtEnvFile(configPath);
const jwtEnv = readAgentJwtSecretFromEnv(configPath);
const jwtFile = jwtEnv ? null : readAgentJwtSecretFromEnvFile(agentJwtEnvFile);
const jwtSource = jwtEnv ? "env" : jwtFile ? "file" : "missing";