@hyperframes/producer 0.8.195 → 0.8.196
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/distributed.js
CHANGED
|
@@ -2022,6 +2022,7 @@ var Semaphore = class {
|
|
|
2022
2022
|
constructor(maxConcurrent) {
|
|
2023
2023
|
this.maxConcurrent = maxConcurrent;
|
|
2024
2024
|
}
|
|
2025
|
+
maxConcurrent;
|
|
2025
2026
|
queue = [];
|
|
2026
2027
|
active = 0;
|
|
2027
2028
|
async acquire() {
|
|
@@ -4765,6 +4766,10 @@ var VideoExtractionStageError = class extends Error {
|
|
|
4765
4766
|
this.name = "VideoExtractionStageError";
|
|
4766
4767
|
this.publicMetadata = { extractionFailure };
|
|
4767
4768
|
}
|
|
4769
|
+
code;
|
|
4770
|
+
retryable;
|
|
4771
|
+
failures;
|
|
4772
|
+
extractionFailure;
|
|
4768
4773
|
/**
|
|
4769
4774
|
* Producer servers may expose this explicitly public, JSON-compatible data
|
|
4770
4775
|
* without knowing its schema. Boundary adapters remain responsible for
|
|
@@ -6434,6 +6439,7 @@ var RenderQualityError = class extends Error {
|
|
|
6434
6439
|
this.warnings = warnings;
|
|
6435
6440
|
this.name = "RenderQualityError";
|
|
6436
6441
|
}
|
|
6442
|
+
warnings;
|
|
6437
6443
|
};
|
|
6438
6444
|
function applyRenderWarningPolicy(job, captureWarnings, log = defaultLogger) {
|
|
6439
6445
|
job.warnings ??= [];
|
|
@@ -10527,6 +10533,7 @@ var MixedCaptureModesError = class extends Error {
|
|
|
10527
10533
|
this.modes = modes;
|
|
10528
10534
|
this.name = "MixedCaptureModesError";
|
|
10529
10535
|
}
|
|
10536
|
+
modes;
|
|
10530
10537
|
};
|
|
10531
10538
|
function observedChunkCaptureMode(perfs) {
|
|
10532
10539
|
const modes = [...new Set(perfs.map((perf) => perf.captureMode))];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.1.0",
|
|
3
3
|
"buildId": "dev",
|
|
4
|
-
"sha256": "
|
|
4
|
+
"sha256": "76ecb9a94777082e1cb85f468f089ade395649a08149ad8a6795fa3ff6062cc8",
|
|
5
5
|
"artifacts": {
|
|
6
6
|
"iife": "hyperframe.runtime.iife.js",
|
|
7
7
|
"esm": "hyperframe.runtime.mjs"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var kw=Object.create;var Jl=Object.defineProperty;var Lw=Object.getOwnPropertyDescriptor;var Nw=Object.getOwnPropertyNames;var Fw=Object.getPrototypeOf,Dw=Object.prototype.hasOwnProperty;var Iw=(e,t,n)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ye=(e,t)=>()=>
|
|
1
|
+
"use strict";(()=>{var kw=Object.create;var Jl=Object.defineProperty;var Lw=Object.getOwnPropertyDescriptor;var Nw=Object.getOwnPropertyNames;var Fw=Object.getPrototypeOf,Dw=Object.prototype.hasOwnProperty;var Iw=(e,t,n)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ye=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}};var Pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nw(t))!Dw.call(e,o)&&o!==n&&Jl(e,o,{get:()=>t[o],enumerable:!(r=Lw(t,o))||r.enumerable});return e};var Ow=(e,t,n)=>(n=e!=null?kw(Fw(e)):{},Pw(t||!e||!e.__esModule?Jl(n,"default",{value:e,enumerable:!0}):n,e));var pe=(e,t,n)=>Iw(e,typeof t!="symbol"?t+"":t,n);var mb=ye((VB,Fc)=>{var de=String,fb=function(){return{isColorSupported:!1,reset:de,bold:de,dim:de,italic:de,underline:de,inverse:de,hidden:de,strikethrough:de,black:de,red:de,green:de,yellow:de,blue:de,magenta:de,cyan:de,white:de,gray:de,bgBlack:de,bgRed:de,bgGreen:de,bgYellow:de,bgBlue:de,bgMagenta:de,bgCyan:de,bgWhite:de,blackBright:de,redBright:de,greenBright:de,yellowBright:de,blueBright:de,magentaBright:de,cyanBright:de,whiteBright:de,bgBlackBright:de,bgRedBright:de,bgGreenBright:de,bgYellowBright:de,bgBlueBright:de,bgMagentaBright:de,bgCyanBright:de,bgWhiteBright:de}};Fc.exports=fb();Fc.exports.createColors=fb});var Dc=ye(()=>{});var gs=ye((zB,gb)=>{"use strict";var pb=mb(),hb=Dc(),ni=class e extends Error{constructor(t,n,r,o,i,a){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),o&&(this.source=o),a&&(this.plugin=a),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=pb.isColorSupported);let r=d=>d,o=d=>d,i=d=>d;if(t){let{bold:d,gray:f,red:m}=pb.createColors(!0);o=p=>d(m(p)),r=p=>f(p),hb&&(i=p=>hb(p))}let a=n.split(/\r?\n/),l=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),c=String(s).length;return a.slice(l,s).map((d,f)=>{let m=l+1+f,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(d.length>160){let x=20,y=Math.max(0,this.column-x),v=Math.max(this.column+x,this.endColumn+x),E=d.slice(y,v),w=r(p.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return o(">")+r(p)+i(E)+`
|
|
2
2
|
`+w+o("^")}let b=r(p.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+r(p)+i(d)+`
|
|
3
3
|
`+b+o("^")}return" "+r(p)+i(d)}).join(`
|
|
4
4
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
package/dist/index.js
CHANGED
|
@@ -1248,6 +1248,8 @@ var OrderedRenderEventPublisher = class {
|
|
|
1248
1248
|
this.sink = sink;
|
|
1249
1249
|
this.log = log;
|
|
1250
1250
|
}
|
|
1251
|
+
sink;
|
|
1252
|
+
log;
|
|
1251
1253
|
tail = Promise.resolve();
|
|
1252
1254
|
publish(job, message) {
|
|
1253
1255
|
if (!this.sink) return;
|
|
@@ -1598,6 +1600,9 @@ var ArtifactTransaction = class {
|
|
|
1598
1600
|
this.backupPath = join5(this.transactionDirectory, TRANSACTION_BACKUP);
|
|
1599
1601
|
this.durationProbe = durationProbe;
|
|
1600
1602
|
}
|
|
1603
|
+
kind;
|
|
1604
|
+
fileSystem;
|
|
1605
|
+
logger;
|
|
1601
1606
|
destinationPath;
|
|
1602
1607
|
stagingPath;
|
|
1603
1608
|
transactionDirectory;
|
|
@@ -4987,6 +4992,7 @@ var RenderObservabilityRecorder = class {
|
|
|
4987
4992
|
constructor(input) {
|
|
4988
4993
|
this.input = input;
|
|
4989
4994
|
}
|
|
4995
|
+
input;
|
|
4990
4996
|
events = [];
|
|
4991
4997
|
eventCount = 0;
|
|
4992
4998
|
failedPhase;
|
|
@@ -5799,6 +5805,7 @@ var Semaphore = class {
|
|
|
5799
5805
|
constructor(maxConcurrent) {
|
|
5800
5806
|
this.maxConcurrent = maxConcurrent;
|
|
5801
5807
|
}
|
|
5808
|
+
maxConcurrent;
|
|
5802
5809
|
queue = [];
|
|
5803
5810
|
active = 0;
|
|
5804
5811
|
async acquire() {
|
|
@@ -8542,6 +8549,10 @@ var VideoExtractionStageError = class extends Error {
|
|
|
8542
8549
|
this.name = "VideoExtractionStageError";
|
|
8543
8550
|
this.publicMetadata = { extractionFailure };
|
|
8544
8551
|
}
|
|
8552
|
+
code;
|
|
8553
|
+
retryable;
|
|
8554
|
+
failures;
|
|
8555
|
+
extractionFailure;
|
|
8545
8556
|
/**
|
|
8546
8557
|
* Producer servers may expose this explicitly public, JSON-compatible data
|
|
8547
8558
|
* without knowing its schema. Boundary adapters remain responsible for
|
|
@@ -11318,6 +11329,7 @@ var RenderQualityError = class extends Error {
|
|
|
11318
11329
|
this.warnings = warnings;
|
|
11319
11330
|
this.name = "RenderQualityError";
|
|
11320
11331
|
}
|
|
11332
|
+
warnings;
|
|
11321
11333
|
};
|
|
11322
11334
|
function applyRenderWarningPolicy(job, captureWarnings, log = defaultLogger) {
|
|
11323
11335
|
job.warnings ??= [];
|
|
@@ -19150,6 +19162,7 @@ var MixedCaptureModesError = class extends Error {
|
|
|
19150
19162
|
this.modes = modes;
|
|
19151
19163
|
this.name = "MixedCaptureModesError";
|
|
19152
19164
|
}
|
|
19165
|
+
modes;
|
|
19153
19166
|
};
|
|
19154
19167
|
function observedChunkCaptureMode(perfs) {
|
|
19155
19168
|
const modes = [...new Set(perfs.map((perf) => perf.captureMode))];
|
package/dist/public-server.js
CHANGED
|
@@ -1268,6 +1268,8 @@ var OrderedRenderEventPublisher = class {
|
|
|
1268
1268
|
this.sink = sink;
|
|
1269
1269
|
this.log = log;
|
|
1270
1270
|
}
|
|
1271
|
+
sink;
|
|
1272
|
+
log;
|
|
1271
1273
|
tail = Promise.resolve();
|
|
1272
1274
|
publish(job, message) {
|
|
1273
1275
|
if (!this.sink) return;
|
|
@@ -1617,6 +1619,9 @@ var ArtifactTransaction = class {
|
|
|
1617
1619
|
this.backupPath = join5(this.transactionDirectory, TRANSACTION_BACKUP);
|
|
1618
1620
|
this.durationProbe = durationProbe;
|
|
1619
1621
|
}
|
|
1622
|
+
kind;
|
|
1623
|
+
fileSystem;
|
|
1624
|
+
logger;
|
|
1620
1625
|
destinationPath;
|
|
1621
1626
|
stagingPath;
|
|
1622
1627
|
transactionDirectory;
|
|
@@ -5006,6 +5011,7 @@ var RenderObservabilityRecorder = class {
|
|
|
5006
5011
|
constructor(input) {
|
|
5007
5012
|
this.input = input;
|
|
5008
5013
|
}
|
|
5014
|
+
input;
|
|
5009
5015
|
events = [];
|
|
5010
5016
|
eventCount = 0;
|
|
5011
5017
|
failedPhase;
|
|
@@ -5818,6 +5824,7 @@ var Semaphore = class {
|
|
|
5818
5824
|
constructor(maxConcurrent) {
|
|
5819
5825
|
this.maxConcurrent = maxConcurrent;
|
|
5820
5826
|
}
|
|
5827
|
+
maxConcurrent;
|
|
5821
5828
|
queue = [];
|
|
5822
5829
|
active = 0;
|
|
5823
5830
|
async acquire() {
|
|
@@ -8530,6 +8537,10 @@ var VideoExtractionStageError = class extends Error {
|
|
|
8530
8537
|
this.name = "VideoExtractionStageError";
|
|
8531
8538
|
this.publicMetadata = { extractionFailure };
|
|
8532
8539
|
}
|
|
8540
|
+
code;
|
|
8541
|
+
retryable;
|
|
8542
|
+
failures;
|
|
8543
|
+
extractionFailure;
|
|
8533
8544
|
/**
|
|
8534
8545
|
* Producer servers may expose this explicitly public, JSON-compatible data
|
|
8535
8546
|
* without knowing its schema. Boundary adapters remain responsible for
|
|
@@ -11301,6 +11312,7 @@ var RenderQualityError = class extends Error {
|
|
|
11301
11312
|
this.warnings = warnings;
|
|
11302
11313
|
this.name = "RenderQualityError";
|
|
11303
11314
|
}
|
|
11315
|
+
warnings;
|
|
11304
11316
|
};
|
|
11305
11317
|
function applyRenderWarningPolicy(job, captureWarnings, log = defaultLogger) {
|
|
11306
11318
|
job.warnings ??= [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.196",
|
|
4
4
|
"description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"postcss": "^8.4.0",
|
|
36
36
|
"puppeteer": "^25.2.1",
|
|
37
37
|
"puppeteer-core": "^25.2.1",
|
|
38
|
-
"@hyperframes/
|
|
39
|
-
"@hyperframes/
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/
|
|
38
|
+
"@hyperframes/engine": "0.8.196",
|
|
39
|
+
"@hyperframes/parsers": "0.8.196",
|
|
40
|
+
"@hyperframes/core": "0.8.196",
|
|
41
|
+
"@hyperframes/lint": "0.8.196",
|
|
42
|
+
"@hyperframes/studio-server": "0.8.196"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^25.0.10",
|
|
46
46
|
"@webgpu/types": "^0.1.69",
|
|
47
|
-
"esbuild": "^0.
|
|
47
|
+
"esbuild": "^0.28.2",
|
|
48
48
|
"tsx": "^4.21.0",
|
|
49
49
|
"typescript": "^5.7.2",
|
|
50
50
|
"vitest": "^4.1.11",
|
|
51
|
-
"@hyperframes/aws-lambda": "0.8.
|
|
51
|
+
"@hyperframes/aws-lambda": "0.8.196"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|