forge-terminal 0.5.9 → 0.7.0
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/README.md +53 -16
- package/dist/chunks/{about-credits-32BUKO4K.js → about-credits-PWTKZG3Y.js} +1 -1
- package/dist/chunks/args-RHIBM3R3.js +3 -0
- package/dist/chunks/{available-TNMISSBA.js → available-FPBRQ3LS.js} +1 -1
- package/dist/chunks/boot-PHDTJAFT.js +3 -0
- package/dist/chunks/{catalog-FMHWWMUX.js → catalog-G44MXIAF.js} +1 -1
- package/dist/chunks/check-BFHBPCGW.js +3 -0
- package/dist/chunks/chunk-2YU4EI24.js +3 -0
- package/dist/chunks/chunk-3IAJTXYM.js +3 -0
- package/dist/chunks/chunk-3OCPO5V6.js +3 -0
- package/dist/chunks/chunk-42IEPG2K.js +3 -0
- package/dist/chunks/{chunk-WE6KP4FR.js → chunk-4AL5QJLM.js} +1 -1
- package/dist/chunks/chunk-56B3VZCM.js +3 -0
- package/dist/chunks/chunk-56QHX7QR.js +3 -0
- package/dist/chunks/chunk-6NCN7OJ5.js +7 -0
- package/dist/chunks/chunk-6PUV4HSU.js +3 -0
- package/dist/chunks/chunk-72UR37EG.js +3 -0
- package/dist/chunks/chunk-7NP76V4U.js +3 -0
- package/dist/chunks/{chunk-7XFLG32B.js → chunk-AETM2PCZ.js} +1 -1
- package/dist/chunks/chunk-BQV3DSUZ.js +23 -0
- package/dist/chunks/chunk-BSFBZBAI.js +16 -0
- package/dist/chunks/chunk-DC2DHMXO.js +3 -0
- package/dist/chunks/{chunk-WBW6G4N6.js → chunk-DKHBJ52G.js} +1 -1
- package/dist/chunks/chunk-E5VPEBUQ.js +3 -0
- package/dist/chunks/chunk-EYOO35US.js +3 -0
- package/dist/chunks/chunk-F4TUCI6D.js +3 -0
- package/dist/chunks/{chunk-MF3KKEFB.js → chunk-FEJSM3E4.js} +1 -1
- package/dist/chunks/chunk-FGR6QCG5.js +3 -0
- package/dist/chunks/{chunk-W53XNVNH.js → chunk-G2V33TMN.js} +1 -1
- package/dist/chunks/{chunk-ILQDMVJR.js → chunk-G4M2XYFJ.js} +1 -1
- package/dist/chunks/chunk-H332YFSO.js +4 -0
- package/dist/chunks/chunk-HAOKWLD3.js +4 -0
- package/dist/chunks/chunk-I2LPGKUU.js +3 -0
- package/dist/chunks/{chunk-YRXJDFP3.js → chunk-I3C3SRF2.js} +1 -1
- package/dist/chunks/{chunk-SM735FG7.js → chunk-ID4GJZJ6.js} +1 -1
- package/dist/chunks/chunk-ID75X37Z.js +3 -0
- package/dist/chunks/chunk-JPASVE56.js +3 -0
- package/dist/chunks/chunk-JZM37DG2.js +3 -0
- package/dist/chunks/chunk-KPUKMAYK.js +19 -0
- package/dist/chunks/{chunk-SZRSAL64.js → chunk-M7HB4L6L.js} +1 -1
- package/dist/chunks/chunk-NUCGWLOY.js +8 -0
- package/dist/chunks/{chunk-4KGC5ZBZ.js → chunk-OK56WDPA.js} +1 -1
- package/dist/chunks/{chunk-I25E2XDH.js → chunk-OLKPV4WO.js} +1 -1
- package/dist/chunks/chunk-OPDC577C.js +3 -0
- package/dist/chunks/chunk-OQ6DTE56.js +3 -0
- package/dist/chunks/chunk-PA7AG2NK.js +55 -0
- package/dist/chunks/chunk-PNPAHKJR.js +3 -0
- package/dist/chunks/chunk-PON65UTS.js +3 -0
- package/dist/chunks/{chunk-GVVQP3LF.js → chunk-PXCEMDOY.js} +2 -2
- package/dist/chunks/chunk-QMNERJL2.js +3 -0
- package/dist/chunks/{chunk-OXDRJO4V.js → chunk-R6QVLPGC.js} +1 -1
- package/dist/chunks/chunk-S44LAUHZ.js +3 -0
- package/dist/chunks/chunk-SCJ2QXZF.js +80 -0
- package/dist/chunks/{chunk-4MJEEEFA.js → chunk-SJIDFYPT.js} +1 -1
- package/dist/chunks/{chunk-3374PCO5.js → chunk-TQEGSODD.js} +1 -1
- package/dist/chunks/chunk-ULX4ZD2Y.js +3 -0
- package/dist/chunks/chunk-W6QOV4RP.js +6 -0
- package/dist/chunks/chunk-WWWWXOM4.js +3 -0
- package/dist/chunks/{chunk-6RCS3KBP.js → chunk-XIR3VWQY.js} +1 -1
- package/dist/chunks/chunk-XUJLUOGD.js +6 -0
- package/dist/chunks/chunk-Y3DMALHT.js +66 -0
- package/dist/chunks/chunk-YXV3PYVI.js +3 -0
- package/dist/chunks/chunk-Z3PQ5TMU.js +3 -0
- package/dist/chunks/chunk-ZL7E7PZN.js +4 -0
- package/dist/chunks/clip-command-6Q7BTXR5.js +3 -0
- package/dist/chunks/clipboard-QWNPA3GM.js +3 -0
- package/dist/chunks/colour-7HPH6KTY.js +3 -0
- package/dist/chunks/command-JTK4IOS7.js +3 -0
- package/dist/chunks/config-command-DIQTU7DM.js +3 -0
- package/dist/chunks/continue-editing-FTUY6UFG.js +3 -0
- package/dist/chunks/decoded-IXLPWTGZ.js +3 -0
- package/dist/chunks/{entry-BZYPZONY.js → entry-ZF7D32ZI.js} +2 -2
- package/dist/chunks/execute-RP7ZMWLZ.js +3 -0
- package/dist/chunks/extensions-YOZ4IF4E.js +3 -0
- package/dist/chunks/{extensions-command-JZSOQJEV.js → extensions-command-O7UHUJ3Y.js} +1 -1
- package/dist/chunks/ffmpeg-2ZP3GXJX.js +3 -0
- package/dist/chunks/image-6A7FXKIR.js +3 -0
- package/dist/chunks/{install-KGFOAQCU.js → install-4L7JGP3X.js} +1 -1
- package/dist/chunks/install-XJAPLIH2.js +3 -0
- package/dist/chunks/launch-2KSJ4GGN.js +18 -0
- package/dist/chunks/link-inputs-GTEW6ZH4.js +3 -0
- package/dist/chunks/lock-KNR7XS7Q.js +3 -0
- package/dist/chunks/manager-YH5XAMZA.js +4 -0
- package/dist/chunks/{needed-DYERJ72M.js → needed-TB3OC76N.js} +1 -1
- package/dist/chunks/notify-UD7FQAWX.js +3 -0
- package/dist/chunks/{own-2QGMHSKL.js → own-KUGTZ3BV.js} +1 -1
- package/dist/chunks/{paths-6OENILJ4.js → paths-BBUKTDDP.js} +1 -1
- package/dist/chunks/pdfium-MJ65YOXW.js +3 -0
- package/dist/chunks/preferences-7S7YZOFK.js +3 -0
- package/dist/chunks/preset-command-KMKR6KMG.js +3 -0
- package/dist/chunks/registry-657JRJR5.js +3 -0
- package/dist/chunks/run-VJDF5WRF.js +3 -0
- package/dist/chunks/server-6PH2DSFW.js +81 -0
- package/dist/chunks/signals-VY2XE3LV.js +3 -0
- package/dist/chunks/text-layer-PFIDCTEL.js +5 -0
- package/dist/chunks/theme-FVQOSLPB.js +3 -0
- package/dist/chunks/transcribe-FUN2SKRN.js +3 -0
- package/dist/chunks/transcribe-command-KNSUHROE.js +3 -0
- package/dist/chunks/update-command-X4OSYETA.js +3 -0
- package/dist/chunks/update-note-LV7G4CHE.js +3 -0
- package/dist/chunks/video-link-CF7GUA6V.js +3 -0
- package/dist/chunks/watch-command-3C4AWM7A.js +3 -0
- package/dist/helpers/forge-transcribe +0 -0
- package/dist/index.js +16 -15
- package/package.json +15 -3
- package/skills/forge/SKILL.md +7 -3
- package/dist/chunks/args-ZVZQR23M.js +0 -3
- package/dist/chunks/boot-2YFTQOMG.js +0 -3
- package/dist/chunks/check-B6NP7BEM.js +0 -3
- package/dist/chunks/chunk-4RNVZQRC.js +0 -3
- package/dist/chunks/chunk-6KUWZQGG.js +0 -3
- package/dist/chunks/chunk-6MWJO3GB.js +0 -4
- package/dist/chunks/chunk-6PEIZZNE.js +0 -3
- package/dist/chunks/chunk-7FW7JX74.js +0 -36
- package/dist/chunks/chunk-7XDMC7FL.js +0 -72
- package/dist/chunks/chunk-AR3M2PLK.js +0 -3
- package/dist/chunks/chunk-ASLKQXZ2.js +0 -3
- package/dist/chunks/chunk-BKLPRILS.js +0 -3
- package/dist/chunks/chunk-EEQSUBBL.js +0 -3
- package/dist/chunks/chunk-FAUL5L2W.js +0 -3
- package/dist/chunks/chunk-FBVRKMAF.js +0 -3
- package/dist/chunks/chunk-GHYODKA3.js +0 -3
- package/dist/chunks/chunk-H3DIRJFE.js +0 -3
- package/dist/chunks/chunk-HTA25PO2.js +0 -3
- package/dist/chunks/chunk-J7FLFHQJ.js +0 -3
- package/dist/chunks/chunk-K253E723.js +0 -3
- package/dist/chunks/chunk-KH5DHZ2U.js +0 -8
- package/dist/chunks/chunk-L44NRTP4.js +0 -3
- package/dist/chunks/chunk-N32JL4UI.js +0 -3
- package/dist/chunks/chunk-N6RCLJE6.js +0 -4
- package/dist/chunks/chunk-NDYMC3HY.js +0 -66
- package/dist/chunks/chunk-NMECUMJD.js +0 -7
- package/dist/chunks/chunk-OQBIYNGK.js +0 -6
- package/dist/chunks/chunk-Q6KQWJ4J.js +0 -3
- package/dist/chunks/chunk-QQV7CCAY.js +0 -3
- package/dist/chunks/chunk-RCWFUBTG.js +0 -3
- package/dist/chunks/chunk-TFGK7IRZ.js +0 -19
- package/dist/chunks/chunk-TGC24JEW.js +0 -4
- package/dist/chunks/chunk-TLHUFIXD.js +0 -3
- package/dist/chunks/chunk-V6GWPR2A.js +0 -3
- package/dist/chunks/chunk-VJMOZPHW.js +0 -3
- package/dist/chunks/chunk-YPAFAG4W.js +0 -6
- package/dist/chunks/chunk-ZBMJTIYR.js +0 -3
- package/dist/chunks/chunk-ZX5FDZZW.js +0 -55
- package/dist/chunks/clip-command-MDSM6KJP.js +0 -3
- package/dist/chunks/clipboard-IZJTBTSW.js +0 -3
- package/dist/chunks/colour-2MYODUDY.js +0 -3
- package/dist/chunks/command-GAGAD65W.js +0 -3
- package/dist/chunks/config-command-CKPJXJEE.js +0 -3
- package/dist/chunks/continue-editing-M6WESEVB.js +0 -3
- package/dist/chunks/decoded-XWKU23RG.js +0 -3
- package/dist/chunks/execute-7M6WA4W7.js +0 -3
- package/dist/chunks/extensions-E3OUBT36.js +0 -3
- package/dist/chunks/ffmpeg-KDZEPLNA.js +0 -3
- package/dist/chunks/image-R5C3AWHT.js +0 -3
- package/dist/chunks/install-MFYGS5TG.js +0 -3
- package/dist/chunks/launch-VNW4YQ4Z.js +0 -17
- package/dist/chunks/lock-BG3CLOHA.js +0 -3
- package/dist/chunks/manager-L753MI7U.js +0 -4
- package/dist/chunks/notify-NQNNOBFC.js +0 -3
- package/dist/chunks/pdfium-77L526HZ.js +0 -3
- package/dist/chunks/preferences-3P4V2EDX.js +0 -3
- package/dist/chunks/preset-command-UNMXHW5A.js +0 -3
- package/dist/chunks/registry-RS7LQ3UA.js +0 -3
- package/dist/chunks/run-GUFPETHF.js +0 -3
- package/dist/chunks/server-PIXRL5PA.js +0 -77
- package/dist/chunks/text-layer-LHZNDMPZ.js +0 -3
- package/dist/chunks/theme-P3ZE2ZYB.js +0 -3
- package/dist/chunks/transcribe-KXQXEVBJ.js +0 -3
- package/dist/chunks/transcribe-command-JHWN4RWU.js +0 -3
- package/dist/chunks/update-command-DWEBUFT5.js +0 -3
- package/dist/chunks/update-note-CY3LCBCJ.js +0 -3
- package/dist/chunks/watch-command-QGVXM23I.js +0 -3
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{a,b,c}from"./chunk-4RNVZQRC.js";import"./chunk-MF3KKEFB.js";import"./chunk-I25E2XDH.js";import"./chunk-HON4OV7M.js";import"./chunk-ZBMJTIYR.js";import"./chunk-J7FLFHQJ.js";import"./chunk-VLVNA4T3.js";import"./chunk-H3DIRJFE.js";import"./chunk-TMUK2DD3.js";export{a as WAIT_MS,b as extensionInUse,c as withExtensionLock};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{b as C}from"./chunk-NMECUMJD.js";import{c as Q}from"./chunk-4RNVZQRC.js";import{a as h,b as q,c as A}from"./chunk-MF3KKEFB.js";import{a as k,b as F,c as K,d as M,e as V,f as x,g as O}from"./chunk-I25E2XDH.js";import"./chunk-HON4OV7M.js";import{p as H,q as $}from"./chunk-V6GWPR2A.js";import{G,M as g,N as X,T as v,U as N,a as U}from"./chunk-ZBMJTIYR.js";import{a as D}from"./chunk-J7FLFHQJ.js";import"./chunk-VLVNA4T3.js";import"./chunk-H3DIRJFE.js";import"./chunk-TMUK2DD3.js";import{createHash as ie,randomBytes as se}from"node:crypto";import{createReadStream as Ee,createWriteStream as Se}from"node:fs";import{chmod as Pe,copyFile as Ne,mkdir as ne,readdir as I,readFile as ae,rm as y,rmdir as ce,stat as fe,statfs as $e,writeFile as ue}from"node:fs/promises";import{release as ke}from"node:os";import{join as a}from"node:path";import{Readable as Oe,Transform as Ae}from"node:stream";import{pipeline as Be}from"node:stream/promises";import{gunzip as Ie}from"node:zlib";import{mkdir as Y,writeFile as pe}from"node:fs/promises";import{dirname as ge,join as ye,posix as be,resolve as Z,sep as ve}from"node:path";var E=512;function S(e,t,n){let r=e.indexOf(0,t);return e.toString("utf8",t,r===-1||r>t+n?t+n:r)}function ee(e,t,n){let r=Number.parseInt(S(e,t,n).trim()||"0",8);if(Number.isNaN(r))throw new Error("bad tar header");return r}var xe=/^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i;function T(e){return e.startsWith("/")||e.includes("\\")||e.includes(":")?!0:e.split("/").some(t=>t===".."||xe.test(t)||t!=="."&&t!==""&&(t.endsWith(".")||t.endsWith(" ")))}function W(e,t){let n=Z(e),r=Z(t);return r===n||r.startsWith(n+ve)}async function te(e,t){let n=0,r;for(;n+E<=e.length;){let o=e.subarray(n,n+E);if(o.every(f=>f===0))return;let s=ee(o,124,12),i=ee(o,100,8),d=String.fromCharCode(o[156]??0),p=S(o,345,155),l=p.length>0?`${p}/${S(o,0,100)}`:S(o,0,100);n+=E;let m=e.subarray(n,n+s);if(m.length<s)throw new Error("truncated tar");if(n+=Math.ceil(s/E)*E,d==="L"){r=S(m,0,m.length);continue}if(d==="x"){let f=/(?:^|\n)\d+ path=([^\n]*)\n/.exec(m.toString("utf8"));f?.[1]!==void 0&&(r=f[1]);continue}if(d==="g")continue;r!==void 0&&(l=r,r=void 0);let w=be.normalize(l),u=ye(t,w);if(T(w)||!W(t,u))throw new Error(`unsafe path in archive: ${l}`);if(d==="5")await Y(u,{recursive:!0});else if(d==="0"||d==="\0")await Y(ge(u),{recursive:!0}),await pe(u,m,{mode:i&64?493:420});else throw new Error(`unsupported entry type in archive: ${l}`)}}async function J(e){let t=0;for(let n of await I(e,{withFileTypes:!0}).catch(()=>[])){let r=a(e,n.name);n.isDirectory()?t+=await J(r):n.isFile()&&(t+=(await fe(r).catch(()=>{}))?.size??0)}return t}var at=e=>J(a(h(),e));function Fe(){let e=Number.parseInt(ke(),10);return e>=25?e+1:e-9}function de(e,t=process.platform,n=process.arch){return M.includes(t)?O(e,t)?t!=="darwin"?x(e,t,n)===void 0?{supported:!1,reason:`no build for ${n} ${F(t)}s`}:{supported:!0}:e.minMacos!==void 0&&Fe()<e.minMacos?{supported:!1,reason:`needs macOS ${e.minMacos} or later`}:x(e,t,n)===void 0?{supported:!1,reason:`no build for ${n} Macs`}:{supported:!0}:{supported:!1,reason:`not available on ${K(t)}`}:{supported:!1,reason:"extensions need macOS, Windows or Linux"}}function R(e,t){let n=V(e);if(n!==void 0)return M.includes(t)&&!O(n,t)?void 0:n}function le(e,t){let n=k.filter(r=>R(r.id,t)!==void 0);return G(`${e} is not a known extension.`,`Try one of: ${n.map(r=>r.id).join(", ")}.`)}async function ct(e=process.platform,t=process.arch){return Promise.all(k.filter(n=>O(n,e)).map(async n=>{let r=await A(n.id),o=de(n,e,t),s=x(n,e,t),i={entry:n,updateAvailable:r!==void 0&&s!==void 0&&r.version!==s.version,supported:o.supported};return r!==void 0&&(i.installed=r.version,i.installedBytes=await J(a(h(),n.id))),o.reason!==void 0&&(i.reason=o.reason),o.supported&&s!==void 0&&(i.downloadBytes=s.bytes),i}))}var Me=e=>new Promise((t,n)=>{Ie(e,(r,o)=>r?n(r):t(o))});async function Ce(e){let t=ie("sha256");for await(let n of Ee(e))t.update(n);return t.digest("hex")}async function Te(e,t,n){let r=JSON.parse(await ae(a(e,"manifest.json"),"utf8"));if(r.id!==t.id||r.version!==n)throw new Error("the archive is for a different extension or version");let o=r.files;if(typeof o!="object"||o===null)throw new Error("manifest lists no files");if(r.kind!=="node"&&r.kind!=="exec"||typeof r.entry!="string"||!(r.entry in o))throw new Error("manifest has no valid entry");for(let[s,i]of Object.entries(o)){if(T(s)||!W(e,a(e,s)))throw new Error(`unsafe path ${s}`);if(await Ce(a(e,s)).catch(()=>{})!==i)throw new Error(`${s} does not match the manifest`)}}async function We(e,t,n,r=process.platform){if(r!=="win32"){await $(e,t,r);return}try{await $(e,t,r,void 0,H)}catch{throw g(n,"its files stayed in use (often an antivirus scan) and could not be moved into place.")}}async function Je(e,t){let n=a(e,`.current-${se(4).toString("hex")}`);await ue(n,`${t}
|
|
4
|
-
`),await $(n,a(e,"current"))}function re(e){let t=process.env.FORGE_EXTENSIONS_BASE_URL;return t===void 0||t===""?e:`${t.replace(/\/+$/,"")}/${e.slice(e.lastIndexOf("/")+1)}`}var Re=600*1e3;async function me(e){let t=Date.now()-Re,n=async(r,o)=>{for(let s of await I(r).catch(()=>[])){if(!s.startsWith(o))continue;let i=a(r,s),d=await fe(i).catch(()=>{});d!==void 0&&d.mtimeMs<t&&await y(i,{recursive:!0,force:!0}).catch(()=>{})}};await n(e,".download-");for(let r of k){let o=a(e,r.id);await n(o,".staging-"),await n(o,".current-"),await ce(o).catch(()=>{})}}function oe(e){return e?.code==="ENOSPC"}var B=class extends Error{};async function _e(e,t={}){let{platform:n=process.platform,arch:r=process.arch}=t,o=R(e,n);if(o===void 0)throw le(e,n);await me(h());let s=de(o,n,r),i=x(o,n,r);if(!s.supported||i===void 0){let f=`no build for this ${F(n)}`;throw X(e,s.reason??f,n)}let d=await A(o.id);if(d?.version===i.version)return d;let p=h(),l=a(p,o.id);await ne(l,{recursive:!0});try{let f=await $e(p);if(f.bavail*f.bsize<i.bytes*2.5)throw N(e,`not enough free disk space (about ${D(Math.ceil(i.bytes*2.5))} needed).`)}catch(f){if(U(f))throw f}let m=se(6).toString("hex"),w=a(p,`.download-${m}.tar.gz`),u=a(l,`.staging-${m}`);try{let f=t.fetchImpl??fetch,b;try{b=await f(re(i.url),{signal:t.signal})}catch{throw v(e,`could not reach ${new URL(re(i.url)).host}.`)}if(!b.ok||b.body===null)throw v(e,`the server answered ${b.status}.`);let _=ie("sha256"),P=0,he=new Ae({transform(c,je,z){if(P+=c.length,P>i.bytes)return z(new B);_.update(c),t.onProgress?.(P,i.bytes),z(null,c)}});try{await Be(Oe.fromWeb(b.body),he,Se(w),t.signal?{signal:t.signal}:{})}catch(c){throw t.signal?.aborted?c:c instanceof B?g(e,"the download is larger than its published size."):oe(c)?N(e,"the disk filled up during the download."):v(e,"the connection dropped before the download finished.")}if(P<i.bytes)throw v(e,"the download ended early.");if(_.digest("hex")!==i.sha256)throw g(e,"the download does not match its published checksum.");t.signal?.throwIfAborted();try{if(await ne(u,{recursive:!0}),i.binary===void 0)await te(await Me(await ae(w)),u);else{await Ne(w,a(u,i.binary)),await Pe(a(u,i.binary),493);let c={id:o.id,version:i.version,files:{[i.binary]:i.sha256},entry:i.binary,kind:"exec"};await ue(a(u,"manifest.json"),JSON.stringify(c))}await Te(u,o,i.version)}catch(c){throw oe(c)?N(e,"the disk filled up while unpacking."):g(e,c instanceof Error?c.message:"the archive could not be unpacked.")}t.signal?.throwIfAborted(),await C(o.id);let L=a(l,i.version);await y(L,{recursive:!0,force:!0}),await We(u,L,e,n),await Je(l,i.version);for(let c of await I(l))c!==i.version&&c!=="current"&&q.test(c)&&await y(a(l,c),{recursive:!0,force:!0});let j=await A(o.id);if(j===void 0)throw g(e,"the installed files could not be read.");return j}finally{await y(w,{force:!0}),await y(u,{recursive:!0,force:!0}),await ce(l).catch(()=>{})}}async function Le(e,t=process.platform){let n=R(e,t);if(n===void 0)throw le(e,t);return Q(n.id,async()=>{await me(h()),await C(n.id);let r=a(h(),n.id),o=(await I(r).catch(()=>[])).some(s=>!s.startsWith("."));return await y(r,{recursive:!0,force:!0}),o},{waitMs:0,action:"remove",what:`${n.title} is being removed`})}async function we(e){if(e!=="boost")return;let{resyncMenu:t}=await import("./entry-BZYPZONY.js");await t()}async function ft(e,t={}){let n=await _e(e,t);return await we(e),n}async function ut(e,t=process.platform){let n=await Le(e,t);return await we(e),n}export{at as extensionBytes,ft as installExtension,ct as listExtensions,We as moveIntoPlace,ut as removeExtension};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{B as a,C as b,D as c,E as d,F as e,G as f,H as g,I as h,J as i}from"./chunk-ZX5FDZZW.js";import"./chunk-6RMRWBMB.js";import"./chunk-VLVNA4T3.js";import"./chunk-TMUK2DD3.js";export{a as AUMID,e as gvariantString,f as linuxNotifyCommand,g as notify,d as notifyCommand,i as postFinishNotice,b as psEscape,h as terminalInFront,c as toastScript};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{a,b,c}from"./chunk-FAUL5L2W.js";import"./chunk-TLHUFIXD.js";import"./chunk-4MJEEEFA.js";import"./chunk-V6GWPR2A.js";import"./chunk-WBW6G4N6.js";import"./chunk-ZBMJTIYR.js";import"./chunk-J7FLFHQJ.js";import"./chunk-VLVNA4T3.js";import"./chunk-H3DIRJFE.js";import"./chunk-KXKQDFHX.js";import"./chunk-TMUK2DD3.js";export{b as extractPdfText,a as openPdf,c as pdfiumEngine};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{b as a,c as b,d as c,e as d,f as e}from"./chunk-N6RCLJE6.js";import"./chunk-WE6KP4FR.js";import"./chunk-KH5DHZ2U.js";import"./chunk-HON4OV7M.js";import"./chunk-H3DIRJFE.js";import"./chunk-TMUK2DD3.js";export{a as DEFAULT_PREFERENCES,b as configPath,c as expandTilde,d as loadPreferences,e as savePreferences};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{a as I}from"./chunk-YRXJDFP3.js";import{a as w}from"./chunk-QQV7CCAY.js";import"./chunk-VJMOZPHW.js";import"./chunk-AR3M2PLK.js";import"./chunk-O7DK3GJT.js";import"./chunk-K253E723.js";import"./chunk-EEQSUBBL.js";import"./chunk-OQBIYNGK.js";import"./chunk-FAUL5L2W.js";import{d as k,e as R}from"./chunk-N6RCLJE6.js";import{c as g}from"./chunk-WE6KP4FR.js";import"./chunk-KH5DHZ2U.js";import"./chunk-HON4OV7M.js";import"./chunk-TLHUFIXD.js";import"./chunk-4MJEEEFA.js";import{c as v,d as y,f as P}from"./chunk-V6GWPR2A.js";import"./chunk-WBW6G4N6.js";import{G as h,s as d}from"./chunk-ZBMJTIYR.js";import"./chunk-J7FLFHQJ.js";import"./chunk-VLVNA4T3.js";import"./chunk-H3DIRJFE.js";import"./chunk-KXKQDFHX.js";import"./chunk-TMUK2DD3.js";async function C(t){let{prefs:T}=await R(),u=T.presets??[],s=u.find(e=>e.name===t.name);if(!s){let e=u.map(o=>o.name);throw h(`No preset is called ${t.name}.`,e.length>0?`Saved presets: ${e.join(", ")}.`:"Save one from Done with p, after a conversion.")}let a=await w(t.inputs,{recursive:t.recursive}),i=[],p=[...a.failures],m=0,c=0,f=t.output??(s.saveTo==="same"||s.saveTo==="ask"?void 0:k(s.saveTo));for(let e of a.sources){if(e.kind!=="image"){p.push({path:e.path,error:d("preset","presets work on images","Try an image such as a JPEG, PNG, WebP or HEIC file.")});continue}let o=g(s.steps,e.format),l=o[o.length-1];if(l?.kind!=="encode")continue;let n=y({sourcePath:e.path,target:l.target,...f===void 0?{}:{output:f},...a.roots.get(e.path)?{sourceRoot:a.roots.get(e.path)}:{}});(v(n,e.path)||t.keepBoth)&&(n=P(n));let r=await I(e,o,n,{force:t.force});r.kind==="done"?(i.push(r.result),m+=e.bytes,c+=r.result.outputBytes):r.kind==="unreachable"?p.push({path:e.path,error:r.entry.error}):r.kind!=="cancelled"&&p.push({path:e.path,error:r.error})}return{kind:"preset",results:i,failures:p,inputBytes:m,outputBytes:c}}export{C as runPresetCommand};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{f as a,g as b,h as c,i as d,j as e}from"./chunk-K253E723.js";import"./chunk-EEQSUBBL.js";import"./chunk-OQBIYNGK.js";import"./chunk-FAUL5L2W.js";import"./chunk-TLHUFIXD.js";import"./chunk-4MJEEEFA.js";import"./chunk-V6GWPR2A.js";import"./chunk-WBW6G4N6.js";import"./chunk-ZBMJTIYR.js";import"./chunk-J7FLFHQJ.js";import"./chunk-VLVNA4T3.js";import"./chunk-H3DIRJFE.js";import"./chunk-KXKQDFHX.js";import"./chunk-TMUK2DD3.js";export{a as ENGINES,d as engineForJob,b as engineForSource,c as engineForTarget,e as probe};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
|
-
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{a,b}from"./chunk-NMECUMJD.js";import"./chunk-4RNVZQRC.js";import"./chunk-MF3KKEFB.js";import"./chunk-I25E2XDH.js";import"./chunk-HON4OV7M.js";import"./chunk-ZBMJTIYR.js";import"./chunk-J7FLFHQJ.js";import"./chunk-VLVNA4T3.js";import"./chunk-H3DIRJFE.js";import"./chunk-TMUK2DD3.js";export{b as closeExtensionServers,a as runExtension};
|