@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
14 lines • 751 B
TypeScript
/**
* The app's APP_KEY, found the same way in every Agora lib (SECURITY-UNIFORM-SPEC §13c):
*
* 1. `config.get('app.appKey')`;
* 2. `config.get('encryption')` (AdonisJS 7): its default entry (`list[default]`, else the first
* entry), whose first usable key is `keys[…]` or `key`; the lazy config providers `defineConfig`
* and `drivers.*` return are resolved first, and a flat `{ keys }` / `{ key }` is read as is;
* 3. `process.env.APP_KEY`.
*
* A `Secret` (`.release()`) and a plain string are both accepted, returned released; an empty one,
* or a source that throws, counts as "no key here". Never logged.
*/
export declare function appKeyOf(app: unknown): Promise<string | undefined>;
//# sourceMappingURL=app_key_of.d.ts.map