Files
cline-multi-mirror/src/core/controller/state/getAvailableTerminalProfiles.ts
T
Bee 06e0973c04 Apply biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports (#5545)
* 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
2025-08-19 11:57:50 -07:00

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 || "",
})),
})
}