Saxonberg Server API
    Preparing search index...

    Class PackApi

    Index

    Constructors

    Methods

    • Boot pass: discover every shipped content pack (from server's @saxonberg/content-* deps), order by dependsOn, and reconcile each into the DB. Writes rows only — no re-hydrate (nothing is live yet). Returns one PackReconcileResult per pack. Throws (before any write for that pack) if a pack references a class the kernel lacks.

      packRoots overrides discovery with explicit pack-root dirs (tests).

      Parameters

      • OptionalpackRoots: string[]

      Returns Promise<PackReconcileResult[]>

    • Runtime pass: reconcile one pack by id AND re-hydrate the affected live singletons (the pack sync verb) so file edits go live with no restart. packRoot overrides discovery with an explicit pack-root dir (tests).

      Parameters

      • packId: string
      • OptionalpackRoot: string

      Returns Promise<PackReconcileResult>