@redaksjon/protokoll 1.0.32 → 1.1.0-dev.20260424191257.be12fb7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,7 +208,7 @@ function isProtokolUri(uri) {
208
208
  return uri.startsWith(`${SCHEME}://`);
209
209
  }
210
210
 
211
- const VERSION = "1.0.32 (HEAD/e2c7313 T:v1.0.32 2026-04-15 06:48:32 -0700) linux arm64 v24.14.1";
211
+ const VERSION = "1.1.0-dev.20260424191257.be12fb7 (working/be12fb7 2026-04-24 19:12:35 +0000) linux arm64 v24.15.0";
212
212
  const PROGRAM_NAME = "protokoll";
213
213
  const DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS = "YYYY-M-D-HHmmss";
214
214
  const DEFAULT_AUDIO_EXTENSIONS = ["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm", "qta"];
@@ -7411,6 +7411,46 @@ async function handleListTranscripts(args) {
7411
7411
  if (outputStorage.name !== "gcs" && !await fileExists(directory)) {
7412
7412
  throw new Error(`Directory not found: ${directory}`);
7413
7413
  }
7414
+ if (outputStorage.name === "gcs") {
7415
+ const indexResult = await listTranscriptsViaIndex({
7416
+ outputStorage,
7417
+ outputDirectory: directory,
7418
+ startDate: args.startDate,
7419
+ endDate: args.endDate,
7420
+ projectId: args.entityType === "project" ? args.entityId : void 0,
7421
+ limit: args.limit ?? 50,
7422
+ offset: args.offset ?? 0
7423
+ });
7424
+ return {
7425
+ directory: await sanitizePath(directory, await getConfiguredDirectory("outputDirectory", args.contextDirectory)) || ".",
7426
+ transcripts: indexResult.transcripts.map((t) => ({
7427
+ path: t.path,
7428
+ relativePath: t.path,
7429
+ title: t.title,
7430
+ date: t.date,
7431
+ project: null,
7432
+ tags: void 0,
7433
+ status: t.status,
7434
+ duration: null,
7435
+ contentPreview: void 0
7436
+ })),
7437
+ pagination: {
7438
+ total: indexResult.total,
7439
+ limit: args.limit ?? 50,
7440
+ offset: args.offset ?? 0,
7441
+ hasMore: indexResult.hasMore,
7442
+ nextOffset: indexResult.hasMore ? (args.offset ?? 0) + (args.limit ?? 50) : null
7443
+ },
7444
+ filters: {
7445
+ sortBy: args.sortBy ?? "date",
7446
+ startDate: args.startDate,
7447
+ endDate: args.endDate,
7448
+ search: args.search,
7449
+ entityId: args.entityId,
7450
+ entityType: args.entityType
7451
+ }
7452
+ };
7453
+ }
7414
7454
  const result = await listTranscripts$1({
7415
7455
  directory,
7416
7456
  limit: args.limit ?? 50,