@constellation-network/node-pilot 0.10.0-testnet → 0.10.2-testnet
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 +10 -10
- package/dist/checks/check-network.js +3 -2
- package/dist/checks/check-project.js +1 -1
- package/dist/commands/restart.js +4 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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.10.
|
|
24
|
+
@constellation-network/node-pilot/0.10.2-testnet darwin-arm64 node-v22.15.0
|
|
25
25
|
$ cpilot --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ cpilot COMMAND
|
|
@@ -71,7 +71,7 @@ EXAMPLES
|
|
|
71
71
|
$ cpilot clean
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
_See code: [src/commands/clean.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
74
|
+
_See code: [src/commands/clean.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/clean.ts)_
|
|
75
75
|
|
|
76
76
|
## `cpilot config`
|
|
77
77
|
|
|
@@ -88,7 +88,7 @@ EXAMPLES
|
|
|
88
88
|
$ cpilot config
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
_See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
91
|
+
_See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/config.ts)_
|
|
92
92
|
|
|
93
93
|
## `cpilot config get [NAME]`
|
|
94
94
|
|
|
@@ -112,7 +112,7 @@ EXAMPLES
|
|
|
112
112
|
$ cpilot config get gl0:CL_PUBLIC_HTTP_PORT
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
_See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
115
|
+
_See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/config/get.ts)_
|
|
116
116
|
|
|
117
117
|
## `cpilot config set NAME VALUE`
|
|
118
118
|
|
|
@@ -135,7 +135,7 @@ EXAMPLES
|
|
|
135
135
|
$ cpilot config set gl0:CL_PUBLIC_HTTP_PORT 9000
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
_See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
138
|
+
_See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/config/set.ts)_
|
|
139
139
|
|
|
140
140
|
## `cpilot help [COMMAND]`
|
|
141
141
|
|
|
@@ -172,7 +172,7 @@ EXAMPLES
|
|
|
172
172
|
$ cpilot info
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
_See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
175
|
+
_See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/info.ts)_
|
|
176
176
|
|
|
177
177
|
## `cpilot logs LAYER`
|
|
178
178
|
|
|
@@ -198,7 +198,7 @@ EXAMPLES
|
|
|
198
198
|
$ cpilot logs
|
|
199
199
|
```
|
|
200
200
|
|
|
201
|
-
_See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
201
|
+
_See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/logs.ts)_
|
|
202
202
|
|
|
203
203
|
## `cpilot restart [LAYER]`
|
|
204
204
|
|
|
@@ -226,7 +226,7 @@ EXAMPLES
|
|
|
226
226
|
$ cpilot restart
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
-
_See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
229
|
+
_See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/restart.ts)_
|
|
230
230
|
|
|
231
231
|
## `cpilot shutdown`
|
|
232
232
|
|
|
@@ -243,7 +243,7 @@ EXAMPLES
|
|
|
243
243
|
$ cpilot shutdown
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
-
_See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
246
|
+
_See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/shutdown.ts)_
|
|
247
247
|
|
|
248
248
|
## `cpilot status`
|
|
249
249
|
|
|
@@ -257,5 +257,5 @@ DESCRIPTION
|
|
|
257
257
|
Display node status and configuration settings
|
|
258
258
|
```
|
|
259
259
|
|
|
260
|
-
_See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.
|
|
260
|
+
_See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.10.2-testnet/src/commands/status.ts)_
|
|
261
261
|
<!-- commandsstop -->
|
|
@@ -140,6 +140,7 @@ export const checkNetwork = {
|
|
|
140
140
|
return shellService.runCommandWithOutput('curl -4 https://ifconfig.me/ip');
|
|
141
141
|
},
|
|
142
142
|
async isNetworkConnectable() {
|
|
143
|
+
const { type } = configStore.getNetworkInfo();
|
|
143
144
|
return clusterService.getClusterInfo()
|
|
144
145
|
.then(async (nodes) => {
|
|
145
146
|
const someAreReady = nodes.some(node => node.state === 'Ready');
|
|
@@ -149,12 +150,12 @@ export const checkNetwork = {
|
|
|
149
150
|
}
|
|
150
151
|
throw new Error(`Network is not connectable.`);
|
|
151
152
|
}
|
|
152
|
-
clm.debug(
|
|
153
|
+
clm.debug(`${type} is live. Found ${nodes.length} nodes in the cluster.`);
|
|
153
154
|
configStore.setClusterStats({ total: nodes.length });
|
|
154
155
|
return true;
|
|
155
156
|
})
|
|
156
157
|
.catch(() => {
|
|
157
|
-
clm.error(
|
|
158
|
+
clm.error(`${type} is not in service. Please try again later.`);
|
|
158
159
|
return false;
|
|
159
160
|
});
|
|
160
161
|
}
|
|
@@ -158,7 +158,7 @@ export const checkProject = {
|
|
|
158
158
|
// spinner.color = 'green';
|
|
159
159
|
// }
|
|
160
160
|
// else {
|
|
161
|
-
if (!rInfo) {
|
|
161
|
+
if (!rInfo && !configStore.isRestarting()) {
|
|
162
162
|
// First time install
|
|
163
163
|
clm.preStep('Tessellation and dependencies need to be installed. This may take a few minutes...');
|
|
164
164
|
await promptHelper.doYouWishToContinue();
|
package/dist/commands/restart.js
CHANGED
|
@@ -96,6 +96,10 @@ export default class Restart extends BaseCommand {
|
|
|
96
96
|
serviceLog.log('Restart already ACTIVE');
|
|
97
97
|
process.exit(0);
|
|
98
98
|
}
|
|
99
|
+
process.on("exit", () => {
|
|
100
|
+
serviceLog.log('exiting, clearing isRestarting flag');
|
|
101
|
+
configStore.setIsRestarting(0);
|
|
102
|
+
});
|
|
99
103
|
configStore.setIsRestarting(Date.now());
|
|
100
104
|
}
|
|
101
105
|
else {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED