@selvajs/cli 4.21.0-beta.8 → 4.21.0-beta.9
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/package.json +1 -1
- package/src/cli.js +2 -1
- package/src/commands/pm2.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selvajs/cli",
|
|
3
|
-
"version": "4.21.0-beta.
|
|
3
|
+
"version": "4.21.0-beta.9",
|
|
4
4
|
"description": "Scaffold and operate a Selva white-label deployment. `npx @selvajs/cli <dir>` to bootstrap, `selva <cmd>` to manage.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VektorNode",
|
package/src/cli.js
CHANGED
|
@@ -166,7 +166,8 @@ function printHelp() {
|
|
|
166
166
|
'',
|
|
167
167
|
pc.dim('`npx selva` works in a deployment directory because @selvajs/cli is one of'),
|
|
168
168
|
pc.dim('its dependencies. The package.json scripts (`npm run doctor`, `npm start`)'),
|
|
169
|
-
pc.dim('are thin aliases for the same commands.')
|
|
169
|
+
pc.dim('are thin aliases for the same commands. Outside a deployment directory, npx'),
|
|
170
|
+
pc.dim('resolves `selva` to an unrelated npm package: do not let it install one.')
|
|
170
171
|
].join('\n')
|
|
171
172
|
);
|
|
172
173
|
}
|
package/src/commands/pm2.js
CHANGED
|
@@ -325,6 +325,9 @@ export function degradedReason(body) {
|
|
|
325
325
|
);
|
|
326
326
|
}
|
|
327
327
|
if (boot?.atRestSecrets?.ok === false) {
|
|
328
|
+
if (boot.atRestSecrets.failures?.some((f) => f.reason === 'unknown_envelope')) {
|
|
329
|
+
return 'stored compute API keys were sealed by a newer Selva version than the one installed';
|
|
330
|
+
}
|
|
328
331
|
return 'stored compute API keys cannot be decrypted under the current SELVA_AT_REST_KEY';
|
|
329
332
|
}
|
|
330
333
|
return 'see `pm2 logs selva-compute`';
|