Skip to content

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[];
}
NameTypeDefined in
headlessbooleanpackages/security/src/secrets/factory.ts:144
reasonsreadonly string[]packages/security/src/secrets/factory.ts:144

Stable