crosscheck-cli 0.0.50 → 0.0.51
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/dist/mcp-register.js +14 -3
- package/dist/mcp-register.js.map +1 -1
- package/package.json +2 -3
package/dist/mcp-register.js
CHANGED
|
@@ -3,12 +3,23 @@
|
|
|
3
3
|
* hand-edits JSON.
|
|
4
4
|
*
|
|
5
5
|
* Primary path: the `claude` CLI — `claude mcp add --scope user crosscheck --
|
|
6
|
-
* npx -y crosscheck-cli@latest serve`. User scope means it's
|
|
7
|
-
* every workspace, which matches a per-seat license.
|
|
6
|
+
* npx -y -p crosscheck-cli@latest crosscheck serve`. User scope means it's
|
|
7
|
+
* available in every workspace, which matches a per-seat license.
|
|
8
8
|
*
|
|
9
9
|
* Fallback: if the `claude` CLI isn't on PATH, merge-write the user's
|
|
10
10
|
* ~/.claude.json `mcpServers` map in place — never clobbering existing
|
|
11
11
|
* servers or other settings.
|
|
12
|
+
*
|
|
13
|
+
* The bin name is pinned explicitly via `-p <pkg> <bin>` rather than the
|
|
14
|
+
* shorter `npx -y crosscheck-cli@latest serve` — bare `npx <pkg>` only
|
|
15
|
+
* auto-selects a bin when the package ships exactly one, or one matching
|
|
16
|
+
* the package name. crosscheck-cli briefly shipped a second bin
|
|
17
|
+
* (crosscheck-enterprise) in 0.0.50, which made every existing
|
|
18
|
+
* registration written with the short form fail with "could not
|
|
19
|
+
* determine executable to run" (silently, since this string gets written
|
|
20
|
+
* to ~/.claude.json and only fails later as an opaque MCP connection
|
|
21
|
+
* error). Keep this form even now that crosscheck-cli is back to a single
|
|
22
|
+
* bin — it's what makes a future second bin safe to add again.
|
|
12
23
|
*/
|
|
13
24
|
import { spawnSync } from "node:child_process";
|
|
14
25
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -20,7 +31,7 @@ import { CLI_PACKAGE } from "./config.js";
|
|
|
20
31
|
// with its own duplicate copy of these constants.
|
|
21
32
|
export const SERVER_NAME = "crosscheck";
|
|
22
33
|
export const SERVER_COMMAND = "npx";
|
|
23
|
-
export const SERVER_ARGS = ["-y", `${CLI_PACKAGE}@latest`, "serve"];
|
|
34
|
+
export const SERVER_ARGS = ["-y", "-p", `${CLI_PACKAGE}@latest`, "crosscheck", "serve"];
|
|
24
35
|
function claudeCliAvailable() {
|
|
25
36
|
try {
|
|
26
37
|
const r = spawnSync("claude", ["--version"], { stdio: "ignore" });
|
package/dist/mcp-register.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-register.js","sourceRoot":"","sources":["../src/mcp-register.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mcp-register.js","sourceRoot":"","sources":["../src/mcp-register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,sEAAsE;AACtE,0EAA0E;AAC1E,kDAAkD;AAClD,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AACpC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,WAAW,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;AAOxF,SAAS,kBAAkB;IACzB,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QAClE,OAAO,CAAC,CAAC,MAAM,KAAK,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CAAC;QACb,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IACrF,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAA0B,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,EAAE;IAEhG,IAAI,kBAAkB,EAAE,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,SAAS,CACjB,QAAQ,EACR,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,EAC3E,EAAE,KAAK,EAAE,QAAQ,EAAE,CACpB,CAAC;QACF,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC7C,sEAAsE;QACtE,iDAAiD;IACnD,CAAC;IAED,MAAM,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACrC,IAAI,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;IAE1E,OAAO;QACL,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC;QAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crosscheck-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"description": "Crosscheck — multi-LLM orchestration MCP for the terminal. Single-machine activation, BYO upstream LLM keys, content-free telemetry. Installs into Claude Code in one command.",
|
|
5
5
|
"license": "SEE LICENSE.md",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"crosscheck": "dist/cli.js"
|
|
9
|
-
"crosscheck-enterprise": "dist/cli-enterprise.js"
|
|
8
|
+
"crosscheck": "dist/cli.js"
|
|
10
9
|
},
|
|
11
10
|
"publishConfig": {
|
|
12
11
|
"access": "public"
|