@blocklet/cli 1.16.47-beta-20250731-014139-e860268f → 1.16.47-beta-20250805-095401-14eb156b
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/lib/commands/server/status.js +9 -1
- package/package.json +17 -17
|
@@ -35,7 +35,7 @@ const colorMap = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
exports.run = async ({ forceIntranet = false }) => {
|
|
38
|
-
const { node, getBaseUrls } = await getNode({ dir: process.cwd() });
|
|
38
|
+
const { node, getBaseUrls, dataDir } = await getNode({ dir: process.cwd() });
|
|
39
39
|
|
|
40
40
|
try {
|
|
41
41
|
const info = await getProcessInfo(PROCESS_NAME_DAEMON);
|
|
@@ -45,13 +45,21 @@ exports.run = async ({ forceIntranet = false }) => {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const nodeInfo = await node.getNodeInfo();
|
|
48
|
+
const providers = await node.getServerProviders({ dataDir });
|
|
48
49
|
const status = statusMap[info.pm2_env.status];
|
|
49
50
|
const statusFn = chalk[colorMap[status]];
|
|
50
51
|
const time = status === 'running' ? ` (${statusFn(prettyMs(Date.now() - Number(info.pm2_env.pm_uptime)))})` : '';
|
|
52
|
+
|
|
51
53
|
print();
|
|
52
54
|
print(`Blocklet Server status: ${statusFn(upperFirst(status))}${time}`);
|
|
53
55
|
print(`Blocklet Server mode: ${chalk.cyan(upperFirst(nodeInfo.mode))}`);
|
|
54
56
|
print(`Blocklet Server Data Directory: ${chalk.cyan(info.pm2_env.env.ABT_NODE_DATA_DIR)}`);
|
|
57
|
+
if (providers.routerProvider) {
|
|
58
|
+
print(`Blocklet Server Router Engine: ${chalk.cyan(providers.routerProvider)}`);
|
|
59
|
+
}
|
|
60
|
+
if (providers.dbProvider) {
|
|
61
|
+
print(`Blocklet Server Database: ${chalk.cyan(providers.dbProvider)}`);
|
|
62
|
+
}
|
|
55
63
|
|
|
56
64
|
print();
|
|
57
65
|
if (nodeInfo.initialized) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.16.47-beta-
|
|
3
|
+
"version": "1.16.47-beta-20250805-095401-14eb156b",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"bin": {
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@abtnode/blocklet-services": "1.16.47-beta-
|
|
39
|
-
"@abtnode/client": "1.16.47-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.47-beta-
|
|
41
|
-
"@abtnode/core": "1.16.47-beta-
|
|
42
|
-
"@abtnode/db-cache": "1.16.47-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.47-beta-
|
|
44
|
-
"@abtnode/models": "1.16.47-beta-
|
|
45
|
-
"@abtnode/router-provider": "1.16.47-beta-
|
|
46
|
-
"@abtnode/util": "1.16.47-beta-
|
|
47
|
-
"@abtnode/webapp": "1.16.47-beta-
|
|
38
|
+
"@abtnode/blocklet-services": "1.16.47-beta-20250805-095401-14eb156b",
|
|
39
|
+
"@abtnode/client": "1.16.47-beta-20250805-095401-14eb156b",
|
|
40
|
+
"@abtnode/constant": "1.16.47-beta-20250805-095401-14eb156b",
|
|
41
|
+
"@abtnode/core": "1.16.47-beta-20250805-095401-14eb156b",
|
|
42
|
+
"@abtnode/db-cache": "1.16.47-beta-20250805-095401-14eb156b",
|
|
43
|
+
"@abtnode/logger": "1.16.47-beta-20250805-095401-14eb156b",
|
|
44
|
+
"@abtnode/models": "1.16.47-beta-20250805-095401-14eb156b",
|
|
45
|
+
"@abtnode/router-provider": "1.16.47-beta-20250805-095401-14eb156b",
|
|
46
|
+
"@abtnode/util": "1.16.47-beta-20250805-095401-14eb156b",
|
|
47
|
+
"@abtnode/webapp": "1.16.47-beta-20250805-095401-14eb156b",
|
|
48
48
|
"@arcblock/did": "1.21.0",
|
|
49
49
|
"@arcblock/event-hub": "1.21.0",
|
|
50
50
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
51
51
|
"@arcblock/jwt": "1.21.0",
|
|
52
52
|
"@arcblock/ws": "1.21.0",
|
|
53
|
-
"@blocklet/constant": "1.16.47-beta-
|
|
53
|
+
"@blocklet/constant": "1.16.47-beta-20250805-095401-14eb156b",
|
|
54
54
|
"@blocklet/error": "^0.2.5",
|
|
55
55
|
"@blocklet/form-collector": "^0.1.8",
|
|
56
|
-
"@blocklet/images": "1.16.47-beta-
|
|
57
|
-
"@blocklet/meta": "1.16.47-beta-
|
|
58
|
-
"@blocklet/resolver": "1.16.47-beta-
|
|
59
|
-
"@blocklet/store": "1.16.47-beta-
|
|
56
|
+
"@blocklet/images": "1.16.47-beta-20250805-095401-14eb156b",
|
|
57
|
+
"@blocklet/meta": "1.16.47-beta-20250805-095401-14eb156b",
|
|
58
|
+
"@blocklet/resolver": "1.16.47-beta-20250805-095401-14eb156b",
|
|
59
|
+
"@blocklet/store": "1.16.47-beta-20250805-095401-14eb156b",
|
|
60
60
|
"@blocklet/theme-builder": "^0.4.6",
|
|
61
61
|
"@ocap/client": "1.21.0",
|
|
62
62
|
"@ocap/mcrypto": "1.21.0",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"engines": {
|
|
155
155
|
"node": ">=14"
|
|
156
156
|
},
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "db2c143c5986281db1ae735aac70cbeb8c817773",
|
|
158
158
|
"devDependencies": {
|
|
159
159
|
"@types/fs-extra": "^11.0.4",
|
|
160
160
|
"@types/jest": "^29.5.13"
|