favo-cli 0.4.0 → 0.6.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 CHANGED
@@ -15,6 +15,10 @@ This package is a small launcher with no dependencies and no install scripts. Th
15
15
 
16
16
  It runs on macOS (Apple Silicon and Intel), Linux (x64 and arm64, glibc only) and Windows (x64). Alpine and other musl systems aren't supported yet. It needs Node 20.11 or newer.
17
17
 
18
+ ## Updating
19
+
20
+ Run `favo update`. It updates this package with the package manager that installed it, then favo on your other machines. `favo update --providers` also updates the provider CLIs. A running favo never blocks an update, because each version keeps its own folder.
21
+
18
22
  ## More
19
23
 
20
24
  The source, documentation and issues are at <https://github.com/irwinarruda/favo-cli>. favo is MIT licensed, and `THIRD-PARTY-NOTICES.md` lists what its binaries contain.
package/SHA256SUMS CHANGED
@@ -1,5 +1,5 @@
1
- 02ae9f699bc6da38bde2367f461652d8d63283f80ad2846b11cb55ea5aea051b favo-darwin-arm64.gz
2
- 2c1b8d18e9a04b584f5bae8edf5efa28040364a32b18420e134f9d1d8ef5cf55 favo-darwin-x64.gz
3
- 34614473ccc2c7b2eb48820db747c889c108e3afae0c3e1c8a2ce8e527642b36 favo-linux-x64.gz
4
- 81f9af5a064fb4ffcaa4323a6dcd226717223084a79d517c037c11b1b1380518 favo-linux-arm64.gz
5
- 884713a8cc4d962332db9117a96ce52b8890ddbf5940dbd8c53d013b780c49ab favo-windows-x64.exe.gz
1
+ 01e5bc6a42715015587fc24126b15ae1d9d8fb12ab3166412d6098249b2d8189 favo-darwin-arm64.gz
2
+ 642e3aebecadc6ec601726f76abd0fb224e5d8892cf9da98595b7a46b72c19c4 favo-darwin-x64.gz
3
+ ee3156eaa0288d34afcf695919c00797ee647c815fbaf1a72946017e7b83c0eb favo-linux-x64.gz
4
+ 743067de547091190a231a184501605a9311a316e636778dc9e74291740a27f1 favo-linux-arm64.gz
5
+ 76121e1ebd26de5930761532f2406c7aae4a44f7db7b6d7ce02c00a3fe4e2758 favo-windows-x64.exe.gz
package/bin/favo.mjs CHANGED
@@ -187,7 +187,10 @@ function assertGlibc() {
187
187
  }
188
188
 
189
189
  function run(binary) {
190
- const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' });
190
+ const child = spawn(binary, process.argv.slice(2), {
191
+ stdio: 'inherit',
192
+ env: { ...process.env, FAVO_LAUNCHER: process.argv[1], FAVO_LAUNCHER_NODE: process.execPath },
193
+ });
191
194
  process.on('SIGINT', () => {});
192
195
  for (const signal of ForwardedSignals) process.on(signal, () => child.kill(signal));
193
196
  child.on('error', fail);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "favo-cli",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "favo keeps several AI subscriptions on every computer you own. Downloads the self-contained executable for this platform from the GitHub Release.",
5
5
  "keywords": [
6
6
  "favo",