hyperframes 0.9.36 → 0.9.37

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.
Files changed (137) hide show
  1. package/dist/{add-JB52VSXX.js → add-IQIHS7ZQ.js} +5 -5
  2. package/dist/api.js +9 -9
  3. package/dist/{asset-56O7CJKC.js → asset-4VSZJOKY.js} +2 -2
  4. package/dist/{audio-MA2X7LZD.js → audio-7PWVXSJ2.js} +5 -5
  5. package/dist/{auth-CFYWXHE6.js → auth-FZ6KZXCL.js} +2 -2
  6. package/dist/{autoUpdate-KAMP6TN3.js → autoUpdate-7B7CD4CQ.js} +2 -2
  7. package/dist/{avatars-ZQRO6KJH.js → avatars-KNHYAOJ4.js} +3 -3
  8. package/dist/{backgroundChecks-V4GSKCHA.js → backgroundChecks-FH2UEVAI.js} +3 -3
  9. package/dist/backgroundChecksWorker.js +3 -3
  10. package/dist/{beats-32UHTEVX.js → beats-BW4A2LQ6.js} +4 -4
  11. package/dist/{benchmark-A4PUSCSC.js → benchmark-L2WT64XD.js} +5 -5
  12. package/dist/{billing-KQRWFLNQ.js → billing-PEFWMJYB.js} +4 -4
  13. package/dist/{browser-WVKQGMUH.js → browser-CZUTCLHK.js} +3 -3
  14. package/dist/{catalog-45BHRIEC.js → catalog-EZP2RWMC.js} +5 -5
  15. package/dist/{catch-up-CSSPUAY3.js → catch-up-IAGAFBUC.js} +4 -4
  16. package/dist/{check-OUVR4U2V.js → check-Y5ZDSFTL.js} +12 -12
  17. package/dist/{checkBrowser-ZZWBT34I.js → checkBrowser-E3JKBE6E.js} +8 -8
  18. package/dist/{chunk-YIXPLO7H.js → chunk-23FXEJJT.js} +1 -1
  19. package/dist/{chunk-VGYMOT7P.js → chunk-3RMYJGDR.js} +2 -2
  20. package/dist/{chunk-3SBXH3NT.js → chunk-4RHBW4E7.js} +4 -4
  21. package/dist/{chunk-UWBMCG6S.js → chunk-57NAJJ2L.js} +1 -1
  22. package/dist/{chunk-WWSWN6LS.js → chunk-5I3EM64R.js} +1 -1
  23. package/dist/{chunk-ZKRLYB3N.js → chunk-64KB74WF.js} +2 -2
  24. package/dist/{chunk-Y2WABFCQ.js → chunk-6Q2FBJUF.js} +1 -1
  25. package/dist/{chunk-XR2LOXU6.js → chunk-AC7KSSDQ.js} +36 -16
  26. package/dist/{chunk-IESS6RFI.js → chunk-BRTRZFR3.js} +2 -2
  27. package/dist/{chunk-NVAUMHQZ.js → chunk-BZRQQI27.js} +11 -11
  28. package/dist/{chunk-TUCIRLXB.js → chunk-CNAVFDUF.js} +1 -1
  29. package/dist/{chunk-OMMS3U4M.js → chunk-DOKWEMRD.js} +2 -2
  30. package/dist/{chunk-5N55UUZW.js → chunk-EEY2ZTO7.js} +1 -1
  31. package/dist/{chunk-D63KU4CC.js → chunk-EYCOZTOP.js} +1 -1
  32. package/dist/{chunk-LVXFEW25.js → chunk-H23DEQUR.js} +10 -7
  33. package/dist/{chunk-ZGFDN6OW.js → chunk-HOKYS2AJ.js} +1 -1
  34. package/dist/{chunk-QNUALBB6.js → chunk-IL3VIGJ6.js} +1 -1
  35. package/dist/chunk-JJA4EMNO.js +58 -0
  36. package/dist/{chunk-JN5KM5IA.js → chunk-K3G3RYZY.js} +2 -2
  37. package/dist/{chunk-CIRQFSHK.js → chunk-L2MAAYAE.js} +1 -1
  38. package/dist/{chunk-K5MFX7SH.js → chunk-LTB6C2S2.js} +1 -1
  39. package/dist/{chunk-W2PRJA44.js → chunk-NSUA7UGO.js} +2 -2
  40. package/dist/{chunk-T3IKRV5C.js → chunk-OJEU6EGQ.js} +2 -2
  41. package/dist/{chunk-X6FOZTXY.js → chunk-OPMYN4QX.js} +2 -2
  42. package/dist/{chunk-L6LYQ3XT.js → chunk-OT2VLOPB.js} +2 -2
  43. package/dist/{chunk-WDADQLXV.js → chunk-PK5I3C5A.js} +2 -2
  44. package/dist/{chunk-3NRKWTP3.js → chunk-PNJC2462.js} +1 -1
  45. package/dist/{chunk-VKVCN42J.js → chunk-PVC2IEBV.js} +2 -2
  46. package/dist/{chunk-RQ3VVADF.js → chunk-SEZQDAYP.js} +2 -2
  47. package/dist/{chunk-E6XF6D72.js → chunk-SF2MHFM4.js} +1 -1
  48. package/dist/{chunk-GHATBXWV.js → chunk-TF3RW2VO.js} +2 -2
  49. package/dist/{chunk-AFIHTIM3.js → chunk-VIFUSDHT.js} +1 -1
  50. package/dist/{chunk-TNLVDXFI.js → chunk-VO7JX5MH.js} +1 -1
  51. package/dist/{chunk-T3FF37DW.js → chunk-VXTCMPNE.js} +1 -1
  52. package/dist/{chunk-ACIIUGIC.js → chunk-WMNHHH4G.js} +1 -1
  53. package/dist/{chunk-7BFICJ3S.js → chunk-Y3VS2ULV.js} +1 -1
  54. package/dist/{chunk-BVHRTPRC.js → chunk-ZPGODXXD.js} +1 -1
  55. package/dist/{clean-JKJJ7C5W.js → clean-H7533JWH.js} +3 -3
  56. package/dist/cli.js +58 -58
  57. package/dist/{cloud-Y6ZWJL4F.js → cloud-SKP5HRF6.js} +4 -4
  58. package/dist/{compare-7V67PQ6W.js → compare-73KIXXO4.js} +4 -4
  59. package/dist/{component-NB2E7TO2.js → component-S36I7EO7.js} +3 -3
  60. package/dist/{compositions-WGIDBTEO.js → compositions-A52NWBWZ.js} +5 -5
  61. package/dist/{curve-5CTLGBZ6.js → curve-EVDIGJYH.js} +3 -3
  62. package/dist/{cuts-KHMTWIW6.js → cuts-F3FIOBTA.js} +3 -3
  63. package/dist/{delete-XHLIOUVZ.js → delete-TDRI7D5U.js} +2 -2
  64. package/dist/{deploy-QS3ZH7ML.js → deploy-JZB6L4J4.js} +2 -2
  65. package/dist/{destroy-4Y45LUVA.js → destroy-WV6MWU2X.js} +2 -2
  66. package/dist/{diff-E4WZFJVT.js → diff-NAG2HJBV.js} +9 -9
  67. package/dist/{doctor-DCWGMXEJ.js → doctor-VQ7ZUC5L.js} +3 -3
  68. package/dist/{energy-G3HYGKXB.js → energy-4MXJFKNG.js} +3 -3
  69. package/dist/{events-AZXT4DH7.js → events-C5QIPKS6.js} +3 -3
  70. package/dist/{events-PBF2HKDG.js → events-RXRGHWXQ.js} +2 -2
  71. package/dist/{events-KI7IGKD7.js → events-YEM2QSWC.js} +3 -3
  72. package/dist/{execute-MSH2DZYW.js → execute-OR5EMOBQ.js} +6 -6
  73. package/dist/{extract-W7OSNREV.js → extract-J5432KPU.js} +4 -4
  74. package/dist/{face-YDIFSFDU.js → face-HXKBJG63.js} +3 -3
  75. package/dist/{feedback-PFDUGOE5.js → feedback-BHKFHVZA.js} +12 -7
  76. package/dist/{figma-4I3TSDJB.js → figma-SPZF4LB6.js} +3 -3
  77. package/dist/fontLocalizeCli.js +1 -1
  78. package/dist/{frames-KX6HW5YG.js → frames-RVL3EUMR.js} +3 -3
  79. package/dist/{generate-7GNC72NL.js → generate-KMDMGHHQ.js} +8 -8
  80. package/dist/{get-HF55WDHW.js → get-QOMTEU33.js} +2 -2
  81. package/dist/{grade-compare-D5BM2LL2.js → grade-compare-RUIBGR5N.js} +4 -4
  82. package/dist/{help-4O2TV4UC.js → help-JM4PZD5K.js} +1 -1
  83. package/dist/{history-F4S5Y6RE.js → history-MHSGJDAM.js} +6 -6
  84. package/dist/hyperframes-player.global.js +1 -1
  85. package/dist/{info-M76CG5AO.js → info-VZDNMGKV.js} +5 -5
  86. package/dist/{init-UCYQQPMR.js → init-H7J3LFXP.js} +6 -6
  87. package/dist/{ink-FFGNUVR6.js → ink-PZZ7VSVL.js} +3 -3
  88. package/dist/{inspect-RETNS2B7.js → inspect-IK4BU2MQ.js} +6 -6
  89. package/dist/{keyframes-TZNCGAOA.js → keyframes-KLMHHNGZ.js} +5 -5
  90. package/dist/{lambda-BVBEE5C4.js → lambda-3QKEQ4SO.js} +2 -2
  91. package/dist/{layout-H5UHWDSM.js → layout-HGL32QP2.js} +6 -6
  92. package/dist/{lint-SW4QAECP.js → lint-IZJ3YYBY.js} +6 -6
  93. package/dist/{list-URXSUUWR.js → list-BV5ZCZT7.js} +2 -2
  94. package/dist/{login-IDHTK4KU.js → login-5EE4LETP.js} +4 -4
  95. package/dist/{look-BFKIH34T.js → look-P7O2I4L2.js} +3 -3
  96. package/dist/{measure-Q3XLDCC5.js → measure-C4JEN64J.js} +11 -11
  97. package/dist/{media-treatment-AIIQYKQP.js → media-treatment-IGLDY62E.js} +5 -5
  98. package/dist/{media-use-QGDEWJ33.js → media-use-BAIFE26K.js} +3 -3
  99. package/dist/{normalize-audio-PPJJ3R7X.js → normalize-audio-WKSQSX26.js} +4 -4
  100. package/dist/{open-D2Q47WRE.js → open-ZKBQRQRC.js} +4 -4
  101. package/dist/{plan-ETWAAI32.js → plan-2QUTC33A.js} +5 -5
  102. package/dist/{play-EOR5CUOX.js → play-ECN4IJ3Y.js} +5 -5
  103. package/dist/{present-DOAVJ7ZR.js → present-WNUBLYIS.js} +5 -5
  104. package/dist/{preview-BLPZPVAT.js → preview-2ETDMQIS.js} +5 -5
  105. package/dist/{probe-ZCLMXUT3.js → probe-Y6IUEHFX.js} +4 -4
  106. package/dist/{publish-2CWOUCTH.js → publish-E24MR55T.js} +6 -3
  107. package/dist/{render-MNJ7RIWW.js → render-3ESNQDJD.js} +15 -11
  108. package/dist/{render-XLOMAULM.js → render-NIS7ZYEN.js} +10 -10
  109. package/dist/{reverse-ZE46A5KJ.js → reverse-ZCMPUICN.js} +1 -1
  110. package/dist/{service-A3JIQBXR.js → service-OGBH7FVE.js} +4 -4
  111. package/dist/{share-JKA5BVQG.js → share-TN3XE5KX.js} +7 -7
  112. package/dist/{skills-6FPVQ4BC.js → skills-MTBYCP4B.js} +6 -6
  113. package/dist/{skillsUpdateCheck-DE2WODW6.js → skillsUpdateCheck-KG6HEEJA.js} +3 -3
  114. package/dist/{snapshot-PHQFKHCH.js → snapshot-SSV3EWLS.js} +7 -7
  115. package/dist/{start-SNVOMD6B.js → start-E5DXVZLN.js} +7 -7
  116. package/dist/{status-KJBPWGEC.js → status-JGQXXKRJ.js} +4 -4
  117. package/dist/studio/assets/{codec-6d9YaMSK.js → codec-BP7F-7Jx.js} +1 -1
  118. package/dist/studio/assets/{hyperframes-player-DJLMOnOs.js → hyperframes-player-_QnPoHup.js} +1 -1
  119. package/dist/studio/assets/{index-VQ5wXIdS.js → index-D6ePWUpc.js} +1 -1
  120. package/dist/studio/assets/{index-CGiNbBjR.js → index-tjhfci4N.js} +5 -5
  121. package/dist/studio/assets/{pausedVideoDecoder-CU-7ph_q.js → pausedVideoDecoder-B7U86zDa.js} +1 -1
  122. package/dist/studio/index.html +1 -1
  123. package/dist/{studioServer-KJYBMGTC.js → studioServer-UIOYHVKP.js} +8 -8
  124. package/dist/{sync-PBJCLG3N.js → sync-3MYY7QEU.js} +3 -3
  125. package/dist/{telemetry-JR7GV7YP.js → telemetry-EKXAUDKG.js} +3 -3
  126. package/dist/{templates-4NVGID3Z.js → templates-VUW7UNCH.js} +13 -4
  127. package/dist/{timeline-ZXEIX2PV.js → timeline-ZMF5PTN4.js} +5 -5
  128. package/dist/{tokens-DKFMDCDL.js → tokens-NS5DNZZH.js} +2 -2
  129. package/dist/{transcribe-FXDNW5RQ.js → transcribe-DSQ7RAXO.js} +6 -6
  130. package/dist/{update-E2ZTQPZ2.js → update-PN63WGTI.js} +7 -7
  131. package/dist/{updateCheck-IGG6C53J.js → updateCheck-WL3FAMQ4.js} +2 -2
  132. package/dist/{upgrade-GIGDEGOF.js → upgrade-AUEZJWXS.js} +3 -3
  133. package/dist/{validate-SWN6PEXK.js → validate-LPKMHSD4.js} +6 -6
  134. package/dist/{voices-RGJNQLXV.js → voices-5BWQ5DQR.js} +7 -7
  135. package/dist/warmCheck.js +12 -12
  136. package/package.json +1 -1
  137. package/dist/chunk-U47ZNIUB.js +0 -26
