@thecms/cli 0.20.3 → 0.20.4-dev.136

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.
@@ -5,9 +5,9 @@ import { spawn } from "child_process";
5
5
  import { createInterface } from "readline/promises";
6
6
 
7
7
  // src/channel.ts
8
- var CHANNEL = "latest";
9
- var PLATFORM_API = "https://api.dotscms.com";
10
- var PLATFORM_DASHBOARD = "https://app.dotscms.com";
8
+ var CHANNEL = "dev";
9
+ var PLATFORM_API = "https://apidev.dotscms.com";
10
+ var PLATFORM_DASHBOARD = "https://dev.dotscms.com";
11
11
 
12
12
  // src/credentials.ts
13
13
  import { spawnSync } from "child_process";
@@ -175,7 +175,7 @@ function realContext(env = process.env) {
175
175
  import { parseArgs } from "util";
176
176
 
177
177
  // src/context.ts
178
- var CLI_VERSION = "0.20.3";
178
+ var CLI_VERSION = "0.20.4-dev.136";
179
179
  function call(ctx, path, init = {}) {
180
180
  const { token, client = "cli", ...rest } = init;
181
181
  const headers = new Headers(rest.headers);
@@ -3032,7 +3032,9 @@ function writeMcpRegistration(root) {
3032
3032
  config = {};
3033
3033
  }
3034
3034
  }
3035
- config.mcpServers = { ...config.mcpServers ?? {}, thecms: { command: "thecms", args: ["mcp"] } };
3035
+ const own = config.mcpServers?.thecms;
3036
+ const runsMcp = typeof own?.command === "string" && Array.isArray(own.args) && own.args.includes("mcp");
3037
+ config.mcpServers = { ...config.mcpServers ?? {}, thecms: runsMcp ? own : { command: "thecms", args: ["mcp"] } };
3036
3038
  const after = `${JSON.stringify(config, null, 2)}
3037
3039
  `;
3038
3040
  if (after === before) return false;
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  CLI_VERSION,
4
4
  projectCli,
5
5
  run
6
- } from "./chunk-2ZNHEBIS.js";
6
+ } from "./chunk-C5OR5VZF.js";
7
7
 
8
8
  // src/cli.ts
9
9
  import { spawn } from "child_process";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  personalToken,
4
4
  run
5
- } from "./chunk-2ZNHEBIS.js";
5
+ } from "./chunk-C5OR5VZF.js";
6
6
  export {
7
7
  personalToken,
8
8
  run
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecms/cli",
3
- "version": "0.20.3",
3
+ "version": "0.20.4-dev.136",
4
4
  "license": "UNLICENSED",
5
5
  "description": "theCMS. command line: the standard's starter, checks, brand, the method's docs, sign-in with a personal token",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@modelcontextprotocol/sdk": "1.32.1",
38
38
  "@resvg/resvg-wasm": "2.6.2",
39
- "@thecms/sdk": "0.20.3",
39
+ "@thecms/sdk": "0.20.4-dev.136",
40
40
  "libpg-query": "18.2.0",
41
41
  "zod": "4.6.5"
42
42
  },