nudojs 1.0.0-beta.0 → 1.0.0-beta.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 CHANGED
@@ -1,13 +1,9 @@
1
1
  # nudojs
2
2
 
3
- > 壳包版本 ≠ 引擎版本:`nudojs` 只是安装壳,真正引擎在 `@nudojs/cli` / `@nudojs/core`;`nudo --version` 会同屏打印三者版本。
4
-
5
- > **欢迎重回 JS 世界.** — Nudo 不限制你的 JS 表达,只忠实反映中间量与结果,并提供比类型更精确的契约校验。
3
+ > **欢迎重回 JS 世界.** — Nudo 不限制你的 JS 表达,只忠实反映中间量与结果,并提供比类型更精确的契约校验。
6
4
  > Welcome back to JavaScript. Your JS stays JS — observe intermediates, enforce contracts sharper than types.
7
5
 
8
- Thin installer shell for the **`nudo`** command — it exists so that `npm i -g nudojs` (or `npx nudojs`) gives you the `nudo` CLI directly. Everything is delegated to [`@nudojs/cli`](https://www.npmjs.com/package/@nudojs/cli), the CLI of the Nudo type inference engine for JavaScript.
9
-
10
- > The bare npm name `nudo` was unavailable, so this package is published as **`nudojs`**. The installed command is still `nudo`.
6
+ The **`nudo`** CLI of the Nudo type inference engine for JavaScript.
11
7
 
12
8
  ```bash
13
9
  npm i -g nudojs
@@ -18,19 +14,13 @@ nudo test file.js
18
14
  npx nudojs check file.js
19
15
  ```
20
16
 
21
- Primary verbs: `check` · `test` · `contract` · `export` · `health`.
22
-
23
- > **Version heads-up.** `nudojs` is a thin installer shell — **its version number is not the engine version.** `nudojs@0.x` wraps `@nudojs/cli@3.x`; engine packages (`@nudojs/core`, …) version independently. Run `nudo --version` to see the engine CLI you actually have. Full policy: [docs/versioning.md](https://github.com/nudojs/nudo/blob/main/docs/versioning.md).
17
+ Primary verbs: `check` · `test` · `contract` · `export` · `health`. `migrate` is the one-way TypeScript retirement gate.
24
18
 
25
- Nudo infers types by **executing** your code on Abs (`shape × term × pred × conf`) — see the monorepo packages for the actual engine:
26
-
27
- - [`@nudojs/cli`](https://github.com/nudojs/nudo/tree/main/packages/cli) — CLI (`check`, `test`, `contract`, `export`, `health`)
28
- - [`@nudojs/core`](https://github.com/nudojs/nudo/tree/main/packages/core) — the Abs type system (shape × term × pred × conf)
29
- - [`@nudojs/parser`](https://github.com/nudojs/nudo/tree/main/packages/parser) — Babel-based parser and `@nudo:` directive extraction
30
- - [`@nudojs/service`](https://github.com/nudojs/nudo/tree/main/packages/service) — analyzer orchestration, Abs-native evaluator API (`@nudojs/service/evaluator`), dts generation, harvest
31
- - [`@nudojs/env`](https://github.com/nudojs/nudo/tree/main/packages/env) — ES / Web / Node API type definitions
19
+ ```text
20
+ nudojs <version>
21
+ @nudojs/core <version> # when resolvable
22
+ ```
32
23
 
33
- > Installing both `nudojs` and `@nudojs/cli` globally is redundant; pick one. This package only re-exports the CLI entry under the short `nudo` bin.
24
+ > **Migration:** `@nudojs/cli` is a deprecated stub that forwards here. Install `nudojs` only.
34
25
 
35
- Full documentation (English + 中文): <https://nudojs.github.io/nudo/><br/>
36
- Playground: <https://nudojs.github.io/nudo/playground>
26
+ Full documentation: <https://nudojs.github.io/nudo/>
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node