@@ -5,9 +5,10 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
- isEnvOrGitPath,
9
- isPrivateCompositionFile
10
- } from "./chunk-U47ZNIUB.js";
8
+ isPrivateCompositionFile,
9
+ isPrivateOutsideFile,
10
+ linksToPrivateOutsideFile
11
+ } from "./chunk-JJA4EMNO.js";
11
12
  import {
12
13
  refreshIfNeeded
13
14
  } from "./chunk-QUUZ2BGC.js";
@@ -136,7 +137,6 @@ import {
136
137
  openSync,
137
138
  readdirSync,
138
139
  readFileSync as readFileSync2,
139
- realpathSync,
140
140
  statSync
141
141
  } from "fs";
142
142
  import AdmZip from "adm-zip";
@@ -409,7 +409,7 @@ function addExternalAsset(ctx, absPath) {
409
409
  }
410
410
  function staysOut(ctx, rel, absPath) {
411
411
  if (!rel || ctx.fileContents.has(rel) || rel.split("/").some(shouldIgnoreSegment)) return true;
412
- return isPrivateCompositionFile(ctx.absProjectDir, absPath);
412
+ return isPrivateCompositionFile(ctx.absProjectDir, absPath) || existsSync2(absPath) && linksToPrivateOutsideFile(ctx.absProjectDir, absPath);
413
413
  }
414
414
  function includeReferencedProjectFile(ctx, resolvedPath, rawPath, requireOnDisk) {
415
415
  const fromRoot = resolve2(ctx.absProjectDir, rawPath);
@@ -429,6 +429,12 @@ function includeReferencedProjectFile(ctx, resolvedPath, rawPath, requireOnDisk)
429
429
  }
430
430
  var HARD_REFERENCES = /* @__PURE__ */ new Set(["video[src]", "audio[src]", "img[src]", "video[poster]"]);
431
431
  var relativeToProject = (ctx, absPath) => encodeUrlPath(relative(ctx.absProjectDir, absPath).replaceAll("\\", "/"));
432
+ function leaveOut(ctx, entryPath, rawPath) {
433
+ const warning = `${entryPath} references ${rawPath}, which is outside the project in a private location; it was left out of the upload.`;
434
+ if (ctx.leftOut.has(warning)) return;
435
+ ctx.leftOut.add(warning);
436
+ ctx.onLeftOut?.(warning);
437
+ }
432
438
  function archiveTargetOf(ctx, absPath, rawPath, options) {
433
439
  if (isPathInside(absPath, ctx.absProjectDir)) {
434
440
  includeReferencedProjectFile(ctx, absPath, rawPath, options.requireOnDisk);
@@ -436,19 +442,23 @@ function archiveTargetOf(ctx, absPath, rawPath, options) {
436
442
  }
437
443
  try {
438
444
  if (!existsSync2(absPath) || !statSync(absPath).isFile()) return void 0;
439
- if (isEnvOrGitPath(absPath) || isEnvOrGitPath(realpathSync(absPath))) return void 0;
445
+ if (isPrivateOutsideFile(ctx.absProjectDir, absPath)) {
446
+ leaveOut(ctx, options.entryPath, rawPath);
447
+ return void 0;
448
+ }
440
449
  } catch {
441
450
  return void 0;
442
451
  }
443
452
  return encodeUrlPath(addExternalAsset(ctx, absPath));
444
453
  }
445
- function tryResolveExternal(ctx, rawPath, referrerAbsDir, requireOnDisk = false) {
454
+ function tryResolveExternal(ctx, rawPath, referrerAbsDir, entryPath, requireOnDisk = false) {
446
455
  const filesystemPath = isAbsolute(rawPath) && !rawPath.startsWith("//");
447
456
  if (isNonRelativeUrl(rawPath) && !filesystemPath) return null;
448
457
  const cut = filesystemPath ? rawPath.search(/[?#]/) : -1;
449
458
  const [path, suffix] = cut < 0 ? [rawPath, ""] : [rawPath.slice(0, cut), rawPath.slice(cut)];
450
459
  for (const variant of decodeUrlPathVariants(path)) {
451
460
  const target = archiveTargetOf(ctx, resolve2(referrerAbsDir, variant), rawPath, {
461
+ entryPath,
452
462
  requireOnDisk,
453
463
  filesystemPath
454
464
  });
@@ -529,6 +539,7 @@ function localizeHtmlEntry(ctx, entryPath, content) {
529
539
  ctx,
530
540
  val,
531
541
  dir,
542
+ entryPath,
532
543
  ref !== void 0 && HARD_REFERENCES.has(`${ref.tag}[${ref.attr}]`)
533
544
  );
534
545
  const attrsChanged = rewriteHtmlAttributes(document, referrerAbsDir, entryPath, resolveTarget, {
@@ -548,19 +559,21 @@ function localizeCssEntry(ctx, entryPath, content) {
548
559
  css,
549
560
  referrerAbsDir,
550
561
  entryPath,
551
- (val, dir) => tryResolveExternal(ctx, val, dir)
562
+ (val, dir) => tryResolveExternal(ctx, val, dir, entryPath)
552
563
  );
553
564
  if (result.modified) {
554
565
  ctx.fileContents.set(entryPath, Buffer.from(result.css, "utf-8"));
555
566
  }
556
567
  }
557
- function localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes = Infinity) {
568
+ function localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes = Infinity, onLeftOut) {
558
569
  const ctx = {
559
570
  absProjectDir,
560
571
  fileContents,
561
572
  onDiskMinBytes,
562
573
  externalMap: /* @__PURE__ */ new Map(),
563
- usedArchivePaths: /* @__PURE__ */ new Set()
574
+ usedArchivePaths: /* @__PURE__ */ new Set(),
575
+ leftOut: /* @__PURE__ */ new Set(),
576
+ onLeftOut
564
577
  };
565
578
  for (const [entryPath, content] of [...fileContents.entries()]) {
566
579
  if (entryPath.startsWith(EXT_ASSETS_PREFIX + "/") || !Buffer.isBuffer(content)) continue;
@@ -572,8 +585,8 @@ function localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes = In
572
585
  }
573
586
  return ctx.externalMap.size;
574
587
  }
575
- function buildPublishFileMap(projectDir) {
576
- return stagePublishFiles(projectDir, Infinity);
588
+ function buildPublishFileMap(projectDir, onLeftOut) {
589
+ return stagePublishFiles(projectDir, Infinity, onLeftOut);
577
590
  }
578
591
  var archiveKey = (path) => path.normalize("NFC");
579
592
  function composeNamesInText(fileContents, filePaths) {
@@ -593,7 +606,7 @@ function composeNamesInText(fileContents, filePaths) {
593
606
  if (text !== before) fileContents.set(key, Buffer.from(text, "utf-8"));
594
607
  }
595
608
  }
596
- function stagePublishFiles(projectDir, onDiskMinBytes) {
609
+ function stagePublishFiles(projectDir, onDiskMinBytes, onLeftOut) {
597
610
  const absProjectDir = resolve2(projectDir);
598
611
  const filePaths = [];
599
612
  collectProjectFiles(absProjectDir, absProjectDir, filePaths, projectIgnore(absProjectDir));
@@ -605,6 +618,12 @@ function stagePublishFiles(projectDir, onDiskMinBytes) {
605
618
  const fileContents = /* @__PURE__ */ new Map();
606
619
  const diskPathOf = /* @__PURE__ */ new Map();
607
620
  for (const filePath of filePaths) {
621
+ if (linksToPrivateOutsideFile(absProjectDir, join2(absProjectDir, filePath))) {
622
+ onLeftOut?.(
623
+ `${filePath} links to a file outside the project in a private location; it was left out of the upload.`
624
+ );
625
+ continue;
626
+ }
608
627
  const key = archiveKey(filePath);
609
628
  const clash = diskPathOf.get(key);
610
629
  if (clash !== void 0) {
@@ -616,7 +635,7 @@ function stagePublishFiles(projectDir, onDiskMinBytes) {
616
635
  fileContents.set(key, stageFile(join2(absProjectDir, filePath), onDiskMinBytes));
617
636
  }
618
637
  composeNamesInText(fileContents, filePaths);
619
- localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes);
638
+ localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes, onLeftOut);
620
639
  return fileContents;
621
640
  }
622
641
  var ARCHIVE_ENTRY_TIME = new Date(1980, 0, 1, 0, 0, 0, 0);
@@ -633,8 +652,8 @@ function zipPublishFileMap(fileContents) {
633
652
  fileCount: fileContents.size
634
653
  };
635
654
  }
636
- function createPublishArchive(projectDir) {
637
- return zipPublishFileMap(buildPublishFileMap(projectDir));
655
+ function createPublishArchive(projectDir, onLeftOut) {
656
+ return zipPublishFileMap(buildPublishFileMap(projectDir, onLeftOut));
638
657
  }
639
658
  function getPublishApiBaseUrl() {
640
659
  return (process.env["HYPERFRAMES_PUBLISHED_PROJECTS_API_URL"] || process.env["HEYGEN_API_URL"] || "https://api2.heygen.com").replace(/\/$/, "");
@@ -805,6 +824,7 @@ export {
805
824
  archiveKey,
806
825
  stagePublishFiles,
807
826
  zipPublishFileMap,
827
+ createPublishArchive,
808
828
  getPublishApiBaseUrl,
809
829
  publishProjectArchive
810
830
  };
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  applyRenderEnvironment,
17
17
  renderOutputDirectory
18
- } from "./chunk-3NRKWTP3.js";
18
+ } from "./chunk-PNJC2462.js";
19
19
  import {
20
20
  makeOutputFolder
21
21
  } from "./chunk-3S27CPV7.js";
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  renderMotionBlurResult,
28
28
  trackRenderPreflightRejected
29
- } from "./chunk-QNUALBB6.js";
29
+ } from "./chunk-IL3VIGJ6.js";
30
30
  import {
31
31
  c
32
32
  } from "./chunk-JCNPHRGX.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-LGPEN7SE.js";
15
15
  import {
16
16
  trackLintRun
17
- } from "./chunk-W2PRJA44.js";
17
+ } from "./chunk-NSUA7UGO.js";
18
18
  import {
19
19
  CheckBudgetError,
20
20
  CheckCopiesUnfinishedError,
@@ -27,7 +27,7 @@ import {
27
27
  idleWindow,
28
28
  preResolveHostileMediaProxies,
29
29
  rectToBbox
30
- } from "./chunk-VKVCN42J.js";
30
+ } from "./chunk-PVC2IEBV.js";
31
31
  import {
32
32
  CONTENT_OVERLAP_HELD_ERROR_MS,
33
33
  DEFAULT_MAX_STATIC_SEC,
@@ -48,7 +48,7 @@ import {
48
48
  mergeSampleTimes,
49
49
  parseAt,
50
50
  readMotionSpec
51
- } from "./chunk-RQ3VVADF.js";
51
+ } from "./chunk-SEZQDAYP.js";
52
52
  import {
53
53
  findingAtRoot,
54
54
  findingElementKey,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-TQBQYO4L.js";
58
58
  import {
59
59
  captureArtifactRevision
60
- } from "./chunk-TNLVDXFI.js";
60
+ } from "./chunk-VO7JX5MH.js";
61
61
  import {
62
62
  readToolContext,
63
63
  reportArtifacts,
@@ -65,7 +65,7 @@ import {
65
65
  } from "./chunk-BHSQSWN6.js";
66
66
  import {
67
67
  resolveProject
68
- } from "./chunk-WWSWN6LS.js";
68
+ } from "./chunk-5I3EM64R.js";
69
69
  import {
70
70
  CACHE_DIR_NAME
71
71
  } from "./chunk-IJNSVKFB.js";
@@ -83,7 +83,7 @@ import {
83
83
  import {
84
84
  trackCheckReport,
85
85
  trackCommandFailure
86
- } from "./chunk-QNUALBB6.js";
86
+ } from "./chunk-IL3VIGJ6.js";
87
87
  import {
88
88
  swallowedFlagUsageError
89
89
  } from "./chunk-AJCFMDFQ.js";
@@ -111,7 +111,7 @@ import {
111
111
  } from "./chunk-YLKJSPO4.js";
112
112
  import {
113
113
  withMeta
114
- } from "./chunk-7BFICJ3S.js";
114
+ } from "./chunk-Y3VS2ULV.js";
115
115
  import {
116
116
  recordLastCheck
117
117
  } from "./chunk-AWD2MWWL.js";
@@ -126,7 +126,7 @@ import {
126
126
  } from "./chunk-66W5IWLO.js";
127
127
  import {
128
128
  VERSION
129
- } from "./chunk-L6LYQ3XT.js";
129
+ } from "./chunk-OT2VLOPB.js";
130
130
  import {
131
131
  normalizeErrorMessage
132
132
  } from "./chunk-E63BDV4Z.js";
@@ -2294,7 +2294,7 @@ function resolveMotionSpec(projectDir) {
2294
2294
  };
2295
2295
  }
2296
2296
  async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
2297
- const module = await import("./checkBrowser-ZZWBT34I.js");
2297
+ const module = await import("./checkBrowser-E3JKBE6E.js");
2298
2298
  return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
2299
2299
  }
2300
2300
  var adoptedBrowser;
@@ -2320,11 +2320,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
2320
2320
  return relative(projectDir, path);
2321
2321
  }
