Skip to content

BundlesAPI

Defined in: namespaces-core-plugins.ts:412

ContextBundle composition (fn-92).

QUIRK: context.bundles is the fn-92 ContextBundle namespace — DISTINCT from context.clipboard.bundles (fn-91 clipboard bundles).

fn-92

compose(spec): Promise<ComposedContextBundle>

Defined in: namespaces-core-plugins.ts:414

Composes a frozen bundle. [context.compose]

AnyJSONValue

Promise<ComposedContextBundle>


get(bundleId, opts?): Promise<ComposedContextBundle | null>

Defined in: namespaces-core-plugins.ts:416

Gets an owned bundle (owner-only; cross-plugin reads return null).

string

AnyJSONValue

Promise<ComposedContextBundle | null>


hash(bundle): Promise<string>

Defined in: namespaces-core-plugins.ts:418

Computes the deterministic bundle hash.

AnyJSONValue

Promise<string>


elevate(spec): Promise<ElevationTicket>

Defined in: namespaces-core-plugins.ts:420

Mints an elevation ticket for elevated resources (e.g., vault://).

AnyJSONValue

Promise<ElevationTicket>


readBlob(refId, opts?): Promise<{ dataBase64: string; } | null>

Defined in: namespaces-core-plugins.ts:422

Reads a blob referenced by a bundle.

string

AnyJSONValue

Promise<{ dataBase64: string; } | null>