Files
openclaw/src/transcripts/source-locator.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

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;
}
}