mlx-bun library API
    Preparing search index...

    Accumulates the chunk→entity fan-out across a run so the CREATE gate can see each candidate's full chunk count + subject-engagement signal before deciding create-vs-capture. Deterministic and model-free: callers route surfaces (via the resolver + optional model disambig) and enqueue the resolved canonicals.

    Index
    • Final decision per accumulated entity. Existing known entities are always routed (they already have a home — existing wins); minted candidates run the CREATE gate (create vs capture). Returns a stable, name-sorted report.

      Returns { action: RouteAction; entity: string; stats: CreateStats }[]

    • Record that chunkId routes to entity (idempotent per chunk).

      Parameters

      • entity: string
      • chunkId: string
      • Optionalopts: { subjectEngagement?: boolean }

      Returns void