forge-terminal 0.4.1 → 0.4.2
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-GRSA5RLZ.js → about-credits-PFW4OXPX.js} +1 -1
- package/dist/chunks/{args-VJZHLGIY.js → args-ZMSJ3NBZ.js} +1 -1
- package/dist/chunks/{boot-HVIAAJMY.js → boot-M6TQUYUF.js} +1 -1
- package/dist/chunks/chunk-BCNMRALN.js +66 -0
- package/dist/chunks/{chunk-MKVBI37R.js → chunk-DTX4OGMY.js} +1 -1
- package/dist/chunks/{chunk-EGIKV2GZ.js → chunk-MV7H3QQY.js} +1 -1
- package/dist/chunks/{chunk-FHORNIVW.js → chunk-P6NXFZZP.js} +1 -1
- package/dist/chunks/{chunk-CKUIRXDS.js → chunk-Y2A3HTKQ.js} +2 -2
- package/dist/chunks/{clip-command-264DPO6I.js → clip-command-LAVVAHHV.js} +1 -1
- package/dist/chunks/{colour-4NH6H4HA.js → colour-AJW2JR3S.js} +1 -1
- package/dist/chunks/{entry-26YSXWT4.js → entry-UWADO4ND.js} +1 -1
- package/dist/chunks/{execute-GSC2NMDW.js → execute-MUM63CAA.js} +1 -1
- package/dist/chunks/{extensions-ADGECS5U.js → extensions-ZKAAFA4J.js} +1 -1
- package/dist/chunks/{extensions-command-TGOF36YW.js → extensions-command-73UGWB6L.js} +1 -1
- package/dist/chunks/launch-S5BW2LZU.js +5 -0
- package/dist/chunks/{manager-J7377NNA.js → manager-743RM57Z.js} +1 -1
- package/dist/chunks/{server-OAJFUZDM.js → server-DPBVFUL7.js} +3 -3
- package/dist/chunks/{theme-WGCMV4T4.js → theme-USWAYNEH.js} +1 -1
- package/dist/chunks/{update-note-6YGNGYUB.js → update-note-VYJKUIIX.js} +1 -1
- package/dist/chunks/{watch-command-HOG4TM3X.js → watch-command-KULANTL2.js} +1 -1
- package/dist/index.js +6 -6
- package/package.json +7 -15
- package/dist/chunks/chunk-VGS5Z5RD.js +0 -66
- package/dist/chunks/launch-KBYCYAZR.js +0 -5
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.4.
|
|
46
|
+
# 0.4.2
|
|
47
47
|
|
|
48
48
|
forge photo.jpg --to webp
|
|
49
49
|
```
|
|
@@ -1029,7 +1029,7 @@ photo.png · PNG · 122 KB · 2756×774
|
|
|
1029
1029
|
With `--json`:
|
|
1030
1030
|
|
|
1031
1031
|
```json
|
|
1032
|
-
{"forge":"0.4.
|
|
1032
|
+
{"forge":"0.4.2","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":[]}
|
|
1033
1033
|
```
|
|
1034
1034
|
|
|
1035
1035
|
`targets` and `actions` come from the engines' own capabilities, so they are
|
|
@@ -1055,7 +1055,7 @@ succeeded) and `failures`. A conversion, compression or page operation adds
|
|
|
1055
1055
|
|
|
1056
1056
|
```jsonc
|
|
1057
1057
|
{
|
|
1058
|
-
"forge": "0.4.
|
|
1058
|
+
"forge": "0.4.2",
|
|
1059
1059
|
"ok": false,
|
|
1060
1060
|
"results": [
|
|
1061
1061
|
{
|
|
@@ -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-
|
|
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-743RM57Z.js")).listExtensions()}={}){let[e,i]=await Promise.all([k(n),t().catch(()=>[])]),{extensionCredits:s}=await import("./extensions-ZKAAFA4J.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{a,b,c,d}from"./chunk-
|
|
3
|
+
import{a,b,c,d}from"./chunk-DTX4OGMY.js";import"./chunk-U5TEGDGH.js";import"./chunk-QVACE4IE.js";import"./chunk-HZDYZ5RD.js";import"./chunk-QR6QHTC3.js";import"./chunk-6L6C3GJU.js";import"./chunk-EEQSUBBL.js";import"./chunk-YYB3TTGT.js";import"./chunk-KAHWYWNT.js";import"./chunk-SMBK6BTC.js";import"./chunk-EXLXSKRH.js";import"./chunk-3UEQ2OX6.js";import"./chunk-J7FLFHQJ.js";import"./chunk-LDKF7KIZ.js";import"./chunk-MV7H3QQY.js";import"./chunk-AAXBN572.js";import"./chunk-HON4OV7M.js";import"./chunk-M66BUNYO.js";import"./chunk-TMUK2DD3.js";export{b as COMMANDS_HELP,a as EXIT_CODES_HELP,d as parseArgs,c as wantsJson};
|
|
@@ -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-MV7H3QQY.js";import{f as a}from"./chunk-AAXBN572.js";import"./chunk-HON4OV7M.js";import"./chunk-M66BUNYO.js";import"./chunk-TMUK2DD3.js";var c={loadPreferences:a,loadShell:()=>import("./launch-S5BW2LZU.js")};async function f(e=c,n={}){let t=e.loadShell();t.catch(()=>{});let{prefs:o,warning:r}=await e.loadPreferences(),s=l(o.theme),{launchShell:i}=await t;await i({prefs:o,palette:s,...r===void 0?{}:{warning:r},...n})}export{f as bootShell};
|