chore: format
This commit is contained in:
parent
5647a850a7
commit
227c81ec31
4 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue