@playdrop/playdrop-cli 0.12.13 → 0.12.14

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.12.8",
3
- "build": 5,
3
+ "build": 6,
4
4
  "runtimeSdkVersion": "0.12.5",
5
5
  "runtimeSdkBuild": 2,
6
6
  "clients": {
@@ -347,7 +347,14 @@ async function runLoggedProcess(input) {
347
347
  return;
348
348
  }
349
349
  const chunks = pendingTranscriptChunks.splice(0, pendingTranscriptChunks.length);
350
- await input.onTranscriptChunks(chunks);
350
+ try {
351
+ await input.onTranscriptChunks(chunks);
352
+ }
353
+ catch (error) {
354
+ // Transcript upload is telemetry, never task-critical: requeue in order and retry with the next flush.
355
+ pendingTranscriptChunks.unshift(...chunks);
356
+ console.error(`warning: transcript chunk upload failed, will retry with next flush: ${error instanceof Error ? error.message : String(error)}`);
357
+ }
351
358
  };
352
359
  const queueTranscriptFlush = () => {
353
360
  transcriptFlushPromise = transcriptFlushPromise.then(flushTranscriptChunks, flushTranscriptChunks);
@@ -416,6 +423,13 @@ async function runLoggedProcess(input) {
416
423
  }
417
424
  void (async () => {
418
425
  await queueTranscriptFlush();
426
+ if (pendingTranscriptChunks.length > 0) {
427
+ // Last flush failed: retry once, then drop with a warning. Missing transcript chunks never fail the task.
428
+ await flushTranscriptChunks();
429
+ }
430
+ if (pendingTranscriptChunks.length > 0) {
431
+ console.error(`warning: dropped ${pendingTranscriptChunks.length} transcript chunk(s) after final retry; transcript is telemetry, continuing`);
432
+ }
419
433
  if (transcriptFlushError) {
420
434
  throwLoggedProcessError(transcriptFlushError);
421
435
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.12.8",
3
- "build": 5,
3
+ "build": 6,
4
4
  "runtimeSdkVersion": "0.12.5",
5
5
  "runtimeSdkBuild": 2,
6
6
  "clients": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playdrop/playdrop-cli",
3
- "version": "0.12.13",
3
+ "version": "0.12.14",
4
4
  "description": "Official Playdrop CLI for publishing browser games, creator apps, and AI-generated game assets on playdrop.ai",
5
5
  "homepage": "https://www.playdrop.ai",
6
6
  "repository": {