Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / detectHeadless
Function: detectHeadless()
ts
function detectHeadless(): {
headless: boolean;
reasons: readonly string[];
};Defined in: packages/security/src/secrets/factory.ts:144
Detect whether the host is "headless" — that is, no interactive terminal is attached and the process is likely running unattended. The result drives the 'auto' chain's keyring vs. encrypted-file decision.
Returns
ts
{
headless: boolean;
reasons: readonly string[];
}| Name | Type | Defined in |
|---|---|---|
headless | boolean | packages/security/src/secrets/factory.ts:144 |
reasons | readonly string[] | packages/security/src/secrets/factory.ts:144 |