


























@@ -51,6 +51,7 @@ type ResolveSpaceOptions = {
5151type MeetArtifactOptions = ResolveSpaceOptions & {
5252conferenceRecord?: string;
5353pageSize?: string;
54+transcriptEntries?: boolean;
5455};
55565657type SetupOptions = {
@@ -429,6 +430,7 @@ function resolveArtifactTokenOptions(
429430accessToken?: string;
430431expiresAt?: number;
431432pageSize?: number;
433+includeTranscriptEntries?: boolean;
432434} {
433435const meeting = options.meeting?.trim() || config.defaults.meeting;
434436const conferenceRecord = options.conferenceRecord?.trim();
@@ -446,6 +448,7 @@ function resolveArtifactTokenOptions(
446448accessToken: options.accessToken?.trim() || config.oauth.accessToken,
447449expiresAt: parseOptionalNumber(options.expiresAt) ?? config.oauth.expiresAt,
448450pageSize: parseOptionalNumber(options.pageSize),
451+includeTranscriptEntries: options.transcriptEntries !== false,
449452};
450453}
451454@@ -474,6 +477,10 @@ function writeArtifactsSummary(result: GoogleMeetArtifactsResult): void {
474477writeStdoutLine("participants: %d", entry.participants.length);
475478writeStdoutLine("recordings: %d", entry.recordings.length);
476479writeStdoutLine("transcripts: %d", entry.transcripts.length);
480+writeStdoutLine(
481+"transcript entries: %d",
482+entry.transcriptEntries.reduce((count, transcript) => count + transcript.entries.length, 0),
483+);
477484writeStdoutLine("smart notes: %d", entry.smartNotes.length);
478485if (entry.smartNotesError) {
479486writeStdoutLine("smart notes warning: %s", entry.smartNotesError);
@@ -484,6 +491,15 @@ function writeArtifactsSummary(result: GoogleMeetArtifactsResult): void {
484491for (const transcript of entry.transcripts) {
485492writeStdoutLine("- transcript: %s", transcript.name);
486493}
494+for (const transcriptEntries of entry.transcriptEntries) {
495+if (transcriptEntries.entriesError) {
496+writeStdoutLine(
497+"- transcript entries warning: %s: %s",
498+transcriptEntries.transcript,
499+transcriptEntries.entriesError,
500+);
501+}
502+}
487503for (const smartNote of entry.smartNotes) {
488504writeStdoutLine("- smart note: %s", smartNote.name);
489505}
@@ -840,6 +856,7 @@ export function registerGoogleMeetCli(params: {
840856.option("--client-secret <secret>", "OAuth client secret override")
841857.option("--expires-at <ms>", "Cached access token expiry as unix epoch milliseconds")
842858.option("--page-size <n>", "Max resources per Meet API page")
859+.option("--no-transcript-entries", "Skip structured transcript entry lookup")
843860.option("--json", "Print JSON output", false)
844861.action(async (options: MeetArtifactOptions) => {
845862const resolved = resolveArtifactTokenOptions(params.config, options);
@@ -849,6 +866,7 @@ export function registerGoogleMeetCli(params: {
849866meeting: resolved.meeting,
850867conferenceRecord: resolved.conferenceRecord,
851868pageSize: resolved.pageSize,
869+includeTranscriptEntries: resolved.includeTranscriptEntries,
852870});
853871if (options.json) {
854872writeStdoutJson({
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。