Cell API
    Preparing search index...

    Class DocsIndex

    Searches the Markdown that ships with the installed components and toolchain modules (README.md and docs/ of each component, cell.addDocs() directories), so agents read the docs of the versions the project uses (docs/design/agent-first.md R7). Sections are ranked by how many query words they contain, headings counting more.

    Index
    fileCount: number = 0
    root: string
    sections?: DocsSection[]
    sources: DocsSource[]
    MAX_FILES: 2000
    MAX_TEXT: 1500
    • README.md and docs/ of each component directory, then the modules' docs directories.

      Parameters

      • components: readonly { dir: string; name: string }[]
      • moduleDocs: readonly { source: string; value: string }[]

      Returns DocsSource[]

    • Lowercased words of the query; words of two characters or fewer only when nothing else is left.

      Parameters

      • query: string

      Returns string[]