@blocklet/cli 1.17.7-beta-20251229-085620-84f09930 → 1.17.7-beta-20251230-041316-624cafaf
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.
|
@@ -66,7 +66,7 @@ module.exports = (parentCommand = '') => {
|
|
|
66
66
|
.option('--force-intranet', 'Force blocklet server to run in intranet, ignore any external IP.', forceIntranet)
|
|
67
67
|
.option(
|
|
68
68
|
'--routing <strategy>',
|
|
69
|
-
'Routing update strategy on startup: system (fast, default)
|
|
69
|
+
'Routing update strategy on startup: system (fast, default), full/all (complete rebuild)'
|
|
70
70
|
)
|
|
71
71
|
.description('Start Blocklet Server')
|
|
72
72
|
.action(parseOptions(start.run));
|
|
@@ -814,6 +814,18 @@ const clearStartLock = ({ pid, lockFile, enforceLock }) => {
|
|
|
814
814
|
}
|
|
815
815
|
};
|
|
816
816
|
|
|
817
|
+
/**
|
|
818
|
+
* Normalize routing strategy value
|
|
819
|
+
* @param {string} routing - The routing strategy input
|
|
820
|
+
* @returns {string} Normalized routing strategy
|
|
821
|
+
*/
|
|
822
|
+
const normalizeRoutingStrategy = (routing) => {
|
|
823
|
+
if (routing === 'all') {
|
|
824
|
+
return 'full';
|
|
825
|
+
}
|
|
826
|
+
return routing;
|
|
827
|
+
};
|
|
828
|
+
|
|
817
829
|
/**
|
|
818
830
|
* start blocklet server
|
|
819
831
|
* @param {object} params
|
|
@@ -822,10 +834,11 @@ const clearStartLock = ({ pid, lockFile, enforceLock }) => {
|
|
|
822
834
|
* @param {string} params.workingDir working directory when start node
|
|
823
835
|
* @param {boolean} params.forceIntranet force server to run in intranet, ignore any external IP
|
|
824
836
|
* @param {string} params.mode server mode
|
|
825
|
-
* @param {string} params.routing routing update strategy: system,
|
|
837
|
+
* @param {string} params.routing routing update strategy: system, all, or full (all is alias for full)
|
|
826
838
|
* @returns {Promise<number>} 0: success, others: failed
|
|
827
839
|
*/
|
|
828
|
-
const start = async ({ updateDb, enforceLock, forceIntranet, workingDir, mode, routing }) => {
|
|
840
|
+
const start = async ({ updateDb, enforceLock, forceIntranet, workingDir, mode, routing: rawRouting }) => {
|
|
841
|
+
const routing = normalizeRoutingStrategy(rawRouting);
|
|
829
842
|
const { pid } = process;
|
|
830
843
|
const { config, dataDir } = await nodeLib.readNodeConfig(workingDir);
|
|
831
844
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.17.7-beta-
|
|
3
|
+
"version": "1.17.7-beta-20251230-041316-624cafaf",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://www.arcblock.io/docs/blocklet-cli",
|
|
6
6
|
"bin": {
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/blocklet-services": "1.17.7-beta-
|
|
37
|
-
"@abtnode/constant": "1.17.7-beta-
|
|
38
|
-
"@abtnode/core": "1.17.7-beta-
|
|
39
|
-
"@abtnode/db-cache": "1.17.7-beta-
|
|
40
|
-
"@abtnode/logger": "1.17.7-beta-
|
|
41
|
-
"@abtnode/models": "1.17.7-beta-
|
|
42
|
-
"@abtnode/router-provider": "1.17.7-beta-
|
|
43
|
-
"@abtnode/util": "1.17.7-beta-
|
|
44
|
-
"@abtnode/webapp": "1.17.7-beta-
|
|
36
|
+
"@abtnode/blocklet-services": "1.17.7-beta-20251230-041316-624cafaf",
|
|
37
|
+
"@abtnode/constant": "1.17.7-beta-20251230-041316-624cafaf",
|
|
38
|
+
"@abtnode/core": "1.17.7-beta-20251230-041316-624cafaf",
|
|
39
|
+
"@abtnode/db-cache": "1.17.7-beta-20251230-041316-624cafaf",
|
|
40
|
+
"@abtnode/logger": "1.17.7-beta-20251230-041316-624cafaf",
|
|
41
|
+
"@abtnode/models": "1.17.7-beta-20251230-041316-624cafaf",
|
|
42
|
+
"@abtnode/router-provider": "1.17.7-beta-20251230-041316-624cafaf",
|
|
43
|
+
"@abtnode/util": "1.17.7-beta-20251230-041316-624cafaf",
|
|
44
|
+
"@abtnode/webapp": "1.17.7-beta-20251230-041316-624cafaf",
|
|
45
45
|
"@arcblock/did": "^1.27.16",
|
|
46
46
|
"@arcblock/event-hub": "^1.27.16",
|
|
47
47
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
48
48
|
"@arcblock/jwt": "^1.27.16",
|
|
49
49
|
"@arcblock/ws": "^1.27.16",
|
|
50
|
-
"@blocklet/constant": "1.17.7-beta-
|
|
50
|
+
"@blocklet/constant": "1.17.7-beta-20251230-041316-624cafaf",
|
|
51
51
|
"@blocklet/error": "^0.3.5",
|
|
52
52
|
"@blocklet/form-collector": "^0.1.8",
|
|
53
|
-
"@blocklet/images": "1.17.7-beta-
|
|
54
|
-
"@blocklet/meta": "1.17.7-beta-
|
|
55
|
-
"@blocklet/resolver": "1.17.7-beta-
|
|
56
|
-
"@blocklet/server-js": "1.17.7-beta-
|
|
57
|
-
"@blocklet/store": "1.17.7-beta-
|
|
53
|
+
"@blocklet/images": "1.17.7-beta-20251230-041316-624cafaf",
|
|
54
|
+
"@blocklet/meta": "1.17.7-beta-20251230-041316-624cafaf",
|
|
55
|
+
"@blocklet/resolver": "1.17.7-beta-20251230-041316-624cafaf",
|
|
56
|
+
"@blocklet/server-js": "1.17.7-beta-20251230-041316-624cafaf",
|
|
57
|
+
"@blocklet/store": "1.17.7-beta-20251230-041316-624cafaf",
|
|
58
58
|
"@blocklet/theme-builder": "^0.4.8",
|
|
59
59
|
"@ocap/client": "^1.27.16",
|
|
60
60
|
"@ocap/mcrypto": "^1.27.16",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=14"
|
|
155
155
|
},
|
|
156
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "9ee11bed14f702eab5496cfc3b7f79feb190e811",
|
|
157
157
|
"devDependencies": {
|
|
158
158
|
"@types/fs-extra": "^11.0.4"
|
|
159
159
|
}
|