hyperframes 0.6.102 → 0.6.104

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.
package/dist/cli.js CHANGED
@@ -55,7 +55,7 @@ var VERSION;
55
55
  var init_version = __esm({
56
56
  "src/version.ts"() {
57
57
  "use strict";
58
- VERSION = true ? "0.6.102" : "0.0.0-dev";
58
+ VERSION = true ? "0.6.104" : "0.0.0-dev";
59
59
  }
60
60
  });
61
61
 
@@ -64428,11 +64428,12 @@ function shouldTrack() {
64428
64428
  telemetryEnabled = config.telemetryEnabled;
64429
64429
  return telemetryEnabled;
64430
64430
  }
64431
- function trackEvent(event, properties = {}) {
64431
+ function trackEvent(event, properties = {}, distinctId) {
64432
64432
  if (!shouldTrack()) return;
64433
64433
  const sys = getSystemMeta();
64434
64434
  eventQueue.push({
64435
64435
  event,
64436
+ distinctId,
64436
64437
  properties: {
64437
64438
  ...properties,
64438
64439
  cli_version: VERSION,
@@ -64461,7 +64462,7 @@ function drainQueueToPayload() {
64461
64462
  const batch = eventQueue.map((e3) => ({
64462
64463
  event: e3.event,
64463
64464
  properties: { ...e3.properties, $ip: null },
64464
- distinct_id: config.anonymousId,
64465
+ distinct_id: e3.distinctId ?? config.anonymousId,
64465
64466
  timestamp: e3.timestamp
64466
64467
  }));
64467
64468
  eventQueue = [];
@@ -64595,58 +64596,66 @@ function trackCommand(command2) {
64595
64596
  trackEvent("cli_command", { command: command2 });
64596
64597
  }
64597
64598
  function trackRenderComplete(props) {
64598
- trackEvent("render_complete", {
64599
- duration_ms: props.durationMs,
64600
- fps: props.fps,
64601
- quality: props.quality,
64602
- workers: props.workers,
64603
- docker: props.docker,
64604
- gpu: props.gpu,
64605
- source: props.source ?? "cli",
64606
- composition_duration_ms: props.compositionDurationMs,
64607
- composition_width: props.compositionWidth,
64608
- composition_height: props.compositionHeight,
64609
- total_frames: props.totalFrames,
64610
- speed_ratio: props.speedRatio,
64611
- capture_avg_ms: props.captureAvgMs,
64612
- capture_peak_ms: props.capturePeakMs,
64613
- peak_memory_mb: props.peakMemoryMb,
64614
- memory_free_mb: props.memoryFreeMb,
64615
- tmp_peak_bytes: props.tmpPeakBytes,
64616
- stage_compile_ms: props.stageCompileMs,
64617
- stage_video_extract_ms: props.stageVideoExtractMs,
64618
- stage_audio_process_ms: props.stageAudioProcessMs,
64619
- stage_capture_ms: props.stageCaptureMs,
64620
- stage_encode_ms: props.stageEncodeMs,
64621
- stage_assemble_ms: props.stageAssembleMs,
64622
- extract_resolve_ms: props.extractResolveMs,
64623
- extract_hdr_probe_ms: props.extractHdrProbeMs,
64624
- extract_hdr_preflight_ms: props.extractHdrPreflightMs,
64625
- extract_hdr_preflight_count: props.extractHdrPreflightCount,
64626
- extract_vfr_probe_ms: props.extractVfrProbeMs,
64627
- extract_vfr_preflight_ms: props.extractVfrPreflightMs,
64628
- extract_vfr_preflight_count: props.extractVfrPreflightCount,
64629
- extract_phase3_ms: props.extractPhase3Ms,
64630
- extract_cache_hits: props.extractCacheHits,
64631
- extract_cache_misses: props.extractCacheMisses,
64632
- ...renderObservabilityEventProperties(props)
64633
- });
64599
+ trackEvent(
64600
+ "render_complete",
64601
+ {
64602
+ duration_ms: props.durationMs,
64603
+ fps: props.fps,
64604
+ quality: props.quality,
64605
+ workers: props.workers,
64606
+ docker: props.docker,
64607
+ gpu: props.gpu,
64608
+ source: props.source ?? "cli",
64609
+ composition_duration_ms: props.compositionDurationMs,
64610
+ composition_width: props.compositionWidth,
64611
+ composition_height: props.compositionHeight,
64612
+ total_frames: props.totalFrames,
64613
+ speed_ratio: props.speedRatio,
64614
+ capture_avg_ms: props.captureAvgMs,
64615
+ capture_peak_ms: props.capturePeakMs,
64616
+ peak_memory_mb: props.peakMemoryMb,
64617
+ memory_free_mb: props.memoryFreeMb,
64618
+ tmp_peak_bytes: props.tmpPeakBytes,
64619
+ stage_compile_ms: props.stageCompileMs,
64620
+ stage_video_extract_ms: props.stageVideoExtractMs,
64621
+ stage_audio_process_ms: props.stageAudioProcessMs,
64622
+ stage_capture_ms: props.stageCaptureMs,
64623
+ stage_encode_ms: props.stageEncodeMs,
64624
+ stage_assemble_ms: props.stageAssembleMs,
64625
+ extract_resolve_ms: props.extractResolveMs,
64626
+ extract_hdr_probe_ms: props.extractHdrProbeMs,
64627
+ extract_hdr_preflight_ms: props.extractHdrPreflightMs,
64628
+ extract_hdr_preflight_count: props.extractHdrPreflightCount,
64629
+ extract_vfr_probe_ms: props.extractVfrProbeMs,
64630
+ extract_vfr_preflight_ms: props.extractVfrPreflightMs,
64631
+ extract_vfr_preflight_count: props.extractVfrPreflightCount,
64632
+ extract_phase3_ms: props.extractPhase3Ms,
64633
+ extract_cache_hits: props.extractCacheHits,
64634
+ extract_cache_misses: props.extractCacheMisses,
64635
+ ...renderObservabilityEventProperties(props)
64636
+ },
64637
+ props.distinctId
64638
+ );
64634
64639
  }
64635
64640
  function trackRenderError(props) {
64636
- trackEvent("render_error", {
64637
- fps: props.fps,
64638
- quality: props.quality,
64639
- docker: props.docker,
64640
- workers: props.workers,
64641
- gpu: props.gpu,
64642
- source: props.source ?? "cli",
64643
- failed_stage: props.failedStage,
64644
- error_message: props.errorMessage ? redactTelemetryMessage(props.errorMessage) : void 0,
64645
- elapsed_ms: props.elapsedMs,
64646
- peak_memory_mb: props.peakMemoryMb,
64647
- memory_free_mb: props.memoryFreeMb,
64648
- ...renderObservabilityEventProperties(props)
64649
- });
64641
+ trackEvent(
64642
+ "render_error",
64643
+ {
64644
+ fps: props.fps,
64645
+ quality: props.quality,
64646
+ docker: props.docker,
64647
+ workers: props.workers,
64648
+ gpu: props.gpu,
64649
+ source: props.source ?? "cli",
64650
+ failed_stage: props.failedStage,
64651
+ error_message: props.errorMessage ? redactTelemetryMessage(props.errorMessage) : void 0,
64652
+ elapsed_ms: props.elapsedMs,
64653
+ peak_memory_mb: props.peakMemoryMb,
64654
+ memory_free_mb: props.memoryFreeMb,
64655
+ ...renderObservabilityEventProperties(props)
64656
+ },
64657
+ props.distinctId
64658
+ );
64650
64659
  }
64651
64660
  function trackRenderObservation(props) {
64652
64661
  trackEvent("render_observation", {
@@ -69308,6 +69317,7 @@ function emitStudioRenderError(opts, elapsedMs, failedStage, err, job) {
69308
69317
  failedStage,
69309
69318
  errorMessage: err instanceof Error ? err.message : String(err),
69310
69319
  elapsedMs,
69320
+ distinctId: opts.distinctId,
69311
69321
  ...renderJobObservabilityTelemetryPayload(job),
69312
69322
  ...memSnapshot()
69313
69323
  });
@@ -69320,6 +69330,7 @@ function emitStudioRenderComplete(opts, elapsedMs, perf) {
69320
69330
  docker: false,
69321
69331
  gpu: false,
69322
69332
  source: "studio",
69333
+ distinctId: opts.distinctId,
69323
69334
  ...perfPayload(perf, elapsedMs),
69324
69335
  ...memSnapshot()
69325
69336
  });
@@ -82217,7 +82228,8 @@ function registerRenderRoutes(api, adapter2) {
82217
82228
  quality,
82218
82229
  jobId,
82219
82230
  outputResolution,
82220
- composition
82231
+ composition,
82232
+ distinctId: typeof body.telemetryDistinctId === "string" ? body.telemetryDistinctId : void 0
82221
82233
  });
82222
82234
  jobState.createdAt = Date.now();
82223
82235
  renderJobs.set(jobId, jobState);