@runa-cmd/create 0.2.0-beta.7 → 1.0.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/CHANGELOG.md +32 -0
- package/README.md +2 -4
- package/package.json +2 -2
- package/template/runa.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @runa-cmd/create
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a6bdd11: **Runa 1.0.** The API is stable: from here on, what [`VERSIONING.md`](https://github.com/jrodrigopuca/runa-cmd/blob/main/VERSIONING.md) covers only breaks in a major version.
|
|
8
|
+
|
|
9
|
+
Coming from a `0.2.0` beta, there's nothing new to do in this version. Coming from `0.1.0`, read the entries of the betas below: each one says what changed and how to migrate. The main changes since `0.1.0` are:
|
|
10
|
+
|
|
11
|
+
- Commands, options and arguments are Zod schemas, and the same schema validates the terminal, env, the config file and an MCP tool call.
|
|
12
|
+
- `--help` and `--version` work without plugins; `help` works where a command goes; usage errors exit with 2, and a command that doesn't exist with 127.
|
|
13
|
+
- A config file per CLI, with one shape and errors that name the file and the key.
|
|
14
|
+
- `testCLI()` runs a CLI in the same process, and gives back its exit code, output, result and error.
|
|
15
|
+
- Error codes are a list, `ERROR_CODES`, read with `isRunaError()`.
|
|
16
|
+
- Mistakes in a CLI's own definition stop it at startup, with a message that says how to fix them.
|
|
17
|
+
|
|
18
|
+
`@runa-cmd/mcp` stays at `0.x` for now, since it's where the API may still change: see its changelog.
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- ba3be24: New package: `npm create @runa-cmd@beta my-tool` creates a CLI ready to run, test and build. It makes the project of the getting started guide, named after yours, and installs nothing on its own.
|
|
23
|
+
- 4140fe9: The generator's command line follows the rules of a CLI made with Runa. A usage error exits with 2, says what's wrong in its own words, and where the help is:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
$ npm create @runa-cmd
|
|
27
|
+
Missing the name of the project, as in 'npm create @runa-cmd my-tool'.
|
|
28
|
+
Run 'npm create @runa-cmd -- --help' for usage.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Before, a missing name or an extra argument printed the usage without saying what was wrong, and an unknown option showed Node's text. The README lists its arguments and exit codes, and says that npm reads its own flags first, so `--help` and `--version` go after `--`.
|
|
32
|
+
|
|
33
|
+
**Breaking:** `-v` is gone, as in every Runa CLI, where it's left for `--verbose`. Use `--version`.
|
|
34
|
+
|
|
3
35
|
## 0.2.0-beta.7
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
Create a CLI made with [Runa](https://github.com/jrodrigopuca/runa-cmd), ready to run, test and publish.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm create @runa-cmd
|
|
6
|
+
npm create @runa-cmd my-tool
|
|
7
7
|
cd my-tool
|
|
8
8
|
npm install
|
|
9
9
|
node src/main.ts hello Ana
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
It works with pnpm, yarn and bun too, as `pnpm create @runa-cmd@beta my-tool`, and the next steps it prints use the one you ran it with.
|
|
12
|
+
It works with pnpm, yarn and bun too, as `pnpm create @runa-cmd my-tool`, and the next steps it prints use the one you ran it with.
|
|
15
13
|
|
|
16
14
|
## Usage
|
|
17
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runa-cmd/create",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Create a CLI made with Runa: npm create @runa-cmd my-tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/node": "^24.19.2",
|
|
40
40
|
"typescript": "^7.0.2",
|
|
41
41
|
"zod": "^4.6.7",
|
|
42
|
-
"@runa-cmd/core": "0.
|
|
42
|
+
"@runa-cmd/core": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsc && node scripts/copy-template.mjs",
|
package/template/runa.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"core":"0.
|
|
1
|
+
{"core":"1.0.0"}
|