@imagina-build/ias-cli 0.1.3 → 0.1.4
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
CHANGED
|
@@ -78,7 +78,9 @@ export function findRunner(vault, signed, query) {
|
|
|
78
78
|
}
|
|
79
79
|
const inList = signed.runners.find((runner) => runner.kid === query);
|
|
80
80
|
if (inList) return { id: null, name: null, status: 'unknown', kid: inList.kid, publicKey: inList.publicKey, platforms: [], registeredAt: null, revokedAt: null, server: false };
|
|
81
|
-
|
|
81
|
+
const known = listed.map((runner) => `«${runner.name}» (${runner.id})`);
|
|
82
|
+
const fix = known.length > 0 ? `the server lists ${known.slice(0, 5).join(', ')}${known.length > 5 ? ` and ${known.length - 5} more` : ''}: give the id, or the name in quotes` : 'the server lists no runner: register one with ias-runner register, with a code of the panel (System › Runners)';
|
|
83
|
+
throw new IasError(`there is no runner «${query}»${RUNNER_ID.test(query) ? '' : ' (a name with spaces goes in quotes)'}`, { fix, code: 'runner_not_found' });
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
/** The runner list the team signed, as GET /vault gives it, checked with the team's key: { serial, runners }. */
|