Skip to content

check

function check(
host: {
effect: string
filesystem: boolean
graft: string
nativeModules: boolean
node: string
operations: readonly {
artifact: {
algorithm: "sha256"
digest: string
version: 1
}
identity: string
package: {
name: string
version: string
}
}[]
placement: "Host" | "Worker" | "Local"
services: readonly {
key: string
operations: readonly string[]
}[]
},
selected: readonly Selection[],
catalog?: readonly Selection[],
): readonly {
code:
| "MissingEntry"
| "MissingOperation"
| "ProvenanceConflict"
| "Runtime"
| "Placement"
| "InvalidManifest"
entry: string
message: string
providers: readonly string[]
}[]

Defined in: Manifest.ts:307

Checks a flat selected deployment; the catalog suggests providers but does not enable them.

Parameter Type Default value
host { effect: string; filesystem: boolean; graft: string; nativeModules: boolean; node: string; operations: readonly { artifact: { algorithm: "sha256"; digest: string; version: 1; }; identity: string; package: { name: string; version: string; }; }[]; placement: "Host" | "Worker" | "Local"; services: readonly { key: string; operations: readonly string[]; }[]; } undefined
host.effect? string Schema.NonEmptyString
host.filesystem? boolean Schema.Boolean
host.graft? string Schema.NonEmptyString
host.nativeModules? boolean Schema.Boolean
host.node? string Schema.NonEmptyString
host.operations? readonly { artifact: { algorithm: "sha256"; digest: string; version: 1; }; identity: string; package: { name: string; version: string; }; }[] ...
host.placement? "Host" | "Worker" | "Local" Placement
host.services? readonly { key: string; operations: readonly string[]; }[] ...
selected readonly Selection[] undefined
catalog? readonly Selection[] []

readonly { code: | "MissingEntry" | "MissingOperation" | "ProvenanceConflict" | "Runtime" | "Placement" | "InvalidManifest"; entry: string; message: string; providers: readonly string[]; }[]