forge-terminal 0.3.5 → 0.3.7
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 +3 -3
- package/dist/chunks/{about-credits-MV4Q7L3K.js → about-credits-IWMNY4YU.js} +1 -1
- package/dist/chunks/{boot-ZJ2V3EYW.js → boot-ZLBUAZMD.js} +1 -1
- package/dist/chunks/chunk-G5PN5NGT.js +66 -0
- package/dist/chunks/{chunk-DQ3EVU4Q.js → chunk-TBC2FK5T.js} +2 -2
- package/dist/chunks/{chunk-2BCNTUEO.js → chunk-Y64NO6PF.js} +1 -1
- package/dist/chunks/{colour-VIZLKX46.js → colour-E7GZMLKE.js} +1 -1
- package/dist/chunks/{execute-EJYOG2OA.js → execute-767547IA.js} +1 -1
- package/dist/chunks/{extensions-GNO4XS7P.js → extensions-WJ43ETRG.js} +1 -1
- package/dist/chunks/{launch-UW5W34IU.js → launch-ZUJSPYT3.js} +2 -2
- package/dist/chunks/{server-YOFF2XLI.js → server-EFG2SZ5S.js} +3 -3
- package/dist/chunks/{theme-U2TFE5KM.js → theme-HDUI5UKP.js} +1 -1
- package/dist/chunks/{update-note-A7SJ6DEZ.js → update-note-QEGW3W2Z.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/chunk-MFUC54EM.js +0 -66
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ That puts `forge` on your `PATH`, so it works from any directory. Verify:
|
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
45
|
forge --version
|
|
46
|
-
# 0.3.
|
|
46
|
+
# 0.3.7
|
|
47
47
|
|
|
48
48
|
forge photo.jpg --to webp
|
|
49
49
|
```
|
|
@@ -933,7 +933,7 @@ photo.png · PNG · 122 KB · 2756×774
|
|
|
933
933
|
With `--json`:
|
|
934
934
|
|
|
935
935
|
```json
|
|
936
|
-
{"forge":"0.3.
|
|
936
|
+
{"forge":"0.3.7","ok":true,"probes":[{"path":"/Users/me/photo.png","kind":"image","format":"png","bytes":122449,"width":2756,"height":774,"targets":["jpeg","png","webp","avif","gif","tiff","pdf"],"actions":["convert"]}],"failures":[]}
|
|
937
937
|
```
|
|
938
938
|
|
|
939
939
|
`targets` and `actions` come from the engines' own capabilities, so they are
|
|
@@ -959,7 +959,7 @@ succeeded) and `failures`. A conversion, compression or page operation adds
|
|
|
959
959
|
|
|
960
960
|
```jsonc
|
|
961
961
|
{
|
|
962
|
-
"forge": "0.3.
|
|
962
|
+
"forge": "0.3.7",
|
|
963
963
|
"ok": false,
|
|
964
964
|
"results": [
|
|
965
965
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
2
|
const require = __forgeCreateRequire(import.meta.url);
|
|
3
3
|
import"./chunk-TMUK2DD3.js";import{readFile as x}from"node:fs/promises";import{dirname as m,join as u}from"node:path";import{fileURLToPath as C}from"node:url";var c=[{name:"sharp \xB7 libvips",licence:"Apache-2.0 \xB7 LGPL-3.0",does:"images",packages:["sharp"]},{name:"PDFium",licence:"BSD-3-Clause",does:"PDF pages",packages:[]},{name:"pdf-lib",licence:"MIT",does:"writing PDFs",packages:["pdf-lib"]},{name:"mammoth \xB7 docx",licence:"BSD-2-Clause \xB7 MIT",does:"Word documents",packages:["mammoth","docx"]},{name:"Ink \xB7 React",licence:"MIT",does:"this screen",packages:["ink","react"]}],g=[{name:"@hyzyla/pdfium",licence:"MIT"}],h=[{name:"xkcd colour survey",licence:"CC0-1.0"}];function l(n){let t=[];for(let e of n.split(`
|
|
4
|
-
`)){let i=/^((?:@[^/\s]+\/)?[^@\s]+)@\S+ — (.+)$/.exec(e);i&&t.push({name:i[1],licence:i[2].replace(/^\((.*)\)$/,"$1")})}return t}var d=n=>n.name.replace(/^@/,"");function p({bundled:n,extensions:t}){let e=new Set(c.flatMap(s=>s.packages)),i=[...n.filter(s=>!e.has(s.name)),...g,...h].sort((s,r)=>d(s).localeCompare(d(r)));return[{title:"App",credits:c.map(({packages:s,...r})=>r)},...t.length>0?[{title:"Extensions",credits:t}]:[],{title:"Others",credits:i}]}var f="third-party-licenses.txt";function y(n){let t=[],e=m(n);for(let i=0;i<4;i++)t.push(u(e,f),u(e,"dist",f)),e=m(e);return t}async function k(n){for(let t of y(C(n))){let e=await x(t,"utf8").catch(()=>{});if(e!==void 0)return{path:t,text:e}}}async function I({from:n=import.meta.url,list:t=async()=>(await import("./manager-XN7WNMEW.js")).listExtensions()}={}){let[e,i]=await Promise.all([k(n),t().catch(()=>[])]),{extensionCredits:s}=await import("./extensions-
|
|
4
|
+
`)){let i=/^((?:@[^/\s]+\/)?[^@\s]+)@\S+ — (.+)$/.exec(e);i&&t.push({name:i[1],licence:i[2].replace(/^\((.*)\)$/,"$1")})}return t}var d=n=>n.name.replace(/^@/,"");function p({bundled:n,extensions:t}){let e=new Set(c.flatMap(s=>s.packages)),i=[...n.filter(s=>!e.has(s.name)),...g,...h].sort((s,r)=>d(s).localeCompare(d(r)));return[{title:"App",credits:c.map(({packages:s,...r})=>r)},...t.length>0?[{title:"Extensions",credits:t}]:[],{title:"Others",credits:i}]}var f="third-party-licenses.txt";function y(n){let t=[],e=m(n);for(let i=0;i<4;i++)t.push(u(e,f),u(e,"dist",f)),e=m(e);return t}async function k(n){for(let t of y(C(n))){let e=await x(t,"utf8").catch(()=>{});if(e!==void 0)return{path:t,text:e}}}async function I({from:n=import.meta.url,list:t=async()=>(await import("./manager-XN7WNMEW.js")).listExtensions()}={}){let[e,i]=await Promise.all([k(n),t().catch(()=>[])]),{extensionCredits:s}=await import("./extensions-WJ43ETRG.js"),r=i.filter(o=>o.installed!==void 0).flatMap(o=>s(o.entry)),a=p({bundled:l(e?.text??""),extensions:r});return e?{sections:a,file:e.path}:{sections:a}}export{I as loadCredits};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __forgeCreateRequire } from 'node:module';
|
|
2
2
|
const require = __forgeCreateRequire(import.meta.url);
|
|
3
|
-
import{r as l}from"./chunk-
|
|
3
|
+
import{r as l}from"./chunk-Y64NO6PF.js";import{e as a}from"./chunk-H2IUSPAK.js";import"./chunk-HON4OV7M.js";import"./chunk-TMUK2DD3.js";var i={loadPreferences:a,loadShell:()=>import("./launch-ZUJSPYT3.js")};async function p(e=i){let o=e.loadShell();o.catch(()=>{});let{prefs:t,warning:r}=await e.loadPreferences(),n=l(t.theme),{launchShell:s}=await o;await s({prefs:t,palette:n,...r===void 0?{}:{warning:r}})}export{p as bootShell};
|