mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
docs: route every agent handoff to canonical root llms.txt (#141)
This commit is contained in:
+3
-2
@@ -222,9 +222,10 @@ test("guide preserves the introduction and adds ordered navigation plus a copyab
|
||||
assert.doesNotMatch(guide, /^### \d+\.|127\.0\.0\.1:5300|<Steps>/m);
|
||||
const prompt = guide.slice(assistant).match(/```text\n([\s\S]*?)\n```/);
|
||||
assert.ok(prompt, `${locale}: missing copyable prompt`);
|
||||
assert.ok(prompt[1].includes(`https://langbot.app/docs/${locale}/llms.txt`));
|
||||
assert.ok(prompt[1].includes("https://langbot.app/llms.txt"));
|
||||
assert.ok(prompt[1].includes("CLI"));
|
||||
assert.doesNotMatch(prompt[1], /https:\/\/langbot.app\/docs\//);
|
||||
for (const page of ["insight/features", "insight/platform-features", "usage/platforms/readme", "usage/models/readme", "usage/pipelines/readme"]) {
|
||||
assert.ok(prompt[1].includes(`https://langbot.app/docs/${locale}/${page}.md`));
|
||||
await readFile(new URL(`${locale}/${page}.mdx`, repoRoot), "utf8");
|
||||
}
|
||||
for (const [, href] of guide.matchAll(/(?<!!)\]\((\/[^)]+)\)/g)) {
|
||||
|
||||
Reference in New Issue
Block a user