hyperframes 0.6.102 → 0.6.103
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 +66 -54
- package/dist/studio/assets/{index-BZKngETE.js → index-CdjhNZK1.js} +1 -1
- package/dist/studio/assets/{index-C0vMHtMH.js → index-nCLBVKzI.js} +1 -1
- package/dist/studio/assets/{index-BzjItfjX.js → index-woy2HyV8.js} +60 -60
- package/dist/studio/index.html +1 -1
- package/package.json +1 -1
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.
|
|
58
|
+
VERSION = true ? "0.6.103" : "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(
|
|
64599
|
-
|
|
64600
|
-
|
|
64601
|
-
|
|
64602
|
-
|
|
64603
|
-
|
|
64604
|
-
|
|
64605
|
-
|
|
64606
|
-
|
|
64607
|
-
|
|
64608
|
-
|
|
64609
|
-
|
|
64610
|
-
|
|
64611
|
-
|
|
64612
|
-
|
|
64613
|
-
|
|
64614
|
-
|
|
64615
|
-
|
|
64616
|
-
|
|
64617
|
-
|
|
64618
|
-
|
|
64619
|
-
|
|
64620
|
-
|
|
64621
|
-
|
|
64622
|
-
|
|
64623
|
-
|
|
64624
|
-
|
|
64625
|
-
|
|
64626
|
-
|
|
64627
|
-
|
|
64628
|
-
|
|
64629
|
-
|
|
64630
|
-
|
|
64631
|
-
|
|
64632
|
-
|
|
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(
|
|
64637
|
-
|
|
64638
|
-
|
|
64639
|
-
|
|
64640
|
-
|
|
64641
|
-
|
|
64642
|
-
|
|
64643
|
-
|
|
64644
|
-
|
|
64645
|
-
|
|
64646
|
-
|
|
64647
|
-
|
|
64648
|
-
|
|
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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as P}from"./index-
|
|
1
|
+
import{g as P}from"./index-woy2HyV8.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var g=e[o+x]-t,_=r.some(function(h){if(h.interval===g)return h.count+=1});_||r.push({interval:g,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};
|