chore: Introduce Qodana static analysis configuration and apply minor code formatting and C# 12 collection expressions.
This commit is contained in:
@@ -64,25 +64,25 @@ public static class DaemonService
|
||||
llmClient = new OpenAiCompatibleClient(config.GroqApiKey, "https://api.groq.com/openai/v1/", config.ReasoningEffort);
|
||||
}
|
||||
|
||||
IAudioRecorder recorder = config.AudioBackend == "ffmpeg"
|
||||
? new FfmpegAudioRecorder(stateTracker, notifications)
|
||||
IAudioRecorder recorder = config.AudioBackend == "ffmpeg"
|
||||
? new FfmpegAudioRecorder(stateTracker, notifications)
|
||||
: new AudioRecorder(stateTracker, notifications);
|
||||
|
||||
var orchestrator = new TranscriptionOrchestrator(
|
||||
speechClient,
|
||||
llmClient,
|
||||
configManager,
|
||||
recorder,
|
||||
notifications,
|
||||
new TextInjector(notifications),
|
||||
new HistoryManager(),
|
||||
new ClipboardManager(notifications),
|
||||
speechClient,
|
||||
llmClient,
|
||||
configManager,
|
||||
recorder,
|
||||
notifications,
|
||||
new TextInjector(notifications),
|
||||
new HistoryManager(),
|
||||
new ClipboardManager(notifications),
|
||||
stateTracker
|
||||
);
|
||||
|
||||
using var socket = new Socket(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
|
||||
var endPoint = new UnixDomainSocketEndPoint(socketPath);
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
socket.Bind(endPoint);
|
||||
@@ -145,7 +145,7 @@ public static class DaemonService
|
||||
bool json = pipeToStdout; // buffer[1] == 1 is json
|
||||
bool isRecording = stateTracker.IsRecording();
|
||||
string stateStr = isRecording ? "Recording" : "Idle";
|
||||
|
||||
|
||||
if (json)
|
||||
{
|
||||
var start = stateTracker.GetRecordingStartTime();
|
||||
|
||||
Reference in New Issue
Block a user