hardening and bugfixing prior to stable release

This commit is contained in:
Benjamin Diedrichsen
2026-07-31 18:21:43 +02:00
parent ac7ea07e3c
commit 0aa0be5542
44 changed files with 3016 additions and 436 deletions
+12
View File
@@ -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