@thecms/cli 0.20.2-dev.129 → 0.20.2
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 = "
|
|
9
|
-
var PLATFORM_API = "https://
|
|
10
|
-
var PLATFORM_DASHBOARD = "https://
|
|
8
|
+
var CHANNEL = "latest";
|
|
9
|
+
var PLATFORM_API = "https://api.dotscms.com";
|
|
10
|
+
var PLATFORM_DASHBOARD = "https://app.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.2
|
|
178
|
+
var CLI_VERSION = "0.20.2";
|
|
179
179
|
function call(ctx, path, init = {}) {
|
|
180
180
|
const { token, client = "cli", ...rest } = init;
|
|
181
181
|
const headers = new Headers(rest.headers);
|
|
@@ -6649,7 +6649,7 @@ async function readWorkspace(session, state, account, signal) {
|
|
|
6649
6649
|
else if (siteApps.includes(app) && state2 && state2 !== "connected") application.review.push(`${app.slug}: the site is not connected (${state2}): start it and open a page`);
|
|
6650
6650
|
}
|
|
6651
6651
|
levels.push(level("application", worst(application), [...application.missing, ...application.review], {
|
|
6652
|
-
applications: apps.map((a) => ({ id: a.id, slug: a.slug, name: a.name, siteUrl: a.siteUrl ?? null, siteName: a.siteName ?? null, sitemap: !!a.sitemap, publicKey: a.publicKey, connection: a.connection?.state ?? null, site: siteApps.includes(a), app: isAppAddress(a.siteUrl) }))
|
|
6652
|
+
applications: apps.map((a) => ({ id: a.id, slug: a.slug, name: a.name, siteUrl: a.siteUrl ?? null, siteName: a.siteName ?? null, sitemap: !!a.sitemap, publicKey: a.publicKey, connection: a.connection?.state ?? null, runs: a.connection?.library ? `${a.connection.library.name} ${a.connection.library.version}` : null, site: siteApps.includes(a), app: isAppAddress(a.siteUrl) }))
|
|
6653
6653
|
}));
|
|
6654
6654
|
await measure(apps);
|
|
6655
6655
|
}
|
|
@@ -8289,13 +8289,14 @@ async function doctorOne(ctx) {
|
|
|
8289
8289
|
else note(line);
|
|
8290
8290
|
} else if (connection?.update?.level === "required") problem2(`The site's server announces a library the platform no longer supports: thecms upgrade (to ${connection.update.to})`);
|
|
8291
8291
|
else if (connection?.update?.level === "available") note(`The site's server can update to ${connection.update.to}: thecms upgrade`);
|
|
8292
|
+
const runs = announced2?.version ? ` \xB7 it runs ${announced2.name} ${announced2.version}` : "";
|
|
8292
8293
|
if (!state) note("The site's state is not readable with your account");
|
|
8293
|
-
else if (state === "connected") ok2(
|
|
8294
|
+
else if (state === "connected") ok2(`The site is connected${runs}`);
|
|
8294
8295
|
else if (state === "outdated") {
|
|
8295
8296
|
if (!stale && connection?.update?.level !== "required") problem2("The site runs a library the platform calls outdated: thecms upgrade");
|
|
8296
8297
|
} else if (state === "not_configured") note("The application has no Site URL yet (dashboard \u2192 the application's settings)");
|
|
8297
8298
|
else if (state === "never") note("The site has never announced itself: start it (npm run dev) and open a page");
|
|
8298
|
-
else note(
|
|
8299
|
+
else note(`The site has not been seen recently${runs ? ` (last seen running ${announced2.name} ${announced2.version})` : ""}`);
|
|
8299
8300
|
}
|
|
8300
8301
|
return problems ? 1 : 0;
|
|
8301
8302
|
}
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thecms/cli",
|
|
3
|
-
"version": "0.20.2
|
|
3
|
+
"version": "0.20.2",
|
|
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.2
|
|
39
|
+
"@thecms/sdk": "0.20.2",
|
|
40
40
|
"libpg-query": "18.2.0",
|
|
41
41
|
"zod": "4.6.5"
|
|
42
42
|
},
|