chore: format

This commit is contained in:
Nate 2025-08-09 11:57:35 -04:00
parent 5647a850a7
commit 227c81ec31
4 changed files with 11 additions and 11 deletions

View file

@ -764,7 +764,7 @@ export async function hasMultipleOrganizations(): Promise<boolean> {
export function logout(): void {
const onboardingFlagPath = path.join(
env.continueHome,
".onboarding_complete"
".onboarding_complete",
);
// Remove onboarding completion flag so user will go through onboarding again

View file

@ -131,9 +131,11 @@ export async function runNormalFlow(
if (configPath !== undefined) {
// Empty string is invalid and should be treated as an error
if (configPath === "") {
throw new Error(`Failed to load config from "": Config path cannot be empty`);
throw new Error(
`Failed to load config from "": Config path cannot be empty`,
);
}
try {
const result = await initialize(authConfig, configPath);
// Inject rules into the config if provided
@ -197,9 +199,7 @@ export async function runNormalFlow(
}
export async function isFirstTime(): Promise<boolean> {
return !fs.existsSync(
path.join(env.continueHome, ".onboarding_complete")
);
return !fs.existsSync(path.join(env.continueHome, ".onboarding_complete"));
}
export async function markOnboardingComplete(): Promise<void> {

View file

@ -11,7 +11,7 @@ import { PermissionPolicy, ToolPermissionPolicy } from "./types.js";
export const PERMISSIONS_YAML_PATH = path.join(
env.continueHome,
"permissions.yaml"
"permissions.yaml",
);
export interface PermissionsYamlConfig {

View file

@ -1,9 +1,9 @@
import fs from 'fs';
import path from 'path';
import fs from "fs";
import path from "path";
import { env } from '../env.js';
import { env } from "../env.js";
const HISTORY_FILE = path.join(env.continueHome, 'input_history.json');
const HISTORY_FILE = path.join(env.continueHome, "input_history.json");
const MAX_HISTORY_SIZE = 1000;
export interface InputHistoryEntry {