@hyperframes/studio-server 0.8.192 → 0.8.193
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/{chunk-B4NDV4NM.js → chunk-JPKAFJIJ.js} +19 -0
- package/dist/helpers/mediaProxyPreview.d.ts +2 -2
- package/dist/history/index.d.ts +2 -2
- package/dist/history/index.js +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -1
- package/dist/{mediaProxyPreview-CAiGJucG.d.ts → mediaProxyPreview-C0DZX2Mo.d.ts} +1 -1
- package/dist/{projectHistory-ByC9sa3X.d.ts → projectHistory-C18HDvac.d.ts} +4 -1
- package/package.json +3 -3
|
@@ -2409,6 +2409,18 @@ var Engine = class {
|
|
|
2409
2409
|
[...this.tracked.keys()].map((path) => [path, null])
|
|
2410
2410
|
);
|
|
2411
2411
|
for (const [path, hash] of files) target.set(path, hash);
|
|
2412
|
+
if (point === START && this.adopting.size > 0) {
|
|
2413
|
+
throw new HistoryRefusedError(
|
|
2414
|
+
"The project's starting copy is still being saved; try again in a moment. Nothing was changed."
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
const isProjectFile = (path) => !KEPT_HIDDEN_PATHS.has(path);
|
|
2418
|
+
const keepsAny = [...target].some(([path, hash]) => hash !== null && isProjectFile(path));
|
|
2419
|
+
if ([...this.tracked.keys()].some(isProjectFile) && !keepsAny) {
|
|
2420
|
+
throw new HistoryRefusedError(
|
|
2421
|
+
"Restoring this point would remove every file in this project, so nothing was changed."
|
|
2422
|
+
);
|
|
2423
|
+
}
|
|
2412
2424
|
return this.writeAs(who, label, target, { restoredTo: point });
|
|
2413
2425
|
}
|
|
2414
2426
|
/** Settles, then runs `task` with its writes labelled `writeToken`. */
|
|
@@ -2528,6 +2540,12 @@ var HistoryClosedError = class extends Error {
|
|
|
2528
2540
|
this.name = "HistoryClosedError";
|
|
2529
2541
|
}
|
|
2530
2542
|
};
|
|
2543
|
+
var HistoryRefusedError = class extends Error {
|
|
2544
|
+
constructor(message) {
|
|
2545
|
+
super(message);
|
|
2546
|
+
this.name = "HistoryRefusedError";
|
|
2547
|
+
}
|
|
2548
|
+
};
|
|
2531
2549
|
async function openProjectHistory(options) {
|
|
2532
2550
|
if (!existsSync3(options.projectDir))
|
|
2533
2551
|
throw new HistoryClosedError(`${options.projectDir} is gone or now another project.`);
|
|
@@ -2692,6 +2710,7 @@ export {
|
|
|
2692
2710
|
MAX_WINDOW_IDLE_MS,
|
|
2693
2711
|
UNDO_MODES,
|
|
2694
2712
|
HistoryClosedError,
|
|
2713
|
+
HistoryRefusedError,
|
|
2695
2714
|
openProjectHistory,
|
|
2696
2715
|
readProjectHistory,
|
|
2697
2716
|
reclaimUncopiedBlobs,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@hyperframes/core';
|
|
2
|
-
export { a as PreviewApiAdapter, P as PreviewDocumentStore, i as injectMediaCodecMap, f as injectMediaCodecMapIntoHtml, g as isAutoProxyEnabled, p as proxyEtagSalt, r as resolvePreviewMediaCodecProbeCache } from '../mediaProxyPreview-
|
|
2
|
+
export { a as PreviewApiAdapter, P as PreviewDocumentStore, i as injectMediaCodecMap, f as injectMediaCodecMapIntoHtml, g as isAutoProxyEnabled, p as proxyEtagSalt, r as resolvePreviewMediaCodecProbeCache } from '../mediaProxyPreview-C0DZX2Mo.js';
|
|
3
3
|
import './mediaCodecMap.js';
|
|
4
4
|
import 'sharp';
|
|
5
5
|
import '@hyperframes/parsers';
|
|
6
6
|
import '@hyperframes/core/compiler';
|
|
7
|
-
import '../projectHistory-
|
|
7
|
+
import '../projectHistory-C18HDvac.js';
|
package/dist/history/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProjectHistory,
|
|
2
|
-
export { C as ClosedWindow, D as DEFAULT_HISTORY_ROOT, S as HISTORY_START, H as HistoryClosedError, a as HistoryEntry, b as HistoryEntrySide, c as HistoryFileChange, d as HistoryListItem, e as HistoryResult,
|
|
1
|
+
import { P as ProjectHistory, g as HistoryTarget, h as HistoryWho } from '../projectHistory-C18HDvac.js';
|
|
2
|
+
export { C as ClosedWindow, D as DEFAULT_HISTORY_ROOT, S as HISTORY_START, H as HistoryClosedError, a as HistoryEntry, b as HistoryEntrySide, c as HistoryFileChange, d as HistoryListItem, e as HistoryRefusedError, f as HistoryResult, i as HistoryWindow, M as MAX_WINDOW_IDLE_MS, j as ProjectHistoryOptions, k as ProjectHistoryView, U as UNDO_MODES, l as UndoMode, o as openProjectHistory, r as readProjectHistory } from '../projectHistory-C18HDvac.js';
|
|
3
3
|
|
|
4
4
|
interface ReclaimedHistory {
|
|
5
5
|
id: string;
|
package/dist/history/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
HistoryBusyError,
|
|
4
4
|
HistoryClosedError,
|
|
5
5
|
HistoryIdError,
|
|
6
|
+
HistoryRefusedError,
|
|
6
7
|
MAX_WINDOW_IDLE_MS,
|
|
7
8
|
START,
|
|
8
9
|
UNDO_MODES,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
recordRenderSuccess,
|
|
22
23
|
registerRenderOutput,
|
|
23
24
|
retainSnapshotOutput
|
|
24
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-JPKAFJIJ.js";
|
|
25
26
|
import "../chunk-QF7MFJJU.js";
|
|
26
27
|
import "../chunk-SVQFE44C.js";
|
|
27
28
|
import "../chunk-L3HJVTQE.js";
|
|
@@ -31,6 +32,7 @@ export {
|
|
|
31
32
|
HistoryBusyError,
|
|
32
33
|
HistoryClosedError,
|
|
33
34
|
HistoryIdError,
|
|
35
|
+
HistoryRefusedError,
|
|
34
36
|
MAX_WINDOW_IDLE_MS,
|
|
35
37
|
UNDO_MODES,
|
|
36
38
|
artifactDirectory,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import { S as StudioApiAdapter, P as PreviewDocumentStore, M as MediaProcessingJobState } from './mediaProxyPreview-
|
|
3
|
-
export { L as LintResult, a as PreviewApiAdapter, R as RenderJobState, b as ResolvedProject, c as StudioSelectionResponse, d as StudioSelectionSnapshot, e as StudioSelectionTextField } from './mediaProxyPreview-
|
|
4
|
-
export { C as ClosedWindow, D as DEFAULT_HISTORY_ROOT, S as HISTORY_START, H as HistoryClosedError, a as HistoryEntry, b as HistoryEntrySide, c as HistoryFileChange, d as HistoryListItem, e as
|
|
2
|
+
import { S as StudioApiAdapter, P as PreviewDocumentStore, M as MediaProcessingJobState } from './mediaProxyPreview-C0DZX2Mo.js';
|
|
3
|
+
export { L as LintResult, a as PreviewApiAdapter, R as RenderJobState, b as ResolvedProject, c as StudioSelectionResponse, d as StudioSelectionSnapshot, e as StudioSelectionTextField } from './mediaProxyPreview-C0DZX2Mo.js';
|
|
4
|
+
export { C as ClosedWindow, D as DEFAULT_HISTORY_ROOT, S as HISTORY_START, H as HistoryClosedError, a as HistoryEntry, b as HistoryEntrySide, c as HistoryFileChange, d as HistoryListItem, e as HistoryRefusedError, f as HistoryResult, g as HistoryTarget, h as HistoryWho, i as HistoryWindow, M as MAX_WINDOW_IDLE_MS, P as ProjectHistory, j as ProjectHistoryOptions, k as ProjectHistoryView, U as UNDO_MODES, l as UndoMode, o as openProjectHistory, r as readProjectHistory } from './projectHistory-C18HDvac.js';
|
|
5
5
|
export { ArtifactCapture, ArtifactInput, ArtifactRecord, HistoryBusyError, HistoryIdError, ProjectHistoryRecord, PrunedHistory, ReclaimedHistory, RenderRecord, VideoState, artifactDirectory, beginArtifactCapture, finishSnapshotRun, forgetRecordedArtifacts, historyCache, listProjectHistories, pruneGoneProjectHistories, reclaimUncopiedBlobs, recordArtifact, recordArtifacts, recordRenderSuccess, registerRenderOutput, retainSnapshotOutput } from './history/index.js';
|
|
6
6
|
export { CACHE_DIR_NAME as PROXY_CACHE_DIR_NAME } from './helpers/proxyTranscoder.js';
|
|
7
7
|
export { walkDir } from './helpers/safePath.js';
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
HistoryBusyError,
|
|
32
32
|
HistoryClosedError,
|
|
33
33
|
HistoryIdError,
|
|
34
|
+
HistoryRefusedError,
|
|
34
35
|
MAX_WINDOW_IDLE_MS,
|
|
35
36
|
START,
|
|
36
37
|
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
@@ -61,7 +62,7 @@ import {
|
|
|
61
62
|
resolveProjectSignature,
|
|
62
63
|
retainSnapshotOutput,
|
|
63
64
|
settledFileTag
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-JPKAFJIJ.js";
|
|
65
66
|
import {
|
|
66
67
|
clearElementScreenshotIsolation,
|
|
67
68
|
getElementScreenshotClip
|
|
@@ -6764,6 +6765,7 @@ export {
|
|
|
6764
6765
|
HistoryBusyError,
|
|
6765
6766
|
HistoryClosedError,
|
|
6766
6767
|
HistoryIdError,
|
|
6768
|
+
HistoryRefusedError,
|
|
6767
6769
|
MAX_UPLOAD_BYTES,
|
|
6768
6770
|
MAX_WINDOW_IDLE_MS,
|
|
6769
6771
|
MIME_TYPES,
|
|
@@ -3,7 +3,7 @@ import { RegistryItem, PreviewProxyBox } from '@hyperframes/core';
|
|
|
3
3
|
import * as sharp from 'sharp';
|
|
4
4
|
import { CanvasResolution } from '@hyperframes/parsers';
|
|
5
5
|
import { BundleOptions } from '@hyperframes/core/compiler';
|
|
6
|
-
import { P as ProjectHistory } from './projectHistory-
|
|
6
|
+
import { P as ProjectHistory } from './projectHistory-C18HDvac.js';
|
|
7
7
|
import { MediaCodecProbeCache, HtmlSourceLike } from './helpers/mediaCodecMap.js';
|
|
8
8
|
|
|
9
9
|
/** Resolved info about a single project. */
|
|
@@ -146,6 +146,9 @@ interface ProjectHistory {
|
|
|
146
146
|
declare class HistoryClosedError extends Error {
|
|
147
147
|
constructor(message: string);
|
|
148
148
|
}
|
|
149
|
+
declare class HistoryRefusedError extends Error {
|
|
150
|
+
constructor(message: string);
|
|
151
|
+
}
|
|
149
152
|
/** Opens a project's history: every write to its files becomes an entry that can be undone or restored. */
|
|
150
153
|
declare function openProjectHistory(options: ProjectHistoryOptions): Promise<ProjectHistory>;
|
|
151
154
|
/** A project's history as its log stands now, read without the owner lock: it reads while another process owns it. */
|
|
@@ -157,4 +160,4 @@ interface ProjectHistoryView {
|
|
|
157
160
|
/** Reads only: takes no lock and files, prunes or writes nothing; an owner's half-appended last line is skipped. */
|
|
158
161
|
declare function readProjectHistory(options: Pick<ProjectHistoryOptions, "projectDir" | "historyRoot">): ProjectHistoryView;
|
|
159
162
|
|
|
160
|
-
export { type ClosedWindow as C, DEFAULT_HISTORY_ROOT as D, HistoryClosedError as H, MAX_WINDOW_IDLE_MS as M, type ProjectHistory as P, START as S, UNDO_MODES as U, type HistoryEntry as a, type HistoryEntrySide as b, type HistoryFileChange as c, type HistoryListItem as d, type HistoryResult as
|
|
163
|
+
export { type ClosedWindow as C, DEFAULT_HISTORY_ROOT as D, HistoryClosedError as H, MAX_WINDOW_IDLE_MS as M, type ProjectHistory as P, START as S, UNDO_MODES as U, type HistoryEntry as a, type HistoryEntrySide as b, type HistoryFileChange as c, type HistoryListItem as d, HistoryRefusedError as e, type HistoryResult as f, type HistoryTarget as g, type HistoryWho as h, type HistoryWindow as i, type ProjectHistoryOptions as j, type ProjectHistoryView as k, type UndoMode as l, openProjectHistory as o, readProjectHistory as r };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.193",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"linkedom": "^0.18.12",
|
|
85
85
|
"postcss": "^8.5.8",
|
|
86
86
|
"postcss-selector-parser": "^7.1.2",
|
|
87
|
-
"@hyperframes/core": "0.8.
|
|
88
|
-
"@hyperframes/parsers": "0.8.
|
|
87
|
+
"@hyperframes/core": "0.8.193",
|
|
88
|
+
"@hyperframes/parsers": "0.8.193"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^25.0.10",
|