@hyperframes/inspector 0.8.202 → 0.8.204

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.
@@ -6,7 +6,7 @@ export type RuntimeJson = string | number | boolean | null | RuntimeJson[] | {
6
6
  import type { HyperframeControlAction } from "../inline-scripts/runtimeContract.js";
7
7
  import type { HyperframePickerElementInfo } from "../inline-scripts/pickerApi.js";
8
8
  import type { RuntimeProtocolV1 } from "./protocol.js";
9
- type RuntimeBridgeControlActionBase = HyperframeControlAction | "tick" | "set-volume" | "set-media-output-muted" | "set-native-media-sync-disabled" | "set-web-audio-media-disabled" | "set-idle-heartbeat" | "set-display-scale" | "set-preview-quality" | "set-root-duration" | "set-play-range" | "stop-media" | "flash-elements";
9
+ type RuntimeBridgeControlActionBase = HyperframeControlAction | "tick" | "set-volume" | "set-media-output-muted" | "set-native-media-sync-disabled" | "set-web-audio-media-disabled" | "set-idle-heartbeat" | "set-display-scale" | "set-preview-quality" | "retry-preview-copies" | "request-preview-facts" | "set-root-duration" | "set-play-range" | "stop-media" | "flash-elements";
10
10
  type RuntimeBridgeControlMessageBase = {
11
11
  source: "hf-parent";
12
12
  type: "control";
@@ -212,7 +212,51 @@ export type RuntimeGroupLevelsMessage = {
212
212
  clipped: boolean;
213
213
  }>;
214
214
  };
215
- export type RuntimeOutboundMessage = RuntimeStateMessage | RuntimeTimelineMessage | RuntimeDiagnosticMessage | RuntimePickerHoveredMessage | RuntimePickerCandidatesMessage | RuntimePickerPickedMessage | RuntimePickerPickedManyMessage | RuntimePickerCancelledMessage | RuntimeStageSizeMessage | RuntimeMediaAutoplayBlockedMessage | RuntimeReadyMessage | RuntimeAssetsReadyMessage | RuntimeDataErrorMessage | RuntimeDataAppliedMessage | RuntimeAnalyticsMessage | RuntimePerformanceMessage | RuntimeGroupLevelsMessage;
215
+ export type RuntimePreviewCopiesMessage = {
216
+ source: "hf-preview";
217
+ type: "preview-copies";
218
+ /** The lighter copies wanted at the current quality; null when none are. */
219
+ copies: {
220
+ total: number;
221
+ ready: number;
222
+ failed: number;
223
+ progress: number;
224
+ error: string | null;
225
+ } | null;
226
+ };
227
+ export type RuntimePreviewHealthMessage = {
228
+ source: "hf-preview";
229
+ type: "preview-health";
230
+ /** How playback went over the last few seconds of play; null while paused, seeking or warming up. */
231
+ health: {
232
+ droppedShare: number;
233
+ seconds: number;
234
+ choppy: boolean;
235
+ fps: number;
236
+ worstFrameMs: number;
237
+ mode: "play";
238
+ } | null;
239
+ };
240
+ export type RuntimePreviewFactsMessage = {
241
+ source: "hf-preview";
242
+ type: "preview-facts";
243
+ facts: {
244
+ sceneCount: number;
245
+ mountedElementCount: number;
246
+ durationSeconds: number;
247
+ videos: Array<{
248
+ codec: string;
249
+ width: number;
250
+ height: number;
251
+ bitDepth: number;
252
+ count: number;
253
+ }>;
254
+ /** The lower levels at which at least one video gets a lighter copy. */
255
+ lighterAt: number[];
256
+ copiesReady: boolean;
257
+ };
258
+ };
259
+ export type RuntimeOutboundMessage = RuntimeStateMessage | RuntimePreviewCopiesMessage | RuntimePreviewHealthMessage | RuntimePreviewFactsMessage | RuntimeTimelineMessage | RuntimeDiagnosticMessage | RuntimePickerHoveredMessage | RuntimePickerCandidatesMessage | RuntimePickerPickedMessage | RuntimePickerPickedManyMessage | RuntimePickerCancelledMessage | RuntimeStageSizeMessage | RuntimeMediaAutoplayBlockedMessage | RuntimeReadyMessage | RuntimeAssetsReadyMessage | RuntimeDataErrorMessage | RuntimeDataAppliedMessage | RuntimeAnalyticsMessage | RuntimePerformanceMessage | RuntimeGroupLevelsMessage;
216
260
  export type HeldSeek = Promise<void> | void;
217
261
  export type RuntimePlayer = {
218
262
  _timeline: RuntimeTimelineLike | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.8.202",
3
+ "version": "0.8.204",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -43,8 +43,8 @@
43
43
  "htmlparser2": "^10.1.0",
44
44
  "postcss": "^8.5.8",
45
45
  "puppeteer-core": "^25.8.0",
46
- "@hyperframes/parsers": "0.8.202",
47
- "@hyperframes/core": "0.8.202"
46
+ "@hyperframes/core": "0.8.204",
47
+ "@hyperframes/parsers": "0.8.204"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",