* Enable biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports * Apply new rules with format * remove unused currentReplaceContent * update nextTerminalId * fix all format issues * update biome config * add back applyContextOptimizations and killAllChromeBrowsers
20 lines
601 B
TypeScript
20 lines
601 B
TypeScript
import * as proto from "@/shared/proto"
|
|
import { getAvailableTerminalProfiles as getTerminalProfilesFromShell } from "../../../utils/shell"
|
|
import { Controller } from "../index"
|
|
|
|
export async function getAvailableTerminalProfiles(
|
|
_controller: Controller,
|
|
_request: proto.cline.EmptyRequest,
|
|
): Promise<proto.cline.TerminalProfiles> {
|
|
const profiles = getTerminalProfilesFromShell()
|
|
|
|
return proto.cline.TerminalProfiles.create({
|
|
profiles: profiles.map((profile) => ({
|
|
id: profile.id,
|
|
name: profile.name,
|
|
path: profile.path || "",
|
|
description: profile.description || "",
|
|
})),
|
|
})
|
|
}
|