@constellation-network/node-pilot 0.0.5 → 0.0.6
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/README.md
CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @constellation-network/node-pilot
|
|
21
21
|
$ cpilot COMMAND
|
22
22
|
running command...
|
23
23
|
$ cpilot (--version|-v)
|
24
|
-
@constellation-network/node-pilot/0.0.
|
24
|
+
@constellation-network/node-pilot/0.0.6 darwin-arm64 node-v22.15.0
|
25
25
|
$ cpilot --help [COMMAND]
|
26
26
|
USAGE
|
27
27
|
$ cpilot COMMAND
|
@@ -62,7 +62,7 @@ EXAMPLES
|
|
62
62
|
$ cpilot config
|
63
63
|
```
|
64
64
|
|
65
|
-
_See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
65
|
+
_See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/config.ts)_
|
66
66
|
|
67
67
|
## `cpilot config get [NAME]`
|
68
68
|
|
@@ -86,7 +86,7 @@ EXAMPLES
|
|
86
86
|
$ cpilot config get gl0:CL_PUBLIC_HTTP_PORT
|
87
87
|
```
|
88
88
|
|
89
|
-
_See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
89
|
+
_See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/config/get.ts)_
|
90
90
|
|
91
91
|
## `cpilot config set NAME VALUE`
|
92
92
|
|
@@ -109,7 +109,7 @@ EXAMPLES
|
|
109
109
|
$ cpilot config set gl0:CL_PUBLIC_HTTP_PORT 9000
|
110
110
|
```
|
111
111
|
|
112
|
-
_See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
112
|
+
_See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/config/set.ts)_
|
113
113
|
|
114
114
|
## `cpilot help [COMMAND]`
|
115
115
|
|
@@ -146,7 +146,7 @@ EXAMPLES
|
|
146
146
|
$ cpilot info
|
147
147
|
```
|
148
148
|
|
149
|
-
_See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
149
|
+
_See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/info.ts)_
|
150
150
|
|
151
151
|
## `cpilot logs [LAYER]`
|
152
152
|
|
@@ -169,7 +169,7 @@ EXAMPLES
|
|
169
169
|
$ cpilot logs
|
170
170
|
```
|
171
171
|
|
172
|
-
_See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
172
|
+
_See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/logs.ts)_
|
173
173
|
|
174
174
|
## `cpilot restart`
|
175
175
|
|
@@ -186,7 +186,7 @@ EXAMPLES
|
|
186
186
|
$ cpilot restart
|
187
187
|
```
|
188
188
|
|
189
|
-
_See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
189
|
+
_See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/restart.ts)_
|
190
190
|
|
191
191
|
## `cpilot shutdown`
|
192
192
|
|
@@ -203,7 +203,7 @@ EXAMPLES
|
|
203
203
|
$ cpilot shutdown
|
204
204
|
```
|
205
205
|
|
206
|
-
_See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
206
|
+
_See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/shutdown.ts)_
|
207
207
|
|
208
208
|
## `cpilot status`
|
209
209
|
|
@@ -217,5 +217,5 @@ DESCRIPTION
|
|
217
217
|
Display node status and configuration settings
|
218
218
|
```
|
219
219
|
|
220
|
-
_See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
220
|
+
_See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/status.ts)_
|
221
221
|
<!-- commandsstop -->
|
@@ -59,10 +59,10 @@ export const checkProject = {
|
|
59
59
|
else if (rInfo.version !== nInfo.version) {
|
60
60
|
configStore.setNetworkInfo({ type: rInfo.network, version: rInfo.version });
|
61
61
|
}
|
62
|
-
const
|
62
|
+
const clusterVersion = await clusterService.getReleaseVersion();
|
63
63
|
if (!requiresInstall) {
|
64
64
|
const nInfo = configStore.getNetworkInfo();
|
65
|
-
if (nInfo.version !==
|
65
|
+
if (nInfo.version !== clusterVersion) {
|
66
66
|
const answer = await input({
|
67
67
|
default: 'y',
|
68
68
|
message: `A new required network version has been detected. Do you want to upgrade now? (y/n): `
|
@@ -79,9 +79,10 @@ export const checkProject = {
|
|
79
79
|
},
|
80
80
|
async runInstall() {
|
81
81
|
const nInfo = configStore.getNetworkInfo();
|
82
|
+
const clusterVersion = await clusterService.getReleaseVersion();
|
82
83
|
let rInfo = await configHelper.getReleaseInfo();
|
83
|
-
if (rInfo && rInfo.network === nInfo.type) {
|
84
|
-
clm.postStep(`Network files are already installed for ${nInfo.type}`);
|
84
|
+
if (rInfo && rInfo.network === nInfo.type && rInfo.version === clusterVersion) {
|
85
|
+
clm.postStep(`Network files are already installed for ${nInfo.type} version ${clusterVersion}`);
|
85
86
|
return false;
|
86
87
|
}
|
87
88
|
const nodeInfo = await nodeService.getNodeInfo('first');
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
@@ -232,7 +232,6 @@ check_docker() {
|
|
232
232
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
233
233
|
sudo sh ./get-docker.sh
|
234
234
|
sudo usermod -aG docker $USER
|
235
|
-
newgrp docker
|
236
235
|
echo "Docker installed. You may need to log out and back in for group changes to take effect."
|
237
236
|
else
|
238
237
|
echo "⚠️ Unsupported Linux distribution. Please install Docker manually."
|