mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-17 16:12:21 -06:00
129f86bbf5
* 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
18 lines
538 B
TypeScript
18 lines
538 B
TypeScript
import type { TranscriptSourceLocator } from "./provider-types.js";
|
|
|
|
/** Strip invitation credentials from meeting locators before persistence/provider handoff. */
|
|
export function sanitizeTranscriptSourceLocator(
|
|
source: TranscriptSourceLocator,
|
|
): TranscriptSourceLocator {
|
|
if (!source.meetingUrl) {
|
|
return source;
|
|
}
|
|
const { meetingUrl: _meetingUrl, ...rest } = source;
|
|
try {
|
|
const url = new URL(source.meetingUrl);
|
|
return { ...rest, meetingUrl: `${url.origin}${url.pathname}` };
|
|
} catch {
|
|
return rest;
|
|
}
|
|
}
|