Skip to content

Instantly share code, notes, and snippets.

View lancegoyke's full-sized avatar

Lance Goyke lancegoyke

View GitHub Profile
diff --git a/assets/js/conversations/layouts/speakerBureauUI.ts b/assets/js/conversations/layouts/speakerBureauUI.ts
index 1dbfef1..7a2af63 100644
--- a/assets/js/conversations/layouts/speakerBureauUI.ts
+++ b/assets/js/conversations/layouts/speakerBureauUI.ts
@@ -4,6 +4,7 @@ import InstructionsBox from "../components/instructionsBox";
import PresentationManager from "../presentationManager";
import { CONVERSATION_EVENTS, TranscriptionEvent, SlideChangeEvent } from "../events";
import { getElementOrThrow } from "../utils";
+import { PresentationManagerFactory } from "../presentationManagerFactory";
@lancegoyke
lancegoyke / audioRecorder.test.ts
Last active February 21, 2025 17:02
The updated version of tests for the audio recorder
import { beforeEach, describe, expect, test } from "bun:test";
import { DummyRecorder } from "../../../conversations/components/recorders/dummyRecorder";
import { MutedLogger } from "../../../logging/mutedLogger";
import { DummyAudioStreamProvider } from "../../../conversations/components/media/dummyAudioStreamProvider";
import {
AudioRecorder,
AudioRecorderConfig,
} from "../../../conversations/components/audioRecorder";
import { TranscriptionService } from "../../../transcriptions";
import { DummyRecorderUIManager } from "../../../conversations/components/recorders/dummyRecorderUIManager";
@lancegoyke
lancegoyke / audioRecorder.test.ts
Last active February 21, 2025 17:01
The original version testing my audio recorder
import { beforeEach, describe, expect, mock, it, spyOn, afterEach } from "bun:test";
import { AudioRecorder } from "../../../conversations/components/audioRecorder";
import { UserMediaManager } from "../../../conversations/components/userMediaManager";
import { TranscriptionService } from "../../../transcriptions";
import { CONVERSATION_EVENTS } from "../../../conversations/events";
import { MutedLogger } from "../../../logging/mutedLogger";
import { MockWsClient } from "./mockWsClient";
import { transcriptionHandlers } from "../../../transcriptions";
import { SyncRecorder } from "../../../conversations/components/recorders/syncRecorder";
import { AsyncRecorder } from "../../../conversations/components/recorders/asyncRecorder";
@lancegoyke
lancegoyke / asyncRecorder.ts
Last active February 21, 2025 17:02
Old modules for the recorder property in my audio recorder
import { BaseRecorder } from "./baseRecorder";
import { ILogger } from "../../../logging/types";
import { AsyncAPIWSClient, IAsyncAPIWSClient } from "../../../websockets";
import {
TranscriptionService,
TranscriptionServiceConfig,
transcriptionHandlers,
} from "../../../transcriptions";
import { getDeepgramLanguageCode } from "../../../languages";
import { RecorderState } from "./baseRecorder";
@lancegoyke
lancegoyke / asyncRecorder.ts
Last active February 21, 2025 17:03
New modules for the recorder property in my audio recorder
import { IRecorder, RecorderState } from "./types";
import { ILogger } from "../../../logging/types";
import {
TranscriptionService,
TranscriptionServiceConfig,
transcriptionHandlers,
} from "../../../transcriptions";
import { AsyncAPIWSClient, IAsyncAPIWSClient } from "../../../websockets";
import { getDeepgramLanguageCode } from "../../../languages";

name: pr-moved-code-detector description: Use this agent when reviewing pull requests to identify code that has been moved without significant changes, making it harder to spot actual modifications. This agent should be invoked:\n\n- After completing work on a feature branch before creating a pull request\n- When reviewing a pull request that appears to have large diffs\n- Before requesting code review from team members\n- When you notice large blocks of moved code mixed with actual changes\n\nExamples:\n\n\nContext: User has just finished refactoring a module and is preparing to create a pull request.\nuser: "I've finished refactoring the authentication module. Can you help me prepare this for review?"\nassistant: "I'll use the pr-moved-code-detector agent to analyze the changes and identify any code that was simply moved versus actually modified."\n\n\n\n\nContext: User is about to commit changes that involved reorganizing