2322
2322
  async function captureFindingFrames(project, options, requests, deadline) {
2323
- const module = await import("./checkBrowser-ZZWBT34I.js");
2323
+ const module = await import("./checkBrowser-E3JKBE6E.js");
2324
2324
  return module.captureFindingFrames(project, options, requests, deadline);
2325
2325
  }
2326
2326
  async function captureFindingCrops(project, options, requests, deadline) {
2327
- const module = await import("./checkBrowser-ZZWBT34I.js");
2327
+ const module = await import("./checkBrowser-E3JKBE6E.js");
2328
2328
  return module.captureFindingCrops(project, options, requests, deadline);
2329
2329
  }
2330
2330
  async function inspectProjectMedia(project, dependencies) {
@@ -8,7 +8,7 @@ import {
8
8
  jsonArg,
9
9
  runMeasure,
10
10
  videoArg
11
- } from "./chunk-UWBMCG6S.js";
11
+ } from "./chunk-57NAJJ2L.js";
12
12
  import {
13
13
  Fix,
14
14
  ffmpegBin,
@@ -12,7 +12,7 @@ import {
12
12
  jsonArg,
13
13
  num,
14
14
  runMeasure
15
- } from "./chunk-UWBMCG6S.js";
15
+ } from "./chunk-57NAJJ2L.js";
16
16
  import {
17
17
  chargedCredits,
18
18
  idempotencyKey,
@@ -22,7 +22,7 @@ import {
22
22
  publicVoices,
23
23
  runJob,
24
24
  senderScope
25
- } from "./chunk-T3FF37DW.js";
25
+ } from "./chunk-VXTCMPNE.js";
26
26
  import {
27
27
  Fix,
28
28
  probeSeconds,
@@ -13,7 +13,7 @@ import {
13
13
  rewriteHtmlAttributes,
14
14
  rewriteStyleBlocks,
15
15
  stagedSize
16
- } from "./chunk-XR2LOXU6.js";
16
+ } from "./chunk-AC7KSSDQ.js";
17
17
  import {
18
18
  probeAudio
19
19
  } from "./chunk-FLVHLNQN.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-WWSWN6LS.js";
