Skip to content

Documentation / @etherfold/browser / RefusedProcessorBundle

Type Alias: RefusedProcessorBundle ​

RefusedProcessorBundle = { location: string; reason: "unreachable"; status: "refused"; why: string; } | { identity: string; location: string; reason: "not-self-contained"; status: "refused"; unresolvedImports: readonly string[]; why: string; } | { identity: string; location: string; reason: "unreadable-module" | "not-a-processor"; status: "refused"; why: string; } | { identity: string; location: string; reason: "forbidden-by-policy"; status: "refused"; violations: readonly ProcessorBundlePolicyViolation[]; why: string; }

Defined in: packages/browser/src/processorBundle.ts:129

THE BUNDLE ARRIVAL: run the processor bundle a build PUBLISHED, named by the SHA-256 of the bytes this tab fetched and runs (ADR-0095) -- the browser counterpart of loadProcessorArtifact. A host takes it as BrowserGenerationSpec.processorBundle; loadProcessorBundle is the same load for an app that drives it itself.

Union Members ​

Type Literal ​

{ location: string; reason: "unreachable"; status: "refused"; why: string; }


Type Literal ​

{ identity: string; location: string; reason: "not-self-contained"; status: "refused"; unresolvedImports: readonly string[]; why: string; }

identity ​

readonly identity: string

location ​

readonly location: string

reason ​

readonly reason: "not-self-contained"

status ​

readonly status: "refused"

unresolvedImports ​

readonly unresolvedImports: readonly string[]

Every module this bundle still names. In a browser none of them resolves.

why ​

readonly why: string


Type Literal ​

{ identity: string; location: string; reason: "unreadable-module" | "not-a-processor"; status: "refused"; why: string; }


Type Literal ​

{ identity: string; location: string; reason: "forbidden-by-policy"; status: "refused"; violations: readonly ProcessorBundlePolicyViolation[]; why: string; }

identity ​

readonly identity: string

location ​

readonly location: string

reason ​

readonly reason: "forbidden-by-policy"

status ​

readonly status: "refused"

violations ​

readonly violations: readonly ProcessorBundlePolicyViolation[]

What the context reported about each refusal, where it reported anything.

why ​

readonly why: string