@bluelibs/runner - v6.3.1
    Preparing search index...

    Class Store

    Store class which is used to store all the resources, tasks, middleware and events.

    Index

    Constructors

    Properties

    eventManager: EventManager
    logger: Logger
    lookup: StoreLookup
    onUnhandledError: OnUnhandledError

    Accessors

    • get overrides(): Map<string, SupportedOverride>

      Returns Map<string, SupportedOverride>

    Methods

    • Parameters

      • resourceId: string

      Returns void

    • Parameters

      • Optionaloptions: { shouldStop?: () => boolean }

      Returns Promise<void>

    • Parameters

      • definition: unknown

      Returns string

    • Returns the concrete visibility/isolation violation for a target-consumer pair when one exists.

      Parameters

      Returns AccessViolation | null

    • Returns the shared execution-context store used by runtime-facing execution entrypoints and framework internals.

      Returns ExecutionContextStore

    • Returns the owner resource id that directly registered the given item.

      Parameters

      • itemId: string

      Returns string | undefined

    • Returns accessibility info for a target id against the root's export surface. Used by the runtime API (runTask, emitEvent, getResourceValue, etc.) to enforce that callers can only reach items the root resource has explicitly exported.

      Parameters

      • targetId: string
      • rootId: string

      Returns { accessible: boolean; exportedIds: string[] }

    • Parameters

      • definition: unknown

      Returns boolean

    • Returns whether the resource explicitly declared an exports boundary.

      Parameters

      • resourceId: string

      Returns boolean

    • Checks whether a registered item is visible to a consumer id under the current exports visibility model.

      Parameters

      Returns boolean

    • Checks whether an item belongs to a resource registration subtree (or is the resource itself).

      Parameters

      • resourceId: string
      • itemId: string

      Returns boolean

    • Internal

      Executes startup-ready hooks for initialized resources.

      shouldStop() is a cooperative guard used by bootstrap so later ready waves do not keep running after shutdown was requested mid-startup.

      Parameters

      • Optionaloptions: { shouldStop?: () => void }

      Returns Promise<void>

    • Internal

      Executes ready for a single initialized resource (used by lazy init).

      Parameters

      • resourceId: string

      Returns Promise<void>

    • Parameters

      • resourceIds: readonly string[]

      Returns void

    • Parameters

      • resourceId: string

      Returns void

    • Parameters

      • hook: Pick<IHook<any, any, any>, "id" | "on">

      Returns HookTargetResolutionEntry[]

    • Parameters

      • drainingBudgetMs: number

      Returns Promise<boolean>