9
+ } from "./chunk-5I3EM64R.js";
10
10
  import {
11
11
  findPreviewServerForProject,
12
12
  studioApiUrl
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  resetTelemetryPostureCache,
17
17
  trackEvent
18
- } from "./chunk-CIRQFSHK.js";
18
+ } from "./chunk-L2MAAYAE.js";
19
19
  import {
20
20
  AuthError,
21
21
  ErrLoginChanged,
@@ -1798,9 +1798,9 @@ async function entryKind(entry, full, followSymlinks) {
1798
1798
  if (!entry.isSymbolicLink()) return entry;
1799
1799
  return followSymlinks ? fs2.stat(full).catch(() => null) : null;
1800
1800
  }
1801
- async function snapshotProject(dir, { byContent = false, followSymlinks = false } = {}) {
1801
+ async function snapshotProject(dir, { byContent = false, followSymlinks = false, lenientIgnore = false } = {}) {
1802
1802
  const result = /* @__PURE__ */ new Map();
1803
- const ignored = await readChangeIgnore(dir);
1803
+ const ignored = await ignoreFor(dir, lenientIgnore);
1804
1804
  async function walk(current, ancestors) {
1805
1805
  const real = await fs2.realpath(current).catch(() => null);
1806
1806
  if (!real || ancestors.has(real)) return;
@@ -1829,7 +1829,10 @@ function snapshotFingerprint(snapshot) {
1829
1829
  const files = [...snapshot].sort(([a], [b]) => a < b ? -1 : 1);
1830
1830
  return createHash3("sha256").update(JSON.stringify(files)).digest("hex");
1831
1831
  }
1832
- var projectFingerprint2 = async (projectPath, options) => snapshotFingerprint(await snapshotProject(projectPath, { ...options, followSymlinks: true }));
1832
+ var projectFingerprint2 = async (projectPath, options) => snapshotFingerprint(
1833
+ await snapshotProject(projectPath, { ...options, followSymlinks: true, lenientIgnore: true })
1834
+ );
1835
+ var ignoreFor = (dir, lenient) => lenient ? readChangeIgnore(dir) : readSourceIgnore(dir);
1833
1836
  function excludedFromSnapshot(dir, full, ignored) {
1834
1837
  const relative = path3.relative(dir, full);
1835
1838
  return isOutsideFilm(relative) || ignored(relative.split(path3.sep).join("/"));
@@ -3632,9 +3635,9 @@ async function prepareShareRender(dir) {
3632
3635
  const id = randomUUID9();
3633
3636
  const output = join8(folder, `${id}.mp4`);
3634
3637
  const [{ createRenderPlan }, { executeRenderPlan }, render] = await Promise.all([
3635
- import("./plan-ETWAAI32.js"),
3636
- import("./execute-MSH2DZYW.js"),
3637
- import("./render-XLOMAULM.js")
3638
+ import("./plan-2QUTC33A.js"),
3639
+ import("./execute-OR5EMOBQ.js"),
3640
+ import("./render-NIS7ZYEN.js")
3638
3641
  ]);
3639
3642
  const target = join8(stateFolder, "share-render.json");
3640
3643
  const temporary = `${target}.${id}.tmp`;
@@ -33,7 +33,7 @@ import {
33
33
  uncheckedSource,
34
34
  withProjectShareLock,
35
35
  writeJsonAtomic
36
- } from "./chunk-LVXFEW25.js";
36
+ } from "./chunk-H23DEQUR.js";
37
37
  import {
38
38
  apiBaseUrl
39
39
  } from "./chunk-BAWGEGKD.js";
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-CIRQFSHK.js";
11
+ } from "./chunk-L2MAAYAE.js";
12
12
  import {
13
13
  MOTION_BLUR_FINGERPRINT_FIELDS,
14
14
  redactTelemetryString
@@ -0,0 +1,58 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ isPrivateProjectFile,
9
+ realFilePath
10
+ } from "./chunk-YFC5II7G.js";
11
+
12
+ // src/utils/privateProjectFile.ts
13
+ import { homedir } from "os";
14
+ import { isAbsolute, join, relative, sep } from "path";
15
+ var ENV_FILE = /^\.env([._-].*|rc)?$/;
16
+ function isEnvOrGitPath(path) {
17
+ const segments = path.toLowerCase().split(/[\\/]/);
18
+ return segments.includes(".git") || ENV_FILE.test(segments.at(-1) ?? "");
19
+ }
20
+ var SYSTEM_DIRS = ["/etc", "/proc", "/sys", "/dev", "/private/etc"];
21
+ function inPrivateLocation(projectDir, path) {
22
+ const posixPath = path.replaceAll("\\", "/");
23
+ if (SYSTEM_DIRS.some((dir) => posixPath === dir || posixPath.startsWith(`${dir}/`))) return true;
24
+ const segmentsPastProjectFolders = relative(projectDir, path).split(/[\\/]/).filter((segment) => segment !== "..");
25
+ return segmentsPastProjectFolders.some((segment) => segment.startsWith(".")) || inHomeAppData(projectDir, path);
26
+ }
27
+ function isUnder(path, ...dir) {
28
+ const lowerPath = path.toLowerCase();
29
+ const lowerDir = join(homedir(), ...dir).toLowerCase();
30
+ return lowerPath === lowerDir || lowerPath.startsWith(`${lowerDir}${sep}`);
31
+ }
32
+ function homeAppDataFolder(path) {
33
+ if (isUnder(path, "AppData")) return "AppData";
34
+ if (isUnder(path, "Library") && !isUnder(path, "Library", "Mobile Documents")) return "Library";
35
+ return null;
36
+ }
37
+ function inHomeAppData(projectDir, path) {
38
+ const folder = homeAppDataFolder(path);
39
+ return folder !== null && !isUnder(projectDir, folder);
40
+ }
41
+ function isPrivateOutsideFile(projectDir, absPath) {
42
+ const realPath = realFilePath(absPath);
43
+ return isEnvOrGitPath(absPath) || isEnvOrGitPath(realPath) || inPrivateLocation(projectDir, absPath) || inPrivateLocation(realFilePath(projectDir), realPath);
44
+ }
45
+ function linksToPrivateOutsideFile(projectDir, filePath) {
46
+ const fromProject = relative(realFilePath(projectDir), realFilePath(filePath));
47
+ const outside = fromProject === ".." || fromProject.startsWith(`..${sep}`) || isAbsolute(fromProject);
48
+ return outside && isPrivateOutsideFile(projectDir, filePath);
49
+ }
50
+ function isPrivateCompositionFile(projectDir, filePath) {
51
+ return isEnvOrGitPath(relative(projectDir, filePath)) || isEnvOrGitPath(relative(realFilePath(projectDir), realFilePath(filePath))) || isPrivateProjectFile(projectDir, filePath);
52
+ }
53
+
54
+ export {
55
+ isPrivateOutsideFile,
56
+ linksToPrivateOutsideFile,
57
+ isPrivateCompositionFile
58
+ };
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  claimDailyNotice,
9
9
  updateCheckDisabled
10
- } from "./chunk-7BFICJ3S.js";
10
+ } from "./chunk-Y3VS2ULV.js";
11
11
  import {
12
12
  hostAnswers
13
13
  } from "./chunk-BR2JQQC5.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-CPHQTXP5.js";
22
22
  import {
23
23
  VERSION
24
- } from "./chunk-L6LYQ3XT.js";
24
+ } from "./chunk-OT2VLOPB.js";
25
25
 
26
26
  // src/utils/skillsUpdateCheck.ts
27
27
  import { resolve as resolve2 } from "path";
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-AWD2MWWL.js";
44
44
  import {
45
45
  VERSION
46
- } from "./chunk-L6LYQ3XT.js";
46
+ } from "./chunk-OT2VLOPB.js";
47
47
 
48
48
  // src/telemetry/transport.ts
49
49
  import { spawn } from "child_process";
@@ -10,7 +10,7 @@ import {
10
10
  SourceIgnoreError,
11
11
  ownerOf,
12
12
  reviewSentence
13
- } from "./chunk-LVXFEW25.js";
13
+ } from "./chunk-H23DEQUR.js";
14
14
  import {
15
15
  isAuthError
16
16
  } from "./chunk-DMW5SSUN.js";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-QNUALBB6.js";
10
+ } from "./chunk-IL3VIGJ6.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-CIRQFSHK.js";
13
+ } from "./chunk-L2MAAYAE.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
@@ -31,7 +31,7 @@ import {
31
31
  rewriteProjectPinnedScripts,
32
32
  updateChannel,
33
33
  withMeta
34
- } from "./chunk-7BFICJ3S.js";
34
+ } from "./chunk-Y3VS2ULV.js";
35
35
  import {
36
36
  setCommandExitCode
37
37
  } from "./chunk-66W5IWLO.js";
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-CPHQTXP5.js";
41
41
  import {
42
42
  VERSION
43
- } from "./chunk-L6LYQ3XT.js";
43
+ } from "./chunk-OT2VLOPB.js";
44
44
 
45
45
  // src/commands/upgrade.ts
