chore(lint): biome import order
This commit is contained in:
@@ -7,8 +7,8 @@ import {
|
|||||||
note as clackNote,
|
note as clackNote,
|
||||||
outro as clackOutro,
|
outro as clackOutro,
|
||||||
select as clackSelect,
|
select as clackSelect,
|
||||||
spinner,
|
|
||||||
text as clackText,
|
text as clackText,
|
||||||
|
spinner,
|
||||||
} from "@clack/prompts";
|
} from "@clack/prompts";
|
||||||
import {
|
import {
|
||||||
loginOpenAICodex,
|
loginOpenAICodex,
|
||||||
@@ -38,12 +38,12 @@ import { buildServiceEnvironment } from "../daemon/service-env.js";
|
|||||||
import { ensureControlUiAssetsBuilt } from "../infra/control-ui-assets.js";
|
import { ensureControlUiAssetsBuilt } from "../infra/control-ui-assets.js";
|
||||||
import type { RuntimeEnv } from "../runtime.js";
|
import type { RuntimeEnv } from "../runtime.js";
|
||||||
import { defaultRuntime } from "../runtime.js";
|
import { defaultRuntime } from "../runtime.js";
|
||||||
import { theme } from "../terminal/theme.js";
|
|
||||||
import {
|
import {
|
||||||
stylePromptHint,
|
stylePromptHint,
|
||||||
stylePromptMessage,
|
stylePromptMessage,
|
||||||
stylePromptTitle,
|
stylePromptTitle,
|
||||||
} from "../terminal/prompt-style.js";
|
} from "../terminal/prompt-style.js";
|
||||||
|
import { theme } from "../terminal/theme.js";
|
||||||
import { resolveUserPath, sleep } from "../utils.js";
|
import { resolveUserPath, sleep } from "../utils.js";
|
||||||
import { createClackPrompter } from "../wizard/clack-prompter.js";
|
import { createClackPrompter } from "../wizard/clack-prompter.js";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ import {
|
|||||||
} from "../daemon/service-audit.js";
|
} from "../daemon/service-audit.js";
|
||||||
import { buildServiceEnvironment } from "../daemon/service-env.js";
|
import { buildServiceEnvironment } from "../daemon/service-env.js";
|
||||||
import type { RuntimeEnv } from "../runtime.js";
|
import type { RuntimeEnv } from "../runtime.js";
|
||||||
|
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
||||||
import {
|
import {
|
||||||
DEFAULT_GATEWAY_DAEMON_RUNTIME,
|
DEFAULT_GATEWAY_DAEMON_RUNTIME,
|
||||||
GATEWAY_DAEMON_RUNTIME_OPTIONS,
|
GATEWAY_DAEMON_RUNTIME_OPTIONS,
|
||||||
type GatewayDaemonRuntime,
|
type GatewayDaemonRuntime,
|
||||||
} from "./daemon-runtime.js";
|
} from "./daemon-runtime.js";
|
||||||
import type { DoctorOptions, DoctorPrompter } from "./doctor-prompter.js";
|
import type { DoctorOptions, DoctorPrompter } from "./doctor-prompter.js";
|
||||||
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
|
||||||
|
|
||||||
const note = (message: string, title?: string) =>
|
const note = (message: string, title?: string) =>
|
||||||
clackNote(message, stylePromptTitle(title));
|
clackNote(message, stylePromptTitle(title));
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
import { confirm, select } from "@clack/prompts";
|
import { confirm, select } from "@clack/prompts";
|
||||||
|
|
||||||
import type { RuntimeEnv } from "../runtime.js";
|
import type { RuntimeEnv } from "../runtime.js";
|
||||||
import { stylePromptHint, stylePromptMessage } from "../terminal/prompt-style.js";
|
import {
|
||||||
|
stylePromptHint,
|
||||||
|
stylePromptMessage,
|
||||||
|
} from "../terminal/prompt-style.js";
|
||||||
import { guardCancel } from "./onboard-helpers.js";
|
import { guardCancel } from "./onboard-helpers.js";
|
||||||
|
|
||||||
export type DoctorOptions = {
|
export type DoctorOptions = {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { note as clackNote } from "@clack/prompts";
|
import { note as clackNote } from "@clack/prompts";
|
||||||
|
|
||||||
import type { ClawdbotConfig } from "../config/config.js";
|
import type { ClawdbotConfig } from "../config/config.js";
|
||||||
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
|
||||||
import { readProviderAllowFromStore } from "../pairing/pairing-store.js";
|
import { readProviderAllowFromStore } from "../pairing/pairing-store.js";
|
||||||
import { readTelegramAllowFromStore } from "../telegram/pairing-store.js";
|
import { readTelegramAllowFromStore } from "../telegram/pairing-store.js";
|
||||||
import { resolveTelegramToken } from "../telegram/token.js";
|
import { resolveTelegramToken } from "../telegram/token.js";
|
||||||
|
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
||||||
import { normalizeE164 } from "../utils.js";
|
import { normalizeE164 } from "../utils.js";
|
||||||
|
|
||||||
const note = (message: string, title?: string) =>
|
const note = (message: string, title?: string) =>
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import {
|
|||||||
resolveSessionTranscriptsDirForAgent,
|
resolveSessionTranscriptsDirForAgent,
|
||||||
resolveStorePath,
|
resolveStorePath,
|
||||||
} from "../config/sessions.js";
|
} from "../config/sessions.js";
|
||||||
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
|
||||||
import { DEFAULT_AGENT_ID, normalizeAgentId } from "../routing/session-key.js";
|
import { DEFAULT_AGENT_ID, normalizeAgentId } from "../routing/session-key.js";
|
||||||
|
import { stylePromptTitle } from "../terminal/prompt-style.js";
|
||||||
|
|
||||||
const note = (message: string, title?: string) =>
|
const note = (message: string, title?: string) =>
|
||||||
clackNote(message, stylePromptTitle(title));
|
clackNote(message, stylePromptTitle(title));
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { intro as clackIntro, note as clackNote, outro as clackOutro } from "@clack/prompts";
|
import {
|
||||||
|
intro as clackIntro,
|
||||||
|
note as clackNote,
|
||||||
|
outro as clackOutro,
|
||||||
|
} from "@clack/prompts";
|
||||||
import { buildWorkspaceSkillStatus } from "../agents/skills-status.js";
|
import { buildWorkspaceSkillStatus } from "../agents/skills-status.js";
|
||||||
import type { ClawdbotConfig } from "../config/config.js";
|
import type { ClawdbotConfig } from "../config/config.js";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
cancel,
|
cancel,
|
||||||
isCancel,
|
|
||||||
multiselect as clackMultiselect,
|
multiselect as clackMultiselect,
|
||||||
|
isCancel,
|
||||||
} from "@clack/prompts";
|
} from "@clack/prompts";
|
||||||
import { resolveApiKeyForProvider } from "../../agents/model-auth.js";
|
import { resolveApiKeyForProvider } from "../../agents/model-auth.js";
|
||||||
import {
|
import {
|
||||||
@@ -288,7 +288,9 @@ export async function modelsScanCommand(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (isCancel(selection)) {
|
if (isCancel(selection)) {
|
||||||
cancel(stylePromptTitle("Model scan cancelled.") ?? "Model scan cancelled.");
|
cancel(
|
||||||
|
stylePromptTitle("Model scan cancelled.") ?? "Model scan cancelled.",
|
||||||
|
);
|
||||||
runtime.exit(0);
|
runtime.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ import {
|
|||||||
text,
|
text,
|
||||||
} from "@clack/prompts";
|
} from "@clack/prompts";
|
||||||
import { createCliProgress } from "../cli/progress.js";
|
import { createCliProgress } from "../cli/progress.js";
|
||||||
import { theme } from "../terminal/theme.js";
|
|
||||||
import {
|
import {
|
||||||
stylePromptHint,
|
stylePromptHint,
|
||||||
stylePromptMessage,
|
stylePromptMessage,
|
||||||
stylePromptTitle,
|
stylePromptTitle,
|
||||||
} from "../terminal/prompt-style.js";
|
} from "../terminal/prompt-style.js";
|
||||||
|
import { theme } from "../terminal/theme.js";
|
||||||
import type { WizardProgress, WizardPrompter } from "./prompts.js";
|
import type { WizardProgress, WizardPrompter } from "./prompts.js";
|
||||||
import { WizardCancelledError } from "./prompts.js";
|
import { WizardCancelledError } from "./prompts.js";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user