Open History to see the last commit
1import { describe, expect, it } from 'vitest'
2
3import { llmsTxt } from './llms-txt.ts'
4
5// /docs renders this exact content (task 7.3) and the skill (7.6) embeds it —
6// pin the load-bearing sections so edits can't silently hollow them out.
7describe('llms.txt content', () => {
8 it('keeps the sections the docs page and skill depend on', () => {
9 for (const heading of [
10 '# modelschemas',
11 '## Quickstart',
12 '## Caching',
13 '## Auth',
14 '## Machine-readable spec',
15 '## Errors',
16 ]) {
17 expect(llmsTxt).toContain(heading)
18 }
19 for (const path of [
20 '/v1/models',
21 '/v1/schemas/',
22 '/v1/openapi/',
23 '/v1/validate',
24 '/v1/estimate',
25 '/v1/changes',
26 '/openapi.json',
27 '/.well-known/agent-configuration',
28 '/v1/agents/register-key',
29 ]) {
30 expect(llmsTxt).toContain(path)
31 }
32 })
33})