@wirecat/cli-core 0.445.0 → 0.446.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 +9 -0
- package/dist/cli/guide.js +3 -1
- package/dist/cli/mcp-server-command.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## 0.446.0 — 26.10.2026
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`checkGuide` accepts a step that runs a group with an action of its own**, such as `mcp` now that it has
|
|
13
|
+
`mcp server`; before, it asked for one of the group's subcommands.
|
|
14
|
+
- **The `mcp server` group states its effects** (reads locally), as a CLI that requires effects on every command
|
|
15
|
+
expects.
|
|
16
|
+
|
|
8
17
|
## 0.445.0 — 26.10.2026
|
|
9
18
|
|
|
10
19
|
### Added
|
package/dist/cli/guide.js
CHANGED
|
@@ -291,7 +291,9 @@ export const checkStep = (program, run) => {
|
|
|
291
291
|
const beforeDashes = rest.slice(index, rest.includes("--") ? rest.indexOf("--") : undefined);
|
|
292
292
|
if (help && beforeDashes.some((word) => word === help.long || word === help.short))
|
|
293
293
|
return [];
|
|
294
|
-
|
|
294
|
+
// A group with an action of its own runs as typed: `mcp` serves, `mcp server start` is its child.
|
|
295
|
+
const runsItself = at._actionHandler != null;
|
|
296
|
+
if (at.commands.length > 0 && !runsItself)
|
|
295
297
|
return [`needs one of: ${at.commands.map((one) => one.name()).join(", ")}`];
|
|
296
298
|
for (const command of chain)
|
|
297
299
|
silent(command);
|
|
@@ -46,7 +46,7 @@ const clientLines = (clients) => clients.length === 0
|
|
|
46
46
|
* None of it is offered over MCP: status holds a live login code.
|
|
47
47
|
*/
|
|
48
48
|
export const mcpServerCommand = ({ example, defaultPort = MCP_HTTP_DEFAULT_PORT, target, answer, system, }) => {
|
|
49
|
-
const command = annotate(new Command("server"), { mcp: false })
|
|
49
|
+
const command = annotate(new Command("server"), { effects: LOCAL_READ, mcp: false })
|
|
50
50
|
.summary("run the HTTP MCP server in the background")
|
|
51
51
|
.description("start, stop and check `mcp --http` in the background; status shows the login code for a browser app");
|
|
52
52
|
const machine = (self) => system?.(self) ?? thisMachine();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.446.0",
|
|
4
4
|
"description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|