46
46
  import { execFileSync } from "child_process";
@@ -47,14 +47,14 @@ import {
47
47
  runningInstall,
48
48
  updateCommandFor,
49
49
  withMeta
50
- } from "./chunk-7BFICJ3S.js";
50
+ } from "./chunk-Y3VS2ULV.js";
51
51
  import {
52
52
  CONFIG_PATH,
53
53
  withFileLock
54
54
  } from "./chunk-AWD2MWWL.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-L6LYQ3XT.js";
57
+ } from "./chunk-OT2VLOPB.js";
58
58
  import {
59
59
  normalizeErrorMessage
60
60
  } from "./chunk-E63BDV4Z.js";
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.9.36" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.9.36" : "0.0.0-dev";
9
+ var VERSION = true ? "0.9.37" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.9.37" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-YIXPLO7H.js";
23
+ } from "./chunk-23FXEJJT.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-DL4OD7IA.js";
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
229
229
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
230
230
  );
231
231
  }
232
- const { trackFigmaImport } = await import("./telemetry-JR7GV7YP.js");
232
+ const { trackFigmaImport } = await import("./telemetry-EKXAUDKG.js");
233
233
  trackFigmaImport({
234
234
  phase: "asset",
235
235
  reused: results.every((r) => r.reused),
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-Y47OUROH.js";
17
17
  import {
18
18
  resolveProject
19
- } from "./chunk-WWSWN6LS.js";
19
+ } from "./chunk-5I3EM64R.js";
20
20
  import {
21
21
  parseGifLoopArg,
22
22
  parseHlsSegmentSecondsArg,
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  ambiguousIssue,
9
9
  loadBrowserScript
10
- } from "./chunk-RQ3VVADF.js";
10
+ } from "./chunk-SEZQDAYP.js";
11
11
  import {
12
12
  auditClipDurations,
13
13
  shouldIgnoreHttpError,
14
14
  shouldIgnoreRequestFailure
15
- } from "./chunk-ZKRLYB3N.js";
15
+ } from "./chunk-64KB74WF.js";
16
16
  import {
17
17
  serveStaticProjectHtml
18
18
  } from "./chunk-TJN27NAJ.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-H7ECN5WE.js";
