hyperframes 0.8.148 → 0.8.149
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/{add-JAHZJYB7.js → add-MG53577L.js} +12 -12
- package/dist/api.d.ts +209 -0
- package/dist/api.js +75 -0
- package/dist/{asset-SJA7DT6Q.js → asset-3GIBXLLL.js} +3 -3
- package/dist/{auth-RR3OIXLH.js → auth-XQMT727H.js} +4 -4
- package/dist/{autoUpdate-KLDV2XWV.js → autoUpdate-CREZJGMU.js} +2 -2
- package/dist/{backgroundChecks-OVL3E2RK.js → backgroundChecks-K3S5QKR3.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-2SAJGOHU.js → batchRender-42AKNX73.js} +4 -4
- package/dist/{beats-HTYS42CC.js → beats-Y7IKETUS.js} +15 -15
- package/dist/{benchmark-CAHP4GLB.js → benchmark-22SAXSO5.js} +15 -15
- package/dist/{browser-M7I67IGX.js → browser-ABNISCC3.js} +14 -13
- package/dist/{capture-P5SNZ6HL.js → capture-DBNHO4WJ.js} +2 -2
- package/dist/{capture-YZQZ5LKM.js → capture-HQG5W42I.js} +11 -11
- package/dist/{catalog-LREZPRJS.js → catalog-KICZFIDX.js} +28 -28
- package/dist/{catch-up-2MLRYAYP.js → catch-up-ZCQUCI45.js} +13 -13
- package/dist/{check-BH6NUR22.js → check-TGXIICEF.js} +34 -34
- package/dist/{checkBrowser-BM6JBFST.js → checkBrowser-3N23I56J.js} +22 -22
- package/dist/{chunk-A6S35NYA.js → chunk-7IEGPJ4P.js} +1 -1
- package/dist/{chunk-A4Q7W4LV.js → chunk-B3XLIBFL.js} +4 -2
- package/dist/{chunk-VHJPGKUW.js → chunk-BNYRD7PQ.js} +1 -1
- package/dist/{chunk-JN4EK6MC.js → chunk-CNPJHUOX.js} +12 -12
- package/dist/{chunk-54TV77W5.js → chunk-CT6ZQRLD.js} +6 -8
- package/dist/chunk-CYFFYK2F.js +56 -0
- package/dist/{chunk-KVGDFUVO.js → chunk-CZQLCBWY.js} +26 -13
- package/dist/{chunk-6IIGT7BX.js → chunk-DNZMBQTH.js} +1 -1
- package/dist/{chunk-SYUGVPYH.js → chunk-DUUFDLC4.js} +1 -1
- package/dist/{chunk-ASEJ2FBO.js → chunk-GESJSXFH.js} +1 -1
- package/dist/chunk-HU2SPFNG.js +103 -0
- package/dist/{chunk-4OA4LDTU.js → chunk-IYLHJV34.js} +1 -1
- package/dist/{chunk-KBB4RG6F.js → chunk-JZIEZCQM.js} +9 -2
- package/dist/{chunk-BB3HJLHD.js → chunk-K44HCHZN.js} +1 -1
- package/dist/chunk-KGPLIH7B.js +127 -0
- package/dist/{chunk-B4P5VDFQ.js → chunk-KMAAOHLO.js} +1 -1
- package/dist/{chunk-RKBES4XP.js → chunk-KUTT3JXL.js} +88 -28
- package/dist/{chunk-OLENCLFE.js → chunk-L274XRWA.js} +79 -6
- package/dist/{chunk-QX26JK43.js → chunk-LACFOFWX.js} +10 -10
- package/dist/chunk-LCILS4AF.js +329 -0
- package/dist/{chunk-ELACLQPC.js → chunk-LTJDUBSQ.js} +1 -1
- package/dist/{chunk-66SAATRI.js → chunk-M5B42RL5.js} +9 -9
- package/dist/{chunk-YQK445YQ.js → chunk-MI6U3OIN.js} +2 -2
- package/dist/{chunk-S7E2I3HT.js → chunk-MXB6CWVH.js} +1 -1
- package/dist/{chunk-KQESKXAC.js → chunk-OMBSUO4T.js} +2 -2
- package/dist/{chunk-UTBQSOEC.js → chunk-P7NTODQE.js} +2 -2
- package/dist/{chunk-BHVFTYSI.js → chunk-PO2SDVQA.js} +4 -1
- package/dist/{chunk-NT7EK6ET.js → chunk-RMIFSBRV.js} +1 -1
- package/dist/{chunk-URYAKNQ2.js → chunk-SFUBSJFP.js} +1 -1
- package/dist/{chunk-74JDPWQ3.js → chunk-TPIG7ZBX.js} +4 -4
- package/dist/{chunk-24GKVAEE.js → chunk-U7SASZC5.js} +10 -10
- package/dist/{chunk-TLGJRK6Q.js → chunk-VGCEMOQA.js} +5 -5
- package/dist/{normalize-U3SL5VG3.js → chunk-VHZ6DL3M.js} +3 -3
- package/dist/chunk-VX4AL2FQ.js +26 -0
- package/dist/{chunk-6VKQ5JT3.js → chunk-WX7VCRM7.js} +2 -2
- package/dist/{chunk-BYSBRF24.js → chunk-XPQSL5VS.js} +5 -120
- package/dist/{chunk-X2G54Y2V.js → chunk-Y475GD4L.js} +4 -4
- package/dist/{chunk-XIL7KT5Q.js → chunk-YDRX42P3.js} +6 -6
- package/dist/{chunk-4SFGME7K.js → chunk-YJDB4FLT.js} +1 -1
- package/dist/{chunk-QATWIE4K.js → chunk-YU2QRNWN.js} +2 -2
- package/dist/{chunk-CNEYCO24.js → chunk-ZKDKFJCK.js} +13 -13
- package/dist/{clean-K7GYTLQE.js → clean-6QP7VAV4.js} +25 -24
- package/dist/cli.js +55 -55
- package/dist/{cloud-I3J5HTN7.js → cloud-5TME5ROM.js} +4 -4
- package/dist/{cloudrun-MJQ363PB.js → cloudrun-F5VVCVF5.js} +4 -4
- package/dist/{compare-LHW6NEFR.js → compare-XPY2EXX6.js} +21 -21
- package/dist/{component-LTPK2D3K.js → component-OPVL3PUX.js} +4 -4
- package/dist/{compositions-QGEHXGIL.js → compositions-WSEOI454.js} +15 -15
- package/dist/{delete-ATNRBUDJ.js → delete-SLMH57VH.js} +11 -11
- package/dist/{doctor-6B76R5BJ.js → doctor-QZW3EKIH.js} +16 -15
- package/dist/{events-33GOPHSS.js → events-6C3ZG7LS.js} +8 -8
- package/dist/{events-BLABPRD5.js → events-FIFWFRGC.js} +6 -6
- package/dist/{feedback-HLXEG7RT.js → feedback-VKXM7YJ5.js} +22 -22
- package/dist/{ffmpeg-5V4FP3R6.js → ffmpeg-TZB5WAYE.js} +3 -2
- package/dist/{figma-T6W7H23L.js → figma-3UYNADNA.js} +3 -3
- package/dist/fontLocalizeCli.js +4 -4
- package/dist/{get-UDMLOTKJ.js → get-VH7VMRVX.js} +11 -11
- package/dist/{grade-compare-P4CHFVBR.js → grade-compare-OSC2YQWN.js} +26 -25
- package/dist/{help-4MW6L6YB.js → help-DCBFEZPT.js} +3 -3
- package/dist/{history-336VM6SH.js → history-XYJMQE26.js} +15 -15
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-FPMIDMD5.js → info-YEHGENAH.js} +15 -15
- package/dist/{init-IWM4PWLO.js → init-64SML7PY.js} +44 -43
- package/dist/{inspect-IIG7756C.js → inspect-GFOQKRJI.js} +19 -19
- package/dist/{keyframes-TWO4BXBA.js → keyframes-ORYFWKBZ.js} +16 -16
- package/dist/{lambda-2JB2QUK2.js → lambda-DRMOJGTC.js} +6 -6
- package/dist/{layout-TPKEKFQQ.js → layout-ZEQBE6UQ.js} +19 -19
- package/dist/{lint-H3KL7KSX.js → lint-67KGFY63.js} +19 -19
- package/dist/{list-LYPO4KRE.js → list-T6OU5ARJ.js} +11 -11
- package/dist/{login-SQQWKWTD.js → login-2PXIGDP7.js} +9 -9
- package/dist/{logout-B4KS4A7S.js → logout-DKJANASY.js} +3 -3
- package/dist/{manager-5ORDVWJB.js → manager-ES2UFT4X.js} +6 -4
- package/dist/{manager-BPSR6D3V.js → manager-GWU5J6RJ.js} +3 -2
- package/dist/{media-treatment-KSRINVUA.js → media-treatment-NAAHID6M.js} +24 -23
- package/dist/{models-WUBF6GDB.js → models-P6XB6RWK.js} +15 -13
- package/dist/{motionShot-STKG4KYQ.js → motionShot-7MHRIV6V.js} +4 -4
- package/dist/{manager-RFZNG5YT.js → normalize-4UDISLPL.js} +14 -20
- package/dist/{normalize-audio-CA47XZ4I.js → normalize-audio-LWNFYR2F.js} +15 -15
- package/dist/{open-B5WYEM3Z.js → open-DAP5C7UD.js} +13 -13
- package/dist/{parakeetRunner-JBK2JPEH.js → parakeetRunner-3ZVFPOD4.js} +13 -23
- package/dist/{pipeline-FEAAD2RJ.js → pipeline-V4YJCPUX.js} +5 -5
- package/dist/{play-2LC5XRM6.js → play-UDCESJO3.js} +26 -26
- package/dist/{preflight-ONF5AJNO.js → preflight-JOD4OXGC.js} +5 -4
- package/dist/{present-XKYF3VGC.js → present-DXTHBH3F.js} +23 -23
- package/dist/{preview-WDPZRHE5.js → preview-YHXKRXKB.js} +29 -27
- package/dist/{publish-3OYXNY44.js → publish-UEFBFGV3.js} +15 -15
- package/dist/{refresh-PVHBEABE.js → refresh-MGCVWX56.js} +3 -3
- package/dist/{remove-background-F6QTJIPZ.js → remove-background-FMV6IDOH.js} +34 -30
- package/dist/{render-JKB6GZDB.js → render-N7QGX6RJ.js} +28 -28
- package/dist/{render-SC77I7FT.js → render-SYC4RPGT.js} +4 -4
- package/dist/{render-QQ7NUREG.js → render-ZTXNPRGF.js} +51 -50
- package/dist/{render-batch-4F44JFAB.js → render-batch-SZRPCRUJ.js} +4 -4
- package/dist/renderSetupWorker.js +4 -3
- package/dist/{sherpa-FOXB4XBN.js → sherpa-M4Z2Q5Y2.js} +11 -10
- package/dist/sherpaWorker.js +3 -1
- package/dist/{skills-GG756RCG.js → skills-NEHNSHZK.js} +15 -15
- package/dist/{skillsUpdateCheck-N2LDCNAS.js → skillsUpdateCheck-O77QR72A.js} +3 -3
- package/dist/{snapshot-2LDOY65W.js → snapshot-GDVXFBVY.js} +40 -39
- package/dist/{staticProjectServer-QBB6WUAY.js → staticProjectServer-3D2NXQ6W.js} +5 -5
- package/dist/{status-PTKNQD2E.js → status-NBRMGL7D.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-BBBg-uvu.js → hyperframes-player-C-2YwYre.js} +1 -1
- package/dist/studio/assets/{index-BJIpZeuk.js → index-ByJU5J6n.js} +4 -4
- package/dist/studio/assets/{index-BXJLeCqB.js → index-BybGk67U.js} +1 -1
- package/dist/studio/assets/{index-DARhiE_i.js → index-Cfs2r3fz.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-VPTZF2AW.js → studio-api-XIBDLRHB.js} +2 -2
- package/dist/{studioServer-VZKX2MG7.js → studioServer-QIQK47UN.js} +45 -44
- package/dist/{synthesize-UCI4X5O7.js → synthesize-22B7L5GX.js} +6 -6
- package/dist/{telemetry-76XND6XK.js → telemetry-565KDZUW.js} +8 -8
- package/dist/{timeline-UJLTA4AX.js → timeline-E6XB7I6W.js} +18 -18
- package/dist/{tokens-VMWANYJY.js → tokens-3ZAJENSE.js} +3 -3
- package/dist/transcribe-WODP3T77.js +332 -0
- package/dist/{transcribe-JNOG667L.js → transcribe-XWQQCCBG.js} +9 -8
- package/dist/{tts-B6AHFQEO.js → tts-QSAQZVEZ.js} +3 -3
- package/dist/{updateCheck-WI3HYM72.js → updateCheck-QPYU4GRL.js} +2 -2
- package/dist/{upgrade-52RIOKFX.js → upgrade-2FJ5ZEN6.js} +5 -5
- package/dist/{validate-MJVNR7YY.js → validate-SP2VGNEI.js} +16 -16
- package/package.json +8 -1
- package/dist/chunk-6IHWCZ3W.js +0 -54
- package/dist/chunk-SQLK7SJL.js +0 -88
- package/dist/renderCancellation-7OEBNE2L.js +0 -43
- package/dist/transcribe-FD7A2SH3.js +0 -466
- package/dist/{bundleWithLocalizedFonts-EKRXJBXU.js → bundleWithLocalizedFonts-OE5ZI4JE.js} +3 -3
- package/dist/{chunk-DKSDVDXG.js → chunk-NAMGMP3R.js} +3 -3
- package/dist/{chunk-C24LU5XD.js → chunk-NKM53WMI.js} +5 -5
- package/dist/{chunk-O3EALI4M.js → chunk-XHBX7QN6.js} +3 -3
- package/dist/{policies-4FEXMXPK.js → policies-DCSIM4AB.js} +3 -3
- package/dist/{screenshotCapture-3JXXUZND.js → screenshotCapture-TEUIWXWN.js} +3 -3
- package/dist/{telemetry-W5AKPI4R.js → telemetry-CQYHCCPL.js} +3 -3
- package/dist/{video-72VNEQEI.js → video-RVNPFEA6.js} +3 -3
|
@@ -6,17 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
serveStaticProjectHtml
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
resolveProject
|
|
12
|
-
} from "./chunk-URYAKNQ2.js";
|
|
9
|
+
} from "./chunk-K44HCHZN.js";
|
|
13
10
|
import {
|
|
14
11
|
AUDIT_SEEK_OPTIONS,
|
|
15
12
|
installPageFunctionGuard,
|
|
16
13
|
seekCompositionTimeline,
|
|
17
14
|
waitForCompositionFonts,
|
|
18
15
|
waitForRuntimeReady
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TPIG7ZBX.js";
|
|
20
17
|
import {
|
|
21
18
|
launchManagedBrowser,
|
|
22
19
|
resolveManagedGpuMode
|
|
@@ -24,6 +21,9 @@ import {
|
|
|
24
21
|
import {
|
|
25
22
|
resolveDiagnosticNavigationTimeoutMs
|
|
26
23
|
} from "./chunk-KQHJKJ3V.js";
|
|
24
|
+
import {
|
|
25
|
+
resolveProject
|
|
26
|
+
} from "./chunk-SFUBSJFP.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
failCommand,
|
|
32
32
|
setCommandExitCode
|
|
33
33
|
} from "./chunk-PBN6GBJE.js";
|
|
34
|
+
import {
|
|
35
|
+
c
|
|
36
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
34
37
|
import {
|
|
35
38
|
printDeprecationNotice,
|
|
36
39
|
withMeta
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GESJSXFH.js";
|
|
38
41
|
import {
|
|
39
42
|
normalizeErrorMessage
|
|
40
43
|
} from "./chunk-KNU5COPB.js";
|
|
41
|
-
import {
|
|
42
|
-
c
|
|
43
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
44
44
|
|
|
45
45
|
// src/commands/layout.ts
|
|
46
46
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -727,7 +727,7 @@ async function alignViewportToComposition(page, url) {
|
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
729
|
async function runLayoutAudit(projectDir, opts) {
|
|
730
|
-
const { ensureBrowser } = await import("./manager-
|
|
730
|
+
const { ensureBrowser } = await import("./manager-GWU5J6RJ.js");
|
|
731
731
|
const puppeteer = await import("puppeteer-core");
|
|
732
732
|
const { buildChromeArgs } = await import("./src-VMTHSARJ.js");
|
|
733
733
|
const {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LTJDUBSQ.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
@@ -29,13 +29,16 @@ import {
|
|
|
29
29
|
} from "./chunk-K35E45SI.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Y475GD4L.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
36
36
|
import {
|
|
37
37
|
failCommand
|
|
38
38
|
} from "./chunk-PBN6GBJE.js";
|
|
39
|
+
import {
|
|
40
|
+
c
|
|
41
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
39
42
|
import {
|
|
40
43
|
ITEM_TYPE_DIRS
|
|
41
44
|
} from "./chunk-AHBYQRGI.js";
|
|
@@ -46,9 +49,6 @@ import {
|
|
|
46
49
|
import {
|
|
47
50
|
parseHTML
|
|
48
51
|
} from "./chunk-SDYDNHEE.js";
|
|
49
|
-
import {
|
|
50
|
-
c
|
|
51
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
52
52
|
|
|
53
53
|
// src/commands/add.ts
|
|
54
54
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -7,7 +7,6 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseHTML
|
|
9
9
|
} from "./chunk-SDYDNHEE.js";
|
|
10
|
-
import "./chunk-M2WBOQ2Q.js";
|
|
11
10
|
|
|
12
11
|
// src/whisper/normalize.ts
|
|
13
12
|
import { readFileSync, readdirSync, writeFileSync } from "fs";
|
|
@@ -330,11 +329,12 @@ function patchCaptionHtml(dir, words) {
|
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
}
|
|
332
|
+
|
|
333
333
|
export {
|
|
334
334
|
detectFormat,
|
|
335
|
+
wordsToCues,
|
|
335
336
|
formatSrt,
|
|
336
337
|
formatVtt,
|
|
337
338
|
loadTranscript,
|
|
338
|
-
patchCaptionHtml
|
|
339
|
-
wordsToCues
|
|
339
|
+
patchCaptionHtml
|
|
340
340
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
sherpaParakeetInstalled,
|
|
9
|
+
sherpaUnsupportedReason
|
|
10
|
+
} from "./chunk-CT6ZQRLD.js";
|
|
11
|
+
import {
|
|
12
|
+
findParakeet
|
|
13
|
+
} from "./chunk-JZIEZCQM.js";
|
|
14
|
+
|
|
15
|
+
// src/whisper/parakeetRunner.ts
|
|
16
|
+
function parakeetRunner({
|
|
17
|
+
unsupported = sherpaUnsupportedReason(),
|
|
18
|
+
skipSherpa = false
|
|
19
|
+
} = {}) {
|
|
20
|
+
if (!skipSherpa && !unsupported && sherpaParakeetInstalled()) return "sherpa";
|
|
21
|
+
return findParakeet() ? "parakeet-mlx" : null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
parakeetRunner
|
|
26
|
+
};
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RMIFSBRV.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.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-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-565KDZUW.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -7,122 +7,9 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
normalizeErrorMessage
|
|
9
9
|
} from "./chunk-KNU5COPB.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { readdirSync, readFileSync } from "fs";
|
|
14
|
-
function processIsAlive(pid) {
|
|
15
|
-
try {
|
|
16
|
-
process.kill(pid, 0);
|
|
17
|
-
return true;
|
|
18
|
-
} catch (error) {
|
|
19
|
-
return error?.code !== "ESRCH";
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function processGroupIsAlive(pid) {
|
|
23
|
-
if (process.platform === "linux") {
|
|
24
|
-
try {
|
|
25
|
-
return readdirSync("/proc").some((entry) => {
|
|
26
|
-
if (!/^\d+$/.test(entry)) return false;
|
|
27
|
-
try {
|
|
28
|
-
const stat = readFileSync(`/proc/${entry}/stat`, "utf8");
|
|
29
|
-
const fields = stat.slice(stat.lastIndexOf(") ") + 2).split(/\s+/);
|
|
30
|
-
return fields[2] === String(pid) && fields[0] !== "Z" && fields[0] !== "X";
|
|
31
|
-
} catch {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
} catch {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return processIsAlive(-pid);
|
|
39
|
-
}
|
|
40
|
-
function waitForDelay(delayMs) {
|
|
41
|
-
return new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
42
|
-
}
|
|
43
|
-
async function waitForProcessGroupExit(pid) {
|
|
44
|
-
while (processGroupIsAlive(pid)) await waitForDelay(20);
|
|
45
|
-
}
|
|
46
|
-
function windowsProcessTreeKillArgs(pid) {
|
|
47
|
-
return ["/PID", String(pid), "/T", "/F"];
|
|
48
|
-
}
|
|
49
|
-
function terminateWindowsProcessTree(pid, spawnProcess = (command, args, options) => spawn(command, [...args], options)) {
|
|
50
|
-
return new Promise((resolve, reject) => {
|
|
51
|
-
const killer = spawnProcess("taskkill", windowsProcessTreeKillArgs(pid), {
|
|
52
|
-
stdio: "ignore",
|
|
53
|
-
windowsHide: true
|
|
54
|
-
});
|
|
55
|
-
killer.once("error", reject);
|
|
56
|
-
killer.once("close", (status) => {
|
|
57
|
-
if (status === 0) resolve();
|
|
58
|
-
else reject(new Error(`taskkill exited with status ${status ?? "unknown"}`));
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function signalProcessGroup(pid, signal) {
|
|
63
|
-
try {
|
|
64
|
-
process.kill(-pid, signal);
|
|
65
|
-
} catch {
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function getDescendants(pid) {
|
|
69
|
-
let children;
|
|
70
|
-
try {
|
|
71
|
-
const raw = execFileSync("pgrep", ["-P", String(pid)], {
|
|
72
|
-
encoding: "utf8",
|
|
73
|
-
timeout: 2e3
|
|
74
|
-
}).trim();
|
|
75
|
-
children = raw.split(/\r?\n/).map(Number).filter((childPid) => Number.isInteger(childPid) && childPid > 0);
|
|
76
|
-
} catch {
|
|
77
|
-
return [];
|
|
78
|
-
}
|
|
79
|
-
return children.flatMap((childPid) => [childPid, ...getDescendants(childPid)]);
|
|
80
|
-
}
|
|
81
|
-
function signalProcesses(pids, signal) {
|
|
82
|
-
for (const pid of pids) {
|
|
83
|
-
try {
|
|
84
|
-
process.kill(pid, signal);
|
|
85
|
-
} catch {
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async function terminatePidTree(pid, signal) {
|
|
90
|
-
const pids = [...getDescendants(pid).reverse(), pid];
|
|
91
|
-
signalProcesses(pids, signal);
|
|
92
|
-
if (signal === "SIGKILL") return "SIGKILL";
|
|
93
|
-
await waitForDelay(500);
|
|
94
|
-
const survivors = pids.filter(processIsAlive);
|
|
95
|
-
signalProcesses(survivors, "SIGKILL");
|
|
96
|
-
return survivors.length > 0 ? "SIGKILL" : "SIGTERM";
|
|
97
|
-
}
|
|
98
|
-
async function terminateProcessGroup(pid, signal) {
|
|
99
|
-
signalProcessGroup(pid, signal);
|
|
100
|
-
if (signal === "SIGKILL") {
|
|
101
|
-
await waitForProcessGroupExit(pid);
|
|
102
|
-
return "SIGKILL";
|
|
103
|
-
}
|
|
104
|
-
await Promise.race([waitForProcessGroupExit(pid), waitForDelay(250)]);
|
|
105
|
-
if (!processGroupIsAlive(pid)) return "SIGTERM";
|
|
106
|
-
signalProcessGroup(pid, "SIGKILL");
|
|
107
|
-
await waitForProcessGroupExit(pid);
|
|
108
|
-
return "SIGKILL";
|
|
109
|
-
}
|
|
110
|
-
async function terminateProcessTree(pid, options = {}) {
|
|
111
|
-
if (process.platform === "win32") {
|
|
112
|
-
try {
|
|
113
|
-
await terminateWindowsProcessTree(pid, options.spawnProcess);
|
|
114
|
-
} catch (error) {
|
|
115
|
-
try {
|
|
116
|
-
options.child?.kill("SIGKILL");
|
|
117
|
-
} catch {
|
|
118
|
-
}
|
|
119
|
-
if (options.child) throw error;
|
|
120
|
-
}
|
|
121
|
-
return "SIGKILL";
|
|
122
|
-
}
|
|
123
|
-
const signal = options.signal ?? "SIGTERM";
|
|
124
|
-
return options.processGroup ? terminateProcessGroup(pid, signal) : terminatePidTree(pid, signal);
|
|
125
|
-
}
|
|
10
|
+
import {
|
|
11
|
+
terminateProcessTree
|
|
12
|
+
} from "./chunk-KGPLIH7B.js";
|
|
126
13
|
|
|
127
14
|
// src/renderSetupWorkerLifecycle.ts
|
|
128
15
|
var RENDER_SETUP_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
@@ -176,7 +63,7 @@ function renderSetupFailureFrom(stderr) {
|
|
|
176
63
|
}
|
|
177
64
|
|
|
178
65
|
// src/utils/cancellableProcess.ts
|
|
179
|
-
import { spawn
|
|
66
|
+
import { spawn } from "child_process";
|
|
180
67
|
import { fileURLToPath } from "url";
|
|
181
68
|
var CancellableProcessError = class extends Error {
|
|
182
69
|
code;
|
|
@@ -209,7 +96,7 @@ function runCancellableProcess(command, args, options = {}) {
|
|
|
209
96
|
windowsHide: true,
|
|
210
97
|
detached: process.platform !== "win32"
|
|
211
98
|
};
|
|
212
|
-
child =
|
|
99
|
+
child = spawn(command, [...args], spawnOptions);
|
|
213
100
|
} catch (error) {
|
|
214
101
|
reject(error);
|
|
215
102
|
return;
|
|
@@ -363,8 +250,6 @@ async function runRenderSetupWorker(mode, input, options) {
|
|
|
363
250
|
}
|
|
364
251
|
|
|
365
252
|
export {
|
|
366
|
-
processIsAlive,
|
|
367
|
-
terminateProcessTree,
|
|
368
253
|
installRenderSetupSignalHandlers,
|
|
369
254
|
renderSetupResultLine,
|
|
370
255
|
renderSetupErrorLine,
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LACFOFWX.js";
|
|
12
12
|
import {
|
|
13
13
|
getPowerState
|
|
14
14
|
} from "./chunk-XBSPQ52S.js";
|
|
15
15
|
import {
|
|
16
16
|
CliRuntimeError
|
|
17
17
|
} from "./chunk-PBN6GBJE.js";
|
|
18
|
-
import {
|
|
19
|
-
redactTelemetryString
|
|
20
|
-
} from "./chunk-T76PLPD6.js";
|
|
21
18
|
import {
|
|
22
19
|
readConfig
|
|
23
20
|
} from "./chunk-XUXGIA7H.js";
|
|
21
|
+
import {
|
|
22
|
+
redactTelemetryString
|
|
23
|
+
} from "./chunk-T76PLPD6.js";
|
|
24
24
|
|
|
25
25
|
// src/utils/feedbackRating.ts
|
|
26
26
|
var FEEDBACK_RATING_SCALE = 10;
|
|
@@ -7,20 +7,20 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y475GD4L.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LACFOFWX.js";
|
|
14
14
|
import {
|
|
15
15
|
detectAgentRuntime
|
|
16
16
|
} from "./chunk-XBSPQ52S.js";
|
|
17
|
+
import {
|
|
18
|
+
c
|
|
19
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
17
20
|
import {
|
|
18
21
|
readConfig,
|
|
19
22
|
writeConfig
|
|
20
23
|
} from "./chunk-XUXGIA7H.js";
|
|
21
|
-
import {
|
|
22
|
-
c
|
|
23
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
24
24
|
|
|
25
25
|
// src/telemetry/feedback.ts
|
|
26
26
|
import * as readline from "readline";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-OXRG57F2.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-TZB5WAYE.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
refreshIfNeeded
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KMAAOHLO.js";
|
|
10
10
|
import {
|
|
11
11
|
buildAuthHeaders,
|
|
12
12
|
envCredentialVar,
|
|
13
13
|
isAuthError,
|
|
14
14
|
isTokenExpired,
|
|
15
15
|
tryResolveCredential
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAMGMP3R.js";
|
|
17
17
|
import {
|
|
18
18
|
CSS_URL_RE,
|
|
19
19
|
isNonRelativeUrl,
|
|
@@ -14,13 +14,9 @@ import {
|
|
|
14
14
|
describeRejectedPythonOverride,
|
|
15
15
|
hasPythonModules
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
|
-
import {
|
|
18
|
-
OPTIONAL_PACKAGES,
|
|
19
|
-
installedOptionalPackageVersion
|
|
20
|
-
} from "./chunk-3DKN5WKL.js";
|
|
21
17
|
import {
|
|
22
18
|
runEnvironmentChecks
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-M5B42RL5.js";
|
|
24
20
|
import {
|
|
25
21
|
getAvailableMemoryMb,
|
|
26
22
|
getFreeDiskMb,
|
|
@@ -31,25 +27,29 @@ import {
|
|
|
31
27
|
defineCommand
|
|
32
28
|
} from "./chunk-S3S4TGEH.js";
|
|
33
29
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
30
|
+
c
|
|
31
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
36
32
|
import {
|
|
37
33
|
getUpdateMeta,
|
|
38
34
|
withMeta
|
|
39
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GESJSXFH.js";
|
|
40
36
|
import {
|
|
41
37
|
CONFIG_PATH,
|
|
42
38
|
withFileLock
|
|
43
39
|
} from "./chunk-XUXGIA7H.js";
|
|
44
40
|
import {
|
|
45
41
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OMBSUO4T.js";
|
|
43
|
+
import {
|
|
44
|
+
OPTIONAL_PACKAGES,
|
|
45
|
+
installedOptionalPackageVersion
|
|
46
|
+
} from "./chunk-3DKN5WKL.js";
|
|
47
|
+
import {
|
|
48
|
+
resolveExtractCacheDir
|
|
49
|
+
} from "./chunk-VC7JBNPS.js";
|
|
47
50
|
import {
|
|
48
51
|
normalizeErrorMessage
|
|
49
52
|
} from "./chunk-KNU5COPB.js";
|
|
50
|
-
import {
|
|
51
|
-
c
|
|
52
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/doctor.ts
|
|
55
55
|
import { execFileSync, execSync } from "child_process";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-ES2UFT4X.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -6,17 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZKDKFJCK.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
12
|
import {
|
|
13
13
|
loadProducer
|
|
14
14
|
} from "./chunk-ZK3BQXHC.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
formatBytes
|
|
18
|
-
} from "./chunk-K2FLNJVB.js";
|
|
19
|
-
import "./chunk-C24LU5XD.js";
|
|
15
|
+
import "./chunk-NKM53WMI.js";
|
|
20
16
|
import "./chunk-2HWB4TCI.js";
|
|
21
17
|
import {
|
|
22
18
|
DEFAULT_HISTORY_ROOT,
|
|
@@ -29,21 +25,37 @@ import {
|
|
|
29
25
|
cleanupProxyCache
|
|
30
26
|
} from "./chunk-KMJLHHBF.js";
|
|
31
27
|
import "./chunk-AIJS74LG.js";
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
import "./chunk-
|
|
28
|
+
import {
|
|
29
|
+
formatBytes
|
|
30
|
+
} from "./chunk-K2FLNJVB.js";
|
|
31
|
+
import "./chunk-M5B42RL5.js";
|
|
36
32
|
import "./chunk-374QQGBQ.js";
|
|
37
33
|
import "./chunk-XBSPQ52S.js";
|
|
38
|
-
import "./chunk-AMKC3AXA.js";
|
|
39
34
|
import {
|
|
40
35
|
defineCommand
|
|
41
36
|
} from "./chunk-S3S4TGEH.js";
|
|
42
37
|
import {
|
|
43
38
|
setCommandExitCode
|
|
44
39
|
} from "./chunk-PBN6GBJE.js";
|
|
40
|
+
import {
|
|
41
|
+
c
|
|
42
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
45
43
|
import "./chunk-EOOEC32M.js";
|
|
46
44
|
import "./chunk-TJSTGSAW.js";
|
|
45
|
+
import "./chunk-7IEGPJ4P.js";
|
|
46
|
+
import {
|
|
47
|
+
withMeta
|
|
48
|
+
} from "./chunk-GESJSXFH.js";
|
|
49
|
+
import "./chunk-K4WIOZFP.js";
|
|
50
|
+
import "./chunk-XUXGIA7H.js";
|
|
51
|
+
import "./chunk-WERLJGIC.js";
|
|
52
|
+
import "./chunk-ISN5GRYI.js";
|
|
53
|
+
import "./chunk-OMBSUO4T.js";
|
|
54
|
+
import "./chunk-3DKN5WKL.js";
|
|
55
|
+
import "./chunk-EOVYQ3IG.js";
|
|
56
|
+
import "./chunk-6BEFEWFB.js";
|
|
57
|
+
import "./chunk-DUUFDLC4.js";
|
|
58
|
+
import "./chunk-AMKC3AXA.js";
|
|
47
59
|
import {
|
|
48
60
|
EXTRACT_CACHE_MIN_AGE_MS,
|
|
49
61
|
directorySizeBytes,
|
|
@@ -63,8 +75,7 @@ import "./chunk-DPVXBVLL.js";
|
|
|
63
75
|
import "./chunk-T76PLPD6.js";
|
|
64
76
|
import "./chunk-FXMKHHPO.js";
|
|
65
77
|
import "./chunk-RQVDTPGD.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-BYSBRF24.js";
|
|
78
|
+
import "./chunk-XPQSL5VS.js";
|
|
68
79
|
import "./chunk-TWWSYAKJ.js";
|
|
69
80
|
import "./chunk-JDB65PPT.js";
|
|
70
81
|
import "./chunk-IWFLMU2N.js";
|
|
@@ -75,19 +86,9 @@ import "./chunk-BSQ7XANM.js";
|
|
|
75
86
|
import "./chunk-SDYDNHEE.js";
|
|
76
87
|
import "./chunk-2PSPARWP.js";
|
|
77
88
|
import "./chunk-IXLUTE6N.js";
|
|
78
|
-
import {
|
|
79
|
-
withMeta
|
|
80
|
-
} from "./chunk-ASEJ2FBO.js";
|
|
81
|
-
import "./chunk-K4WIOZFP.js";
|
|
82
|
-
import "./chunk-XUXGIA7H.js";
|
|
83
|
-
import "./chunk-WERLJGIC.js";
|
|
84
|
-
import "./chunk-ISN5GRYI.js";
|
|
85
|
-
import "./chunk-KQESKXAC.js";
|
|
86
89
|
import "./chunk-KNU5COPB.js";
|
|
90
|
+
import "./chunk-KGPLIH7B.js";
|
|
87
91
|
import "./chunk-3GXQPCJC.js";
|
|
88
|
-
import {
|
|
89
|
-
c
|
|
90
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
91
92
|
import "./chunk-M2WBOQ2Q.js";
|
|
92
93
|
|
|
93
94
|
// src/commands/clean.ts
|