@cronch/kernel 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -1
- package/kernel.sha256 +1 -1
- package/kernel.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -795,9 +795,11 @@ export interface Kernel {
|
|
|
795
795
|
| { readonly kind: "unreadable"; readonly error: Unreadable };
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
/** `op` can't happen until an approval has been given (`crates/kernel/src/rules.rs`). */
|
|
798
|
+
/** A call to `op` for which `when` holds can't happen until an approval has been given (`crates/kernel/src/rules.rs`). */
|
|
799
799
|
export interface Rule {
|
|
800
800
|
readonly op: string;
|
|
801
|
+
/** Over the call's `args` alone, which may read their labels; absent, every call. */
|
|
802
|
+
readonly when?: Expr;
|
|
801
803
|
/** Each `when` reads `args` (the call's), `approval` (this operation's arguments) and `result`. */
|
|
802
804
|
readonly approvedBy?: readonly { readonly op: string; readonly when: Expr }[];
|
|
803
805
|
}
|
|
@@ -806,6 +808,7 @@ export type RuleError =
|
|
|
806
808
|
| { readonly kind: "interface"; readonly problems: readonly unknown[] }
|
|
807
809
|
| { readonly kind: "noSuchOperation"; readonly name: string }
|
|
808
810
|
| { readonly kind: "grantNotARecord" }
|
|
811
|
+
| { readonly kind: "whenReadsGrant" }
|
|
809
812
|
| { readonly kind: "unreadable"; readonly update: string }
|
|
810
813
|
| { readonly kind: "refused"; readonly place: string; readonly refusal: SmtlibRefusal };
|
|
811
814
|
|
package/kernel.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4876f90b156648f21cbbe5ea7bbdf53921c5dcdc6d1b80cff7784484efee0b7f
|
package/kernel.wasm
CHANGED
|
Binary file
|