feat(credentials): add JSON5 credential system
This commit is contained in:
parent
b1d80f29ae
commit
3ee8946e29
10 changed files with 454 additions and 110 deletions
|
|
@ -22,6 +22,7 @@ import {
|
|||
checkEligibilityDetailed,
|
||||
type DiagnosticItem,
|
||||
} from "../skills/index.js";
|
||||
import { credentialManager } from "../credentials.js";
|
||||
|
||||
// ============================================================================
|
||||
// Types
|
||||
|
|
@ -365,7 +366,7 @@ function checkBinaries(bins: string[]): Map<string, boolean> {
|
|||
function checkEnvVars(envs: string[]): Map<string, boolean> {
|
||||
const result = new Map<string, boolean>();
|
||||
for (const env of envs) {
|
||||
result.set(env, env in process.env);
|
||||
result.set(env, credentialManager.hasEnv(env));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue