mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 09:41:37 +00:00
* feat(meetings): auto-collect durable transcripts * chore(plugin-sdk): refresh meeting transcript API baseline * fix(plugin-sdk): keep meeting transcript options implicit * fix(meetings): satisfy transcript bridge typecheck * fix(google-meet): preserve optional caption policy context * fix(google-meet): retain caption mode callback type * refactor(meetings): split transcript lifecycle helpers * chore(plugin-sdk): refresh split meeting runtime baseline * refactor(google-meet): split session helpers * fix(meetings): decouple transcript retries from leave * fix(meetings): isolate provider subscribers * fix(meetings): harden capture lifecycle * fix(meetings): preserve capture during storage outages * fix(meetings): preserve pending transcript ordering * fix(meetings): retry capture initialization * test(agents): reflect default transcript registration
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api";
|
|
import type { TranscriptSourceProvider } from "openclaw/plugin-sdk/transcripts";
|
|
import { describe, expect, it } from "vitest";
|
|
import plugin from "./index.js";
|
|
|
|
describe("Google Meet transcript source registration", () => {
|
|
it("registers the canonical provider and aliases", () => {
|
|
const providers: TranscriptSourceProvider[] = [];
|
|
const api = createTestPluginApi({
|
|
id: "google-meet",
|
|
name: "Google Meet",
|
|
description: "test",
|
|
version: "0",
|
|
source: "test",
|
|
config: {},
|
|
pluginConfig: {},
|
|
runtime: {} as OpenClawPluginApi["runtime"],
|
|
registerTranscriptSourceProvider: (provider) => providers.push(provider),
|
|
});
|
|
|
|
plugin.register(api);
|
|
|
|
expect(providers).toEqual([
|
|
expect.objectContaining({
|
|
id: "google-meet",
|
|
aliases: ["googlemeet", "meet"],
|
|
sourceKinds: ["live-caption"],
|
|
}),
|
|
]);
|
|
});
|
|
});
|