@coderook/cli 0.14.0 → 0.14.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.
@@ -1475,7 +1475,7 @@ const SPECS = [
1475
1475
  "A project whose owner has turned off machine reading is refused, in\n" +
1476
1476
  "words rather than as a status code.\n",
1477
1477
  examples: ["claude mcp add coderook -- coderook mcp"],
1478
- run: () => (0, mcp_js_1.commandMcp)(),
1478
+ run: () => (0, mcp_js_1.commandMcp)(VERSION),
1479
1479
  },
1480
1480
  {
1481
1481
  name: "doctor",
@@ -33,6 +33,15 @@ const api_js_1 = require("./api.js");
33
33
  const config_js_1 = require("./config.js");
34
34
  /** What the protocol calls itself. Both clients accept this revision. */
35
35
  const PROTOCOL_VERSION = "2024-11-05";
36
+ /*
37
+ What this build calls itself, handed in rather than written down here.
38
+
39
+ The first version carried a literal, which the CLI already learned not to
40
+ do: the comment beside its own VERSION says a hardcoded copy had drifted
41
+ from what was published. Mine drifted within one release — the server
42
+ announced 0.13.0 to Claude Code while the package was 0.14.0.
43
+ */
44
+ let serverVersion = "0.0.0";
36
45
  /** Beyond this a file is described rather than pasted into a conversation. */
37
46
  const READ_LIMIT = 256 * 1024;
38
47
  function text(value) {
@@ -269,7 +278,7 @@ async function handle(request) {
269
278
  reply(id, {
270
279
  protocolVersion: PROTOCOL_VERSION,
271
280
  capabilities: { tools: {} },
272
- serverInfo: { name: "coderook", version: node_process_1.default.env.CODEROOK_CLI_VERSION ?? "0.13.0" },
281
+ serverInfo: { name: "coderook", version: serverVersion },
273
282
  });
274
283
  return;
275
284
  }
@@ -321,7 +330,8 @@ async function handle(request) {
321
330
  * Buffered by line rather than by chunk, because a chunk boundary falls
322
331
  * wherever the pipe decides and a half-read message parses as nothing.
323
332
  */
324
- async function commandMcp() {
333
+ async function commandMcp(version) {
334
+ serverVersion = version;
325
335
  node_process_1.default.stdin.setEncoding("utf8");
326
336
  let buffer = "";
327
337
  await new Promise((done) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderook/cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "CodeRook from the command line, on any operating system",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "homepage": "https://coderook.com",