






















@@ -4215,6 +4215,7 @@ describe("google-meet plugin", () => {
42154215.mockReturnValueOnce(outputProcess)
42164216.mockReturnValueOnce(inputProcess)
42174217.mockReturnValueOnce(replacementOutputProcess);
4218+const fullConfig = { models: { providers: {} } } as never;
42184219const sessionStore: Record<string, unknown> = {};
42194220const runtime = {
42204221agent: {
@@ -4240,7 +4241,7 @@ describe("google-meet plugin", () => {
42404241config: resolveGoogleMeetConfig({
42414242realtime: { strategy: "bidi", provider: "openai", model: "gpt-realtime", agentId: "jay" },
42424243}),
4243-fullConfig: {} as never,
4244+ fullConfig,
42444245runtime: runtime as never,
42454246meetingSessionId: "meet-1",
42464247inputCommand: ["capture-meet"],
@@ -4253,6 +4254,7 @@ describe("google-meet plugin", () => {
42534254expect(noopLogger.info).toHaveBeenCalledWith(
42544255"[google-meet] realtime voice bridge starting: strategy=bidi provider=openai model=gpt-realtime audioFormat=pcm16-24khz",
42554256);
4257+expect(callbacks?.cfg).toBe(fullConfig);
42564258inputStdout.write(Buffer.from([1, 2, 3]));
42574259callbacks?.onAudio(Buffer.from([4, 5]));
42584260callbacks?.onMark?.("mark-1");
@@ -4689,6 +4691,7 @@ describe("google-meet plugin", () => {
46894691},
46904692};
46914693let pullCount = 0;
4694+const fullConfig = { models: { providers: {} } } as never;
46924695const sessionStore: Record<string, unknown> = {};
46934696const runtime = {
46944697nodes: {
@@ -4727,7 +4730,7 @@ describe("google-meet plugin", () => {
47274730config: resolveGoogleMeetConfig({
47284731realtime: { strategy: "bidi", provider: "openai", model: "gpt-realtime" },
47294732}),
4730-fullConfig: {} as never,
4733+ fullConfig,
47314734runtime: runtime as never,
47324735meetingSessionId: "meet-1",
47334736nodeId: "node-1",
@@ -4739,6 +4742,7 @@ describe("google-meet plugin", () => {
47394742expect(noopLogger.info).toHaveBeenCalledWith(
47404743"[google-meet] realtime voice bridge starting: strategy=bidi provider=openai model=gpt-realtime audioFormat=pcm16-24khz",
47414744);
4745+expect(callbacks?.cfg).toBe(fullConfig);
47424746callbacks?.onAudio(Buffer.from([1, 2, 3]));
47434747callbacks?.onClearAudio();
47444748callbacks?.onReady?.();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。