@nash-script/cli 0.1.3 → 0.2.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/CHANGELOG.md +25 -0
- package/README.md +31 -4
- package/binary.js +5 -3
- package/npm-shrinkwrap.json +79 -52
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# nash-cli
|
|
2
2
|
|
|
3
|
+
## 0.2.2 — 2026-08-15
|
|
4
|
+
|
|
5
|
+
### Patch changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies: nash-driver@0.2.1
|
|
8
|
+
|
|
9
|
+
## 0.2.1 — 2026-08-08
|
|
10
|
+
|
|
11
|
+
### Patch changes
|
|
12
|
+
|
|
13
|
+
- [1c5f4a8](https://github.com/utxo-company/nash/commit/1c5f4a803a5f6f7f8178fc02d8edbd89bf234c32) Fix the compiler version proxy: guard against a cached binary whose version doesn't match its folder name exec'ing itself in a silent infinite loop (now a clear error via the `NASH_PROXY_VERSION` env var handshake), and fix the release asset name to match what cargo-dist actually publishes (`nash-cli-{target}` instead of `nash-{target}`), which made every proxy download fail. — Thanks @rvcas!
|
|
14
|
+
- Updated dependencies: nash-driver@0.2.0
|
|
15
|
+
|
|
16
|
+
## 0.2.0 — 2026-03-10
|
|
17
|
+
|
|
18
|
+
### Minor changes
|
|
19
|
+
|
|
20
|
+
- [45b79ae](https://github.com/utxo-company/nash/commit/45b79ae1c94701b4f16a612e381a57c986b099e0) Add the minimal Nash language server skeleton and CLI entry point for running it over stdio.
|
|
21
|
+
|
|
22
|
+
Includes commit `f2b7657c1fa70a22dc2ac450ec54cc0623bd2f3f` and the follow-up cleanup to the initial LSP scaffolding. — Thanks @MicroProofs!
|
|
23
|
+
|
|
24
|
+
### Patch changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies: nash-language-server@0.2.0
|
|
27
|
+
|
|
3
28
|
## 0.1.3 — 2026-02-20
|
|
4
29
|
|
|
5
30
|
### Patch changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
# nash
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Development
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
### Validation
|
|
6
|
+
|
|
7
|
+
Before pushing, run:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
cargo fmt --all
|
|
11
|
+
cargo clippy --all-targets --all-features -- -D warnings
|
|
12
|
+
cargo test
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Changesets
|
|
16
|
+
|
|
17
|
+
We use [sampo](https://github.com/bruits/sampo) for versioning and releases. When you make a notable change, add a changeset:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
sampo add
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Only list crates you actually changed -- sampo automatically bumps dependents.
|
|
24
|
+
|
|
25
|
+
### Release flow
|
|
26
|
+
|
|
27
|
+
1. Push to `main` with a changeset file
|
|
28
|
+
2. Sampo CI creates/updates a release PR that bumps versions and generates changelogs
|
|
29
|
+
3. Merge the release PR
|
|
30
|
+
4. Sampo publishes crates to crates.io and pushes version tags
|
|
31
|
+
5. Tags trigger cargo-dist to build and publish:
|
|
32
|
+
- GitHub Releases with platform binaries
|
|
33
|
+
- Homebrew formula (`brew install nash-script/tap/nash`)
|
|
34
|
+
- npm package (`npx @nash-script/cli`)
|
|
8
35
|
|
|
9
36
|
## Docs
|
|
10
37
|
|
package/binary.js
CHANGED
|
@@ -11,13 +11,15 @@ const error = (msg) => {
|
|
|
11
11
|
|
|
12
12
|
const {
|
|
13
13
|
name,
|
|
14
|
-
|
|
14
|
+
artifactDownloadUrls,
|
|
15
15
|
supportedPlatforms,
|
|
16
16
|
glibcMinimum,
|
|
17
17
|
} = require("./package.json");
|
|
18
18
|
|
|
19
|
+
// FIXME: implement NPM installer handling of fallback download URLs
|
|
20
|
+
const artifactDownloadUrl = artifactDownloadUrls[0];
|
|
19
21
|
const builderGlibcMajorVersion = glibcMinimum.major;
|
|
20
|
-
const
|
|
22
|
+
const builderGlibcMinorVersion = glibcMinimum.series;
|
|
21
23
|
|
|
22
24
|
const getPlatform = () => {
|
|
23
25
|
const rawOsType = os.type();
|
|
@@ -63,7 +65,7 @@ const getPlatform = () => {
|
|
|
63
65
|
let libcMinorVersion = splitLibcVersion[1];
|
|
64
66
|
if (
|
|
65
67
|
libcMajorVersion != builderGlibcMajorVersion ||
|
|
66
|
-
libcMinorVersion <
|
|
68
|
+
libcMinorVersion < builderGlibcMinorVersion
|
|
67
69
|
) {
|
|
68
70
|
// We can't run the glibc binaries, but we can run the static musl ones
|
|
69
71
|
// if they exist
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"nash": "run-nash.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"axios": "^1.13.
|
|
10
|
+
"axios": "^1.13.5",
|
|
11
11
|
"axios-proxy-builder": "^0.1.2",
|
|
12
12
|
"console.table": "^0.10.0",
|
|
13
13
|
"detect-libc": "^2.1.2",
|
|
14
|
-
"rimraf": "^6.1.
|
|
14
|
+
"rimraf": "^6.1.3"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"prettier": "^3.
|
|
17
|
+
"prettier": "^3.8.1"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14",
|
|
@@ -23,28 +23,16 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"name": "@nash-script/cli",
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.2.2"
|
|
27
27
|
},
|
|
28
|
-
"node_modules/@isaacs/
|
|
28
|
+
"node_modules/@isaacs/cliui": {
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": "
|
|
31
|
-
},
|
|
32
|
-
"integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==",
|
|
33
|
-
"license": "MIT",
|
|
34
|
-
"resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz",
|
|
35
|
-
"version": "4.0.1"
|
|
36
|
-
},
|
|
37
|
-
"node_modules/@isaacs/brace-expansion": {
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@isaacs/balanced-match": "^4.0.1"
|
|
30
|
+
"node": ">=18"
|
|
40
31
|
},
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"license": "MIT",
|
|
46
|
-
"resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz",
|
|
47
|
-
"version": "5.0.0"
|
|
32
|
+
"integrity": "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==",
|
|
33
|
+
"license": "BlueOak-1.0.0",
|
|
34
|
+
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz",
|
|
35
|
+
"version": "9.0.0"
|
|
48
36
|
},
|
|
49
37
|
"node_modules/asynckit": {
|
|
50
38
|
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
|
@@ -54,14 +42,14 @@
|
|
|
54
42
|
},
|
|
55
43
|
"node_modules/axios": {
|
|
56
44
|
"dependencies": {
|
|
57
|
-
"follow-redirects": "^1.15.
|
|
58
|
-
"form-data": "^4.0.
|
|
45
|
+
"follow-redirects": "^1.15.11",
|
|
46
|
+
"form-data": "^4.0.5",
|
|
59
47
|
"proxy-from-env": "^1.1.0"
|
|
60
48
|
},
|
|
61
|
-
"integrity": "sha512-
|
|
49
|
+
"integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==",
|
|
62
50
|
"license": "MIT",
|
|
63
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.
|
|
64
|
-
"version": "1.13.
|
|
51
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz",
|
|
52
|
+
"version": "1.13.5"
|
|
65
53
|
},
|
|
66
54
|
"node_modules/axios-proxy-builder": {
|
|
67
55
|
"dependencies": {
|
|
@@ -72,6 +60,30 @@
|
|
|
72
60
|
"resolved": "https://registry.npmjs.org/axios-proxy-builder/-/axios-proxy-builder-0.1.2.tgz",
|
|
73
61
|
"version": "0.1.2"
|
|
74
62
|
},
|
|
63
|
+
"node_modules/balanced-match": {
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"jackspeak": "^4.2.3"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": "20 || >=22"
|
|
69
|
+
},
|
|
70
|
+
"integrity": "sha512-x0K50QvKQ97fdEz2kPehIerj+YTeptKF9hyYkKf6egnwmMWAkADiO0QCzSp0R5xN8FTZgYaBfSaue46Ej62nMg==",
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.2.tgz",
|
|
73
|
+
"version": "4.0.2"
|
|
74
|
+
},
|
|
75
|
+
"node_modules/brace-expansion": {
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"balanced-match": "^4.0.2"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": "20 || >=22"
|
|
81
|
+
},
|
|
82
|
+
"integrity": "sha512-Pdk8c9poy+YhOgVWw1JNN22/HcivgKWwpxKq04M/jTmHyCZn12WPJebZxdjSa5TmBqISrUSgNYU3eRORljfCCw==",
|
|
83
|
+
"license": "MIT",
|
|
84
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.2.tgz",
|
|
85
|
+
"version": "5.0.2"
|
|
86
|
+
},
|
|
75
87
|
"node_modules/call-bind-apply-helpers": {
|
|
76
88
|
"dependencies": {
|
|
77
89
|
"es-errors": "^1.3.0",
|
|
@@ -228,15 +240,15 @@
|
|
|
228
240
|
"url": "https://github.com/sponsors/RubenVerborgh"
|
|
229
241
|
}
|
|
230
242
|
],
|
|
231
|
-
"integrity": "sha512-
|
|
243
|
+
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
|
|
232
244
|
"license": "MIT",
|
|
233
245
|
"peerDependenciesMeta": {
|
|
234
246
|
"debug": {
|
|
235
247
|
"optional": true
|
|
236
248
|
}
|
|
237
249
|
},
|
|
238
|
-
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.
|
|
239
|
-
"version": "1.15.
|
|
250
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
|
|
251
|
+
"version": "1.15.11"
|
|
240
252
|
},
|
|
241
253
|
"node_modules/form-data": {
|
|
242
254
|
"dependencies": {
|
|
@@ -249,10 +261,10 @@
|
|
|
249
261
|
"engines": {
|
|
250
262
|
"node": ">= 6"
|
|
251
263
|
},
|
|
252
|
-
"integrity": "sha512-
|
|
264
|
+
"integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
|
|
253
265
|
"license": "MIT",
|
|
254
|
-
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.
|
|
255
|
-
"version": "4.0.
|
|
266
|
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
|
|
267
|
+
"version": "4.0.5"
|
|
256
268
|
},
|
|
257
269
|
"node_modules/function-bind": {
|
|
258
270
|
"funding": {
|
|
@@ -302,7 +314,7 @@
|
|
|
302
314
|
},
|
|
303
315
|
"node_modules/glob": {
|
|
304
316
|
"dependencies": {
|
|
305
|
-
"minimatch": "^10.
|
|
317
|
+
"minimatch": "^10.2.0",
|
|
306
318
|
"minipass": "^7.1.2",
|
|
307
319
|
"path-scurry": "^2.0.0"
|
|
308
320
|
},
|
|
@@ -312,10 +324,10 @@
|
|
|
312
324
|
"funding": {
|
|
313
325
|
"url": "https://github.com/sponsors/isaacs"
|
|
314
326
|
},
|
|
315
|
-
"integrity": "sha512
|
|
327
|
+
"integrity": "sha512-/g3B0mC+4x724v1TgtBlBtt2hPi/EWptsIAmXUx9Z2rvBYleQcsrmaOzd5LyL50jf/Soi83ZDJmw2+XqvH/EeA==",
|
|
316
328
|
"license": "BlueOak-1.0.0",
|
|
317
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.
|
|
318
|
-
"version": "13.0.
|
|
329
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.3.tgz",
|
|
330
|
+
"version": "13.0.3"
|
|
319
331
|
},
|
|
320
332
|
"node_modules/gopd": {
|
|
321
333
|
"engines": {
|
|
@@ -368,14 +380,29 @@
|
|
|
368
380
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
|
369
381
|
"version": "2.0.2"
|
|
370
382
|
},
|
|
383
|
+
"node_modules/jackspeak": {
|
|
384
|
+
"dependencies": {
|
|
385
|
+
"@isaacs/cliui": "^9.0.0"
|
|
386
|
+
},
|
|
387
|
+
"engines": {
|
|
388
|
+
"node": "20 || >=22"
|
|
389
|
+
},
|
|
390
|
+
"funding": {
|
|
391
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
392
|
+
},
|
|
393
|
+
"integrity": "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==",
|
|
394
|
+
"license": "BlueOak-1.0.0",
|
|
395
|
+
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.2.3.tgz",
|
|
396
|
+
"version": "4.2.3"
|
|
397
|
+
},
|
|
371
398
|
"node_modules/lru-cache": {
|
|
372
399
|
"engines": {
|
|
373
400
|
"node": "20 || >=22"
|
|
374
401
|
},
|
|
375
|
-
"integrity": "sha512-
|
|
402
|
+
"integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==",
|
|
376
403
|
"license": "BlueOak-1.0.0",
|
|
377
|
-
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.
|
|
378
|
-
"version": "11.2.
|
|
404
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz",
|
|
405
|
+
"version": "11.2.6"
|
|
379
406
|
},
|
|
380
407
|
"node_modules/math-intrinsics": {
|
|
381
408
|
"engines": {
|
|
@@ -409,7 +436,7 @@
|
|
|
409
436
|
},
|
|
410
437
|
"node_modules/minimatch": {
|
|
411
438
|
"dependencies": {
|
|
412
|
-
"
|
|
439
|
+
"brace-expansion": "^5.0.2"
|
|
413
440
|
},
|
|
414
441
|
"engines": {
|
|
415
442
|
"node": "20 || >=22"
|
|
@@ -417,10 +444,10 @@
|
|
|
417
444
|
"funding": {
|
|
418
445
|
"url": "https://github.com/sponsors/isaacs"
|
|
419
446
|
},
|
|
420
|
-
"integrity": "sha512-
|
|
447
|
+
"integrity": "sha512-ugkC31VaVg9cF0DFVoADH12k6061zNZkZON+aX8AWsR9GhPcErkcMBceb6znR8wLERM2AkkOxy2nWRLpT9Jq5w==",
|
|
421
448
|
"license": "BlueOak-1.0.0",
|
|
422
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.
|
|
423
|
-
"version": "10.
|
|
449
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.0.tgz",
|
|
450
|
+
"version": "10.2.0"
|
|
424
451
|
},
|
|
425
452
|
"node_modules/minipass": {
|
|
426
453
|
"engines": {
|
|
@@ -464,10 +491,10 @@
|
|
|
464
491
|
"funding": {
|
|
465
492
|
"url": "https://github.com/prettier/prettier?sponsor=1"
|
|
466
493
|
},
|
|
467
|
-
"integrity": "sha512-
|
|
494
|
+
"integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==",
|
|
468
495
|
"license": "MIT",
|
|
469
|
-
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.
|
|
470
|
-
"version": "3.
|
|
496
|
+
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz",
|
|
497
|
+
"version": "3.8.1"
|
|
471
498
|
},
|
|
472
499
|
"node_modules/proxy-from-env": {
|
|
473
500
|
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
|
@@ -480,7 +507,7 @@
|
|
|
480
507
|
"rimraf": "dist/esm/bin.mjs"
|
|
481
508
|
},
|
|
482
509
|
"dependencies": {
|
|
483
|
-
"glob": "^13.0.
|
|
510
|
+
"glob": "^13.0.3",
|
|
484
511
|
"package-json-from-dist": "^1.0.1"
|
|
485
512
|
},
|
|
486
513
|
"engines": {
|
|
@@ -489,10 +516,10 @@
|
|
|
489
516
|
"funding": {
|
|
490
517
|
"url": "https://github.com/sponsors/isaacs"
|
|
491
518
|
},
|
|
492
|
-
"integrity": "sha512-
|
|
519
|
+
"integrity": "sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==",
|
|
493
520
|
"license": "BlueOak-1.0.0",
|
|
494
|
-
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.
|
|
495
|
-
"version": "6.1.
|
|
521
|
+
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.3.tgz",
|
|
522
|
+
"version": "6.1.3"
|
|
496
523
|
},
|
|
497
524
|
"node_modules/tunnel": {
|
|
498
525
|
"engines": {
|
|
@@ -515,5 +542,5 @@
|
|
|
515
542
|
}
|
|
516
543
|
},
|
|
517
544
|
"requires": true,
|
|
518
|
-
"version": "0.
|
|
545
|
+
"version": "0.2.2"
|
|
519
546
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"artifactDownloadUrls": [
|
|
3
|
+
"https://github.com/nash-script/compiler/releases/download/nash-cli-v0.2.2"
|
|
4
|
+
],
|
|
3
5
|
"bin": {
|
|
4
6
|
"nash": "run-nash.js"
|
|
5
7
|
},
|
|
6
8
|
"dependencies": {
|
|
7
|
-
"axios": "^1.13.
|
|
9
|
+
"axios": "^1.13.5",
|
|
8
10
|
"axios-proxy-builder": "^0.1.2",
|
|
9
11
|
"console.table": "^0.10.0",
|
|
10
12
|
"detect-libc": "^2.1.2",
|
|
11
|
-
"rimraf": "^6.1.
|
|
13
|
+
"rimraf": "^6.1.3"
|
|
12
14
|
},
|
|
13
15
|
"description": "The Nash programming language",
|
|
14
16
|
"devDependencies": {
|
|
15
|
-
"prettier": "^3.
|
|
17
|
+
"prettier": "^3.8.1"
|
|
16
18
|
},
|
|
17
19
|
"engines": {
|
|
18
20
|
"node": ">=14",
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
"zipExt": ".tar.xz"
|
|
84
86
|
}
|
|
85
87
|
},
|
|
86
|
-
"version": "0.
|
|
88
|
+
"version": "0.2.2",
|
|
87
89
|
"volta": {
|
|
88
90
|
"node": "18.14.1",
|
|
89
91
|
"npm": "9.5.0"
|