@hyperframes/studio-server 0.8.153 → 0.8.154

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.
@@ -238,6 +238,7 @@ import { createHash as createHash2 } from "crypto";
238
238
  import { lstatSync, readFileSync as readFileSync3, readdirSync } from "fs";
239
239
  import { extname, isAbsolute as isAbsolute2, relative as relative2, resolve as resolve2, sep as sep2 } from "path";
240
240
  import { isAtomicTempPath } from "@hyperframes/core/atomic-file";
241
+ import { PREVIEW_IGNORED_DIRS } from "@hyperframes/core/project-folders";
241
242
  var SIGNATURE_TEXT_EXTENSIONS = /* @__PURE__ */ new Set([
242
243
  ".cjs",
243
244
  ".css",
@@ -250,22 +251,6 @@ var SIGNATURE_TEXT_EXTENSIONS = /* @__PURE__ */ new Set([
250
251
  ".ts",
251
252
  ".tsx"
252
253
  ]);
253
- var SIGNATURE_EXCLUDED_DIRS = /* @__PURE__ */ new Set([
254
- ".cache",
255
- ".git",
256
- ".hyperframes",
257
- ".next",
258
- ".thumbnails",
259
- ".transcode-cache",
260
- ".vite",
261
- ".waveform-cache",
262
- "build",
263
- "coverage",
264
- "dist",
265
- "node_modules",
266
- "outputs",
267
- "renders"
268
- ]);
269
254
  var MAX_SIGNATURE_TEXT_BYTES = 2e6;
270
255
  var STUDIO_SIGNATURE_MANIFEST_PATHS = [
271
256
  ".hyperframes/studio-manual-edits.json",
@@ -279,7 +264,7 @@ function affectsProjectSignature(projectDir, changedPath) {
279
264
  if (isRenderOutput(projectDir, changedPath, readRenderOutputsOrNone(projectDir))) return false;
280
265
  const segments = relativePath.split(sep2);
281
266
  if (STUDIO_SIGNATURE_MANIFEST_PATHS.includes(segments.join("/"))) return true;
282
- return !segments.some((segment) => SIGNATURE_EXCLUDED_DIRS.has(segment));
267
+ return !segments.some((segment) => PREVIEW_IGNORED_DIRS.has(segment));
283
268
  }
284
269
  var projectSignatureCache = /* @__PURE__ */ new Map();
285
270
  var COARSEST_FILE_TIME_TICK_MS = 2e3;
@@ -290,7 +275,7 @@ function isPathWithin(parentDir, childPath) {
290
275
  function isTextContentEligible(file, size) {
291
276
  return SIGNATURE_TEXT_EXTENSIONS.has(extname(file).toLowerCase()) && size <= MAX_SIGNATURE_TEXT_BYTES;
292
277
  }
293
- var isSkippedEntry = (entry) => SIGNATURE_EXCLUDED_DIRS.has(entry) || isAtomicTempPath(entry);
278
+ var isSkippedEntry = (entry) => PREVIEW_IGNORED_DIRS.has(entry) || isAtomicTempPath(entry);
294
279
  function signatureEntryStat(projectDir, entry, file, outputs) {
295
280
  if (isSkippedEntry(entry) || !isPathWithin(projectDir, file)) return null;
296
281
  if (isRenderOutput(projectDir, file, outputs)) return null;
@@ -18,7 +18,7 @@ import {
18
18
  recordArtifacts,
19
19
  recordRenderSuccess,
20
20
  registerRenderOutput
21
- } from "../chunk-CW5G6XXR.js";
21
+ } from "../chunk-66HD2HFT.js";
22
22
  import "../chunk-K56J3CL7.js";
23
23
  import "../chunk-SVQFE44C.js";
24
24
  import "../chunk-L3HJVTQE.js";
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  resolveProjectAndSignature,
56
56
  resolveProjectSignature,
57
57
  settledFileTag
58
- } from "./chunk-CW5G6XXR.js";
58
+ } from "./chunk-66HD2HFT.js";
59
59
  import {
60
60
  clearElementScreenshotIsolation,
61
61
  getElementScreenshotClip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/studio-server",
3
- "version": "0.8.153",
3
+ "version": "0.8.154",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -81,8 +81,8 @@
81
81
  "postcss": "^8.5.8",
82
82
  "postcss-selector-parser": "^7.1.2",
83
83
  "sharp": "^0.35.0",
84
- "@hyperframes/parsers": "0.8.153",
85
- "@hyperframes/core": "0.8.153"
84
+ "@hyperframes/core": "0.8.154",
85
+ "@hyperframes/parsers": "0.8.154"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@types/node": "^25.0.10",