23
23
  import {
24
24
  resolveProject
25
- } from "./chunk-WWSWN6LS.js";
25
+ } from "./chunk-5I3EM64R.js";
26
26
  import {
27
27
  pageNavigationTimeoutMs
28
28
  } from "./chunk-K7E6H4DR.js";
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  printDeprecationNotice,
44
44
  withMeta
45
- } from "./chunk-7BFICJ3S.js";
45
+ } from "./chunk-Y3VS2ULV.js";
46
46
  import {
47
47
  failureMessage,
48
48
  jsonFailure
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-JOQR4AP6.js";
19
19
  import {
20
20
  VERSION
21
- } from "./chunk-L6LYQ3XT.js";
21
+ } from "./chunk-OT2VLOPB.js";
22
22
 
23
23
  // src/commands/lambda/prebuiltHandler.ts
24
24
  import { createHash } from "crypto";
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-QNUALBB6.js";
10
+ } from "./chunk-IL3VIGJ6.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-CIRQFSHK.js";
13
+ } from "./chunk-L2MAAYAE.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-JCNPHRGX.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  idempotencyKey,
18
18
  runJob
19
- } from "./chunk-T3FF37DW.js";
19
+ } from "./chunk-VXTCMPNE.js";
20
20
  import {
21
21
  projectOf,
22
22
  runFfmpeg
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-D63KU4CC.js";
9
+ } from "./chunk-EYCOZTOP.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  cliCheckoutLink,
9
9
  pageUrl
10
- } from "./chunk-ACIIUGIC.js";
10
+ } from "./chunk-WMNHHH4G.js";
11
11
  import {
12
12
  Fix
13
13
  } from "./chunk-P3BHYHEJ.js";