@nudojs/cli 4.0.0-beta.0 → 4.0.0-beta.1
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 +5 -52
- package/bin/forward.mjs +7 -0
- package/package.json +10 -27
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -274642
package/README.md
CHANGED
|
@@ -1,57 +1,10 @@
|
|
|
1
|
-
# @nudojs/cli
|
|
1
|
+
# @nudojs/cli (DEPRECATED)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
> Welcome back to JavaScript. Your JS stays JS — observe intermediates, enforce contracts sharper than types.
|
|
3
|
+
**Use [`nudojs`](https://www.npmjs.com/package/nudojs) instead.**
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## What is Nudo?
|
|
9
|
-
|
|
10
|
-
Nudo does not restrict how you write JavaScript. It executes code on Abs (`shape × term × pred × conf`) so you can observe intermediate values/results and enforce contracts sharper than ordinary TypeScript types.
|
|
11
|
-
|
|
12
|
-
## This package
|
|
13
|
-
|
|
14
|
-
`@nudojs/cli` provides:
|
|
15
|
-
|
|
16
|
-
- **CLI tool** — the `nudo` command: `check`, `test`, `contract`, `export`, `health`
|
|
17
|
-
- **Evaluator API** — programmatic access to analysis entrypoints and module resolution
|
|
18
|
-
|
|
19
|
-
## Install
|
|
5
|
+
This package is a migration stub: it forwards the `nudo` bin and module entry to `nudojs`. It will be unpublished in a future major.
|
|
20
6
|
|
|
21
7
|
```bash
|
|
22
|
-
npm
|
|
8
|
+
npm rm @nudojs/cli
|
|
9
|
+
npm i -g nudojs # same `nudo` command
|
|
23
10
|
```
|
|
24
|
-
|
|
25
|
-
## Usage
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
# Day 0 — signatures + L2 entry throws
|
|
29
|
-
npx nudojs check src/utils.js
|
|
30
|
-
|
|
31
|
-
# Day 0 — every inferred case (synthetic call@ / entry@ included)
|
|
32
|
-
npx nudojs test src/utils.js
|
|
33
|
-
|
|
34
|
-
# Day 1 — draft / emit contracts
|
|
35
|
-
npx nudojs contract --draft src/utils.js --write
|
|
36
|
-
npx nudojs check src/utils.js
|
|
37
|
-
|
|
38
|
-
# Ecosystem — dts / guard / schema / standard projection
|
|
39
|
-
npx nudojs export src/utils.js --format dts --out dist/types
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Primary verbs:
|
|
43
|
-
|
|
44
|
-
```text
|
|
45
|
-
nudo check <path> [--watch] # gate + signatures (CI)
|
|
46
|
-
nudo test <path> [--watch] # case report + declared assertions
|
|
47
|
-
nudo contract <path> # draft / emit interfaces
|
|
48
|
-
nudo export <path> # dts | guard | schema | standard | all
|
|
49
|
-
nudo health [paths] # drift + analysis errors
|
|
50
|
-
nudo health [paths] # analysis errors + drift
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## License
|
|
54
|
-
|
|
55
|
-
[MIT](https://github.com/nudojs/nudo/blob/main/LICENSE)
|
|
56
|
-
|
|
57
|
-
Docs: https://nudojs.github.io/nudo/ · Playground: https://nudojs.github.io/nudo/playground
|
package/bin/forward.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// DEPRECATED migration stub. The `nudo` CLI lives in `nudojs` (packages/nudojs).
|
|
3
|
+
// Keep argv/exit-code transparent: re-import the real entry in this process.
|
|
4
|
+
console.error(
|
|
5
|
+
"[nudo] `@nudojs/cli` is deprecated — install `nudojs` (same `nudo` bin). This stub will be removed.",
|
|
6
|
+
);
|
|
7
|
+
import "nudojs";
|
package/package.json
CHANGED
|
@@ -1,40 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nudojs/cli",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "DEPRECATED — use `nudojs` (the `nudo` CLI). This package only forwards to nudojs for migration.",
|
|
8
8
|
"type": "module",
|
|
9
|
+
"deprecated": "Use `nudojs` instead. `@nudojs/cli` is a migration stub and will be unpublished.",
|
|
9
10
|
"license": "MIT",
|
|
10
11
|
"keywords": [
|
|
11
12
|
"nudo",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"cli",
|
|
15
|
-
"dts",
|
|
16
|
-
"abstract-interpretation"
|
|
13
|
+
"nudojs",
|
|
14
|
+
"deprecated"
|
|
17
15
|
],
|
|
18
|
-
"main": "./
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
|
-
"default": "./dist/index.js"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
16
|
+
"main": "./bin/forward.mjs",
|
|
26
17
|
"bin": {
|
|
27
|
-
"nudo": "./
|
|
18
|
+
"nudo": "./bin/forward.mjs"
|
|
28
19
|
},
|
|
29
20
|
"files": [
|
|
30
|
-
"
|
|
21
|
+
"bin"
|
|
31
22
|
],
|
|
32
23
|
"repository": {
|
|
33
24
|
"type": "git",
|
|
34
25
|
"url": "git+https://github.com/nudojs/nudo.git",
|
|
35
26
|
"directory": "packages/cli"
|
|
36
27
|
},
|
|
37
|
-
"homepage": "https://github.com/nudojs/nudo
|
|
28
|
+
"homepage": "https://github.com/nudojs/nudo",
|
|
38
29
|
"bugs": "https://github.com/nudojs/nudo/issues",
|
|
39
30
|
"publishConfig": {
|
|
40
31
|
"access": "public",
|
|
@@ -42,14 +33,6 @@
|
|
|
42
33
|
"registry": "https://registry.npmjs.org"
|
|
43
34
|
},
|
|
44
35
|
"dependencies": {
|
|
45
|
-
"
|
|
46
|
-
"@babel/types": "^8.0.6",
|
|
47
|
-
"commander": "^15.0.0",
|
|
48
|
-
"@nudojs/core": "3.0.0-beta.0",
|
|
49
|
-
"@nudojs/parser": "1.1.0-beta.0",
|
|
50
|
-
"@nudojs/service": "5.0.0-beta.0"
|
|
51
|
-
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsup"
|
|
36
|
+
"nudojs": "1.0.0-beta.1"
|
|
54
37
|
}
|
|
55
38
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|