bot/src/commands/spec.ts
openaliro/openaliro
Module

spec.ts

@file /spec <section> — which files in this repository cite an Aliro 1.0…

bot/src/commands/spec.ts2 documented symbols

Overview

@file /spec <section> — which files in this repository cite an Aliro 1.0 section. Pointers only. The spec text itself (internal/aliro-1.0.txt) is gitignored and this bot never reads it; SPEC_CITATIONS is built by scanning the tracked prose that already cites the spec, not the spec. Answering with anything more than a file and a line would start reproducing member-confidential text one paraphrase at a time, which is exactly what this command must not do.

depends on command.ts discord.ts spec-index.generated.ts  ·  used by index.ts

API

Fexport function normaliseSection(raw: string): string | null

bot/src/commands/spec.ts:30

14, 11.3.1, table 8-3, §8.3.3.5.1 all resolve to the stored form.

called by handler

Ffunction covers(query: string, cited: string): boolean

bot/src/commands/spec.ts:41

Exact match, or a citation to a subsection of the queried section: asking for "11" should surface a citation to "11.7.3.4.1". Table numbers have no such hierarchy and only match exactly.

called by handler
Undocumented (1)

handler