hardening and bugfixing prior to stable release
This commit is contained in:
@@ -192,6 +192,18 @@ export class Cube<Schema extends AnyObjectSchema = AnyObjectSchema> {
|
||||
return defaults as z.infer<Schema>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Every key the schema declares, required or not.
|
||||
*
|
||||
* The question this answers is "does this cube claim to know about KEY", which
|
||||
* is not the same as "does it have a value for it" — a cube can read a key off
|
||||
* `host.data` that only the config `env` supplies. That distinction is what
|
||||
* decides whether a secret is allowed to travel to it.
|
||||
*/
|
||||
schemaKeys(): string[] {
|
||||
return Object.keys(this.manifest.schema.shape);
|
||||
}
|
||||
|
||||
/**
|
||||
* Schema keys that have to be supplied from somewhere: no `.default()`, and
|
||||
* not optional. Nothing else can fill them in, so a run that cannot prompt
|
||||
|
||||
Reference in New Issue
Block a user