@runa-cmd/help 0.2.0-beta.3 → 0.2.0-beta.4
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/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @runa-cmd/help
|
|
2
2
|
|
|
3
|
+
## 0.2.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4b6b197: `tool: false` keeps a command out of the MCP server, from its definition. It's for commands that only make sense at a terminal.
|
|
8
|
+
|
|
9
|
+
**Breaking:** `completions` is no longer a tool. A shell script means nothing to a model, and it took an `exclude` to hide it. An `exclude` that names it stays valid, and settings for it in `tools` now fail at startup.
|
|
10
|
+
|
|
11
|
+
- ab1321c: `format` now receives the args and options, as `format(result, { args, options })`, with their types. An option that only changes the display, like `--no-truncate`, no longer has to travel in what `run()` returns, where a model and `--json` would get it too. `format(result)` keeps working.
|
|
12
|
+
- 64d3962: `defineCLI` no longer skips the command name when there's only one command. That mode depended on counting commands, so adding a plugin with a command of its own broke `tool hola`, and `tool tool` took a value for the name. It was deprecated with `RUNA_IMPLICIT_SINGLE_COMMAND`.
|
|
13
|
+
|
|
14
|
+
**Breaking:** a `defineCLI` with one command now routes as any other: `tool hola` exits with 127.
|
|
15
|
+
|
|
16
|
+
**Migration:** for a CLI of one command, use `runCLI`.
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
// Before
|
|
20
|
+
await defineCLI({ meta: { name: "tool" }, commands: { tool } }).run();
|
|
21
|
+
|
|
22
|
+
// After
|
|
23
|
+
await runCLI(tool);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
If you'd rather keep `defineCLI`, write the command name: `tool tool hola`.
|
|
27
|
+
|
|
3
28
|
## 0.2.0-beta.3
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runa-cmd/help",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.4",
|
|
4
4
|
"description": "Themeable help output for Runa CLIs with composable layout primitives.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/node": "^25.6.0",
|
|
49
49
|
"typescript": "^6.0.2",
|
|
50
50
|
"zod": "^4.3.6",
|
|
51
|
-
"@runa-cmd/core": "0.2.0-beta.
|
|
51
|
+
"@runa-cmd/core": "0.2.0-beta.4"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsc",
|