Metakit / @doeixd/metakit/artifact
encodeExprBundle
function · packages/metakit/src/bundle.ts:735
function encodeExprBundle<Shape extends Readonly<Record<string, Schema.Top>>>(
expr: Expr<EnvOf<Shape>, unknown>,
options: {
readonly env: Shape
readonly profile: ReadinessProfile
},
): Effect.Effect<PortableExprBundleV1, BundleError>Write expr as a bundle of profile (Language.safeIntK3), its paths
read against env, the Schema of each slice ({ row: Account }).
Fails with BundleRefusedError listing every node outside the profile and
every path that cannot be a slot (a float, a list, a struct read whole, an
Option, a check a slot cannot carry); with Hash.Unhashable for an
Opaque node; and with ArtifactLimitError past the profile's limits.