Files
openclaw/src/transcripts/source-locator.test.ts
T
Peter Steinberger 129f86bbf5 feat: auto-collect durable meeting transcripts (#113122)
* 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
2026-07-23 11:41:08 -07:00

17 lines
643 B
TypeScript

import { describe, expect, it } from "vitest";
import { sanitizeTranscriptSourceLocator } from "./source-locator.js";
describe("sanitizeTranscriptSourceLocator", () => {
it("removes meeting invitation credentials and drops invalid locators", () => {
expect(
sanitizeTranscriptSourceLocator({
providerId: "zoom",
meetingUrl: "https://zoom.us/j/123?context=opaque-value#fragment",
}),
).toEqual({ providerId: "zoom", meetingUrl: "https://zoom.us/j/123" });
expect(
sanitizeTranscriptSourceLocator({ providerId: "zoom", meetingUrl: "not a URL" }),
).toEqual({ providerId: "zoom" });
});
});